import{p as h,q as b,r as l}from"./chunk-GW2OL5S3.js";import{ea as x}from"./chunk-DYUFV4HF.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-TTT4O4HK.js.map
