"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[93158],{93158:(o,n,e)=>{e.r(n),e.d(n,{AddonModImscpTocComponent:()=>r});var t=e(79555),i=e(86654),c=e(54438),s=e(60177),d=e(2910),a=e(86198),m=e(88246),l=e(43570),p=e(73955);function AddonModImscpTocComponent_ion_item_13_span_3_Template(o,n){1&o&&c.nrm(0,"span",7)}function AddonModImscpTocComponent_ion_item_13_Template(o,n){if(1&o){const o=c.RV6();c.j41(0,"ion-item",4),c.bIt("click",(function AddonModImscpTocComponent_ion_item_13_Template_ion_item_click_0_listener(){const n=c.eBV(o).$implicit,e=c.XpG();return c.Njj(e.loadItem(n.href))})),c.j41(1,"ion-label")(2,"p",5),c.DNE(3,AddonModImscpTocComponent_ion_item_13_span_3_Template,1,0,"span",6),c.EFF(4),c.k0s()()()}if(2&o){const o=n.$implicit,e=c.XpG();c.Y8G("detail",!1),c.BMQ("aria-current",e.selected===o.href?"page":"false"),c.R7$(),c.AVh("core-bold",!o.href),c.R7$(2),c.Y8G("ngForOf",e.getNumberForPadding(o.level)),c.R7$(),c.SpI(" ",o.title," ")}}let r=(()=>{var o;class AddonModImscpTocComponent{constructor(){this.items=[]}loadItem(o){t.W3.dismiss(o)}getNumberForPadding(o){return new Array(o)}closeModal(){t.W3.dismiss()}}return(o=AddonModImscpTocComponent).ɵfac=function AddonModImscpTocComponent_Factory(n){return new(n||o)},o.ɵcmp=c.VBU({type:o,selectors:[["addon-mod-imscp-toc"]],inputs:{items:"items",selected:"selected"},standalone:!0,features:[c.aNF],decls:14,vars:7,consts:[["slot","end"],["fill","clear",3,"click","ariaLabel"],["name","fas-xmark","slot","icon-only","aria-hidden","true"],["button","",3,"detail","click",4,"ngFor","ngForOf"],["button","",3,"click","detail"],[1,"item-heading"],["class","ion-padding-start",4,"ngFor","ngForOf"],[1,"ion-padding-start"]],template:function AddonModImscpTocComponent_Template(o,n){1&o&&(c.j41(0,"ion-header")(1,"ion-toolbar")(2,"ion-title")(3,"h1"),c.EFF(4),c.nI1(5,"translate"),c.k0s()(),c.j41(6,"ion-buttons",0)(7,"ion-button",1),c.nI1(8,"translate"),c.bIt("click",(function AddonModImscpTocComponent_Template_ion_button_click_7_listener(){return n.closeModal()})),c.nrm(9,"ion-icon",2),c.k0s()()()(),c.j41(10,"ion-content")(11,"nav")(12,"ion-list"),c.DNE(13,AddonModImscpTocComponent_ion_item_13_Template,5,6,"ion-item",3),c.k0s()()()),2&o&&(c.R7$(4),c.JRh(c.bMT(5,3,"addon.mod_imscp.toc")),c.R7$(3),c.Y8G("ariaLabel",c.bMT(8,5,"core.close")),c.R7$(6),c.Y8G("ngForOf",n.items))},dependencies:[i.n,s.Sq,d.Jm,d.QW,d.W9,d.eU,d.iq,d.uz,d.he,d.nf,d.BC,d.ai,a.t,m.i,l.T,p.D9],encapsulation:2}),AddonModImscpTocComponent})()}}]);