"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[53394],{53394:(e,n,a)=>{a.r(n),a.d(n,{AddonModDataShowLinkHandler:()=>p,AddonModDataShowLinkHandlerLazyService:()=>u});var o=a(10467),d=a(44682),r=a(15324),t=a(33014),i=a(79555),s=a(95209),l=a(95495),c=a(54438);let u=(()=>{var e;class AddonModDataShowLinkHandlerLazyService extends l.b{handleAction(e,n){return(0,o.A)((function*(){const a=yield t.CoreLoadings.show(),o=parseInt(n.d,10),i=n.rid||"",l=parseInt(n.group,10)||!1,c=parseInt(n.page,10)||!1;try{const a=yield d.CoreCourse.getModuleBasicInfoByInstance(o,s.t7,{siteId:e,readingStrategy:1}),t={title:a.name};l&&(t.group=l),"single"===(null==n?void 0:n.mode)&&(t.offset=c||0),yield r.CoreNavigator.navigateToSitePath(`${s.Fn}/${a.course}/${a.id}/${i}`,{siteId:e,params:t})}finally{a.dismiss()}}))()}isEnabled(e,n,a){return(0,o.A)((function*(){return void 0!==a.d&&!!(a.mode&&"single"==a.mode||void 0!==a.rid)}))()}}return(e=AddonModDataShowLinkHandlerLazyService).ɵfac=(()=>{let n;return function AddonModDataShowLinkHandlerLazyService_Factory(a){return(n||(n=c.xGo(e)))(a||e)}})(),e.ɵprov=c.jDH({token:e,factory:e.ɵfac,providedIn:"root"}),AddonModDataShowLinkHandlerLazyService})();const p=(0,i.Qd)(u)}}]);