<commit_before>.row
  .three.columns.alpha
    = bf.label :company, t(".company_legal_name")
    %i.text-big.icon-question-sign{ "data-controller": "help-modal-link", "data-action": "click->help-modal-link#open", "data-help-modal-link-target-value": "business_address_info_modal" }
  .eight.columns.omega
    = bf.text_field :company, { placeholder: t(".company_placeholder") }

.row
  .three.columns.alpha
    = bf.label :address1, t('.address1')
    %i.text-big.icon-question-sign{ "data-controller": "help-modal-link", "data-action": "click->help-modal-link#open", "data-help-modal-link-target-value": "business_address_info_modal" }
  .eight.columns.omega
    = bf.text_field :address1, { placeholder: t(".address1_placeholder") }
.row
  .alpha.three.columns
    = bf.label :address2, t(".address2")
  .eight.columns.omega
    = bf.text_field :address2
.row
  .three.columns.alpha
    = bf.label :city, t(:city)
    \/
    = bf.label :zipcode, t(:postcode)
  .four.columns
    = bf.text_field :city, { placeholder: t(:city_placeholder) }
  .four.columns.omega
    = bf.text_field :zipcode, { placeholder: t(:postcode_placeholder) }
.row{"data-controller": "dependent-select", "data-dependent-select-options-value": countries_with_states }
  .three.columns.alpha
    = bf.label :country_id, t(:country)
    \/
    = bf.label :state_id, t(:state)
  .four.columns
    = bf.select :country_id, options_for_select(available_countries.map { |c| [c.name, c.id] }, @enterprise.business_address.country_id), {}, { "data-controller": "tom-select", "data-dependent-select-target": "source", "data-action": "dependent-select#handleSelectChange", class: "primary" }
  .four.columns.omega
    = bf.select :state_id, @enterprise.address.country.states.map { |s| [s.name, s.id] }, {}, { "data-controller": "tom-select", "data-dependent-select-target": "select", class: "primary" }

.row
  .three.columns.alpha
    = bf.label :phone, t(".legal_phone_number")
    %i.text-big.icon-question-sign{ "data-controller": "help-modal-link", "data-action": "click->help-modal-link#open", "data-help-modal-link-target-value": "business_address_info_modal" }
  .eight.columns.omega
    = bf.text_field :phone, { placeholder: t(".phone_placeholder") }

= render HelpModalComponent.new(id: "business_address_info_modal") do
  .margin-bottom-30
    = t('js.admin.modals.business_address_info.message')
<commit_msg>As we are in the Business Address panel, use the business_address attr<commit_after>.row
  .three.columns.alpha
    = bf.label :company, t(".company_legal_name")
    %i.text-big.icon-question-sign{ "data-controller": "help-modal-link", "data-action": "click->help-modal-link#open", "data-help-modal-link-target-value": "business_address_info_modal" }
  .eight.columns.omega
    = bf.text_field :company, { placeholder: t(".company_placeholder") }

.row
  .three.columns.alpha
    = bf.label :address1, t('.address1')
    %i.text-big.icon-question-sign{ "data-controller": "help-modal-link", "data-action": "click->help-modal-link#open", "data-help-modal-link-target-value": "business_address_info_modal" }
  .eight.columns.omega
    = bf.text_field :address1, { placeholder: t(".address1_placeholder") }
.row
  .alpha.three.columns
    = bf.label :address2, t(".address2")
  .eight.columns.omega
    = bf.text_field :address2
.row
  .three.columns.alpha
    = bf.label :city, t(:city)
    \/
    = bf.label :zipcode, t(:postcode)
  .four.columns
    = bf.text_field :city, { placeholder: t(:city_placeholder) }
  .four.columns.omega
    = bf.text_field :zipcode, { placeholder: t(:postcode_placeholder) }
.row{"data-controller": "dependent-select", "data-dependent-select-options-value": countries_with_states }
  .three.columns.alpha
    = bf.label :country_id, t(:country)
    \/
    = bf.label :state_id, t(:state)
  .four.columns
    = bf.select :country_id, options_for_select(available_countries.map { |c| [c.name, c.id] }, @enterprise.business_address.country_id), {}, { "data-controller": "tom-select", "data-dependent-select-target": "source", "data-action": "dependent-select#handleSelectChange", class: "primary" }
  .four.columns.omega
    - states = @enterprise.business_address.country.present? ? @enterprise.business_address.country&.states&.map { |s| [s.name, s.id] } : []
    = bf.select :state_id, states, {}, { "data-controller": "tom-select", "data-dependent-select-target": "select", class: "primary" }

.row
  .three.columns.alpha
    = bf.label :phone, t(".legal_phone_number")
    %i.text-big.icon-question-sign{ "data-controller": "help-modal-link", "data-action": "click->help-modal-link#open", "data-help-modal-link-target-value": "business_address_info_modal" }
  .eight.columns.omega
    = bf.text_field :phone, { placeholder: t(".phone_placeholder") }

= render HelpModalComponent.new(id: "business_address_info_modal") do
  .margin-bottom-30
    = t('js.admin.modals.business_address_info.message')

{'fraction_non_alphanumeric': 0.17693715680292862, 'fraction_numerical': 0.0036607687614399025, 'mean_word_length': 4.311015118790497, 'pattern_counts': {'":': 32, '<': 3, '<?xml version=': 0, '>': 9, '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': '1691436', 'n_tokens_mistral': 1713, 'n_tokens_neox': 1706, 'n_words': 260}