@bilfenyazilimekibi/bilpack 1.3.25 → 1.3.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -357,7 +357,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
357
357
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
358
358
 
359
359
  "use strict";
360
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"bf-header\",\n props: {\n miniVariant: {\n default: false\n },\n sideMenuStatus: {\n default: true\n },\n modeChangeIsVisible: {\n default: true\n },\n },\n data: () => ({\n items: [\n {\n text: 'Anasayfa',\n disabled: true,\n href: 'breadcrumbs_dashboard',\n },\n ],\n isScrollOver65: false,\n descriptionLimit: 60,\n entries: [],\n isLoading: false,\n model: null,\n search: null,\n selectedVal: {id: null, name: null},\n apps: [],\n currentYear: \"\",\n activeYear: null\n }),\n async mounted() {\n const self = this;\n self.selectedVal = {id: null, name: null};\n window.addEventListener('scroll', this.scrollHandler);\n self.scrollHandler();\n await self.fetchApps()\n },\n beforeDestroy() {\n window.removeEventListener('scroll', this.scrollHandler);\n },\n async created() {\n if (this.$auth !== undefined) {\n if (this.$auth.$state.user !== null) {\n this.activeYear = localStorage.getItem('activeYear')\n\n\n this.$auth.$state.user.menu.forEach(val => {\n if (val.children !== undefined) {\n val.children.forEach(subVal => {\n this.entries.push(subVal)\n })\n } else {\n this.entries.push(val)\n }\n })\n\n try {\n const emsEnv = this.$bilpack.env.ems;\n this.$axios.$post(emsEnv + '/year/active').then((res) => {\n this.activeYear = JSON.parse(res.data.results).yearName;\n localStorage.setItem('activeYear', JSON.parse(res.data.results).yearName)\n })\n }catch (e) {\n console.error('can not fetch active year', e)\n }\n\n }\n }\n },\n methods: {\n async fetchApps() {\n const self = this;\n\n try {\n const bilappsEnv = self.$bilpack.env.bilapps;\n const {data} = await self.$axios.$post(bilappsEnv + '/apps')\n self.apps = data\n } catch (e) {\n console.error('fetch apps error', e)\n self.apps = []\n }\n\n },\n setLogo() {\n const self = this;\n\n const key = self.$vuetify.theme.dark ? 'dark_x' : 'light_x';\n const logoSideBar = self.$bilpack.settings.navLogo\n try {\n return logoSideBar[key] !== undefined ? __webpack_require__(\"./src/components/bf-header sync recursive\")(logoSideBar[key]) : ''\n } catch (e) {\n return ''\n }\n\n },\n darkMode() {\n this.$vuetify.theme.dark = !this.$vuetify.theme.dark\n localStorage.setItem('theme', this.$vuetify.theme.dark)\n },\n goToProject(url) {\n window.open(url + '?token=' + localStorage.getItem('auth._token.local'), '_blank')\n },\n scrollHandler(e) {\n this.isScrollOver65 = window.pageYOffset > 65;\n },\n goTo() {\n this.$router.push({\n path: this.selectedVal.frontUrl\n })\n },\n async logout() {\n await this.$auth.logout();\n window.location.reload()\n },\n },\n computed: {\n isActiveYear() {\n return this.currentYear;\n },\n getMiniVariant() {\n return this.$store.state.miniVariant\n },\n getToken() {\n return this.$store.state.token\n }\n }\n});\n\n\n//# sourceURL=webpack://@bilfenyazilimekibi/bilpack/./src/components/bf-header/index.vue?./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
360
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"bf-header\",\n props: {\n miniVariant: {\n default: false\n },\n sideMenuStatus: {\n default: true\n },\n modeChangeIsVisible: {\n default: true\n },\n },\n data: () => ({\n items: [\n {\n text: 'Anasayfa',\n disabled: true,\n href: 'breadcrumbs_dashboard',\n },\n ],\n isScrollOver65: false,\n descriptionLimit: 60,\n entries: [],\n isLoading: false,\n model: null,\n search: null,\n selectedVal: {id: null, name: null},\n apps: [],\n currentYear: \"\",\n activeYear: null\n }),\n async mounted() {\n const self = this;\n self.selectedVal = {id: null, name: null};\n window.addEventListener('scroll', this.scrollHandler);\n self.scrollHandler();\n await self.fetchApps()\n },\n beforeDestroy() {\n window.removeEventListener('scroll', this.scrollHandler);\n },\n async created() {\n if (this.$auth !== undefined) {\n if (this.$auth.$state.user !== null) {\n this.activeYear = localStorage.getItem('activeYear')\n\n const menuItems = Array.isArray(this.$auth.$state.user.menu)\n ? this.$auth.$state.user.menu\n : []\n menuItems.forEach((val) => {\n if (Array.isArray(val.children) && val.children.length > 0) {\n val.children.forEach((subVal) => {\n this.entries.push(subVal)\n })\n } else {\n this.entries.push(val)\n }\n })\n\n try {\n const emsEnv = this.$bilpack.env.ems;\n this.$axios.$post(emsEnv + '/year/active').then((res) => {\n this.activeYear = JSON.parse(res.data.results).yearName;\n localStorage.setItem('activeYear', JSON.parse(res.data.results).yearName)\n })\n }catch (e) {\n console.error('can not fetch active year', e)\n }\n\n }\n }\n },\n methods: {\n async fetchApps() {\n const self = this;\n\n try {\n const bilappsEnv = self.$bilpack.env.bilapps;\n const {data} = await self.$axios.$post(bilappsEnv + '/apps')\n self.apps = data\n } catch (e) {\n console.error('fetch apps error', e)\n self.apps = []\n }\n\n },\n setLogo() {\n const self = this;\n\n const key = self.$vuetify.theme.dark ? 'dark_x' : 'light_x';\n const logoSideBar = self.$bilpack.settings.navLogo\n try {\n return logoSideBar[key] !== undefined ? __webpack_require__(\"./src/components/bf-header sync recursive\")(logoSideBar[key]) : ''\n } catch (e) {\n return ''\n }\n\n },\n darkMode() {\n this.$vuetify.theme.dark = !this.$vuetify.theme.dark\n localStorage.setItem('theme', this.$vuetify.theme.dark)\n },\n goToProject(url) {\n window.open(url + '?token=' + localStorage.getItem('auth._token.local'), '_blank')\n },\n scrollHandler(e) {\n this.isScrollOver65 = window.pageYOffset > 65;\n },\n goTo() {\n const route =\n this.selectedVal && typeof this.selectedVal.frontUrl === 'string'\n ? this.selectedVal.frontUrl\n : ''\n if (route === '') return\n this.$router.push({\n path: route\n })\n },\n async logout() {\n await this.$auth.logout();\n window.location.reload()\n },\n },\n computed: {\n isActiveYear() {\n return this.currentYear;\n },\n getMiniVariant() {\n return this.$store.state.miniVariant\n },\n getToken() {\n return this.$store.state.token\n }\n }\n});\n\n\n//# sourceURL=webpack://@bilfenyazilimekibi/bilpack/./src/components/bf-header/index.vue?./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
361
361
 
362
362
  /***/ }),
363
363
 
@@ -577,7 +577,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
577
577
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
578
578
 
579
579
  "use strict";
580
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _components_closed__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/closed */ \"./src/components/bf-sidebar/components/closed.vue\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"bf-sidebar\",\n components: { closed: _components_closed__WEBPACK_IMPORTED_MODULE_0__[\"default\"] },\n // props: ['miniVariant', 'sideMenuStatus'],\n props: {\n miniVariant: {\n default: false,\n },\n sideMenuStatus: {\n default: true,\n },\n modeChangeIsVisible: {\n default: true,\n },\n },\n data() {\n return {\n darkMode: false,\n darkModeSwitch: false,\n isLogged: false,\n clipped: true,\n drawer: true,\n fixed: true,\n sideMenu: true,\n activeRoute: \"\",\n // miniVariant: false,\n right: true,\n rightDrawer: false,\n title: \"Bilfen\",\n };\n },\n created() {\n const self = this;\n setTimeout(() => {\n this.darkModeSwitch = this.$vuetify.theme.dark;\n });\n self.spliteRoute();\n },\n methods: {\n sideMenuClose() {\n for (let i = 0; i < this.$auth.$state.user.menu.length; i++) {\n const groupRef = this.$refs[`menuGroup${i}`];\n if (groupRef && groupRef[0]) {\n groupRef[0].isActive = false;\n }\n }\n },\n sideMenuOpen() {\n for (let i = 0; i < this.$auth.$state.user.menu.length; i++) {\n const menuItem = this.$auth.$state.user.menu[i];\n const groupRef = this.$refs[`menuGroup${i}`];\n\n if (groupRef && groupRef[0]) {\n if (menuItem && menuItem.children) {\n menuItem.children.forEach((child) => {\n if (child.frontUrl === this.activeRoute) {\n groupRef[0].isActive = true;\n return;\n }\n });\n }\n }\n }\n },\n spliteRoute() {\n const self = this;\n const routePath = this.$route.path;\n const spliteRoute = routePath.split(\"/\");\n self.activeRoute = \"/\" + spliteRoute[1];\n },\n sideMenuToggle(item) {\n const self = this;\n },\n async logout() {\n await this.$auth.logout();\n await this.$router.push(\"/login\");\n this.sideMenu = true;\n this.miniVariant = false;\n },\n getImageSrc(key) {\n const self = this;\n try {\n const imgSettings = self.$bilpack.settings.images;\n const isDark = self.$vuetify.theme.dark;\n const image = imgSettings[key];\n\n return isDark && image.dark !== undefined && image.dark !== \"\"\n ? image.dark\n : image.light !== undefined && image.light !== \"\"\n ? image.light\n : \"\";\n } catch (e) {\n return \"\";\n }\n },\n setLogo(sideMenuStatus) {\n const self = this;\n\n const isDark = self.$vuetify.theme.dark;\n const key = sideMenuStatus\n ? isDark\n ? \"dark_y\"\n : \"light_y\"\n : isDark\n ? \"dark_x\"\n : \"light_x\";\n const logoSideBar = self.$bilpack.settings.navLogo;\n\n try {\n return logoSideBar[key] !== undefined ? logoSideBar[key] : \"\";\n } catch (e) {\n return \"\";\n }\n },\n checkActive() {\n const self = this;\n const currentPath = self.$route.path;\n // this.$refs['menuGroup0'][0].isActive = true\n // console.log('containsValue', self.containsValue(self.$auth.$state.user.menu, currentPath, 'frontUrl'))\n // this.$auth.$state.user.menu\n },\n containsValue(arr, val, key) {\n const self = this;\n return arr.some(function (item) {\n if (\n typeof item === \"object\" &&\n item !== null &&\n item.hasOwnProperty(key)\n ) {\n if (item[key] === val) {\n return true;\n } else if (Array.isArray(item[key])) {\n return self.containsValue(item[key], val, key);\n }\n } else if (Array.isArray(item)) {\n return self.containsValue(item, val, key);\n } else if (\n item !== null &&\n item.children !== null &&\n Array.isArray(item.children)\n ) {\n return self.containsValue(item, val, key);\n }\n return false;\n });\n },\n },\n watch: {\n darkModeSwitch(val) {\n localStorage.setItem(\"theme\", val);\n this.$vuetify.theme.dark = val;\n },\n sideMenuStatus(val) {\n if (val) {\n setTimeout(() => {\n this.checkActive();\n });\n }\n },\n $route(to, from) {\n const self = this;\n self.spliteRoute();\n if (to.name == \"index\") {\n self.sideMenuClose();\n } else if (self.activeRoute.length > 1) {\n self.sideMenuOpen();\n }\n },\n },\n});\n\n\n//# sourceURL=webpack://@bilfenyazilimekibi/bilpack/./src/components/bf-sidebar/index.vue?./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
580
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _components_closed__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/closed */ \"./src/components/bf-sidebar/components/closed.vue\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"bf-sidebar\",\n components: { closed: _components_closed__WEBPACK_IMPORTED_MODULE_0__[\"default\"] },\n // props: ['miniVariant', 'sideMenuStatus'],\n props: {\n miniVariant: {\n default: false,\n },\n sideMenuStatus: {\n default: true,\n },\n modeChangeIsVisible: {\n default: true,\n },\n },\n data() {\n return {\n darkMode: false,\n darkModeSwitch: false,\n isLogged: false,\n clipped: true,\n drawer: true,\n fixed: true,\n sideMenu: true,\n activeRoute: \"\",\n // miniVariant: false,\n right: true,\n rightDrawer: false,\n title: \"Bilfen\",\n };\n },\n computed: {\n safeMenuItems() {\n const authUser =\n this.$auth && this.$auth.$state ? this.$auth.$state.user : null;\n return authUser && Array.isArray(authUser.menu) ? authUser.menu : [];\n },\n },\n created() {\n const self = this;\n setTimeout(() => {\n this.darkModeSwitch = this.$vuetify.theme.dark;\n });\n self.spliteRoute();\n },\n methods: {\n getChildren(item) {\n return item && Array.isArray(item.children) ? item.children : [];\n },\n hasChildren(item) {\n return this.getChildren(item).length > 0;\n },\n resolveIcon(icon) {\n return typeof icon === \"string\" && icon.trim() !== \"\"\n ? icon\n : \"fi-rr-user\";\n },\n resolveRoute(frontUrl) {\n return typeof frontUrl === \"string\" ? frontUrl : \"\";\n },\n pushIfRoute(frontUrl) {\n const route = this.resolveRoute(frontUrl);\n if (route !== \"\") this.$router.push(route);\n },\n sideMenuClose() {\n for (let i = 0; i < this.safeMenuItems.length; i++) {\n const groupRef = this.$refs[`menuGroup${i}`];\n if (groupRef && groupRef[0]) {\n groupRef[0].isActive = false;\n }\n }\n },\n sideMenuOpen() {\n for (let i = 0; i < this.safeMenuItems.length; i++) {\n const menuItem = this.safeMenuItems[i];\n const groupRef = this.$refs[`menuGroup${i}`];\n\n if (groupRef && groupRef[0]) {\n if (this.hasChildren(menuItem)) {\n this.getChildren(menuItem).forEach((child) => {\n if (this.resolveRoute(child.frontUrl) === this.activeRoute) {\n groupRef[0].isActive = true;\n return;\n }\n });\n }\n }\n }\n },\n spliteRoute() {\n const self = this;\n const routePath = this.$route.path;\n const spliteRoute = routePath.split(\"/\");\n self.activeRoute = \"/\" + spliteRoute[1];\n },\n sideMenuToggle(item) {\n const self = this;\n },\n async logout() {\n await this.$auth.logout();\n await this.$router.push(\"/login\");\n this.sideMenu = true;\n this.miniVariant = false;\n },\n getImageSrc(key) {\n const self = this;\n try {\n const imgSettings = self.$bilpack.settings.images;\n const isDark = self.$vuetify.theme.dark;\n const image = imgSettings[key];\n\n return isDark && image.dark !== undefined && image.dark !== \"\"\n ? image.dark\n : image.light !== undefined && image.light !== \"\"\n ? image.light\n : \"\";\n } catch (e) {\n return \"\";\n }\n },\n setLogo(sideMenuStatus) {\n const self = this;\n\n const isDark = self.$vuetify.theme.dark;\n const key = sideMenuStatus\n ? isDark\n ? \"dark_y\"\n : \"light_y\"\n : isDark\n ? \"dark_x\"\n : \"light_x\";\n const logoSideBar = self.$bilpack.settings.navLogo;\n\n try {\n return logoSideBar[key] !== undefined ? logoSideBar[key] : \"\";\n } catch (e) {\n return \"\";\n }\n },\n checkActive() {\n const self = this;\n const currentPath = self.$route.path;\n // this.$refs['menuGroup0'][0].isActive = true\n // console.log('containsValue', self.containsValue(self.$auth.$state.user.menu, currentPath, 'frontUrl'))\n // this.$auth.$state.user.menu\n },\n containsValue(arr, val, key) {\n const self = this;\n if (!Array.isArray(arr)) return false;\n return arr.some(function (item) {\n if (\n typeof item === \"object\" &&\n item !== null &&\n item.hasOwnProperty(key)\n ) {\n if (item[key] === val) {\n return true;\n } else if (Array.isArray(item[key])) {\n return self.containsValue(item[key], val, key);\n }\n } else if (Array.isArray(item)) {\n return self.containsValue(item, val, key);\n } else if (\n item !== null &&\n item.children !== null &&\n Array.isArray(item.children)\n ) {\n return self.containsValue(item, val, key);\n }\n return false;\n });\n },\n },\n watch: {\n darkModeSwitch(val) {\n localStorage.setItem(\"theme\", val);\n this.$vuetify.theme.dark = val;\n },\n sideMenuStatus(val) {\n if (val) {\n setTimeout(() => {\n this.checkActive();\n });\n }\n },\n $route(to, from) {\n const self = this;\n self.spliteRoute();\n if (to.name == \"index\") {\n self.sideMenuClose();\n } else if (self.activeRoute.length > 1) {\n self.sideMenuOpen();\n }\n },\n },\n});\n\n\n//# sourceURL=webpack://@bilfenyazilimekibi/bilpack/./src/components/bf-sidebar/index.vue?./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
581
581
 
582
582
  /***/ }),
583
583
 
@@ -1754,7 +1754,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
1754
1754
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1755
1755
 
1756
1756
  "use strict";
1757
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ render: () => (/* binding */ render),\n/* harmony export */ staticRenderFns: () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _vm.$auth !== undefined\n ? _c(\n \"div\",\n { staticClass: \"bf-sidebar\" },\n [\n _vm.$auth.loggedIn\n ? _c(\n \"v-navigation-drawer\",\n {\n ref: \"navDrawer\",\n class: [_vm.sideMenuStatus ? \"open\" : \"\"],\n attrs: {\n \"mini-variant\": _vm.miniVariant,\n \"mini-variant-width\": \"100\",\n permanent: _vm.$vuetify.breakpoint.smAndUp,\n fixed: \"\",\n app: \"\",\n value: \"visible\",\n \"data-class\": _vm.sideMenuStatus ? \"full-width\" : \"\",\n width: \"250\",\n },\n model: {\n value: _vm.drawer,\n callback: function ($$v) {\n _vm.drawer = $$v\n },\n expression: \"drawer\",\n },\n },\n [\n _vm.$vuetify.breakpoint.smAndUp &&\n _vm.setLogo(_vm.sideMenuStatus) !== \"\"\n ? _c(\n \"div\",\n { staticClass: \"sidebar-logo-area\" },\n [\n _c(\n \"router-link\",\n {\n staticClass: \"side-logo\",\n class: [_vm.miniVariant ? \"mini-variant\" : \"\"],\n attrs: { to: \"/\" },\n },\n [\n _vm.sideMenuStatus\n ? _c(\"img\", {\n attrs: {\n src: _vm.setLogo(_vm.sideMenuStatus),\n },\n })\n : _c(\"img\", {\n attrs: {\n width: \"30\",\n height: \"35\",\n src: _vm.setLogo(_vm.sideMenuStatus),\n },\n }),\n ]\n ),\n ],\n 1\n )\n : _vm._e(),\n _vm.sideMenuStatus\n ? _c(\"v-list\", [\n _c(\n \"div\",\n { staticClass: \"list-content\" },\n _vm._l(\n _vm.$auth.$state.user.menu,\n function (item, i) {\n return _c(\n \"span\",\n { key: i },\n [\n item.children !== undefined\n ? _c(\n \"v-list-group\",\n {\n ref: `menuGroup${i}`,\n refInFor: true,\n staticClass: \"menu-item\",\n attrs: {\n ripple: false,\n \"prepend-icon\":\n item.icon !== \"\"\n ? item.icon\n : \"fi-rr-user\",\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"activator\",\n fn: function () {\n return [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n },\n [\n _vm._v(\n _vm._s(item.name)\n ),\n ]\n ),\n ]\n },\n proxy: true,\n },\n ],\n null,\n true\n ),\n },\n _vm._l(\n item.children,\n function (subItem, subI) {\n return _c(\n \"span\",\n { key: subI },\n [\n subItem.children !==\n undefined &&\n subItem.children.length > 0\n ? _c(\n \"v-list-group\",\n {\n staticClass:\n \"menu-item\",\n attrs: {\n \"no-action\": \"\",\n \"sub-group\": \"\",\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"activator\",\n fn: function () {\n return [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n },\n [\n _vm._v(\n _vm._s(\n subItem.name\n )\n ),\n ]\n ),\n ]\n },\n proxy: true,\n },\n ],\n null,\n true\n ),\n },\n [\n _vm._l(\n subItem.children,\n function (\n thirdItem,\n thirdI\n ) {\n return _c(\n \"v-list-item\",\n {\n key: thirdI,\n staticClass:\n \"menu-item\",\n class:\n thirdItem.frontUrl ===\n _vm.activeRoute\n ? \"v-list-item--active\"\n : \"\",\n attrs: {\n ripple: false,\n to: thirdItem.frontUrl,\n router: \"\",\n exact: \"\",\n nuxt: \"\",\n },\n on: {\n click:\n _vm.sideMenuClose,\n },\n },\n [\n _c(\n \"v-list-item-content\",\n [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n domProps:\n {\n textContent:\n _vm._s(\n thirdItem.name\n ),\n },\n }\n ),\n ],\n 1\n ),\n ],\n 1\n )\n }\n ),\n _c(\n \"v-icon\",\n {\n attrs: {\n slot: \"prepend\",\n color: \"#9CA3AF\",\n small: \"\",\n },\n slot: \"prepend\",\n },\n [\n _vm._v(\n \"fi-rr-search\"\n ),\n ]\n ),\n ],\n 2\n )\n : _c(\n \"v-list-item\",\n {\n staticClass:\n \"menu-item sub\",\n class:\n subItem.frontUrl ===\n _vm.activeRoute\n ? \"v-list-item--active\"\n : \"\",\n attrs: {\n \"data-click\":\n \"sideMenuToggle\",\n to: subItem.frontUrl,\n router: \"\",\n exact: \"\",\n nuxt: \"\",\n },\n on: {\n click: function (\n $event\n ) {\n return _vm.sideMenuToggle(\n subItem\n )\n },\n },\n },\n [\n _c(\n \"v-list-item-content\",\n [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n domProps: {\n textContent:\n _vm._s(\n subItem.name\n ),\n },\n }\n ),\n ],\n 1\n ),\n ],\n 1\n ),\n ],\n 1\n )\n }\n ),\n 0\n )\n : _c(\"v-list-group\", {\n key: _vm.activeRoute,\n staticClass: \"menu-item\",\n class:\n item.frontUrl === _vm.activeRoute\n ? \"v-list-item--active\"\n : \"\",\n attrs: {\n \"no-action\": \"\",\n \"prepend-icon\":\n item.icon !== \"\"\n ? item.icon\n : \"fi-rr-user\",\n \"append-icon\": \"\",\n },\n on: {\n click: function ($event) {\n return _vm.$router.push(\n item.frontUrl\n )\n },\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"activator\",\n fn: function () {\n return [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n },\n [_vm._v(_vm._s(item.name))]\n ),\n ]\n },\n proxy: true,\n },\n ],\n null,\n true\n ),\n }),\n ],\n 1\n )\n }\n ),\n 0\n ),\n ])\n : _c(\n \"v-list\",\n [\n _c(\"closed\", {\n attrs: { menuItems: _vm.$auth.$state.user.menu },\n }),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"sidebar-footer\" }, [\n _vm.sideMenuStatus\n ? _c(\"div\", { staticClass: \"top-logo\" }, [\n _c(\"img\", {\n attrs: {\n src: _vm.getImageSrc(\"support\"),\n alt: \"sidebar img\",\n },\n }),\n ])\n : _vm._e(),\n _c(\"div\", { staticClass: \"copyright\" }, [\n _c(\"img\", {\n class: _vm.$vuetify.theme.dark ? \"d-none\" : \"\",\n attrs: {\n src: __webpack_require__(/*! @/assets/images/logo-bilfen.png */ \"./src/assets/images/logo-bilfen.png\"),\n alt: \"bilfen logo\",\n },\n }),\n _c(\n \"p\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.sideMenuStatus,\n expression: \"sideMenuStatus\",\n },\n ],\n },\n [\n _vm._v(\n \"Bilfen Yazılım Ekibi © \" +\n _vm._s(new Date().getFullYear())\n ),\n ]\n ),\n ]),\n ]),\n ],\n 1\n )\n : _vm._e(),\n !_vm.$vuetify.breakpoint.smAndUp\n ? _c(\n \"v-toolbar\",\n {\n attrs: { color: \"#4281cb\", flat: \"\", dense: \"\" },\n on: {\n click: function ($event) {\n $event.stopPropagation()\n _vm.drawer = !_vm.drawer\n },\n },\n },\n [\n _c(\n \"v-icon\",\n { staticClass: \"toolbar-icon\", attrs: { small: \"\" } },\n [_vm._v(\"fi-rr-menu-burger\")]\n ),\n ],\n 1\n )\n : _vm._e(),\n ],\n 1\n )\n : _vm._e()\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://@bilfenyazilimekibi/bilpack/./src/components/bf-sidebar/index.vue?./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet%5B1%5D.rules%5B2%5D!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
1757
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ render: () => (/* binding */ render),\n/* harmony export */ staticRenderFns: () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _vm.$auth !== undefined\n ? _c(\n \"div\",\n { staticClass: \"bf-sidebar\" },\n [\n _vm.$auth.loggedIn\n ? _c(\n \"v-navigation-drawer\",\n {\n ref: \"navDrawer\",\n class: [_vm.sideMenuStatus ? \"open\" : \"\"],\n attrs: {\n \"mini-variant\": _vm.miniVariant,\n \"mini-variant-width\": \"100\",\n permanent: _vm.$vuetify.breakpoint.smAndUp,\n fixed: \"\",\n app: \"\",\n value: \"visible\",\n \"data-class\": _vm.sideMenuStatus ? \"full-width\" : \"\",\n width: \"250\",\n },\n model: {\n value: _vm.drawer,\n callback: function ($$v) {\n _vm.drawer = $$v\n },\n expression: \"drawer\",\n },\n },\n [\n _vm.$vuetify.breakpoint.smAndUp &&\n _vm.setLogo(_vm.sideMenuStatus) !== \"\"\n ? _c(\n \"div\",\n { staticClass: \"sidebar-logo-area\" },\n [\n _c(\n \"router-link\",\n {\n staticClass: \"side-logo\",\n class: [_vm.miniVariant ? \"mini-variant\" : \"\"],\n attrs: { to: \"/\" },\n },\n [\n _vm.sideMenuStatus\n ? _c(\"img\", {\n attrs: {\n src: _vm.setLogo(_vm.sideMenuStatus),\n },\n })\n : _c(\"img\", {\n attrs: {\n width: \"30\",\n height: \"35\",\n src: _vm.setLogo(_vm.sideMenuStatus),\n },\n }),\n ]\n ),\n ],\n 1\n )\n : _vm._e(),\n _vm.sideMenuStatus\n ? _c(\"v-list\", [\n _c(\n \"div\",\n { staticClass: \"list-content\" },\n _vm._l(_vm.safeMenuItems, function (item, i) {\n return _c(\n \"span\",\n { key: i },\n [\n _vm.hasChildren(item)\n ? _c(\n \"v-list-group\",\n {\n ref: `menuGroup${i}`,\n refInFor: true,\n staticClass: \"menu-item\",\n attrs: {\n ripple: false,\n \"prepend-icon\": _vm.resolveIcon(\n item.icon\n ),\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"activator\",\n fn: function () {\n return [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n },\n [_vm._v(_vm._s(item.name))]\n ),\n ]\n },\n proxy: true,\n },\n ],\n null,\n true\n ),\n },\n _vm._l(\n _vm.getChildren(item),\n function (subItem, subI) {\n return _c(\n \"span\",\n { key: subI },\n [\n _vm.hasChildren(subItem)\n ? _c(\n \"v-list-group\",\n {\n staticClass: \"menu-item\",\n attrs: {\n \"no-action\": \"\",\n \"sub-group\": \"\",\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"activator\",\n fn: function () {\n return [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n },\n [\n _vm._v(\n _vm._s(\n subItem.name\n )\n ),\n ]\n ),\n ]\n },\n proxy: true,\n },\n ],\n null,\n true\n ),\n },\n [\n _vm._l(\n _vm.getChildren(\n subItem\n ),\n function (\n thirdItem,\n thirdI\n ) {\n return _c(\n \"v-list-item\",\n {\n key: thirdI,\n staticClass:\n \"menu-item\",\n class:\n _vm.resolveRoute(\n thirdItem.frontUrl\n ) ===\n _vm.activeRoute\n ? \"v-list-item--active\"\n : \"\",\n attrs: {\n ripple: false,\n to: _vm.resolveRoute(\n thirdItem.frontUrl\n ),\n router: \"\",\n exact: \"\",\n nuxt: \"\",\n },\n on: {\n click:\n _vm.sideMenuClose,\n },\n },\n [\n _c(\n \"v-list-item-content\",\n [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n domProps:\n {\n textContent:\n _vm._s(\n thirdItem.name\n ),\n },\n }\n ),\n ],\n 1\n ),\n ],\n 1\n )\n }\n ),\n _c(\n \"v-icon\",\n {\n attrs: {\n slot: \"prepend\",\n color: \"#9CA3AF\",\n small: \"\",\n },\n slot: \"prepend\",\n },\n [_vm._v(\"fi-rr-search\")]\n ),\n ],\n 2\n )\n : _c(\n \"v-list-item\",\n {\n staticClass:\n \"menu-item sub\",\n class:\n _vm.resolveRoute(\n subItem.frontUrl\n ) === _vm.activeRoute\n ? \"v-list-item--active\"\n : \"\",\n attrs: {\n \"data-click\":\n \"sideMenuToggle\",\n to: _vm.resolveRoute(\n subItem.frontUrl\n ),\n router: \"\",\n exact: \"\",\n nuxt: \"\",\n },\n on: {\n click: function (\n $event\n ) {\n return _vm.sideMenuToggle(\n subItem\n )\n },\n },\n },\n [\n _c(\n \"v-list-item-content\",\n [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n domProps: {\n textContent:\n _vm._s(\n subItem.name\n ),\n },\n }\n ),\n ],\n 1\n ),\n ],\n 1\n ),\n ],\n 1\n )\n }\n ),\n 0\n )\n : _c(\"v-list-group\", {\n key: _vm.activeRoute,\n staticClass: \"menu-item\",\n class:\n _vm.resolveRoute(item.frontUrl) ===\n _vm.activeRoute\n ? \"v-list-item--active\"\n : \"\",\n attrs: {\n \"no-action\": \"\",\n \"prepend-icon\": _vm.resolveIcon(\n item.icon\n ),\n \"append-icon\": \"\",\n },\n on: {\n click: function ($event) {\n return _vm.pushIfRoute(item.frontUrl)\n },\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"activator\",\n fn: function () {\n return [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n },\n [_vm._v(_vm._s(item.name))]\n ),\n ]\n },\n proxy: true,\n },\n ],\n null,\n true\n ),\n }),\n ],\n 1\n )\n }),\n 0\n ),\n ])\n : _c(\n \"v-list\",\n [\n _c(\"closed\", {\n attrs: { menuItems: _vm.safeMenuItems },\n }),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"sidebar-footer\" }, [\n _vm.sideMenuStatus\n ? _c(\"div\", { staticClass: \"top-logo\" }, [\n _c(\"img\", {\n attrs: {\n src: _vm.getImageSrc(\"support\"),\n alt: \"sidebar img\",\n },\n }),\n ])\n : _vm._e(),\n _c(\"div\", { staticClass: \"copyright\" }, [\n _c(\"img\", {\n class: _vm.$vuetify.theme.dark ? \"d-none\" : \"\",\n attrs: {\n src: __webpack_require__(/*! @/assets/images/logo-bilfen.png */ \"./src/assets/images/logo-bilfen.png\"),\n alt: \"bilfen logo\",\n },\n }),\n _c(\n \"p\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.sideMenuStatus,\n expression: \"sideMenuStatus\",\n },\n ],\n },\n [\n _vm._v(\n \"Bilfen Yazılım Ekibi © \" +\n _vm._s(new Date().getFullYear())\n ),\n ]\n ),\n ]),\n ]),\n ],\n 1\n )\n : _vm._e(),\n !_vm.$vuetify.breakpoint.smAndUp\n ? _c(\n \"v-toolbar\",\n {\n attrs: { color: \"#4281cb\", flat: \"\", dense: \"\" },\n on: {\n click: function ($event) {\n $event.stopPropagation()\n _vm.drawer = !_vm.drawer\n },\n },\n },\n [\n _c(\n \"v-icon\",\n { staticClass: \"toolbar-icon\", attrs: { small: \"\" } },\n [_vm._v(\"fi-rr-menu-burger\")]\n ),\n ],\n 1\n )\n : _vm._e(),\n ],\n 1\n )\n : _vm._e()\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://@bilfenyazilimekibi/bilpack/./src/components/bf-sidebar/index.vue?./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet%5B1%5D.rules%5B2%5D!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
1758
1758
 
1759
1759
  /***/ }),
1760
1760
 
@@ -367,7 +367,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
367
367
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
368
368
 
369
369
  "use strict";
370
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"bf-header\",\n props: {\n miniVariant: {\n default: false\n },\n sideMenuStatus: {\n default: true\n },\n modeChangeIsVisible: {\n default: true\n },\n },\n data: () => ({\n items: [\n {\n text: 'Anasayfa',\n disabled: true,\n href: 'breadcrumbs_dashboard',\n },\n ],\n isScrollOver65: false,\n descriptionLimit: 60,\n entries: [],\n isLoading: false,\n model: null,\n search: null,\n selectedVal: {id: null, name: null},\n apps: [],\n currentYear: \"\",\n activeYear: null\n }),\n async mounted() {\n const self = this;\n self.selectedVal = {id: null, name: null};\n window.addEventListener('scroll', this.scrollHandler);\n self.scrollHandler();\n await self.fetchApps()\n },\n beforeDestroy() {\n window.removeEventListener('scroll', this.scrollHandler);\n },\n async created() {\n if (this.$auth !== undefined) {\n if (this.$auth.$state.user !== null) {\n this.activeYear = localStorage.getItem('activeYear')\n\n\n this.$auth.$state.user.menu.forEach(val => {\n if (val.children !== undefined) {\n val.children.forEach(subVal => {\n this.entries.push(subVal)\n })\n } else {\n this.entries.push(val)\n }\n })\n\n try {\n const emsEnv = this.$bilpack.env.ems;\n this.$axios.$post(emsEnv + '/year/active').then((res) => {\n this.activeYear = JSON.parse(res.data.results).yearName;\n localStorage.setItem('activeYear', JSON.parse(res.data.results).yearName)\n })\n }catch (e) {\n console.error('can not fetch active year', e)\n }\n\n }\n }\n },\n methods: {\n async fetchApps() {\n const self = this;\n\n try {\n const bilappsEnv = self.$bilpack.env.bilapps;\n const {data} = await self.$axios.$post(bilappsEnv + '/apps')\n self.apps = data\n } catch (e) {\n console.error('fetch apps error', e)\n self.apps = []\n }\n\n },\n setLogo() {\n const self = this;\n\n const key = self.$vuetify.theme.dark ? 'dark_x' : 'light_x';\n const logoSideBar = self.$bilpack.settings.navLogo\n try {\n return logoSideBar[key] !== undefined ? __webpack_require__(\"./src/components/bf-header sync recursive\")(logoSideBar[key]) : ''\n } catch (e) {\n return ''\n }\n\n },\n darkMode() {\n this.$vuetify.theme.dark = !this.$vuetify.theme.dark\n localStorage.setItem('theme', this.$vuetify.theme.dark)\n },\n goToProject(url) {\n window.open(url + '?token=' + localStorage.getItem('auth._token.local'), '_blank')\n },\n scrollHandler(e) {\n this.isScrollOver65 = window.pageYOffset > 65;\n },\n goTo() {\n this.$router.push({\n path: this.selectedVal.frontUrl\n })\n },\n async logout() {\n await this.$auth.logout();\n window.location.reload()\n },\n },\n computed: {\n isActiveYear() {\n return this.currentYear;\n },\n getMiniVariant() {\n return this.$store.state.miniVariant\n },\n getToken() {\n return this.$store.state.token\n }\n }\n});\n\n\n//# sourceURL=webpack://bilpack/./src/components/bf-header/index.vue?./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
370
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"bf-header\",\n props: {\n miniVariant: {\n default: false\n },\n sideMenuStatus: {\n default: true\n },\n modeChangeIsVisible: {\n default: true\n },\n },\n data: () => ({\n items: [\n {\n text: 'Anasayfa',\n disabled: true,\n href: 'breadcrumbs_dashboard',\n },\n ],\n isScrollOver65: false,\n descriptionLimit: 60,\n entries: [],\n isLoading: false,\n model: null,\n search: null,\n selectedVal: {id: null, name: null},\n apps: [],\n currentYear: \"\",\n activeYear: null\n }),\n async mounted() {\n const self = this;\n self.selectedVal = {id: null, name: null};\n window.addEventListener('scroll', this.scrollHandler);\n self.scrollHandler();\n await self.fetchApps()\n },\n beforeDestroy() {\n window.removeEventListener('scroll', this.scrollHandler);\n },\n async created() {\n if (this.$auth !== undefined) {\n if (this.$auth.$state.user !== null) {\n this.activeYear = localStorage.getItem('activeYear')\n\n const menuItems = Array.isArray(this.$auth.$state.user.menu)\n ? this.$auth.$state.user.menu\n : []\n menuItems.forEach((val) => {\n if (Array.isArray(val.children) && val.children.length > 0) {\n val.children.forEach((subVal) => {\n this.entries.push(subVal)\n })\n } else {\n this.entries.push(val)\n }\n })\n\n try {\n const emsEnv = this.$bilpack.env.ems;\n this.$axios.$post(emsEnv + '/year/active').then((res) => {\n this.activeYear = JSON.parse(res.data.results).yearName;\n localStorage.setItem('activeYear', JSON.parse(res.data.results).yearName)\n })\n }catch (e) {\n console.error('can not fetch active year', e)\n }\n\n }\n }\n },\n methods: {\n async fetchApps() {\n const self = this;\n\n try {\n const bilappsEnv = self.$bilpack.env.bilapps;\n const {data} = await self.$axios.$post(bilappsEnv + '/apps')\n self.apps = data\n } catch (e) {\n console.error('fetch apps error', e)\n self.apps = []\n }\n\n },\n setLogo() {\n const self = this;\n\n const key = self.$vuetify.theme.dark ? 'dark_x' : 'light_x';\n const logoSideBar = self.$bilpack.settings.navLogo\n try {\n return logoSideBar[key] !== undefined ? __webpack_require__(\"./src/components/bf-header sync recursive\")(logoSideBar[key]) : ''\n } catch (e) {\n return ''\n }\n\n },\n darkMode() {\n this.$vuetify.theme.dark = !this.$vuetify.theme.dark\n localStorage.setItem('theme', this.$vuetify.theme.dark)\n },\n goToProject(url) {\n window.open(url + '?token=' + localStorage.getItem('auth._token.local'), '_blank')\n },\n scrollHandler(e) {\n this.isScrollOver65 = window.pageYOffset > 65;\n },\n goTo() {\n const route =\n this.selectedVal && typeof this.selectedVal.frontUrl === 'string'\n ? this.selectedVal.frontUrl\n : ''\n if (route === '') return\n this.$router.push({\n path: route\n })\n },\n async logout() {\n await this.$auth.logout();\n window.location.reload()\n },\n },\n computed: {\n isActiveYear() {\n return this.currentYear;\n },\n getMiniVariant() {\n return this.$store.state.miniVariant\n },\n getToken() {\n return this.$store.state.token\n }\n }\n});\n\n\n//# sourceURL=webpack://bilpack/./src/components/bf-header/index.vue?./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
371
371
 
372
372
  /***/ }),
373
373
 
@@ -587,7 +587,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
587
587
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
588
588
 
589
589
  "use strict";
590
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _components_closed__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/closed */ \"./src/components/bf-sidebar/components/closed.vue\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"bf-sidebar\",\n components: { closed: _components_closed__WEBPACK_IMPORTED_MODULE_0__[\"default\"] },\n // props: ['miniVariant', 'sideMenuStatus'],\n props: {\n miniVariant: {\n default: false,\n },\n sideMenuStatus: {\n default: true,\n },\n modeChangeIsVisible: {\n default: true,\n },\n },\n data() {\n return {\n darkMode: false,\n darkModeSwitch: false,\n isLogged: false,\n clipped: true,\n drawer: true,\n fixed: true,\n sideMenu: true,\n activeRoute: \"\",\n // miniVariant: false,\n right: true,\n rightDrawer: false,\n title: \"Bilfen\",\n };\n },\n created() {\n const self = this;\n setTimeout(() => {\n this.darkModeSwitch = this.$vuetify.theme.dark;\n });\n self.spliteRoute();\n },\n methods: {\n sideMenuClose() {\n for (let i = 0; i < this.$auth.$state.user.menu.length; i++) {\n const groupRef = this.$refs[`menuGroup${i}`];\n if (groupRef && groupRef[0]) {\n groupRef[0].isActive = false;\n }\n }\n },\n sideMenuOpen() {\n for (let i = 0; i < this.$auth.$state.user.menu.length; i++) {\n const menuItem = this.$auth.$state.user.menu[i];\n const groupRef = this.$refs[`menuGroup${i}`];\n\n if (groupRef && groupRef[0]) {\n if (menuItem && menuItem.children) {\n menuItem.children.forEach((child) => {\n if (child.frontUrl === this.activeRoute) {\n groupRef[0].isActive = true;\n return;\n }\n });\n }\n }\n }\n },\n spliteRoute() {\n const self = this;\n const routePath = this.$route.path;\n const spliteRoute = routePath.split(\"/\");\n self.activeRoute = \"/\" + spliteRoute[1];\n },\n sideMenuToggle(item) {\n const self = this;\n },\n async logout() {\n await this.$auth.logout();\n await this.$router.push(\"/login\");\n this.sideMenu = true;\n this.miniVariant = false;\n },\n getImageSrc(key) {\n const self = this;\n try {\n const imgSettings = self.$bilpack.settings.images;\n const isDark = self.$vuetify.theme.dark;\n const image = imgSettings[key];\n\n return isDark && image.dark !== undefined && image.dark !== \"\"\n ? image.dark\n : image.light !== undefined && image.light !== \"\"\n ? image.light\n : \"\";\n } catch (e) {\n return \"\";\n }\n },\n setLogo(sideMenuStatus) {\n const self = this;\n\n const isDark = self.$vuetify.theme.dark;\n const key = sideMenuStatus\n ? isDark\n ? \"dark_y\"\n : \"light_y\"\n : isDark\n ? \"dark_x\"\n : \"light_x\";\n const logoSideBar = self.$bilpack.settings.navLogo;\n\n try {\n return logoSideBar[key] !== undefined ? logoSideBar[key] : \"\";\n } catch (e) {\n return \"\";\n }\n },\n checkActive() {\n const self = this;\n const currentPath = self.$route.path;\n // this.$refs['menuGroup0'][0].isActive = true\n // console.log('containsValue', self.containsValue(self.$auth.$state.user.menu, currentPath, 'frontUrl'))\n // this.$auth.$state.user.menu\n },\n containsValue(arr, val, key) {\n const self = this;\n return arr.some(function (item) {\n if (\n typeof item === \"object\" &&\n item !== null &&\n item.hasOwnProperty(key)\n ) {\n if (item[key] === val) {\n return true;\n } else if (Array.isArray(item[key])) {\n return self.containsValue(item[key], val, key);\n }\n } else if (Array.isArray(item)) {\n return self.containsValue(item, val, key);\n } else if (\n item !== null &&\n item.children !== null &&\n Array.isArray(item.children)\n ) {\n return self.containsValue(item, val, key);\n }\n return false;\n });\n },\n },\n watch: {\n darkModeSwitch(val) {\n localStorage.setItem(\"theme\", val);\n this.$vuetify.theme.dark = val;\n },\n sideMenuStatus(val) {\n if (val) {\n setTimeout(() => {\n this.checkActive();\n });\n }\n },\n $route(to, from) {\n const self = this;\n self.spliteRoute();\n if (to.name == \"index\") {\n self.sideMenuClose();\n } else if (self.activeRoute.length > 1) {\n self.sideMenuOpen();\n }\n },\n },\n});\n\n\n//# sourceURL=webpack://bilpack/./src/components/bf-sidebar/index.vue?./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
590
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _components_closed__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/closed */ \"./src/components/bf-sidebar/components/closed.vue\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"bf-sidebar\",\n components: { closed: _components_closed__WEBPACK_IMPORTED_MODULE_0__[\"default\"] },\n // props: ['miniVariant', 'sideMenuStatus'],\n props: {\n miniVariant: {\n default: false,\n },\n sideMenuStatus: {\n default: true,\n },\n modeChangeIsVisible: {\n default: true,\n },\n },\n data() {\n return {\n darkMode: false,\n darkModeSwitch: false,\n isLogged: false,\n clipped: true,\n drawer: true,\n fixed: true,\n sideMenu: true,\n activeRoute: \"\",\n // miniVariant: false,\n right: true,\n rightDrawer: false,\n title: \"Bilfen\",\n };\n },\n computed: {\n safeMenuItems() {\n const authUser =\n this.$auth && this.$auth.$state ? this.$auth.$state.user : null;\n return authUser && Array.isArray(authUser.menu) ? authUser.menu : [];\n },\n },\n created() {\n const self = this;\n setTimeout(() => {\n this.darkModeSwitch = this.$vuetify.theme.dark;\n });\n self.spliteRoute();\n },\n methods: {\n getChildren(item) {\n return item && Array.isArray(item.children) ? item.children : [];\n },\n hasChildren(item) {\n return this.getChildren(item).length > 0;\n },\n resolveIcon(icon) {\n return typeof icon === \"string\" && icon.trim() !== \"\"\n ? icon\n : \"fi-rr-user\";\n },\n resolveRoute(frontUrl) {\n return typeof frontUrl === \"string\" ? frontUrl : \"\";\n },\n pushIfRoute(frontUrl) {\n const route = this.resolveRoute(frontUrl);\n if (route !== \"\") this.$router.push(route);\n },\n sideMenuClose() {\n for (let i = 0; i < this.safeMenuItems.length; i++) {\n const groupRef = this.$refs[`menuGroup${i}`];\n if (groupRef && groupRef[0]) {\n groupRef[0].isActive = false;\n }\n }\n },\n sideMenuOpen() {\n for (let i = 0; i < this.safeMenuItems.length; i++) {\n const menuItem = this.safeMenuItems[i];\n const groupRef = this.$refs[`menuGroup${i}`];\n\n if (groupRef && groupRef[0]) {\n if (this.hasChildren(menuItem)) {\n this.getChildren(menuItem).forEach((child) => {\n if (this.resolveRoute(child.frontUrl) === this.activeRoute) {\n groupRef[0].isActive = true;\n return;\n }\n });\n }\n }\n }\n },\n spliteRoute() {\n const self = this;\n const routePath = this.$route.path;\n const spliteRoute = routePath.split(\"/\");\n self.activeRoute = \"/\" + spliteRoute[1];\n },\n sideMenuToggle(item) {\n const self = this;\n },\n async logout() {\n await this.$auth.logout();\n await this.$router.push(\"/login\");\n this.sideMenu = true;\n this.miniVariant = false;\n },\n getImageSrc(key) {\n const self = this;\n try {\n const imgSettings = self.$bilpack.settings.images;\n const isDark = self.$vuetify.theme.dark;\n const image = imgSettings[key];\n\n return isDark && image.dark !== undefined && image.dark !== \"\"\n ? image.dark\n : image.light !== undefined && image.light !== \"\"\n ? image.light\n : \"\";\n } catch (e) {\n return \"\";\n }\n },\n setLogo(sideMenuStatus) {\n const self = this;\n\n const isDark = self.$vuetify.theme.dark;\n const key = sideMenuStatus\n ? isDark\n ? \"dark_y\"\n : \"light_y\"\n : isDark\n ? \"dark_x\"\n : \"light_x\";\n const logoSideBar = self.$bilpack.settings.navLogo;\n\n try {\n return logoSideBar[key] !== undefined ? logoSideBar[key] : \"\";\n } catch (e) {\n return \"\";\n }\n },\n checkActive() {\n const self = this;\n const currentPath = self.$route.path;\n // this.$refs['menuGroup0'][0].isActive = true\n // console.log('containsValue', self.containsValue(self.$auth.$state.user.menu, currentPath, 'frontUrl'))\n // this.$auth.$state.user.menu\n },\n containsValue(arr, val, key) {\n const self = this;\n if (!Array.isArray(arr)) return false;\n return arr.some(function (item) {\n if (\n typeof item === \"object\" &&\n item !== null &&\n item.hasOwnProperty(key)\n ) {\n if (item[key] === val) {\n return true;\n } else if (Array.isArray(item[key])) {\n return self.containsValue(item[key], val, key);\n }\n } else if (Array.isArray(item)) {\n return self.containsValue(item, val, key);\n } else if (\n item !== null &&\n item.children !== null &&\n Array.isArray(item.children)\n ) {\n return self.containsValue(item, val, key);\n }\n return false;\n });\n },\n },\n watch: {\n darkModeSwitch(val) {\n localStorage.setItem(\"theme\", val);\n this.$vuetify.theme.dark = val;\n },\n sideMenuStatus(val) {\n if (val) {\n setTimeout(() => {\n this.checkActive();\n });\n }\n },\n $route(to, from) {\n const self = this;\n self.spliteRoute();\n if (to.name == \"index\") {\n self.sideMenuClose();\n } else if (self.activeRoute.length > 1) {\n self.sideMenuOpen();\n }\n },\n },\n});\n\n\n//# sourceURL=webpack://bilpack/./src/components/bf-sidebar/index.vue?./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
591
591
 
592
592
  /***/ }),
593
593
 
@@ -1764,7 +1764,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
1764
1764
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1765
1765
 
1766
1766
  "use strict";
1767
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ render: () => (/* binding */ render),\n/* harmony export */ staticRenderFns: () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _vm.$auth !== undefined\n ? _c(\n \"div\",\n { staticClass: \"bf-sidebar\" },\n [\n _vm.$auth.loggedIn\n ? _c(\n \"v-navigation-drawer\",\n {\n ref: \"navDrawer\",\n class: [_vm.sideMenuStatus ? \"open\" : \"\"],\n attrs: {\n \"mini-variant\": _vm.miniVariant,\n \"mini-variant-width\": \"100\",\n permanent: _vm.$vuetify.breakpoint.smAndUp,\n fixed: \"\",\n app: \"\",\n value: \"visible\",\n \"data-class\": _vm.sideMenuStatus ? \"full-width\" : \"\",\n width: \"250\",\n },\n model: {\n value: _vm.drawer,\n callback: function ($$v) {\n _vm.drawer = $$v\n },\n expression: \"drawer\",\n },\n },\n [\n _vm.$vuetify.breakpoint.smAndUp &&\n _vm.setLogo(_vm.sideMenuStatus) !== \"\"\n ? _c(\n \"div\",\n { staticClass: \"sidebar-logo-area\" },\n [\n _c(\n \"router-link\",\n {\n staticClass: \"side-logo\",\n class: [_vm.miniVariant ? \"mini-variant\" : \"\"],\n attrs: { to: \"/\" },\n },\n [\n _vm.sideMenuStatus\n ? _c(\"img\", {\n attrs: {\n src: _vm.setLogo(_vm.sideMenuStatus),\n },\n })\n : _c(\"img\", {\n attrs: {\n width: \"30\",\n height: \"35\",\n src: _vm.setLogo(_vm.sideMenuStatus),\n },\n }),\n ]\n ),\n ],\n 1\n )\n : _vm._e(),\n _vm.sideMenuStatus\n ? _c(\"v-list\", [\n _c(\n \"div\",\n { staticClass: \"list-content\" },\n _vm._l(\n _vm.$auth.$state.user.menu,\n function (item, i) {\n return _c(\n \"span\",\n { key: i },\n [\n item.children !== undefined\n ? _c(\n \"v-list-group\",\n {\n ref: `menuGroup${i}`,\n refInFor: true,\n staticClass: \"menu-item\",\n attrs: {\n ripple: false,\n \"prepend-icon\":\n item.icon !== \"\"\n ? item.icon\n : \"fi-rr-user\",\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"activator\",\n fn: function () {\n return [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n },\n [\n _vm._v(\n _vm._s(item.name)\n ),\n ]\n ),\n ]\n },\n proxy: true,\n },\n ],\n null,\n true\n ),\n },\n _vm._l(\n item.children,\n function (subItem, subI) {\n return _c(\n \"span\",\n { key: subI },\n [\n subItem.children !==\n undefined &&\n subItem.children.length > 0\n ? _c(\n \"v-list-group\",\n {\n staticClass:\n \"menu-item\",\n attrs: {\n \"no-action\": \"\",\n \"sub-group\": \"\",\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"activator\",\n fn: function () {\n return [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n },\n [\n _vm._v(\n _vm._s(\n subItem.name\n )\n ),\n ]\n ),\n ]\n },\n proxy: true,\n },\n ],\n null,\n true\n ),\n },\n [\n _vm._l(\n subItem.children,\n function (\n thirdItem,\n thirdI\n ) {\n return _c(\n \"v-list-item\",\n {\n key: thirdI,\n staticClass:\n \"menu-item\",\n class:\n thirdItem.frontUrl ===\n _vm.activeRoute\n ? \"v-list-item--active\"\n : \"\",\n attrs: {\n ripple: false,\n to: thirdItem.frontUrl,\n router: \"\",\n exact: \"\",\n nuxt: \"\",\n },\n on: {\n click:\n _vm.sideMenuClose,\n },\n },\n [\n _c(\n \"v-list-item-content\",\n [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n domProps:\n {\n textContent:\n _vm._s(\n thirdItem.name\n ),\n },\n }\n ),\n ],\n 1\n ),\n ],\n 1\n )\n }\n ),\n _c(\n \"v-icon\",\n {\n attrs: {\n slot: \"prepend\",\n color: \"#9CA3AF\",\n small: \"\",\n },\n slot: \"prepend\",\n },\n [\n _vm._v(\n \"fi-rr-search\"\n ),\n ]\n ),\n ],\n 2\n )\n : _c(\n \"v-list-item\",\n {\n staticClass:\n \"menu-item sub\",\n class:\n subItem.frontUrl ===\n _vm.activeRoute\n ? \"v-list-item--active\"\n : \"\",\n attrs: {\n \"data-click\":\n \"sideMenuToggle\",\n to: subItem.frontUrl,\n router: \"\",\n exact: \"\",\n nuxt: \"\",\n },\n on: {\n click: function (\n $event\n ) {\n return _vm.sideMenuToggle(\n subItem\n )\n },\n },\n },\n [\n _c(\n \"v-list-item-content\",\n [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n domProps: {\n textContent:\n _vm._s(\n subItem.name\n ),\n },\n }\n ),\n ],\n 1\n ),\n ],\n 1\n ),\n ],\n 1\n )\n }\n ),\n 0\n )\n : _c(\"v-list-group\", {\n key: _vm.activeRoute,\n staticClass: \"menu-item\",\n class:\n item.frontUrl === _vm.activeRoute\n ? \"v-list-item--active\"\n : \"\",\n attrs: {\n \"no-action\": \"\",\n \"prepend-icon\":\n item.icon !== \"\"\n ? item.icon\n : \"fi-rr-user\",\n \"append-icon\": \"\",\n },\n on: {\n click: function ($event) {\n return _vm.$router.push(\n item.frontUrl\n )\n },\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"activator\",\n fn: function () {\n return [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n },\n [_vm._v(_vm._s(item.name))]\n ),\n ]\n },\n proxy: true,\n },\n ],\n null,\n true\n ),\n }),\n ],\n 1\n )\n }\n ),\n 0\n ),\n ])\n : _c(\n \"v-list\",\n [\n _c(\"closed\", {\n attrs: { menuItems: _vm.$auth.$state.user.menu },\n }),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"sidebar-footer\" }, [\n _vm.sideMenuStatus\n ? _c(\"div\", { staticClass: \"top-logo\" }, [\n _c(\"img\", {\n attrs: {\n src: _vm.getImageSrc(\"support\"),\n alt: \"sidebar img\",\n },\n }),\n ])\n : _vm._e(),\n _c(\"div\", { staticClass: \"copyright\" }, [\n _c(\"img\", {\n class: _vm.$vuetify.theme.dark ? \"d-none\" : \"\",\n attrs: {\n src: __webpack_require__(/*! @/assets/images/logo-bilfen.png */ \"./src/assets/images/logo-bilfen.png\"),\n alt: \"bilfen logo\",\n },\n }),\n _c(\n \"p\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.sideMenuStatus,\n expression: \"sideMenuStatus\",\n },\n ],\n },\n [\n _vm._v(\n \"Bilfen Yazılım Ekibi © \" +\n _vm._s(new Date().getFullYear())\n ),\n ]\n ),\n ]),\n ]),\n ],\n 1\n )\n : _vm._e(),\n !_vm.$vuetify.breakpoint.smAndUp\n ? _c(\n \"v-toolbar\",\n {\n attrs: { color: \"#4281cb\", flat: \"\", dense: \"\" },\n on: {\n click: function ($event) {\n $event.stopPropagation()\n _vm.drawer = !_vm.drawer\n },\n },\n },\n [\n _c(\n \"v-icon\",\n { staticClass: \"toolbar-icon\", attrs: { small: \"\" } },\n [_vm._v(\"fi-rr-menu-burger\")]\n ),\n ],\n 1\n )\n : _vm._e(),\n ],\n 1\n )\n : _vm._e()\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://bilpack/./src/components/bf-sidebar/index.vue?./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet%5B1%5D.rules%5B2%5D!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
1767
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ render: () => (/* binding */ render),\n/* harmony export */ staticRenderFns: () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _vm.$auth !== undefined\n ? _c(\n \"div\",\n { staticClass: \"bf-sidebar\" },\n [\n _vm.$auth.loggedIn\n ? _c(\n \"v-navigation-drawer\",\n {\n ref: \"navDrawer\",\n class: [_vm.sideMenuStatus ? \"open\" : \"\"],\n attrs: {\n \"mini-variant\": _vm.miniVariant,\n \"mini-variant-width\": \"100\",\n permanent: _vm.$vuetify.breakpoint.smAndUp,\n fixed: \"\",\n app: \"\",\n value: \"visible\",\n \"data-class\": _vm.sideMenuStatus ? \"full-width\" : \"\",\n width: \"250\",\n },\n model: {\n value: _vm.drawer,\n callback: function ($$v) {\n _vm.drawer = $$v\n },\n expression: \"drawer\",\n },\n },\n [\n _vm.$vuetify.breakpoint.smAndUp &&\n _vm.setLogo(_vm.sideMenuStatus) !== \"\"\n ? _c(\n \"div\",\n { staticClass: \"sidebar-logo-area\" },\n [\n _c(\n \"router-link\",\n {\n staticClass: \"side-logo\",\n class: [_vm.miniVariant ? \"mini-variant\" : \"\"],\n attrs: { to: \"/\" },\n },\n [\n _vm.sideMenuStatus\n ? _c(\"img\", {\n attrs: {\n src: _vm.setLogo(_vm.sideMenuStatus),\n },\n })\n : _c(\"img\", {\n attrs: {\n width: \"30\",\n height: \"35\",\n src: _vm.setLogo(_vm.sideMenuStatus),\n },\n }),\n ]\n ),\n ],\n 1\n )\n : _vm._e(),\n _vm.sideMenuStatus\n ? _c(\"v-list\", [\n _c(\n \"div\",\n { staticClass: \"list-content\" },\n _vm._l(_vm.safeMenuItems, function (item, i) {\n return _c(\n \"span\",\n { key: i },\n [\n _vm.hasChildren(item)\n ? _c(\n \"v-list-group\",\n {\n ref: `menuGroup${i}`,\n refInFor: true,\n staticClass: \"menu-item\",\n attrs: {\n ripple: false,\n \"prepend-icon\": _vm.resolveIcon(\n item.icon\n ),\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"activator\",\n fn: function () {\n return [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n },\n [_vm._v(_vm._s(item.name))]\n ),\n ]\n },\n proxy: true,\n },\n ],\n null,\n true\n ),\n },\n _vm._l(\n _vm.getChildren(item),\n function (subItem, subI) {\n return _c(\n \"span\",\n { key: subI },\n [\n _vm.hasChildren(subItem)\n ? _c(\n \"v-list-group\",\n {\n staticClass: \"menu-item\",\n attrs: {\n \"no-action\": \"\",\n \"sub-group\": \"\",\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"activator\",\n fn: function () {\n return [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n },\n [\n _vm._v(\n _vm._s(\n subItem.name\n )\n ),\n ]\n ),\n ]\n },\n proxy: true,\n },\n ],\n null,\n true\n ),\n },\n [\n _vm._l(\n _vm.getChildren(\n subItem\n ),\n function (\n thirdItem,\n thirdI\n ) {\n return _c(\n \"v-list-item\",\n {\n key: thirdI,\n staticClass:\n \"menu-item\",\n class:\n _vm.resolveRoute(\n thirdItem.frontUrl\n ) ===\n _vm.activeRoute\n ? \"v-list-item--active\"\n : \"\",\n attrs: {\n ripple: false,\n to: _vm.resolveRoute(\n thirdItem.frontUrl\n ),\n router: \"\",\n exact: \"\",\n nuxt: \"\",\n },\n on: {\n click:\n _vm.sideMenuClose,\n },\n },\n [\n _c(\n \"v-list-item-content\",\n [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n domProps:\n {\n textContent:\n _vm._s(\n thirdItem.name\n ),\n },\n }\n ),\n ],\n 1\n ),\n ],\n 1\n )\n }\n ),\n _c(\n \"v-icon\",\n {\n attrs: {\n slot: \"prepend\",\n color: \"#9CA3AF\",\n small: \"\",\n },\n slot: \"prepend\",\n },\n [_vm._v(\"fi-rr-search\")]\n ),\n ],\n 2\n )\n : _c(\n \"v-list-item\",\n {\n staticClass:\n \"menu-item sub\",\n class:\n _vm.resolveRoute(\n subItem.frontUrl\n ) === _vm.activeRoute\n ? \"v-list-item--active\"\n : \"\",\n attrs: {\n \"data-click\":\n \"sideMenuToggle\",\n to: _vm.resolveRoute(\n subItem.frontUrl\n ),\n router: \"\",\n exact: \"\",\n nuxt: \"\",\n },\n on: {\n click: function (\n $event\n ) {\n return _vm.sideMenuToggle(\n subItem\n )\n },\n },\n },\n [\n _c(\n \"v-list-item-content\",\n [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n domProps: {\n textContent:\n _vm._s(\n subItem.name\n ),\n },\n }\n ),\n ],\n 1\n ),\n ],\n 1\n ),\n ],\n 1\n )\n }\n ),\n 0\n )\n : _c(\"v-list-group\", {\n key: _vm.activeRoute,\n staticClass: \"menu-item\",\n class:\n _vm.resolveRoute(item.frontUrl) ===\n _vm.activeRoute\n ? \"v-list-item--active\"\n : \"\",\n attrs: {\n \"no-action\": \"\",\n \"prepend-icon\": _vm.resolveIcon(\n item.icon\n ),\n \"append-icon\": \"\",\n },\n on: {\n click: function ($event) {\n return _vm.pushIfRoute(item.frontUrl)\n },\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"activator\",\n fn: function () {\n return [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n },\n [_vm._v(_vm._s(item.name))]\n ),\n ]\n },\n proxy: true,\n },\n ],\n null,\n true\n ),\n }),\n ],\n 1\n )\n }),\n 0\n ),\n ])\n : _c(\n \"v-list\",\n [\n _c(\"closed\", {\n attrs: { menuItems: _vm.safeMenuItems },\n }),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"sidebar-footer\" }, [\n _vm.sideMenuStatus\n ? _c(\"div\", { staticClass: \"top-logo\" }, [\n _c(\"img\", {\n attrs: {\n src: _vm.getImageSrc(\"support\"),\n alt: \"sidebar img\",\n },\n }),\n ])\n : _vm._e(),\n _c(\"div\", { staticClass: \"copyright\" }, [\n _c(\"img\", {\n class: _vm.$vuetify.theme.dark ? \"d-none\" : \"\",\n attrs: {\n src: __webpack_require__(/*! @/assets/images/logo-bilfen.png */ \"./src/assets/images/logo-bilfen.png\"),\n alt: \"bilfen logo\",\n },\n }),\n _c(\n \"p\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.sideMenuStatus,\n expression: \"sideMenuStatus\",\n },\n ],\n },\n [\n _vm._v(\n \"Bilfen Yazılım Ekibi © \" +\n _vm._s(new Date().getFullYear())\n ),\n ]\n ),\n ]),\n ]),\n ],\n 1\n )\n : _vm._e(),\n !_vm.$vuetify.breakpoint.smAndUp\n ? _c(\n \"v-toolbar\",\n {\n attrs: { color: \"#4281cb\", flat: \"\", dense: \"\" },\n on: {\n click: function ($event) {\n $event.stopPropagation()\n _vm.drawer = !_vm.drawer\n },\n },\n },\n [\n _c(\n \"v-icon\",\n { staticClass: \"toolbar-icon\", attrs: { small: \"\" } },\n [_vm._v(\"fi-rr-menu-burger\")]\n ),\n ],\n 1\n )\n : _vm._e(),\n ],\n 1\n )\n : _vm._e()\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://bilpack/./src/components/bf-sidebar/index.vue?./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet%5B1%5D.rules%5B2%5D!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
1768
1768
 
1769
1769
  /***/ }),
1770
1770
 
@@ -367,7 +367,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
367
367
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
368
368
 
369
369
  "use strict";
370
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"bf-header\",\n props: {\n miniVariant: {\n default: false\n },\n sideMenuStatus: {\n default: true\n },\n modeChangeIsVisible: {\n default: true\n },\n },\n data: () => ({\n items: [\n {\n text: 'Anasayfa',\n disabled: true,\n href: 'breadcrumbs_dashboard',\n },\n ],\n isScrollOver65: false,\n descriptionLimit: 60,\n entries: [],\n isLoading: false,\n model: null,\n search: null,\n selectedVal: {id: null, name: null},\n apps: [],\n currentYear: \"\",\n activeYear: null\n }),\n async mounted() {\n const self = this;\n self.selectedVal = {id: null, name: null};\n window.addEventListener('scroll', this.scrollHandler);\n self.scrollHandler();\n await self.fetchApps()\n },\n beforeDestroy() {\n window.removeEventListener('scroll', this.scrollHandler);\n },\n async created() {\n if (this.$auth !== undefined) {\n if (this.$auth.$state.user !== null) {\n this.activeYear = localStorage.getItem('activeYear')\n\n\n this.$auth.$state.user.menu.forEach(val => {\n if (val.children !== undefined) {\n val.children.forEach(subVal => {\n this.entries.push(subVal)\n })\n } else {\n this.entries.push(val)\n }\n })\n\n try {\n const emsEnv = this.$bilpack.env.ems;\n this.$axios.$post(emsEnv + '/year/active').then((res) => {\n this.activeYear = JSON.parse(res.data.results).yearName;\n localStorage.setItem('activeYear', JSON.parse(res.data.results).yearName)\n })\n }catch (e) {\n console.error('can not fetch active year', e)\n }\n\n }\n }\n },\n methods: {\n async fetchApps() {\n const self = this;\n\n try {\n const bilappsEnv = self.$bilpack.env.bilapps;\n const {data} = await self.$axios.$post(bilappsEnv + '/apps')\n self.apps = data\n } catch (e) {\n console.error('fetch apps error', e)\n self.apps = []\n }\n\n },\n setLogo() {\n const self = this;\n\n const key = self.$vuetify.theme.dark ? 'dark_x' : 'light_x';\n const logoSideBar = self.$bilpack.settings.navLogo\n try {\n return logoSideBar[key] !== undefined ? __webpack_require__(\"./src/components/bf-header sync recursive\")(logoSideBar[key]) : ''\n } catch (e) {\n return ''\n }\n\n },\n darkMode() {\n this.$vuetify.theme.dark = !this.$vuetify.theme.dark\n localStorage.setItem('theme', this.$vuetify.theme.dark)\n },\n goToProject(url) {\n window.open(url + '?token=' + localStorage.getItem('auth._token.local'), '_blank')\n },\n scrollHandler(e) {\n this.isScrollOver65 = window.pageYOffset > 65;\n },\n goTo() {\n this.$router.push({\n path: this.selectedVal.frontUrl\n })\n },\n async logout() {\n await this.$auth.logout();\n window.location.reload()\n },\n },\n computed: {\n isActiveYear() {\n return this.currentYear;\n },\n getMiniVariant() {\n return this.$store.state.miniVariant\n },\n getToken() {\n return this.$store.state.token\n }\n }\n});\n\n\n//# sourceURL=webpack://bilpack/./src/components/bf-header/index.vue?./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
370
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"bf-header\",\n props: {\n miniVariant: {\n default: false\n },\n sideMenuStatus: {\n default: true\n },\n modeChangeIsVisible: {\n default: true\n },\n },\n data: () => ({\n items: [\n {\n text: 'Anasayfa',\n disabled: true,\n href: 'breadcrumbs_dashboard',\n },\n ],\n isScrollOver65: false,\n descriptionLimit: 60,\n entries: [],\n isLoading: false,\n model: null,\n search: null,\n selectedVal: {id: null, name: null},\n apps: [],\n currentYear: \"\",\n activeYear: null\n }),\n async mounted() {\n const self = this;\n self.selectedVal = {id: null, name: null};\n window.addEventListener('scroll', this.scrollHandler);\n self.scrollHandler();\n await self.fetchApps()\n },\n beforeDestroy() {\n window.removeEventListener('scroll', this.scrollHandler);\n },\n async created() {\n if (this.$auth !== undefined) {\n if (this.$auth.$state.user !== null) {\n this.activeYear = localStorage.getItem('activeYear')\n\n const menuItems = Array.isArray(this.$auth.$state.user.menu)\n ? this.$auth.$state.user.menu\n : []\n menuItems.forEach((val) => {\n if (Array.isArray(val.children) && val.children.length > 0) {\n val.children.forEach((subVal) => {\n this.entries.push(subVal)\n })\n } else {\n this.entries.push(val)\n }\n })\n\n try {\n const emsEnv = this.$bilpack.env.ems;\n this.$axios.$post(emsEnv + '/year/active').then((res) => {\n this.activeYear = JSON.parse(res.data.results).yearName;\n localStorage.setItem('activeYear', JSON.parse(res.data.results).yearName)\n })\n }catch (e) {\n console.error('can not fetch active year', e)\n }\n\n }\n }\n },\n methods: {\n async fetchApps() {\n const self = this;\n\n try {\n const bilappsEnv = self.$bilpack.env.bilapps;\n const {data} = await self.$axios.$post(bilappsEnv + '/apps')\n self.apps = data\n } catch (e) {\n console.error('fetch apps error', e)\n self.apps = []\n }\n\n },\n setLogo() {\n const self = this;\n\n const key = self.$vuetify.theme.dark ? 'dark_x' : 'light_x';\n const logoSideBar = self.$bilpack.settings.navLogo\n try {\n return logoSideBar[key] !== undefined ? __webpack_require__(\"./src/components/bf-header sync recursive\")(logoSideBar[key]) : ''\n } catch (e) {\n return ''\n }\n\n },\n darkMode() {\n this.$vuetify.theme.dark = !this.$vuetify.theme.dark\n localStorage.setItem('theme', this.$vuetify.theme.dark)\n },\n goToProject(url) {\n window.open(url + '?token=' + localStorage.getItem('auth._token.local'), '_blank')\n },\n scrollHandler(e) {\n this.isScrollOver65 = window.pageYOffset > 65;\n },\n goTo() {\n const route =\n this.selectedVal && typeof this.selectedVal.frontUrl === 'string'\n ? this.selectedVal.frontUrl\n : ''\n if (route === '') return\n this.$router.push({\n path: route\n })\n },\n async logout() {\n await this.$auth.logout();\n window.location.reload()\n },\n },\n computed: {\n isActiveYear() {\n return this.currentYear;\n },\n getMiniVariant() {\n return this.$store.state.miniVariant\n },\n getToken() {\n return this.$store.state.token\n }\n }\n});\n\n\n//# sourceURL=webpack://bilpack/./src/components/bf-header/index.vue?./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
371
371
 
372
372
  /***/ }),
373
373
 
@@ -587,7 +587,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
587
587
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
588
588
 
589
589
  "use strict";
590
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _components_closed__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/closed */ \"./src/components/bf-sidebar/components/closed.vue\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"bf-sidebar\",\n components: { closed: _components_closed__WEBPACK_IMPORTED_MODULE_0__[\"default\"] },\n // props: ['miniVariant', 'sideMenuStatus'],\n props: {\n miniVariant: {\n default: false,\n },\n sideMenuStatus: {\n default: true,\n },\n modeChangeIsVisible: {\n default: true,\n },\n },\n data() {\n return {\n darkMode: false,\n darkModeSwitch: false,\n isLogged: false,\n clipped: true,\n drawer: true,\n fixed: true,\n sideMenu: true,\n activeRoute: \"\",\n // miniVariant: false,\n right: true,\n rightDrawer: false,\n title: \"Bilfen\",\n };\n },\n created() {\n const self = this;\n setTimeout(() => {\n this.darkModeSwitch = this.$vuetify.theme.dark;\n });\n self.spliteRoute();\n },\n methods: {\n sideMenuClose() {\n for (let i = 0; i < this.$auth.$state.user.menu.length; i++) {\n const groupRef = this.$refs[`menuGroup${i}`];\n if (groupRef && groupRef[0]) {\n groupRef[0].isActive = false;\n }\n }\n },\n sideMenuOpen() {\n for (let i = 0; i < this.$auth.$state.user.menu.length; i++) {\n const menuItem = this.$auth.$state.user.menu[i];\n const groupRef = this.$refs[`menuGroup${i}`];\n\n if (groupRef && groupRef[0]) {\n if (menuItem && menuItem.children) {\n menuItem.children.forEach((child) => {\n if (child.frontUrl === this.activeRoute) {\n groupRef[0].isActive = true;\n return;\n }\n });\n }\n }\n }\n },\n spliteRoute() {\n const self = this;\n const routePath = this.$route.path;\n const spliteRoute = routePath.split(\"/\");\n self.activeRoute = \"/\" + spliteRoute[1];\n },\n sideMenuToggle(item) {\n const self = this;\n },\n async logout() {\n await this.$auth.logout();\n await this.$router.push(\"/login\");\n this.sideMenu = true;\n this.miniVariant = false;\n },\n getImageSrc(key) {\n const self = this;\n try {\n const imgSettings = self.$bilpack.settings.images;\n const isDark = self.$vuetify.theme.dark;\n const image = imgSettings[key];\n\n return isDark && image.dark !== undefined && image.dark !== \"\"\n ? image.dark\n : image.light !== undefined && image.light !== \"\"\n ? image.light\n : \"\";\n } catch (e) {\n return \"\";\n }\n },\n setLogo(sideMenuStatus) {\n const self = this;\n\n const isDark = self.$vuetify.theme.dark;\n const key = sideMenuStatus\n ? isDark\n ? \"dark_y\"\n : \"light_y\"\n : isDark\n ? \"dark_x\"\n : \"light_x\";\n const logoSideBar = self.$bilpack.settings.navLogo;\n\n try {\n return logoSideBar[key] !== undefined ? logoSideBar[key] : \"\";\n } catch (e) {\n return \"\";\n }\n },\n checkActive() {\n const self = this;\n const currentPath = self.$route.path;\n // this.$refs['menuGroup0'][0].isActive = true\n // console.log('containsValue', self.containsValue(self.$auth.$state.user.menu, currentPath, 'frontUrl'))\n // this.$auth.$state.user.menu\n },\n containsValue(arr, val, key) {\n const self = this;\n return arr.some(function (item) {\n if (\n typeof item === \"object\" &&\n item !== null &&\n item.hasOwnProperty(key)\n ) {\n if (item[key] === val) {\n return true;\n } else if (Array.isArray(item[key])) {\n return self.containsValue(item[key], val, key);\n }\n } else if (Array.isArray(item)) {\n return self.containsValue(item, val, key);\n } else if (\n item !== null &&\n item.children !== null &&\n Array.isArray(item.children)\n ) {\n return self.containsValue(item, val, key);\n }\n return false;\n });\n },\n },\n watch: {\n darkModeSwitch(val) {\n localStorage.setItem(\"theme\", val);\n this.$vuetify.theme.dark = val;\n },\n sideMenuStatus(val) {\n if (val) {\n setTimeout(() => {\n this.checkActive();\n });\n }\n },\n $route(to, from) {\n const self = this;\n self.spliteRoute();\n if (to.name == \"index\") {\n self.sideMenuClose();\n } else if (self.activeRoute.length > 1) {\n self.sideMenuOpen();\n }\n },\n },\n});\n\n\n//# sourceURL=webpack://bilpack/./src/components/bf-sidebar/index.vue?./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
590
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _components_closed__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/closed */ \"./src/components/bf-sidebar/components/closed.vue\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"bf-sidebar\",\n components: { closed: _components_closed__WEBPACK_IMPORTED_MODULE_0__[\"default\"] },\n // props: ['miniVariant', 'sideMenuStatus'],\n props: {\n miniVariant: {\n default: false,\n },\n sideMenuStatus: {\n default: true,\n },\n modeChangeIsVisible: {\n default: true,\n },\n },\n data() {\n return {\n darkMode: false,\n darkModeSwitch: false,\n isLogged: false,\n clipped: true,\n drawer: true,\n fixed: true,\n sideMenu: true,\n activeRoute: \"\",\n // miniVariant: false,\n right: true,\n rightDrawer: false,\n title: \"Bilfen\",\n };\n },\n computed: {\n safeMenuItems() {\n const authUser =\n this.$auth && this.$auth.$state ? this.$auth.$state.user : null;\n return authUser && Array.isArray(authUser.menu) ? authUser.menu : [];\n },\n },\n created() {\n const self = this;\n setTimeout(() => {\n this.darkModeSwitch = this.$vuetify.theme.dark;\n });\n self.spliteRoute();\n },\n methods: {\n getChildren(item) {\n return item && Array.isArray(item.children) ? item.children : [];\n },\n hasChildren(item) {\n return this.getChildren(item).length > 0;\n },\n resolveIcon(icon) {\n return typeof icon === \"string\" && icon.trim() !== \"\"\n ? icon\n : \"fi-rr-user\";\n },\n resolveRoute(frontUrl) {\n return typeof frontUrl === \"string\" ? frontUrl : \"\";\n },\n pushIfRoute(frontUrl) {\n const route = this.resolveRoute(frontUrl);\n if (route !== \"\") this.$router.push(route);\n },\n sideMenuClose() {\n for (let i = 0; i < this.safeMenuItems.length; i++) {\n const groupRef = this.$refs[`menuGroup${i}`];\n if (groupRef && groupRef[0]) {\n groupRef[0].isActive = false;\n }\n }\n },\n sideMenuOpen() {\n for (let i = 0; i < this.safeMenuItems.length; i++) {\n const menuItem = this.safeMenuItems[i];\n const groupRef = this.$refs[`menuGroup${i}`];\n\n if (groupRef && groupRef[0]) {\n if (this.hasChildren(menuItem)) {\n this.getChildren(menuItem).forEach((child) => {\n if (this.resolveRoute(child.frontUrl) === this.activeRoute) {\n groupRef[0].isActive = true;\n return;\n }\n });\n }\n }\n }\n },\n spliteRoute() {\n const self = this;\n const routePath = this.$route.path;\n const spliteRoute = routePath.split(\"/\");\n self.activeRoute = \"/\" + spliteRoute[1];\n },\n sideMenuToggle(item) {\n const self = this;\n },\n async logout() {\n await this.$auth.logout();\n await this.$router.push(\"/login\");\n this.sideMenu = true;\n this.miniVariant = false;\n },\n getImageSrc(key) {\n const self = this;\n try {\n const imgSettings = self.$bilpack.settings.images;\n const isDark = self.$vuetify.theme.dark;\n const image = imgSettings[key];\n\n return isDark && image.dark !== undefined && image.dark !== \"\"\n ? image.dark\n : image.light !== undefined && image.light !== \"\"\n ? image.light\n : \"\";\n } catch (e) {\n return \"\";\n }\n },\n setLogo(sideMenuStatus) {\n const self = this;\n\n const isDark = self.$vuetify.theme.dark;\n const key = sideMenuStatus\n ? isDark\n ? \"dark_y\"\n : \"light_y\"\n : isDark\n ? \"dark_x\"\n : \"light_x\";\n const logoSideBar = self.$bilpack.settings.navLogo;\n\n try {\n return logoSideBar[key] !== undefined ? logoSideBar[key] : \"\";\n } catch (e) {\n return \"\";\n }\n },\n checkActive() {\n const self = this;\n const currentPath = self.$route.path;\n // this.$refs['menuGroup0'][0].isActive = true\n // console.log('containsValue', self.containsValue(self.$auth.$state.user.menu, currentPath, 'frontUrl'))\n // this.$auth.$state.user.menu\n },\n containsValue(arr, val, key) {\n const self = this;\n if (!Array.isArray(arr)) return false;\n return arr.some(function (item) {\n if (\n typeof item === \"object\" &&\n item !== null &&\n item.hasOwnProperty(key)\n ) {\n if (item[key] === val) {\n return true;\n } else if (Array.isArray(item[key])) {\n return self.containsValue(item[key], val, key);\n }\n } else if (Array.isArray(item)) {\n return self.containsValue(item, val, key);\n } else if (\n item !== null &&\n item.children !== null &&\n Array.isArray(item.children)\n ) {\n return self.containsValue(item, val, key);\n }\n return false;\n });\n },\n },\n watch: {\n darkModeSwitch(val) {\n localStorage.setItem(\"theme\", val);\n this.$vuetify.theme.dark = val;\n },\n sideMenuStatus(val) {\n if (val) {\n setTimeout(() => {\n this.checkActive();\n });\n }\n },\n $route(to, from) {\n const self = this;\n self.spliteRoute();\n if (to.name == \"index\") {\n self.sideMenuClose();\n } else if (self.activeRoute.length > 1) {\n self.sideMenuOpen();\n }\n },\n },\n});\n\n\n//# sourceURL=webpack://bilpack/./src/components/bf-sidebar/index.vue?./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
591
591
 
592
592
  /***/ }),
593
593
 
@@ -1764,7 +1764,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
1764
1764
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1765
1765
 
1766
1766
  "use strict";
1767
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ render: () => (/* binding */ render),\n/* harmony export */ staticRenderFns: () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _vm.$auth !== undefined\n ? _c(\n \"div\",\n { staticClass: \"bf-sidebar\" },\n [\n _vm.$auth.loggedIn\n ? _c(\n \"v-navigation-drawer\",\n {\n ref: \"navDrawer\",\n class: [_vm.sideMenuStatus ? \"open\" : \"\"],\n attrs: {\n \"mini-variant\": _vm.miniVariant,\n \"mini-variant-width\": \"100\",\n permanent: _vm.$vuetify.breakpoint.smAndUp,\n fixed: \"\",\n app: \"\",\n value: \"visible\",\n \"data-class\": _vm.sideMenuStatus ? \"full-width\" : \"\",\n width: \"250\",\n },\n model: {\n value: _vm.drawer,\n callback: function ($$v) {\n _vm.drawer = $$v\n },\n expression: \"drawer\",\n },\n },\n [\n _vm.$vuetify.breakpoint.smAndUp &&\n _vm.setLogo(_vm.sideMenuStatus) !== \"\"\n ? _c(\n \"div\",\n { staticClass: \"sidebar-logo-area\" },\n [\n _c(\n \"router-link\",\n {\n staticClass: \"side-logo\",\n class: [_vm.miniVariant ? \"mini-variant\" : \"\"],\n attrs: { to: \"/\" },\n },\n [\n _vm.sideMenuStatus\n ? _c(\"img\", {\n attrs: {\n src: _vm.setLogo(_vm.sideMenuStatus),\n },\n })\n : _c(\"img\", {\n attrs: {\n width: \"30\",\n height: \"35\",\n src: _vm.setLogo(_vm.sideMenuStatus),\n },\n }),\n ]\n ),\n ],\n 1\n )\n : _vm._e(),\n _vm.sideMenuStatus\n ? _c(\"v-list\", [\n _c(\n \"div\",\n { staticClass: \"list-content\" },\n _vm._l(\n _vm.$auth.$state.user.menu,\n function (item, i) {\n return _c(\n \"span\",\n { key: i },\n [\n item.children !== undefined\n ? _c(\n \"v-list-group\",\n {\n ref: `menuGroup${i}`,\n refInFor: true,\n staticClass: \"menu-item\",\n attrs: {\n ripple: false,\n \"prepend-icon\":\n item.icon !== \"\"\n ? item.icon\n : \"fi-rr-user\",\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"activator\",\n fn: function () {\n return [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n },\n [\n _vm._v(\n _vm._s(item.name)\n ),\n ]\n ),\n ]\n },\n proxy: true,\n },\n ],\n null,\n true\n ),\n },\n _vm._l(\n item.children,\n function (subItem, subI) {\n return _c(\n \"span\",\n { key: subI },\n [\n subItem.children !==\n undefined &&\n subItem.children.length > 0\n ? _c(\n \"v-list-group\",\n {\n staticClass:\n \"menu-item\",\n attrs: {\n \"no-action\": \"\",\n \"sub-group\": \"\",\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"activator\",\n fn: function () {\n return [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n },\n [\n _vm._v(\n _vm._s(\n subItem.name\n )\n ),\n ]\n ),\n ]\n },\n proxy: true,\n },\n ],\n null,\n true\n ),\n },\n [\n _vm._l(\n subItem.children,\n function (\n thirdItem,\n thirdI\n ) {\n return _c(\n \"v-list-item\",\n {\n key: thirdI,\n staticClass:\n \"menu-item\",\n class:\n thirdItem.frontUrl ===\n _vm.activeRoute\n ? \"v-list-item--active\"\n : \"\",\n attrs: {\n ripple: false,\n to: thirdItem.frontUrl,\n router: \"\",\n exact: \"\",\n nuxt: \"\",\n },\n on: {\n click:\n _vm.sideMenuClose,\n },\n },\n [\n _c(\n \"v-list-item-content\",\n [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n domProps:\n {\n textContent:\n _vm._s(\n thirdItem.name\n ),\n },\n }\n ),\n ],\n 1\n ),\n ],\n 1\n )\n }\n ),\n _c(\n \"v-icon\",\n {\n attrs: {\n slot: \"prepend\",\n color: \"#9CA3AF\",\n small: \"\",\n },\n slot: \"prepend\",\n },\n [\n _vm._v(\n \"fi-rr-search\"\n ),\n ]\n ),\n ],\n 2\n )\n : _c(\n \"v-list-item\",\n {\n staticClass:\n \"menu-item sub\",\n class:\n subItem.frontUrl ===\n _vm.activeRoute\n ? \"v-list-item--active\"\n : \"\",\n attrs: {\n \"data-click\":\n \"sideMenuToggle\",\n to: subItem.frontUrl,\n router: \"\",\n exact: \"\",\n nuxt: \"\",\n },\n on: {\n click: function (\n $event\n ) {\n return _vm.sideMenuToggle(\n subItem\n )\n },\n },\n },\n [\n _c(\n \"v-list-item-content\",\n [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n domProps: {\n textContent:\n _vm._s(\n subItem.name\n ),\n },\n }\n ),\n ],\n 1\n ),\n ],\n 1\n ),\n ],\n 1\n )\n }\n ),\n 0\n )\n : _c(\"v-list-group\", {\n key: _vm.activeRoute,\n staticClass: \"menu-item\",\n class:\n item.frontUrl === _vm.activeRoute\n ? \"v-list-item--active\"\n : \"\",\n attrs: {\n \"no-action\": \"\",\n \"prepend-icon\":\n item.icon !== \"\"\n ? item.icon\n : \"fi-rr-user\",\n \"append-icon\": \"\",\n },\n on: {\n click: function ($event) {\n return _vm.$router.push(\n item.frontUrl\n )\n },\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"activator\",\n fn: function () {\n return [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n },\n [_vm._v(_vm._s(item.name))]\n ),\n ]\n },\n proxy: true,\n },\n ],\n null,\n true\n ),\n }),\n ],\n 1\n )\n }\n ),\n 0\n ),\n ])\n : _c(\n \"v-list\",\n [\n _c(\"closed\", {\n attrs: { menuItems: _vm.$auth.$state.user.menu },\n }),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"sidebar-footer\" }, [\n _vm.sideMenuStatus\n ? _c(\"div\", { staticClass: \"top-logo\" }, [\n _c(\"img\", {\n attrs: {\n src: _vm.getImageSrc(\"support\"),\n alt: \"sidebar img\",\n },\n }),\n ])\n : _vm._e(),\n _c(\"div\", { staticClass: \"copyright\" }, [\n _c(\"img\", {\n class: _vm.$vuetify.theme.dark ? \"d-none\" : \"\",\n attrs: {\n src: __webpack_require__(/*! @/assets/images/logo-bilfen.png */ \"./src/assets/images/logo-bilfen.png\"),\n alt: \"bilfen logo\",\n },\n }),\n _c(\n \"p\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.sideMenuStatus,\n expression: \"sideMenuStatus\",\n },\n ],\n },\n [\n _vm._v(\n \"Bilfen Yazılım Ekibi © \" +\n _vm._s(new Date().getFullYear())\n ),\n ]\n ),\n ]),\n ]),\n ],\n 1\n )\n : _vm._e(),\n !_vm.$vuetify.breakpoint.smAndUp\n ? _c(\n \"v-toolbar\",\n {\n attrs: { color: \"#4281cb\", flat: \"\", dense: \"\" },\n on: {\n click: function ($event) {\n $event.stopPropagation()\n _vm.drawer = !_vm.drawer\n },\n },\n },\n [\n _c(\n \"v-icon\",\n { staticClass: \"toolbar-icon\", attrs: { small: \"\" } },\n [_vm._v(\"fi-rr-menu-burger\")]\n ),\n ],\n 1\n )\n : _vm._e(),\n ],\n 1\n )\n : _vm._e()\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://bilpack/./src/components/bf-sidebar/index.vue?./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet%5B1%5D.rules%5B2%5D!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
1767
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ render: () => (/* binding */ render),\n/* harmony export */ staticRenderFns: () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _vm.$auth !== undefined\n ? _c(\n \"div\",\n { staticClass: \"bf-sidebar\" },\n [\n _vm.$auth.loggedIn\n ? _c(\n \"v-navigation-drawer\",\n {\n ref: \"navDrawer\",\n class: [_vm.sideMenuStatus ? \"open\" : \"\"],\n attrs: {\n \"mini-variant\": _vm.miniVariant,\n \"mini-variant-width\": \"100\",\n permanent: _vm.$vuetify.breakpoint.smAndUp,\n fixed: \"\",\n app: \"\",\n value: \"visible\",\n \"data-class\": _vm.sideMenuStatus ? \"full-width\" : \"\",\n width: \"250\",\n },\n model: {\n value: _vm.drawer,\n callback: function ($$v) {\n _vm.drawer = $$v\n },\n expression: \"drawer\",\n },\n },\n [\n _vm.$vuetify.breakpoint.smAndUp &&\n _vm.setLogo(_vm.sideMenuStatus) !== \"\"\n ? _c(\n \"div\",\n { staticClass: \"sidebar-logo-area\" },\n [\n _c(\n \"router-link\",\n {\n staticClass: \"side-logo\",\n class: [_vm.miniVariant ? \"mini-variant\" : \"\"],\n attrs: { to: \"/\" },\n },\n [\n _vm.sideMenuStatus\n ? _c(\"img\", {\n attrs: {\n src: _vm.setLogo(_vm.sideMenuStatus),\n },\n })\n : _c(\"img\", {\n attrs: {\n width: \"30\",\n height: \"35\",\n src: _vm.setLogo(_vm.sideMenuStatus),\n },\n }),\n ]\n ),\n ],\n 1\n )\n : _vm._e(),\n _vm.sideMenuStatus\n ? _c(\"v-list\", [\n _c(\n \"div\",\n { staticClass: \"list-content\" },\n _vm._l(_vm.safeMenuItems, function (item, i) {\n return _c(\n \"span\",\n { key: i },\n [\n _vm.hasChildren(item)\n ? _c(\n \"v-list-group\",\n {\n ref: `menuGroup${i}`,\n refInFor: true,\n staticClass: \"menu-item\",\n attrs: {\n ripple: false,\n \"prepend-icon\": _vm.resolveIcon(\n item.icon\n ),\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"activator\",\n fn: function () {\n return [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n },\n [_vm._v(_vm._s(item.name))]\n ),\n ]\n },\n proxy: true,\n },\n ],\n null,\n true\n ),\n },\n _vm._l(\n _vm.getChildren(item),\n function (subItem, subI) {\n return _c(\n \"span\",\n { key: subI },\n [\n _vm.hasChildren(subItem)\n ? _c(\n \"v-list-group\",\n {\n staticClass: \"menu-item\",\n attrs: {\n \"no-action\": \"\",\n \"sub-group\": \"\",\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"activator\",\n fn: function () {\n return [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n },\n [\n _vm._v(\n _vm._s(\n subItem.name\n )\n ),\n ]\n ),\n ]\n },\n proxy: true,\n },\n ],\n null,\n true\n ),\n },\n [\n _vm._l(\n _vm.getChildren(\n subItem\n ),\n function (\n thirdItem,\n thirdI\n ) {\n return _c(\n \"v-list-item\",\n {\n key: thirdI,\n staticClass:\n \"menu-item\",\n class:\n _vm.resolveRoute(\n thirdItem.frontUrl\n ) ===\n _vm.activeRoute\n ? \"v-list-item--active\"\n : \"\",\n attrs: {\n ripple: false,\n to: _vm.resolveRoute(\n thirdItem.frontUrl\n ),\n router: \"\",\n exact: \"\",\n nuxt: \"\",\n },\n on: {\n click:\n _vm.sideMenuClose,\n },\n },\n [\n _c(\n \"v-list-item-content\",\n [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n domProps:\n {\n textContent:\n _vm._s(\n thirdItem.name\n ),\n },\n }\n ),\n ],\n 1\n ),\n ],\n 1\n )\n }\n ),\n _c(\n \"v-icon\",\n {\n attrs: {\n slot: \"prepend\",\n color: \"#9CA3AF\",\n small: \"\",\n },\n slot: \"prepend\",\n },\n [_vm._v(\"fi-rr-search\")]\n ),\n ],\n 2\n )\n : _c(\n \"v-list-item\",\n {\n staticClass:\n \"menu-item sub\",\n class:\n _vm.resolveRoute(\n subItem.frontUrl\n ) === _vm.activeRoute\n ? \"v-list-item--active\"\n : \"\",\n attrs: {\n \"data-click\":\n \"sideMenuToggle\",\n to: _vm.resolveRoute(\n subItem.frontUrl\n ),\n router: \"\",\n exact: \"\",\n nuxt: \"\",\n },\n on: {\n click: function (\n $event\n ) {\n return _vm.sideMenuToggle(\n subItem\n )\n },\n },\n },\n [\n _c(\n \"v-list-item-content\",\n [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n domProps: {\n textContent:\n _vm._s(\n subItem.name\n ),\n },\n }\n ),\n ],\n 1\n ),\n ],\n 1\n ),\n ],\n 1\n )\n }\n ),\n 0\n )\n : _c(\"v-list-group\", {\n key: _vm.activeRoute,\n staticClass: \"menu-item\",\n class:\n _vm.resolveRoute(item.frontUrl) ===\n _vm.activeRoute\n ? \"v-list-item--active\"\n : \"\",\n attrs: {\n \"no-action\": \"\",\n \"prepend-icon\": _vm.resolveIcon(\n item.icon\n ),\n \"append-icon\": \"\",\n },\n on: {\n click: function ($event) {\n return _vm.pushIfRoute(item.frontUrl)\n },\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"activator\",\n fn: function () {\n return [\n _c(\n \"v-list-item-title\",\n {\n staticClass:\n \"menu-item-text\",\n },\n [_vm._v(_vm._s(item.name))]\n ),\n ]\n },\n proxy: true,\n },\n ],\n null,\n true\n ),\n }),\n ],\n 1\n )\n }),\n 0\n ),\n ])\n : _c(\n \"v-list\",\n [\n _c(\"closed\", {\n attrs: { menuItems: _vm.safeMenuItems },\n }),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"sidebar-footer\" }, [\n _vm.sideMenuStatus\n ? _c(\"div\", { staticClass: \"top-logo\" }, [\n _c(\"img\", {\n attrs: {\n src: _vm.getImageSrc(\"support\"),\n alt: \"sidebar img\",\n },\n }),\n ])\n : _vm._e(),\n _c(\"div\", { staticClass: \"copyright\" }, [\n _c(\"img\", {\n class: _vm.$vuetify.theme.dark ? \"d-none\" : \"\",\n attrs: {\n src: __webpack_require__(/*! @/assets/images/logo-bilfen.png */ \"./src/assets/images/logo-bilfen.png\"),\n alt: \"bilfen logo\",\n },\n }),\n _c(\n \"p\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.sideMenuStatus,\n expression: \"sideMenuStatus\",\n },\n ],\n },\n [\n _vm._v(\n \"Bilfen Yazılım Ekibi © \" +\n _vm._s(new Date().getFullYear())\n ),\n ]\n ),\n ]),\n ]),\n ],\n 1\n )\n : _vm._e(),\n !_vm.$vuetify.breakpoint.smAndUp\n ? _c(\n \"v-toolbar\",\n {\n attrs: { color: \"#4281cb\", flat: \"\", dense: \"\" },\n on: {\n click: function ($event) {\n $event.stopPropagation()\n _vm.drawer = !_vm.drawer\n },\n },\n },\n [\n _c(\n \"v-icon\",\n { staticClass: \"toolbar-icon\", attrs: { small: \"\" } },\n [_vm._v(\"fi-rr-menu-burger\")]\n ),\n ],\n 1\n )\n : _vm._e(),\n ],\n 1\n )\n : _vm._e()\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://bilpack/./src/components/bf-sidebar/index.vue?./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet%5B1%5D.rules%5B2%5D!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
1768
1768
 
1769
1769
  /***/ }),
1770
1770
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bilfenyazilimekibi/bilpack",
3
- "version": "1.3.25",
3
+ "version": "1.3.27",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build-default": "vue-cli-service build",