PageSourceSearch

https://www.mtcalvaryhuron.org/assets/edit_mode-469f81db0311df4bb6…20db857007c6810f0957ceaffa1c58cd50b1b953.js

js mtcalvaryhuron.org collected 2026-09-30 20:06:23 UTC 82,240 bytes, 3 lines download raw bytes

1(function(){Unite.BaseCellEditor=function(){function e(e){this.cell=e,this.$el=$(this.selector),this.setup()}return e.prototype._isDirty=!1,e.property("isDirty",{get:function(){return this._isDirty},set:function(e){return this._isDirty=e,this.markDirty(e)}}),e.property("selector",{get:function(){return'[data-cell="'+this.cell.get("id")+'"] > div.cell-padding'}}),e.prototype.setup=function(){return!1},e.prototype.destroy=function(){return!1},e.prototype.checkValid=function(){return!1},e.prototype.onSavedPage=function(){return!1},e.prototype.markDirty=function(){return!1},e}()}).call(this),function(){var e=function(e,n){function l(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return l.prototype=n.prototype,e.prototype=new l,e.__super__=n.prototype,e},t={}.hasOwnProperty;Unite.CalendarCellEditor=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.setup=function(){return $.get("/admin/calendars/public").success((e=this,function(t){var n,l;return t.forEach(function(e){return e.value=e.remote_id}),n=e.cell.get("options"),l={calendarIds:n.remote_calendar_ids||[],calendars:t},e.$modal=$(HandlebarsTemplates.calendar_modal(l)),e.$modal.find("#save_calendar").on("click",function(){return(l={}).remote_calendar_ids=e.$modal.find("input:checked").map(function(e,t){return t.value}).get(),e.cell.set("options",l),e.cell.save().then(function(){return e.cell.endEditing()})}),e.$modal.on("hidden",function(){return e.cell.endEditing()}),e.$modal.modal()}));var e},n.prototype.destroy=function(){return this.$modal.modal("hide"),this.$modal.remove()},n.prototype.checkValid=function(){return!0},n}(Unite.BaseCellEditor)}.call(this),function(){var e=function(e,n){function l(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return l.prototype=n.prototype,e.prototype=new l,e.__super__=n.prototype,e},t={}.hasOwnProperty;Unite.CarouselCellEditor=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.sitePages=[],n.prototype.setup=function(){var e,t,n;return t={height:(e=this.cell.get("options")).height||300,frameDelay:e.frame_delay,autoAdvance:!!e.frame_delay,frames:e.frames||[]},this.$modal=$(HandlebarsTemplates.carousel_modal(t)),this.$modal.find("#add_frame").on("click",_.bind(this.addFrame,this)),this.$modal.find("#auto_advance").on("change",_.bind(this.syncAutoAdvance,this)),this.$modal.on("click",".select-image",_.bind(this.selectImage,this)),this.$modal.on("click",".remove-frame",_.bind(this.removeFrame,this)),this.$modal.find("#save_carousel").on("click",_.bind(this.saveCarousel,this)),this.$modal.on("hidden",(n=this,function(){return n.cell.endEditing()})),this.activateLinkSelector(),this.$modal.modal()},n.prototype.destroy=function(){return this.$modal.modal("hide")},n.prototype.checkValid=function(){return!0},n.prototype.addFrame=function(){var e,t;return t={id:Unite.uuid4(),url:null,assetUrl:null,caption:"",heading:""},e=$(Handlebars.partials._frame_editor(t)),this.populateLinksFor(e.find(".carousel-frame-page-select")),this.initializeLinkOptionsFor(e),this.$modal.find("#add_frame").before(e)},n.prototype.syncAutoAdvance=function(e){return this.$modal.find("#frame_delay").attr("disabled",!e.target.checked)},n.prototype.selectImage=function(e){var t,n,l;return t=$(e.target).closest(".carousel-editor-frame"),n=t.find(".asset-browser").attr("id"),l={selectedSrc:t.find("img").length>0?t.find("img").attr("src"):null,useAddButton:!0,el:n,onClose:function(e){var l;return 0===(l=t.find("img.frame-image")).length&&(l=$('<img class="frame-image">')),0===l.parent().length&&t.prepend(l),l.attr("src",e),t.find("#"+n).html("")}},new Unite.BrowseAssetsView(_.extend(l,Unite.getAssetsAndCollectionFor("Image")))},n.prototype.removeFrame=function(e){return $(e.target).closest(".carousel-editor-frame").remove()},n.prototype.enableLink=function(e){var t,n;return n=(t=$(e.target).closest(".carousel-editor-frame")).data("id"),t.find("#show_link_options_"+n).toggle(e.target.checked)},n.prototype.saveCarousel=function(){var e,t;return(e={}).height=+this.$modal.find("#carousel_height").val(),e.frame_delay=this.$modal.find("#auto_advance").get(0).checked&&+this.$modal.find("#frame_delay").val(),e.frames=[],this.$modal.find(".carousel-editor-frame").each((t=this,function(n,l){var o,i,s;return s=(o=$(l)).find(".carousel-frame-enable-link").get(0).checked,i={id:o.data("id"),url:s&&o.find(".carousel-frame-cached-url").val()||"",link_type:!!s&&t.linkTypeFor(o),link_target:!!s&&t.linkTargetFor(o),asset_url:o.find(".frame-image").attr("src"),heading:o.find(".carousel-frame-heading").val(),caption:o.find(".carousel-frame-caption").val(),enable_link:s},e.frames.push(i)})),this.cell.set("options",e),this.cell.save().then(function(e){return function(){return e.cell.endEditing()}}(this))},n.prototype.linkTypeFor=function(e){return e.find("input[id^='link_type_']:checked").val()},n.prototype.linkTargetFor=function(e){return e.find("input[id^='link_target_']:checked").val()},n.prototype.activateLinkSelector=function(){var e,t;
1return window.parent.Unite.fetchPageList().then((t=this,function(e){return t.sitePages=e,t.populateLinkSelects()})),e=this,this.$modal.on("change",".carousel-frame-enable-link",_.bind(this.enableLink,this)),this.$modal.on("change","input[name^='link_type_']",function(e){var t,n;return t=(n=$(e.target)).closest(".carousel-editor-frame"),"any"===n.val()?(t.find("input.carousel-frame-any-url").show(),t.find("select.carousel-frame-page-select").hide()):(t.find("input.carousel-frame-any-url").hide(),t.find("select.carousel-frame-page-select").show())}),this.$modal.on("input","input[id^='link_any_url_']",function(e){var t;return(t=$(e.target)).closest(".carousel-editor-frame").find(".carousel-frame-cached-url").val(t.val())}),this.$modal.on("change","select",function(e){var t;return(t=$(e.target)).closest(".carousel-editor-frame").find(".carousel-frame-cached-url").val(t.val())}),this.$modal.find(".carousel-editor-frame").each(function(){return e.initializeLinkOptionsFor($(this))})},n.prototype.populateLinkSelects=function(){var e;return e=this,this.$modal.find(".carousel-frame-page-select").each(function(){return e.populateLinksFor($(this))})},n.prototype.populateLinksFor=function(e){return this.sitePages.forEach(function(t){var n;return n="","GroupPage"===t.type&&(n="Group page: "),"Group"===t.type&&(n="Group: "),e.append('<option value="'+t.path+'">'+n+t.title+"</option>")}),e.val(e.closest(".carousel-editor-frame").find(".carousel-frame-cached-url").val())},n.prototype.initializeLinkOptionsFor=function(e){var t;switch(this.linkTypeFor(e)){case"any":return e.find("input[type='radio'][value='any']").prop("checked",!0).change();case"page":return t=e.find(".carousel-frame-cached-url").val(),e.find("input[type='radio'][value='page']").prop("checked",!0).change(),e.find(".carousel-frame-page-select").val(t)}},n}(Unite.BaseCellEditor)}.call(this),function(){var e=function(e,n){function l(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return l.prototype=n.prototype,e.prototype=new l,e.__super__=n.prototype,e},t={}.hasOwnProperty;Unite.FeedCellEditor=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.setup=function(){var e;return(new window.parent.Feeds).fetch().then((e=this,function(t){var n,l;return null==(n=e.cell.get("options")).show_title&&(n.show_title=!0),l={feedId:n.feed_id,postCount:n.post_count||3,showTitle:n.show_title,feeds:t},e.$modal=$(HandlebarsTemplates.feed_modal(l)),e.$modal.find("#save_feed").on("click",function(){return(l={}).feed_id=+e.$modal.find("#feed_id").val(),l.post_count=e.$modal.find("#post_count").val(),l.show_title=e.$modal.find("#show_title").get(0).checked,e.cell.set("options",l),e.cell.save().then(function(){return e.cell.endEditing()})}),e.$modal.on("hidden",function(){return e.cell.endEditing()}),e.$modal.modal()}))},n.prototype.destroy=function(){return this.$modal.modal("hide")},n.prototype.checkValid=function(){return!0},n}(Unite.BaseCellEditor)}.call(this),function(){var e=function(e,n){function l(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return l.prototype=n.prototype,e.prototype=new l,e.__super__=n.prototype,e},t={}.hasOwnProperty;Unite.RichTextCellEditor=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.setup=function(){return this.$el.prop("contenteditable",!0),Unite.CKEditor.initialize(this.$el.get(0),{onSave:(e=this,function(){return e.save()})}).then(function(e){return function(t){return e.ckeditor=t}}(this));var e},n.prototype.destroy=function(){return this.ckeditor.destroy().then((e=this,function(){return e.$el.removeAttr("contenteditable")}));var e},n.prototype.save=function(){return this.cell.set("value",this.ckeditor.getData()),this.cell.save()},n.prototype.checkValid=function(){var e;return e=this.ckeditor.getData().length,Unite.debug("[ckeditor] "+this.$el.get(0)+" is "+e),e>Unite.postLimit?(this.$el.addClass("invalid"),Unite.showFlashMessage("error","This cell is "+Unite.bytesToSize(e,1)+", but Church360&deg; Unite does not allow cells to be larger than "+Unite.bytesToSize(Unite.postLimit,1)+"."),!1):(this.$el.removeClass("invalid"),!0)},n}(Unite.BaseCellEditor)}.call(this),function(){Unite.attachmentAssets=function(){return new Unite.Assets.Attachments([],{owner:Unite.findSourceOfPage()})},Unite.audioFileAssets=function(){return new Unite.Assets.AudioFiles([],{owner:Unite.findSourceOfPage()})},Unite.imageAssets=function(){return new Unite.Assets.Images([],{owner:Unite.findSourceOfPage()})},Unite.videoFileAssets=function(){return new Unite.Assets.VideoFiles([],{owner:Unite.findSourceOfPage()})},Unite.getAssetsAndCollectionFor=function(e){switch(e){case"Image":return{assets:Unite.imageAssets(),collectionClass:Unite.Assets.Images};case"Video":return{assets:Unite.videoFileAssets(),collectionClass:Unite.Assets.VideoFiles};case"Audio":return{assets:Unite.audioFileAssets(),collectionClass:Unite.Assets.AudioFiles};case"Attachment":return{assets:Unite.attachmentAssets(),collectionClass:Unite.Assets.Attachments};default:throw new Error("Asset type not implemented: "+e)}}}.call(this),function(){Unite.CKEditor=function(){function e(){}return e.initialize=function(e,t){var n,l;return null==t&&(t={}),n={},l=t.onSave,n.updateSourceElementOnDestroy=!0,"function"==typeof l&&(n.autosave={save:function(e){return l(e)}}),(window.InlineEditor||window.parent.InlineEditor).create(e,n).then(function(e){return e.isFreeTier=window.parent.Unite.admin.permissions.freeTier,e.on("linkTo_showOptions",function(t,n,l,o){var i,s;return null==n&&(n=!1),null==l&&(l=""),null==o&&(o=""),s=HandlebarsTemplates["ckeditor/link_to"],(i=$(s({forImage:n,currentValue:l,currentTarget:o}))).on("hidden",function(){return i.remove()}),i.on("linkReady",function(t,n){var l;return l=n.url.replace(/^\/+/g,"/"),e.fire("linkTo_urlSelected",l,n.target),$(this).modal("hide")}),i.modal({backdrop:!1})}),e.on("assetBrowser_showBrowser",function(n,l,o){var i,s,a;return a=HandlebarsTemplates["ckeditor/media_embed"]({mediaType:l}),(i=$(a)).on("hidden",function(){return i.remove()}),i.on("mediaReady",function(){return s.close(),$(this).modal("hide")}),i.modal({backdrop:!1}),t={selectedSrc:o,el:"media_embed",onClose:function(t){return e.fire("assetBrowser_assetSelected",t,l)}},s=new Unite.BrowseAssetsView(_.extend(t,Unite.getAssetsAndCollectionFor(l)))}),e.on("groupWidget_showOptions",function(t,n,l){var o,i;return null==l&&(l="small"),i=HandlebarsTemplates["ckeditor/group_widget"],(o=$(i({selectedId:n,selectedSize:l}))).on("hidden",function(){return o.remove()}),o.on("groupWidgetReady",function(t,n){return e.fire("groupWidget_widgetReady",n),$(this).modal("hide")}),o.modal({backdrop:!1})}),e.on("htmlWidget_editSource",function(t,n){var l,o,i,s;return s=HandlebarsTemplates["ckeditor/html_widget"],(o=document.createElement("div")).innerHTML=s({innerHtml:n}),i=o.children[0],document.querySelector("body").appendChild(i),(l=$(i)).on("hidden",function(){return l.remove()}),l.on("htmlWidgetReady",function(t,n){return e.fire("htmlWidget_widgetReady",n),$(this).modal("hide")}),l.on("show",function(){return Unite.autoload("ace",Unite.assets.js.ace,function(){return Unite.ace_editor=ace.edit("html_widget_editor"),Unite.ace_editor.getSession().setValue($("#html_widget_content").html()),Unite.ace_editor.getSession().setMode(ne
1w(require("ace/mode/html").Mode))}),$(".modal-footer").on("click","#submit_html",function(){return $(this).closest(".modal").trigger("htmlWidgetReady",Unite.ace_editor.getSession().getValue())})}),l.modal({backdrop:!1})}),e})},e}()}.call(this),function(){Unite.Admin.ResizeHandle=function(){function e(e){var t;this.cell=e,this.cell.on("change:column",(t=this,function(){return t.updateHandle()})),this.cell.on("change:row",function(e){return function(){return e.updateHandle()}}(this)),this.updateHandle()}return e.prototype.dragData=null,e.property("cellBefore",{get:function(){return this.rowCells.find((e=this,function(t){return t.get("column")===e.cell.get("column")-1}));var e}}),e.property("rowCells",{get:function(){return(this.cell.collection||[]).filter((e=this,function(t){return t.get("row")===e.cell.get("row")}));var e}}),e.prototype.cleanUp=function(){return $("body").off("mouseup",this.dragEndHandler),document.removeEventListener("dragend",this.dragEndHandler),$("body").off("mousemove",this.dragMoveHandler),this.$el.remove(),this.$el=null},e.prototype.updateHandle=function(){var e,t;if(e=this.cell.$el,this.$el&&0===this.cell.get("column"))return this.cleanUp();if(this.cell.get("column")>0){if(this.$el)return;return this.$el=$('<div draggable="false" class="cell-drag-handle"></div>'),e.prepend(this.$el),this.addDragListeners(),this.$el.on("mousedown",(t=this,function(e){return e.preventDefault(),$(e.target).addClass("dragging"),t.dragData={originX:e.clientX,cellBeforeColspan:t.cellBefore.get("colspan"),cellAfterColspan:t.cell.get("colspan")}}))}},e.prototype.addDragListeners=function(){var e;return this.dragEndHandler=(e=this,function(){if(e.dragData)return e.$el.removeClass("dragging"),e.dragData=null,e.cell.collection.pageEditor.updateLayout()}),this.dragMoveHandler=function(e){return function(t){var n,l,o,i,s;if(e.dragData)return n=Math.floor((t.clientX-e.dragData.originX)/e.dragSensitivity()),l=12-(e.rowCells.filter(function(t){return t.id!==e.cell.id&&t.id!==e.cellBefore.id}).reduce(function(e,t){return e+t.get("colspan")},0)+1),i=Math.min(l,Math.max(1,e.dragData.cellBeforeColspan+n)),o=Math.min(l,Math.max(1,e.dragData.cellAfterColspan-(i-e.dragData.cellBeforeColspan))),e.cellBefore.set("colspan",i),e.cell.set("colspan",o),s=[1,2,3,4,5,6,7,8,9,10,11,12].map(function(e){return"cell-column-width-"+e}).join(" "),e.$el.closest(".cell").siblings('[data-cell="'+e.cellBefore.get("id")+'"]').removeClass(s).addClass("cell-column-width-"+e.cellBefore.get("colspan")).attr("data-colspan",e.cellBefore.get("colspan")),e.$el.closest(".cell").siblings('[data-cell="'+e.cell.get("id")+'"]').removeClass(s).addClass("cell-column-width-"+e.cell.get("colspan")).attr("data-colspan",e.cell.get("colspan"))}}(this),$("body").on("mouseup",this.dragEndHandler),document.addEventListener("dragend",this.dragEndHandler),$("body").on("mousemove",this.dragMoveHandler)},e.prototype.dragSensitivity=function(){return this.cell.collection.pageEditor.$document.width()/12},e}()}.call(this);var Asset=Backbone.Model.extend({url:function(){var e="/admin/assets";return this.isNew()?e:e+"/"+this.get("name")}}),Assets=Backbone.Collection.extend({model:Asset,url:"/admin/assets"});(function(){var e,t=function(e,t){function l(){this.constructor=e}for(var o in t)n.call(t,o)&&(e[o]=t[o]);return l.prototype=t.prototype,e.prototype=new l,e.__super__=t.prototype,e},n={}.hasOwnProperty;null==(e=window.Unite).Assets&&(e.Assets={}),Unite.Assets.Attachment=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return t(n,e),n.prototype.base="/ckeditor/attachments",n}(Unite.Model),Unite.Assets.Attachments=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return t(n,e),n.prototype.initialize=function(e,t){return this.owner=null!=t?t.owner:void 0},n.prototype.model=Unite.Assets.Attachment,n.prototype.url=function(){var e;return e="/ckeditor/attachments",null!=this.owner&&(e=e+"?owner_id="+this.owner.id+"&owner_type="+this.owner.type),e},n}(Backbone.Collection)}).call(this),function(){var e,t=function(e,t){function l(){this.constructor=e}for(var o in t)n.call(t,o)&&(e[o]=t[o]);return l.prototype=t.prototype,e.prototype=new l,e.__super__=t.prototype,e},n={}.hasOwnProperty;null==(e=window.Unite).Assets&&(e.Assets={}),Unite.Assets.AudioFile=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}
1return t(n,e),n.prototype.base="/ckeditor/audio_files",n}(Unite.Model),Unite.Assets.AudioFiles=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return t(n,e),n.prototype.initialize=function(e,t){return this.owner=null!=t?t.owner:void 0},n.prototype.model=Unite.Assets.AudioFile,n.prototype.fileTypes=["mp3","mpeg","ogg","wav"],n.prototype.url=function(){var e;return e="/ckeditor/audio_files",null!=this.owner&&(e=e+"?owner_id="+this.owner.id+"&owner_type="+this.owner.type),e},n}(Backbone.Collection)}.call(this),function(){var e=function(e,n){function l(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return l.prototype=n.prototype,e.prototype=new l,e.__super__=n.prototype,e},t={}.hasOwnProperty;Unite.Admin.Cell=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.TYPES=["RichText","Carousel","Feed","Calendar"],n.property("base",{get:function(){return"/admin/pages/"+this.get("pageId")+"/cells"}}),n.property("editorClass",{get:function(){return window.Unite[this.get("type")+"CellEditor"]}}),n.property("isDirty",{get:function(){return this.editor.isDirty}}),n.property("canDrag",{get:function(){return this._canDrag&&!this.editor},set:function(e){return this._canDrag=e,this.updateDraggable()}}),n.prototype.cachedValid=!0,n.prototype.rowEditor=null,n.prototype.initialize=function(e){var t;return this.originalColspan=this.inferredColspan()||e.colspan,this.on("change:colspan",(t=this,function(){return t.applyColspan()})),this.on("change:column",function(e){return function(){return e.applyColumn()}}(this)),this.on("change:isDraft",function(e){return function(){return e.updateUnsaved()}}(this)),this.on("change:cachedHtml",function(e){return function(){return e.updateContent()}}(this)),this.on("change:type",function(e){return function(){return e.updateTypeAttributes()}}(this)),this.on("change:htmlClass",function(e){return function(){return e.updateHtmlClass()}}(this)),this.initializeElement()||this.once("sync",function(e){return function(){return e.initializeElement()}}(this)),this.applyColspan()},n.prototype.initializeElement=function(){return!!this.get("id")&&(!!this.$el||(this.$el=this.createElement(),this.activateResizeHandle(),this.activateCellOptions(),this.activateCellDrag(),this.updateUnsaved(),this.updateHtmlClass()))},n.prototype.createElement=function(){var e,t;
1return e=HandlebarsTemplates.new_cell({id:this.id,colspan:this.get("colspan"),debugRow:this.get("row"),debugCol:this.get("column"),cellNumber:this.get("column"),cachedHtml:this.get("cachedHtml"),canDrag:this.canDrag,fakeHeight:this.fakeHeight(),usesFake:this.usesFake(this),type:this.get("type")}),(t=document.createElement("div")).innerHTML=e,$(t.children[0])},n.prototype.usesFake=function(e){var t;return"Feed"===(t=e.get("type"))||"Calendar"===t||"Carousel"===t},n.prototype.fakeHeight=function(){var e;return"Carousel"===this.get("type")?(null!=(e=this.get("options"))?e.height:void 0)||300:Math.max(this.collection.pageEditor.heightMap["cell_"+this.get("row")+"_"+this.get("column")],75)},n.prototype.cleanUp=function(){if(this.editor&&this.editor.destroy(),this.$el)return this.$el.remove()},n.prototype.checkValid=function(){return this.editor?this.editor.checkValid():this.cachedValid},n.prototype.dirty=function(){return this.collection.pageEditor.dirty()},n.prototype.onSavedPage=function(){if(this.editor)return this.editor.onSavedPage()},n.prototype.applyColspan=function(){if(this.$el)return this.$el.removeClass([1,2,3,4,5,6,7,8,9,10,11,12].map(function(e){return"cell-column-width-"+e}).join(" ")).addClass("cell-column-width-"+this.get("colspan")).attr("data-colspan",this.get("colspan"))},n.prototype.applyColumn=function(){if(this.$el)return this.$el.removeClass([0,1,2,3].map(function(e){return"cell-"+e}).join(" ")).addClass("cell-"+this.get("column")).attr("data-cell-number",this.get("column")).attr("data-cell-row",this.get("row"))},n.prototype.inferredColspan=function(){var e;return this.$el?(e=this.$el.attr("class").match(/cell-column-width-(\d+)/))?+e[1]:void 0:null},n.prototype.activateResizeHandle=function(){return this.resizeHandle=new Unite.Admin.ResizeHandle(this)},n.prototype.activateCellOptions=function(){var e,t;return e=HandlebarsTemplates.cell_options(),this.$el.append(e),this.$el.find(".cell-editor-toggle").on("click",(t=this,function(){return t.toggleEditor()})),this.$el.find(".cell-options-dropdown").on("click",function(e){return function(){return e.endEditing()}}(this)),this.$el.find("[data-action]").on("click",function(e){return function(t){if($(t.target).attr("disabled"))return!1;switch($(t.target).data("action")){case"remove":return e.remove();case"edit-type":return e.editType();case"edit-class":return e.editClass();case"discard":return e.revert()}}}(this))},n.prototype.toggleEditor=function(){return this.editor?this.endEditing():this.beginEditing(),this.updateDraggable()},n.prototype.endEditing=function(){if(this.editor)return this.cachedValid=this.editor.checkValid(),this.editor.destroy(),this.editor=null,this.updateUnsaved(),this.$el.find(".cell-editor-toggle").html('<i class="fa fa-pencil-square"></i>'),this.updateDraggable()},n.prototype.beginEditing=function(){return this.editor=new this.editorClass(this),this.$el.find(".cell-editor-toggle").html('<i class="fa fa-check-circle-o"></i>'),this.updateDraggable()},n.prototype.activateCellDrag=function(){var e,t;return(e=this.$el.get(0)).addEventListener("dragstart",(t=this,function(e){return t.collection.pageEditor.startCellDrag(t),e.dataTransfer.setData("text/html",t.get("cachedHtml")),t.$el.addClass("dragging")})),e.addEventListener("dragover",function(e){return function(t){var n,l,o;if((n=e.collection.pageEditor.draggingCell)&&n.id!==e.id&&!(n.get("row")!==e.get("row")&&e.collection.filter(function(t){return t.get("row")===e.get("row")}).length>=4))return t.preventDefault(),e.collection.pageEditor.currentDropTarget=e.$el,t.dataTransfer.dropEffect="move",l=e.$el.offset(),o=e.$el.width(),t.clientX-l.left<o/2?(e.$el.addClass("drop-left"),e.$el.removeClass("drop-right")):(e.$el.addClass("drop-right"),e.$el.removeClass("drop-left"))}}(this)),e.addEventListener("drop",function(e){return function(t){var n,l,o,i;if(e.collection.pageEditor.draggingCell&&e.collection.pageEditor.draggingCell.id!==e.id)return t.preventDefault(),o=e.$el.offset(),i=e.$el.width(),l=t.clientX-o.left<i/2?0:1,e.get("column")>e.collection.pageEditor.draggingCell.get("column")&&(l-=1),n=e.get("
1column")+l,e.collection.pageEditor.dropCellAt(e.get("row"),n).then(function(){return e.$el.removeClass("dragging"),e.collection.pageEditor.endCellDrag(),e.collection.pageEditor.rowEditors.forEach(function(e){return e.updateButtons()})})}}(this))},n.prototype.updateDraggable=function(){if(this.$el)return this.$el.attr("draggable",this.canDrag)},n.prototype.remove=function(){return this.cleanUp(),this.destroy()},n.prototype.editType=function(){var e,t,n,l;return n=Unite.Admin.Cell.TYPES.map(function(e){var t;return t=e.split(/([A-Z])/).filter(function(e){return!!e}).map(function(e,t){return 0!==t&&/[A-Z]/.test(e)?" "+e:e}).join(""),{id:e,name:t}}),t=this.get("type"),(e=$(HandlebarsTemplates.change_type_modal({types:n,currentType:t}))).on("hidden",function(){return e.remove()}),e.find("#commit_change_cell_type").on("click",(l=this,function(){var t;return t=e.find("#cell_type_select").val(),l.set("type",t),(l.hasUnsavedChanges()?l.save():$.Deferred().resolve()).then(function(){return e.modal("hide")})})),e.modal()},n.prototype.editClass=function(){var e,t,n;return t=this.get("htmlClass"),(e=$(HandlebarsTemplates.change_class_modal({currentClass:t}))).on("hidden",function(){return e.remove()}),e.find("#commit_change_cell_class").on("click",(n=this,function(){var t;return t=e.find("#cell_class").val(),n.set("htmlClass",t),(n.hasUnsavedChanges()?n.save():$.Deferred().resolve()).then(function(){return e.modal("hide")})})),e.modal()},n.prototype.revert=function(){var e,t;return e={url:this.url()+"/draft",success:(t=this,function(n){return n?(t.set(n),t.trigger("sync",t,n,e)):t.rowEditor.remove(t)})},this.sync("delete",this,e)},n.prototype.updateUnsaved=function(){if(this.$el)return this.get("isDraft")?this.$el.find(".cell-padding").attr("dirty",!0):this.$el.find(".cell-padding").removeAttr("dirty"),this.$el.find('[data-action="discard"]').closest("li").toggle(this.get("isDraft"))},n.prototype.updateContent=function(){if(this.$el&&!this.editor)return this.$el.find(".cell-padding").html(this.get("cachedHtml"))},n.prototype.updateTypeAttributes=function(){var e;if(this.$el)return this.$el.removeClass(function(e,t){return(t.match(/(^|\s)type-\S+/g)||[]).join(" ")}).addClass("type-"+this.get("type")),e=this.fakeHeight(),this.$el.find(".cell-padding").css({height:e,lineHeight:e+"px"})},n.prototype.updateHtmlClass=function(){if(this.$el)return this.$el.removeClass(this._previousAttributes.htmlClass).addClass(this.get("htmlClass"))},n}(Unite.Model),Unite.Admin.Cells=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=Unite.Admin.Cell,n.prototype.initialize=function(e,t){return null==t&&(t={}),this.pageEditor=t.pageEditor},n.prototype.rows=function(){var e;return e=this.groupBy(function(e){return e.get("row")}),Object.keys(e).sort().map(function(t){return e[t]})},n.prototype.addBlank=function(e){var t;return null==e&&(e={}),e=_.extend({type:"RichText",colspan:1,value:"",cachedHtml:"",options:{},pageId:this.pageEditor.documentId},e),t=new this.model(e),this.add(t),t},n}(Backbone.Collection)}.call(this),function(){var e,t=function(e,t){function l(){this.constructor=e}for(var o in t)n.call(t,o)&&(e[o]=t[o]);return l.prototype=t.prototype,e.prototype=new l,e.__super__=t.prototype,e},n={}.hasOwnProperty;null==(e=window.Unite).Assets&&(e.Assets={}),Unite.Assets.Image=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return t(n,e),n.prototype.base="/ckeditor/images",n}(Unite.Model),Unite.Assets.Images=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return t(n,e),n.prototype.initialize=function(e,t){return this.owner=null!=t?t.owner:void 0},n.prototype.model=Unite.Assets.Image,n.prototype.fileTypes=["jpg","jpeg","gif","png"],n.prototype.url=function(){var e;return e="/ckeditor/images",null!=this.owner&&(e=e+"?owner_id="+this.owner.id+"&owner_type="+this.owner.type),e},n}(Backbone.Collection)}.call(this),function(){var e,t=function(e,t){function l(){this.constructor=e}for(var o in t)n.call(t,o)&&(e[o]=t[o]);return l.prototype=t.prototype,e.prototype=new l,e.__super__=t.prototype,e},n={}.hasOwnProperty;null==(e=window.Unite).Assets&&(e.Assets={}),Unite.Assets.VideoFile=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}
1return t(n,e),n.prototype.base="/ckeditor/video_files",n}(Unite.Model),Unite.Assets.VideoFiles=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return t(n,e),n.prototype.initialize=function(e,t){return this.owner=null!=t?t.owner:void 0},n.prototype.model=Unite.Assets.VideoFile,n.prototype.fileTypes=["mp4","mpeg4","ogg","webm"],n.prototype.url=function(){var e;return e="/ckeditor/video_files",null!=this.owner&&(e=e+"?owner_id="+this.owner.id+"&owner_type="+this.owner.type),e},n}(Backbone.Collection)}.call(this),function(){Unite.Admin.PageEditor=function(){function e(){}return e.create=function(e){return null==e&&(e={}),new("post"===$("#document").data("document-type")?Unite.Admin.PostEditor:Unite.Admin.StaticPageEditor)(e)},e}()}.call(this),function(){Unite.Admin.PostEditor=function(){function e(e){null==e&&(e={}),this.$document=$("#document"),this.activateEditor()}return e.property("documentId",{get:function(){return Unite.meta("document_id")}}),e.prototype.activateEditor=function(){return this.$el=this.$document.find(".post-content"),Unite.Autoload.MediaElement.revertAll(),this.originalContent=this.$el.html(),Unite.CKEditor.initialize(this.$el[0]).then((e=this,function(t){return e.editor=t}));var e},e.prototype.cleanUp=function(){return this.editor&&this.editor.destroy(),this.$el.html(this.originalContent)},e.prototype.changesAreValid=function(){var e;return e=this.editor.getData().length,Unite.debug("[ckeditor] "+this.$el+" is "+e),e>Unite.postLimit?(this.$el.addClass("invalid"),Unite.showFlashMessage("error","This cell is "+Unite.bytesToSize(e,1)+", but Church360&deg; Unite does not allow cells to be larger than "+Unite.bytesToSize(Unite.postLimit,1)+"."),!1):(this.$el.removeClass("invalid"),!0)},e.prototype.addContentChanges=function(e){if(this.editor)return e.content=this.editor.getData()},e.prototype.resetContent=function(){return this.editor.setData(this.originalContent)},e.prototype.changesSaved=function(){},e}()}.call(this),function(){Unite.Admin.RowEditor=function(){function e(e,t,n){var l;this.rowNumber=e,this.allCells=t,this.pageEditor=n,(this.allCells||[]).filter((l=this,function(e){return e.get("row")===l.rowNumber})).forEach(function(e){return function(t){return t.rowEditor=e}}(this)),this.activate()}return e.prototype.$modal=null,e.prototype.addingCell=!1,e.property("cells",{get:function(){return(this.allCells||[]).filter((e=this,function(t){return t.rowEditor===e}));var e}}),e.property("sortedCells",{get:function(){return this.cells.sort(function(e,t){return e.get("column")-t.get("column")})}}),e.property("rowNumber",{get:function(){return this._rowNumber},set:function(e){return this._rowNumber=e,this.cells.forEach(function(t){return t.set("row",e)})}}),e.property("canAddCells",{get:function(){return this.cells.length<4}}),e.prototype.availableTypes=[{id:"RichText",label:"Rich Text"}],e.prototype.activate=function(){return this.buildElement(),this.addListeners(),this.activateAddButton(),this.initializeInsertRow()},e.prototype.destroy=function(){return this.cleanUp(),this.$el.remove(),this.pageEditor.removeRow(this)},e.prototype.cleanUp=function(){return this.$el.find(".cell-drag-handle").remove(),this.$el.find(".add-cell-button").remove()},e.prototype.cancelEdits=function(){return this.cells.forEach(function(e){return e.isNew()?e.destroy():e.revertToLastSave()})},e.prototype.saveCells=function(){var e;return e=this.cells.map(function(e){return e.isNew()||e.hasUnsavedChanges()?e.save():$.Deferred().resolve()}),$.when.apply($,e)},e.prototype.buildElement=function(){var e;return this.$el=$(HandlebarsTemplates.page_row({rowNumber:this.rowNumber})),this.$el&&this.cells.forEach((e=this,function(t){if(t.$el)return e.$el.get(0).appendChild(t.$el.get(0))})),this.updateButtons()},e.prototype.updateElement=function(){if(this.$el)return this.$el.attr("id","row_"+this.rowNumber),this.updateButtons()},e.prototype.addListeners=function(){var e;return this.allCells.on("destroy",(e=this,function(t){if(t.rowEditor===e)return 0===e.cells.length?e.destroy():(e.resortCells(),e.distributeColspanToCells(t.get("colspan")),e.saveCells())})),this.allCells.on("add remove update",_.bind(this.updateButtons,this))},e.prototype.remove=function(e){return!(this.cells.indexOf(e)<0)&&(e.rowEditor=null,this.resortCells(),this.distributeColspanToCells(e.get("
1colspan")),e.$el.detach())},e.prototype.resortCells=function(){return this.sortedCells.forEach(function(e,t){return e.set("column",t)})},e.prototype.insertAt=function(e,t){var n;return null==t&&(t=this.cells.length),null===e.rowEditor&&(n=this.distributeColspanToCells(-e.get("colspan")),e.set("colspan",e.get("colspan")+n),this.sortedCells.forEach(function(e,n){return e.set("column",n<t?n:n+1)}),e.rowEditor=this,e.set("row",this.rowNumber),e.set("column",t),0===t?this.$el.find(".add-row-button").after(e.$el):this.$el.find(".cell").eq(t-1).after(e.$el))},e.prototype.updateButtons=function(){return this.updateRemoveButton()},e.prototype.updateRemoveButton=function(){var e;return e=0===this.rowNumber&&this.cells.length<2,
2this.$el.find('.cell a[data-action="remove"]').attr("disabled",e).closest("li").toggleClass("disabled",e)},e.prototype.activateAddButton=function(){var e,t;return(e=this.$el.append(HandlebarsTemplates.add_cell_button()).find(".add-cell-button")).on("click",(t=this,function(){var n,l;if(t.canAddCells&&!t.addingCell)return t.addingCell=!0,(l=t.cells.filter(function(e){return e.get("colspan")>1}).last()).set("colspan",l.get("colspan")-1),(n=t.allCells.addBlank({row:t.rowNumber,column:t.cells.length})).rowEditor=t,t.saveCells().then(function(){return e.before(n.$el),t.addingCell=!1})}))},e.prototype.initializeInsertRow=function(){var e,t;return(e=this.$el.prepend(HandlebarsTemplates.add_cell_button({descriptor:"row"})).find(".add-row-button")).on("click",(t=this,function(n){if(!t.pageEditor.$document.hasClass("inserting-row"))return e.remove(),n.preventDefault(),n.stopPropagation(),t.pageEditor.insertRowAt(t.rowNumber)})),e.mouseover(function(e){return function(){return e.$el.addClass("add-row-hover")}}(this)).mouseout(function(e){return function(){return e.$el.removeClass("add-row-hover")}}(this))},e.prototype.distributeColspanToCells=function(e,t){var n,l,o;if(null==t&&(t=this.cells),0===e)return 0;if(this.resortCells(),1===t.length&&e>0)return t.first().set("colspan",12),0;if(t.every(function(e){return 1===e.get("colspan")})&&e>0)return t.forEach(function(e){return e.set("colspan",12/t.length)}),0;for(l=0,o=e<0?-1:1;Math.abs(e)>0&&t.some(function(e){return e.get("colspan")>1});)(n=t[l].get("colspan")+o)<1||(t[l].set("colspan",n),e-=o),l=(l+1)%t.length;return e},e}()}.call(this),function(){Unite.Admin.StaticPageEditor=function(){function e(e){null==e&&(e={}),this.$document=$("#document"),this.activateEditors()}return e.prototype.rowSelector=".-unite-row",e.prototype.rowEditors=[],e.prototype.draggingCell=null,e.prototype.originalCellCount=0,e.prototype.cells=[],e.prototype.heightMap={},e.property("documentId",{get:function(){return Unite.meta("document_id")}}),e.property("hasUnsavedChanges",{get:function(){return this.cells.length!==this.originalCellCount||this.cells.some(function(e){return e.get("isDraft")||e.hasUnsavedChanges()})}}),e.prototype.dirty=function(){return this.$document.addClass("dirty"),$("body").addClass("dirty")},e.prototype.isDirty=function(){return this.$document.hasClass("dirty")},e.prototype.changesAreValid=function(){return this.cells.every(function(e){return e.checkValid()})},e.prototype.changesSaved=function(){return this.cells.forEach(function(e){return e.onSavedPage()})},e.prototype.addContentChanges=function(){},e.prototype.resetContent=function(e){return this.resetCells(e.cells)},e.prototype.cleanUp=function(){return this.cells.forEach(function(e){return e.cleanUp()}),this.rowEditors.forEach(function(e){return e.cleanUp()}),this.$document.html(this.originalContent),Unite.Carousel.init(),$(".calendar[data-src]").each(Unite.Autoload.full_calendar),this.cleanUpSave()},e.prototype.cleanUpSave=function(){return $("#_unite_save_page").off("click")},e.prototype.appendRow=function(){var e,t,n;return n=this.addRow(),e=(t=this.$document.get(0)).querySelector("#add_row"),t.insertBefore(n.$el.get(0),e)},e.prototype.removeRow=function(e){return new Promise((t=this,function(n){var l,o,i;return o=t.rowEditors.indexOf(e),t.rowEditors.splice(o,1),o===t.rowEditors.length&&n(),l=function(){i=[];for(var e=o,n=t.rowEditors.length;o<=n?e<n:e>n;o<=n?e++:e--)i.push(e);return i}.apply(this).map(function(e){return t.rowEditors[e].rowNumber=e,t.rowEditors[e].saveCells().then(function(){if(t.rowEditors[e])return t.rowEditors[e].updateElement()})}),$.when.apply($,l).then(function(){return n()})}));var t},e.prototype.insertRowAt=function(e){var t,n,l;return this.$document.addClass("inserting-row"),this.sortRows(),function(){n=[];for(var l=t=this.rowEditors.length;t<=e?l<e:l>e;t<=e?l++:l--)n.push(l);return n}
2.apply(this).forEach((l=this,function(e){return l.rowEditors[e-1].rowNumber=e})),this.cells.addBlank({row:e,column:0,colspan:12}).save().then(function(t){return function(){return t.addRow(e),t.updateLayout().then(function(){return setTimeout(function(){return t.$document.removeClass("inserting-row")},1e3)})}}(this))},e.prototype.sortRows=function(){return this.rowEditors.sort(function(e,t){return e.rowNumber-t.rowNumber})},e.prototype.addRow=function(e){var t;return null==e&&(e=this.rowEditors.length),t=new Unite.Admin.RowEditor(e,this.cells,this),this.rowEditors.push(t),this.sortRows(),t},e.prototype.startCellDrag=function(e){return this.draggingCell=e,this.currentDropTarget=null,this.$document.find(".cell-drag-handle").hide()},e.prototype.endCellDrag=function(){return this.draggingCell=null,this.$document.find(".cell").removeClass("drop-left drop-right"),this.$document.find(".cell-drag-handle").show()},e.prototype.updateCellDragging=function(){var e;return e=1!==this.cells.length,this.cells.forEach(function(t){return t.canDrag=e})},e.prototype.dropCellAt=function(e,t){var n,l,o;return this.draggingCell.get("row")===e&&this.draggingCell.get("column")===t?$.Deferred().resolve():(l=(n=this.draggingCell).$el.height(),(o=this.rowEditors[n.get("row")]).$el.css({minHeight:l}),o.remove(n),0===o.cells.length&&(e>=o.rowNumber&&(e-=1),o.destroy()),this.rowEditors[e].insertAt(n,t),this.updateLayout())},e.prototype.updateLayout=function(){var e,t;return this.sortRows(),e=this.rowEditors.map(function(e){return e.sortedCells.map(function(e){return{id:e.get("id"),colspan:e.get("colspan")}})}),$.post("/admin/pages/"+this.documentId+"/cells/layout",{layout:e}).then((t=this,function(e){return t.resetCells(e)}))},e.prototype.activateEditors=function(){return Unite.Autoload.MediaElement.revertAll(),Unite.Carousel.deactivateAll(),this.originalContent=this.$document.html(),this.activateDragListeners(),$.get("/admin/pages/"+this.documentId+"/cells").success((e=this,function(t){return e.resetCells(t)}));var e},e.prototype.resetCells=function(e){var t,n;return $(".cell").each((n=this,function(e,t){var l;return l=$(t),n.heightMap[l.prop("id")]=l.height()})),this.$document.html(""),this.rowEditors=[],t=this.$document.append(HandlebarsTemplates.add_row_button()).find("#add_row .cell-row-button"),this.cells=new Unite.Admin.Cells(e,{pageEditor:this}),this.originalCellCount=this.cells.length,this.cells.rows().forEach(function(e){return function(){return e.appendRow()}}(this)),this.cells.on("add remove update",function(e){return function(){return e.updateCellDragging()}}(this)),this.cells.on("add remove update change:isDraft change:row change:cell change:colspan",function(e){return function(){return e.broadcastUnsavedChanges()}}(this)),t.on("click",function(e){return function(){return e.cells.addBlank({row:e.rowEditors.length,column:0,colspan:12}).save().then(function(){return e.appendRow()})}}(this)),this.updateCellDragging(),this.broadcastUnsavedChanges()},e.prototype.broadcastUnsavedChanges=function(){return window.parent.Unite.editMode.markHasUnsaved(this.hasUnsavedChanges)},e.prototype.activateDragListeners=function(){return this.$document.get(0).addEventListener("dragleave",(e=this,function(t){if(e.currentDropTarget&&!$(t.target).closest(".cell").is(e.currentDropTarget))return e.currentDropTarget.removeClass("drop-right drop-left"),e.currentDropTarget=null}));var e},e}()}.call(this),function(){Handlebars.registerPartial("_frame_editor",Handlebars.template({1:function(){return'checked="checked"'},3:function(){return'style="display:none;"'},5:function(){return"checked"},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="carousel-editor-frame" data-id="'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:1,column:44},end:{line:1,column:50}}}):s)+'">\n  <div class="image-preview-area">\n    <img src="'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"asset_url")||(null!=t?a(t,"asset_url"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"asset_url",hash:{},data:o,loc:{start:{line:3,column:14},end:{line:3,column:27}}}):s)+'" class="frame-image">\n    <button class="btn btn-default select-image">Select</button>\n  </div>\n  <div class="editing-area">\n    <dl>\n      <dt><label for="heading_'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:8,column:30},end:{line:8,column:36}}}):s)+'">Heading</label></dt>\n      <dd><input type="text" id="heading_'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:9,column:41},end:{line:9,column:47}}}):s)+'" class="carousel-frame-heading" value="'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"heading")||(null!=t?a(t,"heading"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"heading",hash:{},data:o,loc:{start:{line:9,column:87},end:{line:9,column:98}}}):s)+'"></dd>\n      <dt><label for="caption_'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:10,column:30},end:{line:10,column:36}}}):s)+'">Caption</label></dt>\n      <dd><input type="text" id="caption_'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:11,column:41},end:{line:11,column:47}}}):s)+'" class="carousel-frame-caption" value="'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"caption")||(null!=t?a(t,"caption"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"caption",hash:{},data:o,loc:{start:{line:11,column:87},end:{line:11,column:98}}}):s)+'"></dd>\n      <dt><label for="enable_link_'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:12,column:34},end:{line:12,column:40}}}):s)+'">Link</label></dt>\n      <dd>\n        <label for="enable_link_'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:14,column:32},end:{line:14,column:38}}}):s)+'">\n          <input type="checkbox" '+(null!=(i=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"enable_link"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:15,column:33},end:{line:15,column:76}}}))?i:"")+' id="enable_link_'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:15,column:93},end:{line:15,column:99}}}):s)+'" class="carousel-frame-enable-link"/> Linkable?\n        </label>\n        <div id="show_link_options_'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:17,column:35},end:{line:17,column:41}}}):s)+'" '+(null!=(i=a(n,"unless").call(null!=t?t:e.nullContext||{},null!=t?a(t,"enable_link"):t,{name:"unless",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:17,column:43},end:{line:17,column:98}}}))?i:"")+">\n          <input "+(null!=(i=(a(n,"ifEqual")||t&&a(t,"ifEqual")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"link_type"):t,"any",{name:"ifEqual",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:18,column:17},end:{line:18,column:64}}}))?i:"")+' type="radio" name="link_type_'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:18,column:94},end:{line:18,column:100}}}):s)+'" id="link_type_any_'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:18,column:120},end:{line:18,column:126}}}):s)+'" value="any"><label for="link_type_any_'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:18,column:166}
vendor: 4,960 bytes, line 2
2,end:{line:18,column:172}}}):s)+'"> URL</label>\n          <input '+(null!=(i=(a(n,"ifEqual")||t&&a(t,"ifEqual")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"link_type"):t,"page",{name:"ifEqual",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:19,column:17},end:{line:19,column:65}}}))?i:"")+' type="radio" name="link_type_'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:19,column:95},end:{line:19,column:101}}}):s)+'" id="link_type_page_'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:19,column:122},end:{line:19,column:128}}}):s)+'" value="page"><label for="link_type_page_'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:19,column:170},end:{line:19,column:176}}}):s)+'"> Unite Page</label>\n          <input type="hidden" class="carousel-frame-cached-url" value="'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"url")||(null!=t?a(t,"url"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"url",hash:{},data:o,loc:{start:{line:20,column:72},end:{line:20,column:79}}}):s)+'" />\n          <input type="text" id="link_any_url_'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:21,column:46},end:{line:21,column:52}}}):s)+'" class="carousel-frame-any-url" value="'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"url")||(null!=t?a(t,"url"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"url",hash:{},data:o,loc:{start:{line:21,column:92},end:{line:21,column:99}}}):s)+'" placeholder="http://">\n          <select id="link_page_select_'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:22,column:39},end:{line:22,column:45}}}):s)+'" class="carousel-frame-page-select"></select>\n          <br />\n          <span>Open in: </span>\n          <input '+(null!=(i=(a(n,"ifEqual")||t&&a(t,"ifEqual")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"link_target"):t,"_parent",{name:"ifEqual",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:25,column:17},end:{line:25,column:70}}}))?i:"")+' type="radio" name="link_target_'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:25,column:102},end:{line:25,column:108}}}):s)+'" id="link_target_parent_'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:25,column:133},end:{line:25,column:139}}}):s)+'" value="_parent"><label for="link_target_parent_'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:25,column:188},end:{line:25,column:194}}}):s)+'"> this tab</label>\n          <input '+(null!=(i=(a(n,"ifEqual")||t&&a(t,"ifEqual")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"link_target"):t,"_blank",{name:"ifEqual",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:26,column:17},end:{line:26,column:69}}}))?i:"")+' type="radio" name="link_target_'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:26,column:101},end:{line:26,column:107}}}):s)+'" id="link_target_blank_'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:26,column:131},end:{line:26,column:137}}}):s)+'" value="_blank"><label for="link_target_blank_'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:26,column:184},end:{line:26,column:190}}}):s)+'"> another tab</label>\n        </div>\n      </dd>\n    </dl>\n    <div class="asset-browser" id="asset_browser_'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:30,column:49}
2,end:{line:30,column:55}}}):s)+'"></div>\n  </div>\n  <div class="frame-controls">\n    <button class="btn btn-danger remove-frame">Remove</button>\n  </div>\n</div>'},useData:!0}))}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates.add_cell_button=Handlebars.template({1:function(e,t,n,l,o){var i,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(i=null!=(i=s(n,"descriptor")||(null!=t?s(t,"descriptor"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"descriptor",hash:{},data:o,loc:{start:{line:1,column:34},end:{line:1,column:48}}}):i)},3:function(){return"cell"},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="add-'+(null!=(i=s(n,"if").call(null!=t?t:e.nullContext||{},null!=t?s(t,"descriptor"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o,loc:{start:{line:1,column:16},end:{line:1,column:67}}}))?i:"")+'-button">\n  <i class="fa fa-plus-square-o"></i>\n</div>'},useData:!0}),this.HandlebarsTemplates.add_cell_button}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates.add_row_button=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(){return'<div class="-unite-row" id="add_row">\n  <div class="cell-row-spacer"></div>\n  <div class="cell-row-button">\n    <i class="fa fa-plus-square-o"></i>\n  </div>\n  <div class="cell-row-spacer"></div>\n</div>'},useData:!0}),this.HandlebarsTemplates.add_row_button}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["assets/changes_made"]=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(){return'<div class="modal hide">\n  <div class="modal-header">\n    <h3>You have unsaved changes!</h3>\n  </div>\n  <div class="modal-body"><p style="color:black;">Are you sure you want to leave without saving?</p></div>\n  <div class="modal-footer">\n    <a href="#" class="btn" id="continue">Continue</a>\n    <a href="#" class="btn btn-primary" data-dismiss="modal">Go Back</a>\n  </div>\n</div>'},useData:!0}),this.HandlebarsTemplates["assets/changes_made"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["assets/index"]=Handlebars.template({1:function(){return'<button class="-unite-add-button btn btn-success pull-right">Add</button>'},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="-unite-asset-upload-header">\n  <div class="-unite-over-limit-message">\n    You have used up your disk space.\n    <a href="http://www.360unite.com/pricing" target="_blank" style="cursor:pointer;">Get more space!</a>\n  </div>\n  <input type="file" name="unite-upload-button" id="'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"collectionClass")||(null!=t?a(t,"collectionClass"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"collectionClass",hash:{},data:o,loc:{start:{line:6,column:52},end:{line:6,column:71}}}):s)+'" class="-unite-upload-button btn btn-primary" />\n  '+(null!=(i=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"useAddButton"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:7,column:2},end:{line:7,column:102}}}))?i:"")+'\n  <span id="_unite_chosen_asset_name"></span>\n</div>\n<div class="-unite-asset-list">\n  <div style="clear:both">\n    <p class="asset-group-label first no-show">Assets uploaded on this page</p>\n    <ul class="-unite-document-assets"></ul>\n  </div>\n\n  <div style="clear:both;margin-top:20px;">\n    <p class="asset-group-label no-show">Assets uploaded on other pages</p>\n    <ul class="-unite-global-assets"></ul>\n  </div>\n</div>'},useData:!0}),this.HandlebarsTemplates["assets/index"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["assets/modal"]=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(){return'<div class="modal hide">\n  <div class="modal-header">\n    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>\n    <h3>Select File</h3>\n  </div>\n  <div class="modal-body" id="asset_picker"></div>\n  <div class="modal-footer">\n    <a href="#" class="btn" data-dismiss="modal">Close</a>\n    <a href="#" id="select_asset" class="btn btn-primary">Save changes</a>\n  </div>\n</div>'},useData:!0}
2),this.HandlebarsTemplates["assets/modal"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["assets/show"]=Handlebars.template({1:function(e,t,n,l,o){var i,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'  <i class="fa fa-warning -unite-asset-cleanup" data-toggle="tooltip" title="Unused, will be cleaned up in '+e.escapeExpression("function"==typeof(i=null!=(i=s(n,"willCleanInterval")||(null!=t?s(t,"willCleanInterval"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"willCleanInterval",hash:{},data:o,loc:{start:{line:8,column:107},end:{line:8,column:128}}}):i)+'"></i>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="-unite-asset-thumbnail">\n  <img src="'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"thumbnailUrl")||(null!=t?a(t,"thumbnailUrl"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"thumbnailUrl",hash:{},data:o,loc:{start:{line:2,column:12},end:{line:2,column:28}}}):s)+'" alt="'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"url")||(null!=t?a(t,"url"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"url",hash:{},data:o,loc:{start:{line:2,column:35},end:{line:2,column:42}}}):s)+'" title="'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"name")||(null!=t?a(t,"name"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o,loc:{start:{line:2,column:51},end:{line:2,column:59}}}):s)+'" onerror="this.src=\'/javascripts/ckeditor/images/ckfnothumb.gif\'" />\n</div>\n<div class="-unite-asset-name">'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"name")||(null!=t?a(t,"name"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o,loc:{start:{line:4,column:31},end:{line:4,column:39}}}):s)+'</div>\n<div class="-unite-asset-size">'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"size")||(null!=t?a(t,"size"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"size",hash:{},data:o,loc:{start:{line:5,column:31},end:{line:5,column:39}}}):s)+'</div>\n<a rel="nofollow" class="-unite-delete-asset" href="/ckeditor/assets/'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:6,column:69},end:{line:6,column:75}}}):s)+'.json">Remove</a>\n'+(null!=(i=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"willCleanInterval"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:7,column:0},end:{line:9,column:7}}}))?i:"")+'<span class="asset-type" data-type="'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"type")||(null!=t?a(t,"type"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"type",hash:{},data:o,loc:{start:{line:10,column:36},end:{line:10,column:44}}}):s)+'"></span>'},useData:!0}),this.HandlebarsTemplates["assets/show"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates.calendar_modal=Handlebars.template({1:function(e,t,n,l,o,i,s){var a,r,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'          <li class="calendar-cell-calendar">\n            <input '+(null!=(a=(u(n,"ifIn")||t&&u(t,"ifIn")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?u(t,"value"):t,null!=s[1]?u(s[1],"calendarIds"):s[1],{name:"ifIn",hash:{},fn:e.program(2,o,0,i,s),inverse:e.noop,data:o,loc:{start:{line:12,column:19},end:{line:12,column:75}}}))?a:"")+' type="checkbox" value="'+e.escapeExpression("function"==typeof(r=null!=(r=u(n,"value")||(null!=t?u(t,"value"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"value",hash:{},data:o,loc:{start:{line:12,column:99},end:{line:12,column:108}}}):r)+'" id="calendar_'+e.escapeExpression("function"==typeof(r=null!=(r=u(n,"id")||(null!=t?u(t,"id"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:12,column:123},end:{line:12,column:129}}}):r)+'" />\n            <label for="calendar_'+e.escapeExpression("function"==typeof(r=null!=(r=u(n,"id")||(null!=t?u(t,"id"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:13,column:33},end:{line:13,column:39}}}):r)+'" class="owner-'+e.escapeExpression("function"==typeof(r=null!=(r=u(n,"owner")||(null!=t?u(t,"owner"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"owner",hash:{},data:o,loc:{start:{line:13,column:54},end:{line:13,column:63}}}):r)+'"> '+e.escapeExpression("function"==typeof(r=null!=(r=u(n,"name")||(null!=t?u(t,"name"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o,loc:{start:{line:13,column:66},end:{line:13,column:74}}}):r)+"</label>\n          </li>\n"},2:function(){return'checked="checked"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o,i,s){var a,r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="modal hide">\n  <div class="modal-header">\n    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>\n    <h3>Edit Calendar Cell</h3>\n  </div>\n  <div class="modal-body">\n    <label for="calendar_ids">\n      <h5>Select Calendars to show events from</h5>\n      <ul class="calendar-cell-calendars">\n'+(null!=(a=r(n,"each").call(null!=t?t:e.nullContext||{},null!=t?r(t,"calendars"):t,{name:"each",hash:{},fn:e.program(1,o,0,i,s),inverse:e.noop,data:o,loc:{start:{line:10,column:8},end:{line:15,column:17}}}))?a:"")+'      </ul>\n    </label>\n  </div>\n  <div class="modal-footer">\n    <button class="btn btn-default" data-dismiss="modal">Cancel</button>\n    <button id="save_calendar" class="btn btn-primary">Save</button>\n  </div>\n</div>'},useData:!0,useDepths:!0}),this.HandlebarsTemplates.calendar_modal}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates.carousel_modal=Handlebars.template({1:function(){return'checked="checked"'},3:function(){return'disabled="disabled"'},5:function(e,t,n,l,o){var i,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(i=e.invokePartial(s(l,"_frame_editor"),t,{name:"_frame_editor",data:o,indent:"      ",helpers:n,partials:l,decorators:e.decorators}))?i:""},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="modal hide carousel-editor">\n  <div class="modal-header">\n    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>\n    <h3>Edit Carousel</h3>\n  </div>\n  <div class="modal-body">
2\n    <dl class="carousel-settings">\n      <dt>Animation</dt>\n      <dd>\n        <input type="checkbox" '+(null!=(i=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"autoAdvance"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:10,column:31},end:{line:10,column:74}}}))?i:"")+' id="auto_advance">\n        <label for="auto_advance">\n          Auto-advance every <input type="number" min="0" max="10" id="frame_delay" '+(null!=(i=a(n,"unless").call(null!=t?t:e.nullContext||{},null!=t?a(t,"autoAdvance"):t,{name:"unless",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:12,column:84},end:{line:12,column:137}}}))?i:"")+' value="'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"frameDelay")||(null!=t?a(t,"frameDelay"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"frameDelay",hash:{},data:o,loc:{start:{line:12,column:145},end:{line:12,column:159}}}):s)+'"> seconds.\n        </label>\n      </dd>\n      <dt><label for="carousel_height">Height</label></dt>\n      <dd>\n        <input type="number" min="20" id="carousel_height" value="'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"height")||(null!=t?a(t,"height"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"height",hash:{},data:o,loc:{start:{line:17,column:66},end:{line:17,column:76}}}):s)+'"> pixels\n      </dd>\n    </dl>\n'+(null!=(i=a(n,"each").call(null!=t?t:e.nullContext||{},null!=t?a(t,"frames"):t,{name:"each",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:20,column:4},end:{line:22,column:13}}}))?i:"")+'    <button id="add_frame" class="btn btn-default">Add Image</button>\n  </div>\n  <div class="modal-footer">\n    <button class="btn btn-default" data-dismiss="modal">Cancel</button>\n    <button id="save_carousel" class="btn btn-primary">Save</button>\n  </div>\n</div>'},usePartial:!0,useData:!0}),this.HandlebarsTemplates.carousel_modal}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates.cell_options=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(){return'<div class="cell-options">\n  <div class="cell-editor-toggle"><i class="fa fa-pencil-square"></i></div>\n  <div class="dropdown cell-options-dropdown">\n    <span data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"><i class="fa fa-cog"></i></span>\n    <ul class="dropdown-menu dropdown-menu-right pull-right" aria-labelledby="dropdownMenu1">\n      <li><a href="#" data-action="remove">Remove cell</a></li>\n      <li><a href="#" data-action="edit-type">Edit cell type</a></li>\n      <li><a href="#" data-action="edit-class">Edit HTML class</a></li>\n      <li><a href="#" data-action="discard">Discard unsaved changes</a></li>\n    </ul>\n  </div>\n</div>'},useData:!0}),this.HandlebarsTemplates.cell_options}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates.change_class_modal=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
3;return'<div class="modal hide">\n  <div class="modal-header">\n    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>\n    <h3>Cell HTML Class</h3>\n  </div>\n  <div class="modal-body">\n    <input id="cell_class" name="cell_class" value="'+e.escapeExpression("function"==typeof(i=null!=(i=s(n,"currentClass")||(null!=t?s(t,"currentClass"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"currentClass",hash:{},data:o,loc:{start:{line:7,column:52},end:{line:7,column:68}}}):i)+'" placeholder="HTML Class" />\n    <p>Adding an HTML class to this content cell will allow you to reference it specifically for additional styling.</p>\n    <hr />\n    <h4>Example</h4>\n    <p>\n      Adding the class <code>glow</code> to this content cell would allow you to style all content cells \n      with this class like this:\n    </p>\n    <pre>\nEditing <i>Themes</i> / <i>Advanced</i> / <i>Custom Headers</i>\n\n&lt;style&gt;\n  #body .glow {\n    box-shadow: 0px 0px 10px teal;\n  }\n&lt;/style&gt;</pre>\n  </div>\n  <div class="modal-footer">\n    <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>\n    <button type="button" class="btn btn-primary" id="commit_change_cell_class">Change</a>\n  </div>\n</div>'},useData:!0}
3),this.HandlebarsTemplates.change_class_modal}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates.change_type_modal=Handlebars.template({1:function(e,t,n,l,o,i,s){var a,r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(a=(r(n,"ifEqual")||t&&r(t,"ifEqual")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?r(t,"id"):t,null!=s[1]?r(s[1],"currentType"):s[1],{name:"ifEqual",hash:{},fn:e.program(2,o,0,i,s),inverse:e.program(4,o,0,i,s),data:o,loc:{start:{line:10,column:8},end:{line:14,column:20}}}))?a:""},2:function(e,t,n,l,o){var i,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'          <option value="'+e.escapeExpression("function"==typeof(i=null!=(i=s(n,"id")||(null!=t?s(t,"id"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:11,column:25},end:{line:11,column:31}}}):i)+'" selected="selected">'+e.escapeExpression("function"==typeof(i=null!=(i=s(n,"name")||(null!=t?s(t,"name"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{}
3,data:o,loc:{start:{line:11,column:53},end:{line:11,column:61}}}):i)+"</option>\n"},4:function(e,t,n,l,o){var i,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'          <option value="'+e.escapeExpression("function"==typeof(i=null!=(i=s(n,"id")||(null!=t?s(t,"id"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:13,column:25},end:{line:13,column:31}}}):i)+'">'+e.escapeExpression("function"==typeof(i=null!=(i=s(n,"name")||(null!=t?s(t,"name"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o,loc:{start:{line:13,column:33},end:{line:13,column:41}}}):i)+"</option>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o,i,s){var a,r,u,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]},d='<div class="modal hide">\n  <div class="modal-header">\n    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>\n    <h3>Cell Type</h3>\n  </div>\n  <div class="modal-body">\n    <label for="cell_type_select">Cell Type</label>\n    <select id="cell_type_select">\n';return r=null!=(r=c(n,"types")||(null!=t?c(t,"types"):t))?r:e.hooks.helperMissing,u={name:"types",hash:{},fn:e.program(1,o,0,i,s),inverse:e.noop,data:o,loc:{start:{line:9,column:6},end:{line:15,column:16}}},a="function"==typeof r?r.call(null!=t?t:e.nullContext||{},u):r,c(n,"types")||(a=e.hooks.blockHelperMissing.call(t,a,u)),null!=a&&(d+=a),d+'    </select>\n    <p><strong>Warning:</strong> Changing the type will delete the contents of the cell: any unsaved changes will be lost.</p>\n  </div>\n  <div class="modal-footer">\n    <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>\n    <button type="button" class="btn btn-primary" id="commit_change_cell_type">Change</a>\n  </div>\n</div>'},useData:!0,useDepths:!0}),this.HandlebarsTemplates.change_type_modal}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates.feed_modal=Handlebars.template({1:function(e,t,n,l,o,i,s){var a,r,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"          <option "+(null!=(a=(u(n,"ifEqual")||t&&u(t,"ifEqual")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?u(t,"id"):t,null!=s[1]?u(s[1],"feedId"):s[1],{name:"ifEqual",hash:{},fn:e.program(2,o,0,i,s),inverse:e.noop,data:o,loc:{start:{line:11,column:18},end:{line:11,column:74}}}))?a:"")+' value="'+e.escapeExpression("function"==typeof(r=null!=(r=u(n,"id")||(null!=t?u(t,"id"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:11,column:82},end:{line:11,column:88}}}):r)+'">'+e.escapeExpression("function"==typeof(r=null!=(r=u(n,"title")||(null!=t?u(t,"title"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:o,loc:{start:{line:11,column:90},end:{line:11,column:99}}}):r)+"</option>\n"},2:function(){return'selected="selected"'},4:function(){return'checked="checked"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o,i,s){var a,r,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="modal hide">\n  <div class="modal-header">\n    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>\n    <h3>Edit Feed</h3>\n  </div>\n  <div class="modal-body">\n    <label for="feed_id">\n      Feed:\n      <select id="feed_id">\n'+(null!=(a=u(n,"each").call(null!=t?t:e.nullContext||{},null!=t?u(t,"feeds"):t,{name:"each",hash:{},fn:e.program(1,o,0,i,s),inverse:e.noop,data:o,loc:{start:{line:10,column:8},end:{line:12,column:17}}}))?a:"")+'      </select>\n    </label><br/>\n    <label for="post_count">\n      Number of posts to show: <input type="number" min="1" max="8" id="post_count" value="'+e.escapeExpression("function"==typeof(r=null!=(r=u(n,"postCount")||(null!=t?u(t,"postCount"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"postCount",hash:{},data:o,loc:{start:{line:16,column:91},end:{line:16,column:104}}}):r)+'">\n    </label><br/>\n    <label for="show_title">\n      <input type="checkbox" '+(null!=(a=u(n,"if").call(null!=t?t:e.nullContext||{},null!=t?u(t,"showTitle"):t,{name:"if",hash:{},fn:e.program(4,o,0,i,s),inverse:e.noop,data:o,loc:{start:{line:19,column:29},end:{line:19,column:70}}}))?a:"")+' id="show_title"> Show feed title?\n    </label>\n  </div>\n  <div class="modal-footer">\n    <button class="btn btn-default" data-dismiss="modal">Cancel</button>\n    <button id="save_feed" class="btn btn-primary">Save</button>\n  </div>\n</div>'},useData:!0,useDepths:!0}),this.HandlebarsTemplates.feed_modal}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates.new_cell=Handlebars.template({1:function(e,t,n,l,o){var i,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'style="height: '+e.escapeExpression("function"==typeof(i=null!=(i=s(n,"fakeHeight")||(null!=t?s(t,"fakeHeight"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"fakeHeight",hash:{},data:o,loc:{start:{line:2,column:59},end:{line:2,column:73}}}):i)+"px;line-height: "+e.escapeExpression("function"==typeof(i=null!=(i=s(n,"fakeHeight")||(null!=t?s(t,"fakeHeight"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"fakeHeight",hash:{},data:o,loc:{start:{line:2,column:89},end:{line:2,column:103}}}):i)+'px"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="cell cell-'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"cellNumber")||(null!=t?a(t,"cellNumber"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"cellNumber",hash:{},data:o,loc:{start:{line:1,column:22},end:{line:1,column:36}}}):s)+" cell-column-width-"+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"colspan")||(null!=t?a(t,"colspan"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"colspan",hash:{}
vendor: 1,865 bytes, line 3
3,data:o,loc:{start:{line:1,column:55},end:{line:1,column:66}}}):s)+" type-"+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"type")||(null!=t?a(t,"type"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"type",hash:{},data:o,loc:{start:{line:1,column:72},end:{line:1,column:80}}}):s)+'" data-cell="'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"id")||(null!=t?a(t,"id"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:1,column:93},end:{line:1,column:99}}}):s)+'" data-colspan="'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"colspan")||(null!=t?a(t,"colspan"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"colspan",hash:{},data:o,loc:{start:{line:1,column:115},end:{line:1,column:126}}}):s)+'" data-cell-number="'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"cellNumber")||(null!=t?a(t,"cellNumber"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"cellNumber",hash:{},data:o,loc:{start:{line:1,column:146},end:{line:1,column:160}}}):s)+'" data-cell-row="'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"debugRow")||(null!=t?a(t,"debugRow"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"debugRow",hash:{},data:o,loc:{start:{line:1,column:177},end:{line:1,column:189}}}):s)+'" draggable="'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"canDrag")||(null!=t?a(t,"canDrag"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"canDrag",hash:{},data:o,loc:{start:{line:1,column:202},end:{line:1,column:213}}}):s)+'">\n  <div class="cell-padding" '+(null!=(i=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"usesFake"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:2,column:28},end:{line:2,column:113}}}))?i:"")+">
3"+(null!=(i="function"==typeof(s=null!=(s=a(n,"cachedHtml")||(null!=t?a(t,"cachedHtml"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"cachedHtml",hash:{},data:o,loc:{start:{line:2,column:114},end:{line:2,column:130}}}):s)?i:"")+"</div>\n</div>"},useData:!0}),this.HandlebarsTemplates.new_cell}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates.page_row=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,l,o){var i,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div id="row_'+e.escapeExpression("function"==typeof(i=null!=(i=s(n,"rowNumber")||(null!=t?s(t,"rowNumber"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"rowNumber",hash:{},data:o,loc:{start:{line:1,column:13},end:{line:1,column:26}}}):i)+'" class="-unite-row">\n</div>'},useData:!0}),this.HandlebarsTemplates.page_row}.call(this),function(){var e=function(e,n){function l(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return l.prototype=n.prototype,e.prototype=new l,e.__super__=n.prototype,e},t={}.hasOwnProperty;Unite.BrowseAssetsView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.events={dblclick:"close","click .-unite-add-button":"close","click a.rest-of-assets":"fetchAllAssets"},n.prototype.initialize=function(){var e;return this.$el=$("#"+this.options.el),this.$el.addClass("-unite-asset-browser"),this.el=this.$el[0],this.assets=this.options.assets,this.useAddButton=this.options.useAddButton,this.closeOnSelect=this.options.closeOnSelect,this.collectionClass=this.options.collectionClass,this.isOverDiskLimit=!1,this.$el.addClass("loading"),this.render(),this.assets.fetch().success((e=this,function(t){return e.assets=new e.collectionClass(t.assets),e.notShownCount=t.not_shown_count,e.options.selectedSrc&&e.selectAssetWithUrl(e.options.selectedSrc),e.renderAssets(),e.$el.removeClass("loading")})),this.checkUsage()},n.prototype.selectAssetWithUrl=function(e){return this.selectedAssetUrl=e},n.prototype.fetchAllAssets=function(){return $(".asset-group-label").addClass("no-show"),this.clearAssetsForLoading(),this.assets.fetch({data:{all:!0}}).success((e=this,function(t){return e.assets=new e.collectionClass(t.assets),e.renderAssets(),e.$el.removeClass("loading")}));var e},n.prototype.clearAssetsForLoading=function(){return $(".-unite-document-assets").html(""),$(".-unite-global-assets").html(""),this.$el.addClass("loading")},n.prototype.render=function(){var e,t,n,l;return t=Math.floor(9999*Math.random())+1,this.$el.html(Unite.template["assets/index"]({collectionClass:""+this.collectionClass.name+t,useAddButton:this.useAddButton})),"GroupPage"===Unite.meta("document_type")&&$(".-unite-all-assets-button").remove(),_.isEmpty(this.assets.models)||this.renderAssets(),(e={})[Unite.meta("csrf-param")]=Unite.meta("csrf-token"),n=_.isFunction(this.assets.url)?this.assets.url():this.assets.url,this.$el.find(".-unite-upload-button").uploadifive({formData:e,buttonClass:"-unite-upload-button btn btn-primary",buttonText:"Upload",uploadScript:n,dropTarget:".-unite-asset-list",fileSizeLimit:1e5,removeCompleted:!0,fileType:this.assets.fileTypes,onUploadComplete:(l=this,function(e,t){var n;return _.isString(t)&&(t=JSON.parse(t)),n=new l.assets.model(t),l.selectedAssetUrl=n.get("url"),l.selectNone(),l.addAsset(n)}),onError:function(e,t){var n;return n=t.xhr.responseText,t.queueItem.addClass("error").find(".fileinfo").html(" - "+n),t.queueItem.find(".progress").remove()},onDrop:function(){return $(".-unite-asset-list").removeClass("over")}}),this},n.prototype.renderAssets=function(){var e,t,n,l,o,i;if($(".asset-group-label").removeClass("no-show"),t=+Unite.meta("document_id"),l="GroupPage"===Unite.meta("document_type"),this.$documentAssetsUl=this.$el.find("ul.-unite-document-assets"),this.$globalAssetsUl=this.$el.find("ul.-unite-global-assets"),e=(o=_.partition(this.assets.models,function(e){return e.attributes.ownerId===t}))[0],n=o[1],e.each((i=this,function(e){return i.renderNextAsset(e,i.$documentAssetsUl)})),n.each(function(e){return function(t){return e.renderNextAsset(t,e.$globalAssetsUl)}}(this)),_.isEmpty(n)&&!l&&this.$globalAssetsUl.html("<li><a rel='nofollow' class='rest-of-assets'>Show "+this.notShownCount+" more...</a></li>"),0===this.notShownCount&&this.$globalAssetsUl.html("<li><span class='rest-of-assets'>No other assets on other pages</span></li>"),0===this.$documentAssetsUl.find("li").length)return this.$documentAssetsUl.html("<li><span class='rest-of-assets'>No assets uploaded to this page</span></li>")},n.prototype.addAsset=function(e){return this.assets.add(e),this.renderNextAsset(e),this.selectAsset(e)},n.prototype.renderNextAsset=function(e,t){var n,l;return null==t&&(t=this.$documentAssetsUl),n=new window.parent.Unite.AssetView({model:e}),t.appendView(n),this.selectedAssetUrl===e.attributes.url&&(n.select(e),this.selectedAssetView=n),n.$el.click((l=this,function(){if(l.selectedAssetView!==n)return l.selectedAssetView&&l.selectedAssetView.deselect(),l.selectedAssetView=n,l.selectedAssetView&&l.selectedAssetView.select(),l.selectAsset(n.model),l.closeOnSelect?l.close():void 0})),n.bind("deleted",function(e){return function(){return e.selectAsset(null)}}(this)),n},n.prototype.selectAsset=function(e){if(e)return $("#_unite_chosen_asset_name").text(e.get("name")),this.options.onSelect?this.options.onSelect(e.get("url")||this.selectedAssetUrl):void 0},n.prototype.selectNone=function(){return this.selectedAssetView&&this.selectedAssetView.deselect(),this.selectedAssetView=null},n.prototype.close=function(){var e,t,n;if(n=null!=(e=this.selectedAssetView)&&null!=(t=e.model)?t.get("url"):void 0)return this.options.onClose&&this.options.onClose(n),$("#_unite_chosen_asset_name").text("")},n.prototype.checkUsage=function(){return $.get("/usage").success((e=this,function(t){return e.usage=t,e.updateUsage()}));var e},n.prototype.updateUsage=function(){return this.$el.toggleClass("-unite-over-limit",this.usage.overUsage)},n}(Backbone.View)}.call(this),window.Unite.template=HandlebarsTemplates;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.