File: /home/slyfwmm/dallavitae/OLD_WP/wp-content/themes/skrollex/assets/js/admin-bundle.min.js
/*! Skrollex */
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){"use strict";var d=jQuery;d(function(){!new function(){var b=a("./admin/widget.js"),c=a("./admin/editor.js"),e=a("./admin/queue.js"),f=d(".redirect");if(f.length>0){var g=f.data("url");if(g)return void(window.location=g)}new b,c.initAll(e)}})},{"./admin/editor.js":2,"./admin/queue.js":3,"./admin/widget.js":4}],2:[function(a,b,c){"use strict";var d=jQuery;b.exports=new function(){var a=this;this.init=function(a,b){function c(b){clearTimeout(e),g=!1;var c=b.editor.getData();f.val(c).trigger("change");var h=function(a){return a.toString().replace(/(\<([^\>]+)\>)/gi,"").replace(/(\[([^\]]+)\])/gi,"").replace(/[\s]+/gi," ").trim()};if(a.hasClass("col-header")){var i=h(c);i.length>40&&(i=i.substr(0,40)+"..."),a.closest(".layers-accordion-item").children(".layers-accordion-title").find("span.layers-detail").text(": "+i)}else a.hasClass("htmltitle")&&a.closest(".layers-content").find(".texttitle").val(h(c));var j=d(".wp-full-overlay-sidebar-content");j.css({position:"static"}),j.get(0).offsetHeight,j.css({position:""})}var e,f=a.parent().children("textarea"),g=!1;CKEDITOR.dtd.$removeEmpty.span=!1,CKEDITOR.dtd.$removeEmpty.i=!1;var h=CKEDITOR.inline(a[0],{disableNativeSpellChecker:!1,contentsCss:[CKEDITOR.getUrl("../../css/admin/admin.css?"+(new Date).getTime())],extraPlugins:"embed,showblocks,sourcedialog,widget,clipboard,dialog",removePlugins:"autoembed,autolink",embed_provider:"//noembed.com/embed?url={url}&callback={callback}",justifyClasses:["text-left","text-center","text-right","text-justify"],baseFloatZIndex:1e6,entities:!1,allowedContent:!0,htmlEncodeOutput:!1,toolbarGroups:[{name:"document",groups:["mode","document"]},{name:"tools"},{name:"editing",groups:["find","selection","spellchecker"]},{name:"doctools"},{name:"styles"},{name:"basicstyles",groups:["basicstyles","cleanup"]},{name:"paragraph",groups:["align","list","indent","blocks","bidi"]},{name:"links"},{name:"insert"},{name:"clipboard",groups:["clipboard","undo"]},{name:"forms"},{name:"others"},{name:"colors"}],stylesSet:[{name:"Page Title",element:"h1",attributes:{"class":"heading-page-title"}},{name:"Header Title",element:"h3",attributes:{"class":"heading-section-title"}},{name:"Header Details",element:"p",attributes:{"class":"header-details"}},{name:"Header Caption",element:"p",attributes:{"class":"header-caption"}},{name:"Lead",element:"p",attributes:{"class":"lead"}},{name:"Column Title",element:"h5",attributes:{"class":"heading-col-title"}},{name:"Column Details",element:"p",attributes:{"class":"col-details"}},{name:"Subsection Header Title",element:"h4",attributes:{"class":"heading-subsection-title"}},{name:"Subsection Header Details",element:"p",attributes:{"class":"subsection-details"}},{name:"Subsection Column Title",element:"h4",attributes:{"class":"heading-subsection-col-title"}},{name:"Block Title",element:"h6",attributes:{"class":"heading-block-title"}},{name:"Narrow",element:"p",attributes:{"class":"narrow"}},{name:"Caption",element:"p",attributes:{"class":"caption"}},{name:"Circle Caption",element:"p",attributes:{"class":"circle-caption"}},{name:"Item Title",element:"h4",attributes:{"class":"heading-subsection-title text-center"}},{name:"Item Details",element:"p",attributes:{"class":"col-details text-center"}},{name:"Slogan",element:"div",attributes:{"class":"slogan"}},{name:"Photo Stream",element:"p",attributes:{"class":"photo-stream"}},{name:"Center",element:"p",attributes:{"class":"text-center"}},{name:"Right",element:"p",attributes:{"class":"text-right"}},{name:"Big",element:"p",attributes:{"class":"text-big"}},{name:"Big Center",element:"p",attributes:{"class":"text-big text-center"}},{name:"Big Right",element:"p",attributes:{"class":"text-big text-right"}},{name:"Home A UpTitle",element:"div",attributes:{"class":"home-a-uptitle"}},{name:"Home A Title",element:"h1",attributes:{"class":"home-a-title"}},{name:"Home A Details",element:"p",attributes:{"class":"home-a-details"}},{name:"Home A Buttons",element:"p",attributes:{"class":"home-a-buttons"}},{name:"Home B UpTitle",element:"div",attributes:{"class":"home-b-uptitle heading"}},{name:"Home B Title",element:"h1",attributes:{"class":"home-b-title"}},{name:"Home B Details",element:"p",attributes:{"class":"home-b-details heading"}},{name:"Home B Buttons",element:"p",attributes:{"class":"home-b-buttons"}},{name:"Home C UpTitle",element:"div",attributes:{"class":"home-c-uptitle"}},{name:"Home C Title",element:"h1",attributes:{"class":"home-c-title"}},{name:"Home C Details",element:"p",attributes:{"class":"home-c-details"}},{name:"Home C Buttons",element:"p",attributes:{"class":"home-c-buttons"}},{name:"Home D UpTitle",element:"div",attributes:{"class":"home-d-uptitle"}},{name:"Home D Title",element:"h1",attributes:{"class":"home-d-title"}},{name:"Home D Details",element:"p",attributes:{"class":"home-d-details"}},{name:"Home D Buttons",element:"p",attributes:{"class":"home-d-buttons"}},{name:"Home E UpTitle",element:"div",attributes:{"class":"home-e-uptitle"}},{name:"Home E Title",element:"h1",attributes:{"class":"home-e-title"}},{name:"Home E Details",element:"p",attributes:{"class":"home-e-details"}},{name:"Home E Buttons",element:"p",attributes:{"class":"home-e-buttons"}},{name:"Home F UpTitle",element:"div",attributes:{"class":"home-f-uptitle color-heading"}},{name:"Home F Title",element:"h1",attributes:{"class":"home-f-title"}},{name:"Home F Details",element:"p",attributes:{"class":"home-f-details color-heading"}},{name:"Home F Buttons",element:"p",attributes:{"class":"home-f-buttons"}},{name:"Highlight",element:"span"},{name:"Float Left",element:"p",attributes:{"class":"heading float-text-left"}},{name:"Float Right",element:"p",attributes:{"class":"heading float-text-right"}},{name:"Float Top",element:"p",attributes:{"class":"color-heading float-text-top"}},{name:"Float Bottom",element:"p",attributes:{"class":"color-heading float-text-bottom"}},{name:"Float Left Top",element:"p",attributes:{"class":"color-heading float-text-left-top"}},{name:"Float Left Bottom",element:"p",attributes:{"class":"color-heading float-text-left-bottom"}},{name:"Float Right Top",element:"p",attributes:{"class":"color-heading float-text-right-top"}},{name:"Float Right Bottom",element:"p",attributes:{"class":"color-heading float-text-right-bottom"}}],on:{change:function(a){c(a)},blur:function(a){f.trigger("blur")},maximize:function(a){a.data===CKEDITOR.TRISTATE_OFF&&c(a)},mode:function(a){if("source"===this.mode){var b=a.editor.editable();b.attachListener(b,"input",function(){c(a)})}},instanceReady:function(a){a.editor.setReadOnly(!1),b&&a.editor.setData(b);var c=h.dataProcessor,d=c&&c.htmlFilter;d&&d.addRules({text:function(a){return a.replace(/ /g," ")}},{applyToAll:!0,excludeNestedEditable:!0})}}})},this.initAll=function(b){function c(c,e){c.find(".content-editor").each(function(){var c=d(this);if(c.hasClass("inited"))return!0;c.addClass("inited");var f=c.data("editor-content");f&&(c.removeData("editor-content"),c.html(f)),e?a.init(c):b.add(function(){a.init(c)})})}d(document).on("layers-interface-init",function(a,b){c(d(b),!0)})}}},{}],3:[function(a,b,c){"use strict";jQuery;b.exports=new function(){function a(){function a(){setTimeout(function(){if(b.length>0){var d=b.shift();d(),a()}else c=!0},10)}c&&(c=!1,a())}var b=[],c=!0;this.add=function(c){b.push(c),a()}}},{}],4:[function(a,b,c){"use strict";var d=jQuery;b.exports=function(){function a(){d(".widget-list").each(function(){b(d(this))})}function b(a){a.sortable({placeholder:"layers-sortable-drop",handle:"."+a[0].id+"-handle",stop:function(a,b){var c=b.item.closest("ul"),e=d("#"+c.data("list-ids-id")),f=[];c.children(".layers-accordion-item").each(function(){f.push(d(this).data("guid"))}),e.val(f.join()).layers_trigger_change()}})}a(),d(document).on("widget-added",function(){a()}),d(document).on("click",".widget-list .icon-trash",function(a){a.preventDefault();var c=d(this);if(!1!==confirm(contentwidgeti18n.confirm_message)){var e=c.closest(".widget-list"),f=d("#"+e.data("list-ids-id"));c.closest(".layers-accordion-item").remove();var g=[];e.children(".layers-accordion-item").each(function(){g.push(d(this).data("guid"))}),f.val(g.join()).layers_trigger_change(),b(e)}}),d(document).on("click",".add-widget-list-item",function(a){a.preventDefault();var b=d(this),c=d("#"+b.data("list-id")),e=d("#"+b.data("list-ids-id")),f=[],g=c.children(".layers-accordion-item").last(),h=g.find("textarea, input, select").not('[id$="_ids"]'),i=g.find(".layers-accordions .layers-accordion-item").find("textarea, input, select");h.not(i).each(function(){f.push(escape(d(this).attr("name"))+"="+escape(escape(d(this).val())))}),b.addClass("layers-loading-button"),d.post(ajaxurl,{action:"skrollex_widget_action",php_class:b.data("php-class"),widget_action:"add",instance:f.join("&"),list_id:b.data("list-id"),list_name:b.data("list-name"),list_model_path:b.data("list-model-path"),$last_list_item_guid:g.length>0?g.data("guid"):"",nonce:layers_widget_params.nonce},function(a){var f=d(a);f.children(".layers-accordion-section").hide(),c.append(f);var g=[];c.children(".layers-accordion-item").each(function(){g.push(d(this).data("guid"))}),e.val(g.join()).layers_trigger_change(),d(document).trigger("layers-interface-init",f),b.removeClass("layers-loading-button"),setTimeout(function(){f.children(".layers-accordion-title").trigger("click")},300)})}),d(document).on("layers-interface-init",function(a,b){d(b).find("img[data-src]").each(function(){d(this).attr("src",d(this).data("src"))})})}},{}]},{},[1]);