{"version":3,"file":"home.4912fd2293666242a7cc.js","mappings":"iIAEa,CACTA,gBAAiB,WCAVC,MAAM,wDAADC,OADqB,KAG/BC,MAAK,SAAAC,GAAQ,OAAIA,EAASC,MAAM,IDCRF,MAAK,SAAAG,GACnBA,GAAQA,EAAKC,UAAYD,EAAKC,SAASC,OAHP,GAIhC,yDAA0BL,MAAK,SAAAM,GAAqB,OAAAA,EAAA,QAAiBC,KAAKJ,EAAK,GAEvF,GACJ,EAEAK,gBAAiB,WACb,yDAA0BR,MAAK,SAAAS,GAA2B,OAAAA,EAAA,QAAuBF,MAAM,GAC3F,EAEAA,KAAM,WACFG,KAAKb,kBACLa,KAAKF,iBACT,IElBCD,M,YCFLI,EAAOC,QAAUC,M","sources":["webpack://front-end-build-system/./src/views/home/home.js","webpack://front-end-build-system/./src/views/home/fetchbuyitagaindata.js","webpack://front-end-build-system/./src/views/home/index.js","webpack://front-end-build-system/external var \"jQuery\""],"sourcesContent":["import fetchBuyItAgainData from './fetchbuyitagaindata';\n\nconst home = {\n setupBuyItAgain: function () {\n const minimumAmountOfProductsRequired = 4;\n\n fetchBuyItAgainData().then(data => {\n if (data && data.products && data.products.length > minimumAmountOfProductsRequired) {\n import('./buyitagain.js').then(({default: buyItAgain}) => buyItAgain.init(data));\n }\n });\n },\n\n setupCategories: function () {\n import('./categories.js').then(({default: categoriesSlider}) => categoriesSlider.init());\n },\n\n init: function () {\n this.setupBuyItAgain();\n this.setupCategories();\n }\n};\n\nexport default home;\n","\nexport default function fetchBuyItAgainData(){\n const numberOfProductsReturned = 18;\n return fetch(\n `/api/BuyAgain/GetBuyAgainSuggestions?requestedNumber=${numberOfProductsReturned}`\n ).then(response => response.json());\n}","import home from './home.js';\n\nhome.init();\n","module.exports = jQuery;"],"names":["setupBuyItAgain","fetch","concat","then","response","json","data","products","length","_ref","init","setupCategories","_ref2","this","module","exports","jQuery"],"sourceRoot":""}