@prisma/studio-core 0.0.0 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/CPIOZS5X-NALOZFPD.js +1 -0
  2. package/dist/OKF6E45R-6KC3BLVB.js +1 -0
  3. package/dist/adapter-Co8KY8Hi.d.cts +166 -0
  4. package/dist/adapter-Co8KY8Hi.d.ts +166 -0
  5. package/dist/chunk-2FW6TKD6.js +1 -0
  6. package/dist/chunk-5MNS4IJC.js +1332 -0
  7. package/dist/chunk-N2MLAUEV.js +1 -0
  8. package/dist/chunk-RGBMDID6.js +1 -0
  9. package/dist/chunk-ZCFLMQMM.js +1 -0
  10. package/dist/data/accelerate/index.cjs +1 -0
  11. package/dist/data/accelerate/index.d.cts +47 -0
  12. package/dist/data/accelerate/index.d.ts +47 -0
  13. package/dist/data/accelerate/index.js +1 -0
  14. package/dist/data/bff/index.cjs +1 -0
  15. package/dist/data/bff/index.d.cts +55 -0
  16. package/dist/data/bff/index.d.ts +55 -0
  17. package/dist/data/bff/index.js +1 -0
  18. package/dist/data/index.cjs +1 -1
  19. package/dist/data/index.d.cts +3 -2
  20. package/dist/data/index.d.ts +3 -2
  21. package/dist/data/index.js +1 -0
  22. package/dist/data/pglite/index.cjs +1 -0
  23. package/dist/data/pglite/index.d.cts +9 -0
  24. package/dist/data/pglite/index.d.ts +9 -0
  25. package/dist/data/pglite/index.js +1 -0
  26. package/dist/data/postgres-core/index.cjs +1 -0
  27. package/dist/data/postgres-core/index.d.cts +129 -0
  28. package/dist/data/postgres-core/index.d.ts +129 -0
  29. package/dist/data/postgres-core/index.js +1 -0
  30. package/dist/index-CnVNNyod.d.cts +35 -0
  31. package/dist/index-M4EjPWNJ.d.ts +35 -0
  32. package/dist/ui/index.cjs +1515 -1
  33. package/dist/ui/index.css +1854 -0
  34. package/dist/ui/index.d.cts +10 -2
  35. package/dist/ui/index.d.ts +10 -2
  36. package/dist/ui/index.js +186 -1
  37. package/package.json +121 -21
  38. package/data/index.ts +0 -1
  39. package/tsconfig.json +0 -6
  40. package/tsup.config.ts +0 -11
  41. package/ui/index.tsx +0 -1
@@ -1,5 +1,13 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { A as Adapter } from '../adapter-Co8KY8Hi.cjs';
2
3
 
3
- declare const _default: react_jsx_runtime.JSX.Element;
4
+ interface StudioProps {
5
+ adapter: Adapter;
6
+ onError?: (error: Error) => void;
7
+ }
8
+ /**
9
+ * Main Studio component that provides database visualization and management
10
+ */
11
+ declare function Studio(props: StudioProps): react_jsx_runtime.JSX.Element;
4
12
 
5
- export = _default;
13
+ export { Studio, type StudioProps };
@@ -1,5 +1,13 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { A as Adapter } from '../adapter-Co8KY8Hi.js';
2
3
 
3
- declare const _default: react_jsx_runtime.JSX.Element;
4
+ interface StudioProps {
5
+ adapter: Adapter;
6
+ onError?: (error: Error) => void;
7
+ }
8
+ /**
9
+ * Main Studio component that provides database visualization and management
10
+ */
11
+ declare function Studio(props: StudioProps): react_jsx_runtime.JSX.Element;
4
12
 
5
- export { _default as default };
13
+ export { Studio, type StudioProps };
package/dist/ui/index.js CHANGED
@@ -1 +1,186 @@
1
- import{Fragment as l,jsx as o}from"react/jsx-runtime";var d=o(l,{children:"Hello World"});export{d as default};
1
+ import{D as je}from"../chunk-RGBMDID6.js";import{B as ia,aa as ca,c as G,q as da,r as fa,t as na}from"../chunk-N2MLAUEV.js";import"../chunk-2FW6TKD6.js";import{useIsMutating as hl}from"@tanstack/react-query";import{forwardRef as oo,createElement as ro}from"react";var Ga=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ye=(...e)=>e.filter((a,t,o)=>!!a&&o.indexOf(a)===t).join(" ");import{forwardRef as to,createElement as Va}from"react";var Wa={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Xa=to(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:r="",children:l,iconNode:s,...u},d)=>Va("svg",{ref:d,...Wa,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:Ye("lucide",r),...u},[...s.map(([f,p])=>Va(f,p)),...Array.isArray(l)?l:[l]]));var y=(e,a)=>{let t=oo(({className:o,...r},l)=>ro(Xa,{ref:l,iconNode:a,className:Ye(`lucide-${Ga(e)}`,o),...r}));return t.displayName=`${e}`,t};var ce=y("ArrowDownWideNarrow",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]]);var Te=y("ArrowUpWideNarrow",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h4",key:"1krc32"}]]);var he=y("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var Se=y("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var Be=y("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var ee=y("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var Fe=y("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);var qe=y("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);var we=y("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var Oe=y("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var Ue=y("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);var He=y("PinOff",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]]);var Ne=y("Pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]);var Ee=y("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);import{useEffect as Na,useState as Ea}from"react";import{toast as Sl}from"sonner";import{Slot as Eo}from"@radix-ui/react-slot";import{cva as zo}from"class-variance-authority";import*as tt from"react";import{clsx as Ho}from"clsx";var La="-",lo=e=>{let a=uo(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{let u=s.split(La);return u[0]===""&&u.length!==1&&u.shift(),Ja(u,a)||so(s)},getConflictingClassGroupIds:(s,u)=>{let d=t[s]||[];return u&&o[s]?[...d,...o[s]]:d}}},Ja=(e,a)=>{if(e.length===0)return a.classGroupId;let t=e[0],o=a.nextPart.get(t),r=o?Ja(e.slice(1),o):void 0;if(r)return r;if(a.validators.length===0)return;let l=e.join(La);return a.validators.find(({validator:s})=>s(l))?.classGroupId},Ka=/^\[(.+)\]$/,so=e=>{if(Ka.test(e)){let a=Ka.exec(e)[1],t=a?.substring(0,a.indexOf(":"));if(t)return"arbitrary.."+t}},uo=e=>{let{theme:a,prefix:t}=e,o={nextPart:new Map,validators:[]};return no(Object.entries(e.classGroups),t).forEach(([l,s])=>{ma(s,o,l,a)}),o},ma=(e,a,t,o)=>{e.forEach(r=>{if(typeof r=="string"){let l=r===""?a:Qa(a,r);l.classGroupId=t;return}if(typeof r=="function"){if(fo(r)){ma(r(o),a,t,o);return}a.validators.push({validator:r,classGroupId:t});return}Object.entries(r).forEach(([l,s])=>{ma(s,Qa(a,l),t,o)})})},Qa=(e,a)=>{let t=e;return a.split(La).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t},fo=e=>e.isThemeGetter,no=(e,a)=>a?e.map(([t,o])=>{let r=o.map(l=>typeof l=="string"?a+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([s,u])=>[a+s,u])):l);return[t,r]}):e,io=e=>{if(e<1)return{get:()=>{},set:()=>{}};let a=0,t=new Map,o=new Map,r=(l,s)=>{t.set(l,s),a++,a>e&&(a=0,o=t,t=new Map)};return{get(l){let s=t.get(l);if(s!==void 0)return s;if((s=o.get(l))!==void 0)return r(l,s),s},set(l,s){t.has(l)?t.set(l,s):r(l,s)}}},$a="!",co=e=>{let{separator:a,experimentalParseClassName:t}=e,o=a.length===1,r=a[0],l=a.length,s=u=>{let d=[],f=0,p=0,m;for(let g=0;g<u.length;g++){let w=u[g];if(f===0){if(w===r&&(o||u.slice(g,g+l)===a)){d.push(u.slice(p,g)),p=g+l;continue}if(w==="/"){m=g;continue}}w==="["?f++:w==="]"&&f--}let x=d.length===0?u:u.substring(p),k=x.startsWith($a),M=k?x.substring(1):x,L=m&&m>p?m-p:void 0;return{modifiers:d,hasImportantModifier:k,baseClassName:M,maybePostfixModifierPosition:L}};return t?u=>t({className:u,parseClassName:s}):s},po=e=>{if(e.length<=1)return e;let a=[],t=[];return e.forEach(o=>{o[0]==="["?(a.push(...t.sort(),o),t=[]):t.push(o)}),a.push(...t.sort()),a},mo=e=>({cache:io(e.cacheSize),parseClassName:co(e),...lo(e)}),Lo=/\s+/,xo=(e,a)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:r}=a,l=[],s=e.trim().split(Lo),u="";for(let d=s.length-1;d>=0;d-=1){let f=s[d],{modifiers:p,hasImportantModifier:m,baseClassName:x,maybePostfixModifierPosition:k}=t(f),M=!!k,L=o(M?x.substring(0,k):x);if(!L){if(!M){u=f+(u.length>0?" "+u:u);continue}if(L=o(x),!L){u=f+(u.length>0?" "+u:u);continue}M=!1}let g=po(p).join(":"),w=m?g+$a:g,b=w+L;if(l.includes(b))continue;l.push(b);let F=r(L,M);for(let D=0;D<F.length;++D){let ie=F[D];l.push(w+ie)}u=f+(u.length>0?" "+u:u)}return u};function go(){let e=0,a,t,o="";for(;e<arguments.length;)(a=arguments[e++])&&(t=ja(a))&&(o&&(o+=" "),o+=t);return o}var ja=e=>{if(typeof e=="string")return e;let a,t="";for(let o=0;o<e.length;o++)e[o]&&(a=ja(e[o]))&&(t&&(t+=" "),t+=a);return t};function Za(e,...a){let t,o,r,l=s;function s(d){let f=a.reduce((p,m)=>m(p),e());return t=mo(f),o=t.cache.get,r=t.cache.set,l=u,u(d)}function u(d){let f=o(d);if(f)return f;let p=xo(d,t);return r(d,p),p}return function(){return l(go.apply(null,arguments))}}var v=e=>{let a=t=>t[e]||[];return a.isThemeGetter=!0,a},Ya=/^\[(?:([a-z-]+):)?(.+)\]$/i,Co=/^\d+\/\d+$/,Io=new Set(["px","full","screen"]),ho=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,So=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,wo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,bo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Po=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ae=e=>Pe(e)||Io.has(e)||Co.test(e),pe=e=>ye(e,"length",To),Pe=e=>!!e&&!Number.isNaN(Number(e)),pa=e=>ye(e,"number",Pe),ze=e=>!!e&&Number.isInteger(Number(e)),yo=e=>e.endsWith("%")&&Pe(e.slice(0,-1)),C=e=>Ya.test(e),me=e=>ho.test(e),vo=new Set(["length","size","percentage"]),ko=e=>ye(e,vo,et),Ro=e=>ye(e,"position",et),Mo=new Set(["image","url"]),Do=e=>ye(e,Mo,Fo),Ao=e=>ye(e,"",Bo),Ge=()=>!0,ye=(e,a,t)=>{let o=Ya.exec(e);return o?o[1]?typeof a=="string"?o[1]===a:a.has(o[1]):t(o[2]):!1},To=e=>So.test(e)&&!wo.test(e),et=()=>!1,Bo=e=>bo.test(e),Fo=e=>Po.test(e);var _a=()=>{let e=v("colors"),a=v("spacing"),t=v("blur"),o=v("brightness"),r=v("borderColor"),l=v("borderRadius"),s=v("borderSpacing"),u=v("borderWidth"),d=v("contrast"),f=v("grayscale"),p=v("hueRotate"),m=v("invert"),x=v("gap"),k=v("gradientColorStops"),M=v("gradientColorStopPositions"),L=v("inset"),g=v("margin"),w=v("opacity"),b=v("padding"),F=v("saturate"),D=v("scale"),ie=v("sepia"),_e=v("skew"),Je=v("space"),q=v("translate"),R=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",C,a],P=()=>[C,a],z=()=>["",ae,pe],X=()=>["auto",Pe,C],$e=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Ce=()=>["solid","dashed","dotted","double","none"],De=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ie=()=>["start","end","center","between","around","evenly","stretch"],Ae=()=>["","0",C],za=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[Pe,C];return{cacheSize:500,separator:":",theme:{colors:[Ge],spacing:[ae,pe],blur:["none","",me,C],brightness:Y(),borderColor:[e],borderRadius:["none","","full",me,C],borderSpacing:P(),borderWidth:z(),contrast:Y(),grayscale:Ae(),hueRotate:Y(),invert:Ae(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[yo,pe],inset:E(),margin:E(),opacity:Y(),padding:P(),saturate:Y(),scale:Y(),sepia:Ae(),skew:Y(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",C]}],container:["container"],columns:[{columns:[me]}],"break-after":[{"break-after":za()}],"break-before":[{"break-before":za()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...$e(),C]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[L]}],"inset-x":[{"inset-x":[L]}],"inset-y":[{"inset-y":[L]}],start:[{start:[L]}],end:[{end:[L]}],top:[{top:[L]}],right:[{right:[L]}],bottom:[{bottom:[L]}],left:[{left:[L]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ze,C]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",C]}],grow:[{grow:Ae()}],shrink:[{shrink:Ae()}],order:[{order:["first","last","none",ze,C]}],"grid-cols":[{"grid-cols":[Ge]}],"col-start-end":[{col:["auto",{span:["full",ze,C]},C]}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":[Ge]}],"row-start-end":[{row:["auto",{span:[ze,C]},C]}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",C]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",C]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...Ie()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ie(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ie(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[Je]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Je]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",C,a]}],"min-w":[{"min-w":[C,a,"min","max","fit"]}],"max-w":[{"max-w":[C,a,"none","full","min","max","fit","prose",{screen:[me]},me]}],h:[{h:[C,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[C,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[C,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[C,a,"auto","min","max","fit"]}],"font-size":[{text:["base",me,pe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",pa]}],"font-family":[{font:[Ge]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",C]}],"line-clamp":[{"line-clamp":["none",Pe,pa]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ae,C]}],"list-image":[{"list-image":["none",C]}],"list-style-type":[{list:["none","disc","decimal",C]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ce(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ae,pe]}],"underline-offset":[{"underline-offset":["auto",ae,C]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",C]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",C]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...$e(),Ro]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ko]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Do]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[M]}],"gradient-via-pos":[{via:[M]}],"gradient-to-pos":[{to:[M]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...Ce(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:Ce()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...Ce()]}],"outline-offset":[{"outline-offset":[ae,C]}],"outline-w":[{outline:[ae,pe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[ae,pe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",me,Ao]}],"shadow-color":[{shadow:[Ge]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...De(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":De()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",me,C]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[m]}],saturate:[{saturate:[F]}],sepia:[{sepia:[ie]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[F]}],"backdrop-sepia":[{"backdrop-sepia":[ie]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",C]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",C]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",C]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[D]}],"scale-x":[{"scale-x":[D]}],"scale-y":[{"scale-y":[D]}],rotate:[{rotate:[ze,C]}],"translate-x":[{"translate-x":[q]}],"translate-y":[{"translate-y":[q]}],"skew-x":[{"skew-x":[_e]}],"skew-y":[{"skew-y":[_e]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",C]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",C]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",C]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ae,pe,pa]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},qo=(e,{cacheSize:a,prefix:t,separator:o,experimentalParseClassName:r,extend:l={},override:s={}})=>{We(e,"cacheSize",a),We(e,"prefix",t),We(e,"separator",o),We(e,"experimentalParseClassName",r);for(let u in s)Oo(e[u],s[u]);for(let u in l)Uo(e[u],l[u]);return e},We=(e,a,t)=>{t!==void 0&&(e[a]=t)},Oo=(e,a)=>{if(a)for(let t in a)We(e,t,a[t])},Uo=(e,a)=>{if(a)for(let t in a){let o=a[t];o!==void 0&&(e[t]=(e[t]||[]).concat(o))}},at=(e,...a)=>typeof e=="function"?Za(_a,e,...a):Za(()=>qo(_a(),e),...a);var No=at({prefix:"ps-"});function c(...e){return No(Ho(e))}import{jsx as Wo}from"react/jsx-runtime";var Go=zo("ps-inline-flex ps-items-center ps-justify-center ps-gap-2 ps-whitespace-nowrap ps-rounded-md ps-text-sm ps-font-medium ps-transition-colors focus-visible:ps-outline-none focus-visible:ps-ring-1 focus-visible:ps-ring-ring disabled:ps-pointer-events-none disabled:ps-opacity-50 [&_svg]:ps-pointer-events-none [&_svg]:ps-size-4 [&_svg]:ps-shrink-0",{variants:{variant:{default:"ps-bg-primary ps-text-primary-foreground ps-shadow hover:ps-bg-primary/90",destructive:"ps-bg-destructive ps-text-destructive-foreground ps-shadow-sm hover:ps-bg-destructive/90",outline:"ps-border ps-border-input ps-bg-background ps-shadow-sm hover:ps-bg-accent hover:ps-text-accent-foreground",secondary:"ps-bg-secondary ps-text-secondary-foreground ps-shadow-sm hover:ps-bg-secondary/80",ghost:"hover:ps-bg-accent hover:ps-text-accent-foreground",link:"ps-text-primary ps-underline-offset-4 hover:ps-underline"},size:{default:"ps-h-9 ps-px-4 ps-py-2",sm:"ps-h-8 ps-rounded-md ps-px-3 ps-text-xs",lg:"ps-h-10 ps-rounded-md ps-px-8",icon:"ps-h-9 ps-w-9"}},defaultVariants:{variant:"default",size:"default"}}),O=tt.forwardRef(({className:e,variant:a,size:t,asChild:o=!1,...r},l)=>Wo(o?Eo:"button",{className:c(Go({variant:a,size:t,className:e})),ref:l,...r}));O.displayName="Button";import*as h from"@radix-ui/react-dropdown-menu";import*as te from"react";import{jsx as U,jsxs as xa}from"react/jsx-runtime";var ea=h.Root,aa=h.Trigger;var Vo=te.forwardRef(({className:e,inset:a,children:t,...o},r)=>xa(h.SubTrigger,{ref:r,className:c("ps-flex ps-cursor-default ps-select-none ps-items-center ps-gap-2 ps-rounded-sm ps-px-2 ps-py-1.5 ps-text-sm ps-outline-none focus:ps-bg-accent data-[state=open]:ps-bg-accent [&_svg]:ps-pointer-events-none [&_svg]:ps-size-4 [&_svg]:ps-shrink-0",a&&"ps-pl-8",e),...o,children:[t,U(ee,{className:"ps-ml-auto"})]}));Vo.displayName=h.SubTrigger.displayName;var Xo=te.forwardRef(({className:e,...a},t)=>U(h.SubContent,{ref:t,className:c("ps-z-50 ps-min-w-[8rem] ps-overflow-hidden ps-rounded-md ps-border ps-bg-popover ps-p-1 ps-text-popover-foreground ps-shadow-lg data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-dropdown-menu-content-transform-origin]",e),...a}));Xo.displayName=h.SubContent.displayName;var Ve=te.forwardRef(({className:e,sideOffset:a=4,...t},o)=>U(h.Portal,{children:U(h.Content,{ref:o,sideOffset:a,className:c("ps-z-50 ps-max-h-[var(--radix-dropdown-menu-content-available-height)] ps-min-w-[8rem] ps-overflow-y-auto ps-overflow-x-hidden ps-rounded-md ps-border ps-bg-popover ps-p-1 ps-text-popover-foreground ps-shadow-md","data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-dropdown-menu-content-transform-origin]",e),...t})}));Ve.displayName=h.Content.displayName;var ve=te.forwardRef(({className:e,inset:a,...t},o)=>U(h.Item,{ref:o,className:c("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-gap-2 ps-rounded-sm ps-px-2 ps-py-1.5 ps-text-sm ps-outline-none ps-transition-colors focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50 [&>svg]:ps-size-4 [&>svg]:ps-shrink-0",a&&"ps-pl-8",e),...t}));ve.displayName=h.Item.displayName;var Ko=te.forwardRef(({className:e,children:a,checked:t,...o},r)=>xa(h.CheckboxItem,{ref:r,className:c("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-8 ps-pr-2 ps-text-sm ps-outline-none ps-transition-colors focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),checked:t,...o,children:[U("span",{className:"ps-absolute ps-left-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:U(h.ItemIndicator,{children:U(he,{className:"ps-h-4 ps-w-4"})})}),a]}));Ko.displayName=h.CheckboxItem.displayName;var Qo=te.forwardRef(({className:e,children:a,...t},o)=>xa(h.RadioItem,{ref:o,className:c("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-8 ps-pr-2 ps-text-sm ps-outline-none ps-transition-colors focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),...t,children:[U("span",{className:"ps-absolute ps-left-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:U(h.ItemIndicator,{children:U(we,{className:"ps-h-2 ps-w-2 ps-fill-current"})})}),a]}));Qo.displayName=h.RadioItem.displayName;var Zo=te.forwardRef(({className:e,inset:a,...t},o)=>U(h.Label,{ref:o,className:c("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold",a&&"ps-pl-8",e),...t}));Zo.displayName=h.Label.displayName;var _o=te.forwardRef(({className:e,...a},t)=>U(h.Separator,{ref:t,className:c("ps--mx-1 ps-my-1 ps-h-px ps-bg-muted",e),...a}));_o.displayName=h.Separator.displayName;var Jo=({className:e,...a})=>U("span",{className:c("ps-ml-auto ps-text-xs ps-tracking-widest ps-opacity-60",e),...a});Jo.displayName="DropdownMenuShortcut";import{useMutation as xr,useQueryClient as gr}from"@tanstack/react-query";import{QueryClient as ur,QueryClientProvider as dr}from"@tanstack/react-query";import*as K from"react";import{onlineManager as $o,useQueryClient as jo}from"@tanstack/react-query";var ot=class{#a;#f;#n;#i;#e=!1;#c;#t;#o;#r;#l;#s;#u;#d;constructor(e){let{client:a,queryFlavor:t,version:o,onlineManager:r,buttonPosition:l,position:s,initialIsOpen:u,errorTypes:d,styleNonce:f,shadowDOMTarget:p}=e;this.#a=G(a),this.#n=t,this.#i=o,this.#f=r,this.#c=f,this.#t=p,this.#o=G(l),this.#r=G(s),this.#l=G(u),this.#s=G(d)}setButtonPosition(e){this.#o[1](e)}setPosition(e){this.#r[1](e)}setInitialIsOpen(e){this.#l[1](e)}setErrorTypes(e){this.#s[1](e)}setClient(e){this.#a[1](e)}mount(e){if(this.#e)throw new Error("Devtools is already mounted");let a=ia(()=>{let t=this,[o]=this.#o,[r]=this.#r,[l]=this.#l,[s]=this.#s,[u]=this.#a,d;return this.#u?d=this.#u:(d=na(()=>import("../CPIOZS5X-NALOZFPD.js")),this.#u=d),ca(this.#c,this.#t),da(d,fa({get queryFlavor(){return t.#n},get version(){return t.#i},get onlineManager(){return t.#f},get shadowDOMTarget(){return t.#t}},{get client(){return u()},get buttonPosition(){return o()},get position(){return r()},get initialIsOpen(){return l()},get errorTypes(){return s()}}))},e);this.#e=!0,this.#d=a}unmount(){if(!this.#e)throw new Error("Devtools is not mounted");this.#d?.(),this.#e=!1}},rt=class{#a;#f;#n;#i;#e=!1;#c;#t;#o;#r;#l;#s;#u;#d;#p;constructor(e){let{client:a,queryFlavor:t,version:o,onlineManager:r,buttonPosition:l,position:s,initialIsOpen:u,errorTypes:d,styleNonce:f,shadowDOMTarget:p,onClose:m}=e;this.#a=G(a),this.#n=t,this.#i=o,this.#f=r,this.#c=f,this.#t=p,this.#o=G(l),this.#r=G(s),this.#l=G(u),this.#s=G(d),this.#u=G(m)}setButtonPosition(e){this.#o[1](e)}setPosition(e){this.#r[1](e)}setInitialIsOpen(e){this.#l[1](e)}setErrorTypes(e){this.#s[1](e)}setClient(e){this.#a[1](e)}setOnClose(e){this.#u[1](()=>e)}mount(e){if(this.#e)throw new Error("Devtools is already mounted");let a=ia(()=>{let t=this,[o]=this.#o,[r]=this.#r,[l]=this.#l,[s]=this.#s,[u]=this.#a,[d]=this.#u,f;return this.#d?f=this.#d:(f=na(()=>import("../OKF6E45R-6KC3BLVB.js")),this.#d=f),ca(this.#c,this.#t),da(f,fa({get queryFlavor(){return t.#n},get version(){return t.#i},get onlineManager(){return t.#f},get shadowDOMTarget(){return t.#t}},{get client(){return u()},get buttonPosition(){return o()},get position(){return r()},get initialIsOpen(){return l()},get errorTypes(){return s()},get onClose(){return d()}}))},e);this.#e=!0,this.#p=a}unmount(){if(!this.#e)throw new Error("Devtools is not mounted");this.#p?.(),this.#e=!1}};import{jsx as Yo}from"react/jsx-runtime";function lt(e){let a=jo(e.client),t=K.useRef(null),{buttonPosition:o,position:r,initialIsOpen:l,errorTypes:s,styleNonce:u,shadowDOMTarget:d}=e,[f]=K.useState(new ot({client:a,queryFlavor:"React Query",version:"5",onlineManager:$o,buttonPosition:o,position:r,initialIsOpen:l,errorTypes:s,styleNonce:u,shadowDOMTarget:d}));return K.useEffect(()=>{f.setClient(a)},[a,f]),K.useEffect(()=>{o&&f.setButtonPosition(o)},[o,f]),K.useEffect(()=>{r&&f.setPosition(r)},[r,f]),K.useEffect(()=>{f.setInitialIsOpen(l||!1)},[l,f]),K.useEffect(()=>{f.setErrorTypes(s||[])},[s,f]),K.useEffect(()=>(t.current&&f.mount(t.current),()=>{f.unmount()}),[f]),Yo("div",{dir:"ltr",className:"tsqd-parent-container",ref:t})}import*as oe from"react";import{onlineManager as ar,useQueryClient as tr}from"@tanstack/react-query";import{jsx as or}from"react/jsx-runtime";function st(e){let a=tr(e.client),t=oe.useRef(null),{errorTypes:o,styleNonce:r,shadowDOMTarget:l}=e,[s]=oe.useState(new rt({client:a,queryFlavor:"React Query",version:"5",onlineManager:ar,buttonPosition:"bottom-left",position:"bottom",initialIsOpen:!0,errorTypes:o,styleNonce:r,shadowDOMTarget:l,onClose:e.onClose}));return oe.useEffect(()=>{s.setClient(a)},[a,s]),oe.useEffect(()=>{s.setOnClose(e.onClose??(()=>{}))},[e.onClose,s]),oe.useEffect(()=>{s.setErrorTypes(o||[])},[o,s]),oe.useEffect(()=>(t.current&&s.mount(t.current),()=>{s.unmount()}),[s]),or("div",{style:{height:"500px",...e.style},className:"tsqd-parent-container",ref:t})}var ut=process.env.NODE_ENV!=="development"?function(){return null}:lt,ku=process.env.NODE_ENV!=="development"?function(){return null}:st;import{NuqsAdapter as fr}from"nuqs/adapters/react";import{createContext as nr,useContext as ir,useState as cr}from"react";import{toast as pr}from"sonner";import{Toaster as lr}from"sonner";import{jsx as sr}from"react/jsx-runtime";var dt=({...e})=>sr(lr,{className:"ps-toaster ps-group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e});import{jsx as ta,jsxs as Lr}from"react/jsx-runtime";var mr=new ur,ft=nr(void 0);function nt(e){let{children:a,...t}=e,[o,r]=cr(null),l=e.onError;return l??=s=>pr.error(s.message),Lr(dr,{client:mr,children:[ta(ut,{}),ta(dt,{}),ta(fr,{children:ta(ft.Provider,{value:{...t,activeTable:o,setActiveTable:r,onError:l},children:a})})]})}function W(){let e=ir(ft);if(!e)throw new Error("`useStudio` must be used within a `StudioContext.Provider`");return e}function it(){let{activeTable:e,adapter:a}=W(),t=gr(),{schema:o=null,name:r=null}=e??{};return xr({mutationKey:["schema",o,"table",r,"insert"],async mutationFn(l){let s=l.map(async u=>{let[d,f]=await a.insert({row:u,table:e},{});if(d)throw d;return f});return await Promise.all(s)},onSuccess(l){t.setQueriesData({exact:!1,queryKey:["schema",o,"table",r,"query"]},s=>s==null?s:{...s,rows:[...l.map(({row:u})=>u),...s.rows]})},retry:!1})}import{useQuery as Cr}from"@tanstack/react-query";function ct(e){let{pageIndex:a,pageSize:t,sortOrder:o}=e,{activeTable:r,adapter:l}=W();return Cr({enabled:!!r,gcTime:0,placeholderData:(s,u)=>{let[,d,,f]=u?.queryKey||[];if(!(d!==r?.schema||f!==r?.name))return s},queryFn:async({signal:s})=>{let[u,d]=await l.query({pageIndex:a,pageSize:t,sortOrder:o,table:r},{abortSignal:s});if(u)throw u;return d},queryKey:["schema",r?.schema||null,"table",r?.name||null,"query","sortOrder",o.map(s=>`${s.column}:${s.direction}`).join(",")||"natural","pageIndex",a,"pageSize",t],staleTime:1/0})}import{useMutation as Ir,useQueryClient as hr}from"@tanstack/react-query";function pt(){let{activeTable:e,adapter:a}=W(),t=hr(),o=["schema",e?.schema??null,"table",e?.name??null];return Ir({mutationFn:async r=>{let[l,s]=await a.update(r.details,r.options);if(l)throw l;return s},mutationKey:[...o,"update"],onError(r,l){let{changes:s,row:u}=l.details;ga({getFinderFn(){let d={...u,...s},f=je(d,e.columns);return p=>f.every(([m,x])=>p[m]===x)},queryClient:t,table:e,updaterFn:function(f){return{...f,...Object.keys(s).reduce((p,m)=>({...p,[m]:u[m]}),{})}}})},onMutate(r){let{details:l}=r;ga({getFinderFn(){let{row:s}=l,u=je(s,e.columns);return d=>u.every(([f,p])=>d[f]===p)},queryClient:t,table:e,updaterFn:function(u){return{...u,...l.changes}}})},onSuccess(r,l){ga({getFinderFn(){let{changes:s,row:u}=l.details,d={...u,...s},f=je(d,e.columns);return p=>f.every(([m,x])=>p[m]===x)},queryClient:t,table:e,updaterFn:function(u){let{__ps_updated_at__:d}=u,{row:f}=r;return d!=null&&f.__ps_updated_at__<=d?u:{...u,...f}}})},retry:!1})}function ga(e){let{getFinderFn:a,queryClient:t,table:o,updaterFn:r}=e;t.setQueriesData({exact:!1,queryKey:["schema",o.schema,"table",o.name,"query"]},l=>{let{rows:s=[]}=l||{};if(s.length===0)return l;let u=s.findIndex(a);if(u===-1)return l;let d=r(s[u]);return{...l,rows:[...s.slice(0,u),d,...s.slice(u+1)]}})}import{isObjectType as qr}from"remeda";import{forwardRef as Dr}from"react";import*as le from"react";import{jsx as re}from"react/jsx-runtime";var Ca=le.forwardRef(({className:e,...a},t)=>re("div",{className:"ps-relative ps-w-full ps-overflow-auto ps-flex ps-items-start ps-h-full",children:re("table",{ref:t,className:c("ps-w-full ps-caption-bottom ps-text-sm",e),...a})}));Ca.displayName="Table";var Ia=le.forwardRef(({className:e,...a},t)=>re("thead",{ref:t,className:c(e),...a}));Ia.displayName="TableHeader";var ha=le.forwardRef(({className:e,...a},t)=>re("tbody",{ref:t,className:c("[&_tr:last-child]:ps-border-0",e),...a}));ha.displayName="TableBody";var Sa=le.forwardRef(({className:e,...a},t)=>re("tfoot",{ref:t,className:c("ps-border-t ps-bg-muted/50 ps-font-medium [&>tr]:last:ps-border-b-0",e),...a}));Sa.displayName="TableFooter";var se=le.forwardRef(({className:e,...a},t)=>re("tr",{ref:t,className:c("ps-border-b ps-transition-colors hover:ps-bg-muted/50 data-[state=selected]:ps-bg-muted",e),...a}));se.displayName="TableRow";var oa=le.forwardRef(({className:e,...a},t)=>re("th",{ref:t,className:c("ps-h-10 ps-px-2 ps-text-left ps-align-middle ps-font-medium ps-text-muted-foreground [&:has([role=checkbox])]:ps-pr-0 [&>[role=checkbox]]:ps-translate-y-[2px]",e),...a}));oa.displayName="TableHead";var ue=le.forwardRef(({className:e,...a},t)=>re("td",{ref:t,className:c("ps-p-2 ps-align-middle [&:has([role=checkbox])]:ps-pr-0 [&>[role=checkbox]]:ps-translate-y-[2px]",e),...a}));ue.displayName="TableCell";var Sr=le.forwardRef(({className:e,...a},t)=>re("caption",{ref:t,className:c("ps-mt-4 ps-text-sm ps-text-muted-foreground",e),...a}));Sr.displayName="TableCaption";import{isValidElement as Mr}from"react";import*as S from"@radix-ui/react-context-menu";import*as de from"react";import{jsx as H,jsxs as Pa}from"react/jsx-runtime";var mt=S.Root,Lt=S.Trigger;var wr=de.forwardRef(({className:e,inset:a,children:t,...o},r)=>Pa(S.SubTrigger,{ref:r,className:c("ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-px-2 ps-py-1.5 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[state=open]:ps-bg-accent data-[state=open]:ps-text-accent-foreground",a&&"ps-pl-8",e),...o,children:[t,H(ee,{className:"ps-ml-auto ps-h-4 ps-w-4"})]}));wr.displayName=S.SubTrigger.displayName;var br=de.forwardRef(({className:e,...a},t)=>H(S.SubContent,{ref:t,className:c("ps-z-50 ps-min-w-[8rem] ps-overflow-hidden ps-rounded-md ps-border ps-bg-popover ps-p-1 ps-text-popover-foreground ps-shadow-lg data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-context-menu-content-transform-origin]",e),...a}));br.displayName=S.SubContent.displayName;var wa=de.forwardRef(({className:e,...a},t)=>H(S.Portal,{children:H(S.Content,{ref:t,className:c("ps-z-50 ps-max-h-[--radix-context-menu-content-available-height] ps-min-w-[8rem] ps-overflow-y-auto ps-overflow-x-hidden ps-rounded-md ps-border ps-bg-popover ps-p-1 ps-text-popover-foreground ps-shadow-md data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-context-menu-content-transform-origin]",e),...a})}));wa.displayName=S.Content.displayName;var ba=de.forwardRef(({className:e,inset:a,...t},o)=>H(S.Item,{ref:o,className:c("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-px-2 ps-py-1.5 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",a&&"ps-pl-8",e),...t}));ba.displayName=S.Item.displayName;var Pr=de.forwardRef(({className:e,children:a,checked:t,...o},r)=>Pa(S.CheckboxItem,{ref:r,className:c("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-8 ps-pr-2 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),checked:t,...o,children:[H("span",{className:"ps-absolute ps-left-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:H(S.ItemIndicator,{children:H(he,{className:"ps-h-4 ps-w-4"})})}),a]}));Pr.displayName=S.CheckboxItem.displayName;var yr=de.forwardRef(({className:e,children:a,...t},o)=>Pa(S.RadioItem,{ref:o,className:c("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-8 ps-pr-2 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),...t,children:[H("span",{className:"ps-absolute ps-left-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:H(S.ItemIndicator,{children:H(we,{className:"ps-h-4 ps-w-4 ps-fill-current"})})}),a]}));yr.displayName=S.RadioItem.displayName;var vr=de.forwardRef(({className:e,inset:a,...t},o)=>H(S.Label,{ref:o,className:c("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold ps-text-foreground",a&&"ps-pl-8",e),...t}));vr.displayName=S.Label.displayName;var kr=de.forwardRef(({className:e,...a},t)=>H(S.Separator,{ref:t,className:c("ps--mx-1 ps-my-1 ps-h-px ps-bg-border",e),...a}));kr.displayName=S.Separator.displayName;var Rr=({className:e,...a})=>H("span",{className:c("ps-ml-auto ps-text-xs ps-tracking-widest ps-text-muted-foreground",e),...a});Rr.displayName="ContextMenuShortcut";import{jsx as ya,jsxs as xt}from"react/jsx-runtime";function gt(e){let{children:a}=e;return xt(mt,{children:[ya(Lt,{className:"ps-block ps-w-full ps-p-[var(--studio-cell-spacing)]",children:a}),ya(wa,{children:xt(ba,{onClick:()=>{let t=va(a);navigator.clipboard.writeText(t).catch(o=>{console.error("Failed to copy to clipboard:",o)})},className:"ps-flex ps-items-center ps-gap-2",children:[ya(Oe,{size:12}),"Copy"]})})]})}function va(e){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);if(e==null)return"";if(Mr(e)){let a=e.props;return e.type&&typeof e.type=="function"&&e.type.name==="RevealText"?a.text||"":e.type&&typeof e.type=="function"&&e.type.name==="NullValue"?"NULL":a.children?va(a.children):""}return Array.isArray(e)?e.map(va).join(""):""}import{jsx as Ct}from"react/jsx-runtime";function Le(e){let{children:a,className:t,ref:o,style:r,...l}=e;return Ct(ue,{...l,className:c("ps-p-0 ps-border-r ps-border-b ps-border-table-border ps-bg-table-head last:ps-border-r-0","data-[focus=true]:ps-ring-2 data-[focus=true]:ps-ring-indigo-400 data-[focus=true]:ps-ring-inset","ps-cursor-pointer",t),ref:o,style:r,children:Ct(gt,{children:a})})}import{jsx as It}from"react/jsx-runtime";var ka=Dr((e,a)=>{let{containerProps:t,value:o,...r}=e;return It(Le,{...r,...t,ref:a,children:It("span",{className:"ps-flex w-full",children:String(o)})})});ka.displayName="DateCell";import{forwardRef as Ar}from"react";import{jsx as Tr}from"react/jsx-runtime";var Ra=Ar((e,a)=>{let{containerProps:t,value:o,...r}=e;return Tr(Le,{...r,...t,ref:a,children:JSON.stringify(o,null,2)})});Ra.displayName="JSONCell";import{forwardRef as Br}from"react";import{jsx as ht}from"react/jsx-runtime";var Ma=Br((e,a)=>{let{containerProps:t,...o}=e;return ht(Le,{...o,...t,ref:a,children:ht("code",{className:"ps-text-gray-500",children:"NULL"})})});Ma.displayName="NullCell";import{forwardRef as Fr}from"react";import{jsx as St}from"react/jsx-runtime";var Xe=Fr((e,a)=>{let{containerProps:t,value:o,...r}=e;return St(Le,{...r,...t,ref:a,children:St("div",{children:String(o)})})});Xe.displayName="RawCell";import{jsx as ke}from"react/jsx-runtime";function wt(e,a,t){let o=e.getValue();if(o===null)return ke(Ma,{});let{group:r}=a.datatype;if(r==="string")return ke(Xe,{containerProps:t,value:o});if(r==="datetime")return ke(ka,{containerProps:t,value:o});if(r==="time")return ke(Xe,{containerProps:t,value:o});if(r==="raw")return qr(o)?ke(Ra,{containerProps:t,value:o}):ke(Xe,{containerProps:t,value:o});throw new Error(`Datatype group "${r}" was not handled in '/cell/get-cell.tsx'`)}import*as fe from"@radix-ui/react-popover";import*as N from"react";import{jsx as Ke}from"react/jsx-runtime";var bt=N.createContext(null),Da=({children:e,...a})=>{let[t,o]=N.useState(!1);return Ke(bt.Provider,{value:{open:t,setOpen:o},children:Ke(fe.Root,{open:t,onOpenChange:o,...a,children:e})})};Da.displayName="PopoverCell";var Aa=N.forwardRef(({children:e,onDoubleClick:a,className:t,...o},r)=>{let l=N.useContext(bt),[s,u]=N.useState(!1),d=N.useRef(null);return N.useEffect(()=>{let m=x=>{let k=x.target;d.current&&!d.current.contains(k)&&(console.log("Outside click - removing focus"),u(!1))};return document.addEventListener("click",m),()=>document.removeEventListener("click",m)},[]),Ke(fe.Trigger,{ref:m=>{typeof r=="function"?r(m):r&&(r.current=m),d.current=m},onClick:m=>{m.preventDefault(),console.log("Click handler - setting focus to true"),u(!0)},onDoubleClick:m=>{m.preventDefault(),l?.setOpen(!0),a?.()},"data-focus":s.toString(),className:c("w-full h-full cursor-pointer",t),...o,children:e})});Aa.displayName="PopoverCellTrigger";var Ta=N.forwardRef(({className:e,align:a="center",sideOffset:t=4,...o},r)=>Ke(fe.Portal,{children:Ke(fe.Content,{ref:r,align:a,sideOffset:t,className:c("ps-flex ps-flex-col ps-gap-2 ps-z-50 ps-w-72 ps-rounded-md ps-border ps-bg-popover ps-text-popover-foreground ps-shadow-md ps-outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Ta.displayName=fe.Content.displayName;import{jsx as Pt,jsxs as Or}from"react/jsx-runtime";function yt(e){let{cellComponent:a,inputComponent:t}=e;return Or(Da,{children:[Pt(Aa,{asChild:!0,children:a}),Pt(Ta,{align:"start",alignOffset:0,className:"ps-min-w-(--radix-popover-trigger-width) ps-rounded-none ps-bg-muted ps-p-0 ps-z-30",sideOffset:0,children:t})]})}import{DndContext as $r,MouseSensor as jr,useSensor as Yr,useSensors as el}from"@dnd-kit/core";import{horizontalListSortingStrategy as al,SortableContext as tl,useSortable as ol}from"@dnd-kit/sortable";import{CSS as rl}from"@dnd-kit/utilities";import{getCoreRowModel as ll,useReactTable as sl}from"@tanstack/react-table";import*as ne from"react";import n from"react";function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},xe.apply(null,arguments)}var Ur=e=>{try{let a=localStorage.getItem(e);return typeof a=="string"?JSON.parse(a):void 0}catch{return}};function Hr(e,a){let[t,o]=n.useState();n.useEffect(()=>{let l=Ur(e);o(typeof l>"u"||l===null?typeof a=="function"?a():a:l)},[a,e]);let r=n.useCallback(l=>{o(s=>{let u=l;typeof l=="function"&&(u=l(s));try{localStorage.setItem(e,JSON.stringify(u))}catch{}return u})},[e]);return[t,r]}var _={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",warning:"#ffb200"},Rt=n.createContext(_);function Mt(e){let{theme:a,...t}=e;return n.createElement(Rt.Provider,xe({value:a},t))}function Nr(){return n.useContext(Rt)}function Er(e){let[a,t]=n.useState(()=>{if(typeof window<"u")return window.matchMedia&&window.matchMedia(e).matches});return n.useEffect(()=>{if(typeof window<"u"){if(!window.matchMedia)return;let o=window.matchMedia(e),r=l=>{let{matches:s}=l;return t(s)};return o.addListener(r),()=>{o.removeListener(r)}}},[a,e,t]),a}var zr=typeof window>"u";function Q(e,a,t){return t===void 0&&(t={}),n.forwardRef((o,r)=>{let{style:l,...s}=o,u=Nr(),d=Object.entries(t).reduce((f,p)=>{let[m,x]=p;return Er(m)?{...f,...typeof x=="function"?x(s,u):x}:f},{});return n.createElement(e,{...s,style:{...typeof a=="function"?a(s,u):a,...l,...d},ref:r})})}function Gr(){let e=n.useRef(!1),a=n.useCallback(()=>e.current,[]);return n[zr?"useEffect":"useLayoutEffect"](()=>(e.current=!0,()=>{e.current=!1}),[]),a}var Wr=Q("div",(e,a)=>({fontSize:"clamp(12px, 1.5vw, 14px)",fontFamily:"sans-serif",display:"flex",backgroundColor:a.background,color:a.foreground}),{"(max-width: 700px)":{flexDirection:"column"},"(max-width: 600px)":{fontSize:".9em"}});Q("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(e,a)=>({borderTop:`2px solid ${a.gray}`})});var Vr=Q("button",(e,a)=>({appearance:"none",fontSize:".9em",fontWeight:"bold",background:a.gray,border:"0",borderRadius:".3em",color:"white",padding:".5em",opacity:e.disabled?".5":void 0,cursor:"pointer"}));Q("code",{fontSize:".9em"});Q("input",(e,a)=>({backgroundColor:a.inputBackgroundColor,border:0,borderRadius:".2em",color:a.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}));Q("select",(e,a)=>({display:"inline-block",fontSize:".9em",fontFamily:"sans-serif",fontWeight:"normal",lineHeight:"1.3",padding:".3em 1.5em .3em .5em",height:"auto",border:0,borderRadius:".2em",appearance:"none",WebkitAppearance:"none",backgroundColor:a.inputBackgroundColor,backgroundImage:`url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23444444'><polygon points='0,25 100,25 50,75'/></svg>")`,backgroundRepeat:"no-repeat",backgroundPosition:"right .55em center",backgroundSize:".65em auto, 100%",color:a.inputTextColor}),{"(max-width: 500px)":{display:"none"}});var vt=Q("div",{fontFamily:"Menlo, monospace",fontSize:"0.7rem",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),ra=Q("span",{cursor:"pointer",color:"white"}),Xr=Q("span",(e,a)=>({color:a.danger})),Ba=Q("div",{marginLeft:".1rem",paddingLeft:"1rem",borderLeft:"2px solid rgba(0,0,0,.15)"}),Kr=Q("span",{color:"grey",fontSize:".7rem"}),kt=e=>{let{expanded:a,style:t={},...o}=e;return n.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:`rotate(${a?90:0}deg) ${t.transform||""}`,...t}},"\u25B6")},Qr=e=>{let{handleEntry:a,label:t,value:o,subEntries:r,subEntryPages:l,type:s,expanded:u,toggle:d,pageSize:f,renderer:p}=e,[m,x]=n.useState(void 0),[k,M]=n.useState([]),L=()=>{x(o())};return n.createElement(vt,{key:t},l!=null&&l.length?n.createElement(n.Fragment,null,n.createElement(ra,{onClick:()=>d()},n.createElement(kt,{expanded:u})," ",t," ",n.createElement(Kr,null,String(s).toLowerCase()==="iterable"?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),u?l.length===1?n.createElement(Ba,null,r.map(g=>a(g))):n.createElement(Ba,null,l.map((g,w)=>n.createElement("div",{key:w},n.createElement(vt,null,n.createElement(ra,{onClick:()=>M(b=>b.includes(w)?b.filter(F=>F!==w):[...b,w])},n.createElement(kt,{expanded:u})," [",w*f," ..."," ",w*f+f-1,"]"),k.includes(w)?n.createElement(Ba,null,g.map(b=>a(b))):null)))):null):s==="function"?n.createElement(n.Fragment,null,n.createElement(J,{renderer:p,label:n.createElement("button",{onClick:L},n.createElement(ra,null,t)," \u{1F504}"," "),value:m,defaultExpanded:{}})):n.createElement(n.Fragment,null,n.createElement(ra,null,t,":")," ",n.createElement(Xr,null,JSON.stringify(o,Object.getOwnPropertyNames(Object(o))))))};function J(e){let{value:a,defaultExpanded:t,renderer:o=Qr,pageSize:r=100,depth:l=0,...s}=e,[u,d]=n.useState(t),f=L=>{d(g=>typeof L<"u"?L:!g)},p=[],m=typeof a,x,k=[],M=L=>{let g=p.concat(L.label),w=t===!0?{[L.label]:!0}:t?.[L.label];return{...L,subPath:L,path:g,depth:l+1,defaultExpanded:w}};if(Array.isArray(a)?(m="array",x=a.map((L,g)=>M({label:g,value:L}))):a!==null&&typeof a=="object"&&typeof a[Symbol.iterator]=="function"?(m="Iterable",x=Array.from(a,(L,g)=>M({label:g,value:L}))):typeof a=="function"?m="function":typeof a=="object"&&a!==null&&(m="object",x=Object.entries(a).map(L=>{let[g,w]=L;return M({label:g,value:w})})),x){let L=0;for(;L<x.length;)k.push(x.slice(L,L+r)),L=L+r}return o({handleEntry:L=>n.createElement(J,xe({key:L.label,renderer:o},s,L)),type:m,subEntries:x,subEntryPages:k,depth:l,value:a,path:p,expanded:u,toggle:f,pageSize:r,...s})}function Dt(e){return ne.createElement("svg",xe({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),ne.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},ne.createElement("g",{id:"og-white",transform:"translate(-28.000000, -21.000000)"},ne.createElement("g",{id:"Group-2",transform:"translate(28.000000, 31.000000)"},ne.createElement("g",{id:"Group",transform:"translate(0.000000, 10.000000)"},ne.createElement("path",{d:"M39.7239712,51.3436237 C36.631224,36.362877 35.9675112,24.8727722 37.9666331,16.5293551 C39.1555965,11.5671678 41.3293088,7.51908462 44.6346064,4.59846305 C48.1241394,1.51504777 52.5360327,0.00201216606 57.493257,0.00201216606 C65.6712013,0.00201216606 74.2682602,3.72732143 83.4557246,10.8044264 C87.2031203,13.6910458 91.0924366,17.170411 95.1316515,21.2444746 C95.4531404,20.8310265 95.8165416,20.4410453 96.2214301,20.0806152 C107.64098,9.91497158 117.255245,3.59892716 125.478408,1.16365068 C130.367899,-0.284364005 134.958526,-0.422317978 139.138936,0.983031021 C143.551631,2.46646844 147.06766,5.53294888 149.548314,9.82810912 C153.642288,16.9166735 154.721918,26.2310983 153.195595,37.7320243 C152.573451,42.4199112 151.50985,47.5263831 150.007094,53.0593153 C150.574045,53.1277086 151.142416,53.2532808 151.705041,53.4395297 C166.193932,58.2358678 176.453582,63.3937462 182.665021,69.2882839 C186.360669,72.7953831 188.773972,76.6998434 189.646365,81.0218204 C190.567176,85.5836746 189.669313,90.1593316 187.191548,94.4512967 C183.105211,101.529614 175.591643,107.11221 164.887587,111.534031 C160.589552,113.309539 155.726579,114.917559 150.293259,116.363748 C150.541176,116.92292 150.733521,117.516759 150.862138,118.139758 C153.954886,133.120505 154.618598,144.61061 152.619477,152.954027 C151.430513,157.916214 149.256801,161.964297 145.951503,164.884919 C142.46197,167.968334 138.050077,169.48137 133.092853,169.48137 C124.914908,169.48137 116.31785,165.756061 107.130385,158.678956 C103.343104,155.761613 99.4108655,152.238839 95.3254337,148.108619 C94.9050753,148.765474 94.3889681,149.376011 93.7785699,149.919385 C82.3590198,160.085028 72.744755,166.401073 64.5215915,168.836349 C59.6321009,170.284364 55.0414736,170.422318 50.8610636,169.016969 C46.4483686,167.533532 42.9323404,164.467051 40.4516862,160.171891 C36.3577116,153.083327 35.2780823,143.768902 36.8044053,132.267976 C37.449038,127.410634 38.56762,122.103898 40.1575891,116.339009 C39.5361041,116.276104 38.9120754,116.144816 38.2949591,115.940529 C23.8060684,111.144191 13.5464184,105.986312 7.33497892,100.091775 C3.63933121,96.5846754 1.22602752,92.6802151 0.353635235,88.3582381 C-0.567176333,83.7963839 0.330686581,79.2207269 2.80845236,74.9287618 C6.89478863,67.8504443 14.4083565,62.2678481 25.1124133,57.8460273 C29.5385143,56.0176154 34.5637208,54.366822 40.1939394,52.8874674 C39.9933393,52.3969171 39.8349374,51.8811235 39.7239712,51.3436237 Z",id:"Path",fill:"#002C4B",fillRule:"nonzero",transform:"translate(95.000000, 85.000000) scale(-1, 1) translate(-95.000000, -85.000000) "}),ne.createElement("path",{d:"M91.735,110 L91.735,116 L80.6322051,116 C78.8411286,116 77.1868614,115.041975 76.2954489,113.488483 L74.294,110 L91.735,110 Z M116.181,110 L114.180256,113.488483 C113.288844,115.041975 111.634576,116 109.8435,116 L98.735,116 L98.735,110 L116.181,110 Z M91.735,96 L91.735,103 L70.277,103 L66.26,96 L91.735,96 Z M124.215,96 L120.198,103 L98.735,103 L98.735,96 L124.215,96 Z M91.735,82 L91.735,89 L62.244,89 L61.6632438,87.9884826 C60.7789187,86.4473417 60.7789187,84.5526583 61.6632438,83.0115174 L62.243,82 L91.735,82 Z M128.232,82 L128.812461,83.0115174 C129.696786,84.5526583 129.696786,86.4473417 128.812461,87.9884826 L128.231,89 L98.735,89 L98.735,82 L128.232,82 Z M91.735,68 L91.735,75 L66.26,75 L70.277,68 L91.735,68 Z M120.198,68 L124.215,75 L98.735,75 L98.735,68 L120.198,68 Z M91.735,55 L91.735,61 L74.293,61 L76.2954489,57.5115174 C77.1868614,55.958025 78.8411286,55 80.6322051,55 L91.735,55 Z M109.8435,55 C111.634576,55 113.288844,55.958025 114.180256,57.5115174 L116.182,61 L98.735,61 L98.735,55 L109.8435,55 Z",id:"Polygon-2",fill:"#FFD94C"}),ne.createElement("path",{d:"M54.8601729,98.3577578 C56.1715224,97.6082856 57.8360246,98.0746014 58.5779424,99.3993034 L58.5779424,99.3993034 L59.0525843,100.24352 C62.8563392,106.982993 66.8190116,113.380176 70.9406016,119.435068 C75.8078808,126.585427 81.28184,133.82411 87.3624792,141.151115 C88.3168778,142.30114 88.1849437,144.011176 87.065686,144.997937 L87.065686,144.997937 L86.4542085,145.534625 C66.3465389,163.103314 53.2778188,166.612552 47.2480482,156.062341 C41.3500652,145.742717 43.4844915,126.982888 53.6513274,99.7828526 C53.876818,99.1795821 54.3045861,98.675291 54.8601729,98.3577578 Z M140.534177,119.041504 C141.986131,118.785177 143.375496,119.742138 143.65963,121.194242 L143.65963,121.194242 L143.812815,121.986376 C148.782365,147.995459 145.283348,161 133.315764,161 C121.609745,161 106.708724,149.909007 88.6127018,127.727022 C88.2113495,127.235047 87.9945723,126.617371 88,125.981509 C88.013158,124.480686 89.2357854,123.274651 90.730918,123.287756 L90.730918,123.287756 L91.6846544,123.294531 C99.3056979,123.335994 106.714387,123.071591 113.910723,122.501323 C122.409039,121.82788 131.283523,120.674607 140.534177,119.041504 Z M147.408726,63.8119663 C147.932139,62.4026903 149.508386,61.6634537 150.954581,62.149012 L150.954581,62.149012 L151.742552,62.4154854 C177.583763,71.217922 187.402356,80.8916805 181.198332,91.4367609 C175.129904,101.751366 157.484347,109.260339 128.26166,113.963678 C127.613529,114.067994 126.948643,113.945969 126.382735,113.618843 C125.047025,112.846729 124.602046,111.158214 125.388848,109.847438 L125.388848,109.847438 L125.889328,109.0105 C129.877183,102.31633 133.481358,95.6542621 136.701854,89.0242957 C140.50501,81.1948179 144.073967,72.7907081 147.408726,63.8119663 Z M61.7383398,56.0363218 C62.3864708,55.9320063 63.0513565,56.0540315 63.6172646,56.3811573 C64.9529754,57.153271 65.3979538,58.8417862 64.6111517,60.1525615 L64.6111517,60.1525615 L64.1106718,60.9895001 C60.1228168,67.6836699 56.5186416,74.3457379 53.2981462,80.9757043 C49.49499,88.8051821 45.9260328,97.2092919 42.5912744,106.188034 C42.0678608,107.59731 40.4916142,108.336546 39.045419,107.850988 L39.045419,107.850988 L38.2574475,107.584515 C12.4162372,98.782078 2.59764398,89.1083195 8.80166786,78.5632391 C14.8700957,68.2486335 32.515653,60.7396611 61.7383398,56.0363218 Z M103.545792,24.4653746 C123.653461,6.89668641 136.722181,3.38744778 142.751952,13.9376587 C148.649935,24.2572826 146.515508,43.0171122 136.348673,70.2171474 C136.123182,70.8204179 135.695414,71.324709 135.139827,71.6422422 C133.828478,72.3917144 132.163975,71.9253986 131.422058,70.6006966 L131.422058,70.6006966 L130.947416,69.7564798 C127.143661,63.0170065 123.180988,56.6198239 119.059398,50.564932 C114.192119,43.4145727 108.71816,36.1758903 102.637521,28.8488847 C101.683122,27.6988602 101.815056,25.9888243 102.934314,25.0020629 L102.934314,25.0020629 Z M57.6842361,8 C69.3902551,8 84.2912758,19.0909926 102.387298,41.2729777 C102.788651,41.7649527 103.005428,42.3826288 103,43.0184911 C102.986842,44.5193144 101.764215,45.7253489 100.269082,45.7122445 L100.269082,45.7122445 L99.3153456,45.7054689 C91.6943021,45.6640063 84.2856126,45.9284091 77.0892772,46.4986773 C68.5909612,47.17212 59.7164767,48.325393 50.4658235,49.9584962 C49.0138691,50.2148231 47.6245044,49.2578618 47.3403697,47.805758 L47.3403697,47.805758 L47.1871846,47.0136235 C42.2176347,21.0045412 45.7166519,8 57.6842361,8 Z",id:"Combined-Shape",fill:"#FF4154"}))))))}function At(e){let{initialIsOpen:a,table:t,panelProps:o={},toggleButtonProps:r={},containerElement:l="footer"}=e,s=n.useRef(null),u=n.useRef(null),[d,f]=Hr("reactTableDevtoolsOpen",a),p=Gr(),{style:m={},...x}=o,{style:k={},onClick:M,...L}=r;return p()?n.createElement(l,{ref:s,className:"ReactTableDevtools"},n.createElement(Mt,{theme:_},d?n.createElement(Zr,xe({ref:u},x,{table:t,isOpen:d,setIsOpen:f,style:{maxHeight:"80vh",width:"100%",...m}})):n.createElement("button",xe({type:"button"},L,{"aria-label":"Open React Table Devtools",onClick:g=>{f(!0),M&&M(g)},style:{background:"none",border:0,padding:0,margin:".5rem",display:"inline-flex",fontSize:"1.5em",cursor:"pointer",width:"fit-content",...k}}),n.createElement(Dt,{"aria-hidden":!0})))):null}var Zr=n.forwardRef(function(a,t){let{table:o,isOpen:r=!0,setIsOpen:l,...s}=a;return n.createElement(Mt,{theme:_},n.createElement(Wr,xe({ref:t,className:"ReactTableDevtoolsPanel"},s),n.createElement("style",{dangerouslySetInnerHTML:{__html:`
2
+ .ReactTableDevtoolsPanel * {
3
+ scrollbar-color: ${_.backgroundAlt} ${_.gray};
4
+ }
5
+
6
+ .ReactTableDevtoolsPanel *::-webkit-scrollbar, .ReactTableDevtoolsPanel scrollbar {
7
+ width: 1em;
8
+ height: 1em;
9
+ }
10
+
11
+ .ReactTableDevtoolsPanel *::-webkit-scrollbar-track, .ReactTableDevtoolsPanel scrollbar-track {
12
+ background: ${_.backgroundAlt};
13
+ }
14
+
15
+ .ReactTableDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactTableDevtoolsPanel scrollbar-thumb {
16
+ background: ${_.gray};
17
+ border-radius: .5em;
18
+ border: 3px solid ${_.backgroundAlt};
19
+ }
20
+ `}}),n.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:`1px solid ${_.grayAlt}`,display:"flex",flexDirection:"column"}},n.createElement("div",{style:{padding:".5em",background:_.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},n.createElement(Dt,{"aria-hidden":!0,style:{marginRight:".5em"},onClick:()=>l(!1)}),n.createElement("div",{style:{marginRight:"auto",fontSize:"clamp(.8rem, 2vw, 1.3rem)",fontWeight:"bold"}},"React Table"," ",n.createElement("span",{style:{fontWeight:100}},"Devtools")),n.createElement("div",{style:{display:"flex",flexDirection:"column"}},r?n.createElement(Vr,{type:"button","aria-label":"Close React Table Devtools",onClick:()=>{l(!1)}},"Close"):null)),n.createElement("div",{style:{display:"flex",flexWrap:"wrap",overflowY:"auto",flex:"1"}},n.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},n.createElement(J,{label:"Instance",value:o,defaultExpanded:!1}),n.createElement("div",{style:{height:".5rem"}}),n.createElement(J,{label:"State",value:o.getState(),defaultExpanded:!1}),n.createElement("div",{style:{height:".5rem"}}),n.createElement(J,{label:"Columns",value:o.getAllColumns(),defaultExpanded:!1})),n.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},n.createElement(J,{label:"Core Model",value:o.getCoreRowModel(),defaultExpanded:!1}),n.createElement(J,{label:"Filtered Model",value:o.getFilteredRowModel(),defaultExpanded:!1}),n.createElement(J,{label:"Sorted Model",value:o.getSortedRowModel(),defaultExpanded:!1}),n.createElement(J,{label:"Grouped Model",value:o.getGroupedRowModel(),defaultExpanded:!1}),n.createElement(J,{label:"Expanded Model",value:o.getExpandedRowModel(),defaultExpanded:!1}))))))});import{useEffect as ul,useMemo as Wt,useState as Ha}from"react";import{flexRender as _r}from"@tanstack/react-table";import{Fragment as Fa,jsx as B,jsxs as $}from"react/jsx-runtime";function qa(e){let{header:a}=e;return $("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full ps-h-full ps-flex-0",children:[$("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full",children:[$("div",{className:"ps-flex ps-items-center ps-gap-2 ps-overflow-hidden ps-text-ellipsis ps-font-mono ps-text-xs",children:[a.isPlaceholder?null:B("span",{className:"ps-flex ps-min-w-0",children:B("span",{className:"ps-min-w-0 ps-overflow-hidden ps-text-ellipsis ps-text-foreground/90",children:_r(a.column.columnDef.header,a.getContext())})}),B("span",{className:"ps-overflow-hidden ps-text-ellipsis ps-text-muted-foreground/70 ps-lowercase",children:a.column.columnDef.meta.datatype.name})]}),B("span",{className:"ps-relative ps-gap-1",children:a.column.getCanPin()&&a.column.id!=="select"&&$(ea,{children:[B(aa,{asChild:!0,children:B(O,{variant:"ghost",size:"sm",className:"ps-px-0 ps-h-6 ps-w-6",children:B(Se,{size:12})})}),$(Ve,{children:[a.column.getCanSort()&&B(ve,{onClick:()=>a.column.toggleSorting(),children:B("span",{className:"ps-flex ps-items-center ps-gap-2",children:a.column.getNextSortingOrder()==="desc"?$(Fa,{children:[B(ce,{size:16}),"Sort descending"]}):a.column.getNextSortingOrder()==="asc"?$(Fa,{children:[B(Te,{size:16}),"Sort ascending"]}):$(Fa,{children:[B(Ee,{size:16}),"Cancel sorting"]})})}),B(ve,{onClick:()=>a.column.pin(a.column.getIsPinned()?!1:"left"),children:a.column.getIsPinned()?$("span",{className:"ps-flex ps-items-center ps-gap-2",children:[B(He,{size:16}),"Unpin column"]}):$("span",{className:"ps-flex ps-items-center ps-gap-2",children:[B(Ne,{size:16}),"Pin column"]})})]})]})})]}),a.column.getCanResize()&&B("button",{type:"button",tabIndex:0,onMouseDown:t=>{t.stopPropagation(),a.getResizeHandler()(t)},onTouchStart:t=>{t.stopPropagation(),a.getResizeHandler()(t)},onClick:t=>t.stopPropagation(),onKeyDown:t=>{(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),t.stopPropagation(),a.getResizeHandler()(t))},className:c("ps-absolute ps-right-0 ps-top-0 ps-h-full ps-w-px ps-cursor-col-resize ps-border ps-border-transparent hover:ps-border-table-border"),"aria-label":"Resize column"})]})}import*as Z from"@radix-ui/react-tooltip";import*as Bt from"react";import{jsx as Tt}from"react/jsx-runtime";var Ft=Z.Provider,qt=Z.Root,Ot=Z.Trigger,Oa=Bt.forwardRef(({className:e,sideOffset:a=4,...t},o)=>Tt(Z.Portal,{children:Tt(Z.Content,{ref:o,sideOffset:a,className:c("ps-z-50 ps-overflow-hidden ps-rounded-md ps-bg-primary ps-px-3 ps-py-1.5 ps-text-xs ps-text-primary-foreground ps-animate-in ps-fade-in-0 ps-zoom-in-95 data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=closed]:ps-zoom-out-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-tooltip-content-transform-origin]",e),...t})}));Oa.displayName=Z.Content.displayName;import{jsx as Re,jsxs as Ut}from"react/jsx-runtime";function Ht({column:e}){return e.isInPrimaryKey?Ut("span",{className:"ps-flex ps-flex-row ps-font-medium ps-items-center ps-gap-1",children:[Re(Ft,{delayDuration:300,children:Ut(qt,{children:[Re(Ot,{asChild:!0,children:Re(Ue,{size:12})}),Re(Oa,{children:Re("p",{children:"Primary Key"})})]})}),e.name]}):Re("span",{className:"ps-font-medium ps-truncate",children:e.name})}import{jsx as Nt}from"react/jsx-runtime";function Et({className:e}){return Nt("div",{"data-loading-bar":!0,className:c("ps-h-[2px] ps-w-full ps-overflow-hidden ps-bg-gray-200 ps-z-50",e),children:Nt("div",{className:"ps-animate-indeterminate-bar ps-h-full ps-w-1/3 ps-rounded-r-full ps-bg-purple-600"})})}import*as zt from"react";import{jsx as Jr}from"react/jsx-runtime";var Ua=zt.forwardRef(({className:e,type:a,...t},o)=>Jr("input",{type:a,className:c("ps-flex ps-h-9 ps-w-full ps-rounded-md ps-border ps-border-input ps-bg-transparent ps-px-3 ps-py-1 ps-text-base ps-shadow-sm ps-transition-colors file:ps-border-0 file:ps-bg-transparent file:ps-text-sm file:ps-font-medium file:ps-text-foreground placeholder:ps-text-muted-foreground focus-visible:ps-outline-none focus-visible:ps-ring-1 focus-visible:ps-ring-ring disabled:ps-cursor-not-allowed disabled:ps-opacity-50 md:ps-text-sm",e),ref:o,...t}));Ua.displayName="Input";import{jsx as A,jsxs as la}from"react/jsx-runtime";function Gt(e){let{table:a,variant:t="basic"}=e,{pageIndex:o}=a.getState().pagination,r=a.getPageCount(),l=a.getAllColumns().length;return A(Sa,{className:"ps-sticky ps-bottom-0 ps-border-t-0 w-full ps-z-20 ps-p-0",children:A(se,{className:"ps-p-0 ps-bg-transparent hover:ps-bg-transparent",children:A(ue,{colSpan:l,className:"ps-p-0",children:A("div",{className:"ps-rounded-b-lg ps-overflow-clip",children:A("div",{className:"ps-flex ps-items-center ps-justify-between ps-space-x-2 ps-py-2 ps-px-2 ps-border-t ps-border-table-border ps-backdrop-blur-sm ps-bg-table-head/90",children:t==="basic"?la("div",{className:"ps-flex ps-items-center ps-space-x-2",children:[A(O,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>a.previousPage(),disabled:!a.getCanPreviousPage(),children:"Previous"}),A(O,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>a.nextPage(),disabled:!a.getCanNextPage(),children:"Next"})]}):A("div",{className:"ps-flex ps-items-center ps-space-x-2",children:la("div",{className:"ps-flex ps-items-center ps-space-x-2",children:[A(O,{variant:"outline",onClick:()=>a.setPageIndex(0),disabled:!a.getCanPreviousPage(),children:A(Fe,{className:"ps-w-4 ps-h-4"})}),A(O,{variant:"outline",onClick:()=>a.previousPage(),disabled:!a.getCanPreviousPage(),children:A(Be,{className:"ps-w-4 ps-h-4"})}),la("div",{className:"ps-flex ps-items-center ps-gap-1 ps-text-xs ps-font-medium",children:["Page",A(Ua,{type:"number",min:1,max:r,value:o+1,className:"ps-w-16",onChange:s=>{let u=s.target.value?Number(s.target.value)-1:0;a.setPageIndex(u)}}),la("span",{className:"ps-shrink-0 ps-w-max",children:["of ",r]})]}),A(O,{variant:"outline",onClick:()=>a.nextPage(),disabled:!a.getCanNextPage(),children:A(ee,{className:"ps-w-4 ps-h-4"})}),A(O,{variant:"outline",onClick:()=>a.setPageIndex(r-1),disabled:!a.getCanNextPage(),children:A(qe,{className:"ps-w-4 ps-h-4"})})]})})})})})})})}function be(e){let a=e.getIsPinned(),t=a==="right"&&e.getIsFirstColumn("right");return{className:c("ps-overflow-hidden ps-whitespace-nowrap ps-text-ellipsis",a&&["ps-sticky ps-bg-background ps-z-20",a==="left"?"ps-left-0":"ps-right-0"],!a&&"ps-relative ps-z-10",a&&t&&"ps-shadow-[-1px_0_0_0_hsl(var(--border))]"),style:{width:e.getSize(),left:a==="left"?`${e.getStart("left")}px`:void 0,right:a==="right"?`${e.getAfter("right")}px`:void 0}}}import{Fragment as il,jsx as T,jsxs as sa}from"react/jsx-runtime";var dl=e=>{let{children:a,className:t,header:o,style:r}=e,{attributes:l,listeners:s,transform:u,transition:d,setNodeRef:f,isDragging:p}=ol({id:o.id});return T(oa,{ref:f,...l,...s,style:{cursor:"grab",touchAction:"none",transform:rl.Transform.toString(u),transition:d,...r,"--dragging-width":`${o.getSize()}px`},className:c("ps-group ps-border-r ps-border-b ps-border-table-border last:ps-border-r-0",t,p&&"ps-z-50 ps-w-[var(--dragging-width)]","ps-select-none ps-touch-none ps-sticky ps-top-0 ps-z-20 ps-bg-table-head",o.column.getIsPinned()&&"ps-sticky ps-z-30"),children:T("div",{className:c("ps-w-full",p&&"ps-w-[var(--dragging-width)]"),children:a})})};function Xt(e){let{columns:a,getBeforeRows:t,getCell:o,isLoading:r,isProcessing:l,onPaginationChange:s,onSortingChange:u,pageCount:d,paginationState:f,rows:p,sortingState:m}=e,[x,k]=Ha([]),[M,L]=Ha({left:[],right:[]}),[g,w]=Ha({}),b=Wt(()=>Vt(m),[m]),F=r||l,D=Wt(()=>Object.values(a).sort(nl).map(R=>({header:()=>Ht({column:R}),accessorKey:R.name,meta:R})),[a]);ul(()=>{let R=D.map(z=>z.accessorKey);if(x.length===0){k(R);return}let I=[...x],E=I.filter(z=>!D.some(X=>X.accessorKey===z));E.forEach(z=>{let X=I.indexOf(z);X!==-1&&I.splice(X,1)});let P=R.filter(z=>!I.includes(z));P.length>0&&I.push(...P),(E.length>0||P.length>0)&&k(I)},[D,x]);let ie=Yr(jr,{activationConstraint:{distance:10}}),_e=el(ie),Je=R=>{let{active:I,over:E}=R;if(E&&I.id!==E.id){let P=q.getColumn(I.id),z=q.getColumn(E.id);if(!P||!z)return;let X=P.getIsPinned(),$e=z.getIsPinned();if(X!==$e)return;let Ce=x.indexOf(I.id),De=x.indexOf(E.id);if(Ce===-1||De===-1)return;let Ie=[...x];Ie.splice(Ce,1),Ie.splice(De,0,I.id),k(Ie)}},q=sl({columnResizeMode:"onChange",columns:D,defaultColumn:{size:200,minSize:50,maxSize:500},enableColumnPinning:!0,enableColumnResizing:!0,getCoreRowModel:ll(),onColumnPinningChange:L,onColumnSizingChange:w,data:p,manualPagination:!0,manualSorting:!0,enableSorting:!!(u&&m),onPaginationChange:s,onSortingChange:R=>u?.(I=>(typeof R=="function"&&(R=R(Vt(I))),fl(R))),pageCount:d,state:{columnOrder:x,columnPinning:M,columnSizing:g,pagination:f,sorting:b}});return sa(il,{children:[process.env.NODE_ENV==="production"?null:T(At,{table:q}),sa("div",{"data-studio":"content",className:"ps-flex-1 ps-w-0 ps-h-0 ps-min-w-full ps-flex ps-flex-col ps-relative",children:[T("div",{children:F&&T(Et,{className:"ps-absolute -ps-top-[1px] ps-left-0 ps-right-0"})}),T($r,{sensors:_e,onDragEnd:Je,children:sa(Ca,{className:"ps-min-w-full ps-table-fixed ps-border-separate ps-border-spacing-0",children:[T(Ia,{children:q.getHeaderGroups().map(R=>T(se,{className:c("ps-bg-table-head ps-top-0 ps-left-0 ps-right-0","[&_th]:ps-sticky [&_th]:ps-top-0",q.getLeftLeafHeaders().some(I=>I.column.getIsPinned()==="left")&&`ps-pl-[${q.getLeftLeafHeaders().filter(I=>I.column.getIsPinned()==="left").reduce((I,E)=>I+E.getSize(),0)}px]`),children:T(tl,{items:R.headers.map(I=>I.id),strategy:al,children:R.headers.map(I=>I.column.id==="select"?T(oa,{className:c("ps-sticky ps-top-0",be(I.column).className,I.column.getIsPinned()&&"ps-z-30","ps-px-[var(--studio-cell-spacing)]"),style:be(I.column).style,"data-cell-type":"select",children:T(qa,{header:I})},I.id):T(dl,{header:I,table:q,...be(I.column),children:T(qa,{header:I})},I.id))})},R.id))}),sa(ha,{children:[t?.(q),q.getRowModel().rows?.length?q.getRowModel().rows.map(R=>T(se,{className:c("ps-bg-table-row ps-odd:bg-table-row-odd ps-group [&:last-of-type_td]:ps-border-b-0"),children:R.getVisibleCells().map(I=>o(I,I.column.columnDef.meta,be(I.column)))},R.id)):T(se,{children:T(ue,{colSpan:D.length,className:"ps-h-24 ps-text-center",children:r?"Loading...":"No results."})})]}),!d||d<2?null:T(Gt,{table:q,variant:"numeric"})]})})]})]})}function Vt(e){return e?.map(a=>({id:a.column,desc:a.direction==="desc"}))||[]}function fl(e){return e.map(a=>({column:a.id,direction:a.desc?"desc":"asc"}))}function nl(e,a){return e.isInPrimaryKey&&!a.isInPrimaryKey?-1:!e.isInPrimaryKey&&a.isInPrimaryKey?1:e.name.localeCompare(a.name)}import{isObjectType as Ll}from"remeda";import*as Kt from"react";import{jsx as cl}from"react/jsx-runtime";var Qe=Kt.forwardRef(({className:e,...a},t)=>cl("textarea",{className:c("ps-flex ps-min-h-[60px] ps-w-full ps-rounded-md ps-border ps-border-input ps-bg-transparent ps-px-3 ps-py-2 ps-text-base ps-shadow-sm placeholder:ps-text-muted-foreground focus-visible:ps-outline-none disabled:ps-cursor-not-allowed disabled:ps-opacity-50 md:ps-text-sm",e),ref:t,...a}));Qe.displayName="Textarea";import{jsx as pl}from"react/jsx-runtime";function Qt(e){let{value:a}=e;return pl(Qe,{className:"ps-font-mono ps-border-none ps-shadow-none ps-text-sm md:ps-text-xs focus-visible:ps-ring-0 ps-resize-none",value:JSON.stringify(a,null,2)})}import{jsx as ml}from"react/jsx-runtime";function Zt(e){let{value:a}=e;return ml(Qe,{className:"ps-font-mono ps-border-none ps-shadow-none ps-text-sm md:ps-text-xs focus-visible:ps-ring-0 ps-resize-none",value:String(a)})}import{jsx as _t}from"react/jsx-runtime";function Jt(e,a,t){let o=e.getValue();return Ll(o)?_t(Qt,{onSubmit:t,value:o}):_t(Zt,{onSubmit:t,value:o})}import{useIsMutating as xl}from"@tanstack/react-query";import{useReactTable as gl}from"@tanstack/react-table";import{omit as Cl}from"remeda";import{Fragment as Il,jsx as ua}from"react/jsx-runtime";function $t(e){let{table:a,stagedRows:t,setStagedRows:o}=e,r=!!xl({predicate({options:{mutationKey:u}}){return u?.[4]==="insert"}});function l(u,d){o(f=>{let p=[...f];return p[u]={...p[u],...d},p})}let s=gl({...a.options,enableSorting:!1,onPaginationChange:void 0,onSortingChange:void 0,data:t,state:Cl(a.options.state,["pagination","sorting"])});return ua(Il,{children:s.getRowModel().rows.map(u=>ua(se,{children:u.getVisibleCells().map(d=>ua(ue,{className:c(be(d.column).className,"ps-p-0 ps-border-r ps-border-b ps-border-table-border ps-bg-table-head last:ps-border-r-0","data-[focus=true]:ps-ring-2 data-[focus=true]:ps-ring-indigo-400 data-[focus=true]:ps-ring-inset"),children:ua("input",{className:c("appearance-none ps-w-full ps-rounded-none ps-p-[var(--studio-cell-spacing)] ps-resize-none ps-bg-transparent ps-border-none ps-outline-none focus:ps-ring-2 focus:ps-ring-indigo-400 focus:ps-ring-inset",r&&"ps-opacity-50"),onChange:f=>{l(+u.id,{[d.column.id]:f.target.value})},readOnly:r})},d.id))},u.id))})}import{Fragment as jt,jsx as V,jsxs as Ze}from"react/jsx-runtime";var wl=25;function Yt(e){let a=!!hl(),{activeTable:t,onError:o}=W(),{sortingState:r,setSortingState:l}=Pl(t),{paginationState:s,setPaginationState:u}=bl(t,r),[d,f]=Ea([]),{data:p,isFetching:m}=ct({...s,sortOrder:r}),x=it(),k=pt();if(Na(()=>f([]),[t]),!t)return null;function M(){x.mutate(d,{onError:o,onSuccess(){Sl.success("Rows inserted successfully"),f([])}})}function L(){f(b=>[...b,{}])}function g(){f([])}function w(b,F,D){k.mutate({details:{changes:{[F.name]:b},row:D,table:t},options:{}})}return Ze(jt,{children:[V("div",{className:"ps-bg-studio-header-background ps-flex ps-w-full ps-p-2 ps-py-3 ps-border-b ps-bg-card ps-rounded-t-lg",children:V("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full ps-gap-2",children:V("div",{className:"ps-flex ps-flex-grow ps-justify-between ps-items-center",children:Ze("div",{className:"ps-flex ps-items-center ps-gap-2",children:[Ze(ea,{children:[V(aa,{asChild:!0,children:Ze(O,{variant:"secondary",size:"sm",children:["Insert",V(Se,{size:12})]})}),V(Ve,{align:"start",children:V(ve,{onClick:L,children:"Add new row"})})]}),d.length>0&&Ze(jt,{children:[V(O,{variant:"secondary",size:"sm",onClick:M,children:"Save"}),V(O,{variant:"ghost",size:"sm",onClick:g,children:"Cancel"})]})]})})})}),V(Xt,{columns:t.columns,getBeforeRows:b=>V($t,{table:b,stagedRows:d,setStagedRows:f}),getCell:(b,F,D)=>V(yt,{cellComponent:wt(b,F,D),inputComponent:Jt(b,F,ie=>w(ie,F,b.row.original))},b.id),isLoading:m,isProcessing:a,onPaginationChange:u,onSortingChange:l,pageCount:yl(p?.filteredRowCount??1/0,s.pageSize),paginationState:s,rows:p?.rows??[],sortingState:r})]})}function bl(e,a){let[t,o]=Ea({pageIndex:0,pageSize:wl});return Na(()=>{t.pageIndex>0&&o(r=>({...r,pageIndex:0}))},[e,t.pageSize,a]),{paginationState:t,setPaginationState:o}}function Pl(e){let[a,t]=Ea([]);return Na(()=>{a.length>0&&t([])},[e]),{setSortingState:t,sortingState:a}}function yl(e,a){if(e===1/0)return;let t=Number((BigInt(e)+BigInt(a)-BigInt(1))/BigInt(a));return Number.isSafeInteger(t)?t:Number.MAX_SAFE_INTEGER}import{Slot as kl}from"@radix-ui/react-slot";import{useQuery as vl}from"@tanstack/react-query";var eo=-1;function ao(){let{adapter:e}=W();return vl({initialData:{schemas:{[e.defaultSchema||"db"]:{tables:{}}},timezone:"UTC"},initialDataUpdatedAt:eo,queryFn:async({signal:a})=>{let[t,o]=await e.introspect({abortSignal:a});if(t)throw t;return o},queryKey:["introspection"],staleTime:a=>a.state.dataUpdatedAt===eo?0:1/0})}import{jsx as j,jsxs as Dl}from"react/jsx-runtime";function ge(){let{data:e,isLoading:a}=ao(),{activeTable:t,adapter:o,setActiveTable:r}=W(),l=Object.values(e.schemas[o.defaultSchema||"db"].tables),[s]=l;return s?.schema!==t?.schema&&s?.schema!==t?.name&&r(s||null),j("div",{className:"ps-flex ps-flex-col ps-w-64 ps-gap-4 ps-shrink-0",children:j(ge.Block,{label:"Tables",children:l.length>0?l.map(u=>j(ge.Item,{isActive:t===u,onClick:d=>{d.preventDefault(),t!==u&&r(u)},className:"ps-capitalize ps-py-1 ps-font-mono ps-text-xs ps-text-foreground/60 hover:ps-text-foreground ps-transition-all ps-cursor-pointer data-[active=true]:ps-bg-primary/5 data-[active=true]:ps-foreground data-[active=true]:ps-text-foreground",children:u.name},`${u.schema}-${u.name}`)):a?j(ge.Item,{children:"Loading..."}):j(ge.Item,{children:"No tables found"})})})}var Rl=({className:e,label:a,children:t,...o})=>Dl("div",{className:c("ps-rounded-lg ps-border ps-bg-card ps-text-card-foreground ps-shadow-xs",e),...o,children:[j("div",{className:"ps-pt-4 ps-pb-2 ps-px-4",children:j("h2",{className:"ps-text-sm ps-font-medium",children:a})}),j("nav",{"aria-label":a,className:"ps-flex ps-flex-col ps-gap-px ps-pb-3",children:t})]}),Ml=({className:e,asChild:a=!1,isActive:t,size:o,...r})=>j(a?kl:"button",{"data-sidebar":"menu-button","data-size":o,"data-active":t,className:c("ps-py-1.5 ps-px-4 ps-text-sm ps-font-medium ps-flex ps-gap-2 ps-items-center ps-border ps-border-transparent ps-bg-transparent ps-hover:bg-muted/50",e),...r,children:j("span",{className:"ps-truncate",children:r.children})});ge.Block=Rl;ge.Item=Ml;import{jsx as Me,jsxs as Tl}from"react/jsx-runtime";function Al(e){let{adapter:a,onError:t}=e;return a?Me(nt,{adapter:a,onError:t,children:Me("div",{className:"ps-flex ps-flex-col ps-w-full",children:Tl("div",{className:"ps-flex ps-gap-4 ps-w-full ps-bg-background ps-relative ps-max-h-full",children:[Me(ge,{}),Me("div",{className:"ps-flex ps-w-full ps-flex-col ps-border ps-rounded-lg ps-self-start ps-max-h-full ps-overflow-clip",children:Me(Yt,{})})]})})}):(console.error("No adapter provided to Studio component"),Me("div",{children:"Error: No adapter provided"}))}export{Al as Studio};
21
+ /*! Bundled license information:
22
+
23
+ lucide-react/dist/esm/shared/src/utils.js:
24
+ (**
25
+ * @license lucide-react v0.427.0 - ISC
26
+ *
27
+ * This source code is licensed under the ISC license.
28
+ * See the LICENSE file in the root directory of this source tree.
29
+ *)
30
+
31
+ lucide-react/dist/esm/defaultAttributes.js:
32
+ (**
33
+ * @license lucide-react v0.427.0 - ISC
34
+ *
35
+ * This source code is licensed under the ISC license.
36
+ * See the LICENSE file in the root directory of this source tree.
37
+ *)
38
+
39
+ lucide-react/dist/esm/Icon.js:
40
+ (**
41
+ * @license lucide-react v0.427.0 - ISC
42
+ *
43
+ * This source code is licensed under the ISC license.
44
+ * See the LICENSE file in the root directory of this source tree.
45
+ *)
46
+
47
+ lucide-react/dist/esm/createLucideIcon.js:
48
+ (**
49
+ * @license lucide-react v0.427.0 - ISC
50
+ *
51
+ * This source code is licensed under the ISC license.
52
+ * See the LICENSE file in the root directory of this source tree.
53
+ *)
54
+
55
+ lucide-react/dist/esm/icons/arrow-down-wide-narrow.js:
56
+ (**
57
+ * @license lucide-react v0.427.0 - ISC
58
+ *
59
+ * This source code is licensed under the ISC license.
60
+ * See the LICENSE file in the root directory of this source tree.
61
+ *)
62
+
63
+ lucide-react/dist/esm/icons/arrow-up-wide-narrow.js:
64
+ (**
65
+ * @license lucide-react v0.427.0 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ *)
70
+
71
+ lucide-react/dist/esm/icons/check.js:
72
+ (**
73
+ * @license lucide-react v0.427.0 - ISC
74
+ *
75
+ * This source code is licensed under the ISC license.
76
+ * See the LICENSE file in the root directory of this source tree.
77
+ *)
78
+
79
+ lucide-react/dist/esm/icons/chevron-down.js:
80
+ (**
81
+ * @license lucide-react v0.427.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ *)
86
+
87
+ lucide-react/dist/esm/icons/chevron-left.js:
88
+ (**
89
+ * @license lucide-react v0.427.0 - ISC
90
+ *
91
+ * This source code is licensed under the ISC license.
92
+ * See the LICENSE file in the root directory of this source tree.
93
+ *)
94
+
95
+ lucide-react/dist/esm/icons/chevron-right.js:
96
+ (**
97
+ * @license lucide-react v0.427.0 - ISC
98
+ *
99
+ * This source code is licensed under the ISC license.
100
+ * See the LICENSE file in the root directory of this source tree.
101
+ *)
102
+
103
+ lucide-react/dist/esm/icons/chevrons-left.js:
104
+ (**
105
+ * @license lucide-react v0.427.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ *)
110
+
111
+ lucide-react/dist/esm/icons/chevrons-right.js:
112
+ (**
113
+ * @license lucide-react v0.427.0 - ISC
114
+ *
115
+ * This source code is licensed under the ISC license.
116
+ * See the LICENSE file in the root directory of this source tree.
117
+ *)
118
+
119
+ lucide-react/dist/esm/icons/circle.js:
120
+ (**
121
+ * @license lucide-react v0.427.0 - ISC
122
+ *
123
+ * This source code is licensed under the ISC license.
124
+ * See the LICENSE file in the root directory of this source tree.
125
+ *)
126
+
127
+ lucide-react/dist/esm/icons/copy.js:
128
+ (**
129
+ * @license lucide-react v0.427.0 - ISC
130
+ *
131
+ * This source code is licensed under the ISC license.
132
+ * See the LICENSE file in the root directory of this source tree.
133
+ *)
134
+
135
+ lucide-react/dist/esm/icons/key-round.js:
136
+ (**
137
+ * @license lucide-react v0.427.0 - ISC
138
+ *
139
+ * This source code is licensed under the ISC license.
140
+ * See the LICENSE file in the root directory of this source tree.
141
+ *)
142
+
143
+ lucide-react/dist/esm/icons/pin-off.js:
144
+ (**
145
+ * @license lucide-react v0.427.0 - ISC
146
+ *
147
+ * This source code is licensed under the ISC license.
148
+ * See the LICENSE file in the root directory of this source tree.
149
+ *)
150
+
151
+ lucide-react/dist/esm/icons/pin.js:
152
+ (**
153
+ * @license lucide-react v0.427.0 - ISC
154
+ *
155
+ * This source code is licensed under the ISC license.
156
+ * See the LICENSE file in the root directory of this source tree.
157
+ *)
158
+
159
+ lucide-react/dist/esm/icons/x.js:
160
+ (**
161
+ * @license lucide-react v0.427.0 - ISC
162
+ *
163
+ * This source code is licensed under the ISC license.
164
+ * See the LICENSE file in the root directory of this source tree.
165
+ *)
166
+
167
+ lucide-react/dist/esm/lucide-react.js:
168
+ (**
169
+ * @license lucide-react v0.427.0 - ISC
170
+ *
171
+ * This source code is licensed under the ISC license.
172
+ * See the LICENSE file in the root directory of this source tree.
173
+ *)
174
+
175
+ @tanstack/react-table-devtools/build/lib/index.mjs:
176
+ (**
177
+ * react-table-devtools
178
+ *
179
+ * Copyright (c) TanStack
180
+ *
181
+ * This source code is licensed under the MIT license found in the
182
+ * LICENSE.md file in the root directory of this source tree.
183
+ *
184
+ * @license MIT
185
+ *)
186
+ */
package/package.json CHANGED
@@ -1,39 +1,139 @@
1
1
  {
2
2
  "name": "@prisma/studio-core",
3
- "version": "0.0.0",
3
+ "version": "0.1.0",
4
4
  "description": "Modular Prisma Studio components",
5
- "sideEffects": false,
6
- "main": "./dist/data/index.js",
7
- "types": "./dist/data/index.d.ts",
8
5
  "type": "module",
6
+ "sideEffects": false,
9
7
  "exports": {
10
8
  "./data": {
11
- "types": "./dist/data/index.d.ts",
12
- "import": "./dist/data/index.js",
13
- "default": "./dist/data/index.js"
9
+ "import": {
10
+ "types": "./dist/data/index.d.ts",
11
+ "default": "./dist/data/index.js"
12
+ },
13
+ "require": {
14
+ "types": "./dist/data/index.d.cts",
15
+ "default": "./dist/data/index.cjs"
16
+ }
17
+ },
18
+ "./data/accelerate": {
19
+ "import": {
20
+ "types": "./dist/data/accelerate/index.d.ts",
21
+ "default": "./dist/data/accelerate/index.js"
22
+ },
23
+ "require": {
24
+ "types": "./dist/data/accelerate/index.d.cts",
25
+ "default": "./dist/data/accelerate/index.cjs"
26
+ }
27
+ },
28
+ "./data/bff": {
29
+ "import": {
30
+ "types": "./dist/data/bff/index.d.ts",
31
+ "default": "./dist/data/bff/index.js"
32
+ },
33
+ "require": {
34
+ "types": "./dist/data/bff/index.d.cts",
35
+ "default": "./dist/data/bff/index.cjs"
36
+ }
37
+ },
38
+ "./data/pglite": {
39
+ "import": {
40
+ "types": "./dist/data/pglite/index.d.ts",
41
+ "default": "./dist/data/pglite/index.js"
42
+ },
43
+ "require": {
44
+ "types": "./dist/data/pglite/index.d.cts",
45
+ "default": "./dist/data/pglite/index.cjs"
46
+ }
47
+ },
48
+ "./data/postgres-core": {
49
+ "import": {
50
+ "types": "./dist/data/postgres-core/index.d.ts",
51
+ "default": "./dist/data/postgres-core/index.js"
52
+ },
53
+ "require": {
54
+ "types": "./dist/data/postgres-core/index.d.cts",
55
+ "default": "./dist/data/postgres-core/index.cjs"
56
+ }
14
57
  },
15
58
  "./ui": {
16
- "types": "./dist/ui/index.d.ts",
17
- "import": "./dist/ui/index.js",
18
- "default": "./dist/ui/index.js"
19
- }
20
- },
21
- "scripts": {
22
- "build": "tsup",
23
- "typecheck": "tsc --noEmit",
24
- "lint": "eslint --fix .",
25
- "test": ""
59
+ "import": {
60
+ "types": "./dist/ui/index.d.ts",
61
+ "default": "./dist/ui/index.js"
62
+ },
63
+ "require": {
64
+ "types": "./dist/ui/index.d.cts",
65
+ "default": "./dist/ui/index.cjs"
66
+ }
67
+ },
68
+ "./ui/index.css": "./dist/ui/index.css"
26
69
  },
27
70
  "keywords": [],
28
71
  "author": "",
29
72
  "license": "ISC",
30
- "dependencies": {
73
+ "devDependencies": {
74
+ "@arethetypeswrong/cli": "0.17.4",
75
+ "@electric-sql/pglite": "0.2.17",
76
+ "@prisma/client": "6.5.0",
77
+ "@prisma/generator": "6.6.0-integration-push-xmzqvqxpztks.1",
78
+ "@tanstack/react-query-devtools": "5.72.2",
79
+ "@tanstack/react-table-devtools": "8.21.3",
80
+ "@types/node": "22.3.0",
81
+ "@types/react": "^19.0.12",
82
+ "@types/react-dom": "^19.0.4",
83
+ "autoprefixer": "10.4.21",
84
+ "kysely": "0.27.4",
85
+ "lucide-react": "0.427.0",
86
+ "postcss": "8.4.41",
87
+ "std-env": "3.8.1",
88
+ "tailwind-merge": "2.5.2",
89
+ "tailwindcss": "3.4.17",
90
+ "tailwindcss-animate": "1.0.7",
31
91
  "tsup": "8.0.2",
32
92
  "tsx": "4.17.0",
33
- "typescript": "5.5.4"
93
+ "typescript": "5.5.4",
94
+ "vitest": "3.0.9"
34
95
  },
96
+ "files": [
97
+ "dist"
98
+ ],
35
99
  "peerDependencies": {
100
+ "@prisma/client": "6.5.0",
36
101
  "@types/react": "18.3.3",
37
- "react": "18.3.0-canary-a870b2d54-20240314"
102
+ "react": "18.3.0",
103
+ "react-dom": "18.3.0"
104
+ },
105
+ "dependencies": {
106
+ "@dnd-kit/core": "6.3.1",
107
+ "@dnd-kit/sortable": "10.0.0",
108
+ "@dnd-kit/utilities": "3.2.2",
109
+ "@radix-ui/react-checkbox": "1.1.4",
110
+ "@radix-ui/react-context-menu": "2.2.6",
111
+ "@radix-ui/react-dialog": "1.1.6",
112
+ "@radix-ui/react-dropdown-menu": "2.1.6",
113
+ "@radix-ui/react-popover": "1.1.6",
114
+ "@radix-ui/react-select": "2.1.6",
115
+ "@radix-ui/react-slot": "1.1.2",
116
+ "@radix-ui/react-tooltip": "1.2.4",
117
+ "@tanstack/react-query": "5.72.2",
118
+ "@tanstack/react-table": "8.20.1",
119
+ "class-variance-authority": "0.7.0",
120
+ "clsx": "2.1.1",
121
+ "dayjs": "1.11.13",
122
+ "next-themes": "0.4.6",
123
+ "nuqs": "2.4.1",
124
+ "remeda": "2.21.3",
125
+ "sonner": "2.0.3",
126
+ "zod": "3.24.2"
127
+ },
128
+ "scripts": {
129
+ "build": "tsup",
130
+ "dev": "tsup --watch",
131
+ "check:exports": "attw --pack . --profile node16",
132
+ "typecheck": "tsc",
133
+ "lint": "eslint --fix .",
134
+ "test": "vitest --passWithNoTests",
135
+ "test:data": "vitest --project data",
136
+ "test:ui": "vitest --passWithNoTests --project ui",
137
+ "test:e2e": "vitest --passWithNoTests --project e2e"
38
138
  }
39
- }
139
+ }
package/data/index.ts DELETED
@@ -1 +0,0 @@
1
- export {}
package/tsconfig.json DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.base.json",
3
- "compilerOptions": {
4
- "lib": ["DOM", "DOM.Iterable", "ES2022"]
5
- }
6
- }
package/tsup.config.ts DELETED
@@ -1,11 +0,0 @@
1
- import { defineConfig } from "tsup";
2
-
3
- export default defineConfig({
4
- cjsInterop: true,
5
- clean: true,
6
- dts: true,
7
- entry: ["./data/index.ts", "./ui/index.tsx"],
8
- format: ["esm"],
9
- minify: true,
10
- outDir: "dist",
11
- });
package/ui/index.tsx DELETED
@@ -1 +0,0 @@
1
- export default <>Hello World</>