!function(a,b){“object”==typeof module&&“object”==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error(“jQuery requires a window with a document”);return b(a)}:b(a)}(“undefined”!=typeof window?window:this,function(a,b){function c(a){var b=!!a&&“length”in a&&a.length,c=fa.type(a);return“function”===c||fa.isWindow(a)?!1:“array”===c||0===b||“number”==typeof b&&b>0&&b-1 in a}function d(a,b,c){if(fa.isFunction(b))return fa.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return fa.grep(a,function(a){return a===b!==c});if(“string”==typeof b){if(pa.test(b))return fa.filter(b,a,c);b=fa.filter(b,a)}return fa.grep(a,function(a){return _.call(b,a)>-1!==c})}function e(a,b){for(;(a=a[b])&&1!==a.nodeType;);return a}function f(a){var b={};return fa.each(a.match(va)||[],function(a,c){b[c]=!0}),b}function g(){X.removeEventListener(“DOMContentLoaded”,g),a.removeEventListener(“load”,g),fa.ready()}function h(){this.expando=fa.expando+h.uid++}function i(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d=“data-”+b.replace(Ca,“-$&”).toLowerCase(),c=a.getAttribute(d),“string”==typeof c){try{c=“true”===c?!0:“false”===c?!1:“null”===c?null:c“”===c?+c:Ba.test©?fa.parseJSON©:c}catch(e){}Aa.set(a,b,c)}else c=void 0;return c}function j(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return fa.css(a,b,“”)},i=h(),j=c&&c[3]||(fa.cssNumber[b]?“”:“px”),k=(fa.cssNumber[b]||“px”!==j&&+i)&&Ea.exec(fa.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||“.5”,k/=f,fa.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&–g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}function k(a,b){var c=“undefined”!=typeof a.getElementsByTagName?a.getElementsByTagName(b||“*”):“undefined”!=typeof a.querySelectorAll?a.querySelectorAll(b||“*”):[];return void 0===b||b&&fa.nodeName(a,b)?fa.merge([a],c):c}function l(a,b){for(var c=0,d=a.length;d>c;c++)za.set(a[c],“globalEval”,!b||za.get(b[c],“globalEval”))}function m(a,b,c,d,e){for(var f,g,h,i,j,m,n=b.createDocumentFragment(),o=[],p=0,q=a.length;q>p;p++)if(f=a[p],f||0===f)if(“object”===fa.type(f))fa.merge(o,f.nodeType?[f]:f);else if(La.test(f)){for(g=g||n.appendChild(b.createElement(“div”)),h=(Ia.exec(f)||[“”,“”])[1].toLowerCase(),i=Ka[h]||Ka._default,g.innerHTML=i[1]+fa.htmlPrefilter(f)+i[2],m=i[0];m–;)g=g.lastChild;fa.merge(o,g.childNodes),g=n.firstChild,g.textContent=“”}else o.push(b.createTextNode(f));for(n.textContent=“”,p=0;f=o[p++];)if(d&&fa.inArray(f,d)>-1)e&&e.push(f);else if(j=fa.contains(f.ownerDocument,f),g=k(n.appendChild(f),“script”),j&&l(g),c)for(m=0;f=g[m++];)Ja.test(f.type||“”)&&c.push(f);return n}function n(){return!0}function o(){return!1}function p(){try{return X.activeElement}catch(a){}}function q(a,b,c,d,e,f){var g,h;if(“object”==typeof b){“string”!=typeof c&&(d=d||c,c=void 0);for(h in b)q(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&(“string”==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=o;else if(!e)return a;return 1===f&&(g=e,e=function(a){return fa().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=fa.guid++)),a.each(function(){fa.event.add(this,b,e,d,c)})}function r(a,b){return fa.nodeName(a,“table”)&&fa.nodeName(11!==b.nodeType?b:b.firstChild,“tr”)?a.getElementsByTagName(“tbody”)[0]||a.appendChild(a.ownerDocument.createElement(“tbody”)):a}function s(a){return a.type=(null!==a.getAttribute(“type”))+“/”+a.type,a}function t(a){var b=Sa.exec(a.type);return b?a.type=b[1]:a.removeAttribute(“type”),a}function u(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(za.hasData(a)&&(f=za.access(a),g=za.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)fa.event.add(b,e,j[e][c])}Aa.hasData(a)&&(h=Aa.access(a),i=fa.extend({},h),Aa.set(b,i))}}function v(a,b){var c=b.nodeName.toLowerCase();“input”===c&&Ha.test(a.type)?b.checked=a.checked:“input”!==c&&“textarea”!==c||(b.defaultValue=a.defaultValue)}function w(a,b,c,d){b=Z.apply([],b);var e,f,g,h,i,j,l=0,n=a.length,o=n-1,p=b[0],q=fa.isFunction(p);if(q||n>1&&“string”==typeof p&&!da.checkClone&&Ra.test(p))return a.each(function(e){var f=a.eq(e);q&&(b[0]=p.call(this,e,f.html())),w(f,b,c,d)});if(n&&(e=m(b,a[0].ownerDocument,!1,a,d),f=e.firstChild,1===e.childNodes.length&&(e=f),f||d)){for(g=fa.map(k(e,“script”),s),h=g.length;n>l;l++)i=e,l!==o&&(i=fa.clone(i,!0,!0),h&&fa.merge(g,k(i,“script”))),c.call(a[l],i,l);if(h)for(j=g[g.length-1].ownerDocument,fa.map(g,t),l=0;h>l;l++)i=g[l],Ja.test(i.type||“”)&&!za.access(i,“globalEval”)&&fa.contains(j,i)&&(i.src?fa._evalUrl&&fa._evalUrl(i.src):fa.globalEval(i.textContent.replace(Ta,“”)))}return a}function x(a,b,c){for(var d,e=b?fa.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||fa.cleanData(k(d)),d.parentNode&&(c&&fa.contains(d.ownerDocument,d)&&l(k(d,“script”)),d.parentNode.removeChild(d));return a}function y(a,b){var c=fa(b.createElement(a)).appendTo(b.body),d=fa.css(c[0],“display”);return c.detach(),d}function z(a){var b=X,c=Va[a];return c||(c=y(a,b),“none”!==c&&c||(Ua=(Ua||fa(“‘})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST[”partials/video/_spotify_embed“]=function(){return”>w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/’,a+=this.escape(this.id),a+=‘&auto_play=true&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true&show_teaser=false“>’})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST[”partials/video/_spotify_embed“]=function(){return this.Skim={access:function(a){var b;return b=this,”function“==typeof b&&(b=b.call(this)),b===!0?:b===!1||null==b?!1:”[object Array]“!==Object.prototype.toString.call(b)?:0===b.length?!1:b},withContext:function(a,b){var c,d;return c=function(a){var b;return b=function(){},b.prototype=a,new b},a=c(a),a.safe||(a.safe=this.safe||function(a){var b;return(null!=a?a.skimSafe:void 0)?a:(b=new String(null!=a?a:”“),b.skimSafe=!0,b)}),a.isArray=Array.isArray||function(a){return”[object Array]“==={}.toString.call(a)},a.flatten=d=function(a){var b,c,e,f;for(c=[],e=0,f=a.length;f>e;e++)b=a,b instanceof Array?c=c.concat(d(b)):c.push(b);return c},a.escape||(a.escape=this.escape||function(a){return null==a?“”:a.skimSafe||!//.test(a)?a:this.safe(“”+a).replace(/&/g,“&amp;”).replace(/</g,“&lt;”).replace(/>/g,“&gt;”).replace(/“/g,”&quot;“)}),b.call(a)}},function(a){return null==a&&(a={}),Skim.withContext.call({},a,function(){var a;return a=”“,a+='<div class=”video-wrapper“><iframe allowtransparency=”true“ frameborder=”0“ src=”‘})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST[“partials/video/_tumblr_embed”]=function(){return“>embed.spotify.com/?uri=spotify:track:’,a+=this.escape(this.id),a+=‘”>’})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST[“partials/video/_tumblr_embed”]=function(){return this.Skim={access:function(a){var b;return b=this,“function”==typeof b&&(b=b.call(this)),b===!0?:b===!1||null==b?!1:“[object Array]”!==Object.prototype.toString.call(b)?:0===b.length?!1:b},withContext:function(a,b){var c,d;return c=function(a){var b;return b=function(){},b.prototype=a,new b},a=c(a),a.safe||(a.safe=this.safe||function(a){var b;return(null!=a?a.skimSafe:void 0)?a:(b=new String(null!=a?a:“”),b.skimSafe=!0,b)}),a.isArray=Array.isArray||function(a){return“[object Array]”==={}.toString.call(a)},a.flatten=d=function(a){var b,c,e,f;for(c=[],e=0,f=a.length;f>e;e++)b=a,b instanceof Array?c=c.concat(d(b)):c.push(b);return c},a.escape||(a.escape=this.escape||function(a){return null==a?”“:a.skimSafe||!//.test(a)?a:this.safe(”“+a).replace(/&/g,”&amp;“).replace(/</g,”&lt;“).replace(/>/g,”&gt;“).replace(/”/g,“&quot;”)}),b.call(a)}},function(a){return null==a&&(a={}),Skim.withContext.call({},a,function(){var a;return a=“”,a+='<div class=“video-wrapper”>',a+=this.video,a+=“</div>”})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST=function(){return this.Skim={access:function(a){var b;return b=this,“function”==typeof b&&(b=b.call(this)),b===!0?:b===!1||null==b?!1:“[object Array]”!==Object.prototype.toString.call(b)?:0===b.length?!1:b},withContext:function(a,b){var c,d;return c=function(a){var b;return b=function(){},b.prototype=a,new b},a=c(a),a.safe||(a.safe=this.safe||function(a){var b;return(null!=a?a.skimSafe:void 0)?a:(b=new String(null!=a?a:“”),b.skimSafe=!0,b)}),a.isArray=Array.isArray||function(a){return“[object Array]”==={}.toString.call(a)},a.flatten=d=function(a){var b,c,e,f;for(c=[],e=0,f=a.length;f>e;e++)b=a,b instanceof Array?c=c.concat(d(b)):c.push(b);return c},a.escape||(a.escape=this.escape||function(a){return null==a?”“:a.skimSafe||!//.test(a)?a:this.safe(”“+a).replace(/&/g,”&amp;“).replace(/</g,”&lt;“).replace(/>/g,”&gt;“).replace(/”/g,“&quot;”)}),b.call(a)}},function(a){return null==a&&(a={}),Skim.withContext.call({},a,function(){var a,b,c;switch(a=“”,a+='<div class=“twitter-wrapper”>',c=this.overlay?!0:!1,a+='<video autoplay=“autoplay”',b=c){case!0:a+=' controls=“controls”';break;case!1:case null:break;default:a+=' controls=“',a+=this.escape(b),a+='”'}return a+=' loop=“true”><source src=“',a+=this.escape(this.video),a+='” type=“video/mp4” /></video></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST=function(){return this.Skim={access:function(a){var b;return b=this,“function”==typeof b&&(b=b.call(this)),b===!0?:b===!1||null==b?!1:“[object Array]”!==Object.prototype.toString.call(b)?:0===b.length?!1:b},withContext:function(a,b){var c,d;return c=function(a){var b;return b=function(){},b.prototype=a,new b},a=c(a),a.safe||(a.safe=this.safe||function(a){var b;return(null!=a?a.skimSafe:void 0)?a:(b=new String(null!=a?a:“”),b.skimSafe=!0,b)}),a.isArray=Array.isArray||function(a){return“[object Array]”==={}.toString.call(a)},a.flatten=d=function(a){var b,c,e,f;for(c=[],e=0,f=a.length;f>e;e++)b=a,b instanceof Array?c=c.concat(d(b)):c.push(b);return c},a.escape||(a.escape=this.escape||function(a){return null==a?”“:a.skimSafe||!//.test(a)?a:this.safe(”“+a).replace(/&/g,”&amp;“).replace(/</g,”&lt;“).replace(/>/g,”&gt;“).replace(/”/g,“&quot;”)}),b.call(a)}},function(a){return null==a&&(a={}),Skim.withContext.call({},a,function(){var a;return a=“”,a+='<div class=“video-wrapper”><iframe allowfullscreen=“true” frameborder=“0” mozallowfullscreen=“true” src=“//player.vimeo.com/video/',a+=this.escape(this.id),a+='?autoplay=1&amp;title=0&amp;byline=0&amp;portrait=0” webkitallowfullscreen=“true”></iframe></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST=function(){return this.Skim={access:function(a){var b;return b=this,“function”==typeof b&&(b=b.call(this)),b===!0?:b===!1||null==b?!1:“[object Array]”!==Object.prototype.toString.call(b)?:0===b.length?!1:b},withContext:function(a,b){var c,d;return c=function(a){var b;return b=function(){},b.prototype=a,new b},a=c(a),a.safe||(a.safe=this.safe||function(a){var b;return(null!=a?a.skimSafe:void 0)?a:(b=new String(null!=a?a:“”),b.skimSafe=!0,b)}),a.isArray=Array.isArray||function(a){return“[object Array]”==={}.toString.call(a)},a.flatten=d=function(a){var b,c,e,f;for(c=[],e=0,f=a.length;f>e;e++)b=a,b instanceof Array?c=c.concat(d(b)):c.push(b);return c},a.escape||(a.escape=this.escape||function(a){return null==a?”“:a.skimSafe||!//.test(a)?a:this.safe(”“+a).replace(/&/g,”&amp;“).replace(/</g,”&lt;“).replace(/>/g,”&gt;“).replace(/”/g,“&quot;”)}),b.call(a)}},function(a){return null==a&&(a={}),Skim.withContext.call({},a,function(){var a;return a=“”,a+='<div class=“vine-wrapper”><iframe frameborder=“0” src=“',a+=this.escape(this.id),a+='/card?audio=1”></iframe><script src=“‘})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST[”partials/video/_youtube_embed“]=function(){return”>platform.vine.co/static/scripts/embed.js“>’})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST[”partials/video/_youtube_embed“]=function(){return this.Skim={access:function(a){var b;return b=this,”function“==typeof b&&(b=b.call(this)),b===!0?:b===!1||null==b?!1:”[object Array]“!==Object.prototype.toString.call(b)?:0===b.length?!1:b},withContext:function(a,b){var c,d;return c=function(a){var b;return b=function(){},b.prototype=a,new b},a=c(a),a.safe||(a.safe=this.safe||function(a){var b;return(null!=a?a.skimSafe:void 0)?a:(b=new String(null!=a?a:”“),b.skimSafe=!0,b)}),a.isArray=Array.isArray||function(a){return”[object Array]“==={}.toString.call(a)},a.flatten=d=function(a){var b,c,e,f;for(c=[],e=0,f=a.length;f>e;e++)b=a,b instanceof Array?c=c.concat(d(b)):c.push(b);return c},a.escape||(a.escape=this.escape||function(a){return null==a?“”:a.skimSafe||!//.test(a)?a:this.safe(“”+a).replace(/&/g,“&amp;”).replace(/</g,“&lt;”).replace(/>/g,“&gt;”).replace(/“/g,”&quot;“)}),b.call(a)}},function(a){return null==a&&(a={}),Skim.withContext.call({},a,function(){var a,b;return a=”“,a+='<div class=”video-wrapper“>',b=this.overlay?”autoplay=1&rel=0“:”autoplay=1&rel=0&controls=0“,a+='<iframe allowfullscreen=”allowfullscreen“ frameborder=”0“ src=”‘})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.plan_change=function(){return“>www.youtube-nocookie.com/embed/’,a+=this.escape(this.id),a+=”?“,a+=this.escape(b),a+=‘”>’})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.plan_change=function(){return this.Skim={access:function(a){var b;return b=this, “function”==typeof b&&(b=b.call(this)),b===!0?:b===!1||null==b?!1:“[object Array]”!==Object.prototype.toString.call(b)?:0===b.length?!1:b},withContext:function(a,b){var c,d;return c=function(a){var b;return b=function(){},b.prototype=a,new b},a=c(a),a.safe||(a.safe=this.safe||function(a){var b;return(null!=a?a.skimSafe:void 0)?a:(b=new String(null!=a?a:“”),b.skimSafe=!0,b)}),a.isArray=Array.isArray||function(a){return“[object Array]”==={}.toString.call(a)},a.flatten=d=function(a){var b,c,e,f;for(c=[],e=0,f=a.length;f>e;e++)b=a,b instanceof Array?c=c.concat(d(b)):c.push(b);return c},a.escape||(a.escape=this.escape||function(a){return null==a?”“:a.skimSafe||!//.test(a)?a:this.safe(”“+a).replace(/&/g,”&amp;“).replace(/</g,”&lt;“).replace(/>/g,”&gt;“).replace(/”/g,“&quot;”)}),b.call(a)}},function(a){return null==a&&(a={}),Skim.withContext.call({},a,function(){var a;return a=“”,a+='<div class=“change-plan-overlay tc-gray”><h2 class=“light tc-orange fs-1-75”>Changing Your Juicer Plan</h2><div class=“plan-change-summary cf mb-40 pb-40 relative”><div class=“existing-plan fl”><h3 class=“bold tc-grapefruit”>Current Plan: ',a+=this.escape(this.model.planCapital()),a+=“ - $”,a+=this.escape(this.model.get(“cost_to_i”)),a+=“/mo</h3><h4>”,a+=this.model.get(“subtitle”),a+='</h4></div><div class=“change-plan-arrow sprite”></div><div class=“new-plan fr”><h3 class=“bold tc-grapefruit”>New Plan: ',a+=this.escape(this.model.newPlanCapital()),a+=“ - $”,a+=this.escape(this.model.get(“new_cost”)),a+=“/mo</h3><h4>”,a+=this.model.get(“new_subtitle”),a+=“</h4></div></div>”,“small”===this.model.get(“new_plan”)?(a+='<div class=“change-plan-explainer mb-25”>Your subscription will no longer renew and your Juicer account will automatically downgrade to a <strong>Small</strong> plan on <strong>',a+=this.escape(this.model.downgradeDate()),a+='</strong></div><div class=“archive-mode-explainer”><strong class=“tc-grapefruit up”>Notice:</strong> Fully downgrading will remove all extra sources and feeds from your Juicer account. If you’d like to keep an archive of these feeds, consider downgrading to <a class=“tc-grapefruit tdu” data-method=“put” href=“/plans/archive”>Archive Mode</a> for $5/Month! <form action=“/churns” class=“tac mt-30” method=“post”><input name=“authenticity_token” type=“hidden” value=“',a+=this.escape(this.csrf),a+='” /><input name=“redirect_path” type=“hidden” value=“/downgrade” /><input class=“j-button” data-confirm=“Are you sure you want to downgrade to small?” data-disable-with=“Downgrading…” type=“submit” value=“Downgrade to Small” /></form></div>'):(a+='<div class=“change-plan-explainer”>You will be charged a prorated amount for the remainer of this month for this new plan, and fully charged next on your normal billing date, <strong>',a+=this.escape(this.model.downgradeDate()),a+='</strong></div><form action=“/plans/',a+=this.escape(this.model.get(”new_plan“)),a+='” class=“tac mt-30” method=“post”><input name=“_method” type=“hidden” value=“put” /><input name=“authenticity_token” type=“hidden” value=“',a+=this.escape(this.csrf),a+='” /><input class=“j-button” data-disable-with=“Loading…” type=“submit” value=“',a+=this.escape(this.model.get(”verb“)),a+='” /></form>'),a+=“</div>”})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.please_wait=function(){return this.Skim={access:function(a){var b;return b=this,“function”==typeof b&&(b=b.call(this)),b===!0?:b===!1||null==b?!1:“[object Array]”!==Object.prototype.toString.call(b)?:0===b.length?!1:b},withContext:function(a,b){var c,d;return c=function(a){var b;return b=function(){},b.prototype=a,new b},a=c(a),a.safe||(a.safe=this.safe||function(a){var b;return(null!=a?a.skimSafe:void 0)?a:(b=new String(null!=a?a:“”),b.skimSafe=!0,b)}),a.isArray=Array.isArray||function(a){return“[object Array]”==={}.toString.call(a)},a.flatten=d=function(a){var b,c,e,f;for(c=[],e=0,f=a.length;f>e;e++)b=a,b instanceof Array?c=c.concat(d(b)):c.push(b);return c},a.escape||(a.escape=this.escape||function(a){return null==a?”“:a.skimSafe||!//.test(a)?a:this.safe(”“+a).replace(/&/g,”&amp;“).replace(/</g,”&lt;“).replace(/>/g,”&gt;“).replace(/”/g,“&quot;”)}),b.call(a)}},function(a){return null==a&&(a={}),Skim.withContext.call({},a,function(){var a;return a=“”,a+='<div class=“mt-15 tc-gray fourteen please-wait”><h3 class=“strong”>Please be patient.</h3><p>It can take up to 30 seconds to pull in all the posts.</p><p>Taking forever? <a class=“tc-gray bold” href=“/contact”>Contact Us</a></p></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.post_edit=function(){return this.Skim={access:function(a){var b;return b=this,“function”==typeof b&&(b=b.call(this)),b===!0?:b===!1||null==b?!1:“[object Array]”!==Object.prototype.toString.call(b)?:0===b.length?!1:b},withContext:function(a,b){var c,d;return c=function(a){var b;return b=function(){},b.prototype=a,new b},a=c(a),a.safe||(a.safe=this.safe||function(a){var b;return(null!=a?a.skimSafe:void 0)?a:(b=new String(null!=a?a:“”),b.skimSafe=!0,b)}),a.isArray=Array.isArray||function(a){return“[object Array]”==={}.toString.call(a)},a.flatten=d=function(a){var b,c,e,f;for(c=[],e=0,f=a.length;f>e;e++)b=a,b instanceof Array?c=c.concat(d(b)):c.push(b);return c},a.escape||(a.escape=this.escape||function(a){return null==a?”“:a.skimSafe||!//.test(a)?a:this.safe(”“+a).replace(/&/g,”&amp;“).replace(/</g,”&lt;“).replace(/>/g,”&gt;“).replace(/”/g,“&quot;”)}),b.call(a)}},function(a){return null==a&&(a={}),Skim.withContext.call({},a,function(){var a;return a=“”,a+='<div class=“p-50”><h2 class=“tac light fs-2 tc-orange mb-30”>Edit Post</h2>',a+=Juicer.Helpers.renderPartial(“poster”,{post:this.post}),a+='<div class=“message-container”>',a+=Juicer.Helpers.renderPartial(“message”,{post:this.post}),a+=“</div>”,this.feed.get(“moderation_allowed?”)?(a+='<form><textarea class=“bordered mv-25” placeholder=“Add text or links to the post”>',a+=this.escape(this.post.get(“edit”)),a+='</textarea><div class=“tac”><input class=“j-button” type=“submit” value=“Add content” /></div></form>'):a+='<h3>Only Paid accounts can edit posts. <a href=“/plans”>Upgrade your account.</a></h3>',a+=“</div>”})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.post_overlay=function(){return this.Skim={access:function(a){var b;return b=this,“function”==typeof b&&(b=b.call(this)),b===!0?:b===!1||null==b?!1:“[object Array]”!==Object.prototype.toString.call(b)?:0===b.length?!1:b},withContext:function(a,b){var c,d;return c=function(a){var b;return b=function(){},b.prototype=a,new b},a=c(a),a.safe||(a.safe=this.safe||function(a){var b;return(null!=a?a.skimSafe:void 0)?a:(b=new String(null!=a?a:“”),b.skimSafe=!0,b)}),a.isArray=Array.isArray||function(a){return“[object Array]”==={}.toString.call(a)},a.flatten=d=function(a){var b,c,e,f;for(c=[],e=0,f=a.length;f>e;e++)b=a,b instanceof Array?c=c.concat(d(b)):c.push(b);return c},a.escape||(a.escape=this.escape||function(a){return null==a?”“:a.skimSafe||!//.test(a)?a:this.safe(”“+a).replace(/&/g,”&amp;“).replace(/</g,”&lt;“).replace(/>/g,”&gt;“).replace(/”/g,“&quot;”)}),b.call(a)}},function(a){return null==a&&(a={}),Skim.withContext.call({},a,function(){var a;return a=“”,a+='<div class=“j-post-overlay juicer-feed loaded ',a+=this.escape(this.post.gallery()?”j-gallery“:void 0),a+='” data-id=“',a+=this.escape(this.post.get(”id“)),a+='”>',this.post.isVideo()?a+=Juicer.Helpers.renderPartial(“video/”+this.post.lowerType()+“_embed”,{id:this.post.get(“external_id”),video:this.post.get(“video”),overlay:!0}):(a+='<div class=“image”>',a+=Juicer.Helpers.renderPartial(“content”,{post:this.post,feed:this.feed,overlay:!0}),a+=“</div>”),a+='<div class=“j-overlay-text ',a+=this.escape(this.post.postType()),a+='”>',a+=Juicer.Helpers.renderPartial(“poster”,{post:this.post,lazyLoad:!1}),this.post.get(“unformatted_message”)&&(a+='<div class=“j-message”>',a+=this.post.fullMessage(),a+=“</div>”),a+=Juicer.Helpers.renderPartial(“edit”,{post:this.post}),a+=Juicer.Helpers.renderPartial(“meta”,{post:this.post}),a+='<div class=“j-bottom”>',a+=Juicer.Helpers.renderPartial(“link”,{url:this.post.link(),label:“View on ”+this.post.sourceType(),“class”:“juicer-button j-”+this.post.lowerType(),aria:this.post.lowerType()}),a+='<ul class=“j-share”><li><a class=“j-facebook share” href=“',a+=this.escape(this.post.facebookShare()),a+='” target=“_blank”>Facebook</a></li><li><a class=“j-twitter share” href=“',a+=this.escape(this.post.twitterShare()),a+='” target=“_blank”>Twitter</a></li><li><a class=“j-googleplus share” href=“',a+=this.escape(this.post.googlePlusShare()),a+='” target=“_blank”>Google+</a></li><li><a class=“j-pinterest share” href=“',a+=this.escape(this.post.pinterestShare()),a+='” target=“_blank”>Pinterest</a></li><li><a class=“j-linkedin share” href=“',a+=this.escape(this.post.linkedInShare()),a+='” target=“_blank”>LinkedIn</a></li><li><a class=“j-email share” href=“',a+=this.escape(this.post.emailShare()),a+='” target=“_blank”>Email</a></li></ul></div><div class=“j-navigate”><a class=“j-previous” data-post-id=“',a+=this.escape(this.previous.get(”id“)),a+='”><span>Previous</span></a><a class=“j-next” data-post-id=“',a+=this.escape(this.next.get(”id“)),a+='”><span>Next</span></a></div></div></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.sidebar=function(){return this.Skim={access:function(a){var b;return b=this,“function”==typeof b&&(b=b.call(this)),b===!0?:b===!1||null==b?!1:“[object Array]”!==Object.prototype.toString.call(b)?:0===b.length?!1:b},withContext:function(a,b){var c,d;return c=function(a){var b;return b=function(){},b.prototype=a,new b},a=c(a),a.safe||(a.safe=this.safe||function(a){var b;return(null!=a?a.skimSafe:void 0)?a:(b=new String(null!=a?a:“”),b.skimSafe=!0,b)}),a.isArray=Array.isArray||function(a){return“[object Array]”==={}.toString.call(a)},a.flatten=d=function(a){var b,c,e,f;for(c=[],e=0,f=a.length;f>e;e++)b=a,b instanceof Array?c=c.concat(d(b)):c.push(b);return c},a.escape||(a.escape=this.escape||function(a){return null==a?”“:a.skimSafe||!//.test(a)?a:this.safe(”“+a).replace(/&/g,”&amp;“).replace(/</g,”&lt;“).replace(/>/g,”&gt;“).replace(/”/g,“&quot;”)}),b.call(a)}},function(a){return null==a&&(a={}),Skim.withContext.call({},a,function(){var a;return a=“”,a+='<h1 class=“fs-1-75 tc-off-white tac sidebar-feed-name”>',a+=this.escape(this.feed.get(“name”)),a+='<a class=“feed-name-edit sprite”>Edit</a></h1><div class=“relative”><div class=“tac mb-30”><a class=“j-button add-source green”>+ Add Social Media Source</a></div><ul class=“sidebar-menu tc-off-white”><li class=“menu-item” id=“sources”>Social Media Sources</li><li class=“menu-item alert-menu-item” data-moderation-count=“!” id=“social_accounts”>Expired Social Accounts</li><li class=“menu-item” id=“settings”>Feed Settings</li><li class=“menu-item” id=“design”>Custom Design</li><li class=“menu-item” id=“embed”>Embed In Your Site</li><li class=“menu-item alert-menu-item” data-moderation-count=“',a+=this.escape(this.feed.moderationStatus()),a+='” id=“moderate”>Moderate and Filter</li><li class=“menu-item slide-menu-item” id=“analytics”>Analytics</li><li class=“menu-item slide-menu-item” id=“hub”>Share your Feed</li>',“small”===this.feed.get(“plan”)&&(a+='<li class=“menu-item slide-menu-item” id=“features”>Additional Features</li>'),a+='<li class=“menu-item slide-menu-item” id=“synced”>Last Sync ',a+=this.escape(Juicer.Helpers.fullDate(this.feed.get(“last_synced”))),a+=“</li></ul></div>”})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.source_form=function(){return this.Skim={access:function(a){var b;return b=this,“function”==typeof b&&(b=b.call(this)),b===!0?:b===!1||null==b?!1:“[object Array]”!==Object.prototype.toString.call(b)?:0===b.length?!1:b},withContext:function(a,b){var c,d;return c=function(a){var b;return b=function(){},b.prototype=a,new b},a=c(a),a.safe||(a.safe=this.safe||function(a){var b;return(null!=a?a.skimSafe:void 0)?a:(b=new String(null!=a?a:“”),b.skimSafe=!0,b)}),a.isArray=Array.isArray||function(a){return“[object Array]”==={}.toString.call(a)},a.flatten=d=function(a){var b,c,e,f;for(c=[],e=0,f=a.length;f>e;e++)b=a,b instanceof Array?c=c.concat(d(b)):c.push(b);return c},a.escape||(a.escape=this.escape||function(a){return null==a?”“:a.skimSafe||!//.test(a)?a:this.safe(”“+a).replace(/&/g,”&amp;“).replace(/</g,”&lt;“).replace(/>/g,”&gt;“).replace(/”/g,“&quot;”)}),b.call(a)}},function(a){return null==a&&(a={}),Skim.withContext.call({},a,function(){var a,b;return a=“”,b={source:this.source,csrf:this.csrf,feed:this.feed,type:this.type,socialAccounts:this.socialAccounts,results:this.results},a+='<div class=“tac”>',this.feed?this.feed.get(“more_sources_allowed?”)?a+=Juicer.Helpers.renderPartial(this.feed.newSourcePartial(),b):(a+='<div class=“p-50”><h2 class=“tc-orange fs-2 light”>Upgrade to add more sources</h2><h3 class=“mb-25”>Unfortunately, the ',a+=this.escape(this.feed.get(“plan”)),a+=“ plan only allows ”,a+=this.escape(this.feed.get(“max_sources”)),a+=“ sources.</h3>”,a+=Juicer.Helpers.renderPartial(“upgrade_plan”,{feed:this.feed}),a+=“</div>”):a+=Juicer.Helpers.renderPartial(“source_form/new”,b),a+=“</div>”})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST=function(){return this.Skim={access:function(a){var b;return b=this,“function”==typeof b&&(b=b.call(this)),b===!0?:b===!1||null==b?!1:“[object Array]”!==Object.prototype.toString.call(b)?:0===b.length?!1:b},withContext:function(a,b){var c,d;return c=function(a){var b;return b=function(){},b.prototype=a,new b},a=c(a),a.safe||(a.safe=this.safe||function(a){var b;return(null!=a?a.skimSafe:void 0)?a:(b=new String(null!=a?a:“”),b.skimSafe=!0,b)}),a.isArray=Array.isArray||function(a){return“[object Array]”==={}.toString.call(a)},a.flatten=d=function(a){var b,c,e,f;for(c=[],e=0,f=a.length;f>e;e++)b=a,b instanceof Array?c=c.concat(d(b)):c.push(b);return c},a.escape||(a.escape=this.escape||function(a){return null==a?”“:a.skimSafe||!//.test(a)?a:this.safe(”“+a).replace(/&/g,”&amp;“).replace(/</g,”&lt;“).replace(/>/g,”&gt;“).replace(/”/g,“&quot;”)}),b.call(a)}},function(a){return null==a&&(a={}),Skim.withContext.call({},a,function(){var a;return a=“”,a+='<form accept-charset=“UTF-8” class=“tac p-50” id=“manual_post” method=“post”><h2 class=“light fs-2 tc-orange mb-30”>Add a Post Manually to ',a+=this.escape(this.source.displayName()),a+=“</h2>”,this.feed.notSmall()?(a+='<input name=“source_id” type=“hidden” value=“',a+=this.escape(this.source.get(”id“)),a+='”><input autocomplete=“off” class=“source-overlay-field” id=“link” name=“link” placeholder=“ex: twitter.com/juicerio/status/615555384300961792” type=“text” /><input class=“j-button” name=“commit” type=“submit” value=“Add Post” /></input>'):(a+='<h3 style=“margin-bottom:1.5rem”>Unfortunately, the ',a+=this.escape(this.feed.get(“plan”)),a+=“ plan doesn't allow you to manually enter posts. Please upgrade!</h3>”,a+=Juicer.Helpers.renderPartial(“upgrade_plan”,{feed:this.feed})),a+=“</form>”})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST=function(){return this.Skim={access:function(a){var b;return b=this,“function”==typeof b&&(b=b.call(this)),b===!0?:b===!1||null==b?!1:“[object Array]”!==Object.prototype.toString.call(b)?:0===b.length?!1:b},withContext:function(a,b){var c,d;return c=function(a){var b;return b=function(){},b.prototype=a,new b},a=c(a),a.safe||(a.safe=this.safe||function(a){var b;return(null!=a?a.skimSafe:void 0)?a:(b=new String(null!=a?a:“”),b.skimSafe=!0,b)}),a.isArray=Array.isArray||function(a){return“[object Array]”==={}.toString.call(a)},a.flatten=d=function(a){var b,c,e,f;for(c=[],e=0,f=a.length;f>e;e++)b=a,b instanceof Array?c=c.concat(d(b)):c.push(b);return c},a.escape||(a.escape=this.escape||function(a){return null==a?”“:a.skimSafe||!//.test(a)?a:this.safe(”“+a).replace(/&/g,”&amp;“).replace(/</g,”&lt;“).replace(/>/g,”&gt;“).replace(/”/g,“&quot;”)}),b.call(a)}},function(a){return null==a&&(a={}),Skim.withContext.call({},a,function(){var a,b,c;return a=“”,a+='<form accept-charset=“UTF-8” class=“tac p-50 source-update” method=“post”><input name=“id” type=“hidden” value=“',a+=this.escape(this.source.get(”id“)),a+='” /><h2 class=“light fs-2 tc-orange mb-30”>Set Moderation Filters for ',a+=this.escape(this.source.displayName()),a+='</h2><h3 class=“fifteen tc-gray mb-15”>These work the same way as the moderation and filtering for your whole feed, but just apply to this one sources posts. Read more about it <a class=“tc-gray bold” href=“/blog/walkthrough-moderating-and-filtering-your-social-posts-in-juicer”>here</a>. </h3>',c=“list words, @usernames, or hastags”,b=“Separate filters with a comma. Filters are case-sensitive.”,a+='<h3 class=“settings-label”>Disallow posts with these words:</h3><textarea class=“moderation-filter source-overlay-textarea thirteen mb-10 bc-gray” name=“disallowed” placeholder=“',a+=this.escape©,a+=” to block. “,a+=this.escape(b),a+='”>',a+=this.source.disallowed(),a+='</textarea><h3 class=“settings-label”>Only allow posts with these words:</h3><textarea class=“moderation-filter source-overlay-textarea thirteen mb-20” name=“allowed” placeholder=“',a+=this.escape©,a+=” to allow. “,a+=this.escape(b),a+='”>',a+=this.source.allowed(),a+='</textarea><div class=“mb-15”><input name=“queue” type=“hidden” value=“0” />',a+=this.source.get(“queue”)?'<input checked=“true” id=“queue” name=“queue” type=“checkbox” />':'<input id=“queue” name=“queue” type=“checkbox” />',a+='<label for=“queue”>Send all posts to moderation queue</label></div><input class=“j-button” name=“commit” type=“submit” value=“Save Moderation Settings” /></form>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST=function(){return this.Skim={access:function(a){var b;return b=this,“function”==typeof b&&(b=b.call(this)),b===!0?:b===!1||null==b?!1:“[object Array]”!==Object.prototype.toString.call(b)?:0===b.length?!1:b},withContext:function(a,b){var c,d;return c=function(a){var b;return b=function(){},b.prototype=a,new b},a=c(a),a.safe||(a.safe=this.safe||function(a){var b;return(null!=a?a.skimSafe:void 0)?a:(b=new String(null!=a?a:“”),b.skimSafe=!0,b)}),a.isArray=Array.isArray||function(a){return“[object Array]”==={}.toString.call(a)},a.flatten=d=function(a){var b,c,e,f;for(c=[],e=0,f=a.length;f>e;e++)b=a,b instanceof Array?c=c.concat(d(b)):c.push(b);return c},a.escape||(a.escape=this.escape||function(a){return null==a?”“:a.skimSafe||!//.test(a)?a:this.safe(”“+a).replace(/&/g,”&amp;“).replace(/</g,”&lt;“).replace(/>/g,”&gt;“).replace(/”/g,“&quot;”)}),b.call(a)}},function(a){return null==a&&(a={}),Skim.withContext.call({},a,function(){var a;return a=“”,a+='<form accept-charset=“UTF-8” class=“tac p-50 source-update” method=“post”><h2 class=“light fs-2 tc-orange mb-30”>Rename ',a+=this.escape(this.source.displayName()),a+='</h2><p class=“tc-gray fourteen mb-30”>This will <strong>not</strong> show different posts. To display different posts through a new source, delete this source, and add a new one with your new hashtag or social account. </p><input name=“id” type=“hidden” value=“',a+=this.escape(this.source.get(”id“)),a+='” /><input autocomplete=“off” class=“source-overlay-field” name=“name” placeholder=“How you want the name of your source to display on Juicer.” type=“text” value=“',a+=this.escape(this.source.displayTerm()),a+='” /><input class=“j-button” name=“commit” type=“submit” value=“Update Name” /></form>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.widget=function(){return this.Skim={access:function(a){var b;return b=this,“function”==typeof b&&(b=b.call(this)),b===!0?:b===!1||null==b?!1:“[object Array]”!==Object.prototype.toString.call(b)?:0===b.length?!1:b},withContext:function(a,b){var c,d;return c=function(a){var b;return b=function(){},b.prototype=a,new b},a=c(a),a.safe||(a.safe=this.safe||function(a){var b;return(null!=a?a.skimSafe:void 0)?a:(b=new String(null!=a?a:“”),b.skimSafe=!0,b)}),a.isArray=Array.isArray||function(a){return“[object Array]”==={}.toString.call(a)},a.flatten=d=function(a){var b,c,e,f;for(c=[],e=0,f=a.length;f>e;e++)b=a,b instanceof Array?c=c.concat(d(b)):c.push(b);return c},a.escape||(a.escape=this.escape||function(a){return null==a?”“:a.skimSafe||!//.test(a)?a:this.safe(”“+a).replace(/&/g,”&amp;“).replace(/</g,”&lt;“).replace(/>/g,”&gt;“).replace(/”/g,“&quot;”)}),b.call(a)}},function(a){return null==a&&(a={}),Skim.withContext.call({},a,function(){var a;return a=“”,a+='<div class=“flip-container”><div class=“flipper”><div class=“front”>',a+=Juicer.Helpers.renderPartial(“widget_card”,{post:this.first,admin:this.admin}),a+='</div><div class=“back”>',a+=Juicer.Helpers.renderPartial(“widget_card”,{post:this.second,admin:this.admin}),a+=“</div></div></div>”})}}.call(this)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Models.Assignment=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.urlRoot=“/api/assignments”,c}(JuicerBackbone.Model)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Models.Click=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.urlRoot=function(){return Juicer.Constants.API_ROOT+“/api/clicks”},c}(JuicerBackbone.Model)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Models.Enterprise=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.idAttribute=“slug”,c.prototype.urlRoot=“/api/enterprise”,c.prototype.page=1,c.prototype.fetch=function(a){return a=null!=a?_u.clone(a):{},a.data=null!=a.data?_u.extend(a.data,this.data()):this.data(),c.__super__.fetch.call(this,a)},c.prototype.parse=function(a,b){var d,e;return a.current_page>1&&a.feeds.length>0&&(d=_u.map(this.get(“feeds”).models,function(a){return function(a){return a.attributes}}(this)),e=a.feeds,a.feeds=d.concat(e),a.new_feeds=e),c.__super__.parse.call(this,a,b)},c.prototype.data=function(){var a;return a={page:this.page},this.query&&(a.query=this.query),a},c.prototype.nextPage=function(){return this.page+=1},c.prototype.moreFeeds=function(){return this.get(“current_page”)<this.get(“total_pages”)},c.prototype.relations=,c}(JuicerBackbone.AssociatedModel)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Models.EnterpriseUsers=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.idAttribute=“slug”,c.prototype.url=function(){return“/api/enterprise/”+this.get(“slug”)+“/users”},c.prototype.relations=,c}(JuicerBackbone.AssociatedModel)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Models.Estimate=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.defaults={sources:5,frequency:3},c.prototype.frequencyInWords=function(){return this.frequencyMap},c.prototype.frequencyMap={1:“Day”,2:“4 Hours”,3:“1 Hour”,4:“30 Minutes”,5:“10 Minutes”,6:“5 Minutes”,7:“1 Minute”},c.prototype.frequencyMuliplier={1:4,2:6,3:8,4:14,5:20,6:40,7:200},c.prototype.price=function(){return this.get(“sources”)*this.frequencyCalculated()},c.prototype.frequencyCalculated=function(){return this.frequencyMuliplier},c.prototype.priceString=function(){return this.maxSources()?“$”+this.frequencyCalculated():“$”+this.price()},c.prototype.priceLabel=function(){return this.maxSources()?“Per Source per Month”:“Cost per Month”},c.prototype.sources=function(){return this.maxSources()?“20+”:this.get(“sources”)},c.prototype.maxSources=function(){return this.get(“sources”)>20},c}(JuicerBackbone.Model)}.call(this),function(){var a=function(a,b){return function(){return a.apply(b,arguments)}},b=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a=b);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},c={}.hasOwnProperty;Juicer.Models.Feed=function©{function d(){return this.fetchNewPosts=a(this.fetchNewPosts,this),this.poll=a(this.poll,this),this.startPolling=a(this.startPolling,this),d.__super__.constructor.apply(this,arguments)}return b(d,c),d.prototype.idAttribute=“slug”,d.prototype.urlRoot=function(){return Juicer.Constants.API_ROOT+“/api/feeds”},d.prototype.parse=function(a,b){return null!=this.get(“css”)&&delete a.css,d.__super__.parse.call(this,a,b)},d.prototype.sync=function(a,b,c){var e;return e=c.url,“read”!==a&&(c.url=“/api/feeds/”+this.get(“id”)),e&&(e.match(“fetch_all”)||e.match(“bulk_moderate”))&&(c.url=e),d.__super__.sync.call(this,a,b,c)},d.prototype.defaults={slug:“error”},d.prototype.allowed=function(){return null!=this.get(“allowed”)?this.get(“allowed”):“”},d.prototype.disallowed=function(){return null!=this.get(“disallowed”)?this.get(“disallowed”):“”},d.prototype.moderation=function(){return!!this.get(“allowed”)||!!this.get(“disallowed”)||this.get(“profanity”)||this.get(“queue”)||this.get(“prevent_duplicates”)||this.geofence()},d.prototype.geofence=function(){return!!(this.get(“distance”)&&this.get(“location”)&&this.get(“lat”)&&this.get(“lng”))},d.prototype.widget=function(){return“widget”===this.get(“css”)},d.prototype.slider=function(){return“slider”===this.get(“css”)},d.prototype.livingWall=function(){return“living-wall”===this.get(“css”)},d.prototype.campaign=function(){return _u.contains(,this.get(“plan”))},d.prototype.defaultHeight=function(){return this.widget()?400:null},d.prototype.defaultWidth=function(){return this.widget()?400:null},d.prototype.initialize=function(a){return null==a&&(a={}),this.per=a.per,this.page=a.page,this.filter=a.filter,this.startingAt=a.startingAt,this.endingAt=a.endingAt,this.search=a.search,this.truncate=a.truncate,this.admin=a.admin,this.per||(this.per=100),this.page||(this.page=1),this.once(“sync”,this.startPolling)},d.prototype.startPolling=function(){return this.shouldPoll()?this.poll():void 0},d.prototype.shouldPoll=function(){return this.pollingAllowed()&&this.isGrid()},d.prototype.pollingAllowed=function(){return this.notSmall()&&!!this.get(“poll”)&&!!this.get(“update_frequency”)},d.prototype.poll=function(){return this.timeout=setTimeout(this.fetchNewPosts,this.pollInterval())},d.prototype.fetchNewPosts=function(a){var b;return null==a&&(a=!0),this.polling=!0,b=this.get(“requested_at”),this.fetch({success:function©{return function(){return c.get(“requested_at”)!==b&&c.trigger(“new-posts”),c.polling=!1,a?c.poll():void 0}}(this)})},d.prototype.pollInterval=function(){var a;return a=60*this.get(“update_frequency”)*1e3/this.divisor(),a=Math.floor(a),a=Math.max(a,15e3)},d.prototype.divisor=function(){var a;return a=this.get(“sources”).length,2>a&&(a=2),a>10&&(a=10),a},d.prototype.fetch=function(a){return a=null!=a?_u.clone(a):{},a.data=null!=a.data?_u.extend(a.data,this.data()):this.data(),a.data=this.dataToArray(a.data),d.__super__.fetch.call(this,a)},d.prototype.data=function(){var a;return a={},this.per&&(a=_u.extend(a,{per:this.per})),this.admin&&(a=_u.extend(a,{admin:!0})),this.endingAt&&(a=_u.extend(a,{ending_at:this.endingAt})),this.filter&&(a=_u.extend(a,{filter:this.filter})),this.page&&!this.polling&&(a=_u.extend(a,{page:this.page})),this.search&&(a=_u.extend(a,{search:this.search})),this.startingAt&&(a=_u.extend(a,{starting_at:this.startingAt})),this.truncate&&(a=_u.extend(a,{truncate:this.truncate})),a},d.prototype.dataToArray=function(a){var b;return b=Object.keys(a).reduce(function(b,c){return b.concat({name:c,value:a})},[]),b.sort(function(a,b){return a.name>b.name})},d.prototype.nextPage=function(a){return this.page+=1,this},d.prototype.previousPage=function(a){return this.page-=1,this},d.prototype.resetPage=function(){return this.page=1,this},d.prototype.nextSync=function(){var a;switch(a=new Date(this.get(“last_synced”)),this.get(“plan”)){case“medium”:a.setHours(a.getHours()+1);break;case“large”:a.setMinutes(a.getMinutes()+10);break;case“campaign”:a.setMinutes(a.getMinutes()+1);break;case“custom”:a.setMinutes(a.getMinutes()+this.get(“update_frequency”));break;case“enterprise”:a.setMinutes(a.getMinutes()+this.get(“update_frequency”));break;default:a.setDate(a.getDate()+1)}return a},d.prototype.paid=function(){return _u.contains(Juicer.Constants.PAID_PLANS,this.get(“plan”))},d.prototype.notSmall=function(){return“small”!==this.get(“plan”)},d.prototype.cssClass=function(){var a;return a=this.get(“css”)||“image-grid”,“widget”===a&&(a=“juicer-widget”),this.get(“colored_icons”)&&“classic”!==this.get(“css”)&&(a+=“ colored-icons”),this.hoverImages()&&(a+=“ hover-images”),a},d.prototype.isGrid=function(){return!_u.contains(,this.get(“css”))},d.prototype.classic=function(){return“classic”===this.get(“css”)},d.prototype.hasInterval=function(){return _u.contains(,this.get(“css”))},d.prototype.hasColumns=function(){return!_u.contains(,this.get(“css”))},d.prototype.hoverImages=function(){return _u.contains(,this.get(“css”))},d.prototype.hasHeight=function(){return this.get(“height”)},d.prototype.newSourcePartial=function(){return this.get(“more_sources_allowed?”)?“source_form/new”:“source_form/max”},d.prototype.termsByType=function(a){var b;return b=this.get(“sources”).where({source:a}),_u.map(b,function(a){return a.get(“term”)})},d.prototype.fetchAll=function(){var a,b;return b=this.url()+“/fetch_all”,a={url:b,type:“POST”},(this.sync||JuicerBackbone.sync).call(this,null,this,a)},d.prototype.bulkModerate=function(a,b){var c,d,e;return null==a&&(a=!0),null==b&&(b=null),e=“/api/feeds/”+this.get(“slug”)+“/bulk_moderate”,c={},a&&(c.approve=!0),null!=b&&(c.filter=b),d={url:e,type:“POST”,data:$.param©},(this.sync||JuicerBackbone.sync).call(this,null,this,d)},d.prototype.partial=function(){var a;switch(a=this.get(“css”)||this.get(“style”)){case“modern”:return“user”;case“user”:return“user”;case“slider”:return“image”;case“image-grid”:return“image”;case“hip”:return“image”;case“classic”:return“classic”;case“living-wall”:return“wall”;case“polaroid”:return“polaroid”;case“night”:return“night”;default:return“standard”}},d.prototype.displayFilters=function(){return _u.contains(this.validFilters,this.get(“display_filter”))&&!this.hasInterval()&&this.get(“sources”).length>1},d.prototype.validFilters=[“Social Type”,“Social Account”,“Grouped Terms”],d.prototype.filterPartial=function(){return this.get(“display_filter_type”)?“new”:“old”},d.prototype.filters=function(){var a;return a=function(){switch(this.get(“display_filter”)){ case“Social Type”:return this.accountTypes();case“Social Account”:return this.get(“sources”).models;case“Grouped Terms”:return this.uniqSources()}}.call(this),a=a.slice(0),a.unshift(this.allSource()),a},d.prototype.allSource=function(){return new Juicer.Models.Source({source:“All”})},d.prototype.accountTypes=function(){var a,b;return a=[],b=,_u.each(this.get(“sources”).models,function©{return _u.contains(b,c.get(“source”))?void 0:(a.push©,b.push(c.get(“source”)))}),a},d.prototype.uniqSources=function(){var a,b,c;return a=[],c=,b=_u.map(this.get(“sources”).models,function(b){return _u.contains(c,b.displayName())?void 0:(a.push(b),c.push(b.displayName()))}),a},d.prototype.moderationStatus=function(){return this.moderation()?“ON”:“OFF”},d.prototype.colors=,d.prototype.customColors=function(){return _u.some(this.getColors())},d.prototype.getColor=function(a){return this.getCustomColor(a)||this.getDefaultColor(a)},d.prototype.getCustomColor=function(a){return this.getColors()},d.prototype.getColors=function(){return this.get(“colors”)},d.prototype.getDefaultColor=function(a){var b;return“hover”===a?“#F17E6F”:(b=this.customColorMap,a=jQuery(b.selector).css(b.attribute),a?Juicer.Helpers.rgb2hex(a):“#fff”)},d.prototype.customColorMap={text:{selector:“.juicer-feed .feed-item .j-message, .juicer-feed .feed-item .j-message p”,attribute:“color”},{selector:“.juicer-feed a, .j-poster h3”,attribute:“color”},data:{selector:“.juicer-feed .j-meta a, .j-poster .j-date”,attribute:“color”},hover:{selector:“.juicer-feed a:hover”,attribute:“color”},post_background:{selector:“.juicer-feed li.feed-item”,attribute:“background-color”},feed_background:{selector:“.juicer-feed”,attribute:“background-color”}},d.prototype.customStyles=function(){var a;return a=“”,_u.each(this.colors,function(b){return function©{var d,e;return e=b.customColorMap,d=b.getCustomColor©,d?a+=e.selector+“ { ”e.attribute“: ”d“ !important; }”:void 0}}(this)),this.get(“custom_css”)&&(a+=this.get(“custom_css”)),a},d.prototype.updateColor=function(a,b){var c,d;return c=this.getColors(),d=a+“_color”,c=b,this.set(“colors”,c),this.set(d,b),this.trigger(“update:colors”)},d.prototype.resetColors=function(){return _u.each(this.colors,function(a){return function(b){return a.set(b+“_color”,null)}}(this))},d.prototype.urmMessage=function(){return this.get(“urm_message”)?this.get(“urm_message”):“Great Post! Can we use this on our Social Media Feed? www.juicer.io/”+this.get(“slug”)+“. Reply yes to agree. Thanks!”},d.prototype.shouldShowGallery=function(){var a;return a=this.get(“css”)||this.get(“style”),_u.contains(,a)},d.prototype.relations=,d}(JuicerBackbone.AssociatedModel)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Models.JuicerAd=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.defaults=function(){var a;return a=Juicer.Helpers.sample(this.messages()),{image:this.randomImage(),message:a,unformatted_message:a,poster_name:“Juicer”,poster_image:“static.juicer.io/small-square.png”,poster_url:“https://www.juicer.io”,external_created_at:new Date}},c.prototype.ad=!0,c.prototype.twitter=function(){return!1},c.prototype.gallery=function(){return!1},c.prototype.poster=function(){return!0},c.prototype.stickied=function(){return!1},c.prototype.sourceType=function(){return“Juicer”},c.prototype.postType=function(){return“image-post”},c.prototype.isVideo=function(){return!1},c.prototype.edited=function(){return!1},c.prototype.editClass=function(){return“”},c.prototype.userId=function(){return 1},c.prototype.lowerType=function(){return“juicer”},c.prototype.term=function(){return“juicer”},c.prototype.link=function(){return“www.juicer.io”},c.prototype.blogPost=function(){return!1},c.prototype.commentClass=function(){return“”},c.prototype.likeClass=function(){return“”},c.prototype.classes=function(){return“feed-item juicer image-post juicer-ad”},c.prototype.alt=function(){return“Embed Social Media Feeds on your website with Juicer!”},c.prototype.message=function(){return this.get(“message”)},c.prototype.posterImage=function(){return this.get(“poster_image”)},c.prototype.messages=function(){return[“Like this feed? Want one of your own? Visit <a href='www.juicer.io’>Juicer> to get your own free social media feed!”,“<a href='www.juicer.io’>Juicer> lets you easily create and embed social media feeds like this one on to your site for free!”,“Engage your users on social media with a <a href='www.juicer.io’>Juicer> feed on your website or blog for free.”,“This feed is Powered by <a href='static.juicer.io/ads/juicer-ads-”a“.svg”},c.prototype.noMeta=function(){return!0},c}(JuicerBackbone.Model)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Models.Location=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.urlRoot=“/api/locations”,c}(JuicerBackbone.Model)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Models.Moderated=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.url=function(){return“/api/feeds/”this.slug“/moderated”},c.prototype.initialize=function(a){return this.revalidating=!0,this.slug=a.slug,this.starting_at=a.starting_at,this.once(“sync”,this.startPolling)},c.prototype.moderated=!0,c}(Juicer.Models.Feed)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Models.PageView=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.urlRoot=function(){return Juicer.Constants.API_ROOT+“/api/page_views”},c}(JuicerBackbone.Model)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Models.Plan=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.urlRoot=“/api/plan”,c.prototype.downgradeDate=function(){var a;return a=new Date(this.get(“next_billing_date”)),strftime(“%B %-d, %Y”,a)},c.prototype.planCapital=function(){return this.capitalize(this.get(“plan”))},c.prototype.newPlanCapital=function(){return this.capitalize(this.get(“new_plan”))},c.prototype.capitalize=function(a){return _u.titleize(a)},c}(JuicerBackbone.Model)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Models.Post=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.urlRoot=“/api/posts”,c.prototype.restore=function(a){return this.callSubUrl(“/restore”)},c.prototype.reject=function(a){return this.callSubUrl(“/reject”)},c.prototype.stick=function(a){return this.callSubUrl(“/stick”)},c.prototype.unstick=function(a){return this.callSubUrl(“/unstick”)},c.prototype.urmRequest=function(a){return this.callSubUrl(“/urm”,a)},c.prototype.callSubUrl=function(a,b){var c,d;return null==b&&(b={}),c=this,a=c.url()+a,d={url:a,type:“POST”},_u.extend(d,b),(this.sync||JuicerBackbone.sync).call(this,null,this,d)},c.prototype.stickied=function(){return!!this.get(“position”)},c.prototype.edited=function(){return!!this.get(“edit”)},c.prototype.editClass=function(){return this.edited()?“j-edited”:“”},c.prototype.stickyClass=function(){return this.stickied()?“j-sticky”:“”},c.prototype.classes=function(){return“feed-item j-”+this.lowerType()+“ ”+this.postType()+“ ”+this.term()+“ ”+this.editClass()+“ ”+this.stickyClass()},c.prototype.sourceType=function(){return this.get(“source”).source()},c.prototype.blogPost=function(){return“Blog”===this.sourceType()},c.prototype.twitter=function(){return“Twitter”===this.sourceType()},c.prototype.tumblrTitle=function(){return“Tumblr”===this.sourceType()&&!!this.get(“source”).get(“options”)&&!!this.get(“source”).get(“options”).match(“title”)},c.prototype.gallery=function(){return!!this.get(“additional_photos”)&&this.get(“additional_photos”).length>0},c.prototype.postType=function(){return this.isVideo()?“j-video”:this.gallery()?“j-gallery”:this.get(“image”)?“image-post”:“words”},c.prototype.isVideo=function(){return _u.contains(,this.lowerType())||!!this.get(“video”)},c.prototype.termType=function(){return this.get(“source”).termType()},c.prototype.term=function(){return this.get(“source”).get(“term”)},c.prototype.userId=function(){return this.term()},c.prototype.lowerType=function(){return this.get(“source”).lowerSource()},c.prototype.likes=function(){return this.pluralize(this.get(“like_count”),“like”)},c.prototype.comments=function(){return this.pluralize(this.get(“comment_count”),“comment”)},c.prototype.poster=function(){return this.get(“poster_name”)||this.get(“poster_image”)},c.prototype.posterImage=function(){var a;return“facebook”===this.lowerType()?(this.shouldFetchFacebookImage()&&this.fetchFacebookImage(),a=this.isGraphImage()?“i.imgur.com/ZpcrI7L.jpg”:this.get(“poster_image”)):this.get(“poster_image”)},c.prototype.shouldFetchFacebookImage=function(){return this.isGraphImage()&&!_u.contains(this.get(“source”).fetchedFacebookPosters,this.get(“poster_id”))},c.prototype.isGraphImage=function(){return!!this.get(“poster_image”).match(“graph.facebook.com”)},c.prototype.fetchFacebookImage=function(){var a;return this.get(“source”).fetchedFacebookPosters.push(this.get(“poster_id”)),a=this.get(“poster_image”)+“?redirect=false”,jQuery.getJSON(a,function(a){return function(b){var c;return c=b.data.url,jQuery(“”).attr(“src”,c),a.get(“source”).fetchedFacebookPosters.splice(a.get(“source”).fetchedFacebookPosters.indexOf(a.get(“poster_id”)),1)}}(this))},c.prototype.pluralize=function(a,b){return 1===a?a+“ ”b:a“ ”+_u.pluralize(b)},c.prototype.link=function(){switch(this.lowerType()){case“facebook”:return“reviews”===this.termType()?“www.facebook.com/”+this.term()+“/reviews”:“https://www.facebook.com/”+this.get(“poster_id”)+“/posts/”+this.get(“external_id”);case“twitter”:return“https://twitter.com/”+this.get(“poster_name”)+“/status/”+this.get(“external_id”);case“instagram”:return“https://www.instagram.com/p/”+this.get(“external_id”)+“/”;case“youtube”:return“https://www.youtube.com/watch?v=”+this.get(“external_id”);case“googleplus”:return this.get(“poster_url”)+“/posts/”+this.get(“external_id”);case“tumblr”:return“”+this.get(“poster_name”)+“.tumblr.com/post/”+this.get(“external_id”);case“pinterest”:return“http://www.pinterest.com/pin/”+this.get(“external_id”);case“vimeo”:return“https://vimeo.com/”+this.get(“external_id”);case“linkedin”:return“https://www.linkedin.com/company/”+this.term();case“soundcloud”:return this.get(“description”);case“slack”:return this.get(“poster_url”);case“spotify”:return“open.spotify.com/track/”+this.get(“external_id”);case“blog”:return this.blogLink();case“giphy”:return this.get(“external”);default:return this.get(“external_id”)}},c.prototype.blogLink=function(){return this.get(“external”)||this.get(“external_id”)},c.prototype.parseBlogUrl=function(){var a;return a=this.term().match(/^https?://(+)(?:[/?#]|$)/i),a&&a?a:void 0},c.prototype.termLink=function(){switch(this.lowerType()){case“twitter”:return“twitter.com/hashtag/”+this.term();case“instagram”:return this.link();case“tumblr”:return“tumblr.com/tagged/”+this.term();case“vine”:return“https://vine.co/tags/”+this.term();case“facebook”:return“https://www.facebook.com/hashtag/”+this.term();case“youtube”:return“https://www.youtube.com/results?search_query=%23”+this.term();case“tumblr”:return“https://www.tumblr.com/search/”+this.term();case“googleplus”:return“https://plus.google.com/s/%23”+this.term();default:return this.get(“external_id”)}},c.prototype.commentClass=function(){switch(this.lowerType()){case“twitter”:return“retweets”;case“pinterest”:return“repins”;default:return“comments”}},c.prototype.likeClass=function(){switch(this.lowerType()){case“twitter”:return“heart”;case“instagram”:return“heart”;case“tumblr”:return“heart”;case“youtube”:return“views”;default:return“likes”}},c.prototype.likeVerb=function(){switch(this.lowerType()){case“twitter”:return“favorites”;default:return“likes”}},c.prototype.alt=function(){return this.get(“accessibility_caption”)||“Photo from ”+this.get(“source”).displayName()+“ on ”+this.sourceType()+“ on ”+this.get(“poster_name”)+“ at ”+this.postedDate()},c.prototype.postedDate=function(){return Juicer.Helpers.fullDate(this.get(“external_created_at”))},c.prototype.noMeta=function(){return _u.contains(,this.sourceType())},c.prototype.facebookShare=function(){var a;return a=“www.facebook.com/dialog/feed?app_id=”Juicer.Constants.FACEBOOK_APP_ID“&display=popup&link=”+this.currentUrl(),this.status()&&(a+=“&description=”+this.status()),this.shouldHaveFacebookImage()&&(a+=“&picture=”+this.get(“image”)),a},c.prototype.twitterShare=function(){var a;return a=“twitter.com/intent/tweet?text=”+this.twitterStatus(),this.shouldIncludeLink()&&(a+=“&url=”+this.currentUrl()),a},c.prototype.googlePlusShare=function(){return“https://plus.google.com/share?url=”+this.currentUrl()},c.prototype.pinterestShare=function(){return“https://pinterest.com/pin/create/button/?url=”+this.currentUrl()+“&media=”+this.encodedImage()+“&description=”+this.status()},c.prototype.linkedInShare=function(){return“https://www.linkedin.com/shareArticle?url=”+this.currentUrl()+“&title=”+this.status()},c.prototype.emailShare=function(){var a,b,c;return c=“Check out my ”+this.sourceType()+“ post!”,a=this.status().length>3?.join(“ - ”):this.currentUrl(),b=jQuery(window).width()>1024?“”:“test@example.com”,“b“?subject=”c“&body=”+a},c.prototype.shouldHaveFacebookImage=function(){return“facebook”!==this.lowerType()&&!!this.get(“image”)},c.prototype.encodedImage=function(){return encodeURIComponent(this.get(“image”))},c.prototype.message=function(){return this.blogPost()||this.tumblrTitle()?“<strong class='j-title'>”+this.get(“message”)+“</strong> ”+this.get(“excerpt”):this.get(“excerpt”)?this.get(“excerpt”):this.get(“message”)},c.prototype.fullMessage=function(){return this.blogPost()||this.tumblrTitle()?“<strong class='j-title'>”+this.get(“message”)+“</strong> ”+this.get(“description”):this.get(“message”)},c.prototype.stripped=function(){return null!=this.get(“unformatted_message”)?this.get(“unformatted_message”).replace(/<(?:.|n)*?>/gm,“ ”).replace(this.emojiRegex,“”):“”},c.prototype.emojiRegex=/(|uD83C|uD83D|[u2694-u2697]|uD83E)/g,c.prototype.status=function(){return encodeURIComponent(this.stripped())},c.prototype.twitterStatus=function(){return this.stripped().length<=140?this.status():encodeURIComponent(this.stripped().substring(0,137)+“…”)},c.prototype.shouldIncludeLink=function(){return(this.twitterStatus()+this.currentUrl).length<=140},c.prototype.currentUrl=function(){return window.location.href},c.prototype.urmEligible=function(){return _u.contains(this.urmSources,this.sourceType())},c.prototype.urmSources=,c.prototype.urmSocialConnected=function(a){return a.get(“social_accounts”).findWhere({provider:this.lowerType()})},c.prototype.replyIntent=function(){return“twitter.com/intent/tweet?in_reply_to=”+this.get(“external_id”)},c.prototype.retweetIntent=function(){return“https://twitter.com/intent/retweet?tweet_id=”+this.get(“external_id”)},c.prototype.likeIntent=function(){return“https://twitter.com/intent/like?tweet_id=”+this.get(“external_id”)},c.prototype.relations=[{type:JuicerBackbone.One,key:“source”,relatedModel:“Juicer.Models.Source”}],c}(JuicerBackbone.AssociatedModel)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Models.Source=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.urlRoot=“/api/sources”,c.prototype.toJSON=function(){return{source:_u.clone(this.attributes)}},c.prototype.source=function(){return this.get(“source”)},c.prototype.termType=function(){return this.get(“term_type”)},c.prototype.lowerSource=function(){return this.source().toLowerCase()},c.prototype.allowed=function(){return null!=this.get(“allowed”)?this.get(“allowed”):“”},c.prototype.disallowed=function(){return null!=this.get(“disallowed”)?this.get(“disallowed”):“”},c.prototype.fetchedFacebookPosters=[],c.prototype.title=function(){switch(this.source()){case“Blog”:return“Add an RSS feed”;case“DeviantArt”:return“Add a DeviantArt Users' Gallery”;case“Facebook”:return“Add a Facebook Business Page”;case“Flickr”:return“Add Flickr Users' Photos”;case“Giphy”:return“Add a Giphy Search Term”;case“GooglePlus”:return“Add a Google+ Page”;case“Hashtag”:return“Choose a type of Hashtag”;case“Instagram”:return“Add an Instagram Account”;case“LinkedIn”:return“Add a LinkedIn Company”;case“Pinterest”:return“Add a Pinterest Users' Pins”;case“Slack”:return“Add a Slack Channel”;case“Soundcloud”:return“Add a Soundcloud Account”;case“Spotify”:return“Add a Spotify Musical Artist”;case“Tumblr”:return“Add a Tumblr Blog”;case“Twitter”:return“Add a Twitter Account”;case“Vimeo”:return“Add a Vimeo Users' Videos”;case“Yelp”:return“Add a Yelp Businesses' Reviews”;case“YouTube”:return“Add a YouTube Channel”}},c.prototype.label=function(){switch(this.source()){case“Blog”:return“RSS Feed URL: ”;case“Facebook”:return“www.facebook.com/”;case“Flickr”:return“https://www.flickr.com/photos/”;case“Giphy”:return“#”;case“GooglePlus”:return“https://plus.google.com/”;case“Instagram”:return“https://www.instagram.com/”;case“LinkedIn”:return“https://www.linkedin.com/company/”;case“Pinterest”:return“https://www.pinterest.com/”;case“Slack”:return“#”;case“Soundcloud”:return“https://soundcloud.com/”;case“Spotify”:return“https://spotify.com/artist/”;case“Twitter”:return“https://www.twitter.com/”;case“Vimeo”:return“http://vimeo.com/”;case“Yelp”:return“http://www.yelp.com/biz/”;case“YouTube”:return“https://www.youtube.com/user/”}},c.prototype.placeholder=function(){switch(this.source()){case“Blog”:return“RSS or Atom or FeedBurner URL”;case“DeviantArt”:return“DeviantArt User URL”;case“Facebook”:return“Facebook Page Vanity URL”;case“Flickr”:return“Flickr Username”;case“Giphy”:return“Search Term”;case“GooglePlus”:return“Google+ Username or User ID Number”;case“Instagram”:return“Instagram Username”;case“LinkedIn”:return“LinkedIn Company ID Number”;case“Pinterest”:return“Pinterest Username”;case“Slack”:return“Slack Channel Name”;case“Soundcloud”:return“Soundcloud Username”;case“Spotify”:return“Artist Name”;case“Tumblr”:return“Tumblr Username”;case“Twitter”:return“Twitter Username”;case“Vimeo”:return“Vimeo Username”;case“Yelp”:return“Business Name URL”;case“YouTube”:return“YouTube Username or Channel ID”}},c.prototype.typeSymbol=function(){return“hashtag”===this.get(“term_type”)?“#”:“location”===this.get(“term_type”)?“◉”:“@”},c.prototype.displayTerm=function(){var a;return this.get(“name”)&&(a=this.get(“name”)),a||(a=this.get(“term”)),a},c.prototype.displayName=function(){return“”+this.typeSymbol()+this.displayTerm()},c.prototype.hashtags=function(){return _u.contains(this.hashtagSupporters,this.source())},c.prototype.needsLogin=function(){return _u.contains(this.requiresLogin,this.source())},c.prototype.manual=function(){return _u.contains(Juicer.Constants.CAN_ADD_MANUAL,this.source())},c.prototype.location=function(){return _u.contains(this.hasLocation,this.source())},c.prototype.hashtagSupporters=,c.prototype.requiresLogin=,c.prototype.hasLocation=,c.prototype.alternateNames=,c.prototype.filterClass=function(a,b,c){var d,e,f;return null==b&&(b=null),null==c&&(c=!1),f=“j-”+this.lowerSource().replace(/@|#/,“”),e=f,c&&(e+=“ ”f“-text ”f“-hover j-social-icon”),this.all()&&(e=“all j-social-icon”),d=e,“Grouped Terms”===a&&(d+=“ grouped”),b&&(d+=“ highlight”),d},c.prototype.all=function(){return“all”===this.lowerSource()},c.prototype.filter=function(a){if(this.all())return null;switch(a){case“Social Type”:return this.source();case“Social Account”:return this.get(“id”);case“Grouped Terms”:return this.get(“term”)}},c.prototype.filterDisplay=function(a){if(this.all())return“All”;switch(a){case“Social Type”:return this.source();case“Social Account”:return this.displayName();case“Grouped Terms”:return this.displayName()}},c.prototype.usernameExample=function(){return this.usernameExamples},c.prototype.usernameExamples={facebook:{name:“REI”,“https://www.facebook.com/rei”,formattedLink:“https://www.facebook.com/ class='example-link-highlight'>rei</span>”},twitter:{name:“Adult Swim”,“https://twitter.com/adultswim”,formattedLink:“https://twitter.com/ class='example-link-highlight'>adultswim</span>”},instagram:{name:“Humans of New York”,“https://www.instagram.com/humansofny”,formattedLink:“https://www.instagram.com/ class='example-link-highlight'>humansofny</span>”},youtube:{name:“CGP Grey”,“https://www.youtube.com/user/CGPGrey”,formattedLink:“https://www.youtube.com/user/ class='example-link-highlight'>CGPGrey</span>”},googleplus:{name:“Felicia Day”,“https://plus.google.com/+FeliciaDay”,formattedLink:“https://plus.google.com/ class='example-link-highlight'>+FeliciaDay</span>”},tumblr:{name:“A Well Traveled Woman”,“http://awelltraveledwoman.tumblr.com”,formattedLink:“http:// class='example-link-highlight'>awelltraveledwoman</span>.tumblr.com”},pinterest:{name:“Joy Cho / Oh Joy!”,“https://www.pinterest.com/ohjoy”,formattedLink:“https://www.pinterest.com/ class='example-link-highlight'>ohjoy</span>”},blog:{name:“Wired”,“https://www.wired.com/feed/rss”,formattedLink:“ class='example-link-highlight'>www.wired.com/feed/rss”},soundcloud:{name:“Pitchform”,link:“https://soundcloud.com/pitchfork”,formattedLink:“https://soundcloud.com/ class='example-link-highlight'>pitchfork</span>”},spotify:{name:“Radiohead”,“https://www.spotify.com/artist/Radiohead”,formattedLink:“https://www.spotify.com/artist/ class='example-link-highlight'>Radiohead</span>”},linkedin:{name:“Juicer”,“https://www.linkedin.com/company/juicer”,formattedLink:“https://www.linkedin.com/company/ class='example-link-highlight'>juicer</span>”},flickr:{name:“Stephan Gürtler”,“https://www.flickr.com/photos/stephanna-g”,formattedLink:“https://www.flickr.com/photos/ class='example-link-highlight'>stephanna-g</span>”},vimeo:{name:“Hiro Murai”,“https://vimeo.com/hiromurai”,formattedLink:“https://vimeo.com/ class='example-link-highlight'>hiromurai</span>”},yelp:{name:“Microsoft”,“https://www.yelp.com/biz/microsoft-mountain-view”,formattedLink:“https://www.yelp.com/biz/ class='example-link-highlight'>microsoft-mountain-view</span>”}},c}(JuicerBackbone.AssociatedModel)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Models.User=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.relations=,c}(JuicerBackbone.AssociatedModel)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Models.FeedValidation=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.validation={name:{required:!0}},c}(JuicerBackbone.Model)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Models.ContactMessageValidation=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.validation={name:{required:!0},email:{required:!0,pattern:“email”},message:{required:!0}},c}(JuicerBackbone.Model)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Models.UserUpdateValidation=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.initialize=function(a){return this.email=a.email,this.noPassword=a.noPassword},c.prototype.validation={email:{required:!0},current_password:{required:function(){return this.noPassword?!1:this.email!==this.get(“email”)},minLength:8},password:{minLength:8,required:!1},current_password_two:{minLength:8,required:function(){return!!this.get(“password”)}}},c}(JuicerBackbone.Model)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Models.UserValidation=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.validation={email:{required:!0,pattern:“email”},password:{required:!0,minLength:8}},c}(JuicerBackbone.Model)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Collections.FacebookResults=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.initialize=function(a){return this.type=a.type},c.prototype.url=function(){return“/api/facebook_results/”+this.type},c}(JuicerBackbone.Collection)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Collections.Posts=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.paginatingAttributes=,c.prototype.model=Juicer.Models.Post,c.prototype.parse=function(a){return _u.each(this.paginatingAttributes,function(b){return function©{return b=a}}(this)),c.__super__.parse.call(this,a.items)},c}(JuicerBackbone.Collection)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Collections.SocialAccounts=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.url=“/api/social_accounts”,c.prototype.socialAccount=function(a){return this.findWhere({provider:a})},c}(JuicerBackbone.Collection)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Collections.Users=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.model=Juicer.Models.User,c.prototype.url=“/api/users”,c}(JuicerBackbone.Collection)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.AdminDowngrade=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.template=JST.admin_downgrade,c.prototype.initialize=function(a){return this.userId=a.userId,this.csrf=$(‘meta').attr(“content”)},c.prototype.events={click:“openOverlay”},c.prototype.openOverlay=function(a){var b;return a.preventDefault(),b=$(a.target).attr(“href”),this.overlay=new Juicer.Views.Overlay({content:this.template({userId:this.userId,reasons:this.reasons,csrf:this.csrf,action:b}),element:“body”,width:“50%”}),this.overlay.render()},c.prototype.reasons=[“Temporary campaign/event is over”,“Switching to another service”,“Too expensive”,“Too difficult to use”,“They had technical issues”,“Not satisfied with the support team”,“Other”],c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.AdminUsers=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.events={“click .toggle-favorite”:“toggleFavorite”},c.prototype.toggleFavorite=function(a){var b,c;return a.preventDefault(),b=$(a.target),c=b.data(“id”),jQuery.get(“/admin/users/”c“/favorite”),“Favorite”===b.html()?b.html(“Unfavorite”):b.html(“Favorite”)},c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.AnalyticsDateRange=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.template=JST.analytics_date_range,c.prototype.events={“click .date-range”:“openDateRangeOverlay”},c.prototype.openDateRangeOverlay=function(a){var b,c;return console.log(“open”),c=$(a.target),b=this.template({start:c.data(“start”),end:c.data(“end”)}),this.overlay=new Juicer.Views.Overlay({content:b,element:this.el,width:“50%”}),this.overlay.render()},c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.BrokenImage=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.initialize=function(a){return null==a&&(a={}),this.model=a.model,this.handleBrokenImages()},c.prototype.handleBrokenImages=function(){ return this.$(“img.j-content-image”).on(“error”,function(a){return function(b){var c;return c=jQuery(b.target).parents(“.feed-item”),c.length>0?a.handleBrokenImage©:void 0}}(this)),this.$(“img.j-content-image”).on(“load”,function(a){return function(b){var c,d;return d=jQuery(b.target),b.target.naturalWidth<20?(c=d.parents(“.feed-item”),a.handleBrokenImage©):void 0}}(this)),this.$(“.j-poster img”).on(“error”,function(a){return function(b){return console.log(“Hiding broken profile image.”),“polaroid”===a.model.get(“css”)?(jQuery(b.target).parents(“.j-post-container”).addClass(“no-poster”),jQuery(b.target).parents(“.j-poster”).hide()):jQuery(b.target).hide()}}(this)),this.$(“img.j-content-image”).removeClass(“j-content-image”)},c.prototype.handleBrokenImage=function(a){return this.model.get(“photos”)&&this.model.get(“admin”)?void 0:a.find(“.j-message”).length>0&&this.model.get(“admin”)?(a.removeClass(“image-post”).addClass(“words”),a.find(“.j-image”).hide(),console.log(“Juicer: post with id ”+a.data(“id”)+“ has a broken image. Converting to a text post.”)):(a.hide(),console.log(“Juicer: post with id ”+a.data(“id”)+“ has a broken image. Hiding it.”))},c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.Churn=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.template=JST.churn,c.prototype.initialize=function(){return null==this.el?!1:(this.overlay=new Juicer.Views.Overlay({content:this.template(),element:this.el,width:“50%”}),this.overlay.render())},c.prototype.events={“click .delete”:“closeOverlay”},c.prototype.closeOverlay=function(){return this.overlay.removeView()},c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.BlogShow=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.el=window,c.prototype.initialize=function(){return this.loaded=!1,this.triggerPoint=$(“#disqus_thread”).offset().top},c.prototype.events=function(){return{scroll:“lazyLoadDisqus”}},c.prototype.lazyLoadDisqus=_u.debounce(function(){return this.checkScroll()},300),c.prototype.checkScroll=function(){return this.scrollPoint()>this.triggerPoint&&!this.loaded?this.loadDisqus():void 0},c.prototype.loadDisqus=function(){var a,b;return this.loaded=!0,a=“juicerio”,b=document.createElement(“script”),b.type=“text/javascript”,b.async=!0,b.src=“//”a“.disqus.com/embed.js”,(document.getElementsByTagName(“head”)||document.getElementsByTagName(“body”)).appendChild(b)},c.prototype.scrollPoint=function(){return this.$el.scrollTop()+this.$el.height()},c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,b){return function(){return a.apply(b,arguments)}},b=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a=b);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},c={}.hasOwnProperty;Juicer.Views.DocsSidebar=function©{function d(){return this.determineLeft=a(this.determineLeft,this),this.checkSidebar=a(this.checkSidebar,this),d.__super__.constructor.apply(this,arguments)}return b(d,c),d.prototype.el=window,d.prototype.initialize=function(a){return this.sidebar=jQuery(“.docs-sidebar”),this.sibling=jQuery(“.docs-content”),this.sidebarFooter=!1,this.sidebarHeight=this.sidebar.height(),this.$el.on(“scroll”,this.checkSidebar),this.$el.on(“resize”,_u.throttle(this.determineLeft,100)),this.topPadding=20,this.offset=this.sidebar.offset().top-this.topPadding,this.checkSidebar()},d.prototype.checkSidebar=function(){return this.scrolledToBottom()?(this.sidebarFooter||this.sidebar.css(this.absolute()),this.sidebarFooter=!0):this.scrollPoint()?(this.sidebar.css(this.fixed()),this.sidebarFooter=!1):(this.sidebar.removeAttr(“style”),this.sidebarFooter=!1)},d.prototype.scrollPoint=function(){return this.offset<=this.$el.scrollTop()},d.prototype.scrolledToBottom=function(){return this.$el.scrollTop()>=$(document).height()-this.$el.height()-$(“.footer”).height()-(this.$el.height()-this.sidebarHeight)},d.prototype.fixed=function(){return{position:“fixed”,top:this.topPadding,left:this.sidebar.offset().left}},d.prototype.absolute=function(){return{position:“absolute”,left:0,bottom:0,top:“auto”}},d.prototype.determineLeft=function(){return this.scrollPoint()?this.sidebar.css({left:this.sibling.offset().left}):!1},d}(JuicerBackbone.View)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.DowngradeOverlay=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.template=JST.downgrade_overlay,c.prototype.initialize=function(){return this.$el.data(“downgrade-at”)?(this.plan=this.$el.data(“plan”),this.downgradeAt=this.$el.data(“downgrade-at”),this.overlay=new Juicer.Views.Overlay({content:this.template({plan:this.plan,downgradeAt:this.downgradeAt}),element:this.el,width:“50%”}),this.overlay.render()):!1},c.prototype.events={“click .delete”:“closeOverlay”},c.prototype.closeOverlay=function(){return this.overlay.removeView()},c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,b){return function(){return a.apply(b,arguments)}},b=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a=b);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},c={}.hasOwnProperty;Juicer.Views.Calculator=function©{function d(){return this.updateValues=a(this.updateValues,this),this.render=a(this.render,this),d.__super__.constructor.apply(this,arguments)}return b(d,c),d.prototype.template=JST,d.prototype.initialize=function(){return this.model=new Juicer.Models.Estimate,this.model.on(“change”,this.updateValues),this.render()},d.prototype.render=function(){return this.$el.html(this.template({model:this.model}))},d.prototype.updateValues=function(){return this.$(“.calculator-sources”).html(this.model.sources()),this.$(“.calculator-frequency”).html(this.model.frequencyInWords()),this.$(“.calculator-price”).html(this.model.priceString()),this.$(“.calculator-price-label”).html(this.model.priceLabel())},d.prototype.events={“change input”:“updateModel”,“input input”:“updateModel”},d.prototype.updateModel=function(a){var b;return b=$(a.target),this.model.set(b.data(“attribute”),b.val())},d}(JuicerBackbone.View)}.call(this),function(){var a=function(a,b){return function(){return a.apply(b,arguments)}},b=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a=b);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},c={}.hasOwnProperty;Juicer.Views.Enterprise=function©{function d(){return this.close=a(this.close,this),this.append=a(this.append,this),this.render=a(this.render,this),d.__super__.constructor.apply(this,arguments)}return b(d,c),d.prototype.template=JST,d.prototype.initialize=function(a){return this.model=new Juicer.Models.Enterprise({slug:a.slug}),this.model.on(“sync”,this.render),this.model.fetch({error:function(){return alert(“Something went wrong. Please try again.”)}})},d.prototype.render=function(){return this.model.get(“current_page”)>1&&this.model.get(“new_feeds”)?this.append():(this.$el.html(this.template({model:this.model})),this.renderFeeds(this.model.get(“feeds”)))},d.prototype.renderFeeds=function(a){return this.feeds=new Juicer.Views.EnterpriseFeeds({el:“ul.feeds”,collection:a,model:this.model}).render()},d.prototype.append=function(){return this.feeds.append()},d.prototype.events={“keyup input”:_u.debounce(function(a){return this.search(a)},500),“search input”:“search”},d.prototype.search=function(a){var b;return a.preventDefault(),this.model.query=$(a.target).val(),b=this.model.get(“feeds”),this.model.fetch()},d.prototype.close=function(){return this.model.off(“sync”),this.feeds.close()},d}(JuicerBackbone.View),Juicer.Views.EnterpriseFeeds=function©{function d(){return this.close=a(this.close,this),this.loadNextPage=a(this.loadNextPage,this),d.__super__.constructor.apply(this,arguments)}return b(d,c),d.prototype.render=function(){return this.addToSubViews(this.collection.models),this.model.moreFeeds()&&this.addLoadMore(),this.$el.html(this.subviews),this},d.prototype.addToSubViews=function(a){return this.subviews||(this.subviews=[]),_u.each(a,function(a){return function(b){var c;return c=new Juicer.Views.EnterpriseFeed({model:b,account:a.model}).render(),a.subviews.push(c.el)}}(this))},d.prototype.addLoadMore=function(){return this.loadMore=new Juicer.Views.EnterpriseLoadMore,this.loadMore.on(“next:page:clicked”,this.loadNextPage),this.loadMore.render(),this.subviews.push(this.loadMore.el)},d.prototype.removeLoadMore=function(){var a;return this.loadMore.off(“next:page:clicked”),a=this.subviews.indexOf(this.loadMore.el),this.subviews.splice(a,1),this.loadMore.remove(),a},d.prototype.loadNextPage=function(){return this.model.nextPage(),this.model.fetch()},d.prototype.append=function(){var a;return a=this.removeLoadMore(),this.addToSubViews(this.model.get(“new_feeds”).models),this.model.moreFeeds()&&this.addLoadMore(),this.$el.append(this.subviews.slice(a))},d.prototype.close=function(){return _u.each(this.subviews,function(a){return function(a){return a.remove()}}(this)),this.loadMore&&this.loadMore.off(“next:page:clicked”),this.$el.empty().off(),this.stopListening(),this},d}(JuicerBackbone.View),Juicer.Views.EnterpriseFeed=function(a){function c(){return c.__super__.constructor.apply(this,arguments)}return b(c,a),c.prototype.template=JST,c.prototype.createAssignmentForm=JST,c.prototype.tagName=“li”,c.prototype.className=“border bg-white p-25 relative mb-20 tal”,c.prototype.initialize=function(a){return this.account=a.account},c.prototype.render=function(){return this.$el.html(this.template({model:this.model,assignments:this.model.get(“assignments”).models,sources:this.model.get(“sources”).models,account:this.account})),this},c.prototype.events={“click .delete-assignment”:“deleteAssignment”,“click .add-assignment”:“openAssignmentForm”,“click .fetch-all”:“fetchAllPosts”,“submit .new-assignment”:“createAssignment”},c.prototype.deleteAssignment=function(a){var b,c;return a.preventDefault(),c=$(a.target).parents(“.enterprise-user-assignment”),Juicer.Helpers.confirm(“Are you sure you want to remote this user from this feed?”)?(b=new Juicer.Models.Assignment({id:$(a.target).data(“id”)}),b.destroy({success:function(a){return function(){return c.remove()}}(this),error:function(){return alert(“Something went wrong!”)}})):void 0},c.prototype.openAssignmentForm=function(a){var b;return b=new Juicer.Views.Overlay({content:this.createAssignmentForm({model:this.model,csrf:this.csrf,account:this.account}),width:“35%”,element:this.el}),b.render()},c.prototype.createAssignment=function(a){var b,c;return a.preventDefault(),c=$(a.target),b=c.serializeHash(),b.email?(this.assignment=new Juicer.Models.Assignment(b),this.assignment.save(null,{success:function(a){return function(b,c){return a.model.get(“assignments”).add(a.assignment),a.render()}}(this),error:function(){return alert(“Something went wrong!”)}})):!1},c.prototype.fetchAllPosts=function(a){return Juicer.Helpers.confirm(“Fetching all posts for this feed can take 10+ minutes. Please be patient and check back later.”)?(a.preventDefault(),this.model.fetchAll(),$(a.target).replaceWith(“Fetching all posts.”)):!1},c.prototype.close=function(){return this.$el.remove()},c}(JuicerBackbone.View),Juicer.Views.EnterpriseLoadMore=function(a){function c(){return c.__super__.constructor.apply(this,arguments)}return b(c,a),c.prototype.tagName=“a”,c.prototype.className=“load-more j-button mt-30”,c.prototype.render=function(){return this.$el.text(“Load More Feeds”),this},c.prototype.events={click:“triggerClick”},c.prototype.triggerClick=function(){return this.trigger(“next:page:clicked”)},c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.EnterpriseUsers=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.template=JST,c.prototype.inviteAdminForm=JST,c.prototype.initialize=function(a){return this.model=new Juicer.Models.EnterpriseUsers({slug:a.slug}),this.model.fetch({success:function(a){return function(){return a.render()}}(this),error:function(){return alert(“uh oh something went wrong”)}})},c.prototype.render=function(){return this.$el.html(this.template({model:this.model})),this.renderAdmins(),this.renderUsers()},c.prototype.renderAdmins=function(){var a;return a=[],_u.each(this.model.get(“admins”).models,function(b){return function©{return a.push(new Juicer.Views.EnterpriseAdmin({model:c,account:b.model}).render())}}(this)),this.$(“.enterprise-admins”).html(a)},c.prototype.renderUsers=function(){var a;return a=[],_u.each(this.model.get(“users”).models,function(b){return function©{return a.push(new Juicer.Views.EnterpriseUser({model:c,account:b.model}).render())}}(this)),this.$(“.enterprise-users”).html(a)},c.prototype.events={“click a.new-enterprise-admin”:“openNewAdminOverlay”},c.prototype.openNewAdminOverlay=function(a){var b;return a.preventDefault(),this.csrf=$(’meta').attr(“content”),b=new Juicer.Views.Overlay({content:this.inviteAdminForm({model:this.model,csrf:this.csrf}),width:“35%”}),b.render()},c}(JuicerBackbone.View),Juicer.Views.EnterpriseAdmin=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.template=JST,c.prototype.tagName=“li”,c.prototype.className=“enterprise-user”,c.prototype.initialize=function(a){return this.account=a.account},c.prototype.render=function(){return this.$el.html(this.template({model:this.model,account:this.account}))},c}(JuicerBackbone.View),Juicer.Views.EnterpriseUser=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.template=JST,c.prototype.tagName=“li”,c.prototype.className=“bg-white border mb-25”,c.prototype.initialize=function(a){return this.account=a.account},c.prototype.render=function(){return this.$el.html(this.template({model:this.model,account:this.account}))},c.prototype.events={“click .delete-assignment”:“deleteAssignment”},c.prototype.deleteAssignment=function(a){var b,c;return a.preventDefault(),c=$(a.target).parents(“.enterprise-user-assignment”),Juicer.Helpers.confirm(“Are you sure you want to remote this user from this feed?”)?(b=new Juicer.Models.Assignment({id:$(a.target).data(“id”)}),b.destroy({success:function(a){return function(){return c.remove()}}(this),error:function(){return alert(“Something went wrong!”)}})):void 0},c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.EnterpriseWhiteLabel=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.template=JST,c.prototype.initialize=function(a){return this.model=new Juicer.Models.Enterprise({slug:a.slug}),this.model.fetch({success:function(a){return function(){return a.render()}}(this),error:function(){return alert(“uh oh something went wrong”)}})},c.prototype.render=function(){return this.$el.html(this.template({model:this.model}))},c.prototype.events={“submit .white-label-url”:“updateAccount”},c.prototype.updateAccount=function(a){var b,c;return a.preventDefault(),c=$(a.target),c.find(“input”).attr(“disabled”,“disabled”).val(“Loading…”),b=JuicerBackbone.Syphon.serialize©,this.model.set(b),this.model.save(null,{success:function(a){return function(){return a.render()}}(this)})},c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.Errors=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.template=JST.errors,c.prototype.initialize=function(a){var b,c,d;try{this.errors=$.parseJSON(a.errors.responseText).errors}catch(e){c=e,d=a&&a.errors&&a.errors.statusText||“”,b=d.match(/(timeout|unavailable)/i)?'The request timed out. Please try again by pressing “Create Source” below.':“An unspecified error occurred.”,this.errors={errorMessage:}}return this.$(“.errors, .j-loading, .please-wait”).remove(),this.$(“input”).show(),this.$el.prepend(this.template({errors:this.errors}))},c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,b){return function(){return a.apply(b,arguments)}},b=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a=b);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},c={}.hasOwnProperty,d=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this===a)return b;return-1};Juicer.Views.Feed=function©{function e(){return this.reRender=a(this.reRender,this),this.stopVideo=a(this.stopVideo,this),e.__super__.constructor.apply(this,arguments)}return b(e,c),e.prototype.template=JST.feed,e.prototype.referral=JST,e.prototype.loading=JST,e.prototype.trackedPlans=,e.prototype.permittedOptions=,e.prototype.initialize=function(a){return this.userOptions=_u.pick(this.$el.data(),this.permittedOptions),this.userOptions=this.setDefaultOptions(this.userOptions),this.showLoader(!1,!0),this.model=a.model||this.newModel(),this.admin=a.admin||!1,this.tracked=!1,this.model.on(“new-posts”,this.reRender),this.model.on(“showLoader”,function(a){return function(){return a.showLoader(!0)}}(this))},e.prototype.setDefaultOptions=function(a){return a.slug=a.feedId,a.css=a.style,a.per||(a.per=100),a.page||(a.page=1),null!=a.overlay&&(a.overlay=!!a.overlay),a},e.prototype.newModel=function(){var a;return a=,new Juicer.Models.Feed(_u.pick(this.userOptions,a))},e.prototype.events=function(){return{“click li.feed-item”:“triggerEvent”,“click ul.j-filters li”:“filterFeed”,“click ul.j-display-filters li”:“filterFeed”,“click .j-paginate”:“appendNextPage”}},e.prototype.render=function(){return null!=this.model.get(“posts”)?this.renderFeed():this.model.fetch({success:function(a){return function(){return a.renderFeed()}}(this),error:function(a){return function(){return console.log(“Juicer Problem”)}}(this)}),this},e.prototype.renderFeed=function(){return this.hideLoader(),this.setUserOptionsFromModel(),this.model.paid()||this.addJuicerAds(),this.setDimensions(),this.determineBrowser(),this.model.widget()?this.renderWidget():this.model.slider()?this.renderSlider():this.model.livingWall()?this.renderLivingWall():this.renderFeedList(),this.setClass(),this.model.hasInterval()||this.handleBrokenImages(),this.$el.addClass(“loaded”),this.shouldTrack()&&this.trackPageView(),this.runAfter(“load”),this},e.prototype.setUserOptionsFromModel=function(){return _u.each(this.modelAttrs,function(a){return function(b){return null==a.userOptions&&0!==a.userOptions?a.userOptions=a.model.get(b):void 0}}(this)),null==this.userOptions.gutter&&(this.userOptions.gutter=this.defaultGutter()),this.userOptions},e.prototype.modelAttrs=,e.prototype.defaultGutter=function(){return this.noGutter()?0:20},e.prototype.noGutter=function(){return _u.contains(,this.model.get(“css”))},e.prototype.determineBrowser=function(){var a,b;return a=navigator.userAgent.match(/MSIE|Trident|Edge/)?“j-ie”:“j-modern”,b=navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i)?“j-mobile”:“j-desktop”,this.$el.addClass(a).addClass(b)},e.prototype.runAfter=function(a){return null==a&&(a=“load”),this.afterFunction=new Function(“event”,this.userOptions.after),this.afterFunction(a)},e.prototype.showLoader=function(a,b){return null==a&&(a=!1),null==b&&(b=!1),this.$el.append(this.loading({container:a,wrapper:b}))},e.prototype.hideLoader=function(){return this.$(“.j-loading-container, .j-loading-wrapper, .j-loading”).remove()},e.prototype.renderWidget=function(){return this.widget=new Juicer.Views.Widget(this.feedOptions())},e.prototype.renderSlider=function(){return this.handleReferral(),this.slider=new Juicer.Views.Slider(this.feedOptions()).render(),this.slider.on(“slide”,function(a){return function(){return a.stopCurrentlyPlaying()}}(this))},e.prototype.renderLivingWall=function(){return this.livingWall=new Juicer.Views.LivingWall(this.feedOptions()).render(),this.handleReferral()},e.prototype.feedOptions=function(){return{el:this.el,model:this.model,admin:this.admin,interval:this.userOptions.interval,columns:this.userOptions.columns,gutter:this.userOptions.gutter,equal:this.userOptions.equal}},e.prototype.renderFeedList=function(){return this.$el.append(this.template({feed:this.model,admin:this.admin,filter:this.currentFilter()})),this.handleReferral(),this.infiniteScroll=new Juicer.Views.InfiniteScroll({container:this.$el,model:this.model,admin:this.admin,pages:this.userOptions.pages,template:JST.infinite_scroll}),this.model.isGrid()&&this.setupGrid(),this.model.classic()&&this.setGutterOnClassic(),this.infiniteScroll.on(“paginate”,function(a){return function(){return a.runAfter(“paginate”),null!=a.lazyLoad&&a.lazyLoad.checkImages(),a.handleBrokenImages()}}(this))},e.prototype.handleBrokenImages=function(){return new Juicer.Views.BrokenImage({el:this.el,model:this.model})},e.prototype.currentFilter=function(){return null!=this.model&&null!=this.model.filter?this.model.filter:this.userOptions.filter},e.prototype.setDimensions=function(){return this.$el.removeAttr(“style”),this.dimensions=this.$el.data(“width”)||this.model.get(“width”)||this.model.defaultHeight(),this.dimensions=this.$el.data(“height”)||this.model.get(“height”)||this.model.defaultWidth(),this.model.slider()?void 0:this.$el.css(this.dimensions)},e.prototype.dimensions={“max-width”:null,“max-height”:null},e.prototype.addJuicerAds=function(){var a,b;return a=this.model.get(“posts”).length,b=Math.floor(a/10),b>0?_u(b).times(function(a){return function(b){var c,d;return c=10*(b+1),d=new Juicer.Models.JuicerAd,a.model.get(“posts”).add(d,{at:c})}}(this)):void 0},e.prototype.setupGrid=function(){var a,b;return b=Math.floor(this.$el.outerWidth()/this.userOptions.columns),a=window.devicePixelRatio>2?225:200,a>b&&(b=a),this.$el.gridalicious({animate:!0,selector:“.feed-item”,width:b,gutter:this.userOptions.gutter,columns:this.userOptions.columns,animationOptions:{queue:!0,speed:100,duration:300,complete:function(a){return function(){return null==a.infiniteScroll?!0:a.infiniteScroll.shouldShowLoadMore()?void 0:a.infiniteScroll.removeLoadMore()}}(this)}}),this.model.get(“lazy_load”)?this.lazyLoad=new Juicer.Views.LazyLoad({model:this.model,view:this}):void 0},e.prototype.setGutterOnClassic=function(){var a,b;return a=“2%”,null==this.userOptions.gutter&&(b=a),this.$(“.feed-item”).css(“margin-bottom”,b)},e.prototype.appendNextPage=function(a){return null==a&&(a=null),a&&a.preventDefault(),this.$(“.j-paginate”).replaceWith(this.loading({inFeed:!0})),this.infiniteScroll.nextPage()},e.prototype.setClass=function(){return this.$el.removeClass(Juicer.Constants.FEED_CLASSES.join(“ ”)),this.$el.removeClass(this.cssClasses),this.$el.addClass(this.model.cssClass()),this.model.get(“photos”)?this.$el.addClass(“photos-only”):void 0},e.prototype.cssClasses=“photo photos-only juicer-widget gridalicious slick-initialized slick-slider modern ie colored-icons hover-images”,e.prototype.handleReferral=function(){return this.model.paid()||this.admin||this.$el.find(“h1.referral”).length>0||this.$el.prepend(this.referral()),this.model.paid()&&this.$el.find(“h1.referral”).remove(),this.$el.find(“a[href*=‘www.juicer.io’]”).attr(“href”,“https://www.juicer.io?referrer=”+this.model.get(“slug”))},e.prototype.trackPageView=function(){var a;return a=new Juicer.Models.PageView({feed_id:this.model.get(“id”),url:this.currentUrl()}),a.save(),this.tracked=!0},e.prototype.onJuicerDomain=function(){return window.location.href.match(“/iframe”)?!1:_u.contains([“www.juicer.io”,“localhost:3000”],window.location.host)},e.prototype.shouldTrack=function(){var a;return!this.onJuicerDomain()&&!this.tracked&&(a=this.model.get(“plan”),d.call(this.trackedPlans,a)>=0)},e.prototype.currentUrl=function(){return document.URL},e.prototype.triggerEvent=function(a){var b,c,d;if(d=jQuery(a.target),this.onJuicerDomain()||this.trackClick(d),d.hasClass(“delete”))return a.preventDefault(),this.deletePost(d);if(d.hasClass(“sticky”))return a.preventDefault(),this.toggleSticky(d,“stick”);if(d.hasClass(“unstick”))return a.preventDefault(),this.toggleSticky(d,“un-stick”);if(d.hasClass(“edit”))return new Juicer.Views.PostEdit({id:d.parents(“ul.actions”).data(“id”),model:this.model}).render();if(d.hasClass(“j-image”)&&d.parents(“li.j-video”).length>0&&!this.model.get(“video_overlay”))return a.preventDefault(),this.model.hasInterval()&&this.userOptions.overlay?(this.stopCurrentlyPlaying(),this.openOverlay({target:d})):this.playVideo(d,d.parents(“li.j-video”));if(d.hasClass(“j-gallery-arrow”))return a.preventDefault(),new Juicer.Views.Gallery({target:d,el:this.el,model:this.model});if(d.parents(“.j-twitter-intents”).length>0)return a.preventDefault(),this.handleTwitterIntent(d);if(d.parents(“.feed-item.j-twitter”).length>0){if(!(d.is(“a”)||d.parents(“a”).length>0))return b=d.parents(“.feed-item”).data(“id”),c=this.model.get(“posts”).findWhere({id:b}),window.open(c.link(),“_blank”)}else if(this.userOptions.overlay&&!d.hasClass(“.feed-item.juicer”)&&!d.parents(“.feed-item.juicer”).length>0&&!d.parents(“.feed-item.j-twitter”).length>0)return a.preventDefault(),this.stopCurrentlyPlaying(),this.openOverlay({target:d})},e.prototype.trackClick=function(a){var b;return a=a.is(“li.feed-item”)?a:a.parents(“li.feed-item”),b=new Juicer.Models.Click({feed_id:this.model.get(“id”),post_id:a.data(“id”)}),b.save()},e.prototype.openOverlay=function(a){return this.postOverlay=new Juicer.Views.PostOverlay({target:a.target,model:this.model}),this.postOverlay.on(“render”,function(a){return function(){return a.runAfter(“overlay”)}}(this)),this.postOverlay.render()},e.prototype.deletePost=function(a){var b;return Juicer.Helpers.confirm(“Are you sure you want to delete this post?”)?(a=a.parents(“ul.actions”),b=new Juicer.Models.Post({id:a.data(“id”)}),a.parents(“.feed-item”).remove(),b.destroy()):!1},e.prototype.toggleSticky=function(a,b){var c,d;return null==b&&(b=“stick”),Juicer.Helpers.confirm(“Are you sure you want to ”b“ this post?”)?(a=a.parents(“ul.actions”),d=new Juicer.Models.Post({id:a.data(“id”)}),c={success:function(a){return function(b,c){return a.model.set(b,{parse:!0}),a.model.trigger(“action”)}}(this),error:function(){return alert(“Something went wrong.”)}},“stick”===b?d.stick©:d.unstick©):!1},e.prototype.playVideo=function(a,b){if(a=a.is(“a.j-image”)?a:a.parents(“a.j-image”),a.hasClass(“playing”)){if(this.stopVideo(a),this.slider)return this.slider.play()}else if(this.stopCurrentlyPlaying(),this.slider&&this.slider.stop(),a.addClass(“playing”),a.html(this.embedVideo(a.data(“external-id”),b,a.data(“video-url”))),null!=this.slider)return this.slider.$el.slick(“slickPause”)},e.prototype.stopVideo=function(a){return a.removeClass(“playing”),a.html(“<img src='”+a.data(“image”)+“' style='width:100%;display:block;' />”),null!=this.slider?this.slider.$el.slick(“slickPlay”):void 0},e.prototype.embedVideo=function(a,b,c){var d;return null==c&&(c=null),d=b.data(“source”),“tumblr”===d&&(c=this.parseTumblrVideo(b,c)),JST[“partials/video/_”d“_embed”]({id:a,video:c})},e.prototype.parseTumblrVideo=function(a,b){var c,d;return c=jQuery(jQuery.parseHTML(b)),c.removeAttr(“id class width height poster preload data-crt-video data-crt-options”),c.attr(“src”)&&(d=c.attr(“src”)+“&autoplay=1”,c.attr(“src”,d)),window.setTimeout(function(b){return function(){return a.find(“video”).play()}}(this),500),c.outerHTML},e.prototype.stopCurrentlyPlaying=function(){return _u.each(this.$(“.playing”),function(a){return function(b){return a.stopVideo(jQuery(b))}}(this))},e.prototype.handleTwitterIntent=function(a){var b,c,d,e,f,g;return e=550,b=420,f=screen.height,g=screen.width,d=0,c=Math.round(g/2-e/2),f>b&&(d=Math.round(f/2-b/2)),window.open(a.attr(“href”),“intent”,“scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=”e“,height=”b“,top=”d“,left=”+c)},e.prototype.filterFeed=function(a){var b,c,d;return a.preventDefault(),c=jQuery(a.target),b=c.attr(“data-filter”),d=c.attr(“class”).replace(“selected”,“”).replace(“ ”,“”),this.model.filter===c.data(“filter”)?!1:(this.model.filter=c.data(“filter”),this.filter=c.data(“filter”),this.model.resetPage(),this.model.fetch({success:function(a){return function(){return a.$el.empty(),a.infiniteScroll&&a.infiniteScroll.close(),a.render(),a.delegateEvents()}}(this)}))},e.prototype.close=function(){return this.unbindChildren(),this.$el.removeClass(“j-initialized”),this.model.off(“new-posts”),this.model.off(“showLoader”),this},e.prototype.unbindChildren=function(){return null!=this.widget&&this.widget.close(),null!=this.livingWall&&this.livingWall.close(),null!=this.infiniteScroll&&this.infiniteScroll.close(),null!=this.lazyLoad&&this.lazyLoad.close(),null!=this.slider&&this.slider.off(“slide”),this.$el.empty().off(),this.stopListening()},e.prototype.reRender=function(){return this.unbindChildren(),this.render(),this.delegateEvents()},e}(JuicerBackbone.View)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.Analytics=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.template=JST,c.prototype.overlay=JST,c.prototype.events={“click .launch”:“openAnalyticsOverlay”},c.prototype.openAnalyticsOverlay=function(a){return a.preventDefault(),this.feed.get(“analytics_allowed?”)?window.location=“/analytics/”+this.feed.get(“slug”):new Juicer.Views.Overlay({content:this.overlay({feed:this.feed}),element:this.el}).render()},c}(Juicer.Views.SubViewSlide)}.call(this),function(){var a=function(a,b){return function(){return a.apply(b,arguments)}},b=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a=b);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},c={}.hasOwnProperty;Juicer.Views.Design=function©{function d(){return this.afterCssParsing=a(this.afterCssParsing,this),d.__super__.constructor.apply(this,arguments)}return b(d,c),d.prototype.template=JST,d.prototype.colorPicker=JST,d.prototype.cssOverlay=JST, d.prototype.title=“Custom Design”,d.prototype.events={“click .feed-color”:“showColorPicker”,“change .color-input”:“updateColor”,“input .hex-input”:“updateColor”,“click .save-style”:“saveStyle”,“click .reset-style”:“resetStyle”,“click .customize-css”:“openCustomCssOverlay”,“submit .css-form”:“submitCssForm”},d.prototype.showColorPicker=function(a){var b,c;return c=$(a.target),c.hasClass(“feed-color”)||(c=c.parents(“.feed-color”)),this.$(“.color-fields”).remove(),b=c.data(“color”),c.after(this.colorPicker({color:this.feed.getColor(b),pattern:this.pattern,colorAttr:b}))},d.prototype.pattern=“^#+({6}|[a-fA-F0-9]{3})$”,d.prototype.updateColor=function(a){var b,c,d,e;return d=$(a.target),e=d.val(),e.match(this.pattern)?(c=d.hasClass(“hex-input”)?“.color-input”:“.hex-input”,this.$©.val(e),b=d.parents(“.color-fields”).data(“color”),this.$(“.color-example, .feed-color[data-color=‘”b“’] .color-picker-circle”).css({backgroundColor:e}),this.updateModel(b,e)):!1},d.prototype.updateModel=function(a,b){return this.feed.updateColor(a,b)},d.prototype.saveStyle=function(a){return this.feed.save(null,{success:function(b){return function(){return b.notifySuccess($(a.target))}}(this),error:function(){return alert(“Sorry your design didn't save properly. Please try again.”)}})},d.prototype.resetStyle=function(a){return confirm(“Are you sure you want to set your feed custom styles back to default?”)?(this.feed.resetColors(),this.feed.save(null,{success:function(a){return function(){return a.feed.trigger(“action”),a.render()}}(this)})):void 0},d.prototype.notifySuccess=function(a){return a.text(“Saved!”),setTimeout(function(b){return function(){return a.text(“Save Custom Style”)}}(this),3e3)},d.prototype.openCustomCssOverlay=function(){return this.overlay=new Juicer.Views.Overlay({content:this.cssOverlay({feed:this.feed}),element:this.el,width:“50%”}),this.overlay.render()},d.prototype.submitCssForm=function(a){var b;return a.preventDefault(),b=$(a.target).serializeHash(),$.parsecss(b.css,this.afterCssParsing)},d.prototype.afterCssParsing=function(a){return this.feed.set(“custom_css”,this.stringifyCss(a)),this.feed.save(null,{success:function(a){return function(){return a.overlay.removeView(),a.feed.trigger(“action”)}}(this),error:function(){return alert(“Something went wrong”)}})},d.prototype.stringifyCss=function(a){var b;return b=“”,_u.each(a,function(a,c){return b+=c+“ {n”,_u.each(a,function(a,c){return b+=“ ”c“: ”a“;n”}),b+=“}nn”}),b},d}(Juicer.Views.SubView)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.Embed=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.embed=JST,c.prototype.template=JST,c.prototype.wordpress=JST,c.prototype.iframe=JST,c.prototype.menu=JST,c.prototype.title=“Embed In Your Site”,c.prototype.initialize=function(){return c.__super__.initialize.apply(this,arguments),this.currentlySelected=“site”},c.prototype.embedOptions=[{value:“site”,label:“Standard Website”},{value:“wordpress”,label:“Wordpress Site”},{value:“iframe”,label:“iframe”}],c.prototype.events={“change .embed-menu”:“switchEmbed”,“focus textarea”:“highlightField”},c.prototype.switchEmbed=function(a){return this.currentlySelected=$(a.target).val(),this.renderTemplate(),this.renderTitle()},c.prototype.renderTemplate=function(){return this.renderContent(),this.renderMenu()},c.prototype.renderContent=function(){switch(this.currentlySelected){case“wordpress”:return this.showWordPress();case“iframe”:return this.showIframe();default:return this.showEmbed()}},c.prototype.renderMenu=function(){return this.$el.prepend(this.menu({embedOptions:this.embedOptions,currentlySelected:this.currentlySelected}))},c.prototype.javascriptPath=function(){return this.assetPath(“embed.js”)},c.prototype.stylesheetPath=function(){return this.assetPath(“embed.css”)},c.prototype.assetPath=function(a){return Juicer.Constants.ASSET_PATH+“/”+a},c.prototype.showEmbed=function(){var a;return a=this.embed({feed:this.feed,javascript:this.javascriptPath(),stylesheet:this.stylesheetPath()}),a=a.replace(/<br />/g,“n”),this.$el.html(this.template({embed:a,feed:this.feed}))},c.prototype.showWordPress=function(){return this.$el.html(this.wordpress({feed:this.feed}))},c.prototype.showIframe=function(){var a,b,c;return a=this.feed.get(“height”)||1e3,c=this.feed.get(“width”)||1e3,1e3===a&&this.feed.slider()&&(a=300),b=“<iframe src='www.juicer.io/api/feeds/”+this.feed.get(“slug”)+“/iframe' frameborder='0' width='”c“' height='”a“' style='display:block;margin:0 auto;'></iframe>”,this.$el.html(this.iframe({iframe:b}))},c.prototype.highlightField=function(a){var b;return b!==$(a.target)?(b=$(a.target),setTimeout(function(){return b.select()},50)):void 0},c}(Juicer.Views.SubView)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.Features=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.template=JST,c}(Juicer.Views.SubViewSlide)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.Hub=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.template=JST,c}(Juicer.Views.SubViewSlide)}.call(this),function(){var a=function(a,b){return function(){return a.apply(b,arguments)}},b=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a=b);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},c={}.hasOwnProperty;Juicer.Views.Moderate=function©{function d(){return this.pollForRevalidating=a(this.pollForRevalidating,this),this.revalidatingPoll=a(this.revalidatingPoll,this),this.closeOverlay=a(this.closeOverlay,this),d.__super__.constructor.apply(this,arguments)}return b(d,c),d.prototype.template=JST,d.prototype.revalidateOverlay=JST,d.prototype.title=“Moderate and Filter”,d.prototype.initialize=function(){return d.__super__.initialize.apply(this,arguments),this.initialAttributes=_u.pick(this.feed.attributes,“lazy_load”,“css”)},d.prototype.render=function(){return d.__super__.render.apply(this,arguments),new Juicer.Views.GooglePlaces({el:this.el}),this.toggleFilterBlocker()},d.prototype.events={“submit .filters”:“openOverlay”,“click .moderate-confirm”:“submitConfirmation”,“click .moderated”:“viewModeratedPosts”,“click .public”:“showPublic”,“change input#queue”:“toggleAndSubmit”},d.prototype.showPublic=function(a){return this.fetchFeed(),$(“.moderation-nav .active”).removeClass(“active”),$(a.target).addClass(“active”)},d.prototype.viewModeratedPosts=function(a){return a.preventDefault(),this.moderated=new Juicer.Models.Moderated({slug:this.feed.get(“slug”)}),$(window).unbind(“scroll”),$(“.moderation-nav .active”).removeClass(“active”),$(a.target).addClass(“active”),this.moderated.fetch({success:function(a){return function(){return a.feedView.close(),new Juicer.Views.Moderated({el:“ul.juicer-feed”,model:a.moderated}).render()}}(this),error:function(){return alert(“Something went wrong pulling in your moderated posts.”)}})},d.prototype.openOverlay=function(a){var b;return a.preventDefault(),b=$(a.target).serializeHash().feed,this.overlay=new Juicer.Views.Overlay({content:this.revalidateOverlay({data:b}),element:this.el,width:“50%”}),this.overlay.render()},d.prototype.closeOverlay=function(){return this.overlay.removeView()},d.prototype.submitConfirmation=function(a){var b,c;return a.preventDefault(),c=$(a.target),b=c.parents(“form”).serializeHash(),c.data(“revalidate”)?(c.parents(“.submits”).html(“<div class='j-loading'>Loading…</div><div class='mt-15 fifteen tc-gray'>Applying filter settings to existing posts. This can take a while. Please hold.</div>”),b.revalidating=!0,this.updateFilters(b,this.revalidatingPoll)):(c.parents(“.submits”).html(“<div class='j-loading'>Loading…</div>”),this.updateFilters(b,this.closeOverlay))},d.prototype.updateFilters=function(a,b){return this.feed.set(a),this.feed.save(null,{success:function(a){return function(){return b()}}(this),error:function(){return alert(“Something went wrong!”)}})},d.prototype.revalidatingPoll=function(){return setTimeout(this.pollForRevalidating,5e3)},d.prototype.pollForRevalidating=function(){return this.feed.fetch({success:function(a){return function(){return a.feed.get(“revalidating”)?a.revalidatingPoll():(a.closeOverlay(),a.feed.trigger(“action”))}}(this),error:function(){return alert(“Something happened with polling. Please refresh page.”)}})},d.prototype.toggleAndSubmit=function(){return this.toggleFilterBlocker(),this.queueChecked()?this.$(“form”).trigger(“submit”):void 0},d.prototype.toggleFilterBlocker=function(){var a;return a=this.$(“.filter-blocker”),this.queueChecked()?a.show():a.hide()},d.prototype.queueChecked=function(){return this.$(“#queue”).is(“:checked”)},d.prototype.close=function(a){return null==a&&(a=null),null!=a&&a.preventDefault(),$(“li.selected”).removeClass(“selected”),d.__super__.close.apply(this,arguments),null!=this.moderated?this.fetchFeed():void 0},d.prototype.fetchFeed=function(){return this.feed.set(this.initialAttributes),this.feed.moderated?window.location=“/feeds/”+this.feed.get(“slug”):this.feed.fetch({success:function(a){return function(){return a.feed.trigger(“action”)}}(this)})},d}(Juicer.Views.SubView)}.call(this),function(){var a=function(a,b){return function(){return a.apply(b,arguments)}},b=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a=b);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},c={}.hasOwnProperty;Juicer.Views.Settings=function©{function d(){return this.reRender=a(this.reRender,this),d.__super__.constructor.apply(this,arguments)}return b(d,c),d.prototype.template=JST,d.prototype.title=“Feed Settings”,d.prototype.events={“input input.columns”:“updateColumns”,“input input.interval”:“updateInterval”,“input input.width”:“updateDimensions”,“input input.height”:“updateDimensions”,“change input”:“updateCheckbox”,“change .css”:“updateStyle”,“change .order”:“updateOrder”,“change .filter_setting”:“updateFilter”,“focus input”:“highlightField”},d.prototype.render=function(){return d.__super__.render.apply(this,arguments),this.toggleSettings(),this.feed.on(“change:css”,this.reRender)},d.prototype.renderTemplate=function(){return this.$el.html(this.template({feed:this.feed,checkboxes:this.checkboxes}))},d.prototype.reRender=function(){return this.$el.html(this.template({feed:this.feed,checkboxes:this.checkboxes})),this.renderTitle(),this.toggleSettings()},d.prototype.toggleSettings=function(){return this.feed.hasInterval()&&this.showInterval(),this.feed.hasInterval()||this.showFilter(),this.feed.hasColumns()?this.showColumns():void 0},d.prototype.showInterval=function(){return this.$(“.interval”).show()},d.prototype.showFilter=function(){return this.$(“.filter_setting”).show()},d.prototype.showColumns=function(){return this.$(“.columns”).show()},d.prototype.checkboxes=[{attr:“colored_icons”,label:“Color in social network icons”},{attr:“photos”,label:“Only show posts with images”},{attr:“videos”,label:“Only show posts with videos”},{attr:“lazy_load”,label:“Lazy-load images”,tooltip:“Won't load images until they are scrolled to on your site. This will save on bandwidth and decrease page load time. Only use if Juicer feed is below the fold.”},{attr:“overlay”,label:“Open overlay on post click”,tooltip:“With this box checked, when you click on a post it will open in an overlay view with the post larger and sharing icons. Otherwise it will link directly to the post.”},{attr:“video_overlay”,label:“Only play videos in overlay”,tooltip:“With this box checked, videos will open in an overlay and play. If not checked, the videos will play inline in the feed.”},{attr:“infinite_scroll”,label:“Infinite Scroll”,tooltip:'If you scroll to the bottom of your Juicer feed, automatically load in more posts. If not, you'll see a “Load More” button instead'},{attr:“poll”,label:“Auto-Refresh for Live Events”,tooltip:“Refreshes the feed automatically when new posts are pulled in. Great for using on a display at a live event.”}],d.prototype.updateColumns=function(a){var b,c;return c=$(a.target).val(),0<(b=c.length)&&2>b?(this.feed.set(“columns”,c),this.saveAndRender()):void 0},d.prototype.updateInterval=function(a){var b,c;return c=$(a.target).val(),3<(b=c.length)&&10>b||“0”===c?(this.feed.set(“interval”,c),this.saveAndRender()):void 0},d.prototype.updateDimensions=function(a){var b,c,d,e;return d=$(a.target),e=d.val(),b=d.attr(“class”),2<(c=e.length)&&5>c&&e>99&&5001>e||“”===e?(this.feed.set(b,e),this.saveAndRender()):void 0},d.prototype.updateCheckbox=function(a){var b,c;return b=$(a.target),c=b.is(“:checked”)?“1”:“0”,this.feed.set(b.data(“attribute”),c),this.saveAndRender()},d.prototype.updateStyle=function(a){return this.feed.set(“css”,$(a.target).val()),this.saveAndRender()},d.prototype.updateOrder=function(a){return this.feed.set(“order”,$(a.target).val()),this.saveAndRender()},d.prototype.updateFilter=function(a){return this.feed.set(“display_filter”,$(a.target).val()),this.saveAndRender()},d.prototype.saveAndRender=function(){return this.feed.trigger(“showLoader”),this.feed.save(null,{success:function(a){return function(){return a.feed.trigger(“action”)}}(this)})},d.prototype.highlightField=function(a){var b;return b!==$(a.target)?(b=$(a.target),setTimeout(function(){return b.select()},50)):void 0},d}(Juicer.Views.SubView)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.SocialAccounts=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.template=JST,c.prototype.title=“Expired Social Accounts”,c}(Juicer.Views.SubViewSlide)}.call(this),function(){var a=function(a,b){return function(){return a.apply(b,arguments)}},b=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a=b);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},c={}.hasOwnProperty;Juicer.Views.Sources=function©{function d(){return this.reRender=a(this.reRender,this),this.sort=a(this.sort,this),d.__super__.constructor.apply(this,arguments)}return b(d,c),d.prototype.template=JST,d.prototype.title=“Social Media Sources”,d.prototype.render=function(a){return d.__super__.render.apply(this,arguments),jQuery(“.juicer-feed”).hasClass(“j-modern”)?sortable(“.source-list”,{items:“.existing-source”,forcePlaceholderSize:!0})[0].addEventListener(“sortupdate”,this.sort):void 0},d.prototype.events={“click .delete”:“removeSource”,“click .source-submenu-item”:“openSourceOverlay”,“click .rename”:“openSourceEditOverlay”,“click .moderate”:“openSourceModerateOverlay”,“submit manual_post”:“addPostManually”,“submit .source-update”:“updateSource”,“click .existing-source”:“toggleSubMenu”,“click .add-source-submenu”:“openSourceForm”},d.prototype.removeSource=function(a){var b,c,d;return a.preventDefault(),d=$(a.target),Juicer.Helpers.confirm(“Are you sure you want to delete this source? This will PERMANENTLY delete your posts from your Juicer Feed. If you plan to re-add this source there is NO GUARANTEE we will be able to pull all your posts back in, so do at your own risk.”)?(b=d.data(“id”),c=new Juicer.Models.Source({id:b}),c.destroy({success:function(a){return function(c,e){return a.feed.set(e,{parse:!0}),$(“.existing-source[data-id=‘”b“’]”).remove(),d.parents(“.source-submenu”).remove(),a.feed.trigger(“action”)}}(this),error:function(){return alert(“uh oh, something went wrong.”)}})):void 0},d.prototype.openSourceForm=function(){return this.trigger(“openSourceForm”,this)},d.prototype.openSourceOverlay=function(a){var b,c;return a.preventDefault(),c=$(a.target),b=this.feed.get(“sources”).findWhere({id:c.data(“id”)}),this.overlay=new Juicer.Views.Overlay({content:JST({source:b,feed:this.feed}),width:“50%”,element:this.el}),this.overlay.render()},d.prototype.addPostManually=function(a){var b,c;return a.preventDefault(),c=$(a.target),c.find(“ul.errors”).remove(),b=c.serializeHash(),this.post=new Juicer.Models.Post(b),this.post.save(null,{success:function(a){return function(b,c){return a.feed.set(c,{parse:!0}),a.reRender(),a.feed.trigger(“action”)}}(this),error:function(a){return function(a,b){return new Juicer.Views.Errors({el:c,errors:b})}}(this)})},d.prototype.updateSource=function(a){var b,c;return a.preventDefault(),c=$(a.target),b=c.serializeHash(),this.source=new Juicer.Models.Source(b),this.source.save(null,{success:function(a){return function(b,c){return a.feed.set(c,{parse:!0}),a.reRender(),a.feed.trigger(“action”)}}(this),error:function(){return alert(“Something went wrong.”)}})},d.prototype.sort=function(a){var b;return b=_u.map($(a.target).find(“.existing-source”),function(a){return function(a){return $(a).data(“id”)}}(this)),this.feed.set({source_ids:b}),this.saveAndRender()},d.prototype.reRender=function(){return this.parent.renderSidebar()},d.prototype.toggleSubMenu=function(a){var b;return b=$(a.target),b.hasClass(“existing-source”)||(b=b.parents(“.existing-source”)),b.next(“.source-submenu”).slideToggle(),b.toggleClass(“open”)},d.prototype.saveAndRender=function(){return this.feed.trigger(“showLoader”),this.feed.save(null,{success:function(a){return function(){return a.feed.set({source_ids:null}),a.feed.trigger(“action”)}}(this)})},d}(Juicer.Views.SubView)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.Synced=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.template=JST,c}(Juicer.Views.SubViewSlide)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.ChurnForm=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.namespace=“churn”,c.prototype.createModel=function(){return new JuicerBackbone.Model},c}(Juicer.Views.FormView)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.ContactForm=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.namespace=“contact_message”,c.prototype.createModel=function(){return new Juicer.Models.ContactMessageValidation},c}(Juicer.Views.FormView)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.FeedForm=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.namespace=“feed”,c.prototype.createModel=function(){return new Juicer.Models.FeedValidation},c}(Juicer.Views.FormView)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.UserForm=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.namespace=“user”,c.prototype.createModel=function(){return new Juicer.Models.UserValidation},c}(Juicer.Views.FormView)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.UserUpdateForm=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.namespace=“user”,c.prototype.createModel=function(){var a;return a={email:$(“#user_email”).val(),noPassword:$(“#user_password”).length<1},new Juicer.Models.UserUpdateValidation(a)},c}(Juicer.Views.FormView)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.Gallery=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.initialize=function(a){var b,c,d,e,f,g,h,i;return i=a.target,e=i.parents(“.j-gallery”),b=e.data(“id”),g=this.model.get(“posts”).findWhere({id:b}),c=e.find(“.j-image img”),h=c.attr(“src”),f=g.get(“additional_photos”),d=f.indexOf(h),-1===d&&(d=0),i.hasClass(“j-gallery-next”)?d+=1:i.hasClass(“j-gallery-previous”)&&(d-=1),d>=f.length&&(d=0),0>d&&(d=f.length-1),c.attr(“src”,f)},c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.GdprOverlay=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.template=JST.gdpr_form,c.prototype.initialize=function(){return this.overlay=new Juicer.Views.Overlay({content:this.template(),element:this.el,width:“50%”}),this.overlay.render()},c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,b){return function(){return a.apply(b,arguments)}},b=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a=b);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},c={}.hasOwnProperty;Juicer.Views.GooglePlaces=function©{function d(){return this.setGeometry=a(this.setGeometry,this),d.__super__.constructor.apply(this,arguments)}return b(d,c),d.prototype.initialize=function(){return $.getScript(“maps.googleapis.com/maps/api/js?key=”Juicer.Constants.GOOGLE_MAPS_KEY“&libraries=places”,function(a){return function(){var b;return b=a.$(“input#location”),a.searchBox=new google.maps.places.SearchBox(b),a.searchBox.addListener(“places_changed”,a.setGeometry)}}(this))},d.prototype.setGeometry=function(){var a,b;return b=this.searchBox.getPlaces(),a=b,window.place=a,this.$(“input#lat”).val(a.geometry.location.lat()),this.$(“input#lng”).val(a.geometry.location.lng()),this.$(“input”).removeAttr(“disabled”)},d}(JuicerBackbone.View)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.Graph=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.initialize=function(){var a,b,c,d,e;return e=1e3,c=600,a=d3.scale.category20(),b=d3.layout.force().linkDistance(10).linkStrength(2).size(),d=d3.select(this.el).append(“svg”).attr(“width”,e).attr(“height”,c),d3.json(“/graph.json”,function(a,c){var e,f,g,h,i;i=c.nodes.slice(),g=[],e=,c.links.forEach(function(a){var b,c,d;c=i,d=i,b={},i.push(b),g.push({source:c,target:b},{source:b,target:d}),e.push()}),b.nodes(i).links(g).start(),f=d.selectAll(“.link”).data(e).enter().append(“path”).attr(“class”,“link”),h=d.selectAll(“.node”).data(c.nodes).enter().append(“circle”).attr(“class”,“node”).attr(“r”,5).style(“fill”,function(a){return“#ffffff”}).call(b.drag),h.append(“title”).text(function(a){return a.name}),b.on(“tick”,function(){f.attr(“d”,function(a){return“M”a[0].x“,”a[0].y“S”a[1].x“,”a[1].y“ ”a[2].x“,”+a.y}),h.attr(“transform”,function(a){return“translate(”a.x“,”a.y“)”})})})},c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.Home=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.initialize=function(){return this.$(“input”).placeholder(),new Juicer.Views.HomeSlider({el:“.what-is-juicer”}),new Juicer.Views.Graph({el:“.graph-nodes”}),“static-home”===this.$el.attr(“id”)?(this.$(“.main-header”).addClass(“home-header”),this.$(“.main-header .logo”).addClass(“logo-large”).removeClass(“logo”)):void 0},c.prototype.events={“click .learn-more”:“scrollDown”,“click .show”:“renderExample”,“change select”:“reRenderFeed”,“click .hide-feed”:“hideFeed”},c.prototype.scrollDown=function(a){var b;return a.preventDefault(),b=this.$(“.what-is-juicer”).offset().top,$(“html,body”).animate({scrollTop:b},{easing:“swing”,duration:500})},c.prototype.renderExample=function(a){var b;return a.preventDefault(),b=$(a.target),b.html(“Loading…”),this.model=new Juicer.Models.Feed({slug:“juicer”,per:16,order:“random”}),this.model.fetch({success:function(a){return function(){return a.renderFeed(),$(“.style-picker”).css(“display”,“inline-block”),$(“.hide-feed”).show(),b.hide()}}(this),error:function(){return console.log(“Example did not load!”)}})},c.prototype.reRenderFeed=function(a){var b,c;return this.$(“.juicer-feed”).remove(),this.$(“.juicer-example”).append(“<ul class='juicer-feed' data-pages='1'></ul>”),c=$(a.target).val(),b=this.map©,this.model.set(b),this.renderFeed()},c.prototype.renderFeed=function(){return new Juicer.Views.Feed({el:“.juicer-feed”,model:this.model}).render()},c.prototype.hideFeed=function(a){return a.preventDefault(),this.$(“.juicer-feed”).html(“”),$(“.style-picker”).hide(),$(a.target).hide(),this.$(“.show”).show().html(“Show me an example feed!”)},c.prototype.map=function(a){switch(a){case“classic”:return{css:“classic”,photos:!1};case“white”:return{css:“white”,photos:!1};case“widget”:return{css:“widget”,photos:!1};case“colored-icons”:return{css:“colored-icons”,photos:!1};case“gray”:return{css:“gray”,photos:!1};case“slider”:return{css:“slider”,photos:!0};case“user”:return{css:“user”,photos:!1};case“hip”:return{css:“hip”,photos:!1};case“living-wall”:return{css:“living-wall”,photos:!1};case“modern”:return{css:“modern”,photos:!1};case“polaroid”:return{css:“polaroid”,photos:!1};case“night”:return{css:“night”,photos:!1};default:return{css:“image-grid”,photos:!0}}},c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.HomeSlider=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.item=“.explainer-list-item”,c.prototype.initialize=function(){return this.activate(this.$(this.item).first())},c.prototype.events={“mouseenter .explainer-list-item”:“toggleSlider”},c.prototype.toggleSlider=function(a){var b;return b=$(a.target),b.is(this.item)||(b=b.parents(this.item)),b.hasClass(“active”)?void 0:this.activate(b)},c.prototype.activate=function(a){var b,c;return c=a.data(“slide”),this.$(“.explainer-list-item.active”).removeClass(“active”),a.addClass(“active”),b=this.$(“.slider-images .”+c),b.attr(“src”)?this.slide(b):this.loadImage(b)},c.prototype.slide=function(a){return this.$(“.slider-images .active”).removeClass(“active”),a.addClass(“active”)},c.prototype.loadImage=function(a){var b,c;return b=new Image,c=a.data(“src”),b.onload=function(b){return function(){return a.attr(“src”,c),b.slide(a)}}(this),b.src=c},c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,b){return function(){return a.apply(b,arguments)}},b=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a=b);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},c={}.hasOwnProperty;Juicer.Views.InfiniteScroll=function©{function d(){return this.checkForPagination=a(this.checkForPagination,this),d.__super__.constructor.apply(this,arguments)}return b(d,c),d.prototype.el=function(){return this.model.hasHeight()?“ul.juicer-feed”:window},d.prototype.initialize=function(a){return this.template=a.template||JST,this.container=a.container,this.admin=a.admin||!1,this.posts=this.model.get(“posts”),this.pages=_u.min(),this.stopped=this.pages<2||this.limitReached(),this.shouldInfinitelyScroll()?this.$el.on(“scroll”,_u.debounce(this.checkForPagination,300)):void 0},d.prototype.limitReached=function(){return this.lessThanLimit()||this.setPagesLimit()},d.prototype.lessThanLimit=function(){return this.posts.length<this.posts.limit_value},d.prototype.setPagesLimit=function(){return this.posts.current_page>=this.pages},d.prototype.removeLoadMore=function(){return jQuery(“.j-paginate”).remove()},d.prototype.checkForPagination=function(){return this.scrollPoint()>this.triggerPoint()&&!this.stopped?this.nextPage():void 0},d.prototype.shouldInfinitelyScroll=function(){return this.model.get(“infinite_scroll”)&&!this.stopped},d.prototype.shouldShowLoadMore=function(){return!this.model.get(“infinite_scroll”)&&!this.stopped},d.prototype.nextPage=function(){return this.stop(),this.model.nextPage(),this.model.fetch({remove:!1,success:function(a){return function(b,c){return a.appendPosts©,a.trigger(“paginate”)}}(this),error:function(){return console.log(“Juicer Infinite Scroll Problem.”)}})},d.prototype.appendPosts=function(a){var b,c;return jQuery(“.j-loading, .j-loading-wrapper”).remove(),c=new Juicer.Models.Feed(a,{parse:!0}),this.posts=c.get(“posts”),this.posts.length>0&&(b=jQuery(this.template({feed:c,admin:this.admin}))),this.model.isGrid()?this.container.gridalicious(“append”,b):this.container.append(b),this.limitReached()||this.start(),this.shouldShowLoadMore()?void 0:this.removeLoadMore()},d.prototype.scrollPoint=function(){return this.$el.scrollTop()+2*this.$el.outerHeight()},d.prototype.triggerPoint=function(){return this.model.hasHeight()?this.container.prop(“scrollHeight”):this.container.offset().top+this.container.outerHeight()},d.prototype.start=function(){return this.stopped=!1},d.prototype.stop=function(){return this.stopped=!0},d.prototype.close=function(){return this.$el.empty().off(),this.model.resetPage(),this.stopListening(),this},d}(JuicerBackbone.View)}.call(this),function(){var a=function(a,b){return function(){return a.apply(b,arguments)}},b=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a=b);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},c={}.hasOwnProperty;Juicer.Views.LazyLoad=function©{function d(){return this.checkImages=a(this.checkImages,this),d.__super__.constructor.apply(this,arguments)}return b(d,c),d.prototype.el=window,d.prototype.initialize=function(a){return this.view=a.view,this.$el.on(“scroll”,_u.debounce(this.checkImages,_u.random(250,350))),this.model.hasHeight()&&this.feed().on(“scroll”,_u.debounce(this.checkImages,_u.random(250,350))),this.checkImages()},d.prototype.checkImages=function(){return _u.each(this.view.$el.find(“img:not()”),function(a){return function(b){return b=jQuery(b),b.offset().top<a.scrollPoint(a.$el)&&b.attr(“src”,b.data(“lazy”)), a.model.hasHeight()&&b.offset().top<a.scrollPoint(a.feed())?b.attr(“src”,b.data(“lazy”)):void 0}}(this))},d.prototype.scrollPoint=function(a){return a.scrollTop()+a.height()+500},d.prototype.feed=function(){return jQuery(“ul.juicer-feed”)},d.prototype.close=function(){return this.$el.off(“scroll”),this.feed().off(“scroll”)},d}(JuicerBackbone.View)}.call(this),function(){var a=function(a,b){return function(){return a.apply(b,arguments)}},b=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a=b);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},c={}.hasOwnProperty;Juicer.Views.LivingWall=function©{function d(){return this.rotatePost=a(this.rotatePost,this),d.__super__.constructor.apply(this,arguments)}return b(d,c),d.prototype.template=JST,d.prototype.customCss=JST,d.prototype.initialize=function(a){return this.interval=a.interval,this.admin=a.admin,this.columns=a.columns,this.gutter=a.gutter,this.equal=a.equal,0===this.interval&&(this.interval=5e7),this.defaultColumns=this.columns,this.gutter||(this.gutter=0),this.setSizes(),jQuery(window).on(“resize”,_u.debounce(function(a){return function(){return a.resize()}}(this),300))},d.prototype.setSizes=function(){var a;return this.handleResponsiveColumns(),a=this.gutter*(2*this.columns-1),this.width=this.$el.width()-a,this.small=this.width/(2*this.columns),this.$el.hasClass(“j-ie”)&&(this.small=Math.floor(this.small-this.columns-1)),this.large=2*this.small+this.gutter,this.retryTimes=0},d.prototype.handleResponsiveColumns=function(){return this.windowWidth=this.$el.width(),this.windowWidth<400?this.columns=1:this.windowWidth<600?this.columns=2:this.windowWidth<900?this.columns=3:this.columns=this.defaultColumns},d.prototype.render=function(){var a,b,c;return a=8*this.columns,this.setLargeCount(),this.smallCount=a-4*this.largeCount,this.total=this.largeCount+this.smallCount,c=_u.map(this.initialPosts(),function(a){return function(b){return a.renderPost(b)}}(this)),b=_u.sample(c,this.largeCount),_u.each(b,function(a){return function(b){return b.addClass(“j-large”),a.setDimensions(b)}}(this)),_u.each(c,function(a){return function(b){return b.hasClass(“j-large”)?!1:(b.addClass(“j-small”),a.setDimensions(b))}}(this)),this.$el.append(this.customCss({feed:this.model})),this.$el.append©,this.$el.packery(this.packeryOptions()),this.handleInterval(),this.ensureProperSize(),this},d.prototype.resize=function(){return this.$el.outerWidth()!==this.windowWidth?this.reRender():void 0},d.prototype.reRender=function(){return this.setSizes(),this.render()},d.prototype.setLargeCount=function(){return this.largeCount=this.equal?0:this.columns%2!==0?this.columns-1:this.columns},d.prototype.packeryOptions=function(){return{gutter:this.gutter,itemSelector:“.feed-item”,resize:!1}},d.prototype.handleInterval=function(){return document.hidden||this.startInterval(),jQuery(document).on(“show”,function(a){return function(){return a.startInterval()}}(this)),jQuery(document).on(“hide”,function(a){return function(){return a.stopInterval()}}(this))},d.prototype.startInterval=function(){return null==this.id?this.id=setInterval(this.rotatePost,this.interval):void 0},d.prototype.stopInterval=function(){return null!=this.id&&window.clearInterval(this.id),this.id=null},d.prototype.ensureProperSize=function(){var a,b,c;return this.retryTimes>9?!1:(c=3*this.gutter,a=4*this.small,Math.floor(a)-c<=(b=this.$el.height())&&b<=Math.ceil(a)+c?void 0:(this.retryTimes++,this.close(),this.render()))},d.prototype.renderPost=function(a){return a=jQuery(this.template({post:a,admin:this.admin})),imagesLoaded(a,function(){var b;return b=a.find(“img”),b.width()>b.height()?b.addClass(“landscape”):void 0}),a},d.prototype.initialPosts=function(){var a;return a=this.total-1,this.posts().slice(0,+a+1||9e9)},d.prototype.nextPost=function(){return this.total++,this.total>=this.posts().length&&(this.model.pollingAllowed()&&this.model.fetchNewPosts(!1),this.total=0),this.posts()},d.prototype.posts=function(){var a;return a=this.model.get(“posts”).models,a=_u.select(a,function(a){return!a.twitter()})},d.prototype.randomPost=function(){return jQuery(_u.sample(this.$(“.feed-item”).not(“.j-sticky”)))},d.prototype.setDimensions=function(a){var b;return b=a.hasClass(“j-small”)?this.small:this.large,a.css({width:this.size(a),height:this.size(a)})},d.prototype.rotatePost=function(){var a,b,c;return c=this.randomPost(),a=this.nextPost(),a.stickied()&&(a=this.nextPost()),b=this.renderPost(a),this.cloneStyle(c,b)},d.prototype.cloneStyle=function(a,b){var c,d,e,f,g,h,i;return b.addClass(a.hasClass(“j-small”)?“j-small”:“j-large”),this.setDimensions(b),i=this.size(a),d={top:i,left:i},c=this.merge(this.vectorMap(),d,“*”),e=h=a.position(),f=this.merge(h,c,“-”),g=this.merge(h,c,“+”),b.css(_u.extend(f,this.underCss)),a.css(this.underCss),a.before(b),window.setTimeout(function(){return a.css(g),b.css(e),window.setTimeout(function(){return a.remove(),b.css({zIndex:2})},500)},100)},d.prototype.size=function(a){return a.hasClass(“j-small”)?this.small:this.large},d.prototype.merge=function(a,b,c){var d;return null==c&&(c=“+”),d={},_u.each(_u.keys(a),function(e){return function(e){return“+”===c?d=a+b:“*”===c?d=a*b:“-”===c?d=a-b:void 0}}(this)),d},d.prototype.vectorMap=function(){var a,b;return b=_u.sample(),a=_u.shuffle(),{top:a,left:a}},d.prototype.underCss={zIndex:1},d.prototype.close=function(){return this.stopInterval(),this.$el.empty(),this.$el.packery(“destroy”),jQuery(document).off(“show hide”),this.stopListening(),this},d}(JuicerBackbone.View)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.LocationPicker=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.template=JST.location_picker,c.prototype.initialize=function(a){return this.$el.html(this.template(a)),this.$el.attr(“id”,“new_source”)},c.prototype.events={“click li”:“submitForm”},c.prototype.submitForm=function(a){var b;return b=$(a.target),this.$(“input#term”).val(b.data(“id”)),this.$(“input#name”).val(b.data(“name”)),this.trigger(“submit”,this.$el.serializeHash())},c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,b){return function(){return a.apply(b,arguments)}},b=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a=b);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},c={}.hasOwnProperty;Juicer.Views.Moderated=function©{function d(){return this.reRender=a(this.reRender,this),d.__super__.constructor.apply(this,arguments)}return b(d,c),d.prototype.template=JST.moderated,d.prototype.loading=JST,d.prototype.urmNotEligible=JST,d.prototype.urmConnectSocial=JST,d.prototype.upgradeToCampaign=JST,d.prototype.urmRequest=JST,d.prototype.events={“click ul.j-filters li”:“filterFeed”,“click ul.j-display-filters li”:“filterFeed”,“click .approve”:“restorePost”,“click .reject”:“rejectPost”,“click .urm-request”:“urmRequestPost”,“click .j-paginate”:“appendNextPage”,“click .bulk-moderate”:“bulkModerate”,“click .urm-overlay-approve”:“restoreFromUrm”},d.prototype.render=function(){var a;return this.model.set({lazy_load:!1,css:“modern”}),this.$el.css({maxWidth:“none”,maxHeight:“none”}),this.startInfiniteScroll(),this.$el.html(this.template({feed:this.model,menuItems:this.menuItems()})),a=Math.floor(this.$el.outerWidth()/3),200>a&&(a=200),this.model.on(“new-posts”,this.reRender),this.model.get(“posts”).models.length<1?!1:(this.$el.removeClass(Juicer.Constants.FEED_CLASSES.join(“ ”)),this.$el.addClass(“modern”),this.$el.gridalicious({selector:“.feed-item”,width:a,gutter:this.gutter}),null==this.infiniteScroll?!0:this.infiniteScroll.shouldShowLoadMore()?void 0:this.infiniteScroll.removeLoadMore())},d.prototype.startInfiniteScroll=function(){return this.model.resetPage(),this.infiniteScroll=new Juicer.Views.InfiniteScroll({container:this.$el,model:this.model})},d.prototype.appendNextPage=function(a){return a.preventDefault(),this.$(“.j-paginate”).replaceWith(this.loading()),this.infiniteScroll.nextPage()},d.prototype.restorePost=function(a){var b;return b=this.hidePost(a,“Approving…”),b.restore()},d.prototype.rejectPost=function(a){var b;return b=this.hidePost(a,“Rejecting…”),b.reject()},d.prototype.urmRequestPost=function(a){var b,c;return b=this.hidePost(a,null,!1),c=$(a.target),this.model.campaign()?b.urmEligible()?b.urmSocialConnected(this.model)?this.overlay=new Juicer.Views.UrmRequest({el:this.el,post:b,feed:this.model}).render():this.overlay=new Juicer.Views.Overlay({content:this.urmConnectSocial({post:b}),element:this.el,width:“50%”}):this.overlay=new Juicer.Views.Overlay({content:this.urmNotEligible({post:b}),element:this.el,width:“50%”}):this.overlay=new Juicer.Views.Overlay({content:this.upgradeToCampaign({post:b}),element:this.el,width:“50%”}),this.overlay.render()},d.prototype.restoreFromUrm=function(a){var b;return b=this.hidePost(a,null,!1),b.restore(),this.overlay.removeView(),$(“”).parents(“.feed-item”).hide().remove()},d.prototype.hidePost=function(a,b,c){var d,e;return null==c&&(c=!0),a.preventDefault(),null!=b&&$(a.target).html(b),e=$(a.target).parents(“.actions”),d=this.fetchPost(e.data(“id”)),c&&e.parents(“.feed-item”).hide().remove(),d},d.prototype.fetchPost=function(a){return this.model.get(“posts”).findWhere({id:a})},d.prototype.filterFeed=function(a){var b,c,d;return a.preventDefault(),d=jQuery(a.target),c=d.attr(“data-filter”),b=d.parents(“ul”),this.model.filter=d.data(“filter”),this.model.resetPage(),this.model.fetch({success:function(a){return function(){return a.reRender()}}(this)})},d.prototype.bulkModerate=function(a){var b,c;return b=null!=$(a.target).data(“approve”),c=b?“approve”:“reject”,Juicer.Helpers.confirm(“Are you sure you want to ”c“ all of these posts?”)?(this.$(“.bulk-moderate-nav”).html(“<div class='j-loading'>Loading…</div>”),this.model.bulkModerate(b,this.model.filter),setTimeout(function(){return location.reload()},1e4)):void 0},d.prototype.unbindChildren=function(){return this.$el.empty().off(),this.infiniteScroll&&this.infiniteScroll.close(),this.model.off(“new-posts”,this.reRender),this.stopListening()},d.prototype.reRender=function(){return this.unbindChildren(),this.render(),this.delegateEvents()},d.prototype.menuItems=function(){var a;return a=this.baseMenuItems,this.model.campaign()&&(a=this.pendingMenu.concat(a)),a=this.allMenu.concat(a)},d.prototype.baseMenuItems=[{filter:“Filter”,title:“Text Filtered”},{filter:“Profanity”,title:“Profanity”},{filter:“User”,title:“Manually Deleted”},{filter:“Queue”,title:“Moderation Queue”},{filter:“Similarity”,title:“Duplicate Posts”},{filter:“Rejected”,title:“Rejected”}],d.prototype.pendingMenu=[{filter:“Pending”,title:“URM Pending Permission”}],d.prototype.allMenu=[{filter:void 0,title:“All”}],d}(JuicerBackbone.View)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.Nav=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.events={“click .menu”:“toggleMenuOpen”,“click .sidebar-toggle”:“toggleSidebarOpen”},c.prototype.toggleMenuOpen=function(){var a;return $(“.main-container”).removeClass(“open-right”).toggleClass(“open-left”),a=$(“.side-nav”),a.hasClass(“opened”)?a.toggleClass(“opened”):setTimeout(function(){return a.toggleClass(“opened”)},200)},c.prototype.toggleSidebarOpen=function(a){return $(“.main-container”).removeClass(“open-left”).toggleClass(“open-right”)},c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.NewFeed=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.template=JST.new_feed,c.prototype.initialize=function(){return this.socialAccounts=new Juicer.Collections.SocialAccounts,this.socialAccounts.fetch({success:function(a){return function(){return a.sourceForm=new Juicer.Views.SourceForm({el:a.el,socialAccounts:a.socialAccounts}),a.sourceForm.on(“create”,a.nextPage,a),a.render(),new Juicer.Views.OverlayReopener({model:a.feed,sourceForm:a.sourceForm}).render(a.el)}}(this),error:function(){return alert(“Something went wrong while fetching your connected social accounts”)}})},c.prototype.render=function(){return this.$el.html(this.template())},c.prototype.nextPage=function(a){return window.location=“/feeds/”+a.get(“slug”)},c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,b){return function(){return a.apply(b,arguments)}},b=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a=b);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},c={}.hasOwnProperty;Juicer.Views.Overlay=function©{function d(){return this.handleKeypress=a(this.handleKeypress,this),d.__super__.constructor.apply(this,arguments)}return b(d,c),d.prototype.className=“j-overlay”,d.prototype.template=JST.overlay,d.prototype.initialize=function(a){return this.element=a.element||“body”,this.content=a.content,this.width=a.width,this.close=a.close===!1?!1:!0,jQuery(document).bind(“keydown”,this.handleKeypress)},d.prototype.render=function(){return this.$el.html(this.template({content:this.content,close:this.close})),jQuery(this.element).children(“.j-overlay”)&&jQuery(this.element).children(“.j-overlay”).remove(),jQuery(this.element).append(this.el),jQuery(“.j-overlay-content”).css({width:this.width}).focus(),this.handleBrokenImages(),this},d.prototype.events=function(){return{“click .j-close”:“closeOverlay”,click:“removeOverlay”,“click .j-navigate a”:“triggerNavigate”,“click a.share”:“openPopup”,“click .j-gallery-arrow”:“gallery”}},d.prototype.gallery=function(a){return a.preventDefault(),this.trigger(“trigger:gallery”,jQuery(a.target))},d.prototype.removeOverlay=function(a){var b;return b=jQuery(a.target),b.hasClass(“j-overlay-content”)||b.parents(“.j-overlay-content”).length>0?void 0:this.removeView()},d.prototype.closeOverlay=function(a){return a.preventDefault(),this.removeView()},d.prototype.removeView=function(){return this.trigger(“close”),this.unbind(),this.remove(),this.$(“.j-overlay”).remove(),jQuery(this.element).find(“.j-overlay”).remove(),jQuery(document).unbind(“keydown”,this.handleKeypress)},d.prototype.triggerNavigate=function(a){return a.preventDefault(),this.trigger(“trigger:navigate”,jQuery(a.target).data(“post-id”))},d.prototype.openPopup=function(a){var b;return a.preventDefault(),b=jQuery(a.target),window.open(b.attr(“href”),“pop”,“width=600, height=400, scrollbars=no”)},d.prototype.handleKeypress=function(a){switch(a.keyCode){case 37:return this.$(“.j-previous”).click();case 39:return this.$(“.j-next”).click();case 27:return this.closeOverlay(a)}},d.prototype.handleBrokenImages=function(){return this.$(“.j-poster img”).on(“error”,function(a){return function(a){return console.log(“hiding broken profile image in overlay.”),$(a.target).hide()}}(this)),this.$(“img.j-content-image”).on(“error”,function(a){return function(a){var b;return b=jQuery(a.target).parents(“.image”),b.length>0?(console.log(“Hiding broken image in overlay.”),b.hide()):void 0}}(this)),this.$(“video source”).on(“error”,function(a){return function(a){var b;return b=$(a.target).parents(“.instagram-wrapper, .twitter-wrapper, .video-wrapper”),console.log(“hiding broken video in overlay”),b.hide()}}(this))},d}(JuicerBackbone.View)}.call(this),function(){var a=function(a,b){return function(){return a.apply(b,arguments)}},b=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a=b);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},c={}.hasOwnProperty;Juicer.Views.OverlayReopener=function©{function d(){return this.reRender=a(this.reRender,this),d.__super__.constructor.apply(this,arguments)}return b(d,c),d.prototype.el=window,d.prototype.storageKey=“juicer_overlay_open”,d.prototype.initialize=function(a){return null==a&&(a={}),this.sourceForm=a.sourceForm,this.parent=a.parent,this.reopened=!1},d.prototype.render=function(a){return this.overlayShouldReopen()&&(null==this.sourceForm&&(this.sourceForm=new Juicer.Views.SourceForm({el:a,feed:this.model})),this.sourceForm.openOverlay(this.get()),null!=this.parent&&this.sourceForm.on(“create”,this.reRender),this.clear(),this.reopened=!0),this},d.prototype.reRender=function(){return this.parent.renderSidebar()},d.prototype.overlayShouldReopen=function(){return!!this.get()},d.prototype.get=function(){var a;return a=this.el.localStorage.getItem(this.storageKey),JSON.parse(a)},d.prototype.set=function(a){var b;return b=JSON.stringify(a),this.el.localStorage.setItem(this.storageKey,b)},d.prototype.clear=function(){return this.el.localStorage.setItem(this.storageKey,null)},d}(JuicerBackbone.View)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.Payment=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.initialize=function(a){return this.toggleYear()},c.prototype.events={“change year”:“toggleYear”},c.prototype.toggleYear=function(){var a,b,c,d,e;return d=this.$(“#year”),c=$(“”),b=$(“.simple-plan-monthly”),a=c.data(“price”),d.is(“:checked”)?(e=Math.ceil(12*a-12*a*.1),c.html(“$”+e),b.html(“/ yr”)):(c.html(“$”+a),b.html(“/ mo”))},c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.Plans=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.template=JST.plan_change,c.prototype.events={“click [data-plan]”:“openNewPlanOverlay”},c.prototype.openNewPlanOverlay=function(a){var b;return a.preventDefault(),b=$(a.target),this.model=new Juicer.Models.Plan,this.model.fetch({data:{plan:b.data(“plan”)},success:function(a){return function(){return a.csrf=$(‘meta').attr(“content”),a.overlay=new Juicer.Views.Overlay({content:a.template({model:a.model,csrf:a.csrf}),element:a.el,width:“50%”}),a.overlay.render()}}(this)})},c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.PostEdit=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.template=JST.post_edit,c.prototype.message=JST,c.prototype.className=“j-overlay”,c.prototype.initialize=function(a){return this.setPost(a)},c.prototype.setPost=function(a){var b;return b=this.model.get(“posts”),this.post=b.get(a.id)},c.prototype.render=function(){return this.overlay=new Juicer.Views.Overlay({content:this.template({post:this.post,feed:this.model}),width:“50%”,el:this.el}),this.overlay.render()},c.prototype.events=function(){return{“input textarea”:“updatePreview”,“submit form”:“savePost”}},c.prototype.updatePreview=function(a){return this.post.set(“edit”,$(a.target).val()),this.$(“.message-container”).html(this.message({post:this.post}))},c.prototype.savePost=function(a){return a.preventDefault(),this.post.save(null,{success:function(a){return function(b,c){return a.overlay.removeView(),a.model.set(c,{parse:!0}),a.model.trigger(“action”)}}(this),error:function(){return alert(“Something went wrong. Please try again.”)}})},c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,b){return function(){return a.apply(b,arguments)}},b=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a=b);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},c={}.hasOwnProperty;Juicer.Views.PostOverlay=function©{function d(){return this.cycleGallery=a(this.cycleGallery,this),this.navigateOverlay=a(this.navigateOverlay,this),d.__super__.constructor.apply(this,arguments)}return b(d,c),d.prototype.template=JST.post_overlay,d.prototype.initialize=function(a){return this.model=a.model,this.setPost(a.target)},d.prototype.triggers=function(){return{“click a.next”:“navigateOverlay”,“click a.previous”:“navigateOverlay”}},d.prototype.setPost=function(a){var b;return a=a.is(“li.feed-item”)?a:a.parents(“li.feed-item”),b=a.data(“id”),this.assignPosts(b)},d.prototype.assignPosts=function(a){var b,c,d,e;return d=this.model.get(“posts”),this.post=d.get(a),b=d.indexOf(this.post),c=b+1<d.length?b+1:0,e=b-1>=0?b-1:d.length-1,this.next=d.at©,“Juicer”===this.next.sourceType()&&(this.next=d.at(c+1)),this.previous=d.at(e),“Juicer”===this.previous.sourceType()?this.previous=d.at(e-1):void 0},d.prototype.render=function(){return this.overlay=new Juicer.Views.Overlay({element:“body”,content:this.template({post:this.post,next:this.next,previous:this.previous,feed:this.model}),width:“75%”}),this.overlay.on(“trigger:navigate”,this.navigateOverlay),this.overlay.on(“trigger:gallery”,this.cycleGallery),this.overlay.render(),this.trigger(“render”,this)},d.prototype.navigateOverlay=function(a){return this.overlay.removeView(),this.assignPosts(a),this.render()},d.prototype.cycleGallery=function(a){return new Juicer.Views.Gallery({target:a,el:this.el,model:this.model})},d}(JuicerBackbone.View)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.SideNav=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.events={“click li#collapseable”:“toggleOtherFeeds”},c.prototype.toggleOtherFeeds=function(a){var b,c;return a.preventDefault(),c=$(a.target),b=c.next(),b.is(“:visible”)?(b.slideUp(),c.removeClass(“selected”)):(b.slideDown(),c.addClass(“selected”))},c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,b){return function(){return a.apply(b,arguments)}},b=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a=b);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},c={}.hasOwnProperty;Juicer.Views.Sidebar=function©{function d(){return this.openSourceFormFromSources=a(this.openSourceFormFromSources,this),this.openSubView=a(this.openSubView,this),this.openNewSource=a(this.openNewSource,this),this.reRenderCss=a(this.reRenderCss,this),this.reRender=a(this.reRender,this),this.render=a(this.render,this),d.__super__.constructor.apply(this,arguments)}return b(d,c),d.prototype.template=JST.sidebar,d.prototype.nameEdit=JST,d.prototype.newSource=JST,d.prototype.initialize=function(a){return $(“.main-container”).addClass(“sidebar-container”),this.moderation=a.moderation,this.moderation?this.model=new Juicer.Models.Moderated({slug:a.slug}):this.model=new Juicer.Models.Feed({slug:a.slug,starting_at:a.starting_at,admin:!0}),this.model.fetch({success:function(a){return function(){return a.hideLoader(),a.renderSidebar(),null!=a.reopener&&a.reopener.reopened?void 0:a.setupNewSources()}}(this),error:function(a){return function(){return a.hideLoader(),alert(“Sorry something is going wrong.”)}}(this)}),this.model.on(“action”,this.reRender,this),this.model.once(“sync”,this.render,this),this.model.on(“update:colors”,this.reRenderCss,this)},d.prototype.render=function(){var a;if(a=this.model.get(“posts”),1===a.current_page){if(!this.moderation)return this.feed=new Juicer.Views.Feed({el:“.juicer-feed”,model:this.model,admin:!0}).render();if(this.moderation)return this.renderModeration()}},d.prototype.reRender=function(){return null!=this.feed&&this.feed.close(),null!=this.overlay&&this.overlay.removeView(),null!=this.sourcesView&&this.sourcesView.reRender(),this.sourcesView=null,this.render()},d.prototype.reRenderCss=function(){return jQuery(“.juicer-custom-styles”).length>0?jQuery(“.juicer-custom-styles”).html(“<style>”+this.model.customStyles()+“</style>”):jQuery(“.juicer-feed”).prepend(“<div class='juicer-custom-styles'><style>”+this.model.customStyles()+“</style></div>”)},d.prototype.renderSidebar=function(){return this.$el.html(this.template({feed:this.model})),this.reopener=new Juicer.Views.OverlayReopener({model:this.model,parent:this}).render(this.el),this.model.get(“expired_social_accounts”)?void 0:this.$(“#social_accounts”).hide()},d.prototype.hideLoader=function(){return jQuery(“.loading-overlay”).fadeOut()},d.prototype.setupNewSources=function(){return this.sourceForm=new Juicer.Views.SourceForm({feed:this.model,el:this.el,socialAccounts:this.model.get(“social_accounts”)}),this.sourceForm.on(“create”,this.reRender)},d.prototype.renderModeration=function(){return this.moderation=!1,new Juicer.Views.Moderated({el:“ul.juicer-feed”,model:this.model}).render(),this.renderSubView(this.viewMap.moderate,this.$(“#moderate”)),$(“.moderation-nav .active”).removeClass(“active”),$(“.moderation-nav .moderated”).addClass(“active”)},d.prototype.events=function(){return{“click .feed-name-edit”:“renderFeedNameEdit”,“submit .feed-name-edit-form”:“updateFeedName”,“click .add-source”:“openNewSource”,“click .menu-item”:“openSubView”,“change slug_update”:“toggleSlugWarning”}},d.prototype.openNewSource=function(){return this.overlay=new Juicer.Views.Overlay({content:this.newSource(),width:“85%”,element:this.el}),this.overlay.render()},d.prototype.openSubView=function(a){var b,c;return a.preventDefault(),b=$(a.target),c=this.viewMap,this.renderSubView(c,b)},d.prototype.renderSubView=function(a,b){return this.subView&&this.subView.close(),this.subView=new a({feed:this.model,target:b,parent:this,feedView:this.feed}),this.subView.on(“openSourceForm”,this.openSourceFormFromSources),this.subView.render()},d.prototype.openSourceFormFromSources=function(a){return this.sourcesView=a,this.openNewSource()},d.prototype.viewMap={sources:Juicer.Views.Sources,social_accounts:Juicer.Views.SocialAccounts,settings:Juicer.Views.Settings,design:Juicer.Views.Design,embed:Juicer.Views.Embed,hub:Juicer.Views.Hub,moderate:Juicer.Views.Moderate,filter:Juicer.Views.Filter,analytics:Juicer.Views.Analytics,synced:Juicer.Views.Synced,features:Juicer.Views.Features},d.prototype.renderFeedNameEdit=function(a){return a.preventDefault(),this.overlay=new Juicer.Views.Overlay({content:this.nameEdit({feed:this.model}),element:this.el,width:“50%”}),this.overlay.render()},d.prototype.updateFeedName=function(a){var b;return a.preventDefault(),b=$(a.target).serializeHash(),this.model.set(b),this.model.save(null,{success:function(a){return function(a,b){return window.location=“/feeds/”+b.slug}}(this)})},d.prototype.toggleSlugWarning=function(){return this.$(“.slug-warning”).toggle()},d}(JuicerBackbone.View)}.call(this),function(){var a=function(a,b){return function(){return a.apply(b,arguments)}},b=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a=b);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},c={}.hasOwnProperty;Juicer.Views.Slider=function©{function d(){return this.setFeedItemHeight=a(this.setFeedItemHeight,this),this.beforeChange=a(this.beforeChange,this),d.__super__.constructor.apply(this,arguments)}return b(d,c),d.prototype.template=JST.feed,d.prototype.initialize=function(a){return this.interval=a.interval,this.admin=a.admin,this.columns=a.columns,this.slidesToShow=this.columns},d.prototype.render=function(){return this.$el.append(this.template({feed:this.model,admin:this.admin})),this.$el.css({visibility:“hidden”}),this.$el.slick(this.sliderSettings()),this.$el.on(“beforeChange”,this.beforeChange),this.$el.on(“afterChange”,function(a){return function(){return a.trigger(“slide”)}}(this)),imagesLoaded(this.$el,this.setFeedItemHeight),this.$el.hasClass(“j-ie”)&&this.setBackgroundImages(),jQuery(window).on(“resize”,_u.debounce(function(a){return function(){return a.setFeedItemHeight()}}(this),300)),this},d.prototype.beforeChange=function(a,b,c,d){return 0===d&&this.model.pollingAllowed()?this.model.fetchNewPosts(!1):void 0},d.prototype.sliderSettings=function(){return jQuery.extend(this.sliderDefaults(),{responsive:this.breakpoints()})},d.prototype.breakpoints=function(){return _u.map(this.breakpointArray,function(a){return function(b){return{breakpoint:b,settings:{slidesToShow:_u.min([b,a.slidesToShow]),slidesToScroll:_u.min([b,a.slidesToShow])}}}}(this))},d.prototype.breakpointArray=[,[1450,5],,[960,3],,[480,1]],d.prototype.sliderDefaults=function(){return{slidesToShow:this.slidesToShow,autoplay:0!==this.interval,autoplaySpeed:this.interval,slidesToScroll:this.slidesToShow,slide:“li”,adaptiveHeight:0===!this.$(“a.j-images”).length,cssEase:“ease”,pauseOnHover:!0}},d.prototype.setBackgroundImages=function(){return _u.each(this.$(“”),function(a){return function(a){var b;return b=jQuery(a),b.css(“background-image”,“url('”+b.data(“image”)+“')”)}}(this))},d.prototype.setFeedItemHeight=function(a){var b;return _u.each(this.$(“a.j-image img”),function(a){return function(a){return a.width>a.height?jQuery(a).addClass(“j-landscape”):void 0}}(this)),b=this.model.get(“height”)||300,this.$(“a.j-image img, li.words, .slick-track”).css({height:b}),this.$el.css({visibility:“visible”}),this.model.get(“lazy_load”)?!1:null==a?!1:_u.each(a.images,function(a){return function(a){var b;return a.isLoaded?void 0:(a=$(a.img),b=a.parents(“.feed-item”),console.log(“Juicer: post with id ”+b.data(“id”)+“ has a broken image. Converting to a text post.”),b.removeClass(“image-post”).removeClass(“j-video”).addClass(“words”),a.parents(“.j-image”).remove())}}(this))},d.prototype.stop=function(){return this.$el.slick(“stop”)},d.prototype.play=function(){return this.$el.slick(“play”)},d}(JuicerBackbone.View)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.SourceForm=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.template=JST.source_form,c.prototype.pleaseWait=JST.please_wait,c.prototype.initialize=function(a){return this.feed=a.feed,this.socialAccounts=a.socialAccounts?a.socialAccounts:this.feed.get(“social_accounts”),this.rendered=!1,this.submitting=!1},c.prototype.events=function(){return{“click .add-a-hashtag li”:“openHashtag”,“click .source”:“handleOverlay”,“click .open-location-search”:“renderLocationSearch”,“submit .source-form”:“createSource”,“submit .location-search”:“findLocation”,“click .source-type”:“redrawOverlay”,“click a.social-account”:“setOverlayStorage”,“click .search-result”:“submitSearchResult”}},c.prototype.handleOverlay=function(a,b){var c;return null==b&&(b=“username”),c=$(a.target),c.hasClass(“j-social-icon”)||(c=c.parents(“.j-social-icon”)),this.openOverlay({type:b,source:c.data(“type”)})},c.prototype.renderLocationSearch=function(){return this.openOverlay({type:“location_search”,source:this.source})},c.prototype.openOverlay=function(a){return this.type=a.type,this.source=a.source,this.model=new Juicer.Models.Source({source:this.source }),this.renderOverlay()},c.prototype.openHashtag=function(a){return this.handleOverlay(a,“hashtag”)},c.prototype.drawTemplate=function(){return this.template({source:this.model,feed:this.feed,type:this.type,results:this.results,socialAccounts:this.socialAccounts})},c.prototype.renderOverlay=function(){return this.overlay=new Juicer.Views.Overlay({content:this.drawTemplate(),element:this.el,width:“50%”,close:!1}),this.overlay.render(),“location_search”===this.type&&this.initializeGooglePlaces(),this.resultsNeedFetching()?this.fetchResults(this.type):void 0},c.prototype.resultsNeedFetching=function(){return _u.contains(,this.type)&&this.rendered!==this.type},c.prototype.redrawOverlay=function(a){return a.preventDefault(),this.type=$(a.target).data(“type”),this.overlay.removeView(),this.renderOverlay()},c.prototype.fetchResults=function(a){return null==a&&(a=“groups”),this.results=new Juicer.Collections.FacebookResults({type:a}),this.results.fetch({success:function(a){return function(){return a.rendered=a.type,a.renderOverlay()}}(this),error:function(){return confirm(“Something went wrong. Hit okay to go to the social accounts page and reset your Facebook token.”)?window.location=“/social-accounts”:void 0}})},c.prototype.initializeGooglePlaces=function(){return new Juicer.Views.GooglePlaces({el:this.el})},c.prototype.createSource=function(a){var b;return a.preventDefault(),this.submitting?void 0:(this.submitting=!0,b=$(a.target),b.find(“input”).hide(),b.append(“<div class='j-loading'>Loading…</div>”),this.timeout=setTimeout(function(a){return function(){return b.append(a.pleaseWait())}}(this),5e3),b.find(“ul.errors”).remove(),this.submitSource(b.serializeHash()))},c.prototype.submitSource=function(a){return this.model.set(a),this.model.save(null,{success:function(a){return function(b,c){return a.submitting=!1,a.feedObject().set(c,{parse:!0}),a.feed.trigger(“action”),a.timeout&&window.clearInterval(a.timeout),a.trigger(“create”,a.feed)}}(this),error:function(a){return function(b,c){return a.submitting=!1,a.timeout&&window.clearInterval(a.timeout),new Juicer.Views.Errors({el:a.$(“form”),errors:c}),a.$(“.source-form-example”).show()}}(this)})},c.prototype.feedObject=function(){return this.feed||(this.feed=new Juicer.Models.Feed)},c.prototype.submitSearchResult=function(a){var b;return a.preventDefault(),b=$(a.target),this.$(“.result-term”).val(b.data(“id”)),this.$(“.result-name”).val(b.data(“name”)),b.parents(“form”).trigger(“submit”)},c.prototype.findLocation=function(a){var b,c;return a.preventDefault(),c=$(a.target),b=new Juicer.Models.Location(c.serializeHash()),b.save(null,{success:function(a){return function(b,d){var e;return e=a.feed?a.feed.get(“id”):void 0,a.picker=new Juicer.Views.LocationPicker({el:a.$(“form”),locations:d,feedId:e,source:a.model}),a.picker.on(“submit”,function(b){return c.append(“<div class='j-loading'>Loading…</div>”),a.submitSource(b)})}}(this),error:function(a,b){return new Juicer.Views.Errors({el:this.$(“form”),errors:b})}})},c.prototype.setOverlayStorage=function(a){var b;return a.preventDefault(),b=new Juicer.Views.OverlayReopener,b.set({type:this.type,source:this.source}),window.location=jQuery(a.target).attr(“href”)},c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.UrmRequest=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.template=JST,c.prototype.events={“submit .urm-request-form”:“urmFormSubmit”},c.prototype.initialize=function(a){return this.post=a.post,this.feed=a.feed,this.socialAccount=this.post.urmSocialConnected(this.feed)},c.prototype.render=function(){return this.overlay=new Juicer.Views.Overlay({content:this.template({post:this.post,socialAccount:this.socialAccount,feed:this.feed}),element:this.el,width:“50%”}),this.overlay},c.prototype.urmFormSubmit=function(a){var b,c,d;return a.preventDefault(),d=$(a.target),d.find(“.errors”).remove(),d.find(“input”).remove(),d.append(“<div class=’j-loading’>Loading…”),c=this.fetchPost(parseInt(d.find(“input”).val())),b=this.attributes(d,c),b.errors.length>0?this.errors(b.errors,d):c.urmRequest({data:$.param(b),success:function(a){return function(){return a.overlay.removeView(),$(“ .urm-request”).removeClass(“urm-request”).html(“Permission Pending”),a.stopListening(),a.$el.off(“submit”,“.urm-request-form”)}}(this),error:function(a){return function(b,c,e){return a.errors(,d)}}(this)})},c.prototype.errors=function(a,b){var c;return c=$(“<ul class='errors tc-grapefruit twelve'></ul>”),_u.each(a,function(a){return function(a){return c.append(“<li class='mb-5'>”a“</li>”)}}(this)),b.prepend©,b.find(“.j-loading”).remove(),b.append(“<input class='j-button' type='submit' value='Request Permission' />”)},c.prototype.attributes=function(a){var b,c;return b={},c=a.find(“textarea”).val(),b.errors=this.validate(a),b.urm_message=c,b.urm_matcher=this.matcher©,b},c.prototype.validate=function(a){var b,c,d,e,f;return f=a.find(“textarea”),e=f.val(),d=f.attr(“maxlength”),b=[],e.length<1&&b.push(“Please include a message to the user asking for permission.”),e.length>d&&b.push(“Please limit your message to #{maxLength} characters.”),c=this.matcher(e),c.length<1&&b.push(“Please Include a hashtag in your message. The user will need to respond with this hashtag to grant permission.”),c.length>1&&b.push(“Please only include a single hashtag in your message, so Juicer knows what hashtag to verify the user has granted permission.”),b},c.prototype.matcher=function(a){var b;return b=a.match(/(^|s)(#+)/gi),_u.map(b,function(a){return a.trim()})},c.prototype.fetchPost=function(a){return this.feed.get(“posts”).findWhere({id:a})},c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,c){function d(){this.constructor=a}for(var e in c)b.call(c,e)&&(a=c);return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},b={}.hasOwnProperty;Juicer.Views.UserAccount=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return a(c,b),c.prototype.initialize=function(){return this.toggleDigest()},c.prototype.events={“change input”:“toggleDigest”},c.prototype.toggleDigest=function(){var a,b;return b=this.$(“#user_digest”),a=this.$(“.digest-label”),this.$(“input”).is(“:checked”)?(b.removeAttr(“disabled”),a.removeClass(“disabled”)):(b.attr(“disabled”,“disabled”),a.addClass(“disabled”),b.val(“Never”))},c}(JuicerBackbone.View)}.call(this),function(){var a=function(a,b){return function(){return a.apply(b,arguments)}},b=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a=b);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},c={}.hasOwnProperty;Juicer.Views.Widget=function©{function d(){return this.addPost=a(this.addPost,this),this.showNextPost=a(this.showNextPost,this),this.setPosts=a(this.setPosts,this),d.__super__.constructor.apply(this,arguments)}return b(d,c),d.prototype.template=JST.widget,d.prototype.card=JST,d.prototype.referral=JST,d.prototype.customCss=JST,d.prototype.initialize=function(a){return this.interval=a.interval,this.admin=a.admin,this.index=0,this.setPosts(),this.render(),5e3!==this.model.get(“interval”)&&5e3===this.interval&&(this.interval=this.model.get(“interval”)),0===this.interval&&(this.interval=5e7),window.juicerWidget=this,this.id=setInterval(this.showNextPost,this.interval)},d.prototype.setPosts=function(){return this.posts=this.model.get(“posts”).models},d.prototype.render=function(){return this.$el.append(this.template({first:this.posts,second:this.posts,admin:this.admin})),this.container=this.$(“.flip-container”),this.handleReferral(),this.$el.append(this.customCss({feed:this.model}))},d.prototype.showNextPost=function(){return this.container.toggleClass(“flip”),setTimeout(this.addPost,600),this.index++,this.index>=this.posts.length-1?(this.model.pollingAllowed()&&this.model.fetchNewPosts(!1),this.index=-1):void 0},d.prototype.addPost=function(){return this.element().html(this.card({post:this.posts,admin:this.admin,truncate:this.truncate}))},d.prototype.element=function(){return this.container.hasClass(“flip”)?this.$(“.front”):this.$(“.back”)},d.prototype.other=function(){return this.element().siblings()},d.prototype.handleReferral=function(){return this.model.paid()||this.admin||this.$el.find(“h1.referral”).length>0||this.$el.append(this.referral()),this.model.paid()?this.$el.find(“h1.referral”).remove():void 0},d.prototype.close=function(){return null!=this.id&&window.clearInterval(this.id),this.$el.empty().off(),this.stopListening(),this},d}(JuicerBackbone.View)}.call(this),Juicer.Constants={},Juicer.Constants.API_ROOT=“//www.juicer.io”,(navigator.userAgent.match(/MSIE 9/)||navigator.userAgent.match(/MSIE 8/)||“file:”===window.location.protocol)&&(Juicer.Constants.API_ROOT=“”+Juicer.Constants.API_ROOT),Juicer.cljs={},Juicer.Constants.ASSET_PATH=“https://assets.juicer.io”,Juicer.Constants.BASE_URL=“https://www.juicer.io”,Juicer.Constants.CACHE_BUSTER=“i think this is now getting cached on cloudflare”,Juicer.Constants.CAN_ADD_MANUAL=,Juicer.Constants.FACEBOOK_APP_ID=“731223346944897”,Juicer.Constants.FEED_CLASSES=,Juicer.Constants.GOOGLE_MAPS_KEY=“AIzaSyBphQRyC2Tke2HTDXPMrxbYzuk5ZgP7XTo”,Juicer.Constants.HELP_CENTER_URL=“https://help.juicer.io”,Juicer.Constants.PAID_PLANS=[“medium”,“large”,“custom”,“enterprise”,“campaign”,“archive”],Juicer.Constants.STRIPE_PUBLISHABLE_KEY=“pk_live_O4R3D1OryggCLZEsquEjTNBW”,$(function(){function a(){$(“.slide.video”).each(function(){var a=$(this).find(“.background video”).eq(0);b($(this))?a.play():a.pause()})}function b(a){var b=$(window).scrollTop(),c=$(a),d=(b+$(window).height(),c.offset().top);d+c.height();return b>d-$(window).height()&&b<d+c.height()}window.isScroll?$(“html,body”).on(“mousewheel”,function(){a()}):$(window).on(“slideChange”,function(a,b,c){if($(“video”).each(function(){$(this).pause()}),$©.hasClass(“video”)){var d=$©.find(“.background video”).eq(0);d.play()}})});