Page Builder: Live Composer – drag and drop website builder (visual front end site editor) - Version 1.5.6

Version Description

  • Feb 20 2020 =
  • Fixed 'Edit Footer/Header' buttons (issue #1006)
  • Fix broken image links in project grid/carousel (issue #1024)
  • Limit errors reports only to JS warnings caused by the Live Composer
  • Update NPM packages.
Download this release

Release Info

Developer LiveComposer
Plugin Icon 128x128 Page Builder: Live Composer – drag and drop website builder (visual front end site editor)
Version 1.5.6
Comparing to
See all releases

Code changes from version 1.5.5 to 1.5.6

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.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.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.6
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.6' );
45
 
46
  define( 'DS_LIVE_COMPOSER_SHORTNAME', __( 'Live Composer', 'live-composer-page-builder' ) );
47
  define( 'DS_LIVE_COMPOSER_BASENAME', plugin_basename( __FILE__ ) );
includes/other-functions.php CHANGED
@@ -171,8 +171,8 @@ if ( ! class_exists( 'DSLC_Aq_Resize' ) ) {
171
 
172
  // Here is the point we allow to use larger image size than the original one.
173
  $aspect_ratio = $orig_w / $orig_h;
174
- $new_w = $dest_w;
175
- $new_h = $dest_h;
176
 
177
  if ( ! $new_w ) {
178
  $new_w = intval( $new_h * $aspect_ratio );
171
 
172
  // Here is the point we allow to use larger image size than the original one.
173
  $aspect_ratio = $orig_w / $orig_h;
174
+ $new_w = intval( $dest_w );
175
+ $new_h = intval( $dest_h );
176
 
177
  if ( ! $new_w ) {
178
  $new_w = intval( $new_h * $aspect_ratio );
js/dist/client_frontend.min.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e){var s={};function t(o){if(s[o])return s[o].exports;var a=s[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,t),a.l=!0,a.exports}t.m=e,t.c=s,t.d=function(e,s,o){t.o(e,s)||Object.defineProperty(e,s,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,s){if(1&s&&(e=t(e)),8&s)return e;if(4&s&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&s&&"string"!=typeof e)for(var a in e)t.d(o,a,function(s){return e[s]}.bind(null,a));return o},t.n=function(e){var s=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(s,"a",s),s},t.o=function(e,s){return Object.prototype.hasOwnProperty.call(e,s)},t.p="",t(t.s=2)}({2:function(e,s,t){window.dslc_responsive_classes=function(e){void 0===e&&(e=!1);var s=jQuery(window).width(),t=jQuery("body");1!=e&&(t.hasClass("dslc-res-disabled")||jQuery('.dslca-module-edit-options-tab-hook.dslca-active[data-section="responsive"]').length)||(t.removeClass("dslc-res-phone dslc-res-tablet dslc-res-smaller-monitor dslc-res-big"),s>=1024&&s<1280?t.addClass("dslc-res-smaller-monitor"):s>=768&&s<1024?t.addClass("dslc-res-tablet"):s<768?t.addClass("dslc-res-phone"):t.addClass("dslc-res-big"))},window.dslc_init_accordion=function(){jQuery(".dslc-accordion").each((function(){var e=jQuery(this),s=e.data("open")-1,t=jQuery(".dslc-accordion-item:eq("+s+")",e),o=t.siblings(".dslc-accordion-item"),a=jQuery(".dslc-accordion-item",e);s>=0?(t.addClass("dslc-active"),o.addClass("dslc-inactive"),jQuery(".dslc-accordion-content",o).hide(),jQuery("body").hasClass("dslca-enabled")||o.find(".dslca-icon").removeClass("dslc-icon-minus").addClass("dslc-icon-plus")):(a.addClass("dslc-inactive"),jQuery(".dslc-accordion-content",a).hide(),jQuery("body").hasClass("dslca-enabled")||a.find(".dslca-icon").removeClass("dslc-icon-minus").addClass("dslc-icon-plus"))}))},window.dslc_init_lightbox=function(){var e;jQuery(".dslc-lightbox-image").each((function(){e="image",(jQuery(this).attr("href").indexOf("youtube.com")>=0||jQuery(this).attr("href").indexOf("vimeo.com")>=0)&&(e="iframe"),jQuery(this).magnificPopup({type:e})})),jQuery(".dslc-lightbox-gallery").each((function(){jQuery(this).magnificPopup({delegate:"a",type:"image",gallery:{enabled:!0},image:{titleSrc:function(e){var s="";return void 0!==e.el.attr("data-caption")&&(s="<small>"+e.el.attr("data-caption")+"</small>"),e.el.attr("title")+s}}})}))},window.dslc_carousel=function(){jQuery(".dslc-carousel, .dslc-slider").each((function(e){var s,t,o,a,c;s=jQuery(this),(t=s.closest(".dslc-module-front")).imagesLoaded((function(){if(t.closest(".dslc-modules-section").hasClass("dslc-no-columns-spacing"))var e=0;else e=t.width()/100*2.12766/2;s.hasClass("dslc-carousel")&&(s.find(".dslc-col").css({"margin-left":e,"margin-right":e}),s.css({"margin-left":-1*e,width:s.width()+2*e})),o={items:4,pagination:!0,singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1e3,autoPlay:!1,stopOnHover:!1,lazyLoad:!1,lazyFollow:!0,autoHeight:!1,mouseDrag:!0,touchDrag:!0,addClassActive:!0,transitionStyle:"fade",scrollPerPage:!0},a={items:s.data("columns"),pagination:s.data("pagination"),itemsScaleUp:s.data("scale-up"),slideSpeed:s.data("slide-speed"),paginationSpeed:s.data("pagination-speed"),rewindSpeed:s.data("rewind-speed"),autoPlay:s.data("autoplay"),stopOnHover:s.data("stop-on-hover"),lazyLoad:s.data("lazy-load"),lazyFollow:s.data("lazy-follow"),autoHeight:s.data("flexible-height"),mouseDrag:s.data("mouse-drag"),touchDrag:s.data("touch-drag"),addClassActive:s.data("active-class"),transitionStyle:s.data("animation"),scrollPerPage:s.data("scroll-per-page")},c=jQuery.extend({},o,a),(s.hasClass("dslc-slider")||1==c.items)&&(c.singleItem=!0),0==c.autoPlay&&(c.autoPlay=!1),s.owlCarousel({items:c.items,pagination:c.pagination,singleItem:c.singleItem,itemsScaleUp:c.itemsScaleUp,slideSpeed:c.slideSpeed,paginationSpeed:c.paginationSpeed,rewindSpeed:c.rewindSpeed,autoPlay:c.autoPlay,stopOnHover:c.stopOnHover,lazyLoad:c.lazyLoad,lazyFollow:c.lazyFollow,mouseDrag:c.mouseDrag,touchDrag:c.touchDrag,scrollPerPage:c.scrollPerPage,transitionStyle:c.transitionStyle,autoHeight:c.autoHeight,itemsDesktop:!1,itemsDesktopSmall:!1,itemsTablet:!1,itemsMobile:[766,1],afterInit:function(){s.prev(".dslc-loader").remove(),s.css({opacity:1,maxHeight:"none"})},afterAction:function(){var e=this.owl.visibleItems;s.find(".dslc-carousel-item-visible").removeClass("dslc-carousel-item-visible"),s.find(".owl-item").filter((function(s){return e.indexOf(s)>-1})).addClass("dslc-carousel-item-visible")}}),jQuery(".dslc-carousel-nav-next",t).click((function(e){e.preventDefault(),s.data("owlCarousel").next()})),jQuery(".dslc-carousel-nav-prev",t).click((function(e){e.preventDefault(),s.data("owlCarousel").prev()}))}))}))},window.dslc_carousel_responsive=function(){jQuery(".dslc-carousel").each((function(){var e,s;if(s=(e=jQuery(this)).closest(".dslc-module-front"),e.css({"margin-left":0,width:"auto"}),s.closest(".dslc-modules-section").hasClass("dslc-no-columns-spacing"))var t=0;else t=s.width()/100*2.12766/2;e.hasClass("dslc-carousel")&&(e.find(".dslc-col").css({"margin-left":t,"margin-right":t}),e.css({"margin-left":-1*t,width:e.width()+2*t}))}))},window.dslc_bg_video=function(){jQuery(".dslc-bg-video").each((function(){jQuery(this).find("video").length||jQuery(this).css({opacity:1})})),jQuery(".dslc-bg-video video").mediaelementplayer({loop:!0,pauseOtherPlayers:!1,success:function(e,s){e.addEventListener("loadeddata",(function(e){jQuery(s).closest(".dslc-bg-video").animate({opacity:1},400)})),e.play()}})},window.dslc_parallax=function(){jQuery(".dslc-init-parallax").each((function(){var e=jQuery(this);e.imagesLoaded({background:!0},(function(){var s=e.css("background-position").split(" ")[0]+" "+-1*(window.pageYOffset-e.offset().top)/4+"px";e.css({backgroundPosition:s})}))})),window.onscroll=function(){jQuery(".dslc-init-parallax").each((function(){var e=jQuery(this).css("background-position").split(" ")[0]+" "+-1*(window.pageYOffset-jQuery(this).offset().top)/4+"px";jQuery(this).css({backgroundPosition:e})}))}},window.dslc_masonry=function(e,s){e=void 0!==e?e:jQuery("body"),s=void 0!==s&&s,jQuery(".dslc-init-masonry",e).each((function(){var e,t,o,a;e=jQuery(this).find(".dslc-posts-inner").length?jQuery(this).find(".dslc-posts-inner"):jQuery(this),t=".dslc-masonry-item",jQuery(t,e).width(),o=jQuery(e).width(),a=jQuery(this).closest(".dslc-modules-section").hasClass("dslc-no-columns-spacing")?0:o/100*2.05,e.data("masonry")?jQuery(e).imagesLoaded((function(){jQuery(e).masonry("destroy").masonry({gutter:a,itemSelector:t}),jQuery(e).find(".dslc-post:not(.dslc-masonry-item)").hide(),s&&jQuery(t,e).css({scale:"0.2"}).animate({scale:"1"},500)})):(jQuery(t).css({marginRight:0}),jQuery(e).imagesLoaded((function(){jQuery(e).masonry({gutter:a,itemSelector:t})})))}))},window.dslc_tabs_generate_code=function(e){var s=e.closest(".dslc-module-front");dslcTabsNav=jQuery(".dslc-tabs-nav",e),dslcTabsContent=jQuery(".dslc-tabs-content",e),dslcTabContent=jQuery(".dslc-tabs-tab-content",e);var t="",o="",a=0,c=0;jQuery(".dslc-tabs-nav-hook",dslcTabsNav).each((function(){++a>1&&(t+=" (dslc_sep) "),t+=jQuery(this).find(".dslc-tabs-nav-hook-title").text()})),dslcTabContent.each((function(){++c>1&&(o+=" (dslc_sep) "),o+=jQuery(this).find(".dslca-tab-plain-content").val()})),o=o.replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea"),jQuery('.dslca-module-option-front[data-id="tabs_nav"]',s).val(t),jQuery('.dslca-module-option-front[data-id="tabs_content"]',s).val(o),parent.LiveComposer.Builder.Actions.optionsChanged()},window.dslc_accordion_generate_code=function(e){var s=e.closest(".dslc-module-front"),t=0,o="",a="";jQuery(".dslc-accordion-item",e).each((function(){++t>1&&(o+=" (dslc_sep) ",a+=" (dslc_sep) "),o+=jQuery(this).find(".dslc-accordion-title").text(),a+=jQuery(this).find(".dslc-accordion-content").find(".dslca-accordion-plain-content").val()})),a=a.replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea"),jQuery('.dslca-module-option-front[data-id="accordion_nav"]',s).val(o),jQuery('.dslca-module-option-front[data-id="accordion_content"]',s).val(a),parent.LiveComposer.Builder.Actions.optionsChanged()},window.dslc_tabs=function(){var e,s;jQuery(".dslc-tabs").each((function(){e=jQuery(this),s=jQuery(".dslc-tabs-nav",e),jQuery(".dslc-tabs-content",e),jQuery(".dslc-tabs-tab-content",e).eq(0).addClass("dslc-active"),jQuery(".dslc-tabs-nav-hook",s).eq(0).addClass("dslc-active")}))},jQuery(document).on("click",".dslca-add-new-tab-hook",(function(e){return function(e){var s=jQuery(e.target).closest(".dslc-tabs"),t=jQuery(".dslc-tabs-nav .dslc-tabs-nav-hook:last",s),o=jQuery(".dslc-tabs-tab-content:last",s),a=jQuery(".dslc-tabs-nav .dslc-tabs-nav-hook",s).length;t.after('<span class="dslc-tabs-nav-hook"><span class="dslc-tabs-nav-hook-title" contenteditable="true">Click to edit title</span><span class="dslca-delete-tab-hook"><span class="dslca-icon dslc-icon-remove"></span></span></span>'),o.after('<div class="dslc-tabs-tab-content"><div class="dslca-editable-content" data-edit-id="'+a+'" data-id="'+a+'">This is just placeholder text.</div><textarea class="dslca-tab-plain-content" data-edit-id="'+a+'" data-id="'+a+'">This is just placeholder text.</textarea><div class="dslca-wysiwyg-actions-edit"><span class="dslca-wysiwyg-actions-edit-hook" data-event="wysiwyg-edit" data-id-to-edit="'+a+'">Open in WP Editor</span></div></div>'),jQuery(".dslc-tabs-nav-hook:last",s).click(),dslc_tabs_generate_code(s),jQuery(s[0]).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(s[0]).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")}(e)})),jQuery(document).on("click",".dslca-delete-tab-hook",(function(e){return function(e){console.log("dslc_on_tab_delete");var s=jQuery(e.target).closest(".dslc-tabs"),t=jQuery(e.target).closest(".dslc-tabs-nav-hook"),o=t.index(),a=jQuery(".dslc-tabs-tab-content",s).eq(o);jQuery(".dslc-tabs-nav .dslc-tabs-nav-hook",s).length>1&&(t.remove(),a.remove(),jQuery(".dslc-tabs-tab-content.dslc-active",s).length||jQuery(".dslc-tabs-nav-hook:first",s).trigger("click"),dslc_tabs_generate_code(s)),jQuery(s[0]).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(s[0]).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click"),e.stopPropagation()}(e)})),jQuery(document).on("click",".dslc-tabs-nav-hook",(function(e){return function(e){dslcTabs=jQuery(e.target).closest(".dslc-tabs"),dslcTabsNav=jQuery(".dslc-tabs-nav",dslcTabs),dslcTabsContent=jQuery(".dslc-tabs-content",dslcTabs),dslcTabContent=jQuery(".dslc-tabs-tab-content",dslcTabs),dslcTabIndex=jQuery(e.currentTarget).index(),jQuery(".dslc-tabs-nav-hook.dslc-active",dslcTabs).removeClass("dslc-active"),jQuery(e.currentTarget).addClass("dslc-active"),jQuery(".dslc-tabs-tab-content.dslc-active",dslcTabs).length?jQuery(".dslc-tabs-tab-content.dslc-active",dslcTabs).animate({opacity:0},250,(function(){jQuery(this).removeClass("dslc-active"),dslcTabContent.eq(dslcTabIndex).css({opacity:0}).addClass("dslc-active").show().animate({opacity:1},250)})):dslcTabContent.eq(dslcTabIndex).css({opacity:0}).addClass("dslc-active").show().animate({opacity:1},250)}(e)})),jQuery(document).on("blur paste",".dslc-tabs-nav-hook-title[contenteditable], .dslc-tabs-tab-content[contenteditable]",(function(e){dslc_tabs_generate_code(jQuery(this).closest(".dslc-tabs"))})).on("focus",".dslc-tabs-nav-hook-title[contenteditable], .dslc-tabs-tab-content[contenteditable]",(function(e){jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")})),window.dslc_download_count_increment=function(e){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-download-count-increment",dslc_post_id:e},(function(e){}))},window.dslc_check_viewport=function(){!!document.documentMode?jQuery(".dslc-in-viewport-check").css("opacity",1):jQuery(".dslc-in-viewport-check:in-viewport:not(.dslc-in-viewport)").each((function(){var e=jQuery(this),s=e.data("dslc-anim"),t=parseInt(e.data("dslc-anim-duration"))/1e3+"s";jQuery(window).width()<768&&(t="0s");var o=parseInt(e.data("dslc-anim-delay")),a=s+" "+t+" "+e.data("dslc-anim-easing")+" forwards";jQuery(this).addClass("dslc-in-viewport"),o>0?setTimeout((function(){e.css({"-webkit-animation":a,"-moz-animation":a,animation:a})}),o):jQuery(this).css({"-webkit-animation":a,"-moz-animation":a,animation:a})}))},window.dslc_el_anim_hover=function(){jQuery(".dslc-on-hover-anim-target").each((function(){var e="all "+parseInt(jQuery(this).data("dslc-anim-speed"))/1e3+"s ease-out";jQuery(this).css({"-webkit-transition":e,"-moz-transition":e,transition:e})}))},window.dslc_check_progress_bar_viewport=function(){jQuery(".dslc-progress-bar-animated:in-viewport:not(.dslc-progress-bar-in-viewport)").each((function(){var e=jQuery(this),s=e.find(".dslc-progress-bar-loader-inner"),t=s.data("amount")+"%",o=s.data("speed");e.addClass("dslc-progress-bar-in-viewport"),s.css({width:0,opacity:1}).animate({width:t},o)}))},window.dslc_validate_comment_form=function(e){var s=e.find("#author"),t=e.find("#email"),o=(e.find("#url"),e.find("#comment")),a=!0;return s.length&&0==s.val().length?(s.css({borderColor:"#e55f5f"}),a=!1):s.attr("style",""),!t.length||0!=t.val().length&&-1!==t.val().indexOf("@")?t.attr("style",""):(t.css({borderColor:"#e55f5f"}),a=!1),0==o.val().length?(o.css({borderColor:"#e55f5f"}),a=!1):o.attr("style",""),a},window.dslc_social_share=function(e,s,t){var o,a,c="status=no,height="+s+",width="+e+",resizable=yes,left="+(o=window.screen.width/2-(e/2+10))+",top="+(a=window.screen.height/2-(s/2+50))+",screenX="+o+",screenY="+a+",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no";return location.href,document.title,window.open(t,"sharer",c),!1},window.dslc_sticky_row=function(){if(jQuery("body .dslc-modules-section").hasClass("dslc-sticky-row")&&!jQuery("body").hasClass("dslca-enabled")){var e=jQuery("body .dslc-modules-section.dslc-sticky-row"),s=jQuery(".dslc-sticky-row");s.each((function(e,t){jQuery(s).eq(e).outerHeight();jQuery(t).wrap('<div class="dslc-modules-section-placeholder"></div>').parent().height(jQuery(t).outerHeight())}));(e=jQuery("body .dslc-modules-section.dslc-sticky-row")).offset().top;jQuery("#wpadminbar").length&&jQuery("#wpadminbar").height();var t=jQuery(".dslc-sticky-row");document.addEventListener("scroll",(function(s){var o=window.scrollY;(o<50||o%10==0)&&(o>=0?t.each((function(e,s){var a=jQuery(t).eq(e),c=a.offset().top,i=a.outerHeight();jQuery("#wpadminbar").length&&(c-=jQuery("#wpadminbar").height());var d=o<=s.exTop,n=c<=o,l="fixed",r=0;if(d)l="relative",r=0,s.isFixed=!1,s.classList.remove("dslc-sticky-section-fixed"),jQuery(s).closest(".dslc-modules-section-placeholder").height(jQuery(s).outerHeight());else if(n){if(l="fixed",0<e)for(var u=0;u<e;u++)r+=jQuery(t).eq(u).outerHeight();o+=i,s.isFixed||(s.isFixed=!0,s.exTop=c),jQuery("#wpadminbar").length&&(r+=32),s.classList.add("dslc-sticky-section-fixed"),jQuery(s).closest(".dslc-modules-section-placeholder").height(jQuery(s).outerHeight())}jQuery(s).css({position:l,top:r+"px"})})):(e.removeClass("dslc-sticky-section-fixed"),t.css({position:"relative",top:"0px"})))}),{capture:!1,passive:!0})}},jQuery(document).ready((function(e){var s,t,o,a,c;if(document.querySelector("meta[name=viewport]").setAttribute("content","width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"),dslc_el_anim_hover(),dslc_bg_video(),dslc_tabs(),jQuery(document).on("click",".dslc-pagination-load-more a",(function(e){if(e.preventDefault(),jQuery(this).parent().hasClass("dslc-active")){var s=jQuery(this),t=jQuery(this).closest(".dslc-module-front"),o=t.find(".dslc-pagination"),a=t.find(".dslc-posts-inner"),c=t.attr("id"),i=s.attr("href"),d=t.find(".dslc-load-more-temp");s.find(".dslc-icon").addClass("dslc-icon-spin"),d.load(i+" #"+c,(function(){a.append('<div class="dslc-post-separator"></div>'),a.append(d.find(".dslc-posts-inner").html()),t.find(".dslc-pagination").html(d.find(".dslc-pagination").html()),o.replaceWith(d.find(".dslc-pagination")),d.html(""),a.imagesLoaded((function(){t.find(".dslc-init-masonry").length&&t.find(".dslc-init-masonry .dslc-posts-inner").masonry("reloadItems").masonry()}))}))}})),jQuery(".dslc-tp-comment-form form").submit((function(e){dslc_validate_comment_form(jQuery(this))||e.preventDefault()})),jQuery(".dslc-mobile-navigation select").change((function(){window.location=jQuery(this).val()})),jQuery(document).on("click",".dslc-notification-close",(function(e){jQuery(this).closest(".dslc-notification").slideUp(200,(function(){jQuery(this).remove()}))})),jQuery(document).on("click",".dslc-post-filter",(function(){var e=jQuery(this),s=e.closest(".dslc-module-front").find(".dslc-posts"),t=e.closest(".dslc-module-front"),o=e.data("filter-id"),a=jQuery(),c=jQuery();"show-all"===o?(a=s.closest(".dslc-module-front").find(".dslc-post"),c=jQuery()):(a=s.closest(".dslc-module-front").find('.dslc-post[data-cats*="'+o+'"]'),c=s.closest(".dslc-module-front").find('.dslc-post:not([data-cats*="'+o+'"])')),e.removeClass("dslc-inactive").addClass("dslc-active").siblings(".dslc-active").removeClass("dslc-active").addClass("dslc-inactive"),s.hasClass("dslc-init-grid")?(a.stop().animate({opacity:1},300),c.stop().animate({opacity:.3},300)):(c.removeClass("dslc-masonry-item dslc-masonry-item-animate").css({visibility:"hidden"}),a.addClass("dslc-masonry-item dslc-masonry-item-animate").css({visibility:"visible"}).show(),dslc_masonry(t,!0))})),jQuery(document).on("click",".dslc-download-count-hook",(function(e){dslc_download_count_increment(jQuery(this).data("post-id"))})),jQuery(".dslc-notification-box-has-timeout").each((function(){var e=jQuery(this);nTimeout="none",moduleID=e.closest(".dslc-module-front").data("module-id"),cookieID="nBox"+moduleID,e.data("notification-timeout")&&null==Cookies.get(cookieID)&&e.show()})),jQuery(document).on("click",".dslc-notification-box-close",(function(){var e=jQuery(this).closest(".dslc-notification-box"),s="none",t="nBox"+e.closest(".dslc-module-front").data("module-id");e.data("notification-timeout")&&(s=e.data("notification-timeout")),"none"!==s&&Cookies.set(t,"closed",{expires:s}),e.animate({opacity:0},400,(function(){jQuery(this).remove()}))})),dslc_init_lightbox(),dslc_init_accordion(),jQuery(document).on("click",".dslc-accordion-hook",(function(){var e=jQuery(this).closest(".dslc-accordion-item"),s=e.siblings(".dslc-accordion-item");e.hasClass("dslc-active")?(jQuery("body").hasClass("dslca-enabled")||(e.find(".dslca-icon").hasClass("dslc-icon-minus")?e.find(".dslca-icon").removeClass("dslc-icon-minus").addClass("dslc-icon-plus"):e.find(".dslca-icon").removeClass("dslc-icon-plus").addClass("dslc-icon-minus")),s=e):(e.removeClass("dslc-inactive").addClass("dslc-active"),jQuery("body").hasClass("dslca-enabled")||(e.find(".dslca-icon").hasClass("dslc-icon-minus")?e.find(".dslca-icon").removeClass("dslc-icon-minus").addClass("dslc-icon-plus"):(e.find(".dslca-icon").removeClass("dslc-icon-plus").addClass("dslc-icon-minus"),s.find(".dslca-icon").removeClass("dslc-icon-minus").addClass("dslc-icon-plus")))),s.removeClass("dslc-active").addClass("dslc-inactive"),jQuery(".dslc-accordion-content",e).slideDown(300),jQuery(".dslc-accordion-content",s).slideUp(300)})),jQuery(document).on("click",".dslca-add-accordion-hook",(function(){var e=jQuery(this).closest(".dslc-accordion"),s=jQuery(".dslc-accordion-item:last",e),t=s.clone().insertAfter(s);numberOfTabs=jQuery(".dslc-accordion-item",e).length,jQuery(".dslc-accordion-title",t).html("CLICK TO EDIT"),jQuery(".dslc-accordion-content",t).html('<div class="dslca-editable-content" data-edit-id="'+numberOfTabs+'">Placeholder content, click to edit. Lorem ipsum dolor sit amet, consectetur tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div><textarea class="dslca-accordion-plain-content"></textarea><div class="dslca-wysiwyg-actions-edit"><span class="dslca-wysiwyg-actions-edit-hook" data-event="wysiwyg-edit" data-id-to-edit="'+numberOfTabs+'">Edit Content</span></div>'),jQuery(".dslc-accordion-hook",t).click(),dslc_accordion_generate_code(e),jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")})),jQuery(document).on("click",".dslca-delete-accordion-hook",(function(e){var s=jQuery(this).closest(".dslc-accordion"),t=jQuery(this).closest(".dslc-accordion-item");jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click"),jQuery(".dslc-accordion-item",s).length>1?(t.remove(),jQuery(".dslc-accordion-item.dslc-active",s).length||jQuery(".dslc-accordion-hook:first",s).trigger("click"),dslc_accordion_generate_code(s)):alert("You can not delete the last remaining accordion item."),e.stopPropagation()})),jQuery(document).on("click",".dslca-move-up-accordion-hook, .dslca-move-down-accordion-hook",(function(e){var s=jQuery(this).closest(".dslc-accordion"),t=jQuery(this).closest(".dslc-accordion-item"),o=t.next(".dslc-accordion-item"),a=t.prev(".dslc-accordion-item");jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click"),jQuery(this).hasClass("dslca-move-down-accordion-hook")?(t.insertAfter(o),dslc_accordion_generate_code(s)):(t.insertBefore(a),dslc_accordion_generate_code(s)),e.stopPropagation()})),jQuery(document).on("blur paste keyup",".dslc-accordion-title[contenteditable], .dslc-accordion-content[contenteditable]",(function(){dslc_accordion_generate_code(jQuery(this).closest(".dslc-accordion"))})).on("focus",".dslc-accordion-title[contenteditable], .dslc-accordion-content[contenteditable]",(function(){jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")})),jQuery(document).on("click",".dslc-trigger-lightbox-gallery",(function(e){if(e.preventDefault(),jQuery(this).closest(".dslc-post").length)jQuery(this).closest(".dslc-post").find(".dslc-lightbox-gallery a:first-child").trigger("click");else if(jQuery(this).closest(".dslc-col")){var s=jQuery(this).closest(".dslc-col").index();jQuery(this).closest(".dslc-module-front").find(".dslc-lightbox-gallery a:eq("+s+")").trigger("click")}else jQuery(this).closest(".dslc-module-front").find(".dslc-lightbox-gallery a:first-child").trigger("click")})),jQuery("#dslc-header").hasClass("dslc-header-extra-padding")&&!jQuery("body").hasClass("dslca-enabled")){var i=jQuery("#dslc-header").height();jQuery("#dslc-main .dslc-modules-section:first-child").css({paddingTop:i})}(dslc_check_viewport(),dslc_check_progress_bar_viewport(),jQuery(document).on("scroll",(function(){dslc_check_viewport(),dslc_check_progress_bar_viewport()})),jQuery("#dslc-footer").hasClass("dslc-footer-pos-relative"))&&(s=jQuery("body").height(),t=jQuery("#dslc-footer"),o=jQuery(t).height(),a=jQuery("#dslc-content"),c="100vh",jQuery("#wpadminbar").length&&(c="96.7vh"),s<jQuery(window).height()&&(jQuery(t).css({position:"absolute",bottom:"0",width:"100%"}),jQuery(a).css({"min-height":c,"padding-bottom":o+"px"})))})),jQuery(document).ready((function(e){dslc_responsive_classes(),dslc_carousel(),dslc_masonry(),dslc_parallax(),dslc_init_lightbox(),window.dslc_sticky_row()})),jQuery(window).resize((function(){dslc_responsive_classes(),dslc_carousel_responsive()}))}});
2
  //# sourceMappingURL=client_frontend.min.js.map
1
+ !function(e){var s={};function t(o){if(s[o])return s[o].exports;var a=s[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,t),a.l=!0,a.exports}t.m=e,t.c=s,t.d=function(e,s,o){t.o(e,s)||Object.defineProperty(e,s,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,s){if(1&s&&(e=t(e)),8&s)return e;if(4&s&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&s&&"string"!=typeof e)for(var a in e)t.d(o,a,function(s){return e[s]}.bind(null,a));return o},t.n=function(e){var s=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(s,"a",s),s},t.o=function(e,s){return Object.prototype.hasOwnProperty.call(e,s)},t.p="",t(t.s=2)}({2:function(e,s,t){window.dslc_responsive_classes=e=>{void 0===e&&(e=!1);var s=jQuery(window).width(),t=jQuery("body");1!=e&&(t.hasClass("dslc-res-disabled")||jQuery('.dslca-module-edit-options-tab-hook.dslca-active[data-section="responsive"]').length)||(t.removeClass("dslc-res-phone dslc-res-tablet dslc-res-smaller-monitor dslc-res-big"),s>=1024&&s<1280?t.addClass("dslc-res-smaller-monitor"):s>=768&&s<1024?t.addClass("dslc-res-tablet"):s<768?t.addClass("dslc-res-phone"):t.addClass("dslc-res-big"))},window.dslc_init_accordion=()=>{jQuery(".dslc-accordion").each((function(){var e=jQuery(this),s=e.data("open")-1,t=jQuery(".dslc-accordion-item:eq("+s+")",e),o=t.siblings(".dslc-accordion-item"),a=jQuery(".dslc-accordion-item",e);s>=0?(t.addClass("dslc-active"),o.addClass("dslc-inactive"),jQuery(".dslc-accordion-content",o).hide(),jQuery("body").hasClass("dslca-enabled")||o.find(".dslca-icon").removeClass("dslc-icon-minus").addClass("dslc-icon-plus")):(a.addClass("dslc-inactive"),jQuery(".dslc-accordion-content",a).hide(),jQuery("body").hasClass("dslca-enabled")||a.find(".dslca-icon").removeClass("dslc-icon-minus").addClass("dslc-icon-plus"))}))},window.dslc_init_lightbox=()=>{var e;jQuery(".dslc-lightbox-image").each((function(){e="image",(jQuery(this).attr("href").indexOf("youtube.com")>=0||jQuery(this).attr("href").indexOf("vimeo.com")>=0)&&(e="iframe"),jQuery(this).magnificPopup({type:e})})),jQuery(".dslc-lightbox-gallery").each((function(){jQuery(this).magnificPopup({delegate:"a",type:"image",gallery:{enabled:!0},image:{titleSrc:function(e){var s="";return void 0!==e.el.attr("data-caption")&&(s="<small>"+e.el.attr("data-caption")+"</small>"),e.el.attr("title")+s}}})}))},window.dslc_carousel=()=>{jQuery(".dslc-carousel, .dslc-slider").each((function(e){var s,t,o,a,c;s=jQuery(this),(t=s.closest(".dslc-module-front")).imagesLoaded((function(){if(t.closest(".dslc-modules-section").hasClass("dslc-no-columns-spacing"))var e=0;else e=t.width()/100*2.12766/2;s.hasClass("dslc-carousel")&&(s.find(".dslc-col").css({"margin-left":e,"margin-right":e}),s.css({"margin-left":-1*e,width:s.width()+2*e})),o={items:4,pagination:!0,singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1e3,autoPlay:!1,stopOnHover:!1,lazyLoad:!1,lazyFollow:!0,autoHeight:!1,mouseDrag:!0,touchDrag:!0,addClassActive:!0,transitionStyle:"fade",scrollPerPage:!0},a={items:s.data("columns"),pagination:s.data("pagination"),itemsScaleUp:s.data("scale-up"),slideSpeed:s.data("slide-speed"),paginationSpeed:s.data("pagination-speed"),rewindSpeed:s.data("rewind-speed"),autoPlay:s.data("autoplay"),stopOnHover:s.data("stop-on-hover"),lazyLoad:s.data("lazy-load"),lazyFollow:s.data("lazy-follow"),autoHeight:s.data("flexible-height"),mouseDrag:s.data("mouse-drag"),touchDrag:s.data("touch-drag"),addClassActive:s.data("active-class"),transitionStyle:s.data("animation"),scrollPerPage:s.data("scroll-per-page")},c=jQuery.extend({},o,a),(s.hasClass("dslc-slider")||1==c.items)&&(c.singleItem=!0),0==c.autoPlay&&(c.autoPlay=!1),s.owlCarousel({items:c.items,pagination:c.pagination,singleItem:c.singleItem,itemsScaleUp:c.itemsScaleUp,slideSpeed:c.slideSpeed,paginationSpeed:c.paginationSpeed,rewindSpeed:c.rewindSpeed,autoPlay:c.autoPlay,stopOnHover:c.stopOnHover,lazyLoad:c.lazyLoad,lazyFollow:c.lazyFollow,mouseDrag:c.mouseDrag,touchDrag:c.touchDrag,scrollPerPage:c.scrollPerPage,transitionStyle:c.transitionStyle,autoHeight:c.autoHeight,itemsDesktop:!1,itemsDesktopSmall:!1,itemsTablet:!1,itemsMobile:[766,1],afterInit:function(){s.prev(".dslc-loader").remove(),s.css({opacity:1,maxHeight:"none"})},afterAction:function(){var e=this.owl.visibleItems;s.find(".dslc-carousel-item-visible").removeClass("dslc-carousel-item-visible"),s.find(".owl-item").filter((function(s){return e.indexOf(s)>-1})).addClass("dslc-carousel-item-visible")}}),jQuery(".dslc-carousel-nav-next",t).click((function(e){e.preventDefault(),s.data("owlCarousel").next()})),jQuery(".dslc-carousel-nav-prev",t).click((function(e){e.preventDefault(),s.data("owlCarousel").prev()}))}))}))},window.dslc_carousel_responsive=()=>{jQuery(".dslc-carousel").each((function(){var e,s;if(s=(e=jQuery(this)).closest(".dslc-module-front"),e.css({"margin-left":0,width:"auto"}),s.closest(".dslc-modules-section").hasClass("dslc-no-columns-spacing"))var t=0;else t=s.width()/100*2.12766/2;e.hasClass("dslc-carousel")&&(e.find(".dslc-col").css({"margin-left":t,"margin-right":t}),e.css({"margin-left":-1*t,width:e.width()+2*t}))}))},window.dslc_bg_video=()=>{jQuery(".dslc-bg-video").each((function(){jQuery(this).find("video").length||jQuery(this).css({opacity:1})})),jQuery(".dslc-bg-video video").mediaelementplayer({loop:!0,pauseOtherPlayers:!1,success:function(e,s){e.addEventListener("loadeddata",(function(e){jQuery(s).closest(".dslc-bg-video").animate({opacity:1},400)})),e.play()}})},window.dslc_parallax=()=>{jQuery(".dslc-init-parallax").each((function(){var e=jQuery(this);e.imagesLoaded({background:!0},(function(){var s=e.css("background-position").split(" ")[0]+" "+-1*(window.pageYOffset-e.offset().top)/4+"px";e.css({backgroundPosition:s})}))})),window.onscroll=function(){jQuery(".dslc-init-parallax").each((function(){var e=jQuery(this).css("background-position").split(" ")[0]+" "+-1*(window.pageYOffset-jQuery(this).offset().top)/4+"px";jQuery(this).css({backgroundPosition:e})}))}},window.dslc_masonry=(e,s)=>{e=void 0!==e?e:jQuery("body"),s=void 0!==s&&s,jQuery(".dslc-init-masonry",e).each((function(){var e,t,o,a;e=jQuery(this).find(".dslc-posts-inner").length?jQuery(this).find(".dslc-posts-inner"):jQuery(this),t=".dslc-masonry-item",jQuery(t,e).width(),o=jQuery(e).width(),a=jQuery(this).closest(".dslc-modules-section").hasClass("dslc-no-columns-spacing")?0:o/100*2.05,e.data("masonry")?jQuery(e).imagesLoaded((function(){jQuery(e).masonry("destroy").masonry({gutter:a,itemSelector:t}),jQuery(e).find(".dslc-post:not(.dslc-masonry-item)").hide(),s&&jQuery(t,e).css({scale:"0.2"}).animate({scale:"1"},500)})):(jQuery(t).css({marginRight:0}),jQuery(e).imagesLoaded((function(){jQuery(e).masonry({gutter:a,itemSelector:t})})))}))},window.dslc_tabs_generate_code=e=>{var s=e.closest(".dslc-module-front");dslcTabsNav=jQuery(".dslc-tabs-nav",e),dslcTabsContent=jQuery(".dslc-tabs-content",e),dslcTabContent=jQuery(".dslc-tabs-tab-content",e);var t="",o="",a=0,c=0;jQuery(".dslc-tabs-nav-hook",dslcTabsNav).each((function(){++a>1&&(t+=" (dslc_sep) "),t+=jQuery(this).find(".dslc-tabs-nav-hook-title").text()})),dslcTabContent.each((function(){++c>1&&(o+=" (dslc_sep) "),o+=jQuery(this).find(".dslca-tab-plain-content").val()})),o=o.replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea"),jQuery('.dslca-module-option-front[data-id="tabs_nav"]',s).val(t),jQuery('.dslca-module-option-front[data-id="tabs_content"]',s).val(o),parent.LiveComposer.Builder.Actions.optionsChanged()},window.dslc_accordion_generate_code=e=>{var s=e.closest(".dslc-module-front"),t=0,o="",a="";jQuery(".dslc-accordion-item",e).each((function(){++t>1&&(o+=" (dslc_sep) ",a+=" (dslc_sep) "),o+=jQuery(this).find(".dslc-accordion-title").text(),a+=jQuery(this).find(".dslc-accordion-content").find(".dslca-accordion-plain-content").val()})),a=a.replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea"),jQuery('.dslca-module-option-front[data-id="accordion_nav"]',s).val(o),jQuery('.dslca-module-option-front[data-id="accordion_content"]',s).val(a),parent.LiveComposer.Builder.Actions.optionsChanged()},window.dslc_tabs=()=>{var e,s;jQuery(".dslc-tabs").each((function(){e=jQuery(this),s=jQuery(".dslc-tabs-nav",e),jQuery(".dslc-tabs-content",e),jQuery(".dslc-tabs-tab-content",e).eq(0).addClass("dslc-active"),jQuery(".dslc-tabs-nav-hook",s).eq(0).addClass("dslc-active")}))},jQuery(document).on("click",".dslca-add-new-tab-hook",e=>function(e){var s=jQuery(e.target).closest(".dslc-tabs"),t=jQuery(".dslc-tabs-nav .dslc-tabs-nav-hook:last",s),o=jQuery(".dslc-tabs-tab-content:last",s),a=jQuery(".dslc-tabs-nav .dslc-tabs-nav-hook",s).length;t.after('<span class="dslc-tabs-nav-hook"><span class="dslc-tabs-nav-hook-title" contenteditable="true">Click to edit title</span><span class="dslca-delete-tab-hook"><span class="dslca-icon dslc-icon-remove"></span></span></span>'),o.after('<div class="dslc-tabs-tab-content"><div class="dslca-editable-content" data-edit-id="'+a+'" data-id="'+a+'">This is just placeholder text.</div><textarea class="dslca-tab-plain-content" data-edit-id="'+a+'" data-id="'+a+'">This is just placeholder text.</textarea><div class="dslca-wysiwyg-actions-edit"><span class="dslca-wysiwyg-actions-edit-hook" data-event="wysiwyg-edit" data-id-to-edit="'+a+'">Open in WP Editor</span></div></div>'),jQuery(".dslc-tabs-nav-hook:last",s).click(),dslc_tabs_generate_code(s),jQuery(s[0]).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(s[0]).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")}(e)),jQuery(document).on("click",".dslca-delete-tab-hook",e=>function(e){console.log("dslc_on_tab_delete");var s=jQuery(e.target).closest(".dslc-tabs"),t=jQuery(e.target).closest(".dslc-tabs-nav-hook"),o=t.index(),a=jQuery(".dslc-tabs-tab-content",s).eq(o);jQuery(".dslc-tabs-nav .dslc-tabs-nav-hook",s).length>1&&(t.remove(),a.remove(),jQuery(".dslc-tabs-tab-content.dslc-active",s).length||jQuery(".dslc-tabs-nav-hook:first",s).trigger("click"),dslc_tabs_generate_code(s)),jQuery(s[0]).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(s[0]).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click"),e.stopPropagation()}(e)),jQuery(document).on("click",".dslc-tabs-nav-hook",e=>function(e){dslcTabs=jQuery(e.target).closest(".dslc-tabs"),dslcTabsNav=jQuery(".dslc-tabs-nav",dslcTabs),dslcTabsContent=jQuery(".dslc-tabs-content",dslcTabs),dslcTabContent=jQuery(".dslc-tabs-tab-content",dslcTabs),dslcTabIndex=jQuery(e.currentTarget).index(),jQuery(".dslc-tabs-nav-hook.dslc-active",dslcTabs).removeClass("dslc-active"),jQuery(e.currentTarget).addClass("dslc-active"),jQuery(".dslc-tabs-tab-content.dslc-active",dslcTabs).length?jQuery(".dslc-tabs-tab-content.dslc-active",dslcTabs).animate({opacity:0},250,(function(){jQuery(this).removeClass("dslc-active"),dslcTabContent.eq(dslcTabIndex).css({opacity:0}).addClass("dslc-active").show().animate({opacity:1},250)})):dslcTabContent.eq(dslcTabIndex).css({opacity:0}).addClass("dslc-active").show().animate({opacity:1},250)}(e)),jQuery(document).on("blur paste",".dslc-tabs-nav-hook-title[contenteditable], .dslc-tabs-tab-content[contenteditable]",(function(e){dslc_tabs_generate_code(jQuery(this).closest(".dslc-tabs"))})).on("focus",".dslc-tabs-nav-hook-title[contenteditable], .dslc-tabs-tab-content[contenteditable]",(function(e){jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")})),window.dslc_download_count_increment=e=>{jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-download-count-increment",dslc_post_id:e},(function(e){}))},window.dslc_check_viewport=()=>{!!document.documentMode?jQuery(".dslc-in-viewport-check").css("opacity",1):jQuery(".dslc-in-viewport-check:in-viewport:not(.dslc-in-viewport)").each((function(){var e=jQuery(this),s=e.data("dslc-anim"),t=parseInt(e.data("dslc-anim-duration"))/1e3+"s";jQuery(window).width()<768&&(t="0s");var o=parseInt(e.data("dslc-anim-delay")),a=s+" "+t+" "+e.data("dslc-anim-easing")+" forwards";jQuery(this).addClass("dslc-in-viewport"),o>0?setTimeout((function(){e.css({"-webkit-animation":a,"-moz-animation":a,animation:a})}),o):jQuery(this).css({"-webkit-animation":a,"-moz-animation":a,animation:a})}))},window.dslc_el_anim_hover=()=>{jQuery(".dslc-on-hover-anim-target").each((function(){var e="all "+parseInt(jQuery(this).data("dslc-anim-speed"))/1e3+"s ease-out";jQuery(this).css({"-webkit-transition":e,"-moz-transition":e,transition:e})}))},window.dslc_check_progress_bar_viewport=()=>{jQuery(".dslc-progress-bar-animated:in-viewport:not(.dslc-progress-bar-in-viewport)").each((function(){var e=jQuery(this),s=e.find(".dslc-progress-bar-loader-inner"),t=s.data("amount")+"%",o=s.data("speed");e.addClass("dslc-progress-bar-in-viewport"),s.css({width:0,opacity:1}).animate({width:t},o)}))},window.dslc_validate_comment_form=e=>{var s=e.find("#author"),t=e.find("#email"),o=(e.find("#url"),e.find("#comment")),a=!0;return s.length&&0==s.val().length?(s.css({borderColor:"#e55f5f"}),a=!1):s.attr("style",""),!t.length||0!=t.val().length&&-1!==t.val().indexOf("@")?t.attr("style",""):(t.css({borderColor:"#e55f5f"}),a=!1),0==o.val().length?(o.css({borderColor:"#e55f5f"}),a=!1):o.attr("style",""),a},window.dslc_social_share=(e,s,t)=>{var o,a,c="status=no,height="+s+",width="+e+",resizable=yes,left="+(o=window.screen.width/2-(e/2+10))+",top="+(a=window.screen.height/2-(s/2+50))+",screenX="+o+",screenY="+a+",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no";return location.href,document.title,window.open(t,"sharer",c),!1},window.dslc_sticky_row=()=>{if(jQuery("body .dslc-modules-section").hasClass("dslc-sticky-row")&&!jQuery("body").hasClass("dslca-enabled")){var e=jQuery("body .dslc-modules-section.dslc-sticky-row"),s=jQuery(".dslc-sticky-row");s.each((function(e,t){jQuery(s).eq(e).outerHeight();jQuery(t).wrap('<div class="dslc-modules-section-placeholder"></div>').parent().height(jQuery(t).outerHeight())}));(e=jQuery("body .dslc-modules-section.dslc-sticky-row")).offset().top;jQuery("#wpadminbar").length&&jQuery("#wpadminbar").height();var t=jQuery(".dslc-sticky-row");document.addEventListener("scroll",s=>{var o=window.scrollY;(o<50||o%10==0)&&(o>=0?t.each((function(e,s){var a=jQuery(t).eq(e),c=a.offset().top,i=a.outerHeight();jQuery("#wpadminbar").length&&(c-=jQuery("#wpadminbar").height());var d=o<=s.exTop,l=c<=o,n="fixed",r=0;if(d)n="relative",r=0,s.isFixed=!1,s.classList.remove("dslc-sticky-section-fixed"),jQuery(s).closest(".dslc-modules-section-placeholder").height(jQuery(s).outerHeight());else if(l){if(n="fixed",0<e)for(var u=0;u<e;u++)r+=jQuery(t).eq(u).outerHeight();o+=i,s.isFixed||(s.isFixed=!0,s.exTop=c),jQuery("#wpadminbar").length&&(r+=32),s.classList.add("dslc-sticky-section-fixed"),jQuery(s).closest(".dslc-modules-section-placeholder").height(jQuery(s).outerHeight())}jQuery(s).css({position:n,top:r+"px"})})):(e.removeClass("dslc-sticky-section-fixed"),t.css({position:"relative",top:"0px"})))},{capture:!1,passive:!0})}},jQuery(document).ready((function(e){var s,t,o,a,c;if(document.querySelector("meta[name=viewport]").setAttribute("content","width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"),dslc_el_anim_hover(),dslc_bg_video(),dslc_tabs(),jQuery(document).on("click",".dslc-pagination-load-more a",(function(e){if(e.preventDefault(),jQuery(this).parent().hasClass("dslc-active")){var s=jQuery(this),t=jQuery(this).closest(".dslc-module-front"),o=t.find(".dslc-pagination"),a=t.find(".dslc-posts-inner"),c=t.attr("id"),i=s.attr("href"),d=t.find(".dslc-load-more-temp");s.find(".dslc-icon").addClass("dslc-icon-spin"),d.load(i+" #"+c,(function(){a.append('<div class="dslc-post-separator"></div>'),a.append(d.find(".dslc-posts-inner").html()),t.find(".dslc-pagination").html(d.find(".dslc-pagination").html()),o.replaceWith(d.find(".dslc-pagination")),d.html(""),a.imagesLoaded((function(){t.find(".dslc-init-masonry").length&&t.find(".dslc-init-masonry .dslc-posts-inner").masonry("reloadItems").masonry()}))}))}})),jQuery(".dslc-tp-comment-form form").submit((function(e){dslc_validate_comment_form(jQuery(this))||e.preventDefault()})),jQuery(".dslc-mobile-navigation select").change((function(){window.location=jQuery(this).val()})),jQuery(document).on("click",".dslc-notification-close",(function(e){jQuery(this).closest(".dslc-notification").slideUp(200,(function(){jQuery(this).remove()}))})),jQuery(document).on("click",".dslc-post-filter",(function(){var e=jQuery(this),s=e.closest(".dslc-module-front").find(".dslc-posts"),t=e.closest(".dslc-module-front"),o=e.data("filter-id"),a=jQuery(),c=jQuery();"show-all"===o?(a=s.closest(".dslc-module-front").find(".dslc-post"),c=jQuery()):(a=s.closest(".dslc-module-front").find('.dslc-post[data-cats*="'+o+'"]'),c=s.closest(".dslc-module-front").find('.dslc-post:not([data-cats*="'+o+'"])')),e.removeClass("dslc-inactive").addClass("dslc-active").siblings(".dslc-active").removeClass("dslc-active").addClass("dslc-inactive"),s.hasClass("dslc-init-grid")?(a.stop().animate({opacity:1},300),c.stop().animate({opacity:.3},300)):(c.removeClass("dslc-masonry-item dslc-masonry-item-animate").css({visibility:"hidden"}),a.addClass("dslc-masonry-item dslc-masonry-item-animate").css({visibility:"visible"}).show(),dslc_masonry(t,!0))})),jQuery(document).on("click",".dslc-download-count-hook",(function(e){dslc_download_count_increment(jQuery(this).data("post-id"))})),jQuery(".dslc-notification-box-has-timeout").each((function(){var e=jQuery(this);nTimeout="none",moduleID=e.closest(".dslc-module-front").data("module-id"),cookieID="nBox"+moduleID,e.data("notification-timeout")&&null==Cookies.get(cookieID)&&e.show()})),jQuery(document).on("click",".dslc-notification-box-close",(function(){var e=jQuery(this).closest(".dslc-notification-box"),s="none",t="nBox"+e.closest(".dslc-module-front").data("module-id");e.data("notification-timeout")&&(s=e.data("notification-timeout")),"none"!==s&&Cookies.set(t,"closed",{expires:s}),e.animate({opacity:0},400,(function(){jQuery(this).remove()}))})),dslc_init_lightbox(),dslc_init_accordion(),jQuery(document).on("click",".dslc-accordion-hook",(function(){var e=jQuery(this).closest(".dslc-accordion-item"),s=e.siblings(".dslc-accordion-item");e.hasClass("dslc-active")?(jQuery("body").hasClass("dslca-enabled")||(e.find(".dslca-icon").hasClass("dslc-icon-minus")?e.find(".dslca-icon").removeClass("dslc-icon-minus").addClass("dslc-icon-plus"):e.find(".dslca-icon").removeClass("dslc-icon-plus").addClass("dslc-icon-minus")),s=e):(e.removeClass("dslc-inactive").addClass("dslc-active"),jQuery("body").hasClass("dslca-enabled")||(e.find(".dslca-icon").hasClass("dslc-icon-minus")?e.find(".dslca-icon").removeClass("dslc-icon-minus").addClass("dslc-icon-plus"):(e.find(".dslca-icon").removeClass("dslc-icon-plus").addClass("dslc-icon-minus"),s.find(".dslca-icon").removeClass("dslc-icon-minus").addClass("dslc-icon-plus")))),s.removeClass("dslc-active").addClass("dslc-inactive"),jQuery(".dslc-accordion-content",e).slideDown(300),jQuery(".dslc-accordion-content",s).slideUp(300)})),jQuery(document).on("click",".dslca-add-accordion-hook",(function(){var e=jQuery(this).closest(".dslc-accordion"),s=jQuery(".dslc-accordion-item:last",e),t=s.clone().insertAfter(s);numberOfTabs=jQuery(".dslc-accordion-item",e).length,jQuery(".dslc-accordion-title",t).html("CLICK TO EDIT"),jQuery(".dslc-accordion-content",t).html('<div class="dslca-editable-content" data-edit-id="'+numberOfTabs+'">Placeholder content, click to edit. Lorem ipsum dolor sit amet, consectetur tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div><textarea class="dslca-accordion-plain-content"></textarea><div class="dslca-wysiwyg-actions-edit"><span class="dslca-wysiwyg-actions-edit-hook" data-event="wysiwyg-edit" data-id-to-edit="'+numberOfTabs+'">Edit Content</span></div>'),jQuery(".dslc-accordion-hook",t).click(),dslc_accordion_generate_code(e),jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")})),jQuery(document).on("click",".dslca-delete-accordion-hook",(function(e){var s=jQuery(this).closest(".dslc-accordion"),t=jQuery(this).closest(".dslc-accordion-item");jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click"),jQuery(".dslc-accordion-item",s).length>1?(t.remove(),jQuery(".dslc-accordion-item.dslc-active",s).length||jQuery(".dslc-accordion-hook:first",s).trigger("click"),dslc_accordion_generate_code(s)):alert("You can not delete the last remaining accordion item."),e.stopPropagation()})),jQuery(document).on("click",".dslca-move-up-accordion-hook, .dslca-move-down-accordion-hook",(function(e){var s=jQuery(this).closest(".dslc-accordion"),t=jQuery(this).closest(".dslc-accordion-item"),o=t.next(".dslc-accordion-item"),a=t.prev(".dslc-accordion-item");jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click"),jQuery(this).hasClass("dslca-move-down-accordion-hook")?(t.insertAfter(o),dslc_accordion_generate_code(s)):(t.insertBefore(a),dslc_accordion_generate_code(s)),e.stopPropagation()})),jQuery(document).on("blur paste keyup",".dslc-accordion-title[contenteditable], .dslc-accordion-content[contenteditable]",(function(){dslc_accordion_generate_code(jQuery(this).closest(".dslc-accordion"))})).on("focus",".dslc-accordion-title[contenteditable], .dslc-accordion-content[contenteditable]",(function(){jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")})),jQuery(document).on("click",".dslc-trigger-lightbox-gallery",(function(e){if(e.preventDefault(),jQuery(this).closest(".dslc-post").length)jQuery(this).closest(".dslc-post").find(".dslc-lightbox-gallery a:first-child").trigger("click");else if(jQuery(this).closest(".dslc-col")){var s=jQuery(this).closest(".dslc-col").index();jQuery(this).closest(".dslc-module-front").find(".dslc-lightbox-gallery a:eq("+s+")").trigger("click")}else jQuery(this).closest(".dslc-module-front").find(".dslc-lightbox-gallery a:first-child").trigger("click")})),jQuery("#dslc-header").hasClass("dslc-header-extra-padding")&&!jQuery("body").hasClass("dslca-enabled")){var i=jQuery("#dslc-header").height();jQuery("#dslc-main .dslc-modules-section:first-child").css({paddingTop:i})}(dslc_check_viewport(),dslc_check_progress_bar_viewport(),jQuery(document).on("scroll",(function(){dslc_check_viewport(),dslc_check_progress_bar_viewport()})),jQuery("#dslc-footer").hasClass("dslc-footer-pos-relative"))&&(s=jQuery("body").height(),t=jQuery("#dslc-footer"),o=jQuery(t).height(),a=jQuery("#dslc-content"),c="100vh",jQuery("#wpadminbar").length&&(c="96.7vh"),s<jQuery(window).height()&&(jQuery(t).css({position:"absolute",bottom:"0",width:"100%"}),jQuery(a).css({"min-height":c,"padding-bottom":o+"px"})))})),jQuery(document).ready((function(e){dslc_responsive_classes(),dslc_carousel(),dslc_masonry(),dslc_parallax(),dslc_init_lightbox(),window.dslc_sticky_row()})),jQuery(window).resize((function(){dslc_responsive_classes(),dslc_carousel_responsive()}))}});
2
  //# sourceMappingURL=client_frontend.min.js.map
js/dist/client_frontend.min.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"client_frontend.min.js","sources":["webpack:///client_frontend.min.js"],"sourcesContent":["!function(e){var s={};function t(o){if(s[o])return s[o].exports;var a=s[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,t),a.l=!0,a.exports}t.m=e,t.c=s,t.d=function(e,s,o){t.o(e,s)||Object.defineProperty(e,s,{enumerable:!0,get:o})},t.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},t.t=function(e,s){if(1&s&&(e=t(e)),8&s)return e;if(4&s&&\"object\"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,\"default\",{enumerable:!0,value:e}),2&s&&\"string\"!=typeof e)for(var a in e)t.d(o,a,function(s){return e[s]}.bind(null,a));return o},t.n=function(e){var s=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(s,\"a\",s),s},t.o=function(e,s){return Object.prototype.hasOwnProperty.call(e,s)},t.p=\"\",t(t.s=2)}({2:function(e,s,t){window.dslc_responsive_classes=function(e){void 0===e&&(e=!1);var s=jQuery(window).width(),t=jQuery(\"body\");1!=e&&(t.hasClass(\"dslc-res-disabled\")||jQuery('.dslca-module-edit-options-tab-hook.dslca-active[data-section=\"responsive\"]').length)||(t.removeClass(\"dslc-res-phone dslc-res-tablet dslc-res-smaller-monitor dslc-res-big\"),s>=1024&&s<1280?t.addClass(\"dslc-res-smaller-monitor\"):s>=768&&s<1024?t.addClass(\"dslc-res-tablet\"):s<768?t.addClass(\"dslc-res-phone\"):t.addClass(\"dslc-res-big\"))},window.dslc_init_accordion=function(){jQuery(\".dslc-accordion\").each((function(){var e=jQuery(this),s=e.data(\"open\")-1,t=jQuery(\".dslc-accordion-item:eq(\"+s+\")\",e),o=t.siblings(\".dslc-accordion-item\"),a=jQuery(\".dslc-accordion-item\",e);s>=0?(t.addClass(\"dslc-active\"),o.addClass(\"dslc-inactive\"),jQuery(\".dslc-accordion-content\",o).hide(),jQuery(\"body\").hasClass(\"dslca-enabled\")||o.find(\".dslca-icon\").removeClass(\"dslc-icon-minus\").addClass(\"dslc-icon-plus\")):(a.addClass(\"dslc-inactive\"),jQuery(\".dslc-accordion-content\",a).hide(),jQuery(\"body\").hasClass(\"dslca-enabled\")||a.find(\".dslca-icon\").removeClass(\"dslc-icon-minus\").addClass(\"dslc-icon-plus\"))}))},window.dslc_init_lightbox=function(){var e;jQuery(\".dslc-lightbox-image\").each((function(){e=\"image\",(jQuery(this).attr(\"href\").indexOf(\"youtube.com\")>=0||jQuery(this).attr(\"href\").indexOf(\"vimeo.com\")>=0)&&(e=\"iframe\"),jQuery(this).magnificPopup({type:e})})),jQuery(\".dslc-lightbox-gallery\").each((function(){jQuery(this).magnificPopup({delegate:\"a\",type:\"image\",gallery:{enabled:!0},image:{titleSrc:function(e){var s=\"\";return void 0!==e.el.attr(\"data-caption\")&&(s=\"<small>\"+e.el.attr(\"data-caption\")+\"</small>\"),e.el.attr(\"title\")+s}}})}))},window.dslc_carousel=function(){jQuery(\".dslc-carousel, .dslc-slider\").each((function(e){var s,t,o,a,c;s=jQuery(this),(t=s.closest(\".dslc-module-front\")).imagesLoaded((function(){if(t.closest(\".dslc-modules-section\").hasClass(\"dslc-no-columns-spacing\"))var e=0;else e=t.width()/100*2.12766/2;s.hasClass(\"dslc-carousel\")&&(s.find(\".dslc-col\").css({\"margin-left\":e,\"margin-right\":e}),s.css({\"margin-left\":-1*e,width:s.width()+2*e})),o={items:4,pagination:!0,singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1e3,autoPlay:!1,stopOnHover:!1,lazyLoad:!1,lazyFollow:!0,autoHeight:!1,mouseDrag:!0,touchDrag:!0,addClassActive:!0,transitionStyle:\"fade\",scrollPerPage:!0},a={items:s.data(\"columns\"),pagination:s.data(\"pagination\"),itemsScaleUp:s.data(\"scale-up\"),slideSpeed:s.data(\"slide-speed\"),paginationSpeed:s.data(\"pagination-speed\"),rewindSpeed:s.data(\"rewind-speed\"),autoPlay:s.data(\"autoplay\"),stopOnHover:s.data(\"stop-on-hover\"),lazyLoad:s.data(\"lazy-load\"),lazyFollow:s.data(\"lazy-follow\"),autoHeight:s.data(\"flexible-height\"),mouseDrag:s.data(\"mouse-drag\"),touchDrag:s.data(\"touch-drag\"),addClassActive:s.data(\"active-class\"),transitionStyle:s.data(\"animation\"),scrollPerPage:s.data(\"scroll-per-page\")},c=jQuery.extend({},o,a),(s.hasClass(\"dslc-slider\")||1==c.items)&&(c.singleItem=!0),0==c.autoPlay&&(c.autoPlay=!1),s.owlCarousel({items:c.items,pagination:c.pagination,singleItem:c.singleItem,itemsScaleUp:c.itemsScaleUp,slideSpeed:c.slideSpeed,paginationSpeed:c.paginationSpeed,rewindSpeed:c.rewindSpeed,autoPlay:c.autoPlay,stopOnHover:c.stopOnHover,lazyLoad:c.lazyLoad,lazyFollow:c.lazyFollow,mouseDrag:c.mouseDrag,touchDrag:c.touchDrag,scrollPerPage:c.scrollPerPage,transitionStyle:c.transitionStyle,autoHeight:c.autoHeight,itemsDesktop:!1,itemsDesktopSmall:!1,itemsTablet:!1,itemsMobile:[766,1],afterInit:function(){s.prev(\".dslc-loader\").remove(),s.css({opacity:1,maxHeight:\"none\"})},afterAction:function(){var e=this.owl.visibleItems;s.find(\".dslc-carousel-item-visible\").removeClass(\"dslc-carousel-item-visible\"),s.find(\".owl-item\").filter((function(s){return e.indexOf(s)>-1})).addClass(\"dslc-carousel-item-visible\")}}),jQuery(\".dslc-carousel-nav-next\",t).click((function(e){e.preventDefault(),s.data(\"owlCarousel\").next()})),jQuery(\".dslc-carousel-nav-prev\",t).click((function(e){e.preventDefault(),s.data(\"owlCarousel\").prev()}))}))}))},window.dslc_carousel_responsive=function(){jQuery(\".dslc-carousel\").each((function(){var e,s;if(s=(e=jQuery(this)).closest(\".dslc-module-front\"),e.css({\"margin-left\":0,width:\"auto\"}),s.closest(\".dslc-modules-section\").hasClass(\"dslc-no-columns-spacing\"))var t=0;else t=s.width()/100*2.12766/2;e.hasClass(\"dslc-carousel\")&&(e.find(\".dslc-col\").css({\"margin-left\":t,\"margin-right\":t}),e.css({\"margin-left\":-1*t,width:e.width()+2*t}))}))},window.dslc_bg_video=function(){jQuery(\".dslc-bg-video\").each((function(){jQuery(this).find(\"video\").length||jQuery(this).css({opacity:1})})),jQuery(\".dslc-bg-video video\").mediaelementplayer({loop:!0,pauseOtherPlayers:!1,success:function(e,s){e.addEventListener(\"loadeddata\",(function(e){jQuery(s).closest(\".dslc-bg-video\").animate({opacity:1},400)})),e.play()}})},window.dslc_parallax=function(){jQuery(\".dslc-init-parallax\").each((function(){var e=jQuery(this);e.imagesLoaded({background:!0},(function(){var s=e.css(\"background-position\").split(\" \")[0]+\" \"+-1*(window.pageYOffset-e.offset().top)/4+\"px\";e.css({backgroundPosition:s})}))})),window.onscroll=function(){jQuery(\".dslc-init-parallax\").each((function(){var e=jQuery(this).css(\"background-position\").split(\" \")[0]+\" \"+-1*(window.pageYOffset-jQuery(this).offset().top)/4+\"px\";jQuery(this).css({backgroundPosition:e})}))}},window.dslc_masonry=function(e,s){e=void 0!==e?e:jQuery(\"body\"),s=void 0!==s&&s,jQuery(\".dslc-init-masonry\",e).each((function(){var e,t,o,a;e=jQuery(this).find(\".dslc-posts-inner\").length?jQuery(this).find(\".dslc-posts-inner\"):jQuery(this),t=\".dslc-masonry-item\",jQuery(t,e).width(),o=jQuery(e).width(),a=jQuery(this).closest(\".dslc-modules-section\").hasClass(\"dslc-no-columns-spacing\")?0:o/100*2.05,e.data(\"masonry\")?jQuery(e).imagesLoaded((function(){jQuery(e).masonry(\"destroy\").masonry({gutter:a,itemSelector:t}),jQuery(e).find(\".dslc-post:not(.dslc-masonry-item)\").hide(),s&&jQuery(t,e).css({scale:\"0.2\"}).animate({scale:\"1\"},500)})):(jQuery(t).css({marginRight:0}),jQuery(e).imagesLoaded((function(){jQuery(e).masonry({gutter:a,itemSelector:t})})))}))},window.dslc_tabs_generate_code=function(e){var s=e.closest(\".dslc-module-front\");dslcTabsNav=jQuery(\".dslc-tabs-nav\",e),dslcTabsContent=jQuery(\".dslc-tabs-content\",e),dslcTabContent=jQuery(\".dslc-tabs-tab-content\",e);var t=\"\",o=\"\",a=0,c=0;jQuery(\".dslc-tabs-nav-hook\",dslcTabsNav).each((function(){++a>1&&(t+=\" (dslc_sep) \"),t+=jQuery(this).find(\".dslc-tabs-nav-hook-title\").text()})),dslcTabContent.each((function(){++c>1&&(o+=\" (dslc_sep) \"),o+=jQuery(this).find(\".dslca-tab-plain-content\").val()})),o=o.replace(/<textarea/g,\"<lctextarea\").replace(/<\\/textarea/g,\"</lctextarea\"),jQuery('.dslca-module-option-front[data-id=\"tabs_nav\"]',s).val(t),jQuery('.dslca-module-option-front[data-id=\"tabs_content\"]',s).val(o),parent.LiveComposer.Builder.Actions.optionsChanged()},window.dslc_accordion_generate_code=function(e){var s=e.closest(\".dslc-module-front\"),t=0,o=\"\",a=\"\";jQuery(\".dslc-accordion-item\",e).each((function(){++t>1&&(o+=\" (dslc_sep) \",a+=\" (dslc_sep) \"),o+=jQuery(this).find(\".dslc-accordion-title\").text(),a+=jQuery(this).find(\".dslc-accordion-content\").find(\".dslca-accordion-plain-content\").val()})),a=a.replace(/<textarea/g,\"<lctextarea\").replace(/<\\/textarea/g,\"</lctextarea\"),jQuery('.dslca-module-option-front[data-id=\"accordion_nav\"]',s).val(o),jQuery('.dslca-module-option-front[data-id=\"accordion_content\"]',s).val(a),parent.LiveComposer.Builder.Actions.optionsChanged()},window.dslc_tabs=function(){var e,s;jQuery(\".dslc-tabs\").each((function(){e=jQuery(this),s=jQuery(\".dslc-tabs-nav\",e),jQuery(\".dslc-tabs-content\",e),jQuery(\".dslc-tabs-tab-content\",e).eq(0).addClass(\"dslc-active\"),jQuery(\".dslc-tabs-nav-hook\",s).eq(0).addClass(\"dslc-active\")}))},jQuery(document).on(\"click\",\".dslca-add-new-tab-hook\",(function(e){return function(e){var s=jQuery(e.target).closest(\".dslc-tabs\"),t=jQuery(\".dslc-tabs-nav .dslc-tabs-nav-hook:last\",s),o=jQuery(\".dslc-tabs-tab-content:last\",s),a=jQuery(\".dslc-tabs-nav .dslc-tabs-nav-hook\",s).length;t.after('<span class=\"dslc-tabs-nav-hook\"><span class=\"dslc-tabs-nav-hook-title\" contenteditable=\"true\">Click to edit title</span><span class=\"dslca-delete-tab-hook\"><span class=\"dslca-icon dslc-icon-remove\"></span></span></span>'),o.after('<div class=\"dslc-tabs-tab-content\"><div class=\"dslca-editable-content\" data-edit-id=\"'+a+'\" data-id=\"'+a+'\">This is just placeholder text.</div><textarea class=\"dslca-tab-plain-content\" data-edit-id=\"'+a+'\" data-id=\"'+a+'\">This is just placeholder text.</textarea><div class=\"dslca-wysiwyg-actions-edit\"><span class=\"dslca-wysiwyg-actions-edit-hook\" data-event=\"wysiwyg-edit\" data-id-to-edit=\"'+a+'\">Open in WP Editor</span></div></div>'),jQuery(\".dslc-tabs-nav-hook:last\",s).click(),dslc_tabs_generate_code(s),jQuery(s[0]).closest(\".dslc-module-front\").hasClass(\"dslca-module-being-edited\")||jQuery(s[0]).closest(\".dslc-module-front\").find(\".dslca-module-edit-hook\").trigger(\"click\")}(e)})),jQuery(document).on(\"click\",\".dslca-delete-tab-hook\",(function(e){return function(e){console.log(\"dslc_on_tab_delete\");var s=jQuery(e.target).closest(\".dslc-tabs\"),t=jQuery(e.target).closest(\".dslc-tabs-nav-hook\"),o=t.index(),a=jQuery(\".dslc-tabs-tab-content\",s).eq(o);jQuery(\".dslc-tabs-nav .dslc-tabs-nav-hook\",s).length>1&&(t.remove(),a.remove(),jQuery(\".dslc-tabs-tab-content.dslc-active\",s).length||jQuery(\".dslc-tabs-nav-hook:first\",s).trigger(\"click\"),dslc_tabs_generate_code(s)),jQuery(s[0]).closest(\".dslc-module-front\").hasClass(\"dslca-module-being-edited\")||jQuery(s[0]).closest(\".dslc-module-front\").find(\".dslca-module-edit-hook\").trigger(\"click\"),e.stopPropagation()}(e)})),jQuery(document).on(\"click\",\".dslc-tabs-nav-hook\",(function(e){return function(e){dslcTabs=jQuery(e.target).closest(\".dslc-tabs\"),dslcTabsNav=jQuery(\".dslc-tabs-nav\",dslcTabs),dslcTabsContent=jQuery(\".dslc-tabs-content\",dslcTabs),dslcTabContent=jQuery(\".dslc-tabs-tab-content\",dslcTabs),dslcTabIndex=jQuery(e.currentTarget).index(),jQuery(\".dslc-tabs-nav-hook.dslc-active\",dslcTabs).removeClass(\"dslc-active\"),jQuery(e.currentTarget).addClass(\"dslc-active\"),jQuery(\".dslc-tabs-tab-content.dslc-active\",dslcTabs).length?jQuery(\".dslc-tabs-tab-content.dslc-active\",dslcTabs).animate({opacity:0},250,(function(){jQuery(this).removeClass(\"dslc-active\"),dslcTabContent.eq(dslcTabIndex).css({opacity:0}).addClass(\"dslc-active\").show().animate({opacity:1},250)})):dslcTabContent.eq(dslcTabIndex).css({opacity:0}).addClass(\"dslc-active\").show().animate({opacity:1},250)}(e)})),jQuery(document).on(\"blur paste\",\".dslc-tabs-nav-hook-title[contenteditable], .dslc-tabs-tab-content[contenteditable]\",(function(e){dslc_tabs_generate_code(jQuery(this).closest(\".dslc-tabs\"))})).on(\"focus\",\".dslc-tabs-nav-hook-title[contenteditable], .dslc-tabs-tab-content[contenteditable]\",(function(e){jQuery(this).closest(\".dslc-module-front\").hasClass(\"dslca-module-being-edited\")||jQuery(this).closest(\".dslc-module-front\").find(\".dslca-module-edit-hook\").trigger(\"click\")})),window.dslc_download_count_increment=function(e){jQuery.post(DSLCAjax.ajaxurl,{action:\"dslc-download-count-increment\",dslc_post_id:e},(function(e){}))},window.dslc_check_viewport=function(){!!document.documentMode?jQuery(\".dslc-in-viewport-check\").css(\"opacity\",1):jQuery(\".dslc-in-viewport-check:in-viewport:not(.dslc-in-viewport)\").each((function(){var e=jQuery(this),s=e.data(\"dslc-anim\"),t=parseInt(e.data(\"dslc-anim-duration\"))/1e3+\"s\";jQuery(window).width()<768&&(t=\"0s\");var o=parseInt(e.data(\"dslc-anim-delay\")),a=s+\" \"+t+\" \"+e.data(\"dslc-anim-easing\")+\" forwards\";jQuery(this).addClass(\"dslc-in-viewport\"),o>0?setTimeout((function(){e.css({\"-webkit-animation\":a,\"-moz-animation\":a,animation:a})}),o):jQuery(this).css({\"-webkit-animation\":a,\"-moz-animation\":a,animation:a})}))},window.dslc_el_anim_hover=function(){jQuery(\".dslc-on-hover-anim-target\").each((function(){var e=\"all \"+parseInt(jQuery(this).data(\"dslc-anim-speed\"))/1e3+\"s ease-out\";jQuery(this).css({\"-webkit-transition\":e,\"-moz-transition\":e,transition:e})}))},window.dslc_check_progress_bar_viewport=function(){jQuery(\".dslc-progress-bar-animated:in-viewport:not(.dslc-progress-bar-in-viewport)\").each((function(){var e=jQuery(this),s=e.find(\".dslc-progress-bar-loader-inner\"),t=s.data(\"amount\")+\"%\",o=s.data(\"speed\");e.addClass(\"dslc-progress-bar-in-viewport\"),s.css({width:0,opacity:1}).animate({width:t},o)}))},window.dslc_validate_comment_form=function(e){var s=e.find(\"#author\"),t=e.find(\"#email\"),o=(e.find(\"#url\"),e.find(\"#comment\")),a=!0;return s.length&&0==s.val().length?(s.css({borderColor:\"#e55f5f\"}),a=!1):s.attr(\"style\",\"\"),!t.length||0!=t.val().length&&-1!==t.val().indexOf(\"@\")?t.attr(\"style\",\"\"):(t.css({borderColor:\"#e55f5f\"}),a=!1),0==o.val().length?(o.css({borderColor:\"#e55f5f\"}),a=!1):o.attr(\"style\",\"\"),a},window.dslc_social_share=function(e,s,t){var o,a,c=\"status=no,height=\"+s+\",width=\"+e+\",resizable=yes,left=\"+(o=window.screen.width/2-(e/2+10))+\",top=\"+(a=window.screen.height/2-(s/2+50))+\",screenX=\"+o+\",screenY=\"+a+\",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no\";return location.href,document.title,window.open(t,\"sharer\",c),!1},window.dslc_sticky_row=function(){if(jQuery(\"body .dslc-modules-section\").hasClass(\"dslc-sticky-row\")&&!jQuery(\"body\").hasClass(\"dslca-enabled\")){var e=jQuery(\"body .dslc-modules-section.dslc-sticky-row\"),s=jQuery(\".dslc-sticky-row\");s.each((function(e,t){jQuery(s).eq(e).outerHeight();jQuery(t).wrap('<div class=\"dslc-modules-section-placeholder\"></div>').parent().height(jQuery(t).outerHeight())}));(e=jQuery(\"body .dslc-modules-section.dslc-sticky-row\")).offset().top;jQuery(\"#wpadminbar\").length&&jQuery(\"#wpadminbar\").height();var t=jQuery(\".dslc-sticky-row\");document.addEventListener(\"scroll\",(function(s){var o=window.scrollY;(o<50||o%10==0)&&(o>=0?t.each((function(e,s){var a=jQuery(t).eq(e),c=a.offset().top,i=a.outerHeight();jQuery(\"#wpadminbar\").length&&(c-=jQuery(\"#wpadminbar\").height());var d=o<=s.exTop,n=c<=o,l=\"fixed\",r=0;if(d)l=\"relative\",r=0,s.isFixed=!1,s.classList.remove(\"dslc-sticky-section-fixed\"),jQuery(s).closest(\".dslc-modules-section-placeholder\").height(jQuery(s).outerHeight());else if(n){if(l=\"fixed\",0<e)for(var u=0;u<e;u++)r+=jQuery(t).eq(u).outerHeight();o+=i,s.isFixed||(s.isFixed=!0,s.exTop=c),jQuery(\"#wpadminbar\").length&&(r+=32),s.classList.add(\"dslc-sticky-section-fixed\"),jQuery(s).closest(\".dslc-modules-section-placeholder\").height(jQuery(s).outerHeight())}jQuery(s).css({position:l,top:r+\"px\"})})):(e.removeClass(\"dslc-sticky-section-fixed\"),t.css({position:\"relative\",top:\"0px\"})))}),{capture:!1,passive:!0})}},jQuery(document).ready((function(e){var s,t,o,a,c;if(document.querySelector(\"meta[name=viewport]\").setAttribute(\"content\",\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0\"),dslc_el_anim_hover(),dslc_bg_video(),dslc_tabs(),jQuery(document).on(\"click\",\".dslc-pagination-load-more a\",(function(e){if(e.preventDefault(),jQuery(this).parent().hasClass(\"dslc-active\")){var s=jQuery(this),t=jQuery(this).closest(\".dslc-module-front\"),o=t.find(\".dslc-pagination\"),a=t.find(\".dslc-posts-inner\"),c=t.attr(\"id\"),i=s.attr(\"href\"),d=t.find(\".dslc-load-more-temp\");s.find(\".dslc-icon\").addClass(\"dslc-icon-spin\"),d.load(i+\" #\"+c,(function(){a.append('<div class=\"dslc-post-separator\"></div>'),a.append(d.find(\".dslc-posts-inner\").html()),t.find(\".dslc-pagination\").html(d.find(\".dslc-pagination\").html()),o.replaceWith(d.find(\".dslc-pagination\")),d.html(\"\"),a.imagesLoaded((function(){t.find(\".dslc-init-masonry\").length&&t.find(\".dslc-init-masonry .dslc-posts-inner\").masonry(\"reloadItems\").masonry()}))}))}})),jQuery(\".dslc-tp-comment-form form\").submit((function(e){dslc_validate_comment_form(jQuery(this))||e.preventDefault()})),jQuery(\".dslc-mobile-navigation select\").change((function(){window.location=jQuery(this).val()})),jQuery(document).on(\"click\",\".dslc-notification-close\",(function(e){jQuery(this).closest(\".dslc-notification\").slideUp(200,(function(){jQuery(this).remove()}))})),jQuery(document).on(\"click\",\".dslc-post-filter\",(function(){var e=jQuery(this),s=e.closest(\".dslc-module-front\").find(\".dslc-posts\"),t=e.closest(\".dslc-module-front\"),o=e.data(\"filter-id\"),a=jQuery(),c=jQuery();\"show-all\"===o?(a=s.closest(\".dslc-module-front\").find(\".dslc-post\"),c=jQuery()):(a=s.closest(\".dslc-module-front\").find('.dslc-post[data-cats*=\"'+o+'\"]'),c=s.closest(\".dslc-module-front\").find('.dslc-post:not([data-cats*=\"'+o+'\"])')),e.removeClass(\"dslc-inactive\").addClass(\"dslc-active\").siblings(\".dslc-active\").removeClass(\"dslc-active\").addClass(\"dslc-inactive\"),s.hasClass(\"dslc-init-grid\")?(a.stop().animate({opacity:1},300),c.stop().animate({opacity:.3},300)):(c.removeClass(\"dslc-masonry-item dslc-masonry-item-animate\").css({visibility:\"hidden\"}),a.addClass(\"dslc-masonry-item dslc-masonry-item-animate\").css({visibility:\"visible\"}).show(),dslc_masonry(t,!0))})),jQuery(document).on(\"click\",\".dslc-download-count-hook\",(function(e){dslc_download_count_increment(jQuery(this).data(\"post-id\"))})),jQuery(\".dslc-notification-box-has-timeout\").each((function(){var e=jQuery(this);nTimeout=\"none\",moduleID=e.closest(\".dslc-module-front\").data(\"module-id\"),cookieID=\"nBox\"+moduleID,e.data(\"notification-timeout\")&&null==Cookies.get(cookieID)&&e.show()})),jQuery(document).on(\"click\",\".dslc-notification-box-close\",(function(){var e=jQuery(this).closest(\".dslc-notification-box\"),s=\"none\",t=\"nBox\"+e.closest(\".dslc-module-front\").data(\"module-id\");e.data(\"notification-timeout\")&&(s=e.data(\"notification-timeout\")),\"none\"!==s&&Cookies.set(t,\"closed\",{expires:s}),e.animate({opacity:0},400,(function(){jQuery(this).remove()}))})),dslc_init_lightbox(),dslc_init_accordion(),jQuery(document).on(\"click\",\".dslc-accordion-hook\",(function(){var e=jQuery(this).closest(\".dslc-accordion-item\"),s=e.siblings(\".dslc-accordion-item\");e.hasClass(\"dslc-active\")?(jQuery(\"body\").hasClass(\"dslca-enabled\")||(e.find(\".dslca-icon\").hasClass(\"dslc-icon-minus\")?e.find(\".dslca-icon\").removeClass(\"dslc-icon-minus\").addClass(\"dslc-icon-plus\"):e.find(\".dslca-icon\").removeClass(\"dslc-icon-plus\").addClass(\"dslc-icon-minus\")),s=e):(e.removeClass(\"dslc-inactive\").addClass(\"dslc-active\"),jQuery(\"body\").hasClass(\"dslca-enabled\")||(e.find(\".dslca-icon\").hasClass(\"dslc-icon-minus\")?e.find(\".dslca-icon\").removeClass(\"dslc-icon-minus\").addClass(\"dslc-icon-plus\"):(e.find(\".dslca-icon\").removeClass(\"dslc-icon-plus\").addClass(\"dslc-icon-minus\"),s.find(\".dslca-icon\").removeClass(\"dslc-icon-minus\").addClass(\"dslc-icon-plus\")))),s.removeClass(\"dslc-active\").addClass(\"dslc-inactive\"),jQuery(\".dslc-accordion-content\",e).slideDown(300),jQuery(\".dslc-accordion-content\",s).slideUp(300)})),jQuery(document).on(\"click\",\".dslca-add-accordion-hook\",(function(){var e=jQuery(this).closest(\".dslc-accordion\"),s=jQuery(\".dslc-accordion-item:last\",e),t=s.clone().insertAfter(s);numberOfTabs=jQuery(\".dslc-accordion-item\",e).length,jQuery(\".dslc-accordion-title\",t).html(\"CLICK TO EDIT\"),jQuery(\".dslc-accordion-content\",t).html('<div class=\"dslca-editable-content\" data-edit-id=\"'+numberOfTabs+'\">Placeholder content, click to edit. Lorem ipsum dolor sit amet, consectetur tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div><textarea class=\"dslca-accordion-plain-content\"></textarea><div class=\"dslca-wysiwyg-actions-edit\"><span class=\"dslca-wysiwyg-actions-edit-hook\" data-event=\"wysiwyg-edit\" data-id-to-edit=\"'+numberOfTabs+'\">Edit Content</span></div>'),jQuery(\".dslc-accordion-hook\",t).click(),dslc_accordion_generate_code(e),jQuery(this).closest(\".dslc-module-front\").hasClass(\"dslca-module-being-edited\")||jQuery(this).closest(\".dslc-module-front\").find(\".dslca-module-edit-hook\").trigger(\"click\")})),jQuery(document).on(\"click\",\".dslca-delete-accordion-hook\",(function(e){var s=jQuery(this).closest(\".dslc-accordion\"),t=jQuery(this).closest(\".dslc-accordion-item\");jQuery(this).closest(\".dslc-module-front\").hasClass(\"dslca-module-being-edited\")||jQuery(this).closest(\".dslc-module-front\").find(\".dslca-module-edit-hook\").trigger(\"click\"),jQuery(\".dslc-accordion-item\",s).length>1?(t.remove(),jQuery(\".dslc-accordion-item.dslc-active\",s).length||jQuery(\".dslc-accordion-hook:first\",s).trigger(\"click\"),dslc_accordion_generate_code(s)):alert(\"You can not delete the last remaining accordion item.\"),e.stopPropagation()})),jQuery(document).on(\"click\",\".dslca-move-up-accordion-hook, .dslca-move-down-accordion-hook\",(function(e){var s=jQuery(this).closest(\".dslc-accordion\"),t=jQuery(this).closest(\".dslc-accordion-item\"),o=t.next(\".dslc-accordion-item\"),a=t.prev(\".dslc-accordion-item\");jQuery(this).closest(\".dslc-module-front\").hasClass(\"dslca-module-being-edited\")||jQuery(this).closest(\".dslc-module-front\").find(\".dslca-module-edit-hook\").trigger(\"click\"),jQuery(this).hasClass(\"dslca-move-down-accordion-hook\")?(t.insertAfter(o),dslc_accordion_generate_code(s)):(t.insertBefore(a),dslc_accordion_generate_code(s)),e.stopPropagation()})),jQuery(document).on(\"blur paste keyup\",\".dslc-accordion-title[contenteditable], .dslc-accordion-content[contenteditable]\",(function(){dslc_accordion_generate_code(jQuery(this).closest(\".dslc-accordion\"))})).on(\"focus\",\".dslc-accordion-title[contenteditable], .dslc-accordion-content[contenteditable]\",(function(){jQuery(this).closest(\".dslc-module-front\").hasClass(\"dslca-module-being-edited\")||jQuery(this).closest(\".dslc-module-front\").find(\".dslca-module-edit-hook\").trigger(\"click\")})),jQuery(document).on(\"click\",\".dslc-trigger-lightbox-gallery\",(function(e){if(e.preventDefault(),jQuery(this).closest(\".dslc-post\").length)jQuery(this).closest(\".dslc-post\").find(\".dslc-lightbox-gallery a:first-child\").trigger(\"click\");else if(jQuery(this).closest(\".dslc-col\")){var s=jQuery(this).closest(\".dslc-col\").index();jQuery(this).closest(\".dslc-module-front\").find(\".dslc-lightbox-gallery a:eq(\"+s+\")\").trigger(\"click\")}else jQuery(this).closest(\".dslc-module-front\").find(\".dslc-lightbox-gallery a:first-child\").trigger(\"click\")})),jQuery(\"#dslc-header\").hasClass(\"dslc-header-extra-padding\")&&!jQuery(\"body\").hasClass(\"dslca-enabled\")){var i=jQuery(\"#dslc-header\").height();jQuery(\"#dslc-main .dslc-modules-section:first-child\").css({paddingTop:i})}(dslc_check_viewport(),dslc_check_progress_bar_viewport(),jQuery(document).on(\"scroll\",(function(){dslc_check_viewport(),dslc_check_progress_bar_viewport()})),jQuery(\"#dslc-footer\").hasClass(\"dslc-footer-pos-relative\"))&&(s=jQuery(\"body\").height(),t=jQuery(\"#dslc-footer\"),o=jQuery(t).height(),a=jQuery(\"#dslc-content\"),c=\"100vh\",jQuery(\"#wpadminbar\").length&&(c=\"96.7vh\"),s<jQuery(window).height()&&(jQuery(t).css({position:\"absolute\",bottom:\"0\",width:\"100%\"}),jQuery(a).css({\"min-height\":c,\"padding-bottom\":o+\"px\"})))})),jQuery(document).ready((function(e){dslc_responsive_classes(),dslc_carousel(),dslc_masonry(),dslc_parallax(),dslc_init_lightbox(),window.dslc_sticky_row()})),jQuery(window).resize((function(){dslc_responsive_classes(),dslc_carousel_responsive()}))}});"],"mappings":"AAAA","sourceRoot":""}
1
+ {"version":3,"file":"client_frontend.min.js","sources":["webpack:///client_frontend.min.js"],"sourcesContent":["!function(e){var s={};function t(o){if(s[o])return s[o].exports;var a=s[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,t),a.l=!0,a.exports}t.m=e,t.c=s,t.d=function(e,s,o){t.o(e,s)||Object.defineProperty(e,s,{enumerable:!0,get:o})},t.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},t.t=function(e,s){if(1&s&&(e=t(e)),8&s)return e;if(4&s&&\"object\"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,\"default\",{enumerable:!0,value:e}),2&s&&\"string\"!=typeof e)for(var a in e)t.d(o,a,function(s){return e[s]}.bind(null,a));return o},t.n=function(e){var s=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(s,\"a\",s),s},t.o=function(e,s){return Object.prototype.hasOwnProperty.call(e,s)},t.p=\"\",t(t.s=2)}({2:function(e,s,t){window.dslc_responsive_classes=e=>{void 0===e&&(e=!1);var s=jQuery(window).width(),t=jQuery(\"body\");1!=e&&(t.hasClass(\"dslc-res-disabled\")||jQuery('.dslca-module-edit-options-tab-hook.dslca-active[data-section=\"responsive\"]').length)||(t.removeClass(\"dslc-res-phone dslc-res-tablet dslc-res-smaller-monitor dslc-res-big\"),s>=1024&&s<1280?t.addClass(\"dslc-res-smaller-monitor\"):s>=768&&s<1024?t.addClass(\"dslc-res-tablet\"):s<768?t.addClass(\"dslc-res-phone\"):t.addClass(\"dslc-res-big\"))},window.dslc_init_accordion=()=>{jQuery(\".dslc-accordion\").each((function(){var e=jQuery(this),s=e.data(\"open\")-1,t=jQuery(\".dslc-accordion-item:eq(\"+s+\")\",e),o=t.siblings(\".dslc-accordion-item\"),a=jQuery(\".dslc-accordion-item\",e);s>=0?(t.addClass(\"dslc-active\"),o.addClass(\"dslc-inactive\"),jQuery(\".dslc-accordion-content\",o).hide(),jQuery(\"body\").hasClass(\"dslca-enabled\")||o.find(\".dslca-icon\").removeClass(\"dslc-icon-minus\").addClass(\"dslc-icon-plus\")):(a.addClass(\"dslc-inactive\"),jQuery(\".dslc-accordion-content\",a).hide(),jQuery(\"body\").hasClass(\"dslca-enabled\")||a.find(\".dslca-icon\").removeClass(\"dslc-icon-minus\").addClass(\"dslc-icon-plus\"))}))},window.dslc_init_lightbox=()=>{var e;jQuery(\".dslc-lightbox-image\").each((function(){e=\"image\",(jQuery(this).attr(\"href\").indexOf(\"youtube.com\")>=0||jQuery(this).attr(\"href\").indexOf(\"vimeo.com\")>=0)&&(e=\"iframe\"),jQuery(this).magnificPopup({type:e})})),jQuery(\".dslc-lightbox-gallery\").each((function(){jQuery(this).magnificPopup({delegate:\"a\",type:\"image\",gallery:{enabled:!0},image:{titleSrc:function(e){var s=\"\";return void 0!==e.el.attr(\"data-caption\")&&(s=\"<small>\"+e.el.attr(\"data-caption\")+\"</small>\"),e.el.attr(\"title\")+s}}})}))},window.dslc_carousel=()=>{jQuery(\".dslc-carousel, .dslc-slider\").each((function(e){var s,t,o,a,c;s=jQuery(this),(t=s.closest(\".dslc-module-front\")).imagesLoaded((function(){if(t.closest(\".dslc-modules-section\").hasClass(\"dslc-no-columns-spacing\"))var e=0;else e=t.width()/100*2.12766/2;s.hasClass(\"dslc-carousel\")&&(s.find(\".dslc-col\").css({\"margin-left\":e,\"margin-right\":e}),s.css({\"margin-left\":-1*e,width:s.width()+2*e})),o={items:4,pagination:!0,singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1e3,autoPlay:!1,stopOnHover:!1,lazyLoad:!1,lazyFollow:!0,autoHeight:!1,mouseDrag:!0,touchDrag:!0,addClassActive:!0,transitionStyle:\"fade\",scrollPerPage:!0},a={items:s.data(\"columns\"),pagination:s.data(\"pagination\"),itemsScaleUp:s.data(\"scale-up\"),slideSpeed:s.data(\"slide-speed\"),paginationSpeed:s.data(\"pagination-speed\"),rewindSpeed:s.data(\"rewind-speed\"),autoPlay:s.data(\"autoplay\"),stopOnHover:s.data(\"stop-on-hover\"),lazyLoad:s.data(\"lazy-load\"),lazyFollow:s.data(\"lazy-follow\"),autoHeight:s.data(\"flexible-height\"),mouseDrag:s.data(\"mouse-drag\"),touchDrag:s.data(\"touch-drag\"),addClassActive:s.data(\"active-class\"),transitionStyle:s.data(\"animation\"),scrollPerPage:s.data(\"scroll-per-page\")},c=jQuery.extend({},o,a),(s.hasClass(\"dslc-slider\")||1==c.items)&&(c.singleItem=!0),0==c.autoPlay&&(c.autoPlay=!1),s.owlCarousel({items:c.items,pagination:c.pagination,singleItem:c.singleItem,itemsScaleUp:c.itemsScaleUp,slideSpeed:c.slideSpeed,paginationSpeed:c.paginationSpeed,rewindSpeed:c.rewindSpeed,autoPlay:c.autoPlay,stopOnHover:c.stopOnHover,lazyLoad:c.lazyLoad,lazyFollow:c.lazyFollow,mouseDrag:c.mouseDrag,touchDrag:c.touchDrag,scrollPerPage:c.scrollPerPage,transitionStyle:c.transitionStyle,autoHeight:c.autoHeight,itemsDesktop:!1,itemsDesktopSmall:!1,itemsTablet:!1,itemsMobile:[766,1],afterInit:function(){s.prev(\".dslc-loader\").remove(),s.css({opacity:1,maxHeight:\"none\"})},afterAction:function(){var e=this.owl.visibleItems;s.find(\".dslc-carousel-item-visible\").removeClass(\"dslc-carousel-item-visible\"),s.find(\".owl-item\").filter((function(s){return e.indexOf(s)>-1})).addClass(\"dslc-carousel-item-visible\")}}),jQuery(\".dslc-carousel-nav-next\",t).click((function(e){e.preventDefault(),s.data(\"owlCarousel\").next()})),jQuery(\".dslc-carousel-nav-prev\",t).click((function(e){e.preventDefault(),s.data(\"owlCarousel\").prev()}))}))}))},window.dslc_carousel_responsive=()=>{jQuery(\".dslc-carousel\").each((function(){var e,s;if(s=(e=jQuery(this)).closest(\".dslc-module-front\"),e.css({\"margin-left\":0,width:\"auto\"}),s.closest(\".dslc-modules-section\").hasClass(\"dslc-no-columns-spacing\"))var t=0;else t=s.width()/100*2.12766/2;e.hasClass(\"dslc-carousel\")&&(e.find(\".dslc-col\").css({\"margin-left\":t,\"margin-right\":t}),e.css({\"margin-left\":-1*t,width:e.width()+2*t}))}))},window.dslc_bg_video=()=>{jQuery(\".dslc-bg-video\").each((function(){jQuery(this).find(\"video\").length||jQuery(this).css({opacity:1})})),jQuery(\".dslc-bg-video video\").mediaelementplayer({loop:!0,pauseOtherPlayers:!1,success:function(e,s){e.addEventListener(\"loadeddata\",(function(e){jQuery(s).closest(\".dslc-bg-video\").animate({opacity:1},400)})),e.play()}})},window.dslc_parallax=()=>{jQuery(\".dslc-init-parallax\").each((function(){var e=jQuery(this);e.imagesLoaded({background:!0},(function(){var s=e.css(\"background-position\").split(\" \")[0]+\" \"+-1*(window.pageYOffset-e.offset().top)/4+\"px\";e.css({backgroundPosition:s})}))})),window.onscroll=function(){jQuery(\".dslc-init-parallax\").each((function(){var e=jQuery(this).css(\"background-position\").split(\" \")[0]+\" \"+-1*(window.pageYOffset-jQuery(this).offset().top)/4+\"px\";jQuery(this).css({backgroundPosition:e})}))}},window.dslc_masonry=(e,s)=>{e=void 0!==e?e:jQuery(\"body\"),s=void 0!==s&&s,jQuery(\".dslc-init-masonry\",e).each((function(){var e,t,o,a;e=jQuery(this).find(\".dslc-posts-inner\").length?jQuery(this).find(\".dslc-posts-inner\"):jQuery(this),t=\".dslc-masonry-item\",jQuery(t,e).width(),o=jQuery(e).width(),a=jQuery(this).closest(\".dslc-modules-section\").hasClass(\"dslc-no-columns-spacing\")?0:o/100*2.05,e.data(\"masonry\")?jQuery(e).imagesLoaded((function(){jQuery(e).masonry(\"destroy\").masonry({gutter:a,itemSelector:t}),jQuery(e).find(\".dslc-post:not(.dslc-masonry-item)\").hide(),s&&jQuery(t,e).css({scale:\"0.2\"}).animate({scale:\"1\"},500)})):(jQuery(t).css({marginRight:0}),jQuery(e).imagesLoaded((function(){jQuery(e).masonry({gutter:a,itemSelector:t})})))}))},window.dslc_tabs_generate_code=e=>{var s=e.closest(\".dslc-module-front\");dslcTabsNav=jQuery(\".dslc-tabs-nav\",e),dslcTabsContent=jQuery(\".dslc-tabs-content\",e),dslcTabContent=jQuery(\".dslc-tabs-tab-content\",e);var t=\"\",o=\"\",a=0,c=0;jQuery(\".dslc-tabs-nav-hook\",dslcTabsNav).each((function(){++a>1&&(t+=\" (dslc_sep) \"),t+=jQuery(this).find(\".dslc-tabs-nav-hook-title\").text()})),dslcTabContent.each((function(){++c>1&&(o+=\" (dslc_sep) \"),o+=jQuery(this).find(\".dslca-tab-plain-content\").val()})),o=o.replace(/<textarea/g,\"<lctextarea\").replace(/<\\/textarea/g,\"</lctextarea\"),jQuery('.dslca-module-option-front[data-id=\"tabs_nav\"]',s).val(t),jQuery('.dslca-module-option-front[data-id=\"tabs_content\"]',s).val(o),parent.LiveComposer.Builder.Actions.optionsChanged()},window.dslc_accordion_generate_code=e=>{var s=e.closest(\".dslc-module-front\"),t=0,o=\"\",a=\"\";jQuery(\".dslc-accordion-item\",e).each((function(){++t>1&&(o+=\" (dslc_sep) \",a+=\" (dslc_sep) \"),o+=jQuery(this).find(\".dslc-accordion-title\").text(),a+=jQuery(this).find(\".dslc-accordion-content\").find(\".dslca-accordion-plain-content\").val()})),a=a.replace(/<textarea/g,\"<lctextarea\").replace(/<\\/textarea/g,\"</lctextarea\"),jQuery('.dslca-module-option-front[data-id=\"accordion_nav\"]',s).val(o),jQuery('.dslca-module-option-front[data-id=\"accordion_content\"]',s).val(a),parent.LiveComposer.Builder.Actions.optionsChanged()},window.dslc_tabs=()=>{var e,s;jQuery(\".dslc-tabs\").each((function(){e=jQuery(this),s=jQuery(\".dslc-tabs-nav\",e),jQuery(\".dslc-tabs-content\",e),jQuery(\".dslc-tabs-tab-content\",e).eq(0).addClass(\"dslc-active\"),jQuery(\".dslc-tabs-nav-hook\",s).eq(0).addClass(\"dslc-active\")}))},jQuery(document).on(\"click\",\".dslca-add-new-tab-hook\",e=>function(e){var s=jQuery(e.target).closest(\".dslc-tabs\"),t=jQuery(\".dslc-tabs-nav .dslc-tabs-nav-hook:last\",s),o=jQuery(\".dslc-tabs-tab-content:last\",s),a=jQuery(\".dslc-tabs-nav .dslc-tabs-nav-hook\",s).length;t.after('<span class=\"dslc-tabs-nav-hook\"><span class=\"dslc-tabs-nav-hook-title\" contenteditable=\"true\">Click to edit title</span><span class=\"dslca-delete-tab-hook\"><span class=\"dslca-icon dslc-icon-remove\"></span></span></span>'),o.after('<div class=\"dslc-tabs-tab-content\"><div class=\"dslca-editable-content\" data-edit-id=\"'+a+'\" data-id=\"'+a+'\">This is just placeholder text.</div><textarea class=\"dslca-tab-plain-content\" data-edit-id=\"'+a+'\" data-id=\"'+a+'\">This is just placeholder text.</textarea><div class=\"dslca-wysiwyg-actions-edit\"><span class=\"dslca-wysiwyg-actions-edit-hook\" data-event=\"wysiwyg-edit\" data-id-to-edit=\"'+a+'\">Open in WP Editor</span></div></div>'),jQuery(\".dslc-tabs-nav-hook:last\",s).click(),dslc_tabs_generate_code(s),jQuery(s[0]).closest(\".dslc-module-front\").hasClass(\"dslca-module-being-edited\")||jQuery(s[0]).closest(\".dslc-module-front\").find(\".dslca-module-edit-hook\").trigger(\"click\")}(e)),jQuery(document).on(\"click\",\".dslca-delete-tab-hook\",e=>function(e){console.log(\"dslc_on_tab_delete\");var s=jQuery(e.target).closest(\".dslc-tabs\"),t=jQuery(e.target).closest(\".dslc-tabs-nav-hook\"),o=t.index(),a=jQuery(\".dslc-tabs-tab-content\",s).eq(o);jQuery(\".dslc-tabs-nav .dslc-tabs-nav-hook\",s).length>1&&(t.remove(),a.remove(),jQuery(\".dslc-tabs-tab-content.dslc-active\",s).length||jQuery(\".dslc-tabs-nav-hook:first\",s).trigger(\"click\"),dslc_tabs_generate_code(s)),jQuery(s[0]).closest(\".dslc-module-front\").hasClass(\"dslca-module-being-edited\")||jQuery(s[0]).closest(\".dslc-module-front\").find(\".dslca-module-edit-hook\").trigger(\"click\"),e.stopPropagation()}(e)),jQuery(document).on(\"click\",\".dslc-tabs-nav-hook\",e=>function(e){dslcTabs=jQuery(e.target).closest(\".dslc-tabs\"),dslcTabsNav=jQuery(\".dslc-tabs-nav\",dslcTabs),dslcTabsContent=jQuery(\".dslc-tabs-content\",dslcTabs),dslcTabContent=jQuery(\".dslc-tabs-tab-content\",dslcTabs),dslcTabIndex=jQuery(e.currentTarget).index(),jQuery(\".dslc-tabs-nav-hook.dslc-active\",dslcTabs).removeClass(\"dslc-active\"),jQuery(e.currentTarget).addClass(\"dslc-active\"),jQuery(\".dslc-tabs-tab-content.dslc-active\",dslcTabs).length?jQuery(\".dslc-tabs-tab-content.dslc-active\",dslcTabs).animate({opacity:0},250,(function(){jQuery(this).removeClass(\"dslc-active\"),dslcTabContent.eq(dslcTabIndex).css({opacity:0}).addClass(\"dslc-active\").show().animate({opacity:1},250)})):dslcTabContent.eq(dslcTabIndex).css({opacity:0}).addClass(\"dslc-active\").show().animate({opacity:1},250)}(e)),jQuery(document).on(\"blur paste\",\".dslc-tabs-nav-hook-title[contenteditable], .dslc-tabs-tab-content[contenteditable]\",(function(e){dslc_tabs_generate_code(jQuery(this).closest(\".dslc-tabs\"))})).on(\"focus\",\".dslc-tabs-nav-hook-title[contenteditable], .dslc-tabs-tab-content[contenteditable]\",(function(e){jQuery(this).closest(\".dslc-module-front\").hasClass(\"dslca-module-being-edited\")||jQuery(this).closest(\".dslc-module-front\").find(\".dslca-module-edit-hook\").trigger(\"click\")})),window.dslc_download_count_increment=e=>{jQuery.post(DSLCAjax.ajaxurl,{action:\"dslc-download-count-increment\",dslc_post_id:e},(function(e){}))},window.dslc_check_viewport=()=>{!!document.documentMode?jQuery(\".dslc-in-viewport-check\").css(\"opacity\",1):jQuery(\".dslc-in-viewport-check:in-viewport:not(.dslc-in-viewport)\").each((function(){var e=jQuery(this),s=e.data(\"dslc-anim\"),t=parseInt(e.data(\"dslc-anim-duration\"))/1e3+\"s\";jQuery(window).width()<768&&(t=\"0s\");var o=parseInt(e.data(\"dslc-anim-delay\")),a=s+\" \"+t+\" \"+e.data(\"dslc-anim-easing\")+\" forwards\";jQuery(this).addClass(\"dslc-in-viewport\"),o>0?setTimeout((function(){e.css({\"-webkit-animation\":a,\"-moz-animation\":a,animation:a})}),o):jQuery(this).css({\"-webkit-animation\":a,\"-moz-animation\":a,animation:a})}))},window.dslc_el_anim_hover=()=>{jQuery(\".dslc-on-hover-anim-target\").each((function(){var e=\"all \"+parseInt(jQuery(this).data(\"dslc-anim-speed\"))/1e3+\"s ease-out\";jQuery(this).css({\"-webkit-transition\":e,\"-moz-transition\":e,transition:e})}))},window.dslc_check_progress_bar_viewport=()=>{jQuery(\".dslc-progress-bar-animated:in-viewport:not(.dslc-progress-bar-in-viewport)\").each((function(){var e=jQuery(this),s=e.find(\".dslc-progress-bar-loader-inner\"),t=s.data(\"amount\")+\"%\",o=s.data(\"speed\");e.addClass(\"dslc-progress-bar-in-viewport\"),s.css({width:0,opacity:1}).animate({width:t},o)}))},window.dslc_validate_comment_form=e=>{var s=e.find(\"#author\"),t=e.find(\"#email\"),o=(e.find(\"#url\"),e.find(\"#comment\")),a=!0;return s.length&&0==s.val().length?(s.css({borderColor:\"#e55f5f\"}),a=!1):s.attr(\"style\",\"\"),!t.length||0!=t.val().length&&-1!==t.val().indexOf(\"@\")?t.attr(\"style\",\"\"):(t.css({borderColor:\"#e55f5f\"}),a=!1),0==o.val().length?(o.css({borderColor:\"#e55f5f\"}),a=!1):o.attr(\"style\",\"\"),a},window.dslc_social_share=(e,s,t)=>{var o,a,c=\"status=no,height=\"+s+\",width=\"+e+\",resizable=yes,left=\"+(o=window.screen.width/2-(e/2+10))+\",top=\"+(a=window.screen.height/2-(s/2+50))+\",screenX=\"+o+\",screenY=\"+a+\",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no\";return location.href,document.title,window.open(t,\"sharer\",c),!1},window.dslc_sticky_row=()=>{if(jQuery(\"body .dslc-modules-section\").hasClass(\"dslc-sticky-row\")&&!jQuery(\"body\").hasClass(\"dslca-enabled\")){var e=jQuery(\"body .dslc-modules-section.dslc-sticky-row\"),s=jQuery(\".dslc-sticky-row\");s.each((function(e,t){jQuery(s).eq(e).outerHeight();jQuery(t).wrap('<div class=\"dslc-modules-section-placeholder\"></div>').parent().height(jQuery(t).outerHeight())}));(e=jQuery(\"body .dslc-modules-section.dslc-sticky-row\")).offset().top;jQuery(\"#wpadminbar\").length&&jQuery(\"#wpadminbar\").height();var t=jQuery(\".dslc-sticky-row\");document.addEventListener(\"scroll\",s=>{var o=window.scrollY;(o<50||o%10==0)&&(o>=0?t.each((function(e,s){var a=jQuery(t).eq(e),c=a.offset().top,i=a.outerHeight();jQuery(\"#wpadminbar\").length&&(c-=jQuery(\"#wpadminbar\").height());var d=o<=s.exTop,l=c<=o,n=\"fixed\",r=0;if(d)n=\"relative\",r=0,s.isFixed=!1,s.classList.remove(\"dslc-sticky-section-fixed\"),jQuery(s).closest(\".dslc-modules-section-placeholder\").height(jQuery(s).outerHeight());else if(l){if(n=\"fixed\",0<e)for(var u=0;u<e;u++)r+=jQuery(t).eq(u).outerHeight();o+=i,s.isFixed||(s.isFixed=!0,s.exTop=c),jQuery(\"#wpadminbar\").length&&(r+=32),s.classList.add(\"dslc-sticky-section-fixed\"),jQuery(s).closest(\".dslc-modules-section-placeholder\").height(jQuery(s).outerHeight())}jQuery(s).css({position:n,top:r+\"px\"})})):(e.removeClass(\"dslc-sticky-section-fixed\"),t.css({position:\"relative\",top:\"0px\"})))},{capture:!1,passive:!0})}},jQuery(document).ready((function(e){var s,t,o,a,c;if(document.querySelector(\"meta[name=viewport]\").setAttribute(\"content\",\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0\"),dslc_el_anim_hover(),dslc_bg_video(),dslc_tabs(),jQuery(document).on(\"click\",\".dslc-pagination-load-more a\",(function(e){if(e.preventDefault(),jQuery(this).parent().hasClass(\"dslc-active\")){var s=jQuery(this),t=jQuery(this).closest(\".dslc-module-front\"),o=t.find(\".dslc-pagination\"),a=t.find(\".dslc-posts-inner\"),c=t.attr(\"id\"),i=s.attr(\"href\"),d=t.find(\".dslc-load-more-temp\");s.find(\".dslc-icon\").addClass(\"dslc-icon-spin\"),d.load(i+\" #\"+c,(function(){a.append('<div class=\"dslc-post-separator\"></div>'),a.append(d.find(\".dslc-posts-inner\").html()),t.find(\".dslc-pagination\").html(d.find(\".dslc-pagination\").html()),o.replaceWith(d.find(\".dslc-pagination\")),d.html(\"\"),a.imagesLoaded((function(){t.find(\".dslc-init-masonry\").length&&t.find(\".dslc-init-masonry .dslc-posts-inner\").masonry(\"reloadItems\").masonry()}))}))}})),jQuery(\".dslc-tp-comment-form form\").submit((function(e){dslc_validate_comment_form(jQuery(this))||e.preventDefault()})),jQuery(\".dslc-mobile-navigation select\").change((function(){window.location=jQuery(this).val()})),jQuery(document).on(\"click\",\".dslc-notification-close\",(function(e){jQuery(this).closest(\".dslc-notification\").slideUp(200,(function(){jQuery(this).remove()}))})),jQuery(document).on(\"click\",\".dslc-post-filter\",(function(){var e=jQuery(this),s=e.closest(\".dslc-module-front\").find(\".dslc-posts\"),t=e.closest(\".dslc-module-front\"),o=e.data(\"filter-id\"),a=jQuery(),c=jQuery();\"show-all\"===o?(a=s.closest(\".dslc-module-front\").find(\".dslc-post\"),c=jQuery()):(a=s.closest(\".dslc-module-front\").find('.dslc-post[data-cats*=\"'+o+'\"]'),c=s.closest(\".dslc-module-front\").find('.dslc-post:not([data-cats*=\"'+o+'\"])')),e.removeClass(\"dslc-inactive\").addClass(\"dslc-active\").siblings(\".dslc-active\").removeClass(\"dslc-active\").addClass(\"dslc-inactive\"),s.hasClass(\"dslc-init-grid\")?(a.stop().animate({opacity:1},300),c.stop().animate({opacity:.3},300)):(c.removeClass(\"dslc-masonry-item dslc-masonry-item-animate\").css({visibility:\"hidden\"}),a.addClass(\"dslc-masonry-item dslc-masonry-item-animate\").css({visibility:\"visible\"}).show(),dslc_masonry(t,!0))})),jQuery(document).on(\"click\",\".dslc-download-count-hook\",(function(e){dslc_download_count_increment(jQuery(this).data(\"post-id\"))})),jQuery(\".dslc-notification-box-has-timeout\").each((function(){var e=jQuery(this);nTimeout=\"none\",moduleID=e.closest(\".dslc-module-front\").data(\"module-id\"),cookieID=\"nBox\"+moduleID,e.data(\"notification-timeout\")&&null==Cookies.get(cookieID)&&e.show()})),jQuery(document).on(\"click\",\".dslc-notification-box-close\",(function(){var e=jQuery(this).closest(\".dslc-notification-box\"),s=\"none\",t=\"nBox\"+e.closest(\".dslc-module-front\").data(\"module-id\");e.data(\"notification-timeout\")&&(s=e.data(\"notification-timeout\")),\"none\"!==s&&Cookies.set(t,\"closed\",{expires:s}),e.animate({opacity:0},400,(function(){jQuery(this).remove()}))})),dslc_init_lightbox(),dslc_init_accordion(),jQuery(document).on(\"click\",\".dslc-accordion-hook\",(function(){var e=jQuery(this).closest(\".dslc-accordion-item\"),s=e.siblings(\".dslc-accordion-item\");e.hasClass(\"dslc-active\")?(jQuery(\"body\").hasClass(\"dslca-enabled\")||(e.find(\".dslca-icon\").hasClass(\"dslc-icon-minus\")?e.find(\".dslca-icon\").removeClass(\"dslc-icon-minus\").addClass(\"dslc-icon-plus\"):e.find(\".dslca-icon\").removeClass(\"dslc-icon-plus\").addClass(\"dslc-icon-minus\")),s=e):(e.removeClass(\"dslc-inactive\").addClass(\"dslc-active\"),jQuery(\"body\").hasClass(\"dslca-enabled\")||(e.find(\".dslca-icon\").hasClass(\"dslc-icon-minus\")?e.find(\".dslca-icon\").removeClass(\"dslc-icon-minus\").addClass(\"dslc-icon-plus\"):(e.find(\".dslca-icon\").removeClass(\"dslc-icon-plus\").addClass(\"dslc-icon-minus\"),s.find(\".dslca-icon\").removeClass(\"dslc-icon-minus\").addClass(\"dslc-icon-plus\")))),s.removeClass(\"dslc-active\").addClass(\"dslc-inactive\"),jQuery(\".dslc-accordion-content\",e).slideDown(300),jQuery(\".dslc-accordion-content\",s).slideUp(300)})),jQuery(document).on(\"click\",\".dslca-add-accordion-hook\",(function(){var e=jQuery(this).closest(\".dslc-accordion\"),s=jQuery(\".dslc-accordion-item:last\",e),t=s.clone().insertAfter(s);numberOfTabs=jQuery(\".dslc-accordion-item\",e).length,jQuery(\".dslc-accordion-title\",t).html(\"CLICK TO EDIT\"),jQuery(\".dslc-accordion-content\",t).html('<div class=\"dslca-editable-content\" data-edit-id=\"'+numberOfTabs+'\">Placeholder content, click to edit. Lorem ipsum dolor sit amet, consectetur tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div><textarea class=\"dslca-accordion-plain-content\"></textarea><div class=\"dslca-wysiwyg-actions-edit\"><span class=\"dslca-wysiwyg-actions-edit-hook\" data-event=\"wysiwyg-edit\" data-id-to-edit=\"'+numberOfTabs+'\">Edit Content</span></div>'),jQuery(\".dslc-accordion-hook\",t).click(),dslc_accordion_generate_code(e),jQuery(this).closest(\".dslc-module-front\").hasClass(\"dslca-module-being-edited\")||jQuery(this).closest(\".dslc-module-front\").find(\".dslca-module-edit-hook\").trigger(\"click\")})),jQuery(document).on(\"click\",\".dslca-delete-accordion-hook\",(function(e){var s=jQuery(this).closest(\".dslc-accordion\"),t=jQuery(this).closest(\".dslc-accordion-item\");jQuery(this).closest(\".dslc-module-front\").hasClass(\"dslca-module-being-edited\")||jQuery(this).closest(\".dslc-module-front\").find(\".dslca-module-edit-hook\").trigger(\"click\"),jQuery(\".dslc-accordion-item\",s).length>1?(t.remove(),jQuery(\".dslc-accordion-item.dslc-active\",s).length||jQuery(\".dslc-accordion-hook:first\",s).trigger(\"click\"),dslc_accordion_generate_code(s)):alert(\"You can not delete the last remaining accordion item.\"),e.stopPropagation()})),jQuery(document).on(\"click\",\".dslca-move-up-accordion-hook, .dslca-move-down-accordion-hook\",(function(e){var s=jQuery(this).closest(\".dslc-accordion\"),t=jQuery(this).closest(\".dslc-accordion-item\"),o=t.next(\".dslc-accordion-item\"),a=t.prev(\".dslc-accordion-item\");jQuery(this).closest(\".dslc-module-front\").hasClass(\"dslca-module-being-edited\")||jQuery(this).closest(\".dslc-module-front\").find(\".dslca-module-edit-hook\").trigger(\"click\"),jQuery(this).hasClass(\"dslca-move-down-accordion-hook\")?(t.insertAfter(o),dslc_accordion_generate_code(s)):(t.insertBefore(a),dslc_accordion_generate_code(s)),e.stopPropagation()})),jQuery(document).on(\"blur paste keyup\",\".dslc-accordion-title[contenteditable], .dslc-accordion-content[contenteditable]\",(function(){dslc_accordion_generate_code(jQuery(this).closest(\".dslc-accordion\"))})).on(\"focus\",\".dslc-accordion-title[contenteditable], .dslc-accordion-content[contenteditable]\",(function(){jQuery(this).closest(\".dslc-module-front\").hasClass(\"dslca-module-being-edited\")||jQuery(this).closest(\".dslc-module-front\").find(\".dslca-module-edit-hook\").trigger(\"click\")})),jQuery(document).on(\"click\",\".dslc-trigger-lightbox-gallery\",(function(e){if(e.preventDefault(),jQuery(this).closest(\".dslc-post\").length)jQuery(this).closest(\".dslc-post\").find(\".dslc-lightbox-gallery a:first-child\").trigger(\"click\");else if(jQuery(this).closest(\".dslc-col\")){var s=jQuery(this).closest(\".dslc-col\").index();jQuery(this).closest(\".dslc-module-front\").find(\".dslc-lightbox-gallery a:eq(\"+s+\")\").trigger(\"click\")}else jQuery(this).closest(\".dslc-module-front\").find(\".dslc-lightbox-gallery a:first-child\").trigger(\"click\")})),jQuery(\"#dslc-header\").hasClass(\"dslc-header-extra-padding\")&&!jQuery(\"body\").hasClass(\"dslca-enabled\")){var i=jQuery(\"#dslc-header\").height();jQuery(\"#dslc-main .dslc-modules-section:first-child\").css({paddingTop:i})}(dslc_check_viewport(),dslc_check_progress_bar_viewport(),jQuery(document).on(\"scroll\",(function(){dslc_check_viewport(),dslc_check_progress_bar_viewport()})),jQuery(\"#dslc-footer\").hasClass(\"dslc-footer-pos-relative\"))&&(s=jQuery(\"body\").height(),t=jQuery(\"#dslc-footer\"),o=jQuery(t).height(),a=jQuery(\"#dslc-content\"),c=\"100vh\",jQuery(\"#wpadminbar\").length&&(c=\"96.7vh\"),s<jQuery(window).height()&&(jQuery(t).css({position:\"absolute\",bottom:\"0\",width:\"100%\"}),jQuery(a).css({\"min-height\":c,\"padding-bottom\":o+\"px\"})))})),jQuery(document).ready((function(e){dslc_responsive_classes(),dslc_carousel(),dslc_masonry(),dslc_parallax(),dslc_init_lightbox(),window.dslc_sticky_row()})),jQuery(window).resize((function(){dslc_responsive_classes(),dslc_carousel_responsive()}))}});"],"mappings":"AAAA","sourceRoot":""}
js/dist/editor_backend.min.js CHANGED
@@ -1,9 +1,9 @@
1
- !function(e){var t={};function o(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,o),n.l=!0,n.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)return e;if(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 n in e)o.d(i,n,function(t){return e[t]}.bind(null,n));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";function i(e){return(i="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)}o.r(t);var n=function(e){if("object"!=i(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>",o="";o=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>",t+=o+"</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=function(){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)}))}))}));function a(){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)return;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 n=e.getAttribute("data-exportable-content");i="<"+n+">"+e.innerHTML+"</"+n+">"}else i=e.innerHTML;null!==i&&(o+=i.replace(/\s+/g," ").trim()+"\n")}));e.value=o,t!==o&&window.dslc_show_publish_button()}();var e=jQuery("#dslca-code").val(),t=jQuery("#dslca-content-for-search").val(),o=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:o,dslc_code:e,dslc_content_for_search:t},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-'+o+'" src="'+DSLCSiteData.siteurl+"/?p="+o+'" ></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){"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")}))}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=d(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)};var d=function(e){window.dslcDebug&&console.log("generateSectionCode");var t,o,i,n,s="",a=0,d="";return o=e,jQuery(".dslc-modules-area",o).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"),a=0,i=o.find(".dslca-section-code").val(),n=JSON.parse(i),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+'" ',n[t]=o})),void 0!==n.give_new_id&&delete n.give_new_id,n.content=[],jQuery(".dslc-modules-area",o).each((function(){var e=0,o=jQuery(this),i=parseInt(o.data("size")),d=o.data("valign"),l="no",r="no";a+=i,jQuery(this).removeClass("dslc-first-col"),jQuery(this).removeClass("dslc-last-col"),12==a?(jQuery(this).addClass("dslc-last-col").next(".dslc-modules-area").addClass("dslc-first-col"),a=0,l="yes"):a>12&&(jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col"),a=i,r="yes"),a==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":"'+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&&("yes",jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col"));try{s=o[0].querySelector(".dslca-module-code").innerText}catch(e){console.info("No DSLC code found in module: "+o[0].getAttribute("id"))}if(""!==s){var n=JSON.parse(s);n.last=i,jQuery.each(n,(function(e,t){!1!==t&&""!==t||delete n[e],"content"===e&&(n[e]=t.replace(/\\'/g,"'")),"give_new_id"===e&&delete n[e]})),o[0].querySelector(".dslca-module-code").innerText=JSON.stringify(n),c.content.push(n)}s=""})),n.content.push(c)})),JSON.stringify(n)},l=function(){jQuery(document).on("click",".dslca-save-composer-hook",(function(e){e.preventDefault(),jQuery("body").hasClass("dslca-module-saving-in-progress")||jQuery("body").hasClass("dslca-saving-in-progress")||a()})),jQuery(document).on("click",".dslca-save-draft-composer-hook",(function(e){e.preventDefault(),jQuery("body").hasClass("dslca-module-saving-in-progress")||jQuery("body").hasClass("dslca-saving-in-progress")||function(){window.dslcDebug&&console.log("dslc_save_draft_composer");var e=jQuery("#dslca-code").val(),t=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:t,dslc_code:e},(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")}))}()}))};var r=function(e){if(window.dslcDebug&&console.log("editableContentCodeGeneration"),void 0===e)return!1;var 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)};var c=function(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=jQuery(this).data("modal");!function(e,t){"undefined"!=typeof dslcDebug&&dslcDebug&&console.log("dslc_show_modal"),jQuery(".dslca-modal:visible").length&&c("",jQuery(".dslca-modal:visible")),t=jQuery(t),jQuery(".dslca-container").height(),t.outerHide({clbk:function(){c("",jQuery(".dslca-modal:visible"))}});var o=jQuery(e).position(),i=t.outerWidth()/2-e.outerWidth()/2,n=o.left-i;t.css({left:n}),jQuery(".dslca-prompt-modal-custom").insertAfter(t),jQuery(".dslca-prompt-modal-custom").length>0&&jQuery(".dslca-prompt-modal-custom").fadeIn(),t.addClass("dslca-modal-open").show()}(jQuery(this),t)})),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");c(jQuery(this),t)}}))}));var u=function(){"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")})),u(),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){var n=o.closest(".dslc-module-front");dslc_module_delete(n)}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&&u(),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 n=t.find(".dslc-tabs");LiveComposer.Builder.PreviewAreaWindow.dslc_tabs_generate_code(n)}else r(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.")}));function m(e){return(m="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)}var p=window.DSLCFonts.regular,h=window.DSLCFonts.google,f=p.concat(h),v=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 n=i.offset(),s=t.outerHeight(),a=t.outerWidth(),d=n.left-a/2+6,l="50%";d<0&&(l=a/2+d+"px",d=0),jQuery(".dslca-module-edit-field-ttip").show().css({top:n.top-s-20,left:d}),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(),n=e.outerWidth(),s=o.left-n/2+6,a="50%";s<0&&(a=n/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: "+a+" }</style>"))}})),window.dslc_module_options_font(),jQuery(document).on("keyup",".dslca-module-edit-field-icon",(function(e){var t,o,i,n;o=(t=jQuery(this)).closest(".dslca-module-edit-option"),38==e.which&&D(t,"previous"),40==e.which&&D(t,"next"),13!=e.which&&38!=e.which&&40!=e.which&&(i=t.val().toLowerCase(),t.val(i),n=jQuery.grep(v,(function(e,t){return 0==e.indexOf(i)}))[0],jQuery(".dslca-module-edit-field-icon-suggest",o).text(n))})),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(),c("",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()})),function(){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(),n=e.find(".dslca-module-edit-option-box-shadow-blur").val(),s=e.find(".dslca-module-edit-option-box-shadow-spread").val(),a=e.find(".dslca-module-edit-option-box-shadow-color").val(),d=e.find(".dslca-module-edit-option-box-shadow-inset").is(":checked"),l=o+"px "+i+"px "+n+"px "+s+"px "+a+(d=d?" inset":"");t.val(l).trigger("change")}))}(),function(){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(){L(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(),n=i.left+15,s=window.innerWidth;s<n+260&&(n=s-260),o.css("left",n+"px"),jQuery(t).on("scroll",(function(t){var n=(i=e.offset()).left+15,s=window.innerWidth;s<n+260&&(n=s-260),o.css("left",n+"px")}))})),jQuery(".dslca-container").on("mouseenter",".dslca-module-edit-option-slider",(function(){jQuery(this).hasClass("dslca-module-edit-option-select")||x(this)})),jQuery(".dslca-container").on("mouseenter",".dslca-modules-section-edit-option-slider",(function(){x(this)})),jQuery(".dslca-module-edit-form").submit((function(e){e.preventDefault(),Go()})),jQuery(document).on("click",".dslca-module-edit-options-tab-hook",(function(e){e.preventDefault(),Q(jQuery(this))})),jQuery(document).on("click",".dslca-clear-responsive-options",(function(e){e.preventDefault(),j()})),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,b(o),"responsive"==t&&(jQuery(".dslca-container-loader").show(),window.LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(),Go((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(),C((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"),B()})),jQuery(document).on("click",".dslca-module-edit-cancel",(function(e){e.preventDefault(),k((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"),B()}))}));var g=function(){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"),n=o.closest(".dslca-module-edit-option"),s=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),a=s.data("module");jQuery(".dslca-module-options-front textarea",s);if(s.addClass("dslca-module-change-made"),(n.hasClass("dslca-module-edit-option-select")||n.hasClass("dslca-module-edit-option-checkbox"))&&_(),"active"==jQuery(this).closest(".dslca-module-edit-option").data("refresh-on-change")){if(n.find(".dslca-module-edit-option-checkbox-wrapper").length)jQuery('input[type="checkbox"]',n).each((function(){jQuery(this).prop("checked")&&(e=e+jQuery(this).val()+" ")}));else if(o.hasClass("dslca-module-edit-option-radio"))e=jQuery(".dslca-module-edit-field:checked",o).val();else{e=o.val();if("orientation"==i&&"horizontal"==e)jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field").val("40").trigger("change");else if("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(),Go((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")?jQuery(".dslca-container-loader").hide():(window.dslc_module_options_show(a),jQuery(".dslca-container-loader").hide()),jQuery("body").removeClass("dslca-new-preset-added"),LiveComposer.Utils.publish("LC.moduleChange",{moduleId:a,optionID:i,optionVal:o.val()})}))}else{if(o.hasClass("dslca-module-edit-field-font")){var d=o.val();d+=":400,100,200,300,500,600,700,800,900";var l=o.data("affect-on-change-el"),r=o.data("affect-on-change-rule"),c=m=o.val(),u=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);o.val().length&&-1!==h.indexOf(o.val())?document.getElementById("page-builder-frame").contentWindow.WebFont.load({google:{families:[d]},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(","),n="#"+u[0].id+" "+i.join(", #"+u[0].id+" ")+" {"+r+": "+m+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:o,rule:r,elems:l,styleContent:n})},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="#"+u[0].id+" "+e.join(", #"+u[0].id+" ")+" {"+r+": "+m+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:o,rule:r,elems:l,styleContent:t})}),100)}else if(o.hasClass("dslca-module-edit-field-checkbox")){jQuery('input[type="checkbox"]',n).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 m,p=o.data("ext")||"";l=o.data("affect-on-change-el"),r=o.data("affect-on-change-rule"),c=m=o.val();o.hasClass("dslca-module-edit-field-checkbox")&&(m=e,c=t),o.hasClass("dslca-module-edit-field-image")&&(m='url("'+m+'")'),null!==m&&m.length<1&&("background-color"==r||"background"==r)&&(m="transparent"),r.split(",").forEach((function(e){e=e.replace(/\s+/g,"");var t=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),i=l.split(","),n="#"+t[0].id+" "+i.join(", #"+t[0].id+" ")+" {"+e+": "+m+p+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:o,rule:e,elems:l,styleContent:n})}))}var f="";f=-1!==i.indexOf("css_")?c:o.val(),jQuery('.dslca-module-option-front[data-id="'+i+'"]',s).val(f),LiveComposer.Utils.publish("LC.moduleChange",{moduleId:s[0].id,optionID:i,optionVal:c||o.val()})}}))},y=function(){jQuery(document).on("change",".dslca-modules-section-edit-field",(function(){var e,t,o,i,n,s,a,d;if(t=(e=jQuery(this)).data("id"),i=e.val(),u=i,n=i+e.data("ext"),s=e.data("css-rule"),d=o=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument),a=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 l=jQuery('.dslca-modules-section-settings input[data-id="border_style"]').val();a=jQuery('.dslca-modules-section-settings input[data-id="border"]',o),u="",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")?u+="top ":"border-right"==jQuery(this).data("id")?u+="right ":"border-bottom"==jQuery(this).data("id")?u+="bottom ":"border-left"==jQuery(this).data("id")&&(u+="left "))})),e.is(":checked")?"border-top"==e.data("id")?o.css({"border-top-style":l}):"border-right"==e.data("id")?o.css({"border-right-style":l}):"border-bottom"==e.data("id")?o.css({"border-bottom-style":l}):"border-left"==e.data("id")&&o.css({"border-left-style":l}):"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 r=jQuery(this).closest(".dslca-modules-section-edit-option-checkbox-wrapper").find(".dslca-modules-section-edit-field-checkbox"),c="";r.each((function(){jQuery(this).prop("checked")&&(c+=jQuery(this).data("val")+" ")}));var u=c;"show_on"==e.data("id")&&(-1!==c.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!==c.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!==c.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===u.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===u.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===u.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===u.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){var p="top";"section_divider_bottom_style"==t&&(p="bottom");var h=jQuery('.dslc-section-divider[data-divider-pos="'+p+'"] svg',o).attr("style");if(jQuery('.dslc-section-divider[data-divider-pos="'+p+'"]',o).html(""),i&&i.length){var f=jQuery("#dslc-section-dividers",LiveComposer.Builder.PreviewAreaWindow.document).find("svg#"+i).clone();jQuery('.dslc-section-divider[data-divider-pos="'+p+'"]',o).html(f[0]),void 0!==h&&jQuery('.dslc-section-divider[data-divider-pos="'+p+'"] svg',o).attr("style",h)}}else if("bg_image_thumb"==t)if("enabled"==u){if(jQuery("#dslca-post-data-thumb").length){var v="url('"+jQuery("#dslca-post-data-thumb").val()+"')";d.css(s,v)}}else"disabled"==u&&d.css(s,"none");else{var g;e.data("css-element")&&(d=jQuery(e.data("css-element"),o)),s=s.replace(/ /g,"").split(","),g=null!=e.data("ext")?n:i;for(var y=0;y<s.length;y++)d.css(s[y],g)}if(a.val(u),!LiveComposer.Builder.Flags.generate_code_after_row_changed)return!1}))},w=function(){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 n=e.state().get("selection").first().toJSON();o.val(n.id);var s=t.parent().attr("data-id");""!=n.alt&&"image"==s&&jQuery('.dslca-module-edit-option-image_alt input[data-id="image_alt"]').val(n.alt),""!=n.title&&"image"==s&&jQuery('.dslca-module-edit-option-image_title input[data-id="image_title"]').val(n.title),jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).find('.dslca-modules-section-settings input[data-id="dslca-img-url"]').val(n.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()}))};function b(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(),Q()}var j=function(){var 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((function(e){var 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")}))},Q=function(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(),_(),jQuery(".dslca-module-edit-options-tab-hook:visible").length<2?jQuery(".dslca-module-edit-options-tabs").hide():jQuery(".dslca-module-edit-options-tabs").show(),B(),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(),Go((function(){jQuery(".dslca-container-loader").hide()})))),jQuery("body").hasClass("rtl")){var i,n=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")||(n+=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(n)+parseInt(s)+10,jQuery(".dslca-module-edit-options-wrapper").css({width:i+"px"})}};function _(){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,n=!0,s=!0,a=!0,d=!0,l=!0,r=!0,c=!0,u=!0,m=!0,p=!0,h=!0,f=!0,v=!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()&&(n=!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")&&(a=!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")||(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")||(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")&&(v=!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(),n?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(),a?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(),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(),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(),v?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 C(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"),Go((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()}))),Et(".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 k(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),Go((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()})),Et(".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 D(e,t){var o=jQuery(e).closest(".dslca-module-edit-option-icon"),i=jQuery(".dslca-module-edit-field-icon",o),n=v.indexOf(i.val());if("previous"==t)var s=n-1;else s=n+1;jQuery(".dslca-module-edit-field-icon-suggest",o).text(""),s<0&&(s=v.length-1),i.val(v[s]).trigger("change")}function L(e){var t,o,i,n,s,a;window.dslcDebug&&console.log("dslc_module_options_color");var d,l=[],r="dslcColors-"+document.domain;void 0!==localStorage[r]&&(d=JSON.parse(localStorage[r]),l=d),1>l.length&&l.push("#78b"),2>l.length&&l.push("#ab0"),3>l.length&&l.push("#de3"),l.push("#fff"),l.push("#000"),l.push("rgba(0,0,0,0)"),jQuery(e).each((function(){var e=jQuery(this).closest(".dslca-color-option"),d=jQuery(this);jQuery(this).val(),d.wpColorPicker({mode:"hsl",palettes:l,change:function(e,l){t=d;var r=d.wpColorPicker("color");n=null==r?"":r,t.val(n).trigger("change"),t.css("background",n),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,n),s=jQuery(".dslca-module-being-edited",window.LiveComposer.Builder.PreviewAreaDocument),a=t.data("id"),jQuery('.dslca-module-option-front[data-id="'+a+'"]',s).val(n),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");d.wpColorPicker("open"),jQuery(c).on("click",(function(){if("#fff"!==n&&"#ffffff"!==n&&"#000"!==n&&"#000000"!==n&&"rgba(0,0,0,0)"!==n)if(void 0===localStorage[r]){var e=[n];localStorage[r]=JSON.stringify(e)}else{-1==(e=JSON.parse(localStorage[r])).indexOf(n)&&(e.unshift(n),3<e.length&&e.pop()),localStorage[r]=JSON.stringify(e)}d.wpColorPicker("close")})),window.LiveComposer.Builder.Helpers.colorpickers.push(jQuery(this))}))}function x(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=!0;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");if(e.hasClass("dslca-modules-section-edit-option"))o=e.find(".dslca-modules-section-edit-field");else o=e.find(".dslca-module-edit-field");var i=e.find(".dslca-module-edit-field-slider"),n=parseFloat(o.val()),s=parseFloat(o.data("max")),a=parseFloat(o.data("min")),d=parseFloat(o.data("increment")),l=!1;if(void 0!==o.data("onlypositive")&&1===o.data("onlypositive")&&(l=!0),n>=s&&(s=2*n),!l&&n<=a&&(a=2*n),i.slider({min:a,max:s,step:d,value:o.val(),slide:function(e,t){o.val(t.value+""),o.trigger("change")},change:function(t,o){(o.value>=s||o.value<=a)&&(i.slider("destroy"),x(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 B(){jQuery("html").removeClass("dslc-responsive-preview"),jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet")}
2
  /**!
3
- * Sortable 1.10.1
4
  * @author RubaXa <trash@rubaxa.org>
5
  * @author owenm <owen23355@gmail.com>
6
  * @license MIT
7
  */
8
- function S(e){return(S="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 A(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function P(){return(P=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 E(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){A(e,t,o[t])}))}return e}function O(e,t){if(null==e)return{};var o,i,n=function(e,t){if(null==e)return{};var o,i,n={},s=Object.keys(e);for(i=0;i<s.length;i++)o=s[i],t.indexOf(o)>=0||(n[o]=e[o]);return n}(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)&&(n[o]=e[o])}return n}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=f.indexOf(o.val())+1;jQuery(".dslca-module-edit-field-font-suggest",t).text(""),o.val(f[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=f.indexOf(o.val())-1;jQuery(".dslca-module-edit-field-font-suggest",t).text(""),i<0&&(i=f.length-1),o.val(f[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){console.log("1 e.which:"),console.log(e.which);var t,o,i,n,s=!1;t=jQuery(this),o=t.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();if(13!=e.which&&38!=e.which&&40!=e.which){i=t.val();var a=new RegExp("^"+i,"i"),d=f.length,l=0;do{if(a.test(f[l])&&!s)s=f[l];l++}while(l<d);s?i!==s&&(n=s,jQuery(".dslca-module-edit-field-font-suggest",o).show()):(n=i,jQuery(".dslca-module-edit-field-font-suggest",o).hide()),jQuery(".dslca-module-edit-field-font-suggest",o).text(n),n.length&&t.val(n.substring(0,t.val().length))}})),jQuery(document).off("keydown",".dslca-module-edit-field-font").on("keydown",".dslca-module-edit-field-font",(function(e){if(console.log("2 e.which:"),console.log(e.which),13==e.which||9==e.which){var t,o;t=jQuery(this),o=t.closest(".dslca-module-edit-option"),jQuery(".dslca-module-edit-field-font-suggest",o).text().length&&(jQuery(this).val(jQuery(".dslca-module-edit-field-font-suggest",o).text()).trigger("change"),jQuery(".dslca-module-edit-field-font-suggest",o).text(""))}}))};function T(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var I=T(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),M=T(/Edge/i),N=T(/firefox/i),F=T(/safari/i)&&!T(/chrome/i)&&!T(/android/i),W=T(/iP(ad|od|hone)/i),U=T(/chrome/i)&&T(/android/i),H={capture:!1,passive:!1};function z(e,t,o){e.addEventListener(t,o,!I&&H)}function R(e,t,o){e.removeEventListener(t,o,!I&&H)}function q(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}return!1}}function X(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Y(e,t,o,i){if(e){o=o||document;do{if(null!=t&&(">"===t[0]?e.parentNode===o&&q(e,t):q(e,t))||i&&e===o)return e;if(e===o)break}while(e=X(e))}return null}var J,G=/\s+/g;function K(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(G," ").replace(" "+t+" "," ");e.className=(i+(o?" "+t:"")).replace(G," ")}}function V(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 $(e,t){var o="";if("string"==typeof e)o=e;else do{var i=V(e,"transform");i&&"none"!==i&&(o=i+" "+o)}while(!t&&(e=e.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix;return n&&new n(o)}function Z(e,t,o){if(e){var i=e.getElementsByTagName(t),n=0,s=i.length;if(o)for(;n<s;n++)o(i[n],n);return i}return[]}function ee(){return I?document.documentElement:document.scrollingElement}function te(e,t,o,i,n){if(e.getBoundingClientRect||e===window){var s,a,d,l,r,c,u;if(e!==window&&e!==ee()?(a=(s=e.getBoundingClientRect()).top,d=s.left,l=s.bottom,r=s.right,c=s.height,u=s.width):(a=0,d=0,l=window.innerHeight,r=window.innerWidth,c=window.innerHeight,u=window.innerWidth),(t||o)&&e!==window&&(n=n||e.parentNode,!I))do{if(n&&n.getBoundingClientRect&&("none"!==V(n,"transform")||o&&"static"!==V(n,"position"))){var m=n.getBoundingClientRect();a-=m.top+parseInt(V(n,"border-top-width")),d-=m.left+parseInt(V(n,"border-left-width")),l=a+s.height,r=d+s.width;break}}while(n=n.parentNode);if(i&&e!==window){var p=$(n||e),h=p&&p.a,f=p&&p.d;p&&(l=(a/=f)+(c/=f),r=(d/=h)+(u/=h))}return{top:a,left:d,bottom:l,right:r,width:u,height:c}}}function oe(e,t,o){for(var i=de(e,!0),n=te(e)[t];i;){var s=te(i)[o];if(!("top"===o||"left"===o?n>=s:n<=s))return i;if(i===ee())break;i=de(i,!1)}return!1}function ie(e,t,o){for(var i=0,n=0,s=e.children;n<s.length;){if("none"!==s[n].style.display&&s[n]!==ct.ghost&&s[n]!==ct.dragged&&Y(s[n],o.draggable,e,!1)){if(i===t)return s[n];i++}n++}return null}function ne(e,t){for(var o=e.lastElementChild;o&&(o===ct.ghost||"none"===V(o,"display")||t&&!q(o,t));)o=o.previousElementSibling;return o||null}function se(e,t){var o=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===ct.clone||t&&!q(e,t)||o++;return o}function ae(e){var t=0,o=0,i=ee();if(e)do{var n=$(e),s=n.a,a=n.d;t+=e.scrollLeft*s,o+=e.scrollTop*a}while(e!==i&&(e=e.parentNode));return[t,o]}function de(e,t){if(!e||!e.getBoundingClientRect)return ee();var o=e,i=!1;do{if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var n=V(o);if(o.clientWidth<o.scrollWidth&&("auto"==n.overflowX||"scroll"==n.overflowX)||o.clientHeight<o.scrollHeight&&("auto"==n.overflowY||"scroll"==n.overflowY)){if(!o.getBoundingClientRect||o===document.body)return ee();if(i||t)return o;i=!0}}}while(o=o.parentNode);return ee()}function le(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 re(e,t){return function(){if(!J){var o=arguments,i=this;1===o.length?e.call(i,o[0]):e.apply(i,o),J=setTimeout((function(){J=void 0}),t)}}}function ce(e,t,o){e.scrollLeft+=t,e.scrollTop+=o}function ue(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 me="Sortable"+(new Date).getTime();function pe(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==V(e,"display")&&e!==ct.ghost){t.push({target:e,rect:te(e)});var o=E({},t[t.length-1].rect);if(e.thisAnimationDuration){var i=$(e,!0);i&&(o.top-=i.f,o.left-=i.e)}e.fromRect=o}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.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}(t,{target:e}),1)},animateAll:function(o){var i=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof o&&o());var n=!1,s=0;t.forEach((function(e){var t=0,o=e.target,a=o.fromRect,d=te(o),l=o.prevFromRect,r=o.prevToRect,c=e.rect,u=$(o,!0);u&&(d.top-=u.f,d.left-=u.e),o.toRect=d,o.thisAnimationDuration&&le(l,d)&&!le(a,d)&&(c.top-d.top)/(c.left-d.left)==(a.top-d.top)/(a.left-d.left)&&(t=function(e,t,o,i){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-o.top,2)+Math.pow(t.left-o.left,2))*i.animation}(c,l,r,i.options)),le(d,a)||(o.prevFromRect=a,o.prevToRect=d,t||(t=i.options.animation),i.animate(o,c,d,t)),t&&(n=!0,s=Math.max(s,t),clearTimeout(o.animationResetTimer),o.animationResetTimer=setTimeout((function(){o.animationTime=0,o.prevFromRect=null,o.fromRect=null,o.prevToRect=null,o.thisAnimationDuration=null}),t),o.thisAnimationDuration=t)})),clearTimeout(e),n?e=setTimeout((function(){"function"==typeof o&&o()}),s):"function"==typeof o&&o(),t=[]},animate:function(e,t,o,i){if(i){V(e,"transition",""),V(e,"transform","");var n=$(this.el),s=n&&n.a,a=n&&n.d,d=(t.left-o.left)/(s||1),l=(t.top-o.top)/(a||1);e.animatingX=!!d,e.animatingY=!!l,V(e,"transform","translate3d("+d+"px,"+l+"px,0)"),function(e){e.offsetWidth}(e),V(e,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),V(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){V(e,"transition",""),V(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),i)}}}}var he=[],fe={initializeByDefault:!0},ve={mount:function(e){for(var t in fe)!fe.hasOwnProperty(t)||t in e||(e[t]=fe[t]);he.push(e)},pluginEvent:function(e,t,o){var i=this;this.eventCanceled=!1,o.cancel=function(){i.eventCanceled=!0};var n=e+"Global";he.forEach((function(i){t[i.pluginName]&&(t[i.pluginName][n]&&t[i.pluginName][n](E({sortable:t},o)),t.options[i.pluginName]&&t[i.pluginName][e]&&t[i.pluginName][e](E({sortable:t},o)))}))},initializePlugins:function(e,t,o,i){for(var n in he.forEach((function(i){var n=i.pluginName;if(e.options[n]||i.initializeByDefault){var s=new i(e,t,e.options);s.sortable=e,s.options=e.options,e[n]=s,P(o,s.defaults)}})),e.options)if(e.options.hasOwnProperty(n)){var s=this.modifyOption(e,n,e.options[n]);void 0!==s&&(e.options[n]=s)}},getEventProperties:function(e,t){var o={};return he.forEach((function(i){"function"==typeof i.eventProperties&&P(o,i.eventProperties.call(t[i.pluginName],e))})),o},modifyOption:function(e,t,o){var i;return he.forEach((function(n){e[n.pluginName]&&n.optionListeners&&"function"==typeof n.optionListeners[t]&&(i=n.optionListeners[t].call(e[n.pluginName],o))})),i}};function ge(e){var t=e.sortable,o=e.rootEl,i=e.name,n=e.targetEl,s=e.cloneEl,a=e.toEl,d=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[me]){var f,v=t.options,g="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||I||M?(f=document.createEvent("Event")).initEvent(i,!0,!0):f=new CustomEvent(i,{bubbles:!0,cancelable:!0}),f.to=a||o,f.from=d||o,f.item=n||o,f.clone=s,f.oldIndex=l,f.newIndex=r,f.oldDraggableIndex=c,f.newDraggableIndex=u,f.originalEvent=m,f.pullMode=p?p.lastPutMode:void 0;var y=E({},h,ve.getEventProperties(i,t));for(var w in y)f[w]=y[w];o&&o.dispatchEvent(f),v[g]&&v[g].call(t,f)}}var ye=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.evt,n=O(o,["evt"]);ve.pluginEvent.bind(ct)(e,t,E({dragEl:be,parentEl:je,ghostEl:Qe,rootEl:_e,nextEl:Ce,lastDownEl:ke,cloneEl:De,cloneHidden:Le,dragStarted:We,putSortable:Ee,activeSortable:ct.active,originalEvent:i,oldIndex:xe,oldDraggableIndex:Se,newIndex:Be,newDraggableIndex:Ae,hideGhostForTarget:at,unhideGhostForTarget:dt,cloneNowHidden:function(){Le=!0},cloneNowShown:function(){Le=!1},dispatchSortableEvent:function(e){we({sortable:t,name:e,originalEvent:i})}},n))};function we(e){ge(E({putSortable:Ee,cloneEl:De,targetEl:be,rootEl:_e,oldIndex:xe,oldDraggableIndex:Se,newIndex:Be,newDraggableIndex:Ae},e))}var be,je,Qe,_e,Ce,ke,De,Le,xe,Be,Se,Ae,Pe,Ee,Oe,Te,Ie,Me,Ne,Fe,We,Ue,He,ze,Re,qe=!1,Xe=!1,Ye=[],Je=!1,Ge=!1,Ke=[],Ve=!1,$e=[],Ze="undefined"!=typeof document,et=W,tt=M||I?"cssFloat":"float",ot=Ze&&!U&&!W&&"draggable"in document.createElement("div"),it=function(){if(Ze){if(I)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),nt=function(e,t){var o=V(e),i=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),n=ie(e,0,t),s=ie(e,1,t),a=n&&V(n),d=s&&V(s),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+te(n).width,r=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+te(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(n&&a.float&&"none"!==a.float){var c="left"===a.float?"left":"right";return!s||"both"!==d.clear&&d.clear!==c?"horizontal":"vertical"}return n&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=i&&"none"===o[tt]||s&&"none"===o[tt]&&l+r>i)?"vertical":"horizontal"},st=function(e){function t(e,o){return function(i,n,s,a){var d=i.options.group.name&&n.options.group.name&&i.options.group.name===n.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,n,s,a),o)(i,n,s,a);var l=(o?i:n).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var o={},i=e.group;i&&"object"==S(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},at=function(){!it&&Qe&&V(Qe,"display","none")},dt=function(){!it&&Qe&&V(Qe,"display","")};Ze&&document.addEventListener("click",(function(e){if(Xe)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Xe=!1,!1}),!0);var lt=function(e){if(be){e=e.touches?e.touches[0]:e;var t=(n=e.clientX,s=e.clientY,Ye.some((function(e){if(!ne(e)){var t=te(e),o=e[me].options.emptyInsertThreshold,i=n>=t.left-o&&n<=t.right+o,d=s>=t.top-o&&s<=t.bottom+o;return o&&i&&d?a=e:void 0}})),a);if(t){var o={};for(var i in e)e.hasOwnProperty(i)&&(o[i]=e[i]);o.target=o.rootEl=t,o.preventDefault=void 0,o.stopPropagation=void 0,t[me]._onDragOver(o)}}var n,s,a},rt=function(e){be&&be.parentNode[me]._isOutsideThisEl(e.target)};function ct(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=P({},t),e[me]=this;var o={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 nt(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!==ct.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var i in ve.initializePlugins(this,e,o),o)!(i in t)&&(t[i]=o[i]);for(var n in st(t),this)"_"===n.charAt(0)&&"function"==typeof this[n]&&(this[n]=this[n].bind(this));this.nativeDraggable=!t.forceFallback&&ot,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?z(e,"pointerdown",this._onTapStart):(z(e,"mousedown",this._onTapStart),z(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(z(e,"dragover",this),z(e,"dragenter",this)),Ye.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),P(this,pe())}function ut(e,t,o,i,n,s,a,d){var l,r,c=e[me],u=c.options.onMove;return!window.CustomEvent||I||M?(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=n||t,l.relatedRect=s||te(t),l.willInsertAfter=d,l.originalEvent=a,e.dispatchEvent(l),u&&(r=u.call(c,l,a)),r}function mt(e){e.draggable=!1}function pt(){Ve=!1}function ht(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 ft(e){return setTimeout(e,0)}function vt(e){return clearTimeout(e)}ct.prototype={constructor:ct,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Ue=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,be):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,o=this.el,i=this.options,n=i.preventOnFilter,s=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,d=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||d,r=i.filter;if(function(e){$e.length=0;var t=e.getElementsByTagName("input"),o=t.length;for(;o--;){var i=t[o];i.checked&&$e.push(i)}}(o),!be&&!(/mousedown|pointerdown/.test(s)&&0!==e.button||i.disabled||l.isContentEditable||(d=Y(d,i.draggable,o,!1))&&d.animated||ke===d)){if(xe=se(d),Se=se(d,i.draggable),"function"==typeof r){if(r.call(this,e,d,this))return we({sortable:t,rootEl:l,name:"filter",targetEl:d,toEl:o,fromEl:o}),ye("filter",t,{evt:e}),void(n&&e.cancelable&&e.preventDefault())}else if(r&&(r=r.split(",").some((function(i){if(i=Y(l,i.trim(),o,!1))return we({sortable:t,rootEl:i,name:"filter",targetEl:d,fromEl:o,toEl:o}),ye("filter",t,{evt:e}),!0}))))return void(n&&e.cancelable&&e.preventDefault());i.handle&&!Y(l,i.handle,o,!1)||this._prepareDragStart(e,a,d)}}},_prepareDragStart:function(e,t,o){var i,n=this,s=n.el,a=n.options,d=s.ownerDocument;if(o&&!be&&o.parentNode===s){var l=te(o);if(_e=s,je=(be=o).parentNode,Ce=be.nextSibling,ke=o,Pe=a.group,ct.dragged=be,Oe={target:be,clientX:(t||e).clientX,clientY:(t||e).clientY},Ne=Oe.clientX-l.left,Fe=Oe.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,be.style["will-change"]="all",i=function(){ye("delayEnded",n,{evt:e}),ct.eventCanceled?n._onDrop():(n._disableDelayedDragEvents(),!N&&n.nativeDraggable&&(be.draggable=!0),n._triggerDragStart(e,t),we({sortable:n,name:"choose",originalEvent:e}),K(be,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){Z(be,e.trim(),mt)})),z(d,"dragover",lt),z(d,"mousemove",lt),z(d,"touchmove",lt),z(d,"mouseup",n._onDrop),z(d,"touchend",n._onDrop),z(d,"touchcancel",n._onDrop),N&&this.nativeDraggable&&(this.options.touchStartThreshold=4,be.draggable=!0),ye("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(M||I))i();else{if(ct.eventCanceled)return void this._onDrop();z(d,"mouseup",n._disableDelayedDrag),z(d,"touchend",n._disableDelayedDrag),z(d,"touchcancel",n._disableDelayedDrag),z(d,"mousemove",n._delayedDragTouchMoveHandler),z(d,"touchmove",n._delayedDragTouchMoveHandler),a.supportPointer&&z(d,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(i,a.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(){be&&mt(be),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;R(e,"mouseup",this._disableDelayedDrag),R(e,"touchend",this._disableDelayedDrag),R(e,"touchcancel",this._disableDelayedDrag),R(e,"mousemove",this._delayedDragTouchMoveHandler),R(e,"touchmove",this._delayedDragTouchMoveHandler),R(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?z(document,"pointermove",this._onTouchMove):z(document,t?"touchmove":"mousemove",this._onTouchMove):(z(be,"dragend",this),z(_e,"dragstart",this._onDragStart));try{document.selection?ft((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(qe=!1,_e&&be){ye("dragStarted",this,{evt:t}),this.nativeDraggable&&z(document,"dragover",rt);var o=this.options;!e&&K(be,o.dragClass,!1),K(be,o.ghostClass,!0),ct.active=this,e&&this._appendGhost(),we({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Te){this._lastX=Te.clientX,this._lastY=Te.clientY,at();for(var e=document.elementFromPoint(Te.clientX,Te.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Te.clientX,Te.clientY))!==t;)t=e;if(be.parentNode[me]._isOutsideThisEl(e),t)do{if(t[me]){if(t[me]._onDragOver({clientX:Te.clientX,clientY:Te.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);dt()}},_onTouchMove:function(e){if(Oe){var t=this.options,o=t.fallbackTolerance,i=t.fallbackOffset,n=e.touches?e.touches[0]:e,s=Qe&&$(Qe),a=Qe&&s&&s.a,d=Qe&&s&&s.d,l=et&&Re&&ae(Re),r=(n.clientX-Oe.clientX+i.x)/(a||1)+(l?l[0]-Ke[0]:0)/(a||1),c=(n.clientY-Oe.clientY+i.y)/(d||1)+(l?l[1]-Ke[1]:0)/(d||1);if(!ct.active&&!qe){if(o&&Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))<o)return;this._onDragStart(e,!0)}if(Qe){s?(s.e+=r-(Ie||0),s.f+=c-(Me||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,")");V(Qe,"webkitTransform",u),V(Qe,"mozTransform",u),V(Qe,"msTransform",u),V(Qe,"transform",u),Ie=r,Me=c,Te=n}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Qe){var e=this.options.fallbackOnBody?document.body:_e,t=te(be,!0,et,!0,e),o=this.options;if(et){for(Re=e;"static"===V(Re,"position")&&"none"===V(Re,"transform")&&Re!==document;)Re=Re.parentNode;Re!==document.body&&Re!==document.documentElement?(Re===document&&(Re=ee()),t.top+=Re.scrollTop,t.left+=Re.scrollLeft):Re=ee(),Ke=ae(Re)}K(Qe=be.cloneNode(!0),o.ghostClass,!1),K(Qe,o.fallbackClass,!0),K(Qe,o.dragClass,!0),V(Qe,"transition",""),V(Qe,"transform",""),V(Qe,"box-sizing","border-box"),V(Qe,"margin",0),V(Qe,"top",t.top),V(Qe,"left",t.left),V(Qe,"width",t.width),V(Qe,"height",t.height),V(Qe,"opacity","0.8"),V(Qe,"position",et?"absolute":"fixed"),V(Qe,"zIndex","100000"),V(Qe,"pointerEvents","none"),ct.ghost=Qe,e.appendChild(Qe),V(Qe,"transform-origin",Ne/parseInt(Qe.style.width)*100+"% "+Fe/parseInt(Qe.style.height)*100+"%")}},_onDragStart:function(e,t){var o=this,i=e.dataTransfer,n=o.options;ye("dragStart",this,{evt:e}),ct.eventCanceled?this._onDrop():(ye("setupClone",this),ct.eventCanceled||((De=ue(be)).draggable=!1,De.style["will-change"]="",this._hideClone(),K(De,this.options.chosenClass,!1),ct.clone=De),o.cloneId=ft((function(){ye("clone",o),ct.eventCanceled||(o.options.removeCloneOnHide||_e.insertBefore(De,be),o._hideClone(),we({sortable:o,name:"clone"}))})),!t&&K(be,n.dragClass,!0),t?(Xe=!0,o._loopId=setInterval(o._emulateDragOver,50)):(R(document,"mouseup",o._onDrop),R(document,"touchend",o._onDrop),R(document,"touchcancel",o._onDrop),i&&(i.effectAllowed="move",n.setData&&n.setData.call(o,i,be)),z(document,"drop",o),V(be,"transform","translateZ(0)")),qe=!0,o._dragStartId=ft(o._dragStarted.bind(o,t,e)),z(document,"selectstart",o),We=!0,F&&V(document.body,"user-select","none"))},_onDragOver:function(e){var t,o,i,n,s=this.el,a=e.target,d=this.options,l=d.group,r=ct.active,c=Pe===l,u=d.sort,m=Ee||r,p=this,h=!1;if(!Ve){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=Y(a,d.draggable,s,!0),x("dragOver"),ct.eventCanceled)return h;if(be.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return S(!1);if(Xe=!1,r&&!d.disabled&&(c?u||(i=!_e.contains(be)):Ee===this||(this.lastPutMode=Pe.checkPull(this,r,be,e))&&l.checkPut(this,r,be,e))){if(n="vertical"===this._getDirection(e,a),t=te(be),x("dragOverValid"),ct.eventCanceled)return h;if(i)return je=_e,B(),this._hideClone(),x("revert"),ct.eventCanceled||(Ce?_e.insertBefore(be,Ce):_e.appendChild(be)),S(!0);var f=ne(s,d.draggable);if(!f||function(e,t,o){var i=te(ne(o.el,o.options.draggable));return t?e.clientX>i.right+10||e.clientX<=i.right&&e.clientY>i.bottom&&e.clientX>=i.left:e.clientX>i.right&&e.clientY>i.top||e.clientX<=i.right&&e.clientY>i.bottom+10}(e,n,this)&&!f.animated){if(f===be)return S(!1);if(f&&s===e.target&&(a=f),a&&(o=te(a)),!1!==ut(_e,s,be,t,a,o,e,!!a))return B(),s.appendChild(be),je=s,A(),S(!0)}else if(a.parentNode===s){o=te(a);var v,g,y,w=be.parentNode!==s,b=!function(e,t,o){var i=o?e.left:e.top,n=o?e.right:e.bottom,s=o?e.width:e.height,a=o?t.left:t.top,d=o?t.right:t.bottom,l=o?t.width:t.height;return i===a||n===d||i+s/2===a+l/2}(be.animated&&be.toRect||t,a.animated&&a.toRect||o,n),j=n?"top":"left",Q=oe(a,"top","top")||oe(be,"top","top"),_=Q?Q.scrollTop:void 0;if(Ue!==a&&(g=o[j],Je=!1,Ge=!b&&d.invertSwap||w),0!==(v=function(e,t,o,i,n,s,a,d){var l=i?e.clientY:e.clientX,r=i?o.height:o.width,c=i?o.top:o.left,u=i?o.bottom:o.right,m=!1;if(!a)if(d&&ze<r*n){if(!Je&&(1===He?l>c+r*s/2:l<u-r*s/2)&&(Je=!0),Je)m=!0;else if(1===He?l<c+ze:l>u-ze)return-He}else if(l>c+r*(1-n)/2&&l<u-r*(1-n)/2)return function(e){return se(be)<se(e)?1:-1}(t);if((m=m||a)&&(l<c+r*s/2||l>u-r*s/2))return l>c+r/2?1:-1;return 0}(e,a,o,n,b?1:d.swapThreshold,null==d.invertedSwapThreshold?d.swapThreshold:d.invertedSwapThreshold,Ge,Ue===a))){var C=se(be);do{C-=v,y=je.children[C]}while(y&&("none"===V(y,"display")||y===Qe))}if(0===v||y===a)return S(!1);Ue=a,He=v;var k=a.nextElementSibling,D=!1,L=ut(_e,s,be,t,a,o,e,D=1===v);if(!1!==L)return 1!==L&&-1!==L||(D=1===L),Ve=!0,setTimeout(pt,30),B(),D&&!k?s.appendChild(be):a.parentNode.insertBefore(be,D?k:a),Q&&ce(Q,0,_-Q.scrollTop),je=be.parentNode,void 0===g||Ge||(ze=Math.abs(g-te(a)[j])),A(),S(!0)}if(s.contains(be))return S(!1)}return!1}function x(d,l){ye(d,p,E({evt:e,isOwner:c,axis:n?"vertical":"horizontal",revert:i,dragRect:t,targetRect:o,canSort:u,fromSortable:m,target:a,completed:S,onMove:function(o,i){return ut(_e,s,be,t,o,te(o),e,i)},changed:A},l))}function B(){x("dragOverAnimationCapture"),p.captureAnimationState(),p!==m&&m.captureAnimationState()}function S(t){return x("dragOverCompleted",{insertion:t}),t&&(c?r._hideClone():r._showClone(p),p!==m&&(K(be,Ee?Ee.options.ghostClass:r.options.ghostClass,!1),K(be,d.ghostClass,!0)),Ee!==p&&p!==ct.active?Ee=p:p===ct.active&&Ee&&(Ee=null),m===p&&(p._ignoreWhileAnimating=a),p.animateAll((function(){x("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==m&&(m.animateAll(),m._ignoreWhileAnimating=null)),(a===be&&!be.animated||a===s&&!a.animated)&&(Ue=null),d.dragoverBubble||e.rootEl||a===document||(be.parentNode[me]._isOutsideThisEl(e.target),!t&&lt(e)),!d.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function A(){Be=se(be),Ae=se(be,d.draggable),we({sortable:p,name:"change",toEl:s,newIndex:Be,newDraggableIndex:Ae,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){R(document,"mousemove",this._onTouchMove),R(document,"touchmove",this._onTouchMove),R(document,"pointermove",this._onTouchMove),R(document,"dragover",lt),R(document,"mousemove",lt),R(document,"touchmove",lt)},_offUpEvents:function(){var e=this.el.ownerDocument;R(e,"mouseup",this._onDrop),R(e,"touchend",this._onDrop),R(e,"pointerup",this._onDrop),R(e,"touchcancel",this._onDrop),R(document,"selectstart",this)},_onDrop:function(e){var t=this.el,o=this.options;Be=se(be),Ae=se(be,o.draggable),ye("drop",this,{evt:e}),je=be&&be.parentNode,Be=se(be),Ae=se(be,o.draggable),ct.eventCanceled?this._nulling():(qe=!1,Ge=!1,Je=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),vt(this.cloneId),vt(this._dragStartId),this.nativeDraggable&&(R(document,"drop",this),R(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),F&&V(document.body,"user-select",""),e&&(We&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),Qe&&Qe.parentNode&&Qe.parentNode.removeChild(Qe),(_e===je||Ee&&"clone"!==Ee.lastPutMode)&&De&&De.parentNode&&De.parentNode.removeChild(De),be&&(this.nativeDraggable&&R(be,"dragend",this),mt(be),be.style["will-change"]="",We&&!qe&&K(be,Ee?Ee.options.ghostClass:this.options.ghostClass,!1),K(be,this.options.chosenClass,!1),we({sortable:this,name:"unchoose",toEl:je,newIndex:null,newDraggableIndex:null,originalEvent:e}),_e!==je?(Be>=0&&(we({rootEl:je,name:"add",toEl:je,fromEl:_e,originalEvent:e}),we({sortable:this,name:"remove",toEl:je,originalEvent:e}),we({rootEl:je,name:"sort",toEl:je,fromEl:_e,originalEvent:e}),we({sortable:this,name:"sort",toEl:je,originalEvent:e})),Ee&&Ee.save()):Be!==xe&&Be>=0&&(we({sortable:this,name:"update",toEl:je,originalEvent:e}),we({sortable:this,name:"sort",toEl:je,originalEvent:e})),ct.active&&(null!=Be&&-1!==Be||(Be=xe,Ae=Se),we({sortable:this,name:"end",toEl:je,originalEvent:e}),this.save()))),this._nulling())},_nulling:function(){ye("nulling",this),_e=be=je=Qe=Ce=De=ke=Le=Oe=Te=We=Be=Ae=xe=Se=Ue=He=Ee=Pe=ct.dragged=ct.ghost=ct.clone=ct.active=null,$e.forEach((function(e){e.checked=!0})),$e.length=Ie=Me=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":be&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],o=this.el.children,i=0,n=o.length,s=this.options;i<n;i++)Y(e=o[i],s.draggable,this.el,!1)&&t.push(e.getAttribute(s.dataIdAttr)||ht(e));return t},sort:function(e){var t={},o=this.el;this.toArray().forEach((function(e,i){var n=o.children[i];Y(n,this.options.draggable,o,!1)&&(t[e]=n)}),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 Y(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=ve.modifyOption(this,e,t);o[e]=void 0!==i?i:t,"group"===e&&st(o)},destroy:function(){ye("destroy",this);var e=this.el;e[me]=null,R(e,"mousedown",this._onTapStart),R(e,"touchstart",this._onTapStart),R(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(R(e,"dragover",this),R(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),Ye.splice(Ye.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Le){if(ye("hideClone",this),ct.eventCanceled)return;V(De,"display","none"),this.options.removeCloneOnHide&&De.parentNode&&De.parentNode.removeChild(De),Le=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(Le){if(ye("showClone",this),ct.eventCanceled)return;_e.contains(be)&&!this.options.group.revertClone?_e.insertBefore(De,be):Ce?_e.insertBefore(De,Ce):_e.appendChild(De),this.options.group.revertClone&&this.animate(be,De),V(De,"display",""),Le=!1}}else this._hideClone()}},Ze&&z(document,"touchmove",(function(e){(ct.active||qe)&&e.cancelable&&e.preventDefault()})),ct.utils={on:z,off:R,css:V,find:Z,is:function(e,t){return!!Y(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:re,closest:Y,toggleClass:K,clone:ue,index:se,nextTick:ft,cancelNextTick:vt,detectDirection:nt,getChild:ie},ct.get=function(e){return e[me]},ct.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&&(ct.utils=E({},ct.utils,e.utils)),ve.mount(e)}))},ct.create=function(e,t){return new ct(e,t)},ct.version="1.10.1";var gt,yt,wt,bt,jt,Qt,_t=[],Ct=!1;function kt(){_t.forEach((function(e){clearInterval(e.pid)})),_t=[]}function Dt(){clearInterval(Qt)}var Lt=re((function(e,t,o,i){if(t.scroll){var n,s=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,d=t.scrollSensitivity,l=t.scrollSpeed,r=ee(),c=!1;yt!==o&&(yt=o,kt(),gt=t.scroll,n=t.scrollFn,!0===gt&&(gt=de(o,!0)));var u=0,m=gt;do{var p=m,h=te(p),f=h.top,v=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=V(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-s)<=d&&D+w<_)-(Math.abs(g-s)<=d&&!!D),B=Q&&(Math.abs(v-a)<=d&&L+b<C)-(Math.abs(f-a)<=d&&!!L);if(!_t[u])for(var S=0;S<=u;S++)_t[S]||(_t[S]={});_t[u].vx==x&&_t[u].vy==B&&_t[u].el===p||(_t[u].el=p,_t[u].vx=x,_t[u].vy=B,clearInterval(_t[u].pid),0==x&&0==B||(c=!0,_t[u].pid=setInterval(function(){i&&0===this.layer&&ct.active._onTouchMove(jt);var t=_t[this.layer].vy?_t[this.layer].vy*l:0,o=_t[this.layer].vx?_t[this.layer].vx*l:0;"function"==typeof n&&"continue"!==n.call(ct.dragged.parentNode[me],o,t,e,jt,_t[this.layer].el)||ce(_t[this.layer].el,o,t)}.bind({layer:u}),24))),u++}while(t.bubbleScroll&&m!==r&&(m=de(m,!1)));Ct=c}}),30),xt=function(e){var t=e.originalEvent,o=e.putSortable,i=e.dragEl,n=e.activeSortable,s=e.dispatchSortableEvent,a=e.hideGhostForTarget,d=e.unhideGhostForTarget;if(t){var l=o||n;a();var r=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(r.clientX,r.clientY);d(),l&&!l.el.contains(c)&&(s("spill"),this.onSpill({dragEl:i,putSortable:o}))}};function Bt(){}function St(){}Bt.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=ie(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:xt},P(Bt,{pluginName:"revertOnSpill"}),St.prototype={onSpill:function(e){var t=e.dragEl,o=e.putSortable||this.sortable;o.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),o.animateAll()},drop:xt},P(St,{pluginName:"removeOnSpill"});ct.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?z(document,"dragover",this._handleAutoScroll):this.options.supportPointer?z(document,"pointermove",this._handleFallbackAutoScroll):t.touches?z(document,"touchmove",this._handleFallbackAutoScroll):z(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?R(document,"dragover",this._handleAutoScroll):(R(document,"pointermove",this._handleFallbackAutoScroll),R(document,"touchmove",this._handleFallbackAutoScroll),R(document,"mousemove",this._handleFallbackAutoScroll)),Dt(),kt(),clearTimeout(J),J=void 0},nulling:function(){jt=yt=gt=Ct=Qt=wt=bt=null,_t.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var o=this,i=(e.touches?e.touches[0]:e).clientX,n=(e.touches?e.touches[0]:e).clientY,s=document.elementFromPoint(i,n);if(jt=e,t||M||I||F){Lt(e,this.options,s,t);var a=de(s,!0);!Ct||Qt&&i===wt&&n===bt||(Qt&&Dt(),Qt=setInterval((function(){var s=de(document.elementFromPoint(i,n),!0);s!==a&&(a=s,kt()),Lt(e,o.options,s,t)}),10),wt=i,bt=n)}else{if(!this.options.bubbleScroll||de(s,!0)===ee())return void kt();Lt(e,this.options,de(s,!1),!1)}}},P(e,{pluginName:"scroll",initializeByDefault:!0})}),ct.mount(St,Bt);var At=ct;window.onerror=function(e,t,o,i){Nt(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")||n({title:'<a href="https://livecomposerplugin.com/support/" target="_blank"><span class="dslca-icon dslc-icon-comment"></span> &nbsp; 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){Nt(e,t,o,i)},t=document.getElementById("dslca-js-errors-report"),null!==(o=localStorage.getItem("js_errors_report"))&&(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;if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length?(e=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),"#5890e5"):jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length&&(e=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument),"#eabba9"),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(),function(){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(),function(){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(),Et(".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");Et(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")?n({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){e.stopPropagation(),jQuery(".dslca-section-title-filter",this).length&&(!function(){window.dslcDebug&&console.log("dslc_generate_filters");var e,t=[],o='<a html="#" data-origin="">Show All</a>';jQuery(".dslca-section:visible .dslca-origin").each((function(){e=jQuery(this),-1==jQuery.inArray(e.data("origin"),t)&&(t.push(e.data("origin")),o+='<a href="#" data-origin="'+e.data("origin")+'">'+e.data("origin")+"</a>")})),jQuery(".dslca-section:visible .dslca-section-title-filter-options").html(o).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=jQuery(this).data("origin"),o=jQuery(this).closest(".dslca-section");o.hasClass("dslca-templates-load"),jQuery(".dslca-section-title-filter-curr",o).text(jQuery(this).text()),jQuery(".dslca-section-scroller-inner").css({left:0}),function(e,t){window.dslcDebug&&console.log("dslc_filter_origin");jQuery(".dslca-origin",t).attr("data-display-module","false"),jQuery('.dslca-origin[data-origin="'+e+'"]',t).attr("data-display-module","true"),""==e&&(jQuery(".dslca-origin",t).attr("data-display-module","true"),jQuery(".dslca-origin.dslca-exclude",t).attr("data-display-module","false"))}(t,o),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")};var Pt=function(){window.dslcDebug&&console.log("hidePublishButton"),jQuery(".dslca-save-composer").hide(),jQuery(".dslca-save-draft-composer").hide()},Et=function(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(""),Q(),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 Ot(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,n="";"tablet_responsive"===t.data("tab")?n="body.dslc-res-tablet ":"phone_responsive"===t.data("tab")&&(n="body.dslc-res-phone ");var s=o.data("affect-on-change-el");if(void 0!==s){var a=s.split(",");s="";for(var d=0;d<a.length;d++)d>0&&(s+=", "),s+=n+"#"+i+" "+a[d];var l,r=o.data("affect-on-change-rule").replace(/ /g,"").split(","),c=o.data("ext");if(t.toggleClass("dslca-option-off"),t.hasClass("dslca-option-off")){l=It(e),o.data("val-bckp",l);for(d=0;d<r.length;d++)jQuery(s,LiveComposer.Builder.PreviewAreaDocument).css(r[d],""),Tt(s,r[d],i);o.val("").trigger("change")}else{o.val(o.data("val-bckp")).trigger("change"),l=function(e,t){if(""===e||null===e)return e;-1==e.indexOf(t)&&(e+=t);return e}(l=It(e),c||"");for(d=0;d<r.length;d++){var u=s+"{"+r[d]+": "+l+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:t,rule:r[d],elems:s.replace(new RegExp("#"+i,"gi"),"").trim(),styleContent:u})}}}}}function Tt(e,t,o){var i,n="css-for-"+o,s=document.getElementById("page-builder-frame").contentWindow.document.getElementById(n);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 It(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(),Ot(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")&&Ot(jQuery(e.target).closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("id"))}))}));var Mt=function(){jQuery([document,LiveComposer.Builder.PreviewAreaWindow.document]).unbind("keydown").bind("keydown",(function(e){var t;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(),n({title:DSLCString.str_refresh_title,content:DSLCString.str_refresh_descr,confirm:function(){window.location.reload()}}))),function(e){if(83==e.which&&(e.metaKey||e.ctrlKey)&&"block"==jQuery(".dslca-save-composer-hook").css("display"))dslc_save_composer(),e.preventDefault()}(e),function(e){(e.metaKey||e.ctrlKey)&&LiveComposer.Builder.PreviewAreaWindow.document.querySelector("body").classList.add("key-press-cmd")}(e)})),jQuery([document,LiveComposer.Builder.PreviewAreaWindow.document]).unbind("keyup").bind("keyup",(function(e){"Meta"===e.key&&LiveComposer.Builder.PreviewAreaWindow.document.querySelector("body").classList.remove("key-press-cmd")}))};function Nt(e,t,o,i){var n="JavaScript error detected in a third-party plugin";null!=t.match("wp-content/plugins/live-composer-page-builder/js")&&(n="Live Composer returned JS error");var s="";s+='<br /><strong style="color:#E55F5F;">'+n+"</strong><br />",s+=e+'<br /> File "'+t+'", line '+o+", char "+i+"<br />","undefined"!=typeof Storage&&localStorage.setItem("js_errors_report",s)}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"),n=(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">'+n+"</a>",void 0!==s&&(t+=' <span class="dslc-hf-block-overlay-text">'+s+"</span>"),t+="</div>";var a=document.createElement("div");a.innerHTML=t,o.append(a)}))}));var Ft={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},Wt={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},Ut=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective"],Ht={CSS:{},springs:{}};function zt(e,t,o){return Math.min(Math.max(e,t),o)}function Rt(e,t){return e.indexOf(t)>-1}function qt(e,t){return e.apply(null,t)}var Xt={arr:function(e){return Array.isArray(e)},obj:function(e){return Rt(Object.prototype.toString.call(e),"Object")},pth:function(e){return Xt.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||Xt.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 Xt.hex(e)||Xt.rgb(e)||Xt.hsl(e)},key:function(e){return!Ft.hasOwnProperty(e)&&!Wt.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function Yt(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map((function(e){return parseFloat(e)})):[]}function Jt(e,t){var o=Yt(e),i=zt(Xt.und(o[0])?1:o[0],.1,100),n=zt(Xt.und(o[1])?100:o[1],.1,100),s=zt(Xt.und(o[2])?10:o[2],.1,100),a=zt(Xt.und(o[3])?0:o[3],.1,100),d=Math.sqrt(n/i),l=s/(2*Math.sqrt(n*i)),r=l<1?d*Math.sqrt(1-l*l):0,c=1,u=l<1?(l*d-a)/r:-a+d;function m(e){var o=t?t*e/1e3:e;return o=l<1?Math.exp(-o*l*d)*(c*Math.cos(r*o)+u*Math.sin(r*o)):(c+u*o)*Math.exp(-o*d),0===e||1===e?e:1-o}return t?m:function(){var t=Ht.springs[e];if(t)return t;for(var o=0,i=0;;)if(1===m(o+=1/6)){if(++i>=16)break}else i=0;var n=o*(1/6)*1e3;return Ht.springs[e]=n,n}}function Gt(e){return void 0===e&&(e=10),function(t){return Math.round(t*e)*(1/e)}}var Kt,Vt,$t=function(){var e=11,t=1/(e-1);function o(e,t){return 1-3*t+3*e}function i(e,t){return 3*t-6*e}function n(e){return 3*e}function s(e,t,s){return((o(t,s)*e+i(t,s))*e+n(t))*e}function a(e,t,s){return 3*o(t,s)*e*e+2*i(t,s)*e+n(t)}return function(o,i,n,d){if(0<=o&&o<=1&&0<=n&&n<=1){var l=new Float32Array(e);if(o!==i||n!==d)for(var r=0;r<e;++r)l[r]=s(r*t,o,n);return function(e){return o===i&&n===d?e:0===e||1===e?e:s(c(e),i,d)}}function c(i){for(var d=0,r=1,c=e-1;r!==c&&l[r]<=i;++r)d+=t;--r;var u=d+(i-l[r])/(l[r+1]-l[r])*t,m=a(u,o,n);return m>=.001?function(e,t,o,i){for(var n=0;n<4;++n){var d=a(t,o,i);if(0===d)return t;t-=(s(t,o,i)-e)/d}return t}(i,u,o,n):0===m?u:function(e,t,o,i,n){var a,d,l=0;do{(a=s(d=t+(o-t)/2,i,n)-e)>0?o=d:t=d}while(Math.abs(a)>1e-7&&++l<10);return d}(i,d,d+t,o,n)}}}(),Zt=(Kt={linear:function(){return function(e){return e}}},Vt={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=zt(e,1,10),i=zt(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){Vt[e]=function(){return function(e){return Math.pow(e,t+2)}}})),Object.keys(Vt).forEach((function(e){var t=Vt[e];Kt["easeIn"+e]=t,Kt["easeOut"+e]=function(e,o){return function(i){return 1-t(e,o)(1-i)}},Kt["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}}})),Kt);function eo(e,t){if(Xt.fnc(e))return e;var o=e.split("(")[0],i=Zt[o],n=Yt(e);switch(o){case"spring":return Jt(e,t);case"cubicBezier":return qt($t,n);case"steps":return qt(Gt,n);default:return qt(i,n)}}function to(e){try{return document.querySelectorAll(e)}catch(e){return}}function oo(e,t){for(var o=e.length,i=arguments.length>=2?arguments[1]:void 0,n=[],s=0;s<o;s++)if(s in e){var a=e[s];t.call(i,a,s,e)&&n.push(a)}return n}function io(e){return e.reduce((function(e,t){return e.concat(Xt.arr(t)?io(t):t)}),[])}function no(e){return Xt.arr(e)?e:(Xt.str(e)&&(e=to(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function so(e,t){return e.some((function(e){return e===t}))}function ao(e){var t={};for(var o in e)t[o]=e[o];return t}function lo(e,t){var o=ao(e);for(var i in e)o[i]=t.hasOwnProperty(i)?t[i]:e[i];return o}function ro(e,t){var o=ao(e);for(var i in t)o[i]=Xt.und(e[i])?t[i]:e[i];return o}function co(e){return Xt.rgb(e)?(o=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(t=e))?"rgba("+o[1]+",1)":t:Xt.hex(e)?function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,o,i){return t+t+o+o+i+i})),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+parseInt(o[1],16)+","+parseInt(o[2],16)+","+parseInt(o[3],16)+",1)"}(e):Xt.hsl(e)?function(e){var t,o,i,n=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),s=parseInt(n[1],10)/360,a=parseInt(n[2],10)/100,d=parseInt(n[3],10)/100,l=n[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==a)t=o=i=d;else{var c=d<.5?d*(1+a):d+a-d*a,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+","+l+")"}(e):void 0;var t,o}function uo(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 mo(e,t){return Xt.fnc(e)?e(t.target,t.id,t.total):e}function po(e,t){return e.getAttribute(t)}function ho(e,t,o){if(so([o,"deg","rad","turn"],uo(t)))return t;var i=Ht.CSS[t+o];if(!Xt.und(i))return i;var n=document.createElement(e.tagName),s=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;s.appendChild(n),n.style.position="absolute",n.style.width=100+o;var a=100/n.offsetWidth;s.removeChild(n);var d=a*parseFloat(t);return Ht.CSS[t+o]=d,d}function fo(e,t,o){if(t in e.style){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),n=e.style[t]||getComputedStyle(e).getPropertyValue(i)||"0";return o?ho(e,n,o):n}}function vo(e,t){return Xt.dom(e)&&!Xt.inp(e)&&(po(e,t)||Xt.svg(e)&&e[t])?"attribute":Xt.dom(e)&&so(Ut,t)?"transform":Xt.dom(e)&&"transform"!==t&&fo(e,t)?"css":null!=e[t]?"object":void 0}function go(e){if(Xt.dom(e)){for(var t,o=e.style.transform||"",i=/(\w+)\(([^)]*)\)/g,n=new Map;t=i.exec(o);)n.set(t[1],t[2]);return n}}function yo(e,t,o,i){var n=Rt(t,"scale")?1:0+function(e){return Rt(e,"translate")||"perspective"===e?"px":Rt(e,"rotate")||Rt(e,"skew")?"deg":void 0}(t),s=go(e).get(t)||n;return o&&(o.transforms.list.set(t,s),o.transforms.last=t),i?ho(e,s,i):s}function wo(e,t,o,i){switch(vo(e,t)){case"transform":return yo(e,t,i,o);case"css":return fo(e,t,o);case"attribute":return po(e,t);default:return e[t]||0}}function bo(e,t){var o=/^(\*=|\+=|-=)/.exec(e);if(!o)return e;var i=uo(e)||0,n=parseFloat(t),s=parseFloat(e.replace(o[0],""));switch(o[0][0]){case"+":return n+s+i;case"-":return n-s+i;case"*":return n*s+i}}function jo(e,t){if(Xt.col(e))return co(e);if(/\s/g.test(e))return e;var o=uo(e),i=o?e.substr(0,e.length-o.length):e;return t?i+t:i}function Qo(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function _o(e){for(var t,o=e.points,i=0,n=0;n<o.numberOfItems;n++){var s=o.getItem(n);n>0&&(i+=Qo(t,s)),t=s}return i}function Co(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return function(e){return 2*Math.PI*po(e,"r")}(e);case"rect":return function(e){return 2*po(e,"width")+2*po(e,"height")}(e);case"line":return function(e){return Qo({x:po(e,"x1"),y:po(e,"y1")},{x:po(e,"x2"),y:po(e,"y2")})}(e);case"polyline":return _o(e);case"polygon":return function(e){var t=e.points;return _o(e)+Qo(t.getItem(t.numberOfItems-1),t.getItem(0))}(e)}}function ko(e,t){var o=t||{},i=o.el||function(e){for(var t=e.parentNode;Xt.svg(t)&&Xt.svg(t.parentNode);)t=t.parentNode;return t}(e),n=i.getBoundingClientRect(),s=po(i,"viewBox"),a=n.width,d=n.height,l=o.viewBox||(s?s.split(" "):[0,0,a,d]);return{el:i,viewBox:l,x:l[0]/1,y:l[1]/1,w:a/l[2],h:d/l[3]}}function Do(e,t){function o(o){void 0===o&&(o=0);var i=t+o>=1?t+o:0;return e.el.getPointAtLength(i)}var i=ko(e.el,e.svg),n=o(),s=o(-1),a=o(1);switch(e.property){case"x":return(n.x-i.x)*i.w;case"y":return(n.y-i.y)*i.h;case"angle":return 180*Math.atan2(a.y-s.y,a.x-s.x)/Math.PI}}function Lo(e,t){var o=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,i=jo(Xt.pth(e)?e.totalLength:e,t)+"";return{original:i,numbers:i.match(o)?i.match(o).map(Number):[0],strings:Xt.str(e)||t?i.split(o):[]}}function xo(e){return oo(e?io(Xt.arr(e)?e.map(no):no(e)):[],(function(e,t,o){return o.indexOf(e)===t}))}function Bo(e){var t=xo(e);return t.map((function(e,o){return{target:e,id:o,total:t.length,transforms:{list:go(e)}}}))}function So(e,t){var o=ao(t);if(/^spring/.test(o.easing)&&(o.duration=Jt(o.easing)),Xt.arr(e)){var i=e.length;2===i&&!Xt.obj(e[0])?e={value:e}:Xt.fnc(t.duration)||(o.duration=t.duration/i)}var n=Xt.arr(e)?e:[e];return n.map((function(e,o){var i=Xt.obj(e)&&!Xt.pth(e)?e:{value:e};return Xt.und(i.delay)&&(i.delay=o?0:t.delay),Xt.und(i.endDelay)&&(i.endDelay=o===n.length-1?t.endDelay:0),i})).map((function(e){return ro(e,o)}))}function Ao(e,t){var o=[],i=t.keyframes;for(var n in i&&(t=ro(function(e){for(var t=oo(io(e.map((function(e){return Object.keys(e)}))),(function(e){return Xt.key(e)})).reduce((function(e,t){return e.indexOf(t)<0&&e.push(t),e}),[]),o={},i=function(i){var n=t[i];o[n]=e.map((function(e){var t={};for(var o in e)Xt.key(o)?o==n&&(t.value=e[o]):t[o]=e[o];return t}))},n=0;n<t.length;n++)i(n);return o}(i),t)),t)Xt.key(n)&&o.push({name:n,tweens:So(t[n],e)});return o}function Po(e,t){var o;return e.tweens.map((function(i){var n=function(e,t){var o={};for(var i in e){var n=mo(e[i],t);Xt.arr(n)&&1===(n=n.map((function(e){return mo(e,t)}))).length&&(n=n[0]),o[i]=n}return o.duration=parseFloat(o.duration),o.delay=parseFloat(o.delay),o}(i,t),s=n.value,a=Xt.arr(s)?s[1]:s,d=uo(a),l=wo(t.target,e.name,d,t),r=o?o.to.original:l,c=Xt.arr(s)?s[0]:r,u=uo(c)||uo(l),m=d||u;return Xt.und(a)&&(a=r),n.from=Lo(c,m),n.to=Lo(bo(a,c),m),n.start=o?o.end:0,n.end=n.start+n.delay+n.duration+n.endDelay,n.easing=eo(n.easing,n.duration),n.isPath=Xt.pth(s),n.isColor=Xt.col(n.from.original),n.isColor&&(n.round=1),o=n,n}))}var Eo={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,n){if(i.list.set(t,o),t===i.last||n){var s="";i.list.forEach((function(e,t){s+=t+"("+e+") "})),e.style.transform=s}}};function Oo(e,t){Bo(e).forEach((function(e){for(var o in t){var i=mo(t[o],e),n=e.target,s=uo(i),a=wo(n,o,s,e),d=bo(jo(i,s||uo(a)),a),l=vo(n,o);Eo[l](n,o,d,e.transforms,!0)}}))}function To(e,t){return oo(io(e.map((function(e){return t.map((function(t){return function(e,t){var o=vo(e.target,t.name);if(o){var i=Po(t,e),n=i[i.length-1];return{type:o,property:t.name,animatable:e,tweens:i,duration:n.end,delay:i[0].delay,endDelay:n.endDelay}}}(e,t)}))}))),(function(e){return!Xt.und(e)}))}function Io(e,t){var o=e.length,i=function(e){return e.timelineOffset?e.timelineOffset:0},n={};return n.duration=o?Math.max.apply(Math,e.map((function(e){return i(e)+e.duration}))):t.duration,n.delay=o?Math.min.apply(Math,e.map((function(e){return i(e)+e.delay}))):t.delay,n.endDelay=o?n.duration-Math.max.apply(Math,e.map((function(e){return i(e)+e.duration-e.endDelay}))):t.endDelay,n}var Mo=0;var No,Fo=[],Wo=[],Uo=function(){function e(){No=requestAnimationFrame(t)}function t(t){var o=Fo.length;if(o){for(var i=0;i<o;){var n=Fo[i];if(n.paused){var s=Fo.indexOf(n);s>-1&&(Fo.splice(s,1),o=Fo.length)}else n.tick(t);i++}e()}else No=cancelAnimationFrame(No)}return e}();function Ho(e){void 0===e&&(e={});var t,o=0,i=0,n=0,s=0,a=null;function d(e){var t=window.Promise&&new Promise((function(e){return a=e}));return e.finished=t,t}var l=function(e){var t=lo(Ft,e),o=lo(Wt,e),i=Ao(o,e),n=Bo(e.targets),s=To(n,i),a=Io(s,o),d=Mo;return Mo++,ro(t,{id:d,children:[],animatables:n,animations:s,duration:a.duration,delay:a.delay,endDelay:a.endDelay})}(e);d(l);function r(){var e=l.direction;"alternate"!==e&&(l.direction="normal"!==e?"normal":"reverse"),l.reversed=!l.reversed,t.forEach((function(e){return e.reversed=l.reversed}))}function c(e){return l.reversed?l.duration-e:e}function u(){o=0,i=c(l.currentTime)*(1/Ho.speed)}function m(e,t){t&&t.seek(e-t.timelineOffset)}function p(e){for(var t=0,o=l.animations,i=o.length;t<i;){var n=o[t],s=n.animatable,a=n.tweens,d=a.length-1,r=a[d];d&&(r=oo(a,(function(t){return e<t.end}))[0]||r);for(var c=zt(e-r.start-r.delay,0,r.duration)/r.duration,u=isNaN(c)?1:r.easing(c),m=r.to.strings,p=r.round,h=[],f=r.to.numbers.length,v=void 0,g=0;g<f;g++){var y=void 0,w=r.to.numbers[g],b=r.from.numbers[g]||0;y=r.isPath?Do(r.value,u*w):b+u*(w-b),p&&(r.isColor&&g>2||(y=Math.round(y*p)/p)),h.push(y)}var j=m.length;if(j){v=m[0];for(var Q=0;Q<j;Q++){m[Q];var _=m[Q+1],C=h[Q];isNaN(C)||(v+=_?C+_:C+" ")}}else v=h[0];Eo[n.type](s.target,n.property,v,s.transforms),n.currentValue=v,t++}}function h(e){l[e]&&!l.passThrough&&l[e](l)}function f(e){var u=l.duration,f=l.delay,v=u-l.endDelay,g=c(e);l.progress=zt(g/u*100,0,100),l.reversePlayback=g<l.currentTime,t&&function(e){if(l.reversePlayback)for(var o=s;o--;)m(e,t[o]);else for(var i=0;i<s;i++)m(e,t[i])}(g),!l.began&&l.currentTime>0&&(l.began=!0,h("begin")),!l.loopBegan&&l.currentTime>0&&(l.loopBegan=!0,h("loopBegin")),g<=f&&0!==l.currentTime&&p(0),(g>=v&&l.currentTime!==u||!u)&&p(u),g>f&&g<v?(l.changeBegan||(l.changeBegan=!0,l.changeCompleted=!1,h("changeBegin")),h("change"),p(g)):l.changeBegan&&(l.changeCompleted=!0,l.changeBegan=!1,h("changeComplete")),l.currentTime=zt(g,0,u),l.began&&h("update"),e>=u&&(i=0,l.remaining&&!0!==l.remaining&&l.remaining--,l.remaining?(o=n,h("loopComplete"),l.loopBegan=!1,"alternate"===l.direction&&r()):(l.paused=!0,l.completed||(l.completed=!0,h("loopComplete"),h("complete"),!l.passThrough&&"Promise"in window&&(a(),d(l)))))}return l.reset=function(){var e=l.direction;l.passThrough=!1,l.currentTime=0,l.progress=0,l.paused=!0,l.began=!1,l.loopBegan=!1,l.changeBegan=!1,l.completed=!1,l.changeCompleted=!1,l.reversePlayback=!1,l.reversed="reverse"===e,l.remaining=l.loop,t=l.children;for(var o=s=t.length;o--;)l.children[o].reset();(l.reversed&&!0!==l.loop||"alternate"===e&&1===l.loop)&&l.remaining++,p(l.reversed?l.duration:0)},l.set=function(e,t){return Oo(e,t),l},l.tick=function(e){n=e,o||(o=n),f((n+(i-o))*Ho.speed)},l.seek=function(e){f(c(e))},l.pause=function(){l.paused=!0,u()},l.play=function(){l.paused&&(l.completed&&l.reset(),l.paused=!1,Fo.push(l),u(),No||Uo())},l.reverse=function(){r(),u()},l.restart=function(){l.reset(),l.play()},l.reset(),l.autoplay&&l.play(),l}function zo(e,t){for(var o=t.length;o--;)so(e,t[o].animatable.target)&&t.splice(o,1)}"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){document.hidden?(Fo.forEach((function(e){return e.pause()})),Wo=Fo.slice(0),Ho.running=Fo=[]):Wo.forEach((function(e){return e.play()}))})),Ho.version="3.1.0",Ho.speed=1,Ho.running=Fo,Ho.remove=function(e){for(var t=xo(e),o=Fo.length;o--;){var i=Fo[o],n=i.animations,s=i.children;zo(t,n);for(var a=s.length;a--;){var d=s[a],l=d.animations;zo(t,l),l.length||d.children.length||s.splice(a,1)}n.length||s.length||i.pause()}},Ho.get=wo,Ho.set=Oo,Ho.convertPx=ho,Ho.path=function(e,t){var o=Xt.str(e)?to(e)[0]:e,i=t||100;return function(e){return{property:e,el:o,svg:ko(o),totalLength:Co(o)*(i/100)}}},Ho.setDashoffset=function(e){var t=Co(e);return e.setAttribute("stroke-dasharray",t),t},Ho.stagger=function(e,t){void 0===t&&(t={});var o=t.direction||"normal",i=t.easing?eo(t.easing):null,n=t.grid,s=t.axis,a=t.from||0,d="first"===a,l="center"===a,r="last"===a,c=Xt.arr(e),u=c?parseFloat(e[0]):parseFloat(e),m=c?parseFloat(e[1]):0,p=uo(c?e[1]:e)||0,h=t.start||0+(c?u:0),f=[],v=0;return function(e,t,g){if(d&&(a=0),l&&(a=(g-1)/2),r&&(a=g-1),!f.length){for(var y=0;y<g;y++){if(n){var w=l?(n[0]-1)/2:a%n[0],b=l?(n[1]-1)/2:Math.floor(a/n[0]),j=w-y%n[0],Q=b-Math.floor(y/n[0]),_=Math.sqrt(j*j+Q*Q);"x"===s&&(_=-j),"y"===s&&(_=-Q),f.push(_)}else f.push(Math.abs(a-y));v=Math.max.apply(Math,f)}i&&(f=f.map((function(e){return i(e/v)*v}))),"reverse"===o&&(f=f.map((function(e){return s?e<0?-1*e:-e:Math.abs(v-e)})))}return h+(c?(m-u)/v:u)*(Math.round(100*f[t])/100)+p}},Ho.timeline=function(e){void 0===e&&(e={});var t=Ho(e);return t.duration=0,t.add=function(o,i){var n=Fo.indexOf(t),s=t.children;function a(e){e.passThrough=!0}n>-1&&Fo.splice(n,1);for(var d=0;d<s.length;d++)a(s[d]);var l=ro(o,lo(Wt,e));l.targets=l.targets||e.targets;var r=t.duration;l.autoplay=!1,l.direction=t.direction,l.timelineOffset=Xt.und(i)?r:bo(i,r),a(t),t.seek(l.timelineOffset);var c=Ho(l);a(c),s.push(c);var u=Io(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},Ho.easing=eo,Ho.penner=Zt,Ho.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};var Ro=Ho,qo=function(){return!LiveComposer.Builder.Flags.panelOpened||(LiveComposer.Builder.UI.shakePanelConfirmButton(),!1)};document.addEventListener("moduleDuplicate",(function(e){var t=e.detail;if(!qo())return!1;t.classList.contains("dslca-action-disabled")||Yo(t.closest(".dslc-module-front"))})),document.addEventListener("moduleDelete",(function(e){var t=e.detail;if(!qo())return!1;t.classList.contains("dslca-action-disabled")||n({title:DSLCString.str_del_module_title,content:DSLCString.str_del_module_descr,confirm:function(){!function(e){window.dslcDebug&&console.log("dslc_delete_module");Et(".dslca-modules"),Ro({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()}})}(t.closest(".dslc-module-front"))}})})),document.addEventListener("moduleEdit",(function(e){var t=e.detail.closest(".dslc-module-front"),o=t.dataset.module,i=LiveComposer.Builder.PreviewAreaWindow.document.querySelector(".dslca-module-being-edited"),n=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;if(LiveComposer.Builder.Flags.uiHidden||null!==i&&i.length>0||n>0)return i!=t&&LiveComposer.Builder.UI.shakePanelConfirmButton(),!1;Xo(),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){var t=e.detail.closest(".dslc-module-front").querySelector(".dslca-module-code").innerText;localStorage.setItem("lcCopyPasteStorage",t)})),document.addEventListener("pasteModuleStyles",(function(e){var t=e.detail.closest(".dslc-module-front"),o=jQuery(t),i=localStorage.getItem("lcCopyPasteStorage"),n=!1;if(i)try{n=JSON.parse(i)}catch(e){console.log("Can't parse copy/paste string into JSON:"),console.log(e)}if(n&&n.module_id===t.dataset.module){var s=t.querySelector(".dslca-module-code").innerText,a=!1;try{a=JSON.parse(s)}catch(e){console.log("Can't parse current module code into JSON:"),console.log(e)}if(a){var d=!1;for(var l in n)l.includes("css_")&&(a[l]=n[l],d=!0);for(var r in a)r.includes("css_")&&(a[r]!==n[r]&&(a[r]=""),d=!0);d&&(a.action="dslc-ajax-add-module",a.dslc="active",a.dslc_module_id=a.module_id,a.dslc_module_instance_id=a.module_instance_id,a.dslc_post_id=a.post_id,o.hasClass("dslca-preload-preset")?a.dslc_preload_preset="enabled":a.dslc_preload_preset="disabled",o.removeClass("dslca-preload-preset"),a.dslc_url_vars=LiveComposer.Utils.get_page_params(),jQuery.post(DSLCAjax.ajaxurl,a,(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){var t=e.detail,o=t.closest(".dslc-module-front");if(!t.classList.contains("dslca-action-disabled")){var i=o.dataset.dslcModuleSize,n=t.dataset.size;Number(i)!==Number(n)&&function(e,t){window.dslcDebug&&console.log("dslc_module_width_set");var o="dslc-"+t+"-col";jQuery(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("dslc-module-size",t),e.setAttribute("data-dslc-module-size",t),LiveComposer.Utils.update_module_property_raw(e,"dslc_m_size",t),LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(),window.dslc_generate_code(),window.dslc_show_publish_button()}(o,n)}})),document.addEventListener("wysiwygEdit",(function(e){var t=e.detail,o=t.closest(".dslc-module-front"),i=t.dataset.idToEdit,n=o.querySelector('[data-edit-id="'+i+'"]'),s="";if(void 0===(s="TEXTAREA"===n.tagName||"INPUT"===n.tagName?n.value:n.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 a=tinymce.get("dslcawpeditor");document.getElementById("wp-dslcawpeditor-wrap").classList.contains("tmce-active")?a.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(),n.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.")}));var Xo=function(){var e=LiveComposer.Builder.PreviewAreaWindow.document.querySelector(".dslca-module-being-edited");null!==e&&e.classList.remove("dslca-module-being-edited")};function Yo(e){window.dslcDebug&&console.log("dslc_copy_module"),Xo();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"),Jo(t),window.dslc_generate_code(),Ro({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()}var Jo=function(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],n=i.textContent;i.setAttribute("id","#css-for-dslc-module-"+t),n=n.split(o).join("dslc-module-"+t),i.textContent=n,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"),n=jQuery(jQuery("#pseudo-panel").html());jQuery("#wpwrap").append(n);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(),Pt();var a=jQuery(".dslca-module-options-front",t).children().clone();LiveComposer.Builder.moduleBackup=a,LiveComposer.Builder.Flags.panelOpened=!0,n.show(),n.addClass("show"),jQuery.post(DSLCAjax.ajaxurl,s,(function(e){n.remove(),Et(".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()}))};var Go=function(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),n=t.data("module-id"),s={action:"dslc-ajax-add-module",dslc:"active"};s.dslc_module_id=o,s.dslc_module_instance_id=n,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 n=new Event("moduleOutputAltered");LiveComposer.Builder.PreviewAreaWindow.dispatchEvent(n),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),n=e.data("module-id"),s={action:"dslc-ajax-add-module",dslc:"active"};s.dslc_module_id=o,s.dslc_module_instance_id=n,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")}))};var Ko=function(){LiveComposer.Builder.PreviewAreaDocument.on({mouseenter:function(e){jQuery(".dslca-modules-section-manage",LiveComposer.Builder.PreviewAreaDocument).css("z-index","99998");var 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"),LiveComposer.Builder.PreviewAreaDocument.on("blur",".dslca-editable-content",(function(){LiveComposer.Builder.Flags.uiHidden||"simple"!=jQuery(this).data("type")||r(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()),r(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")}))},Vo=function(){var e,t,o,i=jQuery(".dslca-modules .dslca-section-scroller-content");0==i.length&&(i=[document.createElement("div")]);At.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 n,s,a=i.item;if(i.preventDefault(),jQuery(a).closest(".dslca-section-scroller-content").length>0)return!1;jQuery(".dslca-options-hovered",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-options-hovered"),e=jQuery(a.parentNode),t=a.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"),n=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:n,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(a).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")}})},$o=function(e){var t=this;this.section=jQuery(e).closest(".dslc-modules-section"),this.elem=e,this.observer=new mqMutationObserver(e,(function(){var o=t.elem.classList;0==e.querySelectorAll(".dslc-module-front").length?(o.add("dslc-modules-area-empty"),o.remove("dslc-modules-area-not-empty")):(o.remove("dslc-modules-area-empty"),o.add("dslc-modules-area-not-empty"))}),{childList:!0}),this.sortable=At.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")&&(Zo(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 $o(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():ni(e()),LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-modules-area-hook",(function(e){if(e.preventDefault(),!t())return!1;if(!jQuery(this).hasClass("dslca-action-disabled")){var o=jQuery(this).closest(".dslc-modules-area");(function(e){window.dslcDebug&&console.log("dslc_copy_modules_area");var t=e.closest(".dslc-modules-section").find(".dslc-modules-section-inner"),o=e.clone().appendTo(t);new $o(o[0]),o.find(".dslca-modules-area-manage").trigger("mouseleave"),o.data("size",e.data("size")).find(".dslc-module-front").css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).each((function(){var e=jQuery(this);Jo(e[0]),jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited"),window.dslc_generate_code(),e.animate({opacity:1},300)})),Vo(),window.dslc_show_publish_button(),window.dslc_generate_code()})(o)}})),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")){var o=jQuery(this).closest(".dslc-modules-area");ei(o)}else{var i=jQuery(this);n({title:DSLCString.str_del_area_title,content:DSLCString.str_del_area_descr,confirm:function(){ei(i.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){window.dslcDebug&&console.log("dslc_modules_area_vertical_align_set");var o="dslc-valign-"+t;if(e.removeClass("dslc-valign-top dslc-valign-middle dslc-valign-bottom").addClass(o).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;Zo(jQuery(this).closest(".dslc-modules-section").find(".dslc-modules-section-inner"))}))}));var Zo=function(e){window.dslcDebug&&console.log("modulesAreaAdd");var 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 $o(t)})),Vo(),window.dslc_generate_code(),window.dslc_show_publish_button()};function ei(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(),Et(".dslca-modules")),setTimeout((function(){if(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(),Zo(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()}))}var ti=function(){jQuery("#dslc-main .dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument).each((function(){"initialized"!==jQuery(this).data("jsinit")&&new $o(this)}))};function oi(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var ii=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sortable,this.sortableContainer=jQuery(t).find(".dslc-modules-section-wrapper .dslc-modules-section-inner").eq(0)[0],this.initSortable(t),this.initDropable(t),this.reactToSortableOnOff(),jQuery(t).attr("data-jsinit","initialized")}var t,o,i;return t=e,(o=[{key:"initDropable",value:function(e){jQuery(e).droppable({drop:function(e,t){var o=jQuery(this).find(".dslc-modules-section-inner");"DSLC_M_A"==t.draggable.data("id")&&Zo(o)}})}},{key:"initSortable",value:function(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&&Zo(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){}})}},{key:"reactToSortableOnOff",value:function(){self=this.sortable,jQuery(document).on("LC.sortableOff",(function(){})),jQuery(document).on("LC.sortableOn",(function(){}))}}])&&oi(t.prototype,o),i&&oi(t,i),e}(),ni=function(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"));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));if(null!==i)return si(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),si(i.output),e&&e(),t}))};function si(e){var t=jQuery(e);return t.appendTo(LiveComposer.Builder.PreviewAreaDocument.find("#dslc-main")),Vo(),window.dslc_generate_code(),window.dslc_show_publish_button(),new ii(t),new $o(t.find(".dslc-modules-area").eq(0)[0]),t.find(".dslc-modules-area").addClass("dslc-modules-area-empty dslc-last-col"),t}function ai(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(),Et(".dslca-modules")),e.trigger("mouseleave").remove(),window.dslc_generate_code(),window.dslc_show_publish_button()}function di(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())})),Et(".dslca-modules-section-edit"),LiveComposer.Builder.Flags.panelOpened=!0,Pt()}function li(e){var t;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 ii(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);Jo(e[0]),ci(),ti(),window.dslc_generate_code(),Vo(),jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited"),e.animate({opacity:1},300),window.dslc_show_publish_button()})),function(e){window.dslcDebug&&console.log("dslc_section_new_id");var t=LiveComposer.Utils.get_unique_id();e.setAttribute("data-section-id",t),LiveComposer.Utils.update_section_property_raw(e,"section_instance_id",t)}(t[0])}function ri(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){u(),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(),ci(),ti(),Vo(),window.dslc_generate_code(),window.dslc_show_publish_button()}))}var ci=function(){jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each((function(){"initialized"!==jQuery(this).data("jsinit")&&new ii(this)}))},ui=function(){ci(),function(){jQuery;var e=function(){return!LiveComposer.Builder.Flags.panelOpened||(LiveComposer.Builder.UI.shakePanelConfirmButton(),!1)};jQuery(".dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each((function(){new ii(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")||n({title:DSLCString.str_del_row_title,content:DSLCString.str_del_row_descr,confirm:function(){ai(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")||n({title:DSLCString.str_import_row_title,content:DSLCString.str_import_row_descr+"<br><br><textarea></textarea>",confirm:function(){ri(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),n({title:DSLCString.str_export_row_title,content:DSLCString.str_export_row_descr+"<br><br><textarea>["+d(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")||li(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"),ni((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")||di(jQuery(this).closest(".dslc-modules-section")),jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("section-editing-in-progress")}))}(),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())})),Et(".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(),Et(".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)}))};function mi(){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}),c("",".dslca-modal-templates-import"),LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video(),Vo(),window.dslc_show_publish_button(),window.dslc_generate_code()}))}function pi(){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){c("",".dslca-modal-templates-save")}))}function hi(e){window.dslcDebug&&console.log("dslc_delete_template"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-delete-template",dslc:"active",dslc_template_id:e},(function(t){jQuery('.dslca-template[data-id="'+e+'"]').fadeOut(200,(function(){jQuery(this).remove()}))}))}var fi=function(){document.querySelectorAll(".dslca-template").forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault(),function(e){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:e},(function(e){jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).html(e.output),jQuery(".lc-template-loader").remove(),LiveComposer.Builder.PreviewAreaWindow.dslc_carousel(),ci(),ti(),Vo(),window.dslc_show_publish_button(),window.dslc_generate_code()}))}(e.target.closest("[data-id]").dataset.id)}))})),jQuery(".dslca-template-import-form").submit((function(e){e.preventDefault(),mi()})),jQuery(".dslca-template-save-form").submit((function(e){e.preventDefault(),pi()})),jQuery(document).on("click",".dslca-delete-template-hook",(function(e){e.stopPropagation(),hi(jQuery(this).data("id"))}))};function vi(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var gi=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sortable,this.initSortable(t),this.reactToSortableOnOff()}var t,o,i;return t=e,(o=[{key:"initSortable",value:function(e){this.sortable=At.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}})}},{key:"reactToSortableOnOff",value:function(){self=this.sortable}}])&&vi(t.prototype,o),i&&vi(t,i),e}();jQuery(document).ready((function(e){var t=function(e){var t=.75,o=100,i=jQuery(".dslca-section-scroller",e),n=jQuery(".dslca-section-scroller-inner",e)[0];function s(e){e=e<0?-o:o,e*=t;var s=i.find(".dslca-section-scroller-content").width(),a=i.width();if(s<=a)return!1;var d=s-a+10;e=(e=(e=parseInt(n.style.left||0)-e)>=0?0:e)<=-d?-d:e,n.style.left=e+"px"}i.on("wheel",(function(e){return s(e.originalEvent.deltaY||e.originalEvent.deltaX),!1})),jQuery(".dslca-section-scroller-prev",e).click((function(e){e.preventDefault(),s(-500)})),jQuery(".dslca-section-scroller-next",e).click((function(e){e.preventDefault(),s(500)})),jQuery(window).load((function(){jQuery(window).resize((function(){s(0)}))}))};t(jQuery(".dslca-section.dslca-modules")),t(jQuery(".dslca-section.dslca-templates-load"))}));var yi=function(){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()}))};function wi(e){return(wi="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)}jQuery(document).ready((function(e){yi(),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()}))}));var bi={addslashes:function(e){return e=(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"==wi(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],n=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,n.value=o,n.innerText=o},update_section_property_raw:function(e,t,o){var i=e.getElementsByClassName("dslca-section-code")[0],n=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,n.setAttribute("value",o),n.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)})),fi(),function(){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"),n=!0;"radio"!=e.type&&"checkbox"!=e.type||(n=jQuery(e).is(":checked"));var s=jQuery(".dslca-module-edit-options-tab-hook.dslca-active").data("id");e.value==t&&n?(i.not(".dependent")&&i.addClass("dependent"),i.hasClass("dep-hide")?(i.removeClass("dep-hide"),i.addClass("dep-show")):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.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"!=m(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 n=document.createElement("style");n.innerHTML=e.styleContent,n.id=i,n.className="temp-styles-for-module",window.LiveComposer.Builder.PreviewAreaDocument[0].body.appendChild(n)}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)},g(),y(),w()}(),ui();var t=LiveComposer.Builder.PreviewAreaDocument.find("#dslc-main").eq(0)[0];new gi(t),jQuery(document).trigger("editorFrameLoaded"),Vo(),l(),window.dslc_generate_code(),Mt(),yi(),Ko(),window.LiveComposer.Utils=bi,document.addEventListener("click",(function(e){if(e.target.matches('[data-event="modal-wysiwyg-cancel"]')){var t=new CustomEvent("modalWysiwygCancel",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches('[data-event="modal-wysiwyg-confirm"]')){var o=new CustomEvent("modalWysiwygConfirm",{detail:e.target});document.dispatchEvent(o)}}),!1),LiveComposer.Builder.PreviewAreaWindow.document.addEventListener("click",(function(e){if(e.preventDefault(),e.target.matches('[data-event="module-edit"]')){var t=new CustomEvent("moduleEdit",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches('[data-event="module-duplicate"]')){var o=new CustomEvent("moduleDuplicate",{detail:e.target});document.dispatchEvent(o)}if(e.target.matches('[data-event="module-delete"]')){var i=new CustomEvent("moduleDelete",{detail:e.target});document.dispatchEvent(i)}if(e.target.matches(".dslca-change-width-module-options [data-size]")){var n=new CustomEvent("moduleChangeWidth",{detail:e.target});document.dispatchEvent(n)}if(e.target.matches('[data-event="wysiwyg-edit"]')){var s=new CustomEvent("wysiwygEdit",{detail:e.target});document.dispatchEvent(s)}if(e.target.matches('[data-event="module-style-copy"]')){var a=new CustomEvent("copyModuleStyles",{detail:e.target});document.dispatchEvent(a)}if(e.target.matches('[data-event="module-style-paste"]')){var d=new CustomEvent("pasteModuleStyles",{detail:e.target});document.dispatchEvent(d)}}),!1)},window.onbeforeunload=function(){}}});
9
  //# sourceMappingURL=editor_backend.min.js.map
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)return e;if(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);const 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>",o="";o=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>",t+=o+"</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)}))}))}));function n(){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)return;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()}();var e=jQuery("#dslca-code").val(),t=jQuery("#dslca-content-for-search").val(),o=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:o,dslc_code:e,dslc_content_for_search:t},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-'+o+'" src="'+DSLCSiteData.siteurl+"/?p="+o+'" ></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){"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")}))}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)};const a=e=>{window.dslcDebug&&console.log("generateSectionCode");var t,o,i,s,n="",a=0,d="";return o=e,jQuery(".dslc-modules-area",o).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"),a=0,i=o.find(".dslca-section-code").val(),s=JSON.parse(i),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+'" ',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")),d=o.data("valign"),l="no",r="no";a+=i,jQuery(this).removeClass("dslc-first-col"),jQuery(this).removeClass("dslc-last-col"),12==a?(jQuery(this).addClass("dslc-last-col").next(".dslc-modules-area").addClass("dslc-first-col"),a=0,l="yes"):a>12&&(jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col"),a=i,r="yes"),a==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":"'+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&&("yes",jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col"));try{n=o[0].querySelector(".dslca-module-code").innerText}catch(e){console.info("No DSLC code found in module: "+o[0].getAttribute("id"))}if(""!==n){var s=JSON.parse(n);s.last=i,jQuery.each(s,(function(e,t){!1!==t&&""!==t||delete s[e],"content"===e&&(s[e]=t.replace(/\\'/g,"'")),"give_new_id"===e&&delete s[e]})),o[0].querySelector(".dslca-module-code").innerText=JSON.stringify(s),c.content.push(s)}n=""})),s.content.push(c)})),JSON.stringify(s)},d=()=>{jQuery(document).on("click",".dslca-save-composer-hook",(function(e){e.preventDefault(),jQuery("body").hasClass("dslca-module-saving-in-progress")||jQuery("body").hasClass("dslca-saving-in-progress")||n()})),jQuery(document).on("click",".dslca-save-draft-composer-hook",(function(e){e.preventDefault(),jQuery("body").hasClass("dslca-module-saving-in-progress")||jQuery("body").hasClass("dslca-saving-in-progress")||function(){window.dslcDebug&&console.log("dslc_save_draft_composer");var e=jQuery("#dslca-code").val(),t=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:t,dslc_code:e},(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")}))}()}))};const l=e=>{if(window.dslcDebug&&console.log("editableContentCodeGeneration"),void 0===e)return!1;const 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)};const r=(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=jQuery(this).data("modal");!function(e,t){"undefined"!=typeof dslcDebug&&dslcDebug&&console.log("dslc_show_modal"),jQuery(".dslca-modal:visible").length&&r("",jQuery(".dslca-modal:visible")),t=jQuery(t),jQuery(".dslca-container").height(),t.outerHide({clbk:function(){r("",jQuery(".dslca-modal:visible"))}});var o=jQuery(e).position(),i=t.outerWidth()/2-e.outerWidth()/2,s=o.left-i;t.css({left:s}),jQuery(".dslca-prompt-modal-custom").insertAfter(t),jQuery(".dslca-prompt-modal-custom").length>0&&jQuery(".dslca-prompt-modal-custom").fadeIn(),t.addClass("dslca-modal-open").show()}(jQuery(this),t)})),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");r(jQuery(this),t)}}))}));const c=()=>{"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")})),c(),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){var s=o.closest(".dslc-module-front");dslc_module_delete(s)}else if("delete_modules_area"===t){var n=o.closest(".dslc-modules-area");n.closest(".dslc-modules-section-inner");dslc_modules_area_delete(n)}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&&c(),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 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 u=window.DSLCFonts.regular,m=window.DSLCFonts.google,p=u.concat(m),h=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(),n=t.outerHeight(),a=t.outerWidth(),d=s.left-a/2+6,l="50%";d<0&&(l=a/2+d+"px",d=0),jQuery(".dslca-module-edit-field-ttip").show().css({top:s.top-n-20,left:d}),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(),n=o.left-s/2+6,a="50%";n<0&&(a=s/2+n+"px",n=0),jQuery(".dslca-module-edit-field-icon-ttip").show().css({top:o.top-i-20,left:n}),jQuery("head").append(jQuery("<style>.dslca-module-edit-field-icon-ttip:after, .dslca-module-edit-field-icon-ttip:before { left: "+a+" }</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&&k(t,"previous"),40==e.which&&k(t,"next"),13!=e.which&&38!=e.which&&40!=e.which&&(i=t.val().toLowerCase(),t.val(i),s=jQuery.grep(h,(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(),r("",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()})),function(){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(),n=e.find(".dslca-module-edit-option-box-shadow-spread").val(),a=e.find(".dslca-module-edit-option-box-shadow-color").val(),d=e.find(".dslca-module-edit-option-box-shadow-inset").is(":checked"),l=o+"px "+i+"px "+s+"px "+n+"px "+a+(d=d?" inset":"");t.val(l).trigger("change")}))}(),function(){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(){D(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,n=window.innerWidth;n<s+260&&(s=n-260),o.css("left",s+"px"),jQuery(t).on("scroll",(function(t){var s=(i=e.offset()).left+15,n=window.innerWidth;n<s+260&&(s=n-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")||L(this)})),jQuery(".dslca-container").on("mouseenter",".dslca-modules-section-edit-option-slider",(function(){L(this)})),jQuery(".dslca-module-edit-form").submit((function(e){e.preventDefault(),Go()})),jQuery(document).on("click",".dslca-module-edit-options-tab-hook",(function(e){e.preventDefault(),j(jQuery(this))})),jQuery(document).on("click",".dslca-clear-responsive-options",(function(e){e.preventDefault(),b()})),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,w(o),"responsive"==t&&(jQuery(".dslca-container-loader").show(),window.LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(),Go((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(){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"),x()})),jQuery(document).on("click",".dslca-module-edit-cancel",(function(e){e.preventDefault(),C((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"),x()}))}));const f=()=>{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 n=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")):i.addClass("dep-show"),n==i.data("tab")&&i.show()):(i.not(".dependent")&&i.addClass("dependent"),i.hasClass("dep-show")?(i.removeClass("dep-show"),i.addClass("dep-hide")):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)},v(),g(),y()},v=()=>{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"),n=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),a=n.data("module");jQuery(".dslca-module-options-front textarea",n);if(n.addClass("dslca-module-change-made"),(s.hasClass("dslca-module-edit-option-select")||s.hasClass("dslca-module-edit-option-checkbox"))&&Q(),"active"==jQuery(this).closest(".dslca-module-edit-option").data("refresh-on-change")){if(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()+" ")}));else if(o.hasClass("dslca-module-edit-option-radio"))e=jQuery(".dslca-module-edit-field:checked",o).val();else{e=o.val();if("orientation"==i&&"horizontal"==e)jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field").val("40").trigger("change");else if("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+'"]',n).val(e),jQuery(".dslca-container-loader").show(),Go((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")?jQuery(".dslca-container-loader").hide():(window.dslc_module_options_show(a),jQuery(".dslca-container-loader").hide()),jQuery("body").removeClass("dslca-new-preset-added"),LiveComposer.Utils.publish("LC.moduleChange",{moduleId:a,optionID:i,optionVal:o.val()})}))}else{if(o.hasClass("dslca-module-edit-field-font")){var d=o.val();d+=":400,100,200,300,500,600,700,800,900";var l=o.data("affect-on-change-el"),r=o.data("affect-on-change-rule"),c=p=o.val(),u=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);o.val().length&&-1!==m.indexOf(o.val())?document.getElementById("page-builder-frame").contentWindow.WebFont.load({google:{families:[d]},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="#"+u[0].id+" "+i.join(", #"+u[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="#"+u[0].id+" "+e.join(", #"+u[0].id+" ")+" {"+r+": "+p+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:o,rule:r,elems:l,styleContent:t})}),100)}else if(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"),c=p=o.val();o.hasClass("dslca-module-edit-field-checkbox")&&(p=e,c=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 f="";f=-1!==i.indexOf("css_")?c:o.val(),jQuery('.dslca-module-option-front[data-id="'+i+'"]',n).val(f),LiveComposer.Utils.publish("LC.moduleChange",{moduleId:n[0].id,optionID:i,optionVal:c||o.val()})}}))},g=()=>{jQuery(document).on("change",".dslca-modules-section-edit-field",(function(){var e,t,o,i,s,n,a,d;if(t=(e=jQuery(this)).data("id"),i=e.val(),u=i,s=i+e.data("ext"),n=e.data("css-rule"),d=o=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument),a=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"==n&&(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 l=jQuery('.dslca-modules-section-settings input[data-id="border_style"]').val();a=jQuery('.dslca-modules-section-settings input[data-id="border"]',o),u="",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")?u+="top ":"border-right"==jQuery(this).data("id")?u+="right ":"border-bottom"==jQuery(this).data("id")?u+="bottom ":"border-left"==jQuery(this).data("id")&&(u+="left "))})),e.is(":checked")?"border-top"==e.data("id")?o.css({"border-top-style":l}):"border-right"==e.data("id")?o.css({"border-right-style":l}):"border-bottom"==e.data("id")?o.css({"border-bottom-style":l}):"border-left"==e.data("id")&&o.css({"border-left-style":l}):"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 r=jQuery(this).closest(".dslca-modules-section-edit-option-checkbox-wrapper").find(".dslca-modules-section-edit-field-checkbox"),c="";r.each((function(){jQuery(this).prop("checked")&&(c+=jQuery(this).data("val")+" ")}));var u=c;"show_on"==e.data("id")&&(-1!==c.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!==c.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!==c.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===u.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===u.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===u.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===u.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 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){const 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"==u){if(jQuery("#dslca-post-data-thumb").length){var p="url('"+jQuery("#dslca-post-data-thumb").val()+"')";d.css(n,p)}}else"disabled"==u&&d.css(n,"none");else{var h;e.data("css-element")&&(d=jQuery(e.data("css-element"),o)),n=n.replace(/ /g,"").split(","),h=null!=e.data("ext")?s:i;for(var f=0;f<n.length;f++)d.css(n[f],h)}if(a.val(u),!LiveComposer.Builder.Flags.generate_code_after_row_changed)return!1}))},y=()=>{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 n=t.parent().attr("data-id");""!=s.alt&&"image"==n&&jQuery('.dslca-module-edit-option-image_alt input[data-id="image_alt"]').val(s.alt),""!=s.title&&"image"==n&&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()}))};function w(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(),j()}const b=()=>{const e=document.querySelector(".dslca-module-edit-options-tab-hook.dslca-active").dataset.id;if("tablet_responsive"===e||"phone_responsive"===e){document.querySelectorAll('.dslca-module-edit-option[data-tab="'+e+'"]').forEach(e=>{const 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")})}},j=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(),Q(),jQuery(".dslca-module-edit-options-tab-hook:visible").length<2?jQuery(".dslca-module-edit-options-tabs").hide():jQuery(".dslca-module-edit-options-tabs").show(),x(),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(),Go((function(){jQuery(".dslca-container-loader").hide()})))),jQuery("body").hasClass("rtl")){var i,s=0,n=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){n+=parseInt(jQuery(this).outerWidth(),10)})),i=parseInt(s)+parseInt(n)+10,jQuery(".dslca-module-edit-options-wrapper").css({width:i+"px"})}};function Q(){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,n=!0,a=!0,d=!0,l=!0,r=!0,c=!0,u=!0,m=!0,p=!0,h=!0,f=!0,v=!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")||(n=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="title"]').is(":checked")&&(a=!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")||(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")||(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")&&(v=!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(),n?jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').hide(),a?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(),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(),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(),v?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 _(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"),Go((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()}))),Pt(".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 C(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),Go((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()})),Pt(".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 k(e,t){var o=jQuery(e).closest(".dslca-module-edit-option-icon"),i=jQuery(".dslca-module-edit-field-icon",o),s=h.indexOf(i.val());if("previous"==t)var n=s-1;else n=s+1;jQuery(".dslca-module-edit-field-icon-suggest",o).text(""),n<0&&(n=h.length-1),i.val(h[n]).trigger("change")}function D(e){var t,o,i,s,n,a;window.dslcDebug&&console.log("dslc_module_options_color");var d,l=[],r="dslcColors-"+document.domain;void 0!==localStorage[r]&&(d=JSON.parse(localStorage[r]),l=d),1>l.length&&l.push("#78b"),2>l.length&&l.push("#ab0"),3>l.length&&l.push("#de3"),l.push("#fff"),l.push("#000"),l.push("rgba(0,0,0,0)"),jQuery(e).each((function(){var e=jQuery(this).closest(".dslca-color-option"),d=jQuery(this);jQuery(this).val(),d.wpColorPicker({mode:"hsl",palettes:l,change:function(e,l){t=d;var r=d.wpColorPicker("color");s=null==r?"":r,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),n=jQuery(".dslca-module-being-edited",window.LiveComposer.Builder.PreviewAreaDocument),a=t.data("id"),jQuery('.dslca-module-option-front[data-id="'+a+'"]',n).val(s),n.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");d.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[r]){var e=[s];localStorage[r]=JSON.stringify(e)}else{-1==(e=JSON.parse(localStorage[r])).indexOf(s)&&(e.unshift(s),3<e.length&&e.pop()),localStorage[r]=JSON.stringify(e)}d.wpColorPicker("close")})),window.LiveComposer.Builder.Helpers.colorpickers.push(jQuery(this))}))}function L(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=!0;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");if(e.hasClass("dslca-modules-section-edit-option"))o=e.find(".dslca-modules-section-edit-field");else o=e.find(".dslca-module-edit-field");var i=e.find(".dslca-module-edit-field-slider"),s=parseFloat(o.val()),n=parseFloat(o.data("max")),a=parseFloat(o.data("min")),d=parseFloat(o.data("increment")),l=!1;if(void 0!==o.data("onlypositive")&&1===o.data("onlypositive")&&(l=!0),s>=n&&(n=2*s),!l&&s<=a&&(a=2*s),i.slider({min:a,max:n,step:d,value:o.val(),slide:function(e,t){o.val(t.value+""),o.trigger("change")},change:function(t,o){(o.value>=n||o.value<=a)&&(i.slider("destroy"),L(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 x(){jQuery("html").removeClass("dslc-responsive-preview"),jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet")}
2
  /**!
3
+ * Sortable 1.10.2
4
  * @author RubaXa <trash@rubaxa.org>
5
  * @author owenm <owen23355@gmail.com>
6
  * @license MIT
7
  */
8
+ function B(e){return(B="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 S(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function A(){return(A=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 P(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){S(e,t,o[t])}))}return e}function E(e,t){if(null==e)return{};var o,i,s=function(e,t){if(null==e)return{};var o,i,s={},n=Object.keys(e);for(i=0;i<n.length;i++)o=n[i],t.indexOf(o)>=0||(s[o]=e[o]);return s}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)o=n[i],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(s[o]=e[o])}return s}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=p.indexOf(o.val())+1;jQuery(".dslca-module-edit-field-font-suggest",t).text(""),o.val(p[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=p.indexOf(o.val())-1;jQuery(".dslca-module-edit-field-font-suggest",t).text(""),i<0&&(i=p.length-1),o.val(p[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){console.log("1 e.which:"),console.log(e.which);var t,o,i,s,n=!1;t=jQuery(this),o=t.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();if(13!=e.which&&38!=e.which&&40!=e.which){i=t.val();var a=new RegExp("^"+i,"i"),d=p.length,l=0;do{if(a.test(p[l])&&!n)n=p[l];l++}while(l<d);n?i!==n&&(s=n,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){if(console.log("2 e.which:"),console.log(e.which),13==e.which||9==e.which){var t,o;t=jQuery(this),o=t.closest(".dslca-module-edit-option"),jQuery(".dslca-module-edit-field-font-suggest",o).text().length&&(jQuery(this).val(jQuery(".dslca-module-edit-field-font-suggest",o).text()).trigger("change"),jQuery(".dslca-module-edit-field-font-suggest",o).text(""))}}))};function O(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var T=O(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),I=O(/Edge/i),M=O(/firefox/i),N=O(/safari/i)&&!O(/chrome/i)&&!O(/android/i),F=O(/iP(ad|od|hone)/i),W=O(/chrome/i)&&O(/android/i),U={capture:!1,passive:!1};function H(e,t,o){e.addEventListener(t,o,!T&&U)}function z(e,t,o){e.removeEventListener(t,o,!T&&U)}function R(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}return!1}}function q(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function X(e,t,o,i){if(e){o=o||document;do{if(null!=t&&(">"===t[0]?e.parentNode===o&&R(e,t):R(e,t))||i&&e===o)return e;if(e===o)break}while(e=q(e))}return null}var Y,J=/\s+/g;function G(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 K(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 V(e,t){var o="";if("string"==typeof e)o=e;else do{var i=K(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 $(e,t,o){if(e){var i=e.getElementsByTagName(t),s=0,n=i.length;if(o)for(;s<n;s++)o(i[s],s);return i}return[]}function Z(){var e=document.scrollingElement;return e||document.documentElement}function ee(e,t,o,i,s){if(e.getBoundingClientRect||e===window){var n,a,d,l,r,c,u;if(e!==window&&e!==Z()?(a=(n=e.getBoundingClientRect()).top,d=n.left,l=n.bottom,r=n.right,c=n.height,u=n.width):(a=0,d=0,l=window.innerHeight,r=window.innerWidth,c=window.innerHeight,u=window.innerWidth),(t||o)&&e!==window&&(s=s||e.parentNode,!T))do{if(s&&s.getBoundingClientRect&&("none"!==K(s,"transform")||o&&"static"!==K(s,"position"))){var m=s.getBoundingClientRect();a-=m.top+parseInt(K(s,"border-top-width")),d-=m.left+parseInt(K(s,"border-left-width")),l=a+n.height,r=d+n.width;break}}while(s=s.parentNode);if(i&&e!==window){var p=V(s||e),h=p&&p.a,f=p&&p.d;p&&(l=(a/=f)+(c/=f),r=(d/=h)+(u/=h))}return{top:a,left:d,bottom:l,right:r,width:u,height:c}}}function te(e,t,o){for(var i=ae(e,!0),s=ee(e)[t];i;){var n=ee(i)[o];if(!("top"===o||"left"===o?s>=n:s<=n))return i;if(i===Z())break;i=ae(i,!1)}return!1}function oe(e,t,o){for(var i=0,s=0,n=e.children;s<n.length;){if("none"!==n[s].style.display&&n[s]!==rt.ghost&&n[s]!==rt.dragged&&X(n[s],o.draggable,e,!1)){if(i===t)return n[s];i++}s++}return null}function ie(e,t){for(var o=e.lastElementChild;o&&(o===rt.ghost||"none"===K(o,"display")||t&&!R(o,t));)o=o.previousElementSibling;return o||null}function se(e,t){var o=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===rt.clone||t&&!R(e,t)||o++;return o}function ne(e){var t=0,o=0,i=Z();if(e)do{var s=V(e),n=s.a,a=s.d;t+=e.scrollLeft*n,o+=e.scrollTop*a}while(e!==i&&(e=e.parentNode));return[t,o]}function ae(e,t){if(!e||!e.getBoundingClientRect)return Z();var o=e,i=!1;do{if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var s=K(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 Z();if(i||t)return o;i=!0}}}while(o=o.parentNode);return Z()}function de(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 le(e,t){return function(){if(!Y){var o=arguments,i=this;1===o.length?e.call(i,o[0]):e.apply(i,o),Y=setTimeout((function(){Y=void 0}),t)}}}function re(e,t,o){e.scrollLeft+=t,e.scrollTop+=o}function ce(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 ue="Sortable"+(new Date).getTime();function me(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==K(e,"display")&&e!==rt.ghost){t.push({target:e,rect:ee(e)});var o=P({},t[t.length-1].rect);if(e.thisAnimationDuration){var i=V(e,!0);i&&(o.top-=i.f,o.left-=i.e)}e.fromRect=o}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.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}(t,{target:e}),1)},animateAll:function(o){var i=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof o&&o());var s=!1,n=0;t.forEach((function(e){var t=0,o=e.target,a=o.fromRect,d=ee(o),l=o.prevFromRect,r=o.prevToRect,c=e.rect,u=V(o,!0);u&&(d.top-=u.f,d.left-=u.e),o.toRect=d,o.thisAnimationDuration&&de(l,d)&&!de(a,d)&&(c.top-d.top)/(c.left-d.left)==(a.top-d.top)/(a.left-d.left)&&(t=function(e,t,o,i){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-o.top,2)+Math.pow(t.left-o.left,2))*i.animation}(c,l,r,i.options)),de(d,a)||(o.prevFromRect=a,o.prevToRect=d,t||(t=i.options.animation),i.animate(o,c,d,t)),t&&(s=!0,n=Math.max(n,t),clearTimeout(o.animationResetTimer),o.animationResetTimer=setTimeout((function(){o.animationTime=0,o.prevFromRect=null,o.fromRect=null,o.prevToRect=null,o.thisAnimationDuration=null}),t),o.thisAnimationDuration=t)})),clearTimeout(e),s?e=setTimeout((function(){"function"==typeof o&&o()}),n):"function"==typeof o&&o(),t=[]},animate:function(e,t,o,i){if(i){K(e,"transition",""),K(e,"transform","");var s=V(this.el),n=s&&s.a,a=s&&s.d,d=(t.left-o.left)/(n||1),l=(t.top-o.top)/(a||1);e.animatingX=!!d,e.animatingY=!!l,K(e,"transform","translate3d("+d+"px,"+l+"px,0)"),function(e){e.offsetWidth}(e),K(e,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),K(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){K(e,"transition",""),K(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),i)}}}}var pe=[],he={initializeByDefault:!0},fe={mount:function(e){for(var t in he)!he.hasOwnProperty(t)||t in e||(e[t]=he[t]);pe.push(e)},pluginEvent:function(e,t,o){var i=this;this.eventCanceled=!1,o.cancel=function(){i.eventCanceled=!0};var s=e+"Global";pe.forEach((function(i){t[i.pluginName]&&(t[i.pluginName][s]&&t[i.pluginName][s](P({sortable:t},o)),t.options[i.pluginName]&&t[i.pluginName][e]&&t[i.pluginName][e](P({sortable:t},o)))}))},initializePlugins:function(e,t,o,i){for(var s in pe.forEach((function(i){var s=i.pluginName;if(e.options[s]||i.initializeByDefault){var n=new i(e,t,e.options);n.sortable=e,n.options=e.options,e[s]=n,A(o,n.defaults)}})),e.options)if(e.options.hasOwnProperty(s)){var n=this.modifyOption(e,s,e.options[s]);void 0!==n&&(e.options[s]=n)}},getEventProperties:function(e,t){var o={};return pe.forEach((function(i){"function"==typeof i.eventProperties&&A(o,i.eventProperties.call(t[i.pluginName],e))})),o},modifyOption:function(e,t,o){var i;return pe.forEach((function(s){e[s.pluginName]&&s.optionListeners&&"function"==typeof s.optionListeners[t]&&(i=s.optionListeners[t].call(e[s.pluginName],o))})),i}};function ve(e){var t=e.sortable,o=e.rootEl,i=e.name,s=e.targetEl,n=e.cloneEl,a=e.toEl,d=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[ue]){var f,v=t.options,g="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||T||I?(f=document.createEvent("Event")).initEvent(i,!0,!0):f=new CustomEvent(i,{bubbles:!0,cancelable:!0}),f.to=a||o,f.from=d||o,f.item=s||o,f.clone=n,f.oldIndex=l,f.newIndex=r,f.oldDraggableIndex=c,f.newDraggableIndex=u,f.originalEvent=m,f.pullMode=p?p.lastPutMode:void 0;var y=P({},h,fe.getEventProperties(i,t));for(var w in y)f[w]=y[w];o&&o.dispatchEvent(f),v[g]&&v[g].call(t,f)}}var ge=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.evt,s=E(o,["evt"]);fe.pluginEvent.bind(rt)(e,t,P({dragEl:we,parentEl:be,ghostEl:je,rootEl:Qe,nextEl:_e,lastDownEl:Ce,cloneEl:ke,cloneHidden:De,dragStarted:Fe,putSortable:Pe,activeSortable:rt.active,originalEvent:i,oldIndex:Le,oldDraggableIndex:Be,newIndex:xe,newDraggableIndex:Se,hideGhostForTarget:nt,unhideGhostForTarget:at,cloneNowHidden:function(){De=!0},cloneNowShown:function(){De=!1},dispatchSortableEvent:function(e){ye({sortable:t,name:e,originalEvent:i})}},s))};function ye(e){ve(P({putSortable:Pe,cloneEl:ke,targetEl:we,rootEl:Qe,oldIndex:Le,oldDraggableIndex:Be,newIndex:xe,newDraggableIndex:Se},e))}var we,be,je,Qe,_e,Ce,ke,De,Le,xe,Be,Se,Ae,Pe,Ee,Oe,Te,Ie,Me,Ne,Fe,We,Ue,He,ze,Re=!1,qe=!1,Xe=[],Ye=!1,Je=!1,Ge=[],Ke=!1,Ve=[],$e="undefined"!=typeof document,Ze=F,et=I||T?"cssFloat":"float",tt=$e&&!W&&!F&&"draggable"in document.createElement("div"),ot=function(){if($e){if(T)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),it=function(e,t){var o=K(e),i=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),s=oe(e,0,t),n=oe(e,1,t),a=s&&K(s),d=n&&K(n),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+ee(s).width,r=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+ee(n).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&&a.float&&"none"!==a.float){var c="left"===a.float?"left":"right";return!n||"both"!==d.clear&&d.clear!==c?"horizontal":"vertical"}return s&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=i&&"none"===o[et]||n&&"none"===o[et]&&l+r>i)?"vertical":"horizontal"},st=function(e){function t(e,o){return function(i,s,n,a){var d=i.options.group.name&&s.options.group.name&&i.options.group.name===s.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,s,n,a),o)(i,s,n,a);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"==B(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},nt=function(){!ot&&je&&K(je,"display","none")},at=function(){!ot&&je&&K(je,"display","")};$e&&document.addEventListener("click",(function(e){if(qe)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),qe=!1,!1}),!0);var dt=function(e){if(we){e=e.touches?e.touches[0]:e;var t=(s=e.clientX,n=e.clientY,Xe.some((function(e){if(!ie(e)){var t=ee(e),o=e[ue].options.emptyInsertThreshold,i=s>=t.left-o&&s<=t.right+o,d=n>=t.top-o&&n<=t.bottom+o;return o&&i&&d?a=e:void 0}})),a);if(t){var o={};for(var i in e)e.hasOwnProperty(i)&&(o[i]=e[i]);o.target=o.rootEl=t,o.preventDefault=void 0,o.stopPropagation=void 0,t[ue]._onDragOver(o)}}var s,n,a},lt=function(e){we&&we.parentNode[ue]._isOutsideThisEl(e.target)};function rt(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=A({},t),e[ue]=this;var o={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 it(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!==rt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var i in fe.initializePlugins(this,e,o),o)!(i in t)&&(t[i]=o[i]);for(var s in st(t),this)"_"===s.charAt(0)&&"function"==typeof this[s]&&(this[s]=this[s].bind(this));this.nativeDraggable=!t.forceFallback&&tt,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?H(e,"pointerdown",this._onTapStart):(H(e,"mousedown",this._onTapStart),H(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(H(e,"dragover",this),H(e,"dragenter",this)),Xe.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),A(this,me())}function ct(e,t,o,i,s,n,a,d){var l,r,c=e[ue],u=c.options.onMove;return!window.CustomEvent||T||I?(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=n||ee(t),l.willInsertAfter=d,l.originalEvent=a,e.dispatchEvent(l),u&&(r=u.call(c,l,a)),r}function ut(e){e.draggable=!1}function mt(){Ke=!1}function pt(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 ht(e){return setTimeout(e,0)}function ft(e){return clearTimeout(e)}rt.prototype={constructor:rt,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(We=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,we):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,o=this.el,i=this.options,s=i.preventOnFilter,n=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,d=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||d,r=i.filter;if(function(e){Ve.length=0;var t=e.getElementsByTagName("input"),o=t.length;for(;o--;){var i=t[o];i.checked&&Ve.push(i)}}(o),!we&&!(/mousedown|pointerdown/.test(n)&&0!==e.button||i.disabled||l.isContentEditable||(d=X(d,i.draggable,o,!1))&&d.animated||Ce===d)){if(Le=se(d),Be=se(d,i.draggable),"function"==typeof r){if(r.call(this,e,d,this))return ye({sortable:t,rootEl:l,name:"filter",targetEl:d,toEl:o,fromEl:o}),ge("filter",t,{evt:e}),void(s&&e.cancelable&&e.preventDefault())}else if(r&&(r=r.split(",").some((function(i){if(i=X(l,i.trim(),o,!1))return ye({sortable:t,rootEl:i,name:"filter",targetEl:d,fromEl:o,toEl:o}),ge("filter",t,{evt:e}),!0}))))return void(s&&e.cancelable&&e.preventDefault());i.handle&&!X(l,i.handle,o,!1)||this._prepareDragStart(e,a,d)}}},_prepareDragStart:function(e,t,o){var i,s=this,n=s.el,a=s.options,d=n.ownerDocument;if(o&&!we&&o.parentNode===n){var l=ee(o);if(Qe=n,be=(we=o).parentNode,_e=we.nextSibling,Ce=o,Ae=a.group,rt.dragged=we,Ee={target:we,clientX:(t||e).clientX,clientY:(t||e).clientY},Me=Ee.clientX-l.left,Ne=Ee.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,we.style["will-change"]="all",i=function(){ge("delayEnded",s,{evt:e}),rt.eventCanceled?s._onDrop():(s._disableDelayedDragEvents(),!M&&s.nativeDraggable&&(we.draggable=!0),s._triggerDragStart(e,t),ye({sortable:s,name:"choose",originalEvent:e}),G(we,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){$(we,e.trim(),ut)})),H(d,"dragover",dt),H(d,"mousemove",dt),H(d,"touchmove",dt),H(d,"mouseup",s._onDrop),H(d,"touchend",s._onDrop),H(d,"touchcancel",s._onDrop),M&&this.nativeDraggable&&(this.options.touchStartThreshold=4,we.draggable=!0),ge("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(I||T))i();else{if(rt.eventCanceled)return void this._onDrop();H(d,"mouseup",s._disableDelayedDrag),H(d,"touchend",s._disableDelayedDrag),H(d,"touchcancel",s._disableDelayedDrag),H(d,"mousemove",s._delayedDragTouchMoveHandler),H(d,"touchmove",s._delayedDragTouchMoveHandler),a.supportPointer&&H(d,"pointermove",s._delayedDragTouchMoveHandler),s._dragStartTimer=setTimeout(i,a.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(){we&&ut(we),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;z(e,"mouseup",this._disableDelayedDrag),z(e,"touchend",this._disableDelayedDrag),z(e,"touchcancel",this._disableDelayedDrag),z(e,"mousemove",this._delayedDragTouchMoveHandler),z(e,"touchmove",this._delayedDragTouchMoveHandler),z(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?H(document,"pointermove",this._onTouchMove):H(document,t?"touchmove":"mousemove",this._onTouchMove):(H(we,"dragend",this),H(Qe,"dragstart",this._onDragStart));try{document.selection?ht((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(Re=!1,Qe&&we){ge("dragStarted",this,{evt:t}),this.nativeDraggable&&H(document,"dragover",lt);var o=this.options;!e&&G(we,o.dragClass,!1),G(we,o.ghostClass,!0),rt.active=this,e&&this._appendGhost(),ye({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Oe){this._lastX=Oe.clientX,this._lastY=Oe.clientY,nt();for(var e=document.elementFromPoint(Oe.clientX,Oe.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Oe.clientX,Oe.clientY))!==t;)t=e;if(we.parentNode[ue]._isOutsideThisEl(e),t)do{if(t[ue]){if(t[ue]._onDragOver({clientX:Oe.clientX,clientY:Oe.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);at()}},_onTouchMove:function(e){if(Ee){var t=this.options,o=t.fallbackTolerance,i=t.fallbackOffset,s=e.touches?e.touches[0]:e,n=je&&V(je,!0),a=je&&n&&n.a,d=je&&n&&n.d,l=Ze&&ze&&ne(ze),r=(s.clientX-Ee.clientX+i.x)/(a||1)+(l?l[0]-Ge[0]:0)/(a||1),c=(s.clientY-Ee.clientY+i.y)/(d||1)+(l?l[1]-Ge[1]:0)/(d||1);if(!rt.active&&!Re){if(o&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))<o)return;this._onDragStart(e,!0)}if(je){n?(n.e+=r-(Te||0),n.f+=c-(Ie||0)):n={a:1,b:0,c:0,d:1,e:r,f:c};var u="matrix(".concat(n.a,",").concat(n.b,",").concat(n.c,",").concat(n.d,",").concat(n.e,",").concat(n.f,")");K(je,"webkitTransform",u),K(je,"mozTransform",u),K(je,"msTransform",u),K(je,"transform",u),Te=r,Ie=c,Oe=s}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!je){var e=this.options.fallbackOnBody?document.body:Qe,t=ee(we,!0,Ze,!0,e),o=this.options;if(Ze){for(ze=e;"static"===K(ze,"position")&&"none"===K(ze,"transform")&&ze!==document;)ze=ze.parentNode;ze!==document.body&&ze!==document.documentElement?(ze===document&&(ze=Z()),t.top+=ze.scrollTop,t.left+=ze.scrollLeft):ze=Z(),Ge=ne(ze)}G(je=we.cloneNode(!0),o.ghostClass,!1),G(je,o.fallbackClass,!0),G(je,o.dragClass,!0),K(je,"transition",""),K(je,"transform",""),K(je,"box-sizing","border-box"),K(je,"margin",0),K(je,"top",t.top),K(je,"left",t.left),K(je,"width",t.width),K(je,"height",t.height),K(je,"opacity","0.8"),K(je,"position",Ze?"absolute":"fixed"),K(je,"zIndex","100000"),K(je,"pointerEvents","none"),rt.ghost=je,e.appendChild(je),K(je,"transform-origin",Me/parseInt(je.style.width)*100+"% "+Ne/parseInt(je.style.height)*100+"%")}},_onDragStart:function(e,t){var o=this,i=e.dataTransfer,s=o.options;ge("dragStart",this,{evt:e}),rt.eventCanceled?this._onDrop():(ge("setupClone",this),rt.eventCanceled||((ke=ce(we)).draggable=!1,ke.style["will-change"]="",this._hideClone(),G(ke,this.options.chosenClass,!1),rt.clone=ke),o.cloneId=ht((function(){ge("clone",o),rt.eventCanceled||(o.options.removeCloneOnHide||Qe.insertBefore(ke,we),o._hideClone(),ye({sortable:o,name:"clone"}))})),!t&&G(we,s.dragClass,!0),t?(qe=!0,o._loopId=setInterval(o._emulateDragOver,50)):(z(document,"mouseup",o._onDrop),z(document,"touchend",o._onDrop),z(document,"touchcancel",o._onDrop),i&&(i.effectAllowed="move",s.setData&&s.setData.call(o,i,we)),H(document,"drop",o),K(we,"transform","translateZ(0)")),Re=!0,o._dragStartId=ht(o._dragStarted.bind(o,t,e)),H(document,"selectstart",o),Fe=!0,N&&K(document.body,"user-select","none"))},_onDragOver:function(e){var t,o,i,s,n=this.el,a=e.target,d=this.options,l=d.group,r=rt.active,c=Ae===l,u=d.sort,m=Pe||r,p=this,h=!1;if(!Ke){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=X(a,d.draggable,n,!0),x("dragOver"),rt.eventCanceled)return h;if(we.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return S(!1);if(qe=!1,r&&!d.disabled&&(c?u||(i=!Qe.contains(we)):Pe===this||(this.lastPutMode=Ae.checkPull(this,r,we,e))&&l.checkPut(this,r,we,e))){if(s="vertical"===this._getDirection(e,a),t=ee(we),x("dragOverValid"),rt.eventCanceled)return h;if(i)return be=Qe,B(),this._hideClone(),x("revert"),rt.eventCanceled||(_e?Qe.insertBefore(we,_e):Qe.appendChild(we)),S(!0);var f=ie(n,d.draggable);if(!f||function(e,t,o){var i=ee(ie(o.el,o.options.draggable));return t?e.clientX>i.right+10||e.clientX<=i.right&&e.clientY>i.bottom&&e.clientX>=i.left:e.clientX>i.right&&e.clientY>i.top||e.clientX<=i.right&&e.clientY>i.bottom+10}(e,s,this)&&!f.animated){if(f===we)return S(!1);if(f&&n===e.target&&(a=f),a&&(o=ee(a)),!1!==ct(Qe,n,we,t,a,o,e,!!a))return B(),n.appendChild(we),be=n,A(),S(!0)}else if(a.parentNode===n){o=ee(a);var v,g,y,w=we.parentNode!==n,b=!function(e,t,o){var i=o?e.left:e.top,s=o?e.right:e.bottom,n=o?e.width:e.height,a=o?t.left:t.top,d=o?t.right:t.bottom,l=o?t.width:t.height;return i===a||s===d||i+n/2===a+l/2}(we.animated&&we.toRect||t,a.animated&&a.toRect||o,s),j=s?"top":"left",Q=te(a,"top","top")||te(we,"top","top"),_=Q?Q.scrollTop:void 0;if(We!==a&&(g=o[j],Ye=!1,Je=!b&&d.invertSwap||w),0!==(v=function(e,t,o,i,s,n,a,d){var l=i?e.clientY:e.clientX,r=i?o.height:o.width,c=i?o.top:o.left,u=i?o.bottom:o.right,m=!1;if(!a)if(d&&He<r*s){if(!Ye&&(1===Ue?l>c+r*n/2:l<u-r*n/2)&&(Ye=!0),Ye)m=!0;else if(1===Ue?l<c+He:l>u-He)return-Ue}else if(l>c+r*(1-s)/2&&l<u-r*(1-s)/2)return function(e){return se(we)<se(e)?1:-1}(t);if((m=m||a)&&(l<c+r*n/2||l>u-r*n/2))return l>c+r/2?1:-1;return 0}(e,a,o,s,b?1:d.swapThreshold,null==d.invertedSwapThreshold?d.swapThreshold:d.invertedSwapThreshold,Je,We===a))){var C=se(we);do{C-=v,y=be.children[C]}while(y&&("none"===K(y,"display")||y===je))}if(0===v||y===a)return S(!1);We=a,Ue=v;var k=a.nextElementSibling,D=!1,L=ct(Qe,n,we,t,a,o,e,D=1===v);if(!1!==L)return 1!==L&&-1!==L||(D=1===L),Ke=!0,setTimeout(mt,30),B(),D&&!k?n.appendChild(we):a.parentNode.insertBefore(we,D?k:a),Q&&re(Q,0,_-Q.scrollTop),be=we.parentNode,void 0===g||Je||(He=Math.abs(g-ee(a)[j])),A(),S(!0)}if(n.contains(we))return S(!1)}return!1}function x(d,l){ge(d,p,P({evt:e,isOwner:c,axis:s?"vertical":"horizontal",revert:i,dragRect:t,targetRect:o,canSort:u,fromSortable:m,target:a,completed:S,onMove:function(o,i){return ct(Qe,n,we,t,o,ee(o),e,i)},changed:A},l))}function B(){x("dragOverAnimationCapture"),p.captureAnimationState(),p!==m&&m.captureAnimationState()}function S(t){return x("dragOverCompleted",{insertion:t}),t&&(c?r._hideClone():r._showClone(p),p!==m&&(G(we,Pe?Pe.options.ghostClass:r.options.ghostClass,!1),G(we,d.ghostClass,!0)),Pe!==p&&p!==rt.active?Pe=p:p===rt.active&&Pe&&(Pe=null),m===p&&(p._ignoreWhileAnimating=a),p.animateAll((function(){x("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==m&&(m.animateAll(),m._ignoreWhileAnimating=null)),(a===we&&!we.animated||a===n&&!a.animated)&&(We=null),d.dragoverBubble||e.rootEl||a===document||(we.parentNode[ue]._isOutsideThisEl(e.target),!t&&dt(e)),!d.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function A(){xe=se(we),Se=se(we,d.draggable),ye({sortable:p,name:"change",toEl:n,newIndex:xe,newDraggableIndex:Se,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){z(document,"mousemove",this._onTouchMove),z(document,"touchmove",this._onTouchMove),z(document,"pointermove",this._onTouchMove),z(document,"dragover",dt),z(document,"mousemove",dt),z(document,"touchmove",dt)},_offUpEvents:function(){var e=this.el.ownerDocument;z(e,"mouseup",this._onDrop),z(e,"touchend",this._onDrop),z(e,"pointerup",this._onDrop),z(e,"touchcancel",this._onDrop),z(document,"selectstart",this)},_onDrop:function(e){var t=this.el,o=this.options;xe=se(we),Se=se(we,o.draggable),ge("drop",this,{evt:e}),be=we&&we.parentNode,xe=se(we),Se=se(we,o.draggable),rt.eventCanceled?this._nulling():(Re=!1,Je=!1,Ye=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ft(this.cloneId),ft(this._dragStartId),this.nativeDraggable&&(z(document,"drop",this),z(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),N&&K(document.body,"user-select",""),K(we,"transform",""),e&&(Fe&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),je&&je.parentNode&&je.parentNode.removeChild(je),(Qe===be||Pe&&"clone"!==Pe.lastPutMode)&&ke&&ke.parentNode&&ke.parentNode.removeChild(ke),we&&(this.nativeDraggable&&z(we,"dragend",this),ut(we),we.style["will-change"]="",Fe&&!Re&&G(we,Pe?Pe.options.ghostClass:this.options.ghostClass,!1),G(we,this.options.chosenClass,!1),ye({sortable:this,name:"unchoose",toEl:be,newIndex:null,newDraggableIndex:null,originalEvent:e}),Qe!==be?(xe>=0&&(ye({rootEl:be,name:"add",toEl:be,fromEl:Qe,originalEvent:e}),ye({sortable:this,name:"remove",toEl:be,originalEvent:e}),ye({rootEl:be,name:"sort",toEl:be,fromEl:Qe,originalEvent:e}),ye({sortable:this,name:"sort",toEl:be,originalEvent:e})),Pe&&Pe.save()):xe!==Le&&xe>=0&&(ye({sortable:this,name:"update",toEl:be,originalEvent:e}),ye({sortable:this,name:"sort",toEl:be,originalEvent:e})),rt.active&&(null!=xe&&-1!==xe||(xe=Le,Se=Be),ye({sortable:this,name:"end",toEl:be,originalEvent:e}),this.save()))),this._nulling())},_nulling:function(){ge("nulling",this),Qe=we=be=je=_e=ke=Ce=De=Ee=Oe=Fe=xe=Se=Le=Be=We=Ue=Pe=Ae=rt.dragged=rt.ghost=rt.clone=rt.active=null,Ve.forEach((function(e){e.checked=!0})),Ve.length=Te=Ie=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":we&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],o=this.el.children,i=0,s=o.length,n=this.options;i<s;i++)X(e=o[i],n.draggable,this.el,!1)&&t.push(e.getAttribute(n.dataIdAttr)||pt(e));return t},sort:function(e){var t={},o=this.el;this.toArray().forEach((function(e,i){var s=o.children[i];X(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 X(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=fe.modifyOption(this,e,t);o[e]=void 0!==i?i:t,"group"===e&&st(o)},destroy:function(){ge("destroy",this);var e=this.el;e[ue]=null,z(e,"mousedown",this._onTapStart),z(e,"touchstart",this._onTapStart),z(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(z(e,"dragover",this),z(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Xe.splice(Xe.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!De){if(ge("hideClone",this),rt.eventCanceled)return;K(ke,"display","none"),this.options.removeCloneOnHide&&ke.parentNode&&ke.parentNode.removeChild(ke),De=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(De){if(ge("showClone",this),rt.eventCanceled)return;Qe.contains(we)&&!this.options.group.revertClone?Qe.insertBefore(ke,we):_e?Qe.insertBefore(ke,_e):Qe.appendChild(ke),this.options.group.revertClone&&this.animate(we,ke),K(ke,"display",""),De=!1}}else this._hideClone()}},$e&&H(document,"touchmove",(function(e){(rt.active||Re)&&e.cancelable&&e.preventDefault()})),rt.utils={on:H,off:z,css:K,find:$,is:function(e,t){return!!X(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:le,closest:X,toggleClass:G,clone:ce,index:se,nextTick:ht,cancelNextTick:ft,detectDirection:it,getChild:oe},rt.get=function(e){return e[ue]},rt.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&&(rt.utils=P({},rt.utils,e.utils)),fe.mount(e)}))},rt.create=function(e,t){return new rt(e,t)},rt.version="1.10.2";var vt,gt,yt,wt,bt,jt,Qt=[],_t=!1;function Ct(){Qt.forEach((function(e){clearInterval(e.pid)})),Qt=[]}function kt(){clearInterval(jt)}var Dt=le((function(e,t,o,i){if(t.scroll){var s,n=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,d=t.scrollSensitivity,l=t.scrollSpeed,r=Z(),c=!1;gt!==o&&(gt=o,Ct(),vt=t.scroll,s=t.scrollFn,!0===vt&&(vt=ae(o,!0)));var u=0,m=vt;do{var p=m,h=ee(p),f=h.top,v=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=K(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-n)<=d&&D+w<_)-(Math.abs(g-n)<=d&&!!D),B=Q&&(Math.abs(v-a)<=d&&L+b<C)-(Math.abs(f-a)<=d&&!!L);if(!Qt[u])for(var S=0;S<=u;S++)Qt[S]||(Qt[S]={});Qt[u].vx==x&&Qt[u].vy==B&&Qt[u].el===p||(Qt[u].el=p,Qt[u].vx=x,Qt[u].vy=B,clearInterval(Qt[u].pid),0==x&&0==B||(c=!0,Qt[u].pid=setInterval(function(){i&&0===this.layer&&rt.active._onTouchMove(bt);var t=Qt[this.layer].vy?Qt[this.layer].vy*l:0,o=Qt[this.layer].vx?Qt[this.layer].vx*l:0;"function"==typeof s&&"continue"!==s.call(rt.dragged.parentNode[ue],o,t,e,bt,Qt[this.layer].el)||re(Qt[this.layer].el,o,t)}.bind({layer:u}),24))),u++}while(t.bubbleScroll&&m!==r&&(m=ae(m,!1)));_t=c}}),30),Lt=function(e){var t=e.originalEvent,o=e.putSortable,i=e.dragEl,s=e.activeSortable,n=e.dispatchSortableEvent,a=e.hideGhostForTarget,d=e.unhideGhostForTarget;if(t){var l=o||s;a();var r=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(r.clientX,r.clientY);d(),l&&!l.el.contains(c)&&(n("spill"),this.onSpill({dragEl:i,putSortable:o}))}};function xt(){}function Bt(){}xt.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=oe(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:Lt},A(xt,{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:Lt},A(Bt,{pluginName:"removeOnSpill"});rt.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?H(document,"dragover",this._handleAutoScroll):this.options.supportPointer?H(document,"pointermove",this._handleFallbackAutoScroll):t.touches?H(document,"touchmove",this._handleFallbackAutoScroll):H(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?z(document,"dragover",this._handleAutoScroll):(z(document,"pointermove",this._handleFallbackAutoScroll),z(document,"touchmove",this._handleFallbackAutoScroll),z(document,"mousemove",this._handleFallbackAutoScroll)),kt(),Ct(),clearTimeout(Y),Y=void 0},nulling:function(){bt=gt=vt=_t=jt=yt=wt=null,Qt.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,n=document.elementFromPoint(i,s);if(bt=e,t||I||T||N){Dt(e,this.options,n,t);var a=ae(n,!0);!_t||jt&&i===yt&&s===wt||(jt&&kt(),jt=setInterval((function(){var n=ae(document.elementFromPoint(i,s),!0);n!==a&&(a=n,Ct()),Dt(e,o.options,n,t)}),10),yt=i,wt=s)}else{if(!this.options.bubbleScroll||ae(n,!0)===Z())return void Ct();Dt(e,this.options,ae(n,!1),!1)}}},A(e,{pluginName:"scroll",initializeByDefault:!0})}),rt.mount(Bt,xt);var St=rt;window.onerror=function(e,t,o,i){Mt(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> &nbsp; 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){Mt(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;if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length?(e=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),"#5890e5"):jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length&&(e=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument),"#eabba9"),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(),function(){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(),function(){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(),Pt(".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");Pt(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){e.stopPropagation(),jQuery(".dslca-section-title-filter",this).length&&(!function(){window.dslcDebug&&console.log("dslc_generate_filters");var e,t=[],o='<a html="#" data-origin="">Show All</a>';jQuery(".dslca-section:visible .dslca-origin").each((function(){e=jQuery(this),-1==jQuery.inArray(e.data("origin"),t)&&(t.push(e.data("origin")),o+='<a href="#" data-origin="'+e.data("origin")+'">'+e.data("origin")+"</a>")})),jQuery(".dslca-section:visible .dslca-section-title-filter-options").html(o).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=jQuery(this).data("origin"),o=jQuery(this).closest(".dslca-section");o.hasClass("dslca-templates-load"),jQuery(".dslca-section-title-filter-curr",o).text(jQuery(this).text()),jQuery(".dslca-section-scroller-inner").css({left:0}),function(e,t){window.dslcDebug&&console.log("dslc_filter_origin");jQuery(".dslca-origin",t).attr("data-display-module","false"),jQuery('.dslca-origin[data-origin="'+e+'"]',t).attr("data-display-module","true"),""==e&&(jQuery(".dslca-origin",t).attr("data-display-module","true"),jQuery(".dslca-origin.dslca-exclude",t).attr("data-display-module","false"))}(t,o),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")};const At=()=>{window.dslcDebug&&console.log("hidePublishButton"),jQuery(".dslca-save-composer").hide(),jQuery(".dslca-save-draft-composer").hide()},Pt=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(""),j(),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 Et(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 n=o.data("affect-on-change-el");if(void 0!==n){var a=n.split(",");n="";for(var d=0;d<a.length;d++)d>0&&(n+=", "),n+=s+"#"+i+" "+a[d];var l,r=o.data("affect-on-change-rule").replace(/ /g,"").split(","),c=o.data("ext");if(t.toggleClass("dslca-option-off"),t.hasClass("dslca-option-off")){l=Tt(e),o.data("val-bckp",l);for(d=0;d<r.length;d++)jQuery(n,LiveComposer.Builder.PreviewAreaDocument).css(r[d],""),Ot(n,r[d],i);o.val("").trigger("change")}else{o.val(o.data("val-bckp")).trigger("change"),l=function(e,t){if(""===e||null===e)return e;-1==e.indexOf(t)&&(e+=t);return e}(l=Tt(e),c||"");for(d=0;d<r.length;d++){var u=n+"{"+r[d]+": "+l+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:t,rule:r[d],elems:n.replace(new RegExp("#"+i,"gi"),"").trim(),styleContent:u})}}}}}function Ot(e,t,o){var i,s="css-for-"+o,n=document.getElementById("page-builder-frame").contentWindow.document.getElementById(s);if(e=e.replace(/\s\s+/g," "),n){(n=n.sheet).rules?i="rules":n.cssRules&&(i="cssRules");for(var a=0;a<n[i].length;a++)if(n[i][a].selectorText==e&&n[i][a].style[t]){n[i][a].style[t]="";break}}}function Tt(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(),Et(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")&&Et(jQuery(e.target).closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("id"))}))}));const It=()=>{jQuery([document,LiveComposer.Builder.PreviewAreaWindow.document]).unbind("keydown").bind("keydown",(function(e){var t;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()}}))),function(e){if(83==e.which&&(e.metaKey||e.ctrlKey)&&"block"==jQuery(".dslca-save-composer-hook").css("display"))dslc_save_composer(),e.preventDefault()}(e),function(e){(e.metaKey||e.ctrlKey)&&LiveComposer.Builder.PreviewAreaWindow.document.querySelector("body").classList.add("key-press-cmd")}(e)})),jQuery([document,LiveComposer.Builder.PreviewAreaWindow.document]).unbind("keyup").bind("keyup",(function(e){"Meta"===e.key&&LiveComposer.Builder.PreviewAreaWindow.document.querySelector("body").classList.remove("key-press-cmd")}))};function Mt(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 n="";n+='<br /><strong style="color:#E55F5F;">'+s+"</strong><br />",n+=e+'<br /> File "'+t+'", line '+o+", char "+i+"<br />","undefined"!=typeof Storage&&localStorage.setItem("js_errors_report",n)}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")),n=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!==n&&(t+=' <span class="dslc-hf-block-overlay-text">'+n+"</span>"),t+="</div>";var a=document.createElement("div");a.innerHTML=t,o.append(a)}))}));var Nt={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},Ft={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},Wt=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective"],Ut={CSS:{},springs:{}};function Ht(e,t,o){return Math.min(Math.max(e,t),o)}function zt(e,t){return e.indexOf(t)>-1}function Rt(e,t){return e.apply(null,t)}var qt={arr:function(e){return Array.isArray(e)},obj:function(e){return zt(Object.prototype.toString.call(e),"Object")},pth:function(e){return qt.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||qt.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 qt.hex(e)||qt.rgb(e)||qt.hsl(e)},key:function(e){return!Nt.hasOwnProperty(e)&&!Ft.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function Xt(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map((function(e){return parseFloat(e)})):[]}function Yt(e,t){var o=Xt(e),i=Ht(qt.und(o[0])?1:o[0],.1,100),s=Ht(qt.und(o[1])?100:o[1],.1,100),n=Ht(qt.und(o[2])?10:o[2],.1,100),a=Ht(qt.und(o[3])?0:o[3],.1,100),d=Math.sqrt(s/i),l=n/(2*Math.sqrt(s*i)),r=l<1?d*Math.sqrt(1-l*l):0,c=l<1?(l*d-a)/r:-a+d;function u(e){var o=t?t*e/1e3:e;return o=l<1?Math.exp(-o*l*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=Ut.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 Ut.springs[e]=s,s}}function Jt(e){return void 0===e&&(e=10),function(t){return Math.round(t*e)*(1/e)}}var Gt,Kt,Vt=function(){function e(e,t){return 1-3*t+3*e}function t(e,t){return 3*t-6*e}function o(e){return 3*e}function i(i,s,n){return((e(s,n)*i+t(s,n))*i+o(s))*i}function s(i,s,n){return 3*e(s,n)*i*i+2*t(s,n)*i+o(s)}return function(e,t,o,n){if(0<=e&&e<=1&&0<=o&&o<=1){var a=new Float32Array(11);if(e!==t||o!==n)for(var d=0;d<11;++d)a[d]=i(.1*d,e,o);return function(s){return e===t&&o===n?s:0===s||1===s?s:i(l(s),t,n)}}function l(t){for(var n=0,d=1;10!==d&&a[d]<=t;++d)n+=.1;--d;var l=n+.1*((t-a[d])/(a[d+1]-a[d])),r=s(l,e,o);return r>=.001?function(e,t,o,n){for(var a=0;a<4;++a){var d=s(t,o,n);if(0===d)return t;t-=(i(t,o,n)-e)/d}return t}(t,l,e,o):0===r?l:function(e,t,o,s,n){var a,d,l=0;do{(a=i(d=t+(o-t)/2,s,n)-e)>0?o=d:t=d}while(Math.abs(a)>1e-7&&++l<10);return d}(t,n,n+.1,e,o)}}}(),$t=(Gt={linear:function(){return function(e){return e}}},Kt={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=Ht(e,1,10),i=Ht(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){Kt[e]=function(){return function(e){return Math.pow(e,t+2)}}})),Object.keys(Kt).forEach((function(e){var t=Kt[e];Gt["easeIn"+e]=t,Gt["easeOut"+e]=function(e,o){return function(i){return 1-t(e,o)(1-i)}},Gt["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}}})),Gt);function Zt(e,t){if(qt.fnc(e))return e;var o=e.split("(")[0],i=$t[o],s=Xt(e);switch(o){case"spring":return Yt(e,t);case"cubicBezier":return Rt(Vt,s);case"steps":return Rt(Jt,s);default:return Rt(i,s)}}function eo(e){try{return document.querySelectorAll(e)}catch(e){return}}function to(e,t){for(var o=e.length,i=arguments.length>=2?arguments[1]:void 0,s=[],n=0;n<o;n++)if(n in e){var a=e[n];t.call(i,a,n,e)&&s.push(a)}return s}function oo(e){return e.reduce((function(e,t){return e.concat(qt.arr(t)?oo(t):t)}),[])}function io(e){return qt.arr(e)?e:(qt.str(e)&&(e=eo(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function so(e,t){return e.some((function(e){return e===t}))}function no(e){var t={};for(var o in e)t[o]=e[o];return t}function ao(e,t){var o=no(e);for(var i in e)o[i]=t.hasOwnProperty(i)?t[i]:e[i];return o}function lo(e,t){var o=no(e);for(var i in t)o[i]=qt.und(e[i])?t[i]:e[i];return o}function ro(e){return qt.rgb(e)?(o=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(t=e))?"rgba("+o[1]+",1)":t:qt.hex(e)?function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,o,i){return t+t+o+o+i+i})),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+parseInt(o[1],16)+","+parseInt(o[2],16)+","+parseInt(o[3],16)+",1)"}(e):qt.hsl(e)?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),n=parseInt(s[1],10)/360,a=parseInt(s[2],10)/100,d=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==a)t=o=i=d;else{var c=d<.5?d*(1+a):d+a-d*a,u=2*d-c;t=r(u,c,n+1/3),o=r(u,c,n),i=r(u,c,n-1/3)}return"rgba("+255*t+","+255*o+","+255*i+","+l+")"}(e):void 0;var t,o}function co(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 uo(e,t){return qt.fnc(e)?e(t.target,t.id,t.total):e}function mo(e,t){return e.getAttribute(t)}function po(e,t,o){if(so([o,"deg","rad","turn"],co(t)))return t;var i=Ut.CSS[t+o];if(!qt.und(i))return i;var s=document.createElement(e.tagName),n=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;n.appendChild(s),s.style.position="absolute",s.style.width=100+o;var a=100/s.offsetWidth;n.removeChild(s);var d=a*parseFloat(t);return Ut.CSS[t+o]=d,d}function ho(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?po(e,s,o):s}}function fo(e,t){return qt.dom(e)&&!qt.inp(e)&&(mo(e,t)||qt.svg(e)&&e[t])?"attribute":qt.dom(e)&&so(Wt,t)?"transform":qt.dom(e)&&"transform"!==t&&ho(e,t)?"css":null!=e[t]?"object":void 0}function vo(e){if(qt.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 go(e,t,o,i){var s=zt(t,"scale")?1:0+function(e){return zt(e,"translate")||"perspective"===e?"px":zt(e,"rotate")||zt(e,"skew")?"deg":void 0}(t),n=vo(e).get(t)||s;return o&&(o.transforms.list.set(t,n),o.transforms.last=t),i?po(e,n,i):n}function yo(e,t,o,i){switch(fo(e,t)){case"transform":return go(e,t,i,o);case"css":return ho(e,t,o);case"attribute":return mo(e,t);default:return e[t]||0}}function wo(e,t){var o=/^(\*=|\+=|-=)/.exec(e);if(!o)return e;var i=co(e)||0,s=parseFloat(t),n=parseFloat(e.replace(o[0],""));switch(o[0][0]){case"+":return s+n+i;case"-":return s-n+i;case"*":return s*n+i}}function bo(e,t){if(qt.col(e))return ro(e);if(/\s/g.test(e))return e;var o=co(e),i=o?e.substr(0,e.length-o.length):e;return t?i+t:i}function jo(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Qo(e){for(var t,o=e.points,i=0,s=0;s<o.numberOfItems;s++){var n=o.getItem(s);s>0&&(i+=jo(t,n)),t=n}return i}function _o(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return function(e){return 2*Math.PI*mo(e,"r")}(e);case"rect":return function(e){return 2*mo(e,"width")+2*mo(e,"height")}(e);case"line":return function(e){return jo({x:mo(e,"x1"),y:mo(e,"y1")},{x:mo(e,"x2"),y:mo(e,"y2")})}(e);case"polyline":return Qo(e);case"polygon":return function(e){var t=e.points;return Qo(e)+jo(t.getItem(t.numberOfItems-1),t.getItem(0))}(e)}}function Co(e,t){var o=t||{},i=o.el||function(e){for(var t=e.parentNode;qt.svg(t)&&qt.svg(t.parentNode);)t=t.parentNode;return t}(e),s=i.getBoundingClientRect(),n=mo(i,"viewBox"),a=s.width,d=s.height,l=o.viewBox||(n?n.split(" "):[0,0,a,d]);return{el:i,viewBox:l,x:l[0]/1,y:l[1]/1,w:a/l[2],h:d/l[3]}}function ko(e,t){function o(o){void 0===o&&(o=0);var i=t+o>=1?t+o:0;return e.el.getPointAtLength(i)}var i=Co(e.el,e.svg),s=o(),n=o(-1),a=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(a.y-n.y,a.x-n.x)/Math.PI}}function Do(e,t){var o=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,i=bo(qt.pth(e)?e.totalLength:e,t)+"";return{original:i,numbers:i.match(o)?i.match(o).map(Number):[0],strings:qt.str(e)||t?i.split(o):[]}}function Lo(e){return to(e?oo(qt.arr(e)?e.map(io):io(e)):[],(function(e,t,o){return o.indexOf(e)===t}))}function xo(e){var t=Lo(e);return t.map((function(e,o){return{target:e,id:o,total:t.length,transforms:{list:vo(e)}}}))}function Bo(e,t){var o=no(t);if(/^spring/.test(o.easing)&&(o.duration=Yt(o.easing)),qt.arr(e)){var i=e.length;2===i&&!qt.obj(e[0])?e={value:e}:qt.fnc(t.duration)||(o.duration=t.duration/i)}var s=qt.arr(e)?e:[e];return s.map((function(e,o){var i=qt.obj(e)&&!qt.pth(e)?e:{value:e};return qt.und(i.delay)&&(i.delay=o?0:t.delay),qt.und(i.endDelay)&&(i.endDelay=o===s.length-1?t.endDelay:0),i})).map((function(e){return lo(e,o)}))}function So(e,t){var o=[],i=t.keyframes;for(var s in i&&(t=lo(function(e){for(var t=to(oo(e.map((function(e){return Object.keys(e)}))),(function(e){return qt.key(e)})).reduce((function(e,t){return e.indexOf(t)<0&&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)qt.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)qt.key(s)&&o.push({name:s,tweens:Bo(t[s],e)});return o}function Ao(e,t){var o;return e.tweens.map((function(i){var s=function(e,t){var o={};for(var i in e){var s=uo(e[i],t);qt.arr(s)&&1===(s=s.map((function(e){return uo(e,t)}))).length&&(s=s[0]),o[i]=s}return o.duration=parseFloat(o.duration),o.delay=parseFloat(o.delay),o}(i,t),n=s.value,a=qt.arr(n)?n[1]:n,d=co(a),l=yo(t.target,e.name,d,t),r=o?o.to.original:l,c=qt.arr(n)?n[0]:r,u=co(c)||co(l),m=d||u;return qt.und(a)&&(a=r),s.from=Do(c,m),s.to=Do(wo(a,c),m),s.start=o?o.end:0,s.end=s.start+s.delay+s.duration+s.endDelay,s.easing=Zt(s.easing,s.duration),s.isPath=qt.pth(n),s.isColor=qt.col(s.from.original),s.isColor&&(s.round=1),o=s,s}))}var Po={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 n="";i.list.forEach((function(e,t){n+=t+"("+e+") "})),e.style.transform=n}}};function Eo(e,t){xo(e).forEach((function(e){for(var o in t){var i=uo(t[o],e),s=e.target,n=co(i),a=yo(s,o,n,e),d=wo(bo(i,n||co(a)),a),l=fo(s,o);Po[l](s,o,d,e.transforms,!0)}}))}function Oo(e,t){return to(oo(e.map((function(e){return t.map((function(t){return function(e,t){var o=fo(e.target,t.name);if(o){var i=Ao(t,e),s=i[i.length-1];return{type:o,property:t.name,animatable:e,tweens:i,duration:s.end,delay:i[0].delay,endDelay:s.endDelay}}}(e,t)}))}))),(function(e){return!qt.und(e)}))}function To(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 Io=0;var Mo,No=[],Fo=[],Wo=function(){function e(){Mo=requestAnimationFrame(t)}function t(t){var o=No.length;if(o){for(var i=0;i<o;){var s=No[i];if(s.paused){var n=No.indexOf(s);n>-1&&(No.splice(n,1),o=No.length)}else s.tick(t);i++}e()}else Mo=cancelAnimationFrame(Mo)}return e}();function Uo(e){void 0===e&&(e={});var t,o=0,i=0,s=0,n=0,a=null;function d(e){var t=window.Promise&&new Promise((function(e){return a=e}));return e.finished=t,t}var l=function(e){var t=ao(Nt,e),o=ao(Ft,e),i=So(o,e),s=xo(e.targets),n=Oo(s,i),a=To(n,o),d=Io;return Io++,lo(t,{id:d,children:[],animatables:s,animations:n,duration:a.duration,delay:a.delay,endDelay:a.endDelay})}(e);d(l);function r(){var e=l.direction;"alternate"!==e&&(l.direction="normal"!==e?"normal":"reverse"),l.reversed=!l.reversed,t.forEach((function(e){return e.reversed=l.reversed}))}function c(e){return l.reversed?l.duration-e:e}function u(){o=0,i=c(l.currentTime)*(1/Uo.speed)}function m(e,t){t&&t.seek(e-t.timelineOffset)}function p(e){for(var t=0,o=l.animations,i=o.length;t<i;){var s=o[t],n=s.animatable,a=s.tweens,d=a.length-1,r=a[d];d&&(r=to(a,(function(t){return e<t.end}))[0]||r);for(var c=Ht(e-r.start-r.delay,0,r.duration)/r.duration,u=isNaN(c)?1:r.easing(c),m=r.to.strings,p=r.round,h=[],f=r.to.numbers.length,v=void 0,g=0;g<f;g++){var y=void 0,w=r.to.numbers[g],b=r.from.numbers[g]||0;y=r.isPath?ko(r.value,u*w):b+u*(w-b),p&&(r.isColor&&g>2||(y=Math.round(y*p)/p)),h.push(y)}var j=m.length;if(j){v=m[0];for(var Q=0;Q<j;Q++){m[Q];var _=m[Q+1],C=h[Q];isNaN(C)||(v+=_?C+_:C+" ")}}else v=h[0];Po[s.type](n.target,s.property,v,n.transforms),s.currentValue=v,t++}}function h(e){l[e]&&!l.passThrough&&l[e](l)}function f(e){var u=l.duration,f=l.delay,v=u-l.endDelay,g=c(e);l.progress=Ht(g/u*100,0,100),l.reversePlayback=g<l.currentTime,t&&function(e){if(l.reversePlayback)for(var o=n;o--;)m(e,t[o]);else for(var i=0;i<n;i++)m(e,t[i])}(g),!l.began&&l.currentTime>0&&(l.began=!0,h("begin")),!l.loopBegan&&l.currentTime>0&&(l.loopBegan=!0,h("loopBegin")),g<=f&&0!==l.currentTime&&p(0),(g>=v&&l.currentTime!==u||!u)&&p(u),g>f&&g<v?(l.changeBegan||(l.changeBegan=!0,l.changeCompleted=!1,h("changeBegin")),h("change"),p(g)):l.changeBegan&&(l.changeCompleted=!0,l.changeBegan=!1,h("changeComplete")),l.currentTime=Ht(g,0,u),l.began&&h("update"),e>=u&&(i=0,l.remaining&&!0!==l.remaining&&l.remaining--,l.remaining?(o=s,h("loopComplete"),l.loopBegan=!1,"alternate"===l.direction&&r()):(l.paused=!0,l.completed||(l.completed=!0,h("loopComplete"),h("complete"),!l.passThrough&&"Promise"in window&&(a(),d(l)))))}return l.reset=function(){var e=l.direction;l.passThrough=!1,l.currentTime=0,l.progress=0,l.paused=!0,l.began=!1,l.loopBegan=!1,l.changeBegan=!1,l.completed=!1,l.changeCompleted=!1,l.reversePlayback=!1,l.reversed="reverse"===e,l.remaining=l.loop,t=l.children;for(var o=n=t.length;o--;)l.children[o].reset();(l.reversed&&!0!==l.loop||"alternate"===e&&1===l.loop)&&l.remaining++,p(l.reversed?l.duration:0)},l.set=function(e,t){return Eo(e,t),l},l.tick=function(e){s=e,o||(o=s),f((s+(i-o))*Uo.speed)},l.seek=function(e){f(c(e))},l.pause=function(){l.paused=!0,u()},l.play=function(){l.paused&&(l.completed&&l.reset(),l.paused=!1,No.push(l),u(),Mo||Wo())},l.reverse=function(){r(),u()},l.restart=function(){l.reset(),l.play()},l.reset(),l.autoplay&&l.play(),l}function Ho(e,t){for(var o=t.length;o--;)so(e,t[o].animatable.target)&&t.splice(o,1)}"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){document.hidden?(No.forEach((function(e){return e.pause()})),Fo=No.slice(0),Uo.running=No=[]):Fo.forEach((function(e){return e.play()}))})),Uo.version="3.1.0",Uo.speed=1,Uo.running=No,Uo.remove=function(e){for(var t=Lo(e),o=No.length;o--;){var i=No[o],s=i.animations,n=i.children;Ho(t,s);for(var a=n.length;a--;){var d=n[a],l=d.animations;Ho(t,l),l.length||d.children.length||n.splice(a,1)}s.length||n.length||i.pause()}},Uo.get=yo,Uo.set=Eo,Uo.convertPx=po,Uo.path=function(e,t){var o=qt.str(e)?eo(e)[0]:e,i=t||100;return function(e){return{property:e,el:o,svg:Co(o),totalLength:_o(o)*(i/100)}}},Uo.setDashoffset=function(e){var t=_o(e);return e.setAttribute("stroke-dasharray",t),t},Uo.stagger=function(e,t){void 0===t&&(t={});var o=t.direction||"normal",i=t.easing?Zt(t.easing):null,s=t.grid,n=t.axis,a=t.from||0,d="first"===a,l="center"===a,r="last"===a,c=qt.arr(e),u=c?parseFloat(e[0]):parseFloat(e),m=c?parseFloat(e[1]):0,p=co(c?e[1]:e)||0,h=t.start||0+(c?u:0),f=[],v=0;return function(e,t,g){if(d&&(a=0),l&&(a=(g-1)/2),r&&(a=g-1),!f.length){for(var y=0;y<g;y++){if(s){var w=l?(s[0]-1)/2:a%s[0],b=l?(s[1]-1)/2:Math.floor(a/s[0]),j=w-y%s[0],Q=b-Math.floor(y/s[0]),_=Math.sqrt(j*j+Q*Q);"x"===n&&(_=-j),"y"===n&&(_=-Q),f.push(_)}else f.push(Math.abs(a-y));v=Math.max.apply(Math,f)}i&&(f=f.map((function(e){return i(e/v)*v}))),"reverse"===o&&(f=f.map((function(e){return n?e<0?-1*e:-e:Math.abs(v-e)})))}return h+(c?(m-u)/v:u)*(Math.round(100*f[t])/100)+p}},Uo.timeline=function(e){void 0===e&&(e={});var t=Uo(e);return t.duration=0,t.add=function(o,i){var s=No.indexOf(t),n=t.children;function a(e){e.passThrough=!0}s>-1&&No.splice(s,1);for(var d=0;d<n.length;d++)a(n[d]);var l=lo(o,ao(Ft,e));l.targets=l.targets||e.targets;var r=t.duration;l.autoplay=!1,l.direction=t.direction,l.timelineOffset=qt.und(i)?r:wo(i,r),a(t),t.seek(l.timelineOffset);var c=Uo(l);a(c),n.push(c);var u=To(n,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},Uo.easing=Zt,Uo.penner=$t,Uo.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};var zo=Uo,Ro=function(){return!LiveComposer.Builder.Flags.panelOpened||(LiveComposer.Builder.UI.shakePanelConfirmButton(),!1)};document.addEventListener("moduleDuplicate",(function(e){const t=e.detail;if(!Ro())return!1;t.classList.contains("dslca-action-disabled")||Yo(t.closest(".dslc-module-front"))})),document.addEventListener("moduleDelete",(function(e){const t=e.detail;if(!Ro())return!1;t.classList.contains("dslca-action-disabled")||i({title:DSLCString.str_del_module_title,content:DSLCString.str_del_module_descr,confirm:function(){!function(e){window.dslcDebug&&console.log("dslc_delete_module");Pt(".dslca-modules"),zo({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()}})}(t.closest(".dslc-module-front"))}})})),document.addEventListener("moduleEdit",(function(e){const 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;Xo(),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){const t=e.detail.closest(".dslc-module-front"),o=jQuery(t),i=localStorage.getItem("lcCopyPasteStorage");let 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){const e=t.querySelector(".dslca-module-code").innerText;let 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){const t=e.detail,o=t.closest(".dslc-module-front");if(!t.classList.contains("dslca-action-disabled")){var i=o.dataset.dslcModuleSize,s=t.dataset.size;Number(i)!==Number(s)&&function(e,t){window.dslcDebug&&console.log("dslc_module_width_set");var o="dslc-"+t+"-col";jQuery(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("dslc-module-size",t),e.setAttribute("data-dslc-module-size",t),LiveComposer.Utils.update_module_property_raw(e,"dslc_m_size",t),LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(),window.dslc_generate_code(),window.dslc_show_publish_button()}(o,s)}})),document.addEventListener("wysiwygEdit",(function(e){const t=e.detail,o=t.closest(".dslc-module-front"),i=t.dataset.idToEdit,s=o.querySelector('[data-edit-id="'+i+'"]');let n="";if(n="TEXTAREA"===s.tagName||"INPUT"===s.tagName?s.value:s.innerHTML,void 0===n&&(n=""),n.trim().length&&(n=n.replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")),n.includes("%")&&(n=n.replace(/%\(\(%/g,"["),n=n.replace(/%\)\)%/g,"]"),n=n.replace(/%\(%/g,"["),n=n.replace(/%\)%/g,"]"),n=n.replace(/%\{%/g,"["),n=n.replace(/%\}%/g,"]")),n=n.trim(),"undefined"!=typeof tinymce){var a=tinymce.get("dslcawpeditor");document.getElementById("wp-dslcawpeditor-wrap").classList.contains("tmce-active")?a.setContent(n,{format:"html"}):document.getElementById("dslcawpeditor").value=n,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.")}));const qo=()=>{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")}))};const Xo=()=>{const e=LiveComposer.Builder.PreviewAreaWindow.document.querySelector(".dslca-module-being-edited");null!==e&&e.classList.remove("dslca-module-being-edited")};function Yo(e){window.dslcDebug&&console.log("dslc_copy_module"),Xo();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"),Jo(t),window.dslc_generate_code(),zo({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()}const Jo=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 n={action:"dslc-ajax-display-module-options",dslc:"active"};n.dslc_module_id=e,n.dslc_post_id=jQuery(".dslca-container").data("data-post-id"),n.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,"]")),n[t]=o})),jQuery(".dslca-wp-editor-actions").hide(),jQuery(".dslca-wp-editor-notification").show(),At();var a=jQuery(".dslca-module-options-front",t).children().clone();LiveComposer.Builder.moduleBackup=a,LiveComposer.Builder.Flags.panelOpened=!0,s.show(),s.addClass("show"),jQuery.post(DSLCAjax.ajaxurl,n,(function(e){s.remove(),Pt(".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,n=0;n<o;n++)jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+t[n]+'"]').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()}))};const Go=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"),n={action:"dslc-ajax-add-module",dslc:"active"};n.dslc_module_id=o,n.dslc_module_instance_id=s,n.dslc_post_id=jQuery(".dslca-container").data("post-id"),t.hasClass("dslca-preload-preset")?n.dslc_preload_preset="enabled":n.dslc_preload_preset="disabled",t.removeClass("dslca-preload-preset"),i.each((function(){var e=jQuery(this),t=e.data("id"),o=e.val();n[t]=o})),n.dslc_url_vars=LiveComposer.Utils.get_page_params(),jQuery.post(DSLCAjax.ajaxurl,n,(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"),n={action:"dslc-ajax-add-module",dslc:"active"};n.dslc_module_id=o,n.dslc_module_instance_id=s,n.dslc_post_id=jQuery(".dslca-container").data("post-id"),n.dslc_preload_preset="enabled",e.removeClass("dslca-preload-preset"),i.each((function(){var e=jQuery(this),t=e.data("id"),o=e.val();n[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,n,(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")}))};const Ko=()=>{LiveComposer.Builder.PreviewAreaDocument.on({mouseenter:function(e){jQuery(".dslca-modules-section-manage",LiveComposer.Builder.PreviewAreaDocument).css("z-index","99998");const 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"),qo()},Vo=()=>{var e,t,o,i=jQuery(".dslca-modules .dslca-section-scroller-content");0==i.length&&(i=[document.createElement("div")]);St.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,n,a=i.item;if(i.preventDefault(),jQuery(a).closest(".dslca-section-scroller-content").length>0)return!1;jQuery(".dslca-options-hovered",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-options-hovered"),e=jQuery(a.parentNode),t=a.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,n=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){n(e)})),jQuery(a).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")}})},$o=function(e){var t=this;this.section=jQuery(e).closest(".dslc-modules-section"),this.elem=e,this.observer=new mqMutationObserver(e,(function(){var o=t.elem.classList;0==e.querySelectorAll(".dslc-module-front").length?(o.add("dslc-modules-area-empty"),o.remove("dslc-modules-area-not-empty")):(o.remove("dslc-modules-area-empty"),o.add("dslc-modules-area-not-empty"))}),{childList:!0}),this.sortable=St.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")&&(Zo(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 $o(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():si(e()),LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-modules-area-hook",(function(e){if(e.preventDefault(),!t())return!1;if(!jQuery(this).hasClass("dslca-action-disabled")){var o=jQuery(this).closest(".dslc-modules-area");(function(e){window.dslcDebug&&console.log("dslc_copy_modules_area");var t=e.closest(".dslc-modules-section").find(".dslc-modules-section-inner"),o=e.clone().appendTo(t);new $o(o[0]),o.find(".dslca-modules-area-manage").trigger("mouseleave"),o.data("size",e.data("size")).find(".dslc-module-front").css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).each((function(){var e=jQuery(this);Jo(e[0]),jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited"),window.dslc_generate_code(),e.animate({opacity:1},300)})),Vo(),window.dslc_show_publish_button(),window.dslc_generate_code()})(o)}})),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")){var o=jQuery(this).closest(".dslc-modules-area");ei(o)}else{var s=jQuery(this);i({title:DSLCString.str_del_area_title,content:DSLCString.str_del_area_descr,confirm:function(){ei(s.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){window.dslcDebug&&console.log("dslc_modules_area_vertical_align_set");var o="dslc-valign-"+t;if(e.removeClass("dslc-valign-top dslc-valign-middle dslc-valign-bottom").addClass(o).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;Zo(jQuery(this).closest(".dslc-modules-section").find(".dslc-modules-section-inner"))}))}));const Zo=e=>{window.dslcDebug&&console.log("modulesAreaAdd");const 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 $o(t)})),Vo(),window.dslc_generate_code(),window.dslc_show_publish_button()};function ei(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(),Pt(".dslca-modules")),setTimeout((function(){if(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(),Zo(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()}))}const ti=()=>{jQuery("#dslc-main .dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument).each((function(){"initialized"!==jQuery(this).data("jsinit")&&new $o(this)}))};const oi=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")&&Zo(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&&Zo(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(){}))}},ii=()=>{jQuery;var e=function(){return!LiveComposer.Builder.Flags.panelOpened||(LiveComposer.Builder.UI.shakePanelConfirmButton(),!1)};jQuery(".dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each((function(){new oi(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(){ai(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(){ri(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")||li(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"),si((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")||di(jQuery(this).closest(".dslc-modules-section")),jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("section-editing-in-progress")}))},si=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"));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));if(null!==i)return ni(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),ni(i.output),e&&e(),t}))};function ni(e){var t=jQuery(e);return t.appendTo(LiveComposer.Builder.PreviewAreaDocument.find("#dslc-main")),Vo(),window.dslc_generate_code(),window.dslc_show_publish_button(),new oi(t),new $o(t.find(".dslc-modules-area").eq(0)[0]),t.find(".dslc-modules-area").addClass("dslc-modules-area-empty dslc-last-col"),t}function ai(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(),Pt(".dslca-modules")),e.trigger("mouseleave").remove(),window.dslc_generate_code(),window.dslc_show_publish_button()}function di(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())})),Pt(".dslca-modules-section-edit"),LiveComposer.Builder.Flags.panelOpened=!0,At()}function li(e){var t;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 oi(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);Jo(e[0]),ci(),ti(),window.dslc_generate_code(),Vo(),jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited"),e.animate({opacity:1},300),window.dslc_show_publish_button()})),function(e){window.dslcDebug&&console.log("dslc_section_new_id");var t=LiveComposer.Utils.get_unique_id();e.setAttribute("data-section-id",t),LiveComposer.Utils.update_section_property_raw(e,"section_instance_id",t)}(t[0])}function ri(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){c(),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(),ci(),ti(),Vo(),window.dslc_generate_code(),window.dslc_show_publish_button()}))}const ci=()=>{jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each((function(){"initialized"!==jQuery(this).data("jsinit")&&new oi(this)}))},ui=()=>{ci(),ii(),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())})),Pt(".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(),Pt(".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)}))};function mi(){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}),r("",".dslca-modal-templates-import"),LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video(),Vo(),window.dslc_show_publish_button(),window.dslc_generate_code()}))}function pi(){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){r("",".dslca-modal-templates-save")}))}function hi(e){window.dslcDebug&&console.log("dslc_delete_template"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-delete-template",dslc:"active",dslc_template_id:e},(function(t){jQuery('.dslca-template[data-id="'+e+'"]').fadeOut(200,(function(){jQuery(this).remove()}))}))}const fi=()=>{document.querySelectorAll(".dslca-template").forEach((function(e){e.addEventListener("click",e=>{e.preventDefault(),(e=>{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:e},(function(e){jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).html(e.output),jQuery(".lc-template-loader").remove(),LiveComposer.Builder.PreviewAreaWindow.dslc_carousel(),ci(),ti(),Vo(),window.dslc_show_publish_button(),window.dslc_generate_code()}))})(e.target.closest("[data-id]").dataset.id)})})),jQuery(".dslca-template-import-form").submit((function(e){e.preventDefault(),mi()})),jQuery(".dslca-template-save-form").submit((function(e){e.preventDefault(),pi()})),jQuery(document).on("click",".dslca-delete-template-hook",(function(e){e.stopPropagation(),hi(jQuery(this).data("id"))}))};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 n=i-s+10;e=(e=(e=parseInt(o.style.left||0)-e)>=0?0:e)<=-n?-n: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"))}));const vi=()=>{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){vi(),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()}))}));const gi={addslashes:function(e){return e=(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+'"]'),n=i.value;(n=JSON.parse(n))[t]=o,n=JSON.stringify(n),i.value=n,i.innerText=n,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+'"]'),n=i.value;(n=JSON.parse(n))[t]=o,n=JSON.stringify(n),i.value=n,i.innerText=n,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)})),fi(),f(),ui(),new class{constructor(e){this.sortable,this.initSortable(e),this.reactToSortableOnOff()}initSortable(e){this.sortable=St.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"),Vo(),d(),window.dslc_generate_code(),It(),vi(),Ko(),window.LiveComposer.Utils=gi,document.addEventListener("click",(function(e){if(e.target.matches('[data-event="modal-wysiwyg-cancel"]')){const t=new CustomEvent("modalWysiwygCancel",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches('[data-event="modal-wysiwyg-confirm"]')){const t=new CustomEvent("modalWysiwygConfirm",{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"]')){const t=new CustomEvent("moduleEdit",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches('[data-event="module-duplicate"]')){const t=new CustomEvent("moduleDuplicate",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches('[data-event="module-delete"]')){const t=new CustomEvent("moduleDelete",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches(".dslca-change-width-module-options [data-size]")){const t=new CustomEvent("moduleChangeWidth",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches('[data-event="wysiwyg-edit"]')){const t=new CustomEvent("wysiwygEdit",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches('[data-event="module-style-copy"]')){const t=new CustomEvent("copyModuleStyles",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches('[data-event="module-style-paste"]')){const t=new CustomEvent("pasteModuleStyles",{detail:e.target});document.dispatchEvent(t)}}),!1)},window.onbeforeunload=function(){}}});
9
  //# sourceMappingURL=editor_backend.min.js.map
js/dist/editor_backend.min.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"editor_backend.min.js","sources":["webpack:///editor_backend.min.js"],"sourcesContent":["!function(e){var t={};function o(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,o),n.l=!0,n.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)return e;if(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 n in e)o.d(i,n,function(t){return e[t]}.bind(null,n));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\";function i(e){return(i=\"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)}o.r(t);var n=function(e){if(\"object\"!=i(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>\",o=\"\";o=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>\",t+=o+\"</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=function(){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)}))}))}));function a(){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)return;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 n=e.getAttribute(\"data-exportable-content\");i=\"<\"+n+\">\"+e.innerHTML+\"</\"+n+\">\"}else i=e.innerHTML;null!==i&&(o+=i.replace(/\\s+/g,\" \").trim()+\"\\n\")}));e.value=o,t!==o&&window.dslc_show_publish_button()}();var e=jQuery(\"#dslca-code\").val(),t=jQuery(\"#dslca-content-for-search\").val(),o=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:o,dslc_code:e,dslc_content_for_search:t},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-'+o+'\" src=\"'+DSLCSiteData.siteurl+\"/?p=\"+o+'\" ></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){\"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\")}))}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=d(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)};var d=function(e){window.dslcDebug&&console.log(\"generateSectionCode\");var t,o,i,n,s=\"\",a=0,d=\"\";return o=e,jQuery(\".dslc-modules-area\",o).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\"),a=0,i=o.find(\".dslca-section-code\").val(),n=JSON.parse(i),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+'\" ',n[t]=o})),void 0!==n.give_new_id&&delete n.give_new_id,n.content=[],jQuery(\".dslc-modules-area\",o).each((function(){var e=0,o=jQuery(this),i=parseInt(o.data(\"size\")),d=o.data(\"valign\"),l=\"no\",r=\"no\";a+=i,jQuery(this).removeClass(\"dslc-first-col\"),jQuery(this).removeClass(\"dslc-last-col\"),12==a?(jQuery(this).addClass(\"dslc-last-col\").next(\".dslc-modules-area\").addClass(\"dslc-first-col\"),a=0,l=\"yes\"):a>12&&(jQuery(this).removeClass(\"dslc-last-col\").addClass(\"dslc-first-col\"),a=i,r=\"yes\"),a==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\":\"'+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&&(\"yes\",jQuery(this).removeClass(\"dslc-last-col\").addClass(\"dslc-first-col\"));try{s=o[0].querySelector(\".dslca-module-code\").innerText}catch(e){console.info(\"No DSLC code found in module: \"+o[0].getAttribute(\"id\"))}if(\"\"!==s){var n=JSON.parse(s);n.last=i,jQuery.each(n,(function(e,t){!1!==t&&\"\"!==t||delete n[e],\"content\"===e&&(n[e]=t.replace(/\\\\'/g,\"'\")),\"give_new_id\"===e&&delete n[e]})),o[0].querySelector(\".dslca-module-code\").innerText=JSON.stringify(n),c.content.push(n)}s=\"\"})),n.content.push(c)})),JSON.stringify(n)},l=function(){jQuery(document).on(\"click\",\".dslca-save-composer-hook\",(function(e){e.preventDefault(),jQuery(\"body\").hasClass(\"dslca-module-saving-in-progress\")||jQuery(\"body\").hasClass(\"dslca-saving-in-progress\")||a()})),jQuery(document).on(\"click\",\".dslca-save-draft-composer-hook\",(function(e){e.preventDefault(),jQuery(\"body\").hasClass(\"dslca-module-saving-in-progress\")||jQuery(\"body\").hasClass(\"dslca-saving-in-progress\")||function(){window.dslcDebug&&console.log(\"dslc_save_draft_composer\");var e=jQuery(\"#dslca-code\").val(),t=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:t,dslc_code:e},(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\")}))}()}))};var r=function(e){if(window.dslcDebug&&console.log(\"editableContentCodeGeneration\"),void 0===e)return!1;var 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)};var c=function(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=jQuery(this).data(\"modal\");!function(e,t){\"undefined\"!=typeof dslcDebug&&dslcDebug&&console.log(\"dslc_show_modal\"),jQuery(\".dslca-modal:visible\").length&&c(\"\",jQuery(\".dslca-modal:visible\")),t=jQuery(t),jQuery(\".dslca-container\").height(),t.outerHide({clbk:function(){c(\"\",jQuery(\".dslca-modal:visible\"))}});var o=jQuery(e).position(),i=t.outerWidth()/2-e.outerWidth()/2,n=o.left-i;t.css({left:n}),jQuery(\".dslca-prompt-modal-custom\").insertAfter(t),jQuery(\".dslca-prompt-modal-custom\").length>0&&jQuery(\".dslca-prompt-modal-custom\").fadeIn(),t.addClass(\"dslca-modal-open\").show()}(jQuery(this),t)})),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\");c(jQuery(this),t)}}))}));var u=function(){\"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\")})),u(),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){var n=o.closest(\".dslc-module-front\");dslc_module_delete(n)}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&&u(),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 n=t.find(\".dslc-tabs\");LiveComposer.Builder.PreviewAreaWindow.dslc_tabs_generate_code(n)}else r(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.\")}));function m(e){return(m=\"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)}var p=window.DSLCFonts.regular,h=window.DSLCFonts.google,f=p.concat(h),v=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 n=i.offset(),s=t.outerHeight(),a=t.outerWidth(),d=n.left-a/2+6,l=\"50%\";d<0&&(l=a/2+d+\"px\",d=0),jQuery(\".dslca-module-edit-field-ttip\").show().css({top:n.top-s-20,left:d}),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(),n=e.outerWidth(),s=o.left-n/2+6,a=\"50%\";s<0&&(a=n/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: \"+a+\" }</style>\"))}})),window.dslc_module_options_font(),jQuery(document).on(\"keyup\",\".dslca-module-edit-field-icon\",(function(e){var t,o,i,n;o=(t=jQuery(this)).closest(\".dslca-module-edit-option\"),38==e.which&&D(t,\"previous\"),40==e.which&&D(t,\"next\"),13!=e.which&&38!=e.which&&40!=e.which&&(i=t.val().toLowerCase(),t.val(i),n=jQuery.grep(v,(function(e,t){return 0==e.indexOf(i)}))[0],jQuery(\".dslca-module-edit-field-icon-suggest\",o).text(n))})),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(),c(\"\",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()})),function(){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(),n=e.find(\".dslca-module-edit-option-box-shadow-blur\").val(),s=e.find(\".dslca-module-edit-option-box-shadow-spread\").val(),a=e.find(\".dslca-module-edit-option-box-shadow-color\").val(),d=e.find(\".dslca-module-edit-option-box-shadow-inset\").is(\":checked\"),l=o+\"px \"+i+\"px \"+n+\"px \"+s+\"px \"+a+(d=d?\" inset\":\"\");t.val(l).trigger(\"change\")}))}(),function(){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(){L(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(),n=i.left+15,s=window.innerWidth;s<n+260&&(n=s-260),o.css(\"left\",n+\"px\"),jQuery(t).on(\"scroll\",(function(t){var n=(i=e.offset()).left+15,s=window.innerWidth;s<n+260&&(n=s-260),o.css(\"left\",n+\"px\")}))})),jQuery(\".dslca-container\").on(\"mouseenter\",\".dslca-module-edit-option-slider\",(function(){jQuery(this).hasClass(\"dslca-module-edit-option-select\")||x(this)})),jQuery(\".dslca-container\").on(\"mouseenter\",\".dslca-modules-section-edit-option-slider\",(function(){x(this)})),jQuery(\".dslca-module-edit-form\").submit((function(e){e.preventDefault(),Go()})),jQuery(document).on(\"click\",\".dslca-module-edit-options-tab-hook\",(function(e){e.preventDefault(),Q(jQuery(this))})),jQuery(document).on(\"click\",\".dslca-clear-responsive-options\",(function(e){e.preventDefault(),j()})),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,b(o),\"responsive\"==t&&(jQuery(\".dslca-container-loader\").show(),window.LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(),Go((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(),C((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\"),B()})),jQuery(document).on(\"click\",\".dslca-module-edit-cancel\",(function(e){e.preventDefault(),k((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\"),B()}))}));var g=function(){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\"),n=o.closest(\".dslca-module-edit-option\"),s=jQuery(\".dslca-module-being-edited\",LiveComposer.Builder.PreviewAreaDocument),a=s.data(\"module\");jQuery(\".dslca-module-options-front textarea\",s);if(s.addClass(\"dslca-module-change-made\"),(n.hasClass(\"dslca-module-edit-option-select\")||n.hasClass(\"dslca-module-edit-option-checkbox\"))&&_(),\"active\"==jQuery(this).closest(\".dslca-module-edit-option\").data(\"refresh-on-change\")){if(n.find(\".dslca-module-edit-option-checkbox-wrapper\").length)jQuery('input[type=\"checkbox\"]',n).each((function(){jQuery(this).prop(\"checked\")&&(e=e+jQuery(this).val()+\" \")}));else if(o.hasClass(\"dslca-module-edit-option-radio\"))e=jQuery(\".dslca-module-edit-field:checked\",o).val();else{e=o.val();if(\"orientation\"==i&&\"horizontal\"==e)jQuery(\".dslca-module-edit-option-thumb_width .dslca-module-edit-field\").val(\"40\").trigger(\"change\");else if(\"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(),Go((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\")?jQuery(\".dslca-container-loader\").hide():(window.dslc_module_options_show(a),jQuery(\".dslca-container-loader\").hide()),jQuery(\"body\").removeClass(\"dslca-new-preset-added\"),LiveComposer.Utils.publish(\"LC.moduleChange\",{moduleId:a,optionID:i,optionVal:o.val()})}))}else{if(o.hasClass(\"dslca-module-edit-field-font\")){var d=o.val();d+=\":400,100,200,300,500,600,700,800,900\";var l=o.data(\"affect-on-change-el\"),r=o.data(\"affect-on-change-rule\"),c=m=o.val(),u=jQuery(\".dslca-module-being-edited\",LiveComposer.Builder.PreviewAreaDocument);o.val().length&&-1!==h.indexOf(o.val())?document.getElementById(\"page-builder-frame\").contentWindow.WebFont.load({google:{families:[d]},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(\",\"),n=\"#\"+u[0].id+\" \"+i.join(\", #\"+u[0].id+\" \")+\" {\"+r+\": \"+m+\"}\";LiveComposer.Builder.Helpers.processInlineStyleTag({context:o,rule:r,elems:l,styleContent:n})},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=\"#\"+u[0].id+\" \"+e.join(\", #\"+u[0].id+\" \")+\" {\"+r+\": \"+m+\"}\";LiveComposer.Builder.Helpers.processInlineStyleTag({context:o,rule:r,elems:l,styleContent:t})}),100)}else if(o.hasClass(\"dslca-module-edit-field-checkbox\")){jQuery('input[type=\"checkbox\"]',n).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 m,p=o.data(\"ext\")||\"\";l=o.data(\"affect-on-change-el\"),r=o.data(\"affect-on-change-rule\"),c=m=o.val();o.hasClass(\"dslca-module-edit-field-checkbox\")&&(m=e,c=t),o.hasClass(\"dslca-module-edit-field-image\")&&(m='url(\"'+m+'\")'),null!==m&&m.length<1&&(\"background-color\"==r||\"background\"==r)&&(m=\"transparent\"),r.split(\",\").forEach((function(e){e=e.replace(/\\s+/g,\"\");var t=jQuery(\".dslca-module-being-edited\",LiveComposer.Builder.PreviewAreaDocument),i=l.split(\",\"),n=\"#\"+t[0].id+\" \"+i.join(\", #\"+t[0].id+\" \")+\" {\"+e+\": \"+m+p+\"}\";LiveComposer.Builder.Helpers.processInlineStyleTag({context:o,rule:e,elems:l,styleContent:n})}))}var f=\"\";f=-1!==i.indexOf(\"css_\")?c:o.val(),jQuery('.dslca-module-option-front[data-id=\"'+i+'\"]',s).val(f),LiveComposer.Utils.publish(\"LC.moduleChange\",{moduleId:s[0].id,optionID:i,optionVal:c||o.val()})}}))},y=function(){jQuery(document).on(\"change\",\".dslca-modules-section-edit-field\",(function(){var e,t,o,i,n,s,a,d;if(t=(e=jQuery(this)).data(\"id\"),i=e.val(),u=i,n=i+e.data(\"ext\"),s=e.data(\"css-rule\"),d=o=jQuery(\".dslca-modules-section-being-edited\",LiveComposer.Builder.PreviewAreaDocument),a=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 l=jQuery('.dslca-modules-section-settings input[data-id=\"border_style\"]').val();a=jQuery('.dslca-modules-section-settings input[data-id=\"border\"]',o),u=\"\",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\")?u+=\"top \":\"border-right\"==jQuery(this).data(\"id\")?u+=\"right \":\"border-bottom\"==jQuery(this).data(\"id\")?u+=\"bottom \":\"border-left\"==jQuery(this).data(\"id\")&&(u+=\"left \"))})),e.is(\":checked\")?\"border-top\"==e.data(\"id\")?o.css({\"border-top-style\":l}):\"border-right\"==e.data(\"id\")?o.css({\"border-right-style\":l}):\"border-bottom\"==e.data(\"id\")?o.css({\"border-bottom-style\":l}):\"border-left\"==e.data(\"id\")&&o.css({\"border-left-style\":l}):\"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 r=jQuery(this).closest(\".dslca-modules-section-edit-option-checkbox-wrapper\").find(\".dslca-modules-section-edit-field-checkbox\"),c=\"\";r.each((function(){jQuery(this).prop(\"checked\")&&(c+=jQuery(this).data(\"val\")+\" \")}));var u=c;\"show_on\"==e.data(\"id\")&&(-1!==c.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!==c.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!==c.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===u.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===u.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===u.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===u.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){var p=\"top\";\"section_divider_bottom_style\"==t&&(p=\"bottom\");var h=jQuery('.dslc-section-divider[data-divider-pos=\"'+p+'\"] svg',o).attr(\"style\");if(jQuery('.dslc-section-divider[data-divider-pos=\"'+p+'\"]',o).html(\"\"),i&&i.length){var f=jQuery(\"#dslc-section-dividers\",LiveComposer.Builder.PreviewAreaWindow.document).find(\"svg#\"+i).clone();jQuery('.dslc-section-divider[data-divider-pos=\"'+p+'\"]',o).html(f[0]),void 0!==h&&jQuery('.dslc-section-divider[data-divider-pos=\"'+p+'\"] svg',o).attr(\"style\",h)}}else if(\"bg_image_thumb\"==t)if(\"enabled\"==u){if(jQuery(\"#dslca-post-data-thumb\").length){var v=\"url('\"+jQuery(\"#dslca-post-data-thumb\").val()+\"')\";d.css(s,v)}}else\"disabled\"==u&&d.css(s,\"none\");else{var g;e.data(\"css-element\")&&(d=jQuery(e.data(\"css-element\"),o)),s=s.replace(/ /g,\"\").split(\",\"),g=null!=e.data(\"ext\")?n:i;for(var y=0;y<s.length;y++)d.css(s[y],g)}if(a.val(u),!LiveComposer.Builder.Flags.generate_code_after_row_changed)return!1}))},w=function(){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 n=e.state().get(\"selection\").first().toJSON();o.val(n.id);var s=t.parent().attr(\"data-id\");\"\"!=n.alt&&\"image\"==s&&jQuery('.dslca-module-edit-option-image_alt input[data-id=\"image_alt\"]').val(n.alt),\"\"!=n.title&&\"image\"==s&&jQuery('.dslca-module-edit-option-image_title input[data-id=\"image_title\"]').val(n.title),jQuery(\".dslca-modules-section-being-edited\",LiveComposer.Builder.PreviewAreaDocument).find('.dslca-modules-section-settings input[data-id=\"dslca-img-url\"]').val(n.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()}))};function b(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(),Q()}var j=function(){var 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((function(e){var 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\")}))},Q=function(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(),_(),jQuery(\".dslca-module-edit-options-tab-hook:visible\").length<2?jQuery(\".dslca-module-edit-options-tabs\").hide():jQuery(\".dslca-module-edit-options-tabs\").show(),B(),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(),Go((function(){jQuery(\".dslca-container-loader\").hide()})))),jQuery(\"body\").hasClass(\"rtl\")){var i,n=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\")||(n+=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(n)+parseInt(s)+10,jQuery(\".dslca-module-edit-options-wrapper\").css({width:i+\"px\"})}};function _(){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,n=!0,s=!0,a=!0,d=!0,l=!0,r=!0,c=!0,u=!0,m=!0,p=!0,h=!0,f=!0,v=!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()&&(n=!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\")&&(a=!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\")||(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\")||(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\")&&(v=!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(),n?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(),a?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(),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(),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(),v?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 C(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\"),Go((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()}))),Et(\".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 k(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),Go((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()})),Et(\".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 D(e,t){var o=jQuery(e).closest(\".dslca-module-edit-option-icon\"),i=jQuery(\".dslca-module-edit-field-icon\",o),n=v.indexOf(i.val());if(\"previous\"==t)var s=n-1;else s=n+1;jQuery(\".dslca-module-edit-field-icon-suggest\",o).text(\"\"),s<0&&(s=v.length-1),i.val(v[s]).trigger(\"change\")}function L(e){var t,o,i,n,s,a;window.dslcDebug&&console.log(\"dslc_module_options_color\");var d,l=[],r=\"dslcColors-\"+document.domain;void 0!==localStorage[r]&&(d=JSON.parse(localStorage[r]),l=d),1>l.length&&l.push(\"#78b\"),2>l.length&&l.push(\"#ab0\"),3>l.length&&l.push(\"#de3\"),l.push(\"#fff\"),l.push(\"#000\"),l.push(\"rgba(0,0,0,0)\"),jQuery(e).each((function(){var e=jQuery(this).closest(\".dslca-color-option\"),d=jQuery(this);jQuery(this).val(),d.wpColorPicker({mode:\"hsl\",palettes:l,change:function(e,l){t=d;var r=d.wpColorPicker(\"color\");n=null==r?\"\":r,t.val(n).trigger(\"change\"),t.css(\"background\",n),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,n),s=jQuery(\".dslca-module-being-edited\",window.LiveComposer.Builder.PreviewAreaDocument),a=t.data(\"id\"),jQuery('.dslca-module-option-front[data-id=\"'+a+'\"]',s).val(n),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\");d.wpColorPicker(\"open\"),jQuery(c).on(\"click\",(function(){if(\"#fff\"!==n&&\"#ffffff\"!==n&&\"#000\"!==n&&\"#000000\"!==n&&\"rgba(0,0,0,0)\"!==n)if(void 0===localStorage[r]){var e=[n];localStorage[r]=JSON.stringify(e)}else{-1==(e=JSON.parse(localStorage[r])).indexOf(n)&&(e.unshift(n),3<e.length&&e.pop()),localStorage[r]=JSON.stringify(e)}d.wpColorPicker(\"close\")})),window.LiveComposer.Builder.Helpers.colorpickers.push(jQuery(this))}))}function x(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=!0;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\");if(e.hasClass(\"dslca-modules-section-edit-option\"))o=e.find(\".dslca-modules-section-edit-field\");else o=e.find(\".dslca-module-edit-field\");var i=e.find(\".dslca-module-edit-field-slider\"),n=parseFloat(o.val()),s=parseFloat(o.data(\"max\")),a=parseFloat(o.data(\"min\")),d=parseFloat(o.data(\"increment\")),l=!1;if(void 0!==o.data(\"onlypositive\")&&1===o.data(\"onlypositive\")&&(l=!0),n>=s&&(s=2*n),!l&&n<=a&&(a=2*n),i.slider({min:a,max:s,step:d,value:o.val(),slide:function(e,t){o.val(t.value+\"\"),o.trigger(\"change\")},change:function(t,o){(o.value>=s||o.value<=a)&&(i.slider(\"destroy\"),x(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 B(){jQuery(\"html\").removeClass(\"dslc-responsive-preview\"),jQuery(\"body\").removeClass(\"dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet\")}\n/**!\n * Sortable 1.10.1\n * @author\tRubaXa <trash@rubaxa.org>\n * @author\towenm <owen23355@gmail.com>\n * @license MIT\n */\nfunction S(e){return(S=\"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 A(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function P(){return(P=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 E(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){A(e,t,o[t])}))}return e}function O(e,t){if(null==e)return{};var o,i,n=function(e,t){if(null==e)return{};var o,i,n={},s=Object.keys(e);for(i=0;i<s.length;i++)o=s[i],t.indexOf(o)>=0||(n[o]=e[o]);return n}(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)&&(n[o]=e[o])}return n}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=f.indexOf(o.val())+1;jQuery(\".dslca-module-edit-field-font-suggest\",t).text(\"\"),o.val(f[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=f.indexOf(o.val())-1;jQuery(\".dslca-module-edit-field-font-suggest\",t).text(\"\"),i<0&&(i=f.length-1),o.val(f[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){console.log(\"1 e.which:\"),console.log(e.which);var t,o,i,n,s=!1;t=jQuery(this),o=t.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();if(13!=e.which&&38!=e.which&&40!=e.which){i=t.val();var a=new RegExp(\"^\"+i,\"i\"),d=f.length,l=0;do{if(a.test(f[l])&&!s)s=f[l];l++}while(l<d);s?i!==s&&(n=s,jQuery(\".dslca-module-edit-field-font-suggest\",o).show()):(n=i,jQuery(\".dslca-module-edit-field-font-suggest\",o).hide()),jQuery(\".dslca-module-edit-field-font-suggest\",o).text(n),n.length&&t.val(n.substring(0,t.val().length))}})),jQuery(document).off(\"keydown\",\".dslca-module-edit-field-font\").on(\"keydown\",\".dslca-module-edit-field-font\",(function(e){if(console.log(\"2 e.which:\"),console.log(e.which),13==e.which||9==e.which){var t,o;t=jQuery(this),o=t.closest(\".dslca-module-edit-option\"),jQuery(\".dslca-module-edit-field-font-suggest\",o).text().length&&(jQuery(this).val(jQuery(\".dslca-module-edit-field-font-suggest\",o).text()).trigger(\"change\"),jQuery(\".dslca-module-edit-field-font-suggest\",o).text(\"\"))}}))};function T(e){if(\"undefined\"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var I=T(/(?:Trident.*rv[ :]?11\\.|msie|iemobile|Windows Phone)/i),M=T(/Edge/i),N=T(/firefox/i),F=T(/safari/i)&&!T(/chrome/i)&&!T(/android/i),W=T(/iP(ad|od|hone)/i),U=T(/chrome/i)&&T(/android/i),H={capture:!1,passive:!1};function z(e,t,o){e.addEventListener(t,o,!I&&H)}function R(e,t,o){e.removeEventListener(t,o,!I&&H)}function q(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}return!1}}function X(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Y(e,t,o,i){if(e){o=o||document;do{if(null!=t&&(\">\"===t[0]?e.parentNode===o&&q(e,t):q(e,t))||i&&e===o)return e;if(e===o)break}while(e=X(e))}return null}var J,G=/\\s+/g;function K(e,t,o){if(e&&t)if(e.classList)e.classList[o?\"add\":\"remove\"](t);else{var i=(\" \"+e.className+\" \").replace(G,\" \").replace(\" \"+t+\" \",\" \");e.className=(i+(o?\" \"+t:\"\")).replace(G,\" \")}}function V(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 $(e,t){var o=\"\";if(\"string\"==typeof e)o=e;else do{var i=V(e,\"transform\");i&&\"none\"!==i&&(o=i+\" \"+o)}while(!t&&(e=e.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix;return n&&new n(o)}function Z(e,t,o){if(e){var i=e.getElementsByTagName(t),n=0,s=i.length;if(o)for(;n<s;n++)o(i[n],n);return i}return[]}function ee(){return I?document.documentElement:document.scrollingElement}function te(e,t,o,i,n){if(e.getBoundingClientRect||e===window){var s,a,d,l,r,c,u;if(e!==window&&e!==ee()?(a=(s=e.getBoundingClientRect()).top,d=s.left,l=s.bottom,r=s.right,c=s.height,u=s.width):(a=0,d=0,l=window.innerHeight,r=window.innerWidth,c=window.innerHeight,u=window.innerWidth),(t||o)&&e!==window&&(n=n||e.parentNode,!I))do{if(n&&n.getBoundingClientRect&&(\"none\"!==V(n,\"transform\")||o&&\"static\"!==V(n,\"position\"))){var m=n.getBoundingClientRect();a-=m.top+parseInt(V(n,\"border-top-width\")),d-=m.left+parseInt(V(n,\"border-left-width\")),l=a+s.height,r=d+s.width;break}}while(n=n.parentNode);if(i&&e!==window){var p=$(n||e),h=p&&p.a,f=p&&p.d;p&&(l=(a/=f)+(c/=f),r=(d/=h)+(u/=h))}return{top:a,left:d,bottom:l,right:r,width:u,height:c}}}function oe(e,t,o){for(var i=de(e,!0),n=te(e)[t];i;){var s=te(i)[o];if(!(\"top\"===o||\"left\"===o?n>=s:n<=s))return i;if(i===ee())break;i=de(i,!1)}return!1}function ie(e,t,o){for(var i=0,n=0,s=e.children;n<s.length;){if(\"none\"!==s[n].style.display&&s[n]!==ct.ghost&&s[n]!==ct.dragged&&Y(s[n],o.draggable,e,!1)){if(i===t)return s[n];i++}n++}return null}function ne(e,t){for(var o=e.lastElementChild;o&&(o===ct.ghost||\"none\"===V(o,\"display\")||t&&!q(o,t));)o=o.previousElementSibling;return o||null}function se(e,t){var o=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)\"TEMPLATE\"===e.nodeName.toUpperCase()||e===ct.clone||t&&!q(e,t)||o++;return o}function ae(e){var t=0,o=0,i=ee();if(e)do{var n=$(e),s=n.a,a=n.d;t+=e.scrollLeft*s,o+=e.scrollTop*a}while(e!==i&&(e=e.parentNode));return[t,o]}function de(e,t){if(!e||!e.getBoundingClientRect)return ee();var o=e,i=!1;do{if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var n=V(o);if(o.clientWidth<o.scrollWidth&&(\"auto\"==n.overflowX||\"scroll\"==n.overflowX)||o.clientHeight<o.scrollHeight&&(\"auto\"==n.overflowY||\"scroll\"==n.overflowY)){if(!o.getBoundingClientRect||o===document.body)return ee();if(i||t)return o;i=!0}}}while(o=o.parentNode);return ee()}function le(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 re(e,t){return function(){if(!J){var o=arguments,i=this;1===o.length?e.call(i,o[0]):e.apply(i,o),J=setTimeout((function(){J=void 0}),t)}}}function ce(e,t,o){e.scrollLeft+=t,e.scrollTop+=o}function ue(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 me=\"Sortable\"+(new Date).getTime();function pe(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if(\"none\"!==V(e,\"display\")&&e!==ct.ghost){t.push({target:e,rect:te(e)});var o=E({},t[t.length-1].rect);if(e.thisAnimationDuration){var i=$(e,!0);i&&(o.top-=i.f,o.left-=i.e)}e.fromRect=o}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.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}(t,{target:e}),1)},animateAll:function(o){var i=this;if(!this.options.animation)return clearTimeout(e),void(\"function\"==typeof o&&o());var n=!1,s=0;t.forEach((function(e){var t=0,o=e.target,a=o.fromRect,d=te(o),l=o.prevFromRect,r=o.prevToRect,c=e.rect,u=$(o,!0);u&&(d.top-=u.f,d.left-=u.e),o.toRect=d,o.thisAnimationDuration&&le(l,d)&&!le(a,d)&&(c.top-d.top)/(c.left-d.left)==(a.top-d.top)/(a.left-d.left)&&(t=function(e,t,o,i){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-o.top,2)+Math.pow(t.left-o.left,2))*i.animation}(c,l,r,i.options)),le(d,a)||(o.prevFromRect=a,o.prevToRect=d,t||(t=i.options.animation),i.animate(o,c,d,t)),t&&(n=!0,s=Math.max(s,t),clearTimeout(o.animationResetTimer),o.animationResetTimer=setTimeout((function(){o.animationTime=0,o.prevFromRect=null,o.fromRect=null,o.prevToRect=null,o.thisAnimationDuration=null}),t),o.thisAnimationDuration=t)})),clearTimeout(e),n?e=setTimeout((function(){\"function\"==typeof o&&o()}),s):\"function\"==typeof o&&o(),t=[]},animate:function(e,t,o,i){if(i){V(e,\"transition\",\"\"),V(e,\"transform\",\"\");var n=$(this.el),s=n&&n.a,a=n&&n.d,d=(t.left-o.left)/(s||1),l=(t.top-o.top)/(a||1);e.animatingX=!!d,e.animatingY=!!l,V(e,\"transform\",\"translate3d(\"+d+\"px,\"+l+\"px,0)\"),function(e){e.offsetWidth}(e),V(e,\"transition\",\"transform \"+i+\"ms\"+(this.options.easing?\" \"+this.options.easing:\"\")),V(e,\"transform\",\"translate3d(0,0,0)\"),\"number\"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){V(e,\"transition\",\"\"),V(e,\"transform\",\"\"),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),i)}}}}var he=[],fe={initializeByDefault:!0},ve={mount:function(e){for(var t in fe)!fe.hasOwnProperty(t)||t in e||(e[t]=fe[t]);he.push(e)},pluginEvent:function(e,t,o){var i=this;this.eventCanceled=!1,o.cancel=function(){i.eventCanceled=!0};var n=e+\"Global\";he.forEach((function(i){t[i.pluginName]&&(t[i.pluginName][n]&&t[i.pluginName][n](E({sortable:t},o)),t.options[i.pluginName]&&t[i.pluginName][e]&&t[i.pluginName][e](E({sortable:t},o)))}))},initializePlugins:function(e,t,o,i){for(var n in he.forEach((function(i){var n=i.pluginName;if(e.options[n]||i.initializeByDefault){var s=new i(e,t,e.options);s.sortable=e,s.options=e.options,e[n]=s,P(o,s.defaults)}})),e.options)if(e.options.hasOwnProperty(n)){var s=this.modifyOption(e,n,e.options[n]);void 0!==s&&(e.options[n]=s)}},getEventProperties:function(e,t){var o={};return he.forEach((function(i){\"function\"==typeof i.eventProperties&&P(o,i.eventProperties.call(t[i.pluginName],e))})),o},modifyOption:function(e,t,o){var i;return he.forEach((function(n){e[n.pluginName]&&n.optionListeners&&\"function\"==typeof n.optionListeners[t]&&(i=n.optionListeners[t].call(e[n.pluginName],o))})),i}};function ge(e){var t=e.sortable,o=e.rootEl,i=e.name,n=e.targetEl,s=e.cloneEl,a=e.toEl,d=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[me]){var f,v=t.options,g=\"on\"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||I||M?(f=document.createEvent(\"Event\")).initEvent(i,!0,!0):f=new CustomEvent(i,{bubbles:!0,cancelable:!0}),f.to=a||o,f.from=d||o,f.item=n||o,f.clone=s,f.oldIndex=l,f.newIndex=r,f.oldDraggableIndex=c,f.newDraggableIndex=u,f.originalEvent=m,f.pullMode=p?p.lastPutMode:void 0;var y=E({},h,ve.getEventProperties(i,t));for(var w in y)f[w]=y[w];o&&o.dispatchEvent(f),v[g]&&v[g].call(t,f)}}var ye=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.evt,n=O(o,[\"evt\"]);ve.pluginEvent.bind(ct)(e,t,E({dragEl:be,parentEl:je,ghostEl:Qe,rootEl:_e,nextEl:Ce,lastDownEl:ke,cloneEl:De,cloneHidden:Le,dragStarted:We,putSortable:Ee,activeSortable:ct.active,originalEvent:i,oldIndex:xe,oldDraggableIndex:Se,newIndex:Be,newDraggableIndex:Ae,hideGhostForTarget:at,unhideGhostForTarget:dt,cloneNowHidden:function(){Le=!0},cloneNowShown:function(){Le=!1},dispatchSortableEvent:function(e){we({sortable:t,name:e,originalEvent:i})}},n))};function we(e){ge(E({putSortable:Ee,cloneEl:De,targetEl:be,rootEl:_e,oldIndex:xe,oldDraggableIndex:Se,newIndex:Be,newDraggableIndex:Ae},e))}var be,je,Qe,_e,Ce,ke,De,Le,xe,Be,Se,Ae,Pe,Ee,Oe,Te,Ie,Me,Ne,Fe,We,Ue,He,ze,Re,qe=!1,Xe=!1,Ye=[],Je=!1,Ge=!1,Ke=[],Ve=!1,$e=[],Ze=\"undefined\"!=typeof document,et=W,tt=M||I?\"cssFloat\":\"float\",ot=Ze&&!U&&!W&&\"draggable\"in document.createElement(\"div\"),it=function(){if(Ze){if(I)return!1;var e=document.createElement(\"x\");return e.style.cssText=\"pointer-events:auto\",\"auto\"===e.style.pointerEvents}}(),nt=function(e,t){var o=V(e),i=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),n=ie(e,0,t),s=ie(e,1,t),a=n&&V(n),d=s&&V(s),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+te(n).width,r=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+te(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(n&&a.float&&\"none\"!==a.float){var c=\"left\"===a.float?\"left\":\"right\";return!s||\"both\"!==d.clear&&d.clear!==c?\"horizontal\":\"vertical\"}return n&&(\"block\"===a.display||\"flex\"===a.display||\"table\"===a.display||\"grid\"===a.display||l>=i&&\"none\"===o[tt]||s&&\"none\"===o[tt]&&l+r>i)?\"vertical\":\"horizontal\"},st=function(e){function t(e,o){return function(i,n,s,a){var d=i.options.group.name&&n.options.group.name&&i.options.group.name===n.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,n,s,a),o)(i,n,s,a);var l=(o?i:n).options.group.name;return!0===e||\"string\"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var o={},i=e.group;i&&\"object\"==S(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},at=function(){!it&&Qe&&V(Qe,\"display\",\"none\")},dt=function(){!it&&Qe&&V(Qe,\"display\",\"\")};Ze&&document.addEventListener(\"click\",(function(e){if(Xe)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Xe=!1,!1}),!0);var lt=function(e){if(be){e=e.touches?e.touches[0]:e;var t=(n=e.clientX,s=e.clientY,Ye.some((function(e){if(!ne(e)){var t=te(e),o=e[me].options.emptyInsertThreshold,i=n>=t.left-o&&n<=t.right+o,d=s>=t.top-o&&s<=t.bottom+o;return o&&i&&d?a=e:void 0}})),a);if(t){var o={};for(var i in e)e.hasOwnProperty(i)&&(o[i]=e[i]);o.target=o.rootEl=t,o.preventDefault=void 0,o.stopPropagation=void 0,t[me]._onDragOver(o)}}var n,s,a},rt=function(e){be&&be.parentNode[me]._isOutsideThisEl(e.target)};function ct(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=P({},t),e[me]=this;var o={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 nt(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!==ct.supportPointer&&\"PointerEvent\"in window,emptyInsertThreshold:5};for(var i in ve.initializePlugins(this,e,o),o)!(i in t)&&(t[i]=o[i]);for(var n in st(t),this)\"_\"===n.charAt(0)&&\"function\"==typeof this[n]&&(this[n]=this[n].bind(this));this.nativeDraggable=!t.forceFallback&&ot,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?z(e,\"pointerdown\",this._onTapStart):(z(e,\"mousedown\",this._onTapStart),z(e,\"touchstart\",this._onTapStart)),this.nativeDraggable&&(z(e,\"dragover\",this),z(e,\"dragenter\",this)),Ye.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),P(this,pe())}function ut(e,t,o,i,n,s,a,d){var l,r,c=e[me],u=c.options.onMove;return!window.CustomEvent||I||M?(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=n||t,l.relatedRect=s||te(t),l.willInsertAfter=d,l.originalEvent=a,e.dispatchEvent(l),u&&(r=u.call(c,l,a)),r}function mt(e){e.draggable=!1}function pt(){Ve=!1}function ht(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 ft(e){return setTimeout(e,0)}function vt(e){return clearTimeout(e)}ct.prototype={constructor:ct,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Ue=null)},_getDirection:function(e,t){return\"function\"==typeof this.options.direction?this.options.direction.call(this,e,t,be):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,o=this.el,i=this.options,n=i.preventOnFilter,s=e.type,a=e.touches&&e.touches[0]||e.pointerType&&\"touch\"===e.pointerType&&e,d=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||d,r=i.filter;if(function(e){$e.length=0;var t=e.getElementsByTagName(\"input\"),o=t.length;for(;o--;){var i=t[o];i.checked&&$e.push(i)}}(o),!be&&!(/mousedown|pointerdown/.test(s)&&0!==e.button||i.disabled||l.isContentEditable||(d=Y(d,i.draggable,o,!1))&&d.animated||ke===d)){if(xe=se(d),Se=se(d,i.draggable),\"function\"==typeof r){if(r.call(this,e,d,this))return we({sortable:t,rootEl:l,name:\"filter\",targetEl:d,toEl:o,fromEl:o}),ye(\"filter\",t,{evt:e}),void(n&&e.cancelable&&e.preventDefault())}else if(r&&(r=r.split(\",\").some((function(i){if(i=Y(l,i.trim(),o,!1))return we({sortable:t,rootEl:i,name:\"filter\",targetEl:d,fromEl:o,toEl:o}),ye(\"filter\",t,{evt:e}),!0}))))return void(n&&e.cancelable&&e.preventDefault());i.handle&&!Y(l,i.handle,o,!1)||this._prepareDragStart(e,a,d)}}},_prepareDragStart:function(e,t,o){var i,n=this,s=n.el,a=n.options,d=s.ownerDocument;if(o&&!be&&o.parentNode===s){var l=te(o);if(_e=s,je=(be=o).parentNode,Ce=be.nextSibling,ke=o,Pe=a.group,ct.dragged=be,Oe={target:be,clientX:(t||e).clientX,clientY:(t||e).clientY},Ne=Oe.clientX-l.left,Fe=Oe.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,be.style[\"will-change\"]=\"all\",i=function(){ye(\"delayEnded\",n,{evt:e}),ct.eventCanceled?n._onDrop():(n._disableDelayedDragEvents(),!N&&n.nativeDraggable&&(be.draggable=!0),n._triggerDragStart(e,t),we({sortable:n,name:\"choose\",originalEvent:e}),K(be,a.chosenClass,!0))},a.ignore.split(\",\").forEach((function(e){Z(be,e.trim(),mt)})),z(d,\"dragover\",lt),z(d,\"mousemove\",lt),z(d,\"touchmove\",lt),z(d,\"mouseup\",n._onDrop),z(d,\"touchend\",n._onDrop),z(d,\"touchcancel\",n._onDrop),N&&this.nativeDraggable&&(this.options.touchStartThreshold=4,be.draggable=!0),ye(\"delayStart\",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(M||I))i();else{if(ct.eventCanceled)return void this._onDrop();z(d,\"mouseup\",n._disableDelayedDrag),z(d,\"touchend\",n._disableDelayedDrag),z(d,\"touchcancel\",n._disableDelayedDrag),z(d,\"mousemove\",n._delayedDragTouchMoveHandler),z(d,\"touchmove\",n._delayedDragTouchMoveHandler),a.supportPointer&&z(d,\"pointermove\",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(i,a.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(){be&&mt(be),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;R(e,\"mouseup\",this._disableDelayedDrag),R(e,\"touchend\",this._disableDelayedDrag),R(e,\"touchcancel\",this._disableDelayedDrag),R(e,\"mousemove\",this._delayedDragTouchMoveHandler),R(e,\"touchmove\",this._delayedDragTouchMoveHandler),R(e,\"pointermove\",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||\"touch\"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?z(document,\"pointermove\",this._onTouchMove):z(document,t?\"touchmove\":\"mousemove\",this._onTouchMove):(z(be,\"dragend\",this),z(_e,\"dragstart\",this._onDragStart));try{document.selection?ft((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(qe=!1,_e&&be){ye(\"dragStarted\",this,{evt:t}),this.nativeDraggable&&z(document,\"dragover\",rt);var o=this.options;!e&&K(be,o.dragClass,!1),K(be,o.ghostClass,!0),ct.active=this,e&&this._appendGhost(),we({sortable:this,name:\"start\",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Te){this._lastX=Te.clientX,this._lastY=Te.clientY,at();for(var e=document.elementFromPoint(Te.clientX,Te.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Te.clientX,Te.clientY))!==t;)t=e;if(be.parentNode[me]._isOutsideThisEl(e),t)do{if(t[me]){if(t[me]._onDragOver({clientX:Te.clientX,clientY:Te.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);dt()}},_onTouchMove:function(e){if(Oe){var t=this.options,o=t.fallbackTolerance,i=t.fallbackOffset,n=e.touches?e.touches[0]:e,s=Qe&&$(Qe),a=Qe&&s&&s.a,d=Qe&&s&&s.d,l=et&&Re&&ae(Re),r=(n.clientX-Oe.clientX+i.x)/(a||1)+(l?l[0]-Ke[0]:0)/(a||1),c=(n.clientY-Oe.clientY+i.y)/(d||1)+(l?l[1]-Ke[1]:0)/(d||1);if(!ct.active&&!qe){if(o&&Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))<o)return;this._onDragStart(e,!0)}if(Qe){s?(s.e+=r-(Ie||0),s.f+=c-(Me||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,\")\");V(Qe,\"webkitTransform\",u),V(Qe,\"mozTransform\",u),V(Qe,\"msTransform\",u),V(Qe,\"transform\",u),Ie=r,Me=c,Te=n}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Qe){var e=this.options.fallbackOnBody?document.body:_e,t=te(be,!0,et,!0,e),o=this.options;if(et){for(Re=e;\"static\"===V(Re,\"position\")&&\"none\"===V(Re,\"transform\")&&Re!==document;)Re=Re.parentNode;Re!==document.body&&Re!==document.documentElement?(Re===document&&(Re=ee()),t.top+=Re.scrollTop,t.left+=Re.scrollLeft):Re=ee(),Ke=ae(Re)}K(Qe=be.cloneNode(!0),o.ghostClass,!1),K(Qe,o.fallbackClass,!0),K(Qe,o.dragClass,!0),V(Qe,\"transition\",\"\"),V(Qe,\"transform\",\"\"),V(Qe,\"box-sizing\",\"border-box\"),V(Qe,\"margin\",0),V(Qe,\"top\",t.top),V(Qe,\"left\",t.left),V(Qe,\"width\",t.width),V(Qe,\"height\",t.height),V(Qe,\"opacity\",\"0.8\"),V(Qe,\"position\",et?\"absolute\":\"fixed\"),V(Qe,\"zIndex\",\"100000\"),V(Qe,\"pointerEvents\",\"none\"),ct.ghost=Qe,e.appendChild(Qe),V(Qe,\"transform-origin\",Ne/parseInt(Qe.style.width)*100+\"% \"+Fe/parseInt(Qe.style.height)*100+\"%\")}},_onDragStart:function(e,t){var o=this,i=e.dataTransfer,n=o.options;ye(\"dragStart\",this,{evt:e}),ct.eventCanceled?this._onDrop():(ye(\"setupClone\",this),ct.eventCanceled||((De=ue(be)).draggable=!1,De.style[\"will-change\"]=\"\",this._hideClone(),K(De,this.options.chosenClass,!1),ct.clone=De),o.cloneId=ft((function(){ye(\"clone\",o),ct.eventCanceled||(o.options.removeCloneOnHide||_e.insertBefore(De,be),o._hideClone(),we({sortable:o,name:\"clone\"}))})),!t&&K(be,n.dragClass,!0),t?(Xe=!0,o._loopId=setInterval(o._emulateDragOver,50)):(R(document,\"mouseup\",o._onDrop),R(document,\"touchend\",o._onDrop),R(document,\"touchcancel\",o._onDrop),i&&(i.effectAllowed=\"move\",n.setData&&n.setData.call(o,i,be)),z(document,\"drop\",o),V(be,\"transform\",\"translateZ(0)\")),qe=!0,o._dragStartId=ft(o._dragStarted.bind(o,t,e)),z(document,\"selectstart\",o),We=!0,F&&V(document.body,\"user-select\",\"none\"))},_onDragOver:function(e){var t,o,i,n,s=this.el,a=e.target,d=this.options,l=d.group,r=ct.active,c=Pe===l,u=d.sort,m=Ee||r,p=this,h=!1;if(!Ve){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=Y(a,d.draggable,s,!0),x(\"dragOver\"),ct.eventCanceled)return h;if(be.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return S(!1);if(Xe=!1,r&&!d.disabled&&(c?u||(i=!_e.contains(be)):Ee===this||(this.lastPutMode=Pe.checkPull(this,r,be,e))&&l.checkPut(this,r,be,e))){if(n=\"vertical\"===this._getDirection(e,a),t=te(be),x(\"dragOverValid\"),ct.eventCanceled)return h;if(i)return je=_e,B(),this._hideClone(),x(\"revert\"),ct.eventCanceled||(Ce?_e.insertBefore(be,Ce):_e.appendChild(be)),S(!0);var f=ne(s,d.draggable);if(!f||function(e,t,o){var i=te(ne(o.el,o.options.draggable));return t?e.clientX>i.right+10||e.clientX<=i.right&&e.clientY>i.bottom&&e.clientX>=i.left:e.clientX>i.right&&e.clientY>i.top||e.clientX<=i.right&&e.clientY>i.bottom+10}(e,n,this)&&!f.animated){if(f===be)return S(!1);if(f&&s===e.target&&(a=f),a&&(o=te(a)),!1!==ut(_e,s,be,t,a,o,e,!!a))return B(),s.appendChild(be),je=s,A(),S(!0)}else if(a.parentNode===s){o=te(a);var v,g,y,w=be.parentNode!==s,b=!function(e,t,o){var i=o?e.left:e.top,n=o?e.right:e.bottom,s=o?e.width:e.height,a=o?t.left:t.top,d=o?t.right:t.bottom,l=o?t.width:t.height;return i===a||n===d||i+s/2===a+l/2}(be.animated&&be.toRect||t,a.animated&&a.toRect||o,n),j=n?\"top\":\"left\",Q=oe(a,\"top\",\"top\")||oe(be,\"top\",\"top\"),_=Q?Q.scrollTop:void 0;if(Ue!==a&&(g=o[j],Je=!1,Ge=!b&&d.invertSwap||w),0!==(v=function(e,t,o,i,n,s,a,d){var l=i?e.clientY:e.clientX,r=i?o.height:o.width,c=i?o.top:o.left,u=i?o.bottom:o.right,m=!1;if(!a)if(d&&ze<r*n){if(!Je&&(1===He?l>c+r*s/2:l<u-r*s/2)&&(Je=!0),Je)m=!0;else if(1===He?l<c+ze:l>u-ze)return-He}else if(l>c+r*(1-n)/2&&l<u-r*(1-n)/2)return function(e){return se(be)<se(e)?1:-1}(t);if((m=m||a)&&(l<c+r*s/2||l>u-r*s/2))return l>c+r/2?1:-1;return 0}(e,a,o,n,b?1:d.swapThreshold,null==d.invertedSwapThreshold?d.swapThreshold:d.invertedSwapThreshold,Ge,Ue===a))){var C=se(be);do{C-=v,y=je.children[C]}while(y&&(\"none\"===V(y,\"display\")||y===Qe))}if(0===v||y===a)return S(!1);Ue=a,He=v;var k=a.nextElementSibling,D=!1,L=ut(_e,s,be,t,a,o,e,D=1===v);if(!1!==L)return 1!==L&&-1!==L||(D=1===L),Ve=!0,setTimeout(pt,30),B(),D&&!k?s.appendChild(be):a.parentNode.insertBefore(be,D?k:a),Q&&ce(Q,0,_-Q.scrollTop),je=be.parentNode,void 0===g||Ge||(ze=Math.abs(g-te(a)[j])),A(),S(!0)}if(s.contains(be))return S(!1)}return!1}function x(d,l){ye(d,p,E({evt:e,isOwner:c,axis:n?\"vertical\":\"horizontal\",revert:i,dragRect:t,targetRect:o,canSort:u,fromSortable:m,target:a,completed:S,onMove:function(o,i){return ut(_e,s,be,t,o,te(o),e,i)},changed:A},l))}function B(){x(\"dragOverAnimationCapture\"),p.captureAnimationState(),p!==m&&m.captureAnimationState()}function S(t){return x(\"dragOverCompleted\",{insertion:t}),t&&(c?r._hideClone():r._showClone(p),p!==m&&(K(be,Ee?Ee.options.ghostClass:r.options.ghostClass,!1),K(be,d.ghostClass,!0)),Ee!==p&&p!==ct.active?Ee=p:p===ct.active&&Ee&&(Ee=null),m===p&&(p._ignoreWhileAnimating=a),p.animateAll((function(){x(\"dragOverAnimationComplete\"),p._ignoreWhileAnimating=null})),p!==m&&(m.animateAll(),m._ignoreWhileAnimating=null)),(a===be&&!be.animated||a===s&&!a.animated)&&(Ue=null),d.dragoverBubble||e.rootEl||a===document||(be.parentNode[me]._isOutsideThisEl(e.target),!t&&lt(e)),!d.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function A(){Be=se(be),Ae=se(be,d.draggable),we({sortable:p,name:\"change\",toEl:s,newIndex:Be,newDraggableIndex:Ae,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){R(document,\"mousemove\",this._onTouchMove),R(document,\"touchmove\",this._onTouchMove),R(document,\"pointermove\",this._onTouchMove),R(document,\"dragover\",lt),R(document,\"mousemove\",lt),R(document,\"touchmove\",lt)},_offUpEvents:function(){var e=this.el.ownerDocument;R(e,\"mouseup\",this._onDrop),R(e,\"touchend\",this._onDrop),R(e,\"pointerup\",this._onDrop),R(e,\"touchcancel\",this._onDrop),R(document,\"selectstart\",this)},_onDrop:function(e){var t=this.el,o=this.options;Be=se(be),Ae=se(be,o.draggable),ye(\"drop\",this,{evt:e}),je=be&&be.parentNode,Be=se(be),Ae=se(be,o.draggable),ct.eventCanceled?this._nulling():(qe=!1,Ge=!1,Je=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),vt(this.cloneId),vt(this._dragStartId),this.nativeDraggable&&(R(document,\"drop\",this),R(t,\"dragstart\",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),F&&V(document.body,\"user-select\",\"\"),e&&(We&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),Qe&&Qe.parentNode&&Qe.parentNode.removeChild(Qe),(_e===je||Ee&&\"clone\"!==Ee.lastPutMode)&&De&&De.parentNode&&De.parentNode.removeChild(De),be&&(this.nativeDraggable&&R(be,\"dragend\",this),mt(be),be.style[\"will-change\"]=\"\",We&&!qe&&K(be,Ee?Ee.options.ghostClass:this.options.ghostClass,!1),K(be,this.options.chosenClass,!1),we({sortable:this,name:\"unchoose\",toEl:je,newIndex:null,newDraggableIndex:null,originalEvent:e}),_e!==je?(Be>=0&&(we({rootEl:je,name:\"add\",toEl:je,fromEl:_e,originalEvent:e}),we({sortable:this,name:\"remove\",toEl:je,originalEvent:e}),we({rootEl:je,name:\"sort\",toEl:je,fromEl:_e,originalEvent:e}),we({sortable:this,name:\"sort\",toEl:je,originalEvent:e})),Ee&&Ee.save()):Be!==xe&&Be>=0&&(we({sortable:this,name:\"update\",toEl:je,originalEvent:e}),we({sortable:this,name:\"sort\",toEl:je,originalEvent:e})),ct.active&&(null!=Be&&-1!==Be||(Be=xe,Ae=Se),we({sortable:this,name:\"end\",toEl:je,originalEvent:e}),this.save()))),this._nulling())},_nulling:function(){ye(\"nulling\",this),_e=be=je=Qe=Ce=De=ke=Le=Oe=Te=We=Be=Ae=xe=Se=Ue=He=Ee=Pe=ct.dragged=ct.ghost=ct.clone=ct.active=null,$e.forEach((function(e){e.checked=!0})),$e.length=Ie=Me=0},handleEvent:function(e){switch(e.type){case\"drop\":case\"dragend\":this._onDrop(e);break;case\"dragenter\":case\"dragover\":be&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect=\"move\");e.cancelable&&e.preventDefault()}(e));break;case\"selectstart\":e.preventDefault()}},toArray:function(){for(var e,t=[],o=this.el.children,i=0,n=o.length,s=this.options;i<n;i++)Y(e=o[i],s.draggable,this.el,!1)&&t.push(e.getAttribute(s.dataIdAttr)||ht(e));return t},sort:function(e){var t={},o=this.el;this.toArray().forEach((function(e,i){var n=o.children[i];Y(n,this.options.draggable,o,!1)&&(t[e]=n)}),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 Y(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=ve.modifyOption(this,e,t);o[e]=void 0!==i?i:t,\"group\"===e&&st(o)},destroy:function(){ye(\"destroy\",this);var e=this.el;e[me]=null,R(e,\"mousedown\",this._onTapStart),R(e,\"touchstart\",this._onTapStart),R(e,\"pointerdown\",this._onTapStart),this.nativeDraggable&&(R(e,\"dragover\",this),R(e,\"dragenter\",this)),Array.prototype.forEach.call(e.querySelectorAll(\"[draggable]\"),(function(e){e.removeAttribute(\"draggable\")})),this._onDrop(),Ye.splice(Ye.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Le){if(ye(\"hideClone\",this),ct.eventCanceled)return;V(De,\"display\",\"none\"),this.options.removeCloneOnHide&&De.parentNode&&De.parentNode.removeChild(De),Le=!0}},_showClone:function(e){if(\"clone\"===e.lastPutMode){if(Le){if(ye(\"showClone\",this),ct.eventCanceled)return;_e.contains(be)&&!this.options.group.revertClone?_e.insertBefore(De,be):Ce?_e.insertBefore(De,Ce):_e.appendChild(De),this.options.group.revertClone&&this.animate(be,De),V(De,\"display\",\"\"),Le=!1}}else this._hideClone()}},Ze&&z(document,\"touchmove\",(function(e){(ct.active||qe)&&e.cancelable&&e.preventDefault()})),ct.utils={on:z,off:R,css:V,find:Z,is:function(e,t){return!!Y(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:re,closest:Y,toggleClass:K,clone:ue,index:se,nextTick:ft,cancelNextTick:vt,detectDirection:nt,getChild:ie},ct.get=function(e){return e[me]},ct.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&&(ct.utils=E({},ct.utils,e.utils)),ve.mount(e)}))},ct.create=function(e,t){return new ct(e,t)},ct.version=\"1.10.1\";var gt,yt,wt,bt,jt,Qt,_t=[],Ct=!1;function kt(){_t.forEach((function(e){clearInterval(e.pid)})),_t=[]}function Dt(){clearInterval(Qt)}var Lt=re((function(e,t,o,i){if(t.scroll){var n,s=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,d=t.scrollSensitivity,l=t.scrollSpeed,r=ee(),c=!1;yt!==o&&(yt=o,kt(),gt=t.scroll,n=t.scrollFn,!0===gt&&(gt=de(o,!0)));var u=0,m=gt;do{var p=m,h=te(p),f=h.top,v=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=V(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-s)<=d&&D+w<_)-(Math.abs(g-s)<=d&&!!D),B=Q&&(Math.abs(v-a)<=d&&L+b<C)-(Math.abs(f-a)<=d&&!!L);if(!_t[u])for(var S=0;S<=u;S++)_t[S]||(_t[S]={});_t[u].vx==x&&_t[u].vy==B&&_t[u].el===p||(_t[u].el=p,_t[u].vx=x,_t[u].vy=B,clearInterval(_t[u].pid),0==x&&0==B||(c=!0,_t[u].pid=setInterval(function(){i&&0===this.layer&&ct.active._onTouchMove(jt);var t=_t[this.layer].vy?_t[this.layer].vy*l:0,o=_t[this.layer].vx?_t[this.layer].vx*l:0;\"function\"==typeof n&&\"continue\"!==n.call(ct.dragged.parentNode[me],o,t,e,jt,_t[this.layer].el)||ce(_t[this.layer].el,o,t)}.bind({layer:u}),24))),u++}while(t.bubbleScroll&&m!==r&&(m=de(m,!1)));Ct=c}}),30),xt=function(e){var t=e.originalEvent,o=e.putSortable,i=e.dragEl,n=e.activeSortable,s=e.dispatchSortableEvent,a=e.hideGhostForTarget,d=e.unhideGhostForTarget;if(t){var l=o||n;a();var r=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(r.clientX,r.clientY);d(),l&&!l.el.contains(c)&&(s(\"spill\"),this.onSpill({dragEl:i,putSortable:o}))}};function Bt(){}function St(){}Bt.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=ie(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:xt},P(Bt,{pluginName:\"revertOnSpill\"}),St.prototype={onSpill:function(e){var t=e.dragEl,o=e.putSortable||this.sortable;o.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),o.animateAll()},drop:xt},P(St,{pluginName:\"removeOnSpill\"});ct.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?z(document,\"dragover\",this._handleAutoScroll):this.options.supportPointer?z(document,\"pointermove\",this._handleFallbackAutoScroll):t.touches?z(document,\"touchmove\",this._handleFallbackAutoScroll):z(document,\"mousemove\",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?R(document,\"dragover\",this._handleAutoScroll):(R(document,\"pointermove\",this._handleFallbackAutoScroll),R(document,\"touchmove\",this._handleFallbackAutoScroll),R(document,\"mousemove\",this._handleFallbackAutoScroll)),Dt(),kt(),clearTimeout(J),J=void 0},nulling:function(){jt=yt=gt=Ct=Qt=wt=bt=null,_t.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var o=this,i=(e.touches?e.touches[0]:e).clientX,n=(e.touches?e.touches[0]:e).clientY,s=document.elementFromPoint(i,n);if(jt=e,t||M||I||F){Lt(e,this.options,s,t);var a=de(s,!0);!Ct||Qt&&i===wt&&n===bt||(Qt&&Dt(),Qt=setInterval((function(){var s=de(document.elementFromPoint(i,n),!0);s!==a&&(a=s,kt()),Lt(e,o.options,s,t)}),10),wt=i,bt=n)}else{if(!this.options.bubbleScroll||de(s,!0)===ee())return void kt();Lt(e,this.options,de(s,!1),!1)}}},P(e,{pluginName:\"scroll\",initializeByDefault:!0})}),ct.mount(St,Bt);var At=ct;window.onerror=function(e,t,o,i){Nt(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\")||n({title:'<a href=\"https://livecomposerplugin.com/support/\" target=\"_blank\"><span class=\"dslca-icon dslc-icon-comment\"></span> &nbsp; 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){Nt(e,t,o,i)},t=document.getElementById(\"dslca-js-errors-report\"),null!==(o=localStorage.getItem(\"js_errors_report\"))&&(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;if(jQuery(\".dslca-module-being-edited\",LiveComposer.Builder.PreviewAreaDocument).length?(e=jQuery(\".dslca-module-being-edited\",LiveComposer.Builder.PreviewAreaDocument),\"#5890e5\"):jQuery(\".dslca-modules-section-being-edited\",LiveComposer.Builder.PreviewAreaDocument).length&&(e=jQuery(\".dslca-modules-section-being-edited\",LiveComposer.Builder.PreviewAreaDocument),\"#eabba9\"),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(),function(){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(),function(){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(),Et(\".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\");Et(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\")?n({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){e.stopPropagation(),jQuery(\".dslca-section-title-filter\",this).length&&(!function(){window.dslcDebug&&console.log(\"dslc_generate_filters\");var e,t=[],o='<a html=\"#\" data-origin=\"\">Show All</a>';jQuery(\".dslca-section:visible .dslca-origin\").each((function(){e=jQuery(this),-1==jQuery.inArray(e.data(\"origin\"),t)&&(t.push(e.data(\"origin\")),o+='<a href=\"#\" data-origin=\"'+e.data(\"origin\")+'\">'+e.data(\"origin\")+\"</a>\")})),jQuery(\".dslca-section:visible .dslca-section-title-filter-options\").html(o).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=jQuery(this).data(\"origin\"),o=jQuery(this).closest(\".dslca-section\");o.hasClass(\"dslca-templates-load\"),jQuery(\".dslca-section-title-filter-curr\",o).text(jQuery(this).text()),jQuery(\".dslca-section-scroller-inner\").css({left:0}),function(e,t){window.dslcDebug&&console.log(\"dslc_filter_origin\");jQuery(\".dslca-origin\",t).attr(\"data-display-module\",\"false\"),jQuery('.dslca-origin[data-origin=\"'+e+'\"]',t).attr(\"data-display-module\",\"true\"),\"\"==e&&(jQuery(\".dslca-origin\",t).attr(\"data-display-module\",\"true\"),jQuery(\".dslca-origin.dslca-exclude\",t).attr(\"data-display-module\",\"false\"))}(t,o),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\")};var Pt=function(){window.dslcDebug&&console.log(\"hidePublishButton\"),jQuery(\".dslca-save-composer\").hide(),jQuery(\".dslca-save-draft-composer\").hide()},Et=function(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(\"\"),Q(),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 Ot(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,n=\"\";\"tablet_responsive\"===t.data(\"tab\")?n=\"body.dslc-res-tablet \":\"phone_responsive\"===t.data(\"tab\")&&(n=\"body.dslc-res-phone \");var s=o.data(\"affect-on-change-el\");if(void 0!==s){var a=s.split(\",\");s=\"\";for(var d=0;d<a.length;d++)d>0&&(s+=\", \"),s+=n+\"#\"+i+\" \"+a[d];var l,r=o.data(\"affect-on-change-rule\").replace(/ /g,\"\").split(\",\"),c=o.data(\"ext\");if(t.toggleClass(\"dslca-option-off\"),t.hasClass(\"dslca-option-off\")){l=It(e),o.data(\"val-bckp\",l);for(d=0;d<r.length;d++)jQuery(s,LiveComposer.Builder.PreviewAreaDocument).css(r[d],\"\"),Tt(s,r[d],i);o.val(\"\").trigger(\"change\")}else{o.val(o.data(\"val-bckp\")).trigger(\"change\"),l=function(e,t){if(\"\"===e||null===e)return e;-1==e.indexOf(t)&&(e+=t);return e}(l=It(e),c||\"\");for(d=0;d<r.length;d++){var u=s+\"{\"+r[d]+\": \"+l+\"}\";LiveComposer.Builder.Helpers.processInlineStyleTag({context:t,rule:r[d],elems:s.replace(new RegExp(\"#\"+i,\"gi\"),\"\").trim(),styleContent:u})}}}}}function Tt(e,t,o){var i,n=\"css-for-\"+o,s=document.getElementById(\"page-builder-frame\").contentWindow.document.getElementById(n);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 It(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(),Ot(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\")&&Ot(jQuery(e.target).closest(\".dslca-module-edit-option\").find(\".dslca-module-edit-field\").data(\"id\"))}))}));var Mt=function(){jQuery([document,LiveComposer.Builder.PreviewAreaWindow.document]).unbind(\"keydown\").bind(\"keydown\",(function(e){var t;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(),n({title:DSLCString.str_refresh_title,content:DSLCString.str_refresh_descr,confirm:function(){window.location.reload()}}))),function(e){if(83==e.which&&(e.metaKey||e.ctrlKey)&&\"block\"==jQuery(\".dslca-save-composer-hook\").css(\"display\"))dslc_save_composer(),e.preventDefault()}(e),function(e){(e.metaKey||e.ctrlKey)&&LiveComposer.Builder.PreviewAreaWindow.document.querySelector(\"body\").classList.add(\"key-press-cmd\")}(e)})),jQuery([document,LiveComposer.Builder.PreviewAreaWindow.document]).unbind(\"keyup\").bind(\"keyup\",(function(e){\"Meta\"===e.key&&LiveComposer.Builder.PreviewAreaWindow.document.querySelector(\"body\").classList.remove(\"key-press-cmd\")}))};function Nt(e,t,o,i){var n=\"JavaScript error detected in a third-party plugin\";null!=t.match(\"wp-content/plugins/live-composer-page-builder/js\")&&(n=\"Live Composer returned JS error\");var s=\"\";s+='<br /><strong style=\"color:#E55F5F;\">'+n+\"</strong><br />\",s+=e+'<br /> File \"'+t+'\", line '+o+\", char \"+i+\"<br />\",\"undefined\"!=typeof Storage&&localStorage.setItem(\"js_errors_report\",s)}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\"),n=(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\">'+n+\"</a>\",void 0!==s&&(t+=' <span class=\"dslc-hf-block-overlay-text\">'+s+\"</span>\"),t+=\"</div>\";var a=document.createElement(\"div\");a.innerHTML=t,o.append(a)}))}));var Ft={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:\"normal\",autoplay:!0,timelineOffset:0},Wt={duration:1e3,delay:0,endDelay:0,easing:\"easeOutElastic(1, .5)\",round:0},Ut=[\"translateX\",\"translateY\",\"translateZ\",\"rotate\",\"rotateX\",\"rotateY\",\"rotateZ\",\"scale\",\"scaleX\",\"scaleY\",\"scaleZ\",\"skew\",\"skewX\",\"skewY\",\"perspective\"],Ht={CSS:{},springs:{}};function zt(e,t,o){return Math.min(Math.max(e,t),o)}function Rt(e,t){return e.indexOf(t)>-1}function qt(e,t){return e.apply(null,t)}var Xt={arr:function(e){return Array.isArray(e)},obj:function(e){return Rt(Object.prototype.toString.call(e),\"Object\")},pth:function(e){return Xt.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||Xt.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 Xt.hex(e)||Xt.rgb(e)||Xt.hsl(e)},key:function(e){return!Ft.hasOwnProperty(e)&&!Wt.hasOwnProperty(e)&&\"targets\"!==e&&\"keyframes\"!==e}};function Yt(e){var t=/\\(([^)]+)\\)/.exec(e);return t?t[1].split(\",\").map((function(e){return parseFloat(e)})):[]}function Jt(e,t){var o=Yt(e),i=zt(Xt.und(o[0])?1:o[0],.1,100),n=zt(Xt.und(o[1])?100:o[1],.1,100),s=zt(Xt.und(o[2])?10:o[2],.1,100),a=zt(Xt.und(o[3])?0:o[3],.1,100),d=Math.sqrt(n/i),l=s/(2*Math.sqrt(n*i)),r=l<1?d*Math.sqrt(1-l*l):0,c=1,u=l<1?(l*d-a)/r:-a+d;function m(e){var o=t?t*e/1e3:e;return o=l<1?Math.exp(-o*l*d)*(c*Math.cos(r*o)+u*Math.sin(r*o)):(c+u*o)*Math.exp(-o*d),0===e||1===e?e:1-o}return t?m:function(){var t=Ht.springs[e];if(t)return t;for(var o=0,i=0;;)if(1===m(o+=1/6)){if(++i>=16)break}else i=0;var n=o*(1/6)*1e3;return Ht.springs[e]=n,n}}function Gt(e){return void 0===e&&(e=10),function(t){return Math.round(t*e)*(1/e)}}var Kt,Vt,$t=function(){var e=11,t=1/(e-1);function o(e,t){return 1-3*t+3*e}function i(e,t){return 3*t-6*e}function n(e){return 3*e}function s(e,t,s){return((o(t,s)*e+i(t,s))*e+n(t))*e}function a(e,t,s){return 3*o(t,s)*e*e+2*i(t,s)*e+n(t)}return function(o,i,n,d){if(0<=o&&o<=1&&0<=n&&n<=1){var l=new Float32Array(e);if(o!==i||n!==d)for(var r=0;r<e;++r)l[r]=s(r*t,o,n);return function(e){return o===i&&n===d?e:0===e||1===e?e:s(c(e),i,d)}}function c(i){for(var d=0,r=1,c=e-1;r!==c&&l[r]<=i;++r)d+=t;--r;var u=d+(i-l[r])/(l[r+1]-l[r])*t,m=a(u,o,n);return m>=.001?function(e,t,o,i){for(var n=0;n<4;++n){var d=a(t,o,i);if(0===d)return t;t-=(s(t,o,i)-e)/d}return t}(i,u,o,n):0===m?u:function(e,t,o,i,n){var a,d,l=0;do{(a=s(d=t+(o-t)/2,i,n)-e)>0?o=d:t=d}while(Math.abs(a)>1e-7&&++l<10);return d}(i,d,d+t,o,n)}}}(),Zt=(Kt={linear:function(){return function(e){return e}}},Vt={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=zt(e,1,10),i=zt(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){Vt[e]=function(){return function(e){return Math.pow(e,t+2)}}})),Object.keys(Vt).forEach((function(e){var t=Vt[e];Kt[\"easeIn\"+e]=t,Kt[\"easeOut\"+e]=function(e,o){return function(i){return 1-t(e,o)(1-i)}},Kt[\"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}}})),Kt);function eo(e,t){if(Xt.fnc(e))return e;var o=e.split(\"(\")[0],i=Zt[o],n=Yt(e);switch(o){case\"spring\":return Jt(e,t);case\"cubicBezier\":return qt($t,n);case\"steps\":return qt(Gt,n);default:return qt(i,n)}}function to(e){try{return document.querySelectorAll(e)}catch(e){return}}function oo(e,t){for(var o=e.length,i=arguments.length>=2?arguments[1]:void 0,n=[],s=0;s<o;s++)if(s in e){var a=e[s];t.call(i,a,s,e)&&n.push(a)}return n}function io(e){return e.reduce((function(e,t){return e.concat(Xt.arr(t)?io(t):t)}),[])}function no(e){return Xt.arr(e)?e:(Xt.str(e)&&(e=to(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function so(e,t){return e.some((function(e){return e===t}))}function ao(e){var t={};for(var o in e)t[o]=e[o];return t}function lo(e,t){var o=ao(e);for(var i in e)o[i]=t.hasOwnProperty(i)?t[i]:e[i];return o}function ro(e,t){var o=ao(e);for(var i in t)o[i]=Xt.und(e[i])?t[i]:e[i];return o}function co(e){return Xt.rgb(e)?(o=/rgb\\((\\d+,\\s*[\\d]+,\\s*[\\d]+)\\)/g.exec(t=e))?\"rgba(\"+o[1]+\",1)\":t:Xt.hex(e)?function(e){var t=e.replace(/^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i,(function(e,t,o,i){return t+t+o+o+i+i})),o=/^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(t);return\"rgba(\"+parseInt(o[1],16)+\",\"+parseInt(o[2],16)+\",\"+parseInt(o[3],16)+\",1)\"}(e):Xt.hsl(e)?function(e){var t,o,i,n=/hsl\\((\\d+),\\s*([\\d.]+)%,\\s*([\\d.]+)%\\)/g.exec(e)||/hsla\\((\\d+),\\s*([\\d.]+)%,\\s*([\\d.]+)%,\\s*([\\d.]+)\\)/g.exec(e),s=parseInt(n[1],10)/360,a=parseInt(n[2],10)/100,d=parseInt(n[3],10)/100,l=n[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==a)t=o=i=d;else{var c=d<.5?d*(1+a):d+a-d*a,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+\",\"+l+\")\"}(e):void 0;var t,o}function uo(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 mo(e,t){return Xt.fnc(e)?e(t.target,t.id,t.total):e}function po(e,t){return e.getAttribute(t)}function ho(e,t,o){if(so([o,\"deg\",\"rad\",\"turn\"],uo(t)))return t;var i=Ht.CSS[t+o];if(!Xt.und(i))return i;var n=document.createElement(e.tagName),s=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;s.appendChild(n),n.style.position=\"absolute\",n.style.width=100+o;var a=100/n.offsetWidth;s.removeChild(n);var d=a*parseFloat(t);return Ht.CSS[t+o]=d,d}function fo(e,t,o){if(t in e.style){var i=t.replace(/([a-z])([A-Z])/g,\"$1-$2\").toLowerCase(),n=e.style[t]||getComputedStyle(e).getPropertyValue(i)||\"0\";return o?ho(e,n,o):n}}function vo(e,t){return Xt.dom(e)&&!Xt.inp(e)&&(po(e,t)||Xt.svg(e)&&e[t])?\"attribute\":Xt.dom(e)&&so(Ut,t)?\"transform\":Xt.dom(e)&&\"transform\"!==t&&fo(e,t)?\"css\":null!=e[t]?\"object\":void 0}function go(e){if(Xt.dom(e)){for(var t,o=e.style.transform||\"\",i=/(\\w+)\\(([^)]*)\\)/g,n=new Map;t=i.exec(o);)n.set(t[1],t[2]);return n}}function yo(e,t,o,i){var n=Rt(t,\"scale\")?1:0+function(e){return Rt(e,\"translate\")||\"perspective\"===e?\"px\":Rt(e,\"rotate\")||Rt(e,\"skew\")?\"deg\":void 0}(t),s=go(e).get(t)||n;return o&&(o.transforms.list.set(t,s),o.transforms.last=t),i?ho(e,s,i):s}function wo(e,t,o,i){switch(vo(e,t)){case\"transform\":return yo(e,t,i,o);case\"css\":return fo(e,t,o);case\"attribute\":return po(e,t);default:return e[t]||0}}function bo(e,t){var o=/^(\\*=|\\+=|-=)/.exec(e);if(!o)return e;var i=uo(e)||0,n=parseFloat(t),s=parseFloat(e.replace(o[0],\"\"));switch(o[0][0]){case\"+\":return n+s+i;case\"-\":return n-s+i;case\"*\":return n*s+i}}function jo(e,t){if(Xt.col(e))return co(e);if(/\\s/g.test(e))return e;var o=uo(e),i=o?e.substr(0,e.length-o.length):e;return t?i+t:i}function Qo(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function _o(e){for(var t,o=e.points,i=0,n=0;n<o.numberOfItems;n++){var s=o.getItem(n);n>0&&(i+=Qo(t,s)),t=s}return i}function Co(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case\"circle\":return function(e){return 2*Math.PI*po(e,\"r\")}(e);case\"rect\":return function(e){return 2*po(e,\"width\")+2*po(e,\"height\")}(e);case\"line\":return function(e){return Qo({x:po(e,\"x1\"),y:po(e,\"y1\")},{x:po(e,\"x2\"),y:po(e,\"y2\")})}(e);case\"polyline\":return _o(e);case\"polygon\":return function(e){var t=e.points;return _o(e)+Qo(t.getItem(t.numberOfItems-1),t.getItem(0))}(e)}}function ko(e,t){var o=t||{},i=o.el||function(e){for(var t=e.parentNode;Xt.svg(t)&&Xt.svg(t.parentNode);)t=t.parentNode;return t}(e),n=i.getBoundingClientRect(),s=po(i,\"viewBox\"),a=n.width,d=n.height,l=o.viewBox||(s?s.split(\" \"):[0,0,a,d]);return{el:i,viewBox:l,x:l[0]/1,y:l[1]/1,w:a/l[2],h:d/l[3]}}function Do(e,t){function o(o){void 0===o&&(o=0);var i=t+o>=1?t+o:0;return e.el.getPointAtLength(i)}var i=ko(e.el,e.svg),n=o(),s=o(-1),a=o(1);switch(e.property){case\"x\":return(n.x-i.x)*i.w;case\"y\":return(n.y-i.y)*i.h;case\"angle\":return 180*Math.atan2(a.y-s.y,a.x-s.x)/Math.PI}}function Lo(e,t){var o=/[+-]?\\d*\\.?\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?/g,i=jo(Xt.pth(e)?e.totalLength:e,t)+\"\";return{original:i,numbers:i.match(o)?i.match(o).map(Number):[0],strings:Xt.str(e)||t?i.split(o):[]}}function xo(e){return oo(e?io(Xt.arr(e)?e.map(no):no(e)):[],(function(e,t,o){return o.indexOf(e)===t}))}function Bo(e){var t=xo(e);return t.map((function(e,o){return{target:e,id:o,total:t.length,transforms:{list:go(e)}}}))}function So(e,t){var o=ao(t);if(/^spring/.test(o.easing)&&(o.duration=Jt(o.easing)),Xt.arr(e)){var i=e.length;2===i&&!Xt.obj(e[0])?e={value:e}:Xt.fnc(t.duration)||(o.duration=t.duration/i)}var n=Xt.arr(e)?e:[e];return n.map((function(e,o){var i=Xt.obj(e)&&!Xt.pth(e)?e:{value:e};return Xt.und(i.delay)&&(i.delay=o?0:t.delay),Xt.und(i.endDelay)&&(i.endDelay=o===n.length-1?t.endDelay:0),i})).map((function(e){return ro(e,o)}))}function Ao(e,t){var o=[],i=t.keyframes;for(var n in i&&(t=ro(function(e){for(var t=oo(io(e.map((function(e){return Object.keys(e)}))),(function(e){return Xt.key(e)})).reduce((function(e,t){return e.indexOf(t)<0&&e.push(t),e}),[]),o={},i=function(i){var n=t[i];o[n]=e.map((function(e){var t={};for(var o in e)Xt.key(o)?o==n&&(t.value=e[o]):t[o]=e[o];return t}))},n=0;n<t.length;n++)i(n);return o}(i),t)),t)Xt.key(n)&&o.push({name:n,tweens:So(t[n],e)});return o}function Po(e,t){var o;return e.tweens.map((function(i){var n=function(e,t){var o={};for(var i in e){var n=mo(e[i],t);Xt.arr(n)&&1===(n=n.map((function(e){return mo(e,t)}))).length&&(n=n[0]),o[i]=n}return o.duration=parseFloat(o.duration),o.delay=parseFloat(o.delay),o}(i,t),s=n.value,a=Xt.arr(s)?s[1]:s,d=uo(a),l=wo(t.target,e.name,d,t),r=o?o.to.original:l,c=Xt.arr(s)?s[0]:r,u=uo(c)||uo(l),m=d||u;return Xt.und(a)&&(a=r),n.from=Lo(c,m),n.to=Lo(bo(a,c),m),n.start=o?o.end:0,n.end=n.start+n.delay+n.duration+n.endDelay,n.easing=eo(n.easing,n.duration),n.isPath=Xt.pth(s),n.isColor=Xt.col(n.from.original),n.isColor&&(n.round=1),o=n,n}))}var Eo={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,n){if(i.list.set(t,o),t===i.last||n){var s=\"\";i.list.forEach((function(e,t){s+=t+\"(\"+e+\") \"})),e.style.transform=s}}};function Oo(e,t){Bo(e).forEach((function(e){for(var o in t){var i=mo(t[o],e),n=e.target,s=uo(i),a=wo(n,o,s,e),d=bo(jo(i,s||uo(a)),a),l=vo(n,o);Eo[l](n,o,d,e.transforms,!0)}}))}function To(e,t){return oo(io(e.map((function(e){return t.map((function(t){return function(e,t){var o=vo(e.target,t.name);if(o){var i=Po(t,e),n=i[i.length-1];return{type:o,property:t.name,animatable:e,tweens:i,duration:n.end,delay:i[0].delay,endDelay:n.endDelay}}}(e,t)}))}))),(function(e){return!Xt.und(e)}))}function Io(e,t){var o=e.length,i=function(e){return e.timelineOffset?e.timelineOffset:0},n={};return n.duration=o?Math.max.apply(Math,e.map((function(e){return i(e)+e.duration}))):t.duration,n.delay=o?Math.min.apply(Math,e.map((function(e){return i(e)+e.delay}))):t.delay,n.endDelay=o?n.duration-Math.max.apply(Math,e.map((function(e){return i(e)+e.duration-e.endDelay}))):t.endDelay,n}var Mo=0;var No,Fo=[],Wo=[],Uo=function(){function e(){No=requestAnimationFrame(t)}function t(t){var o=Fo.length;if(o){for(var i=0;i<o;){var n=Fo[i];if(n.paused){var s=Fo.indexOf(n);s>-1&&(Fo.splice(s,1),o=Fo.length)}else n.tick(t);i++}e()}else No=cancelAnimationFrame(No)}return e}();function Ho(e){void 0===e&&(e={});var t,o=0,i=0,n=0,s=0,a=null;function d(e){var t=window.Promise&&new Promise((function(e){return a=e}));return e.finished=t,t}var l=function(e){var t=lo(Ft,e),o=lo(Wt,e),i=Ao(o,e),n=Bo(e.targets),s=To(n,i),a=Io(s,o),d=Mo;return Mo++,ro(t,{id:d,children:[],animatables:n,animations:s,duration:a.duration,delay:a.delay,endDelay:a.endDelay})}(e);d(l);function r(){var e=l.direction;\"alternate\"!==e&&(l.direction=\"normal\"!==e?\"normal\":\"reverse\"),l.reversed=!l.reversed,t.forEach((function(e){return e.reversed=l.reversed}))}function c(e){return l.reversed?l.duration-e:e}function u(){o=0,i=c(l.currentTime)*(1/Ho.speed)}function m(e,t){t&&t.seek(e-t.timelineOffset)}function p(e){for(var t=0,o=l.animations,i=o.length;t<i;){var n=o[t],s=n.animatable,a=n.tweens,d=a.length-1,r=a[d];d&&(r=oo(a,(function(t){return e<t.end}))[0]||r);for(var c=zt(e-r.start-r.delay,0,r.duration)/r.duration,u=isNaN(c)?1:r.easing(c),m=r.to.strings,p=r.round,h=[],f=r.to.numbers.length,v=void 0,g=0;g<f;g++){var y=void 0,w=r.to.numbers[g],b=r.from.numbers[g]||0;y=r.isPath?Do(r.value,u*w):b+u*(w-b),p&&(r.isColor&&g>2||(y=Math.round(y*p)/p)),h.push(y)}var j=m.length;if(j){v=m[0];for(var Q=0;Q<j;Q++){m[Q];var _=m[Q+1],C=h[Q];isNaN(C)||(v+=_?C+_:C+\" \")}}else v=h[0];Eo[n.type](s.target,n.property,v,s.transforms),n.currentValue=v,t++}}function h(e){l[e]&&!l.passThrough&&l[e](l)}function f(e){var u=l.duration,f=l.delay,v=u-l.endDelay,g=c(e);l.progress=zt(g/u*100,0,100),l.reversePlayback=g<l.currentTime,t&&function(e){if(l.reversePlayback)for(var o=s;o--;)m(e,t[o]);else for(var i=0;i<s;i++)m(e,t[i])}(g),!l.began&&l.currentTime>0&&(l.began=!0,h(\"begin\")),!l.loopBegan&&l.currentTime>0&&(l.loopBegan=!0,h(\"loopBegin\")),g<=f&&0!==l.currentTime&&p(0),(g>=v&&l.currentTime!==u||!u)&&p(u),g>f&&g<v?(l.changeBegan||(l.changeBegan=!0,l.changeCompleted=!1,h(\"changeBegin\")),h(\"change\"),p(g)):l.changeBegan&&(l.changeCompleted=!0,l.changeBegan=!1,h(\"changeComplete\")),l.currentTime=zt(g,0,u),l.began&&h(\"update\"),e>=u&&(i=0,l.remaining&&!0!==l.remaining&&l.remaining--,l.remaining?(o=n,h(\"loopComplete\"),l.loopBegan=!1,\"alternate\"===l.direction&&r()):(l.paused=!0,l.completed||(l.completed=!0,h(\"loopComplete\"),h(\"complete\"),!l.passThrough&&\"Promise\"in window&&(a(),d(l)))))}return l.reset=function(){var e=l.direction;l.passThrough=!1,l.currentTime=0,l.progress=0,l.paused=!0,l.began=!1,l.loopBegan=!1,l.changeBegan=!1,l.completed=!1,l.changeCompleted=!1,l.reversePlayback=!1,l.reversed=\"reverse\"===e,l.remaining=l.loop,t=l.children;for(var o=s=t.length;o--;)l.children[o].reset();(l.reversed&&!0!==l.loop||\"alternate\"===e&&1===l.loop)&&l.remaining++,p(l.reversed?l.duration:0)},l.set=function(e,t){return Oo(e,t),l},l.tick=function(e){n=e,o||(o=n),f((n+(i-o))*Ho.speed)},l.seek=function(e){f(c(e))},l.pause=function(){l.paused=!0,u()},l.play=function(){l.paused&&(l.completed&&l.reset(),l.paused=!1,Fo.push(l),u(),No||Uo())},l.reverse=function(){r(),u()},l.restart=function(){l.reset(),l.play()},l.reset(),l.autoplay&&l.play(),l}function zo(e,t){for(var o=t.length;o--;)so(e,t[o].animatable.target)&&t.splice(o,1)}\"undefined\"!=typeof document&&document.addEventListener(\"visibilitychange\",(function(){document.hidden?(Fo.forEach((function(e){return e.pause()})),Wo=Fo.slice(0),Ho.running=Fo=[]):Wo.forEach((function(e){return e.play()}))})),Ho.version=\"3.1.0\",Ho.speed=1,Ho.running=Fo,Ho.remove=function(e){for(var t=xo(e),o=Fo.length;o--;){var i=Fo[o],n=i.animations,s=i.children;zo(t,n);for(var a=s.length;a--;){var d=s[a],l=d.animations;zo(t,l),l.length||d.children.length||s.splice(a,1)}n.length||s.length||i.pause()}},Ho.get=wo,Ho.set=Oo,Ho.convertPx=ho,Ho.path=function(e,t){var o=Xt.str(e)?to(e)[0]:e,i=t||100;return function(e){return{property:e,el:o,svg:ko(o),totalLength:Co(o)*(i/100)}}},Ho.setDashoffset=function(e){var t=Co(e);return e.setAttribute(\"stroke-dasharray\",t),t},Ho.stagger=function(e,t){void 0===t&&(t={});var o=t.direction||\"normal\",i=t.easing?eo(t.easing):null,n=t.grid,s=t.axis,a=t.from||0,d=\"first\"===a,l=\"center\"===a,r=\"last\"===a,c=Xt.arr(e),u=c?parseFloat(e[0]):parseFloat(e),m=c?parseFloat(e[1]):0,p=uo(c?e[1]:e)||0,h=t.start||0+(c?u:0),f=[],v=0;return function(e,t,g){if(d&&(a=0),l&&(a=(g-1)/2),r&&(a=g-1),!f.length){for(var y=0;y<g;y++){if(n){var w=l?(n[0]-1)/2:a%n[0],b=l?(n[1]-1)/2:Math.floor(a/n[0]),j=w-y%n[0],Q=b-Math.floor(y/n[0]),_=Math.sqrt(j*j+Q*Q);\"x\"===s&&(_=-j),\"y\"===s&&(_=-Q),f.push(_)}else f.push(Math.abs(a-y));v=Math.max.apply(Math,f)}i&&(f=f.map((function(e){return i(e/v)*v}))),\"reverse\"===o&&(f=f.map((function(e){return s?e<0?-1*e:-e:Math.abs(v-e)})))}return h+(c?(m-u)/v:u)*(Math.round(100*f[t])/100)+p}},Ho.timeline=function(e){void 0===e&&(e={});var t=Ho(e);return t.duration=0,t.add=function(o,i){var n=Fo.indexOf(t),s=t.children;function a(e){e.passThrough=!0}n>-1&&Fo.splice(n,1);for(var d=0;d<s.length;d++)a(s[d]);var l=ro(o,lo(Wt,e));l.targets=l.targets||e.targets;var r=t.duration;l.autoplay=!1,l.direction=t.direction,l.timelineOffset=Xt.und(i)?r:bo(i,r),a(t),t.seek(l.timelineOffset);var c=Ho(l);a(c),s.push(c);var u=Io(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},Ho.easing=eo,Ho.penner=Zt,Ho.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};var Ro=Ho,qo=function(){return!LiveComposer.Builder.Flags.panelOpened||(LiveComposer.Builder.UI.shakePanelConfirmButton(),!1)};document.addEventListener(\"moduleDuplicate\",(function(e){var t=e.detail;if(!qo())return!1;t.classList.contains(\"dslca-action-disabled\")||Yo(t.closest(\".dslc-module-front\"))})),document.addEventListener(\"moduleDelete\",(function(e){var t=e.detail;if(!qo())return!1;t.classList.contains(\"dslca-action-disabled\")||n({title:DSLCString.str_del_module_title,content:DSLCString.str_del_module_descr,confirm:function(){!function(e){window.dslcDebug&&console.log(\"dslc_delete_module\");Et(\".dslca-modules\"),Ro({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()}})}(t.closest(\".dslc-module-front\"))}})})),document.addEventListener(\"moduleEdit\",(function(e){var t=e.detail.closest(\".dslc-module-front\"),o=t.dataset.module,i=LiveComposer.Builder.PreviewAreaWindow.document.querySelector(\".dslca-module-being-edited\"),n=jQuery(\".dslca-modules-section-being-edited\",LiveComposer.Builder.PreviewAreaDocument).length;if(LiveComposer.Builder.Flags.uiHidden||null!==i&&i.length>0||n>0)return i!=t&&LiveComposer.Builder.UI.shakePanelConfirmButton(),!1;Xo(),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){var t=e.detail.closest(\".dslc-module-front\").querySelector(\".dslca-module-code\").innerText;localStorage.setItem(\"lcCopyPasteStorage\",t)})),document.addEventListener(\"pasteModuleStyles\",(function(e){var t=e.detail.closest(\".dslc-module-front\"),o=jQuery(t),i=localStorage.getItem(\"lcCopyPasteStorage\"),n=!1;if(i)try{n=JSON.parse(i)}catch(e){console.log(\"Can't parse copy/paste string into JSON:\"),console.log(e)}if(n&&n.module_id===t.dataset.module){var s=t.querySelector(\".dslca-module-code\").innerText,a=!1;try{a=JSON.parse(s)}catch(e){console.log(\"Can't parse current module code into JSON:\"),console.log(e)}if(a){var d=!1;for(var l in n)l.includes(\"css_\")&&(a[l]=n[l],d=!0);for(var r in a)r.includes(\"css_\")&&(a[r]!==n[r]&&(a[r]=\"\"),d=!0);d&&(a.action=\"dslc-ajax-add-module\",a.dslc=\"active\",a.dslc_module_id=a.module_id,a.dslc_module_instance_id=a.module_instance_id,a.dslc_post_id=a.post_id,o.hasClass(\"dslca-preload-preset\")?a.dslc_preload_preset=\"enabled\":a.dslc_preload_preset=\"disabled\",o.removeClass(\"dslca-preload-preset\"),a.dslc_url_vars=LiveComposer.Utils.get_page_params(),jQuery.post(DSLCAjax.ajaxurl,a,(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){var t=e.detail,o=t.closest(\".dslc-module-front\");if(!t.classList.contains(\"dslca-action-disabled\")){var i=o.dataset.dslcModuleSize,n=t.dataset.size;Number(i)!==Number(n)&&function(e,t){window.dslcDebug&&console.log(\"dslc_module_width_set\");var o=\"dslc-\"+t+\"-col\";jQuery(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(\"dslc-module-size\",t),e.setAttribute(\"data-dslc-module-size\",t),LiveComposer.Utils.update_module_property_raw(e,\"dslc_m_size\",t),LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(),window.dslc_generate_code(),window.dslc_show_publish_button()}(o,n)}})),document.addEventListener(\"wysiwygEdit\",(function(e){var t=e.detail,o=t.closest(\".dslc-module-front\"),i=t.dataset.idToEdit,n=o.querySelector('[data-edit-id=\"'+i+'\"]'),s=\"\";if(void 0===(s=\"TEXTAREA\"===n.tagName||\"INPUT\"===n.tagName?n.value:n.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 a=tinymce.get(\"dslcawpeditor\");document.getElementById(\"wp-dslcawpeditor-wrap\").classList.contains(\"tmce-active\")?a.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(),n.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.\")}));var Xo=function(){var e=LiveComposer.Builder.PreviewAreaWindow.document.querySelector(\".dslca-module-being-edited\");null!==e&&e.classList.remove(\"dslca-module-being-edited\")};function Yo(e){window.dslcDebug&&console.log(\"dslc_copy_module\"),Xo();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\"),Jo(t),window.dslc_generate_code(),Ro({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()}var Jo=function(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],n=i.textContent;i.setAttribute(\"id\",\"#css-for-dslc-module-\"+t),n=n.split(o).join(\"dslc-module-\"+t),i.textContent=n,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\"),n=jQuery(jQuery(\"#pseudo-panel\").html());jQuery(\"#wpwrap\").append(n);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(),Pt();var a=jQuery(\".dslca-module-options-front\",t).children().clone();LiveComposer.Builder.moduleBackup=a,LiveComposer.Builder.Flags.panelOpened=!0,n.show(),n.addClass(\"show\"),jQuery.post(DSLCAjax.ajaxurl,s,(function(e){n.remove(),Et(\".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()}))};var Go=function(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),n=t.data(\"module-id\"),s={action:\"dslc-ajax-add-module\",dslc:\"active\"};s.dslc_module_id=o,s.dslc_module_instance_id=n,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 n=new Event(\"moduleOutputAltered\");LiveComposer.Builder.PreviewAreaWindow.dispatchEvent(n),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),n=e.data(\"module-id\"),s={action:\"dslc-ajax-add-module\",dslc:\"active\"};s.dslc_module_id=o,s.dslc_module_instance_id=n,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\")}))};var Ko=function(){LiveComposer.Builder.PreviewAreaDocument.on({mouseenter:function(e){jQuery(\".dslca-modules-section-manage\",LiveComposer.Builder.PreviewAreaDocument).css(\"z-index\",\"99998\");var 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\"),LiveComposer.Builder.PreviewAreaDocument.on(\"blur\",\".dslca-editable-content\",(function(){LiveComposer.Builder.Flags.uiHidden||\"simple\"!=jQuery(this).data(\"type\")||r(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()),r(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\")}))},Vo=function(){var e,t,o,i=jQuery(\".dslca-modules .dslca-section-scroller-content\");0==i.length&&(i=[document.createElement(\"div\")]);At.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 n,s,a=i.item;if(i.preventDefault(),jQuery(a).closest(\".dslca-section-scroller-content\").length>0)return!1;jQuery(\".dslca-options-hovered\",LiveComposer.Builder.PreviewAreaDocument).removeClass(\"dslca-options-hovered\"),e=jQuery(a.parentNode),t=a.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\"),n=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:n,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(a).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\")}})},$o=function(e){var t=this;this.section=jQuery(e).closest(\".dslc-modules-section\"),this.elem=e,this.observer=new mqMutationObserver(e,(function(){var o=t.elem.classList;0==e.querySelectorAll(\".dslc-module-front\").length?(o.add(\"dslc-modules-area-empty\"),o.remove(\"dslc-modules-area-not-empty\")):(o.remove(\"dslc-modules-area-empty\"),o.add(\"dslc-modules-area-not-empty\"))}),{childList:!0}),this.sortable=At.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\")&&(Zo(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 $o(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():ni(e()),LiveComposer.Builder.PreviewAreaDocument.on(\"click\",\".dslca-copy-modules-area-hook\",(function(e){if(e.preventDefault(),!t())return!1;if(!jQuery(this).hasClass(\"dslca-action-disabled\")){var o=jQuery(this).closest(\".dslc-modules-area\");(function(e){window.dslcDebug&&console.log(\"dslc_copy_modules_area\");var t=e.closest(\".dslc-modules-section\").find(\".dslc-modules-section-inner\"),o=e.clone().appendTo(t);new $o(o[0]),o.find(\".dslca-modules-area-manage\").trigger(\"mouseleave\"),o.data(\"size\",e.data(\"size\")).find(\".dslc-module-front\").css({\"-webkit-animation-name\":\"none\",\"-moz-animation-name\":\"none\",\"animation-name\":\"none\",\"animation-duration\":\"0\",\"-webkit-animation-duration\":\"0\",opacity:0}).each((function(){var e=jQuery(this);Jo(e[0]),jQuery(\".dslca-module-being-edited\",LiveComposer.Builder.PreviewAreaDocument).removeClass(\"dslca-module-being-edited\"),window.dslc_generate_code(),e.animate({opacity:1},300)})),Vo(),window.dslc_show_publish_button(),window.dslc_generate_code()})(o)}})),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\")){var o=jQuery(this).closest(\".dslc-modules-area\");ei(o)}else{var i=jQuery(this);n({title:DSLCString.str_del_area_title,content:DSLCString.str_del_area_descr,confirm:function(){ei(i.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){window.dslcDebug&&console.log(\"dslc_modules_area_vertical_align_set\");var o=\"dslc-valign-\"+t;if(e.removeClass(\"dslc-valign-top dslc-valign-middle dslc-valign-bottom\").addClass(o).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;Zo(jQuery(this).closest(\".dslc-modules-section\").find(\".dslc-modules-section-inner\"))}))}));var Zo=function(e){window.dslcDebug&&console.log(\"modulesAreaAdd\");var 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 $o(t)})),Vo(),window.dslc_generate_code(),window.dslc_show_publish_button()};function ei(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(),Et(\".dslca-modules\")),setTimeout((function(){if(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(),Zo(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()}))}var ti=function(){jQuery(\"#dslc-main .dslc-modules-area\",LiveComposer.Builder.PreviewAreaDocument).each((function(){\"initialized\"!==jQuery(this).data(\"jsinit\")&&new $o(this)}))};function oi(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var ii=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.sortable,this.sortableContainer=jQuery(t).find(\".dslc-modules-section-wrapper .dslc-modules-section-inner\").eq(0)[0],this.initSortable(t),this.initDropable(t),this.reactToSortableOnOff(),jQuery(t).attr(\"data-jsinit\",\"initialized\")}var t,o,i;return t=e,(o=[{key:\"initDropable\",value:function(e){jQuery(e).droppable({drop:function(e,t){var o=jQuery(this).find(\".dslc-modules-section-inner\");\"DSLC_M_A\"==t.draggable.data(\"id\")&&Zo(o)}})}},{key:\"initSortable\",value:function(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&&Zo(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){}})}},{key:\"reactToSortableOnOff\",value:function(){self=this.sortable,jQuery(document).on(\"LC.sortableOff\",(function(){})),jQuery(document).on(\"LC.sortableOn\",(function(){}))}}])&&oi(t.prototype,o),i&&oi(t,i),e}(),ni=function(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\"));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));if(null!==i)return si(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),si(i.output),e&&e(),t}))};function si(e){var t=jQuery(e);return t.appendTo(LiveComposer.Builder.PreviewAreaDocument.find(\"#dslc-main\")),Vo(),window.dslc_generate_code(),window.dslc_show_publish_button(),new ii(t),new $o(t.find(\".dslc-modules-area\").eq(0)[0]),t.find(\".dslc-modules-area\").addClass(\"dslc-modules-area-empty dslc-last-col\"),t}function ai(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(),Et(\".dslca-modules\")),e.trigger(\"mouseleave\").remove(),window.dslc_generate_code(),window.dslc_show_publish_button()}function di(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())})),Et(\".dslca-modules-section-edit\"),LiveComposer.Builder.Flags.panelOpened=!0,Pt()}function li(e){var t;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 ii(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);Jo(e[0]),ci(),ti(),window.dslc_generate_code(),Vo(),jQuery(\".dslca-module-being-edited\",LiveComposer.Builder.PreviewAreaDocument).removeClass(\"dslca-module-being-edited\"),e.animate({opacity:1},300),window.dslc_show_publish_button()})),function(e){window.dslcDebug&&console.log(\"dslc_section_new_id\");var t=LiveComposer.Utils.get_unique_id();e.setAttribute(\"data-section-id\",t),LiveComposer.Utils.update_section_property_raw(e,\"section_instance_id\",t)}(t[0])}function ri(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){u(),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(),ci(),ti(),Vo(),window.dslc_generate_code(),window.dslc_show_publish_button()}))}var ci=function(){jQuery(\"#dslc-main .dslc-modules-section\",LiveComposer.Builder.PreviewAreaDocument).each((function(){\"initialized\"!==jQuery(this).data(\"jsinit\")&&new ii(this)}))},ui=function(){ci(),function(){jQuery;var e=function(){return!LiveComposer.Builder.Flags.panelOpened||(LiveComposer.Builder.UI.shakePanelConfirmButton(),!1)};jQuery(\".dslc-modules-section\",LiveComposer.Builder.PreviewAreaDocument).each((function(){new ii(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\")||n({title:DSLCString.str_del_row_title,content:DSLCString.str_del_row_descr,confirm:function(){ai(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\")||n({title:DSLCString.str_import_row_title,content:DSLCString.str_import_row_descr+\"<br><br><textarea></textarea>\",confirm:function(){ri(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),n({title:DSLCString.str_export_row_title,content:DSLCString.str_export_row_descr+\"<br><br><textarea>[\"+d(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\")||li(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\"),ni((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\")||di(jQuery(this).closest(\".dslc-modules-section\")),jQuery(\"body\",LiveComposer.Builder.PreviewAreaDocument).addClass(\"section-editing-in-progress\")}))}(),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())})),Et(\".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(),Et(\".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)}))};function mi(){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}),c(\"\",\".dslca-modal-templates-import\"),LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video(),Vo(),window.dslc_show_publish_button(),window.dslc_generate_code()}))}function pi(){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){c(\"\",\".dslca-modal-templates-save\")}))}function hi(e){window.dslcDebug&&console.log(\"dslc_delete_template\"),jQuery.post(DSLCAjax.ajaxurl,{action:\"dslc-ajax-delete-template\",dslc:\"active\",dslc_template_id:e},(function(t){jQuery('.dslca-template[data-id=\"'+e+'\"]').fadeOut(200,(function(){jQuery(this).remove()}))}))}var fi=function(){document.querySelectorAll(\".dslca-template\").forEach((function(e){e.addEventListener(\"click\",(function(e){e.preventDefault(),function(e){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:e},(function(e){jQuery(\"#dslc-main\",LiveComposer.Builder.PreviewAreaDocument).html(e.output),jQuery(\".lc-template-loader\").remove(),LiveComposer.Builder.PreviewAreaWindow.dslc_carousel(),ci(),ti(),Vo(),window.dslc_show_publish_button(),window.dslc_generate_code()}))}(e.target.closest(\"[data-id]\").dataset.id)}))})),jQuery(\".dslca-template-import-form\").submit((function(e){e.preventDefault(),mi()})),jQuery(\".dslca-template-save-form\").submit((function(e){e.preventDefault(),pi()})),jQuery(document).on(\"click\",\".dslca-delete-template-hook\",(function(e){e.stopPropagation(),hi(jQuery(this).data(\"id\"))}))};function vi(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var gi=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.sortable,this.initSortable(t),this.reactToSortableOnOff()}var t,o,i;return t=e,(o=[{key:\"initSortable\",value:function(e){this.sortable=At.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}})}},{key:\"reactToSortableOnOff\",value:function(){self=this.sortable}}])&&vi(t.prototype,o),i&&vi(t,i),e}();jQuery(document).ready((function(e){var t=function(e){var t=.75,o=100,i=jQuery(\".dslca-section-scroller\",e),n=jQuery(\".dslca-section-scroller-inner\",e)[0];function s(e){e=e<0?-o:o,e*=t;var s=i.find(\".dslca-section-scroller-content\").width(),a=i.width();if(s<=a)return!1;var d=s-a+10;e=(e=(e=parseInt(n.style.left||0)-e)>=0?0:e)<=-d?-d:e,n.style.left=e+\"px\"}i.on(\"wheel\",(function(e){return s(e.originalEvent.deltaY||e.originalEvent.deltaX),!1})),jQuery(\".dslca-section-scroller-prev\",e).click((function(e){e.preventDefault(),s(-500)})),jQuery(\".dslca-section-scroller-next\",e).click((function(e){e.preventDefault(),s(500)})),jQuery(window).load((function(){jQuery(window).resize((function(){s(0)}))}))};t(jQuery(\".dslca-section.dslca-modules\")),t(jQuery(\".dslca-section.dslca-templates-load\"))}));var yi=function(){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()}))};function wi(e){return(wi=\"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)}jQuery(document).ready((function(e){yi(),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()}))}));var bi={addslashes:function(e){return e=(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\"==wi(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],n=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,n.value=o,n.innerText=o},update_section_property_raw:function(e,t,o){var i=e.getElementsByClassName(\"dslca-section-code\")[0],n=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,n.setAttribute(\"value\",o),n.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)})),fi(),function(){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\"),n=!0;\"radio\"!=e.type&&\"checkbox\"!=e.type||(n=jQuery(e).is(\":checked\"));var s=jQuery(\".dslca-module-edit-options-tab-hook.dslca-active\").data(\"id\");e.value==t&&n?(i.not(\".dependent\")&&i.addClass(\"dependent\"),i.hasClass(\"dep-hide\")?(i.removeClass(\"dep-hide\"),i.addClass(\"dep-show\")):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.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\"!=m(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 n=document.createElement(\"style\");n.innerHTML=e.styleContent,n.id=i,n.className=\"temp-styles-for-module\",window.LiveComposer.Builder.PreviewAreaDocument[0].body.appendChild(n)}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)},g(),y(),w()}(),ui();var t=LiveComposer.Builder.PreviewAreaDocument.find(\"#dslc-main\").eq(0)[0];new gi(t),jQuery(document).trigger(\"editorFrameLoaded\"),Vo(),l(),window.dslc_generate_code(),Mt(),yi(),Ko(),window.LiveComposer.Utils=bi,document.addEventListener(\"click\",(function(e){if(e.target.matches('[data-event=\"modal-wysiwyg-cancel\"]')){var t=new CustomEvent(\"modalWysiwygCancel\",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches('[data-event=\"modal-wysiwyg-confirm\"]')){var o=new CustomEvent(\"modalWysiwygConfirm\",{detail:e.target});document.dispatchEvent(o)}}),!1),LiveComposer.Builder.PreviewAreaWindow.document.addEventListener(\"click\",(function(e){if(e.preventDefault(),e.target.matches('[data-event=\"module-edit\"]')){var t=new CustomEvent(\"moduleEdit\",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches('[data-event=\"module-duplicate\"]')){var o=new CustomEvent(\"moduleDuplicate\",{detail:e.target});document.dispatchEvent(o)}if(e.target.matches('[data-event=\"module-delete\"]')){var i=new CustomEvent(\"moduleDelete\",{detail:e.target});document.dispatchEvent(i)}if(e.target.matches(\".dslca-change-width-module-options [data-size]\")){var n=new CustomEvent(\"moduleChangeWidth\",{detail:e.target});document.dispatchEvent(n)}if(e.target.matches('[data-event=\"wysiwyg-edit\"]')){var s=new CustomEvent(\"wysiwygEdit\",{detail:e.target});document.dispatchEvent(s)}if(e.target.matches('[data-event=\"module-style-copy\"]')){var a=new CustomEvent(\"copyModuleStyles\",{detail:e.target});document.dispatchEvent(a)}if(e.target.matches('[data-event=\"module-style-paste\"]')){var d=new CustomEvent(\"pasteModuleStyles\",{detail:e.target});document.dispatchEvent(d)}}),!1)},window.onbeforeunload=function(){}}});"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sourceRoot":""}
1
+ {"version":3,"file":"editor_backend.min.js","sources":["webpack:///editor_backend.min.js"],"sourcesContent":["!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)return e;if(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);const 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>\",o=\"\";o=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>\",t+=o+\"</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)}))}))}));function n(){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)return;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()}();var e=jQuery(\"#dslca-code\").val(),t=jQuery(\"#dslca-content-for-search\").val(),o=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:o,dslc_code:e,dslc_content_for_search:t},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-'+o+'\" src=\"'+DSLCSiteData.siteurl+\"/?p=\"+o+'\" ></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){\"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\")}))}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)};const a=e=>{window.dslcDebug&&console.log(\"generateSectionCode\");var t,o,i,s,n=\"\",a=0,d=\"\";return o=e,jQuery(\".dslc-modules-area\",o).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\"),a=0,i=o.find(\".dslca-section-code\").val(),s=JSON.parse(i),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+'\" ',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\")),d=o.data(\"valign\"),l=\"no\",r=\"no\";a+=i,jQuery(this).removeClass(\"dslc-first-col\"),jQuery(this).removeClass(\"dslc-last-col\"),12==a?(jQuery(this).addClass(\"dslc-last-col\").next(\".dslc-modules-area\").addClass(\"dslc-first-col\"),a=0,l=\"yes\"):a>12&&(jQuery(this).removeClass(\"dslc-last-col\").addClass(\"dslc-first-col\"),a=i,r=\"yes\"),a==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\":\"'+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&&(\"yes\",jQuery(this).removeClass(\"dslc-last-col\").addClass(\"dslc-first-col\"));try{n=o[0].querySelector(\".dslca-module-code\").innerText}catch(e){console.info(\"No DSLC code found in module: \"+o[0].getAttribute(\"id\"))}if(\"\"!==n){var s=JSON.parse(n);s.last=i,jQuery.each(s,(function(e,t){!1!==t&&\"\"!==t||delete s[e],\"content\"===e&&(s[e]=t.replace(/\\\\'/g,\"'\")),\"give_new_id\"===e&&delete s[e]})),o[0].querySelector(\".dslca-module-code\").innerText=JSON.stringify(s),c.content.push(s)}n=\"\"})),s.content.push(c)})),JSON.stringify(s)},d=()=>{jQuery(document).on(\"click\",\".dslca-save-composer-hook\",(function(e){e.preventDefault(),jQuery(\"body\").hasClass(\"dslca-module-saving-in-progress\")||jQuery(\"body\").hasClass(\"dslca-saving-in-progress\")||n()})),jQuery(document).on(\"click\",\".dslca-save-draft-composer-hook\",(function(e){e.preventDefault(),jQuery(\"body\").hasClass(\"dslca-module-saving-in-progress\")||jQuery(\"body\").hasClass(\"dslca-saving-in-progress\")||function(){window.dslcDebug&&console.log(\"dslc_save_draft_composer\");var e=jQuery(\"#dslca-code\").val(),t=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:t,dslc_code:e},(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\")}))}()}))};const l=e=>{if(window.dslcDebug&&console.log(\"editableContentCodeGeneration\"),void 0===e)return!1;const 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)};const r=(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=jQuery(this).data(\"modal\");!function(e,t){\"undefined\"!=typeof dslcDebug&&dslcDebug&&console.log(\"dslc_show_modal\"),jQuery(\".dslca-modal:visible\").length&&r(\"\",jQuery(\".dslca-modal:visible\")),t=jQuery(t),jQuery(\".dslca-container\").height(),t.outerHide({clbk:function(){r(\"\",jQuery(\".dslca-modal:visible\"))}});var o=jQuery(e).position(),i=t.outerWidth()/2-e.outerWidth()/2,s=o.left-i;t.css({left:s}),jQuery(\".dslca-prompt-modal-custom\").insertAfter(t),jQuery(\".dslca-prompt-modal-custom\").length>0&&jQuery(\".dslca-prompt-modal-custom\").fadeIn(),t.addClass(\"dslca-modal-open\").show()}(jQuery(this),t)})),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\");r(jQuery(this),t)}}))}));const c=()=>{\"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\")})),c(),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){var s=o.closest(\".dslc-module-front\");dslc_module_delete(s)}else if(\"delete_modules_area\"===t){var n=o.closest(\".dslc-modules-area\");n.closest(\".dslc-modules-section-inner\");dslc_modules_area_delete(n)}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&&c(),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 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 u=window.DSLCFonts.regular,m=window.DSLCFonts.google,p=u.concat(m),h=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(),n=t.outerHeight(),a=t.outerWidth(),d=s.left-a/2+6,l=\"50%\";d<0&&(l=a/2+d+\"px\",d=0),jQuery(\".dslca-module-edit-field-ttip\").show().css({top:s.top-n-20,left:d}),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(),n=o.left-s/2+6,a=\"50%\";n<0&&(a=s/2+n+\"px\",n=0),jQuery(\".dslca-module-edit-field-icon-ttip\").show().css({top:o.top-i-20,left:n}),jQuery(\"head\").append(jQuery(\"<style>.dslca-module-edit-field-icon-ttip:after, .dslca-module-edit-field-icon-ttip:before { left: \"+a+\" }</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&&k(t,\"previous\"),40==e.which&&k(t,\"next\"),13!=e.which&&38!=e.which&&40!=e.which&&(i=t.val().toLowerCase(),t.val(i),s=jQuery.grep(h,(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(),r(\"\",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()})),function(){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(),n=e.find(\".dslca-module-edit-option-box-shadow-spread\").val(),a=e.find(\".dslca-module-edit-option-box-shadow-color\").val(),d=e.find(\".dslca-module-edit-option-box-shadow-inset\").is(\":checked\"),l=o+\"px \"+i+\"px \"+s+\"px \"+n+\"px \"+a+(d=d?\" inset\":\"\");t.val(l).trigger(\"change\")}))}(),function(){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(){D(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,n=window.innerWidth;n<s+260&&(s=n-260),o.css(\"left\",s+\"px\"),jQuery(t).on(\"scroll\",(function(t){var s=(i=e.offset()).left+15,n=window.innerWidth;n<s+260&&(s=n-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\")||L(this)})),jQuery(\".dslca-container\").on(\"mouseenter\",\".dslca-modules-section-edit-option-slider\",(function(){L(this)})),jQuery(\".dslca-module-edit-form\").submit((function(e){e.preventDefault(),Go()})),jQuery(document).on(\"click\",\".dslca-module-edit-options-tab-hook\",(function(e){e.preventDefault(),j(jQuery(this))})),jQuery(document).on(\"click\",\".dslca-clear-responsive-options\",(function(e){e.preventDefault(),b()})),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,w(o),\"responsive\"==t&&(jQuery(\".dslca-container-loader\").show(),window.LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(),Go((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(){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\"),x()})),jQuery(document).on(\"click\",\".dslca-module-edit-cancel\",(function(e){e.preventDefault(),C((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\"),x()}))}));const f=()=>{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 n=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\")):i.addClass(\"dep-show\"),n==i.data(\"tab\")&&i.show()):(i.not(\".dependent\")&&i.addClass(\"dependent\"),i.hasClass(\"dep-show\")?(i.removeClass(\"dep-show\"),i.addClass(\"dep-hide\")):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)},v(),g(),y()},v=()=>{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\"),n=jQuery(\".dslca-module-being-edited\",LiveComposer.Builder.PreviewAreaDocument),a=n.data(\"module\");jQuery(\".dslca-module-options-front textarea\",n);if(n.addClass(\"dslca-module-change-made\"),(s.hasClass(\"dslca-module-edit-option-select\")||s.hasClass(\"dslca-module-edit-option-checkbox\"))&&Q(),\"active\"==jQuery(this).closest(\".dslca-module-edit-option\").data(\"refresh-on-change\")){if(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()+\" \")}));else if(o.hasClass(\"dslca-module-edit-option-radio\"))e=jQuery(\".dslca-module-edit-field:checked\",o).val();else{e=o.val();if(\"orientation\"==i&&\"horizontal\"==e)jQuery(\".dslca-module-edit-option-thumb_width .dslca-module-edit-field\").val(\"40\").trigger(\"change\");else if(\"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+'\"]',n).val(e),jQuery(\".dslca-container-loader\").show(),Go((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\")?jQuery(\".dslca-container-loader\").hide():(window.dslc_module_options_show(a),jQuery(\".dslca-container-loader\").hide()),jQuery(\"body\").removeClass(\"dslca-new-preset-added\"),LiveComposer.Utils.publish(\"LC.moduleChange\",{moduleId:a,optionID:i,optionVal:o.val()})}))}else{if(o.hasClass(\"dslca-module-edit-field-font\")){var d=o.val();d+=\":400,100,200,300,500,600,700,800,900\";var l=o.data(\"affect-on-change-el\"),r=o.data(\"affect-on-change-rule\"),c=p=o.val(),u=jQuery(\".dslca-module-being-edited\",LiveComposer.Builder.PreviewAreaDocument);o.val().length&&-1!==m.indexOf(o.val())?document.getElementById(\"page-builder-frame\").contentWindow.WebFont.load({google:{families:[d]},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=\"#\"+u[0].id+\" \"+i.join(\", #\"+u[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=\"#\"+u[0].id+\" \"+e.join(\", #\"+u[0].id+\" \")+\" {\"+r+\": \"+p+\"}\";LiveComposer.Builder.Helpers.processInlineStyleTag({context:o,rule:r,elems:l,styleContent:t})}),100)}else if(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\"),c=p=o.val();o.hasClass(\"dslca-module-edit-field-checkbox\")&&(p=e,c=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 f=\"\";f=-1!==i.indexOf(\"css_\")?c:o.val(),jQuery('.dslca-module-option-front[data-id=\"'+i+'\"]',n).val(f),LiveComposer.Utils.publish(\"LC.moduleChange\",{moduleId:n[0].id,optionID:i,optionVal:c||o.val()})}}))},g=()=>{jQuery(document).on(\"change\",\".dslca-modules-section-edit-field\",(function(){var e,t,o,i,s,n,a,d;if(t=(e=jQuery(this)).data(\"id\"),i=e.val(),u=i,s=i+e.data(\"ext\"),n=e.data(\"css-rule\"),d=o=jQuery(\".dslca-modules-section-being-edited\",LiveComposer.Builder.PreviewAreaDocument),a=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\"==n&&(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 l=jQuery('.dslca-modules-section-settings input[data-id=\"border_style\"]').val();a=jQuery('.dslca-modules-section-settings input[data-id=\"border\"]',o),u=\"\",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\")?u+=\"top \":\"border-right\"==jQuery(this).data(\"id\")?u+=\"right \":\"border-bottom\"==jQuery(this).data(\"id\")?u+=\"bottom \":\"border-left\"==jQuery(this).data(\"id\")&&(u+=\"left \"))})),e.is(\":checked\")?\"border-top\"==e.data(\"id\")?o.css({\"border-top-style\":l}):\"border-right\"==e.data(\"id\")?o.css({\"border-right-style\":l}):\"border-bottom\"==e.data(\"id\")?o.css({\"border-bottom-style\":l}):\"border-left\"==e.data(\"id\")&&o.css({\"border-left-style\":l}):\"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 r=jQuery(this).closest(\".dslca-modules-section-edit-option-checkbox-wrapper\").find(\".dslca-modules-section-edit-field-checkbox\"),c=\"\";r.each((function(){jQuery(this).prop(\"checked\")&&(c+=jQuery(this).data(\"val\")+\" \")}));var u=c;\"show_on\"==e.data(\"id\")&&(-1!==c.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!==c.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!==c.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===u.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===u.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===u.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===u.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 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){const 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\"==u){if(jQuery(\"#dslca-post-data-thumb\").length){var p=\"url('\"+jQuery(\"#dslca-post-data-thumb\").val()+\"')\";d.css(n,p)}}else\"disabled\"==u&&d.css(n,\"none\");else{var h;e.data(\"css-element\")&&(d=jQuery(e.data(\"css-element\"),o)),n=n.replace(/ /g,\"\").split(\",\"),h=null!=e.data(\"ext\")?s:i;for(var f=0;f<n.length;f++)d.css(n[f],h)}if(a.val(u),!LiveComposer.Builder.Flags.generate_code_after_row_changed)return!1}))},y=()=>{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 n=t.parent().attr(\"data-id\");\"\"!=s.alt&&\"image\"==n&&jQuery('.dslca-module-edit-option-image_alt input[data-id=\"image_alt\"]').val(s.alt),\"\"!=s.title&&\"image\"==n&&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()}))};function w(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(),j()}const b=()=>{const e=document.querySelector(\".dslca-module-edit-options-tab-hook.dslca-active\").dataset.id;if(\"tablet_responsive\"===e||\"phone_responsive\"===e){document.querySelectorAll('.dslca-module-edit-option[data-tab=\"'+e+'\"]').forEach(e=>{const 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\")})}},j=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(),Q(),jQuery(\".dslca-module-edit-options-tab-hook:visible\").length<2?jQuery(\".dslca-module-edit-options-tabs\").hide():jQuery(\".dslca-module-edit-options-tabs\").show(),x(),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(),Go((function(){jQuery(\".dslca-container-loader\").hide()})))),jQuery(\"body\").hasClass(\"rtl\")){var i,s=0,n=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){n+=parseInt(jQuery(this).outerWidth(),10)})),i=parseInt(s)+parseInt(n)+10,jQuery(\".dslca-module-edit-options-wrapper\").css({width:i+\"px\"})}};function Q(){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,n=!0,a=!0,d=!0,l=!0,r=!0,c=!0,u=!0,m=!0,p=!0,h=!0,f=!0,v=!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\")||(n=!1),jQuery('.dslca-module-edit-field[data-id*=\"elements\"][value=\"content\"]').length&&!jQuery('.dslca-module-edit-field[data-id*=\"elements\"][value=\"title\"]').is(\":checked\")&&(a=!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\")||(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\")||(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\")&&(v=!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(),n?jQuery('.dslca-module-edit-options-tab-hook[data-id=\"thumbnail_styling\"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id=\"thumbnail_styling\"]').hide(),a?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(),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(),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(),v?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 _(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\"),Go((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()}))),Pt(\".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 C(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),Go((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()})),Pt(\".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 k(e,t){var o=jQuery(e).closest(\".dslca-module-edit-option-icon\"),i=jQuery(\".dslca-module-edit-field-icon\",o),s=h.indexOf(i.val());if(\"previous\"==t)var n=s-1;else n=s+1;jQuery(\".dslca-module-edit-field-icon-suggest\",o).text(\"\"),n<0&&(n=h.length-1),i.val(h[n]).trigger(\"change\")}function D(e){var t,o,i,s,n,a;window.dslcDebug&&console.log(\"dslc_module_options_color\");var d,l=[],r=\"dslcColors-\"+document.domain;void 0!==localStorage[r]&&(d=JSON.parse(localStorage[r]),l=d),1>l.length&&l.push(\"#78b\"),2>l.length&&l.push(\"#ab0\"),3>l.length&&l.push(\"#de3\"),l.push(\"#fff\"),l.push(\"#000\"),l.push(\"rgba(0,0,0,0)\"),jQuery(e).each((function(){var e=jQuery(this).closest(\".dslca-color-option\"),d=jQuery(this);jQuery(this).val(),d.wpColorPicker({mode:\"hsl\",palettes:l,change:function(e,l){t=d;var r=d.wpColorPicker(\"color\");s=null==r?\"\":r,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),n=jQuery(\".dslca-module-being-edited\",window.LiveComposer.Builder.PreviewAreaDocument),a=t.data(\"id\"),jQuery('.dslca-module-option-front[data-id=\"'+a+'\"]',n).val(s),n.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\");d.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[r]){var e=[s];localStorage[r]=JSON.stringify(e)}else{-1==(e=JSON.parse(localStorage[r])).indexOf(s)&&(e.unshift(s),3<e.length&&e.pop()),localStorage[r]=JSON.stringify(e)}d.wpColorPicker(\"close\")})),window.LiveComposer.Builder.Helpers.colorpickers.push(jQuery(this))}))}function L(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=!0;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\");if(e.hasClass(\"dslca-modules-section-edit-option\"))o=e.find(\".dslca-modules-section-edit-field\");else o=e.find(\".dslca-module-edit-field\");var i=e.find(\".dslca-module-edit-field-slider\"),s=parseFloat(o.val()),n=parseFloat(o.data(\"max\")),a=parseFloat(o.data(\"min\")),d=parseFloat(o.data(\"increment\")),l=!1;if(void 0!==o.data(\"onlypositive\")&&1===o.data(\"onlypositive\")&&(l=!0),s>=n&&(n=2*s),!l&&s<=a&&(a=2*s),i.slider({min:a,max:n,step:d,value:o.val(),slide:function(e,t){o.val(t.value+\"\"),o.trigger(\"change\")},change:function(t,o){(o.value>=n||o.value<=a)&&(i.slider(\"destroy\"),L(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 x(){jQuery(\"html\").removeClass(\"dslc-responsive-preview\"),jQuery(\"body\").removeClass(\"dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet\")}\n/**!\n * Sortable 1.10.2\n * @author\tRubaXa <trash@rubaxa.org>\n * @author\towenm <owen23355@gmail.com>\n * @license MIT\n */\nfunction B(e){return(B=\"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 S(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function A(){return(A=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 P(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){S(e,t,o[t])}))}return e}function E(e,t){if(null==e)return{};var o,i,s=function(e,t){if(null==e)return{};var o,i,s={},n=Object.keys(e);for(i=0;i<n.length;i++)o=n[i],t.indexOf(o)>=0||(s[o]=e[o]);return s}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)o=n[i],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(s[o]=e[o])}return s}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=p.indexOf(o.val())+1;jQuery(\".dslca-module-edit-field-font-suggest\",t).text(\"\"),o.val(p[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=p.indexOf(o.val())-1;jQuery(\".dslca-module-edit-field-font-suggest\",t).text(\"\"),i<0&&(i=p.length-1),o.val(p[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){console.log(\"1 e.which:\"),console.log(e.which);var t,o,i,s,n=!1;t=jQuery(this),o=t.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();if(13!=e.which&&38!=e.which&&40!=e.which){i=t.val();var a=new RegExp(\"^\"+i,\"i\"),d=p.length,l=0;do{if(a.test(p[l])&&!n)n=p[l];l++}while(l<d);n?i!==n&&(s=n,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){if(console.log(\"2 e.which:\"),console.log(e.which),13==e.which||9==e.which){var t,o;t=jQuery(this),o=t.closest(\".dslca-module-edit-option\"),jQuery(\".dslca-module-edit-field-font-suggest\",o).text().length&&(jQuery(this).val(jQuery(\".dslca-module-edit-field-font-suggest\",o).text()).trigger(\"change\"),jQuery(\".dslca-module-edit-field-font-suggest\",o).text(\"\"))}}))};function O(e){if(\"undefined\"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var T=O(/(?:Trident.*rv[ :]?11\\.|msie|iemobile|Windows Phone)/i),I=O(/Edge/i),M=O(/firefox/i),N=O(/safari/i)&&!O(/chrome/i)&&!O(/android/i),F=O(/iP(ad|od|hone)/i),W=O(/chrome/i)&&O(/android/i),U={capture:!1,passive:!1};function H(e,t,o){e.addEventListener(t,o,!T&&U)}function z(e,t,o){e.removeEventListener(t,o,!T&&U)}function R(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}return!1}}function q(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function X(e,t,o,i){if(e){o=o||document;do{if(null!=t&&(\">\"===t[0]?e.parentNode===o&&R(e,t):R(e,t))||i&&e===o)return e;if(e===o)break}while(e=q(e))}return null}var Y,J=/\\s+/g;function G(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 K(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 V(e,t){var o=\"\";if(\"string\"==typeof e)o=e;else do{var i=K(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 $(e,t,o){if(e){var i=e.getElementsByTagName(t),s=0,n=i.length;if(o)for(;s<n;s++)o(i[s],s);return i}return[]}function Z(){var e=document.scrollingElement;return e||document.documentElement}function ee(e,t,o,i,s){if(e.getBoundingClientRect||e===window){var n,a,d,l,r,c,u;if(e!==window&&e!==Z()?(a=(n=e.getBoundingClientRect()).top,d=n.left,l=n.bottom,r=n.right,c=n.height,u=n.width):(a=0,d=0,l=window.innerHeight,r=window.innerWidth,c=window.innerHeight,u=window.innerWidth),(t||o)&&e!==window&&(s=s||e.parentNode,!T))do{if(s&&s.getBoundingClientRect&&(\"none\"!==K(s,\"transform\")||o&&\"static\"!==K(s,\"position\"))){var m=s.getBoundingClientRect();a-=m.top+parseInt(K(s,\"border-top-width\")),d-=m.left+parseInt(K(s,\"border-left-width\")),l=a+n.height,r=d+n.width;break}}while(s=s.parentNode);if(i&&e!==window){var p=V(s||e),h=p&&p.a,f=p&&p.d;p&&(l=(a/=f)+(c/=f),r=(d/=h)+(u/=h))}return{top:a,left:d,bottom:l,right:r,width:u,height:c}}}function te(e,t,o){for(var i=ae(e,!0),s=ee(e)[t];i;){var n=ee(i)[o];if(!(\"top\"===o||\"left\"===o?s>=n:s<=n))return i;if(i===Z())break;i=ae(i,!1)}return!1}function oe(e,t,o){for(var i=0,s=0,n=e.children;s<n.length;){if(\"none\"!==n[s].style.display&&n[s]!==rt.ghost&&n[s]!==rt.dragged&&X(n[s],o.draggable,e,!1)){if(i===t)return n[s];i++}s++}return null}function ie(e,t){for(var o=e.lastElementChild;o&&(o===rt.ghost||\"none\"===K(o,\"display\")||t&&!R(o,t));)o=o.previousElementSibling;return o||null}function se(e,t){var o=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)\"TEMPLATE\"===e.nodeName.toUpperCase()||e===rt.clone||t&&!R(e,t)||o++;return o}function ne(e){var t=0,o=0,i=Z();if(e)do{var s=V(e),n=s.a,a=s.d;t+=e.scrollLeft*n,o+=e.scrollTop*a}while(e!==i&&(e=e.parentNode));return[t,o]}function ae(e,t){if(!e||!e.getBoundingClientRect)return Z();var o=e,i=!1;do{if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var s=K(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 Z();if(i||t)return o;i=!0}}}while(o=o.parentNode);return Z()}function de(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 le(e,t){return function(){if(!Y){var o=arguments,i=this;1===o.length?e.call(i,o[0]):e.apply(i,o),Y=setTimeout((function(){Y=void 0}),t)}}}function re(e,t,o){e.scrollLeft+=t,e.scrollTop+=o}function ce(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 ue=\"Sortable\"+(new Date).getTime();function me(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if(\"none\"!==K(e,\"display\")&&e!==rt.ghost){t.push({target:e,rect:ee(e)});var o=P({},t[t.length-1].rect);if(e.thisAnimationDuration){var i=V(e,!0);i&&(o.top-=i.f,o.left-=i.e)}e.fromRect=o}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.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}(t,{target:e}),1)},animateAll:function(o){var i=this;if(!this.options.animation)return clearTimeout(e),void(\"function\"==typeof o&&o());var s=!1,n=0;t.forEach((function(e){var t=0,o=e.target,a=o.fromRect,d=ee(o),l=o.prevFromRect,r=o.prevToRect,c=e.rect,u=V(o,!0);u&&(d.top-=u.f,d.left-=u.e),o.toRect=d,o.thisAnimationDuration&&de(l,d)&&!de(a,d)&&(c.top-d.top)/(c.left-d.left)==(a.top-d.top)/(a.left-d.left)&&(t=function(e,t,o,i){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-o.top,2)+Math.pow(t.left-o.left,2))*i.animation}(c,l,r,i.options)),de(d,a)||(o.prevFromRect=a,o.prevToRect=d,t||(t=i.options.animation),i.animate(o,c,d,t)),t&&(s=!0,n=Math.max(n,t),clearTimeout(o.animationResetTimer),o.animationResetTimer=setTimeout((function(){o.animationTime=0,o.prevFromRect=null,o.fromRect=null,o.prevToRect=null,o.thisAnimationDuration=null}),t),o.thisAnimationDuration=t)})),clearTimeout(e),s?e=setTimeout((function(){\"function\"==typeof o&&o()}),n):\"function\"==typeof o&&o(),t=[]},animate:function(e,t,o,i){if(i){K(e,\"transition\",\"\"),K(e,\"transform\",\"\");var s=V(this.el),n=s&&s.a,a=s&&s.d,d=(t.left-o.left)/(n||1),l=(t.top-o.top)/(a||1);e.animatingX=!!d,e.animatingY=!!l,K(e,\"transform\",\"translate3d(\"+d+\"px,\"+l+\"px,0)\"),function(e){e.offsetWidth}(e),K(e,\"transition\",\"transform \"+i+\"ms\"+(this.options.easing?\" \"+this.options.easing:\"\")),K(e,\"transform\",\"translate3d(0,0,0)\"),\"number\"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){K(e,\"transition\",\"\"),K(e,\"transform\",\"\"),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),i)}}}}var pe=[],he={initializeByDefault:!0},fe={mount:function(e){for(var t in he)!he.hasOwnProperty(t)||t in e||(e[t]=he[t]);pe.push(e)},pluginEvent:function(e,t,o){var i=this;this.eventCanceled=!1,o.cancel=function(){i.eventCanceled=!0};var s=e+\"Global\";pe.forEach((function(i){t[i.pluginName]&&(t[i.pluginName][s]&&t[i.pluginName][s](P({sortable:t},o)),t.options[i.pluginName]&&t[i.pluginName][e]&&t[i.pluginName][e](P({sortable:t},o)))}))},initializePlugins:function(e,t,o,i){for(var s in pe.forEach((function(i){var s=i.pluginName;if(e.options[s]||i.initializeByDefault){var n=new i(e,t,e.options);n.sortable=e,n.options=e.options,e[s]=n,A(o,n.defaults)}})),e.options)if(e.options.hasOwnProperty(s)){var n=this.modifyOption(e,s,e.options[s]);void 0!==n&&(e.options[s]=n)}},getEventProperties:function(e,t){var o={};return pe.forEach((function(i){\"function\"==typeof i.eventProperties&&A(o,i.eventProperties.call(t[i.pluginName],e))})),o},modifyOption:function(e,t,o){var i;return pe.forEach((function(s){e[s.pluginName]&&s.optionListeners&&\"function\"==typeof s.optionListeners[t]&&(i=s.optionListeners[t].call(e[s.pluginName],o))})),i}};function ve(e){var t=e.sortable,o=e.rootEl,i=e.name,s=e.targetEl,n=e.cloneEl,a=e.toEl,d=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[ue]){var f,v=t.options,g=\"on\"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||T||I?(f=document.createEvent(\"Event\")).initEvent(i,!0,!0):f=new CustomEvent(i,{bubbles:!0,cancelable:!0}),f.to=a||o,f.from=d||o,f.item=s||o,f.clone=n,f.oldIndex=l,f.newIndex=r,f.oldDraggableIndex=c,f.newDraggableIndex=u,f.originalEvent=m,f.pullMode=p?p.lastPutMode:void 0;var y=P({},h,fe.getEventProperties(i,t));for(var w in y)f[w]=y[w];o&&o.dispatchEvent(f),v[g]&&v[g].call(t,f)}}var ge=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.evt,s=E(o,[\"evt\"]);fe.pluginEvent.bind(rt)(e,t,P({dragEl:we,parentEl:be,ghostEl:je,rootEl:Qe,nextEl:_e,lastDownEl:Ce,cloneEl:ke,cloneHidden:De,dragStarted:Fe,putSortable:Pe,activeSortable:rt.active,originalEvent:i,oldIndex:Le,oldDraggableIndex:Be,newIndex:xe,newDraggableIndex:Se,hideGhostForTarget:nt,unhideGhostForTarget:at,cloneNowHidden:function(){De=!0},cloneNowShown:function(){De=!1},dispatchSortableEvent:function(e){ye({sortable:t,name:e,originalEvent:i})}},s))};function ye(e){ve(P({putSortable:Pe,cloneEl:ke,targetEl:we,rootEl:Qe,oldIndex:Le,oldDraggableIndex:Be,newIndex:xe,newDraggableIndex:Se},e))}var we,be,je,Qe,_e,Ce,ke,De,Le,xe,Be,Se,Ae,Pe,Ee,Oe,Te,Ie,Me,Ne,Fe,We,Ue,He,ze,Re=!1,qe=!1,Xe=[],Ye=!1,Je=!1,Ge=[],Ke=!1,Ve=[],$e=\"undefined\"!=typeof document,Ze=F,et=I||T?\"cssFloat\":\"float\",tt=$e&&!W&&!F&&\"draggable\"in document.createElement(\"div\"),ot=function(){if($e){if(T)return!1;var e=document.createElement(\"x\");return e.style.cssText=\"pointer-events:auto\",\"auto\"===e.style.pointerEvents}}(),it=function(e,t){var o=K(e),i=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),s=oe(e,0,t),n=oe(e,1,t),a=s&&K(s),d=n&&K(n),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+ee(s).width,r=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+ee(n).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&&a.float&&\"none\"!==a.float){var c=\"left\"===a.float?\"left\":\"right\";return!n||\"both\"!==d.clear&&d.clear!==c?\"horizontal\":\"vertical\"}return s&&(\"block\"===a.display||\"flex\"===a.display||\"table\"===a.display||\"grid\"===a.display||l>=i&&\"none\"===o[et]||n&&\"none\"===o[et]&&l+r>i)?\"vertical\":\"horizontal\"},st=function(e){function t(e,o){return function(i,s,n,a){var d=i.options.group.name&&s.options.group.name&&i.options.group.name===s.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,s,n,a),o)(i,s,n,a);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\"==B(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},nt=function(){!ot&&je&&K(je,\"display\",\"none\")},at=function(){!ot&&je&&K(je,\"display\",\"\")};$e&&document.addEventListener(\"click\",(function(e){if(qe)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),qe=!1,!1}),!0);var dt=function(e){if(we){e=e.touches?e.touches[0]:e;var t=(s=e.clientX,n=e.clientY,Xe.some((function(e){if(!ie(e)){var t=ee(e),o=e[ue].options.emptyInsertThreshold,i=s>=t.left-o&&s<=t.right+o,d=n>=t.top-o&&n<=t.bottom+o;return o&&i&&d?a=e:void 0}})),a);if(t){var o={};for(var i in e)e.hasOwnProperty(i)&&(o[i]=e[i]);o.target=o.rootEl=t,o.preventDefault=void 0,o.stopPropagation=void 0,t[ue]._onDragOver(o)}}var s,n,a},lt=function(e){we&&we.parentNode[ue]._isOutsideThisEl(e.target)};function rt(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=A({},t),e[ue]=this;var o={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 it(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!==rt.supportPointer&&\"PointerEvent\"in window,emptyInsertThreshold:5};for(var i in fe.initializePlugins(this,e,o),o)!(i in t)&&(t[i]=o[i]);for(var s in st(t),this)\"_\"===s.charAt(0)&&\"function\"==typeof this[s]&&(this[s]=this[s].bind(this));this.nativeDraggable=!t.forceFallback&&tt,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?H(e,\"pointerdown\",this._onTapStart):(H(e,\"mousedown\",this._onTapStart),H(e,\"touchstart\",this._onTapStart)),this.nativeDraggable&&(H(e,\"dragover\",this),H(e,\"dragenter\",this)),Xe.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),A(this,me())}function ct(e,t,o,i,s,n,a,d){var l,r,c=e[ue],u=c.options.onMove;return!window.CustomEvent||T||I?(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=n||ee(t),l.willInsertAfter=d,l.originalEvent=a,e.dispatchEvent(l),u&&(r=u.call(c,l,a)),r}function ut(e){e.draggable=!1}function mt(){Ke=!1}function pt(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 ht(e){return setTimeout(e,0)}function ft(e){return clearTimeout(e)}rt.prototype={constructor:rt,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(We=null)},_getDirection:function(e,t){return\"function\"==typeof this.options.direction?this.options.direction.call(this,e,t,we):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,o=this.el,i=this.options,s=i.preventOnFilter,n=e.type,a=e.touches&&e.touches[0]||e.pointerType&&\"touch\"===e.pointerType&&e,d=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||d,r=i.filter;if(function(e){Ve.length=0;var t=e.getElementsByTagName(\"input\"),o=t.length;for(;o--;){var i=t[o];i.checked&&Ve.push(i)}}(o),!we&&!(/mousedown|pointerdown/.test(n)&&0!==e.button||i.disabled||l.isContentEditable||(d=X(d,i.draggable,o,!1))&&d.animated||Ce===d)){if(Le=se(d),Be=se(d,i.draggable),\"function\"==typeof r){if(r.call(this,e,d,this))return ye({sortable:t,rootEl:l,name:\"filter\",targetEl:d,toEl:o,fromEl:o}),ge(\"filter\",t,{evt:e}),void(s&&e.cancelable&&e.preventDefault())}else if(r&&(r=r.split(\",\").some((function(i){if(i=X(l,i.trim(),o,!1))return ye({sortable:t,rootEl:i,name:\"filter\",targetEl:d,fromEl:o,toEl:o}),ge(\"filter\",t,{evt:e}),!0}))))return void(s&&e.cancelable&&e.preventDefault());i.handle&&!X(l,i.handle,o,!1)||this._prepareDragStart(e,a,d)}}},_prepareDragStart:function(e,t,o){var i,s=this,n=s.el,a=s.options,d=n.ownerDocument;if(o&&!we&&o.parentNode===n){var l=ee(o);if(Qe=n,be=(we=o).parentNode,_e=we.nextSibling,Ce=o,Ae=a.group,rt.dragged=we,Ee={target:we,clientX:(t||e).clientX,clientY:(t||e).clientY},Me=Ee.clientX-l.left,Ne=Ee.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,we.style[\"will-change\"]=\"all\",i=function(){ge(\"delayEnded\",s,{evt:e}),rt.eventCanceled?s._onDrop():(s._disableDelayedDragEvents(),!M&&s.nativeDraggable&&(we.draggable=!0),s._triggerDragStart(e,t),ye({sortable:s,name:\"choose\",originalEvent:e}),G(we,a.chosenClass,!0))},a.ignore.split(\",\").forEach((function(e){$(we,e.trim(),ut)})),H(d,\"dragover\",dt),H(d,\"mousemove\",dt),H(d,\"touchmove\",dt),H(d,\"mouseup\",s._onDrop),H(d,\"touchend\",s._onDrop),H(d,\"touchcancel\",s._onDrop),M&&this.nativeDraggable&&(this.options.touchStartThreshold=4,we.draggable=!0),ge(\"delayStart\",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(I||T))i();else{if(rt.eventCanceled)return void this._onDrop();H(d,\"mouseup\",s._disableDelayedDrag),H(d,\"touchend\",s._disableDelayedDrag),H(d,\"touchcancel\",s._disableDelayedDrag),H(d,\"mousemove\",s._delayedDragTouchMoveHandler),H(d,\"touchmove\",s._delayedDragTouchMoveHandler),a.supportPointer&&H(d,\"pointermove\",s._delayedDragTouchMoveHandler),s._dragStartTimer=setTimeout(i,a.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(){we&&ut(we),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;z(e,\"mouseup\",this._disableDelayedDrag),z(e,\"touchend\",this._disableDelayedDrag),z(e,\"touchcancel\",this._disableDelayedDrag),z(e,\"mousemove\",this._delayedDragTouchMoveHandler),z(e,\"touchmove\",this._delayedDragTouchMoveHandler),z(e,\"pointermove\",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||\"touch\"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?H(document,\"pointermove\",this._onTouchMove):H(document,t?\"touchmove\":\"mousemove\",this._onTouchMove):(H(we,\"dragend\",this),H(Qe,\"dragstart\",this._onDragStart));try{document.selection?ht((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(Re=!1,Qe&&we){ge(\"dragStarted\",this,{evt:t}),this.nativeDraggable&&H(document,\"dragover\",lt);var o=this.options;!e&&G(we,o.dragClass,!1),G(we,o.ghostClass,!0),rt.active=this,e&&this._appendGhost(),ye({sortable:this,name:\"start\",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Oe){this._lastX=Oe.clientX,this._lastY=Oe.clientY,nt();for(var e=document.elementFromPoint(Oe.clientX,Oe.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Oe.clientX,Oe.clientY))!==t;)t=e;if(we.parentNode[ue]._isOutsideThisEl(e),t)do{if(t[ue]){if(t[ue]._onDragOver({clientX:Oe.clientX,clientY:Oe.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);at()}},_onTouchMove:function(e){if(Ee){var t=this.options,o=t.fallbackTolerance,i=t.fallbackOffset,s=e.touches?e.touches[0]:e,n=je&&V(je,!0),a=je&&n&&n.a,d=je&&n&&n.d,l=Ze&&ze&&ne(ze),r=(s.clientX-Ee.clientX+i.x)/(a||1)+(l?l[0]-Ge[0]:0)/(a||1),c=(s.clientY-Ee.clientY+i.y)/(d||1)+(l?l[1]-Ge[1]:0)/(d||1);if(!rt.active&&!Re){if(o&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))<o)return;this._onDragStart(e,!0)}if(je){n?(n.e+=r-(Te||0),n.f+=c-(Ie||0)):n={a:1,b:0,c:0,d:1,e:r,f:c};var u=\"matrix(\".concat(n.a,\",\").concat(n.b,\",\").concat(n.c,\",\").concat(n.d,\",\").concat(n.e,\",\").concat(n.f,\")\");K(je,\"webkitTransform\",u),K(je,\"mozTransform\",u),K(je,\"msTransform\",u),K(je,\"transform\",u),Te=r,Ie=c,Oe=s}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!je){var e=this.options.fallbackOnBody?document.body:Qe,t=ee(we,!0,Ze,!0,e),o=this.options;if(Ze){for(ze=e;\"static\"===K(ze,\"position\")&&\"none\"===K(ze,\"transform\")&&ze!==document;)ze=ze.parentNode;ze!==document.body&&ze!==document.documentElement?(ze===document&&(ze=Z()),t.top+=ze.scrollTop,t.left+=ze.scrollLeft):ze=Z(),Ge=ne(ze)}G(je=we.cloneNode(!0),o.ghostClass,!1),G(je,o.fallbackClass,!0),G(je,o.dragClass,!0),K(je,\"transition\",\"\"),K(je,\"transform\",\"\"),K(je,\"box-sizing\",\"border-box\"),K(je,\"margin\",0),K(je,\"top\",t.top),K(je,\"left\",t.left),K(je,\"width\",t.width),K(je,\"height\",t.height),K(je,\"opacity\",\"0.8\"),K(je,\"position\",Ze?\"absolute\":\"fixed\"),K(je,\"zIndex\",\"100000\"),K(je,\"pointerEvents\",\"none\"),rt.ghost=je,e.appendChild(je),K(je,\"transform-origin\",Me/parseInt(je.style.width)*100+\"% \"+Ne/parseInt(je.style.height)*100+\"%\")}},_onDragStart:function(e,t){var o=this,i=e.dataTransfer,s=o.options;ge(\"dragStart\",this,{evt:e}),rt.eventCanceled?this._onDrop():(ge(\"setupClone\",this),rt.eventCanceled||((ke=ce(we)).draggable=!1,ke.style[\"will-change\"]=\"\",this._hideClone(),G(ke,this.options.chosenClass,!1),rt.clone=ke),o.cloneId=ht((function(){ge(\"clone\",o),rt.eventCanceled||(o.options.removeCloneOnHide||Qe.insertBefore(ke,we),o._hideClone(),ye({sortable:o,name:\"clone\"}))})),!t&&G(we,s.dragClass,!0),t?(qe=!0,o._loopId=setInterval(o._emulateDragOver,50)):(z(document,\"mouseup\",o._onDrop),z(document,\"touchend\",o._onDrop),z(document,\"touchcancel\",o._onDrop),i&&(i.effectAllowed=\"move\",s.setData&&s.setData.call(o,i,we)),H(document,\"drop\",o),K(we,\"transform\",\"translateZ(0)\")),Re=!0,o._dragStartId=ht(o._dragStarted.bind(o,t,e)),H(document,\"selectstart\",o),Fe=!0,N&&K(document.body,\"user-select\",\"none\"))},_onDragOver:function(e){var t,o,i,s,n=this.el,a=e.target,d=this.options,l=d.group,r=rt.active,c=Ae===l,u=d.sort,m=Pe||r,p=this,h=!1;if(!Ke){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=X(a,d.draggable,n,!0),x(\"dragOver\"),rt.eventCanceled)return h;if(we.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return S(!1);if(qe=!1,r&&!d.disabled&&(c?u||(i=!Qe.contains(we)):Pe===this||(this.lastPutMode=Ae.checkPull(this,r,we,e))&&l.checkPut(this,r,we,e))){if(s=\"vertical\"===this._getDirection(e,a),t=ee(we),x(\"dragOverValid\"),rt.eventCanceled)return h;if(i)return be=Qe,B(),this._hideClone(),x(\"revert\"),rt.eventCanceled||(_e?Qe.insertBefore(we,_e):Qe.appendChild(we)),S(!0);var f=ie(n,d.draggable);if(!f||function(e,t,o){var i=ee(ie(o.el,o.options.draggable));return t?e.clientX>i.right+10||e.clientX<=i.right&&e.clientY>i.bottom&&e.clientX>=i.left:e.clientX>i.right&&e.clientY>i.top||e.clientX<=i.right&&e.clientY>i.bottom+10}(e,s,this)&&!f.animated){if(f===we)return S(!1);if(f&&n===e.target&&(a=f),a&&(o=ee(a)),!1!==ct(Qe,n,we,t,a,o,e,!!a))return B(),n.appendChild(we),be=n,A(),S(!0)}else if(a.parentNode===n){o=ee(a);var v,g,y,w=we.parentNode!==n,b=!function(e,t,o){var i=o?e.left:e.top,s=o?e.right:e.bottom,n=o?e.width:e.height,a=o?t.left:t.top,d=o?t.right:t.bottom,l=o?t.width:t.height;return i===a||s===d||i+n/2===a+l/2}(we.animated&&we.toRect||t,a.animated&&a.toRect||o,s),j=s?\"top\":\"left\",Q=te(a,\"top\",\"top\")||te(we,\"top\",\"top\"),_=Q?Q.scrollTop:void 0;if(We!==a&&(g=o[j],Ye=!1,Je=!b&&d.invertSwap||w),0!==(v=function(e,t,o,i,s,n,a,d){var l=i?e.clientY:e.clientX,r=i?o.height:o.width,c=i?o.top:o.left,u=i?o.bottom:o.right,m=!1;if(!a)if(d&&He<r*s){if(!Ye&&(1===Ue?l>c+r*n/2:l<u-r*n/2)&&(Ye=!0),Ye)m=!0;else if(1===Ue?l<c+He:l>u-He)return-Ue}else if(l>c+r*(1-s)/2&&l<u-r*(1-s)/2)return function(e){return se(we)<se(e)?1:-1}(t);if((m=m||a)&&(l<c+r*n/2||l>u-r*n/2))return l>c+r/2?1:-1;return 0}(e,a,o,s,b?1:d.swapThreshold,null==d.invertedSwapThreshold?d.swapThreshold:d.invertedSwapThreshold,Je,We===a))){var C=se(we);do{C-=v,y=be.children[C]}while(y&&(\"none\"===K(y,\"display\")||y===je))}if(0===v||y===a)return S(!1);We=a,Ue=v;var k=a.nextElementSibling,D=!1,L=ct(Qe,n,we,t,a,o,e,D=1===v);if(!1!==L)return 1!==L&&-1!==L||(D=1===L),Ke=!0,setTimeout(mt,30),B(),D&&!k?n.appendChild(we):a.parentNode.insertBefore(we,D?k:a),Q&&re(Q,0,_-Q.scrollTop),be=we.parentNode,void 0===g||Je||(He=Math.abs(g-ee(a)[j])),A(),S(!0)}if(n.contains(we))return S(!1)}return!1}function x(d,l){ge(d,p,P({evt:e,isOwner:c,axis:s?\"vertical\":\"horizontal\",revert:i,dragRect:t,targetRect:o,canSort:u,fromSortable:m,target:a,completed:S,onMove:function(o,i){return ct(Qe,n,we,t,o,ee(o),e,i)},changed:A},l))}function B(){x(\"dragOverAnimationCapture\"),p.captureAnimationState(),p!==m&&m.captureAnimationState()}function S(t){return x(\"dragOverCompleted\",{insertion:t}),t&&(c?r._hideClone():r._showClone(p),p!==m&&(G(we,Pe?Pe.options.ghostClass:r.options.ghostClass,!1),G(we,d.ghostClass,!0)),Pe!==p&&p!==rt.active?Pe=p:p===rt.active&&Pe&&(Pe=null),m===p&&(p._ignoreWhileAnimating=a),p.animateAll((function(){x(\"dragOverAnimationComplete\"),p._ignoreWhileAnimating=null})),p!==m&&(m.animateAll(),m._ignoreWhileAnimating=null)),(a===we&&!we.animated||a===n&&!a.animated)&&(We=null),d.dragoverBubble||e.rootEl||a===document||(we.parentNode[ue]._isOutsideThisEl(e.target),!t&&dt(e)),!d.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function A(){xe=se(we),Se=se(we,d.draggable),ye({sortable:p,name:\"change\",toEl:n,newIndex:xe,newDraggableIndex:Se,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){z(document,\"mousemove\",this._onTouchMove),z(document,\"touchmove\",this._onTouchMove),z(document,\"pointermove\",this._onTouchMove),z(document,\"dragover\",dt),z(document,\"mousemove\",dt),z(document,\"touchmove\",dt)},_offUpEvents:function(){var e=this.el.ownerDocument;z(e,\"mouseup\",this._onDrop),z(e,\"touchend\",this._onDrop),z(e,\"pointerup\",this._onDrop),z(e,\"touchcancel\",this._onDrop),z(document,\"selectstart\",this)},_onDrop:function(e){var t=this.el,o=this.options;xe=se(we),Se=se(we,o.draggable),ge(\"drop\",this,{evt:e}),be=we&&we.parentNode,xe=se(we),Se=se(we,o.draggable),rt.eventCanceled?this._nulling():(Re=!1,Je=!1,Ye=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ft(this.cloneId),ft(this._dragStartId),this.nativeDraggable&&(z(document,\"drop\",this),z(t,\"dragstart\",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),N&&K(document.body,\"user-select\",\"\"),K(we,\"transform\",\"\"),e&&(Fe&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),je&&je.parentNode&&je.parentNode.removeChild(je),(Qe===be||Pe&&\"clone\"!==Pe.lastPutMode)&&ke&&ke.parentNode&&ke.parentNode.removeChild(ke),we&&(this.nativeDraggable&&z(we,\"dragend\",this),ut(we),we.style[\"will-change\"]=\"\",Fe&&!Re&&G(we,Pe?Pe.options.ghostClass:this.options.ghostClass,!1),G(we,this.options.chosenClass,!1),ye({sortable:this,name:\"unchoose\",toEl:be,newIndex:null,newDraggableIndex:null,originalEvent:e}),Qe!==be?(xe>=0&&(ye({rootEl:be,name:\"add\",toEl:be,fromEl:Qe,originalEvent:e}),ye({sortable:this,name:\"remove\",toEl:be,originalEvent:e}),ye({rootEl:be,name:\"sort\",toEl:be,fromEl:Qe,originalEvent:e}),ye({sortable:this,name:\"sort\",toEl:be,originalEvent:e})),Pe&&Pe.save()):xe!==Le&&xe>=0&&(ye({sortable:this,name:\"update\",toEl:be,originalEvent:e}),ye({sortable:this,name:\"sort\",toEl:be,originalEvent:e})),rt.active&&(null!=xe&&-1!==xe||(xe=Le,Se=Be),ye({sortable:this,name:\"end\",toEl:be,originalEvent:e}),this.save()))),this._nulling())},_nulling:function(){ge(\"nulling\",this),Qe=we=be=je=_e=ke=Ce=De=Ee=Oe=Fe=xe=Se=Le=Be=We=Ue=Pe=Ae=rt.dragged=rt.ghost=rt.clone=rt.active=null,Ve.forEach((function(e){e.checked=!0})),Ve.length=Te=Ie=0},handleEvent:function(e){switch(e.type){case\"drop\":case\"dragend\":this._onDrop(e);break;case\"dragenter\":case\"dragover\":we&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect=\"move\");e.cancelable&&e.preventDefault()}(e));break;case\"selectstart\":e.preventDefault()}},toArray:function(){for(var e,t=[],o=this.el.children,i=0,s=o.length,n=this.options;i<s;i++)X(e=o[i],n.draggable,this.el,!1)&&t.push(e.getAttribute(n.dataIdAttr)||pt(e));return t},sort:function(e){var t={},o=this.el;this.toArray().forEach((function(e,i){var s=o.children[i];X(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 X(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=fe.modifyOption(this,e,t);o[e]=void 0!==i?i:t,\"group\"===e&&st(o)},destroy:function(){ge(\"destroy\",this);var e=this.el;e[ue]=null,z(e,\"mousedown\",this._onTapStart),z(e,\"touchstart\",this._onTapStart),z(e,\"pointerdown\",this._onTapStart),this.nativeDraggable&&(z(e,\"dragover\",this),z(e,\"dragenter\",this)),Array.prototype.forEach.call(e.querySelectorAll(\"[draggable]\"),(function(e){e.removeAttribute(\"draggable\")})),this._onDrop(),this._disableDelayedDragEvents(),Xe.splice(Xe.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!De){if(ge(\"hideClone\",this),rt.eventCanceled)return;K(ke,\"display\",\"none\"),this.options.removeCloneOnHide&&ke.parentNode&&ke.parentNode.removeChild(ke),De=!0}},_showClone:function(e){if(\"clone\"===e.lastPutMode){if(De){if(ge(\"showClone\",this),rt.eventCanceled)return;Qe.contains(we)&&!this.options.group.revertClone?Qe.insertBefore(ke,we):_e?Qe.insertBefore(ke,_e):Qe.appendChild(ke),this.options.group.revertClone&&this.animate(we,ke),K(ke,\"display\",\"\"),De=!1}}else this._hideClone()}},$e&&H(document,\"touchmove\",(function(e){(rt.active||Re)&&e.cancelable&&e.preventDefault()})),rt.utils={on:H,off:z,css:K,find:$,is:function(e,t){return!!X(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:le,closest:X,toggleClass:G,clone:ce,index:se,nextTick:ht,cancelNextTick:ft,detectDirection:it,getChild:oe},rt.get=function(e){return e[ue]},rt.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&&(rt.utils=P({},rt.utils,e.utils)),fe.mount(e)}))},rt.create=function(e,t){return new rt(e,t)},rt.version=\"1.10.2\";var vt,gt,yt,wt,bt,jt,Qt=[],_t=!1;function Ct(){Qt.forEach((function(e){clearInterval(e.pid)})),Qt=[]}function kt(){clearInterval(jt)}var Dt=le((function(e,t,o,i){if(t.scroll){var s,n=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,d=t.scrollSensitivity,l=t.scrollSpeed,r=Z(),c=!1;gt!==o&&(gt=o,Ct(),vt=t.scroll,s=t.scrollFn,!0===vt&&(vt=ae(o,!0)));var u=0,m=vt;do{var p=m,h=ee(p),f=h.top,v=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=K(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-n)<=d&&D+w<_)-(Math.abs(g-n)<=d&&!!D),B=Q&&(Math.abs(v-a)<=d&&L+b<C)-(Math.abs(f-a)<=d&&!!L);if(!Qt[u])for(var S=0;S<=u;S++)Qt[S]||(Qt[S]={});Qt[u].vx==x&&Qt[u].vy==B&&Qt[u].el===p||(Qt[u].el=p,Qt[u].vx=x,Qt[u].vy=B,clearInterval(Qt[u].pid),0==x&&0==B||(c=!0,Qt[u].pid=setInterval(function(){i&&0===this.layer&&rt.active._onTouchMove(bt);var t=Qt[this.layer].vy?Qt[this.layer].vy*l:0,o=Qt[this.layer].vx?Qt[this.layer].vx*l:0;\"function\"==typeof s&&\"continue\"!==s.call(rt.dragged.parentNode[ue],o,t,e,bt,Qt[this.layer].el)||re(Qt[this.layer].el,o,t)}.bind({layer:u}),24))),u++}while(t.bubbleScroll&&m!==r&&(m=ae(m,!1)));_t=c}}),30),Lt=function(e){var t=e.originalEvent,o=e.putSortable,i=e.dragEl,s=e.activeSortable,n=e.dispatchSortableEvent,a=e.hideGhostForTarget,d=e.unhideGhostForTarget;if(t){var l=o||s;a();var r=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(r.clientX,r.clientY);d(),l&&!l.el.contains(c)&&(n(\"spill\"),this.onSpill({dragEl:i,putSortable:o}))}};function xt(){}function Bt(){}xt.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=oe(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:Lt},A(xt,{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:Lt},A(Bt,{pluginName:\"removeOnSpill\"});rt.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?H(document,\"dragover\",this._handleAutoScroll):this.options.supportPointer?H(document,\"pointermove\",this._handleFallbackAutoScroll):t.touches?H(document,\"touchmove\",this._handleFallbackAutoScroll):H(document,\"mousemove\",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?z(document,\"dragover\",this._handleAutoScroll):(z(document,\"pointermove\",this._handleFallbackAutoScroll),z(document,\"touchmove\",this._handleFallbackAutoScroll),z(document,\"mousemove\",this._handleFallbackAutoScroll)),kt(),Ct(),clearTimeout(Y),Y=void 0},nulling:function(){bt=gt=vt=_t=jt=yt=wt=null,Qt.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,n=document.elementFromPoint(i,s);if(bt=e,t||I||T||N){Dt(e,this.options,n,t);var a=ae(n,!0);!_t||jt&&i===yt&&s===wt||(jt&&kt(),jt=setInterval((function(){var n=ae(document.elementFromPoint(i,s),!0);n!==a&&(a=n,Ct()),Dt(e,o.options,n,t)}),10),yt=i,wt=s)}else{if(!this.options.bubbleScroll||ae(n,!0)===Z())return void Ct();Dt(e,this.options,ae(n,!1),!1)}}},A(e,{pluginName:\"scroll\",initializeByDefault:!0})}),rt.mount(Bt,xt);var St=rt;window.onerror=function(e,t,o,i){Mt(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> &nbsp; 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){Mt(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;if(jQuery(\".dslca-module-being-edited\",LiveComposer.Builder.PreviewAreaDocument).length?(e=jQuery(\".dslca-module-being-edited\",LiveComposer.Builder.PreviewAreaDocument),\"#5890e5\"):jQuery(\".dslca-modules-section-being-edited\",LiveComposer.Builder.PreviewAreaDocument).length&&(e=jQuery(\".dslca-modules-section-being-edited\",LiveComposer.Builder.PreviewAreaDocument),\"#eabba9\"),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(),function(){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(),function(){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(),Pt(\".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\");Pt(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){e.stopPropagation(),jQuery(\".dslca-section-title-filter\",this).length&&(!function(){window.dslcDebug&&console.log(\"dslc_generate_filters\");var e,t=[],o='<a html=\"#\" data-origin=\"\">Show All</a>';jQuery(\".dslca-section:visible .dslca-origin\").each((function(){e=jQuery(this),-1==jQuery.inArray(e.data(\"origin\"),t)&&(t.push(e.data(\"origin\")),o+='<a href=\"#\" data-origin=\"'+e.data(\"origin\")+'\">'+e.data(\"origin\")+\"</a>\")})),jQuery(\".dslca-section:visible .dslca-section-title-filter-options\").html(o).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=jQuery(this).data(\"origin\"),o=jQuery(this).closest(\".dslca-section\");o.hasClass(\"dslca-templates-load\"),jQuery(\".dslca-section-title-filter-curr\",o).text(jQuery(this).text()),jQuery(\".dslca-section-scroller-inner\").css({left:0}),function(e,t){window.dslcDebug&&console.log(\"dslc_filter_origin\");jQuery(\".dslca-origin\",t).attr(\"data-display-module\",\"false\"),jQuery('.dslca-origin[data-origin=\"'+e+'\"]',t).attr(\"data-display-module\",\"true\"),\"\"==e&&(jQuery(\".dslca-origin\",t).attr(\"data-display-module\",\"true\"),jQuery(\".dslca-origin.dslca-exclude\",t).attr(\"data-display-module\",\"false\"))}(t,o),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\")};const At=()=>{window.dslcDebug&&console.log(\"hidePublishButton\"),jQuery(\".dslca-save-composer\").hide(),jQuery(\".dslca-save-draft-composer\").hide()},Pt=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(\"\"),j(),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 Et(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 n=o.data(\"affect-on-change-el\");if(void 0!==n){var a=n.split(\",\");n=\"\";for(var d=0;d<a.length;d++)d>0&&(n+=\", \"),n+=s+\"#\"+i+\" \"+a[d];var l,r=o.data(\"affect-on-change-rule\").replace(/ /g,\"\").split(\",\"),c=o.data(\"ext\");if(t.toggleClass(\"dslca-option-off\"),t.hasClass(\"dslca-option-off\")){l=Tt(e),o.data(\"val-bckp\",l);for(d=0;d<r.length;d++)jQuery(n,LiveComposer.Builder.PreviewAreaDocument).css(r[d],\"\"),Ot(n,r[d],i);o.val(\"\").trigger(\"change\")}else{o.val(o.data(\"val-bckp\")).trigger(\"change\"),l=function(e,t){if(\"\"===e||null===e)return e;-1==e.indexOf(t)&&(e+=t);return e}(l=Tt(e),c||\"\");for(d=0;d<r.length;d++){var u=n+\"{\"+r[d]+\": \"+l+\"}\";LiveComposer.Builder.Helpers.processInlineStyleTag({context:t,rule:r[d],elems:n.replace(new RegExp(\"#\"+i,\"gi\"),\"\").trim(),styleContent:u})}}}}}function Ot(e,t,o){var i,s=\"css-for-\"+o,n=document.getElementById(\"page-builder-frame\").contentWindow.document.getElementById(s);if(e=e.replace(/\\s\\s+/g,\" \"),n){(n=n.sheet).rules?i=\"rules\":n.cssRules&&(i=\"cssRules\");for(var a=0;a<n[i].length;a++)if(n[i][a].selectorText==e&&n[i][a].style[t]){n[i][a].style[t]=\"\";break}}}function Tt(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(),Et(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\")&&Et(jQuery(e.target).closest(\".dslca-module-edit-option\").find(\".dslca-module-edit-field\").data(\"id\"))}))}));const It=()=>{jQuery([document,LiveComposer.Builder.PreviewAreaWindow.document]).unbind(\"keydown\").bind(\"keydown\",(function(e){var t;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()}}))),function(e){if(83==e.which&&(e.metaKey||e.ctrlKey)&&\"block\"==jQuery(\".dslca-save-composer-hook\").css(\"display\"))dslc_save_composer(),e.preventDefault()}(e),function(e){(e.metaKey||e.ctrlKey)&&LiveComposer.Builder.PreviewAreaWindow.document.querySelector(\"body\").classList.add(\"key-press-cmd\")}(e)})),jQuery([document,LiveComposer.Builder.PreviewAreaWindow.document]).unbind(\"keyup\").bind(\"keyup\",(function(e){\"Meta\"===e.key&&LiveComposer.Builder.PreviewAreaWindow.document.querySelector(\"body\").classList.remove(\"key-press-cmd\")}))};function Mt(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 n=\"\";n+='<br /><strong style=\"color:#E55F5F;\">'+s+\"</strong><br />\",n+=e+'<br /> File \"'+t+'\", line '+o+\", char \"+i+\"<br />\",\"undefined\"!=typeof Storage&&localStorage.setItem(\"js_errors_report\",n)}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\")),n=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!==n&&(t+=' <span class=\"dslc-hf-block-overlay-text\">'+n+\"</span>\"),t+=\"</div>\";var a=document.createElement(\"div\");a.innerHTML=t,o.append(a)}))}));var Nt={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:\"normal\",autoplay:!0,timelineOffset:0},Ft={duration:1e3,delay:0,endDelay:0,easing:\"easeOutElastic(1, .5)\",round:0},Wt=[\"translateX\",\"translateY\",\"translateZ\",\"rotate\",\"rotateX\",\"rotateY\",\"rotateZ\",\"scale\",\"scaleX\",\"scaleY\",\"scaleZ\",\"skew\",\"skewX\",\"skewY\",\"perspective\"],Ut={CSS:{},springs:{}};function Ht(e,t,o){return Math.min(Math.max(e,t),o)}function zt(e,t){return e.indexOf(t)>-1}function Rt(e,t){return e.apply(null,t)}var qt={arr:function(e){return Array.isArray(e)},obj:function(e){return zt(Object.prototype.toString.call(e),\"Object\")},pth:function(e){return qt.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||qt.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 qt.hex(e)||qt.rgb(e)||qt.hsl(e)},key:function(e){return!Nt.hasOwnProperty(e)&&!Ft.hasOwnProperty(e)&&\"targets\"!==e&&\"keyframes\"!==e}};function Xt(e){var t=/\\(([^)]+)\\)/.exec(e);return t?t[1].split(\",\").map((function(e){return parseFloat(e)})):[]}function Yt(e,t){var o=Xt(e),i=Ht(qt.und(o[0])?1:o[0],.1,100),s=Ht(qt.und(o[1])?100:o[1],.1,100),n=Ht(qt.und(o[2])?10:o[2],.1,100),a=Ht(qt.und(o[3])?0:o[3],.1,100),d=Math.sqrt(s/i),l=n/(2*Math.sqrt(s*i)),r=l<1?d*Math.sqrt(1-l*l):0,c=l<1?(l*d-a)/r:-a+d;function u(e){var o=t?t*e/1e3:e;return o=l<1?Math.exp(-o*l*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=Ut.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 Ut.springs[e]=s,s}}function Jt(e){return void 0===e&&(e=10),function(t){return Math.round(t*e)*(1/e)}}var Gt,Kt,Vt=function(){function e(e,t){return 1-3*t+3*e}function t(e,t){return 3*t-6*e}function o(e){return 3*e}function i(i,s,n){return((e(s,n)*i+t(s,n))*i+o(s))*i}function s(i,s,n){return 3*e(s,n)*i*i+2*t(s,n)*i+o(s)}return function(e,t,o,n){if(0<=e&&e<=1&&0<=o&&o<=1){var a=new Float32Array(11);if(e!==t||o!==n)for(var d=0;d<11;++d)a[d]=i(.1*d,e,o);return function(s){return e===t&&o===n?s:0===s||1===s?s:i(l(s),t,n)}}function l(t){for(var n=0,d=1;10!==d&&a[d]<=t;++d)n+=.1;--d;var l=n+.1*((t-a[d])/(a[d+1]-a[d])),r=s(l,e,o);return r>=.001?function(e,t,o,n){for(var a=0;a<4;++a){var d=s(t,o,n);if(0===d)return t;t-=(i(t,o,n)-e)/d}return t}(t,l,e,o):0===r?l:function(e,t,o,s,n){var a,d,l=0;do{(a=i(d=t+(o-t)/2,s,n)-e)>0?o=d:t=d}while(Math.abs(a)>1e-7&&++l<10);return d}(t,n,n+.1,e,o)}}}(),$t=(Gt={linear:function(){return function(e){return e}}},Kt={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=Ht(e,1,10),i=Ht(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){Kt[e]=function(){return function(e){return Math.pow(e,t+2)}}})),Object.keys(Kt).forEach((function(e){var t=Kt[e];Gt[\"easeIn\"+e]=t,Gt[\"easeOut\"+e]=function(e,o){return function(i){return 1-t(e,o)(1-i)}},Gt[\"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}}})),Gt);function Zt(e,t){if(qt.fnc(e))return e;var o=e.split(\"(\")[0],i=$t[o],s=Xt(e);switch(o){case\"spring\":return Yt(e,t);case\"cubicBezier\":return Rt(Vt,s);case\"steps\":return Rt(Jt,s);default:return Rt(i,s)}}function eo(e){try{return document.querySelectorAll(e)}catch(e){return}}function to(e,t){for(var o=e.length,i=arguments.length>=2?arguments[1]:void 0,s=[],n=0;n<o;n++)if(n in e){var a=e[n];t.call(i,a,n,e)&&s.push(a)}return s}function oo(e){return e.reduce((function(e,t){return e.concat(qt.arr(t)?oo(t):t)}),[])}function io(e){return qt.arr(e)?e:(qt.str(e)&&(e=eo(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function so(e,t){return e.some((function(e){return e===t}))}function no(e){var t={};for(var o in e)t[o]=e[o];return t}function ao(e,t){var o=no(e);for(var i in e)o[i]=t.hasOwnProperty(i)?t[i]:e[i];return o}function lo(e,t){var o=no(e);for(var i in t)o[i]=qt.und(e[i])?t[i]:e[i];return o}function ro(e){return qt.rgb(e)?(o=/rgb\\((\\d+,\\s*[\\d]+,\\s*[\\d]+)\\)/g.exec(t=e))?\"rgba(\"+o[1]+\",1)\":t:qt.hex(e)?function(e){var t=e.replace(/^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i,(function(e,t,o,i){return t+t+o+o+i+i})),o=/^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(t);return\"rgba(\"+parseInt(o[1],16)+\",\"+parseInt(o[2],16)+\",\"+parseInt(o[3],16)+\",1)\"}(e):qt.hsl(e)?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),n=parseInt(s[1],10)/360,a=parseInt(s[2],10)/100,d=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==a)t=o=i=d;else{var c=d<.5?d*(1+a):d+a-d*a,u=2*d-c;t=r(u,c,n+1/3),o=r(u,c,n),i=r(u,c,n-1/3)}return\"rgba(\"+255*t+\",\"+255*o+\",\"+255*i+\",\"+l+\")\"}(e):void 0;var t,o}function co(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 uo(e,t){return qt.fnc(e)?e(t.target,t.id,t.total):e}function mo(e,t){return e.getAttribute(t)}function po(e,t,o){if(so([o,\"deg\",\"rad\",\"turn\"],co(t)))return t;var i=Ut.CSS[t+o];if(!qt.und(i))return i;var s=document.createElement(e.tagName),n=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;n.appendChild(s),s.style.position=\"absolute\",s.style.width=100+o;var a=100/s.offsetWidth;n.removeChild(s);var d=a*parseFloat(t);return Ut.CSS[t+o]=d,d}function ho(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?po(e,s,o):s}}function fo(e,t){return qt.dom(e)&&!qt.inp(e)&&(mo(e,t)||qt.svg(e)&&e[t])?\"attribute\":qt.dom(e)&&so(Wt,t)?\"transform\":qt.dom(e)&&\"transform\"!==t&&ho(e,t)?\"css\":null!=e[t]?\"object\":void 0}function vo(e){if(qt.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 go(e,t,o,i){var s=zt(t,\"scale\")?1:0+function(e){return zt(e,\"translate\")||\"perspective\"===e?\"px\":zt(e,\"rotate\")||zt(e,\"skew\")?\"deg\":void 0}(t),n=vo(e).get(t)||s;return o&&(o.transforms.list.set(t,n),o.transforms.last=t),i?po(e,n,i):n}function yo(e,t,o,i){switch(fo(e,t)){case\"transform\":return go(e,t,i,o);case\"css\":return ho(e,t,o);case\"attribute\":return mo(e,t);default:return e[t]||0}}function wo(e,t){var o=/^(\\*=|\\+=|-=)/.exec(e);if(!o)return e;var i=co(e)||0,s=parseFloat(t),n=parseFloat(e.replace(o[0],\"\"));switch(o[0][0]){case\"+\":return s+n+i;case\"-\":return s-n+i;case\"*\":return s*n+i}}function bo(e,t){if(qt.col(e))return ro(e);if(/\\s/g.test(e))return e;var o=co(e),i=o?e.substr(0,e.length-o.length):e;return t?i+t:i}function jo(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Qo(e){for(var t,o=e.points,i=0,s=0;s<o.numberOfItems;s++){var n=o.getItem(s);s>0&&(i+=jo(t,n)),t=n}return i}function _o(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case\"circle\":return function(e){return 2*Math.PI*mo(e,\"r\")}(e);case\"rect\":return function(e){return 2*mo(e,\"width\")+2*mo(e,\"height\")}(e);case\"line\":return function(e){return jo({x:mo(e,\"x1\"),y:mo(e,\"y1\")},{x:mo(e,\"x2\"),y:mo(e,\"y2\")})}(e);case\"polyline\":return Qo(e);case\"polygon\":return function(e){var t=e.points;return Qo(e)+jo(t.getItem(t.numberOfItems-1),t.getItem(0))}(e)}}function Co(e,t){var o=t||{},i=o.el||function(e){for(var t=e.parentNode;qt.svg(t)&&qt.svg(t.parentNode);)t=t.parentNode;return t}(e),s=i.getBoundingClientRect(),n=mo(i,\"viewBox\"),a=s.width,d=s.height,l=o.viewBox||(n?n.split(\" \"):[0,0,a,d]);return{el:i,viewBox:l,x:l[0]/1,y:l[1]/1,w:a/l[2],h:d/l[3]}}function ko(e,t){function o(o){void 0===o&&(o=0);var i=t+o>=1?t+o:0;return e.el.getPointAtLength(i)}var i=Co(e.el,e.svg),s=o(),n=o(-1),a=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(a.y-n.y,a.x-n.x)/Math.PI}}function Do(e,t){var o=/[+-]?\\d*\\.?\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?/g,i=bo(qt.pth(e)?e.totalLength:e,t)+\"\";return{original:i,numbers:i.match(o)?i.match(o).map(Number):[0],strings:qt.str(e)||t?i.split(o):[]}}function Lo(e){return to(e?oo(qt.arr(e)?e.map(io):io(e)):[],(function(e,t,o){return o.indexOf(e)===t}))}function xo(e){var t=Lo(e);return t.map((function(e,o){return{target:e,id:o,total:t.length,transforms:{list:vo(e)}}}))}function Bo(e,t){var o=no(t);if(/^spring/.test(o.easing)&&(o.duration=Yt(o.easing)),qt.arr(e)){var i=e.length;2===i&&!qt.obj(e[0])?e={value:e}:qt.fnc(t.duration)||(o.duration=t.duration/i)}var s=qt.arr(e)?e:[e];return s.map((function(e,o){var i=qt.obj(e)&&!qt.pth(e)?e:{value:e};return qt.und(i.delay)&&(i.delay=o?0:t.delay),qt.und(i.endDelay)&&(i.endDelay=o===s.length-1?t.endDelay:0),i})).map((function(e){return lo(e,o)}))}function So(e,t){var o=[],i=t.keyframes;for(var s in i&&(t=lo(function(e){for(var t=to(oo(e.map((function(e){return Object.keys(e)}))),(function(e){return qt.key(e)})).reduce((function(e,t){return e.indexOf(t)<0&&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)qt.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)qt.key(s)&&o.push({name:s,tweens:Bo(t[s],e)});return o}function Ao(e,t){var o;return e.tweens.map((function(i){var s=function(e,t){var o={};for(var i in e){var s=uo(e[i],t);qt.arr(s)&&1===(s=s.map((function(e){return uo(e,t)}))).length&&(s=s[0]),o[i]=s}return o.duration=parseFloat(o.duration),o.delay=parseFloat(o.delay),o}(i,t),n=s.value,a=qt.arr(n)?n[1]:n,d=co(a),l=yo(t.target,e.name,d,t),r=o?o.to.original:l,c=qt.arr(n)?n[0]:r,u=co(c)||co(l),m=d||u;return qt.und(a)&&(a=r),s.from=Do(c,m),s.to=Do(wo(a,c),m),s.start=o?o.end:0,s.end=s.start+s.delay+s.duration+s.endDelay,s.easing=Zt(s.easing,s.duration),s.isPath=qt.pth(n),s.isColor=qt.col(s.from.original),s.isColor&&(s.round=1),o=s,s}))}var Po={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 n=\"\";i.list.forEach((function(e,t){n+=t+\"(\"+e+\") \"})),e.style.transform=n}}};function Eo(e,t){xo(e).forEach((function(e){for(var o in t){var i=uo(t[o],e),s=e.target,n=co(i),a=yo(s,o,n,e),d=wo(bo(i,n||co(a)),a),l=fo(s,o);Po[l](s,o,d,e.transforms,!0)}}))}function Oo(e,t){return to(oo(e.map((function(e){return t.map((function(t){return function(e,t){var o=fo(e.target,t.name);if(o){var i=Ao(t,e),s=i[i.length-1];return{type:o,property:t.name,animatable:e,tweens:i,duration:s.end,delay:i[0].delay,endDelay:s.endDelay}}}(e,t)}))}))),(function(e){return!qt.und(e)}))}function To(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 Io=0;var Mo,No=[],Fo=[],Wo=function(){function e(){Mo=requestAnimationFrame(t)}function t(t){var o=No.length;if(o){for(var i=0;i<o;){var s=No[i];if(s.paused){var n=No.indexOf(s);n>-1&&(No.splice(n,1),o=No.length)}else s.tick(t);i++}e()}else Mo=cancelAnimationFrame(Mo)}return e}();function Uo(e){void 0===e&&(e={});var t,o=0,i=0,s=0,n=0,a=null;function d(e){var t=window.Promise&&new Promise((function(e){return a=e}));return e.finished=t,t}var l=function(e){var t=ao(Nt,e),o=ao(Ft,e),i=So(o,e),s=xo(e.targets),n=Oo(s,i),a=To(n,o),d=Io;return Io++,lo(t,{id:d,children:[],animatables:s,animations:n,duration:a.duration,delay:a.delay,endDelay:a.endDelay})}(e);d(l);function r(){var e=l.direction;\"alternate\"!==e&&(l.direction=\"normal\"!==e?\"normal\":\"reverse\"),l.reversed=!l.reversed,t.forEach((function(e){return e.reversed=l.reversed}))}function c(e){return l.reversed?l.duration-e:e}function u(){o=0,i=c(l.currentTime)*(1/Uo.speed)}function m(e,t){t&&t.seek(e-t.timelineOffset)}function p(e){for(var t=0,o=l.animations,i=o.length;t<i;){var s=o[t],n=s.animatable,a=s.tweens,d=a.length-1,r=a[d];d&&(r=to(a,(function(t){return e<t.end}))[0]||r);for(var c=Ht(e-r.start-r.delay,0,r.duration)/r.duration,u=isNaN(c)?1:r.easing(c),m=r.to.strings,p=r.round,h=[],f=r.to.numbers.length,v=void 0,g=0;g<f;g++){var y=void 0,w=r.to.numbers[g],b=r.from.numbers[g]||0;y=r.isPath?ko(r.value,u*w):b+u*(w-b),p&&(r.isColor&&g>2||(y=Math.round(y*p)/p)),h.push(y)}var j=m.length;if(j){v=m[0];for(var Q=0;Q<j;Q++){m[Q];var _=m[Q+1],C=h[Q];isNaN(C)||(v+=_?C+_:C+\" \")}}else v=h[0];Po[s.type](n.target,s.property,v,n.transforms),s.currentValue=v,t++}}function h(e){l[e]&&!l.passThrough&&l[e](l)}function f(e){var u=l.duration,f=l.delay,v=u-l.endDelay,g=c(e);l.progress=Ht(g/u*100,0,100),l.reversePlayback=g<l.currentTime,t&&function(e){if(l.reversePlayback)for(var o=n;o--;)m(e,t[o]);else for(var i=0;i<n;i++)m(e,t[i])}(g),!l.began&&l.currentTime>0&&(l.began=!0,h(\"begin\")),!l.loopBegan&&l.currentTime>0&&(l.loopBegan=!0,h(\"loopBegin\")),g<=f&&0!==l.currentTime&&p(0),(g>=v&&l.currentTime!==u||!u)&&p(u),g>f&&g<v?(l.changeBegan||(l.changeBegan=!0,l.changeCompleted=!1,h(\"changeBegin\")),h(\"change\"),p(g)):l.changeBegan&&(l.changeCompleted=!0,l.changeBegan=!1,h(\"changeComplete\")),l.currentTime=Ht(g,0,u),l.began&&h(\"update\"),e>=u&&(i=0,l.remaining&&!0!==l.remaining&&l.remaining--,l.remaining?(o=s,h(\"loopComplete\"),l.loopBegan=!1,\"alternate\"===l.direction&&r()):(l.paused=!0,l.completed||(l.completed=!0,h(\"loopComplete\"),h(\"complete\"),!l.passThrough&&\"Promise\"in window&&(a(),d(l)))))}return l.reset=function(){var e=l.direction;l.passThrough=!1,l.currentTime=0,l.progress=0,l.paused=!0,l.began=!1,l.loopBegan=!1,l.changeBegan=!1,l.completed=!1,l.changeCompleted=!1,l.reversePlayback=!1,l.reversed=\"reverse\"===e,l.remaining=l.loop,t=l.children;for(var o=n=t.length;o--;)l.children[o].reset();(l.reversed&&!0!==l.loop||\"alternate\"===e&&1===l.loop)&&l.remaining++,p(l.reversed?l.duration:0)},l.set=function(e,t){return Eo(e,t),l},l.tick=function(e){s=e,o||(o=s),f((s+(i-o))*Uo.speed)},l.seek=function(e){f(c(e))},l.pause=function(){l.paused=!0,u()},l.play=function(){l.paused&&(l.completed&&l.reset(),l.paused=!1,No.push(l),u(),Mo||Wo())},l.reverse=function(){r(),u()},l.restart=function(){l.reset(),l.play()},l.reset(),l.autoplay&&l.play(),l}function Ho(e,t){for(var o=t.length;o--;)so(e,t[o].animatable.target)&&t.splice(o,1)}\"undefined\"!=typeof document&&document.addEventListener(\"visibilitychange\",(function(){document.hidden?(No.forEach((function(e){return e.pause()})),Fo=No.slice(0),Uo.running=No=[]):Fo.forEach((function(e){return e.play()}))})),Uo.version=\"3.1.0\",Uo.speed=1,Uo.running=No,Uo.remove=function(e){for(var t=Lo(e),o=No.length;o--;){var i=No[o],s=i.animations,n=i.children;Ho(t,s);for(var a=n.length;a--;){var d=n[a],l=d.animations;Ho(t,l),l.length||d.children.length||n.splice(a,1)}s.length||n.length||i.pause()}},Uo.get=yo,Uo.set=Eo,Uo.convertPx=po,Uo.path=function(e,t){var o=qt.str(e)?eo(e)[0]:e,i=t||100;return function(e){return{property:e,el:o,svg:Co(o),totalLength:_o(o)*(i/100)}}},Uo.setDashoffset=function(e){var t=_o(e);return e.setAttribute(\"stroke-dasharray\",t),t},Uo.stagger=function(e,t){void 0===t&&(t={});var o=t.direction||\"normal\",i=t.easing?Zt(t.easing):null,s=t.grid,n=t.axis,a=t.from||0,d=\"first\"===a,l=\"center\"===a,r=\"last\"===a,c=qt.arr(e),u=c?parseFloat(e[0]):parseFloat(e),m=c?parseFloat(e[1]):0,p=co(c?e[1]:e)||0,h=t.start||0+(c?u:0),f=[],v=0;return function(e,t,g){if(d&&(a=0),l&&(a=(g-1)/2),r&&(a=g-1),!f.length){for(var y=0;y<g;y++){if(s){var w=l?(s[0]-1)/2:a%s[0],b=l?(s[1]-1)/2:Math.floor(a/s[0]),j=w-y%s[0],Q=b-Math.floor(y/s[0]),_=Math.sqrt(j*j+Q*Q);\"x\"===n&&(_=-j),\"y\"===n&&(_=-Q),f.push(_)}else f.push(Math.abs(a-y));v=Math.max.apply(Math,f)}i&&(f=f.map((function(e){return i(e/v)*v}))),\"reverse\"===o&&(f=f.map((function(e){return n?e<0?-1*e:-e:Math.abs(v-e)})))}return h+(c?(m-u)/v:u)*(Math.round(100*f[t])/100)+p}},Uo.timeline=function(e){void 0===e&&(e={});var t=Uo(e);return t.duration=0,t.add=function(o,i){var s=No.indexOf(t),n=t.children;function a(e){e.passThrough=!0}s>-1&&No.splice(s,1);for(var d=0;d<n.length;d++)a(n[d]);var l=lo(o,ao(Ft,e));l.targets=l.targets||e.targets;var r=t.duration;l.autoplay=!1,l.direction=t.direction,l.timelineOffset=qt.und(i)?r:wo(i,r),a(t),t.seek(l.timelineOffset);var c=Uo(l);a(c),n.push(c);var u=To(n,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},Uo.easing=Zt,Uo.penner=$t,Uo.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};var zo=Uo,Ro=function(){return!LiveComposer.Builder.Flags.panelOpened||(LiveComposer.Builder.UI.shakePanelConfirmButton(),!1)};document.addEventListener(\"moduleDuplicate\",(function(e){const t=e.detail;if(!Ro())return!1;t.classList.contains(\"dslca-action-disabled\")||Yo(t.closest(\".dslc-module-front\"))})),document.addEventListener(\"moduleDelete\",(function(e){const t=e.detail;if(!Ro())return!1;t.classList.contains(\"dslca-action-disabled\")||i({title:DSLCString.str_del_module_title,content:DSLCString.str_del_module_descr,confirm:function(){!function(e){window.dslcDebug&&console.log(\"dslc_delete_module\");Pt(\".dslca-modules\"),zo({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()}})}(t.closest(\".dslc-module-front\"))}})})),document.addEventListener(\"moduleEdit\",(function(e){const 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;Xo(),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){const t=e.detail.closest(\".dslc-module-front\"),o=jQuery(t),i=localStorage.getItem(\"lcCopyPasteStorage\");let 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){const e=t.querySelector(\".dslca-module-code\").innerText;let 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){const t=e.detail,o=t.closest(\".dslc-module-front\");if(!t.classList.contains(\"dslca-action-disabled\")){var i=o.dataset.dslcModuleSize,s=t.dataset.size;Number(i)!==Number(s)&&function(e,t){window.dslcDebug&&console.log(\"dslc_module_width_set\");var o=\"dslc-\"+t+\"-col\";jQuery(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(\"dslc-module-size\",t),e.setAttribute(\"data-dslc-module-size\",t),LiveComposer.Utils.update_module_property_raw(e,\"dslc_m_size\",t),LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(),window.dslc_generate_code(),window.dslc_show_publish_button()}(o,s)}})),document.addEventListener(\"wysiwygEdit\",(function(e){const t=e.detail,o=t.closest(\".dslc-module-front\"),i=t.dataset.idToEdit,s=o.querySelector('[data-edit-id=\"'+i+'\"]');let n=\"\";if(n=\"TEXTAREA\"===s.tagName||\"INPUT\"===s.tagName?s.value:s.innerHTML,void 0===n&&(n=\"\"),n.trim().length&&(n=n.replace(/<lctextarea/g,\"<textarea\").replace(/<\\/lctextarea/g,\"</textarea\")),n.includes(\"%\")&&(n=n.replace(/%\\(\\(%/g,\"[\"),n=n.replace(/%\\)\\)%/g,\"]\"),n=n.replace(/%\\(%/g,\"[\"),n=n.replace(/%\\)%/g,\"]\"),n=n.replace(/%\\{%/g,\"[\"),n=n.replace(/%\\}%/g,\"]\")),n=n.trim(),\"undefined\"!=typeof tinymce){var a=tinymce.get(\"dslcawpeditor\");document.getElementById(\"wp-dslcawpeditor-wrap\").classList.contains(\"tmce-active\")?a.setContent(n,{format:\"html\"}):document.getElementById(\"dslcawpeditor\").value=n,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.\")}));const qo=()=>{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\")}))};const Xo=()=>{const e=LiveComposer.Builder.PreviewAreaWindow.document.querySelector(\".dslca-module-being-edited\");null!==e&&e.classList.remove(\"dslca-module-being-edited\")};function Yo(e){window.dslcDebug&&console.log(\"dslc_copy_module\"),Xo();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\"),Jo(t),window.dslc_generate_code(),zo({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()}const Jo=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 n={action:\"dslc-ajax-display-module-options\",dslc:\"active\"};n.dslc_module_id=e,n.dslc_post_id=jQuery(\".dslca-container\").data(\"data-post-id\"),n.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,\"]\")),n[t]=o})),jQuery(\".dslca-wp-editor-actions\").hide(),jQuery(\".dslca-wp-editor-notification\").show(),At();var a=jQuery(\".dslca-module-options-front\",t).children().clone();LiveComposer.Builder.moduleBackup=a,LiveComposer.Builder.Flags.panelOpened=!0,s.show(),s.addClass(\"show\"),jQuery.post(DSLCAjax.ajaxurl,n,(function(e){s.remove(),Pt(\".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,n=0;n<o;n++)jQuery('.dslca-header .dslca-options-filter-hook[data-section=\"'+t[n]+'\"]').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()}))};const Go=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\"),n={action:\"dslc-ajax-add-module\",dslc:\"active\"};n.dslc_module_id=o,n.dslc_module_instance_id=s,n.dslc_post_id=jQuery(\".dslca-container\").data(\"post-id\"),t.hasClass(\"dslca-preload-preset\")?n.dslc_preload_preset=\"enabled\":n.dslc_preload_preset=\"disabled\",t.removeClass(\"dslca-preload-preset\"),i.each((function(){var e=jQuery(this),t=e.data(\"id\"),o=e.val();n[t]=o})),n.dslc_url_vars=LiveComposer.Utils.get_page_params(),jQuery.post(DSLCAjax.ajaxurl,n,(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\"),n={action:\"dslc-ajax-add-module\",dslc:\"active\"};n.dslc_module_id=o,n.dslc_module_instance_id=s,n.dslc_post_id=jQuery(\".dslca-container\").data(\"post-id\"),n.dslc_preload_preset=\"enabled\",e.removeClass(\"dslca-preload-preset\"),i.each((function(){var e=jQuery(this),t=e.data(\"id\"),o=e.val();n[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,n,(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\")}))};const Ko=()=>{LiveComposer.Builder.PreviewAreaDocument.on({mouseenter:function(e){jQuery(\".dslca-modules-section-manage\",LiveComposer.Builder.PreviewAreaDocument).css(\"z-index\",\"99998\");const 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\"),qo()},Vo=()=>{var e,t,o,i=jQuery(\".dslca-modules .dslca-section-scroller-content\");0==i.length&&(i=[document.createElement(\"div\")]);St.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,n,a=i.item;if(i.preventDefault(),jQuery(a).closest(\".dslca-section-scroller-content\").length>0)return!1;jQuery(\".dslca-options-hovered\",LiveComposer.Builder.PreviewAreaDocument).removeClass(\"dslca-options-hovered\"),e=jQuery(a.parentNode),t=a.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,n=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){n(e)})),jQuery(a).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\")}})},$o=function(e){var t=this;this.section=jQuery(e).closest(\".dslc-modules-section\"),this.elem=e,this.observer=new mqMutationObserver(e,(function(){var o=t.elem.classList;0==e.querySelectorAll(\".dslc-module-front\").length?(o.add(\"dslc-modules-area-empty\"),o.remove(\"dslc-modules-area-not-empty\")):(o.remove(\"dslc-modules-area-empty\"),o.add(\"dslc-modules-area-not-empty\"))}),{childList:!0}),this.sortable=St.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\")&&(Zo(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 $o(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():si(e()),LiveComposer.Builder.PreviewAreaDocument.on(\"click\",\".dslca-copy-modules-area-hook\",(function(e){if(e.preventDefault(),!t())return!1;if(!jQuery(this).hasClass(\"dslca-action-disabled\")){var o=jQuery(this).closest(\".dslc-modules-area\");(function(e){window.dslcDebug&&console.log(\"dslc_copy_modules_area\");var t=e.closest(\".dslc-modules-section\").find(\".dslc-modules-section-inner\"),o=e.clone().appendTo(t);new $o(o[0]),o.find(\".dslca-modules-area-manage\").trigger(\"mouseleave\"),o.data(\"size\",e.data(\"size\")).find(\".dslc-module-front\").css({\"-webkit-animation-name\":\"none\",\"-moz-animation-name\":\"none\",\"animation-name\":\"none\",\"animation-duration\":\"0\",\"-webkit-animation-duration\":\"0\",opacity:0}).each((function(){var e=jQuery(this);Jo(e[0]),jQuery(\".dslca-module-being-edited\",LiveComposer.Builder.PreviewAreaDocument).removeClass(\"dslca-module-being-edited\"),window.dslc_generate_code(),e.animate({opacity:1},300)})),Vo(),window.dslc_show_publish_button(),window.dslc_generate_code()})(o)}})),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\")){var o=jQuery(this).closest(\".dslc-modules-area\");ei(o)}else{var s=jQuery(this);i({title:DSLCString.str_del_area_title,content:DSLCString.str_del_area_descr,confirm:function(){ei(s.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){window.dslcDebug&&console.log(\"dslc_modules_area_vertical_align_set\");var o=\"dslc-valign-\"+t;if(e.removeClass(\"dslc-valign-top dslc-valign-middle dslc-valign-bottom\").addClass(o).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;Zo(jQuery(this).closest(\".dslc-modules-section\").find(\".dslc-modules-section-inner\"))}))}));const Zo=e=>{window.dslcDebug&&console.log(\"modulesAreaAdd\");const 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 $o(t)})),Vo(),window.dslc_generate_code(),window.dslc_show_publish_button()};function ei(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(),Pt(\".dslca-modules\")),setTimeout((function(){if(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(),Zo(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()}))}const ti=()=>{jQuery(\"#dslc-main .dslc-modules-area\",LiveComposer.Builder.PreviewAreaDocument).each((function(){\"initialized\"!==jQuery(this).data(\"jsinit\")&&new $o(this)}))};const oi=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\")&&Zo(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&&Zo(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(){}))}},ii=()=>{jQuery;var e=function(){return!LiveComposer.Builder.Flags.panelOpened||(LiveComposer.Builder.UI.shakePanelConfirmButton(),!1)};jQuery(\".dslc-modules-section\",LiveComposer.Builder.PreviewAreaDocument).each((function(){new oi(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(){ai(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(){ri(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\")||li(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\"),si((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\")||di(jQuery(this).closest(\".dslc-modules-section\")),jQuery(\"body\",LiveComposer.Builder.PreviewAreaDocument).addClass(\"section-editing-in-progress\")}))},si=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\"));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));if(null!==i)return ni(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),ni(i.output),e&&e(),t}))};function ni(e){var t=jQuery(e);return t.appendTo(LiveComposer.Builder.PreviewAreaDocument.find(\"#dslc-main\")),Vo(),window.dslc_generate_code(),window.dslc_show_publish_button(),new oi(t),new $o(t.find(\".dslc-modules-area\").eq(0)[0]),t.find(\".dslc-modules-area\").addClass(\"dslc-modules-area-empty dslc-last-col\"),t}function ai(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(),Pt(\".dslca-modules\")),e.trigger(\"mouseleave\").remove(),window.dslc_generate_code(),window.dslc_show_publish_button()}function di(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())})),Pt(\".dslca-modules-section-edit\"),LiveComposer.Builder.Flags.panelOpened=!0,At()}function li(e){var t;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 oi(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);Jo(e[0]),ci(),ti(),window.dslc_generate_code(),Vo(),jQuery(\".dslca-module-being-edited\",LiveComposer.Builder.PreviewAreaDocument).removeClass(\"dslca-module-being-edited\"),e.animate({opacity:1},300),window.dslc_show_publish_button()})),function(e){window.dslcDebug&&console.log(\"dslc_section_new_id\");var t=LiveComposer.Utils.get_unique_id();e.setAttribute(\"data-section-id\",t),LiveComposer.Utils.update_section_property_raw(e,\"section_instance_id\",t)}(t[0])}function ri(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){c(),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(),ci(),ti(),Vo(),window.dslc_generate_code(),window.dslc_show_publish_button()}))}const ci=()=>{jQuery(\"#dslc-main .dslc-modules-section\",LiveComposer.Builder.PreviewAreaDocument).each((function(){\"initialized\"!==jQuery(this).data(\"jsinit\")&&new oi(this)}))},ui=()=>{ci(),ii(),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())})),Pt(\".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(),Pt(\".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)}))};function mi(){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}),r(\"\",\".dslca-modal-templates-import\"),LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video(),Vo(),window.dslc_show_publish_button(),window.dslc_generate_code()}))}function pi(){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){r(\"\",\".dslca-modal-templates-save\")}))}function hi(e){window.dslcDebug&&console.log(\"dslc_delete_template\"),jQuery.post(DSLCAjax.ajaxurl,{action:\"dslc-ajax-delete-template\",dslc:\"active\",dslc_template_id:e},(function(t){jQuery('.dslca-template[data-id=\"'+e+'\"]').fadeOut(200,(function(){jQuery(this).remove()}))}))}const fi=()=>{document.querySelectorAll(\".dslca-template\").forEach((function(e){e.addEventListener(\"click\",e=>{e.preventDefault(),(e=>{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:e},(function(e){jQuery(\"#dslc-main\",LiveComposer.Builder.PreviewAreaDocument).html(e.output),jQuery(\".lc-template-loader\").remove(),LiveComposer.Builder.PreviewAreaWindow.dslc_carousel(),ci(),ti(),Vo(),window.dslc_show_publish_button(),window.dslc_generate_code()}))})(e.target.closest(\"[data-id]\").dataset.id)})})),jQuery(\".dslca-template-import-form\").submit((function(e){e.preventDefault(),mi()})),jQuery(\".dslca-template-save-form\").submit((function(e){e.preventDefault(),pi()})),jQuery(document).on(\"click\",\".dslca-delete-template-hook\",(function(e){e.stopPropagation(),hi(jQuery(this).data(\"id\"))}))};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 n=i-s+10;e=(e=(e=parseInt(o.style.left||0)-e)>=0?0:e)<=-n?-n: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\"))}));const vi=()=>{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){vi(),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()}))}));const gi={addslashes:function(e){return e=(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+'\"]'),n=i.value;(n=JSON.parse(n))[t]=o,n=JSON.stringify(n),i.value=n,i.innerText=n,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+'\"]'),n=i.value;(n=JSON.parse(n))[t]=o,n=JSON.stringify(n),i.value=n,i.innerText=n,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)})),fi(),f(),ui(),new class{constructor(e){this.sortable,this.initSortable(e),this.reactToSortableOnOff()}initSortable(e){this.sortable=St.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\"),Vo(),d(),window.dslc_generate_code(),It(),vi(),Ko(),window.LiveComposer.Utils=gi,document.addEventListener(\"click\",(function(e){if(e.target.matches('[data-event=\"modal-wysiwyg-cancel\"]')){const t=new CustomEvent(\"modalWysiwygCancel\",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches('[data-event=\"modal-wysiwyg-confirm\"]')){const t=new CustomEvent(\"modalWysiwygConfirm\",{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\"]')){const t=new CustomEvent(\"moduleEdit\",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches('[data-event=\"module-duplicate\"]')){const t=new CustomEvent(\"moduleDuplicate\",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches('[data-event=\"module-delete\"]')){const t=new CustomEvent(\"moduleDelete\",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches(\".dslca-change-width-module-options [data-size]\")){const t=new CustomEvent(\"moduleChangeWidth\",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches('[data-event=\"wysiwyg-edit\"]')){const t=new CustomEvent(\"wysiwygEdit\",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches('[data-event=\"module-style-copy\"]')){const t=new CustomEvent(\"copyModuleStyles\",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches('[data-event=\"module-style-paste\"]')){const t=new CustomEvent(\"pasteModuleStyles\",{detail:e.target});document.dispatchEvent(t)}}),!1)},window.onbeforeunload=function(){}}});"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sourceRoot":""}
js/dist/editor_frontend.min.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t){jQuery(document).on("click","a:not(.dslca-link)",(function(e){e.preventDefault()})),window.dslca_publish_event=function(e,t){t=t||{},jQuery(document).trigger({type:e,message:{details:t}})}}]);
2
  //# sourceMappingURL=editor_frontend.min.js.map
1
+ !function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t){window.dslca_publish_event=(e,t)=>{t=t||{},jQuery(document).trigger({type:e,message:{details:t}})}}]);
2
  //# sourceMappingURL=editor_frontend.min.js.map
js/dist/editor_frontend.min.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"editor_frontend.min.js","sources":["webpack:///editor_frontend.min.js"],"sourcesContent":["!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,\"a\",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=\"\",n(n.s=0)}([function(e,t){jQuery(document).on(\"click\",\"a:not(.dslca-link)\",(function(e){e.preventDefault()})),window.dslca_publish_event=function(e,t){t=t||{},jQuery(document).trigger({type:e,message:{details:t}})}}]);"],"mappings":"AAAA","sourceRoot":""}
1
+ {"version":3,"file":"editor_frontend.min.js","sources":["webpack:///editor_frontend.min.js"],"sourcesContent":["!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,\"a\",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=\"\",r(r.s=0)}([function(e,t){window.dslca_publish_event=(e,t)=>{t=t||{},jQuery(document).trigger({type:e,message:{details:t}})}}]);"],"mappings":"AAAA","sourceRoot":""}
js/src/editor/backend/events.js CHANGED
@@ -20,7 +20,14 @@ export const eventsInit = () =>{
20
 
21
  // Preview iframe events.
22
  LiveComposer.Builder.PreviewAreaWindow.document.addEventListener('click', function (event) {
23
- event.preventDefault();
 
 
 
 
 
 
 
24
 
25
  if ( event.target.matches( '[data-event="module-edit"]' ) ) {
26
  // Create a new "Open Module Editing" event
20
 
21
  // Preview iframe events.
22
  LiveComposer.Builder.PreviewAreaWindow.document.addEventListener('click', function (event) {
23
+ // Disable default action/event,
24
+ // but only if the link clicked doesn't have '.dslca-link' class.
25
+ if ( ! event.target.matches('.dslca-link') ) {
26
+ // By default all the default click events disabled on LC editing mode.
27
+ // .dslca-link class used to enable default browser behaviour.
28
+ // (ex. open header/footer for editing in new tab).
29
+ event.preventDefault();
30
+ }
31
 
32
  if ( event.target.matches( '[data-event="module-edit"]' ) ) {
33
  // Create a new "Open Module Editing" event
js/src/editor/backend/uigeneral.js CHANGED
@@ -796,9 +796,11 @@ function dslca_update_report_log() {
796
  var error_report = localStorage.getItem('js_errors_report');
797
 
798
  if ( null !== error_report ) {
799
- errors_container.value = error_report;
800
- localStorage.removeItem('js_errors_report');
801
- document.querySelector( '.dslca-show-js-error-hook' ).setAttribute('style','visibility:visible');
 
 
802
  }
803
  }
804
 
796
  var error_report = localStorage.getItem('js_errors_report');
797
 
798
  if ( null !== error_report ) {
799
+ if ( error_report.includes('lc-extensions') || error_report.includes('page-builder') ) {
800
+ errors_container.value = error_report;
801
+ localStorage.removeItem('js_errors_report');
802
+ document.querySelector( '.dslca-show-js-error-hook' ).setAttribute('style','visibility:visible');
803
+ }
804
  }
805
  }
806
 
js/src/editor/frontend/builder.frontend.main.js CHANGED
@@ -1,12 +1,3 @@
1
- /**
2
- * Action - Disable links from going anywhere in editing mode.
3
- */
4
- jQuery(document).on( 'click', 'a:not(.dslca-link)', function(e){
5
-
6
- e.preventDefault();
7
- });
8
-
9
-
10
  /**
11
  * Echoes in the iframe triggered in the parent page events.
12
  * The triggerend events can be used by 3-rd party developers.
 
 
 
 
 
 
 
 
 
1
  /**
2
  * Echoes in the iframe triggered in the parent page events.
3
  * The triggerend events can be used by 3-rd party developers.
js/src/editor/frontend/index.js CHANGED
@@ -1,12 +1,3 @@
1
- /**
2
- * Action - Disable links from going anywhere in editing mode.
3
- */
4
- jQuery(document).on( 'click', 'a:not(.dslca-link)', function(e){
5
-
6
- e.preventDefault();
7
- });
8
-
9
-
10
  /**
11
  * Echoes in the iframe triggered in the parent page events.
12
  * The triggerend events can be used by 3-rd party developers.
 
 
 
 
 
 
 
 
 
1
  /**
2
  * Echoes in the iframe triggered in the parent page events.
3
  * The triggerend events can be used by 3-rd party developers.
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: LiveComposer
3
  Tags: page builder, landing page builder, frontend page builder, drag and drop page builder, website builder
4
  Requires at least: 4.7
5
  Tested up to: 5.3
6
- Stable tag: 1.5.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,14 @@ 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.5 - Jan 14 2020 =
62
  * 🕷 Fixed flickering sections in the header on mobile
63
  * 🕷 Fixed unresponsive font family selector
3
  Tags: page builder, landing page builder, frontend page builder, drag and drop page builder, website builder
4
  Requires at least: 4.7
5
  Tested up to: 5.3
6
+ Stable tag: 1.5.6
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.6 - Feb 20 2020 =
62
+ * 🕷 Fixed 'Edit Footer/Header' buttons (issue #1006)
63
+ * 🕷 Fix broken image links in project grid/carousel (issue #1024)
64
+ * 🕷 Limit errors reports only to JS warnings caused by the Live Composer
65
+ * 🔄 Update NPM packages.
66
+
67
+
68
+
69
  = 1.5.5 - Jan 14 2020 =
70
  * 🕷 Fixed flickering sections in the header on mobile
71
  * 🕷 Fixed unresponsive font family selector