"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib");exports.fetchBookSuggestions=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var t,r,o;return e.__generator(this,function(e){switch(e.label){case 0:t="https://dev-creative-workspace.techo.camp/backend/book-finder-mode/books/titles",e.label=1;case 1:return e.trys.push([1,4,,5]),[4,fetch(t)];case 2:if(!(r=e.sent()).ok)throw new Error("API Error: ".concat(r.status," ").concat(r.statusText));return[4,r.json()];case 3:return[2,e.sent()];case 4:throw o=e.sent(),console.error("Failed to fetch book suggestions:",o),o;case 5:return[2]}})})};
//# sourceMappingURL=bookGenieAPI.js.map
