(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[21],{"1rEO":function(e,t,c){"use strict";c.r(t);var a,i,n,r=c("2Taf"),u=c.n(r),f=c("vZ4D"),o=c.n(f),l=c("MhPg"),p=c.n(l),s=c("l4Ni"),d=c.n(s),y=c("ujKo"),m=c.n(y),k=c("q1tI"),C=c.n(k),T=c("/MKj"),v=c("ZFw/"),E=c.n(v),h=(c("YW/v"),c("EvmA")),w=c("9/c5"),R=c("TIx4"),D=c("Io/v"),A=c("anPH"),I=c("PcO+"),g=c("/c5h"),M=c("ZR6l"),P=c("2URI"),_=c("HJLL"),b=c("Md64"),J=c("zUHR");function N(e){var t=S();return function(){var c,a=m()(e);if(t){var i=m()(this).constructor;c=Reflect.construct(a,arguments,i)}else c=a.apply(this,arguments);return d()(this,c)}}function S(){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}}var Z=(a=Object(T["c"])(function(e){var t=e.ckuCertificate;return{ckuCertificate:t}}),a((n=function(e){p()(c,e);var t=N(c);function c(e){var a;return u()(this,c),a=t.call(this,e),a.componentWillMount=function(){},a.componentDidMount=function(){var e=a.props.location.query,t=e.id,c=e.token,i=e.type,n=e.club;c&&(window.sessionStorage.setItem("token",c),window.sessionStorage.setItem("club",n)),"gene"===i?t&&a.props.dispatch({type:"ckuCertificate/geneReport",payload:{id:t}}):t&&a.props.dispatch({type:"ckuCertificate/certificateInfo",payload:{id:t}})},a.componentWillUnmount=function(){a.props.dispatch({type:"ckuCertificate/clean"})},a.state={},a}return o()(c,[{key:"render",value:function(){var e=this.props.ckuCertificate,t=this.props.location.query.type;return C.a.createElement("div",null,"gene"===t?e?C.a.createElement(P["default"],{ckuCertificate:e}):C.a.createElement(b["default"],null):C.a.createElement(E.a,{title:"\u7535\u5b50\u8bc1\u4e66"},"XT"===e.certificateType?C.a.createElement(h["default"],{ckuCertificate:e}):"ZA_XT"===e.certificateType?C.a.createElement(w["default"],{ckuCertificate:e}):"ZA_JD"===e.certificateType?C.a.createElement(R["default"],{ckuCertificate:e}):"JD"===e.certificateType?C.a.createElement(D["default"],{ckuCertificate:e}):"DNA_XT"===e.certificateType?C.a.createElement(A["default"],{ckuCertificate:e}):"DNA_YSFY_XT"===e.certificateType?C.a.createElement(I["default"],{ckuCertificate:e}):"DG"===e.certificateType?C.a.createElement(g["default"],{ckuCertificate:e}):"MQ"===e.certificateType?C.a.createElement(M["default"],{ckuCertificate:e}):"COUNTRY"===e.certificateType?C.a.createElement(_["default"],{ckuCertificate:e}):"DNA_APPRAISAL"===e.certificateType?C.a.createElement(J["default"],{ckuCertificate:e}):null))}}]),c}(k["Component"]),i=n))||i);t["default"]=Z}}]);