(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[66885],{88203:function(e,t,a){"use strict";var r=a(67294),c=a(93967),n=a.n(c),o=a(30653),i=a(45697),l=a.n(i),s=a(11876),_=a(93926),d=a(57416),u=a(30736),m=a(67093),h=a(78210),p=a(97403),v=a(61916),b=a(17198),f=a(12853),g=a(6231),k=a.n(g);const{getUrl:y,generateKey:x}=_,E=e=>{let{...t}=e;const a=t?.locale||"",c=void 0!==t.title_text||"",i=(0,r.useRef)([]),l=!0===c&&(t.title_text.title_l10n||t.title_text.paragraph_l10n)&&r.createElement(r.Fragment,null,r.createElement(f.Z,{titleText:t.title_text,locale:a}),r.createElement(p.Z,{size:"layout-05"}));return r.createElement(u.Z,{containerAriaLabelledBy:c&&t?.title_text?.title_l10n,containerClasses:k().accordionFaq,containerSectionStructuredDataFaq:!0},r.createElement(m.Z,{qa:v.Z.getQuestionsAndAnswers(t?.questions)}),r.createElement("div",{className:"container"},r.createElement("div",{className:"row"},r.createElement("div",{className:n()("10-column"===t?.styles?.width?"col-md-10 offset-md-1":"col")},l,r.createElement(s.UQ,{role:"none",onChange:e=>{return t=e,void i?.current[t]?.scrollIntoView({behavior:"smooth"});var t},allowZeroExpanded:!0,preExpanded:[0]},t?.questions?.length>0&&t.questions.map(((e,t)=>r.createElement("div",{ref:e=>i.current[t]=e},r.createElement(s.Qd,{uuid:t,key:x("questions",t)},r.createElement(s.Ol,null,r.createElement(s.on,null,r.createElement(b.default,{tag:"H2",className:"h5 pb-0 pr-4",children:(0,o.ZP)(e.question_l10n)}),r.createElement("div",{className:"accordion__arrow"},r.createElement(h.Z,{name:"chevron",width:14,height:9})))),r.createElement(s.Mt,{className:"accordion__body"},(0,o.ZP)(e.answer_l10n),e?.cta&&e?.cta?.length>0&&r.createElement("div",{className:"cta-group-tertiary"},e?.cta?.map(((e,t)=>r.createElement(d.Z,{className:"mt-4",key:x("button",t),href:y(e.url,a),type:"tertiary"},e.title_l10n))))))))))))),t?.secondary_cta?.cta_title_l10n&&t?.secondary_cta?.url&&r.createElement("div",{className:"text-center mt-8"},r.createElement(d.Z,{type:"secondary",href:t?.secondary_cta?.url},t?.secondary_cta?.cta_title_l10n)))};E.propTypes={title_text:l().object,questions:l().array,locale:l().string,styles:l().object},t.Z=E},94247:function(e,t,a){"use strict";a.d(t,{Z:function(){return f}});var r=a(67294),c=a(45697),n=a.n(c),o=a(62191),i=a.n(o),l=a(93967),s=a.n(l),_=a(93926),d=a(57416);const{getUrl:u}=_,m=()=>{const e=(0,r.useRef)(null);return(0,r.useEffect)((()=>{const t=e.current;if(!t)return;const a=t.getContext("2d");if(!a)return;const r=[],c=window.devicePixelRatio||1;t.width=150*c,t.height=150*c,t.style.width="150px",t.style.height="150px",a.scale(c,c);class n{constructor(){this.x=75,this.y=75,this.size=5,this.speedX=.125*(Math.random()-.5),this.speedY=.125*(Math.random()-.5),this.distanceTraveled=0}update(){if(this.x+=this.speedX,this.y+=this.speedY,this.distanceTraveled+=Math.sqrt(Math.pow(this.speedX,2)+Math.pow(this.speedY,2)),this.distanceTraveled>=60)this.size=0;else{const e=5/60;this.size=5-this.distanceTraveled*e}}draw(){a&&(a.fillStyle="rgb(72, 239, 207)",a.beginPath(),a.arc(this.x,this.y,this.size,0,2*Math.PI),a.fill())}}let o;const i=()=>{t&&(a.clearRect(0,0,t.width,t.height),r.forEach(((e,t)=>{e.size<=.1&&(r.splice(t,1),r.push(new n)),e.update(),e.draw()})),o=requestAnimationFrame(i))};return(()=>{for(let e=0;e<750;e++)r.push(new n)})(),i(),()=>{cancelAnimationFrame(o)}}),[]),r.createElement("canvas",{ref:e,width:150,height:150,className:i().particles})},h=()=>r.createElement("svg",{role:"graphics-symbol",className:i().icon,width:"24",height:"25","aria-hidden":"true"},r.createElement("path",{d:"M3 3.573a1.5 1.5 0 0 1 1.5-1.5h3v1.5h-3v18h6v1.5h-6a1.5 1.5 0 0 1-1.5-1.5zm18 4.5v-4.5a1.5 1.5 0 0 0-1.5-1.5h-3v1.5h3v4.5zm-1.5 1.5h3v13.5H12v-13.5zv-1.5H12a1.5 1.5 0 0 0-1.5 1.5v13.5a1.5 1.5 0 0 0 1.5 1.5h10.5a1.5 1.5 0 0 0 1.5-1.5v-13.5a1.5 1.5 0 0 0-1.5-1.5h-3z",fill:"currentColor"}),r.createElement("path",{d:"M13.5 15.573H21v-1.5h-7.5zM13.5 12.573H21v-1.5h-7.5zM13.5 18.573H21v-1.5h-7.5zM13.5 21.573H21v-1.5h-7.5zM16.5 3.573v-1.5a1.5 1.5 0 0 0-1.5-1.5H9a1.5 1.5 0 0 0-1.5 1.5v1.5H9v-1.5h6v1.5zM7.5 5.073h9v-1.5h-9z",fill:"currentColor"})),p=()=>r.createElement("svg",{role:"graphics-symbol",className:i().icon,width:"24",height:"25","aria-hidden":"true"},r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.5 2.073a1.5 1.5 0 0 0-1.5-1.5H9a1.5 1.5 0 0 0-1.5 1.5h-3a1.5 1.5 0 0 0-1.5 1.5v18a1.5 1.5 0 0 0 1.5 1.5h6a1.5 1.5 0 0 0 1.5 1.5h10.5a1.5 1.5 0 0 0 1.5-1.5v-13.5a1.5 1.5 0 0 0-1.5-1.5H21v-4.5a1.5 1.5 0 0 0-1.5-1.5zm-12 1.5h3v1.5h9v-1.5h3v4.5H12a1.5 1.5 0 0 0-1.5 1.5v12h-6zm10.5 0v-1.5H9v1.5zm7.5 6v13.5H12v-13.5h10.5m-6 10.263 5.03-5.03-1.06-1.061-3.97 3.97-1.969-1.97-1.06 1.062z",clipRule:"evenodd"})),v=(e,t)=>{const a={"":"Or",de:"oder",es:"O",fr:"Ou",jp:"\u307e\u305f\u306f",kr:"\ub610\ub294",pt:"ou",cn:"\u6216","de-de":"oder","es-la":"O","fr-fr":"Ou","ja-jp":"\u307e\u305f\u306f","ko-kr":"\ub610\ub294","pt-br":"ou","zh-cn":"\u6216"};return t?a[e]?.toUpperCase():a[e]},b=e=>{let{content:t,locale:a}=e;const{title_l10n:c,top_background_class:n,bottom_background_class:o,copy_section:l,deploy_section:_}=t,[b,f]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{b&&setTimeout((()=>{f(!1)}),2e3)}),[b]),r.createElement("div",{className:`${i().section} ${i().sectionBackgroundGray} ${i().sectionPaddingSm}`,"data-component-theme":"color"},r.createElement("div",{className:i().sectionBackdrop},r.createElement("div",{className:s()(i().sectionBackdropHalf,n)}),r.createElement("div",{className:s()(i().sectionBackdropHalf,o)})),r.createElement("div",{className:i().sectionContent},r.createElement("div",{className:`${i().section} ${i().sectionAngled} ${i().sectionBackgroundBlue} ${i().sectionPaddingLg} ${i().sectionRounded}`},r.createElement("div",{className:i().sectionBackground}),r.createElement("div",{className:i().sectionContent},r.createElement("div",{"data-theme":"dark"},r.createElement("div",{className:`${i().container} ${i().containerGutterMd} ${i().containerWidthMd}`},r.createElement("div",{className:`${i().flex} ${i().flexAlignStart} ${i().flexDirectionColumn} ${i().flexGapXl} ${i().flexJustifyStart} ${i().flexWrapNowrap}`},r.createElement("h3",{className:`${i().heading} ${i().headingH3} ${i().headingCenter}`,dangerouslySetInnerHTML:{__html:c||"Elasticsearch \u2014 the most widely deployed vector database"}}),r.createElement("div",{className:`${i().grid} ${i().gridGapXl} ${i().gridLayout}`},r.createElement("div",{className:`${i().flex} ${i().flexAlignCenter} ${i().flexDirectionColumn} ${i().flexGapMd} ${i().flexJustifyStart} ${i().flexWrapNowrap} ${i().gridItem}`},r.createElement("h4",{className:`${i().heading} ${i().headingH6} ${i().headingCenter}`,dangerouslySetInnerHTML:{__html:l.title_l10n}}),r.createElement("div",{className:i().codeblock},r.createElement("button",{className:`${i().codeblockButton} ${b?i().codeblockButtonCopied:""}`,type:"button",onClick:()=>{navigator.clipboard.writeText("curl -fsSL https://elastic.co/start-local | sh").then((()=>{f(!0)})).catch((e=>{console.error("Failed to copy code: ",e)}))},"data-track":"cta"},r.createElement("span",{className:"sr-only"},"Copy to clipboard"),b?r.createElement(p,null):r.createElement(h,null)),r.createElement("div",{className:i().codeblockContainer},r.createElement("pre",{className:i().code},r.createElement("code",null,l.code)))),l.call_to_action&&r.createElement(d.Z,{type:"tertiary",href:u(l.call_to_action.href)},l.call_to_action.title)),r.createElement("div",{className:`${i().divider} ${i().gridItem}`},r.createElement("div",{className:i().dividerText},v(a,!0)),r.createElement("div",{className:i().dividerLine},r.createElement(m,null))),r.createElement("div",{className:`${i().flex} ${i().flexAlignCenter} ${i().flexDirectionColumn} ${i().flexGapMd} ${i().flexJustifyCenter} ${i().flexWrapNowrap} ${i().gridItem}`},r.createElement("h4",{className:`${i().heading} ${i().headingH6} ${i().headingCenter}`,dangerouslySetInnerHTML:{__html:_.title_l10n}}),r.createElement(d.Z,{type:"primary",href:u(_.primary_call_to_action.href)},_.primary_call_to_action.title),_.secondary_call_to_action&&r.createElement("p",{className:`${i().text} ${i().textLeft} ${i().textP2}`,style:{color:"var(--color-white)"}},v(a,!1),","," ",r.createElement(d.Z,{type:"text-link",href:u(_.secondary_call_to_action.href)},_.secondary_call_to_action.title)))))))))))};var f=b;b.propTypes={content:{title_l10n:n().string,top_background_class:n().string,bottom_background_class:n().string,copy_section:n().object,deploy_section:n().object}}},67093:function(e,t,a){"use strict";var r=a(67294),c=a(45697),n=a.n(c);const o=e=>{if(!e.qa||!e.qa.length)return"";const t={"@context":"https://schema.org","@type":"FAQPage",mainEntity:[e.qa.map((e=>({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer}})))]};return r.createElement("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})};o.propTypes={qa:n().oneOfType([n().object,n().array])},t.Z=o},23976:function(e,t,a){"use strict";var r=a(68472),c=a.n(r),n=a(67294),o=a(45697),i=a.n(o),l=a(78369),s=a(93926);const{generateKey:_}=s,d=e=>{let{data:t,url:a}=e;return(0,n.useEffect)((()=>{(()=>{const e=a.asPath.split("#")[1],t=document.querySelectorAll(".anchor-bar .react-tabs .react-tabs__tab a");for(let a=0;an.createElement(l.Tab,{key:_("cta",t)},n.createElement("a",{href:e.url&&e.url,className:"jsx-2961679459 stretched-link"},e.title_l10n&&e.title_l10n)))))),n.createElement(c(),{id:"2961679459"},[".anchor-bar .react-tabs .react-tabs__tab{color:var(--carousel-tab-color);cursor:pointer;text-align:center;position:relative;padding:9px 0;margin:0 12px;}",".anchor-bar .react-tabs .react-tabs__tab a{font-weight:400;font-size:1rem;line-height:1.5rem;text-decoration:none;color:var(--carousel-tab-color);font-family:'MierB','Inter',Arial,sans-serif;}",".anchor-bar .react-tabs .react-tabs__tab:focus{outline:0px none;}",".anchor-bar .react-tabs .react-tabs__tab:hover{border-bottom:4px solid var(--carousel-tab-hover-border-color);}",".anchor-bar .react-tabs .react-tabs__tab-list{display:flex;flex-direction:row;justify-content:center;flex-wrap:wrap;border-bottom:1px solid var(--carousel-tablist-border-color);}",".anchor-bar .react-tabs .react-tabs__tab--selected{color:var(--carousel-tab-color);cursor:text;display:block;border-bottom:4px solid var(--carousel-tab-border-color);}",".anchor-bar .react-tabs .react-tabs__tab--selected a{color:var(--carousel-tab-color);}",".anchor-bar .react-tabs .react-tabs__tab--selected:hover{border-color:var(--carousel-tab-hover-border-color);}"]))};d.propTypes={data:i().object,url:i().object},t.Z=d},61916:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});class r{static getQuestionsAndAnswers(e){const t=[];return e?.map((e=>{Object.prototype.hasOwnProperty.call(e,"answer_l10n")&&Object.prototype.hasOwnProperty.call(e,"question_l10n")&&t.push({question:e.question_l10n,answer:e.answer_l10n}),e?.enable_structured_data&&t.push({question:e.title_l10n,answer:e.paragraph_l10n}),e?.subtopic?.map((e=>{e?.enable_structured_data&&t.push({question:e.title_l10n,answer:e.paragraph_l10n})}))})),t}}},62191:function(e){e.exports={section:"DevQuickstart_section__ngjPY",sectionBackdrop:"DevQuickstart_sectionBackdrop__e78mT",sectionBackdropHalf:"DevQuickstart_sectionBackdropHalf__BF1rX",sectionBackgroundGray:"DevQuickstart_sectionBackgroundGray__WczNw",sectionPaddingSm:"DevQuickstart_sectionPaddingSm__w_239",sectionContent:"DevQuickstart_sectionContent__l2bgE",sectionAngled:"DevQuickstart_sectionAngled__XoVOA",sectionBackgroundBlue:"DevQuickstart_sectionBackgroundBlue__fp7D1",sectionBackground:"DevQuickstart_sectionBackground__G4ONB",sectionPaddingLg:"DevQuickstart_sectionPaddingLg__2gtO_",sectionRounded:"DevQuickstart_sectionRounded__L4VmR",container:"DevQuickstart_container__RfwWE",containerGutterMd:"DevQuickstart_containerGutterMd__oa3XZ",containerWidthMd:"DevQuickstart_containerWidthMd__4yT6_",flex:"DevQuickstart_flex__ODYbT",flexAlignStart:"DevQuickstart_flexAlignStart__Wc5pL",flexAlignCenter:"DevQuickstart_flexAlignCenter__wjIKt",flexDirectionColumn:"DevQuickstart_flexDirectionColumn__PH53Q",flexGapXl:"DevQuickstart_flexGapXl__9cboo",flexGapMd:"DevQuickstart_flexGapMd__w7avU",flexJustifyStart:"DevQuickstart_flexJustifyStart__NGm5X",flexJustifyCenter:"DevQuickstart_flexJustifyCenter__kI_AC",flexWrapNowrap:"DevQuickstart_flexWrapNowrap__qA2__",heading:"DevQuickstart_heading__cRkIa",headingH3:"DevQuickstart_headingH3__GNk4z",headingH6:"DevQuickstart_headingH6__yP7wi",headingCenter:"DevQuickstart_headingCenter___2jXd",grid:"DevQuickstart_grid__KLZ6h",gridGapXl:"DevQuickstart_gridGapXl__s_f1y",codeblock:"DevQuickstart_codeblock__3U_Z1",codeblockButton:"DevQuickstart_codeblockButton__XtBQ8",codeblockButtonCopied:"DevQuickstart_codeblockButtonCopied__8833r",codeblockContainer:"DevQuickstart_codeblockContainer__fg1dx",code:"DevQuickstart_code__bSzlY",link:"DevQuickstart_link__Tej2k",linkArrow:"DevQuickstart_linkArrow__dJuv2",divider:"DevQuickstart_divider__291HE",dividerText:"DevQuickstart_dividerText__EX0Bs",dividerLine:"DevQuickstart_dividerLine___gK_w",particles:"DevQuickstart_particles__YhObs",button:"DevQuickstart_button__OrZ6l",buttonPrimary:"DevQuickstart_buttonPrimary__kTmfK",buttonMd:"DevQuickstart_buttonMd__IrMvw",text:"DevQuickstart_text__lz7r4",textLeft:"DevQuickstart_textLeft__EZOcQ",textP2:"DevQuickstart_textP2__n84ff",icon:"DevQuickstart_icon__ruSyr",pulse:"DevQuickstart_pulse__xZQdy",gridLayout:"DevQuickstart_gridLayout__aKXUV",gridItem:"DevQuickstart_gridItem__RtYu1"}},6231:function(e){e.exports={accordion__item:"AccordionFAQ_accordion__item__0cWJH",accordion__button:"AccordionFAQ_accordion__button__y3fMo",accordion__arrow:"AccordionFAQ_accordion__arrow__X8xTr",accordion__body:"AccordionFAQ_accordion__body__9DAPg",fadein:"AccordionFAQ_fadein__xZGJG",accordion__panel:"AccordionFAQ_accordion__panel__TaDiE",accordionFaq:"AccordionFAQ_accordionFaq__I8jS2"}}}]);