{{#if hasPinnedCheer}}
  {{#liquid-if showTopPinnedCheer class='to-right-reverse-to-left-pinned-cheers'}}
    {{#liquid-if showTopCheerA class='fade-reverse-fade'}}
      {{#each topPinnedCheerPseudoArrayA as |cheerMessage|}}
        {{bits/pinned-cheers/top-cheer
          channelId=channelId
          cheerMessage=cheerMessage
          countdownDuration=cheerMessage.duration
          countdownTotalDuration=cheerMessage.totalDuration
          roomTrackingData=roomTrackingData
          currentUserNick=currentUserNick
          currentUserDisplayname=currentUserDisplayname
          isChannelLinksDisabled=isChannelLinksDisabled
          isViewerModeratorOrHigher=canModerate
          isTwitchPrivilegedUser=isTwitchPrivilegedUser
          isDarkMode=useDarkAssets
          showModOverlay=showModOverlay
          showResetTopCheer=showResetTopCheer
          banUser=banUser
          unbanUser=unbanUser
          clickSubscriber=clickSubscriber
          timeoutUser=timeoutUser
          showMessageFlags=showMessageFlags
          showModIcons=showModIcons
          showModerationActions=showModerationActions
          showTwitchBotActions=showTwitchBotActions
          adjustContainer=(action 'adjustContainer')
          expandMessage=isPinnedCheerExpanded}}
      {{/each}}
    {{else}}
      {{#each topPinnedCheerPseudoArrayB as |cheerMessage|}}
        {{bits/pinned-cheers/top-cheer
          channelId=channelId
          cheerMessage=cheerMessage
          countdownDuration=cheerMessage.duration
          countdownTotalDuration=cheerMessage.totalDuration
          roomTrackingData=roomTrackingData
          currentUserNick=currentUserNick
          currentUserDisplayname=currentUserDisplayname
          isChannelLinksDisabled=isChannelLinksDisabled
          isViewerModeratorOrHigher=canModerate
          isTwitchPrivilegedUser=isTwitchPrivilegedUser
          isDarkMode=useDarkAssets
          showModOverlay=showModOverlay
          showResetTopCheer=showResetTopCheer
          banUser=banUser
          unbanUser=unbanUser
          clickSubscriber=clickSubscriber
          timeoutUser=timeoutUser
          showMessageFlags=showMessageFlags
          showModIcons=showModIcons
          showModerationActions=showModerationActions
          showTwitchBotActions=showTwitchBotActions
          adjustContainer=(action 'adjustContainer')
          expandMessage=isPinnedCheerExpanded}}
      {{/each}}
    {{/liquid-if}}
  {{else}}
    {{#liquid-if showRecentCheerA class="fade-reverse-fade"}}
      {{#each recentPinnedCheerPseudoArrayA as |cheerMessage|}}
        {{bits/pinned-cheers/recent-cheer
          channelId=channelId
          cheerMessage=cheerMessage
          countdownDuration=cheerMessage.duration
          countdownTotalDuration=cheerMessage.totalDuration
          roomTrackingData=roomTrackingData
          currentUserNick=currentUserNick
          currentUserDisplayname=currentUserDisplayname
          isChannelLinksDisabled=isChannelLinksDisabled
          isViewerModeratorOrHigher=canModerate
          isTwitchPrivilegedUser=isTwitchPrivilegedUser
          isDarkMode=useDarkAssets
          showModOverlay=showModOverlay
          banUser=banUser
          unbanUser=unbanUser
          clickSubscriber=clickSubscriber
          timeoutUser=timeoutUser
          showMessageFlags=showMessageFlags
          showModIcons=showModIcons
          showModerationActions=showModerationActions
          showTwitchBotActions=showTwitchBotActions
          adjustContainer=(action 'adjustContainer')
          expandMessage=isPinnedCheerExpanded}}
      {{/each}}
    {{else}}
      {{#each recentPinnedCheerPseudoArrayB as |cheerMessage|}}
        {{bits/pinned-cheers/recent-cheer
          channelId=channelId
          cheerMessage=cheerMessage
          countdownDuration=cheerMessage.duration
          countdownTotalDuration=cheerMessage.totalDuration
          roomTrackingData=roomTrackingData
          currentUserNick=currentUserNick
          currentUserDisplayname=currentUserDisplayname
          isChannelLinksDisabled=isChannelLinksDisabled
          isViewerModeratorOrHigher=canModerate
          isTwitchPrivilegedUser=isTwitchPrivilegedUser
          isDarkMode=useDarkAssets
          showModOverlay=showModOverlay
          banUser=banUser
          unbanUser=unbanUser
          clickSubscriber=clickSubscriber
          timeoutUser=timeoutUser
          showMessageFlags=showMessageFlags
          showModIcons=showModIcons
          showModerationActions=showModerationActions
          showTwitchBotActions=showTwitchBotActions
          adjustContainer=(action 'adjustContainer')
          expandMessage=isPinnedCheerExpanded}}
      {{/each}}
    {{/liquid-if}}
  {{/liquid-if}}
{{else if showViewerNotification}}
  {{bits/pinned-cheers/intro-viewer
    learnMoreUrl=learnMoreUrl
    close=(action 'dismissViewerNotification')}}
{{else if showBroadcasterNotification}}
  {{bits/pinned-cheers/intro-broadcaster
    learnMoreUrl=learnMoreUrl
    close=(action 'dismissBroadcasterNotification')}}
{{/if}}
