@datarecce/ui 1.41.0-nightly.20260324 → 1.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/AuthModal-CTjsmeSa.js +7 -0
  2. package/dist/AuthModal-CTjsmeSa.js.map +1 -0
  3. package/dist/{RunProgress-BdlFC_Ln.d.ts → RunProgress-BW86xLHS.d.ts} +2 -2
  4. package/dist/{RunProgress-BdlFC_Ln.d.ts.map → RunProgress-BW86xLHS.d.ts.map} +1 -1
  5. package/dist/{SplitPane-CoDWg0OA.d.ts → SplitPane-GLTmmyxT.d.ts} +5 -3
  6. package/dist/SplitPane-GLTmmyxT.d.ts.map +1 -0
  7. package/dist/advanced.d.ts +5 -5
  8. package/dist/advanced.js +1 -1
  9. package/dist/{api-HXIvn0z2.d.ts → api-CCIivwlm.d.ts} +2 -2
  10. package/dist/{api-HXIvn0z2.d.ts.map → api-CCIivwlm.d.ts.map} +1 -1
  11. package/dist/api-CYMr4Sk7.js.map +1 -1
  12. package/dist/api.d.ts +2 -2
  13. package/dist/components-run.d.ts +3 -3
  14. package/dist/components-run.js +1 -1
  15. package/dist/components.d.ts +8 -8
  16. package/dist/components.js +1 -1
  17. package/dist/contexts.d.ts +3 -3
  18. package/dist/hooks.d.ts +1 -1
  19. package/dist/hooks.js +1 -1
  20. package/dist/{index-CCGfLUZo.d.ts → index-C20O2H9b.d.ts} +3 -3
  21. package/dist/{index-CCGfLUZo.d.ts.map → index-C20O2H9b.d.ts.map} +1 -1
  22. package/dist/{index-BM1u_FOa.d.ts → index-Dd_5f70P.d.ts} +2 -2
  23. package/dist/{index-BM1u_FOa.d.ts.map → index-Dd_5f70P.d.ts.map} +1 -1
  24. package/dist/{index-DX68qmR7.d.ts → index-DdfN4iIr.d.ts} +3 -3
  25. package/dist/{index-DX68qmR7.d.ts.map → index-DdfN4iIr.d.ts.map} +1 -1
  26. package/dist/{index-CnL7GZgs.d.ts → index-W7L8wnAF.d.ts} +3 -3
  27. package/dist/{index-CnL7GZgs.d.ts.map → index-W7L8wnAF.d.ts.map} +1 -1
  28. package/dist/{index-DEplgqqo.d.ts → index-je78V59O.d.ts} +4 -4
  29. package/dist/{index-DEplgqqo.d.ts.map → index-je78V59O.d.ts.map} +1 -1
  30. package/dist/{index-7OsTh-CW.d.ts → index-u97dZChd.d.ts} +6 -6
  31. package/dist/{index-7OsTh-CW.d.ts.map → index-u97dZChd.d.ts.map} +1 -1
  32. package/dist/index.d.ts +11 -11
  33. package/dist/index.js +1 -1
  34. package/dist/{instanceInfo-Dd7Prg_1.d.ts → instanceInfo-DC9PdW-7.d.ts} +4 -1
  35. package/dist/instanceInfo-DC9PdW-7.d.ts.map +1 -0
  36. package/dist/{lineage-CJrNaqvV.d.ts → lineage--w4eCOAG.d.ts} +7 -7
  37. package/dist/lineage--w4eCOAG.d.ts.map +1 -0
  38. package/dist/{primitives-D7v4Fxf9.d.ts → primitives-bY--nLlX.d.ts} +16 -3
  39. package/dist/primitives-bY--nLlX.d.ts.map +1 -0
  40. package/dist/primitives.d.ts +5 -5
  41. package/dist/primitives.js +1 -1
  42. package/dist/result.js +1 -1
  43. package/dist/src-D1I1E-T5.js +12 -0
  44. package/dist/src-D1I1E-T5.js.map +1 -0
  45. package/dist/{types-CgHKm_Ds.d.ts → types-CLoBrWlc.d.ts} +2 -2
  46. package/dist/{types-CgHKm_Ds.d.ts.map → types-CLoBrWlc.d.ts.map} +1 -1
  47. package/dist/{types-iTJLEuiO.d.ts → types-KySGu9Q6.d.ts} +2 -2
  48. package/dist/{types-iTJLEuiO.d.ts.map → types-KySGu9Q6.d.ts.map} +1 -1
  49. package/dist/types.d.ts +7 -7
  50. package/dist/utils.d.ts +1 -1
  51. package/package.json +1 -1
  52. package/dist/AuthModal-N-VReqil.js +0 -7
  53. package/dist/AuthModal-N-VReqil.js.map +0 -1
  54. package/dist/SplitPane-CoDWg0OA.d.ts.map +0 -1
  55. package/dist/instanceInfo-Dd7Prg_1.d.ts.map +0 -1
  56. package/dist/lineage-CJrNaqvV.d.ts.map +0 -1
  57. package/dist/primitives-D7v4Fxf9.d.ts.map +0 -1
  58. package/dist/src-dADg4wse.js +0 -12
  59. package/dist/src-dADg4wse.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"SplitPane-CoDWg0OA.d.ts","names":[],"sources":["../src/components/lineage/edges/LineageEdge.tsx","../src/components/lineage/nodes/LineageNode.tsx","../src/components/check/CheckActions.tsx","../src/components/check/CheckCard.tsx","../src/components/check/CheckDescription.tsx","../src/components/check/CheckDetail.tsx","../src/components/check/CheckEmptyState.tsx","../src/components/check/CheckList.tsx","../src/components/lineage/LineageView.tsx","../src/components/lineage/columns/LineageColumnNode.tsx","../src/components/lineage/legend/LineageLegend.tsx","../src/components/data/HistogramChart.tsx","../src/components/data/TopKBarChart.tsx","../src/lib/dataGrid/generators/toSchemaDataGrid.ts","../src/components/schema/types.ts","../src/components/editor/DiffEditor.tsx","../src/components/ui/EmptyState.tsx","../src/components/ui/SplitPane.tsx"],"mappings":";;;;;;;;;;KAWY,gBAAA;AAAA,UAEK,eAAA,SAAwB,MAAA;;EAEvC,YAAA,GAAe,gBAAA;;EAEf,aAAA;;EAEA,KAAA;AAAA;AAAA,KAGU,eAAA,GAAkB,IAAA,CAAK,eAAA;AAAA,KAEvB,gBAAA,GAAmB,SAAA,CAAU,eAAA;AAAA,iBAShC,oBAAA,CAAA;EACP,EAAA;EACA,OAAA;EACA,OAAA;EACA,OAAA;EACA,OAAA;EACA,cAAA;EACA,cAAA;EACA,IAAA;EACA;AAAA,GACC,gBAAA,GAAgB,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,cAmDN,WAAA,EAAW,KAAA,CAAA,mBAAA,QAAA,oBAAA;;;;;;KCzDZ,gBAAA;;;;KAKA,UAAA;AD/BZ;;;AAAA,KCoCY,cAAA;;ADlCZ;;UC2CiB,eAAA,SAAwB,MAAA;ED3CM;EC6C7C,KAAA;ED3C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EAEA,QAAA;EjBXuC;EiBavC,QAAA;EjBXe;EiBaf,UAAA;EjBTA;EiBWA,UAAA;EjBXK;EiBaL,YAAA;EjBVyB;EiBYzB,SAAA,IAAa,KAAA;EjBZe;EiBc5B,MAAA,IAAU,KAAA;EjBZA;EiBcV,KAAA;;EAEA,KAAA,GAAQ,aAAA;EjBhB8C;EiBkBtD,SAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AjBoDF;;;;;;;;iBiBJS,kBAAA,CAAA;EACP,QAAA;EACA,SAAA;EACA,KAAA;EACA,QAAA;EACA,QAAA;EACA,UAAA;EACA,UAAA;EACA,YAAA;EACA,SAAA;EACA,MAAA;EACA,KAAA;EACA,KAAA;EACA;AAAA,GACC,cAAA,GAAc,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,cAqDJ,SAAA,EAAS,KAAA,CAAA,mBAAA,QAAA,kBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"instanceInfo-Dd7Prg_1.d.ts","names":[],"sources":["../src/api/info.ts","../src/api/cll.ts","../src/api/types/base.ts","../src/api/runs.ts","../src/api/adhocQuery.ts","../src/api/profile.ts","../src/api/rowcount.ts","../src/api/valuediff.ts","../src/api/types/run.ts","../src/api/checks.ts","../src/api/lineagecheck.ts","../src/api/flag.ts","../src/api/instanceInfo.ts"],"mappings":";;;;;;;;UAKiB,cAAA;EACf,IAAA;EACA,IAAA;EACA,mBAAA;EACA,aAAA;EACA,QAAA;EACA,MAAA;AAAA;;;;UAMe,QAAA;EACf,EAAA;EACA,SAAA;EACA,IAAA;EACA,MAAA;EACA,QAAA;IACE,IAAA;IACA,QAAA;EAAA;EAEF,QAAA;EACA,aAAA;EACA,YAAA;EACA,OAAA,GAAU,MAAA,SAAe,cAAA;EACzB,WAAA;AAAA;;;;;UAOQ,gBAAA;EACR,WAAA;EACA,kBAAA;EACA,YAAA;EACA,YAAA;EACA,GAAA,EAAK,MAAA;EACL,aAAA;AAAA;;;;U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A,EAAQ,aAAA,GACP,OAAA,CAAQ,iBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"lineage-CJrNaqvV.d.ts","names":[],"sources":["../src/components/app/EnvInfo.tsx","../src/components/app/MainLayout.tsx","../src/components/check/CheckDetailOss.tsx","../src/components/check/CheckEmptyStateOss.tsx","../src/components/check/CheckListOss.tsx","../src/components/check/CheckPageContentOss.tsx","../src/components/check/CheckPageLoadingOss.tsx","../src/components/errorboundary/ErrorBoundary.tsx","../src/components/histogram/HistogramDiffForm.tsx","../src/components/histogram/HistogramResultView.tsx","../src/components/lineage/LineagePageOss.tsx","../src/components/lineage/NodeView.tsx","../src/components/lineage/styles.tsx","../src/components/notifications/LineageViewNotification.tsx","../src/components/onboarding-guide/Notification.tsx","../src/components/profile/ProfileDiffForm.tsx","../src/components/profile/ProfileResultView.tsx","../src/components/query/QueryDiffResultView.tsx","../src/components/query/QueryForm.tsx","../src/components/query/QueryPageOss.tsx","../src/components/query/QueryResultView.tsx","../src/components/query/SetupConnectionGuide.tsx","../src/components/query/SqlEditor.tsx","../src/components/rowcount/RowCountResultView.tsx","../src/components/schema/ColumnNameCell.tsx","../src/components/schema/SchemaView.tsx","../src/components/shared/HistoryToggle.tsx","../src/components/summary/types.ts","../src/components/summary/ChangeSummary.tsx","../src/components/summary/SchemaSummary.tsx","../src/components/summary/utils.ts","../src/components/timeout/IdleTimeoutBadge.tsx","../src/components/top-k/TopKDiffForm.tsx","../src/components/top-k/TopKDiffResultView.tsx","../src/components/ui/DataTypeIcon/classifyType.ts","../src/components/ui/DataTypeIcon/tooltipText.ts","../src/components/ui/DataTypeIcon/index.tsx","../src/components/ui/SquareIcon.tsx","../src/components/valuediff/ValueDiffDetailResultView.tsx","../src/components/valuediff/ValueDiffForm.tsx","../src/components/valuediff/ValueDiffResultView.tsx","../src/components/views/ChecksView.tsx","../src/providers/contexts/ThemeContext.tsx","../src/index.ts","../src/components/lineage/lineage.ts"],"mappings":";;;;;;;;;;;;;;;;;;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AO,gBAAA,IACP,SAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"primitives-D7v4Fxf9.d.ts","names":[],"sources":["../src/components/check/CheckBreadcrumb.tsx","../src/components/check/LineageDiffView.tsx","../src/components/check/PresetCheckTemplateView.tsx","../src/components/check/timeline/CommentInput.tsx","../src/components/check/timeline/TimelineEvent.tsx","../src/components/check/utils.ts","../src/components/editor/CodeEditor.tsx","../src/components/ui/ChangedOnlyCheckbox.tsx","../src/components/ui/DiffDisplayModeSwitch.tsx","../src/components/ui/DiffText.tsx","../src/components/ui/DiffTextWithToast.tsx","../src/components/ui/DropdownValuesInput.tsx","../src/components/ui/ExternalLinkConfirmDialog.tsx","../src/components/ui/MarkdownContent.tsx","../src/components/ui/ScreenshotBox.tsx","../src/components/ui/Split.tsx","../src/components/ui/Toaster.tsx","../src/components/ui/ToggleSwitch.tsx","../src/primitives.ts"],"mappings":";;;;;;;;;;;;UAgBiB,oBAAA;;EAEf,IAAA;;EAEA,YAAA,IAAgB,IAAA;EAJD;EAMf,WAAA;;EAEA,QAAA;EANA;EAQA,SAAA;AAAA;;;;;;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwKD;;;;;;;iBA/HS,wBAAA,CAAA;EACP,IAAA;EACA,YAAA;EACA,WAAA;EACA,QAAA;EACA;AAAA,GACC,oBAAA,GAAoB,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,cAyHV,eAAA,EAAe,KAAA,CAAA,mBAAA,QAAA,wBAAA;;;;;;UCxLX,sBAAA;EACf,SAAA;EACA,QAAA;EACA,MAAA;EACA,OAAA;EACA,QAAA;EACA,oBAAA;IACE,OAAA;IACA,MAAA;IACA,eAAA;EAAA;AAAA;;;;UAOa,oBAAA;EDyCR;;;ECrCP,MAAA,GAAS,MAAA;EDuCT;;;EClCA,WAAA,GAAc,sBAAA;EDsCb;;;;EChCD,WAAA;ED2BA;;;ECtBA,MAAA;EDwBA;;;EClBA,KAAA;AAAA;AAAA,cA6EW,eAA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AA,OAAA;;;UC3LN,iBAAA;;EAEf,KAAA;;EAEA,QAAA,GAAW,KAAA;;EAEX,MAAA;;EAEA,OAAA;AAAA;;;;;;;;;;;AjBGD;;;iBiBiBe,YAAA,CAAA;EACd,KAAA;EACA,QAAA;EACA,MAAA;EACA;AAAA,GACC,iBAAA,GAAiB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;cCzCP,sBAAA"}
@@ -1,12 +0,0 @@
1
- "use client";
2
- import{$ as e,A as t,D as n,G as r,J as i,K as a,M as o,N as s,O as c,R as l,W as u,_t as d,a as f,c as p,d as m,et as h,gt as g,h as _,it as v,j as y,k as b,l as x,lt as S,m as C,mt as w,n as T,nt as E,o as D,p as O,s as k,u as ee,w as te,x as ne}from"./api-CYMr4Sk7.js";import{c as re,f as A}from"./keepAlive-CkKaK4Uw.js";import{C as ie,O as ae,T as j,_ as M,a as oe,b as N,d as se,f as ce,g as P,h as le,j as ue,k as de,l as fe,m as pe,o as me,p as he,s as ge,u as F,v as _e,w as I,y as ve}from"./utils-CjMo0oH2.js";import{i as ye,n as be}from"./colors-BpyRE67g.js";import{$t as xe,A as Se,Bt as Ce,Dn as we,E as Te,Ft as Ee,Gt as De,Ht as Oe,It as ke,L as Ae,Lt as je,M as Me,Nt as Ne,O as L,On as R,Qt as Pe,Rt as Fe,S as Ie,T as Le,Tn as Re,Ut as ze,V as z,Vt as Be,Wt as Ve,Xt as He,Yt as Ue,Zt as We,_t as Ge,an as Ke,bt as qe,c as Je,d as Ye,dn as Xe,dt as Ze,en as Qe,f as $e,fn as et,gn as tt,hn as nt,j as rt,k as it,lt as at,m as ot,mn as st,n as ct,nn as lt,o as ut,on as dt,p as ft,pn as pt,pt as mt,r as ht,rn as gt,s as _t,t as vt,tt as yt,ut as bt,v as xt,w as St,wn as Ct,yn as wt,yt as Tt}from"./AuthModal-N-VReqil.js";import{Nt as Et,Pt as Dt,Q as Ot,a as kt,ct as At,dt as jt,i as Mt,m as Nt,n as Pt,o as Ft,r as It,s as Lt,t as Rt}from"./utils-m8zHoMN7.js";import{fetchGitHubAvatar as zt,fetchUser as Bt}from"./lib/api/user.js";import{PUBLIC_CLOUD_WEB_URL as Vt,RECCE_SUPPORT_CALENDAR_URL as Ht}from"./lib/const.js";import{EXPLORE_ACTION as Ut,EXPLORE_FORM_EVENT as Wt,EXPLORE_SOURCE as Gt,trackColumnLevelLineage as Kt,trackCopyToClipboard as qt,trackEnvironmentConfig as Jt,trackExploreAction as Yt,trackExploreActionForm as Xt,trackHistoryAction as Zt,trackInit as Qt,trackLineageSelection as $t,trackLineageViewRender as en,trackMultiNodesAction as tn,trackNavigation as nn,trackPreviewChange as rn,trackPreviewChangeFeedback as an,trackShareState as on,trackSingleEnvironment as sn,trackStateAction as cn}from"./lib/api/track.js";import{t as ln}from"./constants-DWSSKzi8.js";import{QueryClient as un,QueryClientProvider as dn,useMutation as fn,useQuery as pn,useQueryClient as mn}from"@tanstack/react-query";import{AxiosError as hn,isAxiosError as gn}from"axios";import{Suspense as _n,createContext as vn,forwardRef as yn,memo as bn,useCallback as B,useContext as xn,useEffect as Sn,useImperativeHandle as Cn,useLayoutEffect as wn,useMemo as V,useRef as Tn,useState as H}from"react";import{Fragment as U,jsx as W,jsxs as G}from"react/jsx-runtime";import K from"@mui/material/Box";import q from"@mui/material/Button";import En from"@mui/material/Dialog";import Dn from"@mui/material/DialogActions";import On from"@mui/material/DialogContent";import kn from"@mui/material/DialogTitle";import An from"@mui/material/Link";import J from"@mui/material/Stack";import Y from"@mui/material/Typography";import{LuExternalLink as jn,LuSave as Mn}from"react-icons/lu";import{alpha as Nn,useTheme as Pn}from"@mui/material/styles";import{useTheme as Fn}from"next-themes";import X from"@mui/material/IconButton";import In from"next/link";import{IoBookmarksOutline as Ln,IoClose as Rn,IoSync as zn,IoWarning as Bn}from"react-icons/io5";import Vn from"@mui/material/Divider";import Hn from"@mui/material/CircularProgress";import Z from"@mui/material/Tooltip";import{FaCloud as Un,FaExpandArrowsAlt as Wn,FaGithub as Gn,FaQuestionCircle as Kn,FaRegDotCircle as qn,FaSlack as Jn,FaUser as Yn}from"react-icons/fa";import{PiBookmarkSimple as Xn,PiCaretDown as Zn,PiChatText as Qn,PiCheckCircle as $n,PiCircle as er,PiCopy as tr,PiExport as nr,PiInfo as rr,PiInfoFill as ir,PiMoon as ar,PiNotePencil as or,PiPencil as sr,PiPencilSimple as cr,PiPlusCircle as lr,PiRepeat as ur,PiSun as dr,PiTrashFill as fr,PiTrashSimple as pr,PiX as mr}from"react-icons/pi";import hr from"@mui/material/Chip";import{Background as gr,BackgroundVariant as _r,BaseEdge as vr,ControlButton as yr,Controls as br,MiniMap as xr,Panel as Sr,Position as Cr,ReactFlow as wr,ReactFlowProvider as Tr,getBezierPath as Er,getNodesBounds as Dr,useEdgesState as Or,useNodesState as kr,useReactFlow as Ar,useStore as jr}from"@xyflow/react";import Mr from"file-saver";import Nr from"@mui/material/Checkbox";import Pr from"@mui/material/FormControlLabel";import{useCopyToClipboard as Fr,useInterval as Ir}from"usehooks-ts";import Lr from"@mui/material/Alert";import Rr from"@mui/material/Menu";import Q from"@mui/material/MenuItem";import{isEmpty as zr}from"lodash";import{VscCircleLarge as Br,VscFeedback as Vr,VscGitPullRequest as Hr,VscHistory as Ur,VscKebabVertical as Wr}from"react-icons/vsc";import Gr from"@mui/material/ListSubheader";import Kr from"@mui/material/TextField";import{format as qr,formatDistanceToNow as Jr,parseISO as Yr}from"date-fns";import Xr from"@mui/material/Tab";import Zr from"@mui/material/Tabs";import Qr from"@mui/material/List";import $r from"@mui/material/ListItem";import"@xyflow/react/dist/style.css";import ei from"@mui/material/Avatar";import ti from"@mui/material/Popover";import{usePathname as ni,useRouter as ri,useSearchParams as ii}from"next/navigation";import{MdWarningAmber as ai}from"react-icons/md";import{TbChecklist as oi,TbCloudUpload as si,TbEdit as ci}from"react-icons/tb";import li from"@mui/material/ListItemIcon";import ui from"@mui/material/ListItemText";import{FiArrowRight as di,FiCopy as fi,FiInfo as pi,FiPackage as mi}from"react-icons/fi";import hi from"@mui/material/Switch";import{RiArrowDownSFill as gi,RiArrowUpSFill as _i,RiMindMap as vi,RiSwapLine as yi,RiTerminalBoxLine as bi}from"react-icons/ri";import{FaBookmark as xi,FaFileImport as Si}from"react-icons/fa6";import{BiArrowFromBottom as Ci,BiArrowToBottom as wi}from"react-icons/bi";import Ti from"@dagrejs/dagre";import Ei from"@mui/material/Skeleton";import{AiOutlineExperiment as Di}from"react-icons/ai";import Oi from"@mui/material/Radio";import ki from"@mui/material/RadioGroup";import Ai from"@mui/material/Table";import ji from"@mui/material/TableBody";import $ from"@mui/material/TableCell";import Mi from"@mui/material/TableContainer";import Ni from"@mui/material/TableHead";import Pi from"@mui/material/TableRow";import Fi from"@mui/material/DialogContentText";import Ii from"@mui/material/Badge";import Li from"@mui/material/Grid";import{stripIndents as Ri}from"common-tags";import{IoMdCodeWorking as zi}from"react-icons/io";import{DragDropContext as Bi,Draggable as Vi,Droppable as Hi}from"@hello-pangea/dnd";import Ui from"@mui/material/Card";import Wi from"@mui/material/CardContent";import Gi from"@mui/material/CardHeader";const Ki=vn(null);Ki.displayName=`RecceRoutingContext`;function qi(){return xn(Ki)||{basePath:``,buildPath:e=>e,pathname:``,navigate:e=>{typeof window<`u`&&(window.location.href=e)}}}function Ji(){let{pathname:e,navigate:t}=qi();return[e,t]}function Yi({children:e,config:t}){let n=t?.basePath??``,r=t?.pathname??``,i=t?.onNavigate,a=B(e=>n?`${n}${e.startsWith(`/`)?e:`/${e}`}`:e,[n]),o=B((e,t)=>{i?i(e,t):typeof window<`u`&&(t?.replace?(window.history.replaceState(null,``,e),window.dispatchEvent(new PopStateEvent(`popstate`))):window.location.href=e)},[i]),s=V(()=>({basePath:n,buildPath:a,pathname:r,navigate:o}),[n,a,r,o]);return W(Ki.Provider,{value:s,children:e})}const Xi=e=>new un({defaultOptions:{queries:{staleTime:e?.staleTime??1e3*60,gcTime:e?.gcTime??1e3*60*5,retry:1,refetchOnWindowFocus:!1}}});function Zi({children:e,api:t,theme:n=`system`,routing:r,queryClient:i,runActions:a,lineage:o,checks:s,query:c,features:l={}}){let u=i?.staleTime,d=i?.gcTime,f=V(()=>Xi({staleTime:u,gcTime:d}),[u,d]),{enableInstance:p=!0,enableIdleTimeout:m=!0,enableLineage:h=!0,enableRunActions:g=!0,enableChecks:_=!0,enableQuery:v=!0}=l,y=e;return y=W(Yi,{config:r,children:y}),y=W(Dt,{defaultMode:n,children:y}),y=W(re,{config:t,children:y}),y=W(dn,{client:f,children:y}),v&&(y=W(Re,{sql:c?.sql,isExecuting:c?.isExecuting,error:c?.error,baseResult:c?.baseResult,currentResult:c?.currentResult,onSqlChange:c?.onSqlChange,onExecute:c?.onExecute,onCancel:c?.onCancel,children:y})),_&&(y=W(we,{checks:s?.checks,isLoading:s?.isLoading,error:s?.error,selectedCheckId:s?.selectedCheckId,onSelectCheck:s?.onSelectCheck,onCreateCheck:s?.onCreateCheck,onUpdateCheck:s?.onUpdateCheck,onDeleteCheck:s?.onDeleteCheck,onReorderChecks:s?.onReorderChecks,refetchChecks:s?.refetchChecks,children:y})),g&&(y=W(ae,{onRunAction:a?.onRunAction,onShowRunId:a?.onShowRunId,initialRunId:a?.initialRunId,initialHistoryOpen:a?.initialHistoryOpen,children:y})),h&&(y=W(P,{lineageGraph:o?.lineageGraph,envInfo:o?.envInfo,reviewMode:o?.reviewMode,cloudMode:o?.cloudMode,fileMode:o?.fileMode,fileName:o?.fileName,isDemoSite:o?.isDemoSite,isCodespace:o?.isCodespace,isLoading:o?.isLoading,error:o?.error,supportTasks:o?.supportTasks,onRefetchLineageGraph:o?.onRefetchLineageGraph,runsAggregated:o?.runsAggregated,onRefetchRunsAggregated:o?.onRefetchRunsAggregated,children:y})),m&&(y=W(ve,{children:y})),p&&(y=W(ie,{children:y})),y}function Qi({actionState:e,onCancel:t,onClose:n}){let r=()=>e.mode===`per_node`?`${e.completed} / ${e.total}`:e.currentRun?.progress?.percentage?`${e.currentRun.progress.percentage*100}%`:e.status===`completed`?`100%`:`0%`,i=e.status===`running`||e.status===`canceling`;return W(K,{sx:{bgcolor:`background.paper`,borderRadius:1,boxShadow:6},children:G(J,{direction:`row`,divider:W(Vn,{orientation:`vertical`,flexItem:!0}),spacing:2,sx:{p:`5px 15px`,mt:2},children:[G(K,{sx:{fontSize:`10pt`},children:[`Progress: `,r(),` `,e.status===`canceled`?` (canceled)`:``]}),i?W(q,{size:`small`,variant:`outlined`,onClick:t,disabled:e.status===`canceling`,children:e.status===`canceling`?`Canceling`:`Cancel`}):W(J,{direction:`row`,children:W(q,{size:`small`,variant:`outlined`,onClick:n,children:`Close`})})]})})}const $i=({lineageGraph:e,cllInput:t,onCenterNode:n})=>{let r={cursor:`pointer`,fontFamily:`monospace`,bgcolor:Et()?`grey.700`:`grey.100`,px:.5,borderRadius:.5};if(!e)return W(U,{});if(!t)return W(U,{children:`Default View`});if(t.node_id===void 0)return W(Y,{component:`span`,children:`Impact Radius for All Changed Models`});let i=t.node_id in e.nodes?e.nodes[t.node_id].data.name:t.node_id;if(!t.column){let e=t.node_id;return G(U,{children:[W(Y,{component:`span`,sx:{mr:`5px`},children:`Impact Radius for`}),W(K,{component:`code`,onClick:()=>{n(e)},sx:r,children:i})]})}let a=`${t.node_id}_${t.column}`;return G(U,{children:[G(Y,{component:`span`,sx:{mr:`5px`},children:[`Column Lineage for`,` `]}),G(K,{component:`code`,onClick:()=>{n(a)},sx:r,children:[i,`.`,t.column]})]})},ea=({action:e,interactive:t,viewOptions:n,lineageGraph:r,singleEnvMode:i=!1,changeAnalysisAvailable:a=!0,onShowCll:o,onResetCll:s,onCenterNode:c,setChangeAnalysisMode:l})=>{let u=n.column_level_lineage,d=!r?.catalogMetadata.current;return G(J,{direction:`row`,spacing:`5px`,children:[!i&&W(K,{sx:{borderRadius:1,boxShadow:3},children:W(Z,{enterDelay:50,title:a?d?`Please provide catalog.json to enable Impact Radius`:``:`Requires warehouse connection`,placement:`top`,children:W(`span`,{children:W(q,{size:`small`,variant:`outlined`,color:`neutral`,sx:{whiteSpace:`nowrap`,display:`inline-flex`,bgcolor:`background.paper`},disabled:!t||d||!a,startIcon:W(qn,{}),onClick:()=>{l?.(!0),o({no_upstream:!0,change_analysis:!0})},children:`Impact Radius`})})})}),u&&G(J,{direction:`row`,alignItems:`center`,sx:{borderRadius:1,boxShadow:3,border:`1px solid`,borderColor:`divider`,bgcolor:`background.paper`,fontSize:`0.8rem`,p:`0 0.625rem`},children:[W($i,{lineageGraph:r,cllInput:u,onCenterNode:c}),e.isError&&W(Z,{title:`Error: ${e.error.message}`,placement:`bottom`,children:W(Y,{component:`span`,sx:{color:`error.main`,ml:`2px`,display:`inline-flex`,alignItems:`center`},children:W(K,{component:rr,sx:{color:`error.main`,fontSize:`14px`}})})}),e.isPending?W(Hn,{size:12,sx:{ml:`2px`}}):W(X,{size:`small`,sx:{ml:`2px`},"aria-label":`Reset Column Level Lineage`,onClick:()=>{s()},children:W(mr,{size:`10px`})})]})]})};function ta({onClose:e}){let{cancel:t,actionState:n}=le();return W(Qi,{actionState:n,onCancel:t,onClose:e})}const na=({action:e})=>{let{showColumnLevelLineage:t,resetColumnLevelLineage:n,interactive:r,viewOptions:i,centerNode:a,setChangeAnalysisMode:o}=le(),{data:s}=F(),c=s?.single_env_onboarding??!1,{lineageGraph:l,isActionAvailable:u}=M();return W(ea,{action:e,interactive:r,viewOptions:i,lineageGraph:l,singleEnvMode:c,changeAnalysisAvailable:u(`change_analysis`),onShowCll:t,onResetCll:()=>n(),onCenterNode:a,setChangeAnalysisMode:o})};function ra(e){let{id:t,data:n}=e,{id:r}=n.node,{column:i,type:a,transformationType:o,changeStatus:s}=n,c=jr(e=>e.transform[2]>.3),{isDark:l}=ct(),{viewOptions:u,showContextMenu:d,isNodeHighlighted:f,isNodeShowingChangeAnalysis:p}=le(),m=u.column_level_lineage?.node_id,h=i===u.column_level_lineage?.column&&r===m,g=f(t),_=p(r);return W(wt,{id:t,data:{column:i,type:a,nodeId:r,transformationType:o,changeStatus:s,isHighlighted:g,isFocused:h},showContent:c,showChangeAnalysis:_,isDark:l,onContextMenu:(t,n)=>{d(t,e)}})}const ia=bn(ra);ia.displayName=`GraphColumnNode`;function aa(e){let{source:t,target:n,sourceX:r,sourceY:i,targetX:a,targetY:o,sourcePosition:s,targetPosition:c,style:l={},markerEnd:u,data:d,isEdgeHighlighted:f}=e,p={...l};d?.changeStatus&&(p.stroke=nt(d.changeStatus).hexColor,p.strokeDasharray=`5`),!f||f(t,n)||(p.filter=`opacity(0.2) grayscale(50%)`);let[m]=Er({sourceX:r,sourceY:i,sourcePosition:s,targetX:a,targetY:o,targetPosition:c});return W(U,{children:W(vr,{path:m,markerEnd:u,style:{...p,...l}})})}const oa=bn(aa);oa.displayName=`GraphEdge`;function sa(e){let{isEdgeHighlighted:t}=le();return W(oa,{...e,isEdgeHighlighted:t})}const ca=()=>W(`svg`,{stroke:`currentColor`,fill:`currentColor`,strokeWidth:`0`,viewBox:`0 0 256 256`,height:`1em`,width:`1em`,xmlns:`http://www.w3.org/2000/svg`,children:W(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z`})}),la=()=>W(`svg`,{stroke:`currentColor`,fill:`currentColor`,strokeWidth:`0`,viewBox:`0 0 256 256`,height:`1em`,width:`1em`,xmlns:`http://www.w3.org/2000/svg`,children:W(`path`,{d:`M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z`})});function ua({skipReason:e}){return W(hr,{size:`small`,label:G(J,{direction:`row`,sx:{fontSize:`10pt`,color:`grey.500`,alignItems:`center`,gap:`3px`},children:[W(K,{children:`Skipped`}),e&&W(Z,{title:e,children:W(K,{component:`span`,sx:{display:`flex`},children:W(ca,{})})})]}),sx:{bgcolor:`grey.100`}})}function da({errorMessage:e}){return G(J,{direction:`row`,sx:{fontSize:`10pt`,color:`gray`,alignItems:`center`},children:[W(K,{children:`Error`}),e&&W(Z,{title:e,children:W(K,{component:`span`,sx:{display:`flex`},children:W(la,{})})})]})}function fa({result:e}){let{mismatchedColumns:t}=e,n=t>0;return W(hr,{size:`small`,sx:{bgcolor:n?`error.light`:`success.light`},label:W(J,{direction:`row`,sx:{fontSize:`10pt`,color:n?`error.main`:`success.main`,alignItems:`center`,gap:`3px`},children:n?`${t} columns mismatched`:`All columns match`})})}function pa({result:e}){let{base:t,current:n}=e,r=t===null?`N/A`:t.toLocaleString(),i=n===null?`N/A`:n.toLocaleString(),a=``,o=`grey.500`;return t!==null&&n!==null&&(n>t?(a=`↑`,o=`success.main`):n<t?(a=`↓`,o=`error.main`):a=`=`),W(hr,{size:`small`,sx:{bgcolor:`grey.100`},label:G(J,{direction:`row`,sx:{fontSize:`10pt`,alignItems:`center`,gap:`3px`},children:[W(K,{children:r}),W(K,{children:`→`}),W(K,{children:i}),a&&W(K,{component:`span`,sx:{color:o,ml:.5},children:a})]})})}function ma({status:e,skipReason:t,errorMessage:n,progress:r,valueDiffResult:i,rowCountDiffResult:a,runId:o,"data-testid":s}){return e===`pending`?W(Hn,{size:16,"data-testid":s,"data-status":`pending`}):e===`skipped`?W(K,{"data-testid":s,"data-status":`skipped`,children:W(ua,{skipReason:t})}):e===`running`?r?.percentage===void 0?W(Hn,{size:16,"data-testid":s,"data-status":`running`}):W(Hn,{variant:`determinate`,value:r.percentage*100,size:16,"data-testid":s,"data-status":`running`}):e===`error`?W(K,{"data-testid":s,"data-status":`error`,children:W(da,{errorMessage:n})}):i?W(K,{"data-testid":s,"data-status":`success`,children:W(fa,{result:i})}):a?W(K,{"data-testid":s,"data-status":`success`,children:W(pa,{result:a})}):W(K,{"data-testid":s,"data-status":`success`,children:o||`Complete`})}const ha=bn(ma);ha.displayName=`ActionTag`;function ga({event:e}){let t=l(e),n={create:lr,comment:Qn,approve:$n,unapprove:er,edit:or,preset:Xn},r={create:`primary.main`,comment:`grey.500`,approve:`success.main`,unapprove:`grey.400`,edit:`warning.main`,preset:`secondary.main`},i=n[t],a=r[t];return W(K,{component:i,sx:{color:a,fontSize:16}})}function _a({event:e}){let{actor:t}=e,{avatarUrl:n}=Be({userId:t.user_id}),r=(t.fullname||t.login||`User`).charAt(0).toUpperCase();return W(ei,{src:n||void 0,sx:{width:24,height:24,fontSize:`0.75rem`},children:r})}function va({event:e}){let{actor:t}=e,n=t.fullname||t.login||`Someone`,r=Jr(new Date(e.created_at),{addSuffix:!0}),i=``;switch(e.event_type){case`check_created`:i=`created this check`;break;case`approval_change`:i=e.new_value===`true`?`approved this check`:`unapproved this check`;break;case`description_change`:i=`updated the description`;break;case`name_change`:i=`renamed this check`;break;case`preset_applied`:i=`applied a preset`;break;default:i=`made a change`}return G(K,{sx:{display:`flex`,gap:1,alignItems:`flex-start`,py:1},children:[W(K,{sx:{pt:`2px`},children:W(ga,{event:e})}),W(K,{sx:{flex:1},children:G(J,{direction:`row`,spacing:.5,flexWrap:`wrap`,alignItems:`center`,children:[W(_a,{event:e}),W(Y,{variant:`body2`,fontWeight:`500`,children:n}),W(Y,{variant:`body2`,color:`text.secondary`,children:i}),W(Y,{variant:`caption`,color:`text.disabled`,children:r})]})})]})}function ya({event:e,currentUserId:t,onEdit:n,onDelete:r}){let i=Et(),[a,o]=H(!1),[s,c]=H(e.content||``),[l,u]=H(!1),[d,f]=H(!1),[p,m]=H(null),h=!!p,{actor:g}=e,_=g.fullname||g.login||`Someone`,v=Jr(new Date(e.created_at),{addSuffix:!0}),y=t&&String(g.user_id)===String(t),b=()=>{c(e.content||``),o(!0)},x=()=>{c(e.content||``),o(!1)},S=async()=>{let t=s.trim();if(!t||t===e.content){x();return}if(n){u(!0);try{await n(e.id,t),o(!1)}finally{u(!1)}}},C=e=>{e.key===`Escape`?x():e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),S())},w=e=>{m(e.currentTarget)},T=()=>{m(null)},E=async()=>{if(r){f(!0);try{await r(e.id),T()}finally{f(!1)}}};return e.is_deleted?G(K,{sx:{display:`flex`,gap:1,alignItems:`center`,py:1},children:[W(K,{sx:{pt:`2px`,display:`flex`,alignItems:`center`},children:W(ga,{event:e})}),W(K,{sx:{display:`flex`,flex:1,alignItems:`center`},children:W(Y,{variant:`body2`,color:`text.disabled`,fontStyle:`italic`,children:`Comment deleted`})})]}):G(K,{sx:{display:`flex`,gap:1,alignItems:`flex-start`,py:1},children:[W(K,{sx:{pt:`2px`},children:W(ga,{event:e})}),G(K,{sx:{flex:1},children:[G(J,{direction:`row`,spacing:.5,sx:{mb:.5},flexWrap:`wrap`,alignItems:`center`,children:[W(_a,{event:e}),G(Y,{variant:`body2`,fontWeight:`500`,children:[_,y&&G(Y,{component:`span`,variant:`body2`,color:`text.secondary`,children:[` `,`(Author)`]})]}),W(Y,{variant:`caption`,color:`text.disabled`,children:v}),e.is_edited&&W(Y,{variant:`caption`,color:`text.disabled`,children:`(edited)`})]}),a?G(K,{children:[W(Kr,{value:s,onChange:e=>c(e.target.value),onKeyDown:C,size:`small`,multiline:!0,minRows:3,fullWidth:!0,disabled:l,autoFocus:!0,sx:{"& .MuiOutlinedInput-root":{bgcolor:`background.paper`,"&:focus-within":{borderColor:`primary.main`}}}}),G(J,{direction:`row`,spacing:1,sx:{mt:1},justifyContent:`flex-end`,children:[W(q,{size:`small`,variant:`text`,onClick:x,disabled:l,children:`Cancel`}),W(q,{size:`small`,variant:`contained`,onClick:S,disabled:!s.trim()||l,children:l?`Saving...`:`Save`})]})]}):G(K,{sx:{bgcolor:i?`grey.800`:`grey.50`,borderRadius:1,p:1,border:`1px solid`,borderColor:i?`grey.700`:`grey.200`,position:`relative`,"&:hover .comment-actions":{opacity:1}},children:[W(mt,{content:e.content||``,fontSize:`sm`}),y&&(n||r)&&G(J,{className:`comment-actions`,direction:`row`,spacing:0,sx:{position:`absolute`,top:4,right:4,opacity:0,transition:`opacity 0.2s`},children:[n&&W(Z,{title:`Edit comment`,children:W(X,{"aria-label":`Edit comment`,size:`small`,onClick:b,children:W(cr,{})})}),r&&G(U,{children:[W(Z,{title:`Delete comment`,children:W(X,{"aria-label":`Delete comment`,size:`small`,color:`error`,onClick:w,children:W(pr,{})})}),W(ti,{open:h,anchorEl:p,onClose:T,anchorOrigin:{vertical:`bottom`,horizontal:`center`},transformOrigin:{vertical:`top`,horizontal:`center`},children:G(K,{sx:{p:2},children:[W(Y,{variant:`body2`,sx:{mb:2},children:`Delete this comment?`}),G(J,{direction:`row`,spacing:1,justifyContent:`flex-end`,children:[W(q,{size:`small`,variant:`text`,onClick:T,disabled:d,children:`Cancel`}),W(q,{size:`small`,variant:`contained`,color:`error`,onClick:E,disabled:d,children:d?`Deleting...`:`Delete`})]})]})})]})]})]})]})]})}function ba({event:e,currentUserId:t,onEdit:n,onDelete:r}){return e.event_type===`comment`?W(ya,{event:e,currentUserId:t,onEdit:n,onDelete:r}):W(va,{event:e})}function xa({checkId:e}){let t=Et(),{apiClient:n}=Oe(),{events:r,isLoading:i,error:a,createComment:o,isCreatingComment:s,updateComment:c,deleteComment:l}=Ye(e),{data:u}=pn({queryKey:A.user(),queryFn:()=>Bt(n),retry:!1}),d=e=>{o(e)},f=async(e,t)=>{await c({eventId:e,content:t})},p=async e=>{await l(e)};return i?W(K,{sx:{height:`100%`,p:4,display:`flex`,justifyContent:`center`,alignItems:`center`},children:W(Hn,{size:20})}):a?W(K,{sx:{height:`100%`,p:4,display:`flex`,justifyContent:`center`,alignItems:`center`},children:W(Y,{sx:{fontSize:`0.875rem`,color:`error.main`},children:`Failed to load timeline`})}):G(J,{sx:{height:`100%`,alignItems:`stretch`,borderLeft:`1px solid`,borderColor:t?`grey.700`:`grey.200`},spacing:0,children:[W(K,{sx:{px:3,py:2,borderBottom:`1px solid`,borderColor:t?`grey.700`:`grey.200`},children:W(Y,{variant:`subtitle2`,sx:{fontWeight:500},children:`Activity`})}),W(K,{sx:{flex:1,overflowY:`auto`,px:3,py:2},children:r.length===0?W(Y,{sx:{fontSize:`0.875rem`,color:`grey.500`},children:`No activity yet`}):W(J,{sx:{alignItems:`stretch`},spacing:0,children:r.map((e,n)=>G(K,{children:[W(ba,{event:e,currentUserId:u?.id,onEdit:f,onDelete:p}),n<r.length-1&&W(Vn,{sx:{borderColor:t?`grey.700`:`grey.100`}})]},e.id))})}),W(K,{sx:{px:3,py:3,borderTop:`1px solid`,borderColor:t?`grey.700`:`grey.200`,bgcolor:t?`grey.900`:`grey.50`},children:W(Ce,{onSubmit:d,isSubmitting:s})})]})}function Sa({color:e}){return W(K,{component:`span`,sx:{display:`inline-block`,width:`10px`,height:`10px`,bgcolor:e,mr:1,borderRadius:`4px`}})}const Ca=({defaultPrimaryKeys:e,onPrimaryKeysChange:t,...n})=>{let{lineageGraph:r,isActionAvailable:i}=M(),a=V(()=>{if(!r)return[];let e=new Set;for(let t in r.nodes){let n=r.nodes[t],i={...n.data.data.base?.columns??{},...n.data.data.current?.columns??{}};Object.entries(i).forEach(([t,n])=>{n?.unique&&e.add(t)})}return Array.from(e).sort()},[r]);return W(K,{sx:{display:`flex`},...n,children:G(J,{spacing:0,sx:{m:`0 0.5rem`},children:[G(J,{direction:`row`,alignItems:`center`,spacing:.5,children:[W(Y,{component:`label`,sx:{fontSize:`0.625rem`,color:`text.secondary`},children:`Diff with Primary Key(s) (suggested)`}),W(Z,{title:`Provide a primary key to perform query diff in data warehouse and only return changed rows.`,placement:`bottom-end`,children:W(K,{component:`span`,sx:{display:`flex`,color:`grey.600`,cursor:`help`},children:W(rr,{fontSize:`0.75rem`})})})]}),W(dt,{className:`no-track-pii-safe`,unitName:`key`,defaultValues:e,suggestionList:a,onValuesChange:t,size:`2xs`,width:`240px`,placeholder:`Select or type to add keys`,disabled:!i(`query_diff_with_primary_key`)})]})})};function wa({supportCalendarUrl:e=`https://cal.com/team/recce/chat`}){let{data:t}=j();return W(`div`,{className:`flex flex-1 h-full min-h-0 m-2 p-4 bg-blue-50 rounded-lg shadow-md justify-center`,children:G(`div`,{className:`w-4/5 flex flex-col overflow-y-auto gap-6 px-8 pb-8`,children:[G(J,{alignItems:`center`,spacing:2,children:[W(K,{sx:{p:1,bgcolor:`background.paper`,borderRadius:`50%`,display:`flex`,alignItems:`center`,justifyContent:`center`,boxShadow:2},children:W(K,{component:bi,sx:{fontSize:28,color:`iochmara.500`}})}),W(Y,{variant:`h5`,sx:{mt:2},children:`Wait, there's more!`}),G(Y,{sx:{fontSize:`1rem`,textAlign:`center`},children:[`Query functions disabled without a`,` `,W(Y,{component:`span`,sx:{fontWeight:`bold`},children:`data warehouse connection`})]})]}),W(J,{sx:{width:`50%`,mt:3,mx:`auto`},children:W(q,{color:`iochmara`,variant:`contained`,size:`large`,onClick:()=>{window.open(Rt(t,e),`_blank`)},children:`Connect to Data Warehouse`})})]})})}const Ta=()=>{let{isCustomQueries:e,setCustomQueries:t,sqlQuery:n,setBaseSqlQuery:r}=Ie();return G(K,{children:[G(J,{direction:`row`,spacing:.5,alignItems:`center`,fontSize:`0.75rem`,children:[W(Y,{variant:`body2`,sx:{fontSize:`0.75rem`},children:`Custom Queries`}),W(Z,{title:`Custom queries allow you to use two SQL queries to compare results between current and base environments.`,children:W(K,{component:`span`,sx:{display:`flex`,color:`grey.600`},children:W(ir,{fontSize:`1rem`})})})]}),W(hi,{size:`small`,checked:e,onChange:()=>{!e&&r&&r(n),t(!e)},color:`primary`})]})},Ea=()=>{let{sqlQuery:e,baseSqlQuery:t,setSqlQuery:n,setBaseSqlQuery:i,primaryKeys:o,setPrimaryKeys:s,isCustomQueries:c}=Ie(),{lineageGraph:l,envInfo:d}=M(),{featureToggles:f,singleEnv:p}=I(),m=e;d?.adapterType===`sqlmesh`&&e===`select * from {{ ref("mymodel") }}`&&(m=`select * from db.mymodel`),f.mode===`read only`&&(m=`--- Would like to do query here? Book a demo with us at ${Ht}\n${m}`);let{showRunId:g}=de(),{apiClient:_}=Oe(),{mutate:v,isPending:y}=fn({mutationFn:async e=>{function n(e){switch(e){case`query`:return u;case`query_base`:return r;case`query_diff`:return a;default:throw Error(`Unknown query type: ${e}`)}}let i=e===`query_base`?t??``:m,s=n(e),l={sql_template:i},d={nowait:!0};e===`query_diff`&&(l.primary_keys=o,c&&(l.base_sql_template=t));let{run_id:f}=await s(l,d,_);return g(f),await h(f,void 0,_)}}),b=V(()=>{let e={};if(!l)return`N/A`;for(let t in l.nodes){let n=l.nodes[t].data.data.current?.schema;n&&(e[n]=(e[n]||0)+1)}return Object.keys(e).reduce((t,n)=>e[n]>(e[t]||0)?n:t,`N/A`)},[l]);return p||f.mode===`metadata only`?G(K,{sx:{display:`flex`,flexDirection:`column`,height:`100%`},children:[G(K,{sx:{display:`flex`,justifyContent:`right`,alignItems:`center`,padding:`4pt 8pt`,gap:`5px`,height:`54px`,borderBottom:`1px solid`,borderColor:`divider`},children:[W(Go,{}),W(K,{sx:{flexGrow:1}}),p?W(Z,{title:`Please configure the base environment before running the diff`,placement:`left`,children:W(`span`,{children:W(q,{variant:`contained`,disabled:!0,size:`small`,sx:{fontSize:`14px`,mt:`16px`},children:`Run Diff`})})}):W(Ps,{display:f.mode===`metadata only`,children:W(q,{variant:`contained`,disabled:!0,size:`small`,sx:{fontSize:`14px`,mt:`16px`},children:`Run Diff`})})]}),W(it,{value:m,onChange:n,onRun:()=>{v(`query`)},labels:[`base (production)`,`current (${b})`],SetupGuide:f.mode===`metadata only`?W(wa,{}):W(Bo,{})})]}):G(K,{sx:{display:`flex`,flexDirection:`column`,height:`100%`},children:[G(K,{sx:{display:`flex`,justifyContent:`right`,alignItems:`flex-end`,padding:`4pt 8pt`,gap:`5px`,height:`54px`,borderBottom:`1px solid`,borderColor:`divider`,flex:`0 0 54px`},children:[W(Go,{}),W(Ta,{}),W(K,{sx:{flexGrow:1}}),W(Ca,{defaultPrimaryKeys:o,onPrimaryKeysChange:s}),W(q,{variant:`contained`,onClick:()=>{v(`query_diff`)},disabled:y||f.disableDatabaseQuery,size:`small`,children:`Run Diff`})]}),W(K,{sx:{width:`100%`,flex:1,overflowY:`auto`},children:c?W(it,{value:m,baseValue:t,onChange:n,onChangeBase:i,onRun:()=>{v(`query`)},onRunBase:()=>{v(`query_base`)},onRunDiff:()=>{v(`query_diff`)}}):W(Se,{value:m,onChange:n,onRun:()=>{v(`query`)},onRunDiff:()=>{v(`query_diff`)}})})]})};function Da({rowCount:e}){let t=e.base,n=e.curr,r=e.base===null?`N/A`:`${e.base} Rows`,i=e.curr===null?`N/A`:`${e.curr} Rows`,a,o;t===null&&n===null?(a=`Failed to load`,o=`default`):t===null||n===null?(a=`${r} -> ${i}`,o=t===null?`success`:`error`):t===n?(a=`=`,o=`default`):(a=`${Nt(t,n)} Rows`,o=t<n?`success`:`error`);let s=z(`row_count_diff`).icon;return W(hr,{size:`small`,color:o,icon:s?W(s,{}):void 0,label:a,sx:{height:20,fontSize:`0.7rem`}})}function Oa({id:e,inverted:t}){let{lineageGraph:n,runsAggregated:r}=M(),{text:i,isDark:a}=ct(),o=r?.[e],s=n?.nodes[e];if(!o&&!s)return null;let c;if(s?.data.data.base&&s.data.data.current){let e=s.data.data.base.columns,t=s.data.data.current.columns;c=Pt(e,t)}let l;if(o?.row_count_diff){let e=o.row_count_diff.result;l=e.curr!==e.base}let u=t?i.inverted:nt(`modified`).color,d=t?i.secondary:a?`grey.700`:`grey.100`,f=z(`schema_diff`).icon;return G(K,{sx:{display:`flex`,flex:1,alignItems:`center`},children:[c!==void 0&&W(Z,{title:`Schema (${c?`changed`:`no change`})`,enterDelay:500,children:W(K,{sx:{height:16},children:f&&W(K,{component:f,sx:{color:c?u:d}})})}),W(K,{sx:{flexGrow:1}}),o?.row_count_diff&&l!==void 0&&W(Z,{title:`Row count (${l?`changed`:`=`})`,enterDelay:500,children:W(K,{children:W(Da,{rowCount:o.row_count_diff.result})})})]})}function ka({nodeId:e,nodeName:t}){let{getNodeAction:n}=le(),r=n(e);if(!r)return null;let{status:i,skipReason:a,run:o}=r;if(i===`pending`)return W(ha,{status:`pending`});if(i===`skipped`)return W(ha,{status:`skipped`,skipReason:a});if(!o)return W(ha,{status:`pending`});let{error:s,run_id:c,progress:l}=o;if(i===`running`)return W(ha,{status:`running`,progress:{percentage:l?.percentage}});if(s)return W(ha,{status:`error`,errorMessage:s});if(o.type===`value_diff`&&o.result){let e=o.result,t=0,n=e.data.data.length;for(let n of e.data.data)n[2]<1&&t++;return W(ha,{status:`success`,valueDiffResult:{mismatchedColumns:t,totalColumns:n}})}if(S(o)&&o.result){let e=o.result[t];if(e)return W(Da,{rowCount:e})}if(o.type===`row_count`&&o.result){let e=o.result[t];if(e?.curr!==void 0&&e.curr!==null)return W(hr,{size:`small`,label:`${e.curr.toLocaleString()} Rows`,sx:{height:20,fontSize:`0.7rem`}})}return W(ha,{status:`success`,runId:c})}function Aa(e){let{data:t}=e,{id:n,resourceType:r,changeStatus:i,name:a}=t,o=jr(e=>e.transform[2]>.3),{isDark:s}=ct(),{interactive:c,selectNode:l,selectMode:u,focusedNode:d,getNodeAction:f,getNodeColumnSet:p,isNodeHighlighted:m,isNodeSelected:h,isNodeShowingChangeAnalysis:g,showContextMenu:_,viewOptions:v,cll:y,showColumnLevelLineage:b,setChangeAnalysisMode:x}=le(),{isActionAvailable:S}=M(),C=y?.current.nodes[n]?.change_category,w=m(n),T=h(n),E=v.column_level_lineage?.node_id===n&&v.column_level_lineage.column===void 0,D=d?.id===n||E,O=g(n),k=p(t.id),ee=u===`action_result`?f(t.id):void 0,te=i,ne=u,re=u===`action_result`&&ee?W(ka,{nodeId:n,nodeName:a}):void 0,A=u!==`action_result`&&t.resourceType===`model`?W(Oa,{id:t.id,inverted:u===`selecting`&&T}):void 0;return W(lt,{id:n,data:{label:a,changeStatus:te,resourceType:r},interactive:c,selectMode:ne,isNodeSelected:T,isFocused:D,isHighlighted:w,showContent:o,actionTag:re,showChangeAnalysis:O,changeCategory:C,runsAggregatedTag:A,hasParents:Object.keys(t.parents).length>0,hasChildren:Object.keys(t.children).length>0,columnCount:k.size,columnHeight:24,isDark:s,onSelect:e=>{l(e)},onContextMenu:(t,n)=>{_(t,e)},onShowImpactRadius:i===`modified`&&S(`change_analysis`)?e=>{x(!0),b({node_id:e,change_analysis:!0,no_upstream:!0})}:void 0})}const ja=bn(Aa);ja.displayName=`GraphNode`;const Ma={lineageGraphNode:ja,lineageGraphColumnNode:ia},Na={lineageGraphEdge:sa},Pa=[],Fa=e=>e.data.changeStatus?nt(e.data.changeStatus).hexColor:be.neutral[400],Ia={ROW_COUNT:`row_count`,ROW_COUNT_DIFF:`row_count_diff`,PROFILE:`profile`,PROFILE_DIFF:`profile_diff`,VALUE_DIFF:`value_diff`,HISTOGRAM_DIFF:`histogram_diff`,TOP_K_DIFF:`top_k_diff`},La={LINEAGE_VIEW_CONTEXT_MENU:`lineage_view_context_menu`},Ra={SELECT_PARENT_NODES:`select_parent_nodes`,SELECT_CHILD_NODES:`select_child_nodes`,SELECT_ALL_UPSTREAM:`select_all_upstream`,SELECT_ALL_DOWNSTREAM:`select_all_downstream`},za=({menuItems:e,open:t,onClose:n,x:r,y:i,featureToggles:a,DisabledItemWrapper:o})=>{let s=o??(({children:e})=>W(U,{children:e})),c=a?.mode===`metadata only`;return W(Rr,{open:t,onClose:n,anchorReference:`anchorPosition`,anchorPosition:{top:i,left:r},slotProps:{paper:{sx:{fontSize:`0.85rem`,width:`250px`}}},children:e.length===0?W(Q,{disabled:!0,children:`No action available`},`no action`):e.map(({isSeparator:e,label:t,isDisabled:r,action:i,itemIcon:a})=>{if(e)return W(Vn,{},t);let l=G(Q,{disabled:r,onClick:()=>{i&&i(),n()},children:[a,` `,t]},t);return r&&o?W(s,{display:c,children:l},t):l})})},Ba=({isOpen:e,onClose:t,x:n,y:r,node:i,deps:a={},viewOptions:o={},featureToggles:s={},serverFlags:c={},noCatalogCurrent:l=!1,isActionAvailable:u=()=>!0})=>{let d=[],{runAction:f,onNavigate:p,onTrack:m,findByRunType:h,setSqlQuery:g,setPrimaryKeys:_,getPrimaryKey:v,DisabledItemWrapper:y}=a,{selectMode:b,cll:x,showColumnLevelLineage:S,setChangeAnalysisMode:C,selectParentNodes:w,selectChildNodes:T,getNodeColumnSet:E}=o,D=c.single_env_onboarding??!1,O=s.disableDatabaseQuery??!1;if(!i?.data)return W(U,{});let k=i.data,ee=k.resourceType,te=E?Array.from(E(i.id)):[],ne={source:`lineage_model_node`},re=k.changeStatus,A=v?.(k.name);if(re===`modified`&&d.push({label:`Show Impact Radius`,itemIcon:W(qn,{}),isDisabled:l||!u(`change_analysis`),action:()=>{C?.(!0),S?.({node_id:i.id,change_analysis:!0,no_upstream:!0})}}),!b&&ee&&[`model`,`seed`,`snapshot`].includes(ee)){d.length>0&&d.push({label:`select group one`,isSeparator:!0});let e=h?.(D?`query`:`query_diff`),t=Ft(Object.keys(k.data.base?.columns??{}),Object.keys(k.data.current?.columns??{})),n=`select * from {{ ref("${k.name}") }}`;if(t.length&&(n=`select \n ${t.join(`
3
- `)}\nfrom {{ ref("${k.name}") }}`),e&&d.push({label:`Query`,itemIcon:W(K,{component:e.icon,sx:{display:`inline-flex`}}),isDisabled:O,action:()=>{g?.(n),u(`query_diff_with_primary_key`)&&_?.(A===void 0?void 0:[A]),p?.(`/query`)}}),te.length>0&&e)if(x!==void 0){let t=new Set;A&&t.add(A),te.forEach(e=>{t.add(e)}),d.push({label:`Query Related Columns`,itemIcon:W(K,{component:e.icon,sx:{display:`inline-flex`}}),isDisabled:O,action:()=>{let e=`select \n ${Array.from(t).join(`,
4
- `)}\nfrom {{ ref("${k.name}") }}`;g?.(e),u(`query_diff_with_primary_key`)&&_?.(A===void 0?void 0:[A]),p?.(`/query`)}})}else{let t=Object.entries(k.change?.columns??{}).filter(([,e])=>e===`modified`).map(([e])=>e);if(t.length>0){let n=new Set;A&&n.add(A),t.forEach(e=>{n.add(e)}),d.push({label:`Query Modified Columns`,itemIcon:W(K,{component:e.icon,sx:{display:`inline-flex`}}),isDisabled:O,action:()=>{let e=`select \n ${Array.from(n).join(`,
5
- `)}\nfrom {{ ref("${k.name}") }}`;g?.(e),u(`query_diff_with_primary_key`)&&_?.(A===void 0?void 0:[A]),p?.(`/query`)}})}}let r=D?`row_count`:`row_count_diff`,a=h?.(r);a&&d.push({label:a.title,itemIcon:W(K,{component:a.icon,sx:{display:`inline-flex`}}),isDisabled:O,action:()=>{m?.(`explore_action`,{action:D?Ia.ROW_COUNT:Ia.ROW_COUNT_DIFF,source:La.LINEAGE_VIEW_CONTEXT_MENU,node_count:1}),f?.(r,{node_names:[k.name]},{showForm:!1,trackProps:ne})}});let o=D?`profile`:`profile_diff`,s=h?.(o);if(s&&d.push({label:s.title,itemIcon:W(K,{component:s.icon,sx:{display:`inline-flex`}}),isDisabled:O,action:()=>{let e=E?Array.from(E(i.id)):[];m?.(`explore_action`,{action:D?Ia.PROFILE:Ia.PROFILE_DIFF,source:La.LINEAGE_VIEW_CONTEXT_MENU,node_count:1}),f?.(o,{model:k.name,columns:e},{showForm:!0,trackProps:ne})}}),!D){let e=h?.(`value_diff`);e&&d.push({label:e.title,itemIcon:W(K,{component:e.icon,sx:{display:`inline-flex`}}),isDisabled:O,action:()=>{let e=E?Array.from(E(i.id)):[];m?.(`explore_action`,{action:Ia.VALUE_DIFF,source:La.LINEAGE_VIEW_CONTEXT_MENU,node_count:1}),f?.(`value_diff`,{model:k.name,columns:e},{showForm:!0,trackProps:ne})}})}}return D||(d.length>0&&d.push({label:`select group two`,isSeparator:!0}),d.push({label:`Select Parent Nodes`,itemIcon:W(Ci,{}),action:()=>{m?.(`lineage_selection`,{action:Ra.SELECT_PARENT_NODES}),w?.(i.id,1)}}),d.push({label:`Select Child Nodes`,itemIcon:W(wi,{}),action:()=>{m?.(`lineage_selection`,{action:Ra.SELECT_CHILD_NODES}),T?.(i.id,1)}}),d.push({label:`Select All Upstream Nodes`,itemIcon:W(Ci,{}),action:()=>{m?.(`lineage_selection`,{action:Ra.SELECT_ALL_UPSTREAM}),w?.(i.id)}}),d.push({label:`Select All Downstream Nodes`,itemIcon:W(wi,{}),action:()=>{m?.(`lineage_selection`,{action:Ra.SELECT_ALL_DOWNSTREAM}),T?.(i.id)}})),W(za,{x:n,y:r,menuItems:d,open:e,onClose:t,featureToggles:s,DisabledItemWrapper:y})},Va=({isOpen:e,onClose:t,x:n,y:r,node:i,deps:a={},featureToggles:o={},serverFlags:s={},isActionAvailable:c=()=>!0})=>{let l=[],{runAction:u,onTrack:d,findByRunType:f,supportsHistogramDiff:p,DisabledItemWrapper:m}=a,h=s.single_env_onboarding??!1,g=o.disableDatabaseQuery??!1;if(i?.data===void 0)return W(U,{});let _=i.data,v=_.node,y=_.column,b=_.type,x={source:`lineage_column_node`},S=()=>{d?.(`explore_action`,{action:Ia.PROFILE_DIFF,source:La.LINEAGE_VIEW_CONTEXT_MENU,node_count:1}),u?.(`profile_diff`,{model:v.name,columns:[y]},{showForm:!1,trackProps:x})},C=()=>{d?.(`explore_action`,{action:Ia.HISTOGRAM_DIFF,source:La.LINEAGE_VIEW_CONTEXT_MENU,node_count:1}),u?.(`histogram_diff`,{model:v.name,column_name:y,column_type:b},{showForm:!1,trackProps:x})},w=()=>{d?.(`explore_action`,{action:Ia.TOP_K_DIFF,source:La.LINEAGE_VIEW_CONTEXT_MENU,node_count:1}),u?.(`top_k_diff`,{model:v.name,column_name:y,k:50},{showForm:!1,trackProps:x})},T=()=>{d?.(`explore_action`,{action:Ia.VALUE_DIFF,source:La.LINEAGE_VIEW_CONTEXT_MENU,node_count:1}),u?.(`value_diff`,{model:v.name,columns:[y]},{showForm:!0,trackProps:x})},E=v.data.base?.columns?.[y]===void 0||v.data.current?.columns?.[y]===void 0,D=f?.(h?`profile`:`profile_diff`);if(D&&l.push({label:D.title,itemIcon:W(K,{component:D.icon,sx:{display:`inline-flex`}}),action:S,isDisabled:E||!c(`profile_diff`)||g}),!h){let e=f?.(`histogram_diff`);if(e){let t=p?.(b)??!0;l.push({label:e.title,itemIcon:W(K,{component:e.icon,sx:{display:`inline-flex`}}),action:C,isDisabled:E||!t||g})}let t=f?.(`top_k_diff`);t&&l.push({label:t.title,itemIcon:W(K,{component:t.icon,sx:{display:`inline-flex`}}),action:w,isDisabled:E||g});let n=f?.(`value_diff`);n&&l.push({label:n.title,itemIcon:W(K,{component:n.icon,sx:{display:`inline-flex`}}),action:T,isDisabled:E||g})}return W(za,{x:n,y:r,menuItems:l,open:e,onClose:t,featureToggles:o,DisabledItemWrapper:m})},Ha=({isOpen:e,onClose:t,x:n,y:r,node:i,deps:a={},viewOptions:o={},featureToggles:s={},serverFlags:c={},noCatalogCurrent:l=!1,isActionAvailable:u=()=>!0})=>s.disableViewActionDropdown?W(za,{menuItems:[],open:e,onClose:t,x:n,y:r,featureToggles:s,DisabledItemWrapper:a.DisabledItemWrapper}):i&&ce(i)?W(Ba,{x:n,y:r,isOpen:e,onClose:t,node:i,deps:a,viewOptions:o,featureToggles:s,serverFlags:c,noCatalogCurrent:l,isActionAvailable:u}):i&&se(i)?W(Va,{x:n,y:r,isOpen:e,onClose:t,node:i,deps:a,featureToggles:s,serverFlags:c,isActionAvailable:u}):null,Ua=()=>{let[e,t]=H(!1),n=()=>t(!0),r=()=>t(!1),[i,a]=H({x:0,y:0}),[o,s]=H();return{props:{x:i.x,y:i.y,node:o,isOpen:e,onClose:r},showContextMenu:(e,t,r)=>{a({x:e,y:t}),s(r),n()},closeContextMenu:()=>{a({x:0,y:0}),s(void 0),r()}}},Wa=()=>{let{isDark:e}=ct(),{successToast:t,failToast:n}=At();return ft({renderLibrary:`html-to-image`,imageType:`png`,shadowEffect:!0,backgroundColor:e?be.neutral[900]:be.neutral[50],ignoreElements:e=>{try{return e.classList.contains($e)}catch{return e.className?e.className.includes($e):!1}},onSuccess:()=>{t(`Copied the Lineage View as an image to clipboard`)},onError:e=>{console.error(`Error taking screenshot`,e),n(`Failed to copy image to clipboard`,e)}})},Ga=()=>{let e=ri(),{basePath:t}=ue();return B(n=>{n.check_id&&e.push(`${t}/checks/?id=${n.check_id}`)},[e.push,t])},Ka=(e,t)=>{let n=Tn({width:0,height:0});Sn(()=>{let r=e.current,i=new ResizeObserver(e=>{for(let r of e){let e=r.contentRect.width,i=r.contentRect.height;(Math.abs(i-n.current.height)>10||Math.abs(e-n.current.width)>10)&&n.current.height>0&&i>0&&n.current.width>0&&e>0&&t(),n.current={width:e,height:i}}});return r&&i.observe(r),()=>{r&&i.unobserve(r)}},[t,e])},qa=()=>B((e,t,n,r,i)=>{let a=e.filter(ce),o=Object.groupBy(a,e=>e.data.changeStatus??`unchanged`),s=Object.fromEntries(Object.entries(o).map(([e,t])=>[`nodes_${e}`,t?.length??0])),c={node_count:a.length,view_mode:t,impact_radius_enabled:n,right_sidebar_open:i,...s};r&&(c.cll_column_active=!0),en(c)},[]),Ja={row_count:Ut.ROW_COUNT,row_count_diff:Ut.ROW_COUNT_DIFF,value_diff:Ut.VALUE_DIFF},Ya=e=>{let t=Ja[e.action];t&&Yt({action:t,source:Gt.LINEAGE_VIEW_TOP_BAR,node_count:e.node_count})},Xa=(e,t)=>Le(e,{...t,onTrackAction:Ya,trackingSource:Gt.LINEAGE_VIEW_TOP_BAR});function Za(){return St({onConfirm:()=>Xt({action:Ut.VALUE_DIFF,event:Wt.EXECUTE}),onCancel:()=>Xt({action:Ut.VALUE_DIFF,event:Wt.CANCEL})})}function Qa({notification:e,type:t}){let n=D.lineageNotificationDismissed,[r,i]=H(()=>sessionStorage.getItem(n)!==`true`);if(e===null||!r)return null;let a={info:`iochmara.light`,success:`success.light`,warning:`warning.light`,error:`error.light`}[t];return G(K,{sx:{width:`100%`,display:`flex`,flexDirection:`row`,p:`5px 10px`,gap:`5px`,alignItems:`flex-start`,borderRadius:1,boxShadow:4,border:`1px solid`,borderColor:`neutral.light`,bgcolor:a},children:[e,W(K,{sx:{flex:1}}),W(X,{size:`small`,onClick:()=>{sessionStorage.setItem(n,`true`),i(!1)},children:W(Rn,{})})]})}const $a=e=>{let{runAction:t}=de(),{setSqlQuery:n,setPrimaryKeys:r}=Ie(),i=ri(),{primaryKey:a}=ut(e),{basePath:o}=ue();return{runAction:(e,n,r)=>{t(e,n,r)},onNavigate:e=>{i.push(`${o}${e}`)},onTrack:(e,t)=>{e===`explore_action`?Yt({action:t.action,source:La.LINEAGE_VIEW_CONTEXT_MENU,node_count:t.node_count}):e===`lineage_selection`&&$t({action:t.action})},supportsHistogramDiff:Ke,findByRunType:e=>{let t=z(e);return t?{title:t.title,icon:t.icon}:void 0},setSqlQuery:n,setPrimaryKeys:r,getPrimaryKey:()=>a,DisabledItemWrapper:Ps}},eo=({isOpen:e,onClose:t,x:n,y:r,node:i})=>{let{selectParentNodes:a,selectChildNodes:o,getNodeColumnSet:s,selectMode:c,cll:l,showColumnLevelLineage:u,setChangeAnalysisMode:d}=le(),{featureToggles:f}=I(),{isActionAvailable:p,lineageGraph:m}=M(),{data:h}=F(),g=!m?.catalogMetadata.current;return W(Ha,{x:n,y:r,node:i,isOpen:e,onClose:t,deps:$a(i?.type===`lineageGraphNode`?i.data?.name:i?.type===`lineageGraphColumnNode`?i.data?.node?.name:void 0),viewOptions:{selectMode:c,cll:l,showColumnLevelLineage:u,setChangeAnalysisMode:d,selectParentNodes:a,selectChildNodes:o,getNodeColumnSet:s},featureToggles:{disableDatabaseQuery:f.disableDatabaseQuery,disableViewActionDropdown:f.disableViewActionDropdown,mode:f.mode??void 0},serverFlags:{single_env_onboarding:h?.single_env_onboarding},noCatalogCurrent:g,isActionAvailable:p})},to=Ua;function no(e,t){let n=[],r=[],{selectedNodes:i,cll:a,existingPositions:o}=t??{},s={};function c(e){return e===`base`?0:e===`current`?2:1}function l(e,t){let n=c(e.data?.from),r=c(t.data?.from);return n<r?-1:n>r?1:0}let u=i===void 0?void 0:new Set(i),d=Object.values(e.nodes).sort(l);for(let e of d){if(u&&!u.has(e.id))continue;let t=new Set,i=0;if(a){let o=a.current?.parent_map[e.id]??new Set;for(let t of o){let n=t,i=e.id;r.push({id:`m2c_${n}_${i}`,source:n,target:i,style:{zIndex:9999}})}for(let o of Object.keys(e.data.data.current?.columns??{})){let s=`${e.id}_${o}`,c=a.current,l=c?.columns[s],u=c?.parent_map[s]??new Set;if(l!=null){n.push({id:s,position:{x:10,y:70+i*24},parentId:e.id,extent:`parent`,draggable:!1,className:`no-track-pii-safe`,data:{node:e.data,column:l.name,type:l.type,transformationType:l.transformation_type,changeStatus:l.change_status},style:{zIndex:9999},type:`lineageGraphColumnNode`,targetPosition:Cr.Left,sourcePosition:Cr.Right});for(let e of u){let t=e,n=s;r.push({id:`${t}_${n}`,source:t,target:n,style:{zIndex:9999}})}i++,t.add(l.name)}}}s[e.id]=t;let c=60;i>0&&(c+=20+i*24);let l=o?.get(e.id);n.unshift({id:e.id,position:l??{x:0,y:0},width:300,height:c,className:`no-track-pii-safe`,data:{...e.data},type:`lineageGraphNode`,targetPosition:Cr.Left,sourcePosition:Cr.Right,style:{width:300,height:c}})}let f=Object.values(e.edges).sort(l);for(let e of f)u&&(!u.has(e.source)||!u.has(e.target))||r.push({id:e.id,type:`lineageGraphEdge`,source:e.source,target:e.target,data:{...e.data}});return n.some(e=>e.type===`lineageGraphNode`&&!o?.has(e.id))&&ro(n,r),[n,r,s]}const ro=(e,t,n=`LR`)=>{oe(Ti,e,t,n)};function io(){return G(K,{sx:{display:`flex`,gap:2,px:1,py:.5,fontSize:`0.75rem`,color:`text.secondary`},children:[G(`span`,{children:[W(`span`,{className:`schema-change-badge schema-change-badge-added`,children:`+`}),` `,`added`]}),G(`span`,{children:[W(`span`,{className:`schema-change-badge schema-change-badge-removed`,children:`-`}),` `,`removed`]}),G(`span`,{children:[W(`span`,{className:`schema-change-badge schema-change-badge-changed`,children:`~`}),` `,`changed`]})]})}function ao({current:e,showMenu:t=!0},n){let r=pe(),[i,a]=H(null),[o,s]=H(new Map),{columns:c,rows:l}=V(()=>yt({type:`schema_single`,columns:e?.columns},{node:e,cllRunningMap:o,showMenu:t}),[e,o,t]),{lineageGraph:u,isActionAvailable:d}=M(),f=d(`change_analysis`),p=!u?.catalogMetadata.current,m;p&&(m="catalog.json not found. Run `recce debug` to troubleshoot.");let h=e&&e.columns===void 0,g;h&&(g=`Node schema not found in catalog.json. Please regenerate your catalog.json to update.`);let _=async t=>{if(!f)return;Kt({action:`view`,source:`schema_column`}),s(e=>new Map(e).set(t,!0));let n=e?.id;n&&await r?.showColumnLevelLineage({node_id:n,column:t}),s(e=>new Map(e).set(t,!1))},v=B(t=>`${e?.id}-${t.data.name}`,[e?.id]),y=r?.viewOptions.column_level_lineage,b=y?`${y.node_id}-${y.column}`:null;Sn(()=>{if(i&&(i.deselectAll(),b)){let e=i.getRowNode(b);e&&e.setSelected(!0)}},[i,b]);let x=B(e=>{a(e.api)},[]);return G(K,{sx:{display:`flex`,flexDirection:`column`,height:`100%`},children:[m?W(Lr,{severity:`warning`,sx:{fontSize:`12px`,p:1},children:m}):g?W(Lr,{severity:`warning`,sx:{fontSize:`12px`,p:1},children:g}):W(U,{}),l.length>0&&W(qe,{style:{blockSize:`auto`,maxHeight:`100%`,overflow:`auto`,fontSize:`10pt`,borderWidth:1},columns:c,rows:l,renderers:{noRowsFallback:W(Tt,{})},ref:n,getRowId:v,getRowClass:e=>r!==void 0&&f?`row-normal row-selectable`:`row-normal`,onCellClicked:async e=>{if((e.event?.target)?.closest(`.row-context-menu`))return;let t=e.data;t&&await _(t.name)},onGridReady:x,rowSelection:{mode:`singleRow`,checkboxes:!1},containerClassName:`no-track-pii-safe`,rowClassName:`no-track-pii-safe`})]})}function oo({base:e,current:t,showMenu:n=!0,columnChanges:r,onViewCode:i},a){let o=pe(),[s,c]=H(null),[l,u]=H(new Map),{columns:d,rows:f}=V(()=>{let a=t?.resource_type??e?.resource_type,o=a&&[`model`,`seed`,`snapshot`,`source`].includes(a)?t??e:void 0;return yt({type:`schema_diff`,base:e?.columns,current:t?.columns},{node:o,cllRunningMap:l,showMenu:n,columnChanges:r,onViewCode:i})},[e,t,l,n,r,i]),{lineageGraph:p,isActionAvailable:m}=M(),h=m(`change_analysis`),g=!p?.catalogMetadata.base,_=!p?.catalogMetadata.current,v;g&&_?v="catalog.json not found on both environments. Run `recce debug` to troubleshoot.":g?v="catalog.json not found on base environment. Run `recce debug` to troubleshoot.":_&&(v="catalog.json not found on current environment. Run `recce debug` to troubleshoot.");let y=e&&e.columns===void 0,b=t&&t.columns===void 0,x;y&&b?x=`Node schema not found in catalog.json on both environments. Please regenerate your catalog.json to update.`:b?x=`Node schema not found in catalog.json on current environment. Please regenerate your catalog.json to update.`:y&&(x=`Node schema not found in catalog.json on base environment. Please regenerate your catalog.json to update.`);let S=async n=>{if(!h)return;Kt({action:`view`,source:`schema_column`}),u(e=>new Map(e).set(n,!0));let r=t?.id??e?.id;r&&await o?.showColumnLevelLineage({node_id:r,column:n}),u(e=>new Map(e).set(n,!1))},C=B(n=>`${t?.id??e?.id}-${n.data.name}`,[t?.id,e?.id]),w=o?.viewOptions.column_level_lineage,T=w?`${w.node_id}-${w.column}`:null;Sn(()=>{if(s&&(s.deselectAll(),T)){let e=s.getRowNode(T);e&&e.setSelected(!0)}},[s,T]);let E=B(e=>{c(e.api)},[]);return G(K,{sx:{display:`flex`,flexDirection:`column`,height:`100%`},children:[v?W(Lr,{severity:`warning`,sx:{fontSize:`12px`,p:1},children:v}):x?W(Lr,{severity:`warning`,sx:{fontSize:`12px`,p:1},children:x}):W(U,{}),W(io,{}),f.length>0&&W(qe,{style:{blockSize:`auto`,maxHeight:`100%`,overflow:`auto`,fontSize:`0.8rem`,borderWidth:1},columns:d,rows:f,rowHeight:35,renderers:{noRowsFallback:W(Tt,{})},className:`rdg-light no-track-pii-safe`,ref:a,getRowId:C,getRowClass:e=>{let t=e.data;if(!t)return`row-normal`;let n;if(t.baseIndex===void 0)n=`row-added`;else if(t.currentIndex===void 0)return`row-removed`;else n=t.baseType!==t.currentType||t.reordered===!0||t.definitionChanged===!0?`row-changed`:`row-normal`;return o!==void 0&&h&&(n+=` row-selectable`),n},onCellClicked:async e=>{if((e.event?.target)?.closest(`.row-context-menu`))return;let t=e.data;t&&(t.baseIndex!==void 0&&t.currentIndex===void 0||await S(t.name))},onGridReady:E,rowSelection:{mode:`singleRow`,checkboxes:!1},containerClassName:`no-track-pii-safe`,rowClassName:`no-track-pii-safe`})]})}const so=yn(oo),co=yn(ao),lo=({node:e,isSingleEnv:t,CodeEditor:n,DiffEditor:r,isDark:i=!1})=>{let[a,o]=H(!1),[s,c]=H(!1);if(e.data.resourceType!==`model`&&e.data.resourceType!==`snapshot`)return`Not available`;let l=e.data.data.base?.raw_code,u=e.data.data.current?.raw_code,d=e.data.data.base?.name??e.data.data.current?.name??``;return G(K,{className:`no-track-pii-safe`,sx:{position:`relative`,height:`100%`},onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},children:[t?W(n,{language:`sql`,value:l??``,readOnly:!0,lineNumbers:!0,wordWrap:!1,theme:i?`dark`:`light`}):W(r,{original:l??``,modified:u??``,language:`sql`,readOnly:!0,lineNumbers:!0,sideBySide:!1,theme:i?`dark`:`light`,height:`100%`}),W(X,{onClick:()=>o(!0),size:`medium`,"aria-label":`Expand`,sx:{position:`absolute`,top:`5px`,right:`20px`,opacity:s?.5:.1,transition:`opacity 0.3s ease-in-out`},children:W(Wn,{})}),G(En,{open:a,onClose:()=>o(!1),maxWidth:`sm`,fullWidth:!0,slotProps:{paper:{sx:{height:`75%`,overflowY:`auto`}}},children:[G(kn,{sx:{display:`flex`,alignItems:`center`},children:[t?G(U,{children:[W(`code`,{children:d}),`\xA0Model Code`]}):G(U,{children:[W(`code`,{children:d}),`\xA0Model Code Diff`]}),W(K,{sx:{flex:1}}),W(X,{size:`small`,onClick:()=>o(!1),children:W(Rn,{})})]}),W(On,{children:t?W(n,{language:`sql`,value:l??``,fontSize:16,readOnly:!0,lineNumbers:!0,wordWrap:!1,theme:i?`dark`:`light`}):W(r,{original:l??``,modified:u??``,language:`sql`,theme:i?`dark`:`light`,className:`text-base`})})]})]})},uo=({node:e})=>{let{data:t,isLoading:n}=F(),r=Et();return n?W(U,{}):W(lo,{node:e,isSingleEnv:t?.single_env_onboarding??!1,CodeEditor:De,DiffEditor:Ge,isDark:r})},fo=e=>({display:`inline-flex`,alignItems:`center`,borderRadius:16,px:1,py:.25,fontSize:`0.75rem`,bgcolor:e?`grey.700`:`grey.100`,color:e?`grey.100`:`inherit`}),po={mr:.5,display:`flex`,alignItems:`center`};function mo({data:e,"data-testid":t}){let n=Et(),{icon:r}=tt(e.resourceType);return W(Z,{arrow:!0,title:`Type of resource`,children:G(K,{component:`span`,sx:fo(n),"data-testid":t,children:[r&&W(K,{component:`span`,sx:po,children:W(r,{})}),e.resourceType]})})}const ho=bn(mo);ho.displayName=`ResourceTypeTag`;function go({rowCount:e}){let t=e.base,n=e.curr,r=e.base===null?`N/A`:`${e.base} rows`,i=e.curr===null?`N/A`:`${e.curr} rows`;return t===null&&n===null?W(U,{children:` Failed to load`}):t===null||n===null?G(J,{direction:`row`,alignItems:`center`,spacing:.5,children:[W(Y,{variant:`body2`,component:`span`,children:r}),W(di,{}),W(Y,{variant:`body2`,component:`span`,children:i})]}):t===n?G(J,{direction:`row`,alignItems:`center`,spacing:.5,children:[W(Y,{variant:`body2`,component:`span`,children:i}),W(K,{component:`span`,sx:{color:`grey.500`,display:`flex`},children:W(yi,{})}),W(Y,{variant:`body2`,component:`span`,sx:{color:`grey.500`},children:`No Change`})]}):t<n?G(J,{direction:`row`,alignItems:`center`,spacing:.5,children:[W(Y,{variant:`body2`,component:`span`,children:i}),W(K,{component:`span`,sx:{color:`success.main`,display:`flex`},children:W(_i,{})}),W(Y,{variant:`body2`,component:`span`,sx:{color:`success.main`},children:Nt(t,n)})]}):G(J,{direction:`row`,alignItems:`center`,spacing:.5,children:[W(Y,{variant:`body2`,component:`span`,children:i}),W(K,{component:`span`,sx:{color:`error.main`,display:`flex`},children:W(gi,{})}),W(Y,{variant:`body2`,component:`span`,sx:{color:`error.main`},children:Nt(t,n)})]})}function _o({rowCount:e,node:t,onRefresh:n,isFetching:r}){let i=Et(),{featureToggles:a}=I(),{runsAggregated:o}=M(),s=o?.[t.id]?.row_count_diff.result,c=z(`row_count_diff`).icon,l=e??s,u=l;return W(Z,{title:l?`${l.base??`N/A`} -> ${l.curr??`N/A`} rows`:``,children:W(Ps,{display:a.mode===`metadata only`,children:G(K,{component:`span`,sx:{...fo(i),gap:.5},children:[W(c,{}),u!=null||r?r?W(Ei,{width:30,height:16}):u==null?W(Y,{variant:`caption`,children:`row count`}):W(go,{rowCount:u}):W(Y,{variant:`caption`,children:`row count`}),n&&W(X,{"aria-label":`Query Row Count`,size:`small`,onClick:n,disabled:a.disableDatabaseQuery,sx:{p:0,ml:.5},children:W(ur,{size:12})})]})})})}function vo({rowCount:e,node:t,onRefresh:n,isFetching:r}){let i=Et(),{runsAggregated:a}=M(),o=a?.[t.id]?.row_count.result,s=z(`row_count`).icon,c,l=e??o;return l&&(c=`${l.curr??`N/A`} rows`),G(K,{component:`span`,sx:fo(i),children:[W(K,{component:`span`,sx:po,children:W(s,{})}),l||r?r?W(Ei,{width:30,height:16}):W(Y,{variant:`caption`,children:c}):W(Y,{variant:`caption`,children:`row count`}),n&&W(X,{"aria-label":`Query Row Count`,size:`small`,onClick:n,disabled:t.data.from===`base`,sx:{p:0,ml:.5},children:W(ur,{size:12})})]})}function yo({children:e,value:t,index:n}){return t===n?W(U,{children:e}):null}const bo=()=>W(`span`,{}),xo=({children:e})=>W(U,{children:e}),So=()=>!0;function Co(e,t,n){return e?ln.add_or_remove:n(t)?``:`This action is not supported yet.`}function wo({node:e,actionCallbacks:t,runTypeIcons:n,isActionAvailable:r}){let i=e.data.changeStatus===`added`||e.data.changeStatus===`removed`,a=n?.query??bo,o=n?.row_count??bo,s=n?.profile??bo;return G(J,{direction:`row`,alignItems:`center`,flexWrap:`wrap`,gap:1,children:[W(q,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:W(a,{fontSize:`small`}),onClick:t?.onQueryClick,sx:{textTransform:`none`},children:`Query`}),W(q,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:W(o,{fontSize:`small`}),onClick:t?.onRowCountClick,sx:{textTransform:`none`},children:`Row Count`}),W(Z,{title:Co(i,`profile`,r),placement:`top`,children:W(`span`,{children:W(q,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:W(s,{fontSize:`small`}),onClick:t?.onProfileClick,disabled:i,sx:{textTransform:`none`},children:`Profile`})})})]})}function To({actionCallbacks:e,runTypeIcons:t,featureToggles:n,ConnectionPopoverWrapper:r}){let i=n?.mode===`metadata only`,a=t?.schema_diff??bo,o=t?.sandbox??bo;return G(J,{direction:`row`,alignItems:`center`,sx:{mr:1},flexWrap:`wrap`,gap:1,children:[W(q,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:W(a,{fontSize:`small`}),onClick:e?.onAddSchemaDiffClick,sx:{textTransform:`none`},children:`Add schema diff to checklist`}),W(r,{display:i,children:W(q,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:W(o,{fontSize:`small`}),onClick:e?.onSandboxClick,disabled:n?.disableDatabaseQuery,sx:{textTransform:`none`},children:`Sandbox`})})]})}function Eo({node:e,actionCallbacks:t,runTypeIcons:n,featureToggles:r,isActionAvailable:i,ConnectionPopoverWrapper:a}){let o=r?.mode===`metadata only`,s=e.data.changeStatus===`added`||e.data.changeStatus===`removed`,c=n?.query_diff??bo,l=n?.row_count_diff??bo,u=n?.profile_diff??bo,d=n?.value_diff??bo,f=n?.top_k_diff??bo,p=n?.histogram_diff??bo,m=(e,t)=>o?W(a,{display:!0,children:e}):W(Z,{title:Co(s,t,i),placement:`top`,children:W(`span`,{children:e})});return G(J,{direction:`row`,alignItems:`center`,flexWrap:`wrap`,gap:2,children:[W(Y,{variant:`caption`,fontWeight:`bold`,children:`Diff`}),G(J,{direction:`row`,alignItems:`center`,flexWrap:`wrap`,gap:1,width:`93%`,children:[W(a,{display:o,children:W(q,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:W(l,{fontSize:`small`}),onClick:t?.onRowCountDiffClick,disabled:r?.disableDatabaseQuery,sx:{textTransform:`none`},children:`Row Count`})}),m(W(q,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:W(u,{fontSize:`small`}),onClick:t?.onProfileDiffClick,disabled:s||r?.disableDatabaseQuery,sx:{textTransform:`none`},children:`Profile`}),`profile_diff`),m(W(q,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:W(d,{fontSize:`small`}),onClick:t?.onValueDiffClick,disabled:s||r?.disableDatabaseQuery,sx:{textTransform:`none`},children:`Value`}),`value_diff`),m(W(q,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:W(f,{fontSize:`small`}),onClick:t?.onTopKDiffClick,disabled:s||r?.disableDatabaseQuery,sx:{textTransform:`none`},children:`Top-K`}),`top_k_diff`),m(W(q,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:W(p,{fontSize:`small`}),onClick:t?.onHistogramDiffClick,disabled:s||r?.disableDatabaseQuery,sx:{textTransform:`none`},children:`Histogram`}),`histogram_diff`),W(a,{display:o,children:W(q,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:W(c,{fontSize:`small`}),onClick:t?.onQueryDiffClick,disabled:r?.disableDatabaseQuery,sx:{textTransform:`none`},children:`Query`})})]})]})}function Do({node:e,onCloseNode:t,isSingleEnv:n,featureToggles:r,SchemaView:i,SingleEnvSchemaView:a,NodeSqlView:o,RowCountDiffTag:s,RowCountTag:c,ResourceTypeTag:l,NotificationComponent:u,ConnectionPopoverWrapper:d=xo,SandboxDialog:f,runTypeIcons:p,actionCallbacks:m,isActionAvailable:h=So}){let g=e.data.resourceType===`model`||e.data.resourceType===`seed`||e.data.resourceType===`source`||e.data.resourceType===`snapshot`,[_,v]=H(!1),[y,b]=H(!0),[x,S]=H(0),{base:C,current:w}=e.data.data,T=!n&&Pt(C?.columns,w?.columns)===!0,E=!n&&C?.raw_code!=null&&w?.raw_code!=null&&C.raw_code!==w.raw_code,D=e.data.resourceType===`model`||e.data.resourceType===`seed`||e.data.resourceType===`snapshot`,O={...m,onSandboxClick:()=>{m?.onSandboxClick?.(),v(!0)}};return G(K,{sx:{height:`100%`,display:`flex`,flexDirection:`column`},children:[G(J,{direction:`row`,alignItems:`center`,children:[W(K,{sx:{flex:`0 1 20%`,p:2},children:W(Y,{variant:`subtitle1`,fontWeight:600,className:`no-track-pii-safe`,children:e.data.name})}),W(K,{sx:{flexGrow:1}}),!n&&D&&W(To,{node:e,actionCallbacks:O,runTypeIcons:p,featureToggles:r,ConnectionPopoverWrapper:d}),W(K,{sx:{flex:`0 1 1%`},children:W(X,{size:`small`,onClick:t,children:W(Rn,{})})})]}),W(K,{sx:{color:`text.secondary`,pl:2},children:G(J,{direction:`row`,spacing:1,children:[l&&W(l,{node:e}),D&&(n?c&&W(c,{node:e,onRefresh:m?.onRowCountClick}):s&&W(s,{node:e,onRefresh:m?.onRowCountDiffClick}))]})}),D&&W(K,{sx:{pl:2,py:1},children:n?W(wo,{node:e,actionCallbacks:m,runTypeIcons:p,isActionAvailable:h}):W(Eo,{node:e,actionCallbacks:O,runTypeIcons:p,featureToggles:r,isActionAvailable:h,ConnectionPopoverWrapper:d})}),g&&G(K,{sx:{overflow:`auto`,display:`flex`,flexDirection:`column`,flex:1,minHeight:0},children:[n&&y&&u&&W(K,{sx:{p:1.5},children:W(u,{onClose:()=>b(!1),children:W(Y,{variant:`body2`,children:`Enable the Recce Checklist and start adding checks for better data validation and review.`})})}),G(Zr,{value:x,onChange:(e,t)=>S(t),sx:{borderBottom:1,borderColor:`divider`},children:[W(Xr,{label:G(K,{component:`span`,sx:{display:`flex`,alignItems:`center`,gap:.75},children:[`Columns`,T&&W(K,{component:`span`,sx:{color:`amber.main`,fontSize:`0.5rem`,lineHeight:1},children:`●`})]})}),W(Xr,{label:G(K,{component:`span`,sx:{display:`flex`,alignItems:`center`,gap:.75},children:[`Code`,E&&W(K,{component:`span`,sx:{color:`amber.main`,fontSize:`0.5rem`,lineHeight:1},children:`●`})]})})]}),G(K,{sx:{overflow:`auto`,height:`calc(100% - 48px)`},children:[W(yo,{value:x,index:0,children:W(K,{sx:{overflowY:`auto`,height:`100%`},children:n?a&&W(a,{current:e.data.data.current}):i&&W(i,{base:e.data.data.base,current:e.data.data.current,columnChanges:e.data.change?.columns,onViewCode:()=>S(1)})})}),W(yo,{value:x,index:1,children:W(K,{sx:{height:`100%`},children:o&&W(o,{node:e})})})]})]}),f&&W(f,{isOpen:_,onClose:()=>v(!1),current:e.data.data.current})]})}function Oo(e){return qr(Yr(e),`yyyy-MM-dd'T'HH:mm:ss`)}function ko({current:e,primaryKeys:t,onPrimaryKeysChange:n,onRunResultOpen:r,runQuery:i,isPending:a,QueryForm:o}){return G(J,{direction:`row`,justifyContent:`flex-end`,alignItems:`center`,sx:{p:`4pt 8pt`,gap:`5px`,height:`54px`,borderBottom:`1px solid`,borderBottomColor:`divider`,flex:`0 0 54px`},children:[G(K,{children:[G(Y,{variant:`h6`,component:`h2`,sx:{display:`flex`,alignItems:`center`,gap:`5px`},children:[W(K,{component:Di,sx:{fontSize:`1.2em`}}),`Sandbox`]}),G(Y,{sx:{fontSize:`0.75rem`,color:`grey.500`},children:[`Compare the run results based on the modified SQL code of model`,` `,W(`b`,{children:e?.name})]})]}),W(K,{sx:{flexGrow:1}}),W(o,{defaultPrimaryKeys:t,onPrimaryKeysChange:n}),W(Z,{title:`Run diff to see the changes`,children:W(q,{size:`small`,sx:{mt:`16px`,fontSize:`14px`},onClick:()=>{r(),i()},color:`iochmara`,variant:`contained`,disabled:a,children:a?`Running...`:`Run Diff`})})]})}function Ao({currentModelID:e,height:t=`32px`,flex:n=`0 0 auto`,isDark:r=!1}){let{lineageGraph:i,envInfo:a}=M(),o=`0 16px`,s=Jr(Oo(a?.dbt?.current?.generated_at??``),{addSuffix:!0}),c=`N/A`;if(i?.nodes[e]){let t=i.nodes[e];t.data.data.current?.schema&&(c=t.data.data.current.schema)}return G(J,{direction:`row`,sx:{gap:0,height:t,flex:n,fontSize:`14px`,alignItems:`center`,m:0,bgcolor:Nn(r?be.neutral[700]:be.neutral[100],.5)},children:[W(J,{sx:{width:`50%`},children:G(Y,{sx:{fontWeight:`bold`,margin:o},children:[`ORIGINAL (Schema: `,c,`, Last Updated: `,s,`)`]})}),W(J,{sx:{width:`50%`},children:W(Y,{sx:{fontWeight:`bold`,margin:o},children:`SANDBOX EDITOR`})})]})}function jo({current:e,onChange:t,isDark:n,DiffEditor:r}){return W(r,{original:e?.raw_code??``,modified:e?.raw_code??``,language:`sql`,readOnly:!1,lineNumbers:!0,sideBySide:!0,theme:n?`dark`:`light`,height:`100%`,onModifiedChange:t})}function Mo({isOpen:e,onClose:t,current:n,DiffEditor:r,QueryForm:i,RunResultPane:a,isDark:o=!1,primaryKeys:s=[],onPrimaryKeysChange:c,isPending:l=!1,onRunQuery:u,onRunResultOpen:d,onModifiedCodeChange:f,onShowFeedback:p,tracking:m,logoUrl:h=`/logo/recce-logo-white.png`,brandName:g=`RECCE`}){let[_,v]=H(!1),y=e=>{f?.(e)},b=()=>{v(!0),d?.()},x=()=>{u?.()},S=()=>{t(),v(!1),m?.onPreviewChange?.({action:`close`,node:n?.name})},C=e=>{c?.(e)};return G(En,{open:e,onClose:S,maxWidth:!1,fullWidth:!0,slotProps:{paper:{sx:{width:`100%`,height:`100%`,maxWidth:`100%`,maxHeight:`100%`,m:0}}},children:[G(K,{sx:{height:`40px`,bgcolor:`cyan.600`,px:0,py:2,display:`flex`,alignItems:`center`},children:[G(J,{direction:`row`,alignItems:`center`,sx:{height:`100%`,gap:`10px`},children:[W(K,{component:`img`,sx:{width:`20px`,height:`20px`,ml:`18px`},src:h,alt:`logo`}),W(Y,{variant:`h6`,component:`h1`,sx:{fontFamily:`"Montserrat", sans-serif`,fontSize:`1.125rem`,color:`common.white`},children:g}),W(hr,{label:`Experiment`,size:`small`,variant:`outlined`,sx:{fontSize:`0.875rem`,color:`common.white`,borderColor:`rgba(255,255,255,0.5)`}})]}),W(X,{"aria-label":`close`,onClick:S,sx:{position:`absolute`,right:8,top:4,color:`common.white`},children:W(Rn,{})})]}),W(On,{sx:{p:0},children:G(bt,{sizes:_?[50,50]:[100,0],minSize:0,gutterSize:5,className:_?void 0:`split-gutter-hidden`,style:{flex:`1`,contain:`size`,height:`100%`},children:[G(J,{sx:{height:`100%`,m:0,p:0},children:[W(ko,{current:n,primaryKeys:s,onPrimaryKeysChange:C,onRunResultOpen:b,runQuery:x,isPending:l,QueryForm:i}),W(Ao,{height:`32px`,flex:`0 0 auto`,currentModelID:n?.id??``,isDark:o}),W(jo,{current:n,onChange:y,isDark:o,DiffEditor:r})]}),_?W(a,{onClose:()=>v(!1),disableAddToChecklist:!0}):W(K,{})]})}),W(K,{sx:{position:`fixed`,bottom:16,right:16,opacity:.5},children:W(Z,{title:`Give us feedback`,children:W(X,{"aria-label":`feedback`,size:`medium`,onClick:()=>{p?.()},children:W(Vr,{})})})})]})}function No({isOpen:e,onClose:t,current:n}){let[r,i]=H(n?.raw_code??``),[o,s]=H(e),{showRunId:c,clearRunResult:l}=de(),{primaryKeys:u,setPrimaryKeys:d}=Ie(),{data:p,isLoading:m}=F(),{apiClient:g}=Oe(),_=Et();e!==o&&(s(e),e&&i(n?.raw_code??``));let{mutate:v,isPending:y}=fn({mutationFn:async()=>{let e=r,{run_id:t}=await a({current_model:n?.name??``,primary_keys:u,sql_template:e},{nowait:!0},g);return c(t),await h(t,void 0,g)},onSuccess(e){e.error?rn({action:`run`,node:n?.name,status:`failure`}):(rn({action:`run`,node:n?.name,status:`success`}),setTimeout(()=>{b()},1e3),!m&&p?.single_env_onboarding&&setTimeout(()=>{S()},2e3))}}),{feedbackToast:b,closeToast:x}=Je({feedbackId:f.previewChangeFeedbackID,description:`Enjoy preview change?`,onFeedbackSubmit:e=>{switch(e){case`like`:an({feedback:`like`,node:n?.name});break;case`dislike`:an({feedback:`dislike`,node:n?.name});break;case`link`:an({feedback:`form`,node:n?.name});break;default:console.log(`Not support feedback type`)}},externalLink:`https://docs.google.com/forms/d/e/1FAIpQLSd7Lei7Ijwo7MinWaI0K6rzZi_21gV1BKetmiNEX254kDziDA/viewform?usp=header`,externalLinkText:`Give us feedback`}),{guideToast:S,closeGuideToast:C}=_t({guideId:f.prepareEnvGuideID,description:`Want to compare data changes with production data?`,externalLink:`https://docs.reccehq.com/get-started/#prepare-dbt-artifacts`,externalLinkText:`Learn how.`,onExternalLinkClick:()=>{sn({action:`external_link`,from:`preview_changes`,node:n?.name})}});return W(Mo,{isOpen:e,onClose:()=>{t(),l(),x(),C()},current:n,DiffEditor:Ge,QueryForm:Ca,RunResultPane:L,isDark:_,primaryKeys:u??[],onPrimaryKeysChange:d,isPending:y,onRunQuery:v,onModifiedCodeChange:i,onShowFeedback:()=>b(!0),tracking:{onPreviewChange:rn}})}const Po=({node:e})=>W(ho,{data:{resourceType:e.data.resourceType}});function Fo({onClose:e}){return W(Me,{onClose:e,align:`flex-start`,children:G(Y,{variant:`body2`,children:[`Enable the Recce Checklist and start adding checks for better data validation and review.`,W(`br`,{}),W(rt,{})]})})}function Io({node:e,onCloseNode:t}){let n=ri(),{runAction:r}=de(),{isActionAvailable:i,envInfo:a}=M(),{singleEnv:o,featureToggles:s}=I(),{setSqlQuery:c,setPrimaryKeys:l}=Ie(),{primaryKey:u}=ut(e.data.name),{apiClient:d}=Oe(),{basePath:f}=ue(),p=V(()=>({query:z(`query`).icon,row_count:z(`row_count`).icon,row_count_diff:z(`row_count_diff`).icon,profile:z(`profile`).icon,profile_diff:z(`profile_diff`).icon,query_diff:z(`query_diff`).icon,value_diff:z(`value_diff`).icon,top_k_diff:z(`top_k_diff`).icon,histogram_diff:z(`histogram_diff`).icon,schema_diff:z(`schema_diff`).icon,sandbox:z(`sandbox`).icon}),[]),m=Ft(Object.keys(e.data.data.base?.columns??{}),Object.keys(e.data.data.current?.columns??{})),h=V(()=>m.length?`select \n ${m.join(`
6
- `)}\nfrom {{ ref("${e.data.name}") }}`:`select * from {{ ref("${e.data.name}") }}`,[m,e.data.name]),g=V(()=>({onQueryClick:()=>{a?.adapterType===`dbt`?c(h):a?.adapterType===`sqlmesh`&&c(`select * from ${e.data.name}`),n.push(`${f}/query`)},onRowCountClick:()=>{Yt({action:Ut.ROW_COUNT,source:Gt.SCHEMA_ROW_COUNT_BUTTON,node_count:1}),r(`row_count`,{node_names:[e.data.name]},{showForm:!1,showLast:!1})},onRowCountDiffClick:()=>{Yt({action:Ut.ROW_COUNT_DIFF,source:Gt.SCHEMA_ROW_COUNT_BUTTON,node_count:1}),r(`row_count_diff`,{node_names:[e.data.name]},{showForm:!1,showLast:!1})},onProfileClick:()=>{Yt({action:Ut.PROFILE,source:Gt.NODE_SIDEBAR_SINGLE_ENV,node_count:1}),r(`profile`,{model:e.data.name},{showForm:!0,showLast:!1})},onProfileDiffClick:()=>{Yt({action:Ut.PROFILE_DIFF,source:Gt.NODE_SIDEBAR_MULTI_ENV,node_count:1}),r(`profile_diff`,{model:e.data.name},{showForm:!0,showLast:!1})},onQueryDiffClick:()=>{a?.adapterType===`dbt`?c(h):a?.adapterType===`sqlmesh`&&c(`select * from ${e.data.name}`),i(`query_diff_with_primary_key`)&&l(u===void 0?void 0:[u]),n.push(`${f}/query`)},onValueDiffClick:()=>{Yt({action:Ut.VALUE_DIFF,source:Gt.NODE_SIDEBAR_MULTI_ENV,node_count:1}),r(`value_diff`,{model:e.data.name},{showForm:!0,showLast:!1})},onTopKDiffClick:()=>{Yt({action:Ut.TOP_K_DIFF,source:Gt.NODE_SIDEBAR_MULTI_ENV,node_count:1}),r(`top_k_diff`,{model:e.data.name,column_name:``,k:50},{showForm:!0})},onHistogramDiffClick:()=>{Yt({action:Ut.HISTOGRAM_DIFF,source:Gt.NODE_SIDEBAR_MULTI_ENV,node_count:1}),r(`histogram_diff`,{model:e.data.name,column_name:``,column_type:``},{showForm:!0})},onAddSchemaDiffClick:async()=>{let t=await _({node_id:e.id},d);n.push(`${f}/checks/?id=${t.check_id}`)},onSandboxClick:()=>{i(`query_diff_with_primary_key`)&&l(u===void 0?void 0:[u]),rn({action:`explore`,node:e.data.name})}}),[e,h,a,c,r,i,l,u,d,n.push,f]);return W(Do,{node:e,onCloseNode:t,isSingleEnv:o??!1,featureToggles:s,SchemaView:so,SingleEnvSchemaView:co,NodeSqlView:uo,ResourceTypeTag:Po,RowCountDiffTag:_o,RowCountTag:vo,NotificationComponent:Fo,ConnectionPopoverWrapper:Ps,SandboxDialog:No,runTypeIcons:p,actionCallbacks:g,isActionAvailable:i})}function Lo(e,t){let n={...e};for(let[e,r]of Object.entries(t.current.nodes)){if(!r.change_status)continue;let t=null;if(r.columns){let e={},n=!1;for(let t of Object.values(r.columns))t.change_status&&(e[t.name]=t.change_status,n=!0);n&&(t=e)}n[e]={change_status:r.change_status,change:r.change_category?{category:r.change_category,columns:t}:null}}return n}function Ro({featureToggles:e,settingsUrl:t}){return e.mode===`metadata only`?W(K,{sx:{display:`flex`,alignItems:`center`,width:`100%`,px:1,py:.25,bgcolor:`cyan.50`},children:G(J,{direction:`row`,alignItems:`center`,sx:{flex:1,fontSize:`0.875rem`,color:`cyan.600`},spacing:1,children:[W(K,{component:rr}),W(Y,{sx:{fontSize:`inherit`,color:`inherit`},children:`Query functions disabled without a data warehouse connection.`}),W(q,{sx:{bgcolor:`iochmara.400`},size:`small`,variant:`contained`,onClick:()=>{window.open(t,`_blank`)},children:`Connect to Data Warehouse`})]})}):null}function zo(e){let{featureToggles:t}=I(),{data:n}=j();return W(Ro,{featureToggles:e.featureToggles??t,settingsUrl:e.settingsUrl??Rt(n,Ht)})}function Bo({docsUrl:e=`https://docs.reccehq.com/get-started/#prepare-dbt-artifacts`,onStartClick:t}={}){return W(J,{sx:{flex:1,height:`100%`,minHeight:0,m:1,p:2,bgcolor:`iochmara.50`,borderRadius:2,boxShadow:2,justifyContent:`center`},children:G(J,{sx:{width:`80%`,overflowY:`auto`,gap:3,px:4,pb:4},alignSelf:`center`,children:[G(J,{alignItems:`center`,spacing:2,children:[W(K,{sx:{p:1,bgcolor:`background.paper`,borderRadius:`50%`,display:`flex`,alignItems:`center`,justifyContent:`center`,boxShadow:2},children:W(K,{component:bi,sx:{fontSize:28,color:`iochmara.500`}})}),W(Y,{variant:`h5`,sx:{mt:2},children:`Wait, there's more!`}),G(Y,{sx:{textAlign:`center`},children:[`Recce is currently running in`,` `,W(Y,{component:`span`,sx:{fontWeight:`bold`},children:`limited functionality mode`}),` `,`so you can run queries but`,` `,W(Y,{component:`span`,sx:{fontWeight:`bold`},children:`can't diff the results yet!`})]})]}),G(J,{spacing:1,children:[W(Y,{children:`To unlock the full power of Recce, set up a base environment of dbt artifacts for comparison.`}),W(Y,{children:`Once configured, you'll be able to:`}),G(Qr,{sx:{listStyleType:`disc`,pl:2},children:[W($r,{sx:{display:`list-item`,p:0},children:W(Y,{children:`Run statistical data diffs`})}),W($r,{sx:{display:`list-item`,p:0},children:W(Y,{children:`Run query diffs`})}),W($r,{sx:{display:`list-item`,p:0},children:W(Y,{children:`Save checks to your Recce Checklist`})}),W($r,{sx:{display:`list-item`,p:0},children:W(Y,{children:`...and more!`})})]}),W(Y,{children:`Take the next step toward better data impact assessment.`})]}),W(J,{sx:{width:`100%`,mt:3},children:W(q,{color:`iochmara`,variant:`contained`,size:`large`,onClick:()=>{t?t():window.open(e,`_blank`)},children:`Start Now`})})]})})}function Vo({docsUrl:e=`https://docs.reccehq.com/configure-diff/`}={}){return G(J,{direction:`row`,spacing:`10px`,alignItems:`flex-start`,children:[W(K,{component:vi,sx:{color:`iochmara.main`,fontSize:20}}),G(J,{spacing:`5px`,children:[G(Y,{sx:{fontWeight:700},children:[`Single Environment Mode`,` `,W(Y,{component:`span`,sx:{color:`error.main`,fontWeight:600},children:`Limited Functionality`})]}),W(Y,{sx:{fontSize:`0.875rem`},children:`Single Environment Mode allows you to explore your dbt project but won't show data comparisons between environments.`}),W(Y,{sx:{fontSize:`0.875rem`},children:`To set up full environment comparison:`}),G(Qr,{sx:{pl:2},children:[W($r,{sx:{p:0,display:`list-item`},children:W(Y,{sx:{fontSize:`0.875rem`},children:"Run `recce debug` for setup assistance"})}),W($r,{sx:{p:0,display:`list-item`},children:G(Y,{sx:{fontSize:`0.875rem`},children:[`Visit`,` `,W(An,{sx:{color:`primary.main`,fontWeight:500},target:`_blank`,href:e,children:`docs`}),` `,`for configuration details`]})})]})]})]})}function Ho(){return W(K,{sx:{width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:W(Hn,{size:48})})}function Uo({error:e,onRetry:t}){return W(K,{sx:{height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:G(J,{alignItems:`center`,spacing:1,children:[W(K,{children:`Failed to load lineage data. This could be because the server has been terminated or there is a network error.`}),G(K,{children:[`[Reason: `,e,`]`]}),W(q,{color:`iochmara`,variant:`contained`,onClick:()=>{t&&t()},children:`Retry`})]})})}function Wo({viewOptions:e,onViewOptionsChanged:t}){return W(K,{sx:{height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:G(J,{alignItems:`center`,spacing:1,children:[W(U,{children:`No change detected`}),W(q,{color:`iochmara`,variant:`contained`,onClick:async()=>{await t({...e,view_mode:`all`})},children:`Show all nodes`})]})})}function Go(){let{isHistoryOpen:e,showHistory:t}=de();if(!e)return G(K,{children:[W(K,{sx:{fontSize:`8pt`},children:`History`}),W(q,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:W(Ur,{}),onClick:()=>{Zt({name:e?`hide`:`show`}),t()},children:`Show`})]})}const Ko=e=>({fontSize:`8pt`,bgcolor:e?`grey.700`:`grey.100`,px:.5,borderRadius:1}),qo=()=>{let e=Ko(Et());return G(J,{alignItems:`flex-start`,spacing:0,children:[W(Y,{fontSize:`10pt`,color:`text.secondary`,pb:1,children:`Select nodes by dbt node selector syntax`}),G(Y,{fontSize:`8pt`,children:[W(K,{component:`code`,sx:e,children:`model_name`}),` `,`Select a node`]}),G(Y,{fontSize:`8pt`,children:[W(K,{component:`code`,sx:e,children:`model_name+`}),` `,`Select downstream nodes`]}),G(Y,{fontSize:`8pt`,children:[W(K,{component:`code`,sx:e,children:`+model_name`}),` `,`Select upstream nodes`]}),G(Y,{fontSize:`8pt`,children:[W(K,{component:`code`,sx:e,children:`model*`}),` `,`Select by wildcard`]})]})},Jo=({isDisabled:e,viewOptions:t,onViewOptionsChanged:n})=>{let[r,i]=H(null),a=!!r,o=t.view_mode??`changed_models`,s=o===`changed_models`?`Changed Models`:`All`,c=e=>{i(e.currentTarget)},l=()=>{i(null)},u=e=>{n({...t,view_mode:e}),l()},d=tt(`model`).icon;return G(U,{children:[W(q,{size:`xsmall`,variant:`outlined`,color:`neutral`,onClick:c,disabled:e,startIcon:d&&W(d,{}),endIcon:W(Zn,{}),sx:{minWidth:100,textTransform:`none`,fontSize:`0.75rem`},children:s}),G(Rr,{anchorEl:r,open:a,onClose:l,children:[W(Gr,{sx:{lineHeight:`32px`,bgcolor:`transparent`},children:`mode`}),G(ki,{value:o,children:[W(Q,{onClick:()=>u(`changed_models`),children:W(Pr,{value:`changed_models`,control:W(Oi,{size:`small`,sx:{py:0}}),label:`Changed Models`,sx:{m:0}})}),W(Q,{onClick:()=>u(`all`),children:W(Pr,{value:`all`,control:W(Oi,{size:`small`,sx:{py:0}}),label:`All`,sx:{m:0}})})]})]})]})},Yo=({isDisabled:e,viewOptions:t,onViewOptionsChanged:n,lineageGraph:r})=>{let[i,a]=H(null),o=!!i,s=new Set,c=Object.values(r?.nodes??{});for(let e of c)e.data.packageName&&s.add(e.data.packageName);let l=r?.manifestMetadata.current?.project_name,u=t.packages?new Set(t.packages):l?new Set([l]):s,d=u.size===s.size,f=u.size===0,p=u.size===1?Array.from(u)[0]:d?`All Packages`:f?`No Package`:`${u.size} Packages`,m=e=>{a(e.currentTarget)},h=()=>{a(null)},g=()=>{n(d?{...t,packages:[]}:{...t,packages:Array.from(s)})},_=e=>{let r=new Set(u);r.has(e)?r.delete(e):r.add(e),n({...t,packages:Array.from(r)})};return G(U,{children:[W(q,{size:`xsmall`,variant:`outlined`,color:`neutral`,onClick:m,disabled:e,startIcon:W(mi,{}),endIcon:W(Zn,{}),sx:{minWidth:100,textTransform:`none`,fontSize:`0.75rem`},children:p}),G(Rr,{anchorEl:i,open:o,onClose:h,children:[W(Gr,{sx:{lineHeight:`32px`,bgcolor:`transparent`},children:`Select Packages`}),G(Q,{onClick:g,children:[W(Nr,{checked:d,indeterminate:!d&&!f,size:`small`,sx:{py:0}}),W(ui,{children:`Select All`})]}),W(Vn,{}),Array.from(s).map(e=>G(Q,{onClick:()=>_(e),children:[W(Nr,{checked:u.has(e),size:`small`,sx:{py:0}}),W(ui,{className:`no-track-pii-safe`,children:e})]},e))]})]})},Xo=({value:e,onChange:t,isDisabled:n,tooltipComponent:r,showTooltip:i=!0})=>{let[a,o]=H(e),s=Tn(null);return Sn(()=>{s.current&&(s.current.value=e)},[e]),W(Z,{title:i?r:``,placement:`bottom-start`,slotProps:{tooltip:{sx:{width:`18.75rem`,p:2,boxShadow:3,border:1,borderRadius:1,color:`text.primary`,bgcolor:`background.paper`}}},children:W(Kr,{inputRef:s,size:`small`,placeholder:`with selectors`,disabled:n,value:a,onChange:e=>{o(e.target.value)},onKeyUp:n=>{n.key===`Enter`?t(a):n.key===`Escape`&&(n.preventDefault(),o(e),s.current&&s.current.blur())},onBlur:()=>{o(e)},sx:{"& .MuiInputBase-root":{width:`18.75rem`,height:24,fontSize:`0.75rem`},"& .MuiInputBase-input":{py:.5,px:1}}})})},Zo=({isDisabled:e,viewOptions:t,onViewOptionsChanged:n,showTooltip:r})=>W(Xo,{isDisabled:e,value:t.select??``,onChange:e=>{n({...t,select:e||void 0})},tooltipComponent:W(qo,{}),showTooltip:r}),Qo=({isDisabled:e,viewOptions:t,onViewOptionsChanged:n})=>W(Xo,{isDisabled:e,value:t.exclude??``,onChange:e=>{n({...t,exclude:e||void 0})}}),$o=({label:e,children:t,style:n})=>G(K,{style:n,sx:{maxWidth:300},children:[W(Y,{fontSize:`8pt`,children:(e??``).trim()||W(U,{children:`\xA0`})}),t]}),es=({children:e})=>W(U,{children:e}),ts=({viewOptions:e,onViewOptionsChanged:t,lineageGraph:n,featureToggles:r,serverFlags:i,focusedNode:a,selectedNodes:o,onDeselect:s,onRunRowCount:c,onRunRowCountDiff:l,onRunValueDiff:u,onAddLineageDiffCheck:d,onAddSchemaDiffCheck:f,runTypeIcons:p,historyToggleSlot:m,SetupConnectionPopoverSlot:h=es})=>{let g=i?.single_env_onboarding,[_,v]=H(null),y=!!_,b=o.length>0,x=b,S=e=>{v(e.currentTarget)},C=()=>{v(null)},w=p.rowCountDiff,T=p.valueDiff,E=p.lineageDiff,D=p.schemaDiff;return W(J,{direction:`row`,alignItems:`center`,borderBottom:1,borderColor:`neutral.light`,sx:{width:`100%`,p:`4pt 8pt`,gap:`0.5rem`},children:G(J,{direction:`row`,alignItems:`center`,sx:{flex:1,gap:`0.5rem`},children:[m,W($o,{label:`Mode`,style:{flexShrink:1},children:W(Jo,{isDisabled:x,viewOptions:e,onViewOptionsChanged:t})}),W($o,{label:`Package`,style:{flexShrink:1},children:W(Yo,{isDisabled:x,viewOptions:e,onViewOptionsChanged:t,lineageGraph:n})}),W($o,{label:`Select`,style:{flexShrink:1},children:W(Zo,{isDisabled:x,viewOptions:e,onViewOptionsChanged:t,showTooltip:g})}),W($o,{label:`Exclude`,style:{flexShrink:1},children:W(Qo,{isDisabled:x,viewOptions:e,onViewOptionsChanged:t})}),W(K,{sx:{flexGrow:1}}),b&&G(U,{children:[W($o,{label:``,style:{flexShrink:0},children:W(Y,{fontSize:`9pt`,color:`text.secondary`,children:o.length>1?`${o.length} nodes selected`:`${o.length} node selected`})}),W($o,{label:``,children:W(q,{variant:`outlined`,color:`neutral`,size:`xsmall`,onClick:()=>{s()},sx:{textTransform:`none`,fontSize:`9pt`},children:`Deselect`})}),g&&W($o,{label:`Explore`,children:G(K,{sx:{display:`inline-flex`},children:[W(q,{size:`xsmall`,color:`neutral`,variant:`outlined`,onClick:S,endIcon:W(Zn,{}),sx:{textTransform:`none`,fontSize:`0.75rem`},children:`Actions`}),W(Rr,{anchorEl:_,open:y,onClose:C,anchorOrigin:{vertical:`bottom`,horizontal:`right`},transformOrigin:{vertical:`top`,horizontal:`right`},children:G(Q,{disabled:r.disableDatabaseQuery,onClick:async()=>{await c?.(),C()},children:[W(li,{children:W(w,{fontSize:`small`})}),W(ui,{children:`Row Count`})]})})]})})]}),!g&&W($o,{label:`Explore`,children:G(K,{sx:{display:`inline-flex`},children:[W(q,{size:`xsmall`,color:`neutral`,variant:`outlined`,disabled:r.disableViewActionDropdown,onClick:S,endIcon:W(Zn,{}),sx:{textTransform:`none`,fontSize:`0.75rem`},children:`Actions`}),G(Rr,{anchorEl:_,open:y,onClose:C,anchorOrigin:{vertical:`bottom`,horizontal:`right`},transformOrigin:{vertical:`top`,horizontal:`right`},children:[W(Gr,{sx:{lineHeight:`32px`,bgcolor:`transparent`},children:`Diff`}),W(h,{display:r.mode===`metadata only`,children:G(Q,{disabled:r.disableDatabaseQuery,onClick:async()=>{await l?.(),C()},children:[W(li,{children:W(w,{fontSize:`small`})}),W(ui,{children:`Row Count Diff`})]})}),W(h,{display:r.mode===`metadata only`,children:G(Q,{disabled:r.disableDatabaseQuery,onClick:async()=>{await u?.(),C()},children:[W(li,{children:W(T,{fontSize:`small`})}),W(ui,{children:`Value Diff`})]})}),W(Vn,{}),W(Gr,{sx:{lineHeight:`32px`,bgcolor:`transparent`},children:`Add to Checklist`}),G(Q,{onClick:()=>{d?.(e.view_mode),C()},children:[W(li,{children:W(E,{fontSize:`small`})}),W(ui,{children:`Lineage Diff`})]}),G(Q,{onClick:()=>{f?.(),C()},children:[W(li,{children:W(D,{fontSize:`small`})}),W(ui,{children:`Schema Diff`})]})]})]})})]})})},ns=({display:e,children:t})=>W(Ps,{display:e,children:t}),rs=()=>{let{deselect:e,focusedNode:t,selectedNodes:n,viewOptions:r,onViewOptionsChanged:i,runRowCount:a,runRowCountDiff:o,runValueDiff:s,addLineageDiffCheck:c,addSchemaDiffCheck:l}=le(),{lineageGraph:u}=M(),{featureToggles:d}=I(),{data:f}=F();return W(ts,{viewOptions:r,onViewOptionsChanged:i,lineageGraph:u,featureToggles:d,serverFlags:f,focusedNode:t,selectedNodes:n,onDeselect:e,onRunRowCount:a,onRunRowCountDiff:o,onRunValueDiff:s,onAddLineageDiffCheck:c,onAddSchemaDiffCheck:l,runTypeIcons:{rowCountDiff:z(`row_count_diff`).icon,valueDiff:z(`value_diff`).icon,lineageDiff:z(`lineage_diff`).icon,schemaDiff:z(`schema_diff`).icon},historyToggleSlot:W(Go,{}),SetupConnectionPopoverSlot:ns})};function is({interactive:e=!1,...t},n){let{isDark:r}=ct(),{apiClient:i}=Oe(),a=mn(),o=Ar(),s=Tn(null),{copyToClipboard:c,ImageDownloadModal:l,ref:u}=Wa(),[f,p,m]=kr(Pa),[h,y,b]=Or([]),{lineageGraph:x,refetchLineageGraph:S,isLoading:T,error:D,refetchRunsAggregated:O}=M(),{featureToggles:k,singleEnv:ee}=I(),{runId:re,showRunId:ie,closeRunResult:ae,runAction:j,isRunResultOpen:oe}=de(),{run:N}=ht(re),[P,le]=H({...t.viewOptions}),ue=qa(),pe=Tn([]).current,[F,_e]=H(void 0),[ve,ye]=H(!1),xe=Tn(!1);xe.current=ve;let Se=fn({mutationFn:e=>te(e,i)}),Ce=Tn({pending:!1}),[we,Te]=H({}),Ee=B(e=>f.filter(ce).find(t=>t.data.name===e),[f]);Cn(n,()=>({copyToClipboard:c}));let De=V(()=>!!(x&&x.modifiedSet.length>0),[x]),ke=P.view_mode??`changed_models`,Ae=V(()=>f.filter(e=>e.type===`lineageGraphNode`).map(e=>e.id),[f]),je=V(()=>x?Ae.map(e=>x.nodes[e]):[],[x,Ae]),[Me,Ne]=H(),L=Me?x?.nodes[Me]:void 0,[R,Pe]=H(),[Fe,Ie]=H(new Set),Le=V(()=>x?Array.from(Fe).map(e=>x.nodes[e]):[],[x,Fe]),Re=Xa(Le.length>0?Le:je,{onActionStarted:()=>{Pe(`action_result`)},onActionNodeUpdated:e=>{p(t=>t.map(t=>t.id===e.id?{...t}:t))},onActionCompleted:()=>{}}),ze=B(()=>{let e=new Map,t=o.getNodes();for(let n of t)!n.parentId&&n.position&&e.set(n.id,{x:n.position.x,y:n.position.y});return e},[o]),z=V(()=>{if(!x)return new Set;let e=new Set;if(F){for(let[t,n]of Object.entries(F.current.nodes))n.impacted!==!1&&e.add(t);for(let t of Object.keys(F.current.columns))e.add(t)}else if(R===`action_result`){let t=Object.keys(Re.actionState.actions);e=new Set(t)}else e=L?fe(ge(x,[L.id]),me(x,[L.id])):De?me(x,x.modifiedSet):new Set(Ae);return new Set(e)},[x,F,R,L,De,Re.actionState.actions,Ae]),Be=to(),Ve=()=>{Be.closeContextMenu()};wn(()=>{(async()=>{let e;if(!x)return;if(P.node_ids)e=P.node_ids;else{let n=x.manifestMetadata.current?.project_name,r={view_mode:P.view_mode??(De?`changed_models`:`all`),packages:n?[n]:void 0,...t.viewOptions};try{e=(await C({select:r.select,exclude:r.exclude,packages:r.packages,view_mode:r.view_mode},i)).nodes}catch{r.view_mode=`all`,e=(await C({select:r.select,exclude:r.exclude,packages:r.packages,view_mode:r.view_mode},i)).nodes}le(r)}let n;if(P.column_level_lineage)if(Ce.current.pending)n=Ce.current.cllData,Ce.current={pending:!1};else{let e={...P.column_level_lineage,change_analysis:P.column_level_lineage.change_analysis??xe.current};try{n=await Se.mutateAsync(e);let t=n;e.change_analysis&&t&&(Ce.current={pending:!0,cllData:t},a.setQueryData(A.lineage(),e=>e&&{...e,lineage:{...e.lineage,diff:Lo(e.lineage.diff,t)}}))}catch(e){if(e instanceof hn){let t=e;jt.create({title:`Column Level Lineage error`,description:t.response?.data.detail??e.message,type:`error`,closable:!0});return}}}else Ce.current={pending:!1};let[r,o,s]=await no(x,{selectedNodes:e,cll:n});p(r),y(o),Te(s),_e(n),ue(r,P.view_mode??`changed_models`,xe.current,!!P.column_level_lineage?.column,!!Me||!!N)})()},[x]);let He=()=>{Ne(void 0)},Ue=async e=>{let t=f.find(t=>t.id===e);if(t){if(t.parentId){let e=t.parentId;t=f.find(t=>t.id===e)??t}if(t.measured!=null){let{width:e,height:n}=t.measured;if(e&&n){let r=t.position.x+e/2,i=t.position.y+n/2,a=o.getZoom();await o.setCenter(r,i,{zoom:a,duration:200})}}}},We=Ga();Ka(s,async()=>{R!==`selecting`&&(Me?await Ue(Me):await o.fitView({nodes:f,duration:200}))});let Ge=async(e,t=!1)=>{let n=P.column_level_lineage;e||ye(!1);let r=n!==void 0;await Xe({...P,column_level_lineage:e},!1,r),t||pe.push(n),e?.node_id?Ne(e.node_id):e||Ne(void 0)},Ke=async e=>{if(e){if(pe.length===0)return;let e=pe.pop();e?await Ge(e,!0):await Ge(void 0,!0)}else await Ge(void 0,!0)},qe=(e,t)=>{R||Ge({node_id:t.data.node.id,column:t.data.column})},Je=(t,n)=>{if(e&&x){if(se(n)){qe(t,n);return}if(Ve(),!R)Ne(n.id);else if(R===`action_result`){let e=Re.actionState.actions[n.id];e.run?.run_id&&ie(e.run.run_id),Ne(n.id)}else{let e=new Set(Fe);Fe.has(n.id)?e.delete(n.id):e.add(n.id),Ie(e),e.size===0&&Pe(void 0)}}},Ye=async e=>{let{viewOptions:t=P}=e,{fitView:n,preservePositions:r=!1}=e,s;if(!x)return;if(P.select!==t.select||P.exclude!==t.exclude||P.packages!==t.packages||P.view_mode!==t.view_mode){try{let e=await C({select:t.select,exclude:t.exclude,packages:t.packages,view_mode:t.view_mode},i);t={...t,column_level_lineage:void 0},s=e.nodes}catch(e){if(e instanceof hn){let t=e;jt.create({title:`Select node error`,description:t.response?.data.detail??e.message,type:`error`,closable:!0})}return}Ne(void 0)}else s=f.map(e=>e.id);let c;if(t.column_level_lineage){let e={...t.column_level_lineage,change_analysis:t.column_level_lineage.change_analysis??ve};try{c=await Se.mutateAsync(e);let t=c;e.change_analysis&&t&&(Ce.current={pending:!0,cllData:t},a.setQueryData(A.lineage(),e=>e&&{...e,lineage:{...e.lineage,diff:Lo(e.lineage.diff,t)}}))}catch(e){if(e instanceof hn){let t=e;jt.create({title:`Column Level Lineage error`,description:t.response?.data.detail??e.message,type:`error`,closable:!0});return}}}else ye(!1);let l;r&&(l=ze());let[u,m,h]=await no(x,{selectedNodes:s,cll:c,existingPositions:l});p(u),y(m),Te(h),_e(c),ue(u,t.view_mode??`changed_models`,ve,!!t.column_level_lineage?.column,!!Me||!!N),N&&(w(N)||v(N)||E(N)||d(N)||g(N))&&N.params?.model&&!Ee(N.params.model)&&ae(),n&&(await new Promise(e=>setTimeout(e,1)),o.fitView({nodes:u,duration:200}))},Xe=async(e,t=!0,n=!1)=>{le(e),await Ye({viewOptions:e,fitView:t,preservePositions:n})},Ze=Za();Sn(()=>{let t=N?.type;if(e&&oe&&!(!t||[`query_diff`,`query`,`row_count`,`row_count_diff`].includes(t))&&!R){let e;(w(N)||v(N)||E(N)||d(N)||g(N))&&(e=N.params?.model);let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window});if(e){let n=Ee(e);n?ce(n)&&L!==n.data.data&&Je(t,n):Xe({...P,view_mode:`all`})}else He()}},[N,P,oe,R,Ee,L,e]);let Qe=(e,t=1e3)=>{R===`action_result`||x===void 0||(R||(Pe(`selecting`),Re.reset(),P.column_level_lineage&&Xe({...P,column_level_lineage:void 0})),Ie(fe(Fe,ge(x,[e],t))))},et=(e,t=1e3)=>{R===`action_result`||x===void 0||(R||(Pe(`selecting`),Re.reset(),P.column_level_lineage&&Xe({...P,column_level_lineage:void 0})),Ie(fe(Fe,me(x,[e],t))))},tt=(t,n)=>{if(!e||R===`action_result`)return;t.preventDefault();let r=u.current,i=r.getBoundingClientRect(),a=t.clientX-i.left,o=t.clientY-i.top+r.offsetTop;Be.showContextMenu(a,o,n)},nt=e=>{if(!R){if(!x)return;Ie(new Set([e])),Pe(`selecting`),Ne(void 0),Re.reset()}else if(R===`selecting`){let t=new Set(Fe);Fe.has(e)?t.delete(e):t.add(e),Ie(t),t.size===0&&Pe(void 0)}},rt=()=>{Pe(void 0),Ie(new Set),Ne(void 0),ae(),O?.()},it={interactive:e,nodes:f,focusedNode:L,selectedNodes:Le,viewOptions:P,showContextMenu:tt,onViewOptionsChanged:Xe,selectMode:R,selectNode:nt,selectParentNodes:Qe,selectChildNodes:et,deselect:rt,isNodeHighlighted:e=>z.has(e),isNodeSelected:e=>Fe.has(e),isEdgeHighlighted:(e,t)=>F?e in F.current.parent_map?t in F.current.parent_map[e]:!1:z.has(e)&&z.has(t),isNodeShowingChangeAnalysis:e=>{if(!x||!ve)return!1;let t=e in x.nodes?x.nodes[e]:void 0,n=P.column_level_lineage;return n?.node_id&&!n.column?n.node_id===e&&!!t?.data.changeStatus:!!t?.data.changeStatus},changeAnalysisMode:ve,setChangeAnalysisMode:ye,getNodeAction:e=>Re.actionState.actions[e],getNodeColumnSet:e=>e in we?new Set(we[e]):new Set,runRowCount:async()=>{R===`selecting`?(await Re.runRowCount(),tn({type:`row_count`,selected:`multi`})):L?(j(`row_count`,{node_names:[L.data.name]},{showForm:!1,showLast:!1}),tn({type:`row_count`,selected:`single`})):(j(`row_count`,{select:P.select,exclude:P.exclude,packages:P.packages,view_mode:P.view_mode}),tn({type:`row_count`,selected:`none`}))},runRowCountDiff:async()=>{R===`selecting`?(await Re.runRowCountDiff(),tn({type:`row_count_diff`,selected:`multi`})):L?(j(`row_count_diff`,{node_names:[L.data.name]},{showForm:!1,showLast:!1}),tn({type:`row_count_diff`,selected:`single`})):(j(`row_count_diff`,{select:P.select,exclude:P.exclude,packages:P.packages,view_mode:P.view_mode}),tn({type:`row_count_diff`,selected:`none`}))},runValueDiff:async()=>{if(L)j(`value_diff`,{model:L.data.name},{showForm:!0,showLast:!1}),tn({type:`value_diff`,selected:`single`});else{let e=R===`selecting`?Le.length:Ae.length;await Ze.confirm(e)&&(await Re.runValueDiff(),tn({type:`value_diff`,selected:R===`selecting`?`multi`:`none`}))}},addLineageDiffCheck:async()=>{let e=await ne(P,i),t;t=R===`selecting`?`multi`:L?`single`:`none`,tn({type:`lineage_diff`,selected:t}),e&&(await a.invalidateQueries({queryKey:A.checks()}),We(e))},addSchemaDiffCheck:async()=>{let e;R===`selecting`?Le.length>0&&(e=await Re.addSchemaDiffCheck(),rt(),tn({type:`schema_diff`,selected:`multi`})):L?(e=await _({node_id:L.id},i),tn({type:`schema_diff`,selected:`single`})):(e=await _({select:P.select,exclude:P.exclude,packages:P.packages,view_mode:P.view_mode},i),tn({type:`schema_diff`,selected:`none`})),e&&(await a.invalidateQueries({queryKey:A.checks()}),We(e))},cancel:Re.cancel,actionState:Re.actionState,centerNode:Ue,cll:F,showColumnLevelLineage:Ge,resetColumnLevelLineage:Ke};return T?W(Ho,{}):D?W(Uo,{error:D,onRetry:S}):!x||f==Pa?W(U,{}):ke===`changed_models`&&!x.modifiedSet.length?W(Wo,{viewOptions:P,onViewOptionsChanged:Xe}):G(he.Provider,{value:it,children:[G(at,{sizes:L?[70,30]:[100,0],minSize:0,gutterSize:5,className:L?void 0:`split-gutter-hidden`,style:{height:`100%`,width:`100%`},children:[G(J,{ref:s,divider:W(Vn,{sx:{borderColor:`grey.200`}}),spacing:0,sx:{contain:`strict`,position:`relative`},children:[e&&G(U,{children:[W(rs,{}),k.mode===`metadata only`&&W(zo,{})]}),G(wr,{proOptions:{hideAttribution:!0},nodeTypes:Ma,edgeTypes:Na,nodes:f,edges:h,onNodesChange:m,onEdgesChange:b,onNodeClick:Je,onNodeContextMenu:tt,onClick:Ve,onInit:async()=>{if(De)await o.fitView();else{let e=Dr(f,{});await o.setCenter(e.x+e.width/2,e.y+e.height/2,{zoom:1})}},maxZoom:1,minZoom:.1,nodesDraggable:e,ref:u,colorMode:r?`dark`:`light`,children:[W(gr,{id:`lineage-bg`,variant:_r.Dots,color:r?be.neutral[700]:be.neutral[300],gap:20,size:2}),W(br,{showInteractive:!1,position:`top-right`,className:$e,style:{backgroundColor:r?be.neutral[700]:void 0,borderColor:r?be.neutral[600]:void 0},children:W(yr,{title:`copy image`,onClick:async()=>{await c(),qt({type:ke,from:`lineage_view`})},style:{backgroundColor:r?be.neutral[700]:void 0,color:r?be.neutral[200]:void 0},children:W(K,{component:fi})})}),W(l,{}),W(Sr,{position:`bottom-left`,children:G(J,{spacing:`5px`,children:[De&&W(gt,{variant:`changeStatus`}),P.column_level_lineage&&W(gt,{variant:`transformation`})]})}),W(Sr,{position:`top-center`,children:W(Qa,{notification:ee?W(Vo,{}):null,type:`info`})}),W(Sr,{position:`top-left`,children:G(J,{spacing:`5px`,children:[W(na,{action:Se}),f.length==0&&W(Y,{sx:{fontSize:`1.25rem`,color:`grey`,opacity:.5},children:`No nodes`})]})}),W(xr,{nodeColor:Fa,nodeStrokeWidth:3,zoomable:!0,pannable:!0,bgColor:r?be.neutral[800]:void 0,maskColor:r?`${be.neutral[900]}99`:`${be.neutral[100]}99`}),R===`action_result`&&W(Sr,{position:`bottom-center`,className:`ignore-screenshot`,children:W(ta,{onClose:()=>{rt()}})})]}),W(eo,{...Be.props})]}),L?W(K,{sx:{borderLeft:`solid 1px`,borderColor:`divider`,height:`100%`},children:W(Io,{node:L,onCloseNode:He})}):W(K,{})]}),Ze.AlertDialog]})}const as=yn(is);function os(){return W(Tr,{children:W(as,{interactive:!0})})}function ss(){let{apiClient:e}=Oe(),{data:t,isLoading:n,error:r}=pn({queryKey:A.user(),queryFn:()=>Bt(e),retry:!1}),{data:i}=pn({queryKey:[`github-avatar`,t?.id],queryFn:()=>t?zt(t.id):Promise.resolve(null),enabled:!!t?.id&&t.login_type===`github`,retry:!1,staleTime:300*1e3}),[a,o]=H(null),s=!!a,c=e=>{o(e.currentTarget)},l=()=>{o(null)},u=!n&&!r&&t;return G(U,{children:[n?W(K,{onClick:c,sx:{width:32,height:32,borderRadius:`50%`,bgcolor:`background.paper`,color:`primary.main`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`},children:W(Hn,{size:16})}):W(ei,{onClick:c,src:i||void 0,sx:{width:28,height:28,cursor:`pointer`,outline:`1px solid white`,fontSize:`0.875rem`},children:(e=>e?e.charAt(0).toUpperCase():`U`)(t?.login)}),G(Rr,{anchorEl:a,open:s,onClose:l,slotProps:{paper:{sx:{bgcolor:`background.paper`,borderColor:`divider`,boxShadow:3,minWidth:180}}},children:[G(K,{sx:{px:2,py:1.5},children:[n&&G(K,{sx:{display:`flex`,alignItems:`center`,gap:1},children:[W(Y,{variant:`body2`,color:`text.primary`,children:`Loading...`}),W(Hn,{size:16})]}),r&&W(Y,{variant:`caption`,color:`error`,children:`Failed to load user information`}),u&&G(U,{children:[W(Y,{variant:`body2`,fontWeight:`600`,color:`text.primary`,children:t.login}),t.email&&W(Y,{variant:`caption`,color:`text.secondary`,children:t.email})]})]}),W(Vn,{}),G(Q,{onClick:()=>{window.open(Vt,`_blank`),l()},children:[W(li,{children:W(Un,{})}),W(ui,{children:`Recce Cloud`})]}),G(Q,{onClick:()=>{window.open(Ht,`_blank`),l()},children:[W(li,{children:W(Yn,{})}),W(ui,{children:`Get live support`})]})]})]})}const cs=()=>{let{setTheme:e,resolvedTheme:t}=Fn(),[n,r]=H(!1);Sn(()=>{r(!0)},[]);let i=()=>{e(t===`dark`?`light`:`dark`)};if(!n)return W(X,{size:`small`,sx:{color:`rgba(255, 255, 255, 0.8)`,"&:hover":{bgcolor:`rgba(255, 255, 255, 0.1)`}},disabled:!0,children:W(dr,{style:{width:18,height:18}})});let a=t===`dark`;return W(Z,{title:a?`Switch to light mode`:`Switch to dark mode`,children:W(X,{size:`small`,onClick:i,sx:{color:`rgba(255, 255, 255, 0.8)`,"&:hover":{bgcolor:`rgba(255, 255, 255, 0.1)`}},"aria-label":a?`Switch to light mode`:`Switch to dark mode`,children:W(a?dr:ar,{style:{width:18,height:18}})})})};function ls(e,t,n,r){let i=e?.git,a=e?.pullRequest,o=e?.dbt?.base,s=e?.dbt?.current,c={review_mode:t||!1,adapter_type:e?.adapterType||null,has_git_info:!zr(i),has_pr_info:!zr(a)};return e?.adapterType===`dbt`&&(c.base={schema_count:n.size,dbt_version:o?.dbt_version||null,timestamp:o?.generated_at||null},c.current={schema_count:r.size,dbt_version:s?.dbt_version||null,timestamp:s?.generated_at||null},c.schemas_match=n.size===r.size&&Array.from(n).every(e=>r.has(e))),e?.adapterType===`sqlmesh`&&(c.base={has_env:!!e.sqlmesh?.base_env},c.current={has_env:!!e.sqlmesh?.current_env}),c}function us(e){return Object.values(e).every(e=>e===null)?[W(K,{sx:{ml:`10px`},children:`No information`},`no info`)]:Object.entries(e).filter(([e,t])=>e!==`url`&&t!=null).map(([e,t])=>G(`li`,{style:{marginLeft:`10px`},children:[e,`: `,t]},e))}function ds(){let{envInfo:e,reviewMode:t,lineageGraph:n}=M(),[r,i]=H(!1),a=e?.git,o=e?.pullRequest,s={...a,...o},c=e?.dbt?.base,l=e?.dbt?.current,u=c?.generated_at?kt(c.generated_at):``,d=l?.generated_at?kt(l.generated_at):``,f=``,p=``;c&&(f=c.generated_at?Mt(c.generated_at):``),l&&(p=l.generated_at?Mt(l.generated_at):``);let[m,h]=Lt(n),g=Tn(!1);Sn(()=>{!g.current&&e&&(g.current=!0,Jt(ls(e,t,m,h)))},[e,t,m,h]);let _=()=>i(!0),v=()=>i(!1);return G(U,{children:[W(Z,{title:`Environment Info`,placement:`bottom-end`,children:G(K,{sx:{display:`flex`,alignItems:`center`,cursor:`pointer`,"&:hover":{color:`text.primary`}},onClick:_,children:[G(J,{direction:`column`,sx:{display:{xs:`none`,lg:`flex`},fontSize:`0.875rem`},children:[G(K,{sx:{display:`flex`,alignItems:`baseline`,gap:.5},children:[W(Y,{component:`span`,noWrap:!0,sx:{color:`warning.main`,maxWidth:128},className:`no-track-pii-safe`,children:Array.from(m).join(`, `)}),G(Y,{component:`span`,noWrap:!0,children:[`(`,f,`)`]})]}),G(K,{sx:{display:`flex`,alignItems:`baseline`,gap:.5},children:[W(Y,{component:`span`,noWrap:!0,sx:{color:`primary.main`,maxWidth:128},className:`no-track-pii-safe`,children:Array.from(h).join(`, `)}),G(Y,{component:`span`,noWrap:!0,children:[`(`,p,`)`]})]})]}),W(X,{size:`small`,"aria-label":`Environment Info`,children:W(K,{component:rr,sx:{fontSize:16,verticalAlign:`middle`}})})]})}),G(En,{open:r,onClose:v,maxWidth:`sm`,fullWidth:!0,children:[G(kn,{sx:{display:`flex`,alignItems:`center`},children:[`Environment Information`,W(K,{sx:{flexGrow:1}}),W(X,{size:`small`,onClick:v,children:W(Rn,{})})]}),W(On,{children:G(J,{direction:`column`,spacing:1,children:[t?G(J,{direction:`column`,spacing:.5,children:[W(Y,{variant:`h6`,sx:{fontSize:`1rem`},children:`Review Information`}),G(`ul`,{style:{margin:0,paddingLeft:`20px`},children:[s.url&&G(`li`,{style:{marginLeft:`10px`},children:[`url:`,` `,G(An,{href:s.url,target:`_blank`,sx:{color:`primary.main`},children:[s.url,` `,W(jn,{})]})]}),!zr(s)&&us(s)]})]}):G(J,{direction:`column`,spacing:.5,children:[W(Y,{variant:`h6`,sx:{fontSize:`1rem`},children:`Dev Information`}),W(`ul`,{style:{margin:0,paddingLeft:`20px`},children:a&&us(a)})]}),W(Vn,{}),e?.adapterType===`dbt`&&G(J,{direction:`column`,spacing:.5,children:[W(Y,{variant:`h6`,sx:{fontSize:`1rem`},children:`DBT`}),W(Mi,{sx:{border:1,borderColor:`divider`,maxHeight:`30rem`},children:G(Ai,{size:`small`,stickyHeader:!0,children:[W(Ni,{children:G(Pi,{children:[W($,{}),W($,{children:`base`}),W($,{children:`current`})]})}),G(ji,{children:[G(Pi,{children:[W($,{children:`schema`}),W($,{className:`no-track-pii-safe`,children:Array.from(m).map(e=>W(Z,{title:e,placement:`bottom`,children:W(`div`,{className:`max-w-72 truncate`,children:e})},e))}),W($,{className:`no-track-pii-safe`,children:Array.from(h).map(e=>W(Z,{title:e,placement:`bottom`,children:W(`div`,{className:`max-w-72 truncate`,children:e})},e))})]}),G(Pi,{children:[W($,{children:`version`}),W($,{children:c?.dbt_version}),W($,{children:l?.dbt_version})]}),G(Pi,{children:[W($,{children:`timestamp`}),W($,{children:u}),W($,{children:d})]})]})]})})]}),e?.adapterType===`sqlmesh`&&G(J,{direction:`column`,spacing:.5,children:[W(Y,{variant:`h6`,sx:{fontSize:`1rem`},children:`SQLMesh`}),W(Mi,{sx:{border:1,borderColor:`divider`,maxHeight:`30rem`},children:G(Ai,{stickyHeader:!0,children:[W(Ni,{children:G(Pi,{children:[W($,{}),W($,{children:`base`}),W($,{children:`current`})]})}),W(ji,{children:G(Pi,{children:[W($,{children:`Environment`}),W($,{className:`no-track-pii-safe`,children:e.sqlmesh?.base_env}),W($,{className:`no-track-pii-safe`,children:e.sqlmesh?.current_env})]})})]})})]})]})}),W(Dn,{children:W(q,{color:`iochmara`,onClick:v,children:`Close`})})]})]})}const fs=()=>({toastSuccess:e=>{jt.create({description:e,type:`success`,duration:5e3,closable:!0})},toastError:(e,t)=>{let n=e;t!=null&&(n=gn(t)?`${e}. ${String(t.response?.data?.detail)}`:`${e}. ${t}`),jt.create({description:n,type:`error`,duration:5e3,closable:!0})}}),ps=e=>{Sn(()=>{let t=e=>{e.preventDefault()};return e&&window.addEventListener(`beforeunload`,t),()=>{e&&window.removeEventListener(`beforeunload`,t)}},[e])},ms=()=>{let{featureToggles:e}=I(),{fileName:t,cloudMode:n,isDemoSite:r,envInfo:i}=M(),{apiClient:a}=Oe(),[o,c]=H(!1),[l,u]=H(!1),d=!t&&!n&&!r,{data:p}=s(d),h=p!=null&&p.filter(e=>!e.is_preset).length>0;ps(d&&h);let[{newFileName:g,errorMessage:_,modified:v,overwriteWithMethod:y,bypass:b},x]=H({newFileName:t??`recce_state.json`,bypass:!1}),S=Tn(null),{toastSuccess:C,toastError:w}=fs(),T=mn(),E=()=>{x({newFileName:t??`recce_state.json`,modified:!t,bypass:!1}),c(!0)},D=()=>c(!1),O=()=>u(!1),k=async(e,t)=>{if(!g)return;let n=localStorage.getItem(f.bypassSaveOverwrite)===`true`;try{e===`save`?await m({filename:g,overwrite:t??n},a):await ee({filename:g,overwrite:t??n},a),C(e===`save`?`Save file successfully`:`Rename file successfully`),await T.invalidateQueries({queryKey:A.lineage()}),b&&localStorage.setItem(f.bypassSaveOverwrite,`true`)}catch(t){if(gn(t)&&t.response?.status===409){x(t=>({...t,overwriteWithMethod:e})),u(!0);return}w(e===`save`?`Save file failed`:`Rename file failed`,t)}finally{D()}},te=()=>{O(),c(!0),x(e=>({...e,overwriteWithMethod:void 0}))};if(n||r)return W(U,{});let ne=`New Instance`+(h?` (unsaved)`:``),re;if(e.disableSaveToFile&&t){let e=i?.stateMetadata?.generated_at,n=e?Ne(new Date(e)):null;re=n?`${t} (${n})`:null}return G(U,{children:[G(J,{direction:`row`,alignItems:`center`,justifyContent:`center`,children:[W(K,{sx:{fontWeight:600},children:re??t??ne}),!e.disableSaveToFile&&W(Z,{title:t?`Change Filename`:`Save`,enterDelay:1e3,children:W(X,{onClick:E,"aria-label":t?`Change Filename`:`Save`,size:`small`,children:W(K,{component:t?sr:Mn,sx:{fontSize:16,verticalAlign:`middle`}})})})]}),G(En,{open:o,onClose:D,children:[G(kn,{sx:{display:`flex`,alignItems:`center`},children:[t?`Change Filename`:`Save File`,W(K,{sx:{flexGrow:1}}),W(X,{size:`small`,onClick:D,children:W(Rn,{})})]}),W(On,{onKeyDown:e=>{e.stopPropagation()},children:W(Kr,{inputRef:S,value:g,label:`File name`,placeholder:`Enter filename`,error:!!_,helperText:_,fullWidth:!0,size:`small`,sx:{mt:1},onChange:e=>{let n=e.target.value,r;n?n.endsWith(`.json`)?/^[a-zA-Z0-9 _-]+\.json$/.test(n)?t&&n===t&&(r=`Filename is the same as the current one.`):r=`Invalid filename. Only alphanumeric, space, _ and - are allowed.`:r=`Filename must end with .json.`:r=`Filename cannot be empty.`,x(e=>({...e,modified:!0,newFileName:n,errorMessage:r}))},onKeyDown:e=>{if(e.key===`Enter`){if(_)return;k(t?`rename`:`save`)}else e.key===`Escape`&&D()}})}),G(Dn,{sx:{gap:`5px`},children:[W(q,{size:`small`,color:t?`inherit`:`iochmara`,variant:`contained`,onClick:async()=>{await k(`save`)},disabled:!g||!!_||!v,children:t?`Save as New File`:`Confirm`}),t&&W(q,{size:`small`,color:`iochmara`,variant:`contained`,onClick:async()=>{await k(`rename`)},disabled:!g||!!_||!v,children:`Rename`})]})]}),G(En,{open:l,onClose:O,children:[G(kn,{sx:{display:`flex`,alignItems:`center`},children:[`Overwrite File?`,W(K,{sx:{flexGrow:1}}),W(X,{size:`small`,onClick:O,children:W(Rn,{})})]}),G(On,{sx:{borderTop:`solid 1px`,borderBottom:`solid 1px`,borderColor:`divider`},onKeyDown:e=>{e.stopPropagation()},children:[W(Y,{sx:{fontSize:`12pt`},children:y===`save`?`Saving a file with this name will overwrite the existing file. Are you sure you wish to continue?`:`Renaming the file with this name will overwrite the existing file. Are you sure you wish to continue?`}),W(Pr,{control:W(Nr,{size:`small`,checked:b,onChange:e=>{x(t=>({...t,bypass:e.target.checked}))}}),label:W(Y,{sx:{fontWeight:`bold`,pt:`8px`},children:`Don't show this again`})})]}),G(Dn,{sx:{gap:`5px`},children:[W(q,{variant:`outlined`,onClick:te,size:`small`,children:`Back`}),W(q,{size:`small`,color:`iochmara`,variant:`contained`,onClick:()=>{y&&(k(y,!0),O())},children:`Overwrite`})]})]})]})},hs=`recce-python-deprecation-dismissed`;function gs(){let{pythonVersion:e}=I(),[t,n]=H(()=>typeof window<`u`&&sessionStorage.getItem(hs)===`true`);if(!(!t&&typeof e==`string`&&e.startsWith(`3.9`)))return null;let r=()=>{sessionStorage.setItem(hs,`true`),n(!0)};return G(En,{open:!0,onClose:r,children:[G(kn,{sx:{display:`flex`,alignItems:`center`,gap:1},children:[W(ai,{style:{color:`rgb(237 108 2)`,fontSize:`1.5rem`}}),`Python 3.9 Deprecation Notice`]}),W(On,{children:W(Fi,{children:`Python 3.9 support will be removed in a future release of Recce. Please upgrade to Python 3.10 or later to continue receiving updates.`})}),W(Dn,{children:W(q,{onClick:r,variant:`contained`,children:`Got it`})})]})}function _s(){let{featureToggles:e}=I(),{apiClient:t}=Oe(),n=async()=>{try{let e=await k(t),n=JSON.stringify(e,null,2);Mr(new Blob([n],{type:`application/json`}),`recce-state-${qr(new Date,`yyyy-MM-dd-HH-mm-ss`)}.json`)}catch(e){console.error(`Export failed`,e),jt.create({title:`Export failed`,description:String(e),type:`error`,duration:5e3,closable:!0})}};return W(Z,{title:`Export`,children:W(X,{size:`small`,"aria-label":`Export state`,onClick:async()=>{await n(),cn({name:`export`})},disabled:e.disableExportStateFile,children:W(K,{component:nr,sx:{verticalAlign:`middle`,width:`16px`,height:`16px`}})})})}const vs=[`Processing...`,`Still processing, please wait...`,`Almost there, thanks for your patience...`];function ys(){let{successToast:e,failToast:t}=At(),[,n]=Fr(),{authed:r}=I(),{shareUrl:i,isLoading:a,error:o,handleShareClick:s}=xt(),[c,l]=H(!1),[u,d]=H(0),[f,p]=H(a);a!==f&&(p(a),a&&d(0)),Ir(()=>{d(e=>Math.min(e+1,vs.length-1))},a?3e4:null),Sn(()=>{o&&t(`Failed to share state`,o)},[o,t]);let m=async()=>{try{await n(String(i)),e(`Copied the link to clipboard`)}catch(e){t(`Failed to copy the link`,e)}};return r?G(J,{direction:`row`,sx:{flex:1,alignItems:`center`,gap:`5px`},children:[W(q,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:W(si,{}),endIcon:i?W(K,{component:$n,sx:{color:`success.main`}}):void 0,onClick:async()=>{await s(),on({name:`create`})},disabled:a,children:a?`Sharing...`:`Share`}),a&&W(Y,{sx:{fontSize:14,color:`grey.500`},children:vs[u]}),W(J,{direction:`row`,spacing:.5,alignItems:`center`,children:i&&G(U,{children:[W(K,{sx:{overflowX:`auto`,whiteSpace:`nowrap`,maxWidth:`350px`},children:W(Y,{sx:{fontSize:14},children:i})}),W(X,{size:`small`,"aria-label":`Copy the share URL`,onClick:async()=>{await m(),on({name:`copy`})},children:W(tr,{})})]})})]}):G(J,{direction:`row`,sx:{flex:1,alignItems:`center`},children:[W(q,{size:`xsmall`,color:`neutral`,variant:`outlined`,onClick:()=>{l(!0)},startIcon:W(si,{}),children:`Share`}),c&&W(vt,{parentOpen:c,handleParentClose:l,ignoreCookie:!0,variant:`enable-share`})]})}function bs(e){return/^\/checks\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/.test(e)}function xs(){return W(Z,{title:`Syncing`,children:W(K,{sx:{mx:`10px`},children:W(Hn,{size:20})})})}function Ss(){let[e,t]=H(!1),n=mn(),{apiClient:r}=Oe(),i=ri(),a=ni(),{basePath:o}=ue(),[s,c]=H(!1),[l,u]=H(``),{data:d}=j(),f=()=>c(!1),p=B(async e=>{if(c(!1),t(!0),(await O(e,r)).status===`conflict`){c(!0),t(!1);return}for(;await x(r);)await new Promise(e=>setTimeout(e,1e3));jt.create({description:`Sync Completed`,type:`success`,duration:5e3,closable:!0}),t(!1),u(``),await n.invalidateQueries({queryKey:A.lineage()}),await n.invalidateQueries({queryKey:A.checks()}),await n.invalidateQueries({queryKey:A.runs()}),bs(a)&&i.push(`${o}/checks`)},[n,a,r,i.push,o]);return e?W(xs,{}):G(U,{children:[W(Z,{title:`Sync with Cloud`,children:W(X,{size:`small`,"aria-label":`Sync state`,onClick:()=>p(d?.session_id?{method:`merge`}:{}),children:W(K,{component:zn,sx:{fontSize:16,verticalAlign:`middle`}})})}),G(En,{open:s,onClose:f,children:[G(kn,{sx:{display:`flex`,alignItems:`center`,fontWeight:`bold`},children:[`Sync with Cloud`,W(K,{sx:{flexGrow:1}}),W(X,{size:`small`,onClick:f,children:W(Rn,{})})]}),G(On,{children:[W(Y,{children:`New changes have been detected in the cloud. Please choose a method to sync your state`}),W(K,{sx:{mt:`5px`},children:W(ki,{value:l,onChange:e=>{u(e.target.value)},children:G(J,{direction:`column`,children:[W(Pr,{value:`merge`,control:W(Oi,{}),label:G(J,{direction:`row`,alignItems:`center`,children:[`Merge`,W(Z,{title:`This will merge the local and remote states.`,children:W(K,{component:rr,sx:{ml:2,cursor:`pointer`}})})]})}),W(Pr,{value:`overwrite`,control:W(Oi,{}),label:G(J,{direction:`row`,alignItems:`center`,children:[`Overwrite`,W(Z,{title:`This will overwrite the remote state file with the local state.`,children:W(K,{component:rr,sx:{ml:2,cursor:`pointer`}})})]})}),W(Pr,{value:`revert`,control:W(Oi,{}),label:G(J,{direction:`row`,alignItems:`center`,children:[`Revert`,W(Z,{title:`This will discard local changes and revert to the cloud state.`,children:W(K,{component:rr,sx:{ml:2,cursor:`pointer`}})})]})})]})})})]}),G(Dn,{children:[W(q,{onClick:f,sx:{mr:1},children:`Cancel`}),W(q,{color:`iochmara`,variant:`contained`,onClick:()=>p({method:l||void 0}),disabled:!l,children:`Sync`})]})]})]})}const Cs=[{path:`/lineage`,name:`Lineage`},{path:`/query`,name:`Query`},{path:`/checks`,name:`Checklist`}];function ws({queryKey:e,fetchCallback:t,selectCallback:n}){let{data:r,isLoading:i,error:a}=pn({queryKey:e,queryFn:t,select:n});return i||a||r===0?W(U,{}):W(K,{bgcolor:`brand.main`,display:`flex`,justifyContent:`center`,alignItems:`center`,p:1,borderRadius:`100%`,color:`white`,fontWeight:700,fontSize:`0.75rem`,children:W(`span`,{children:r})})}function Ts(){let{apiClient:e}=Oe();return W(ws,{queryKey:A.checks(),fetchCallback:()=>b(e),selectCallback:e=>e.filter(e=>!e.is_checked).length})}const Es=()=>{let e=ni(),{isDemoSite:t,isLoading:n,cloudMode:r}=M(),{featureToggles:i}=I(),{data:a,isLoading:o}=F(),s=Tn(null);return Sn(()=>{s.current&&s.current!==e&&nn({from:s.current,to:e}),s.current=e},[e]),G(K,{sx:{borderBottom:`1px solid lightgray`,px:`12px`},children:[G(K,{sx:{display:`grid`,gridTemplateColumns:`1fr auto 1fr`,width:`100%`,alignItems:`center`},children:[W(Zr,{value:V(()=>e.startsWith(`/checks`)?`/checks`:e.startsWith(`/query`)?`/query`:e.startsWith(`/runs`)?`/runs`:`/lineage`,[e]),sx:{borderBottom:`none`,minHeight:`auto`},children:Cs.map(({path:e,name:t})=>t===`Query`&&a?.single_env_onboarding?null:t===`Checklist`&&Ts?W(Xr,{value:e,disabled:n||o,sx:{p:0},label:W(K,{sx:{display:`flex`,alignItems:`center`,gap:`4px`},children:G(In,{href:e,style:{textDecoration:`none`,color:`inherit`,padding:`0.875rem 1.1875rem`,display:`flex`,gap:3,alignItems:`center`},children:[t,` `,W(Ts,{})]})})},e):W(Xr,{value:e,disabled:n||o,sx:{p:0},label:W(K,{sx:{display:`flex`,alignItems:`center`,gap:`4px`},children:W(In,{href:e,style:{textDecoration:`none`,color:`inherit`,padding:`0.875rem 1.1875rem`},children:t})})},e))}),G(K,{sx:{display:`flex`,alignItems:`center`,gap:`12px`,justifyContent:`center`},children:[!n&&!t&&W(ms,{}),!n&&!t&&!a?.single_env_onboarding&&!i.disableShare&&W(ys,{})]}),!n&&G(K,{sx:{display:`flex`,justifyContent:`right`,alignItems:`center`,mr:`8px`},children:[W(ds,{}),r&&W(Ss,{}),W(_s,{})]})]}),W(gs,{})]})};function Ds(){let{remainingSeconds:e,isEnabled:t}=N();return!t||e===null||e>60?null:G(Ii,{color:`warning`,variant:`standard`,sx:{display:`flex`,alignItems:`center`,gap:1,fontSize:`0.75rem`,mr:2},children:[W(K,{component:Bn,sx:{display:`inline-flex`}}),`Idle timeout: `,It(e,`compact`)]})}const Os=()=>{let{version:e,latestVersion:t}=T(),n=V(()=>RegExp(`^\\d+\\.\\d+\\.\\d+$`),[]);return Sn(()=>{if(n.test(e)&&e!==t){let e=`recce-update-toast-shown`;if(sessionStorage.getItem(e))return;setTimeout(()=>{jt.create({id:`recce-update-available`,title:`Update available`,description:G(`span`,{children:[`A new version of Recce (v`,t,`) is available.`,W(`br`,{}),`Please run`,` `,W(K,{component:`code`,sx:{bgcolor:`grey.200`,px:.5,py:.25,borderRadius:.5,fontFamily:`monospace`,fontSize:`0.875em`},children:`pip install --upgrade recce`}),` `,`to update Recce.`,W(`br`,{}),W(An,{sx:{color:`primary.main`,fontWeight:`bold`,"&:hover":{textDecoration:`underline`}},href:`https://github.com/DataRecce/recce/releases/tag/v${t}`,target:`_blank`,children:`Click here to view the detail of latest release`})]}),duration:60*1e3,closable:!0}),sessionStorage.setItem(e,`true`)},0)}},[e,t,n]),n.test(e)?W(An,{href:`https://github.com/DataRecce/recce/releases/tag/v${e}`,sx:{"&:hover":{textDecoration:`none`},fontSize:`sm`,color:`rgba(255,255,255,0.8)`,textTransform:`uppercase`,borderWidth:1,px:1,borderRadius:.75},target:`_blank`,children:e}):W(Y,{component:`span`,sx:{fontSize:`sm`,color:`rgba(255,255,255,0.8)`,textTransform:`uppercase`,borderWidth:1,px:1,borderRadius:.75},children:e})};function ks({icon:e,href:t,sx:n,...r}){let i=Pn();return W(An,{sx:{height:`20px`,color:`common.white`,...n},href:t,target:`_blank`,...r,children:W(e,{style:{color:i.palette.common.white,width:20,height:20}})})}const As=()=>{let{reviewMode:e,isDemoSite:t,envInfo:n,cloudMode:r}=M(),{featureToggles:i,authed:a}=I(),{url:o,id:s}=n?.pullRequest??{},c=o?o.split(`/`).pop():null,l=r||a?Vt:`https://reccehq.com/`,[u,d]=H(!1);return G(K,{sx:{display:`flex`,gap:`10px`,minHeight:`40px`,alignItems:`center`,bgcolor:be.brand[400]},children:[W(An,{href:l,target:`_blank`,sx:{"&:hover":{textDecoration:`none`}},children:G(K,{sx:{display:`flex`,gap:`10px`,alignItems:`center`},children:[W(K,{component:`img`,sx:{width:20,height:20,ml:`18px`},src:`/logo/recce-logo-white.png`,alt:`recce-logo-white`}),W(Y,{variant:`h4`,sx:{fontFamily:`"Montserrat", sans-serif`,color:`common.white`,fontSize:`1.25rem`},children:`RECCE`})]})}),W(cs,{}),W(Os,{}),(i.mode??e)&&W(Ii,{sx:{fontSize:`0.875rem`,color:`rgba(255,255,255,0.8)`,textTransform:`uppercase`,borderWidth:1,px:1,borderRadius:.75,borderColor:`rgba(255,255,255,0.8)`},children:i.mode??`review mode`}),r&&s&&W(Ii,{sx:{fontSize:`0.875rem`,color:`rgba(255,255,255,0.8)`,textTransform:`uppercase`,borderWidth:1,px:1,borderRadius:.75,borderColor:`rgba(255,255,255,0.8)`},children:G(J,{direction:`row`,spacing:1,alignItems:`center`,children:[W(K,{children:`cloud mode`}),W(K,{sx:{borderLeft:`1px solid rgba(255,255,255,0.8)`,pl:`8px`},children:G(An,{href:o,sx:{"&:hover":{textDecoration:`none`}},target:`_blank`,children:[W(Hr,{style:{color:`rgba(255,255,255,0.8)`,width:12,height:12,marginRight:2,display:`inline`,verticalAlign:`middle`}}),W(Y,{component:`span`,sx:{color:`rgba(255,255,255,0.8)`,display:`inline`},children:`#${String(s)}`})]})})]})}),t&&o&&c&&W(Ii,{sx:{fontSize:`0.875rem`,color:`rgba(255,255,255,0.8)`,textTransform:`uppercase`,borderWidth:1,px:1,borderRadius:.75,borderColor:`rgba(255,255,255,0.8)`},children:G(J,{direction:`row`,spacing:1,alignItems:`center`,children:[W(K,{children:`demo mode`}),W(K,{sx:{borderLeft:`1px solid rgba(255,255,255,0.8)`,pl:`8px`},children:G(An,{href:o,sx:{"&:hover":{textDecoration:`none`}},target:`_blank`,children:[W(Hr,{style:{color:`rgba(255,255,255,0.8)`,width:12,height:12,marginRight:2,display:`inline`,verticalAlign:`middle`}}),W(Y,{component:`span`,sx:{color:`rgba(255,255,255,0.8)`,display:`inline`},children:`#${c}`})]})})]})}),W(K,{sx:{flex:1}}),(t||i.mode===`read only`)&&G(U,{children:[W(ks,{icon:Gn,href:`https://github.com/DataRecce/recce`}),W(ks,{icon:Jn,href:`https://getdbt.slack.com/archives/C05C28V7CPP`}),W(ks,{sx:{mr:2},icon:Kn,href:`https://docs.reccehq.com`})]}),!t&&i.mode!==`read only`&&G(U,{children:[W(Ds,{}),a||r?W(K,{sx:{mr:2},children:W(ss,{})}):G(U,{children:[W(K,{component:`button`,sx:{color:`common.white`,fontSize:`0.875rem`,fontWeight:600,bgcolor:`brand.700`,borderRadius:1,px:3,py:1,mr:2,cursor:`pointer`,border:`none`},onClick:()=>{d(!0)},children:`Connect to Cloud`}),u&&W(vt,{parentOpen:u,handleParentClose:d,ignoreCookie:!0,variant:`user-profile`})]})]})]})};function js(){return W(K,{sx:{display:`flex`,height:`100%`,alignItems:`center`,justifyContent:`center`,contain:`size`},children:W(K,{sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,height:`100%`},children:W(Hn,{size:48})})})}function Ms({children:e,lineage:t}){let n=ni(),{isDemoSite:r,isLoading:i,isCodespace:a}=M(),{featureToggles:o}=I(),s=n.replace(/\/$/,``)||`/`,c=s===`/lineage`||s===`/`;return Sn(()=>{Qt()},[]),G(K,{sx:{display:`flex`,flexDirection:`column`,height:`100vh`,overflow:`hidden`},children:[W(As,{}),W(Es,{}),W(Ns,{isLineageRoute:c,lineage:t,children:e}),!i&&!r&&!a&&o.mode===null&&W(vt,{})]})}function Ns({children:e,lineage:t,isLineageRoute:n,disableInternalHistory:r=!1}){let{isRunResultOpen:i,isHistoryOpen:a,closeRunResult:o}=de(),{basePath:s}=ue(),{data:c}=F(),l=ni(),u=Et(),d=i&&!l.startsWith(`${s}/checks`),f=r?!1:a&&!l.startsWith(`${s}/checks`);return G(at,{sizes:f?[20,80]:[0,100],minSize:0,gutterSize:5,className:f?void 0:`split-gutter-hidden`,style:{height:`100%`},children:[W(K,{style:{contain:`size`},suppressHydrationWarning:!0,children:f&&W(Ae,{})}),G(bt,{sizes:d?[50,50]:[100,0],minSize:0,gutterSize:5,className:d?void 0:`split-gutter-hidden`,style:{flex:`1`,contain:`size`},children:[W(_n,{fallback:W(js,{}),children:G(K,{sx:{p:0,contain:`content`,height:`100%`,position:`relative`},suppressHydrationWarning:!0,children:[W(K,{sx:{display:n?`block`:`none`,height:`100%`,position:n?`relative`:`absolute`,inset:0},children:t}),!n&&e]})}),W(K,{sx:{height:`100%`,bgcolor:u?`grey.900`:`grey.50`},suppressHydrationWarning:!0,children:d?W(L,{onClose:o,isSingleEnvironment:!!c?.single_env_onboarding}):null})]})]})}function Ps({children:e,display:t}){let[n,r]=H(!1),i=Tn(null),a=Tn(null),o=B(()=>{i.current&&=(clearTimeout(i.current),null),r(!0)},[]),s=B(()=>{i.current=setTimeout(()=>{r(!1)},100)},[]);return t?G(U,{children:[W(K,{ref:a,onMouseEnter:o,onMouseLeave:s,sx:{display:`contents`},children:e}),G(ti,{open:n,anchorEl:a.current,onClose:()=>r(!1),anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},disableAutoFocus:!0,disableEnforceFocus:!0,sx:{pointerEvents:`none`},slotProps:{paper:{onMouseEnter:o,onMouseLeave:s,sx:{bgcolor:`grey.600`,color:`white`,p:1.5,pointerEvents:`auto`}}},children:[`Connect to a data warehouse to unlock Diff.`,` `,W(An,{href:Ht,target:`_blank`,sx:{color:`white`,textDecoration:`underline`},children:`Learn more`}),`.`]})]}):e}function Fs({checksOnly:e=!0}){let t=Et(),{featureToggles:n}=I(),r=mn(),{apiClient:i}=Oe(),a=Tn(null),o=Tn(null),[s,c]=H(null),[l,u]=H(!1),d=ri(),f=ni(),{basePath:m}=ue(),[,h]=_e(),g=B(async()=>{if(s){try{let{runs:t,checks:n}=await p(s,e,i);h?.(),await r.invalidateQueries({queryKey:A.checks()}),await r.invalidateQueries({queryKey:A.runs()}),f.includes(`/checks`)&&d.push(`${m}/checks`);let a=e?`${n} checks imported successfully`:`${t} runs and ${n} checks imported successfully`;jt.create({description:a,type:`info`,duration:5e3,closable:!0})}catch(e){console.error(`Import failed`,e),jt.create({title:`Import failed`,description:String(e),type:`error`,duration:5e3,closable:!0})}u(!1)}},[r,s,f,h,e,i,d.push,m]),_=()=>{a.current&&a.current.click()},v=e=>{e.target.files?.length===1&&(c(e.target.files[0]),u(!0)),a.current&&(a.current.value=``)},y=()=>u(!1),b=e?`checks`:`runs and checks`,{isDemoSite:x}=M();return G(U,{children:[W(Z,{title:`Import Checklist from State File`+(x?` (Disabled in the demo site)`:``),children:W(X,{sx:{pt:`6px`,color:t?`grey.300`:`grey.600`,"&:hover":{color:t?`grey.100`:`grey.800`},fontSize:20},"aria-label":`Import state`,onClick:()=>{_(),cn({name:`import`})},disabled:n.disableImportStateFile||x,children:W(Si,{})})}),W(`input`,{type:`file`,style:{display:`none`},ref:a,onChange:v}),G(En,{open:l,onClose:y,maxWidth:`sm`,fullWidth:!0,"aria-labelledby":`import-dialog-title`,children:[G(kn,{id:`import-dialog-title`,sx:{display:`flex`,alignItems:`center`,fontWeight:`bold`},children:[`Import state`,W(K,{sx:{flexGrow:1}}),W(X,{size:`small`,onClick:y,children:W(Rn,{})})]}),W(On,{children:G(J,{direction:`column`,spacing:1,sx:{px:`5px`,borderRadius:1},children:[G(J,{direction:`row`,alignItems:`center`,spacing:.5,children:[W(K,{component:rr,sx:{color:`error.main`}}),W(Y,{component:`span`,sx:{fontWeight:500,color:`error.main`},children:`Caution!`})]}),G(Y,{children:[`The current `,b,` will be`,` `,W(Y,{component:`span`,sx:{fontWeight:600},children:`merged`}),` `,`with the imported state`]})]})}),G(Dn,{children:[W(q,{ref:o,onClick:y,children:`Cancel`}),W(q,{color:`iochmara`,variant:`contained`,onClick:g,sx:{ml:`5px`},children:`Import`})]})]})]})}function Is({check:e},t){return W(K,{sx:{display:`flex`,flexDirection:`column`,height:`100%`},children:W(Tr,{children:W(as,{viewOptions:{...e.params,...e.view_options},interactive:!1,ref:t})})})}const Ls=yn(Is),Rs=({node:e,selected:t,onSelect:n,schemaChanged:r,isDark:i})=>{let{icon:a}=tt(e.data.resourceType),{base:o,current:s}=e.data.data,c,l;return r?(c=z(`schema_diff`).icon,l=nt(`modified`).color):!o&&s?(c=nt(`added`).icon,l=nt(`added`).color):o&&!s&&(c=nt(`removed`).icon,l=nt(`removed`).color),W($r,{disablePadding:!0,children:G(K,{sx:{display:`flex`,width:`100%`,fontSize:`10pt`,p:`5px 8px`,cursor:`pointer`,"&:hover":{bgcolor:i?`grey.700`:`grey.200`},bgcolor:t?i?`grey.800`:`grey.100`:`inherit`,alignItems:`center`,gap:`5px`},onClick:()=>{n(e.id)},children:[a&&W(K,{component:a}),W(K,{sx:{flex:1,textOverflow:`ellipsis`,whiteSpace:`nowrap`,overflow:`hidden`},children:e.data.name}),c&&l&&W(K,{component:c,sx:{color:l}})]})})};function zs({check:e},t){let n=Et(),{apiClient:r}=Oe(),{lineageGraph:i}=M(),a=e.params,{isLoading:o,error:s,data:c}=pn({queryKey:[...A.check(e.check_id),`select`],queryFn:async()=>C({select:a.select,exclude:a.exclude,packages:a.packages,view_mode:a.view_mode},r),refetchOnMount:!0,enabled:!a.node_id}),[l,u]=V(()=>{let e=[],t=[],n=[],r=[];if(a.node_id){let t=a.node_id instanceof Array?a.node_id:[a.node_id];for(let n of t){let t=i?.nodes[n];t&&e.push(t)}}else for(let t of c?.nodes??[]){let n=i?.nodes[t];n&&e.push(n)}let o=e.filter(e=>e.data.resourceType===`model`||e.data.resourceType===`seed`||e.data.resourceType===`source`||e.data.resourceType===`snapshot`);for(let e of o)Pt(e.data.data.base?.columns,e.data.data.current?.columns)?t.push(e.id):!e.data.data.base&&e.data.data.current?n.push(e.id):e.data.data.base&&!e.data.data.current&&r.push(e.id);function s(e){return t.includes(e.id)?3:n.includes(e.id)?2:r.includes(e.id)?1:0}return o.sort((e,t)=>{let n=s(e),r=s(t);return n===r?e.data.name.localeCompare(t.data.name):r-n}),[o,t]},[a.node_id,c?.nodes,i]),[d,f]=H(0);if(o)return W(K,{sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,bgcolor:n?`grey.900`:`grey.50`,height:`100%`},children:`Loading...`});if(s)return G(K,{sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,bgcolor:n?`grey.900`:`grey.50`,height:`100%`},className:`no-track-pii-safe`,children:[`Error: `,s.message]});if(l.length==0)return W(K,{sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,bgcolor:n?`grey.900`:`grey.50`,height:`100%`},children:`No nodes matched`});if(d<l.length){let e=l[d];return G(at,{sizes:[80,20],minSize:30,style:{height:`100%`},children:[W(so,{base:e.data.data.base,current:e.data.data.current,columnChanges:e.data.change?.columns,enableScreenshot:!0,showMenu:!1,ref:t}),W(Qr,{sx:{overflow:`auto`,bgcolor:`background.paper`,listStyle:`none`},children:l.map((e,t)=>W(Rs,{node:e,schemaChanged:u.includes(e.id),selected:t===d,isDark:n,onSelect:()=>{f(t)}},e.id))})]})}return W(U,{})}const Bs=yn(zs);function Vs({checkId:r,refreshCheckList:a}){let s=Pn(),l=Et(),{apiClient:u}=Oe(),{featureToggles:d,sessionId:f}=I(),{setLatestSelectedCheckId:p}=Ct(),{cloudMode:m}=M(),h=mn(),g=ri(),{basePath:_}=ue(),{setSqlQuery:v,setBaseSqlQuery:y,setCustomQueries:b,setPrimaryKeys:x}=Ie(),{successToast:S,failToast:C}=At(),[w,T]=H(),[E]=H(),[D,O]=H(!1),[k,ee]=H(!1),[te,ne]=H(null),re=!!te,{isLoading:ie,error:ae,data:j}=pn({queryKey:A.check(r),queryFn:async()=>c(r,u),refetchOnMount:!0}),oe=w??j?.last_run?.run_id,{run:N,error:se}=ht(oe),ce=w?!N||N.status===`Running`:N?.status===`Running`,P=j?.type?z(j.type):void 0,le;P&&(le=P.RunResultView);let de=j?.is_preset??!1,fe=Tn(null),{mutate:pe}=fn({mutationFn:e=>o(r,e,u),onSuccess:async()=>{await h.invalidateQueries({queryKey:A.check(r)}),await h.invalidateQueries({queryKey:A.checks()})}}),{mutate:me}=fn({mutationFn:()=>n(r,u),onSuccess:async()=>{p(``),await h.invalidateQueries({queryKey:A.checks()}),g.push(`${_}/checks`)}}),{mutate:he,isPending:ge}=fn({mutationFn:async()=>{if(!j)throw Error(`Check not found`);return await t(r,u)},onSuccess:async()=>{S(`Check marked as preset successfully`),await h.invalidateQueries({queryKey:A.check(r)})},onError:e=>{C(`Failed to mark check as preset`,e)}}),F=B(async()=>{j?.type&&(T((await e(r,{nowait:!0},u)).run_id),await h.invalidateQueries({queryKey:A.check(r)}),a&&a())},[j,r,h,a,u]),_e=B(async()=>{if(O(!0),oe)return await i(oe,u)},[oe,u]),ve=async()=>{if(!j)return;let e=Hs(j);if(!window.isSecureContext){C(`Failed to copy the check to clipboard`,Error(`Copy to clipboard is available only in secure contexts (HTTPS)`));return}try{await navigator.clipboard.writeText(e),S(`Copied the check to the clipboard`)}catch(e){C(`Failed to copy the check to clipboard`,e)}},ye=B(()=>{let e=j?.is_checked;pe({is_checked:!e}),e||jt.create({title:`Marked as approved`,type:`success`,duration:2e3})},[j?.is_checked,pe]),be=e=>{pe({view_options:e})},xe=e=>{pe({description:e})},Ce=e=>{ne(e.currentTarget)},we=()=>{ne(null)},Ee=B(()=>{if(!j)return;let e=j.params;v(e?.sql_template||``),`base_sql_template`in e&&e.base_sql_template?(y(e.base_sql_template),b(!0)):(y(``),b(!1)),`primary_keys`in e&&e.primary_keys?x(e.primary_keys):x(void 0),g.push(`${_}/query`)},[j,g,_,v,y,b,x]),[De,ke]=H(`result`),{ref:Ae,onCopyToClipboard:je,onMouseEnter:Me,onMouseLeave:Ne}=ot(),L=Ve({name:j?.name??``,description:j?.description??``,type:j?.type??``,params:j?.params,viewOptions:j?.view_options});if(ie)return W(K,{sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,height:`100%`},children:`Loading`});if(ae)return G(K,{sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,height:`100%`},children:[`Error: `,W(`span`,{className:`no-track-pii-safe`,children:ae.message})]});if(!j)return W(bt,{minSize:100,sizes:[30,70],style:{height:`100%`,width:`100%`,maxHeight:`100%`},children:W(K,{style:{contain:`strict`},sx:{display:`flex`,flexDirection:`column`},children:W(K,{sx:{display:`flex`,p:`0px 16px`,alignItems:`center`,height:40},children:W(Qe,{name:`Check not found`,disabled:!0})})})});let R=N?.run_at?Jr(new Date(N.run_at),{addSuffix:!0}):null,Le=P?.icon;return G(Li,{spacing:0,container:!0,sx:{height:`100%`,width:`100%`},children:[W(Li,{size:{xs:12,md:m?9:12},sx:{height:`100%`},children:G(bt,{minSize:100,sizes:[40,60],style:{height:`100%`,width:`100%`,maxHeight:`100%`},children:[W(K,{sx:{height:`100%`,contain:`strict`,display:`flex`,flexDirection:`row`},children:G(K,{sx:{flex:1,height:`100%`,display:`flex`,flexDirection:`column`,overflow:`hidden`,minWidth:0},children:[G(K,{sx:{display:`flex`,p:`0px 16px`,alignItems:`center`,height:40,borderBottom:`2px solid`,borderColor:l?`grey.700`:`grey.300`},children:[Le&&W(K,{component:Le,sx:{fontSize:20,mr:1,flexShrink:0}}),W(Qe,{name:j.name,onNameChange:e=>{pe({name:e})}}),W(K,{sx:{flexGrow:1}}),G(J,{direction:`row`,spacing:2,sx:{mr:`10px`},children:[R&&W(K,{sx:{textOverflow:`ellipsis`,whiteSpace:`nowrap`,overflow:`hidden`,fontSize:`0.75rem`,display:`flex`,alignItems:`center`},children:R}),de&&W(Z,{title:`This is a preset check`,children:W(K,{display:`flex`,alignItems:`center`,justifyContent:`center`,children:W(xi,{size:`1rem`,color:s.palette.iochmara.dark})})}),W(X,{size:`small`,onClick:Ce,children:W(Wr,{})}),G(Rr,{anchorEl:te,open:re,onClose:we,children:[f&&G(Q,{onClick:()=>{he(),we()},disabled:ge||de,children:[W(li,{children:W(Ln,{})}),W(ui,{children:`Mark as Preset Check`})]}),G(Q,{onClick:()=>{ee(!0),we()},children:[W(li,{children:W(zi,{})}),W(ui,{children:`Get Preset Check Template`})]}),G(Q,{onClick:()=>{ve(),we()},children:[W(li,{children:W(tr,{})}),W(ui,{children:`Copy Markdown`})]}),W(Vn,{}),G(Q,{onClick:()=>{me(),we()},disabled:d.disableUpdateChecklist,sx:{color:`error.main`},children:[W(li,{sx:{color:`error.main`},children:W(fr,{})}),W(ui,{children:`Delete`})]})]}),W(Z,{title:Fe({type:j.type,hasResult:!!N?.result,hasError:!!N?.error})?`Run the check first`:j.is_checked?`Remove approval`:`Mark as approved`,placement:`bottom-end`,children:W(q,{size:`small`,color:j.is_checked?`success`:`neutral`,variant:j.is_checked?`contained`:`outlined`,onClick:()=>{ye()},disabled:Fe({type:j.type,hasResult:!!N?.result,hasError:!!N?.error})||d.disableUpdateChecklist,startIcon:j.is_checked?W($n,{}):W(Br,{style:{color:l?s.palette.grey[600]:s.palette.grey[400]}}),sx:{flex:`0 0 auto`,textTransform:`none`},children:j.is_checked?`Approved`:`Pending`})})]})]}),W(K,{sx:{flex:1,p:`8px 16px`,minHeight:100},children:W(Pe,{value:j.description,onChange:xe,disabled:d.disableUpdateChecklist},j.check_id)})]})}),W(K,{style:{contain:`strict`},children:G(K,{sx:{height:`100%`,display:`flex`,flexDirection:`column`},children:[G(K,{sx:{display:`flex`,alignItems:`center`,borderBottom:1,borderColor:`divider`,height:50},children:[G(Zr,{value:De,onChange:(e,t)=>ke(t),children:[W(Xr,{label:`Result`,value:`result`,sx:{fontSize:`0.75rem`,textTransform:`none`}}),(j.type===`query`||j.type===`query_diff`)&&W(Xr,{label:`Query`,value:`query`,sx:{fontSize:`0.75rem`,textTransform:`none`}})]}),W(K,{sx:{flexGrow:1}}),G(J,{direction:`row`,spacing:1,sx:{mr:`10px`},children:[(j.type===`query`||j.type===`query_base`||j.type===`query_diff`)&&W(Z,{title:`Open in Query tab`,children:W(q,{variant:`outlined`,color:`neutral`,size:`small`,onClick:Ee,disabled:d.disableDatabaseQuery,startIcon:W(ci,{}),sx:{textTransform:`none`},children:`Open Query`})}),le&&W(Z,{title:`Rerun`,children:W(q,{variant:`outlined`,color:`neutral`,size:`small`,onClick:()=>F(),disabled:d.disableDatabaseQuery||ce,startIcon:W(ur,{}),sx:{textTransform:`none`},children:ce?`Running...`:`Rerun`})}),W(q,{variant:`outlined`,color:`neutral`,disabled:Fe({type:j.type,hasResult:!!N?.result,hasError:!!N?.error})||De!==`result`,onMouseEnter:Me,onMouseLeave:Ne,size:`small`,onClick:async()=>{j.type===`lineage_diff`?fe.current?.copyToClipboard():await je(),qt({type:j.type,from:`check`})},startIcon:W(tr,{}),sx:{textTransform:`none`},children:`Copy to Clipboard`})]})]}),G(K,{sx:{flex:1,contain:`strict`},children:[De===`result`&&G(K,{sx:{width:`100%`,height:`100%`},children:[le&&(j.last_run||oe?W(Te,{ref:Ae,isRunning:ce,isAborting:D,run:oe?N:j.last_run,error:se,progress:E,RunResultView:le,viewOptions:j.view_options,onViewOptionsChanged:be,onCancel:_e,onExecuteRun:F}):W(K,{sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,bgcolor:l?`grey.900`:`grey.50`,height:`100%`},children:G(J,{spacing:2,alignItems:`center`,children:[W(K,{children:`This action is part of the initial preset and has not been performed yet. Once performed, the result will be shown here.`}),W(Ps,{display:d.mode===`metadata only`,children:W(q,{onClick:F,variant:`contained`,size:`small`,disabled:d.disableDatabaseQuery,children:`Run Query`})})]})})),j.type===`schema_diff`&&W(Bs,{check:j,ref:Ae},j.check_id),j.type===`lineage_diff`&&W(Ls,{check:j,ref:fe},j.check_id)]}),De===`query`&&(j.type===`query`||j.type===`query_diff`||j.type===`query_base`)&&W(K,{sx:{height:`100%`,width:`100%`},children:j.params.base_sql_template?W(it,{value:j.params.sql_template||``,baseValue:j.params.base_sql_template??``,options:{readOnly:!0}}):W(Se,{value:j.params.sql_template||``,options:{readOnly:!0}})})]})]})}),G(En,{open:k,onClose:()=>ee(!1),maxWidth:`md`,fullWidth:!0,children:[W(kn,{children:`Preset Check Template`}),G(On,{children:[G(Y,{variant:`subtitle2`,fontWeight:`bold`,sx:{mb:2},children:[`Please`,` `,W(Y,{component:`span`,sx:{cursor:`pointer`,"&:hover":{textDecoration:`underline`},color:`primary.main`},onClick:async()=>{await navigator.clipboard.writeText(L),S(`Copied the template to the clipboard`)},children:`copy`}),` `,`the following template and paste it into the`,` `,W(K,{component:`span`,sx:{px:.5,bgcolor:`error.light`,borderRadius:.5},children:`recce.yml`}),` `,`file.`]}),W(ze,{yamlTemplate:L})]}),W(Dn,{children:W(X,{size:`small`,onClick:()=>ee(!1),sx:{position:`absolute`,top:8,right:8},children:W(Rn,{})})})]})]})}),m&&W(Li,{size:3,sx:{height:`100%`,overflow:`hidden`,flexShrink:0,display:{xs:`none`,md:`block`}},children:W(xa,{checkId:r})})]})}function Hs(e){return Ri`
7
- <details><summary>${ke({name:e.name,isChecked:e.is_checked})}</summary>
8
-
9
- ${Us(e)}
10
-
11
- </details>`}function Us(e){let t=Ee({description:e.description});if(e.type===`query`||e.type===`query_diff`){let n=e.params;return`${t}\n\n${je({sql:n&&`sql_template`in n?n.sql_template:``})}`}return t}const Ws=()=>{let e=mn(),t=ri(),{apiClient:n}=Oe(),{basePath:r}=ue(),{mutate:i,isPending:a}=fn({mutationFn:()=>_({select:`state:modified`},n),onSuccess:async n=>{await e.invalidateQueries({queryKey:A.checks()}),t.push(`${r}/checks/?id=${n.check_id}`)}});return W(He,{title:`No checks yet`,description:`Checks help you validate data quality and catch issues.`,icon:W(oi,{size:48}),actionText:`Create Schema Diff Check`,onAction:()=>{i()},isLoading:a,helperText:`The schema checks compare modified models between environments to detect changes, additions, or removals.`})},Gs=({check:e,selected:t,onSelect:n,onApprovalChange:r})=>{let{featureToggles:i}=I(),a=e.last_run?.run_id,{run:o}=ht(a),s=Fe({type:e.type,hasResult:!!o?.result,hasError:!!o?.error}),c=s||i.disableUpdateChecklist;return W(xe,{check:{id:e.check_id,name:e.name,type:e.type,isApproved:e.is_checked,runStatus:(()=>{if(o){if(o.error)return`error`;if(o.result)return`success`}})(),isPreset:e.is_preset,isOutdated:e.is_outdated,lastRunAt:e.last_run?.run_at},isSelected:t,onClick:n,onApprovalChange:r,disableApproval:c,disabledApprovalTooltip:s?`Run the check first`:void 0})},Ks=({checks:e,selectedItem:t,onCheckSelected:n,onChecksReordered:r})=>{let[i,a]=H(!1),[s,c]=H(!1),[l,u]=H(null),d=mn(),{apiClient:f}=Oe(),{mutate:p}=fn({mutationFn:({checkId:e,isChecked:t})=>o(e,{is_checked:t},f),onSuccess:async(e,{checkId:t})=>{await d.invalidateQueries({queryKey:A.check(t)}),await d.invalidateQueries({queryKey:A.checks()})}}),m=e=>{e.destination&&r(e.source.index,e.destination.index)},h=()=>c(!0),g=()=>{c(!1),u(null)},_=()=>{jt.create({title:`Marked as approved`,type:`success`,duration:2e3})},v=(e,t)=>{t?localStorage.getItem(`bypassMarkAsApprovedWarning`)===`true`?(p({checkId:e,isChecked:!0}),_()):(u(e),h()):p({checkId:e,isChecked:!1})};return G(U,{children:[W(Bi,{onDragEnd:m,children:W(Hi,{droppableId:`checklist`,children:r=>G(J,{...r.droppableProps,ref:r.innerRef,className:`no-track-pii-safe`,sx:{width:`100%`,flex:1,overflow:`auto`},spacing:0,children:[e.map((e,r)=>W(Vi,{draggableId:e.check_id,index:r,children:(r,i)=>{let a=r.draggableProps.style;if(i.isDragging&&a&&`left`in a){let e={x:0,y:80};a={...a,left:a.left-e.x,top:a.top-e.y}}return W(K,{ref:r.innerRef,...r.draggableProps,...r.dragHandleProps,style:a,sx:{width:`100%`},borderBottom:`1px solid`,borderColor:`divider`,children:W(Gs,{check:e,selected:e.check_id===t,onSelect:n,onApprovalChange:v},e.check_id)})}},e.check_id)),r.placeholder]})})}),G(En,{open:s,onClose:g,maxWidth:`xs`,fullWidth:!0,children:[G(kn,{sx:{display:`flex`,alignItems:`center`},children:[`Mark as Approved?`,W(K,{sx:{flexGrow:1}}),W(X,{size:`small`,onClick:g,children:W(Rn,{})})]}),W(Vn,{}),G(On,{sx:{fontSize:`0.875rem`},children:[W(Y,{children:`Please ensure you have reviewed the contents of this check before marking it as approved.`}),W(Pr,{control:W(Nr,{checked:i,onChange:e=>{a(e.target.checked)},size:`small`}),label:W(Y,{sx:{fontWeight:`bold`,pt:`8px`},children:`Don't show this again`})})]}),W(Vn,{}),G(Dn,{sx:{gap:0},children:[W(q,{variant:`outlined`,size:`small`,onClick:g,children:`Cancel`}),W(q,{color:`iochmara`,variant:`contained`,size:`small`,onClick:()=>{l&&(p({checkId:l,isChecked:!0}),i&&localStorage.setItem(`bypassMarkAsApprovedWarning`,`true`),_(),g(),u(null))},children:`Mark as approved`})]})]})]})},qs=()=>{let e=Pn().palette.mode===`dark`?`grey.700`:`grey.300`,t=ri(),n=ii().get(`id`),{latestSelectedCheckId:r,setLatestSelectedCheckId:i}=Ct(),a=mn(),{apiClient:o}=Oe(),{basePath:s}=ue(),c=n;Sn(()=>{c&&i(c)},[c,i]);let{isLoading:l,error:u,data:d,status:f,refetch:p}=pn({queryKey:A.checks(),queryFn:()=>b(o),refetchOnMount:!0}),m=B(e=>{t.push(`${s}/checks/?id=${e}`)},[t.push,s]),[h,g]=H(d??[]),[_,v]=H(d);d!==_&&(v(d),g(d??[]));let{mutate:x}=fn({mutationFn:e=>y(e,o),onSuccess:async()=>{await a.invalidateQueries({queryKey:A.checks()})}}),S=B((e,t)=>{let n=[...h],[r]=n.splice(e,1);n.splice(t,0,r),x({source:e,destination:t}),g(n)},[h,x]),C=V(()=>!!(c&&d?.some(e=>e.check_id===c)),[c,d]);return Sn(()=>{f!==`success`||d.length===0||C||(r&&d.some(e=>e.check_id===r)?t.replace(`${s}/checks/?id=${r}`):t.replace(`${s}/checks/?id=${d[0].check_id}`))},[f,C,d,r,t.replace,s]),l?null:u?G(K,{children:[`Error: `,W(`span`,{className:`no-track-pii-safe`,children:u.message})]}):d?.length?G(at,{style:{height:`100%`},minSize:50,sizes:[20,80],children:[W(K,{sx:{height:`100%`},style:{contain:`size`},children:G(J,{sx:{height:`100%`,alignItems:`stretch`},style:{contain:`strict`},spacing:0,children:[W(K,{sx:{display:`flex`,justifyContent:`flex-end`,p:`0px 10px`},children:W(Fs,{checksOnly:!0})}),W(Vn,{}),W(Ks,{checks:h,selectedItem:c,onCheckSelected:m,onChecksReordered:S})]})}),W(K,{sx:{height:`100%`},children:C&&c&&W(Vs,{checkId:c,refreshCheckList:p},c)})]}):G(at,{style:{height:`100%`},minSize:50,sizes:[20,80],children:[W(K,{sx:{borderRight:`1px solid`,borderRightColor:e,height:`100%`},style:{contain:`size`},children:G(J,{sx:{height:`100%`,alignItems:`stretch`},style:{contain:`strict`},spacing:0,children:[W(K,{sx:{display:`flex`,justifyContent:`flex-end`,p:`0px 10px`},children:W(Fs,{checksOnly:!0})}),W(Vn,{}),W(K,{sx:{height:`100%`,display:`flex`,justifyContent:`center`,alignItems:`center`},children:W(K,{sx:{textAlign:`center`,color:`grey.500`},children:`No checks`})})]})}),W(K,{children:W(K,{sx:{height:`100%`,display:`flex`,justifyContent:`center`,alignItems:`center`},children:W(Ws,{})})})]})},Js=()=>G(at,{style:{height:`100%`},minSize:50,sizes:[20,80],children:[W(K,{sx:{borderRight:`1px solid`,borderRightColor:Pn().palette.mode===`dark`?`grey.700`:`grey.300`,height:`100%`},style:{contain:`size`},children:W(K,{sx:{height:`100%`,display:`flex`,justifyContent:`center`,alignItems:`center`},children:W(Hn,{size:20})})}),W(K,{children:W(K,{sx:{height:`100%`,display:`flex`,justifyContent:`center`,alignItems:`center`},children:W(Hn,{size:20})})})]}),Ys={added:[`Model Added`,`Added resource`],removed:[`Model Removed`,`Removed resource`],modified:[`Model Modified`,`Modified resource`],col_added:[`Column Added`,`Added column`],col_removed:[`Column Removed`,`Removed column`],col_changed:[`Column Modified`,`Modified column`],folder_changed:[`Modified`,`Modified folder`]};function Xs(e){let t=String(ye(`colors.green.solid`)),n=String(ye(`colors.red.solid`)),r=String(ye(`colors.amber.emphasized`));return e===`added`?{color:t,icon:Xe}:e===`removed`?{color:n,icon:st}:e===`modified`?{color:r,icon:pt}:e===`col_added`?{color:t,icon:Xe}:e===`col_removed`?{color:n,icon:st}:e===`col_changed`?{color:r,icon:pt}:e===`folder_changed`?{color:r,icon:et}:{color:`inherit`,icon:void 0}}function Zs(e,t){let n=0,r=0,i=0;return!e&&!t?{adds:n,removes:r,modifies:i}:(t&&Object.keys(t.columns??{}).forEach(t=>{e?.columns?.[t]||n++}),e&&Object.keys(e.columns??{}).forEach(e=>{t?.columns?.[e]||r++}),t&&e&&Object.keys(t.columns??{}).forEach(n=>{e.columns&&t.columns?.[n]&&e.columns[n]&&e.columns[n].type!==t.columns[n].type&&i++}),{adds:n,removes:r,modifies:i})}function Qs(e){let t=e.modifiedSet,n=0,r=0,i=0,a=0,o=0,s=0;return t.forEach(t=>{e.nodes[t].data.changeStatus===`added`?n++:e.nodes[t].data.changeStatus===`removed`?r++:e.nodes[t].data.changeStatus===`modified`&&i++;let c=e.nodes[t].data.data.base,l=e.nodes[t].data.data.current,u=Zs(c,l);a+=u.adds,o+=u.removes,s+=u.modifies}),{adds:n,removes:r,modifies:i,col_added:a,col_removed:o,col_changed:s}}function $s({name:e,value:t,tip:n}){return G(J,{alignItems:`stretch`,children:[G(Y,{sx:{fontSize:`0.875rem`,color:`grey.600`},children:[e,n&&W(Z,{title:n,children:W(K,{sx:{display:`inline-block`},children:W(K,{component:pi,sx:{mx:`2px`,fontSize:12,verticalAlign:`middle`}})})})]}),t]})}function ec({changeStatus:e,value:t}){let[n]=e?Ys[e]:[``],{icon:r,color:i}=Xs(e);return G(J,{alignItems:`stretch`,children:[G(J,{direction:`row`,alignItems:`center`,sx:{fontSize:`0.875rem`,color:`grey.600`},children:[r&&W(K,{component:r,sx:{mr:`5px`,color:i,fontSize:`1rem`}}),n]}),W(Y,{sx:{fontSize:`0.875rem`},children:t})]})}function tc({lineageGraph:e}){let{adds:t,removes:n,modifies:r,col_added:i,col_removed:a,col_changed:o}=Qs(e);return G(Li,{container:!0,sx:{mb:`10px`,borderTop:`1px solid`,borderColor:`divider`,p:`2.5vw`},children:[W(Li,{size:6,sx:{borderColor:`divider`},children:W($s,{name:`Code Changes`,value:G(Li,{container:!0,sx:{width:`100%`},children:[W(Li,{size:4,children:W(ec,{changeStatus:`added`,value:t})}),W(Li,{size:4,children:W(ec,{changeStatus:`removed`,value:n})}),W(Li,{size:4,children:W(ec,{changeStatus:`modified`,value:r})})]})})}),W(Li,{size:6,sx:{borderLeft:`1px solid`,borderLeftColor:`divider`,pl:`12px`},children:W($s,{name:`Column Changes`,value:G(Li,{container:!0,sx:{width:`100%`},children:[W(Li,{size:4,children:W(ec,{changeStatus:`col_added`,value:i})}),W(Li,{size:4,children:W(ec,{changeStatus:`col_removed`,value:a})}),W(Li,{size:4,children:W(ec,{changeStatus:`col_changed`,value:o})})]})})})]})}function nc({node:e,...t}){return G(Ui,{sx:{maxWidth:500},children:[W(Gi,{title:W(Y,{sx:{fontSize:18,fontWeight:`bold`},children:t.title}),subheader:G(J,{direction:`row`,spacing:`8px`,sx:{p:`16px`},children:[W(ho,{data:{resourceType:e.data.resourceType}}),e.data.resourceType===`model`&&W(_o,{node:e})]})}),W(Wi,{children:W(K,{sx:{display:`flex`},children:W(so,{base:e.data.data.base,current:e.data.data.current,columnChanges:e.data.change?.columns})})})]})}function rc(e){let t=[],n=e.nodes;return e.modifiedSet.forEach(e=>{let r=n[e],i=Ot(Object.keys(r.data.data.base?.columns??{}),Object.keys(r.data.data.current?.columns??{}));!Object.values(i).every(e=>e===void 0)&&r.data.data.base&&r.data.data.current&&t.push(r)}),t}function ic({lineageGraph:e}){let[t,n]=H([]);return Sn(()=>{n(rc(e))},[e]),G(U,{children:[W(K,{sx:{width:`100%`,pb:`10px`,mb:`20px`,mt:`20px`},children:W(Y,{variant:`h5`,sx:{fontSize:24},children:`Schema Summary`})}),W(K,{sx:{width:`100%`,pb:`10px`,mb:`20px`},children:t.length===0?W(Y,{sx:{fontSize:18,color:`grey.600`},children:`No schema changes detected.`}):W(K,{sx:{display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(400px, 1fr))`,gap:`2vw`,p:`2.5vw`,width:`100%`,bgcolor:`lightgray`},children:t.map(e=>W(nc,{title:e.data.name,node:e},e.id))})})]})}function ac({checks:e,isLoading:t,error:n,selectedCheckId:r,onCheckSelect:i,onApprovalChange:a,onAction:o,onReorder:s,onDescriptionChange:c,onNameChange:l,onCreateCheck:u,getCheckTabs:d,getPrimaryActions:f,getSecondaryActions:p,disableApproval:m=!1,disabledApprovalTooltip:h,height:g=`100%`,listPaneSize:_=30,minListSize:v=200,maxListSize:y=500,listTitle:b,className:x}){let S=R(),C=e??S.checks,w=t===void 0?S.isLoading:t,T=n??S.error,E=r??S.selectedCheckId,D=i??S.onSelectCheck,O=V(()=>C.map(e=>({id:e.check_id,name:e.name,type:e.type,description:e.description,isApproved:e.is_checked})),[C]),k=V(()=>C.find(e=>e.check_id===E),[C,E]),ee=B(e=>{D?.(e)},[D]),te=B((e,t)=>{o?.(e,t)},[o]),ne=B(e=>{E&&c?.(E,e)},[E,c]),re=B(e=>{E&&l?.(E,e)},[E,l]);if(w)return W(K,{className:x,sx:{width:`100%`,height:g,display:`flex`,alignItems:`center`,justifyContent:`center`},children:W(Hn,{})});if(T)return W(K,{className:x,sx:{width:`100%`,height:g,display:`flex`,alignItems:`center`,justifyContent:`center`},children:W(Y,{color:`error`,children:T})});if(C.length===0)return W(K,{className:x,sx:{width:`100%`,height:g,display:`flex`,alignItems:`center`,justifyContent:`center`},children:W(He,{title:`No checks yet`,description:`Create your first check to start validating your data.`,actionText:`Create Check`,onAction:u})});let A=k?d?.(k):void 0,ie=k?f?.(k):void 0,ae=k?p?.(k):void 0;return W(K,{className:x,sx:{width:`100%`,height:g},children:G(Ze,{direction:`horizontal`,sizes:[_,100-_],minSizes:[v,200],maxSizes:[y,1/0],children:[W(K,{sx:{height:`100%`,overflow:`auto`},children:W(Ue,{checks:O,selectedId:E,onCheckSelect:ee,onApprovalChange:a,onReorder:s,disableApproval:m,disabledApprovalTooltip:h,title:b})}),W(K,{sx:{height:`100%`,overflow:`auto`},children:k?W(We,{checkId:k.check_id,name:k.name,type:k.type,description:k.description,isApproved:k.is_checked,tabs:A,primaryActions:ie,secondaryActions:ae,onAction:te,onDescriptionChange:ne,onNameChange:re}):W(K,{sx:{height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:W(Y,{color:`text.secondary`,children:`Select a check from the list to view details`})})})]})})}const oc=bn(ac);oc.displayName=`ChecksView`;const sc=`0.2.0`;export{Sa as A,co as C,Ea as D,Qa as E,Ji as M,qi as N,wa as O,so as S,no as T,ds as _,Qs as a,Do as b,Ys as c,Ks as d,Ws as f,Ds as g,Ms as h,tc as i,Zi as j,Ca as k,Js as l,Ns as m,oc as n,Zs as o,Vs as p,ic as r,Xs as s,sc as t,qs as u,os as v,ro as w,io as x,Go as y};
12
- //# sourceMappingURL=src-dADg4wse.js.map