protected def standardSlices()

in common/app/layout/slices/DynamicFast.scala [7:43]


  protected def standardSlices(stories: Seq[Story], firstSlice: Option[Slice]): Seq[Slice] = {
    val isFirstBoosted = stories.headOption.exists(_.isBoosted)

    val BigsAndStandards(bigs, _) = bigsAndStandards(stories)

    if (stories.isEmpty) {
      Nil
    } else {
      Seq(
        if (stories.forall(_.group == 0)) {
          Ql3Ql3Ql3Ql3
        } else if (isFirstBoosted) {
          bigs.length match {
            case 1 => HalfQl4Ql4
            case _ =>
              if (
                firstSlice.exists(_.layout.columns.exists({
                  case SingleItem(_, itemClasses) => itemClasses.mobile != Standard
                  case _                          => false
                }))
              ) {
                HalfQuarterQl2Ql4B
              } else {
                HalfQuarterQl2Ql4
              }
          }
        } else {
          bigs.length match {
            case 1 => QuarterQlQlQl
            case 2 => QuarterQuarterQlQl
            case 3 => QuarterQuarterQuarterQl
            case _ => QuarterQuarterQuarterQuarter
          }
        },
      )
    }
  }