{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap c7396439ee592681b60b","webpack:///./src/core/utils.ts","webpack:///./src/index.ts","webpack:///./src/core/data.ts","webpack:///./src/core/watch.ts","webpack:///./src/template/index.html","webpack:///./src/core/props.ts","webpack:///./src/core/methods.ts","webpack:///./src/core/computed.ts","webpack:///./src/core/directives.ts"],"names":["root","factory","exports","module","define","amd","this","__webpack_require__","moduleId","installedModules","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","value","install","Vue","options","component","data","__WEBPACK_IMPORTED_MODULE_0__core_data__","props","__WEBPACK_IMPORTED_MODULE_3__core_props__","watch","__WEBPACK_IMPORTED_MODULE_1__core_watch__","methods","__WEBPACK_IMPORTED_MODULE_4__core_methods__","template","__WEBPACK_IMPORTED_MODULE_2__template_index_html___default","a","computed","__WEBPACK_IMPORTED_MODULE_5__core_computed__","directives","__WEBPACK_IMPORTED_MODULE_6__core_directives__","__webpack_exports__","window","use","currentPage","__WEBPACK_IMPORTED_MODULE_0__utils__","value.currentPage","oldValue","changeOnClick","$emit","boundaryLinks","type","Boolean","default","boundaryLinkNumbers","directionLinks","disabled","firstText","String","forceEllipses","itemsPerPage","Number","lastText","maxSize","undefined","nextText","required","validator","pageLabel","Function","previousText","rotate","totalItems","key","page","evt","preventDefault","totalPages","target","blur","number","text","isActive","active","numPages","defineProperties","noPrevious","noNext","Math","ceil","max","pages","startPage","endPage","isMaxSized","floor","min","makePage","push","previousPageSet","unshift","secondPageLink","firstPageLink","nextPageSet","secondToLastPageLink","lastPageLink","createDataForModel","el","binding","setAttribute","removeAttribute"],"mappings":"CAAA,SAAAA,EAAAC,GACA,iBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,IACA,mBAAAG,eAAAC,IACAD,UAAAH,GACA,iBAAAC,QACAA,QAAA,wBAAAD,IAEAD,EAAA,wBAAAC,IARA,CASCK,KAAA,WAC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O,EAAkBzG,KAAKuG,SAASL,EAAY,EAAG,OAAO,GAC1DD,EAAMS,QAAQD,GAElB,GAAIzG,KAAK4D,oBAAqB,CAC1B,GAAkB,IAAdsC,EAAiB,CACjB,IAAIS,EAAiB3G,KAAKuG,SAAS,EAAG,KAAK,GAC3CN,EAAMS,QAAQC,GAGlB,IAAIC,EAAgB5G,KAAKuG,SAAS,EAAG,KAAK,GAC1CN,EAAMS,QAAQE,IAItB,GAAIT,EAAUnG,KAAKmF,WAAY,CAC3B,IAAKnF,KAAK4D,qBAAuBuC,EAAUnG,KAAKmF,WAAa,EAAG,CAC5D,IAAI0B,EAAc7G,KAAKuG,SAASJ,EAAU,EAAG,OAAO,GACpDF,EAAMO,KAAKK,GAEf,GAAI7G,KAAK4D,oBAAqB,CAC1B,GAAIuC,IAAYnG,KAAKmF,WAAa,EAAG,CACjC,IAAI2B,EAAuB9G,KAAKuG,SAASvG,KAAKmF,WAAa,EAAGnF,KAAKmF,WAAa,GAAG,GACnFc,EAAMO,KAAKM,GAGf,IAAIC,EAAe/G,KAAKuG,SAASvG,KAAKmF,WAAYnF,KAAKmF,YAAY,GACnEc,EAAMO,KAAKO,KAQvB,OAFA/G,KAAKuD,MAAM,QAASvD,KAAKgH,mBAAmBhH,KAAKkD,YAAalD,KAAKmF,aAE5Dc,iHCnGL,SAA4BgB,EAAaC,GACvCA,EAAQvF,MACRsF,EAAGE,aAAa,WAAY,MAE5BF,EAAGG,gBAAgB","file":"./dist/vuejs-uib-pagination.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"vuejs-uib-pagination\"] = factory();\n\telse\n\t\troot[\"vuejs-uib-pagination\"] = factory();\n})(this, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 1);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap c7396439ee592681b60b","export function identity(value) {\r\n return value;\r\n}\r\n\r\nexport function isDefined(value) {\r\n return typeof value !== \"undefined\";\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/core/utils.ts","import data from \"./core/data\";\r\nimport watch from \"./core/watch\";\r\nimport template from \"./template/index.html\";\r\n\r\nimport * as props from \"./core/props\";\r\nimport * as methods from \"./core/methods\";\r\nimport * as computed from \"./core/computed\";\r\nimport * as directives from \"./core/directives\";\r\n\r\nfunction install(Vue, options) {\r\n Vue.component(\"uib-pagination\", {\r\n data,\r\n props,\r\n watch,\r\n methods,\r\n template,\r\n computed,\r\n directives\r\n });\r\n}\r\n\r\nexport { install };\r\nexport default install;\r\n\r\nif (typeof window !== \"undefined\" && window[\"Vue\"]) {\r\n window[\"Vue\"].use(install);\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/index.ts","import * as v from \"./utils\";\r\n\r\nexport default function (this: uibPaginationData) {\r\n\r\n let currentPage = v.isDefined(this.value.currentPage) ? this.value.currentPage : 1;\r\n let data = { currentPage };\r\n\r\n return data;\r\n};\n\n\n// WEBPACK FOOTER //\n// ./src/core/data.ts","let watch = {\r\n \"value.currentPage\"(this: uibPagination, value: number, oldValue: number) {\r\n this.currentPage = value;\r\n\r\n if (oldValue == null) { return; }\r\n\r\n if (!this.changeOnClick) { this.$emit(\"change\"); }\r\n }\r\n};\r\n\r\nexport default watch;\n\n\n// WEBPACK FOOTER //\n// ./src/core/watch.ts","module.exports = \"
\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/template/index.html\n// module id = 4\n// module chunks = 0","import * as v from \"./utils\";\r\n\r\nexport let boundaryLinks = {\r\n type: Boolean,\r\n default: false\r\n};\r\n\r\nexport let boundaryLinkNumbers = {\r\n type: Boolean,\r\n default: false\r\n};\r\n\r\nexport let directionLinks = {\r\n type: Boolean,\r\n default: true\r\n};\r\n\r\nexport let disabled = {\r\n type: Boolean,\r\n default: false\r\n};\r\n\r\nexport let firstText = {\r\n type: String,\r\n default: \"First\"\r\n};\r\n\r\nexport let forceEllipses = {\r\n type: Boolean,\r\n default: false\r\n};\r\n\r\nexport let itemsPerPage = {\r\n type: Number,\r\n default: 10\r\n};\r\n\r\nexport let lastText = {\r\n type: String,\r\n default: \"Last\"\r\n};\r\n\r\nexport let maxSize = {\r\n type: Number,\r\n default: undefined\r\n};\r\n\r\nexport let nextText = {\r\n type: String,\r\n default: \"Next\"\r\n};\r\n\r\nexport let changeOnClick = {\r\n type: Boolean,\r\n default: false\r\n};\r\n\r\n/* vModel { currentPage: 1, numPages: 10 } */\r\nexport let value = {\r\n type: Object,\r\n required: true,\r\n validator: function (value: uibParentModel) {\r\n return !v.isDefined(value.currentPage) || typeof value.currentPage === \"number\";\r\n }\r\n};\r\n\r\nexport let pageLabel = {\r\n type: Function,\r\n default: v.identity\r\n};\r\n\r\nexport let previousText = {\r\n type: String,\r\n default: \"Previous\"\r\n};\r\n\r\nexport let rotate = {\r\n type: Boolean,\r\n default: true\r\n};\r\n\r\nexport let totalItems = {\r\n type: Number,\r\n default: 0\r\n};\n\n\n// WEBPACK FOOTER //\n// ./src/core/props.ts","export function getText(this: uibPagination, key: string): string {\r\n return this[key + \"Text\"];\r\n}\r\n\r\nexport function selectPage(this: uibPagination, page: number, evt) {\r\n if (evt) {\r\n evt.preventDefault();\r\n }\r\n\r\n let clickAllowed = !this.disabled || !evt;\r\n\r\n if (clickAllowed && this.currentPage !== page && page > 0 && page <= this.totalPages) {\r\n if (evt && evt.target) {\r\n evt.target.blur();\r\n }\r\n this.currentPage = page;\r\n if (this.changeOnClick) { this.$emit(\"change\"); }\r\n }\r\n}\r\n\r\nexport function makePage(number: number, text: string | number, isActive: boolean): uibPage {\r\n return { number: number, text: text, active: isActive };\r\n}\r\n\r\nexport function createDataForModel(currentPage: number, numPages: number): uibParentModel {\r\n let data = { currentPage, numPages };\r\n\r\n Object.defineProperties(data, {\r\n numPages: {\r\n get() {\r\n return numPages;\r\n }\r\n }\r\n });\r\n\r\n return data;\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/core/methods.ts","import * as v from \"./utils\";\r\n\r\nexport function isNoPreviousOrDisabled(this: uibPagination) {\r\n return this.noPrevious || this.disabled;\r\n}\r\n\r\nexport function isNoNextOrDisabled(this: uibPagination) {\r\n return this.noNext || this.disabled;\r\n}\r\n\r\nexport function noNext(this: uibPagination) {\r\n return this.value.currentPage === this.totalPages;\r\n}\r\n\r\nexport function noPrevious(this: uibPagination) {\r\n return this.value.currentPage === 1;\r\n}\r\n\r\nexport function totalPages(this: uibPagination) {\r\n let totalPages = this.itemsPerPage < 1 ? 1 : Math.ceil(this.totalItems / this.itemsPerPage);\r\n return Math.max(totalPages || 0, 1);\r\n}\r\n\r\nexport function pages(this: uibPagination) {\r\n let pages: Array