@mornya/react-social-libs
Version:
The project of React.js Social Share and Widget modules.
1 lines • 1.26 kB
JavaScript
var n,t,e=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),r=(Object.defineProperty(exports,"__esModule",{value:!0}),require("../utils/BaseShareComponent")),o=require("../utils/UI"),r=(t=r.BaseShareComponent,e(Naver,t),Naver.prototype.onInit=function(){this.initialize("Naver",{title:function(t){return null!=(t=t.title)?t:""}})},Naver.prototype.onMount=function(t){this.setApiStep()},Naver.prototype.onShare=function(t,e){var n,r=this;(0,o.openShareWindow)(this.mapToParam(Naver.LINK_URL,{url:e.url,title:null==(n=t.title)?void 0:n.call(t,e)}),"naver",this.deviceInfo.isMobile?[]:[512,640]).then(function(){return r.onComplete(!0,null)}).catch(function(t){return console.error(t)})},Naver.LINK_URL="https://share.naver.com/web/shareView.nhn",Naver);function Naver(){return null!==t&&t.apply(this,arguments)||this}exports.default=r;