/*! For license information please see dll.251.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[251],{3407:function(e,a,t){"use strict";t.r(a);var n=t(202),l=t.n(n),o=t(0),i=t.n(o),r=t(1),c=t.n(r),u=t(88),s=t(77),d=t(206),f=t(204),p=t(365),m=t(1830),E=t(1312),g=t(200),b=t(966),h=function(e){var a=e.data,t=e.categorical,n=e.showDecision,r=e.t,c=Object(o.useState)(null),h=l()(c,2),v=h[0],w=h[1],S=Object(o.useState)(null),O=l()(S,2),y=O[0],T=O[1],C=Object(o.useState)(.5),j=l()(C,2),_=j[0],P=j[1],R=Object(o.useState)("two-sided"),q=l()(R,2),D=q[0],A=q[1],V=Object(o.useState)(.05),k=l()(V,2),x=k[0],z=k[1],J=Object(o.useState)(null),N=l()(J,2),B=N[0],H=N[1];return i.a.createElement(u.default,{style:{fontSize:"14px"}},i.a.createElement(u.default.Header,{as:"h4"},r("One-Sample Proportion Test"),i.a.createElement(b.default,{title:r("One-Sample Proportion Test"),content:r("One-Sample Proportion Test-description")})),i.a.createElement(u.default.Body,null,i.a.createElement(f.default,{legend:r("variable"),defaultValue:v,options:t,onChange:function(a){var t=e.data[a],n=Object(E.default)(t,a);H(n),w(a),T(n[0])}}),B?i.a.createElement(f.default,{legend:"Success:",defaultValue:y,options:B,onChange:T}):null,i.a.createElement(d.default,{legend:i.a.createElement(p.default,{raw:"p_0"}),defaultValue:_,min:.001,max:.999,step:"any",onChange:P}),i.a.createElement(f.default,{legend:r("direction"),defaultValue:D,options:["less","greater","two-sided"],onChange:A}),i.a.createElement(d.default,{legend:i.a.createElement("span",null,r("significance-level"),i.a.createElement(p.default,{raw:"\\alpha"})),defaultValue:x,min:0,max:1,step:"any",onChange:z}),i.a.createElement(s.default,{variant:"primary",block:!0,onClick:function(){var t=i.a.createElement(m.default,{data:a,variable:v,success:y,p0:_,direction:D,alpha:x,showDecision:n});e.logAction(g.DATA_EXPLORER_TESTS_PROPTEST,{variable:v,success:y,p0:_,direction:D,alpha:x,showDecision:n}),e.onCreated(t)},disabled:!v},r("calculate"))))};h.propTypes={categorical:c.a.array,data:c.a.object.isRequired,logAction:c.a.func,onCreated:c.a.func.isRequired,showDecision:c.a.bool},h.defaultProps={categorical:null,logAction:function(){},showDecision:!0},a.default=h},966:function(e,a,t){"use strict";t.r(a);var n=t(0),l=t.n(n),o=t(1),i=t.n(o),r=t(77),c=t(974),u=t(971),s=t(970),d=t(998),f=function(e){var a=l.a.createElement(c.default,{id:"popover-positioned-right"},l.a.createElement(u.default,null,e.title),l.a.createElement(s.default,null,e.content));return l.a.createElement(d.default,{trigger:["hover","focus"],placement:"left",rootClose:!0,overlay:a},l.a.createElement(r.default,{size:"sm",variant:"outline-secondary",className:"question-button"},l.a.createElement("div",{className:"fa fa-question"})))};f.propTypes={content:i.a.oneOfType([i.a.string,i.a.node]).isRequired,title:i.a.string.isRequired},a.default=f}}]);