/*! For license information please see dll.Qrcode.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[106],{1132:function(e,t,n){"use strict";n.r(t),function(e){var r=n(146),s=n.n(r),o=n(106),i=n.n(o),a=n(34),c="object"===(void 0===e?"undefined":s()(e))&&i()(e.versions)&&Object(a.isPrimitive)(e.versions.electron)&&Object(a.isPrimitive)(e.versions.chrome)&&("browser"===e.type||"renderer"===e.type);t.default=c}.call(this,n(367))},904:function(e,t,n){"use strict";n.r(t);var r=n(14),s=n.n(r),o=n(12),i=n.n(o),a=n(10),c=n.n(a),h=n(15),l=n.n(h),u=n(16),p=n.n(u),d=n(8),f=n.n(d),v=n(7),w=n.n(v),y=n(0),m=n.n(y),g=n(38),x=n.n(g),b=n(1),C=n.n(b),k=n(2941),R=n.n(k),D=n(1132);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=f()(e);if(t){var s=f()(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return p()(this,n)}}var j=x()("isle:qrcode"),P=function(e){l()(n,e);var t=E(n);function n(e,r){var o;return s()(this,n),o=t.call(this,e),w()(c()(o),"handleHashChange",(function(){o.props.text||o.renderCode()})),o}return i()(n,[{key:"componentDidMount",value:function(){this.renderCode(),D.default||window.addEventListener("hashchange",this.handleHashChange)}},{key:"componentDidUpdate",value:function(e){this.props.text===e.text&&this.props.scale===e.scale&&this.props.width===e.width&&this.props.height===e.height||this.renderCode()}},{key:"componentWillUnmount",value:function(){D.default||window.removeEventListener("hashchange",this.handleHashChange)}},{key:"renderCode",value:function(){var e=this.props.text||window.location.href;j("Display '".concat(e,"' as QR code...")),R.a.toCanvas(this.canvas,e,{scale:this.props.scale,width:this.props.width,height:this.props.height},j)}},{key:"render",value:function(){var e=this,t=m.a.createElement("canvas",{className:"qrcode-canvas ".concat(this.props.center?"center":""),ref:function(t){t&&(e.canvas=t)},style:this.props.style});if(this.props.showText){var n=this.props.text||window.location.href,r={};return this.props.center&&(r.textAlign="center"),m.a.createElement(y.Fragment,null,t,m.a.createElement("div",{className:"title",style:r},n))}return t}}]),n}(y.Component);P.defaultProps={text:null,scale:8,showText:!1,center:!1,style:{}},P.propTypes={text:C.a.string,scale:C.a.number,showText:C.a.bool,center:C.a.bool,style:C.a.object},t.default=P}}]);