(function(){var a=function(e,w){var q={jsFiles:window.HOPSCOTCH_JS_DEPS||["lib/hopscotch/0.2.3/hopscotch"],cssFiles:window.HOPSCOTCH_CSS_DEPS||["css!scss/themes/katy/chrome/hopscotch"]},i="hopscotch-ready",c="keyup",h=27,m={showOn:"click",orientation:"top",target:e,showNumber:false,xOffset:0,yOffset:0,arrowOffset:0,zIndex:null,width:null,ctaLabel:null,ctaOnClick:null,onClose:o,openOnLoad:false,isRtl:false},j,d=$(e),r,s=false,u=false;
function f(){var x=LIModules.requires("HopscotchCallout");
if(!window.hopscotch&&!x.loadingHS){x.loadingHS=true;
require.ensure(q.cssFiles,function(z){for(var A=0,y=q.cssFiles.length;
A<y;
A++){z(q.cssFiles[A]).attach();
s=true;
g()
}});
if(!LIModules.imports("Bidi")){q.jsFiles.push("scripts/shared/Bidi")
}require.ensure(q.jsFiles,function(){for(var z=0,y=q.jsFiles.length;
z<y;
z++){require(q.jsFiles[z])
}u=true;
g()
})
}}function g(){if(s&&u){$(document).trigger(i)
}}w=$.extend(true,m,w);
j={id:w.id,title:w.title,content:w.content,orientation:w.orientation,target:w.target,showNumber:w.showNumber,xOffset:w.xOffset,yOffset:w.yOffset,zindex:w.zIndex,width:w.width,bubblePadding:0,showCTAButton:!!w.ctaLabel,ctaLabel:w.ctaLabel,onCTA:w.ctaOnClick,onClose:w.onClose,arrowOffset:w.arrowOffset,isRtl:w.isRtl,showOn:w.showOn};
function l(){var x=LIModules.imports("Bidi");
if(!j.isRtl&&x){x.applyWhenRTL(function(){j.isRtl=true
})
}}function p(x){x.attr("tabindex",-1).focus()
}function t(){d.focus()
}function v(){d.attr("aria-haspopup",true)
}function k(){r.off(c)
}function o(){if(window.hopscotch){hopscotch.getCalloutManager().removeAllCallouts()
}k();
t()
}function b(){r.on(c,function(x){if(x.keyCode===h){w.onClose()
}})
}function n(x,z){var y=null;
if(!window.hopscotch){$(document).bind(i,function(A,B){y=hopscotch.getCalloutManager();
y.removeAllCallouts();
l();
y.createCallout(j);
r=$(y.getCallout(j.id).element);
p(r)
})
}else{y=hopscotch.getCalloutManager();
y.removeAllCallouts();
if(x){x.stopPropagation()
}if(z){j.target=x.currentTarget
}l();
y.createCallout(j);
r=$(y.getCallout(j.id).element);
p(r);
b()
}}this.open=function(y,C,A){var B=LIModules.imports("QuickHelpManager"),x;
function z(){if(B&&B.tourRunning()){return
}n(y,C)
}if(A){n(y,C)
}else{x=LIModules.requires("Events");
if(B&&!B.isReady()){x.bind("QuickHelpRegistered",z)
}else{z()
}}};
this.close=function(){w.onClose()
};
f();
v();
if(w.openOnLoad){this.open()
}else{$(e).on(w.showOn,n)
}};
LIModules.exports("HopscotchCallout",a)
}());(function(b,a,c){a.define("Tabs");
a.Tabs=a.BaseControl.extend(function(d){var e={currentClass:"tabs-current"};
return{beforeDecoration:function(){this.isMouseEvent=false
},afterDecoration:function(){this._config=_.defaults(this._config,e);
this._$controls=this._$el.children();
this._$tabs=this._config.tabsElement?$(this._config.tabsElement).children():this._$controls.next().children()
},attachEventListeners:function(){this._$controls.on("click",_.bind(this._handleClick,this));
this._$controls.on("mouseup",_.bind(this._setMouseUser,this,true))
},_setMouseUser:function(f){this.isMouseEvent=f
},currentTab:0,_handleClick:function(g){var f=this._$controls.index(g.currentTarget);
g.preventDefault();
this.showTab(f)
},showTab:function(f){var g=this._config.currentClass,h=$(this._$tabs[f]);
if(f!==this.currentTab&&h.length){this._$controls.removeClass(g).eq(f).addClass(g);
this._$tabs.removeClass(g).eq(f).addClass(g);
if(!this.isMouseEvent){h.attr("tabindex",-1).focus()
}this.currentTab=f
}this._setMouseUser(false);
return this
}}
});
define("scripts/shared/Tabs",[],function(){return a.Tabs
})
}(this,LI));(function(){var c=LIModules.requires("jquery"),b=LIModules.imports("BaseControl"),a=LIModules.imports("Tabs"),d;
d=a.extend(function(e){return{beforeDecoration:function(){e.beforeDecoration.call(this);
this._wasContentAlreadyRequested=false
},_darkPostRendering:function(i){var h="tl/shared/uscp/feed/main",g,l=c(".direct-sponsored-updates-panel"),j=l.find(".feed"),k,g,f=this;
if(f._config.isConsumer2){k=LIModules.requires("BizFeedInit");
j[0].innerHTML=i;
g=new k(l.find(".js-feed-content")[0]);
g.initUpdates();
g.initFeed();
LI.Events.fire("layout:init-dark-posts-layout",j.eq(0).find(".feed-item"))
}else{dust.render(h,i.content,function(n,m){if(!n){j[0].innerHTML=m;
LI.Events.fire("layout:init-dark-posts-layout",j.eq(0).find(".feed-item"));
LI.Controls.parseFragment(j)
}else{f._darkPostErrorRendering()
}})
}},_darkPostErrorRendering:function(){var f=c(".direct-sponsored-updates-panel");
c(".loader",f).hide();
c(".empty-module-updates",f).removeClass("hidden")
},_handleClick:function(h){var g=c(h.currentTarget).data("ajax-endpoint"),f=this;
e._handleClick.call(this,h);
if(!this._wasContentAlreadyRequested&&g){this._wasContentAlreadyRequested=true;
c.ajax({url:g,success:f._darkPostRendering,error:f._darkPostErrorRendering})
}}}
});
LIModules.exports("BizDirectSponsoredTabs",d)
}());function ShowMore(c,d){var d=d||{};
c=(c.constructor==String)?YDom.get(c):c;
var d={charCount:d.charCount||100,className:d.className||"",showMoreText:d.showMoreText||LI.i18n.get("ShowMore-see-more"),showLessText:d.showLessText||LI.i18n.get("ShowMore-see-less"),showMoreTextLong:d.showMoreTextLong||LI.i18n.get("ShowMore-see-more-long"),showLessTextLong:d.showLessTextLong||LI.i18n.get("ShowMore-see-less-long"),showEllipsis:(d.showEllipsis===false)?false:true};
if(c&&c.innerHTML){var l=c.innerHTML,b=d.charCount,f=d.showMoreText,g=/<\/?\w+(\s+\w+="?[^>]*"?)*\s*>/g,p=l.match(g),e=l.replace(g,"|").replace(/\n/g,"\u0007").replace(/\s+/g," ").replace(/(^\s|\s$)/g,""),o=e.match(new RegExp("(.{"+b+"})(.*)"));
if(!o||o[2].length<f.length*1.5){return null
}else{var k=o[1],m=o[2];
if(k.match(/\w$/)&&m.match(/^\w/)){m=k.match(/\w+$/)[0]+m;
k=k.replace(/\w+$/,"")
}var n,j,a=[],i={collapsed:true,showMore:f,showLess:d.showLessText,showMoreLong:d.showMoreTextLong,showLessLong:d.showLessTextLong,className:d.className,el:c};
while(p&&p[0]){n=p.shift();
if(k.match(/\|[^$]/)){k=k.replace(/\|/,n)
}else{if(k.match(/\|/)){k=k.replace(/\|/,"")
}else{if(n.match(/<\//)){a.push(n)
}}}if(p.length==0){k+=a.join("")
}}var h=k.replace(/^\s+|\s+$/g,"");
if(d.showEllipsis){h+="..."
}h=h.replace(/\u0007/g,"\n");
i.content={original:l,truncated:h};
c.innerHTML=h;
j=i.link=document.createElement("A");
j.href="#";
j.title=d.showLessTextLong;
j.className="toggle-show-more";
j.innerHTML=i.showLess;
if(i.collapsed){j.title=d.showMoreTextLong;
j.innerHTML=i.showMore
}c.appendChild(j);
YEvent.on(c,"click",this.toggle,i)
}}}ShowMore.prototype={toggle:function(a,e){var f,d=e.link,c=e.content,b=YEvent.getTarget(a);
if(b.tagName=="A"&&b.className=="toggle-show-more"){YEvent.preventDefault(a);
f=e.collapsed=!e.collapsed;
this.removeChild(d);
if(f){d.title=e.showMoreLong;
d.innerHTML=e.showMore;
this.innerHTML=c.truncated;
if(e.className&&e.el){YDom.removeClass(e.el,e.className)
}}else{d.title=e.showLessLong;
d.innerHTML=e.showLess;
this.innerHTML=c.original;
if(e.className&&e.el){YDom.addClass(e.el,e.className)
}}this.appendChild(d)
}}};(function(){var b,g,e;
function a(){if(g){$(".dismiss",g).on("click",function(h){g.remove()
})
}}function d(h){if(!e){var j=$("#join-linkedin-dialog .sign-in").attr("href"),i=j?LI.parseQueryString(j):{},k=i["trk"];
if(k){e=j.replace(k,"biz-feed-social-actions")
}else{return
}}window.location.href=e;
return false
}function c(h){setTimeout(function(){LI.Dialog().open({name:"join-linkedin-dialog",type:"interrupt",className:"dialog-v2 no-padding",width:455,content:{title:b,node:"join-linkedin-dialog"}})
},100);
return false
}function f(){var i=$("#biz-careers-sticky"),h=$("#feed-content");
g=$(".join-linkedin-promo");
b=LI.i18n.get("biz_join_linkedin");
h.on("click","a.like, a.focus-comment-form, li.seemore a, li.feed-share a",d);
h.on("click",".other-likers",c);
h.on("focus","textarea",c);
if(i.length){$(".careers-promo","#biz-careers-top").clone().appendTo(i)
}a()
}if(window.LI_JS_TEST){window.BizGuestPage={init:f}
}else{fs.after("biz_feed",f)
}}());(function(){dust.register("tl/shared/uscp/feed/_assets",a);
function a(c,b){return c.reference(b.get(["tlAuto_1"],false),b,"h",["s"]).reference(b.get(["tlAuto_2"],false),b,"h",["s"]).reference(b.get(["tlAuto_3"],false),b,"h",["s"]).reference(b.get(["tlAuto_4"],false),b,"h",["s"]).reference(b.get(["tlAuto_5"],false),b,"h",["s"]).reference(b.get(["tlAuto_6"],false),b,"h",["s"]).reference(b.get(["tlAuto_7"],false),b,"h",["s"]).reference(b.get(["tlAuto_8"],false),b,"h",["s"]).reference(b.get(["tlAuto_9"],false),b,"h",["s"]).reference(b.get(["tlAuto_10"],false),b,"h",["s"])
}return a
})();
(function(){dust.register("_assets",dust.cache["tl/shared/uscp/feed/_assets"])
})();(function(a,b){var c=function(e,f){var h=b.imports("WebTracking"),j=window.encodeURIComponent,i={classNames:{LIKE:"fb-like",SHARE:"fb-share-button"},types:{LIKE:"LIKE",SHARE:"SHARE"}};
var g=b.imports("htmlUnencode");
f=_.defaults(f||{},{type:null,actionType:null,text:null,url:null,webtrack:null,winParams:"width=550,height=380"});
function k(m){return function(){if(m&&h){h.trackUserAction(m)
}}
}function l(m,n){if(!e){return
}if(e.tagName==="A"){e.href=n
}e.addEventListener("click",function(o){o.preventDefault();
k(f.webtrack)();
window.open(m,null,f.winParams)
})
}function d(m){m=m||i.types.LIKE;
return function(){var n,o;
if(f.url){var p="https://www.facebook.com/sharer/sharer.php?u="+j(f.url);
n=p+(f.text?"&t="+j(g?g(f.text):f.text):"");
o=p+(f.text?"&t="+j(f.text):"");
l(n,o)
}}
}this.linkedinLoad=function(){var m,n;
if(f.url){var o="https://www.linkedin.com/shareArticle?url="+j(f.url);
m=o+(f.text?"&summary="+j(g?g(f.text):f.text):"");
m+=(f.title?"&title="+j(f.title):"");
n=o+(f.text?"&summary="+j(f.text):"");
n+=(f.title?"&title="+j(f.title):"");
l(m,n)
}};
this.facebookShareLoad=d(i.types.SHARE);
this.facebookLikeLoad=d(i.types.LIKE);
this.facebookLoad=d(i.types.SHARE);
this.twitterLoad=function(){var m,n;
if(f.url){var o="https://twitter.com/intent/tweet?&url="+j(f.url);
m=o+(f.text?"&text="+j(g?g(f.text):f.text):"");
n=o+(f.text?"&text="+j(f.text):"");
l(m,n)
}};
this.googleplusLoad=function(){var m;
if(f.url){m="https://plus.google.com/u/0/share?url="+j(f.url);
l(m,m)
}};
if(f.type){this[f.type+"Load"]()
}};
b.exports("SocialShareButton",c)
}(window.require,window.LIModules));