import{D as DataModel}from"./data-model-88af49fc.js";var ItemFetchState=function(){function t(e,n,a){var r=this;if(n===void 0){n=false}this.beforeFetch=function(){return new t(r.data,true,undefined)};this.afterFetch=function(e){return new t(DataModel.decode(e),false,undefined)};this.afterFetchError=function(e){return new t(r.data,false,e)};this.data=e;this.error=a;this.isPending=n}return t}();ItemFetchState.init=function(){return new ItemFetchState};export{ItemFetchState as I};