<commit_before>import { Component, EventEmitter } from '@angular/core';

import { Session } from '../../../../services/session';
import { Client } from '../../../../services/api';

@Component({
  selector: 'm-settingsV2__subscriptionTiers',
  templateUrl: './subscription-tiers.component.html',
})
export class SettingsV2SubscriptionTiersComponent {
  isSaving = false;
  isSaved = false;
  triggerSave = new EventEmitter(true);
  error: string;

  constructor(public session: Session, public client: Client) {}

  save() {
    this.triggerSave.next(true);
  }
}<commit_msg>reroute subscription tiers settings  to user's shop if channels-shop feature flag<commit_after>import { Component, EventEmitter, OnInit } from '@angular/core';

import { Session } from '../../../../services/session';
import { Client } from '../../../../services/api';
import { Router } from '@angular/router';
import { FeaturesService } from '../../../../services/features.service';

@Component({
  selector: 'm-settingsV2__subscriptionTiers',
  templateUrl: './subscription-tiers.component.html',
})
export class SettingsV2SubscriptionTiersComponent implements OnInit {
  isSaving = false;
  isSaved = false;
  triggerSave = new EventEmitter(true);
  error: string;

  constructor(
    public session: Session,
    public client: Client,
    private router: Router,
    private features: FeaturesService
  ) {}

  ngOnInit() {
    if (this.features.has('channels-shop')) {
      // Reroute to the user's shop page
      const username = this.session.getLoggedInUser().username;
      this.router.navigate([`/${username}/shop`], { skipLocationChange: true });
    }
  }

  save() {
    this.triggerSave.next(true);
  }
}
{'fraction_non_alphanumeric': 0.15584415584415584, 'fraction_numerical': 0.0023612750885478157, 'mean_word_length': 3.6952908587257616, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3144717', 'n_tokens_mistral': 485, 'n_tokens_neox': 492, 'n_words': 119}