/*! For license information please see dll.204.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[204],{3394:function(e,t,n){"use strict";n.r(t);var a=n(967),c=n(3395);a.default.addResources("de","voice-control",c.DE),a.default.addResources("en","voice-control",c.EN),a.default.addResources("es","voice-control",c.ES)},3395: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"}}')},952:function(e,t,n){"use strict";n.r(t);var a=n(14),c=n.n(a),r=n(12),i=n.n(r),o=n(10),s=n.n(o),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),y=n(1),g=n.n(y),k=n(2297),R=n(75),S=n(212),w=n(39),C=n.n(w),D=n(89),_=n(36),x=n(105);n(3394);function I(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 N=function(e,t){if(e){var n=e.map((function(e,t){return E.a.createElement("tr",{key:t},E.a.createElement("td",null,C()(e.trigger)?e.trigger.join(", "):e.trigger),E.a.createElement("td",null,e.description))}));return E.a.createElement(S.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},z=function(e){u()(n,e);var t=I(n);function n(e,a){var r;return c()(this,n),r=t.call(this,e),h()(s()(r),"setInactive",(function(){r.setState({active:!1})})),h()(s()(r),"setActive",(function(){r.setState({active:!0})})),h()(s()(r),"handleClick",(function(){r.state.active?r.setInactive():r.context.speechInterface.setActive(r.props.id)})),r.state={active:!1,show:!!a&&a.voiceRecordingStatus},r}return i()(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===x.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(D.default,{placement:"left",overlay:N(this.props.commands,this.props.t)},E.a.createElement(R.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);z.propTypes={id:g.a.string,commands:g.a.array.isRequired,hide:g.a.bool,reference:g.a.object.isRequired},z.defaultProps={id:null,hide:!1},z.contextType=_.default,t.default=Object(k.withTranslation)("voice-control")(z)}}]);