import{Jc as L,Kc as V,Lc as N,Tc as j,Uc as B,d as y,o as $}from"./chunk-ATD4AEXQ.js";import{$c as k,Bb as l,Ka as i,Kc as h,Oa as D,Qb as r,Rb as s,Sb as R,Ta as w,Ua as A,bd as b,da as E,fc as g,gc as v,hb as d,ib as m,ja as S,ka as I,kb as F,lb as T,mb as O,nb as C,ob as n,pb as a,qb as _,xb as M,zb as f}from"./chunk-BXH3QC5E.js";var u=(function(t){return t.CANCEL="Cancel",t.SAVE="Save",t.CLEAR="Clear",t})(u||{});var G=(t,c)=>c.description;function W(t,c){if(t&1&&(n(0,"mat-icon",7),r(1),a()),t&2){let e=l().$implicit,o=l(2);C("color",o.ComponentColor.PRIMARY),i(),s(e.icon)}}function q(t,c){if(t&1&&_(0,"mat-icon",9),t&2){let e=l().$implicit,o=l(2);C("svgIcon",e.svgIcon)("color",o.ComponentColor.PRIMARY)}}function z(t,c){if(t&1&&(n(0,"div",10),r(1),a()),t&2){let e=l().$implicit;i(),R(" ",e.description," ")}}function H(t,c){if(t&1){let e=M();_(0,"div",5),n(1,"div",6),f("click",function(){let p=S(e).$implicit,x=l(2);return I(x.onActionSelected(p.action))}),d(2,W,2,2,"mat-icon",7),d(3,q,1,2,"mat-icon",9),n(4,"div",3)(5,"div",8),r(6),a(),d(7,z,2,1,"div",10),a()()}if(t&2){let e=c.$implicit;i(2),m(e.icon?2:-1),i(),m(e.svgIcon?3:-1),i(3),s(e.label),i(),m(e.description?7:-1)}}function J(t,c){if(t&1&&T(0,H,8,4,null,null,G),t&2){let e=l();O(e.data.actionsList)}}function K(t,c){if(t&1&&(n(0,"div",8),r(1),a()),t&2){let e=l().$implicit;i(),s(e.subtitle)}}function Q(t,c){if(t&1&&(n(0,"div",10),r(1),a()),t&2){let e=l().$implicit;i(),s(e.description)}}function U(t,c){if(t&1&&_(0,"mat-icon",9),t&2){let e=l().$implicit,o=l(2);C("svgIcon",e.rightSvgIcon)("color",o.ComponentColor.PRIMARY)}}function X(t,c){if(t&1){let e=M();_(0,"div",5),n(1,"div",6),f("click",function(){let p=S(e).$implicit,x=l(2);return I(x.onItemSelected(p.item))}),n(2,"div",3)(3,"div",11),r(4),a(),d(5,K,2,1,"div",8),d(6,Q,2,1,"div",10),a(),d(7,U,1,2,"mat-icon",9),a()}if(t&2){let e=c.$implicit;i(4),s(e.title),i(),m(e.subtitle?5:-1),i(),m(e.description?6:-1),i(),m(e.rightSvgIcon?7:-1)}}function Z(t,c){if(t&1&&T(0,X,8,4,null,null,F),t&2){let e=l();O(e.data.itemsList)}}var P=(function(t){return t.ACTIONS="actions",t.ITEMS="items",t})(P||{}),tt=(()=>{class t{dialogRef;data;ComponentColor=y;constructor(e,o){this.dialogRef=e,this.data=o}static getDefaultDialogConfig(){let e=new L;return e.disableClose=!0,e.panelClass="select-option-dialog",e.maxWidth="656px",e.autoFocus=$.DIALOG,e.delayFocusTrap=!1,e}closeDialog(){this.dialogRef.close(u.CANCEL)}onActionSelected(e){this.dialogRef.close(e)}onItemSelected(e){this.dialogRef.close(e)}static \u0275fac=function(o){return new(o||t)(D(V),D(N))};static \u0275cmp=w({type:t,selectors:[["abs-select-option-dialog"]],standalone:!1,decls:21,vars:12,consts:[["mat-dialog-title","",1,"dialog-with-actions-title"],[1,"dialog-with-actions-title-wrapper"],[1,"title-icon"],[1,"abs-spacer"],["mat-dialog-content","",1,"dialog-with-actions-content"],[1,"abs-separator"],[1,"dialog-with-actions-row",3,"click"],[3,"color"],[1,"list-item-text"],[3,"svgIcon","color"],[1,"list-item-text--id"],[1,"list-item-text--overline"]],template:function(o,p){o&1&&(n(0,"h1",0)(1,"div",1)(2,"mat-icon",2),r(3,"warning"),a(),n(4,"span",3),r(5),g(6,"translate"),a()(),n(7,"span"),r(8),g(9,"translate"),a()(),n(10,"div",4),d(11,J,2,0),d(12,Z,2,0),_(13,"div",5),n(14,"div",6),f("click",function(){return p.closeDialog()}),n(15,"mat-icon",7),r(16,"arrow_back"),a(),n(17,"div",3)(18,"div",8),r(19),g(20,"translate"),a()()()()),o&2&&(i(5),s(v(6,6,p.data.title)),i(3),s(v(9,8,p.data.message)),i(3),m(p.data.mode==="actions"?11:-1),i(),m(p.data.mode==="items"?12:-1),i(3),C("color",p.ComponentColor.PRIMARY),i(4),s(v(20,10,p.data.closingButtonName)))},dependencies:[j,k],encapsulation:2})}return t})();var et=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=A({type:t});static \u0275inj=E({imports:[h,B,b]})}return t})();export{u as a,P as b,tt as c,et as d};
