text: (this["webpackJsonpreact-theme-switch-demo"]=this["webpackJsonpreact-theme-switch-demo"]||[]).push([[0],{185:function(e,t,a){e.exports=a(346)},346:function(e,t,a){"use strict";a.r(t);var n=a(0),l=a.n(n),r=a(13),c=a.n(r),o=a(28),s=a(29),m=a(31),i=a(30),u=a(352),h=a(54),d=a(107),p=a(351),g=a(353),E=a(348),v=a(349),b=[{title:"Name",dataIndex:"name",key:"name",render:function(e){return l.a.createElement("a",null,e)}},{title:"Age",dataIndex:"age",key:"age"},{title:"Address",dataIndex:"address",key:"address"},{title:"Tags",key:"tags",dataIndex:"tags",render:function(e){return l.a.createElement(l.a.Fragment,null,e.map((function(e){var t=e.length>5?"geekblue":"green";return"loser"===e&&(t="volcano"),l.a.createElement(g.a,{color:t,key:e},e.toUpperCase())})))}},{title:"Action",key:"action",render:function(e,t){return l.a.createElement(E.a,{size:"middle"},l.a.createElement("a",null,"Invite ",t.name),l.a.createElement("a",null,"Delete"))}}],k=[{key:"1",name:"John Brown",age:32,address:"New York No. 1 Lake Park",tags:["nice","developer"]},{key:"2",name:"Jim Green",age:42,address:"London No. 1 Lake Park",tags:["loser"]},{key:"3",name:"Joe Black",age:32,address:"Sidney No. 1 Lake Park",tags:["cool","teacher"]},{key:"4",name:"Jerry",age:12,address:"New York No. 1 Lake Park",tags:["nice"]},{key:"5",name:"Tom",age:32,address:"china shanghai",tags:["loser"]},{key:"6",name:"TomJerry",age:18,address:"Japa No. 1 Lake Park",tags:["cool"]}],f=function(e){Object(m.a)(a,e);var t=Object(i.a)(a);function a(){return Object(o.a)(this,a),t.apply(this,arguments)}return Object(s.a)(a,[{key:"render",value:function(){return l.a.createElement(v.a,{columns:b,dataSource:k,pagination:!1})}}]),a}(l.a.Component),y=a(81);function N(e){console.log("checked = ",e)}var O=["Apple","Pear","Orange"],w=[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange"}],j=[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange",disabled:!1}],A=function(e){Object(m.a)(a,e);var t=Object(i.a)(a);function a(){return Object(o.a)(this,a),t.apply(this,arguments)}return Object(s.a)(a,[{key:"render",value:function(){return l.a.createElement("div",null,l.a.createElement(y.a.Group,{options:O,defaultValue:["Apple"],onChange:N}),l.a.createElement("br",null),l.a.createElement("br",null),l.a.createElement(y.a.Group,{options:w,defaultValue:["Pear"],onChange:N}),l.a.createElement("br",null),l.a.createElement("br",null),l.a.createElement(y.a.Group,{options:j,disabled:!0,defaultValue:["Apple"],onChange:N}))}}]),a}(l.a.Component),C=a(101),P=function(e){Object(m.a)(a,e);var t=Object(i.a)(a);function a(){var e;Object(o.a)(this,a);for(var n=arguments.length,l=new Array(n),r=0;r<n;r++)l[r]=arguments[r];return(e=t.call.apply(t,[this].concat(l))).state={value:1},e.onChange=function(t){console.log("radio checked",t.target.value),e.setState({value:t.target.value})},e}return Object(s.a)(a,[{key:"render",value:function(){var e={display:"block",height:"30px",lineHeight:"30px"},t=this.state.value;return l.a.createElement(C.default.Group,{onChange:this.onChange,value:t},l.a.createElement(C.default,{style:e,value:1},"Option A"),l.a.createElement(C.default,{style:e,value:2},"Option B"),l.a.createElement(C.default,{style:e,value:3},"Option C"),l.a.createElement(C.default,{style:e,value:4},"Option C"))}}]),a}(l.a.Component),_=a(55),T=function(e){Object(m.a)(a,e);var t=Object(i.a)(a);function a(){return Object(o.a)(this,a),t.apply(this,arguments)}return Object(s.a)(a,[{key:"render",value:function(){return l.a.createElement("div",null,l.a.createElement(_.a,{type:"primary"},"Primary"),l.a.createElement(_.a,null,"Default"),l.a.createElement(_.a,{type:"dashed"},"Dashed"),l.a.createElement(_.a,{type:"link"},"Link"))}}]),a}(l.a.Component),x=a(350),I=x.a.Panel;function L(e){console.log(e)}var J="\n  A dog is a type of domesticated animal.\n  Known for its loyalty and faithfulness,\n  it can be found as a welcome guest in many households across the world.\n",S=function(e){Object(m.a)(a,e);var t=Object(i.a)(a);function a(){return Object(o.a)(this,a),t.apply(this,arguments)}return Object(s.a)(a,[{key:"render",value:function(){return l.a.createElement(x.a,{defaultActiveKey:["1"],onChange:L},l.a.createElement(I,{header:"This is panel header 1",key:"1"},l.a.createElement("p",null,J)),l.a.createElement(I,{header:"This is panel header 2",key:"2"},l.a.createElement("p",null,J)),l.a.createElement(I,{header:"This is panel header 3",key:"3",disabled:!0},l.a.createElement("p",null,J)))}}]),a}(l.a.Component),G=a(177),B=a.n(G),D=!1;var K=[{themeName:"theme-black",selected:!1},{themeName:"theme-blue",selected:!1},{themeName:"theme-orange",selected:!1},{themeName:"theme-red",selected:!1}],M=window.generator_webpack_plugin_theme_vars.map((function(e){return{themeName:e.key,themePath:e.themePath}})),V=B()({themeList:M,styleLinkId:"theme_creator_cli_style_id",useStorage:!0,storageKey:"theme_switcher_tool_theme"}),W=function(e){Object(m.a)(a,e);var t=Object(i.a)(a);function a(){var e;Object(o.a)(this,a);for(var n=arguments.length,l=new Array(n),r=0;r<n;r++)l[r]=arguments[r];return(e=t.call.apply(t,[this].concat(l))).state={themes:K},e}return Object(s.a)(a,[{key:"componentDidMount",value:function(){var e=V.getCurrentTheme();e&&this.changeTheme(e),function(e){var t=document.createElement("script");t.setAttribute("src","https://utteranc.es/client.js"),t.setAttribute("repo","huangshuwei/comments"),t.setAttribute("issue-term","pathname"),t.setAttribute("theme","github-dark"),t.setAttribute("crossorigin","anonymous"),t.setAttribute("async",""),document.querySelector(e).appendChild(t),t.onload=function(e){console.log("comments plugin 11111::",e),D=!0},t.onerror=function(){console.log("comments plugin error")}}("#utterances-github-comments-plugin")}},{key:"changeTheme",value:function(e){this.setState({themes:this.state.themes.slice().map((function(t){return t.selected=e===t.themeName,t}))});var t=u.a.loading("theme loading...");V.switcher({themeName:e}).then((function(){setTimeout(t),function(e,t){var a=document.querySelector(e);if(a&&D){var n={type:"set-theme",theme:"theme-black"===t?"github-dark":"github-light"};try{a.contentWindow.postMessage(n,"https://utteranc.es")}catch(l){}}}("#utterances-github-comments-plugin iframe",e)}))}},{key:"render",value:function(){var e=this,t=l.a.createElement(h.a,null,l.a.createElement(h.a.Item,null,l.a.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/huangshuwei/theme-generator-webpack-plugin"},"theme-generator-webpack-plugin")),l.a.createElement(h.a.Item,null,l.a.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/huangshuwei/theme-switcher-tool"},"theme-switcher-tool")));return l.a.createElement("div",{className:"home"},l.a.createElement("div",{className:"home-top-bar"},l.a.createElement("div",{className:"left"},"React Ant.Design UI Example"),l.a.createElement("div",{className:"right"},l.a.createElement("div",{className:"tool"},this.state.themes.map((function(t,a){return l.a.createElement("span",{key:a,onClick:function(){return e.changeTheme(t.themeName)},className:"".concat(t.themeName," color-item")},t.selected&&l.a.createElement("i",{className:"iconfont icon-check"}))}))),l.a.createElement("div",{className:"link-info"},l.a.createElement(d.a,{overlay:t,trigger:"click"},l.a.createElement("i",{className:"iconfont icon-GitHub"},"\xa0\xa0",l.a.createElement(p.a,null)))))),l.a.createElement("div",{className:"home-content"},l.a.createElement("div",{className:"content-item"},l.a.createElement("div",{className:"content-item-block"},l.a.createElement("span",{className:"icon"}),l.a.createElement("span",{className:"title"},"Table")),l.a.createElement(f,null)),l.a.createElement("div",{className:"content-item"},l.a.createElement("div",{className:"content-item-block"},l.a.createElement("span",{className:"icon"}),l.a.createElement("span",{className:"title"},"Checkbox")),l.a.createElement(A,null)),l.a.createElement("div",{className:"content-item"},l.a.createElement("div",{className:"content-item-block"},l.a.createElement("span",{className:"icon"}),l.a.createElement("span",{className:"title"},"Radio")),l.a.createElement(P,null)),l.a.createElement("div",{className:"content-item"},l.a.createElement("div",{className:"content-item-block"},l.a.createElement("span",{className:"icon"}),l.a.createElement("span",{className:"title"},"Button")),l.a.createElement(T,null)),l.a.createElement("div",{className:"content-item"},l.a.createElement("div",{className:"content-item-block"},l.a.createElement("span",{className:"icon"}),l.a.createElement("span",{className:"title"},"Collapse")),l.a.createElement(S,null)),l.a.createElement("div",{className:"content-item"},l.a.createElement("div",{className:"content-item-block"},l.a.createElement("span",{className:"icon"}),l.a.createElement("span",{className:"title"},"Github Comments(need proxy)")),l.a.createElement("div",{id:"utterances-github-comments-plugin"}))))}}]),a}(l.a.Component);Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));c.a.render(l.a.createElement(l.a.StrictMode,null,l.a.createElement(W,null)),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()})).catch((function(e){console.error(e.message)}))}},[[185,1,2]]]);
  //# sourceMappingURL=main.4feda197.chunk.js.map