import{a as u}from"./chunk-MJOFOQMS.js";import{e as h}from"./chunk-5ZFCAS3C.js";import{a as p}from"./chunk-MD4E42DS.js";import{p as r}from"./chunk-326XXSIW.js";import{d as o,y as k}from"./chunk-WEQN5LYX.js";import{C as d,D as v,u as s,v as b}from"./chunk-EAEGBVDW.js";import{a as l,k as c,od as f,qa as m,va as n}from"./chunk-HEIW4SFT.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:u.DialogFiscalSalesBookServiceForm,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: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(h),n(d))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();export{N as a};
