<commit_before>= admin_inject_enterprise
= admin_inject_monthly_bill_description

= form_for @enterprise, url: main_app.register_admin_enterprise_path(@enterprise),
  html: { name: "change_type", id: "change_type", novalidate: true, "ng-app" => "admin.enterprises", "ng-controller"=> 'changeTypeFormCtrl' } do |change_type_form|
  -# Have to use hidden:'true' on this input rather than type:'hidden' as the latter seems to break ngPattern and therefore validation
  %input{ hidden: "true", name: "sells", ng: { required: true, pattern: "/^(none|own|any)$/", model: 'sells', value: "sells"} }

  .row
    .options.sixteen.columns.alpha
      - if @enterprise.is_primary_producer
        .basic_producer.option.one-third.column.alpha
          %a.full-width.button.selector{ ng: { click: "sells='none'", class: "{selected: sells=='none'}" } }
            .top
              %h3= t('.producer_profile')
              %p= t('.connect_ofn')
            .bottom= t('.always_free')
          %p.description
            = t('.producer_description_text')

        .producer_shop.option.one-third.column
          %a.full-width.button.selector{ ng: { click: "sells='own'", class: "{selected: sells=='own'}" } }
            .top
              %h3= t('.producer_shop')
              %p= t('.sell_your_produce')
            .bottom
              %monthly-pricing-description{ joiner: "newline" }

          %p.description
            = t('.producer_description_text')
            %br
            %br
            = t('.producer_description_text2')

        .full_hub.option.one-third.column.omega
          %a.full-width.button.selector{ ng: { click: "sells='any'", class: "{selected: sells=='any'}" } }
            .top
              %h3= t('.producer_hub')
              %p= t('.producer_hub_text')
            .bottom
              %monthly-pricing-description{ joiner: "newline" }

          %p.description
            = t('.producer_hub_description_text')

          -# %p.description
          -#   Test out having your own shopfront with full access to all Shopfront features for 30 days.
          -#   %br
          -#   %br
          -#   At the end of your trial, there is a one-off $200 fee to fully activate your account. Then you will be billed for 2% of your actual transactions, capped at $50 a month (so if you don’t sell anything you don’t pay anything, but you never pay more than $50 a month).

      - else
        .two.columns.alpha
          &nbsp;<commit_msg>#1541 fixing wrong translation key in producers packs<commit_after>= admin_inject_enterprise
= admin_inject_monthly_bill_description

= form_for @enterprise, url: main_app.register_admin_enterprise_path(@enterprise),
  html: { name: "change_type", id: "change_type", novalidate: true, "ng-app" => "admin.enterprises", "ng-controller"=> 'changeTypeFormCtrl' } do |change_type_form|
  -# Have to use hidden:'true' on this input rather than type:'hidden' as the latter seems to break ngPattern and therefore validation
  %input{ hidden: "true", name: "sells", ng: { required: true, pattern: "/^(none|own|any)$/", model: 'sells', value: "sells"} }

  .row
    .options.sixteen.columns.alpha
      - if @enterprise.is_primary_producer
        .basic_producer.option.one-third.column.alpha
          %a.full-width.button.selector{ ng: { click: "sells='none'", class: "{selected: sells=='none'}" } }
            .top
              %h3= t('.producer_profile')
              %p= t('.connect_ofn')
            .bottom= t('.always_free')
          %p.description
            = t('.producer_description_text')

        .producer_shop.option.one-third.column
          %a.full-width.button.selector{ ng: { click: "sells='own'", class: "{selected: sells=='own'}" } }
            .top
              %h3= t('.producer_shop')
              %p= t('.sell_your_produce')
            .bottom
              %monthly-pricing-description{ joiner: "newline" }

          %p.description
            = t('.sell_description_text')
            %br
            %br
            = t('.sell_description_text2')

        .full_hub.option.one-third.column.omega
          %a.full-width.button.selector{ ng: { click: "sells='any'", class: "{selected: sells=='any'}" } }
            .top
              %h3= t('.producer_hub')
              %p= t('.producer_hub_text')
            .bottom
              %monthly-pricing-description{ joiner: "newline" }

          %p.description
            = t('.producer_hub_description_text')

          -# %p.description
          -#   Test out having your own shopfront with full access to all Shopfront features for 30 days.
          -#   %br
          -#   %br
          -#   At the end of your trial, there is a one-off $200 fee to fully activate your account. Then you will be billed for 2% of your actual transactions, capped at $50 a month (so if you don’t sell anything you don’t pay anything, but you never pay more than $50 a month).

      - else
        .two.columns.alpha
          &nbsp;
{'fraction_non_alphanumeric': 0.13340040241448692, 'fraction_numerical': 0.006438631790744467, 'mean_word_length': 2.305186170212766, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2491995', 'n_tokens_mistral': 1539, 'n_tokens_neox': 1484, 'n_words': 386}