lbt_heatmap:
  label: LBT
  namespace: Organisms/TM - Less Busy Trains
  use: '@organisms/tm-lbt/lbt-heatmap/lbt-heatmap.twig'
  description: Less Busy Trains - Heatmap
  libraries:
    - lbt_heatmap_lib:
        css:
          component:
            ../styles/lbt-heatmap.css: {weight: 10}

  fields:
    origin:
      type: text
      label: Origin
      description: Origin station
      preview: Somewhere
    destination:
      type: text
      label: Destination
      description: Destination station
      preview: Elsewhere
    route:
      type: text
      label: Route
      description: RouteID
      preview:
        faker: lorem.slug
    elements:
      type: object
      label: Elements
      preview:
        disclaimer: <p>Please be aware - this is the disclaminer message.</p>
        no_results: <p>Sorry, there are no results.</p>
    heatmap_settings:
      type: object
      label: Heatmap settings
      preview:
        key: above
        thresholds:
          quiet:
            label: Quiet
            value: '0'
            case: '1'
          moderate:
            label: Moderate
            value: '40'
            case: '2'
          busy:
            label: Busy
            value: '60'
            case: '3'
          crowded:
            label: Crowded
            value: '80'
            case: '4'
    heatmap:
      type: object
      label: Elements
      preview:
        key: 1
        thresholds: 1
    routes:
      type: text
      label: Routes
      description: RouteID
      preview: /1
    stations:
      type: object
      label: Stations
      preview:
        '1':
          - Birmingham New Street
          - Smethwick Rolfe Street
          - Smethwick Galton Bridge
          - Sandwell & Dudley
          - Dudley Port
          - Tipton
          - Coseley
          - Wolverhampton
    data:
      type: object
      label: Data
      preview:
        2W02:
          stops:
            - _t: 639
              _c: 34
              _p: 0.15
              _s: 0
              _r: '1'
              time:
                formatted: 06:39
                h: '06'
                m: '39'
              loading:
                percent: 15
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 644
              _c: 34
              _p: 0.15
              _s: 1
              _r: '1'
              time:
                formatted: 06:44
                h: '06'
                m: '44'
              loading:
                percent: 15
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 647
              _c: 34
              _p: 0.15
              _s: 2
              _r: '1'
              time:
                formatted: 06:47
                h: '06'
                m: '47'
              loading:
                percent: 15
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 650
              _c: 34
              _p: 0.15
              _s: 3
              _r: '1'
              time:
                formatted: 06:50
                h: '06'
                m: '50'
              loading:
                percent: 15
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 654
              _c: 34
              _p: 0.15
              _s: 4
              _r: '1'
              time:
                formatted: 06:54
                h: '06'
                m: '54'
              loading:
                percent: 15
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 656
              _c: 34
              _p: 0.15
              _s: 5
              _r: '1'
              time:
                formatted: 06:56
                h: '06'
                m: '56'
              loading:
                percent: 15
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 659
              _c: 34
              _p: 0.15
              _s: 6
              _r: '1'
              time:
                formatted: 06:59
                h: '06'
                m: '59'
              loading:
                percent: 15
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 704
              _c: 34
              _p: 0.15
              _s: 7
              _r: '1'
              _d: true
              time:
                formatted: 07:04
                h: '07'
                m: '04'
              loading:
                percent: 15
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
          journey_data:
            start:
              _t: 639
              _c: 34
              _p: 0.15
              _s: 0
              _r: '1'
              time:
                formatted: 06:39
                h: '06'
                m: '39'
              loading:
                percent: 15
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            end:
              _t: 704
              _c: 34
              _p: 0.15
              _s: 7
              _r: '1'
              _d: true
              time:
                formatted: 07:04
                h: '07'
                m: '04'
              loading:
                percent: 15
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            duration:
              formatted: 25 mins
              h: h
              m: i
            loading:
              percent: 15
              threshold: quiet
              label: Quiet
              value: '0'
              case: '1'
        2W04:
          stops:
            - _t: 707
              _c: 35
              _p: 0.15
              _s: 0
              _r: '1'
              time:
                formatted: 07:07
                h: '07'
                m: '07'
              loading:
                percent: 15
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 712
              _c: 35
              _p: 0.15
              _s: 1
              _r: '1'
              time:
                formatted: 07:12
                h: '07'
                m: '12'
              loading:
                percent: 15
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 715
              _c: 35
              _p: 0.15
              _s: 2
              _r: '1'
              time:
                formatted: 07:15
                h: '07'
                m: '15'
              loading:
                percent: 15
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 718
              _c: 35
              _p: 0.15
              _s: 3
              _r: '1'
              time:
                formatted: 07:18
                h: '07'
                m: '18'
              loading:
                percent: 15
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 722
              _c: 35
              _p: 0.15
              _s: 4
              _r: '1'
              time:
                formatted: 07:22
                h: '07'
                m: '22'
              loading:
                percent: 15
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 724
              _c: 35
              _p: 0.15
              _s: 5
              _r: '1'
              time:
                formatted: 07:24
                h: '07'
                m: '24'
              loading:
                percent: 15
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 727
              _c: 35
              _p: 0.15
              _s: 6
              _r: '1'
              time:
                formatted: 07:27
                h: '07'
                m: '27'
              loading:
                percent: 15
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 733
              _c: 35
              _p: 0.15
              _s: 7
              _r: '1'
              _d: true
              time:
                formatted: 07:33
                h: '07'
                m: '33'
              loading:
                percent: 15
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
          journey_data:
            start:
              _t: 707
              _c: 35
              _p: 0.15
              _s: 0
              _r: '1'
              time:
                formatted: 07:07
                h: '07'
                m: '07'
              loading:
                percent: 15
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            end:
              _t: 733
              _c: 35
              _p: 0.15
              _s: 7
              _r: '1'
              _d: true
              time:
                formatted: 07:33
                h: '07'
                m: '33'
              loading:
                percent: 15
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            duration:
              formatted: 26 mins
              h: h
              m: i
            loading:
              percent: 15
              threshold: quiet
              label: Quiet
              value: '0'
              case: '1'
        2W06:
          stops:
            - _t: 739
              _c: 39
              _p: 0.17
              _s: 0
              _r: '1'
              time:
                formatted: 07:39
                h: '07'
                m: '39'
              loading:
                percent: 17
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 745
              _c: 39
              _p: 0.17
              _s: 1
              _r: '1'
              time:
                formatted: 07:45
                h: '07'
                m: '45'
              loading:
                percent: 17
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 747
              _c: 39
              _p: 0.17
              _s: 2
              _r: '1'
              time:
                formatted: 07:47
                h: '07'
                m: '47'
              loading:
                percent: 17
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 750
              _c: 39
              _p: 0.17
              _s: 3
              _r: '1'
              time:
                formatted: 07:50
                h: '07'
                m: '50'
              loading:
                percent: 17
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 753
              _c: 39
              _p: 0.17
              _s: 4
              _r: '1'
              time:
                formatted: 07:53
                h: '07'
                m: '53'
              loading:
                percent: 17
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 756
              _c: 39
              _p: 0.17
              _s: 5
              _r: '1'
              time:
                formatted: 07:56
                h: '07'
                m: '56'
              loading:
                percent: 17
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 759
              _c: 39
              _p: 0.17
              _s: 6
              _r: '1'
              time:
                formatted: 07:59
                h: '07'
                m: '59'
              loading:
                percent: 17
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 806
              _c: 39
              _p: 0.17
              _s: 7
              _r: '1'
              _d: true
              time:
                formatted: 08:06
                h: '08'
                m: '06'
              loading:
                percent: 17
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
          journey_data:
            start:
              _t: 739
              _c: 39
              _p: 0.17
              _s: 0
              _r: '1'
              time:
                formatted: 07:39
                h: '07'
                m: '39'
              loading:
                percent: 17
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            end:
              _t: 806
              _c: 39
              _p: 0.17
              _s: 7
              _r: '1'
              _d: true
              time:
                formatted: 08:06
                h: '08'
                m: '06'
              loading:
                percent: 17
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            duration:
              formatted: 27 mins
              h: h
              m: i
            loading:
              percent: 17
              threshold: quiet
              label: Quiet
              value: '0'
              case: '1'
        2W08:
          stops:
            - _t: 807
              _c: 150
              _p: 0.65
              _s: 0
              _r: '1'
              time:
                formatted: 08:07
                h: '08'
                m: '07'
              loading:
                percent: 65
                threshold: busy
                label: Busy
                value: '60'
                case: '3'
            - _t: 813
              _c: 150
              _p: 0.65
              _s: 1
              _r: '1'
              time:
                formatted: 08:13
                h: '08'
                m: '13'
              loading:
                percent: 65
                threshold: busy
                label: Busy
                value: '60'
                case: '3'
            - _t: 815
              _c: 150
              _p: 0.65
              _s: 2
              _r: '1'
              time:
                formatted: 08:15
                h: '08'
                m: '15'
              loading:
                percent: 65
                threshold: busy
                label: Busy
                value: '60'
                case: '3'
            - _t: 818
              _c: 150
              _p: 0.65
              _s: 3
              _r: '1'
              time:
                formatted: 08:18
                h: '08'
                m: '18'
              loading:
                percent: 65
                threshold: busy
                label: Busy
                value: '60'
                case: '3'
            - _t: 822
              _c: 200
              _p: 0.87
              _s: 4
              _r: '1'
              time:
                formatted: 08:22
                h: '08'
                m: '22'
              loading:
                percent: 87
                threshold: crowded
                label: Crowded
                value: '80'
                case: '4'
            - _t: 824
              _c: 200
              _p: 0.87
              _s: 5
              _r: '1'
              time:
                formatted: 08:24
                h: '08'
                m: '24'
              loading:
                percent: 87
                threshold: crowded
                label: Crowded
                value: '80'
                case: '4'
            - _t: 827
              _c: 100
              _p: 0.43
              _s: 6
              _r: '1'
              time:
                formatted: 08:27
                h: '08'
                m: '27'
              loading:
                percent: 43
                threshold: moderate
                label: Moderate
                value: '40'
                case: '2'
            - _t: 832
              _c: 100
              _p: 0.43
              _s: 7
              _r: '1'
              _d: true
              time:
                formatted: 08:32
                h: '08'
                m: '32'
              loading:
                percent: 43
                threshold: moderate
                label: Moderate
                value: '40'
                case: '2'
          journey_data:
            start:
              _t: 807
              _c: 150
              _p: 0.65
              _s: 0
              _r: '1'
              time:
                formatted: 08:07
                h: '08'
                m: '07'
              loading:
                percent: 65
                threshold: busy
                label: Busy
                value: '60'
                case: '3'
            end:
              _t: 832
              _c: 100
              _p: 0.43
              _s: 7
              _r: '1'
              _d: true
              time:
                formatted: 08:32
                h: '08'
                m: '32'
              loading:
                percent: 43
                threshold: moderate
                label: Moderate
                value: '40'
                case: '2'
            duration:
              formatted: 25 mins
              h: h
              m: i
            loading:
              percent: 68.14285714285714
              threshold: busy
              label: Busy
              value: '60'
              case: '3'
        2W10:
          stops:
            - _t: 840
              _c: 130
              _p: 0.57
              _s: 0
              _r: '1'
              time:
                formatted: 08:40
                h: '08'
                m: '40'
              loading:
                percent: 56.99999999999999
                threshold: moderate
                label: Moderate
                value: '40'
                case: '2'
            - _t: 846
              _c: 130
              _p: 0.57
              _s: 1
              _r: '1'
              time:
                formatted: 08:46
                h: '08'
                m: '46'
              loading:
                percent: 56.99999999999999
                threshold: moderate
                label: Moderate
                value: '40'
                case: '2'
            - _t: 848
              _c: 150
              _p: 0.65
              _s: 2
              _r: '1'
              time:
                formatted: 08:48
                h: '08'
                m: '48'
              loading:
                percent: 65
                threshold: busy
                label: Busy
                value: '60'
                case: '3'
            - _t: 851
              _c: 150
              _p: 0.65
              _s: 3
              _r: '1'
              time:
                formatted: 08:51
                h: '08'
                m: '51'
              loading:
                percent: 65
                threshold: busy
                label: Busy
                value: '60'
                case: '3'
            - _t: 855
              _c: 100
              _p: 0.43
              _s: 4
              _r: '1'
              time:
                formatted: 08:55
                h: '08'
                m: '55'
              loading:
                percent: 43
                threshold: moderate
                label: Moderate
                value: '40'
                case: '2'
            - _t: 857
              _c: 100
              _p: 0.43
              _s: 5
              _r: '1'
              time:
                formatted: 08:57
                h: '08'
                m: '57'
              loading:
                percent: 43
                threshold: moderate
                label: Moderate
                value: '40'
                case: '2'
            - _t: 900
              _c: 100
              _p: 0.43
              _s: 6
              _r: '1'
              time:
                formatted: 09:00
                h: '09'
                m: '00'
              loading:
                percent: 43
                threshold: moderate
                label: Moderate
                value: '40'
                case: '2'
            - _t: 906
              _c: 100
              _p: 0.43
              _s: 7
              _r: '1'
              _d: true
              time:
                formatted: 09:06
                h: '09'
                m: '06'
              loading:
                percent: 43
                threshold: moderate
                label: Moderate
                value: '40'
                case: '2'
          journey_data:
            start:
              _t: 840
              _c: 130
              _p: 0.57
              _s: 0
              _r: '1'
              time:
                formatted: 08:40
                h: '08'
                m: '40'
              loading:
                percent: 56.99999999999999
                threshold: moderate
                label: Moderate
                value: '40'
                case: '2'
            end:
              _t: 906
              _c: 100
              _p: 0.43
              _s: 7
              _r: '1'
              _d: true
              time:
                formatted: 09:06
                h: '09'
                m: '06'
              loading:
                percent: 43
                threshold: moderate
                label: Moderate
                value: '40'
                case: '2'
            duration:
              formatted: 26 mins
              h: h
              m: i
            loading:
              percent: 53.28571428571429
              threshold: moderate
              label: Moderate
              value: '40'
              case: '2'
        2W12:
          stops:
            - _t: 907
              _c: 100
              _p: 0.43
              _s: 0
              _r: '1'
              time:
                formatted: 09:07
                h: '09'
                m: '07'
              loading:
                percent: 43
                threshold: moderate
                label: Moderate
                value: '40'
                case: '2'
            - _t: 913
              _c: 100
              _p: 0.43
              _s: 1
              _r: '1'
              time:
                formatted: 09:13
                h: '09'
                m: '13'
              loading:
                percent: 43
                threshold: moderate
                label: Moderate
                value: '40'
                case: '2'
            - _t: 915
              _c: 80
              _p: 0.35
              _s: 2
              _r: '1'
              time:
                formatted: 09:15
                h: '09'
                m: '15'
              loading:
                percent: 35
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 917
              _c: 80
              _p: 0.35
              _s: 3
              _r: '1'
              time:
                formatted: 09:17
                h: '09'
                m: '17'
              loading:
                percent: 35
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 921
              _c: 80
              _p: 0.35
              _s: 4
              _r: '1'
              time:
                formatted: 09:21
                h: '09'
                m: '21'
              loading:
                percent: 35
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 923
              _c: 60
              _p: 0.26
              _s: 5
              _r: '1'
              time:
                formatted: 09:23
                h: '09'
                m: '23'
              loading:
                percent: 26
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 927
              _c: 60
              _p: 0.26
              _s: 6
              _r: '1'
              time:
                formatted: 09:27
                h: '09'
                m: '27'
              loading:
                percent: 26
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            - _t: 933
              _c: 60
              _p: 0.26
              _s: 7
              _r: '1'
              _d: true
              time:
                formatted: 09:33
                h: '09'
                m: '33'
              loading:
                percent: 26
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
          journey_data:
            start:
              _t: 907
              _c: 100
              _p: 0.43
              _s: 0
              _r: '1'
              time:
                formatted: 09:07
                h: '09'
                m: '07'
              loading:
                percent: 43
                threshold: moderate
                label: Moderate
                value: '40'
                case: '2'
            end:
              _t: 933
              _c: 60
              _p: 0.26
              _s: 7
              _r: '1'
              _d: true
              time:
                formatted: 09:33
                h: '09'
                m: '33'
              loading:
                percent: 26
                threshold: quiet
                label: Quiet
                value: '0'
                case: '1'
            duration:
              formatted: 26 mins
              h: h
              m: i
            loading:
              percent: 34.71428571428571
              threshold: quiet
              label: Quiet
              value: '0'
              case: '1'
