/*! For license information please see dll.218.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[218],{2084:function(e,t,a){"use strict";a.r(t);var n=a(142),l=a.n(n),u=a(997),o=a.n(u);t.default=function(e,t){for(var a=[],n=0;n<e.length;n++){var u=t[e[n]];if(u)for(var r=new Set,i=0;i<u.length;i++){var c=u[i];if(o()(c)||l()(c)||""===c||r.add(c),r.size>2)break;i===u.length-1&&a.push(e[n])}}return a}},3406:function(e,t,a){"use strict";a.r(t);var n=a(202),l=a.n(n),u=a(0),o=a.n(u),r=a(1),i=a.n(r),c=a(77),d=a(88),s=a(69),f=a(968),m=a(206),p=a(204),g=a(365),E=a(1827),v=a(200),h=a(966),b=a(2084),w=function(e){var t=e.quantitative,a=e.categorical,n=e.data,r=e.t,i=Object(u.useState)(null),w=l()(i,2),y=w[0],T=w[1],S=Object(u.useState)(null),O=l()(S,2),C=O[0],j=O[1],q=Object(u.useState)(null),R=l()(q,2),V=R[0],_=R[1],A=Object(u.useState)(0),P=l()(A,2),D=P[0],k=P[1],x=Object(u.useState)("two-sided"),M=l()(x,2),N=M[0],z=M[1],J=Object(u.useState)(.05),L=l()(J,2),Z=L[0],B=L[1],H=Object(u.useState)("T Test"),W=l()(H,2),X=W[0],F=W[1],G=Object(u.useState)(null),I=l()(G,2),K=I[0],Q=I[1],U=Object(u.useState)(null),Y=l()(U,2),$=Y[0],ee=Y[1],te=Object(b.default)(a,n);return o.a.createElement(d.default,{style:{fontSize:"14px"}},o.a.createElement(d.default.Header,{as:"h4"},r("Two-Sample Mean Test"),o.a.createElement(h.default,{title:r("Two-Sample Mean Test"),content:r("Two-Sample Mean Test-description")})),o.a.createElement(d.default.Body,null,o.a.createElement(p.default,{legend:r("type-of-test"),defaultValue:X,options:["T Test","Z Test"],onChange:F}),o.a.createElement(p.default,{legend:r("variable"),defaultValue:y,options:t,onChange:T}),o.a.createElement(f.default,null,o.a.createElement(s.default,{md:5},o.a.createElement(p.default,{legend:r("groups"),options:te,defaultValue:C,clearable:!0,onChange:function(e){_(null),j(e)}})),o.a.createElement(s.default,{md:2},o.a.createElement("p",null,"OR")),o.a.createElement(s.default,{md:5},o.a.createElement(p.default,{legend:r("second-variable"),options:t,defaultValue:V,clearable:!0,onChange:function(e){_(e),j(null)}}))),"Z Test"===X?o.a.createElement(f.default,null,o.a.createElement(s.default,null,o.a.createElement(m.default,{legend:r("1st-stdev"),defaultValue:K||1,step:"any",min:0,onChange:Q})),o.a.createElement(s.default,null,o.a.createElement(m.default,{legend:r("2nd-stdev"),defaultValue:$||1,step:"any",min:0,onChange:ee,tooltipPlacement:"top"}))):null,o.a.createElement(f.default,null,o.a.createElement(s.default,null,o.a.createElement(m.default,{legend:r("difference-h0"),defaultValue:D,step:"any",onChange:k})),o.a.createElement(s.default,null,o.a.createElement(m.default,{legend:o.a.createElement("span",null,r("significance-level"),o.a.createElement(g.default,{raw:"\\alpha"})),defaultValue:Z,min:0,max:1,step:"any",onChange:B,tooltipPlacement:"bottom"}))),o.a.createElement(p.default,{legend:r("direction"),defaultValue:N,options:["less","greater","two-sided"],onChange:z,menuPlacement:"top"}),o.a.createElement(c.default,{variant:"primary",block:!0,onClick:function(){var t=e.data,a=e.showDecision;if(!V&&!C)return e.session.addNotification({title:"Action required",message:"Please select either a grouping variable or a second variable to compare ".concat(y," against."),level:"warning",position:"tr"});var n=o.a.createElement(E.default,{x:y,group:C,y:V,diff:D,direction:N,alpha:Z,type:X,xstdev:K,ystdev:$,data:t,showDecision:a});e.logAction(v.DATA_EXPLORER_TESTS_TWO_SAMPLE_MEAN,{x:y,group:C,y:V,diff:D,direction:N,alpha:Z,showDecision:a}),e.onCreated(n)},disabled:!C&&!V||!y},r("calculate"))))};w.defaultProps={categorical:null,logAction:function(){},showDecision:!0},w.propTypes={categorical:i.a.array,quantitative:i.a.array.isRequired,data:i.a.object.isRequired,logAction:i.a.func,onCreated:i.a.func.isRequired,session:i.a.object.isRequired,showDecision:i.a.bool},t.default=w},966:function(e,t,a){"use strict";a.r(t);var n=a(0),l=a.n(n),u=a(1),o=a.n(u),r=a(77),i=a(974),c=a(971),d=a(970),s=a(998),f=function(e){var t=l.a.createElement(i.default,{id:"popover-positioned-right"},l.a.createElement(c.default,null,e.title),l.a.createElement(d.default,null,e.content));return l.a.createElement(s.default,{trigger:["hover","focus"],placement:"left",rootClose:!0,overlay:t},l.a.createElement(r.default,{size:"sm",variant:"outline-secondary",className:"question-button"},l.a.createElement("div",{className:"fa fa-question"})))};f.propTypes={content:o.a.oneOfType([o.a.string,o.a.node]).isRequired,title:o.a.string.isRequired},t.default=f}}]);