@datarecce/ui 1.43.0 → 1.43.2
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.
- package/dist/AuthModal-CPEPKSbq.js +7 -0
- package/dist/AuthModal-CPEPKSbq.js.map +1 -0
- package/dist/{RunProgress-CUH5MGf2.d.ts → RunProgress-x8azUu6w.d.ts} +8 -2
- package/dist/RunProgress-x8azUu6w.d.ts.map +1 -0
- package/dist/{SplitPane-BSbw-X0w.d.ts → SplitPane-DBg4tXuc.d.ts} +47 -29
- package/dist/SplitPane-DBg4tXuc.d.ts.map +1 -0
- package/dist/advanced.d.ts +32 -6
- package/dist/advanced.d.ts.map +1 -1
- package/dist/advanced.js +1 -1
- package/dist/advanced.js.map +1 -1
- package/dist/{api-BLPTlb5F.d.ts → api-Df2fnbPC.d.ts} +2 -2
- package/dist/{api-BLPTlb5F.d.ts.map → api-Df2fnbPC.d.ts.map} +1 -1
- package/dist/api.d.ts +2 -2
- package/dist/components-run.d.ts +3 -3
- package/dist/components-run.js +1 -1
- package/dist/components.d.ts +8 -8
- package/dist/components.js +1 -1
- package/dist/contexts.d.ts +3 -3
- package/dist/contexts.js +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js +1 -1
- package/dist/{index-Cj6jBlI5.d.ts → index-BPwq5bDS.d.ts} +4 -4
- package/dist/{index-Cj6jBlI5.d.ts.map → index-BPwq5bDS.d.ts.map} +1 -1
- package/dist/{index-BqEL56ty.d.ts → index-BU4oA57l.d.ts} +4 -2
- package/dist/index-BU4oA57l.d.ts.map +1 -0
- package/dist/{index-B5IDqiH5.d.ts → index-CsQ6F_RH.d.ts} +3 -3
- package/dist/{index-B5IDqiH5.d.ts.map → index-CsQ6F_RH.d.ts.map} +1 -1
- package/dist/{index-CN00J7hU.d.ts → index-etWB_qj5.d.ts} +5 -5
- package/dist/{index-CN00J7hU.d.ts.map → index-etWB_qj5.d.ts.map} +1 -1
- package/dist/{index-BaX9Yro_.d.ts → index-hrkIDdSw.d.ts} +3 -3
- package/dist/{index-BaX9Yro_.d.ts.map → index-hrkIDdSw.d.ts.map} +1 -1
- package/dist/{index-DHyGyyCa.d.ts → index-zrsz0il0.d.ts} +8 -3
- package/dist/index-zrsz0il0.d.ts.map +1 -0
- package/dist/index.d.ts +11 -11
- package/dist/index.js +1 -1
- package/dist/{instanceInfo-CFaMqagF.d.ts → instanceInfo-py6tIhW6.d.ts} +3 -1
- package/dist/{instanceInfo-CFaMqagF.d.ts.map → instanceInfo-py6tIhW6.d.ts.map} +1 -1
- package/dist/keepAlive-DbC0X4zr.js.map +1 -1
- package/dist/lib/api/track.d.ts +13 -1
- package/dist/lib/api/track.d.ts.map +1 -1
- package/dist/lib/api/track.js +1 -1
- package/dist/lib/api/track.js.map +1 -1
- package/dist/{lineage-DNT0kUP_.d.ts → lineage-BVy6uQ02.d.ts} +18 -8
- package/dist/lineage-BVy6uQ02.d.ts.map +1 -0
- package/dist/{primitives-BvIkb0y2.d.ts → primitives-CeiwiPV-.d.ts} +2 -2
- package/dist/{primitives-BvIkb0y2.d.ts.map → primitives-CeiwiPV-.d.ts.map} +1 -1
- package/dist/primitives.d.ts +4 -4
- package/dist/primitives.js +1 -1
- package/dist/result.js +1 -1
- package/dist/src-BPeVRx-t.js +12 -0
- package/dist/src-BPeVRx-t.js.map +1 -0
- package/dist/style.css +18 -44
- package/dist/styles.css +1 -1
- package/dist/{types-B2yU6e4d.d.ts → types-MJ4kKF5U.d.ts} +10 -2
- package/dist/types-MJ4kKF5U.d.ts.map +1 -0
- package/dist/{types-hvCteREC.d.ts → types-Mk-rmevv.d.ts} +2 -2
- package/dist/{types-hvCteREC.d.ts.map → types-Mk-rmevv.d.ts.map} +1 -1
- package/dist/types.d.ts +7 -7
- package/dist/utils-Crcz1Rb5.js.map +1 -1
- package/dist/utils-SEuNIttT.js +3 -0
- package/dist/utils-SEuNIttT.js.map +1 -0
- package/dist/utils.d.ts +1 -1
- package/package.json +11 -4
- package/dist/AuthModal-CXrikA-g.js +0 -7
- package/dist/AuthModal-CXrikA-g.js.map +0 -1
- package/dist/RunProgress-CUH5MGf2.d.ts.map +0 -1
- package/dist/SplitPane-BSbw-X0w.d.ts.map +0 -1
- package/dist/index-BqEL56ty.d.ts.map +0 -1
- package/dist/index-DHyGyyCa.d.ts.map +0 -1
- package/dist/lineage-DNT0kUP_.d.ts.map +0 -1
- package/dist/src-_Brn8OkY.js +0 -12
- package/dist/src-_Brn8OkY.js.map +0 -1
- package/dist/types-B2yU6e4d.d.ts.map +0 -1
- package/dist/utils-BJxZkzLz.js +0 -3
- package/dist/utils-BJxZkzLz.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RunProgress-CUH5MGf2.d.ts","names":[],"sources":["../src/components/run/RunStatusBadge.tsx","../src/components/run/RunList.tsx","../src/components/run/RunProgress.tsx"],"mappings":";;;;;;;;;;KAWY,SAAA;;;AAAZ;;;;;AAmBA;;;;;;;;;AAoBA;iBApBgB,cAAA,CAAe,GAAA,EAAK,GAAA,GAAM,SAAA;;;;UAoBzB,mBAAA;EAIf;EAFA,MAAA,EAAQ,SAAA;EAMR;EAJA,WAAA;EAIS;EAFT,IAAA;EAkD8B;EAhD9B,SAAA;AAAA;;;;;;;;;;;;;;;;;;;;;AAqFF;;;;;AAMA;;iBA3CS,uBAAA,CAAA;EACP,MAAA;EACA,WAAA;EACA,IAAA;EACA;AAAA,GACC,mBAAA,GAAmB,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,cAgCT,cAAA,EAAc,OAAA,CAAA,mBAAA,QAAA,uBAAA;;AAyB3B;;iBAnBgB,aAAA,CAAc,IAAA,EAAM,IAAA;;;AA+CpC;iBA5BgB,iBAAA,CAAkB,IAAA,EAAM,IAAA;;;;UA4BvB,sBAAA;EAIf;EAFA,MAAA,EAAQ,SAAA;EAIR;EAFA,KAAA,YAAiB,IAAA;EAER;EAAT,SAAA;AAAA;;;;;;;;;;;;;;iBAgBO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A,QAAA,oBAAA;;;;UAMP,uBAAA,SAAgC,gBAAA;EFmBhC;EEjBf,OAAA;;EAEA,OAAA;AAAA;;;;;;;AFsBD;;;;;;;;;;;iBEFQ,2BAAA,CAAA;EACP,OAAA;EACA,OAAA;EAAA,GACG;AAAA,GACF,uBAAA,GAAuB,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,cAuBb,kBAAA,EAAkB,OAAA,CAAA,mBAAA,QAAA,2BAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SplitPane-BSbw-X0w.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,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,cAmDN,WAAA,EAAW,OAAA,CAAA,mBAAA,QAAA,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AAA,EAAU,OAAA,CAAA,mBAAA,QAAA,mBAAA;;;;;;KCpKX,cAAA;;;;UAKK,cAAA;EjBLL;EiBOV,QAAA,EAAU,SAAA;;EAEV,SAAA,GAAY,cAAA;EjBTc;EiBW1B,KAAA;EjBT+B;EiBW/B,QAAA;EjBX6C;EiBa7C,QAAA;EjBXA;EiBaA,UAAA;EjBXA;EiBaA,UAAA;EjBXK;EiBaL,YAAA;EjBVU;EiBYV,SAAA,IAAa,KAAA;;EAEb,MAAA,IAAU,KAAA;EjBdsC;EiBgBhD,KAAA;EjBd0B;EiBgB1B,KAAA,GAAQ,aAAA;EjBhBqB;EiBkB7B,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,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,cAqDJ,SAAA,EAAS,OAAA,CAAA,mBAAA,QAAA,kBAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-BqEL56ty.d.ts","names":[],"sources":["../src/contexts/instance/types.ts","../src/contexts/instance/RecceInstanceContext.tsx","../src/contexts/instance/useRecceInstanceInfo.ts","../src/contexts/action/types.ts","../src/contexts/action/RecceActionContext.tsx","../src/contexts/idle/types.ts","../src/contexts/idle/IdleTimeoutContext.tsx","../src/contexts/idle/useIdleDetection.ts"],"mappings":";;;;;;;;;;;;;KAQY,gBAAA;;;;;UAMK,mBAAA;EAAmB;EAElC,IAAA,EAAM,gBAAA;EAAgB;EAEtB,iBAAA;EAFM;EAIN,sBAAA;EAAA;EAEA,sBAAA;EAEA;EAAA,sBAAA;EAIA;EAFA,oBAAA;EAMA;EAJA,yBAAA;EAIY;EAF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A;EF7DD;EEgEC,WAAA;EFmCc;EEhCd,cAAA,EAAgB,QAAA,CAAS,cAAA;;EAGzB,cAAA;AAAA;;;;;;;AH7GF;;UIciB,wBAAA;EACf,QAAA,EAAU,SAAA;EJfgB;AAM5B;;;;;;;;EIoBE,WAAA,IACE,IAAA,UACA,MAAA,GAAS,gBAAA,EACT,OAAA,GAAU,kBAAA,KACP,OAAA;EJdL;;;;;;;EIuBA,WAAA,IAAe,KAAA,UAAe,cAAA;EJRC;EIW/B,YAAA;EJHwB;EIMxB,kBAAA;AAAA;;;;;;;;;;AJMF;;;;;AAeA;;;;iBIgBgB,mBAAA,CAAA;EACd,QAAA;EACA,WAAA;EACA,WAAA;EACA,YAAA;EACA;AAAA,GACC,wBAAA,GAAwB,oBAAA,CAAA,GAAA,CAAA,OAAA;;;;AHrD3B;;iBGyJgB,qBAAA,CAAA,GAAyB,sBAAA;;;;;;;;;AJ5LzC;UKGiB,sBAAA;;EAEf,gBAAA;ELL0B;EKO1B,WAAA;ELDkC;EKGlC,SAAA;ELDsB;EKGtB,eAAA;ELHM;EKKN,eAAA;ELDA;EKGA,cAAA;AAAA;;;;;iBAWc,kBAAA,CAAA,GAAsB,sBAAA;;;;;;;AL1BtC;;iBMgBgB,mBAAA,CAAA;EAAsB;AAAA;EAAc,QAAA,EAAU,SAAA;AAAA,IAAW,oBAAA,CAAA,GAAA,CAAA,OAAA;ANVzE;;;;AAAA,iBM0HgB,cAAA,CAAA,GAAc,sBAAA;;;;;;;;;ANhI9B;;;;;AAMA;;iBOmDgB,gBAAA,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-DHyGyyCa.d.ts","names":[],"sources":["../src/components/run/RunListOss.tsx","../src/components/run/RunModal.tsx","../src/components/run/RunModalOss.tsx","../src/components/run/RunResultPane.tsx","../src/components/run/RunResultPaneOss.tsx","../src/components/run/RunView.tsx","../src/components/run/RunViewOss.tsx","../src/components/run/registry.ts"],"mappings":";;;;;;;;;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;;;;;;;;;;;;;;iBA+Ba,wBAAA,CACd,GAAA,EAAK,WAAA,cACO,OAAA,EAAS,OAAA,EAAS,CAAA,KAAM,WAAA,CAAY,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lineage-DNT0kUP_.d.ts","names":[],"sources":["../src/components/lineage/config/zoomConstants.ts","../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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiBa,gBAAA;;cAGA,gBAAA;;cAGA,gBAAA;;cAGA,UAAA;;;iBC2EG,OAAA,CAAA,GAAO,oBAAA,CAAA,GAAA,CAAA,OAAA;;;UCxEb,eAAA;EACR,QAAA,EAAU,SAAA;;EAEV,OAAA,EAAS,SAAA;AAAA;AAAA,iBA4BK,UAAA,CAAA;EAAa,QAAA;EAAU;AAAA,GAAW,eAAA,GAAe,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,UAqCvD,SAAA;EACR,QAAA,EAAU,SAAA;EACV,OAAA,EAAS,SAAA;EACT,cAAA;;EAEA,sBAAA;AAAA;AAAA,iBAGc,IAAA,CAAA;EACd,QAAA;EACA,OAAA;EACA,cAAA;EACA;AAAA,GACC,SAAA,GAAS,oBAAA,CAAA,GAAA,CAAA,OAAA;;;UCZF,gBAAA;EACR,OAAA;EACA,gBAAA;AAAA;AAAA,iBAKc,cAAA,CAAA;EACd,OAAA;EACA;AAAA,GACC,gBAAA,GAAmB,SAAA;;;cCzFT,kBAAA,QAAkB,oBAAA,CAAA,GAAA,CAAA,OAAA;;;cC8ElB,YAAA;EAAgB,MAAA;EAAA,YAAA;EAAA,eAAA;EAAA;AAAA;EAM3B,MAAA,EAAQ,KAAA;EACR,YAAA;EACA,eAAA,GAAkB,OAAA;EAClB,iBAAA,GAAoB,MAAA,UAAgB,WAAA;AAAA,MACrC,oBAAA,CAAA,GAAA,CAAA,OAAA;;;cCnFY,mBAAA,QAA0B,SAAA;;;;;;cCb1B,mBAAA,QAA0B,SAAA;;;cCyE1B,eAAA;EAAiB,QAAA;EAAA;AAAA;EAI5B,QAAA,EAAU,SAAA;EACV,QAAA,GAAW,OAAA,CAAM,YAAA,GAAe,cAAA;AAAA,MACjC,oBAAA,CAAA,GAAA,CAAA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,WAAA,CACd,YAAA,EAAc,YAAA,EACd,OAAA;EACE,aAAA;EACA,GAAA,GAAM,iBAAA;EACN,iBAAA,GAAoB,GAAA;IAAc,CAAA;IAAW,CAAA;EAAA;AAAA,KAE7C,iBAAA,IAAqB,gBAAA,IAAoB,gBAAA;;;;;A7CrB7C;;;;;AAGA;c6C+Ma,MAAA,GACX,KAAA,EAAO,iBAAA,IACP,KAAA,EAAO,gBAAA,IACP,SAAA"}
|
package/dist/src-_Brn8OkY.js
DELETED
|
@@ -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,X as d,_t as f,a as p,c as m,d as h,et as g,gt as _,h as v,it as y,j as b,k as x,l as S,lt as C,m as w,mt as T,n as E,nt as D,o as O,p as k,s as ee,u as te,w as ne,x as re}from"./api-E1dkaTi_.js";import{c as ie,f as A}from"./keepAlive-DbC0X4zr.js";import{r as ae,t as j}from"./fetchClient-BVyYwVMf.js";import{C as oe,O as M,T as se,_ as N,a as P,b as F,d as ce,f as le,g as ue,h as de,j as fe,k as pe,l as me,m as he,o as ge,p as _e,s as ve,u as ye,v as be,w as xe,y as Se}from"./utils-BJxZkzLz.js";import{i as Ce,n as I}from"./colors-BbPSDR1X.js";import{$t as we,A as Te,Bt as Ee,Cn as De,Dn as Oe,E as ke,En as Ae,Fn as je,Ft as Me,Gt as Ne,Ht as Pe,In as Fe,It as Ie,L as Le,Lt as Re,M as L,Mn as R,Nn as ze,Nt as Be,O as Ve,Qt as He,Rt as z,S as Ue,T as We,Tn as Ge,Ut as Ke,V as B,Vt as qe,Wt as Je,Xt as Ye,Yt as Xe,Zt as Ze,_n as Qe,_t as $e,an as et,bn as tt,bt as nt,c as rt,d as it,dt as at,en as ot,f as st,gn as ct,hn as lt,in as ut,j as dt,k as ft,ln as pt,lt as mt,m as ht,n as gt,o as _t,on as vt,p as yt,pt as bt,r as xt,rn as St,s as Ct,sn as wt,t as Tt,tn as Et,tt as Dt,un as Ot,ut as kt,v as At,vn as jt,w as Mt,wn as Nt,yn as Pt,yt as Ft}from"./AuthModal-CXrikA-g.js";import{Ft as It,Pt as Lt,Q as Rt,a as zt,ct as Bt,dt as Vt,i as Ht,m as Ut,n as Wt,o as Gt,r as Kt,s as qt,t as Jt}from"./utils-Crcz1Rb5.js";import{fetchGitHubAvatar as Yt,fetchUser as Xt}from"./lib/api/user.js";import{PUBLIC_CLOUD_WEB_URL as Zt,RECCE_SUPPORT_CALENDAR_URL as Qt}from"./lib/const.js";import{EXPLORE_ACTION as $t,EXPLORE_FORM_EVENT as en,EXPLORE_SOURCE as tn,trackColumnLevelLineage as nn,trackCopyToClipboard as rn,trackEnvironmentConfig as an,trackExploreAction as on,trackExploreActionForm as sn,trackHistoryAction as cn,trackInit as ln,trackLineageSelection as un,trackLineageViewRender as dn,trackMultiNodesAction as fn,trackNavigation as pn,trackPreviewChange as mn,trackPreviewChangeFeedback as hn,trackShareState as gn,trackSingleEnvironment as _n,trackStateAction as vn}from"./lib/api/track.js";import{t as yn}from"./constants-D-hOGDbU.js";import{QueryClient as bn,QueryClientProvider as xn,useMutation as Sn,useQuery as Cn,useQueryClient as wn}from"@tanstack/react-query";import{Suspense as Tn,createContext as En,forwardRef as Dn,memo as On,useCallback as V,useContext as kn,useEffect as An,useImperativeHandle as jn,useLayoutEffect as Mn,useMemo as H,useRef as Nn,useState as U}from"react";import{Fragment as W,jsx as G,jsxs as K}from"react/jsx-runtime";import q from"@mui/material/Box";import J from"@mui/material/Button";import Pn from"@mui/material/Dialog";import Fn from"@mui/material/DialogActions";import In from"@mui/material/DialogContent";import Ln from"@mui/material/DialogTitle";import Rn from"@mui/material/Link";import Y from"@mui/material/Stack";import X from"@mui/material/Typography";import{LuExternalLink as zn,LuSave as Bn}from"react-icons/lu";import{alpha as Vn,useTheme as Hn}from"@mui/material/styles";import{useTheme as Un}from"next-themes";import Z from"@mui/material/IconButton";import Wn from"next/link";import{IoBookmarksOutline as Gn,IoClose as Kn,IoSync as qn,IoWarning as Jn}from"react-icons/io5";import Yn from"@mui/material/Divider";import Xn from"@mui/material/CircularProgress";import Q from"@mui/material/Tooltip";import{FaCloud as Zn,FaExpandArrowsAlt as Qn,FaGithub as $n,FaQuestionCircle as er,FaRegDotCircle as tr,FaSlack as nr,FaUser as rr}from"react-icons/fa";import{PiBookmarkSimple as ir,PiCaretDown as ar,PiChatText as or,PiCheckCircle as sr,PiCircle as cr,PiCopy as lr,PiExport as ur,PiInfo as dr,PiInfoFill as fr,PiMoon as pr,PiNotePencil as mr,PiPencil as hr,PiPencilSimple as gr,PiPlusCircle as _r,PiRepeat as vr,PiSun as yr,PiTrashFill as br,PiTrashSimple as xr,PiX as Sr}from"react-icons/pi";import Cr from"@mui/material/Chip";import{Background as wr,BackgroundVariant as Tr,BaseEdge as Er,ControlButton as Dr,Controls as Or,MiniMap as kr,Panel as Ar,Position as jr,ReactFlow as Mr,ReactFlowProvider as Nr,getBezierPath as Pr,getNodesBounds as Fr,useEdgesState as Ir,useNodesState as Lr,useReactFlow as Rr,useStore as zr}from"@xyflow/react";import Br from"file-saver";import Vr from"@mui/material/Checkbox";import Hr from"@mui/material/FormControlLabel";import{useCopyToClipboard as Ur,useInterval as Wr}from"usehooks-ts";import Gr from"@mui/material/Alert";import Kr from"@mui/material/Menu";import qr from"@mui/material/MenuItem";import{isEmpty as Jr}from"lodash";import{VscCircleLarge as Yr,VscFeedback as Xr,VscGitPullRequest as Zr,VscHistory as Qr,VscKebabVertical as $r}from"react-icons/vsc";import ei from"@mui/material/ListSubheader";import ti from"@mui/material/TextField";import{format as ni,formatDistanceToNow as ri,parseISO as ii}from"date-fns";import ai from"@mui/material/Tab";import oi from"@mui/material/Tabs";import si from"@mui/material/List";import ci from"@mui/material/ListItem";import"@xyflow/react/dist/style.css";import{Box as li,Typography as ui}from"@mui/material";import di from"@mui/material/Avatar";import fi from"@mui/material/Popover";import{usePathname as pi,useRouter as mi,useSearchParams as hi}from"next/navigation";import{TbChecklist as gi,TbCloudUpload as _i,TbEdit as vi}from"react-icons/tb";import yi from"@mui/material/ListItemIcon";import bi from"@mui/material/ListItemText";import{FiArrowRight as xi,FiCopy as Si,FiInfo as Ci,FiPackage as wi}from"react-icons/fi";import Ti from"@mui/material/Switch";import{RiArrowDownSFill as Ei,RiArrowUpSFill as Di,RiMindMap as Oi,RiSwapLine as ki,RiTerminalBoxLine as Ai}from"react-icons/ri";import{FaBookmark as ji,FaFileImport as Mi}from"react-icons/fa6";import{BiArrowFromBottom as Ni,BiArrowToBottom as Pi}from"react-icons/bi";import Fi from"@dagrejs/dagre";import Ii from"@mui/material/Skeleton";import{AiOutlineExperiment as Li}from"react-icons/ai";import Ri from"@mui/material/Radio";import zi from"@mui/material/RadioGroup";import Bi from"@mui/material/Table";import Vi from"@mui/material/TableBody";import $ from"@mui/material/TableCell";import Hi from"@mui/material/TableContainer";import Ui from"@mui/material/TableHead";import Wi from"@mui/material/TableRow";import Gi from"@mui/material/Badge";import Ki from"@mui/material/Grid";import{stripIndents as qi}from"common-tags";import{IoMdCodeWorking as Ji}from"react-icons/io";import{DragDropContext as Yi,Draggable as Xi,Droppable as Zi}from"@hello-pangea/dnd";import Qi from"@mui/material/Card";import $i from"@mui/material/CardContent";import ea from"@mui/material/CardHeader";const ta=En(null);ta.displayName=`RecceRoutingContext`;function na(){return kn(ta)||{basePath:``,buildPath:e=>e,pathname:``,navigate:e=>{typeof window<`u`&&(window.location.href=e)}}}function ra(){let{pathname:e,navigate:t}=na();return[e,t]}function ia({children:e,config:t}){let n=t?.basePath??``,r=t?.pathname??``,i=t?.onNavigate,a=V(e=>n?`${n}${e.startsWith(`/`)?e:`/${e}`}`:e,[n]),o=V((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=H(()=>({basePath:n,buildPath:a,pathname:r,navigate:o}),[n,a,r,o]);return G(ta.Provider,{value:s,children:e})}const aa=e=>new bn({defaultOptions:{queries:{staleTime:e?.staleTime??1e3*60,gcTime:e?.gcTime??1e3*60*5,retry:1,refetchOnWindowFocus:!1}}});function oa({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=H(()=>aa({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=G(ia,{config:r,children:y}),y=G(It,{defaultMode:n,children:y}),y=G(ie,{config:t,children:y}),y=G(xn,{client:f,children:y}),v&&(y=G(ze,{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=G(je,{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=G(M,{onRunAction:a?.onRunAction,onShowRunId:a?.onShowRunId,initialRunId:a?.initialRunId,initialHistoryOpen:a?.initialHistoryOpen,children:y})),h&&(y=G(ue,{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=G(Se,{children:y})),p&&(y=G(oe,{children:y})),y}function sa({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 G(q,{sx:{bgcolor:`background.paper`,borderRadius:1,boxShadow:6},children:K(Y,{direction:`row`,divider:G(Yn,{orientation:`vertical`,flexItem:!0}),spacing:2,sx:{p:`5px 15px`,mt:2},children:[K(q,{sx:{fontSize:`10pt`},children:[`Progress: `,r(),` `,e.status===`canceled`?` (canceled)`:``]}),i?G(J,{size:`small`,variant:`outlined`,onClick:t,disabled:e.status===`canceling`,children:e.status===`canceling`?`Canceling`:`Cancel`}):G(Y,{direction:`row`,children:G(J,{size:`small`,variant:`outlined`,onClick:n,children:`Close`})})]})})}const ca=({lineageGraph:e,cllInput:t,onCenterNode:n})=>{let r={cursor:`pointer`,fontFamily:`monospace`,bgcolor:Lt()?`grey.700`:`grey.100`,px:.5,borderRadius:.5};if(!e)return G(W,{});if(!t)return G(W,{children:`Default View`});if(t.node_id===void 0)return G(X,{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 K(W,{children:[G(X,{component:`span`,sx:{mr:`5px`},children:`Impact Radius for`}),G(q,{component:`code`,onClick:()=>{n(e)},sx:r,children:i})]})}let a=`${t.node_id}_${t.column}`;return K(W,{children:[K(X,{component:`span`,sx:{mr:`5px`},children:[`Column Lineage for`,` `]}),K(q,{component:`code`,onClick:()=>{n(a)},sx:r,children:[i,`.`,t.column]})]})},la=({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 K(Y,{direction:`row`,spacing:`5px`,children:[!i&&G(q,{sx:{borderRadius:1,boxShadow:3},children:G(Q,{enterDelay:50,title:a?d?`Please provide catalog.json to enable Impact Radius`:``:`Requires warehouse connection`,placement:`top`,children:G(`span`,{children:G(J,{size:`small`,variant:`outlined`,color:`neutral`,sx:{whiteSpace:`nowrap`,display:`inline-flex`,bgcolor:`background.paper`},disabled:!t||d||!a||e.isPending,startIcon:G(tr,{}),onClick:()=>{l?.(!0),o({no_upstream:!0,change_analysis:!0})},children:`Impact Radius`})})})}),u&&K(Y,{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:[G(ca,{lineageGraph:r,cllInput:u,onCenterNode:c}),e.isError&&G(Q,{title:`Error: ${e.error.message}`,placement:`bottom`,children:G(X,{component:`span`,sx:{color:`error.main`,ml:`2px`,display:`inline-flex`,alignItems:`center`},children:G(q,{component:dr,sx:{color:`error.main`,fontSize:`14px`}})})}),e.isPending?G(Xn,{size:12,sx:{ml:`2px`}}):G(Z,{size:`small`,sx:{ml:`2px`},"aria-label":`Reset Column Level Lineage`,onClick:()=>{s()},children:G(Sr,{size:`10px`})})]})]})};function ua({onClose:e}){let{cancel:t,actionState:n}=de();return G(sa,{actionState:n,onCancel:t,onClose:e})}const da=({action:e})=>{let{showColumnLevelLineage:t,resetColumnLevelLineage:n,interactive:r,viewOptions:i,centerNode:a,setChangeAnalysisMode:o}=de(),{data:s}=ye(),c=s?.single_env_onboarding??!1,{lineageGraph:l,isActionAvailable:u}=N();return G(la,{action:e,interactive:r,viewOptions:i,lineageGraph:l,singleEnvMode:c,changeAnalysisAvailable:u(`change_analysis`),onShowCll:t,onResetCll:()=>n(),onCenterNode:a,setChangeAnalysisMode:o})};function fa(e){let{id:t,data:n}=e,{id:r}=n.node,{column:i,type:a,transformationType:o,changeStatus:s}=n,c=zr(e=>e.transform[2]>.3),{isDark:l}=gt(),{viewOptions:u,showContextMenu:d,isNodeHighlighted:f,isNodeShowingChangeAnalysis:p}=de(),m=u.column_level_lineage?.node_id,h=i===u.column_level_lineage?.column&&r===m,g=f(t),_=p(r);return G(De,{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 pa=On(fa);pa.displayName=`GraphColumnNode`;function ma(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=Pt(d.changeStatus).hexColor,p.strokeDasharray=`5`),!f||f(t,n)||(p.filter=Nt);let[m]=Pr({sourceX:r,sourceY:i,sourcePosition:s,targetX:a,targetY:o,targetPosition:c});return G(W,{children:G(Er,{path:m,markerEnd:u,style:{...p,...l}})})}const ha=On(ma);ha.displayName=`GraphEdge`;function ga(e){let{isEdgeHighlighted:t}=de();return G(ha,{...e,isEdgeHighlighted:t})}const _a=()=>G(`svg`,{stroke:`currentColor`,fill:`currentColor`,strokeWidth:`0`,viewBox:`0 0 256 256`,height:`1em`,width:`1em`,xmlns:`http://www.w3.org/2000/svg`,children:G(`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`})}),va=()=>G(`svg`,{stroke:`currentColor`,fill:`currentColor`,strokeWidth:`0`,viewBox:`0 0 256 256`,height:`1em`,width:`1em`,xmlns:`http://www.w3.org/2000/svg`,children:G(`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 ya({skipReason:e}){return G(Cr,{size:`small`,label:K(Y,{direction:`row`,sx:{fontSize:`10pt`,color:`grey.500`,alignItems:`center`,gap:`3px`},children:[G(q,{children:`Skipped`}),e&&G(Q,{title:e,children:G(q,{component:`span`,sx:{display:`flex`},children:G(_a,{})})})]}),sx:{bgcolor:`grey.100`}})}function ba({errorMessage:e}){return K(Y,{direction:`row`,sx:{fontSize:`10pt`,color:`gray`,alignItems:`center`},children:[G(q,{children:`Error`}),e&&G(Q,{title:e,children:G(q,{component:`span`,sx:{display:`flex`},children:G(va,{})})})]})}function xa({result:e}){let{mismatchedColumns:t}=e,n=t>0;return G(Cr,{size:`small`,sx:{bgcolor:n?`error.light`:`success.light`},label:G(Y,{direction:`row`,sx:{fontSize:`10pt`,color:n?`error.main`:`success.main`,alignItems:`center`,gap:`3px`},children:n?`${t} columns mismatched`:`All columns match`})})}function Sa({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=`=`),G(Cr,{size:`small`,sx:{bgcolor:`grey.100`},label:K(Y,{direction:`row`,sx:{fontSize:`10pt`,alignItems:`center`,gap:`3px`},children:[G(q,{children:r}),G(q,{children:`→`}),G(q,{children:i}),a&&G(q,{component:`span`,sx:{color:o,ml:.5},children:a})]})})}function Ca({status:e,skipReason:t,errorMessage:n,progress:r,valueDiffResult:i,rowCountDiffResult:a,runId:o,"data-testid":s}){return e===`pending`?G(Xn,{size:16,"data-testid":s,"data-status":`pending`}):e===`skipped`?G(q,{"data-testid":s,"data-status":`skipped`,children:G(ya,{skipReason:t})}):e===`running`?r?.percentage===void 0?G(Xn,{size:16,"data-testid":s,"data-status":`running`}):G(Xn,{variant:`determinate`,value:r.percentage*100,size:16,"data-testid":s,"data-status":`running`}):e===`error`?G(q,{"data-testid":s,"data-status":`error`,children:G(ba,{errorMessage:n})}):i?G(q,{"data-testid":s,"data-status":`success`,children:G(xa,{result:i})}):a?G(q,{"data-testid":s,"data-status":`success`,children:G(Sa,{result:a})}):G(q,{"data-testid":s,"data-status":`success`,children:o||`Complete`})}const wa=On(Ca);wa.displayName=`ActionTag`;const Ta={success:`#059669`,failure:`#ef4444`,error:`#ef4444`,warning:`#f59e0b`},Ea={success:`PASSED`,failure:`FAILED`,error:`ERROR`,warning:`WARNING`};function Da(e){return Ta[e]??`#6b7280`}function Oa(e){return Ea[e]??e.toUpperCase()}function ka({run:e,index:t,onClick:n}){let r=Da(e.status),i=Oa(e.status),a=ri(new Date(e.run_at),{addSuffix:!0}),o=!!n;return K(li,{component:o?`button`:`div`,type:o?`button`:void 0,onClick:o?()=>n?.(e.run_id):void 0,"aria-label":o?`View run #${t} — ${i}`:void 0,sx:{p:1,border:`none`,borderLeft:`3px solid ${r}`,borderRadius:1,bgcolor:`action.hover`,cursor:o?`pointer`:`default`,"&:hover":o?{bgcolor:`action.selected`}:{},textAlign:`left`,width:`100%`,font:`inherit`,color:`inherit`},children:[K(ui,{variant:`body2`,sx:{fontWeight:600,fontSize:`0.75rem`},children:[`Run #`,t,` — `,i,e.triggered_by===`recce_ai`&&G(ui,{component:`span`,sx:{ml:.75,fontSize:`0.65rem`,fontWeight:500,color:`#7c3aed`},children:`by AI`})]}),e.summary&&G(ui,{variant:`body2`,sx:{color:`text.secondary`,fontSize:`0.7rem`,mt:.25},children:e.summary}),G(ui,{variant:`body2`,sx:{color:`text.secondary`,fontSize:`0.65rem`,mt:.25},children:a})]})}function Aa({event:e}){let t=l(e),n={create:_r,comment:or,approve:sr,unapprove:cr,edit:mr,preset:ir},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 G(q,{component:i,sx:{color:a,fontSize:16}})}function ja({event:e}){let{actor:t}=e,{avatarUrl:n}=qe({userId:t.user_id}),r=(t.fullname||t.login||`User`).charAt(0).toUpperCase();return G(di,{src:n||void 0,sx:{width:24,height:24,fontSize:`0.75rem`},children:r})}function Ma({event:e}){let{actor:t}=e,n=t.fullname||t.login||`Someone`,r=ri(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 K(q,{sx:{display:`flex`,gap:1,alignItems:`flex-start`,py:1},children:[G(q,{sx:{pt:`2px`},children:G(Aa,{event:e})}),G(q,{sx:{flex:1},children:K(Y,{direction:`row`,spacing:.5,flexWrap:`wrap`,alignItems:`center`,children:[G(ja,{event:e}),G(X,{variant:`body2`,fontWeight:`500`,children:n}),G(X,{variant:`body2`,color:`text.secondary`,children:i}),G(X,{variant:`caption`,color:`text.disabled`,children:r})]})})]})}function Na({event:e,currentUserId:t,onEdit:n,onDelete:r}){let i=Lt(),[a,o]=U(!1),[s,c]=U(e.content||``),[l,u]=U(!1),[d,f]=U(!1),[p,m]=U(null),h=!!p,{actor:g}=e,_=g.fullname||g.login||`Someone`,v=ri(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?K(q,{sx:{display:`flex`,gap:1,alignItems:`center`,py:1},children:[G(q,{sx:{pt:`2px`,display:`flex`,alignItems:`center`},children:G(Aa,{event:e})}),G(q,{sx:{display:`flex`,flex:1,alignItems:`center`},children:G(X,{variant:`body2`,color:`text.disabled`,fontStyle:`italic`,children:`Comment deleted`})})]}):K(q,{sx:{display:`flex`,gap:1,alignItems:`flex-start`,py:1},children:[G(q,{sx:{pt:`2px`},children:G(Aa,{event:e})}),K(q,{sx:{flex:1},children:[K(Y,{direction:`row`,spacing:.5,sx:{mb:.5},flexWrap:`wrap`,alignItems:`center`,children:[G(ja,{event:e}),K(X,{variant:`body2`,fontWeight:`500`,children:[_,y&&K(X,{component:`span`,variant:`body2`,color:`text.secondary`,children:[` `,`(Author)`]})]}),G(X,{variant:`caption`,color:`text.disabled`,children:v}),e.is_edited&&G(X,{variant:`caption`,color:`text.disabled`,children:`(edited)`})]}),a?K(q,{children:[G(ti,{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`}}}}),K(Y,{direction:`row`,spacing:1,sx:{mt:1},justifyContent:`flex-end`,children:[G(J,{size:`small`,variant:`text`,onClick:x,disabled:l,children:`Cancel`}),G(J,{size:`small`,variant:`contained`,onClick:S,disabled:!s.trim()||l,children:l?`Saving...`:`Save`})]})]}):K(q,{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:[G(bt,{content:e.content||``,fontSize:`sm`}),y&&(n||r)&&K(Y,{className:`comment-actions`,direction:`row`,spacing:0,sx:{position:`absolute`,top:4,right:4,opacity:0,transition:`opacity 0.2s`},children:[n&&G(Q,{title:`Edit comment`,children:G(Z,{"aria-label":`Edit comment`,size:`small`,onClick:b,children:G(gr,{})})}),r&&K(W,{children:[G(Q,{title:`Delete comment`,children:G(Z,{"aria-label":`Delete comment`,size:`small`,color:`error`,onClick:w,children:G(xr,{})})}),G(fi,{open:h,anchorEl:p,onClose:T,anchorOrigin:{vertical:`bottom`,horizontal:`center`},transformOrigin:{vertical:`top`,horizontal:`center`},children:K(q,{sx:{p:2},children:[G(X,{variant:`body2`,sx:{mb:2},children:`Delete this comment?`}),K(Y,{direction:`row`,spacing:1,justifyContent:`flex-end`,children:[G(J,{size:`small`,variant:`text`,onClick:T,disabled:d,children:`Cancel`}),G(J,{size:`small`,variant:`contained`,color:`error`,onClick:E,disabled:d,children:d?`Deleting...`:`Delete`})]})]})})]})]})]})]})]})}function Pa({event:e,currentUserId:t,onEdit:n,onDelete:r}){return e.event_type===`comment`?G(Na,{event:e,currentUserId:t,onEdit:n,onDelete:r}):G(Ma,{event:e})}function Fa(e,t){let n=e?.toLowerCase();return n===`finished`?t?`error`:`success`:n===`failed`?`error`:e??`unknown`}function Ia(e,t){let n=[];for(let t of e)n.push({kind:`event`,event:t,at:t.created_at});if(t){let e=[...t].sort((e,t)=>new Date(e.run_at).getTime()-new Date(t.run_at).getTime());for(let t=0;t<e.length;t++)n.push({kind:`run`,run:e[t],index:t+1,at:e[t].run_at})}return n.sort((e,t)=>new Date(t.at).getTime()-new Date(e.at).getTime()),n}function La({checkId:e}){let t=Lt(),{apiClient:n,authToken:r}=Pe(),{events:i,isLoading:a,error:o,createComment:s,isCreatingComment:c,updateComment:l,deleteComment:u}=it(e),{data:f}=Cn({queryKey:A.user(),queryFn:()=>Xt(n),retry:!1}),{data:p}=Cn({queryKey:[`check-runs`,e],queryFn:async()=>(await d(n)).filter(t=>t.check_id===e).map(e=>({run_id:e.run_id,run_at:e.run_at,status:Fa(e.status,e.error),summary:e.error||void 0,triggered_by:e.triggered_by})),enabled:!!r,staleTime:3e4}),m=H(()=>Ia(i,p),[i,p]),h=e=>{s(e)},g=async(e,t)=>{await l({eventId:e,content:t})},_=async e=>{await u(e)};return a?G(q,{sx:{height:`100%`,p:4,display:`flex`,justifyContent:`center`,alignItems:`center`},children:G(Xn,{size:20})}):o?G(q,{sx:{height:`100%`,p:4,display:`flex`,justifyContent:`center`,alignItems:`center`},children:G(X,{sx:{fontSize:`0.875rem`,color:`error.main`},children:`Failed to load timeline`})}):K(Y,{sx:{height:`100%`,alignItems:`stretch`,borderLeft:`1px solid`,borderColor:t?`grey.700`:`grey.200`},spacing:0,children:[G(q,{sx:{px:3,py:2,borderBottom:`1px solid`,borderColor:t?`grey.700`:`grey.200`},children:G(X,{variant:`subtitle2`,sx:{fontWeight:500},children:`Activity`})}),G(q,{sx:{flex:1,overflowY:`auto`,px:3,py:2},children:m.length===0?G(X,{sx:{fontSize:`0.875rem`,color:`grey.500`},children:`No activity yet`}):G(Y,{sx:{alignItems:`stretch`},spacing:0,children:m.map((e,n)=>K(q,{children:[e.kind===`event`?G(Pa,{event:e.event,currentUserId:f?.id,onEdit:g,onDelete:_}):G(ka,{run:e.run,index:e.index}),n<m.length-1&&G(Yn,{sx:{borderColor:t?`grey.700`:`grey.100`}})]},e.kind===`event`?e.event.id:e.run.run_id))})}),G(q,{sx:{px:3,py:3,borderTop:`1px solid`,borderColor:t?`grey.700`:`grey.200`,bgcolor:t?`grey.900`:`grey.50`},children:G(Ee,{onSubmit:h,isSubmitting:c})})]})}function Ra({color:e}){return G(q,{component:`span`,sx:{display:`inline-block`,width:`10px`,height:`10px`,bgcolor:e,mr:1,borderRadius:`4px`}})}const za=({defaultPrimaryKeys:e,onPrimaryKeysChange:t,...n})=>{let{lineageGraph:r,isActionAvailable:i}=N(),a=H(()=>{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 G(q,{sx:{display:`flex`},...n,children:K(Y,{spacing:0,sx:{m:`0 0.5rem`},children:[K(Y,{direction:`row`,alignItems:`center`,spacing:.5,children:[G(X,{component:`label`,sx:{fontSize:`0.625rem`,color:`text.secondary`},children:`Diff with Primary Key(s) (suggested)`}),G(Q,{title:`Provide a primary key to perform query diff in data warehouse and only return changed rows.`,placement:`bottom-end`,children:G(q,{component:`span`,sx:{display:`flex`,color:`grey.600`,cursor:`help`},children:G(dr,{fontSize:`0.75rem`})})})]}),G(Ot,{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 Ba({supportCalendarUrl:e=`https://cal.com/team/recce/chat`}){let{data:t}=se();return G(`div`,{className:`flex flex-1 h-full min-h-0 m-2 p-4 bg-blue-50 rounded-lg shadow-md justify-center`,children:K(`div`,{className:`w-4/5 flex flex-col overflow-y-auto gap-6 px-8 pb-8`,children:[K(Y,{alignItems:`center`,spacing:2,children:[G(q,{sx:{p:1,bgcolor:`background.paper`,borderRadius:`50%`,display:`flex`,alignItems:`center`,justifyContent:`center`,boxShadow:2},children:G(q,{component:Ai,sx:{fontSize:28,color:`iochmara.500`}})}),G(X,{variant:`h5`,sx:{mt:2},children:`Wait, there's more!`}),K(X,{sx:{fontSize:`1rem`,textAlign:`center`},children:[`Query functions disabled without a`,` `,G(X,{component:`span`,sx:{fontWeight:`bold`},children:`data warehouse connection`})]})]}),G(Y,{sx:{width:`50%`,mt:3,mx:`auto`},children:G(J,{color:`iochmara`,variant:`contained`,size:`large`,onClick:()=>{window.open(Jt(t,e),`_blank`)},children:`Connect to Data Warehouse`})})]})})}const Va=()=>{let{isCustomQueries:e,setCustomQueries:t,sqlQuery:n,setBaseSqlQuery:r}=Ue();return K(q,{children:[K(Y,{direction:`row`,spacing:.5,alignItems:`center`,fontSize:`0.75rem`,children:[G(X,{variant:`body2`,sx:{fontSize:`0.75rem`},children:`Custom Queries`}),G(Q,{title:`Custom queries allow you to use two SQL queries to compare results between current and base environments.`,children:G(q,{component:`span`,sx:{display:`flex`,color:`grey.600`},children:G(fr,{fontSize:`1rem`})})})]}),G(Ti,{size:`small`,checked:e,onChange:()=>{!e&&r&&r(n),t(!e)},color:`primary`})]})},Ha=()=>{let{sqlQuery:e,baseSqlQuery:t,setSqlQuery:n,setBaseSqlQuery:i,primaryKeys:o,setPrimaryKeys:s,isCustomQueries:c}=Ue(),{lineageGraph:l,envInfo:d}=N(),{featureToggles:f,singleEnv:p}=xe(),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 ${Qt}\n${m}`);let{showRunId:h}=pe(),{apiClient:_}=Pe(),{mutate:v,isPending:y}=Sn({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 h(f),await g(f,void 0,_)}}),b=H(()=>{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`?K(q,{sx:{display:`flex`,flexDirection:`column`,height:`100%`},children:[K(q,{sx:{display:`flex`,justifyContent:`right`,alignItems:`center`,padding:`4pt 8pt`,gap:`5px`,height:`54px`,borderBottom:`1px solid`,borderColor:`divider`},children:[G(rs,{}),G(q,{sx:{flexGrow:1}}),p?G(Q,{title:`Please configure the base environment before running the diff`,placement:`left`,children:G(`span`,{children:G(J,{variant:`contained`,disabled:!0,size:`small`,sx:{fontSize:`14px`,mt:`16px`},children:`Run Diff`})})}):G(Ws,{display:f.mode===`metadata only`,children:G(J,{variant:`contained`,disabled:!0,size:`small`,sx:{fontSize:`14px`,mt:`16px`},children:`Run Diff`})})]}),G(ft,{value:m,onChange:n,onRun:()=>{v(`query`)},labels:[`base (production)`,`current (${b})`],SetupGuide:f.mode===`metadata only`?G(Ba,{}):G(Qo,{})})]}):K(q,{sx:{display:`flex`,flexDirection:`column`,height:`100%`},children:[K(q,{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:[G(rs,{}),G(Va,{}),G(q,{sx:{flexGrow:1}}),G(za,{defaultPrimaryKeys:o,onPrimaryKeysChange:s}),G(J,{variant:`contained`,onClick:()=>{v(`query_diff`)},disabled:y||f.disableDatabaseQuery,size:`small`,children:`Run Diff`})]}),G(q,{sx:{width:`100%`,flex:1,overflowY:`auto`},children:c?G(ft,{value:m,baseValue:t,onChange:n,onChangeBase:i,onRun:()=>{v(`query`)},onRunBase:()=>{v(`query_base`)},onRunDiff:()=>{v(`query_diff`)}}):G(Te,{value:m,onChange:n,onRun:()=>{v(`query`)},onRunDiff:()=>{v(`query_diff`)}})})]})};function Ua({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=`${Ut(t,n)} Rows`,o=t<n?`success`:`error`);let s=B(`row_count_diff`).icon;return G(Cr,{size:`small`,color:o,icon:s?G(s,{}):void 0,label:a,sx:{height:20,fontSize:`0.7rem`}})}function Wa({id:e,inverted:t}){let{lineageGraph:n,runsAggregated:r}=N(),{text:i,isDark:a}=gt(),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=Wt(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:Pt(`modified`).color,d=t?i.secondary:a?`grey.700`:`grey.100`,f=B(`schema_diff`).icon;return K(q,{sx:{display:`flex`,flex:1,alignItems:`center`},children:[c!==void 0&&G(Q,{title:`Schema (${c?`changed`:`no change`})`,enterDelay:500,children:G(q,{sx:{height:16},children:f&&G(q,{component:f,sx:{color:c?u:d}})})}),G(q,{sx:{flexGrow:1}}),o?.row_count_diff&&l!==void 0&&G(Q,{title:`Row count (${l?`changed`:`=`})`,enterDelay:500,children:G(q,{children:G(Ua,{rowCount:o.row_count_diff.result})})})]})}function Ga({nodeId:e,nodeName:t}){let{getNodeAction:n}=de(),r=n(e);if(!r)return null;let{status:i,skipReason:a,run:o}=r;if(i===`pending`)return G(wa,{status:`pending`});if(i===`skipped`)return G(wa,{status:`skipped`,skipReason:a});if(!o)return G(wa,{status:`pending`});let{error:s,run_id:c,progress:l}=o;if(i===`running`)return G(wa,{status:`running`,progress:{percentage:l?.percentage}});if(s)return G(wa,{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 G(wa,{status:`success`,valueDiffResult:{mismatchedColumns:t,totalColumns:n}})}if(C(o)&&o.result){let e=o.result[t];if(e)return G(Ua,{rowCount:e})}if(o.type===`row_count`&&o.result){let e=o.result[t];if(e?.curr!==void 0&&e.curr!==null)return G(Cr,{size:`small`,label:`${e.curr.toLocaleString()} Rows`,sx:{height:20,fontSize:`0.7rem`}})}return G(wa,{status:`success`,runId:c})}function Ka(e){let{data:t}=e,{id:n,resourceType:r,changeStatus:i,name:a}=t,o=zr(e=>e.transform[2]>.3),{isDark:s}=gt(),{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}=de(),{isActionAvailable:S}=N(),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?G(Ga,{nodeId:n,nodeName:a}):void 0,ie=u!==`action_result`&&t.resourceType===`model`?G(Wa,{id:t.id,inverted:u===`selecting`&&T}):void 0;return G(vt,{id:n,data:{label:a,changeStatus:te,resourceType:r,materialized:t.data?.current?.config?.materialized??t.data?.base?.config?.materialized},interactive:c,selectMode:ne,isNodeSelected:T,isFocused:D,isHighlighted:w,showContent:o,actionTag:re,showChangeAnalysis:O,changeCategory:C,runsAggregatedTag:ie,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 qa=On(Ka);qa.displayName=`GraphNode`;const Ja={lineageGraphNode:qa,lineageGraphColumnNode:pa},Ya={lineageGraphEdge:ga},Xa=[],Za=e=>e.data.changeStatus?Pt(e.data.changeStatus).hexColor:I.neutral[400],Qa={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`},$a={LINEAGE_VIEW_CONTEXT_MENU:`lineage_view_context_menu`},eo={SELECT_PARENT_NODES:`select_parent_nodes`,SELECT_CHILD_NODES:`select_child_nodes`,SELECT_ALL_UPSTREAM:`select_all_upstream`,SELECT_ALL_DOWNSTREAM:`select_all_downstream`},to=({menuItems:e,open:t,onClose:n,x:r,y:i,featureToggles:a,DisabledItemWrapper:o})=>{let s=o??(({children:e})=>G(W,{children:e})),c=a?.mode===`metadata only`;return G(Kr,{open:t,onClose:n,anchorReference:`anchorPosition`,anchorPosition:{top:i,left:r},slotProps:{paper:{sx:{fontSize:`0.85rem`,width:`250px`}}},children:e.length===0?G(qr,{disabled:!0,children:`No action available`},`no action`):e.map(({isSeparator:e,label:t,isDisabled:r,action:i,itemIcon:a})=>{if(e)return G(Yn,{},t);let l=K(qr,{disabled:r,onClick:()=>{i&&i(),n()},children:[a,` `,t]},t);return r&&o?G(s,{display:c,children:l},t):l})})},no=({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 G(W,{});let k=i.data,ee=k.resourceType,te=E?Array.from(E(i.id)):[],ne={source:`lineage_model_node`},re=k.changeStatus,ie=v?.(k.name);if(re===`modified`&&d.push({label:`Show Impact Radius`,itemIcon:G(tr,{}),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=Gt(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:G(q,{component:e.icon,sx:{display:`inline-flex`}}),isDisabled:O,action:()=>{g?.(n),u(`query_diff_with_primary_key`)&&_?.(ie===void 0?void 0:[ie]),p?.(`/query`)}}),te.length>0&&e)if(x!==void 0){let t=new Set;ie&&t.add(ie),te.forEach(e=>{t.add(e)}),d.push({label:`Query Related Columns`,itemIcon:G(q,{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`)&&_?.(ie===void 0?void 0:[ie]),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;ie&&n.add(ie),t.forEach(e=>{n.add(e)}),d.push({label:`Query Modified Columns`,itemIcon:G(q,{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`)&&_?.(ie===void 0?void 0:[ie]),p?.(`/query`)}})}}let r=D?`row_count`:`row_count_diff`,a=h?.(r);a&&d.push({label:a.title,itemIcon:G(q,{component:a.icon,sx:{display:`inline-flex`}}),isDisabled:O,action:()=>{m?.(`explore_action`,{action:D?Qa.ROW_COUNT:Qa.ROW_COUNT_DIFF,source:$a.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:G(q,{component:s.icon,sx:{display:`inline-flex`}}),isDisabled:O,action:()=>{let e=E?Array.from(E(i.id)):[];m?.(`explore_action`,{action:D?Qa.PROFILE:Qa.PROFILE_DIFF,source:$a.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:G(q,{component:e.icon,sx:{display:`inline-flex`}}),isDisabled:O,action:()=>{let e=E?Array.from(E(i.id)):[];m?.(`explore_action`,{action:Qa.VALUE_DIFF,source:$a.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:G(Ni,{}),action:()=>{m?.(`lineage_selection`,{action:eo.SELECT_PARENT_NODES}),w?.(i.id,1)}}),d.push({label:`Select Child Nodes`,itemIcon:G(Pi,{}),action:()=>{m?.(`lineage_selection`,{action:eo.SELECT_CHILD_NODES}),T?.(i.id,1)}}),d.push({label:`Select All Upstream Nodes`,itemIcon:G(Ni,{}),action:()=>{m?.(`lineage_selection`,{action:eo.SELECT_ALL_UPSTREAM}),w?.(i.id)}}),d.push({label:`Select All Downstream Nodes`,itemIcon:G(Pi,{}),action:()=>{m?.(`lineage_selection`,{action:eo.SELECT_ALL_DOWNSTREAM}),T?.(i.id)}})),G(to,{x:n,y:r,menuItems:d,open:e,onClose:t,featureToggles:s,DisabledItemWrapper:y})},ro=({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 G(W,{});let _=i.data,v=_.node,y=_.column,b=_.type,x={source:`lineage_column_node`},S=()=>{d?.(`explore_action`,{action:Qa.PROFILE_DIFF,source:$a.LINEAGE_VIEW_CONTEXT_MENU,node_count:1}),u?.(`profile_diff`,{model:v.name,columns:[y]},{showForm:!1,trackProps:x})},C=()=>{d?.(`explore_action`,{action:Qa.HISTOGRAM_DIFF,source:$a.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:Qa.TOP_K_DIFF,source:$a.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:Qa.VALUE_DIFF,source:$a.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:G(q,{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:G(q,{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:G(q,{component:t.icon,sx:{display:`inline-flex`}}),action:w,isDisabled:E||g});let n=f?.(`value_diff`);n&&l.push({label:n.title,itemIcon:G(q,{component:n.icon,sx:{display:`inline-flex`}}),action:T,isDisabled:E||g})}return G(to,{x:n,y:r,menuItems:l,open:e,onClose:t,featureToggles:o,DisabledItemWrapper:m})},io=({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?G(to,{menuItems:[],open:e,onClose:t,x:n,y:r,featureToggles:s,DisabledItemWrapper:a.DisabledItemWrapper}):i&&le(i)?G(no,{x:n,y:r,isOpen:e,onClose:t,node:i,deps:a,viewOptions:o,featureToggles:s,serverFlags:c,noCatalogCurrent:l,isActionAvailable:u}):i&&ce(i)?G(ro,{x:n,y:r,isOpen:e,onClose:t,node:i,deps:a,featureToggles:s,serverFlags:c,isActionAvailable:u}):null,ao=()=>{let[e,t]=U(!1),n=()=>t(!0),r=()=>t(!1),[i,a]=U({x:0,y:0}),[o,s]=U();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()}}},oo=()=>{let{isDark:e}=gt(),{successToast:t,failToast:n}=Bt();return yt({renderLibrary:`html-to-image`,imageType:`png`,shadowEffect:!0,backgroundColor:e?I.neutral[900]:I.neutral[50],ignoreElements:e=>{try{return e.classList.contains(st)}catch{return e.className?e.className.includes(st):!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)}})},so=()=>{let e=mi(),{basePath:t}=fe();return V(n=>{n.check_id&&e.push(`${t}/checks/?id=${n.check_id}`)},[e.push,t])},co=(e,t)=>{let n=Nn({width:0,height:0});An(()=>{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])},lo=()=>V((e,t,n,r,i)=>{let a=e.filter(le),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),dn(c)},[]),uo={row_count:$t.ROW_COUNT,row_count_diff:$t.ROW_COUNT_DIFF,value_diff:$t.VALUE_DIFF},fo=e=>{let t=uo[e.action];t&&on({action:t,source:tn.LINEAGE_VIEW_TOP_BAR,node_count:e.node_count})},po=(e,t)=>We(e,{...t,onTrackAction:fo,trackingSource:tn.LINEAGE_VIEW_TOP_BAR});function mo(){return Mt({onConfirm:()=>sn({action:$t.VALUE_DIFF,event:en.EXECUTE}),onCancel:()=>sn({action:$t.VALUE_DIFF,event:en.CANCEL})})}function ho({notification:e,type:t}){let n=O.lineageNotificationDismissed,[r,i]=U(()=>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 K(q,{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,G(q,{sx:{flex:1}}),G(Z,{size:`small`,onClick:()=>{sessionStorage.setItem(n,`true`),i(!1)},children:G(Kn,{})})]})}const go=e=>{let{runAction:t}=pe(),{setSqlQuery:n,setPrimaryKeys:r}=Ue(),i=mi(),{primaryKey:a}=_t(e),{basePath:o}=fe();return{runAction:(e,n,r)=>{t(e,n,r)},onNavigate:e=>{i.push(`${o}${e}`)},onTrack:(e,t)=>{e===`explore_action`?on({action:t.action,source:$a.LINEAGE_VIEW_CONTEXT_MENU,node_count:t.node_count}):e===`lineage_selection`&&un({action:t.action})},supportsHistogramDiff:pt,findByRunType:e=>{let t=B(e);return t?{title:t.title,icon:t.icon}:void 0},setSqlQuery:n,setPrimaryKeys:r,getPrimaryKey:()=>a,DisabledItemWrapper:Ws}},_o=({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}=de(),{featureToggles:f}=xe(),{isActionAvailable:p,lineageGraph:m}=N(),{data:h}=ye(),g=!m?.catalogMetadata.current;return G(io,{x:n,y:r,node:i,isOpen:e,onClose:t,deps:go(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})},vo=ao;function yo(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:jr.Left,sourcePosition:jr.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:jr.Left,sourcePosition:jr.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))&&bo(n,r),[n,r,s]}const bo=(e,t,n=`LR`)=>{P(Fi,e,t,n)};function xo(){return K(q,{sx:{display:`flex`,gap:2,px:1,py:.5,fontSize:`0.75rem`,color:`text.secondary`},children:[K(`span`,{children:[G(`span`,{className:`schema-change-badge schema-change-badge-added`,children:`+`}),` `,`added`]}),K(`span`,{children:[G(`span`,{className:`schema-change-badge schema-change-badge-removed`,children:`-`}),` `,`removed`]}),K(`span`,{children:[G(`span`,{className:`schema-change-badge schema-change-badge-changed`,children:`~`}),` `,`changed`]})]})}function So({current:e,showMenu:t=!0},n){let r=he(),[i,a]=U(null),[o,s]=U(new Map),{columns:c,rows:l}=H(()=>Dt({type:`schema_single`,columns:e?.columns},{node:e,cllRunningMap:o,showMenu:t}),[e,o,t]),{lineageGraph:u,isActionAvailable:d}=N(),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;nn({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=V(t=>`${e?.id}-${t.data.name}`,[e?.id]),y=r?.viewOptions.column_level_lineage,b=y?`${y.node_id}-${y.column}`:null;An(()=>{if(i&&(i.deselectAll(),b)){let e=i.getRowNode(b);e&&e.setSelected(!0)}},[i,b]);let x=V(e=>{a(e.api)},[]);return K(q,{sx:{display:`flex`,flexDirection:`column`,height:`100%`},children:[m?G(Gr,{severity:`warning`,sx:{fontSize:`12px`,p:1},children:m}):g?G(Gr,{severity:`warning`,sx:{fontSize:`12px`,p:1},children:g}):G(W,{}),l.length>0&&G(nt,{style:{blockSize:`auto`,maxHeight:`100%`,overflow:`auto`,fontSize:`10pt`,borderWidth:1},columns:c,rows:l,renderers:{noRowsFallback:G(Ft,{})},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 Co({base:e,current:t,showMenu:n=!0,columnChanges:r,onViewCode:i},a){let o=he(),[s,c]=U(null),[l,u]=U(new Map),{columns:d,rows:f}=H(()=>{let a=t?.resource_type??e?.resource_type,o=a&&[`model`,`seed`,`snapshot`,`source`].includes(a)?t??e:void 0;return Dt({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}=N(),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;nn({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=V(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;An(()=>{if(s&&(s.deselectAll(),T)){let e=s.getRowNode(T);e&&e.setSelected(!0)}},[s,T]);let E=V(e=>{c(e.api)},[]);return K(q,{sx:{display:`flex`,flexDirection:`column`,height:`100%`},children:[v?G(Gr,{severity:`warning`,sx:{fontSize:`12px`,p:1},children:v}):x?G(Gr,{severity:`warning`,sx:{fontSize:`12px`,p:1},children:x}):G(W,{}),G(xo,{}),f.length>0&&G(nt,{style:{blockSize:`auto`,maxHeight:`100%`,overflow:`auto`,fontSize:`0.8rem`,borderWidth:1},columns:d,rows:f,rowHeight:35,renderers:{noRowsFallback:G(Ft,{})},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 wo=Dn(Co),To=Dn(So),Eo=({node:e,isSingleEnv:t,CodeEditor:n,DiffEditor:r,isDark:i=!1})=>{let[a,o]=U(!1),[s,c]=U(!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 K(q,{className:`no-track-pii-safe`,sx:{position:`relative`,height:`100%`},onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},children:[t?G(n,{language:`sql`,value:l??``,readOnly:!0,lineNumbers:!0,wordWrap:!1,theme:i?`dark`:`light`}):G(r,{original:l??``,modified:u??``,language:`sql`,readOnly:!0,lineNumbers:!0,sideBySide:!1,theme:i?`dark`:`light`,height:`100%`}),G(Z,{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:G(Qn,{})}),K(Pn,{open:a,onClose:()=>o(!1),maxWidth:`sm`,fullWidth:!0,slotProps:{paper:{sx:{height:`75%`,overflowY:`auto`}}},children:[K(Ln,{sx:{display:`flex`,alignItems:`center`},children:[t?K(W,{children:[G(`code`,{children:d}),`\xA0Model Code`]}):K(W,{children:[G(`code`,{children:d}),`\xA0Model Code Diff`]}),G(q,{sx:{flex:1}}),G(Z,{size:`small`,onClick:()=>o(!1),children:G(Kn,{})})]}),G(In,{children:t?G(n,{language:`sql`,value:l??``,fontSize:16,readOnly:!0,lineNumbers:!0,wordWrap:!1,theme:i?`dark`:`light`}):G(r,{original:l??``,modified:u??``,language:`sql`,theme:i?`dark`:`light`,className:`text-base`})})]})]})},Do=({node:e})=>{let{data:t,isLoading:n}=ye(),r=Lt();return n?G(W,{}):G(Eo,{node:e,isSingleEnv:t?.single_env_onboarding??!1,CodeEditor:Ne,DiffEditor:$e,isDark:r})};function Oo({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?G(W,{children:` Failed to load`}):t===null||n===null?K(Y,{direction:`row`,alignItems:`center`,spacing:.5,children:[G(X,{variant:`body2`,component:`span`,children:r}),G(xi,{}),G(X,{variant:`body2`,component:`span`,children:i})]}):t===n?K(Y,{direction:`row`,alignItems:`center`,spacing:.5,children:[G(X,{variant:`body2`,component:`span`,children:i}),G(q,{component:`span`,sx:{color:`grey.500`,display:`flex`},children:G(ki,{})}),G(X,{variant:`body2`,component:`span`,sx:{color:`grey.500`},children:`No Change`})]}):t<n?K(Y,{direction:`row`,alignItems:`center`,spacing:.5,children:[G(X,{variant:`body2`,component:`span`,children:i}),G(q,{component:`span`,sx:{color:`success.main`,display:`flex`},children:G(Di,{})}),G(X,{variant:`body2`,component:`span`,sx:{color:`success.main`},children:Ut(t,n)})]}):K(Y,{direction:`row`,alignItems:`center`,spacing:.5,children:[G(X,{variant:`body2`,component:`span`,children:i}),G(q,{component:`span`,sx:{color:`error.main`,display:`flex`},children:G(Ei,{})}),G(X,{variant:`body2`,component:`span`,sx:{color:`error.main`},children:Ut(t,n)})]})}function ko({rowCount:e,node:t,onRefresh:n,isFetching:r}){let i=Lt(),{featureToggles:a}=xe(),{runsAggregated:o}=N(),s=o?.[t.id]?.row_count_diff.result,c=B(`row_count_diff`).icon,l=e??s,u=l;return G(Q,{title:l?`${l.base??`N/A`} -> ${l.curr??`N/A`} rows`:``,children:G(Ws,{display:a.mode===`metadata only`,children:K(q,{component:`span`,sx:{...ut(i),gap:.5},children:[G(c,{}),u!=null||r?r?G(Ii,{width:30,height:16}):u==null?G(X,{variant:`caption`,children:`row count`}):G(Oo,{rowCount:u}):G(X,{variant:`caption`,children:`row count`}),n&&G(Z,{"aria-label":`Query Row Count`,size:`small`,onClick:n,disabled:a.disableDatabaseQuery,sx:{p:0,ml:.5},children:G(vr,{size:12})})]})})})}function Ao({rowCount:e,node:t,onRefresh:n,isFetching:r}){let i=Lt(),{runsAggregated:a}=N(),o=a?.[t.id]?.row_count.result,s=B(`row_count`).icon,c,l=e??o;return l&&(c=`${l.curr??`N/A`} rows`),K(q,{component:`span`,sx:ut(i),children:[G(q,{component:`span`,sx:et,children:G(s,{})}),l||r?r?G(Ii,{width:30,height:16}):G(X,{variant:`caption`,children:c}):G(X,{variant:`caption`,children:`row count`}),n&&G(Z,{"aria-label":`Query Row Count`,size:`small`,onClick:n,disabled:t.data.from===`base`,sx:{p:0,ml:.5},children:G(vr,{size:12})})]})}function jo({children:e,value:t,index:n}){return t===n?G(W,{children:e}):null}const Mo=()=>G(`span`,{}),No=({children:e})=>G(W,{children:e}),Po=()=>!0;function Fo(e,t,n){return e?yn.add_or_remove:n(t)?``:`This action is not supported yet.`}function Io({node:e,actionCallbacks:t,runTypeIcons:n,isActionAvailable:r}){let i=e.data.changeStatus===`added`||e.data.changeStatus===`removed`,a=n?.query??Mo,o=n?.row_count??Mo,s=n?.profile??Mo;return K(Y,{direction:`row`,alignItems:`center`,flexWrap:`wrap`,gap:1,children:[G(J,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:G(a,{fontSize:`small`}),onClick:t?.onQueryClick,sx:{textTransform:`none`},children:`Query`}),G(J,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:G(o,{fontSize:`small`}),onClick:t?.onRowCountClick,sx:{textTransform:`none`},children:`Row Count`}),G(Q,{title:Fo(i,`profile`,r),placement:`top`,children:G(`span`,{children:G(J,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:G(s,{fontSize:`small`}),onClick:t?.onProfileClick,disabled:i,sx:{textTransform:`none`},children:`Profile`})})})]})}function Lo({actionCallbacks:e,runTypeIcons:t,featureToggles:n,ConnectionPopoverWrapper:r}){let i=n?.mode===`metadata only`,a=t?.schema_diff??Mo,o=t?.sandbox??Mo;return K(Y,{direction:`row`,alignItems:`center`,sx:{mr:1},flexWrap:`wrap`,gap:1,children:[G(J,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:G(a,{fontSize:`small`}),onClick:e?.onAddSchemaDiffClick,sx:{textTransform:`none`},children:`Add schema diff to checklist`}),G(r,{display:i,children:G(J,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:G(o,{fontSize:`small`}),onClick:e?.onSandboxClick,disabled:n?.disableDatabaseQuery,sx:{textTransform:`none`},children:`Sandbox`})})]})}function Ro({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??Mo,l=n?.row_count_diff??Mo,u=n?.profile_diff??Mo,d=n?.value_diff??Mo,f=n?.top_k_diff??Mo,p=n?.histogram_diff??Mo,m=(e,t)=>o?G(a,{display:!0,children:e}):G(Q,{title:Fo(s,t,i),placement:`top`,children:G(`span`,{children:e})});return K(Y,{direction:`row`,alignItems:`center`,flexWrap:`wrap`,gap:2,children:[G(X,{variant:`caption`,fontWeight:`bold`,children:`Diff`}),K(Y,{direction:`row`,alignItems:`center`,flexWrap:`wrap`,gap:1,width:`93%`,children:[G(a,{display:o,children:G(J,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:G(l,{fontSize:`small`}),onClick:t?.onRowCountDiffClick,disabled:r?.disableDatabaseQuery,sx:{textTransform:`none`},children:`Row Count`})}),m(G(J,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:G(u,{fontSize:`small`}),onClick:t?.onProfileDiffClick,disabled:s||r?.disableDatabaseQuery,sx:{textTransform:`none`},children:`Profile`}),`profile_diff`),m(G(J,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:G(d,{fontSize:`small`}),onClick:t?.onValueDiffClick,disabled:s||r?.disableDatabaseQuery,sx:{textTransform:`none`},children:`Value`}),`value_diff`),m(G(J,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:G(f,{fontSize:`small`}),onClick:t?.onTopKDiffClick,disabled:s||r?.disableDatabaseQuery,sx:{textTransform:`none`},children:`Top-K`}),`top_k_diff`),m(G(J,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:G(p,{fontSize:`small`}),onClick:t?.onHistogramDiffClick,disabled:s||r?.disableDatabaseQuery,sx:{textTransform:`none`},children:`Histogram`}),`histogram_diff`),G(a,{display:o,children:G(J,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:G(c,{fontSize:`small`}),onClick:t?.onQueryDiffClick,disabled:r?.disableDatabaseQuery,sx:{textTransform:`none`},children:`Query`})})]})]})}function zo({node:e,onCloseNode:t,isSingleEnv:n,featureToggles:r,SchemaView:i,SingleEnvSchemaView:a,NodeSqlView:o,RowCountDiffTag:s,RowCountTag:c,ResourceTypeTag:l,NotificationComponent:u,ConnectionPopoverWrapper:d=No,SandboxDialog:f,runTypeIcons:p,actionCallbacks:m,isActionAvailable:h=Po}){let g=e.data.resourceType===`model`||e.data.resourceType===`seed`||e.data.resourceType===`source`||e.data.resourceType===`snapshot`,[_,v]=U(!1),[y,b]=U(!0),[x,S]=U(0),{base:C,current:w}=e.data.data,T=!n&&Wt(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 K(q,{sx:{height:`100%`,display:`flex`,flexDirection:`column`},children:[K(Y,{direction:`row`,alignItems:`center`,children:[G(q,{sx:{flex:`0 1 20%`,p:2},children:G(X,{variant:`subtitle1`,fontWeight:600,className:`no-track-pii-safe`,children:e.data.name})}),G(q,{sx:{flexGrow:1}}),!n&&D&&G(Lo,{node:e,actionCallbacks:O,runTypeIcons:p,featureToggles:r,ConnectionPopoverWrapper:d}),G(q,{sx:{flex:`0 1 1%`},children:G(Z,{size:`small`,onClick:t,children:G(Kn,{})})})]}),G(q,{sx:{color:`text.secondary`,pl:2},children:K(Y,{direction:`row`,spacing:1,children:[l&&G(l,{node:e}),D&&(n?c&&G(c,{node:e,onRefresh:m?.onRowCountClick}):s&&G(s,{node:e,onRefresh:m?.onRowCountDiffClick}))]})}),D&&G(q,{sx:{pl:2,py:1},children:n?G(Io,{node:e,actionCallbacks:m,runTypeIcons:p,isActionAvailable:h}):G(Ro,{node:e,actionCallbacks:O,runTypeIcons:p,featureToggles:r,isActionAvailable:h,ConnectionPopoverWrapper:d})}),g&&K(q,{sx:{overflow:`auto`,display:`flex`,flexDirection:`column`,flex:1,minHeight:0},children:[n&&y&&u&&G(q,{sx:{p:1.5},children:G(u,{onClose:()=>b(!1),children:G(X,{variant:`body2`,children:`Enable the Recce Checklist and start adding checks for better data validation and review.`})})}),K(oi,{value:x,onChange:(e,t)=>S(t),sx:{borderBottom:1,borderColor:`divider`},children:[G(ai,{label:K(q,{component:`span`,sx:{display:`flex`,alignItems:`center`,gap:.75},children:[`Columns`,T&&G(q,{component:`span`,sx:{color:`amber.main`,fontSize:`0.5rem`,lineHeight:1},children:`●`})]})}),G(ai,{label:K(q,{component:`span`,sx:{display:`flex`,alignItems:`center`,gap:.75},children:[`Code`,E&&G(q,{component:`span`,sx:{color:`amber.main`,fontSize:`0.5rem`,lineHeight:1},children:`●`})]})})]}),K(q,{sx:{overflow:`auto`,height:`calc(100% - 48px)`},children:[G(jo,{value:x,index:0,children:G(q,{sx:{overflowY:`auto`,height:`100%`},children:n?a&&G(a,{current:e.data.data.current}):i&&G(i,{base:e.data.data.base,current:e.data.data.current,columnChanges:e.data.change?.columns,onViewCode:()=>S(1)})})}),G(jo,{value:x,index:1,children:G(q,{sx:{height:`100%`},children:o&&G(o,{node:e})})})]})]}),f&&G(f,{isOpen:_,onClose:()=>v(!1),current:e.data.data.current})]})}function Bo(e){return ni(ii(e),`yyyy-MM-dd'T'HH:mm:ss`)}function Vo({current:e,primaryKeys:t,onPrimaryKeysChange:n,onRunResultOpen:r,runQuery:i,isPending:a,QueryForm:o}){return K(Y,{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:[K(q,{children:[K(X,{variant:`h6`,component:`h2`,sx:{display:`flex`,alignItems:`center`,gap:`5px`},children:[G(q,{component:Li,sx:{fontSize:`1.2em`}}),`Sandbox`]}),K(X,{sx:{fontSize:`0.75rem`,color:`grey.500`},children:[`Compare the run results based on the modified SQL code of model`,` `,G(`b`,{children:e?.name})]})]}),G(q,{sx:{flexGrow:1}}),G(o,{defaultPrimaryKeys:t,onPrimaryKeysChange:n}),G(Q,{title:`Run diff to see the changes`,children:G(J,{size:`small`,sx:{mt:`16px`,fontSize:`14px`},onClick:()=>{r(),i()},color:`iochmara`,variant:`contained`,disabled:a,children:a?`Running...`:`Run Diff`})})]})}function Ho({currentModelID:e,height:t=`32px`,flex:n=`0 0 auto`,isDark:r=!1}){let{lineageGraph:i,envInfo:a}=N(),o=`0 16px`,s=ri(Bo(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 K(Y,{direction:`row`,sx:{gap:0,height:t,flex:n,fontSize:`14px`,alignItems:`center`,m:0,bgcolor:Vn(r?I.neutral[700]:I.neutral[100],.5)},children:[G(Y,{sx:{width:`50%`},children:K(X,{sx:{fontWeight:`bold`,margin:o},children:[`ORIGINAL (Schema: `,c,`, Last Updated: `,s,`)`]})}),G(Y,{sx:{width:`50%`},children:G(X,{sx:{fontWeight:`bold`,margin:o},children:`SANDBOX EDITOR`})})]})}function Uo({current:e,onChange:t,isDark:n,DiffEditor:r}){return G(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 Wo({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]=U(!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 K(Pn,{open:e,onClose:S,maxWidth:!1,fullWidth:!0,slotProps:{paper:{sx:{width:`100%`,height:`100%`,maxWidth:`100%`,maxHeight:`100%`,m:0}}},children:[K(q,{sx:{height:`40px`,bgcolor:`cyan.600`,px:0,py:2,display:`flex`,alignItems:`center`},children:[K(Y,{direction:`row`,alignItems:`center`,sx:{height:`100%`,gap:`10px`},children:[G(q,{component:`img`,sx:{width:`20px`,height:`20px`,ml:`18px`},src:h,alt:`logo`}),G(X,{variant:`h6`,component:`h1`,sx:{fontFamily:`"Montserrat", sans-serif`,fontSize:`1.125rem`,color:`common.white`},children:g}),G(Cr,{label:`Experiment`,size:`small`,variant:`outlined`,sx:{fontSize:`0.875rem`,color:`common.white`,borderColor:`rgba(255,255,255,0.5)`}})]}),G(Z,{"aria-label":`close`,onClick:S,sx:{position:`absolute`,right:8,top:4,color:`common.white`},children:G(Kn,{})})]}),G(In,{sx:{p:0},children:K(kt,{sizes:_?[50,50]:[100,0],minSize:0,gutterSize:5,className:_?void 0:`split-gutter-hidden`,style:{flex:`1`,contain:`size`,height:`100%`},children:[K(Y,{sx:{height:`100%`,m:0,p:0},children:[G(Vo,{current:n,primaryKeys:s,onPrimaryKeysChange:C,onRunResultOpen:b,runQuery:x,isPending:l,QueryForm:i}),G(Ho,{height:`32px`,flex:`0 0 auto`,currentModelID:n?.id??``,isDark:o}),G(Uo,{current:n,onChange:y,isDark:o,DiffEditor:r})]}),_?G(a,{onClose:()=>v(!1),disableAddToChecklist:!0}):G(q,{})]})}),G(q,{sx:{position:`fixed`,bottom:16,right:16,opacity:.5},children:G(Q,{title:`Give us feedback`,children:G(Z,{"aria-label":`feedback`,size:`medium`,onClick:()=>{p?.()},children:G(Xr,{})})})})]})}function Go({isOpen:e,onClose:t,current:n}){let[r,i]=U(n?.raw_code??``),[o,s]=U(e),{showRunId:c,clearRunResult:l}=pe(),{primaryKeys:u,setPrimaryKeys:d}=Ue(),{data:f,isLoading:m}=ye(),{apiClient:h}=Pe(),_=Lt();e!==o&&(s(e),e&&i(n?.raw_code??``));let{mutate:v,isPending:y}=Sn({mutationFn:async()=>{let e=r,{run_id:t}=await a({current_model:n?.name??``,primary_keys:u,sql_template:e},{nowait:!0},h);return c(t),await g(t,void 0,h)},onSuccess(e){e.error?mn({action:`run`,node:n?.name,status:`failure`}):(mn({action:`run`,node:n?.name,status:`success`}),setTimeout(()=>{b()},1e3),!m&&f?.single_env_onboarding&&setTimeout(()=>{S()},2e3))}}),{feedbackToast:b,closeToast:x}=rt({feedbackId:p.previewChangeFeedbackID,description:`Enjoy preview change?`,onFeedbackSubmit:e=>{switch(e){case`like`:hn({feedback:`like`,node:n?.name});break;case`dislike`:hn({feedback:`dislike`,node:n?.name});break;case`link`:hn({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}=Ct({guideId:p.prepareEnvGuideID,description:`Want to compare data changes with production data?`,externalLink:`https://docs.reccehq.com/get-started/#prepare-dbt-artifacts`,externalLinkText:`Learn how.`,onExternalLinkClick:()=>{_n({action:`external_link`,from:`preview_changes`,node:n?.name})}});return G(Wo,{isOpen:e,onClose:()=>{t(),l(),x(),C()},current:n,DiffEditor:$e,QueryForm:za,RunResultPane:Ve,isDark:_,primaryKeys:u??[],onPrimaryKeysChange:d,isPending:y,onRunQuery:v,onModifiedCodeChange:i,onShowFeedback:()=>b(!0),tracking:{onPreviewChange:mn}})}const Ko=({node:e})=>{let t=e.data.data.current?.config?.materialized??e.data.data.base?.config?.materialized;return G(St,{resourceType:e.data.resourceType,materialized:t})};function qo({onClose:e}){return G(L,{onClose:e,align:`flex-start`,children:K(X,{variant:`body2`,children:[`Enable the Recce Checklist and start adding checks for better data validation and review.`,G(`br`,{}),G(dt,{})]})})}function Jo({node:e,onCloseNode:t}){let n=mi(),{runAction:r}=pe(),{isActionAvailable:i,envInfo:a}=N(),{singleEnv:o,featureToggles:s}=xe(),{setSqlQuery:c,setPrimaryKeys:l}=Ue(),{primaryKey:u}=_t(e.data.name),{apiClient:d}=Pe(),{basePath:f}=fe(),p=H(()=>({query:B(`query`).icon,row_count:B(`row_count`).icon,row_count_diff:B(`row_count_diff`).icon,profile:B(`profile`).icon,profile_diff:B(`profile_diff`).icon,query_diff:B(`query_diff`).icon,value_diff:B(`value_diff`).icon,top_k_diff:B(`top_k_diff`).icon,histogram_diff:B(`histogram_diff`).icon,schema_diff:B(`schema_diff`).icon,sandbox:B(`sandbox`).icon}),[]),m=Gt(Object.keys(e.data.data.base?.columns??{}),Object.keys(e.data.data.current?.columns??{})),h=H(()=>m.length?`select \n ${m.join(`
|
|
6
|
-
`)}\nfrom {{ ref("${e.data.name}") }}`:`select * from {{ ref("${e.data.name}") }}`,[m,e.data.name]),g=H(()=>({onQueryClick:()=>{a?.adapterType===`dbt`?c(h):a?.adapterType===`sqlmesh`&&c(`select * from ${e.data.name}`),n.push(`${f}/query`)},onRowCountClick:()=>{on({action:$t.ROW_COUNT,source:tn.SCHEMA_ROW_COUNT_BUTTON,node_count:1}),r(`row_count`,{node_names:[e.data.name]},{showForm:!1,showLast:!1})},onRowCountDiffClick:()=>{on({action:$t.ROW_COUNT_DIFF,source:tn.SCHEMA_ROW_COUNT_BUTTON,node_count:1}),r(`row_count_diff`,{node_names:[e.data.name]},{showForm:!1,showLast:!1})},onProfileClick:()=>{on({action:$t.PROFILE,source:tn.NODE_SIDEBAR_SINGLE_ENV,node_count:1}),r(`profile`,{model:e.data.name},{showForm:!0,showLast:!1})},onProfileDiffClick:()=>{on({action:$t.PROFILE_DIFF,source:tn.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:()=>{on({action:$t.VALUE_DIFF,source:tn.NODE_SIDEBAR_MULTI_ENV,node_count:1}),r(`value_diff`,{model:e.data.name},{showForm:!0,showLast:!1})},onTopKDiffClick:()=>{on({action:$t.TOP_K_DIFF,source:tn.NODE_SIDEBAR_MULTI_ENV,node_count:1}),r(`top_k_diff`,{model:e.data.name,column_name:``,k:50},{showForm:!0})},onHistogramDiffClick:()=>{on({action:$t.HISTOGRAM_DIFF,source:tn.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 v({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]),mn({action:`explore`,node:e.data.name})}}),[e,h,a,c,r,i,l,u,d,n.push,f]);return G(zo,{node:e,onCloseNode:t,isSingleEnv:o??!1,featureToggles:s,SchemaView:wo,SingleEnvSchemaView:To,NodeSqlView:Do,ResourceTypeTag:Ko,RowCountDiffTag:ko,RowCountTag:Ao,NotificationComponent:qo,ConnectionPopoverWrapper:Ws,SandboxDialog:Go,runTypeIcons:p,actionCallbacks:g,isActionAvailable:i})}function Yo(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 Xo({featureToggles:e,settingsUrl:t}){return e.mode===`metadata only`?G(q,{sx:{display:`flex`,alignItems:`center`,width:`100%`,px:1,py:.25,bgcolor:`cyan.50`},children:K(Y,{direction:`row`,alignItems:`center`,sx:{flex:1,fontSize:`0.875rem`,color:`cyan.600`},spacing:1,children:[G(q,{component:dr}),G(X,{sx:{fontSize:`inherit`,color:`inherit`},children:`Query functions disabled without a data warehouse connection.`}),G(J,{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}=xe(),{data:n}=se();return G(Xo,{featureToggles:e.featureToggles??t,settingsUrl:e.settingsUrl??Jt(n,Qt)})}function Qo({docsUrl:e=`https://docs.reccehq.com/get-started/#prepare-dbt-artifacts`,onStartClick:t}={}){return G(Y,{sx:{flex:1,height:`100%`,minHeight:0,m:1,p:2,bgcolor:`iochmara.50`,borderRadius:2,boxShadow:2,justifyContent:`center`},children:K(Y,{sx:{width:`80%`,overflowY:`auto`,gap:3,px:4,pb:4},alignSelf:`center`,children:[K(Y,{alignItems:`center`,spacing:2,children:[G(q,{sx:{p:1,bgcolor:`background.paper`,borderRadius:`50%`,display:`flex`,alignItems:`center`,justifyContent:`center`,boxShadow:2},children:G(q,{component:Ai,sx:{fontSize:28,color:`iochmara.500`}})}),G(X,{variant:`h5`,sx:{mt:2},children:`Wait, there's more!`}),K(X,{sx:{textAlign:`center`},children:[`Recce is currently running in`,` `,G(X,{component:`span`,sx:{fontWeight:`bold`},children:`limited functionality mode`}),` `,`so you can run queries but`,` `,G(X,{component:`span`,sx:{fontWeight:`bold`},children:`can't diff the results yet!`})]})]}),K(Y,{spacing:1,children:[G(X,{children:`To unlock the full power of Recce, set up a base environment of dbt artifacts for comparison.`}),G(X,{children:`Once configured, you'll be able to:`}),K(si,{sx:{listStyleType:`disc`,pl:2},children:[G(ci,{sx:{display:`list-item`,p:0},children:G(X,{children:`Run statistical data diffs`})}),G(ci,{sx:{display:`list-item`,p:0},children:G(X,{children:`Run query diffs`})}),G(ci,{sx:{display:`list-item`,p:0},children:G(X,{children:`Save checks to your Recce Checklist`})}),G(ci,{sx:{display:`list-item`,p:0},children:G(X,{children:`...and more!`})})]}),G(X,{children:`Take the next step toward better data impact assessment.`})]}),G(Y,{sx:{width:`100%`,mt:3},children:G(J,{color:`iochmara`,variant:`contained`,size:`large`,onClick:()=>{t?t():window.open(e,`_blank`)},children:`Start Now`})})]})})}function $o({docsUrl:e=`https://docs.reccehq.com/configure-diff/`}={}){return K(Y,{direction:`row`,spacing:`10px`,alignItems:`flex-start`,children:[G(q,{component:Oi,sx:{color:`iochmara.main`,fontSize:20}}),K(Y,{spacing:`5px`,children:[K(X,{sx:{fontWeight:700},children:[`Single Environment Mode`,` `,G(X,{component:`span`,sx:{color:`error.main`,fontWeight:600},children:`Limited Functionality`})]}),G(X,{sx:{fontSize:`0.875rem`},children:`Single Environment Mode allows you to explore your dbt project but won't show data comparisons between environments.`}),G(X,{sx:{fontSize:`0.875rem`},children:`To set up full environment comparison:`}),K(si,{sx:{pl:2},children:[G(ci,{sx:{p:0,display:`list-item`},children:G(X,{sx:{fontSize:`0.875rem`},children:"Run `recce debug` for setup assistance"})}),G(ci,{sx:{p:0,display:`list-item`},children:K(X,{sx:{fontSize:`0.875rem`},children:[`Visit`,` `,G(Rn,{sx:{color:`primary.main`,fontWeight:500},target:`_blank`,href:e,children:`docs`}),` `,`for configuration details`]})})]})]})]})}function es(){return G(q,{sx:{width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:G(Xn,{size:48})})}function ts({error:e,onRetry:t}){return G(q,{sx:{height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:K(Y,{alignItems:`center`,spacing:1,children:[G(q,{children:`Failed to load lineage data. This could be because the server has been terminated or there is a network error.`}),K(q,{children:[`[Reason: `,e,`]`]}),G(J,{color:`iochmara`,variant:`contained`,onClick:()=>{t&&t()},children:`Retry`})]})})}function ns({viewOptions:e,onViewOptionsChanged:t}){return G(q,{sx:{height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:K(Y,{alignItems:`center`,spacing:1,children:[G(W,{children:`No change detected`}),G(J,{color:`iochmara`,variant:`contained`,onClick:async()=>{await t({...e,view_mode:`all`})},children:`Show all nodes`})]})})}function rs(){let{isHistoryOpen:e,showHistory:t}=pe();if(!e)return K(q,{children:[G(q,{sx:{fontSize:`8pt`},children:`History`}),G(J,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:G(Qr,{}),onClick:()=>{cn({name:e?`hide`:`show`}),t()},children:`Show`})]})}const is=e=>({fontSize:`8pt`,bgcolor:e?`grey.700`:`grey.100`,px:.5,borderRadius:1}),as=()=>{let e=is(Lt());return K(Y,{alignItems:`flex-start`,spacing:0,children:[G(X,{fontSize:`10pt`,color:`text.secondary`,pb:1,children:`Select nodes by dbt node selector syntax`}),K(X,{fontSize:`8pt`,children:[G(q,{component:`code`,sx:e,children:`model_name`}),` `,`Select a node`]}),K(X,{fontSize:`8pt`,children:[G(q,{component:`code`,sx:e,children:`model_name+`}),` `,`Select downstream nodes`]}),K(X,{fontSize:`8pt`,children:[G(q,{component:`code`,sx:e,children:`+model_name`}),` `,`Select upstream nodes`]}),K(X,{fontSize:`8pt`,children:[G(q,{component:`code`,sx:e,children:`model*`}),` `,`Select by wildcard`]})]})},os=({isDisabled:e,viewOptions:t,onViewOptionsChanged:n})=>{let[r,i]=U(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 K(W,{children:[G(J,{size:`xsmall`,variant:`outlined`,color:`neutral`,onClick:c,disabled:e,startIcon:d&&G(d,{}),endIcon:G(ar,{}),sx:{minWidth:100,textTransform:`none`,fontSize:`0.75rem`},children:s}),K(Kr,{anchorEl:r,open:a,onClose:l,children:[G(ei,{sx:{lineHeight:`32px`,bgcolor:`transparent`},children:`mode`}),K(zi,{value:o,children:[G(qr,{onClick:()=>u(`changed_models`),children:G(Hr,{value:`changed_models`,control:G(Ri,{size:`small`,sx:{py:0}}),label:`Changed Models`,sx:{m:0}})}),G(qr,{onClick:()=>u(`all`),children:G(Hr,{value:`all`,control:G(Ri,{size:`small`,sx:{py:0}}),label:`All`,sx:{m:0}})})]})]})]})},ss=({isDisabled:e,viewOptions:t,onViewOptionsChanged:n,lineageGraph:r})=>{let[i,a]=U(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 K(W,{children:[G(J,{size:`xsmall`,variant:`outlined`,color:`neutral`,onClick:m,disabled:e,startIcon:G(wi,{}),endIcon:G(ar,{}),sx:{minWidth:100,textTransform:`none`,fontSize:`0.75rem`},children:p}),K(Kr,{anchorEl:i,open:o,onClose:h,children:[G(ei,{sx:{lineHeight:`32px`,bgcolor:`transparent`},children:`Select Packages`}),K(qr,{onClick:g,children:[G(Vr,{checked:d,indeterminate:!d&&!f,size:`small`,sx:{py:0}}),G(bi,{children:`Select All`})]}),G(Yn,{}),Array.from(s).map(e=>K(qr,{onClick:()=>_(e),children:[G(Vr,{checked:u.has(e),size:`small`,sx:{py:0}}),G(bi,{className:`no-track-pii-safe`,children:e})]},e))]})]})},cs=({value:e,onChange:t,isDisabled:n,tooltipComponent:r,showTooltip:i=!0})=>{let[a,o]=U(e),s=Nn(null);return An(()=>{s.current&&(s.current.value=e)},[e]),G(Q,{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:G(ti,{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}}})})},ls=({isDisabled:e,viewOptions:t,onViewOptionsChanged:n,showTooltip:r})=>G(cs,{isDisabled:e,value:t.select??``,onChange:e=>{n({...t,select:e||void 0})},tooltipComponent:G(as,{}),showTooltip:r}),us=({isDisabled:e,viewOptions:t,onViewOptionsChanged:n})=>G(cs,{isDisabled:e,value:t.exclude??``,onChange:e=>{n({...t,exclude:e||void 0})}}),ds=({label:e,children:t,style:n})=>K(q,{style:n,sx:{maxWidth:300},children:[G(X,{fontSize:`8pt`,children:(e??``).trim()||G(W,{children:`\xA0`})}),t]}),fs=({children:e})=>G(W,{children:e}),ps=({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=fs})=>{let g=i?.single_env_onboarding,[_,v]=U(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 G(Y,{direction:`row`,alignItems:`center`,borderBottom:1,borderColor:`neutral.light`,sx:{width:`100%`,p:`4pt 8pt`,gap:`0.5rem`},children:K(Y,{direction:`row`,alignItems:`center`,sx:{flex:1,gap:`0.5rem`},children:[m,G(ds,{label:`Mode`,style:{flexShrink:1},children:G(os,{isDisabled:x,viewOptions:e,onViewOptionsChanged:t})}),G(ds,{label:`Package`,style:{flexShrink:1},children:G(ss,{isDisabled:x,viewOptions:e,onViewOptionsChanged:t,lineageGraph:n})}),G(ds,{label:`Select`,style:{flexShrink:1},children:G(ls,{isDisabled:x,viewOptions:e,onViewOptionsChanged:t,showTooltip:g})}),G(ds,{label:`Exclude`,style:{flexShrink:1},children:G(us,{isDisabled:x,viewOptions:e,onViewOptionsChanged:t})}),G(q,{sx:{flexGrow:1}}),b&&K(W,{children:[G(ds,{label:``,style:{flexShrink:0},children:G(X,{fontSize:`9pt`,color:`text.secondary`,children:o.length>1?`${o.length} nodes selected`:`${o.length} node selected`})}),G(ds,{label:``,children:G(J,{variant:`outlined`,color:`neutral`,size:`xsmall`,onClick:()=>{s()},sx:{textTransform:`none`,fontSize:`9pt`},children:`Deselect`})}),g&&G(ds,{label:`Explore`,children:K(q,{sx:{display:`inline-flex`},children:[G(J,{size:`xsmall`,color:`neutral`,variant:`outlined`,onClick:S,endIcon:G(ar,{}),sx:{textTransform:`none`,fontSize:`0.75rem`},children:`Actions`}),G(Kr,{anchorEl:_,open:y,onClose:C,anchorOrigin:{vertical:`bottom`,horizontal:`right`},transformOrigin:{vertical:`top`,horizontal:`right`},children:K(qr,{disabled:r.disableDatabaseQuery,onClick:async()=>{await c?.(),C()},children:[G(yi,{children:G(w,{fontSize:`small`})}),G(bi,{children:`Row Count`})]})})]})})]}),!g&&G(ds,{label:`Explore`,children:K(q,{sx:{display:`inline-flex`},children:[G(J,{size:`xsmall`,color:`neutral`,variant:`outlined`,disabled:r.disableViewActionDropdown,onClick:S,endIcon:G(ar,{}),sx:{textTransform:`none`,fontSize:`0.75rem`},children:`Actions`}),K(Kr,{anchorEl:_,open:y,onClose:C,anchorOrigin:{vertical:`bottom`,horizontal:`right`},transformOrigin:{vertical:`top`,horizontal:`right`},children:[G(ei,{sx:{lineHeight:`32px`,bgcolor:`transparent`},children:`Diff`}),G(h,{display:r.mode===`metadata only`,children:K(qr,{disabled:r.disableDatabaseQuery,onClick:async()=>{await l?.(),C()},children:[G(yi,{children:G(w,{fontSize:`small`})}),G(bi,{children:`Row Count Diff`})]})}),G(h,{display:r.mode===`metadata only`,children:K(qr,{disabled:r.disableDatabaseQuery,onClick:async()=>{await u?.(),C()},children:[G(yi,{children:G(T,{fontSize:`small`})}),G(bi,{children:`Value Diff`})]})}),G(Yn,{}),G(ei,{sx:{lineHeight:`32px`,bgcolor:`transparent`},children:`Add to Checklist`}),K(qr,{onClick:()=>{d?.(e.view_mode),C()},children:[G(yi,{children:G(E,{fontSize:`small`})}),G(bi,{children:`Lineage Diff`})]}),K(qr,{onClick:()=>{f?.(),C()},children:[G(yi,{children:G(D,{fontSize:`small`})}),G(bi,{children:`Schema Diff`})]})]})]})})]})})},ms=({display:e,children:t})=>G(Ws,{display:e,children:t}),hs=()=>{let{deselect:e,focusedNode:t,selectedNodes:n,viewOptions:r,onViewOptionsChanged:i,runRowCount:a,runRowCountDiff:o,runValueDiff:s,addLineageDiffCheck:c,addSchemaDiffCheck:l}=de(),{lineageGraph:u}=N(),{featureToggles:d}=xe(),{data:f}=ye();return G(ps,{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:B(`row_count_diff`).icon,valueDiff:B(`value_diff`).icon,lineageDiff:B(`lineage_diff`).icon,schemaDiff:B(`schema_diff`).icon},historyToggleSlot:G(rs,{}),SetupConnectionPopoverSlot:ms})};function gs({interactive:e=!1,...t},n){let{isDark:r}=gt(),{apiClient:i}=Pe(),a=wn(),o=Rr(),s=Nn(null),{copyToClipboard:c,ImageDownloadModal:l,ref:u}=oo(),[d,p,m]=Lr(Xa),[h,g,b]=Ir([]),{lineageGraph:x,refetchLineageGraph:S,isLoading:C,error:E,refetchRunsAggregated:O}=N(),{featureToggles:k,singleEnv:ee}=xe(),{data:te}=ye(),{runId:ie,showRunId:ae,closeRunResult:oe,runAction:M,isRunResultOpen:se}=pe(),{run:P}=xt(ie),[F,ue]=U({...t.viewOptions}),de=lo(),fe=Nn([]).current,[he,be]=U(void 0),[Se,Ce]=U(!1),we=Nn(!1);we.current=Se;let Te=Sn({mutationFn:e=>ne(e,i)}),Ee=Nn({pending:!1}),[De,ke]=U({}),je=V(e=>d.filter(le).find(t=>t.data.name===e),[d]);jn(n,()=>({copyToClipboard:c}));let Me=H(()=>!!(x&&x.modifiedSet.length>0),[x]),Ne=F.view_mode??`changed_models`,Fe=H(()=>d.filter(e=>e.type===`lineageGraphNode`).map(e=>e.id),[d]),Ie=H(()=>x?Fe.map(e=>x.nodes[e]):[],[x,Fe]),[Le,Re]=U(),L=Le?x?.nodes[Le]:void 0,[R,ze]=U(),[Be,Ve]=U(new Set),He=H(()=>x?Array.from(Be).map(e=>x.nodes[e]):[],[x,Be]),z=po(He.length>0?He:Ie,{onActionStarted:()=>{ze(`action_result`)},onActionNodeUpdated:e=>{p(t=>t.map(t=>t.id===e.id?{...t}:t))},onActionCompleted:()=>{}}),Ue=V(()=>{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]),We=H(()=>{if(!x)return new Set;let e=new Set;if(he){for(let[t,n]of Object.entries(he.current.nodes))n.impacted!==!1&&e.add(t);for(let t of Object.keys(he.current.columns))e.add(t)}else if(R===`action_result`){let t=Object.keys(z.actionState.actions);e=new Set(t)}else e=L?me(ve(x,[L.id]),ge(x,[L.id])):Me?ge(x,x.modifiedSet):new Set(Fe);return new Set(e)},[x,he,R,L,Me,z.actionState.actions,Fe]),Ke=vo(),B=()=>{Ke.closeContextMenu()},qe=Nn(!1);Mn(()=>{(async()=>{let e;if(!x)return;if(F.node_ids)e=F.node_ids;else{let n=x.manifestMetadata.current?.project_name,r={view_mode:F.view_mode??(Me?`changed_models`:`all`),packages:n?[n]:void 0,...t.viewOptions};try{e=(await w({select:r.select,exclude:r.exclude,packages:r.packages,view_mode:r.view_mode},i)).nodes}catch{r.view_mode=`all`,e=(await w({select:r.select,exclude:r.exclude,packages:r.packages,view_mode:r.view_mode},i)).nodes}ue(r)}let n=F.column_level_lineage,r=!1;te?.impact_at_startup&&!qe.current&&!n&&(qe.current=!0,r=!0,we.current=!0,Ce(!0),n={change_analysis:!0,no_upstream:!0},ue(e=>({...e,column_level_lineage:n})));let o;if(n)if(Ee.current.pending)o=Ee.current.cllData,Ee.current={pending:!1};else{let e={...n,change_analysis:n.change_analysis??we.current};try{o=await Te.mutateAsync(e);let t=o;e.change_analysis&&t&&(Ee.current={pending:!0,cllData:t},a.setQueryData(A.lineage(),e=>e&&{...e,lineage:{...e.lineage,diff:Yo(e.lineage.diff,t)}}))}catch(e){if(r&&(we.current=!1,Ce(!1),ue(e=>({...e,column_level_lineage:void 0})),n=void 0),e instanceof j){Vt.create({title:`Column Level Lineage error`,description:e.data?.detail??e.message,type:`error`,closable:!0});return}}}else Ee.current={pending:!1};let[s,c,l]=await yo(x,{selectedNodes:e,cll:o});p(s),g(c),ke(l),be(o),de(s,F.view_mode??`changed_models`,we.current,!!n?.column,!!Le||!!P)})()},[x,te?.impact_at_startup]);let Je=()=>{Re(void 0)},Ye=async e=>{let t=d.find(t=>t.id===e);if(t){if(t.parentId){let e=t.parentId;t=d.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})}}}},Xe=so();co(s,async()=>{R!==`selecting`&&(Le?await Ye(Le):await o.fitView({nodes:d,duration:200,padding:Ae,minZoom:Oe,maxZoom:1}))});let Ze=async(e,t=!1)=>{let n=F.column_level_lineage;e||Ce(!1);let r=n!==void 0;await nt({...F,column_level_lineage:e},!1,r),t||fe.push(n),e?.node_id?Re(e.node_id):e||Re(void 0)},Qe=async e=>{if(e){if(fe.length===0)return;let e=fe.pop();e?await Ze(e,!0):await Ze(void 0,!0)}else await Ze(void 0,!0)},$e=(e,t)=>{R||Ze({node_id:t.data.node.id,column:t.data.column})},et=(t,n)=>{if(e&&x){if(ce(n)){$e(t,n);return}if(B(),!R)Re(n.id);else if(R===`action_result`){let e=z.actionState.actions[n.id];e.run?.run_id&&ae(e.run.run_id),Re(n.id)}else{let e=new Set(Be);Be.has(n.id)?e.delete(n.id):e.add(n.id),Ve(e),e.size===0&&ze(void 0)}}},tt=async e=>{let{viewOptions:t=F}=e,{fitView:n,preservePositions:r=!1}=e,s;if(!x)return;if(F.select!==t.select||F.exclude!==t.exclude||F.packages!==t.packages||F.view_mode!==t.view_mode){try{let e=await w({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){e instanceof j&&Vt.create({title:`Select node error`,description:e.data?.detail??e.message,type:`error`,closable:!0});return}Re(void 0)}else s=d.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??Se};try{c=await Te.mutateAsync(e);let t=c;e.change_analysis&&t&&(Ee.current={pending:!0,cllData:t},a.setQueryData(A.lineage(),e=>e&&{...e,lineage:{...e.lineage,diff:Yo(e.lineage.diff,t)}}))}catch(e){if(e instanceof j){Vt.create({title:`Column Level Lineage error`,description:e.data?.detail??e.message,type:`error`,closable:!0});return}}}else Ce(!1);let l;r&&(l=Ue());let[u,m,h]=await yo(x,{selectedNodes:s,cll:c,existingPositions:l});p(u),g(m),ke(h),be(c),de(u,t.view_mode??`changed_models`,Se,!!t.column_level_lineage?.column,!!Le||!!P),P&&(T(P)||y(P)||D(P)||f(P)||_(P))&&P.params?.model&&!je(P.params.model)&&oe(),n&&(await new Promise(e=>setTimeout(e,1)),o.fitView({nodes:u,duration:200,padding:Ae,minZoom:Oe,maxZoom:1}))},nt=async(e,t=!0,n=!1)=>{ue(e),await tt({viewOptions:e,fitView:t,preservePositions:n})},rt=mo();An(()=>{let t=P?.type;if(e&&se&&!(!t||[`query_diff`,`query`,`row_count`,`row_count_diff`].includes(t))&&!R){let e;(T(P)||y(P)||D(P)||f(P)||_(P))&&(e=P.params?.model);let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window});if(e){let n=je(e);n?le(n)&&L!==n.data.data&&et(t,n):nt({...F,view_mode:`all`})}else Je()}},[P,F,se,R,je,L,e]);let it=(e,t=1e3)=>{R===`action_result`||x===void 0||(R||(ze(`selecting`),z.reset(),F.column_level_lineage&&nt({...F,column_level_lineage:void 0})),Ve(me(Be,ve(x,[e],t))))},at=(e,t=1e3)=>{R===`action_result`||x===void 0||(R||(ze(`selecting`),z.reset(),F.column_level_lineage&&nt({...F,column_level_lineage:void 0})),Ve(me(Be,ge(x,[e],t))))},ot=(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;Ke.showContextMenu(a,o,n)},ct=e=>{if(!R){if(!x)return;Ve(new Set([e])),ze(`selecting`),Re(void 0),z.reset()}else if(R===`selecting`){let t=new Set(Be);Be.has(e)?t.delete(e):t.add(e),Ve(t),t.size===0&&ze(void 0)}},lt=()=>{ze(void 0),Ve(new Set),Re(void 0),oe(),O?.()},ut={interactive:e,nodes:d,focusedNode:L,selectedNodes:He,viewOptions:F,showContextMenu:ot,onViewOptionsChanged:nt,selectMode:R,selectNode:ct,selectParentNodes:it,selectChildNodes:at,deselect:lt,isNodeHighlighted:e=>We.has(e),isNodeSelected:e=>Be.has(e),isEdgeHighlighted:(e,t)=>he?e in he.current.parent_map?t in he.current.parent_map[e]:!1:We.has(e)&&We.has(t),isNodeShowingChangeAnalysis:e=>{if(!x||!Se)return!1;let t=e in x.nodes?x.nodes[e]:void 0,n=F.column_level_lineage;return n?.node_id&&!n.column?n.node_id===e&&!!t?.data.changeStatus:!!t?.data.changeStatus},changeAnalysisMode:Se,setChangeAnalysisMode:Ce,getNodeAction:e=>z.actionState.actions[e],getNodeColumnSet:e=>e in De?new Set(De[e]):new Set,runRowCount:async()=>{R===`selecting`?(await z.runRowCount(),fn({type:`row_count`,selected:`multi`})):L?(M(`row_count`,{node_names:[L.data.name]},{showForm:!1,showLast:!1}),fn({type:`row_count`,selected:`single`})):(M(`row_count`,{select:F.select,exclude:F.exclude,packages:F.packages,view_mode:F.view_mode}),fn({type:`row_count`,selected:`none`}))},runRowCountDiff:async()=>{R===`selecting`?(await z.runRowCountDiff(),fn({type:`row_count_diff`,selected:`multi`})):L?(M(`row_count_diff`,{node_names:[L.data.name]},{showForm:!1,showLast:!1}),fn({type:`row_count_diff`,selected:`single`})):(M(`row_count_diff`,{select:F.select,exclude:F.exclude,packages:F.packages,view_mode:F.view_mode}),fn({type:`row_count_diff`,selected:`none`}))},runValueDiff:async()=>{if(L)M(`value_diff`,{model:L.data.name},{showForm:!0,showLast:!1}),fn({type:`value_diff`,selected:`single`});else{let e=R===`selecting`?He.length:Fe.length;await rt.confirm(e)&&(await z.runValueDiff(),fn({type:`value_diff`,selected:R===`selecting`?`multi`:`none`}))}},addLineageDiffCheck:async()=>{let e=await re(F,i),t;t=R===`selecting`?`multi`:L?`single`:`none`,fn({type:`lineage_diff`,selected:t}),e&&(await a.invalidateQueries({queryKey:A.checks()}),Xe(e))},addSchemaDiffCheck:async()=>{let e;R===`selecting`?He.length>0&&(e=await z.addSchemaDiffCheck(),lt(),fn({type:`schema_diff`,selected:`multi`})):L?(e=await v({node_id:L.id},i),fn({type:`schema_diff`,selected:`single`})):(e=await v({select:F.select,exclude:F.exclude,packages:F.packages,view_mode:F.view_mode},i),fn({type:`schema_diff`,selected:`none`})),e&&(await a.invalidateQueries({queryKey:A.checks()}),Xe(e))},cancel:z.cancel,actionState:z.actionState,centerNode:Ye,cll:he,showColumnLevelLineage:Ze,resetColumnLevelLineage:Qe};return C?G(es,{}):E?G(ts,{error:E,onRetry:S}):!x||d==Xa?G(W,{}):Ne===`changed_models`&&!x.modifiedSet.length?G(ns,{viewOptions:F,onViewOptionsChanged:nt}):K(_e.Provider,{value:ut,children:[K(mt,{sizes:L?[70,30]:[100,0],minSize:0,gutterSize:5,className:L?void 0:`split-gutter-hidden`,style:{height:`100%`,width:`100%`},children:[K(Y,{ref:s,divider:G(Yn,{sx:{borderColor:`grey.200`}}),spacing:0,sx:{contain:`strict`,position:`relative`},children:[e&&K(W,{children:[G(hs,{}),k.mode===`metadata only`&&G(Zo,{})]}),K(Mr,{proOptions:{hideAttribution:!0},nodeTypes:Ja,edgeTypes:Ya,nodes:d,edges:h,onNodesChange:m,onEdgesChange:b,onNodeClick:et,onNodeContextMenu:ot,onClick:B,onInit:async()=>{if(Me){let e=d.filter(e=>le(e)&&e.data.changeStatus!==void 0),t=e.length>0?e:d;await o.fitView({nodes:t,duration:200,padding:Ae,minZoom:Oe,maxZoom:1})}else{let e=Fr(d,{});await o.setCenter(e.x+e.width/2,e.y+e.height/2,{zoom:1})}},maxZoom:1,minZoom:Ge,nodesDraggable:e,ref:u,colorMode:r?`dark`:`light`,children:[G(wr,{id:`lineage-bg`,variant:Tr.Dots,color:r?I.neutral[700]:I.neutral[300],gap:20,size:2}),G(Or,{showInteractive:!1,position:`top-right`,className:st,style:{backgroundColor:r?I.neutral[700]:void 0,borderColor:r?I.neutral[600]:void 0},children:G(Dr,{title:`copy image`,onClick:async()=>{await c(),rn({type:Ne,from:`lineage_view`})},style:{backgroundColor:r?I.neutral[700]:void 0,color:r?I.neutral[200]:void 0},children:G(q,{component:Si})})}),G(l,{}),G(Ar,{position:`bottom-left`,children:K(Y,{spacing:`5px`,children:[Me&&G(wt,{variant:`changeStatus`}),F.column_level_lineage&&G(wt,{variant:`transformation`})]})}),G(Ar,{position:`top-center`,children:G(ho,{notification:ee?G($o,{}):null,type:`info`})}),G(Ar,{position:`top-left`,children:K(Y,{spacing:`5px`,children:[G(da,{action:Te}),d.length==0&&G(X,{sx:{fontSize:`1.25rem`,color:`grey`,opacity:.5},children:`No nodes`})]})}),G(kr,{nodeColor:Za,nodeStrokeWidth:3,zoomable:!0,pannable:!0,bgColor:r?I.neutral[800]:void 0,maskColor:r?`${I.neutral[900]}99`:`${I.neutral[100]}99`}),R===`action_result`&&G(Ar,{position:`bottom-center`,className:`ignore-screenshot`,children:G(ua,{onClose:()=>{lt()}})})]}),G(_o,{...Ke.props})]}),L?G(q,{sx:{borderLeft:`solid 1px`,borderColor:`divider`,height:`100%`},children:G(Jo,{node:L,onCloseNode:Je})}):G(q,{})]}),rt.AlertDialog]})}const _s=Dn(gs);function vs(){return G(Nr,{children:G(_s,{interactive:!0})})}function ys(){let{apiClient:e}=Pe(),{data:t,isLoading:n,error:r}=Cn({queryKey:A.user(),queryFn:()=>Xt(e),retry:!1}),{data:i}=Cn({queryKey:[`github-avatar`,t?.id],queryFn:()=>t?Yt(t.id):Promise.resolve(null),enabled:!!t?.id&&t.login_type===`github`,retry:!1,staleTime:300*1e3}),[a,o]=U(null),s=!!a,c=e=>{o(e.currentTarget)},l=()=>{o(null)},u=!n&&!r&&t;return K(W,{children:[n?G(q,{onClick:c,sx:{width:32,height:32,borderRadius:`50%`,bgcolor:`background.paper`,color:`primary.main`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`},children:G(Xn,{size:16})}):G(di,{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)}),K(Kr,{anchorEl:a,open:s,onClose:l,slotProps:{paper:{sx:{bgcolor:`background.paper`,borderColor:`divider`,boxShadow:3,minWidth:180}}},children:[K(q,{sx:{px:2,py:1.5},children:[n&&K(q,{sx:{display:`flex`,alignItems:`center`,gap:1},children:[G(X,{variant:`body2`,color:`text.primary`,children:`Loading...`}),G(Xn,{size:16})]}),r&&G(X,{variant:`caption`,color:`error`,children:`Failed to load user information`}),u&&K(W,{children:[G(X,{variant:`body2`,fontWeight:`600`,color:`text.primary`,children:t.login}),t.email&&G(X,{variant:`caption`,color:`text.secondary`,children:t.email})]})]}),G(Yn,{}),K(qr,{onClick:()=>{window.open(Zt,`_blank`),l()},children:[G(yi,{children:G(Zn,{})}),G(bi,{children:`Recce Cloud`})]}),K(qr,{onClick:()=>{window.open(Qt,`_blank`),l()},children:[G(yi,{children:G(rr,{})}),G(bi,{children:`Get live support`})]})]})]})}const bs=()=>{let{setTheme:e,resolvedTheme:t}=Un(),[n,r]=U(!1);An(()=>{r(!0)},[]);let i=()=>{e(t===`dark`?`light`:`dark`)};if(!n)return G(Z,{size:`small`,sx:{color:`rgba(255, 255, 255, 0.8)`,"&:hover":{bgcolor:`rgba(255, 255, 255, 0.1)`}},disabled:!0,children:G(yr,{style:{width:18,height:18}})});let a=t===`dark`;return G(Q,{title:a?`Switch to light mode`:`Switch to dark mode`,children:G(Z,{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:G(a?yr:pr,{style:{width:18,height:18}})})})};function xs(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:!Jr(i),has_pr_info:!Jr(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 Ss(e){return Object.values(e).every(e=>e===null)?[G(q,{sx:{ml:`10px`},children:`No information`},`no info`)]:Object.entries(e).filter(([e,t])=>e!==`url`&&t!=null).map(([e,t])=>K(`li`,{style:{marginLeft:`10px`},children:[e,`: `,t]},e))}function Cs(){let{envInfo:e,reviewMode:t,lineageGraph:n}=N(),[r,i]=U(!1),a=e?.git,o=e?.pullRequest,s={...a,...o},c=e?.dbt?.base,l=e?.dbt?.current,u=c?.generated_at?zt(c.generated_at):``,d=l?.generated_at?zt(l.generated_at):``,f=``,p=``;c&&(f=c.generated_at?Ht(c.generated_at):``),l&&(p=l.generated_at?Ht(l.generated_at):``);let[m,h]=qt(n),g=Nn(!1);An(()=>{!g.current&&e&&(g.current=!0,an(xs(e,t,m,h)))},[e,t,m,h]);let _=()=>i(!0),v=()=>i(!1);return K(W,{children:[G(Q,{title:`Environment Info`,placement:`bottom-end`,children:K(q,{sx:{display:`flex`,alignItems:`center`,cursor:`pointer`,"&:hover":{color:`text.primary`}},onClick:_,children:[K(Y,{direction:`column`,sx:{display:{xs:`none`,lg:`flex`},fontSize:`0.875rem`},children:[K(q,{sx:{display:`flex`,alignItems:`baseline`,gap:.5},children:[G(X,{component:`span`,noWrap:!0,sx:{color:`warning.main`,maxWidth:128},className:`no-track-pii-safe`,children:Array.from(m).join(`, `)}),K(X,{component:`span`,noWrap:!0,children:[`(`,f,`)`]})]}),K(q,{sx:{display:`flex`,alignItems:`baseline`,gap:.5},children:[G(X,{component:`span`,noWrap:!0,sx:{color:`primary.main`,maxWidth:128},className:`no-track-pii-safe`,children:Array.from(h).join(`, `)}),K(X,{component:`span`,noWrap:!0,children:[`(`,p,`)`]})]})]}),G(Z,{size:`small`,"aria-label":`Environment Info`,children:G(q,{component:dr,sx:{fontSize:16,verticalAlign:`middle`}})})]})}),K(Pn,{open:r,onClose:v,maxWidth:`sm`,fullWidth:!0,children:[K(Ln,{sx:{display:`flex`,alignItems:`center`},children:[`Environment Information`,G(q,{sx:{flexGrow:1}}),G(Z,{size:`small`,onClick:v,children:G(Kn,{})})]}),G(In,{children:K(Y,{direction:`column`,spacing:1,children:[t?K(Y,{direction:`column`,spacing:.5,children:[G(X,{variant:`h6`,sx:{fontSize:`1rem`},children:`Review Information`}),K(`ul`,{style:{margin:0,paddingLeft:`20px`},children:[s.url&&K(`li`,{style:{marginLeft:`10px`},children:[`url:`,` `,K(Rn,{href:s.url,target:`_blank`,sx:{color:`primary.main`},children:[s.url,` `,G(zn,{})]})]}),!Jr(s)&&Ss(s)]})]}):K(Y,{direction:`column`,spacing:.5,children:[G(X,{variant:`h6`,sx:{fontSize:`1rem`},children:`Dev Information`}),G(`ul`,{style:{margin:0,paddingLeft:`20px`},children:a&&Ss(a)})]}),G(Yn,{}),e?.adapterType===`dbt`&&K(Y,{direction:`column`,spacing:.5,children:[G(X,{variant:`h6`,sx:{fontSize:`1rem`},children:`DBT`}),G(Hi,{sx:{border:1,borderColor:`divider`,maxHeight:`30rem`},children:K(Bi,{size:`small`,stickyHeader:!0,children:[G(Ui,{children:K(Wi,{children:[G($,{}),G($,{children:`base`}),G($,{children:`current`})]})}),K(Vi,{children:[K(Wi,{children:[G($,{children:`schema`}),G($,{className:`no-track-pii-safe`,children:Array.from(m).map(e=>G(Q,{title:e,placement:`bottom`,children:G(`div`,{className:`max-w-72 truncate`,children:e})},e))}),G($,{className:`no-track-pii-safe`,children:Array.from(h).map(e=>G(Q,{title:e,placement:`bottom`,children:G(`div`,{className:`max-w-72 truncate`,children:e})},e))})]}),K(Wi,{children:[G($,{children:`version`}),G($,{children:c?.dbt_version}),G($,{children:l?.dbt_version})]}),K(Wi,{children:[G($,{children:`timestamp`}),G($,{children:u}),G($,{children:d})]})]})]})})]}),e?.adapterType===`sqlmesh`&&K(Y,{direction:`column`,spacing:.5,children:[G(X,{variant:`h6`,sx:{fontSize:`1rem`},children:`SQLMesh`}),G(Hi,{sx:{border:1,borderColor:`divider`,maxHeight:`30rem`},children:K(Bi,{stickyHeader:!0,children:[G(Ui,{children:K(Wi,{children:[G($,{}),G($,{children:`base`}),G($,{children:`current`})]})}),G(Vi,{children:K(Wi,{children:[G($,{children:`Environment`}),G($,{className:`no-track-pii-safe`,children:e.sqlmesh?.base_env}),G($,{className:`no-track-pii-safe`,children:e.sqlmesh?.current_env})]})})]})})]})]})}),G(Fn,{children:G(J,{color:`iochmara`,onClick:v,children:`Close`})})]})]})}const ws=()=>({toastSuccess:e=>{Vt.create({description:e,type:`success`,duration:5e3,closable:!0})},toastError:(e,t)=>{let n=e;t!=null&&(n=ae(t)?`${e}. ${String(t.data?.detail)}`:`${e}. ${t}`),Vt.create({description:n,type:`error`,duration:5e3,closable:!0})}}),Ts=e=>{An(()=>{let t=e=>{e.preventDefault()};return e&&window.addEventListener(`beforeunload`,t),()=>{e&&window.removeEventListener(`beforeunload`,t)}},[e])},Es=()=>{let{featureToggles:e}=xe(),{fileName:t,cloudMode:n,isDemoSite:r,envInfo:i}=N(),{apiClient:a}=Pe(),[o,c]=U(!1),[l,u]=U(!1),d=!t&&!n&&!r,{data:f}=s(d),m=f!=null&&f.filter(e=>!e.is_preset).length>0;Ts(d&&m);let[{newFileName:g,errorMessage:_,modified:v,overwriteWithMethod:y,bypass:b},x]=U({newFileName:t??`recce_state.json`,bypass:!1}),S=Nn(null),{toastSuccess:C,toastError:w}=ws(),T=wn(),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(p.bypassSaveOverwrite)===`true`;try{e===`save`?await h({filename:g,overwrite:t??n},a):await te({filename:g,overwrite:t??n},a),C(e===`save`?`Save file successfully`:`Rename file successfully`),await T.invalidateQueries({queryKey:A.lineage()}),b&&localStorage.setItem(p.bypassSaveOverwrite,`true`)}catch(t){if(ae(t)&&t.status===409){x(t=>({...t,overwriteWithMethod:e})),u(!0);return}w(e===`save`?`Save file failed`:`Rename file failed`,t)}finally{D()}},ee=()=>{O(),c(!0),x(e=>({...e,overwriteWithMethod:void 0}))};if(n||r)return G(W,{});let ne=`New Instance`+(m?` (unsaved)`:``),re;if(e.disableSaveToFile&&t){let e=i?.stateMetadata?.generated_at,n=e?Be(new Date(e)):null;re=n?`${t} (${n})`:null}return K(W,{children:[K(Y,{direction:`row`,alignItems:`center`,justifyContent:`center`,children:[G(q,{sx:{fontWeight:600},children:re??t??ne}),!e.disableSaveToFile&&G(Q,{title:t?`Change Filename`:`Save`,enterDelay:1e3,children:G(Z,{onClick:E,"aria-label":t?`Change Filename`:`Save`,size:`small`,children:G(q,{component:t?hr:Bn,sx:{fontSize:16,verticalAlign:`middle`}})})})]}),K(Pn,{open:o,onClose:D,children:[K(Ln,{sx:{display:`flex`,alignItems:`center`},children:[t?`Change Filename`:`Save File`,G(q,{sx:{flexGrow:1}}),G(Z,{size:`small`,onClick:D,children:G(Kn,{})})]}),G(In,{onKeyDown:e=>{e.stopPropagation()},children:G(ti,{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()}})}),K(Fn,{sx:{gap:`5px`},children:[G(J,{size:`small`,color:t?`inherit`:`iochmara`,variant:`contained`,onClick:async()=>{await k(`save`)},disabled:!g||!!_||!v,children:t?`Save as New File`:`Confirm`}),t&&G(J,{size:`small`,color:`iochmara`,variant:`contained`,onClick:async()=>{await k(`rename`)},disabled:!g||!!_||!v,children:`Rename`})]})]}),K(Pn,{open:l,onClose:O,children:[K(Ln,{sx:{display:`flex`,alignItems:`center`},children:[`Overwrite File?`,G(q,{sx:{flexGrow:1}}),G(Z,{size:`small`,onClick:O,children:G(Kn,{})})]}),K(In,{sx:{borderTop:`solid 1px`,borderBottom:`solid 1px`,borderColor:`divider`},onKeyDown:e=>{e.stopPropagation()},children:[G(X,{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?`}),G(Hr,{control:G(Vr,{size:`small`,checked:b,onChange:e=>{x(t=>({...t,bypass:e.target.checked}))}}),label:G(X,{sx:{fontWeight:`bold`,pt:`8px`},children:`Don't show this again`})})]}),K(Fn,{sx:{gap:`5px`},children:[G(J,{variant:`outlined`,onClick:ee,size:`small`,children:`Back`}),G(J,{size:`small`,color:`iochmara`,variant:`contained`,onClick:()=>{y&&(k(y,!0),O())},children:`Overwrite`})]})]})]})};function Ds(){let{featureToggles:e}=xe(),{apiClient:t}=Pe(),n=async()=>{try{let e=await ee(t),n=JSON.stringify(e,null,2);Br(new Blob([n],{type:`application/json`}),`recce-state-${ni(new Date,`yyyy-MM-dd-HH-mm-ss`)}.json`)}catch(e){console.error(`Export failed`,e),Vt.create({title:`Export failed`,description:String(e),type:`error`,duration:5e3,closable:!0})}};return G(Q,{title:`Export`,children:G(Z,{size:`small`,"aria-label":`Export state`,onClick:async()=>{await n(),vn({name:`export`})},disabled:e.disableExportStateFile,children:G(q,{component:ur,sx:{verticalAlign:`middle`,width:`16px`,height:`16px`}})})})}const Os=[`Processing...`,`Still processing, please wait...`,`Almost there, thanks for your patience...`];function ks(){let{successToast:e,failToast:t}=Bt(),[,n]=Ur(),{authed:r}=xe(),{shareUrl:i,isLoading:a,error:o,handleShareClick:s}=At(),[c,l]=U(!1),[u,d]=U(0),[f,p]=U(a);a!==f&&(p(a),a&&d(0)),Wr(()=>{d(e=>Math.min(e+1,Os.length-1))},a?3e4:null),An(()=>{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?K(Y,{direction:`row`,sx:{flex:1,alignItems:`center`,gap:`5px`},children:[G(J,{size:`xsmall`,variant:`outlined`,color:`neutral`,startIcon:G(_i,{}),endIcon:i?G(q,{component:sr,sx:{color:`success.main`}}):void 0,onClick:async()=>{await s(),gn({name:`create`})},disabled:a,children:a?`Sharing...`:`Share`}),a&&G(X,{sx:{fontSize:14,color:`grey.500`},children:Os[u]}),G(Y,{direction:`row`,spacing:.5,alignItems:`center`,children:i&&K(W,{children:[G(q,{sx:{overflowX:`auto`,whiteSpace:`nowrap`,maxWidth:`350px`},children:G(X,{sx:{fontSize:14},children:i})}),G(Z,{size:`small`,"aria-label":`Copy the share URL`,onClick:async()=>{await m(),gn({name:`copy`})},children:G(lr,{})})]})})]}):K(Y,{direction:`row`,sx:{flex:1,alignItems:`center`},children:[G(J,{size:`xsmall`,color:`neutral`,variant:`outlined`,onClick:()=>{l(!0)},startIcon:G(_i,{}),children:`Share`}),c&&G(Tt,{parentOpen:c,handleParentClose:l,ignoreCookie:!0,variant:`enable-share`})]})}function As(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 js(){return G(Q,{title:`Syncing`,children:G(q,{sx:{mx:`10px`},children:G(Xn,{size:20})})})}function Ms(){let[e,t]=U(!1),n=wn(),{apiClient:r}=Pe(),i=mi(),a=pi(),{basePath:o}=fe(),[s,c]=U(!1),[l,u]=U(``),{data:d}=se(),f=()=>c(!1),p=V(async e=>{if(c(!1),t(!0),(await k(e,r)).status===`conflict`){c(!0),t(!1);return}for(;await S(r);)await new Promise(e=>setTimeout(e,1e3));Vt.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()}),As(a)&&i.push(`${o}/checks`)},[n,a,r,i.push,o]);return e?G(js,{}):K(W,{children:[G(Q,{title:`Sync with Cloud`,children:G(Z,{size:`small`,"aria-label":`Sync state`,onClick:()=>p(d?.session_id?{method:`merge`}:{}),children:G(q,{component:qn,sx:{fontSize:16,verticalAlign:`middle`}})})}),K(Pn,{open:s,onClose:f,children:[K(Ln,{sx:{display:`flex`,alignItems:`center`,fontWeight:`bold`},children:[`Sync with Cloud`,G(q,{sx:{flexGrow:1}}),G(Z,{size:`small`,onClick:f,children:G(Kn,{})})]}),K(In,{children:[G(X,{children:`New changes have been detected in the cloud. Please choose a method to sync your state`}),G(q,{sx:{mt:`5px`},children:G(zi,{value:l,onChange:e=>{u(e.target.value)},children:K(Y,{direction:`column`,children:[G(Hr,{value:`merge`,control:G(Ri,{}),label:K(Y,{direction:`row`,alignItems:`center`,children:[`Merge`,G(Q,{title:`This will merge the local and remote states.`,children:G(q,{component:dr,sx:{ml:2,cursor:`pointer`}})})]})}),G(Hr,{value:`overwrite`,control:G(Ri,{}),label:K(Y,{direction:`row`,alignItems:`center`,children:[`Overwrite`,G(Q,{title:`This will overwrite the remote state file with the local state.`,children:G(q,{component:dr,sx:{ml:2,cursor:`pointer`}})})]})}),G(Hr,{value:`revert`,control:G(Ri,{}),label:K(Y,{direction:`row`,alignItems:`center`,children:[`Revert`,G(Q,{title:`This will discard local changes and revert to the cloud state.`,children:G(q,{component:dr,sx:{ml:2,cursor:`pointer`}})})]})})]})})})]}),K(Fn,{children:[G(J,{onClick:f,sx:{mr:1},children:`Cancel`}),G(J,{color:`iochmara`,variant:`contained`,onClick:()=>p({method:l||void 0}),disabled:!l,children:`Sync`})]})]})]})}const Ns=[{path:`/lineage`,name:`Lineage`},{path:`/query`,name:`Query`},{path:`/checks`,name:`Checklist`}];function Ps({queryKey:e,fetchCallback:t,selectCallback:n}){let{data:r,isLoading:i,error:a}=Cn({queryKey:e,queryFn:t,select:n});return i||a||r===0?G(W,{}):G(q,{bgcolor:`brand.main`,display:`flex`,justifyContent:`center`,alignItems:`center`,p:1,borderRadius:`100%`,color:`white`,fontWeight:700,fontSize:`0.75rem`,children:G(`span`,{children:r})})}function Fs(){let{apiClient:e}=Pe();return G(Ps,{queryKey:A.checks(),fetchCallback:()=>x(e),selectCallback:e=>e.filter(e=>!e.is_checked).length})}const Is=()=>{let e=pi(),{isDemoSite:t,isLoading:n,cloudMode:r}=N(),{featureToggles:i}=xe(),{data:a,isLoading:o}=ye(),s=Nn(null);return An(()=>{s.current&&s.current!==e&&pn({from:s.current,to:e}),s.current=e},[e]),G(q,{sx:{borderBottom:`1px solid lightgray`,px:`12px`},children:K(q,{sx:{display:`grid`,gridTemplateColumns:`1fr auto 1fr`,width:`100%`,alignItems:`center`},children:[G(oi,{value:H(()=>e.startsWith(`/checks`)?`/checks`:e.startsWith(`/query`)?`/query`:e.startsWith(`/runs`)?`/runs`:`/lineage`,[e]),sx:{borderBottom:`none`,minHeight:`auto`},children:Ns.map(({path:e,name:t})=>t===`Query`&&a?.single_env_onboarding?null:t===`Checklist`&&Fs?G(ai,{value:e,disabled:n||o,sx:{p:0},label:G(q,{sx:{display:`flex`,alignItems:`center`,gap:`4px`},children:K(Wn,{href:e,style:{textDecoration:`none`,color:`inherit`,padding:`0.875rem 1.1875rem`,display:`flex`,gap:3,alignItems:`center`},children:[t,` `,G(Fs,{})]})})},e):G(ai,{value:e,disabled:n||o,sx:{p:0},label:G(q,{sx:{display:`flex`,alignItems:`center`,gap:`4px`},children:G(Wn,{href:e,style:{textDecoration:`none`,color:`inherit`,padding:`0.875rem 1.1875rem`},children:t})})},e))}),K(q,{sx:{display:`flex`,alignItems:`center`,gap:`12px`,justifyContent:`center`},children:[!n&&!t&&G(Es,{}),!n&&!t&&!a?.single_env_onboarding&&!i.disableShare&&G(ks,{})]}),!n&&K(q,{sx:{display:`flex`,justifyContent:`right`,alignItems:`center`,mr:`8px`},children:[G(Cs,{}),r&&G(Ms,{}),G(Ds,{})]})]})})};function Ls(){let{remainingSeconds:e,isEnabled:t}=F();return!t||e===null||e>60?null:K(Gi,{color:`warning`,variant:`standard`,sx:{display:`flex`,alignItems:`center`,gap:1,fontSize:`0.75rem`,mr:2},children:[G(q,{component:Jn,sx:{display:`inline-flex`}}),`Idle timeout: `,Kt(e,`compact`)]})}const Rs=()=>{let{version:e,latestVersion:t}=E(),n=H(()=>RegExp(`^\\d+\\.\\d+\\.\\d+$`),[]);return An(()=>{if(n.test(e)&&e!==t){let e=`recce-update-toast-shown`;if(sessionStorage.getItem(e))return;setTimeout(()=>{Vt.create({id:`recce-update-available`,title:`Update available`,description:K(`span`,{children:[`A new version of Recce (v`,t,`) is available.`,G(`br`,{}),`Please run`,` `,G(q,{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.`,G(`br`,{}),G(Rn,{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)?G(Rn,{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}):G(X,{component:`span`,sx:{fontSize:`sm`,color:`rgba(255,255,255,0.8)`,textTransform:`uppercase`,borderWidth:1,px:1,borderRadius:.75},children:e})};function zs({icon:e,href:t,sx:n,...r}){let i=Hn();return G(Rn,{sx:{height:`20px`,color:`common.white`,...n},href:t,target:`_blank`,...r,children:G(e,{style:{color:i.palette.common.white,width:20,height:20}})})}const Bs=()=>{let{reviewMode:e,isDemoSite:t,envInfo:n,cloudMode:r}=N(),{featureToggles:i,authed:a}=xe(),{url:o,id:s}=n?.pullRequest??{},c=o?o.split(`/`).pop():null,l=r||a?Zt:`https://reccehq.com/`,[u,d]=U(!1);return K(q,{sx:{display:`flex`,gap:`10px`,minHeight:`40px`,alignItems:`center`,bgcolor:I.brand[400]},children:[G(Rn,{href:l,target:`_blank`,sx:{"&:hover":{textDecoration:`none`}},children:K(q,{sx:{display:`flex`,gap:`10px`,alignItems:`center`},children:[G(q,{component:`img`,sx:{width:20,height:20,ml:`18px`},src:`/logo/recce-logo-white.png`,alt:`recce-logo-white`}),G(X,{variant:`h4`,sx:{fontFamily:`"Montserrat", sans-serif`,color:`common.white`,fontSize:`1.25rem`},children:`RECCE`})]})}),G(bs,{}),G(Rs,{}),(i.mode??e)&&G(Gi,{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&&G(Gi,{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:K(Y,{direction:`row`,spacing:1,alignItems:`center`,children:[G(q,{children:`cloud mode`}),G(q,{sx:{borderLeft:`1px solid rgba(255,255,255,0.8)`,pl:`8px`},children:K(Rn,{href:o,sx:{"&:hover":{textDecoration:`none`}},target:`_blank`,children:[G(Zr,{style:{color:`rgba(255,255,255,0.8)`,width:12,height:12,marginRight:2,display:`inline`,verticalAlign:`middle`}}),G(X,{component:`span`,sx:{color:`rgba(255,255,255,0.8)`,display:`inline`},children:`#${String(s)}`})]})})]})}),t&&o&&c&&G(Gi,{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:K(Y,{direction:`row`,spacing:1,alignItems:`center`,children:[G(q,{children:`demo mode`}),G(q,{sx:{borderLeft:`1px solid rgba(255,255,255,0.8)`,pl:`8px`},children:K(Rn,{href:o,sx:{"&:hover":{textDecoration:`none`}},target:`_blank`,children:[G(Zr,{style:{color:`rgba(255,255,255,0.8)`,width:12,height:12,marginRight:2,display:`inline`,verticalAlign:`middle`}}),G(X,{component:`span`,sx:{color:`rgba(255,255,255,0.8)`,display:`inline`},children:`#${c}`})]})})]})}),G(q,{sx:{flex:1}}),(t||i.mode===`read only`)&&K(W,{children:[G(zs,{icon:$n,href:`https://github.com/DataRecce/recce`}),G(zs,{icon:nr,href:`https://getdbt.slack.com/archives/C05C28V7CPP`}),G(zs,{sx:{mr:2},icon:er,href:`https://docs.reccehq.com`})]}),!t&&i.mode!==`read only`&&K(W,{children:[G(Ls,{}),a||r?G(q,{sx:{mr:2},children:G(ys,{})}):K(W,{children:[G(q,{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&&G(Tt,{parentOpen:u,handleParentClose:d,ignoreCookie:!0,variant:`user-profile`})]})]})]})};function Vs(){return G(q,{sx:{display:`flex`,height:`100%`,alignItems:`center`,justifyContent:`center`,contain:`size`},children:G(q,{sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,height:`100%`},children:G(Xn,{size:48})})})}function Hs({children:e,lineage:t}){let n=pi(),{isDemoSite:r,isLoading:i,isCodespace:a}=N(),{featureToggles:o}=xe(),s=n.replace(/\/$/,``)||`/`,c=s===`/lineage`||s===`/`;return An(()=>{ln()},[]),K(q,{sx:{display:`flex`,flexDirection:`column`,height:`100vh`,overflow:`hidden`},children:[G(Bs,{}),G(Is,{}),G(Us,{isLineageRoute:c,lineage:t,children:e}),!i&&!r&&!a&&o.mode===null&&G(Tt,{})]})}function Us({children:e,lineage:t,isLineageRoute:n,disableInternalHistory:r=!1}){let{isRunResultOpen:i,isHistoryOpen:a,closeRunResult:o}=pe(),{basePath:s}=fe(),{data:c}=ye(),l=pi(),u=Lt(),d=i&&!l.startsWith(`${s}/checks`),f=r?!1:a&&!l.startsWith(`${s}/checks`);return K(mt,{sizes:f?[20,80]:[0,100],minSize:0,gutterSize:5,className:f?void 0:`split-gutter-hidden`,style:{height:`100%`},children:[G(q,{style:{contain:`size`},suppressHydrationWarning:!0,children:f&&G(Le,{})}),K(kt,{sizes:d?[50,50]:[100,0],minSize:0,gutterSize:5,className:d?void 0:`split-gutter-hidden`,style:{flex:`1`,contain:`size`},children:[G(Tn,{fallback:G(Vs,{}),children:K(q,{sx:{p:0,contain:`content`,height:`100%`,position:`relative`},suppressHydrationWarning:!0,children:[G(q,{sx:{display:n?`block`:`none`,height:`100%`,position:n?`relative`:`absolute`,inset:0},children:t}),!n&&e]})}),G(q,{sx:{height:`100%`,bgcolor:u?`grey.900`:`grey.50`},suppressHydrationWarning:!0,children:d?G(Ve,{onClose:o,isSingleEnvironment:!!c?.single_env_onboarding}):null})]})]})}function Ws({children:e,display:t}){let[n,r]=U(!1),i=Nn(null),a=Nn(null),o=V(()=>{i.current&&=(clearTimeout(i.current),null),r(!0)},[]),s=V(()=>{i.current=setTimeout(()=>{r(!1)},100)},[]);return t?K(W,{children:[G(q,{ref:a,onMouseEnter:o,onMouseLeave:s,sx:{display:`contents`},children:e}),K(fi,{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.`,` `,G(Rn,{href:Qt,target:`_blank`,sx:{color:`white`,textDecoration:`underline`},children:`Learn more`}),`.`]})]}):e}function Gs({checksOnly:e=!0}){let t=Lt(),{featureToggles:n}=xe(),r=wn(),{apiClient:i}=Pe(),a=Nn(null),o=Nn(null),[s,c]=U(null),[l,u]=U(!1),d=mi(),f=pi(),{basePath:p}=fe(),[,h]=be(),g=V(async()=>{if(s){try{let{runs:t,checks:n}=await m(s,e,i);h?.(),await r.invalidateQueries({queryKey:A.checks()}),await r.invalidateQueries({queryKey:A.runs()}),f.includes(`/checks`)&&d.push(`${p}/checks`);let a=e?`${n} checks imported successfully`:`${t} runs and ${n} checks imported successfully`;Vt.create({description:a,type:`info`,duration:5e3,closable:!0})}catch(e){console.error(`Import failed`,e),Vt.create({title:`Import failed`,description:String(e),type:`error`,duration:5e3,closable:!0})}u(!1)}},[r,s,f,h,e,i,d.push,p]),_=()=>{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}=N();return K(W,{children:[G(Q,{title:`Import Checklist from State File`+(x?` (Disabled in the demo site)`:``),children:G(Z,{sx:{pt:`6px`,color:t?`grey.300`:`grey.600`,"&:hover":{color:t?`grey.100`:`grey.800`},fontSize:20},"aria-label":`Import state`,onClick:()=>{_(),vn({name:`import`})},disabled:n.disableImportStateFile||x,children:G(Mi,{})})}),G(`input`,{type:`file`,style:{display:`none`},ref:a,onChange:v}),K(Pn,{open:l,onClose:y,maxWidth:`sm`,fullWidth:!0,"aria-labelledby":`import-dialog-title`,children:[K(Ln,{id:`import-dialog-title`,sx:{display:`flex`,alignItems:`center`,fontWeight:`bold`},children:[`Import state`,G(q,{sx:{flexGrow:1}}),G(Z,{size:`small`,onClick:y,children:G(Kn,{})})]}),G(In,{children:K(Y,{direction:`column`,spacing:1,sx:{px:`5px`,borderRadius:1},children:[K(Y,{direction:`row`,alignItems:`center`,spacing:.5,children:[G(q,{component:dr,sx:{color:`error.main`}}),G(X,{component:`span`,sx:{fontWeight:500,color:`error.main`},children:`Caution!`})]}),K(X,{children:[`The current `,b,` will be`,` `,G(X,{component:`span`,sx:{fontWeight:600},children:`merged`}),` `,`with the imported state`]})]})}),K(Fn,{children:[G(J,{ref:o,onClick:y,children:`Cancel`}),G(J,{color:`iochmara`,variant:`contained`,onClick:g,sx:{ml:`5px`},children:`Import`})]})]})]})}function Ks({check:e},t){return G(q,{sx:{display:`flex`,flexDirection:`column`,height:`100%`},children:G(Nr,{children:G(_s,{viewOptions:{...e.params,...e.view_options},interactive:!1,ref:t})})})}const qs=Dn(Ks),Js=({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=B(`schema_diff`).icon,l=Pt(`modified`).color):!o&&s?(c=Pt(`added`).icon,l=Pt(`added`).color):o&&!s&&(c=Pt(`removed`).icon,l=Pt(`removed`).color),G(ci,{disablePadding:!0,children:K(q,{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&&G(q,{component:a}),G(q,{sx:{flex:1,textOverflow:`ellipsis`,whiteSpace:`nowrap`,overflow:`hidden`},children:e.data.name}),c&&l&&G(q,{component:c,sx:{color:l}})]})})};function Ys({check:e},t){let n=Lt(),{apiClient:r}=Pe(),{lineageGraph:i}=N(),a=e.params,{isLoading:o,error:s,data:c}=Cn({queryKey:[...A.check(e.check_id),`select`],queryFn:async()=>w({select:a.select,exclude:a.exclude,packages:a.packages,view_mode:a.view_mode},r),refetchOnMount:!0,enabled:!a.node_id}),[l,u]=H(()=>{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)Wt(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]=U(0);if(o)return G(q,{sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,bgcolor:n?`grey.900`:`grey.50`,height:`100%`},children:`Loading...`});if(s)return K(q,{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 G(q,{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 K(mt,{sizes:[80,20],minSize:30,style:{height:`100%`},children:[G(wo,{base:e.data.data.base,current:e.data.data.current,columnChanges:e.data.change?.columns,enableScreenshot:!0,showMenu:!1,ref:t}),G(si,{sx:{overflow:`auto`,bgcolor:`background.paper`,listStyle:`none`},children:l.map((e,t)=>G(Js,{node:e,schemaChanged:u.includes(e.id),selected:t===d,isDark:n,onSelect:()=>{f(t)}},e.id))})]})}return G(W,{})}const Xs=Dn(Ys);function Zs({checkId:r,refreshCheckList:a}){let s=Hn(),l=Lt(),{apiClient:u}=Pe(),{featureToggles:d,sessionId:f}=xe(),{setLatestSelectedCheckId:p}=R(),{cloudMode:m}=N(),h=wn(),g=mi(),{basePath:_}=fe(),{setSqlQuery:v,setBaseSqlQuery:y,setCustomQueries:b,setPrimaryKeys:x}=Ue(),{successToast:S,failToast:C}=Bt(),[w,T]=U(),[E]=U(),[D,O]=U(!1),[k,ee]=U(!1),[te,ne]=U(null),re=!!te,{isLoading:ie,error:ae,data:j}=Cn({queryKey:A.check(r),queryFn:async()=>c(r,u),refetchOnMount:!0}),oe=w??j?.last_run?.run_id,{run:M,error:se}=xt(oe),P=w?!M||M.status===`Running`:M?.status===`Running`,F=j?.type?B(j.type):void 0,ce;F&&(ce=F.RunResultView);let le=j?.is_preset??!1,ue=Nn(null),{mutate:de}=Sn({mutationFn:e=>o(r,e,u),onSuccess:async()=>{await h.invalidateQueries({queryKey:A.check(r)}),await h.invalidateQueries({queryKey:A.checks()})}}),{mutate:pe}=Sn({mutationFn:()=>n(r,u),onSuccess:async()=>{p(``),await h.invalidateQueries({queryKey:A.checks()}),g.push(`${_}/checks`)}}),{mutate:me,isPending:he}=Sn({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)}}),ge=V(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=V(async()=>{if(O(!0),oe)return await i(oe,u)},[oe,u]),ve=async()=>{if(!j)return;let e=Qs(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=V(()=>{let e=j?.is_checked;de({is_checked:!e}),e||Vt.create({title:`Marked as approved`,type:`success`,duration:2e3})},[j?.is_checked,de]),be=e=>{de({view_options:e})},Se=e=>{de({description:e})},Ce=e=>{ne(e.currentTarget)},I=()=>{ne(null)},Ee=V(()=>{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,Oe]=U(`result`),{ref:Ae,onCopyToClipboard:je,onMouseEnter:Me,onMouseLeave:Ne}=ht(),Fe=Je({name:j?.name??``,description:j?.description??``,type:j?.type??``,params:j?.params,viewOptions:j?.view_options});if(ie)return G(q,{sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,height:`100%`},children:`Loading`});if(ae)return K(q,{sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,height:`100%`},children:[`Error: `,G(`span`,{className:`no-track-pii-safe`,children:ae.message})]});if(!j)return G(kt,{minSize:100,sizes:[30,70],style:{height:`100%`,width:`100%`,maxHeight:`100%`},children:G(q,{style:{contain:`strict`},sx:{display:`flex`,flexDirection:`column`},children:G(q,{sx:{display:`flex`,p:`0px 16px`,alignItems:`center`,height:40},children:G(Et,{name:`Check not found`,disabled:!0})})})});let Ie=M?.run_at?ri(new Date(M.run_at),{addSuffix:!0}):null,Le=F?.icon;return K(Ki,{spacing:0,container:!0,sx:{height:`100%`,width:`100%`},children:[G(Ki,{size:{xs:12,md:m?9:12},sx:{height:`100%`},children:K(kt,{minSize:100,sizes:[40,60],style:{height:`100%`,width:`100%`,maxHeight:`100%`},children:[G(q,{sx:{height:`100%`,contain:`strict`,display:`flex`,flexDirection:`row`},children:K(q,{sx:{flex:1,height:`100%`,display:`flex`,flexDirection:`column`,overflow:`hidden`,minWidth:0},children:[K(q,{sx:{display:`flex`,p:`0px 16px`,alignItems:`center`,height:40,borderBottom:`2px solid`,borderColor:l?`grey.700`:`grey.300`},children:[Le&&G(q,{component:Le,sx:{fontSize:20,mr:1,flexShrink:0}}),G(Et,{name:j.name,onNameChange:e=>{de({name:e})}}),G(q,{sx:{flexGrow:1}}),K(Y,{direction:`row`,spacing:2,sx:{mr:`10px`},children:[le&&G(Q,{title:`This is a preset check`,children:G(q,{display:`flex`,alignItems:`center`,justifyContent:`center`,children:G(ji,{size:`1rem`,color:s.palette.iochmara.dark})})}),j?.actor_type&&!j.is_preset&&we[j.actor_type]&&G(Cr,{label:we[j.actor_type].label,size:`small`,sx:{height:20,fontSize:`0.65rem`,fontWeight:500,backgroundColor:we[j.actor_type].bg,color:we[j.actor_type].color,flexShrink:0,"& .MuiChip-label":{px:.75}}}),G(Z,{size:`small`,onClick:Ce,children:G($r,{})}),K(Kr,{anchorEl:te,open:re,onClose:I,children:[f&&K(qr,{onClick:()=>{me(),I()},disabled:he||le,children:[G(yi,{children:G(Gn,{})}),G(bi,{children:`Mark as Preset Check`})]}),K(qr,{onClick:()=>{ee(!0),I()},children:[G(yi,{children:G(Ji,{})}),G(bi,{children:`Get Preset Check Template`})]}),K(qr,{onClick:()=>{ve(),I()},children:[G(yi,{children:G(lr,{})}),G(bi,{children:`Copy Markdown`})]}),G(Yn,{}),K(qr,{onClick:()=>{pe(),I()},disabled:d.disableUpdateChecklist,sx:{color:`error.main`},children:[G(yi,{sx:{color:`error.main`},children:G(br,{})}),G(bi,{children:`Delete`})]})]}),G(Q,{title:z({type:j.type,hasResult:!!M?.result,hasError:!!M?.error})?`Run the check first`:j.is_checked?`Remove approval`:`Mark as approved`,placement:`bottom-end`,children:G(J,{size:`small`,color:j.is_checked?`success`:`neutral`,variant:j.is_checked?`contained`:`outlined`,onClick:()=>{ye()},disabled:z({type:j.type,hasResult:!!M?.result,hasError:!!M?.error})||d.disableUpdateChecklist,startIcon:j.is_checked?G(sr,{}):G(Yr,{style:{color:l?s.palette.grey[600]:s.palette.grey[400]}}),sx:{flex:`0 0 auto`,textTransform:`none`},children:j.is_checked?`Approved`:`Pending`})})]})]}),G(q,{sx:{flex:1,p:`8px 16px`,minHeight:100},children:G(He,{value:j.description,onChange:Se,disabled:d.disableUpdateChecklist},j.check_id)})]})}),G(q,{style:{contain:`strict`},children:K(q,{sx:{height:`100%`,display:`flex`,flexDirection:`column`},children:[K(q,{sx:{display:`flex`,alignItems:`center`,borderBottom:1,borderColor:`divider`,height:50},children:[K(oi,{value:De,onChange:(e,t)=>Oe(t),children:[G(ai,{label:`Result`,value:`result`,sx:{fontSize:`0.75rem`,textTransform:`none`}}),(j.type===`query`||j.type===`query_diff`)&&G(ai,{label:`Query`,value:`query`,sx:{fontSize:`0.75rem`,textTransform:`none`}})]}),Ie&&G(X,{variant:`caption`,color:`text.secondary`,sx:{ml:1,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,minWidth:0,display:`flex`,alignItems:`center`},children:Ie}),G(q,{sx:{flexGrow:1}}),K(Y,{direction:`row`,spacing:1,sx:{mr:`10px`},children:[(j.type===`query`||j.type===`query_base`||j.type===`query_diff`)&&G(Q,{title:`Open in Query tab`,children:G(J,{variant:`outlined`,color:`neutral`,size:`small`,onClick:Ee,disabled:d.disableDatabaseQuery,startIcon:G(vi,{}),sx:{textTransform:`none`},children:`Open Query`})}),ce&&G(Q,{title:`Rerun`,children:G(J,{variant:`outlined`,color:`neutral`,size:`small`,onClick:()=>ge(),disabled:d.disableDatabaseQuery||P,startIcon:G(vr,{}),sx:{textTransform:`none`},children:P?`Running...`:`Rerun`})}),G(J,{variant:`outlined`,color:`neutral`,disabled:z({type:j.type,hasResult:!!M?.result,hasError:!!M?.error})||De!==`result`,onMouseEnter:Me,onMouseLeave:Ne,size:`small`,onClick:async()=>{j.type===`lineage_diff`?ue.current?.copyToClipboard():await je(),rn({type:j.type,from:`check`})},startIcon:G(lr,{}),sx:{textTransform:`none`},children:`Copy to Clipboard`})]})]}),K(q,{sx:{flex:1,contain:`strict`},children:[De===`result`&&K(q,{sx:{width:`100%`,height:`100%`},children:[ce&&(j.last_run||oe?G(ke,{ref:Ae,isRunning:P,isAborting:D,run:oe?M:j.last_run,error:se,progress:E,RunResultView:ce,viewOptions:j.view_options,onViewOptionsChanged:be,onCancel:_e,onExecuteRun:ge}):G(q,{sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,bgcolor:l?`grey.900`:`grey.50`,height:`100%`},children:K(Y,{spacing:2,alignItems:`center`,children:[G(q,{children:`This action is part of the initial preset and has not been performed yet. Once performed, the result will be shown here.`}),G(Ws,{display:d.mode===`metadata only`,children:G(J,{onClick:ge,variant:`contained`,size:`small`,disabled:d.disableDatabaseQuery,children:`Run Query`})})]})})),j.type===`schema_diff`&&G(Xs,{check:j,ref:Ae},j.check_id),j.type===`lineage_diff`&&G(qs,{check:j,ref:ue},j.check_id)]}),De===`query`&&(j.type===`query`||j.type===`query_diff`||j.type===`query_base`)&&G(q,{sx:{height:`100%`,width:`100%`},children:j.params.base_sql_template?G(ft,{value:j.params.sql_template||``,baseValue:j.params.base_sql_template??``,options:{readOnly:!0}}):G(Te,{value:j.params.sql_template||``,options:{readOnly:!0}})})]})]})}),K(Pn,{open:k,onClose:()=>ee(!1),maxWidth:`md`,fullWidth:!0,children:[G(Ln,{children:`Preset Check Template`}),K(In,{children:[K(X,{variant:`subtitle2`,fontWeight:`bold`,sx:{mb:2},children:[`Please`,` `,G(X,{component:`span`,sx:{cursor:`pointer`,"&:hover":{textDecoration:`underline`},color:`primary.main`},onClick:async()=>{await navigator.clipboard.writeText(Fe),S(`Copied the template to the clipboard`)},children:`copy`}),` `,`the following template and paste it into the`,` `,G(q,{component:`span`,sx:{px:.5,bgcolor:`error.light`,borderRadius:.5},children:`recce.yml`}),` `,`file.`]}),G(Ke,{yamlTemplate:Fe})]}),G(Fn,{children:G(Z,{size:`small`,onClick:()=>ee(!1),sx:{position:`absolute`,top:8,right:8},children:G(Kn,{})})})]})]})}),m&&G(Ki,{size:3,sx:{height:`100%`,overflow:`hidden`,flexShrink:0,display:{xs:`none`,md:`block`}},children:G(La,{checkId:r})})]})}function Qs(e){return qi`
|
|
7
|
-
<details><summary>${Ie({name:e.name,isChecked:e.is_checked})}</summary>
|
|
8
|
-
|
|
9
|
-
${$s(e)}
|
|
10
|
-
|
|
11
|
-
</details>`}function $s(e){let t=Me({description:e.description});if(e.type===`query`||e.type===`query_diff`){let n=e.params;return`${t}\n\n${Re({sql:n&&`sql_template`in n?n.sql_template:``})}`}return t}const ec=()=>{let e=wn(),t=mi(),{apiClient:n}=Pe(),{basePath:r}=fe(),{mutate:i,isPending:a}=Sn({mutationFn:()=>v({select:`state:modified`},n),onSuccess:async n=>{await e.invalidateQueries({queryKey:A.checks()}),t.push(`${r}/checks/?id=${n.check_id}`)}});return G(Ye,{title:`No checks yet`,description:`Checks help you validate data quality and catch issues.`,icon:G(gi,{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.`})},tc=({check:e,selected:t,onSelect:n,onApprovalChange:r})=>{let{featureToggles:i}=xe(),a=e.last_run?.run_id,{run:o}=xt(a),s=z({type:e.type,hasResult:!!o?.result,hasError:!!o?.error}),c=s||i.disableUpdateChecklist;return G(ot,{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,actorType:e.actor_type},isSelected:t,onClick:n,onApprovalChange:r,disableApproval:c,disabledApprovalTooltip:s?`Run the check first`:void 0})},nc=({checks:e,selectedItem:t,onCheckSelected:n,onChecksReordered:r})=>{let[i,a]=U(!1),[s,c]=U(!1),[l,u]=U(null),d=wn(),{apiClient:f}=Pe(),{mutate:p}=Sn({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)},_=()=>{Vt.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 K(W,{children:[G(Yi,{onDragEnd:m,children:G(Zi,{droppableId:`checklist`,children:r=>K(Y,{...r.droppableProps,ref:r.innerRef,className:`no-track-pii-safe`,sx:{width:`100%`,flex:1,overflow:`auto`},spacing:0,children:[e.map((e,r)=>G(Xi,{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 G(q,{ref:r.innerRef,...r.draggableProps,...r.dragHandleProps,style:a,sx:{width:`100%`},borderBottom:`1px solid`,borderColor:`divider`,children:G(tc,{check:e,selected:e.check_id===t,onSelect:n,onApprovalChange:v},e.check_id)})}},e.check_id)),r.placeholder]})})}),K(Pn,{open:s,onClose:g,maxWidth:`xs`,fullWidth:!0,children:[K(Ln,{sx:{display:`flex`,alignItems:`center`},children:[`Mark as Approved?`,G(q,{sx:{flexGrow:1}}),G(Z,{size:`small`,onClick:g,children:G(Kn,{})})]}),G(Yn,{}),K(In,{sx:{fontSize:`0.875rem`},children:[G(X,{children:`Please ensure you have reviewed the contents of this check before marking it as approved.`}),G(Hr,{control:G(Vr,{checked:i,onChange:e=>{a(e.target.checked)},size:`small`}),label:G(X,{sx:{fontWeight:`bold`,pt:`8px`},children:`Don't show this again`})})]}),G(Yn,{}),K(Fn,{sx:{gap:0},children:[G(J,{variant:`outlined`,size:`small`,onClick:g,children:`Cancel`}),G(J,{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`})]})]})]})},rc=()=>{let e=Hn().palette.mode===`dark`?`grey.700`:`grey.300`,t=mi(),n=hi().get(`id`),{latestSelectedCheckId:r,setLatestSelectedCheckId:i}=R(),a=wn(),{apiClient:o}=Pe(),{basePath:s}=fe(),c=n;An(()=>{c&&i(c)},[c,i]);let{isLoading:l,error:u,data:d,status:f,refetch:p}=Cn({queryKey:A.checks(),queryFn:()=>x(o),refetchOnMount:!0}),m=V(e=>{t.push(`${s}/checks/?id=${e}`)},[t.push,s]),[h,g]=U(d??[]),[_,v]=U(d);d!==_&&(v(d),g(d??[]));let{mutate:y}=Sn({mutationFn:e=>b(e,o),onSuccess:async()=>{await a.invalidateQueries({queryKey:A.checks()})}}),S=V((e,t)=>{let n=[...h],[r]=n.splice(e,1);n.splice(t,0,r),y({source:e,destination:t}),g(n)},[h,y]),C=H(()=>!!(c&&d?.some(e=>e.check_id===c)),[c,d]);return An(()=>{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?K(q,{children:[`Error: `,G(`span`,{className:`no-track-pii-safe`,children:u.message})]}):d?.length?K(mt,{style:{height:`100%`},minSize:50,sizes:[20,80],children:[G(q,{sx:{height:`100%`},style:{contain:`size`},children:K(Y,{sx:{height:`100%`,alignItems:`stretch`},style:{contain:`strict`},spacing:0,children:[G(q,{sx:{display:`flex`,justifyContent:`flex-end`,p:`0px 10px`},children:G(Gs,{checksOnly:!0})}),G(Yn,{}),G(nc,{checks:h,selectedItem:c,onCheckSelected:m,onChecksReordered:S})]})}),G(q,{sx:{height:`100%`},children:C&&c&&G(Zs,{checkId:c,refreshCheckList:p},c)})]}):K(mt,{style:{height:`100%`},minSize:50,sizes:[20,80],children:[G(q,{sx:{borderRight:`1px solid`,borderRightColor:e,height:`100%`},style:{contain:`size`},children:K(Y,{sx:{height:`100%`,alignItems:`stretch`},style:{contain:`strict`},spacing:0,children:[G(q,{sx:{display:`flex`,justifyContent:`flex-end`,p:`0px 10px`},children:G(Gs,{checksOnly:!0})}),G(Yn,{}),G(q,{sx:{height:`100%`,display:`flex`,justifyContent:`center`,alignItems:`center`},children:G(q,{sx:{textAlign:`center`,color:`grey.500`},children:`No checks`})})]})}),G(q,{children:G(q,{sx:{height:`100%`,display:`flex`,justifyContent:`center`,alignItems:`center`},children:G(ec,{})})})]})},ic=()=>K(mt,{style:{height:`100%`},minSize:50,sizes:[20,80],children:[G(q,{sx:{borderRight:`1px solid`,borderRightColor:Hn().palette.mode===`dark`?`grey.700`:`grey.300`,height:`100%`},style:{contain:`size`},children:G(q,{sx:{height:`100%`,display:`flex`,justifyContent:`center`,alignItems:`center`},children:G(Xn,{size:20})})}),G(q,{children:G(q,{sx:{height:`100%`,display:`flex`,justifyContent:`center`,alignItems:`center`},children:G(Xn,{size:20})})})]}),ac={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 oc(e){let t=String(Ce(`colors.green.solid`)),n=String(Ce(`colors.red.solid`)),r=String(Ce(`colors.amber.emphasized`));return e===`added`?{color:t,icon:lt}:e===`removed`?{color:n,icon:jt}:e===`modified`?{color:r,icon:Qe}:e===`col_added`?{color:t,icon:lt}:e===`col_removed`?{color:n,icon:jt}:e===`col_changed`?{color:r,icon:Qe}:e===`folder_changed`?{color:r,icon:ct}:{color:`inherit`,icon:void 0}}function sc(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 cc(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=sc(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 lc({name:e,value:t,tip:n}){return K(Y,{alignItems:`stretch`,children:[K(X,{sx:{fontSize:`0.875rem`,color:`grey.600`},children:[e,n&&G(Q,{title:n,children:G(q,{sx:{display:`inline-block`},children:G(q,{component:Ci,sx:{mx:`2px`,fontSize:12,verticalAlign:`middle`}})})})]}),t]})}function uc({changeStatus:e,value:t}){let[n]=e?ac[e]:[``],{icon:r,color:i}=oc(e);return K(Y,{alignItems:`stretch`,children:[K(Y,{direction:`row`,alignItems:`center`,sx:{fontSize:`0.875rem`,color:`grey.600`},children:[r&&G(q,{component:r,sx:{mr:`5px`,color:i,fontSize:`1rem`}}),n]}),G(X,{sx:{fontSize:`0.875rem`},children:t})]})}function dc({lineageGraph:e}){let{adds:t,removes:n,modifies:r,col_added:i,col_removed:a,col_changed:o}=cc(e);return K(Ki,{container:!0,sx:{mb:`10px`,borderTop:`1px solid`,borderColor:`divider`,p:`2.5vw`},children:[G(Ki,{size:6,sx:{borderColor:`divider`},children:G(lc,{name:`Code Changes`,value:K(Ki,{container:!0,sx:{width:`100%`},children:[G(Ki,{size:4,children:G(uc,{changeStatus:`added`,value:t})}),G(Ki,{size:4,children:G(uc,{changeStatus:`removed`,value:n})}),G(Ki,{size:4,children:G(uc,{changeStatus:`modified`,value:r})})]})})}),G(Ki,{size:6,sx:{borderLeft:`1px solid`,borderLeftColor:`divider`,pl:`12px`},children:G(lc,{name:`Column Changes`,value:K(Ki,{container:!0,sx:{width:`100%`},children:[G(Ki,{size:4,children:G(uc,{changeStatus:`col_added`,value:i})}),G(Ki,{size:4,children:G(uc,{changeStatus:`col_removed`,value:a})}),G(Ki,{size:4,children:G(uc,{changeStatus:`col_changed`,value:o})})]})})})]})}function fc({node:e,...t}){return K(Qi,{sx:{maxWidth:500},children:[G(ea,{title:G(X,{sx:{fontSize:18,fontWeight:`bold`},children:t.title}),subheader:K(Y,{direction:`row`,spacing:`8px`,sx:{p:`16px`},children:[G(St,{resourceType:e.data.resourceType,materialized:e.data.data.current?.config?.materialized??e.data.data.base?.config?.materialized}),e.data.resourceType===`model`&&G(ko,{node:e})]})}),G($i,{children:G(q,{sx:{display:`flex`},children:G(wo,{base:e.data.data.base,current:e.data.data.current,columnChanges:e.data.change?.columns})})})]})}function pc(e){let t=[],n=e.nodes;return e.modifiedSet.forEach(e=>{let r=n[e],i=Rt(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 mc({lineageGraph:e}){let[t,n]=U([]);return An(()=>{n(pc(e))},[e]),K(W,{children:[G(q,{sx:{width:`100%`,pb:`10px`,mb:`20px`,mt:`20px`},children:G(X,{variant:`h5`,sx:{fontSize:24},children:`Schema Summary`})}),G(q,{sx:{width:`100%`,pb:`10px`,mb:`20px`},children:t.length===0?G(X,{sx:{fontSize:18,color:`grey.600`},children:`No schema changes detected.`}):G(q,{sx:{display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(400px, 1fr))`,gap:`2vw`,p:`2.5vw`,width:`100%`,bgcolor:`lightgray`},children:t.map(e=>G(fc,{title:e.data.name,node:e},e.id))})})]})}function hc({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=Fe(),C=e??S.checks,w=t===void 0?S.isLoading:t,T=n??S.error,E=r??S.selectedCheckId,D=i??S.onSelectCheck,O=H(()=>C.map(e=>({id:e.check_id,name:e.name,type:e.type,description:e.description,isApproved:e.is_checked})),[C]),k=H(()=>C.find(e=>e.check_id===E),[C,E]),ee=V(e=>{D?.(e)},[D]),te=V((e,t)=>{o?.(e,t)},[o]),ne=V(e=>{E&&c?.(E,e)},[E,c]),re=V(e=>{E&&l?.(E,e)},[E,l]);if(w)return G(q,{className:x,sx:{width:`100%`,height:g,display:`flex`,alignItems:`center`,justifyContent:`center`},children:G(Xn,{})});if(T)return G(q,{className:x,sx:{width:`100%`,height:g,display:`flex`,alignItems:`center`,justifyContent:`center`},children:G(X,{color:`error`,children:T})});if(C.length===0)return G(q,{className:x,sx:{width:`100%`,height:g,display:`flex`,alignItems:`center`,justifyContent:`center`},children:G(Ye,{title:`No checks yet`,description:`Create your first check to start validating your data.`,actionText:`Create Check`,onAction:u})});let ie=k?d?.(k):void 0,A=k?f?.(k):void 0,ae=k?p?.(k):void 0;return G(q,{className:x,sx:{width:`100%`,height:g},children:K(at,{direction:`horizontal`,sizes:[_,100-_],minSizes:[v,200],maxSizes:[y,1/0],children:[G(q,{sx:{height:`100%`,overflow:`auto`},children:G(Xe,{checks:O,selectedId:E,onCheckSelect:ee,onApprovalChange:a,onReorder:s,disableApproval:m,disabledApprovalTooltip:h,title:b})}),G(q,{sx:{height:`100%`,overflow:`auto`},children:k?G(Ze,{checkId:k.check_id,name:k.name,type:k.type,description:k.description,isApproved:k.is_checked,tabs:ie,primaryActions:A,secondaryActions:ae,onAction:te,onDescriptionChange:ne,onNameChange:re}):G(q,{sx:{height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:G(X,{color:`text.secondary`,children:`Select a check from the list to view details`})})})]})})}const gc=On(hc);gc.displayName=`ChecksView`;const _c=`0.2.0`;export{Ra as A,To as C,Ha as D,ho as E,ra as M,na as N,Ba as O,wo as S,yo as T,Cs as _,cc as a,zo as b,ac as c,nc as d,ec as f,Ls as g,Hs as h,dc as i,oa as j,za as k,ic as l,Us as m,gc as n,sc as o,Zs as p,mc as r,oc as s,_c as t,rc as u,vs as v,bo as w,xo as x,rs as y};
|
|
12
|
-
//# sourceMappingURL=src-_Brn8OkY.js.map
|