/*!
 * SAPUI5
 * (c) Copyright 2009-2025 SAP SE. All rights reserved.
 */

sap.ui.define(function() {
	"use strict";

	/**
	 * @class DateRangeSlider renderer.
	 * @static
	 */
	var DateRangeSliderRenderer = {};

	/**
	 * Renders the HTML for the given control, using the provided {@link sap.ui.core.RenderManager}.
	 *
	 * @param {sap.ui.core.RenderManager} oRm the RenderManager that can be used for writing to the render output buffer
	 * @param {sap.suite.ui.commons.DateRangeSlider} oDateRangeSlider an object representation of the control that should be rendered
	 */
	DateRangeSliderRenderer.render = function(oRm, oDateRangeSlider) {
		if (!oDateRangeSlider.getVisible()) {
			return;
		}
		// write the HTML into the render manager
		oRm.write("<span");
		oRm.writeControlData(oDateRangeSlider);
		oRm.addClass("sapSuiteUiCommonsDateRangeSlider");
		oRm.writeClasses();
		oRm.write(">"); // span element
		oRm.renderControl(oDateRangeSlider._oDateRangeSliderInternal);
		oRm.write("</span>");
	};

	return DateRangeSliderRenderer;

}, /* bExport= */ true);