PageSourceSearch

https://www.lcosrehoboth.org/assets/admin-9cd141c400174ffeb01930d2b59c484d9bbcfaef209026a1c8e25bba55537901.js

js lcosrehoboth.org collected 2026-09-24 13:42:37 UTC 648,686 bytes, 20 lines download raw bytes

1function parseUri(e){for(var t=parseUri.options,n=t.parser[t.strictMode?"strict":"loose"].exec(e),i={},o=14;o--;)i[t.key[o]]=n[o]||"";return i[t.q.name]={},i[t.key[12]].replace(t.q.parser,function(e,n,o){n&&(i[t.q.name][n]=o)}),i}var JSON;JSON||(JSON={}),function(){"use strict";function f(e){return e<10?"0"+e:e}function quote(e){return escapable.lastIndex=0,escapable.test(e)?'"'+e.replace(escapable,function(e){var t=meta[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var n,i,o,s,a,r=gap,l=t[e];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(e)),"function"==typeof rep&&(l=rep.call(t,e,l)),typeof l){case"string":return quote(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(gap+=indent,a=[],"[object Array]"===Object.prototype.toString.apply(l)){for(s=l.length,n=0;n<s;n+=1)a[n]=str(n,l)||"null";return o=0===a.length?"[]":gap?"[\n"+gap+a.join(",\n"+gap)+"\n"+r+"]":"["+a.join(",")+"]",gap=r,o}if(rep&&"object"==typeof rep)for(s=rep.length,n=0;n<s;n+=1)"string"==typeof rep[n]&&(o=str(i=rep[n],l))&&a.push(quote(i)+(gap?": ":":")+o);else for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(o=str(i,l))&&a.push(quote(i)+(gap?": ":":")+o);return o=0===a.length?"{}":gap?"{\n"+gap+a.join(",\n"+gap)+"\n"+r+"}":"{"+a.join(",")+"}",gap=r,o}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;"function"!=typeof JSON.stringify&&(JSON.stringify=function(e,t,n){var i;if(gap="",indent="","number"==typeof n)for(i=0;i<n;i+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return str("",{"":e})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){function walk(e,t){var n,i,o=e[t];if(o&&"object"==typeof o)for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(void 0!==(i=walk(o,n))?o[n]=i:delete o[n]);return reviver.call(e,t,o)}var j;if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),parseUri.options={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},window.Neat=window.Neat||{},window.Neat.debug=!0,window.Neat.logger={log:function(){var e,t,n=[].slice;return e=1<=arguments.length?n.call(arguments,0):[],(t=window.console).log.apply(t,e)}};var require=function(e,t){var n=require.resolve(e,t||"/"),i=require.modules[n];if(!i)throw new Error("Failed to resolve module "+e+", tried "+n);
1return i._cached?i._cached:i()};require.paths=[],require.modules={},require.extensions=[".js",".coffee"],require._core={assert:!0,events:!0,fs:!0,path:!0,vm:!0},require.resolve=function(e,t){function n(e){if(require.modules[e])return e;for(var t=0;t<require.extensions.length;t++){var n=require.extensions[t];if(require.modules[e+n])return e+n}}function i(e){var t=(e=e.replace(/\/+$/,""))+"/package.json";if(require.modules[t]){var i=require.modules[t](),o=i.browserify;if("object"==typeof o&&o.main){if(s=n(a.resolve(e,o.main)))return s}else if("string"==typeof o){if(s=n(a.resolve(e,o)))return s}else if(i.main){var s;if(s=n(a.resolve(e,i.main)))return s}}return n(e+"/index")}function o(e,t){for(var o=s(t),a=0;a<o.length;a++){var r=o[a];if(c=n(r+"/"+e))return c;var l=i(r+"/"+e);if(l)return l}var c;if(c=n(e))return c}function s(e){for(var t,n=[],i=(t="/"===e?[""]:a.normalize(e).split("/")).length-1;i>=0;i--)if("node_modules"!==t[i]){var o=t.slice(0,i+1).join("/")+"/node_modules";n.push(o)}return n}if(t||(t="/"),require._core[e])return e;var a=require.modules.path(),r=t||".";if(e.match(/^(?:\.\.?\/|\/)/)){var l=n(a.resolve(r,e))||i(a.resolve(r,e));if(l)return l}var c=o(e,r);if(c)return c;throw new Error("Cannot find module '"+e+"'")},require.alias=function(e,t){var n=require.modules.path(),i=null;try{i=require.resolve(e+"/package.json","/")}catch(t){i=require.resolve(e,"/")}for(var o=n.dirname(i),s=Object_keys(require.modules),a=0;a<s.length;a++){var r=s[a];if(r.slice(0,o.length+1)===o+"/"){var l=r.slice(o.length);require.modules[t+l]=require.modules[o+l]}else r===o&&(require.modules[t]=require.modules[o])}},require.define=function(e,t){var n=require._core[e]?"":require.modules.path().dirname(e),i=function(e){return require(e,n)};i.resolve=function(e){return require.resolve(e,n)},i.modules=require.modules,i.define=require.define;var o={exports:{}};require.modules[e]=function(){return require.modules[e]._cached=o.exports,t.call(o.exports,i,o,o.exports,n,e),require.modules[e]._cached=o.exports,o.exports}};var Object_keys=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t},Lail,Lail;"undefined"==typeof process&&(process={}),process.nextTick||(process.nextTick=function(e){setTimeout(e,0)}),process.title||(process.title="browser"),process.binding||(process.binding=function(e){if("evals"===e)return require("vm");throw new Error("No such module")}),process.cwd||(process.cwd=function(){return"."}),require.define("path",function(e,t,n){function i(e,t){for(var n=[],i=0;i<e.length;i++)t(e[i],i,e)&&n.push(e[i]);return n}function o(e,t){for(var n=0,i=e.length;i>=0;i--){var o=e[i];"."==o?e.splice(i,1):".."===o?(e.splice(i,1),n++):n&&(e.splice(i,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var s=/^(.+\/(?!$)|\/)?((?:.+?)?(\.[^.]*)?)$/;n.resolve=function(){for(var e="",t=!1,n=arguments.length;n>=-1&&!t;n--){var s=n>=0?arguments[n]:process.cwd();"string"==typeof s&&s&&(e=s+"/"+e,t="/"===s.charAt(0))}return(t?"/":"")+(e=o(i(e.split("/"),function(e){return!!e}),!t).join("/"))||"."},n.normalize=function(e){var t="/"===e.charAt(0),n="/"===e.slice(-1);return(e=o(i(e.split("/"),function(e){return!!e}),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(i(e,function(e){return e&&"string"==typeof e}).join("/"))},n.dirname=function(e){var t=s.exec(e)[1]||"",n=!1;return t?1===t.length||n&&t.length<=3&&":"===t.charAt(1)?t:t.substring(0,t.length-1):"."},n.basename=function(e,t){var n=s.exec(e)[2]||"";return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){return s.exec(e)[3]||""}}),require.define("/node_modules/files",function(e,t){t.exports={"package.json":'{\n  "name": "inflect",\n  "description": "A port of the Rails / ActiveSupport inflector to JavaScript.",\n  "keywords": ["inflect", "activerecord", "rails", "activesupport", "string"],\n  "version": "0.2.0",\n  "author": "Stefan Huber <[email protected]>",\n  "homepage": "http://msnexploder.github.com/inflect/",\n  "main": "lib/inflect",\n  "files": [\n    "Cakefile",\n    "CHANGELOG.md",\n    "doc",\n    "lib",\n    "LICENSE",\n    "README.md",\n    "spec",\n    "src"\n  ],\n  "scripts": {\n    "test": "cake test"\n  },\n  "directories": {\n    "doc":"./doc",\n    "lib":"./lib"\n  },\n  "engines": {\n    "node": ">= 0.4.x <= 0.6.x"\n  },\n  "devDependencies": {\n    "coffee-script": ">= 1.1.2 < 2.0.0",\n    "docco": ">= 0.3.0 < 0.4.0",\n    "vows": ">= 0.6.0 < 0.7.0",\n    "browserify": ">= 1.8.1 < 1.9.0",\n    "fileify": ">= 0.3.1 < 0.4.0",\n    "uglify-js": ">= 1.1.1 < 1.2.0"\n  }
1,\n  "repository": {\n    "type": "git",\n    "url": "https://github.com/MSNexploder/inflect.git"\n  },\n  "bugs": { "url": "https://github.com/MSNexploder/inflect/issues" },\n  "licenses": [\n    { "type": "MIT",\n      "url": "https://github.com/MSNexploder/inflect/raw/master/LICENSE"\n    }\n  ]\n}'}}),require.define("/inflect/index.coffee",function(e,t,n){(function(){var t,i,o,s,a,r;r=e("./version"),n.package=r.package,n.version=r.version,t=e("./inflections").Inflections,i=function(e){return null!=e&&e.call(this,t.instance()),t.instance()},n.Inflections=t,n.inflections=i,o=e("./methods"),n.camelize=o.camelize,n.underscore=o.underscore,n.dasherize=o.dasherize,n.titleize=o.titleize,n.capitalize=o.capitalize,n.pluralize=o.pluralize,n.singularize=o.singularize,n.humanize=o.humanize,n.ordinalize=o.ordinalize,n.parameterize=o.parameterize,a=e("./string_extensions"),s=e("./number_extensions"),n.enableStringExtensions=a.enableStringExtensions,n.enableNumberExtensions=s.enableNumberExtensions,n.enableExtensions=function(){return a.enableStringExtensions(),s.enableNumberExtensions()},e("./default_inflections")}).call(this)}),require.define("/inflect/version.coffee",function(e,t,n,i){(function(){var t,o;o=e("path"),t="browser"===process.title?e("files")["package.json"]:e("fs").readFileSync(o.join(i,"/../../package.json")),n.package=JSON.parse(t),n.version=n.package.version}).call(this)}),require.define("fs",function(){}),require.define("/inflect/inflections.coffee",function(e,t,n){(function(){var e,t=Array.prototype.slice;e=function(){function e(){this.plurals=[],this.singulars=[],this.uncountables=[],this.humans=[]}return e.instance=function(){return this.__instance__||(this.__instance__=new this)},e.prototype.plural=function(e,t){var n;return"string"==typeof e&&-1!==(n=this.uncountables.indexOf(e))&&this.uncountables.splice(n,1),-1!==(n=this.uncountables.indexOf(t))&&this.uncountables.splice(n,1),this.plurals.unshift([e,t])},e.prototype.singular=function(e,t){var n;return"string"==typeof e&&-1!==(n=this.uncountables.indexOf(e))&&this.uncountables.splice(n,1),-1!==(n=this.uncountables.indexOf(t))&&this.uncountables.splice(n,1),this.singulars.unshift([e,t])},e.prototype.irregular=function(e,t){var n;return-1!==(n=this.uncountables.indexOf(e))&&this.uncountables.splice(n,1),-1!==(n=this.uncountables.indexOf(t))&&this.uncountables.splice(n,1),e[0].toUpperCase()===t[0].toUpperCase()?(this.plural(new RegExp("("+e[0]+")"+e.slice(1)+"$","i"),"$1"+t.slice(1)),this.plural(new RegExp("("+t[0]+")"+t.slice(1)+"$","i"),"$1"+t.slice(1)),this.singular(new RegExp("("+t[0]+")"+t.slice(1)+"$","i"),"$1"+e.slice(1))):(this.plural(new RegExp(""+e[0].toUpperCase()+e.slice(1)+"$"),t[0].toUpperCase()+t.slice(1)),this.plural(new RegExp(""+e[0].toLowerCase()+e.slice(1)+"$"),t[0].toLowerCase()+t.slice(1)),this.plural(new RegExp(""+t[0].toUpperCase()+t.slice(1)+"$"),t[0].toUpperCase()+t.slice(1)),this.plural(new RegExp(""+t[0].toLowerCase()+t.slice(1)+"$"),t[0].toLowerCase()+t.slice(1)),this.singular(new RegExp(""+t[0].toUpperCase()+t.slice(1)+"$"),e[0].toUpperCase()+e.slice(1)),this.singular(new RegExp(""+t[0].toLowerCase()+t.slice(1)+"$"),e[0].toLowerCase()+e.slice(1)))},e.prototype.uncountable=function(){var e;return e=1<=arguments.length?t.call(arguments,0):[],this.uncountables=this.uncountables.concat(e)},e.prototype.human=function(e,t){return this.humans.unshift([e,t])},e.prototype.clear=function(e){return null==e&&(e="all"),"all"===e?(this.plurals=[],this.singulars=[],this.uncountables=[],this.humans=[]):this[e]=[]},e}(),n.Inflections=e}).call(this)}),require.define("/inflect/methods.coffee",function(e,t,n){(function(){var t,i,o,s,a,r,l,c,u,d,p;a=e("../inflect").inflections,t=function(e,t){var n;return null==t&&(t=!0),n=e.replace(/_./g,function(e){return e.slice(1).toUpperCase()}),t?e[0].toUpperCase()+n.slice(1):e[0].toLowerCase()+n.slice(1)},p=function(e){return e.toString().replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/-/g,"_").toLowerCase()},o=function(e){return e.replace(/_/g,"-")},d=function(e){return s(p(e)).replace(/\b('?[a-z])/g,function(e){return i(e)})},i=function(e){return(e[0]||"").toUpperCase()+(e.slice(1)||"").toLowerCase()},c=function(e){var t,n,i,o,s,r,l;if(i=e.toString(),0===e.length||-1!==a().uncountables.indexOf(i.toLowerCase()))return i;for(s=0,r=(l=a().plurals).length;s<r;s++)if(o=(t=l[s])[0],n=t[1],-1!==i.search(o)){i=i.replace(o,n);break}return i},u=function(e){var t,n,i,o,s,r,l,c,u,d,p,h;for(i=e.toString(),r=!1,l=0,u=(p=a().uncountables).length;l<u;l++)if(t=p[l],-1!==i.search(new RegExp("\\b"+t+"$","i"))){r=!0;break}if(0===e.length||r)return i;for(c=0,d=(h=a().singulars).length;c<d;c++)if(o=(s=h[c])[0],n=s[1],-1!==i.search(o)){i=i.replace(o,n);break}return i},s=function(e){var t,n,o,s,r,l,c;for(o=e.toString(),r=0,l=(c=a().humans).length;r<l;r++)if(s=(t=c[r])[0],n=t[1],-1!==o.search(s)){o=o.replace(s,n);break}return i(o.replace(/_id$/,"").replace(/_/g," "))},r=function(e){var t;if(t=parseInt(e,10),-1!==[11,12,13].indexOf(t%100))return e+"th";switch(t%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd";default:return e+"th"}},l=function(e,t){var n;return null==t&&(t="-"),n=(n=e.toString()).replace(/[^a-z0-9\-_]+/gi,t),null!=t&&(n=(n=n.replace(new RegExp(t+"{2,}","g"),t)).replace(new RegExp("^"+t+"|"+t+"$","gi"),"")),n.toLowerCase()},n.camelize=t,n.underscore=p,n.dasherize=o,n.titleize=d,n.capitalize=i,n.pluralize=c,n.singularize=u,n.humanize=s,n.ordinalize=r,n.parameterize=l}).call(this)}),require.define("/inflect/string_extensions.coffee",function(e,t,n){(function(){var t,i;i=e("../inflect"),t=function(){return String.prototype.pluralize=function(){return i.pluralize(this)},String.prototype.singularize=function(){return i.singularize(this)},String.prototype.camelize=function(e){return null==e&&(e=!0),i.camelize(this,e)},String.prototype.capitalize=function(){return i.capitalize(this)},String.prototype.titleize=function(){return i.titleize(this)},String.prototype.underscore=function(){return i.underscore(this)},String.prototype.dasherize=function(){return i.dasherize(this)},String.prototype.parameterize=function(e){return null==e&&(e="-"),i.parameterize(this,e)},String.prototype.humanize=function(){return i.humanize(this)}}
1,n.enableStringExtensions=t}).call(this)}),require.define("/inflect/number_extensions.coffee",function(e,t,n){(function(){var t,i;i=e("../inflect"),t=function(){return Number.prototype.ordinalize=function(){return i.ordinalize(this)}},n.enableNumberExtensions=t}).call(this)}),require.define("/inflect/default_inflections.coffee",function(e){(function(){e("../inflect").inflections(function(e){return e.plural(/$/,"s"),e.plural(/s$/i,"s"),e.plural(/(ax|test)is$/i,"$1es"),e.plural(/(octop|vir)us$/i,"$1i"),e.plural(/(octop|vir)i$/i,"$1i"),e.plural(/(alias|status)$/i,"$1es"),e.plural(/(bu)s$/i,"$1ses"),e.plural(/(buffal|tomat)o$/i,"$1oes"),e.plural(/([ti])um$/i,"$1a"),e.plural(/([ti])a$/i,"$1a"),e.plural(/sis$/i,"ses"),e.plural(/(?:([^f])fe|([lr])f)$/i,"$1$2ves"),e.plural(/(hive)$/i,"$1s"),e.plural(/([^aeiouy]|qu)y$/i,"$1ies"),e.plural(/(x|ch|ss|sh)$/i,"$1es"),e.plural(/(matr|vert|ind)(?:ix|ex)$/i,"$1ices"),e.plural(/([m|l])ouse$/i,"$1ice"),e.plural(/([m|l])ice$/i,"$1ice"),e.plural(/^(ox)$/i,"$1en"),e.plural(/^(oxen)$/i,"$1"),e.plural(/(quiz)$/i,"$1zes"),e.singular(/s$/i,""),e.singular(/(n)ews$/i,"$1ews"),e.singular(/([ti])a$/i,"$1um"),e.singular(/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/i,"$1$2sis"),e.singular(/(^analy)ses$/i,"$1sis"),e.singular(/([^f])ves$/i,"$1fe"),e.singular(/(hive)s$/i,"$1"),e.singular(/(tive)s$/i,"$1"),e.singular(/([lr])ves$/i,"$1f"),e.singular(/([^aeiouy]|qu)ies$/i,"$1y"),e.singular(/(s)eries$/i,"$1eries"),e.singular(/(m)ovies$/i,"$1ovie"),e.singular(/(x|ch|ss|sh)es$/i,"$1"),e.singular(/([m|l])ice$/i,"$1ouse"),e.singular(/(bus)es$/i,"$1"),e.singular(/(o)es$/i,"$1"),e.singular(/(shoe)s$/i,"$1"),e.singular(/(cris|ax|test)es$/i,"$1is"),e.singular(/(octop|vir)i$/i,"$1us"),e.singular(/(alias|status)es$/i,"$1"),e.singular(/^(ox)en/i,"$1"),e.singular(/(vert|ind)ices$/i,"$1ex"),e.singular(/(matr)ices$/i,"$1ix"),e.singular(/(quiz)zes$/i,"$1"),e.singular(/(database)s$/i,"$1"),e.irregular("person","people"),e.irregular("man","men"),e.irregular("child","children"),e.irregular("move","moves"),e.irregular("she","they"),e.irregular("he","they"),e.irregular("myself","ourselves"),e.irregular("yourself","ourselves"),e.irregular("himself","themselves"),e.irregular("herself","themselves"),e.irregular("themself","themselves"),e.irregular("mine","ours"),e.irregular("hers","theirs"),e.irregular("his","theirs"),e.irregular("its","theirs"),e.irregular("theirs","theirs"),e.irregular("sex","sexes"),e.irregular("cow","kine"),e.irregular("zombie","zombies"),e.uncountable("advice","energy","excretion","digestion","cooperation","health","justice","jeans"),e.uncountable("labour","machinery","equipment","information","pollution","sewage","paper","money"),e.uncountable("species","series","rain","rice","fish","sheep","moose","deer","bison","proceedings"),e.uncountable("shears","pincers","breeches","hijinks","clippers","chassis","innings","elk"),e.uncountable("rhinoceros","swine","you","news")})}).call(this)}),require.define("/index.coffee",function(e,t){t.exports=e("./inflect")}),require("/index.coffee"),window.inflect=require("./inflect"),Lail||(Lail={}),Lail.PaginatedList=function(e,t){function n(e){s.current_page=e,s.current_set=s.set.slice(s.firstItemIndex(),s.lastItemIndex()),i(),o()}function i(){s.pagination_container&&s.pagination_container.html(s.renderPagination())}function o(){s.observer.fire("changed",{onInit:s.during_init})}t=t||{};var s=this;this.set=[],this.set_length=0,this.current_page=1,this.page_size=t.page_size||20,this.always_show=void 0===t.always_show||t.always_show,this.page_count=1,this.observer=new Observer,this.pagination_container=null,this.during_init=!1,this.count=function(){return s.set_length},this.init=function(e,t,n){(n||{}).page_size&&(s.page_size=n.page_size),s.during_init=!0,s.set=e,s.set_length=s.set.length,s.page_count=parseInt(Math.ceil(s.set_length/s.page_size)),s.page_count<1&&(s.page_count=1),s.current_page=0,s.gotoPage(t||1),s.during_init=!1},this.gotoPage=function(e){(e=+e)<1&&(e=1),e>s.page_count&&(e=s.page_count),e!=s.current_page&&n(e)},this.firstItemIndex=function(){return(s.current_page-1)*s.page_size||0},this.lastItemIndex=function(){var e=s.current_page*s.page_size;return e>s.set_length?s.set_length:e},this.getCurrentPage=function(){return s.current_page},this.getCurrentSet=function(){return s.current_set},this.getEntireSet=function(){return s.set},this.onPageChange=function(e){s.observer.observe("changed",e)},this.gotoNextPage=function(){return!s.isLastPage()&&(s.gotoPage(s.current_page+1),!0)},this.getNextPageNumber=function(){return s.isLastPage()?s.current_page:s.current_page+1},this.isLastPage=function(){return s.current_page==s.page_count},this.gotoPreviousPage=function(){return!s.isFirstPage()&&(s.gotoPage(s.current_page-1),!0)},this.getPreviousPageNumber=function(){return s.isFirstPage()?s.current_page:s.current_page-1},this.isFirstPage=function(){return 1==s.current_page},this.renderPaginationIn=function(e){s.pagination_container=jQuery(e),s.pagination_container.delegate("a","click",function(e){e.preventDefault(),e.stopImmediatePropagation();var t=jQuery(this);return t.hasClass("prev_page")?s.gotoPreviousPage():t.hasClass("next_page")?s.gotoNextPage():t.hasClass("goto_page")&&s.gotoPage(parseInt(t.attr("id").substring(5))),!1})}
1,this.renderPagination=function(){var e="",t=s.current_page,n=s.page_count,i=1,o=n;if(this.always_show||n>1){if(s.isFirstPage()?e+='<span class="prev_page disabled">&#171; Previous</span> ':e+='<a class="prev_page" href="#" rel="previous">&#171; Previous</a> ',s.page_count>7){o=t+3;var a=(i=t-3)<1?1-i:o>n?n-o:0;i+=a,o+=a}for(var r=i;r<=o;r++)r==s.current_page?e+=' <span class="currentPage">'+r+"</span> ":e+=' <a class="goto_page" href="#" id="page_'+r+'">'+r+"</a> ";s.isLastPage()?e+=' <span class="next_page disabled">Next &#187;</span>':e+=' <a class="next_page" href="#" rel="next">Next &#187;</a>'}return e},this.renderExtendedPagination=function(){var e="Listing <strong>";return s.page_count>1&&(e+=s.firstItemIndex()+1+"&ndash;"+s.lastItemIndex()+"</strong> of <strong>"),e+s.count()+"</strong>"},this.init(e||[])},Lail||(Lail={}),Lail.DelayedAction=function(e,t){function n(){d=c,r||(r=setInterval(i,u))}function i(){d>0?d-=1:(o(),s())}function o(){r&&(clearInterval(r),r=null)}function s(){try{e(a)}catch(e){App.debug(e)}}var a,r,l=(t=t||{}).delay||1e3,c=t.steps||10,u=l/c,d=0;this.trigger=function(e){a=e,n()}},function(){$.fn.extend({cssHover:function(e){return 0===arguments.length?this.hover(function(){return $(this).addClass("hovered")},function(){return $(this).removeClass("hovered")}):this.delegate(e,"hover",function(e){return"mouseenter"===e.type?$(this).addClass("hovered"):$(this).removeClass("hovered")})},isIn:function(e){return this.is(e)||this.parents(e).length>0}})}.call(this),function(){var e,t=function(e,t){function i(){this.constructor=e}for(var o in t)n.call(t,o)&&(e[o]=t[o]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},n={}.hasOwnProperty,i=[].slice;e={13:"RETURN",27:"ESC",38:"UP",40:"DOWN"},window.Neat.CollectionEditor=function(n){function o(){return o.__super__.constructor.apply(this,arguments)}return t(o,n),o.prototype.sortedBy="name",o.prototype.sortOrder="asc",o.prototype.sortAliases={},o.prototype.templateOptions={},o.prototype.pageSize=30,o.prototype.keyDownHandlers={ESC:function(){var e;return null!=(e=this.viewInEdit)?e.cancelEdit():void 0},RETURN:function(){var e;return null!=(e=this.viewInEdit)?e.save():void 0},UP:function(){return this.edit(this.prevView())},DOWN:function(){return this.edit(this.nextView())}},o.prototype.initialize=function(){var e,t,n,i;return this.viewPath=null!=(e=this.viewPath)?e:this.resource,this.singular=inflect.singularize(this.resource),this.modelView=null!=(t=this.modelView)?t:(i=this,function(){var e;return e=inflect.camelize(i.singular)+"View",i.debug("expects viewName to be "+e),window[e]})(),this.debug("looking for template at "+this.viewPath+"/index"),this.template=null!=(n=this.template)?n:Neat.template[this.viewPath+"/index"],this.paginator=new window.Lail.PaginatedList([],{page_size:window.Neat.forPrint?Infinity:this.pageSize,always_show:!1}),this.paginator.onPageChange(_.bind(this.renderPage,this)),this.collection.bind("reset",this.render,this),this.collection.bind("add",this.rerenderPage,this),this.collection.bind("remove",this.rerenderPage,this),this.delayedRerender=new Lail.DelayedAction(_.bind(this.rerenderPage,this),{delay:500}),this.collection.bind("change",function(e){return function(){if(e.sortedBy)return e.delayedRerender.trigger()}}(this)),$(this.el).delegate(".header a","click",_.bind(this.sort,this)),$(this.el).delegate(".editor","keydown",_.bind(this.onKeyDown,this)),this.views=[],this.viewInEdit=null,this.templateOptions={}},o.prototype.repaginate=function(){return this.rerenderPage(1)},o.prototype.rerenderPage=function(e){var t,n;return _.isNumber(e)||(e=this.paginator.getCurrentPage()),n=this.sortField(this.sortedBy),t=this.collection.sortBy(function(e){var t;return t=e.get(n)||"",_.isString(t)?t.toLowerCase():t}),"desc"===this.sortOrder&&t.reverse(),this.paginator.init(t,e)},o.prototype.render=function(){var e;return(e=$(this.el)).html(this.template({collection:this.collection})),e.cssHover(".neat-row.neat-interactive"),this.afterRender(),this.sortedBy&&this.updateSortStyle(),this.paginator.renderPaginationIn(e.find(".pagination")),this.repaginate(),this}
1,o.prototype.afterRender=function(){return this},o.prototype.renderPage=function(){var e,t,n,i,o,s,a,r,l;for(n=!1,t=$(this.el).find("#"+this.resource).empty(),this.views=[],r=this,$(this.el).find(".extended-pagination").html(this.paginator.renderExtendedPagination()),i=0,o=(a=this.paginator.getCurrentSet()).length;i<o;i++)s=a[i],(l=new this.modelView({resource:this.resource,viewPath:this.viewPath,model:s,templateOptions:this.templateOptions})).bind("edit:begin",function(){return r.beforeEdit.call(r,this)}),l.bind("edit:end",function(){return r.afterEdit.call(r,this)}),this.views.push(l),(e=$(l.render().el)).toggleClass("alt",!(n=!n)),t.append(e);return this},o.prototype.beforeEdit=function(e){return this.viewInEdit&&(this.debug("cancelling edit for #"+$(this.viewInEdit.el).attr("id")+" ("+this.indexOfViewInEdit()+")"),this.viewInEdit.cancelEdit()),this.viewInEdit=e,this.debug("beginning edit for #"+$(this.viewInEdit.el).attr("id")+" ("+this.indexOfViewInEdit()+")")},o.prototype.afterEdit=function(e){if(this.viewInEdit===e)return this.viewInEdit=null},o.prototype.sort=function(e){var t;return e.preventDefault(),e.stopImmediatePropagation(),t=$(e.target).closest("a").attr("class").substring(this.singular.length+1),this.log("sort by "+t+" ["+this.sortField(t)+"]"),this.sortedBy===t?this.sortOrder="asc"===this.sortOrder?"desc":"asc":(this.removeSortStyle(this.sortedBy),this.sortedBy=t),this.repaginate(),this.updateSortStyle(),!1},o.prototype.removeSortStyle=function(){},o.prototype.updateSortStyle=function(){return this.removeSortStyle(this.sortedBy)},o.prototype.getHeader=function(e){return $(this.el).find(".header > ."+this.singular+"-"+e)},o.prototype.sortField=function(e){var t;return null!=(t=this.sortAliases[e])?t:e},o.prototype.onKeyDown=function(e){var t,n;if(n=this.identifyKey(e.keyCode),(t=this.keyDownHandlers[n])&&!this.ignoreKeyEventsForTarget(e.target))return e.preventDefault(),t.apply(this)},o.prototype.identifyKey=function(t){return e[t]},o.prototype.ignoreKeyEventsForTarget=function(){return!1},o.prototype.nextView=function(){return this.views[this.indexOfViewInEdit()+1]},o.prototype.prevView=function(){return this.views[this.indexOfViewInEdit()-1]},o.prototype.indexOfViewInEdit=function(){return _.indexOf(this.views,this.viewInEdit)},o.prototype.edit=function(e){var t;if(e)return null!=(t=this.viewInEdit)&&t.save(),e.edit(),this.viewInEdit=e},o.prototype.cancelEdit=function(){var e;return null!=(e=this.viewInEdit)?e.cancelEdit():void 0},o.prototype.debug=function(){var e;if(e=1<=arguments.length?i.call(arguments,0):[],Neat.debug)return this.log.apply(this,e)},o.prototype.log=function(){var e,t;return e=1<=arguments.length?i.call(arguments,0):[],(t=Neat.logger).log.apply(t,["["+this.viewPath+"] "].concat(i.call(e)))},o}(Backbone.View)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty,n=[].slice;window.Neat.ModelEditor=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.tagName="li",i.prototype.className="neat-row neat-interactive neat-editable",i.prototype.initialize=function(e){var t,n,i,o,s,a;return e=null!=e?e:{},this.templateOptions=null!=(t=e.templateOptions)?t:{},this.viewPath=null!=(n=this.viewPath)?n:e.viewPath,this.resource=null!=(i=this.resource)?i:window.inflect.singularize(e.resource),$(this.el).addClass(this.resource),this.model.bind("change",this.render,this),this.showTemplate=null!=(o=this.showTemplate)?o:Neat.template[this.viewPath+"/show"],this.editTemplate=null!=(s=this.editTemplate)?s:Neat.template[this.viewPath+"/edit"],$(this.el).delegate(".save-button","click",_.bind(this.save,this)),$(this.el).delegate(".delete-button","click",_.bind(this.delete,this)),$(this.el).delegate(".cancel-button","click",_.bind(this.cancelEdit,this)),$(this.el).click((a=this,function(e){if(a.canEdit()&&!$(e.target).isIn("input, button, a, label"))return a.edit()}))},i.prototype.render=function(){var e;return e=_.extend(this.model.toJSON(),{options:this.templateOptions}),$(this.el).html(this.template()(e)),$(this.el).attr("id",this.resource+"_"+this.model.get("id")),this},i.prototype.inEdit=function(){return $(this.el).hasClass("editor")},i.prototype.canEdit=function(){return $(this.el).hasClass("neat-editable")&&!this.inEdit()},i.prototype.template=function(){return this.inEdit()?this.editTemplate:this.showTemplate},i.prototype.cancelEdit=function(e){return null!=e&&e.preventDefault(),null!=e&&e.stopImmediatePropagation(),this.inEdit()&&($(this.el).removeClass("editor").addClass("neat-editable"),this.render(),this.trigger("edit:end")),this},i.prototype.edit=function(){var e;return this.inEdit()||((e=$(this.el)).addClass("editor").removeClass("neat-editable hovered"),this.trigger("edit:begin"),this.render(),e.find(":input:visible").first().focus()),this},i.prototype.save=function(e){var t,n,i,o,s;if(null!=e&&e.preventDefault(),t=$(this.el).closest("form"),i=this.attributesFromForm(t),this.debug("saving: ",i),n=this.model.changedAttributes(i),this.okToSave(n))return n&&(o=this.model.toJSON(),this.model.save(n,{wait:!0,success:(s=this,function(){var e;
1for(e in n)n[e],s.debug("  . "+e+" changed from ",o[e]," to ",s.model.get(e));return s.onSaveSuccess()}),error:_.bind(this.onSaveError,this)})),this.cancelEdit()},i.prototype.okToSave=function(){return!0},i.prototype.attributesFromForm=function(e){return e.serializeObject()},i.prototype.delete=function(e){if(null!=e&&e.preventDefault(),this.confirmDelete(this.resource))return $(this.el).removeClass("neat-editable").addClass("deleted"),this.model.destroy({wait:!0,success:(t=this,function(){return t.model.collection&&t.model.collection.remove(t.model),t.onDeleteSuccess}),error:_.bind(this.onSaveError,this)}),this.cancelEdit();var t},i.prototype.confirmDelete=function(e){return confirm("Delete this "+e+"?")},i.prototype.onSaveSuccess=function(){},i.prototype.onSaveError=function(){},i.prototype.onDeleteSuccess=function(){},i.prototype.onDeleteError=function(){},i.prototype.debug=function(){var e;if(e=1<=arguments.length?n.call(arguments,0):[],Neat.debug)return this.log.apply(this,e)},i.prototype.log=function(){var e,t;return e=1<=arguments.length?n.call(arguments,0):[],(t=Neat.logger).log.apply(t,["["+this.resource+"] "].concat(n.call(e)))},i}(Backbone.View)}.call(this),function(){var e;null==window.Unite&&(window.Unite={}),null==Unite.Admin&&(Unite.Admin={}),null==(e=Unite.Admin).Editable&&(e.Editable={}),null==Unite.Themes&&(Unite.Themes={}),Unite.dateFormat="%Y-%m-%d",Unite.dateTimeFormat="%Y-%m-%d %l:%i %p",Unite.postLimit=5e4,window.uploadTargetL
1oaded=function(){return $("#upload_target").trigger("upload:complete")},Unite.pageTemplates=function(){return[new Template({document:new FeedPage,title:"Feed Page",description:"You can use this for blogs",content:'<i class="fa fa-rss" style="font-size: 88px; line-height: 113px"></i>',restricted:!0}),new Template({document:new Group,title:"Group",description:"You can use this to add a group",content:'<i class="fa fa-users" style="font-size: 88px; line-height: 113px"></i>',restricted:!0}),new Template({document:new StaticPage,title:"Blank Page",description:"Just a plain ol' page"}),new Template({document:new StaticPage({title:"Worship Times",cells_attributes:{0:{colspan:12,row:0,column:0,type:"Cell::RichText",value:'<h3>Worship Times</h3>\n<p>\n  On the "Worship Times" page consider including information that details the specifics of your weekend worship, mid-week worship, and any upcoming special services.\n</p>\n<ul>\n  <li>Service times</li>\n  <li>Sunday Bible study</li>\n  <li>Sunday School</li>\n  <li>Upcoming special services</li>\n  <li>Upcoming mid-week services</li>\n</ul>'}}}),description:"List your weekend service(s), time(s), and location(s).  Here you can also highlight special or mid-week services."}),new Template({document:new StaticPage({title:"What to Expect",cells_attributes:{0:{colspan:12,row:0,column:0,type:"Cell::RichText",
2value:'<h3>What to Expect</h3>\n<p>\n  The "What to Expect" page should address common questions people might have before visiting your church for the first time.\n  Consider including information on this page that addresses the following questions:\n</p>\n<ul>\n  <li> What&apos;s a service like? </li>\n  <li> What&apos;s the music like? </li>\n  <li> How people dress? </li>\n  <li> What about my kids? </li>\n  <li> Can I take communion? </li>\n  <li> How can I get connected? </li>\n  <li> What&apos;s the music like? </li>\n  <li> Where do I park? </li>\n</ul>'}}}),description:"Help visitors know what to expect before they visit your church."}),new Template({document:new StaticPage({title:"What We Believe",cells_attributes:{0:{colspan:12,row:0,column:0,type:"Cell::RichText",value:'<h3>What We Believe</h3>\n<p>\n  The "What We Believe" page is space for you to state what your church believes and explain what&apos;s taught in your church.\n  Consider including information on this page that addresses the following topics:\n</p>\n<ul>\n  <li> The Sacraments </li>\n  <li> The Trinity </li>\n  <li> The Scriptures </li>\n  <li> Eternal Salvation </li>\n  <li> The Church </li>\n  <li> God&apos;s relationship with humans </li>\n</ul>'}}}),description:"Share the type of preaching and teaching that goes on within your church."}),new Template({document:new StaticPage({title:"Jesus",cells_attributes:{0:{colspan:12,row:0,column:0,type:"Cell::RichText",value:'<h3>Jesus</h3>\n<p>\n  Who is Jesus?  The "Jesus" page is an opportunity for your church to take its ministry beyond brick and mortar and reach people online with the Gospel message of Jesus Christ.\n  Consider including information on this page that addresses the following questions:\n</p>\n<ul>\n  <li> Who is Jesus? </li>\n  <li> What difference does Jesus make? </li>\n  <li> What did Jesus do for me? </li>\n  <li> Why should I believe in Jesus? </li>\n</ul>'}}}),description:"Who is Jesus?  Use this page as space for online ministry and to share who Jesus is and why He&apos;s important."}),new Template({document:new StaticPage({title:"Directions",cells_attributes:{0:{colspan:12,row:0,column:0,type:"Cell::RichText",value:'<h3>Directions</h3>\n<p>\n  Make it easy for people to find your church.  On the "Directions" page, consider including information that addresses the following:\n</p>\n<ul>\n  <li> Church address </li>\n  <li> A detailed map </li>\n  <li> Written directions </li>\n  <li> Parking information </li>\n  <li> Driving directions </li>\n</ul>'}}}),description:"Guide people straight to your front doors by providing your address, a map, and detailed driving directions."}),new Template({document:new StaticPage({title:"Mission and Vision",cells_attributes:{0:{colspan:12,row:0,column:0,type:"Cell::RichText",value:'<h3>Mission and Vision</h3>\n<p>\n  The "Mission and Vision" page is a place to clearly express what your church is all about.\n  Consider including information on this page that addresses the following:\n</p>\n<ul>\n  <li> What is your church&apos;s mission and vision? </li>\n  <li> How does your mission and vision work together? </li>\n  <li> How do you view small groups/ministries? </li>\n  <li> What is important to your church? </li>\n</ul>'}}}),description:"What is your church&apos;s mission and vision?  How does your mission and vision work together?"}),new Template({document:new StaticPage({title:"Our Story",cells_attributes:{0:{colspan:12,row:0,column:0,type:"Cell::RichText",value:'<h3>Our Story</h3>\n<p>\n  Every church has a beginning&mdash;whether it was last year or a century ago.\n  On the "Our Story" page, consider answering the following questions:\n</p>\n<ul>\n  <li> How did your church begin? </li>\n  <li> How has it grown? </li>\n  <li> How does your church view leadership? </li>\n  <li> Has your church had many seior pastors in the past or just a few? </li>\n  <li> What is your church&apos;s vision for the future? </li>\n</ul>'}}}),description:"What&apos;s your church&apos;s story?  Don't stop with the history; share your vision for the future, too."}),new Template({document:new StaticPage({title:"Our Staff",cells_attributes:{0:{colspan:12,row:0,column:0,type:"Cell::RichText",value:'<h3>Our Staff</h3>\n<p>\n  The "Our Staff" is a page that puts faces with names.  It&apos;s an opportunity to introduce church staff and people in leadership positions with your members and especially potential visitors.\n  Consider including the following on this page:\n</p>\n<ul>\n  <li> Name, title, brief bio, photo </li>\n  <li> Contact information </li>\n  <li> Links to social media </li>\n</ul>'}}}),description:"Introduce church staff and the people in leadership positions.  Include a photo, brief bio, and contact information."}),new Template({document:new StaticPage({title:"Fellowship",cells_attributes:{0:{colspan:12,row:0,column:0,type:"Cell::RichText",value:'<h3>Fellowship</h3>\n<p>
2\n  What fellowship opportunities exist in your church?  Here on the "Fellowship" page, consider including the following information:\n</p>\n<ul>\n  <li> Dates, times, descriptions </li>\n  <li> Men&apos;s fellowship </li>\n  <li> Women&apos;s fellowship </li>\n  <li> Youth fellowship </li>\n  <li> Trips/conferences </li>\n</ul>'}}}),description:"Promote fellowship opportunities on this page, and don't forget to include dates, times, and brief descriptions."}),new Template({document:new StaticPage({title:"Membership",cells_attributes:{0:{colspan:12,row:0,column:0,type:"Cell::RichText",value:'<h3>Membership</h3>\n<p>\n  The "Membership" page is an opportunity for your church to not only welcome new members but also explain the process for becoming a member.\n  Consider addressing the following on this page:\n</p>\n<ul>\n  <li> What does it mean to be a member? </li>\n  <li> Why become a member? </li>\n  <li> Requirements for membership </li>\n  <li> I\'m not a Christian.  What do I need to do to become a member? </li>\n  <li> Baptism </li>\n  <li> Membership transfers </li>\n  <li> Who to contact about becoming a member </li>\n</ul>'}}}),description:"Provide information on the process for becoming a member of your church and whom to contact."}),new Template({document:new StaticPage({title:"News/Announcements",cells_attributes:{0:{colspan:12,row:0,column:0,type:"Cell::RichText",value:'<h3>News/Announcements</h3>\n<p>\n  Keep your congregation and visitors up to date on the latest happenings at your church.\n  Consider including the following on your "News/Announcements" page:\n</p>\n<ul>\n  <li> Upcoming events/conferences </li>\n  <li> Information about job openings </li>\n  <li> Special services </li>\n</ul>'}}}),description:"Highlight the latest news and announcements about church life and events within the community"}),new Template({document:new StaticPage({title:"Ministries",cells_attributes:{0:{colspan:12,row:0,column:0,type:"Cell::RichText",value:'<h3>Ministries</h3>\n<p>\n  The "Ministries" page is a great place to highlight the opportunities people have in your church to get connected and learn more about God&apos;s Word.\n  Consider including information on this page that addresses the following:\n</p>\n<ul>\n  <li> Family ministries </li>\n  <li> Student ministries </li>\n  <li> Men&apos;s/women&apos;s ministries </li>\n  <li> Children&apos;s ministries </li>\n  <li> Small groups </li>\n  <li> Outreach opportunities </li>\n  <li> Care ministries </li>\n</ul>'}}}),description:"Highlight the opportunities people have in your church to get connected and learn more about God&apos;s Word."}),new Template({document:new StaticPage({title:"Contact Us",cells_attributes:{0:{colspan:12,row:0,column:0,type:"Cell::RichText",value:'<h3>Contact Us</h3>\n<p>\n  Make it easy for people to contact your church staff and church leadership.\n  Consider including the following information on the "Contact Us" page:\n</p>\n<ul>\n  <li> Church address </li>\n  <li> Church phone and fax numbers </li>\n  <li> Office email address </li>\n  <li> Contact information for church staff and leadership </li>\n  <li> Social media links </li>\n</ul>'}}}),description:"Make it easy for people to contact your church by providing an address, phone and fax numbers, email addresses, etc."})]},Unite.Admin.init=function(e){return $("html").removeClass("admin-loading"),void 0===Array.prototype["any?"]&&Object.defineProperty(Array.prototype,"any?",{get:function(){return this.length>0}}),void 0===Array.prototype["none?"]&&Object.defineProperty(Array.prototype,"none?",{get:function(){return 0===this.length}}),Unite.admin=new Unite.AdminView(e),Unite.editMode=new Unite.Admin.EditMode({editMode:"1"===$.cookie("em")}),Backbone.history.start(),Unite.Admin.helpWidget=new Unite.Admin.HelpWidget}}.call(this),String.prototype.slugify=function(){return this.replace(/[^\-a-zA-Z0-9\s_]+/gi,"").replace(/[\s_]/gi,"-").replace(/-+/gi,"-").toLowerCase()},String.prototype.toRGB=function(){var e=this.split(",");return e[0]=e[0].split("rgb(")[1],this.r=parseInt(e[0]),this.g=parseInt(e[1]),this.b=parseInt(e[2]),this},Unite.FormBuilder=function(){function e(e,t){var n="";return _.each(e,function(e){n+=e==t?'<option selected="selected">'+e+"</option>":"<option>"+e+"</option>"}),n}function t(e){var t,n=[];for(key in e)t=e[key],n.push(key+'="'+t+'"');return n.join(" ")}var n=function(e){var t;this.normalizeName=function(t){return t=t.replace(/[ \-]/g,"_").toLowerCase(),e+"["+t+"]"},this.normalizeId=function(e){var n=e.replace(/[ \-]/g,"_").toLowerCase();return t?t+"_"+n:n},t=this.normalizeId(e)};return n.prototype.label=function(e,t){return'<label for="'+(t=this.normalizeId(t||e))+'">'+e+"</label>"},n.prototype.color=function(e,n,i,o){var s=this.normalizeId(e);return'<div id="'+s+'_selector" class="colorSelector"><input '+t(_.extend(o||{},{type:"hidden",name:this.normalizeName(e),id:s,value:i}))+' /><div style="background-color: rgb('+i+')"></div>'},n.prototype.option=function(n,i,o,s){var a=this.normalizeId(n);return'<div id="'+a+'_selector" class="optionSelector"><select '+t(_.extend(s||{},{name:this.normalizeName(n),id:a}))+'">'+e(i,o)+"</select></div>"},n.prototype.file=function(e,n,i,o){var s=this.normalizeId(e);return'<div id="'+s+'_selector" class="fileSelector"><input '+t(_.extend(o||{},{type:"text",name:this.normalizeName(e),id:s,value:i}))+' /><button class="btn file-browser">Browse</button><button class="btn file-clearer">Clear</button></div>'},n}(),this.ThemeRenderer={render:function(e,t,n){return t.html=function(){return function(e,t){var n=[];return this.page.type&&n.push("-unite-"+this.page.type),'<!DOCTYPE html>\n<html class="'+n.join(" ")+'">'+t(e)+"</html>"}},t.copyright=function(){return"\xa9 "+(new Date).getFullYear()},t.linkToMap=function(){var e;return e="[object String]"===toString.call(this)?this:this.address,function(t,n){return'<a href="https://maps.google.com/maps?q='+encodeURIComponent(e).replace(/%20/g,"+")+'" target="_blank">'+n(t)+"</a>"}},Mustache.render(e,t,n)}},function(){this.ScrollHandler=function(){function e(e){var t,n,i;null==e&&(e={}),this.$viewPort=$(null!=(t=e.viewPort)?t:window),this.$document=$(null!=(n=e.container)?n:document),this.comparator=this.$document.is(this.$viewPort)?(i=this,function(){return i.$document.height()+i.$document.scrollTop()>=i.$document[0].scrollHeight}):function(e){return function(){return e.documentHeight()<=e.viewportHe
2ight}}(this),this.viewportHeight=this.$viewPort.height(),this.scrollBarHeight=0,this.$viewPort.scroll(_.bind(this.onScroll,this))}return e.prototype.viewPortIsWindow=function(){return $.isWindow(this.$viewPort[0])},e.prototype.documentHeight=function(){return this.viewPortIsWindow()?this.$document.height():this.$viewPort[0].scrollHeight},e.prototype.onScroll=function(){return this.viewportHeight=this.$viewPort.height(),this.scrollbarHeight=this.viewportHeight/this.documentHeight()*this.viewportHeight},e}()}.call(this),function(){window.stopHandler=function(e){return function(t){return t.stopPropagation(),t.preventDefault(),e(t)}},Unite.uploadComplete=function(e){return Unite.debug("[uploadComplete] "+e),$(e).trigger("upload:complete")},Unite.pickAsset=function(e){var t,n,i,o,s,a;return n=e.assets,s=e.selectedAsset,o=e.collectionClass,i=e.onSelect,a=HandlebarsTemplates["assets/modal"],(t=$(a())).on("hidden",function(){return t.remove()}),t.on("shown",function(){var e;return new Unite.BrowseAssetsView({el:"asset_picker",assets:n,collectionClass:o,onSelect:function(e){return s=e},onClose:(e=this,function(){return $(e).modal("hide"),i(s)})}).selectAssetWithUrl(s),$("#select_asset").click(function(e){return function(){return $(e).modal("hide"),i(s)}}(this))}),t.modal()},Unite.currentTheme=function(){return Unite.meta("theme")},Unite.setTheme=function(e){return Unite.setMeta("theme",e)},Unite.getFileName=function(e){return e&&e.match(/.*[\/\\]([^\/\\]+\.\w+)$/)[1]},Unite.toSentence=function(e,t){var n;return null==t&&(t="and"),(e=e.slice()).length>=3?(n=e.pop(),e.join(", ")+", "+t+" "+n.toString()):e.join(" "+t+" ")},Unite.formatDate=function(e){var t,n,i;return t="am",(n=(e=new Date(Date.parse(e))).getHours())>11&&(n-=12,t="pm"),0===n&&(n=12),1===(i=e.getMinutes().toString()).length&&(i="0"+i),Unite.MONTHS[e.getMonth()]+" "+e.getDate()+", "+e.getFullYear()+"  "+n+":"+i+" "+t.toUpperCase()},Unite.serializeDateFor=function(e,t){var n,i,o,s,a,r,l;return i=new Date,l=e[t+"[year]"],r=e[t+"[month]"],o=e[t+"[day]"],n=e[t+"[ampm]"].toUpperCase(),s=e[t+"[hour]"],a=e[t+"[minute]"],"PM"===n&&(s=12+Number(s)),l&&i.setYear(l),r&&i.setMonth(r),o&&i.setDate(o),s&&i.setHours(s),a&&i.setMinutes(a),i},Unite.getFirstSegmentOfPath=function(){return window.location.pathname.match(/\/?([^\/]*)/)[1]},Unite.MONTHS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Unite.bytesToSize=function(e,t){var n,i,o,s;return void 0===t&&(t=2),s=1024*(n=1024*(o=1024*(i=1024))),e>=0&&e<i?e+" B":e>=i&&e<o?(e/i).toFixed(t)+" KB":e>=o&&e<n?(e/o).toFixed(t)+" MB":e>=n&&e<s?(e/n).toFixed(t)+" GB":e>=s?(e/s).toFixed(t)+" TB":e+" B"},Unite.benchmark=function(e){var t;return t=new Date,{stop:function(){var n;return n=(new Date).getTime()-t.getTime(),console.log("["+e+"] finished in "+n+"ms")}}},Unite.pluckSort=function(e,t){return _.flatten(_.map(t,function(t){return _.filter(e,function(e,n){return new RegExp(t).test(n)})}))},Unite.Helpers={groupMemberAdded:function(e){var t;return _.isString(e[0])&&(e=_.map(e,function(e){return JSON.parse(e)})),(t=$(".-unite-admin-frame")[0].contentWindow).$("body").trigger("membership:created",[e]),t.$("#group_memberships").trigger("ft:create")},root_url:function(){var e;return(e=parseUri(document.URL).source.split("/")).pop(),e.join("/")+"/"},capitalize:function(e){return e?""+e.charAt(0).toUpperCase()+e.slice(1):e},CELLS_PER_LAYOUT:{1:1,2:2,3:2,4:3,5:3,6:4},getLayoutCellCount:function(e){return this.CELLS_PER_LAYOUT[e]},refreshPage:function(){return window.location.reload()},closeAndRefreshPage:function(){return window.location=window.location.pathname},showSaveNotice:function(){return this.showFlashMessage("success","Your changes have been saved.")},showFlashMessage:function(e,t,n,i){var o;return o={context:i?i.context:"admin",fade:n},o=$.extend(o,i),Unite.showFlashMessage(e,t,o)},hideFlashMessage:function(e,t){return Unite.hideFlashMessage(e,{context:"admin",fade:t})},showActiveModelErrors:function(e){var t;try{this.validator&&this.validator.showErrors(e)}catch(e){0}if((t=_.values(e)).length>
20)return this.showFlashMessage("error",t.join(" "))},formatActiveModelErrors:function(e){var t,n,i,o;for(n in i={},e)o=e[n],t=_(o).map(function(e){var t;return(t="base"===n?e:n.humanize()+" "+e).match(/\.$/)||(t+="."),t}),i[n]=t.join(" ");return i},handleCollectionError:function(e,t,n){return 401===n.status?(Unite.admin.close(),Unite.handleUnauthorized()):new Unite.Admin.ErrorView({message:"Error loading "+e+"."})},handleActiveModelError:function(e,t){var n;return(n=Unite.parseJSON(t.responseText))?this.showActiveModelErrors(this.formatActiveModelErrors(n)):403===t.status&&null!=t.responseText?this.showFlashMessage("error",t.responseText):(this.showFlashMessage("error","An error occurred."),Unite.debug(arguments),Unite.debug(t.responseText))}}}.call(this),function(){var e,t=function(e,t){return function(){return e.apply(t,arguments)}};e=240,Unite.Admin.EditMode=function(){function n(){var e;this.appendSettings=t(this.appendSettings,this),this.editMode=!1,this.isSetup=!1,$("#admin_edit_page_button").click((e=this,function(){return e.toggle()})),$("#admin_close_edit_page_button").click(function(e){return function(){return e.hide()}}(this)),this.$admin=$("#admin"),this.noStripe=$("body").hasClass("-unite-no-admin-stripe"),this.$body=$(".-unite-admin-frame"),this.$bodyWindow=this.$body[0].contentWindow,this.$editPanel=$("#admin_edit_page"),this.$editPanelForm=this.$editPanel.find("#admin_edit_page_form"),this.$editPanel.find("#_unite_save_page").on("click",_.bind(this.saveChanges,this)),this.$editPanel.find("#_unite_revert_page").on("click",_.bind(this.revertChanges,this)),$("html").addClass("-unite-page-editable")}return n.prototype.toggle=function(){if(!this.$editPanel.is(".disabled"))return this.editMode?this.hide():this.show()},n.prototype.show=function(){var t,n;return this.editMode=!0,$("html").toggleClass("edit-mode",this.editMode),t={marginLeft:[e,0],width:"-="+e+"px"},this.noStripe||$.extend(t,{marginTop:[0,38]}),this.$body.velocity(t),this.noStripe||this.$admin.velocity({top:[-38,0]}),this.$editPanel.velocity({left:[0,-e]},{complete:(n=this,function(){return $.put("/view_settings",{edit_mode:n.editMode}),$("body").trigger("unite:editmode:on"),n.$bodyWindow.$("body").trigger("unite:editmode:on")})})},n.prototype.hide=function(){var t,n;return this.editMode=!1,$("html").toggleClass("edit-mode",this.editMode),$("body").trigger("unite:editmode:off"),this.noStripe||this.$body.css("height","calc(100% - 38px)"),t={marginLeft:[0,e],width:"100%"},this.noStripe||$.extend(t,{marginTop:[38,0]}),this.$body.velocity(t),this.noStripe||this.$admin.velocity({top:[0,-38]}),this.$editPanel.velocity({left:[-e,0]},{complete:(n=this,function(){return $.put("/view_settings",{edit_mode:n.editMode}),n.documentInEdit.loadOriginalContent(),n.$bodyWindow.$("body").trigger("unite:editmode:off"),n.teardown()})})},n.prototype.disable=function(){return this.$editPanel.addClass("disabled")},n.prototype.enable=function(){return this.$editPanel.removeClass("disabled")},n.prototype.setup=function(){var e,t;if(this.isSetup=!0,!this.documentInEdit)return this.$document=this.$bodyWindow.$("#document"),e=+this.$document.attr("data-document-id"),this.documentInEdit=function(){switch(this.$document.attr("data-document-type")){case"page":return new EditPage(e,StaticPage);case"feed":return new EditFeed(e,FeedPage);case"post":return new EditPost(e,Post)}}.call(this),this.documentInEdit.fetch().then((t=this,function(){var e;if(t.editMode)return t.renderPageSettings(),e=t.$bodyWindow.editor,t.toggleRevert(t.documentInEdit.canRevert&&e.hasUnsavedChanges),t.toggleSaveText()}))},n.prototype.teardown=function(){return this.$editPanelForm.html(""),this.isSetup=!1,this.documentInEdit=null},n.prototype.nonEditablePage=function(){return this.editMode&&this.hide(),this.disable()},n.prototype.renderPageSettings=function(){return this.documentInEdit.cancelEvents(),this.documentInEdit.fetchExternalResources(this.appendSettings)},n.prototype.appendSettings=function(e){var t;return t=HandlebarsTemplates["edit_mode/edit_"+this.documentInEdit.type]({document:this.documentInEdit.document,slugPath:this.documentInEdit.rootUrl(),externalResources:e}),$(t).prependTo(this.$editPanelForm),this.documentInEdit.startEvents()},n.prototype.toggleRevert=function(e){return void 0===e&&(e=this.documentInEdit.canRevert),$("#_unite_revert_page").toggle(e)},n.prototype.toggleSaveText=function(){var e;return e="published"===this.documentInEdit.document.get("status")?"Publish":"Save Draft",$("#_unite_save_page").text(e)},n.prototype.saveChanges=function(){var e,t;if(this.editor=this.$bodyWindow.editor,this.changesAreValid())return e=this.changes(),t="/admin/"+inflect.pluralize(this.documentInEdit.type).toLowerCase()+"/"+this.documentInEdit.id,$.put(t,e).success(_.bind(this.changesSaved,this)).error(_.bind(this.changesNotSaved,this))},n.prototype.revertChanges=function(){var e,t;return this.editor=this.$bodyWindow.editor,e=inflect.pluralize(this.documentInEdit.type).toLowerCase(),$.ajax({type:"DELETE",url:"/admin/"+e+"/"+this.documentInEdit.id+"/draft",success:(t=this,function(e){if(t.documentInEdit.resetMetadata(e),t.editor.resetContent)return t.editor.resetContent(e)})})},n.prototype.markHasUnsaved=function(e){return this.toggleRevert(e)},n.prototype.changesAreValid=function(){return this.editor.changesAreValid()},n.prototype.changes=function(){var e;return e={},this.editor.addContentChanges(e),this.documentInEdit.addSettingsChanges(e),e},n.prototype.changesSaved=function(e){return e.redirectTo?(Unite.storeMessage("success","Saved!"),Unite.loadUrlToIframe(e.redirectTo)):(this.resetDirty(),this.documentInEdit.document.set(_.pick(e,"status")),this.documentInEdit.rerender(["#post_status","#post_published_at"],this.$editPanelForm),this.documentInEdit.startEvents(),this.editor.changesSaved(),Unite.storeMessage("success","Saved!"),Unite.loadUrlToIframe(location.href))},n.prototype.changesNotSaved=function(e){var t;return t=Unite.formatActiveModelErrors(JSON.parse(e.responseText)),Unite.storeMessage("error",t),Unite.loadUrlToIframe(location.href)},n.prototype.resetDirty=function(){try{return this.$document.removeClass("dirty"),this.$body.removeClass("dirty")}catch(e){}},n}()}.call(this),function(){Unite.Admin.FontLoader=function(){function e(e){var t,n,i;if(e.onlyBodyFonts)for(n in this.fonts={},i=Unite.Admin.fonts)(t=i[n]).isBodyFont&&(this.fonts[n]=t);else this.fonts=_(Unite.Admin.fonts).clone()}return e.prototype.loadFontsToDocument=function(){var e;return e="<script>\n   WebFontConfig = {\n      google: { families: ["+this.fontFamilies()+"] },\n      text: 'Some sample text to preview your style',\n      classes: false\n   };\n\n   (function(d) {\n      var wf = d.createElement('script'), s = d.scripts[0];\n      wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.6.16/webfont.js';\n      s.parentNode.insertBefore(wf, s);\n   })(document);\n</script>",$("body").append(e)},e.prototype.fontFamilies=function(){var e;return e=_.omit(this.fonts,"Arial","Times New Roman","Georgia","Verdana"),_.map(e,function(e,t){return"'"+t+":"+_.uniq(_.pluck(e.variants,"weight"))+"'"})},e.descriptionToWeight=function(e){switch(e){case"Thin":return"100";case"Extra Light":return"200";case"Light":return"300";case"Normal":return"400";
2case"Medium":return"500";case"Semi Bold":return"600";case"Bold":return"700";case"Extra Bold":return"800";case"Heavy":return"900"}},e}()}.call(this),Unite.Admin.fonts={ABeeZee:{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0}],family:"ABeeZee, sans-serif",url:"http://fonts.gstatic.com/s/abeezee/v9/mE5BOuZKGln_Ex0uYKpIaw.ttf",isBodyFont:!1},"Abril Fatface":{variants:[{name:"Normal",weight:400,italic:!1}],family:"Abril Fatface, display",url:"http://fonts.gstatic.com/s/abrilfatface/v8/X1g_KwGeBV3ajZIXQ9VnDojjx0o0jr6fNXxPgYh_a8Q.ttf",isBodyFont:!1},Alegreya:{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0},{name:"Heavy",weight:900,italic:!1},{name:"Heavy Italic",weight:900,italic:!0}],family:"Alegreya, serif",url:"http://fonts.gstatic.com/s/alegreya/v7/62J3atXd6bvMU4qO_ca-eA.ttf",isBodyFont:!0},"Alegreya Sans":{variants:[{name:"Thin",weight:100,italic:!1},{name:"Thin Italic",weight:100,italic:!0},{name:"Light",weight:300,italic:!1},{name:"Light Italic",weight:300,italic:!0},{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Medium",weight:500,italic:!1},{name:"Medium Italic",weight:500,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0},{name:"Extra Bold",weight:800,italic:!1},{name:"Extra Bold Italic",weight:800,italic:!0},{name:"Heavy",weight:900,italic:!1},{name:"Heavy Italic",weight:900,italic:!0}],family:"Alegreya Sans, sans-serif",url:"http://fonts.gstatic.com/s/alegreyasans/v3/KYNzioYhDai7mTMnx_gDgn8f0n03UdmQgF_CLvNR2vg.ttf",isBodyFont:!0},Alice:{variants:[{name:"Normal",weight:400,italic:!1}],family:"Alice, serif",url:"http://fonts.gstatic.com/s/alice/v7/wZTAfivekBqIg-rk63nFvQ.ttf",isBodyFont:!0},Allan:{variants:[{name:"Normal",weight:400,italic:!1},{name:"Bold",weight:700,italic:!1}],family:"Allan, display",url:"http://fonts.gstatic.com/s/allan/v7/T3lemhgZmLQkQI2Qc2bQHA.ttf",isBodyFont:!1},Allerta:{variants:[{name:"Normal",weight:400,italic:!1}],family:"Allerta, sans-serif",url:"http://fonts.gstatic.com/s/allerta/v7/s9FOEuiJFTNbMe06ifzV8g.ttf",isBodyFont:!1},"Amatic SC":{variants:[{name:"Normal",weight:400,italic:!1},{name:"Bold",weight:700,italic:!1}],family:"Amatic SC, handwriting",url:"http://fonts.gstatic.com/s/amaticsc/v8/MldbRWLFytvqxU1y81xSVg.ttf",isBodyFont:!1},Andika:{variants:[{name:"Normal",weight:400,italic:!1}],family:"Andika, sans-serif",url:"http://fonts.gstatic.com/s/andika/v7/oe-ag1G0lcqZ3IXfeEgaGg.ttf",isBodyFont:!0},"Antic Didone":{variants:[{name:"Normal",weight:400,italic:!1}],family:"Antic Didone, serif",url:"http://fonts.gstatic.com/s/anticdidone/v4/r3nJcTDuOluOL6LGDV1vRy3USBnSvpkopQaUR-2r7iU.ttf",isBodyFont:!1},Anton:{variants:[{name:"Normal",weight:400,italic:!1}],family:"Anton, sans-serif",url:"http://fonts.gstatic.com/s/anton/v7/XIbCenm-W0IRHWYIh7CGUQ.ttf",isBodyFont:!1},Arapey:{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0}],family:"Arapey, serif",url:"http://fonts.gstatic.com/s/arapey/v5/dqu823lrSYn8T2gApTdslA.ttf",isBodyFont:!1},Arial:{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold",weight:700,italic:!0}],family:"Arial, sans-serif",url:null,isBodyFont:!0},Arimo:{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0}],family:"Arimo, sans-serif",url:"http://fonts.gstatic.com/s/arimo/v9/Gpeo80g-5ji2CcyXWnzh7g.ttf",isBodyFont:!0},Arvo:{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0}],family:"Arvo, serif",url:"http://fonts.gstatic.com/s/arvo/v9/vvWPwz-PlZEwjOOIKqoZzA.ttf",isBodyFont:!0},Asap:{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0}
2],family:"Asap, sans-serif",url:"http://fonts.gstatic.com/s/asap/v4/2lf-1MDR8tsTpEtvJmr2hA.ttf",isBodyFont:!1},Average:{variants:[{name:"Normal",weight:400,italic:!1}],family:"Average, serif",url:"http://fonts.gstatic.com/s/average/v4/aHUibBqdDbVYl5FM48pxyQ.ttf",isBodyFont:!1},Bitter:{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1}],family:"Bitter, serif",url:"http://fonts.gstatic.com/s/bitter/v8/w_BNdJvVZDRmqy5aSfB2kQ.ttf",isBodyFont:!0},"Bree Serif":{variants:[{name:"Normal",weight:400,italic:!1}],family:"Bree Serif, serif",url:"http://fonts.gstatic.com/s/breeserif/v5/5h9crBVIrvZqgf34FHcnEfesZW2xOQ-xsNqO47m55DA.ttf",isBodyFont:!1},Cabin:{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Medium",weight:500,italic:!1},{name:"Medium Italic",weight:500,italic:!0},{name:"Semi Bold",weight:600,italic:!1},{name:"Semi Bold Italic",weight:600,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0}],family:"Cabin, sans-serif",url:"http://fonts.gstatic.com/s/cabin/v9/XeuAFYo2xAPHxZGBbQtHhA.ttf",isBodyFont:!0},Candal:{variants:[{name:"Normal",weight:400,italic:!1}],family:"Candal, sans-serif",url:"http://fonts.gstatic.com/s/candal/v6/x44dDW28zK7GR1gGDBmj9g.ttf",isBodyFont:!0},"Cantata One":{variants:[{name:"Normal",weight:400,italic:!1}],family:"Cantata One, serif",url:"http://fonts.gstatic.com/s/cantataone/v6/-a5FDvnBqaBMDaGgZYnEfqCWcynf_cDxXwCLxiixG1c.ttf",isBodyFont:!0},Cardo:{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1}],family:"Cardo, serif",url:"http://fonts.gstatic.com/s/cardo/v8/jbkF2_R0FKUEZTq5dwSknQ.ttf",isBodyFont:!0},"Crete Round":{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0}],family:"Crete Round, serif",url:"http://fonts.gstatic.com/s/creteround/v5/B8EwN421qqOCCT8vOH4wJ6CWcynf_cDxXwCLxiixG1c.ttf",isBodyFont:!0},"Crimson Text":{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Semi Bold",weight:600,italic:!1},{name:"Semi Bold Italic",weight:600,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0}],family:"Crimson Text, serif",url:"http://fonts.gstatic.com/s/crimsontext/v6/3IFMwfRa07i-auYR-B-zNS3USBnSvpkopQaUR-2r7iU.ttf",isBodyFont:!0},"Dancing Script":{variants:[{name:"Normal",weight:400,italic:!1},{name:"Bold",weight:700,italic:!1}],family:"Dancing Script, handwriting",url:"http://fonts.gstatic.com/s/dancingscript/v7/DK0eTGXiZjN6yA8zAEyM2RnpV0hQCek3EmWnCPrvGRM.ttf",isBodyFont:!1},Dosis:{variants:[{name:"Extra Light",weight:200,italic:!1},{name:"Light",weight:300,italic:!1},{name:"Normal",weight:400,italic:!1},{name:"Medium",weight:500,italic:!1},{name:"Semi Bold",weight:600,italic:!1},{name:"Bold",weight:700,italic:!1},{name:"Extra Bold",weight:800,italic:!1}],family:"Dosis, sans-serif",url:"http://fonts.gstatic.com/s/dosis/v6/rJRlixu-w0JZ1MyhJpao_Q.ttf",isBodyFont:!1},"Droid Sans":{variants:[{name:"Normal",weight:400,italic:!1},{name:"Bold",weight:700,italic:!1}],family:"Droid Sans, sans-serif",url:"http://fonts.gstatic.com/s/droidsans/v6/rS9BT6-asrfjpkcV3DXf__esZW2xOQ-xsNqO47m55DA.ttf",isBodyFont:!0},"Droid Serif":{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0}],family:"Droid Serif, serif",url:"http://fonts.gstatic.com/s/droidserif/v6/DgAtPy6rIVa2Zx3Xh9KaNaCWcynf_cDxXwCLxiixG1c.ttf",isBodyFont:!0},"EB Garamond":{variants:[{name:"Normal",weight:400,italic:!1}],family:"EB Garamond, serif",url:"http://fonts.gstatic.com/s/ebgaramond/v7/CDR0kuiFK7I1OZ2hSdR7G6CWcynf_cDxXwCLxiixG1c.ttf",isBodyFont:!0},Esteban:{variants:[{name:"Normal",weight:400,italic:!1}],family:"Esteban, serif",url:"http://fonts.gstatic.com/s/esteban/v4/ESyhLgqDDyK5JcFPp2svDw.ttf",isBodyFont:!0},Exo:{variants:[{name:"Thin",weight:100,italic:!1},{name:"Thin Italic",weight:100,italic:!0},{name:"Extra Light",weight:200,italic:!1}
2,{name:"Extra Light Italic",weight:200,italic:!0},{name:"Light",weight:300,italic:!1},{name:"Light Italic",weight:300,italic:!0},{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Medium",weight:500,italic:!1},{name:"Medium Italic",weight:500,italic:!0},{name:"Semi Bold",weight:600,italic:!1},{name:"Semi Bold Italic",weight:600,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0},{name:"Extra Bold",weight:800,italic:!1},{name:"Extra Bold Italic",weight:800,italic:!0},{name:"Heavy",weight:900,italic:!1},{name:"Heavy Italic",weight:900,italic:!0}],family:"Exo, sans-serif",url:"http://fonts.gstatic.com/s/exo/v4/eUEzTFueNXRVhbt4PEB8kQ.ttf",isBodyFont:!0},"Fanwood Text":{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0}],family:"Fanwood Text, serif",url:"http://fonts.gstatic.com/s/fanwoodtext/v6/hDNDHUlsSb8bgnEmDp4T_i3USBnSvpkopQaUR-2r7iU.ttf",isBodyFont:!0},"Fjalla One":{variants:[{name:"Normal",weight:400,italic:!1}],family:"Fjalla One, sans-serif",url:"http://fonts.gstatic.com/s/fjallaone/v4/3b7vWCfOZsU53vMa8LWsf_esZW2xOQ-xsNqO47m55DA.ttf",isBodyFont:!1},"Francois One":{variants:[{name:"Normal",weight:400,italic:!1}],family:"Francois One, sans-serif",url:"http://fonts.gstatic.com/s/francoisone/v9/bYbkq2nU2TSx4SwFbz5sCC3USBnSvpkopQaUR-2r7iU.ttf",isBodyFont:!1},"Gentium Book Basic":{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0}],family:"Gentium Book Basic, serif",url:"http://fonts.gstatic.com/s/gentiumbookbasic/v7/IRFxB2matTxrjZt6a3FUnrWDjKAyldGEr6eEi2MBNeY.ttf",isBodyFont:!0
3},Georgia:{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold",weight:700,italic:!0}],family:"Georgia, serif",url:null,isBodyFont:!0},"Goudy Bookletter 1911":{variants:[{name:"Normal",weight:400,italic:!1}],family:"Goudy Bookletter 1911, serif",url:"http://fonts.gstatic.com/s/goudybookletter1911/v6/l5lwlGTN3pEY5Bf-rQEuIIjNDsyURsIKu4GSfvSE4mA.ttf",isBodyFont:!1},Imprima:{variants:[{name:"Normal",weight:400,italic:!1}],family:"Imprima, sans-serif",url:"http://fonts.gstatic.com/s/imprima/v4/eRjquWLjwLGnTEhLH7u3kA.ttf",isBodyFont:!0},Inconsolata:{variants:[{name:"Normal",weight:400,italic:!1},{name:"Bold",weight:700,italic:!1}],family:"Inconsolata, monospace",url:"http://fonts.gstatic.com/s/inconsolata/v12/7bMKuoy6Nh0ft0SHnIGMuaCWcynf_cDxXwCLxiixG1c.ttf",isBodyFont:!1},"Indie Flower":{variants:[{name:"Normal",weight:400,italic:!1}],family:"Indie Flower, handwriting",url:"http://fonts.gstatic.com/s/indieflower/v8/10JVD_humAd5zP2yrFqw6i3USBnSvpkopQaUR-2r7iU.ttf",isBodyFont:!1},"Istok Web":{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0}],family:"Istok Web, sans-serif",url:"http://fonts.gstatic.com/s/istokweb/v10/RYLSjEXQ0nNtLLc4n7--dQ.ttf",isBodyFont:!0},"Josefin Sans":{variants:[{name:"Thin",weight:100,italic:!1},{name:"Thin Italic",weight:100,italic:!0},{name:"Light",weight:300,italic:!1},{name:"Light Italic",weight:300,italic:!0},{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Semi Bold",weight:600,italic:!1},{name:"Semi Bold Italic",weight:600,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0}],family:"Josefin Sans, sans-serif",url:"http://fonts.gstatic.com/s/josefinsans/v9/xgzbb53t8j-Mo-vYa23n5i3USBnSvpkopQaUR-2r7iU.ttf",isBodyFont:!1},"Josefin Slab":{variants:[{name:"Thin",weight:100,italic:!1},{name:"Thin Italic",weight:100,italic:!0},{name:"Light",weight:300,italic:!1},{name:"Light Italic",weight:300,italic:!0},{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Semi Bold",weight:600,italic:!1},{name:"Semi Bold Italic",weight:600,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0}
3],family:"Josefin Slab, serif",url:"http://fonts.gstatic.com/s/josefinslab/v6/46aYWdgz-1oFX11flmyEfS3USBnSvpkopQaUR-2r7iU.ttf",isBodyFont:!1},Karla:{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0}],family:"Karla, sans-serif",url:"http://fonts.gstatic.com/s/karla/v5/78UgGRwJFkhqaoFimqoKpQ.ttf",isBodyFont:!0},Lato:{variants:[{name:"Thin",weight:100,italic:!1},{name:"Thin Italic",weight:100,italic:!0},{name:"Light",weight:300,italic:!1},{name:"Light Italic",weight:300,italic:!0},{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0},{name:"Heavy",weight:900,italic:!1},{name:"Heavy Italic",weight:900,italic:!0}],family:"Lato, sans-serif",url:"http://fonts.gstatic.com/s/lato/v11/h7rISIcQapZBpei-sXwIwg.ttf",isBodyFont:!0},Lekton:{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1}],family:"Lekton, sans-serif",url:"http://fonts.gstatic.com/s/lekton/v7/r483JYmxf5PjIm4jVAm8Yg.ttf",isBodyFont:!1},"Libre Baskerville":{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1}],family:"Libre Baskerville, serif",url:"http://fonts.gstatic.com/s/librebaskerville/v4/pR0sBQVcY0JZc_ciXjFsKyyZRYCSvpCzQKuMWnP5NDY.ttf",isBodyFont:!0},Lobster:{variants:[{name:"Normal",weight:400,italic:!1}],family:"Lobster, display",url:"http://fonts.gstatic.com/s/lobster/v18/9LpJGtNuM1D8FAZ2BkJH2Q.ttf",isBodyFont:!1},Lora:{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0}],family:"Lora, serif",url:"http://fonts.gstatic.com/s/lora/v9/aXJ7KVIGcejEy1abawZazg.ttf",isBodyFont:!0},"Medula One":{variants:[{name:"Normal",weight:400,italic:!1}],family:"Medula One, display",url:"http://fonts.gstatic.com/s/medulaone/v6/AasPgDQak81dsTGQHc5zUPesZW2xOQ-xsNqO47m55DA.ttf",isBodyFont:!1},Merriweather:{variants:[{name:"Light",weight:300,italic:!1},{name:"Light Italic",weight:300,italic:!0},{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0},{name:"Heavy",weight:900,italic:!1},{name:"Heavy Italic",weight:900,italic:!0}],family:"Merriweather, serif",url:"http://fonts.gstatic.com/s/merriweather/v13/RFda8w1V0eDZheqfcyQ4EC3USBnSvpkopQaUR-2r7iU.ttf",isBodyFont:!0},Molengo:{variants:[{name:"Normal",weight:400,italic:!1}],family:"Molengo, sans-serif",url:"http://fonts.gstatic.com/s/molengo/v7/jcjgeGuzv83I55AzOTpXNQ.ttf",isBodyFont:!0},Montserrat:{variants:[{name:"Normal",weight:400,italic:!1},{name:"Bold",weight:700,italic:!1}],family:"Montserrat, sans-serif",url:"http://fonts.gstatic.com/s/montserrat/v7/Kqy6-utIpx_30Xzecmeo8_esZW2xOQ-xsNqO47m55DA.ttf",isBodyFont:!1},Muli:{variants:[{name:"Light",weight:300,italic:!1},{name:"Light Italic",weight:300,italic:!0},{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0}],family:"Muli, sans-serif",url:"http://fonts.gstatic.com/s/muli/v7/KJiP6KznxbALQgfJcDdPAw.ttf",isBodyFont:!0},Neuton:{variants:[{name:"Extra Light",weight:200,italic:!1},{name:"Light",weight:300,italic:!1},{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Extra Bold",weight:800,italic:!1}],family:"Neuton, serif",url:"http://fonts.gstatic.com/s/neuton/v8/9R-MGIOQUdjAVeB6nE6PcQ.ttf",isBodyFont:!1},"Noto Sans":{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0}],family:"Noto Sans, sans-serif",url:"http://fonts.gstatic.com/s/notosans/v6/0Ue9FiUJwVhi4NGfHJS5uA.ttf",isBodyFont:!0},"Noto Serif":{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0}
3],family:"Noto Serif, serif",url:"http://fonts.gstatic.com/s/notoserif/v4/zW6mc7bC1CWw8dH0yxY8JfesZW2xOQ-xsNqO47m55DA.ttf",isBodyFont:!0},"Old Standard TT":{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1}],family:"Old Standard TT, serif",url:"http://fonts.gstatic.com/s/oldstandardtt/v7/n6RTCDcIPWSE8UNBa4k-DLcB5jyhm1VsHs65c3QNDr0.ttf",isBodyFont:!0},"Oleo Script":{variants:[{name:"Normal",weight:400,italic:!1},{name:"Bold",weight:700,italic:!1}],family:"Oleo Script, display",url:"http://fonts.gstatic.com/s/oleoscript/v5/21stZcmPyzbQVXtmGegyqKCWcynf_cDxXwCLxiixG1c.ttf",isBodyFont:!1},"Oleo Script Swash Caps":{variants:[{name:"Normal",weight:400,italic:!1},{name:"Bold",weight:700,italic:!1}],family:"Oleo Script Swash Caps, display",url:"http://fonts.gstatic.com/s/oleoscriptswashcaps/v4/vdWhGqsBUAP-FF3NOYTe4iMF4kXAPemmyaDpMXQ31P0.ttf",isBodyFont:!1},"Open Sans":{variants:[{name:"Light",weight:300,italic:!1},{name:"Light Italic",weight:300,italic:!0},{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Semi Bold",weight:600,italic:!1},{name:"Semi Bold Italic",weight:600,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0},{name:"Extra Bold",weight:800,italic:!1},{name:"Extra Bold Italic",weight:800,italic:!0}],family:"Open Sans, sans-serif",url:"http://fonts.gstatic.com/s/opensans/v13/IgZJs4-7SA1XX_edsoXWog.ttf",isBodyFont:!0},Oswald:{variants:[{name:"Light",weight:300,italic:!1},{name:"Normal",weight:400,italic:!1},{name:"Bold",weight:700,italic:!1}],family:"Oswald, sans-serif",url:"http://fonts.gstatic.com/s/oswald/v11/uLEd2g2vJglLPfsBF91DCg.ttf",isBodyFont:!1},Ovo:{variants:[{name:"Normal",weight:400,italic:!1}],family:"Ovo, serif",url:"http://fonts.gstatic.com/s/ovo/v7/mFg27dimu3s9t09qjCwB1g.ttf",isBodyFont:!1},Oxygen:{variants:[{name:"Light",weight:300,italic:!1},{name:"Normal",weight:400,italic:!1},{name:"Bold",weight:700,italic:!1}],family:"Oxygen, sans-serif",url:"http://fonts.gstatic.com/s/oxygen/v5/uhoyAE7XlQL22abzQieHjw.ttf",isBodyFont:!0},"PT Sans":{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0}],family:"PT Sans, sans-serif",url:"http://fonts.gstatic.com/s/ptsans/v8/UFoEz2uiuMypUGZL1NKoeg.ttf",isBodyFont:!0},"PT Sans Narrow":{variants:[{name:"Normal",weight:400,italic:!1},{name:"Bold",weight:700,italic:!1}],family:"PT Sans Narrow, sans-serif",url:"http://fonts.gstatic.com/s/ptsansnarrow/v7/UyYrYy3ltEffJV9QueSi4ZTvAuddT2xDMbdz0mdLyZY.ttf",isBodyFont:!1},"PT Serif":{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0}],family:"PT Serif, serif",url:"http://fonts.gstatic.com/s/ptserif/v8/sAo427rn3-QL9sWCbMZXhA.ttf",isBodyFont:!0},Pacifico:{variants:[{name:"Normal",weight:400,italic:!1}],family:"Pacifico, handwriting",url:"http://fonts.gstatic.com/s/pacifico/v7/GIrpeRY1r5CzbfL8r182lw.ttf",isBodyFont:!1},"Passion One":{variants:[{name:"Normal",weight:400,italic:!1},{name:"Bold",weight:700,italic:!1},{name:"Heavy",weight:900,italic:!1}],family:"Passion One, display",url:"http://fonts.gstatic.com/s/passionone/v6/1UIK1tg3bKJ4J3o35M4heqCWcynf_cDxXwCLxiixG1c.ttf",isBodyFont:!1},"Playfair Display":{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0},{name:"Heavy",weight:900,italic:!1},{name:"Heavy Italic",weight:900,italic:!0}],family:"Playfair Display, serif",url:"http://fonts.gstatic.com/s/playfairdisplay/v10/2NBgzUtEeyB-Xtpr9bm1CV6uyC_qD11hrFQ6EGgTJWI.ttf",isBodyFont:!1},"Playfair Display SC":{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0},{name:"Heavy",weight:900,italic:!1},{name:"Heavy Italic",weight:900,italic:!0}],family:"Playfair Display SC, serif",url:"http://fonts.gstatic.
3com/s/playfairdisplaysc/v5/G0-tvBxd4eQRdwFKB8dRkcpjYTDWIvcAwAccqeW9uNM.ttf",isBodyFont:!1},"Poiret One":{variants:[{name:"Normal",weight:400,italic:!1}],family:"Poiret One, display",url:"http://fonts.gstatic.com/s/poiretone/v4/dWcYed048E5gHGDIt8i1CPesZW2xOQ-xsNqO47m55DA.ttf",isBodyFont:!1},Quattrocento:{variants:[{name:"Normal",weight:400,italic:!1},{name:"Bold",weight:700,italic:!1}],family:"Quattrocento, serif",url:"http://fonts.gstatic.com/s/quattrocento/v8/WZDISdyil4HsmirlOdBRFC3USBnSvpkopQaUR-2r7iU.ttf",isBodyFont:!1},Quicksand:{variants:[{name:"Light",weight:300,italic:!1},{name:"Normal",weight:400,italic:!1},{name:"Bold",weight:700,italic:!1}],family:"Quicksand, sans-serif",url:"http://fonts.gstatic.com/s/quicksand/v5/Ngv3fIJjKB7sD-bTUGIFCA.ttf",isBodyFont:!1},Raleway:{variants:[{name:"Thin",weight:100,italic:!1},{name:"Thin Italic",weight:100,italic:!0},{name:"Extra Light",weight:200,italic:!1},{name:"Extra Light Italic",weight:200,italic:!0},{name:"Light",weight:300,italic:!1},{name:"Light Italic",weight:300,italic:!0},{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Medium",weight:500,italic:!1},{name:"Medium Italic",weight:500,italic:!0},{name:"Semi Bold",weight:600,italic:!1},{name:"Semi Bold Italic",weight:600,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0},{name:"Extra Bold",weight:800,italic:!1},{name:"Extra Bold Italic",weight:800,italic:!0},{name:"Heavy",weight:900,italic:!1},{name:"Heavy Italic",weight:900,italic:!0}],family:"Raleway, sans-serif",url:"http://fonts.gstatic.com/s/raleway/v11/_dCzxpXzIS3sL-gdJWAP8A.ttf",isBodyFont:!1},Righteous:{variants:[{name:"Normal",weight:400,italic:!1}],family:"Righteous, display",url:"http://fonts.gstatic.com/s/righteous/v5/0nRRWM_gCGCt2S-BCfN8WQ.ttf",isBodyFont:!1},Roboto:{variants:[{name:"Thin",weight:100,italic:!1},{name:"Thin Italic",weight:100,italic:!0},{name:"Light",weight:300,italic:!1},{name:"Light Italic",weight:300,italic:!0},{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Medium",weight:500,italic:!1},{name:"Medium Italic",weight:500,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0},{name:"Heavy",weight:900,italic:!1},{name:"Heavy Italic",weight:900,italic:!0}],family:"Roboto, sans-serif",url:"http://fonts.gstatic.com/s/roboto/v15/W5F8_SL0XFawnjxHGsZjJA.ttf",isBodyFont:!0},Rokkitt:{variants:[{name:"Normal",weight:400,italic:!1},{name:"Bold",weight:700,italic:!1}],family:"Rokkitt, serif",url:"http://fonts.gstatic.com/s/rokkitt/v10/GMA7Z_ToF8uSvpZAgnp_VQ.ttf",isBodyFont:!1},Sacramento:{variants:[{name:"Normal",weight:400,italic:!1}],family:"Sacramento, handwriting",url:"http://fonts.gstatic.com/s/sacramento/v4/_kv-qycSHMNdhjiv0Kj7BvesZW2xOQ-xsNqO47m55DA.ttf",isBodyFont:!1},"Sigmar One":{variants:[{name:"Normal",weight:400,italic:!1}],family:"Sigmar One, display",url:"http://fonts.gstatic.com/s/sigmarone/v6/oh_5NxD5JBZksdo2EntKefesZW2xOQ-xsNqO47m55DA.ttf",isBodyFont:!1},"Source Sans Pro":{variants:[{name:"Extra Light",weight:200,italic:!1},{name:"Extra Light Italic",weight:200,italic:!0},{name:"Light",weight:300,italic:!1},{name:"Light Italic",weight:300,italic:!0},{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Semi Bold",weight:600,italic:!1},{name:"Semi Bold Italic",weight:600,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0},{name:"Heavy",weight:900,italic:!1},{name:"Heavy Italic",weight:900,italic:!0}],family:"Source Sans Pro, sans-serif",url:"http://fonts.gstatic.com/s/sourcesanspro/v9/ODelI1aHBYDBqgeIAH2zlNRl0pGnog23EMYRrBmUzJQ.ttf",isBodyFont:!0},Spinnaker:{variants:[{name:"Normal",weight:400,italic:!1}],family:"Spinnaker, sans-serif",url:"http://fonts.gstatic.com/s/spinnaker/v8/MQdIXivKITpjROUdiN6Jgg.ttf",isBodyFont:!0},"Times New Roman":{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold",weight:700,italic:!0}],family:"Times New Roman, serif",url:null,isBodyFont:!0},Ubuntu:{variants:[{name:"Light",weight:300,italic:!1}
3,{name:"Light Italic",weight:300,italic:!0},{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Medium",weight:500,italic:!1},{name:"Medium Italic",weight:500,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0}],family:"Ubuntu, sans-serif",url:"http://fonts.gstatic.com/s/ubuntu/v9/lhhB5ZCwEkBRbHMSnYuKyA.ttf",isBodyFont:!0},"Vast Shadow":{variants:[{name:"Normal",weight:400,italic:!1}],family:"Vast Shadow, display",url:"http://fonts.gstatic.com/s/vastshadow/v6/io4hqKX3ibiqQQjYfW0-h6CWcynf_cDxXwCLxiixG1c.ttf",isBodyFont:!1},Verdana:{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold",weight:700,italic:!0}],family:"Verdana, sans-serif",url:null,isBodyFont:!0},Vollkorn:{variants:[{name:"Normal",weight:400,italic:!1},{name:"Normal Italic",weight:400,italic:!0},{name:"Bold",weight:700,italic:!1},{name:"Bold Italic",weight:700,italic:!0}],family:"Vollkorn, serif",url:"http://fonts.gstatic.com/s/vollkorn/v6/IiexqYAeh8uII223thYx3w.ttf",isBodyFont:!0},"Yanone Kaffeesatz":{variants:[{name:"Extra Light",weight:200,italic:!1},{name:"Light",weight:300,italic:!1},{name:"Normal",weight:400,italic:!1},{name:"Bold",weight:700,italic:!1}],family:"Yanone Kaffeesatz, sans-serif",url:"http://fonts.gstatic.com/s/yanonekaffeesatz/v7/YDAoLskQQ5MOAgvHUQCcLdXn3cHbFGWU4T2HrSN6JF4.ttf",isBodyFont:!1}},function(){Handlebars.registerHelper("ifEqual",function(e,t,n){return e===t?n.fn(this):n.inverse(this)}),Handlebars.registerHelper("menuItemClass",function(e){switch(e){case"Category":return"menu-item-category";case"StaticPage":case"FeedPage":return"menu-item-document page-row";default:return"menu-item-static page-row"}}),Handlebars.registerHelper("nestable",function(e){return"Category"===e?"nestable":"no-nest"}),Handlebars.registerHelper("veryShortDate",function(e){if(e&&(e=new Date(Date.parse(e))),e)return e.getMonth()+1+"/"+e.getDate()}),Handlebars.registerHelper("timeago",function(e){return e?'<abbr rel="tooltip" title="'+Unite.formatDate(e)+'">'+$.timeago(e)+"</abbr>":""}),Handlebars.registerHelper("formatDate",function(e,t){return e?Unite.formatDate(e):t.hash.else||""}),Handlebars.registerHelper("formatContactEmails",function(e){return e&&e.contactEmails&&e.contactEmails.length>0?'<span rel="tooltip" title="'+I18n.t("users.explain_contact_emails",{name:e.first_name})+'" class="user-contact-emails">'+Unite.toSentence(e.contactEmails,"or")+"</span>":""}),Handlebars.registerHelper("userVisibility",function(e){return"optout"===e?"opted-out":"false"===e?"unlisted":"listed"}),Handlebars.registerHelper("statusSelect",function(e,t){var n;return(n=$("<select />").prop(t.hash).html(t.fn(this))).find('[value="'+e+'"]').attr({selected:"selected"}),"published"===e&&n.find('[value="scheduled"]').remove(),n[0].outerHTML}),Handlebars.registerHelper("fromDeclarations",function(e,t,n){var i,o;return(o=jQuery.extend({},e)).hasOwnProperty("border")&&(i=o.border.toRGB(),["","top-","right-","bottom-","left-"].each(function(e){return o["border-"+e+"color"]="rgb("+i.r+","+i.g+","+i.b+")"})),o[t]?o[t]:n}),Handlebars.registerHelper("ifPropertyTrue",function(e,t,n){return e.get(t)?n.fn(this):n.inverse(this)}),Handlebars.registerHelper("getProperty",function(e,t){return e.get(t)}),Handlebars.registerHelper("renderBorderPartial",function(e,t){var n;return n={declarations:t.hash.declarations,prefix:t.hash.prefix,colorProperty:"border-"+t.hash.prefix+"color"},new Handlebars.SafeString(HandlebarsTemplates[e](n))}),Handlebars.registerHelper("renderAdminSideMenuPartial",function(e,t){var n;return n={action:t.hash.action},new Handlebars.SafeString(HandlebarsTemplates[e](n))}),Handlebars.registerHelper("renderStyleDeclarationsPartial",function(e,t){var n;return n={style:t.hash.style,declarations:t.hash.style.get("declarations"),fonts:t.hash.fonts},new Handlebars.SafeString(HandlebarsTemplates[e](n))}),Handlebars.registerHelper("renderInlineStyle",function(e){var t,n,i;for(t in n=[],e)i=e[t],t.match(/^margin/)||n.push(t+":"+i+";");return n.join(" ")}),Handlebars.registerHelper("optionLabel",function(e,t){return t.label(e)}),Handlebars.registerHelper("optionValue",function(e,t,n){return n[e.type](e.name,e.args,t[e.name],{"data-property":e.name})}),Handlebars.registerHelper("unlessNormal",function(e,t){if("Normal"!==e.get("name"))return t.fn(this)}),Handlebars.registerHelper("ifPaidTier",function(e){return(Unite.permissions.freeTier?e.inverse:e.fn)(this)}),Handlebars.registerHelper("optInPerson",function(e){return e.id?e.name:"\u2014"}),Handlebars.registerHelper("ifHasContact",function(e,t){return e.id?t.fn(this):t.inverse(this)})}.call(this),function(){Unite.Admin.HelpWidget=function(){function e(){var e,t,n;t=this,e=["#help_search","#help_feedback","#help_shortcuts","#help_article"],this.view=null,$(document.body).on("click",".help-icon",function(){var e,n,i;return i=(e=$(this).parent()).hasClass("open"),n=e.find(".help-popover"),i?(e.removeClass("open opening").addClass("closing"),n.velocity({bottom:48,opacity:0}
3,{duration:300,easing:[400,20],complete:function(){return e.removeClass("open opening closing")}})):(e.removeClass("open closing").addClass("opening"),n.velocity({bottom:64,opacity:1},{duration:300,easing:[400,20],complete:function(){return e.removeClass("opening closing").addClass("open"),e.find("#help_search_field").select()}}),t.updateViewName())}),$(document.body).on("click",'.help a[role="tab"]',function(n){var i,o,s,a;if(n.preventDefault(),n.stopImmediatePropagation(),"#help_article"===(s=$(this).attr("href"))){if(o=+$(this).attr("data-article-id"),!(i=_.findWhere(t.articles,{id:o})))return;$("#help_article_content").html(HandlebarsTemplates["help/article"](i))}return a=_.reject(e,function(e){return e===s}),$(a.join()).addClass("hidden"),$(s).removeClass("hidden")}),$(document.body).on("keydown","#help_search_field",(n=this,function(e){var t;if(13===e.which)return e.preventDefault(),e.stopImmediatePropagation(),0===(t=$("#help_search_field").val()).length?n.showResultsFor("people"):n.showResultsFor(t)})),$(document.body).on("keydown","#feedback_text",function(e){return function(t){if(13===t.which)return t.preventDefault(),t.stopImmediatePropagation(),e.sendFeedback()}}(this)),$(document.body).on("click","#send_feedback_button",function(e){return function(t){return t.preventDefault(),t.stopImmediatePropagation(),e.sendFeedback()}}(this))}return e.prototype.updateViewName=function(){var e,t,n;if(t=window.location.hash.substring(1).split("/")[2],n=(e=$('a[href="'+(t&&"#/admin/"+t)+'"]'))[0]&&e[0].text.trim()||"Edit Page",$("#help_widget").find(".popover-title > span").text(n),n!==this.viewName)return this.viewName=n,this.showSuggestions()},e.prototype.showSuggestions=function(){var e,t;return e=inflect.underscore(this.viewName).replace(/[ _]/,"-"),$.get("/admin/help/suggested",{view:e}).success((t=this,function(e){return t.articles=e.articles,$("#help_search_results").html(HandlebarsTemplates["help/suggestions"](e))})).error(function(e){return function(t){var n;return n=e.messageForError(t),$("#help_search_results").html(HandlebarsTemplates["help/error"](n))}}(this))},e.prototype.showResultsFor=function(e){return $.get("/admin/help/search",{query:e}).success((t=this,function(e){return t.articles=e.results,$("#help_search_results").html(HandlebarsTemplates["help/results"](e))})).error(function(e){return function(t){var n;return n=e.messageForError(t),$("#help_search_results").html(HandlebarsTemplates["help/error"](n))}}(this));var t},e.prototype.messageForError=function(e){if(504===e.status)return"Our server was taking too long to respond. Please check again in a few minutes."},e.prototype.sendFeedback=function(){var e,t,n,i,o,s,a;return n=$("#feedback_message"),o=$("#feedback_subject"),i=$("#feedback_priority"),""===n.val()||""===o.val()?this.detailsRequired():((e=$("#send_feedback_button")).prop("disabled","disabled"),s={message:n.val(),subject:o.val(),priority:i.val()||"low"},a=$.post("/feedback",s),t=$("#feedback_response"),a.success(function(){return t.addClass("success"),t.html("We've received your feedback. Thanks!")}),a.error(function(){return t.addClass("error"),t.html("An error occurred when sending your feedback. Try again?")}),a.always(function(){return e.removeProp("disabled"),n.val(""),o.val(""),i.find("option[value='low']").attr("selected","selected")}))},e.prototype.detailsRequired=function(){var e;return(e=$("#feedback_response")).addClass("error"),e.html("Please leave a brief subject and detailed description for your feedback. Thanks!")},e}()}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;Unite.Admin.InfiniteReveal=function(t){function n(e){var t,i,o,s;if(null==e&&(e={}),n.__super__.constructor.apply(this,arguments),this.$el=null!=(t=e.$el)?t:$(".infinite-scroll"),this.pageSize=null!=(i=e.pageSize)?i:50,this.render=e.render,!this.render)throw"InfiniteReveal requires a 'render' callback";this.afterRender=e.afterRender,this.emptySet=e.emptySet,this.scrollLabel=new Unite.Admin.ScrollLabel({viewPort:e.viewPort,total:(null!=(o=e.items)?o.length:void 0)||0,rendered:this.pageSize}),this.pagesRendered=0,this.init(null!=(s=e.items)?s:[])}return e(n,t),n.prototype.sensitivity=5,n.prototype.init=function(e,t){if(this.items=e,null==t&&(t={}),this.reset(t),0===this.items.length)return"function"==typeof this.emptySet?this.emptySet():void 0},n.prototype.reset=function(e){return null==e&&(e={}),this.offset=0,e.preserveScrollState||(this.pagesRendered=0),this.total=this.items.length,this.$el.html(""),e.preserveScrollState?this.appendPage(this.pagesRendered*this.pageSize):(this.appendPage(),this.pagesRendered+=1)},n.prototype.getCurrentSet=function(){return this.items.slice(this.offset,this.offset+this.pageSize)},n.prototype.onScroll=function(){if(n.__super__.onScroll.apply(this,arguments),this.viewportHe
3ight!==this.scrollbarHeight&&this.$el.is(":visible"))return Math.abs(this.$viewPort.scrollTop()-(this.documentHeight()-this.viewportHeight))<=this.sensitivity?this.loadMore():void 0},n.prototype.loadMore=function(){return!(this.rendered>=this.total)&&(this.appendPage(),this.pagesRendered+=1,!0)},n.prototype.appendPage=function(e){var t,n;if(null==e&&(e=this.pageSize),n=this.items.slice(this.offset,this.offset+e),this.rendered=this.offset+e,this.scrollLabel.resetPage({total:this.items.length,rendered:this.rendered}),Unite.debug("[infinite] rendering "+this.offset+".."+(this.offset+e)+" ("+n.length+")"),t=this.render(n),this.$el.append(t),this.offset+=e,this.$el.trigger("infiniteReveal:append"),"function"==typeof this.afterRender&&this.afterRender(),this.comparator())return this.loadMore()},n}(this.ScrollHandler)}.call(this),function(){Unite.Admin.InfiniteScroll=function(){function e(e){var t,n;if(null==e&&(e={}),this.$el=null!=(t=e.$el)?t:$(".infinite-scroll"),this.offset=null!=(n=e.offset)?n:50,this.load=e.load,this.items=e.items,!this.load)throw"InfiniteScroll requires a 'load' callback";this.success=e.success,this.error=e.error,this.$document=$(document),this.$el.scroll(_.bind(this.onScroll,this))}return e.prototype.onScroll=function(){if(!this.$el.hasClass("loading")&&!this.$el.hasClass("infinite-scroll-finished")&&this.$el.is(":visible")&&this.$el.scrollTop()>=this.$el[0].scrollHeight-this.$document.height()-this.offset)return this.loadMore()},e.prototype.loadMore=function(){var e,t;if(e=this.load(this.$el))return this.$el.addClass("loading"),e.done((t=this,function(e){var n;return t.$el.removeClass("loading"),null==(n=e[t.items])&&(n=e),n.length>0?t.success?t.success(n):void 0:t.$el.addClass("infinite-scroll-finished")})),e.fail(function(e){return function(){if(e.$el.removeClass("loading"),e.error)return e.error()}}(this))},e}()}.call(this),function(){Unite.fetchPageList=function(){var e;return((e=window.location.pathname.match(/^\/groups\/([^\/]+)/))?new window.parent.GroupDocuments([],{slug:e[1]}):new window.parent.Documents).fetch()}}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;Unite.Admin.ScrollLabel=function(t){function n(e){var t,i,o;null==e&&(e={}),n.__super__.constructor.apply(this,arguments),this.$el=$(null!=(t=e.el)?t:"#scrolllabel"),this.rendered=null!=(i=e.rendered)?i:1,this.total=null!=(o=e.total)?o:1,this.initLabelPosition()}return e(n,t),n.prototype.resetPage=function(e){if(null==e&&(e={}),null!=e.total&&(this.total=e.total),null!=e.rendered)return this.rendered=e.rendered},n.prototype.initLabelPosition=function(){var e,t;if(this.topOffset=0,this.$el.removeAttr("style"),!this.viewPortIsWindow())return e=parseInt($("#scrolllabel").css("right"))||0,t=$(window).width()-(this.$viewPort.offset().left+this.$viewPort.outerWidth()),$("#scrolllabel").css("right",e+t+"px"),this.topOffset=this.$viewPort.offset().top},n.prototype.onScroll=function(){var e,t,i,o,s;if(n.__super__.onScroll.apply(this,arguments),this.viewportHeight!==this.scrollbarHeight)return e=(o=this.$viewPort.scrollTop()/(this.documentHeight()-this.viewportHeight))*(this.viewportHeight-this.scrollbarHeight)+this.scrollbarHeight/2-$("#scrolllabel").height()/2,o<0&&(o=0),(t=this.rendered/this.total)>1&&(t=1),(i=o*t*100)>100&&(i=100),$("#scrolllabel").css("top",e+this.topOffset).text(Math.round(i)+"%").fadeIn(100),null!=this.scrollTimer&&clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout((s=this,function(){return s.$el.fadeOut()}),400)},n}(this.ScrollHandler)}.call(this),function(){Unite.Admin.SortableTable=function(){function e(e,t){this.table=$(e),this.options=null!=t?t:{},this.headingSelector=this.options.headingSelector||".sortable",this.currentSortCommand=null,this.currentSortField=null,this.activateSorters()}return e.prototype.activateSorters=function(){var e;return e=this,this.table.delegate(this.headingSelector,"click",function(t){var n,i,o,s,a,r,l;return t.stopImmediatePropagation(),l=(n=$(this)).attr("id").substring(8),a=(s=(r=0===(o=(i=n.attr("data-modes"))?i.split(/\s+/):[]).length?e.defaultSortModesFor(l):e.prependNameToModes(l,o)).indexOf(e.currentSortCommand))+1>=r.length?0:s+1,e.applySort(r[a]),!1})},e.prototype.defaultSortModesFor=function(e){return[e+":asc",e+":desc"]},e.prototype.prependNameToModes=function(e,t){return t.map(function(t){return e+"/"+t})},e.prototype.applySort=function(e){return this.indicateSort(e),this.currentSortCommand=e,this.notifyObservers()},e.prototype.indicateSort=function(e){var t,n,i;return t=(e=e.split(/[:\/]/))[0],n=3===e.length?e[1]:null,i=e[e.length-1],this.removeSortIndicators(this.currentSortField),this.currentSortField=t,this.addSortIndicators(t,n,i)},e.prototype.removeSortIndicators=function(e){if(e)return $('[id="sort_by_'+e+'"]').removeClass("asc desc").find("a").children(".mode").remove()},e.prototype.addSortIndicators=function(e,t,n){var i;if(e&&((i=$('[id="sort_by_'+e+'"]')).addClass(n),t))return i.find("a").append('<span class="mode"> ('+t+")</span>")},e.prototype.notifyObservers=function(){return this.table.trigger("sorted",[this.currentSortCommand])},e.prototype.sortCommand=function(){return this.currentSortCommand},e.prototype.sortBy=function(e){return this.applySort(e),this},e.prototype.onSort=function(e){return this.table.bind("sorted",e),this},e}()}.call(this),function(){var e;e=function(e){return _.isUndefined(e)||_.isNull(e)||""===e},Unite.Admin.UserSorter=function(){function t(){}return t.prototype.sorterFor=function(e,n){switch(console.log("field",e),e){case"Name":return this.comparerFor(["last_name","preferred_name"],_.bind(this.stringComparer,this));case"Email":return this.comparerFor({email:["email_addresses","address"]},_.bind(this.stringComparer,this));case"Role":return this.comparerFor("role",_.bind(this.stringComparer,this));case"Sign-in":return this.comparerFor(["last_sign_in_at","invited_at"],_.bind(this.stringComparer,this));case"Password-expires":return this.comparerFor(["password_expires_at","last_sign_in_at"],_.bind(this.stringComparer,this));case"Listed":return this.comparerFor("visible_in_unite",_.bind(this.stringComparer,this));case"Phone-number":return this.comparerFor("number",_.bind(this.stringComparer,this));default:return t.__super__.sorterFor.call(this,e,n)}},t.prototype.sortBy=function(e,t){var n,i,o,s,a,r;return t=t.split(/[:\/]/),o=inflect.camelize(inflect.dasherize(t[0])
3),s=3===t.length?t[1]:null,this.order=t[t.length-1],a=_.bind(this.sorterFor(o,s),this),r=_.bind(this.secondaryComparer(),this),n=function(e,t){return a(e,t)||r(e,t)},i="desc"===this.order?function(e,t){return-n(e,t)}:n,(e||[]).sort(i)},t.prototype.secondaryComparer=function(){return function(){return 0}},t.prototype.comparerFor=function(e,t){return e instanceof Array?function(n,i){var o,s,a,r,l,c;for(a=r=0,l=e.length;0<=l?r<l:r>l;a=0<=l?++r:--r)if(n&&n.get?(o=n&&n.get(e[a]),s=i&&i.get(e[a])):(o=n&&n[e[a]],s=i&&i[e[a]]),0!==(c=t(o,s)))return c;return 0}:e instanceof Object?function(n,o){var s,a,r,l,c,u;return r=_.keys(e)[0],c=(l=_.values(e)[0])[0],u=l[1],n&&n.get?(s=n&&n.get(e[i]),a=o&&o.get(e[i])):(s=n&&n[r]?n[r]:n[c]&&_.first(n[c])&&_.first(n[c])[u],a=o&&o[r]?o[r]:o[c]&&_.first(o[c])&&_.first(o[c])[u]),t(s,a)}:function(n,i){return n.get?(n=n.get(e),i=i.get(e)):(n=n[e],i=i[e]),t(n,i)}},t.prototype.stringComparer=function(e,t){return this.handleNulls(e,t,(n=this,function(e,t){return n.defaultComparer(e.toString().toLowerCase().trim(),t.toString().toLowerCase().trim())}));var n},t.prototype.defaultComparer=function(e,t){return this.handleNulls(e,t,function(e,t){return e<t?-1:e>t?1:0})},t.prototype.handleNulls=function(t,n,i){if(e(t)&&e(n))return 0;if("asc"===this.order){if(e(t))return 1
4;if(e(n))return-1}else{if(e(t))return-1;if(e(n))return 1}return i(t,n)},t}()}.call(this),function(){Unite.Admin.StylesPreview=function(){function e(e,t){null==t&&(t={}),this.$el=e,this.type=t.type,null==this.type&&(this.type=this.$el.data("display")),this.styles=t.styles,this.wrapperClass=t.wrapperClass||"preview-wrapper",this.windowClass=t.windowClass||"preview-window",this.sampleClass=t.sampleClass||"sample-text",this.$el.html(this.html()),this.$wrapper=this.$el.find("."+this.wrapperClass),this.$window=this.$el.find("."+this.windowClass),this.$sampleText=this.$el.find("."+this.sampleClass),this.$line=this.$el.find(".sample-line"),this.loadDefaultStyles(),this.prepPreview(),this.setStyleOfBackgroundText(),$(window).on("resize",_.bind(this.prepPreview,this)),$("body").on("preview:updated",_.bind(this.prepPreview,this))}return e.prototype.prepPreview=function(){var e;return e=this.$line.width(),this.$wrapper.css({width:e,marginLeft:-e/2})},e.prototype.setStyleOfBackgroundText=function(){var e,t,n;return e=(t=document.getElementById("body_frame").contentWindow).getComputedStyle(t.document.body,null),n=_.pick(e,"font-size","font-family","font-weight","line-height"),$(".background-text").css(n)},e.prototype.loadDefaultStyles=function(){return this.$sampleText.attr({style:this.styles})},e.prototype.html=function(){return"inline"===this.type?'<div class="'+this.wrapperClass+'">\n  <span class="background-text">eget vulputate pulvinar tempor suspendisse id sapien, quis cras nulla tortor dolor et tincidunt habitant a senectus interdum et tortor, a, sit purus ut consectetur a tristique ullamcorper ipsum sed venenatis sit eu ullamcorper lectus pharetra massa elementum quis aliquam lacinia nec semper ullamcorper odio amet lorem mi vitae velit purus donec sem mattis vitae neque sagittis nunc neque, pharetra.</span>\n  <span class="background-text">eu volutpat mattis eros, aliquam dignissim sed enim nunc tellus imperdiet molestie ornare malesuada ornare velit mi semper magna lorem faucibus in egestas at lectus cursus laoreet orci nunc cras vestibulum, iaculis sit vitae eleifend turpis aliquet et platea eget tincidunt pellentesque pharetra, dolor a, magna donec sit consectetur neque euismod semper nunc sed est turpis eget ac tortor, tortora.</span>\n  <span class="sample-line background-text">lla porta integer nulla sed amet massa ac euismod vitae non dolor, leo auctor tincidunt id tristique mauris tortor. <span class="'+this.sampleClass+'">Some sample text to preview your style</span> libero, eget phasellus in pellentesque lorem rhoncus dolor fermentum facilisis quis consequat massa a praesent magna enim, sed aliquet elit lectus viverra condimentum in turpi.</span>\n  <span class="background-text">duis ac a orci consequat vitae habitant sem enim leo facilisis mollis sed vestibulum dictumst proin at leo, eget pulvinar vitae nisi, molestie justo felis habitasse praesent sed dui quis risus fermentum vulputate venenatis, in lacus, venenatis scelerisque eu neque, adipiscing id mattis eget scelerisque nisl suspendisse lectus purus tortor, aliquet a sit turpis eros, libero, turpis volutpat dolor.</span>\n  <span class="background-text">fermentum praesent pellentesque scelerisque lorem viverra luctus ut id viverra sed vitae consectetur sapien, at mauris tempor elit varius vitae iaculis consequat diam lorem integer felis pellentesque purus hac cras cursus nec proin lorem orci velit at consequat diam nisl accumsan sagittis, massa dolor donec nisi, eget in convallis mattis tellus quis magna amet fringilla dolor, nisl enim consequa.</span>\n  <div class="'+this.windowClass+'"></div>\n</div>':"block"===this.type?'<span class="background-text">eget vulputate pulvinar tempor suspendisse id sapien, quis cras nulla tortor dolor et tincidunt habitant a senectus interdum et tortor, a, sit purus ut consectetur a tristique ullamcorper ipsum sed venenatis sit eu ullamcorper lectus pharetra massa elementum quis aliquam lacinia nec semper ullamcorper odio amet lorem mi vitae velit purus donec sem mattis vitae neque sagittis nunc neque, pharetra.</span>\n<div class="block-preview">\n  <div class="'+this.sampleClass+'">\n    <div class="text-wrapper">\n      Some sample text to preview your style\n    </div>\n  </div>\n</div>\n<span class="background-text">fermentum praesent pellentesque scelerisque lorem viverra luctus ut id viverra sed vitae consectetur sapien, at mauris tempor elit varius vitae iaculis consequat diam lorem integer felis pellentesque purus hac cras cursus nec proin lorem orci velit at consequat diam nisl accumsan sagittis, massa dolor donec nisi, eget in convallis mattis tellus quis magna amet fringilla dolor, nisl enim consequa.</span>':void 0},e}()}.call(this),Unite.AnalyticsSettings=Backbone.Model.extend({url:function(){return"/admin/settings/analytics"}}),Unite.CalendarSettings=Backbone.Model.extend({url:function(){return"/admin/settings/calendar"}}),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;window.Unite.Calendar=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.url=function(){var e;return e="/admin/calendars",this.isNew()?e:e+"/"+this.id},n.prototype.public_url=function(){return this.get("url")},n}(Backbone.Model),window.Unite.Calendars=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=Unite.Calendar,n.prototype.url="/admin/calendars",n}(Backbone.Collection)}.call(this);
4var Comment=Unite.Model.extend({base:"/admin/comments"}),Comments=Backbone.Collection.extend({model:Comment,url:"/admin/comments",unapproved:function(){return this.filter(function(e){return"unapproved"==e.get("status")})}});Unite.DomainSettings=Backbone.Model.extend({url:function(){return"/admin/settings/domain"}}),function(){this.EditDocument=function(){function e(e,t){this.id=e,this.$bodyWindow=$(".-unite-admin-frame")[0].contentWindow,this.document=new t({id:this.id})}return e.prototype.canRevert=!1,e.prototype.fetch=function(){return this.document.fetch()},e.prototype.fetchExternalResources=function(e){return e({})},e.prototype.startEvents=function(){var e,t,n;if(e=$(".url-clip"),t=this.clip(e.data("slug")),e.html(t),$(".url-setting").on("keyup",".slug-text-field",(n=this,function(e){var i;return i=$(e.target),t=n.clip(i.val()),$(".url-clip").html(t)})),$("#page_status").on("change",function(e){var t;return t="draft"===$(e.target).val()?"Save Draft":"Publish",$("#_unite_save_page").text(t)}),this.document.attributes.public)return $("#feed_moderate_comments").attr("disabled","disabled")},e.prototype.cancelEvents=function(){return $(".url-setting").off("keyup",".slug-text-field")},e.prototype.clip=function(e){return e.length>19?"http://&hellip;"+(e=e.substr(e.length-18,e.length)):"http://&hellip;/"+e},e.prototype.rootUrl=function(){return location.origin+"/"},e.prototype.addSettingsChanges=function(e){var t,n;return t=$("#"+inflect.pluralize(this.type)+"-edit-form"),_.each(t.find("input[type=checkbox]"),function(e){return e.value=e.checked,e.checked=!0}),n=t.serializeObject(),_.each(t.find("input[value=false]"),function(e){return e.checked=!1}),this.document.set(n),$.extend(e,this.document.changed)},e.prototype.loadOriginalContent=function(){return this},e.prototype.rerender=function(){return!0},e.prototype.resetMetadata=function(){return this},e}()}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;this.EditFeed=function(t){function n(e,t){this.id=e,n.__super__.constructor.apply(this,arguments),this.post=new Post({feed_id:this.document.id}),new AddPostView({post:this.post}),this.type="feed"}return e(n,t),n.prototype.startEvents=function(){return n.__super__.startEvents.apply(this,arguments),$("body").on("post:created",(e=this,function(){return e.post=new Post({feed_id:e.document.id}),new AddPostView({post:e.post})}));var e},n.prototype.cancelEvents=function(){return n.__super__.cancelEvents.apply(this,arguments),$("body").off("post:created")},n}(EditDocument)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;this.EditPage=function(t){function n(e,t){this.id=e,n.__super__.constructor.apply(this,arguments),this.$editPanelForm=$("#admin_edit_page_form"),this.type="page"}return e(n,t),n.prototype.canRevert=!0,n.prototype.rootUrl=function(){var e;
4return this.ownedByGroup()?(e=location.href.split("/")).last()===this.document.get("slug")?(e.pop(),e.join("/")+"/"):location.href+"/pages/":n.__super__.rootUrl.apply(this,arguments)},n.prototype.ownedByGroup=function(){return null!==this.document.get("owner_id")},n.prototype.resetMetadata=function(e){return this.$editPanelForm.find("input, textarea, select").each(function(){var t;if(t=$(this).attr("name"),e.hasOwnProperty(t))return $(this).val(e[t]).change()})},n}(EditDocument)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;this.EditPost=function(t){function n(e,t){this.id=e,n.__super__.constructor.apply(this,arguments),this.type="post"}return e(n,t),n.prototype.fetchExternalResources=function(e){var t;return(new Feeds).fetch().then((t=this,function(n){var i;return(i=_.findWhere(n,{id:+t.document.get("feed_id")}))&&(i.selected=!0),e({feeds:n})}))},n.prototype.startEvents=function(){var e,t,i;return i="D MMM YYYY hh:mmA",(t=moment(this.document.get("published_at"))).isValid()||(t=moment(this.document.get("published_at"),i)),t=t.format(i),(e=$("#post_published_at")).datetimeEntry({datetimeFormat:"d n Y H:Ma"}),e.datetimeEntry("setDatetime",t),e.keydown(function(e){if(8===e.keyCode)return e.preventDefault()}),n.__super__.startEvents.apply(this,arguments)},n.prototype.rootUrl=function(){var e,t;return(t=this.document.get("path").split("/")).pop(),e=""+t.join("/"),""+n.__super__.rootUrl.apply(this,arguments)+e+"/"},n.prototype.rerender=function(e,t){var n;return n=HandlebarsTemplates["edit_mode/edit_"+this.type]({document:this.document}),e.each(function(e){return t.find(e).replaceWith($(e,n))})},n}(EditDocument)}.call(this),Unite.GeneralSettings=Backbone.Model.extend({url:function(){return"/admin/settings/general"}}),function(){this.Group=Unite.Model.extend({base:"/admin/groups"}),this.Groups=Backbone.Collection.extend({model:Group,url:"/admin/groups"})}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;Unite.IntegrationSettings=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.url=function(){return"/admin/settings/integration"},n}(Backbone.Model)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;this.Logger=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.base=function(){return this.url},n.prototype.childrenStatuses=function(){var e,t,n;return this.summary?this.summary:(t=_.pluck(this.get("children"),"status"),e=function(e){return e/t.length*100},n=_.countBy(t,_.identity),this.summary={accepted:e(n.accepted),delivered:e(n.delivered),temp_fail:e(n.temporary_failed),perm_fail:e(n.permanent_failed)})},n.prototype.presentedStatus=function(){switch(this.get("status")){case"accepted":return"Accepted";case"delivered":return"Delivered";case"temporary_failed":return"Temporary Fail";case"permanent_failed":return"Permanent Fail: "+this.failedReason();default:return this.get("status")}},n.prototype.permanentFail=function(){return"permanent_failed"===this.get("status")},n.prototype.failedReason=function(){return this.get("failed_reason")||"unknown"},n}(Unite.Model),this.LoggerEntries=function(t){function n(e){this.url=e.url,this.collectionType=e.collectionType,this.templatePath="loggers/"+this.collectionType,n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=Logger,n.prototype.parse=function(e){return e.audits},n}(Backbone.Collection)}.call(this),function(){this.MailingList=Unite.Model.extend({base:"/admin/mailing_lists"}),this.MailingLists=Backbone.Collection.extend({model:MailingList,url:"/admin/mailing_lists"})}.call(this),Unite.NavigationSettings=Backbone.Model.extend({url:function(){return"/admin/settings/navigation"}}),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;window.Unite.OptIn=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(Backbone.Model),window.Unite.OptIns=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=Unite.OptIn,n}(Backbone.Collection)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;window.Page=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}
4return e(n,t),n.prototype.base="/admin/documents",n.prototype.privacy=function(){return this.get("public")?"Public":"Private"},n.prototype.status=function(){var e;return(e=this.get("status"))?e.capitalize():""},n.prototype.link_to=function(){return this.get("path")},n.prototype.isCurrent=function(){return this.get("slug")===Unite.getFirstSegmentOfPath()},n.prototype.cell=function(e){return this.get("cell"+e)||""},n.prototype.toJSON=function(){var e;return(e=n.__super__.toJSON.apply(this,arguments)).url=this.link_to(),e},n.prototype.setCell=function(e,t,n){var i;return(i={})["cell"+e]=t,this.set(i,n)},n}(Unite.Model),window.StaticPage=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.base="/admin/pages",n.prototype.defaults={title:"New Page",status:"draft",layout:1,type:"StaticPage"},n.prototype.render=function(){var e,t;return(null!=(e=this.get("cells_attributes"))&&null!=(t=e[0])?t.value:void 0)||""},n.prototype.duplicate=function(){var e,t;return e=_.clone(this.attributes),e=_.omit(e,"id","path","public","slug","status","title"),(t=new n(_.extend(e,{copy_of:this.get("id")}))).unset("title"),t.save()},n}(Page),window.FeedPage=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.base="/admin/feeds",n.prototype.defaults={title:"New Page",posts_to_show:7,show_author:!0,show_content:!0,type:"FeedPage",moderate_comments:!0},n}(Page),window.Group=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.base="/admin/groups",n.prototype.defaults={title:"Groups"},n.prototype.link_to=function(){return this.get("path")},n}(Page),window.CalendarPage=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.link_to=function(){return"/calendar"},n}(Page),window.GroupsPage=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.link_to=function(){return"/groups"},n}(Page),window.MembersPage=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.link_to=function(){return"/members"},n}(Page),window.Pages=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.url="/admin/documents",n.prototype.comparator=function(e){return 0-e.updatedAt().valueOf()},n.prototype._prepareModel=function(e,t){var n;return e instanceof Backbone.Model?e.collection||(e.collection=this):(n=e,(e=new(0,window[n.type])(n,{collection:this})).validate&&!e._performValidation(n,t)&&(e=!1)),e},n}(Backbone.Collection),window.Feeds=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.url="/admin/feeds",n.prototype.model=FeedPage,n}(Backbone.Collection),window.Documents=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.url="/admin/documents",n.prototype.findByPath=function(e){return this.find(function(t){return t.link_to()===e})},n}(Pages),window.GroupDocuments=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(e,t){return this.url="/admin/groups/"+t.slug+"/documents"},n}(Documents)}.call(this);var Person=Backbone.Model.extend({name:function(){return this.get("first_name")+" "+this.get("last_name")},email:function(){var e=this.get("email_addresses");return e.length>0?e[0].address:null}}),People=Backbone.Collection.extend({model:Person,getEmailAddresses:function(){var e=[];return this.models.each(function(t){e.push(_(t.attributes.email_addresses).pluck("address"))}),_(e).flatten()},emailExists:function(e,t){return void 0===t&&(t=this.getEmailAddresses()),-1!==t.indexOf(e)}}),Post=Unite.Model.extend({base:"/admin/posts",defaults:{title:"New Post",status:"draft",published_at:new Date},link_to:function(){return this.get("path")},publishedAt:function(){return new Date(this.get("published_at"))}}),Posts=Backbone.Collection.extend({model:Post,url:"/admin/posts",comparator:function(e){return 0-e.publishedAt().valueOf()}});(function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;
4Unite.SocialLinksSettings=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.url=function(){return"/admin/settings/social"},n}(Backbone.Model)}).call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;this.Style=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.base="/admin/styles",n.prototype.blockProperties=["background-color","margin","padding","border"],n.prototype.copy=function(e,t,n){return $.post(this.url()+"/copy",{name:e,declarations:t,load:n})},n.prototype.setDeclaration=function(e){var t;return t=this.get("declarations")||{},_.extend(t,e),this.set({declarations:t})},n.prototype.removeDeclaration=function(e){var t;return t=this.get("declarations")||{},t=_.omit(t,e),this.set({declarations:t})},n.prototype.hasDeclaration=function(e){var t;return t=this.get("declarations")||{},_.has(t,e)},n.prototype.stylesTagForType=function(e){var t;return null==(t="block"===e?this.get("declarations"):this.inlineStyles())&&(t={}),JSON.stringify(t).replace(/\",\"/g,'";"').replace(/\"/g,"").replace(/{|}/g,"")+";"},n.prototype.inlineStyles=function(){return _.omit(this.get("declarations"),(e=this,function(t,n){return _.any(e.blockProperties,function(e){return n.match(new RegExp(e))})}));var e},n}(Unite.Model),this.Styles=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=Style,n.prototype.url="/admin/styles",n.prototype.inlineStyles=function(){return this.getSorted("inline")},n.prototype.blockStyles=function(){return this.getSorted("block")},n.prototype.getSorted=function(e){var t;return t=this.where({style_type:e}).map(function(e){return e.attributes}),_(t).chain().sortBy(function(e){return e.name.toLowerCase()}).sortBy(function(e){return!e.is_default}).value()},n}(Backbone.Collection)}.call(this),function(){window.Template=function(){function e(e){var t,n,i,o,s;this.document=null!=(t=e.document)?t:function(){throw"'document' is required"}(),this.description=null!=(n=e.description)?n:function(){throw"'description' is required"}(),this.title=null!=(i=e.title)?i:this.document.get("title"),this.content=null!=(o=e.content)?o:this.document.render(),this.restricted=null!=(s=e.restricted)&&s}return e}()}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;Unite.TextingSettings=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.url=function(){return"/admin/settings/texting"},n}(Backbone.Model)}.call(this);var Theme=Backbone.Model.extend({url:function(){return"/admin/themes"+"/"+this.get("slug")},activate_url:function(){return this.url()+"/activate"},image_url:function(){return"/themes/"+this.get("slug")+"/thumbnail.png"},settings_url:function(){return this.url()+"/settings"},getValuesForPreset:function(e){var t=this.getPresetByName(e);return t&&t.values},getPresetByName:function(e){return _.detect(this.get("presets"),function(t){return t.name==e})},css_class:function(){var e=["theme"];return this.get("selected")&&(e=e.concat(["selected","active"])),this.get("valid")||e.push("invalid"),this.get("global")&&e.push("global"),e.join(" ")}}),Themes=Backbone.Collection.extend({model:Theme,url:"/admin/themes",findBySlug:function(e){return this.find(function(t){return t.get("slug")==e})},getSelectedTheme:function(){return this.find(function(e){return e.get("selected")})}});(function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty,n=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};this.User=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}
4return e(n,t),n.prototype.base="/admin/users",n}(Unite.Model),this.Users=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.model=User,i.prototype.url="/admin/users",i.prototype.setUsersAndPeople=function(e,t){var n,i;return n=_.map(t,(i=this,function(t){var n;return null!=(n=_.findWhere(e,{id:t.id}))&&_.extend(t,n),i.presented(t)})),this.reset(n)},i.prototype.setupRecipients=function(e,t){var i;return i=_.pluck(t,"id"),_.filter(e,function(e){var t;return t=e.id,n.call(i,t)>=0}).each(function(e){var n;return n=_.findWhere(t,{id:e.id}),e.number=n.phone_numbers,t.remove(n)}),t.each(function(e){return e.number=e.phone_numbers}),this.reset(e.concat(t))},i.prototype.presented=function(e){return e.contactEmails=_.map(e.email_addresses||e.email_addresses_attributes,function(e){return e.address}),null==e.role&&(e.role="None"),null===e.visible_in_unite&&(e.visible_in_unite=e.is_member?"true":"false"),e},i.prototype.comparator=function(e){return e.get("last_name").toUpperCase()},i}(Backbone.Collection)}).call(this),function(){this.JST||(this.JST={}),this.JST._columns=_.template('<% _.each(columns, function(column) { %>\n  <li class="column">\n    <ol>\n      <%= render(column) %>\n    </ol>\n  </li>\n  <% }); %>')}.call(window),function(){this.JST||(this.JST={}),this.JST._loading=_.template("Loading <%= nouns %>...")}.call(window),function(){this.JST||(this.JST={}),this.JST["activity/_menu"]=_.template('<ol class="admin-subnav">\n    <h1>Activity</h1>\n    <li class="adminTab<% if (action == \'events\') { %> selected<% } %>"><a href="#/admin/activity">Event Log</a></li>\n    <li class="adminTab<% if (action == \'emails\') { %> selected<% } %>"><a href="#/admin/activity/email_log">Email Log</a></li>\n    <li class="adminTab<% if (action == \'optins\') { %> selected<% } %>"><a href="#/admin/activity/optins">Texting Opt-in</a></li>\n    <li class="adminTab<% if (action == \'comments\') { %> selected<% } %>"><a href="#/admin/activity/comments">Comments</a></li>\n  </ol>')}.call(window),function(){this.JST||(this.JST={}),this.JST["calendars/edit"]=_.template('<div class="calendar-permissions">\n    <div class="title">Who can view?</div>\n    <div class="permission-picker">\n      <label for="<%= id %>
4_nobody">\n        <input type="radio" name="visible_to" value="nobody" id="<%= id %>_nobody" <%= visible_to == \'nobody\' ? \'checked\' : \'\' %> />\n         Nobody\n      </label>\n      <% if(!Unite.permissions.freeTier) { %>\n      <label for="<%= id %>_users">\n        <input type="radio" name="visible_to" value="users" id="<%= id %>_users" <%= visible_to == \'users\' ? \'checked\' : \'\' %> />\n         Users\n      </label>\n      <% } %>\n      <label for="<%= id %>_everyone">\n        <input type="radio" name="visible_to" value="everyone" id="<%= id %>_everyone" <%= visible_to == \'everyone\' ? \'checked\' : \'\' %> />\n         Everyone\n      </label>\n    </div>\n  </div>\n  \n  <% if(owner == \'google\') { %>\n    <div class="calendar-details">\n      <div class="calendar-name"><b><%= name %></b></div>\n      <div class="edit-on-google-message">Edit this calendar at <a href="http://calendar.google.com" target="_blank">calendar.google.com</a></div>\n    </div>\n    <div class="calendar-buttons">\n      <a class="command cancel-button cancel-save-command pull-right">Cancel</a>\n      <button class="btn btn-success save-button pull-right">Save</button>\n    </div>\n  <% } else if(owner == \'360\') { %>\n    <div class="calendar-details">\n      <div class="calendar-name"><b><%= name %></b></div>\n      <div class="required-by-members-message">This is required by Church360&deg; Members and cannot be changed</div>\n    </div>\n    <div class="calendar-buttons">\n      <a class="command cancel-button cancel-save-command pull-right">Cancel</a>\n      <button class="btn btn-success save-button pull-right">Save</button>\n    </div>\n  <% } else if(group_id) { %>\n    <div class="calendar-details">\n      <div class="calendar-name"><b><%= name %></b></div>\n      <div class="required-by-members-message">This is required by <%= name %> and can be changed in the groups\' settings.</div>\n    </div>\n    <div class="calendar-buttons">\n      <a class="command cancel-button cancel-save-command pull-right">Cancel</a>\n    </div>\n  <% } else { %>\n    <div class="calendar-details unite-owned">\n      <div class="calendar-name"><input type="text" name="name" value="<%= name %>" /></div>\n    </div>\n    <div class="calendar-buttons unite-owned">\n      <a class="command cancel-button cancel-save-command pull-right">Cancel</a>\n      <button class="btn btn-success save-button pull-right">Save</button>\n    </div>\n  <% } %>')}.call(window),function(){this.JST||(this.JST={}),this.JST["calendars/index"]=_.template('<ol id="calendars"></ol>')}.call(window),function(){this.JST||(this.JST={}),this.JST["calendars/show"]=_.template('<input class="calendar-palette" />\n  <div class="calendar-name"><%= name %></div>\n  <% if(google_id_invalid) { %><div class="warning-symbol"></div><% } %>\n  <div class="pull-right actions-visibility">\n    <span class="visible-label">Visible to</span> <span class="visible-to"><%= visible_to %></span>\n  \n    <span class="actions">\n      <a class="command offer-delete-command">Delete</a>\n      <span class="commands confirm">\n        <a class="command cancel-command">Cancel</a>\n        <button class="btn btn-danger delete-command delete-button">Delete</button>\n      </span>\n    </span>\n  </div>')}.call(window),function(){this.JST||(this.JST={}),this.JST["comments/_list"]=_.template('<% if(comments.length == 0) { %>\n    <p>There are no comments waiting to be moderated.</p>\n  <% } else { %>\n    <table id="comments-list" class="table tablesorter table-scrollable">\n      <thead>\n        <tr>\n          <th class="commentSelector"><input type="checkbox" class="selector" id="comment-bulk-checkbox" /></th>\n          <th class="commentAuthor">Author</th>\n          <th class="commentLocation">Location</th>\n          <th class="commentPosted">Posted</th>\n          <th class="commentText">Text</th>\n        </tr>\n      </thead>\n      <tbody>\n        <% comments.each(function(comment) { %>\n          <tr class="comment-row selectable" id="comment_<%= comment.id %>">\n            <td class="commentSelector"><input type="checkbox" class="selector" id="comment-checkbox-<%= comment.id %>" data-comment-id="<%= comment.id %>" <%= comment.get(\'checked\') ? \'checked="checked"\' : \'\' %> /></td>\n            <td class="commentAuthor"><label for="comment-checkbox-<%= comment.id %>"><%= comment.escape(\'author\') %></label></td>\n            <td class="commentLocation"><%= comment.get(\'location\') %></td>\n            <td class="commentPosted"><%= comment.formatDate(\'posted_at\') %></td>\n            <td class="commentText"><%= comment.get(\'content\') %></td>\n          </tr>\n        <% }); %>\n      </tbody>\n    </table>\n  <% } %>')}.call(window),function(){this.JST||(this.JST={}),this.JST["comments/index"]=_.template('<%= JST[\'activity/_menu\']({ action: \'comments\' }) %>
4\n  <div id="comments-list-content" class="admin-tab-content admin-flash-container flex-rows">\n    <div id="comments-list-container" class="flex-grow"></div>\n  \n    <div class="admin-actions">\n      <fieldset class="bulk-actions">\n        <legend>Actions for selected comments</legend>\n        <button class="btn approve-button">Approve</button>\n        <button class="btn delete-button">Delete</button>\n      </fieldset>\n    </div>\n  </div>')}.call(window),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["edit_mode/edit_feed"]=Handlebars.template({1:function(e,t,n,i,o){var s,a,r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'    <div class="-unite-settings-body">\n      <div class="setting-set">\n        <label for="feed_slug">URL</label>\n        <div class="setting-option url-setting">\n          <div class="url-clip" data-slug="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"slug")||(null!=t?r(t,"slug"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"slug",hash:{},data:o,loc:{start:{line:10,column:43}
4,end:{line:10,column:53}}}):a)+'"></div>\n          <input type="text" id="feed_slug" name="slug" class="text slug-text-field required" value="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"slug")||(null!=t?r(t,"slug"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"slug",hash:{},data:o,loc:{start:{line:11,column:101},end:{line:11,column:111}}}):a)+'" />\n        </div>\n      </div>\n\n      <div class="setting-set">\n        <label for="page_title">Feed Title</label>\n        <div class="setting-option">\n          <input type="text" id="page_title" name="title" class="text" value="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"title")||(null!=t?r(t,"title"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:o,loc:{start:{line:18,column:78},end:{line:18,column:89}}}):a)+'" />\n        </div>\n      </div>\n\n      <div class="setting-set">\n        <label for="feed_meta_description">Meta Description</label>\n        <div class="setting-option">\n          <textarea id="feed_meta_description" class="meta-description" name="description">'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"description")||(null!=t?r(t,"description"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"description",hash:{},data:o,loc:{start:{line:25,column:91},end:{line:25,column:108}}}):a)+'</textarea>\n        </div>\n      </div>\n      \n      <fieldset class="setting-set">\n        <legend>How this feed looks</legend>\n\n        <label for="feed_posts_to_show" class="setting-option">\n          <input type="number" id="feed_posts_to_show" name="posts_to_show" class="number required" value="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"posts_to_show")||(null!=t?r(t,"posts_to_show"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"posts_to_show",hash:{},data:o,loc:{start:{line:33,column:107},end:{line:33,column:126}}
5}):a)+'"/> Posts per page\n        </label>\n        \n        <label for="feed_show_content" class="setting-option">\n          <input type="checkbox" id="feed_show_content" name="show_content"\n'+(null!=(s=r(n,"if").call(null!=t?t:e.nullContext||{},null!=t?r(t,"show_content"):t,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o,loc:{start:{line:38,column:12},end:{line:40,column:19}}}))?s:"")+'          /> Show post content\n        </label>\n      </fieldset>\n      \n      <fieldset class="setting-set">\n        <legend>Rules for this feeds posts</legend>\n\n        <label for="feed_allow_comments" class="setting-option">\n          <input type="checkbox" id="feed_allow_comments" name="allow_comments"\n'+(null!=(s=r(n,"if").call(null!=t?t:e.nullContext||{},null!=t?r(t,"allow_comments"):t,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o,loc:{start:{line:50,column:12},end:{line:52,column:19}}}))?s:"")+'          /> Allow comments\n        </label>\n        \n        <label for="feed_moderate_comments" class="setting-option">\n          <input type="checkbox" id="feed_moderate_comments" name="moderate_comments"\n'+(null!=(s=r(n,"if").call(null!=t?t:e.nullContext||{},null!=t?r(t,"moderate_comments"):t,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o,loc:{start:{line:58,column:12},end:{line:60,column:19}}}))?s:"")+"          /> Moderate comments\n        </label>\n      </fieldset>\n    </div>\n"},2:function(){return'              checked="checked"\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div id="_unite_document_settings">\n  <h5 class="setting-header">Settings</h5>\n\n  <form id="feeds-edit-form">\n'+(null!=(s=a(n,"with").call(null!=t?t:e.nullContext||{},null!=(s=null!=t?a(t,"document"):t)?a(s,"attributes"):s,{name:"with",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:5,column:4},end:{line:65,column:13}}}))?s:"")+"  </form>\n</div>"},useData:!0}),this.HandlebarsTemplates["edit_mode/edit_feed"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["edit_mode/edit_page"]=Handlebars.template({1:function(e,t,n,i,o){var s,a,r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'    <div class="-unite-settings-body">\n      <div class="setting-set">\n        <label for="page_status">Status</label>\n        <div class="setting-option">\n'+(null!=(s=(r(n,"statusSelect")||t&&r(t,"statusSelect")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?r(t,"status"):t,{name:"statusSelect",hash:{class:"required",name:"status",id:"page_status"},fn:e.program(2,o,0),inverse:e.noop,data:o,loc:{start:{line:10,column:10},end:{line:13,column:27}}}))?s:"")+'        </div>\n      </div>\n      <div class="setting-set">\n        <label for="page_slug">URL</label>\n        <div class="setting-option url-setting">\n          <div class="url-clip" data-slug="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"slug")||(null!=t?r(t,"slug"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"slug",hash:{},data:o,loc:{start:{line:19,column:43},end:{line:19,column:53}}}):a)+'"></div>\n          <input type="text" id="page_slug" name="slug" class="text slug-text-field required" value="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"slug")||(null!=t?r(t,"slug"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"slug",hash:{},data:o,loc:{start:{line:20,column:101},end:{line:20,column:111}}}):a)+'" />\n        </div>\n      </div>\n      <div class="setting-set">\n        <label for="page_title">Page Title</label>\n        <div class="setting-option">\n          <input type="text" id="page_title" name="title" class="text" value="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"title")||(null!=t?r(t,"title"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:o,loc:{start:{line:26,column:78},end:{line:26,column:89}}}):a)+'" />\n        </div>\n      </div>\n      <div class="setting-set">\n        <label for="page_meta_description">Meta Description</label>\n        <div class="setting-option">\n          <textarea id="page_meta_description" class="meta-description" name="description">'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"description")||(null!=t?r(t,"description"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"description",hash:{},data:o,loc:{start:{line:32,column:91},end:{line:32,column:108}}}):a)+"</textarea>\n        </div>\n      </div>\n    </div>\n"},2:function(){return'            <option value="draft">Draft</option>\n            <option value="published">Published</option>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div id="_unite_document_settings">\n  <h5 class="setting-header">Settings</h5>\n\n  <form id="pages-edit-form">\n'+(null!=(s=a(n,"with").call(null!=t?t:e.nullContext||{},null!=(s=null!=t?a(t,"document"):t)?a(s,"attributes"):s,{name:"with",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:5,column:4},end:{line:36,column:13}}}))?s:"")+"  </form>\n</div>"},useData:!0}
5),this.HandlebarsTemplates["edit_mode/edit_page"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["edit_mode/edit_post"]=Handlebars.template({1:function(e,t,n,i,o,s,a){var r,l,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'    <div class="-unite-settings-body">\n      <div class="setting-set">\n        <label for="post_status">Status</label>\n        <div class="setting-option">\n'+(null!=(r=(c(n,"statusSelect")||t&&c(t,"statusSelect")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?c(t,"status"):t,{name:"statusSelect",hash:{class:"required",name:"status",id:"post_status"},fn:e.program(2,o,0,s,a),inverse:e.noop,data:o,loc:{start:{line:10,column:10},end:{line:14,column:27}}}))?r:"")+'        </div>\n      </div>\n      <div class="setting-set">\n        <label for="post_published_at">Published Date</label>\n        <div class="setting-option date-selector">\n          <input type="text" id="post_published_at" name="published_at" '+(null!=(r=(c(n,"ifEqual")||t&&c(t,"ifEqual")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?c(t,"status"):t,"published",{name:"ifEqual",hash:{},fn:e.program(4,o,0,s,a),inverse:e.noop,data:o,loc:{start:{line:20,column:72},end:{line:20,column:134}}}))?r:"")+' />\n        </div>\n      </div>\n      <div class="setting-set">\n        <label for="post_slug">URL</label>\n        <div class="setting-option url-setting">\n          <div class="url-clip" data-slug="'+e.escapeExpression("function"==typeof(l=null!=(l=c(n,"slug")||(null!=t?c(t,"slug"):t))?l:e.hooks.helperMissing)?l.call(null!=t?t:e.nullContext||{},{name:"slug",hash:{},data:o,loc:{start:{line:26,column:43},end:{line:26,column:53}}}):l)+'"></div>\n          <input type="text" id="post_slug" name="slug" class="text slug-text-field required" value="'+e.escapeExpression("function"==typeof(l=null!=(l=c(n,"slug")||(null!=t?c(t,"slug"):t))?l:e.hooks.helperMissing)?l.call(null!=t?t:e.nullContext||{},{name:"slug",hash:{},data:o,loc:{start:{line:27,column:101},end:{line:27,column:111}}}):l)+'" />\n        </div>\n      </div>\n      <div class="setting-set">\n        <label for="page_title">Post Title</label>\n        <div class="setting-option">\n          <input type="text" id="page_title" name="title" class="text" value="'+e.escapeExpression("function"==typeof(l=null!=(l=c(n,"title")||(null!=t?c(t,"title"):t))?l:e.hooks.helperMissing)?l.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:o,loc:{start:{line:33,column:78},end:{line:33,column:89}}}):l)+'" />\n        </div>\n      </div>\n      <div class="setting-set">\n        <label for="post_meta_description">Meta Description</label>\n        <div class="setting-option">\n          <textarea id="post_meta_description" class="meta-description" name="description">'+e.escapeExpression("function"==typeof(l=null!=(l=c(n,"description")||(null!=t?c(t,"description"):t))?l:e.hooks.helperMissing)?l.call(null!=t?t:e.nullContext||{},{name:"description",hash:{},data:o,loc:{start:{line:39,column:91},end:{line:39,column:108}}}):l)+'</textarea>\n        </div>\n      </div>\n      <div class="setting-set">\n        <label for="post_feed_id">Feed</label>\n        <div class="setting-option">\n          <select id="post_feed_id" name="feed_id" class="required">\n'+(null!=(r=c(n,"each").call(null!=t?t:e.nullContext||{},null!=(r=null!=a[1]?c(a[1],"externalResources"):a[1])?c(r,"feeds"):r,{name:"each",hash:{},fn:e.program(6,o,0,s,a),inverse:e.noop,data:o,loc:{start:{line:46,column:12},end:{line:53,column:21}}}))?r:"")+"          </select>\n        </div>\n      </div>\n    </div>\n"},2:function(){return'            <option value="draft">Draft</option>\n            <option value="scheduled">Scheduled</option>\n            <option value="published">Published</option>\n'},4:function(){return'disabled="disabled"'},6:function(e,t,n,i,o){var s,a,r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'              <option value="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:47,column:29},end:{line:47,column:35}}}):a)+'" data-slug="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"slug")||(null!=t?r(t,"slug"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"slug",hash:{},data:o,loc:{start:{line:47,column:48}
5,end:{line:47,column:56}}}):a)+'"\n'+(null!=(s=r(n,"if").call(null!=t?t:e.nullContext||{},null!=t?r(t,"selected"):t,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o,loc:{start:{line:48,column:16},end:{line:50,column:23}}}))?s:"")+"              >\n              "+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"title")||(null!=t?r(t,"title"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:o,loc:{start:{line:52,column:14},end:{line:52,column:23}}}):a)+"</option>\n"},7:function(){return'                  selected="selected"\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o,s,a){var r,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div id="_unite_document_settings">\n  <h5 class="setting-header">Settings</h5>\n\n  <form id="posts-edit-form">\n'+(null!=(r=l(n,"with").call(null!=t?t:e.nullContext||{},null!=(r=null!=t?l(t,"document"):t)?l(r,"attributes"):r,{name:"with",hash:{},fn:e.program(1,o,0,s,a),inverse:e.noop,data:o,loc:{start:{line:5,column:4},end:{line:58,column:13}}}))?r:"")+"  </form>\n</div>"},useData:!0,useDepths:!0}),this.HandlebarsTemplates["edit_mode/edit_post"]}.call(this),function(){this.JST||(this.JST={}),this.JST["loggers/emails/_item"]=_.template('<%\n    var timestamp = moment.unix(entry.get(\'timestamp\')),\n        date = timestamp.format("MMM D YYYY");\n  %>\n  <div class="timeline-event logger-row emails" data-timestamp="<%= entry.get(\'timestamp\') %>">\n    <span class="timeline-event-date">\n      <% if(date != window.lastEmailLogDate) { %>\n        <span class="weekday"><%= timestamp.format("ddd") %></span>\n        <span class="month"><%= timestamp.format("MMM") %></span>\n        <span class="day"><%= timestamp.format("D") %></span>\n        <span class="year"><%= timestamp.format("YYYY") %></span>\n        <% window.lastEmailLogDate = date %>\n      <% } %>\n    </span>\n  \n    <span class="timeline-event-time"><%= timestamp.format("LT") %></span>\n  \n    <span class="timeline-event-from">
5\n      <span class="event-from" data-toggle="tooltip" title="<%= entry.get(\'from_email\') %>" data-placement="right">\n        <%= entry.get(\'from_name\') %>\n      </span>\n    </span>\n  \n    <span class="timeline-event-subject">\n      <%= entry.get(\'subject\') %>\n    </span>\n  \n    <span class="timeline-event-to">\n      <%= entry.get(\'to\') %>\n    </span>\n  \n    <span class="timeline-event-status closed">\n      <% if(entry.get(\'children\').length > 0) { %>\n        <div class="toggle-children" data-parent-id="<%= entry.get(\'id\') %>">\n          <div class="progress">\n            <div class="bar" style="width: <%= entry.childrenStatuses()["accepted"] %>%;"></div>\n            <div class="bar bar-success" style="width: <%= entry.childrenStatuses()["delivered"] %>%;"></div>\n            <div class="bar bar-warning" style="width: <%= entry.childrenStatuses()["temp_fail"] %>%;"></div>\n            <div class="bar bar-danger" style="width: <%= entry.childrenStatuses()["perm_fail"] %>%;"></div>\n          </div>\n        </div>\n      <% } else { %>\n        <% if(entry.permanentFail()) { %>\n          <span class="status-tooltip" data-toggle="tooltip" title="<%= entry.get(\'failed_summary\') %>" data-placement="left"><%= entry.presentedStatus() %></span>\n        <% } else { %>\n          <%= entry.presentedStatus() %>\n        <% } %>\n      <% } %>\n    </span>\n  </div>\n  \n  <% entry.get(\'children\').each(function(child) { %>\n    <% child = new Logger(child) %>\n    <div class="timeline-event child-event no-show" data-parent-event-id="<%= entry.get(\'id\') %>">
5\n      <span class="timeline-event-date">&nbsp;</span>\n  \n      <span class="timeline-event-time">&nbsp;</span>\n  \n      <span class="timeline-event-from">&nbsp;</span>\n      <span class="timeline-event-subject">&nbsp;</span>\n      <span class="timeline-event-to"><%= child.get(\'to\') %></span>\n      <span class="timeline-event-status">\n        <% if(child.permanentFail()) { %>\n          <span class="status-tooltip" data-toggle="tooltip" title="<%= child.get(\'failed_summary\') %>" data-placement="left"><%= child.presentedStatus() %></span>\n        <% } else { %>\n          <%= child.presentedStatus() %>\n        <% } %>\n      </span>\n    </div>\n  <% }) %>')}.call(window),function(){this.JST||(this.JST={}),this.JST["loggers/emails/_list"]=_.template('<div id="logger_list_table">\n    <div class="email-log email-log-headers">\n      <span class="timeline-event-date">When</span>\n      <span class="timeline-event-from">From</span>\n      <span class="timeline-event-subject">Subject</span>\n      <span class="timeline-event-to">To</span>\n      <span class="timeline-event-status">Status</span>\n    </div>\n    <div class="timeline log">\n      <% if(loggerEntries.length == 0) { %>\n        <p>There are no Email Log entries just yet.</p>\n      <% } else { %>\n        <div class="timeline-line"></div>\n  \n        <div id="logger_list">\n          <% loggerEntries.each(function(entry) { %>\n            <%= JST[\'loggers/emails/_item\']({ entry: entry }) %>\n          <% }); %>\n        </div>\n      <% } %>\n    </div>\n  </div>')}.call(window),function(){this.JST||(this.JST={}),this.JST["loggers/emails/index"]=_.template('<%= JST[\'activity/_menu\']({ action: \'emails\' }) %>\n  <div id="emails-list-content" class="admin-tab-content admin-flash-container flex-rows">\n    <div id="emails-list-container" class="flex-grow"></div>\n  </div>')}.call(window),function(){this.JST||(this.JST={}),this.JST["loggers/events/_item"]=_.template('<%\n    var timestamp = moment.unix(entry.date),\n        date = timestamp.format("MMM D YYYY");\n  %>\n  <div class="timeline-event logger-row events" data-timestamp="<%= entry.date %>">\n    <span class="timeline-event-date">\n      <% if(date != window.lastEventLogDate) { %>\n        <span class="weekday"><%= timestamp.format("ddd") %></span>\n        <span class="month"><%= timestamp.format("MMM") %></span>\n        <span class="day"><%= timestamp.format("D") %></span>\n        <span class="year"><%= timestamp.format("YYYY") %></span>\n        <% window.lastEventLogDate = date %>\n      <% } %>\n    </span>\n  \n    <span class="timeline-event-time"><%= timestamp.format("LT") %></span>\n  \n    <span class="timeline-event-user">\n      <%= entry.perpetrator %>\n    </span>\n  \n    <span class="timeline-event-record">\n      <i class="icon icon-<%= entry.icon_type %>"></i> <%= entry.item_name %>\n    </span>\n  \n    <span class="timeline-event-description">\n      <%= entry.description %>\n    </span>\n  </div>')}.call(window),function(){this.JST||(this.JST={}),this.JST["loggers/events/_list"]=_.template('<div id="logger_list_table">\n    <div class="event-log event-log-headers">
5\n      <span class="timeline-event-date">When</span>\n      <span class="timeline-event-user">User</span>\n      <span class="timeline-event-record">Record</span>\n      <span class="timeline-event-description">Description</span>\n    </div>\n    <div class="timeline log">\n      <% if(loggerEntries.length == 0) { %>\n        <p>There are no Event Log entries just yet.</p>\n      <% } else { %>\n        <div class="timeline-line"></div>\n  \n        <div id="logger_list">\n          <% loggerEntries.each(function(entry) { %>\n            <%= JST[\'loggers/events/_item\']({ entry: entry }) %>\n          <% }); %>\n        </div>\n      <% } %>\n    </div>\n  </div>')}.call(window),function(){this.JST||(this.JST={}),this.JST["loggers/events/index"]=_.template('<%= JST[\'activity/_menu\']({ action: \'events\' }) %>\n  <div id="events-list-content" class="admin-tab-content admin-flash-container flex-rows">\n    <form id="logger_search_form">\n      <div class="input-append">\n        <input class="span4" id="logger_search" type="text">\n        <input class="btn btn-primary" type="submit" value="Search">\n      </div>\n    </form>\n    <div id="events-list-container" class="flex-grow"></div>\n  </div>')}.call(window),function(){this.JST||(this.JST={}),this.JST["mailing_lists/edit"]=_.template('<div class="row-fluid">\n    <form>\n      <div class="mailing-list-name span3"><input type="text" name="title" value="<%= title %>" /></div>\n      <div class="span7 edit-form">\n        <select class="chosen-select" multiple="multiple" data-placeholder="Select the recipients of <%= title %>">\n          <% users.each(function(user) { %>\n            <option selected="selected" id="users-<%= user[\'id\'] %>" class="subject user"><%= user[\'name\'] %></option>\n          <% }); %>\n          <% groups.each(function(group) { %>\n            <option selected="selected" id="groups-<%= group[\'
5id\'] %>" class="subject group"><%= group[\'title\'] %></option>\n          <% }); %>\n          <% mailing_lists.each(function(mailingListSubject) { %>\n            <option selected="selected" id="mailing_lists-<%= mailingListSubject[\'id\'] %>" class="subject mailing-list"><%= mailingListSubject[\'title\'] %></option>\n          <% }); %>\n          <% unselectedOptions.each(function(unselected) { %>\n            <option id="<%= unselected[\'type\'] %>-<%= unselected[\'id\'] %>" \n                    class="subject <%= unselected[\'type\'] %> <%= unselected[\'highlight\'] %> <%= unselected[\'id\'] %>">\n              <%= unselected[\'name\'] || unselected[\'title\'] %>\n            </option>\n          <% }); %>\n        </select>\n      </div>\n      <div class="span2">\n        <a class="command cancel-save-command cancel-mailing-list">Cancel</a>\n        <button class="btn btn-success save-mailing-list">Save</button>\n      </div>\n    </form>\n  </div>')}.call(window),function(){this.JST||(this.JST={}),this.JST["mailing_lists/index"]=_.template('<ol id="mailing_lists"></ol>')}.call(window),function(){this.JST||(this.JST={}),this.JST["mailing_lists/mailing_lists"]=_.template('<%= JST[\'users/_menu\']({ action: \'mailing_lists\' }) %>\n  <div id="mailing-list-list-content" class="admin-tab-content admin-flash-container flex-rows">\n    <form id="new_mailing_list_form">\n      <input type="text" id="mailing_list_title" name="title" maxlength="255" />\n      <input type="submit" value="Create Mailing List" class="btn btn-primary submit-button" />\n    </form>\n  \n    <div id="mailing_lists_collection_view" class="scrollable"></div>\n  \n    <div class="admin-actions">\n      <fieldset class="bulk-actions">\n        <legend>Actions for selected mailing lists</legend>\n        <button class="btn btn-default email-button">Email</button>\n      </fieldset>\n    </div>\n  </div>')}.call(window),function(){this.JST||(this.JST={}),this.JST["mailing_lists/show"]=_.template('<div class="row-fluid show">\n    <div class="span3 name-selector">
5\n      <span class="mailing-list-selector">\n        <label for="mailing_list_<%= id %>_selected" class="checkbox-wrapper">\n          <input type="checkbox" id="mailing_list_<%= id %>_selected" class="mailing-list-select-checkbox" <% if(checked){ %> checked="checked" <% } %> />\n        </label>\n      </span>\n      <span class="mailing-list-name"><%= title %></span>\n    </div>\n    <div class="mailing-list-subjects span7">\n      <% listed.users.each(function(user) { %>\n        <span class="subject user"><%= user[\'name\'] %></span>\n      <% }); %>\n      <% listed.groups.each(function(group) { %>\n        <span class="subject group"><%= group[\'title\'] %></span>\n      <% }); %>\n      <% listed.mailing_lists.each(function(mailingListSubject) { %>\n        <span class="subject mailing-list"><%= mailingListSubject[\'title\'] %></span>\n      <% }); %>\n      <% if(listed.more.length > 0) { %>\n        <span class="subject more"><%= listed.more.length %> more...</span>\n      <% } %>\n      <% if(hash_key === \'57fd88d9c11e5993113c1c12b6f005f21de4cbaf\') { %>\n        <span class="description">All Users</span>\n      <% } %>\n    </div>\n    <div class="span2">\n      <a class="command offer-delete-command">Delete</a>\n      <span class="commands confirm">\n        <a class="command cancel-command">Cancel</a>\n        <button class="btn btn-danger delete-command delete-button">Delete</button>\n      </span>\n    </div>\n  </div>')}.call(window),function(){this.JST||(this.JST={}),this.JST["pages/edit_feed"]=_.template('<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  \n  <form id="feeds-edit-form">\n    <div class="modal-body admin-flash-container">\n      <p><label for="feed_slug">\n        URL:\n        <span class="input-prepend">\n          <span class="add-on wordy" id="slug_prefix"><%= slug_path %></span>\n          <input type="text" id="feed_slug" name="slug" class="text slug-text-field required" value="<%= feed.escape(\'slug\') %>" />\n        </span>\n      </label></p>\n      \n      <h5>How a feed\'s index page is displayed:</h5>\n      <ul class="setting-set">\n        <li>\n          <label for="feed_posts_to_show">\n            Show the most recent <input type="number" id="feed_posts_to_show" name="posts_to_show" class="number required" value="<%= feed.get(\'posts_to_show\') %>" size="2"/> posts\n          </label>\n        </li>\n        \n        <li>\n          <label for="feed_show_content">\n            <input type="checkbox" id="feed_show_content" name="show_content"\n              <% if (feed.get(\'show_content\')) { %>\n                checked="checked"\n              <% } %>\n            /> Show post content on feed page\n          </label>\n        </li>\n      </ul>\n      \n      <h5 class="writeCopy">For a feed\'s posts:</h5>\n      <ul class="setting-set">\n        <li>\n          <label for="feed_allow_comments">\n            <input type="checkbox" id="feed_allow_comments" name="allow_comments"\n              <% if (feed.get(\'allow_comments\')) { %>\n                checked="checked"\n              <% } %>\n            /> Allow comments on posts\n          </label>\n        </li>\n        \n        <li>\n          <label for="feed_moderate_comments">\n            <input type="checkbox" id="feed_moderate_comments" name="moderate_comments"\n              <% if (feed.get(\'moderate_comments\')) { %>\n                checked="checked"\n              <% } %>\n            /> Moderate comments\n          </label>\n        </li>\n      </ul>\n    </div>\n  \n    <div class="modal-footer">\n      <button class="btn btn-primary submit-button">Save Changes</button>\n      <button class="btn close-button" data-dismiss="modal">Close</button>\n    </div>\n  </form>')}.call(window),function(){this.JST||(this.JST={}),this.JST["pages/edit_page"]=_.template('<div class="modal-header">\n    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>\n    <h3>Edit Page</h3>\n  </div>\n  \n  <div class="admin-flash-container"></div>\n  \n  <form id="pages-edit-form">\n    <div class="modal-body">\n      <p><label for="page_slug">
5\n        URL:\n        <span class="input-prepend">\n          <span class="add-on wordy" id="slug_prefix"><%= slug_path %></span>\n          <input type="text" id="page_slug" name="slug" class="text slug-text-field required" value="<%= page.escape(\'slug\') %>" />\n        </span>\n      </label></p>\n      \n      <p><label for="page_status">\n        Status:\n        <select id="page_status" name="status" class="required">\n          <% _([\'draft\', \'published\']).each(function(status) { %>\n            <option value="<%= status %>" <%= (page.get(\'status\') == status) ? \'selected="selected"\' : \'\' %>><%= status.capitalize() %></option>\n          <% }); %>\n        </select>\n      </label></p>\n    </div>\n      \n    <div class="modal-footer">\n      <button class="btn btn-primary submit-button">Save Changes</button>\n      <button class="btn close-button" data-dismiss="modal">Close</button>\n    </div>\n  </form>')}.call(window),function(){this.JST||(this.JST={}),this.JST["posts/_choose_feed"]=_.template('<div class="modal hide" tabindex="-1" role="dialog" aria-labelledby="modal_label" aria-hidden="true">\n    <div class="modal-header">\n      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\xd7</button>\n      <h3 id="modal_label">Select Feed</h3>\n    </div>\n    <div class="modal-body">\n      <form id="posts-choose-feed">\n        <label for="posts_feed_id"> \n          Choose the feed to assign these posts to:\n        </label>\n        <select id="posts_feed_id" name="posts_feed_id">\n          <option value="">&nbsp;</option>\n          <% feeds.each(function(feed) { %>\n            <option value="<%= feed.id %>"><%= feed.get(\'title\') %></option>\n          <% }); %>\n        </select>\n      </form>\n    </div>\n    <div class="modal-footer">\n      <button class="btn" data-dismiss="modal" aria-hidden="true" id="modal_cancel_button">Cancel</button>\n      <button class="btn btn-primary" data-dismiss="modal" id="update_posts_feed_button">Update</button>\n    </div>\n  </div>')}.call(window),function(){this.JST||(this.JST={}),this.JST["posts/_list"]=_.template('<% if(posts.length == 0) { %>\n    <p>Your site has no posts.</p>\n  <% } else { %>\n    <table id="posts-list" class="table tablesorter table-scrollable">\n      <thead>\n        <tr>\n          <th class="postSelector"><input type="checkbox" class="selector" id="post-bulk-checkbox" /></th>\n          <th class="postTitle">Name</th>\n          <th class="postFeed">Feed</th>\n          <th class="postStatus">Status</th>\n          <th class="postAuthor">Author</th>\n          <th class="postPublished">Published At</th>\n        </tr>\n      </thead>\n      <tbody>\n        <% posts.each(function(post) { %>\n          <tr class="post-row selectable <%= post.get(\'status\').toLowerCase() %>" id="post_<%= post.id %>">\n            <td class="postSelector"><input type="checkbox" class="selector" id="post-checkbox-<%= post.id %>" data-post-id="<%= post.id %>" <%= post.get(\'checked\') && \'checked="checked"\' %>/></td>\n            <td class="postTitle">\n              <label for="post-checkbox-<%= post.id %>">\n                <a href="/<%= post.link_to() %>"><%= post.escape(\'title\') %></a>\n              </label>\n            </td>\n            <td class="postFeed"><%= post.get(\'feed_title\') %></td>\n            <td class="postStatus"><%= post.get(\'status\').capitalize() %></td>\n            <td class="postAuthor"><%= post.get(\'author_name\') %></td>\n            <td class="postPublished"><%= post.formatDate(\'published_at\') %></td>\n          </tr>\n        <% }); %>\n      </tbody>\n    </table>\n  <% } %>')}.call(window),function(){this.JST||(this.JST={}),this.JST["posts/edit"]=_.template('<div class="modal-header">\n    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>\n    <h3>Edit Post</h3>\n  </div>\n  \n  <div class="admin-flash-container"></div>\n  \n  <form id="posts-edit-form">\n    <div class="modal-body">\n      <p><label for="post_slug">
5\n        URL:\n        <span class="input-prepend">\n          <span class="add-on wordy" id="slug_prefix"><%= slug_path %></span>\n          <input type="text" id="post_slug" name="slug" class="text slug-text-field required" value="<%= post.escape(\'slug\') %>" />\n        </span>\n      </label></p>\n      \n      <p><label for="post_status">\n        Status:\n        <select id="post_status" name="status" class="required">\n          <% _([\'draft\', \'published\']).each(function(status) { %>\n            <option value="<%= status %>" <%= (post.get(\'status\') == status) ? \'selected="selected"\' : \'\' %>><%= status.capitalize() %></option>\n          <% }); %>\n        </select>\n      </label></p>\n      \n      <p>\n        <%\n          var date = new Date(Date.parse(post.get(\'published_at\'))),\n              hours = date.getHours(),\n              ampm  = \'am\';\n          if(hours > 11) {\n            hours = hours - 12;\n            ampm = \'pm\';\n          }\n          (hours == 0) && (hours = 12);\n        %>\n        <label for="post_published_at">\n          Published At:\n          <select id="post_published_at_month" name="published_at[month]" class="date-month">\n            <% for(var month=0; month<12; month++) { %>\n              <option value="<%= month %>" <%= (date.getMonth() == month) && \'selected="selected"\' %>><%= Unite.MONTHS[month] %></option>\n            <% } %>\n          </select>\n          <input type="text" id="post_published_at_day" name="published_at[day]" class="date-day" size="2" value="<%= date.getDate() %>" />, \n          <input type="text" id="post_published_at_year" name="published_at[year]" class="date-year" size="4" value="<%= date.getFullYear() %>" />&nbsp;&nbsp;\n          <input type="text" id="post_published_at_hour" name="published_at[hour]" class="date-hour" size="2" value="<%= hours %>" />:<input type="text" id="post_published_at_minute" name="published_at[minute]" class="date-minute" size="2" value="<%= date.getMinutes() %>" />\n          <select id="post_published_at_ampm" name="published_at[ampm]" class="date-ampm">\n            <option value="AM" <%= (ampm == \'am\') && \'selected="selected"\' %>>AM</option>\n            <option value="PM" <%= (ampm == \'pm\') && \'selected="selected"\' %>>PM</option>\n          </select>\n        </label>\n      </p>\n      \n      <p>\n        <label for="post_feed_id">\n          Feed:\n          <select id="post_feed_id" name="feed_id" class="required">\n            <% feeds.each(function(feed) { %>\n              <option value="<%= feed.id %>" data-slug="<%= feed.get(\'slug\') %>"\n              <% if (post.get(\'feed_id\') == feed.id) { %>\n                selected="selected"\n              <% } %>\n              ><%= feed.get(\'title\') %></option>\n            <% }); %>\n          </select>\n        </label>\n      </p>\n      \n      \n    </div>\n      \n    <div class="modal-footer">\n      <button class="btn btn-primary submit-button">Save Changes</button>\n      <button class="btn close-button" data-dismiss="modal">Close</button>\n    </div>\n  </form>')}.call(window),function(){this.JST||(this.JST={}),
6this.JST["posts/index"]=_.template('<div id="posts-list-content" class="admin-tab-content admin-flash-container flex-rows">\n    <div id="posts-list-container" class="flex-grow"></div>\n  \n    <div class="admin-actions">\n      <fieldset class="bulk-actions">\n        <legend>Actions for selected posts</legend>\n        <button class="btn publish-button">Publish</button>\n        <button class="btn draft-button">Make Draft</button>\n        <button class="btn delete-button">Delete</button>\n        <button class="btn change-feed-button">Change Feed</button>\n      </fieldset>\n    </div>\n  </div>')}.call(window),function(){this.JST||(this.JST={}),this.JST["settings/_menu"]=_.template('<ol class="admin-subnav">\n    <h1>Settings</h1>\n    <li class="adminTab<% if (action == \'general\') { %> selected<% } %>"><a href="#/admin/settings/general">Account</a></li>\n    <li class="adminTab<% if (action == \'calendars\') { %> selected<% } %>"><a href="#/admin/settings/calendars">Calendars</a></li>\n    <li class="adminTab<% if (action == \'domain\') { %> selected<% } %>"><a href="#/admin/settings/domain">Domain</a></li>\n    <li class="adminTab<% if (action == \'googleAnalytics\') { %> selected<% } %>"><a href="#/admin/settings/googleAnalytics">Google Analytics</a></li>\n    <% if (!Unite.permissions.freeTier) { %>\n      <li class="adminTab<% if (action == \'integration\') { %> selected<% } %>"><a href="#/admin/settings/integration">Integration</a></li>\n    <% } else { %>\n      <li class="adminTab restricted"><i class="fa fa-lock" data-toggle="tooltip" title="Upgrade to unlock this feature."></i>Integration</li>\n    <% } %>\n    <li class="adminTab<% if (action == \'socialLinks\') { %> selected<% } %>"><a href="#/admin/settings/social">Social Links</a></li>\n    <li class="adminTab<% if (action == \'texting\') { %> selected<% } %>"><a href="#/admin/settings/texting">Texting</a></li>\n  </ol>')}.call(window),function(){this.JST||(this.JST={}),this.JST["settings/analytics"]=_.template('<%= JST[\'settings/_menu\']({ action: \'googleAnalytics\' }) %>
6\n  <div id="settings-analytics-content" class="admin-tab-content admin-flash-container">\n    <form id="analytics_settings_form">\n      <p>Google Analytics is a free tool that helps you serve your Church360&deg; Unite site\'s visitors better. You can see how many people are visiting your site for the first time, and understand how well you\'re reaching out to them by seeing what information they\'re looking for most. You can even see what other websites are bringing visitors to your Church360&deg; Unite site, so you know to focus your efforts there. Google Analytics can also show you how long people are staying, and how to make your most important pages even better.</p>\n      <p>To sign up, visit <a href="http://google.com/analytics">google.com/analytics</a> and click the "Sign Up Now" link. Follow the directions there and you\'ll get an account number. To link Google Analytics to your Church360&deg; Unite site, just copy it into the box below and you\'re all set.</p>\n      <h4>Example Account Numbers</h4>\n      <p>Google Analytics 4: <code>G-XXXXXXXXXX</code></p>\n      <p>\n        <input type="hidden" name="use_google_analytics" value="0" />\n        <input type="checkbox" id="google_analytics_on" name="use_google_analytics" value="1" <%= settings.use_google_analytics ? \'checked="checked"\' : \'\' %> />\n        <label for="google_analytics_on">Enable Google Analytics</label>\n      </p>\n      <dl class="form">\n        <dt><label for="google_analytics_account">Account Number</label></dt>\n        <dd><input type="text" id="google_analytics_account" name="account" value="<%= settings.account %>" />\n      </dl>\n    </form>\n  \n    <div class="admin-actions">\n      <fieldset class="buttons em">\n        <button class="btn btn-primary submit-button" id="submit_button">Save Changes</button>\n      </fieldset>\n    <div>\n  </div>')}.call(window),function(){this.JST||(this.JST={}),this.JST["settings/calendars"]=_.template('<%= JST[\'settings/_menu\']({ action: \'calendars\' }) %>\n  <div id="settings-calendar-content" class="admin-tab-content admin-flash-container flex-rows">\n    <form id="new_calendar_form">\n      <select name="owner" id="calendar_owner">\n        <option value="user" selected>Unite Calendar</option>\n        <option value="google">Google Calendar</option>\n      </select>\n      <input type="text" id="calendar_name" name="name" placeholder="Enter name"/>\n      <input type="email" name="remote_id" id="google_calendar_id" class="hidden" disabled placeholder="Enter Google calendar ID" />\n      <input type="submit" value="Create Calendar" class="btn btn-primary submit-button" />\n      <em>Select the calendars to be shown in Church360&deg; Unite</em>\n    </form>\n  \n    <div id="calendars_collection_view" class="scrollable loading"></div>')}
6.call(window),function(){this.JST||(this.JST={}),this.JST["settings/domain"]=_.template('<%= JST[\'settings/_menu\']({ action: \'domain\' }) %>\n  <div id="settings-domain-content" class="admin-tab-content admin-flash-container">\n    <form id="domain_settings_form">\n      <p class="writeCopy">\n        You can associate a domain name with your Church360&deg; Unite site.\n      </p>\n      <p class="writeCopy">\n        This will allow your members to go to <code>www.mychurch.com</code> rather than <code><%= canonicalDomain %></code>.\n      </p>\n      <p class="writeCopy">\n        If you do not already own a domain, contact your sales representative at 800-325-2399.\n      </p>\n      <p class="writeCopy">\n        If you own a domain, then log in to your registrar, edit your Host Settings, and create two records that look like this:\n        <pre>www   CNAME   <%= cname %><br/>  @       A   52.5.77.162</pre>\n      </p>\n      <p class="writeCopy">\n        The second entry will allow you to use the bare url for your domain (without the preceding <code>www</code>) like <code>mychurch.com</code>.\n      </p>\n      <dl class="form">\n        <dt><label for="domain">Domain:</dt>\n        <dd><input type="text" id="domain" name="domain" value="<%= settings.domain %>" />\n        <% if(status) { %>\n          <p><%= status %></p>\n        <% } %>\n      </dl>\n    </form>\n  \n    <div class="admin-actions">\n      <fieldset class="buttons em">\n        <button class="btn btn-primary submit-button" id="submit_button">Save Changes</button>\n      </fieldset>\n    </div>\n  </div>\n  \n  <script type="text/javascript">\n    setTimeout(function(){\n      $domain = $(\'#domain\')\n      if($.trim($domain.val()) == "") {\n        $domain.focus().val("www.");\n      }\n    }, 1000)\n  </script>')}.call(window),function(){this.JST||(this.JST={}),this.JST["settings/general"]=_.template('<%= JST[\'settings/_menu\']({ action: \'general\' }) %>
6\n  <div id="settings-general-content" class="admin-tab-content admin-flash-container">\n    <h3 class="top">Usage</h3>\n    <p id="usage"><span class="used"><%= Unite.bytesToSize(settings.usage) %></span>\n      out of <span class="allowed"><%= settings.has_usage_limit ? Unite.bytesToSize(settings.allowed_usage) : "unlimited space" %></span> used.</p>\n    <div class="progress progress-striped<%= settings.has_usage_limit ? "" : " hidden" %>">\n      <div class="bar" style="width: <%= Math.floor((settings.usage/settings.allowed_usage)*100) %>%;"></div>\n    </div>\n  \n    <form id="general_settings_form">\n      <h3>Church Information</h3>\n      <dl class="form-controls">\n        <dt><label for="name">Name</label></dt>\n        <dd><input type="text" id="name" name="name" value="<%= settings.name %>" /></dd>\n  \n        <dt><label for="church_email">Email</label></dt>\n        <dd><input type="text" id="church_email" name="church_email" value="<%= settings.church_email %>" /></dd>\n  \n        <dt><label for="church_phone">Phone</label></dt>\n        <dd><input type="text" id="church_phone" name="church_phone" value="<%= settings.church_phone %>" /></dd>\n  \n        <dt><label>Address</label></dt>\n        <dd><input type="text" name="church_address_json[street]" placeholder="Street" value="<%= settings.church_street %>" /></dd>\n        <dt><label></label></dt>\n        <dd><input type="text" name="church_address_json[city]" placeholder="City" value="<%= settings.church_city %>" /></dd>\n        <dt><label></label></dt>\n        <dd><input type="text" class="state-input" name="church_address_json[state]" placeholder="State" value="<%= settings.church_state %>" /></dd>\n        <dd><input type="text" class="zip-input" name="church_address_json[zip]" placeholder="Zip" value="<%= settings.church_zip %>" /></dd>\n  \n        <dt><label for="tenant_time_zone">Time Zone</label></dt>\n        <dd>\n          <select id="tenant_time_zone" name="time_zone">\n            <option value="Alaska">(GMT-09:00) Alaska</option>\n            <option value="Pacific Time (US &amp; Canada)">(GMT-08:00) Pacific Time (US &amp; Canada)</option>\n            <option value="Arizona">(GMT-07:00) Arizona</option>\n            <option value="Mountain Time (US &amp; Canada)">(GMT-07:00) Mountain Time (US &amp; Canada)</option>\n            <option value="Central Time (US &amp; Canada)" selected="selected">(GMT-06:00) Central Time (US &amp; Canada)</option>\n            <option value="Eastern Time (US &amp; Canada)">(GMT-05:00) Eastern Time (US &amp; Canada)</option>\n            <option value="Indiana (East)">(GMT-05:00) Indiana (East)</option>\n            <option value="" disabled="disabled">-------------</option>\n            <option value="International Date Line West">(GMT-11:00) International Date Line West</option>\n            <option value="Midway Island">(GMT-11:00) Midway Island</option>\n            <option value="Samoa">(GMT-11:00) Samoa</option>\n            <option value="Tijuana">(GMT-08:00) Tijuana</option>\n            <option value="Chihuahua">(GMT-07:00) Chihuahua</option>\n            <option value="Mazatlan">(GMT-07:00) Mazatlan</option>\n            <option value="Central America">(GMT-06:00) Central America</option>\n            <option value="Guadalajara">(GMT-06:00) Guadalajara</option>\n            <option value="Mexico City">(GMT-06:00) Mexico City</option>\n            <option value="Monterrey">(GMT-06:00) Monterrey</option>\n            <option value="Saskatchewan">(GMT-06:00) Saskatchewan</option>\n            <option value="Bogota">(GMT-05:00) Bogota</option>\n            <option value="Lima">(GMT-05:00) Lima</option>\n            <option value="Quito">(GMT-05:00) Quito</option>\n            <option value="Caracas">(GMT-04:30) Caracas</option>\n            <option value="Atlantic Time (Canada)">(GMT-04:00) Atlantic Time (Canada)</option>\n            <option value="Georgetown">(GMT-04:00) Georgetown</option>\n            <option value="La Paz">(GMT-04:00) La Paz</option>\n            <option value="Santiago">(GMT-04:00) Santiago</option>\n            <option value="Newfoundland">(GMT-03:30) Newfoundland</option>\n            <option value="Brasilia">(GMT-03:00) Brasilia</option>\n            <option value="Buenos Aires">(GMT-03:00) Buenos Aires</option>\n            <option value="Greenland">(GMT-03:00) Greenland</option>\n            <option value="Mid-Atlantic">(GMT-02:00) Mid-Atlantic</option>\n            <option value="Azores">(GMT-01:00) Azores</option>\n            <option value="Cape Verde Is.">(GMT-01:00) Cape Verde Is.</option>\n            <option value="Casablanca">(GMT+00:00) Casablanca</option>\n            <option value="Dublin">(GMT+00:00) Dublin</option>\n            <option value="Edinburgh">(GMT+00:00) Edinburgh</option>\n            <option value="Lisbon">(GMT+00:00) Lisbon</option>\n            <option value="London">(GMT+00:00) London</option>\n            <option value="Monrovia">(GMT+00:00) Monrovia</option>\n            <option value="UTC">(GMT+00:00) UTC</option>\n            <option value="Amsterdam">(GMT+01:00) Amsterdam</option>\n            <option value="Belgrade">(GMT+01:00) Belgrade</option>\n            <option value="Berlin">(GMT+01:00) Berlin</option>\n            <option value="Bern">(GMT+01:00) Bern</option>\n            <option value="Bratislava">(GMT+01:00) Bratislava</option>\n            <option value="Brussels">(GMT+01:00) Brussels</option>\n            <option value="Budapest">(GMT+01:00) Budapest</option>\n            <option value="Copenhagen">(GMT+01:00) Copenhagen</option>\n            <option value="Ljubljana">(GMT+01:00) Ljubljana</option>\n            <option value="Madrid">(GMT+01:00) Madrid</option>\n            <option value="Paris">(GMT+01:00) Paris</option>\n            <option value="Prague">(GMT+01:00) Prague</option>\n            <option value="Rome">(GMT+01:00) Rome</option>\n            <option value="Sarajevo">(GMT+01:00) Sarajevo</option>\n            <option value="Skopje">(GMT+01:00) Skopje</option>\n            <option value="Stockholm">(GMT+01:00) Stockholm</option>\n            <option value="Vienna">(GMT+01:00) Vienna</option>\n            <option value="Warsaw">(GMT+01:00) Warsaw</option>\n            <option value="West Central Africa">(GMT+01:00) West Central Africa</option>\n            <option value="Zagreb">(GMT+01:00) Zagreb</option>\n            <option value="Athens">(GMT+02:00) Athens</option>\n            <option value="Bucharest">(GMT+02:00) Bucharest</option>\n            <option value="Cairo">(GMT+02:00) Cairo</option>\n            <option value="Harare">(GMT+02:00) Harare</option>\n            <option value="Helsinki">(GMT+02:00) Helsinki</option>\n            <option value="Istanbul">(GMT+02:00) Istanbul</option>\n            <option value="Jerusalem">(GMT+02:00) Jerusalem</option>\n            <option value="Kyiv">(GMT+02:00) Kyiv</option>\n            <option value="Minsk">(GMT+02:00) Minsk</option>\n            <option value="Pretoria">(GMT+02:00) Pretoria</option>\n            <option value="Riga">(GMT+02:00) Riga</option>\n            <option value="Sofia">(GMT+02:00) Sofia</option>\n            <option value="Tallinn">(GMT+02:00) Tallinn</option>\n            <option value="Vilnius">(GMT+02:00) Vilnius</option>\n            <option value="Baghdad">(GMT+03:00) Baghdad</option>\n            <option value="Kuwait">(GMT+03:00) Kuwait</option>\n            <option value="Nairobi">(GMT+03:00) Nairobi</option>\n            <option value="Riyadh">(GMT+03:00) Riyadh</option>\n            <option value="Tehran">(GMT+03:30) Tehran</option>\n            <option value="Abu Dhabi">(GMT+04:00) Abu Dhabi</option>\n            <option value="Baku">(GMT+04:00) Baku</option>\n            <option value="Moscow">(GMT+04:00) Moscow</option>\n            <option value="Muscat">(GMT+04:00) Muscat</option>\n            <option value="St. Petersburg">(GMT+04:00) St. Petersburg</option>\n            <option value="Tbilisi">(GMT+04:00) Tbilisi</option>\n            <option value="Volgograd">(GMT+04:00) Volgograd</option>\n            <option value="Yerevan">(GMT+04:00) Yerevan</option>\n            <option value="Kabul">(GMT+04:30) Kabul</option>\n            <option value="Islamabad">(GMT+05:00) Islamabad</option>\n            <option value="Karachi">(GMT+05:00) Karachi</option>\n            <option value="Tashkent">
6(GMT+05:00) Tashkent</option>\n            <option value="Chennai">(GMT+05:30) Chennai</option>\n            <option value="Kolkata">(GMT+05:30) Kolkata</option>\n            <option value="Mumbai">(GMT+05:30) Mumbai</option>\n            <option value="New Delhi">(GMT+05:30) New Delhi</option>\n            <option value="Sri Jayawardenepura">(GMT+05:30) Sri Jayawardenepura</option>\n            <option value="Kathmandu">(GMT+05:45) Kathmandu</option>\n            <option value="Almaty">(GMT+06:00) Almaty</option>\n            <option value="Astana">(GMT+06:00) Astana</option>\n            <option value="Dhaka">(GMT+06:00) Dhaka</option>\n            <option value="Ekaterinburg">(GMT+06:00) Ekaterinburg</option>\n            <option value="Rangoon">(GMT+06:30) Rangoon</option>\n            <option value="Bangkok">(GMT+07:00) Bangkok</option>\n            <option value="Hanoi">(GMT+07:00) Hanoi</option>\n            <option value="Jakarta">(GMT+07:00) Jakarta</option>\n            <option value="Novosibirsk">(GMT+07:00) Novosibirsk</option>\n            <option value="Beijing">(GMT+08:00) Beijing</option>\n            <option value="Chongqing">(GMT+08:00) Chongqing</option>\n            <option value="Hong Kong">(GMT+08:00) Hong Kong</option>\n            <option value="Krasnoyarsk">(GMT+08:00) Krasnoyarsk</option>\n            <option value="Kuala Lumpur">(GMT+08:00) Kuala Lumpur</option>\n            <option value="Perth">(GMT+08:00) Perth</option>\n            <option value="Singapore">(GMT+08:00) Singapore</option>\n            <option value="Taipei">(GMT+08:00) Taipei</option>\n            <option value="Ulaan Bataar">(GMT+08:00) Ulaan Bataar</option>\n            <option value="Urumqi">(GMT+08:00) Urumqi</option>\n            <option value="Irkutsk">(GMT+09:00) Irkutsk</option>\n            <option value="Osaka">(GMT+09:00) Osaka</option>\n            <option value="Sapporo">(GMT+09:00) Sapporo</option>\n            <option value="Seoul">(GMT+09:00) Seoul</option>\n            <option value="Tokyo">(GMT+09:00) Tokyo</option>\n            <option value="Adelaide">(GMT+09:30) Adelaide</option>\n            <option value="Darwin">(GMT+09:30) Darwin</option>\n            <option value="Brisbane">(GMT+10:00) Brisbane</option>\n            <option value="Canberra">(GMT+10:00) Canberra</option>\n            <option value="Guam">(GMT+10:00) Guam</option>\n            <option value="Hobart">(GMT+10:00) Hobart</option>\n            <option value="Melbourne">(GMT+10:00) Melbourne</option>\n            <option value="Port Moresby">(GMT+10:00) Port Moresby</option>\n            <option value="Sydney">(GMT+10:00) Sydney</option>\n            <option value="Yakutsk">(GMT+10:00) Yakutsk</option>\n            <option value="New Caledonia">(GMT+11:00) New Caledonia</option>\n            <option value="Vladivostok">(GMT+11:00) Vladivostok</option>\n            <option value="Auckland">(GMT+12:00) Auckland</option>\n            <option value="Fiji">(GMT+12:00) Fiji</option>\n            <option value="Kamchatka">(GMT+12:00) Kamchatka</option>\n            <option value="Magadan">(GMT+12:00) Magadan</option>\n            <option value="Marshall Is.">(GMT+12:00) Marshall Is.</option>\n            <option value="Solomon Is.">(GMT+12:00) Solomon Is.</option>\n            <option value="Wellington">(GMT+12:00) Wellington</option>\n            <option value="Nuku\'alofa">(GMT+13:00) Nuku\'alofa</option>\n          </select>\n        </dd>\n      </dl>\n    </form>\n  \n    <div class="admin-actions">\n      <fieldset class="buttons em">\n        <button class="btn btn-primary submit-button" id="submit_button">Save Changes</button>\n      </fieldset>\n    </div>\n  </div>')}.call(window),function(){this.JST||(this.JST={}),this.JST["settings/integration"]=_.template('<%= JST[\'settings/_menu\']({ action: \'integration\' }) %>
6\n  <div id="settings-general-content" class="admin-tab-content admin-flash-container">\n    <h3 class="top">Sync with Shepherd\'s Staff</h3>\n    <p>The Shepherd\'s Staff integration sends certain Membership information to Church360\xb0 Unite and receives back changes made by church members in their user accounts.</p>\n    <p>To integrate your Shepherd\u2019s Staff database with your Church360\xb0 Unite account:</p>\n    <ol>\n      <li>Open Shepherd\u2019s Staff and go to the Membership module.</li>\n      <li>Go to Tools > Church360\xba Unite, then click on the Settings tab.</li>\n      <li>Click on the Edit button for the Church360\xb0 Unite Account Token field and enter the token listed below. Click the Save button.</li>\n      <li>Click on the Edit button for the Church360\xb0 Unite Subdomain field and enter your subdomain. Click the Save button.</li>\n      <li>Click on the Synchronize tab and click the Sync button to begin the integration process.</li>\n      <li>Note: The next time you open the Membership module you will see a new toolbar shortcut for the Church360\xb0 Unite sync.</li>\n    </ol>\n  \n    <dl class="form-controls">\n      <dt><label for="shepherds_staff_token">Token</label></dt>\n      <dd><input type="text" readonly="readonly" id="shepherds_staff_token" size="40" value="<%= settings.shepherds_staff_token %>" /></dd>\n  \n      <dt><label for="subdomain">Subdomain</label></dt>\n      <dd><input type="text" readonly="readonly" id="subdomain" size="40" value="<%= settings.subdomain %>" /></dd>\n    </dl>\n  \n    <br style="clear: both;" />\n  </div>')}.call(window),function(){this.JST||(this.JST={}),this.JST["settings/social"]=_.template('<%= JST[\'settings/_menu\']({ action: \'socialLinks\' }) %>
6\n  <div id="settings-general-content" class="admin-tab-content admin-flash-container">\n    <h3 class="top">Link to your social media accounts</h3>\n    <br />\n    <p>\n      Any links you add here will automatically show up in the footer of all your pages.<br />\n      If you\'ve copied a theme to customize it, this option may not be available to you depending on when you copied the theme.<br />\n    </p>\n  \n    <form id="social_links_settings_form">\n      <dl class="form-controls">\n        <dt>\n          <label for="facebook">\n            <i class="fa fa-facebook-square" aria-hidden="true"></i> Facebook\n          </label>\n        </dt>\n        <dd><input type="text" id="facebook" name="facebook" value="<%= settings.facebook %>" /></dd>\n  \n        <dt>\n          <label for="twitter">\n            <i class="fa fa-twitter-square" aria-hidden="true"></i> Twitter\n          </label>\n        </dt>\n        <dd><input type="text" id="twitter" name="twitter" value="<%= settings.twitter %>" /></dd>\n  \n        <dt>\n          <label for="instagram">\n            <i class="fa fa-instagram" aria-hidden="true"></i> Instagram\n          </label>\n        </dt>\n        <dd><input type="text" id="instagram" name="instagram" value="<%= settings.instagram %>" /></dd>\n  \n        <dt>\n          <label for="youtube">\n            <i class="fa fa-youtube-square" aria-hidden="true"></i> Youtube\n          </label>\n        </dt>\n        <dd><input type="text" id="youtube" name="youtube" value="<%= settings.youtube %>" /></dd>\n  \n        <dt>\n          <label for="vimeo">\n            <i class="fa fa-vimeo-square" aria-hidden="true"></i> Vimeo\n          </label>\n        </dt>\n        <dd><input type="text" id="vimeo" name="vimeo" value="<%= settings.vimeo %>" /></dd>\n      </dl>\n    </form>\n  \n    <div class="admin-actions">\n      <fieldset class="buttons em">\n        <button class="btn btn-primary submit-button" id="submit_button">Save Changes</button>\n      </fieldset>\n    </div>\n  </div>')}.call(window),function(){this.JST||(this.JST={}),this.JST["settings/texting"]=_.template('<%= JST[\'settings/_menu\']({ action: \'texting\' }) %>
6\n  <div id="settings-general-content" class="admin-tab-content admin-flash-container">\n    <form id="texting_settings_form">\n      <dl class="form-controls">\n        <dt>\n          <label for="texting_opt_in_on">\n            Public Opt-In page\n          </label>\n        </dt>\n        <dd>\n          <input type="hidden" name="enable_texting_opt_in" value="0" />\n          <input type="checkbox" id="texting_opt_in_on" name="enable_texting_opt_in" value="1" <%= settings.enable_texting_opt_in ? \'checked="checked"\' : \'\' %> /> Enabled\n        </dd>\n  \n        <dt>\n          <label for="personalized_opt_in_message">\n            Personalize Opt-In Email Message\n          </label>\n        </dt>\n        <dd>\n          <textarea name="personalized_opt_in_message" id="personalized_opt_in_message" rows="4"><%= settings.personalized_opt_in_message %></textarea>\n        </dd>\n      </dl>\n    </form>\n  \n    <div class="admin-actions">\n      <fieldset class="buttons em">\n        <button class="btn btn-primary submit-button" id="submit_button">Save Changes</button>\n      </fieldset>\n    <div>\n  </div>')}.call(window),function(){this.JST||(this.JST={}),this.JST["themes/_asset"]=_.template('<li class="asset <%= asset.directory ? \'directory\' : \'\' %>" data-mime-type="<%= asset.mime %>" data-path="<%= asset.path %>"><% has_children = (asset.children || []).length > 0; %>\n    <div>\n      <% if(asset.editable) { %>\n        <a class="asset-edit asset-name" href="<%= asset.path %>"><%= asset.name %></a>\n      <% } else { %>\n        <span class="asset-name"><%= asset.name %></span>\n      <% } %>\n      <% if(!asset.directory) { %>\n        <a class="asset-link asset-destroy" data-name="<%= asset.name %>" href="<%= asset.path %>">Delete</a>\n      <% } %>\n    </div>\n    <% if(has_children) { %>\n    <ol class="nested-assets">\n      <% _.each(asset.children, function(child) { %>\n        <%= JST[\'themes/_asset\']({ asset: child }) %>\n      <% }); %>\n    </ol>\n    <% } %>\n  </li>')}.call(window),function(){this.JST||(this.JST={}),this.JST["themes/_asset_uploader"]=_.template('<li class="adminFile"><input type="file" id="asset_0" name="assets[0]" /></li>')}.call(window),function(){this.JST||(this.JST={}),this.JST["themes/_color_picker"]=_.template('<div class="colorpicker">\n    <div class="colorpicker_color">\n      <div>\n        <div></div>\n      </div>\n    </div>\n    <div class="colorpicker_hue">\n      <div></div>\n    </div>\n    <div class="colorpicker_new_color"></div>\n    <div class="colorpicker_current_color"></div>\n    <div class="colorpicker_hex">\n      <input type="text" maxlength="6" size="6" />\n    </div>\n    <div class="colorpicker_rgb_r colorpicker_field">\n      <input type="text" maxlength="3" size="3" />\n      <span></span>\n    </div>\n    <div class="colorpicker_rgb_g colorpicker_field">\n      <input type="text" maxlength="3" size="3" />\n      <span></span>\n    </div>\n    <div class="colorpicker_rgb_b colorpicker_field">\n      <input type="text" maxlength="3" size="3" />\n      <span></span>\n    </div>\n    <div class="colorpicker_hsb_h colorpicker_field">\n      <input type="text" maxlength="3" size="3" />\n      <span></span>\n    </div>\n    <div class="colorpicker_hsb_s colorpicker_field">\n      <input type="text" maxlength="3" size="3" />\n      <span></span>\n    </div>\n    <div class="colorpicker_hsb_b colorpicker_field">\n      <input type="text" maxlength="3" size="3" />\n      <span></span>\n    </div>\n    <div class="colorpicker_auto">\n      <button value="auto">Auto</button>\n    </div>\n  </div>')}.call(window),function(){this.JST||(this.JST={}),this.JST["themes/_list"]=_.template('<ul id="themes_list" class="-unite-asset-list">\n  <% themes.each(function(theme) { %>\n    <li class="-unite-asset -unite-theme <%= theme.css_class() %>" data-slug="<%= theme.get(\'slug\') %>">\n      <a class="-unite-theme-link" title="<%= theme.get(\'name\') %>" href="<%= theme.activate_url() %>">\n        <div class="-unite-theme-thumbnail">\n          <img alt="<%= theme.get(\'name\') %> screenshot" src="<%= theme.image_url() %>" />\n        </div>\n        <div class="-unite-theme-name"><%= theme.get(\'name\') %></div>\n      </a>\n    </li>\n  <% }); %>\n  </ul>\n  <div id="theme_preset_preview" style="display:none;"></div>')}
6.call(window),function(){this.JST||(this.JST={}),this.JST["themes/_menu"]=_.template('<ol class="admin-subnav">\n    <h1>Themes</h1>\n    <li class="adminTab<% if (action == \'index\') { %> selected<% } %>"><a href="#/admin/themes">Browse</a></li>\n    <li class="adminTab<% if (action == \'styles\') { %> selected <% } %>"><a href="#/admin/themes/styles">Styles</a></li>\n    <li class="adminTab<% if (action == \'customize\') { %> selected <% } %>"><a href="#/admin/themes/customize">Customize</a></li>\n    <li class="adminTab<% if (action == \'advanced\') { %> selected <% } %>"><a href="#/admin/themes/advanced">Advanced</a></li>\n    <li class="adminTab<% if (action == \'edit\') { %> selected <% } %>"><a href="#/admin/themes/edit">Edit</a></li>\n  </ol>')}.call(window),function(){this.JST||(this.JST={}),this.JST["themes/_presets"]=_.template('<li id="theme_presets_list_element" style="display: none;" class="theme-presets">\n    <div id="drawer_arrow" class="arrow">.</div>\n    <h4>Presets</h4>\n    <% if(!theme.get(\'up_to_date\')) { %>\n      <button class="upgrade-theme btn btn-primary btn-small" data-theme="<%= theme.get(\'slug\') %>">Upgrade <%= theme.get(\'name\') %>!</button>\n    <% } %>\n    <% if(theme.get(\'downgrade_eligible\')) { %>\n      <button class="downgrade-theme btn btn-mini" data-theme="<%= theme.get(\'slug\') %>">Downgrade <%= theme.get(\'name\') %></button>\n    <% } %>\n    <ul id="theme_presets" class="-unite-preset-list">\n    <% theme.get(\'presets\').each(function(preset) { %>\n      <li class="-unite-asset -unite-preset">\n        <a class="-unite-preset-link" data-title="<%= preset.name %>">\n          <div class="-unite-asset-thumbnail -unite-preset-thumbnail">\n            <div class="-unite-preset-preview-loading"></div>\n            <img alt="<%= preset.name %> screenshot" src="/themes/<%= theme.get(\'slug\') %>/screenshots/<%= preset.name %>-thumb.png" />\n          </div>\n        </a>\n      </li>\n    <% }); %>\n    </ul>\n  </li>')}.call(window),function(){this.JST||(this.JST={}),this.JST["themes/_preview"]=_.template('<div id="preview_backdrop"></div>\n  <div id="preview_wrapper" class="-unite-preset-preview">\n    <h3><%= preset %></h3>\n    <img src="/themes/<%= theme.get(\'slug\') %>/screenshots/<%= preset %>-preview.png" width="720">\n  </div>')}.call(window),function(){this.JST||(this.JST={}),this.JST["themes/_save_as"]=_.template('<div class="modal hide" tabindex="-1" role="dialog" aria-labelledby="modal_label" aria-hidden="true">\n    <div class="modal-header">\n      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\xd7</button>\n      <h3 id="modal_label">New Theme</h3>\n    </div>\n    <div class="modal-body">\n      <p class="writeCopy">\n        Create a new theme based on <strong><%= theme_name %></strong>\n      </p>\n    \n      <label for="new_theme_name">Enter a name for the new theme</label>\n      <input type="text" id="new_theme_name" name="new_theme_name" />\n    </div>\n    <div class="modal-footer">\n      <button class="btn" data-dismiss="modal" aria-hidden="true" id="modal_cancel_button">Cancel</button>\n      <button class="btn btn-primary" data-dismiss="modal" id="create_theme_button">Create Theme</button>\n    </div>\n  </div>')}.call(window),function(){this.JST||(this.JST={}),
7this.JST["themes/edit"]=_.template('<%= JST[\'themes/_menu\']({ action: \'edit\' }) %>\n  <div id="themes-edit-content" class="admin-tab-content admin-flash-container flex-rows">\n    <div class="flex-grow flex-columns">\n      <div class="themes-edit-assets flex-column flex-rows">\n        <h3 class="top">Resources</h3>\n        <div class="flex-grow scrollable scrollable-control" id="assets"></div>\n  \n        <h3>Upload Files</h3>\n        <div id="assets_uploader">\n          <form action="/admin/theme_assets" method="post" id="upload_assets_form" enctype="multipart/form-data" target="admin_upload_target" accept-charset="UTF-8">\n            <div style="margin:0;padding:0;display:inline;">\n              <input type="hidden" name="utf8" value="\u2713" />\n              <input type="hidden" name="authenticity_token" value="<%= Unite.meta(\'csrf-token\') %>" />\n              <input type="hidden" name="dir" id="upload_path_field" value="/" />\n            </div>\n            <p><label>Upload to: </label><span id="upload_path">/</span></p>\n            <ul id="asset_files">\n              <%= JST[\'themes/_asset_uploader\']() %>\n            </ul>\n            <fieldset class="buttons">\n              <a href="#add_asset" id="upload_assets_add">
7Add another</a>&nbsp;\n              <button id="upload_assets_submit" class="btn btn-primary">Upload Files</button>\n            </fieldset>\n          </form>\n          <iframe id="admin_upload_target" name="admin_upload_target" src=""></iframe>\n        </div>\n      </div>\n  \n      <div class="themes-edit-content flex-column flex-column-grow flex-rows">\n        <h3 class="top withFocus" id="asset_name"></h3>\n        <pre id="asset_editor" class="flex-grow" style="display:none;"></pre>\n        <div id="asset_image_preview" class="flex-grow" style="display:none;"></div>\n        <div id="cant_edit_asset_message" class="flex-grow" style="display:none;">\n          <p class="writeCopy">I don\'t know how to edit or preview this file</p>\n        </div>\n      </div>\n    </div>\n  \n    <div class="admin-actions">\n      <fieldset class="buttons float">\n        <button id="delete_asset" class="btn btn-default" style="display:none;">Delete File</button>\n        <button id="save_asset" class="btn btn-primary submit-button">Save Changes</button>\n      </fieldset>\n    </div>\n  </div>')}.call(window),function(){this.JST||(this.JST={}),this.JST["themes/global-edit"]=_.template('<%= JST[\'themes/_menu\']({ action: \'edit\' }) %>\n  <div id="themes-edit-content" class="admin-tab-content admin-flash-container">\n    <div>\n      <p><%= I18n.t(\'global_theme.editor\') %></p>\n    </div>\n    \n    <div class="admin-actions">\n      <fieldset class="buttons em">\n        <button id="clone_theme" class="btn btn-primary submit-button">Clone Theme</button>\n      </fieldset>\n    </div>\n  </div>')}.call(window),function(){this.JST||(this.JST={}),this.JST["users/_choose_role"]=_.template('<div class="modal hide -unite-admin-view -unite-admin-modal  -unite-admin-modal-small" tabindex="-1" role="dialog" aria-labelledby="modal_label" aria-hidden="true" id="change_role_modal">\n    <div class="modal-header">\n      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\xd7</button>\n      <h3 id="modal_label">Change Role</h3>\n    </div>\n    <div class="modal-body">\n      <form id="users_choose_role">\n        <fieldset>\n        <legend><%= changeRoleMessage %></legend>\n        <ul class="unstyled">\n          <li>\n            <input id="users_role_none" name="users_role" type="radio" value="None">\n            <label for="users_role_none">\n              <b>None</b>\n              <span class="role-description">may not log in to Unite</span>\n            </label>\n          </li>\n          <li>\n            <input id="users_role_user" name="users_role" type="radio" value="User" checked="checked">\n            <label for="users_role_user">\n              <b>User</b>\n              <span class="role-description">may log in to Unite</span>\n            </label>\n          </li>\n          <li>\n            <input id="users_role_publisher" name="users_role" type="radio" value="Publisher">\n            <label for="users_role_publisher">\n              <b>Publisher</b>\n              <span class="role-description">may edit content</span>\n            </label>\n          </li>\n          <li>\n            <input id="users_role_designer" name="users_role" type="radio" value="Designer">\n            <label for="users_role_designer">\n              <b>Designer</b>\n              <span class="role-description">may edit content and themes</span>\n            </label>\n          </li>\n          <li>\n            <input id="users_role_administrator" name="users_role" type="radio" value="Administrator">\n            <label for="users_role_administrator">\n              <b>Administrator</b>\n              <span class="role-description">may manage themes and settings</span>\n            </label>\n          </li>\n        </ul>\n        </fieldset>\n      </form>\n      <% if(noEmailMessage) { %>\n        <div id="users_without_emails">\n          <div class="alert alert-block alert-warning change-role-alert change-role-severe">\n            <%= noEmailMessage %>\n          </div>\n          <fieldset>\n            <legend><%= enterEmailAddressesMessage %></legend>\n            <div class="scrollable">\n              <table id="enter_emails_table">\n                <tbody>\n                  <% _.each(peopleWithoutEmail, function(person) { %>\n                  <tr>\n                    <td><%= person.get(\'first_name\') %> <b><%= person.get(\'last_name\') %></b></td>\n                    <td><input class="person-email" data-person-id="<%= person.id %>" type=\'email\' /></td>\n                  </tr>\n                  <% }) %>\n                </tbody>\n              </table>\n            </div>\n          </fieldset>\n        </div>\n      <% } %>\n      <% if(changingSelfMessage) { %>\n        <div class="alert alert-block alert-warning change-role-alert">\n          <%= changingSelfMessage %>\n        </div>\n      <% } %>\n      <% if(invitationMessage) { %>\n        <div class="alert alert-block alert-info change-role-alert">\n          <%= invitationMessage %>\n        </div>\n      <% } %>\n    </div>\n    <div class="modal-footer">\n      <button class="btn" data-dismiss="modal" aria-hidden="true" id="modal_cancel_button">Cancel</button>\n      <button class="btn btn-primary" data-dismiss="modal" id="update_users_role_button">Update</button>\n    </div>\n  </div>')}
7.call(window),function(){this.JST||(this.JST={}),this.JST["users/_menu"]=_.template('<ol class="admin-subnav">\n    <h1>Users</h1>\n    <li class="adminTab<% if (action == \'users\') { %> selected<% } %>"><a href="#/admin/users">Users</a></li>\n    <li class="adminTab<% if (action == \'mailing_lists\') { %> selected<% } %>"><a href="#/admin/users/mailing_lists">Mailing Lists</a></li>\n    <li class="adminTab<% if (action == \'communication\') { %> selected<% } %>"><a href="#/admin/users/communication">Communication</a></li>\n  </ol>')}.call(window),function(){this.JST||(this.JST={}),this.JST["users/index"]=_.template('<%= JST[\'users/_menu\']({ action: \'users\' }) %>\n  <div id="users-list-content" class="admin-tab-content admin-flash-container flex-rows">\n    <div class="">\n      <input type="text" id="user_filter" class="pull-left wait-for-load" placeholder="Filter by name, email, or role" />\n      <div class="instructions pull-right wait-for-load">Listing everyone from your <%= Unite.meta(\'church_management_system\')%> account</div>\n    </div>\n  \n    <div id="users-list-container" class="flex-grow"></div>\n  \n    <div class="admin-actions">\n      <fieldset class="bulk-actions">\n        <legend>Actions for selected users</legend>\n        <button class="btn change-role-button">Change Role</button>\n        <button class="btn change-visibility-button" data-visibility="true">List</button>\n        <button class="btn change-visibility-button" data-visibility="false">Unlist</button>\n        <button class="btn invite-to-texting-button">Invite To Receive Texts</button>\n        <button class="btn delete-button">Delete</button>\n      </fieldset>\n  \n      <fieldset class="buttons float">\n        <button class="btn btn-success add-people-button wait-for-load">Add People</button>\n      </fieldset>\n    </div>\n  </div>')}.call(window),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty,n=[].slice;Unite.Admin.View=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.container="#admin_view",i.prototype.initialize=function(){var e;return i.__super__.initialize.apply(this,arguments),e=this.render,this.render=function(){return e.apply.apply(e,[this].concat(n.call(arguments))),this.afterRender(),this}},i.prototype.target=function(){return this.options.showInModal?$("#unite_admin_modal"):$("#admin_view")},i.prototype.show=function(){var e;return this.options.showInModal?($(".-unite-admin-modal").remove(),this.$el=$(this.renderModal()),this.$el.on("shown",(e=this,function(){return e.render(),e.delegateEvents()})),this.$el.modal()):($(Unite.admin.el).trigger("cleanup").unbind("cleanup"),this.render(),Unite.admin.show(),this.delegateEvents()),this},i.prototype.afterRender=function(){return $(".fa-lock[data-toggle='tooltip']").tooltip({delay:{show:500,hide:0},placement:"bottom"})},i.prototype.renderModal=function(){return'<div class="modal hide -unite-admin-view -unite-admin-modal" id="unite_admin_modal">\n  <div class="modal-header">\n    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>\n    <h3>Loading</h3>\n  </div>\n  <div class="modal-body" style="text-align: center;">\n    <i class="fa fa-spinner fa-spin" style="font-size: 200px; line-height: 300px; color: rgba(0,0,0,0.1);"></i>\n  </div>\n  <div class="modal-footer">\n    <a href="#" class="btn" data-dismiss="modal">Close</a>\n  </div>\n</div>'},i.prototype.paginate=function(e){var t,n;if(t={page_size:10,selector:".pagination"},!(e=_.extend(t,e)).onPage)throw"options.onPage is required";return(n=new Lail.PaginatedList([],{page_size:e.page_size,always_show:!1})).renderPaginationIn(e.selector),n.onPageChange(function(){return e.onPage(n.getCurrentSet())}),n},i.prototype.confirmDeleteDialog=function(e){var t,n;if(!e.html)throw"html is a required argument";if(!e.title)throw"title is a requred argument";if(!e.callback)throw"callback is a required argument";return t='<div class="modal hide" tabindex="-1" role="dialog" aria-labelledby="modal_label" aria-hidden="true">\n  <div class="modal-header">\n    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\xd7</button>\n    <h3 id="modal_label">'+e.title+'</h3>\n  </div>\n  <div class="modal-body">'+e.html+'</div>\n  <div class="modal-footer">\n    <button class="btn" data-dismiss="modal" aria-hidden="true" id="modal_cancel_button">Cancel</button>\n    <button class="btn btn-danger" data-dismiss="modal" id="modal_delete_button">Delete</button>\n  </div>\n</div>',n=this,$(t).modal().find("#modal_cancel_button").click(function(){if(e.cancel)return e.cancel.apply(n)}).end().find("#modal_delete_button").click(function(){return e.callback.apply(n)})},i.prototype.showChangeMessageAndReload=function(e,t,n){var i,o;return null==t&&(t=null),null==n&&(n={}),this.locationHash=t||window.location.hash,this.hard=n.hard||!1,o=this,i=function(){return window.location.hash=o.locationHash,o.hard&&window.location.reload(!0),$("body").off("iframe.updated",i)},$("body").on("iframe.updated",i),Unite.reloadInnerWindow(),this.show
7FlashMessage("success",e)},i.prototype.buildMailToLink=function(e){return window.top.location.href="mailto:"+e.join(",;")},i}(Backbone.View.extend(Unite.Helpers))}.call(this),Unite.AdminView=Backbone.View.extend({events:{"mouseenter li.adminTab":"hoverTab","mouseleave li.adminTab":"unhoverTab","click li.adminTab > a":"clickTab"},initialize:function(e){if(!Unite.admin){this.$el=$("#admin"),this.el=this.$el[0];var t=$.cookie("a");this.permissions={showPages:"1"==t[0],showPosts:"1"==t[1],showActivity:"1"==t[2],showUsers:"1"==t[3],showMailingLists:"1"==t[4],showThemes:"1"==t[5],showSettings:"1"==t[6],showComments:"1"==t[7],freeTier:"1"==t[8],optInEnabled:"1"==t[9],themeOutOfDate:"0"==$.cookie("t")},Unite.permissions=this.permissions,this.render(),this.router=new Unite.Admin.Router(this.permissions),this.options=e||{},this.$window=$(window),this.$html=$("html");var n=this;this.$window.resize(function(){n.$html.hasClass("admin-visible")&&n.resize()})}},resize:function(){this.$el.css({height:this.$window.height()+"px"})},implode:function(){this.hide(),$("#admin").remove(),$("body").removeClass("admin")},show:function(){this.resize(),this.$html.addClass("admin-visible"),$("#admin_view, #admin_overlay").addClass("in")},hide:function(){$("#admin_view, #admin_overlay").removeClass("in"),this.$html.removeClass("admin-visible"),this.$el.css({height:"42px"}),this.showHidden(),this.unselectCurrentTab(),window.location.hash=""},close:function(e){e&&(e.preventDefault(),e.stopPropagation()),window.location.hash=null,Unite.Admin.helpWidget&&Unite.Admin.helpWidget.updateViewName(),this.hide()},showHidden:function(){this.hiddenThings&&(this.hiddenThings.show(),this.hiddenThings=null)},render:function(){var e=HandlebarsTemplates.admin($.extend(this.permissions,{subdomain:Unite.meta("tenant")}));return $("#admin").append(e),this.selectCurrentTab(),$("#admin").delegate(".selectable","click",function(e){if($(e.target).is("tr, td")){var t=$(this).find(":checkbox.selector");t.attr("checked",!t.attr("checked"))}}),$("#admin").delegate(".selectable","hover",function(){$(this).toggleClass("hover")}),$(".fa-lock[data-toggle='tooltip']").tooltip({delay:{show:500,hide:0},placement:"bottom"}),this},hoverTab:function(e){e.stopPropagation(),$(e.currentTarget).addClass("hover")},unhoverTab:function(e){e.stopPropagation(),$(e.currentTarget).removeClass("hover")},clickTab:function(e){var t=$(e.target).closest("a");if(t.length)if(e.preventDefault(),e.stopPropagation(),t.parent().hasClass("selected"))if(0!=t.closest(".admin-subnav").length){var n=t.attr("href");if(n==window.location.hash)return;window.location.hash=n}else $("body").removeClass("admin-visible"),this.close();else{var i=t.attr("href"),o=i&&i.indexOf("#");(i=o<0?"#"+i:i.substring(o))&&(window.location.hash=i,this.selectCurrentTab())}},unselectCurrentTab:function(){$(".adminTab.selected").removeClass("selected")},selectCurrentTab:function(){var e=window.location.hash.substring(1).split("/")[2],t=e&&"#/admin/"+e,n=t&&$('a[href="'+t+'"]').closest(".adminTab");this.unselectCurrentTab(),n&&n.addClass("selected"),Unite.Admin.helpWidget&&Unite.Admin.helpWidget.updateViewName()}}),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;Unite.AssetView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.tagName="li",n.prototype.className="-unite-asset",n.prototype.events={"click a.-unite-delete-asset":"destroy"},n.prototype.initialize=function(){return this.$el.addHoverClassOnHover()},n.prototype.render=function(){return this.$el.html(Unite.template["assets/show"](this.model.toJSON()))},n.prototype.select=function(){return this.$el.addClass("selected")},n.prototype.deselect=function(){return this.$el.removeClass("selected")},n.prototype.destroy=function(e){var t,n;return e.preventDefault(),e.stopImmediatePropagation(),t=$(e.target).attr("href"),this.$el.addClass("deleting"),$.destroy(t).success((n=this,function(){var e;return n.$el.remove(),n.trigger("deleted"),e=n.$el.find(".asset-type").data("type"),$("body").trigger(e+".deleted",n.$el.find("img").attr("alt"))})).error(function(e){return function(){return Unite.debug("[AssetView] could not delete "+e.model.get("name")),e.$el.removeClass("deleting")}}(this))},n}(Backbone.View)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;Unite.Admin.CollectionView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(){return n.__super__.initialize.apply(this,arguments),this[this.id]=this.options.collection,this.collection=this.options.collection,this.bindCollection(this.collection),this.collectionSelected=!1,this.show()},n.prototype.show=function(){return n.__super__.show.apply(this,arguments),this.$el.delegate("."+this.model+"-row :checkbox","click",_.bind(this.toggleSelectionOf,this)),this.$el.delegate("."+this.model+"-row","click",_.bind(this.toggleRowCheckbox,this)),this.$el.delegate("#"+this.model+"-bulk-checkbox","click",_.bind(this.toggleAll,this)),this},n.prototype.toggleRowCheckbox=function(e){var t,n,i;if(!$(e.target).is(":checkbox"))return $(e.target).is("td")&&e.stopImmediatePropagation(),n=(t=$(e.target).closest("."+this.model+"-row").find(":checkbox.selector")).attr("data-"+this.model+"-id"),i=!t.is(":checked"),t.prop("checked",i),this.updateModel(n,i),this.setBulkCheckbox()},n.prototype.toggleSelectionOf=function(e){var t,n,i;return n=(t=$(e.target)).attr("data-"+this.model+"-id"),i=t.is(":checked"),this.updateModel(n,i),this.setBulkCheckbox()},n.prototype.updateModel=function(e,t){var n;if(e)return(n=this.collection.get(e))?(Unite.debug("["+this.id+"] "+this.model+"."+e+" checked: "+t),n.set({checked:t},{silent:!0})):Unite.debug("["+this.id+"] "+this.model+"."+e+" not found")},n.prototype.bindCollection=function(e){var t;return t=_.bind(this.show,this),e.bind("change",t),e.bind("remove",t),e.bind("add",t)},n.prototype.updateCollection=function(e,t,n){var i;return $.isFunction(e)&&(n=e,e=this.id,t=this.collection),i=_.bind(function(t,n){return this.handleCollectionError(e,t,n)},this),t.length?n():($("#"+e+"-list-container").html(JST._loading({nouns:e})),t.fetch({success:n,error:i}))},n.prototype.setBulkCheckbox=function(){return this.allSelected()?_($("#"+this.model+"-bulk-checkbox").prop("checked",!0).prop("indeterminate",!1)):this.noneSelected()?_($("#"+this.model+"-bulk-checkbox").prop("checked",!1).prop("indeterminate",!1)):_($("#"+this.model+"-bulk-checkbox").prop("indeterminate",!0))},n.prototype.setAllDomElements=function(e){return null!=$("#"+this.id+"-list")[0].config&&null!=$("#"+this.id+"-list")[0].config.rowsCopy?_($("#"+this.id+"-list")[0].config.rowsCopy).each(function(t){return t.find(":checkbox").prop("checked",e)}):_($("#"+this.id+"-list input").each(function(){return $(this).prop("checked",e)}))},n.prototype.toggleAll=function(e){return $("#"+this.model+"-bulk-checkbox").removeClass("indeterminate"),e.target.checked?this.selectAll():this.clearSelected()},n.prototype.selectAll=function(){return this.setAllDomElements(!0),this.collectionSelected=!0,this.collection.each((e=this,function(t){return e.updateModel(t.id,!0)}));var e},n.prototype.clearSelected=function(){var e;return this.setAllDomElements(!1),this.collectionSelected=!1,this.collection.each((e=this,function(t){return e.updateModel(t.id,!1)})),this.setBulkCheckbox()}
7,n.prototype.allSelected=function(){return this.getSelected().length===this.collection.length},n.prototype.noneSelected=function(){return 0===this.getSelected().length},n.prototype.getSelected=function(){return this.collection.select(function(e){return e.get("checked")})},n.prototype.doWithSelected=function(e){return _(this.getSelected()).each(e)},n.prototype.updateSelected=function(e){var t;return t=this,this.doWithSelected(function(n){return n.save(e,{silent:!0,wait:!0,patch:!0,success:_.bind(t.afterUpdate,t),error:_.bind(t.handleActiveModelError,t)})})},n.prototype.afterUpdate=function(){return this.collection.trigger("change")},n.prototype.makePublic=function(){if(this.updateSelected({public:!0}),this.getSelected().find(function(e){return"FeedPage"===e.constructor.name}))return this.showFlashMessage("notice","All public feeds have comment moderation turned on.")},n.prototype.makePrivate=function(){return this.updateSelected({public:!1})},n.prototype.publish=function(){return this.updateSelected({status:"published"})},n.prototype.unpublish=function(){return this.updateSelected({status:"draft"})},n.prototype.delete=function(){var e,t;return t=this,e='<div style="padding: 8px 16px;">\n  '+this.getSelected().length+" "+this.id+" will be deleted permanently.\n  <u>This action cannot be undone.</u>\n</div>",this.confirmDeleteDialog({html:e,title:"Confirm Delete",callback:function(){return t.doWithSelected(function(e){return e.destroy({wait:!0,success:function(){return t.collection.remove(e)},error:function(e,n){return new Unite.Admin.ErrorView({title:"Could not delete "+t.id,message:Unite.formatErrorResponse(n.responseText)})}})})}})},n.prototype.describeCollectionOfPeople=function(e){switch(!1){case 0!==e.length:return null;case 1!==e.length:return"<b>"+e[0].get("first_name")+" "+e[0].get("last_name")+"</b>";case 2!==e.length:return"<b>"+e[0].get("first_name")+" "+e[0].get("last_name")+"</b> and <b>"+e[1].get("first_name")+" "+e[1].get("last_name")+"</b>";default:return"<b>"+e[0].get("first_name")+" "+e[0].get("last_name")+"</b> and "+(e.length-1)+" others"}},n.prototype.getIdsFor=function(e){return _.map(e,function(e){return e.id})},n.prototype.getUserIdsFor=function(e){return _.map(e,function(e){return e.get("user_id")})},n}(Unite.Admin.View)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;this.CommentsView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.className="has-sidebar",n.prototype.id="comments",n.prototype.model="comment",n.prototype.events={"click .approve-button":"approve","click .delete-button":"delete"},n.prototype.showComments=function(){return $("#comments-list-container").html(JST["comments/_list"]({comments:this.comments.unapproved()})),$("#comments-list").tablesorter({sortList:[[4,0]],headers:{0:{sorter:!1}}})},n.prototype.render=function(){return $(this.el).html(JST["comments/index"]()),$("#admin_view").html(this.el),this.updateCollection(_.bind(this.showComments,this)),this},n.prototype.approve=function(){return this.updateSelected({status:"approved"})},n.prototype.afterUpdate=function(){return this.collection.each(function(e,t,n){if(e&&"approved"===e.get("status"))return n.remove(e)}),Unite.Admin.CollectionView.prototype.afterUpdate.call(this)},n}(Unite.Admin.CollectionView)}.call(this),function(){this.EmailSelectedPeopleView=function(){function e(e,t){if(this.selectedPeople=e,this.view=t,this.info=this.selectedPeopleInfo(),this.recipients.length===this.selectedPeople.length)return this.sendEmail();this.showModal()}return e.prototype.selectedPeopleInfo=function(){var e,t;return t=[],e=[],this.selectedPeople.length,_.each(this.selectedPeople,function(n){return _.isEmpty(n.get("email"))?e.push(n):t.push(n)}),this.recipients=t,{validRecipients:this.recipients.length>0,noEmailMessage:e.length?this.view.describeCollectionOfPeople(e)+" "+(1===e.length?"does":"do")+" not have an email address and will not be included in the email":void 0,invitationMessage:t.length?this.view.describeCollectionOfPeople(t)+" will be receive your email":void 0}},e.prototype.showModal=function(){var e,t;return(e=$(HandlebarsTemplates["communication/modals/email_notification_modal"]({info:this.info}))).on("hidden",function(){return e.remove()}),e.on("shown",(t=this,function(){return e.find("#send_email").click(function(){return t.sendEmail()})})),e.modal()},e.prototype.sendEmail=function(){var e,t;return e=this.view.getUserIdsFor(this.recipients),$.post("/admin/communication/send_email",{user_ids:e},(t=this,function(e){return t.view.showFlashMessage("notice","Opening your email client..."),t.view.buildMailToLink(e.mail_to),t.view.clearSelected(),t.view.resetPaginator()}
7))},e}()}.call(this),function(){this.TextSelectedPeopleView=function(){function e(e,t){this.selectedPeople=e,this.view=t,this.info=this.selectedPeopleInfo(),this.showModal()}return e.prototype.maxTextLength=160,e.prototype.selectedPeopleInfo=function(){var e,t;return t=[],e=[],this.selectedPeople.length,_.each(this.selectedPeople,function(n){return _.isEmpty(n.get("number"))?e.push(n):t.push(n)}),this.recipients=t,{validRecipients:this.recipients.length>0,noNumberMessage:e.length?this.view.describeCollectionOfPeople(e)+" "+(1===e.length?"does":"do")+" not have an opted-in number and will not be included in the message":void 0,invitationMessage:t.length?this.view.describeCollectionOfPeople(t)+" will receive your text":void 0}},e.prototype.showModal=function(){var e,t;return(e=$(HandlebarsTemplates["communication/modals/text_notification_modal"]({info:this.info,maxTextLength:this.maxTextLength}))).on("hidden",function(){return e.remove()}),e.on("shown",(t=this,function(){return e.find("#text_message").on("keyup",function(n){var i,o;if(!((i=n.target.value).length>t.max_text_length))return o=t.maxTextLength-n.target.value.length,$("#text_message_characters_remaining").html(o).toggleClass("limited",o<50).toggleClass("exhausted",0===o),e.find("#send_text").prop("disabled",0===i.trim().length)}),e.find("#message_template").on("change",function(t){var n;return""===(n=$(t.target).val())?(e.find("#text_message").prop({disabled:!0,placeholder:""}),e.find("#send_text").prop("disabled",!0)):e.find("#text_message").prop({disabled:!1,placeholder:n})}),e.find("#send_text").click(function(){var n;return n=e.find("#text_message").val(),t.sendText(n)})})),e.modal()},e.prototype.sendText=function(e){var t,n;return t=this.view.getIdsFor(this.recipients),$.post("/admin/communication/send_text",{people_ids:t,message:e},(n=this,function(e){return n.view.showFlashMessage("success",e.message),n.view.clearSelected(),n.view.resetPaginator()}))},e}()}.call(this),Unite.Admin.EditView=Unite.Admin.View.extend({updateOrCreate:function(e,t){var n=this;e.save(t,{success:function(e){n.action.match(/^new/)&&Unite.admin.router.navigate(e.url(),!0),n.afterSave()},error:_.bind(n.handleActiveModelError,n)})},afterSave:function(){this.showFlashMessage("success","Changes Saved")},showActiveModelErrors:function(e){Unite.Admin.View.prototype.showActiveModelErrors.call(this,e)},slugPath:function(){return this.root_url()},activateEditSlug:function(){$(".slug-text-field").keydown(Unite.allowOnlySlugCharacters())}}),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;Unite.Admin.ErrorView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(){var e;return this.message=this.options.message,this.title=null!=(e=this.options.title)?e:"Error",this.render()},n.prototype.render=function(){return $('<div id="myModal" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">\n  <div class="modal-header">\n    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\xd7</button>\n    <h3 id="myModalLabel">'+this.title+'</h3>\n  </div>\n  <div class="modal-body">'+this.message+'</div>\n  <div class="modal-footer">\n    <button class="btn" data-dismiss="modal" aria-hidden="true" id="modal_cancel_button">OK</button>\n  </div>\n</div>').modal()},n}(Backbone.View)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;this.LoggerView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.id="loggers",n.prototype.model="logger",n.prototype.events={"submit #logger_search_form":"search","click .toggle-children":"toggleShowingChildren"},n.prototype.initialize=function(){var e;return this.fetchLoggerCollection().done((e=this,function(t){return e.entries=e.collection.models,e.membersRequest()&&
7(e.entries=t.audits),e.showLoggerEntries()})).fail(function(e){return function(){var t;return t=e.membersRequest()?"Event Log":"Email Log",e.$el.find("#events-list-content").html(Unite.template["errors/unavailable"]({page:t}))}}(this)),n.__super__.initialize.apply(this,arguments),this.$el.undelegate("."+this.model+"-row","click")},n.prototype.fetchLoggerCollection=function(e){return null==e&&(e={}),this.membersRequest()?Members.get(this.collection.url,e):this.collection.fetch({remove:!1,data:e})},n.prototype.render=function(){return $(this.el).html(JST[this.collection.templatePath+"/index"]()),$("#admin_view").html(this.el),this},n.prototype.showLoggerEntries=function(){return window.lastEmailLogDate=null,window.lastEventLogDate=null,$("#"+this.collection.collectionType+"-list-container").html(JST[this.collection.templatePath+"/_list"]({loggerEntries:this.entries})),this.setLoggerListHeight(),this.enableInfiniteScroll(),$(".event-from").tooltip(),$(".status-tooltip").tooltip()},n.prototype.search=function(e){var t,n;return e.preventDefault(),t=$("#logger_search").val(),this.fetchLoggerCollection({term:t}).done((n=this,function(e){return n.entries=n.collection.models,n.membersRequest()&&(n.entries=e.audits),n.showLoggerEntries()}))},n.prototype.enableInfiniteScroll=function(){return new Unite.Admin.InfiniteScroll({$el:$("#logger_list"),items:"audits",load:(e=this,function(t){var n;return n=t.find(".logger-row:last").attr("data-timestamp"),Unite.debug("[event_log] loading audits after "+n),e.fetchLoggerCollection({timestamp:n})}),success:function(e){return function(t){var n;return e.membersRequest()&&(n=_.map(t,function(t){return JST[e.collection.templatePath+"/_item"]({entry:t})}).join("")),null==n&&(n=_.map(e.collection.models,function(t){return JST[e.collection.templatePath+"/_item"]({entry:t})}).join("")),$("#logger_list").append(n),$(".event-from").tooltip()}}(this)});var e},n.prototype.setLoggerListHeight=function(){var e,t;return t=(e=$("#logger_list")).closest(".timeline").height(),e.css("maxHeight",t)},n.prototype.toggleShowingChildren=function(e){var t,n;return n=$(e.target).closest(".toggle-children").data("parent-id"),t=$(".child-event[data-parent-event-id="+n+"]"),$(e.target).closest(".timeline-event-status").toggleClass("closed").toggleClass("opened"),t.toggleClass("no-show")},n.prototype.membersRequest=function(){return"events"===this.collection.collectionType},n}(Unite.Admin.CollectionView)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;this.BaseMailingListsView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model="mailing_list",n.prototype.className="has-sidebar",n.prototype.events={"click .submit-button":"create","click .email-button":"emailSelected"},n.prototype.initialize=function(){var e;return this.mailingLists=window.mailingLists=new MailingLists,this.mailingLists.fetch().success((e=this,function(t){return e.addSelected(t,"mailing_lists")})),(new Groups).fetch().success(function(e){return function(t){return e.addSelected(t,"groups")}}(this)),(new Users).fetch().success(function(e){return function(t){return e.addSelected(t,"users")}}(this)),this.mailingListsView=new MailingListsView({collection:this.mailingLists}),this.show()},n.prototype.render=function(){return $(this.el).html(JST["mailing_lists/mailing_lists"]()),$("#admin_view").html(this.el),$("#mailing_lists_collection_view").appendView(this.mailingListsView),this},n.prototype.create=function(e){var t,n,i,o;if(e.preventDefault(),n=new MailingList,""!==(i=(t=$("#new_mailing_list_form")).serializeObject()).title)return n.save(i,{success:(o=this,function(e,n){var i,s;return o.mailingLists.add(n),t.reset(),(s=(i=$("#mailing_list_"+n.id)).offset())&&(o.$el.find(".scrollable").scrollTop(s.top),i.highlight(1e3)),o.addMailingListToSelectOptions(n)}),error:_.bind(this.handleActiveModelError,this)});this.showFlashMessage("error",I18n.t("mailing_list.blank_title_error"))},
8n.prototype.emailSelected=function(){var e,t;if(e=this.getSelectedHashKeys(),!_.isEmpty(e))return $.put("/admin/mailing_lists/email",{hash_keys:e}).success((t=this,function(e){return t.showFlashMessage("info","Opening your email client..."),t.buildMailToLink(e.mailTo)}
8)).error(function(){return this.showFlashMessage("error","Something went wrong.")});this.showFlashMessage("error",I18n.t("mailing_list.empty_error"))},n.prototype.deleteSelected=function(){var e;if(!_.isEmpty(this.getSelected()))return e=this,this.confirmDeleteDialog({html:"These mailing lists will be deleted permanently.",title:"Are you sure you want to delete these mailing lists?",callback:function(){return e.doWithSelected(function(t){return t.destroy({wait:!0,success:function(){return e.mailingLists.remove(t),e.removeMailingListFromSelectOptions(t)},error:function(t,n){return new Unite.Admin.ErrorView({title:"Could not delete "+e.id,message:Unite.formatErrorResponse(n.responseText)})}})})}});this.showFlashMessage("error",I18n.t("mailing_list.none_selected_for_delete"))},n.prototype.doWithSelected=function(e){return _(this.getSelected()).each(e)},n.prototype.getSelected=function(){return _.filter(this.mailingLists.models,function(e){return!0===e.attributes.checked})},n.prototype.getSelectedIds=function(){return _.map(this.getSelected(),function(e){return e.id})},n.prototype.getSelectedHashKeys=function(){return _.map(this.getSelected(),function(e){return e.get("hash_key")})},n.prototype.addSelected=function(e,t){return e=_.reject(e,function(e){return!e.id}),_.each(e,function(e){return e.type=t}),window[t]=e,window.unselected||(window.unselected=[]),window.unselected.push(e),window.unselected=_.flatten(window.unselected)},n.prototype.addMailingListToSelectOptions=function(e){return e.type="mailing_lists",window.mailing_lists.push(e)},n.prototype.removeMailingListFromSelectOptions=function(e){return window.mailing_lists=_.reject(window.mailing_lists,function(t){return t.id===e.id})},n}(Unite.Admin.View)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty,n=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};this.MailingListView=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.initialize=function(){return this.maxShown=2,this.maxOfEachRelation=2,this.mailingListTypes=["users","groups","mailing_lists"],this.figureNotDisplayed(),this.$el.on("change",_.bind(this.updateSelections,this)),i.__super__.initialize.apply(this,arguments)},i.prototype.events={"click .mailing-list-select-checkbox":"selectMailingList","click .save-mailing-list":"save","click .cancel-mailing-list":"cancel","click .offer-delete-command":"showDeleteOption","click .cancel-command":"hideDeleteOption"},i.prototype.render=function(){var e;return(e=this.model.attributes).checked||(e.checked=this.model.checked||!1),i.__super__.render.apply(this,arguments)},i.prototype.selectMailingList=function(){return this.model.attributes.checked=!this.model.attributes.checked,!0},i.prototype.figureNotDisplayed=function(){var e,t,n,i,o;return t=0,i=[],e=this.model.attributes,n=e.listed=$.extend(!0,{},_.omit(e,"listed","unselectedOptions")),_.each(this.mailingListTypes,(o=this,function(e){var s,a,r,l,c,u,d;for(d=(s=n[e]).splice(o.maxOfEachRelation,s.length),r=0,l=(u=s.length).length;r<l;r++)a=u[r],++t===o.maxShown&&(c=s.splice(a-1,s.length),d.unshift(c));return i.push(d)})),n.more=_.flatten(i)},i.prototype.edit=function(){if(this.model.attributes.id)return this.model.attributes.unselectedOptions=this.removeExistingSelections(),i.__super__.edit.apply(this,arguments),$(".chosen-select").chosen({inherit_select_classes:!0,display_selected_options:!1})},i.prototype.removeExistingSelections=function(){var e,t,i;return t=[],e={},_.each(this.mailingListTypes,(i=this,function(o){var s;return e=_.map(i.model.attributes[o],function(e){return e.id}),"mailing_lists"===o&&e.push(i.model.id),s="users"===o?"user_id":"id",t.push(_.reject(window[o],function(t){var i;return i=t[s],n.call(e,i)>=0})),t=_.map(t,function(e){return _.sortBy(e,function(e){return e.name||e.title})})})),_.flatten(t)},i.prototype.save=function(e){var t,n,i;return null!=e&&e.preventDefault(),n=$(this.el).find("form").serializeObject(),t=$.extend(this.model.attributes,n),this.mapNe
8wUserIds(this.model.get("users")),this.model.save(t,{wait:!0,success:(i=this,function(e){return Unite.Helpers.showFlashMessage("success",e.attributes.title+" was saved successfully!"),i.updateStatus(),i.cancelEdit()}),error:function(e){return function(t,n){var i;if(i=JSON.parse(n.responseText),Unite.Helpers.showActiveModelErrors(i.errors),!_.isEmpty(i.cyclical_mailing_list))return e.hightlightRecipient(i.cyclical_mailing_list,"mailing_lists","error")}}(this)})},i.prototype.mapNewUserIds=function(e){var t;return t=_.select(e,function(e){return _.has(e,"user_id")}),_.each(t,function(e){return e.id=e.user_id})},i.prototype.cancel=function(e){var t;return null!=e&&e.preventDefault(),_.each(this.mailingListTypes,(t=this,function(e){if(t.model.attributes[e]=_.reject(t.model.attributes[e],function(e){return e.unsaved}),!_.isEmpty(t.model.attributes["deleted-"+e]))return t.model.attributes[e]=t.model.attributes[e].concat(t.model.attributes["deleted-"+e])})),this.updateStatus(),this.figureNotDisplayed(),this.cancelEdit()},i.prototype.updateSelections=function(e,t){var n;if(null!=t)return n=this.model.attributes,t.hasOwnProperty("deselected")?this.removeSelection(n,t):this.addSelection(n,t),this.figureNotDisplayed()},i.prototype.updateStatus=function(){return _.each(this.mailingListTypes,(e=this,function(t){return e.model.attributes[t]=_.map(e.model.attributes[t],function(e){return e.unsaved=!1,e}),e.model.attributes["deleted-"+t]=[]}));var e},i.prototype.removeSelection=function(e,t){var n,i,o,s,a;if(a=(s=t.id.split("-"))[0],n=s[1],(o=_.findWhere(e[a],{name:t.deselected,id:+n}))||(o=_.findWhere(e[a],{title:t.deselected,id:+n})),e[a]=_.without(e[a],o),!o.unsaved)return e[i="deleted-"+a]||(e[i]=[]),e["deleted-"+a].push(o)},i.prototype.addSelection=function(e,t){var n,i,o,s;if(s=(o=t.id.split("-"))[0],n=o[1],(i=_.findWhere(window[s],{name:t.selected,id:+n}))||(i=_.findWhere(window[s],{title:t.selected,id:+n})),i.unsaved=!0,null!=i)return e[s].push(_.pick(i,"id","user_id","name","title","type","unsaved","deleted-"+s))},i.prototype.hightlightRecipient=function(e,t,n){return this.$el.find("."+t+"."+e).addClass(n)},i.prototype.confirmDelete=function(){return!0},i.prototype.showDeleteOption=function(e){var t;return(t=$(e.target)).hide(),t.closest(".mailing_list").addClass("delete-mode"),t.next().show()},i.prototype.hideDeleteOption=function(e){var t;return(t=$(e.target).closest(".commands")).hide(),t.closest(".mailing_list").removeClass("delete-mode"),t.prev().show()},i}(Neat.ModelEditor),this.MailingListsView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.resource="mailing_lists",n.prototype.pageSize=Infinity,n.prototype.keyDownHandlers={ESC:function(){var e;return null!=(e=this.viewInEdit)?e.cancel():void 0},RETURN:function(){var e;if(event.shiftKey)return null!=(e=this.viewInEdit)?e.save():void 0},UP:function(){return!0},DOWN:function(){return!0}},n}(Neat.CollectionEditor)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;window.NavigationView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.id="pages",n.prototype.model="page",n.prototype.events={"click #submit_button":"save","click #add_category":"addCategory","click #add_page":"addPage","keydown input.rename-menu-item":"onKeyDuringRename","dblclick .menu-item":"onClickToRename","click .menu-item":"toggleSelectedStyle","click .page-link a":"changesMadeAlert","click .submit-button":"disableDirtyCheck","click .bulk-action":"bulkAction"},n.prototype.initialize=function(){return this.documents=this.options.documents,this.menuItems=this.options.menuItems,this.templates=this.options.templates,this.collection=this.pages=this.documents,this.pages.bind("change",_.bind(this.rerenderPages,this)),this.pages.bind("remove",_.bind(this.removePages,this)),$("body").delegate("input.rename-menu-item","blur",_.bind(this.commitRename,this)),$("body #admin_navigation").on("click","a",_.bind(this.changesMadeAlert,this)),this.renderSelf=Unite.template.navigation,this.renderNavigationTree=Unite.template["navigation/tree"],this.renderMenuItem=Unite.template["navigation/menu_item"],this.renderDocument=Unite.template["navigation/document"],Handlebars.registerPartial("navigation.menuItem",this.renderMenuItem),Handlebars.registerPartial("navigation.document",this.renderDocument),this.dirty=!1,this.show()},n.prototype.render=function(){var e;return $(this.el).html(this.renderSelf()),$("#admin_view").html(this.el),$.ajax("/admin/navigation.json").success((e=this,function(t){return e.menuItems=t,e.onMenuItemsLoaded()})).error(function(e){return function(){return e.showFlashMessage("error",I18n.t("admin.navigation.load_error"))}}(this)),this.updateCollection("page",this.pages,_.bind(this.onPagesLoaded,this)),$(".sitemap-list").delegate(".menu-item-label","hover",function(){return $(this).toggleClass("hover")}),_.each($("#add_actions").find("a"),function(e){return $(e).tooltip()}),this},n.prototype.rerenderPages=function(){return this.pages.each((e=this,function(t){var n;return n=$("#document_"+t.get("id")),t=t.toJSON(),n.hasClass("selected")&&(t.selected=!0),n.replaceWith(e.renderDocument(t))}));var e},n.prototype.removePages=function(e){return $("#document_"+e.get("id")).closest(".menu-item").remove()},n.prototype.onMenuItemsLoaded=function(){return this.menuItemsLoaded=!0,this.showMenuItemsAndDocuments()},n.prototype.onPagesLoaded=function(){return this.documentsLoaded=!0,this.showMenuItemsAndDocuments()},n.prototype.showMenuItemsAndDocuments=function(){if(this.menuItemsLoaded&&this.documentsLoaded)return this.linkMenuItemsToDocuments(this.menuItems),$("#menu_items_container").html(this.renderNavigationTree({menuItems:this.menuItems})),$("#documents_container").html('<ol id="unsorted" class="unsorted"></ol>'),this.$unsorted=$("#unsorted"),this.pages.select(function(e){return!e.menuItem}).reverse().each(_.bind(this.addDocument,this)),this.setupNavigation(),$("#submit_button").attr("disabled",!1)},n.prototype.linkMenuItemsToDocuments=function(e){return e.each((t=this,function(e){var n;return null==(n=t.pages.get(e.documentId))&&(n=t.pages.get(e.groupId)),n?(n.menuItem=e,e.page=n.toJSON()):e.page={type:"Category",title:e.title,public:!0},t.linkMenuItemsToDocuments(e.children)}));var t},n.prototype.addDocument=function(e){return $('<li class="menu-item no-nest menu-item-document page-row" id="menu_item_0">\n  '+this.renderDocument(e.toJSON())+"\n</li>").prependTo(this.$unsorted)},n.prototype.setupNavigation=function(){var e;return $("ol#menu-items").nestedSortable({connectWith:"ol#unsorted",handle:".menu-item-label",items:"li",maxLevels:2,disableNestingClass:"no-nest",placeholder:"placeholder",forcePlaceholderSize:!0,errorClass:"placeholder-error",tabSize:30,revert:200,isTree:!0,update:(e=this,function(){return e.dirty=!0}),start:function(e,t){if(t.item.hasClass("menu-item-category"))return $("#items_outside_navigation .sitemap-list").addClass("delete-category")},stop:function(){return $(".sitemap-list").removeClass("delete-category")}}),$("ol#unsorted").nestedSortable({connectWith:"ol#menu-items",handle:".menu-item-label",items:"li",maxLevels:1,disableNestingClass:"no-nest",placeholder:"placeholder",forcePlaceholderSize:!0,errorClass:"placeholder-error",tabSize:30,revert:200,isTree:!0,receive:function(e,t){var n;if((n=t.item).hasClass("menu-item-category"))return n.fadeOut(500)}})},n.prototype.save=function(e){var t,n,i;if((e.preventDefault(),e.stopPropagation(),this.menuItemsLoaded&&this.documentsLoaded)&&(this.commitRename(),0===(t={menuItems:this.serializeNavigation(),documents:this.serializeDocuments()}).menuItems.length&&(t.menuItems=""),n="/admin/navigation",!this.menuItemBeingRenamed))return $("#submit_button").attr("disabled",!0),$.put(n,t).success((i=this,function(e){return i.updateMenuItemIds(e.new_menu_items),i.updateSlugs(e.slug_changes),i.showSaveNotice(),Unite.reloadInnerWindow(),i.dirty=!1})).error(function(e){return function(t){var n;return(n=Unite.parseJSON(t.responseText))?($("#document_"+n.id).highlight(),e.showActiveModelErrors(e.formatActiveModelErrors(n.errors))):e.showFlashMessage("error",I18n.t("admin.navigation.save_error"))}}(this)).always(function(){return $("#submit_button").attr("disabled",!1)})},n.prototype.serializeNavigation=function(){return this.serializeMenuItemsIn($("ol#menu-items"))},n.prototype.serializeDocuments=function(){return this.serializeMenuItemsIn($("#unsorted"))},n.prototype.serializeMenuItemsIn=function(e){var t;return e.children("li").map((t=this,function(e,n){var i,o,s;return i=(o=$(n)).find(".menu-item-label:first"),s=o.find(".menu-item-title:first"),{id:o.attr("id").match(/(.+)[-=_](.+)/)[2],type:t.itemType(o),title:s.text().replace(/^\s+|\s+$/g,""),documentId:i.attr("data-document-id"),children:t.serializeMenuItemsIn(o.children("ol:first"))}})).get()},n.prototype.itemType=function(e){return e.is(".menu-item-category")?"CategoryMenuItem":e.find("label").is(".type-Group")?"GroupMenuItem":"DocumentMenuItem"},n.prototype.updateMenuItemIds=function(e){return _.each(e,function(e){return $("#document_"+e.document_id).parent("li").attr("id","menu_item_"+e.id)})},n.prototype.updateSlugs=function(e){return _.each(e,function(e,t){var n;if(n=$("#document_"+t).find(".page-link a"),e)return n.prop("href","/"+e).html("/"+e)})},n.prototype.addCategory=function(){return this.commitRename((e=this,function(){var t;return t=$(e.renderMenuItem({document_type:"Category",id:0,documentId:0,page:{type:"Category",public:!0},title:"New Category"})),$("ol#menu-items").append(t),e.beginRename(t,{validate:function(t,n){return $.get("/admin/categories/check_name",{title:t}).success(function(){return n.success()}).error(function(t){var i,o;return o=Unite.parseJSON(t.responseText),i=_.values(e.formatActiveModelErrors(o)),n.error(i)})}}),e.scrollToBottom()}));var e},n.prototype.addPage=function(){return this.commitRename((e=this,function(){var t;return(t=new PickTemplateView({templates:e.templates})).onPicked(function(t){return e.createPageFromTemplate(t)}
8),t.show()}));var e},n.prototype.createPageFromTemplate=function(e){var t,n,i;return n=e.document.clone(),Unite.debug("[new-page] creating "+e.title),this.pages.add(n),t=this.addDocument(n),this.beginRename(t,{validate:(i=this,function(e,o){return n.set("title",e),n.save().success(function(){return t.html(i.renderDocument(n.toJSON())),o.success()}).error(function(e){var t,n;return n=Unite.parseJSON(e.responseText),t=_.values(i.formatActiveModelErrors(n.errors)),o.error(t)})})})},n.prototype.bulkAction=function(e){var t,n,i;if(i=this.getSelected(),n=_.any(i,function(e){return"Group"===e.get("type")}),t=_.without(e.target.classList,"btn","bulk-action").first(),n&&"delete-button"!==t)this.showFlashMessage("error",I18n.t("admin.navigation.group_bulk_action_error"));else switch(t){case"publish-button":return this.publish(e);case"draft-button":return this.unpublish(e);case"delete-button":return this.delete(e);case"public-button":return this.makePublic(e);case"private-button":return this.makePrivate(e);case"duplicate-button":return this.duplicate(e)}},n.prototype.onClickToRename=function(e){return this.menuItemBeingRenamed?(this.commitRename(),this.menuItemBeingRenamed?void 0:this.beginRename($(e.target).closest(".menu-item"))):this.beginRename($(e.target).closest(".menu-item"))},n.prototype.beginRename=function(e,t){var n;return this.cancelRename(),this.menuItemBeingRenamed=e,this.renameOptions=t,n=e.find(".menu-item-title:first"),this.originalText=n.text().replace(/^\s+|\s+$/g,""),$('<input type="text" class="rename-menu-item" />').attr("value",this.originalText).appendTo(n.empty()).select().focus()},n.prototype.cancelRename=function(e){return this.endRenameWith(this.originalText,e)},n.prototype.commitRename=function(e){if(!$("input.rename-menu-item").prop("disabled"))return this.endRenameWith($("input.rename-menu-item").val(),e)},n.prototype.endRenameWith=function(e,t){var n,i;return this.menuItemBeingRenamed?($("input.rename-menu-item").prop("disabled",!0),((null!=(n=this.renameOptions)?n.validate:void 0)||this.validateRename)(e,{success:(i=this,function(){var n;if(i.menuItemBeingRenamed&&(n=i.menuItemBeingRenamed.find(".menu-item-title:first"),i.menuItemBeingRenamed=null,n.html(e),_.isFunction(t)))return t()}),error:function(e){return function(t){return e.menuItemBeingRenamed&&e.showErrorsWithRename(t),$("input.rename-menu-item").prop("disabled",!1)}}(this)})):(_.isFunction(t)&&t(),!0)},n.prototype.onKeyDuringRename=function(e){switch(e.keyCode){case 27:return this.cancelRename();case 13:return this.commitRename()}},n.prototype.validateRename=function(e,t){return""===e?t.error(["Name cannot be blank"]):t.success()},n.prototype.showErrorsWithRename=function(e){var t,n;return t=this.menuItemBeingRenamed.find("input.rename-menu-item"),n=$("#unsorted li").index(this.menuItemBeingRenamed),t.attr("title",e.join()).data("placement",n<3?"bottom":"top").tooltip("show"),setTimeout(function(){return t.tooltip("hide").tooltip("destroy")},2e3),t.select().focus()},n.prototype.scrollToBottom=function(){return this.$el.find("#menu_items_container").scrollTop(this.$el.find("#menu_items_container > ol").height())},n.prototype.changesMadeAlert=function(e){var t,n,i,o,s;if(this.dirty)return e.preventDefault(),e.stopPropagation(),o=HandlebarsTemplates["assets/changes_made"],(t=$(o())).modal(),n=$(e.target)[0],i=e,t.on("click","#continue",(s=this,function(e){return e.preventDefault(),s.disableDirtyCheck(),t.modal("hide"),n.href===window.location.hash?Unite.admin.clickTab(i):n.hash?(Unite.admin.router.navigate(n.hash,{trigger:!0,replace:!0}),Unite.admin.clickTab(i)):document.location=n.href}))},n.prototype.disableDirtyCheck=function(){return $("body #admin_navigation").off("click","a")},n.prototype.toggleSelectedStyle=function(e){var t,n;return e.stopImmediatePropagation(),"A"!==e.target.nodeName&&e.preventDefault(),(t=(n=$(e.target).closest(".menu-item-label")).find('input[type="checkbox"]')).attr("checked","checked"),e.shiftKey||(this.$el.find(":checkbox:checked:not(#"+t.attr("id")+")").removeAttr("checked"),this.$el.find(".menu-item-label.selected").removeClass("selected")),n.toggleClass("selected",t.is(":checked"))},n.prototype.getSelected=function(e){var t,n,i;return null==e&&(e=void 0),_.compact(function(){var o,s,a,r;for(r=[],o=0,s=(a=this.$el.find(":checkbox:checked")).length;o<s;o++)t=a[o],n=$(t).attr("data-page-id"),i=this.pages.get(n),e?r.push(i.get("type")===e&&i):r.push(i);return r}.call(this))},n.prototype.delete=function(){var e,t,n,i,o,s,a;return n=this.getSelected(),i=_.select(n,function(e){return"FeedPage"===e.get("type")&&e.get("post_count")>0}),s=_.select(n,function(e){var t;return"MembersPage"===(t=e.get("type"))||"CalendarPage"===t}),o=_.select(n,function(e){return"Group"===e.get("type")}),(e=n.length-s.length)>0&&(t='<div style="padding: 8px 16px;">\n  '+e+" "+(1===e?"page":"pages")+" will be deleted permanently, along with any unused assets.\n  
8<u>This action cannot be undone.</u>\n</div>"),i.length>0&&(t+='<div class="alert alert-block alert-error change-role-alert">\n  Deleting '+this.describeCollectionOfPages(i)+" will also delete all posts on those feeds.\n</div>"),o.length>0&&(t+='<div class="alert alert-block alert-error change-role-alert">\n  Deleting '+this.describeCollectionOfPages(o)+" will also delete all discussion and events on those groups.\n</div>"),s.length>0&&(t+='<div class="alert alert-block alert-info change-role-alert">\n  '+this.describeCollectionOfPages(s)+" "+(1===s.length?"is":"are")+" required by Unite and will not be deleted.\n</div>"),a=this,this.confirmDeleteDialog({title:"Confirm Delete",html:t,callback:function(){return a.doWithSelected(function(e){return e.destroy({wait:!0,success:function(){return a.collection.remove(e)},error:function(e,t){var n;if("MembersPage"!==(n=e.get("type"))&&"CalendarPage"!==n&&"FeedPage"!==n)return new Unite.Admin.ErrorView({title:"Could not delete "+a.id,message:Unite.formatErrorResponse(t.responseText)})}})})}})},n.prototype.describeCollectionOfPages=function(e){switch(!1){case 0!==e.length:return null;case 1!==e.length:return"<b>"+e[0].get("title")+"</b>";case 2!==e.length:return"<b>"+e[0].get("title")+"</b> and <b>"+e[1].get("title")+"</b>";default:return"<b>"+e[0].get("title")+"</b> and "+(e.length-1)+" other pages"}},n.prototype.duplicate=function(){var e,t;return e=this.getSelected("StaticPage"),Unite.debug("[duplicate-pages] creating from "+_.map(e,function(e){return e.get("title")}).join(" & ")),e.each((t=this,function(e){return e.duplicate().success(function(e){return e=new StaticPage(e),t.pages.add(e),t.addDocument(e)}).error(function(e){var n;return n=Unite.parseJSON(e.responseText),t.showActiveModelErrors(_.values(t.formatActiveModelErrors(n.errors)))})}))},n}(Unite.Admin.CollectionView)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;window.PickTemplateView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.events={"click .-unite-page-template:not(.disabled)":"selectTemplate","dblclick .-unite-page-template:not(.disabled)":"createPage","click .submit-button":"createPage"},n.prototype.initialize=function(){var e,t,n;for(this.observer=new Observer,this.options.showInModal=!0,this.templates=this.options.templates,e=t=0,n=this.templates.length;0<=n?t<n:t>n;e=0<=n?++t:--t)this.templates[e].index=e;return this.selectedTemplateIndex=0},n.prototype.render=function(){return this.$el.html(Unite.template.browse({templates:this.templates})),this.$el.find(".-unite-page-template[data-index="+this.selectedTemplateIndex+"]").addClass("selected"),this.showTemplateDescription(),this},n.prototype.onPicked=function(e){return this.observer.observe("pick",e)},n.prototype.selectTemplate=function(e){var t,n;if($("#restricted_message").hide(),n=+(t=$(e.target).closest(".-unite-page-template")).attr("data-index"),this.selectedTemplateIndex!==n)return this.selectedTemplateIndex=n,$(".-unite-page-template.selected").removeClass("selected"),t.addClass("selected"),this.showTemplateDescription()},n.prototype.showTemplateDescription=function(){var e;return e=this.getSelectedTemplate(),$(".-unite-page-template-description").html("<h3>"+e.title+"</h3>\n"+e.description)},n.prototype.getSelectedTemplate=function(){return this.templates[this.selectedTemplateIndex]},n.prototype.showRestrictedMessage=function(){return $("#restricted_message").show()},n.prototype.restrictedSelection=function(){return Unite.permissions.freeTier&&this.getSelectedTemplate().restricted},n.prototype.createPage=function(e){return e.preventDefault(),this.restrictedSelection()?this.showRestrictedMessage():($("#create_page_btn").attr("disabled",!0),this.target().modal("hide"),this.observer.fire("pick",this.getSelectedTemplate()))},n}(Unite.Admin.View)}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},t=function(e,t){function i(){this.constructor=e}for(var o in t)n.call(t,o)&&(e[o]=t[o]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},n={}.hasOwnProperty;window.AddPostView=function(n){function i(){return this.initializeCKEditor=e(this.initializeCKEditor,this),i.__super__.constructor.apply(this,arguments)}return t(i,n),i.prototype.events={"click #create_post_button":"create"},i.prototype.initialize=function(){var e;if(this.post=this.options.post,this.template=Unite.template["posts/new"],this.$bodyWindow=$(".-unite-admin-frame")[0].contentWindow,this.setElement(this.$bodyWindow.$("#new_post")[0]),this.$bodyWindow.$("body").on("unite:editmode:off",(e=this,function(){return e.teardown()})),Unite.editMode.editMode)return this.setup()},i.prototype.setup=function(){return this.render(),this.initializeCKEditor(),this.$bodyWindow.$("#new_post_status").on("change",(e=this,function(t){return e.togglePublishedAtPicker("scheduled"===t.target.value)}));var e},i.prototype.initializeCKEditor=function(){return this.$bodyWindow.$("#new_post_form").slideDown(500,(e=this,function(){return e.$bodyWindow.Unite.CKEditor.initialize(e.$bodyWindow.$("#post_content")[0]).then(function(t){return e.editor=t}),e.$bodyWindow.$("#post_title").select().focus()}));var e},i.prototype.togglePublishedAtPicker=function(e){var t;return e?(t=Unite.template["posts/published_at_picker"](),this.$bodyWindow.$("#new_post_status").after(t),this.setPublishedAtTo(moment())):this.$bodyWindow.$("#published_at_picker").remove()},i.prototype.setPublishedAtTo=function(e){var t,n;return n=e.format("D MMM YYYY hh:mmA"),(t=this.$bodyWindow.$("#post_published_at")).datetimeEntry({datetimeFormat:"d n Y H:Ma"}),t.datetimeEntry("setDatetime",n)},i.prototype.render=function(){return this.$el.html(this.template({post:this.post.toJSON()}))},i.prototype.create=function(e){var t,n;return e.preventDefault(),(t=this.$bodyWindow.$("#new_post_form").serializeObject()).content=this.editor.getData(),this.$el.find("button").attr("disabled","disabled"),this.post.save(t,{success:(n=this,function(){return console.log("[new-post] fetching "+n.post.link_to()),$.get("/"+n.post.link_to(),function(e){return console.log("new post:",e),n.$bodyWindow.$(e).insertAfter(n.$bodyWindow.$("#new_post")).highlight(),n.$bodyWindow.$("#post_"+n.post.id).find("audio,video").each(Unite.Autoload.MediaElement)}),n.teardown(),$("body").trigger("post:created")}),error:function(e){return function(t,n){return e.$el.find("button").removeAttr("disabled"),e.handleActiveModelError(t,n)}}(this)})},i.prototype.teardown=function(){return this.editor&&this.editor.destroy(),this.$el.html(""),this.undelegateEvents()},i}(Backbone.View.extend(Unite.Helpers))}.call(this);var PostsView=Unite.Admin.CollectionView.extend({id:"posts",model:"post",events:{"click .publish-button":"publish","click .draft-button":"unpublish","click .delete-button":"delete","click .change-feed-button":"changeFeed"},showPosts:function(){$("#posts-list-container").html(JST["posts/_list"]({posts:this.posts}
8)).find("button, .button, input:submit").button(),$("#posts-list").tablesorter({sortList:[[5,1]],headers:{0:{sorter:!1}}})},render:function(){return $(this.el).html(JST["posts/index"]()),$("#admin_view").html(this.el),this.updateCollection(_.bind(this.showPosts,this)),this},changeFeed:function(){var e=this,t=new Feeds;t.fetch({success:function(){$(JST["posts/_choose_feed"]({feeds:t})).modal().find("#update_posts_feed_button").click(function(){var n=$("#posts_feed_id").val(),i=t.get(n).get("title");n&&e.updateSelected({feed_id:n,feed_title:i})})}})}});(function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;window.Unite.Admin.SettingsView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(){var e;return n.__super__.initialize.apply(this,arguments),e=_.bind(this.show,this),this.id=this.settings_for+"_settings",this.settings=new this.model,this.settings.fetch({success:e,error:function(e,t){return 401===t.status?(Unite.admin.close(),Unite.handleUnauthorized()):(Unite.debug(t),new Unite.Admin.ErrorView({message:t.message}))}}),this.events=this.events||{},this.events["click #submit_button"]="save"},n.prototype.template=function(){return JST["settings/"+this.settings_for]},n.prototype.render=function(){return $(this.el).html(this.template()(this.context())),$(this.container).html(this.el),this},n.prototype.context=function(){return{settings:this.settings.attributes}},n.prototype.save=function(e){var t,n;return e.preventDefault(),e.stopPropagation(),t=$("#"+this.id+"_form").serializeObject(),n=this.settings.url(),$.put(n,t,_.bind(this.onSaveResponse,this))},n.prototype.onSaveResponse=function(e,t){if("success"===t)return this.closeAndRefreshPage()},n}(Unite.Admin.View)}).call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;window.CalendarsSettingsView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.className="has-sidebar",n.prototype.events={"click .submit-button":"create","change #calendar_owner":"calendarOwnerChanged"},n.prototype.initialize=function(){return n.__super__.initialize.apply(this,arguments),this.loading=!0,this.calendars=new Unite.Calendars,this.settings=new Unite.CalendarSettings,window.calendars=this.calendars,this.calendarsView=new CalendarsView({collection:this.calendars}),this.appCalendarsFetched=!1,this.googleCalendarsFetched=!1,this.settings.fetch().success((e=this,function(){return e.show(),e.calendars.fetch().success(function(){return e.appCalendarsFetched=!0,e.showGoogleCalendars()}).error(function(){return e.showGoogleCalendars()})}));var e},n.prototype.render=function(){return $(this.el).html(JST["settings/calendars"](this.settings.toJSON())),$("#admin_view").html(this.el),$("#calendars_collection_view").appendView(this.calendarsView)},n.prototype.create=function(e){var t,n,i,o;return e.preventDefault(),n=new Unite.Calendar,i=(t=$("#new_calendar_form")).serializeObject(),n.save(i,{success:(o=this,function(){var e,i;if(o.calendars.add(n),t.reset(),i=(e=$("#calendar_"+n.id)).offset())return o.$el.find(".scrollable").scrollTop(i.top),e.highlight(1e3)}),error:_.bind(this.handleActiveModelError,this)})},n.prototype.showGoogleCalendars=function(){return $("#calendars_collection_view").addClass("loading"),$.get("/admin/google_calendars").success((e=this,function(t){return e.googleCalendars=t,e.googleCalendarsFetched=!0,e.incorporateGoogleCalendars(),$("#calendars_collection_view").removeClass("loading")})).error(function(e){return function(){return e.flashLoadErrors(),$("#calendars_collection_view").removeClass("loading")}}(this));var e},n.prototype.incorporateGoogleCalendars=function(){var e,t;return e=this.calendars.toJSON(),(t=_.union(e,this.googleCalendars)).length!==e.length&&this.calendars.reset(t),this.flashLoadErrors()},n.prototype.flashLoadErrors=function(){var e;if(e=[],this.appCalendarsFetched||e.push("Unite"),this.googleCalendarsFetched||e.push("Google"),e.length>0)return Unite.showFlashMessage("error","The following calendar sources are not available: "+e.join(" and ")+". If this problem persists please contact CTS.",{context:"admin"})},n.prototype.calendarOwnerChanged=function(e){return"google"===e.target.value?($("#calendar_name").addClass("hidden"),$("#calendar_name").attr("disabled",""),$("#google_calendar_id").removeClass("hidden"),$("#google_calendar_id").removeAttr("disabled")):($("#calendar_name").removeClass("hidden"),$("#calendar_name").removeAttr("disabled"),$("#google_calendar_id").addClass("hidden"),$("#google_calendar_id").attr("disabled",""))},n}(Unite.Admin.View)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;window.CalendarView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.events={"click .offer-delete-command":"showDeleteOption","click .cancel-command":"hideDeleteOption"},n.prototype.render=function(){var e,t,i,o;return(e=this.model.get("group_id"))&&this.model.set("visible_to","disabled"),n.__super__.render.apply(this,arguments),"everyone"!==(t=this.model.get("visible_to"))&&"users"!==t||this.$el.addClass("visible"),this.$el.addClass("owner-"+this.model.get("owner")),0!==(i=this.$el.children("div.warning-symbol")).length&&(this.$el.removeClass("neat-editable"),i[0].setAttribute("title","The Google calendar could not be found or is not public.")),e&&(this.$el.addClass("group-calendar"),this.$el.find(":input[name='visible_to']").prop("disabled","disabled")),
9this.$(".calendar-palette").spectrum({showPaletteOnly:!0,palette:palette,appendTo:"parent",color:(o=this,function(){return palette[o.model.get("color_index")]||palette[0]})(),change:function(e){return function(t){return e.model.save({color_index:palette.indexOf(t.toHexString())})}}(this)}),this},n.prototype.attributesFromForm=function(e){return _.pick(e.serializeObject(),"name","visible_to")},n.prototype.onSaveError=function(e,t){return Unite.Helpers.handleActiveModelError.call(Unite.Helpers,e,t)},n.prototype.onDeleteError=function(e,t){return Unite.Helpers.handleActiveModelError.call(Unite.Helpers,e,t)},n.prototype.save=function(e){var t,n,i,o;if(null!=e&&e.preventDefault(),n=$(this.el).find(":input").serializeObject(),this.debug("saving calendar: ",n),t=this.model.changedAttributes(n),this.okToSave(t))return t&&(i=this.model.toJSON(),this.model.save(t,{wait:!0,success:(o=this,function(){var e;
9for(e in t)t[e],o.debug("  . "+e+" changed from ",i[e]," to ",o.model.get(e));return o.onSaveSuccess()}),error:function(e){return function(t,n){return 503===n.status?Unite.showFlashMessage("error","This feature isn't available at this time.",{context:"admin"}):e.onSaveError(t,n)}}(this)})),this.cancelEdit()},n.prototype.confirmDelete=function(){return!0},n.prototype.showDeleteOption=function(e){var t;return(t=$(e.target)).hide(),t.closest(".calendar").addClass("delete-mode"),t.next().show()},n.prototype.hideDeleteOption=function(e){var t;return(t=$(e.target).closest(".commands")).hide(),t.closest(".calendar").removeClass("delete-mode"),t.prev().show()},n}(Neat.ModelEditor),window.CalendarsView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.resource="calendars",n.prototype.pageSize=Infinity,n.prototype.sortedBy=null,n}(Neat.CollectionEditor)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;window.DomainSettingsView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.settings_for="domain",n.prototype.model=Unite.DomainSettings,n.prototype.className="has-sidebar",n.prototype.events={"click #submit_button":"save"},n.prototype.save=function(e){var t,n,i;return e.preventDefault(),e.stopPropagation(),t=$("#"+this.id+"_form").serializeObject(),n=this.settings.url(),$.put(n,t).success((i=this,function(){return i.showFlashMessage("success","Domain updated!",!1)})).error(function(e){return function(t){return e.showFlashMessage("error",t.responseText,!1)}}(this))},n.prototype.context=function(){return _.extend(n.__super__.context.apply(this,arguments),{canonicalDomain:Unite.meta("tenant")+"."+Unite.meta("host"),cname:Unite.meta("tenant")+".cname."+Unite.meta("host"),status:function(){switch(this.settings.get("status")){case null:return null;case"ok":return"Your custom domain is all set up!";case"error":return"The DNS records do not seem to be set up correctly yet.";default:return"Unite is provisioning your custom domain"}}.call(this)})},n}(Unite.Admin.SettingsView)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;window.GeneralSettingsView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.settings_for="general",n.prototype.model=Unite.GeneralSettings,n.prototype.className="has-sidebar",n.prototype.events={"click #submit_button":"save"},n.prototype.afterRender=function(){return $("#tenant_time_zone").val(this.settings.get("time_zone")),this.checkUsage(),n.__super__.afterRender.apply(this,arguments)},n.prototype.checkUsage=function(){var e;return e=this,$.get("/usage").success(function(t){var n;if(e.checkNearingFull(),n=$("#usage .used").text(),$("#usage .used").html(Unite.bytesToSize(t.bytesUsed)),n!==$("#usage .used").text())return e.updateBar(t)}).error(function(){return console.log("error")})},n.prototype.updateBar=function(e){var t,n;return t=Math.floor(e.bytesUsed/e.bytesAllowed*100),$(".progress div").animate({width:t+"%"},1e3,(n=this,function(){return n.checkNearingFull()}))},n.prototype.checkNearingFull=function(){return $(".bar").width()/$(".progress").width()*100>80?$(".progress div").css("background-color","darkred"):$(".progress div").css("background-color","#149bdf")},n}(Unite.Admin.SettingsView)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;window.GoogleAnalyticsSettingsView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.settings_for="analytics",n.prototype.model=Unite.AnalyticsSettings,n.prototype.className="has-sidebar",n}(Unite.Admin.SettingsView)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;window.IntegrationSettingsView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.settings_for="integration",n.prototype.model=Unite.IntegrationSettings,n.prototype.className="has-sidebar",n.prototype.afterRe
9nder=function(){return window.setTimeout(function(){return $("#shepherds_staff_token").select()},100),n.__super__.afterRender.apply(this,arguments)},n}(Unite.Admin.SettingsView)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;window.SocialLinksSettingsView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.settings_for="social_links",n.prototype.model=Unite.SocialLinksSettings,n.prototype.className="has-sidebar",n.prototype.events={"click #submit_button":"save"},n.prototype.render=function(){return $(this.el).html(JST["settings/social"]({settings:this.settings.toJSON()})),$("#admin_view").html(this.el),$(".fa-lock[data-toggle='tooltip']").tooltip({delay:{show:500,hide:0},placement:"bottom"}),this},n}(Unite.Admin.SettingsView)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;window.TextingSettingsView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.settings_for="texting",n.prototype.model=Unite.TextingSettings,n.prototype.className="has-sidebar",n}(Unite.Admin.SettingsView)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;this.OptInActivityView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.className="has-sidebar",n.prototype.id="opt_ins",n.prototype.initialize=function(){return n.__super__.initialize.apply(this,arguments),Members.get(Unite.meta("members_url")+"api/v2/phone_numbers/unmatched").done((e=this,function(t){return e.optIns=new Unite.OptIns(t.optins),e.optInsView=new OptInsView({collection:e.optIns,people:t.people}),e.show(),$("#optins_collection_view").removeClass("loading")})).fail(function(e){return function(){return e.$el.find("#optins").html(Unite.template["errors/unavailable"]({page:"Texting Opt-ins"}))}}(this));var e},n.prototype.render=function(){return $(this.el).html(HandlebarsTemplates["activity/optins/index"]()),$("#admin_view").html(this.el),$("#optins_collection_view").appendView(this.optInsView),this},n}(Unite.Admin.View)}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},t=function(e,t){function i(){this.constructor=e}for(var o in t)n.call(t,o)&&(e[o]=t[o]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},n={}.hasOwnProperty;window.OptInView=function(n){function i(){return this.editTemplate=e(this.editTemplate,this),i.__super__.constructor.apply(this,arguments)}return t(i,n),i.prototype.className="neat-row neat-interactive neat-editable flex-rows",i.prototype.initialize=function(){return i.__super__.initialize.apply(this,arguments),$(this.el).delegate(".link-button","click",_.bind(this.link,this)),$(this.el).delegate(".unlink-button","click",_.bind(this.unlink,this))},i.prototype.showTemplate=function(e){return HandlebarsTemplates["activity/optins/show"](e)},i.prototype.editTemplate=function(e){return e=$.extend(e,{people:this.options.people}),HandlebarsTemplates["activity/optins/edit"](e)},i.prototype.link=function(){var e,t;return e=this.$el.find("select").val(),Members.post(Unite.meta("members_url")+"api/v2/phone_numbers/link",{id:this.model.id,person_id:e}).done((t=this,function(e){return t.model.set("contact",e.contact),t.cancelEdit()})).fail(function(){return Unite.showFlashMessage("error","Something went wrong linking the number to this person")})},i.prototype.unlink=function(){var e;return this.$el.find("select").val(),Members.put(Unite.meta("members_url")+"api/v2/phone_numbers/unlink",{id:this.model.id}).done((e=this,function(){return e.model.set("contact",{id:null,name:null}),e.cancelEdit()})).fail(function(){return Unite.showFlashMessage("error","Something went wrong unlinking the number")})},i}(Neat.ModelEditor),window.OptInsView=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return t(n,e),n.prototype.resource="opt_ins",n.prototype.pageSize=Infinity,n.prototype.sortedBy=null,n.prototype.initialize=function(){return this.people=this.options.people,n.__super__.initialize.apply(this,arguments)},n.prototype.renderPage=function(){var e,t,n,i,o,s,a,r,l;for(n=!1,t=$(this.el).find("#"+this.resource).empty(),this.views=[],r=this,$(this.el).find(".extended-pagination").html(this.paginator.renderExtendedPagination()),i=0,o=(a=this.paginator.getCurrentSet()).length;i<o;i++)s=a[i],(l=new this.modelView({resource:this.resource,viewPath:this.viewPath,model:s,templateOptions:this.templateOptions,people:this.people})).bind("edit:begin",function(){return r.beforeEdit.call(r,this)}),l.bind("edit:end",function(){return r.afterEdit.call(r,this)}),this.views.push(l),(e=$(l.render().el)).toggleClass("alt",!(n=!n)),t.append(e);return this},n.prototype.template=function(e){return HandlebarsTemplates["activity/optins/list"](e)},n}(Neat.CollectionEditor)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;Unite.Themes.AdvancedView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.id="themes_advanced",n.prototype.className="has-sidebar",n.prototype.events={"click #save_advanced":"save"},n.prototype.initialize=function(){return n.__super__.initialize.apply(this,arguments),this.theme=this.options.theme,Unite.headers_editor=null,Unite.scripts_editor=null,this.show()},n.prototype.render=function(){var e;return e=HandlebarsTemplates["themes/advanced/index"],$(this.el).html(e({theme:this.theme})),$("#admin_view").html(this.el),this.loadEditors(),this},n.prototype.loadEditors=function(){var e,t;return e="/admin/themes/additional_attributes",$.getWithRedirect(e,(t=this,function(e){return t.loadHeaders(e.additional_headers),t.loadScripts(e.additional_scripts)}),function(e){return console.log("There was a problem",e)})},n.prototype.loadHeaders=function(e){return $("#additional_headers").show(),Unite.autoload("ace",Unite.assets.js.ace,(t=this,function(){return t.jsMode=t.jsMode||require("ace/mode/javascript").Mode,t.cssMode=t.cssMode||require("ace/mode/css").Mode,t.htmlMode=t.htmlMode||require("ace/mode/html").Mode,Unite.headers_editor=Unite.headers_editor||ace.edit("additional_headers"),Unite.headers_editor.getSession().setValue(e),Unite.headers_editor.getSession().setMode(ne
9w t.htmlMode)}));var t},n.prototype.loadScripts=function(e){return $("#additional_scripts").show(),Unite.autoload("ace",Unite.assets.js.ace,(t=this,function(){return t.jsMode=t.jsMode||require("ace/mode/javascript").Mode,t.cssMode=t.cssMode||require("ace/mode/css").Mode,t.htmlMode=t.htmlMode||require("ace/mode/html").Mode,Unite.scripts_editor=Unite.scripts_editor||ace.edit("additional_scripts"),Unite.scripts_editor.getSession().setValue(e),Unite.scripts_editor.getSession().setMode(new t.htmlMode)}));var t},n.prototype.save=function(){var e,t,n,i;return t="/admin/themes/additional_attributes",e=Unite.headers_editor.getSession().getValue(),n=Unite.scripts_editor.getSession().getValue(),$.put(t,{headers:e,scripts:n}).success((i=this,function(){return i.closeAndRefreshPage()})).error(function(e){return function(t){return e.handleActiveModelError.apply(e,[null,t])}}(this))},n}(Unite.Admin.View)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;Unite.Themes.BrowseView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.id="themes",n.prototype.model="theme",n.prototype.className="has-sidebar",n.prototype.events={"click .-unite-theme-link":"toggleTheme","click .upgrade-theme":"upgradeTheme","click .downgrade-theme":"downgradeTheme","click #fork_theme_button":"fork","click #delete_theme_button":"delete","click #activate_theme_button":"activate"},n.prototype.showThemes=function(){var e,t;if($("#themes-list-container").html(JST["themes/_list"]({themes:this.themes.toArray()})),$(".-unite-theme").addHoverClassOnHover(),t=this.themes.getSelectedTheme(),this.showThemeNotes(t),e=this.clickedTheme(),t.get("global"))return this.showThemePresets(t,e),this.selectPreset(t.get("selected_preset"))},n.prototype.render=function(){var e;return $(this.el).html(HandlebarsTemplates["themes/browse/index"]()),$("#admin_view").html(this.el),this.updateCollection(_.bind(this.showThemes,this)),$(window).on("resize",(e=this,function(){var t,n,i,o;if((t=document.getElementsByClassName("-unite-asset selected global")[0])&&(i=t.offsetTop,o=document.getElementsByClassName("-unite-asset"),_.filter(o,function(e){return e.offsetTop===i}).length!==(null!=(n=e.themesInThisRow)?n.length:void 0)))return $("#theme_presets_list_element").remove(),e.showThemePresets(e.themeFromClicked(),e.clickedTheme(),{forceOpen:!0})})),this},n.prototype.toggleTheme=function(e){var t,n,i;return e.stopPropagation(),e.preventDefault(),(t=$(e.target).closest(".-unite-theme")).hasClass("expanded")?this.closeDrawer():($(".-unite-theme.expanded").removeClass("expanded").addClass("was-expanded"),$(".-unite-theme.selected").removeClass("selected").addClass("was-selected"),(n=t.data("slug"))&&(i=this.themes.findBySlug(n)),t.addClass("selected"),this.showThemeNotes(i),i.get("global")||$("#theme_presets_list_element").remove(),i.get("global")&&this.showThemePresets(i,e.target),this.selectPreset(i.get("selected_preset")),$(".-unite-theme").removeClass("was-expanded was-selected"))},n.prototype.selectPreset=function(e){return $(".-unite-preset-link[data-title='"+e+"']").closest(".-unite-preset").addClass("selected")},n.prototype.showThemeNotes=function(e){var t;return e&&(t=e.get("notes")),t?$("#theme_notes").html(t).show():$("#theme_notes").hide()},n.prototype.showThemePresets=function(e,t,n){var i,o,s,a,r,l,c,u,d,p;return null==n&&(n={}),o=$(t).closest(".-unite-theme"),u=o.position().top,d=_.filter($(".-unite-theme"),function(e){return $(e).position().top<=u}),this.themesInThisRow=_.filter($(".-unite-theme"),function(e){return $(e).position().top===u}),c=_.any(this.themesInThisRow,function(e){return $(e).hasClass("was-selected")}),l=c&&$(".-unite-theme.was-expanded").length>0,r=n.forceOpen||l,(i=$(".theme-presets")).addClass("closing"),r?i.remove():this.closeDrawer(),a=JST["themes/_presets"]({theme:e}),$("#themes_list .-unite-theme:nth-child("+d.length+")").after(a),s=(i=$(".theme-presets:not('.closing')")).outerHeight(),this.adjustDrawerArrow(o),i.css({height:0}).show().addClass("expanding"),this.openDrawer(i,s,r,(p=this,function(){return i.removeClass("expanding").removeAttr("style"),p.clickedTheme().addClass("expanded"),p.enablePresetPreviewsFor(e)}))},n.prototype.openDrawer=function(e,t,n,i){return n?i():e.velocity({height:t},500,_.bind(i,this))},n.prototype.closeDrawer=function(){var e,t;return(e=$("#theme_presets_list_element")).velocity({height:0},500,(t=this,function(){return t.clickedTheme().removeClass("expanded"),e.remove()}))},n.prototype.adjustDrawerArrow=function(e){var t;return t=e.position().left+e.width()/4,$(".theme-presets:not('.closing')").find(".arrow").css("marginLeft",t+"px")},n.prototype.enablePresetPreviewsFor=function(e){var t,n,i;return t=0,n=0,$(".-unite-preset-link").click(function(e){return $(".-unite-preset").removeClass("selected"),$(e.target).closest(".-unite-preset").addClass("selected")}),$(".-unite-preset-link").mousedown((i=this,function(o){var s;return s=$(o.target).closest(".-unite-preset-link").data("title"),t=setInterval(function(){return i.showPreviewFor(s,e)},1e3),n=setInterval(function(){return $(o.target).closest(".-unite-preset").find(".-unite-preset-preview-loading").addClass("loading-preview")},200),!1})),$(document).mouseup(function(e){return function(){return clearInterval(t),clearInterval(n),e.exitPreview(),!1}}(this))},n.prototype.showPreviewFor=function(e,t){var n,i,o;if(!(n=$("#theme_preset_preview")).is(":visible"))return o=$("#themes-list-container").width(),n.css({width:o}),i=JST["themes/_preview"]({preset:e,theme:t}),n.html(i).show(),$("#preview_wrapper").css({left:"50%",marginLeft:-360})},n.prototype.exitPreview=function(){return $(".-unite-preset-preview-loading").removeClass("loading-preview"),$("#theme_preset_preview").html("").hide()},n.prototype.clickedTheme=function(){return $(".-unite-theme.selected")},n.prototype.themeFromClicked=function(){var e;return e=this.clickedTheme().data("slug"),this.themes.findBySlug(e)},n.prototype.delete=function(e){return e.stopPropagation(),e.preventDefault(),this.withSelectedTheme(function(e){return e.hasClass("active")?this.show
9FlashMessage("alert","You cannot delete the active theme."):e.hasClass("global")?this.showFlashMessage("alert",I18n.t("global_theme.delete_attempt")):this.confirmDeleteDialog({html:"The theme will be deleted permanently.",title:"Delete this theme?",callback:function(){var t;return t=e.find("a.-unite-theme-link").attr("href").replace("/activate",""),$.destroy(t,{},function(){return e.remove()})}})})},n.prototype.fork=function(e){return e.stopPropagation(),e.preventDefault(),this.withSelectedTheme(function(e){var t,n,i,o;return i=e.find(".-unite-theme-name").html(),t=$(JST["themes/_save_as"]({theme_name:i})),o=this,n=function(){var n,i,s,a;return s=e.find("a.-unite-theme-link").attr("href").replace("activate","fork"),i=$("#new_theme_name").val(),n=$(Unite.template["themes/forking"]()),a=$(".-unite-preset.selected").find("a.-unite-preset-link").data("title"),$.ajax(s,{data:{name:i,preset:a},type:"POST",success:function(){return o.refreshPage()},error:function(e){return n.modal("hide"),o.handleActiveModelError.apply(o,[null,e])}}),t.modal("hide"),n.modal().on("hidden",function(){return n.remove()})},t.modal().on("hidden",function(){return t.remove()}).find("#create_theme_button").click(n).end().find("#new_theme_name").select().keyup(function(e){if(13===e.keyCode)return n()})})},n.prototype.activate=function(e){return e.stopPropagation(),e.preventDefault(),this.disableBulkActions(),this.withSelectedTheme((t=this,function(e){var n,i,o,s,a,r;if(0!==(n=$(".-unite-preset.selected")).length||!t.themeFromClicked().get("global"))return i=e.find("a.-unite-theme-link").attr("href"),s=n.find("a.-unite-preset-link").data("title"),a=e.data("slug"),r=t.themes.findBySlug(a),o=_.find(r.get("presets"),function(e){return e.name===s}),$.post(i,{preset:o},function(){return t.showChangeMessageAndReload("Your theme has been changed",function(){return t.enableBulkActions(),t.withSelectedTheme(function(e){return Unite.setTheme(e.data("slug")),$(".-unite-theme").removeClass("active"),e.addClass("active")})})});t.showFlashMessage("alert","You must select a preset")}));var t},n.prototype.upgradeTheme=function(e){return e.stopPropagation(),e.preventDefault(),this.withSelectedTheme((t=this,function(e){return t.closeDrawer(),e.addClass("upgrading"),setTimeout(function(){var n;return n=(n=e.find("a.-unite-theme-link").attr("href")).replace("activate","upgrade"),$.put(n,{},function(n){var i,o;return o=new Theme(n),(i=t.themes.findBySlug(o.get("slug"))).attributes=o.attributes,(e=$("a.-unite-theme-link[title='"+o.get("name")+"']").closest(".-unite-theme")).removeClass("upgrading"),t.showThemePresets(i,e),t.showThemeNotes(i)})},500)}));var t},n.prototype.downgradeTheme=function(e){return e.stopPropagation(),e.preventDefault(),this.withSelectedTheme((t=this,function(e){return t.closeDrawer(),e.addClass("upgrading"),setTimeout(function(){var n;return n=(n=e.find("a.-unite-theme-link").attr("href")).replace("activate","downgrade"),$.put(n,{},function(n){var i,o;return o=new Theme(n),(i=t.themes.findBySlug(o.get("slug"))).attributes=o.attributes,(e=$("a.-unite-theme-link[title='"+o.get("name")+"']").closest(".-unite-theme")).removeClass("upgrading"),t.showThemePresets(i,e),t.showThemeNotes(i)})},500)}));var t},n.prototype.showChangeMessageAndReload=function(e,t){var n,i;return null==t&&(t=null),this.locationHash=window.location.hash,i=this,n=function(){return window.location.hash=i.locationHash,t&&t(),$("body").off("iframe.updated",n)},$("body").on("iframe.updated",n),Unite.reloadInnerWindow(),this.showFlashMessage("success",e)},n.prototype.withSelectedTheme=function(e){var t;return 0===(t=$(".-unite-theme.selected")).length?this.showFlashMessage("alert","You must select a theme"):e.apply(this,[t])},n.prototype.disableBulkActions=function(){return $(".bulk-actions").find("button").prop("disabled",!0).addClass("disabled")},n.prototype.enableBulkActions=function(){return $(".bulk-actions").find("button").prop("disabled",!1).removeClass("disabled")},n}(Unite.Admin.CollectionView)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;Unite.Themes.CustomizeView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.id="themes_customize",n.prototype.className="has-sidebar",n.prototype.events={"click #save_options":"save","click .file-browser":"browse","click .file-clearer"
9:"clearFile","change #theme_presets":"setPreset"},n.prototype.initialize=function(){return n.__super__.initialize.apply(this,arguments),this.theme=this.options.theme,this.f=new Unite.FormBuilder("theme"),this.show()},n.prototype.render=function(){return $(this.el).html(HandlebarsTemplates["themes/customize/index"]({theme:this.theme,f:this.f})),$("#admin_view").html(this.el),this.initializeControls(),this.updatePreview(),this},n.prototype.updatePreview=function(){var e;if(this.layoutTemplate||this.fetchLayoutRenderer(),this.layoutContext||this.fetchLayoutContext(),this.layoutTemplate&&this.layoutContext)return $("#theme_preview_container").removeClass("loading"),e=this.renderLayout(),$("#theme_preview").html('<iframe width="1024" height="768" frameborder="0" scrolling="no" src="about:blank"></iframe><div class="clickBarrier"></div>').find("iframe").contents().replaceIFrameHtml(e)},n.prototype.fetchLayoutRenderer=function(){var e,t;return e="/themes/"+this.theme.get("slug")+"/default.theme",$.getWithRedirect(e,(t=this,function(e){return t.layoutTemplate=e.replace(/(\<script (.*)\>([\s\S.]*)\<\/script\>)/gi,""),t.updatePreview()}),function(){return Unite.debug(arguments),$("#theme_preview_container").removeClass("loading").addClass("error")})},n.prototype.fetchLayoutContext=function(){return $.ajax({url:"/",dataType:"json"}).success((e=this,function(t){return t.unite.scripts="",t.page.alerts="",t.page.body=t.page.body.replace(/(\<script (.*)\>([\s\S.]*)\<\/script\>)/gi,""),e.layoutContext=t,e.updatePreview()})).error(function(){return Unite.debug(arguments),$("#theme_preview_container").removeClass("loading").addClass("error")});var e},n.prototype.renderLayout=function(){var e;return this.layoutContext.theme=this.themeContext(),e=ThemeRenderer.render(this.layoutTemplate,this.layoutContext),this.removeScripts(e)},n.prototype.themeContext=function(){var e,t,n,i,o;for(n in i=this.theme.get("values"),t={path:"/themes/"+this.theme.get("slug")},i)o=i[n],t[e=(e=inflect.titleize(n).replace(/\s/g,"")).charAt(0).toLowerCase()+e.slice(1)]=o;return t},n.prototype.removeScripts=function(e){return e.replace(/(\<script (.*)\>([\s\S.]*)\<\/script\>)/gi,"").replace(/(\<video (.*)\>([\s\S.]*)\<\/video\>)/gi,"").replace(/(\<audio (.*)\>([\s\S.]*)\<\/audio\>)/gi,"")},n.prototype.setPreset=function(e){var t,n;if(n=(t=$(e.target).find("option:selected").val())&&this.theme.getValuesForPreset(t))return this.theme.set({values:n}),Unite.debug('[preset selected] "'+t+'".'),$("#theme_options").html(JST["themes/_options"]({options:this.theme.get("options"),values:n,f:this.f})),this.initializeControls(),this.updatePreview()},n.prototype.initializeControls=function(){var e,t;return t=this,$(".colorSelector").each(function(){var e,n,i;return i=$(this),e=i.find("div"),n=i.find("input"),i.ColorPicker({color:Unite.colorToHex(n.val().split(", ")),onShow:function(e){return $(e).fadeIn(500),!1},onHide:function(e){return $(e).fadeOut(500),!1},onChange:function(i,o,s){return s=s.r+", "+s.g+", "+s.b,e.css("backgroundColor","rgb("+s+")"),n.val(s),t.updatePropertyForInput(n)}})}),$("#theme_options_form select").change(function(){return t.updatePropertyForInput(this)}),(e=$("#theme_options_form .fileSelector input")).hide().after('<p class="fileName" style="margin-bottom:0.25em">'+this.getFileName(e.val())+"</p>")},n.prototype.getFileName=function(e){return(e||"").replace(/^.*[\\\/]/,"")},n.prototype.updatePropertyForInput=function(e){var t,n,i;return n=(t=$(e)).attr("data-property"),(i=this.theme.get("values"))[n]=t.val(),this.theme.set({values:i}),this.updatePreview()},n.prototype.browse=function(e){var t,n,i,o;return e.preventDefault(),t=$(e.target).closest(".fileSelector"),n=t.find('input[type="text"]'),i=t.find(".fileName"),o=this,Unite.pickAsset({assets:Unite.imageAssets(),collectionClass:Unite.Assets.Images,selectedAsset:n.val(),onSelect:function(e){return n.val(e),i.html(o.getFileName(e)),o.updatePropertyForInput(n)}})},n.prototype.clearFile=function(e){var t,n,i;return e.preventDefault(),n=(t=$(e.target).closest(".fileSelector")).find('input[type="text"]'),i=t.find(".fileName"),n.val(""),i.html(""),this.updatePropertyForInput(n)},n.prototype.save=function(e){var t,n;return e.preventDefault(),t=$("#theme_options_form").serializeFormElements(),$.put(this.theme.settings_url(),t,(n=this,function(){return n.closeAndRefreshPage()}))},n}(Unite.Admin.View)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;Unite.Themes.EditStylesView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.id="edit_themes_styles",n.prototype.className="has-sidebar",n.prototype.events={"click #save_style":"saveStyle","click #save_as_style":"cloneStyle","click #delete_style":"deleteStyle"},n.prototype.initialize=function(){return n.__super__.initialize.apply(this,arguments),this.style=this.options.style,this.fontLoader=new Unite.Admin.FontLoader({onlyBodyFonts:"Normal"===this.style.get("name")}
9),this.show()},n.prototype.render=function(){return this.fontLoader.loadFontsToDocument(),$(this.el).html(HandlebarsTemplates["styles/new"]({style:this.style,type:this.style.get("style_type")||"inline",fonts:this.fontLoader.fonts})),$("#admin_view").html(this.el),this.initializeControls(),this},n.prototype.initializeControls=function(){var e,t;return null==(t=this.style.get("style_type"))&&(t="inline"),$("#style_type").find("input[value='"+t+"']").prop("checked",!0),"block"===t&&$(".style-declaration.style-declaration-block").show(),new Unite.Admin.StylesPreview($(".styles-preview"),{type:t,styles:this.style.stylesTagForType(t)}),this.initializeStyleActions(),this.style.isNew()?(this.loadChosenFontOptions("inherit"),this.style.setDeclaration({"border-color":"rgb(0,0,0)"})):(this.style.hasDeclaration("border-color")||this.style.hasDeclaration("border")||((e=this.style.get("color"))||(e="rgb(0,0,0)"),this.style.setDeclaration({"border-color":e})),this.loadStyle()),this.loadSelections()},n.prototype.enableChosenOn=function(e,t,n){var i,o,s;return o={disable_search:!0,inherit_select_classes:!0,width:"270px"},_.extend(o,t),(i=$(e)).chosen(o).on("change",function(e,t){return n(e,t)}),i.closest(".style-declaration").on("click",".style-property",(s=this,function(e){var t;if(!(t=$(e.target).closest(".style-property")).hasClass("hovered"))return i.trigger("chosen:open"),t.addClass("hovered"),e.stopPropagation(),s.scrollIfNeeded($(e.target))})),i.closest(".style-declaration").on("click",".hovered",function(){return i.trigger("chosen:close")}),i.on("chosen:hiding_dropdown",function(){return i.closest(".style-declaration").find(".hovered").removeClass("hovered")})},n.prototype.initializeStyleActions=function(){var e,t;return this.$preview=$(".sample-text"),this.enableChosenOn("#font_family",{disable_search:!1},(t=this,function(e,n){return $("#font_family_chosen").find("a").css({fontFamily:n.selected}),t.resetFontChanges(),t.updatePreview(e),t.loadChosenFontOptions(n.selected),t.loadSelection($(e.target).closest(".style-declaration"))})),this.enableChosenOn("#font_style",{},function(e){return function(t){return e.resetFontStyleAttributes(),e.updatePreview(t),e.loadSelection($(t.target).closest(".style-declaration"))}}(this)),this.enableChosenOn("#font_size",{},function(e){return function(t,n){return $("#font_size_chosen").find("a").css({fontSize:n.selected}),e.updatePreview(t),e.loadSelection($(t.target).closest(".style-declaration"))}}(this)),this.enableChosenOn("#text_decoration",{},function(e){return function(t){return e.updatePreview(t),e.loadSelection($(t.target).closest(".style-declaration"))}}(this)),e=this,$(".color-selector").each(function(){var t,n;return n=(t=$(this)).find("input").val().toRGB(),t.ColorPicker({color:Unite.colorToHex([n.r,n.g,n.b]),template:JST["themes/_color_picker"](),onShow:function(e){return $(e).fadeIn(500),t.closest(".style-property").addClass("hovered"),!1},onHide:function(e){return $(e).fadeOut(500),t.closest(".style-property").removeClass("hovered"),!1},onAutoSelection:function(){var n;return n=$("body").css("color"),e.changeColor(n,t)},onChange:function(n,i,o){var s;return s="rgb("+_.values(o).join(", ")+")",e.changeColor(s,t)}})}),$(".number-input").on("input",function(e){return function(t){var n,i,o;if(o=(n=$(t.target)).hasClass("em")?"em":"px",i=""+n.val()+o,n.data("value",i),!e.loadingStyle)return e.updatePreview(t),e.loadSelection(n)}}(this)),$("select[id^='border_style']").on("input",function(e){return function(t){var n;return e.updatePreview(t),(n=$(t.target)).data("value",n.val()),e.loadSelection(n.closest(".style-declaration"))}}(this)),$(".style-declaration").on("click",".expandable",function(e){return function(t){var n,i,o;return o=$(t.target).closest(".expandable"),i=(n=$(".style-declaration .expandable").not(o)).next(".style-dropdown"),n.removeClass("hovered"),i.removeClass("open"),o.toggleClass("hovered"),o.next(".style-dropdown").toggleClass("open"),o.hasClass("box-style")&&e.toggleDeclarationInPreview(o),e.scrollIfNeeded(o)}}(this)),$("#style_type input").on("change",_.bind(this.loadStyleType,this)),$(".detail-expander").on("click",".detail",function(e){return function(t){var n,i;
9return i=(n=$(t.target)).hasClass("closed"),e.toggleDetailView(n,i),e.translateStyle(n.closest(".style-dropdown"),i)}}(this))},n.prototype.scrollIfNeeded=function(e){var t,n;return t=e.closest(".scrollable"),n=e.closest(".style-declaration").offset().top-80,n+=t.scrollTop(),t.scrollTop(n)},
10n.prototype.toggleDeclarationInPreview=function(e){var t,n;return n=e.hasClass("hovered"),(t=e.text()).match(/margin/i)?$(".block-preview").toggleClass("show-margin-preview",n):t.match(/padding/i)?$(".sample-text").toggleClass("show-padding-preview",n):void 0},n.prototype.toggleDetailView=function(e,t){var n;return(n=e.closest(".style-dropdown")).find(".detail").toggleClass("closed",!t).toggleClass("open",t),n.find(".shorthand").toggle(!t),n.find(".as-properties").toggle(t)},n.prototype.translateStyle=function(e,t){var n,i,o,s;return o=e.data("css-property"),i={border:this.$preview.css(o)},this.translatingStyle=!0,n=t?e.find(".as-properties > div"):e.find(".shorthand > div"),_.each(n,(s=this,function(e){return s.selectBorderProperties(i,$(e))})),this.translatingStyle=!1},n.prototype.changeColor=function(e,t){var n;return t.find("div").css("backgroundColor",e),(n=t.find("input")).val(e),this.addDeclaration({property:n.data("property"),value:e}),$(".color-tile").css("backgroundColor",e),this.loadSelection(t.closest(".style-declaration"))},n.prototype.loadStyleType=function(e){var t;return t=$(e.target).val(),$(".style-declaration.style-declaration-block").toggle("block"===t),new Unite.Admin.StylesPreview($(".styles-preview"),{type:t,styles:this.style.stylesTagForType(t)}),this.$preview=$(".sample-text")},n.prototype.resetFontChanges=function(){var e;return(e=$("#font_style")).html("").trigger("chosen:updated"),this.loadSelection(e.closest(".style-declaration")),this.resetFontStyleAttributes()},n.prototype.resetFontStyleAttributes=function(){return _.each(["font-weight","font-style"],(e=this,function(t){return e.removeDeclaration({property:t})}));var e},n.prototype.loadChosenFontOptions=function(e){var t;return e=e.replace(/'/g,""),(t=this.fontLoader.fonts[e])?($("#font_url").val(t.url),this.buildFontStyleOptions(t.variants)):this.loadBasicFontVariants()},n.prototype.loadBasicFontVariants=function(){return this.buildFontStyleOptions([{name:"Normal",weight:"400",italic:!1},{name:"Normal Italic",weight:"400",italic:!0},{name:"Bold",weight:"700",italic:!1},{name:"Bold Italic",weight:"700",italic:!0}])},n.prototype.buildFontStyleOptions=function(e){var t;return t=$("#font_style"),$("#font_style_chosen"),_.each(e,function(e){var n,i,o;return o=e.weight,e.italic&&(o+="&italic"),n="font-weight&font-style",i="font-weight: "+e.weight+";",e.italic&&(i+="font-style: italic;"),t.append($("<option class='option'></option>").attr("data-value",o).attr("data-property",n).attr("style",i).text(e.name))}),t.find("option[data-value='400']").attr("selected","selected"),t.trigger("chosen:updated")},n.prototype.loadStyle=function(){var e,t;return this.loadingStyle=!0,e=this.style.get("declarations"),this.withEasyLoadProperties(e,(t=this,function(e,n){var i;if(t.select($("option[data-property='"+n+"']"),e),"font-family"===n&&(i=e.split(","),t.loadChosenFontOptions(i.first())),"color"===n)return $(".color-tile").css("backgroundColor",e)})),$(".selectable-option").trigger("chosen:updated"),this.withFontWeightAndFontStyle(e,function(e){return function(t){return e.selectFontStyle(t)}}(this)),this.withBoxModelProperties(e,function(e){return function(t){return e.selectBoxModels(t)}}(this)),this.withBorderProperties(e,function(e){return function(t){return e.selectBorderProperties(t)}}(this)),$(".selectable-option").trigger("chosen:updated"),$("body").trigger("preview:updated"),this.loadingStyle=!1},n.prototype.withEasyLoadProperties=function(e,t){var n;if(n=_.pick(e,"font-family","font-size","text-decoration","color"),!_.isEmpty(n))return _.each(n,function(e,n){return t(e,n)})},n.prototype.withFontWeightAndFontStyle=function(e,t){var n;if(n=_.pick(e,"font-weight","font-style"),!_.isEmpty(n))return t(n)},n.prototype.withBoxModelProperties=function(e,t){var n;if(n=_.pick(e,function(e,t){return t.match(/(margin)|(padding)/)}),!_.isEmpty(n))return t(n)},n.prototype.withBorderProperties=function(e,t){var n;if(n=_.pick(e,function(e,t){return t.match(/border/)}),!_.isEmpty(n))return t(n)},n.prototype.select=function(e,t){switch(e.prop("nodeName")){case"P":return e.filter("[data-value='"+t+"']").toggleClass("active");case"OPTION":return t=(t=t.replace(/'/g,"")).split(",").first(),"font-family"===e.data("property")&&(t+=","),e.filter("[data-value^='"+t+"']").prop("selected",!0)}},n.prototype.selectFontStyle=function(e){var t;return t=_.values(e).join("&"),$(".option[data-property='font-weight&font-style']").filter("[data-value='"+t+"']").prop("selected",!0)},n.prototype.selectBoxModels=function(e){return _.each(e,function(e,t){return $("input[data-property='"+t+"']").val(+e.replace("em","")).trigger("input")})},n.prototype.selectBorderProperties=function(e,t){var n,i,o,s,a,r,l,c,u,d,p,h;if(null==t&&(t=void 0),1===Object.keys(e).length){if(_.has(e,"border-color"))return;return null==t&&(t=$("[data-css-property='border'] .shorthand")),this.translatingStyle||this.toggleDetailVie
10w(t,!1),o=e.border.split(/\s+(?![^\(]*\))/),c=["width","style","color"],i=_.object(c,o),this.applyBorder(i,t)}for(null==t&&(t=$("[data-css-property='border'] .as-properties")),this.translatingStyle||this.toggleDetailView(t,!0),d=[],a=0,r=(u=t.find("> div")).length;a<r;a++)l=u[a],p=(n=$(l)).data("prefix").replace("-",""),h=this.sides().indexOf(p),s={},_.each(e,function(e,t){var n;return n=t.split("-")[1],s[n]=e.split(/\s+(?![^\(]*\))/)[h]}),d.push(this.applyBorder(s,n));return d},n.prototype.applyBorder=function(e,t){var n;return t.find("input[data-property$='width']").val(+e.width.replace("px","")).trigger("input"),t.find("option[data-property$='style']").filter("[data-value='"+e.style+"']").prop("selected",!0),(n=t.find(".border-color-selector")).find("input").val(e.color),n.find("div").css("backgroundColor",e.color)},n.prototype.sides=function(){return["top","right","bottom","left"]},n.prototype.updatePreview=function(e){var t,n,i;return 0===(t=$(e.target).closest(".btn-style")).length&&(t=$(e.currentTarget).find("option:selected:first")),0===t.length&&(t=$(e.target).closest(".number-input")),n=t.data(),this.withEachDeclaration(n,(i=this,function(e){return null!=i.$preview.css(e.property)?i.previewHasStyle(e)?i.removeDeclaration(e):i.replaceStyle(e):i.addDeclaration(e)})),$("body").trigger("preview:updated")},n.prototype.withEachDeclaration=function(e,t){var n,i,o;return i=String(e.property).split("&"),o=String(e.value).split("&"),n=_.zip(i,o),_.each(n,function(e){var n,i;return n=e[0],i=e[1],t({property:n,value:i})})},n.prototype.loadSelections=function(){return _.each($("#styles_options").find(".style-declaration"),(e=this,function(t){return e.loadSelection($(t))}));var e},n.prototype.loadSelection=function(e){var t,n;return t=e.closest(".style-declaration").find(".style-property-value"),0===(n=e.find("select.selectable-option")).length&&(n=e.find("input")),1===n.length?this.simpleValue(n,t):this.complexValue(e,t)},n.prototype.simpleValue=function(e,t){var n,i,o,s,a,r;if(""!==(r=e.val())&&null!==r||(r="Normal"),o=e.attr("name"),t.text(r),"font-size"!==o){for(o in n={},"font-style"===o?(a=r.split(" "),"Italic"===_.last(a)&&(a.pop(),i=!0),r=a.join(" "),n["font-style"]=i?"italic":"normal",n["font-weight"]=Unite.Admin.FontLoader.descriptionToWeight(r)||"400"):n[o]="text-decoration"===o?e.find(":selected").data("value"):r,s=[],n)r=n[o],s.push(t[0].style.setProperty(o,r,"important"));return s}},n.prototype.complexValue=function(e,t){var n,i,o;if(e.is(".style-declaration")&&(e=e.find("input").first()),e.data("property").match(/(margin)|(padding)/)&&(o=e.closest(".style-dropdown").find("input").map(function(e,t){return $(t).val()+"em"}).get(),t.text(o.join(", "))),e.data("property").match(/border/))return n=_.pick(getComputedStyle(this.$preview[0]),function(e,t){return t.match(/border/)}),i=_.pick(n,function(e,t){return t.match(/Style/)}),_.all(i,function(e){return"none"===e})?void t.html("None"):(t.html("<div class='border-preview'></div>"),_.each(n,function(e,t){return $(".border-preview").css(t,e)}))},n.prototype.previewHasStyle=function(e){return!this.translatingStyle&&this.$preview.css(e.property)===e.value},n.prototype.removeDeclaration=function(e){return this.style.removeDeclaration(e.property),this.$preview.css(e.property,"")},n.prototype.replaceStyle=function(e){return $(".btn-style[data-property='"+e.property+"']").not("*[data-value='"+e.value+"']").removeClass("active"),this.addDeclaration(e)},n.prototype.addDeclaration=function(e){var t;return(t={})[e.property]=e.value,this.style.setDeclaration(t),this.$preview.css(e.property,e.value)},n.prototype.fetchFontLoad=function(e){var t;return""===(t=(t=$("#font_url").val()).replace(/https?:/,""))?e(0):$.get(t).success(function(t){return e(Math.round(t.length/1e3))})},n.prototype.selectedFontFamily=function(){var e;return""!==(e=$("#font_family").val())?e:"Inherit"},n.prototype.saveStyle=function(){return this.fetchFontLoad((e=this,function(t){var n,i,o,s,a;return a=e.$preview.attr("style").replace(/; ?/g,";\n").replace(/\"|\'/g,""),s=$("#style_type input:checked").val(),o=$("#style_name").val(),(i={})[e.selectedFontFamily()]=t,n={name:o,declarations:a,style_type:s,font_load:i},e.style.save(n,{success:function(){return e.showChangeMessageAndReload("Style saved! Applying to your site...","/admin/themes/styles",{hard:!0})},error:function(t,n){return e.handleActiveModelError.apply(e,[null,n])}})}));var e},n.prototype.cloneStyle=function(){return this.fetchFontLoad((e=this,function(t){var n,i,o,s;return s=e.$preview.attr("style").replace(/; ?/g,";\n").replace(/\"|\'/g,""),(i={})[e.selectedFontFamily()]=t,o=HandlebarsTemplates["styles/name"]({name:e.style.get("name")}
10),(n=$(o).modal()).find("#style_save").click(function(){var t;return t=n.find('input[name="style_name"]').val(),e.style.copy(t,s,i).success(function(t){return e.showChangeMessageAndReload("Style saved!","/admin/themes/styles/"+t.id)}).error(function(t){return e.handleActiveModelError.apply(e,[null,t])})})}));var e},n.prototype.deleteStyle=function(){return this.style.destroy().success((e=this,function(){return e.showChangeMessageAndReload("Style removed! Applying change to your site...","/admin/themes/styles",{hard:!0})})).error(function(e){return function(t){return e.handleActiveModelError.apply(e,[null,t])}}(this));var e},n}(Unite.Admin.View)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;Unite.Themes.EditView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.id="themes_editor",n.prototype.className="has-sidebar",n.prototype.events={"click #delete_asset":"destroy","click #save_asset":"save","click #upload_assets_add":"addAssetUploader","click #clone_theme":"clone"},n.prototype.initialize=function(){return n.__super__.initialize.apply(this,arguments),this.theme=this.options.theme,this.isGlobal=this.theme.get("global"),Unite.ace_editor=null,this.show()},n.prototype.render=function(){var e;return e=this.isGlobal?JST["themes/global-edit"]:JST["themes/edit"],$(this.el).html(e({theme:this.theme})),$("#admin_view").html(this.el),this.setupFileManager(),this},n.prototype.getMode=function(e){switch(e){case"text/css":return this.cssMode;case"application/javascript":return this.jsMode;case"text/html":return this.htmlMode;case"text/handlebars":return this.hbrsMode;case"text/markdown":return this.mdMode;case"text/x-yaml":return this.yamlMode;default:return e.match(/^text\//)?this.textMode:null}},n.prototype.isEditableMimeType=function(e){return"application/javascript"===e||e.match(/^text\//)},n.prototype.isImageMimeType=function(e){return!!e.match(/^image\//)},n.prototype.setupFileManager=function(){return $("#assets").createFileTree({root:"/",script:"/admin/theme_assets",expandSpeed:-1,collapseSpeed:-1,multiFolder:!0,defaultSelected:"/default.theme",allowRenaming:!0,afterFileSelected:_.bind(this.onFileSelected,this),afterDirSelected:_.bind(this.onDirSelected,this),afterRename:_.bind(this.onRenameSelected,this),afterRender:_.bind(this.enableSorting,this)}),$("#admin_upload_target").bind("upload:complete",_.bind(this.uploadComplete,this))},n.prototype.onFileSelected=function(e){var t,n,i,o;return o=e.element,n=e.path,i=o?o.closest(".asset").attr("data-mime-type"):"",t=n?n.substring(0,n.lastIndexOf("/")+1):"",this.selected_file=n,$("#delete_asset").show(),Unite.debug(i),this.updateUploadPath(t),n?this.isEditableMimeType(i)?this.editFile(n,i):this.isImageMimeType(i)?this.previewFile(n,i):this.cantEditFile(n,i):this.noFile()},n.prototype.onDirSelected=function(e){return this.updateUploadPath(e.path),$("#delete_asset").hide()},n.prototype.onRenameSelected=function(e){var t,n;return t="/admin/theme_assets/rename/"+e.asset,$.put(t,{name:e.name}).success((n=this,function(){return n.changeRel(e),n.changeShowingTitle(e)}))},n.prototype.enableSorting=function(){return $("#assets > ul.jqueryFileTree").nestedSortable({listType:"ul",items:"li",disableNestingClass:"item",placeholder:"placeholder",forcePlaceholderSize:!0,errorClass:"placeholder-error",tabSize:30,isTree:!0,update:function(e,t){var n,i;return n=t.item.parents(".item").find(".location").attr("rel")||"/",i=t.item.find("a").attr("rel"),$.put("/admin/theme_assets/relocate/"+i,{new_path:n}).error(function(){return Unite.handleServerError()})}})},n.prototype.changeRel=function(e){var t;return(t=e.asset.split("/"))[t.length-1]=e.name,$("a[rel='"+e.asset+"']").attr("rel",t.join("/"))},n.prototype.changeShowingTitle=function(e){return $("#asset_name").find("strong").text(""+e.name)}
10,n.prototype.updateUploadPath=function(e){return $("#upload_path").text(e),$("#upload_path_field").val(e)},n.prototype.noFile=function(){return $("#asset_editor").hide(),$("#asset_image_preview").hide(),$("#cant_edit_asset_message").hide(),$("#save_asset").hide(),$("#asset_name").html("")},n.prototype.editFile=function(e,t){var n,i;return n="/themes/"+this.theme.get("slug")+e,$.getWithRedirect(n,(i=this,function(n){return $("#asset_name").html("Editing <strong>"+Unite.getFileName(e)+"</strong>"),$("#asset_editor").show(),$("#asset_image_preview").hide(),$("#cant_edit_asset_message").hide(),$("#save_asset").show(),Unite.autoload("ace",Unite.assets.js.ace,function(){return i.jsMode=i.jsMode||require("ace/mode/javascript").Mode,i.cssMode=i.cssMode||require("ace/mode/css").Mode,i.htmlMode=i.htmlMode||require("ace/mode/html").Mode,i.hbrsMode=i.hbrsMode||i.htmlMode,i.textMode=i.textMode||require("ace/mode/text").Mode,i.mdMode=i.mdMode||require("ace/mode/markdown").Mode,i.yamlMode=i.yamlMode||require("ace/mode/yaml").Mode,Unite.ace_editor=Unite.ace_editor||ace.edit("asset_editor"),Unite.ace_editor.getSession().setValue(n),Unite.ace_editor.getSession().setMode(new(i.getMode(t)))})}),function(){return $("#asset_name").html("<strong>"+Unite.getFileName(e)+"</strong> was not found on the server"),$("#asset_editor").hide(),$("#asset_image_preview").hide(),$("#cant_edit_asset_message").hide(),$("#save_asset").hide()})},n.prototype.previewFile=function(e){var t;return t='<img src="'+("/themes/"+this.theme.get("slug")+e)+'"/>',$("#asset_name").html("Showing <strong>"+Unite.getFileName(e)+"</strong>"),$("#asset_image_preview").html(t),$("#asset_editor").hide(),$("#asset_image_preview").show(),$("#cant_edit_asset_message").hide(),$("#save_asset").hide()},n.prototype.cantEditFile=function(e){return $("#asset_editor").hide(),$("#asset_image_preview").hide(),$("#cant_edit_asset_message").show(),$("#save_asset").hide(),$("#asset_name").html("<strong>"+Unite.getFileName(e)+"</strong> selected")},n.prototype.destroy=function(e){var t;return e.stopPropagation(),e.preventDefault(),t="/admin/theme_assets/"+this.selected_file,this.confirmDeleteDialog({html:'The file "'+this.selected_file+'" will be deleted permanently.',title:"Delete this file?",callback:function(){return $.post(t,{_method:"delete"}).success(function(){return $("#assets").fileTree().removeSelectedItem()}).error(function(e){return 404===e.status?$("#assets").fileTree().removeSelectedItem():(Unite.debug("error"),Unite.debug(arguments))})}})},n.prototype.save=function(e){var t,n,i;if(e.stopPropagation(),e.preventDefault(),this.selected_file)return n="/admin/theme_assets/"+this.selected_file,t=Unite.ace_editor.getSession().getValue(),$.post(n,{content:t}).success((i=this,function(){return i.closeAndRefreshPage()})).error(function(e){return function(t){return e.handleActiveModelError.apply(e,[null,t])}}(this))},n.prototype.clone=function(e){var t,n,i;return e.stopPropagation(),e.preventDefault(),t=$(JST["themes/_save_as"]({theme_name:this.theme.get("name")})),i=this,n=function(){var e,n,o;return o=i.theme.activate_url().replace("activate","fork"),n=$("#new_theme_name").val(),e=$(Unite.template["themes/forking"]()),$.ajax(o,{data:{name:n},type:"POST",success:function(){return i.closeAndRefreshPage()},error:function(t){return e.modal("hide"),i.handleActiveModelError.apply(i,[null,t])}}),t.modal("hide"),e.modal().on("hidden",function(){return e.remove()})},t.modal().on("hidden",function(){return t.remove()}).find("#create_theme_button").click(n).end().find("#new_theme_name").select().keyup(function(e){if(13===e.keyCode)return n()})},n.prototype.uploadComplete=function(){return $("#asset_files").html(JST["themes/_asset_uploader"]()),$("#assets").fileTree().refreshTree(),$("#upload_assets_add").show()},n.prototype.addAssetUploader=function(e){var t,n;if(e.preventDefault(),e.stopImmediatePropagation(),n=(t=$("#asset_files"))[0].childNodes.length,$(t[0]).find("li.adminFile").length<=3&&$('<li class="adminFile"><input type="file" id="asset_'+n+'" name="assets['+n+']" /></li>').appendTo(t),$(t[0]).find("li.adminFile").length>=3)return $(e.target).hide()},n}(Unite.Admin.View)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;Unite.Themes.StylesView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.id="themes_styles",n.prototype.className="has-sidebar",n.prototype.events={"click .style":"editStyle","click #new_style":"newStyle"},n.prototype.initialize=function(){return n.__super__.initialize.apply(this,arguments),this.collection.fetch().then((e=this,function(){return e.show()}));var e},n.prototype.render=function(){var e;return $(this.el).html(HandlebarsTemplates["styles/index"]({blockStyles:this.collection.blockStyles(),inlineStyles:this.collection.inlineStyles()})),$("#admin_view").html(this.el),_.each($(".style"),(e=this,function(t){return e.setVerticalAlignment($(t))})),this.setLoadSpeedometer(),this},n.prototype.setVerticalAlignment=function(e){var t;if(!((t=e.find("span")).height()>30))return t.css("line-height","30px")},n.prototype.setLoadSpeedometer=function(){var e;return e=HandlebarsTemplates["styles/speedometer"](),$("#speedometer").html(e),setTimeout(_.bind(this.animateLoad,this),1e3)},n.prototype.animateLoad=function(){var e,t,n;return t=(n=Unite.meta("font_load")/1e3)*(e=264),n>=1&&(t=e),$("#pointer").attr("style","transform: rotate("+t+"deg);")},n.prototype.editStyle=function(e){var t;return t=$(e.target).closest(".style").data("style-id"),document.location.hash="/admin/themes/styles/"+t},n.prototype.newStyle=function(){return document.location.hash="/admin/themes/styles/new"},n}(Unite.Admin.CollectionView)}.call(this);var AddPeopleView=Unite.Admin.View.extend({events:{"click .submit-button":"invite","change #fileupload":"importUsers","keyup .new-user input":"addOrRemoveNewUser"},initialize:function(){this.users=new Users,this.options.showInModal=!0,Handlebars.registerPartial("people.new",Unite.template["people/new"])},render:function(){return $(this.$el).find("input:first").focus(),this},renderModal:function(){return Unite.template["people/add"]({csrfToken:Unite.meta("csrf
10-token")})},invite:function(e){$(".submit-button").prop("disabled",!0),e.preventDefault();var t=this,n=[];return $("#new_users .new-user").each(function(){var e,t=$(this);t.addClass("inviting"),e=t.find("input").serializeObject(),n.push(e)}),$.post("/admin/profiles/add_people",{people:n},function(e){function n(){$("#users_invite .new-user").find("input").removeClass("new-user-error").tooltip("destroy")}function i(e){var t=e.email;return _.isString(t)||(t=e.email_addresses_attributes.length>0?e.email_addresses_attributes[0].address:""),$("#users_invite .new-user").filter(function(){return $(this).find("input[name=first_name]").val()===e.first_name&&$(this).find("input[name=last_name]").val()===e.last_name&&$(this).find("input[name=email]").val()===t})}function o(e){_.each(e,function(e){$input=i(e),$input.remove()})}function s(e){_.each(e,function(e){$input=i(e),a($input,e)})}function a(e,t){_.each(t.errors,function(t,n){$field=$(e).find(".new-user-"+n).find("input:first"),$field.addClass("new-user-error"),$(".new-user-errors ."+n).show()})}if(e){if(n(),o(e.savedEntries),t.trigger("people.modal.submitted",e.savedEntries),s(e.unsavedEntries),e.success)return t.showFlashMessage("notice",e.flash),void $(".close-modal").click();t.showFlashMessage("notice",e.flash,!1,{context:"people"})}}).always(function(){$(".submit-button").prop("disabled",!1)}),this},addOrRemoveNewUser:function(e){13===e.which&&this.addUser(e),8===e.which&&this.removeNewUser(e)},addUser:function(e){var t=$(e.target).closest(".new-user"),n=$(e.target).prop("name"),i=function(){return $(e.target).parent().next().find("input")},o=function(){return t.next().find("input:first")};t.is($(".new-user:last"))&&"email"===n?($(Unite.template["people/new"]()).appendTo("#new_users"),o().focus()):i().length<1?o().focus():i().focus()},removeNewUser:function(e){var t=$(e.target).closest(".new-user"),n=$(e.target).prop("name"),i=$(e.target).parent().prev().find("input"),o=t.prev().find("input:last");return $(e.target).val()||t.is($("tr.new-user:first"))||"first_name"!==n?$(e.target).val()||(i.length<1?o.focus():i.focus()):(o.focus(),t.remove()),!1},importUsers:function(){function e(e){_.each(e,function(e){$newUserHtml=$(Unite.template["people/new"]()),_.each(e,function(e,t){$newUserHtml.find("input:eq("+t+")").val(e)}),$newUserHtml.appendTo("#new_users")})}function t(){$("#new_users").find("tbody").remove()}var n=this;$("#upload_target").bind("upload:complete",function(){var i=JSON.parse(n.getJsonFromIFrame($(this)));if(i.hasOwnProperty("errors")){var o="There was a problem with the uploaded file. Error: "+i.errors[0];n.showFlashMessage("notice",o,!1,{context:"people"})}else{var s=i.users;t(),e(s)}}),$("#bulk_invite_users_form").submit(function(){$(this).prop("target","upload_target")}),$("#bulk_invite_users_form").submit()},getJsonFromIFrame:function(e){return e.contents().find("#json").text()}});(function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;this.CommunicationsView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.className="has-sidebar",n.prototype.id="receiver",n.prototype.model="receiver",n.prototype.events={"click .email-selected":"emailSelected","click .text-selected":"textSelected"},n.prototype.initialize=function(){return n.__super__.initialize.apply(this,arguments),this.sorter=new Unite.Admin.UserSorter,this.sort="name:asc"},n.prototype.render=function(){return $(this.el).html(HandlebarsTemplates["communication/index"]()),$("#admin_view").html(this.el),this.updateCollection(_.bind(this.showUsers,this)),this},n.prototype.showUsers=function(){return $("#communication-list-container").html(Unite.template["communication/list"]()),this.renderPeopleTemplate=Unite.template["communication/receiver"],this.enableInfiniteScroll(),this.enableSort("#receiver-list"),$("#receiver_filter").keyup((e=this,function(t){var n,i;if(n=String.fromCharCode(t.keyCode),/[a-zA-Z0-9]/.test(n)||8===t.keyCode)return""!==(i=$("#receiver_filter").val())?(e.filteredPeople=e.filterPeople(i),e.paginator.init(e.filteredPeople),e.resort(),e.disableBulkSelector()):(e.filteredPeople=null,e.resetPaginator(),e.resort(),e.enableBulkSelector())}));var e},n.prototype.disableBulkSelector=function(){return $("#receiver-bulk-checkbox").attr("disabled","disabled")},n.prototype.enableBulkSelector=function(){return $("#receiver-bulk-checkbox").removeAttr("disabled")},n.prototype.resetPaginator=function(){return this.paginator.init(this.collection.toJSON())},n.prototype.enableInfiniteScroll=function(){return this.paginator=new Unite.Admin.InfiniteReveal({render:(e=this,function(t){return e.renderPeopleTemplate({receiver:t})}),$el:this.$el.find("#receivers_list"),pageSize:100,container:this.$el.find("#receivers_list"),viewPort:this.$el.find("#receivers_list"),afterRender:_.bind(this.afterRender,this),items:this.collection.toJSON()});var e},n.prototype.enableSort=function(e){return this.sortableTable=new Unite.Admin.SortableTable(e),this.sort&&this.sortableTable.sortBy(this.sort),this.sortableTable.onSort((t=this,function(){return t.sort=t.sortableTable.sortCommand(),Unite.debug("rendering by "+t.
10sort),t.resort()}));var t},n.prototype.resort=function(){return this.paginator?this.paginator.init(this.applySort(this.filteredPeople?this.filteredPeople:this.collection.toJSON())):this.resetPaginator()},n.prototype.applySort=function(e){if(this.sorter&&e&&this.sort)return this.sorter.sortBy(e,this.sort)},n.prototype.filterPeople=function(e){return _.filter(this.collection.toJSON(),function(t){var n,i;return(n=_.values(_.pick(t,"preferred_name","last_name","email","groups","mailingLists"))).push(_.values(_.pick(t.number.first(),"number"))),i=_.flatten(n).join(" "),new RegExp(e,"i").test(i)})},n.prototype.updateCollection=function(e,t,n){var i,o,s,a,r;return $.isFunction(e)&&(n=e,e=this.id,t=this.collection),i=_.bind(function(t,n){return this.handleCollectionError(e,t,n)},this),t.length?(n(),$(".wait-for-load").removeClass("wait-for-load")):($("#"+e+"-list-container").html(JST._loading({nouns:e})),o=null,a=null,s=function(){if(a&&o)return t.setupRecipients(a,o),n(),$(".wait-for-load").removeClass("wait-for-load")},$.getJSON("/admin/communication",function(e){return a=e,s()}).fail(function(){return i}),Members.get("/api/v2/people/for_texting.json").done(function(e){return o="string"==typeof e?$.parseJSON(e):e,s()}).fail((r=this,function(){return r.$el.find("#users-list-content").html(Unite.template["errors/unavailable"]({page:"Users"}))})))},n.prototype.emailSelected=function(){var e;if(0!==(e=this.getSelected()).length)return new EmailSelectedPeopleView(e,this);this.showFlashMessage("notice","Select at least one person to send an email")},n.prototype.textSelected=function(){var e;if(0!==(e=this.getSelected()).length)return new TextSelectedPeopleView(e,this);this.showFlashMessage("notice","Select at least one person to send a text message")},n}(Unite.Admin.CollectionView)}).call(this),function(){this.InviteToTextingView=function(){function e(e,t){this.selectedPeople=e,this.view=t,this.info=this.selectedPeopleInfo(),this.showModal()}return e.prototype.selectedPeopleInfo=function(){var e,t;return t=[],e=[],this.selectedPeople.length,_.each(this.selectedPeople,function(n){return _.isEmpty(n.attributes.contactEmails)?e.push(n):t.push(n)}),this.recipients=t,{validRecipients:this.recipients.length>0,noEmailMessage:e.length?this.view.describeCollectionOfPeople(e)+" "+(1===e.length?"does":"do")+" not have an email address and will not receive invites":void 0,invitationMessage:t.length?this.view.describeCollectionOfPeople(t)+" will be invited to receive text messages from your Church":void 0}},e.prototype.showModal=function(){var e,t;return(e=$(HandlebarsTemplates["people/texting_invite_modal"]({info:this.info}))).on("hidden",function(){return e.remove()}),e.on("shown",(t=this,function(){return e.find("#send_invites").click(function(){var e;return e=t.view.getIdsFor(t.recipients),$.post("/admin/users/invite_to_texting",{people_ids:e},function(e){return t.view.showFlashMessage("notice",e.message),t.view.clearSelected(),t.view.resetPaginator()})})})),e.modal()},e}()}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;this.UsersView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.className="has-sidebar extra-wide",n.prototype.id="users",n.prototype.model="user",n.prototype.events={"click .change-role-button":"changeRole","click .change-visibility-button":"changeVisibility","click .add-people-button":"addPeople","click .reinvite-button":"reinvitePerson","click .delete-button":"deleteProfiles","click .edit-button":"edit","click .invite-to-texting-button":"inviteToTexting"},n.prototype.initialize=function(){return n.__super__.initialize.apply(this,arguments),this.sorter=new Unite.Admin.UserSorter,this.sort="name:asc"},n.prototype.showUsers=function(){return $("#users-list-container").html(Unite.template["people/list"]()),this.renderPeopleTemplate=Unite.template["people/person"],this.enableInfiniteScroll(),this.enableSort("#users-list"),$("#users-list").on("applyWidgets",function(){return $(this).find('[rel="tooltip"]').tooltip()}),$("#user_filter").keyup((e=this,function(t){var n,i;if(n=String.fromCharCode(t.keyCode),/[a-zA-Z0-9]/.test(n)||8===t.keyCode)return""!==(i=$("#user_filter").val())?(e.filteredPeople=e.filterPeople(i),e.paginator.init(e.filteredPeople),e.resort(),e.disableBulkSelector()):(e.filteredPeople=null,e.resetPaginator(),e.resort(),e.enableBulkSelector())}));var e},n.prototype.enableInfiniteScroll=function(){return this.paginator=new Unite.Admin.InfiniteReveal({render:(e=this,function(t){return e.renderPeopleTemplate({people:t})}),$el:this.$el.find("#users_list"),pageSize:100,container:this.$el.find("#users_list"),viewPort:this.$el.find("#users_list"),afterRender:_.bind(this.afterRender,this),items:this.collection.toJSON()});var e},n.prototype.enableSort=function(e){return this.sortableTable=new Unite.Admin.SortableTable(e),this.sort&&this.sortableTable.sortBy(this.sort),this.sortableTable.onSort((t=this,function(){return t.sort=t.sortableTable.sortCommand(),Unite.debug("rendering by "+t.
10sort),t.resort()}));var t},n.prototype.resort=function(){return this.paginator?this.paginator.init(this.applySort(this.filteredPeople?this.filteredPeople:this.collection.toJSON())):this.resetPaginator()},n.prototype.applySort=function(e){if(this.sorter&&e&&this.sort)return this.sorter.sortBy(e,this.sort)},n.prototype.afterRender=function(){if($("#users-list").find('[rel="tooltip"]').tooltip(),this.collectionSelected)return this.setAllDomElements(!0)},n.prototype.filterPeople=function(e){return _.filter(this.collection.toJSON(),function(t){var n,i,o;return i=_.values(_.pick(t,"preferred_name","last_name","email","role")),n=_.pluck(t.email_addresses,"address"),o=i.concat(n).join(" "),new RegExp(e,"i").test(o)})},n.prototype.resetPaginator=function(){return this.paginator.init(this.collection.toJSON())},n.prototype.disableBulkSelector=function(){return $("#user-bulk-checkbox").attr("disabled","disabled")},n.prototype.enableBulkSelector=function(){return $("#user-bulk-checkbox").removeAttr("disabled")},n.prototype.edit=function(e){var t,n,i,o,s,a,r;return i=(n=$(e.currentTarget)).parent(),o=i.html(),s=this.collection.get(n.data("id")),i.html(Unite.template["people/edit"]({person:s.toJSON()})),i.addClass("edit-person"),i.find("input").first().focus(),$(".edit-person input").on("click",function(e){return e.stopImmediatePropagation()}),r=this,a=function(e){var t;return t={id:s.id},e.children("input").each(function(){return t[$(this).attr("name")]=$(this).val()}),s.set(t),$.put("/admin/profiles/edit_person",t).fail(function(e){return r.showFlashMessage("notice",JSON.parse(e.responseText).message)})},t=function(e){return e.removeClass("edit-person"),e.html(o),e.children(".tooltip").hide(),$("tr").removeClass("hover")},i.find(".save-button").click(function(e){return e.stopImmediatePropagation(),a($(this).parent())}),i.find(".cancel-button").click(function(e){return e.stopImmediatePropagation(),t($(this).parent())}),i.on("keyup",function(e){if(13===e.which&&a($(this)),27===e.which)return t($(this))}),i.on("focusout",function(e){if(0===$(this).children(":focus").length&&!$.contains(e.currentTarget,e.target))return t($(this))})},n.prototype.updateCollection=function(e,t,n){var i,o,s,a,r;return $.isFunction(e)&&(n=e,e=this.id,t=this.collection),i=_.bind(function(t,n){
11return this.handleCollectionError(e,t,n)},this),t.length?(n(),$(".wait-for-load").removeClass("wait-for-load")):($("#"+e+"-list-container").html(JST._loading({nouns:e})),o=null,a=null,s=function(){if(a&&o)return t.setUsersAndPeople(a,o),n(),$(".wait-for-load").removeClass("wait-for-load")},$.getJSON("/admin/users",function(e){return a=e,s()}).fail(function(){return i}),Members.get("/api/v2/people.json").done(function(e){return o="string"==typeof e?$.parseJSON(e):e,s()}).fail((r=this,function(){return r.$el.find("#users-list-content").html(Unite.template["errors/unavailable"]({page:"Users"}))})))},n.prototype.byLastName=function(e){var t;return e.classList.contains("userTitle")?(t=e.children[0].innerHTML,_.isNaN(+t)?t:"!"):e.innerHTML},n.prototype.render=function(){return $(this.el).html(JST["users/index"]()),$("#admin_view").html(this.el),this.updateCollection(_.bind(this.showUsers,this)),this},n.prototype.changeRole=function(){var e,t,n,i;if(i=this,0!==(n=this.getSelected()).length)return t=i.changeRoleInfo(n),(e=$(JST["users/_choose_role"](t))).on("hidden",function(){return e.remove()}),e.on("shown",function(){return e.find(':radio[name="users_role"]').click(function(){var t;return t=e.find("input[name='users_role']:checked").val(),e.find("#users_without_emails").toggle("None"!==t)}),e.find("#update_users_role_button").click(function(){var t,o,s,a;return a=e.find("input[name='users_role']:checked","#users_choose_role").val(),s=i.getIdsFor(n),t=_.reject(e.find(".person-email"),function(e){return""===$(e).val()}),o=_.map(t,function(e){var t;return{id:(t=$(e)).data("person-id"),email:t.val()}}),$.put("/admin/profiles/edit_people_emails",{people:JSON.stringify(o)}).success(function(e){var t;return _.each(e.successes,function(e){return e=i.collection.presented(e),i.collection.get(e.id).set(e)}
11),""!==e.fails&&(t=e.fails+" did not have valid emails"),$.post("/admin/users/change_role",{role:a,people:s},function(e){return _.each(e.users,function(e){return i.collection.get(e.id).set({role:e.role,invitation_sent:e.invitation_sent,invited_at:e.invited_at,last_sign_in_at:e.last_sign_in_at})}),i.showFlashMessage("notice",e.message),t&&i.showFlashMessage("notice",t,!0,{persistent:!0,context:"admin"}),i.clearSelected(),i.resetPaginator()})})})}),e.modal();i.showFlashMessage("notice","Select at least one person to change their role")},n.prototype.changeRoleInfo=function(e){var t,n,i,o;return o=[],i=[],t=!1,n=parseInt(Unite.currentUser.remoteId),e.length,_.each(e,function(e){if(e.id===n&&(t=!0),!e.attributes.invitation_sent)return _.isEmpty(e.attributes.contactEmails)?i.push(e):o.push(e)}),{peopleWithoutEmail:i,noEmailMessage:i.length?this.describeCollectionOfPeople(i)+" "+(1===i.length?"does":"do")+" not have an email address":void 0,enterEmailAddressesMessage:"To invite them, enter their email "+(1===i.length?"address":"addresses"),changeRoleMessage:e.length?"Change the role of "+this.describeCollectionOfPeople(e)+" to":void 0,invitationMessage:o.length?this.describeCollectionOfPeople(o)+" will be invited to log in to Unite":void 0,changingSelfMessage:t?"Your own role will not be changed.":void 0}},n.prototype.changeVisibility=function(e){var t,n,i,o;if(0!==(n=this.getSelected()).length)return t=this.getIdsFor(n),i=$(e.target).data("visibility"),$.put("/admin/profiles/change_visibility",{visibility:i,people_ids:t},(o=this,function(e){return _.each(e,function(e){return o.collection.get(e.id).set({visible_in_unite:e.visible_in_unite})}),o.clearSelected(),o.resetPaginator()}));this.showFlashMessage("notice","Select at least one person to change their directory visibility")},n.prototype.addPeople=function(){var e,t;return(e=new AddPeopleView).on("people.modal.submitted",(t=this,function(e){return _.each(e,function(e){var n;if(_.isNumber(e.id))return(n=t.collection.presented(e)).checked=!0,n.isMember=!0,t.collection.add(n),t.setBulkCheckbox()})})),e.show()},n.prototype.reinvitePerson=function(e){var t,n;return n=this,(t=$(e.target)).addClass("inviting").attr("disabled",!0),$.post("/admin/users/reinvite",{profile:$(e.currentTarget).data("id")}).success(function(){return t.removeClass("inviting").addClass("success"),n.resetPaginator()}).error(function(e){return t.removeClass("inviting").attr("disabled",!1),n.resetPaginator(),n.showFlashMessage("notice",e.message)})},n.prototype.deleteProfiles=function(){var e,t,n,i,o,s,a,r;return s=this.getSelected(),0===(e=s.length)?this.showFlashMessage("notice","You must select at least one person to delete."):(o=1===e?"person":"people",t=parseInt(Unite.currentUser.remoteId),a=_.findWhere(s,{id:t}),i="Church 360\u02da Members"===Unite.meta("church_management_system")?" from 360\u02da Unite <i>and</i> 360\u02da Members":"",n='<div style="padding: 8px 16px;">\n  '+e+" "+o+" will be deleted permanently"+i+".\n  <u>This action cannot be undone.</u>\n</div>",a?($("#user-checkbox-"+a.id).prop("checked",!1),a.set({checked:!1}),this.showFlashMessage("error","You cannot delete yourself.")):this.confirmDeleteDialog({title:"Confirm Delete",html:n,callback:(r=this,function(){return $.put("/admin/profiles/delete_people",{profile_ids:r.getIdsFor(s)}).success(function(){return r.showFlashMessage("success",e+" "+o+" deleted.")}),r.collection.remove(s)})}))},n.prototype.inviteToTexting=function(){var e;if(Unite.permissions.optInEnabled){if(0!==(e=this.getSelected()).length)return new InviteToTextingView(e,this);this.showFlashMessage("notice","Select at least one person to invite them to receive texts")}else this.showFlashMessage("notice","The public opt-in page is not enabled, please enable it before sending invitations")},n}(Unite.Admin.CollectionView)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;Unite.Admin.Router=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.routes={"admin/pages":"listPages","admin/posts":"listPosts","admin/activity":"listEventEntries","admin/activity/email_log":"listEmailEntries","admin/activity/optins":"listTextingOptins","admin/activity/comments":"listComments","admin/users":"listUsers","admin/users/mailing_lists":"listMailingLists","admin/users/communication":"communication","admin/themes":"browseThemes","admin/themes/customize":"customizeTheme","admin/themes/edit":"editTheme","admin/themes/advanced":"advancedTheme","admin/themes/styles":"stylesTheme","admin/themes/styles(/new)(/:styleId)":"editStylesTheme","admin/settings":"editGeneralSettings","admin/settings/general":"editGeneralSettings","admin/settings/calendars":"editCalendars","admin/settings/domain":"editDomainSettings","admin/settings/googleAnalytics":"editGoogleAnalyticsSettings","admin/settings/integration":"editIntegrationSettings","admin/settings/social":"editSocialLinksSettings","admin/settings/texting":"editTextingSettings"},n.prototype.listPages=function(){var e;return e=new Documents,new NavigationView({documents:e,menuItems:null,templates:Unite.pageTemplates()})},n.prototype.listPosts=function(){var e;return e=new Posts,new PostsView({collection:e})},n.prototype.listComments=function(){var e;return e=new Comments,new CommentsView({collection:e})},n.prototype.listEventEntries=function(){var e,t;return e="events",t=new LoggerEntries({collectionType:e,url:"/api/v2/audits.json"}),new LoggerView({collection:t,collectionType:e})},n.prototype.listEmailEntries=function(){var e,t;return e="emails",t=new LoggerEntries({collectionType:e,url:"/admin/email_audits"}),new LoggerView({collection:t,collectionType:e})},n.prototype.listTextingOptins=function(){return new OptInActivityView},n.prototype.listUsers=function(){var e;return e=new Users,new UsersView({collection:e})},n.prototype.listMailingLists=function(){return new BaseMailingListsView},n.prototype.communication=function(){var e;return e=new Users,new CommunicationsView({collection:e})},n.prototype.browseThemes=function(){var e;return e=new Themes,new Unite.Themes.BrowseView({collection:e})},n.prototype.customizeTheme=function(){var e,t;
11return this.showInModal=!1,e=Unite.currentTheme(),t=new Theme({slug:e}),this.showViewAfterFetch("theme",t,Unite.Themes.CustomizeView)},n.prototype.editTheme=function(){var e,t;return this.showInModal=!1,e=Unite.currentTheme(),t=new Theme({slug:e}),this.showViewAfterFetch("theme",t,Unite.Themes.EditView)},n.prototype.advancedTheme=function(){var e,t;return this.showInModal=!1,e=Unite.currentTheme(),t=new Theme({slug:e}),this.showViewAfterFetch("theme",t,Unite.Themes.AdvancedView)},n.prototype.stylesTheme=function(){var e;return this.showInModal=!1,Unite.currentTheme(),e=new Styles,new Unite.Themes.StylesView({collection:e})},n.prototype.editStylesTheme=function(e){var t;return this.showInModal=!1,t="new"===e?new Style:new Style({id:e}),this.showViewAfterFetch("style",t,Unite.Themes.EditStylesView)},n.prototype.editGeneralSettings=function(){return new GeneralSettingsView},n.prototype.editCalendars=function(){return new CalendarsSettingsView},n.prototype.editDomainSettings=function(){return new DomainSettingsView},n.prototype.editGoogleAnalyticsSettings=function(){return new GoogleAnalyticsSettingsView},n.prototype.editIntegrationSettings=function(){return new IntegrationSettingsView},n.prototype.editSocialLinksSettings=function(){return new SocialLinksSettingsView},n.prototype.editTextingSettings=function(){return new TextingSettingsView},n.prototype.showViewAfterFetch=function(e,t,n){var i;return(i={showInModal:this.showInModal})[e]=t,t.fetch({success:function(){return new n(i)},error:function(){var t;return t='<span class="writeCopy">Could not load '+e+".</span>",new Unite.Admin.ErrorView({message:t})}})},n}(Backbone.Router)}.call(this),function(e){e.extend(e.fn,{validate:function(t){if(this.length){var n=e.data(this[0],"validator");return n||(n=new e.validator(t,this[0]),e.data(this[0],"validator",n),n.settings.onsubmit&&(this.find("input, button").filter(".cancel").click(function(){n.cancelSubmit=!0}),n.settings.submitHandler&&this.find("input, button").filter(":submit").click(function(){n.submitButton=this}),this.submit(function(t){function i(){if(n.settings.submitHandler){if(n.submitButton)var t=e("<input type='hidden'/>").attr("name",n.submitButton.name).val(n.submitButton.value).appendTo(n.currentForm);return n.settings.submitHandler.call(n,n.currentForm),n.submitButton&&t.remove(),!1}return!0}return n.settings.debug&&t.preventDefault(),n.cancelSubmit?(n.cancelSubmit=!1,i()):n.form()?n.pendingRequest?(n.formSubmitted=!0,!1):i():(n.focusInvalid(),!1)})),n)}t&&t.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing")},valid:function(){if(e(this[0]).is("form"))return this.validate().form();var t=!0,n=e(this[0].form).validate();return this.each(function(){t&=n.element(this)}),t},removeAttrs:function(t){var n={},i=this;return e.each(t.split(/\s/),function(e,t){n[t]=i.attr(t),i.removeAttr(t)}),n},rules:function(t,n){var i=this[0];if(t){var o=e.data(i.form,"validator").settings,s=o.rules,a=e.validator.staticRules(i);switch(t){case"add":e.extend(a,e.validator.normalizeRule(n)),s[i.name]=a,n.messages&&(o.messages[i.name]=e.extend(o.messages[i.name],n.messages));break;case"remove":if(!n)return delete s[i.name],a;var r={};return e.each(n.split(/\s/),function(e,t){r[t]=a[t],delete a[t]}),r}}var l=e.validator.normalizeRules(e.extend({},e.validator.metadataRules(i),e.validator.classRules(i),e.validator.attributeRules(i),e.validator.staticRules(i)),i);if(l.required){var c=l.required;delete l.required,l=e.extend({required:c},l)}return l}}),e.extend(e.expr[":"],{blank:function(t){return!e.trim(""+t.value)},filled:function(t){return!!e.trim(""+t.value)},unchecked:function(e){return!e.checked}}),e.validator=function(t,n){this.settings=e.extend(!0,{},e.validator.defaults,t),this.currentForm=n,this.init()},e.validator.format=function(t,n){return 1==arguments.length?function(){var n=e.makeArray(arguments);return n.unshift(t),e.validator.format.apply(this,n)}:(arguments.length>2&&n.constructor!=Array&&(n=e.makeArray(arguments).slice(1)),n.constructor!=Array&&(n=[n]),e.each(n,function(e,n){t=t.replace(new RegExp("\\{"+e+"\\}","g"),n)}),t)},e.extend(e.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:e([]),errorLabelContainer:e([]),onsubmit:!0,ignore:[],ignoreTitle:!1,onfocusin:function(e){this.lastActive=e,this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,e,this.settings.errorClass,this.settings.val
11idClass),this.addWrapper(this.errorsFor(e)).hide())},onfocusout:function(e){this.checkable(e)||!(e.name in this.submitted)&&this.optional(e)||this.element(e)},onkeyup:function(e){(e.name in this.submitted||e==this.lastElement)&&this.element(e)},onclick:function(e){e.name in this.submitted?this.element(e):e.parentNode.name in this.submitted&&this.element(e.parentNode)},highlight:function(t,n,i){e(t).addClass(n).removeClass(i)},unhighlight:function(t,n,i){e(t).removeClass(n).addClass(i)}},setDefaults:function(t){e.extend(e.validator.defaults,t)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:e.validator.format("Please enter no more than {0} characters."),minlength:e.validator.format("Please enter at least {0} characters."),rangelength:e.validator.format("Please enter a value between {0} and {1} characters long."),range:e.validator.format("Please enter a value between {0} and {1}."),max:e.validator.format("Please enter a value less than or equal to {0}."),min:e.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function t(t){var n=e.data(this[0].form,"validator"),i="on"+t.type.replace(/^validate/,"");n.settings[i]&&n.settings[i].call(n,this[0])}this.labelContainer=e(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||e(this.currentForm),this.containers=e(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var n=this.groups={};e.each(this.settings.groups,function(t,i){e.each(i.split(/\s/),function(e,i){n[i]=t})});var i=this.settings.rules;e.each(i,function(t,n){i[t]=e.validator.normalizeRule(n)}),e(this.currentForm).validateDelegate(":text, :password, :file, select, textarea","focusin focusout keyup",t).validateDelegate(":radio, :checkbox, select, option","click",t),this.settings.invalidHandler&&e(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),e.extend(this.submitted,this.errorMap),this.invalid=e.extend({},this.errorMap),this.valid()||e(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var e=0,t=this.currentElements=this.elements();t[e];e++)this.check(t[e]);return this.valid()},element:function(t){t=this.clean(t),this.lastElement=t,this.prepareElement(t),this.currentElements=e(t);var n=this.check(t);return n?delete this.invalid[t.name]:this.invalid[t.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),n},showErrors:function(t){if(t){for(var n in e.extend(this.errorMap,t),this.errorList=[],t)this.errorList.push({message:t[n],element:this.findByName(n)[0]});this.successList=e.grep(this.successList,function(e){return!(e.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){e.fn.resetForm&&e(this.currentForm).resetForm(),this.submitted={},this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(e){var t=0;for(var n in e)t++;return t},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return 0==this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{e(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(e){}},findLastActive:function(){var t=this.lastActive;return t&&1==e.grep(this.errorList,function(e){return e.element.name==t.name}).length&&t},elements:function(){var t=this,n={};return e([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return!this.name&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),!(this.name in n||!t.objectLength(e(this).rules()))&&(n[this.name]=!0,!0)})},clean:function(t){return e(t)[0]},errors:function(){return e(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=e([]),this.toHide=e([]),this.currentElements=e([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers
11)},prepareElement:function(e){this.reset(),this.toHide=this.errorsFor(e)},check:function(t){t=this.clean(t),this.checkable(t)&&(t=this.findByName(t.name).not(this.settings.ignore)[0]);var n=e(t).rules(),i=!1;for(var o in n){var s={method:o,parameters:n[o]};try{var a=e.validator.methods[o].call(this,t.value.replace(/\r/g,""),t,s.parameters);if("dependency-mismatch"==a){i=!0;continue}if(i=!1,"pending"==a)return void(this.toHide=this.toHide.not(this.errorsFor(t)));if(!a)return this.formatAndAdd(t,s),!1}catch(e){throw this.settings.debug&&window.console&&console.log("exception occured when checking element "+t.id+", check the '"+s.method+"' method",e),e}}if(!i)return this.objectLength(n)&&this.successList.push(t),!0},customMetaMessage:function(t,n){if(e.metadata){var i=this.settings.meta?e(t).metadata()[this.settings.meta]:e(t).metadata();return i&&i.messages&&i.messages[n]}},customMessage:function(e,t){var n=this.settings.messages[e];return n&&(n.constructor==String?n:n[t])},findDefined:function(){for(var e=0;e<arguments.length;e++)if(void 0!==arguments[e])return arguments[e]},defaultMessage:function(t,n){return this.findDefined(this.customMessage(t.name,n),this.customMetaMessage(t,n),!this.settings.ignoreTitle&&t.title||void 0,e.validator.messages[n],"<strong>Warning: No message defined for "+t.name+"</strong>")},formatAndAdd:function(e,t){var n=this.defaultMessage(e,t.method),i=/\$?\{(\d+)\}/g;"function"==typeof n?n=n.call(this,t.parameters,e):i.test(n)&&(n=jQuery.format(n.replace(i,"{$1}"),t.parameters)),this.errorList.push({message:n,element:e}),this.errorMap[e.name]=n,this.submitted[e.name]=n},addWrapper:function(e){return this.settings.wrapper&&(e=e.add(e.parent(this.settings.wrapper))),e},defaultShowErrors:function(){for(var e=0;this.errorList[e];e++){var t=this.errorList[e];this.settings.highlight&&this.settings.highlight.call(this,t.element,this.settings.errorClass,this.settings.validClass),this.showLabel(t.element,t.message)}if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(e=0;this.successList[e];e++)this.showLabel(this.successList[e]);if(this.settings.unhighlight){e=0;for(var n=this.validElements();n[e];e++)this.settings.unhighlight.call(this,n[e],this.settings.errorClass,this.settings.validClass)}this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return e(this.errorList).map(function(){return this.element})},showLabel:function(t,n){var i=this.errorsFor(t);i.length?(i.removeClass().addClass(this.settings.errorClass),i.attr("generated")&&i.html(n)):(i=e("<"+this.settings.errorElement+"/>").attr({for:this.idOrName(t),generated:!0}).addClass(this.settings.errorClass).html(n||""),this.settings.wrapper&&(i=i.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(i).length||(this.settings.errorPlacement?this.settings.errorPlacement(i,e(t)):i.insertAfter(t))),!n&&this.settings.success&&(i.text(""),"string"==typeof this.settings.success?i.addClass(this.settings.success):this.settings.success(i)),this.toShow=this.toShow.add(i)},errorsFor:function(t){var n=this.idOrName(t);return this.errors().filter(function(){return e(this).attr("for")==n})},idOrName:function(e){return this.groups[e.name]||(this.checkable(e)?e.name:e.id||e.name)},checkable:function(e){return/radio|checkbox/i.test(e.type)},findByName:function(t){var n=this.currentForm;return e(document.getElementsByName(t)).map(function(e,i){return i.form==n&&i.name==t&&i||null})},getLength:function(t,n){switch(n.nodeName.toLowerCase()){case"select":return e("option:selected",n).length;case"input":if(this.checkable(n))return this.findByName(n.name).filter(":checked").length}return t.length},depend:function(e,t){return!this.dependTypes[typeof e]||this.dependTypes[typeof e](e,t)},dependTypes:{boolean:function(e){return e},string:function(t,n){return!!e(t,n.form).length},function:function(e,t){return e(t)}},optional:function(t){return!e.validator.methods.required.call(this,e.trim(t.value),t)&&"depen
11dency-mismatch"},startRequest:function(e){this.pending[e.name]||(this.pendingRequest++,this.pending[e.name]=!0)},stopRequest:function(t,n){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[t.name],n&&0==this.pendingRequest&&this.formSubmitted&&this.form()?(e(this.currentForm).submit(),this.formSubmitted=!1):!n&&0==this.pendingRequest&&this.formSubmitted&&(e(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t){return e.data(t,"previousValue")||e.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},dateDE:{dateDE:!0},number:{number:!0},numberDE:{numberDE:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,n){t.constructor==String?this.classRuleSettings[t]=n:e.extend(this.classRuleSettings,t)},classRules:function(t){var n={},i=e(t).attr("class");return i&&e.each(i.split(" "),function(){this in e.validator.classRuleSettings&&e.extend(n,e.validator.classRuleSettings[this])}),n},attributeRules:function(t){var n={},i=e(t);for(var o in e.validator.methods){var s=i.attr(o);s&&(n[o]=s)}return n.maxlength&&/-1|2147483647|524288/.test(n.maxlength)&&delete n.maxlength,n},metadataRules:function(t){if(!e.metadata)return{};var n=e.data(t.form,"validator").settings.meta;return n?e(t).metadata()[n]:e(t).metadata()},staticRules:function(t){var n={},i=e.data(t.form,"validator");return i.settings.rules&&(n=e.validator.normalizeRule(i.settings.rules[t.name])||{}),n},normalizeRules:function(t,n){return e.each(t,function(i,o){if(!1!==o){if(o.param||o.depends){var s=!0;switch(typeof o.depends){case"string":s=!!e(o.depends,n.form).length;break;case"function":s=o.depends.call(n,n)}s?t[i]=void 0===o.param||o.param:delete t[i]}}else delete t[i]}),e.each(t,function(i,o){t[i]=e.isFunction(o)?o(n):o}),e.each(["minlength","maxlength","min","max"],function(){t[this]&&(t[this]=Number(t[this]))}),e.each(["rangelength","range"],function(){t[this]&&(t[this]=[Number(t[this][0]),Number(t[this][1])])}),e.validator.autoCreateRanges&&(t.min&&t.max&&(t.range=[t.min,t.max],delete t.min,delete t.max),t.minlength&&t.maxlength&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t.messages&&delete t.messages,t},normalizeRule:function(t){if("string"==typeof t){var n={};e.each(t.split(/\s/),function(){n[this]=!0}),t=n}return t},addMethod:function(t,n,i){e.validator.methods[t]=n,e.validator.messages[t]=null!=i?i:e.validator.messages[t],n.length<3&&e.validator.addClassRules(t,e.validator.normalizeRule(t))},methods:{required:function(t,n,i){if(!this.depend(i,n))return"dependency-mismatch";switch(n.nodeName.toLowerCase()){case"select":var o=e(n).val();return o&&o.length>0;case"input":if(this.checkable(n))return this.getLength(t,n)>0;default:return e.trim(t).length>0}},remote:function(t,n,i){if(this.optional(n))return"dependency-mismatch";var o=this.previousValue(n);if(this.settings.messages[n.name]||(this.settings.messages[n.name]={}),o.originalMessage=this.settings.messages[n.name].remote,this.settings.messages[n.name].remote=o.message,i="string"==typeof i&&{url:i}||i,this.pending[n.name])return"pending";if(o.old===t)return o.valid;o.old=t;var s=this;this.startRequest(n);var a={};return a[n.name]=t,e.ajax(e.extend(!0,{url:i,mode:"abort",port:"validate"+n.name,dataType:"json",data:a,success:function(i){s.settings.messages[n.name].remote=o.originalMessage;var a=!0===i;if(a){var r=s.formSubmitted;s.prepareElement(n),s.formSubmitted=r,s.successList.push(n),s.showErrors()}else{var l={},c=i||s.defaultMessage(n,"remote");l[n.name]=o.message=e.isFunction(c)?c(t):c,s.showErrors(l)}o.valid=a,s.stopRequest(n,a)}},i)),"pending"},minlength:function(t,n,i){return this.optional(n)||this.getLength(e.trim(t),n)>=i},maxlength:function(t,n,i){return this.optional(n)||this.getLength(e.trim(t),n)<=i},rangelength:function(t,n,i){var o=this.getLength(e.trim(t),n);return this.optional(n)||o>=i[0]&&o<=i[1]},min:function(e,t,n){return this.optional(t)||e>=n},max:function(e,t,n){return this.optional(t)||e<=n},range:function(e,t,n){return this.optional(t)||e>=n[0]&&e<=n[1]},email:function(e,t){return this.optional(t)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(e)},url:function(e,t){return this.optional(t)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(e)},date:function(e,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(e))},dateISO:function(e,t){return this.optional(t)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(e)},number:function(e,t){return this.optional(t)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(e)},digits:function(e,t){return this.optional(t)||/^\d+$/.test(e)},creditcard:function(e,t){if(this.optional(t))return"dependency-mismatch";if(/[^0-9-]+/.test(e))return!1;for(var n=0,i=0,o=!1,s=(e=e.replace(/\D/g,"")).length-1;s>=0;s--){var a=e.charAt(s);
11i=parseInt(a,10);o&&(i*=2)>9&&(i-=9),n+=i,o=!o}return n%10==0},accept:function(e,t,n){return n="string"==typeof n?n.replace(/,/g,"|"):"png|jpe?g|gif",this.optional(t)||e.match(new RegExp(".("+n+")$","i"))},equalTo:function(t,n,i){return t==e(i).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){e(n).valid()}).val()}}}),e.format=e.validator.format}(jQuery),function(e){var t={};if(e.ajaxPrefilter)e.ajaxPrefilter(function(e,n,i){var o=e.port;"abort"==e.mode&&(t[o]&&t[o].abort(),t[o]=i)});else{var n=e.ajax;e.ajax=function(i){var o=("mode"in i?i:e.ajaxSettings).mode,s=("port"in i?i:e.ajaxSettings).port;return"abort"==o?(t[s]&&t[s].abort(),t[s]=n.apply(this,arguments)):n.apply(this,arguments)}}}(jQuery),function(e){jQuery.event.special.focusin||jQuery.event.special.focusout||!document.addEventListener||e.each({focus:"focusin",blur:"focusout"},function(t,n){function i(t){return(t=e.event.fix(t)).type=n,e.event.handle.call(this,t)}e.event.special[n]={setup:function(){this.addEventListener(t,i,!0)},teardown:function(){this.removeEventListener(t,i,!0)},handler:function(t){return arguments[0]=e.event.fix(t),arguments[0].type=n,e.event.handle.apply(this,arguments)}}}),e.extend(e.fn,{validateDelegate:function(t,n,i){return this.bind(n,function(n){var o=e(n.target);if(o.is(t))return i.apply(o,arguments)})}})}(jQuery),function(e){var t,n,i,o,s,a,r,l,c,u,d,p,h,m,f,g,v,y,b,w,_,x,k,C,T,S,$,P,M,E,F,A,I,U,H,D,O,N,B,L,R,z=(t=65,n='<div class="colorpicker"><div class="colorpicker_color"><div><div></div></div></div><div class="colorpicker_hue"><div></div></div><div class="colorpicker_new_color"></div><div class="colorpicker_current_color"></div><div class="colorpicker_hex"><input type="text" maxlength="6" size="6" /></div><div class="colorpicker_rgb_r colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_g colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_h colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_s colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_submit"></div></div>',i={eventName:"click",onShow:function(){},onBeforeShow:function(){},onHide:function(){},onChange:function(){},onSubmit:function(){},onAutoSelection:function(){},color:"ff0000",livePreview:!0,flat:!1},o=function(t,n){var i=N(t);e(n).data("colorpicker").fields.eq(1).val(i.r).end().eq(2).val(i.g).end().eq(3).val(i.b).end()},s=function(t,n){e(n).data("colorpicker").fields.eq(4).val(t.h).end().eq(5).val(t.s).end().eq(6).val(t.b).end()},a=function(t,n){e(n).data("colorpicker").fields.eq(0).val(L(t)).end()},r=function(t,n){e(n).data("colorpicker").selector.css("backgroundColor","#"+L({h:t.h,s:100,b:100})),e(n).data("colorpicker").selectorIndic.css({left:parseInt(150*t.s/100,10),top:parseInt(150*(100-t.b)/100,10)})},l=function(t,n){e(n).data("colorpicker").hue.css("top",parseInt(150-150*t.h/360,10))},c=function(t,n){e(n).data("colorpicker").currentColor.css("backgroundColor","#"+L(t))},u=function(t,n){e(n).data("colorpicker").newColor.css("backgroundColor","#"+L(t))},d=function(n){var i=n.charCode||n.keyCode||-1;if(i>t&&i<=90||32==i)return!1;!0===e(this).parent().parent().data("colorpicker").livePreview&&p.apply(this)},p=function(t){var n,i=e(this).parent().parent();this.parentNode.className.indexOf("_hex")>0?i.data("colorpicker").color=n=D(U(this.value)):this.parentNode.className.indexOf("_hsb")>0?i.data("colorpicker").color=n=A({h:parseInt(i.data("colorpicker").fields.eq(4).val(),10),s:parseInt(i.data("colorpicker").fields.eq(5).val(),10),b:parseInt(i.data("colorpicker").fields.eq(6).val(),10)
12}):i.data("colorpicker").color=n=O(I({r:parseInt(i.data("colorpicker").fields.eq(1).val(),10),g:parseInt(i.data("colorpicker").fields.eq(2).val(),10),b:parseInt(i.data("c
12olorpicker").fields.eq(3).val(),10)})),t&&(o(n,i.get(0)),a(n,i.get(0)),s(n,i.get(0))),r(n,i.get(0)),l(n,i.get(0)),u(n,i.get(0)),i.data("colorpicker").onChange.apply(i,[n,L(n),N(n)])},h=function(){e(this).parent().parent().data("colorpicker").fields.parent().removeClass("colorpicker_focus")},m=function(){t=this.parentNode.className.indexOf("_hex")>0?70:65,e(this).parent().parent().data("colorpicker").fields.parent().removeClass("colorpicker_focus"),e(this).parent().addClass("colorpicker_focus")},f=function(t){var n=e(this).parent().find("input").focus(),i={el:e(this).parent().addClass("colorpicker_slider"),max:this.parentNode.className.indexOf("_hsb_h")>0?360:this.parentNode.className.indexOf("_hsb")>0?100:255,y:t.pageY,field:n,val:parseInt(n.val(),10),preview:e(this).parent().parent().data("colorpicker").livePreview};e(document).bind("mouseup",i,v),e(document).bind("mousemove",i,g)},g=function(e){return e.data.field.val(Math.max(0,Math.min(e.data.max,parseInt(e.data.val+e.pageY-e.data.y,10)))),e.data.preview&&p.apply(e.data.field.get(0),[!0]),!1},v=function(t){return p.apply(t.data.field.get(0),[!0]),t.data.el.removeClass("colorpicker_slider").find("input").focus(),e(document).unbind("mouseup",v),e(document).unbind("mousemove",g),!1},y=function(){var t={cal:e(this).parent(),y:e(this).offset().top};t.preview=t.cal.data("colorpicker").livePreview,e(document).bind("mouseup",t,w),e(document).bind("mousemove",t,b)},b=function(e){return p.apply(e.data.cal.data("colorpicker").fields.eq(4).val(parseInt(360*(150-Math.max(0,Math.min(150,e.pageY-e.data.y)))/150,10)).get(0),[e.data.preview]),!1},w=function(t){return o(t.data.cal.data("colorpicker").color,t.data.cal.get(0)),a(t.data.cal.data("colorpicker").color,t.data.cal.get(0)),e(document).unbind("mouseup",w),e(document).unbind("mousemove",b),!1},_=function(t){var n={cal:e(this).parent(),pos:e(this).offset()};n.preview=n.cal.data("colorpicker").livePreview,e(document).bind("mouseup",n,k),e(document).bind("mousemove",n,x),t.data=n,x(t)},x=function(e){return p.apply(e.data.cal.data("colorpicker").fields.eq(6).val(parseInt(100*(150-Math.max(0,Math.min(150,e.pageY-e.data.pos.top)))/150,10)).end().eq(5).val(parseInt(100*Math.max(0,Math.min(150,e.pageX-e.data.pos.left))/150,10)).get(0),[e.data.preview]),!1},k=function(t){return o(t.data.cal.data("colorpicker").color,t.data.cal.get(0)),a(t.data.cal.data("colorpicker").color,t.data.cal.get(0)),e(document).unbind("mouseup",k),e(document).unbind("mousemove",x),!1},C=function(){e(this).addClass("colorpicker_focus")},T=function(){e(this).removeClass("colorpicker_focus")},S=function(){var t=e(this).parent(),n=t.data("colorpicker").color;t.data("colorpicker").origColor=n,c(n,t.get(0)),t.data("colorpicker").onSubmit(n,L(n),N(n),t.data("colorpicker").el)},$=function(){e(this).parent().parent().data("colorpicker").onAutoSelection()},P=function(){var t=e("#"+e(this).data("colorpickerId"));t.data("colorpicker").onBeforeShow.apply(this,[t.get(0)]);var n=e(this).offset(),i=F(),o=n.top+this.offsetHeight,s=n.left;return o+176>i.t+i.h&&(o-=this.offsetHeight+176),s+356>i.l+i.w&&(s-=356),t.css({left:s+"px",top:o+"px"}),0!=t.data("colorpicker").onShow.apply(this,[t.get(0)])&&t.show(),e(document).bind("mousedown",{cal:t},M),!1},M=function(t){E(t.data.cal.get(0),t.target,t.data.cal.get(0))||(0!=t.data.cal.data("colorpicker").onHide.apply(this,[t.data.cal.get(0)])&&t.data.cal.hide(),e(document).unbind("mousedown",M))},E=function(e,t,n){if(e==t)return!0;if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return!!(16&e.compareDocumentPosition(t));for(var i=t.parentNode;i&&i!=n;){if(i==e)return!0;i=i.parentNode}return!1},F=function(){var e="CSS1Compat"==document.compatMode;return{l:window.pageXOffset||(e?document.documentElement.scrollLeft:document.body.scrollLeft),t:window.pageYOffset||(e?document.documentElement.scrollTop:document.body.scrollTop),w:window.innerWidth||(e?document.documentElement.clientWidth:document.body.clientWidth),h:window.innerHeight||(e?document.documentElement.clientHeight:document.body.clientHeight)}},A=function(e){return{h:Math.min(360,Math.max(0,e.h)),s:Math.min(100,Math.max(0,e.s)),b:Math.min(100,Math.max(0,e.b))}},I=function(e){return{r:Math.min(255,Math.max(0,e.r)),g:Math.min(255,Math.max(0,e.g)),b:Math.min(255,Math.max(0,e.b))}},U=function(e){var t=6-e.length;if(t>0){for(var n=[],i=0;i<t;i++)n.push("0");n.push(e),e=n.join("")}return e},H=function(e){return{r:(e=parseInt(e.indexOf("#")>-1?e.substring(1):e,16))>>
1216,g:(65280&e)>>8,b:255&e}},D=function(e){return O(H(e))},O=function(e){var t={h:0,s:0,b:0},n=Math.min(e.r,e.g,e.b),i=Math.max(e.r,e.g,e.b),o=i-n;return t.b=i,t.s=0!=i?255*o/i:0,0!=t.s?e.r==i?t.h=(e.g-e.b)/o:e.g==i?t.h=2+(e.b-e.r)/o:t.h=4+(e.r-e.g)/o:t.h=-1,t.h*=60,t.h<0&&(t.h+=360),t.s*=100/255,t.b*=100/255,t},N=function(e){var t={},n=Math.round(e.h),i=Math.round(255*e.s/100),o=Math.round(255*e.b/100);if(0==i)t.r=t.g=t.b=o;else{var s=o,a=(255-i)*o/255,r=n%60*(s-a)/60;360==n&&(n=0),n<60?(t.r=s,t.b=a,t.g=a+r):n<120?(t.g=s,t.b=a,t.r=s-r):n<180?(t.g=s,t.r=a,t.b=a+r):n<240?(t.b=s,t.r=a,t.g=s-r):n<300?(t.b=s,t.g=a,t.r=a+r):n<360?(t.r=s,t.g=a,t.b=s-r):(t.r=0,t.g=0,t.b=0)}return{r:Math.round(t.r),g:Math.round(t.g),b:Math.round(t.b)}},B=function(t){var n=[t.r.toString(16),t.g.toString(16),t.b.toString(16)];return e.each(n,function(e,t){1==t.length&&(n[e]="0"+t)}),n.join("")},L=function(e){return B(N(e))},R=function(){var t=e(this).parent(),n=t.data("colorpicker").origColor;t.data("colorpicker").color=n,o(n,t.get(0)),a(n,t.get(0)),s(n,t.get(0)),r(n,t.get(0)),l(n,t.get(0)),u(n,t.get(0))},{init:function(t){if("string"==typeof(t=e.extend({},i,t||{})).color)t.color=D(t.color);else if(null!=t.color.r&&null!=t.color.g&&null!=t.color.b)t.color=O(t.color);else{if(null==t.color.h||null==t.color.s||null==t.color.b)return this;t.color=A(t.color)}return this.each(function(){if(!e(this).data("colorpickerId")){var i=e.extend({},t);i.template&&(n=i.template),i.origColor=t.color;var g="collorpicker_"+parseInt(1e3*Math.random());e(this).data("colorpickerId",g);var v=e(n).attr("id",g);i.flat?v.appendTo(this).show():v.appendTo(document.body),i.fields=v.find("input").bind("keyup",d).bind("change",p).bind("blur",h).bind("focus",m),v.find("span").bind("mousedown",f).end().find(">div.colorpicker_current_color").bind("click",R),i.selector=v.find("div.colorpicker_color").bind("mousedown",_),i.selectorIndic=i.selector.find("div div"),i.el=this,i.hue=v.find("div.colorpicker_hue div"),v.find("div.colorpicker_hue").bind("mousedown",y),i.newColor=v.find("div.colorpicker_new_color"),i.currentColor=v.find("div.colorpicker_current_color"),v.data("colorpicker",i),v.find("div.colorpicker_submit").bind("mouseenter",C).bind("mouseleave",T).bind("click",S),v.find("div.colorpicker_auto button").bind("click",$),o(i.color,v.get(0)),s(i.color,v.get(0)),a(i.color,v.get(0)),l(i.color,v.get(0)),r(i.color,v.get(0)),c(i.color,v.get(0)),u(i.color,v.get(0)),i.flat?v.css({position:"relative",display:"block"}):e(this).bind(i.eventName,P)}})},showPicker:function(){return this.each(function(){e(this).data("colorpickerId")&&P.apply(this)})},hidePicker:function(){return this.each(function(){e(this).data("colorpickerId")&&e("#"+e(this).data("colorpickerId")).hide()})},setColor:function(t){if("string"==typeof t)t=D(t);else if(null!=t.r&&null!=t.g&&null!=t.b)t=O(t);else{if(null==t.h||null==t.s||null==t.b)return this;t=A(t)}return this.each(function(){if(e(this).data("colorpickerId")){var n=e("#"+e(this).data("colorpickerId"));n.data("colorpicker").color=t,n.data("colorpicker").origColor=t,o(t,n.get(0)),s(t,n.get(0)),a(t,n.get(0)),l(t,n.get(0)),r(t,n.get(0)),c(t,n.get(0)),u(t,n.get(0))}})}});e.fn.extend({ColorPicker:z.init,ColorPickerHide:z.hidePicker,ColorPickerShow:z.showPicker,ColorPickerSetColor:z.setColor})}(jQuery),jQuery&&function(e){function t(t,n){function i(e){var t='<ul class="jqueryFileTree start"><li class="wait">'+n.loadMessage+"<li></ul>";e.html(t)}
12function o(t,i){(t=e(t)).addClass("wait"),e(".jqueryFileTree.start").remove();var o=e.get(n.script,{dir:i});o.success(function(e){t.find(".start").html(""),t.removeClass("wait").append(e),n.root==i?t.find("ul:hidden").show():t.find("ul:hidden").slideDown(c),r.attemptToSelectSelectedPath(),n.afterRender()}),o.error(function(){t.removeClass("wait").addClass("error").attr("title","This directory was not found.")})}function s(){e(".assetRenamer").remove(),e(".assetNameHidden").show()}function a(e){13==e.keyCode&&r.commitRename(),27==e.keyCode&&r.abortRename()}null==(n=n||{}).root&&(n.root="/"),null==n.script&&(n.script="jqueryFileTree.php"),null==n.expandSpeed&&(n.expandSpeed=500),null==n.collapseSpeed&&(n.collapseSpeed=500),null==n.expandEasing&&(n.expandEasing=null),null==n.collapseEasing&&(n.collapseEasing=null),null==n.multiFolder&&(n.multiFolder=!0),null==n.allowRenaming&&(n.allowRenameing=!1),null==n.loadMessage&&(n.loadMessage="Loading..."),this.element=t,this.selectedItem=null,this.selectedPath=n.defaultSelected;var r=this,l={duration:n.collapseSpeed,easing:n.collapseEasing},c={duration:n.expandSpeed,easing:n.expandEasing};t.delegate(".assetName","hover",function(){e(this).toggleClass("hovered")}),t.delegate("li a","click",function(){var t=e(this),i=t.parent(),o=i.parent(),a=t.attr("rel");return s(),o.hasClass("directory")?(o.hasClass("collapsed")?r.expandDirectory(o,a):r.collapseDirectory(o,a),!i.hasClass("selected")&&n.afterDirSelected({element:t,path:a})):!i.hasClass("selected")&&n.afterFileSelected({element:t,path:a}),i.hasClass("selected")||(r.selectedItem&&r.selectedItem.removeClass("selected"),r.selectedItem=i,r.selectedItem&&r.selectedItem.addClass("selected")),!1}),n.allowRenaming&&t.delegate("li a","dblclick",function(){r.renameSelectedItem()}),this.expandDirectory=function(e,t){n.multiFolder||(e.parent().find("ul").slideUp(l),e.parent().find("li.directory").removeClass("expanded").addClass("collapsed")),e.find("ul").remove(),o(e,escape(t.match(/.*\//))),e.removeClass("collapsed").addClass("expanded")},this.collapseDirectory=function(e){e.find("ul").slideUp(l),e.removeClass("expanded").addClass("collapsed")},this.render=function(){i(this.element),o(this.element,escape(n.root))},this.selectPath=function(e){this.selectedPath=e,this.selectedItem=null,this.attemptToSelectSelectedPath()},this.attemptToSelectSelectedPath=function(){if(this.selectedPath&&!this.selectedItem){this.log('Attempting to select "'+this.selectedPath+'"');var t=e('.asset a[rel="'+this.selectedPath+'"]');t.length>0?t.click():this.ensurePathIsLoaded(this.dirname(this.selectedPath))}},this.dirname=function(e){var t=e.lastIndexOf("/");return t<0?"/":e.slice(0,t)},this.log=function(e){window.console&&window.console.log&&window.console.log(e)},this.ensurePathIsLoaded=function(t){for(var n=t.split(/(?=\/)/),i=0,o=n.length;i<o;i++){var s=n.slice(0,i+1).join("")+"/",a=e('a[rel="'+s+'"]').closest(".directory");if(Unite.debug(s),Unite.debug(a),0==a.length)this.log("Couldn't find directory \""+s+'"');else if(a.hasClass("collapsed"))return this.log('Attempting to open the directory "'+s+'"'),void r.expandDirectory(a,s)}},this.refreshTree=function(){this.element.html(""),o(this.element,escape(n.root))},this.removeSelectedItem=function(){this.selectedItem&&(this.selectedItem.parent().remove(),this.selectedItem=null,n.afterFileSelected({element:null,path:null}))},this.renameSelectedItem=function(){if(this.selectedItem){var t=this.selectedItem.find("a");e(document.createElement("input")).attr("type","text").addClass("assetRenamer").blur(this.abortRename).keyup(a).val(t.text()).appendTo(this.selectedItem).select(),t.addClass("assetNameHidden").hide()}},this.commitRename=function(){if(this.selectedItem){var e=this.selectedItem.find("a"),t=this.selectedItem.find("input"),i=e.attr("rel"),o=t.val();o&&(e.html(o),n.afterRename&&n.afterRename({asset:i,name:o}))}s()},this.abortRename=function(){s()}}e.extend(e.fn,{fileTree:function(){return e(this).data("tree")},createFileTree:function(n){var i,o,s=e(this);return s.each(function(){i=e(this),o=new t(i,n),i.data("tree",o),o.render()}),s}})}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){function t(){var t=n(this),a=s.settings;return isNaN(t.datetime)||(0==a.cutoff||Math.abs(o(t.datetime))<a.cutoff)&&e(this).text(i(t.datetime)),this}function n(t){if(!(t=e(t)).data("timeago")){t.data("timeago",{datetime:s.datetime(t)});var n=e.trim(t.text());s.settings.localeTitle?t.attr("title",t.data("timeago").datetime.toLocaleStr
12ing()):!(n.length>0)||s.isTime(t)&&t.attr("title")||t.attr("title",n)}return t.data("timeago")}function i(e){return s.inWords(o(e))}function o(e){return(new Date).getTime()-e.getTime()}e.timeago=function(t){return t instanceof Date?i(t):i("string"==typeof t?e.timeago.parse(t):"number"==typeof t?new Date(t):e.timeago.datetime(t))};var s=e.timeago;e.extend(e.timeago,{settings:{refreshMillis:6e4,allowPast:!0,allowFuture:!1,localeTitle:!1,cutoff:0,strings:{prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",inPast:"any moment now",seconds:"less than a minute",minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years",wordSeparator:" ",numbers:[]}},inWords:function(t){function n(n,o){var s=e.isFunction(n)?n(o,t):n,a=i.numbers&&i.numbers[o]||o;return s.replace(/%d/i,a)}if(!this.settings.allowPast&&!this.settings.allowFuture)throw"timeago allowPast and allowFuture settings can not both be set to false.";var i=this.settings.strings,o=i.prefixAgo,s=i.suffixAgo;if(this.settings.allowFuture&&t<0&&(o=i.prefixFromNow,s=i.suffixFromNow),!this.settings.allowPast&&t>=0)return this.settings.strings.inPast;var a=Math.abs(t)/1e3,r=a/60,l=r/60,c=l/24,u=c/365,d=a<45&&n(i.seconds,Math.round(a))||a<90&&n(i.minute,1)||r<45&&n(i.minutes,Math.round(r))||r<90&&n(i.hour,1)||l<24&&n(i.hours,Math.round(l))||l<42&&n(i.day,1)||c<30&&n(i.days,Math.round(c))||c<45&&n(i.month,1)||c<365&&n(i.months,Math.round(c/30))||u<1.5&&n(i.year,1)||n(i.years,Math.round(u)),p=i.wordSeparator||"";return void 0===i.wordSeparator&&(p=" "),e.trim([o,d,s].join(p))},parse:function(t){var n=e.trim(t);return n=(n=(n=(n=(n=n.replace(/\.\d+/,"")).replace(/-/,"/").replace(/-/,"/")).replace(/T/," ").replace(/Z/," UTC")).replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2")).replace(/([\+\-]\d\d)$/," $100"),new Date(n)},datetime:function(t){var n=s.isTime(t)?e(t).attr("datetime"):e(t).attr("title");return s.parse(n)},isTime:function(t){return"time"===e(t).get(0).tagName.toLowerCase()}});var a={init:function(){var n=e.proxy(t,this);n();var i=s.settings;i.refreshMillis>0&&(this._timeagoInterval=setInterval(n,i.refreshMillis))},update:function(n){var i=s.parse(n);e(this).data("timeago",{datetime:i}),s.settings.localeTitle&&e(this).attr("title",i.toLocaleString()),t.apply(this)},updateFromDOM:function(){e(this).data("timeago",{datetime:s.parse(s.isTime(this)?e(this).attr("datetime"):e(this).attr("title"))}),t.apply(this)},dispose:function(){this._timeagoInterval&&(window.clearInterval(this._timeagoInterval),this._timeagoInterval=null)}};e.fn.timeago=function(e,t){var n=e?a[e]:a.init;if(!n)throw new Error("Unknown function name '"+e+"' for timeago");return this.each(function(){n.call(this,t)}),this},document.createElement("abbr"),document.createElement("time")}),function(e){function t(t){if("string"==typeof t.data){var n=t.handler,i=t.data.toLowerCase().split(" ");t.handler=function(t){if(this===t.target||!/textarea|select/i.test(t.target.nodeName)&&"text"!==t.target.type){var o="keypress"!==t.type&&e.hotkeys.specialKeys[t.which],s=String.fromCharCode(t.which).toLowerCase(),a="",r={};t.altKey&&"alt"!==o&&(a+="alt+"),t.ctrlKey&&"ctrl"!==o&&(a+="ctrl+"),t.metaKey&&!t.ctrlKey&&"meta"!==o&&(a+="meta+"),t.shiftKey&&"shift"!==o&&(a+="shift+"),o?r[a+o]=!0:(r[a+s]=!0,r[a+e.hotkeys.shiftNums[s]]=!0,"shift+"===a&&(r[e.hotkeys.shiftNums[s]]=!0));for(var l=0,c=i.length;l<c;l++)if(r[i[l]])return n.apply(this,arguments)}}}}e.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",191:"/",224:"meta"},shiftNums:{"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"}},e.each(["keydown","keyup","keypress"],function(){e.event.special[this]={add:t}}
12)}(jQuery),function(e){"use strict";e.extend({tablesorter:new function(){function t(){var e=arguments[0],t=arguments.length>1?Array.prototype.slice.call(arguments):e;"undefined"!=typeof console&&void 0!==console.log?console[/error/i.test(e)?"error":/warn/i.test(e)?"warn":"log"](t):alert(t)}function n(e,n){t(e+" ("+((new Date).getTime()-n.getTime())+"ms)")}function i(e){for(var t in e)return!1;return!0}function o(t,n,i){if(!n)return"";var o=t.config,s=o.textExtraction,a="";return a="simple"===s?o.supportsTextContent?n.textContent:e(n).text():"function"==typeof s?s(n,t,i):"object"==typeof s&&s.hasOwnProperty(i)?s[i](n,t,i):o.supportsTextContent?n.textContent:e(n).text(),e.trim(a)}function s(e,n,i,s){for(var a,r=k.parsers.length,l=!1,c="",u=!0;""===c&&u;)n[++i]?(c=o(e,l=n[i].cells[s],s),e.config.debug&&t("Checking if value was empty on row "+i+", column: "+s+': "'+c+'"')):u=!1;for(;--r>=0;)if((a=k.parsers[r])&&"text"!==a.id&&a.is&&a.is(c,e,l))return a;return k.getParserById("text")}function a(e){var i,o,a,r,l,c,u,d,p=e.config,h=p.$tbodies=p.$table.children("tbody:not(."+p.cssInfoBlock+")"),m="";if(0===h.length)return p.debug?t("Warning: *Empty table!* Not building a parser cache"):"";if(p.debug&&(d=new Date,t("Detecting parsers for each column")),(i=h[0].rows)[0])for(o=[],a=i[0].cells.length,r=0;r<a;r++)l=(l=p.$headers.filter(":not([colspan])")).add(p.$headers.filter('[colspan="1"]')).filter('[data-column="'+r+'"]:last'),c=p.headers[r],u=k.getParserById(k.getData(l,c,"sorter")),p.empties[r]=k.getData(l,c,"empty")||p.emptyTo||(p.emptyToBottom?"bottom":"top"),p.strings[r]=k.getData(l,c,"string")||p.stringTo||"max",u||(u=s(e,i,-1,r)),p.debug&&(m+="column:"+r+"; parser:"+u.id+"; string:"+p.strings[r]+"; empty: "+p.empties[r]+"\n"),o.push(u);p.debug&&(t(m),n("Completed detecting parsers",d)),p.parsers=o}function r(i){var s,a,r,l,c,u,d,p,h,m,f=i.tBodies,g=i.config,v=g.parsers,y=[];if(g.cache={},!v)return g.debug?t("Warning: *Empty table!* Not building a cache"):"";for(g.debug&&(m=new Date),g.showProcessing&&k.isProcessing(i,!0),d=0;d<f.length;d++)if(g.cache[d]={row:[],normalized:[]},!e(f[d]).hasClass(g.cssInfoBlock)){for(s=f[d]&&f[d].rows.length||0,a=f[d].rows[0]&&f[d].rows[0].cells.length||0,c=0;c<s;++c)if(h=[],(p=e(f[d].rows[c])).hasClass(g.cssChildRow))g.cache[d].row[g.cache[d].row.length-1]=g.cache[d].row[g.cache[d].row.length-1].add(p);else{for(g.cache[d].row.push(p),u=0;u<a;++u)r=o(i,p[0].cells[u],u),l=v[u].format(r,i,p[0].cells[u],u),h.push(l),"numeric"===(v[u].type||"").toLowerCase()&&(y[u]=Math.max(Math.abs(l)||0,y[u]||0));h.push(g.cache[d].normalized.length),g.cache[d].normalized.push(h)}g.cache[d].colMax=y}g.showProcessing&&k.isProcessing(i),g.debug&&n("Building cache for "+s+" rows",m)}function l(t,o){var s,a,r,l,c,u,d,p,h,m,f,g,v=t.config,y=v.widgetOptions,b=t.tBodies,w=[],_=v.cache;if(i(_))return v.appender?v.appender(t,w):t.isUpdating?v.$table.trigger("updateComplete",t):"";for(v.debug&&(g=new Date),h=0;h<b.length;h++)if((c=e(b[h])).length&&!c.hasClass(v.cssInfoBlock)){for(u=k.processTbody(t,c,!0),s=_[h].row,l=(r=(a=_[h].normalized).length)?a[0].length-1:0,d=0;d<r;d++)if(f=a[d][l],w.push(s[f]),!v.appender||v.pager&&(!v.pager.removeRows||!y.pager_removeRows)&&!v.pager.ajax)for(m=s[f].length,p=0;p<m;p++)u.append(s[f][p]);k.processTbody(t,u,!1)}v.appender&&v.appender(t,w),v.debug&&n("Rebuilt table",g),o||v.appender||
12k.applyWidget(t),t.isUpdating&&v.$table.trigger("updateComplete",t)}function c(t){var n,i,o,s,a,r,l,c,u,d,p,h,m=[],f={},g=0,v=e(t).find("thead:eq(0), tfoot").children("tr");for(n=0;n<v.length;n++)for(r=v[n].cells,i=0;i<r.length;i++){for(c=(l=(a=r[i]).parentNode.rowIndex)+"-"+a.cellIndex,u=a.rowSpan||1,d=a.colSpan||1,void 0===m[l]&&(m[l]=[]),o=0;o<m[l].length+1;o++)if(void 0===m[l][o]){p=o;break}for(f[c]=p,g=Math.max(p,g),e(a).attr({"data-column":p}),o=l;o<l+u;o++)for(void 0===m[o]&&(m[o]=[]),h=m[o],s=p;s<p+d;s++)h[s]="x"}return t.config.columns=g+1,f}function u(e){return/^d/i.test(e)||1===e}function d(i){var o,s,a,r,l,d,p,m=c(i),f=i.config;f.headerList=[],f.headerContent=[],f.debug&&(p=new Date),r=f.cssIcon?'<i class="'+(f.cssIcon===k.css.icon?k.css.icon:f.cssIcon+" "+k.css.icon)+'"></i>':"",f.$headers=e(i).find(f.selectorHeaders).each(function(t){s=e(this),o=f.headers[t],f.headerContent[t]=e(this).html(),l=f.headerTemplate.replace(/\{content\}/g,e(this).html()).replace(/\{icon\}/g,r),f.onRenderTemplate&&(a=f.onRenderTemplate.apply(s,[t,l]))&&"string"==typeof a&&(l=a),e(this).html('<div class="'+k.css.headerIn+'">'+l+"</div>"),f.onRenderHeader&&f.onRenderHeader.apply(s,[t]),this.column=m[this.parentNode.rowIndex+"-"+this.cellIndex],this.order=u(k.getData(s,o,"sortInitialOrder")||f.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(d=k.getData(s,o,"lockedOrder")||!1)&&!1!==d&&(this.order=this.lockedOrder=u(d)?[1,1,1]:[0,0,0]),s.addClass(k.css.header+" "+f.cssHeader),f.headerList[t]=this,s.parent().addClass(k.css.headerRow+" "+f.cssHeaderRow).attr("role","row"),f.tabIndex&&s.attr("tabindex",0)}).attr({scope:"col",role:"columnheader"}),h(i),f.debug&&(n("Built headers:",p),t(f.$headers))}function p(e,t,n){var i=e.config;i.$table.find(i.selectorRemove).remove(),a(e),r(e),_(i.$table,t,n)}function h(t){var n,i,o=t.config;o.$headers.each(function(s,a){i=e(a),n="false"===k.getData(a,o.headers[s],"sorter"),a.sortDisabled=n,i[n?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+n),t.id&&(n?i.removeAttr("aria-controls"):i.attr("aria-controls",t.id))})}function m(t){var n,i,o,s,a=t.config,r=a.sortList,l=k.css.sortNone+" "+a.cssNone,c=[k.css.sortAsc+" "+a.cssAsc,k.css.sortDesc+" "+a.cssDesc],u=["ascending","descending"],d=e(t).find("tfoot tr").children().removeClass(c.join(" "));for(a.$headers.removeClass(c.join(" ")).addClass(l).attr("aria-sort","none"),s=r.length,i=0;i<s;i++)if(2!==r[i][1]&&(n=a.$headers.not(".sorter-false").filter('[data-column="'+r[i][0]+'"]'+(1===s?":last":""))).length)for(o=0;o<n.length;o++)n[o].sortDisabled||(n.eq(o).removeClass(l).addClass(c[r[i][1]]).attr("aria-sort",u[r[i][1]]),d.length&&d.filter('[data-column="'+r[i][0]+'"]').eq(o).addClass(c[r[i][1]]));a.$headers.not(".sorter-false").each(function(){var t=e(this),n=this.order[(this.count+1)%(a.sortReset?3:2)],i=t.text()+": "+k.language[t.hasClass(k.css.sortAsc)?"sortAsc":t.hasClass(k.css.sortDesc)?"sortDesc":"sortNone"]+k.language[0===n?"nextAsc":1===n?"nextDesc":"nextNone"];t.attr("aria-label",i)})}function f(t){if(t.config.widthFixed&&0===e(t).find("colgroup").length){var n=e("<colgroup>"),i=e(t).width();e(t.tBodies[0]).find("tr:first").children("td:visible").each(function(){n.append(e("<col>").css("width",parseInt(e(this).width()/i*1e3,10)/10+"%"))}),e(t).prepend(n)}}function g(t,n){var i,o,s,a=t.config,r=n||a.sortList;a.sortList=[],e.each(r,function(t,n){i=[parseInt(n[0],10),parseInt(n[1],10)],(s=a.$headers[i[0]])&&(a.sortList.push(i),o=e.inArray(i[1],s.order),s.count=o>=0?o:i[1]%(a.sortReset?3:2))})}function v(e,t){return e&&e[t]&&e[t].type||""}function y(t,n,i){var o,s,a,r,c,u=t.config,d=!i[u.sortMultiSortKey],p=u.$table;if(p.trigger("sortStart",t),n.count=i[u.sortResetKey]?2:(n.count+1)%(u.sortReset?3:2),u.sortRestart&&(s=n,u.$headers.each(function(){this===s||!d&&e(this).is("."+k.css.sortDesc+",."+k.css.sortAsc)||(this.count=-1)})),s=n.column,d){if(u.sortList=[],null!==u.sortForce)for(o=u.sortForce,a=0;a<o.length;a++)o[a][0]!==s&&u.sortList.push(o[a]);if((r=n.order[n.count])<2&&(u.sortList.push([s,r]),n.colSpan>1))for(a=1;a<n.colSpan;a++)u.sortList.push([s+a,r])}else{if(u.sortAppend&&u.sortList.length>1)for(a=0;
12a<u.sortAppend.length;a++)(c=k.isValueInArray(u.sortAppend[a][0],u.sortList))>=0&&u.sortList.splice(c,1);if(k.isValueInArray(s,u.sortList)>=0)for(a=0;a<u.sortList.length;a++)c=u.sortList[a],r=u.$headers[c[0]],c[0]===s&&(c[1]=r.order[n.count],2===c[1]&&(u.sortList.splice(a,1),r.count=-1));else if((r=n.order[n.count])<2&&(u.sortList.push([s,r]),n.colSpan>1))for(a=1;a<n.colSpan;a++)u.sortList.push([s+a,r])}if(null!==u.sortAppend)for(o=u.sortAppend,a=0;a<o.length;a++)o[a][0]!==s&&u.sortList.push(o[a]);p.trigger("sortBegin",t),setTimeout(function(){m(t),b(t),l(t),p.trigger("sortEnd",t)},1)}function b(e){var t,o,s,a,r,l,c,u,d,p,h,m,f=0,g=e.config,y=g.textSorter||"",b=g.sortList,w=b.length,_=e.tBodies.length;if(!g.serverSideSorting&&!i(g.cache)){for(g.debug&&(d=new Date),o=0;o<_;o++)r=g.cache[o].colMax,(l=g.cache[o].normalized).length,u=l&&l[0]?l[0].length-1:0,l.sort(function(n,i){for(t=0;t<w;t++){if(a=b[t][0],c=b[t][1],f=0===c,g.sortStable&&n[a]===i[a]&&1===w)return n[u]-i[u];if((s=/n/i.test(v(g.parsers,a)))&&g.strings[a]?(s="boolean"==typeof g.string[g.strings[a]]?(f?1:-1)*(g.string[g.strings[a]]?-1:1):g.strings[a]&&g.string[g.strings[a]]||0,p=g.numberSorter?g.numberSorter(n[a],i[a],f,r[a],e):k["sortNumeric"+(f?"Asc":"Desc")](n[a],i[a],s,r[a],a,e)):(h=f?n:i,m=f?i:n,p="function"==typeof y?y(h[a],m[a],f,a,e):"object"==typeof y&&y.hasOwnProperty(a)?y[a](h[a],m[a],f,a,e):k["sortNatural"+(f?"Asc":"Desc")](n[a],i[a],a,e,g)),p)return p}return n[u]-i[u]});g.debug&&n("Sorting on "+b.toString()+" and dir "+c+" time",d)}}function w(e,t){e[0].isUpdating&&e.trigger("updateComplete"),"function"==typeof t&&t(e[0])}function _(e,t,n){var i=e[0].config.sortList;!1!==t&&!e[0].isProcessing&&i.length?e.trigger("sorton",[i,function(){w(e,n)},!0]):w(e,n)}function x(t){var n=t.config,s=n.$table;s.unbind("sortReset update updateRows updateCell updateAll addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(n.namespace+" ")).bind("sortReset"+n.namespace,function(e){e.stopPropagation(),n.sortList=[],m(t),b(t),l(t)}).bind("updateAll"+n.namespace,function(e,i,o){e.stopPropagation(),t.isUpdating=!0,k.refreshWidgets(t,!0,!0),k.restoreHeaders(t),d(t),k.bindEvents(t,n.$headers),x(t),p(t,i,o)}).bind("update"+n.namespace+" updateRows"+n.namespace,function(e,n,i){e.stopPropagation(),t.isUpdating=!0,h(t),p(t,n,i)}).bind("updateCell"+n.namespace,function(i,a,r,l){i.stopPropagation(),t.isUpdating=!0,s.find(n.selectorRemove).remove();var c,u,d,p=s.find("tbody"),h=p.index(e(a).parents("tbody").filter(":first")),m=e(a).parents("tr").filter(":first");a=e(a)[0],p.length&&h>=0&&(u=p.eq(h).find("tr").index(m),d=a.cellIndex,c=n.cache[h].normalized[u].length-1,n.cache[h].row[t.config.cache[h].normalized[u][c]]=m,n.cache[h].normalized[u][d]=n.parsers[d].format(o(t,a,d),t,a,d),_(s,r,l))}).bind("addRows"+n.namespace,function(e,r,l,c){if(e.stopPropagation(),t.isUpdating=!0,i(n.cache))h(t),p(t,l,c);else{var u,d,m=r.filter("tr").length,f=[],g=r[0].cells.length,v=s.find("tbody").index(r.parents("tbody").filter(":first"));for(n.parsers||a(t),u=0;u<m;u++){for(d=0;d<g;d++)f[d]=n.parsers[d].format(o(t,r[u].cells[d],d),t,r[u].cells[d],d);f.push(n.cache[v].row.length),n.cache[v].row.push([r[u]]),n.cache[v].normalized.push(f),f=[]}_(s,l,c)}}).bind("updateComplete"+n.namespace,function(){t.isUpdating=!1}).bind("sorton"+n.namespace,function(e,n,o,a){var c=t.config;e.stopPropagation(),s.trigger("sortStart",this),g(t,n),m(t),c.delayInit&&i(c.cache)&&r(t),s.trigger("sortBegin",this),b(t),l(t,a),s.trigger("sortEnd",this),"function"==typeof o&&o(t)}).bind("appendCache"+n.namespace,function(e,n,i){e.stopPropagation(),l(t,i),"function"==typeof n&&n(t)}).bind("updateCache"+n.namespace,function(e,i){n.parsers||a(t),r(t),"function"==typeof i&&i(t)}).bind("applyWidgetId"+n.namespace,function(e,i){e.stopPropagation(),k.getWidgetById(i).format(t,n,n.widgetOptions)}).bind("applyWidgets"+n.namespace,function(e,n){e.stopPropagation(),k.applyWidget(t,n)}).bind("refreshWidgets"+n.namespace,function(e,n,i){e.stopPropagation(),k.refreshWidgets(t,n,i)}).bind("destroy"+n.namespace,function(e,n,i){e.stopPropagation(),k.destroy(t,n,i)})}var k=this;k.version="2.15.10",k.parsers=[],k.widgets=[],k.defaults={theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,headers:{}
12,ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",textExtraction:"simple",textSorter:null,numberSorter:null,widgets:[],widgetOptions:{zebra:["even","odd"]},initWidgets:!0,initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssIcon:"tablesorter-icon",cssInfoBlock:"tablesorter-infoOnly",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[]},k.css={table:"tablesorter",childRow:"tablesorter-childRow",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",info:"tablesorter-infoOnly",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},k.language={sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},k.log=t,k.benchmark=n,k.construct=function(t){return this.each(function(){var n=this,i=e.extend(!0,{},k.defaults,t);!n.hasInitialized&&k.buildTable&&"TABLE"!==this.tagName?k.buildTable(n,i):k.setup(n,i)})},k.setup=function(n,i){if(!n||!n.tHead||0===n.tBodies.length||!0===n.hasInitialized)return i.debug?t("ERROR: stopping initialization! No table, thead, tbody or tablesorter has already been initialized"):"";var o,s="",l=e(n),c=e.metadata;n.hasInitialized=!1,n.isProcessing=!0,n.config=i,e.data(n,"tablesorter",i),i.debug&&e.data(n,"startoveralltimer",new Date),i.supportsTextContent="x"===e("<span>x</span>")[0].textContent,i.supportsDataObject=((o=e.fn.jquery.split("."))[0]=parseInt(o[0],10),o[0]>1||1===o[0]&&parseInt(o[1],10)>=4),i.string={max:1,min:-1,"max+":1,"max-":-1,zero:0,none:0,null:0,top:!0,bottom:!1},/tablesorter\-/.test(l.attr("class"))||(s=""!==i.theme?" tablesorter-"+i.theme:""),i.$table=l.addClass(k.css.table+" "+i.tableClass+s).attr({role:"grid"}),i.namespace?i.namespace="."+i.namespace.replace(/\W/g,""):i.namespace=".tablesorter"+Math.random().toString(16).slice(2),i.$tbodies=l.children("tbody:not(."+i.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),i.$table.find("caption").length&&i.$table.attr("aria-labelledby","theCaption"),i.widgetInit={},d(n),f(n),a(n),i.delayInit||r(n),k.bindEvents(n,i.$headers),x(n),i.supportsDataObject&&void 0!==l.data().sortlist?i.sortList=l.data().sortlist:c&&l.metadata()&&l.metadata().sortlist&&(i.sortList=l.metadata().sortlist),k.applyWidget(n,!0),i.sortList.length>0?l.trigger("sorton",[i.sortList,{},!i.initWidgets,!0]):(m(n),i.initWidgets&&k.applyWidget(n)),i.showProcessing&&l.unbind("sortBegin"+i.namespace+" sortEnd"+i.namespace).bind("sortBegin"+i.namespace+" sortEnd"+i.namespace,function(e){k.isProcessing(n,"sortBegin"===e.type)}),n.hasInitialized=!0,n.isProcessing=!1,i.debug&&k.benchmark("Overall initialization time",e.data(n,"startoveralltimer")),l.trigger("tablesorter-initialized",n),"function"==typeof i.initialized&&i.initialized(n)},k.isProcessing=function(t,n,i){var o=(t=e(t))[0].config,s=i||t.find("."+k.css.header);n?(void 0!==i&&o.sortList.length>0&&(s=s.filter(function(){return!this.sortDisabled&&k.isValueInArray(parseFloat(e(this).attr("data-column")),o.sortList)>=0})),s.addClass(k.css.processing+" "+o.cssProcessing)):s.removeClass(k.css.processing+" "+o.cssProcessing)},
13k.processTbody=function(t,n,i){var o;if(t=e(t)[0],i)return t.isProcessing=!0,n.before('<span class="tablesorter-savemyplace"/>'),o=e.fn.detach?n.detach():n.remove();o=e(t).find("span.tablesorter-savemyplace"),n.insertAfter(o),o.remove(),t.isProcessing=!1},k.clearTableBody=function(t){e(t)[0].config.$tbodies.empty()},k.bindEvents=function(t,n){var o,s=(t=e(t)[0]).config;n.find(s.selectorSort).add(n.filter(s.selectorSort)).unbind("mousedown mouseup sort keyup ".split(" ").join(s.namespace+" ")).bind("mousedown mouseup sort keyup ".split(" ").join(s.namespace+" "),function(a,l){var c,u=a.type;if(!(1!==(a.which||a.button)&&!/sort|keyup/.test(u)||"keyup"===u&&13!==a.which||"mouseup"===u&&!0!==l&&(new Date).getTime()-o>250)){if("mousedown"===u)return o=(new Date).getTime(),"INPUT"===a.target.tagName?"":!s.cancelSelection;s.delayInit&&i(s.cache)&&r(t),c=/TH|TD/.test(this.tagName)?this:e(this).parents("th, td")[0],(c=s.$headers[n.index(c)]).sortDisabled||y(t,c,a)}}),s.cancelSelection&&n.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},k.restoreHeaders=function(t){var n=e(t)[0].config;n.$table.find(n.selectorHeaders).each(function(t){e(this).find("."+k.css.headerIn).length&&e(this).html(n.headerContent[t])})}
13,k.destroy=function(t,n,i){if((t=e(t)[0]).hasInitialized){k.refreshWidgets(t,!0,!0);var o=e(t),s=t.config,a=o.find("thead:first"),r=a.find("tr."+k.css.headerRow).removeClass(k.css.headerRow+" "+s.cssHeaderRow),l=o.find("tfoot:first > tr").children("th, td");a.find("tr").not(r).remove(),o.removeData("tablesorter").unbind("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd ".split(" ").join(s.namespace+" ")),s.$headers.add(l).removeClass([k.css.header,s.cssHeader,s.cssAsc,s.cssDesc,k.css.sortAsc,k.css.sortDesc,k.css.sortNone].join(" ")).removeAttr("data-column"),r.find(s.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(s.namespace+" ")),k.restoreHeaders(t),!1!==n&&o.removeClass(k.css.table+" "+s.tableClass+" tablesorter-"+s.theme),t.hasInitialized=!1,"function"==typeof i&&i(t)}},k.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i},k.sortNatural=function(e,t){if(e===t)return 0;var n,i,o,s,a,r,l,c,u=k.regex;if(u.hex.test(t)){if((i=parseInt(e.match(u.hex),16))<(s=parseInt(t.match(u.hex),16)))return-1;if(i>s)return 1}for(n=e.replace(u.chunk,"\\0$1\\0").replace(u.chunks,"").split("\\0"),o=t.replace(u.chunk,"\\0$1\\0").replace(u.chunks,"").split("\\0"),c=Math.max(n.length,o.length),l=0;l<c;l++){if(a=isNaN(n[l])?n[l]||0:parseFloat(n[l])||0,r=isNaN(o[l])?o[l]||0:parseFloat(o[l])||0,isNaN(a)!==isNaN(r))return isNaN(a)?1:-1;if(typeof a!=typeof r&&(a+="",r+=""),a<r)return-1;if(a>r)return 1}return 0},k.sortNaturalAsc=function(e,t,n,i,o){if(e===t)return 0;var s=o.string[o.empties[n]||o.emptyTo];return""===e&&0!==s?"boolean"==typeof s?s?-1:1:-s||-1:""===t&&0!==s?"boolean"==typeof s?s?1:-1:s||1:k.sortNatural(e,t)},k.sortNaturalDesc=function(e,t,n,i,o){if(e===t)return 0;var s=o.string[o.empties[n]||o.emptyTo];return""===e&&0!==s?"boolean"==typeof s?s?-1:1:s||1:""===t&&0!==s?"boolean"==typeof s?s?1:-1:-s||-1:k.sortNatural(t,e)},k.sortText=function(e,t){return e>t?1:e<t?-1:0},k.getTextValue=function(e,t,n){if(n){var i,o=e?e.length:0,s=n+t;for(i=0;i<o;i++)s+=e.charCodeAt(i);return t*s}return 0},k.sortNumericAsc=function(e,t,n,i,o,s){if(e===t)return 0;var a=s.config,r=a.string[a.empties[o]||a.emptyTo];return""===e&&0!==r?"boolean"==typeof r?r?-1:1:-r||-1:""===t&&0!==r?"boolean"==typeof r?r?1:-1:r||1:(isNaN(e)&&(e=k.getTextValue(e,n,i)),isNaN(t)&&(t=k.getTextValue(t,n,i)),e-t)},k.sortNumericDesc=function(e,t,n,i,o,s){if(e===t)return 0;var a=s.config,r=a.string[a.empties[o]||a.emptyTo];return""===e&&0!==r?"boolean"==typeof r?r?-1:1:r||1:""===t&&0!==r?"boolean"==typeof r?r?1:-1:-r||-1:(isNaN(e)&&(e=k.getTextValue(e,n,i)),isNaN(t)&&(t=k.getTextValue(t,n,i)),t-e)},k.sortNumeric=function(e,t){return e-t},k.characterEquivalents={a:"\xe1\xe0\xe2\xe3\xe4\u0105\xe5",A:"\xc1\xc0\xc2\xc3\xc4\u0104\xc5",c:"\xe7\u0107\u010d",C:"\xc7\u0106\u010c",e:"\xe9\xe8\xea\xeb\u011b\u0119",E:"\xc9\xc8\xca\xcb\u011a\u0118",i:"\xed\xec\u0130\xee\xef\u0131",I:"\xcd\xcc\u0130\xce\xcf",o:"\xf3\xf2\xf4\xf5\xf6",O:"\xd3\xd2\xd4\xd5\xd6",ss:"\xdf",SS:"\u1e9e",u:"\xfa\xf9\xfb\xfc\u016f",U:"\xda\xd9\xdb\xdc\u016e"},k.replaceAccents=function(e){var t,n="[",i=k.characterEquivalents;if(!k.characterRegex){for(t in k.characterRegexArray={},i)"string"==typeof t&&(n+=i[t],k.characterRegexArray[t]=new RegExp("["+i[t]+"]","g"));k.characterRegex=new RegExp(n+"]")}if(k.characterRegex.test(e))for(t in i)"string"==typeof t&&(e=e.replace(k.characterRegexArray[t],t));return e},k.isValueInArray=function(e,t){var n,i=t.length;for(n=0;n<i;n++)if(t[n][0]===e)return n;return-1},k.addParser=function(e){var t,n=k.parsers.length,i=!0;for(t=0;t<n;t++)k.parsers[t].id.toLowerCase()===e.id.toLowerCase()&&(i=!1);i&&k.parsers.push(e)},k.getParserById=function(e){var t,n=k.parsers.length;for(t=0;t<n;t++)if(k.parsers[t].id.toLowerCase()===e.toString().toLowerCase())return k.parsers[t];return!1},k.addWidget=function(e){k.widgets.push(e)},k.getWidgetById=function(e){var t,n,i=k.widgets.length;for(t=0;t<i;t++)if((n=k.widgets[t])&&n.hasOwnProperty("id")&&n.id.toLowerCase()===e.toLowerCase())return n},k.applyWidget=function(t,i){var o,s,a,r=(t=e(t)[0]).config,l=r.widgetOptions,c=[];r.debug&&(o=new Date),r.widgets.length&&(r.widgets=e.grep(r.widgets,function(t,n){return e.inArray(t,r.widgets)===n}),e.each(r.widgets||[],function(e,t){(a=k.getWidgetById(t))&&a.id&&(a.priority||(a.priority=10),c[e]=a)}),c.sort(function(e,t){return e.priority<t.priority?-1:e.priority===t.priority?0:1}),e.each(c,function(n,o){o&&(!i&&r.widgetInit[o.id]||(o.hasOwnProperty("options")&&(l=t.config.widgetOptions=e.extend(!0,{},o.options,l)),o.hasOwnProperty("init")&&o.init(t,o,r,l),r.widgetInit[o.id]=!0),!i&&o.hasOwnProperty("format")&&o.format(t,r,l,!1))})),r.debug&&(s=r.widgets.length,n("Completed "+(!0===i?"initializing ":"applying ")+s+" widget"+(1!==s?"s":""),o))},k.refreshWidgets=function(n,i,o){var s,a=(n=e(n)[0]).config,r=a.widgets,l=k.widgets,c=l.length;for(s=0;s<c;s++)l[s]&&l[s].id&&(i||e.inArray(l[s].id,r)<0)&&(a.debug&&t('Refeshing widgets: Removing "'+l[s].id+'"'),l[s].hasOwnProperty("remove")&&a.widgetInit[l[s].id]&&(l[s].remove(n,a,a.widgetOptions),a.widgetInit[l[s].id]=!1));!0!==o&&k.applyWidget(n,i)}
13,k.getData=function(t,n,i){var o,s,a="",r=e(t);return r.length?(o=!!e.metadata&&r.metadata(),s=" "+(r.attr("class")||""),void 0!==r.data(i)||void 0!==r.data(i.toLowerCase())?a+=r.data(i)||r.data(i.toLowerCase()):o&&void 0!==o[i]?a+=o[i]:n&&void 0!==n[i]?a+=n[i]:" "!==s&&s.match(" "+i+"-")&&(a=s.match(new RegExp("\\s"+i+"-([\\w-]+)"))[1]||""),e.trim(a)):""},k.formatFloat=function(t,n){return"string"!=typeof t||""===t?t:(t=(n&&n.config?!1!==n.config.usNumberFormat:void 0===n||n)?t.replace(/,/g,""):t.replace(/[\s|\.]/g,"").replace(/,/g,"."),/^\s*\([.\d]+\)/.test(t)&&(t=t.replace(/^\s*\(([.\d]+)\)/,"-$1")),i=parseFloat(t),isNaN(i)?e.trim(t):i);var i},k.isDigit=function(e){return!isNaN(e)||/^[\-+(]?\d+[)]?$/.test(e.toString().replace(/[,.'"\s]/g,""))}}});var t=e.tablesorter;e.fn.extend({tablesorter:t.construct}),t.addParser({id:"text",is:function(){return!0},format:function(n,i){var o=i.config;return n&&(n=e.trim(o.ignoreCase?n.toLocaleLowerCase():n),n=o.sortLocaleCompare?t.replaceAccents(n):n),n},type:"text"}),t.addParser({id:"digit",is:function(e){return t.isDigit(e)},format:function(n,i){var o=t.formatFloat((n||"").replace(/[^\w,. \-()]/g,""),i);return n&&"number"==typeof o?o:n?e.trim(n&&i.config.ignoreCase?n.toLocaleLowerCase():n):n},type:"numeric"}),t.addParser({id:"currency",is:function(e){return/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/.test((e||"").replace(/[+\-,. ]/g,""))},format:function(n,i){var o=t.formatFloat((n||"").replace(/[^\w,. \-()]/g,""),i);return n&&"number"==typeof o?o:n?e.trim(n&&i.config.ignoreCase?n.toLocaleLowerCase():n):n},type:"numeric"}),t.addParser({id:"ipAddress",is:function(e){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(e)},format:function(e,n){var i,o=e?e.split("."):"",s="",a=o.length;for(i=0;i<a;i++)s+=("00"+o[i]).slice(-3);return e?t.formatFloat(s,n):e},type:"numeric"}),t.addParser({id:"url",is:function(e){return/^(https?|ftp|file):\/\//.test(e)},format:function(t){return t?e.trim(t.replace(/(https?|ftp|file):\/\//,"")):t},type:"text"}),t.addParser({id:"isoDate",is:function(e){return/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/.test(e)},format:function(e,n){return e?t.formatFloat(""!==e?new Date(e.replace(/-/g,"/")).getTime()||e:"",n):e},type:"numeric"}),t.addParser({id:"percent",is:function(e){return/(\d\s*?%|%\s*?\d)/.test(e)&&e.length<15},format:function(e,n){return e?t.formatFloat(e.replace(/%/g,""),n):e},type:"numeric"}),t.addParser({id:"usLongDate",is:function(e){return/^[A-Z]{3,10}\.?\s+\d{1,2},?\s+(\d{4})(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?$/i.test(e)||/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i.test(e)},format:function(e,n){return e?t.formatFloat(new Date(e.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||e,n):e},type:"numeric"}),t.addParser({id:"shortDate",is:function(e){return/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/.test((e||"").replace(/\s+/g," ").replace(/[\-.,]/g,"/"))},format:function(e,n,i,o){if(e){var s=n.config,a=s.$headers.filter("[data-column="+o+"]:last"),r=a.length&&a[0].dateFormat||t.getData(a,s.headers[o],"dateFormat")||s.dateFormat;e=e.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===r?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===r?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===r&&(e=e.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3"))}return e?t.formatFloat(new Date(e).getTime()||e,n):e},type:"numeric"}),t.addParser({id:"time",is:function(e){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(e)},format:function(e,n){return e?t.formatFloat(new Date("2000/01/01 "+e.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||e,n):e},type:"numeric"}),t.addParser({id:"metadata",is:function(){return!1},format:function(t,n,i){var o=n.config,s=o.parserMetadataName?o.parserMetadataName:"sortValue";return e(i).metadata()[s]},type:"numeric"}),t.addWidget({id:"zebra",priority:90,format:function(n,i,o){var s,a,r,l,c,u,d=new RegExp(i.cssChildRow,"i"),p=i.$tbodies;for(i.debug&&(c=new Date),u=0;u<p.length;u++)(s=p.eq(u)).children("tr").length>1&&(r=0,s.children("tr:visible").not(i.selectorRemove).each(function(){a=e(this),d.test(this.className)||r++,l=r%2==0,a.removeClass(o.zebra[l?1:0]).addClass(o.zebra[l?0:1])}));i.debug&&t.benchmark("Applying Zebra widget",c)},remove:function(t,n,i){var o,s,a=n.$tbodies,r=(i.zebra||["even","odd"]).join(" ");for(o=0;o<a.length;o++)(s=e.tablesorter.processTbody(t,a.eq(o),!0)).children().removeClass(r),e.tablesorter.processTbody(t,s,!1)}})}(jQuery),function(e){e.extend({tablesorterPager:new function(){function t(t){var n="";if(t.totalPages>1){0==t.page?n+='<span class="prev_page disabled">&#171; Previous</span> ':n+='<a class="prev_page" rel="previous">&#171; Previous</a> ';var i=t.page+1,o=t.totalPages,s=1,a=o;if(t.totalPages>7){a=i+3;var r=(s=i-3)<1?1-s:a>o?o-a:0;s+=r,a+=r}for(var l=s;l<=a;l++)n+=l==i?' <span class="currentPage">'+l+"</span> ":' <a class="goto_page" id="page_'+l+'">'+l+"</a> ";i>=t.totalPages?n+=' <span class="next_page disabled">Next &#187;</span>':n+=' <a class="next_page" rel="next">Next &#187;</a>'}e(t.container).html(n)}function n(t){if(!(n=t.config).pagerPositionSet&&n.positionFixed){var n=t.config,i=e(t);i.offset&&n.container.css({top:i.offset().top+i.height()+"px",position:"absolute"}),n.pagerPositionSet=!0}}function i(e){var t=e.config;t.page=t.totalPages-1,a(e)}function o(e){var t=e.config;t.page++,t.page>=t.totalPages-1&&(t.page=t.totalPages-1),a(e)}function s(e){var t=e.config;t.page--,t.page<=0&&(t.page=0),a(e)}function a(e){var t=e.config;(t.page<0||t.page>t.totalPages-1)&&(t.page=0),r(e,t.rowsCopy)}function r(o,s){var a=o.config,r=s.length,l=a.page*a.size,c=l+a.size;c>s.length&&(c=s.length);var u=e(o.tBodies[0]);e.tablesorter.clearTableBody(o);for(var d=l;d<c;d++)for(var p=s[d],h=(r=p.length,0);h<r;h++)u[0].appendChild(p[h]);n(o,u),e(o).trigger("applyWidgets"),a.page>=a.totalPages&&i(o),t(a)}this.appender=function(e,t){var n=e.config;n.rowsCopy=t,n.totalRows=t.length,n.totalPages=Math.ceil(n.totalRows/n.size),r(e,t)},this.defaults={size:10,offset:0,page:0,totalRows:0,totalPages:0,container:null,cssNext:"next",cssPrev:"prev",cssFirst:"first",cssLast:"last",positionFixed:!0,appender:this.appender},this.construct=function(t){return this.each(function(){config=e.extend(this.config,e.tablesorterPager.defaults,t);var n=this,i=config.container;e(this).trigger("appendCache"),e(i).delegate("a","click",function(t){t.stopImmediatePropagation();var i=e(this);return i.hasClass("prev_page")?s(n):i.hasClass("next_page")?o(n):i.hasClass("goto_page")&&(config.page=parseInt(i.attr("id").substring(5))-1,a(n)),!1})})}}}),e.fn.extend({tablesorterPager:e.tablesorterPager.construct})}(jQuery),function(e){e.extend({tablesorterFilter:new function(){function t(e,t,n){for(var i=n?e:e.toLowerCase(),o=0;o<t.length;o++)if("-"==t[o].charAt(0)){if(-1!=i.indexOf(t[o].substr(1)))return!1}else if(-1==i.indexOf(t[o]))return!1;return!0}function n(t){if(t.config.debug)var n=new Date;for(var i=[],o=[],s=0;s<t.config.filter.length;s++){var a=t.config.filter[s],r=e(a.filterContainer);o[s]=a.filterColumns;var l=jQuery.trim(r.val()).replace(/\s+/g," ");
13if(0!=l.length){var c=/^([a-zA-Z]+):(.+)/.exec(l);if(null!==c){var u=c[1];l=c[2];for(var d=0;d<a.columns.length;d++)if(0===a.columns[d].indexOf(u)){a.filterColumns=[d];break}}var p=a.filterCaseSensitive;i.push({caseSensitive:p,words:p?l.split(" "):l.toLowerCase().split(" "),findStr:a.filterColumns?"td:eq("+a.filterColumns.join("),td:eq(")+")":"",filterFunction:a.filterFunction})}a.filterColumns=o[s]}var h=i.length;if(0==h)var m=function(){var e=jQuery(this);g[g.length]=e};else m=function(){for(var e=jQuery(this),t=0;t<h;t++)if(!i[t].filterFunction((i[t].findStr?e.find(i[t].findStr):e).text(),i[t].words,i[t].caseSensitive))return!0;g[g.length]=e};a.originalRows||(a.originalRows=t.config.cache[0].row);var f=a.filterFromOriginal?a.originalRows:t.config.cache[0].row,g=[],v=f.length;for(s=0;s<v;s++)f[s].each(m);e.tablesorter.clearTableBody(t);var y=g.length;for(s=0;s<y;s++)e(t.tBodies[0]).append(g[s]);return e(t).trigger("update"),g.length&&(e(t).trigger("appendCache"),e(t).trigger("sorton",[t.config.sortList])),t.config.debug&&e.tablesorter.benchmark("Apply filter:",n),e(t).trigger("filterEnd"),t}function i(t){if(t.config.debug)var n=new Date;for(var i=0;i<t.config.filter.length;i++)e(t.config.filter[i].filterContainer).val("").get(0).lastValue="";var o=t.config.cache.row;e.tablesorter.clearTableBody(t);for(i=0;i<o.length;i++)e(t.tBodies[0]).append(o[i]);return e(t).trigger("update"),e(t).trigger("appendCache"),e(t).trigger("sorton",[t.config.sortList]),t.config.debug&&e.tablesorter.benchmark("Clear filter:",n),e(t).trigger("filterCleared"),t}this.defaults={filterContainer:"#filter-box",filterClearContainer:"#filter-clear-button",filterColumns:null,filterCaseSensitive:!1,filterWaitTime:500,filterFunction:t,filterFromOriginal:!1,columns:[]},this.construct=function(){var t=arguments;return this.each(function(){function o(e,t){var i=e.value;(i!=e.lastValue||t)&&(e.lastValue=i,n(r))}this.config.filter=new Array(t.length);var s=this.config;s.filter=new Array(t.length);for(var a=0;a<t.length;a++)s.filter[a]=e.extend(this.config.filter[a],e.tablesorterFilter.defaults,t[a]);var r=this,l=new Array(t.length);for(a=0;a<t.length;a++){var c;if((c=e(s.filter[a].filterContainer)).length&&(c[0].filterIndex=a),c.keyup(function(t,n){var i=this.filterIndex;void 0!==n&&e(this).val(n);var a=this;if(13==a.keyCode||void 0!==n)var r=1,c=!0;else r=s.filter[i].filterWaitTime||500,c=!1;var u=function(){o(a,c)};return clearTimeout(l[i]),l[i]=setTimeout(u,r),!1}),s.filter[a].filterClearContainer)(c=e(s.filter[a].filterClearContainer)).length&&(c[0].filterIndex=a,c.click(function(){var t=this.filterIndex,i=e(s.filter[t].filterContainer);i.val(""),i[0].lastValue="",n(r),"hidden"!=i[0].type&&i.focus()}))}e(r).bind("doFilter",function(){n(r)}),e(r).bind("clearFilter",function(){i(r)})})}}}),e.fn.extend({tablesorterFilter:e.tablesorterFilter.construct})}(jQuery),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","jquery-ui/ui/sortable"],e):e(window.jQuery)}(function(e){"use strict";function t(e,t,n){return e>t&&e<t+n}e.widget("mjs.nestedSortable",e.extend({},e.ui.sortable.prototype,{options:{disableParentChange:!1,doNotClear:!1,expandOnHover:700,isAllowed:function(){return!0},isTree:!1,listType:"ol",maxLevels:0,protectRoot:!1,rootID:null,rtl:!1,startCollapsed:!1,tabSize:20,branchClass:"mjs-nestedSortable-branch",collapsedClass:"mjs-nestedSortable-collapsed",disableNestingClass:"mjs-nestedSortable-no-nesting",errorClass:"mjs-nestedSortable-error",expandedClass:"mjs-nestedSortable-expanded",hoveringClass:"mjs-nestedSortable-hovering",leafClass:"mjs-nestedSortable-leaf",disabledClass:"mjs-nestedSortable-disabled"},_create:function(){var t=this;if(this.element.data("ui-sortable",this.element.data("mjs-nestedSortable")),!this.element.is(this.options.listType))throw new Error("nestedSortable: Please check that the listType option is set to your actual list type");this.options.isTree&&this.options.expandOnHover&&(this.options.tolerance="intersect"),e.ui.sortable.prototype._create.apply(this,arguments),this.options.isTree&&e(this.items).each(function(){var e=this.item,n=e.hasClass(t.o
13ptions.collapsedClass),i=e.hasClass(t.options.expandedClass);e.children(t.options.listType).length?(e.addClass(t.options.branchClass),n||i||(t.options.startCollapsed?e.addClass(t.options.collapsedClass):e.addClass(t.options.expandedClass))):e.addClass(t.options.leafClass)})},_destroy:function(){return this.element.removeData("mjs-nestedSortable").removeData("ui-sortable"),e.ui.sortable.prototype._destroy.apply(this,arguments)},_mouseDrag:function(t){var n,i,o,s,a,r,l,c,u,d,p,h,m,f,g,v,y=this,b=this.options,w=!1,_=e(document);for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<b.scrollSensitivity?(w=this.scrollParent.scrollTop()+b.scrollSpeed,this.scrollParent.scrollTop(w)):t.pageY-this.overflowOffset.top<b.scrollSensitivity&&(w=this.scrollParent.scrollTop()-b.scrollSpeed,this.scrollParent.scrollTop(w)),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<b.scrollSensitivity?(w=this.scrollParent.scrollLeft()+b.scrollSpeed,this.scrollParent.scrollLeft(w)):t.pageX-this.overflowOffset.left<b.scrollSensitivity&&(w=this.scrollParent.scrollLeft()-b.scrollSpeed,this.scrollParent.scrollLeft(w))):(t.pageY-_.scrollTop()<b.scrollSensitivity?(w=_.scrollTop()-b.scrollSpeed,_.scrollTop(w)):e(window).height()-(t.pageY-_.scrollTop())<b.scrollSensitivity&&(w=_.scrollTop()+b.scrollSpeed,_.scrollTop(w)),t.pageX-_.scrollLeft()<b.scrollSensitivity?(w=_.scrollLeft()-b.scrollSpeed,_.scrollLeft(w)):e(window).width()-(t.pageX-_.scrollLeft())<b.scrollSensitivity&&(w=_.scrollLeft()+b.scrollSpeed,_.scrollLeft(w))),!1!==w&&e.ui.ddmanager&&!b.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t)),this.positionAbs=this._convertPositionTo("absolute"),a=this.placeholder.offset().top,this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),this.hovering=this.hovering?this.hovering:null,this.mouseentered=!!this.mouseentered&&this.mouseentered,function(){var e=this.placeholder.parent().parent();e&&e.closest(".ui-sortable").length&&(r=e)}.call(this),l=this._getLevel(this.placeholder),c=this._getChildLevels(this.helper),p=document.createElement(b.listType),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},n=this.items.length-1;n>=0;n--)if(i=this.items[n],o=i.item[0],(s=this._intersectsWithPointer(i))&&i.instance===this.currentContainer){if(-1!==o.className.indexOf(b.disabledClass))if(2===s){if((u=this.items[n+1])&&u.item.hasClass(b.disabledClass))continue}else if(1===s&&(d=this.items[n-1])&&d.item.hasClass(b.disabledClass))continue;if(h=1===s?"next":"prev",!(o===this.currentItem[0]||this.placeholder[h]()[0]===o||e.contains(this.placeholder[0],o)||"semi-dynamic"===this.options.type&&e.contains(this.element[0],o))){if(this.mouseentered||(e(o).mouseenter(),this.mouseentered=!0),b.isTree&&e(o).hasClass(b.collapsedClass)&&b.expandOnHover&&(this.hovering||(e(o).addClass(b.hoveringClass),this.hovering=window.setTimeout(function(){e(o).removeClass(b.collapsedClass).addClass(b.expandedClass),y.refreshPositions(),y._trigger("expand",t,[y._uiHash(),o])},b.expandOnHover))),this.direction=1===s?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;e(o).mouseleave(),this.mouseentered=!1,e(o).removeClass(b.hoveringClass),this.hovering&&window.clearTimeout(this.hovering),this.hovering=null,!b.protectRoot||this.currentItem[0].parentNode===this.element[0]&&o.parentNode!==this.element[0]?b.protectRoot||this._rearrange(t,i):this.currentItem[0].parentNode!==this.element[0]&&o.parentNode===this.element[0]?(e(o).children(b.listType).length||(o.appendChild(p),b.isTree&&e(o).removeClass(b.leafClass).addClass(b.branchClass+" "+b.expandedClass)),void 0!==(m="down"===this.direction?e(o).prev().children(b.listType):e(o).children(b.listType))[0]&&this._rearrange(t,null,m)):this._rearrange(t,i),this._clearEmpty(o),this._trigger("change",t,this._uiHash());break}}if(function(){var e=this.placeholder.prev();f=e.length?e:null}.call(this),null!=f)for(;"li"!==f[0].nodeName.toLowerCase()||-1!==f[0].className.indexOf(b.disabledClass)||f[0]===this.currentItem[0]||f[0]===this.helper[0];){if(!f[0].previousSibling){f=null;break}f=e(f[0].previousSibling)}if(function(){var e=this.placeholder.next();g=e.length?e:null}.call(this),null!=g)for(;"li"!==g[0].nodeName.toLowerCase()||-1!==g[0].className.indexOf(b.disabledClass)||g[0]===this.currentItem[0]||g[0]===this.helper[0];){if(!g[0].nextSibling){g=null;break}g=e(g[0].nextSibling)}return this.beyondMaxLevels=0,null==r||null!=g||b.protectRoot&&r[0].parentNode==this.element[0]||!(b.rtl&&this.positionAbs.left+this.helper.outerWidth()>r.offset().left+r.outerWidth()||!b.rtl&&this.positionAbs.left<r.offset().left)?null==f||f.hasClass(b.disableNestingClass)||!(f.children(b.listType).length&&f.children(b.listType).is(":visible")||!f.children(b.listType).length)||b.protectRoot&&this.currentItem[0].parentNode===this.element[0]||!(b.rtl&&this.positionAbs.left+this.helper.outerWidth()<f.offset().left+f.outerWidth()-b.tabSize||!b.rtl&&this.positionAbs.left>f.offset().left+b.tabSize)?this._isAllowed(r,l,l+c):(this._isAllowed(f,l,l+c+1),f.children(b.listType).length||(f[0].appendChild(p),b.isTree&&f.removeClass(b.leafClass).addClass(b.branchClass+" "+b.expandedClass)),a&&a<=f.offset().top?f.children(b.listType).prepend(this.placeholder):f.children(b.listType)[0].appendChild(this.placeholder[0]),void 0!==r&&this._clearEmpty(r[0]),this._trigger("change",t,this._uiHash())):(r.after(this.placeholder[0]),v=!r.children(b.listItem).children("li:visible:not(.ui-sortable-helper)").length,b.isTree&&v&&r.removeClass(this.options.branchClass+" "+this.options.expandedClass).addClass(this.options.leafClass),void 0!==r&&this._clearEmpty(r[0]),this._trigger("change",t,this._uiHash())),this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t){this.beyondMaxLevels&&(this.placeholder.removeClass(this.options.errorClass),this.domPosition.prev?e(this.domPosition.prev).after(this.placeholder):e(this.domPosition.parent).prepend(this.placeholder),this._trigger("revert",t,this._uiHash())),e("."+this.options.hoveringClass).mouseleave().removeClass(this.options.hoveringClass),this.mouseentered=!1,this.hovering&&window.clearTimeout(this.hovering),this.hovering=null,this._relocate_event=t,this._pid_current=e(this.domPosition.parent).parent().attr("id"),this._sort_current=this.domPosition.prev?e(this.domPosition.prev).next().index():0,e.ui.sortable.prototype._mouseStop.apply(this,arguments)},_intersectsWithSides:function(e){var n=this.options.isTree?.8:.5,i=t(this.positionAbs.top+this.offset.click.top,e.top+e.height*n,e.height),o=t(this.positionAbs.top+this.offset.click.top,e.top-e.height*n,e.height),s=t(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),a=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return this.floating&&r?"right"===r&&s||"left"===r&&!s:a&&("down"===a&&i||"up"===a&&o)},_contactContainers:function(){this.options.protectRoot&&this.currentItem[0].parentNode===this.element[0]||e.ui.sortable.prototype._contactContainers.apply(this,arguments)},_clear:function(){var t,n;for(e.ui.sortable.prototype._clear.apply(this,arguments),this._pid_current===this._uiHash().item.parent().parent().attr("id")&&this._sort_current===this._uiHash().item.index()||this._trigger("relocate",this._relocate_event,this._uiHash()),t=this.items.length-1;t>=0;t--)n=this.items[t].item[0],this._clearEmpty(n)},serialize:function(t){var n=e.extend({},this.options,t),i=this._getItemsAsjQuery(n&&n.connected),o=[];return e(i).each(function(){var t=(e(n.item||this).attr(n.attribute||"id")||"").match(n.expression||/(.+)[-=_](.+)/),i=(e(n.item||this).parent(n.listType).parent(n.items).attr(n.attribute||"id")||"").match(n.expression||/(.+)[-=_](.+)/);t&&o.push((n.key||t[1])+"["+(n.key&&n.expression?t[1]:t[2])+"]="+(i?n.key&&n.expression?i[1]:i[2]:n.rootID))}),!o.length&&n.key&&o.push(n.key+"="),o.join("&")},toHierarchy:function(t){function n(t){var o,s=(e(t).attr(i.attribute||"id")||"").match(i.expression||/(.+)[-=_](.+)/),a=e(t).data();if(a.nestedSortableItem&&delete a.nestedSortableItem,s)return o={id:s[2]},o=e.extend({},o,a),e(t).children(i.listType).children(i.items).length>0&&(o.children=[],e(t).children(i.listType).children(i.items).each(function(){var e=n(this);o.children.push(e)})),o}var i=e.extend({},this.options,t),o=[];return e(this.element).children(i.items).each(function(){var e=n(this);o.push(e)}),o},toArray:function(t){function n(t,a,r){var l,c,u=r+1;if(e(t).children(i.listType).children(i.items).length>0&&(a++,e(t).children(i.listType).children(i.items).each(function(){u=n(e(this),a,u)}),a--),l=(e(t).attr(i.attribute||"id")||"").match(i.expression||/(.+)[-=_](.+)/),c=a===o?i.rootID:e(t).parent(i.listType).parent(i.items).attr(i.attribute||"id").match(i.expression||/(.+)[-=_](.+)/)[2],l){var d=e(t).children("div").data(),p=e.extend(d,{id:l[2],parent_id:c,depth:a,left:r,right:u});s.push(p)}return r=u+1}var i=e.extend({},this.options,t),o=i.startDepthCount||0,s=[],a=1;return i.excludeRoot||(s.push({item_id:i.rootID,parent_id:null,depth:o,left:a,right:2*(e(i.items,this.element).length+1)}),a++),e(this.element).children(i.items).each(function(){a=n(this,o,a)}),s=s.sort(function(e,t){return e.left-t.left})},_clearEmpty:function(t){function n(t,n,i,o){o&&(n=[i,i=n][0]),e(t).removeClass(n).addClass(i)}var i=this.options,o=e(t).children(i.listType),s=o.has("li").length,a=i.doNotClear||s||i.protectRoot&&e(t)[0]===this.element[0];i.isTree&&n(t,i.branchClass,i.leafClass,a),a||(o.parent().removeClass(i.expandedClass),o.remove())},_getLevel:function(e){var t,n=1;if(this.options.listType)for(t=e.closest(this.options.listType);t&&t.length>0&&!t.is(".ui-sortable");)n++,t=t.parent().closest(this.options.listType);return n},_getChildLevels:function(t,n){var i=this,o=this.options,s=0;return n=n||0,e(t).children(o.listType).children(o.items).each(function(e,t){s=Math.max(i._getChildLevels(t,n+1),s)}),n?s+1:s},_isAllowed:function(e,t,n){var i=this.options,o=this.placeholder.closest(".ui-sortable").nestedSortable("option","maxLevels"),s=this.currentItem.parent().parent();i.disableParentChange&&(void 0!==e&&!s.is(e)||void 0===e&&s.is("li"))||!i.isAllowed(this.placeholder,e,this.currentItem)?(this.placeholder.addClass(i.errorClass),this.beyondMaxLevels=o<n&&0!==o?n-o:1):o<n&&0!==o?(this.placeholder.addClass(i.errorClass),this.beyondMaxLevels=n-o):(this.placeholder.removeClass(i.errorClass),this.beyondMaxLevels=0)}})),e.mjs.nestedSortable.prototype.options=e.extend({},e.ui.sortable.prototype.options,e.mjs.nestedSortable.prototype.options)}),function(e,t){"object"==typeof exports&&exports&&"string"!=typeof exports.nodeName?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):(e.Mustache={},t(e.Mustache))}(this,function(e){function t(e){return"function"==typeof e}function n(e){return f(e)?"array":typeof e}function i(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(e,t){return null!=e&&"object"==typeof e&&t in e}function s(e,t){return g.call(e,t)}function a(e){return!s(v,e)}function r(e){return String(e).replace(/[&<>"'`=\/]/g,function(e){return y[e]})}function l(t,n){function o(){if(v&&!y)for(;g.length;)delete m[g.pop()];else g=[];v=!1,y=!1}function s(e){if("string"==typeof e&&(e=e.split(w,2)),!f(e)||2!==e.length)throw new Error("Invalid tags: "+e);r=new RegExp(i(e[0])+"\\s*"),l=new RegExp("\\s*"+i(e[1])),p=new RegExp("\\s*"+i("}"+e[1]))}if(!t)return[];var r,l,p,h=[],m=[],g=[],v=!1,y=!1;s(n||e.tags);for(var C,T,S,$,P,M,E=new d(t);!E.eos();){if(C=E.pos,S=E.scanUntil(r))for(var F=0,A=S.length;F<A;++F)a($=S.charAt(F))?g.push(m.length):y=!0,m.push(["text",$,C,C+1]),C+=1,"\n"===$&&o();if(!E.scan(r))break;if(v=!0,T=E.scan(k)||"name",E.scan(b),"="===T?(S=E.scanUntil(_),E.scan(_),E.scanUntil(l)):"{"===T?(S=E.scanUntil(p),E.scan(x),E.scanUntil(l),T="&"):S=E.scanUntil(l),!E.scan(l))throw new Error("Unclosed tag at "+E.pos);if(P=[T,S,C,E.pos],m.push(P),"#"===T||"^"===T)h.push(P);else if("/"===T){if(!(M=h.pop()))throw new Error('Unopened section "'+S+'" at '+C);if(M[1]!==S)throw new Error('Unclosed section "'+M[1]+'" at '+C)}else"name"===T||"{"===T||"&"===T?y=!0:"="===T&&s(S)}if(M=h.pop())throw new Error('Unclosed section "'+M[1]+'" at '+E.pos);return u(c(m))}function c(e){for(var t,n,i=[],o=0,s=e.length;o<s;++o)(t=e[o])&&("text"===t[0]&&n&&"text"===n[0]?(n[1]+=t[1],n[3]=t[3]):(i.push(t),n=t));return i}function u(e){for(var t,n=[],i=n,o=[],s=0,a=e.length;s<a;++s)switch((t=e[s])[0]){case"#":case"^":i.push(t),o.push(t),i=t[4]=[];break;case"/":o.pop()[5]=t[2],i=o.length>0?o[o.length-1][4]:n;break;default:i.push(t)}return n}function d(e){this.string=e,this.tail=e,this.pos=0}function p(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function h(){this.cache={}}var m=Object.prototype.toString,f=Array.isArray||function(e){return"[object Array]"===m.call(e)},g=RegExp.prototype.test,v=/\S/,y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},b=/\s*/,w=/\s+/,_=/\s*=/,x=/\s*\}/,k=/#|\^|\/|>|\{|&|=|!/;d.prototype.eos=function(){return""===this.tail},d.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},d.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},p.prototype.push=function(e){return new p(e,this)},p.prototype.lookup=function(e){var n,i=this.cache;if(i.hasOwnProperty(e))n=i[e];else{for(var s,a,r=this,l=!1;r;){if(e.indexOf(".")>0)for(n=r.view,s=e.split("."),a=0;null!=n&&a<s.length;)a===s.length-1&&(l=o(n,s[a])),n=n[s[a++]];else n=r.view[e],l=o(r.view,e);if(l)break;r=r.parent}i[e]=n}return t(n)&&(n=n.call(this.view)),n},h.prototype.clearCache=function(){this.cache={}},h.prototype.parse=function(e,t){var n=this.cache,i=n[e];return null==i&&(i=n[e]=l(e,t)),i},h.prototype.render=function(e,t,n){var i=this.parse(e),o=t instanceof p?t:new p(t);return this.renderTokens(i,o,n,e)},h.prototype.renderTokens=function(e,t,n,i){for(var o,s,a,r="",l=0,c=e.length;l<c;++l)a=void 0,
14"#"===(s=(o=e[l])[0])?a=this.renderSection(o,t,n,i):"^"===s?a=this.renderInverted(o,t,n,i):">"===s?a=this.renderPartial(o,t,n,i):"&"===s?a=this.unescapedValue(o,t):"name"===s?a=this.escapedValue(o,t):"text"===s&&(a=this.rawValue(o)),void 0!==a&&(r+=a);return r},h.prototype.renderSection=function(e,n,i,o){function s(e){return a.render(e,n,i)}var a=this,r="",l=n.lookup(e[1]);if(l){if(f(l))for(var c=0,u=l.length;c<u;++c)r+=this.renderTokens(e[4],n.push(l[c]),i,o);else if("object"==typeof l||"string"==typeof l||"number"==typeof l)r+=this.renderTokens(e[4],n.push(l),i,o);else if(t(l)){if("string"!=typeof o)throw new Error("Cannot use higher-order sections without the original template");null!=(l=l.call(n.view,o.slice(e[3],e[5]),s))&&(r+=l)}else r+=this.renderTokens(e[4],n,i,o);return r}},h.prototype.renderInverted=function(e,t,n,i){var o=t.lookup(e[1]);if(!o||f(o)&&0===o.length)return this.renderTokens(e[4],t,n,i)},h.prototype.renderPartial=function(e,n,i){if(i){var o=t(i)?i(e[1]):i[e[1]];return null!=o?this.renderTokens(this.parse(o),n,i,o):void 0}},h.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(null!=n)return n},h.prototype.escapedValue=function(t,n){var i=n.lookup(t[1]);if(null!=i)return e.escape(i)},h.prototype.rawValue=function(e){return e[1]},e.name="mustache.js",e.version="2.2.1",e.tags=["{{","}}"];var C=new h;e.clearCache=function(){return C.clearCache()},e.parse=function(e,t){return C.parse(e,t)},e.render=function(e,t,i){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+n(e)+'" was given as the first argument for mustache#render(template, view, partials)');r
14eturn C.render(e,t,i)},e.to_html=function(n,i,o,s){var a=e.render(n,i,o);if(!t(s))return a;s(a)},e.escape=r,e.Scanner=d,e.Context=p,e.Writer=h}),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 i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,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,i;return t.forEach(function(e){return e.value=e.remote_id}),n=e.cell.get("options"),i={calendarIds:n.remote_calendar_ids||[],calendars:t},e.$modal=$(HandlebarsTemplates.calendar_modal(i)),e.$modal.find("#save_calendar").on("click",function(){return(i={}).remote_calendar_ids=e.$modal.find("input:checked").map(function(e,t){return t.value}).get(),e.cell.set("options",i),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 i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,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,i;return t=$(e.target).closest(".carousel-editor-frame"),n=t.find(".asset-browser").attr("id"),i={selectedSrc:t.find("img").length>0?t.find("img").attr("src"):null,useAddButton:!0,el:n,onClose:function(e){var i;return 0===(i=t.find("img.frame-image")).length&&(i=$('<img class="frame-image">')),0===i.parent().length&&t.prepend(i),i.attr("src",e),t.find("#"+n).html("")}},new Unite.BrowseAssetsView(_.extend(i,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,i){var o,s,a;return a=(o=$(i)).find(".carousel-frame-enable-link").get(0).checked,s={id:o.data("id"),url:a&&o.find(".carousel-frame-cached-url").val()||"",link_type:!!a&&t.linkTypeFor(o),link_target:!!a&&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:a},e.frames.push(s)})),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;
14return 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 i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,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,i;return null==(n=e.cell.get("options")).show_title&&(n.show_title=!0),i={feedId:n.feed_id,postCount:n.post_count||3,showTitle:n.show_title,feeds:t},e.$modal=$(HandlebarsTemplates.feed_modal(i)),e.$modal.find("#save_feed").on("click",function(){return(i={}).feed_id=+e.$modal.find("#feed_id").val(),i.post_count=e.$modal.find("#post_count").val(),i.show_title=e.$modal.find("#show_title").get(0).checked,e.cell.set("options",i),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 i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,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,i;return null==t&&(t={}),n={},i=t.onSave,n.updateSourceElementOnDestroy=!0,"function"==typeof i&&(n.autosave={save:function(e){return i(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,i,o){var s,a;
14return null==n&&(n=!1),null==i&&(i=""),null==o&&(o=""),a=HandlebarsTemplates["ckeditor/link_to"],(s=$(a({forImage:n,currentValue:i,currentTarget:o}))).on("hidden",function(){return s.remove()}),s.on("linkReady",function(t,n){var i;return i=n.url.replace(/^\/+/g,"/"),e.fire("linkTo_urlSelected",i,n.target),$(this).modal("hide")}),s.modal({backdrop:!1})}),e.on("assetBrowser_showBrowser",function(n,i,o){var s,a,r;return r=HandlebarsTemplates["ckeditor/media_embed"]({mediaType:i}),(s=$(r)).on("hidden",function(){return s.remove()}),s.on("mediaReady",function(){return a.close(),$(this).modal("hide")}),s.modal({backdrop:!1}),t={selectedSrc:o,el:"media_embed",onClose:function(t){return e.fire("assetBrowser_assetSelected",t,i)}},a=new Unite.BrowseAssetsView(_.extend(t,Unite.getAssetsAndCollectionFor(i)))}),e.on("groupWidget_showOptions",function(t,n,i){var o,s;return null==i&&(i="small"),s=HandlebarsTemplates["ckeditor/group_widget"],(o=$(s({selectedId:n,selectedSize:i}))).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 i,o,s,a;return a=HandlebarsTemplates["ckeditor/html_widget"],(o=document.createElement("div")).innerHTML=a({innerHtml:n}),s=o.children[0],document.querySelector("body").appendChild(s),(i=$(s)).on("hidden",function(){return i.remove()}),i.on("htmlWidgetReady",function(t,n){return e.fire("htmlWidget_widgetReady",n),$(this).modal("hide")}),i.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(new(require("ace/mode/html").Mode))}),$(".modal-footer").on("click","#submit_html",function(){return $(this).closest(".modal").trigger("htmlWidgetReady",Unite.ace_editor.getSession().getValue())})}),i.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,i,o,s,a;if(e.dragData)return n=Math.floor((t.clientX-e.dragData.originX)/e.dragSensitivity()),i=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),s=Math.min(i,Math.max(1,e.dragData.cellBeforeColspan+n)),o=Math.min(i,Math.max(1,e.dragData.cellAfterColspan-(s-e.dragData.cellBeforeColspan))),e.cellBefore.set("colspan",s),e.cell.set("colspan",o),a=[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(a).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(a).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 i(){this.constructor=e}for(var o in t)n.call(t,o)&&(e[o]=t[o]);return i.prototype=t.prototype,e.prototype=new i,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)}
14return 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 i(){this.constructor=e}for(var o in t)n.call(t,o)&&(e[o]=t[o]);return i.prototype=t.prototype,e.prototype=new i,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)}return 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 i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,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;
14return 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,i,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",i=e.$el.offset(),o=e.$el.width(),t.clientX-i.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,i,o,s;if(e.collection.pageEditor.draggingCell&&e.collection.pageEditor.draggingCell.id!==e.id)return t.preventDefault(),o=e.$el.offset(),s=e.$el.width(),i=t.clientX-o.left<s/2?0:1,e.get("column")>e.collection.pageEditor.draggingCell.get("column")&&(i-=1),n=e.get("
14column")+i,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,i;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",(i=this,function(){var t;return t=e.find("#cell_type_select").val(),i.set("type",t),(i.hasUnsavedChanges()?i.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 i(){this.constructor=e}for(var o in t)n.call(t,o)&&(e[o]=t[o]);return i.prototype=t.prototype,e.prototype=new i,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 i(){this.constructor=e}for(var o in t)n.call(t,o)&&(e[o]=t[o]);return i.prototype=t.prototype,e.prototype=new i,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)}
14return 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 i;this.rowNumber=e,this.allCells=t,this.pageEditor=n,(this.allCells||[]).filter((i=this,function(e){return e.get("row")===i.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){
15return 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("
15colspan")),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,this.$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,i;if(t.canAddCells&&!t.addingCell)return t.addingCell=!0,(i=t.cells.filter(function(e){return e.get("colspan")>1}).last()).set("colspan",i.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,i,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(i=0,o=e<0?-1:1;Math.abs(e)>0&&t.some(function(e){return e.get("colspan")>1});)(n=t[i].get("colspan")+o)<1||(t[i].set("colspan",n),e-=o),i=(i+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 i,o,s;return o=t.rowEditors.indexOf(e),t.rowEditors.splice(o,1),o===t.rowEditors.length&&n(),i=function(){s=[];for(var e=o,n=t.rowEditors.length;o<=n?e<n:e>n;o<=n?e++:e--)s.push(e);return s}.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($,i).then(function(){return n()})}));var t},e.prototype.insertRowAt=function(e){var t,n,i;return this.$document.addClass("inserting-row"),this.sortRows(),function(){n=[];for(var i=t=this.rowEditors.length;t<=e?i<e:i>e;t<=e?i++:i--)n.push(i);return n}
15.apply(this).forEach((i=this,function(e){return i.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,i,o;return this.draggingCell.get("row")===e&&this.draggingCell.get("column")===t?$.Deferred().resolve():(i=(n=this.draggingCell).$el.height(),(o=this.rowEditors[n.get("row")]).$el.css({minHeight:i}),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 i;return i=$(t),n.heightMap[i.prop("id")]=i.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,i,o){var s,a,r=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(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:1,column:44},end:{line:1,column:50}}}):a)+'">\n  <div class="image-preview-area">\n    <img src="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"asset_url")||(null!=t?r(t,"asset_url"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"asset_url",hash:{},data:o,loc:{start:{line:3,column:14},end:{line:3,column:27}}}):a)+'" 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(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:8,column:30},end:{line:8,column:36}}}):a)+'">Heading</label></dt>\n      <dd><input type="text" id="heading_'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:9,column:41},end:{line:9,column:47}}}):a)+'" class="carousel-frame-heading" value="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"heading")||(null!=t?r(t,"heading"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"heading",hash:{},data:o,loc:{start:{line:9,column:87},end:{line:9,column:98}}}):a)+'"></dd>\n      <dt><label for="caption_'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:10,column:30},end:{line:10,column:36}}}):a)+'">Caption</label></dt>\n      <dd><input type="text" id="caption_'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:11,column:41},end:{line:11,column:47}}}):a)+'" class="carousel-frame-caption" value="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"caption")||(null!=t?r(t,"caption"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"caption",hash:{},data:o,loc:{start:{line:11,column:87},end:{line:11,column:98}}}):a)+'"></dd>\n      <dt><label for="enable_link_'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:12,column:34},end:{line:12,column:40}}}):a)+'">Link</label></dt>\n      <dd>\n        <label for="enable_link_'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:14,column:32},end:{line:14,column:38}}}):a)+'">\n          <input type="checkbox" '+(null!=(s=r(n,"if").call(null!=t?t:e.nullContext||{},null!=t?r(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}}}))?s:"")+' id="enable_link_'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:15,column:93},end:{line:15,column:99}}}):a)+'" class="carousel-frame-enable-link"/> Linkable?\n        </label>\n        <div id="show_link_options_'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:17,column:35},end:{line:17,column:41}}}):a)+'" '+(null!=(s=r(n,"unless").call(null!=t?t:e.nullContext||{},null!=t?r(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}}}))?s:"")+">\n          <input "+(null!=(s=(r(n,"ifEqual")||t&&r(t,"ifEqual")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?r(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}}}))?s:"")+' type="radio" name="link_type_'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:18,column:94},end:{line:18,column:100}}}):a)+'" id="link_type_any_'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:18,column:120},end:{line:18,column:126}}}):a)+'" value="any"><label for="link_type_any_'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:18,column:166}
vendor: 4,960 bytes, line 15
15,end:{line:18,column:172}}}):a)+'"> URL</label>\n          <input '+(null!=(s=(r(n,"ifEqual")||t&&r(t,"ifEqual")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?r(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}}}))?s:"")+' type="radio" name="link_type_'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:19,column:95},end:{line:19,column:101}}}):a)+'" id="link_type_page_'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:19,column:122},end:{line:19,column:128}}}):a)+'" value="page"><label for="link_type_page_'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:19,column:170},end:{line:19,column:176}}}):a)+'"> Unite Page</label>\n          <input type="hidden" class="carousel-frame-cached-url" value="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"url")||(null!=t?r(t,"url"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"url",hash:{},data:o,loc:{start:{line:20,column:72},end:{line:20,column:79}}}):a)+'" />\n          <input type="text" id="link_any_url_'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:21,column:46},end:{line:21,column:52}}}):a)+'" class="carousel-frame-any-url" value="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"url")||(null!=t?r(t,"url"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"url",hash:{},data:o,loc:{start:{line:21,column:92},end:{line:21,column:99}}}):a)+'" placeholder="http://">\n          <select id="link_page_select_'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:22,column:39},end:{line:22,column:45}}}):a)+'" class="carousel-frame-page-select"></select>\n          <br />\n          <span>Open in: </span>\n          <input '+(null!=(s=(r(n,"ifEqual")||t&&r(t,"ifEqual")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?r(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}}}))?s:"")+' type="radio" name="link_target_'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:25,column:102},end:{line:25,column:108}}}):a)+'" id="link_target_parent_'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:25,column:133},end:{line:25,column:139}}}):a)+'" value="_parent"><label for="link_target_parent_'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:25,column:188},end:{line:25,column:194}}}):a)+'"> this tab</label>\n          <input '+(null!=(s=(r(n,"ifEqual")||t&&r(t,"ifEqual")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?r(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}}}))?s:"")+' type="radio" name="link_target_'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:26,column:101},end:{line:26,column:107}}}):a)+'" id="link_target_blank_'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:26,column:131},end:{line:26,column:137}}}):a)+'" value="_blank"><label for="link_target_blank_'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:26,column:184},end:{line:26,column:190}}}):a)+'"> another tab</label>\n        </div>\n      </dd>\n    </dl>\n    <div class="asset-browser" id="asset_browser_'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:30,column:49}
15,end:{line:30,column:55}}}):a)+'"></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,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(s=null!=(s=a(n,"descriptor")||(null!=t?a(t,"descriptor"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"descriptor",hash:{},data:o,loc:{start:{line:1,column:34},end:{line:1,column:48}}}):s)},3:function(){return"cell"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="add-'+(null!=(s=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(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}}}))?s:"")+'-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,i,o){var s,a,r=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(a=null!=(a=r(n,"collectionClass")||(null!=t?r(t,"collectionClass"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"collectionClass",hash:{},data:o,loc:{start:{line:6,column:52},end:{line:6,column:71}}}):a)+'" class="-unite-upload-button btn btn-primary" />\n  '+(null!=(s=r(n,"if").call(null!=t?t:e.nullContext||{},null!=t?r(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}}}))?s:"")+'\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}
15),this.HandlebarsTemplates["assets/modal"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["assets/show"]=Handlebars.template({1:function(e,t,n,i,o){var s,a=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(s=null!=(s=a(n,"willCleanInterval")||(null!=t?a(t,"willCleanInterval"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"willCleanInterval",hash:{},data:o,loc:{start:{line:8,column:107},end:{line:8,column:128}}}):s)+'"></i>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a,r=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(a=null!=(a=r(n,"thumbnailUrl")||(null!=t?r(t,"thumbnailUrl"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"thumbnailUrl",hash:{},data:o,loc:{start:{line:2,column:12},end:{line:2,column:28}}}):a)+'" alt="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"url")||(null!=t?r(t,"url"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"url",hash:{},data:o,loc:{start:{line:2,column:35},end:{line:2,column:42}}}):a)+'" title="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"name")||(null!=t?r(t,"name"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o,loc:{start:{line:2,column:51},end:{line:2,column:59}}}):a)+'" onerror="this.src=\'/javascripts/ckeditor/images/ckfnothumb.gif\'" />\n</div>\n<div class="-unite-asset-name">'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"name")||(null!=t?r(t,"name"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o,loc:{start:{line:4,column:31},end:{line:4,column:39}}}):a)+'</div>\n<div class="-unite-asset-size">'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"size")||(null!=t?r(t,"size"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"size",hash:{},data:o,loc:{start:{line:5,column:31},end:{line:5,column:39}}}):a)+'</div>\n<a rel="nofollow" class="-unite-delete-asset" href="/ckeditor/assets/'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:6,column:69},end:{line:6,column:75}}}):a)+'.json">Remove</a>\n'+(null!=(s=r(n,"if").call(null!=t?t:e.nullContext||{},null!=t?r(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}}}))?s:"")+'<span class="asset-type" data-type="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"type")||(null!=t?r(t,"type"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"type",hash:{},data:o,loc:{start:{line:10,column:36},end:{line:10,column:44}}}):a)+'"></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,i,o,s,a){var r,l,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'          <li class="calendar-cell-calendar">\n            <input '+(null!=(r=(c(n,"ifIn")||t&&c(t,"ifIn")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?c(t,"value"):t,null!=a[1]?c(a[1],"calendarIds"):a[1],{name:"ifIn",hash:{},fn:e.program(2,o,0,s,a),inverse:e.noop,data:o,loc:{start:{line:12,column:19},end:{line:12,column:75}}}))?r:"")+' type="checkbox" value="'+e.escapeExpression("function"==typeof(l=null!=(l=c(n,"value")||(null!=t?c(t,"value"):t))?l:e.hooks.helperMissing)?l.call(null!=t?t:e.nullContext||{},{name:"value",hash:{},data:o,loc:{start:{line:12,column:99},end:{line:12,column:108}}}):l)+'" id="calendar_'+e.escapeExpression("function"==typeof(l=null!=(l=c(n,"id")||(null!=t?c(t,"id"):t))?l:e.hooks.helperMissing)?l.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:12,column:123},end:{line:12,column:129}}}):l)+'" />\n            <label for="calendar_'+e.escapeExpression("function"==typeof(l=null!=(l=c(n,"id")||(null!=t?c(t,"id"):t))?l:e.hooks.helperMissing)?l.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:13,column:33},end:{line:13,column:39}}}):l)+'" class="owner-'+e.escapeExpression("function"==typeof(l=null!=(l=c(n,"owner")||(null!=t?c(t,"owner"):t))?l:e.hooks.helperMissing)?l.call(null!=t?t:e.nullContext||{},{name:"owner",hash:{},data:o,loc:{start:{line:13,column:54},end:{line:13,column:63}}}):l)+'"> '+e.escapeExpression("function"==typeof(l=null!=(l=c(n,"name")||(null!=t?c(t,"name"):t))?l:e.hooks.helperMissing)?l.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o,loc:{start:{line:13,column:66},end:{line:13,column:74}}}):l)+"</label>\n          </li>\n"},2:function(){return'checked="checked"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o,s,a){var r,l=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!=(r=l(n,"each").call(null!=t?t:e.nullContext||{},null!=t?l(t,"calendars"):t,{name:"each",hash:{},fn:e.program(1,o,0,s,a),inverse:e.noop,data:o,loc:{start:{line:10,column:8},end:{line:15,column:17}}}))?r:"")+'      </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,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(s=e.invokePartial(a(i,"_frame_editor"),t,{name:"_frame_editor",data:o,indent:"      ",helpers:n,partials:i,decorators:e.decorators}))?s:""},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a,r=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">
15\n    <dl class="carousel-settings">\n      <dt>Animation</dt>\n      <dd>\n        <input type="checkbox" '+(null!=(s=r(n,"if").call(null!=t?t:e.nullContext||{},null!=t?r(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}}}))?s:"")+' id="auto_advance">\n        <label for="auto_advance">\n          Auto-advance every <input type="number" min="0" max="10" id="frame_delay" '+(null!=(s=r(n,"unless").call(null!=t?t:e.nullContext||{},null!=t?r(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}}}))?s:"")+' value="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"frameDelay")||(null!=t?r(t,"frameDelay"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"frameDelay",hash:{},data:o,loc:{start:{line:12,column:145},end:{line:12,column:159}}}):a)+'"> 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(a=null!=(a=r(n,"height")||(null!=t?r(t,"height"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"height",hash:{},data:o,loc:{start:{line:17,column:66},end:{line:17,column:76}}}):a)+'"> pixels\n      </dd>\n    </dl>\n'+(null!=(s=r(n,"each").call(null!=t?t:e.nullContext||{},null!=t?r(t,"frames"):t,{name:"each",hash:{},
16fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:20,column:4},end:{line:22,column:13}}}))?s:"")+'    <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,i,o){var s,a=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>Cell HTML Class</h3>\n  </div>\n  <div class="modal-body">\n    <input id="cell_class" name="cell_class" value="'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"currentClass")||(null!=t?a(t,"currentClass"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"currentClass",hash:{},data:o,loc:{start:{line:7,column:52},end:{line:7,column:68}}}):s)+'" 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}
16),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,i,o,s,a){var r,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=(l(n,"ifEqual")||t&&l(t,"ifEqual")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?l(t,"id"):t,null!=a[1]?l(a[1],"currentType"):a[1],{name:"ifEqual",hash:{},fn:e.program(2,o,0,s,a),inverse:e.program(4,o,0,s,a),data:o,loc:{start:{line:10,column:8},end:{line:14,column:20}}}))?r:""},2:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'          <option value="'+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:25},end:{line:11,column:31}}}):s)+'" selected="selected">'+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:{}
16,data:o,loc:{start:{line:11,column:53},end:{line:11,column:61}}}):s)+"</option>\n"},4:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'          <option value="'+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:13,column:25},end:{line:13,column:31}}}):s)+'">'+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:13,column:33},end:{line:13,column:41}}}):s)+"</option>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o,s,a){var r,l,c,u=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 l=null!=(l=u(n,"types")||(null!=t?u(t,"types"):t))?l:e.hooks.helperMissing,c={name:"types",hash:{},fn:e.program(1,o,0,s,a),inverse:e.noop,data:o,loc:{start:{line:9,column:6},end:{line:15,column:16}}},r="function"==typeof l?l.call(null!=t?t:e.nullContext||{},c):l,u(n,"types")||(r=e.hooks.blockHelperMissing.call(t,r,c)),null!=r&&(d+=r),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,i,o,s,a){var r,l,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"          <option "+(null!=(r=(c(n,"ifEqual")||t&&c(t,"ifEqual")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?c(t,"id"):t,null!=a[1]?c(a[1],"feedId"):a[1],{name:"ifEqual",hash:{},fn:e.program(2,o,0,s,a),inverse:e.noop,data:o,loc:{start:{line:11,column:18},end:{line:11,column:74}}}))?r:"")+' value="'+e.escapeExpression("function"==typeof(l=null!=(l=c(n,"id")||(null!=t?c(t,"id"):t))?l:e.hooks.helperMissing)?l.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:11,column:82},end:{line:11,column:88}}}):l)+'">'+e.escapeExpression("function"==typeof(l=null!=(l=c(n,"title")||(null!=t?c(t,"title"):t))?l:e.hooks.helperMissing)?l.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:o,loc:{start:{line:11,column:90},end:{line:11,column:99}}}):l)+"</option>\n"},2:function(){return'selected="selected"'},4:function(){return'checked="checked"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o,s,a){var r,l,c=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!=(r=c(n,"each").call(null!=t?t:e.nullContext||{},null!=t?c(t,"feeds"):t,{name:"each",hash:{},fn:e.program(1,o,0,s,a),inverse:e.noop,data:o,loc:{start:{line:10,column:8},end:{line:12,column:17}}}))?r:"")+'      </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(l=null!=(l=c(n,"postCount")||(null!=t?c(t,"postCount"):t))?l:e.hooks.helperMissing)?l.call(null!=t?t:e.nullContext||{},{name:"postCount",hash:{},data:o,loc:{start:{line:16,column:91},end:{line:16,column:104}}}):l)+'">\n    </label><br/>\n    <label for="show_title">\n      <input type="checkbox" '+(null!=(r=c(n,"if").call(null!=t?t:e.nullContext||{},null!=t?c(t,"showTitle"):t,{name:"if",hash:{},fn:e.program(4,o,0,s,a),inverse:e.noop,data:o,loc:{start:{line:19,column:29},end:{line:19,column:70}}}))?r:"")+' 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,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'style="height: '+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"fakeHeight")||(null!=t?a(t,"fakeHeight"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"fakeHeight",hash:{},data:o,loc:{start:{line:2,column:59},end:{line:2,column:73}}}):s)+"px;line-height: "+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"fakeHeight")||(null!=t?a(t,"fakeHeight"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"fakeHeight",hash:{},data:o,loc:{start:{line:2,column:89},end:{line:2,column:103}}}):s)+'px"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a,r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="cell cell-'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"cellNumber")||(null!=t?r(t,"cellNumber"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"cellNumber",hash:{},data:o,loc:{start:{line:1,column:22},end:{line:1,column:36}}}):a)+" cell-column-width-"+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"colspan")||(null!=t?r(t,"colspan"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"colspan",hash:{}
16,data:o,loc:{start:{line:1,column:55},end:{line:1,column:66}}}):a)+" type-"+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"type")||(null!=t?r(t,"type"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"type",hash:{},data:o,loc:{start:{line:1,column:72},end:{line:1,column:80}}}):a)+'" data-cell="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:1,column:93},end:{line:1,column:99}}}):a)+'" data-colspan="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"colspan")||(null!=t?r(t,"colspan"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"colspan",hash:{},data:o,loc:{start:{line:1,column:115},end:{line:1,column:126}}}):a)+'" data-cell-number="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"cellNumber")||(null!=t?r(t,"cellNumber"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"cellNumber",hash:{},data:o,loc:{start:{line:1,column:146},end:{line:1,column:160}}}):a)+'" data-cell-row="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"debugRow")||(null!=t?r(t,"debugRow"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"debugRow",hash:{},data:o,loc:{start:{line:1,column:177},end:{line:1,column:189}}}):a)+'" draggable="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"canDrag")||(null!=t?r(t,"canDrag"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"canDrag",hash:{},data:o,loc:{start:{line:1,column:202},end:{line:1,column:213}}}):a)+'">\n  <div class="cell-padding" '+(null!=(s=r(n,"if").call(null!=t?t:e.nullContext||{},null!=t?r(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}}}))?s:"")+">"+(null!=(s="function"==typeof(a=null!=(a=r(n,"cachedHtml")||(null!=t?r(t,"cachedHtml"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"cachedHtml",hash:{},data:o,loc:{start:{line:2,column:114},end:{line:2,column:130}}}):a)?s:"")+"</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,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div id="row_'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"rowNumber")||(null!=t?a(t,"rowNumber"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"rowNumber",hash:{},data:o,loc:{start:{line:1,column:13},end:{line:1,column:26}}}):s)+'" class="-unite-row">\n</div>'},useData:!0}),this.HandlebarsTemplates.page_row}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,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,i;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={}
16)[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:(i=this,function(e,t){var n;return _.isString(t)&&(t=JSON.parse(t)),n=new i.assets.model(t),i.selectedAssetUrl=n.get("url"),i.selectNone(),i.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,i,o,s;if($(".asset-group-label").removeClass("no-show"),t=+Unite.meta("document_id"),i="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((s=this,function(e){return s.renderNextAsset(e,s.$documentAssetsUl)})),n.each(function(e){return function(t){return e.renderNextAsset(t,e.$globalAssetsUl)}}(this)),_.isEmpty(n)&&!i&&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,i;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((i=this,function(){if(i.selectedAssetView!==n)return i.selectedAssetView&&i.selectedAssetView.deselect(),i.selectedAssetView=n,i.selectedAssetView&&i.selectedAssetView.select(),i.selectAsset(n.model),i.closeOnSelect?i.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,function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports&&"object"==typeof module?module.exports=e(require("jquery")):e(jQuery)}(function(e,t){"use strict";function n(t,n,i,o){for(var s=[],a=0;a<t.length;a++){var r=t[a];if(r){var l=tinycolor(r),c=l.toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light";c+=tinycolor.equals(n,r)?" sp-thumb-active":"";var u=l.toString(o.preferredFormat||"rgb"),d=g?"background-color:"+l.toRgbString():"filter:"+l.toFilter();s.push('<span title="'+u+'" data-color="'+l.toRgbString()+'" class="'+c+'"><span class="sp-thumb-inner" style="'+d+';"></span></span>')}else{var p="sp-clear-display";s.push(e("<div />").append(e('<span data-color="" style="background-color:transparent;" class="'+p+'"></span>').attr("title",o.noColorSelectedText)).html())}}return"<div class='sp-cf "+i+"'>"+s.join("")+"</div>"}function i(){for(var e=0;e<m.length;e++)m[e]&&m[e].hide()}function o(t,n){var i=e.extend({},h,t);return i.callbacks={move:c(i.move,n),change:c(i.change,n),show:c(i.show,n),hide:c(i.hide,n),beforeShow:c(i.beforeShow,n)},i}function s(s,r){function c(){if(J.showPaletteOnly&&(J.showPalette=!0),Oe.text(J.showPaletteOnly?J.togglePaletteMoreText:J.togglePaletteLessText),J.palette){pe=J.palette.slice(0),he=Array.isArray(pe[0])?pe:[pe],me={};for(var e=0;e<he.length;e++)for(var t=0;t<he[e].length;t++){var n=tinycolor(he[e][t]).toRgbString();me[n]=!0}}xe.toggleClass("sp-flat",G),xe.toggleClass("sp-input-disabled",!J.showInput),xe.toggleClass("sp-alpha-enabled",J.showAlpha),xe.toggleClass("sp-clear-enabled",Ye),xe.toggleClass("sp-buttons-disabled",!J.showButtons),xe.toggleClass("sp-palette-buttons-disabled",!J.togglePaletteOnly),xe.toggleClass("sp-palette-disabled",!J.showPalette),xe.toggleClass("sp-palette-only",J.showPaletteOnly),xe.toggleClass("sp-initial-disabled",!J.showInitial),xe.addClass(J.className).addClass(J.containerClassName),L()}function h(){function t(t){return t.data&&t.data.ignore?(I(e(t.target).closest(".sp-thumb-el").data("c
16olor")),D()):(I(e(t.target).closest(".sp-thumb-el").data("color")),D(),J.hideAfterPaletteSelect?(B(!0),F()):B()),!1}if(f&&xe.find("*:not(input)").attr("unselectable","on"),c(),Le&&we.after(Re).hide(),Ye||He.hide(),G)we.after(xe).hide();else{var n="parent"===J.appendTo?we.parent():e(J.appendTo);1!==n.length&&(n=e("body")),n.append(xe)}b(),ze.on("click.spectrum touchstart.spectrum",function(t){_e||$(),t.stopPropagation(),e(t.target).is("input")||t.preventDefault()}),(we.is(":disabled")||!0===J.disabled)&&q(),xe.on("click",l),Fe.on("change",S),Fe.on("paste",function(){setTimeout(S,1)}),Fe.on("keydown",function(e){13==e.keyCode&&S()}),Ue.text(J.cancelText),Ue.on("click.spectrum",function(e){e.stopPropagation(),e.preventDefault(),A(),F()}),He.attr("title",J.clearText),He.on("click.spectrum",function(e){e.stopPropagation(),e.preventDefault(),We=!0,D(),G&&B(!0)}),De.text(J.chooseText),De.on("click.spectrum",function(e){e.stopPropagation(),e.preventDefault(),f&&Fe.is(":focus")&&Fe.trigger("change"),H()&&(B(!0),F())}),Oe.text(J.showPaletteOnly?J.togglePaletteMoreText:J.togglePaletteLessText),Oe.on("click.spectrum",function(e){e.stopPropagation(),e.preventDefault(),J.showPaletteOnly=!J.showPaletteOnly,J.showPaletteOnly||G||xe.css("left","-="+(ke.outerWidth(!0)+5)),c()}),u(Me,function(e,t,n){de=e/se,We=!1,n.shiftKey&&(de=Math.round(10*de)/10),D()},C,T),u(Se,function(e,t){le=parseFloat(t/oe),We=!1,J.showAlpha||(de=1),D()},C,T),u(Ce,function(e,t,n){if(n.shiftKey){if(!ye){var i=ce*te,o=ne-ue*ne,s=Math.abs(e-i)>Math.abs(t-o);ye=s?"x":"y"}}else ye=null;var a=!ye||"y"===ye;(!ye||"x"===ye)&&(ce=parseFloat(e/te)),a&&(ue=parseFloat((ne-t)/ne)),We=!1,J.showAlpha||(de=1),D()},C,T),qe?(I(qe),O(),Je=J.preferredFormat||tinycolor(qe).format,w(qe)):O(),G&&P();var i=f?"mousedown.spectrum":"click.spectrum touchstart.spectrum";Ae.on(i,".sp-thumb-el",t),Ie.on(i,".sp-thumb-el:nth-child(1)",{ignore:!0},t)}function b(){if(Y&&window.localStorage){try{var t=window.localStorage[Y].split(",#");t.length>1&&(delete window.localStorage[Y],e.each(t,function(e,t){w(t)}))}catch(e){}try{fe=window.localStorage[Y].split(";")}catch(e){}}}function w(t){if(W){var n=tinycolor(t).toRgbString();if(!me[n]&&-1===e.inArray(n,fe))for(fe.push(n);fe.length>ge;)fe.shift();if(Y&&window.localStorage)try{window.localStorage[Y]=fe.join(";")}catch(e){}}}function _(){var e=[];if(J.showPalette)for(var t=0;t<fe.length;t++){var n=tinycolor(fe[t]).toRgbString();me[n]||e.push(fe[t])}return e.reverse().slice(0,J.maxSelectionSize)}function x(){var t=U(),i=e.map(he,function(e,i){return n(e,t,"sp-palette-row sp-palette-row-"+i,J)});b(),fe&&i.push(n(_(),t,"sp-palette-row sp-palette-row-selection",J)),Ae.html(i.join(""))}function k(){if(J.showInitial){var e=Ve,t=U();Ie.html(n([e,t],t,"sp-palette-row-initial",J))}}function C(){(ne<=0||te<=0||oe<=0)&&L(),ee=!0,xe.addClass(ve),ye=null,we.trigger("dragstart.spectrum",[U()])}function T(){ee=!1,xe.removeClass(ve),we.trigger("dragstop.spectrum",[U()])}function S(){var e=Fe.val();if(null!==e&&""!==e||!Ye){var t=tinycolor(e);t.isValid()?(I(t),D(),B()):Fe.addClass("sp-validation-error")}else I(null),D(),B()}function $(){X?F():P()}function P(){var t=e.Event("beforeShow.spectrum");X?L():(we.trigger(t,[U()]),!1===Q.beforeShow(U())||t.isDefaultPrevented()||(i(),X=!0,e(be).on("keydown.spectrum",M),e(be).on("click.spectrum",E),e(window).on("resize.spectrum",Z),Re.addClass("sp-active"),xe.removeClass("sp-hidden"),L(),O(),Ve=U(),k(),Q.show(Ve),we.trigger("show.spectrum",[Ve])))}function M(e){27===e.keyCode&&F()}function E(e){2!=e.button&&(ee||(Ge?B(!0):A(),F()))}function F(){X&&!G&&(X=!1,e(be).off("keydown.spectrum",M),e(be).off("click.spectrum",E),e(window).off("resize.spectrum",Z),Re.removeClass("sp-active"),xe.addClass("sp-hidden"),Q.hide(U()),we.trigger("hide.spectrum",[U()]))}function A(){I(Ve,!0),B(!0)}function I(e,t){var n,i;tinycolor.equals(e,U())?O():(!e&&Ye?We=!0:(We=!1,i=(n=tinycolor(e)).toHsv(),le=i.h%360/360,ce=i.s,ue=i.v,de=i.a),O(),n&&n.isValid()&&!t&&(Je=J.preferredFormat||n.getFormat()))}function U(e){return e=e||{},Ye&&We?null:tinycolor.fromRatio({h:le,s:ce,v:ue,a:Math.round(1e3*de)/1e3},{format:e.format||Je})}function H(){return!Fe.hasClass("sp-validation-error")}function D(){O(),Q.move(U()),we.trigger("move.spectrum",[U()])}function O(){Fe.removeClass("sp-validation-error"),N();var e=tinycolor.fromRatio({h:le,s:1,v:1});Ce.css("background-color",e.toHexString());var t=Je;de<1&&(0!==de||"name"!==t)&&("hex"!==t&&"hex3"!==t&&"hex6"!==t&&"name"!==t||(t="rgb"));var n=U({format:t}),i="";if(je.removeClass("sp-clear-display"),je.css("background-color","transparent"),!n&&Ye)je.addClass("sp-clear-display");else{var o=n.toHexString(),s=n.toRgbString();if(g||1===n.alpha?je.css("background-color",s):(je.css("background-color","transparent"),je.css("filter",n.toFilter())),J.showAlpha){var a=n.toRgb();a.a=0;var r=tinycolor(a).toRgbString(),l="linear-gradient(left, "+r+", "+o+")";f?Pe.css("filter",tinycolor(r).toFilter({gradientType:1},o)):(Pe.css("background","-webkit-"+l),Pe.css("background","-moz-"+l),Pe.css("background","-ms-"+l),Pe.css("background","linear-gradient(to right, "+r+", "+o+")"))}i=n.toString(t)}J.showInput&&Fe.val(i),J.showPalette&&x(),k()}function N(){var e=ce,t=ue;if(Ye&&We)Ee.hide(),$e.hide(),Te.hide();else{Ee.show(),$e.show(),Te.show();var n=e*te,i=ne-t*ne;n=Math.max(-ie,Math.min(te-ie,n-ie)),i=Math.max(-ie,Math.min(ne-ie,i-ie)),Te.css({top:i+"px",left:n+"px"});var o=de*se;Ee.css({left:o-ae/2+"px"});var s=le*oe;$e.css({top:s-re+"px"})}}function B(e){var t=U(),n="",i=!tinycolor.equals(t,Ve);t&&(n=t.toString(Je),w(t)),Ne&&we.val(n),e&&i&&(Q.change(t),we.trigger("change",[t]))}function L(){X&&(te=Ce.width(),ne=Ce.height(),ie=Te.height(),Se.width(),oe=Se.he
16ight(),re=$e.height(),se=Me.width(),ae=Ee.width(),G||(xe.css("position","absolute"),J.offset?xe.offset(J.offset):xe.offset(a(xe,ze))),N(),J.showPalette&&x(),we.trigger("reflow.spectrum"))}function R(){we.show(),ze.off("click.spectrum touchstart.spectrum"),xe.remove(),Re.remove(),m[Ke.id]=null}function z(n,i){return n===t?e.extend({},J):i===t?J[n]:(J[n]=i,"preferredFormat"===n&&(Je=J.preferredFormat),void c())}function j(){_e=!1,we.attr("disabled",!1),ze.removeClass("sp-disabled")}function q(){F(),_e=!0,we.attr("disabled",!0),ze.addClass("sp-disabled")}function V(e){J.offset=e,L()}var J=o(r,s),G=J.flat,W=J.showSelectionPalette,Y=J.localStorageKey,K=J.theme,Q=J.callbacks,Z=d(L,10),X=!1,ee=!1,te=0,ne=0,ie=0,oe=0,se=0,ae=0,re=0,le=0,ce=0,ue=0,de=1,pe=[],he=[],me={},fe=J.selectionPalette.slice(0),ge=J.maxSelectionSize,ve="sp-dragging",ye=null,be=s.ownerDocument,we=(be.body,e(s)),_e=!1,xe=e(y,be).addClass(K),ke=xe.find(".sp-picker-container"),Ce=xe.find(".sp-color"),Te=xe.find(".sp-dragger"),Se=xe.find(".sp-hue"),$e=xe.find(".sp-slider"),Pe=xe.find(".sp-alpha-inner"),Me=xe.find(".sp-alpha"),Ee=xe.find(".sp-alpha-handle"),Fe=xe.find(".sp-input"),Ae=xe.find(".sp-palette"),Ie=xe.find(".sp-initial"),Ue=xe.find(".sp-cancel"),He=xe.find(".sp-clear"),De=xe.find(".sp-choose"),Oe=xe.find(".sp-palette-toggle"),Ne=we.is("input"),Be=Ne&&"color"===we.attr("type")&&p(),Le=Ne&&!G,Re=Le?e(v).addClass(K).addClass(J.className).addClass(J.replacerClassName):e([]),ze=Le?Re:we,je=Re.find(".sp-preview-inner"),qe=J.color||Ne&&we.val(),Ve=!1,Je=J.preferredFormat,Ge=!J.showButtons||J.clickoutFiresChange,We=!qe,Ye=J.allowEmpty&&!Be;h();var Ke={show:P,hide:F,toggle:$,reflow:L,option:z,enable:j,disable:q,offset:V,set:function(e){I(e),B()},get:U,destroy:R,container:xe};return Ke.id=m.push(Ke)-1,Ke}function a(t,n){var i=0,o=t.outerWidth(),s=t.outerHeight(),a=n.outerHeight(),r=t[0].ownerDocument,l=r.documentElement,c=l.clientWidth+e(r).scrollLeft(),u=l.clientHeight+e(r).scrollTop(),d=n.offset(),p=d.left,h=d.top;return h+=a,p-=Math.min(p,p+o>c&&c>o?Math.abs(p+o-c):0),{top:h-=Math.min(h,h+s>u&&u>s?Math.abs(s+a-i):i),bottom:d.bottom,left:p,right:d.right,width:d.width,height:d.height}}function r(){}function l(e){e.stopPropagation()}function c(e,t){var n=Array.prototype.slice,i=n.call(arguments,2);return function(){return e.apply(t,i.concat(n.call(arguments)))}}function u(t,n,i,o){function s(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.returnValue=!1}function a(e){if(u){if(f&&c.documentMode<9&&!e.button)return l();var i=e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches[0],o=i&&i.pageX||e.pageX,a=i&&i.pageY||e.pageY,r=Math.max(0,Math.min(o-d.left,h)),g=Math.max(0,Math.min(a-d.top,p));m&&s(e),n.apply(t,[r,g,e])}}function r(n){(n.which?3==n.which:2==n.button)||u||!1!==i.apply(t,arguments)&&(u=!0,p=e(t).height(),h=e(t).width(),d=e(t).offset(),e(c).on(g),e(c.body).addClass("sp-dragging"),a(n),s(n))}function l(){u&&(e(c).off(g),e(c.body).removeClass("sp-dragging"),setTimeout(function(){o.apply(t,arguments)},0)),u=!1}n=n||function(){},i=i||function(){},o=o||function(){};var c=document,u=!1,d={},p=0,h=0,m="ontouchstart"in window,g={};g.selectstart=s,g.dragstart=s,g["touchmove mousemove"]=a,g["touchend mouseup"]=l,e(t).on("touchstart mousedown",r)}function d(e,t,n){var i;return function(){var o=this,s=arguments,a=function(){i=null,e.apply(o,s)};n&&clearTimeout(i),!n&&i||(i=setTimeout(a,t))}}function p(){return e.fn.spectrum.inputTypeColorSupport()}var h={beforeShow:r,move:r,change:r,show:r,hide:r,color:!1,flat:!1,showInput:!1,allowEmpty:!1,showButtons:!0,clickoutFiresChange:!0,showInitial:!1,showPalette:!1,showPaletteOnly:!1,hideAfterPaletteSelect:!1,togglePaletteOnly:!1,showSelectionPalette:!0,localStorageKey:!1,appendTo:"body",maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",togglePaletteMoreText:"more",togglePaletteLessText:"less",clearText:"Clear Color Selection",noColorSelectedText:"No Color Selected",preferredFormat:!1,className:"",containerClassName:"",replacerClassName:"",showAlpha:!1,theme:"sp-light",palette:[["#ffffff","#000000","#ff0000","#ff8
16000","#ffff00","#008000","#0000ff","#4b0082","#9400d3"]],selectionPalette:[],disabled:!1,offset:null},m=[],f=!!/msie/i.exec(window.navigator.userAgent),g=function(){function e(e,t){return!!~(""+e).indexOf(t)}var t=document.createElement("div").style;return t.cssText="background-color:rgba(0,0,0,.5)",e(t.backgroundColor,"rgba")||e(t.backgroundColor,"hsla")}(),v=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>&#9660;</div>","</div>"].join(""),y=function(){var e="";if(f)for(var t=1;t<=6;t++)e+="<div class='sp-"+t+"'></div>";return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","<div class='sp-palette-button-container sp-cf'>","<button type='button' class='sp-palette-toggle'></button>","</div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-clear sp-clear-display'>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",e,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false'  />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<a class='sp-cancel' href='#'></a>","<button type='button' class='sp-choose'></button>","</div>","</div>","</div>"].join("")}(),b="spectrum.id";e.fn.spectrum=function(t){if("string"==typeof t){var n=this,i=Array.prototype.slice.call(arguments,1);return this.each(function(){var o=m[e(this).data(b)];if(o){var s=o[t];if(!s)throw new Error("Spectrum: no such method: '"+t+"'");"get"==t?n=o.get():"container"==t?n=o.container:"option"==t?n=o.option.apply(o,i):"destroy"==t?(o.destroy(),e(this).removeData(b)):s.apply(o,i)}}),n}return this.spectrum("destroy").each(function(){var n=s(this,e.extend({},e(this).data(),t));e(this).data(b,n.id)})},e.fn.spectrum.load=!0,e.fn.spectrum.loadOpts={},e.fn.spectrum.draggable=u,e.fn.spectrum.defaults=h,
17e.fn.spectrum.inputTypeColorSupport=function t(){if(void 0===t._cachedResult){var n=e("<input type='color'/>")[0];t._cachedResult="color"===n.type&&""!==n.value}return t._cachedResult},e.spectrum={},e.spectrum.localization={},e.spectrum.palettes={},e.fn.spectrum.processNativeColorInputs=function(){var t=e("input[type=color]");t.length&&!p()&&t.spectrum({preferredFormat:"hex6"})},function(){function e(e){var n={r:0,g:0,b:0},o=1,a=!1,r=!1;return"string"==typeof e&&(e=A(e)),"object"==typeof e&&(e.hasOwnProperty("r")&&e.hasOwnProperty("g")&&e.hasOwnProperty("b")?(n=t(e.r,e.g,e.b),a=!0,r="%"===String(e.r).substr(-1)?"prgb":"rgb"):e.hasOwnProperty("h")&&e.hasOwnProperty("s")&&e.hasOwnProperty("v")?(e.s=M(e.s),e.v=M(e.v),n=s(e.h,e.s,e.v),a=!0,r="hsv"):e.hasOwnProperty("h")&&e.hasOwnProperty("s")&&e.hasOwnProperty("l")&&(e.s=M(e.s),e.l=M(e.l),n=i(e.h,e.s,e.l),a=!0,r="hsl"),e.hasOwnProperty("a")&&(o=e.a)),o=x(o),{ok:a,format:e.format||r,r:N(255,B(n.r,0)),g:N(255,B(n.g,0)),b:N(255,B(n.b,0)),a:o}}function t(e,t,n){return{r:255*k(e,255),g:255*k(t,255),b:255*k(n,255)}}function n(e,t,n){e=k(e,255),t=k(t,255),n=k(n,255);var i,o,s=B(e,t,n),a=N(e,t,n),r=(s+a)/2;if(s==a)i=o=0;else{var l=s-a;switch(o=r>.5?l/(2-s-a):l/(s+a),s){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:o,l:r}}function i(e,t,n){function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var o,s,a;if(e=k(e,360),t=k(t,100),n=k(n,100),0===t)o=s=a=n;else{var r=n<.5?n*(1+t):n+t-n*t,l=2*n-r;o=i(l,r,e+1/3),s=i(l,r,e),a=i(l,r,e-1/3)}return{r:255*o,g:255*s,b:255*a}}function o(e,t,n){e=k(e,255),t=k(t,255),n=k(n,255);var i,o,s=B(e,t,n),a=N(e,t,n),r=s,l=s-a;if(o=0===s?0:l/s,s==a)i=0;else{switch(s){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:o,v:r}}function s(e,t,n){e=6*k(e,360),t=k(t,100),n=k(n,100);var i=D.floor(e),o=e-i,s=n*(1-t),a=n*(1-o*t),r=n*(1-(1-o)*t),l=i%6;return{r:255*[n,a,s,s,r,n][l],g:255*[r,n,n,a,s,s][l],b:255*[s,s,r,n,n,a][l]}}function a(e,t,n,i){var o=[P(O(e).toString(16)),P(O(t).toString(16)),P(O(n).toString(16))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function r(e,t,n,i){return[P(E(i)),P(O(e).toString(16)),P(O(t).toString(16)),P(O(n).toString(16))].join("")}function l(e,t){t=0===t?0:t||10;var n=R(e).toHsl();return n.s-=t/100,n.s=C(n.s),R(n)}
17function c(e,t){t=0===t?0:t||10;var n=R(e).toHsl();return n.s+=t/100,n.s=C(n.s),R(n)}function u(e){return R(e).desaturate(100)}function d(e,t){t=0===t?0:t||10;var n=R(e).toHsl();return n.l+=t/100,n.l=C(n.l),R(n)}function p(e,t){t=0===t?0:t||10;var n=R(e).toRgb();return n.r=B(0,N(255,n.r-O(-t/100*255))),n.g=B(0,N(255,n.g-O(-t/100*255))),n.b=B(0,N(255,n.b-O(-t/100*255))),R(n)}function h(e,t){t=0===t?0:t||10;var n=R(e).toHsl();return n.l-=t/100,n.l=C(n.l),R(n)}function m(e,t){var n=R(e).toHsl(),i=(O(n.h)+t)%360;return n.h=i<0?360+i:i,R(n)}function f(e){var t=R(e).toHsl();return t.h=(t.h+180)%360,R(t)}function g(e){var t=R(e).toHsl(),n=t.h;return[R(e),R({h:(n+120)%360,s:t.s,l:t.l}),R({h:(n+240)%360,s:t.s,l:t.l})]}function v(e){var t=R(e).toHsl(),n=t.h;return[R(e),R({h:(n+90)%360,s:t.s,l:t.l}),R({h:(n+180)%360,s:t.s,l:t.l}),R({h:(n+270)%360,s:t.s,l:t.l})]}function y(e){var t=R(e).toHsl(),n=t.h;return[R(e),R({h:(n+72)%360,s:t.s,l:t.l}),R({h:(n+216)%360,s:t.s,l:t.l})]}function b(e,t,n){t=t||6,n=n||30;var i=R(e).toHsl(),o=360/n,s=[R(e)];for(i.h=(i.h-(o*t>>1)+720)%360;--t;)i.h=(i.h+o)%360,s.push(R(i));return s}function w(e,t){t=t||6;for(var n=R(e).toHsv(),i=n.h,o=n.s,s=n.v,a=[],r=1/t;t--;)a.push(R({h:i,s:o,v:s})),s=(s+r)%1;return a}function _(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function x(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function k(e,t){S(e)&&(e="100%");var n=$(e);return e=N(t,B(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),D.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function C(e){return N(1,B(0,e))}function T(e){return parseInt(e,16)}function S(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)}function $(e){return"string"==typeof e&&-1!=e.indexOf("%")}function P(e){return 1==e.length?"0"+e:""+e}function M(e){return e<=1&&(e=100*e+"%"),e}function E(e){return Math.round(255*parseFloat(e)).toString(16)}function F(e){return T(e)/255}function A(e){e=e.replace(I,"").replace(U,"").toLowerCase();var t,n=!1;if(V[e])e=V[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=G.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=G.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=G.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=G.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=G.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=G.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=G.hex8.exec(e))?{a:F(t[1]),r:T(t[2]),g:T(t[3]),b:T(t[4]),format:n?"name":"hex8"}:(t=G.hex6.exec(e))?{r:T(t[1]),g:T(t[2]),b:T(t[3]),format:n?"name":"hex"}:!!(t=G.hex3.exec(e))&&{r:T(t[1]+""+t[1]),g:T(t[2]+""+t[2]),b:T(t[3]+""+t[3]),format:n?"name":"hex"}}var I=/^[\s,#]+/,U=/\s+$/,H=0,D=Math,O=D.round,N=D.min,B=D.max,L=D.random,R=function(t,n){if(n=n||{},(t=t||"")instanceof R)return t;if(!(this instanceof R))return new R(t,n);var i=e(t);this._originalInput=t,this._r=i.r,this._g=i.g,this._b=i.b,this._a=i.a,this._roundA=O(1e3*this._a)/1e3,this._format=n.format||i.format,this._gradientType=n.gradientType,this._r<1&&(this._r=O(this._r)),this._g<1&&(this._g=O(this._g)),this._b<1&&(this._b=O(this._b)),this._ok=i.ok,this._tc_id=H++};R.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},setAlpha:function(e){return this._a=x(e),this._roundA=O(1e3*this._a)/1e3,this},toHsv:function(){var e=o(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=o(this._r,this._g,this._b),t=O(360*e.h),n=O(100*e.s),i=O(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+i+"%)":"hsva("+t+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var e=n(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=n(this._r,this._g,this._b),t=O(360*e.h),i=O(100*e.s),o=O(100*e.l);return 1==this._a?"hsl("+t+", "+i+"%, "+o+"%)":"hsla("+t+", "+i+"%, "+o+"%, "+this._roundA+")"},toHex:function(e){return a(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(){return r(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:O(this._r),g:O(this._g),b:O(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+O(this._r)+", "+O(this._g)+", "+O(this._b)+")":"rgba("+O(this._r)+", "+O(this._g)+", "+O(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:O(100*k(this._r,255))+"%",g:O(100*k(this._g,255))+"%",b:O(100*k(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+O(100*k(this._r,255))+"%, "+O(100*k(this._g,255))+"%, "+O(100*k(this._b,255))+"%)":"rgba("+O(100*k(this._r,255))+"%, "+O(100*k(this._g,255))+"%, "+O(100*k(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(J[a(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+r(this._r,this._g,this._b,this._a),n=t,i=this._gradientType?"GradientType = 1, ":"";e&&(n=R(e).toHex8String());return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,i=this._a<1&&this._a>=0;return t||!i||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"name"!==e?("rgb"
17===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(d,arguments)},brighten:function(){return this._applyModification(p,arguments)},darken:function(){return this._applyModification(h,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(c,arguments)},greyscale:function(){return this._applyModification(u,arguments)},spin:function(){return this._applyModification(m,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(b,arguments)},complement:function(){return this._applyCombination(f,arguments)},monochromatic:function(){return this._applyCombination(w,arguments)},splitcomplement:function(){return this._applyCombination(y,arguments)},triad:function(){return this._applyCombination(g,arguments)},tetrad:function(){return this._applyCombination(v,arguments)}},R.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]="a"===i?e[i]:M(e[i]));e=n}return R(e,t)},R.equals=function(e,t){return!(!e||!t)&&R(e).toRgbString()==R(t).toRgbString()},R.random=function(){return R.fromRatio({r:L(),g:L(),b:L()})},R.mix=function(e,t,n){n=0===n?0:n||50;var i,o=R(e).toRgb(),s=R(t).toRgb(),a=n/100,r=2*a-1,l=s.a-o.a,c=1-(i=((i=r*l==-1?r:(r+l)/(1+r*l))+1)/2),u={r:s.r*i+o.r*c,g:s.g*i+o.g*c,b:s.b*i+o.b*c,a:s.a*a+o.a*(1-a)};return R(u)},R.readability=function(e,t){var n=R(e),i=R(t),o=n.toRgb(),s=i.toRgb(),a=n.getBrightness(),r=i.getBrightness(),l=Math.max(o.r,s.r)-Math.min(o.r,s.r)+Math.max(o.g,s.g)-Math.min(o.g,s.g)+Math.max(o.b,s.b)-Math.min(o.b,s.b);return{brightness:Math.abs(a-r),color:l}},R.isReadable=function(e,t){var n=R.readability(e,t);return n.brightness>125&&n.color>500},R.mostReadable=function(e,t){for(var n=null,i=0,o=!1,s=0;s<t.length;s++){var a=R.readability(e,t[s]),r=a.brightness>125&&a.color>500,l=a.brightness/125*3+a.color/500;(r&&!o||r&&o&&l>i||!r&&!o&&l>i)&&(o=r,i=l,n=R(t[s]))}return n};var z,j,q,V=R.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee9
170",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},J=R.hexNames=_(V),G=(j="[\\s|\\(]+("+(z="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",q="[\\s|\\(]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",{rgb:new RegExp("rgb"+j),rgba:new RegExp("rgba"+q),hsl:new RegExp("hsl"+j),hsla:new RegExp("hsla"+q),hsv:new RegExp("hsv"+j),hsva:new RegExp("hsva"
17+q),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});window.tinycolor=R}(),e(function(){e.fn.spectrum.load&&e.fn.spectrum.processNativeColorInputs()})}),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["activity/menu"]=Handlebars.template({1:function(){return" selected"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<ol class="admin-subnav">\n  <h1>Activity</h1>\n  <li class="adminTab'+(null!=(s=(a(n,"ifEqual")||t&&a(t,"ifEqual")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"action"):t,"events",{name:"ifEqual",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:3,column:21},end:{line:3,column:71}}}))?s:"")+'"><a href="#/admin/activity">Event Log</a></li>\n  <li class="adminTab'+(null!=(s=(a(n,"ifEqual")||t&&a(t,"ifEqual")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"action"):t,"emails",{name:"ifEqual",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:4,column:21},end:{line:4,column:71}}}))?s:"")+'"><a href="#/admin/activity/email_log">Email Log</a></li>\n  <li class="adminTab'+(null!=(s=(a(n,"ifEqual")||t&&a(t,"ifEqual")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"action"):t,"optins",{name:"ifEqual",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:5,column:21},end:{line:5,column:71}}}))?s:"")+'"><a href="#/admin/activity/optins">Texting Opt-in</a></li>\n  <li class="adminTab'+(null!=(s=(a(n,"ifEqual")||t&&a(t,"ifEqual")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"action"):t,"comments",{name:"ifEqual",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:6,column:21},end:{line:6,column:73}}}))?s:"")+'"><a href="#/admin/activity/comments">Comments</a></li>\n</ol>'},useData:!0}),this.HandlebarsTemplates["activity/menu"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["activity/optins/edit"]=Handlebars.template({1:function(e,t,n,i,o){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"    "+e.escapeExpression((s(n,"optInPerson")||t&&s(t,"optInPerson")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?s(t,"contact"):t,{name:"optInPerson",hash:{},data:o,loc:{start:{line:9,column:4},end:{line:9,column:27}}}))+'\n    <div class="opt-in-buttons">\n      <a class="command cancel-button cancel-save-command pull-right">Cancel</a>\n      <button class="btn btn-primary unlink-button pull-right">Unlink</button>\n    </div>\n'},3:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'    <select class="person-selector">\n'+(null!=(s=a(n,"each").call(null!=t?t:e.nullContext||{},null!=t?a(t,"people"):t,{name:"each",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o,loc:{start:{line:16,column:6},end:{line:18,column:15}}}))?s:"")+'    </select>\n    <div class="opt-in-buttons">\n      <a class="command cancel-button cancel-save-command pull-right">Cancel</a>\n      <button class="btn btn-primary link-button pull-right">Link</button>\n    </div>\n'},4:function(e,t){var n,i=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"        <option value="+e.escapeExpression(e.lambda(null!=(n=null!=t?i(t,"person"):t)?i(n,"id"):n,t))+">"+e.escapeExpression(e.lambda(null!=(n=null!=t?i(t,"person"):t)?i(n,"name"):n,t))+"</option>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a,r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="flex-row">\n  '+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"cachedContactName")||(null!=t?r(t,"cachedContactName"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"cachedContactName",hash:{},data:o,loc:{start:{line:2,column:2},end:{line:2,column:23}}}):a)+'\n</span>\n<span class="flex-row">\n  '+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"number")||(null!=t?r(t,"number"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"number",hash:{},data:o,loc:{start:{line:5,column:2},end:{line:5,column:12}}}):a)+'\n</span>\n<span class="flex-row text-right">\n'+(null!=(s=(r(n,"ifHasContact")||t&&r(t,"ifHasContact")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?r(t,"contact"):t,{name:"ifHasContact",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o,loc:{start:{line:8,column:2},end:{line:24,column:19}}}))?s:"")+"</span>"},useData:!0}
17),this.HandlebarsTemplates["activity/optins/edit"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["activity/optins/index"]=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((s(n,"renderAdminSideMenuPartial")||t&&s(t,"renderAdminSideMenuPartial")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"activity/menu",{name:"renderAdminSideMenuPartial",hash:{action:"optins"},data:o,loc:{start:{line:1,column:0},end:{line:1,column:63}}}))+'\n<div id="activity-optins-content" class="admin-tab-content admin-flash-container">\n  <div id="optins_collection_view" class="scrollable loading"></div>\n</div>'},useData:!0}),this.HandlebarsTemplates["activity/optins/index"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["activity/optins/list"]=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(){return'<ol id="opt_ins_header">\n  <li class="flex-rows header">\n    <span class="flex-row">Name</span>\n    <span class="flex-row">Number</span>\n    <span class="flex-row text-right">Matched to</span>\n  </li>\n</ol>\n<ol id="opt_ins"></ol>'},useData:!0}),this.HandlebarsTemplates["activity/optins/list"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["activity/optins/show"]=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="flex-row">
17\n  '+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"cachedContactName")||(null!=t?a(t,"cachedContactName"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"cachedContactName",hash:{},data:o,loc:{start:{line:2,column:2},end:{line:2,column:23}}}):s)+'\n</span>\n<span class="flex-row">\n  '+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"number")||(null!=t?a(t,"number"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"number",hash:{},data:o,loc:{start:{line:5,column:2},end:{line:5,column:12}}}):s)+'\n</span>\n<span class="flex-row text-right">\n  '+e.escapeExpression((a(n,"optInPerson")||t&&a(t,"optInPerson")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"contact"):t,{name:"optInPerson",hash:{},data:o,loc:{start:{line:8,column:2},end:{line:8,column:25}}}))+"\n</span>"},useData:!0}),this.HandlebarsTemplates["activity/optins/show"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates.admin=Handlebars.template({1:function(){return'    <li class="adminTab"><a href="#/admin/pages"><i class="icon icon-page-3"></i> Pages</a></li>\n'},3:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(s=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"freeTier"):t,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o,loc:{start:{line:4,column:2},end:{line:6,column:2}}}))?s:""},4:function(){return'    <li class="adminTab restricted"><span><i class="icon fa fa-lock" data-toggle="tooltip" title="Upgrade to unlock this feature."></i> Pages</span></li>\n  '},6:function(){return'    <li class="adminTab"><a href="#/admin/posts"><i class="icon icon-post-3"></i> Posts</a></li>\n'},8:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(s=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"freeTier"):t,{name:"if",hash:{},fn:e.program(9,o,0),inverse:e.noop,data:o,loc:{start:{line:9,column:2},end:{line:11,column:2}}}))?s:""},9:function(){return'    <li class="adminTab restricted"><span><i class="icon fa fa-lock" data-toggle="tooltip" title="Upgrade to unlock this feature."></i> Posts</span></li>\n  '},11:function(){return'    <li class="adminTab"><a href="#/admin/activity"><i class="icon icon-activity-3"></i> Activity</a></li>\n'},13:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(s=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"freeTier"):t,{name:"if",hash:{},fn:e.program(14,o,0),inverse:e.noop,data:o,loc:{start:{line:14,column:2},end:{line:16,column:2}}}))?s:""},14:function(){return'    <li class="adminTab restricted"><span><i class="icon fa fa-lock" data-toggle="tooltip" title="Upgrade to unlock this feature."></i> Activity</span></li>\n  '},16:function(){return'    <li class="adminTab"><a href="#/admin/users"><i class="icon icon-people-3"></i> Users</a></li>\n'},18:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(s=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"freeTier"):t,{name:"if",hash:{},fn:e.program(19,o,0),inverse:e.noop,data:o,loc:{start:{line:19,column:2},end:{line:21,column:2}}}))?s:""},19:function(){return'    <li class="adminTab restricted"><span><i class="icon fa fa-lock" data-toggle="tooltip" title="Upgrade to unlock this feature."></i> Users</span></li>\n  '},21:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'    <li class="adminTab '+(null!=(s=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"themeOutOfDate"):t,{name:"if",hash:{},fn:e.program(22,o,0),inverse:e.noop,data:o,loc:{start:{line:23,column:24},end:{line:23,column:70}}}))?s:"")+'"><a href="#/admin/themes"><i class="icon icon-paintbrush-3"></i> Themes</a></li>\n'},22:function(){return"adminTabIndicator"},24:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(s=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"freeTier"):t,{name:"if",hash:{},fn:e.program(25,o,0),inverse:e.noop,data:o,loc:{start:{line:24,column:2},end:{line:26,column:2}}}))?s:""},25:function(){return'    <li class="adminTab restricted"><span><i class="icon fa fa-lock" data-toggle="tooltip" title="Upgrade to unlock this feature."></i> Themes</span></li>\n  '},27:function(){return'    <li class="adminTab"><a href="#/admin/settings"><i class="icon icon-cog-3"></i> Settings</a></li>\n'},29:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(s=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"freeTier"):t,{name:"if",hash:{},fn:e.program(30,o,0),inverse:e.noop,data:o,loc:{start:{line:29,column:2},end:{line:31,column:2}}}))?s:""},30:function(){return'    <li class="adminTab restricted"><span><i class="icon fa fa-lock" data-toggle="tooltip" title="Upgrade to unlock this feature."></i> Settings</span></li>\n  '},32:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'    <li class="upgrade-button">\n      <a class="btn btn-primary btn-sm btn-upgrade" target="_blank" href="https://www.concordiatechnology.org/church360/unite/upgrade?subdomain='+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"subdomain")||(null!=t?a(t,"subdomain"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"subdomain",hash:{},data:o,loc:{start:{line:34,column:144},end:{line:34,column:157}}}):s)+'">Upgrade</a>\n    </li>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<ol id="admin_navigation">\n'+(null!=(s=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"showPages"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o,loc:{start:{line:2,column:2},end:{line:6,column:9}}}))?s:"")+(null!=(s=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"showPosts"):t,{name:"if",hash:{},fn:e.program(6,o,0),inverse:e.program(8,o,0),data:o,loc:{start:{line:7,column:2},end:{line:11,column:9}}}))?s:"")+(null!=(s=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"showActivity"):t,{name:"if",hash:{},fn:e.program(11,o,0),inverse:e.program(13,o,0),data:o,loc:{start:{line:12,column:2},end:{line:16,column:9}}}))?s:"")+(null!=(s=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"showUsers"):t,{name:"if",hash:{},fn:e.program(16,o,0),inverse:e.program(18,o,0),data:o,loc:{start:{line:17,column:2},end:{line:21,column:9}}}))?s:"")+(null!=(s=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"showThemes"):t,{name:"if",hash:{},fn:e.program(21,o,0),inverse:e.program(24,o,0),data:o,loc:{start:{line:22,column:2},end:{line:26,column:9}}}))?s:"")+(null!=(s=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"showSettings"):t,{name:"if",hash:{},fn:e.program(27,o,0),inverse:e.program(29,o,0),data:o,loc:{start:{line:27,column:2},end:{line:31,column:9}}}))?s:"")+(null!=(s=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"freeTier"):t,{name:"if",hash:{},fn:e.program(32,o,0),inverse:e.noop,data:o,loc:{start:{line:32,column:2},end:{line:36,column:9}}}))?s:"")+'</ol>\n<div id="admin_overlay" class="fade"></div>\n<div id="admin_view" class="fade"></div>\n\n<div id="admin_edit_page">\n  <button id="admin_close_edit_page_button" class="close">\xd7</button>\n  <div id="admin_edit_page_button">Edit Page</div>\n  <div id="admin_edit_page_options">\n    <div id="admin_edit_page_form"></div>\n    <div class="buttons">\n      <button id="_unite_revert_page" class="btn btn-warning">Reset</button>\n      <button id="_unite_save_page" class="btn btn-primary">Save</button>\n    </div>\n  </div>\n</div>'},useData:!0}
17),this.HandlebarsTemplates.admin}.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({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div>\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" class="btn btn-success">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" />\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}),this.HandlebarsTemplates["assets/modal"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["assets/show"]=Handlebars.template({1:function(e,t,n,i,o){var s,a=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(s=null!=(s=a(n,"willCleanInterval")||(null!=t?a(t,"willCleanInterval"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"willCleanInterval",hash:{},data:o,loc:{start:{line:7,column:107},end:{line:7,column:128}}}):s)+'"></i>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a,r=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(a=null!=(a=r(n,"thumbnailUrl")||(null!=t?r(t,"thumbnailUrl"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"thumbnailUrl",hash:{},data:o,loc:{start:{line:2,column:12},end:{line:2,column:28}}}):a)+'" alt="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"url")||(null!=t?r(t,"url"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"url",hash:{},data:o,loc:{start:{line:2,column:35},end:{line:2,column:42}}}):a)+'" title="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"name")||(null!=t?r(t,"name"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o,loc:{start:{line:2,column:51},end:{line:2,column:59}}
18}):a)+'" onerror="this.src=\'/javascripts/ckeditor/images/ckfnothumb.gif\'" />\n</div>\n<div class="-unite-asset-name">'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"name")||(null!=t?r(t,"name"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o,loc:{start:{line:4,column:31},end:{line:4,column:39}}}):a)+'</div>\n<a rel="nofollow" class="-unite-delete-asset" href="/ckeditor/assets/'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:5,column:69},end:{line:5,column:75}}}):a)+'.json">Remove</a>\n'+(null!=(s=r(n,"if").call(null!=t?t:e.nullContext||{},null!=t?r(t,"willCleanInterval"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:6,column:0},end:{line:8,column:7}}}))?s:"")+'<span class="asset-type" data-type="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"type")||(null!=t?r(t,"type"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"type",hash:{},data:o,loc:{start:{line:9,column:36},end:{line:9,column:44}}}):a)+'"></span>'},useData:!0}
18),this.HandlebarsTemplates["assets/show"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["communication/index"]=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((s(n,"renderAdminSideMenuPartial")||t&&s(t,"renderAdminSideMenuPartial")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"communication/menu",{name:"renderAdminSideMenuPartial",hash:{action:"communication"},data:o,loc:{start:{line:1,column:0},end:{line:1,column:75}}}))+'\n<div id="communication-list-content" class="admin-tab-content admin-flash-container flex-rows">\n  <div class="">\n    <input type="text" id="receiver_filter" class="pull-left wait-for-load" placeholder="Filter by any field" />\n  </div>\n\n  <div id="communication-list-container" class="flex-grow"></div>\n\n  <div class="admin-actions">\n    <fieldset class="bulk-actions">\n      <legend>Actions for selected contacts</legend>\n      <button class="btn email-selected">Send Email</button>\n      <button class="btn text-selected">Send Text</button>\n    </fieldset>\n  </div>\n</div>'},useData:!0}),this.HandlebarsTemplates["communication/index"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["communication/list"]=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(){return'<table id="receiver-list" class="table tablesorter table-scrollable">\n  <thead>\n    <tr>\n      <th class="receiverSelector"><input type="checkbox" class="selector" id="receiver-bulk-checkbox" /></th>\n      <th class="receiverTitle sortable" id="sort_by_name"><a href="">Name</a></th>\n      <th class="receiverEmail sortable" id="sort_by_email"><a href="">Email</a></th>\n      <th class="receiverNumber sortable" id="sort_by_phone_number"><a href="">Phone Number</a></th>\n      <th class="receiverGroups" id="sort_by_groups">Groups</th>\n      <th class="receiverMailingLists" id="sort_by_mailing_lists">Mailing Lists</th>\n    </tr>\n  </thead>\n  <tbody id="receivers_list"></tbody>\n</table>'},useData:!0}),this.HandlebarsTemplates["communication/list"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["communication/menu"]=Handlebars.template({1:function(){return" selected"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<ol class="admin-subnav">\n  <h1>Users</h1>\n  <li class="adminTab'+(null!=(s=(a(n,"ifEqual")||t&&a(t,"ifEqual")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"action"):t,"users",{name:"ifEqual",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:3,column:21},end:{line:3,column:70}}}))?s:"")+'"><a href="#/admin/users">Users</a></li>\n  <li class="adminTab'+(null!=(s=(a(n,"ifEqual")||t&&a(t,"ifEqual")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"action"):t,"mailing_lists",{name:"ifEqual",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:4,column:21},end:{line:4,column:78}}}))?s:"")+'"><a href="#/admin/users/mailing_lists">Mailing Lists</a></li>\n  <li class="adminTab'+(null!=(s=(a(n,"ifEqual")||t&&a(t,"ifEqual")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"action"):t,"communication",{name:"ifEqual",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:5,column:21},end:{line:5,column:78}}}))?s:"")+'"><a href="#/admin/users/communication">Communication</a></li>\n</ol>'},useData:!0}),this.HandlebarsTemplates["communication/menu"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["communication/modals/email_notification_modal"]=Handlebars.template({1:function(e,t){var n,i=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'      <div id="users_without_emails">\n        <div class="alert alert-block alert-warning change-role-alert change-role-severe">\n          '+(null!=(n=e.lambda(null!=(n=null!=t?i(t,"info"):t)?i(n,"noEmailMessage"):n,t))?n:"")+"\n        </div>\n      </div>\n"},3:function(){return'<button class="btn btn-primary" data-dismiss="modal" id="send_email">Send Email</button>'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="modal hide -unite-admin-view -unite-admin-modal  -unite-admin-modal-small" tabindex="-1" role="dialog" aria-labelledby="modal_label" aria-hidden="true" id="send_email_modal">\n  <div class="modal-header">\n    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\xd7</button>\n    <h3 id="modal_label">Email Selected People</h3>\n  </div>\n  <div class="modal-body">\n    <h2>'+(null!=(s=e.lambda(null!=(s=null!=t?a(t,"info"):t)?a(s,"invitationMessage"):s,t))?s:"")+"</h2>\n"+(null!=(s=a(n,"if").call(null!=t?t:e.nullContext||{},null!=(s=null!=t?a(t,"info"):t)?a(s,"noEmailMessage"):s,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:8,column:4},end:{line:14,column:11}}}))?s:"")+'  </div>\n  <div class="modal-footer">\n    <button class="btn" data-dismiss="modal" aria-hidden="true" id="modal_cancel_button">Cancel</button>\n    '+(null!=(s=a(n,"if").call(null!=t?t:e.nullContext||{},null!=(s=null!=t?a(t,"info"):t)?a(s,"validRecipients"):s,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:18,column:4},end:{line:18,column:127}}}))?s:"")+"\n  </div>\n</div>"},useData:!0}
18),this.HandlebarsTemplates["communication/modals/email_notification_modal"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["communication/modals/text_notification_modal"]=Handlebars.template({1:function(e,t){var n,i=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'      <div id="users_without_emails">\n        <div class="alert alert-block alert-warning change-role-alert change-role-severe">\n          '+(null!=(n=e.lambda(null!=(n=null!=t?i(t,"info"):t)?i(n,"noNumberMessage"):n,t))?n:"")+"\n        </div>\n      </div>\n"},3:function(){return'<button class="btn btn-primary" data-dismiss="modal" id="send_text" disabled>Send Text</button>'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a,r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="modal hide -unite-admin-view -unite-admin-modal  -unite-admin-modal-small" tabindex="-1" role="dialog" aria-labelledby="modal_label" aria-hidden="true" id="send_text_modal">\n  <div class="modal-header">\n    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\xd7</button>\n    <h3 id="modal_label">Text Selected People</h3>\n  </div>\n  <div class="modal-body">\n    <h2>'+(null!=(s=e.lambda(null!=(s=null!=t?r(t,"info"):t)?r(s,"invitationMessage"):s,t))?s:"")+"</h2>\n"+(null!=(s=r(n,"if").call(null!=t?t:e.nullContext||{},null!=(s=null!=t?r(t,"info"):t)?r(s,"noNumberMessage"):s,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:8,column:4},end:{line:14,column:11}}}))?s:"")+'    <hr />\n    <h3>Message Type:</h3>\n    <select id="message_template">\n      <option value="">--- Please Select One ---</option>\n      <option value="e.g. Church services have been canceled this weekend due to weather.">Announcement</option>\n      <option value="e.g. Please join us for worship this Sunday at 10:00 a.m.">Invitation</option>\n      <option value="e.g. You are signed up for Bible Study tonight at 6:30 p.m. - See you there!">Reminder</option>
18\n      <option value="e.g. Please pray for Sally Smith as she has been hospitalized.">Prayer Request</option>\n    </select>\n    <h3>Enter Text Message:</h3>\n    <textarea id="text_message" maxlength='+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"maxTextLength")||(null!=t?r(t,"maxTextLength"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"maxTextLength",hash:{},data:o,loc:{start:{line:25,column:42},end:{line:25,column:59}}}):a)+' disabled></textarea>\n    <h4 id="count_status">\n      Characters remaining: <span id="text_message_characters_remaining">'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"maxTextLength")||(null!=t?r(t,"maxTextLength"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"maxTextLength",hash:{},data:o,loc:{start:{line:27,column:73},end:{line:27,column:90}}}):a)+'</span>\n    </h4>\n  </div>\n  <div class="modal-footer">\n    <button class="btn" data-dismiss="modal" aria-hidden="true" id="modal_cancel_button">Cancel</button>\n    '+(null!=(s=r(n,"if").call(null!=t?t:e.nullContext||{},null!=(s=null!=t?r(t,"info"):t)?r(s,"validRecipients"):s,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:32,column:4},end:{line:32,column:134}}}))?s:"")+"\n  </div>\n</div>"},useData:!0}),this.HandlebarsTemplates["communication/modals/text_notification_modal"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["communication/receiver"]=Handlebars.template({1:function(e,t,n,i,o){var s,a,r,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]},c='  <tr class="receiver-row selectable" id="receiver_'+e.escapeExpression("function"==typeof(a=null!=(a=l(n,"id")||(null!=t?l(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:2,column:51},end:{line:2,column:57}}}):a)+'">\n    <td class="receiverSelector"><input type="checkbox" class="selector" id="receiver-checkbox-'+e.escapeExpression("function"==typeof(a=null!=(a=l(n,"id")||(null!=t?l(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:3,column:95},end:{line:3,column:101}}}):a)+'" data-receiver-id="'+e.escapeExpression("function"==typeof(a=null!=(a=l(n,"id")||(null!=t?l(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:3,column:121},end:{line:3,column:127}}}):a)+'" '+(null!=(s=l(n,"if").call(null!=t?t:e.nullContext||{},null!=t?l(t,"checked"):t,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o,loc:{start:{line:3,column:129},end:{line:3,column:168}}}))?s:"")+' /></td>\n    <td class="receiverTitle">\n      '+e.escapeExpression("function"==typeof(a=null!=(a=l(n,"first_name")||(null!=t?l(t,"first_name"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"first_name",hash:{},data:o,loc:{start:{line:5,column:6},end:{line:5,column:20}}}):a)+" <b>"+e.escapeExpression("function"==typeof(a=null!=(a=l(n,"last_name")||(null!=t?l(t,"last_name"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"last_name",hash:{},data:o,loc:{start:{line:5,column:24},end:{line:5,column:37}}}):a)+'</b>\n    </td>\n    <td class="receiverEmail">\n      '+(null!=(s=l(n,"if").call(null!=t?t:e.nullContext||{},null!=t?l(t,"email"):t,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.program(6,o,0),data:o,loc:{start:{line:8,column:6},end:{line:8,column:46}}}))?s:"")+'\n    </td>\n    <td class="receiverNumber">\n      ';return a=null!=(a=l(n,"number")||(null!=t?l(t,"number"):t))?a:e.hooks.helperMissing,r={name:"number",hash:{},fn:e.program(8,o,0),inverse:e.noop,data:o,loc:{start:{line:11,column:6},end:{line:11,column:70}}},s="function"==typeof a?a.call(null!=t?t:e.nullContext||{},r):a,l(n,"number")||(s=e.hooks.blockHelperMissing.call(t,s,r)),null!=s&&(c+=s),c+'\n    </td>\n    <td class="receiverGroups">\n      '+(null!=(s=(l(n,"asTags")||t&&l(t,"asTags")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?l(t,"groups"):t,{name:"asTags",hash:{},data:o,loc:{start:{line:14,column:6},end:{line:14,column:25}}}))?s:"")+'\n    </td>
18\n    <td class="receiverMailingLists">\n      '+(null!=(s=(l(n,"asTags")||t&&l(t,"asTags")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?l(t,"mailingLists"):t,{name:"asTags",hash:{},data:o,loc:{start:{line:17,column:6},end:{line:17,column:31}}}))?s:"")+"\n    </td>\n  </tr>\n"},2:function(){return'checked="checked"'},4:function(e,t,n,i,o){var s,a,r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(s="function"==typeof(a=null!=(a=r(n,"email")||(null!=t?r(t,"email"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"email",hash:{},data:o,loc:{start:{line:8,column:19},end:{line:8,column:30}}}):a)?s:""},6:function(){return"\u2014"},8:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(s=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"number"):t,{name:"if",hash:{},fn:e.program(9,o,0),inverse:e.program(6,o,0),data:o,loc:{start:{line:11,column:17}
18,end:{line:11,column:59}}}))?s:""},9:function(e,t,n,i,o){var s,a,r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(s="function"==typeof(a=null!=(a=r(n,"number")||(null!=t?r(t,"number"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"number",hash:{},data:o,loc:{start:{line:11,column:31},end:{line:11,column:43}}}):a)?s:""},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(s=a(n,"each").call(null!=t?t:e.nullContext||{},null!=t?a(t,"receiver"):t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:20,column:9}}}))?s:""},useData:!0}),this.HandlebarsTemplates["communication/receiver"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["help/article"]=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a,r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<h1>"+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"name")||(null!=t?r(t,"name"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o,loc:{start:{line:1,column:4},end:{line:1,column:12}}}):a)+"</h1>\n\n"+(null!=(s="function"==typeof(a=null!=(a=r(n,"body")||(null!=t?r(t,"body"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"body",hash:{},data:o,loc:{start:{line:3,column:0},end:{line:3,column:10}}}):a)?s:"")+'\n\n<p class="help-article-link">\n  <a data-refresh-page="false" target="_blank" href="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"html_url")||(null!=t?r(t,"html_url"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"html_url",hash:{},data:o,loc:{start:{line:6,column:53},end:{line:6,column:65}}}):a)+'">See original article</a>\n</p>'},useData:!0}),this.HandlebarsTemplates["help/article"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["help/error"]=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t){return'<div class="help-articles-error">\n  <h4>Error</h4>\n  <p>'+e.escapeExpression(e.lambda(t,t))+"</p>\n</div>"},useData:!0}),this.HandlebarsTemplates["help/error"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["help/results"]=Handlebars.template({1:function(e,t,n,i,o){var s,a,r,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]},c="  <h5>Top results</h5>\n  <ol>\n";return a=null!=(a=l(n,"results")||(null!=t?l(t,"results"):t))?a:e.hooks.helperMissing,r={name:"results",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o,loc:{start:{line:4,column:4},end:{line:8,column:16}}},s="function"==typeof a?a.call(null!=t?t:e.nullContext||{},r):a,l(n,"results")||(s=e.hooks.blockHelperMissing.call(t,s,r)),null!=s&&(c+=s),c+"  </ol>\n"},2:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'      <li class="help-articles-result">\n        <a href="#help_article" data-article-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:6,column:49},end:{line:6,column:55}}}):s)+'" role="tab" href="'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"html_url")||(null!=t?a(t,"html_url"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"html_url",hash:{},data:o,loc:{start:{line:6,column:74},end:{line:6,column:86}}}):s)+'">'+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:6,column:88},end:{line:6,column:96}}}):s)+"</a>\n      </li>\n"},4:function(){return'  <div class="help-articles-no-results">No results</div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(s=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"results"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(4,o,0),data:o,loc:{start:{line:1,column:0},end:{line:12,column:7}}}))?s:""},useData:!0}
18),this.HandlebarsTemplates["help/results"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["help/suggestions"]=Handlebars.template({1:function(e,t,n,i,o){var s,a,r,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]},c="  <h5>Suggested articles</h5>\n  <ol>\n";return a=null!=(a=l(n,"articles")||(null!=t?l(t,"articles"):t))?a:e.hooks.helperMissing,r={name:"articles",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o,loc:{start:{line:4,column:4},end:{line:8,column:17}}},s="function"==typeof a?a.call(null!=t?t:e.nullContext||{},r):a,l(n,"articles")||(s=e.hooks.blockHelperMissing.call(t,s,r)),null!=s&&(c+=s),c+"  </ol>\n"},2:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'      <li class="help-articles-result">\n        <a href="#help_article" data-article-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:6,column:49},end:{line:6,column:55}}}):s)+'" role="tab" href="'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"html_url")||(null!=t?a(t,"html_url"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"html_url",hash:{},data:o,loc:{start:{line:6,column:74},end:{line:6,column:86}}}):s)+'">'+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:6,column:88},end:{line:6,column:96}}}):s)+"</a>\n      </li>\n"},4:function(){return'  <div class="help-articles-no-results">No suggestions</div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(s=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"articles"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(4,o,0),data:o,loc:{start:{line:1,column:0},end:{line:12,column:7}}}))?s:""},useData:!0}),this.HandlebarsTemplates["help/suggestions"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates.navigation=Handlebars.template({1:function(){return'        <button class="btn bulk-action public-button">Public</button>\n        <button class="btn bulk-action private-button">Private</button>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a,r,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]},c='<div id="pages-list" class="admin-tab-content admin-flash-container flex-rows">\n  <div class="columns">\n    <div class="column column-left">\n      <fieldset id="items_in_navigation">\n        <legend>\n          Active Menu Items\n        </legend>\n      </fieldset>\n    </div>\n    <div class="column column-right">\n      <fieldset id="items_outside_navigation">\n        <legend>\n          Available Menu Items\n        </legend>\n        <div id="add_actions">\n          <a id="add_category" href="#" data-placement="bottom" title="Add Category"><i class="icon icon-pages-3"></i>Add Category</a>\n          <a id="add_page" href="#" data-placement="bottom" title="Add Page"><i class="icon icon-page-3"></i>Add Page</a>\n        </div>\n      </fieldset>\n    </div>\n  </div>\n\n  <div class="columns flex-grow">\n    <div class="column column-left">\n      <div id="menu_items_container" class="sitemap-list scrollable scrollable-control">Loading...</div>\n    </div>\n    <div class="column column-right">\n      <div id="documents_container" class="sitemap-list scrollable scrollable-control">Loading...</div>\n    </div>\n  </div>\n\n  <div class="admin-actions">\n    <fieldset class="bulk-actions">\n      <legend>Actions for selected pages</legend>\n      <button class="btn bulk-action publish-button">Publish</button>\n      <button class="btn bulk-action draft-button">Make Draft</button>\n      <button class="btn bulk-action delete-button">Delete</button>\n';return a=null!=(a=l(n,"ifPaidTier")||(null!=t?l(t,"ifPaidTier"):t))?a:e.hooks.helperMissing,r={name:"ifPaidTier",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:38,column:6},end:{line:41,column:21}}},s="function"==typeof a?a.call(null!=t?t:e.nullContext||{},r):a,l(n,"ifPaidTier")||(s=e.hooks.blockHelperMissing.call(t,s,r)),null!=s&&(c+=s),c+'      <button class="btn bulk-action duplicate-button">Duplicate</button>\n    </fieldset>\n\n    <fieldset class="buttons float">\n      <button class="btn btn-primary submit-button" id="submit_button" disabled>Save Changes</button>\n    </fieldset>\n  </div>\n</div>'},useData:!0}
18),this.HandlebarsTemplates.navigation}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["navigation/document"]=Handlebars.template({1:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"page-status-"+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"status")||(null!=t?a(t,"status"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"status",hash:{},data:o,loc:{start:{line:2,column:65},end:{line:2,column:75}}}):s)},3:function(){return"page-private"},5:function(){return"selected"},7:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'for="page-checkbox-'+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:3,column:31},end:{line:3,column:37}}}):s)+'" id="document_'+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:3,column:52},end:{line:3,column:58}}}):s)+'" data-document-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:3,column:78},end:{line:3,column:84}}}):s)+'"'},9:function(e,t,n,i,o){var s,a,r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'    <input type="checkbox" class="selector" id="page-checkbox-'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:5,column:62},end:{line:5,column:68}}}):a)+'" data-page-id="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:5,column:84},end:{line:5,column:90}}}):a)+'" '+(null!=(s=r(n,"if").call(null!=t?t:e.nullContext||{},null!=t?r(t,"selected"):t,{name:"if",hash:{},fn:e.program(10,o,0),inverse:e.noop,data:o,loc:{start:{line:5,column:92},end:{line:5,column:132}}}))?s:"")+' />\n    <div class="menu-item-title">'+(null!=(s="function"==typeof(a=null!=(a=r(n,"title")||(null!=t?r(t,"title"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:o,loc:{start:{line:6,column:33},end:{line:6,column:44}}}):a)?s:"")+'</div>\n    <div class="page-link"><a href="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"path")||(null!=t?r(t,"path"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"path",hash:{},data:o,loc:{start:{line:7,column:36},end:{line:7,column:44}}}):a)+'">'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"path")||(null!=t?r(t,"path"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"path",hash:{},data:o,loc:{start:{line:7,column:46},end:{line:7,column:54}}}):a)+"</a></div>\n"},10:function(){return'checked="checked"'},12:function(e,t,n,i,o){var s,a,r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'    <div class="menu-item-title">'+(null!=(s="function"==typeof(a=null!=(a=r(n,"title")||(null!=t?r(t,"title"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:o,loc:{start:{line:9,column:33},end:{line:9,column:44}}}):a)?s:"")+"</div>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a,r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<label\n  class="menu-item-label type-'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"type")||(null!=t?r(t,"type"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"type",hash:{},data:o,loc:{start:{line:2,column:30},end:{line:2,column:38}}}):a)+" "+(null!=(s=r(n,"if").call(null!=t?t:e.nullContext||{},null!=t?r(t,"status"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:2,column:39},end:{line:2,column:82}}}
18))?s:"")+" "+(null!=(s=r(n,"unless").call(null!=t?t:e.nullContext||{},null!=t?r(t,"public"):t,{name:"unless",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:2,column:83},end:{line:2,column:124}}}))?s:"")+" "+(null!=(s=r(n,"if").call(null!=t?t:e.nullContext||{},null!=t?r(t,"selected"):t,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:2,column:125},end:{line:2,column:156}}}))?s:"")+'"\n  '+(null!=(s=r(n,"if").call(null!=t?t:e.nullContext||{},null!=t?r(t,"id"):t,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o,loc:{start:{line:3,column:2},end:{line:3,column:92}}}))?s:"")+">\n"+(null!=(s=r(n,"if").call(null!=t?t:e.nullContext||{},null!=t?r(t,"id"):t,{name:"if",hash:{},fn:e.program(9,o,0),inverse:e.program(12,o,0),data:o,loc:{start:{line:4,column:2},end:{line:10,column:9}}}))?s:"")+"</label>"},useData:!0}),this.HandlebarsTemplates["navigation/document"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["navigation/menu_item"]=Handlebars.template({1:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(s=e.invokePartial(a(i,"navigation.document"),t,{name:"navigation.document",data:o,indent:"    ",helpers:n,partials:i,decorators:e.decorators}))?s:""},3:function(e,t,n,i,o){var s,a,r,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]},c="    <ol>\n";return a=null!=(a=l(n,"children")||(null!=t?l(t,"children"):t))?a:e.hooks.helperMissing,r={name:"children",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o,loc:{start:{line:7,column:6},end:{line:9,column:19}}},s="function"==typeof a?a.call(null!=t?t:e.nullContext||{},r):a,l(n,"children")||(s=e.hooks.blockHelperMissing.call(t,s,r)),null!=s&&(c+=s),c+"    </ol>\n"},4:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(s=e.invokePartial(a(i,"navigation.menuItem"),t,{name:"navigation.menuItem",data:o,indent:"        ",helpers:n,partials:i,decorators:e.decorators}))?s:""},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a,r,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]},c='<li class="menu-item '+e.escapeExpression((l(n,"menuItemClass")||t&&l(t,"menuItemClass")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=(s=null!=t?l(t,"page"):t)?l(s,"type"):s,{name:"menuItemClass",hash:{},data:o,loc:{start:{line:1,column:21},end:{line:1,column:48}}}))+" "+e.escapeExpression((l(n,"nestable")||t&&l(t,"nestable")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=(s=null!=t?l(t,"page"):t)?l(s,"type"):s,{name:"nestable",hash:{},data:o,loc:{start:{line:1,column:49},end:{line:1,column:71}}}))+'" id="menu_item_'+e.escapeExpression("function"==typeof(a=null!=(a=l(n,"id")||(null!=t?l(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:1,column:87},end:{line:1,column:93}}}):a)+'">\n';return a=null!=(a=l(n,"page")||(null!=t?l(t,"page"):t))?a:e.hooks.helperMissing,r={name:"page",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:2,column:2},end:{line:4,column:11}}},s="function"==typeof a?a.call(null!=t?t:e.nullContext||{},r):a,l(n,"page")||(s=e.hooks.blockHelperMissing.call(t,s,r)),null!=s&&(c+=s),c+(null!=(s=l(n,"if").call(null!=t?t:e.nullContext||{},null!=t?l(t,"children"):t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:5,column:2},end:{line:11,column:9}}}))?s:"")+"</li> "},usePartial:!0,useData:!0}),this.HandlebarsTemplates["navigation/menu_item"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["navigation/tree"]=Handlebars.template({1:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(s=e.invokePartial(a(i,"navigation.menuItem"),t,{name:"navigation.menuItem",data:o,indent:"    ",helpers:n,partials:i,decorators:e.decorators}))?s:""},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a,r,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]},c='<ol id="menu-items" class="sortable">\n';return a=null!=(a=l(n,"menuItems")||(null!=t?l(t,"menuItems"):t))?a:e.hooks.helperMissing,r={name:"menuItems",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:2,column:2},end:{line:4,column:16}}},s="function"==typeof a?a.call(null!=t?t:e.nullContext||{},r):a,l(n,"menuItems")||(s=e.hooks.blockHelperMissing.call(t,s,r)),null!=s&&(c+=s),c+"</ol>"},usePartial:!0,useData:!0}
18),this.HandlebarsTemplates["navigation/tree"]}.call(this),function(){
19return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["people/add"]=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a,r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="modal hide -unite-admin-view -unite-admin-modal -unite-admin-modal-medium" id="unite_admin_modal">\n  <div class="modal-header">\n    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>\n    <div class="people-flash-container"></div>\n    <h3>Add People</h3>\n  </div>\n  <div class="modal-body">\n    <form id="add_people_form">\n      <div id="users_invite">\n        <table id="new_users">\n          <thead>\n            <tr>\n              <th class="new-user-first_name">First Name</th>\n              <th class="new-user-last_name">Last Name</th>\n              <th class="new-user-email" colspan="2">Email</th>\n            </tr>\n            <tr>\n              <th class="new-user-errors"><span class="first_name">First Name required</span></th>\n              <th class="new-user-errors"><span class="last_name">Last Name required</span></th>\n              <th class="new-user-errors" colspan="2"><span class="email">Email invalid</span></th>\n            </tr>\n          </thead>\n          <tbody>\n'+(null!=(s=e.invokePartial(r(i,"people.new"),t,{name:"people.new",data:o,indent:"            ",helpers:n,partials:i,decorators:e.decorators}))?s:"")+'          </tbody>\n        </table>\n      </div>\n    </form>\n    <div style="text-align: right; margin-top: 1em;">\n      <a href="https://s3.amazonaws.com/unite-production/unite+csv+template.csv">Download CSV Template</a>\n      \n      <form id="bulk_invite_users_form" enctype="multipart/form-data" method="POST" action="/admin/users/import">\n        <label id="import_users" class="btn btn-default">\n          <i class="upload-file"></i>\n           Import From CSV\n          <input name="fileupload" id="fileupload" type="file" />\n        </label>\n        <input name="authenticity_token" type="hidden" value="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"csrfToken")||(null!=t?r(t,"csrfToken"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"csrfToken",hash:{},data:o,loc:{start:{line:38,column:62},end:{line:38,column:75}}}):a)+'" />\n        <iframe id="upload_target" name="upload_target" src="" style="width:0;height:0;border:0px solid #fff;"></iframe>\n      </form>\n    </div>\n  </div>\n  <div class="modal-footer">\n    <button href="#" class="btn close-modal" data-dismiss="modal">Cancel</button>\n    <button class="btn btn-primary submit-button">Add</button>\n  </div>\n</div>'},usePartial:!0,useData:!0}),this.HandlebarsTemplates["people/add"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["people/edit"]=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a,r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<input name="first_name" type="text" value="'+e.escapeExpression(e.lambda(null!=(s=null!=t?r(t,"person"):t)?r(s,"first_name"):s,t))+'">\n<input name="last_name" type="text" value="'+e.escapeExpression(e.lambda(null!=(s=null!=t?r(t,"person"):t)?r(s,"last_name"):s,t))+'">\n\n<button data-id="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:4,column:17},end:{line:4,column:23}}}):a)+'" class="save-button" rel="tooltip" title="Save"></button><button data-id="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:4,column:98},end:{line:4,column:104}}}):a)+'" class="cancel-button" rel="tooltip" title="Cancel"></button>'},useData:!0}
19),this.HandlebarsTemplates["people/edit"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["people/list"]=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(){return"<table id='users-list' class='table tablesorter table-scrollable'>\n  <thead>\n    <tr>\n      <th class='userSelector'><input\n          type='checkbox'\n          class='selector'\n          id='user-bulk-checkbox'\n        /></th>\n      <th class='userTitle sortable' id='sort_by_name'><a href=''>Name</a></th>\n      <th class='userEmail sortable' id='sort_by_email'><a\n          href=''\n        >Email</a></th>\n      <th class='userRole sortable' id='sort_by_role'><a href=''>Role</a></th>\n      <th class='userLastSignIn sortable' id='sort_by_sign_in'><a href=''>Last\n          Sign in</a></th>\n      <th class='userPasswordExpires sortable' id='sort_by_password_expires'><a\n          href=''\n        >Password Expires on</a></th>\n      <th class='userIsListed sortable' id='sort_by_listed'><a\n          href=''\n        >Listed</a></th>\n    </tr>\n  </thead>\n  <tbody id='users_list'></tbody>\n</table>"},useData:!0}),this.HandlebarsTemplates["people/list"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["people/new"]=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(){return'<tr class="new-user">\n  <td class="new-user-first_name"><input type="text" name="first_name" /></td>\n  <td class="new-user-last_name"><input type="text" name="last_name" /></td>\n  <td class="new-user-email"><input type="text" name="email" /></td>\n</tr>'},useData:!0}),this.HandlebarsTemplates["people/new"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["people/person"]=Handlebars.template({1:function(e,t,n,i,o){var s,a,r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'  <tr class="user-row selectable" id="user_'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:2,column:43},end:{line:2,column:49}}}):a)+'">\n    <td class="userSelector"><input type="checkbox" class="selector" id="user-checkbox-'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:3,column:87},end:{line:3,column:93}}}):a)+'" data-user-id="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:3,column:109},end:{line:3,column:115}}}):a)+'" '+(null!=(s=r(n,"if").call(null!=t?t:e.nullContext||{},null!=t?r(t,"checked"):t,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o,loc:{start:{line:3,column:117},end:{line:3,column:156}}}))?s:"")+' /></td>\n    <td class="userTitle">\n      '+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"first_name")||(null!=t?r(t,"first_name"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"first_name",hash:{},data:o,loc:{start:{line:5,column:6},end:{line:5,column:20}}}):a)+" <b>"+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"last_name")||(null!=t?r(t,"last_name"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"last_name",hash:{},data:o,loc:{start:{line:5,column:24},end:{line:5,column:37}}}):a)+'</b>\n      <button data-id="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"id")||(null!=t?r(t,"id"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"id",hash:{},data:o,loc:{start:{line:6,column:23},end:{line:6,column:29}}}):a)+'" class="edit-button" rel="tooltip" title="Edit"></button>\n    </td>\n    <td class="userEmail">\n'+(null!=(s=r(n,"if").call(null!=t?t:e.nullContext||{},null!=t?r(t,"email"):t,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.program(6,o,0),data:o,loc:{start:{line:9,column:6},end:{line:13,column:13}}}))?s:"")+'    </td>\n    <td class="userRole userRole'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"role")||(null!=t?r(t,"role"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"role",hash:{},data:o,loc:{start:{line:15,column:32},end:{line:15,column:40}}}):a)+'">'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"role")||(null!=t?r(t,"role"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"role",hash:{},data:o,loc:{start:{line:15,column:42}
vendor: 1,068 bytes, line 19
19,end:{line:15,column:50}}}):a)+"\n      "+(null!=(s=r(n,"unless").call(null!=t?t:e.nullContext||{},null!=t?r(t,"email"):t,{name:"unless",hash:{},fn:e.program(8,o,0),inverse:e.noop,data:o,loc:{start:{line:16,column:6},end:{line:18,column:24}}}))?s:"")+'\n    </td>\n    <td class="userLastSignIn">\n'+(null!=(s=r(n,"if").call(null!=t?t:e.nullContext||{},null!=t?r(t,"email"):t,{name:"if",hash:{},fn:e.program(11,o,0),inverse:e.program(14,o,0),data:o,loc:{start:{line:21,column:6},end:{line:29,column:13}}}))?s:"")+'    </td>\n    <td class="userPasswordExpires">\n'+(null!=(s=r(n,"if").call(null!=t?t:e.nullContext||{},null!=t?r(t,"email"):t,{name:"if",hash:{},fn:e.program(17,o,0),inverse:e.noop,data:o,loc:{start:{line:32,column:6},end:{line:34,column:13}}}))?s:"")+'    </td>\n    <td class="userIsListed '+e.escapeExpression((r(n,"userVisibility")||t&&r(t,"userVisibility")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?r(t,"visible_in_unite"):t,{name:"userVisibility",hash:{},data:o,loc:{start:{line:36,column:28},end:{line:36,column:63}}}))+'">
19\n      <span class="hidden">'+e.escapeExpression((r(n,"userVisibility")||t&&r(t,"userVisibility")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?r(t,"visible_in_unite"):t,{name:"userVisibility",hash:{},data:o,loc:{start:{line:37,column:27},end:{line:37,column:62}}}))+"</span>\n    </td>\n  </tr>\n"},2:function(){return'checked="checked"'},4:function(e,t,n,i,o){var s,a,r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"        "+(null!=(s="function"==typeof(a=null!=(a=r(n,"email")||(null!=t?r(t,"email"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"email",hash:{},data:o,loc:{start:{line:10,column:8},end:{line:10,column:19}}}):a)?s:"")+"\n"},6:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"        "+(null!=(s=(a(n,"formatContactEmails")||t&&a(t,"formatContactEmails")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},t,{name:"formatContactEmails",hash:{},data:o,loc:{start:{line:12,column:8},end:{line:12,column:38}}}))?s:"")+"\n"},8:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(s=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"invited_at"):t,{name:"if",hash:{},fn:e.program(9,o,0),inverse:e.noop,data:o,loc:{start:{line:16,column:23},end:{line:18,column:13}}}))?s:""},9:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'\n        <button 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:17,column:25},end:{line:17,column:31}}}):s)+'" class="reinvite-button" rel="tooltip" title="Reinvite"></button>\n      '},11:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(s=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"last_sign_in_at"):t,{name:"if",hash:{},fn:e.program(12,o,0),inverse:e.noop,data:o,loc:{start:{line:22,column:8},end:{line:24,column:15}}}))?s:""},12:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"          "+(null!=(s=(a(n,"timeago")||t&&a(t,"timeago")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"last_sign_in_at"):t,{name:"timeago",hash:{},data:o,loc:{start:{line:23,column:10},end:{line:23,column:39}}}))?s:"")+"\n"},14:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(s=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"invited_at"):t,{name:"if",hash:{},fn:e.program(15,o,0),inverse:e.noop,data:o,loc:{start:{line:26,column:8},end:{line:28,column:15}}}))?s:""},15:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'          <span class="userInvited">Invited '+(null!=(s=(a(n,"timeago")||t&&a(t,"timeago")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"invited_at"):t,{name:"timeago",hash:{},data:o,loc:{start:{line:27,column:44},end:{line:27,column:68}}}))?s:"")+"</span>\n"},17:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"        "+(null!=(s=(a(n,"formatDate")||t&&a(t,"formatDate")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"password_expires_at"):t,{name:"formatDate",hash:{else:"Expired"},data:o,loc:{start:{line:33,column:8},end:{line:33,column:59}}}))?s:"")+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(s=a(n,"each").call(null!=t?t:e.nullContext||{},null!=t?a(t,"people"):t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0}
19,end:{line:40,column:9}}}))?s:""},useData:!0}),this.HandlebarsTemplates["people/person"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["people/texting_invite_modal"]=Handlebars.template({1:function(e,t){var n,i=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'      <div id="users_without_emails">\n        <div class="alert alert-block alert-warning change-role-alert change-role-severe">\n          '+(null!=(n=e.lambda(null!=(n=null!=t?i(t,"info"):t)?i(n,"noEmailMessage"):n,t))?n:"")+"\n        </div>\n      </div>\n"},3:function(){return'<button class="btn btn-primary" data-dismiss="modal" id="send_invites">Send Invitations</button>'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="modal hide -unite-admin-view -unite-admin-modal  -unite-admin-modal-small" tabindex="-1" role="dialog" aria-labelledby="modal_label" aria-hidden="true" id="invite_to_texting_modal">\n  <div class="modal-header">\n    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\xd7</button>\n    <h3 id="modal_label">Invite To Texting</h3>\n  </div>\n  <div class="modal-body">\n    <h2>'+(null!=(s=e.lambda(null!=(s=null!=t?a(t,"info"):t)?a(s,"invitationMessage"):s,t))?s:"")+"</h2>\n"+(null!=(s=a(n,"if").call(null!=t?t:e.nullContext||{},null!=(s=null!=t?a(t,"info"):t)?a(s,"noEmailMessage"):s,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:8,column:4},end:{line:14,column:11}}}))?s:"")+'  </div>\n  <div class="modal-footer">\n    <button class="btn" data-dismiss="modal" aria-hidden="true" id="modal_cancel_button">Cancel</button>\n    '+(null!=(s=a(n,"if").call(null!=t?t:e.nullContext||{},null!=(s=null!=t?a(t,"info"):t)?a(s,"validRecipients"):s,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:18,column:4},end:{line:18,column:135}}}))?s:"")+"\n  </div>\n</div>"},useData:!0}),this.HandlebarsTemplates["people/texting_invite_modal"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["posts/new"]=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(){return'<form id="new_post_form" style="display: none;" class="admin-flash-container">\n  <h3><input id="post_title" name="title" type="text" value="New Post" /></h3>\n\n  <div id="post_content" contenteditable="true"></div>\n\n  <div class="buttons" id="new_post_buttons">\n    <select name="status" id="new_post_status">\n      <option value="draft">Draft</option>\n      <option value="scheduled">Scheduled</option>\n      <option value="published">Published</option>\n    </select>\n\n    <button id="create_post_button" class="btn btn-primary">Create</button>\n  </div>\n</form>'},useData:!0}),this.HandlebarsTemplates["posts/new"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["posts/published_at_picker"]=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(){return'<div id="published_at_picker">\n  <label for="post_published_at">for</label>\n  <input type="text" id="post_published_at" name="published_at" />\n</div>'},useData:!0}),this.HandlebarsTemplates["posts/published_at_picker"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["setup/person"]=Handlebars.template({1:function(e,t,n,i,o){var s,a,r,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]},c='    <li class="column">\n      <ol>\n';return a=null!=(a=l(n,"items")||(null!=t?l(t,"items"):t))?a:e.hooks.helperMissing,r={name:"items",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o,loc:{start:{line:5,column:8},end:{line:12,column:18}}},s="function"==typeof a?a.call(null!=t?t:e.nullContext||{},r):a,l(n,"items")||(s=e.hooks.blockHelperMissing.call(t,s,r)),null!=s&&(c+=s),c+"      </ol>\n    </li>\n"},2:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'        <li>\n          <input type="radio" name="user[person_id]" value="'+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:7,column:60},end:{line:7,column:66}}}):s)+'" id="person_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:7,column:82},end:{line:7,column:88}}}):s)+'"/>\n          <label for="person_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:8,column:32},end:{line:8,column:38}}}):s)+'">\n            '+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"first_name")||(null!=t?a(t,"first_name"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"first_name",hash:{},data:o,loc:{start:{line:9,column:12},end:{line:9,column:26}}}):s)+" "+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"last_name")||(null!=t?a(t,"last_name"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"last_name",hash:{},data:o,loc:{start:{line:9,column:27},end:{line:9,column:40}}}):s)+"\n          </label>\n        </li>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<ol class="in-columns">\n'+(null!=(s=(a(n,"inGroupsOf")||t&&a(t,"inGroupsOf")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"people"):t,{name:"inGroupsOf",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:2,column:2},end:{line:15,column:17}}}))?s:"")+"</ol>"},useData:!0}
19),this.HandlebarsTemplates["setup/person"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["styles/border_section"]=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div data-prefix="'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"prefix")||(null!=t?a(t,"prefix"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"prefix",hash:{},data:o,loc:{start:{line:1,column:18},end:{line:1,column:30}}}):s)+'">\n  <span class="box-style-preview '+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"prefix")||(null!=t?a(t,"prefix"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"prefix",hash:{},data:o,loc:{start:{line:2,column:33},end:{line:2,column:45}}}):s)+'"></span>\n  <input type="number" step="1" min="0" max="20" value="0" data-property="border-'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"prefix")||(null!=t?a(t,"prefix"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"prefix",hash:{},data:o,loc:{start:{line:3,column:81},end:{line:3,column:93}}}):s)+'width" class="number-input border-width">\n  <select id="border_style_'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"prefix")||(null!=t?a(t,"prefix"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"prefix",hash:{},data:o,loc:{start:{line:4,column:27},end:{line:4,column:39}}}):s)+'" class="btn border-style" data-placeholder="Style" name="border-style">\n    <option class="option" data-value="none" data-property="border-'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"prefix")||(null!=t?a(t,"prefix"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"prefix",hash:{},data:o,loc:{start:{line:5,column:67},end:{line:5,column:79}}}):s)+'style">None</option>\n    <option class="option" data-value="solid" data-property="border-'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"prefix")||(null!=t?a(t,"prefix"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"prefix",hash:{},data:o,loc:{start:{line:6,column:68},end:{line:6,column:80}}}):s)+'style">Solid</option>\n    <option class="option" data-value="dotted" data-property="border-'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"prefix")||(null!=t?a(t,"prefix"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"prefix",hash:{},data:o,loc:{start:{line:7,column:69},end:{line:7,column:81}}}):s)+'style">Dotted</option>\n    <option class="option" data-value="dashed" data-property="border-'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"prefix")||(null!=t?a(t,"prefix"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"prefix",hash:{},data:o,loc:{start:{line:8,column:69},end:{line:8,column:81}}}):s)+'style">Dashed</option>\n    <option class="option" data-value="double" data-property="border-'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"prefix")||(null!=t?a(t,"prefix"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"prefix",hash:{},data:o,loc:{start:{line:9,column:69},end:{line:9,column:81}}}):s)+'style">Double</option>\n  </select>\n  <div class="btn color-selector border-color-selector">\n    <input type="hidden" value="'+e.escapeExpression((a(n,"fromDeclarations")||t&&a(t,"fromDeclarations")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"declarations"):t,null!=t?a(t,"colorProperty"):t,"rgb(0,0,0)",{name:"fromDeclarations",hash:{},data:o,loc:{start:{line:12,column:32},end:{line:12,column:93}}}))+'" data-property="'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"colorProperty")||(null!=t?a(t,"colorProperty"):t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"colorProperty",hash:{},data:o,loc:{start:{line:12,column:110},end:{line:12,column:129}}}):s)+'" />\n    <div style="background-color: '+e.escapeExpression((a(n,"fromDeclarations")||t&&a(t,"fromDeclarations")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"declarations"):t,null!=t?a(t,"colorProperty"):t,"rgb(0,0,0)",{name:"fromDeclarations",hash:{},data:o,loc:{start:{line:13,column:34},end:{line:13,column:95}}}))+'"></div>\n  </div>\n</div>'},useData:!0}
19),this.HandlebarsTemplates["styles/border_section"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["styles/index"]=Handlebars.template({1:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'      <div class="style" data-style-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:6,column:40},end:{line:6,column:48}}}):s)+'">\n        <div style="'+e.escapeExpression((a(n,"renderInlineStyle")||t&&a(t,"renderInlineStyle")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"declarations"):t,{name:"renderInlineStyle",hash:{},data:o,loc:{start:{line:7,column:20},end:{line:7,column:54}}}))+'">'+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:7,column:56},end:{line:7,column:66}}}):s)+"</div>\n      </div>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((a(n,"renderAdminSideMenuPartial")||t&&a(t,"renderAdminSideMenuPartial")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"themes/menu",{name:"renderAdminSideMenuPartial",hash:{action:"styles"},data:o,loc:{start:{line:1,column:0},end:{line:1,column:61}}}))+'\n<div id="themes-styles-content" class="admin-tab-content admin-flash-container flex-rows">\n  <div id="theme_styles_container" class="scrollable">\n    <h2><i class="icon icon-style-block-3 styles-list-label"></i>Block Styles</h2>\n'+(null!=(s=a(n,"each").call(null!=t?t:e.nullContext||{},null!=t?a(t,"blockStyles"):t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:5,column:4},end:{line:9,column:13}}}))?s:"")+'    <h2><i class="icon icon-style-inline-3 styles-list-label"></i>Inline Styles</h2>\n'+(null!=(s=a(n,"each").call(null!=t?t:e.nullContext||{},null!=t?a(t,"inlineStyles"):t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:11,column:4},end:{line:15,column:13}}}))?s:"")+'  </div>\n\n  <div class="styles-font-load">\n    <div id="speedometer"></div>\n    <p>\n      Having several unique font-family selections in your styles can slow down the loading time of your pages. Be mindful of this when designing new styles.\n    </p>\n  </div>\n\n  <div class="admin-actions">\n    <fieldset class="buttons float">\n      <button id="new_style" class="btn btn-success">Add Style</button>\n    </fieldset>\n  </div>\n</div>'},useData:!0}),this.HandlebarsTemplates["styles/index"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["styles/name"]=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="modal hide" tabindex="-1" role="dialog" aria-labelledby="modal_label" aria-hidden="true">\n  <div class="modal-header">\n    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\xd7</button>\n    <h3 id="modal_label">Save As</h3>\n  </div>\n  <div class="modal-body">\n    <h3>Choose a name for the new style</h3>\n    <input type="text" name="style_name" placeholder="'+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:8,column:54},end:{line:8,column:62}}}):s)+'">\n  </div>\n  <div class="modal-footer">\n    <button class="btn" data-dismiss="modal" aria-hidden="true" id="modal_cancel_button">Cancel</button>\n    <button class="btn btn-success" data-dismiss="modal" id="style_save">Save</button>\n  </div>\n</div>'},useData:!0}),this.HandlebarsTemplates["styles/name"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["styles/new"]=Handlebars.template({1:function(e,t,n,i,o){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'      <h2>\n        <i class="icon icon-style-'+e.escapeExpression((s(n,"getProperty")||t&&s(t,"getProperty")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?s(t,"style"):t,"style_type",{name:"getProperty",hash:{},data:o,loc:{start:{line:7,column:34},end:{line:7,column:70}}}))+'-3"></i>&nbsp;\n        '+e.escapeExpression((s(n,"getProperty")||t&&s(t,"getProperty")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?s(t,"style"):t,"name",{name:"getProperty",hash:{},data:o,loc:{start:{line:8,column:8},end:{line:8,column:37}}}))+"\n      </h2>\n"},3:function(e,t,n,i,o){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'      <input type="text" id="style_name" placeholder="Name your new style" value="'+e.escapeExpression((s(n,"getProperty")||t&&s(t,"getProperty")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?s(t,"style"):t,"name",{name:"getProperty",hash:{},data:o,loc:{start:{line:11,column:82},end:{line:11,column:111}}}))+'" />\n      <p id="style_type">
19\n        <input id="style_type_block" class="invisible" type="radio" name="type" value="block" />\n        <label class="style-type-selector style-type-block" for="style_type_block">\n          <i class="icon icon-style-block-3"></i>\n          Block\n        </label>\n        &nbsp;&nbsp;\n        <input id="style_type_inline" class="invisible" type="radio" name="type" value="inline" />\n        <label class="style-type-selector style-type-inline" for="style_type_inline">\n          <i class="icon icon-style-inline-3"></i>\n          Inline\n        </label>\n      </p>\n'},5:function(){return'      <button id="delete_style" class="btn btn-danger">Delete</button>\n'},7:function(){return'      <button id="save_as_style" class="btn btn-primary">Save As</button>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a,r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"renderAdminSideMenuPartial")||t&&r(t,"renderAdminSideMenuPartial")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"themes/menu",{name:"renderAdminSideMenuPartial",hash:{action:"styles"},data:o,loc:{start:{line:1,column:0},end:{line:1,column:61}}}))+'\n<div id="themes-styles-content" class="admin-tab-content admin-flash-container flex-rows">\n\n  <div class="style-name">\n'+(null!=(s=(r(n,"ifPropertyTrue")||t&&r(t,"ifPropertyTrue")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?r(t,"style"):t,"is_default",{name:"ifPropertyTrue",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o,loc:{start:{line:5,column:4},end:{line:25,column:23}}}))?s:"")+'  </div>\n\n  <div id="theme_styles_container" class="flex-grow flex-columns">\n    <div class="flex-column flex-column-grow style-builder scrollable">\n      <div id="styles_options">\n        '+e.escapeExpression((r(n,"renderStyleDeclarationsPartial")||t&&r(t,"renderStyleDeclarationsPartial")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"styles/style_declarations",{name:"renderStyleDeclarationsPartial",hash:{fonts:null!=t?r(t,"fonts"):t,style:null!=t?r(t,"style"):t},data:o,loc:{start:{line:31,column:8},end:{line:31,column:95}}}))+'\n      </div>\n    </div>\n\n    <div class="flex-column flex-column-grow style-designer-wrapper">\n      <div id="style_designer">\n        <p class="styles-preview" data-display="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"type")||(null!=t?r(t,"type"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"type",hash:{},data:o,loc:{start:{line:37,column:48}
19,end:{line:37,column:58}}}):a)+'"></p>\n      </div>\n    </div>\n  </div>\n\n  <div class="admin-actions">\n    <a class="btn" href="#/admin/themes/styles">Cancel</a>\n'+(null!=(s=r(n,"if").call(null!=t?t:e.nullContext||{},null!=(s=null!=t?r(t,"style"):t)?r(s,"id"):s,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:44,column:4},end:{line:46,column:11}}
20}))?s:"")+'    <button id="save_style" class="btn btn-primary">Save</button>\n'+(null!=(s=r(n,"if").call(null!=t?t:e.nullContext||{},null!=(s=null!=t?r(t,"style"):t)?r(s,"id"):s,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o,loc:{start:{line:48,column:4},end:{line:50,column:11}}}))?s:"")+"  </div>\n</div>"},useData:!0}),this.HandlebarsTemplates["styles/new"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["styles/speedometer"]=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(){return'<svg width="156" height="156" style="overflow: hidden;">\n  <g>\n    <path d="M36.987806691180246,119.01219330881976A58,58,0,0,1,20.02861949878757,79.82182402653143L34.521464624090676,79.36636801989857A43.5,43.5,0,0,0,47.24085501838519,108.75914498161482Z" stroke="none" stroke-width="0" fill="#7CCA57"></path>\n    <path d="M20.02861949878757,79.82182402653143A58,58,0,0,1,34.49355796143334,39.6439118112282L45.370168471075004,49.23293385842115A43.5,43.5,0,0,0,34.521464624090676,79.36636801989857Z" stroke="none" stroke-width="0" fill="#ECE13E"></path>\n    <path d="M34.49355796143334,39.6439118112282A58,58,0,1,1,119.01219330881976,119.01219330881975L108.75914498161485,108.75914498161478A43.5,43.5,0,1,0,45.370168471075004,49.23293385842115Z" stroke="none" stroke-width="0" fill="#EC564B"></path>\n    <path d="M33.49218342071639,105.27442507817253L28.546870467462654,108.30491675352503M28.354849849392984,94.13068710637226L22.838722054881096,95.92298567374695M25.960915179130716,82.09556479699351L20.178794643478575,82.55062755221502M26.44266862093381,69.83412092489996L20.714076245482012,68.92680102766661M35.769312893627735,47.317609830332906L31.077014326253042,43.90845536703657M44.09881187716439,38.3068085956784L40.332013196849324,33.89645399519823M54.30169591359565,31.489459437367202L51.668551015106274,26.321621597074667M65.81415200672176,27.242290155241278L64.4601688963575,21.60254461693475M90.18584799327823,27.24229015524127L91.53983110364248,21.60254461693475M101.69830408640433,31.489459437367195L104.33144898489371,26.32162159707466M111.9011881228356,38.30680859567839L115.66798680315067,33.896453995198215M120.23068710637224,47.317609830332884L124.92298567374695,43.908455367036545M129.5573313790662,69.83412092489993L135.28592375451797,68.9268010276666M130.03908482086928,82.09556479699347L135.82120535652143,82.55062755221496M127.64515015060702,94.13068710637225L133.1612779451189,95.92298567374694M122.50781657928363,105.2744250781725L127.45312953253737,108.30491675352499" stroke="#666666" stroke-width="1" fill-opacity="1" fill="none"></path>\n    <path d="M45.190245352944196,110.80975464705581L36.987806691180246,119.01219330881976M35.13198969147628,60.243488738259856L24.414987114345358,55.80436092282483M77.99999999999999,31.599999999999994L77.99999999999999,20M120.86801030852371,60.24348873825984L131.58501288565463,55.804360922824806M110.80975464705585,110.80975464705577L119.0121933088198,119.01219330881972" stroke="#333333" stroke-width="2" fill-opacity="1" fill="none"></path>\n    <g>\n      <text text-anchor="middle" x="78" y="114.6" font-family="lato" font-size="13" stroke="none" stroke-width="0" fill="#333">Font</text>\n      <text text-anchor="middle" x="78" y="127.6" font-family="lato" font-size="13" stroke="none" stroke-width="0" fill="#333">Load</text>\n      <path id="pointer" d="M34.64759134052579,117.84625035985442C75.50153133707256,74.79980401531881,90.15060107237377,65.93833371461349,91.39983540383749,67.53843170695409C92.6490697353012,69.13852969929468,80.49846866292744,81.20019598468119,34.64759134052579,117.84625035985442" stroke="#000" stroke-width="1" fill="#000"></path>\n      <circle cx="77.5" cy="77.5" r="9" stroke="#000" stroke-width="1" fill="#333"></circle>\n    </g>\n  </g>\n</svg>'},useData:!0}
20),this.HandlebarsTemplates["styles/speedometer"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["styles/style_declarations"]=Handlebars.template({1:function(){return'<option style="font-family: inherit" data-value="inherit" data-property="font-family">Inherit</option>'},3:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'      <option style="font-family: '+e.escapeExpression(e.lambda(null!=t?a(t,"family"):t,t))+';" data-value="'+e.escapeExpression(e.lambda(null!=t?a(t,"family"):t,t))+'" data-property="font-family">'+e.escapeExpression("function"==typeof(s=null!=(s=a(n,"key")||o&&a(o,"key"))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"key",hash:{},data:o,loc:{start:{line:5,column:113},end:{line:5,column:123}}}):s)+"</option>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="style-declaration">\n  <select id="font_family" class="btn selectable-option" data-placeholder="Font Family" name="font-family">\n    '+(null!=(s=(a(n,"unlessNormal")||t&&a(t,"unlessNormal")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"style"):t,{name:"unlessNormal",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:3,column:4},end:{line:3,column:146}}}))?s:"")+"\n"+(null!=(s=a(n,"each").call(null!=t?t:e.nullContext||{},null!=t?a(t,"fonts"):t,{name:"each",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:4,column:4},end:{line:6,column:13}}}))?s:"")+'  </select>\n  <input type="hidden" id="font_url" />\n  <div class="style-property">\n    <div class="style-property-value"></div>\n    <div class="style-property-name">Font Family</div>\n  </div>\n</div>\n\n<div class="style-declaration">\n  <select id="font_style" class="btn selectable-option font-option" data-placeholder="Font Style" name="font-style"></select>\n  <div class="style-property">\n    <div class="style-property-value"></div>\n    <div class="style-property-name">Font Style</div>\n  </div>\n</div>\n\n<div class="style-declaration">\n  <select id="font_size" class="btn selectable-option" data-placeholder="Font Size" name="font-size">\n    <option style="font-size: inherit" data-value="inherit" data-property="font-size">Inherit</option>\n    <option style="font-size: 0.5em" data-value="0.5em" data-property="font-size">.5em</option>\n    <option style="font-size: 0.65em" data-value="0.65em" data-property="font-size">.65em</option>\n    <option style="font-size: 0.75em" data-value="0.75em" data-property="font-size">.75em</option>\n    <option style="font-size: 0.8em" data-value="0.8em" data-property="font-size">.8em</option>\n    <option style="font-size: 0.85em" data-value="0.85em" data-property="font-size">.85em</option>\n    <option style="font-size: 0.875em" data-value="0.875em" data-property="font-size">.875em</option>\n    <option style="font-size: 0.95em" data-value="0.95em" data-property="font-size">.95em</option>\n    <option style="font-size: 1em" data-value="1em" data-property="font-size">1em</option>\n    <option style="font-size: 1.15em" data-value="1.15em" data-property="font-size">1.15em</option>\n    <option style="font-size: 1.3em; height: 1.3em; line-height: 1.3em;" data-value="1.3em" data-property="font-size">1.3em</option>\n    <option style="font-size: 1.35em; height: 1.35em; line-height: 1.35em;" data-value="1.35em" data-property="font-size">1.35em</option>\n    <option style="font-size: 1.45em; height: 1.45em; line-height: 1.45em;" data-value="1.45em" data-property="font-size">1.45em</option>\n    <option style="font-size: 1.5em; height: 1.5em; line-height: 1.5em;" data-value="1.5em" data-property="font-size">1.5em</option>\n    <option style="font-size: 1.6em; height: 1.6em; line-height: 1.6em;" data-value="1.6em" data-property="font-size">1.6em</option>\n    <option style="font-size: 1.66em; height: 1.66em; line-height: 1.66em;" data-value="1.66em" data-property="font-size">1.66em</option>\n    <option style="font-size: 1.75em; height: 1.75em; line-height: 1.75em;" data-value="1.75em" data-property="font-size">1.75em</option>\n    <option style="font-size: 1.95em; height: 1.95em; line-height: 1.95em;" data-value="1.95em" data-property="font-size">1.95em</option>\n    <option style="font-size: 2em; height: 2em; line-height: 2em;" data-value="2em" data-property="font-size">2em</option>\n    <option style="font-size: 2.05em; height: 2.05em; line-height: 2.05em;" data-value="2.05em" data-property="font-size">2.05em</option>\n    <option style="font-size: 2.15em; height: 2.15em; line-height: 2.15em;" data-value="2.15em" data-property="font-size">2.15em</option>\n    <option style="font-size: 2.3em; height: 2.3em; line-height: 2.3em;" data-value="2.3em" data-property="font-size">2.3em</option>\n    <option style="font-size: 2.6em; height: 2.6em; line-height: 2.6em;" data-value="2.6em" data-property="font-size">2.6em</option>\n    <option style="font-size: 2.8em; height: 2.8em; line-height: 2.8em;" data-value="2.8em" data-property="font-size">2.8em</option>\n  </select>\n  <div class="style-property">\n    <div class="style-property-value"></div>\n    <div class="style-property-name">Font Size</div>\n  </div>\n</div>\n\n<div class="style-declaration">\n  <select id="text_decoration" class="btn selectable-option" data-placeholder="Text Decoration" name="text-decoration">\n    <option style="text-decoration: none" data-value="none" data-property="text-decoration">None</option>\n    <option style="text-decoration: underline;"data-value="underline" data-property="text-decoration">
20Underline</option>\n    <option style="text-decoration: line-through;" data-value="line-through" data-property="text-decoration">Line Through</option>\n  </select>\n  <div class="style-property">\n    <div class="style-property-value"></div>\n    <div class="style-property-name">Text Decoration</div>\n  </div>\n</div>\n\n<div class="style-declaration">\n  <div class="style-property">\n    <div id="color_selector" class="btn color-selector">\n      <input type="hidden" value="'+e.escapeExpression((a(n,"fromDeclarations")||t&&a(t,"fromDeclarations")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"declarations"):t,"color","rgb(0,0,0)",{name:"fromDeclarations",hash:{},data:o,loc:{start:{line:71,column:34},end:{line:71,column:89}}}))+'" data-property="color" />\n      <div style="background-color: '+e.escapeExpression((a(n,"fromDeclarations")||t&&a(t,"fromDeclarations")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"declarations"):t,"color","rgb(0,0,0)",{name:"fromDeclarations",hash:{},data:o,loc:{start:{line:72,column:36},end:{line:72,column:91}}}))+'"></div>\n    </div>\n    <div class="style-property-value"></div>\n    <div class="style-property-name">Color</div>\n  </div>\n</div>\n\n\n<div class="style-declaration style-declaration-block">\n  <div class="style-property">\n    <div id="background_color_selector" class="btn color-selector">\n      <input type="hidden" value="'+e.escapeExpression((a(n,"fromDeclarations")||t&&a(t,"fromDeclarations")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"declarations"):t,"background-color","rgb(255,255,255)",{name:"fromDeclarations",hash:{},data:o,loc:{start:{line:83,column:34},end:{line:83,column:106}}}))+'" data-property="background-color" />\n      <div style="background-color: '+e.escapeExpression((a(n,"fromDeclarations")||t&&a(t,"fromDeclarations")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"declarations"):t,"background-color","rgb(255,255,255)",{name:"fromDeclarations",hash:{},data:o,loc:{start:{line:84,column:36},end:{line:84,column:108}}}))+'"></div>\n    </div>\n    <div class="style-property-value"></div>\n    <div class="style-property-name">Background Color</div>\n  </div>\n</div>\n\n<div class="style-declaration style-declaration-block">\n  <div class="style-property expandable box-style">\n    <div class="style-property-value"></div>\n    <div class="style-property-name">Margin</div>\n  </div>\n  <div class="style-dropdown">\n    <div class="style-subproperty">
20\n      <span class="box-style-preview top"></span>\n      <input type="number" value="0" id="top_margin" step="0.125" min="0" max="5" class="number-input em margin-item" data-property="margin-top">\n    </div>\n\n    <div class="style-subproperty">\n      <span class="box-style-preview right"></span>\n      <input type="number" value="0" id="right_margin" step="0.125" min="0" max="5" class="number-input em margin-item" data-property="margin-right">\n    </div>\n\n    <div class="style-subproperty">\n      <span class="box-style-preview bottom"></span>\n      <input type="number" value="0" id="bottom_margin" step="0.125" min="0" max="5" class="number-input em margin-item" data-property="margin-bottom">\n    </div>\n\n    <div class="style-subproperty">\n      <span class="box-style-preview left"></span>\n      <input type="number" value="0" id="left_margin" step="0.125" min="0" max="5" class="number-input em margin-item" data-property="margin-left">\n    </div>\n  </div>\n</div>\n\n<div class="style-declaration style-declaration-block">\n  <div class="style-property expandable box-style">\n    <div class="style-property-value"></div>\n    <div class="style-property-name">Padding</div>\n  </div>\n  <div class="style-dropdown">\n    <div class="style-subproperty">
20\n      <span class="box-style-preview top"></span>\n      <input type="number" value="0" id="top_padding" step="0.125" min="0" max="5" class="number-input em padding-item" data-property="padding-top">\n    </div>\n\n    <div class="style-subproperty">\n      <span class="box-style-preview right"></span>\n      <input type="number" value="0" id="right_padding" step="0.125" min="0" max="5" class="number-input em padding-item" data-property="padding-right">\n    </div>\n\n    <div class="style-subproperty">\n      <span class="box-style-preview bottom"></span>\n      <input type="number" value="0" id="bottom_padding" step="0.125" min="0" max="5" class="number-input em padding-item" data-property="padding-bottom">\n    </div>\n\n    <div class="style-subproperty">\n      <span class="box-style-preview left"></span>\n      <input type="number" value="0" id="left_padding" step="0.125" min="0" max="5" class="number-input em padding-item" data-property="padding-left">\n    </div>\n  </div>\n</div>\n\n<div class="style-declaration style-declaration-block">\n  <div class="style-property expandable">\n    <div class="style-property-value"></div>\n    <div class="style-property-name">Border</div>\n  </div>\n  <div class="style-dropdown" data-css-property="border">\n    <div class="detail-expander"><span class="detail closed"></span></div>\n    <div class="controls shorthand">\n      '+e.escapeExpression((a(n,"renderBorderPartial")||t&&a(t,"renderBorderPartial")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"styles/border_section",{name:"renderBorderPartial",hash:{prefix:"",declarations:null!=t?a(t,"declarations"):t},data:o,loc:{start:{line:155,column:6},end:{line:155,column:90}}}))+'\n    </div>\n    <div class="controls as-properties">\n      '+e.escapeExpression((a(n,"renderBorderPartial")||t&&a(t,"renderBorderPartial")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"styles/border_section",{name:"renderBorderPartial",hash:{prefix:"top-",declarations:null!=t?a(t,"declarations"):t},data:o,loc:{start:{line:158,column:6},end:{line:158,column:94}}}))+"\n      "+e.escapeExpression((a(n,"renderBorderPartial")||t&&a(t,"renderBorderPartial")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"styles/border_section",{name:"renderBorderPartial",hash:{prefix:"right-",declarations:null!=t?a(t,"declarations"):t},data:o,loc:{start:{line:159,column:6},end:{line:159,column:96}}}))+"\n      "+e.escapeExpression((a(n,"renderBorderPartial")||t&&a(t,"renderBorderPartial")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"styles/border_section",{name:"renderBorderPartial",hash:{prefix:"bottom-",declarations:null!=t?a(t,"declarations"):t},data:o,loc:{start:{line:160,column:6},end:{line:160,column:97}}}))+"\n      "+e.escapeExpression((a(n,"renderBorderPartial")||t&&a(t,"renderBorderPartial")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"styles/border_section",{name:"renderBorderPartial",hash:{prefix:"left-",declarations:null!=t?a(t,"declarations"):t},data:o,loc:{start:{line:161,column:6},end:{line:161,column:95}}}))+"\n    </div>\n  </div>\n</div>"},useData:!0}),this.HandlebarsTemplates["styles/style_declarations"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates.browse=Handlebars.template({1:function(e,t,n,i,o){var s,a,r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'        <li class="-unite-page-template" title="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"title")||(null!=t?r(t,"title"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:o,loc:{start:{line:9,column:48},end:{line:9,column:57}}}):a)+'" data-index="'+e.escapeExpression("function"==typeof(a=null!=(a=r(n,"index")||(null!=t?r(t,"index"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"index",hash:{},data:o,loc:{start:{line:9,column:71},end:{line:9,column:80}}}):a)+'">\n          '+(null!=(s="function"==typeof(a=null!=(a=r(n,"content")||(null!=t?r(t,"content"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"content",hash:{},data:o,loc:{start:{line:10,column:10},end:{line:10,column:23}}}):a)?s:"")+"\n        </li>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a,r,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]},c='<div class="modal-header">\n  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>\n  <h3>New Page</h3>\n</div>\n<form>\n  <div class="modal-body no-padding admin-flash-container">\n    <ol class="-unite-page-templates">\n';return a=null!=(a=l(n,"templates")||(null!=t?l(t,"templates"):t))?a:e.hooks.helperMissing,r={name:"templates",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:8,column:6},end:{line:12,column:20}}},s="function"==typeof a?a.call(null!=t?t:e.nullContext||{},r):a,l(n,"templates")||(s=e.hooks.blockHelperMissing.call(t,s,r)),null!=s&&(c+=s),c+'    </ol><div class="-unite-page-template-description">\n    </div>\n  </div>\n\n  <div class="modal-footer">\n    <span id="restricted_message" class="hidden">This page type is restricted to paid versions.</span>\n    <button class="btn close-button" data-dismiss="modal">Close</button>\n    <button id="create_page_btn" class="btn btn-primary submit-button">Create Page</button>\n  </div>\n</form>'},useData:!0}
20),this.HandlebarsTemplates.browse}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["themes/advanced/index"]=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((s(n,"renderAdminSideMenuPartial")||t&&s(t,"renderAdminSideMenuPartial")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"themes/menu",{name:"renderAdminSideMenuPartial",hash:{action:"advanced"},data:o,loc:{start:{line:1,column:0},end:{line:1,column:63}}}))+'\n<div id="themes-advanced-content" class="admin-tab-content admin-flash-container flex-rows">\n  <h3 class="top">Custom Headers</h3>\n  <pre id="additional_headers" class="small flex-grow" style="display:none;"></pre>\n\n  <h3>Custom Scripts</h3>\n  <pre id="additional_scripts" class="small flex-grow" style="display:none;"></pre>\n\n  <div class="admin-actions">\n    <fieldset class="buttons float">\n      <button id="save_advanced" class="btn btn-primary submit-button">Save Changes</button>\n    </fieldset>\n  </div>\n</div>'},useData:!0}),this.HandlebarsTemplates["themes/advanced/index"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["themes/browse/index"]=Handlebars.template({1:function(){return'      <fieldset class="bulk-actions">\n        <legend>Actions for selected theme</legend>\n          <button class="btn" id="fork_theme_button">Save As</button>\n        <button class="btn btn-default" id="delete_theme_button">Delete</button>\n      </fieldset>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a,r,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]},c=e.escapeExpression((l(n,"renderAdminSideMenuPartial")||t&&l(t,"renderAdminSideMenuPartial")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"themes/menu",{name:"renderAdminSideMenuPartial",hash:{action:"index"},data:o,loc:{start:{line:1,column:0},end:{line:1,column:60}}}
20))+'\n<div id="themes-browse-content" class="admin-tab-content admin-flash-container flex-rows">\n  <div id="themes-list-container" class="scrollable"></div>\n\n  <div id="theme_notes" style="display: none;"></div>\n\n  <div class="admin-actions">\n';return a=null!=(a=l(n,"ifPaidTier")||(null!=t?l(t,"ifPaidTier"):t))?a:e.hooks.helperMissing,r={name:"ifPaidTier",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:8,column:4},end:{line:14,column:19}}},s="function"==typeof a?a.call(null!=t?t:e.nullContext||{},r):a,l(n,"ifPaidTier")||(s=e.hooks.blockHelperMissing.call(t,s,r)),null!=s&&(c+=s),c+'\n    <fieldset class="buttons float">\n      <button class="btn btn-primary" id="activate_theme_button">Apply Theme</button>\n    </fieldset>\n  </div>\n</div>'},useData:!0}),this.HandlebarsTemplates["themes/browse/index"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["themes/customize/index"]=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((a(n,"renderAdminSideMenuPartial")||t&&a(t,"renderAdminSideMenuPartial")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"themes/menu",{name:"renderAdminSideMenuPartial",hash:{action:"customize"},data:o,loc:{start:{line:1,column:0},end:{line:1,column:64}}}))+'\n<div id="themes-customize-content" class="admin-tab-content admin-flash-container flex-rows">\n  <div class="flex-grow flex-columns">\n    <div id="theme_options_container" class="scrollable flex-column flex-column-grow">\n      <form id="theme_options_form">\n'+(null!=(s=e.invokePartial(a(i,"themeOptions"),t,{name:"themeOptions",data:o,indent:"        ",helpers:n,partials:i,decorators:e.decorators}))?s:"")+'      </form>\n    </div>\n\n    <div id="theme_preview_container" class="loading flex-column">\n      <div id="theme_preview">\n        <iframe width="1024" height="768" frameborder="0" scrolling="no"></iframe>\n        <div class="clickBarrier"></div>\n      </div>\n    </div>\n  </div>\n\n  <div class="admin-actions">\n    <fieldset class="buttons float">\n      <button id="save_options" class="btn btn-primary submit-button">Save Changes</button>\n    </fieldset>\n  </div>\n</div>'},usePartial:!0,useData:!0}),this.HandlebarsTemplates["themes/customize/index"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["themes/customize/option"]=Handlebars.template({1:function(e,t,n,i,o,s,a){var r,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"  <tr>\n    <th>"+(null!=(r=(l(n,"optionLabel")||t&&l(t,"optionLabel")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?l(t,"name"):t,null!=a[1]?l(a[1],"f"):a[1],{name:"optionLabel",hash:{},data:o,loc:{start:{line:3,column:8},end:{line:3,column:36}}}))?r:"")+"</th>\n    <td>"+(null!=(r=(l(n,"optionValue")||t&&l(t,"optionValue")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},t,null!=a[1]?l(a[1],"values"):a[1],null!=a[1]?l(a[1],"f"):a[1],{name:"optionValue",hash:{},data:o,loc:{start:{line:4,column:8},end:{line:4,column:43}}}))?r:"")+"</td>\n  </tr>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o,s,a){var r,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=l(n,"each").call(null!=t?t:e.nullContext||{},null!=t?l(t,"options"):t,{name:"each",hash:{},fn:e.program(1,o,0,s,a),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:6,column:9}}}))?r:""},useData:!0,useDepths:!0}),this.HandlebarsTemplates["themes/customize/option"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["themes/customize/options"]=Handlebars.template({1:function(){return"  <p>There are no options for this theme.</p>\n"},3:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'  <table id="theme_options">\n'+(null!=(s=e.invokePartial(a(i,"themeOption"),t,{name:"themeOption",data:o,indent:"    ",helpers:n,partials:i,decorators:e.decorators}))?s:"")+"  </table>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(s=(a(n,"ifNone")||t&&a(t,"ifNone")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"options"):t,{name:"ifNone",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:3,column:11}}}))?s:"")+(null!=(s=(a(n,"ifAny")||t&&a(t,"ifAny")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"options"):t,{name:"ifAny",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:4,column:0},end:{line:8,column:10}}}))?s:"")},usePartial:!0,useData:!0}
20),this.HandlebarsTemplates["themes/customize/options"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["themes/forking"]=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(){return'<div class="modal hide" tabindex="-1" role="dialog" aria-labelledby="modal_label" aria-hidden="true">\n  <div class="modal-body">\n    <h2 style="text-align: center;">\n      <i class="fa fa-spinner fa-spin fa-2x"></i><br />\n      Copying your theme...\n    </h2>\n  </div>\n</div>'},useData:!0}),this.HandlebarsTemplates["themes/forking"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["themes/menu"]=Handlebars.template({1:function(){return" selected"},3:function(e,t,n,i,o){var s,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'    <li class="adminTab'+(null!=(s=(a(n,"ifEqual")||t&&a(t,"ifEqual")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?a(t,"action"):t,"edit",{name:"ifEqual",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:8,column:23},end:{line:8,column:71}}}))?s:"")+'"><a href="#/admin/themes/edit">Edit</a></li>\n'},5:function(){return'    <li class="adminTab restricted"><i class="fa fa-lock" data-toggle="tooltip" title="Upgrade to unlock this feature."></i>Edit</li>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var s,a,r,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]},c='<ol class="admin-subnav">\n  <h1>Themes</h1>\n  <li class="adminTab'+(null!=(s=(l(n,"ifEqual")||t&&l(t,"ifEqual")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?l(t,"action"):t,"index",{name:"ifEqual",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:3,column:21},end:{line:3,column:70}}}))?s:"")+'"><a href="#/admin/themes">Browse</a></li>\n  <li class="adminTab'+(null!=(s=(l(n,"ifEqual")||t&&l(t,"ifEqual")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?l(t,"action"):t,"styles",{name:"ifEqual",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:4,column:21},end:{line:4,column:71}}}))?s:"")+'"><a href="#/admin/themes/styles">Styles</a></li>\n  <li class="adminTab'+(null!=(s=(l(n,"ifEqual")||t&&l(t,"ifEqual")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?l(t,"action"):t,"customize",{name:"ifEqual",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:5,column:21},end:{line:5,column:74}}}))?s:"")+'"><a href="#/admin/themes/customize">Customize</a></li>\n  <li class="adminTab'+(null!=(s=(l(n,"ifEqual")||t&&l(t,"ifEqual")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?l(t,"action"):t,"advanced",{name:"ifEqual",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:6,column:21},end:{line:6,column:73}}}))?s:"")+'"><a href="#/admin/themes/advanced">Advanced</a></li>\n';return a=null!=(a=l(n,"ifPaidTier")||(null!=t?l(t,"ifPaidTier"):t))?a:e.hooks.helperMissing,r={name:"ifPaidTier",hash:{},fn:e.program(3,o,0),inverse:e.program(5,o,0),data:o,loc:{start:{line:7,column:2},end:{line:11,column:17}}},s="function"==typeof a?a.call(null!=t?t:e.nullContext||{},r):a,l(n,"ifPaidTier")||(s=e.hooks.blockHelperMissing.call(t,s,r)),null!=s&&(c+=s),c+"</ol>"},useData:!0}),this.HandlebarsTemplates["themes/menu"]}.call(this),window.Neat.template=JST,window.Unite.template=HandlebarsTemplates,window.Unite.Admin.init();

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.