PageSourceSearch

https://www.anslation.com/_next/static/chunks/13920-cc4b2321c23d54ff.js

js anslation.com collected 2026-09-24 14:40:24 UTC 8,175 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[13920],{13920:(e,s,t)=>{t.r(s),t.d(s,{AnslationOneActionGuard:()=>n.b5,AnslationOneCompactSection:()=>o,AnslationOneMetricGrid:()=>c,AnslationOneModuleGate:()=>n.RG,AnslationOnePanel:()=>x,AnslationOneRoleBadge:()=>n.Ji,AnslationOneScopeNotice:()=>n.EQ,AnslationOneSubsection:()=>r,withAnslationOneModuleGate:()=>n.lM});var n=t(14312),a=t(95155),l=t(48022),i=t(88986);let r=function(e){let{title:s,description:t,meta:n,children:i,className:r="",contentClassName:o=""}=e,d=["mt-4 border-t border-[var(--anslation-ds-border)] pt-3",r].filter(Boolean).join(" "),c=["mt-3",o].filter(Boolean).join(" ");return(0,a.jsxs)("div",{className:d,children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(l.default,{className:"text-sm font-black text-[var(--anslation-ds-text)]",children:s}),t?(0,a.jsx)(l.default,{className:"mt-1 max-w-3xl text-xs leading-5",color:"text.secondary",children:t}):null]}),n?(0,a.jsx)("span",{className:"text-xs font-bold text-[var(--anslation-ds-muted)]",children:n}):null]}),(0,a.jsx)("div",{className:c,children:i})]})},o=function(e){let{title:s,description:t,meta:n,columns:o="three",items:d,className:c=""}=e;return(0,a.jsx)(r,{title:s,description:t,meta:n,className:c,contentClassName:`grid gap-2 ${"four"===o?"md:grid-cols-4":"md:grid-cols-3"}`,children:d.map(e=>(0,a.jsxs)("div",{className:"rounded-lg bg-[var(--anslation-ds-page)] p-3",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,a.jsx)(i.A,{size:15,className:"shrink-0 text-[var(--anslation-ds-primary)]",children:e.icon}),(0,a.jsx)(l.default,{className:"min-w-0 truncate text-xs font-black text-[var(--anslation-ds-text)]",children:e.title})]}),e.meta?(0,a.jsx)("span",{className:"shrink-0 text-xs font-bold text-[var(--anslation-ds-muted)]",children:e.meta}):null]}),e.eyebrow?(0,a.jsx)(l.default,{className:"mt-2 text-xs font-bold text-[var(--anslation-ds-muted)]",children:e.eyebrow}):null,e.description?(0,a.jsx)(l.default,{className:"mt-2 text-xs leading-5",color:"text.secondary",children:e.description}):null]},`${e.title}-${e.meta??e.eyebrow??""}`))})},d={two:"sm:grid-cols-2",three:"md:grid-cols-3",four:"sm:grid-cols-2 lg:grid-cols-4",six:"sm:grid-cols-3 xl:grid-cols-6"},c=function(e){let{items:s,columns:t="four",variant:n="tile",className:r=""}=e,o=`grid gap-2 ${d[t]} ${r}`.trim();return"row"===n?(0,a.jsx)("div",{className:o,children:s.map(e=>(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-lg bg-[var(--anslation-ds-page)] px-3 py-2",children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,a.jsx)(i.A,{size:15,className:e.active?"text-[var(--anslation-ds-product-primary)]":"text-[var(--anslation-ds-primary)]",children:e.icon}),(0,a.jsx)("span",{className:"truncate text-xs font-bold text-[var(--anslation-ds-muted)]",children:e.label})]}),(0,a.jsx)("span",{className:"shrink-0 text-xs font-black text-[var(--anslation-ds-text)]",children:e.value})]},e.label))}):(0,a.jsx)("div",{className:o,children:s.map(e=>(0,a.jsxs)("div",{className:"rounded-lg border border-[var(--anslation-ds-border)] bg-[var(--anslation-ds-page)] px-3 py-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-[var(--anslation-ds-muted)]",children:[(0,a.jsx)(i.A,{size:16,className:e.active?"text-[var(--anslation-ds-product-primary)]":"",children:e.icon}),(0,a.jsx)("span",{className:"truncate text-xs font-bold",children:e.label})]}),(0,a.jsx)(l.default,{className:"mt-1 text-base font-black text-[var(--anslation-ds-text)]",children:e.value}),e.description?(0,a.jsx)(l.default,{className:"mt-1 text-xs leading-5",color:"text.secondary",children:e.description}):null]},e.label))})},x=function(e){let{title:s,description:t,action:n,children:i,className:r="",contentClassName:o=""}=e,d=!!(s||t||n),c=["rounded-lg border border-[var(--anslation-ds-border)] bg-[var(--anslation-ds-surface)] p-4 shadow-sm",r].filter(
1Boolean).join(" "),x=[d?"mt-4":"",o].filter(Boolean).join(" ");return(0,a.jsxs)("section",{className:c,children:[d?(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,a.jsxs)("div",{children:[s?(0,a.jsx)(l.default,{className:"text-lg font-black text-[var(--anslation-ds-text)]",children:s}):null,t?(0,a.jsx)(l.default,{className:"mt-1 text-sm",color:"text.secondary",children:t}):null]}),n?(0,a.jsx)("div",{className:"shrink-0",children:n}):null]}):null,(0,a.jsx)("div",{className:x,children:i})]})}},14312:(e,s,t)=>{t.d(s,{EQ:()=>h,Ji:()=>f,RG:()=>m,b5:()=>p,lM:()=>u});var n=t(95155),a=t(96684),l=t(75435),i=t(15987),r=t(88061),o=t(48022),d=t(88986),c=t(15394),x=t(66745);function m(e){let{module:s,action:t="view",children:r,fallback:o}=e,d=(0,x.LL)(),m=d.moduleAccess(s);if(d.isLoading||!d.isResolved&&!d.isError)return(0,n.jsxs)(i.default,{spacing:2,sx:{p:{md:3,xs:2}},children:[(0,n.jsx)(l.A,{variant:"rounded",height:56}),(0,n.jsx)(a.default,{sx:{display:"grid",gap:1.5,gridTemplateColumns:{sm:"repeat(4, minmax(0, 1fr))",xs:"minmax(0, 1fr)"}},children:[0,1,2,3].map(e=>(0,n.jsx)(l.A,{variant:"rounded",height:92},e))}),(0,n.jsx)(l.A,{variant:"rounded",height:320})]});if(d.isError)return(0,n.jsx)(a.default,{sx:{p:{md:3,xs:2}},children:(0,n.jsx)(c.qh,{icon:"lucide:shield-alert",title:"Could not check your access",description:"We could not load your permissions, so this module stays closed until we can confirm them.",action:(0,n.jsx)(c.Sk,{icon:"lucide:rotate-cw",onClick:()=>d.refetch(),children:"Try again"})})});if(!m.allowed||!m.actions.includes(t)){if(o)return(0,n.jsx)(n.Fragment,{children:o});let e=d.moduleLabels[s]||m.moduleLabel||"This module",l=d.orgRole||"your role";return(0,n.jsx)(a.default,{sx:{p:{md:3,xs:2}},children:(0,n.jsx)(c.qh,{icon:"lucide:lock",title:`${e} is not open to ${l}`,description:m.allowed?`Your role can open ${e} but cannot ${t} here. Ask an administrator if you need this.`:`${e} holds records your role is not scoped to see. An administrator can grant access from Organization → Roles & permissions.`,action:(0,n.jsx)(c.Sk,{href:"/anslation/anslation-one/organization/roles-permissions",icon:"lucide:shield-check",children:"How access works"})})})}return(0,n.jsx)(n.Fragment,{children:r})}function u(e,s){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"view";function a(a){return(0,n.jsx)(m,{module:s,action:t,children:(0,n.jsx)(e,{...a})})}return a.displayName=`withAnslationOneModuleGate(${e.displayName||e.name||"Component"})`,a}function h(e){let{module:s,scope:t}=e,a=(0,x.LL)(),l=a.moduleAccess(s),r=t??l.scope;return l.allowed&&"all"!==r?(0,n.jsxs)(i.default,{alignItems:"center",direction:"row",spacing:.75,sx:{bgcolor:"action.hover",border:"1px solid",borderColor:"divider",borderRadius:"var(--anslation-ds-radius-sm)",px:1,py:.6},children:[(0,n.jsx)(d.A,{size:14,color:"action",children:"lucide:list-filter"}),(0,n.jsx)(o.default,{sx:{color:"text.secondary",fontSize:"0.72rem",fontWeight:700},children:(0,x.$o)(r,a.department)})]}):null}function p(e){let{module:s,action:t,children:l,hideWhenDenied:i=!1}=e,o=(0,x.LL)();if(o.can(s,t))return(0,n.jsx)(n.Fragment,{children:l});if(i)return null;let d=o.orgRole||"your role";return(0,n.jsx)(r.A,{title:`${d} cannot ${t} here`,children:(0,n.jsx)(a.default,{component:"span",sx:{cursor:"not-allowed",display:"inline-flex",opacity:.5,pointerEvents:"none"},"aria-disabled":!0,children:l})})}function f(){let e=(0,x.LL)();if(!e.isResolved)return null;let s=e.isSuperAdmin?"Super admin":e.orgRole||"Member",t=e.department?`${s} \xb7 ${e.department}`:s;return(0,n.jsxs)(i.default,{alignItems:"center",direction:"row",spacing:.6,sx:{bgcolor:"var(--anslation-ds-product-primary-soft)",border:"1px solid var(--anslation-ds-product-primary-border)",borderRadius:999,px:1,py:.35},children:[(0,n.jsx)(d.A,{size:13,children:"lucide:shield-check"}),(0,n.jsx)(o.default,{sx:{color:"var(--anslation-ds-product-primary)",fontSize:"0.7rem",fontWeight:850,textTransform:"capitalize"},children: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.