/*! For license information please see dll.Link.js.LICENSE.txt */
(window.webpackJsonp_name_hash_=window.webpackJsonp_name_hash_||[]).push([[72],{1027:function(e,t,n){"use strict";n.r(t);var r=n(13),i=n.n(r),o=n(12),a=n.n(o),u=n(14),s=n.n(u),c=n(15),l=n.n(c),p=n(8),f=n.n(p),h=n(0),d=n.n(h),g=n(1),m=n.n(g),v=n(960),y=n(1324),w=n.n(y),k=n(19),b=n(3075);function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}var x=function(e){s()(n,e);var t=T(n);function n(e){var r;return i()(this,n),(r=t.call(this,e)).state={url:null,href:null,target:"_blank"},r}return a()(n,[{key:"render",value:function(){return d.a.createElement(h.Fragment,null,d.a.createElement(v.ContextMenuTrigger,{holdToDisplay:-1,disableIfShiftIsPressed:!0,id:"".concat(this.state.url,"-context-menu"),renderTag:"span"},d.a.createElement("a",{href:this.state.url,target:this.state.target},this.props.children)),d.a.createElement(b.default,{session:this.context,url:this.state.url,target:this.state.target}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(e.href!==t.href){var n={href:e.href};return w()(e.href,"http")||w()(e.href,"mailto")||w()(e.href,"#")?(n.url=e.href,n.target=null):(n.url="http://"+e.href,n.target="_blank"),n}return null}}]),n}(h.Component);x.propTypes={href:m.a.string.isRequired},x.contextType=k.default,t.default=x},1324:function(e,t,n){"use strict";var r=n(1325);e.exports=r},1325:function(e,t,n){"use strict";var r=n(100).isPrimitive,i=n(21).isPrimitive;e.exports=function(e,t,n){var o,a;if(!i(e))throw new TypeError("invalid argument. First argument must be a string primitive. Value: `"+e+"`.");if(!i(t))throw new TypeError("invalid argument. Second argument must be a string primitive. Value: `"+t+"`.");if(arguments.length>2){if(!r(n))throw new TypeError("invalid argument. Third argument must be an integer. Value: `"+n+"`.");o=n<0?e.length+n:n}else o=0;if(0===t.length)return!0;if(o<0||o+t.length>e.length)return!1;for(a=0;a<t.length;a++)if(e.charCodeAt(o+a)!==t.charCodeAt(a))return!1;return!0}},3075:function(e,t,n){"use strict";n.r(t);var r=n(13),i=n.n(r),o=n(12),a=n.n(o),u=n(7),s=n.n(u),c=n(14),l=n.n(c),p=n(15),f=n.n(p),h=n(8),d=n.n(h),g=n(5),m=n.n(g),v=n(0),y=n.n(v),w=n(1),k=n.n(w),b=n(960),T=n(23),x=n.n(T),C=n(18);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var R=x()("isle:link:contextmenu"),_=function(e){l()(n,e);var t=E(n);function n(e){var r;return i()(this,n),r=t.call(this,e),m()(s()(r),"copyToClipboard",(function(e){R("Copying selection to clipboard... "),navigator.clipboard.writeText(r.props.url)})),m()(s()(r),"textToSpeech",(function(){var e=r.props.url,t=r.props.session,n=new SpeechSynthesisUtterance(e);n.lang=t.config.language||"en-US",window.speechSynthesis.speak(n)})),m()(s()(r),"openInTab",(function(){var e=r.props.url;R("Open ".concat(e," in new tab")),window.open(e,"_blank"),r.props.session.log({id:e,type:C.OPEN_LINK,value:"tab"})})),m()(s()(r),"openInWindow",(function(){var e=r.props.url;R("Open ".concat(e," in new window")),window.open(e,"_blank","location=no,scrollbars=yes,status=yes"),r.props.session.log({id:e,type:C.OPEN_LINK,value:"window"})})),r}return a()(n,[{key:"render",value:function(){var e=[y.a.createElement(b.MenuItem,{key:0,onClick:this.copyToClipboard},"Copy link")];return"_blank"===this.props.target?(e.push(y.a.createElement(b.MenuItem,{key:1,onClick:this.openInTab},"Open link in new tab")),e.push(y.a.createElement(b.MenuItem,{key:2,onClick:this.openInWindow},"Open link in new window"))):e=[],e.push(y.a.createElement(b.MenuItem,{key:3,onClick:this.textToSpeech},"Read aloud")),y.a.createElement(b.ContextMenu,{id:"".concat(this.props.url,"-context-menu")},e)}}]),n}(v.Component);_.propTypes={url:k.a.string.isRequired,session:k.a.object.isRequired},t.default=_}}]);