/*!
AddThis - v8.28.6 - 20200604;
Copyright (c) 1998, 2020, Oracle and/or its affiliates.
*/

/*!

preact : 8.5.2
MIT
The MIT License (MIT)

Copyright (c) 2015-present Jason Miller

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



react-addons-pure-render-mixin : 0.14.3
BSD-3-Clause
BSD License

For React software

Copyright (c) 2013-2015, Facebook, Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

 * Redistributions of source code must retain the above copyright notice, this
   list of conditions and the following disclaimer.

 * Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.

 * Neither the name Facebook nor the names of its contributors may be used to
   endorse or promote products derived from this software without specific
   prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.



preact-compat : 3.18.4
MIT
The MIT License (MIT)

Copyright (c) 2016 Jason Miller

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



standalone-react-addons-pure-render-mixin : 0.1.1
MIT
MIT License

Copyright (c)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.



prop-types : 15.7.2
MIT
MIT License

Copyright (c) 2013-present, Facebook, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.




*/
atwpjp([209],{26:function(e,t,n){!function(e,n){n(t)}(this,function(e){"use strict";function t(e,t){var n=L,r=void 0,i=void 0,a=void 0,o=void 0;for(o=arguments.length;o-- >2;)O.push(arguments[o]);for(t&&null!=t.children&&(O.length||O.push(t.children),delete t.children);O.length;)if((i=O.pop())&&void 0!==i.pop)for(o=i.length;o--;)O.push(i[o]);else"boolean"==typeof i&&(i=null),(a="function"!=typeof e)&&(null==i?i="":"number"==typeof i?i=String(i):"string"!=typeof i&&(a=!1)),a&&r?n[n.length-1]+=i:n===L?n=[i]:n.push(i),r=a;var s=new N;return s.nodeName=e,s.children=n,s.attributes=null==t?void 0:t,s.key=null==t?void 0:t.key,void 0!==R.vnode&&R.vnode(s),s}function n(e,t){for(var n in t)e[n]=t[n];return e}function r(e,t){e&&("function"==typeof e?e(t):e.current=t)}function i(e,r){return t(e.nodeName,n(n({},e.attributes),r),arguments.length>2?[].slice.call(arguments,2):e.children)}function a(e){!e._dirty&&(e._dirty=!0)&&1==W.push(e)&&(R.debounceRendering||I)(o)}function o(){for(var e=void 0;e=W.pop();)e._dirty&&x(e)}function s(e,t,n){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&l(e,t.nodeName):n||e._componentConstructor===t.nodeName}function l(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function u(e){var t=n({},e.attributes);t.children=e.children;var r=e.nodeName.defaultProps;if(void 0!==r)for(var i in r)void 0===t[i]&&(t[i]=r[i]);return t}function d(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}function c(e){var t=e.parentNode;t&&t.removeChild(e)}function p(e,t,n,i,a){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)r(n,null),r(i,e);else if("class"!==t||a)if("style"===t){if(i&&"string"!=typeof i&&"string"!=typeof n||(e.style.cssText=i||""),i&&"object"==typeof i){if("string"!=typeof n)for(var o in n)o in i||(e.style[o]="");for(var s in i)e.style[s]="number"==typeof i[s]&&U.test(s)===!1?i[s]+"px":i[s]}}else if("dangerouslySetInnerHTML"===t)i&&(e.innerHTML=i.__html||"");else if("o"==t[0]&&"n"==t[1]){var l=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),i?n||e.addEventListener(t,f,l):e.removeEventListener(t,f,l),(e._listeners||(e._listeners={}))[t]=i}else if("list"!==t&&"type"!==t&&!a&&t in e){try{e[t]=null==i?"":i}catch(e){}null!=i&&i!==!1||"spellcheck"==t||e.removeAttribute(t)}else{var u=a&&t!==(t=t.replace(/^xlink:?/,""));null==i||i===!1?u?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof i&&(u?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),i):e.setAttribute(t,i))}else e.className=i||""}function f(e){return this._listeners[e.type](R.event&&R.event(e)||e)}function h(){for(var e=void 0;e=q.shift();)R.afterMount&&R.afterMount(e),e.componentDidMount&&e.componentDidMount()}function m(e,t,n,r,i,a){B++||(z=null!=i&&void 0!==i.ownerSVGElement,V=null!=e&&!(F in e));var o=v(e,t,n,r,a);return i&&o.parentNode!==i&&i.appendChild(o),--B||(V=!1,a||h()),o}function v(e,t,n,r,i){var a=e,o=z;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||i)?e.nodeValue!=t&&(e.nodeValue=t):(a=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(a,e),g(e,!0))),a[F]=!0,a;var s=t.nodeName;if("function"==typeof s)return C(e,t,n,r);if(z="svg"===s||"foreignObject"!==s&&z,s=String(s),(!e||!l(e,s))&&(a=d(s,z),e)){for(;e.firstChild;)a.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(a,e),g(e,!0)}var u=a.firstChild,c=a[F],p=t.children;if(null==c){c=a[F]={};for(var f=a.attributes,h=f.length;h--;)c[f[h].name]=f[h].value}return!V&&p&&1===p.length&&"string"==typeof p[0]&&null!=u&&void 0!==u.splitText&&null==u.nextSibling?u.nodeValue!=p[0]&&(u.nodeValue=p[0]):(p&&p.length||null!=u)&&y(a,p,n,r,V||null!=c.dangerouslySetInnerHTML),S(a,t.attributes,c),z=o,a}function y(e,t,n,r,i){var a=e.childNodes,o=[],l={},u=0,d=0,p=a.length,f=0,h=t?t.length:0,m=void 0,y=void 0,b=void 0,S=void 0,T=void 0;if(0!==p)for(var P=0;P<p;P++){var _=a[P],x=_[F],C=h&&x?_._component?_._component.__key:x.key:null;null!=C?(u++,l[C]=_):(x||(void 0!==_.splitText?!i||_.nodeValue.trim():i))&&(o[f++]=_)}if(0!==h)for(var E=0;E<h;E++){S=t[E],T=null;var w=S.key;if(null!=w)u&&void 0!==l[w]&&(T=l[w],l[w]=void 0,u--);else if(d<f)for(m=d;m<f;m++)if(void 0!==o[m]&&s(y=o[m],S,i)){T=y,o[m]=void 0,m===f-1&&f--,m===d&&d++;break}T=v(T,S,n,r),b=a[E],T&&T!==e&&T!==b&&(null==b?e.appendChild(T):T===b.nextSibling?c(b):e.insertBefore(T,b))}if(u)for(var M in l)void 0!==l[M]&&g(l[M],!1);for(;d<=f;)void 0!==(T=o[f--])&&g(T,!1)}function g(e,t){var n=e._component;n?E(n):(null!=e[F]&&r(e[F].ref,null),t!==!1&&null!=e[F]||c(e),b(e))}function b(e){for(e=e.lastChild;e;){var t=e.previousSibling;g(e,!0),e=t}}function S(e,t,n){var r=void 0;for(r in n)t&&null!=t[r]||null==n[r]||p(e,r,n[r],n[r]=void 0,z);for(r in t)"children"===r||"innerHTML"===r||r in n&&t[r]===("value"===r||"checked"===r?e[r]:n[r])||p(e,r,n[r],n[r]=t[r],z)}function T(e,t,n){var r=void 0,i=G.length;for(e.prototype&&e.prototype.render?(r=new e(t,n),w.call(r,t,n)):(r=new w(t,n),r.constructor=e,r.render=P);i--;)if(G[i].constructor===e)return r.nextBase=G[i].nextBase,G.splice(i,1),r;return r}function P(e,t,n){return this.constructor(e,n)}function _(e,t,n,i,o){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,"undefined"==typeof e.constructor.getDerivedStateFromProps&&(!e.base||o?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,i)),i&&i!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=i),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,n!==H&&(n!==j&&R.syncComponentUpdates===!1&&e.base?a(e):x(e,j,o)),r(e.__ref,e))}function x(e,t,r,i){if(!e._disable){var a=e.props,o=e.state,s=e.context,l=e.prevProps||a,d=e.prevState||o,c=e.prevContext||s,p=e.base,f=e.nextBase,v=p||f,y=e._component,b=!1,S=c,P=void 0,C=void 0,w=void 0;if(e.constructor.getDerivedStateFromProps&&(o=n(n({},o),e.constructor.getDerivedStateFromProps(a,o)),e.state=o),p&&(e.props=l,e.state=d,e.context=c,t!==A&&e.shouldComponentUpdate&&e.shouldComponentUpdate(a,o,s)===!1?b=!0:e.componentWillUpdate&&e.componentWillUpdate(a,o,s),e.props=a,e.state=o,e.context=s),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!b){P=e.render(a,o,s),e.getChildContext&&(s=n(n({},s),e.getChildContext())),p&&e.getSnapshotBeforeUpdate&&(S=e.getSnapshotBeforeUpdate(l,d));var M=P&&P.nodeName,k=void 0,N=void 0;if("function"==typeof M){var O=u(P);C=y,C&&C.constructor===M&&O.key==C.__key?_(C,O,j,s,!1):(k=C,e._component=C=T(M,O,s),C.nextBase=C.nextBase||f,C._parentComponent=e,_(C,O,H,s,!1),x(C,j,r,!0)),N=C.base}else w=v,k=y,k&&(w=e._component=null),(v||t===j)&&(w&&(w._component=null),N=m(w,P,s,r||!p,v&&v.parentNode,!0));if(v&&N!==v&&C!==y){var L=v.parentNode;L&&N!==L&&(L.replaceChild(N,v),k||(v._component=null,g(v,!1)))}if(k&&E(k),e.base=N,N&&!i){for(var I=e,D=e;D=D._parentComponent;)(I=D).base=N;N._component=I,N._componentConstructor=I.constructor}}for(!p||r?q.push(e):b||(e.componentDidUpdate&&e.componentDidUpdate(l,d,S),R.afterUpdate&&R.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);B||i||h()}}function C(e,t,n,r){for(var i=e&&e._component,a=i,o=e,s=i&&e._componentConstructor===t.nodeName,l=s,d=u(t);i&&!l&&(i=i._parentComponent);)l=i.constructor===t.nodeName;return i&&l&&(!r||i._component)?(_(i,d,D,n,r),e=i.base):(a&&!s&&(E(a),e=o=null),i=T(t.nodeName,d,n),e&&!i.nextBase&&(i.nextBase=e,o=null),_(i,d,j,n,r),e=i.base,o&&e!==o&&(o._component=null,g(o,!1))),e}function E(e){R.beforeUnmount&&R.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?E(n):t&&(null!=t[F]&&r(t[F].ref,null),e.nextBase=t,c(t),G.push(e),b(t)),r(e.__ref,null)}function w(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function M(e,t,n){return m(n,e,{},!1,t,!1)}function k(){return{}}var N=function(){},R={},O=[],L=[],I="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout,H=0,j=1,A=2,D=3,F="__preactattr_",U=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,W=[],q=[],B=0,z=!1,V=!1,G=[];n(w.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=n(n({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),a(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),x(this,A)},render:function(){}});var $={h:t,createElement:t,cloneElement:i,createRef:k,Component:w,render:M,rerender:o,options:R};e.default=$,e.h=t,e.createElement=t,e.cloneElement=i,e.createRef=k,e.Component=w,e.render=M,e.rerender=o,e.options=R,Object.defineProperty(e,"__esModule",{value:!0})})},27:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){window.$ENV&&"production"!==window.$ENV.NODE_ENV&&(0,o.default)(e&&"function"==typeof e&&e.prototype,"bindMethods must be passed a class/constructor function with a prototype property.");var t=e.prototype;return Object.keys(t).forEach(function(e){var n=t[e];"function"==typeof n&&Object.defineProperty(t,e,{get:function(){if(this.hasOwnProperty(e))return n;var t=n.bind(this);return Object.defineProperty(this,e,{value:t,configurable:!0,writable:!0}),t}})}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(21),o=r(a);e.exports=t.default},28:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments[3];window.$ENV&&"production"!==window.$ENV.NODE_ENV&&((0,p.default)("function"==typeof e,"Cannot apply mixins to non-functions. Received an argument of type %s.","undefined"==typeof e?"undefined":d(e)),(0,p.default)("[object Object]"===Object.prototype.toString.call(e.prototype),"Cannot apply mixins to functions lacking a prototype object."),(0,p.default)("[object Array]"===Object.prototype.toString.call(t),"Supplied mixins must be in the form of an array."));var l=e.prototype,u=e;if(n){r=r||l.displayName||e.name||"NewMixedClass";var c=i({},r,function(e){function t(){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),t}(e));l=(0,h.default)(c[r].prototype,l),u=c[r]}return t.forEach(function(e){Object.keys(e).forEach(function(t){if("getInitialState"===t){var n=l,r=n.componentWillMount;l.componentWillMount=function(){this.state=this.state||{},(0,h.default)(this.state,e.getInitialState.call(this)),r&&r.call(this)}}else if(l[t]){var i=l[t];l[t]=function(){for(var n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];e[t].apply(this,r),i.apply(this,r)}}else l[t]=e[t]})}),u}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var d="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return"undefined"==typeof e?"undefined":u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":"undefined"==typeof e?"undefined":u(e)};t.default=l;var c=n(21),p=r(c),f=n(8),h=r(f);e.exports=t.default},38:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){var n=function(t){function n(e){return i(this,n),a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e))}return o(n,t),l(n,[{key:"handleClick",value:function(){this.props.handleClick&&this.props.handleClick.apply(null,arguments)}},{key:"getTemplatePlaceholder",value:function(){return"{{reducedBrandingInnerHTML}}"}},{key:"getAnchorElements",value:function(){if(this.props.isRenderingToString)return this.getTemplatePlaceholder();var t=this.props,n=t.campaign,r=t.color,i=t.isBrandingReduced,a=t.supplementalClass,o=t.url,s="string"==typeof o?o:(0,p.default)(n),l=i?"at-branding-info":"at-branding-logo",u="AddThis",d={href:s,className:a?l+" "+a:l,style:r?{color:r,borderColor:r}:{},title:"Powered by AddThis",target:"_blank",key:"at-branding-anchor"};return i?e("a",d,[e("span",{key:"at-branding-anchor-span"},u)]):e("a",d,[e("div",{className:"at-branding-icon",key:"at-branding-anchor-div"},""),e("span",{className:"at-branding-addthis",key:"at-branding-anchor-span"},u)])}},{key:"render",value:function(){return e("div",{onClick:this.handleClick,className:this.props.containerClass},[this.getAnchorElements()])}}]),n}(t);return n.defaultProps={containerClass:"",isBrandingReduced:!1},(0,v.default)((0,h.default)(n,[d.default],!0))}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=s;var u=n(39),d=r(u),c=n(44),p=r(c),f=n(28),h=r(f),m=n(27),v=r(m);e.exports=t.default},39:function(e,t,n){e.exports=n(40)},40:function(e,t,n){e.exports=n(41)},41:function(e,t,n){"use strict";var r=n(42);e.exports={shouldComponentUpdate:function(e,t){return r(this,e,t)}}},42:function(e,t,n){"use strict";var r=n(43);e.exports=function(e,t,n){return!r(e.props,t)||!r(e.state,n)}},43:function(e,t){"use strict";function n(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}var r=Object.prototype.hasOwnProperty;e.exports=function(e,t){if(n(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var o=0;o<i.length;o++)if(!r.call(t,i[o])||!n(e[i[o]],t[i[o]]))return!1;return!0}},384:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(385),a=r(i),o=n(385),s=r(o);e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.hostNodeId;delete t.hostNodeId;var r=a.default.createElement(e,t);s.default.render(r,document.getElementById(n))}},385:function(e,t,n){!function(t,r){e.exports=r(n(386),n(26))}(this,function(e,t){"use strict";function n(){return null}function r(e){var t=e.nodeName,n=e.attributes;e.attributes={},t.defaultProps&&P(e.attributes,t.defaultProps),n&&P(e.attributes,n)}function i(e,t){var n,r,i;if(t){for(i in t)if(n=z.test(i))break;if(n){r=e.attributes={};for(i in t)t.hasOwnProperty(i)&&(r[z.test(i)?i.replace(/([A-Z0-9])/,"-$1").toLowerCase():i]=t[i])}}}function a(e,n,r){var i=n&&n._preactCompatRendered&&n._preactCompatRendered.base;i&&i.parentNode!==n&&(i=null),!i&&n&&(i=n.firstElementChild);for(var a=n.childNodes.length;a--;)n.childNodes[a]!==i&&n.removeChild(n.childNodes[a]);var o=t.render(e,n,i);return n&&(n._preactCompatRendered=o&&(o._component||{base:o})),"function"==typeof r&&r(),o&&o._component||o}function o(e,n,r,i){var o=t.h(Q,{context:e.context},n),s=a(o,r),l=s._component||s.base;return i&&i.call(l,s),l}function s(e){o(this,e.vnode,e.container)}function l(e,n){return t.h(s,{vnode:e,container:n})}function u(e){var r=e._preactCompatRendered&&e._preactCompatRendered.base;return!(!r||r.parentNode!==e)&&(t.render(t.h(n),e,r),!0)}function d(e){return m.bind(null,e)}function c(e,t){for(var n=t||0;n<e.length;n++){var r=e[n];Array.isArray(r)?c(r):r&&"object"==typeof r&&!g(r)&&(r.props&&r.type||r.attributes&&r.nodeName||r.children)&&(e[n]=m(r.type||r.nodeName,r.props||r.attributes,r.children))}}function p(e){return"function"==typeof e&&!(e.prototype&&e.prototype.render)}function f(e){return E({displayName:e.displayName||e.name,render:function(){return e(this.props,this.context)}})}function h(e){var t=e[q];return t?t===!0?e:t:(t=f(e),Object.defineProperty(t,q,{configurable:!0,value:!0}),t.displayName=e.displayName,t.propTypes=e.propTypes,t.defaultProps=e.defaultProps,Object.defineProperty(e,q,{configurable:!0,value:t}),t)}function m(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return c(e,2),v(t.h.apply(void 0,e))}function v(e){e.preactCompatNormalized=!0,T(e),p(e.nodeName)&&(e.nodeName=h(e.nodeName));var t=e.attributes.ref,n=t&&typeof t;return!Y||"string"!==n&&"number"!==n||(e.attributes.ref=b(t,Y)),S(e),e}function y(e,n){for(var r=[],i=arguments.length-2;i-- >0;)r[i]=arguments[i+2];if(!g(e))return e;var a=e.attributes||e.props,o=t.h(e.nodeName||e.type,P({},a),e.children||a&&a.children),s=[o,n];return r&&r.length?s.push(r):n&&n.children&&s.push(n.children),v(t.cloneElement.apply(void 0,s))}function g(e){return e&&(e instanceof $||e.$$typeof===W)}function b(e,t){return t._refProxies[e]||(t._refProxies[e]=function(n){t&&t.refs&&(t.refs[e]=n,null===n&&(delete t._refProxies[e],t=null))})}function S(e){var t=e.nodeName,n=e.attributes;if(n&&"string"==typeof t){var r={};for(var i in n)r[i.toLowerCase()]=i;if(r.ondoubleclick&&(n.ondblclick=n[r.ondoubleclick],delete n[r.ondoubleclick]),r.onchange&&("textarea"===t||"input"===t.toLowerCase()&&!/^fil|che|rad/i.test(n.type))){var a=r.oninput||"oninput";n[a]||(n[a]=R([n[a],n[r.onchange]]),delete n[r.onchange])}}}function T(e){var t=e.attributes||(e.attributes={});ne.enumerable="className"in t,t.className&&(t.class=t.className),Object.defineProperty(t,"className",ne)}function P(e,t){for(var n=arguments,r=1,i=void 0;r<arguments.length;r++)if(i=n[r])for(var a in i)i.hasOwnProperty(a)&&(e[a]=i[a]);return e}function _(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}function x(e){return e&&(e.base||1===e.nodeType&&e)||null}function C(){}function E(e){function t(e,t){k(this),j.call(this,e,t,V),O.call(this,e,t)}return e=P({constructor:t},e),e.mixins&&M(e,w(e.mixins)),e.statics&&P(t,e.statics),e.propTypes&&(t.propTypes=e.propTypes),e.defaultProps&&(t.defaultProps=e.defaultProps),e.getDefaultProps&&(t.defaultProps=e.getDefaultProps.call(t)),C.prototype=j.prototype,t.prototype=P(new C,e),t.displayName=e.displayName||"Component",t}function w(e){for(var t={},n=0;n<e.length;n++){var r=e[n];for(var i in r)r.hasOwnProperty(i)&&"function"==typeof r[i]&&(t[i]||(t[i]=[])).push(r[i])}return t}function M(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=R(t[n].concat(e[n]||X),"getDefaultProps"===n||"getInitialState"===n||"getChildContext"===n))}function k(e){for(var t in e){var n=e[t];"function"!=typeof n||n.__bound||B.hasOwnProperty(t)||((e[t]=n.bind(e)).__bound=!0)}}function N(e,t,n){if("string"==typeof t&&(t=e.constructor.prototype[t]),"function"==typeof t)return t.apply(e,n)}function R(e,t){return function(){for(var n,r=arguments,i=this,a=0;a<e.length;a++){var o=N(i,e[a],r);if(t&&null!=o){n||(n={});for(var s in o)o.hasOwnProperty(s)&&(n[s]=o[s])}else"undefined"!=typeof o&&(n=o)}return n}}function O(e,t){L.call(this,e,t),this.componentWillReceiveProps=R([L,this.componentWillReceiveProps||"componentWillReceiveProps"]),this.render=R([L,I,this.render||"render",H])}function L(t,n){if(t){var r=t.children;if(r&&Array.isArray(r)&&1===r.length&&("string"==typeof r[0]||"function"==typeof r[0]||r[0]instanceof $)&&(t.children=r[0],t.children&&"object"==typeof t.children&&(t.children.length=1,t.children[0]=t.children)),G){var i="function"==typeof this?this:this.constructor,a=this.propTypes||i.propTypes,o=this.displayName||i.name;a&&e.checkPropTypes(a,t,"prop",o)}}}function I(e){Y=this}function H(){Y===this&&(Y=null)}function j(e,n,r){t.Component.call(this,e,n),this.state=this.getInitialState?this.getInitialState():{},this.refs={},this._refProxies={},r!==V&&O.call(this,e,n)}function A(e,t){j.call(this,e,t)}function D(e){e()}e=e&&e.hasOwnProperty("default")?e.default:e;var F="15.1.0",U="a abbr address area article aside audio b base bdi bdo big blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins kbd keygen label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt ruby s samp script section select small source span strong style sub summary sup table tbody td textarea tfoot th thead time title tr track u ul var video wbr circle clipPath defs ellipse g image line linearGradient mask path pattern polygon polyline radialGradient rect stop svg text tspan".split(" "),W="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,q="undefined"!=typeof Symbol&&Symbol.for?Symbol.for("__preactCompatWrapper"):"__preactCompatWrapper",B={constructor:1,render:1,shouldComponentUpdate:1,componentWillReceiveProps:1,componentWillUpdate:1,componentDidUpdate:1,componentWillMount:1,componentDidMount:1,componentWillUnmount:1,componentDidUnmount:1},z=/^(?:accent|alignment|arabic|baseline|cap|clip|color|fill|flood|font|glyph|horiz|marker|overline|paint|stop|strikethrough|stroke|text|underline|unicode|units|v|vector|vert|word|writing|x)[A-Z]/,V={},G=!1;try{G=!1}catch(e){}var $=t.h("a",null).constructor;$.prototype.$$typeof=W,$.prototype.preactCompatUpgraded=!1,$.prototype.preactCompatNormalized=!1,Object.defineProperty($.prototype,"type",{get:function(){return this.nodeName},set:function(e){this.nodeName=e},configurable:!0}),Object.defineProperty($.prototype,"props",{get:function(){return this.attributes},set:function(e){this.attributes=e},configurable:!0});var K=t.options.event;t.options.event=function(e){return K&&(e=K(e)),e.persist=Object,e.nativeEvent=e,e};var Z=t.options.vnode;t.options.vnode=function(e){if(!e.preactCompatUpgraded){e.preactCompatUpgraded=!0;var t=e.nodeName,n=e.attributes=null==e.attributes?{}:P({},e.attributes);"function"==typeof t?(t[q]===!0||t.prototype&&"isReactComponent"in t.prototype)&&(e.children&&""===String(e.children)&&(e.children=void 0),e.children&&(n.children=e.children),e.preactCompatNormalized||v(e),r(e)):(e.children&&""===String(e.children)&&(e.children=void 0),e.children&&(n.children=e.children),n.defaultValue&&(n.value||0===n.value||(n.value=n.defaultValue),delete n.defaultValue),i(e,n))}Z&&Z(e)};var Q=function(){};Q.prototype.getChildContext=function(){return this.props.context},Q.prototype.render=function(e){return e.children[0]};for(var Y,X=[],J={map:function(e,t,n){return null==e?null:(e=J.toArray(e),n&&n!==e&&(t=t.bind(n)),e.map(t))},forEach:function(e,t,n){return null==e?null:(e=J.toArray(e),n&&n!==e&&(t=t.bind(n)),void e.forEach(t))},count:function(e){return e&&e.length||0},only:function(e){if(e=J.toArray(e),1!==e.length)throw new Error("Children.only() expects only one child.");return e[0]},toArray:function(e){return null==e?[]:X.concat(e)}},ee={},te=U.length;te--;)ee[U[te]]=d(U[te]);var ne={configurable:!0,get:function(){return this.class},set:function(e){this.class=e}};P(j.prototype=new t.Component,{constructor:j,isReactComponent:{},replaceState:function(e,t){var n=this;this.setState(e,t);for(var r in n.state)r in e||delete n.state[r]},getDOMNode:function(){return this.base},isMounted:function(){return!!this.base}}),C.prototype=j.prototype,A.prototype=new C,A.prototype.isPureReactComponent=!0,A.prototype.shouldComponentUpdate=function(e,t){return _(this.props,e)||_(this.state,t)};var re={version:F,DOM:ee,PropTypes:e,Children:J,render:a,createClass:E,createPortal:l,createFactory:d,createElement:m,cloneElement:y,isValidElement:g,findDOMNode:x,unmountComponentAtNode:u,Component:j,PureComponent:A,unstable_renderSubtreeIntoContainer:o,unstable_batchedUpdates:D,__spread:P};return re})},386:function(e,t,n){e.exports=n(387)()},387:function(e,t,n){"use strict";function r(){}function i(){}var a=n(388);i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,o){if(o!==a){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},388:function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},389:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=n(385),s=r(o),l=n(390),u=r(l),d=n(496),c=r(d),p=n(44),f=r(p),h=n(5),m=r(h),v=n(497),y=r(v),g=n(499),b=r(g),S=n(500),T=r(S),P=n(341),_=r(P),x=n(501),C=r(x),E=n(8),w=r(E),M=n(503),k=r(M),N=n(504),R=r(N),O=n(66),L=r(O),I=n(401),H=r(I),j=n(506),A=r(j),D=n(473),F=r(D),U=n(507),W=r(U),q=n(508),B=r(q),z=n(511),V=r(z),G=n(521),$=r(G),K=n(522),Z=r(K),Q=n(38),Y=r(Q),X=n(520),J=r(X);n(478);var ee=F.default.ICON_RENDER_INCREMENT,te=F.default.NUM_ICONS_TO_INITIALLY_RENDER,ne=F.default.MAX_TOP_SERVICES,re=(0,m.default)("mob");t.default=s.default.createClass({displayName:"ExpandedMenuControllerView",propTypes:{customServicesCss:s.default.PropTypes.object,documentBodyClassName:s.default.PropTypes.string,documentElementClassName:s.default.PropTypes.string,eventDispatcher:s.default.PropTypes.object.isRequired,handleClose:s.default.PropTypes.func,handleShare:s.default.PropTypes.func,initialInnerPane:s.default.PropTypes.string,initiallyLoadAllServices:s.default.PropTypes.bool,initialMenuConfig:s.default.PropTypes.object.isRequired,initialMenuShare:s.default.PropTypes.object.isRequired,initialMenuType:s.default.PropTypes.oneOf(["share","follow"]),initialTotalServices:s.default.PropTypes.object,isBrandingReduced:s.default.PropTypes.bool,isInitiallyHidden:s.default.PropTypes.bool,isLoading:s.default.PropTypes.bool,isRenderingToString:s.default.PropTypes.bool,isStandalone:s.default.PropTypes.bool,mailtoUrl:s.default.PropTypes.string,tellfriendQueryString:s.default.PropTypes.string,topServices:s.default.PropTypes.array,trackUrlForCopyLink:s.default.PropTypes.string,translations:s.default.PropTypes.object},getDefaultProps:function(){return{customServicesCss:{},isBrandingReduced:!1,initialInnerPane:"expanded",initiallyLoadAllServices:!1,initialMenuType:"share",initialTotalServices:{},isInitiallyHidden:!1,isLoading:!1,isRenderingToString:!1,isStandalone:!1,tellfriendQueryString:"",topServices:[]}},getInitialState:function(){return(0,w.default)({},this.resetStateFromProps(this.props),{forceRefreshServices:!1,maxListHeight:null,menuBodyTop:null,visiblePageHeight:null,visiblePageWidth:null})},componentWillMount:function(){this.props.isRenderingToString||(this.setupEvents(),this.setPositionInformation(null,!this.state.isHidden),this.state.isHidden||((0,_.default)(document.body,"at-expanded-menu-noscroll"),(0,_.default)(document.documentElement,"at-expanded-menu-noscroll")),this.setState({addthisHref:(0,f.default)("AddThis expanded menu")}))},componentWillReceiveProps:function(e){this.props.isStandalone&&this.setState(this.resetStateFromProps(e))},componentDidUpdate:function(e,t){t.isHidden&&!this.state.isHidden?((0,_.default)(document.body,"at-expanded-menu-noscroll"),(0,_.default)(document.documentElement,"at-expanded-menu-noscroll"),document.getElementById("at-expanded-menu-bd").scrollTop=0):!t.isHidden&&this.state.isHidden&&(document.body.className=this.props.documentBodyClassName||"",document.documentElement.className=this.props.documentElementClassName||"")},componentWillUnmount:function(){this.teardownEvents(),document.body.className=this.props.documentBodyClassName,document.documentElement.className=this.props.documentElementClassName},resetStateFromProps:function(e){var t=e.initiallyLoadAllServices,n=e.initialMenuConfig,r=e.initialMenuShare,i=e.initialMenuType,a=e.initialInnerPane,o=e.initialTotalServices,s=e.isInitiallyHidden;return{currentMenuConfig:n,currentMenuShare:r,currentMenuType:i,currentInnerPane:a,currentTotalServices:o,isHidden:s,loadAllServices:t,partitionServices:"follow"!==i}},setupEvents:function(){var e=this.props.eventDispatcher;e.addEventListener("addthis.expanded.reopen",this.handleReopenMenu),re?window.addEventListener("orientationchange",this.resetPositionAfterOrientationChange):(C.default.setup(e),e.addEventListener("addthis.events.resize",this.setPositionInformation))},teardownEvents:function(){var e=this.props.eventDispatcher;e.removeEventListener("addthis.expanded.reopen",this.handleReopenMenu),re?window.removeEventListener("orientationchange",this.resetPositionAfterOrientationChange):e.removeEventListener("addthis.events.resize",this.setPositionInformation)},getServicesData:function(e,t,n,r,i){var a=(0,W.default)(r,t,n);return{servicesDataMap:a,services:(0,B.default)(e,a,i)}},getBoundaryInformation:function(){return{visiblePageHeight:(0,y.default)(),visiblePageWidth:(0,b.default)(),menuBodyTop:(0,T.default)().y}},getMaxListHeight:function(e){return e.visiblePageHeight},getTellfriendData:function(e,t){var n=void 0;n=this.props.isStandalone?this.props.tellfriendQueryString:(0,H.default)("email",0,e,t).split("?").pop();var r=(0,k.default)(n);return["title","url","ui_email_to","ui_email_from","ui_email_note","screenshot","email_vars"].forEach(function(e){r[e]=decodeURIComponent((0,A.default)(e,n)),"email_vars"===e&&r.email_vars&&(r.email_vars=r.email_vars.split("&").map(function(e){return e.split("=")}).reduce(function(e,t){var n=a(t,2),r=n[0],i=n[1];return e[r]=decodeURIComponent(i),e},{}))}),r},setPositionInformation:function(e,t,n){var r=this,i=this.getBoundaryInformation(),a=i.visiblePageWidth,o=i.visiblePageHeight,s=i.menuBodyTop,l=void 0;if(t){var u=function(){r.isMounted()&&r.setState({maxListHeight:r.getMaxListHeight(i)})};window.requestAnimationFrame?window.requestAnimationFrame(u):setTimeout(u,16),l={menuBodyTop:s,visiblePageHeight:o,visiblePageWidth:a}}else l={visiblePageHeight:o,visiblePageWidth:a,menuBodyTop:s,maxListHeight:this.getMaxListHeight(i)};n&&(l=(0,w.default)(l,n)),this.setState(l)},toggleMenu:function(e,t){if(t=t||{},this.props.isStandalone&&"click"===t.type)return null!==(0,R.default)(".at-expanded-menu-close",t.target)?(this.props.handleClose&&this.props.handleClose(),window.close()):t.stopPropagation();var n=t.pane?{currentInnerPane:t.pane}:{};if(!e)return this.props.eventDispatcher.fire("addthis.menu.close",window.addthis||{},{pane:this.state.currentInnerPane}),this.setState((0,w.default)(n,{isHidden:!0}));var r=(0,w.default)(!0,n,{currentMenuConfig:t.menuConfig||this.state.currentMenuConfig||{},currentMenuShare:t.menuShare||this.state.currentMenuShare||{},currentMenuType:t.menuType||this.state.currentMenuType||"share",currentTotalServices:t.totalServices||this.state.currentTotalServices||{},forceRefreshServices:t.menuType!==this.state.currentMenuType,isHidden:!1,partitionServices:"follow"!==t.menuType});return this.setPositionInformation(null,!0,r)},trackLinkClick:function(e){e.stopPropagation(),this.props.eventDispatcher.fire("addthis.expanded.monitor.at-link-click")},handleLoadAllServices:function(){this.setState({loadAllServices:!0})},handleShare:function(e,t){if(t&&t.stopPropagation(),!e)return void(re||this.props.isStandalone||this.toggleMenu(!1));this.props.isStandalone&&"link"===e&&this.setState({currentInnerPane:"link"});var n=this.state,r=n.currentMenuType,i=n.currentMenuShare,a=n.currentMenuConfig;if(this.props.handleShare)this.props.handleShare(e,i,a,r),"mailto"===e&&this.props.mailtoUrl&&(window.location.href=this.props.mailtoUrl);else if("follow"===r){var o=i._expandedMenuFollowServices||[],s=o.filter(function(t){return t.service===e}).reduce(function(e){return e});(0,c.default)(e,s||{},"smlmo-1.0",i,a,{track:!0,clone:!0})}else{var l=(0,w.default)(!0,{},i,a,{defaultShareToNewTab:!0});(0,u.default)(e,l)}this.props.eventDispatcher.fire("addthis.expanded.monitor.share"),re||this.props.isStandalone||this.toggleMenu(!1)},handleReopenMenu:function(e){this.toggleMenu(!0,e.data||{})},handleEscape:function(e){27!==e.keyCode||re||this.toggleMenu(!1)},getHeaderData:function(e){if(this.props.isRenderingToString)return{shareTitle:"{{shareTitle}}",shareURL:"{{shareURL}}",shareHeading:"{{shareHeading}}"};e||(e={});var t=e,n=t.url,r=void 0===n?"":n,i=t.title,a=void 0===i?"":i,o=t.shareHeading,s=void 0===o?"":o;return{shareHeading:s,shareTitle:a,shareURL:r}},getInnerElement:function(){if(this.props.isLoading)return s.default.createElement(J.default,null);var e=this.state,t=e.currentMenuConfig,n=e.currentMenuShare,r=e.isHidden,a=e.menuBodyTop,o=this.getHeaderData(n),l=o.shareHeading,u=o.shareTitle,d=o.shareURL,c=this.props.translations,p=void 0===c?{}:c;switch(this.state.currentInnerPane){case"email":return s.default.createElement($.default,i({atc:t,ats:n,eventDispatcher:this.props.eventDispatcher,isHidden:r,isMobile:re,mainHeading:l||p.emailAFriend||(0,L.default)("Email",4),toggleMenu:this.toggleMenu,translations:p},this.getTellfriendData(n,t)));case"link":return s.default.createElement(Z.default,{isMobile:re,isStandalone:this.props.isStandalone,mainHeading:l||p.copyLink,menuBodyTop:a,menuConfig:t,menuShare:n,shareTitle:u,shareURL:d,trackURL:this.props.trackUrlForCopyLink});case"expanded":var f=this.props,h=f.topServices,m=f.customServicesCss,v=this.state,y=v.currentMenuType,g=v.currentTotalServices,b=v.maxListHeight,S=v.visiblePageHeight,T=v.visiblePageWidth,P="follow"===y,_=this.getServicesData(g,h,m,t,P),x=_.services,C=_.servicesDataMap,E=Object.keys(C.expanded).length>0,w=l||p[y]||(P?(0,L.default)("Follow",96):(0,L.default)("Share",91));return s.default.createElement(V.default,{forceRefreshServices:this.state.forceRefreshServices,handleLoadAllServices:this.handleLoadAllServices,handleShare:this.handleShare,iconRenderIncrement:ee,isHidden:r,isMobile:re,isRenderingToString:this.props.isRenderingToString,loadAllServices:this.state.loadAllServices,mainHeading:w,maxListHeight:b,maxTopServices:ne,menuBodyTop:a,numIconsToInitiallyRender:te,partitionServices:this.state.partitionServices,shareTitle:u,shareURL:d,services:x,servicesDataMap:C,translations:p,userSpecifiedExpanded:E,visiblePageHeight:S,visiblePageWidth:T})}},getFade:function(){return"expanded"!==this.state.currentInnerPane||(0,m.default)("ie10")||(0,m.default)("ie9")||(0,m.default)("ie8")?null:s.default.createElement("div",{className:"at-expanded-menu-fade"})},getPrivacyLink:function(){if("email"!==this.state.currentInnerPane)return null;var e=this.props.translations,t=void 0===e?{}:e;return s.default.createElement("span",{className:"at-expanded-menu-privacy-link"},s.default.createElement("a",{href:"https://www.addthis.com/privacy",target:"_blank",title:"AddThis Privacy Information"},t.privacy||(0,L.default)("Privacy",24)))},render:function(){var e=this.props,t=e.isBrandingReduced,n=e.isRenderingToString,r=e.isStandalone,i="";return re?i+="at-expanded-menu-mobile":(0,m.default)("saf")&&(i+="at-expanded-menu-safari"),r&&(i+=" at-expanded-menu-standalone"),(this.state.isHidden||n)&&(i+=" at-expanded-menu-hidden"),s.default.createElement("div",{id:"at-expanded-menu-container",className:i,role:"dialog",ariaLabeledby:"at-expanded-menu-title",tabIndex:"0",ref:"menuContainer",onKeyDown:this.handleEscape},s.default.createElement("button",{className:"at-expanded-menu-close","aria-label":"Close",onClick:this.toggleMenu.bind(this,!1)},s.default.createElement("span",null,"×")),s.default.createElement("div",{className:"at-win-mask at-expanded-menu-mask",onClick:this.toggleMenu.bind(this,!1)}),this.getInnerElement(),s.default.createElement((0,Y.default)(s.default.createElement.bind(s.default),s.default.Component),{campaign:"AddThis expanded menu",handleClick:this.trackLinkClick,isBrandingReduced:t,isRenderingToString:n,supplementalClass:"at-expanded-menu-branding",url:this.state.addthisHref},null),this.getPrivacyLink(),this.getFade())}}),e.exports=t.default},458:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){n.e(211,function(){n(459),e&&e()})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(81);r(a);e.exports=t.default},499:function(e,t,n){"use strict";var r=n(498),i=n(5);e.exports=function(){var e=document.documentElement||{},t=window.screen,n=0;return i("mob")&&r(t.availWidth)?n=t.availWidth:r(window.innerWidth)?n=window.innerWidth:r(e.clientWidth)&&(n=e.clientWidth),n}},500:function(e,t){"use strict";function n(){return{x:void 0!==window.pageXOffset?window.pageXOffset:document.documentElement?document.documentElement.scrollLeft:document.body.scrollLeft,y:void 0!==window.pageYOffset?window.pageYOffset:document.documentElement?document.documentElement.scrollTop:document.body.scrollTop}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default},501:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){return window.outerHeight||(0,c.default)()}function a(){return window.outerWidth||(0,f.default)()}function o(){return{outerHeight:i(),innerHeight:(0,c.default)(),outerWidth:a(),innerWidth:(0,f.default)()}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(23),l=n(502),u=r(l),d=n(497),c=r(d),p=n(499),f=r(p),h=n(9),m=r(h),v="resize",y=!1,g={setup:function(e,t){y||(y=!0,this._setDimensions(o()),this._dispatcher=e||addthis.ed,this._namespace=t||"addthis.events",this._listener=(0,u.default)({fn:this._listener,ms:100,context:this}),(0,s.listen)(window,v,this._listener))},teardown:function(){y=!1,(0,s.unlisten)(window,v,this._listener)},_setDimensions:function(e){for(var t in e)e.hasOwnProperty(t)&&(this["_"+t]=e[t])},_listener:function(){var e=o(),t=(0,m.default)(e,function(e,t,n){return e?e:t!==this["_"+n]},!1,this);t&&(this._dispatcher.fire(this._namespace+"."+v,null,e),this._setDimensions(e))},_outerHeight:null,_innerHeight:null,_outerWidth:null,_innerWidth:null,_dispatcher:null,_namespace:null};t.default=g,e.exports=t.default},502:function(e,t){"use strict";e.exports=function(e){e=e||{};var t="function"==typeof e.fn?e.fn:function(){},n="number"==typeof e.ms?e.ms:100,r=e.context||this,i=e.immediate||!1,a=null;return i?function(){a?clearTimeout(a):t.apply(r,arguments),a=setTimeout(function(){a=null},n)}:function(){var e=arguments;clearTimeout(a),a=setTimeout(function(){a=null,t.apply(r,e)},n)}}},504:function(e,t,n){"use strict";var r=n(505);e.exports=function e(t,n){return n&&(n instanceof Element||1===n.nodeType)?null===t||"undefined"==typeof t?n:"string"!=typeof t?null:r(n,t)?n:e(t,n.parentNode):null}},505:function(e,t){"use strict";e.exports=function(e,t){var n=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n)return n.call(e,t);for(var r=(e.document||e.ownerDocument).querySelectorAll(t),i=r.length;--i>=0&&r.item(i)!==e;);return i>-1}},506:function(e,t){"use strict";function n(e,t){var n=new RegExp(e+"=(.*?)(?:&|$)"),r=n.exec(t);return r?r[1]:""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default},507:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return(0,u.default)(e,function(e,n){if(!(n.name&&n.url&&n.icon))return e;if(!n.code)try{n.code=n.url.split("//").pop().split("?").shift().split("/").shift().toLowerCase()}catch(e){(0,d.warn)("A service code was not supplied for the custom service "+n.name+", and we were unable to generate one from the service URL ("+n.url+"). Skipping this service.")}return e.services[n.code]=n.name,e.mungedServiceCodes[(0,s.default)(n.code)]=n.code,e.css[n.code]=t[n.code]||{"background-image":"url("+n.icon+")","background-repeat":"no-repeat","background-position":"top left","background-color":"transparent !important","background-size":"84px",width:"84px",height:"84px"},e},{services:{},mungedServiceCodes:{},css:{}})}function a(e,t,n){var r=e.services_expanded?e.services_expanded.split(/\,\s*/):[],a=e.services_exclude?e.services_exclude.split(/\,\s*/):[],o=e.services_custom||[],s=function(e,t){return e[t]=!0,e};return{top:t.slice(0,c.MAX_TOP_SERVICES).reduce(s,{}),expanded:r.reduce(s,{}),exclude:a.reduce(s,{}),custom:i(o,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var o=n(366),s=r(o),l=n(9),u=r(l),d=n(13),c=n(473);e.exports=t.default},508:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){var r=n?(0,m.default)({},e,t.custom.services):e,i=(0,T.default)("mob");return(0,c.default)(r,function(e){return!(t.exclude[e]||i&&(0,y.default)(P,e))})}function a(e){var t=(0,f.default)(e,function(e,t){return[t,e]}).sort(function(e,t){var n=e[1].toLowerCase().replace(/^the /,""),r=t[1].toLowerCase().replace(/^the /,"");return n<r?-1:n>r?1:0});return(0,f.default)(t,function(e){return e[0]})}function o(e,t){return(0,u.default)(e,function(e,r){var i=n(510),a=i(r)||t[r];return a&&e.push({code:r,name:a}),e},[])}function s(e,t,n){var r=i(e,t,!0),s=Object.keys(t.expanded).length>0,l=[];if(s){var u=Object.keys(t.expanded);l=o(u,r)}else{var d=a(r),c=n?[]:i(t.top,t,!1),p=(0,b.default)(Object.keys(c),d);l=o(p,r)}return l}Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var l=n(9),u=r(l),d=n(46),c=r(d),p=n(45),f=r(p),h=n(8),m=r(h),v=n(509),y=r(v),g=n(323),b=r(g),S=n(5),T=r(S),P=["favorites","compact"];e.exports=t.default},510:function(e,t,n){var r=n(66),i={email:{english:"Email",stringKey:4},favorites:{english:"Favorites",stringKey:5},print:{english:"Print",stringKey:22},domaintoolswhois:{english:"Whois Lookup",stringKey:106},w3validator:{english:"HTML Validator",stringKey:107},mailto:{english:"Email App",stringKey:108},cleansave:{english:"Save",stringKey:109},link:{english:"Copy Link",stringKey:110}};e.exports=function(e){return"object"==typeof i[e]&&r(i[e].english,i[e].stringKey)}},511:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(385),o=r(a),s=n(8),l=r(s),u=n(502),d=r(u),c=n(512),p=r(c),f=n(5),h=r(f),m=n(513),v=r(m),y=n(514),g=r(y),b=n(515),S=r(b),T=window.requestAnimationFrame||function(e){return setTimeout(e,16)};t.default=o.default.createClass({displayName:"ExpandedMenuServices",_incrementalRenderTimeoutId:null,_scrollRequestAnimationId:null,propTypes:{forceRefreshServices:o.default.PropTypes.bool,handleLoadAllServices:o.default.PropTypes.func.isRequired,handleShare:o.default.PropTypes.func.isRequired,iconRenderIncrement:o.default.PropTypes.number.isRequired,isHidden:o.default.PropTypes.bool,isMobile:o.default.PropTypes.bool,isRenderingToString:o.default.PropTypes.bool,loadAllServices:o.default.PropTypes.bool,mainHeading:o.default.PropTypes.string,maxListHeight:o.default.PropTypes.number,maxTopServices:o.default.PropTypes.number.isRequired,menuBodyTop:o.default.PropTypes.number,numIconsToInitiallyRender:o.default.PropTypes.number.isRequired,services:o.default.PropTypes.array.isRequired,servicesDataMap:o.default.PropTypes.object.isRequired,partitionServices:o.default.PropTypes.bool.isRequired,translations:o.default.PropTypes.object,userSpecifiedExpanded:o.default.PropTypes.bool,visiblePageHeight:o.default.PropTypes.number,visiblePageWidth:o.default.PropTypes.number},getDefaultProps:function(){return{forceRefreshServices:!1,isHidden:!1,isMobile:!1,isRenderingToString:!1,loadAllServices:!1,mainHeading:"Share",maxListHeight:null,services:[],servicesDataMap:{custom:{}},userSpecifiedExpanded:!1,visiblePageHeight:null}},getInitialState:function(){var e=this.props,t=e.numIconsToInitiallyRender,n=e.loadAllServices,r=e.services;return{filterHeight:null,filterText:"",filterValue:"",headerHeight:null,isFilterFixed:!1,numIconsToRender:t,refocusInput:!1,servicesToShow:this.getServicesToShow(r,"",t,n)}},componentWillMount:function(){this.props.isRenderingToString||(this.filterServices=(0,d.default)({fn:this.filterServices,ms:100}))},componentDidMount:function(){var e=this;this.props.isMobile||(0,h.default)("saf")?T(function(){e.isMounted()&&e.setState({headerHeight:e.getHeaderHeight()})}):this.shouldQueueRender()&&this.queueNextIncrementalRender()},componentWillReceiveProps:function(e){var t=this.props,n=t.loadAllServices,r=t.isHidden,i=t.isMobile,a=t.services,o=e.forceRefreshServices&&!this.props.forceRefreshServices;if(o||!n&&e.loadAllServices||a.length!==e.services.length){var s=this.state,l=s.filterValue,u=s.numIconsToRender;this.setState({refocusInput:!i,servicesToShow:this.getServicesToShow(e.services,l,u,e.loadAllServices)})}else r===e.isHidden||i||this.setState({refocusInput:!e.isHidden})},shouldComponentUpdate:function(e,t){var n=["services","servicesDataMap","servicesToShow"],r={props:e,state:t},i=!1;for(var a in r)if(r.hasOwnProperty(a)){var o=r[a];for(var s in o){var l=o[s],u=this[a][s];if(i=n.indexOf(s)===-1?l!==u:JSON.stringify(l)!==JSON.stringify(u))break}if(i)break}return i},componentDidUpdate:function(e,t){return t.filterText!==this.state.filterText?this.filterServices():void(this.shouldQueueRender()&&this.queueNextIncrementalRender())},shouldQueueRender:function(){return this.props.loadAllServices&&!this.state.filterValue&&this.state.numIconsToRender<this.props.services.length},queueNextIncrementalRender:function(){this._incrementalRenderTimeoutId=T(this.renderIconsIncrementally)},renderIconsIncrementally:function(){var e=this.state,t=e.filterValue,n=e.numIconsToRender,r=n+this.props.iconRenderIncrement;this.isMounted()&&this.setState({numIconsToRender:r,servicesToShow:this.getServicesToShow(this.props.services,t,r,this.props.loadAllServices)})},filterServices:function(){var e=this.state.filterText,t=this.props.numIconsToInitiallyRender,n=this.props.loadAllServices;!this.isMounted()||e===this.state.filterValue&&t===this.state.numIconsToRender||this.setState({filterValue:e,numIconsToRender:t,servicesToShow:this.getServicesToShow(this.props.services,e,t,n)})},handleFilterTextChange:function(e){clearTimeout(this._incrementalRenderTimeoutId),this._incrementalRenderTimeoutId=null,this.setState({filterText:e.target.value})},handleServiceScroll:function(){this._scrollRequestAnimationId||(this._scrollRequestAnimationId=T(this.makeScrollAdjustments))},makeScrollAdjustments:function(){this._scrollRequestAnimationId=null;var e=this.state.isFilterFixed,t=10;if(e){var n=this.state.headerHeight-this.state.filterHeight+30;this.refs.expandedMenu.scrollTop<=n&&this.setState({isFilterFixed:!1,filterHeight:null,headerHeight:null})}else{var r=this.refs.expandedMenu.querySelector("#at-expanded-menu-filter-form");if(r){var i=r.getBoundingClientRect();i&&i.top<=t&&this.setState({isFilterFixed:!0,filterHeight:i.height,headerHeight:this.getHeaderHeight()})}}},getHeaderHeight:function(){var e=this.refs.expandedMenu.querySelector("#at-expanded-menu-hd");return e.getBoundingClientRect().height},getServicesToShow:function(e,t,n,r){var i=(t||"").trim();if(!i)return e.slice(0,r?n:this.props.maxTopServices);var a=(0,p.default)(i).toLowerCase(),o=void 0;return o=0===a.indexOf(".")?new RegExp("(?:\\s|^)"+a):new RegExp("\\b"+a),e.filter(function(e){var t=e.code,n=e.name,r=n.toLowerCase().replace(/^the /,"");return o.test(t)||o.test(r)})},render:function(){var e=this.props,t=e.handleShare,n=e.isMobile,r=e.isRenderingToString,a=e.loadAllServices,s=e.mainHeading,u=e.maxListHeight,d=e.menuBodyTop,c=e.servicesDataMap,p=e.shareTitle,f=e.shareURL,m=e.translations,y=e.userSpecifiedExpanded,b=e.visiblePageHeight,T=e.visiblePageWidth,P=this.state,_=P.filterText,x=P.filterValue,C=P.isFilterFixed,E=P.refocusInput,w=P.servicesToShow,M=r||!a&&!x&&this.props.services.length>this.props.maxTopServices,k=void 0,N={};if(n&&!r)k="54px";else if(!r){var R=(0,l.default)({},null!==d?{top:d}:{});if((0,h.default)("saf"))R.top+=65,N={style:R};else{if(null!==u&&(R.maxHeight=u),C){var O=this.state.filterHeight;(0,l.default)(R,{marginTop:O,maxHeight:(R.maxHeight||b)-O})}N={onScroll:this.handleServiceScroll,style:R}}k=b<801||T<640?"64px":"84px"}return o.default.createElement("div",i({ref:"expandedMenu",className:"at-expanded-menu at-expanded-menu-round"},N),o.default.createElement(v.default,{isMobile:n,mainHeading:s,shareTitle:p,shareURL:f},o.default.createElement(g.default,{filterText:_,firstServiceCode:(w[0]||{}).code,handleFilterTextChange:this.handleFilterTextChange,handleShare:t,isFilterFixed:C,isMobile:n,refocusInput:E,translations:m})),o.default.createElement(S.default,{handleLoadAllServices:this.props.handleLoadAllServices,handleShare:t,headerHeight:this.state.headerHeight,iconSize:k,isMobile:n,isRenderingToString:r,services:w,servicesDataMap:c,showFooter:M,partitionServices:this.props.partitionServices,translations:m,userSpecifiedExpanded:y,visiblePageHeight:b}))}}),e.exports=t.default},512:function(e,t){"use strict";e.exports=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}},513:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(385),a=r(i),o=n(39),s=r(o);t.default=a.default.createClass({displayName:"ExpandedMenuHeader",mixins:[s.default],propTypes:{children:a.default.PropTypes.element,isMobile:a.default.PropTypes.bool,mainHeading:a.default.PropTypes.string.isRequired,shareTitle:a.default.PropTypes.string.isRequired,shareURL:a.default.PropTypes.string.isRequired},getDefaultProps:function(){return{children:null,isMobile:!1}},squashClick:function(e){e.stopPropagation()},getSubHeadings:function(){return this.props.isMobile?null:a.default.createElement("div",null,a.default.createElement("span",{className:"at-expanded-menu-page-title"},this.props.shareTitle),a.default.createElement("span",{className:"at-expanded-menu-page-url"},this.props.shareURL))},render:function(){return a.default.createElement("div",{id:"at-expanded-menu-hd",className:"at-expanded-menu-hd",onClick:this.squashClick},a.default.createElement("span",{id:"at-expanded-menu-title",className:"at-expanded-menu-title"},this.props.mainHeading),this.getSubHeadings(),this.props.children)}}),e.exports=t.default},514:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(385),a=r(i),o=n(39),s=r(o),l=n(66),u=r(l);t.default=a.default.createClass({displayName:"ExpandedMenuFilter",propTypes:{filterText:a.default.PropTypes.string,firstServiceCode:a.default.PropTypes.string,isFilterFixed:a.default.PropTypes.bool,isMobile:a.default.PropTypes.bool,handleFilterTextChange:a.default.PropTypes.func.isRequired,handleShare:a.default.PropTypes.func.isRequired,refocusInput:a.default.PropTypes.bool,translations:a.default.PropTypes.object},mixins:[s.default],getDefaultProps:function(){return{filterText:"",isFilterFixed:!1,isMobile:!1,refocusInput:!1}},getInitialState:function(){return{hasLostFocus:!1}},componentDidUpdate:function(){this.props.refocusInput&&this.refs.filterInput.focus()},setHasLostFocus:function(e){var t="relatedTarget"in e?e.relatedTarget:window.event.toElement,n=null===t||"at-expanded-menu-load-btn"===t.id;this.state.hasLostFocus||n||this.setState({hasLostFocus:!0})},handleShare:function(e){e.preventDefault(),this.props.firstServiceCode&&this.props.handleShare(this.props.firstServiceCode)},render:function(){var e="at-expanded-menu-search-input"+(this.state.hasLostFocus?"":" initial-render"),t="at-expanded-menu-search"+(this.props.filterText?" at-expanded-menu-search-filled":""),n=this.props.isFilterFixed?{position:"fixed",top:10}:{},r=this.props.translations,i=void 0===r?{}:r;return a.default.createElement("form",{id:"at-expanded-menu-filter-form",onSubmit:this.handleShare,style:n},a.default.createElement("div",{id:"at-expanded-menu-filter",role:"search",className:t},a.default.createElement("input",{ref:"filterInput",type:"text",size:"30",maxLength:"50",autoFocus:!this.props.isMobile,autoComplete:"off",id:"at-expanded-menu-service-filter",className:e,onChange:this.props.handleFilterTextChange,onBlur:this.setHasLostFocus,value:this.props.filterText}),a.default.createElement("label",{htmlFor:"at-expanded-menu-service-filter",className:"at-expanded-menu-search-label"},a.default.createElement("span",{className:"at-expanded-menu-search-label-content"},i.findAService||(0,u.default)("Find a service",35))),a.default.createElement("span",{className:"at-expanded-menu-search-icon"})))}}),e.exports=t.default},515:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(66),o=r(a),s=n(385),l=n(39),u=n(9),d=n(46),c=n(5),p=n(81),f=n(71),h=n(455),m=n(78),v=n(516),y=n(517),g=n(518),b=n(519),S={ALL:"ALL",TOP:"TOP",STANDARD:"STANDARD"},T=s.createClass({displayName:"ExpandedMenuServicesList",propTypes:{handleLoadAllServices:s.PropTypes.func.isRequired,handleShare:s.PropTypes.func.isRequired,headerHeight:s.PropTypes.number,iconSize:s.PropTypes.string,isMobile:s.PropTypes.bool,isRenderingToString:s.PropTypes.bool,partitionServices:s.PropTypes.bool.isRequired,services:s.PropTypes.array.isRequired,servicesDataMap:s.PropTypes.object.isRequired,showFooter:s.PropTypes.bool.isRequired,translations:s.PropTypes.object,userSpecifiedExpanded:s.PropTypes.bool,visiblePageHeight:s.PropTypes.number},mixins:[l],_serviceIcons:{},getDefaultProps:function(){return{headerHeight:0,iconSize:"64px",isMobile:!1,isRenderingToString:!1,translations:{},userSpecifiedExpanded:!1}},componentWillMount:function(){this._serviceIcons={}},componentWillUpdate:function(e){this.props.iconSize!==e.iconSize&&(this._serviceIcons={})},getServiceIconGetter:function(e){var t=this;return p?function(t){var n=e[t];return n?h(t,n):null}:function(n,r){var i=e[n];return i?h(n,i):f({code:n,alt:r,title:r,size:t.props.iconSize})}},getServicesPartition:function(e){if(e===S.ALL)return this.props.services;var t=this.props.servicesDataMap.top;return d(this.props.services,function(n,r){var i=r.code;return!!i&&(e===S.TOP?t[i]:!t[i])})},getServicesListItems:function(e){var t=this.props.servicesDataMap,n=t.custom.css,r=this.getServiceIconGetter(n),a=this.getServicesPartition(e),o=this.props,l=o.iconSize,d=o.translations;return u(a,function(e,a){var o=a.code,u=a.name;if(!this._serviceIcons[o]){var c=p&&!n[o],f=c?null:r(o,u);if(!c&&!f)return e;var h={classes:{buttonClass:"at-expanded-menu-button",labelClass:"at-expanded-menu-button-label"},code:o,handleShare:this.props.handleShare.bind(null,o),isTopService:Boolean(t.top[o]),key:o,name:d[o]||u};this._serviceIcons[o]=c?s.createElement(v,i({iconWrapperStyles:{width:l,height:l,lineHeight:l,backgroundColor:m(o)}},h)):s.createElement(y,i({icon:f},h))}return e.push(this._serviceIcons[o]),e},[],this)},getPlaceholderListItems:function(){for(var e=[],t=0;t<10;t++)e.push(s.createElement(g,{key:t}));return e},getFooter:function(){return this.props.showFooter?s.createElement(b,{handleLoadAllServices:this.props.handleLoadAllServices,isRenderingToString:this.props.isRenderingToString,translations:this.props.translations}):null},getPlaceholderBody:function(){var e=this.props.translations,t=void 0===e?{}:e;return s.createElement("div",{id:"at-expanded-menu-bd"},s.createElement("h4",{className:"at-expanded-menu-top-services-header"},t.topServices||(0,o.default)("Top Services",111)),s.createElement("ul",{id:"at-expanded-menu-top-service-list-container",className:"at-expanded-menu-service-list",role:"menu"},this.getPlaceholderListItems()),this.getFooter())},getUnPartitionedBody:function(){return s.createElement("div",{id:"at-expanded-menu-bd",onClick:this.handleMaskClick,style:this.getBodyInlineStyles()},s.createElement("ul",{id:"at-expanded-menu-service-list-container",className:"at-expanded-menu-service-list",role:"menu"},this.getServicesListItems(S.ALL)),this.getFooter())},getBodyInlineStyles:function(){var e={};return this.props.isMobile?e={overflowY:"auto",top:this.props.headerHeight}:c("saf")&&this.props.visiblePageHeight&&(e={maxHeight:this.props.visiblePageHeight-this.props.headerHeight-65}),e},handleMaskClick:function(e){return e&&e.target&&"at-expanded-menu-load-btn"===e.target.id?e.stopPropagation():void this.props.handleShare(null)},render:function(){if(this.props.isRenderingToString)return this.getPlaceholderBody();if(this.props.userSpecifiedExpanded||!this.props.partitionServices)return this.getUnPartitionedBody();var e=this.getServicesListItems(S.TOP),t=this.getServicesListItems(S.STANDARD),n=0===e.length,r=e.length>=this.props.services.length,i="at-expanded-menu-top-services-header"+(n?" at-expanded-menu-hidden":""),a="at-expanded-menu-service-list"+(n?" at-expanded-menu-hidden":""),l="at-expanded-menu-service-list"+(r?" at-expanded-menu-hidden":"")+(n?"":" border-before"),u=this.props.translations,d=void 0===u?{}:u;return s.createElement("div",{id:"at-expanded-menu-bd",dir:"ltr",onClick:this.handleMaskClick,style:this.getBodyInlineStyles()},s.createElement("span",{className:i},d.topServices||(0,o.default)("Top Services",111)),s.createElement("ul",{id:"at-expanded-menu-top-service-list-container",className:a,role:"menu"},e),s.createElement("ul",{id:"at-expanded-menu-service-list-container",className:l,role:"menu"},t),this.getFooter())}});t.default=T,e.exports=t.default},516:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(385),a=n(39),o=n(71),s=i.createClass({_iconElement:null,_isMounted:!1,displayName:"ServiceIconListItem",propTypes:{classes:i.PropTypes.shape({buttonClass:i.PropTypes.string,labelClass:i.PropTypes.string}),handleShare:i.PropTypes.func.isRequired,iconWrapperStyles:i.PropTypes.object,isTopService:i.PropTypes.bool,code:i.PropTypes.string.isRequired,name:i.PropTypes.string.isRequired},mixins:[a],getDefaultProps:function(){return{classes:{},iconWrapperStyles:{},isTopService:!1}},getInitialState:function(){return{iconLoaded:!1}},componentWillMount:function(){this._iconElement=o(r({},this.props.iconWrapperStyles,{code:this.props.code,alt:this.props.name,loadedCallback:this.setIconLoaded}))},componentDidMount:function(){this._isMounted=!0},componentWillUnmount:function(){this._isMounted=!1},setIconLoaded:function(){this._isMounted&&this.setState({iconLoaded:!0})},render:function(){var e=this.props,t=e.code,n=e.name,r=e.iconWrapperStyles,a=e.isTopService,o=e.handleShare,s=e.classes,l="at3winsvc_"+t.replace(/\./g,"_dot_")+(a?" top-service":""),u=this._iconElement?this._iconElement.innerHTML:"",d=u+("<span class='at-icon-name'>"+n+"</span>");return i.createElement("li",{className:l,onClick:o},i.createElement("button",{"aria-label":n,className:""+(s.buttonClass||"")},i.createElement("span",{className:"at-icon-wrapper",style:r,dangerouslySetInnerHTML:{__html:d}})),i.createElement("span",{className:""+(s.labelClass||"")},n))}});t.default=s,e.exports=t.default},517:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(385),i=n(39),a=r.createClass({displayName:"ServiceIconListItem",propTypes:{classes:r.PropTypes.shape({buttonClass:r.PropTypes.string,labelClass:r.PropTypes.string}),handleShare:r.PropTypes.func.isRequired,icon:r.PropTypes.any.isRequired,isTopService:r.PropTypes.bool.isRequired,code:r.PropTypes.string.isRequired,name:r.PropTypes.string.isRequired},mixins:[i],getDefaultProps:function(){return{classes:{}}},componentDidMount:function(){this.refs.iconButton.firstChild||this.refs.iconButton.appendChild(this.props.icon)},render:function(){var e="at3winsvc_"+this.props.code.replace(/\./g,"_dot_")+(this.props.isTopService?" top-service":""),t=this.props.classes;return r.createElement("li",{className:e,onClick:this.props.handleShare},r.createElement("button",{className:""+(t.buttonClass||""),ref:"iconButton"}),r.createElement("span",{className:""+(t.labelClass||"")},this.props.name))}});t.default=a,e.exports=t.default},518:function(e,t,n){"use strict";function r(){var e={backgroundColor:"#848484",height:84,opacity:.6};return i.createElement("li",{style:e},i.createElement("button",{className:"at-expanded-menu-button"}),i.createElement("span",{className:"at-expanded-menu-button-label"}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(385);e.exports=t.default},519:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(66),a=r(i),o=n(385),s=n(520),l=function(e){if(e.isRenderingToString)return o.createElement("div",{className:"at-expanded-menu-ft"},o.createElement("span",{className:"at-expanded-menu-ft-loading"},"Loading Services"),o.createElement(s,null));var t=e.translations,n=void 0===t?{}:t;return o.createElement("div",{className:"at-expanded-menu-ft"},o.createElement("button",{id:"at-expanded-menu-load-btn",onClick:e.handleLoadAllServices,className:"at-expanded-menu-load"},n.loadMore||(0,a.default)("Load More",112)))};l.displayName="ExpandedMenuFooter",l.propTypes={handleLoadAllServices:o.PropTypes.func.isRequired,isRenderingToString:o.PropTypes.bool,translations:o.PropTypes.object},t.default=l,e.exports=t.default},520:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(385),i=function(e){var t="loading-container "+(e.containerClass||"");return r.createElement("div",{className:t},r.createElement("div",{className:"loading-spinner"}))};i.displayName="Loading",i.propTypes={containerClass:r.PropTypes.string},t.default=i,e.exports=t.default},521:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=n(385),s=r(o),l=n(62),u=r(l),d=n(8),c=r(d),p=n(500),f=r(p),h=n(18),m=r(h),v=n(5),y=r(v),g=n(78),b=r(g),S=n(72),T=r(S),P=n(513),_=r(P),x=n(520),C=r(x),E=n(516),w=r(E),M={COMPOSING:"COMPOSING",SENDING:"SENDING",SENT:"SENT",FAILED_CAPTCHA:"FAILED_CAPTCHA",FAILED_OTHER:"FAILED_OTHER"},k=["suppress_response_code","url","title","note","to","from","dest","pub","uci"],N="https:"===document.location.protocol,R="6LdoDCATAAAAAKwbb6HL00uYkatkIToKU_K7VROP",O=["gmail","yahoomail","aolmail","hotmail"],L=["facebook","twitter","more"];t.default=s.default.createClass({displayName:"ExpandedMenuEmail",propTypes:{ats:s.default.PropTypes.object.isRequired,atc:s.default.PropTypes.object.isRequired,pub:s.default.PropTypes.string.isRequired,source:s.default.PropTypes.string.isRequired,captcha_provider:s.default.PropTypes.string,url:s.default.PropTypes.string.isRequired,title:s.default.PropTypes.string.isRequired,ate:s.default.PropTypes.string.isRequired,v:s.default.PropTypes.string,s:s.default.PropTypes.string,tt:s.default.PropTypes.string,screenshot:s.default.PropTypes.string,screenshot_secure:s.default.PropTypes.string,swfurl:s.default.PropTypes.string,swfurl_secure:s.default.PropTypes.string,ips:s.default.PropTypes.string,email_template:s.default.PropTypes.string,template:s.default.PropTypes.string,email_vars:s.default.PropTypes.object,shortener:s.default.PropTypes.string,shorteners:s.default.PropTypes.object,hideEmailSharingConfirmation:s.default.PropTypes.string,trackurl:s.default.PropTypes.string,uud:s.default.PropTypes.string,p32:s.default.PropTypes.any,ct:s.default.PropTypes.string,rxi:s.default.PropTypes.string,rsi:s.default.PropTypes.string,gen:s.default.PropTypes.string,xid:s.default.PropTypes.string,lng:s.default.PropTypes.string,ui_email_note:s.default.PropTypes.string,ui_email_to:s.default.PropTypes.string,ui_email_from:s.default.PropTypes.string,eventDispatcher:s.default.PropTypes.object.isRequired,isMobile:s.default.PropTypes.bool,isHidden:s.default.PropTypes.bool,mainHeading:s.default.PropTypes.string,toggleMenu:s.default.PropTypes.func.isRequired,translations:s.default.PropTypes.object},getDefaultProps:function(){return{isMobile:!1,isHidden:!1,mainHeading:"Email a Friend",title:"",translations:{},ui_email_note:"",ui_email_to:"",ui_email_from:""}},getInitialState:function(){return this.getDefaultState(!1)},componentWillReceiveProps:function(e){this.props.isHidden&&!e.isHidden&&this.state.controlState===M.SENT&&(this.setState(this.getDefaultState(!0)),grecaptcha&&grecaptcha.reset&&grecaptcha.reset())},componentDidMount:function(){var e=this;window.addthisRecaptchaLoadedCallback=function(){e.props.eventDispatcher.fire("addthis.recaptcha.loaded",{})};var t=this.props.lng||(0,m.default)(),n=document.createElement("script");n.src="https://www.google.com/recaptcha/api.js?onload=addthisRecaptchaLoadedCallback&render=explicit&hl="+t,document.body.appendChild(n),this.props.eventDispatcher.once("addthis.recaptcha.loaded",this.handleRecaptchaLoad)},componentWillUpdate:function(e,t){t.controlState!==M.SENT||"true"!==this.props.hideEmailSharingConfirmation&&this.props.hideEmailSharingConfirmation!==!0||window.close()},componentDidUpdate:function(e,t){var n=!t.captchaDidLoad&&this.state.captchaDidLoad||t.controlState===M.SENT&&this.state.controlState===M.COMPOSING;n&&"recaptcha2"===this.props.captcha_provider&&grecaptcha.render(this.refs.captchaContainer,{sitekey:R,callback:this.handleCaptchaResponse}),t.controlState!==M.SENDING&&this.state.controlState===M.SENDING&&this.sendEmail()},componentWillUnmount:function(){this.props.eventDispatcher.removeEventListener("addthis.recaptcha.loaded",this.handleRecaptchaLoad)},getDefaultState:function(e){var t=this.props,n=t.ui_email_to,r=t.ui_email_from,i=t.ui_email_note,a=t.screenshot;return{captchaDidLoad:e,captchaResponse:"",controlState:M.COMPOSING,emailTo:n,emailFrom:r,emailNote:a?i+"\n\n"+a:i,failureMessage:"",fieldsWithErrors:[]}},formatPCO:function(e){if(e&&/^([a-zA-Z23]+-[0-9\.abmys]+,?)+$/.test(e)){var t=e.split(",");if(t.length>1)return t;var n=(t[0]||"").split("-"),r=a(n,2),i=r[0],o=void 0===i?"":i,s=r[1];if(o=0===o.indexOf("ffext")?"fxe":o,o&&s)return o+"-"+s}return""},handleChange:function(e,t){var n;if("emailSubject"===e||"emailNote"===e&&t.target.value.length>250||("emailTo"===e||"emailFrom"===e)&&t.target.value.length>50)return t.preventDefault();var r=this.state.fieldsWithErrors.indexOf(e),a=(0,c.default)({},(n={},i(n,e,t.target.value),i(n,"controlState",M.COMPOSING),i(n,"failureMessage",""),n),r!==-1?{fieldsWithErrors:this.state.fieldsWithErrors.filter(function(t){return t!==e})}:{});this.setState(a)},handleCaptchaResponse:function(e){this.setState({captchaResponse:e})},handleRecaptchaLoad:function(){this.isMounted()&&this.setState({captchaDidLoad:!0})},handleSubmit:function(e){e.preventDefault();var t=this.validateSubmission();t.length>0?this.setState({fieldsWithErrors:t.slice()}):this.setState({controlState:M.SENDING})},handleSendHttpSuccess:function(e){var t=this.props.translations,n=t.sendFailed,r=void 0===n?"Sorry, we couldn't send this email. Please try again in a few minutes.":n,i=t.captchaIncorrect,a=void 0===i?"Sorry, your response was incorrect.":i,o=void 0;try{o=JSON.parse(e.responseText)}catch(e){return this.setState({controlState:M.FAILED_OTHER,failureMessage:r})}return o.captchaError?this.setState({controlState:M.FAILED_CAPTCHA,failureMessage:a}):o.emailSent?this.setState({controlState:M.SENT}):this.setState({controlState:M.FAILED_OTHER,failureMessage:r})},handleSendHttpFailure:function(){var e=this.props.translations.sendFailed,t=void 0===e?"Sorry, we couldn't send this email. Please try again in a few minutes.":e;return this.setState({controlState:M.FAILED_OTHER,failureMessage:t})},handleShare:function(e,t){if(t.preventDefault(),"more"===e&&/bookmark\.php$/.test(window.location.pathname))return this.props.toggleMenu(!1);var n=(0,u.default)({url:this.props.url,title:this.props.title,pub:this.props.pub,ate:this.props.ate,ct:this.props.ct,trackurl:this.props.trackurl,s:e});window.location.href="/bookmark.php?"+n},validateSubmission:function(){var e=this,t=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;return["emailTo","emailFrom"].reduce(function(n,r){return t.test(e.state[r].trim())||n.push(r),n},[])},sendEmail:function(){var e=this,t=this.getDataToSend(),n=new XMLHttpRequest;n.open("GET","https://www.addthis.com/api/tellfriend/get-share-json?"+(0,u.default)(t)),n.onreadystatechange=function(){4===n.readyState&&(n.status>=400||0===n.status?e.handleSendHttpFailure(n):e.handleSendHttpSuccess(n))},n.send(null)},getPropsToSend:function(){var e=this;return["url","title","pco","lng","ate","ct","rsi","rxi","gen","ips","pub","email_template","template","email_vars","shortener"].reduce(function(t,n){var r=void 0;switch(n){case"pco":r=e.formatPCO(e.props.source);break;case"title":r=e.props.title.trim()||e.state.emailTo+" has shared something with you";break;default:r=e.props[n]}if("email_vars"!==n&&(r||k.indexOf(n)>-1))t["template"===n||"email_template"===n?"name":n]=r||"";else if("email_vars"===n){var i=e.props.email_vars||{};Object.keys(i).forEach(function(e){t["var_"+e]=i[e]},{})}return t},{})},getStateToSend:function(){var e=this;return Object.keys(this.state).filter(function(e){return/^email/.test(e)}).reduce(function(t,n){var r=n.split(/(?=[A-Z])/).pop().toLowerCase();return t[r]=(e.state[n]||"").trim(),t},{})},getDataToSend:function(){var e=this,t=this.getPropsToSend(),n=t.shortener?Object.keys(this.props).reduce(function(n,r){return 0===r.indexOf(t.shortener)&&r!==t.shortener&&(n[r]=e.props[r]),n},{}):{},r=this.getStateToSend();this.state.captchaResponse&&(r.recaptcha_response_field=this.state.captchaResponse);var i=(0,c.default)({suppress_response_codes:!0,dest:"email",uci:Math.round(2147483647*Math.random())},N?{ssl:1}:{});return(0,c.default)({},t,n,r,i,{captcha_provider:this.props.captcha_provider||"recaptcha2"})},getRecaptchaElement:function(){return!this.state.captchaDidLoad||this.state.controlState.SENDING?s.default.createElement(C.default,null):s.default.createElement("div",{ref:"captchaContainer",id:"at-expanded-menu-captcha-container"})},getOverlay:function(e){return e?s.default.createElement(C.default,{containerClass:"loading-container-as-overlay"}):null},getFailureMessage:function(e){return e?s.default.createElement("div",{className:"at-expanded-menu-email-error-message"},s.default.createElement("span",null,(this.props.translations.oops||"Oops!")+" "+e)):null},getDisclaimer:function(){var e=s.default.createElement("span",{className:"at-expanded-menu-email-disclaimer-permission"},""+(this.props.translations.emailConfirmPermittedToSend||"By sending, I affirm I am permitted to send this email.")),t=this.props.translations.euDisclaimer?s.default.createElement("span",{className:"at-expanded-menu-email-disclaimer-eu"},this.props.translations.euDisclaimer+" ",s.default.createElement("a",{href:"/privacy/privacy-policy#international",target:"_blank"},""+(this.props.translations.learnMore||"Learn More"))):null;return s.default.createElement("div",{className:"at-expanded-menu-email-disclaimer"},t,e)},getEmailForm:function(e){var t=this,n="at-expanded-menu-email-error-field",r=this.props.translations,i=["emailTo","emailFrom","emailSubject","emailNote"].map(function(i){var a=i.split(/(?=[A-Z])/),o=a.pop(),l="email-"+o.toLowerCase(),u=r[o.toLowerCase()]||o,d="emailNote"===i,p="emailSubject"===i,f=t.state.fieldsWithErrors.indexOf(i)!==-1,h=f?t.getFailureMessage((r.invalidEmailAddress||"Please enter a valid email address")+"."):null,m=s.default.createElement(d?"textarea":"input",(0,c.default)({id:"at-expanded-menu-"+l,value:p?t.props.title:t.state[i],onChange:t.handleChange.bind(t,i),disabled:e,required:!d,readOnly:p,"aria-readonly":p,className:f?n:""},d?{maxLength:250}:{maxLength:50,type:p?"text":"email"}));return s.default.createElement("div",{className:"at-expanded-menu-email-field",key:i},s.default.createElement("label",{htmlFor:"at-expanded-menu-"+l},u),m,h)});return s.default.createElement("form",{id:"at-expanded-menu-email-form",onSubmit:this.handleSubmit,noValidate:!0},this.getOverlay(e),i,this.getFailureMessage(this.state.failureMessage),this.getRecaptchaElement(),s.default.createElement("div",{className:"at-expanded-menu-email-btn-container"},s.default.createElement("button",{type:"submit",className:"at-expanded-menu-email-btn",disabled:e},r.send||"Send")),this.getDisclaimer())},getSuccessComponent:function(e){var t=this,n=e?"64px":"84px",r=this.props.translations,i=r.messageSent,a=void 0===i?"Message Sent!":i,o=r.shareAgain,l=void 0===o?"Share again.":o,u=L.map(function(e){return s.default.createElement(w.default,{key:e,iconWrapperStyles:{width:n,height:n,lineHeight:n,backgroundColor:(0,b.default)(e)},classes:{buttonClass:"at-expanded-menu-button",labelClass:"at-expanded-menu-button-label"},code:e,name:(0,T.default)(e),handleShare:t.handleShare.bind(t,e)})});return s.default.createElement("div",{className:"at-expanded-menu-email-success-container at-expanded-menu-round"},s.default.createElement("span",{className:"at-expanded-menu-email-success-message"},a+" "+l),s.default.createElement("ul",{className:"at-expanded-menu-service-list"},u))},getOtherEmailServices:function(){var e=this,t=O.map(function(t){return s.default.createElement(w.default,{key:t,code:t,name:(0,T.default)(t),handleShare:e.handleShare.bind(e,t),isTopService:!1,classes:{buttonClass:"at-expanded-menu-button",labelClass:"at-expanded-menu-button-label"},iconWrapperStyles:{height:32,width:32,lineHeight:32,backgroundColor:(0,b.default)(t)}})});return s.default.createElement("div",{className:"at-expanded-menu-email-other"},s.default.createElement("p",null,this.props.translations.sendWithDifferentServices||"Send this email with different services",":"),s.default.createElement("ul",{className:"at-expanded-menu-email-services"},t))},getFormBody:function(e){return e?s.default.createElement("div",{id:"at-expanded-menu-bd"},this.getEmailForm(this.state.controlState===M.SENDING),this.getOtherEmailServices()):s.default.createElement("div",null,s.default.createElement("div",{id:"at-expanded-menu-bd"},this.getEmailForm(this.state.controlState===M.SENDING)),this.getOtherEmailServices())},render:function(){if(this.state.controlState===M.SENT){var e=(0,y.default)("ie9")?{top:"25%"}:{};return s.default.createElement("div",{className:"at-expanded-menu",id:"at-expanded-menu-email-sent",style:e},s.default.createElement("div",{className:"at-expanded-menu-bd"},this.getSuccessComponent(this.props.isMobile)))}var t=this.props,n=t.isMobile,r=t.mainHeading,i=t.title,a=t.url,o=void 0===a?"":a,l={top:(0,f.default)().y};return s.default.createElement("div",{className:"at-expanded-menu at-expanded-menu-email",ref:"container",style:l},s.default.createElement(_.default,{isMobile:n,mainHeading:r,shareTitle:i,shareURL:o}),this.getFormBody(n))}}),e.exports=t.default},522:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(385),u=r(l),d=n(460),c=r(d),p=n(476),f=r(p),h=n(523),m=r(h),v=n(513),y=r(v),g=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={showMessage:!1,trackUrl:e.trackURL||(0,c.default)("link",e.menuShare,e.menuConfig)},n.copyLink=n.copyLink.bind(n),n}return o(t,e),s(t,[{key:"componentWillReceiveProps",value:function(e){this.setState({trackUrl:e.trackURL||(0,c.default)("link",e.menuShare,e.menuConfig)})}},{key:"copyLink",value:function(){setTimeout(this.setState.bind(this,{showMessage:!1}),1e3),this.setState({showMessage:!0}),this.props.isStandalone||(0,f.default)("link",0,this.props.menuShare,this.props.menuConfig)}},{key:"squashClick",value:function(e){e.stopPropagation()}},{key:"render",value:function(){var e=this.props,t=e.isMobile,n=e.mainHeading,r=e.menuBodyTop,i=e.shareTitle,a=e.shareURL,o=r&&!t?{top:r}:{};return u.default.createElement("div",{className:"at-expanded-menu at-expanded-menu-copy-link",style:o},u.default.createElement(y.default,{mainHeading:n,shareTitle:i,shareURL:a}),u.default.createElement("div",{id:"at-expanded-menu-bd"},u.default.createElement(m.default,{copyLink:this.copyLink,onCopyAreaClicked:this.squashClick,showMessage:this.state.showMessage,supportsCopy:document.queryCommandSupported("copy"),trackUrl:this.state.trackUrl})))}}]),t}(u.default.Component);t.default=g,g.propTypes={isMobile:u.default.PropTypes.bool,mainHeading:u.default.PropTypes.string,menuBodyTop:u.default.PropTypes.number,menuConfig:u.default.PropTypes.object.isRequired,menuShare:u.default.PropTypes.object.isRequired,shareTitle:u.default.PropTypes.string,shareURL:u.default.PropTypes.string},g.defaultProps={isMobile:!1,mainHeading:"Copy Link",shareTitle:"",shareURL:""},g.displayName="ExpandedMenuCopyLink",e.exports=t.default},523:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(385),d=r(u),c=n(385),p=r(c),f=n(71),h=r(f),m=n(5),v=r(m),y=n(66),g=r(y),b=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),l(t,[{key:"render",value:function(){return d.default.createElement("div",null,d.default.createElement("div",{className:"at-copy-link-share-button at-expanded-menu-primary-action-btn",onClick:this.props.onClick},(0,g.default)("Copy",114)))}}]),t}(d.default.Component),S=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),l(t,[{key:"render",value:function(){var e=this.props.showMessage,t=e?" at-copy-link-show-result":"",n=e?{role:"alert"}:{"aria-hidden":!0};return d.default.createElement("div",s({className:"at-copy-link-result-message at-expanded-menu-notification"+t},n),d.default.createElement("span",null,"Copied to Clipboard!"))}}]),t}(d.default.Component);S.propTypes={showMessage:d.default.PropTypes.bool};var T=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.focusLink=n.focusLink.bind(n),n.copyLink=n.copyLink.bind(n),n}return o(t,e),l(t,[{key:"componentDidMount",value:function(){var e=(0,h.default)({code:"link",backgroundColor:"#888888",size:"50px"});this.refs.icon.appendChild(e),this.focusLink()}},{key:"componentDidUpdate",value:function(){this.focusLink()}},{key:"copyLink",value:function(){try{this.focusLink(),document.execCommand("copy"),this.props.copyLink()}catch(e){}}},{key:"focusLink",value:function(){var e=p.default.findDOMNode(this.refs.linkText),t=void 0,n=void 0;e.focus(),(0,v.default)("iph")||(0,v.default)("ipa")?(t=document.createRange(),t.selectNodeContents(e),n=window.getSelection(),n.removeAllRanges(),n.addRange(t),e.setSelectionRange(0,999999)):e.select()}},{key:"render",value:function(){var e=this.props.supportsCopy?d.default.createElement(b,{onClick:this.copyLink}):null;return d.default.createElement("div",{className:"at-copy-link-share",onClick:this.props.onCopyAreaClicked},d.default.createElement("div",{className:"at-copy-link-share-page-url-container"},d.default.createElement("span",{className:"at-copy-link-share-icon",ref:"icon"}),d.default.createElement("input",{className:"at-copy-link-share-page-url",type:"text",readOnly:"true",ref:"linkText",value:this.props.trackUrl})),e,d.default.createElement(S,{showMessage:this.props.showMessage}))}}]),t}(d.default.Component);t.default=T,T.displayName="CopyLink",T.propTypes={copyLink:d.default.PropTypes.func.isRequired,onCopyAreaClicked:d.default.PropTypes.func,showMessage:d.default.PropTypes.bool,supportsCopy:d.default.PropTypes.bool,trackUrl:d.default.PropTypes.string.isRequired},e.exports=t.default}});