(window.webpackJsonp=window.webpackJsonp||[]).push([[40],{1684:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return m}));var a=t(1),s=t.n(a),i=t(0),r=t.n(i),l=t(34),o=t(39),c=t(60),d=t(10),u=t(2),b=t(5),h=t(1356),p=t(13),g=t(15);class m extends r.a.Component{constructor(e){super(e),s()(this,"onDisable",(async()=>{this.setState({disabling:!0}),await b.b.setValue("enableEventIndexing",null,g.a.DEVICE,!1),await h.a.deleteEventIndex(),this.props.onFinished(!0),d.a.fire(p.a.ViewUserSettings)})),this.state={disabling:!1}}render(){return r.a.createElement(l.a,{onFinished:this.props.onFinished,title:Object(u.b)("common|are_you_sure")},Object(u.b)("settings|security|message_search_disable_warning"),this.state.disabling?r.a.createElement(o.a,null):r.a.createElement("div",null),r.a.createElement(c.a,{primaryButton:Object(u.b)("action|disable"),onPrimaryButtonClick:this.onDisable,primaryButtonClass:"danger",cancelButtonClass:"warning",onCancel:this.props.onFinished,disabled:this.state.disabling}))}}}}]);
//# sourceMappingURL=40.js.map