/*! For license information please see dll.Image.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[55],{1014:function(e,a,t){"use strict";t.r(a);var n=t(1076),r=t.n(n),l=t(1023),o=t.n(l),i=[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];a.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,a=o()(i,{size:e});return r.a.apply(null,a)}},2576:function(e,a,t){"use strict";t.r(a);var n=t(965),r=t(2577);n.default.addResources("de","image",r.DE),n.default.addResources("en","image",r.EN),n.default.addResources("es","image",r.ES)},2577:function(e){e.exports=JSON.parse('{"DE":{"close":"Schließen","copy-link":"Link kopieren","copy-svg":"SVG kopieren","save-image":"Bild speichern","share":"Teilen"},"EN":{"close":"Close","copy-link":"Copy Link","copy-svg":"Copy SVG","save-image":"Save Image","share":"Share"},"ES":{"close":"Cerca","copy-link":"Copiar Link","copy-svg":"Copiar SVG","save-image":"Descargar imagen","share":"Compartir"}}')},2578:function(e,a,t){"use strict";t.r(a);var n=t(22),r=t.n(n),l=t(2579),o={insert:"head",singleton:!1};r()(l.default,o);a.default=l.default.locals||{}},2579:function(e,a,t){"use strict";t.r(a);var n=t(23),r=t.n(n)()(!1);r.push([e.i,".isle-image {\n\tcursor: zoom-in;\n\tmargin-top: 12px;\n\tmargin-bottom: 12px;\n}\n\n.isle-image:hover {\n\tbox-shadow: 3px 3px 1px lightcoral;\n\ttransition: box-shadow 0.2s linear;\n}\n\n.react-viewer-canvas {\n\tbackground: white;\n}\n\n.react-viewer-attribute {\n\tcolor: black;\n}\n\n.isle-image-picker {\n\ttop: 2px;\n\tleft: 10px;\n\tposition: absolute;\n\tz-index: 9999;\n\tbackground-color: white;\n}\n",""]),a.default=r},860:function(e,a,t){"use strict";t.r(a);var n=t(202),r=t.n(n),l=t(0),o=t.n(l),i=t(1),c=t.n(i),s=t(2309),u=t(77),d=t(1011),m=t(1860),g=t.n(m),h=t(424),p=t(1014),f=t(2575),y=t.n(f),v=(t(2576),t(2578),function(e){var a,t=Object(l.useState)(!1),n=r()(t,2),i=n[0],c=n[1],s=Object(l.useState)(!1),m=r()(s,2),f=m[0],v=m[1],b=Object(l.useState)(!1),w=r()(b,2),k=w[0],E=w[1],x=Object(l.useRef)(),C=function(){c(!1),x.current=null};return i&&(a=o.a.createElement(l.Fragment,null,o.a.createElement(d.default,{show:i,onHide:C,title:e.alt,backdrop:!0,dialogClassName:"modal-100w"},o.a.createElement(d.default.Body,{style:{height:"calc(100vh - 80px)",position:"relative"}},o.a.createElement("div",{style:{height:"100%"},ref:function(e){x.current||(x.current=e,E(!k))}}),f?o.a.createElement(h.default,{variant:"Compact",className:"isle-image-picker",onChangeComplete:function(e){document.getElementsByClassName("react-viewer-canvas")[0].style.backgroundColor=e.hex}}):null,o.a.createElement(y.a,{container:x.current,visible:i,images:[{src:e.src,alt:e.alt}],noNavbar:!0,noClose:!0,showTotal:!1,downloadable:!1,changeable:!1,zoomSpeed:.1,customToolbar:function(e){return e.concat([{key:"Background",render:o.a.createElement("i",{className:"fas fa-tint"}),onClick:function(){v(!f)}}])}})),o.a.createElement(d.default.Footer,null,e.body?o.a.createElement(g.a,{text:e.body,onCopy:C},o.a.createElement(u.default,{variant:"secondary"},e.t("copy-svg"))):null,e.onShare?o.a.createElement(u.default,{variant:"secondary",onClick:function(){e.onShare(e.src),C()}},e.t("share")):null,o.a.createElement(g.a,{text:'<img src="'.concat(e.src,'" width="400" height="300" />'),onCopy:C},o.a.createElement(u.default,{variant:"secondary"},e.t("copy-link"))),o.a.createElement(u.default,{variant:"secondary",href:e.src,download:"image.png"},e.t("save-image")),o.a.createElement(u.default,{variant:"secondary",onClick:C},e.t("close")))))),o.a.createElement(l.Fragment,null,o.a.createElement("img",{className:"isle-image ".concat(e.className),alt:e.alt,src:e.src,width:e.width,height:e.height,role:"presentation",onClick:function(){e.showModal&&c(!0)},onDragStart:function(a){var t={key:"\x3c!--IMAGE_LOG:".concat(e.id,"_").concat(Object(p.default)(6),"--\x3e"),value:'<img src="'.concat(e.body,'" width="400" height="300" style="display: block; margin: 0 auto;" />')};a.dataTransfer.setData("text",'<img src="'.concat(e.src,'" width="400" height="300" />')),a.dataTransfer.setData("text/html",t.value),a.dataTransfer.setData("text/plain",t.key)},style:e.style}),a)});v.propTypes={src:c.a.string.isRequired,alt:c.a.string,body:c.a.string,height:c.a.oneOfType([c.a.number,c.a.string]),width:c.a.oneOfType([c.a.number,c.a.string]),id:c.a.string,showModal:c.a.bool,className:c.a.string,style:c.a.object,onShare:c.a.func},v.defaultProps={body:null,className:"",id:null,height:null,width:null,onShare:null,showModal:!0,alt:"",style:{}},a.default=Object(s.withTranslation)("image")(v)}}]);