/*! For license information please see dll.Link.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[72],{1092:function(e,t,n){"use strict";n.r(t);var r=n(13),o=n.n(r),i=n(12),a=n.n(i),c=n(14),s=n.n(c),u=n(15),l=n.n(u),p=n(8),f=n.n(p),h=n(0),d=n.n(h),y=n(1),v=n.n(y),w=n(1025),g=n(319),m=n.n(g),k=n(20),b=n(3138);function R(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 o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l()(this,n)}}var T=function(e){s()(n,e);var t=R(n);function n(e){var r;return o()(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(w.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 m()(e.href,"http")||m()(e.href,"mailto")||m()(e.href,"#")?(n.url=e.href,n.target=null):(n.url="http://"+e.href,n.target="_blank"),n}return null}}]),n}(h.Component);T.propTypes={href:v.a.string.isRequired},T.contextType=k.default,t.default=T},3138:function(e,t,n){"use strict";n.r(t);var r=n(13),o=n.n(r),i=n(12),a=n.n(i),c=n(6),s=n.n(c),u=n(14),l=n.n(u),p=n(15),f=n.n(p),h=n(8),d=n.n(h),y=n(5),v=n.n(y),w=n(0),g=n.n(w),m=n(1),k=n.n(m),b=n(1025),R=n(25),T=n.n(R),x=n(18);function C(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 o=d()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var I=T()("isle:link:contextmenu"),E=function(e){l()(n,e);var t=C(n);function n(e){var r;return o()(this,n),r=t.call(this,e),v()(s()(r),"copyToClipboard",(function(e){I("Copying selection to clipboard... "),navigator.clipboard.writeText(r.props.url)})),v()(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)})),v()(s()(r),"openInTab",(function(){var e=r.props.url;I("Open ".concat(e," in new tab")),window.open(e,"_blank"),r.props.session.log({id:e,type:x.OPEN_LINK,value:"tab"})})),v()(s()(r),"openInWindow",(function(){var e=r.props.url;I("Open ".concat(e," in new window")),window.open(e,"_blank","location=no,scrollbars=yes,status=yes"),r.props.session.log({id:e,type:x.OPEN_LINK,value:"window"})})),r}return a()(n,[{key:"render",value:function(){var e=[g.a.createElement(b.MenuItem,{key:0,onClick:this.copyToClipboard},"Copy link")];return"_blank"===this.props.target?(e.push(g.a.createElement(b.MenuItem,{key:1,onClick:this.openInTab},"Open link in new tab")),e.push(g.a.createElement(b.MenuItem,{key:2,onClick:this.openInWindow},"Open link in new window"))):e=[],e.push(g.a.createElement(b.MenuItem,{key:3,onClick:this.textToSpeech},"Read aloud")),g.a.createElement(b.ContextMenu,{id:"".concat(this.props.url,"-context-menu")},e)}}]),n}(w.Component);E.propTypes={url:k.a.string.isRequired,session:k.a.object.isRequired},t.default=E}}]);