1import{t as e}from"./jsx-runtime-Du14r1i6.js";import{n as t}from"./src-DZF3Ku05.js";import{r as n}from"./src-DmBMCYUV.js";import{n as r}from"./dist-COy9H_CT.js";import{t as i}from"./compiler-runtime-46hl27BJ.js";import{t as a}from"./status-codes.constant-FAaGwZ4m.js";var o=i(),s=e();function c(e){let i=(0,o.c)(16),{children:c,permissions:u,any:d,blockOnly:f,showToast:p,toastMessage:m,fallback:h,onDenied:g}=e,_=d===void 0?!1:d,v=f===void 0?!1:f,y=p===void 0?!0:p,b=h===void 0?null:h,{userInfo:x}=n(l),{t:S}=t(),C;i[0]!==S||i[1]!==m?(C=m||S(`common.auth.noPermission`),i[0]=S,i[1]=m,i[2]=C):C=i[2];let w=C,T=x?.isRoot===a.YES,E=x?.permissionsCodes??[],D=Array.isArray(u)?u:[u],O=_?D.some(e=>E.includes(e)):D.every(e=>E.includes(e)),k=T||O;if(!k&&!v){let e;return i[3]===b?e=i[4]:(e=(0,s.jsx)(s.Fragment,{children:b}),i[3]=b,i[4]=e),e}if(!k){let e;i[5]!==w||i[6]!==g||i[7]!==y?(e=e=>{e.preventDefault(),e.stopPropagation(),y&&r.error(w),g?.()},i[5]=w,i[6]=g,i[7]=y,i[8]=e):e=i[8];let t=e,n;i[9]===c?n=i[10]:(n=(0,s.jsx)(`div`,{className:`pointer-events-none`,children:c}),i[9]=c,i[10]=n);let a;return i[11]!==t||i[12]!==n?(a=(0,s.jsx)(`div`,{onClick:t,onKeyDown:t,className:`cursor-not-allowed`,children:n}),i[11]=t,i[12]=n,i[13]=a):a=i[13],a}let A;return i[14]===c?A=i[15]:(A=(0,s.jsx)(s.Fragment,{children:c}),i[14]=c,i[15]=A),A}function l(e){return e.auth}export{c as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.