"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1941],{1941:(e,n,a)=>{a.r(n),a.d(n,{default:()=>c});var o=a(94114),t=a(54438),s=a(21182),d=a(42858),i=a(93417),r=a(10467),l=a(79555),p=a(20728),u=a(40152);const h=function(){var e=(0,r.A)((function*(e){const n=p.AddonMessages.isGroupMessagingEnabled(),a=l.Ix.parseUrl(`/main/${u.q5}/`+(n?"group-conversations":"index"));return a.queryParams=e.queryParams,a}));return function messagesIndexGuard(n){return e.apply(this,arguments)}}();function buildRoutes(e){const n=[{path:"discussion/user/:userId",loadComponent:()=>a.e(42399).then(a.bind(a,42399))},{path:"discussion/:conversationId",loadComponent:()=>a.e(42399).then(a.bind(a,42399))}],t=[{path:"contacts",loadComponent:()=>a.e(20685).then(a.bind(a,20685))},{path:"index",data:{mainMenuTabRoot:u.q5},loadComponent:()=>Promise.all([a.e(56420),a.e(75357),a.e(30046)]).then(a.bind(a,30046))},{path:"contacts-35",loadComponent:()=>Promise.all([a.e(75357),a.e(76220)]).then(a.bind(a,76220))},{path:"group-conversations",data:{mainMenuTabRoot:u.q5},loadComponent:()=>Promise.all([a.e(56420),a.e(82314)]).then(a.bind(a,82314))},{path:"search",loadComponent:()=>Promise.all([a.e(75357),a.e(37047)]).then(a.bind(a,37047))}].reduce(((e,a)=>[...e,a,...n.map((e=>({...e,path:`${a.path}/${e.path}`})))]),[]),s=[{path:"contacts",loadComponent:()=>a.e(20685).then(a.bind(a,20685)),loadChildren:()=>n},{path:"index",data:{mainMenuTabRoot:u.q5},loadComponent:()=>Promise.all([a.e(56420),a.e(75357),a.e(30046)]).then(a.bind(a,30046)),loadChildren:()=>n},{path:"contacts-35",loadComponent:()=>Promise.all([a.e(75357),a.e(76220)]).then(a.bind(a,76220)),loadChildren:()=>n},{path:"group-conversations",data:{mainMenuTabRoot:u.q5},loadComponent:()=>Promise.all([a.e(56420),a.e(82314)]).then(a.bind(a,82314)),loadChildren:()=>n},{path:"search",loadComponent:()=>Promise.all([a.e(75357),a.e(37047)]).then(a.bind(a,37047)),loadChildren:()=>n}];return[...(0,o.VI)(t,(()=>i.CoreScreen.isMobile)),...(0,o.VI)(s,(()=>i.CoreScreen.isTablet)),...n,{path:"message-settings",loadComponent:()=>a.e(34445).then(a.bind(a,34445))},...(0,d.B)(e,{canActivate:[h]})]}let c=(()=>{var e;class AddonMessagesLazyModule{}return(e=AddonMessagesLazyModule).ɵfac=function AddonMessagesLazyModule_Factory(n){return new(n||e)},e.ɵmod=t.$C({type:e}),e.ɵinj=t.G2t({providers:[{provide:s.bw,multi:!0,deps:[t.zZn],useFactory:buildRoutes}]}),AddonMessagesLazyModule})()}}]);