"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[92259],{92259:(d,e,a)=>{a.r(e),a.d(e,{AddonModDataEditLinkHandler:()=>p,AddonModDataEditLinkHandlerLazyService:()=>u});var t=a(10467),n=a(44682),r=a(15324),i=a(33014),o=a(79555),s=a(95209),c=a(268),l=a(54438);let u=(()=>{var d;class AddonModDataEditLinkHandlerLazyService extends c._{constructor(){super(...arguments),this.name="AddonModDataEditLinkHandler",this.featureName=s.Sg,this.pattern=/\/mod\/data\/edit\.php.*([?&](d|rid)=\d+)/}handleAction(d,e){return(0,t.A)((function*(){const a=yield i.CoreLoadings.show(),t=parseInt(e.d,10),o=e.rid||"";try{const e=yield n.CoreCourse.getModuleBasicInfoByInstance(t,"data",{siteId:d,readingStrategy:1}),a={title:e.name};yield r.CoreNavigator.navigateToSitePath(`${s.Fn}/${e.course}/${e.id}/edit/${o}`,{siteId:d,params:a})}finally{a.dismiss()}}))()}isEnabled(d,e,a){return(0,t.A)((function*(){return void 0!==a.d}))()}}return(d=AddonModDataEditLinkHandlerLazyService).ɵfac=(()=>{let e;return function AddonModDataEditLinkHandlerLazyService_Factory(a){return(e||(e=l.xGo(d)))(a||d)}})(),d.ɵprov=l.jDH({token:d,factory:d.ɵfac,providedIn:"root"}),AddonModDataEditLinkHandlerLazyService})();const p=(0,o.Qd)(u)}}]);