<commit_before>import Utils from '../utils/utils';
import Mixins from '../utils/mixins';

export default {
  name: 'f7-swipeout-actions',
  props: {
    id: [String, Number],
    left: Boolean,
    right: Boolean,
    side: String,
    ...Mixins.colorProps,
  },
  render() {
    return (
      <div
        id={this.props.id}
        style={this.props.style}
        className={this.classes}
      >
        <slot />
      </div>
    );
  },
  computed: {
    classes() {
      return Utils.classNames(
        this.props.className,
        {
          [`swipeout-actions-${this.sideComputed}`]: true,
        },
        Mixins.colorClasses(this),
      );
    },
    sideComputed() {
      const { left, right, side } = this;
      if (!side) {
        if (left) return 'left';
        if (right) return 'right';
        return 'right';
      }
      return side;
    },
  },
};<commit_msg>Phenome Swipeout: simplify<commit_after>import Utils from '../utils/utils';
import Mixins from '../utils/mixins';

export default {
  name: 'f7-swipeout-actions',
  props: {
    id: [String, Number],
    left: Boolean,
    right: Boolean,
    side: String,
    ...Mixins.colorProps,
  },
  render() {
    const { left, right, side, className, id, style } = this.props;

    let sideComputed = side;
    if (!sideComputed) {
      if (left) sideComputed = 'left';
      if (right) sideComputed = 'right';
    }

    const classes = Utils.classNames(
      className,
      {
        [`swipeout-actions-${sideComputed}`]: true,
      },
      Mixins.colorClasses(this),
    );

    return (
      <div
        id={id}
        style={style}
        className={classes}
      >
        <slot />
      </div>
    );
  },
};
{'fraction_non_alphanumeric': 0.15555555555555556, 'fraction_numerical': 0.0011695906432748538, 'mean_word_length': 1.9247863247863248, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '517650', 'n_tokens_mistral': 562, 'n_tokens_neox': 562, 'n_words': 120}