System.register(["./p-86f17250.system.js","./p-da593370.system.js","./p-cc2dfee2.system.js"],(function(t){"use strict";var e,i,s,r;return{setters:[function(t){e=t.D},function(t){i=t.C},function(t){s=t.r;r=t.c}],execute:function(){var a=function(){function t(t,e,i,s,r,a){this.apiData=t;this.callback=a;this.params=e;this.table=i;this.fields=r;this.query=s}t.prototype.fetchData=function(t){var a=this;var n;if(t.isPending){return}this.callback(t.beforeFetch());var c=this.table.name;var f=((n=this.query)===null||n===void 0?void 0:n.filter)?s(r(this.query.filter),this.params):{comparison:i.Eq,id:"_id",value:this.params.itemId};var l={fields:this.fields,filter:f,limit:1,skip:0};this.apiData.query(c,l).then((function(i){a.callback(t.afterFetch(i.results.length>0?i.results[0]:new e))}),(function(e){a.callback(t.afterFetchError(e))}))};return t}();t("I",a)}}}));