import { __decorate } from "tslib";
import { Component, Input, Output, EventEmitter } from '@angular/core';
import { QuizService } from '../../../../shared/service/quiz.service';
let SummaryPaginationComponent = class SummaryPaginationComponent {
    constructor(quizService) {
        this.quizService = quizService;
        this.pageLoader = false;
        this.showBoundaryLinks = true;
        this.rotate = true;
        this.paginationChanged = new EventEmitter();
    }
    ngOnChanges(changes) {
    }
    ngOnInit() {
    }
    pageChanged(event) {
        this.paginationChanged.emit(event.page);
    }
};
SummaryPaginationComponent.ctorParameters = () => [
    { 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);
export { SummaryPaginationComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3VtbWFyeS1wYWdpbmF0aW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2V4YW0tZW5naW5lLWxpYnJhcmllcy8iLCJzb3VyY2VzIjpbImxpYi9pdGVtLXR5cGVzL2NvbXBvbmVudHMvc3VtbWFyeS9zdW1tYXJ5LXBhZ2luYXRpb24vc3VtbWFyeS1wYWdpbmF0aW9uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxLQUFLLEVBQUUsTUFBTSxFQUFFLFlBQVksRUFBNEIsTUFBTSxlQUFlLENBQUM7QUFDekcsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLHlDQUF5QyxDQUFDO0FBT3RFLElBQWEsMEJBQTBCLEdBQXZDLE1BQWEsMEJBQTBCO0lBb0JyQyxZQUFvQixXQUF3QjtRQUF4QixnQkFBVyxHQUFYLFdBQVcsQ0FBYTtRQWxCNUMsZUFBVSxHQUFHLEtBQUssQ0FBQztRQUNuQixzQkFBaUIsR0FBRyxJQUFJLENBQUM7UUFDekIsV0FBTSxHQUFHLElBQUksQ0FBQztRQVdTLHNCQUFpQixHQUFzQixJQUFJLFlBQVksRUFBRSxDQUFDO0lBS2pDLENBQUM7SUFYakQsV0FBVyxDQUFDLE9BQXNCO0lBQ2xDLENBQUM7SUFFRCxRQUFRO0lBQ1IsQ0FBQztJQUdELFdBQVcsQ0FBQyxLQUFLO1FBQ2YsSUFBSSxDQUFDLGlCQUFpQixDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDMUMsQ0FBQztDQUlGLENBQUE7O1lBRmtDLFdBQVc7O0FBZHRCO0lBQXJCLEtBQUss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