/*! Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one or more contributor license agreements. * Licensed under the Elastic License 2.0; you may not use this file except in compliance with the Elastic License 2.0. */ (window.enterpriseSearch_bundle_jsonpfunction=window.enterpriseSearch_bundle_jsonpfunction||[]).push([[4],{108:function(e,t,n){"use strict";n.d(t,"g",(function(){return s})),n.d(t,"f",(function(){return a})),n.d(t,"e",(function(){return i})),n.d(t,"k",(function(){return o})),n.d(t,"i",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"j",(function(){return c})),n.d(t,"d",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"c",(function(){return b})),n.d(t,"h",(function(){return x})),n.d(t,"l",(function(){return m}));var r=n(2);const s=r.i18n.translate("xpack.enterpriseSearch.actions.manageButtonLabel",{defaultMessage:"Manage"}),a=r.i18n.translate("xpack.enterpriseSearch.actions.editButtonLabel",{defaultMessage:"Edit"}),i=r.i18n.translate("xpack.enterpriseSearch.actions.deleteButtonLabel",{defaultMessage:"Delete"}),o=r.i18n.translate("xpack.enterpriseSearch.actions.updateButtonLabel",{defaultMessage:"Update"}),l=r.i18n.translate("xpack.enterpriseSearch.actions.saveButtonLabel",{defaultMessage:"Save"}),u=r.i18n.translate("xpack.enterpriseSearch.actions.cancelButtonLabel",{defaultMessage:"Cancel"}),c=r.i18n.translate("xpack.enterpriseSearch.actions.startButtonLabel",{defaultMessage:"Start"}),d=r.i18n.translate("xpack.enterpriseSearch.actions.continueButtonLabel",{defaultMessage:"Continue"}),p=r.i18n.translate("xpack.enterpriseSearch.actions.backButtonLabel",{defaultMessage:"Back"}),b=r.i18n.translate("xpack.enterpriseSearch.actions.closeButtonLabel",{defaultMessage:"Close"}),x=r.i18n.translate("xpack.enterpriseSearch.actions.resetDefaultButtonLabel",{defaultMessage:"Reset to default"}),m=r.i18n.translate("xpack.enterpriseSearch.actions.viewButtonLabel",{defaultMessage:"View"})},109:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"g",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"b",(function(){return c}));var r=n(2);const s=r.i18n.translate("xpack.enterpriseSearch.units.allDaysLabel",{defaultMessage:"All days"}),a=r.i18n.translate("xpack.enterpriseSearch.units.minutesLabel",{defaultMessage:"Minutes"}),i=r.i18n.translate("xpack.enterpriseSearch.units.hoursLabel",{defaultMessage:"Hours"}),o=r.i18n.translate("xpack.enterpriseSearch.units.daysLabel",{defaultMessage:"Days"}),l=r.i18n.translate("xpack.enterpriseSearch.units.weeksLabel",{defaultMessage:"Weeks"}),u=r.i18n.translate("xpack.enterpriseSearch.units.monthsLabel",{defaultMessage:"Months"}),c={SUNDAY:r.i18n.translate("xpack.enterpriseSearch.units.daysOfWeekLabel.sunday",{defaultMessage:"Sunday"}),MONDAY:r.i18n.translate("xpack.enterpriseSearch.units.daysOfWeekLabel.monday",{defaultMessage:"Monday"}),TUESDAY:r.i18n.translate("xpack.enterpriseSearch.units.daysOfWeekLabel.tuesday",{defaultMessage:"Tuesday"}),WEDNESDAY:r.i18n.translate("xpack.enterpriseSearch.units.daysOfWeekLabel.wednesday",{defaultMessage:"Wednesday"}),THURSDAY:r.i18n.translate("xpack.enterpriseSearch.units.daysOfWeekLabel.thursday",{defaultMessage:"Thursday"}),FRIDAY:r.i18n.translate("xpack.enterpriseSearch.units.daysOfWeekLabel.friday",{defaultMessage:"Friday"}),SATURDAY:r.i18n.translate("xpack.enterpriseSearch.units.daysOfWeekLabel.saturday",{defaultMessage:"Saturday"})}},117:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(41),s=n.n(r),a=n(10),i=n.n(a),o=n(16),l=n.n(o),u=n(32),c=n(12),d=n(2),p=n(142),b=n(330),x=n(37),m=n(97),g=n(11);const f=({emptyPropertyAllowed:e=!1,displayedItems:t,isActivelyEditing:n,isLoading:r=!1,item:s,canRemoveLastItem:a,lastItemWarning:i,uneditableItems:o})=>{const{doesEditingItemValueContainEmptyProperty:l,fieldErrors:d,rowErrors:p,isEditingUnsavedItem:b}=Object(u.useValues)(m.a),{editExistingItem:f,deleteItem:j,doneEditing:h,saveExistingItem:y,saveNewItem:O}=Object(u.useActions)(m.a);if(null!=o&&o.includes(s))return null;const E=Object.keys(d).length>0||p.length>0;return n(s)?Object(g.jsx)(c.EuiFlexGroup,{justifyContent:"flexEnd",gutterSize:"s"},Object(g.jsx)(c.EuiFlexItem,null,Object(g.jsx)(c.EuiButtonEmpty,{"data-test-subj":"saveButton",color:"primary",iconType:"checkInCircleFilled",onClick:b?O:y,disabled:r||E||l&&!e},x.z)),Object(g.jsx)(c.EuiFlexItem,null,Object(g.jsx)(c.EuiButtonEmpty,{"data-test-subj":"cancelButton",color:"danger",iconType:"cross",onClick:h,disabled:r},x.e))):Object(g.jsx)(c.EuiFlexGroup,{justifyContent:"flexEnd",gutterSize:"s"},Object(g.jsx)(c.EuiFlexItem,{grow:null},Object(g.jsx)(c.EuiButtonEmpty,{"data-test-subj":"editButton",size:"xs",onClick:()=>f(s)},x.m)),Object(g.jsx)(c.EuiFlexItem,{grow:null},a||1!==t.length?Object(g.jsx)(c.EuiButtonEmpty,{"data-test-subj":"deleteButton",size:"xs",onClick:()=>j(s)},x.k):Object(g.jsx)(c.EuiToolTip,{content:i},Object(g.jsx)(c.EuiButtonEmpty,{size:"xs",disabled:!0},x.k))))},j=({column:e,isLoading:t=!1})=>{const{fieldErrors:n,rowErrors:r,editingItemValue:s}=Object(u.useValues)(m.a),{setEditingItemValue:a}=Object(u.useActions)(m.a);if(!s)return null;const o=n[e.field],l=!!o||r.length>0;return Object(g.jsx)(c.EuiFormRow,{fullWidth:!0,helpText:o&&Object(g.jsx)(c.EuiText,{color:"danger",size:"s"},o),isInvalid:l},Object(g.jsx)(i.a.Fragment,null,e.editingRender(s,(t=>{a({...s,[e.field]:t})}),{isInvalid:l,isLoading:t})))};n(495);const h=e=>{const{instanceId:t,columns:n,defaultItem:r,onAdd:a,onDelete:i,onReorder:o,onUpdate:l,transformItem:c,validateItem:d,...p}=e;return Object(g.jsx)(u.BindLogic,{logic:m.a,props:{instanceId:t,columns:n,defaultItem:r,onAdd:a,onDelete:i,onReorder:o,onUpdate:l,transformItem:c,validateItem:d}},Object(g.jsx)(y,s()({},p,{columns:n})))},y=({columns:e,emptyPropertyAllowed:t,items:n,title:r,addButtonText:a,canRemoveLastItem:o,className:x,description:h,isLoading:y,lastItemWarning:O,noItemsMessage:E=(()=>null),uneditableItems:k,...I})=>{const{editingItemId:w,isEditing:S,isEditingUnsavedItem:v,rowErrors:_}=Object(u.useValues)(m.a),{editNewItem:M,reorderItems:F}=Object(u.useActions)(m.a),T=e=>S&&(e=>e.id===w)(e),L={id:null},G=v?k?[L,...n]:[...n,L]:n,N=(({columns:e,displayedItems:t,emptyPropertyAllowed:n=!1,isActivelyEditing:r,canRemoveLastItem:s,isLoading:a=!1,lastItemWarning:i,uneditableItems:o})=>[...e.map((e=>({name:e.name,render:t=>r(t)?Object(g.jsx)(j,{column:e,isLoading:a}):e.render(t)}))),{flexBasis:"200px",flexGrow:0,render:e=>Object(g.jsx)(f,{displayedItems:t,emptyPropertyAllowed:null!=n&&n,isActivelyEditing:r,isLoading:a,canRemoveLastItem:s,lastItemWarning:i,uneditableItems:o,item:e})}])({columns:e,displayedItems:G,emptyPropertyAllowed:t,isActivelyEditing:T,canRemoveLastItem:o,isLoading:y,lastItemWarning:O,uneditableItems:k});return Object(g.jsx)(i.a.Fragment,null,Object(g.jsx)(p.a,{description:h||"",title:r||"",actions:[Object(g.jsx)(c.EuiButton,{size:"s",iconType:"plusInCircle",disabled:S,onClick:M,color:"success","data-test-subj":"inlineEditableTableActionButton"},a||d.i18n.translate("xpack.enterpriseSearch.inlineEditableTable.newRowButtonLabel",{defaultMessage:"New row"}))]}),Object(g.jsx)(c.EuiSpacer,{size:"l"}),Object(g.jsx)(b.a,s()({className:l()(x,"editableTable"),items:G,unreorderableItems:k,columns:N,rowProps:e=>({className:l()({"is-being-edited":T(e)})}),rowErrors:e=>T(e)?_:void 0,noItemsMessage:E(M),onReorder:F,disableDragging:S},I)))}},120:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n(10);var r=n(32),s=n(12),a=n(2),i=n(73),o=n(1),l=n(50),u=n(39),c=n(11);const d=({productSupportUrl:e,backToLink:t="/",backToContent:n})=>{const{hasGoldLicense:d}=Object(r.useValues)(l.a),p=d?o.t:e;return Object(c.jsx)(i.a.EmptyPrompt,{iconType:"logoEnterpriseSearch",title:Object(c.jsx)("h1",null,a.i18n.translate("xpack.enterpriseSearch.notFound.title",{defaultMessage:"404 error"})),body:Object(c.jsx)("p",null,a.i18n.translate("xpack.enterpriseSearch.notFound.description",{defaultMessage:"The page you’re looking for was not found."})),actions:Object(c.jsx)(s.EuiFlexGroup,null,Object(c.jsx)(s.EuiFlexItem,null,Object(c.jsx)(u.b,{to:t,fill:!0},null!=n?n:a.i18n.translate("xpack.enterpriseSearch.notFound.action1",{defaultMessage:"Back to your dashboard"}))),Object(c.jsx)(s.EuiFlexItem,null,Object(c.jsx)(s.EuiButton,{href:p,target:"_blank"},a.i18n.translate("xpack.enterpriseSearch.notFound.action2",{defaultMessage:"Contact support"}))))})}},123:function(e,t,n){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},124:function(e,t,n){"use strict";var r="%[a-f0-9]{2}",s=new RegExp("("+r+")|([^%]+?)","gi"),a=new RegExp("("+r+")+","gi");function i(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],i(n),i(r))}function o(e){try{return decodeURIComponent(e)}catch(r){for(var t=e.match(s)||[],n=1;n{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},142:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(10),s=n.n(r),a=n(12),i=n(11);const o=({actions:e,description:t,links:n,title:r=""})=>Object(i.jsx)(a.EuiFlexGroup,{direction:"row",gutterSize:"m"},Object(i.jsx)(a.EuiFlexItem,null,Object(i.jsx)(a.EuiFlexGroup,{direction:"column",gutterSize:"none"},Object(i.jsx)(a.EuiFlexItem,{"data-test-subj":"pageIntroductionTitleContainer"},"string"==typeof r?Object(i.jsx)(a.EuiTitle,{size:"xs","data-test-subj":"inlineEditableTableTitle"},Object(i.jsx)("h3",null,r)):r),Object(i.jsx)(a.EuiSpacer,{size:"s"}),Object(i.jsx)(a.EuiFlexItem,null,Object(i.jsx)(a.EuiText,{"data-test-subj":"pageIntroductionDescriptionText",color:"subdued",size:"s"},t)),!!n&&Object(i.jsx)(s.a.Fragment,null,Object(i.jsx)(a.EuiSpacer,{size:"s"}),Object(i.jsx)(a.EuiFlexItem,null,Object(i.jsx)(a.EuiText,{size:"s"},Array.isArray(n)?n.map((e=>e)):n))))),Object(i.jsx)(a.EuiFlexItem,{grow:!1},Object(i.jsx)(a.EuiFlexGroup,{gutterSize:"s"},Array.isArray(e)?null==e?void 0:e.map(((e,t)=>Object(i.jsx)(a.EuiFlexItem,{grow:!1,key:t},e))):e)))},163:function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return b}));var r=n(10),s=n.n(r),a=n(32),i=n(12),o=n(36),l=n(2),u=n(13),c=n(4),d=n(11);const p=({productName:e,cloudDeploymentLink:t})=>Object(d.jsx)(i.EuiPageSection,null,Object(d.jsx)(i.EuiSteps,{headingElement:"h2",steps:[{title:l.i18n.translate("xpack.enterpriseSearch.setupGuide.cloud.step1.title",{defaultMessage:"Edit your deployment’s configuration"}),children:Object(d.jsx)(i.EuiText,null,Object(d.jsx)("p",null,Object(d.jsx)(u.FormattedMessage,{id:"xpack.enterpriseSearch.setupGuide.cloud.step1.instruction1",defaultMessage:"Visit the Elastic Cloud console to {editDeploymentLink}.",values:{editDeploymentLink:t?Object(d.jsx)(i.EuiLink,{href:t+"/edit",target:"_blank"},l.i18n.translate("xpack.enterpriseSearch.setupGuide.cloud.step1.instruction1LinkText",{defaultMessage:"edit your deployment"})):l.i18n.translate("xpack.enterpriseSearch.setupGuide.cloud.step1.instruction1LinkText",{defaultMessage:"edit your deployment"})}})))},{title:l.i18n.translate("xpack.enterpriseSearch.setupGuide.cloud.step2.title",{defaultMessage:"Enable Enterprise Search for your deployment"}),children:Object(d.jsx)(i.EuiText,null,Object(d.jsx)("p",null,Object(d.jsx)(u.FormattedMessage,{id:"xpack.enterpriseSearch.setupGuide.cloud.step2.instruction1",defaultMessage:"Once you're within your deployment's “Edit deployment” screen, scroll to the Enterprise Search configuration and select “Enable”."})))},{title:l.i18n.translate("xpack.enterpriseSearch.setupGuide.cloud.step3.title",{defaultMessage:"Configure your Enterprise Search instance"}),children:Object(d.jsx)(i.EuiText,null,Object(d.jsx)("p",null,Object(d.jsx)(u.FormattedMessage,{id:"xpack.enterpriseSearch.setupGuide.cloud.step3.instruction1",defaultMessage:"After enabling Enterprise Search for your instance you can customize the instance, including fault tolerance, RAM, and other {optionsLink}.",values:{optionsLink:Object(d.jsx)(i.EuiLink,{href:c.a.enterpriseSearchConfig,target:"_blank"},l.i18n.translate("xpack.enterpriseSearch.setupGuide.cloud.step3.instruction1LinkText",{defaultMessage:"configurable options"}))}})))},{title:l.i18n.translate("xpack.enterpriseSearch.setupGuide.cloud.step4.title",{defaultMessage:"Save your deployment configuration"}),children:Object(d.jsx)(i.EuiText,null,Object(d.jsx)("p",null,Object(d.jsx)(u.FormattedMessage,{id:"xpack.enterpriseSearch.setupGuide.cloud.step4.instruction1",defaultMessage:"Once you click “Save”, you'll see a confirmation dialog summarizing the changes being made to your deployment. Once you confirm, your deployment will process the configuration change, which should only take a few moments."})))},{title:l.i18n.translate("xpack.enterpriseSearch.setupGuide.cloud.step5.title",{defaultMessage:"{productName} is now available to use",values:{productName:e}}),children:Object(d.jsx)(i.EuiCallOut,null,Object(d.jsx)("p",null,Object(d.jsx)(u.FormattedMessage,{id:"xpack.enterpriseSearch.setupGuide.cloud.step5.instruction1",defaultMessage:"For {productName} indices that contain time-series statistical data, you may want to {configurePolicyLink}, so as to ensure optimal performance and cost-effective storage in the long run.",values:{productName:e,configurePolicyLink:Object(d.jsx)(i.EuiLink,{href:c.a.cloudIndexManagement,target:"_blank"},l.i18n.translate("xpack.enterpriseSearch.setupGuide.cloud.step5.instruction1LinkText",{defaultMessage:"configure an index lifecycle policy"}))}})))},{title:l.i18n.translate("xpack.enterpriseSearch.setupGuide.cloud.step6.title",{defaultMessage:"Troubleshooting issues"}),children:Object(d.jsx)(s.a.Fragment,null,Object(d.jsx)(i.EuiText,null,Object(d.jsx)("p",null,Object(d.jsx)(u.FormattedMessage,{id:"xpack.enterpriseSearch.setupGuide.cloud.step6.instruction1",defaultMessage:"For help with common setup issues, read our {link} guide.",values:{link:Object(d.jsx)(i.EuiLink,{href:c.a.enterpriseSearchTroubleshootSetup,target:"_blank",external:!0},l.i18n.translate("xpack.enterpriseSearch.setupGuide.cloud.step6.instruction1LinkText",{defaultMessage:"Troubleshoot Enterprise Search setup"}))}}))))}]})),b=l.i18n.translate("xpack.enterpriseSearch.setupGuide.title",{defaultMessage:"Setup Guide"}),x=({productName:e})=>Object(d.jsx)(i.EuiPageSection,null,Object(d.jsx)(i.EuiSteps,{headingElement:"h2",steps:[{title:l.i18n.translate("xpack.enterpriseSearch.setupGuide.step1.title",{defaultMessage:"Add your {productName} host URL to your Kibana configuration",values:{productName:e}}),children:Object(d.jsx)(i.EuiText,null,Object(d.jsx)("p",null,Object(d.jsx)(u.FormattedMessage,{id:"xpack.enterpriseSearch.setupGuide.step1.instruction1",defaultMessage:"In your {configFile} file, set {configSetting} to the URL of your {productName} instance. For example:",values:{productName:e,configFile:Object(d.jsx)(i.EuiCode,null,"config/kibana.yml"),configSetting:Object(d.jsx)(i.EuiCode,null,"enterpriseSearch.host")}})),Object(d.jsx)(i.EuiCodeBlock,{language:"yml"},"enterpriseSearch.host: 'http://localhost:3002'"))},{title:l.i18n.translate("xpack.enterpriseSearch.setupGuide.step2.title",{defaultMessage:"Reload your Kibana instance"}),children:Object(d.jsx)(i.EuiText,null,Object(d.jsx)("p",null,Object(d.jsx)(u.FormattedMessage,{id:"xpack.enterpriseSearch.setupGuide.step2.instruction1",defaultMessage:"Restart Kibana to pick up the configuration changes from the previous step."})))},{title:l.i18n.translate("xpack.enterpriseSearch.setupGuide.step3.title",{defaultMessage:"Troubleshooting issues"}),children:Object(d.jsx)(s.a.Fragment,null,Object(d.jsx)(i.EuiAccordion,{buttonContent:l.i18n.translate("xpack.enterpriseSearch.troubleshooting.differentEsClusters.title",{defaultMessage:"{productName} and Kibana are on different Elasticsearch clusters",values:{productName:e}}),id:"differentEsClusters",paddingSize:"s"},Object(d.jsx)(i.EuiText,null,Object(d.jsx)("p",null,Object(d.jsx)(u.FormattedMessage,{id:"xpack.enterpriseSearch.troubleshooting.differentEsClusters.description",defaultMessage:"This plugin does not currently support {productName} and Kibana running on different clusters.",values:{productName:e}})))),Object(d.jsx)(i.EuiSpacer,null),Object(d.jsx)(i.EuiText,null,Object(d.jsx)("p",null,Object(d.jsx)(u.FormattedMessage,{id:"xpack.enterpriseSearch.troubleshooting.setup.description",defaultMessage:"For help with other common setup issues, read our {link} guide.",values:{link:Object(d.jsx)(i.EuiLink,{href:c.a.enterpriseSearchTroubleshootSetup,target:"_blank",external:!0},l.i18n.translate("xpack.enterpriseSearch.troubleshooting.setup.documentationLinkLabel",{defaultMessage:"Troubleshoot Enterprise Search setup"}))}}))))}]}));n(172);const m=({children:e,productName:t,productEuiIcon:n})=>{const{cloud:r}=Object(a.useValues)(o.a),s=Boolean(r.isCloudEnabled),l=r.deploymentUrl||"";return Object(d.jsx)(i.EuiPage,{className:"setupGuide","data-test-subj":"setupGuide"},Object(d.jsx)(i.EuiPageSidebar,{className:"setupGuide__sidebar"},Object(d.jsx)(i.EuiText,{color:"subdued",size:"s"},Object(d.jsx)("strong",null,b)),Object(d.jsx)(i.EuiSpacer,{size:"s"}),Object(d.jsx)(i.EuiFlexGroup,{gutterSize:"s",alignItems:"center",responsive:!1},Object(d.jsx)(i.EuiFlexItem,{grow:!1},Object(d.jsx)(i.EuiIcon,{type:n,size:"l"})),Object(d.jsx)(i.EuiFlexItem,null,Object(d.jsx)(i.EuiTitle,{size:"m"},Object(d.jsx)("h1",null,t)))),e),Object(d.jsx)(i.EuiPageBody,{className:"setupGuide__body"},s?Object(d.jsx)(p,{productName:t,cloudDeploymentLink:l}):Object(d.jsx)(x,{productName:t})))}},172:function(e,t,n){switch(window.__kbnThemeTag__){case"v8dark":return n(173);case"v8light":return n(175)}},173:function(e,t,n){var r=n(34),s=n(174);"string"==typeof(s=s.__esModule?s.default:s)&&(s=[[e.i,s,""]]);r(s,{insert:"head",singleton:!1}),e.exports=s.locals||{}},174:function(e,t,n){(t=n(35)(!1)).push([e.i,".setupGuide{min-height:100vh;padding:0}.setupGuide__sidebar{background-color:#25262e;border:solid #343741;border-width:0 0 1px;flex-basis:300px;flex-shrink:0;margin-right:0;padding:24px}@media only screen and (min-width:768px) and (max-width:991px){.setupGuide__sidebar{border-width:0 1px 0 0}}@media only screen and (min-width:992px) and (max-width:1199px){.setupGuide__sidebar{border-width:0 1px 0 0}}@media only screen and (min-width:1200px){.setupGuide__sidebar{border-width:0 1px 0 0}}@media only screen and (min-width:768px) and (max-width:991px){.setupGuide__sidebar{flex-basis:400px}}@media only screen and (min-width:992px) and (max-width:1199px){.setupGuide__sidebar{flex-basis:400px}}@media only screen and (min-width:1200px){.setupGuide__sidebar{flex-basis:500px}}.setupGuide__body{align-self:start;padding:24px}@media only screen and (min-width:992px) and (max-width:1199px){.setupGuide__body{padding:40px 50px}}.setupGuide__thumbnail{display:block;height:auto;margin:24px auto;max-width:100%}",""]),e.exports=t},175:function(e,t,n){var r=n(34),s=n(176);"string"==typeof(s=s.__esModule?s.default:s)&&(s=[[e.i,s,""]]);r(s,{insert:"head",singleton:!1}),e.exports=s.locals||{}},176:function(e,t,n){(t=n(35)(!1)).push([e.i,".setupGuide{min-height:100vh;padding:0}.setupGuide__sidebar{background-color:#f5f7fa;border:solid #d3dae6;border-width:0 0 1px;flex-basis:300px;flex-shrink:0;margin-right:0;padding:24px}@media only screen and (min-width:768px) and (max-width:991px){.setupGuide__sidebar{border-width:0 1px 0 0}}@media only screen and (min-width:992px) and (max-width:1199px){.setupGuide__sidebar{border-width:0 1px 0 0}}@media only screen and (min-width:1200px){.setupGuide__sidebar{border-width:0 1px 0 0}}@media only screen and (min-width:768px) and (max-width:991px){.setupGuide__sidebar{flex-basis:400px}}@media only screen and (min-width:992px) and (max-width:1199px){.setupGuide__sidebar{flex-basis:400px}}@media only screen and (min-width:1200px){.setupGuide__sidebar{flex-basis:500px}}.setupGuide__body{align-self:start;padding:24px}@media only screen and (min-width:992px) and (max-width:1199px){.setupGuide__body{padding:40px 50px}}.setupGuide__thumbnail{display:block;height:auto;margin:24px auto;max-width:100%}",""]),e.exports=t},330:function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var r=n(10),s=n.n(r),a=n(16),i=n.n(a),o=(n(490),n(12)),l=n(41),u=n.n(l),c=n(11);const d=({children:e,alignItems:t,flexBasis:n,flexGrow:r})=>Object(c.jsx)(o.EuiFlexItem,{style:{flexBasis:n,flexGrow:r,alignItems:t}},e),p={flexBasis:"16px",flexGrow:0,alignItems:"center"},b=({columns:e,item:t,additionalProps:n,leftAction:r,errors:s=[],rowIdentifier:a})=>Object(c.jsx)("div",{className:"reorderableTableRow"},Object(c.jsx)(o.EuiFlexGroup,u()({"data-test-subj":"row",alignItems:"center"},n||{}),Object(c.jsx)(o.EuiFlexItem,null,Object(c.jsx)(o.EuiFlexGroup,{alignItems:"center"},r&&Object(c.jsx)(d,p,r),a&&Object(c.jsx)(d,u()({},p,{flexBasis:"24px"}),Object(c.jsx)(o.EuiToken,{size:"m",iconType:()=>Object(c.jsx)(o.EuiText,{size:"xs"},Object(c.jsx)("strong",null,a))})),e.map(((e,n)=>Object(c.jsx)(d,{key:`table_row_cell_${n}`,alignItems:e.alignItems,flexBasis:e.flexBasis,flexGrow:e.flexGrow},e.render(t))))))),s.length>0&&Object(c.jsx)(o.EuiFlexGroup,{direction:"column"},s.map(((e,t)=>Object(c.jsx)(o.EuiFlexItem,{key:t},Object(c.jsx)(o.EuiCallOut,{iconType:"warning",size:"s",color:"danger",title:e})))))),x=({items:e,renderItem:t})=>Object(c.jsx)(s.a.Fragment,null,e.map(t)),m=({columns:e,item:t,rowIndex:n,additionalProps:r,disableDragging:s=!1,errors:a,rowIdentifier:i})=>{const l=`draggable_row_${n}`;return Object(c.jsx)(o.EuiDraggable,u()({index:n,draggableId:l,isDragDisabled:s,disableInteractiveElementBlocking:s},r),Object(c.jsx)(b,{columns:e,item:t,additionalProps:r,leftAction:Object(c.jsx)(o.EuiFlexGroup,{justifyContent:"spaceBetween"},Object(c.jsx)(o.EuiFlexItem,null,s?Object(c.jsx)("div",{style:{width:"16px"}}):Object(c.jsx)(o.EuiIcon,{type:"grab"}))),rowIdentifier:i,errors:a}))},g=({items:e,onReorder:t,renderItem:n})=>Object(c.jsx)(o.EuiDragDropContext,{onDragEnd:({source:n,destination:r})=>{if(n&&r){const s=Object(o.euiDragDropReorder)(e,n.index,null==r?void 0:r.index);t(s,e)}}},Object(c.jsx)(o.EuiDroppable,{droppableId:"ReorderingArea",grow:!1},Object(c.jsx)(x,{items:e,renderItem:n}))),f=({columns:e,leftAction:t,spacingForRowIdentifier:n=!1})=>Object(c.jsx)("div",{className:"reorderableTableHeader"},Object(c.jsx)(o.EuiFlexGroup,null,Object(c.jsx)(o.EuiFlexItem,null,Object(c.jsx)(o.EuiFlexGroup,null,t&&Object(c.jsx)(d,p,t),n&&Object(c.jsx)(d,u()({},p,{flexBasis:"24px"})),e.map(((e,t)=>Object(c.jsx)(d,u()({key:`table_header_cell_${t}`},e),Object(c.jsx)(o.EuiText,{size:"s"},Object(c.jsx)("strong",null,e.name))))))))),j=({columns:e,items:t,noItemsMessage:n,unreorderableItems:r=[],bottomRows:a=[],className:l="",disableDragging:u=!1,disableReordering:d=!1,onReorder:p=(()=>{}),rowProps:j=(()=>({})),rowErrors:h=(()=>{}),showRowIndex:y=!1})=>Object(c.jsx)("div",{className:i()(l,"reorderableTable")},Object(c.jsx)(f,{columns:e,leftAction:d?void 0:Object(c.jsx)(s.a.Fragment,null),spacingForRowIdentifier:y}),0===t.length&&0===r.length&&0===a.length&&Object(c.jsx)(o.EuiFlexGroup,{alignItems:"center",justifyContent:"center"},Object(c.jsx)(o.EuiFlexItem,{"data-test-subj":"NoItems",className:"reorderableTableNoItems"},n)),t.length>0&&d&&Object(c.jsx)(x,{items:t,renderItem:(t,n)=>Object(c.jsx)(b,{key:`table_draggable_row_${n}`,columns:e,item:t,additionalProps:j(t),errors:h(t),rowIdentifier:y?`${n+1}`:void 0})}),t.length>0&&!d&&Object(c.jsx)(s.a.Fragment,null,Object(c.jsx)(g,{items:t,renderItem:(t,n)=>Object(c.jsx)(m,{key:`table_draggable_row_${n}`,columns:e,item:t,additionalProps:j(t),disableDragging:u,rowIndex:n,errors:h(t),rowIdentifier:y?`${n+1}`:void 0}),onReorder:p})),Object(c.jsx)("div",{className:"unorderableRows"},r.length>0&&Object(c.jsx)(x,{items:r,renderItem:(t,n)=>Object(c.jsx)(b,{key:`table_draggable_row_${n}`,columns:e,item:t,additionalProps:j(t),errors:h(t),leftAction:d?void 0:Object(c.jsx)(s.a.Fragment,null," "),rowIdentifier:y?"∞":void 0})}),a.map(((e,t)=>Object(c.jsx)(b,{key:t,rowIdentifier:y?"∞":void 0,columns:[{render:()=>e}],item:{},leftAction:d?void 0:Object(c.jsx)(s.a.Fragment,null," "),"data-test-subj":"BottomRow"})))))},37:function(e,t,n){"use strict";n.d(t,"r",(function(){return r.g})),n.d(t,"m",(function(){return r.f})),n.d(t,"k",(function(){return r.e})),n.d(t,"B",(function(){return r.k})),n.d(t,"z",(function(){return r.i})),n.d(t,"e",(function(){return r.b})),n.d(t,"A",(function(){return r.j})),n.d(t,"g",(function(){return r.d})),n.d(t,"c",(function(){return r.a})),n.d(t,"f",(function(){return r.c})),n.d(t,"y",(function(){return r.h})),n.d(t,"D",(function(){return r.l})),n.d(t,"C",(function(){return a})),n.d(t,"x",(function(){return i})),n.d(t,"n",(function(){return o})),n.d(t,"d",(function(){return l})),n.d(t,"v",(function(){return u})),n.d(t,"u",(function(){return c})),n.d(t,"l",(function(){return d})),n.d(t,"w",(function(){return p})),n.d(t,"q",(function(){return b})),n.d(t,"o",(function(){return x})),n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return g.a})),n.d(t,"s",(function(){return g.e})),n.d(t,"p",(function(){return g.d})),n.d(t,"i",(function(){return g.c})),n.d(t,"E",(function(){return g.g})),n.d(t,"t",(function(){return g.f})),n.d(t,"h",(function(){return g.b})),n.d(t,"j",(function(){return f}));var r=n(108),s=n(2);const a=s.i18n.translate("xpack.enterpriseSearch.usernameLabel",{defaultMessage:"Username"}),i=s.i18n.translate("xpack.enterpriseSearch.passwordLabel",{defaultMessage:"Password"}),o=(s.i18n.translate("xpack.enterpriseSearch.typeLabel",{defaultMessage:"Type"}),s.i18n.translate("xpack.enterpriseSearch.emailLabel",{defaultMessage:"Email"})),l=s.i18n.translate("xpack.enterpriseSearch.betaLabel",{defaultMessage:"Beta"}),u=s.i18n.translate("xpack.enterpriseSearch.nativeLabel",{defaultMessage:"Native"}),c=s.i18n.translate("xpack.enterpriseSearch.nameLabel",{defaultMessage:"Name"}),d=s.i18n.translate("xpack.enterpriseSearch.descriptionLabel",{defaultMessage:"Description"}),p=s.i18n.translate("xpack.enterpriseSearch.optionalLabel",{defaultMessage:"Optional"}),b=s.i18n.translate("xpack.enterpriseSearch.learnMore.link",{defaultMessage:"Learn more"}),x="esindex",m=s.i18n.translate("xpack.enterpriseSearch.actionsHeader",{defaultMessage:"Actions"});var g=n(109);const f={page:{current:1,size:10,total_pages:0,total_results:0}}},490:function(e,t,n){switch(window.__kbnThemeTag__){case"v8dark":return n(491);case"v8light":return n(493)}},491:function(e,t,n){var r=n(34),s=n(492);"string"==typeof(s=s.__esModule?s.default:s)&&(s=[[e.i,s,""]]);r(s,{insert:"head",singleton:!1}),e.exports=s.locals||{}},492:function(e,t,n){(t=n(35)(!1)).push([e.i,".reorderableTableHeader>.euiFlexGroup{margin:4px 0}.reorderableTableNoItems,.reorderableTableRow{background-color:#1d1e24;border-top:1px solid #343741}.reorderableTableRow>.euiFlexGroup>.euiFlexItem{margin:12px 0}.reorderableTable .euiDraggable .euiDraggable__item.euiDraggable__item--isDisabled{cursor:unset}.reorderableTable .unorderableRows .reorderableTableRow{background-color:#25262e}",""]),e.exports=t},493:function(e,t,n){var r=n(34),s=n(494);"string"==typeof(s=s.__esModule?s.default:s)&&(s=[[e.i,s,""]]);r(s,{insert:"head",singleton:!1}),e.exports=s.locals||{}},494:function(e,t,n){(t=n(35)(!1)).push([e.i,".reorderableTableHeader>.euiFlexGroup{margin:4px 0}.reorderableTableNoItems,.reorderableTableRow{background-color:#fff;border-top:1px solid #d3dae6}.reorderableTableRow>.euiFlexGroup>.euiFlexItem{margin:12px 0}.reorderableTable .euiDraggable .euiDraggable__item.euiDraggable__item--isDisabled{cursor:unset}.reorderableTable .unorderableRows .reorderableTableRow{background-color:#f5f7fa}",""]),e.exports=t},495:function(e,t,n){switch(window.__kbnThemeTag__){case"v8dark":return n(496);case"v8light":return n(498)}},496:function(e,t,n){var r=n(34),s=n(497);"string"==typeof(s=s.__esModule?s.default:s)&&(s=[[e.i,s,""]]);r(s,{insert:"head",singleton:!1}),e.exports=s.locals||{}},497:function(e,t,n){(t=n(35)(!1)).push([e.i,".inlineEditableTable__descriptionText{max-width:60rem}",""]),e.exports=t},498:function(e,t,n){var r=n(34),s=n(499);"string"==typeof(s=s.__esModule?s.default:s)&&(s=[[e.i,s,""]]);r(s,{insert:"head",singleton:!1}),e.exports=s.locals||{}},499:function(e,t,n){(t=n(35)(!1)).push([e.i,".inlineEditableTable__descriptionText{max-width:60rem}",""]),e.exports=t},55:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return a}));const r=e=>({pageIndex:e.page.current-1,pageSize:e.page.size,totalItemCount:e.page.total_results}),s=e=>({page:{index:t}})=>{e(t+1)},a=(e,t)=>{const n={...e,page:{...e.page}};return n.page.current=t,n}},64:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(e,t)=>{if(!e||!t)return!1;const[n,r]=e.split("."),[s,a]=t.split(".");return n!==s||r!==a}},66:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(10),s=n.n(r),a=n(73),i=n(12),o=n(2),l=n(11);const u=({enterpriseSearchVersion:e,kibanaVersion:t})=>Object(l.jsx)(i.EuiEmptyPrompt,{iconType:"warning",iconColor:"danger",title:Object(l.jsx)("h2",null,o.i18n.translate("xpack.enterpriseSearch.versionMismatch.title",{defaultMessage:"Incompatible version error"})),titleSize:"l",body:Object(l.jsx)(s.a.Fragment,null,o.i18n.translate("xpack.enterpriseSearch.versionMismatch.body",{defaultMessage:"Your Kibana and Enterprise Search versions do not match. To access Enterprise Search, use the same major and minor version for each service."}),Object(l.jsx)(i.EuiSpacer,null),Object(l.jsx)("div",null,o.i18n.translate("xpack.enterpriseSearch.versionMismatch.enterpriseSearchVersionText",{defaultMessage:"Enterprise Search version: {enterpriseSearchVersion}",values:{enterpriseSearchVersion:e}})),Object(l.jsx)("div",null,o.i18n.translate("xpack.enterpriseSearch.versionMismatch.kibanaVersionText",{defaultMessage:"Kibana version: {kibanaVersion}",values:{kibanaVersion:t}})))}),c=e=>Object(l.jsx)(a.a,{isEmptyState:!0},Object(l.jsx)(u,e))},78:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(85),s=n.n(r);const a=e=>s.a.parse(e,{arrayFormat:"bracket"})},85:function(e,t,n){"use strict";const r=n(123),s=n(124),a=n(125);function i(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function o(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function l(e,t){return t.decode?s(e):e}function u(e){return Array.isArray(e)?e.sort():"object"==typeof e?u(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function c(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function d(e){const t=(e=c(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function p(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function b(e,t){i((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const s="string"==typeof n&&n.split("").indexOf(e.arrayFormatSeparator)>-1?n.split(e.arrayFormatSeparator).map((t=>l(t,e))):null===n?n:l(n,e);r[t]=s};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const s of e.split("&")){let[e,i]=a(t.decode?s.replace(/\+/g," "):s,"=");i=void 0===i?null:["comma","separator"].includes(t.arrayFormat)?i:l(i,t),n(l(e,t),i,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=p(n[e],t);else r[e]=p(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=u(n):e[t]=n,e}),Object.create(null))}t.extract=d,t.parse=b,t.stringify=(e,t)=>{if(!e)return"";i((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const s=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[o(t,e),"[",s,"]"].join("")]:[...n,[o(t,e),"[",o(s,e),"]=",o(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[o(t,e),"[]"].join("")]:[...n,[o(t,e),"[]=",o(r,e)].join("")];case"comma":case"separator":return t=>(n,r)=>null==r||0===r.length?n:0===n.length?[[o(t,e),"=",o(r,e)].join("")]:[[n,o(r,e)].join(e.arrayFormatSeparator)];default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,o(t,e)]:[...n,[o(t,e),"=",o(r,e)].join("")]}}(t),s={};for(const t of Object.keys(e))n(t)||(s[t]=e[t]);const a=Object.keys(s);return!1!==t.sort&&a.sort(t.sort),a.map((n=>{const s=e[n];return void 0===s?"":null===s?o(n,t):Array.isArray(s)?s.reduce(r(n),[]).join("&"):o(n,t)+"="+o(s,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=a(e,"#");return Object.assign({url:n.split("?")[0]||"",query:b(d(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:l(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);const r=c(e.url).split("?")[0]||"",s=t.extract(e.url),a=t.parse(s,{sort:!1}),i=Object.assign(a,e.query);let l=t.stringify(i,n);l&&(l=`?${l}`);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u=`#${o(e.fragmentIdentifier,n)}`),`${r}${l}${u}`}},93:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(10),s=n(14),a=n(2),i=n(11);const o=a.i18n.translate("xpack.enterpriseSearch.shared.unsavedChangesMessage",{defaultMessage:"Your changes have not been saved. Are you sure you want to leave?"}),l=({hasUnsavedChanges:e,messageText:t=o})=>(Object(r.useEffect)((()=>{const t=t=>{e&&(t.preventDefault(),t.returnValue="")};return window.addEventListener("beforeunload",t),()=>window.removeEventListener("beforeunload",t)}),[e]),Object(i.jsx)(s.Prompt,{when:e,message:t}))},97:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(32);const s=e=>e.reduce(((e,t)=>({...e,[t.field]:""})),{}),a=Object(r.kea)({path:e=>["enterprise_search","inline_editable_table_logic",e],key:e=>e.instanceId,actions:()=>({deleteItem:e=>({item:e}),doneEditing:!0,editNewItem:!0,editExistingItem:e=>({item:e}),reorderItems:(e,t)=>({items:e,oldItems:t}),saveExistingItem:!0,saveNewItem:!0,setEditingItemValue:e=>({item:e}),setFieldErrors:e=>({fieldErrors:e}),setRowErrors:e=>({rowErrors:e})}),reducers:({props:{columns:e,defaultItem:t}})=>({editingItemValue:[null,{doneEditing:()=>null,editNewItem:()=>t?{...s(e),...t}:s(e),editExistingItem:(e,{item:t})=>t,setEditingItemValue:(e,{item:t})=>t}],fieldErrors:[{},{doneEditing:()=>({}),setEditingItemValue:()=>({}),setFieldErrors:(e,{fieldErrors:t})=>t}],rowErrors:[[],{doneEditing:()=>[],setEditingItemValue:()=>[],setRowErrors:(e,{rowErrors:t})=>t}]}),selectors:({selectors:e})=>({editingItemId:[()=>[e.editingItemValue],e=>{var t;return null!==(t=null==e?void 0:e.id)&&void 0!==t?t:null}],isEditing:[()=>[e.editingItemValue],e=>!!e],isEditingUnsavedItem:[()=>[e.isEditing,e.editingItemId],(e,t)=>e&&null===t],doesEditingItemValueContainEmptyProperty:[()=>[e.editingItemValue],e=>Object.values(e||{}).findIndex((e=>"string"==typeof e&&0===e.length))>-1]}),listeners:({values:e,actions:t,props:{onAdd:n,onDelete:r,onReorder:s,onUpdate:a,transformItem:i,validateItem:o}})=>({saveNewItem:()=>{if(!e.editingItemValue)return;const r=i?i(e.editingItemValue):e.editingItemValue,s=void 0===o?{}:o(r);Object.keys(s).length?t.setFieldErrors(s):n(r,t.doneEditing)},deleteItem:({item:e})=>{r(e,t.doneEditing)},reorderItems:({items:e,oldItems:n})=>{s&&s(e,n,t.doneEditing)},saveExistingItem:()=>{if(!e.editingItemValue)return;const n=e.editingItemValue,r=void 0===o?{}:o(n);Object.keys(r).length?t.setFieldErrors(r):a(n,t.doneEditing)}})})}}]);