import { __decorate } from "tslib";
import { Component, Input, Output, EventEmitter } from '@angular/core';
import { QuizService } from '../../../../shared/service/quiz.service';
var SummaryPaginationComponent = /** @class */ (function () {
    function SummaryPaginationComponent(quizService) {
        this.quizService = quizService;
        this.pageLoader = false;
        this.showBoundaryLinks = true;
        this.rotate = true;
        this.paginationChanged = new EventEmitter();
    }
    SummaryPaginationComponent.prototype.ngOnChanges = function (changes) {
    };
    SummaryPaginationComponent.prototype.ngOnInit = function () {
    };
    SummaryPaginationComponent.prototype.pageChanged = function (event) {
        this.paginationChanged.emit(event.page);
    };
    SummaryPaginationComponent.ctorParameters = function () { return [
        { type: QuizService }
    ]; };
    __decorate([
        Input('currentPage')
    ], SummaryPaginationComponent.prototype, "currentPage", void 0);
    __decorate([
        Input('totalquestions')
    ], SummaryPaginationComponent.prototype, "totalItems", void 0);
    __decorate([
        Output('pageChanged')
    ], SummaryPaginationComponent.prototype, "paginationChanged", void 0);
    SummaryPaginationComponent = __decorate([
        Component({
            selector: 'lib-summary-pagination',
            template: "<div class=\"wk-row \">\n  <div class=\"wk-layout-50-50 gray-bg mb20 fullwidth-wklayout\">\n    <div class=\"wk-button-bar \">\n      <div class=\"wk-button-group-right\">\n        <!--Pagination-->\n        <div class=\"wk-row\" style=\"float: right\">\n          <pagination\n            [rotate]=\"rotate\"\n            [maxSize]=\"maxSize\"\n            [totalItems]=\"totalItems\"\n            [itemsPerPage]=\"5\"\n            [(ngModel)]=\"currentPage\"\n            (pageChanged)=\"pageChanged($event)\"\n            [boundaryLinks]=\"showBoundaryLinks\"\n          ></pagination>\n        </div>\n      </div>\n    </div>\n  </div>\n</div>\n",
            styles: ["#svg-container .wkqp-fullwidth{float:none!important}h1.quiz-main-title{margin-top:0!important;margin-bottom:20px!important}.summary-label span{display:inline-block;margin-bottom:5px;font-weight:600}.quiz-ans-section{float:left;width:100%}.quiz-ans-section h2.wkqp-module-heading{color:var(--primary-color);font-size:1.2rem;font-weight:600;margin:0;padding:0 0 10px}.quiz-ans-section .wkqp-layout-item{margin-bottom:0}.footer-btn-close{background:0 0;color:#fff;font-weight:700;opacity:unset;padding:0 0 0 5px}.footer-btn-close:focus,.footer-btn-close:hover{background-color:transparent!important;border:0;outline:0;box-shadow:0 0 0!important}.summary-position-bottom{position:absolute;bottom:5px;right:15px}#tip{margin:auto auto -6px;width:30px;border:10px solid #000;border-radius:15px;display:block}#battery{position:relative;margin:auto;width:90px;height:164px;border:10px solid #000;border-radius:15px;display:block}#cell{position:absolute;bottom:0;width:100%;font-size:51px;color:#000;font-weight:700;z-index:1;display:block;left:0}#indicator{position:absolute;z-index:100;width:100%;text-align:center}#indicator img{margin-top:25%;height:40px;opacity:.2}.battery-wrapper{transform:scale(.2) rotate(90deg);display:block;position:absolute;bottom:-77px;width:128px;left:26px}.examTaker-nav-button-text.pr65{padding-right:55px;position:relative;top:3px}.engine-title{position:relative;top:8px;padding:0 0 0 15px;font-size:14px;font-weight:600}.examTaker-nav-button-text.pr65 strong{font-size:14px}.battery-percentage{display:block;transform:rotate(-90deg);position:relative;left:1px;padding:0;bottom:10px;width:100%}.stepBarClass{width:90%;height:10px;background:#d3d3d3;border-radius:5px}.stepSliderClass{width:20px;height:20px;background:#d3d3d3;border-radius:50%;border:1px solid #4169e1;bottom:-50%!important}.stephighlightClass{background:#4169e1}.audio-volume-icon{margin:0 5px 0 10px;cursor:pointer;position:relative;top:8px}.volume-slider{position:absolute;right:15px;bottom:38px;background-color:#474747;width:340px;margin:0;padding:0 55px;height:98px;z-index:10}.audio-volume-static{position:absolute;bottom:56px;right:316px;color:#fff;font-size:18px;z-index:1000000000000!important}.audio-volume-static .fa.fa-volume-up{font-size:20px}.volume-level{font-size:18px;color:#fff;position:absolute;bottom:57px;right:38px;z-index:100000;font-weight:600}.volume-title{font-size:15px;color:#fff;position:absolute;bottom:105px;right:173px;z-index:100000;font-weight:600}.footer-btn-close .fa-power-off:before{color:#000!important;font-size:28px!important;font-weight:300!important;position:relative!important;top:8px}.audio-volume-icon i.fa-volume-up{font-size:30px!important}.wifi-icon{font-size:28px!important;position:relative!important;top:8px!important}.qp-seb{float:left;width:100%;background:#ccc;height:40px;padding:0;position:absolute;bottom:0;left:0;right:0}"]
        })
    ], SummaryPaginationComponent);
    return SummaryPaginationComponent;
}());
export { SummaryPaginationComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3VtbWFyeS1wYWdpbmF0aW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2V4YW0tZW5naW5lLWxpYnJhcmllcy8iLCJzb3VyY2VzIjpbImxpYi9pdGVtLXR5cGVzL2NvbXBvbmVudHMvc3VtbWFyeS9zdW1tYXJ5LXBhZ2luYXRpb24vc3VtbWFyeS1wYWdpbmF0aW9uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxLQUFLLEVBQUUsTUFBTSxFQUFFLFlBQVksRUFBNEIsTUFBTSxlQUFlLENBQUM7QUFDekcsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLHlDQUF5QyxDQUFDO0FBT3RFO0lBb0JFLG9DQUFvQixXQUF3QjtRQUF4QixnQkFBVyxHQUFYLFdBQVcsQ0FBYTtRQWxCNUMsZUFBVSxHQUFHLEtBQUssQ0FBQztRQUNuQixzQkFBaUIsR0FBRyxJQUFJLENBQUM7UUFDekIsV0FBTSxHQUFHLElBQUksQ0FBQztRQVdTLHNCQUFpQixHQUFzQixJQUFJLFlBQVksRUFBRSxDQUFDO0lBS2pDLENBQUM7SUFYakQsZ0RBQVcsR0FBWCxVQUFZLE9BQXNCO0lBQ2xDLENBQUM7SUFFRCw2Q0FBUSxHQUFSO0lBQ0EsQ0FBQztJQUdELGdEQUFXLEdBQVgsVUFBWSxLQUFLO1FBQ2YsSUFBSSxDQUFDLGlCQUFpQixDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsSUFB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