# Be sure to restart your server when you modify this file or the environment variable.

Rails.application.config.site_name = ENV["STOCKAID_SITE_NAME"].presence || "StockAid"
Rails.application.config.contact_street_address_line = ENV["STOCKAID_CONTACT_STREET"].presence || "1777 Hamilton Avenue #2280" # rubocop:disable Layout/LineLength
Rails.application.config.contact_city_line = ENV["STOCKAID_CONTACT_CITY"].presence || "San Jose, CA 95125"
Rails.application.config.contact_phone = ENV["STOCKAID_CONTACT_PHONE"].presence || "408.674.5744"
Rails.application.config.contact_email = ENV["STOCKAID_CONTACT_EMAIL"].presence || "info@gratefulgarment.org"
Rails.application.config.personal_contact_email = ENV["STOCKAID_PERSONAL_CONTACT_EMAIL"].presence || "lisa@gratefulgarment.org" # rubocop:disable Layout/LineLength
Rails.application.config.external_site = ENV["STOCKAID_EXTERNAL_SITE"].presence || "http://gratefulgarment.org/"
Rails.application.config.tax_id = ENV["STOCKAID_TAX_ID"].presence || "80-0725390"

# Formatted like "(123) 456-7890"
Rails.application.config.contact_phone_formatted = ActiveSupport::NumberHelper.number_to_phone(Rails.application.config.contact_phone.gsub(/\D/, "").gsub(/\D/, ""), area_code: true) # rubocop:disable Layout/LineLength
