<gh_stars>0
{"ast":null,"code":"export var Timeout = {\n  timeout: null,\n  set: function set(method) {\n    var time = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1000;\n    this.timeout = setTimeout(function () {\n      method();\n    }, time);\n  },\n  clear: function clear() {\n    clearTimeout(this.timeout);\n  }\n};","map":{"version":3,"sources":["C:/Users/zura.ph/WebstormProjects/slotmaster-dashboard/src/core/utils/timeout.js"],"names":["Timeout","timeout","set","method","time","setTimeout","clear","clearTimeout"],"mappings":"AAAA,OAAO,IAAMA,OAAO,GAAG;AACrBC,EAAAA,OAAO,EAAC,IADa;AAErBC,EAAAA,GAAG,EAAC,aAAUC,MAAV,EAA2B;AAAA,QAAVC,IAAU,uEAAL,IAAK;AAC3B,SAAKH,OAAL,GAAeI,UAAU,CAAC,YAAI;AAC5BF,MAAAA,MAAM;AACP,KAFwB,EAEvBC,IAFuB,CAAzB;AAGH,GANoB;AAOrBE,EAAAA,KAAK,EAAC,iBAAW;AACdC,IAAAA,YAAY,CAAC,KAAKN,OAAN,CAAZ;AACF;AAToB,CAAhB","sourcesContent":["export const Timeout = {\r\n  timeout:null,\r\n  set:function (method,time=1000){\r\n      this.timeout = setTimeout(()=>{\r\n        method()\r\n      },time)\r\n  },\r\n  clear:function (){\r\n     clearTimeout(this.timeout)\r\n  }\r\n}\r\n"]},"metadata":{},"sourceType":"module"}