/*! For license information please see dll.244.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[244],{3360:function(e,a,t){"use strict";t.r(a);var l=t(202),n=t.n(l),u=t(0),r=t.n(u),c=t(1),i=t.n(c),o=t(88),d=t(77),s=t(69),f=t(968),m=t(209),p=t(204),g=t(206),b=t(1798),E=t(200),v=t(966),y=function(e){var a=e.defaultValue,t=e.variables,l=e.groupingVariables,c=e.t,i=Object(u.useState)(!1),y=n()(i,2),q=y[0],C=y[1],h=Object(u.useState)(!0),R=n()(h,2),V=R[0],T=R[1],w=Object(u.useState)(a||t[0]),O=n()(w,2),_=O[0],j=O[1],A=Object(u.useState)(null),P=n()(A,2),S=P[0],k=P[1],F=Object(u.useState)(3),D=n()(F,2),N=D[0],B=D[1];return r.a.createElement(o.default,null,r.a.createElement(o.default.Header,{as:"h4"},c("Frequency Table"),r.a.createElement(v.default,{title:c("Frequency Table"),content:c("Frequency Table-description")})),r.a.createElement(o.default.Body,null,r.a.createElement(p.default,{legend:c("variable"),defaultValue:_,options:t,onChange:j}),r.a.createElement(p.default,{legend:c("group-by"),options:l,clearable:!0,menuPlacement:"top",onChange:k,tooltip:"Generate a frequency table for each category of a chosen grouping variable"}),r.a.createElement(f.default,null,r.a.createElement(s.default,null,r.a.createElement(m.default,{legend:"Counts",defaultValue:V,onChange:function(){T(!V)}})),r.a.createElement(s.default,null,r.a.createElement(m.default,{legend:c("relative-frequency"),defaultValue:q,onChange:function(){C(!q)}}))),q?r.a.createElement("p",null,c("report-relative-frequencies"),r.a.createElement(g.default,{inline:!0,width:50,max:16,min:0,defaultValue:N,onChange:B}),c("decimal-places")):null,r.a.createElement(d.default,{variant:"primary",block:!0,onClick:function(){var a=r.a.createElement(b.default,{variable:_,group:S,calculateCounts:V,calculateRelative:q,nDecimalPlaces:N,data:e.data});e.logAction(E.DATA_EXPLORER_FREQUENCY_TABLE,{variable:_,group:S,calculateRelative:q,calculateCounts:V,nDecimalPlaces:N}),e.onCreated(a)},disabled:!V&&!q},c("generate"))))};y.defaultProps={defaultValue:null,groupingVariables:null,logAction:function(){}},y.propTypes={data:i.a.object.isRequired,defaultValue:i.a.string,groupingVariables:i.a.array,logAction:i.a.func,onCreated:i.a.func.isRequired,variables:i.a.array.isRequired},a.default=y},966:function(e,a,t){"use strict";t.r(a);var l=t(0),n=t.n(l),u=t(1),r=t.n(u),c=t(77),i=t(974),o=t(971),d=t(970),s=t(998),f=function(e){var a=n.a.createElement(i.default,{id:"popover-positioned-right"},n.a.createElement(o.default,null,e.title),n.a.createElement(d.default,null,e.content));return n.a.createElement(s.default,{trigger:["hover","focus"],placement:"left",rootClose:!0,overlay:a},n.a.createElement(c.default,{size:"sm",variant:"outline-secondary",className:"question-button"},n.a.createElement("div",{className:"fa fa-question"})))};f.propTypes={content:r.a.oneOfType([r.a.string,r.a.node]).isRequired,title:r.a.string.isRequired},a.default=f}}]);