import{n as c,o as l,p as x}from"./chunk-H7LDOWEY.js";import{da as b}from"./chunk-ZGECHOBP.js";import{b as t,i as n}from"./chunk-QOJKCMZT.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};
