import{B as k,i as f}from"./chunk-A32B57A4.js";import{H as C,I as g,J as h}from"./chunk-4EQLHXW7.js";import{Eb as a,Gd as b,Ob as r,Sa as o,ec as c,qc as p,rc as s,tc as u,uc as m,zb as l,zc as d}from"./chunk-JSJB5BKT.js";import{e as y}from"./chunk-SZAW6ZBW.js";var H,_=y(()=>{b();h();b();k();h();H=(()=>{class e{constructor(t){this.cancel=new o,this.onClick=new o,t&&(this.parent=t)}triggerCancel(t){this.cancel.emit(t),this.onClick.emit(t),this.parent&&this.parent.resetForm()}static{this.\u0275fac=function(n){return new(n||e)(a(f,9))}}static{this.\u0275cmp=r({type:e,selectors:[["sd-cancel-button"]],inputs:{parent:"parent",label:"label"},outputs:{cancel:"cancel",onClick:"onClick"},decls:2,vars:1,consts:[["styleClass","button-cancel-footer","type","button",3,"onClick","label"]],template:function(n,i){n&1&&(u(0),p(1,"p-button",0),d("onClick",function(v){return i.triggerCancel(v)}),s(),m()),n&2&&(l(),c("label",i.label))},dependencies:[g,C],styles:[`:host{display:inline-block;margin:.5em .4em .5em 8px}.dvl-form .dvl-form-buttonpane button[type=button],.p-dialog .p-dialog-buttonpane button[type=button]{margin:0;float:right}.dvl-form .dvl-form-buttonpane button[type=button]:hover,.p-dialog .p-dialog-buttonpane button[type=button]:hover{background-color:#0068c3;color:#fff}
`],encapsulation:2})}}return e})()});export{H as a,_ as b};
