(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2898],{44267:function(e,t,a){"use strict";a.d(t,{Z:function(){return C}});var r=a(87462),s=a(63366),n=a(67294),i=a(86010),o=a(58510),l=a(90948),d=a(71657),c=a(1977),u=a(8027);function getCardContentUtilityClass(e){return(0,u.ZP)("MuiCardContent",e)}(0,c.Z)("MuiCardContent",["root"]);var h=a(85893);let Z=["className","component"],useUtilityClasses=e=>{let{classes:t}=e;return(0,o.Z)({root:["root"]},getCardContentUtilityClass,t)},m=(0,l.ZP)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),v=n.forwardRef(function(e,t){let a=(0,d.Z)({props:e,name:"MuiCardContent"}),{className:n,component:o="div"}=a,l=(0,s.Z)(a,Z),c=(0,r.Z)({},a,{component:o}),u=useUtilityClasses(c);return(0,h.jsx)(m,(0,r.Z)({as:o,className:(0,i.Z)(u.root,n),ownerState:c,ref:t},l))});var C=v},78445:function(e,t,a){"use strict";a.d(t,{Z:function(){return b}});var r=a(63366),s=a(87462),n=a(67294),i=a(86010),o=a(58510),l=a(15861),d=a(71657),c=a(90948),u=a(1977),h=a(8027);function getCardHeaderUtilityClass(e){return(0,h.ZP)("MuiCardHeader",e)}let Z=(0,u.Z)("MuiCardHeader",["root","avatar","action","content","title","subheader"]);var m=a(85893);let v=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],useUtilityClasses=e=>{let{classes:t}=e;return(0,o.Z)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},getCardHeaderUtilityClass,t)},C=(0,c.ZP)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>(0,s.Z)({[`& .${Z.title}`]:t.title,[`& .${Z.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),p=(0,c.ZP)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),x=(0,c.ZP)("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),y=(0,c.ZP)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),f=n.forwardRef(function(e,t){let a=(0,d.Z)({props:e,name:"MuiCardHeader"}),{action:n,avatar:o,className:c,component:u="div",disableTypography:h=!1,subheader:Z,subheaderTypographyProps:f,title:b,titleTypographyProps:g}=a,j=(0,r.Z)(a,v),P=(0,s.Z)({},a,{component:u,disableTypography:h}),w=useUtilityClasses(P),N=b;null==N||N.type===l.Z||h||(N=(0,m.jsx)(l.Z,(0,s.Z)({variant:o?"body2":"h5",className:w.title,component:"span",display:"block"},g,{children:N})));let R=Z;return null==R||R.type===l.Z||h||(R=(0,m.jsx)(l.Z,(0,s.Z)({variant:o?"body2":"body1",className:w.subheader,color:"text.secondary",component:"span",display:"block"},f,{children:R}))),(0,m.jsxs)(C,(0,s.Z)({className:(0,i.Z)(w.root,c),as:u,ref:t,ownerState:P},j,{children:[o&&(0,m.jsx)(p,{className:w.avatar,ownerState:P,children:o}),(0,m.jsxs)(y,{className:w.content,ownerState:P,children:[N,R]}),n&&(0,m.jsx)(x,{className:w.action,ownerState:P,children:n})]}))});var b=f},20709:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/acl",function(){return a(92905)}])},92905:function(e,t,a){"use strict";a.r(t);var r=a(85893),s=a(67294),n=a(35045),i=a(86886),o=a(66242),l=a(78445),d=a(15861),c=a(44267);let ACLPage=()=>{let e=(0,s.useContext)(n.v);return(0,r.jsxs)(i.ZP,{container:!0,spacing:6,children:[(0,r.jsx)(i.ZP,{item:!0,md:6,xs:12,children:(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(l.Z,{title:"Common"}),(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(d.Z,{sx:{mb:4},children:"No ability is required to view this card"}),(0,r.jsx)(d.Z,{sx:{color:"primary.main"},children:"This card is visible to 'user' and 'admin' both"})]})]})}),(null==e?void 0:e.can("read","analytics"))?(0,r.jsx)(i.ZP,{item:!0,md:6,xs:12,children:(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(l.Z,{title:"Analytics"}),(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(d.Z,{sx:{mb:4},children:"User with 'Analytics' subject's 'Read' ability can view this card"}),(0,r.jsx)(d.Z,{sx:{color:"error.main"},children:"This card is visible to 'admin' only"})]})]})}):null]})};ACLPage.acl={action:"read",subject:"acl-page"},t.default=ACLPage}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=20709)}),_N_E=e.O()}]);