class Playbook::PbMultipleUsersStacked::MultipleUsersStacked

def bubble

def bubble
  variant == "bubble"
end

def bubble_class

def bubble_class
  bubble ? "bubble" : nil
end

def bubble_classname(index)

def bubble_classname(index)
  base_classname = "pb_multiple_users_stacked_item "
  case index
  when 0
    base_classname += "second_item"
    base_classname += " double_bubble" if double_bubble
    base_classname += " triple_bubble" if triple_bubble
    base_classname += " quadruple_bubble" if quadruple_bubble
  when 1
    base_classname += "third_item"
    base_classname += " quadruple_bubble" if quadruple_bubble
  else
    base_classname += "fourth_item"
  end
  base_classname
end

def classname

def classname
  generate_classname("pb_multiple_users_stacked_kit", single_class, bubble_class, size_class)
end

def display_count

def display_count
  more_than_two ? 1 : users.count
end

def double_bubble

def double_bubble
  bubble && users.count === 2
end

def more_than_two

def more_than_two
  users.count > 2
end

def only_one

def only_one
  users.count == 1
end

def quadruple_bubble

def quadruple_bubble
  bubble && users.count > 3
end

def single_class

def single_class
  only_one ? "single" : nil
end

def size_class

def size_class
  "size_#{size}" if bubble
end

def triple_bubble

def triple_bubble
  bubble && users.count === 3
end