Liferay.Loader.define("frontend-image-editor-web@4.0.37/ResizeComponent.soy", ['module', 'exports', 'require', 'frontend-js-metal-web$metal-component', 'frontend-js-metal-web$metal-soy'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    exports.default = exports.templates = exports.ImageEditorResizeComponent = void 0;

    var _metalComponent = _interopRequireDefault(require("frontend-js-metal-web$metal-component"));

    var _metalSoy = _interopRequireDefault(require("frontend-js-metal-web$metal-soy"));

    function _interopRequireDefault(obj) {
      return obj && obj.__esModule ? obj : { default: obj };
    }

    function _typeof(obj) {
      "@babel/helpers - typeof";
      if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
        _typeof = function _typeof(obj) {
          return typeof obj;
        };
      } else {
        _typeof = function _typeof(obj) {
          return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
        };
      }return _typeof(obj);
    }

    function _classCallCheck(instance, Constructor) {
      if (!(instance instanceof Constructor)) {
        throw new TypeError("Cannot call a class as a function");
      }
    }

    function _possibleConstructorReturn(self, call) {
      if (call && (_typeof(call) === "object" || typeof call === "function")) {
        return call;
      }return _assertThisInitialized(self);
    }

    function _assertThisInitialized(self) {
      if (self === void 0) {
        throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
      }return self;
    }

    function _getPrototypeOf(o) {
      _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
        return o.__proto__ || Object.getPrototypeOf(o);
      };return _getPrototypeOf(o);
    }

    function _inherits(subClass, superClass) {
      if (typeof superClass !== "function" && superClass !== null) {
        throw new TypeError("Super expression must either be null or a function");
      }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });if (superClass) _setPrototypeOf(subClass, superClass);
    }

    function _setPrototypeOf(o, p) {
      _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
        o.__proto__ = p;return o;
      };return _setPrototypeOf(o, p);
    }

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

      goog.require('soydata');

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

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

      goog.module('ImageEditorResizeComponent.incrementaldom');

      var incrementalDom = goog.require('incrementaldom');

      goog.require('soy.idom');

      /**
       * @param {Object<string, *>=} 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;
        incrementalDom.elementOpenStart('div');
        incrementalDom.attr('id', opt_data.ref);
        incrementalDom.elementOpenEnd();
        incrementalDom.elementOpenStart('div');
        incrementalDom.attr('class', 'input-group');
        incrementalDom.elementOpenEnd();
        incrementalDom.elementOpenStart('input');
        incrementalDom.attr('class', 'form-control');
        incrementalDom.attr('data-oninput', 'syncDimensions');
        incrementalDom.attr('id', opt_data.ref + 'Width');
        incrementalDom.attr('type', 'number');
        incrementalDom.attr('value', opt_data.imageWidth);
        incrementalDom.elementOpenEnd();
        incrementalDom.elementClose('input');
        incrementalDom.elementOpenStart('a');
        incrementalDom.attr('class', 'btn btn-link');
        incrementalDom.attr('data-onclick', 'toggleLockProportions');
        incrementalDom.attr('href', 'javascript:;');
        incrementalDom.elementOpenEnd();
        incrementalDom.elementOpenStart('svg');
        incrementalDom.attr('class', 'lexicon-icon');
        incrementalDom.attr('style', 'width: 14px;');
        incrementalDom.elementOpenEnd();
        incrementalDom.elementOpenStart('use');
        incrementalDom.attr('xlink:href', opt_data.pathThemeImages + '/clay/icons.svg#' + (opt_data.lockProportions ? 'lock' : 'unlock'));
        incrementalDom.elementOpenEnd();
        incrementalDom.elementClose('use');
        incrementalDom.elementClose('svg');
        incrementalDom.elementClose('a');
        incrementalDom.elementOpenStart('input');
        incrementalDom.attr('class', 'form-control');
        incrementalDom.attr('data-oninput', 'syncDimensions');
        incrementalDom.attr('id', opt_data.ref + 'Height');
        incrementalDom.attr('type', 'number');
        incrementalDom.attr('value', opt_data.imageHeight);
        incrementalDom.elementOpenEnd();
        incrementalDom.elementClose('input');
        incrementalDom.elementClose('div');
        incrementalDom.elementClose('div');
      }

      exports.render = $render;

      if (goog.DEBUG) {
        $render.soyTemplateName = 'ImageEditorResizeComponent.render';
      }

      exports.render.params = ["imageHeight", "imageWidth", "lockProportions", "pathThemeImages", "ref"];
      exports.render.types = {
        "imageHeight": "any",
        "imageWidth": "any",
        "lockProportions": "any",
        "pathThemeImages": "any",
        "ref": "any"
      };
      exports.templates = templates = exports;
      return exports;
    });

    var ImageEditorResizeComponent = /*#__PURE__*/function (_Component) {
      _inherits(ImageEditorResizeComponent, _Component);

      function ImageEditorResizeComponent() {
        _classCallCheck(this, ImageEditorResizeComponent);

        return _possibleConstructorReturn(this, _getPrototypeOf(ImageEditorResizeComponent).apply(this, arguments));
      }

      return ImageEditorResizeComponent;
    }(_metalComponent.default);

    exports.ImageEditorResizeComponent = ImageEditorResizeComponent;

    _metalSoy.default.register(ImageEditorResizeComponent, templates);

    var _default = templates;
    /* jshint ignore:end */

    exports.default = _default;
    //# sourceMappingURL=ResizeComponent.soy.js.map
  }
});
//# sourceMappingURL=ResizeComponent.soy.js.map