From ced04a4f681f010eb14a29f5093632316973858f Mon Sep 17 00:00:00 2001 From: fifi97 <46933637+fifi97@users.noreply.github.com> Date: Wed, 15 Dec 2021 10:12:52 +0800 Subject: [PATCH] fix skit2 --- package-lock.json | 17 +- package.json | 1 + public/js/app.js | 4872 +++++++++++++++-- resources/js/Online/SearchSAG.vue | 65 +- resources/js/app.js | 4 +- .../js/components/util/ModalTransaction.vue | 105 + resources/js/pages/Detailspelanggan.vue | 36 +- 7 files changed, 4666 insertions(+), 434 deletions(-) create mode 100644 resources/js/components/util/ModalTransaction.vue diff --git a/package-lock.json b/package-lock.json index 18186a8..a9ba55c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3040,6 +3040,11 @@ "type": "^1.0.1" } }, + "date-fns": { + "version": "1.30.1", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-1.30.1.tgz", + "integrity": "sha512-hBSVCvSmWC+QypYObzwGOd9wqdDpOt+0wl0KbU+R+uuZBS1jN8VsD1ss3irQDknRj5NvxiTF6oj/nDRnN/UQNw==" + }, "de-indent": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", @@ -7432,8 +7437,7 @@ "vue": { "version": "2.6.14", "resolved": "https://registry.npmjs.org/vue/-/vue-2.6.14.tgz", - "integrity": "sha512-x2284lgYvjOMj3Za7kqzRcUSxBboHqtgRE2zlos1qWaOye5yUmHn42LB1250NJBLRwEcdrB0JRwyPTEPhfQjiQ==", - "dev": true + "integrity": "sha512-x2284lgYvjOMj3Za7kqzRcUSxBboHqtgRE2zlos1qWaOye5yUmHn42LB1250NJBLRwEcdrB0JRwyPTEPhfQjiQ==" }, "vue-apexcharts": { "version": "1.6.2", @@ -7510,6 +7514,15 @@ "resolved": "https://registry.npmjs.org/vue-toastification/-/vue-toastification-1.7.14.tgz", "integrity": "sha512-khZR8t3NWZ/JJ2MZxXLbesHrRJ8AKa75PY5Zq8yMifF9x8lHq8ljYkC0d2PD9yahooygQB5tcFyRDkbbIPx8hw==" }, + "vuejs-datetimepicker": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/vuejs-datetimepicker/-/vuejs-datetimepicker-1.1.13.tgz", + "integrity": "sha512-R7UtjXqRpqLnUk9uSiAmWXk64hFFfpoGDRiFLVGORU/ptSQRPh0KhfBwoe1ED7EeCQBAP8dXRh14n8RmfC6m1g==", + "requires": { + "date-fns": "^1.29.0", + "vue": "^2.3.3" + } + }, "vuelidate": { "version": "0.7.7", "resolved": "https://registry.npmjs.org/vuelidate/-/vuelidate-0.7.7.tgz", diff --git a/package.json b/package.json index b24df52..28ae2f1 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "vue-property-decorator": "^9.1.2", "vue-router": "^3.5.3", "vue-toastification": "^1.7.14", + "vuejs-datetimepicker": "^1.1.13", "vuelidate": "^0.7.7" } } diff --git a/public/js/app.js b/public/js/app.js index f174b09..933da49 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -1,6 +1,17 @@ /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ +/***/ "./node_modules/@babel/runtime/regenerator/index.js": +/*!**********************************************************!*\ + !*** ./node_modules/@babel/runtime/regenerator/index.js ***! + \**********************************************************/ +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +module.exports = __webpack_require__(/*! regenerator-runtime */ "./node_modules/regenerator-runtime/runtime.js"); + + +/***/ }), + /***/ "./node_modules/@popperjs/core/lib/createPopper.js": /*!*********************************************************!*\ !*** ./node_modules/@popperjs/core/lib/createPopper.js ***! @@ -17157,6 +17168,31 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _components_util_ModalTransaction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/util/ModalTransaction */ "./resources/js/components/util/ModalTransaction.vue"); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// // // // @@ -17318,10 +17354,14 @@ __webpack_require__.r(__webpack_exports__); // // + var formatter = new Intl.NumberFormat('en-US', { minimumFractionDigits: 2 }); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ + components: { + modal: _components_util_ModalTransaction__WEBPACK_IMPORTED_MODULE_1__["default"] + }, props: { placement: { type: String, @@ -17337,35 +17377,58 @@ var formatter = new Intl.NumberFormat('en-US', { }, methods: { toggleTable: function toggleTable() { - var res = this.getData(); - var divtable = document.getElementById("divtable"); - console.log(res); + var _this = this; - if (res === 'ada') { - if (this.arrayCustomer.length > 0) { - divtable.classList.remove("hidden"); - } else { - divtable.classList.add("hidden"); - } - } else { - divtable.classList.add("hidden"); - } + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() { + var res, divtable; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return _this.getData(); + + case 2: + res = _context.sent; + divtable = document.getElementById("divtable"); + + if (res !== 'tiada') { + if (_this.arrayCustomer.length > 0) { + divtable.classList.remove("hidden"); + } else { + _this.$toast.warning("Tiada data dijumpai"); + + divtable.classList.add("hidden"); + } + } else { + _this.$toast.info("Sila masukkan value dalam box"); + + divtable.classList.add("hidden"); + } + + case 5: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); }, getData: function getData() { - var _this = this; + var _this2 = this; var inputvalue = document.getElementById("frminput").value; if (inputvalue) { - this.axios.get('http://localhost:8000/admin/searchSAGOnline', { + return this.axios.get('http://localhost:8000/admin/searchSAGOnline', { params: { norujukan: inputvalue } }).then(function (response) { - _this.arrayCustomer = response.data; - - if (response.data) { - return 'ada'; + if (response.data.length > 0) { + _this2.arrayCustomer = response.data; + } else { + _this2.arrayCustomer = []; } })["catch"](function (error) { console.log(error); @@ -17376,6 +17439,11 @@ var formatter = new Intl.NumberFormat('en-US', { }, hasNumber: function hasNumber(inputString) { return /\d/.test(inputString); + }, + tekanmodal: function tekanmodal(statusid) { + console.log('tekan'); + this.$refs.modal.showModal = true; + this.$refs.modal.statusid = statusid; } } }); @@ -19014,6 +19082,145 @@ __webpack_require__.r(__webpack_exports__); /***/ }), +/***/ "./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/js/components/util/ModalTransaction.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/js/components/util/ModalTransaction.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 import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var vuejs_datetimepicker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuejs-datetimepicker */ "./node_modules/vuejs-datetimepicker/src/datetime_picker.vue"); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ + name: "modal", + components: { + datetime: vuejs_datetimepicker__WEBPACK_IMPORTED_MODULE_1__["default"] + }, + data: function data() { + return { + showModal: false, + referencestatus: 'NOT PAID', + status: ['PAID', 'UNSUCCESSFUL', 'NOT PAID'], + statusid: 0, + datepaidat: '' + }; + }, + methods: { + toggleModal: function toggleModal() { + this.showModal = !this.showModal; + }, + simpan: function simpan() { + var _this = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() { + var response; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return _this.postData(); + + case 2: + response = _context.sent; + + if (response.data === 1) { + _this.showModal = !_this.showModal; + + _this.$toast.success('Berjaya menukar status!'); + + setTimeout(function () { + _this.$emit('togtable'); + }, 1000); + } + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); + }, + postData: function postData() { + return this.axios.post('http://localhost:8000/admin/simpanStatus', { + id: this.statusid, + status: this.referencestatus, + paidat: this.datepaidat + }); + } + } +}); + +/***/ }), + /***/ "./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/js/components/util/PetiBesiModal.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/js/components/util/PetiBesiModal.vue?vue&type=script&lang=js& ***! @@ -19340,7 +19547,8 @@ __webpack_require__.r(__webpack_exports__); nota: this.customer.nota, poskod: this.customer.poskod, koddaerah: '', - kodnegeri: '' + kodnegeri: '', + submitStatus: '' }; }, setup: function setup(props, context) {// console.log(props.customer) @@ -19362,6 +19570,32 @@ __webpack_require__.r(__webpack_exports__); this.axios.get('http://localhost:8000/api/daerah/' + daerah).then(function (response) { _this2.koddaerah = response.data.namadaerah; }); + }, + triggerPoskod: function triggerPoskod(value) { + var _this3 = this; + + this.axios.get('http://localhost:8000/api/poskod/' + value).then(function (response) { + _this3.koddaerahCall(response.data.kodnegeri, response.data.koddaerah); + }); + }, + submit: function submit() { + var _this4 = this; + + console.log('submit!'); + this.$v.$touch(); + + if (this.$v.$invalid) { + // this.submitStatus = 'ERROR' + this.$toast.error('Sila isi butiran yang disediakan dengan betul!'); + } else { + // do your submit logic here + this.submitStatus = 'PENDING'; + setTimeout(function () { + _this4.submitStatus = 'OK'; + + _this4.$toast.success('Berjaya dikemaskini!'); + }, 500); + } } }, validations: { @@ -19414,18 +19648,19 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var vue_apexcharts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-apexcharts */ "./node_modules/vue-apexcharts/dist/vue-apexcharts.js"); /* harmony import */ var vue_apexcharts__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue_apexcharts__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var alpinejs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! alpinejs */ "./node_modules/alpinejs/dist/module.esm.js"); -/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm.js"); -/* harmony import */ var _vue_composition_api__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @vue/composition-api */ "./node_modules/@vue/composition-api/dist/vue-composition-api.mjs"); +/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm.js"); +/* harmony import */ var _vue_composition_api__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @vue/composition-api */ "./node_modules/@vue/composition-api/dist/vue-composition-api.mjs"); /* harmony import */ var vue_axios__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-axios */ "./node_modules/vue-axios/dist/vue-axios.esm.min.js"); /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js"); /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var jw_vue_pagination__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! jw-vue-pagination */ "./node_modules/jw-vue-pagination/lib/JwPagination.js"); /* harmony import */ var jw_vue_pagination__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(jw_vue_pagination__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _popperjs_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @popperjs/core */ "./node_modules/@popperjs/core/lib/popper.js"); +/* harmony import */ var _popperjs_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @popperjs/core */ "./node_modules/@popperjs/core/lib/popper.js"); /* harmony import */ var vue_toastification__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue-toastification */ "./node_modules/vue-toastification/dist/esm/index.js"); /* harmony import */ var vue_toastification_dist_index_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vue-toastification/dist/index.css */ "./node_modules/vue-toastification/dist/index.css"); /* harmony import */ var _routes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./routes */ "./resources/js/routes.js"); -/* harmony import */ var vuelidate__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! vuelidate */ "./node_modules/vuelidate/lib/index.js"); +/* harmony import */ var vuelidate__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! vuelidate */ "./node_modules/vuelidate/lib/index.js"); +/* harmony import */ var vuejs_datetimepicker__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! vuejs-datetimepicker */ "./node_modules/vuejs-datetimepicker/src/datetime_picker.vue"); /** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when @@ -19444,13 +19679,14 @@ __webpack_require__.r(__webpack_exports__); + __webpack_require__(/*! ./bootstrap */ "./resources/js/bootstrap.js"); window.Vue = (__webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm.js")["default"]); window.Alpine = alpinejs__WEBPACK_IMPORTED_MODULE_1__["default"]; var options = { transition: "Vue-Toastification__fade", - position: "bottom-center", + position: "top-right", timeout: 2000, closeOnClick: true, maxToasts: 20, @@ -19462,34 +19698,32 @@ var options = { icon: true, newestOnTop: true }; -vue__WEBPACK_IMPORTED_MODULE_8__["default"].use(vuelidate__WEBPACK_IMPORTED_MODULE_9__["default"]); -vue__WEBPACK_IMPORTED_MODULE_8__["default"].use((vue_apexcharts__WEBPACK_IMPORTED_MODULE_0___default())); -vue__WEBPACK_IMPORTED_MODULE_8__["default"].use(alpinejs__WEBPACK_IMPORTED_MODULE_1__["default"]); -vue__WEBPACK_IMPORTED_MODULE_8__["default"].use(_vue_composition_api__WEBPACK_IMPORTED_MODULE_10__["default"]); -vue__WEBPACK_IMPORTED_MODULE_8__["default"].use(vue_axios__WEBPACK_IMPORTED_MODULE_2__["default"], (axios__WEBPACK_IMPORTED_MODULE_3___default())); -vue__WEBPACK_IMPORTED_MODULE_8__["default"].component('jw-pagination', (jw_vue_pagination__WEBPACK_IMPORTED_MODULE_4___default())); -vue__WEBPACK_IMPORTED_MODULE_8__["default"].use(_popperjs_core__WEBPACK_IMPORTED_MODULE_11__.createPopper); -vue__WEBPACK_IMPORTED_MODULE_8__["default"].use(vue_toastification__WEBPACK_IMPORTED_MODULE_5__["default"], options); +vue__WEBPACK_IMPORTED_MODULE_9__["default"].use(vuelidate__WEBPACK_IMPORTED_MODULE_10__["default"]); +vue__WEBPACK_IMPORTED_MODULE_9__["default"].use((vue_apexcharts__WEBPACK_IMPORTED_MODULE_0___default())); +vue__WEBPACK_IMPORTED_MODULE_9__["default"].use(alpinejs__WEBPACK_IMPORTED_MODULE_1__["default"]); +vue__WEBPACK_IMPORTED_MODULE_9__["default"].use(_vue_composition_api__WEBPACK_IMPORTED_MODULE_11__["default"]); +vue__WEBPACK_IMPORTED_MODULE_9__["default"].use(vue_axios__WEBPACK_IMPORTED_MODULE_2__["default"], (axios__WEBPACK_IMPORTED_MODULE_3___default())); +vue__WEBPACK_IMPORTED_MODULE_9__["default"].component('jw-pagination', (jw_vue_pagination__WEBPACK_IMPORTED_MODULE_4___default())); +vue__WEBPACK_IMPORTED_MODULE_9__["default"].use(_popperjs_core__WEBPACK_IMPORTED_MODULE_12__.createPopper); +vue__WEBPACK_IMPORTED_MODULE_9__["default"].use(vue_toastification__WEBPACK_IMPORTED_MODULE_5__["default"], options); +vue__WEBPACK_IMPORTED_MODULE_9__["default"].use(vuejs_datetimepicker__WEBPACK_IMPORTED_MODULE_8__["default"]); alpinejs__WEBPACK_IMPORTED_MODULE_1__["default"].start(); //Chart -vue__WEBPACK_IMPORTED_MODULE_8__["default"].component('pemb-chart', (__webpack_require__(/*! ./components/Chart/PembiayaanChart.vue */ "./resources/js/components/Chart/PembiayaanChart.vue")["default"])); -vue__WEBPACK_IMPORTED_MODULE_8__["default"].component('peny-chart', (__webpack_require__(/*! ./components/Chart/PenyelesaianChart.vue */ "./resources/js/components/Chart/PenyelesaianChart.vue")["default"])); -vue__WEBPACK_IMPORTED_MODULE_8__["default"].component('keun-chart', (__webpack_require__(/*! ./components/Chart/KeuntunganChart.vue */ "./resources/js/components/Chart/KeuntunganChart.vue")["default"])); -vue__WEBPACK_IMPORTED_MODULE_8__["default"].component('sidebar', (__webpack_require__(/*! ./components/Sidebar.vue */ "./resources/js/components/Sidebar.vue")["default"])); -vue__WEBPACK_IMPORTED_MODULE_8__["default"].component('breadcrumb', (__webpack_require__(/*! ./components/Breadcrumb.vue */ "./resources/js/components/Breadcrumb.vue")["default"])); -vue__WEBPACK_IMPORTED_MODULE_8__["default"].component('dashboard', (__webpack_require__(/*! ./pages/dashboard.vue */ "./resources/js/pages/dashboard.vue")["default"])); -vue__WEBPACK_IMPORTED_MODULE_8__["default"].component('tunai-component', (__webpack_require__(/*! ./components/Tunai.vue */ "./resources/js/components/Tunai.vue")["default"])); -vue__WEBPACK_IMPORTED_MODULE_8__["default"].component('petibesi-component', (__webpack_require__(/*! ./components/Petibesi.vue */ "./resources/js/components/Petibesi.vue")["default"])); -vue__WEBPACK_IMPORTED_MODULE_8__["default"].component('cawangan-component', (__webpack_require__(/*! ./components/cawangan.vue */ "./resources/js/components/cawangan.vue")["default"])); -vue__WEBPACK_IMPORTED_MODULE_8__["default"].component('modal-component', (__webpack_require__(/*! ./components/util/Modal.vue */ "./resources/js/components/util/Modal.vue")["default"])); -vue__WEBPACK_IMPORTED_MODULE_8__["default"].component('searchpelanggan-component', (__webpack_require__(/*! ./components/Searchpelanggan.vue */ "./resources/js/components/Searchpelanggan.vue")["default"])); -vue__WEBPACK_IMPORTED_MODULE_8__["default"].component('laporanakaun-component', (__webpack_require__(/*! ./Akaun/Laporan.vue */ "./resources/js/Akaun/Laporan.vue")["default"])); -<<<<<<< Updated upstream -vue__WEBPACK_IMPORTED_MODULE_8__["default"].component('details-pelanggan', (__webpack_require__(/*! ./pages/Detailspelanggan.vue */ "./resources/js/pages/Detailspelanggan.vue")["default"])); -======= -vue__WEBPACK_IMPORTED_MODULE_8__["default"].component('online-component', (__webpack_require__(/*! ./Online/Online.vue */ "./resources/js/Online/Online.vue")["default"])); ->>>>>>> Stashed changes -vue__WEBPACK_IMPORTED_MODULE_8__["default"].component('apexchart', (vue_apexcharts__WEBPACK_IMPORTED_MODULE_0___default())); // Vue.component('Navbar', require('./components/Navbar.vue').default); +vue__WEBPACK_IMPORTED_MODULE_9__["default"].component('pemb-chart', (__webpack_require__(/*! ./components/Chart/PembiayaanChart.vue */ "./resources/js/components/Chart/PembiayaanChart.vue")["default"])); +vue__WEBPACK_IMPORTED_MODULE_9__["default"].component('peny-chart', (__webpack_require__(/*! ./components/Chart/PenyelesaianChart.vue */ "./resources/js/components/Chart/PenyelesaianChart.vue")["default"])); +vue__WEBPACK_IMPORTED_MODULE_9__["default"].component('keun-chart', (__webpack_require__(/*! ./components/Chart/KeuntunganChart.vue */ "./resources/js/components/Chart/KeuntunganChart.vue")["default"])); +vue__WEBPACK_IMPORTED_MODULE_9__["default"].component('sidebar', (__webpack_require__(/*! ./components/Sidebar.vue */ "./resources/js/components/Sidebar.vue")["default"])); +vue__WEBPACK_IMPORTED_MODULE_9__["default"].component('breadcrumb', (__webpack_require__(/*! ./components/Breadcrumb.vue */ "./resources/js/components/Breadcrumb.vue")["default"])); +vue__WEBPACK_IMPORTED_MODULE_9__["default"].component('dashboard', (__webpack_require__(/*! ./pages/dashboard.vue */ "./resources/js/pages/dashboard.vue")["default"])); +vue__WEBPACK_IMPORTED_MODULE_9__["default"].component('tunai-component', (__webpack_require__(/*! ./components/Tunai.vue */ "./resources/js/components/Tunai.vue")["default"])); +vue__WEBPACK_IMPORTED_MODULE_9__["default"].component('petibesi-component', (__webpack_require__(/*! ./components/Petibesi.vue */ "./resources/js/components/Petibesi.vue")["default"])); +vue__WEBPACK_IMPORTED_MODULE_9__["default"].component('cawangan-component', (__webpack_require__(/*! ./components/cawangan.vue */ "./resources/js/components/cawangan.vue")["default"])); +vue__WEBPACK_IMPORTED_MODULE_9__["default"].component('modal-component', (__webpack_require__(/*! ./components/util/Modal.vue */ "./resources/js/components/util/Modal.vue")["default"])); +vue__WEBPACK_IMPORTED_MODULE_9__["default"].component('searchpelanggan-component', (__webpack_require__(/*! ./components/Searchpelanggan.vue */ "./resources/js/components/Searchpelanggan.vue")["default"])); +vue__WEBPACK_IMPORTED_MODULE_9__["default"].component('laporanakaun-component', (__webpack_require__(/*! ./Akaun/Laporan.vue */ "./resources/js/Akaun/Laporan.vue")["default"])); +vue__WEBPACK_IMPORTED_MODULE_9__["default"].component('online-component', (__webpack_require__(/*! ./Online/Online.vue */ "./resources/js/Online/Online.vue")["default"])); +vue__WEBPACK_IMPORTED_MODULE_9__["default"].component('details-pelanggan', (__webpack_require__(/*! ./pages/Detailspelanggan.vue */ "./resources/js/pages/Detailspelanggan.vue")["default"])); +vue__WEBPACK_IMPORTED_MODULE_9__["default"].component('apexchart', (vue_apexcharts__WEBPACK_IMPORTED_MODULE_0___default())); // Vue.component('Navbar', require('./components/Navbar.vue').default); /** * Next, we will create a fresh Vue application instance and attach it to @@ -19497,7 +19731,7 @@ vue__WEBPACK_IMPORTED_MODULE_8__["default"].component('apexchart', (vue_apexchar * or customize the JavaScript scaffolding to fit your unique needs. */ -var app = new vue__WEBPACK_IMPORTED_MODULE_8__["default"]({ +var app = new vue__WEBPACK_IMPORTED_MODULE_9__["default"]({ router: _routes__WEBPACK_IMPORTED_MODULE_7__["default"], el: '#app' }); @@ -24011,6 +24245,30 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".Vue-Toastification__container {\n z- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___); +/***/ }), + +/***/ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-9[0].rules[0].use[1]!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9[0].rules[0].use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./node_modules/vuejs-datetimepicker/src/datetime_picker.vue?vue&type=style&index=0&id=4bd11526&scoped=true&lang=css&": +/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-9[0].rules[0].use[1]!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9[0].rules[0].use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./node_modules/vuejs-datetimepicker/src/datetime_picker.vue?vue&type=style&index=0&id=4bd11526&scoped=true&lang=css& ***! + \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/***/ ((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 _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); +/* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__); +// Imports + +var ___CSS_LOADER_EXPORT___ = _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]}); +// Module +___CSS_LOADER_EXPORT___.push([module.id, "\n.year-month-wrapper[data-v-4bd11526]{\n background-color: #ed4d00;\n}\ninput[data-v-4bd11526]{\n min-width: 226px;\n width:100%;\n height: 30px;\n padding: 3px;\n border: 1px solid #ddd;\n}\n.datetime-picker[data-v-4bd11526]{\n position: relative;\n}\n.calender-div[data-v-4bd11526]{\n min-width: 270px;\n box-shadow: 1px 2px 5px #ccc;\n background: #FFF;\n position: absolute;\n display: inline-block;\n left: 0;\n top: 35px;\n color: #444;\n font-size: 14px;\n padding-bottom: 10px;\n z-index: 100;\n}\n.port[data-v-4bd11526], .days[data-v-4bd11526]{\n display: inline-block;\n width: 30px;\n height: 30px;\n padding: 5px 3px;\n margin: 2px;\n border-radius: 2px;\n text-align: center;\n vertical-align: top;\n cursor: pointer;\n}\n.days[data-v-4bd11526]{\n color: #ed4d00;\n font-weight: bold;\n}\n.port[data-v-4bd11526]:hover{\n color: #ed4d00;\n font-weight: bold;\n}\n.activePort[data-v-4bd11526], .activePort[data-v-4bd11526]:hover {\n background-color: #ed4d00;\n color: white;\n}\n.month-setter[data-v-4bd11526], .year-setter[data-v-4bd11526]{\n margin: 0 1px;\n width: 48.2%;\n color: white;\n font-weight: 900;\n display: inline-block;\n}\n.nav-l[data-v-4bd11526]:hover, .nav-r[data-v-4bd11526]:hover {\n background-color: #dc3c00;\n}\n.nav-l[data-v-4bd11526], .nav-r[data-v-4bd11526] {\n display: inline-block;\n width: 25px;\n background-color: #ed4d00;\n color: white;\n font-size: 16px;\n cursor: pointer;\n border: 0;\n padding: 7px;\n margin:0;\n}\n.nav-l[data-v-4bd11526]:focus, .nav-r[data-v-4bd11526]:focus{\n outline: none;\n}\n.nav-l[data-v-4bd11526]{\n float: left;\n}\n.nav-r[data-v-4bd11526]{\n float: right;\n}\n.month[data-v-4bd11526], .year[data-v-4bd11526]{\n width: 40px;\n text-align: right;\n display: inline-block;\n color: white;\n padding: 7px 0;\n}\n/* .headers>span{\n\n} */\n.hour-selector[data-v-4bd11526], .minute-selector[data-v-4bd11526]{\n width: 30px;\n display: inline-block;\n text-align: center;\n font-weight: bold;\n position: relative;\n cursor: pointer;\n}\n.time-separator[data-v-4bd11526]{\n display: inline-block;\n font-weight: bold;\n}\n.time-picker[data-v-4bd11526]{\n margin: 10px\n}\n.nav-t[data-v-4bd11526], .nav-d[data-v-4bd11526]{\n font-weight: bold;\n cursor: pointer;\n}\n.scroll-hider[data-v-4bd11526] {\n display: none;\n vertical-align:top;\n overflow:hidden;\n border:0;\n position: absolute;\n top: -40px;\n left: 0;\n box-shadow: 0 0 3px #333;\n background-color: white;\n}\n.scroll-hider ul[data-v-4bd11526] {\n padding:5px;\n margin:-5px -13px -5px -5px;\n list-style-type: none;\n height: 100px;\n overflow: auto;\n width:55px;\n color: #999;\n overflow-x: hidden;\n}\n.showSelector[data-v-4bd11526]{\n display:inline-block;\n}\nli.active[data-v-4bd11526]{\n background-color: #ed4d00;\n color: white;\n}\nli[data-v-4bd11526]{\n padding: 4px;\n font-size: 16px;\n width: 100%;\n cursor: pointer;\n}\n.time-picker[data-v-4bd11526]{\n display: inline-block;\n}\n.noDisplay[data-v-4bd11526]{\n display: none;\n}\n.okButton[data-v-4bd11526]{\n color: #ed4d00;\n font-size: 15px;\n font-weight: bold;\n padding: 0;\n float: right;\n border: 0;\n margin-right: 10px;\n margin-top: 10px;\n cursor: pointer;\n background: transparent;\n}\n", ""]); +// Exports +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___); + + /***/ }), /***/ "./node_modules/css-loader/dist/runtime/api.js": @@ -24087,6 +24345,1651 @@ module.exports = function (cssWithMappingToString) { return list; }; +/***/ }), + +/***/ "./node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js": +/*!*****************************************************************************!*\ + !*** ./node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js ***! + \*****************************************************************************/ +/***/ ((module) => { + +var MILLISECONDS_IN_MINUTE = 60000 + +/** + * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds. + * They usually appear for dates that denote time before the timezones were introduced + * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891 + * and GMT+01:00:00 after that date) + * + * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above, + * which would lead to incorrect calculations. + * + * This function returns the timezone offset in milliseconds that takes seconds in account. + */ +module.exports = function getTimezoneOffsetInMilliseconds (dirtyDate) { + var date = new Date(dirtyDate.getTime()) + var baseTimezoneOffset = date.getTimezoneOffset() + date.setSeconds(0, 0) + var millisecondsPartOfTimezoneOffset = date.getTime() % MILLISECONDS_IN_MINUTE + + return baseTimezoneOffset * MILLISECONDS_IN_MINUTE + millisecondsPartOfTimezoneOffset +} + + +/***/ }), + +/***/ "./node_modules/date-fns/difference_in_calendar_days/index.js": +/*!********************************************************************!*\ + !*** ./node_modules/date-fns/difference_in_calendar_days/index.js ***! + \********************************************************************/ +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var startOfDay = __webpack_require__(/*! ../start_of_day/index.js */ "./node_modules/date-fns/start_of_day/index.js") + +var MILLISECONDS_IN_MINUTE = 60000 +var MILLISECONDS_IN_DAY = 86400000 + +/** + * @category Day Helpers + * @summary Get the number of calendar days between the given dates. + * + * @description + * Get the number of calendar days between the given dates. + * + * @param {Date|String|Number} dateLeft - the later date + * @param {Date|String|Number} dateRight - the earlier date + * @returns {Number} the number of calendar days + * + * @example + * // How many calendar days are between + * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00? + * var result = differenceInCalendarDays( + * new Date(2012, 6, 2, 0, 0), + * new Date(2011, 6, 2, 23, 0) + * ) + * //=> 366 + */ +function differenceInCalendarDays (dirtyDateLeft, dirtyDateRight) { + var startOfDayLeft = startOfDay(dirtyDateLeft) + var startOfDayRight = startOfDay(dirtyDateRight) + + var timestampLeft = startOfDayLeft.getTime() - + startOfDayLeft.getTimezoneOffset() * MILLISECONDS_IN_MINUTE + var timestampRight = startOfDayRight.getTime() - + startOfDayRight.getTimezoneOffset() * MILLISECONDS_IN_MINUTE + + // Round the number of days to the nearest integer + // because the number of milliseconds in a day is not constant + // (e.g. it's different in the day of the daylight saving time clock shift) + return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_DAY) +} + +module.exports = differenceInCalendarDays + + +/***/ }), + +/***/ "./node_modules/date-fns/each_day/index.js": +/*!*************************************************!*\ + !*** ./node_modules/date-fns/each_day/index.js ***! + \*************************************************/ +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var parse = __webpack_require__(/*! ../parse/index.js */ "./node_modules/date-fns/parse/index.js") + +/** + * @category Day Helpers + * @summary Return the array of dates within the specified range. + * + * @description + * Return the array of dates within the specified range. + * + * @param {Date|String|Number} startDate - the first date + * @param {Date|String|Number} endDate - the last date + * @param {Number} [step=1] - the step between each day + * @returns {Date[]} the array with starts of days from the day of startDate to the day of endDate + * @throws {Error} startDate cannot be after endDate + * + * @example + * // Each day between 6 October 2014 and 10 October 2014: + * var result = eachDay( + * new Date(2014, 9, 6), + * new Date(2014, 9, 10) + * ) + * //=> [ + * // Mon Oct 06 2014 00:00:00, + * // Tue Oct 07 2014 00:00:00, + * // Wed Oct 08 2014 00:00:00, + * // Thu Oct 09 2014 00:00:00, + * // Fri Oct 10 2014 00:00:00 + * // ] + */ +function eachDay (dirtyStartDate, dirtyEndDate, dirtyStep) { + var startDate = parse(dirtyStartDate) + var endDate = parse(dirtyEndDate) + var step = dirtyStep !== undefined ? dirtyStep : 1 + + var endTime = endDate.getTime() + + if (startDate.getTime() > endTime) { + throw new Error('The first date cannot be after the second date') + } + + var dates = [] + + var currentDate = startDate + currentDate.setHours(0, 0, 0, 0) + + while (currentDate.getTime() <= endTime) { + dates.push(parse(currentDate)) + currentDate.setDate(currentDate.getDate() + step) + } + + return dates +} + +module.exports = eachDay + + +/***/ }), + +/***/ "./node_modules/date-fns/end_of_month/index.js": +/*!*****************************************************!*\ + !*** ./node_modules/date-fns/end_of_month/index.js ***! + \*****************************************************/ +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var parse = __webpack_require__(/*! ../parse/index.js */ "./node_modules/date-fns/parse/index.js") + +/** + * @category Month Helpers + * @summary Return the end of a month for the given date. + * + * @description + * Return the end of a month for the given date. + * The result will be in the local timezone. + * + * @param {Date|String|Number} date - the original date + * @returns {Date} the end of a month + * + * @example + * // The end of a month for 2 September 2014 11:55:00: + * var result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 23:59:59.999 + */ +function endOfMonth (dirtyDate) { + var date = parse(dirtyDate) + var month = date.getMonth() + date.setFullYear(date.getFullYear(), month + 1, 0) + date.setHours(23, 59, 59, 999) + return date +} + +module.exports = endOfMonth + + +/***/ }), + +/***/ "./node_modules/date-fns/format/index.js": +/*!***********************************************!*\ + !*** ./node_modules/date-fns/format/index.js ***! + \***********************************************/ +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var getDayOfYear = __webpack_require__(/*! ../get_day_of_year/index.js */ "./node_modules/date-fns/get_day_of_year/index.js") +var getISOWeek = __webpack_require__(/*! ../get_iso_week/index.js */ "./node_modules/date-fns/get_iso_week/index.js") +var getISOYear = __webpack_require__(/*! ../get_iso_year/index.js */ "./node_modules/date-fns/get_iso_year/index.js") +var parse = __webpack_require__(/*! ../parse/index.js */ "./node_modules/date-fns/parse/index.js") +var isValid = __webpack_require__(/*! ../is_valid/index.js */ "./node_modules/date-fns/is_valid/index.js") +var enLocale = __webpack_require__(/*! ../locale/en/index.js */ "./node_modules/date-fns/locale/en/index.js") + +/** + * @category Common Helpers + * @summary Format the date. + * + * @description + * Return the formatted date string in the given format. + * + * Accepted tokens: + * | Unit | Token | Result examples | + * |-------------------------|-------|----------------------------------| + * | Month | M | 1, 2, ..., 12 | + * | | Mo | 1st, 2nd, ..., 12th | + * | | MM | 01, 02, ..., 12 | + * | | MMM | Jan, Feb, ..., Dec | + * | | MMMM | January, February, ..., December | + * | Quarter | Q | 1, 2, 3, 4 | + * | | Qo | 1st, 2nd, 3rd, 4th | + * | Day of month | D | 1, 2, ..., 31 | + * | | Do | 1st, 2nd, ..., 31st | + * | | DD | 01, 02, ..., 31 | + * | Day of year | DDD | 1, 2, ..., 366 | + * | | DDDo | 1st, 2nd, ..., 366th | + * | | DDDD | 001, 002, ..., 366 | + * | Day of week | d | 0, 1, ..., 6 | + * | | do | 0th, 1st, ..., 6th | + * | | dd | Su, Mo, ..., Sa | + * | | ddd | Sun, Mon, ..., Sat | + * | | dddd | Sunday, Monday, ..., Saturday | + * | Day of ISO week | E | 1, 2, ..., 7 | + * | ISO week | W | 1, 2, ..., 53 | + * | | Wo | 1st, 2nd, ..., 53rd | + * | | WW | 01, 02, ..., 53 | + * | Year | YY | 00, 01, ..., 99 | + * | | YYYY | 1900, 1901, ..., 2099 | + * | ISO week-numbering year | GG | 00, 01, ..., 99 | + * | | GGGG | 1900, 1901, ..., 2099 | + * | AM/PM | A | AM, PM | + * | | a | am, pm | + * | | aa | a.m., p.m. | + * | Hour | H | 0, 1, ... 23 | + * | | HH | 00, 01, ... 23 | + * | | h | 1, 2, ..., 12 | + * | | hh | 01, 02, ..., 12 | + * | Minute | m | 0, 1, ..., 59 | + * | | mm | 00, 01, ..., 59 | + * | Second | s | 0, 1, ..., 59 | + * | | ss | 00, 01, ..., 59 | + * | 1/10 of second | S | 0, 1, ..., 9 | + * | 1/100 of second | SS | 00, 01, ..., 99 | + * | Millisecond | SSS | 000, 001, ..., 999 | + * | Timezone | Z | -01:00, +00:00, ... +12:00 | + * | | ZZ | -0100, +0000, ..., +1200 | + * | Seconds timestamp | X | 512969520 | + * | Milliseconds timestamp | x | 512969520900 | + * + * The characters wrapped in square brackets are escaped. + * + * The result may vary by locale. + * + * @param {Date|String|Number} date - the original date + * @param {String} [format='YYYY-MM-DDTHH:mm:ss.SSSZ'] - the string of tokens + * @param {Object} [options] - the object with options + * @param {Object} [options.locale=enLocale] - the locale object + * @returns {String} the formatted date string + * + * @example + * // Represent 11 February 2014 in middle-endian format: + * var result = format( + * new Date(2014, 1, 11), + * 'MM/DD/YYYY' + * ) + * //=> '02/11/2014' + * + * @example + * // Represent 2 July 2014 in Esperanto: + * var eoLocale = require('date-fns/locale/eo') + * var result = format( + * new Date(2014, 6, 2), + * 'Do [de] MMMM YYYY', + * {locale: eoLocale} + * ) + * //=> '2-a de julio 2014' + */ +function format (dirtyDate, dirtyFormatStr, dirtyOptions) { + var formatStr = dirtyFormatStr ? String(dirtyFormatStr) : 'YYYY-MM-DDTHH:mm:ss.SSSZ' + var options = dirtyOptions || {} + + var locale = options.locale + var localeFormatters = enLocale.format.formatters + var formattingTokensRegExp = enLocale.format.formattingTokensRegExp + if (locale && locale.format && locale.format.formatters) { + localeFormatters = locale.format.formatters + + if (locale.format.formattingTokensRegExp) { + formattingTokensRegExp = locale.format.formattingTokensRegExp + } + } + + var date = parse(dirtyDate) + + if (!isValid(date)) { + return 'Invalid Date' + } + + var formatFn = buildFormatFn(formatStr, localeFormatters, formattingTokensRegExp) + + return formatFn(date) +} + +var formatters = { + // Month: 1, 2, ..., 12 + 'M': function (date) { + return date.getMonth() + 1 + }, + + // Month: 01, 02, ..., 12 + 'MM': function (date) { + return addLeadingZeros(date.getMonth() + 1, 2) + }, + + // Quarter: 1, 2, 3, 4 + 'Q': function (date) { + return Math.ceil((date.getMonth() + 1) / 3) + }, + + // Day of month: 1, 2, ..., 31 + 'D': function (date) { + return date.getDate() + }, + + // Day of month: 01, 02, ..., 31 + 'DD': function (date) { + return addLeadingZeros(date.getDate(), 2) + }, + + // Day of year: 1, 2, ..., 366 + 'DDD': function (date) { + return getDayOfYear(date) + }, + + // Day of year: 001, 002, ..., 366 + 'DDDD': function (date) { + return addLeadingZeros(getDayOfYear(date), 3) + }, + + // Day of week: 0, 1, ..., 6 + 'd': function (date) { + return date.getDay() + }, + + // Day of ISO week: 1, 2, ..., 7 + 'E': function (date) { + return date.getDay() || 7 + }, + + // ISO week: 1, 2, ..., 53 + 'W': function (date) { + return getISOWeek(date) + }, + + // ISO week: 01, 02, ..., 53 + 'WW': function (date) { + return addLeadingZeros(getISOWeek(date), 2) + }, + + // Year: 00, 01, ..., 99 + 'YY': function (date) { + return addLeadingZeros(date.getFullYear(), 4).substr(2) + }, + + // Year: 1900, 1901, ..., 2099 + 'YYYY': function (date) { + return addLeadingZeros(date.getFullYear(), 4) + }, + + // ISO week-numbering year: 00, 01, ..., 99 + 'GG': function (date) { + return String(getISOYear(date)).substr(2) + }, + + // ISO week-numbering year: 1900, 1901, ..., 2099 + 'GGGG': function (date) { + return getISOYear(date) + }, + + // Hour: 0, 1, ... 23 + 'H': function (date) { + return date.getHours() + }, + + // Hour: 00, 01, ..., 23 + 'HH': function (date) { + return addLeadingZeros(date.getHours(), 2) + }, + + // Hour: 1, 2, ..., 12 + 'h': function (date) { + var hours = date.getHours() + if (hours === 0) { + return 12 + } else if (hours > 12) { + return hours % 12 + } else { + return hours + } + }, + + // Hour: 01, 02, ..., 12 + 'hh': function (date) { + return addLeadingZeros(formatters['h'](date), 2) + }, + + // Minute: 0, 1, ..., 59 + 'm': function (date) { + return date.getMinutes() + }, + + // Minute: 00, 01, ..., 59 + 'mm': function (date) { + return addLeadingZeros(date.getMinutes(), 2) + }, + + // Second: 0, 1, ..., 59 + 's': function (date) { + return date.getSeconds() + }, + + // Second: 00, 01, ..., 59 + 'ss': function (date) { + return addLeadingZeros(date.getSeconds(), 2) + }, + + // 1/10 of second: 0, 1, ..., 9 + 'S': function (date) { + return Math.floor(date.getMilliseconds() / 100) + }, + + // 1/100 of second: 00, 01, ..., 99 + 'SS': function (date) { + return addLeadingZeros(Math.floor(date.getMilliseconds() / 10), 2) + }, + + // Millisecond: 000, 001, ..., 999 + 'SSS': function (date) { + return addLeadingZeros(date.getMilliseconds(), 3) + }, + + // Timezone: -01:00, +00:00, ... +12:00 + 'Z': function (date) { + return formatTimezone(date.getTimezoneOffset(), ':') + }, + + // Timezone: -0100, +0000, ... +1200 + 'ZZ': function (date) { + return formatTimezone(date.getTimezoneOffset()) + }, + + // Seconds timestamp: 512969520 + 'X': function (date) { + return Math.floor(date.getTime() / 1000) + }, + + // Milliseconds timestamp: 512969520900 + 'x': function (date) { + return date.getTime() + } +} + +function buildFormatFn (formatStr, localeFormatters, formattingTokensRegExp) { + var array = formatStr.match(formattingTokensRegExp) + var length = array.length + + var i + var formatter + for (i = 0; i < length; i++) { + formatter = localeFormatters[array[i]] || formatters[array[i]] + if (formatter) { + array[i] = formatter + } else { + array[i] = removeFormattingTokens(array[i]) + } + } + + return function (date) { + var output = '' + for (var i = 0; i < length; i++) { + if (array[i] instanceof Function) { + output += array[i](date, formatters) + } else { + output += array[i] + } + } + return output + } +} + +function removeFormattingTokens (input) { + if (input.match(/\[[\s\S]/)) { + return input.replace(/^\[|]$/g, '') + } + return input.replace(/\\/g, '') +} + +function formatTimezone (offset, delimeter) { + delimeter = delimeter || '' + var sign = offset > 0 ? '-' : '+' + var absOffset = Math.abs(offset) + var hours = Math.floor(absOffset / 60) + var minutes = absOffset % 60 + return sign + addLeadingZeros(hours, 2) + delimeter + addLeadingZeros(minutes, 2) +} + +function addLeadingZeros (number, targetLength) { + var output = Math.abs(number).toString() + while (output.length < targetLength) { + output = '0' + output + } + return output +} + +module.exports = format + + +/***/ }), + +/***/ "./node_modules/date-fns/get_day/index.js": +/*!************************************************!*\ + !*** ./node_modules/date-fns/get_day/index.js ***! + \************************************************/ +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var parse = __webpack_require__(/*! ../parse/index.js */ "./node_modules/date-fns/parse/index.js") + +/** + * @category Weekday Helpers + * @summary Get the day of the week of the given date. + * + * @description + * Get the day of the week of the given date. + * + * @param {Date|String|Number} date - the given date + * @returns {Number} the day of week + * + * @example + * // Which day of the week is 29 February 2012? + * var result = getDay(new Date(2012, 1, 29)) + * //=> 3 + */ +function getDay (dirtyDate) { + var date = parse(dirtyDate) + var day = date.getDay() + return day +} + +module.exports = getDay + + +/***/ }), + +/***/ "./node_modules/date-fns/get_day_of_year/index.js": +/*!********************************************************!*\ + !*** ./node_modules/date-fns/get_day_of_year/index.js ***! + \********************************************************/ +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var parse = __webpack_require__(/*! ../parse/index.js */ "./node_modules/date-fns/parse/index.js") +var startOfYear = __webpack_require__(/*! ../start_of_year/index.js */ "./node_modules/date-fns/start_of_year/index.js") +var differenceInCalendarDays = __webpack_require__(/*! ../difference_in_calendar_days/index.js */ "./node_modules/date-fns/difference_in_calendar_days/index.js") + +/** + * @category Day Helpers + * @summary Get the day of the year of the given date. + * + * @description + * Get the day of the year of the given date. + * + * @param {Date|String|Number} date - the given date + * @returns {Number} the day of year + * + * @example + * // Which day of the year is 2 July 2014? + * var result = getDayOfYear(new Date(2014, 6, 2)) + * //=> 183 + */ +function getDayOfYear (dirtyDate) { + var date = parse(dirtyDate) + var diff = differenceInCalendarDays(date, startOfYear(date)) + var dayOfYear = diff + 1 + return dayOfYear +} + +module.exports = getDayOfYear + + +/***/ }), + +/***/ "./node_modules/date-fns/get_iso_week/index.js": +/*!*****************************************************!*\ + !*** ./node_modules/date-fns/get_iso_week/index.js ***! + \*****************************************************/ +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var parse = __webpack_require__(/*! ../parse/index.js */ "./node_modules/date-fns/parse/index.js") +var startOfISOWeek = __webpack_require__(/*! ../start_of_iso_week/index.js */ "./node_modules/date-fns/start_of_iso_week/index.js") +var startOfISOYear = __webpack_require__(/*! ../start_of_iso_year/index.js */ "./node_modules/date-fns/start_of_iso_year/index.js") + +var MILLISECONDS_IN_WEEK = 604800000 + +/** + * @category ISO Week Helpers + * @summary Get the ISO week of the given date. + * + * @description + * Get the ISO week of the given date. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|String|Number} date - the given date + * @returns {Number} the ISO week + * + * @example + * // Which week of the ISO-week numbering year is 2 January 2005? + * var result = getISOWeek(new Date(2005, 0, 2)) + * //=> 53 + */ +function getISOWeek (dirtyDate) { + var date = parse(dirtyDate) + var diff = startOfISOWeek(date).getTime() - startOfISOYear(date).getTime() + + // Round the number of days to the nearest integer + // because the number of milliseconds in a week is not constant + // (e.g. it's different in the week of the daylight saving time clock shift) + return Math.round(diff / MILLISECONDS_IN_WEEK) + 1 +} + +module.exports = getISOWeek + + +/***/ }), + +/***/ "./node_modules/date-fns/get_iso_year/index.js": +/*!*****************************************************!*\ + !*** ./node_modules/date-fns/get_iso_year/index.js ***! + \*****************************************************/ +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var parse = __webpack_require__(/*! ../parse/index.js */ "./node_modules/date-fns/parse/index.js") +var startOfISOWeek = __webpack_require__(/*! ../start_of_iso_week/index.js */ "./node_modules/date-fns/start_of_iso_week/index.js") + +/** + * @category ISO Week-Numbering Year Helpers + * @summary Get the ISO week-numbering year of the given date. + * + * @description + * Get the ISO week-numbering year of the given date, + * which always starts 3 days before the year's first Thursday. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|String|Number} date - the given date + * @returns {Number} the ISO week-numbering year + * + * @example + * // Which ISO-week numbering year is 2 January 2005? + * var result = getISOYear(new Date(2005, 0, 2)) + * //=> 2004 + */ +function getISOYear (dirtyDate) { + var date = parse(dirtyDate) + var year = date.getFullYear() + + var fourthOfJanuaryOfNextYear = new Date(0) + fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4) + fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0) + var startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear) + + var fourthOfJanuaryOfThisYear = new Date(0) + fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4) + fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0) + var startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear) + + if (date.getTime() >= startOfNextYear.getTime()) { + return year + 1 + } else if (date.getTime() >= startOfThisYear.getTime()) { + return year + } else { + return year - 1 + } +} + +module.exports = getISOYear + + +/***/ }), + +/***/ "./node_modules/date-fns/is_date/index.js": +/*!************************************************!*\ + !*** ./node_modules/date-fns/is_date/index.js ***! + \************************************************/ +/***/ ((module) => { + +/** + * @category Common Helpers + * @summary Is the given argument an instance of Date? + * + * @description + * Is the given argument an instance of Date? + * + * @param {*} argument - the argument to check + * @returns {Boolean} the given argument is an instance of Date + * + * @example + * // Is 'mayonnaise' a Date? + * var result = isDate('mayonnaise') + * //=> false + */ +function isDate (argument) { + return argument instanceof Date +} + +module.exports = isDate + + +/***/ }), + +/***/ "./node_modules/date-fns/is_equal/index.js": +/*!*************************************************!*\ + !*** ./node_modules/date-fns/is_equal/index.js ***! + \*************************************************/ +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var parse = __webpack_require__(/*! ../parse/index.js */ "./node_modules/date-fns/parse/index.js") + +/** + * @category Common Helpers + * @summary Are the given dates equal? + * + * @description + * Are the given dates equal? + * + * @param {Date|String|Number} dateLeft - the first date to compare + * @param {Date|String|Number} dateRight - the second date to compare + * @returns {Boolean} the dates are equal + * + * @example + * // Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal? + * var result = isEqual( + * new Date(2014, 6, 2, 6, 30, 45, 0) + * new Date(2014, 6, 2, 6, 30, 45, 500) + * ) + * //=> false + */ +function isEqual (dirtyLeftDate, dirtyRightDate) { + var dateLeft = parse(dirtyLeftDate) + var dateRight = parse(dirtyRightDate) + return dateLeft.getTime() === dateRight.getTime() +} + +module.exports = isEqual + + +/***/ }), + +/***/ "./node_modules/date-fns/is_valid/index.js": +/*!*************************************************!*\ + !*** ./node_modules/date-fns/is_valid/index.js ***! + \*************************************************/ +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var isDate = __webpack_require__(/*! ../is_date/index.js */ "./node_modules/date-fns/is_date/index.js") + +/** + * @category Common Helpers + * @summary Is the given date valid? + * + * @description + * Returns false if argument is Invalid Date and true otherwise. + * Invalid Date is a Date, whose time value is NaN. + * + * Time value of Date: http://es5.github.io/#x15.9.1.1 + * + * @param {Date} date - the date to check + * @returns {Boolean} the date is valid + * @throws {TypeError} argument must be an instance of Date + * + * @example + * // For the valid date: + * var result = isValid(new Date(2014, 1, 31)) + * //=> true + * + * @example + * // For the invalid date: + * var result = isValid(new Date('')) + * //=> false + */ +function isValid (dirtyDate) { + if (isDate(dirtyDate)) { + return !isNaN(dirtyDate) + } else { + throw new TypeError(toString.call(dirtyDate) + ' is not an instance of Date') + } +} + +module.exports = isValid + + +/***/ }), + +/***/ "./node_modules/date-fns/locale/_lib/build_formatting_tokens_reg_exp/index.js": +/*!************************************************************************************!*\ + !*** ./node_modules/date-fns/locale/_lib/build_formatting_tokens_reg_exp/index.js ***! + \************************************************************************************/ +/***/ ((module) => { + +var commonFormatterKeys = [ + 'M', 'MM', 'Q', 'D', 'DD', 'DDD', 'DDDD', 'd', + 'E', 'W', 'WW', 'YY', 'YYYY', 'GG', 'GGGG', + 'H', 'HH', 'h', 'hh', 'm', 'mm', + 's', 'ss', 'S', 'SS', 'SSS', + 'Z', 'ZZ', 'X', 'x' +] + +function buildFormattingTokensRegExp (formatters) { + var formatterKeys = [] + for (var key in formatters) { + if (formatters.hasOwnProperty(key)) { + formatterKeys.push(key) + } + } + + var formattingTokens = commonFormatterKeys + .concat(formatterKeys) + .sort() + .reverse() + var formattingTokensRegExp = new RegExp( + '(\\[[^\\[]*\\])|(\\\\)?' + '(' + formattingTokens.join('|') + '|.)', 'g' + ) + + return formattingTokensRegExp +} + +module.exports = buildFormattingTokensRegExp + + +/***/ }), + +/***/ "./node_modules/date-fns/locale/en/build_distance_in_words_locale/index.js": +/*!*********************************************************************************!*\ + !*** ./node_modules/date-fns/locale/en/build_distance_in_words_locale/index.js ***! + \*********************************************************************************/ +/***/ ((module) => { + +function buildDistanceInWordsLocale () { + var distanceInWordsLocale = { + lessThanXSeconds: { + one: 'less than a second', + other: 'less than {{count}} seconds' + }, + + xSeconds: { + one: '1 second', + other: '{{count}} seconds' + }, + + halfAMinute: 'half a minute', + + lessThanXMinutes: { + one: 'less than a minute', + other: 'less than {{count}} minutes' + }, + + xMinutes: { + one: '1 minute', + other: '{{count}} minutes' + }, + + aboutXHours: { + one: 'about 1 hour', + other: 'about {{count}} hours' + }, + + xHours: { + one: '1 hour', + other: '{{count}} hours' + }, + + xDays: { + one: '1 day', + other: '{{count}} days' + }, + + aboutXMonths: { + one: 'about 1 month', + other: 'about {{count}} months' + }, + + xMonths: { + one: '1 month', + other: '{{count}} months' + }, + + aboutXYears: { + one: 'about 1 year', + other: 'about {{count}} years' + }, + + xYears: { + one: '1 year', + other: '{{count}} years' + }, + + overXYears: { + one: 'over 1 year', + other: 'over {{count}} years' + }, + + almostXYears: { + one: 'almost 1 year', + other: 'almost {{count}} years' + } + } + + function localize (token, count, options) { + options = options || {} + + var result + if (typeof distanceInWordsLocale[token] === 'string') { + result = distanceInWordsLocale[token] + } else if (count === 1) { + result = distanceInWordsLocale[token].one + } else { + result = distanceInWordsLocale[token].other.replace('{{count}}', count) + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'in ' + result + } else { + return result + ' ago' + } + } + + return result + } + + return { + localize: localize + } +} + +module.exports = buildDistanceInWordsLocale + + +/***/ }), + +/***/ "./node_modules/date-fns/locale/en/build_format_locale/index.js": +/*!**********************************************************************!*\ + !*** ./node_modules/date-fns/locale/en/build_format_locale/index.js ***! + \**********************************************************************/ +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var buildFormattingTokensRegExp = __webpack_require__(/*! ../../_lib/build_formatting_tokens_reg_exp/index.js */ "./node_modules/date-fns/locale/_lib/build_formatting_tokens_reg_exp/index.js") + +function buildFormatLocale () { + // Note: in English, the names of days of the week and months are capitalized. + // If you are making a new locale based on this one, check if the same is true for the language you're working on. + // Generally, formatted dates should look like they are in the middle of a sentence, + // e.g. in Spanish language the weekdays and months should be in the lowercase. + var months3char = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] + var monthsFull = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] + var weekdays2char = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'] + var weekdays3char = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'] + var weekdaysFull = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] + var meridiemUppercase = ['AM', 'PM'] + var meridiemLowercase = ['am', 'pm'] + var meridiemFull = ['a.m.', 'p.m.'] + + var formatters = { + // Month: Jan, Feb, ..., Dec + 'MMM': function (date) { + return months3char[date.getMonth()] + }, + + // Month: January, February, ..., December + 'MMMM': function (date) { + return monthsFull[date.getMonth()] + }, + + // Day of week: Su, Mo, ..., Sa + 'dd': function (date) { + return weekdays2char[date.getDay()] + }, + + // Day of week: Sun, Mon, ..., Sat + 'ddd': function (date) { + return weekdays3char[date.getDay()] + }, + + // Day of week: Sunday, Monday, ..., Saturday + 'dddd': function (date) { + return weekdaysFull[date.getDay()] + }, + + // AM, PM + 'A': function (date) { + return (date.getHours() / 12) >= 1 ? meridiemUppercase[1] : meridiemUppercase[0] + }, + + // am, pm + 'a': function (date) { + return (date.getHours() / 12) >= 1 ? meridiemLowercase[1] : meridiemLowercase[0] + }, + + // a.m., p.m. + 'aa': function (date) { + return (date.getHours() / 12) >= 1 ? meridiemFull[1] : meridiemFull[0] + } + } + + // Generate ordinal version of formatters: M -> Mo, D -> Do, etc. + var ordinalFormatters = ['M', 'D', 'DDD', 'd', 'Q', 'W'] + ordinalFormatters.forEach(function (formatterToken) { + formatters[formatterToken + 'o'] = function (date, formatters) { + return ordinal(formatters[formatterToken](date)) + } + }) + + return { + formatters: formatters, + formattingTokensRegExp: buildFormattingTokensRegExp(formatters) + } +} + +function ordinal (number) { + var rem100 = number % 100 + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + 'st' + case 2: + return number + 'nd' + case 3: + return number + 'rd' + } + } + return number + 'th' +} + +module.exports = buildFormatLocale + + +/***/ }), + +/***/ "./node_modules/date-fns/locale/en/index.js": +/*!**************************************************!*\ + !*** ./node_modules/date-fns/locale/en/index.js ***! + \**************************************************/ +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var buildDistanceInWordsLocale = __webpack_require__(/*! ./build_distance_in_words_locale/index.js */ "./node_modules/date-fns/locale/en/build_distance_in_words_locale/index.js") +var buildFormatLocale = __webpack_require__(/*! ./build_format_locale/index.js */ "./node_modules/date-fns/locale/en/build_format_locale/index.js") + +/** + * @category Locales + * @summary English locale. + */ +module.exports = { + distanceInWords: buildDistanceInWordsLocale(), + format: buildFormatLocale() +} + + +/***/ }), + +/***/ "./node_modules/date-fns/parse/index.js": +/*!**********************************************!*\ + !*** ./node_modules/date-fns/parse/index.js ***! + \**********************************************/ +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var getTimezoneOffsetInMilliseconds = __webpack_require__(/*! ../_lib/getTimezoneOffsetInMilliseconds/index.js */ "./node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js") +var isDate = __webpack_require__(/*! ../is_date/index.js */ "./node_modules/date-fns/is_date/index.js") + +var MILLISECONDS_IN_HOUR = 3600000 +var MILLISECONDS_IN_MINUTE = 60000 +var DEFAULT_ADDITIONAL_DIGITS = 2 + +var parseTokenDateTimeDelimeter = /[T ]/ +var parseTokenPlainTime = /:/ + +// year tokens +var parseTokenYY = /^(\d{2})$/ +var parseTokensYYY = [ + /^([+-]\d{2})$/, // 0 additional digits + /^([+-]\d{3})$/, // 1 additional digit + /^([+-]\d{4})$/ // 2 additional digits +] + +var parseTokenYYYY = /^(\d{4})/ +var parseTokensYYYYY = [ + /^([+-]\d{4})/, // 0 additional digits + /^([+-]\d{5})/, // 1 additional digit + /^([+-]\d{6})/ // 2 additional digits +] + +// date tokens +var parseTokenMM = /^-(\d{2})$/ +var parseTokenDDD = /^-?(\d{3})$/ +var parseTokenMMDD = /^-?(\d{2})-?(\d{2})$/ +var parseTokenWww = /^-?W(\d{2})$/ +var parseTokenWwwD = /^-?W(\d{2})-?(\d{1})$/ + +// time tokens +var parseTokenHH = /^(\d{2}([.,]\d*)?)$/ +var parseTokenHHMM = /^(\d{2}):?(\d{2}([.,]\d*)?)$/ +var parseTokenHHMMSS = /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/ + +// timezone tokens +var parseTokenTimezone = /([Z+-].*)$/ +var parseTokenTimezoneZ = /^(Z)$/ +var parseTokenTimezoneHH = /^([+-])(\d{2})$/ +var parseTokenTimezoneHHMM = /^([+-])(\d{2}):?(\d{2})$/ + +/** + * @category Common Helpers + * @summary Convert the given argument to an instance of Date. + * + * @description + * Convert the given argument to an instance of Date. + * + * If the argument is an instance of Date, the function returns its clone. + * + * If the argument is a number, it is treated as a timestamp. + * + * If an argument is a string, the function tries to parse it. + * Function accepts complete ISO 8601 formats as well as partial implementations. + * ISO 8601: http://en.wikipedia.org/wiki/ISO_8601 + * + * If all above fails, the function passes the given argument to Date constructor. + * + * @param {Date|String|Number} argument - the value to convert + * @param {Object} [options] - the object with options + * @param {0 | 1 | 2} [options.additionalDigits=2] - the additional number of digits in the extended year format + * @returns {Date} the parsed date in the local time zone + * + * @example + * // Convert string '2014-02-11T11:30:30' to date: + * var result = parse('2014-02-11T11:30:30') + * //=> Tue Feb 11 2014 11:30:30 + * + * @example + * // Parse string '+02014101', + * // if the additional number of digits in the extended year format is 1: + * var result = parse('+02014101', {additionalDigits: 1}) + * //=> Fri Apr 11 2014 00:00:00 + */ +function parse (argument, dirtyOptions) { + if (isDate(argument)) { + // Prevent the date to lose the milliseconds when passed to new Date() in IE10 + return new Date(argument.getTime()) + } else if (typeof argument !== 'string') { + return new Date(argument) + } + + var options = dirtyOptions || {} + var additionalDigits = options.additionalDigits + if (additionalDigits == null) { + additionalDigits = DEFAULT_ADDITIONAL_DIGITS + } else { + additionalDigits = Number(additionalDigits) + } + + var dateStrings = splitDateString(argument) + + var parseYearResult = parseYear(dateStrings.date, additionalDigits) + var year = parseYearResult.year + var restDateString = parseYearResult.restDateString + + var date = parseDate(restDateString, year) + + if (date) { + var timestamp = date.getTime() + var time = 0 + var offset + + if (dateStrings.time) { + time = parseTime(dateStrings.time) + } + + if (dateStrings.timezone) { + offset = parseTimezone(dateStrings.timezone) * MILLISECONDS_IN_MINUTE + } else { + var fullTime = timestamp + time + var fullTimeDate = new Date(fullTime) + + offset = getTimezoneOffsetInMilliseconds(fullTimeDate) + + // Adjust time when it's coming from DST + var fullTimeDateNextDay = new Date(fullTime) + fullTimeDateNextDay.setDate(fullTimeDate.getDate() + 1) + var offsetDiff = + getTimezoneOffsetInMilliseconds(fullTimeDateNextDay) - + getTimezoneOffsetInMilliseconds(fullTimeDate) + if (offsetDiff > 0) { + offset += offsetDiff + } + } + + return new Date(timestamp + time + offset) + } else { + return new Date(argument) + } +} + +function splitDateString (dateString) { + var dateStrings = {} + var array = dateString.split(parseTokenDateTimeDelimeter) + var timeString + + if (parseTokenPlainTime.test(array[0])) { + dateStrings.date = null + timeString = array[0] + } else { + dateStrings.date = array[0] + timeString = array[1] + } + + if (timeString) { + var token = parseTokenTimezone.exec(timeString) + if (token) { + dateStrings.time = timeString.replace(token[1], '') + dateStrings.timezone = token[1] + } else { + dateStrings.time = timeString + } + } + + return dateStrings +} + +function parseYear (dateString, additionalDigits) { + var parseTokenYYY = parseTokensYYY[additionalDigits] + var parseTokenYYYYY = parseTokensYYYYY[additionalDigits] + + var token + + // YYYY or ±YYYYY + token = parseTokenYYYY.exec(dateString) || parseTokenYYYYY.exec(dateString) + if (token) { + var yearString = token[1] + return { + year: parseInt(yearString, 10), + restDateString: dateString.slice(yearString.length) + } + } + + // YY or ±YYY + token = parseTokenYY.exec(dateString) || parseTokenYYY.exec(dateString) + if (token) { + var centuryString = token[1] + return { + year: parseInt(centuryString, 10) * 100, + restDateString: dateString.slice(centuryString.length) + } + } + + // Invalid ISO-formatted year + return { + year: null + } +} + +function parseDate (dateString, year) { + // Invalid ISO-formatted year + if (year === null) { + return null + } + + var token + var date + var month + var week + + // YYYY + if (dateString.length === 0) { + date = new Date(0) + date.setUTCFullYear(year) + return date + } + + // YYYY-MM + token = parseTokenMM.exec(dateString) + if (token) { + date = new Date(0) + month = parseInt(token[1], 10) - 1 + date.setUTCFullYear(year, month) + return date + } + + // YYYY-DDD or YYYYDDD + token = parseTokenDDD.exec(dateString) + if (token) { + date = new Date(0) + var dayOfYear = parseInt(token[1], 10) + date.setUTCFullYear(year, 0, dayOfYear) + return date + } + + // YYYY-MM-DD or YYYYMMDD + token = parseTokenMMDD.exec(dateString) + if (token) { + date = new Date(0) + month = parseInt(token[1], 10) - 1 + var day = parseInt(token[2], 10) + date.setUTCFullYear(year, month, day) + return date + } + + // YYYY-Www or YYYYWww + token = parseTokenWww.exec(dateString) + if (token) { + week = parseInt(token[1], 10) - 1 + return dayOfISOYear(year, week) + } + + // YYYY-Www-D or YYYYWwwD + token = parseTokenWwwD.exec(dateString) + if (token) { + week = parseInt(token[1], 10) - 1 + var dayOfWeek = parseInt(token[2], 10) - 1 + return dayOfISOYear(year, week, dayOfWeek) + } + + // Invalid ISO-formatted date + return null +} + +function parseTime (timeString) { + var token + var hours + var minutes + + // hh + token = parseTokenHH.exec(timeString) + if (token) { + hours = parseFloat(token[1].replace(',', '.')) + return (hours % 24) * MILLISECONDS_IN_HOUR + } + + // hh:mm or hhmm + token = parseTokenHHMM.exec(timeString) + if (token) { + hours = parseInt(token[1], 10) + minutes = parseFloat(token[2].replace(',', '.')) + return (hours % 24) * MILLISECONDS_IN_HOUR + + minutes * MILLISECONDS_IN_MINUTE + } + + // hh:mm:ss or hhmmss + token = parseTokenHHMMSS.exec(timeString) + if (token) { + hours = parseInt(token[1], 10) + minutes = parseInt(token[2], 10) + var seconds = parseFloat(token[3].replace(',', '.')) + return (hours % 24) * MILLISECONDS_IN_HOUR + + minutes * MILLISECONDS_IN_MINUTE + + seconds * 1000 + } + + // Invalid ISO-formatted time + return null +} + +function parseTimezone (timezoneString) { + var token + var absoluteOffset + + // Z + token = parseTokenTimezoneZ.exec(timezoneString) + if (token) { + return 0 + } + + // ±hh + token = parseTokenTimezoneHH.exec(timezoneString) + if (token) { + absoluteOffset = parseInt(token[2], 10) * 60 + return (token[1] === '+') ? -absoluteOffset : absoluteOffset + } + + // ±hh:mm or ±hhmm + token = parseTokenTimezoneHHMM.exec(timezoneString) + if (token) { + absoluteOffset = parseInt(token[2], 10) * 60 + parseInt(token[3], 10) + return (token[1] === '+') ? -absoluteOffset : absoluteOffset + } + + return 0 +} + +function dayOfISOYear (isoYear, week, day) { + week = week || 0 + day = day || 0 + var date = new Date(0) + date.setUTCFullYear(isoYear, 0, 4) + var fourthOfJanuaryDay = date.getUTCDay() || 7 + var diff = week * 7 + day + 1 - fourthOfJanuaryDay + date.setUTCDate(date.getUTCDate() + diff) + return date +} + +module.exports = parse + + +/***/ }), + +/***/ "./node_modules/date-fns/start_of_day/index.js": +/*!*****************************************************!*\ + !*** ./node_modules/date-fns/start_of_day/index.js ***! + \*****************************************************/ +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var parse = __webpack_require__(/*! ../parse/index.js */ "./node_modules/date-fns/parse/index.js") + +/** + * @category Day Helpers + * @summary Return the start of a day for the given date. + * + * @description + * Return the start of a day for the given date. + * The result will be in the local timezone. + * + * @param {Date|String|Number} date - the original date + * @returns {Date} the start of a day + * + * @example + * // The start of a day for 2 September 2014 11:55:00: + * var result = startOfDay(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 02 2014 00:00:00 + */ +function startOfDay (dirtyDate) { + var date = parse(dirtyDate) + date.setHours(0, 0, 0, 0) + return date +} + +module.exports = startOfDay + + +/***/ }), + +/***/ "./node_modules/date-fns/start_of_iso_week/index.js": +/*!**********************************************************!*\ + !*** ./node_modules/date-fns/start_of_iso_week/index.js ***! + \**********************************************************/ +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var startOfWeek = __webpack_require__(/*! ../start_of_week/index.js */ "./node_modules/date-fns/start_of_week/index.js") + +/** + * @category ISO Week Helpers + * @summary Return the start of an ISO week for the given date. + * + * @description + * Return the start of an ISO week for the given date. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|String|Number} date - the original date + * @returns {Date} the start of an ISO week + * + * @example + * // The start of an ISO week for 2 September 2014 11:55:00: + * var result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Mon Sep 01 2014 00:00:00 + */ +function startOfISOWeek (dirtyDate) { + return startOfWeek(dirtyDate, {weekStartsOn: 1}) +} + +module.exports = startOfISOWeek + + +/***/ }), + +/***/ "./node_modules/date-fns/start_of_iso_year/index.js": +/*!**********************************************************!*\ + !*** ./node_modules/date-fns/start_of_iso_year/index.js ***! + \**********************************************************/ +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var getISOYear = __webpack_require__(/*! ../get_iso_year/index.js */ "./node_modules/date-fns/get_iso_year/index.js") +var startOfISOWeek = __webpack_require__(/*! ../start_of_iso_week/index.js */ "./node_modules/date-fns/start_of_iso_week/index.js") + +/** + * @category ISO Week-Numbering Year Helpers + * @summary Return the start of an ISO week-numbering year for the given date. + * + * @description + * Return the start of an ISO week-numbering year, + * which always starts 3 days before the year's first Thursday. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|String|Number} date - the original date + * @returns {Date} the start of an ISO year + * + * @example + * // The start of an ISO week-numbering year for 2 July 2005: + * var result = startOfISOYear(new Date(2005, 6, 2)) + * //=> Mon Jan 03 2005 00:00:00 + */ +function startOfISOYear (dirtyDate) { + var year = getISOYear(dirtyDate) + var fourthOfJanuary = new Date(0) + fourthOfJanuary.setFullYear(year, 0, 4) + fourthOfJanuary.setHours(0, 0, 0, 0) + var date = startOfISOWeek(fourthOfJanuary) + return date +} + +module.exports = startOfISOYear + + +/***/ }), + +/***/ "./node_modules/date-fns/start_of_month/index.js": +/*!*******************************************************!*\ + !*** ./node_modules/date-fns/start_of_month/index.js ***! + \*******************************************************/ +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var parse = __webpack_require__(/*! ../parse/index.js */ "./node_modules/date-fns/parse/index.js") + +/** + * @category Month Helpers + * @summary Return the start of a month for the given date. + * + * @description + * Return the start of a month for the given date. + * The result will be in the local timezone. + * + * @param {Date|String|Number} date - the original date + * @returns {Date} the start of a month + * + * @example + * // The start of a month for 2 September 2014 11:55:00: + * var result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Mon Sep 01 2014 00:00:00 + */ +function startOfMonth (dirtyDate) { + var date = parse(dirtyDate) + date.setDate(1) + date.setHours(0, 0, 0, 0) + return date +} + +module.exports = startOfMonth + + +/***/ }), + +/***/ "./node_modules/date-fns/start_of_week/index.js": +/*!******************************************************!*\ + !*** ./node_modules/date-fns/start_of_week/index.js ***! + \******************************************************/ +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var parse = __webpack_require__(/*! ../parse/index.js */ "./node_modules/date-fns/parse/index.js") + +/** + * @category Week Helpers + * @summary Return the start of a week for the given date. + * + * @description + * Return the start of a week for the given date. + * The result will be in the local timezone. + * + * @param {Date|String|Number} date - the original date + * @param {Object} [options] - the object with options + * @param {Number} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @returns {Date} the start of a week + * + * @example + * // The start of a week for 2 September 2014 11:55:00: + * var result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sun Aug 31 2014 00:00:00 + * + * @example + * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: + * var result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), {weekStartsOn: 1}) + * //=> Mon Sep 01 2014 00:00:00 + */ +function startOfWeek (dirtyDate, dirtyOptions) { + var weekStartsOn = dirtyOptions ? (Number(dirtyOptions.weekStartsOn) || 0) : 0 + + var date = parse(dirtyDate) + var day = date.getDay() + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn + + date.setDate(date.getDate() - diff) + date.setHours(0, 0, 0, 0) + return date +} + +module.exports = startOfWeek + + +/***/ }), + +/***/ "./node_modules/date-fns/start_of_year/index.js": +/*!******************************************************!*\ + !*** ./node_modules/date-fns/start_of_year/index.js ***! + \******************************************************/ +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var parse = __webpack_require__(/*! ../parse/index.js */ "./node_modules/date-fns/parse/index.js") + +/** + * @category Year Helpers + * @summary Return the start of a year for the given date. + * + * @description + * Return the start of a year for the given date. + * The result will be in the local timezone. + * + * @param {Date|String|Number} date - the original date + * @returns {Date} the start of a year + * + * @example + * // The start of a year for 2 September 2014 11:55:00: + * var result = startOfYear(new Date(2014, 8, 2, 11, 55, 00)) + * //=> Wed Jan 01 2014 00:00:00 + */ +function startOfYear (dirtyDate) { + var cleanDate = parse(dirtyDate) + var date = new Date(0) + date.setFullYear(cleanDate.getFullYear(), 0, 1) + date.setHours(0, 0, 0, 0) + return date +} + +module.exports = startOfYear + + /***/ }), /***/ "./node_modules/jquery/dist/jquery.js": @@ -55039,6 +56942,770 @@ process.chdir = function (dir) { process.umask = function() { return 0; }; +/***/ }), + +/***/ "./node_modules/regenerator-runtime/runtime.js": +/*!*****************************************************!*\ + !*** ./node_modules/regenerator-runtime/runtime.js ***! + \*****************************************************/ +/***/ ((module) => { + +/** + * Copyright (c) 2014-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +var runtime = (function (exports) { + "use strict"; + + var Op = Object.prototype; + var hasOwn = Op.hasOwnProperty; + var undefined; // More compressible than void 0. + var $Symbol = typeof Symbol === "function" ? Symbol : {}; + var iteratorSymbol = $Symbol.iterator || "@@iterator"; + var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; + var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; + + function define(obj, key, value) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + return obj[key]; + } + try { + // IE 8 has a broken Object.defineProperty that only works on DOM objects. + define({}, ""); + } catch (err) { + define = function(obj, key, value) { + return obj[key] = value; + }; + } + + function wrap(innerFn, outerFn, self, tryLocsList) { + // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. + var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; + var generator = Object.create(protoGenerator.prototype); + var context = new Context(tryLocsList || []); + + // The ._invoke method unifies the implementations of the .next, + // .throw, and .return methods. + generator._invoke = makeInvokeMethod(innerFn, self, context); + + return generator; + } + exports.wrap = wrap; + + // Try/catch helper to minimize deoptimizations. Returns a completion + // record like context.tryEntries[i].completion. This interface could + // have been (and was previously) designed to take a closure to be + // invoked without arguments, but in all the cases we care about we + // already have an existing method we want to call, so there's no need + // to create a new function object. We can even get away with assuming + // the method takes exactly one argument, since that happens to be true + // in every case, so we don't have to touch the arguments object. The + // only additional allocation required is the completion record, which + // has a stable shape and so hopefully should be cheap to allocate. + function tryCatch(fn, obj, arg) { + try { + return { type: "normal", arg: fn.call(obj, arg) }; + } catch (err) { + return { type: "throw", arg: err }; + } + } + + var GenStateSuspendedStart = "suspendedStart"; + var GenStateSuspendedYield = "suspendedYield"; + var GenStateExecuting = "executing"; + var GenStateCompleted = "completed"; + + // Returning this object from the innerFn has the same effect as + // breaking out of the dispatch switch statement. + var ContinueSentinel = {}; + + // Dummy constructor functions that we use as the .constructor and + // .constructor.prototype properties for functions that return Generator + // objects. For full spec compliance, you may wish to configure your + // minifier not to mangle the names of these two functions. + function Generator() {} + function GeneratorFunction() {} + function GeneratorFunctionPrototype() {} + + // This is a polyfill for %IteratorPrototype% for environments that + // don't natively support it. + var IteratorPrototype = {}; + define(IteratorPrototype, iteratorSymbol, function () { + return this; + }); + + var getProto = Object.getPrototypeOf; + var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); + if (NativeIteratorPrototype && + NativeIteratorPrototype !== Op && + hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { + // This environment has a native %IteratorPrototype%; use it instead + // of the polyfill. + IteratorPrototype = NativeIteratorPrototype; + } + + var Gp = GeneratorFunctionPrototype.prototype = + Generator.prototype = Object.create(IteratorPrototype); + GeneratorFunction.prototype = GeneratorFunctionPrototype; + define(Gp, "constructor", GeneratorFunctionPrototype); + define(GeneratorFunctionPrototype, "constructor", GeneratorFunction); + GeneratorFunction.displayName = define( + GeneratorFunctionPrototype, + toStringTagSymbol, + "GeneratorFunction" + ); + + // Helper for defining the .next, .throw, and .return methods of the + // Iterator interface in terms of a single ._invoke method. + function defineIteratorMethods(prototype) { + ["next", "throw", "return"].forEach(function(method) { + define(prototype, method, function(arg) { + return this._invoke(method, arg); + }); + }); + } + + exports.isGeneratorFunction = function(genFun) { + var ctor = typeof genFun === "function" && genFun.constructor; + return ctor + ? ctor === GeneratorFunction || + // For the native GeneratorFunction constructor, the best we can + // do is to check its .name property. + (ctor.displayName || ctor.name) === "GeneratorFunction" + : false; + }; + + exports.mark = function(genFun) { + if (Object.setPrototypeOf) { + Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); + } else { + genFun.__proto__ = GeneratorFunctionPrototype; + define(genFun, toStringTagSymbol, "GeneratorFunction"); + } + genFun.prototype = Object.create(Gp); + return genFun; + }; + + // Within the body of any async function, `await x` is transformed to + // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test + // `hasOwn.call(value, "__await")` to determine if the yielded value is + // meant to be awaited. + exports.awrap = function(arg) { + return { __await: arg }; + }; + + function AsyncIterator(generator, PromiseImpl) { + function invoke(method, arg, resolve, reject) { + var record = tryCatch(generator[method], generator, arg); + if (record.type === "throw") { + reject(record.arg); + } else { + var result = record.arg; + var value = result.value; + if (value && + typeof value === "object" && + hasOwn.call(value, "__await")) { + return PromiseImpl.resolve(value.__await).then(function(value) { + invoke("next", value, resolve, reject); + }, function(err) { + invoke("throw", err, resolve, reject); + }); + } + + return PromiseImpl.resolve(value).then(function(unwrapped) { + // When a yielded Promise is resolved, its final value becomes + // the .value of the Promise<{value,done}> result for the + // current iteration. + result.value = unwrapped; + resolve(result); + }, function(error) { + // If a rejected Promise was yielded, throw the rejection back + // into the async generator function so it can be handled there. + return invoke("throw", error, resolve, reject); + }); + } + } + + var previousPromise; + + function enqueue(method, arg) { + function callInvokeWithMethodAndArg() { + return new PromiseImpl(function(resolve, reject) { + invoke(method, arg, resolve, reject); + }); + } + + return previousPromise = + // If enqueue has been called before, then we want to wait until + // all previous Promises have been resolved before calling invoke, + // so that results are always delivered in the correct order. If + // enqueue has not been called before, then it is important to + // call invoke immediately, without waiting on a callback to fire, + // so that the async generator function has the opportunity to do + // any necessary setup in a predictable way. This predictability + // is why the Promise constructor synchronously invokes its + // executor callback, and why async functions synchronously + // execute code before the first await. Since we implement simple + // async functions in terms of async generators, it is especially + // important to get this right, even though it requires care. + previousPromise ? previousPromise.then( + callInvokeWithMethodAndArg, + // Avoid propagating failures to Promises returned by later + // invocations of the iterator. + callInvokeWithMethodAndArg + ) : callInvokeWithMethodAndArg(); + } + + // Define the unified helper method that is used to implement .next, + // .throw, and .return (see defineIteratorMethods). + this._invoke = enqueue; + } + + defineIteratorMethods(AsyncIterator.prototype); + define(AsyncIterator.prototype, asyncIteratorSymbol, function () { + return this; + }); + exports.AsyncIterator = AsyncIterator; + + // Note that simple async functions are implemented on top of + // AsyncIterator objects; they just return a Promise for the value of + // the final result produced by the iterator. + exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) { + if (PromiseImpl === void 0) PromiseImpl = Promise; + + var iter = new AsyncIterator( + wrap(innerFn, outerFn, self, tryLocsList), + PromiseImpl + ); + + return exports.isGeneratorFunction(outerFn) + ? iter // If outerFn is a generator, return the full iterator. + : iter.next().then(function(result) { + return result.done ? result.value : iter.next(); + }); + }; + + function makeInvokeMethod(innerFn, self, context) { + var state = GenStateSuspendedStart; + + return function invoke(method, arg) { + if (state === GenStateExecuting) { + throw new Error("Generator is already running"); + } + + if (state === GenStateCompleted) { + if (method === "throw") { + throw arg; + } + + // Be forgiving, per 25.3.3.3.3 of the spec: + // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume + return doneResult(); + } + + context.method = method; + context.arg = arg; + + while (true) { + var delegate = context.delegate; + if (delegate) { + var delegateResult = maybeInvokeDelegate(delegate, context); + if (delegateResult) { + if (delegateResult === ContinueSentinel) continue; + return delegateResult; + } + } + + if (context.method === "next") { + // Setting context._sent for legacy support of Babel's + // function.sent implementation. + context.sent = context._sent = context.arg; + + } else if (context.method === "throw") { + if (state === GenStateSuspendedStart) { + state = GenStateCompleted; + throw context.arg; + } + + context.dispatchException(context.arg); + + } else if (context.method === "return") { + context.abrupt("return", context.arg); + } + + state = GenStateExecuting; + + var record = tryCatch(innerFn, self, context); + if (record.type === "normal") { + // If an exception is thrown from innerFn, we leave state === + // GenStateExecuting and loop back for another invocation. + state = context.done + ? GenStateCompleted + : GenStateSuspendedYield; + + if (record.arg === ContinueSentinel) { + continue; + } + + return { + value: record.arg, + done: context.done + }; + + } else if (record.type === "throw") { + state = GenStateCompleted; + // Dispatch the exception by looping back around to the + // context.dispatchException(context.arg) call above. + context.method = "throw"; + context.arg = record.arg; + } + } + }; + } + + // Call delegate.iterator[context.method](context.arg) and handle the + // result, either by returning a { value, done } result from the + // delegate iterator, or by modifying context.method and context.arg, + // setting context.delegate to null, and returning the ContinueSentinel. + function maybeInvokeDelegate(delegate, context) { + var method = delegate.iterator[context.method]; + if (method === undefined) { + // A .throw or .return when the delegate iterator has no .throw + // method always terminates the yield* loop. + context.delegate = null; + + if (context.method === "throw") { + // Note: ["return"] must be used for ES3 parsing compatibility. + if (delegate.iterator["return"]) { + // If the delegate iterator has a return method, give it a + // chance to clean up. + context.method = "return"; + context.arg = undefined; + maybeInvokeDelegate(delegate, context); + + if (context.method === "throw") { + // If maybeInvokeDelegate(context) changed context.method from + // "return" to "throw", let that override the TypeError below. + return ContinueSentinel; + } + } + + context.method = "throw"; + context.arg = new TypeError( + "The iterator does not provide a 'throw' method"); + } + + return ContinueSentinel; + } + + var record = tryCatch(method, delegate.iterator, context.arg); + + if (record.type === "throw") { + context.method = "throw"; + context.arg = record.arg; + context.delegate = null; + return ContinueSentinel; + } + + var info = record.arg; + + if (! info) { + context.method = "throw"; + context.arg = new TypeError("iterator result is not an object"); + context.delegate = null; + return ContinueSentinel; + } + + if (info.done) { + // Assign the result of the finished delegate to the temporary + // variable specified by delegate.resultName (see delegateYield). + context[delegate.resultName] = info.value; + + // Resume execution at the desired location (see delegateYield). + context.next = delegate.nextLoc; + + // If context.method was "throw" but the delegate handled the + // exception, let the outer generator proceed normally. If + // context.method was "next", forget context.arg since it has been + // "consumed" by the delegate iterator. If context.method was + // "return", allow the original .return call to continue in the + // outer generator. + if (context.method !== "return") { + context.method = "next"; + context.arg = undefined; + } + + } else { + // Re-yield the result returned by the delegate method. + return info; + } + + // The delegate iterator is finished, so forget it and continue with + // the outer generator. + context.delegate = null; + return ContinueSentinel; + } + + // Define Generator.prototype.{next,throw,return} in terms of the + // unified ._invoke helper method. + defineIteratorMethods(Gp); + + define(Gp, toStringTagSymbol, "Generator"); + + // A Generator should always return itself as the iterator object when the + // @@iterator function is called on it. Some browsers' implementations of the + // iterator prototype chain incorrectly implement this, causing the Generator + // object to not be returned from this call. This ensures that doesn't happen. + // See https://github.com/facebook/regenerator/issues/274 for more details. + define(Gp, iteratorSymbol, function() { + return this; + }); + + define(Gp, "toString", function() { + return "[object Generator]"; + }); + + function pushTryEntry(locs) { + var entry = { tryLoc: locs[0] }; + + if (1 in locs) { + entry.catchLoc = locs[1]; + } + + if (2 in locs) { + entry.finallyLoc = locs[2]; + entry.afterLoc = locs[3]; + } + + this.tryEntries.push(entry); + } + + function resetTryEntry(entry) { + var record = entry.completion || {}; + record.type = "normal"; + delete record.arg; + entry.completion = record; + } + + function Context(tryLocsList) { + // The root entry object (effectively a try statement without a catch + // or a finally block) gives us a place to store values thrown from + // locations where there is no enclosing try statement. + this.tryEntries = [{ tryLoc: "root" }]; + tryLocsList.forEach(pushTryEntry, this); + this.reset(true); + } + + exports.keys = function(object) { + var keys = []; + for (var key in object) { + keys.push(key); + } + keys.reverse(); + + // Rather than returning an object with a next method, we keep + // things simple and return the next function itself. + return function next() { + while (keys.length) { + var key = keys.pop(); + if (key in object) { + next.value = key; + next.done = false; + return next; + } + } + + // To avoid creating an additional object, we just hang the .value + // and .done properties off the next function object itself. This + // also ensures that the minifier will not anonymize the function. + next.done = true; + return next; + }; + }; + + function values(iterable) { + if (iterable) { + var iteratorMethod = iterable[iteratorSymbol]; + if (iteratorMethod) { + return iteratorMethod.call(iterable); + } + + if (typeof iterable.next === "function") { + return iterable; + } + + if (!isNaN(iterable.length)) { + var i = -1, next = function next() { + while (++i < iterable.length) { + if (hasOwn.call(iterable, i)) { + next.value = iterable[i]; + next.done = false; + return next; + } + } + + next.value = undefined; + next.done = true; + + return next; + }; + + return next.next = next; + } + } + + // Return an iterator with no values. + return { next: doneResult }; + } + exports.values = values; + + function doneResult() { + return { value: undefined, done: true }; + } + + Context.prototype = { + constructor: Context, + + reset: function(skipTempReset) { + this.prev = 0; + this.next = 0; + // Resetting context._sent for legacy support of Babel's + // function.sent implementation. + this.sent = this._sent = undefined; + this.done = false; + this.delegate = null; + + this.method = "next"; + this.arg = undefined; + + this.tryEntries.forEach(resetTryEntry); + + if (!skipTempReset) { + for (var name in this) { + // Not sure about the optimal order of these conditions: + if (name.charAt(0) === "t" && + hasOwn.call(this, name) && + !isNaN(+name.slice(1))) { + this[name] = undefined; + } + } + } + }, + + stop: function() { + this.done = true; + + var rootEntry = this.tryEntries[0]; + var rootRecord = rootEntry.completion; + if (rootRecord.type === "throw") { + throw rootRecord.arg; + } + + return this.rval; + }, + + dispatchException: function(exception) { + if (this.done) { + throw exception; + } + + var context = this; + function handle(loc, caught) { + record.type = "throw"; + record.arg = exception; + context.next = loc; + + if (caught) { + // If the dispatched exception was caught by a catch block, + // then let that catch block handle the exception normally. + context.method = "next"; + context.arg = undefined; + } + + return !! caught; + } + + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + var record = entry.completion; + + if (entry.tryLoc === "root") { + // Exception thrown outside of any try block that could handle + // it, so set the completion value of the entire function to + // throw the exception. + return handle("end"); + } + + if (entry.tryLoc <= this.prev) { + var hasCatch = hasOwn.call(entry, "catchLoc"); + var hasFinally = hasOwn.call(entry, "finallyLoc"); + + if (hasCatch && hasFinally) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } else if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); + } + + } else if (hasCatch) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } + + } else if (hasFinally) { + if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); + } + + } else { + throw new Error("try statement without catch or finally"); + } + } + } + }, + + abrupt: function(type, arg) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc <= this.prev && + hasOwn.call(entry, "finallyLoc") && + this.prev < entry.finallyLoc) { + var finallyEntry = entry; + break; + } + } + + if (finallyEntry && + (type === "break" || + type === "continue") && + finallyEntry.tryLoc <= arg && + arg <= finallyEntry.finallyLoc) { + // Ignore the finally entry if control is not jumping to a + // location outside the try/catch block. + finallyEntry = null; + } + + var record = finallyEntry ? finallyEntry.completion : {}; + record.type = type; + record.arg = arg; + + if (finallyEntry) { + this.method = "next"; + this.next = finallyEntry.finallyLoc; + return ContinueSentinel; + } + + return this.complete(record); + }, + + complete: function(record, afterLoc) { + if (record.type === "throw") { + throw record.arg; + } + + if (record.type === "break" || + record.type === "continue") { + this.next = record.arg; + } else if (record.type === "return") { + this.rval = this.arg = record.arg; + this.method = "return"; + this.next = "end"; + } else if (record.type === "normal" && afterLoc) { + this.next = afterLoc; + } + + return ContinueSentinel; + }, + + finish: function(finallyLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.finallyLoc === finallyLoc) { + this.complete(entry.completion, entry.afterLoc); + resetTryEntry(entry); + return ContinueSentinel; + } + } + }, + + "catch": function(tryLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc === tryLoc) { + var record = entry.completion; + if (record.type === "throw") { + var thrown = record.arg; + resetTryEntry(entry); + } + return thrown; + } + } + + // The context.catch method must only be called with a location + // argument that corresponds to a known catch block. + throw new Error("illegal catch attempt"); + }, + + delegateYield: function(iterable, resultName, nextLoc) { + this.delegate = { + iterator: values(iterable), + resultName: resultName, + nextLoc: nextLoc + }; + + if (this.method === "next") { + // Deliberately forget the last sent value so that we don't + // accidentally pass it on to the delegate. + this.arg = undefined; + } + + return ContinueSentinel; + } + }; + + // Regardless of whether this script is executing as a CommonJS module + // or not, return the runtime object so that we can declare the variable + // regeneratorRuntime in the outer scope, which allows this module to be + // injected easily by `bin/regenerator --include-runtime script.js`. + return exports; + +}( + // If this script is executing as a CommonJS module, use module.exports + // as the regeneratorRuntime namespace. Otherwise create a new empty + // object. Either way, the resulting object will be used to initialize + // the regeneratorRuntime variable at the top of this file. + true ? module.exports : 0 +)); + +try { + regeneratorRuntime = runtime; +} catch (accidentalStrictMode) { + // This module should not be running in strict mode, so the above + // assignment should always work unless something is misconfigured. Just + // in case runtime.js accidentally runs in strict mode, in modern engines + // we can explicitly access globalThis. In older engines we can escape + // strict mode using a global Function call. This could conceivably fail + // if a Content Security Policy forbids using Function, but in that case + // the proper solution is to fix the accidental strict mode problem. If + // you've misconfigured your bundler to force strict mode and applied a + // CSP to forbid Function, and you're not willing to fix either of those + // problems, please detail your unique predicament in a GitHub issue. + if (typeof globalThis === "object") { + globalThis.regeneratorRuntime = runtime; + } else { + Function("r", "regeneratorRuntime = r")(runtime); + } +} + + /***/ }), /***/ "./node_modules/vue-toastification/dist/index.css": @@ -55071,6 +57738,36 @@ var update = _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMP /***/ }), +/***/ "./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-9[0].rules[0].use[1]!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9[0].rules[0].use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./node_modules/vuejs-datetimepicker/src/datetime_picker.vue?vue&type=style&index=0&id=4bd11526&scoped=true&lang=css&": +/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-9[0].rules[0].use[1]!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9[0].rules[0].use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./node_modules/vuejs-datetimepicker/src/datetime_picker.vue?vue&type=style&index=0&id=4bd11526&scoped=true&lang=css& ***! + \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/***/ ((__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 _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"); +/* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _css_loader_dist_cjs_js_clonedRuleSet_9_0_rules_0_use_1_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_dist_cjs_js_clonedRuleSet_9_0_rules_0_use_2_vue_loader_lib_index_js_vue_loader_options_datetime_picker_vue_vue_type_style_index_0_id_4bd11526_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../../css-loader/dist/cjs.js??clonedRuleSet-9[0].rules[0].use[1]!../../vue-loader/lib/loaders/stylePostLoader.js!../../postcss-loader/dist/cjs.js??clonedRuleSet-9[0].rules[0].use[2]!../../vue-loader/lib/index.js??vue-loader-options!./datetime_picker.vue?vue&type=style&index=0&id=4bd11526&scoped=true&lang=css& */ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-9[0].rules[0].use[1]!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9[0].rules[0].use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./node_modules/vuejs-datetimepicker/src/datetime_picker.vue?vue&type=style&index=0&id=4bd11526&scoped=true&lang=css&"); + + + +var options = {}; + +options.insert = "head"; +options.singleton = false; + +var update = _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_css_loader_dist_cjs_js_clonedRuleSet_9_0_rules_0_use_1_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_dist_cjs_js_clonedRuleSet_9_0_rules_0_use_2_vue_loader_lib_index_js_vue_loader_options_datetime_picker_vue_vue_type_style_index_0_id_4bd11526_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_1__["default"], options); + + + +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_css_loader_dist_cjs_js_clonedRuleSet_9_0_rules_0_use_1_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_dist_cjs_js_clonedRuleSet_9_0_rules_0_use_2_vue_loader_lib_index_js_vue_loader_options_datetime_picker_vue_vue_type_style_index_0_id_4bd11526_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_1__["default"].locals || {}); + +/***/ }), + /***/ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js": /*!****************************************************************************!*\ !*** ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***! @@ -55636,6 +58333,606 @@ __webpack_require__.r(__webpack_exports__); /* module decorator */ module = __webpack_require__.hmd(module); function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function plugin(e,n){if(!plugin.installed){var o=isAxiosLike(n)?migrateToMultipleInstances(n):n;if(isValidConfig(o)){plugin.installed=!0;var i=getVueVersion(e);if(i){var t=i<3?registerOnVue2:registerOnVue3;Object.keys(o).forEach((function(n){t(e,n,o[n])}))}else console.error("[vue-axios] unknown Vue version")}else console.error("[vue-axios] configuration is invalid, expected options are either or { : }")}}function registerOnVue2(e,n,o){Object.defineProperty(e.prototype,n,{get:function(){return o}}),e[n]=o}function registerOnVue3(e,n,o){e.config.globalProperties[n]=o,e[n]=o}function isAxiosLike(e){return e&&"function"==typeof e.get&&"function"==typeof e.post}function migrateToMultipleInstances(e){return{axios:e,$http:e}}function isValidConfig(e){return"object"===_typeof(e)&&Object.keys(e).every((function(n){return isAxiosLike(e[n])}))}function getVueVersion(e){return e&&e.version&&Number(e.version.split(".")[0])}"object"==("undefined"==typeof exports?"undefined":_typeof(exports))?module.exports=plugin:"function"==typeof define&&__webpack_require__.amdO?define([],(function(){return plugin})):window.Vue&&window.axios&&window.Vue.use&&Vue.use(plugin,window.axios); +/***/ }), + +/***/ "./node_modules/vuejs-datetimepicker/src/datetime_picker.vue": +/*!*******************************************************************!*\ + !*** ./node_modules/vuejs-datetimepicker/src/datetime_picker.vue ***! + \*******************************************************************/ +/***/ ((__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 _datetime_picker_vue_vue_type_template_id_4bd11526_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./datetime_picker.vue?vue&type=template&id=4bd11526&scoped=true& */ "./node_modules/vuejs-datetimepicker/src/datetime_picker.vue?vue&type=template&id=4bd11526&scoped=true&"); +/* harmony import */ var _datetime_picker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./datetime_picker.vue?vue&type=script&lang=js& */ "./node_modules/vuejs-datetimepicker/src/datetime_picker.vue?vue&type=script&lang=js&"); +/* harmony import */ var _datetime_picker_vue_vue_type_style_index_0_id_4bd11526_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./datetime_picker.vue?vue&type=style&index=0&id=4bd11526&scoped=true&lang=css& */ "./node_modules/vuejs-datetimepicker/src/datetime_picker.vue?vue&type=style&index=0&id=4bd11526&scoped=true&lang=css&"); +/* harmony import */ var _vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); + + + +; + + +/* normalize component */ + +var component = (0,_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])( + _datetime_picker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"], + _datetime_picker_vue_vue_type_template_id_4bd11526_scoped_true___WEBPACK_IMPORTED_MODULE_0__.render, + _datetime_picker_vue_vue_type_template_id_4bd11526_scoped_true___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns, + false, + null, + "4bd11526", + null + +) + +/* hot reload */ +if (false) { var api; } +component.options.__file = "node_modules/vuejs-datetimepicker/src/datetime_picker.vue" +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports); + +/***/ }), + +/***/ "./node_modules/vue-loader/lib/index.js??vue-loader-options!./node_modules/vuejs-datetimepicker/src/datetime_picker.vue?vue&type=script&lang=js&": +/*!*******************************************************************************************************************************************************!*\ + !*** ./node_modules/vue-loader/lib/index.js??vue-loader-options!./node_modules/vuejs-datetimepicker/src/datetime_picker.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 import */ var date_fns_start_of_month__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! date-fns/start_of_month */ "./node_modules/date-fns/start_of_month/index.js"); +/* harmony import */ var date_fns_start_of_month__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(date_fns_start_of_month__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var date_fns_end_of_month__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! date-fns/end_of_month */ "./node_modules/date-fns/end_of_month/index.js"); +/* harmony import */ var date_fns_end_of_month__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(date_fns_end_of_month__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var date_fns_each_day__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! date-fns/each_day */ "./node_modules/date-fns/each_day/index.js"); +/* harmony import */ var date_fns_each_day__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(date_fns_each_day__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var date_fns_get_day__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! date-fns/get_day */ "./node_modules/date-fns/get_day/index.js"); +/* harmony import */ var date_fns_get_day__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(date_fns_get_day__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var date_fns_format__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! date-fns/format */ "./node_modules/date-fns/format/index.js"); +/* harmony import */ var date_fns_format__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(date_fns_format__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var date_fns_start_of_day__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! date-fns/start_of_day */ "./node_modules/date-fns/start_of_day/index.js"); +/* harmony import */ var date_fns_start_of_day__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(date_fns_start_of_day__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var date_fns_is_equal__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! date-fns/is_equal */ "./node_modules/date-fns/is_equal/index.js"); +/* harmony import */ var date_fns_is_equal__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(date_fns_is_equal__WEBPACK_IMPORTED_MODULE_6__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + + + + + + + +const days = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa']; +const AM = 'AM' +const PM = 'PM' +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ + name: 'datetime-picker', + props: { + format: { + type: String, + default: 'YYYY-MM-DD h:i:s', + }, + name: { + type: String + }, + width: { + type: String + }, + value: { + type: String, + default: "" + }, + required: { + type: Boolean, + default: false + }, + readonly: { + type: Boolean, + default: false + }, + firstDayOfWeek: { + default: 0, + validator: function(value) { + try { + const val = parseInt(value, 10) + return val >= 0 && val <= 1 + } catch (e) { + console.warn(e.message) + return false + } + }, + message: 'Only 0 (Sunday) and 1 (Monday) are supported.' + }, + }, + data () { + return { + date: this.value, + hideCal: true, + activePort: null, + timeStamp: new Date(), + months: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], + days: [], + monthIndex: 0, + hourIndex: 0, + minuteIndex: 0, + year: 2017, + portsHolder: [], + minute: '00', + hour: '01', + day: 1, + minuteSelectorVisible: false, + hourSelectorVisible: false, + period: AM, + periodStyle: 12 + } + }, + methods: { + leftMonth () { + let index = this.months.indexOf(this.month) + if (index === 0) { + this.monthIndex = 11 + } else { + this.monthIndex = index - 1 + } + this.updateCalendar() + }, + rightMonth () { + let index = this.months.indexOf(this.month) + if (index === 11) { + this.monthIndex = 0 + } else { + this.monthIndex = index + 1 + } + this.updateCalendar() + }, + rightYear () { + this.year++ + this.updateCalendar() + }, + leftYear () { + this.year-- + this.updateCalendar() + }, + updateActivePortFromWeek (week, weekIndex) { + const currentActive = date_fns_start_of_day__WEBPACK_IMPORTED_MODULE_5___default()(this.timeStamp); + const index = week.findIndex(day => date_fns_is_equal__WEBPACK_IMPORTED_MODULE_6___default()(currentActive, day)); + if (index !== -1) { + this.activePort = weekIndex*7 + index; + } + }, + updateCalendar () { + const date = new Date(this.year, this.monthIndex, 1, 0, 0, 0); + const weeks = []; + let week = null; + let weekDays = new Array(7); + // let index = 0; + this.activePort = null; + date_fns_each_day__WEBPACK_IMPORTED_MODULE_2___default()(date, date_fns_end_of_month__WEBPACK_IMPORTED_MODULE_1___default()(date)).forEach(day => { + const weekday = date_fns_get_day__WEBPACK_IMPORTED_MODULE_3___default()(day); + if (weekday === this.normalizedFirstDayOfWeek) { + if (week) { + weeks.push(week); + // Add those days that were not part of the month to the index + // index += week.filter(d => d === null).length; + this.updateActivePortFromWeek(weekDays, weeks.length - 1); + weekDays = new Array(7); + } + week = new Array(7); + } else if (week === null) { + week = new Array(7); + } + const idx = (weekday - this.normalizedFirstDayOfWeek + 7) % 7 + week[idx] = date_fns_format__WEBPACK_IMPORTED_MODULE_4___default()(day, 'DD'); + weekDays[idx] = day; + }); + if (week && week.some(n => n)) { + weeks.push(week); + this.updateActivePortFromWeek(weekDays, weeks.length - 1); + } + this.weeks = weeks; + }, + setDay (index, port) { + if (port) { + this.activePort = index; + this.day = parseInt(port, 10); + this.timeStamp = new Date(this.year, this.monthIndex, this.day); + } + }, + setMinute (index, closeAfterSet) { + this.minuteIndex = index + this.minute = this.minutes[index] + if (closeAfterSet) { + this.minuteSelectorVisible = false + } + }, + setHour (index, closeAfterSet) { + this.hourIndex = index + this.hour = this.hours[index] + if (closeAfterSet) { + this.hourSelectorVisible = false + } + }, + showHourSelector () { + this.hourSelectorVisible = true + this.minuteSelectorVisible = false + }, + showMinuteSelector () { + this.minuteSelectorVisible = true + this.hourSelectorVisible = false + }, + keyIsDown (event) { + let key = event.which || event.keycode + if (key === 38) { + if (this.minuteSelectorVisible && this.minuteIndex > 0) { + this.setMinute(this.minuteIndex - 1, false) + this.scrollTopMinute() + } else if (this.hourSelectorVisible && this.hourIndex > 0) { + this.setHour(this.hourIndex - 1, false) + this.scrollTopHour() + } + } else if (key === 40) { + if (this.minuteSelectorVisible && this.minuteIndex < this.minutes.length - 1) { + this.setMinute(this.minuteIndex + 1, false) + this.scrollTopMinute() + } else if (this.hourSelectorVisible && this.hourIndex < this.hours.length - 1) { + this.setHour(this.hourIndex + 1, false) + this.scrollTopHour() + } + } else if (key === 13) { + this.minuteSelectorVisible = false + this.hourSelectorVisible = false + } + if (this.minuteSelectorVisible || this.hourSelectorVisible) { + event.preventDefault() + this.minuteSelectorVisible = false + this.hourSelectorVisible = false + } + }, + scrollTopMinute () { + let mHeight = this.$refs.minuteScroller.scrollHeight + let wHeight = this.$refs.minuteScrollerWrapper.clientHeight + let top = mHeight * (this.minuteIndex / (this.minutes.length - 1)) - (wHeight / 2) + this.$refs.minuteScroller.scrollTop = top + }, + scrollTopHour () { + let mHeight = this.$refs.hourScroller.scrollHeight + let wHeight = this.$refs.hourScrollerWrapper.clientHeight + let top = mHeight * (this.hourIndex / (this.hours.length - 1)) - (wHeight / 2) + this.$refs.hourScroller.scrollTop = top + }, + changePeriod () { + this.period = this.period === AM ? PM : AM + }, + calendarClicked (event) { + if (event.target.id !== 'j-hour' && event.target.id !== 'j-minute') { + this.minuteSelectorVisible = false + this.hourSelectorVisible = false + } + event.cancelBubble = true + if (event.stopPropagation) { + event.stopPropagation() + } + }, + documentClicked (event) { + if (event.target.id !== 'tj-datetime-input') { + this.hideCal = true + } + }, + toggleCal () { + this.hideCal = !this.hideCal + }, + setPeriodStyle () { + if (this.dateFormat.indexOf('H') !== -1) { + this.periodStyle = 24; + this.period = null; + } else { + this.periodStyle = 12; + } + }, + setDate () { + let d = null + + this.setPeriodStyle() + + let h = this.hour + '' + + if (this.periodStyle === 12) { + if (h === '12') { + h = this.period === AM ? '00' : '12' + } else if (this.period === PM && parseInt(h) < 12) { + h = parseInt(h) + 12 + h = '' + h + } else if (this.period === AM && parseInt(h) > 12) { + h = parseInt(h) - 12 + h = '' + h + } + } + d = this.dateFormat + d = d.replace('YYYY', this.year) + d = d.replace('DD', this.day < 10 ? '0' + this.day : this.day) + let m = this.monthIndex + 1 + d = d.replace('MM', m < 10 ? '0' + m : m) + this.minute += '' + d = d.replace(this.periodStyle === 24 ? 'H' : 'h', h.length < 2 ? '0' + h : '' + h ) + d = d.replace('i', this.minute.length < 2 ? '0' + this.minute : '' + this.minute) + d = d.replace('s', '00') + this.$emit('input', d) + this.date = d + this.hideCal = true + }, + /** + `*Creates a date object from a given date string + */ + makeDateObject (val) { + // handle support for eu date format + let dateAndTime = val.split(' ') + let arr = [] + if (this.format.indexOf('-') !== -1) { + arr = dateAndTime[0].split('-') + } else { + arr = dateAndTime[0].split('/') + } + let year = 0 + let month = 0 + let day = 0 + if (this.format.indexOf('DD/MM/YYYY') === 0 || this.format.indexOf('DD-MM-YYYY') === 0) { + year = arr[2] + month = arr[1] + day = arr[0] + } else if (this.format.indexOf('YYYY/MM/DD') === 0 || this.format.indexOf('YYYY-MM-DD') === 0) { + year = arr[0] + month = arr[1] + day = arr[2] + } else { + year = arr[2] + month = arr[0] + day = arr[1] + } + + let date = new Date(); + if(this.hideDate){ + // time only + let splitTime = dateAndTime[0].split(':') + // handle date format without seconds + let secs = splitTime.length > 2 ? parseInt(splitTime[2]) : 0 + date.setHours(parseInt(splitTime[0]), parseInt(splitTime[1]), secs, 0) + } else if (this.hideTime) { + // date only + date = new Date(parseInt(year), parseInt(month)-1, parseInt(day)) + } else { + // we have both date and time + let splitTime = dateAndTime[1].split(':') + // handle date format without seconds + let secs = splitTime.length > 2 ? parseInt(splitTime[2]) : 0 + date = new Date(parseInt(year), parseInt(month)-1, parseInt(day), parseInt(splitTime[0]), parseInt(splitTime[1]), secs) + } + + return date + }, + clearDate(){ + this.date = '' + this.$emit('input', '') + this.toggleCal () + }, + }, + created () { + if (this.value) { + try { + this.timeStamp = this.makeDateObject(this.value) + + // set #period (am or pm) based on date hour + if (this.timeStamp.getHours() >= 12) { + this.period = PM + } else { + this.period = AM + } + } catch (e) { + this.timeStamp = new Date() + console.log(e); + } + } + + this.year = this.timeStamp.getFullYear() + this.monthIndex = this.timeStamp.getMonth() + this.day = this.timeStamp.getDate() + this.hour = this.timeStamp.getHours() + this.hour = this.hour < 10 ? '0' + this.hour : '' + this.hour + this.minute = this.timeStamp.getMinutes() + this.minute = this.minute < 10 ? '0' + this.minute : '' + this.minute + this.updateCalendar() + days.forEach((day, idx) => { + this.days[(idx - this.normalizedFirstDayOfWeek + 7) % 7] = day; + }); + document.addEventListener('keydown', this.keyIsDown) + document.addEventListener('click', this.documentClicked) + // this.setDate() + this.setPeriodStyle() + }, + watch: { + value (newVal, oldVal) { + if (newVal) { + this.value = newVal; + try { + this.timeStamp = this.makeDateObject(this.value) + } catch (e) { + console.warn(e.message +'. Current date is being used.') + this.timeStamp = new Date() + } + this.year = this.timeStamp.getFullYear() + this.monthIndex = this.timeStamp.getMonth() + this.day = this.timeStamp.getDate() + this.hour = this.timeStamp.getHours() + this.hour = this.hour < 10 ? '0' + this.hour : '' + this.hour + this.minute = this.timeStamp.getMinutes() + this.minute = this.minute < 10 ? '0' + this.minute : '' + this.minute + this.updateCalendar() + this.setDate() + } + + } + }, + destroyed: function () { + document.removeEventListener('keydown', this.keyIsDown) + document.removeEventListener('click', this.documentClicked) + }, + computed: { + normalizedFirstDayOfWeek: function() { + return parseInt(this.firstDayOfWeek, 10); + }, + ports: { + get: function () { + let p = [] + if (this.portsHolder.length === 0) { + for (let i = 0; i < 42; i++) { + p.push('') + } + } else { + p = this.portsHolder + } + return p + }, + set: function (newValue) { + this.portsHolder = newValue + } + }, + month () { + return this.months[this.monthIndex] + }, + dateTime () { + return this.timeStamp.getFullYear() + '-' + (this.timeStamp.getMonth() + 1) + '-' + this.timeStamp.getUTCDay() + }, + minutes () { + let arr = [] + for (let i = 0; i < 60; i++) { + i < 10 ? arr.push('0' + i) : arr.push('' + i) + } + return arr + }, + hours () { + let arr = [] + if (this.periodStyle === 24) { + for (let i = 0; i < this.periodStyle; i++) { + i < 10 ? arr.push('0' + i) : arr.push('' + i) + } + } else { + for (let i = 1; i <= this.periodStyle; i++) { + i < 10 ? arr.push('0' + i) : arr.push('' + i) + } + } + return arr + }, + dateFormat () { + let f = 'YYYY-MM-DD h:i:s' + let allowedFormats = [ + 'YYYY-MM-DD h:i:s', 'DD-MM-YYYY h:i:s', 'MM-DD-YYYY h:i:s', + 'YYYY-MM-DD h:i', 'DD-MM-YYYY h:i', 'MM-DD-YYYY h:i', + 'YYYY-MM-DD H:i:s', 'DD-MM-YYYY H:i:s', 'MM-DD-YYYY H:i:s', + 'YYYY-MM-DD H:i', 'DD-MM-YYYY H:i', 'MM-DD-YYYY H:i', + 'YYYY-MM-DD', 'DD-MM-YYYY', 'MM-DD-YYYY', + 'YYYY/MM/DD', 'DD/MM/YYYY', 'MM/DD/YYYY', + 'h:i:s', 'H:i:s', 'h:i', 'H:i', + 'YYYY/MM/DD h:i:s', 'DD/MM/YYYY h:i:s', 'MM/DD/YYYY h:i:s', + 'YYYY/MM/DD h:i', 'DD/MM/YYYY h:i', 'MM/DD/YYYY h:i', + 'YYYY/MM/DD H:i:s', 'DD/MM/YYYY H:i:s', 'MM/DD/YYYY H:i:s', + 'YYYY/MM/DD H:i', 'DD/MM/YYYY H:i', 'MM/DD/YYYY H:i' + ] + if (this.format) { + f = this.format + } + if (allowedFormats.indexOf(f) < 0) { + console.warn('Invalid date format supplied. Current default date format is being used.') + // return default date format if date format is invalid + return 'YYYY-MM-DD h:i:s' + } else { + return f + } + }, + hideTime () { + return this.dateFormat.indexOf('h:i:s') === -1 + && this.dateFormat.indexOf('H:i:s') === -1 + && this.dateFormat.indexOf('h:i') === -1 + && this.dateFormat.indexOf('H:i') === -1 + }, + hideDate () { + return this.dateFormat === 'h:i:s' || this.dateFormat === 'H:i:s' + || this.dateFormat === 'h:i' || this.dateFormat === 'H:i' + } + } +}); + + /***/ }), /***/ "./resources/js/Akaun/Ansuran.vue": @@ -56535,6 +59832,45 @@ component.options.__file = "resources/js/components/util/Modal.vue" /***/ }), +/***/ "./resources/js/components/util/ModalTransaction.vue": +/*!***********************************************************!*\ + !*** ./resources/js/components/util/ModalTransaction.vue ***! + \***********************************************************/ +/***/ ((__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 _ModalTransaction_vue_vue_type_template_id_acc0677a___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ModalTransaction.vue?vue&type=template&id=acc0677a& */ "./resources/js/components/util/ModalTransaction.vue?vue&type=template&id=acc0677a&"); +/* harmony import */ var _ModalTransaction_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ModalTransaction.vue?vue&type=script&lang=js& */ "./resources/js/components/util/ModalTransaction.vue?vue&type=script&lang=js&"); +/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); + + + + + +/* normalize component */ +; +var component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])( + _ModalTransaction_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"], + _ModalTransaction_vue_vue_type_template_id_acc0677a___WEBPACK_IMPORTED_MODULE_0__.render, + _ModalTransaction_vue_vue_type_template_id_acc0677a___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns, + false, + null, + null, + null + +) + +/* hot reload */ +if (false) { var api; } +component.options.__file = "resources/js/components/util/ModalTransaction.vue" +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports); + +/***/ }), + /***/ "./resources/js/components/util/PetiBesiModal.vue": /*!********************************************************!*\ !*** ./resources/js/components/util/PetiBesiModal.vue ***! @@ -57018,6 +60354,22 @@ __webpack_require__.r(__webpack_exports__); /***/ }), +/***/ "./resources/js/components/util/ModalTransaction.vue?vue&type=script&lang=js&": +/*!************************************************************************************!*\ + !*** ./resources/js/components/util/ModalTransaction.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 import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ModalTransaction_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ModalTransaction.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/js/components/util/ModalTransaction.vue?vue&type=script&lang=js&"); + /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ModalTransaction_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); + +/***/ }), + /***/ "./resources/js/components/util/PetiBesiModal.vue?vue&type=script&lang=js&": /*!*********************************************************************************!*\ !*** ./resources/js/components/util/PetiBesiModal.vue?vue&type=script&lang=js& ***! @@ -57048,6 +60400,52 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Detailspelanggan_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Detailspelanggan.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/js/pages/Detailspelanggan.vue?vue&type=script&lang=js&"); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Detailspelanggan_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/***/ }), + +/***/ "./node_modules/vuejs-datetimepicker/src/datetime_picker.vue?vue&type=style&index=0&id=4bd11526&scoped=true&lang=css&": +/*!****************************************************************************************************************************!*\ + !*** ./node_modules/vuejs-datetimepicker/src/datetime_picker.vue?vue&type=style&index=0&id=4bd11526&scoped=true&lang=css& ***! + \****************************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _style_loader_dist_cjs_js_css_loader_dist_cjs_js_clonedRuleSet_9_0_rules_0_use_1_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_dist_cjs_js_clonedRuleSet_9_0_rules_0_use_2_vue_loader_lib_index_js_vue_loader_options_datetime_picker_vue_vue_type_style_index_0_id_4bd11526_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../style-loader/dist/cjs.js!../../css-loader/dist/cjs.js??clonedRuleSet-9[0].rules[0].use[1]!../../vue-loader/lib/loaders/stylePostLoader.js!../../postcss-loader/dist/cjs.js??clonedRuleSet-9[0].rules[0].use[2]!../../vue-loader/lib/index.js??vue-loader-options!./datetime_picker.vue?vue&type=style&index=0&id=4bd11526&scoped=true&lang=css& */ "./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-9[0].rules[0].use[1]!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9[0].rules[0].use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./node_modules/vuejs-datetimepicker/src/datetime_picker.vue?vue&type=style&index=0&id=4bd11526&scoped=true&lang=css&"); + + +/***/ }), + +/***/ "./node_modules/vuejs-datetimepicker/src/datetime_picker.vue?vue&type=script&lang=js&": +/*!********************************************************************************************!*\ + !*** ./node_modules/vuejs-datetimepicker/src/datetime_picker.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 import */ var _vue_loader_lib_index_js_vue_loader_options_datetime_picker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../vue-loader/lib/index.js??vue-loader-options!./datetime_picker.vue?vue&type=script&lang=js& */ "./node_modules/vue-loader/lib/index.js??vue-loader-options!./node_modules/vuejs-datetimepicker/src/datetime_picker.vue?vue&type=script&lang=js&"); + /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_vue_loader_lib_index_js_vue_loader_options_datetime_picker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); + +/***/ }), + +/***/ "./node_modules/vuejs-datetimepicker/src/datetime_picker.vue?vue&type=template&id=4bd11526&scoped=true&": +/*!**************************************************************************************************************!*\ + !*** ./node_modules/vuejs-datetimepicker/src/datetime_picker.vue?vue&type=template&id=4bd11526&scoped=true& ***! + \**************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "render": () => (/* reexport safe */ _vue_loader_lib_loaders_templateLoader_js_vue_loader_options_vue_loader_lib_index_js_vue_loader_options_datetime_picker_vue_vue_type_template_id_4bd11526_scoped_true___WEBPACK_IMPORTED_MODULE_0__.render), +/* harmony export */ "staticRenderFns": () => (/* reexport safe */ _vue_loader_lib_loaders_templateLoader_js_vue_loader_options_vue_loader_lib_index_js_vue_loader_options_datetime_picker_vue_vue_type_template_id_4bd11526_scoped_true___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns) +/* harmony export */ }); +/* harmony import */ var _vue_loader_lib_loaders_templateLoader_js_vue_loader_options_vue_loader_lib_index_js_vue_loader_options_datetime_picker_vue_vue_type_template_id_4bd11526_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../vue-loader/lib/index.js??vue-loader-options!./datetime_picker.vue?vue&type=template&id=4bd11526&scoped=true& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./node_modules/vuejs-datetimepicker/src/datetime_picker.vue?vue&type=template&id=4bd11526&scoped=true&"); + + /***/ }), /***/ "./resources/js/Akaun/Ansuran.vue?vue&type=template&id=08824363&": @@ -57439,6 +60837,23 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Modal_vue_vue_type_template_id_409c126a___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Modal.vue?vue&type=template&id=409c126a& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/util/Modal.vue?vue&type=template&id=409c126a&"); +/***/ }), + +/***/ "./resources/js/components/util/ModalTransaction.vue?vue&type=template&id=acc0677a&": +/*!******************************************************************************************!*\ + !*** ./resources/js/components/util/ModalTransaction.vue?vue&type=template&id=acc0677a& ***! + \******************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "render": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ModalTransaction_vue_vue_type_template_id_acc0677a___WEBPACK_IMPORTED_MODULE_0__.render), +/* harmony export */ "staticRenderFns": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ModalTransaction_vue_vue_type_template_id_acc0677a___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns) +/* harmony export */ }); +/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ModalTransaction_vue_vue_type_template_id_acc0677a___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ModalTransaction.vue?vue&type=template&id=acc0677a& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/util/ModalTransaction.vue?vue&type=template&id=acc0677a&"); + + /***/ }), /***/ "./resources/js/components/util/PetiBesiModal.vue?vue&type=template&id=e05c6030&": @@ -57490,6 +60905,313 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_dashboard_vue_vue_type_template_id_e1aead0a___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./dashboard.vue?vue&type=template&id=e1aead0a& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/pages/dashboard.vue?vue&type=template&id=e1aead0a&"); +/***/ }), + +/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./node_modules/vuejs-datetimepicker/src/datetime_picker.vue?vue&type=template&id=4bd11526&scoped=true&": +/*!*****************************************************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./node_modules/vuejs-datetimepicker/src/datetime_picker.vue?vue&type=template&id=4bd11526&scoped=true& ***! + \*****************************************************************************************************************************************************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "render": () => (/* binding */ render), +/* harmony export */ "staticRenderFns": () => (/* binding */ staticRenderFns) +/* harmony export */ }); +var render = function () { + var _vm = this + var _h = _vm.$createElement + var _c = _vm._self._c || _h + return _c( + "div", + { + staticClass: "datetime-picker", + style: { width: _vm.width }, + on: { + click: function ($event) { + return _vm.calendarClicked($event) + }, + blur: _vm.toggleCal, + }, + }, + [ + _c("div", [ + _c("input", { + attrs: { + type: "text", + readonly: _vm.readonly, + id: "tj-datetime-input", + required: _vm.required, + name: _vm.name, + autocomplete: "off", + }, + domProps: { value: _vm.date }, + on: { click: _vm.toggleCal }, + }), + _vm._v(" "), + _c( + "div", + { staticClass: "calender-div", class: { noDisplay: _vm.hideCal } }, + [ + _c("div", { class: { noDisplay: _vm.hideDate } }, [ + _c("div", { staticClass: "year-month-wrapper" }, [ + _c("div", { staticClass: "month-setter" }, [ + _c( + "button", + { + staticClass: "nav-l", + attrs: { type: "button" }, + on: { click: _vm.leftYear }, + }, + [_vm._v("<")] + ), + _vm._v(" "), + _c("span", { staticClass: "year" }, [ + _vm._v(_vm._s(_vm.year)), + ]), + _vm._v(" "), + _c( + "button", + { + staticClass: "nav-r", + attrs: { type: "button" }, + on: { click: _vm.rightYear }, + }, + [_vm._v(">")] + ), + ]), + _vm._v(" "), + _c("div", { staticClass: "month-setter" }, [ + _c( + "button", + { + staticClass: "nav-l", + attrs: { type: "button" }, + on: { click: _vm.leftMonth }, + }, + [_vm._v("<")] + ), + _vm._v(" "), + _c("span", { staticClass: "month" }, [ + _vm._v(_vm._s(_vm.month)), + ]), + _vm._v(" "), + _c( + "button", + { + staticClass: "nav-r", + attrs: { type: "button" }, + on: { click: _vm.rightMonth }, + }, + [_vm._v(">")] + ), + ]), + ]), + _vm._v(" "), + _c( + "div", + { staticClass: "headers" }, + _vm._l(_vm.days, function (port) { + return _c("span", { key: port, staticClass: "days" }, [ + _vm._v(_vm._s(port)), + ]) + }), + 0 + ), + _vm._v(" "), + _c( + "div", + _vm._l(_vm.weeks, function (week, weekIndex) { + return _c( + "div", + { key: weekIndex, staticClass: "week" }, + _vm._l(week, function (day, dayIndex) { + return _c( + "span", + { + key: dayIndex, + staticClass: "port", + class: { + activePort: + weekIndex * 7 + dayIndex === _vm.activePort, + }, + on: { + click: function ($event) { + return _vm.setDay(weekIndex * 7 + dayIndex, day) + }, + }, + }, + [ + _vm._v( + "\n " + _vm._s(day) + "\n " + ), + ] + ) + }), + 0 + ) + }), + 0 + ), + ]), + _vm._v(" "), + _c( + "div", + { + staticClass: "time-picker", + class: { noDisplay: _vm.hideTime }, + }, + [ + _c("div", { staticClass: "hour-selector" }, [ + _c( + "div", + { + attrs: { id: "j-hour" }, + on: { click: _vm.showHourSelector }, + }, + [ + _vm._v( + _vm._s( + _vm.periodStyle === 12 && _vm.hour > 12 + ? _vm.hour - 12 + : _vm.hour + ) + ), + ] + ), + _vm._v(" "), + _c( + "div", + { + ref: "hourScrollerWrapper", + staticClass: "scroll-hider", + class: { showSelector: _vm.hourSelectorVisible }, + }, + [ + _c( + "ul", + { ref: "hourScroller" }, + _vm._l(_vm.hours, function (h, index) { + return _c( + "li", + { + key: index, + class: { active: index === _vm.hourIndex }, + on: { + click: function ($event) { + return _vm.setHour(index, true) + }, + }, + }, + [_vm._v(_vm._s(h))] + ) + }), + 0 + ), + ] + ), + ]), + _vm._v(" "), + _vm._m(0), + _vm._v(" "), + _c("div", { staticClass: "minute-selector" }, [ + _c( + "div", + { + attrs: { id: "j-minute" }, + on: { click: _vm.showMinuteSelector }, + }, + [_vm._v(_vm._s(_vm.minute))] + ), + _vm._v(" "), + _c( + "div", + { + ref: "minuteScrollerWrapper", + staticClass: "scroll-hider", + class: { showSelector: _vm.minuteSelectorVisible }, + }, + [ + _c( + "ul", + { ref: "minuteScroller" }, + _vm._l(_vm.minutes, function (m, index) { + return _c( + "li", + { + key: index, + class: { active: index === _vm.minuteIndex }, + on: { + click: function ($event) { + return _vm.setMinute(index, true) + }, + }, + }, + [_vm._v(_vm._s(m))] + ) + }), + 0 + ), + ] + ), + ]), + _vm._v(" "), + _vm.periodStyle === 12 + ? _c("div", { staticClass: "time-separator" }, [ + _c("span", [_vm._v(":")]), + ]) + : _vm._e(), + _vm._v(" "), + _vm.periodStyle === 12 + ? _c("div", { staticClass: "minute-selector" }, [ + _c("div", { on: { click: _vm.changePeriod } }, [ + _vm._v(_vm._s(_vm.period)), + ]), + ]) + : _vm._e(), + ] + ), + _vm._v(" "), + _c( + "button", + { + staticClass: "okButton", + attrs: { type: "button" }, + on: { click: _vm.clearDate }, + }, + [_vm._v("Clear")] + ), + _vm._v(" "), + _c( + "button", + { + staticClass: "okButton ok", + attrs: { type: "button" }, + on: { click: _vm.setDate }, + }, + [_vm._v("OK")] + ), + ] + ), + ]), + ] + ) +} +var staticRenderFns = [ + function () { + var _vm = this + var _h = _vm.$createElement + var _c = _vm._self._c || _h + return _c("div", { staticClass: "time-separator" }, [ + _c("span", [_vm._v(":")]), + ]) + }, +] +render._withStripped = true + + + /***/ }), /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Akaun/Ansuran.vue?vue&type=template&id=08824363&": @@ -58968,350 +62690,446 @@ var render = function () { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h - return _c("div", [ - _c( - "div", - { staticClass: "container w-full max-w-xl mx-auto mt-10 px-4 font-sans" }, - [ - _c( - "form", - { - staticClass: - "bg-white w-full shadow-md rounded-lg px-8 pt-6 pb-4 mb-4", - attrs: { onclick: "return false" }, - }, - [ - _c("div", { staticClass: "mb-4 w-96 mx-auto" }, [ - _c( - "label", - { staticClass: "block text-gray-500 font-medium text-sm mb-2" }, - [_vm._v("No Rujukan")] - ), - _vm._v(" "), - _c("div", { staticClass: "flex flex-wrap" }, [ - _c("div", { staticClass: "flex flex-row w-96 mx-auto" }, [ - _c("div", { staticClass: "flex flex-col w-96" }, [ - _c("input", { - ref: "btnDropdownRef", - staticClass: - "mr-2 bg-gray-200 appearance-none border-2 border-gray-200 rounded w-full py-2 px-4 text-gray-700 leading-tight focus:outline-none focus:bg-white focus:border-blue-500", - attrs: { - id: "frminput", - type: "text", - placeholder: "Masukkan IC atau Nama", - }, - }), - ]), - _vm._v(" "), - _c( - "button", - { - staticClass: "px-4 py-2 bg-blue-600 rounded ml-2", - attrs: { id: "buttonsearch" }, - on: { - click: function ($event) { - return _vm.toggleTable() + return _c( + "div", + [ + _c("modal", { ref: "modal", on: { togtable: _vm.toggleTable } }), + _vm._v(" "), + _c( + "div", + { + staticClass: "container w-full max-w-xl mx-auto mt-10 px-4 font-sans", + }, + [ + _c( + "form", + { + staticClass: + "bg-white w-full shadow-md rounded-lg px-8 pt-6 pb-4 mb-4", + attrs: { onclick: "return false" }, + }, + [ + _c("div", { staticClass: "mb-4 w-96 mx-auto" }, [ + _c( + "label", + { + staticClass: "block text-gray-500 font-medium text-sm mb-2", + }, + [_vm._v("No Rujukan")] + ), + _vm._v(" "), + _c("div", { staticClass: "flex flex-wrap" }, [ + _c("div", { staticClass: "flex flex-row w-96 mx-auto" }, [ + _c("div", { staticClass: "flex flex-col w-96" }, [ + _c("input", { + ref: "btnDropdownRef", + staticClass: + "mr-2 bg-gray-200 appearance-none border-2 border-gray-200 rounded w-full py-2 px-4 text-gray-700 leading-tight focus:outline-none focus:bg-white focus:border-blue-500", + attrs: { + id: "frminput", + type: "text", + placeholder: "Masukkan IC atau Nama", + }, + }), + ]), + _vm._v(" "), + _c( + "button", + { + staticClass: "px-4 py-2 bg-blue-600 rounded ml-2", + attrs: { id: "buttonsearch" }, + on: { + click: function ($event) { + return _vm.toggleTable() + }, }, }, - }, - [_c("i", { staticClass: "fas fa-search text-white" })] - ), + [_c("i", { staticClass: "fas fa-search text-white" })] + ), + ]), ]), ]), - ]), - ] - ), - ] - ), - _vm._v(" "), - _c("div", { staticClass: "mx-auto hidden", attrs: { id: "divtable" } }, [ - _c("table", { staticClass: "min-w-full leading-normal" }, [ - _vm._m(0), - _vm._v(" "), - _c( - "tbody", - _vm._l(_vm.arrayCustomer, function (cust, i) { - return _c("tr", { key: i }, [ - _c( - "td", - { - staticClass: - "px-5 py-5 border-b border-gray-200 bg-white text-sm", - }, - [ - _c("div", { staticClass: "flex items-center" }, [ - _c("div", { staticClass: "ml-3" }, [ - _c( - "p", - { staticClass: "text-gray-900 whitespace-no-wrap" }, - [ - _vm._v( - "\n " + - _vm._s(i + 1) + - "\n " - ), - ] - ), + ] + ), + ] + ), + _vm._v(" "), + _c("div", { staticClass: "mx-auto hidden", attrs: { id: "divtable" } }, [ + _c("table", { staticClass: "min-w-full leading-normal" }, [ + _vm._m(0), + _vm._v(" "), + _c( + "tbody", + _vm._l(_vm.arrayCustomer, function (cust, i) { + return _c("tr", { key: i, staticClass: "text-center" }, [ + _c( + "td", + { + staticClass: + "px-5 py-5 border-b border-gray-200 bg-white text-sm", + }, + [ + _c("div", { staticClass: "flex items-center" }, [ + _c("div", { staticClass: "ml-3" }, [ + _c( + "p", + { staticClass: "text-gray-900 whitespace-no-wrap" }, + [ + _vm._v( + "\n " + + _vm._s(i + 1) + + "\n " + ), + ] + ), + ]), ]), - ]), - ] - ), - _vm._v(" "), - _c( - "td", - { - staticClass: - "px-5 py-5 border-b border-gray-200 bg-white text-sm", - }, - [ - _c("div", { staticClass: "flex items-center" }, [ - _c("div", { staticClass: "ml-3" }, [ - _c( - "p", - { staticClass: "text-gray-900 whitespace-no-wrap" }, - [ - _vm._v( - "\n " + - _vm._s(cust.nokp) + - "\n " - ), - ] - ), + ] + ), + _vm._v(" "), + _c( + "td", + { + staticClass: + "px-5 py-5 border-b border-gray-200 bg-white text-sm", + }, + [ + _c("div", { staticClass: "flex items-center" }, [ + _c("div", { staticClass: "ml-3" }, [ + _c( + "p", + { staticClass: "text-gray-900 whitespace-no-wrap" }, + [ + _vm._v( + "\n " + + _vm._s(cust.nokp) + + "\n " + ), + ] + ), + ]), ]), - ]), - ] - ), - _vm._v(" "), - _c( - "td", - { - staticClass: - "px-5 py-5 border-b border-gray-200 bg-white text-sm", - }, - [ - _c("div", { staticClass: "flex items-center" }, [ - _c("div", { staticClass: "ml-3" }, [ - _c( - "p", - { staticClass: "text-gray-900 whitespace-no-wrap" }, - [ - _vm._v( - "\n " + - _vm._s(cust.customer_name) + - "\n " - ), - ] - ), + ] + ), + _vm._v(" "), + _c( + "td", + { + staticClass: + "px-5 py-5 border-b border-gray-200 bg-white text-sm", + }, + [ + _c("div", { staticClass: "flex items-center" }, [ + _c("div", { staticClass: "ml-3" }, [ + _c( + "p", + { staticClass: "text-gray-900 whitespace-no-wrap" }, + [ + _vm._v( + "\n " + + _vm._s(cust.customer_name) + + "\n " + ), + ] + ), + ]), ]), - ]), - ] - ), - _vm._v(" "), - _c( - "td", - { - staticClass: - "px-5 py-5 border-b border-gray-200 bg-white text-sm", - }, - [ - _c("div", { staticClass: "flex items-center" }, [ - _c("div", { staticClass: "ml-3" }, [ - _c( - "p", - { staticClass: "text-gray-900 whitespace-no-wrap" }, - [ - _vm._v( - "\n " + - _vm._s(cust.total_payment) + - "\n " - ), - ] - ), + ] + ), + _vm._v(" "), + _c( + "td", + { + staticClass: + "px-5 py-5 border-b border-gray-200 bg-white text-sm", + }, + [ + _c("div", { staticClass: "flex items-center" }, [ + _c("div", { staticClass: "ml-3" }, [ + _c( + "p", + { staticClass: "text-gray-900 whitespace-no-wrap" }, + [ + _vm._v( + "\n " + + _vm._s(cust.total_payment) + + "\n " + ), + ] + ), + ]), ]), - ]), - ] - ), - _vm._v(" "), - _c( - "td", - { - staticClass: - "px-5 py-5 border-b border-gray-200 bg-white text-sm", - }, - [ - _c("div", { staticClass: "flex items-center" }, [ - _c("div", { staticClass: "ml-3" }, [ - _c( - "p", - { staticClass: "text-gray-900 whitespace-no-wrap" }, - [ - _vm._v( - "\n " + - _vm._s(cust.tarikh) + - "\n " - ), - ] - ), + ] + ), + _vm._v(" "), + _c( + "td", + { + staticClass: + "px-5 py-5 border-b border-gray-200 bg-white text-sm", + }, + [ + _c("div", { staticClass: "flex items-center" }, [ + _c("div", { staticClass: "ml-3" }, [ + _c( + "p", + { staticClass: "text-gray-900 whitespace-no-wrap" }, + [ + _vm._v( + "\n " + + _vm._s(cust.tarikh) + + "\n " + ), + ] + ), + ]), ]), - ]), - ] - ), - _vm._v(" "), - _c( - "td", - { - staticClass: - "px-5 py-5 border-b border-gray-200 bg-white text-sm", - }, - [ - _c("div", { staticClass: "flex items-center" }, [ - _c("div", { staticClass: "ml-3" }, [ - _c( - "p", - { staticClass: "text-gray-900 whitespace-no-wrap" }, - [ - _vm._v( - "\n " + - _vm._s(cust.masa) + - "\n " - ), - ] - ), + ] + ), + _vm._v(" "), + _c( + "td", + { + staticClass: + "px-5 py-5 border-b border-gray-200 bg-white text-sm", + }, + [ + _c("div", { staticClass: "flex items-center" }, [ + _c("div", { staticClass: "ml-3" }, [ + _c( + "p", + { staticClass: "text-gray-900 whitespace-no-wrap" }, + [ + _vm._v( + "\n " + + _vm._s(cust.masa) + + "\n " + ), + ] + ), + ]), ]), - ]), - ] - ), - _vm._v(" "), - _c( - "td", - { - staticClass: - "px-5 py-5 border-b border-gray-200 bg-white text-sm", - }, - [ - _c("div", { staticClass: "flex items-center" }, [ - _c("div", { staticClass: "ml-3" }, [ - _c( - "p", - { staticClass: "text-gray-900 whitespace-no-wrap" }, - [ - _vm._v( - "\n " + - _vm._s(cust.paid_at) + - "\n " - ), - ] - ), + ] + ), + _vm._v(" "), + _c( + "td", + { + staticClass: + "px-5 py-5 border-b border-gray-200 bg-white text-sm", + }, + [ + _c("div", { staticClass: "flex items-center" }, [ + _c("div", { staticClass: "ml-3" }, [ + _c( + "p", + { staticClass: "text-gray-900 whitespace-no-wrap" }, + [ + _vm._v( + "\n " + + _vm._s(cust.paid_at) + + "\n " + ), + ] + ), + ]), ]), - ]), - ] - ), - _vm._v(" "), - _c( - "td", - { - staticClass: - "px-5 py-5 border-b border-gray-200 bg-white text-sm", - }, - [ - _c("div", { staticClass: "flex items-center" }, [ - _c("div", { staticClass: "ml-3" }, [ - _c( - "p", - { staticClass: "text-gray-900 whitespace-no-wrap" }, - [ - _vm._v( - "\n " + - _vm._s(cust.status) + - "\n " - ), - ] - ), + ] + ), + _vm._v(" "), + _c( + "td", + { + staticClass: + "px-5 py-5 border-b border-gray-200 bg-white text-sm", + }, + [ + _c("div", { staticClass: "flex items-center" }, [ + _c("div", { staticClass: "ml-3" }, [ + _c( + "p", + { staticClass: "text-gray-900 whitespace-no-wrap" }, + [ + cust.status === "PAID" + ? _c( + "span", + { + staticClass: + "inlint-block mr-1 last:mr-0 py-1 px-2 rounded bg-green-200 text-xs font-semibold text-green-600 uppercase", + }, + [ + _vm._v( + "\n " + + _vm._s(cust.status) + + "\n " + ), + ] + ) + : _vm._e(), + _vm._v(" "), + cust.status === "NOT PAID" + ? _c( + "span", + { + staticClass: + "inlint-block mr-1 last:mr-0 py-1 px-2 rounded bg-yellow-200 text-xs font-semibold text-yellow-600 uppercase", + }, + [ + _vm._v( + "\n " + + _vm._s(cust.status) + + "\n " + ), + ] + ) + : _vm._e(), + _vm._v(" "), + cust.status === "UNSUCCESSFUL" + ? _c( + "span", + { + staticClass: + "inlint-block mr-1 last:mr-0 py-1 px-2 rounded bg-red-200 text-xs font-semibold text-red-600 uppercase", + }, + [ + _vm._v( + "\n " + + _vm._s(cust.status) + + "\n " + ), + ] + ) + : _vm._e(), + ] + ), + ]), ]), - ]), - ] - ), - _vm._v(" "), - _c( - "td", - { - staticClass: - "px-5 py-5 border-b border-gray-200 bg-white text-sm", - }, - [ - _c("div", { staticClass: "flex items-center" }, [ - _c("div", { staticClass: "ml-3" }, [ - _c( - "p", - { staticClass: "text-gray-900 whitespace-no-wrap" }, - [ - _vm._v( - "\n " + - _vm._s(cust.billplz_id) + - "\n " - ), - ] - ), + ] + ), + _vm._v(" "), + _c( + "td", + { + staticClass: + "px-5 py-5 border-b border-gray-200 bg-white text-sm", + }, + [ + _c("div", { staticClass: "flex items-center" }, [ + _c("div", { staticClass: "ml-3" }, [ + _c( + "p", + { staticClass: "text-gray-900 whitespace-no-wrap" }, + [ + _vm._v( + "\n " + + _vm._s(cust.billplz_id) + + "\n " + ), + ] + ), + ]), ]), - ]), - ] - ), - _vm._v(" "), - _c( - "td", - { - staticClass: - "px-5 py-5 border-b border-gray-200 bg-white text-sm", - }, - [ - _c("div", { staticClass: "flex items-center" }, [ - _c("div", { staticClass: "ml-3" }, [ - _c( - "button", - { - staticClass: - "border border-yellow-600 text-yellow-600 font-montserrat py-2 px-4 font-medium rounded-xl hover:bg-yellow-600 hover:text-white transition-all duration-300", - }, - [ - _c( - "svg", - { - staticClass: "bi bi-card-checklist", - attrs: { - xmlns: "http://www.w3.org/2000/svg", - width: "16", - height: "16", - fill: "currentColor", - viewBox: "0 0 16 16", + ] + ), + _vm._v(" "), + _c( + "td", + { + staticClass: + "px-5 py-5 border-b border-gray-200 bg-white text-sm", + }, + [ + _c("div", { staticClass: "flex items-center" }, [ + _c("div", { staticClass: "ml-3" }, [ + cust.status !== "NOT PAID" + ? _c( + "button", + { + staticClass: + "border border-gray-600 text-gray-600 font-montserrat py-2 px-4 font-medium rounded-xl transition-all duration-300", }, - }, - [ - _c("path", { - attrs: { - d: "M14.5 3a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h13zm-13-1A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2h-13z", + [ + _c( + "svg", + { + staticClass: "bi bi-card-checklist", + attrs: { + xmlns: "http://www.w3.org/2000/svg", + width: "16", + height: "16", + fill: "currentColor", + viewBox: "0 0 16 16", + }, + }, + [ + _c("path", { + attrs: { + d: "M14.5 3a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h13zm-13-1A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2h-13z", + }, + }), + _vm._v(" "), + _c("path", { + attrs: { + d: "M7 5.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm-1.496-.854a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708 0l-.5-.5a.5.5 0 1 1 .708-.708l.146.147 1.146-1.147a.5.5 0 0 1 .708 0zM7 9.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm-1.496-.854a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708 0l-.5-.5a.5.5 0 0 1 .708-.708l.146.147 1.146-1.147a.5.5 0 0 1 .708 0z", + }, + }), + ] + ), + ] + ) + : _c( + "button", + { + staticClass: + "border border-yellow-600 text-yellow-600 font-montserrat py-2 px-4 font-medium rounded-xl hover:bg-yellow-600 hover:text-white transition-all duration-300", + on: { + click: function ($event) { + return _vm.tekanmodal(cust.id) + }, }, - }), - _vm._v(" "), - _c("path", { - attrs: { - d: "M7 5.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm-1.496-.854a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708 0l-.5-.5a.5.5 0 1 1 .708-.708l.146.147 1.146-1.147a.5.5 0 0 1 .708 0zM7 9.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm-1.496-.854a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708 0l-.5-.5a.5.5 0 0 1 .708-.708l.146.147 1.146-1.147a.5.5 0 0 1 .708 0z", - }, - }), - ] - ), - ] - ), + }, + [ + _c( + "svg", + { + staticClass: "bi bi-card-checklist", + attrs: { + xmlns: "http://www.w3.org/2000/svg", + width: "16", + height: "16", + fill: "currentColor", + viewBox: "0 0 16 16", + }, + }, + [ + _c("path", { + attrs: { + d: "M14.5 3a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h13zm-13-1A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2h-13z", + }, + }), + _vm._v(" "), + _c("path", { + attrs: { + d: "M7 5.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm-1.496-.854a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708 0l-.5-.5a.5.5 0 1 1 .708-.708l.146.147 1.146-1.147a.5.5 0 0 1 .708 0zM7 9.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm-1.496-.854a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708 0l-.5-.5a.5.5 0 0 1 .708-.708l.146.147 1.146-1.147a.5.5 0 0 1 .708 0z", + }, + }), + ] + ), + ] + ), + ]), ]), - ]), - ] - ), - ]) - }), - 0 - ), + ] + ), + ]) + }), + 0 + ), + ]), ]), - ]), - ]) + ], + 1 + ) } var staticRenderFns = [ function () { @@ -62174,6 +65992,243 @@ render._withStripped = true +/***/ }), + +/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/util/ModalTransaction.vue?vue&type=template&id=acc0677a&": +/*!*********************************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/util/ModalTransaction.vue?vue&type=template&id=acc0677a& ***! + \*********************************************************************************************************************************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "render": () => (/* binding */ render), +/* harmony export */ "staticRenderFns": () => (/* binding */ staticRenderFns) +/* harmony export */ }); +var render = function () { + var _vm = this + var _h = _vm.$createElement + var _c = _vm._self._c || _h + return _c("div", [ + _vm.showModal + ? _c( + "div", + { + staticClass: + "overflow-x-hidden overflow-y-auto fixed inset-0 z-50 outline-none focus:outline-none justify-center items-center flex", + }, + [ + _c( + "div", + { staticClass: "relative w-auto my-6 mx-auto max-w-6xl" }, + [ + _c( + "div", + { + staticClass: + "border-0 rounded-lg shadow-lg relative flex flex-col w-full bg-white outline-none focus:outline-none", + }, + [ + _c( + "div", + { + staticClass: + "flex items-start bg-gray-200 justify-between p-5 border-b border-solid border-blueGray-200 rounded-t", + }, + [ + _c("h3", { staticClass: "text-xl font-semibold" }, [ + _vm._v( + "\n Penukaran Status Bayaran Online\n " + ), + ]), + _vm._v(" "), + _c( + "button", + { + staticClass: + "p-1 ml-auto border-0 text-black opacity-5 float-right text-3xl leading-none font-semibold outline-none focus:outline-none", + on: { + click: function ($event) { + return _vm.toggleModal() + }, + }, + }, + [ + _c( + "span", + { + staticClass: + " text-black opacity-5 h-6 w-6 text-2xl block outline-none focus:outline-none", + }, + [_vm._v("\n X\n ")] + ), + ] + ), + ] + ), + _vm._v(" "), + _c( + "div", + { staticClass: "relative p-6 flex-auto" }, + [ + _c( + "label", + { + staticClass: + "block uppercase tracking-wide text-gray-700 text-xs font-bold mb-2", + }, + [_vm._v("\n Status\n ")] + ), + _vm._v(" "), + _c("div", { staticClass: "relative" }, [ + _c( + "select", + { + directives: [ + { + name: "model", + rawName: "v-model", + value: _vm.referencestatus, + expression: "referencestatus", + }, + ], + staticClass: + "block appearance-none w-full bg-gray-200 border border-gray-200 text-gray-700 py-3 px-4 pr-8 rounded leading-tight focus:outline-none focus:bg-white focus:border-gray-500", + on: { + change: function ($event) { + var $$selectedVal = Array.prototype.filter + .call($event.target.options, function (o) { + return o.selected + }) + .map(function (o) { + var val = + "_value" in o ? o._value : o.value + return val + }) + _vm.referencestatus = $event.target.multiple + ? $$selectedVal + : $$selectedVal[0] + }, + }, + }, + _vm._l(_vm.status, function (stat, i) { + return _c("option", { key: i }, [ + _vm._v(_vm._s(stat)), + ]) + }), + 0 + ), + _vm._v(" "), + _c( + "div", + { + staticClass: + "pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700", + }, + [ + _c( + "svg", + { + staticClass: "fill-current h-4 w-4", + attrs: { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 20 20", + }, + }, + [ + _c("path", { + attrs: { + d: "M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z", + }, + }), + ] + ), + ] + ), + ]), + _vm._v(" "), + _c( + "label", + { + staticClass: + "block uppercase tracking-wide text-gray-700 text-xs font-bold mb-2 mt-3", + }, + [_vm._v("\n Paid at\n ")] + ), + _vm._v(" "), + _c("datetime", { + staticClass: + "appearance-none block w-full bg-white text-gray-700 border border-gray-200 rounded py-3 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500", + attrs: { format: "YYYY-MM-DD h:i:s", width: "300px" }, + model: { + value: _vm.datepaidat, + callback: function ($$v) { + _vm.datepaidat = $$v + }, + expression: "datepaidat", + }, + }), + ], + 1 + ), + _vm._v(" "), + _c( + "div", + { + staticClass: + "flex items-center justify-end p-6 border-t border-solid border-blueGray-200 rounded-b", + }, + [ + _c( + "button", + { + staticClass: + "bg-gray-500 hover:bg-gray-700 text-white font-bold py-2 px-4 border border-gray-700 rounded mr-1", + attrs: { type: "button" }, + on: { + click: function ($event) { + return _vm.toggleModal() + }, + }, + }, + [_vm._v("\n Batal\n ")] + ), + _vm._v(" "), + _c( + "button", + { + staticClass: + "bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 border border-blue-700 rounded", + attrs: { type: "button" }, + on: { + click: function ($event) { + return _vm.simpan() + }, + }, + }, + [_vm._v("\n Kemaskini\n ")] + ), + ] + ), + ] + ), + ] + ), + ] + ) + : _vm._e(), + _vm._v(" "), + _vm.showModal + ? _c("div", { staticClass: "opacity-25 fixed inset-0 z-40 bg-black" }) + : _vm._e(), + ]) +} +var staticRenderFns = [] +render._withStripped = true + + + /***/ }), /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/util/PetiBesiModal.vue?vue&type=template&id=e05c6030&": @@ -62880,10 +66935,6 @@ var render = function () { }, }, }), - _vm._v(" "), - _c("p", { staticClass: "text-gray-600 text-xs italic" }, [ - _vm._v("Make it as long and as crazy as you'd like"), - ]), ]), _vm._v(" "), _c("div", { staticClass: "w-full md:w-1/3 px-3" }, [ @@ -62918,6 +66969,9 @@ var render = function () { attrs: { type: "text", placeholder: "90210" }, domProps: { value: _vm.$v.poskod.$model }, on: { + change: function ($event) { + return _vm.triggerPoskod($event.target.value) + }, input: function ($event) { if ($event.target.composing) { return @@ -62956,12 +67010,16 @@ var render = function () { }, ], staticClass: - "appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500", + "appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 leading-tight focus:outline-none focus:border-gray-500", class: { "border border-red-500 focus:border-red-500": _vm.$v.name.$error, }, - attrs: { type: "text", placeholder: "Albuquerque" }, + attrs: { + readonly: "", + type: "text", + placeholder: "Albuquerque", + }, domProps: { value: _vm.$v.koddaerah.$model }, on: { input: function ($event) { @@ -63003,8 +67061,12 @@ var render = function () { }, ], staticClass: - "appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500", - attrs: { type: "text", placeholder: "Albuquerque" }, + "appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 leading-tight focus:outline-none focus:border-gray-500", + attrs: { + readonly: "", + type: "text", + placeholder: "Albuquerque", + }, domProps: { value: _vm.$v.kodnegeri.$model }, on: { input: function ($event) { @@ -63062,26 +67124,10 @@ var render = function () { }, }, }), - _vm._v(" "), - _c("p", { staticClass: "text-gray-600 text-xs italic" }, [ - _vm._v("Make it as long and as crazy as you'd like"), - ]), ]), ]), _vm._v(" "), - _vm._m(0), - ] - ) -} -var staticRenderFns = [ - function () { - var _vm = this - var _h = _vm.$createElement - var _c = _vm._self._c || _h - return _c( - "div", - { staticClass: "flex items-center justify-between mt-4" }, - [ + _c("div", { staticClass: "flex items-center justify-between mt-4" }, [ _c("a", { staticClass: "inline-block align-baseline font-bold text-sm text-blue-500 hover:text-blue-800", @@ -63095,12 +67141,22 @@ var staticRenderFns = [ "bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline", attrs: { type: "button" }, }, - [_vm._v("\n Kemaskini\n ")] + [ + _vm.submitStatus === "PENDING" + ? _c("span", [ + _c("i", { staticClass: "animate-spin fas fa-spinner mr-2" }), + _vm._v("Loading.."), + ]) + : _c("span", { on: { click: _vm.submit } }, [ + _vm._v("Kemaskini"), + ]), + ] ), - ] - ) - }, -] + ]), + ] + ) +} +var staticRenderFns = [] render._withStripped = true diff --git a/resources/js/Online/SearchSAG.vue b/resources/js/Online/SearchSAG.vue index c06152b..c763ade 100644 --- a/resources/js/Online/SearchSAG.vue +++ b/resources/js/Online/SearchSAG.vue @@ -1,6 +1,8 @@ \ No newline at end of file diff --git a/resources/js/pages/Detailspelanggan.vue b/resources/js/pages/Detailspelanggan.vue index 9b6bfa4..48ecda2 100644 --- a/resources/js/pages/Detailspelanggan.vue +++ b/resources/js/pages/Detailspelanggan.vue @@ -47,7 +47,6 @@ Alamat -

Make it as long and as crazy as you'd like

@@ -56,20 +55,20 @@ Poskod
- +
- +
- +
@@ -78,7 +77,6 @@ Nota -

Make it as long and as crazy as you'd like

@@ -88,8 +86,10 @@ + @@ -116,7 +116,8 @@ export default { nota: this.customer.nota, poskod: this.customer.poskod, koddaerah: '', - kodnegeri: '' + kodnegeri: '', + submitStatus: '' } }, setup: (props, context) => { @@ -137,6 +138,27 @@ export default { this.koddaerah = response.data.namadaerah }); + }, + triggerPoskod: function(value){ + + this.axios.get('http://localhost:8000/api/poskod/' + value).then(response => { + this.koddaerahCall(response.data.kodnegeri,response.data.koddaerah) + }); + }, + submit() { + console.log('submit!') + this.$v.$touch() + if (this.$v.$invalid) { + // this.submitStatus = 'ERROR' + this.$toast.error('Sila isi butiran yang disediakan dengan betul!') + } else { + // do your submit logic here + this.submitStatus = 'PENDING' + setTimeout(() => { + this.submitStatus = 'OK' + this.$toast.success('Berjaya dikemaskini!') + }, 500) + } } }, validations: {