/*!
 * Quasar Framework v2.0.0-beta.8
 * (c) 2015-present Razvan Stoenescu
 * Released under the MIT License.
 */

'use strict';

var compilerDom = require('@vue/compiler-dom');

var Morph_ssr = (dir) => {
  const name = dir.arg
    ? '\'' + dir.arg.content.split(':')[ 0 ] + '\''
    : false;

  return {
    props: [
      compilerDom.createObjectProperty(
        'class',
        `${ dir.exp.content } === ${ name } ? '' : 'q-morph--invisible'`
      )
    ]
  }
};

module.exports = Morph_ssr;
