/*! For license information please see dll.214.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[214],{1483:function(e,t,a){"use strict";a.r(t),t.default=function(e,t){var a=new String(e);return a.categories=t,a}},3433:function(e,t,a){"use strict";a.r(t);var n=a(14),r=a.n(n),l=a(12),u=a.n(l),i=a(10),c=a.n(i),o=a(15),s=a.n(o),f=a(16),d=a.n(f),p=a(8),m=a.n(p),g=a(7),h=a.n(g),v=a(0),E=a.n(v),R=a(1),y=a.n(R),b=a(965),C=a(66),A=a(201),_=a.n(A),q=a(138),w=a.n(q),k=a(1040),V=a.n(k),D=a(203),G=a(207),H=a(204),L=a(368),S=a(1483),j=a(1837),I=a(200),P=a(991);function T(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 a,n=m()(e);if(t){var r=m()(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return d()(this,a)}}var J=["euclidean","chebyshev","cosine","hamming","manhattan"],K=["complete","single"],N=function(e){s()(a,e);var t=T(a);function a(e){var n;return r()(this,a),n=t.call(this,e),h()(c()(n),"compute",(function(e,t,a,r,l){var u=E.a.createElement(j.default,{variables:e,K:a,linkage:r,distance:l,data:n.props.data,onResult:function(r){if(t){var l=w()(n.props.data,1),u=n.props.categorical.slice(),i=e.map((function(e){return e[0]})).join(""),c=r.getClusterAssignments(a),o=Object(S.default)("hclust_cluster_"+i,V()(0,a,1).map((function(e){return"Cluster ".concat(e+1)})));l[o]=c,_()(u,o)||u.push(o),n.props.onGenerate(u,l)}}});n.props.logAction(I.DATA_EXPLORER_HIERARCHICAL_CLUSTERING,{variables:e,attach:t,K:a,linkage:r,distance:l}),n.props.onCreated(u)})),n}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.quantitative,a=e.originalQuantitative;return E.a.createElement(L.default,{title:E.a.createElement("span",null,"Hierarchical Clustering",E.a.createElement(P.default,{title:"Hierarchical Clustering",content:""})),autoStart:!1,onGenerate:this.compute},E.a.createElement(D.default,{legend:"Variables:",multi:!0,defaultValue:a,options:t}),E.a.createElement(b.default,null,E.a.createElement(C.default,null,E.a.createElement(G.default,{legend:"Attach clusters to table?",defaultValue:!1})),E.a.createElement(C.default,null,E.a.createElement(H.default,{legend:"Number of clusters",min:1,inline:!0,defaultValue:3}))),E.a.createElement(b.default,null,E.a.createElement(C.default,null,E.a.createElement(D.default,{legend:"Linkage",defaultValue:K[0],options:K})),E.a.createElement(C.default,null,E.a.createElement(D.default,{legend:"Distance",defaultValue:J[0],options:J}))))}}]),a}(v.Component);N.defaultProps={logAction:function(){}},N.propTypes={categorical:y.a.array.isRequired,quantitative:y.a.array.isRequired,originalQuantitative:y.a.array.isRequired,data:y.a.object.isRequired,logAction:y.a.func,onGenerate:y.a.func.isRequired,onCreated:y.a.func.isRequired},t.default=N}}]);