"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const contexts_1 = require("../../../contexts/index.js");
const react_1 = __importStar(require("react"));
const LineBreak_1 = __importDefault(require("../../../components/generic/LineBreak"));
const Placeholder_1 = __importDefault(require("../../../components/generic/Placeholder"));
const ScreenSize_1 = __importDefault(require("../../../util/ScreenSize"));
const StepHotelComponent = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./StepHotelComponent'))));
const Loader = () => {
    const { screenSize } = (0, react_1.useContext)(contexts_1.BookingEngineContext);
    return screenSize > ScreenSize_1.default.Medium ? (react_1.default.createElement("div", { className: "container" },
        react_1.default.createElement("div", { className: "u-marg-bottom--heavy" },
            react_1.default.createElement(Placeholder_1.default, { blink: true, type: "text", w: "xs", h: "xs" }),
            react_1.default.createElement(Placeholder_1.default, { blink: true, type: "text", w: "sm", h: "md" })),
        react_1.default.createElement("div", null,
            react_1.default.createElement(Placeholder_1.default, { blink: true, type: "text", w: "md", h: "lg" })),
        react_1.default.createElement(LineBreak_1.default, null),
        react_1.default.createElement("div", null,
            react_1.default.createElement(Placeholder_1.default, { blink: true, type: "text", w: "xl", h: "lg" })),
        react_1.default.createElement("div", { className: "row" }, [0, 1, 2].map((index) => (react_1.default.createElement("div", { className: "col-md-4", key: index },
            react_1.default.createElement(Placeholder_1.default, { blink: true, rounded: "lg", type: "block", blockSize: "sm" }),
            react_1.default.createElement(Placeholder_1.default, { blink: true, type: "text", w: "md", h: "md" }),
            react_1.default.createElement(Placeholder_1.default, { blink: true, type: "text", w: "md", h: "md" }),
            react_1.default.createElement(Placeholder_1.default, { blink: true, type: "text", w: "xl", h: "lg" }),
            react_1.default.createElement(Placeholder_1.default, { blink: true, type: "text", w: "xl", h: "xs" }),
            react_1.default.createElement(Placeholder_1.default, { blink: true, type: "text", w: "xl", h: "xs" }),
            react_1.default.createElement(Placeholder_1.default, { blink: true, type: "text", w: "xl", h: "xs" }),
            react_1.default.createElement(Placeholder_1.default, { blink: true, type: "block", blockSize: "xs", rounded: "md" }),
            react_1.default.createElement(Placeholder_1.default, { blink: true, type: "text", w: "md", h: "xl" }))))))) : (react_1.default.createElement("div", { className: "container" },
        react_1.default.createElement("div", { className: "row" },
            react_1.default.createElement("div", { className: "col-6" },
                react_1.default.createElement(Placeholder_1.default, { blink: true, type: "text", w: "md", h: "md" })),
            react_1.default.createElement("div", { className: "col-6" },
                react_1.default.createElement(Placeholder_1.default, { blink: true, type: "text", w: "md", h: "md" }))),
        react_1.default.createElement(LineBreak_1.default, null),
        react_1.default.createElement(Placeholder_1.default, { type: "block", blockSize: "sm", rounded: "lg", blink: true }),
        react_1.default.createElement("div", { className: "u-marg-top--xl" },
            react_1.default.createElement(Placeholder_1.default, { type: "block", blockSize: "xs", rounded: "lg", blink: true }),
            react_1.default.createElement(Placeholder_1.default, { type: "text", w: "md", h: "sm", blink: true }),
            react_1.default.createElement(Placeholder_1.default, { type: "text", w: "md", h: "sm", blink: true }),
            react_1.default.createElement("div", { className: "u-marg-top--heavy" },
                react_1.default.createElement(Placeholder_1.default, { type: "text", w: "md", h: "xs", blink: true }),
                react_1.default.createElement(Placeholder_1.default, { type: "text", w: "md", h: "xs", blink: true }),
                react_1.default.createElement(Placeholder_1.default, { type: "text", w: "md", h: "xs", blink: true })),
            react_1.default.createElement(Placeholder_1.default, { type: "block", blockSize: "xs", rounded: "lg", blink: true }),
            react_1.default.createElement(Placeholder_1.default, { type: "text", w: "md", h: "xl", blink: true }),
            react_1.default.createElement(Placeholder_1.default, { type: "text", w: "xl", h: "md", blink: true }))));
};
const StepHotelLoader = () => {
    return (react_1.default.createElement(react_1.Suspense, { fallback: react_1.default.createElement(Loader, null) },
        react_1.default.createElement(StepHotelComponent, null)));
};
exports.default = StepHotelLoader;
//# sourceMappingURL=StepHotelLoader.js.map