text: !function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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=38)}({38:function(e,t,n){e.exports=n(73)},73:function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n.r(t);var r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.slide=this.getSlide(t)}var t,n,r;return t=e,(n=[{key:"getSlide",value:function(e){e.slide.options=e.slide.options||this.getDefaultSlideOptions();var t=_.template($("#slide-template").html());return $(t(e))}},{key:"getDefaultSlideOptions",value:function(){return{caption_1:{},caption_2:{},caption_3:{},call_to_action:{}}}},{key:"render",value:function(){return this.eventListeners(),this.showSelectedOptionBlock(),this.slide}},{key:"eventListeners",value:function(){this.attachDeleteEvent(),this.attachChangeBlockEvent()}},{key:"attachDeleteEvent",value:function(){var e=this;this.slide.find(".delete-slide").on("click",(function(){e.slide.remove()}))}},{key:"attachChangeBlockEvent",value:function(){var e=this;this.slide.find(".change-option-block").on("change",(function(t){e.slide.find(".slide-options").hide(),e.slide.find(".".concat(t.currentTarget.value)).show()}))}},{key:"showSelectedOptionBlock",value:function(){var e=this;setTimeout((function(){e.slide.find(".change-option-block").trigger("change")}))}}])&&i(t.prototype,n),r&&i(t,r),e}();function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}new(function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.slideCount=0,$(".add-slide").on("click",(function(){t.addSlide()})),this.addSliderSlides(CI.data["slider.slides"]),this.makeSlidesSortable(),this.addSlideImage()}var t,n,i;return t=e,(n=[{key:"addSliderSlides",value:function(e){var t=!0,n=!1,i=void 0;try{for(var r,l=e[Symbol.iterator]();!(t=(r=l.next()).done);t=!0){var a=r.value;this.addSlide(a)}}catch(e){n=!0,i=e}finally{try{t||null==l.return||l.return()}finally{if(n)throw i}}0===e.length&&$(".add-slide").trigger("click")}},{key:"addSlide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new r({slideNumber:this.slideCount++,slide:e});$("#slides-wrapper").append(t.render()),$(".color-picker").spectrum({type:"text",togglePaletteOnly:"true",hideAfterPaletteSelect:"true",showInput:"true",showInitial:"true"})}},{key:"makeSlidesSortable",value:function(){Sortable.create(document.getElementById("slides-wrapper"),{handle:".slide-drag",animation:150})}},{key:"addSlideImage",value:function(){$("#slides-wrapper").on("click",".slide-image",(function(e){new MediaPicker({type:"image"}).on("select",(function(t){var n='\n                    <img src="'.concat(t.path,'">\n                    <input type="hidden" name="slides[').concat(e.currentTarget.dataset.slideNumber,'][files_id]" value="').concat(t.id,'">\n                ');$(e.currentTarget).html(n)}))}))}}])&&l(t.prototype,n),i&&l(t,i),e}()),$("#autoplay").on("change",(function(e){$(".autoplay-speed-field").toggleClass("hide")})),$(".color-picker").spectrum({type:"text",togglePaletteOnly:"true",hideAfterPaletteSelect:"true",showInput:"true",showInitial:"true"})}});