iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://ecommerceDB.com/_nuxt/CqqOmRfu.js
import{i as A,M as o}from"./llFuKhWI.js";const h=()=>{const s=A(),i=(e,n=o.ONE_HOUR)=>{const t=s.payload.data[e]||s.static.data[e];if(!(t!=null&&t._fetchedAt)&&Array.isArray(t)&&(t._fetchedAt=new Date,s.payload.data[e]=t),!(t!=null&&t._fetchedAt))return;const r=new Date(t._fetchedAt);if(r.setTime(r.getTime()+n),!(r.getTime(){const r=i(e,t);return r&&n&&(typeof n=="function"?n(r):n.value=r),r},c=e=>{if(!e)return e;if(Array.isArray(e)){const n=[...e];return n._fetchedAt=new Date,n}return{...e,_fetchedAt:new Date}},u=(e,n)=>(n&&(n.value=e),c(e));function f(...e){return JSON.stringify(e).replace(/["[\]{},:\s]/g,"")}return{getFromCache:i,assignFromCache:a,addTimestamp:c,assignAndTimestamp:u,createCacheKey:f}};export{h as u};