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