Liferay.Loader.define('frontend-taglib-clay$clay-checkbox@2.24.1/src/ClayCheckbox.soy', ['module', 'exports', 'require'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    /* jshint ignore:start */
    import Component from 'metal-component';
    import Soy from 'metal-soy';

    var templates;
    goog.loadModule(function (exports) {
      var soy = goog.require('soy');

      goog.require('soydata');

      // This file was automatically generated from ClayCheckbox.soy.
      // Please don't edit this file by hand.

      /**
       * @fileoverview Templates in namespace ClayCheckbox.
       * @public
       */

      goog.module('ClayCheckbox.incrementaldom');

      goog.require('goog.soy.data.SanitizedContent');
      var incrementalDom = goog.require('incrementaldom');
      goog.require('soy.asserts');

      goog.require('soy.idom');

      var $templateAlias1 = Soy.getTemplate('ClayCheckboxLabel.incrementaldom', 'render');

      /**
       * @param {{
       *  ariaLabelledBy: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  checked: (boolean|null|undefined),
       *  disabled: (boolean|null|undefined),
       *  elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  id: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  indeterminate: (boolean|null|undefined),
       *  inline: (boolean|null|undefined),
       *  label: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  labelContent: (function()|null|undefined),
       *  name: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  showLabel: (boolean|null|undefined),
       *  value: (!goog.soy.data.SanitizedContent|null|string|undefined)
       * }} opt_data
       * @param {Object<string, *>=} opt_ijData
       * @param {Object<string, *>=} opt_ijData_deprecated
       * @return {void}
       * @suppress {checkTypes}
       */
      function $render(opt_data, opt_ijData, opt_ijData_deprecated) {
        opt_ijData = opt_ijData_deprecated || opt_ijData;
        var $$temp;
        opt_data = opt_data || {};
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var ariaLabelledBy = soy.asserts.assertType(opt_data.ariaLabelledBy == null || goog.isString(opt_data.ariaLabelledBy) || opt_data.ariaLabelledBy instanceof goog.soy.data.SanitizedContent, 'ariaLabelledBy', opt_data.ariaLabelledBy, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {boolean|null|undefined} */
        var checked = soy.asserts.assertType(opt_data.checked == null || goog.isBoolean(opt_data.checked) || opt_data.checked === 1 || opt_data.checked === 0, 'checked', opt_data.checked, 'boolean|null|undefined');
        /** @type {boolean|null|undefined} */
        var disabled = soy.asserts.assertType(opt_data.disabled == null || goog.isBoolean(opt_data.disabled) || opt_data.disabled === 1 || opt_data.disabled === 0, 'disabled', opt_data.disabled, 'boolean|null|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var elementClasses = soy.asserts.assertType(opt_data.elementClasses == null || goog.isString(opt_data.elementClasses) || opt_data.elementClasses instanceof goog.soy.data.SanitizedContent, 'elementClasses', opt_data.elementClasses, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var id = soy.asserts.assertType(opt_data.id == null || goog.isString(opt_data.id) || opt_data.id instanceof goog.soy.data.SanitizedContent, 'id', opt_data.id, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {boolean|null|undefined} */
        var indeterminate = soy.asserts.assertType(opt_data.indeterminate == null || goog.isBoolean(opt_data.indeterminate) || opt_data.indeterminate === 1 || opt_data.indeterminate === 0, 'indeterminate', opt_data.indeterminate, 'boolean|null|undefined');
        /** @type {boolean|null|undefined} */
        var inline = soy.asserts.assertType(opt_data.inline == null || goog.isBoolean(opt_data.inline) || opt_data.inline === 1 || opt_data.inline === 0, 'inline', opt_data.inline, 'boolean|null|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var label = soy.asserts.assertType(opt_data.label == null || goog.isString(opt_data.label) || opt_data.label instanceof goog.soy.data.SanitizedContent, 'label', opt_data.label, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {function()|null|undefined} */
        var labelContent = soy.asserts.assertType(opt_data.labelContent == null || goog.isFunction(opt_data.labelContent), 'labelContent', opt_data.labelContent, 'function()|null|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var name = soy.asserts.assertType(opt_data.name == null || goog.isString(opt_data.name) || opt_data.name instanceof goog.soy.data.SanitizedContent, 'name', opt_data.name, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {boolean|null|undefined} */
        var showLabel = soy.asserts.assertType(opt_data.showLabel == null || goog.isBoolean(opt_data.showLabel) || opt_data.showLabel === 1 || opt_data.showLabel === 0, 'showLabel', opt_data.showLabel, 'boolean|null|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var value = soy.asserts.assertType(opt_data.value == null || goog.isString(opt_data.value) || opt_data.value instanceof goog.soy.data.SanitizedContent, 'value', opt_data.value, '!goog.soy.data.SanitizedContent|null|string|undefined');

        incrementalDom.elementOpenStart('div');
        (function () {
          incrementalDom.attr('class', 'custom-control custom-checkbox' + (inline ? ' custom-control-inline' : '') + (elementClasses ? ' ' + elementClasses : ''));
          if (id) {
            incrementalDom.attr('id', id);
          }
        })();
        incrementalDom.elementOpenEnd();
        $input({ ariaLabelledBy: ariaLabelledBy, checked: indeterminate || checked, disabled: disabled, label: label, labelContent: labelContent, name: name, showLabel: ($$temp = showLabel) == null ? true : $$temp, value: value }, null, opt_ijData);
        incrementalDom.elementClose('div');
      }
      exports.render = $render;
      /**
       * @typedef {{
       *  ariaLabelledBy: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  checked: (boolean|null|undefined),
       *  disabled: (boolean|null|undefined),
       *  elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  id: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  indeterminate: (boolean|null|undefined),
       *  inline: (boolean|null|undefined),
       *  label: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  labelContent: (function()|null|undefined),
       *  name: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  showLabel: (boolean|null|undefined),
       *  value: (!goog.soy.data.SanitizedContent|null|string|undefined)
       * }}
       */
      $render.Params;
      if (goog.DEBUG) {
        $render.soyTemplateName = 'ClayCheckbox.render';
      }

      /**
       * @param {{
       *  ariaLabelledBy: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  checked: (boolean|null|undefined),
       *  disabled: (boolean|null|undefined),
       *  label: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  labelContent: (function()|null|undefined),
       *  name: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  showLabel: (boolean|null|undefined),
       *  value: (!goog.soy.data.SanitizedContent|null|string|undefined)
       * }} opt_data
       * @param {Object<string, *>=} opt_ijData
       * @param {Object<string, *>=} opt_ijData_deprecated
       * @return {void}
       * @suppress {checkTypes}
       */
      function $input(opt_data, opt_ijData, opt_ijData_deprecated) {
        opt_ijData = opt_ijData_deprecated || opt_ijData;
        opt_data = opt_data || {};
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var ariaLabelledBy = soy.asserts.assertType(opt_data.ariaLabelledBy == null || goog.isString(opt_data.ariaLabelledBy) || opt_data.ariaLabelledBy instanceof goog.soy.data.SanitizedContent, 'ariaLabelledBy', opt_data.ariaLabelledBy, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {boolean|null|undefined} */
        var checked = soy.asserts.assertType(opt_data.checked == null || goog.isBoolean(opt_data.checked) || opt_data.checked === 1 || opt_data.checked === 0, 'checked', opt_data.checked, 'boolean|null|undefined');
        /** @type {boolean|null|undefined} */
        var disabled = soy.asserts.assertType(opt_data.disabled == null || goog.isBoolean(opt_data.disabled) || opt_data.disabled === 1 || opt_data.disabled === 0, 'disabled', opt_data.disabled, 'boolean|null|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var label = soy.asserts.assertType(opt_data.label == null || goog.isString(opt_data.label) || opt_data.label instanceof goog.soy.data.SanitizedContent, 'label', opt_data.label, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {function()|null|undefined} */
        var labelContent = soy.asserts.assertType(opt_data.labelContent == null || goog.isFunction(opt_data.labelContent), 'labelContent', opt_data.labelContent, 'function()|null|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var name = soy.asserts.assertType(opt_data.name == null || goog.isString(opt_data.name) || opt_data.name instanceof goog.soy.data.SanitizedContent, 'name', opt_data.name, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {boolean|null|undefined} */
        var showLabel = soy.asserts.assertType(opt_data.showLabel == null || goog.isBoolean(opt_data.showLabel) || opt_data.showLabel === 1 || opt_data.showLabel === 0, 'showLabel', opt_data.showLabel, 'boolean|null|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var value = soy.asserts.assertType(opt_data.value == null || goog.isString(opt_data.value) || opt_data.value instanceof goog.soy.data.SanitizedContent, 'value', opt_data.value, '!goog.soy.data.SanitizedContent|null|string|undefined');
        incrementalDom.elementOpen('label');

        incrementalDom.elementOpenStart('input');
        (function () {
          if (ariaLabelledBy) {
            incrementalDom.attr('aria-labelledby', ariaLabelledBy);
          }
          if (checked) {
            incrementalDom.attr('checked', 'checked');
          }
          if (disabled) {
            incrementalDom.attr('disabled', 'disabled');
          }
          incrementalDom.attr('class', 'custom-control-input');
          if (name) {
            incrementalDom.attr('name', name);
          }
          if (value) {
            incrementalDom.attr('value', value);
          }
          incrementalDom.attr('ref', 'input');
          incrementalDom.attr('type', 'checkbox');
        })();
        incrementalDom.elementOpenEnd();
        incrementalDom.elementClose('input');
        incrementalDom.elementOpenStart('span');
        incrementalDom.attr('class', 'custom-control-label');
        incrementalDom.elementOpenEnd();
        if (label) {
          var spanLabelClasses__soy92 = '';
          spanLabelClasses__soy92 += 'custom-control-label-text';
          spanLabelClasses__soy92 += !showLabel ? ' sr-only' : '';
          incrementalDom.elementOpenStart('span');
          incrementalDom.attr('class', spanLabelClasses__soy92);
          incrementalDom.elementOpenEnd();
          $templateAlias1(opt_data, null, opt_ijData);
          incrementalDom.elementClose('span');
        }
        incrementalDom.elementClose('span');
        if (labelContent) {
          labelContent();
        }
        incrementalDom.elementClose('label');
      }
      exports.input = $input;
      /**
       * @typedef {{
       *  ariaLabelledBy: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  checked: (boolean|null|undefined),
       *  disabled: (boolean|null|undefined),
       *  label: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  labelContent: (function()|null|undefined),
       *  name: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  showLabel: (boolean|null|undefined),
       *  value: (!goog.soy.data.SanitizedContent|null|string|undefined)
       * }}
       */
      $input.Params;
      if (goog.DEBUG) {
        $input.soyTemplateName = 'ClayCheckbox.input';
      }

      exports.render.params = ["ariaLabelledBy", "checked", "disabled", "elementClasses", "id", "indeterminate", "inline", "label", "labelContent", "name", "showLabel", "value"];
      exports.render.types = { "ariaLabelledBy": "string", "checked": "bool", "disabled": "bool", "elementClasses": "string", "id": "string", "indeterminate": "bool", "inline": "bool", "label": "string", "labelContent": "html", "name": "string", "showLabel": "bool", "value": "string" };
      exports.input.params = ["ariaLabelledBy", "checked", "disabled", "label", "labelContent", "name", "showLabel", "value"];
      exports.input.types = { "ariaLabelledBy": "string", "checked": "bool", "disabled": "bool", "label": "string", "labelContent": "html", "name": "string", "showLabel": "bool", "value": "string" };
      templates = exports;
      return exports;
    });

    class ClayCheckbox extends Component {}
    Soy.register(ClayCheckbox, templates);
    export { ClayCheckbox, templates };
    export default templates;
    /* jshint ignore:end */
  }
});
//# sourceMappingURL=ClayCheckbox.soy.js.map