<commit_before><template>

  <div>
    <KRadioButton
      :value="true"
      :label="coachString('entireClassLabel')"
      :currentValue="entireClassIsSelected"
      :disabled="disabled"
      @change="selectEntireClass()"
    />
    <KCheckbox
      v-for="group in groups"
      :key="group.id"
      :label="group.name"
      :checked="groupIsChecked(group.id)"
      :disabled="disabled"
      @change="toggleGroup($event, group.id)"
    />
    <IndividualLearnerSelector
      :selectedGroupIds="selectedGroupIds"
      :entireClassIsSelected="entireClassIsSelected"
      :initialAdHocLearners="initialAdHocLearners"
      :targetClassId="classId"
      :disabled="disabled"
      @toggleCheck="toggleGroup"
      @updateLearners="learners => $emit('updateLearners', learners)"
    />
  </div>

</template>


<script>

  import isEqual from 'lodash/isEqual';
  import { coachStringsMixin } from '../../common/commonCoachStrings';
  import IndividualLearnerSelector from './IndividualLearnerSelector';

  export default {
    name: 'RecipientSelector',
    components: { IndividualLearnerSelector },
    mixins: [coachStringsMixin],
    props: {
      // Needs to equal [classId] if entire class is selected
      // Otherwise, [groupId_1, groupId_2] for individual Learner Groups<commit_msg>Hide individual learners selector<commit_after><template>

  <div>
    <KRadioButton
      :value="true"
      :label="coachString('entireClassLabel')"
      :currentValue="entireClassIsSelected"
      :disabled="disabled"
      @change="selectEntireClass()"
    />
    <KCheckbox
      v-for="group in groups"
      :key="group.id"
      :label="group.name"
      :checked="groupIsChecked(group.id)"
      :disabled="disabled"
      @change="toggleGroup($event, group.id)"
    />
    <IndividualLearnerSelector
      v-show="false"
      :selectedGroupIds="selectedGroupIds"
      :entireClassIsSelected="entireClassIsSelected"
      :initialAdHocLearners="initialAdHocLearners"
      :targetClassId="classId"
      :disabled="disabled"
      @toggleCheck="toggleGroup"
      @updateLearners="learners => $emit('updateLearners', learners)"
    />
  </div>

</template>


<script>

  import isEqual from 'lodash/isEqual';
  import { coachStringsMixin } from '../../common/commonCoachStrings';
  import IndividualLearnerSelector from './IndividualLearnerSelector';

  export default {
    name: 'RecipientSelector',
    components: { IndividualLearnerSelector },
    mixins: [coachStringsMixin],
    props: {
      // Needs to equal [classId] if entire class is selected
      // Otherwise, [groupId_1, groupId_2] for individual Learner Groups
{'fraction_non_alphanumeric': 0.1271282633371169, 'fraction_numerical': 0.001513431706394249, 'mean_word_length': 3.6062717770034842, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, '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': '4672779', 'n_tokens_mistral': 819, 'n_tokens_neox': 775, 'n_words': 139}