/*! For license information please see dll.Image.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[46],{1065:function(t,e,a){"use strict";a.r(e);var n=a(13),o=a.n(n),r=a(12),s=a.n(r),l=a(6),i=a.n(l),c=a(14),h=a.n(c),d=a(15),p=a.n(d),u=a(8),f=a.n(u),m=a(5),g=a.n(m),y=a(0),v=a.n(y),w=a(1),b=a.n(w),M=a(24),x=a(123),E=a(1565),k=a.n(E),S=a(1178),C=a(2880),D=a.n(C);a(2881);function _(t){var e=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(t){return!1}}();return function(){var a,n=f()(t);if(e){var o=f()(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return p()(this,a)}}var T=function(t){h()(a,t);var e=_(a);function a(t){var n;return o()(this,a),n=e.call(this,t),g()(i()(n),"closeModal",(function(){n.setState({showModal:!1})})),n.state={showModal:!1},n}return s()(a,[{key:"renderModal",value:function(){var t=this;return this.state.showModal?v.a.createElement(y.Fragment,null,v.a.createElement(x.default,{show:this.state.showModal,onHide:this.closeModal,title:this.props.alt,backdrop:!0,dialogClassName:"modal-100w"},v.a.createElement(x.default.Body,{style:{height:"calc(100vh - 80px)",position:"relative"}},v.a.createElement("div",{style:{height:"100%"},ref:function(e){t.containerDiv||(t.containerDiv=e,t.forceUpdate())}}),this.containerDiv?v.a.createElement(D.a,{container:this.containerDiv,visible:this.state.showModal,images:[{src:this.props.src,alt:this.props.alt}],noNavbar:!0,noClose:!0,showTotal:!1,downloadable:!1,changeable:!1,zoomSpeed:.1}):null),v.a.createElement(x.default.Footer,null,this.props.body?v.a.createElement(k.a,{text:this.props.body,onCopy:this.closeModal},v.a.createElement(M.default,{variant:"secondary"},"Copy SVG")):null,this.props.onShare?v.a.createElement(M.default,{variant:"secondary",onClick:function(){t.props.onShare(t.props.src),t.closeModal()}},"Share"):null,v.a.createElement(k.a,{text:'<img src="'.concat(this.props.src,'" width="400" height="300" />'),onCopy:this.closeModal},v.a.createElement(M.default,{variant:"secondary"},"Copy Link")),v.a.createElement(M.default,{variant:"secondary",href:this.props.src,download:"image.png"},"Save Image"),v.a.createElement(M.default,{variant:"secondary",onClick:this.closeModal},"Close")))):(this.containerDiv=null,null)}},{key:"render",value:function(){var t=this;return v.a.createElement(y.Fragment,null,v.a.createElement("img",{className:"isle-image ".concat(this.props.className),alt:this.props.alt,src:this.props.src,width:this.props.width,height:this.props.height,role:"presentation",onClick:function(){t.props.showModal&&t.setState({showModal:!0})},onDragStart:function(e){var a={key:"\x3c!--IMAGE_LOG:".concat(t.props.id,"_").concat(Object(S.default)(6),"--\x3e"),value:'<img src="'.concat(t.props.body,'" width="400" height="300" style="display: block; margin: 0 auto;" />')};e.dataTransfer.setData("text",'<img src="'.concat(t.props.src,'" width="400" height="300" />')),e.dataTransfer.setData("text/html",a.value),e.dataTransfer.setData("text/plain",a.key)},style:this.props.style}),this.renderModal())}}]),a}(y.Component);T.propTypes={body:b.a.string,className:b.a.string,height:b.a.oneOfType([b.a.number,b.a.string]),width:b.a.oneOfType([b.a.number,b.a.string]),id:b.a.string,onShare:b.a.func,showModal:b.a.bool,src:b.a.string.isRequired,alt:b.a.string,style:b.a.object},T.defaultProps={body:null,className:"",id:null,height:null,width:null,onShare:null,showModal:!0,alt:"",style:{}},e.default=T},1178:function(t,e,a){"use strict";a.r(e);var n=a(1328),o=a.n(n),r=a(225),s=a.n(r),l=[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122];e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,e=s()(l,{size:t});return o.a.apply(null,e)}},2881:function(t,e,a){var n=a(30),o=a(2882);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]);var r={insert:"head",singleton:!1};n(o,r);t.exports=o.locals||{}},2882:function(t,e,a){(e=a(31)(!1)).push([t.i,".isle-image {\n\tcursor: zoom-in;\n\tmargin: 12px;\n}\n\n.isle-image:hover {\n\tbox-shadow: 3px 3px 1px lightcoral;\n\ttransition: box-shadow 0.2s linear;\n}\n",""]),t.exports=e}}]);