blob: 3d4d081e0b151e4b328a168917e7547bebff9b60 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 | // Gets the track section containing this track from its album's track list.
import {templateCompositeFrom} from '#composite';
import {withUniqueReferencingThing} from '#composite/wiki-data';
import {soupyReverse} from '#composite/wiki-properties';
export default templateCompositeFrom({
  annotation: `withContainingTrackSection`,
  outputs: ['#trackSection'],
  steps: () => [
    withUniqueReferencingThing({
      reverse: soupyReverse.input('trackSectionsWhichInclude'),
    }).outputs({
      ['#uniqueReferencingThing']: '#trackSection',
    }),
  ],
});
 |