/*! 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.uptime_bundle_jsonpfunction=window.uptime_bundle_jsonpfunction||[]).push([[4],{121:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var a=r(23),n=r(52),i=r(65);const o=({query:e,filters:t})=>{const r=void 0===t||"string"==typeof t?"":JSON.stringify(Array.from(Object.entries(t))),[o,s]=Object(n.c)(e,r,void 0,!0),{data:l,loading:c}=Object(a.useFetcher)((()=>Object(i.i)({dateRangeStart:"now-24h",dateRangeEnd:"now",filters:s?void 0:o})),[o,e]);return{count:l||{total:0,up:0,down:0},loading:c}}},234:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return f}));var a=r(1),n=r.n(a),i=r(50),o=r(21),s=r(99),l=r(19),c=r(121),u=r(51),d=r(37),h=r(70);const E=({ageThreshold:e,expirationThreshold:t,setAgeThreshold:r,setExpirationThreshold:a})=>n.a.createElement(n.a.Fragment,null,n.a.createElement(l.EuiSpacer,{size:"m"}),n.a.createElement(l.EuiFlexGroup,{direction:"column",gutterSize:"none"},n.a.createElement(l.EuiFlexItem,null,n.a.createElement(l.EuiExpression,{"aria-label":h.I.criteriaAriaLabel,color:"success",description:h.I.criteriaDescription,value:h.I.criteriaValue})),n.a.createElement(l.EuiFlexItem,{"data-test-subj":"tlsExpirationThreshold"},n.a.createElement(d.ValueExpression,{value:t,onChangeSelectedValue:e=>{a(e)},description:h.I.expirationDescription,errors:[]})),n.a.createElement(l.EuiFlexItem,{"data-test-subj":"tlsAgeExpirationThreshold"},n.a.createElement(d.ValueExpression,{value:e,onChangeSelectedValue:e=>{r(e)},description:h.I.ageDescription,errors:[]}))),n.a.createElement(l.EuiSpacer,{size:"l"}));var m=r(53),p=r(67),g=r(152),v=r(100);const b=({id:e,stackVersion:t,ruleParams:r,setRuleParams:o})=>{var s,d,h,b,x;const T=Object(i.useDispatch)(),{settings:f}=Object(i.useSelector)(m.z),{count:j,loading:O}=Object(c.a)({query:null!==(s=r.search)&&void 0!==s?s:""});Object(a.useEffect)((()=>{e||!t||r.stackVersion||o("stackVersion",t)}),[r,e,t,o]),Object(a.useEffect)((()=>{void 0===f&&T(Object(p.a)())}),[T,f]);const V=Object(a.useCallback)((e=>{o("search",""===e?void 0:e)}),[o]);return n.a.createElement(n.a.Fragment,null,n.a.createElement(v.a,{count:j.total,loading:O}),n.a.createElement(l.EuiSpacer,{size:"s"}),n.a.createElement(g.a,{query:r.search||"",onChange:V}),n.a.createElement(E,{ageThreshold:null!==(d=null!==(h=r.certAgeThreshold)&&void 0!==h?h:null==f?void 0:f.certAgeThreshold)&&void 0!==d?d:u.i.certAgeThreshold,expirationThreshold:null!==(b=null!==(x=r.certExpirationThreshold)&&void 0!==x?x:null==f?void 0:f.certExpirationThreshold)&&void 0!==b?b:u.i.certExpirationThreshold,setAgeThreshold:e=>o("certAgeThreshold",Number(e)),setExpirationThreshold:e=>o("certExpirationThreshold",Number(e))}))};var x=r(66),T=r(64);function f({id:e,stackVersion:t,core:r,plugins:a,ruleParams:l,setRuleParams:c}){return x.a.core=r,n.a.createElement(i.Provider,{store:s.b},n.a.createElement(o.KibanaContextProvider,{services:{...r,...a}},n.a.createElement(T.a,{dataViews:a.dataViews},n.a.createElement(b,{id:e,stackVersion:t,ruleParams:l,setRuleParams:c}))))}}}]);