sqlmesh 0.181.2.dev23__py3-none-any.whl → 0.181.2.dev25__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. sqlmesh/_version.py +2 -2
  2. {sqlmesh-0.181.2.dev23.dist-info → sqlmesh-0.181.2.dev25.dist-info}/METADATA +1 -1
  3. {sqlmesh-0.181.2.dev23.dist-info → sqlmesh-0.181.2.dev25.dist-info}/RECORD +50 -49
  4. web/client/dist/assets/Audits-9LEBiRIZ.js +1 -0
  5. web/client/dist/assets/{Banner-OvD39mOq.js → Banner-Cd1C5Udq.js} +1 -1
  6. web/client/dist/assets/{ChevronDownIcon-BqleRn_G.js → ChevronDownIcon-Clb0EegJ.js} +1 -1
  7. web/client/dist/assets/{ChevronRightIcon-CXKkTIzW.js → ChevronRightIcon-dJMaxBt0.js} +1 -1
  8. web/client/dist/assets/Content-BR4S-QHM.js +1 -0
  9. web/client/dist/assets/{Content-COW0vEIQ.js → Content-poZFtj-2.js} +2 -2
  10. web/client/dist/assets/Data-DaQiUe8h.js +1 -0
  11. web/client/dist/assets/{DataCatalog-iRjvB2C3.js → DataCatalog-DOMFDv-k.js} +2 -2
  12. web/client/dist/assets/{Editor-BLhCfpzx.js → Editor-BcrLy189.js} +1 -1
  13. web/client/dist/assets/Editor-BmDyTaeT.js +1 -0
  14. web/client/dist/assets/Errors-Cjh1BMUt.js +1 -0
  15. web/client/dist/assets/FileExplorer-Cdh0DRgS.js +2 -0
  16. web/client/dist/assets/{Footer-CfHqR8wm.js → Footer-CrjZJkj4.js} +1 -1
  17. web/client/dist/assets/{Header-sstE4Gqk.js → Header-DE3bKMcG.js} +1 -1
  18. web/client/dist/assets/Input-BY5Rc3go.js +41 -0
  19. web/client/dist/assets/Lineage-CLoHrLAT.js +1 -0
  20. web/client/dist/assets/{ListboxShow-nvacUoI1.js → ListboxShow-TFvq9fMB.js} +1 -1
  21. web/client/dist/assets/ModelLineage-CB8Rie_r.js +1 -0
  22. web/client/dist/assets/Models-DXUrmUm_.js +1 -0
  23. web/client/dist/assets/{Page-D0nUv5ck.js → Page-KC6UG65M.js} +1 -1
  24. web/client/dist/assets/{Plan-Cj_0vc_H.js → Plan-xbMFAnVh.js} +1 -1
  25. web/client/dist/assets/{PlusCircleIcon-C2xHHnL-.js → PlusCircleIcon-CoFMRFQI.js} +1 -1
  26. web/client/dist/assets/{ReportErrors-D88IZz3n.js → ReportErrors-mVM8O5iE.js} +1 -1
  27. web/client/dist/assets/Root-BuQJ2VAg.js +1 -0
  28. web/client/dist/assets/{SearchList-Dltx9F6k.js → SearchList-BShQn9jm.js} +1 -1
  29. web/client/dist/assets/{SelectEnvironment-CZAVUJhY.js → SelectEnvironment-8p6ZQ-QH.js} +1 -1
  30. web/client/dist/assets/{SourceList-Diwt0dWW.js → SourceList-DQ72TcK1.js} +1 -1
  31. web/client/dist/assets/{SourceListItem-CjW93oYe.js → SourceListItem-CncMnWed.js} +1 -1
  32. web/client/dist/assets/{SplitPane-B-vlCkrS.js → SplitPane-BY85POxQ.js} +1 -1
  33. web/client/dist/assets/Tests-DeaITzzp.js +1 -0
  34. web/client/dist/assets/{Welcome-DbFwSigj.js → Welcome-Blok6Zy8.js} +1 -1
  35. web/client/dist/assets/{context-Dvup3XDX.js → context-B3nwRpP1.js} +1 -1
  36. web/client/dist/assets/{context-CA-MXfZ6.js → context-Dx2o1ZRq.js} +37 -37
  37. web/client/dist/assets/{editor-DmJY3IbC.js → editor-Dj_6cws7.js} +2 -2
  38. web/client/dist/assets/{file-DYgUpg8u.js → file-Bs2Eq56_.js} +1 -1
  39. web/client/dist/assets/{help-CNdZX-7b.js → help-Bolb6haG.js} +1 -1
  40. web/client/dist/assets/index-COQuzlwN.js +1 -0
  41. web/client/dist/assets/index-CkIQhGgw.js +58 -0
  42. web/client/dist/assets/{index-D-9edHVb.js → index-DQbKL5-Q.js} +2 -2
  43. web/client/dist/assets/{plan-Cdj5QED6.js → plan-BZyi7OFv.js} +1 -1
  44. web/client/dist/assets/{project-BlT_dmGo.js → project-XFpF0AcJ.js} +1 -1
  45. web/client/dist/assets/{transition-nHCHMLQ-.js → transition-B5aHgz_j.js} +2 -2
  46. web/client/dist/index.html +1 -1
  47. web/client/dist/assets/Audits-BZWk3jlL.js +0 -1
  48. web/client/dist/assets/Content-CkK8L7V3.js +0 -1
  49. web/client/dist/assets/Data-CQQQmeF1.js +0 -1
  50. web/client/dist/assets/Editor-DKqRG32p.js +0 -1
  51. web/client/dist/assets/Errors-x-oFeSch.js +0 -1
  52. web/client/dist/assets/FileExplorer-gjDFmLLh.js +0 -5
  53. web/client/dist/assets/Input-A6Hrwz1k.js +0 -41
  54. web/client/dist/assets/Lineage-CzdZCXc6.js +0 -1
  55. web/client/dist/assets/ModelLineage-B6geDuI6.js +0 -1
  56. web/client/dist/assets/Models-B1vLawzn.js +0 -1
  57. web/client/dist/assets/Root-DCNtqbqI.js +0 -1
  58. web/client/dist/assets/Tests-D8lyWcVm.js +0 -1
  59. web/client/dist/assets/index-L7UJWCGi.js +0 -74
  60. {sqlmesh-0.181.2.dev23.dist-info → sqlmesh-0.181.2.dev25.dist-info}/WHEEL +0 -0
  61. {sqlmesh-0.181.2.dev23.dist-info → sqlmesh-0.181.2.dev25.dist-info}/entry_points.txt +0 -0
  62. {sqlmesh-0.181.2.dev23.dist-info → sqlmesh-0.181.2.dev25.dist-info}/licenses/LICENSE +0 -0
  63. {sqlmesh-0.181.2.dev23.dist-info → sqlmesh-0.181.2.dev25.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
1
- import{r as f,i as V,J as k,j as s,c as v,m as y,B as q,n as A,F as G,w as H}from"./index-L7UJWCGi.js";import{I as F}from"./Input-A6Hrwz1k.js";import{u as K}from"./index-D-9edHVb.js";function W({items:c=[],keyId:d="id",keyName:N="",keyDescription:x="",to:L="",disabled:S=!1,withCounter:T=!0,withFilter:$=!0,types:a,className:B,isActive:m,listItem:h}){var I;const O=f.useRef(null),[r,C]=f.useState(""),j=f.useRef(null),[o,u]=f.useMemo(()=>{let t=-1;const e=[];return c.forEach((l,p)=>{const w=n(l[d]),g=n(l[x]),M=n(l[N]),Y=n(a==null?void 0:a[w]);(M.includes(r)||g.includes(r)||Y.includes(r))&&e.push(l),V(m)&&m(l[d])&&(t=p)}),[t,e]},[c,r,m]),i=K({count:u.length,getScrollElement:()=>j.current,estimateSize:()=>32+(x.length>0?16:0)}),b=({itemIndex:t,isSmoothScroll:e=!0})=>{i.scrollToIndex(t,{align:"center",behavior:e?"smooth":"auto"})},E=({itemIndex:t,range:e})=>V(e)&&(e.startIndex>t||(e==null?void 0:e.endIndex)<t),J=k(r)&&o>-1&&E({range:i.range,itemIndex:o});f.useEffect(()=>{o>-1&&E({range:i.range,itemIndex:o})&&b({itemIndex:o,isSmoothScroll:!1})},[o]);const z=i.getVirtualItems(),R=i.getTotalSize();return s.jsxs("div",{ref:O,className:v("flex flex-col w-full h-full text-sm text-neutral-600 dark:text-neutral-300",B),style:{contain:"strict"},children:[$&&s.jsxs("div",{className:"p-1 w-full flex justify-between",children:[s.jsx(F,{className:"w-full !m-0",size:y.sm,children:({className:t})=>s.jsx(F.Textfield,{className:v(t,"w-full"),value:r,placeholder:"Filter items",type:"search",onInput:e=>{C(e.target.value)}})}),T&&s.jsx("div",{className:"ml-1 px-3 bg-primary-10 text-primary-500 rounded-full text-xs flex items-center",children:u.length})]}),s.jsxs("div",{className:"w-full h-full relative p-1",children:[J&&s.jsx(q,{className:"absolute left-[50%] translate-x-[-50%] -top-2 z-10 text-ellipsis !block overflow-hidden no-wrap max-w-[90%] !border-neutral-20 shadow-md !bg-theme !hover:bg-theme text-neutral-500 dark:text-neutral-300 !focus:ring-2 !focus:ring-theme-500 !focus:ring-offset-2 !focus:ring-offset-theme-50 !focus:ring-opacity-50 !focus:outline-none !focus:ring-offset-transparent !focus:ring-offset-0 !focus:ring",onClick:()=>b({itemIndex:o}),size:y.sm,variant:A.Secondary,children:"Scroll to selected"}),s.jsx("div",{ref:j,className:"w-full h-full relative overflow-hidden overflow-y-auto hover:scrollbar scrollbar--horizontal scrollbar--vertical",style:{contain:"strict"},children:s.jsx("div",{className:"relative w-full",style:{height:R>0?`${R}px`:"100%"},children:s.jsxs("ul",{className:"w-full absolute top-0 left-0",style:{transform:`translateY(${((I=z[0])==null?void 0:I.start)??0}px)`},children:[G(u)&&s.jsx("li",{className:"px-2 py-0.5 text-center whitespace-nowrap overflow-ellipsis overflow-hidden",children:r.length>0?"No Results Found":"Empty List"},"not-found"),z.map(t=>{const e=u[t.index],l=n(e[d]),p=n(e[x]),w=n(e[N]),g=n(a==null?void 0:a[l]);return s.jsx("li",{"data-index":t.index,ref:i.measureElement,className:v("font-normal w-full",S&&"cursor-not-allowed"),tabIndex:l===r?-1:0,children:h==null?void 0:h({id:l,to:`${L}/${l}`,name:w,description:p,text:g,disabled:S,item:u[t.index]})},t.key)})]})})})]})]})}function n(c){return H(c)?"":String(c)}export{W as S};
1
+ import{r as f,i as V,J as k,j as s,c as v,m as y,B as q,n as A,F as G,w as H}from"./index-CkIQhGgw.js";import{I as F}from"./Input-BY5Rc3go.js";import{u as K}from"./index-DQbKL5-Q.js";function W({items:c=[],keyId:d="id",keyName:N="",keyDescription:x="",to:L="",disabled:S=!1,withCounter:T=!0,withFilter:$=!0,types:a,className:B,isActive:m,listItem:h}){var I;const O=f.useRef(null),[r,C]=f.useState(""),j=f.useRef(null),[o,u]=f.useMemo(()=>{let t=-1;const e=[];return c.forEach((l,p)=>{const w=n(l[d]),g=n(l[x]),M=n(l[N]),Y=n(a==null?void 0:a[w]);(M.includes(r)||g.includes(r)||Y.includes(r))&&e.push(l),V(m)&&m(l[d])&&(t=p)}),[t,e]},[c,r,m]),i=K({count:u.length,getScrollElement:()=>j.current,estimateSize:()=>32+(x.length>0?16:0)}),b=({itemIndex:t,isSmoothScroll:e=!0})=>{i.scrollToIndex(t,{align:"center",behavior:e?"smooth":"auto"})},E=({itemIndex:t,range:e})=>V(e)&&(e.startIndex>t||(e==null?void 0:e.endIndex)<t),J=k(r)&&o>-1&&E({range:i.range,itemIndex:o});f.useEffect(()=>{o>-1&&E({range:i.range,itemIndex:o})&&b({itemIndex:o,isSmoothScroll:!1})},[o]);const z=i.getVirtualItems(),R=i.getTotalSize();return s.jsxs("div",{ref:O,className:v("flex flex-col w-full h-full text-sm text-neutral-600 dark:text-neutral-300",B),style:{contain:"strict"},children:[$&&s.jsxs("div",{className:"p-1 w-full flex justify-between",children:[s.jsx(F,{className:"w-full !m-0",size:y.sm,children:({className:t})=>s.jsx(F.Textfield,{className:v(t,"w-full"),value:r,placeholder:"Filter items",type:"search",onInput:e=>{C(e.target.value)}})}),T&&s.jsx("div",{className:"ml-1 px-3 bg-primary-10 text-primary-500 rounded-full text-xs flex items-center",children:u.length})]}),s.jsxs("div",{className:"w-full h-full relative p-1",children:[J&&s.jsx(q,{className:"absolute left-[50%] translate-x-[-50%] -top-2 z-10 text-ellipsis !block overflow-hidden no-wrap max-w-[90%] !border-neutral-20 shadow-md !bg-theme !hover:bg-theme text-neutral-500 dark:text-neutral-300 !focus:ring-2 !focus:ring-theme-500 !focus:ring-offset-2 !focus:ring-offset-theme-50 !focus:ring-opacity-50 !focus:outline-none !focus:ring-offset-transparent !focus:ring-offset-0 !focus:ring",onClick:()=>b({itemIndex:o}),size:y.sm,variant:A.Secondary,children:"Scroll to selected"}),s.jsx("div",{ref:j,className:"w-full h-full relative overflow-hidden overflow-y-auto hover:scrollbar scrollbar--horizontal scrollbar--vertical",style:{contain:"strict"},children:s.jsx("div",{className:"relative w-full",style:{height:R>0?`${R}px`:"100%"},children:s.jsxs("ul",{className:"w-full absolute top-0 left-0",style:{transform:`translateY(${((I=z[0])==null?void 0:I.start)??0}px)`},children:[G(u)&&s.jsx("li",{className:"px-2 py-0.5 text-center whitespace-nowrap overflow-ellipsis overflow-hidden",children:r.length>0?"No Results Found":"Empty List"},"not-found"),z.map(t=>{const e=u[t.index],l=n(e[d]),p=n(e[x]),w=n(e[N]),g=n(a==null?void 0:a[l]);return s.jsx("li",{"data-index":t.index,ref:i.measureElement,className:v("font-normal w-full",S&&"cursor-not-allowed"),tabIndex:l===r?-1:0,children:h==null?void 0:h({id:l,to:`${L}/${l}`,name:w,description:p,text:g,disabled:S,item:u[t.index]})},t.key)})]})})})]})]})}function n(c){return H(c)?"":String(c)}export{W as S};
@@ -1 +1 @@
1
- import{j as t,N as c,i as l,c as u,n as i}from"./index-L7UJWCGi.js";function f({name:o,description:a,to:p,text:n,variant:s,disabled:x=!1,handleDelete:r}){function d(e){(e.key==="Delete"||e.key==="Backspace")&&(e.preventDefault(),e.stopPropagation(),r==null||r())}return t.jsxs(c,{onKeyUp:d,to:p,className:({isActive:e})=>u("block overflow-hidden px-2 py-1.5 rounded-md w-full font-semibold",x&&"opacity-50 pointer-events-none",e?s===i.Primary?"text-primary-500 bg-primary-10":s===i.Danger?"text-danger-500 bg-danger-5":"text-neutral-600 dark:text-neutral-100 bg-neutral-10":"hover:bg-neutral-5 text-neutral-500 dark:text-neutral-400"),children:[t.jsxs("div",{className:"flex items-center",children:[t.jsx("span",{className:"whitespace-nowrap overflow-ellipsis overflow-hidden min-w-10",children:o}),l(n)&&t.jsx("span",{className:" ml-2 px-2 rounded-md leading-0 text-[0.5rem] bg-neutral-10 text-neutral-700 dark:text-neutral-200",children:n})]}),l(a)&&t.jsx("p",{className:"text-xs overflow-hidden whitespace-nowrap overflow-ellipsis text-neutral-300 dark:text-neutral-500",children:a})]})}export{f as S};
1
+ import{j as t,N as c,i as l,c as u,n as i}from"./index-CkIQhGgw.js";function f({name:o,description:a,to:p,text:n,variant:s,disabled:x=!1,handleDelete:r}){function d(e){(e.key==="Delete"||e.key==="Backspace")&&(e.preventDefault(),e.stopPropagation(),r==null||r())}return t.jsxs(c,{onKeyUp:d,to:p,className:({isActive:e})=>u("block overflow-hidden px-2 py-1.5 rounded-md w-full font-semibold",x&&"opacity-50 pointer-events-none",e?s===i.Primary?"text-primary-500 bg-primary-10":s===i.Danger?"text-danger-500 bg-danger-5":"text-neutral-600 dark:text-neutral-100 bg-neutral-10":"hover:bg-neutral-5 text-neutral-500 dark:text-neutral-400"),children:[t.jsxs("div",{className:"flex items-center",children:[t.jsx("span",{className:"whitespace-nowrap overflow-ellipsis overflow-hidden min-w-10",children:o}),l(n)&&t.jsx("span",{className:" ml-2 px-2 rounded-md leading-0 text-[0.5rem] bg-neutral-10 text-neutral-700 dark:text-neutral-200",children:n})]}),l(a)&&t.jsx("p",{className:"text-xs overflow-hidden whitespace-nowrap overflow-ellipsis text-neutral-300 dark:text-neutral-500",children:a})]})}export{f as S};
@@ -1 +1 @@
1
- import{a2 as Ae,R as le,r as we,j as Re}from"./index-L7UJWCGi.js";var Z={exports:{}},J,ce;function De(){if(ce)return J;ce=1;var s="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return J=s,J}var K,fe;function Me(){if(fe)return K;fe=1;var s=De();function i(){}function u(){}return u.resetWarningCache=i,K=function(){function n(d,y,l,h,g,S){if(S!==s){var E=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw E.name="Invariant Violation",E}}n.isRequired=n;function o(){return n}var p={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:u,resetWarningCache:i};return p.PropTypes=p,p},K}var pe;function _e(){return pe||(pe=1,Z.exports=Me()()),Z.exports}var Pe=_e();const c=Ae(Pe);var x=typeof window<"u"?window:null,te=x===null,L=te?void 0:x.document,A="addEventListener",w="removeEventListener",Q="getBoundingClientRect",G="_a",R="_b",M="_c",$="horizontal",D=function(){return!1},Fe=te?"calc":["","-webkit-","-moz-","-o-"].filter(function(s){var i=L.createElement("div");return i.style.cssText="width:"+s+"calc(9px)",!!i.style.length}).shift()+"calc",me=function(s){return typeof s=="string"||s instanceof String},de=function(s){if(me(s)){var i=L.querySelector(s);if(!i)throw new Error("Selector "+s+" did not match a DOM element");return i}return s},m=function(s,i,u){var n=s[i];return n!==void 0?n:u},H=function(s,i,u,n){if(i){if(n==="end")return 0;if(n==="center")return s/2}else if(u){if(n==="start")return 0;if(n==="center")return s/2}return s},je=function(s,i){var u=L.createElement("div");return u.className="gutter gutter-"+i,u},Ie=function(s,i,u){var n={};return me(i)?n[s]=i:n[s]=Fe+"("+i+"% - "+u+"px)",n},Ue=function(s,i){var u;return u={},u[s]=i+"px",u},ve=function(s,i){if(i===void 0&&(i={}),te)return{};var u=s,n,o,p,d,y,l;Array.from&&(u=Array.from(u));var h=de(u[0]),g=h.parentNode,S=getComputedStyle?getComputedStyle(g):null,E=S?S.flexDirection:null,U=m(i,"sizes")||u.map(function(){return 100/u.length}),W=m(i,"minSize",100),T=Array.isArray(W)?W:u.map(function(){return W}),_=m(i,"maxSize",1/0),C=Array.isArray(_)?_:u.map(function(){return _}),z=m(i,"expandToMin",!1),O=m(i,"gutterSize",10),j=m(i,"gutterAlign","center"),Y=m(i,"snapOffset",30),ge=Array.isArray(Y)?Y:u.map(function(){return Y}),V=m(i,"dragInterval",1),I=m(i,"direction",$),X=m(i,"cursor",I===$?"col-resize":"row-resize"),ye=m(i,"gutter",je),ne=m(i,"elementStyle",Ie),he=m(i,"gutterStyle",Ue);I===$?(n="width",o="clientX",p="left",d="right",y="clientWidth"):I==="vertical"&&(n="height",o="clientY",p="top",d="bottom",y="clientHeight");function N(r,e,t,a){var v=ne(n,e,t,a);Object.keys(v).forEach(function(f){r.style[f]=v[f]})}function Se(r,e,t){var a=he(n,e,t);Object.keys(a).forEach(function(v){r.style[v]=a[v]})}function k(){return l.map(function(r){return r.size})}function ie(r){return"touches"in r?r.touches[0][o]:r[o]}function ae(r){var e=l[this.a],t=l[this.b],a=e.size+t.size;e.size=r/this.size*a,t.size=a-r/this.size*a,N(e.element,e.size,this[R],e.i),N(t.element,t.size,this[M],t.i)}function ze(r){var e,t=l[this.a],a=l[this.b];this.dragging&&(e=ie(r)-this.start+(this[R]-this.dragOffset),V>1&&(e=Math.round(e/V)*V),e<=t.minSize+t.snapOffset+this[R]?e=t.minSize+this[R]:e>=this.size-(a.minSize+a.snapOffset+this[M])&&(e=this.size-(a.minSize+this[M])),e>=t.maxSize-t.snapOffset+this[R]?e=t.maxSize+this[R]:e<=this.size-(a.maxSize-a.snapOffset+this[M])&&(e=this.size-(a.maxSize+this[M])),ae.call(this,e),m(i,"onDrag",D)(k()))}function se(){var r=l[this.a].element,e=l[this.b].element,t=r[Q](),a=e[Q]();this.size=t[n]+a[n]+this[R]+this[M],this.start=t[p],this.end=t[d]}function be(r){if(!getComputedStyle)return null;var e=getComputedStyle(r);if(!e)return null;var t=r[y];return t===0?null:(I===$?t-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight):t-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),t)}function oe(r){var e=be(g);if(e===null||T.reduce(function(f,b){return f+b},0)>e)return r;var t=0,a=[],v=r.map(function(f,b){var F=e*f/100,q=H(O,b===0,b===r.length-1,j),B=T[b]+q;return F<B?(t+=B-F,a.push(0),B):(a.push(F-B),F)});return t===0?r:v.map(function(f,b){var F=f;if(t>0&&a[b]-t>0){var q=Math.min(t,a[b]-t);t-=q,F=f-q}return F/e*100})}function Oe(){var r=this,e=l[r.a].element,t=l[r.b].element;r.dragging&&m(i,"onDragEnd",D)(k()),r.dragging=!1,x[w]("mouseup",r.stop),x[w]("touchend",r.stop),x[w]("touchcancel",r.stop),x[w]("mousemove",r.move),x[w]("touchmove",r.move),r.stop=null,r.move=null,e[w]("selectstart",D),e[w]("dragstart",D),t[w]("selectstart",D),t[w]("dragstart",D),e.style.userSelect="",e.style.webkitUserSelect="",e.style.MozUserSelect="",e.style.pointerEvents="",t.style.userSelect="",t.style.webkitUserSelect="",t.style.MozUserSelect="",t.style.pointerEvents="",r.gutter.style.cursor="",r.parent.style.cursor="",L.body.style.cursor=""}function xe(r){if(!("button"in r&&r.button!==0)){var e=this,t=l[e.a].element,a=l[e.b].element;e.dragging||m(i,"onDragStart",D)(k()),r.preventDefault(),e.dragging=!0,e.move=ze.bind(e),e.stop=Oe.bind(e),x[A]("mouseup",e.stop),x[A]("touchend",e.stop),x[A]("touchcancel",e.stop),x[A]("mousemove",e.move),x[A]("touchmove",e.move),t[A]("selectstart",D),t[A]("dragstart",D),a[A]("selectstart",D),a[A]("dragstart",D),t.style.userSelect="none",t.style.webkitUserSelect="none",t.style.MozUserSelect="none",t.style.pointerEvents="none",a.style.userSelect="none",a.style.webkitUserSelect="none",a.style.MozUserSelect="none",a.style.pointerEvents="none",e.gutter.style.cursor=X,e.parent.style.cursor=X,L.body.style.cursor=X,se.call(e),e.dragOffset=ie(r)-e.end}}U=oe(U);var P=[];l=u.map(function(r,e){var t={element:de(r),size:U[e],minSize:T[e],maxSize:C[e],snapOffset:ge[e],i:e},a;if(e>0&&(a={a:e-1,b:e,dragging:!1,direction:I,parent:g},a[R]=H(O,e-1===0,!1,j),a[M]=H(O,!1,e===u.length-1,j),E==="row-reverse"||E==="column-reverse")){var v=a.a;a.a=a.b,a.b=v}if(e>0){var f=ye(e,I,t.element);Se(f,O,e),a[G]=xe.bind(a),f[A]("mousedown",a[G]),f[A]("touchstart",a[G]),g.insertBefore(f,t.element),a.gutter=f}return N(t.element,t.size,H(O,e===0,e===u.length-1,j),e),e>0&&P.push(a),t});function ue(r){var e=r.i===P.length,t=e?P[r.i-1]:P[r.i];se.call(t);var a=e?t.size-r.minSize-t[M]:r.minSize+t[R];ae.call(t,a)}l.forEach(function(r){var e=r.element[Q]()[n];e<r.minSize&&(z?ue(r):r.minSize=e)});function Ee(r){var e=oe(r);e.forEach(function(t,a){if(a>0){var v=P[a-1],f=l[v.a],b=l[v.b];f.size=e[a-1],b.size=t,N(f.element,f.size,v[R],f.i),N(b.element,b.size,v[M],b.i)}})}function Te(r,e){P.forEach(function(t){if(e!==!0?t.parent.removeChild(t.gutter):(t.gutter[w]("mousedown",t[G]),t.gutter[w]("touchstart",t[G])),r!==!0){var a=ne(n,t.a.size,t[R]);Object.keys(a).forEach(function(v){l[t.a].element.style[v]="",l[t.b].element.style[v]=""})}})}return{setSizes:Ee,getSizes:k,collapse:function(e){ue(l[e])},destroy:Te,parent:g,pairs:P}};function ee(s,i){var u={};for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&i.indexOf(n)===-1&&(u[n]=s[n]);return u}var re=function(s){function i(){s.apply(this,arguments)}return s&&(i.__proto__=s),i.prototype=Object.create(s&&s.prototype),i.prototype.constructor=i,i.prototype.componentDidMount=function(){var n=this.props;n.children;var o=n.gutter,p=ee(n,["children","gutter"]),d=p;d.gutter=function(y,l){var h;return o?h=o(y,l):(h=document.createElement("div"),h.className="gutter gutter-"+l),h.__isSplitGutter=!0,h},this.split=ve(this.parent.children,d)},i.prototype.componentDidUpdate=function(n){var o=this,p=this.props;p.children;var d=p.minSize,y=p.sizes,l=p.collapsed,h=ee(p,["children","minSize","sizes","collapsed"]),g=h,S=n.minSize,E=n.sizes,U=n.collapsed,W=["maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor"],T=W.map(function(z){return o.props[z]!==n[z]}).reduce(function(z,O){return z||O},!1);if(Array.isArray(d)&&Array.isArray(S)){var _=!1;d.forEach(function(z,O){_=_||z!==S[O]}),T=T||_}else Array.isArray(d)||Array.isArray(S)?T=!0:T=T||d!==S;if(T)g.minSize=d,g.sizes=y||this.split.getSizes(),this.split.destroy(!0,!0),g.gutter=function(z,O,j){return j.previousSibling},this.split=ve(Array.from(this.parent.children).filter(function(z){return!z.__isSplitGutter}),g);else if(y){var C=!1;y.forEach(function(z,O){C=C||z!==E[O]}),C&&this.split.setSizes(this.props.sizes)}Number.isInteger(l)&&(l!==U||T)&&this.split.collapse(l)},i.prototype.componentWillUnmount=function(){this.split.destroy(),delete this.split},i.prototype.render=function(){var n=this,o=this.props;o.sizes,o.minSize,o.maxSize,o.expandToMin,o.gutterSize,o.gutterAlign,o.snapOffset,o.dragInterval,o.direction,o.cursor,o.gutter,o.elementStyle,o.gutterStyle,o.onDrag,o.onDragStart,o.onDragEnd,o.collapsed;var p=o.children,d=ee(o,["sizes","minSize","maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor","gutter","elementStyle","gutterStyle","onDrag","onDragStart","onDragEnd","collapsed","children"]),y=d;return le.createElement("div",Object.assign({},{ref:function(l){n.parent=l}},y),p)},i}(le.Component);re.propTypes={sizes:c.arrayOf(c.number),minSize:c.oneOfType([c.number,c.arrayOf(c.number)]),maxSize:c.oneOfType([c.number,c.arrayOf(c.number)]),expandToMin:c.bool,gutterSize:c.number,gutterAlign:c.string,snapOffset:c.oneOfType([c.number,c.arrayOf(c.number)]),dragInterval:c.number,direction:c.string,cursor:c.string,gutter:c.func,elementStyle:c.func,gutterStyle:c.func,onDrag:c.func,onDragStart:c.func,onDragEnd:c.func,collapsed:c.number,children:c.arrayOf(c.element)};re.defaultProps={sizes:void 0,minSize:void 0,maxSize:void 0,expandToMin:void 0,gutterSize:void 0,gutterAlign:void 0,snapOffset:void 0,dragInterval:void 0,direction:void 0,cursor:void 0,gutter:void 0,elementStyle:void 0,gutterStyle:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0,collapsed:void 0,children:void 0};function Ce({className:s,children:i,sizes:u,minSize:n,maxSize:o,direction:p,expandToMin:d=!1,snapOffset:y,cursor:l,handleDrag:h,onDragEnd:g}){const S=we.useRef(null);return Re.jsx(re,{ref:S,className:s,sizes:u,cursor:l,expandToMin:d,gutterAlign:"center",gutterSize:2,direction:p,minSize:n,maxSize:o,snapOffset:y,onDrag:E=>h==null?void 0:h(E,S.current),onDragEnd:E=>g==null?void 0:g(E,S.current),children:i})}export{Ce as S};
1
+ import{a2 as Ae,R as le,r as we,j as Re}from"./index-CkIQhGgw.js";var Z={exports:{}},J,ce;function De(){if(ce)return J;ce=1;var s="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return J=s,J}var K,fe;function Me(){if(fe)return K;fe=1;var s=De();function i(){}function u(){}return u.resetWarningCache=i,K=function(){function n(d,y,l,h,g,S){if(S!==s){var E=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw E.name="Invariant Violation",E}}n.isRequired=n;function o(){return n}var p={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:u,resetWarningCache:i};return p.PropTypes=p,p},K}var pe;function _e(){return pe||(pe=1,Z.exports=Me()()),Z.exports}var Pe=_e();const c=Ae(Pe);var x=typeof window<"u"?window:null,te=x===null,L=te?void 0:x.document,A="addEventListener",w="removeEventListener",Q="getBoundingClientRect",G="_a",R="_b",M="_c",$="horizontal",D=function(){return!1},Fe=te?"calc":["","-webkit-","-moz-","-o-"].filter(function(s){var i=L.createElement("div");return i.style.cssText="width:"+s+"calc(9px)",!!i.style.length}).shift()+"calc",me=function(s){return typeof s=="string"||s instanceof String},de=function(s){if(me(s)){var i=L.querySelector(s);if(!i)throw new Error("Selector "+s+" did not match a DOM element");return i}return s},m=function(s,i,u){var n=s[i];return n!==void 0?n:u},H=function(s,i,u,n){if(i){if(n==="end")return 0;if(n==="center")return s/2}else if(u){if(n==="start")return 0;if(n==="center")return s/2}return s},je=function(s,i){var u=L.createElement("div");return u.className="gutter gutter-"+i,u},Ie=function(s,i,u){var n={};return me(i)?n[s]=i:n[s]=Fe+"("+i+"% - "+u+"px)",n},Ue=function(s,i){var u;return u={},u[s]=i+"px",u},ve=function(s,i){if(i===void 0&&(i={}),te)return{};var u=s,n,o,p,d,y,l;Array.from&&(u=Array.from(u));var h=de(u[0]),g=h.parentNode,S=getComputedStyle?getComputedStyle(g):null,E=S?S.flexDirection:null,U=m(i,"sizes")||u.map(function(){return 100/u.length}),W=m(i,"minSize",100),T=Array.isArray(W)?W:u.map(function(){return W}),_=m(i,"maxSize",1/0),C=Array.isArray(_)?_:u.map(function(){return _}),z=m(i,"expandToMin",!1),O=m(i,"gutterSize",10),j=m(i,"gutterAlign","center"),Y=m(i,"snapOffset",30),ge=Array.isArray(Y)?Y:u.map(function(){return Y}),V=m(i,"dragInterval",1),I=m(i,"direction",$),X=m(i,"cursor",I===$?"col-resize":"row-resize"),ye=m(i,"gutter",je),ne=m(i,"elementStyle",Ie),he=m(i,"gutterStyle",Ue);I===$?(n="width",o="clientX",p="left",d="right",y="clientWidth"):I==="vertical"&&(n="height",o="clientY",p="top",d="bottom",y="clientHeight");function N(r,e,t,a){var v=ne(n,e,t,a);Object.keys(v).forEach(function(f){r.style[f]=v[f]})}function Se(r,e,t){var a=he(n,e,t);Object.keys(a).forEach(function(v){r.style[v]=a[v]})}function k(){return l.map(function(r){return r.size})}function ie(r){return"touches"in r?r.touches[0][o]:r[o]}function ae(r){var e=l[this.a],t=l[this.b],a=e.size+t.size;e.size=r/this.size*a,t.size=a-r/this.size*a,N(e.element,e.size,this[R],e.i),N(t.element,t.size,this[M],t.i)}function ze(r){var e,t=l[this.a],a=l[this.b];this.dragging&&(e=ie(r)-this.start+(this[R]-this.dragOffset),V>1&&(e=Math.round(e/V)*V),e<=t.minSize+t.snapOffset+this[R]?e=t.minSize+this[R]:e>=this.size-(a.minSize+a.snapOffset+this[M])&&(e=this.size-(a.minSize+this[M])),e>=t.maxSize-t.snapOffset+this[R]?e=t.maxSize+this[R]:e<=this.size-(a.maxSize-a.snapOffset+this[M])&&(e=this.size-(a.maxSize+this[M])),ae.call(this,e),m(i,"onDrag",D)(k()))}function se(){var r=l[this.a].element,e=l[this.b].element,t=r[Q](),a=e[Q]();this.size=t[n]+a[n]+this[R]+this[M],this.start=t[p],this.end=t[d]}function be(r){if(!getComputedStyle)return null;var e=getComputedStyle(r);if(!e)return null;var t=r[y];return t===0?null:(I===$?t-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight):t-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),t)}function oe(r){var e=be(g);if(e===null||T.reduce(function(f,b){return f+b},0)>e)return r;var t=0,a=[],v=r.map(function(f,b){var F=e*f/100,q=H(O,b===0,b===r.length-1,j),B=T[b]+q;return F<B?(t+=B-F,a.push(0),B):(a.push(F-B),F)});return t===0?r:v.map(function(f,b){var F=f;if(t>0&&a[b]-t>0){var q=Math.min(t,a[b]-t);t-=q,F=f-q}return F/e*100})}function Oe(){var r=this,e=l[r.a].element,t=l[r.b].element;r.dragging&&m(i,"onDragEnd",D)(k()),r.dragging=!1,x[w]("mouseup",r.stop),x[w]("touchend",r.stop),x[w]("touchcancel",r.stop),x[w]("mousemove",r.move),x[w]("touchmove",r.move),r.stop=null,r.move=null,e[w]("selectstart",D),e[w]("dragstart",D),t[w]("selectstart",D),t[w]("dragstart",D),e.style.userSelect="",e.style.webkitUserSelect="",e.style.MozUserSelect="",e.style.pointerEvents="",t.style.userSelect="",t.style.webkitUserSelect="",t.style.MozUserSelect="",t.style.pointerEvents="",r.gutter.style.cursor="",r.parent.style.cursor="",L.body.style.cursor=""}function xe(r){if(!("button"in r&&r.button!==0)){var e=this,t=l[e.a].element,a=l[e.b].element;e.dragging||m(i,"onDragStart",D)(k()),r.preventDefault(),e.dragging=!0,e.move=ze.bind(e),e.stop=Oe.bind(e),x[A]("mouseup",e.stop),x[A]("touchend",e.stop),x[A]("touchcancel",e.stop),x[A]("mousemove",e.move),x[A]("touchmove",e.move),t[A]("selectstart",D),t[A]("dragstart",D),a[A]("selectstart",D),a[A]("dragstart",D),t.style.userSelect="none",t.style.webkitUserSelect="none",t.style.MozUserSelect="none",t.style.pointerEvents="none",a.style.userSelect="none",a.style.webkitUserSelect="none",a.style.MozUserSelect="none",a.style.pointerEvents="none",e.gutter.style.cursor=X,e.parent.style.cursor=X,L.body.style.cursor=X,se.call(e),e.dragOffset=ie(r)-e.end}}U=oe(U);var P=[];l=u.map(function(r,e){var t={element:de(r),size:U[e],minSize:T[e],maxSize:C[e],snapOffset:ge[e],i:e},a;if(e>0&&(a={a:e-1,b:e,dragging:!1,direction:I,parent:g},a[R]=H(O,e-1===0,!1,j),a[M]=H(O,!1,e===u.length-1,j),E==="row-reverse"||E==="column-reverse")){var v=a.a;a.a=a.b,a.b=v}if(e>0){var f=ye(e,I,t.element);Se(f,O,e),a[G]=xe.bind(a),f[A]("mousedown",a[G]),f[A]("touchstart",a[G]),g.insertBefore(f,t.element),a.gutter=f}return N(t.element,t.size,H(O,e===0,e===u.length-1,j),e),e>0&&P.push(a),t});function ue(r){var e=r.i===P.length,t=e?P[r.i-1]:P[r.i];se.call(t);var a=e?t.size-r.minSize-t[M]:r.minSize+t[R];ae.call(t,a)}l.forEach(function(r){var e=r.element[Q]()[n];e<r.minSize&&(z?ue(r):r.minSize=e)});function Ee(r){var e=oe(r);e.forEach(function(t,a){if(a>0){var v=P[a-1],f=l[v.a],b=l[v.b];f.size=e[a-1],b.size=t,N(f.element,f.size,v[R],f.i),N(b.element,b.size,v[M],b.i)}})}function Te(r,e){P.forEach(function(t){if(e!==!0?t.parent.removeChild(t.gutter):(t.gutter[w]("mousedown",t[G]),t.gutter[w]("touchstart",t[G])),r!==!0){var a=ne(n,t.a.size,t[R]);Object.keys(a).forEach(function(v){l[t.a].element.style[v]="",l[t.b].element.style[v]=""})}})}return{setSizes:Ee,getSizes:k,collapse:function(e){ue(l[e])},destroy:Te,parent:g,pairs:P}};function ee(s,i){var u={};for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&i.indexOf(n)===-1&&(u[n]=s[n]);return u}var re=function(s){function i(){s.apply(this,arguments)}return s&&(i.__proto__=s),i.prototype=Object.create(s&&s.prototype),i.prototype.constructor=i,i.prototype.componentDidMount=function(){var n=this.props;n.children;var o=n.gutter,p=ee(n,["children","gutter"]),d=p;d.gutter=function(y,l){var h;return o?h=o(y,l):(h=document.createElement("div"),h.className="gutter gutter-"+l),h.__isSplitGutter=!0,h},this.split=ve(this.parent.children,d)},i.prototype.componentDidUpdate=function(n){var o=this,p=this.props;p.children;var d=p.minSize,y=p.sizes,l=p.collapsed,h=ee(p,["children","minSize","sizes","collapsed"]),g=h,S=n.minSize,E=n.sizes,U=n.collapsed,W=["maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor"],T=W.map(function(z){return o.props[z]!==n[z]}).reduce(function(z,O){return z||O},!1);if(Array.isArray(d)&&Array.isArray(S)){var _=!1;d.forEach(function(z,O){_=_||z!==S[O]}),T=T||_}else Array.isArray(d)||Array.isArray(S)?T=!0:T=T||d!==S;if(T)g.minSize=d,g.sizes=y||this.split.getSizes(),this.split.destroy(!0,!0),g.gutter=function(z,O,j){return j.previousSibling},this.split=ve(Array.from(this.parent.children).filter(function(z){return!z.__isSplitGutter}),g);else if(y){var C=!1;y.forEach(function(z,O){C=C||z!==E[O]}),C&&this.split.setSizes(this.props.sizes)}Number.isInteger(l)&&(l!==U||T)&&this.split.collapse(l)},i.prototype.componentWillUnmount=function(){this.split.destroy(),delete this.split},i.prototype.render=function(){var n=this,o=this.props;o.sizes,o.minSize,o.maxSize,o.expandToMin,o.gutterSize,o.gutterAlign,o.snapOffset,o.dragInterval,o.direction,o.cursor,o.gutter,o.elementStyle,o.gutterStyle,o.onDrag,o.onDragStart,o.onDragEnd,o.collapsed;var p=o.children,d=ee(o,["sizes","minSize","maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor","gutter","elementStyle","gutterStyle","onDrag","onDragStart","onDragEnd","collapsed","children"]),y=d;return le.createElement("div",Object.assign({},{ref:function(l){n.parent=l}},y),p)},i}(le.Component);re.propTypes={sizes:c.arrayOf(c.number),minSize:c.oneOfType([c.number,c.arrayOf(c.number)]),maxSize:c.oneOfType([c.number,c.arrayOf(c.number)]),expandToMin:c.bool,gutterSize:c.number,gutterAlign:c.string,snapOffset:c.oneOfType([c.number,c.arrayOf(c.number)]),dragInterval:c.number,direction:c.string,cursor:c.string,gutter:c.func,elementStyle:c.func,gutterStyle:c.func,onDrag:c.func,onDragStart:c.func,onDragEnd:c.func,collapsed:c.number,children:c.arrayOf(c.element)};re.defaultProps={sizes:void 0,minSize:void 0,maxSize:void 0,expandToMin:void 0,gutterSize:void 0,gutterAlign:void 0,snapOffset:void 0,dragInterval:void 0,direction:void 0,cursor:void 0,gutter:void 0,elementStyle:void 0,gutterStyle:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0,collapsed:void 0,children:void 0};function Ce({className:s,children:i,sizes:u,minSize:n,maxSize:o,direction:p,expandToMin:d=!1,snapOffset:y,cursor:l,handleDrag:h,onDragEnd:g}){const S=we.useRef(null);return Re.jsx(re,{ref:S,className:s,sizes:u,cursor:l,expandToMin:d,gutterAlign:"center",gutterSize:2,direction:p,minSize:n,maxSize:o,snapOffset:y,onDrag:E=>h==null?void 0:h(E,S.current),onDragEnd:E=>g==null?void 0:g(E,S.current),children:i})}export{Ce as S};
@@ -0,0 +1 @@
1
+ import{y as u,j as s,O as f,e as t,I as c,B as p,n as x,m as j}from"./index-CkIQhGgw.js";import{P as d}from"./Page-KC6UG65M.js";import{u as h}from"./project-XFpF0AcJ.js";import{S as v}from"./SourceList-DQ72TcK1.js";import{S as y}from"./SourceListItem-CncMnWed.js";import"./SplitPane-BY85POxQ.js";import"./file-Bs2Eq56_.js";import"./Input-BY5Rc3go.js";import"./index-COQuzlwN.js";import"./index-DQbKL5-Q.js";function g(){const{pathname:a}=u(),i=h(e=>e.files),r=Array.from(i.values()).filter(e=>e.path.endsWith("tests"));return s.jsx(d,{sidebar:s.jsxs("div",{className:"flex flex-col w-full h-full",children:[s.jsx(v,{keyId:"basename",keyName:"basename",to:t.Tests,items:r,isActive:e=>`${t.Tests}/${e}`===a,listItem:({to:e,name:o,description:m,text:n,disabled:l=!1})=>s.jsx(y,{to:e,name:o,text:n,description:m,disabled:l})}),s.jsx(c,{}),s.jsx("div",{className:"py-1 px-1 flex justify-end",children:s.jsx(p,{size:j.sm,variant:x.Neutral,children:"Run All"})})]}),content:s.jsx(f,{})})}export{g as default};
@@ -1 +1 @@
1
- import{j as s,i as t}from"./index-L7UJWCGi.js";function i({headline:e,tagline:l}){return s.jsx("div",{className:"w-full h-full flex justify-center items-center",children:s.jsxs("div",{className:"p-4",children:[t(e)&&s.jsx("h1",{className:"text-2xl font-bold",children:e}),t(l)&&s.jsx("p",{className:"text-lg mt-4",children:l})]})})}export{i as default};
1
+ import{j as s,i as t}from"./index-CkIQhGgw.js";function i({headline:e,tagline:l}){return s.jsx("div",{className:"w-full h-full flex justify-center items-center",children:s.jsxs("div",{className:"p-4",children:[t(e)&&s.jsx("h1",{className:"text-2xl font-bold",children:e}),t(l)&&s.jsx("p",{className:"text-lg mt-4",children:l})]})})}export{i as default};
@@ -1 +1 @@
1
- import{r as E,d as U,a as k,j as z,a9 as O,ah as P,w as y,G as R,ai as C,J as H,i as x,aj as Q,ak as Z,b as V,h as ee}from"./index-L7UJWCGi.js";import{u as h,M as g}from"./project-BlT_dmGo.js";import{M as b}from"./file-DYgUpg8u.js";import{u as te}from"./editor-DmJY3IbC.js";const le={Added:1,Modified:2,Deleted:3},G=E.createContext({artifactRename:void 0,setArtifactRename:()=>{},selectArtifactsInRange:()=>new Set,createDirectory:()=>{},createFile:()=>{},renameArtifact:()=>{},removeArtifacts:()=>{},removeArtifactWithConfirmation:()=>{},moveArtifacts:()=>{},isTopGroupInActiveRange:()=>!1,isBottomGroupInActiveRange:()=>!1,isMiddleGroupInActiveRange:()=>!1});function re({children:$}){const{addError:v}=U(),A=h(e=>e.activeRange),l=h(e=>e.project),_=h(e=>e.files),D=h(e=>e.setActiveRange),j=h(e=>e.setSelectedFile),I=h(e=>e.setFiles),c=h(e=>e.inActiveRange),S=k(e=>e.addConfirmation),p=te(e=>e.tab),[F,r]=E.useState(!1),[w,N]=E.useState();E.useEffect(()=>{j(p==null?void 0:p.file)},[p==null?void 0:p.id]);function L(e){const n=A.length-1,s=l.allVisibleArtifacts,u=A[0],a=A[n],i=s.indexOf(e),o=u==null?0:s.indexOf(u),m=a==null?n:s.indexOf(a),f=i>o?o:i,d=i>m||i>o&&i<m?i:m;D(s.slice(f,d+1))}function X(e){if(F)return;r(!0);const t=O("new_directory");P([e.path,t].join("/"),{}).then(n=>{y(n)||e.open()}).catch(n=>v(R.FileExplorer,n)).finally(()=>{r(!1)})}function W(e,t){if(F)return;y(t)&&(e.isModels?t=".sql":e.isTests?t=".yaml":t=".py"),r(!0);const n=O("new_file",t);C(`${e.path}/${n}`,{content:""}).then(s=>{y(s)||e.open()}).catch(s=>v(R.FileExplorer,s)).finally(()=>{r(!1)})}function Y(e,t){var i;t=t==null?void 0:t.replaceAll("/","").trim();const s=(((i=e.parent)==null?void 0:i.artifacts)??[]).some(o=>o.name===t);if(F||H(t)||s)return;r(!0);const u=e.name,a=e.path;e.rename(t),e instanceof g&&P(a,{new_path:e.path}).catch(o=>{v(R.FileExplorer,o),e.rename(u)}).finally(()=>{r(!1),x(p)&&e.hasFile(p.file)&&j(p.file),I(l.allFiles)}),e instanceof b&&C(a,{new_path:e.path}).then(o=>{e.update(o),_.set(e.path,e),_.delete(a)}).catch(o=>{v(R.FileExplorer,o),e.rename(u)}).finally(()=>{r(!1),I(l.allFiles)})}function T(e){if(F)return;r(!0);const t=e.map(n=>n instanceof b?Q(n.path):Z(n.path));Promise.all(t).then(()=>{D([])}).catch(n=>v(R.FileExplorer,n)).finally(()=>{r(!1)})}function q(e){c(e)?S({headline:"Removing Selected Files/Directories",description:`Are you sure you want to remove ${A.length} items?`,yesText:"Yes, Remove",noText:"No, Cancel",details:A.map(t=>t.path),action:()=>{T(A)}}):S({headline:`Removing ${e instanceof g?"Directory":"File"}`,description:`Are you sure you want to remove the ${e instanceof g?"directory":"file"} "${e.name}"?`,yesText:"Yes, Remove",noText:"No, Cancel",action:()=>{x(e.parent)&&T([e])}})}function M(e,t,n=!1){if(F)return;r(!0);const s=[],u=[],a=[];if(e.forEach(i=>{const o=t.containsName(i.name),m=i.path;if(o&&V(n))return a.push(i);n&&i.rename(i.copyName());let f=[t.path,i.name].join("/");for(;f.startsWith("/");)f=f.slice(1).trim();i instanceof g&&(s.push(()=>{var d;(d=i.parent)==null||d.removeDirectory(i),t.addDirectory(i)}),u.push(P(m,{new_path:f})),i.allVisibleArtifacts.forEach(d=>e.splice(e.indexOf(d),1))),i instanceof b&&(s.push(()=>{var d;(d=i.parent)==null||d.removeFile(i),t.addFile(i)}),u.push(C(m,{new_path:f})))}),ee(a)){S({headline:"Moving Duplicates",description:"All duplicated names will be renamed!",yesText:"Yes, Rename",noText:"No, Cancel",details:a.map(i=>i.path),action:()=>{M(e,t,!0)}});return}Promise.all(u).then(i=>{i.forEach((o,m)=>{var f;return(f=s[m])==null?void 0:f.call(s)})}).catch(i=>{console.log(i)}).finally(()=>{r(!1),D([]),I(l.allFiles)})}function B(e){const t=l.allVisibleArtifacts.indexOf(e),n=l.allVisibleArtifacts[t-1],s=l.allVisibleArtifacts[t+1];return c(e)&&(y(n)||V(c(n)))&&x(s)&&c(s)}function J(e){const t=l.allVisibleArtifacts.indexOf(e),n=l.allVisibleArtifacts[t-1],s=l.allVisibleArtifacts[t+1];return c(e)&&(y(s)||V(c(s)))&&x(n)&&c(n)}function K(e){const t=l.allVisibleArtifacts.indexOf(e),n=l.allVisibleArtifacts[t-1],s=l.allVisibleArtifacts[t+1];return c(e)&&x(s)&&c(s)&&x(n)&&c(n)}return z.jsx(G.Provider,{value:{artifactRename:w,setArtifactRename:N,createDirectory:X,createFile:W,renameArtifact:Y,removeArtifacts:T,removeArtifactWithConfirmation:q,moveArtifacts:M,selectArtifactsInRange:L,isTopGroupInActiveRange:B,isBottomGroupInActiveRange:J,isMiddleGroupInActiveRange:K},children:$})}function ce(){return E.useContext(G)}export{le as EnumFileExplorerChange,G as FileExplorerContext,re as default,ce as useFileExplorer};
1
+ import{r as E,d as U,a as z,j as H,a9 as O,ac as P,w as y,G as R,ad as C,J as Q,i as x,ae as Z,af as k,b as V,h as ee}from"./index-CkIQhGgw.js";import{u as h,M as g}from"./project-XFpF0AcJ.js";import{M as b}from"./file-Bs2Eq56_.js";import{u as te}from"./editor-Dj_6cws7.js";const le={Added:1,Modified:2,Deleted:3},G=E.createContext({artifactRename:void 0,setArtifactRename:()=>{},selectArtifactsInRange:()=>new Set,createDirectory:()=>{},createFile:()=>{},renameArtifact:()=>{},removeArtifacts:()=>{},removeArtifactWithConfirmation:()=>{},moveArtifacts:()=>{},isTopGroupInActiveRange:()=>!1,isBottomGroupInActiveRange:()=>!1,isMiddleGroupInActiveRange:()=>!1});function re({children:$}){const{addError:v}=U(),A=h(e=>e.activeRange),l=h(e=>e.project),_=h(e=>e.files),D=h(e=>e.setActiveRange),M=h(e=>e.setSelectedFile),I=h(e=>e.setFiles),c=h(e=>e.inActiveRange),S=z(e=>e.addConfirmation),p=te(e=>e.tab),[F,r]=E.useState(!1),[w,N]=E.useState();E.useEffect(()=>{M(p==null?void 0:p.file)},[p==null?void 0:p.id]);function L(e){const n=A.length-1,s=l.allVisibleArtifacts,u=A[0],a=A[n],i=s.indexOf(e),o=u==null?0:s.indexOf(u),m=a==null?n:s.indexOf(a),f=i>o?o:i,d=i>m||i>o&&i<m?i:m;D(s.slice(f,d+1))}function X(e){if(F)return;r(!0);const t=O("new_directory");P([e.path,t].join("/"),{}).then(n=>{y(n)||e.open()}).catch(n=>v(R.FileExplorer,n)).finally(()=>{r(!1)})}function W(e,t){if(F)return;y(t)&&(e.isModels?t=".sql":e.isTests?t=".yaml":t=".py"),r(!0);const n=O("new_file",t);C(`${e.path}/${n}`,{content:""}).then(s=>{y(s)||e.open()}).catch(s=>v(R.FileExplorer,s)).finally(()=>{r(!1)})}function Y(e,t){var i;t=t==null?void 0:t.replaceAll("/","").trim();const s=(((i=e.parent)==null?void 0:i.artifacts)??[]).some(o=>o.name===t);if(F||Q(t)||s)return;r(!0);const u=e.name,a=e.path;e.rename(t),e instanceof g&&P(a,{new_path:e.path}).catch(o=>{v(R.FileExplorer,o),e.rename(u)}).finally(()=>{r(!1),x(p)&&e.hasFile(p.file)&&M(p.file),I(l.allFiles)}),e instanceof b&&C(a,{new_path:e.path}).then(o=>{e.update(o),_.set(e.path,e),_.delete(a)}).catch(o=>{v(R.FileExplorer,o),e.rename(u)}).finally(()=>{r(!1),I(l.allFiles)})}function T(e){if(F)return;r(!0);const t=e.map(n=>n instanceof b?Z(n.path):k(n.path));Promise.all(t).then(()=>{D([])}).catch(n=>v(R.FileExplorer,n)).finally(()=>{r(!1)})}function q(e){c(e)?S({headline:"Removing Selected Files/Directories",description:`Are you sure you want to remove ${A.length} items?`,yesText:"Yes, Remove",noText:"No, Cancel",details:A.map(t=>t.path),action:()=>{T(A)}}):S({headline:`Removing ${e instanceof g?"Directory":"File"}`,description:`Are you sure you want to remove the ${e instanceof g?"directory":"file"} "${e.name}"?`,yesText:"Yes, Remove",noText:"No, Cancel",action:()=>{x(e.parent)&&T([e])}})}function j(e,t,n=!1){if(F)return;r(!0);const s=[],u=[],a=[];if(e.forEach(i=>{const o=t.containsName(i.name),m=i.path;if(o&&V(n))return a.push(i);n&&i.rename(i.copyName());let f=[t.path,i.name].join("/");for(;f.startsWith("/");)f=f.slice(1).trim();i instanceof g&&(s.push(()=>{var d;(d=i.parent)==null||d.removeDirectory(i),t.addDirectory(i)}),u.push(P(m,{new_path:f})),i.allVisibleArtifacts.forEach(d=>e.splice(e.indexOf(d),1))),i instanceof b&&(s.push(()=>{var d;(d=i.parent)==null||d.removeFile(i),t.addFile(i)}),u.push(C(m,{new_path:f})))}),ee(a)){S({headline:"Moving Duplicates",description:"All duplicated names will be renamed!",yesText:"Yes, Rename",noText:"No, Cancel",details:a.map(i=>i.path),action:()=>{j(e,t,!0)}});return}Promise.all(u).then(i=>{i.forEach((o,m)=>{var f;return(f=s[m])==null?void 0:f.call(s)})}).catch(i=>{console.log(i)}).finally(()=>{r(!1),D([]),I(l.allFiles)})}function B(e){const t=l.allVisibleArtifacts.indexOf(e),n=l.allVisibleArtifacts[t-1],s=l.allVisibleArtifacts[t+1];return c(e)&&(y(n)||V(c(n)))&&x(s)&&c(s)}function J(e){const t=l.allVisibleArtifacts.indexOf(e),n=l.allVisibleArtifacts[t-1],s=l.allVisibleArtifacts[t+1];return c(e)&&(y(s)||V(c(s)))&&x(n)&&c(n)}function K(e){const t=l.allVisibleArtifacts.indexOf(e),n=l.allVisibleArtifacts[t-1],s=l.allVisibleArtifacts[t+1];return c(e)&&x(s)&&c(s)&&x(n)&&c(n)}return H.jsx(G.Provider,{value:{artifactRename:w,setArtifactRename:N,createDirectory:X,createFile:W,renameArtifact:Y,removeArtifacts:T,removeArtifactWithConfirmation:q,moveArtifacts:j,selectArtifactsInRange:L,isTopGroupInActiveRange:B,isBottomGroupInActiveRange:J,isMiddleGroupInActiveRange:K},children:$})}function ce(){return E.useContext(G)}export{le as EnumFileExplorerChange,G as FileExplorerContext,re as default,ce as useFileExplorer};