p3x-redis-ui-material
Version:
💿 P3X Redis UI triple frontend — Angular + React/MUI + Vue/Vuetify with 54 languages, 7 themes, Socket.IO, desktop notifications, and full feature parity
1 lines • 2.02 kB
JavaScript
import"./main-OCJB5534.js";import{Bi as ym,Di as wf,Dn as _y,Dr as lo,Dt as Qe,F as HY,Gn as dT,In as by,It as Sn,Lt as Sy,P as HT,Pn as bm,Rn as co,T as Ee,ar as hS,er as gT,in as Wa,k as G0,pt as Nf,t as $Y,vr as jy,w as Eb}from"./chunk-CHqDEyfr.js";import{a as jt,i as Vt,o as z,r as Ue,s as zt,t as Bt}from"./chunk-CyaMV1f5.js";import{a as se,n as ae}from"./chunk-CNSP-oVC.js";import{n as wt,r as yt}from"./chunk-CGgWGJ3E.js";import{t as Q}from"./chunk-D56BNEWf.js";function V(i,z){if(i&1){let n=dT();Wa(0,`p3xr-dialog-cancel`,8),Sy(`cancel`,function(){ym(n);return bm(gT().onCancel())}),wf()}if(i&2)by(`label`,gT().data.cancelButton||`Cancel`)}var Y=(()=>{class i{data;dialogRef;constructor(n,o){this.data=n,this.dialogRef=o}onOk(){this.dialogRef.close(!0)}onCancel(){this.dialogRef.close(!1)}static ɵfac=function(o){return new(o||i)(Qe(Ue),Qe(z))};static ɵcmp=Ee({type:i,selectors:[[`p3xr-confirm-dialog`]],decls:14,vars:4,consts:[[1,`p3xr-dialog-toolbar`,`p3xr-mat-layout-strong`],[`mat-dialog-title`,``,1,`p3xr-dialog-title`],[`mat-icon-button`,``,`type`,`button`,3,`click`],[1,`p3xr-dialog-content`],[1,`p3xr-dialog-message`,3,`innerHTML`],[1,`p3xr-dialog-actions`],[3,`label`],[`mat-raised-button`,``,`type`,`button`,1,`btn-primary`,3,`click`],[3,`cancel`,`label`]],template:function(o,e){o&1&&(Wa(0,`mat-toolbar`,0)(1,`span`,1),HT(2),wf(),Wa(3,`button`,2),Sy(`click`,function(){return e.onCancel()}),Wa(4,`mat-icon`),HT(5,`close`),wf()()(),Wa(6,`mat-dialog-content`,3),_y(7,`div`,4),wf(),Wa(8,`mat-dialog-actions`,5),co(9,V,1,1,`p3xr-dialog-cancel`,6),Wa(10,`button`,7),Sy(`click`,function(){return e.onOk()}),Wa(11,`mat-icon`),HT(12,`done`),wf(),HT(13),wf()()),o&2&&(Sn(2),jy(e.data.title),Sn(5),by(`innerHTML`,e.data.message,hS),Sn(2),lo(e.data.disableCancel?-1:9),Sn(4),Nf(` `,e.data.okButton||`OK`,` `))},dependencies:[Eb,zt,Bt,Vt,jt,$Y,HY,G0,yt,wt,ae,se,Q],styles:[`.p3xr-dialog-message[_ngcontent-%COMP%]{white-space:normal}`],changeDetection:1})}return i})();export{Y as ConfirmDialogComponent};