{"version":3,"sources":["webpack:///./src/components/js/permission.js","webpack:///./node_modules/core-js/modules/es.function.name.js"],"names":["Enumerable","require","permission","code","isPermission","from","where","i","PermissionCode","select","val","IsPermission","toArray","routerPermission","path","route","matcher","match","name","DESCRIPTORS","defineProperty","f","FunctionPrototype","Function","prototype","FunctionPrototypeToString","toString","nameRE","NAME","configurable","get","call","this","error"],"mappings":"uKAEIA,EAAaC,EAAQ,QAEV,cACXC,WAAY,SAAUA,EAAYC,GAC9B,IAAIC,EAAeJ,EAAWK,KAAKH,GAC9BI,OAAM,SAAUC,GACb,OAAOA,EAAEC,gBAAkBL,KAE9BM,QAAO,SAAAC,GAAG,OAAIA,EAAIC,gBAClBC,UAEL,OAAOR,EAAa,KAAM,GAE9BS,iBAAiB,SAASC,GACtB,MAAuC,QAAhCC,aAAMC,QAAQC,MAAMH,GAAMI,Q,qBChBzC,IAAIC,EAAc,EAAQ,QACtBC,EAAiB,EAAQ,QAAuCC,EAEhEC,EAAoBC,SAASC,UAC7BC,EAA4BH,EAAkBI,SAC9CC,EAAS,wBACTC,EAAO,OAIPT,KAAiBS,KAAQN,IAC3BF,EAAeE,EAAmBM,EAAM,CACtCC,cAAc,EACdC,IAAK,WACH,IACE,OAAOL,EAA0BM,KAAKC,MAAMf,MAAMU,GAAQ,GAC1D,MAAOM,GACP,MAAO","file":"chunk-81417018.1739001309915.js","sourcesContent":["import route from \"../../router\";\r\n\r\nvar Enumerable = require(\"linq\");\r\n\r\nexport default {\r\n permission: function (permission, code) {\r\n var isPermission = Enumerable.from(permission)\r\n .where(function (i) {\r\n return i.PermissionCode == code\r\n })\r\n .select(val => val.IsPermission)\r\n .toArray()\r\n\r\n return isPermission[0] || false;\r\n },\r\n routerPermission:function(path){\r\n return route.matcher.match(path).name!=\"Home\";\r\n },\r\n}","var DESCRIPTORS = require('../internals/descriptors');\nvar defineProperty = require('../internals/object-define-property').f;\n\nvar FunctionPrototype = Function.prototype;\nvar FunctionPrototypeToString = FunctionPrototype.toString;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// Function instances `.name` property\n// https://tc39.es/ecma262/#sec-function-instances-name\nif (DESCRIPTORS && !(NAME in FunctionPrototype)) {\n defineProperty(FunctionPrototype, NAME, {\n configurable: true,\n get: function () {\n try {\n return FunctionPrototypeToString.call(this).match(nameRE)[1];\n } catch (error) {\n return '';\n }\n }\n });\n}\n"],"sourceRoot":""}