(self.webpackChunkmattermost_webapp=self.webpackChunkmattermost_webapp||[]).push([[694],{7344:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=new(r(85814).WebSocketClient)},83040:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(62688),o=r.n(n),i=(r(17046),r(4290),r(97023)),a=r.n(i),l=r(14778),s=r(44785);function u(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const c=r.n(s)().div.withConfig({displayName:"WrapperDiv"})(["align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;width:100%;#root > &{grid-area:announcement;display:flex;word-break:normal;flex-direction:row;gap:10px;height:40px;}"]);class p extends a().PureComponent{constructor(){super(...arguments),u(this,"state",{hasError:!1}),u(this,"clearErrorState",(e=>{e.preventDefault(),e.stopPropagation(),this.setState({hasError:!1})}))}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?a().createElement(c,null,a().createElement(l.FormattedMessage,{id:"pluggable.errorOccurred",defaultMessage:"An error occurred in the {pluginId} plugin.",values:{pluginId:this.props.pluginId}}),a().createElement("br",null),a().createElement("a",{href:"#",onClick:this.clearErrorState},a().createElement(l.FormattedMessage,{id:"pluggable.errorRefresh",defaultMessage:"Refresh?",values:{pluginId:this.props.pluginId}}))):this.props.children}}u(p,"propTypes",{children:o().node.isRequired,pluginId:o().string})},694:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(62688),o=r.n(n),i=(r(17046),r(29206),r(57406),r(55448),r(97023)),a=r.n(i),l=r(23453),s=r(77440),u=r(7344),c=r(83040);const p=["pluggableId","pluggableName","subComponentName"];function m(e){const{pluggableId:t,pluggableName:r,subComponentName:n=""}=e,o=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,p),i=(0,l.useSelector)(s.O4),m=(0,l.useSelector)((e=>{const t=e.plugins.components;if(Object.hasOwn(t,r))return t[r]}));if(!r||!m)return null;let d,g=[...m];return t&&(g=g.filter((e=>e.id===t))),d="Product"===r?g.map((e=>{if(!n||!e[n])return null;const t=e[n];return a().createElement(c.A,{key:r+e.id,pluginId:e.pluginId},a().createElement(t,Object.assign({},o,{theme:i})))})):g.map((e=>{if(!("component"in e)||!e.component)return null;const t=e.component;return a().createElement(c.A,{key:r+e.id,pluginId:e.pluginId},a().createElement(t,Object.assign({},o,{theme:i,webSocketClient:u.A})))})),a().createElement(a().Fragment,null,d)}m.propTypes={pluggableId:o().string};const d=m},40362:(e,t,r)=>{"use strict";var n=r(56441);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},62688:(e,t,r)=>{e.exports=r(40362)()},56441:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);
//# sourceMappingURL=694.be11ad91099ab8b1213c.js.map