/**
 * DevExtreme (esm/__internal/scheduler/appointments/m_render.js)
 * Version: 23.2.4 (build 24056-0112)
 * Build date: Sun Feb 25 2024
 *
 * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
 * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
 */
import $ from "../../../core/renderer";
import dxrAppointmentLayout from "../../../renovation/ui/scheduler/appointment/layout.j";
import {
    utils
} from "../m_utils";
export var renderAppointments = options => {
    var {
        instance: instance,
        $dateTable: $dateTable,
        viewModel: viewModel
    } = options;
    var container = getAppointmentsContainer($dateTable);
    utils.renovation.renderComponent(instance, container, dxrAppointmentLayout, "renovatedAppointments", viewModel)
};
var getAppointmentsContainer = $dateTable => {
    var container = $(".dx-appointments-container");
    if (0 === container.length) {
        container = $("<div>").addClass("dx-appointments-container").appendTo($dateTable)
    }
    return container
};
