import{e as d}from"./chunk-4RP4VSUT.js";import{a as p}from"./chunk-3J26MXMN.js";import{p as r}from"./chunk-FVKBUVY2.js";import{d as o,y as v}from"./chunk-PZHJ5CIW.js";import{C as u,D as b,u as s,v as f}from"./chunk-MW4YCIED.js";import{a as l,k as c,nd as g,qa as m,va as n}from"./chunk-PGS4AHIT.js";v();f();g();b();var F=(()=>{class e{constructor(t,i){this.dialogService=t,this.userAuthService=i}openFiscalSalesBookDialog(t,i){let a=this.dialogService.open({title:"FiscalSalesBook",size:"s",component:p,bindings:{fields:[{id:"fiscSalesBookSetNo",label:"FiscalSalesBookSetNumber",component:r,validators:[o.minLength(2),o.maxLength(2)],required:!0,errors:{required:"RequiredInput",minlength:"MinLengthError",maxlength:"MaxLengthError"},maxLength:2,isDisplayed:this.userAuthService.localization.isLocalization(s.SI)},{id:"fiscSalesBookSerNo",label:"FiscalSalesBookSerialNumber",component:r,validators:[o.minLength(12),o.maxLength(12)],required:!0,errors:{required:"RequiredInput",minlength:"MinLengthError",maxlength:"MaxLengthError"},maxLength:12,isDisplayed:this.userAuthService.localization.isLocalization(s.SI)},{id:"fiscSalesBookDocNo",label:"FiscalSalesBookDocumentNumber",component:r}],model:l({},t),settings:{id:"fiscal-sales-book-form",onSubmit:h=>c(this,null,function*(){var S=yield i(h);S&&a?.close()})},submitAction:{id:"vkr-dialog-submit",label:"Save",type:"paw-chip-btn"},actions:[{id:"vkr-dialog-cancel",label:"Cancel",type:"paw-chip-btn",onSelected:()=>{a?.close()}}]}});return a}static{this.\u0275fac=function(i){return new(i||e)(n(d),n(u))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();export{F as a};
