{"version":3,"file":"component.js","sources":["../../../../IREP.Web.Content/v7/scripts/modules/component.ts"],"sourcesContent":["export default class Component {\n constructor(id) {\n this.id = id;\n this.$component = $(id);\n this.uid = this.$component.data('controluid');\n }\n delay(timeout) {\n const deferred = $.Deferred();\n setTimeout(() => {\n deferred.resolve();\n }, timeout);\n return deferred.promise();\n }\n requestAnimationFrameShim(callback) {\n window.setTimeout(callback, 1000 / 60);\n }\n requestAnimationFrame(callback) {\n const requestFn = window.requestAnimationFrame || this.requestAnimationFrameShim;\n requestFn.call(window, callback);\n }\n}\n"],"names":["Component","constructor","id","this","$component","$","uid","data","delay","timeout","deferred","Deferred","setTimeout","resolve","promise","requestAnimationFrameShim","callback","window","requestAnimationFrame","call"],"mappings":"AAAe,MAAMA,EACjB,WAAAC,CAAYC,GACRC,KAAKD,GAAKA,EACVC,KAAKC,WAAaC,EAAEH,GACpBC,KAAKG,IAAMH,KAAKC,WAAWG,KAAK,aACxC,CACI,KAAAC,CAAMC,GACF,MAAMC,EAAWL,EAAEM,WAInB,OAHAC,YAAW,KACPF,EAASG,SAAS,GACnBJ,GACIC,EAASI,SACxB,CACI,yBAAAC,CAA0BC,GACtBC,OAAOL,WAAWI,EAAU,IAAO,GAC3C,CACI,qBAAAE,CAAsBF,IACAC,OAAOC,uBAAyBf,KAAKY,2BAC7CI,KAAKF,OAAQD,EAC/B"}