/*! For license information please see dll.Qrcode.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[96],{915:function(t,e,n){"use strict";n.r(e);var r=n(14),c=n.n(r),o=n(13),s=n.n(o),a=n(15),i=n.n(a),u=n(16),l=n.n(u),p=n(8),f=n.n(p),d=n(0),h=n.n(d),v=n(45),y=n.n(v),w=n(1),m=n.n(w),k=n(3211),x=n.n(k);function b(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 n,r=f()(t);if(e){var c=f()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return l()(this,n)}}var C=y()("isle:qrcode"),R=function(t){i()(n,t);var e=b(n);function n(t,r){return c()(this,n),e.call(this,t)}return s()(n,[{key:"componentDidMount",value:function(){this.renderCode()}},{key:"componentDidUpdate",value:function(t){this.props.text===t.text&&this.props.scale===t.scale||this.renderCode()}},{key:"renderCode",value:function(){var t=this.props.text||window.location.href;x.a.toCanvas(this.canvas,t,{scale:this.props.scale},C)}},{key:"render",value:function(){var t=this;return h.a.createElement("canvas",{className:"qrcode-canvas ".concat(this.props.center?"center":""),width:this.props.width,ref:function(e){e&&(t.canvas=e)},style:this.props.style})}}]),n}(d.Component);R.defaultProps={text:null,scale:8,center:!1,style:{}},R.propTypes={text:m.a.string,scale:m.a.number,center:m.a.bool,style:m.a.object},e.default=R}}]);