!function(t){var e=wp.media;e.view.Settings.Gallery=e.view.Settings.Gallery.extend({render:function(){var a=this.$el;return e.view.Settings.prototype.render.apply(this,arguments),a.append(e.template("italystrap-gallery-settings")),defaults_fields=JSON.parse(gallery_fields),e.gallery.defaults.type="default",e.gallery.defaults.orderby="",e.gallery.defaults.name="italystrap-bootstrap-carousel",e.gallery.defaults.width="",e.gallery.defaults.height="",e.gallery.defaults.indicators="before-inner",e.gallery.defaults.control="true",e.gallery.defaults.interval=0,e.gallery.defaults.pause="hover",e.gallery.defaults.titletag="h4",e.gallery.defaults.image_title="true",e.gallery.defaults.link="none",e.gallery.defaults.text="true",e.gallery.defaults.wpautop="true",e.gallery.defaults.containerclass="",e.gallery.defaults.itemclass="",e.gallery.defaults.captionclass="",e.gallery.defaults.responsive="false",e.gallery.defaults.sizetablet="large",e.gallery.defaults.sizephone="medium",this.update.apply(this,["type"]),this.update.apply(this,["orderby"]),this.update.apply(this,["name"]),this.update.apply(this,["width"]),this.update.apply(this,["height"]),this.update.apply(this,["indicators"]),this.update.apply(this,["control"]),this.update.apply(this,["interval"]),this.update.apply(this,["pause"]),this.update.apply(this,["titletag"]),this.update.apply(this,["image_title"]),this.update.apply(this,["link"]),this.update.apply(this,["text"]),this.update.apply(this,["wpautop"]),this.update.apply(this,["containerclass"]),this.update.apply(this,["itemclass"]),this.update.apply(this,["captionclass"]),this.update.apply(this,["responsive"]),this.update.apply(this,["sizetablet"]),this.update.apply(this,["sizephone"]),a.find("select[name=type]").on("change",function(){var e=a.find("select[name=columns]").closest("label.setting"),l=a.find("#italystrap-carousel-option");"default"===t(this).val()?(e.show(),l.hide()):(e.hide(),l.show())}).change(),this}})}(jQuery);