(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[16],{eWLl:function(t,e,n){"use strict";n.r(e);var c,a,o,i=n("2Taf"),_=n.n(i),r=n("vZ4D"),p=n.n(r),l=n("MhPg"),s=n.n(l),u=n("l4Ni"),d=n.n(u),g=n("ujKo"),f=n.n(g),b=n("q1tI"),m=n.n(b),y=n("/MKj"),h=n("3a4m"),v=n.n(h),S=n("ZFw/"),N=n.n(S),E=n("vgt2"),k=n.n(E);function w(t){var e=I();return function(){var n,c=f()(t);if(e){var a=f()(this).constructor;n=Reflect.construct(c,arguments,a)}else n=c.apply(this,arguments);return d()(this,n)}}function I(){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}}var D=(c=Object(y["c"])(function(t){var e=t.dogGroup,n=t.fciSection;return{dogGroup:e,fciSection:n}}),c((o=function(t){s()(n,t);var e=w(n);function n(){var t;_()(this,n);for(var c=arguments.length,a=new Array(c),o=0;o<c;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),t.state={},t.componentWillMount=function(){var e=t.props.dogGroup.list;if(0!==e.length){var n=t.props.location.query.index;n&&(t.props.dispatch({type:"fciSection/updateState",payload:{index:n,item:e[n]}}),t.props.dispatch({type:"fciSection/getFciSectionByGroupId",payload:{groupNo:e[n].group_no}}))}else v.a.goBack()},t.componentDidMount=function(){},t.componentWillUnmount=function(){t.props.dispatch({type:"fciSection/clearState",payload:{}})},t.goOpen=function(e,n){var c=t.props.fciSection.listI;n!==c?(t.props.dispatch({type:"fciSection/updateState",payload:{listI:n}}),t.props.dispatch({type:"fciSection/getFciDogBySectionId",payload:{gsNo:e.gs_no}})):t.props.dispatch({type:"fciSection/updateState",payload:{listI:null}})},t.goDetail=function(t){v.a.push("/breed/detail?typeNo=".concat(t))},t}return p()(n,[{key:"render",value:function(){var t=this,e=this.props.fciSection,n=e.item,c=e.list,a=e.listI;return m.a.createElement(N.a,{title:"FCI\u72ac\u79cd\u6807\u51c6"},m.a.createElement("div",{className:k.a.body},m.a.createElement("div",{className:k.a.body_c},m.a.createElement("div",{className:k.a.g_t},n.chinese_group_name,m.a.createElement("p",null,n.introduction)),m.a.createElement("div",{className:k.a.g_b},c?c.map(function(e,n){return m.a.createElement("div",{key:e.section_no,className:k.a.g_b_p},m.a.createElement("div",{onClick:function(){t.goOpen(e,n)},className:"".concat(k.a.g_b_i," ").concat(n===a?k.a.g_b_i_a:"")},e.chinese_section_name),m.a.createElement("div",{className:"".concat(k.a.g_b_c," ").concat(n===a?k.a.g_b_c_a:"")},e.children?e.children.map(function(e,n){return m.a.createElement("div",{key:e.type_no,onClick:function(){t.goDetail(e.type_no)},className:k.a.g_b_c_i},e.chinese_breed_name," ",e.english_breed_name)}):null))}):null))))}}]),n}(b["Component"]),a=o))||a);e["default"]=D},vgt2:function(t,e,n){t.exports={body:"body___2FOGM",body_c:"body_c___4B7Rp",g_t:"g_t___2tTQ7",g_b:"g_b___3zrNC",g_b_p:"g_b_p___1KmGN",g_b_i:"g_b_i___Q0bO-",g_b_i_a:"g_b_i_a___9bYj3",g_b_c:"g_b_c___P2juX",g_b_c_a:"g_b_c_a___3mpaG",g_b_c_i:"g_b_c_i___1YxWA"}}}]);