{"version":3,"sources":["webpack:///./src/views/devices/Devices.vue?7301","webpack:///./node_modules/cache-loader/dist/cjs.js","webpack:///./src/views/devices/Devices.vue?7e53","webpack:///./src/views/devices/Devices.vue","webpack:///./src/components/menus/DevicesInnerMenu.vue?b9b5","webpack:///./src/components/menus/DevicesInnerMenu.vue?9662","webpack:///./src/components/menus/DevicesInnerMenu.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","$auth","isAuthorized","roles","SuperAdmin","_e","MerchantAdmin","GroupAdmin","MerchantUser","staticRenderFns","Devices","Vue","Component","components","MerchantsViewInnerMenu","DevicesInnerMenu","MerchantsSelect","component","class","innerMenuName","isActiveDeviceRoute","innerMenuStylesClass","name","routes","_v","_s","$t","$tenant","isEnabled","TenantFeatures","REMOTE_CONFIGURATIONS","VPConfigurations","FIRMWARE_UPDATE","FirmwareRules","PRODUCTS_STOCK","ManageStock","RemoteCommands","featureToggles","Routes","FeatureToggles","$props","RootMenuStyles","Menu","SubMenu","$route","path","includes","visibleMenuItems","document","getElementsByClassName","length","remove","__decorate","Prop","AlarmsWidget"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,UAAU,CAACA,EAAG,SAAS,CAACE,MAAM,CAAC,GAAK,YAAY,CAAEN,EAAIO,MAAMC,aAAa,CAACR,EAAIO,MAAME,MAAMC,aAAcN,EAAG,6BAA6B,CAACE,MAAM,CAAC,cAAgB,gBAAgBN,EAAIW,KAC/QX,EAAIO,MAAMC,aAAa,CACrBR,EAAIO,MAAME,MAAMG,cAChBZ,EAAIO,MAAME,MAAMI,WAChBb,EAAIO,MAAME,MAAMK,eAClBV,EAAG,uBAAuB,CAACE,MAAM,CAAC,cAAgB,gBAAgBN,EAAIW,MAAM,GAAGP,EAAG,SAAS,CAACE,MAAM,CAAC,GAAK,qBAAqB,CAACF,EAAG,uBAAuB,GAA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WACL,OAAOhD,KAAKiD,OAAOC,KAAKC,SAAS,aAC9BnD,KAAKiD,OAAOC,KAAKC,SAAS,QAC1BnD,KAAKiD,OAAOC,KAAKC,SAAS,oBAC1BnD,KAAKiD,OAAOC,KAAKC,SAAS,kBAC1BnD,KAAKiD,OAAOC,KAAKC,SAAS,qBArBI,qBAwB5B,WACL,IAAMC,EAAmBC,SAASC,uBAAuB,oBACrDF,GAAgD,IAA5BA,EAAiBG,QACvCH,EAAiB,GAAGI,aA3BW,GAASxC,QAE5CyC,gBADCC,kBACD,oCAFmBtC,EAAgB,gBALpCH,eAAU,CACTC,WAAY,CACV,kBAAmByC,WAGFvC,WIhFwY,I,YCOzZE,EAAY,eACd,EACAxB,EACAgB,GACA,EACA,KACA,KACA,MAIa,OAAAQ,E","file":"js/chunk-8d351120.1571dfdb.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',[_c('portal',{attrs:{\"to\":\"submenu\"}},[(_vm.$auth.isAuthorized([_vm.$auth.roles.SuperAdmin]))?_c('n-merchant-view-inner-menu',{attrs:{\"innerMenuName\":'inner-menu'}}):_vm._e(),(\n _vm.$auth.isAuthorized([\n _vm.$auth.roles.MerchantAdmin,\n _vm.$auth.roles.GroupAdmin,\n _vm.$auth.roles.MerchantUser ])\n )?_c('n-devices-inner-menu',{attrs:{\"innerMenuName\":'inner-menu'}}):_vm._e()],1),_c('portal',{attrs:{\"to\":\"switch-merchants\"}},[_c('n-merchants-select')],1),_c('router-view')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Prop } from 'vue-property-decorator';\nimport { Routes } from '@/router/routes';\nimport AlarmsWidget from '@/components/widgets/AlarmsWidget.vue';\nimport { FeatureToggles } from '@/models/common/constants';\nimport { RootMenuStyles } from '@/store/enums';\n\n@Component({\n components: {\n 'n-alarms-widget': AlarmsWidget,\n },\n})\nexport default class DevicesInnerMenu extends Vue {\n @Prop()\n public innerMenuName!: RootMenuStyles;\n public routes = Routes;\n public featureToggles = FeatureToggles;\n\n get innerMenuStylesClass(): string {\n switch (this.$props.innerMenuName) {\n case RootMenuStyles.Menu:\n return 'inner-menu__link';\n case RootMenuStyles.SubMenu:\n return 'inner-sub-menu__link';\n }\n return 'inner-menu__link';\n }\n\n public isActiveDeviceRoute(): boolean {\n return this.$route.path.includes('devices') &&\n !this.$route.path.includes('vp') &&\n !this.$route.path.includes('firmware-rules') &&\n !this.$route.path.includes('manage-stock') &&\n !this.$route.path.includes('remote-commands');\n }\n\n public mounted(): void {\n const visibleMenuItems = document.getElementsByClassName('inner-menu__link');\n if (visibleMenuItems && visibleMenuItems.length === 1) {\n visibleMenuItems[0].remove();\n }\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Devices.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Devices.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Devices.vue?vue&type=template&id=5fc248cf&scoped=true&\"\nimport script from \"./Devices.vue?vue&type=script&lang=ts&\"\nexport * from \"./Devices.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5fc248cf\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('nav',{class:_vm.innerMenuName},[_c('div',[_c('router-link',{class:[{'router-link-active': _vm.isActiveDeviceRoute()}, _vm.innerMenuStylesClass],attrs:{\"to\":{ name: _vm.routes.Devices }}},[_c('span',[_vm._v(_vm._s(_vm.$t('pages.points-of-sale')))])]),(\n _vm.$auth.isAuthorized([\n _vm.$auth.roles.SuperAdmin,\n _vm.$auth.roles.MerchantAdmin,\n _vm.$auth.roles.GroupAdmin ]) && _vm.$tenant.isEnabled(_vm.$tenant.TenantFeatures.REMOTE_CONFIGURATIONS)\n )?_c('router-link',{class:_vm.innerMenuStylesClass,attrs:{\"to\":{ name: _vm.routes.VPConfigurations }}},[_c('span',[_vm._v(_vm._s(_vm.$t('pages.vp')))])]):_vm._e(),(\n _vm.$auth.isAuthorized([\n _vm.$auth.roles.SuperAdmin,\n _vm.$auth.roles.MerchantAdmin,\n _vm.$auth.roles.GroupAdmin ]) && _vm.$tenant.isEnabled(_vm.$tenant.TenantFeatures.FIRMWARE_UPDATE)\n )?_c('router-link',{class:_vm.innerMenuStylesClass,attrs:{\"to\":{ name: _vm.routes.FirmwareRules }}},[_c('span',[_vm._v(_vm._s(_vm.$t('pages.firmware-rules')))])]):_vm._e(),(\n _vm.$auth.isAuthorized([\n _vm.$auth.roles.SuperAdmin,\n _vm.$auth.roles.MerchantAdmin,\n _vm.$auth.roles.GroupAdmin ]) &&\n _vm.$tenant.isEnabled(_vm.$tenant.TenantFeatures.PRODUCTS_STOCK)\n )?_c('router-link',{class:_vm.innerMenuStylesClass,attrs:{\"to\":{ name: _vm.routes.ManageStock }}},[_c('span',[_vm._v(_vm._s(_vm.$t('pages.manage-stock')))])]):_vm._e(),(\n _vm.$auth.isAuthorized([\n _vm.$auth.roles.SuperAdmin,\n _vm.$auth.roles.MerchantAdmin,\n _vm.$auth.roles.GroupAdmin ]) &&\n _vm.$tenant.isEnabled(_vm.$tenant.TenantFeatures.REMOTE_CONFIGURATIONS)\n )?_c('router-link',{class:_vm.innerMenuStylesClass,attrs:{\"to\":{ name: _vm.routes.RemoteCommands }}},[_c('span',[_vm._v(_vm._s(_vm.$t('pages.remote-commands')))])]):_vm._e()],1),_c('div',[(_vm.featureToggles.Alarms)?_c('n-alarms-widget'):_vm._e()],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DevicesInnerMenu.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DevicesInnerMenu.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DevicesInnerMenu.vue?vue&type=template&id=94f4f876&\"\nimport script from \"./DevicesInnerMenu.vue?vue&type=script&lang=ts&\"\nexport * from \"./DevicesInnerMenu.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}