/*! For license information please see dll.232.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[232],{1014:function(e,a,t){"use strict";t.r(a);var n=t(1076),l=t.n(n),r=t(1023),i=t.n(r),u=[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122];a.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,a=i()(u,{size:e});return l.a.apply(null,a)}},3395:function(e,a,t){"use strict";t.r(a);var n=t(205),l=t.n(n),r=t(202),i=t.n(r),u=t(0),o=t.n(u),s=t(1),c=t.n(s),d=t(87),f=t(77),p=t(204),m=t(1014),g=t(1563),v=t(200),b=t(966),E=["Counts of unique values","Values from a second variable"],h=function(e){var a=e.variables,t=e.defaultValue,n=e.groupingVariables,r=e.quantitative,s=e.t,c=Object(u.useState)(t||a[0]),h=i()(c,2),y=h[0],C=h[1],R=Object(u.useState)(r[0]),V=i()(R,2),q=V[0],A=V[1],P=Object(u.useState)(null),_=i()(P,2),O=_[0],j=_[1],S=Object(u.useState)(E[0]),T=i()(S,2),w=T[0],k=T[1];return o.a.createElement(d.default,null,o.a.createElement(d.default.Header,{as:"h4"},s("Pie Chart"),o.a.createElement(b.default,{title:s("Pie Chart"),content:s("Pie Chart-description")})),o.a.createElement(d.default.Body,null,o.a.createElement(p.default,{legend:s("pie-sizes-represent"),defaultValue:w,options:E,onChange:k}),o.a.createElement(p.default,{legend:s("variable"),defaultValue:y,options:a,onChange:C}),w===E[1]?o.a.createElement(p.default,{legend:"Set slice sizes to sum of summary variable:",defaultValue:q,options:r,onChange:A}):null,o.a.createElement(p.default,{legend:s("group-by"),defaultValue:O,options:n,clearable:!0,menuPlacement:"top",onChange:j}),o.a.createElement(f.default,{variant:"primary",block:!0,onClick:function(){var a=Object(m.default)(6),t={variable:y,group:O,plotId:a};w===E[1]&&(t.summaryVariable=q);var n=o.a.createElement(g.default,l()({id:a},e,{variable:y,group:O,summaryVariable:w===E[1]?q:null,action:t,onShare:function(){e.session.addNotification({title:s("plot-shared"),message:s("plot-shared-message"),level:"success",position:"tr"}),e.logAction(v.DATA_EXPLORER_SHARE_PIECHART,t)}}));e.logAction(v.DATA_EXPLORER_PIECHART,t),e.onCreated(n)}},s("generate"))))};h.defaultProps={defaultValue:null,groupingVariables:null,logAction:function(){}},h.propTypes={data:c.a.object.isRequired,defaultValue:c.a.string,groupingVariables:c.a.array,logAction:c.a.func,onCreated:c.a.func.isRequired,session:c.a.object.isRequired,quantitative:c.a.array.isRequired,variables:c.a.array.isRequired},a.default=h},966:function(e,a,t){"use strict";t.r(a);var n=t(0),l=t.n(n),r=t(1),i=t.n(r),u=t(77),o=t(974),s=t(971),c=t(970),d=t(998),f=function(e){var a=l.a.createElement(o.default,{id:"popover-positioned-right"},l.a.createElement(s.default,null,e.title),l.a.createElement(c.default,null,e.content));return l.a.createElement(d.default,{trigger:["hover","focus"],placement:"left",rootClose:!0,overlay:a},l.a.createElement(u.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}}]);