import{n as c,o as l,p as x}from"./chunk-SOETE4NY.js";import{ea as b}from"./chunk-LEOKSAW2.js";import{d as t,n}from"./chunk-HE7HQ6LI.js";n();var r=(()=>{class o{static{this.type="[Cashboxes] Set Cashboxes"}constructor(s){this.cashboxes=s}}return o})(),C=(()=>{class o{static{this.type="[Cashboxes] Set Cashbox"}constructor(s){this.cashbox=s}}return o})(),i=(()=>{class o{static{this.type="[Cashboxes] Clear Cashboxes"}}return o})();var a=class h{static cashboxes(e){return e.cashboxes}static selectedCashbox(e){return e.selectedCashboxes}setCashboxes(e,s){e.setState({cashboxes:s.cashboxes,selectedCashboxes:e.getState().selectedCashboxes})}setSelectedCashbox(e,s){e.setState({selectedCashboxes:s.cashbox,cashboxes:e.getState().cashboxes})}clearCashboxes(e){e.setState({cashboxes:[],selectedCashboxes:null})}static{this.\u0275fac=function(s){return new(s||h)}}static{this.\u0275prov=b({token:h,factory:h.\u0275fac})}};t([c(r)],a.prototype,"setCashboxes",null);t([c(C)],a.prototype,"setSelectedCashbox",null);t([c(i)],a.prototype,"clearCashboxes",null);t([x()],a,"cashboxes",null);t([x()],a,"selectedCashbox",null);a=t([l({name:"cashboxes",defaults:{cashboxes:[],selectedCashboxes:null}})],a);export{r as a,a as b};
