"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var core_1 = require("@angular/core");
var jquery_provider_1 = require("../jquery/jquery.provider");
/*
 * Implementation also requires the following elements to be inserted on the page:
 *   <div class="device-xs visible-xs"></div>
 *   <div class="device-sm visible-sm"></div>
 *   <div class="device-md visible-md"></div>
 *   <div class="device-lg visible-lg"></div>
 * They have been inserted into index.html for your convenience.
 */
exports.visibleBreakpointServiceName = 'visibleBreakpoint';
var VisibleBreakpointService = (function () {
    function VisibleBreakpointService(jquery) {
        this.jquery = jquery;
    }
    VisibleBreakpointService.prototype.isVisible = function (breakpoint) {
        return this.jquery(".device-" + breakpoint).is(':visible');
    };
    return VisibleBreakpointService;
}());
VisibleBreakpointService = __decorate([
    core_1.Injectable(),
    __metadata("design:paramtypes", [jquery_provider_1.JQueryProvider])
], VisibleBreakpointService);
exports.VisibleBreakpointService = VisibleBreakpointService;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlzaWJsZUJyZWFrcG9pbnQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInZpc2libGVCcmVha3BvaW50LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHNDQUEyQztBQUMzQyw2REFBMkQ7QUFFM0Q7Ozs7Ozs7R0FPRztBQUVRLFFBQUEsNEJBQTRCLEdBQVcsbUJBQW1CLENBQUM7QUFPdEUsSUFBYSx3QkFBd0I7SUFHcEMsa0NBQVksTUFBc0I7UUFDakMsSUFBSSxDQUFDLE1BQU0sR0FBUSxNQUFNLENBQUM7SUFDM0IsQ0FBQztJQUVELDRDQUFTLEdBQVQsVUFBVSxVQUFrQjtRQUMzQixNQUFNLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxhQUFXLFVBQVksQ0FBQyxDQUFDLEVBQUUsQ0FBQyxVQUFVLENBQUMsQ0FBQztJQUM1RCxDQUFDO0lBQ0YsK0JBQUM7QUFBRCxDQUFDLEFBVkQsSUFVQztBQVZZLHdCQUF3QjtJQURwQyxpQkFBVSxFQUFFO3FDQUlRLGdDQUFjO0dBSHRCLHdCQUF3QixDQVVwQztBQVZZLDREQUF3QiJ9