{{#if (is-feature-loaded 'game-commerce')}}
  <div class="cl-container">
    {{#if isAmendmentModalOpen}}
      {{#ember-wormhole to='wormhole-overlays'}}
        {{#modal-dialog action=(action 'closeAmendmentModal' false) size='bits'}}
          {{#dashboards/subscription-dash/contract-amendment
            closeAmendmentModal=(action 'closeAmendmentModal')
            amendmentHeader=(bits-string 'fl_sl_amendment_modal_header')
            amendmentMessaging=(bits-string 'fl_sl_amendment_modal_messaging')
            amendmentSummaryTitle=(bits-string 'fl_sl_amendment_summary_title')
            amendmentSummary=(bits-string 'fl_sl_amendment_summary')
            amendmentCancel=(bits-string 'fl_sl_amendment_cancel')
            amendmentAccept=(bits-string 'fl_sl_amendment_accept')}}
            {{! template-lint-disable bare-strings }}
            {{!-- Our contracts must be in English, not localized --}}
            <p>
              By accepting this Amendment and completing the necessary tax forms between October 1, 2016 and January 31, 2017, you will be entitled to receive 30% of the actual purchase price from sales of the game “Streamline” (by, Proletariat Games) that occur when users purchase Streamline via a “Buy” button that appears on your channel page.
            </p>
            <p>
              You agree (a) that the purchase price for Streamline may be adjusted by Twitch from time to time, in its sole discretion, including, for promotional discounts, or as local market conditions may require; and (b) a “Buy” button will appear on your channel during your broadcast of Streamline that will be used by Twitch to track sales that are attributed to viewers of your channel during a broadcast for purposes of this Bounty Program.
            </p>
            <p>
              Twitch makes no representations, promises, or guarantees that you will receive any revenues under this Bounty Program.
            </p>
            <p>
              If you do not accept these terms, Twitch shall have no obligation to share any revenue with you pertaining to sales of Streamline.
            </p>
            {{! template-lint-enable bare-strings }}
          {{/dashboards/subscription-dash/contract-amendment}}
        {{/modal-dialog}}
      {{/ember-wormhole}}
    {{/if}}
    {{#if isAmendmentConfirmationModalOpen}}
      {{#ember-wormhole to='wormhole-overlays'}}
        {{#modal-dialog action=(action 'closeAmendmentConfirmationModal' false) size='bits'}}
          {{dashboards/subscription-dash/contract-amendment-confirmation
            closeAmendmentModal=(action 'closeAmendmentConfirmationModal')
            amendmentConfirmationTitle=(bits-string 'fl_sl_amendment_confirmation_title')
            amendmentConfirmationMessaging=(bits-string 'fl_sl_amendment_confirmation_messaging')
            amendmentConfirmationCancel=(bits-string 'fl_sl_amendment_confirmation_cancel')
            amendmentConfirmationContinue=(bits-string 'fl_sl_amendment_confirmation_continue')
          }}
        {{/modal-dialog}}
      {{/ember-wormhole}}
    {{/if}}
    <div class="tims-banners">
      {{persistent-tims-banners}}
    </div>
    <div class="cl-section subscription-dash payments-list">
      <div class="section-header clearfix">
        {{link-to '' 'dashboards.subscription-dash' class='header-back'}}

        <div class="header-content indented">
          <p class="title">
            {{i18n 'Enable Game Commerce'}}
          </p>

          <p class="desc">
            {{i18n 'Enable Game Commerce'}}
          </p>
        </div>
      </div>

      <form class="game-commerce-form">
        <div class="section-content">
          <fieldset class="clearfix" id="ticket-name-fieldset">
            <div class="label-wrapper">
              <label>{{i18n 'Enable Bounty Program'}}</label>
            </div>

            <div class="cl-input-container">
              {{#if requiresRoyaltyTaxAction}}
                <div class="notice">
                  <div class="section-content">
                    {{bits-string 'onboarding_royalty_tax'}}
                  </div>
                </div>
              {{/if}}

              {{#if requiresServiceTaxAction}}
                <div class="notice">
                  <div class="section-content">
                    {{bits-string 'onboarding_service_tax'}}
                    <div>
                      <a class="button" href="https://www.twitch.tv/tax_interview/new?income_type=service">{{bits-string 'promo_card_btn_complete'}}</a>
                    </div>
                  </div>
                </div>
              {{/if}}

              <ul>
                <li>
                  <label>
                    <input type="checkbox"
                      checked={{amendmentAccepted}}
                      disabled={{isAmendmentDisabled}}
                      onchange={{action 'syncAndOpenAmendmentModal' value='target.checked'}}>

                    {{i18n 'Become eligible: opt-in to the Bounty Program.'}}
                  </label>
                </li>

                <li>
                  <p class="desc">
                    {{i18n 'Please read and agree to the following amendment to the Content Partner Agreement with Twitch in order to opt-in to the Bounty Program.'}}
                  </p>
                </li>
              </ul>
            </div>

            {{#if isSaving}}
              <div class="label-wrapper">
                {{loading-more-spinner}}
              </div>
            {{/if}}
          </fieldset>
        </div>
      </form>
    </div>
  </div>
{{/if}}
