import{a as p}from"./chunk-4EEGS4SZ.js";import{a as h}from"./chunk-Y46LOK5X.js";import{q as r}from"./chunk-3SGEAGU4.js";import{e as o,z as k}from"./chunk-AXJC5PD4.js";import{k as u}from"./chunk-PNYIEM2I.js";import{F as d,G as v,v as s,w as b}from"./chunk-DQXXLIFV.js";import{da as m,fd as f,ia as n}from"./chunk-LU6Q5ONP.js";import{a as l,k as c}from"./chunk-5VMFMKJR.js";k();b();f();v();var N=(()=>{class e{constructor(t,i){this.dialogService=t,this.userAuthService=i}openFiscalSalesBookDialog(t,i){let a=this.dialogService.open({id:p.DialogFiscalSalesBookServiceForm,title:"FiscalSalesBook",size:"s",component:h,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:S=>c(this,null,function*(){var g=yield i(S);g&&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(u),n(d))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();export{N as a};
