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