import{a as j}from"./chunk-LSGUGXTS.js";import{b as D,c as T}from"./chunk-T6ZZJZVN.js";import{a as O}from"./chunk-TC3S442Y.js";import"./chunk-SWQ6KWB2.js";import{e as F,f as c}from"./chunk-RZX3K5HT.js";import"./chunk-3TM4PNYS.js";import"./chunk-QZHSUPXF.js";import"./chunk-MPIXEIKK.js";import"./chunk-YBGMN6OR.js";import"./chunk-VN3CQEPZ.js";import"./chunk-WQGDHA2L.js";import"./chunk-RELVBEUI.js";import"./chunk-2QUP3RQX.js";import"./chunk-YFLLMV2L.js";import"./chunk-J363ANGI.js";import"./chunk-RKWKUAWW.js";import"./chunk-YA55SA6Z.js";import"./chunk-EE2S3MYD.js";import"./chunk-7EAWKBIV.js";import"./chunk-V64RF3DS.js";import{$b as M,fd as I,na as m,qd as _,rd as E}from"./chunk-ATD4AEXQ.js";import{Kc as C,Oa as i,Ta as d,Ua as s,Xa as f,_c as v,bd as S,da as a,gd as q,id as u,nb as l,ob as R,pb as h,zb as g}from"./chunk-BXH3QC5E.js";var P=(()=>{class e extends F{router;toastMessageService;translateService;checkpointScanFrameService;uniqueItemID;unsavedChanges=!1;constructor(r,t,n,o,p){super(r,o),this.router=t,this.toastMessageService=n,this.translateService=o,this.checkpointScanFrameService=p}ngOnInit(){this.uniqueItemID=this.checkpointScanFrameService.getCheckpointScannedItem()?.uniqueItemID}onConfirmRequestRepair(r){let t=r?"MSG_REPAIR_REMOVED":"MSG_REPAIR_REQUESTED";this.toastMessageService.showToastPanel(I.getSuccessDefaultConfig().withMessage(this.translateService.instant(t))),this.unsavedChanges=!1,this.router.navigate([m.MainPanel.path,m.Dialogs.CheckpointScan.path,O.Scan.path]).catch(M.EMPTY_REJECTION_HANDLER)}repairsChanged(){this.unsavedChanges=!0}isSomethingChanged(){return this.unsavedChanges}static \u0275fac=function(t){return new(t||e)(i(_),i(q),i(E),i(v),i(j))};static \u0275cmp=d({type:e,selectors:[["abs-menu-option-request-repair-frame"]],standalone:!1,features:[f],decls:1,vars:1,consts:[[3,"repairRequested","repairsChanged","uniqueItemID"]],template:function(t,n){t&1&&(R(0,"abs-request-repair-card",0),g("repairRequested",function(p){return n.onConfirmRequestRepair(p)})("repairsChanged",function(){return n.repairsChanged()}),h()),t&2&&l("uniqueItemID",n.uniqueItemID)},dependencies:[D],encapsulation:2})}return e})();var k=[{path:"",component:P,providers:[c],canDeactivate:[c]}],A=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=s({type:e});static \u0275inj=a({imports:[u.forChild(k),u]})}return e})();var ae=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=s({type:e});static \u0275inj=a({imports:[C,S,A,T]})}return e})();export{ae as MenuOptionRequestRepairModule};
