{"version":3,"sources":["webpack:///./src/components/KeyValue.vue?765e","webpack:///./src/components/widgets/LabelActionWidget.vue?badc","webpack:///./node_modules/cache-loader/dist/cjs.js","webpack:///./src/components/widgets/LabelActionWidget.vue?9fcd","webpack:///./src/components/widgets/LabelActionWidget.vue","webpack:///./src/components/widgets/ConnectionWidget.vue?e3e3","webpack:///./src/components/widgets/SyncStatusWidget.vue?9f34","webpack:///./src/components/widgets/PercentageDotWidget.vue?03fd","webpack:///./src/components/widgets/StockWidget.vue?e8a6","webpack:///./src/components/widgets/StockWidget.vue?9d5c","webpack:///./src/components/widgets/StockWidget.vue","webpack:///./src/components/KeyValue.vue?5078","webpack:///./src/components/KeyValue.vue?6d66","webpack:///./src/components/KeyValue.vue","webpack:///./src/components/widgets/PercentageDotWidget.vue?7d5e","webpack:///./src/components/widgets/PercentageDotWidget.vue?398b","webpack:///./src/components/widgets/PercentageDotWidget.vue","webpack:///./src/components/widgets/StockWidget.vue?46fc","webpack:///./src/models/points-of-sale/poSStock.ts","webpack:///./src/components/widgets/SyncStatusWidget.vue?484f","webpack:///./src/components/widgets/SyncStatusWidget.vue?7210","webpack:///./src/components/widgets/SyncStatusWidget.vue","webpack:///./src/components/widgets/LabelActionWidget.vue?bce2","webpack:///./src/utils/types.utils.ts","webpack:///./src/components/widgets/ConnectionWidget.vue?6b57","webpack:///./src/components/widgets/ConnectionWidget.vue?a6a5","webpack:///./src/components/widgets/ConnectionWidget.vue","webpack:///./src/utils/models-utils/pointOfSale.utils.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","on","$event","action","_v","_s","label","staticRenderFns","LabelActionWidget","Vue","__decorate","Prop","default","Component","component","class","inDataTable","value","status","PosStockStatus","Ok","LowStock","OutOfStock","_l","i","key","showBarActive","_e","onlyIcon","percentage","StockWidget","percentageForBar","getDefaultPercentage","inline","reverse","$t","title","translate","_b","tag","properties","KeyValue","components","ConnectionWidget","PercentageDotWidget","SyncStatusWidget","severity","PoSStock","undefined","isDeviceType","type","is","property","DeviceType","canHaveCashDatabase","CHEX","CUNI","canHaveScreenConfiguration","CDUK","CELY","CENG","canBeWhitelistedForEnrolment","isDeviceOnline","showDot","signal","isDeviceOffline","attrs","isPosOnline","isPosOffline","posStatus","connection","isValidMACAddress","macAddress","macRegex","test","addMissingDashToDeviceSerial","deviceSerial","strNoWhitespaces","includes","slice","isValidDeviceSerial","deviceSerialSplit","split","deviceTypeStr","serialNumber","isNumeric","pointsOfSaleTooltipStr","devicesList","posIds","maxDevicesToShow","tooltipStr","filter","pos","id","map","name","join","length","i18n","t"],"mappings":"oKAAA,W,6DCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,OAAO,CAACE,YAAY,qBAAqBC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOR,EAAIS,YAAY,CAACT,EAAIU,GAAG,IAAIV,EAAIW,GAAGX,EAAIY,OAAO,UACjQC,EAAkB,G,wECaDC,EAAiB,qJAASC,QAE3CC,gBADCC,eAAK,CAAEC,QAAS,MACjB,4BAEAF,gBADCC,eAAK,CAAEC,QAAS,MACjB,6BAJiBJ,EAAiB,gBADrCK,QACoBL,WCdyY,I,wBCQ1ZM,EAAY,eACd,EACArB,EACAc,GACA,EACA,KACA,WACA,MAIa,OAAAO,E,6CCnBf,W,oCCAA,W,qCCAA,W,kCCAA,IAAIrB,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,eAAee,MAAM,CAAC,mBAAoBrB,EAAIsB,cAAc,CAAEtB,EAAS,MAAEI,EAAG,MAAM,CAACE,YAAY,qBAAqBe,MAAM,CACpO,yBAA0BrB,EAAIsB,YAC9B,yBAA0BtB,EAAIuB,MAAMC,QAA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,I,wBCQzZ7B,EAAY,eACd,EACArB,EACAc,GACA,EACA,KACA,WACA,MAIa,OAAAO,E,uZCNFqD,EAAc,SAACE,GAC1B,OAAgC,IAAzBA,EAAUC,YASNF,EAAe,SAACC,GAC3B,OAAgC,IAAzBA,EAAUC,YASNC,EAAoB,SAACC,GAChC,IAAMC,EAAW,6CACjB,OAAOA,EAASC,KAAKF,IASVG,EAA+B,SAACC,GAE3C,OADAA,EAAeC,eAAiBD,GACzBA,EAAaE,SAAS,KAAOF,EAAeA,EAAaG,MAAM,EAAG,GAAK,IAAMH,EAAaG,MAAM,IAmB5FC,EAAsB,SAACJ,GAClC,IAAMK,EAAoBL,EAAaM,MAAM,KACvCC,EAAgBF,EAAkB,GAClCG,EAAeH,EAAkB,GACvC,OAAOhC,eAAakC,IAAkBE,eAAUD,IAWrCE,EAAyB,SAClCC,EACAC,EACAC,GACU,MACNC,EAAaH,EACdI,QAAO,SAACC,GAAD,QAAWA,EAAIC,IAAML,EAAOV,SAASc,EAAIC,OAChDd,MAAM,EAAGU,GACTK,KAAI,SAACF,GAAD,OAASA,EAAIG,QACjBC,KAAK,SAMR,OAJIR,EAAOS,OAASR,IAClBC,GAAc,UAAYF,EAAOS,OAASR,GAAoB,IAAOS,OAAKC,EAAE,SAG9E,UAAOT,SAAP,QAAqB,K","file":"js/chunk-33df1909.3351cdfa.js","sourcesContent":["export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./KeyValue.vue?vue&type=style&index=0&id=68d13659&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"label-action\"},[_c('span',{staticClass:\"label-action__link\",on:{\"click\":function($event){return _vm.action()}}},[_vm._v(\" \"+_vm._s(_vm.label)+\" \")])])}\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\nimport { Component, Vue, Prop } from 'vue-property-decorator';\nimport { PointOfSaleStatus } from '@/models/points-of-sale/pointOfSaleStatus';\nimport { isPosOffline, isPosOnline } from '@/utils/models-utils/pointOfSale.utils';\n\n@Component\nexport default class ConnectionWidget extends Vue {\n @Prop()\n public value!: PointOfSaleStatus;\n @Prop({ default: false })\n public onlyIcon!: boolean;\n @Prop({ default: false })\n public showDot!: boolean;\n @Prop({ default: false })\n public inDataTable!: boolean;\n\n public isDeviceOnline() {\n return isPosOnline(this.value);\n }\n\n public isDeviceOffline() {\n return isPosOffline(this.value);\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!./LabelActionWidget.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!./LabelActionWidget.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./LabelActionWidget.vue?vue&type=template&id=ad2b5424&scoped=true&\"\nimport script from \"./LabelActionWidget.vue?vue&type=script&lang=ts&\"\nexport * from \"./LabelActionWidget.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./LabelActionWidget.vue?vue&type=style&index=0&id=ad2b5424&lang=scss&scoped=true&\"\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 \"ad2b5424\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ConnectionWidget.vue?vue&type=style&index=0&id=26afe266&lang=scss&scoped=true&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SyncStatusWidget.vue?vue&type=style&index=0&id=528d875a&lang=scss&scoped=true&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PercentageDotWidget.vue?vue&type=style&index=0&id=7172357e&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"widget-stock\",class:{'widget-stock__dt': _vm.inDataTable}},[(_vm.value)?_c('div',{staticClass:\"widget-stock__bars\",class:{\n 'widget-stock__bars--dt': _vm.inDataTable,\n 'widget-stock__bars--ok': _vm.value.status == _vm.PosStockStatus.Ok,\n 'widget-stock__bars--low-stock': _vm.value.status == _vm.PosStockStatus.LowStock,\n 'widget-stock__bars--out-of-stock': _vm.value.status == _vm.PosStockStatus.OutOfStock,\n }},_vm._l((19),function(i){return _c('div',{key:i,staticClass:\"widget-stock__bar\",class:{'widget-stock__bar--active': _vm.showBarActive(i)}})}),0):_vm._e(),(_vm.value && !_vm.onlyIcon && _vm.value.percentage !== null)?_c('div',{staticClass:\"widget-stock__percentage\"},[_vm._v(\" \"+_vm._s(_vm.value.percentage)+\"%\")]):_vm._e(),(!_vm.value && _vm.inDataTable)?_c('div',{staticClass:\"widget-stock__percentage\"},[_vm._v(\"-\")]):_vm._e()])}\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!./StockWidget.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!./StockWidget.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./StockWidget.vue?vue&type=template&id=4871e67e&scoped=true&\"\nimport script from \"./StockWidget.vue?vue&type=script&lang=ts&\"\nexport * from \"./StockWidget.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./StockWidget.vue?vue&type=style&index=0&id=4871e67e&lang=scss&scoped=true&\"\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 \"4871e67e\",\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('div',{staticClass:\"key-value\",class:{ \n 'key-value--inline': _vm.inline, \n 'key-value--reverse': _vm.reverse, \n 'key-value--inline-reverse': _vm.inline && _vm.reverse, \n }},[_c('div',{staticClass:\"key-value__key\",class:{ 'key-value__key--inline': _vm.inline }},[(_vm.translate)?_c('span',[_vm._v(_vm._s(_vm.$t(_vm.title)))]):_vm._e(),(!_vm.translate)?_c('span',[_vm._v(_vm._s(_vm.title))]):_vm._e()]),(!!_vm.value && !_vm.component)?_c('div',{staticClass:\"key-value__value\"},[_vm._v(_vm._s(_vm.value))]):_vm._e(),(!!_vm.component)?_c(_vm.component,_vm._b({tag:\"component\",staticClass:\"key-value__component\"},'component',_vm.properties,false)):_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!./KeyValue.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!./KeyValue.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./KeyValue.vue?vue&type=template&id=68d13659&scoped=true&\"\nimport script from \"./KeyValue.vue?vue&type=script&lang=ts&\"\nexport * from \"./KeyValue.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./KeyValue.vue?vue&type=style&index=0&id=68d13659&lang=scss&scoped=true&\"\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 \"68d13659\",\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('div',{staticClass:\"percentage\"},[_c('div',{staticClass:\"percentage__dot\",class:{\n 'percentage__dot--error': _vm.value.severity == 1,\n 'percentage__dot--warning': _vm.value.severity == 4,\n 'percentage__dot--ok': _vm.value.severity == 9,\n }}),_c('div',[_vm._v(\" \"+_vm._s(_vm.value.percentage)+\" \"),(_vm.percentage)?_c('span',[_vm._v(\"%\")]):_vm._e()])])}\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!./PercentageDotWidget.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!./PercentageDotWidget.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PercentageDotWidget.vue?vue&type=template&id=7172357e&scoped=true&\"\nimport script from \"./PercentageDotWidget.vue?vue&type=script&lang=ts&\"\nexport * from \"./PercentageDotWidget.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./PercentageDotWidget.vue?vue&type=style&index=0&id=7172357e&lang=scss&scoped=true&\"\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 \"7172357e\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StockWidget.vue?vue&type=style&index=0&id=4871e67e&lang=scss&scoped=true&\"","export class PoSStock {\n public percentage: number| undefined = undefined;\n public status: PosStockStatus | undefined = undefined;\n}\n\nexport enum PosStockStatus {\n Ok = 9,\n LowStock = 4,\n OutOfStock = 1,\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"sync-status\"},[_c('div',{staticClass:\"sync-status__dot\",class:{\n 'sync-status__dot--sync': _vm.value === 0,\n 'sync-status__dot--pending': _vm.value !== 0,\n }}),_c('div',[_vm._v(\" \"+_vm._s(_vm.value === 0 ? _vm.$t('syncstatus.sync') : _vm.$t('syncstatus.pending')))])])}\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!./SyncStatusWidget.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!./SyncStatusWidget.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SyncStatusWidget.vue?vue&type=template&id=528d875a&scoped=true&\"\nimport script from \"./SyncStatusWidget.vue?vue&type=script&lang=ts&\"\nexport * from \"./SyncStatusWidget.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./SyncStatusWidget.vue?vue&type=style&index=0&id=528d875a&lang=scss&scoped=true&\"\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 \"528d875a\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LabelActionWidget.vue?vue&type=style&index=0&id=ad2b5424&lang=scss&scoped=true&\"","import { DeviceType } from '@/models/common/constants';\n\nexport const isDeviceType = (type: string) => {\n let is = false;\n for (const property in DeviceType) {\n if (type === DeviceType[property]) {\n is = true;\n }\n }\n return is;\n};\n\nexport const canHaveCashDatabase = (type: string) => {\n switch (type) {\n case DeviceType.CHEX:\n case DeviceType.CUNI:\n return true;\n default:\n return false;\n }\n};\n\nexport const canHaveScreenConfiguration = (type: string) => {\n switch (type) {\n case DeviceType.CDUK:\n case DeviceType.CELY:\n case DeviceType.CENG:\n return true;\n default:\n return false;\n }\n};\n\nexport const canBeWhitelistedForEnrolment = (type: string) => {\n return type === DeviceType.CENG;\n};\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.isDeviceOnline())?_c('div',{staticClass:\"widget-connection\",class:{'widget-connection__dt': _vm.inDataTable}},[(!_vm.onlyIcon && _vm.showDot)?_c('div',{staticClass:\"widget-connection__dot\",class:{\n 'widget-connection__dot--error': _vm.value.signal.severity == 1,\n 'widget-connection__dot--warning': _vm.value.signal.severity == 4,\n 'widget-connection__dot--ok': _vm.value.signal.severity == 9,\n }}):_vm._e(),_c('div',{staticClass:\"widget-connection__bars\",class:{\n 'widget-connection__bars--bigger': _vm.onlyIcon,\n 'widget-connection__bars--low': _vm.value.signal.severity == 1,\n 'widget-connection__bars--medium': _vm.value.signal.severity == 4,\n 'widget-connection__bars--high': _vm.value.signal.severity == 9,\n }},[_c('div',{staticClass:\"widget-connection__bar\",class:{'widget-connection__bar--active': _vm.value.signal.percentage > 10 }}),_c('div',{staticClass:\"widget-connection__bar\",class:{'widget-connection__bar--active': _vm.value.signal.percentage > 25 }}),_c('div',{staticClass:\"widget-connection__bar\",class:{'widget-connection__bar--active': _vm.value.signal.percentage > 65 }}),_c('div',{staticClass:\"widget-connection__bar\",class:{'widget-connection__bar--active': _vm.value.signal.percentage > 90 }})]),(!_vm.onlyIcon)?_c('div',{staticClass:\"widget-connection__percentage\"},[_vm._v(\" \"+_vm._s(_vm.value.signal.percentage)+\"%\")]):_vm._e()]):_c('div',{staticClass:\"widget-connection\"},[(_vm.isDeviceOffline())?_c('v-badge',{class:{\n 'widget-connection__offline-badge--bigger': _vm.onlyIcon,\n 'widget-connection__offline-badge--dt': _vm.inDataTable,\n },attrs:{\"color\":\"var(--red)\",\"content\":_vm.$t('offline')}}):_c('v-badge',{class:{\n 'widget-connection__unknown-badge--bigger': _vm.onlyIcon,\n 'widget-connection__unknown-badge--dt': _vm.inDataTable,\n },attrs:{\"color\":\"var(--gray-dark)\",\"content\":_vm.$t('unknown')}})],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!./ConnectionWidget.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!./ConnectionWidget.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ConnectionWidget.vue?vue&type=template&id=26afe266&scoped=true&\"\nimport script from \"./ConnectionWidget.vue?vue&type=script&lang=ts&\"\nexport * from \"./ConnectionWidget.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ConnectionWidget.vue?vue&type=style&index=0&id=26afe266&lang=scss&scoped=true&\"\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 \"26afe266\",\n null\n \n)\n\nexport default component.exports","import i18n from '@/i18n';\nimport { PointOfSaleName } from '@/models/points-of-sale/pointOfSaleName';\nimport { PointOfSaleStatus } from '@/models/points-of-sale/pointOfSaleStatus';\nimport { isDeviceType } from '../types.utils';\nimport { isNumeric, strNoWhitespaces } from '../string.utils';\n\n/**\n * This method checks if a point of sale is online.\n *\n * @param posStatus - The status of the point of sale.\n * @returns Indicates if the point of sale is online.\n */\n\nexport const isPosOnline = (posStatus: PointOfSaleStatus): boolean => {\n return posStatus.connection === 1;\n};\n\n/**\n * This method checks if a point of sale is offline.\n *\n * @param posStatus - The status of the point of sale.\n * @returns Indicates if the point of sale is offline.\n */\nexport const isPosOffline = (posStatus: PointOfSaleStatus): boolean => {\n return posStatus.connection === 0;\n};\n\n/**\n * This method checks the validity of a MAC address.\n *\n * @param macAddress - The MAC address in string format.\n * @returns Indicates if the MAC address is well formed.\n */\nexport const isValidMACAddress = (macAddress: string): boolean => {\n const macRegex = /^([0-9A-Fa-f]{2}[:-]?){5}([0-9A-Fa-f]{2})$/;\n return macRegex.test(macAddress);\n};\n\n/**\n * This method adds the dash to the device serial if missing.\n *\n * @param deviceSerial - The device serial.\n * @returns The adjusted device serial.\n */\nexport const addMissingDashToDeviceSerial = (deviceSerial: string): string => {\n deviceSerial = strNoWhitespaces(deviceSerial);\n return deviceSerial.includes('-') ? deviceSerial : deviceSerial.slice(0, 4) + '-' + deviceSerial.slice(4);\n};\n\n/**\n * This method adds the given device type to the serial number if needed.\n *\n * @param serial - The serial number.\n * @returns The serial number with the device type prefix.\n */\nexport const addMissingDeviceTypeToSerial = (serial: string, deviceType: string) => {\n return !isDeviceType(deviceType) || serial.startsWith(deviceType) ? serial : deviceType + '-' + serial;\n};\n\n/**\n * This method checks if the given device serial is valid.\n *\n * @param deviceSerial - The device serial.\n * @returns Indicates if the given device serial is valid.\n */\nexport const isValidDeviceSerial = (deviceSerial: string): boolean => {\n const deviceSerialSplit = deviceSerial.split('-');\n const deviceTypeStr = deviceSerialSplit[0];\n const serialNumber = deviceSerialSplit[1];\n return isDeviceType(deviceTypeStr) && isNumeric(serialNumber);\n};\n\n/**\n * Generates a tooltip string for devices selected by a posIds array.\n *\n * @param devicesList - List with info about points of sale.\n * @param posIds - The points of sale to select.\n * @param maxDevicesToShow - Maximum number of items to show in the tooltip.\n * @returns The generated tooltip string.\n */\nexport const pointsOfSaleTooltipStr = (\n devicesList: PointOfSaleName[],\n posIds: string[],\n maxDevicesToShow: number,\n ): string => {\n let tooltipStr = devicesList\n .filter((pos) => !!pos.id && posIds.includes(pos.id))\n .slice(0, maxDevicesToShow)\n .map((pos) => pos.name)\n .join('
');\n\n if (posIds.length > maxDevicesToShow) {\n tooltipStr += '
+' + (posIds.length - maxDevicesToShow) + ' ' + i18n.t('more');\n }\n\n return tooltipStr ?? '';\n};\n"],"sourceRoot":""}