(window.visualizations_bundle_jsonpfunction=window.visualizations_bundle_jsonpfunction||[]).push([[3],{159:function(e,i,t){switch(window.__kbnThemeTag__){case"v8dark":return t(160);case"v8light":return t(162)}},160:function(e,i,t){var s=t(72),a=t(161);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);s(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},161:function(e,i,t){(i=t(73)(!1)).push([e.i,".visNewVisDialogGroupSelection__body .euiModalBody__overflow{padding:0!important}.visNewVisDialogGroupSelection__visGroups{padding:8px 32px 0}.visNewVisDialogGroupSelection__footer{background:#25262e;padding:0 32px 24px}@media only screen and (max-width:574px){.visNewVisDialogGroupSelection__footer{background:#1d1e24}}@media only screen and (min-width:575px) and (max-width:767px){.visNewVisDialogGroupSelection__footer{background:#1d1e24}}@media only screen and (max-width:574px){.visNewVisDialogGroupSelection__footerDescriptionList{padding-top:24px}}@media only screen and (min-width:575px) and (max-width:767px){.visNewVisDialogGroupSelection__footerDescriptionList{padding-top:24px}}.visNewVisDialogGroupSelection__footerDescriptionListTitle{width:auto!important}",""]),e.exports=i},162:function(e,i,t){var s=t(72),a=t(163);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);s(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},163:function(e,i,t){(i=t(73)(!1)).push([e.i,".visNewVisDialogGroupSelection__body .euiModalBody__overflow{padding:0!important}.visNewVisDialogGroupSelection__visGroups{padding:8px 32px 0}.visNewVisDialogGroupSelection__footer{background:#f5f7fa;padding:0 32px 24px}@media only screen and (max-width:574px){.visNewVisDialogGroupSelection__footer{background:#fff}}@media only screen and (min-width:575px) and (max-width:767px){.visNewVisDialogGroupSelection__footer{background:#fff}}@media only screen and (max-width:574px){.visNewVisDialogGroupSelection__footerDescriptionList{padding-top:24px}}@media only screen and (min-width:575px) and (max-width:767px){.visNewVisDialogGroupSelection__footerDescriptionList{padding-top:24px}}.visNewVisDialogGroupSelection__footerDescriptionListTitle{width:auto!important}",""]),e.exports=i},164:function(e,i,t){switch(window.__kbnThemeTag__){case"v8dark":return t(165);case"v8light":return t(167)}},165:function(e,i,t){var s=t(72),a=t(166);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);s(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},166:function(e,i,t){(i=t(73)(!1)).push([e.i,".visNewVisDialog{background:#1d1e24;max-height:720px;max-width:816px}@media only screen and (max-width:574px){.visNewVisDialog{max-height:100%}}@media only screen and (min-width:575px) and (max-width:767px){.visNewVisDialog{max-height:100%}}.visNewVisDialog--aggbased{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='313' height='461'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath fill='%2318191E' d='M294.009 184.137c162.377 0 294.009 131.633 294.009 294.009 0 162.377-131.632 294.01-294.009 294.01S0 640.523 0 478.146C0 315.77 131.632 184.137 294.009 184.137Zm0 200.415c-51.691 0-93.594 41.904-93.594 93.594 0 51.691 41.903 93.595 93.594 93.595 51.691 0 93.595-41.904 93.595-93.595 0-51.69-41.904-93.594-93.595-93.594Z'/%3E%3Cpath fill='%2315161B' d='M202.958 365.731v15.26h-15.26v-15.26h15.26Zm0-38.658v15.26h-15.26v-15.26h15.26Zm40.693-2.035v15.26h-15.26v-15.26h15.26Zm0-38.659v15.26h-15.26v-15.26h15.26Zm-40.693-1.017v15.26h-15.26v-15.26h15.26Zm81.387-1.017v15.26h-15.26v-15.26h15.26Zm0-38.659v15.26h-15.26v-15.26h15.26Zm-40.694-1.017v15.26h-15.26v-15.26h15.26Zm-40.693-1.018v15.26h-15.26v-15.26h15.26Zm81.387-39.676v15.26h-15.26v-15.26h15.26Zm-81.387 0v15.26h-15.26v-15.26h15.26Zm40.693-1.017v15.26h-15.26v-15.26h15.26Zm0-39.676v15.26h-15.26v-15.26h15.26Zm-40.693 0v15.26h-15.26v-15.26h15.26Zm81.387-1.017v15.26h-15.26v-15.26h15.26Zm0-39.676v15.26h-15.26v-15.26h15.26Zm-40.694 0v15.26h-15.26v-15.26h15.26Zm-40.693 0v15.26h-15.26v-15.26h15.26Zm81.387-40.694v15.26h-15.26v-15.26h15.26Zm-40.694 0v15.26h-15.26v-15.26h15.26Zm-40.693 0v15.26h-15.26v-15.26h15.26Zm81.387-40.693v15.26h-15.26v-15.26h15.26Zm-40.694 0v15.26h-15.26v-15.26h15.26ZM284.345.509v15.26h-15.26V.509h15.26Z'/%3E%3C/g%3E%3C/svg%3E\");background-position:calc(100% + 1px) calc(100% + 1px);background-repeat:no-repeat;background-size:30%;max-height:720px;max-width:816px}@media only screen and (max-width:574px){.visNewVisDialog--aggbased{max-height:100%}}@media only screen and (min-width:575px) and (max-width:767px){.visNewVisDialog--aggbased{max-height:100%}}.visNewVisSearchDialog{min-height:720px;min-width:816px}.visNewVisDialog__toolsCard{background-color:initial}.visNewVisDialog__groupsCardWrapper{position:relative}.visNewVisDialog__groupsCardWrapper .visNewVisDialog__groupsCardLink{left:50%;margin-top:-12px;position:absolute;transform:translateX(-50%)}.visNewVisDialog__groupsCardWrapper .visNewVisDialog__groupsCardBetaBadge{background:#1d1e24;cursor:pointer}",""]),e.exports=i},167:function(e,i,t){var s=t(72),a=t(168);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);s(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},168:function(e,i,t){(i=t(73)(!1)).push([e.i,".visNewVisDialog{background:#fff;max-height:720px;max-width:816px}@media only screen and (max-width:574px){.visNewVisDialog{max-height:100%}}@media only screen and (min-width:575px) and (max-width:767px){.visNewVisDialog{max-height:100%}}.visNewVisDialog--aggbased{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='313' height='461'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath fill='%23F5F7FA' d='M294.009 184.137c162.377 0 294.009 131.633 294.009 294.009 0 162.377-131.632 294.01-294.009 294.01S0 640.523 0 478.146C0 315.77 131.632 184.137 294.009 184.137Zm0 200.415c-51.691 0-93.594 41.904-93.594 93.594 0 51.691 41.903 93.595 93.594 93.595 51.691 0 93.595-41.904 93.595-93.595 0-51.69-41.904-93.594-93.595-93.594Z'/%3E%3Cpath fill='%23E6EBF2' d='M202.958 365.731v15.26h-15.26v-15.26h15.26Zm0-38.658v15.26h-15.26v-15.26h15.26Zm40.693-2.035v15.26h-15.26v-15.26h15.26Zm0-38.659v15.26h-15.26v-15.26h15.26Zm-40.693-1.017v15.26h-15.26v-15.26h15.26Zm81.387-1.017v15.26h-15.26v-15.26h15.26Zm0-38.659v15.26h-15.26v-15.26h15.26Zm-40.694-1.017v15.26h-15.26v-15.26h15.26Zm-40.693-1.018v15.26h-15.26v-15.26h15.26Zm81.387-39.676v15.26h-15.26v-15.26h15.26Zm-81.387 0v15.26h-15.26v-15.26h15.26Zm40.693-1.017v15.26h-15.26v-15.26h15.26Zm0-39.676v15.26h-15.26v-15.26h15.26Zm-40.693 0v15.26h-15.26v-15.26h15.26Zm81.387-1.017v15.26h-15.26v-15.26h15.26Zm0-39.676v15.26h-15.26v-15.26h15.26Zm-40.694 0v15.26h-15.26v-15.26h15.26Zm-40.693 0v15.26h-15.26v-15.26h15.26Zm81.387-40.694v15.26h-15.26v-15.26h15.26Zm-40.694 0v15.26h-15.26v-15.26h15.26Zm-40.693 0v15.26h-15.26v-15.26h15.26Zm81.387-40.693v15.26h-15.26v-15.26h15.26Zm-40.694 0v15.26h-15.26v-15.26h15.26ZM284.345.509v15.26h-15.26V.509h15.26Z'/%3E%3C/g%3E%3C/svg%3E\");background-position:calc(100% + 1px) calc(100% + 1px);background-repeat:no-repeat;background-size:30%;max-height:720px;max-width:816px}@media only screen and (max-width:574px){.visNewVisDialog--aggbased{max-height:100%}}@media only screen and (min-width:575px) and (max-width:767px){.visNewVisDialog--aggbased{max-height:100%}}.visNewVisSearchDialog{min-height:720px;min-width:816px}.visNewVisDialog__toolsCard{background-color:initial}.visNewVisDialog__groupsCardWrapper{position:relative}.visNewVisDialog__groupsCardWrapper .visNewVisDialog__groupsCardLink{left:50%;margin-top:-12px;position:absolute;transform:translateX(-50%)}.visNewVisDialog__groupsCardWrapper .visNewVisDialog__groupsCardBetaBadge{background:#fff;cursor:pointer}",""]),e.exports=i},184:function(e,i,t){"use strict";t.r(i),t.d(i,"default",(function(){return new_vis_modal_NewVisModal}));var s=t(1),a=t.n(s),o=t(14),n=t.n(o),r=t(9),l=t(2),c=t(46),d=t(37),p=t(65),u=t(4);function h(e){return Object(u.jsx)(n.a.Fragment,null,Object(u.jsx)(r.EuiLink,{"data-test-subj":"goBackLink",onClick:e.goBack},Object(u.jsx)(r.EuiFlexGroup,{alignItems:"center",gutterSize:"s",responsive:!1},Object(u.jsx)(r.EuiFlexItem,{grow:!1},Object(u.jsx)(r.EuiIcon,{type:"arrowLeft"})),Object(u.jsx)(r.EuiFlexItem,null,l.i18n.translate("visualizations.newVisWizard.goBackLink",{defaultMessage:"Select a different visualization"})))),Object(u.jsx)(r.EuiSpacer,null))}const g=e=>{const i=e;return!i.attributes.isTextBasedQuery&&!i.attributes.usesAdHocDataView};class search_selection_SearchSelection extends n.a.Component{constructor(...e){super(...e),a()(this,"fixedPageSize",8)}render(){return Object(u.jsx)(n.a.Fragment,null,Object(u.jsx)(r.EuiModalHeader,null,Object(u.jsx)(r.EuiModalHeaderTitle,null,Object(u.jsx)(d.FormattedMessage,{id:"visualizations.newVisWizard.newVisTypeTitle",defaultMessage:"New {visTypeName}",values:{visTypeName:this.props.visType.title}})," ","/"," ",Object(u.jsx)(d.FormattedMessage,{id:"visualizations.newVisWizard.chooseSourceTitle",defaultMessage:"Choose a source"}))),Object(u.jsx)(r.EuiModalBody,null,Object(u.jsx)(h,{goBack:this.props.goBack}),Object(u.jsx)(p.SavedObjectFinder,{key:"searchSavedObjectFinder",onChoose:this.props.onSearchSelected,showFilter:!0,noItemsMessage:l.i18n.translate("visualizations.newVisWizard.searchSelection.notFoundLabel",{defaultMessage:"No matching indices or saved searches found."}),savedObjectMetaData:[{type:"search",getIconForSavedObject:()=>"search",name:l.i18n.translate("visualizations.newVisWizard.searchSelection.savedObjectType.search",{defaultMessage:"Saved search"}),includeFields:["isTextBasedQuery","usesAdHocDataView"],showSavedObject:g},{type:"index-pattern",getIconForSavedObject:()=>"indexPatternApp",name:l.i18n.translate("visualizations.newVisWizard.searchSelection.savedObjectType.dataView",{defaultMessage:"Data view"})}],fixedPageSize:this.fixedPageSize,services:{contentClient:this.props.contentClient,uiSettings:this.props.uiSettings}})))}}var v=t(5),m=t(22);function x(e){const i=e.docLinks.links.dashboard.guide,t=Object(o.useMemo)((()=>Object(v.orderBy)([...e.visTypesRegistry.getAliases(),...e.visTypesRegistry.getByGroup(m.a.PROMOTED)].filter((e=>!e.disableCreate)),["promotion","title"],["asc","asc"])),[e.visTypesRegistry]);return Object(u.jsx)(n.a.Fragment,null,Object(u.jsx)(r.EuiModalHeader,null,Object(u.jsx)(r.EuiModalHeaderTitle,{"data-test-subj":"groupModalHeader"},Object(u.jsx)(d.FormattedMessage,{id:"visualizations.newVisWizard.title",defaultMessage:"New visualization"}))),Object(u.jsx)(r.EuiModalBody,{className:"visNewVisDialogGroupSelection__body"},Object(u.jsx)("div",{className:"visNewVisDialogGroupSelection__visGroups"},Object(u.jsx)(r.EuiSpacer,{size:"s"}),Object(u.jsx)(r.EuiFlexGrid,{columns:2,"data-test-subj":"visNewDialogGroups"},t.map((i=>Object(u.jsx)(j,{visType:i,key:i.name,onVisTypeSelected:e.onVisTypeSelected})))),Object(u.jsx)(r.EuiSpacer,{size:"l"})),Object(u.jsx)("div",{className:"visNewVisDialogGroupSelection__footer"},Object(u.jsx)(r.EuiSpacer,{size:"l"}),Object(u.jsx)(r.EuiFlexGrid,{columns:2},e.visTypesRegistry.getByGroup(m.a.AGGBASED).filter((e=>!e.disableCreate)).length>0&&Object(u.jsx)(r.EuiFlexItem,null,Object(u.jsx)(r.EuiCard,{titleSize:"xs",layout:"horizontal",display:"transparent",onClick:()=>e.toggleGroups(!1),title:Object(u.jsx)("span",{"data-test-subj":"visGroupAggBasedTitle"},l.i18n.translate("visualizations.newVisWizard.aggBasedGroupTitle",{defaultMessage:"Aggregation based"})),"data-test-subj":"visGroup-aggbased",description:l.i18n.translate("visualizations.newVisWizard.aggBasedGroupDescription",{defaultMessage:"Use our classic visualize library to create charts based on aggregations."}),icon:Object(u.jsx)(r.EuiIcon,{type:"heatmap",size:"xl",color:"success"})},Object(u.jsx)(r.EuiLink,{"data-test-subj":"visGroupAggBasedExploreLink",onClick:()=>e.toggleGroups(!1)},Object(u.jsx)(r.EuiText,{size:"s"},l.i18n.translate("visualizations.newVisWizard.exploreOptionLinkText",{defaultMessage:"Explore options"})," ",Object(u.jsx)(r.EuiIcon,{type:"sortRight"}))))),e.visTypesRegistry.getByGroup(m.a.TOOLS).length>0&&Object(u.jsx)(r.EuiFlexItem,{className:"visNewVisDialog__toolsCard"},Object(u.jsx)(r.EuiSpacer,{size:"m"}),Object(u.jsx)(r.EuiTitle,{size:"xs"},Object(u.jsx)("span",{"data-test-subj":"visGroup-tools"},l.i18n.translate("visualizations.newVisWizard.toolsGroupTitle",{defaultMessage:"Tools"}))),Object(u.jsx)(r.EuiSpacer,{size:"s"}),Object(u.jsx)("div",{className:"visNewVisDialog__toolsCardGroupContainer"},e.visTypesRegistry.getByGroup(m.a.TOOLS).map((i=>Object(u.jsx)(b,{visType:i,key:i.name,onVisTypeSelected:e.onVisTypeSelected,showExperimental:e.showExperimental})))))),Object(u.jsx)(r.EuiSpacer,{size:"m"}),Object(u.jsx)(r.EuiDescriptionList,{className:"visNewVisDialogGroupSelection__footerDescriptionList",type:"responsiveColumn"},Object(u.jsx)(r.EuiDescriptionListTitle,{className:"visNewVisDialogGroupSelection__footerDescriptionListTitle"},Object(u.jsx)(d.FormattedMessage,{id:"visualizations.newVisWizard.learnMoreText",defaultMessage:"Want to learn more?"})),Object(u.jsx)(r.EuiDescriptionListDescription,null,Object(u.jsx)(r.EuiLink,{href:i,target:"_blank",external:!0},Object(u.jsx)(d.FormattedMessage,{id:"visualizations.newVisWizard.readDocumentationLink",defaultMessage:"Read documentation"})))))))}t(159);const j=({visType:e,onVisTypeSelected:i})=>{const t=Object(o.useCallback)((()=>{i(e)}),[i,e]);return Object(u.jsx)(r.EuiFlexItem,{className:"visNewVisDialog__groupsCardWrapper"},Object(u.jsx)(r.EuiCard,{titleSize:"xs",hasBorder:!0,title:Object(u.jsx)("span",{"data-test-subj":"visTypeTitle"},"titleInWizard"in e&&e.titleInWizard?e.titleInWizard:e.title),onClick:t,"data-test-subj":`visType-${e.name}`,"data-vis-stage":"aliasPath"in e?"alias":e.stage,"aria-label":`visType-${e.name}`,description:Object(u.jsx)(n.a.Fragment,null,Object(u.jsx)("span",null,e.description||""),Object(u.jsx)("em",null," ",e.note||"")),layout:"horizontal",icon:Object(u.jsx)(r.EuiIcon,{type:e.icon||"empty",size:"xl",color:"success"})}))},b=({visType:e,onVisTypeSelected:i,showExperimental:t})=>{const s=Object(o.useCallback)((()=>{i(e)}),[i,e]);return e.disableCreate||!t&&"experimental"===e.stage?null:Object(u.jsx)(r.EuiFlexGroup,{alignItems:"center",gutterSize:"m",responsive:!1},Object(u.jsx)(r.EuiFlexItem,{grow:!1},Object(u.jsx)(r.EuiIcon,{type:e.icon||"empty",size:"l"})),Object(u.jsx)(r.EuiFlexItem,null,Object(u.jsx)(r.EuiFlexGroup,{gutterSize:"s",alignItems:"center",responsive:!1},Object(u.jsx)(r.EuiFlexItem,{grow:!1},Object(u.jsx)(r.EuiLink,{"data-test-subj":`visType-${e.name}`,"data-vis-stage":e.stage,onClick:s},"titleInWizard"in e&&e.titleInWizard?e.titleInWizard:e.title)),"experimental"!==e.stage||e.isDeprecated?e.isDeprecated&&Object(u.jsx)(r.EuiFlexItem,{grow:!1},Object(u.jsx)(r.EuiBadge,{color:"warning"},Object(u.jsx)(d.FormattedMessage,{id:"visualizations.deprecatedTag",defaultMessage:"Deprecated"}))):Object(u.jsx)(r.EuiFlexItem,{grow:!1},Object(u.jsx)(r.EuiBetaBadge,{iconType:"beaker",tooltipContent:l.i18n.translate("visualizations.newVisWizard.experimentalTooltip",{defaultMessage:"This functionality is in technical preview and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but features in technical preview are not subject to the support SLA of official GA features."}),label:l.i18n.translate("visualizations.newVisWizard.experimentalTitle",{defaultMessage:"Technical preview"})}))),Object(u.jsx)(r.EuiText,{color:"subdued",size:"s"},e.description)))},f=Symbol();class agg_based_selection_AggBasedSelection extends n.a.Component{constructor(...e){super(...e),a()(this,"state",{query:""}),a()(this,"getFilteredVisTypes",function(e){let i=f;return function(...t){return i!==f&&i.this===this&&i.args.length===t.length&&i.args.every(((e,i)=>e===t[i]))||(i={args:t,this:this,returnValue:e.apply(this,t)}),i.returnValue}}(this.filteredVisTypes)),a()(this,"renderVisType",(e=>{const i=""!==this.state.query&&!e.highlighted;return Object(u.jsx)(r.EuiFlexItem,{key:e.type.name},Object(u.jsx)(r.EuiCard,{titleSize:"xs",title:Object(u.jsx)("span",{"data-test-subj":"visTypeTitle"},e.type.title),onClick:()=>this.props.onVisTypeSelected(e.type),"data-test-subj":`visType-${e.type.name}`,"data-vis-stage":e.type.stage,"aria-label":`visType-${e.type.name}`,description:e.type.description||"",layout:"horizontal",isDisabled:i,icon:Object(u.jsx)(r.EuiIcon,{type:e.type.icon||"empty",size:"l",color:"success"}),className:"aggBasedDialog__card",hasBorder:!0}))})),a()(this,"onQueryChange",(e=>{this.setState({query:e.target.value})}))}render(){const{query:e}=this.state,i=this.getFilteredVisTypes(this.props.visTypesRegistry,e);return Object(u.jsx)(n.a.Fragment,null,Object(u.jsx)(r.EuiModalHeader,null,Object(u.jsx)(r.EuiModalHeaderTitle,null,Object(u.jsx)(d.FormattedMessage,{id:"visualizations.newVisWizard.title",defaultMessage:"New visualization"}))),Object(u.jsx)(r.EuiModalBody,null,Object(u.jsx)(h,{goBack:()=>this.props.toggleGroups(!0)}),Object(u.jsx)(r.EuiFieldSearch,{placeholder:"Filter",value:e,onChange:this.onQueryChange,fullWidth:!0,"data-test-subj":"filterVisType","aria-label":l.i18n.translate("visualizations.newVisWizard.filterVisTypeAriaLabel",{defaultMessage:"Filter for a visualization type"})}),Object(u.jsx)(r.EuiSpacer,null),Object(u.jsx)(r.EuiScreenReaderOnly,null,Object(u.jsx)("span",{"aria-live":"polite"},e&&Object(u.jsx)(d.FormattedMessage,{id:"visualizations.newVisWizard.resultsFound",defaultMessage:"{resultCount, plural, one {type} other {types}} found",values:{resultCount:i.filter((e=>e.highlighted)).length}}))),Object(u.jsx)(r.EuiFlexGrid,{columns:3,"data-test-subj":"visNewDialogTypes"},i.map(this.renderVisType))))}filteredVisTypes(e,i){const t=e.getByGroup(m.a.AGGBASED).filter((e=>!e.disableCreate));let s;if(i){const e=i.toLowerCase();s=t.map((i=>{const t=i.name.toLowerCase().includes(e)||i.title.toLowerCase().includes(e)||"string"==typeof i.description&&i.description.toLowerCase().includes(e);return{type:i,highlighted:t}}))}else s=t.map((e=>({type:e,highlighted:!1})));return Object(v.orderBy)(s,["highlighted","type.title"],["desc","asc"])}}t(164);const w="/create?",y=`/app/visualize#${w}`;class new_vis_modal_NewVisModal extends n.a.Component{constructor(e){super(e),a()(this,"trackUiMetric",void 0),a()(this,"onCloseModal",(()=>{this.setState({showSearchVisModal:!1}),this.props.onClose()})),a()(this,"onVisTypeSelected",(e=>{!("aliasPath"in e)&&e.requiresSearch&&e.options.showIndexSelection?this.setState({showSearchVisModal:!0,visType:e}):this.redirectToVis(e)})),a()(this,"onSearchSelected",((e,i)=>{this.redirectToVis(this.state.visType,i,e)})),this.state={showSearchVisModal:Boolean(this.props.selectedVisType),showGroups:!this.props.showAggsSelection,visType:this.props.selectedVisType}}render(){if(!this.props.isOpen)return null;const e=l.i18n.translate("visualizations.newVisWizard.helpTextAriaLabel",{defaultMessage:"Start creating your visualization by selecting a type for that visualization. Hit escape to close this modal. Hit Tab key to go further."}),i=this.state.showGroups?x:agg_based_selection_AggBasedSelection;return this.state.showSearchVisModal&&this.state.visType?Object(u.jsx)(r.EuiModal,{onClose:this.onCloseModal,className:"visNewVisSearchDialog"},Object(u.jsx)(search_selection_SearchSelection,{contentClient:this.props.contentClient,uiSettings:this.props.uiSettings,onSearchSelected:this.onSearchSelected,visType:this.state.visType,goBack:()=>this.setState({showSearchVisModal:!1})})):Object(u.jsx)(r.EuiModal,{onClose:this.onCloseModal,className:this.state.showGroups?"visNewVisDialog":"visNewVisDialog--aggbased","aria-label":e},Object(u.jsx)(i,{showExperimental:!0,onVisTypeSelected:this.onVisTypeSelected,visTypesRegistry:this.props.visTypesRegistry,docLinks:this.props.docLinks,toggleGroups:e=>this.setState({showGroups:e})}))}redirectToVis(e,i,t){let s;if(this.trackUiMetric&&this.trackUiMetric(c.METRIC_TYPE.CLICK,`${e.name}:create`),"aliasPath"in e)return s=e.aliasPath,this.props.onClose(),void this.navigate(e.aliasApp,e.aliasPath);s=[`type=${encodeURIComponent(e.name)}`],i&&s.push(`${"search"===i?"savedSearchId":"indexPattern"}=${t}`),s=s.concat(this.props.editorParams),this.props.onClose(),this.props.outsideVisualizeApp?this.navigate("visualize",`#${w}${s.join("&")}`):location.assign(this.props.addBasePath(`${y}${s.join("&")}`))}navigate(e,i){this.props.stateTransfer&&this.props.originatingApp?this.props.stateTransfer.navigateToEditor(e,{path:i,state:{originatingApp:this.props.originatingApp}}):this.props.application.navigateToApp(e,{path:i})}}a()(new_vis_modal_NewVisModal,"defaultProps",{editorParams:[]})},72:function(e,i,t){"use strict";var s,a=function(){var e={};return function(i){if(void 0===e[i]){var t=document.querySelector(i);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[i]=t}return e[i]}}(),o=[];function n(e){for(var i=-1,t=0;t