import{n as c,o as d,p as l}from"./chunk-3VQS547U.js";import{da as a}from"./chunk-QMYHTLAJ.js";import{d as r,n as p}from"./chunk-HE7HQ6LI.js";p();var i=(()=>{class S{static{this.type="[Store] Set Stores"}constructor(t){this.stores=t}}return S})(),n=(()=>{class S{static{this.type="[Store] Set Selected Store"}constructor(t){this.selectedStoreId=t}}return S})();var o=class s{static selectedStoreId(e){return e.selectedStoreId}static stores(e){return e.stores}setStores(e,t){e.setState({stores:t.stores,selectedStoreId:e.getState().selectedStoreId})}saveSelectedStore(e,t){e.setState({stores:e.getState().stores,selectedStoreId:t.selectedStoreId})}static{this.\u0275fac=function(t){return new(t||s)}}static{this.\u0275prov=a({token:s,factory:s.\u0275fac})}};r([c(i)],o.prototype,"setStores",null);r([c(n)],o.prototype,"saveSelectedStore",null);r([l()],o,"selectedStoreId",null);r([l()],o,"stores",null);o=r([d({name:"store",defaults:{selectedStoreId:null,stores:[]}})],o);export{i as a,n as b,o as c};
