"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[41791],{41791:(e,i,d)=>{d.r(i),d.d(i,{AddonModWikiEditLinkHandler:()=>p,AddonModWikiEditLinkHandlerLazyService:()=>y});var n=d(10467),t=d(44682),o=d(15324),r=d(79555),a=d(67981),s=d(51069),c=d(32208),l=d(33014),k=d(25572),u=d(54438);let y=(()=>{var e;class AddonModWikiEditLinkHandlerLazyService extends c.e{handleAction(e,i){return(0,n.A)((function*(){const d=yield l.CoreLoadings.show();try{const d=Number(i.pageid),n=yield a.N.getPageContents(d,{siteId:e}),r=yield t.CoreCourse.getModuleBasicInfoByInstance(n.wikiid,s.Pe,{siteId:e,readingStrategy:1});let c="";void 0!==i.section&&(c=i.section.replace(/\+/g," ")),yield o.CoreNavigator.navigateToSitePath(`${s.Jb}/${r.course}/${r.id}/edit`,{params:{section:c,pageId:d},siteId:e})}catch(e){k.CoreAlerts.showError(e,{default:r.HT.instant("addon.mod_wiki.errorloadingpage")})}finally{d.dismiss()}}))()}}return(e=AddonModWikiEditLinkHandlerLazyService).ɵfac=(()=>{let i;return function AddonModWikiEditLinkHandlerLazyService_Factory(d){return(i||(i=u.xGo(e)))(d||e)}})(),e.ɵprov=u.jDH({token:e,factory:e.ɵfac,providedIn:"root"}),AddonModWikiEditLinkHandlerLazyService})();const p=(0,r.Qd)(y)}}]);