All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.cjs.utils.permissions.js.map Maven / Gradle / Ivy

Go to download

A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.

There is a newer version: 4.12.3
Show newest version
{"version":3,"file":"permissions.js","names":["hasPermission","permission","globalProps","permissions","includes","exports","hasAnyPermission","_len","arguments","length","Array","_key","some","hasAllPermissions","_len2","_key2","every"],"sources":["../../../src/utils/permissions.js"],"sourcesContent":["export const hasPermission = permission =>\n  globalProps.permissions.includes(permission);\n\nexport const hasAnyPermission = (...permissions) =>\n  permissions.some(hasPermission);\n\nexport const hasAllPermissions = (...permissions) =>\n  permissions.every(hasPermission);\n"],"mappings":";;;;;;AAAO,IAAMA,aAAa,GAAG,SAAhBA,aAAaA,CAAGC,UAAU;EAAA,OACrCC,WAAW,CAACC,WAAW,CAACC,QAAQ,CAACH,UAAU,CAAC;AAAA;AAACI,OAAA,CAAAL,aAAA,GAAAA,aAAA;AAExC,IAAMM,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAA;EAAA,SAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAON,WAAW,OAAAO,KAAA,CAAAH,IAAA,GAAAI,IAAA,MAAAA,IAAA,GAAAJ,IAAA,EAAAI,IAAA;IAAXR,WAAW,CAAAQ,IAAA,IAAAH,SAAA,CAAAG,IAAA;EAAA;EAAA,OAC7CR,WAAW,CAACS,IAAI,CAACZ,aAAa,CAAC;AAAA;AAACK,OAAA,CAAAC,gBAAA,GAAAA,gBAAA;AAE3B,IAAMO,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAA;EAAA,SAAAC,KAAA,GAAAN,SAAA,CAAAC,MAAA,EAAON,WAAW,OAAAO,KAAA,CAAAI,KAAA,GAAAC,KAAA,MAAAA,KAAA,GAAAD,KAAA,EAAAC,KAAA;IAAXZ,WAAW,CAAAY,KAAA,IAAAP,SAAA,CAAAO,KAAA;EAAA;EAAA,OAC9CZ,WAAW,CAACa,KAAK,CAAChB,aAAa,CAAC;AAAA;AAACK,OAAA,CAAAQ,iBAAA,GAAAA,iBAAA"}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy