{"version":3,"sources":["common/pages/display-error/DisplayErrorViewStore.js","themes/default/common/pages/DisplayErrorTemplate.jsx","themes/default/common/pages/NotFoundTemplate.jsx","themes/default/common/pages/UnauthorizedTemplate.jsx","common/pages/display-error/DisplayError.jsx","common/pages/not-found/NotFoundViewStore.js","common/pages/not-found/NotFound.jsx","common/pages/unauthorized/UnauthorizedViewStore.js","common/pages/unauthorized/Unauthorized.jsx","masterAppConfig.js"],"names":["DisplayErrorViewStore","_class","MrbBaseViewStore","this","rootStore","errorStore","error","constructor","super","_defineProperty","routerStore","goToDefaultRoute","makeObservable","_applyDecoratedDescriptor","prototype","computed","Object","getOwnPropertyDescriptor","defaultTemplate","_ref","displayErrorViewStore","t","onClickHome","_jsx","React","Fragment","children","_jsxs","className","src","logo","alt","message","description","onClick","notFoundViewStore","type","unauthorizedViewStore","DisplayError","setCurrentView","componentProps","_dec","Component","render","DisplayErrorTemplate","props","NotFoundViewStore","NotFound","NotFoundTemplate","UnauthorizedViewStore","Unauthorized","UnauthorizedTemplate","moduleProviderFactory","module","register","name","routes","pattern","component","MasterLayout","isPublic","beforeEnter","_1","_2","Promise","reject","initialState","onExit","setError"],"mappings":"iOAkBeA,OAfYC,EAA3B,cAAoCC,IAChC,YACI,OAAOC,KAAKC,UAAUC,WAAWC,MAGrCC,YAAYH,GACRI,MAAMJ,GAAWK,YAAA,oBAIP,KACVN,KAAKC,UAAUM,YAAYC,sBAJ3BC,yBAAeT,QAMtBU,WAAA,CAAAZ,EAAAa,UAAA,SAZIC,YAAQC,OAAAC,yBAAAhB,EAAAa,UAAA,SAAAb,EAAAa,WAAAb,G,wCC0CEiB,mBA1Cf,SAA6BC,GAAgC,IAA/B,sBAAEC,EAAqB,EAAEC,GAAGF,EACtD,MAAM,MAAEb,EAAK,YAAEgB,GAAgBF,EAC/B,OACIG,cAACC,IAAMC,SAAQ,CAAAC,SACXC,eAAA,OAAKC,UAAU,cAAaF,SAAA,CACxBH,cAAA,OACIM,IAAKC,IACLF,UAA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K,EACJL,EAAW+D,SAAS,e","file":"static/js/coreModules.d9e58e9c.chunk.js","sourcesContent":["import { computed, makeObservable } from \"mobx\";\r\nimport { MrbBaseViewStore } from \"mrb/core\";\r\n\r\nclass DisplayErrorViewStore extends MrbBaseViewStore {\r\n @computed get error() {\r\n return this.rootStore.errorStore.error;\r\n }\r\n\r\n constructor(rootStore) {\r\n super(rootStore);\r\n makeObservable(this);\r\n }\r\n\r\n onClickHome = () => {\r\n this.rootStore.routerStore.goToDefaultRoute();\r\n };\r\n}\r\n\r\nexport default DisplayErrorViewStore;\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport { defaultTemplate } from \"common/hoc\";\r\nimport logo from \"themes/assets/images/logo-spa.svg\";\r\nfunction DisplayErrorTemplate({ displayErrorViewStore, t }) {\r\n const { error, onClickHome } = displayErrorViewStore;\r\n return (\r\n \r\n
\r\n \r\n
\r\n \r\n

\r\n Ooops! Someone cut the cable.\r\n

\r\n

\r\n {error && (\r\n \r\n {error.message}\r\n {error.description && (\r\n {error.description}\r\n )}\r\n \r\n )}\r\n

\r\n \r\n {t(\"DISPLAY_ERROR.BUTTONS.HOME\")}\r\n \r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nDisplayErrorTemplate.propTypes = {\r\n displayErrorViewStore: PropTypes.object.isRequired,\r\n t: PropTypes.func.isRequired,\r\n};\r\n\r\nexport default defaultTemplate(DisplayErrorTemplate);\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport { defaultTemplate } from \"common/hoc\";\r\nimport logo from \"themes/assets/images/logo-spa.svg\";\r\n\r\nfunction NotFoundTemplate({ notFoundViewStore, t }) {\r\n return (\r\n
\r\n
\r\n \r\n
\r\n \r\n

\r\n Ooops! Someone cut the cable.\r\n

\r\n

\r\n {t(\"NOT_FOUND.MESSAGE\")}\r\n

\r\n \r\n {t(\"NOT_FOUND.BUTTONS.HOME\")}\r\n \r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nNotFoundTemplate.propTypes = {\r\n notFoundViewStore: PropTypes.object.isRequired,\r\n t: PropTypes.func.isRequired,\r\n};\r\n\r\nexport default defaultTemplate(NotFoundTemplate);\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport { defaultTemplate } from \"common/hoc\";\r\nimport logo from \"themes/assets/images/logo-spa.svg\";\r\n\r\nfunction UnauthorizedTemplate({ unauthorizedViewStore, t }) {\r\n return (\r\n
\r\n
\r\n \r\n
\r\n \r\n

\r\n Ooops! Someone cut the cable.\r\n

\r\n

\r\n {t(\"UNAUTHORIZED.MESSAGE\")}\r\n

\r\n \r\n {t(\"UNAUTHORIZED.BUTTONS.HOME\")}\r\n \r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nUnauthorizedTemplate.propTypes = {\r\n unauthorizedViewStore: PropTypes.object.isRequired,\r\n t: PropTypes.func.isRequired,\r\n};\r\n\r\nexport default defaultTemplate(UnauthorizedTemplate);\r\n","import React from \"react\";\r\nimport { DisplayErrorTemplate } from \"themes/common/pages\";\r\nimport { DisplayErrorViewStore } from \"common/pages\";\r\nimport { setCurrentView } from \"mrb/core\";\r\n\r\n@setCurrentView(\r\n (rootStore, componentProps) =>\r\n new DisplayErrorViewStore(rootStore, componentProps),\r\n \"displayErrorViewStore\"\r\n)\r\nclass DisplayError extends React.Component {\r\n render() {\r\n return ;\r\n }\r\n}\r\n\r\nexport default DisplayError;\r\n","import { MrbBaseViewStore } from \"mrb/core\";\r\n\r\nclass NotFoundViewStore extends MrbBaseViewStore {\r\n constructor(rootStore) {\r\n super(rootStore);\r\n }\r\n\r\n onClickHome = () => {\r\n this.rootStore.routerStore.goToDefaultRoute();\r\n };\r\n}\r\n\r\nexport default NotFoundViewStore;\r\n","import React from \"react\";\r\nimport { NotFoundTemplate } from \"themes/common/pages\";\r\nimport { NotFoundViewStore } from \"common/pages\";\r\nimport { setCurrentView } from \"mrb/core\";\r\n\r\n@setCurrentView(\r\n (rootStore, componentProps) =>\r\n new NotFoundViewStore(rootStore, componentProps),\r\n \"notFoundViewStore\"\r\n)\r\nclass NotFound extends React.Component {\r\n render() {\r\n return ;\r\n }\r\n}\r\n\r\nexport default NotFound;\r\n","import { MrbBaseViewStore } from \"mrb/core\";\r\n\r\nclass UnauthorizedViewStore extends MrbBaseViewStore {\r\n constructor(rootStore) {\r\n super(rootStore);\r\n }\r\n\r\n onClickHome = () => {\r\n this.rootStore.routerStore.goToDefaultRoute();\r\n };\r\n}\r\n\r\nexport default UnauthorizedViewStore;\r\n","import React from \"react\";\r\nimport { UnauthorizedTemplate } from \"themes/common/pages\";\r\nimport { UnauthorizedViewStore } from \"common/pages\";\r\nimport { setCurrentView } from \"mrb/core\";\r\n\r\n@setCurrentView(\r\n (rootStore, componentProps) =>\r\n new UnauthorizedViewStore(rootStore, componentProps),\r\n \"unauthorizedViewStore\"\r\n)\r\nclass Unauthorized extends React.Component {\r\n render() {\r\n return ;\r\n }\r\n}\r\n\r\nexport default Unauthorized;\r\n","import { moduleProviderFactory } from \"mrb/core\";\r\nimport { MasterLayout } from \"common/layouts\";\r\nimport { DisplayError, NotFound, Unauthorized } from \"common/pages\";\r\n\r\n(function () {\r\n moduleProviderFactory.module(\"master\").register({\r\n name: \"master\",\r\n routes: [\r\n {\r\n name: \"master\",\r\n pattern: \"\",\r\n component: MasterLayout,\r\n children: [\r\n {\r\n name: \"master.not-found\",\r\n pattern: \"/not-found\",\r\n isPublic: true,\r\n component: NotFound,\r\n },\r\n {\r\n name: \"master.unauthorized\",\r\n pattern: \"/unauthorized\",\r\n isPublic: true,\r\n component: Unauthorized,\r\n },\r\n {\r\n name: \"master.error\",\r\n pattern: \"/error\",\r\n isPublic: true,\r\n component: DisplayError,\r\n beforeEnter: (_1, _2, routerStore) => {\r\n const {\r\n rootStore: { errorStore },\r\n } = routerStore;\r\n if (!errorStore.error) {\r\n return Promise.reject(routerStore.initialState);\r\n }\r\n },\r\n onExit: (_1, _2, routerStore) => {\r\n const {\r\n rootStore: { errorStore },\r\n } = routerStore;\r\n errorStore.setError(null);\r\n },\r\n },\r\n ],\r\n },\r\n ],\r\n });\r\n})();\r\n"],"sourceRoot":""}