/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/admin/add.vue?vue&type=script&lang=js&": /*!**********************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/admin/add.vue?vue&type=script&lang=js& ***! \**********************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return { loading: false }; }, methods: { add: function add() { if (this.loading || !this.isPasswordMatch()) return; var vm = this; this.loading = true; this.util.notify('Adding Admin', 'loading'); axios.post(config.API + 'admin', $('#add_form').serialize()).then(function (response) { vm.loading = false; $.notifyClose(); if (vm.util.showResult(response, 'success')) { vm.$router.push({ name: 'Manage Account' }); } })["catch"](function (error) { vm.loading = false; $.notifyClose(); vm.util.showResult(error, 'error'); }); }, isPasswordMatch: function isPasswordMatch() { var isMatch = $('[name=password]').val() == $('[name=confirm_password]').val(); if (!isMatch) this.util.notify('Password not match', 'error'); return isMatch; } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/admin/admin.vue?vue&type=script&lang=js&": /*!************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/admin/admin.vue?vue&type=script&lang=js& ***! \************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ created: function created() { this.util.setTitle('Voting System - Manage Account'); } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/admin/edit.vue?vue&type=script&lang=js&": /*!***********************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/admin/edit.vue?vue&type=script&lang=js& ***! \***********************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return { loading: false }; }, methods: { refreshUser: function refreshUser() { var vm = this; axios.get(config.API + 'admin/' + this.data.user.id).then(function (response) { vm.data.user = response.data; }); }, edit: function edit() { if (this.loading) return; this.loading = true; var vm = this; this.util.notify('Updating account', 'loading'); axios.put(config.API + 'admin/' + this.data.user.id, $('#edit_form').serialize()).then(function (response) { $.notifyClose(); vm.loading = false; if (vm.util.showResult(response, 'success')) { vm.refreshUser(); vm.$router.push({ name: 'Admin Home' }); } })["catch"](function (error) { $.notifyClose(); vm.loading = false; vm.util.showResult(error, 'error'); }); } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/admin/index.vue?vue&type=script&lang=js&": /*!************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/admin/index.vue?vue&type=script&lang=js& ***! \************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return { id: 0 }; }, created: function created() { this.refreshAdmin(); }, methods: { deleteAdmin: function deleteAdmin() { this.util.hideModal('#delete-admin-modal'); this.util.notify('Deleting admin', 'loading'); var vm = this; axios["delete"](config.API + 'admin/' + this.id).then(function (response) { $.notifyClose(); if (vm.util.showResult(response, 'success')) vm.refreshAdmin(); })["catch"](function (error) { $.notifyClose(); vm.util.showResult(error, 'error'); }); }, refreshAdmin: function refreshAdmin() { this.util.notify('Refreshing admin', 'loading'); var vm = this; axios.get(config.API + 'admin').then(function (response) { $.notifyClose(); if (response.data.status == 'failed') vm.util.showResult(response, 'success');else vm.data.admins = response.data; })["catch"](function (error) { $.notifyClose(); vm.util.showResult(error, 'error'); }); } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/admin/password.vue?vue&type=script&lang=js&": /*!***************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/admin/password.vue?vue&type=script&lang=js& ***! \***************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return { loading: false }; }, methods: { edit: function edit() { if (this.loading || !this.checkPassword()) return; var vm = this; vm.loading = true; vm.util.notify('Updating Password', 'loading'); axios.put(config.API + 'admin/password/' + this.data.user.id, $('#edit_form').serialize()).then(function (response) { $.notifyClose(); vm.loading = false; vm.util.showResult(response, 'success'); vm.$router.push({ name: 'Admin Home' }); })["catch"](function (error) { $.notifyClose(); vm.loading = false; vm.util.showResult(error, 'error'); }); }, checkPassword: function checkPassword() { var isMatch = $("[name=password]").val() == $("[name=confirm_password]").val(); if (!isMatch) { this.util.notify('Password not match', 'error'); } return isMatch; } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/home/final.vue?vue&type=script&lang=js&": /*!***********************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/home/final.vue?vue&type=script&lang=js& ***! \***********************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return { nominees: [], results: [], partylists: [], positions: [] }; }, methods: { getNominee: function getNominee(id) { var nominees = this.nominees; for (var i in nominees) { if (id == nominees[i]['id']) return nominees[i]; } return {}; }, getPartylist: function getPartylist(id) { var partylists = this.partylists; for (var i in partylists) { if (id == partylists[i]['id']) return partylists[i]['name']; } return 'No Partylist'; } }, created: function created() { this.util.notify('Loading please wait...', 'loading'); var vm = this; axios.get(config.API + 'election/result/' + this.election_id).then(function (response) { $.notifyClose(); vm.nominees = response.data.nominee; vm.results = response.data.result; vm.partylists = response.data.partylist; vm.positions = response.data.position; })["catch"](function (error) { $.notifyClose(); vm.util.showResult(error, 'error'); }); }, computed: { election_id: function election_id() { return this.$route.params.election_id; }, no_votes: function no_votes() { var nominees = this.nominees; var results = this.results; var no_votes = []; for (var i in nominees) { var hasvote = false; for (var y in results) { if (results[y]['nominee_id'] == nominees[i]['id']) hasvote = true; } if (!hasvote) no_votes.push(nominees[i]); } return no_votes; } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/home/home.vue?vue&type=script&lang=js&": /*!**********************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/home/home.vue?vue&type=script&lang=js& ***! \**********************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ created: function created() { this.util.setTitle('Voting System - Manage Election'); } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/home/index.vue?vue&type=script&lang=js&": /*!***********************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/home/index.vue?vue&type=script&lang=js& ***! \***********************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return { start_date: null }; }, created: function created() { this.refreshElection(); var vm = this; setInterval(function () { vm.start_date = moment(vm.data.election.start).fromNow(); }, 1000); }, methods: { stop: function stop() { var vm = this; this.util.hideModal('#stop-election-modal'); this.util.notify('Stopping Election', 'loading'); axios.post(config.API + 'election/stop', $('#stop_form').serialize()).then(function (response) { $.notifyClose(); if (vm.util.showResult(response, 'success')) { vm.refreshElection(); vm.data.election = response.data.election; vm.data.positions = []; vm.data.partylists = []; vm.data.voters = []; vm.data.nominees = []; vm.data.results = []; } })["catch"](function (error) { $.notifyClose(); vm.util.showResult(error, 'error'); }); }, start: function start() { var vm = this; this.util.hideModal('#start-election-modal'); this.util.notify('Loading please wait', 'loading'); axios.post(config.API + 'election/start', $('#start_form').serialize()).then(function (response) { $.notifyClose(); if (vm.util.showResult(response, 'success')) { vm.refreshElection(); vm.data.election = response.data.election; } })["catch"](function (error) { $.notifyClose(); vm.util.showResult(error, 'error'); }); }, refreshElection: function refreshElection() { this.util.notify('Refreshing Election', 'loading'); var vm = this; axios.get(config.API + 'election').then(function (response) { $.notifyClose(); vm.data.elections = response.data; })["catch"](function (error) { $.notifyClose(); vm.util.showResult(error, 'error'); }); } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/home/result.vue?vue&type=script&lang=js&": /*!************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/home/result.vue?vue&type=script&lang=js& ***! \************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ created: function created() { console.log(this); this.refreshNominees(); this.$nextTick(function () { this.initChart(); }); }, watch: { position_id: function position_id() { this.initChart(); } }, methods: { refreshNominees: function refreshNominees() { var vm = this; this.util.notify('Refreshing results', 'loading'); axios.get(config.API + 'nominee').then(function (response) { $.notifyClose(); vm.data.nominees = response.data; vm.refreshResults(); })["catch"](function (error) { $.notifyClose(); vm.util.showResult(error); }); }, refreshResults: function refreshResults() { var vm = this; this.util.notify('Refreshing results', 'loading'); axios.get(config.API + 'election/results').then(function (response) { $.notifyClose(); vm.data.results = response.data; vm.data.last_update = new Date(); vm.initChart(); })["catch"](function (error) { $.notifyClose(); vm.util.showResult(error); }); }, initChart: function initChart() { $.plot($('#chart'), this.datas, { series: { pie: { show: true, innerRadius: 0.5 } } }); }, getPosition: function getPosition(id) { var positions = this.data.positions; for (var i in positions) { if (id == positions[i]['id']) return positions[i]['name']; } return ''; }, getNominee: function getNominee(id) { var nominees = this.data.nominees; for (var i in nominees) { if (id == nominees[i]['id']) return nominees[i]['name']; } return ''; }, getVotes: function getVotes(id) { var results = this.data.results; for (var i in results) { if (results[i]['nominee_id'] == id) return results[i]['votes']; } return 0; } }, computed: { last_update: function last_update() { var x = this.data.last_update; return x.toDateString() + ' ' + x.toLocaleTimeString(); }, position_id: function position_id() { return this.$route.query.position_id ? this.$route.query.position_id : this.data.positions[0]['id']; }, datas: function datas() { //var results = var data = []; var nominees = this.data.nominees; for (var i in nominees) { if (nominees[i]['position_id'] == this.position_id) { var row = []; row['label'] = nominees[i]['name']; row['data'] = [[1, this.getVotes(nominees[i]['id'])]]; data.push(row); } } return data; } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/index.vue?vue&type=script&lang=js&": /*!******************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/index.vue?vue&type=script&lang=js& ***! \******************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return { loading: true }; }, created: function created() { var _this = this; this.util.setTitle('Voting System - Administrator'); var vm = this; if (this.util.isLogin()) { this.util.setAuthorization(); axios.get(config.API + 'admin/information').then(function (response) { console.log(response); vm.data.user = response.data.user; vm.data.election = response.data.election; vm.data.partylists = response.data.partylist; vm.data.positions = response.data.position; vm.loading = false; })["catch"](function (error) { $.notifyClose(); if (_this.util.showResult(error) == 401) { vm.logout(); } }); } else { this.$router.push({ name: 'Admin Login' }); } }, methods: { logout: function logout() { localStorage.clear(); this.$router.push({ name: 'Admin Login' }); } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/login.vue?vue&type=script&lang=js&": /*!******************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/login.vue?vue&type=script&lang=js& ***! \******************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return { loading: { value: 'Login', isLoading: false } }; }, created: function created() { if (this.util.isLogin()) return this.$router.push({ name: 'Admin Home' }); this.util.setTitle('Admin Login'); }, methods: { login: function login() { var _this = this; if (this.loading.isLoading) return; var vm = this; this.startLoading(); axios.post(config.API + 'admin/login', $('#login_form').serialize()).then(function (response) { vm.stopLoading(); if (_this.util.showResult(response, 'success')) { localStorage['Access Token'] = "Bearer ".concat(response.data.token); _this.util.setAuthorization(); vm.$router.push({ name: 'Admin Home' }); } })["catch"](function (error) { vm.stopLoading(); _this.util.showResult(error, 'error'); }); }, startLoading: function startLoading() { this.util.notify('Logging in', 'loading'); this.loading = { value: 'Loading...', isLoading: true }; }, stopLoading: function stopLoading() { $.notifyClose(); this.loading = { value: 'Login', isLoading: false }; } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/nominee/add.vue?vue&type=script&lang=js&": /*!************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/nominee/add.vue?vue&type=script&lang=js& ***! \************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return { loading: false }; }, methods: { add: function add() { if (this.loading) return; var vm = this; this.loading = true; this.util.notify('Adding Nominee', 'progress', 0); $('#add_form').ajaxSubmit({ success: function success(response) { $.notifyClose(); vm.loading = false; if (vm.util.showResult(response, 'success', 'ajax')) vm.$router.push({ name: 'Manage Nominee' }); }, error: function error(_error) { $.notifyClose(); vm.loading = false; vm.util.showResult(_error, 'error', 'ajax'); }, uploadProgress: function uploadProgress(a, b, c, progress) { vm.util.notify('Adding Nominee', 'progress', progress); } }); } }, computed: { position_id: { get: function get() { return this.$route.query.position_id; }, set: function set(id) { this.$router.replace({ query: { position_id: id } }); } } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/nominee/edit.vue?vue&type=script&lang=js&": /*!*************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/nominee/edit.vue?vue&type=script&lang=js& ***! \*************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return { loading: false }; }, created: function created() { if (!this.nominee.id) this.$router.push({ name: 'Manage Nominee' }); }, methods: { edit: function edit() { if (this.loading) return; var vm = this; this.loading = true; this.util.notify('Updating nominee', 'progress', 0); $('#edit_form').ajaxSubmit({ success: function success(response) { $.notifyClose(); vm.loading = false; if (vm.util.showResult(response, 'success', 'ajax')) vm.$router.push({ name: 'Manage Nominee' }); }, error: function error(_error) { $.notifyClose(); vm.loading = false; vm.util.showResult(_error, 'error', 'ajax'); }, uploadProgress: function uploadProgress(a, b, c, progress) { vm.util.notify('Updating Nominee', 'progress', progress); } }); } }, computed: { id: function id() { return this.$route.params.id; }, nominee: function nominee() { for (var i in this.data.nominees) { if (this.data.nominees[i].id == this.id) return this.data.nominees[i]; } return {}; } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/nominee/index.vue?vue&type=script&lang=js&": /*!**************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/nominee/index.vue?vue&type=script&lang=js& ***! \**************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return { id: 0 }; }, created: function created() { this.refreshNominee(); }, methods: { deleteNominee: function deleteNominee() { this.util.hideModal('#delete-nominee-modal'); var vm = this; this.util.notify('Deleting nominee', 'loading'); axios["delete"](config.API + 'nominee/' + this.id).then(function (response) { $.notifyClose(); if (vm.util.showResult(response, 'success')) vm.refreshNominee(); })["catch"](function (error) { $.notifyClose(); vm.util.showResult(error, 'error'); }); }, refreshNominee: function refreshNominee() { var vm = this; this.util.notify('Refreshing Nominees', 'loading'); axios.get(config.API + 'nominee').then(function (response) { $.notifyClose(); console.log(response); vm.data.nominees = response.data; })["catch"](function (error) { $.notifyClose(); vm.showResult(error); }); }, getPosition: function getPosition(id) { var positions = this.data.positions; for (var i in positions) { if (positions[i].id == id) return positions[i]['name']; } }, getPartylist: function getPartylist(id) { var partylists = this.data.partylists; for (var i in partylists) { if (partylists[i].id == id) return partylists[i]['name']; } return 'No partylists'; } }, computed: { nominees: function nominees() { var nominees = []; var y = this.data.nominees; for (var nominee in this.data.nominees) { if (y[nominee].position_id == this.position_id || this.position_id == 0) { var x = y[nominee]; x.position = this.getPosition(y[nominee].position_id); x.partylist = this.getPartylist(y[nominee].partylist_id); nominees.push(x); } } return nominees; }, position_id: function position_id() { return this.$route.query.position_id ? this.$route.query.position_id : 0; } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/nominee/nominee.vue?vue&type=script&lang=js&": /*!****************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/nominee/nominee.vue?vue&type=script&lang=js& ***! \****************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ created: function created() { this.util.setTitle('Voting System - Manage Nominee'); } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/partylist/add.vue?vue&type=script&lang=js&": /*!**************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/partylist/add.vue?vue&type=script&lang=js& ***! \**************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return { loading: false }; }, methods: { add: function add() { if (this.loading) return; this.loading = true; var vm = this; this.util.notify('Adding Partylist', 'loading'); axios.post(config.API + 'partylist', $('#add-form').serialize()).then(function (response) { $.notifyClose(); vm.loading = false; if (vm.util.showResult(response, 'success')) { vm.$router.push({ name: 'Manage Partylist', query: { refresh: true } }); } })["catch"](function (error) { $.notifyClose(); vm.loading = false; vm.util.showResult(error); }); } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/partylist/edit.vue?vue&type=script&lang=js&": /*!***************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/partylist/edit.vue?vue&type=script&lang=js& ***! \***************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return { loading: false }; }, created: function created() { if (!this.data.partylist.id) { this.$router.push({ name: 'Manage Partylist' }); } }, methods: { edit: function edit() { if (this.loading) return; this.loading = true; var vm = this; this.util.notify('Updating partylist', 'loading'); axios.put(config.API + 'partylist/' + this.data.partylist.id, $('#edit-form').serialize()).then(function (response) { vm.loading = false; $.notifyClose(); if (vm.util.showResult(response, 'success')) { vm.$router.push({ name: 'Manage Partylist', query: { refresh: true } }); } })["catch"](function (error) { $.notifyClose(); vm.loading = false; vm.util.showResult(error); }); } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/partylist/index.vue?vue&type=script&lang=js&": /*!****************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/partylist/index.vue?vue&type=script&lang=js& ***! \****************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return { id: 0 }; }, created: function created() { if (this.$route.query.refresh) { this.refreshPartylist(); this.$router.replace({ name: 'Manage Partylist' }); } }, methods: { refreshPartylist: function refreshPartylist() { var vm = this; this.util.notify('Refreshing Partylist', 'loading'); axios.get(config.API + 'partylist').then(function (response) { console.log(response); $.notifyClose(); vm.data.partylists = response.data; })["catch"](function (error) { $.notifyClose(); vm.util.showResult(error); }); }, edit: function edit(i) { var vm = this; this.data.partylist = this.data.partylists[i]; this.$router.push({ name: 'Edit Partylist', params: { id: vm.data.partylist.id } }); }, deletePartylist: function deletePartylist() { var vm = this; this.util.notify('Deleting partylist', 'loading'); this.util.hideModal('#delete-partylist-modal'); axios["delete"](config.API + 'partylist/' + this.id).then(function (response) { $.notifyClose(); if (vm.util.showResult(response, 'success')) vm.refreshPartylist(); })["catch"](function (error) { $.notifyClose(); vm.util.showResult(error); }); } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/partylist/partylist.vue?vue&type=script&lang=js&": /*!********************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/partylist/partylist.vue?vue&type=script&lang=js& ***! \********************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ created: function created() { this.util.setTitle('Voting System - Manage Partylist'); } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/position/add.vue?vue&type=script&lang=js&": /*!*************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/position/add.vue?vue&type=script&lang=js& ***! \*************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return { loading: false }; }, methods: { add: function add() { if (this.loading) return; this.loading = true; var vm = this; this.util.notify('Adding Position', 'loading'); axios.post(config.API + 'position', $('#add-form').serialize()).then(function (response) { $.notifyClose(); vm.loading = false; if (vm.util.showResult(response, 'success')) { vm.$router.push({ name: 'Manage Position', query: { refresh: true } }); } })["catch"](function (error) { $.notifyClose(); vm.loading = false; vm.util.showResult(error); }); } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/position/edit.vue?vue&type=script&lang=js&": /*!**************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/position/edit.vue?vue&type=script&lang=js& ***! \**************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return { loading: false }; }, created: function created() { if (!this.data.position.id) { this.$router.push({ name: 'Manage Position' }); } }, methods: { edit: function edit() { if (this.loading) return; this.loading = true; var vm = this; this.util.notify('Updating position', 'loading'); axios.put(config.API + 'position/' + this.data.position.id, $('#edit-form').serialize()).then(function (response) { vm.loading = false; $.notifyClose(); if (vm.util.showResult(response, 'success')) { vm.$router.push({ name: 'Manage Position', query: { refresh: true } }); } })["catch"](function (error) { $.notifyClose(); vm.loading = false; vm.util.showResult(error); }); } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/position/index.vue?vue&type=script&lang=js&": /*!***************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/position/index.vue?vue&type=script&lang=js& ***! \***************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return { id: 0 }; }, created: function created() { if (this.$route.query.refresh) { this.refreshPosition(); this.$router.replace({ name: 'Manage Position' }); } }, methods: { refreshPosition: function refreshPosition() { var vm = this; this.util.notify('Refreshing Position', 'loading'); axios.get(config.API + 'position').then(function (response) { console.log(response); $.notifyClose(); vm.data.positions = response.data; })["catch"](function (error) { $.notifyClose(); vm.util.showResult(error); }); }, initDatatable: function initDatatable() { var vm = this; $('#position_table').DataTable({ destroy: true, searching: false, info: false, autoWidth: false, dom: 'Bfrtip' }); }, edit: function edit(i) { var vm = this; this.data.position = this.data.positions[i]; this.$router.push({ name: 'Edit Position', params: { id: vm.data.position.id } }); }, deletePosition: function deletePosition() { var vm = this; this.util.notify('Deleting position', 'loading'); this.util.hideModal('#delete-position-modal'); axios["delete"](config.API + 'position/' + this.id).then(function (response) { $.notifyClose(); if (vm.util.showResult(response, 'success')) vm.refreshPosition(); })["catch"](function (error) { $.notifyClose(); vm.util.showResult(error); }); } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/position/position.vue?vue&type=script&lang=js&": /*!******************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/position/position.vue?vue&type=script&lang=js& ***! \******************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ created: function created() { this.util.setTitle('Voting System - Manage Position'); } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/voter/add.vue?vue&type=script&lang=js&": /*!**********************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/voter/add.vue?vue&type=script&lang=js& ***! \**********************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return { loading: false }; }, methods: { add: function add() { if (this.loading) return; this.loading = true; var vm = this; this.util.notify('Adding Voter', 'loading'); axios.post(config.API + 'voter', $('#add-form').serialize()).then(function (response) { $.notifyClose(); vm.loading = false; if (vm.util.showResult(response, 'success')) { vm.$router.push({ name: 'Manage Voter' }); } })["catch"](function (error) { $.notifyClose(); vm.loading = false; vm.util.showResult(error); }); } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/voter/edit.vue?vue&type=script&lang=js&": /*!***********************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/voter/edit.vue?vue&type=script&lang=js& ***! \***********************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return { loading: false }; }, created: function created() { if (!this.data.voter.id) { this.$router.push({ name: 'Manage Voter' }); } }, methods: { edit: function edit() { if (this.loading) return; this.loading = true; var vm = this; this.util.notify('Updating voter', 'loading'); axios.put(config.API + 'voter/' + this.data.voter.id, $('#edit-form').serialize()).then(function (response) { vm.loading = false; $.notifyClose(); if (vm.util.showResult(response, 'success')) { vm.$router.push({ name: 'Manage Voter' }); } })["catch"](function (error) { $.notifyClose(); vm.loading = false; vm.util.showResult(error); }); } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/voter/index.vue?vue&type=script&lang=js&": /*!************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/voter/index.vue?vue&type=script&lang=js& ***! \************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return { id: 0 }; }, created: function created() { this.refreshVoter(); }, methods: { search: function search() {}, refreshVoter: function refreshVoter() { var vm = this; this.util.notify('Refreshing Voter', 'loading'); axios.get(config.API + 'voter?page=' + this.current_page).then(function (response) { console.log(response); $.notifyClose(); vm.data.voters = response.data; })["catch"](function (error) { $.notifyClose(); vm.util.showResult(error); }); }, edit: function edit(i) { var vm = this; this.data.voter = this.data.voters.data[i]; this.$router.push({ name: 'Edit Voter', params: { id: vm.data.voter.id } }); }, deleteVoter: function deleteVoter() { var vm = this; this.util.notify('Deleting voter', 'loading'); this.util.hideModal('#delete-voter-modal'); axios["delete"](config.API + 'voter/' + this.id).then(function (response) { $.notifyClose(); if (vm.util.showResult(response, 'success')) vm.refreshVoter(); })["catch"](function (error) { $.notifyClose(); vm.util.showResult(error); }); } }, watch: { '$route.query.page': function $routeQueryPage() { $.notifyClose(); this.refreshVoter(); } }, computed: { pages: function pages() { var pages = []; if (this.data.voters.last_page) for (var i = 1; i <= this.data.voters.last_page; i++) { var x = {}; x['page'] = i; pages.push(x); } return pages; }, current_page: function current_page() { return this.$route.query.page ? this.$route.query.page : 1; } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/voter/voter.vue?vue&type=script&lang=js&": /*!************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/voter/voter.vue?vue&type=script&lang=js& ***! \************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ created: function created() { this.util.setTitle('Voting System - Manage Voters'); } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/index.vue?vue&type=script&lang=js&": /*!***********************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/index.vue?vue&type=script&lang=js& ***! \***********************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ created: function created() {//console.log(this) }, data: function data() { return { x: {} }; }, methods: { hasVoted: function hasVoted() { return this.data.result.length > 0; }, getPartylist: function getPartylist(id) { var partylists = this.data.partylists; for (var i in partylists) { if (partylists[i]['id'] == id) return partylists[i]['name']; } return 'No Partylist'; }, getPosition: function getPosition(id) { var positions = this.data.positions; for (var i in positions) { if (positions[i].id == id) return positions[i].name; } return ''; }, getNominee: function getNominee(id) { var nominees = this.data.nominees; for (var i in nominees) { if (nominees[i]['id'] == id) return nominees[i].name; } return ''; }, view: function view(index) { this.x = this.data.nominees[index]; this.util.showModal('#nominee-information-modal'); } }, computed: { header: function header() { return this.x.name + ' for ' + this.getPosition(this.x.position_id); } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/result.vue?vue&type=script&lang=js&": /*!************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/result.vue?vue&type=script&lang=js& ***! \************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return { results: [{ "position_id": 6, "nominee_id": 1, "votes": 2 }, { "position_id": 8, "nominee_id": 6, "votes": 2 }, { "position_id": 7, "nominee_id": 5, "votes": 2 }, { "position_id": 7, "nominee_id": 4, "votes": 1 }, { "position_id": 6, "nominee_id": 2, "votes": 1 }, { "position_id": 8, "nominee_id": 7, "votes": 1 }] }; }, created: function created() { this.refreshResults(); this.$nextTick(function () { this.initChart(); }); }, watch: { position_id: function position_id() { this.initChart(); } }, methods: { refreshResults: function refreshResults() { var vm = this; this.util.notify('Refreshing results', 'loading'); axios.get(config.API + 'election/result').then(function (response) { $.notifyClose(); console.log(response); vm.data.results = response.data; vm.data.last_update = new Date(); vm.initChart(); })["catch"](function (error) { $.notifyClose(); vm.util.showResult(error); }); }, initChart: function initChart() { $.plot($('#chart'), this.datas, { series: { pie: { show: true, innerRadius: 0.5 } } }); }, getPosition: function getPosition(id) { var positions = this.data.positions; for (var i in positions) { if (id == positions[i]['id']) return positions[i]['name']; } return ''; }, getNominee: function getNominee(id) { var nominees = this.data.nominees; for (var i in nominees) { if (id == nominees[i]['id']) return nominees[i]['name']; } return ''; }, getVotes: function getVotes(id) { var results = this.data.results; for (var i in results) { if (results[i]['nominee_id'] == id) return results[i]['votes']; } return 0; } }, computed: { last_update: function last_update() { var x = this.data.last_update; return x.toDateString() + ' ' + x.toLocaleTimeString(); }, position_id: function position_id() { return this.$route.query.position_id ? this.$route.query.position_id : this.data.positions[0]['id']; }, datas: function datas() { //var results = var data = []; var nominees = this.data.nominees; for (var i in nominees) { if (nominees[i]['position_id'] == this.position_id) { var row = []; row['label'] = nominees[i]['name']; row['data'] = [[1, this.getVotes(nominees[i]['id'])]]; data.push(row); } } /*let positions = this.data.positions; for (var i in positions) { if (positions[i]['id'] == this.position_id) { var row = []; row['label'] = this.getNominee() } } for (var i in results) { if (results[i]['position_id'] != this.position_id) continue; var row = []; row['label'] = this.getNominee(results[i]['nominee_id']); row['data'] = [[1, results[i]['votes']]]; data.push(row); }*/ return data; } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/vote.vue?vue&type=script&lang=js&": /*!**********************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/vote.vue?vue&type=script&lang=js& ***! \**********************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ created: function created() { if (this.data.result.length > 0 || this.data.election.status != 2) this.$router.push({ name: 'Voter Home' }); for (var i in this.data.positions) { this.selected.push({ position_id: this.data.positions[i]['id'], nominee_id: null }); } }, data: function data() { return { selected: [], name: {} }; }, methods: { submit: function submit() { this.util.hideModal('#vote-modal'); if (this.hasNullVote()) return; var vm = this; this.util.notify('Submitting your vote, please wait...', 'loading'); var data = {}; data['vote'] = this.selected; axios.post(config.API + 'election/vote', data).then(function (response) { $.notifyClose(); if (vm.util.showResult(response, 'success')) { vm.data.result = response.data.result; vm.$router.push({ name: 'Voter Home' }); } })["catch"](function (error) { $.notifyClose(); vm.util.showResult(error, 'error'); }); }, hasNullVote: function hasNullVote() { var selected = this.selected; for (var i in selected) { if (selected[i]['nominee_id'] == null) { this.util.notify('You must vote on all position', 'error'); return true; } } return false; }, reset: function reset() { var selected = this.selected; for (var i in selected) { $('#' + selected[i]['nominee_id']).selected(false); selected[i]['nominee_id'] = null; } }, vote: function vote(position_id, nominee_id) { $('#' + nominee_id).selected(); for (var i in this.selected) { if (this.selected[i]['position_id'] == position_id) { this.selected[i]['nominee_id'] = nominee_id; } } }, getName: function getName(id) { var positions = this.data.positions; var selected = this.selected; for (var i in selected) { if (selected[i]['position_id'] == id) return this.getNominee(selected[i]['nominee_id']); } return ''; }, getNominee: function getNominee(id) { var nominees = this.data.nominees; for (var i in nominees) { if (nominees[i]['id'] == id) return nominees[i]['name']; } }, getPartylist: function getPartylist(id) { var partylists = this.data.partylists; for (var i in partylists) { if (partylists[i]['id'] == id) return partylists[i]['name']; } return 'No Partylist'; } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/index.vue?vue&type=script&lang=js&": /*!******************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/index.vue?vue&type=script&lang=js& ***! \******************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return { loading: true }; }, created: function created() { this.refreshInfo(); }, methods: { logout: function logout() { localStorage.clear(); this.$router.push({ name: 'Voter Login' }); }, hasVoted: function hasVoted() { return this.data.result.length > 0; }, refreshInfo: function refreshInfo() { var vm = this; this.util.setAuthorization(); axios.get(config.API + 'election/information').then(function (response) { console.log(response); vm.loading = false; vm.data.election = response.data.election; vm.data.nominees = response.data.nominee; vm.data.partylists = response.data.partylist; vm.data.positions = response.data.position; vm.data.user = response.data.voter; vm.data.result = response.data.result; })["catch"](function (error) { vm.loading = false; if (vm.util.showResult(error, 'error') == 401) { vm.$router.push({ name: 'Voter Login' }); } }); } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/login.vue?vue&type=script&lang=js&": /*!******************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/login.vue?vue&type=script&lang=js& ***! \******************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ data: function data() { return { loading: false }; }, created: function created() { if (this.util.isLogin()) //return this.$router.push({name:'Admin Home'}) this.util.setTitle('Voter Login'); }, methods: { login: function login() { var _this = this; if (this.loading) return; var vm = this; this.startLoading(); axios.post(config.API + 'voter/login', $('#login_form').serialize()).then(function (response) { vm.stopLoading(); if (_this.util.showResult(response, 'success')) { localStorage['Access Token'] = "Bearer ".concat(response.data.token); _this.util.setAuthorization(); vm.$router.push({ name: 'Voter Home' }); } })["catch"](function (error) { vm.stopLoading(); _this.util.showResult(error, 'error'); }); }, startLoading: function startLoading() { this.util.notify('Logging in', 'loading'); this.loading = true; }, stopLoading: function stopLoading() { $.notifyClose(); this.loading = false; } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/mycomponents/modal/modal.vue?vue&type=script&lang=js&": /*!**************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/mycomponents/modal/modal.vue?vue&type=script&lang=js& ***! \**************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ props: ['id', 'aClass'] }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/mycomponents/uploader.vue?vue&type=script&lang=js&": /*!***********************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/mycomponents/uploader.vue?vue&type=script&lang=js& ***! \***********************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); // // // // // // // // // // // // // // // // // // // // /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ props: { fileId: { "default": 'fileId' }, fileName: { "default": 'file_name' }, imageId: { "default": 'imageId' }, imageSrc: { "default": '#' } }, methods: { /** * Print the selected file into image * @param String fileID, String imageId * */ readFile: function readFile(fileId, imageId) { var inputFile = $('#' + fileId)[0]; var inputImage = $('#' + imageId); if (inputFile.files && inputFile.files[0]) { var reader = new FileReader(); reader.onload = function (e) { inputImage.attr('src', e.target.result); }; reader.readAsDataURL(inputFile.files[0]); } } } }); /***/ }), /***/ "./resources/assets/js/app.js": /*!************************************!*\ !*** ./resources/assets/js/app.js ***! \************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./util.js */ "./resources/assets/js/util.js"); /* harmony import */ var _routesIndex_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./routesIndex.js */ "./resources/assets/js/routesIndex.js"); __webpack_require__(/*! ./bootstrap.js */ "./resources/assets/js/bootstrap.js"); //window.VueRouter = require('vue-router').default; //import VueRouter from 'vue-router'; Vue.use(VueRouter); Vue.mixin(_util_js__WEBPACK_IMPORTED_MODULE_0__["default"]); var router = new VueRouter({ mode: 'history', linkActiveClass: 'active', routes: _routesIndex_js__WEBPACK_IMPORTED_MODULE_1__["default"] }); var app = new Vue({ router: router }).$mount('#app'); /***/ }), /***/ "./resources/assets/js/bootstrap.js": /*!******************************************!*\ !*** ./resources/assets/js/bootstrap.js ***! \******************************************/ /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { // window.$ = window.jQuery = require('jquery'); //Library for dom Manipulation //require('bootstrap-sass'); //Bootstrap for design // Axios - Ajax Library //window.axios = require('axios'); window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; // window.Vue = require('vue'); // JS Framework // require('bootstrap-notify'); //Notify // require('jquery-form'); //Alternative to Axios __webpack_require__(/*! ./customComponents.js */ "./resources/assets/js/customComponents.js"); // My components //Pie Chart for Vote Result // require('jquery-flot'); // require('../../../node_modules/jquery-flot/jquery.flot.pie.js'); //Date and Time Management // window.moment = require('moment'); /***/ }), /***/ "./resources/assets/js/customComponents.js": /*!*************************************************!*\ !*** ./resources/assets/js/customComponents.js ***! \*************************************************/ /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { //Global Components Vue.component('modal', __webpack_require__(/*! ./components/mycomponents/modal/modal.vue */ "./resources/assets/js/components/mycomponents/modal/modal.vue")); Vue.component('modal-header', __webpack_require__(/*! ./components/mycomponents/modal/header.vue */ "./resources/assets/js/components/mycomponents/modal/header.vue")); Vue.component('modal-body', __webpack_require__(/*! ./components/mycomponents/modal/body.vue */ "./resources/assets/js/components/mycomponents/modal/body.vue")); Vue.component('modal-footer', __webpack_require__(/*! ./components/mycomponents/modal/footer.vue */ "./resources/assets/js/components/mycomponents/modal/footer.vue")); Vue.component('uploader', __webpack_require__(/*! ./components/mycomponents/uploader.vue */ "./resources/assets/js/components/mycomponents/uploader.vue")); /***/ }), /***/ "./resources/assets/js/routesIndex.js": /*!********************************************!*\ !*** ./resources/assets/js/routesIndex.js ***! \********************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _components_demo_voter_login_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/demo/voter/login.vue */ "./resources/assets/js/components/demo/voter/login.vue"); /* harmony import */ var _components_demo_voter_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/demo/voter/index.vue */ "./resources/assets/js/components/demo/voter/index.vue"); /* harmony import */ var _components_demo_voter_home_index_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/demo/voter/home/index.vue */ "./resources/assets/js/components/demo/voter/home/index.vue"); /* harmony import */ var _components_demo_voter_home_vote_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/demo/voter/home/vote.vue */ "./resources/assets/js/components/demo/voter/home/vote.vue"); /* harmony import */ var _components_demo_voter_home_result_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/demo/voter/home/result.vue */ "./resources/assets/js/components/demo/voter/home/result.vue"); /* harmony import */ var _components_demo_admin_login_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/demo/admin/login.vue */ "./resources/assets/js/components/demo/admin/login.vue"); /* harmony import */ var _components_demo_admin_index_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/demo/admin/index.vue */ "./resources/assets/js/components/demo/admin/index.vue"); /* harmony import */ var _components_demo_admin_home_final_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/demo/admin/home/final.vue */ "./resources/assets/js/components/demo/admin/home/final.vue"); /* harmony import */ var _components_demo_admin_home_home_vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/demo/admin/home/home.vue */ "./resources/assets/js/components/demo/admin/home/home.vue"); /* harmony import */ var _components_demo_admin_home_index_vue__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/demo/admin/home/index.vue */ "./resources/assets/js/components/demo/admin/home/index.vue"); /* harmony import */ var _components_demo_admin_home_result_vue__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/demo/admin/home/result.vue */ "./resources/assets/js/components/demo/admin/home/result.vue"); /* harmony import */ var _components_demo_admin_position_position_vue__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/demo/admin/position/position.vue */ "./resources/assets/js/components/demo/admin/position/position.vue"); /* harmony import */ var _components_demo_admin_position_index_vue__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./components/demo/admin/position/index.vue */ "./resources/assets/js/components/demo/admin/position/index.vue"); /* harmony import */ var _components_demo_admin_position_add_vue__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./components/demo/admin/position/add.vue */ "./resources/assets/js/components/demo/admin/position/add.vue"); /* harmony import */ var _components_demo_admin_position_edit_vue__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/demo/admin/position/edit.vue */ "./resources/assets/js/components/demo/admin/position/edit.vue"); /* harmony import */ var _components_demo_admin_partylist_partylist_vue__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./components/demo/admin/partylist/partylist.vue */ "./resources/assets/js/components/demo/admin/partylist/partylist.vue"); /* harmony import */ var _components_demo_admin_partylist_index_vue__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./components/demo/admin/partylist/index.vue */ "./resources/assets/js/components/demo/admin/partylist/index.vue"); /* harmony import */ var _components_demo_admin_partylist_add_vue__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./components/demo/admin/partylist/add.vue */ "./resources/assets/js/components/demo/admin/partylist/add.vue"); /* harmony import */ var _components_demo_admin_partylist_edit_vue__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./components/demo/admin/partylist/edit.vue */ "./resources/assets/js/components/demo/admin/partylist/edit.vue"); /* harmony import */ var _components_demo_admin_voter_voter_vue__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./components/demo/admin/voter/voter.vue */ "./resources/assets/js/components/demo/admin/voter/voter.vue"); /* harmony import */ var _components_demo_admin_voter_index_vue__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./components/demo/admin/voter/index.vue */ "./resources/assets/js/components/demo/admin/voter/index.vue"); /* harmony import */ var _components_demo_admin_voter_add_vue__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./components/demo/admin/voter/add.vue */ "./resources/assets/js/components/demo/admin/voter/add.vue"); /* harmony import */ var _components_demo_admin_voter_edit_vue__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./components/demo/admin/voter/edit.vue */ "./resources/assets/js/components/demo/admin/voter/edit.vue"); /* harmony import */ var _components_demo_admin_nominee_nominee_vue__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./components/demo/admin/nominee/nominee.vue */ "./resources/assets/js/components/demo/admin/nominee/nominee.vue"); /* harmony import */ var _components_demo_admin_nominee_index_vue__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./components/demo/admin/nominee/index.vue */ "./resources/assets/js/components/demo/admin/nominee/index.vue"); /* harmony import */ var _components_demo_admin_nominee_add_vue__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./components/demo/admin/nominee/add.vue */ "./resources/assets/js/components/demo/admin/nominee/add.vue"); /* harmony import */ var _components_demo_admin_nominee_edit_vue__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./components/demo/admin/nominee/edit.vue */ "./resources/assets/js/components/demo/admin/nominee/edit.vue"); /* harmony import */ var _components_demo_admin_admin_admin_vue__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./components/demo/admin/admin/admin.vue */ "./resources/assets/js/components/demo/admin/admin/admin.vue"); /* harmony import */ var _components_demo_admin_admin_index_vue__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./components/demo/admin/admin/index.vue */ "./resources/assets/js/components/demo/admin/admin/index.vue"); /* harmony import */ var _components_demo_admin_admin_edit_vue__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./components/demo/admin/admin/edit.vue */ "./resources/assets/js/components/demo/admin/admin/edit.vue"); /* harmony import */ var _components_demo_admin_admin_password_vue__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./components/demo/admin/admin/password.vue */ "./resources/assets/js/components/demo/admin/admin/password.vue"); /* harmony import */ var _components_demo_admin_admin_add_vue__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./components/demo/admin/admin/add.vue */ "./resources/assets/js/components/demo/admin/admin/add.vue"); var default_component = { template: '