/*! For license information please see dll.228.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[228],{1014:function(e,a,t){"use strict";t.r(a);var l=t(1076),n=t.n(l),o=t(1023),r=t.n(o),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=r()(u,{size:e});return n.a.apply(null,a)}},3392:function(e,a,t){"use strict";t.r(a);var l=t(202),n=t.n(l),o=t(0),r=t.n(o),u=t(1),i=t.n(u),s=t(215),c=t(88),d=t(77),f=t(79),p=t(116),g=t(204),m=t(225),E=t(209),b=t(1014),v=t(1561),y=t(200),h=t(966);function C(e){return{label:e,value:e}}var R=function(e){var a=e.categorical,t=e.data,l=e.defaultValue,u=e.variables,i=e.groupingVariables,R=e.t,O=e.session,P=e.logAction,V=e.onCreated,L=Object(o.useState)(null),_=n()(L,2),q=_[0],w=_[1],A=Object(o.useState)(l||u[0]),j=n()(A,2),x=j[0],S=j[1],T=Object(o.useState)(null),k=n()(T,2),N=k[0],I=k[1],z=Object(o.useState)(!1),D=n()(z,2),H=D[0],J=D[1];return r.a.createElement(c.default,null,r.a.createElement(c.default.Header,{as:"h4"},R("Line Plot"),r.a.createElement(h.default,{title:R("Line Plot"),content:R("Line Plot-description")})),r.a.createElement(c.default.Body,null,r.a.createElement(f.default,{controlId:"lineplot-form-select"},r.a.createElement(p.default,null,R("x-axis")),r.a.createElement(s.default,{legend:R("x-axis"),defaultValue:null,options:[{label:"Quantitative",options:u.map(C)},{label:"Categorical",options:a.map(C)}],onChange:function(e){w(e?e.value:null)},placeholder:"Select... (optional)",isClearable:!0,styles:m.default})),r.a.createElement(g.default,{legend:R("y-axis"),defaultValue:x,options:u,onChange:S}),r.a.createElement(g.default,{legend:R("group-by"),defaultValue:N,options:i,clearable:!0,menuPlacement:"top",onChange:I}),r.a.createElement(E.default,{legend:R("show-point-markers"),defaultValue:H,onChange:J}),r.a.createElement(d.default,{variant:"primary",block:!0,onClick:function(){var e=Object(b.default)(6),a={x:q,y:x,group:N,plotId:e},l=r.a.createElement(v.default,{data:t,x:q,y:x,group:N,showPoints:H,onShare:function(){O.addNotification({title:R("plot-shared"),message:R("plot-shared-message"),level:"success",position:"tr"}),P(y.DATA_EXPLORER_SHARE_LINEPLOT,a)},action:a,id:e});P(y.DATA_EXPLORER_LINEPLOT,a),V(l)}},R("generate"))))};R.defaultProps={defaultValue:null,groupingVariables:null,logAction:function(){},onCreated:function(){}},R.propTypes={data:i.a.object.isRequired,defaultValue:i.a.string,groupingVariables:i.a.array,logAction:i.a.func,onCreated:i.a.func,session:i.a.object.isRequired,categorical:i.a.array.isRequired,variables:i.a.array.isRequired},a.default=R},966:function(e,a,t){"use strict";t.r(a);var l=t(0),n=t.n(l),o=t(1),r=t.n(o),u=t(77),i=t(974),s=t(971),c=t(970),d=t(998),f=function(e){var a=n.a.createElement(i.default,{id:"popover-positioned-right"},n.a.createElement(s.default,null,e.title),n.a.createElement(c.default,null,e.content));return n.a.createElement(d.default,{trigger:["hover","focus"],placement:"left",rootClose:!0,overlay:a},n.a.createElement(u.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}}]);