app/pb_kits/playbook/pb_home_address_street/street_emphasis.rb



# frozen_string_literal: true

module Playbook
  module PbHomeAddressStreet
    class StreetEmphasis < Playbook::KitBase
      prop :address_house_style
      prop :address_house_style2
      prop :city_state_zip
      prop :home_id, type: Playbook::Props::Number
      prop :home_url
      prop :new_window, type: Playbook::Props::Boolean,
                        default: false
      prop :target
      prop :territory
      prop :dark, type: Playbook::Props::Boolean,
                  default: false

      def target_option
        if target && home_url
          target
        elsif new_window
          "_blank"
        else
          "_self"
        end
      end
    end
  end
end