meraproject/content/merakomis/js/react/1773742981845/192.app.js
keboss-m 5c21d25d45 Initial commit: Merakomis portal, Docker stack and user-reader API.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-24 11:04:05 +03:00

1 line
20 KiB
JavaScript

"use strict";(self.webpackChunkmodule_bz=self.webpackChunkmodule_bz||[]).push([[192],{8835:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var l=n(1504),u=n(7652),c=n(2400),i=n(7888),s=function(e){function t(t){var n=e.call(this,t)||this;return n.checkAuth=function(){i.API.getAppStructure((function(e){n.setState(a(a({},e),{loading:!1}),(function(){c.G.resetApp(),n.props.onAfterCheckAuth()}))}))},n.exit=function(){window.location.reload()},n.setClass=function(e){n.setState({app_class:e})},n.setBackground=function(e){n.setState({app_background:e})},n.restoreClass=function(){n.setState({app_class:n.state.default_app_class})},n.restoreBackground=function(){n.setState({app_background:n.state.default_app_background})},n.hideMenu=function(){n.setState({menu_hide:!0})},n.showMenu=function(){n.setState({menu_hide:!1})},n.showTop=function(){n.setState({top_show:!0})},n.hideTop=function(){n.setState({top_show:!1})},n.showCrumbs=function(){n.setState({crumbs_show:!0})},n.hideCrumbs=function(){n.setState({crumbs_show:!1})},n.toggleMenu=function(){n.setState({menu_opened:!n.state.menu_opened})},n.state={loading:!0,fullscreen:t.fullscreen,header:t.header,menu:t.menu,account:t.account,auth:!1,menu_hide:!0,top_show:!0,crumbs_show:!0,menu_opened:t.menu_opened,app_class:t.app_class,app_background:t.app_background,default_app_class:t.default_app_class,default_app_background:t.default_app_background,url_path:t.url_path,options:t.options,routes:t.routes,api_url_theme:t.api_url_theme},c.G.setApp(n),n}return o(t,e),t}(l.Component);t.default=s,s.defaultProps=u.DefaultProps},7652:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultProps=void 0,t.DefaultProps={fullscreen:!0,header:null,menu:null,url_path:"/",account:null,menu_opened:!0,api_url_theme:"",domain_url:"",routes:[],app_class:"",app_background:"",options:{},getTopMenu:function(){return null},getTopAccount:function(){return null},getAvatarMenu:function(){return null},getMenuFooter:function(){return null},getBlockAsideFromCrumbs:function(){return null},onAfterCheckAuth:function(){return null},getElement:function(e){return null},getUserContent:function(){return null},getTopAvatar:function(){return null}}},7192:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var l=n(1504),u=n(8835),c=n(4768),i=n(392),s=n(500),p=l.lazy((function(){return Promise.resolve().then((function(){return n(3840)}))})),f=l.lazy((function(){return Promise.resolve().then((function(){return n(5997)}))})),m=l.lazy((function(){return Promise.resolve().then((function(){return n(6816)}))})),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.componentDidMount=function(){this.checkAuth();var e=document.getElementById("app");e&&e.addEventListener("touchmove",(function(e){e.stopPropagation(),e.preventDefault()}))},t.prototype.render=function(){var e=this,t=this.state,n=t.fullscreen,r=t.menu_opened,o=t.app_background,u=t.app_class,d=t.loading,_=t.menu_hide,h=t.top_show,y=t.crumbs_show,v={};return o&&(v.backgroundImage="url("+o+")"),d?null:l.createElement(l.Fragment,null,l.createElement(c.BrowserRouter,null,l.createElement("div",{ref:function(t){return e.app_background=t},id:"app_background",className:(n?"fullscreen":"no_fullscreen")+(r?"":" minimize_menu")+(_?" hide_menu":" ")+(h?" ":" hide_top ")+(y?" ":" hide_crumbs ")+" "+u,style:v},l.createElement(i.Adaptive,{id:"app_wrap",ref:function(t){return e.app_wrap=t}},null==this.state.header?null:l.createElement(l.Suspense,{fallback:null},l.createElement(p,a({},this.state.header))),null==this.state.menu?null:l.createElement(l.Suspense,{fallback:null},l.createElement(f,a({},this.state.menu))),l.createElement("div",{id:"content_wrap"},null==this.state.account?null:l.createElement(l.Suspense,{fallback:null},l.createElement(m,null))),l.createElement(s.Sidebar,{ref:function(t){return e.sidebar=t},close_button:l.createElement("div",null,"✕"),minimize_button:l.createElement("div",null,"➔"),bar_close_button:l.createElement("div",null,"✕")}))),l.createElement(s.Modals,{ref:function(t){return e.modals=t}}),l.createElement(s.Notifies,{ref:function(t){return e.notifies=t}})))},t}(u.default);t.default=d},1156:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(1504),l=n(1416),u=n(632),c=function(e){function t(t){var n=e.call(this,t)||this;return n.store=function(){if(null!=u.AppStore.getState().account){u.AppStore.getState().account.avatar;var e={};Object.keys(e).length>0&&n.setState(e)}},n.state={avatar:""},n.unsubscribe=u.AppStore.subscribe(n.store),n.store(),n}return o(t,e),t.prototype.componentWillUnmount=function(){this.unsubscribe()},t}(a.Component);t.default=c,c.defaultProps=l.DefaultProps},1416:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultProps=void 0,t.DefaultProps={}},6816:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(1504),l=n(1156),u=n(4768),c=n(2400),i=n(500),s=n(408),p=n(7820),f=n(8736),m=n(2260),d=n(632),_=n(3284);function h(e){return a.createElement(a.Suspense,{fallback:null},c.G.app.props.getElement(e))}function y(e){var t=e.routes,n=(0,_.useLocation)();return a.createElement(u.Routes,{location:n},a.createElement(u.Route,{path:c.G.app.state.url_path+"elements",element:a.createElement(p.default,null)}),t.map((function(e){return a.createElement(u.Route,{path:c.G.app.state.url_path+e.path,element:a.createElement(m.default,{route:e},h(e)),key:e.path},Array.isArray(e.routes)?e.routes.map((function(t){return a.createElement(u.Route,{path:t.path,element:a.createElement(m.default,{route:e,key:t.path},h(t)),key:t.path})})):null)})),a.createElement(u.Route,{path:"*",element:c.G.app.props.getUserContent()}))}var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getElement=function(e){return a.createElement(a.Suspense,{fallback:null},c.G.app.props.getElement(e))},t.prototype.render=function(){var e=this,t=c.G.app.state.routes,n=d.AppStore.getState().account,r=null,o={};n&&n.data&&n.data.avatar&&n.data.avatar.id&&(r=n.data.avatar.thumb.square[100],o.backgroundImage="url("+r+")");var l=null;return c.G.isAuth()&&(l=c.G.app.props.getTopAvatar()),a.createElement("div",{ref:function(t){return e.wrap=t},id:"content"},a.createElement("div",{id:"top"},a.createElement("div",{id:"top_content"},a.createElement("div",{id:"top_left"},a.createElement("div",{id:"toggle_menu",onClick:c.G.app.toggleMenu},a.createElement("i",{className:"icon-menu"})),c.G.app.props.getTopMenu()),a.createElement("div",{id:"account"},c.G.isAuth()?a.createElement(a.Fragment,null,c.G.app.props.getTopAccount(),l||a.createElement("div",{className:"account"},a.createElement(i.Drop,{ref:function(t){return e.drop_avatar=t},horizontal:s.EHorizontalPosition.right,title:a.createElement("div",{className:"ava pointer",style:o}),content:a.createElement("div",{className:"ava_drop_content",onClick:function(){e.drop_avatar.close()}},c.G.app.props.getAvatarMenu())}))):a.createElement(a.Fragment,null,c.G.app.props.getTopAccount())))),a.createElement("div",{id:"body"},a.createElement(f.default,null),a.createElement(y,{routes:t})))},t}(l.default);t.default=v},7820:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultProps=void 0;var a=n(1504),l=n(500),u=n(392);t.DefaultProps={};var c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n}return o(t,e),t.prototype.render=function(){var e=this,t=["","black","blue","green","info","yellow","red","white","link"],n=["mini","smaller","small","","big"],r=["","round"];return a.createElement(l.Scrollbar,{className:"scroll_content "},a.createElement("div",{ref:function(t){return e.wrap=t}},a.createElement(u.Card,null,a.createElement(u.Title,{title:"Кнопки"}),a.createElement(u.Row,null,a.createElement(u.Col,null,a.createElement(u.Sheet,null,a.createElement(u.Body,null,a.createElement(u.Content,null,["","alt"].map((function(e){return n.map((function(n){return r.map((function(r){return a.createElement("div",{className:"buttons "+n},t.map((function(t){var o=e+" "+n+" "+t+" "+r;return a.createElement(a.Fragment,null,a.createElement("button",{className:"btn "+o},"btn ",o),a.createElement("a",{className:"btn "+o},"a btn ",o))})))}))}))}))))))))))},t}(a.Component);t.default=c,c.defaultProps=t.DefaultProps},7296:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(1504),l=n(1660),u=function(e){function t(t){var n=e.call(this,t)||this;return n.state={logotype:t.logotype},n}return o(t,e),t}(a.Component);t.default=u,u.defaultProps=l.DefaultProps},1660:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultProps=void 0,t.DefaultProps={logotype:null}},3840:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(1504),l=n(7296),u=n(4768),c=n(2400),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return a.createElement("div",{ref:function(t){return e.wrap=t},id:"header"},null==this.state.logotype?null:a.createElement(u.Link,{to:c.G.makeAppLink(),id:"logotype"},a.createElement("img",{src:this.state.logotype,alt:"logotype"})))},t}(l.default);t.default=i},9296:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultProps=void 0,t.DefaultProps={avatar:null,logotype:null,avatar_link:null,menu:[]}},1420:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(1504),l=n(9296),u=function(e){function t(t){var n=e.call(this,t)||this;return n.state={avatar:t.avatar,avatar_link:t.avatar_link,menu:t.menu,pathname:"",logotype:t.logotype},n}return o(t,e),t}(a.Component);t.default=u,u.defaultProps=l.DefaultProps},5997:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(1504),l=n(1420),u=n(500),c=n(2400),i=n(4768),s=n(4768),p=n(9616),f=function(e){var t=(0,s.useLocation)();return a.useEffect((function(){e.action(t)}),[t]),null},m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.useLocationChange=function(e){},t.getAvatar=function(){var e=t.state,n=e.avatar,r=e.avatar_link;if(null==n)return null;var o=a.createElement("div",{className:"ava",id:"avatar",style:{backgroundImage:"url("+n+")"}});return null==r?o:a.createElement(i.Link,{to:c.G.makeAppLink(r)},o)},t.getMinimizeMenu=function(){return a.createElement("div",null,"тут будет меню")},t.toggleMenu=function(e){e.currentTarget.closest(".menu").classList.toggle("open"),t.scrollbar.update()},t.toggleSubmenu=function(e,n){e.opened=!e.opened,n.currentTarget.parentElement.classList.toggle("open"),t.scrollbar.update()},t.change=function(e){e.pathname!=t.state.pathname&&t.setState({pathname:e.pathname})},t.clickElement=function(){switch(p.EAdaptiveWidth[c.G.app.app_wrap.state.width.key]){case p.EAdaptiveWidth.mobile:case p.EAdaptiveWidth.smartphone:c.G.app.toggleMenu()}},t.renderMenu=function(e,n){if(null==e)return null;t.state.pathname;var r=!0===e.toggle,o=!0===e.opened,l=Date.now()+"_"+n;return a.createElement("div",{className:"menu"+(r?" toggle":"")+(o?" open":""),key:l},a.createElement(f,{action:t.change}),null!=e.title?a.createElement("div",{className:"menu_title",onClick:t.toggleMenu},a.createElement("div",{className:"txt"},e.title),r?a.createElement("i",{className:"icon-arrow-down"}):null):null,a.createElement("div",{className:"menu_content"},Array.isArray(e.submenu)?e.submenu.map((function(e,n){if(null==e)return null;var r=Date.now()+"_"+n,o=c.G.makeAppLink(e.link),l=!!e.link&&"https:"==e.link.substr(0,6);l&&(o=e.link);var u=!0===e.toggle,i=!0===e.opened,p=a.createElement(a.Fragment,null,null!=e.icon&&""!=e.icon?a.createElement("div",{className:"icon_wrap"},a.createElement("i",{className:e.icon})):null,null!=e.icon_url&&""!=e.icon_url?a.createElement("div",{className:"icon_wrap"},a.createElement("div",{className:"img square round",style:{backgroundImage:"url("+e.icon_url+")"}})):null,a.createElement("div",{className:"name"},e.title),e.count?a.createElement("div",{className:"count"},e.count):null,u?a.createElement("i",{className:"icon-arrow-down"}):null),f=null;return u&&Array.isArray(e.submenu)&&(f=a.createElement("div",{className:"menu_content"},e.submenu.map((function(e,n){var o=c.G.makeAppLink(e.link);return a.createElement(s.NavLink,{end:!1,className:function(e){return"el"+(e.isActive?" selected":"")},to:o,onClick:t.clickElement,key:r+"_"+o+"_"+n},a.createElement("div",{className:"el_title"},a.createElement("div",{className:"name"},e.title),e.count?a.createElement("div",{className:"count"},e.count):null))})))),u?a.createElement("div",{className:"el"+(u?" toggle":"")+(i?" open":""),key:r},a.createElement("div",{className:"el_title",onClick:t.toggleSubmenu.bind(t,e)},p),f):l?a.createElement("a",{href:o,className:"el",target:"_blank"},a.createElement("div",{className:"el_title"},p)):a.createElement(s.NavLink,{className:function(e){return"el"+(e.isActive?" selected":"")},end:!1,key:r,to:o,onClick:t.clickElement},a.createElement("div",{className:"el_title"},p))})):null))},t}return o(t,e),t.prototype.shouldComponentUpdate=function(e,t,n){return JSON.stringify(this.props.menu)!=JSON.stringify(e.menu)&&this.setState({menu:e.menu}),!0},t.prototype.render=function(){var e=this,t=this.state,n=t.menu,r=t.logotype;return a.createElement("div",{ref:function(t){return e.wrap=t},id:"menu"},a.createElement("div",{id:"menu_content_wrap"},a.createElement(u.Scrollbar,{ref:function(t){e.scrollbar=t}},a.createElement("div",{id:"menu_contents"},r?a.createElement(i.Link,{to:c.G.makeAppLink(),className:"logotype",onClick:this.clickElement},a.createElement("div",{className:"logotype_image"},a.createElement("img",{src:r.url,alt:"logotype"})),a.createElement("div",{className:"logotype_content"},a.createElement("div",{className:"logotype_title"},r.title,r.version?a.createElement("sup",null,r.version):null),a.createElement("div",{className:"logotype_subtitle"},r.subtitle))):null,n.map(this.renderMenu),c.G.app.props.getMenuFooter()))),a.createElement("div",{id:"minimize_menu",onClick:c.G.app.toggleMenu},a.createElement("i",{className:"icon-arrow-left"}),a.createElement("i",{className:"icon-menu"})))},t}(l.default);t.default=m},2784:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultProps=void 0,t.DefaultProps={route:null}},9192:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(1504),l=n(2784),u=n(2400),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n}return o(t,e),t.prototype.componentDidMount=function(){var e=this.props.route;null==e.show_top&&(e.show_top=!0),null==e.show_crumbs&&(e.show_crumbs=!0),1==e.hide_menu?u.G.app.hideMenu():u.G.app.showMenu(),1==e.show_top?u.G.app.showTop():u.G.app.hideTop(),1==e.show_crumbs?u.G.app.showCrumbs():u.G.app.hideCrumbs(),e.crumbs?u.G.setCrumbs(e.crumbs):u.G.setCrumbs()},t.prototype.componentWillUnmount=function(){},t}(a.Component);t.default=c,c.defaultProps=l.DefaultProps},2260:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){return this.props.children},t}(n(9192).default);t.default=a}}]);