<commit_before><template>

  <div>
    <!-- TODO make search box work, sets content on page -->

    <!-- TODO functionalize -->
    <search-box />

    <!-- TODO add conditionalsearch exit button -->

    <k-breadcrumbs
      v-if="!noContentOnDevice"
      :items="selectionCrumbs"
      :showAllCrumbs="true"
    />

    <!-- TODO add conditional filters for search -->
    <!-- TODO add conditional search result strings -->
    <template v-if="contentListEmpty">
      {{ emptyStateString }}
    </template>
  </div>

</template>


<script>

  import searchBox from '../../../../../../../learn/assets/src/views/search-box/';
  import kBreadcrumbs from 'kolibri.coreVue.components.kBreadcrumbs';
  import { selectionRootLink, topicListingLink } from '../../lessonsRouterUtils';

  export default {
    name: 'searchTools',
    components: {
      searchBox,
      kBreadcrumbs,
    },
    data() {
      return {
        // TODO set using state
        searchMode: false,
        searchterm: '',
      };
    },
    computed: {
      // TODO cleanup, classId and lessonId are included in these routes all of these routes
      routerParams() {
        return { classId: this.classId, lessonId: this.lessonId };
      },
      selectionCrumbs() {
        // IDEA refactor router logic into actions
        return [
          // The "Channels" breadcrumb
          { text: this.$tr('channelBreadcrumbLabel'), link: selectionRootLink(this.routerParams) },
          // Ancestors breadcrumbs
          // NOTE: The current topic is injected into `ancestors` in the showPage action
          ...this.ancestors.map(a => ({
            text: a.title,
            link: topicListingLink({ ...this.routerParams, topicId: a.pk }),
          })),
        ];
      },<commit_msg>Removing search bar + functionality<commit_after><template>

  <div>
    <!-- TODO make search box work, sets content on page -->

    <!-- TODO functionalize -->
    <!-- <search-box /> -->

    <!-- TODO add conditionalsearch exit button -->

    <k-breadcrumbs
      v-if="!noContentOnDevice"
      :items="selectionCrumbs"
      :showAllCrumbs="true"
    />

    <!-- TODO add conditional filters for search -->
    <!-- TODO add conditional search result strings -->
    <template v-if="contentListEmpty">
      {{ emptyStateString }}
    </template>
  </div>

</template>


<script>

  // import searchBox from '../../../../../../../learn/assets/src/views/search-box/';
  import kBreadcrumbs from 'kolibri.coreVue.components.kBreadcrumbs';
  import { selectionRootLink, topicListingLink } from '../../lessonsRouterUtils';

  export default {
    name: 'searchTools',
    components: {
      // searchBox,
      kBreadcrumbs,
    },
    data() {
      return {
        // TODO set using state
        searchMode: false,
        searchterm: '',
      };
    },
    computed: {
      // TODO cleanup, classId and lessonId are included in these routes all of these routes
      routerParams() {
        return { classId: this.classId, lessonId: this.lessonId };
      },
      selectionCrumbs() {
        // IDEA refactor router logic into actions
        return [
          // The "Channels" breadcrumb
          { text: this.$tr('channelBreadcrumbLabel'), link: selectionRootLink(this.routerParams) },
          // Ancestors breadcrumbs
          // NOTE: The current topic is injected into `ancestors` in the showPage action
          ...this.ancestors.map(a => ({
            text: a.title,
            link: topicListingLink({ ...this.routerParams, topicId: a.pk }),
          })),
        ];
      },
{'fraction_non_alphanumeric': 0.13970382788488406, 'fraction_numerical': 0.0, 'mean_word_length': 2.0995670995670994, 'pattern_counts': {'":': 0, '<': 32, '<?xml version=': 0, '>': 34, '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': '4560597', 'n_tokens_mistral': 1026, 'n_tokens_neox': 1017, 'n_words': 261}