import{Nn as f,On as h,Qo as D,Rn as S,Un as d,Wn as p,Zn as U,ao as g,do as u}from"./chunk-RQDYBYBM.js";import{$d as m,ae as n,be as s,la as a,oa as l}from"./chunk-N6B2OJOY.js";var c=s(D,i=>i.vmmState.details),C=s(c,i=>i.unit),E=s(c,i=>i.entities),F=s(c,i=>i.costCenters),A=s(c,i=>i.loading);var O=(()=>{let r=class r{constructor(t){this.foerchStore=t}getSelectedUnitFromDetailPage(){return this.foerchStore.pipe(n(C))}isDetailPageLoading(){return this.foerchStore.pipe(n(A))}getSelectedUnitsCostCentersFromDetailPage(){return this.foerchStore.pipe(n(F))}getSelectedUnitEntitiesFromDetailPage(){return this.foerchStore.pipe(n(E))}resetUnitDetails(){this.foerchStore.dispatch(f())}loadUnitDetails(t,e){this.foerchStore.dispatch(h({customerCode:t,unitId:e}))}loadUnitCostCenters(t,e,o=null){this.foerchStore.dispatch(g({customerCode:t,unitId:e,params:o}))}loadUnitEntities(t,e,o=null){this.foerchStore.dispatch(S({customerCode:t,unitId:e,params:o}))}createUnitEntities(t,e,o,L=null){this.foerchStore.dispatch(d({customerCode:t,unitId:e,entities:o,params:L}))}changeUnit(t,e,o={}){this.foerchStore.dispatch(u({customerCode:t,unit:e,config:o}))}bookOutUnitEntities(t,e,o=null){this.foerchStore.dispatch(p({customerCode:t,bookOut:e,paginationParams:o}))}rebookUnitEntities(t,e,o=null){this.foerchStore.dispatch(U({customerCode:t,rebook:e,paginationParams:o}))}};r.\u0275fac=function(e){return new(e||r)(l(m))},r.\u0275prov=a({token:r,factory:r.\u0275fac,providedIn:"root"});let i=r;return i})();export{O as a};