<commit_before><h3 data-template="paragraphs/service_location">Contact information</h3>
{% for singleLocation in locations %}
  {% assign single = singleLocation.entity %}
  {% if single.fieldServiceLocationAddress.entity.fieldClinicName %}
    {% assign haveLocationName = true %}
  {% else %}
    {% assign haveLocationName = false %}
  {% endif %}
  {% include "src/site/facilities/service_address.drupal.liquid" %}

  {% comment %}
      single.fieldHours values:
      - 0 = Use facility hours
      - 1 = Do not specify hours
      - 2 = Display specific hours
  {% endcomment %}

  {% if single.fieldHours != "1" %}
    {% if haveLocationName %}
      <h5 data-template="paragraphs/service_location">Hours</h5>
    {% else %}
      <h4 class="force-small-header" data-template="paragraphs/service_location">Hours</h4>
    {% endif %}
  {% endif %}

  {% case single.fieldHours %}
    {% when '2' %}
      {% if single.fieldFacilityServiceHours.value %}
        {% include "src/site/paragraphs/service_hours.drupal.liquid" with serviceHours = single.fieldFacilityServiceHours.value %}
      {% endif %}
    {% when '0' %}
      {% if fieldFacilityHours.value %}
        {% include "src/site/paragraphs/service_hours.drupal.liquid" with serviceHours = fieldFacilityHours.value %}
      {% endif %}
  {% endcase %}


  {% if single.fieldAdditionalHoursInfo %}
    <span data-template="paragraphs/service_location"><i>{{ single.fieldAdditionalHoursInfo }}</i></span>
  {% endif %}

  {% include "src/site/components/phone.drupal.liquid" with numbers = single.fieldPhone haveLocationName = haveLocationName %}

  {% if single.fieldEmailContacts %}
    {% for email in single.fieldEmailContacts %}
      <p class="vads-u-margin-y--1" data-template="paragraphs/service_location">
      {% if email.entity.fieldEmailLabel %}
        {% if haveLocationName %}
          <h5>{{ email.entity.fieldEmailLabel }} </h5>
        {% else %}
          <h4 class="force-small-header">{{ email.entity.fieldEmailLabel }} </h4>
        {% endif %}
      {% endif %}
      <a aria-label="{{ email.entity.fieldEmailAddress }}"
         data-template="paragraphs/service_location"
         href="{{ email.entity.fieldEmailAddress }}">{{ email.entity.fieldEmailAddress }}
      </a>
    {% endfor %}
  {% endif %}
{% endfor %}

{% if locationEntity.fieldReferralRequired or locationEntity.fieldWalkInsAccepted or locationEntity.fieldOnlineSchedulingAvailabl %}
  <h3 data-template="paragraphs/service_location">Appointments</h3>

  {% assign introText = 'Contact us to schedule, reschedule, or
            cancel your appointment. If a referral is required, you’ll need to contact your
            primary care provider first.'
  %}

  {% case locationEntity.fieldHserviceApptIntroSelect %}
    {% when 'custom_intro_text' %}
      {% if locationEntity.fieldHserviceApptLeadin != empty %}
        {% assign introText = locationEntity.fieldHserviceApptLeadin %}
      {% endif %}
    {% when 'no_intro_text' %}
      {% assign introText = '' %}
  {% endcase %}

  {% if introText != empty %}
    <p class="vads-u-margin--0" data-template="paragraphs/service_location">
      {{  introText }}
    </p>
  {% endif %}

  {% if locationEntity.fieldPhoneNumbersParagraph != empty %}
    <div class="vads-u-display--flex vads-u-flex-direction--column" data-template="paragraphs/service_location">
      {% if haveLocationName %}
        <h4 class="force-small-header">Phone</h4>
      {% else %}
        <h5>Phone</h5>
      {% endif %}
      {% if locationEntity.fieldPhoneNumbersParagraph %}
        {% for number in locationEntity.fieldPhoneNumbersParagraph %}
          <a aria-label="{{ number.entity.fieldPhoneNumber | accessibleNumber }}"
             href="tel:{{ number.entity.fieldPhoneNumber }}{% if number.entity.fieldPhoneExtension %}p{{ number.entity.fieldPhoneExtension }}{% endif %}">
            {{ number.entity.fieldPhoneNumber }}
            {% if number.entity.fieldPhoneExtension %}
              x {{ number.entity.fieldPhoneExtension }}
            {% endif %}
          </a>
        {% endfor %}
      {% endif %}
    </div>
  {% endif %}<commit_msg>Main facility appointment phone number is not displayed when needed (#15810)<commit_after><h3 data-template="paragraphs/service_location">Contact information</h3>
{% for singleLocation in locations %}
  {% assign single = singleLocation.entity %}
  {% if single.fieldServiceLocationAddress.entity.fieldClinicName %}
    {% assign haveLocationName = true %}
  {% else %}
    {% assign haveLocationName = false %}
  {% endif %}
  {% include "src/site/facilities/service_address.drupal.liquid" %}

  {% comment %}
      single.fieldHours values:
      - 0 = Use facility hours
      - 1 = Do not specify hours
      - 2 = Display specific hours
  {% endcomment %}

  {% if single.fieldHours != "1" %}
    {% if haveLocationName %}
      <h5 data-template="paragraphs/service_location">Hours</h5>
    {% else %}
      <h4 class="force-small-header" data-template="paragraphs/service_location">Hours</h4>
    {% endif %}
  {% endif %}

  {% case single.fieldHours %}
    {% when '2' %}
      {% if single.fieldFacilityServiceHours.value %}
        {% include "src/site/paragraphs/service_hours.drupal.liquid" with serviceHours = single.fieldFacilityServiceHours.value %}
      {% endif %}
    {% when '0' %}
      {% if fieldFacilityHours.value %}
        {% include "src/site/paragraphs/service_hours.drupal.liquid" with serviceHours = fieldFacilityHours.value %}
      {% endif %}
  {% endcase %}


  {% if single.fieldAdditionalHoursInfo %}
    <span data-template="paragraphs/service_location"><i>{{ single.fieldAdditionalHoursInfo }}</i></span>
  {% endif %}

  {% include "src/site/components/phone.drupal.liquid" with numbers = single.fieldPhone haveLocationName = haveLocationName %}

  {% if single.fieldEmailContacts %}
    {% for email in single.fieldEmailContacts %}
      <p class="vads-u-margin-y--1" data-template="paragraphs/service_location">
      {% if email.entity.fieldEmailLabel %}
        {% if haveLocationName %}
          <h5>{{ email.entity.fieldEmailLabel }} </h5>
        {% else %}
          <h4 class="force-small-header">{{ email.entity.fieldEmailLabel }} </h4>
        {% endif %}
      {% endif %}
      <a aria-label="{{ email.entity.fieldEmailAddress }}"
         data-template="paragraphs/service_location"
         href="{{ email.entity.fieldEmailAddress }}">{{ email.entity.fieldEmailAddress }}
      </a>
    {% endfor %}
  {% endif %}
{% endfor %}

{% if locationEntity.fieldReferralRequired or locationEntity.fieldWalkInsAccepted or locationEntity.fieldOnlineSchedulingAvailabl %}
  <h3 data-template="paragraphs/service_location">Appointments</h3>

  {% assign introText = 'Contact us to schedule, reschedule, or
            cancel your appointment. If a referral is required, you’ll need to contact your
            primary care provider first.'
  %}

  {% case locationEntity.fieldHserviceApptIntroSelect %}
    {% when 'custom_intro_text' %}
      {% if locationEntity.fieldHserviceApptLeadin != empty %}
        {% assign introText = locationEntity.fieldHserviceApptLeadin %}
      {% endif %}
    {% when 'no_intro_text' %}
      {% assign introText = '' %}
  {% endcase %}

  {% if introText != empty %}
    <p class="vads-u-margin--0" data-template="paragraphs/service_location">
      {{  introText }}
    </p>
  {% endif %}


  {% comment %}
    if fieldPhoneNumbersParagraph has values
    use phone numbers from entities
  {% endcomment %}
  {% if locationEntity.fieldPhoneNumbersParagraph.length > 0 %}
    <div class="vads-u-display--flex vads-u-flex-direction--column" data-template="paragraphs/service_location">
      {% if haveLocationName %}
        <h4 class="force-small-header">Phone</h4>
      {% else %}
        <h5>Phone</h5>
      {% endif %}
      {% if locationEntity.fieldPhoneNumbersParagraph %}
        {% for number in locationEntity.fieldPhoneNumbersParagraph %}
          <a aria-label="{{ number.entity.fieldPhoneNumber | accessibleNumber }}"
             href="tel:{{ number.entity.fieldPhoneNumber }}{% if number.entity.fieldPhoneExtension %}p{{ number.entity.fieldPhoneExtension }}{% endif %}">
            {{ number.entity.fieldPhoneNumber }}
            {% if number.entity.fieldPhoneExtension %}
              x {{ number.entity.fieldPhoneExtension }}
            {% endif %}
          </a>
        {% endfor %}
      {% endif %}
    </div>
  {% else %}
    {% comment %}
      if fieldPhoneNumbersParagraph is empty and
      fieldUseMainFacilityPhone is true use fieldPhoneNumber
    {% endcomment %}
      <div class="vads-u-display--flex vads-u-flex-direction--column" data-template="paragraphs/service_location">
        {% if haveLocationName %}
          <h4 class="force-small-header">Phone</h4>
        {% else %}
          <h5>Phone</h5>
          <a aria-label="{{ fieldPhoneNumber | accessibleNumber }}"
             href="tel:{{ fieldPhoneNumber }}">
            {{ fieldPhoneNumber }}
          </a>
        {% endif %}
      </div>
  {% endif %}
{'fraction_non_alphanumeric': 0.14370598591549297, 'fraction_numerical': 0.006382042253521127, 'mean_word_length': 3.027027027027027, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 70, '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': '5994787', 'n_tokens_mistral': 2949, 'n_tokens_neox': 2565, 'n_words': 500}