/*! For license information please see dll.188.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[188],{3562:function(e,t,n){"use strict";n.r(t);var a=n(986),c=n(3563);a.default.addResources("de","voice-control",c.DE),a.default.addResources("en","voice-control",c.EN),a.default.addResources("es","voice-control",c.ES)},3563:function(e){e.exports=JSON.parse('{"DE":{"available-commands":"Verfügbare Sprachbefehle:","click-to-set-active":"Klicken, um eine Komponente als aktiv zu setzen","commands":"Befehl(e)","description":"Beschreibung"},"EN":{"available-commands":"Available voice commands:","click-to-set-active":"Click to set component as active","commands":"Command(s)","description":"Description"},"ES":{"available-commands":"Comandos de voz disponibles:","click-to-set-active":"Haga clic para establecer el componente como activo","commands":"Comando(s)","description":"Descripción"}}')},963:function(e,t,n){"use strict";n.r(t);var a=n(14),c=n.n(a),o=n(13),r=n.n(o),i=n(11),s=n.n(i),l=n(15),u=n.n(l),d=n(16),m=n.n(d),p=n(8),f=n.n(p),v=n(7),h=n.n(v),b=n(0),E=n.n(b),g=n(1),y=n.n(g),k=n(986),R=n(3611),S=n(104),w=n(214),C=n(38),D=n.n(C),_=n(92),x=n(34),I=n(108);n(3562);function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=f()(e);if(t){var c=f()(this).constructor;n=Reflect.construct(a,arguments,c)}else n=a.apply(this,arguments);return m()(this,n)}}var z=function(e,t){if(e){console.log(k.default.language);var n=e.map((function(e,t){return E.a.createElement("tr",{key:t},E.a.createElement("td",null,D()(e.trigger)?e.trigger.join(", "):e.trigger),E.a.createElement("td",null,e.description))}));return E.a.createElement(w.default,{style:{fontSize:10},id:"voice_control_tooltip"},E.a.createElement("p",null,E.a.createElement("b",null,t("available-commands"))),E.a.createElement("table",{className:"table table-bordered table-condensed"},E.a.createElement("thead",null,E.a.createElement("tr",null,E.a.createElement("th",null,t("commands")),E.a.createElement("th",null,t("description")))),E.a.createElement("tbody",null,n)),E.a.createElement("p",null,t("click-to-set-active")))}return null},T=function(e){u()(n,e);var t=N(n);function n(e,a){var o;return c()(this,n),o=t.call(this,e),h()(s()(o),"setInactive",(function(){o.setState({active:!1})})),h()(s()(o),"setActive",(function(){o.setState({active:!0})})),h()(s()(o),"handleClick",(function(){o.state.active?o.setInactive():o.context.speechInterface.setActive(o.props.id)})),o.state={active:!1,show:!!a&&a.voiceRecordingStatus},o}return r()(n,[{key:"componentDidMount",value:function(){var e=this,t=this.context;t&&(t.speechInterface.register({name:this.props.id,reference:this.props.reference,commands:this.props.commands,control:this}),this.unsubscribe=t.subscribe((function(t,n){t===I.VOICE_RECORDING_STATUS&&e.setState({show:n})})))}},{key:"render",value:function(){if(!this.props.id||this.props.hide||!this.state.show)return null;var e=this.state.active?"success":"default";return E.a.createElement(_.default,{placement:"left",overlay:z(this.props.commands,this.props.t)},E.a.createElement(S.default,{style:{boxShadow:"none",float:"right"},variant:e,onClick:this.handleClick,size:"sm"},E.a.createElement("div",{className:"fa fa-phone"}),E.a.createElement("span",{style:{marginLeft:4}},this.props.id)))}}]),n}(b.Component);T.propTypes={id:y.a.string,commands:y.a.array.isRequired,hide:y.a.bool,reference:y.a.object.isRequired},T.defaultProps={id:null,hide:!1},T.contextType=x.default,t.default=Object(R.withTranslation)("voice-control")(T)}}]);