PageSourceSearch

https://www.anslation.com/_next/static/chunks/6293-08e9108d9a91dd14.js

js anslation.com collected 2026-10-02 01:25:51 UTC 34,214 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6293],{6293:(e,t,n)=>{n.r(t),n.d(t,{default:()=>U});var a=n(95155),r=n(12115),o=n(568),l=n(57752),i=n(62709),s=n(80322),d=n(64319),c=n(88061),u=n(10181),p=n(51758),m=n(88986),b=n(20723),x=n(8120),g=n(78655),h=n(60460);let f={danger:"anslation-action-button anslation-action-button--danger",neutral:"anslation-action-button",primary:"anslation-action-button anslation-action-button--primary hover:-translate-y-0.5"},v={color:"text.secondary",padding:"4px","&.Mui-checked":{color:"var(--anslation-ds-product-primary)"},"&.MuiCheckbox-indeterminate":{color:"var(--anslation-ds-product-primary)"},"& .MuiSvgIcon-root":{fontSize:20}};function k(e){return`color-mix(in srgb, var(--anslation-ds-product-primary) ${e}%, transparent)`}let w={border:{dark:k(56),light:k(45)},fill:{dark:k(16),light:k(10)},fillHover:{dark:k(30),light:k(30)},loadingOutline:{dark:k(34),light:k(24)},match:{dark:k(18),light:k(12)}},y={minWidth:150,"& .MuiInputBase-input":{fontSize:"0.8125rem",fontWeight:700},"& .MuiInputLabel-root":{fontSize:"0.8125rem",fontWeight:700},"& .MuiOutlinedInput-root":{borderRadius:"6px"}};function j(e,t){let n=String(e||"").toLowerCase();return"boolean"==typeof t||n.startsWith("is_")?"boolean":n.includes("status")||["access_level","ai_status","generation_mode","role","state"].includes(n)?"status":n.includes("percent")||"ctr"===n||"roi"===n?"percent":n.includes("revenue")||n.includes("spend")||n.includes("amount")?"currency":n.endsWith("_at")||n.includes("time")?"datetime":n.includes("date")?"date":"number"==typeof t?"number":t&&"object"==typeof t?"json":"text"}function C(e){if("boolean"==typeof e)return e;let t=String(e??"").trim().toLowerCase();return!!["1","active","enabled","on","true","yes"].includes(t)||!["0","disabled","false","inactive","no","off"].includes(t)&&null}function S(e){return e.header||e.label||(0,b.re)(e.key)}function M(e,t){let n=e.size||0,a=t.split(/\s+/).filter(Boolean),r=t.replace(/\s+/g,"").length,o=a.reduce((e,t)=>Math.max(e,t.length),0);return"ID"===t?Math.max(n,68):"UUID"===t?Math.max(n,124):Math.max(n,Math.round(Math.min(220,Math.max(96,8*o+48,r*(a.length>1?5.8:7.2)+44))))}function N(e){let{columnKey:t,label:n}=e,r=t&&t!==n?`${n} (${t})`:n;return(0,a.jsx)(c.A,{title:r,arrow:!0,placement:"top",children:(0,a.jsx)("span",{className:"inline-flex min-w-0 max-w-full items-center",children:(0,a.jsx)("span",{className:"block min-w-0 max-w-full text-[0.75rem] font-black leading-[1.14] text-slate-600 dark:text-slate-300",style:{overflowWrap:"anywhere",whiteSpace:"normal"},children:n})})})}function P(e){return String(e||"").trim().toLowerCase()}function T(e){let{label:t,value:n}=e,r=C(n),o=(0,b.Vl)(r??n),l=!0===r,i=!1===r;return(0,a.jsx)(c.A,{title:`${t}: ${o}`,arrow:!0,placement:"top",children:(0,a.jsx)("span",{"aria-label":`${t}: ${o}`,className:`inline-flex h-7 w-7 items-center justify-center rounded-md border shadow-[0_1px_2px_rgba(15,23,42,0.04)] ${l?"anslation-boolean-chip anslation-boolean-chip--yes":i?"anslation-boolean-chip anslation-boolean-chip--no":"anslation-boolean-chip"}`,role:"img",children:(0,a.jsx)(m.A,{size:15,children:l?"lucide:check":i?"lucide:x":"lucide:minus"})})})}function D(e){let{label:t,value:n}=e,r=(0,b.Vl)(n);return(0,a.jsx)(c.A,{title:`${t}: ${r}`,arrow:!0,placement:"top",children:(0,a.jsx)("span",{className:"inline-flex max-w-full",children:(0,a.jsx)(x.A,{className:"max-w-full",icon:(0,h.cQ)(n),tone:(0,h.gT)(n),children:r})})})}let z=/pass(word)?|secret|token|api[_-]?key|auth|credential|private[_-]?key/i;function $(e){let{label:t,value:n,summary:o,opaque:l}=e,[i,s]=(0,r.useState)(null),[c,u]=(0,r.useState)(!1),p=(0,r.useMemo)(()=>n&&"object"==typeof n?Object.entries(Array.isArray(n)?Object.fromEntries(n.map((e,t)=>[String(t),e])):n).map(e=>{let[t,n]=e;return{key:(0,b.re)(t),value:z.test(t)?"••••••":null==n||""===n?"—":"object"==typeof n?(0,b.Vl)(n):String(n)}}):[],[n]),x=(0,r.useCallback)(()=>{navigator.clipboard?.writeText(JSON.stringify(n,null,2)).then(()=>{u(!0),window.setTimeout(()=>u(!1),1500)}).catch(()=>{})},[n]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("button",{"aria-label":`${t}: ${o}
1`,className:l?"inline-flex max-w-80 cursor-pointer items-center gap-1.5 truncate rounded-md bg-slate-100 px-2 py-1 font-mono text-xs font-black text-slate-700 hover:bg-slate-200 dark:bg-slate-800 dark:text-slate-200 dark:hover:bg-slate-700":"inline-flex max-w-80 cursor-pointer items-center gap-1.5 truncate rounded-md px-1 py-0.5 text-xs font-semibold text-slate-700 hover:bg-slate-100 dark:text-slate-200 dark:hover:bg-slate-800",type:"button",onClick:e=>s(e.currentTarget),children:[(0,a.jsx)(m.A,{className:l?"shrink-0":"shrink-0 text-slate-400",size:13,children:l?"lucide:braces":"lucide:plug"}),(0,a.jsx)("span",{className:"block min-w-0 truncate",children:o})]}),(0,a.jsx)(d.Ay,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"left"},open:!!i,transformOrigin:{vertical:"top",horizontal:"left"},onClose:()=>s(null),children:(0,a.jsxs)("div",{className:"max-w-[24rem] min-w-[16rem] p-3",children:[(0,a.jsxs)("div",{className:"mb-2 flex items-center justify-between gap-3",children:[(0,a.jsx)("p",{className:"text-[0.7rem] font-black tracking-[0.06em] text-slate-500 uppercase",children:t}),(0,a.jsxs)("button",{className:"inline-flex items-center gap-1 rounded border border-slate-200 px-1.5 py-0.5 text-[0.65rem] font-bold text-slate-600 hover:bg-slate-100 dark:border-slate-700 dark:text-slate-300 dark:hover:bg-slate-800",type:"button",onClick:x,children:[(0,a.jsx)(m.A,{size:12,children:c?"lucide:check":"lucide:copy"}),c?"Copied":"Copy"]})]}),0===p.length?(0,a.jsx)("p",{className:"text-xs text-slate-500",children:"No details."}):(0,a.jsx)("dl",{className:"space-y-1",children:p.map(e=>(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3 text-xs",children:[(0,a.jsx)("dt",{className:"shrink-0 font-semibold text-slate-500",children:e.key}),(0,a.jsx)("dd",{className:"min-w-0 break-words text-right font-bold text-slate-800 dark:text-slate-100",children:e.value})]},e.key))})]})})]})}function A(e){let{highlightQuery:t,icon:n,label:r,value:o}=e,l=(0,b.Vl)(o);return(0,a.jsx)(c.A,{title:"-"===l?"":`${r}: ${l}`,arrow:!0,placement:"top",children:(0,a.jsxs)("span",{className:"inline-flex max-w-full items-center gap-1.5",children:[(0,a.jsx)(m.A,{className:"shrink-0 text-slate-400 dark:text-slate-500",size:14,children:n}),(0,a.jsx)("span",{className:"block min-w-0 truncate",children:R(l,t)})]})})}function I(e){let{href:t,icon:n,label:r,value:o}=e,l=(0,b.Vl)(o);return(0,a.jsx)(c.A,{title:`${r}: ${l}`,arrow:!0,placement:"top",children:(0,a.jsxs)("a",{className:"inline-flex max-w-full items-center gap-1.5 font-black text-[var(--anslation-ds-primary)] underline-offset-4 transition hover:underline",href:t,onClick:e=>e.stopPropagation(),rel:t.startsWith("http")?"noreferrer":void 0,target:t.startsWith("http")?"_blank":void 0,children:[(0,a.jsx)(m.A,{className:"shrink-0",size:14,children:n}),(0,a.jsx)("span",{className:"block min-w-0 truncate",children:l})]})})}function O(e){if(!e)return null;if(e instanceof Date)return Number.isNaN(e.getTime())?null:e;let t=new Date(String(e));return Number.isNaN(t.getTime())?null:t}let B=new Map;function R(e,t){let n=String(t||"").trim();if(!n||"-"===e||n.length<2)return e;let r=function(e){let t=B.get(e);if(t)return t.lastIndex=0,t;let n=RegExp(`(${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`,"ig");return B.size>32&&B.clear(),B.set(e,n),n}(n),o=e.split(r);return o.length<=1?e:o.map((e,t)=>e.toLowerCase()===n.toLowerCase()?(0,a.jsx)("mark",{className:"rounded-sm bg-[color-mix(in_srgb,var(--anslation-ds-primary)_18%,transparent)] px-0.5 font-black text-[var(--anslation-ds-primary)]",children:e},`${e}-${t}`):(0,a.jsx)("span",{children:e},`${e}-${t}`))}function W(e){return JSON.stringify(e??null)}function E(e,t){if("boolean"===e){let e=C(t);return null===e?"":String(e)}if("select"===e)return W(t??null);if("date"===e){let e=O(t);return e?`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:""}if("datetime"===e){let e=O(t);return e?`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}T${String(e.getHours()).padStart(2,"0")}
1:${String(e.getMinutes()).padStart(2,"0")}`:""}return null==t?"":String(t)}function F(e){let{column:t,field:n,highlightQuery:o,onSave:l,row:i,rowIndex:s,value:d}=e,u=!!(l&&n&&!1!==n.enabled),p=function(e,t){if(t?.type)return t.type;let n=e.type||"text";return"boolean"===n||"date"===n||"datetime"===n||"number"===n||"status"===n?"status"===n?"select":n:"text"}(t,n),[x,g]=(0,r.useState)(!1),[h,f]=(0,r.useState)(()=>E(p,d)),[v,k]=(0,r.useState)(!1),[w,y]=(0,r.useState)("");async function C(){if(!u||!l||v)return;let e=function(e,t,n){if(("select"===t||"boolean"===t)&&e.choices?.length){let t=e.choices.find(e=>W(e.value)===n);return t?t.value:""}return"boolean"===t?"true"===n:"number"===t?""===n?"":Number(n):n}(n||{},p,h);if(JSON.stringify(e??null)===JSON.stringify(d??null)){g(!1),y("");return}k(!0),y("");try{await l(i,s,t.key,e),g(!1)}catch(e){y(e instanceof Error&&e.message?e.message:String(e||"Unable to save cell."))}finally{k(!1)}}function M(e){if("Escape"===e.key){e.preventDefault(),f(E(p,d)),y(""),g(!1);return}"Enter"===e.key&&"textarea"!==p&&(e.preventDefault(),C())}if((0,r.useEffect)(()=>{x||(f(E(p,d)),y(""))},[x,p,d]),x&&u){var N;let e=(N=n||{},N.choices?.length?N.choices:"boolean"===p?[{label:"Yes",value:!0},{label:"No",value:!1}]:[]),t="select"!==p||e.length?p:"text",r="w-full min-w-[8rem] rounded-md border border-[var(--anslation-ds-border-strong)] bg-white px-2 py-1.5 text-xs font-black text-slate-900 outline-none ring-2 ring-slate-900/10 transition focus:border-[var(--anslation-ds-primary)] focus:ring-[color-mix(in_srgb,var(--anslation-ds-primary)_20%,transparent)] dark:bg-slate-950 dark:text-slate-100";return(0,a.jsxs)("span",{className:"block min-w-[9rem]",onClick:e=>e.stopPropagation(),children:[(0,a.jsxs)("span",{className:"relative flex items-center gap-1.5",children:["select"===t||"boolean"===t?(0,a.jsxs)("select",{autoFocus:!0,className:r,disabled:v,value:h,onBlur:()=>void C(),onChange:e=>f(e.target.value),onKeyDown:M,children:["select"!==t||n?.required?null:(0,a.jsx)("option",{value:W(null),children:"Clear"}),e.map(e=>(0,a.jsx)("option",{value:W(e.value),children:e.label},`${e.label}-${W(e.value)}`))]}):"textarea"===t?(0,a.jsx)("textarea",{autoFocus:!0,className:`${r} min-h-16 resize-y`,disabled:v,maxLength:n?.maxLength,placeholder:n?.placeholder,value:h,onBlur:()=>void C(),onChange:e=>f(e.target.value),onKeyDown:M}):(0,a.jsx)("input",{autoFocus:!0,className:r,disabled:v,maxLength:n?.maxLength,placeholder:n?.placeholder,type:"email"===t?"email":"url"===t?"url":"number"===t?"number":"date"===t?"date":"datetime"===t?"datetime-local":"text",value:h,onBlur:()=>void C(),onChange:e=>f(e.target.value),onKeyDown:M}),v?(0,a.jsx)(m.A,{size:14,className:"shrink-0 animate-spin text-slate-400",children:"lucide:loader-circle"}):null]}),w?(0,a.jsx)("span",{className:"mt-1 block text-[11px] font-black text-rose-600",children:w}):null]})}let z=function(e,t,n,r,o){if(e.render)return e.render(t,n,r);let l=e.type||j(e.key,t),i=S(e),s=(0,b.Vl)(t);if("boolean"===l)return(0,a.jsx)(T,{label:i,value:t});if("status"===l)return(0,a.jsx)(D,{label:i,value:t});if("currency"===l){let r=e.currencyKey?n[e.currencyKey]:void 0;return(0,a.jsx)("span",{className:"font-black text-gray-900 dark:text-gray-100",children:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";if("number"!=typeof e)return(0,b.Vl)(e);let n=/^[A-Za-z]{3}$/.test(t)?t.toUpperCase():"USD";return new Intl.NumberFormat(void 0,{currency:n,maximumFractionDigits:2,style:"currency"}).format(e)}(t,String(r||e.currency||"USD"))})}if("percent"===l){let e="number"==typeof t?t:Number(t),n=Number.isFinite(e)&&e>=0;return(0,a.jsx)("span",{className:n?"font-black text-emerald-600":"font-black text-rose-600",children:Number.isFinite(e)?`${e.toFixed(2)}%`:(0,b.Vl)(t)})}if("date"===l||"datetime"===l)return(0,a.jsx)(A,{icon:"datetime"===l?"lucide:calendar-clock":"lucide:calendar-days",label:i,value:t});if("number"===l)return(0,a.jsx)("span",{className:"font-semibold tabular-nums",children:"number"!=typeof t?(0,b.Vl)(t):t.toLocaleString(void 0,{maximumFractionDigits:2})});if("json"===l||t&&"object"==typeof t){if("-"===s)return(0,a.jsx)("span",{className:"text-slate-400",children:"-"});let e=/^\d+\s+(fields|items)$/.test(s);return(0,a.jsx)($,{label:i,opaque:e,summary:s,value:t})}if("string"==typeof t&&"-"!==s){let n,r,o=P(e.key).includes("email")?`mailto:${t}`:("url"===(n=P(e.key))||n.includes("url")||n.includes("website")||n.includes("webhook")||n.includes("endpoint"))&&(r=t.trim())&&"-"!==r?/^https?:\/\//i.test(r)?r:/^[\w.-]+\.[a-z]{2,}(?:\/.*)?$/i.test(r)?`https://${r}`:"":"";if(o)return(0,a.jsx)(I,{href:o,icon:o.startsWith("mailto:")?"lucide:mail":"lucide:external-link",label:i,value:t})}return(0,a.jsx)(c.A,{title:"-"===s?"":`${i}: ${s}`,arrow:!0,placement:"top",children:(0,a.jsx)("span",{className:"block truncate",children:R(s,o)})})}(t,d,i,s,o);return u?(0,a.jsx)(c.A,{title:"Double-click to edit",arrow:!0,placement:"top",children:(0,a.jsxs)("span",{role:"button",tabIndex:0,className:"group/inline-cell inline-flex max-w-full cursor-text items-center gap-1.5 rounded-md px-1 py-0.5 outline-none transition hover:bg-slate-100 focus-visible:ring-2 focus-visible:ring-slate-900/10 dark:hover:bg-slate-900",onClick:e=>e.stopPropagation(),onDoubleClick:e=>{e.stopPropagation(),g(!0)},onKeyDown:e=>
1{("Enter"===e.key||"F2"===e.key)&&(e.preventDefault(),e.stopPropagation(),g(!0))},children:[(0,a.jsx)("span",{className:"min-w-0 flex-1 truncate",children:z}),(0,a.jsx)(m.A,{size:12,className:"shrink-0 text-slate-300 opacity-0 transition group-hover/inline-cell:opacity-100 dark:text-slate-600",children:"lucide:pencil"})]})}):z}let H={},_=[];function L(e,t){let n=e.id??e.uuid??e.slug??e.code??e.key;return null==n||""===n?String(t):String(n)}function V(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(null==e?"":String(e).trim())||t}function K(e,t){return"function"==typeof e.disabled?e.disabled(t):!!e.disabled}let U=function(e){let{autoResetPageIndex:t=!0,actions:n=[],bulkActions:d=[],className:c="",columnPinning:h,columns:k,data:C,dateFilter:P,emptyState:T="No records found.",errorState:D="",enableColumnFilters:z=!0,enableColumnOrdering:$=!0,enableColumnResizing:A=!0,enableGrouping:I=!0,enablePagination:B=!0,enableSelectAll:R=!0,enableTopToolbar:W=!0,fillAvailableHeight:E=!1,enableMultiRowSelection:U=!1,enableRowSelection:G=!0,getRowId:Y,highlightQuery:J,initialPageSize:q=10,inlineEditFields:Q=H,isLoading:X=!1,loadingRowIds:Z=_,loadingRowLabel:ee="Updating row",metrics:et=[],onCellEditSave:en,onColumnPinningChange:ea,onRefresh:er,onSelectedRowChange:eo,onSelectedRowIdsChange:el,selectedRowKey:ei,selectedRowIds:es,showRowSelectionColumn:ed=!1,density:ec="compact",rowActionsDisplay:eu="buttons",subtitle:ep,title:em,toolbarActions:eb,virtualized:ex=!1}=e,[eg,eh]=(0,r.useState)({}),ef=(0,r.useRef)({}),[ev,ek]=(0,r.useState)({anchorEl:null,row:null,rowId:"",rowIndex:-1}),[ew,ey]=(0,r.useState)({left:[],right:[]}),[ej,eC]=(0,r.useState)(P?.defaultStartDate||null),[eS,eM]=(0,r.useState)(P?.defaultEndDate||null),eN=P?.field,eP=P?.startDate??ej,eT=P?.endDate??eS,eD=(0,r.useMemo)(()=>Y||L,[Y]),ez=(0,r.useMemo)(()=>{if(!eN||!eP&&!eT)return C;let e=eP?new Date(eP.getFullYear(),eP.getMonth(),eP.getDate()).getTime():null,t=eT?new Date(eT.getFullYear(),eT.getMonth(),eT.getDate(),23,59,59,999).getTime():null;return C.filter(n=>{let a=O(n[eN]);if(!a)return!1;let r=a.getTime();return(null===e||r>=e)&&(null===t||r<=t)})},[C,eN,eT,eP]),e$=(0,r.useMemo)(()=>ez.map((e,t)=>V(eD(e,t),String(t))),[eD,ez]),eA=(0,r.useMemo)(()=>new Set(e$.filter(Boolean)),[e$]),eI=(0,r.useMemo)(()=>es?Array.from(new Set(es.map(e=>V(e)).filter(e=>e&&eA.has(e)))):null,[es,eA]),eO=(0,r.useMemo)(()=>ez.filter((e,t)=>!!eg[e$[t]]),[eg,ez,e$]),eB=(0,r.useMemo)(()=>e$.filter(e=>!!eg[e]),[eg,e$]),eR=(0,r.useMemo)(()=>new Set(Z.filter(Boolean)),[Z]),eW=["compact","comfortable","spacious"].includes(ec)?ec:"compact",eE="spacious"===eW?"13px":"comfortable"===eW?"10px":"6px",eF="spacious"===eW?"11px":"comfortable"===eW?"8px":"6px",eH=(0,r.useMemo)(()=>{if(k?.length)return k;let e=ez[0]||C[0];return e?Object.keys(e).slice(0,12).map(t=>({key:t,label:(0,b.re)(t),type:j(t,e[t])})):[]},[k,C,ez]),e_=(0,r.useMemo)(()=>eH.map(e=>{let t=S(e),n=M(e,t);return{accessorKey:e.key,enableGrouping:e.enableGrouping??I,enableSorting:!1!==e.sortable,header:t,Header:()=>(0,a.jsx)(N,{columnKey:e.key,label:t}),minSize:Math.min(n,96),size:n,Cell:t=>{let{cell:n,row:r}=t;return(0,a.jsx)(F,{column:e,field:Q[e.key],highlightQuery:J,row:r.original,rowIndex:r.index,value:n.getValue(),onSave:en})},muiTableBodyCellProps:{align:e.align},muiTableHeadCellProps:{align:e.align}}}),[I,J,Q,eH,en]),eL=(0,r.useMemo)(()=>Math.max(720,eH.reduce((e,t)=>{let n=S(t);return e+(t.size||M(t,n))},0)+(ed||G?58:0)+(n?.length?Math.max(120,82*n.length):0)+48),[n.length,G,eH,ed]),eV=(0,r.useCallback)(e=>{let t,n=(t={},Object.entries(e).forEach(e=>{let[n,a]=e,r=V(n);a&&r&&eA.has(r)&&(t[r]=!0)}),t);return ef.current=n,eh(e=>{let t,a;return(t=Object.keys(e),a=Object.keys(n),t.length===a.length&&t.every(t=>!!e[t]==!!n[t]))?e:n}),n},[eA]);function eK(e,t){let n=eV(e),a=e$.filter(e=>!!n[e]),r=ez.filter((e,t)=>!!n[e$[t]]);if(el?.(a,r),t)return void eo?.(t.original,t.index,t.id);let o=a[0]||"",l=o?e$.findIndex(e=>e===o):-1;eo?.(l>=0?ez[l]:null,l,o)}function eU(e){eC(e),P?.onStartDateChange?.(e)}function eG(e){eM(e),P?.onEndDateChange?.(e)}function eY(){ek({anchorEl:null,row:null,rowId:"",rowIndex:-1})}(0,r.useEffect)(()=>{ef.current=eg},[eg]),(0,r.useEffect)(()=>
1{if(!ed){if(!ei)return void eV({});eV({[ei]:!0})}},[eV,ei,ed]),(0,r.useEffect)(()=>{h&&ey(h)},[h]),(0,r.useEffect)(()=>{ed&&es&&eV(Object.fromEntries((eI||[]).map(e=>[e,!0])))},[eV,eI,es,ed]),(0,r.useEffect)(()=>{eV(ef.current)},[eV]),(0,r.useEffect)(()=>{!ev.rowId||e$.some(e=>e===ev.rowId)||ek({anchorEl:null,row:null,rowId:"",rowIndex:-1})},[ev.rowId,e$]);let eJ=(0,p.Up)({autoResetPageIndex:t,columns:e_,data:ez,displayColumnDefOptions:{"mrt-row-actions":{header:"menu"===eu?"":"Actions",size:"menu"===eu?54:Math.max(64,n.reduce((e,t)=>e+(t.iconOnly?42:74),0)),muiTableBodyCellProps:{align:"right",sx:{paddingRight:"menu"===eu?"8px":"12px",whiteSpace:"nowrap"}},muiTableHeadCellProps:{align:"right",sx:{paddingRight:"menu"===eu?"8px":"12px",whiteSpace:"nowrap"}}},"mrt-row-select":{header:"",size:46,muiTableBodyCellProps:{align:"center",sx:{minWidth:46,padding:"0 8px",width:46}},muiTableHeadCellProps:{align:"center",sx:{minWidth:46,padding:"0 8px",width:46}}}},enableBottomToolbar:B,enableColumnFilters:z,enableColumnOrdering:$,enableColumnPinning:!0,enableColumnResizing:A,enableDensityToggle:!0,enableFullScreenToggle:!1,enableGlobalFilter:!0,enableGrouping:I,enableMultiRowSelection:U&&ed,enablePagination:B,enableRowActions:n.length>0,enableRowSelection:G&&ed,enableRowVirtualization:ex||ez.length>100,enableSelectAll:ed&&R,enableStickyHeader:E||ex||ez.length>20,enableTopToolbar:W,getRowId:(e,t)=>V(eD(e,t),String(t)),groupedColumnMode:"remove",initialState:{columnPinning:{left:[],right:[]},pagination:{pageIndex:0,pageSize:q},showGlobalFilter:!0,density:eW},layoutMode:"grid",localization:D?{noRecordsToDisplay:D,noResultsFound:D}:{noRecordsToDisplay:T},mrtTheme:e=>({baseBackgroundColor:e.palette.background.paper,draggingBorderColor:"var(--anslation-ds-console-selection-border)",matchHighlightColor:"dark"===e.palette.mode?w.match.dark:w.match.light,menuBackgroundColor:e.palette.background.paper,pinnedRowBackgroundColor:(0,u.X4)(e.palette.background.default,"dark"===e.palette.mode?.94:1),selectedRowBackgroundColor:"dark"===e.palette.mode?"rgba(120, 183, 255, 0.16)":"rgba(37, 99, 235, 0.10)"}),muiBottomToolbarProps:{sx:{borderColor:"divider",borderTop:"1px solid",backgroundColor:"var(--anslation-ds-console-panel-subtle)",minHeight:46,"& .MuiTablePagination-root":{color:"text.secondary",fontSize:"0.8125rem",fontWeight:700},"& .MuiTablePagination-selectLabel, & .MuiTablePagination-displayedRows":{fontSize:"0.8125rem",fontWeight:800,margin:0}}},muiColumnActionsButtonProps:{size:"small",sx:{color:"text.secondary"}},muiColumnDragHandleProps:{size:"small",sx:{color:"text.secondary"}},muiFilterTextFieldProps:{size:"small",sx:y,variant:"outlined"},muiPaginationProps:{rowsPerPageOptions:[5,10,25,50,100],SelectProps:{MenuProps:{PaperProps:{sx:{border:"1px solid",borderColor:"divider",borderRadius:"8px",boxShadow:"var(--anslation-ds-shadow-md)",marginTop:1}}},size:"small",sx:{borderRadius:"6px",fontSize:"0.8125rem",fontWeight:800,"& .MuiSelect-select":{paddingBottom:"5px",paddingTop:"5px"}}},shape:"rounded",showRowsPerPage:!0,variant:"outlined"},muiSearchTextFieldProps:{placeholder:"Search rows, IDs, and fields",size:"small",sx:{...y,maxWidth:"min(100%, 22rem)",minWidth:{sm:260,xs:"100%"},width:"22rem","& .MuiInputBase-root":{backgroundColor:"var(--anslation-ds-console-panel)",borderRadius:"var(--anslation-ds-radius)",fontSize:"0.8125rem",fontWeight:700,minHeight:32,transition:"border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease"},"& .MuiOutlinedInput-notchedOutline":{borderColor:"var(--anslation-ds-border)"},"& .MuiInputBase-root:hover .MuiOutlinedInput-notchedOutline":{borderColor:"var(--anslation-ds-border-strong)"},"& .Mui-focused":{backgroundColor:"background.paper",boxShadow:"0 0 0 3px var(--anslation-ds-product-primary-soft)"},"& .Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"var(--anslation-ds-console-selection-border)"},"& .MuiInputBase-input":{paddingBlock:"5px"},"& .MuiInputAdornment-positionStart":{marginRight:"6px"}},variant:"outlined"},muiSelectAllCheckboxProps:{color:"default",size:"small",sx:v},muiSelectCheckboxProps:{color:"default",size:"small",sx:v},muiTableBodyCellProps:{sx:{borderColor:"divider",fontSize:"0.8125rem",fontWeight:600,paddingBottom:eE,paddingTop:eE,verticalAlign:"middle"}},muiTableBodyRowProps:e=>{let{row:t}=e;return{hover:!0,onClick:()=>(function(e){if(!G)return;let t=ef.current;
1eK(U?{...t,[e.id]:!t[e.id]}:{[e.id]:!0},e)})(t),selected:!!eg[t.id],title:eR.has(t.id)?ee:void 0,sx:e=>({cursor:G?"pointer":"default",opacity:eR.has(t.id)?.72:1,outline:eR.has(t.id)?`1px solid ${"dark"===e.palette.mode?w.loadingOutline.dark:w.loadingOutline.light}`:"none",outlineOffset:"-1px",transition:"background-color 150ms ease, opacity 150ms ease, outline-color 150ms ease","&.Mui-selected":{boxShadow:`inset 3px 0 0 ${"dark"===e.palette.mode?w.border.dark:w.border.light}`},"&.Mui-selected td:after":{backgroundColor:"dark"===e.palette.mode?w.fill.dark:w.fill.light},"&.Mui-selected:hover td:after":{backgroundColor:"dark"===e.palette.mode?w.fillHover.dark:w.fillHover.light},"&:hover":{backgroundColor:"var(--anslation-ds-console-row-hover)"}})}},muiTableContainerProps:{sx:{backgroundColor:"background.paper",flex:E?"1 1 auto":void 0,height:E?"100%":void 0,maxHeight:E?"none":ex||ez.length>20?"34rem":void 0,minHeight:E?0:void 0,overflowX:"auto",overflowY:E?"auto":void 0,"&::-webkit-scrollbar":{height:10,width:10},"&::-webkit-scrollbar-thumb":{backgroundColor:"rgba(107,114,128,0.35)",borderRadius:999},"&::-webkit-scrollbar-track":{backgroundColor:"transparent"}}},muiTableHeadCellProps:{sx:{backgroundColor:"var(--anslation-ds-console-panel-subtle)",borderColor:"divider",color:"text.secondary",fontSize:"0.75rem",fontWeight:900,letterSpacing:0,paddingBottom:eF,paddingTop:eF,textTransform:"none",verticalAlign:"middle"}},muiTablePaperProps:{className:`anslation-console-table overflow-hidden backdrop-blur-sm ${E?"flex h-full min-h-0 flex-col":""} ${c}`,elevation:0,sx:{backgroundImage:"none",minHeight:E?0:void 0}},muiTableProps:{sx:{minWidth:eL,width:"max-content","& .MuiTableCell-root":{borderColor:"divider"},"& .Mui-TableHeadCell-Content":{alignItems:"center",gap:"4px"},"& .Mui-TableHeadCell-Content-Labels":{flex:"1 1 auto",minWidth:0},"& .Mui-TableHeadCell-Content-Wrapper":{lineHeight:1.14,overflow:"visible",textOverflow:"clip",whiteSpace:"normal"},"& .MuiTableSortLabel-root":{alignItems:"center",gap:"3px"}}},muiTopToolbarProps:{sx:{borderBottom:"1px solid",borderColor:"divider",backgroundColor:"var(--anslation-ds-console-panel)",gap:1,minHeight:"auto",padding:1,"& .MuiBox-root":{rowGap:1}}},paginationDisplayMode:"default",positionActionsColumn:"last",positionGlobalFilter:"right",positionToolbarAlertBanner:"none",onColumnPinningChange:function(e){let t="function"==typeof e?e(ew):e;ey(t),ea?.(t)},onRowSelectionChange:e=>{eK("function"==typeof e?e(ef.current):e)},renderRowActions:e=>{let{row:t}=e;return"menu"===eu?(0,a.jsx)("button",{type:"button","aria-label":"Open row actions",title:"Row actions",className:"anslation-action-button inline-flex h-7 w-7 items-center justify-center rounded-md border transition",onClick:e=>{e.stopPropagation(),ek({anchorEl:e.currentTarget,row:t.original,rowId:t.id,rowIndex:t.index})},children:(0,a.jsx)(m.A,{size:16,children:"lucide:ellipsis"})}):(0,a.jsx)("div",{className:"flex items-center gap-1",children:n.map(e=>{let n=K(e,t.original);return(0,a.jsxs)("button",{type:"button","aria-label":e.title||e.label,title:e.title||e.label,className:`inline-flex h-7 items-center justify-center gap-1.5 rounded-md border text-xs font-black transition disabled:cursor-not-allowed disabled:opacity-50 ${e.iconOnly?"w-7 px-0":"px-2"} ${f[e.tone||"neutral"]}`,disabled:n,onClick:n=>{n.stopPropagation(),e.onClick(t.original,t.index)},children:[e.icon?(0,a.jsx)(m.A,{size:14,children:e.icon}):null,(0,a.jsx)("span",{className:e.iconOnly?"sr-only":"",children:e.label})]},e.label)})})},renderTopToolbarCustomActions:()=>(0,a.jsxs)("div",{className:"anslation-console-command-bar flex w-full flex-wrap items-center gap-2 border-0 bg-transparent p-0 shadow-none",children:[em||ep?(0,a.jsxs)("div",{className:"mr-auto min-w-56",children:[em?(0,a.jsx)("h3",{className:"text-[0.95rem] leading-tight font-black tracking-normal text-[var(--anslation-ds-text)]",children:em}):null,ep?(0,a.jsx)("p",{className:"text-xs font-semibold text-[var(--anslation-ds-muted)]",children:ep}):null]}):(0,a.jsx)("div",{className:"mr-auto"}),et.map(e=>(0,a.jsxs)(x.A,{icon:e.icon,tone:e.tone||"neutral",children:[e.label,": ",e.value]},e.label)),d.length&&eO.length?(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2 rounded-md border border-[var(--anslation-ds-product-primary-border)] bg-[var(--anslation-ds-console-selection)] px-2 py-1.5",children:[(0,a.jsxs)(x.A,{tone:"info",children:[eO.length," selected"]}),d.map(e=>{let t="function"==typeof e.disabled?e.disabled(eO):!!e.disabled;return(0,a.jsxs)("button",{type:"button",className:`inline-flex h-8 items-center gap-1.5 rounded-md border px-2 text-xs font-black transition disabled:cursor-not-allowed disabled:opacity-50 ${f[e.tone||"neutral"]}`,disabled:t,onClick:()=>e.onClick(eO,eB),children:[e.icon?(0,a.jsx)(m.A,{size:14,children:e.icon}):null,e.label]},e.label)})]}):null,P?(0,a.jsxs)("div",{className:"grid min-w-72 gap-2 rounded-md border border-[var(--anslation-ds-border)] bg-[var(--anslation-ds-console-panel-subtle)] p-2 sm:grid-cols-2",children:[(0,a.jsx)(g.default,{density:"compact",label:`${P.label||(0,b.re)(P.field)} From`,mode:"date",referenceDate:eP||new Date,value:eP,onChange:eU}),(0,a.jsx)(g.default,{density:"compact",label:`${P.label||(0,b.re)(P.field)} To`,minDate:eP||void 0,mode:"date",referenceDate:eT||eP||new Date,value:eT,onChange:eG})]}):null,eb,er?(0,a.jsx)("button",{type:"button",className:"anslation-action-button inline-flex h-8 items-center justify-center rounded-md border px-2.5 transition",onClick:er,"aria-label":"Refresh table",children:(0,a.jsx)(m.A,{size:16,children:"lucide:refresh-cw"})}):null]}),state:{columnPinning:ew,density:eW,isLoading:X,rowSelection:eg}});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.zp,{table:eJ}),(0,a.jsx)(i.A,{anchorEl:ev.anchorEl,open:!!(ev.anchorEl&&ev.row),onClose:eY,anchorOrigin:{horizontal:"right",vertical:"bottom"},transformOrigin:{horizontal:"right",vertical:"top"},slotProps:{paper:{className:"mt-1 min-w-44 rounded-lg border border-slate-200 bg-white p-1 shadow-[0_18px_48px_-28px_rgba(15,23,42,0.75)] dark:border-slate-800 dark:bg-slate-950"}},children:ev.row?n.map(e=>{let t=K(e,ev.row);return(0,a.jsxs)(s.A,{disabled:t,onClick:()=>{ev.row&&(e.onClick(ev.row,ev.rowIndex),eY())},sx:{borderRadius:"6px",fontSize:"0.8125rem",fontWeight:800,minHeight:34,..."danger"===e.tone?{color:"var(--anslation-ds-danger)"}:{}},children:[e.icon?(0,a.jsx)(o.A,{sx:{color:"inherit",minWidth:28},children:(0,a.jsx)(m.A,{size:15,children:e.icon})}):null,(0,a.jsx)(l.A,{primary:e.label,slotProps:{primary:{fontSize:"0.8125rem",fontWeight:800}}})]},e.label)}):null})]})}},78655:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var a=n(95155),r=n(12115),o=n(21999),l=n(34373),i=n(52959),s=n(56269),d=n(64725);let c=["clear","today","cancel","accept"];function u(e){return e instanceof Date&&!Number.isNaN(e.getTime())?e:null}function p(e){return e.zIndex.modal+900}function m(){window.__ansetsDatePickerLastInteractionAt=Date.now()}
1let b=function(e){let{className:t,anchorEl:n,closeOnSelect:b,density:x="default",disabled:g,disablePortal:h=!1,disablePast:f,error:v,fullWidth:k=!0,fieldRef:w,helperText:y,hideTextField:j,id:C,label:S,maxDate:M,minDate:N,mode:P="date",onAccept:T,onChange:D,onError:z,onClose:$,onOpen:A,open:I,openPickerIcon:O,placeholder:B,presentation:R="popper",preserveInvalidInput:W=!1,referenceDate:E,sx:F,value:H}=e,[_,L]=(0,r.useState)(!1),V=(0,r.useRef)(null),K=u(H),U="compact"===x,G=U?"small":"medium",Y=["block",t].filter(Boolean).join(" "),J=(0,r.useCallback)(()=>n?.()||V.current,[n]),q="dialog"===R?"@media (min-width: 99999px)":"popper"===R?"@media (min-width: 0px)":void 0,Q=(0,r.useCallback)(e=>{"boolean"!=typeof I&&L(e),e?(m(),A?.()):$?.()},[I,$,A]),X=(0,r.useCallback)(()=>{Q(!0)},[Q]),Z=(0,r.useCallback)(()=>{Q(!1)},[Q]),ee=(0,r.useCallback)(()=>{g||X()},[g,X]),et=(0,r.useMemo)(()=>({field:{fieldRef:w},actionBar:{actions:c},desktopPaper:{elevation:10,"data-ansets-date-picker-surface":"true",onPointerDownCapture:m,sx:{maxWidth:"calc(100vw - 16px)",border:"1px solid var(--anslation-ds-border)",borderRadius:"var(--anslation-ds-radius)",boxShadow:"var(--anslation-ds-shadow-lg)"}},desktopTrapFocus:{disableEnforceFocus:!0},dialog:{"data-ansets-date-picker-surface":"true",onPointerDownCapture:m,sx:{zIndex:e=>p(e),"& .MuiDialog-paper":{m:1,maxWidth:"calc(100vw - 16px)",borderRadius:"var(--anslation-ds-radius)"}}},layout:{"data-ansets-date-picker-surface":"true",onPointerDownCapture:m,sx:{"& .MuiDateCalendar-root":{width:"min(320px, calc(100vw - 18px))",maxWidth:"100%"},"& .MuiPickersToolbar-root":{borderBottom:"1px solid var(--anslation-ds-border)",paddingBottom:1},"& .MuiPickersActionBar-root":{borderTop:"1px solid var(--anslation-ds-border)",padding:"6px 8px",flexWrap:"wrap",gap:.5,"& > .MuiButton-root":{minWidth:0,margin:0,px:1.5}},"& .MuiButton-root":{borderRadius:"var(--anslation-ds-radius)",fontSize:"0.75rem",fontWeight:800,textTransform:"none"}}},mobilePaper:{"data-ansets-date-picker-surface":"true",onPointerDownCapture:m,sx:{borderRadius:"var(--anslation-ds-radius)"}},openPickerButton:{"aria-label":"datetime"===P?"Open date and time picker":"Open date picker",edge:"end",size:G,sx:{color:"var(--anslation-ds-text-soft)",marginRight:U?"-4px":"-6px","&:hover":{backgroundColor:"var(--anslation-ds-hover)",color:"var(--anslation-ds-text)"}}},popper:{"data-ansets-date-picker-surface":"true",anchorEl:J,..."u"<typeof document?{}:{container:()=>document.body},...h?{disablePortal:h}:{},modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{boundary:"viewport",padding:8}}],onPointerDownCapture:m,placement:"bottom-start",popperOptions:{strategy:"fixed"},sx:{zIndex:e=>p(e),"& .MuiPaper-root":{border:"1px solid var(--anslation-ds-border)",borderRadius:"var(--anslation-ds-radius)",boxShadow:"var(--anslation-ds-shadow-lg)"}}},textField:{error:!!v,fullWidth:k,helperText:y,id:C,label:S,placeholder:B,size:"small",variant:"outlined",onClick:ee,onKeyDown:e=>{g||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),X())},sx:{...F||{},...j?{display:"none"}:{},"& .MuiFormHelperText-root":{color:v?"var(--anslation-ds-danger)":"var(--anslation-ds-text-soft)",fontSize:"0.75rem",fontWeight:700,lineHeight:1.45,marginLeft:0},"& .MuiInputBase-input":{fontSize:U?"0.8125rem":"0.875rem",fontWeight:750,paddingBottom:U?"6px":"8px",paddingTop:U?"6px":"8px"},"& .MuiInputBase-root":{backgroundColor:"var(--anslation-ds-surface)",borderRadius:"var(--anslation-ds-radius)",boxShadow:"none",minHeight:U?34:40,transition:"border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease"},"& .MuiInputBase-root.Mui-focused":{boxShadow:"0 0 0 2px color-mix(in srgb, var(--anslation-ds-primary) 14%, transparent)"},"& .MuiOutlinedInput-notchedOutline":{borderColor:"var(--anslation-ds-border)"},"& .MuiInputBase-root:hover .MuiOutlinedInput-notchedOutline":{borderColor:"var(--anslation-ds-border-strong)"},"& .MuiInputBase-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"var(--anslation-ds-primary)",borderWidth:"1px"},"& .MuiSvgIcon-root":{fontSize:U?17:18}}}}),[U,g,h,J,v,k,w,y,j,C,S,P,ee,G,B,X,F]),en={...q?{desktopModeMediaQuery:q}:{},disabled:g,disablePast:f,maxDate:M||void 0,minDate:N||void 0,open:"boolean"==typeof I?I:_,reduceAnimations:!0,referenceDate:E||K||new Date,slotProps:et,slots:O?{openPickerIcon:O}:void 0,value:W?H:K,onAccept:(e,t)=>
1{let n=u(e);D(W?e:n,t),T?.(n)},onChange:(e,t)=>{D(W?e:u(e),t)},onError:z,onClose:Z,onOpen:X};return"datetime"===P?(0,a.jsx)(s.$,{dateAdapter:o.h,adapterLocale:d.c,children:(0,a.jsx)("span",{ref:V,className:Y,children:(0,a.jsx)(i.K,{...en,ampm:!1,closeOnSelect:b??!1,format:"dd/MM/yyyy HH:mm",timeSteps:{minutes:5}})})}):(0,a.jsx)(s.$,{dateAdapter:o.h,adapterLocale:d.c,children:(0,a.jsx)("span",{ref:V,className:Y,children:(0,a.jsx)(l.l,{...en,closeOnSelect:b??!0,format:"dd/MM/yyyy"})})})}}}]);

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.