/*! For license information please see dll.218.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[218],{3408:function(e,t,a){"use strict";a.r(t);var n=a(14),r=a.n(n),o=a(12),i=a.n(o),l=a(15),c=a.n(l),u=a(16),s=a.n(u),f=a(8),p=a.n(f),d=a(0),v=a.n(d),A=a(1),y=a.n(A),h=a(3409),w=a.n(h),m=a(102),g=a(137),b=a.n(g),O=a(975),E=a.n(O),R=a(191),V=a(359),q=a(190),N=a(992);function _(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=p()(e);if(t){var r=p()(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return s()(this,a)}}var D=function(e){c()(a,e);var t=_(a);function a(e){var n;return r()(this,a),(n=t.call(this,e)).calculateANOVA=function(e,t){for(var a=n.props,r=a.data,o=a.showDecision,i=r[e],l=r[t],c=[],u=[],s=0;s<i.length;s++)!Object(m.isPrimitive)(i[s])||b()(i[s])||E()(l[s])||""===l[s]||(u.push(i[s]),c.push('"'.concat(l[s],'"')));var f={variable:"One-way ANOVA",type:"Test",value:v.a.createElement("div",{style:{overflowX:"auto",width:"100%"}},v.a.createElement("label",null,"ANOVA for ",e," between ",t),v.a.createElement("pre",{style:{marginTop:10}},w()(u,c).print({decision:o})))};n.props.logAction(q.DATA_EXPLORER_TESTS_ANOVA,{variable:e,grouping:t}),n.props.onCreated(f)},n}return i()(a,[{key:"render",value:function(){var e=this.props,t=e.quantitative,a=e.categorical;return v.a.createElement(V.default,{autoStart:!1,title:v.a.createElement("span",null,"One-way ANOVA",v.a.createElement(N.default,{title:"One-way ANOVA",content:"A one-way analysis of variance tests for equality of means across several groups."})),label:"Calculate",onGenerate:this.calculateANOVA},v.a.createElement(R.default,{legend:"Variable:",defaultValue:t[0],options:t}),v.a.createElement(R.default,{legend:"Grouping Variable:",defaultValue:a[0],options:a}))}}]),a}(d.Component);D.propTypes={categorical:y.a.array.isRequired,quantitative:y.a.array.isRequired,data:y.a.object.isRequired,logAction:y.a.func,onCreated:y.a.func.isRequired,showDecision:y.a.bool},D.defaultProps={logAction:function(){},showDecision:!0},t.default=D}}]);