UNPKG

@mornya/react-social-libs

Version:

The project of React.js Social Share and Widget modules.

1 lines 1.2 kB
var e,n,t=this&&this.__extends||(e=function(n,t){return(e=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){n.__proto__=t}:function(n,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}))(n,t)},function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),o=(Object.defineProperty(exports,"__esModule",{value:!0}),require("../utils/BaseShareComponent")),i=require("../utils/UI"),o=(n=o.BaseShareComponent,t(LinkedIn,n),LinkedIn.prototype.onInit=function(){this.initialize("LinkedIn",{})},LinkedIn.prototype.onMount=function(n){this.setApiStep()},LinkedIn.prototype.onShare=function(n,t){var e=this;(0,i.openShareWindow)(this.mapToParam(LinkedIn.LINK_URL,{url:t.url}),"linkedin",this.deviceInfo.isMobile?[]:[640,640]).then(function(){return e.onComplete(!0,null)}).catch(function(n){return console.error(n)})},LinkedIn.LINK_URL="https://www.linkedin.com/sharing/share-offsite",LinkedIn);function LinkedIn(){return null!==n&&n.apply(this,arguments)||this}exports.default=o;