import{b as v,c as g}from"./chunk-2JFL6LPD.js";import{d as f}from"./chunk-MANB3PJC.js";import{Bd as I,F as s,md as l}from"./chunk-CBXQYRPM.js";import{Rc as d,ca as n,da as c,fa as r,la as m}from"./chunk-LVXYIJUI.js";var p=(()=>{class t{constructor(e){this.restService=e}printUniqueItemLabel(e){return this.restService.post(`${s.PRINT_LABEL}/printUniqueItemLabel`,e)}static{this.\u0275fac=function(i){return new(i||t)(r(f))}}static{this.\u0275prov=n({token:t,factory:t.\u0275fac})}}return t})();var a=(()=>{class t{constructor(e){this.labelPrintingService=e}printUniqueItemLabel(e){return this.labelPrintingService.printUniqueItemLabel(e)}static{this.\u0275fac=function(i){return new(i||t)(r(p))}}static{this.\u0275prov=n({token:t,factory:t.\u0275fac})}}return t})();var S=(()=>{class t{constructor(e,i,b,P){this.labelPrintingFacade=e,this.translateService=i,this.toastMessageService=b,this.labelPrintingUtilsService=P}printLabel(e){this.labelPrintingFacade.printUniqueItemLabel(e).subscribe(i=>{if(!i.labelPrinterDefined){this.toastMessageService.showToastPanel(l.getErrorDefaultConfig().withMessage(this.translateService.instant("MSG_NO_PRINTER_FOR_LABEL")));return}if(i.labelPrintedByServer){i.labelProcessed?this.toastMessageService.showToastPanel(l.getSuccessDefaultConfig().withMessage(this.translateService.instant("MSG_LABEL_PRINTED"))):this.toastMessageService.showToastPanel(l.getErrorDefaultConfig().withMessage(this.translateService.instant("MSG_LABEL_NOT_PROCESSED")));return}this.labelPrintingUtilsService.handleLabelPrinterCall(i.printQueueID)})}static{this.\u0275fac=function(i){return new(i||t)(r(a),r(d),r(I),r(v))}}static{this.\u0275prov=n({token:t,factory:t.\u0275fac})}}return t})();var E=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=m({type:t})}static{this.\u0275inj=c({providers:[p,a,S],imports:[g]})}}return t})();var u=(()=>{class t{constructor(e){this.restService=e}repair(e){return this.restService.post(`${s.UNIQUE_ITEMS}/repair`,e)}rewash(e){return this.restService.post(`${s.UNIQUE_ITEMS}/rewash`,e)}sendToStock(e){return this.restService.post(`${s.UNIQUE_ITEMS}/sendToStock`,e)}getAlreadyExistingGarmentByIDCode(e){return this.restService.get(`${s.UNIQUE_ITEMS}/idCode:${e}`,null)}createUniqueItem(e){return this.restService.post(s.UNIQUE_ITEMS,e)}static{this.\u0275fac=function(i){return new(i||t)(r(f))}}static{this.\u0275prov=n({token:t,factory:t.\u0275fac})}}return t})();var h=(()=>{class t{constructor(e){this.uniqueItemsService=e}repair(e){return this.uniqueItemsService.repair(e)}rewash(e){return this.uniqueItemsService.rewash(e)}sendToStock(e){return this.uniqueItemsService.sendToStock(e)}getAlreadyExistingGarmentByIDCode(e){return this.uniqueItemsService.getAlreadyExistingGarmentByIDCode(e)}createUniqueItem(e){return this.uniqueItemsService.createUniqueItem(e)}static{this.\u0275fac=function(i){return new(i||t)(r(u))}}static{this.\u0275prov=n({token:t,factory:t.\u0275fac})}}return t})();var q=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=m({type:t})}static{this.\u0275inj=c({providers:[u,h]})}}return t})();export{S as a,E as b,h as c,q as d};
