import {J as J$1,cI as p,U as RN,dt as Mr,c9 as qn,i as S,c as tS,H as ul,cN as g,w as wo,ab as LN,N as Sr,f as QT,dO as W1,e1 as j1,X as _z,u as R,iY as On,bp as QC,br as ZC,bu as dy,cF as rD,a0 as ks,cl as JC,dj as KC,z as vM,a2 as Uu,bz as f_,A as Iw,cm as XC,F as EM,v as W_,T as P_,f1 as X_,ce as zy,a4 as Sy,c2 as iv,a1 as Ny,bk as i_,a3 as Py,bm as Bp,bo as $p}from'./main-WUGO6e7n.js';function H(e,n){if(e&1&&Ny(0,"i"),e&2){let t=f_().$implicit;P_(X_("info-icon ",t.icon));}}function J(e,n){if(e&1){let t=i_();ks(0,"dvl-button",8),vM(1,"translate"),Py("onClick",function(){let o=Bp(t).$implicit,N=f_(5);return $p(N.showConfirmationDialog(o))}),Uu();}if(e&2){let t=n.$implicit;Sy("dvlTooltip",EM(1,2,t.actionText))("icon","di "+(t.actionIcon||"dvl-icon-close"));}}function L(e,n){if(e&1&&(ks(0,"div",5),JC(1,J,2,4,"dvl-button",7,KC),Uu()),e&2){let t=f_().$implicit;Iw(),XC(t.actions);}}function Q(e,n){e&1&&Ny(0,"span",6);}function U(e,n){if(e&1&&(ks(0,"div",2)(1,"div",3),QC(2,H,1,3,"i",4),ks(3,"span"),W_(4),Uu()(),QC(5,L,3,0,"div",5),QC(6,Q,1,0,"span",6),Uu()),e&2){let t=n.$implicit;P_(X_("info-message entry-status is-",t.severity)),zy("has-actions",t.actions?.length),Sy("pTooltip",t.detail),Iw(2),ZC(t.icon?2:-1),Iw(2),iv(t.summary),Iw(),ZC(t.actions?.length?5:-1),Iw(),ZC(t.detail?6:-1);}}function Z(e,n){if(e&1&&JC(0,U,7,10,"div",1,KC),e&2){let t=n.$implicit;XC(t.value);}}function tt(e,n){if(e&1&&(ks(0,"div",0),JC(1,Z,2,0,null,null,KC),vM(3,"keyvalue"),Uu()),e&2){let t=f_();Iw(),XC(EM(3,0,t.actionMessagesBySeverities));}}var dt,et=J$1(()=>{p();RN();Mr();qn();S();tS();RN();ul();Mr();dt=(()=>{class e extends g{constructor(t,i){super(),this.dvlConfirmationService=t,this.translatorService=i,this.actionMessages=[],this.actionMessagesBySeverities=new Map;}ngOnChanges(t){this.actionMessagesBySeverities=new Map;for(let i of this.actionMessages){let o=this.actionMessagesBySeverities.get(i.severity);o||(o=[]),o.push(i),this.actionMessagesBySeverities.set(i.severity,o);}}showConfirmationDialog(t){if(t.skipConfirmation){t.action();return}this.dvlConfirmationService.confirm({intent:"default",icon:t.actionIcon?`dvl-icon ${t.actionIcon}`:"",title:this.translatorService.translate(t.actionText),message:t.message?t.message:this.translatorService.translate("DoYouReallyWantToX",this.translatorService.translate(t.actionText)),accept:()=>t.action?.()});}static{this.\u0275fac=function(i){return new(i||e)(wo(LN),wo(Sr))};}static{this.\u0275cmp=QT({type:e,selectors:[["dvl-action-messages-categorized"]],inputs:{actionMessages:"actionMessages"},features:[dy,rD],decls:1,vars:1,consts:[[1,"info-messages","flex","items-center"],["tooltipPosition","bottom",3,"class","has-actions","pTooltip"],["tooltipPosition","bottom",3,"pTooltip"],[1,"info-status"],[3,"class"],[1,"info-actions"],[1,"info-badge"],["styleclass","!p-1 !text-[var(--text-200)] hover:!text-[var(--accent-warning-400)] hover:!bg-transparent","tooltipPosition","bottom","variant","icon","size","sm",3,"dvlTooltip","icon"],["styleclass","!p-1 !text-[var(--text-200)] hover:!text-[var(--accent-warning-400)] hover:!bg-transparent","tooltipPosition","bottom","variant","icon","size","sm",3,"onClick","dvlTooltip","icon"]],template:function(i,o){i&1&&QC(0,tt,4,2,"div",0),i&2&&ZC(o.actionMessagesBySeverities.size?0:-1);},dependencies:[W1,j1,_z,R,On],styles:["[_nghost-%COMP%]{--padding: var(--entry-layout-horizontal-padding)}.info-messages[_ngcontent-%COMP%]{padding:5px var(--padding)}.info-message[_ngcontent-%COMP%]{align-items:center;display:inline-flex;white-space:nowrap;background-color:rgba(var(--entry-status-color-rgb),var(--entry-status-background-opacity));border-radius:4px;color:#fff;font-size:14px;font-weight:600;position:relative}.info-message[_ngcontent-%COMP%]:not(:first-child){margin-left:var(--padding)}.info-actions[_ngcontent-%COMP%]{align-items:center;display:inline-flex}.info-status[_ngcontent-%COMP%]{padding:5px;align-items:center;display:inline-flex}.info-icon[_ngcontent-%COMP%]{font-size:16px;margin-right:5px}.info-badge[_ngcontent-%COMP%]{width:14px;height:14px;background-color:rgba(var(--entry-status-color-rgb),1);border:2px solid var(--entry-container-bg-color);border-radius:10px;position:absolute;top:-7px;right:-7px}.info-btn[_ngcontent-%COMP%]{transition:background-color .1s,border-color .1s;appearance:none;background-color:#0000001a;border:0;border-radius:0 4px 4px 0;padding:5px;color:#fff;cursor:pointer;font-size:18px;font-weight:400}.info-btn[_ngcontent-%COMP%]:hover{background-color:#0000004d;border-color:#0000}"],changeDetection:1});}}return e})();});export{dt as d,et as e};