import{n as c,o as d,p as l}from"./chunk-WMRP6X7F.js";import{da as a}from"./chunk-A4WWLITB.js";import{b as r,i as p}from"./chunk-QOJKCMZT.js";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})();p();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};
