import{$ as l,Gd as g,M as s,S as a,_ as r,fb as c,ga as u,ha as m,ia as d,ib as f,jb as n,ta as p}from"./chunk-25K3M4QH.js";import"./chunk-WNQ4N7RJ.js";import"./chunk-HNIQUNPL.js";import"./chunk-MPNB67H6.js";var y=class i{closeEmitter=f();buttons=n(new Set(["1","2","3","4","5","6","7","8","9","10"]));mode=n("blacklist");extraButtons=n([]);overlayId=n("");extraButtonsAll=c(()=>[{Boton:"CLOSEMENU",Descripcion:$localize`:@@close:Close`,fontIcon:"icon-[ic--round-close]",ariaLabel:"close icon",loading:!1},...this.extraButtons()]);closeFn(o){this.closeEmitter.emit(o)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=a({type:i,selectors:[["app-button-menu-component"]],hostBindings:function(t,e){t&1&&(r("animate-popIn"),l("animate-popOut"))},inputs:{buttons:[1,"buttons"],mode:[1,"mode"],extraButtons:[1,"extraButtons"],overlayId:[1,"overlayId"]},outputs:{closeEmitter:"closeEmitter"},decls:3,vars:5,consts:[[1,"bg-primary-900","border-secondary-500","desktop:max-h-9/12","desktop:max-w-5/12","desktop:px-2","desktop:py-4","flex","h-auto","max-h-[70vh]","w-11/12","max-w-100","flex-col","items-stretch","overflow-y-auto","rounded-2xl","border-2","px-1","py-2"],[1,"h-auto","w-full"],["containerClass","grid w-full grid-auto-fill-15 md:grid-auto-fill-16 lg:grid-auto-fill-17 xl:grid-auto-fill-18 justify-items-center desktop:min-h-70","buttonClass","flex w-15 flex-col items-center justify-start md:w-16 lg:w-17 xl:w-18","iconClass","flex p-2 size-13 md:size-14 lg:size-15 xl:size-16 items-center justify-center rounded-2xl bg-primary-700 mb-1","textClass","line-clamp-2 mt-1 w-full px-0.5 text-center text-xs leading-tight md:text-sm",3,"clickFinished","mode","showDescription","inputButtons","extraButtons","prependExtraButtons"]],template:function(t,e){t&1&&(m(0,"div",0)(1,"div",1)(2,"app-buttons-component",2),p("clickFinished",function(x){return e.closeFn(x)}),d()()()),t&2&&(s(2),u("mode",e.mode())("showDescription",!0)("inputButtons",e.buttons())("extraButtons",e.extraButtonsAll())("prependExtraButtons",!0))},dependencies:[g],encapsulation:2,changeDetection:0})};export{y as ButtonMenuComponent};
