/*eslint-disable */
/* jscs:disable */
define([], function () {
  /**
   * Copyright © Magento, Inc. All rights reserved.
   * See COPYING.txt for license details.
   */
  var OverlayColor = /*#__PURE__*/function () {
    "use strict";

    function OverlayColor() {}

    var _proto = OverlayColor.prototype;

    /**
     * Convert value to internal format
     *
     * @param value string
     * @returns {string | object}
     */
    _proto.fromDom = function fromDom(value) {
      return value === "transparent" ? "" : value;
    }
    /**
     * Convert value to knockout format
     *
     * @param {string} name
     * @param {DataObject} data
     * @returns {string | object}
     */
    ;

    _proto.toDom = function toDom(name, data) {
      if (data.video_overlay_color) {
        return data.video_overlay_color.toString();
      }

      return "";
    };

    return OverlayColor;
  }();

  return OverlayColor;
});
//# sourceMappingURL=video-overlay-color.js.map