"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../../ext-esm/tslib/tslib.es6.js'),t=require("../../../clients/jsonApi/index.js");exports.initialDataFetcher=function(r){return function(s,n){return e.__awaiter(this,void 0,void 0,(function(){var i,a;return e.__generator(this,(function(o){switch(o.label){case 0:i=null,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,t.getAppStorage(r.provider,r.collection,s,e.__assign(e.__assign({},r.params),{query:n?"{timestamp#lt#".concat(n,"}"):null,sort:"{timestamp: -1}",limit:1}))];case 2:return i=o.sent(),[3,4];case 3:return a=o.sent(),console.error(a),[3,4];case 4:return[2,i]}}))}))}};
