{{#if isBitsAmendmentModalOpen}}
  {{#ember-wormhole to='wormhole-overlays'}}
    <div>
      {{#modal-dialog action=(action "closeBitsAmendmentModal" false) size="bits"}}
        {{#dashboards/subscription-dash/contract-amendment
          closeAmendmentModal=(action 'closeBitsAmendmentModal')
          amendmentHeader=(bits-string 'bits_amendment_header')
          amendmentMessaging=(bits-string 'bits_amendment_messaging')
          amendmentSummary_title=(bits-string 'bits_amendment_summary_title')
          amendmentSummary=(bits-string 'bits_amendment_summary')
          amendmentCancel=(bits-string 'bits_amendment_cancel')
          amendmentAccept=(bits-string 'bits_amendment_accept')}}
          {{! template-lint-disable bare-strings }}
          {{!-- Our contracts must be in English, not localized --}}
          <p>
            Twitch, in its sole discretion, may make Bits available to Twitch users to create emoticons in Content Provider’s channel in chat, or by other means, to Cheer. Content Provider will receive 1 cent per Bit used to Cheer for Content Provider through chat, or other means, as a service payment (“Bits Revenue Share”), with the understanding that the Bits Revenue Share may be adjusted by Twitch from time to time, in its sole discretion, including, for Bits received by users on a promotional basis, or purchased in different local jurisdictions. Content Provider will at all times comply with the terms of the Bits Acceptable Use Policy, including its restrictions on solicitation of Bits, available at <a rel="noopener noreferrer" href="https://www.twitch.tv/p/bits-acceptable-use" target="_blank">{{i18n 'twitch.tv/p/bits-acceptable-use'}}</a> incorporated by reference in the Twitch Terms of Service, and as may be updated by Twitch from time to time. Twitch, in its sole discretion, may determine not to provide Content Provider with Bits Revenue Share for any use of Bits that is not consistent with the Bits Acceptable Use Policy. Twitch reserves the right to stop offering or supporting Bits at any time.
          </p>
          <p>
            This Amendment is governed by and subject to the Agreement. Capitalized terms used but not defined in this Amendment will have the meanings defined in the Agreement. Except as amended by this Amendment, all other terms and conditions of the Agreement remain in full force and effect.
          </p>
          {{! template-lint-enable bare-strings }}
        {{/dashboards/subscription-dash/contract-amendment}}
      {{/modal-dialog}}
    </div>
  {{/ember-wormhole}}
{{/if}}
{{#if isBitsAmendmentConfirmationModalOpen}}
  {{#ember-wormhole to='wormhole-overlays'}}
    {{#modal-dialog action=(action "closeBitsAmendmentConfirmationModal" false) size="bits"}}
      {{dashboards/subscription-dash/contract-amendment-confirmation
        closeAmendmentModal=(action 'closeBitsAmendmentConfirmationModal')
        amendmentConfirmationTitle=(bits-string 'bits_amendment_confirmation_title')
        amendmentConfirmationMessaging=(if showAmendmentDisclaimer (bits-string 'bits_amendment_geo_disclaimer_confirmation_messaging') (bits-string 'bits_amendment_confirmation_messaging'))
        amendmentConfirmationCancel=(bits-string 'bits_amendment_confirmation_cancel')
        amendmentConfirmationContinue=(bits-string 'bits_amendment_confirmation_continue')
      }}
    {{/modal-dialog}}
  {{/ember-wormhole}}
{{/if}}

<div class="subdash-feature">
  <div class="tims-banners">
    {{persistent-tims-banners}}
  </div>

  <div class="subdash-feature-section">
    {{dashboards/subscription-dash/feature-header
      title=(bits-string 'onboarding_header')
      desc=(bits-string 'onboarding_desc')
      hasBackButton=true
    }}

    {{#dashboards/subscription-dash/feature-row title=(bits-string 'onboarding_amendment_header')}}
      {{#if requiresRoyaltyTaxAction}}
        <div class="subdash-feature-notice mg-b-1 pd-y-1 pd-x-2">
          {{bits-string 'onboarding_royalty_tax'}}
        </div>
      {{/if}}

      {{#if requiresServiceTaxAction}}
        <div class="subdash-feature-notice mg-b-1 pd-y-1 pd-x-2">
          {{bits-string 'onboarding_service_tax'}}
          <div>
            <a href="https://www.twitch.tv/tax_interview/new?income_type=service" class="button">{{bits-string 'promo_card_btn_complete'}}</a>
          </div>
        </div>
      {{/if}}

      <label class="subdash-feature__label">
        <input type="checkbox"
          class="js-bits-enable"
          checked={{isBitsAmendmentAccepted}}
          disabled={{isBitsAmendmentDisabled}}
          onchange={{action 'syncAndOpenBitsAmendmentModal' value='target.checked'}}>

        {{bits-string 'onboarding_amendment_title'}}
      </label>

      <p>
        {{#if isBitsAmendmentAcceptedAndSaved}}
          {{bits-string 'onboarding_amendment_accepted'}}
        {{else}}
          {{bits-string 'onboarding_amendment_messaging'}}
        {{/if}}
      </p>
    {{/dashboards/subscription-dash/feature-row}}
  </div>

  <div class="subdash-feature-section">
    {{bits/bits-threshold-settings user=user minBits=minBits minBitsEmote=minBitsEmote}}
  </div>

  <div class="subdash-feature-section">
    {{bits/bits-badge-settings user=user bitsBadges=bitsBadges bitsBadgeTiers=bitsBadgeTiers}}
  </div>

  {{#if pinCheerEnabled}}
    <div class="subdash-feature-section">
      {{bits/pinned-cheer-settings
        user=user
        pinRecentCheers=pinRecentCheers
        pinTopCheers=pinTopCheers
        recentCheerMin=recentCheerMin
        enableTimeout=enableTimeout
        recentCheerTimeout=recentCheerTimeout
      }}
    </div>
  {{/if}}
</div>
