"use strict";(self.webpackChunkmattermost_webapp=self.webpackChunkmattermost_webapp||[]).push([[729],{60729:(e,o,n)=>{n.r(o),n.d(o,{default:()=>p});var t=n(23453),s=n(5908),a=n(79751),i=n(62688),l=n.n(i),d=(n(29206),n(97023)),c=n.n(d);const r=e=>{let{modals:o,actions:n}=e;if(!o)return null;const{modalState:t}=o,s=[];for(const e in t)if(Object.hasOwn(t,e)){const o=t[e];if(o.open){const t=c().createElement(o.dialogType,Object.assign({},o.dialogProps,{onExited:()=>{var t,s;n.closeModal(e),null===(t=o.dialogProps)||void 0===t||null===(s=t.onExited)||void 0===s||s.call(t)},onHide:n.closeModal.bind(void 0,e),key:"".concat(e,"_modal")}));s.push(t)}}return c().createElement(c().Fragment,null,s)};r.propTypes={modals:l().shape({modalState:l().objectOf(l().shape({open:l().bool.isRequired,dialogType:l().elementType.isRequired,dialogProps:l().objectOf(l().any)})).isRequired}).isRequired,actions:l().shape({closeModal:l().func.isRequired}).isRequired};const u=r,p=(0,t.connect)((function(e){return{modals:e.views.modals}}),(function(e){return{actions:(0,s.bindActionCreators)({closeModal:a.O},e)}}))(u)}}]);
//# sourceMappingURL=729.ee0b8c9fbb0e81a28ca0.js.map