diff options
Diffstat (limited to 'includes/external/matrix/node_modules/matrix-js-sdk/lib/models/related-relations.js.map')
-rw-r--r-- | includes/external/matrix/node_modules/matrix-js-sdk/lib/models/related-relations.js.map | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/includes/external/matrix/node_modules/matrix-js-sdk/lib/models/related-relations.js.map b/includes/external/matrix/node_modules/matrix-js-sdk/lib/models/related-relations.js.map deleted file mode 100644 index 5fb7a0c..0000000 --- a/includes/external/matrix/node_modules/matrix-js-sdk/lib/models/related-relations.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"related-relations.js","names":["RelatedRelations","constructor","relations","_defineProperty2","default","filter","r","getRelations","reduce","c","p","on","ev","fn","forEach","off","exports"],"sources":["../../src/models/related-relations.ts"],"sourcesContent":["/*\nCopyright 2022 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { Relations, RelationsEvent, EventHandlerMap } from \"./relations\";\nimport { MatrixEvent } from \"./event\";\nimport { Listener } from \"./typed-event-emitter\";\n\nexport class RelatedRelations {\n private relations: Relations[];\n\n public constructor(relations: Relations[]) {\n this.relations = relations.filter((r) => !!r);\n }\n\n public getRelations(): MatrixEvent[] {\n return this.relations.reduce<MatrixEvent[]>((c, p) => [...c, ...p.getRelations()], []);\n }\n\n public on<T extends RelationsEvent>(ev: T, fn: Listener<RelationsEvent, EventHandlerMap, T>): void {\n this.relations.forEach((r) => r.on(ev, fn));\n }\n\n public off<T extends RelationsEvent>(ev: T, fn: Listener<RelationsEvent, EventHandlerMap, T>): void {\n this.relations.forEach((r) => r.off(ev, fn));\n }\n}\n"],"mappings":";;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMO,MAAMA,gBAAgB,CAAC;EAGnBC,WAAWA,CAACC,SAAsB,EAAE;IAAA,IAAAC,gBAAA,CAAAC,OAAA;IACvC,IAAI,CAACF,SAAS,GAAGA,SAAS,CAACG,MAAM,CAAEC,CAAC,IAAK,CAAC,CAACA,CAAC,CAAC;EACjD;EAEOC,YAAYA,CAAA,EAAkB;IACjC,OAAO,IAAI,CAACL,SAAS,CAACM,MAAM,CAAgB,CAACC,CAAC,EAAEC,CAAC,KAAK,CAAC,GAAGD,CAAC,EAAE,GAAGC,CAAC,CAACH,YAAY,EAAE,CAAC,EAAE,EAAE,CAAC;EAC1F;EAEOI,EAAEA,CAA2BC,EAAK,EAAEC,EAAgD,EAAQ;IAC/F,IAAI,CAACX,SAAS,CAACY,OAAO,CAAER,CAAC,IAAKA,CAAC,CAACK,EAAE,CAACC,EAAE,EAAEC,EAAE,CAAC,CAAC;EAC/C;EAEOE,GAAGA,CAA2BH,EAAK,EAAEC,EAAgD,EAAQ;IAChG,IAAI,CAACX,SAAS,CAACY,OAAO,CAAER,CAAC,IAAKA,CAAC,CAACS,GAAG,CAACH,EAAE,EAAEC,EAAE,CAAC,CAAC;EAChD;AACJ;AAACG,OAAA,CAAAhB,gBAAA,GAAAA,gBAAA"}
\ No newline at end of file |