blob: e09f06e6950847ad47bb00b9a1ba902dc342a308 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Gets the flash act's side. This will early exit if flashSideData is missing.
// If there's no side whose list of flash acts includes this act, the output
// dependency will be null.
import {templateCompositeFrom} from '#composite';
import {withUniqueReferencingThing} from '#composite/wiki-data';
import {soupyReverse} from '#composite/wiki-properties';
export default templateCompositeFrom({
annotation: `withFlashSide`,
outputs: ['#flashSide'],
steps: () => [
withUniqueReferencingThing({
reverse: soupyReverse.input('flashSidesWhoseActsInclude'),
}).outputs({
['#uniqueReferencingThing']: '#flashSide',
}),
],
});
|