package.utils.permissions.js.map Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neeto-commons-frontend Show documentation
Show all versions of neeto-commons-frontend Show documentation
A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.
{"version":3,"file":"permissions.js","names":["hasPermission","permission","globalProps","permissions","includes","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":"AAAA,OAAO,IAAMA,aAAa,GAAG,SAAhBA,aAAaA,CAAGC,UAAU;EAAA,OACrCC,WAAW,CAACC,WAAW,CAACC,QAAQ,CAACH,UAAU,CAAC;AAAA;AAE9C,OAAO,IAAMI,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAA;EAAA,SAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAOL,WAAW,OAAAM,KAAA,CAAAH,IAAA,GAAAI,IAAA,MAAAA,IAAA,GAAAJ,IAAA,EAAAI,IAAA;IAAXP,WAAW,CAAAO,IAAA,IAAAH,SAAA,CAAAG,IAAA;EAAA;EAAA,OAC7CP,WAAW,CAACQ,IAAI,CAACX,aAAa,CAAC;AAAA;AAEjC,OAAO,IAAMY,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAA;EAAA,SAAAC,KAAA,GAAAN,SAAA,CAAAC,MAAA,EAAOL,WAAW,OAAAM,KAAA,CAAAI,KAAA,GAAAC,KAAA,MAAAA,KAAA,GAAAD,KAAA,EAAAC,KAAA;IAAXX,WAAW,CAAAW,KAAA,IAAAP,SAAA,CAAAO,KAAA;EAAA;EAAA,OAC9CX,WAAW,CAACY,KAAK,CAACf,aAAa,CAAC;AAAA"}