{"version":3,"file":"EventListeners-38634b18-BV2ETX0a.js","sources":["../../../node_modules/@trv-tds/react/node_modules/@trv-tds/webcomponents/dist/esm/EventListeners-38634b18.js"],"sourcesContent":["class EventListeners {\n constructor() {\n this.bindings = [];\n }\n addListener(target, type, listener, option) {\n const binding = { target, type, listener, option };\n target.addEventListener(type, listener, option);\n this.bindings.push(binding);\n return binding;\n }\n removeListener(binding) {\n const index = this.bindings.indexOf(binding);\n if (index > -1) {\n const { target, type, listener, option } = this.bindings[index];\n target.removeEventListener(type, listener, option);\n this.bindings.splice(index, 1);\n }\n }\n removeListeners() {\n this.bindings.forEach(({ target, type, listener, option }) => {\n target.removeEventListener(type, listener, option);\n });\n this.bindings = [];\n }\n}\n\nexport { EventListeners as E };\n\n//# sourceMappingURL=EventListeners-38634b18.js.map"],"names":["EventListeners","target","type","listener","option","binding","index"],"mappings":"AAAA,MAAMA,CAAe,CACjB,aAAc,CACV,KAAK,SAAW,CAAE,CAC1B,CACI,YAAYC,EAAQC,EAAMC,EAAUC,EAAQ,CACxC,MAAMC,EAAU,CAAE,OAAAJ,EAAQ,KAAAC,EAAM,SAAAC,EAAU,OAAAC,CAAQ,EAClD,OAAAH,EAAO,iBAAiBC,EAAMC,EAAUC,CAAM,EAC9C,KAAK,SAAS,KAAKC,CAAO,EACnBA,CACf,CACI,eAAeA,EAAS,CACpB,MAAMC,EAAQ,KAAK,SAAS,QAAQD,CAAO,EAC3C,GAAIC,EAAQ,GAAI,CACZ,KAAM,CAAE,OAAAL,EAAQ,KAAAC,EAAM,SAAAC,EAAU,OAAAC,CAAM,EAAK,KAAK,SAASE,CAAK,EAC9DL,EAAO,oBAAoBC,EAAMC,EAAUC,CAAM,EACjD,KAAK,SAAS,OAAOE,EAAO,CAAC,CACzC,CACA,CACI,iBAAkB,CACd,KAAK,SAAS,QAAQ,CAAC,CAAE,OAAAL,EAAQ,KAAAC,EAAM,SAAAC,EAAU,OAAAC,KAAa,CAC1DH,EAAO,oBAAoBC,EAAMC,EAAUC,CAAM,CAC7D,CAAS,EACD,KAAK,SAAW,CAAE,CAC1B,CACA","x_google_ignoreList":[0]}