{"ast":null,"code":"// Corresponds to 10 frames at 60 Hz.\n// A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.\nexport default function debounce(func) {\n  var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 166;\n  var timeout;\n\n  function debounced() {\n    var _this = this;\n\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n\n    var later = function later() {\n      func.apply(_this, args);\n    };\n\n    clearTimeout(timeout);\n    timeout = setTimeout(later, wait);\n  }\n\n  debounced.clear = function () {\n    clearTimeout(timeout);\n  };\n\n  return debounced;\n}","map":{"version":3,"sources":["C:/laragon/www/iot.mksolusi/DriverOPCDA/frontend/node_modules/@material-ui/data-grid/node_modules/@material-ui/utils/esm/debounce.js"],"names":["debounce","func","wait","timeout","debounced","args","later","apply","clearTimeout","setTimeout","clear"],"mappings":"AAAA;AACA;AACA,eAAe,SAASA,QAAT,CAAkBC,IAAlB,EAAoC;AAAA,MAAZC,IAAY,uEAAL,GAAK;AACjD,MAAIC,OAAJ;;AAEA,WAASC,SAAT,GAA4B;AAAA;;AAAA,sCAANC,IAAM;AAANA,MAAAA,IAAM;AAAA;;AAC1B,QAAMC,KAAK,GAAG,SAARA,KAAQ,GAAM;AAClBL,MAAAA,IAAI,CAACM,KAAL,CAAW,KAAX,EAAiBF,IAAjB;AACD,KAFD;;AAIAG,IAAAA,YAAY,CAACL,OAAD,CAAZ;AACAA,IAAAA,OAAO,GAAGM,UAAU,CAACH,KAAD,EAAQJ,IAAR,CAApB;AACD;;AAEDE,EAAAA,SAAS,CAACM,KAAV,GAAkB,YAAM;AACtBF,IAAAA,YAAY,CAACL,OAAD,CAAZ;AACD,GAFD;;AAIA,SAAOC,SAAP;AACD","sourcesContent":["// Corresponds to 10 frames at 60 Hz.\n// A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.\nexport default function debounce(func, wait = 166) {\n  let timeout;\n\n  function debounced(...args) {\n    const later = () => {\n      func.apply(this, args);\n    };\n\n    clearTimeout(timeout);\n    timeout = setTimeout(later, wait);\n  }\n\n  debounced.clear = () => {\n    clearTimeout(timeout);\n  };\n\n  return debounced;\n}"]},"metadata":{},"sourceType":"module"}