(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[41719],{24123:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return be},default:function(){return fe}});var n=a(67294),i=a(9008),r=a.n(i),o=a(27361),l=a.n(o),s=a(45697),c=a.n(s),m=a(68472),d=a.n(m),p=a(5152),u=a.n(p),_=a(30653),g=a(66639),h=a(32155),b=a(57416);a(63144);a(30381),a(38175).parseString,a(7197);const f=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en-US";const n=new Intl.NumberFormat(a,{style:"currency",currency:"USD",maximumFractionDigits:t});return n.format(e)},y=e=>e/1024,x=(e,t,a)=>{const n=1e5;return e*n*t*a/n},w=e=>{const t={ramSuggestedAmount:{},ramSizeOptions:{},storageMultiplier:{},cpuMultiplier:{},instancesCostPerGbHr:{},instancesCostPerMonth:{},dataTransferFee:0,snapshotStorageFee:0,monthlySubtotal:0,monthlyTotal:0};if(e.length<1)return t;const a=e[0];a.instances.forEach((e=>{const a=e.price,n=x(a,e.ram,730);t.ramSuggestedAmount[e.name]=1024*e.ram,t.ramSizeOptions[e.name]=e.discrete_sizes.sizes,t.storageMultiplier[e.name]=e.storage_multiplier,t.cpuMultiplier[e.name]=e.cpu_multiplier,t.instancesCostPerGbHr[e.name]=a,t.instancesCostPerMonth[e.name]=n,t.monthlySubtotal+=n}));const n=.15*t.monthlySubtotal,i=.15*t.monthlySubtotal;return t.dataTransferFee=n,t.snapshotStorageFee=i,t.numberOfEndpoints=a.number_endpoints,t.retentionHotDays=a.retention_hot,t.retentionColdDays=a.retention_cold,t.useCase=a.use_case,t.monthlyTotal=t.monthlySubtotal+n+i,t.costPerEndpoint=t.monthlyTotal/a.number_endpoints,t},v=(e,t)=>{const a={annualCostPerEndpoint:0,monthlyCostPerEndpoint:0,defaultAnnualTotal:0,monthlyRetentionCost:0,additionalRetentionCost:0,annualEstimatedTotal:0};if(e.length<1)return a;const n=12*e.monthlyTotal,i=12*t.monthlyTotal,r=Math.round(t.monthlyTotal)-Math.round(e.monthlyTotal),o=Math.round(i)-Math.round(n);return a.annualCostPerEndpoint=(n-o)/t.numberOfEndpoints,a.monthlyCostPerEndpoint=(t.monthlyTotal-r)/t.numberOfEndpoints,a.defaultAnnualTotal=Math.round(n),a.monthlyRetentionCost=r,a.additionalRetentionCost=o,a.annualEstimatedTotal=i,a},E=e=>"string"!==typeof e&&""!==e?e:e.trim().replace(/-/g," "),N=e=>{e.forEach((e=>{const t=e[0],a="string"!==typeof(n=e[1])&&""!==n?n:n.replace(/\s/g,"-");var n;let i=new URLSearchParams(window.location.search);i.set(t,a);const r=`${window.location.pathname}?${i.toString()}`;"undefined"!==typeof a&&""!==a&&window.history.replaceState(null,null,r)}))},S=e=>{const t=e.toLowerCase();return{region:{aws:"us-east-1",gcp:"gcp-us-east1",azure:"azure-eastus"}[t],provider:{aws:"AWS",gcp:"GCP",azure:"Azure"}[t]}},j=(e,t,a)=>{if(!t)return;const n=(Array.isArray(t)?t:t.match(/([^[.\]])+/g)).reduce(((e,t)=>e&&e[t]),e);return void 0===n?a:n};var k=a(93926);const C=e=>{let{entry:t,tableRows:a,calculateFunction:i,isLoading:r}=e;const[o,l]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{const e=a.some((e=>e.hasOwnProperty("paragraph_l10n")));l(e)}),[]),n.createElement("div",{className:"jsx-2691148942 pricing-table-container"},n.createElement("table",{className:"jsx-2691148942 pricing-table"},n.createElement("caption",{className:"jsx-2691148942 summary__header"},t?.title_l10n),n.createElement("thead",{className:"jsx-2691148942"},n.createElement("tr",{className:"jsx-2691148942 "+((o?"pricing-table__row pricing-table__row--three":"pricing-table__row pricing-table__row--two")||"")},n.createElement("th",{scope:"col",className:"jsx-2691148942"},n.createElement("div",{className:"jsx-2691148942 title-with-tooltip"},n.createElement("span",{className:"jsx-2691148942 summary__header"},t?.title_l10n,t?.tooltip&&""!==t?.tooltip?.tooltip_content_l10n&&n.createElement(n.Fragment,null,""!==t?.tooltip?.title_l10n?n.createElement(g.i,{position:"bottom",title:(0,_.ZP)(t?.tooltip?.title_l10n),content:(0,_.ZP)(t?.tooltip?.tooltip_content_l10n)},n.createElement(h.pH,{tabIndex:"0",type:"questionInCircle",size:"m",color:"var(--color-elastic-blue)"})):n.createElement(g.i,{position:"bottom",content:(0,_.ZP)(t?.tooltip?.tooltip_content_l10n)},n.createElement(h.pH,{tabIndex:"0",type:"questionInCircle",size:"m",color:"var(--color-elastic-blue)"})))))),o&&n.createElement("th",{scope:"col",className:"jsx-2691148942 summary__header"},n.createElement("span",{className:"jsx-2691148942 sr-only"},"Description")),n.createElement("th",{scope:"col",className:"jsx-2691148942 summary__header"},n.createElement("span",{className:"jsx-2691148942 sr-only"},"Estimate")))),n.createElement("tbody",{className:"jsx-2691148942"},a.length>0&&a.map(((e,t)=>n.createElement("tr",{key:(0,k.generateKey)("table_row",t),className:"jsx-2691148942 "+((o?"pricing-table__row pricing-table__row--three":"pricing-table__row pricing-table__row--two")||"")},n.createElement("td",{scope:"row","data-title":"Name",className:"jsx-2691148942"},e.title_l10n),e.hasOwnProperty("paragraph_l10n")&&n.createElement("td",{"data-title":"Description",className:"jsx-2691148942 font-italic text-end"},(0,_.ZP)(e.paragraph_l10n)),n.createElement("td",{"data-title":"Estimate",className:"jsx-2691148942 text-end font-weight-bold"},n.createElement("span",{className:"jsx-2691148942 "+((r?"skeleton":"")||"")},i()))))))),n.createElement(d(),{id:"2691148942"},[".pricing-table{margin:3rem 0 0;width:100%;}",".pricing-table td,.pricing-table th{padding:0.5rem 1rem 0.5rem 0;vertical-align:top;}",".pricing-table caption{display:none;color:var(--color-black);text-indent:-9999em;}",".pricing-table__row--three td:first-of-type,.pricing-table__row--three th:first-of-type{width:40%;}",".pricing-table__row--three td:nth-of-type(2),.pricing-table__row--three th:nth-of-type(2){width:45%;}",".pricing-table__row--three td:last-of-type,.pricing-table__row--three th:last-of-type{width:15%;}",".pricing-table__row--two td:first-of-type,.pricing-table__row--two th:first-of-type{width:85%;text-align:right;}",".pricing-table__row--two td:last-of-type,.pricing-table__row--two th:last-of-type{width:15%;}","@media screen and (max-width:768px){.pricing-table{border:0;display:block;width:100%;}.pricing-table caption{display:block;text-indent:0;}.pricing-table thead{position:absolute;left:-999em;}.pricing-table tbody,.pricing-table tr,.pricing-table th,.pricing-table td,.pricing-table tfoot{border:0;display:block;padding:0;text-align:left;white-space:normal;}.pricing-table td,.pricing-table th,.pricing-table .pricing-table__row--two td,.pricing-table .pricing-table__row--two th,.pricing-table .pricing-table__row--three td,.pricing-table .pricing-table__row--three th{width:100%;float:none;clear:both;position:relative;padding-left:50% !important;text-align:left !important;min-height:30px;}.pricing-table tfoot td{width:100%;padding-left:0 !important;}.pricing-table th[data-title]:before,.pricing-table td[data-title]:before{content:attr(data-title);font-weight:700;position:absolute;top:0;left:0;}.pricing-table tr{margin:0 0 1rem;}.pricing-table tr:not(:last-of-type){border-bottom:1px solid var(--color-poppy-tint);}.pricing-table tr td{border-color:var(--color-poppy-tint);}.pricing-table tr td:last-of-type{padding-bottom:1rem;}.pricing-table th:not([data-title]){font-weight:700;}.pricing-table td:first-of-type,.pricing-table td:nth-of-type(2),.pricing-table td:last-of-type{width:100%;}.pricing-table td:empty{display:none;}}"]))};C.propTypes={entry:c().object.isRequired,tableRows:c().array.isRequired,calculateFunction:c().func.isRequired,isLoading:c().bool.isRequired};var q=C;var R=(0,n.createContext)(null);const I=e=>{let{entry:t,tableRows:a,isLoading:i}=e;const r=(0,n.useContext)(R);return n.createElement("div",{className:"pricing-table-container"},n.createElement("table",{className:"pricing-table"},n.createElement("caption",{className:"summary__header"},t.title_l10n),n.createElement("thead",null,n.createElement("tr",{className:"pricing-table__row pricing-table__row--two"},n.createElement("th",{scope:"col"},n.createElement("div",{className:"title-with-tooltip"},n.createElement("span",{className:"summary__header"},t.title_l10n),t?.tooltip&&""!==t?.tooltip?.tooltip_content_l10n&&n.createElement(n.Fragment,null,""!==t?.tooltip?.title_l10n?n.createElement(g.i,{position:"bottom",title:(0,_.ZP)(t?.tooltip?.title_l10n),content:(0,_.ZP)(t?.tooltip?.tooltip_content_l10n)},n.createElement(h.pH,{tabIndex:"0",type:"questionInCircle",size:"m",color:"var(--color-elastic-blue)"})):n.createElement(g.i,{position:"bottom",content:(0,_.ZP)(t?.tooltip?.tooltip_content_l10n)},n.createElement(h.pH,{tabIndex:"0",type:"questionInCircle",size:"m",color:"var(--color-elastic-blue)"}))))),n.createElement("th",{className:"summary__header",scope:"col"},n.createElement("span",{className:"sr-only"},"Estimate")))),n.createElement("tbody",null,a.length>0&&a.map(((e,t)=>n.createElement("tr",{key:(0,k.generateKey)("table_row",t),className:"pricing-table__row pricing-table__row--two"},n.createElement("td",{scope:"row","data-title":"Name"},r.replaceDaysOfRetention(e.title_l10n,e.estimate_uid)),n.createElement("td",{className:"text-right font-weight-bold","data-title":"Estimate"},n.createElement("span",{className:i?"skeleton":""},r.renderEstimatedTotal(e.title_l10n,e.estimate_uid)))))))))};I.propTypes={entry:c().object.isRequired,tableRows:c().array.isRequired,isLoading:c().bool.isRequired};var z=I,P=a(64135),T=a(1021),M=a(6947);const F=e=>{let{data:t,handleCloseModal:a,isVisible:i,locale:r}=e;const[o,s]=(0,n.useState)(""),[c,m]=(0,n.useState)(!1),[p,u]=(0,n.useState)(""),[g,h]=(0,n.useState)(!1),[b,f]=(0,n.useState)(""),[y,x]=(0,n.useState)(),[w,v]=(0,n.useState)([]),E=()=>{a(),m(!1)},N=e=>{let t,a;f(""),h(!1),u(t||"Thanks for contacting us! We will get in touch with you shortly.");const n=document.querySelector(".mkto-form-wrapper").getBoundingClientRect().top;window.scrollBy({top:n-80,behavior:"smooth"})};return(0,n.useEffect)((()=>{const e=document.querySelector(".estimateModal").querySelectorAll("a[href], button:not([disabled]), textarea, input:not([type=hidden]), select");return e.length>0&&(e[0].focus(),v(e)),document.querySelector("html").style.overflow="hidden",document.body.style.overflow="hidden",()=>{document.body.style.overflow="auto",document.querySelector("html").style.overflowY="visible"}}),[i]),n.createElement(n.Fragment,null,n.createElement("div",{className:"modal-overlay","aria-hidden":i?"false":"true",tabIndex:"-1",onClick:E}),n.createElement("div",{role:"dialog","aria-hidden":i?"false":"true","aria-labelledby":"estimate-modal-heading","aria-describedby":"estimate-modal-content",onKeyDown:e=>{"Escape"===e.key&&E();if(!("Tab"===e.key||9===e.keyCode))return;const t=e.target.closest(".estimateModal"),a=w[0];let n=w[w.length-1];if(t){const e=t.querySelectorAll("a[href], button:not([disabled]), textarea, input:not([type=hidden]), select");n=e[e.length-1]}e.shiftKey||document.activeElement!==n||(a.focus(),e.preventDefault()),e.shiftKey&&document.activeElement===a&&(n.focus(),e.preventDefault())},className:"jsx-2410837132 estimateModal"},n.createElement("div",{role:"document",className:"jsx-2410837132 estimate-modal__container"},n.createElement("button",{type:"button",onClick:E,className:"jsx-2410837132 estimate-modal__closeModal"},n.createElement("img",{src:"/static-res/images/svg/close.svg",alt:"Elastic",className:"jsx-2410837132"}),n.createElement("span",{className:"jsx-2410837132 sr-only"},"Close Modal")),n.createElement("div",{className:"jsx-2410837132 estimateModalHeading estimate-modal__content"},t?.topic_heading_l10n&&n.createElement("h2",{id:"estimate-modal-heading",className:"jsx-2410837132 modalHeading"},t.topic_heading_l10n),c?n.createElement("div",{className:"jsx-2410837132 succesContainer"},t?.success_message?.title_l10n&&n.createElement("h2",{className:"jsx-2410837132"},t?.success_message.title_l10n),t?.success_message?.paragraph_l10n&&n.createElement("p",{className:"jsx-2410837132"},t?.success_message.paragraph_l10n),n.createElement("p",{className:"jsx-2410837132 sendImg"}),t?.success_message?.cta_title_l10n&&n.createElement("div",{className:"jsx-2410837132 btnSecondarycontainer"},n.createElement("button",{type:"button",onClick:E,className:"jsx-2410837132 btn-primary"},t.success_message.cta_title_l10n))):n.createElement(n.Fragment,null,t?.title_l10n&&n.createElement("h2",{className:"jsx-2410837132 modaltitle"},t.title_l10n),t?.paragraph_l10n&&n.createElement("div",{id:"estimate-modal-content",className:"jsx-2410837132 estimateModalPara"},(0,_.ZP)(t?.paragraph_l10n)),n.createElement("div",{className:"jsx-2410837132 col-sm-8 col-md-6 col-lg-6 offset-lg-1 marketoContainer"},t?.marketo_load_id&&n.createElement("div",{className:"jsx-2410837132 mkto-form-wrapper long-form"},y&&n.createElement("div",{className:"jsx-2410837132 error-message"},b),n.createElement(P.Z,{className:"mktoForm sb-form",formId:t?.marketo_load_id,onSuccess:()=>N(),onFormDidNotLoad:()=>{h(!0)},gdprText:l()(t,"marketo.gdpr_text[0].paragraph_l10n")}),g&&n.createElement(T.Z,{formId:t?.marketo_load_id,onValidationError:e=>((e,t)=>{x(t),f(e)})(e),onSuccess:()=>N(),fallbackEndpoint:"default-contact",gdprText:l()(t,"marketo.gdpr_text[0].paragraph_l10n"),fields:["firstName","lastName","organization","email","phoneNumber","message"],locale:r}))),n.createElement("div",{className:"jsx-2410837132"},p&&n.createElement(M.Z,{message:p&&p})),t?.gdpr_text[0]?.paragraph_l10n&&n.createElement("div",{className:"jsx-2410837132 estimate-modal__footnote"},(0,_.ZP)(t?.gdpr_text[0]?.paragraph_l10n))))),n.createElement(d(),{id:"2410837132"},[".estimate-modal{line-height:1.5;}",".estimate-modal__container{padding:1rem;position:relative;height:100%;overflow:auto;}",".estimate-modal__container a:focus{outline:3px solid var(--color-elastic-blue) !important;outline-offset:0.125rem;}",".estimate-modal__container #marketo-fe-form .mktoForm .mktoButtonRow .mktoButtonWrap .mktoButton:focus{outline:3px solid var(--color-elastic-blue) !important;outline-offset:0.125rem;}",".estimate-modal__closeModal{width:30px;height:30px;position:absolute;top:1rem;right:1.25rem;padding:0;}",".estimate-modal__closeModal:hover{cursor:pointer;}",".estimate-modal__closeModal:focus{outline:3px solid var(--color-elastic-blue);outline-offset:0.125rem;}",".estimate-modal__closeModal img{position:relative;left:5px;width:20px;margin:0 auto;}",".estimate-modal__content{width:calc(100% - 60px);margin:0 auto;}",".estimate-modal__footnote p{font-size:0.75rem;line-height:1.5;margin:1rem auto 0.5rem;}",".estimateModal{visibility:hidden;opacity:0;position:fixed;max-width:650px;max-height:850px;width:calc(100% - 4.5rem);height:calc(100% - 4.5rem);top:50%;left:50%;background:var(--color-white);border-radius:16px;box-shadow:0 5px 20px rgba(0,0,0,0.04);text-align:center;transform:translate(-50%,0);transition:transform 0.2s ease-in-out;overflow:hidden;}",".estimateModal[aria-hidden=false]{visibility:visible;opacity:1;transform:translate(-50%,-50%);z-index:9999;}",".estimateModal .estimateModalHeading .modalHeading{color:var(--color-elastic-blue);font-size:0.75rem;margin:1rem 0 0;}",".estimateModal .estimateModalHeading h2{font-size:1.75rem;padding-bottom:11px !important;}",".estimateModal .estimateModalHeading .estimateModalPara p{max-width:80ch;margin:0 0 0.75rem;color:var(--color-light-ink) !important;}",".estimateModal .estimateModalHeading .estimateEmail{width:400px !important;border-radius:6px;border:1px solid rgba(19,34,149,0.1) !important;}",".estimateModal .btnContainer{width:50%;display:flex;justify-content:space-between;align-items:center;margin:25px auto;}",".estimateModal .btnContainer button{flex-basis:30%;}",".succesContainer{text-align:center;}",".succesContainer .btnSecondarycontainer{margin:30px auto;width:160px;}",".succesContainer .sendImg{background-color:var(--color-elastic-teal) !important;background:no-repeat center url(/static-res/images/svg/Path.svg);transform:rotate(0deg);border-radius:50%;border-style:none;height:30px;width:30px;border:1px solid var(--color-elastic-teal);border-width:0 2px 2px 0;margin:0 auto;}",".modal-overlay{visibility:hidden;opacity:0;background-color:grey;position:fixed;top:0;right:0;bottom:0;left:0;z-index:999;transition:all 0.2s ease-in-out;}",".modal-overlay[aria-hidden=false]{opacity:0.7;visibility:visible;}",".marketoContainer{margin:auto;}","@media screen and (max-width:767px){.estimate-modal__content{width:100%;}}","@media screen and (max-width:319px){#marketo-fe-form .mktoForm .mktoFieldWrap input[type=text],#marketo-fe-form .mktoForm .mktoFieldWrap input[type=email],#marketo-fe-form .mktoForm .mktoFieldWrap input[type=number],#marketo-fe-form .mktoForm .mktoFieldWrap input[type=tel],#marketo-fe-form .mktoForm .mktoFieldWrap input[type=url],#marketo-fe-form .mktoForm .mktoFieldWrap select{min-width:100px;}}"])))};F.propTypes={data:c().object,handleCloseModal:c().func.isRequired,isVisible:c().bool.isRequired,locale:c().string.isRequired};var O=F;const A=e=>n.createElement("div",{className:"jsx-1296127756"},n.createElement("button",{type:"reset",onClick:()=>{e.handleResetEstimates()},className:"jsx-1296127756 restart-btn"},n.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",className:"jsx-1296127756"},n.createElement("use",{xlinkHref:"/static-res/images/calculator-icons.svg#refresh",className:"jsx-1296127756"})),"Restart estimator"),n.createElement(d(),{id:"1296127756"},[".restart-btn{display:flex;flex-flow:row nowrap;align-items:center;width:auto;color:var(--color-elastic-blue);margin:3rem 0 0;border:none !important;background-color:var(--color-white);font-size:1rem;}",".restart-btn svg{fill:var(--color-elastic-blue);margin-right:0.5rem;}",".restart-btn:focus{outline:3px solid var(--color-elastic-blue);outline-offset:0.125rem;}","@media screen and (min-width:768px){.restart-btn{margin:3rem 0 0;}}"]));A.propTypes={handleResetEstimates:c().func.isRequired};var D=A;const L=u()((()=>Promise.all([a.e(40630),a.e(61839),a.e(31212),a.e(75013),a.e(4003),a.e(28009)]).then(a.bind(a,26949)).then((e=>e.EuiSuperSelect))),{ssr:!1}),Z=e=>{let{entry:t,data:a,allData:i,validRamOptions:r,estimateModal:o,restart:s,locale:c,provider:m}=e;const p=(0,n.useContext)(R),[u,x]=(0,n.useState)({}),[w,v]=(0,n.useState)(r[m]),[E,N]=(0,n.useState)(0),[S,j]=(0,n.useState)(0),[k,C]=(0,n.useState)(0),[I,P]=(0,n.useState)(0),[T,M]=(0,n.useState)(0),[F,A]=(0,n.useState)(0),[Z,H]=(0,n.useState)(0);(0,n.useEffect)((()=>{x(p.response),j(p.response.defaultAnnualTotal),N(p.response.monthlyTotal)}),[p.response]),(0,n.useEffect)((()=>{const e=m.toLowerCase();v(r[e]),p.setValue(e)}),[m]),(0,n.useEffect)((()=>{const e=p.value.toLowerCase();v(r[e])}),[p.value]);const V=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;if(!Object.prototype.hasOwnProperty.call(t,"ramSizeOptions"))return"";if(!Object.prototype.hasOwnProperty.call(t.ramSizeOptions,e))return"";const a=e.toLowerCase(),n=t.storageMultiplier[a],i=t.ramSuggestedAmount[a],r=w[a];let o=i*n;return Array.isArray(r)&&r.length>0&&!r.includes(i)&&(o=0),y(o)},[G,W]=(0,n.useState)(0),[$,U]=(0,n.useState)(0),[B,K]=(0,n.useState)(0),[Q,X]=(0,n.useState)(0),[Y,J]=(0,n.useState)(0),[ee,te]=(0,n.useState)(0),[ae,ne]=(0,n.useState)(0),[ie,re]=(0,n.useState)(!1),[oe,le]=(0,n.useState)(!1),se=0===t?.cloud_provider_and_region?.providers?.length?[]:t?.cloud_provider_and_region?.providers?.length>0&&t?.cloud_provider_and_region?.providers?.map((e=>({value:e.title_l10n.toLowerCase(),inputDisplay:n.createElement(n.Fragment,null,n.createElement("img",{className:"cloud-providers__logo",width:"16",height:"20",src:`${e.image.url}`,alt:`${e.image.title_l10n}`}),e.title_l10n)}))),ce=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!Object.prototype.hasOwnProperty.call(u,"instancesCostPerGbHr"))return 0;const a=e.toLowerCase();if(!Object.prototype.hasOwnProperty.call(u.instancesCostPerGbHr,a))return 0;const n=u.instancesCostPerGbHr[a],i=u.storageMultiplier[a];let r;switch(e){case"hot":r=k;break;case"cold":r=I;break;case"frozen":r=Z;break;case"ml":r=T;break;case"kibana":r=F;break;default:r=0}return r=parseInt(r,10)/i,r=n*r*730,t?f(r,0):r},me=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=.15*(G+$+Y+B+Q);return e?f(t,0):t};(0,n.useEffect)((()=>{C(V("hot")),P(V("cold")),H(V("frozen")),M(V("ml")),A(V("kibana"))}),[u]),(0,n.useEffect)((()=>{W(ce("hot",!1)),U(ce("cold",!1)),J(ce("frozen",!1)),K(ce("ml",!1)),X(ce("kibana",!1))}),[I,k,Z,T,F]),(0,n.useEffect)((()=>{const e=me(!1);te($+G+Y+B+Q),ne(e+e)}),[$,G,Y,B,Q]),(0,n.useEffect)((()=>{N(ee+ae)}),[ee,ae]);return n.createElement(n.Fragment,null,n.createElement("div",{className:"summary__header-row d-flex justify-content-between mt-8"},n.createElement("div",{className:"title-with-tooltip"},n.createElement("h2",{className:"summary__title"},t?.title_l10n),""!==t?.tooltip?.tooltip_content_l10n&&n.createElement(n.Fragment,null,""!==t?.tooltip?.title_l10n?n.createElement(g.i,{position:"bottom",title:(0,_.ZP)(t?.tooltip?.title_l10n),content:(0,_.ZP)(t?.tooltip?.tooltip_content_l10n)},n.createElement(h.pH,{tabIndex:"0",type:"questionInCircle",size:"m",color:"var(--color-elastic-blue)"})):n.createElement(g.i,{position:"bottom",content:(0,_.ZP)(t?.tooltip?.tooltip_content_l10n)},n.createElement(h.pH,{tabIndex:"0",type:"questionInCircle",size:"m",color:"var(--color-elastic-blue)"})))),n.createElement(D,{handleResetEstimates:()=>{s(),p.setValue("aws"),v(r.aws),C(V("hot")),P(V("cold")),H(V("frozen")),M(V("ml")),A(V("kibana")),N(a.monthlyTotal),j(a.defaultAnnualTotal)}})),n.createElement("div",{className:"jsx-4202857798 summary-box summary"},ie?n.createElement(O,{data:o,handleCloseModal:()=>{re(!1)},isVisible:ie,locale:c}):n.createElement(n.Fragment,null),n.createElement("div",{className:"jsx-4202857798 box-wrapper"},n.createElement("div",{className:"jsx-4202857798 estimate-section summary__row text-right--sm"},n.createElement("div",{className:"jsx-4202857798 summary__row--left"},n.createElement("div",{className:"jsx-4202857798 title-with-tooltip"},n.createElement("h3",{className:"jsx-4202857798 summary__header"},t?.estimated_total?.title_l10n),""!==t?.estimated_total?.tooltip?.tooltip_content_l10n&&n.createElement(n.Fragment,null,""!==t?.estimated_total?.tooltip?.title_l10n?n.createElement(g.i,{position:"bottom",title:(0,_.ZP)(t?.estimated_total?.tooltip?.title_l10n),content:(0,_.ZP)(t?.estimated_total?.tooltip?.tooltip_content_l10n)},n.createElement(h.pH,{tabIndex:"0",type:"questionInCircle",size:"m",color:"var(--color-elastic-blue)"})):n.createElement(g.i,{position:"bottom",content:(0,_.ZP)(t?.estimated_total?.tooltip?.tooltip_content_l10n)},n.createElement(h.pH,{tabIndex:"0",type:"questionInCircle",size:"m",color:"var(--color-elastic-blue)"}))))),n.createElement("div",{className:"jsx-4202857798 summary__row--right"},n.createElement("h3",{className:"jsx-4202857798 summary__header summary__header--estimate"},n.createElement("span",{className:"jsx-4202857798 "+((oe?"skeleton":"")||"")},f(Math.round(E),0))," ","/month"),n.createElement("p",{className:"jsx-4202857798 summary__description"},(0,_.ZP)(t?.estimated_total?.footnote_l10n)))),n.createElement("div",{className:"jsx-4202857798 subscriptions-section summary__row"},n.createElement("div",{className:"jsx-4202857798 summary__row--left"},n.createElement("h3",{className:"jsx-4202857798 summary__header"},t?.subscription_level?.title_l10n)),n.createElement("div",{className:"jsx-4202857798 summary__row--right summary__row--subscription text-right--sm"},n.createElement("span",{className:"jsx-4202857798 type"},t?.subscription_level?.level_l10n),t?.subscription_level?.footnote_l10n&&n.createElement("p",{className:"jsx-4202857798 subscription-footnote"},(0,_.ZP)(t?.subscription_level?.footnote_l10n)))),n.createElement("div",{className:"jsx-4202857798 provider-section summary__row mb-2"},n.createElement("div",{className:"jsx-4202857798 summary__row--left"},n.createElement("h3",{className:"jsx-4202857798 summary__header"},"Cloud provider and region")),n.createElement("div",{className:"jsx-4202857798 summary__row--right text-right--sm"},n.createElement("div",{className:"jsx-4202857798 cloud-providers"},n.createElement(L,{options:se,valueOfSelected:p.value,onChange:p.onChange,hasDividers:!0}),n.createElement("span",{className:"jsx-4202857798 cloud-providers__label"},t?.cloud_provider_and_region?.paragraph_l10n,""!==t?.cloud_provider_and_region?.tooltip?.tooltip_content_l10n&&n.createElement(g.i,{position:"bottom",content:t?.cloud_provider_and_region?.tooltip?.tooltip_content_l10n,title:t?.cloud_provider_and_region?.tooltip?.title_l10n},n.createElement(h.pH,{tabIndex:"0",type:"questionInCircle"})))))),n.createElement("section",{className:"jsx-4202857798 summary__section"},n.createElement(q,{entry:l()(t,"additional_charges"),tableRows:l()(t.additional_charges,"item"),calculateFunction:me.bind(void 0),isLoading:oe})),n.createElement("section",{className:"jsx-4202857798 summary__section"},n.createElement(z,{entry:l()(t,"annual_cost_estimates"),tableRows:l()(t.annual_cost_estimates,"estimate"),isLoading:oe})),n.createElement("div",{className:"jsx-4202857798 cta-section"},n.createElement("div",{className:"jsx-4202857798 btn-wrapper"},n.createElement("button",{type:"button",onClick:()=>{re(!0)},className:"jsx-4202857798 btn-secondary"}," ",t.annual_cost_estimates.cta.email_this_estimate.cta_title_l10n," "),n.createElement(b.Z,{type:"primary",className:"btn-primary",href:t.annual_cost_estimates.cta.primary.url},t.annual_cost_estimates.cta.primary.cta_title_l10n)))),n.createElement(d(),{id:"4202857798"},[".summary{position:relative;}",".summary__row--left{flex:1;}",".summary__row--left .summary__header{margin:0;}",".summary__row--right{flex:2;}",".summary__title{font-size:1.5rem;line-height:28px;font-weight:700;padding-bottom:0;margin:0 0 1rem;}",".summary__title+.info{margin-top:0.25rem;}",".summary__description{font-size:0.75rem;line-height:1.5;}",".summary__description td{line-height:1.5;}",".summary__header-row{flex-flow:column nowrap;margin:0 0 1rem;}",".summary__header-row .restart-btn{margin:0;}",".summary__header{font-size:1.125rem;line-height:1.2;margin-bottom:1rem;padding-bottom:0;font-weight:700;}",".summary__header--estimate{font-size:2rem;}",".summary__table{margin:3rem 0 0;width:100%;}",".summary__table td,.summary__table th{padding:0 1rem 0.5rem 0;}",".provider-section .summary__header{margin-bottom:1rem;}",".title-with-tooltip{display:flex;flex-flow:row nowrap;gap:0.5rem;}",".title-with-tooltip--align-right{justify-content:flex-end;}",".title-with-tooltip>.summary__header{margin:0;}",".cloud-providers .euiToolTipAnchor,.title-with-tooltip .euiToolTipAnchor{display:inline-flex;flex-flow:column nowrap;justify-content:center;margin-left:0.5rem;}",".cloud-providers .euiIcon,.title-with-tooltip .euiIcon{fill:var(--color-elastic-blue);}",".euiFormControlLayout__childrenWrapper{background-color:var(--color-light-gray);border:1px solid rgba(19,34,149,0.1);border-radius:4px;}",".cloud-providers{display:flex;flex-flow:row nowrap;gap:0.5rem;align-items:flex-start;}",".cloud-providers__logo{width:16px;height:16px;margin:0 0.5rem 0.1rem 0;}",".cloud-providers p{margin:0;}",".cloud-providers .euiFormControlLayout{height:32px;}",".cloud-providers .euiSuperSelectControl{height:32px;line-height:32px;}",".cloud-providers .info{top:0;}",".data-tiers{margin-top:3rem;}",".data-tiers th:first-of-type{width:70%;}",".data-tiers th:last-of-type{width:30%;}",".data-tier td:first-of-type{width:70%;}",".data-tier td:last-of-type{width:30%;}",".cloud-providers__label{margin:0;display:flex;}",".storage-options{width:100%;overflow:hidden;flex-flow:column nowrap;gap:0.5rem;align-items:flex-start;justify-content:space-between;line-height:normal;}",".storage-options svg{margin-top:0.15rem;}",".storage-options p{margin:0;}",".storage-options__label{display:flex;flex-flow:row nowrap;gap:0.25rem;min-width:180px;margin-bottom:0;word-wrap:break-word;}",".storage-options__select{flex:1 1 0;}",".storage-options__select .euiSuperSelect{width:100%;max-width:180px;}",".storage-options__select .euiFormControlLayout{height:36px;}",".storage-options__select .euiSuperSelectControl{height:32px;line-height:32px;}",".box-wrapper{border-radius:10px;padding:64px;box-shadow:0 2px 8px rgba(0,0,0,0.1),3px 10px 30px rgba(0,0,0,0.08);}",".euiFormControlLayout__childrenWrapper{display:flex;border:1px solid var(--color-light-gray);background-color:var(--color-light-gray);max-width:200px;max-height:32px;justify-content:space-between;}",".estimate-section{padding-bottom:32px;border-bottom:1px solid var(--color-dark-gray);}",".subscriptions-section{display:flex;flex-flow:row nowrap;gap:1rem;padding-top:32px;}",".subscriptions-section .type{font-size:12px;font-weight:500;text-align:center;padding:0.25rem 0.5rem;width:fit-content;height:fit-content;border-radius:3px;border:1px solid var(--color-black);background-color:var(--color-black);color:var(--color-white);}",".subscriptions-section .summary__row--right{display:flex;flex-flow:column nowrap;justify-content:flex-end;align-items:flex-end;margin:0 0 1rem;}",".subscription-footnote{max-width:80ch;font-size:0.75rem;font-weight:400;line-height:1.5;margin:0.25rem 0 0;}",".tier-footnote{padding-bottom:32px;}",".tier-footnote p{font-size:11px;font-weight:400;line-height:18px;}",".summary__section{padding:0 0 16px 0;}",".summary__section:not(:last-of-type){margin-bottom:0;}",".summary__section:last-of-type{border-bottom:1px solid var(--color-poppy-tint);}","button{border:none;background:var(--color-white);outline:none;width:100%;text-align:left;}","button:focus{outline:none;}",".cta-section{display:flex;flex-flow:column nowrap;align-items:center;gap:1rem;margin-top:64px;}",".cta-section .btn-disabled{text-align:center;}",".btn-wrapper{display:flex;flex-direction:column;gap:1rem;}",".btn-wrapper>.btn-secondary{font-size:1rem;font-family:'MierB','Inter',Arial,sans-serif;font-weight:600;}",".btn-wrapper>.btn-primary{flex:0 0 auto;}",".euiContextMenuItem__text{font-size:0.875rem;}",".skeleton{display:inline-block;background-color:var(--color-gray);background-image:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,0.5),rgba(255,255,255,0));background-size:40px 100%;background-repeat:no-repeat;background-position:left -40px top 0;animation:shine 1s ease infinite;color:transparent;}","tfoot p{max-width:80ch;}","@keyframes shine{to{background-position:right -40px top 0;}}","@media screen and (min-width:479px){.btn-wrapper{flex-direction:row;}.summary__row{display:flex;flex-flow:row nowrap;gap:1rem;}.cloud-providers{flex-flow:column nowrap;align-items:flex-end;justify-content:flex-end;}.text-right--sm{text-align:right;}.provider-section .summary__header{margin-bottom:0;}.storage-options__label{line-height:inherit;align-items:center;}.storage-options__label svg{margin:0;}.subscriptions-section .summary__row--right{align-items:flex-end;}}",".euiFormControlLayoutIcons{top:3px;}","@media screen and (min-width:660px){.storage-options{flex-flow:row nowrap;align-items:center;}.cloud-providers{flex-flow:row nowrap;align-items:center;}.summary__section:not(:last-of-type){margin-bottom:64px;}}","@media screen and (min-width:768px){.summary__header-row{flex-flow:row nowrap;}.summary__title{margin:0;}}","@media screen and (max-width:768px){.box-wrapper{border-radius:10px;padding:2rem 1.5rem 3rem;}.data-tiers caption{display:block;text-indent:0;}.data-tiers td{padding-right:0;}.data-tiers td:first-of-type,.data-tiers td:nth-of-type(2),.data-tiers td:last-of-type{width:100%;}.data-tiers td:empty{display:none;}}"])))};Z.propTypes={entry:c().oneOfType([c().object,c().array]),data:c().object,allData:c().oneOfType([c().array,c().object]),validRamOptions:c().object,estimateModal:c().oneOfType([c().func,c().object]),restart:c().func,locale:c().string,provider:c().string};var H=Z,V=a(96486);a(4423);const{getUrl:G}=k,W=e=>{let{data:t,setDetailsVisibility:a,primaryCostPoint:i,custom:r,totalEstimate:o,dataRetention:l}=e;const[s,c]=(0,n.useState)(!1),[m,p]=(0,n.useState)(!1),[u,g]=(0,n.useState)(!1),h=()=>{g(window.matchMedia("(max-width: 639px) and (orientation: portrait)").matches)};(0,n.useEffect)((()=>(g(window.matchMedia("(max-width: 639px) and (orientation: portrait)").matches),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h))));const y=()=>{const e=document.querySelector(".pricing-calculator__controls"),t=document.querySelector(".estimate-box__total"),a=e.getBoundingClientRect(),n=a.top>=0&&a.left>=0&&a.top<=t.clientHeight+48;p(!!n)};(0,n.useEffect)((()=>{if(u)return window.addEventListener("scroll",y),()=>{window.removeEventListener("scroll",y)}}),[u]);const x=()=>{a()};return(0,n.useEffect)((()=>{if(c(r),o>285e3)return c(!0)}),[r,o]),n.createElement("div",{className:"jsx-3518514345 estimate-box"},n.createElement("div",{className:"jsx-3518514345 estimate-box__container"},n.createElement("div",{className:"jsx-3518514345 "+((m?"estimate-box__total estimate-box__total--fixed":"estimate-box__total")||"")},n.createElement("h3",{className:"jsx-3518514345 estimate-box__subheading"},t?.price_estimate_box?.title_l10n),n.createElement("p",{"aria-live":"polite",className:"jsx-3518514345 total-estimate"},i),void 0!==l&&void 0!==o&&!s&&n.createElement(n.Fragment,null,n.createElement("p",{"aria-live":"polite",className:"jsx-3518514345 estimate-box__data-retention"},t?.price_estimate_box?.data_retention?.title_l10n," ",f(l,0)),n.createElement("div",{className:"jsx-3518514345 estimate-box__unit-price"},n.createElement("p",{className:"jsx-3518514345 unit-price unit-price-heading"},t?.price_estimate_box?.your_estimate?.title_l10n),n.createElement("p",{className:"jsx-3518514345 unit-price"},"~",f(o,0)))),n.createElement("div",{className:"jsx-3518514345 estimate-box__cta-wrapper"},n.createElement(n.Fragment,null,s&&""!==t?.price_estimate_box?.cta?.for_custom_estimate?.url&&""!==t?.price_estimate_box?.cta?.for_custom_estimate?.cta_title_l10n?n.createElement(b.Z,{href:G(t?.price_estimate_box?.cta?.for_custom_estimate?.url),size:"default",type:"primary"},t?.price_estimate_box?.cta?.for_custom_estimate?.cta_title_l10n):n.createElement("button",{type:"button",onClick:x,className:"jsx-3518514345 pricing-details-btn btn-primary"},(0,V.get)(t?.price_estimate_box,"cta.cta_title_l10n"))),n.createElement(b.Z,{href:G(t?.price_estimate_box?.cta?.secondary_cta?.url),size:"large",type:"tertiary",className:"pricing-details-secbtn"},t?.price_estimate_box?.cta?.secondary_cta?.cta_title_l10n)),n.createElement("div",{className:"jsx-3518514345 pricing-footnote"},(0,_.ZP)(t?.price_estimate_box?.paragraph_l10n))),n.createElement("div",{className:"jsx-3518514345 estimate-box__hints"},n.createElement("div",{className:"jsx-3518514345 deliverables"},t?.helpful_hint?.title_l10n&&n.createElement("div",{className:"jsx-3518514345 estimate-box__title-wrapper"},n.createElement("img",{width:"32",height:"32",src:"/static-res/images/feature-packed.svg",alt:"Feature packed icon",className:"jsx-3518514345"}),n.createElement("h3",{className:"jsx-3518514345 pricing-calculator__subheading pricing-calculator__subheading--sm"},t?.helpful_hint?.title_l10n)),t?.helpful_hint?.paragraph_l10n&&n.createElement("div",{className:"jsx-3518514345 details-container__checklist"},(0,_.ZP)(t?.helpful_hint?.paragraph_l10n)),(0,V.get)(t?.helpful_hint,"cta.cta_title_l10n")?n.createElement("button",{type:"button",className:"jsx-3518514345 pricing-details-btn btn-secondary"},(0,V.get)(t?.helpful_hint,"cta.cta_title_l10n")):n.createElement(n.Fragment,null)))),n.createElement(d(),{id:"3518514345"},[".estimate-box{flex:1;line-height:1.5;}",".estimate-box__container{border:1px solid transparent;border-radius:8px;box-shadow:rgba(152,162,179,0.15) 0 10px 20px 0,rgba(152,162,179,0.25) 0 2px 6px 0;}",".estimate-box__hints{background:var(--color-teal-tint);padding:2rem 1.5rem;}",".estimate-box__hints p{font-size:0.875rem;}",".estimate-box__total{padding:2rem 0.75rem;text-align:center;}",".estimate-box__subheading{font-size:1rem;padding:0;}",".estimate-box__title-wrapper{display:flex;flex-flow:row nowrap;align-items:center;margin:0 0 1rem;}",".estimate-box__title-wrapper img{width:32px;height:32px;margin-right:0.5rem;}",".estimate-box__data-retention{font-weight:500;font-size:0.875rem;line-height:1.6;margin:0;}",".estimate-box__unit-price{display:flex;flex-flow:row wrap;justify-content:center;margin:0 0 1rem;}",".estimate-box__cta-wrapper{display:flex;flex-flow:column nowrap;align-items:center;gap:1rem;margin:0 0 1rem;}",".estimate-box__cta-wrapper>button{width:max-content;margin-bottom:0;}",".estimate-box__cta-wrapper>*{display:inline-block;width:auto;}",".details-container{display:none;width:50%;margin:64px auto 2rem;}",".details-container img{display:block;width:128px;height:128px;margin:3rem auto;}",".details-container__header{font-size:1.5rem;line-height:1.5;text-align:center;}",".details-container__checklist{font-size:0.875rem;}",".details-container__checklist ul{padding-left:1rem;}",".details-container__checklist li{list-style-type:disc;margin-bottom:0.25rem;font-size:0.875rem;}",".total-estimate{font-size:3rem;font-weight:700;letter-spacing:-1px;}",".unit-price{font-size:0.875rem;font-weight:600;text-transform:uppercase;margin:0.25rem 0 0;}",".unit-price-heading{margin-right:0.25rem;margin-bottom:0;white-space:nowrap;}",".helpful-hints{margin:0 0 2rem;}",".pricing-details-btn{margin:0.5rem 0 1rem;width:auto;font-size:1rem;font-family:'MierB','Inter',Arial,sans-serif;font-weight:600;}",".pricing-footnote{font-size:0.6rem;}",".total-estimate{font-size:3rem;font-weight:700;letter-spacing:-1px;}","@media screen and (max-width:639px) and (orientation:portrait){.total-estimate{font-size:2.25rem;line-height:normal;margin:0;}.pricing-details-btn{margin:0;}.estimate-box__total{padding:1rem 0.75rem;}.estimate-box__total--fixed{position:fixed;bottom:0;left:0;width:100%;background:var(--color-white);box-shadow:rgba(152,162,179,0.15) 0 10px 20px 0,rgba(152,162,179,0.25) 0 2px 6px 0;border-top:1px solid var(--color-poppy-tint);z-index:99;}.estimate-box__hints{display:none;}.estimate-box__container{box-shadow:none;border:none;}}","@media screen and (min-width:992px){.estimate-box{max-width:400px;}}"]))};W.propTypes={data:c().object.isRequired,setDetailsVisibility:c().func.isRequired,primaryCostPoint:c().oneOfType([c().string,c().number]),custom:c().bool.isRequired,totalEstimate:c().oneOfType([c().string,c().number]),dataRetention:c().oneOfType([c().string,c().number])};var $=W,U=a(31826);const B=e=>{let{data:t,setValueFunction:a,restart:i}=e;const r=t.preset?`radioGroupItemId__${t.preset}`:"radioGroupItemId__0",[o,l]=(0,n.useState)(r);(0,n.useEffect)((()=>{i&&l("radioGroupItemId__0")}),[i]);const s=t?.radio_button?.length>0&&t?.radio_button?.map(((e,t)=>({id:`radioGroupItemId__${t}`,label:n.createElement(n.Fragment,null,e?.description?n.createElement(n.Fragment,null,n.createElement("span",{className:"radio-button__label"},e?.title_l10n),n.createElement("span",{className:"radio-button__description"},e?.description)):e?.title_l10n,e?.tooltip?.tooltip_content_l10n&&n.createElement(n.Fragment,null,""!==e?.tooltip?.title_l10n?n.createElement(g.i,{position:"bottom",title:(0,_.ZP)(e?.tooltip?.title_l10n),content:(0,_.ZP)(e?.tooltip?.tooltip_content_l10n)},n.createElement(h.pH,{tabIndex:"0",type:"questionInCircle",size:"m",color:"var(--color-elastic-blue)"})):n.createElement(g.i,{position:"bottom",content:(0,_.ZP)(e?.tooltip?.tooltip_content_l10n)},n.createElement(h.pH,{tabIndex:"0",type:"questionInCircle",size:"m",color:"var(--color-elastic-blue)"}))))})));return n.createElement("fieldset",{className:"jsx-290021160 pricing-calculator__fieldset"},n.createElement("div",{className:"jsx-290021160 radio-button-wrapper"},n.createElement("div",{className:"jsx-290021160 radio-title"},n.createElement("legend",{className:"jsx-290021160"},t.title_l10n),t?.tooltip_l10n&&n.createElement(g.i,{position:"bottom",content:(0,_.ZP)(t?.tooltip_l10n)},n.createElement(h.pH,{tabIndex:"0",type:"questionInCircle",size:"m",color:"var(--color-elastic-blue)"}))),n.createElement("div",{className:"jsx-290021160 radio-section"},n.createElement(U.z,{options:s,idSelected:o,onChange:e=>(e=>{l(e);const n=e.slice(-1),i=t.radio_button[n].title_l10n;a(i)})(e),name:"radio group"}))),n.createElement(d(),{id:"290021160"},[".radio-button-wrapper{margin-bottom:1rem;}",".radio-title{display:flex;margin-bottom:1rem;}",".radio-button__label{font-weight:600;margin-right:0.4rem;}",".euiRadio{display:flex;}",".euiRadio:not(:last-of-type){margin-bottom:24px;}",".euiRadio .euiRadio__input{margin:8px 6px 0 0;align-self:baseline;cursor:pointer;}",".euiRadio .euiRadio__label{display:flex;cursor:pointer;font-weight:400 !important;}"]))};B.propTypes={data:c().object.isRequired,setValueFunction:c().func.isRequired,restart:c().bool.isRequired};var K=B;const Q=e=>new URLSearchParams(window.location.search).get(e);var X=(e,t)=>Q(e)||t;const Y=(e,t)=>{const a=t.map((e=>parseInt(e.interval_l10n.replace("+",""),10))),n=parseInt(e,10);return a.findIndex((e=>e===n))+1},J=(e,t)=>t.findIndex((t=>t.title_l10n.trim()===e.trim()));var ee=(0,n.createContext)(null);const te=u()((()=>Promise.all([a.e(31212),a.e(73961)]).then(a.bind(a,73961)).then((e=>e.default))),{ssr:!1}),ae=e=>{const t=(0,n.useContext)(ee),{block:a}=e,i=Object.keys(a)[0];if("slider"===i){let e=t.setEndpoints;return"retention-days"===a?.slider?.question?.question_uid&&(e=t.setDays),n.createElement(n.Fragment,null,n.createElement(te,{data:a?.slider?.question,setValueFunction:e.bind(void 0),costPerEndpoint:t.costPerEndpoint.toString(),restart:t.restart}))}return"radio_button"===i?n.createElement(n.Fragment,null,n.createElement(K,{data:a?.radio_button?.question,setValueFunction:t.setUseCaseValue.bind(void 0),restart:t.restart})):""},ne=e=>{let{entry:t,apiContent:a,validRamOptions:i,locale:r,currentRequest:o}=e;const[s,c]=(0,n.useState)(X("num_endpoints",100)),[m,d]=(0,n.useState)(X("hot_retention",7)),[p,u]=(0,n.useState)(X("use_case",{0:"Next Generation Antivirus (NGAV)",1:"Essential Endpoint Detection and Response (EDR)",2:"Complete Endpoint Detection and Response (EDR)"}[0]));const[_,g]=(0,n.useState)(X("provider","AWS")),[h,b]=(0,n.useState)(0),[y,x]=(0,n.useState)(0),[j,k]=(0,n.useState)(0),[C,q]=(0,n.useState)(!0),[I,z]=(0,n.useState)(!1),[P,T]=(0,n.useState)({}),M=t?.input_field_types??[],[F,O]=(0,n.useState)(!1),[A,L]=(0,n.useState)(!1),[Z,V]=(0,n.useState)(!1),[G,W]=(0,n.useState)(0),[U,B]=(0,n.useState)(_.toLowerCase()),[K,Q]=(0,n.useState)(i[_.toLowerCase()]);t?.input_field_types.map((e=>{if(e?.slider){if("number-of-endpoints"===e?.slider?.question?.question_uid){const t=parseInt(s,10);e.slider.question.preset=((e,t)=>{const a=t.map((e=>e.interval_l10n.match("K")?1e3*parseInt(e.interval_l10n.slice(0,-1),10):parseInt(e.interval_l10n,10))),n=parseInt(e,10);return a.findIndex((e=>e===n))+1})(t,e.slider.question.interval)}if("retention-days"===e?.slider?.question?.question_uid){const t=parseInt(m,10);e.slider.question.preset=Y(t,e.slider.question.interval)}}e?.radio_button&&(e.radio_button.question.preset=J(E(p),e.radio_button.question.radio_button))})),(0,n.useEffect)((()=>{O(!1);const e=parseInt(s,10),t=parseInt(m,10),n=s.toString(),i=m.toString(),r=E(p),o=S(_),{region:l}=o,c=o.provider;L(n.indexOf("+")>-1||i.indexOf("+")>-1);let d=a.filter((a=>a.number_endpoints===e&&a.retention_hot===t&&a.use_case===r&&a.provider===c&&a.region===l));d=w(d);let u=a.filter((t=>t.number_endpoints===e&&7===t.retention_hot&&t.use_case===r&&t.provider===c&&t.region===l));u=w(u);const g=v(u,d),h={...d,...g},y=h.monthlyTotal;let j=h.monthlyCostPerEndpoint;N([["num_endpoints",h.numberOfEndpoints],["hot_retention",h.retentionHotDays],["use_case",r],["provider",c.toLowerCase()]]),j=f(j),x(h.monthlyRetentionCost),T(h),b(y),k(j)}),[s,m,p,_]);const te=e=>{c(e?.replace("K","000"))},ne=e=>{d(e)},ie=e=>{u(e)};return n.createElement("section",{className:"pricing-calculator"},n.createElement("div",{className:"page mt-8","aria-hidden":I?"true":"false"},n.createElement("form",{className:"pricing-calculator__container"},n.createElement("div",{className:"pricing-calculator__controls"},M?.length>0&&M.map(((e,t)=>n.createElement(ee.Provider,{value:{setEndpoints:te,setDays:ne,setUseCaseValue:ie,costPerEndpoint:j,restart:F}},n.createElement(ae,{key:`endpoint-render-blocks-${t}`,block:e})))),n.createElement(D,{handleResetEstimates:(()=>{O(!0),t.input_field_types.map((e=>{"number-of-endpoints"===e?.slider?.question?.question_uid?c(parseInt(e?.slider?.question?.interval[0]?.interval_l10n,10)):d(parseInt(e?.slider?.question?.interval[0]?.interval_l10n,10))})),u("Next Generation Antivirus (NGAV)"),g("aws"),B("aws")}).bind(void 0)})),n.createElement($,{data:t,setDetailsVisibility:(()=>{q(!1),z(!0)}).bind(void 0),primaryCostPoint:j,custom:A,totalEstimate:h,dataRetention:y}))),n.createElement("div",{className:"page mt-8","aria-hidden":C?"true":"false"},n.createElement(R.Provider,{value:{replaceDaysOfRetention:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"annual-total-price";if(""===e)return e;let a=m;return"price-per-endpoint"===t&&(a=7),"additional-data-retention"===t&&(a=m-7),e.replace(/\b\d{1,3} days\b/,`${a} days`)},renderEstimatedTotal:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"annual-total-price";if(""===e)return e;let a=Math.round(12*P.monthlyTotal);const n=a-P.defaultAnnualTotal;return"price-per-endpoint"===t?(a=(a-n)/s,f(a)):("additional-data-retention"===t&&(a=n),a=Math.round(a),f(a,0))},onChange:e=>{const t=P.numberOfEndpoints,n=P.retentionHotDays,r=P.useCase.trim(),o={aws:"us-east-1",gcp:"gcp-us-east1",azure:"azure-eastus"}[e],l={aws:"AWS",gcp:"GCP",azure:"Azure"}[e];V(!0),B(e),Q(i[e]);let s=a.filter((e=>e.number_endpoints===t&&e.retention_hot===n&&e.use_case===r&&e.provider===l&&e.region===o));s=w(s);let c=a.filter((e=>e.number_endpoints===t&&7===e.retention_hot&&e.use_case===r&&e.provider===l&&e.region===o));c=w(c);const m=v(c,s),d={...s,...m};T(d),W(d.defaultAnnualTotal),V(!1),N([["provider",e]])},response:P,isLoading:Z,defaultAnnualTotal:G,value:U,setValue:B,validSizes:K}},n.createElement(H,{entry:l()(t,"summary_page"),data:P,allData:a,validRamOptions:i,estimateModal:t?.email_modal,restart:(()=>{let e=0,a=0;t?.input_field_types.map((t=>{"number-of-endpoints"===t?.slider?.question?.question_uid?e=parseInt(t?.slider?.question?.interval[0]?.interval_l10n,10):a=parseInt(t?.slider?.question?.interval[0]?.interval_l10n,10)})),O(!0),c(e),d(a),u("Next Generation Antivirus (NGAV)"),g("aws"),z(!1),q(!0)}).bind(void 0),locale:r,provider:_.toLowerCase()}))))};ne.propTypes={entry:c().object.isRequired,apiContent:c().oneOfType([c().object,c().array]).isRequired,validRamOptions:c().object.isRequired,locale:c().string,currentRequest:c().object};var ie=ne;const re=e=>{const t={ramSuggestedAmount:{},ramSizeOptions:{},storageMultiplier:{},cpuMultiplier:{},instancesCostPerGbHr:{},instancesCostPerMonth:{},dataTransferFee:0,snapshotStorageFee:0,monthlySubtotal:0,monthlyTotal:0};if(e.length<1)return t;const a=e[0];a.instances.forEach((e=>{const a=e.price,n=x(a,e.ram,730);t.ramSuggestedAmount[e.name]=1024*e.ram,t.ramSizeOptions[e.name]=e.discrete_sizes.sizes,t.storageMultiplier[e.name]=e.storage_multiplier,t.cpuMultiplier[e.name]=e.cpu_multiplier,t.instancesCostPerGbHr[e.name]=a,t.instancesCostPerMonth[e.name]=n,t.monthlySubtotal+=n}));const n=.15*t.monthlySubtotal,i=.15*t.monthlySubtotal;return t.dataTransferFee=n,t.snapshotStorageFee=i,t.numberOfSystems=a.number_systems,t.dataGb=a.data_gb,t.searchQuickly=a.search_quickly,t.additionalDays=a.additional_days,t.useCase=a.use_case,t.monthlyTotal=t.monthlySubtotal+n+i,t.costPerEndpoint=t.monthlyTotal/a.data_gb,t.costPerEvent=t.monthlyTotal/(a.data_gb/60/60/24/500*1e9),t},oe=(e,t)=>{const a={annualCostPerEndpoint:0,monthlyCostPerEndpoint:0,defaultAnnualTotal:0,monthlyRetentionCost:0,additionalRetentionCost:0,annualEstimatedTotal:0};if(e.length<1)return a;const n=12*e.monthlyTotal,i=12*t.monthlyTotal,r=Math.round(t.monthlyTotal)-Math.round(e.monthlyTotal),o=Math.round(i)-Math.round(n);return a.defaultAnnualTotal=n,a.monthlyRetentionCost=r,a.additionalRetentionCost=o,a.annualEstimatedTotal=i,a};const le=u()((()=>Promise.all([a.e(31212),a.e(73961)]).then(a.bind(a,73961)).then((e=>e.default))),{ssr:!1}),se=e=>{const t=(0,n.useContext)(ee),{block:a}=e,i=Object.keys(a)[0];if("slider"===i){let e=t.setSystems;return"terms-of-days"===a?.slider?.question?.question_uid&&(e=t.setDays),"additional"===a?.slider?.question?.question_uid&&(e=t.setAdditionalDaysValue),n.createElement(n.Fragment,null,n.createElement(le,{data:a?.slider?.question,setValueFunction:e.bind(void 0),costPerEndpoint:t.costPerEndpoint.toString(),restart:t.restart}))}return"radio_button"===i?n.createElement(n.Fragment,null,n.createElement(K,{data:a?.radio_button?.question,setValueFunction:t.setUseCaseValue.bind(void 0),restart:t.restart})):""},ce=e=>{let{entry:t,apiContent:a,validRamOptions:i,locale:r,currentRequest:o}=e;const[l,s]=(0,n.useState)(X("systems",70)),[c,m]=(0,n.useState)(X("search",7)),[d,p]=(0,n.useState)(X("additional",30)),[u,_]=(0,n.useState)(X("use_case",0)),[g,h]=(0,n.useState)(X("provider","AWS")),[b,y]=(0,n.useState)(0),[x,w]=(0,n.useState)(0),[v,E]=(0,n.useState)(!0),[k,C]=(0,n.useState)(!1),[q,I]=(0,n.useState)({}),z=t?.input_field_types??[],[P,T]=(0,n.useState)(!1),[M,F]=(0,n.useState)(!1),[O,A]=(0,n.useState)(!1),[L,Z]=(0,n.useState)(0),[V,G]=(0,n.useState)(g.toLowerCase()),[W,U]=(0,n.useState)(i[g.toLowerCase()]);t?.input_field_types.map((e=>{if(e?.slider){if("number-of-systems"===e?.slider?.question?.question_uid){const t=new Intl.NumberFormat("en-US"),a=parseInt(l,10);e.slider.question.preset=Y(t.format(a),e.slider.question.interval)}if("terms-of-days"===e?.slider?.question?.question_uid){const t=parseInt(c,10);e.slider.question.preset=Y(t,e.slider.question.interval)}if("additional"===e?.slider?.question?.question_uid){const t=parseInt(d,10);e.slider.question.preset=Y(t,e.slider.question.interval)}}if(e?.radio_button){const t=X("use_case",0);e.radio_button.question.preset=parseInt(t,10)}})),(0,n.useEffect)((()=>{T(!1);const e=parseInt(l,10),t=parseInt(c,10),n=parseInt(d,10),i=l.toString(),r=c.toString(),o={0:"SIEM-Small",1:"SIEM-SOC",2:"SIEM-Enterprise"}[parseInt(u,10)];const s=parseInt(u,10),m=S(g),{region:p}=m,_=m.provider;F(i.indexOf("+")>-1||r.indexOf("+")>-1);let h=a.filter((a=>a.number_systems===e&&a.search_quickly===t&&a.additional_days===n&&a.use_case===o&&a.provider===_&&a.region===p));h=re(h);let b=a.filter((a=>a.number_systems===e&&a.search_quickly===t&&23===a.additional_days&&a.use_case===o&&a.provider===_&&a.region===p));b=re(b);const x=oe(b,h),v={...h,...x},E=v.monthlyTotal;let j=v.monthlyCostPerEndpoint;N([["systems",v.numberOfSystems],["search",v.searchQuickly],["additional",v.additionalDays],["use_case",s],["provider",_.toLowerCase()]]),j=f(j),I(v),y(E),w(j)}),[l,c,d,u,g]);const B=e=>{s(e?.replace(",",""))},K=e=>{m(e)},Q=e=>{p(e)},J=e=>{let a=0;t.input_field_types.map((t=>{t?.radio_button?.question?.radio_button&&(a=t?.radio_button?.question?.radio_button?.findIndex((t=>t.title_l10n.trim()===e)))})),_(a)};return n.createElement("section",{className:"pricing-calculator"},n.createElement("div",{className:"page mt-4","aria-hidden":k?"true":"false"},n.createElement("form",{className:"pricing-calculator__container"},n.createElement("div",{className:"pricing-calculator__controls"},z?.length>0&&z.map(((e,t)=>n.createElement(ee.Provider,{value:{setSystems:B,setDays:K,setAdditionalDaysValue:Q,setUseCaseValue:J,costPerEndpoint:x,restart:P}},n.createElement(se,{key:`render-blocks-${t}`,block:e})))),n.createElement(D,{handleResetEstimates:(()=>{T(!0),t.input_field_types.map((e=>{"number-of-systems"===e?.slider?.question?.question_uid?s(parseInt(e?.slider?.question?.interval[0]?.interval_l10n,10)):"terms-of-days"===e?.slider?.question?.question_uid?m(parseInt(e?.slider?.question?.interval[0]?.interval_l10n,10)):"additional"===e?.slider?.question?.question_uid&&p(parseInt(e?.slider?.question?.interval[0]?.interval_l10n,10))})),_(0),h("aws")}).bind(void 0)})),n.createElement($,{data:t,setDetailsVisibility:(()=>{E(!1),C(!0)}).bind(void 0),primaryCostPoint:f(b,0),custom:M}))),n.createElement("div",{className:"page mt-4","aria-hidden":v?"true":"false"},n.createElement(R.Provider,{value:{replaceDaysOfRetention:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"annual-total-price";if(""===e)return e;const a=30;let n=e;if("additional-data-retention"===t){const t=parseInt(q.additionalDays,10)+parseInt(q.searchQuickly,10)-a;n=e.replace(/\bn days\b/,`${t} days`)}if("annual-total-price"===t){const t=parseInt(q.additionalDays,10)+parseInt(q.searchQuickly,10);n=e.replace(/\b30\+n days\b/,`${t} days`)}return n},renderEstimatedTotal:(e,t)=>{if(""===e)return e;let a=Math.round(12*q.monthlyTotal);const n=a-q.defaultAnnualTotal;return"price-per-gb"===t?(a=q.defaultAnnualTotal/q.dataGb,f(a)):("additional-data-retention"===t&&(a=n),a=Math.round(a),f(a,0))},onChange:e=>{const t=q.numberOfSystems,n=q.searchQuickly,r=q.additionalDays,o=q.useCase.trim(),l={aws:"us-east-1",gcp:"gcp-us-east1",azure:"azure-eastus"}[e],s={aws:"AWS",gcp:"GCP",azure:"Azure"}[e];A(!0),G(e),U(i[e]);let c=a.filter((e=>e.number_systems===t&&e.search_quickly===n&&e.additional_days===r&&e.use_case===o&&e.provider===s&&e.region===l));c=re(c);let m=a.filter((e=>e.number_systems===t&&e.search_quickly===n&&23===e.additional_days&&e.use_case===o&&e.provider===s&&e.region===l));m=re(m);const d=oe(m,c),p={...c,...d};I(p),Z(p.defaultAnnualTotal),A(!1),N([["provider",e]])},response:q,isLoading:O,defaultAnnualTotal:L,value:V,setValue:G,validSizes:W}},n.createElement(H,{entry:j(t,"summary_page"),data:q,allData:a,validRamOptions:i,estimateModal:t?.email_modal,restart:(()=>{let e=70,a=7,n=30;t.input_field_types.map((t=>{"number-of-systems"===t?.slider?.question?.question_uid?e=parseInt(t?.slider?.question?.interval[0]?.interval_l10n,10):"terms-of-days"===t?.slider?.question?.question_uid?a=parseInt(t?.slider?.question?.interval[0]?.interval_l10n,10):"additional"===t?.slider?.question?.question_uid&&(n=parseInt(t?.slider?.question?.interval[0]?.interval_l10n,10))})),T(!0),s(e),m(a),p(n),_(0),h("aws"),G("aws"),C(!1),E(!0)}).bind(void 0),locale:r,provider:g.toLowerCase()}))))};ce.propTypes={entry:c().object.isRequired,apiContent:c().oneOfType([c().object,c().array]).isRequired,validRamOptions:c().object.isRequired,locale:c().string,currentRequest:c().object};var me=ce;const de=e=>{let{entry:t,apiContent:a,validRamOptions:i,locale:r,currentRequest:o}=e;return n.createElement(n.Fragment,null,"/security/siem/pricing"===o.url?n.createElement(me,{entry:t,apiContent:a,validRamOptions:i,locale:r,currentRequest:o}):n.createElement(ie,{entry:t,apiContent:a,validRamOptions:i,locale:r,currentRequest:o}),n.createElement(d(),{id:"234766222"},[".pricing-calculator__container{display:flex;flex-flow:column nowrap;gap:2rem;}",".pricing-calculator__fieldset{padding-bottom:1rem;border-bottom:1px solid var(--color-poppy-tint);}",".pricing-calculator__fieldset:not(:last-of-type){margin-bottom:2rem;}",".pricing-calculator__fieldset .info{top:0;}",".pricing-calculator .info{width:25px;padding-left:0;}",".pricing-calculator__controls{flex:0 0 100%;}",".pricing-calculator__controls label{font-size:1rem;font-weight:700;margin:0;}",".pricing-calculator__controls legend{font-size:1rem;font-weight:700;width:auto;margin:0 0.25rem 0 0;}",".pricing-calculator__legend{display:flex;flex-flow:row nowrap;align-items:center;}",".pricing-calculator__legend .euiToolTipAnchor{display:inline-block;line-height:normal;margin-left:0.25rem;}",".pricing-calculator__group{margin:0 0 1.25rem;}",".pricing-calculator__group-header{display:flex;flex-flow:column nowrap;align-items:center;margin:0.5rem 0;}",".pricing-calculator__group-header label{display:none;font-size:0.875rem;font-weight:500;color:var(--color-lighter-ink);text-transform:uppercase;}",".pricing-calculator__group-header>*{flex:1;}",".pricing-calculator__subheading{font-size:1.25rem;line-height:1.2;padding:0;}",".pricing-calculator__subheading--sm{font-size:1rem;}",".page[aria-hidden=true]{display:none;visibility:hidden;}",".spacer{display:block;flex:0;}","@media screen and (min-width:600px){.pricing-calculator__group-header{flex-flow:row nowrap;margin:1rem 0;}.pricing-calculator__group-header label{display:block;}.pricing-calculator__fieldset{padding-bottom:3rem;}.pricing-calculator__fieldset:not(:last-of-type){margin-bottom:3rem;}}","@media screen and (min-width:600px) and (max-width:768px) and (orientation:landscape){.pricing-calculator__container{flex-flow:row nowrap;}.pricing-calculator__controls{flex:1;}}","@media screen and (min-width:768px){.pricing-calculator__container{flex-flow:row nowrap;}.pricing-calculator__controls{flex:0 0 60%;}.pricing-calculator__group-header{margin:1rem 0 2rem;}.pricing-calculator__group-header label{text-align:center;}.spacer{flex:0 0 25%;}}","@media screen and (min-width:992px){.pricing-calculator__controls{flex:2;}}"]))};de.propTypes={entry:c().object.isRequired,apiContent:c().oneOfType([c().object,c().array]).isRequired,validRamOptions:c().object.isRequired,locale:c().string,currentRequest:c().object};var pe=de,ue=a(37335),_e=a(80792),ge=a(97403);const he=e=>{let{entry:t,data:a,validRamOptions:i,locale:o,currentRequest:s,url:c}=e;return n.createElement("div",{className:"pricing-calculator-page"},"/app-search/service/pricing"===t.url?n.createElement(r(),null,n.createElement("meta",{name:"robots",content:"noindex",key:"robots"}),n.createElement("link",{rel:"preconnect",href:"https://calculator.app.elstc.co",crossOrigin:!0}),n.createElement("link",{rel:"preconnect",href:"https://info.elastic.co",crossOrigin:!0})):"",n.createElement("section",{className:"pricing-bg"},n.createElement("div",{className:"pricing-wrapper"},t.tab&&t.tab.length>0?n.createElement(ue.Z,{tab:t.tab}):"",t.hero&&t.hero[0]?n.createElement(n.Fragment,null,n.createElement(_e.Z,{data:l()(t,"hero[0]"),locale:c?.query?.locale,entryLocale:t?.locale}),n.createElement(ge.Z,{size:"layout-07"})):"")),n.createElement("div",{className:"container"},n.createElement(pe,{entry:t,apiContent:a,validRamOptions:i,locale:o,currentRequest:s})),n.createElement(ge.Z,{size:"layout-07"}))};he.propTypes={entry:c().object};var be=!0,fe=he},6947:function(e,t,a){"use strict";var n=a(68472),i=a.n(n),r=a(67294),o=a(30653),l=a(45697),s=a.n(l),c=a(93967),m=a.n(c);const d=e=>r.createElement("div",{className:"jsx-4281348393 "+(m()(e.className,"marketo-success-message p-6")||"")},r.createElement("div",{className:"jsx-4281348393 success-message"},(0,o.ZP)(e.message)),r.createElement(i(),{id:"4281348393"},[".marketo-success-message.jsx-4281348393{min-height:200px;}",".marketo-success-message.jsx-4281348393 .success-message.jsx-4281348393{background:url(/static-res/images/svg/icon-checkmark-in-circle.svg) 50% 0 no-repeat;background-size:64px;padding-top:80px !important;text-align:center;border:none !important;color:var(--color-ink) !important;}"]));d.propTypes={message:s().string},t.Z=d},17430:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pricing_calculator",function(){return a(24123)}])}},function(e){e.O(0,[94803,94451,42276,12539,63942,83815,16271,34827,49774,92888,40179],(function(){return t=17430,e(e.s=t);var t}));var t=e.O();_N_E=t}]);