"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3454],{3454:(e,o,n)=>{n.r(o),n.d(o,{AddonModGlossaryModePickerPopoverComponent:()=>c});var d=n(79555),s=n(86654),t=n(54438),a=n(60177),r=n(89417),i=n(2910),l=n(88246),p=n(73955);function AddonModGlossaryModePickerPopoverComponent_ion_item_2_Template(e,o){if(1&e&&(t.j41(0,"ion-item",2)(1,"ion-radio",3),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&e){const e=o.$implicit;t.R7$(),t.Y8G("value",e.key),t.R7$(),t.SpI(" ",t.bMT(3,2,e.langkey)," ")}}let c=(()=>{var e;class AddonModGlossaryModePickerPopoverComponent{constructor(){this.browseModes=[],this.selectedMode="",this.modes=[]}ngOnInit(){this.browseModes.forEach((e=>{switch(e){case"letter":this.modes.push({key:"letter_all",langkey:"addon.mod_glossary.byalphabet"});break;case"cat":this.modes.push({key:"cat_all",langkey:"addon.mod_glossary.bycategory"});break;case"date":this.modes.push({key:"newest_first",langkey:"addon.mod_glossary.bynewestfirst"}),this.modes.push({key:"recently_updated",langkey:"addon.mod_glossary.byrecentlyupdated"});break;case"author":this.modes.push({key:"author_all",langkey:"addon.mod_glossary.byauthor"})}}))}modePicked(){d.IE.dismiss(this.selectedMode)}}return(e=AddonModGlossaryModePickerPopoverComponent).ɵfac=function AddonModGlossaryModePickerPopoverComponent_Factory(o){return new(o||e)},e.ɵcmp=t.VBU({type:e,selectors:[["addon-mod-glossary-mode-picker-popover"]],inputs:{browseModes:"browseModes",selectedMode:"selectedMode"},standalone:!0,features:[t.aNF],decls:3,vars:2,consts:[[3,"ngModelChange","ionChange","ngModel"],["class","ion-text-wrap",4,"ngFor","ngForOf"],[1,"ion-text-wrap"],[3,"value"]],template:function AddonModGlossaryModePickerPopoverComponent_Template(e,o){1&e&&(t.j41(0,"ion-content")(1,"ion-radio-group",0),t.mxI("ngModelChange",(function AddonModGlossaryModePickerPopoverComponent_Template_ion_radio_group_ngModelChange_1_listener(e){return t.DH7(o.selectedMode,e)||(o.selectedMode=e),e})),t.bIt("ionChange",(function AddonModGlossaryModePickerPopoverComponent_Template_ion_radio_group_ionChange_1_listener(){return o.modePicked()})),t.DNE(2,AddonModGlossaryModePickerPopoverComponent_ion_item_2_Template,4,4,"ion-item",1),t.k0s()()),2&e&&(t.R7$(),t.R50("ngModel",o.selectedMode),t.R7$(),t.Y8G("ngForOf",o.modes))},dependencies:[s.n,a.Sq,r.BC,r.vS,i.W9,i.uz,i.KO,i.f0,i.Je,l.i,p.D9],encapsulation:2}),AddonModGlossaryModePickerPopoverComponent})()}}]);