diff --git a/CHANGELOG.md b/CHANGELOG.md index a4942290f..9a3d405f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 #### Bug Fixes - Fix the random silent failure bug when ibis creates tables. +- Fix the multi-checkbox on frontend ## [0.5.0](https://github.com/superduper-io/superduper/compare/0.5.0...0.4.0]) (2024-Nov-02) diff --git a/superduper/rest/out/404.html b/superduper/rest/out/404.html index 13afbf0b3..94aabd9b0 100644 --- a/superduper/rest/out/404.html +++ b/superduper/rest/out/404.html @@ -1 +1 @@ -Superduper EnterpriseSuperduper Enterprise

404

Page Not Found

Go back home
\ No newline at end of file +Superduper EnterpriseSuperduper Enterprise

404

Page Not Found

Go back home
\ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/1826-f088de321c4609a2.js b/superduper/rest/out/_next/static/chunks/1826-b998ad7b2f0282e2.js similarity index 100% rename from superduper/rest/out/_next/static/chunks/1826-f088de321c4609a2.js rename to superduper/rest/out/_next/static/chunks/1826-b998ad7b2f0282e2.js diff --git a/superduper/rest/out/_next/static/chunks/1959-d42b8b91ebe6b051.js b/superduper/rest/out/_next/static/chunks/1959-d42b8b91ebe6b051.js deleted file mode 100644 index 69abc7aa7..000000000 --- a/superduper/rest/out/_next/static/chunks/1959-d42b8b91ebe6b051.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1959],{21959:function(e,t,i){i.d(t,{Z:function(){return O}});var n=i(27573),r=i(7653),a=i(5772),s=i(13908),o=i(80840),l=i(87285),d=i(70790),c=i(93296),p=i(81695),u=i(56146),x=i(92859),h=i(412),m=i(7109);function f(e){return e.filter(e=>"application"===e.type_id)}function v(){(0,h.v9)(e=>e.environment.environmentLoadedValues);let e=(0,h.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues}),t=(0,p.useSearchParams)().get("application"),i=async i=>{try{c.ZP.loading("Fetching latest data",{id:"fetching",position:"bottom-center"});let t=await s.Z.get(i,{headers:{Accept:"application/json",Authorization:(0,m.Z)(e),superduper_reverse_proxy:"http://localhost:8000"}});return console.log(i,t.data),c.ZP.dismiss("fetching"),t.data}catch(e){c.ZP.dismiss("fetching"),console.error("Error fetching Services API data from /webui/restapi/db/show?application=".concat(t))}},[v,j]=(0,r.useState)(null),[g,y]=(0,r.useState)(null),w=e=>{let t={};return e.forEach((e,i)=>{let n=e.type_id;t[n]||(t[n]={type_id:n,payload:[]}),t[n].payload.push({id:i+1,identifier:e.identifier,type_id:e.type_id,status:"online",timestamp:"Retrieved 1 minute ago"})}),Object.values(t)},{data:b,error:N}=(0,d.ZP)("".concat("".concat("http://localhost:8000","/db/show?application=").concat(t)),i,{refreshInterval:6e4,shouldRetryOnError:!1});(0,r.useEffect)(()=>{b?(j(w(b.filter(e=>"application"!==e.type_id))),y(w(f(b)))):(j(w(f([]))),y(w(f([]))))},[b,N]);let[_,k]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(v&&0===v.length){let e=setTimeout(()=>{k(!0)},1e3);return()=>clearTimeout(e)}k(!1)},[v]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.aG,{children:(0,n.jsxs)(u.Jb,{children:[(0,n.jsx)(u.gN,{children:(0,n.jsx)(u.At,{href:"/webui",children:"Home"})}),(0,n.jsx)(u.bg,{}),(0,n.jsx)(u.gN,{children:(0,n.jsx)(u.At,{href:"/webui/application",children:"Application"})}),(0,n.jsx)(u.bg,{}),(0,n.jsx)(u.gN,{children:(0,n.jsx)(u.AG,{children:t})})]})}),(0,n.jsx)("br",{}),(0,n.jsx)(x.Z,{title:"".concat(t&&t," components"),description:"View all the components that are currently deployed as part of the ".concat(t," application"),buttonText:"Edit ".concat(t&&t),buttonLink:"/webui/add-application?type_id=application&identifier=".concat(t)}),(0,n.jsx)("br",{}),(0,n.jsxs)("div",{children:[v?v.length>0?v.map((e,t)=>(0,n.jsx)(o.Z,{data:e},t)):!_&&(0,n.jsx)(a.Z,{}):(0,n.jsx)(a.Z,{}),_&&(0,n.jsx)(l.Z,{header:"No component found in ".concat(t," application"),description:"Something went wrong. Please try again later.",createDeployment:"hide"})]}),(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),(0,n.jsx)("br",{})]})}var j=i(96764);let g=r.forwardRef(function(e,t){let{title:i,titleId:n,...a}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":n},a),i?r.createElement("title",{id:n},i):null,r.createElement("path",{fillRule:"evenodd",d:"M4.25 5.5a.75.75 0 0 0-.75.75v8.5c0 .414.336.75.75.75h8.5a.75.75 0 0 0 .75-.75v-4a.75.75 0 0 1 1.5 0v4A2.25 2.25 0 0 1 12.75 17h-8.5A2.25 2.25 0 0 1 2 14.75v-8.5A2.25 2.25 0 0 1 4.25 4h5a.75.75 0 0 1 0 1.5h-5Z",clipRule:"evenodd"}),r.createElement("path",{fillRule:"evenodd",d:"M6.194 12.753a.75.75 0 0 0 1.06.053L16.5 4.44v2.81a.75.75 0 0 0 1.5 0v-4.5a.75.75 0 0 0-.75-.75h-4.5a.75.75 0 0 0 0 1.5h2.553l-9.056 8.194a.75.75 0 0 0-.053 1.06Z",clipRule:"evenodd"}))});var y=i(36531);function w(e){let{identifier:t}=e,[i,a]=(0,r.useState)(null);(0,h.v9)(e=>e.environment.environmentLoadedValues);let o=(0,h.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues});return(0,r.useEffect)(()=>{if(t){let e=()=>{console.error("Error fetching application data from /webui/restapi/db/show?type_id=application&identifier=".concat(t))};(async()=>{try{let e=(await s.Z.get("".concat("".concat("http://localhost:8000","/db/show?type_id=application&identifier=").concat(t)),{headers:{Accept:"application/json",Authorization:(0,m.Z)(o),superduper_reverse_proxy:"http://localhost:8000"}})).data.slice(-1)[0];console.log("Latest Version:",e);let i=await s.Z.get("".concat("".concat("http://localhost:8000","/db/show?type_id=application&identifier=").concat(t,"&version=").concat(e)),{headers:{Accept:"application/json",Authorization:(0,m.Z)(o),superduper_reverse_proxy:"http://localhost:8000"}});console.log("JSON DATA",i.data),a(i.data)}catch(i){console.error("Error fetching application data from /webui/restapi/db/show?type_id=application&identifier=".concat(t),i),e()}})()}},[t]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("a",{href:null==i?void 0:i.link,className:"flex gap-x-2",target:"_blank",rel:"noopener noreferrer",children:(0,n.jsxs)(y.z,{variant:"outline",disabled:!(null==i?void 0:i.link),children:["Open",(0,n.jsx)(g,{className:"ml-2 -mr-0.5 h-5 w-5 flex-none text-gray-400","aria-hidden":"true"})]})})})}var b=i(11277),N=i(70694);i(97747),i(98348);var _=i(27496),k=i(80923);i(64520),i(1930);var A=i(46346);let Z={offline:"text-gray-500 bg-gray-100/10",online:"text-green-400 bg-green-400/10",error:"text-rose-400 bg-rose-400/10",pending:"text-yellow-400 bg-yellow-400/10"};function L(e){var t;(0,h.v9)(e=>e.environment.environmentLoadedValues),(0,h.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues});let i=(0,h.I0)(),[a,s]=(0,r.useState)({type_id:"",identifier:"",version:""}),[o,l]=(0,r.useState)(!1),[d,c]=(0,r.useState)(!1),[p,u]=(0,r.useState)(!1),[x,m]=(0,r.useState)("");function f(e){return"application"===e?"Deployed Applications":e.replace(/_/g," ").split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ")}let v=e.data;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(A.x,{className:"max-w-7xl whitespace-nowrap",children:[(0,n.jsxs)("div",{className:" bg-white px-4 py-0 sm:px-6",children:[(0,n.jsx)("div",{className:"mx-auto max-w-7xl pr-4 pt-5 pb-0 sm:pr-6 lg:pr-8",children:(0,n.jsx)("div",{className:"mx-auto flex max-w-2xl items-center justify-between gap-x-8 lg:mx-0 lg:max-w-none",children:(0,n.jsxs)("div",{className:"flex items-center gap-x-4",children:[(0,n.jsx)("div",{className:"bg-black rounded-lg p-2",children:(null==v?void 0:v.type_id)=="model"?(0,n.jsx)(V,{className:"w-6 h-6 text-gray-300"}):(null==v?void 0:v.type_id)=="datatype"?(0,n.jsx)(B,{className:"w-6 h-6 text-gray-300"}):(null==v?void 0:v.type_id)=="listener"?(0,n.jsx)(P,{className:"w-6 h-6 text-gray-300"}):(null==v?void 0:v.type_id)=="metric"?(0,n.jsx)(I,{className:"w-6 h-6 text-gray-300"}):(null==v?void 0:v.type_id)=="serializer"?(0,n.jsx)(C,{className:"w-6 h-6 text-gray-300"}):(null==v?void 0:v.type_id)=="encoder"?(0,n.jsx)(S,{className:"w-6 h-6 text-gray-300"}):(null==v?void 0:v.type_id)=="vector_index"?(0,n.jsx)(M,{className:"w-6 h-6 text-gray-300"}):(0,n.jsx)(E,{className:"w-6 h-6 text-gray-300"})}),(0,n.jsx)("h1",{children:(0,n.jsxs)("div",{className:"text-base font-semibold leading-6 text-gray-900",children:[f(null==v?void 0:v.type_id)," ",(0,n.jsx)(k.Z,{label:"",popoverheader:f(null==v?void 0:v.type_id),popovercontent:(0,n.jsx)("p",{children:"datatype"===(t=null==v?void 0:v.type_id)?"Datatype allows users to create and encode custom datatypes by providing their own serializers.":"listener"===t?'A listener is a class that "deploys" a model to "listen" for incoming data, calculate predictions on this data, and then saves them back to the database.':"vector_index"===t?"A vector_index is the necessary combination of Component instances needed to create end-to-end vector-search functionality.":"stack"===t?"A stack is a way to connect diverse and interoperating sets of functionality.":"application"===t?"An application is a way to create dynamic AI applications easily.":"encoder"===t?"An encoder is a class responsible for converting special data types into bytes and back.":"model"===t?"A model is a class that wraps a classical AI model and additionally provides tools required for pre- and post-processing.":"serializer"===t?"Some component objects require special serialization protocols to become saveable in the superduperdb world.":"metric"===t?"A metric serves the purpose of evaluating the quality of Component instances, particularly Model, Listener, and VectorIndex instances.":'To learn more about this component, click on "See more."'})})]})})]})})}),(0,n.jsxs)("div",{className:" bg-white px-4 py-5 sm:px-6",children:[(0,n.jsx)("div",{className:"-ml-4 -mt-4 flex flex-wrap items-center justify-between sm:flex-nowrap border-b border-gray-200",children:(0,n.jsx)("div",{className:"ml-4 mt-4 flex-shrink-0"})}),(0,n.jsx)("ul",{role:"list",className:"divide-y divide-red/5",children:v.payload.map(e=>{let t=null==e?void 0:e.pending;return(0,n.jsxs)("li",{className:"relative flex items-center space-x-4 py-4 ".concat(t?"opacity-50 pointer-events-none":""),children:[(0,n.jsxs)("div",{className:"min-w-0 flex-auto",children:[(0,n.jsxs)("div",{className:"flex items-center gap-x-3",children:[(0,n.jsx)("div",{className:function(){for(var e=arguments.length,t=Array(e),i=0;i{t||i((0,_.t)(e))},disabled:t,children:["Show More"," ",(0,n.jsx)(j.Z,{className:"ml-2 -mr-0.5 h-5 w-5 flex-none text-gray-400","aria-hidden":"true"})]})}),(0,n.jsxs)(N.ue,{className:"overflow-auto w-[800px] sm:w-[800px] sm:max-w-none",children:[(0,n.jsxs)(N.Tu,{children:[(0,n.jsx)("div",{className:"flex justify-between items-center",children:(0,n.jsx)(N.bC,{children:(0,n.jsxs)("div",{children:[(0,n.jsxs)("h1",{className:"text-lg font-semibold leading-6 text-gray-900",children:[e.type_id,"/",e.identifier]}),(0,n.jsxs)("p",{className:"text-sm text-gray-600",children:["type_id: ",e.type_id,", identifier:"," ",e.identifier]})]})})}),(0,n.jsx)("br",{})]}),(0,n.jsx)("div",{className:"grid gap-4 py-4 overflow-visible",children:(0,n.jsx)(b.Z,{data:e})}),(0,n.jsxs)(N.FF,{children:[(0,n.jsx)("a",{href:"/webui/add-application?type_id=".concat(e.type_id,"&identifier=").concat(e.identifier),children:(0,n.jsxs)(y.z,{className:"px-8 mt-6",variant:"outline",disabled:t,children:["Edit ",e.identifier]})}),(0,n.jsxs)(y.z,{variant:"destructive",className:"px-8 mt-6",onClick:()=>{s({type_id:e.type_id,identifier:e.identifier,version:e.version||""}),l(!0)},disabled:t,children:["Delete ",e.identifier]})]})]})]})]},e.id)})})]})]}),(0,n.jsx)(A.B,{orientation:"horizontal"})]})})}function E(e){return(0,n.jsxs)("svg",{...e,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",children:[(0,n.jsx)("rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2"}),(0,n.jsx)("rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2"}),(0,n.jsx)("line",{x1:"6",x2:"6.01",y1:"6",y2:"6"}),(0,n.jsx)("line",{x1:"6",x2:"6.01",y1:"18",y2:"18"})]})}function S(e){return(0,n.jsxs)("svg",{...e,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",children:[(0,n.jsx)("polyline",{points:"16 18 22 12 16 6"}),(0,n.jsx)("polyline",{points:"8 6 2 12 8 18"})]})}function I(e){return(0,n.jsxs)("svg",{...e,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",children:[(0,n.jsx)("path",{d:"m12 14 4-4"}),(0,n.jsx)("path",{d:"M3.34 19a10 10 0 1 1 17.32 0"})]})}function C(e){return(0,n.jsxs)("svg",{...e,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",children:[(0,n.jsx)("line",{x1:"12",x2:"12",y1:"2",y2:"6"}),(0,n.jsx)("line",{x1:"12",x2:"12",y1:"18",y2:"22"}),(0,n.jsx)("line",{x1:"4.93",x2:"7.76",y1:"4.93",y2:"7.76"}),(0,n.jsx)("line",{x1:"16.24",x2:"19.07",y1:"16.24",y2:"19.07"}),(0,n.jsx)("line",{x1:"2",x2:"6",y1:"12",y2:"12"}),(0,n.jsx)("line",{x1:"18",x2:"22",y1:"12",y2:"12"}),(0,n.jsx)("line",{x1:"4.93",x2:"7.76",y1:"19.07",y2:"16.24"}),(0,n.jsx)("line",{x1:"16.24",x2:"19.07",y1:"7.76",y2:"4.93"})]})}function B(e){return(0,n.jsxs)("svg",{...e,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",children:[(0,n.jsx)("polyline",{points:"4 7 4 4 20 4 20 7"}),(0,n.jsx)("line",{x1:"9",x2:"15",y1:"20",y2:"20"}),(0,n.jsx)("line",{x1:"12",x2:"12",y1:"4",y2:"20"})]})}function M(e){return(0,n.jsxs)("svg",{...e,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",children:[(0,n.jsx)("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),(0,n.jsx)("path",{d:"M3 5V19A9 3 0 0 0 21 19V5"}),(0,n.jsx)("path",{d:"M3 12A9 3 0 0 0 21 12"})]})}function P(e){return(0,n.jsxs)("svg",{...e,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",children:[(0,n.jsx)("path",{d:"M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0"}),(0,n.jsx)("path",{d:"M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4"})]})}function V(e){return(0,n.jsxs)("svg",{...e,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",children:[(0,n.jsx)("path",{d:"M12 8V4H8"}),(0,n.jsx)("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),(0,n.jsx)("path",{d:"M2 14h2"}),(0,n.jsx)("path",{d:"M20 14h2"}),(0,n.jsx)("path",{d:"M15 13v2"}),(0,n.jsx)("path",{d:"M9 13v2"})]})}function z(){(0,h.v9)(e=>e.environment.environmentLoadedValues);let e=(0,h.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues}),t=async t=>{try{c.ZP.loading("Fetching latest data",{id:"fetching",position:"bottom-center"});let t=await s.Z.get("".concat("".concat("http://localhost:8000","/db/show?type_id=application&show_status=true")),{headers:{Accept:"application/json",Authorization:(0,m.Z)(e),superduper_reverse_proxy:"http://localhost:8000"}});return console.log("/db/show?type_id=application&show_status=true API data:",t.data),c.ZP.dismiss("fetching"),t.data}catch(e){c.ZP.dismiss("fetching"),console.error("Error fetching Services API data")}},[i,o]=(0,r.useState)(null),p=e=>{let t={};return e.forEach((e,i)=>{let n="application";t[n]||(t[n]={type_id:n,payload:[]}),t[n].payload.push({id:i+1,identifier:e.identifier,pending:"pending"==e.status,type_id:"application",status:"pending"==e.status?"pending":"online",timestamp:""})}),Object.values(t)},{data:u,error:f}=(0,d.ZP)("".concat("".concat("http://localhost:8000","/db/show")),t,{refreshInterval:6e4,shouldRetryOnError:!1});(0,r.useEffect)(()=>{u?o(p(u)):o(p([]))},[u,f]);let[v,j]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(i&&0===i.length){let e=setTimeout(()=>{j(!0)},1e3);return()=>clearTimeout(e)}j(!1)},[i]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.Z,{title:"Applications",description:"View all your agent applications running, or create a new one.",buttonText:"Add Application",buttonLink:"/webui/add-application"}),(0,n.jsx)("br",{}),(0,n.jsxs)("div",{children:[i?i.length>0?i.map((e,t)=>(0,n.jsx)(L,{data:e},t)):!v&&(0,n.jsx)(a.Z,{}):(0,n.jsx)(a.Z,{}),v&&(0,n.jsx)(l.Z,{header:"No Application Found",description:"Get started by adding a new application.",createDeployment:"hide"})]}),(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),(0,n.jsx)("br",{})]})}var R=i(26716),F=i(45246);let{getReasonPhrase:T}=i(70194);function O(e){let{application:t}=e;(0,h.v9)(e=>e.environment.environmentLoadedValues);let i=(0,h.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues}),r=async e=>{try{return(await s.Z.get(e,{headers:{Accept:"application/json",Authorization:(0,m.Z)(i),superduper_reverse_proxy:"http://localhost:8000"}})).data}catch(e){var t,n;throw{status:(null===(t=e.response)||void 0===t?void 0:t.status)||500,message:(null===(n=e.response)||void 0===n?void 0:n.data)||"An unexpected error occurred"}}},{data:o,error:l}=(0,d.ZP)("".concat("".concat("http://localhost:8000","/health")),r,{refreshInterval:3e4,shouldRetryOnError:!1});if(!o&&!l)return(0,n.jsx)(a.Z,{times:6});if(l){console.error("Error Details:",l);let e=l.status||404,t=T(e)||"Service Unavailable";return 502===e?(0,n.jsx)(R.Z,{showIconPart:!1,showHeadUp:!0}):(0,n.jsx)(F.Z,{header:"REST API",shortMessage:t,status:e,description:"Status: ".concat(e,", Message: ").concat("string"==typeof l.message?l.message:JSON.stringify(l.message))})}return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(n.Fragment,{children:t?(0,n.jsx)(z,{}):(0,n.jsx)(v,{})})})}},56146:function(e,t,i){i.d(t,{AG:function(){return u},At:function(){return p},Jb:function(){return d},aG:function(){return l},bg:function(){return x},gN:function(){return c}});var n=i(27573),r=i(7653),a=i(85688),s=i(8828),o=i(18580);let l=r.forwardRef((e,t)=>{let{...i}=e;return(0,n.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...i})});l.displayName="Breadcrumb";let d=r.forwardRef((e,t)=>{let{className:i,...r}=e;return(0,n.jsx)("ol",{ref:t,className:(0,o.cn)("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",i),...r})});d.displayName="BreadcrumbList";let c=r.forwardRef((e,t)=>{let{className:i,...r}=e;return(0,n.jsx)("li",{ref:t,className:(0,o.cn)("inline-flex items-center gap-1.5",i),...r})});c.displayName="BreadcrumbItem";let p=r.forwardRef((e,t)=>{let{asChild:i,className:r,...a}=e,l=i?s.g7:"a";return(0,n.jsx)(l,{ref:t,className:(0,o.cn)("transition-colors hover:text-foreground",r),...a})});p.displayName="BreadcrumbLink";let u=r.forwardRef((e,t)=>{let{className:i,...r}=e;return(0,n.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:(0,o.cn)("font-normal text-foreground",i),...r})});u.displayName="BreadcrumbPage";let x=e=>{let{children:t,className:i,...r}=e;return(0,n.jsx)("li",{role:"presentation","aria-hidden":"true",className:(0,o.cn)("[&>svg]:size-3.5",i),...r,children:null!=t?t:(0,n.jsx)(a.XCv,{})})};x.displayName="BreadcrumbSeparator"}}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/1959-e2b6837ed2211791.js b/superduper/rest/out/_next/static/chunks/1959-e2b6837ed2211791.js new file mode 100644 index 000000000..ead43f596 --- /dev/null +++ b/superduper/rest/out/_next/static/chunks/1959-e2b6837ed2211791.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1959],{21959:function(e,t,n){n.d(t,{Z:function(){return W}});var i=n(27573),r=n(7653),a=n(5772),s=n(13908),o=n(80840),l=n(87285),d=n(70790),c=n(93296),p=n(81695),u=n(56146),h=n(92859),x=n(412),m=n(7109);function f(e){return e.filter(e=>"application"===e.type_id)}function v(){(0,x.v9)(e=>e.environment.environmentLoadedValues);let e=(0,x.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues}),t=(0,p.useSearchParams)().get("application"),n=async n=>{try{c.ZP.loading("Fetching latest data",{id:"fetching",position:"bottom-center"});let t=await s.Z.get(n,{headers:{Accept:"application/json",Authorization:(0,m.Z)(e),superduper_reverse_proxy:"http://localhost:8000"}});return console.log(n,t.data),c.ZP.dismiss("fetching"),t.data}catch(e){c.ZP.dismiss("fetching"),console.error("Error fetching Services API data from /webui/restapi/db/show?application=".concat(t))}},[v,y]=(0,r.useState)(null),[j,g]=(0,r.useState)(null),w=e=>{let t={};return e.forEach((e,n)=>{let i=e.type_id;t[i]||(t[i]={type_id:i,payload:[]}),t[i].payload.push({id:n+1,identifier:e.identifier,type_id:e.type_id,status:"online",timestamp:"Retrieved 1 minute ago"})}),Object.values(t)},{data:b,error:_}=(0,d.ZP)("".concat("".concat("http://localhost:8000","/db/show?application=").concat(t)),n,{refreshInterval:6e4,shouldRetryOnError:!1});(0,r.useEffect)(()=>{b?(y(w(b.filter(e=>"application"!==e.type_id))),g(w(f(b)))):(y(w(f([]))),g(w(f([]))))},[b,_]);let[N,k]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(v&&0===v.length){let e=setTimeout(()=>{k(!0)},1e3);return()=>clearTimeout(e)}k(!1)},[v]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.aG,{children:(0,i.jsxs)(u.Jb,{children:[(0,i.jsx)(u.gN,{children:(0,i.jsx)(u.At,{href:"/webui",children:"Home"})}),(0,i.jsx)(u.bg,{}),(0,i.jsx)(u.gN,{children:(0,i.jsx)(u.At,{href:"/webui/application",children:"Application"})}),(0,i.jsx)(u.bg,{}),(0,i.jsx)(u.gN,{children:(0,i.jsx)(u.AG,{children:t})})]})}),(0,i.jsx)("br",{}),(0,i.jsx)(h.Z,{title:"".concat(t&&t," components"),description:"View all the components that are currently deployed as part of the ".concat(t," application"),buttonText:"Edit ".concat(t&&t),buttonLink:"/webui/add-application?type_id=application&identifier=".concat(t)}),(0,i.jsx)("br",{}),(0,i.jsxs)("div",{children:[v?v.length>0?v.map((e,t)=>(0,i.jsx)(o.Z,{data:e},t)):!N&&(0,i.jsx)(a.Z,{}):(0,i.jsx)(a.Z,{}),N&&(0,i.jsx)(l.Z,{header:"No component found in ".concat(t," application"),description:"Something went wrong. Please try again later.",createDeployment:"hide"})]}),(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),(0,i.jsx)("br",{})]})}var y=n(96764);let j=r.forwardRef(function(e,t){let{title:n,titleId:i,...a}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},a),n?r.createElement("title",{id:i},n):null,r.createElement("path",{fillRule:"evenodd",d:"M4.25 5.5a.75.75 0 0 0-.75.75v8.5c0 .414.336.75.75.75h8.5a.75.75 0 0 0 .75-.75v-4a.75.75 0 0 1 1.5 0v4A2.25 2.25 0 0 1 12.75 17h-8.5A2.25 2.25 0 0 1 2 14.75v-8.5A2.25 2.25 0 0 1 4.25 4h5a.75.75 0 0 1 0 1.5h-5Z",clipRule:"evenodd"}),r.createElement("path",{fillRule:"evenodd",d:"M6.194 12.753a.75.75 0 0 0 1.06.053L16.5 4.44v2.81a.75.75 0 0 0 1.5 0v-4.5a.75.75 0 0 0-.75-.75h-4.5a.75.75 0 0 0 0 1.5h2.553l-9.056 8.194a.75.75 0 0 0-.053 1.06Z",clipRule:"evenodd"}))});var g=n(36531);function w(e){let{identifier:t}=e,[n,a]=(0,r.useState)(null);(0,x.v9)(e=>e.environment.environmentLoadedValues);let o=(0,x.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues});return(0,r.useEffect)(()=>{if(t){let e=()=>{console.error("Error fetching application data from /webui/restapi/db/show?type_id=application&identifier=".concat(t))};(async()=>{try{let e=(await s.Z.get("".concat("".concat("http://localhost:8000","/db/show?type_id=application&identifier=").concat(t)),{headers:{Accept:"application/json",Authorization:(0,m.Z)(o),superduper_reverse_proxy:"http://localhost:8000"}})).data.slice(-1)[0];console.log("Latest Version:",e);let n=await s.Z.get("".concat("".concat("http://localhost:8000","/db/show?type_id=application&identifier=").concat(t,"&version=").concat(e)),{headers:{Accept:"application/json",Authorization:(0,m.Z)(o),superduper_reverse_proxy:"http://localhost:8000"}});console.log("JSON DATA",n.data),a(n.data)}catch(n){console.error("Error fetching application data from /webui/restapi/db/show?type_id=application&identifier=".concat(t),n),e()}})()}},[t]),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("a",{href:null==n?void 0:n.link,className:"flex gap-x-2",target:"_blank",rel:"noopener noreferrer",children:(0,i.jsxs)(g.z,{variant:"outline",disabled:!(null==n?void 0:n.link),children:["Open",(0,i.jsx)(j,{className:"ml-2 -mr-0.5 h-5 w-5 flex-none text-gray-400","aria-hidden":"true"})]})})})}var b=n(11277),_=n(70694);n(97747),n(98348);var N=n(27496),k=n(80923),A=n(64520),Z=n(1930),L=n(46346);let I={offline:"text-gray-500 bg-gray-100/10",online:"text-green-400 bg-green-400/10",error:"text-rose-400 bg-rose-400/10",pending:"text-yellow-400 bg-yellow-400/10"};function C(e){var t;(0,x.v9)(e=>e.environment.environmentLoadedValues);let n=(0,x.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues}),a=(0,x.I0)(),[o,l]=(0,r.useState)({type_id:"",identifier:"",version:""}),d=()=>{window.location.reload()},[p,u]=(0,r.useState)(!1),[h,f]=(0,r.useState)(!1),[v,j]=(0,r.useState)(!1),[C,R]=(0,r.useState)(""),O=e=>{R(e.target.value)};function D(e){return"application"===e?"Deployed Applications":e.replace(/_/g," ").split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ")}let F=async e=>{try{if((null==e?void 0:e.identifier)!==C){c.ZP.error("Identifier does not match. Type it carefully.",{id:"delete-deployment"});return}f(!0),u(!1),console.log("Deleting component:",e),console.log("Deleting by calling API: /webui/restapi/db/remove?type_id=".concat(e.type_id,"&identifier=").concat(e.identifier));let t=await s.Z.post("".concat("".concat("http://localhost:8000","/db/remove?type_id=").concat(e.type_id,"&identifier=").concat(e.identifier)),{headers:{Accept:"application/json",Authorization:(0,m.Z)(n),superduper_reverse_proxy:"http://localhost:8000"}});console.log("Delete Component API data:",t.data),200===t.status?(f(!1),d(),console.log("Component deleted successfully"),c.ZP.success("Component deleted successfully")):(console.error("Error deleting component:",t.data),c.ZP.error("Error deleting component",{id:"delete-component"}),f(!1),j(!0))}catch(e){console.error("Error deleting component:",e),f(!1),j(!0),c.ZP.error("Error deleting component",{id:"delete-component"})}},W=e.data;return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(L.x,{className:"max-w-7xl whitespace-nowrap",children:[(0,i.jsxs)("div",{className:" bg-white px-4 py-0 sm:px-6",children:[(0,i.jsx)("div",{className:"mx-auto max-w-7xl pr-4 pt-5 pb-0 sm:pr-6 lg:pr-8",children:(0,i.jsx)("div",{className:"mx-auto flex max-w-2xl items-center justify-between gap-x-8 lg:mx-0 lg:max-w-none",children:(0,i.jsxs)("div",{className:"flex items-center gap-x-4",children:[(0,i.jsx)("div",{className:"bg-black rounded-lg p-2",children:(null==W?void 0:W.type_id)=="model"?(0,i.jsx)(M,{className:"w-6 h-6 text-gray-300"}):(null==W?void 0:W.type_id)=="datatype"?(0,i.jsx)(z,{className:"w-6 h-6 text-gray-300"}):(null==W?void 0:W.type_id)=="listener"?(0,i.jsx)(V,{className:"w-6 h-6 text-gray-300"}):(null==W?void 0:W.type_id)=="metric"?(0,i.jsx)(B,{className:"w-6 h-6 text-gray-300"}):(null==W?void 0:W.type_id)=="serializer"?(0,i.jsx)(S,{className:"w-6 h-6 text-gray-300"}):(null==W?void 0:W.type_id)=="encoder"?(0,i.jsx)(P,{className:"w-6 h-6 text-gray-300"}):(null==W?void 0:W.type_id)=="vector_index"?(0,i.jsx)(T,{className:"w-6 h-6 text-gray-300"}):(0,i.jsx)(E,{className:"w-6 h-6 text-gray-300"})}),(0,i.jsx)("h1",{children:(0,i.jsxs)("div",{className:"text-base font-semibold leading-6 text-gray-900",children:[D(null==W?void 0:W.type_id)," ",(0,i.jsx)(k.Z,{label:"",popoverheader:D(null==W?void 0:W.type_id),popovercontent:(0,i.jsx)("p",{children:"datatype"===(t=null==W?void 0:W.type_id)?"Datatype allows users to create and encode custom datatypes by providing their own serializers.":"listener"===t?'A listener is a class that "deploys" a model to "listen" for incoming data, calculate predictions on this data, and then saves them back to the database.':"vector_index"===t?"A vector_index is the necessary combination of Component instances needed to create end-to-end vector-search functionality.":"stack"===t?"A stack is a way to connect diverse and interoperating sets of functionality.":"application"===t?"An application is a way to create dynamic AI applications easily.":"encoder"===t?"An encoder is a class responsible for converting special data types into bytes and back.":"model"===t?"A model is a class that wraps a classical AI model and additionally provides tools required for pre- and post-processing.":"serializer"===t?"Some component objects require special serialization protocols to become saveable in the superduperdb world.":"metric"===t?"A metric serves the purpose of evaluating the quality of Component instances, particularly Model, Listener, and VectorIndex instances.":'To learn more about this component, click on "See more."'})})]})})]})})}),(0,i.jsxs)("div",{className:" bg-white px-4 py-5 sm:px-6",children:[(0,i.jsx)("div",{className:"-ml-4 -mt-4 flex flex-wrap items-center justify-between sm:flex-nowrap border-b border-gray-200",children:(0,i.jsx)("div",{className:"ml-4 mt-4 flex-shrink-0"})}),(0,i.jsx)("ul",{role:"list",className:"divide-y divide-red/5",children:W.payload.map(e=>{let t=null==e?void 0:e.pending;return(0,i.jsxs)("li",{className:"relative flex items-center space-x-4 py-4 ".concat(t?"opacity-50 pointer-events-none":""),children:[(0,i.jsxs)("div",{className:"min-w-0 flex-auto",children:[(0,i.jsxs)("div",{className:"flex items-center gap-x-3",children:[(0,i.jsx)("div",{className:function(){for(var e=arguments.length,t=Array(e),n=0;n{t||a((0,N.t)(e))},disabled:t,children:["Show More"," ",(0,i.jsx)(y.Z,{className:"ml-2 -mr-0.5 h-5 w-5 flex-none text-gray-400","aria-hidden":"true"})]})}),(0,i.jsxs)(_.ue,{className:"overflow-auto w-[800px] sm:w-[800px] sm:max-w-none",children:[(0,i.jsxs)(_.Tu,{children:[(0,i.jsx)("div",{className:"flex justify-between items-center",children:(0,i.jsx)(_.bC,{children:(0,i.jsxs)("div",{children:[(0,i.jsxs)("h1",{className:"text-lg font-semibold leading-6 text-gray-900",children:[e.type_id,"/",e.identifier]}),(0,i.jsxs)("p",{className:"text-sm text-gray-600",children:["type_id: ",e.type_id,", identifier:"," ",e.identifier]})]})})}),(0,i.jsx)("br",{})]}),(0,i.jsx)("div",{className:"grid gap-4 py-4 overflow-visible",children:(0,i.jsx)(b.Z,{data:e})}),(0,i.jsxs)(_.FF,{children:[(0,i.jsx)("a",{href:"/webui/add-application?type_id=".concat(e.type_id,"&identifier=").concat(e.identifier),children:(0,i.jsxs)(g.z,{className:"px-8 mt-6",variant:"outline",disabled:t,children:["Edit ",e.identifier]})}),(0,i.jsxs)(g.z,{variant:"destructive",className:"px-8 mt-6",onClick:()=>{l({type_id:e.type_id,identifier:e.identifier,version:e.version||""}),u(!0)},disabled:t,children:["Delete ",e.identifier]}),(0,i.jsxs)(A.aR,{open:p,onOpenChange:u,children:[(0,i.jsx)(A.vW,{asChild:!0}),(0,i.jsxs)(A._T,{children:[(0,i.jsxs)(A.fY,{children:[(0,i.jsx)(A.f$,{children:"Confirm Deletion"}),(0,i.jsxs)(A.yT,{children:["To confirm deletion, please type the identifier"," ",(0,i.jsx)("strong",{children:o.identifier})," ","below."]})]}),(0,i.jsx)("div",{className:"mt-4",children:(0,i.jsx)(Z.I,{type:"text",placeholder:"Type the identifier here",value:C,onChange:O,className:"w-full"})}),(0,i.jsxs)(A.xo,{children:[(0,i.jsx)(A.le,{onClick:()=>u(!1),children:"Cancel"}),(0,i.jsx)(A.OL,{onClick:()=>{if(o.identifier!==C){c.ZP.error("Identifier does not match. Please type it carefully.");return}u(!1),F(o)},disabled:C!==o.identifier,children:"Delete"})]})]})]})]})]})]})]},e.id)})})]})]}),(0,i.jsx)(L.B,{orientation:"horizontal"})]})})}function E(e){return(0,i.jsxs)("svg",{...e,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",children:[(0,i.jsx)("rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2"}),(0,i.jsx)("rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2"}),(0,i.jsx)("line",{x1:"6",x2:"6.01",y1:"6",y2:"6"}),(0,i.jsx)("line",{x1:"6",x2:"6.01",y1:"18",y2:"18"})]})}function P(e){return(0,i.jsxs)("svg",{...e,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",children:[(0,i.jsx)("polyline",{points:"16 18 22 12 16 6"}),(0,i.jsx)("polyline",{points:"8 6 2 12 8 18"})]})}function B(e){return(0,i.jsxs)("svg",{...e,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",children:[(0,i.jsx)("path",{d:"m12 14 4-4"}),(0,i.jsx)("path",{d:"M3.34 19a10 10 0 1 1 17.32 0"})]})}function S(e){return(0,i.jsxs)("svg",{...e,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",children:[(0,i.jsx)("line",{x1:"12",x2:"12",y1:"2",y2:"6"}),(0,i.jsx)("line",{x1:"12",x2:"12",y1:"18",y2:"22"}),(0,i.jsx)("line",{x1:"4.93",x2:"7.76",y1:"4.93",y2:"7.76"}),(0,i.jsx)("line",{x1:"16.24",x2:"19.07",y1:"16.24",y2:"19.07"}),(0,i.jsx)("line",{x1:"2",x2:"6",y1:"12",y2:"12"}),(0,i.jsx)("line",{x1:"18",x2:"22",y1:"12",y2:"12"}),(0,i.jsx)("line",{x1:"4.93",x2:"7.76",y1:"19.07",y2:"16.24"}),(0,i.jsx)("line",{x1:"16.24",x2:"19.07",y1:"7.76",y2:"4.93"})]})}function z(e){return(0,i.jsxs)("svg",{...e,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",children:[(0,i.jsx)("polyline",{points:"4 7 4 4 20 4 20 7"}),(0,i.jsx)("line",{x1:"9",x2:"15",y1:"20",y2:"20"}),(0,i.jsx)("line",{x1:"12",x2:"12",y1:"4",y2:"20"})]})}function T(e){return(0,i.jsxs)("svg",{...e,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",children:[(0,i.jsx)("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),(0,i.jsx)("path",{d:"M3 5V19A9 3 0 0 0 21 19V5"}),(0,i.jsx)("path",{d:"M3 12A9 3 0 0 0 21 12"})]})}function V(e){return(0,i.jsxs)("svg",{...e,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",children:[(0,i.jsx)("path",{d:"M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0"}),(0,i.jsx)("path",{d:"M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4"})]})}function M(e){return(0,i.jsxs)("svg",{...e,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",children:[(0,i.jsx)("path",{d:"M12 8V4H8"}),(0,i.jsx)("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),(0,i.jsx)("path",{d:"M2 14h2"}),(0,i.jsx)("path",{d:"M20 14h2"}),(0,i.jsx)("path",{d:"M15 13v2"}),(0,i.jsx)("path",{d:"M9 13v2"})]})}var R=n(74859);function O(){(0,x.v9)(e=>e.environment.environmentLoadedValues);let e=(0,x.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues}),t=async t=>{try{c.ZP.loading("Fetching latest data",{id:"fetching",position:"bottom-center"});let t=await s.Z.get("".concat("".concat("http://localhost:8000","/db/show?type_id=application&show_status=true")),{headers:{Accept:"application/json",Authorization:(0,m.Z)(e),superduper_reverse_proxy:"http://localhost:8000"}});return console.log("/db/show?type_id=application&show_status=true API data:",t.data),c.ZP.dismiss("fetching"),t.data}catch(e){c.ZP.dismiss("fetching"),console.error("Error fetching Services API data")}},[n,o]=(0,r.useState)(null),p=e=>{let t={};return e.forEach((e,n)=>{let i="application";t[i]||(t[i]={type_id:i,payload:[]}),t[i].payload.push({id:n+1,identifier:e.identifier,pending:"pending"==e.status,type_id:"application",status:"pending"==e.status?"pending":"online",timestamp:""})}),Object.values(t)},{data:u,error:f}=(0,d.ZP)("".concat("".concat("http://localhost:8000","/db/show")),t,{refreshInterval:6e4,shouldRetryOnError:!1});(0,r.useEffect)(()=>{u?o(p(u)):o(p([]))},[u,f]);let[v,y]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(n&&0===n.length){let e=setTimeout(()=>{y(!0)},1e3);return()=>clearTimeout(e)}y(!1)},[n]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h.Z,{title:R.env.NEXT_PUBLIC_RENAME_APPLICATION||"Applications",description:"View all your agent applications running, or create a new one.",buttonText:"Add Application",buttonLink:"/webui/add-application"}),(0,i.jsx)("br",{}),(0,i.jsxs)("div",{children:[n?n.length>0?n.map((e,t)=>(0,i.jsx)(C,{data:e},t)):!v&&(0,i.jsx)(a.Z,{}):(0,i.jsx)(a.Z,{}),v&&(0,i.jsx)(l.Z,{header:"No Application Found",description:"Get started by adding a new application.",createDeployment:"hide"})]}),(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),(0,i.jsx)("br",{})]})}n(23919),n(86288),n(26716),n(45246);var D=n(74859);let{getReasonPhrase:F}=n(70194);function W(e){let{application:t}=e,n=(0,x.v9)(e=>e.environment.environmentLoadedValues),r=(0,x.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues}),a=(0,x.v9)(e=>e.deploymentName.deploymentNameLoadedValues.name),o=async e=>{try{return(await s.Z.get(e,{headers:{Accept:"application/json",Authorization:(0,m.Z)(r),superduper_reverse_proxy:D.env.NEXT_PUBLIC_API||n.NEXT_PUBLIC_API}})).data}catch(e){var t,i;throw{status:(null===(t=e.response)||void 0===t?void 0:t.status)||500,message:(null===(i=e.response)||void 0===i?void 0:i.data)||"An unexpected error occurred"}}},l=async e=>{try{return(await s.Z.get(e,{headers:{Accept:"application/json",Authorization:(0,m.Z)(r),superduper_reverse_proxy:"http://localhost:8000"}})).data}catch(e){var t,n;throw{status:(null===(t=e.response)||void 0===t?void 0:t.status)||500,message:(null===(n=e.response)||void 0===n?void 0:n.data)||"An unexpected error occurred"}}},{data:c,error:p}=(0,d.ZP)("".concat("".concat(D.env.NEXT_PUBLIC_API,"/deployments/").concat(a)),o,{refreshInterval:3e4,shouldRetryOnError:!1}),{data:u,error:h}=(0,d.ZP)("".concat("".concat("http://localhost:8000","/health")),l,{refreshInterval:3e4,shouldRetryOnError:!1});return(0,i.jsx)(i.Fragment,{children:t?(0,i.jsx)(O,{}):(0,i.jsx)(v,{})})}},56146:function(e,t,n){n.d(t,{AG:function(){return u},At:function(){return p},Jb:function(){return d},aG:function(){return l},bg:function(){return h},gN:function(){return c}});var i=n(27573),r=n(7653),a=n(85688),s=n(8828),o=n(18580);let l=r.forwardRef((e,t)=>{let{...n}=e;return(0,i.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...n})});l.displayName="Breadcrumb";let d=r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,i.jsx)("ol",{ref:t,className:(0,o.cn)("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",n),...r})});d.displayName="BreadcrumbList";let c=r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,i.jsx)("li",{ref:t,className:(0,o.cn)("inline-flex items-center gap-1.5",n),...r})});c.displayName="BreadcrumbItem";let p=r.forwardRef((e,t)=>{let{asChild:n,className:r,...a}=e,l=n?s.g7:"a";return(0,i.jsx)(l,{ref:t,className:(0,o.cn)("transition-colors hover:text-foreground",r),...a})});p.displayName="BreadcrumbLink";let u=r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,i.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:(0,o.cn)("font-normal text-foreground",n),...r})});u.displayName="BreadcrumbPage";let h=e=>{let{children:t,className:n,...r}=e;return(0,i.jsx)("li",{role:"presentation","aria-hidden":"true",className:(0,o.cn)("[&>svg]:size-3.5",n),...r,children:null!=t?t:(0,i.jsx)(a.XCv,{})})};h.displayName="BreadcrumbSeparator"},23919:function(e,t,n){n.d(t,{Z:function(){return i}});let i=(0,n(84313).Z)("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])}}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/2895-736a43c8e9b46697.js b/superduper/rest/out/_next/static/chunks/2895-fbf25d0fdec94cd1.js similarity index 100% rename from superduper/rest/out/_next/static/chunks/2895-736a43c8e9b46697.js rename to superduper/rest/out/_next/static/chunks/2895-fbf25d0fdec94cd1.js diff --git a/superduper/rest/out/_next/static/chunks/3696-705cc7f6fab9ebd6.js b/superduper/rest/out/_next/static/chunks/3696-fb046e68040b140e.js similarity index 97% rename from superduper/rest/out/_next/static/chunks/3696-705cc7f6fab9ebd6.js rename to superduper/rest/out/_next/static/chunks/3696-fb046e68040b140e.js index 2270c8f4c..fa2ab31ae 100644 --- a/superduper/rest/out/_next/static/chunks/3696-705cc7f6fab9ebd6.js +++ b/superduper/rest/out/_next/static/chunks/3696-fb046e68040b140e.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3696],{36531:function(e,t,n){n.d(t,{d:function(){return l},z:function(){return s}});var a=n(27573),o=n(7653),r=n(8828),u=n(85145),d=n(18580);let l=(0,u.j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),s=o.forwardRef((e,t)=>{let{className:n,variant:o,size:u,asChild:s=!1,...i}=e,c=s?r.g7:"button";return(0,a.jsx)(c,{className:(0,d.cn)(l({variant:o,size:u,className:n})),ref:t,...i})});s.displayName="Button"},58108:function(e,t,n){n.d(t,{E_:function(){return r},a6:function(){return a},nU:function(){return u},tL:function(){return o}});let a="chartsLoadedValues",o="chartsUniqueLabels",r="chartsUpdatedValues",u="chartsResetValues"},15909:function(e,t,n){n.d(t,{j:function(){return a}});let a="deploymentNameLoadedValues"},49904:function(e,t,n){n.d(t,{s:function(){return a}});let a="deploymentLoadedValues"},44195:function(e,t,n){n.d(t,{m:function(){return a},o:function(){return o}});let a="deploymentAPILoadedValues",o="deploymentAPIResult"},82869:function(e,t,n){n.d(t,{I:function(){return a}});let a="extraEnvVars"},68321:function(e,t,n){n.d(t,{V:function(){return r}});var a=n(59625);let o={},r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.qJ:return{...e,nodeLoadedValues:t.payload};case a.Ou:return{...e,nodeUniqueLabels:t.payload};case a.kY:return{...e,nodeUpdatedValues:t.payload};case a.U5:return{...e,nodeResetValues:t.payload};default:return e}}},59625:function(e,t,n){n.d(t,{Ou:function(){return o},U5:function(){return u},kY:function(){return r},qJ:function(){return a}});let a="nodeLoadedValues",o="nodeUniqueLabels",r="nodeUpdatedValues",u="nodeResetValues"},55236:function(e,t,n){n.d(t,{V:function(){return a}});let a="queryResultLoadedValues"},11952:function(e,t,n){n.d(t,{e:function(){return a}});let a="secrets"},8129:function(e,t,n){n.d(t,{G:function(){return a}});let a="showComponent"},24017:function(e,t,n){n.d(t,{EU:function(){return d},Hi:function(){return u},Qk:function(){return s},q7:function(){return c},v$:function(){return l},vW:function(){return i}});var a=n(53363),o=n(45696),r=n.n(o);let u=e=>({type:a.k0,payload:e}),d=e=>({type:a.pp,payload:function(e){let t={};for(let n in e)for(let a in t[n]={},e[n]){let o=e[n][a];for(let e in t[n][a]=[],o){let r=o[e],u={name:e};"object"==typeof r&&null!==r?Object.assign(u,r):u.default=r,t[n][a].push(u)}}return t}(function e(t){if("object"==typeof t&&null!==t)for(let n in t)"_path"===n?delete t[n]:e(t[n]);return t}(r()(e)))}),l=e=>({type:a.vt,payload:e}),s=(e,t)=>({type:a.kD,payload:{index:e,stackUpdateByIndex:t}}),i=e=>({type:a.qX,payload:e}),c=e=>({type:a.$H,payload:function(e){if(!e||"object"!=typeof e||Array.isArray(e)||null===e)return e;let{_variables:t,...n}=e;return t?{_variables:t,...n}:n}(r()(e))})},53363:function(e,t,n){n.d(t,{$H:function(){return d},k0:function(){return a},kD:function(){return r},pL:function(){return l},pp:function(){return o},qX:function(){return u},vt:function(){return s}});let a="stackLoadedValues",o="stackSpecLoadedValues",r="stackUpdateByIndex",u="stackRawUpdateByIndex",d="stackRawUpdateFinal",l="stackRawUpdateFinalDict",s="stackSelectedTemplate"},30479:function(e,t,n){n.d(t,{Tj:function(){return a},bk:function(){return r},tX:function(){return o}});let a="uploadFilesLoadedValues",o="uploadFilesLoadedValuesSchema",r="uploadFilesLoadedValuesComponent"},65454:function(e,t,n){n.d(t,{s:function(){return a}});let a="userEnv"},39e3:function(e,t,n){n.d(t,{v:function(){return o}});var a=n(16580);let o=e=>t=>t({type:a.C,payload:e})},16580:function(e,t,n){n.d(t,{C:function(){return a}});let a="userInfo"},88280:function(e,t,n){n.d(t,{Z:function(){return T}});var a=n(27573),o=n(412),r=n(10215),u=n(8965),d=n(75077);let l=(0,n(49260).Z)("local");var s=n(16580);let i={userInfoLoadedValues:{token:"",email:""}};var c=n(68321),p=n(58108);let f={};var y=n(49904);let v={deploymentLoadedValues:{databackendType:"deployDatabase"}};var h=n(44195);let m={};var g=n(15909);let V={deploymentNameLoadedValues:{name:"superduper"}},L={forceDeployLoadedValues:{force:!0}};var k=n(30479);let b={uploadFilesLoadedValues:[],uploadFilesLoadedValuesSchema:[]};n(24017);var w=n(53363);let x={stackUpdateByIndex:[{componentType:""}],stackSpecLoadedValues:{},stackLoadedValues:{},stackSelectedTemplate:null,submittedStack:{}};var U=n(55236);let I={};var j=n(8129);let q={showComponentLoadedValues:{type_id:"",identifier:"",version:"",payload:""}},R={environmentLoadedValues:{}};var C=n(82869);let E=[];var F=n(11952);let S=[];var D=n(65454);let N={userEnvLoadedValues:{image:""}},A=(0,r.UY)({userEnv:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N,t=arguments.length>1?arguments[1]:void 0;return t.type===D.s?{...e,userEnvLoadedValues:t.payload}:e},environment:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R,t=arguments.length>1?arguments[1]:void 0;return"environmentLoadedValues"===t.type?{...e,environmentLoadedValues:t.payload}:e},extraEnvVars:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E,t=arguments.length>1?arguments[1]:void 0;return t.type===C.I?t.payload:e},secrets:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S,t=arguments.length>1?arguments[1]:void 0;return t.type===F.e?t.payload:e},stack:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case w.k0:return{...e,stackLoadedValues:t.payload};case w.pp:return{...e,stackSpecLoadedValues:t.payload};case w.qX:return{...e,stackUpdateByIndex:t.payload};case w.kD:let{index:n,stackUpdateByIndex:a}=t.payload;return{...e,stackUpdateByIndex:e.stackUpdateByIndex.map((e,t)=>t===n?a:e)};case w.$H:case w.pL:return{...e,submittedStack:t.payload};case w.vt:return{...e,stackSelectedTemplate:t.payload};default:return e}},userInfo:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1?arguments[1]:void 0;return t.type===s.C?{...e,userInfoLoadedValues:t.payload}:e},deploymentName:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:V,t=arguments.length>1?arguments[1]:void 0;return t.type===g.j?{...e,deploymentNameLoadedValues:t.payload}:e},queryResult:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I,t=arguments.length>1?arguments[1]:void 0;return t.type===U.V?{...e,queryResultLoadedValues:t.payload}:e},nodegroups:c.V,chartsgroups:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case p.a6:return{...e,chartsLoadedValues:t.payload};case p.tL:return{...e,chartsUniqueLabels:t.payload};case p.E_:return{...e,chartsUpdatedValues:t.payload};case p.nU:return{...e,chartsResetValues:t.payload};default:return e}},deployment:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0;return t.type===y.s?{...e,deploymentLoadedValues:t.payload}:e},deploymentAPI:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case h.m:return{...e,deploymentAPILoadedValues:t.payload};case h.o:return{...e,deploymentAPIResult:t.payload};default:return e}},forceDeploy:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,t=arguments.length>1?arguments[1]:void 0;return"forceDeployLoadedValues"===t.type?{...e,forceDeployLoadedValues:t.payload}:e},uploadFiles:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case k.Tj:return{...e,uploadFilesLoadedValues:t.payload};case k.tX:return{...e,uploadFilesLoadedValuesSchema:t.payload};case k.bk:return{...e,uploadFilesLoadedValuesComponent:t.payload};default:return e}},showComponent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q,t=arguments.length>1?arguments[1]:void 0;return t.type===j.G?{...e,showComponentLoadedValues:t.payload}:e}}),B=(0,d.OJ)({key:"root",storage:l,whitelist:["userInfo","deploymentName","environment"]},A),_=(0,r.jB)(B,{},(e=>{{let{composeWithDevTools:t}=n(20374);return t({trace:!1})((0,r.md)(...e))}})([u.I]));function T(e){let{children:t}=e;return(0,a.jsx)(o.zt,{store:_,children:t})}(0,d.p5)(_)},18580:function(e,t,n){n.d(t,{cn:function(){return r}});var a=n(10607),o=n(25579);let r=function(){for(var e=arguments.length,t=Array(e),n=0;n{let{className:n,variant:o,size:u,asChild:s=!1,...i}=e,c=s?r.g7:"button";return(0,a.jsx)(c,{className:(0,d.cn)(l({variant:o,size:u,className:n})),ref:t,...i})});s.displayName="Button"},58108:function(e,t,n){n.d(t,{E_:function(){return r},a6:function(){return a},nU:function(){return u},tL:function(){return o}});let a="chartsLoadedValues",o="chartsUniqueLabels",r="chartsUpdatedValues",u="chartsResetValues"},15909:function(e,t,n){n.d(t,{j:function(){return a}});let a="deploymentNameLoadedValues"},44195:function(e,t,n){n.d(t,{m:function(){return a},o:function(){return o}});let a="deploymentAPILoadedValues",o="deploymentAPIResult"},49904:function(e,t,n){n.d(t,{s:function(){return a}});let a="deploymentLoadedValues"},82869:function(e,t,n){n.d(t,{I:function(){return a}});let a="extraEnvVars"},68321:function(e,t,n){n.d(t,{V:function(){return r}});var a=n(59625);let o={},r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.qJ:return{...e,nodeLoadedValues:t.payload};case a.Ou:return{...e,nodeUniqueLabels:t.payload};case a.kY:return{...e,nodeUpdatedValues:t.payload};case a.U5:return{...e,nodeResetValues:t.payload};default:return e}}},59625:function(e,t,n){n.d(t,{Ou:function(){return o},U5:function(){return u},kY:function(){return r},qJ:function(){return a}});let a="nodeLoadedValues",o="nodeUniqueLabels",r="nodeUpdatedValues",u="nodeResetValues"},55236:function(e,t,n){n.d(t,{V:function(){return a}});let a="queryResultLoadedValues"},11952:function(e,t,n){n.d(t,{e:function(){return a}});let a="secrets"},8129:function(e,t,n){n.d(t,{G:function(){return a}});let a="showComponent"},24017:function(e,t,n){n.d(t,{EU:function(){return d},Hi:function(){return u},Qk:function(){return s},q7:function(){return c},v$:function(){return l},vW:function(){return i}});var a=n(53363),o=n(45696),r=n.n(o);let u=e=>({type:a.k0,payload:e}),d=e=>({type:a.pp,payload:function(e){let t={};for(let n in e)for(let a in t[n]={},e[n]){let o=e[n][a];for(let e in t[n][a]=[],o){let r=o[e],u={name:e};"object"==typeof r&&null!==r?Object.assign(u,r):u.default=r,t[n][a].push(u)}}return t}(function e(t){if("object"==typeof t&&null!==t)for(let n in t)"_path"===n?delete t[n]:e(t[n]);return t}(r()(e)))}),l=e=>({type:a.vt,payload:e}),s=(e,t)=>({type:a.kD,payload:{index:e,stackUpdateByIndex:t}}),i=e=>({type:a.qX,payload:e}),c=e=>({type:a.$H,payload:function(e){if(!e||"object"!=typeof e||Array.isArray(e)||null===e)return e;let{_variables:t,...n}=e;return t?{_variables:t,...n}:n}(r()(e))})},53363:function(e,t,n){n.d(t,{$H:function(){return d},k0:function(){return a},kD:function(){return r},pL:function(){return l},pp:function(){return o},qX:function(){return u},vt:function(){return s}});let a="stackLoadedValues",o="stackSpecLoadedValues",r="stackUpdateByIndex",u="stackRawUpdateByIndex",d="stackRawUpdateFinal",l="stackRawUpdateFinalDict",s="stackSelectedTemplate"},30479:function(e,t,n){n.d(t,{Tj:function(){return a},bk:function(){return r},tX:function(){return o}});let a="uploadFilesLoadedValues",o="uploadFilesLoadedValuesSchema",r="uploadFilesLoadedValuesComponent"},65454:function(e,t,n){n.d(t,{s:function(){return a}});let a="userEnv"},39e3:function(e,t,n){n.d(t,{v:function(){return o}});var a=n(16580);let o=e=>t=>t({type:a.C,payload:e})},16580:function(e,t,n){n.d(t,{C:function(){return a}});let a="userInfo"},88280:function(e,t,n){n.d(t,{Z:function(){return T}});var a=n(27573),o=n(412),r=n(10215),u=n(8965),d=n(75077);let l=(0,n(49260).Z)("local");var s=n(16580);let i={userInfoLoadedValues:{token:"",email:""}};var c=n(68321),p=n(58108);let f={};var y=n(49904);let v={deploymentLoadedValues:{databackendType:"deployDatabase"}};var h=n(44195);let m={};var g=n(15909);let V={deploymentNameLoadedValues:{name:"superduper"}},L={forceDeployLoadedValues:{force:!0}};var k=n(30479);let b={uploadFilesLoadedValues:[],uploadFilesLoadedValuesSchema:[]};n(24017);var w=n(53363);let x={stackUpdateByIndex:[{componentType:""}],stackSpecLoadedValues:{},stackLoadedValues:{},stackSelectedTemplate:null,submittedStack:{}};var U=n(55236);let I={};var j=n(8129);let q={showComponentLoadedValues:{type_id:"",identifier:"",version:"",payload:""}},R={environmentLoadedValues:{}};var C=n(82869);let E=[];var F=n(11952);let S=[];var D=n(65454);let N={userEnvLoadedValues:{image:""}},A=(0,r.UY)({userEnv:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N,t=arguments.length>1?arguments[1]:void 0;return t.type===D.s?{...e,userEnvLoadedValues:t.payload}:e},environment:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R,t=arguments.length>1?arguments[1]:void 0;return"environmentLoadedValues"===t.type?{...e,environmentLoadedValues:t.payload}:e},extraEnvVars:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E,t=arguments.length>1?arguments[1]:void 0;return t.type===C.I?t.payload:e},secrets:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S,t=arguments.length>1?arguments[1]:void 0;return t.type===F.e?t.payload:e},stack:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case w.k0:return{...e,stackLoadedValues:t.payload};case w.pp:return{...e,stackSpecLoadedValues:t.payload};case w.qX:return{...e,stackUpdateByIndex:t.payload};case w.kD:let{index:n,stackUpdateByIndex:a}=t.payload;return{...e,stackUpdateByIndex:e.stackUpdateByIndex.map((e,t)=>t===n?a:e)};case w.$H:case w.pL:return{...e,submittedStack:t.payload};case w.vt:return{...e,stackSelectedTemplate:t.payload};default:return e}},userInfo:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1?arguments[1]:void 0;return t.type===s.C?{...e,userInfoLoadedValues:t.payload}:e},deploymentName:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:V,t=arguments.length>1?arguments[1]:void 0;return t.type===g.j?{...e,deploymentNameLoadedValues:t.payload}:e},queryResult:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I,t=arguments.length>1?arguments[1]:void 0;return t.type===U.V?{...e,queryResultLoadedValues:t.payload}:e},nodegroups:c.V,chartsgroups:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case p.a6:return{...e,chartsLoadedValues:t.payload};case p.tL:return{...e,chartsUniqueLabels:t.payload};case p.E_:return{...e,chartsUpdatedValues:t.payload};case p.nU:return{...e,chartsResetValues:t.payload};default:return e}},deployment:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0;return t.type===y.s?{...e,deploymentLoadedValues:t.payload}:e},deploymentAPI:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case h.m:return{...e,deploymentAPILoadedValues:t.payload};case h.o:return{...e,deploymentAPIResult:t.payload};default:return e}},forceDeploy:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,t=arguments.length>1?arguments[1]:void 0;return"forceDeployLoadedValues"===t.type?{...e,forceDeployLoadedValues:t.payload}:e},uploadFiles:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case k.Tj:return{...e,uploadFilesLoadedValues:t.payload};case k.tX:return{...e,uploadFilesLoadedValuesSchema:t.payload};case k.bk:return{...e,uploadFilesLoadedValuesComponent:t.payload};default:return e}},showComponent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q,t=arguments.length>1?arguments[1]:void 0;return t.type===j.G?{...e,showComponentLoadedValues:t.payload}:e}}),B=(0,d.OJ)({key:"root",storage:l,whitelist:["userInfo","deploymentName","environment"]},A),_=(0,r.jB)(B,{},(e=>{{let{composeWithDevTools:t}=n(20374);return t({trace:!1})((0,r.md)(...e))}})([u.I]));function T(e){let{children:t}=e;return(0,a.jsx)(o.zt,{store:_,children:t})}(0,d.p5)(_)},18580:function(e,t,n){n.d(t,{cn:function(){return r}});var a=n(10607),o=n(25579);let r=function(){for(var e=arguments.length,t=Array(e),n=0;n{let e=(0,i.I0)(),s=(0,i.v9)(e=>e.deployment.deploymentLoadedValues),a=a=>{let{name:t,value:r}=a.target;e((0,l.a)({...s,databackendType:"haveDatabase",[t]:r}))};return(0,t.jsx)(t.Fragment,{children:s?(0,t.jsx)("div",{children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mt-2 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,t.jsxs)("div",{className:"sm:col-span-3",children:[(0,t.jsx)(r.Z,{label:"Database Connection URI",popoverheader:"Database Connection URI",popovercontent:(0,t.jsx)("p",{children:"Here you put the connection string to your database. So, that we can connect to it. It's the full connection string."})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("input",{id:"database_uri",name:"databaseURI",type:"text",placeholder:"",autoComplete:"database_uri",value:s.databaseURI,onChange:a,className:"block w-2/3 rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"})})]})}),(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,t.jsxs)("div",{className:"sm:col-span-3",children:[(0,t.jsx)(r.Z,{label:"Metadata Store URI",popoverheader:"Metadata Store URI",popovercontent:(0,t.jsx)("p",{children:"Here you put a connection string of your database. So, that it could be used as metadata store. Otherwise, you can use the same as metadata store."})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("input",{id:"metadata-store-uri",name:"metadataStoreURI",type:"text",placeholder:"",autoComplete:"metadata-store-uri",value:s.metadataStoreURI,onChange:a,className:"block w-2/3 rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"})})]})}),(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,t.jsxs)("div",{className:"sm:col-span-3",children:[(0,t.jsx)(r.Z,{label:"Artifact Store URI",popoverheader:"Artifact Store URI",popovercontent:(0,t.jsx)("p",{children:"Artifact Store is a place where we store the artifacts. You can use the same as artifact store."})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("input",{id:"artifact_database_uri",name:"artifactStoreURI",type:"text",placeholder:"",autoComplete:"artifact_database_uri",value:s.artifactStoreURI,onChange:a,className:"block w-2/3 rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"})})]})})]})}):(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(n.Z,{})})})}},56511:function(e,s,a){a.d(s,{Z:function(){return C}});var t=a(27573),r=a(7653),n=a(59260),l=a(33453),i=a(80923),o=a(5772),d=a(4429),c=a(412),u=a(23611),m=a(2187),p=a(34611),x=a(93296),h=a(75355),v=a.n(h),g=a(68321),f=a(9551),y=a(72940),j=e=>{var s,a,n,l,o,d,h,j,b,N,C,w,P;let{data:I}=e,E=(0,c.I0)(),_=(0,c.v9)(e=>e.chartsgroups.chartsLoadedValues),[A,S]=(0,r.useState)(!1),Z=(0,c.v9)(e=>e.nodegroups.nodeUniqueLabels),[L,U]=(0,r.useState)({database:(null==I?void 0:null===(n=I.spec)||void 0===n?void 0:null===(a=n.mongodbParams)||void 0===a?void 0:null===(s=a.auth)||void 0===s?void 0:s.database)||"",username:(null==I?void 0:null===(d=I.spec)||void 0===d?void 0:null===(o=d.mongodbParams)||void 0===o?void 0:null===(l=o.auth)||void 0===l?void 0:l.username)||"",password:(null==I?void 0:null===(b=I.spec)||void 0===b?void 0:null===(j=b.mongodbParams)||void 0===j?void 0:null===(h=j.auth)||void 0===h?void 0:h.password)||"",replicaCount:(null==I?void 0:null===(C=I.spec)||void 0===C?void 0:null===(N=C.mongodbParams)||void 0===N?void 0:N.replicaCount)||0,computeClass:(null==I?void 0:null===(P=I.spec)||void 0===P?void 0:null===(w=P.mongodbParams)||void 0===w?void 0:w.computeClass)||""}),k=(0,r.useRef)(L),T=(0,r.useRef)(_);(0,r.useEffect)(()=>{v()(L,k.current)&&v()(_,T.current)||(console.log(),R(),k.current=L,T.current=_)},[L,_,g.V]);let R=()=>{try{let{database:e,username:s,password:a,replicaCount:t,computeClass:r}=L;I.spec.mongodbParams.auth.database=e,I.spec.mongodbParams.auth.username=s,I.spec.mongodbParams.auth.password=a,I.spec.mongodbParams.replicaCount=t,I.spec.mongodbParams.computeClass=r;let n=_.items.map(e=>e.name===I.name?I:e);E((0,p.Gi)({items:n})),x.ZP.success("MongoDB Params Updated!",{id:"unique-toast-id"})}catch(e){x.ZP.error("Something is wrong! Please try again.")}},D=e=>{let{name:s,value:a}=e.target;U(e=>({...e,[s]:a}))};return(0,t.jsxs)("div",{className:"overflow-visible",children:[Z&&_&&(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-8",children:(0,t.jsxs)("div",{className:"sm:col-span-3",children:[(0,t.jsx)(i.Z,{label:"Select ComputeClass",popoverheader:"Select ComputeClass",popovercontent:(0,t.jsx)("p",{children:"Please select the labels for this service. This means the service will run in a particular node! If you want a custom label first add labels in a node!"})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsxs)("select",{name:"computeClass",value:L.computeClass,onChange:D,className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[(0,t.jsx)("option",{value:"",children:"Select ComputeClass"}),[...Z].map(e=>(0,t.jsx)("option",{value:e,children:e},e))]})})]})}),(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-8",children:(0,t.jsxs)("div",{className:"sm:col-span-3",children:[(0,t.jsx)(i.Z,{label:"Database Name",popoverheader:"Name of the Database",popovercontent:(0,t.jsx)("p",{children:"Please provide the name of your database. It is the specific database you want to connect to."})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("input",{name:"database",value:L.database,onChange:D,type:"text",placeholder:"Type your database name",autoComplete:"database-name",className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"})})]})}),(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-8",children:(0,t.jsxs)("div",{className:"sm:col-span-3",children:[(0,t.jsx)(i.Z,{label:"Username",popoverheader:"Database Username",popovercontent:(0,t.jsx)("p",{children:"Please provide your username here. It is used to connect to your database from your cluster."})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("input",{name:"username",value:L.username,onChange:D,type:"text",placeholder:"Type your database username",autoComplete:"username",className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"})})]})}),(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-8",children:(0,t.jsxs)("div",{className:"sm:col-span-3",children:[(0,t.jsx)(i.Z,{label:"Password",popoverheader:"Database Password",popovercontent:(0,t.jsx)("p",{children:"Please provide your password here. It is used to authenticate connections to your database."})}),(0,t.jsxs)("div",{className:"mt-2 relative",children:[(0,t.jsx)("input",{id:"password",value:L.password,onChange:D,type:A?"text":"password",placeholder:"Type your database password",autoComplete:"current-password",className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6 pr-10"}),(0,t.jsx)("div",{className:"absolute inset-y-0 right-0 pr-3 flex items-center",children:(0,t.jsx)("button",{type:"button",onClick:()=>S(!A),className:"text-gray-400 hover:text-gray-500",children:A?(0,t.jsx)(f.Z,{className:"h-5 w-5","aria-hidden":"true"}):(0,t.jsx)(y.Z,{className:"h-5 w-5","aria-hidden":"true"})})})]})]})}),(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-8",children:(0,t.jsxs)("div",{className:"sm:col-span-3",children:[(0,t.jsx)(i.Z,{label:"Replica Count",popoverheader:"Replica Count",popovercontent:(0,t.jsx)("p",{children:"Please provide the replica count. It represents the number of replicas for your database."})}),(0,t.jsxs)("div",{className:"flex items-center justify-left mt-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>{U(e=>({...e,replicaCount:Math.max(e.replicaCount-1,1)}))},className:"rounded-full bg-indigo-600 p-1 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 mr-4",children:(0,t.jsx)(u.Z,{className:"h-5 w-5","aria-hidden":"true"})}),(0,t.jsx)("input",{disabled:!0,name:"replicaCount",value:L.replicaCount,onChange:D,type:"number",className:"w-16 text-center block rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"}),(0,t.jsx)("button",{type:"button",onClick:()=>{U(e=>({...e,replicaCount:e.replicaCount+1}))},className:"rounded-full bg-indigo-600 p-1 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 ml-4",children:(0,t.jsx)(m.Z,{className:"h-5 w-5","aria-hidden":"true"})})]})]})})]})},b=a(28251);function N(){for(var e=arguments.length,s=Array(e),a=0;a{var e;let s=(0,c.I0)(),a=(0,c.v9)(e=>e.chartsgroups.chartsLoadedValues),i=(0,c.v9)(e=>e.nodegroups.nodeUniqueLabels),u=(0,c.v9)(e=>e.deployment.deploymentLoadedValues),[m,p]=(0,r.useState)("deployDatabase"),[x,h]=(0,r.useState)({databaseURI:"",databaseType:"",metadataStoreURI:"",artifactStoreURI:""});return(0,r.useEffect)(()=>{s((0,d.a)({databackendType:m,...x}))},[x,m,s,a]),(0,t.jsx)(t.Fragment,{children:u&&i?(0,t.jsxs)("div",{children:[(0,t.jsxs)(n.E,{value:u.databackendType,onChange:p,children:[(0,t.jsx)(n.E.Label,{className:"text-base font-semibold leading-6 text-gray-900"}),(0,t.jsx)("div",{className:"mt-4 grid grid-cols-1 gap-y-6 sm:grid-cols-3 sm:gap-x-4",children:[{id:"deployDatabase",title:"Deploy a database",description:"We can deploy a database for you, and you can start using it right away.",users:"Deploy database",disabled:!1,active:!0},{id:"haveDatabase",title:"Connect existing database",description:"If you have a database, select this option and add the uri below.",users:"Host existing data",disabled:!1,active:!1}].map(e=>(0,t.jsx)(n.E.Option,{disabled:e.disabled,value:e.id,className:e=>{let{checked:s,active:a}=e;return N(s?"border-transparent":"border-gray-300",a?"border-indigo-600 ring-2 ring-indigo-600":"","relative flex cursor-pointer rounded-lg border bg-white p-4 shadow-sm focus:outline-none")},children:s=>{let{checked:a,active:r}=s;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"flex flex-1",children:(0,t.jsxs)("span",{className:"flex flex-col",children:[(0,t.jsx)(n.E.Label,{as:"span",className:"block text-sm font-medium text-gray-900",children:e.title}),(0,t.jsx)(n.E.Description,{as:"span",className:"mt-1 flex items-center text-sm text-gray-500",children:e.description}),(0,t.jsx)(n.E.Description,{as:"span",className:"mt-6 text-sm font-medium text-gray-900",children:e.users})]})}),(0,t.jsx)(l.Z,{className:N(a?"":"invisible","h-5 w-5 text-indigo-600"),"aria-hidden":"true"}),(0,t.jsx)("span",{className:N(r?"border":"border-2",a?"border-indigo-600":"border-transparent","pointer-events-none absolute -inset-px rounded-lg"),"aria-hidden":"true"})]})}},e.id))})]}),(0,t.jsx)("br",{}),"deployDatabase"===m&&(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"sm:col-span-3",children:[(0,t.jsx)("label",{htmlFor:"database-type",className:"block text-sm font-medium leading-6 text-gray-900",children:"Select Database"}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsxs)("select",{id:"database-type",name:"databaseType",autoComplete:"database-type",className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:max-w-xs sm:text-sm sm:leading-6",value:x.databaseType,onChange:e=>{let{name:s,value:a}=e.target;h(e=>({...e,[s]:a}))},children:[(0,t.jsx)("option",{value:"",children:"Select Database"}),(null==a?void 0:a.items)&&(null==a?void 0:a.items.filter(e=>{var s;return(null==e?void 0:null===(s=e.spec)||void 0===s?void 0:s.category)==="databases"}).map(e=>e.name).map(e=>(0,t.jsx)("option",{value:e,children:e.toLowerCase()},e)))]})}),a&&"mongodb"==x.databaseType&&(null==a?void 0:null===(e=a.items)||void 0===e?void 0:e.map((e,s)=>(0,t.jsx)(t.Fragment,{children:"mongodb"==e.name&&(0,t.jsx)(j,{data:e},s)})))]})}),"haveDatabase"===m&&(0,t.jsx)(b.Z,{})]}):(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(o.Z,{})})})}},73042:function(e,s,a){a.d(s,{Z:function(){return m}});var t=a(27573),r=a(7653),n=a(80923),l=a(34611),i=a(65454);let o=e=>s=>s({type:i.s,payload:e});var d=a(412),c=a(94432),u=a(74859),m=e=>{let{data:s}=e,a=(0,d.I0)(),i=(0,d.v9)(e=>e.chartsgroups.chartsLoadedValues),m=(0,d.v9)(e=>e.nodegroups.nodeUniqueLabels),p=(0,d.v9)(e=>{var s;return null==e?void 0:null===(s=e.userEnv)||void 0===s?void 0:s.userEnvLoadedValues});return(0,r.useEffect)(()=>{u.env.NEXT_PUBLIC_SUPERDUPER_IMAGE&&(e=>{try{let{name:s,tag:t}=(0,c.Z)(e),r=i.items.map(e=>{for(let a of Object.keys(e.spec))a.endsWith("Params")&&e.spec[a].image&&(e.spec[a].image.name=s,e.spec[a].image.tag=t);return e});console.log("Updated items:",r),a((0,l.Gi)({items:r}))}catch(e){console.error("Update failed:",e)}})(u.env.NEXT_PUBLIC_SUPERDUPER_IMAGE)},[]),(0,r.useEffect)(()=>{a(o({...p,image:u.env.NEXT_PUBLIC_SUPERDUPER_IMAGE}))},[]),(0,t.jsx)("div",{children:m&&(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,t.jsxs)("div",{className:"sm:col-span-3",children:[(0,t.jsx)(n.Z,{label:"Update Default Image",popoverheader:"Update Default Image",popovercontent:(0,t.jsx)("p",{children:"Please select the default Docker image for all services. All our services use the same Docker image."})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("input",{name:"imageandtag",value:p.image,onChange:e=>{a(o({...p,image:e.target.value}))},className:"block w-3/4 rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",placeholder:p.image||"Enter image and tag"})})]})})})}},15055:function(e,s,a){a.d(s,{Z:function(){return T}});var t=a(27573),r=a(7653),n=a(13908),l=a(88146),i=a(56511),o=a(28251),d=a(93296),c=a(412),u=a(64520),m=a(81695),p=a(72513),x=a(85688),h=a(98348),v=a(73042),g=a(35463),f=a(7682),y=a(46346),j=a(58991),b=a(34611),N=a(60855),C=a(72090);function w(e){try{if(console.log("Processing payload:",e),!e||!Array.isArray(e.items))return[];return e.items.filter(e=>e.status&&!0===e.status.isEmpty).map(e=>e.name)}catch(e){return console.error("Error processing payload:",e),[]}}var P=a(5772),I=a(45246),E=a(7109),_=a(36531),A=a(19434),S=a(45696),Z=a.n(S),L=a(94432),U=a(74859);function k(e){return Array.isArray(e)&&e.length>0?Array.isArray(e[0])?e[0]:e:[]}function T(){let e=(0,c.I0)(),s=(0,c.v9)(e=>e.environment.environmentLoadedValues),a=(0,c.v9)(e=>{var s;return null==e?void 0:null===(s=e.userEnv)||void 0===s?void 0:s.userEnvLoadedValues}),S=(0,c.v9)(e=>e.extraEnvVars),T=(0,c.v9)(e=>{var s;return null==e?void 0:null===(s=e.userInfo)||void 0===s?void 0:s.userInfoLoadedValues}),R=(0,c.v9)(e=>e.secrets),D=(0,m.useRouter)(),B=(0,c.v9)(e=>e.deploymentName.deploymentNameLoadedValues.name),X=(0,c.v9)(e=>e.chartsgroups.chartsLoadedValues),F=(0,c.v9)(e=>e.nodegroups.nodeLoadedValues),V=(0,c.v9)(e=>e.deployment.deploymentLoadedValues),z=(0,c.v9)(e=>e.extraEnvVars),[O,W]=(0,r.useState)("Something went wrong while creating the deployment. Please try again later."),[q,G]=(0,r.useState)(!1),[M,K]=(0,r.useState)(!1),[Y,$]=(0,r.useState)(!1),[H,J]=(0,r.useState)(!1),[Q,ee]=(0,r.useState)(!0),[es,ea]=(0,r.useState)([]),et=s=>{try{let{name:a,tag:t}=(0,L.Z)(s);if(!a||!t){console.error("Invalid image or tag:",a,t),d.ZP.error("Invalid image or tag. Please try again.");return}let r=X.items.map(e=>{for(let s of Object.keys(e.spec))s.endsWith("Params")&&e.spec[s].image&&(e.spec[s].image.name=a,e.spec[s].image.tag=t);return e});console.log("Updated items:",r),e((0,b.Gi)({items:r}))}catch(e){console.error("Update failed:",e)}};(0,r.useEffect)(()=>{(async function(){ee(!0);try{function a(s){let a=[...S],t=s.filter(e=>!a.some(s=>s.name===e));t.length>0&&(t.forEach(e=>{a.push({name:e,value:""})}),e((0,A.I)(Z()(a))))}let t=e=>(console.error("Error occurred:",e),console.log("Using fallback logic. Returning an empty array."),a([]),[]),r=async()=>{try{let e="".concat(U.env.NEXT_PUBLIC_API,"/secrets?deployment=").concat(B),t=await n.Z.get(e,{headers:{Accept:"application/json",Authorization:(0,E.Z)(T),superduper_reverse_proxy:U.env.NEXT_PUBLIC_API||s.NEXT_PUBLIC_API}});console.log("Secrets retrieved successfully:",t.data);let r=function(e){try{if(e&&Array.isArray(e.items))return e.items.map(e=>e.name)}catch(e){console.error("Error processing payload:",e)}return[]}(t.data);return ea(w(t.data)),console.log("Empty Secrets",w(t.data)),a(r),r}catch(e){return t(e)}},l=await r();console.log("Final secrets array:",l)}catch(e){console.error("Error fetching secrets:",e)}finally{ee(!1)}})()},[]),(0,r.useEffect)(()=>{let a=async()=>{try{let a=await n.Z.get("".concat("".concat(U.env.NEXT_PUBLIC_API,"/charts?deployment=").concat(B)),{headers:{Accept:"application/json",Authorization:(0,E.Z)(T),superduper_reverse_proxy:U.env.NEXT_PUBLIC_API||s.NEXT_PUBLIC_API}});console.log("Charts API data:",a.data),e((0,b.Gi)(a.data))}catch(e){console.error("Error fetching Services API data")}};X||a()},[]),(0,r.useEffect)(()=>{let a=async()=>{try{let a=await n.Z.get("".concat("".concat(U.env.NEXT_PUBLIC_API,"/nodegroups?deployment=").concat(B)),{headers:{Accept:"application/json",Authorization:(0,E.Z)(T),superduper_reverse_proxy:U.env.NEXT_PUBLIC_API||s.NEXT_PUBLIC_API}});console.log("Nodegroups API data:",a.data);let t=a.data.items.map(e=>e.spec.extraComputeClass&&e.spec.extraComputeClass.length>0?e:{...e,spec:{...e.spec,extraComputeClass:[...new Set([...e.spec.extraComputeClass||[],"base"].filter(Boolean))]},status:{...e.status,reservation:{...e.status.reservation,state:"Idle"}}});console.log("Updated Nodegroups API data:",t),e((0,N.NB)({items:t})),e((0,N.Bw)({items:t}))}catch(e){console.error("Error fetching API data:",e),d.ZP.error("Error fetching Node Groups data")}};F||a()},[]);let er=()=>{if(X&&X.items){let s=function e(s){if(Array.isArray(s))return s.map(s=>e(s));if("object"!=typeof s||null===s)return s;for(let a in s)s[a]=e(s[a]),"computeClass"===a&&(s[a]="base");return s}(X.items);e((0,b.Gi)({items:s}))}else console.error("chartsgroups or chartsgroups.items is undefined")},en=async()=>{let e;try{er(),et(null==a?void 0:a.image),window.scrollTo({top:0,behavior:"smooth"});let t={name:B,spec:{fake:!!B.startsWith("fake"),dataEndpoints:{artifactStore:{backendType:"",connectionURI:"true"==U.env.NEXT_PUBLIC_SNOWFLAKE?"filesystem:///artifacts":(null==V?void 0:V.databaseURI)?"filesystem://":""},dataStore:{backendType:"",connectionURI:"true"==U.env.NEXT_PUBLIC_SNOWFLAKE?"snowflake://":(null==V?void 0:V.databaseURI)||""},metadataStore:{backendType:"",connectionURI:"true"==U.env.NEXT_PUBLIC_SNOWFLAKE?"snowflake://":(null==V?void 0:V.databaseURI)||""},extraEnvVars:"true"==U.env.NEXT_PUBLIC_SNOWFLAKE?[]:z||[]},nodeGroupList:F.items.map(e=>{let{status:s,...a}=e;return a}).filter(e=>{var s;return(null==e?void 0:null===(s=e.spec)||void 0===s?void 0:s.extraComputeClass)&&e.spec.extraComputeClass.length>0}),secrets:"true"==U.env.NEXT_PUBLIC_SNOWFLAKE&&k(R)||[],serviceList:X.items.map(e=>{let{status:s,...a}=e;return a}).filter(e=>{if("true"===U.env.NEXT_PUBLIC_SNOWFLAKE){var s;return(null==e?void 0:null===(s=e.spec)||void 0===s?void 0:s.category)!=="databases"&&(null==e?void 0:e.name)!=="mongodb"&&(null==e?void 0:e.name)!=="monitoring"}return!0})}};J(!0),console.log("\uD83D\uDC49 REQUEST DATA",t);let r={headers:{Accept:"application/json","Content-Type":"application/json",Authorization:(0,E.Z)(T),superduper_reverse_proxy:U.env.NEXT_PUBLIC_API||s.NEXT_PUBLIC_API}};G(!0),e=d.ZP.loading("Deployment in progress...",{duration:1/0}),await new Promise(e=>setTimeout(e,3e3));let l=await n.Z.post("".concat("".concat(U.env.NEXT_PUBLIC_API,"/deployments")),t,r);console.log("RESULT:",l.data),await new Promise(e=>setTimeout(e,5e3)),d.ZP.dismiss(e),window.location.assign("/webui/deployment?deployment=done&query=1m"),d.ZP.success("Deployment successful!",{icon:"\uD83D\uDE80",duration:5e3})}catch(s){var t,r;e&&d.ZP.dismiss(e),s.response&&"true"===U.env.NEXT_PUBLIC_SNOWFLAKE&&200!==s.response.status&&400!==s.response.status?(console.error("Deployment Form Submission Error:",s.response.data),W((null===(t=s.response)||void 0===t?void 0:t.data)||s.message)):(console.error("Deployment Form Submission Error:",s),W((null===(r=s.response)||void 0===r?void 0:r.data)||s.message)),$(!0),d.ZP.error("Deployment failed. Please try again.",{duration:5e3})}finally{J(!1),G(!1),K(!1)}},el=async()=>{let e;try{er(),et(null==a?void 0:a.image);let t={name:B,spec:{fake:!!B.startsWith("fake"),dataEndpoints:{artifactStore:{backendType:"",connectionURI:(null==V?void 0:V.artifactStoreURI)||""},dataStore:{backendType:"",connectionURI:(null==V?void 0:V.databaseURI)||""},metadataStore:{backendType:"",connectionURI:(null==V?void 0:V.metadataStoreURI)||""},extraEnvVars:"true"==U.env.NEXT_PUBLIC_SNOWFLAKE?[]:z||[]},nodeGroupList:F.items.map(e=>{let{status:s,...a}=e;return a}).filter(e=>{var s;return(null==e?void 0:null===(s=e.spec)||void 0===s?void 0:s.extraComputeClass)&&e.spec.extraComputeClass.length>0}),secrets:"true"==U.env.NEXT_PUBLIC_SNOWFLAKE&&k(R)||[],serviceList:X.items.map(e=>{let{status:s,...a}=e;return a}).filter(e=>{if("true"===U.env.NEXT_PUBLIC_SNOWFLAKE){var s;return(null==e?void 0:null===(s=e.spec)||void 0===s?void 0:s.category)!=="databases"&&(null==e?void 0:e.name)!=="mongodb"&&(null==e?void 0:e.name)!=="monitoring"}return!0})}};console.log("\uD83D\uDC49 REQUEST DATA",t),G(!0),e=d.ZP.loading("Retrying deployment...",{duration:1/0}),await new Promise(e=>setTimeout(e,5e3));let r={headers:{Accept:"application/json","Content-Type":"application/json",Authorization:(0,E.Z)(T),superduper_reverse_proxy:U.env.NEXT_PUBLIC_API||s.NEXT_PUBLIC_API}},l=await n.Z.post("".concat("".concat(U.env.NEXT_PUBLIC_API,"/deployments")),t,r);console.log("RESULT:",l.data),await new Promise(e=>setTimeout(e,5e3)),d.ZP.dismiss(e),d.ZP.success("Deployment is successful.",{duration:5e3}),D.push("/webui/deployment?deployment=done&query=1m",void 0,{shallow:!1}),K(!1)}catch(s){if(e&&d.ZP.dismiss(e),s.response&&200!==s.response.status&&400!==s.response.status)console.error("Deployment Form Submission Error:",s.response.data),D.push("/webui/deployment?deployment=done&query=1m",void 0,{shallow:!1}),d.ZP.success("Deployment successful!",{icon:"\uD83D\uDE80",duration:5e3});else{var t;console.error("Deployment Form Submission Error:",s),W((null===(t=s.response)||void 0===t?void 0:t.data)||s.message),$(!0),d.ZP.error("Deployment retry failed. Please try again.",{duration:5e3})}}finally{G(!1),K(!1)}};return q?(0,t.jsx)(j.Z,{}):Q?(0,t.jsxs)("div",{className:"mt-4",children:[(0,t.jsx)(P.Z,{times:6}),";"]}):S&&0!==S.length?es.length<0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(I.Z,{header:"Missing Secrets",shortMessage:"Please create the following secrets: ".concat(es.join(", ")),status:"404",description:"You have to create the listed secrets first from /secrets page."}),(0,t.jsx)("div",{className:"my-4 border-t border-gray-300"}),(0,t.jsx)("br",{}),(0,t.jsx)("br",{}),(0,t.jsx)("div",{className:"text-center mt-4",children:(0,t.jsx)("a",{href:"/webui/secrets",children:(0,t.jsxs)(_.z,{className:"mt-4 mx-auto w-full max-w-md p-6 text-lg rounded-lg flex items-center justify-center space-x-2 bg-blue-600 text-white hover:bg-blue-700",children:[(0,t.jsx)(C.Z,{className:"w-6 h-6"})," ",(0,t.jsx)("span",{children:"Create Secrets"})]})})})]}):(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"space-y-2",children:["true"!==U.env.NEXT_PUBLIC_SNOWFLAKE&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"border-b border-gray-900/10 pb-12",children:[(0,t.jsx)("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:"Add Databackend"}),(0,t.jsx)("p",{className:"mt-1 text-sm leading-6 text-gray-600",children:"At first you have to add a database to your deployment. You can update the parameters below. We will deploy and handle the rest."}),(0,t.jsx)("br",{}),"true"!==U.env.NEXT_PUBLIC_SNOWFLAKE?(0,t.jsx)(i.Z,{}):(0,t.jsx)(o.Z,{})]}),(0,t.jsx)("br",{})]}),(0,t.jsxs)("div",{className:"pb-4",children:[(0,t.jsx)("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:"Define Image"}),(0,t.jsx)("p",{className:"mt-1 text-sm leading-6 text-gray-600",children:"Update the image you want to install on your deployment."}),(0,t.jsxs)("div",{style:{marginLeft:"-1.5rem!important"},children:[(0,t.jsx)(v.Z,{}),"true"==U.env.NEXT_PUBLIC_SNOWFLAKE?(0,t.jsx)("div",{className:"hidden",children:(0,t.jsx)(f.Z,{})}):(0,t.jsx)("div",{className:"hidden",children:(0,t.jsx)(g.Z,{})})]})]}),(0,t.jsxs)("div",{className:"mt-6 flex items-center justify-end gap-x-6",children:[(0,t.jsx)(l.default,{href:"/webui",children:(0,t.jsx)("button",{type:"button",className:"text-sm font-semibold leading-6 text-gray-900",children:"Cancel"})}),(0,t.jsxs)(u.aR,{children:[(0,t.jsx)(u.vW,{className:"rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Start Deployment"}),(0,t.jsxs)(u._T,{children:[(0,t.jsxs)(u.fY,{children:[(0,t.jsx)(u.f$,{children:"Start creating deployment now..."}),(0,t.jsx)(u.yT,{children:"This will create a deployment and it will take some time to finish. Please be patient. Do you want to continue?"})]}),(0,t.jsxs)(u.xo,{children:[(0,t.jsx)(u.le,{children:"Cancel"}),(0,t.jsx)(u.OL,{onClick:()=>{K(!0),en()},children:"Continue"})]})]})]})]}),(0,t.jsx)(u.aR,{open:M,children:(0,t.jsx)(u._T,{children:(0,t.jsxs)(u.fY,{children:[(0,t.jsx)(u.f$,{children:"Started deployment process..."}),(0,t.jsx)(u.yT,{children:"This initiates a deployment process that may take some time. Please wait patiently. You'll be redirected to the dashboard once it's complete."}),(0,t.jsx)("br",{}),(0,t.jsx)(h.O,{})]})})}),(0,t.jsx)(u.aR,{open:Y,children:(0,t.jsxs)(u._T,{children:[(0,t.jsxs)(u.fY,{children:[(0,t.jsx)(u.f$,{children:"Deployment Failed"}),(0,t.jsx)(u.yT,{children:(0,t.jsxs)(p.bZ,{variant:"destructive",children:[(0,t.jsx)(x.LPM,{className:"h-4 w-4"}),(0,t.jsx)(p.Cd,{children:"Error"}),(0,t.jsx)(y.x,{className:"scrollbar-visible h-[200px] w-full mt-2 pr-4",children:(0,t.jsx)(p.X,{children:O})})]})})]}),(0,t.jsxs)(u.xo,{children:[(0,t.jsx)(u.le,{onClick:()=>{$(!1),K(!1)},children:"Cancel"}),(0,t.jsx)(u.OL,{onClick:()=>{K(!0),$(!1),el()},children:"Retry Now"})]})]})})]})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(I.Z,{header:"No secrets added",shortMessage:"Please create secrets at first before proceeding.",status:"404",description:"You have to add a secret first from /secrets page."}),(0,t.jsx)("div",{className:"my-4 border-t border-gray-300"}),(0,t.jsx)("br",{}),(0,t.jsx)("br",{}),(0,t.jsx)("div",{className:"text-center mt-4",children:(0,t.jsx)("a",{href:"/webui/secrets",children:(0,t.jsxs)(_.z,{className:"mt-4 mx-auto w-full max-w-md p-6 text-lg rounded-lg flex items-center justify-center space-x-2 bg-blue-600 text-white hover:bg-blue-700",children:[(0,t.jsx)(C.Z,{className:"w-6 h-6"})," ",(0,t.jsx)("span",{children:"Create Secrets"})]})})})]})}},43210:function(e,s,a){a.d(s,{Z:function(){return el}});var t=a(27573),r=a(7653),n=a(13908),l=a(88146),i=a(5772),o=a(93296),d=a(61284),c=a(63130),u=a(36531),m=a(412),p=a(60855);function x(e){let{data:s}=e,a=(0,m.I0)(),n=(0,m.v9)(e=>e.nodegroups.nodeUniqueLabels)||[],[l,i]=(0,r.useState)(""),d=async()=>{if(!l){o.ZP.error("Please type a ComputeClass before adding.",{id:"no-input-toast"});return}if(n.includes(l)){o.ZP.error("This ComputeClass is already added! Add a new ComputeClass!");return}try{a((0,p.Lj)([...n,l])),i(""),o.ZP.success("Successfully added!")}catch(e){o.ZP.error("An error occurred. Please reload and try again!")}};return(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("label",{className:"block text-sm font-medium leading-6 text-gray-900",children:"Add ComputeClass"}),(0,t.jsx)("input",{type:"text",className:"mt-2 w-full rounded-md border-0 bg-white py-1.5 pl-3 pr-10 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",value:l,onChange:e=>{i(e.target.value)},placeholder:"Type ComputeClass here..."}),(0,t.jsx)(u.z,{type:"button",className:"mt-2",onClick:d,children:"Add Now"})]})}var h=a(85688),v=a(4482),g=a(42502),f=a(64303),y=a(4216),j=a(80500),b=a(95042),N=a(12900),C=a(7109),w=a(74859);let P=(e,s)=>[...e].sort((e,a)=>{for(let[t,r]of Object.entries(s)){let s=parseFloat(e.status.capacity[t]),n=parseFloat(a.status.capacity[t]);if(s!==n)return se.environment.environmentLoadedValues),l=(0,m.v9)(e=>{var s;return null==e?void 0:null===(s=e.userInfo)||void 0===s?void 0:s.userInfoLoadedValues}),I=(0,m.I0)(),_=(0,m.v9)(e=>e.nodegroups.nodeLoadedValues),A=(0,m.v9)(e=>e.deploymentName.deploymentNameLoadedValues.name),S=(0,m.v9)(e=>e.nodegroups.nodeUniqueLabels)||[];(0,r.useEffect)(()=>{let e=async()=>{try{let e=(await n.Z.get("".concat("".concat(w.env.NEXT_PUBLIC_API,"/nodegroups?deployment=").concat(A)),{headers:{Accept:"application/json",Authorization:(0,C.Z)(l),superduper_reverse_proxy:w.env.NEXT_PUBLIC_API||a.NEXT_PUBLIC_API}})).data.items.map(e=>e.spec.extraComputeClass&&e.spec.extraComputeClass.length>0?e:{...e,spec:{...e.spec,extraComputeClass:[...new Set([...e.spec.extraComputeClass||[],"base"].filter(Boolean))]},status:{...e.status,reservation:{...e.status.reservation,state:"Idle"}}});I((0,p.NB)({items:e})),I((0,p.Bw)({items:e}))}catch(e){console.error("Error fetching API data:",e),o.ZP.error("Error fetching Node Groups data")}};_||e()},[]);let[Z,L]=(0,r.useState)({numCPUs:"asc",numGPUs:"asc",memoryMB:"asc",ephemeralStorageMB:"asc"}),U=(e,s)=>{L(a=>({...a,[e]:s}))},[,k]=(0,r.useState)(),T=()=>k({}),[R,D]=(0,r.useState)(()=>S.length?S[S.length-1]:"base"),[B,X]=(0,r.useState)(0);(0,r.useEffect)(()=>{S.length&&(0===B?(D("base"),X(e=>e+1)):(D(S[S.length-1]),X(e=>e+1)))},[S]),(0,r.useEffect)(()=>{if(console.log("Sorting nodegroups with sortOrder:",Z),null==_?void 0:_.items){let e=P(_.items,Z);console.log("Sorted items:",e),I((0,p.NB)({items:e})),T()}},[Z]);let F=async(e,s)=>{var a,t;(null==e?void 0:e.spec)||(e.spec={}),(null==e?void 0:null===(a=e.spec)||void 0===a?void 0:a.extraComputeClass)||(e.spec.extraComputeClass=[]);let r=(null==e?void 0:null===(t=e.spec)||void 0===t?void 0:t.extraComputeClass)||[];if(r.includes(s)){try{for(let a=e.spec.extraComputeClass.length-1;a>=0;a--)e.spec.extraComputeClass[a]===s&&e.spec.extraComputeClass.splice(a,1);e.spec.exclusiveReservation=null,e.status.reservation.state="Idle";let a=_.items.map(s=>s.name===e.name?e:s);I((0,p.NB)({items:a})),(0,o.ZP)("".concat(s," is removed from ").concat(e.name,"!"),{icon:"❎",id:"updated-toast"}),T()}catch(e){o.ZP.error("An error occurred",{id:"updated-toast"})}return}try{e.spec.extraComputeClass=[...r,s],e.status.reservation.state="Shared";let a=_.items.map(s=>s.name===e.name?e:s);I((0,p.NB)({items:a})),(0,o.ZP)("".concat(s," is added to ").concat(e.name,"!"),{icon:"✅",id:"updated-toast"}),T()}catch(e){o.ZP.error("An error occurred. Please reload and try again!")}},V=async(e,s)=>{var a,t,r;if((null==e?void 0:e.spec)||(e.spec={}),(null==e?void 0:null===(a=e.spec)||void 0===a?void 0:a.extraComputeClass)||(e.spec.extraComputeClass=[]),(null==e?void 0:null===(t=e.spec)||void 0===t?void 0:t.exclusiveReservation)||(e.spec.exclusiveReservation=null),((null==e?void 0:null===(r=e.spec)||void 0===r?void 0:r.exclusiveReservation)||null)===s){try{e.spec.exclusiveReservation=null,e.status.reservation.state="Shared";let a=_.items.map(s=>s.name===e.name?e:s);I((0,p.NB)({items:a})),(0,o.ZP)("".concat(s," is removed from ").concat(e.name,"!"),{icon:"❎",id:"updated-toast"}),T()}catch(e){o.ZP.error("An error occurred",{id:"updated-toast"})}return}try{e.spec.exclusiveReservation=s,e.spec.extraComputeClass=[s],e.status.reservation.state="Exclusive";let a=_.items.map(s=>s.name===e.name?e:s);I((0,p.NB)({items:a})),(0,o.ZP)("".concat(s," is exclusively added to ").concat(e.name,"! It will remove the reserved status from all other nodes."),{icon:"✅",id:"updated-toast"}),T()}catch(e){o.ZP.error("An error occurred. Please reload and try again!")}},z=e=>{try{var s;return"string"==typeof(null==e?void 0:null===(s=e.spec)||void 0===s?void 0:s.exclusiveReservation)&&""!==e.spec.exclusiveReservation.trim()}catch(e){return console.error("Error in reserveDefineDisableOrNot:",e),!1}},O=(e,s)=>{try{var a,t,r,n,l,i,o,d,c,u;if(null==e?void 0:null===(r=e.spec)||void 0===r?void 0:null===(t=r.extraComputeClass)||void 0===t?void 0:t.includes(null==e?void 0:null===(a=e.spec)||void 0===a?void 0:a.exclusiveReservation)){if((null==e?void 0:null===(u=e.spec)||void 0===u?void 0:u.exclusiveReservation)===s)return!1;return!0}if((null==e?void 0:null===(n=e.spec)||void 0===n?void 0:n.exclusiveReservation)||!(null==e?void 0:null===(i=e.spec)||void 0===i?void 0:null===(l=i.extraComputeClass)||void 0===l?void 0:l.length))return!0;null==e||null===(c=e.spec)||void 0===c||null===(d=c.extraComputeClass)||void 0===d||d.includes(null==e?void 0:null===(o=e.spec)||void 0===o?void 0:o.exclusiveReservation)}catch(e){}return!1},W=(e,s)=>{try{if(1===S.length){o.ZP.error("At least one ComputeClass is required!",{id:"removed-toast"});return}let a=e.items.map(e=>{let a=JSON.parse(JSON.stringify(e));if(a.spec.exclusiveReservation===s&&(a.spec.exclusiveReservation=null),Array.isArray(a.spec.extraComputeClass)){let e=a.spec.extraComputeClass.indexOf(s);-1!==e&&a.spec.extraComputeClass.splice(e,1)}return a});I((0,p.NB)({items:a})),I((0,p.Lj)([...S.filter(e=>e!==s)])),D(S[S.length-1]),T(),(0,o.ZP)("Successfully removed!",{id:"removed-toast"})}catch(e){console.error("Error in handleRemoveComputeClassAndReservation:",e)}},[q,G]=(0,r.useState)("all"),M=e=>{G(e)};return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{children:_?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"-ml-4 mt-4 mb-2 bg-white px-4 py-2 sm:px-4",children:(0,t.jsxs)(f.mQ,{defaultValue:R,value:R,onValueChange:e=>D(e),className:"w-full",children:[(0,t.jsx)(f.dr,{children:(0,t.jsxs)("div",{className:"flex",children:[S.map(e=>(0,t.jsxs)(f.SP,{value:e,children:[e," ",(0,t.jsx)(c.Z,{onClick:()=>{W(_,e)},className:"-mr-1 h-4 w-4","aria-hidden":"true"})]},e)),(0,t.jsxs)(b.J2,{children:[(0,t.jsx)(b.xo,{asChild:!0,children:(0,t.jsx)(u.z,{className:"rounded-full",variant:"primary",children:(0,t.jsx)(E,{className:"h-5 w-5"})})}),(0,t.jsxs)(b.yk,{className:"w-80",children:[(0,t.jsx)(d.xp,{asChild:!0,children:(0,t.jsx)(c.Z,{className:"ml-auto -mb-2 h-5 w-5 flex text-gray-400 cursor-pointer hover:text-gray-500","aria-hidden":"true"})}),(0,t.jsxs)("div",{className:"grid gap-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("h4",{className:"font-medium leading-none",children:"Add ComputeClass"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"You can select the compute class for the node later."})]}),(0,t.jsx)("div",{className:"grid gap-2",children:(0,t.jsx)(x,{data:_})})]})]})]})]})}),S.map(e=>(0,t.jsx)(f.nU,{value:e,children:(0,t.jsx)("div",{className:"container mx-auto px-0 py-2 w-full",children:(0,t.jsx)("div",{className:"border rounded-lg overflow-x-auto w-full",children:(0,t.jsxs)(j.iA,{children:[(0,t.jsx)(j.xD,{children:(0,t.jsxs)(j.SC,{children:[(0,t.jsx)(j.ss,{className:"text-center px-1",children:(0,t.jsx)(N.C,{variant:"outline",children:"Reserve"})}),(0,t.jsx)(j.ss,{className:"text-center px-1",children:(0,t.jsx)(N.C,{variant:"outline",children:"Exclusive"})}),(0,t.jsx)(j.ss,{children:(0,t.jsx)(N.C,{variant:"outline",children:"Node Name"})}),(0,t.jsx)(j.ss,{className:"text-center",children:(0,t.jsxs)(g.h_,{children:[(0,t.jsx)(g.$F,{asChild:!0,children:(0,t.jsxs)(u.z,{variant:"ghost",size:"sm",className:"px-0",children:["CPU",(0,t.jsx)(h.jnn,{className:"ml-2 h-4 w-4"})]})}),(0,t.jsx)(g.AW,{align:"end",className:"w-[200px]",children:(0,t.jsxs)(g._x,{value:Z.numCPUs,onValueChange:e=>U("numCPUs",e),children:[(0,t.jsx)(g.qB,{value:"asc",children:"Ascending"}),(0,t.jsx)(g.qB,{value:"desc",children:"Descending"})]})})]})}),(0,t.jsx)(j.ss,{className:"text-center",children:(0,t.jsxs)(g.h_,{children:[(0,t.jsx)(g.$F,{asChild:!0,children:(0,t.jsxs)(u.z,{variant:"ghost",size:"sm",className:"px-0",children:["GPU",(0,t.jsx)(h.jnn,{className:"ml-2 h-4 w-4"})]})}),(0,t.jsx)(g.AW,{align:"end",className:"w-[200px]",children:(0,t.jsxs)(g._x,{value:Z.numGPUs,onValueChange:e=>U("numGPUs",e),children:[(0,t.jsx)(g.qB,{value:"asc",children:"Ascending"}),(0,t.jsx)(g.qB,{value:"desc",children:"Descending"})]})})]})}),(0,t.jsx)(j.ss,{className:"text-center",children:(0,t.jsxs)(g.h_,{children:[(0,t.jsx)(g.$F,{asChild:!0,children:(0,t.jsxs)(u.z,{variant:"ghost",className:"px-0",size:"sm",children:["RAM",(0,t.jsx)(h.jnn,{className:"ml-2 h-4 w-4"})]})}),(0,t.jsx)(g.AW,{align:"end",className:"w-[200px]",children:(0,t.jsxs)(g._x,{value:Z.memoryMB,onValueChange:e=>U("memoryMB",e),children:[(0,t.jsx)(g.qB,{value:"asc",children:"Ascending"}),(0,t.jsx)(g.qB,{value:"desc",children:"Descending"})]})})]})}),(0,t.jsx)(j.ss,{className:"text-center",children:(0,t.jsxs)(g.h_,{children:[(0,t.jsx)(g.$F,{asChild:!0,children:(0,t.jsxs)(u.z,{className:"px-0",variant:"ghost",size:"sm",children:["Storage",(0,t.jsx)(h.jnn,{className:"ml-2 h-4 w-4"})]})}),(0,t.jsx)(g.AW,{align:"end",className:"w-[200px]",children:(0,t.jsxs)(g._x,{value:Z.ephemeralStorageMB,onValueChange:e=>U("ephemeralStorageMB",e),children:[(0,t.jsx)(g.qB,{value:"asc",children:"Ascending"}),(0,t.jsx)(g.qB,{value:"desc",children:"Descending"})]})})]})}),(0,t.jsx)(j.ss,{className:"text-center",children:(0,t.jsxs)(g.h_,{children:[(0,t.jsx)(g.$F,{asChild:!0,children:(0,t.jsxs)(u.z,{className:"px-0",variant:"ghost",size:"sm",children:["State",(0,t.jsx)(h.jnn,{className:"ml-2 h-4 w-4"})]})}),(0,t.jsx)(g.AW,{align:"end",className:"w-[200px]",children:(0,t.jsxs)(g._x,{value:q,onValueChange:e=>M(e),children:[(0,t.jsx)(g.qB,{value:"all",children:"Show All"}),(0,t.jsx)(g.qB,{value:"IDLE",children:"IDLE"}),(0,t.jsx)(g.qB,{value:"SHARED",children:"SHARED"}),(0,t.jsx)(g.qB,{value:"EXCLUSIVE",children:"EXCLUSIVE"})]})})]})})]})}),(0,t.jsx)(j.RM,{children:null==_?void 0:_.items.filter(e=>{let s=q.toLowerCase();return"all"===s||!["exclusive","idle","shared"].includes(s)||e.status.reservation.state.toLowerCase()===s}).map((s,a)=>{var r,n,l,i,o,d,c,u,m,p,x,h,g,f,b,N,C;return(0,t.jsxs)(j.SC,{children:[(0,t.jsx)(j.pj,{className:"text-center",children:(0,t.jsx)(y.X,{id:e,onCheckedChange:()=>{F(s,e)},checked:null==s?void 0:null===(n=s.spec)||void 0===n?void 0:null===(r=n.extraComputeClass)||void 0===r?void 0:r.includes(e),defaultChecked:null==s?void 0:null===(i=s.spec)||void 0===i?void 0:null===(l=i.extraComputeClass)||void 0===l?void 0:l.includes(e),disabled:z(s)})}),(0,t.jsx)(j.pj,{className:"text-center",children:(0,t.jsx)(y.X,{id:e+e,onCheckedChange:()=>{V(s,e)},checked:(null==s?void 0:null===(o=s.spec)||void 0===o?void 0:o.exclusiveReservation)===e,defaultChecked:(null==s?void 0:null===(d=s.spec)||void 0===d?void 0:d.exclusiveReservation)===e,disabled:O(s,e)})}),(0,t.jsx)(j.pj,{children:null==s?void 0:s.name.replace(/\.compute\.internal/g,"")}),(0,t.jsx)(j.pj,{className:"text-center",children:null==s?void 0:null===(u=s.status)||void 0===u?void 0:null===(c=u.capacity)||void 0===c?void 0:c.numCPUs}),(0,t.jsx)(j.pj,{className:"text-center",children:null==s?void 0:null===(p=s.status)||void 0===p?void 0:null===(m=p.capacity)||void 0===m?void 0:m.numGPUs}),(0,t.jsxs)(j.pj,{className:"text-center",children:[null==s?void 0:null===(h=s.status)||void 0===h?void 0:null===(x=h.capacity)||void 0===x?void 0:x.memoryMB,"MB"]}),(0,t.jsxs)(j.pj,{className:"text-center",children:[(parseInt(String(null==s?void 0:null===(f=s.status)||void 0===f?void 0:null===(g=f.capacity)||void 0===g?void 0:g.ephemeralStorageMB),10)/1024).toFixed(2),"GB"]}),(0,t.jsx)(j.pj,{className:"text-center",children:(0,t.jsx)("div",{className:"mt-1",children:(0,t.jsx)("span",{className:"",children:(null==s?void 0:null===(b=s.spec)||void 0===b?void 0:b.exclusiveReservation)?(0,t.jsxs)("dd",{className:"inline-flex items-center rounded-md bg-black px-2 py-1 text-xs font-medium text-white ring-1 ring-inset ring-black/20",children:[(0,t.jsx)(v.pn,{children:(0,t.jsxs)(v.u,{children:[(0,t.jsx)(v.aJ,{children:"EXCLUSIVE"}),(0,t.jsx)(v._v,{children:(0,t.jsx)("p",{children:"The whole node is dedicated to a single computeclass."})})]})}),(0,t.jsx)("div",{className:"offline flex-none rounded-full p-1",children:(0,t.jsx)("div",{role:"status",children:(0,t.jsx)("svg",{className:"w-4 h-4 me-0 text-white dark:text-white flex-shrink-0","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M12 1.5a5.25 5.25 0 0 0-5.25 5.25v3a3 3 0 0 0-3 3v6.75a3 3 0 0 0 3 3h10.5a3 3 0 0 0 3-3v-6.75a3 3 0 0 0-3-3v-3c0-2.9-2.35-5.25-5.25-5.25Zm3.75 8.25v-3a3.75 3.75 0 1 0-7.5 0v3h7.5Z",clipRule:"evenodd"})})})})]}):(null==s?void 0:null===(C=s.spec)||void 0===C?void 0:null===(N=C.extraComputeClass)||void 0===N?void 0:N.length)?(0,t.jsxs)("dd",{className:"inline-flex items-center rounded-md bg-yellow-50 px-2 py-1 text-xs font-medium text-yellow-700 ring-1 ring-inset ring-yellow-600/20",children:[(0,t.jsx)(v.pn,{children:(0,t.jsxs)(v.u,{children:[(0,t.jsx)(v.aJ,{children:"SHARED"}),(0,t.jsx)(v._v,{children:(0,t.jsx)("p",{children:"The node has been allocated to one or more computeclasses."})})]})}),(0,t.jsx)("div",{className:"offline flex-none rounded-full p-1",children:(0,t.jsx)("div",{role:"status",children:(0,t.jsx)("svg",{className:"w-4 h-4 me-0 text-yellow-500 dark:text-yellow-400 flex-shrink-0","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z"})})})})]}):(0,t.jsxs)("dd",{className:"inline-flex items-center rounded-md bg-green-50 px-2 py-1 text-xs font-medium text-green-700 ring-1 ring-inset ring-green-600/20",children:[(0,t.jsx)(v.pn,{children:(0,t.jsxs)(v.u,{children:[(0,t.jsx)(v.aJ,{children:"IDLE"}),(0,t.jsx)(v._v,{children:(0,t.jsx)("p",{children:"The node is not allocated to any jobs and is available for use."})})]})}),(0,t.jsx)("div",{className:"offline flex-none rounded-full p-1",children:(0,t.jsxs)("div",{role:"status",children:[(0,t.jsx)("svg",{className:"w-4 h-4 me-0 text-green-500 dark:text-green-400 flex-shrink-0","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z"})}),(0,t.jsx)("span",{className:"sr-only",children:"..."})]})})]})})})})]},a)})})]})})})},e))]})})}):(0,t.jsx)("div",{className:"mt-2 ml-4",children:(0,t.jsx)(i.Z,{})})})})}function E(e){return(0,t.jsxs)("svg",{...e,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",children:[(0,t.jsx)("path",{d:"M5 12h14"}),(0,t.jsx)("path",{d:"M12 5v14"})]})}var _=a(87420),A=a(34611),S=a(75355),Z=a.n(S),L=a(80923),U=a(34209),k=a(23611),T=a(2187),R=e=>{let{workerdata:s}=e,a=(0,m.I0)(),n=(0,m.v9)(e=>e.chartsgroups.chartsLoadedValues),[l,i]=(0,r.useState)(!0),[d,c]=(0,r.useState)({groupName:s.groupName||"",computeClass:s.computeClass||"",replicaCount:s.replicaCount||0}),u=(0,r.useRef)(d);(0,r.useEffect)(()=>{Z()(d,u.current)||(h(),u.current=d)},[d,l,s]);let p=n.items.find(e=>"ray"===e.name),x=(0,m.v9)(e=>e.nodegroups.nodeUniqueLabels),h=()=>{console.log("submittedData RAY:",d);try{if(""===d.groupName&&""===d.computeClass&&0===d.replicaCount){o.ZP.error("Please update the Ray Worker parameters to save changes!");return}if(""!==d.groupName){let e={...p,spec:{...p.spec,rayParams:{...p.spec.rayParams,workers:p.spec.rayParams.workers.map(e=>e.groupName===s.groupName||""===e.groupName?{groupName:d.groupName,computeClass:d.computeClass,replicaCount:d.replicaCount}:e)}}},t=n.items.map(s=>"ray"===s.name?e:s);console.log("Updated data:",t),a((0,A.Gi)({items:[...t]}))}o.ZP.success("Ray Worker Params Updated!",{id:"unique-toast-id"})}catch(e){o.ZP.error("Something is wrong! Please try again.",{id:"rayWorkerParams"})}},v=e=>{let{name:s,value:a}=e.target;c(e=>({...e,[s]:a}))},g=e=>{let s=parseInt(d.replicaCount,10)||0;c(a=>({...a,[e]:Math.max(s-1,1)}))},f=e=>{let s=parseInt(d.replicaCount,10)||0;c(a=>({...a,[e]:s+1}))};return(0,t.jsx)(t.Fragment,{children:l&&(0,t.jsxs)("div",{className:"mt-4 pt-4 rounded-2xl border-4 border-dashed border-gray-900/25 px-6 py-10",children:[(0,t.jsx)("div",{className:"space-y-12",children:(0,t.jsx)("div",{className:"pb-2",children:(0,t.jsxs)("div",{className:"flex items-start justify-between",children:[(0,t.jsx)("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:"Worker Group"}),(0,t.jsx)("div",{className:"ml-3 flex h-7 items-center",children:(0,t.jsxs)("button",{type:"button",className:"rounded-md bg-white text-gray-400 hover:text-gray-500 outline ring-2 ring-indigo-500",onClick:()=>{try{if(""===s.groupName&&""===s.computeClass&&0===s.replicaCount){let e={...p,spec:{...p.spec,rayParams:{...p.spec.rayParams,workers:p.spec.rayParams.workers.slice(0,-1)}}},s=n.items.map(s=>"ray"===s.name?e:s);a((0,A.Gi)({items:s})),i(!1),o.ZP.success("Removed the worker!",{id:"rayWorkerParams"})}else if(1===p.spec.rayParams.workers.length)o.ZP.error("You cannot delete the last worker!",{id:"rayWorkerParams"});else if(""!==s.groupName){let e=p.spec.rayParams.workers.filter(e=>e.groupName!==s.groupName),t={...p,spec:{...p.spec,rayParams:{...p.spec.rayParams,workers:[...e]}}},r=n.items.map(e=>"ray"===e.name?t:e);a((0,A.Gi)({items:r})),i(!1),o.ZP.success("".concat(s.groupName," removed!"),{id:"rayWorkerParams"})}}catch(e){o.ZP.error("Something is wrong! Please reload and try again.",{id:"rayWorkerParams"})}},children:[(0,t.jsx)("span",{className:"sr-only",children:"Close"}),(0,t.jsx)(U.Z,{className:"h-6 w-6","aria-hidden":"true"})]})})]})})}),(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,t.jsxs)("div",{className:"sm:col-span-5",children:[(0,t.jsx)(L.Z,{label:"Group Name",popoverheader:"Name of the Group",popovercontent:(0,t.jsx)("p",{children:"Please provide the name of your Ray worker group. It is the specific group name you want to add."})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("input",{name:"groupName",value:d.groupName,onChange:v,type:"text",placeholder:"Type your group name",autoComplete:"groupName",className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"})})]})}),(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,t.jsxs)("div",{className:"sm:col-span-5",children:[(0,t.jsx)(L.Z,{label:"Select ComputeClass",popoverheader:"Select ComputeClass",popovercontent:(0,t.jsx)("p",{children:"Please select the labels for this service. This means the service will run in a particular node! If you want a custom label first add labels in a node!"})}),(0,t.jsx)("div",{className:"mt-2",children:x&&(0,t.jsx)("select",{name:"computeClass",value:d.computeClass,onChange:v,className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[...x].reverse().map(e=>(0,t.jsx)("option",{value:e,children:e},e))})})]})}),(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,t.jsxs)("div",{className:"sm:col-span-5",children:[(0,t.jsx)(L.Z,{label:"Number of workers",popoverheader:"Number of workers",popovercontent:(0,t.jsx)("p",{children:"Please provide the number of workers. It represents the number of replicas for your database."})}),(0,t.jsxs)("div",{className:"flex items-center justify-left mt-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>g("replicaCount"),className:"rounded-full bg-indigo-600 p-1 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 mr-4",children:(0,t.jsx)(k.Z,{className:"h-5 w-5","aria-hidden":"true"})}),(0,t.jsx)("input",{disabled:!0,name:"replicaCount",value:d.replicaCount,onChange:v,className:"w-16 text-center block rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"}),(0,t.jsx)("button",{type:"button",onClick:()=>f("replicaCount"),className:"rounded-full bg-indigo-600 p-1 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 ml-4",children:(0,t.jsx)(T.Z,{className:"h-5 w-5","aria-hidden":"true"})})]})]})})]})})},D=e=>{var s,a,n,l,i,d,c,u,p,x,h,v,g;let{data:f}=e,y=(0,m.I0)(),j=(0,m.v9)(e=>e.chartsgroups.chartsLoadedValues),b=(0,m.v9)(e=>e.nodegroups.nodeUniqueLabels),[N,C]=(0,r.useState)({computeClass:(null==f?void 0:null===(n=f.spec)||void 0===n?void 0:null===(a=n.rayParams)||void 0===a?void 0:null===(s=a.head)||void 0===s?void 0:s.computeClass)||"",name:(null==f?void 0:null===(d=f.spec)||void 0===d?void 0:null===(i=d.rayParams)||void 0===i?void 0:null===(l=i.image)||void 0===l?void 0:l.name)||"",tag:(null==f?void 0:null===(p=f.spec)||void 0===p?void 0:null===(u=p.rayParams)||void 0===u?void 0:null===(c=u.image)||void 0===c?void 0:c.tag)||""}),w=(0,r.useRef)(N);(0,r.useEffect)(()=>{Z()(N,w.current)||(P(),w.current=N)},[N]);let P=()=>{let{name:e,tag:s,computeClass:a}=N;f.spec||(f.spec={}),f.spec.rayParams||(f.spec.rayParams={}),f.spec.rayParams.head||(f.spec.rayParams.head={}),f.spec.rayParams.image.name=e,f.spec.rayParams.image.tag=s,f.spec.rayParams.head.computeClass=a;let t=j.items.map(e=>e.name===f.name?f:e);y((0,A.Gi)({items:t})),o.ZP.success("Ray Parameters Updated!",{id:"rayParams"})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mt-4 pt-4 rounded-2xl border-4 border-dashed border-gray-900/25 px-6 py-10",children:[(0,t.jsx)("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:"Ray Head"}),b&&(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,t.jsxs)("div",{className:"sm:col-span-5",children:[(0,t.jsx)(L.Z,{label:"Select ComputeClass",popoverheader:"Select ComputeClass",popovercontent:(0,t.jsx)("p",{children:"Please select the labels for this service. This means the service will run in a specific node! For custom labels, add them to a node first."})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("select",{name:"computeClass",value:N.computeClass,onChange:e=>{let{name:s,value:a}=e.target;C(e=>({...e,[s]:a}))},className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[...b].reverse().map(e=>(0,t.jsx)("option",{value:e,children:e},e))})})]})})]}),(null==f?void 0:null===(h=f.spec)||void 0===h?void 0:null===(x=h.rayParams)||void 0===x?void 0:x.workers)&&(null==f?void 0:null===(g=f.spec)||void 0===g?void 0:null===(v=g.rayParams)||void 0===v?void 0:v.workers.map((e,s)=>(0,t.jsx)(R,{workerdata:e},s))),(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:"mt-6 flex items-center justify-center gap-x-6",children:(0,t.jsx)("div",{className:"mt-6",children:(0,t.jsx)("button",{type:"button",onClick:()=>{f.spec||(f.spec={}),f.spec.rayParams||(f.spec.rayParams={}),f.spec.rayParams.workers||(f.spec.rayParams.workers=[]),f.spec.rayParams.workers.push({groupName:"workergroup_".concat(f.spec.rayParams.workers.length+1),computeClass:b.length>0?b[b.length-1]:"",replicaCount:1});let e=j.items.map(e=>e.name===f.name?f:e);y((0,A.Gi)({items:e}))},className:"rounded-full bg-indigo-600 p-2 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:(0,t.jsx)(T.Z,{className:"h-5 w-5","aria-hidden":"true"})})})})}),(0,t.jsx)("div",{className:"flex justify-center items-center h-full",children:(0,t.jsx)("div",{className:"mt-0 ml-8 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,t.jsx)("div",{className:"sm:col-span-5",children:(0,t.jsx)(L.Z,{label:"Add Ray Workers",popoverheader:"Add Ray Workers",popovercontent:(0,t.jsx)("p",{children:"Please click on the plus button to add ray workers. You can add multiple ray workers."})})})})})]})},B=e=>{var s,a;let{data:n,paramsName:l}=e;if(n.name.includes("ray"))return(0,t.jsx)(D,{data:n});let i=(0,m.I0)(),d=(0,m.v9)(e=>e.nodegroups.nodeUniqueLabels),c=(0,m.v9)(e=>e.chartsgroups.chartsLoadedValues),[u,p]=(0,r.useState)({computeClass:(null==n?void 0:null===(a=n.spec)||void 0===a?void 0:null===(s=a[l])||void 0===s?void 0:s.computeClass)||""}),x=(0,r.useRef)(u);(0,r.useEffect)(()=>{Z()(u,x.current)||(h(),x.current=u)},[u]);let h=()=>{try{let{computeClass:e}=u;n.spec||(n.spec={}),n.spec[l]||(n.spec[l]={}),n.spec[l].computeClass=e;let s=c.items.map(e=>e.name===n.name?n:e);i((0,A.Gi)({items:s})),o.ZP.success("Parameters Updated!",{id:"paramsName"})}catch(e){o.ZP.error("Something went wrong! Please try again.",{id:"paramsName"})}};return d?(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,t.jsxs)("div",{className:"sm:col-span-5",children:[(0,t.jsx)(L.Z,{label:"Select ComputeClass",popoverheader:"Select ComputeClass",popovercontent:(0,t.jsx)("p",{children:"Please select the labels for this service. This means the service will run on a specific node! For custom labels, add them to a node first."})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("select",{name:"computeClass",value:u.computeClass,onChange:e=>{let{name:s,value:a}=e.target;p(e=>({...e,[s]:a}))},className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[...d].reverse().map(e=>(0,t.jsx)("option",{value:e,children:e},e))})})]})})}):null},X=e=>{let{deployment:s,icon:a,description:r,children:n}=e;return(0,t.jsxs)("li",{className:"relative flex items-center space-x-4 py-4",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-auto",children:[(0,t.jsxs)("div",{className:"flex items-center gap-x-3",children:[(0,t.jsx)(a,{className:"h-5 w-5 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600","aria-hidden":"true"}),(0,t.jsx)("h2",{className:"min-w-0 text-sm font-semibold leading-6 text-gray-900",children:(0,t.jsx)("a",{href:"#",className:"flex gap-x-2",children:(0,t.jsxs)("span",{className:"whitespace-nowrap text-gray-900",children:[s.name,(0,t.jsx)("span",{className:"text-base text-rose-500",children:"*️"})]})})})]}),(0,t.jsxs)("div",{className:"mt-3 flex items-center gap-x-2.5 text-xs leading-5 text-gray-400",children:[(0,t.jsx)("p",{className:"whitespace-nowrap truncate",children:r}),(0,t.jsx)("br",{})]})]}),n]},s.name)},F=a(70694),V=a(96764),z=e=>{let{deployment:s,children:a}=e;return(0,t.jsxs)(F.yo,{children:[(0,t.jsx)(F.aM,{asChild:!0,children:(0,t.jsxs)(u.z,{variant:"outline",children:["Edit Params"," ",(0,t.jsx)(V.Z,{className:"ml-2 -mr-0.5 h-5 w-5 flex-none text-gray-400","aria-hidden":"true"})]})}),(0,t.jsxs)(F.ue,{className:"overflow-auto",children:[(0,t.jsxs)(F.Tu,{children:[(0,t.jsxs)(F.bC,{children:["Edit ",s.name," values"]}),(0,t.jsx)(F.Ei,{children:"You can update these values and click update. These are current default values. If there is no value to update then it will be empty."})]}),(0,t.jsx)("div",{className:"grid gap-4 py-4 overflow-visible",children:a})]})]})},O=a(74859);let W=e=>e.items.filter(e=>{if("true"===O.env.NEXT_PUBLIC_SNOWFLAKE){var s,a;return(null==e?void 0:null===(s=e.spec)||void 0===s?void 0:s.category)!=="databases"&&(null==e?void 0:null===(a=e.spec)||void 0===a?void 0:a.category)!=="mongodb"&&(null==e?void 0:e.name)!=="monitoring"}return!0}).sort((e,s)=>e.names.name?1:0).map(e=>(0,t.jsx)(X,{deployment:e,icon:(null==e?void 0:e.icon)||_.Z,description:(null==e?void 0:e.description)||"".concat(e.name," is a service of superduper required to run the application."),children:(0,t.jsx)(z,{deployment:e,children:(0,t.jsx)(B,{data:e,paramsName:"".concat(e.name,"Params")})})},e.id));var q=()=>{let e=(0,m.v9)(e=>e.environment.environmentLoadedValues),s=(0,m.v9)(e=>{var s;return null==e?void 0:null===(s=e.userInfo)||void 0===s?void 0:s.userInfoLoadedValues}),a=(0,m.I0)(),l=(0,m.v9)(e=>e.nodegroups.nodeUniqueLabels),o=(0,m.v9)(e=>e.chartsgroups.chartsLoadedValues),d=(0,m.v9)(e=>e.deploymentName.deploymentNameLoadedValues.name);return((0,r.useEffect)(()=>{let t=async()=>{try{let t=await n.Z.get("".concat("".concat(O.env.NEXT_PUBLIC_API,"/charts?deployment=").concat(d)),{headers:{Accept:"application/json",Authorization:(0,C.Z)(s),superduper_reverse_proxy:O.env.NEXT_PUBLIC_API||e.NEXT_PUBLIC_API}});console.log("Charts API data:",t.data),a((0,A.Gi)(t.data))}catch(e){console.error("Error fetching Services API data")}};o||t()},[o,a]),o||l)?(0,t.jsx)("div",{className:"mb-8",children:(0,t.jsx)("div",{className:"bg-white px-2 py-5 sm:px-2",children:(0,t.jsxs)("ul",{role:"list",className:"divide-y divide-red/5",children:[o&&W(o)," "]})})}):(0,t.jsxs)("div",{className:"mt-2 ml-4",children:[(0,t.jsx)(i.Z,{})," "]})},G=a(56511),M=a(28251),K=a(64520),Y=a(81695),$=a(72513),H=a(98348),J=e=>{var s,a;let{data:n}=e,l=(0,m.I0)(),i=(0,m.v9)(e=>e.chartsgroups.chartsLoadedValues),o=(0,m.v9)(e=>e.nodegroups.nodeUniqueLabels),[d,c]=(0,r.useState)({computeClass:(null==n?void 0:null===(a=n.spec)||void 0===a?void 0:null===(s=a.monitoringParams)||void 0===s?void 0:s.computeClass)||""}),u=(0,r.useRef)(d);(0,r.useEffect)(()=>{Z()(d,u.current)||(p(),u.current=d)},[d]),(0,m.v9)(e=>e.nodegroups.nodeLoadedValues);let p=()=>{if(i&&i.items){var e,s;let a=(e=i.items,s=d.computeClass,function e(a){if(Array.isArray(a))return a.map(s=>e(s));if("object"!=typeof a||null===a)return a;for(let t in a)a[t]=e(a[t]),"computeClass"===t&&(a[t]=s);return a}(e));l((0,A.Gi)({items:a}))}else console.error("chartsgroups or chartsgroups.items is undefined")};return(0,t.jsx)("div",{children:o&&(0,t.jsx)("div",{className:"mt-1 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,t.jsxs)("div",{className:"sm:col-span-3",children:[(0,t.jsx)(L.Z,{label:"Select Default ComputeClass for services",popoverheader:"Select Default ComputeClass",popovercontent:(0,t.jsx)("p",{children:"Please select the default compute class for all of the services and databases. If you have workloads that have unique hardware requirements, such as performing machine learning or AI tasks, needing specific CPU platforms and architecture, or needing performance isolation among users, Superduper offers compute classes. These compute classes are a curated subset of the infrastructure machine types. You can assign a compute class to a workload to ensure that it runs on the right type of machine."})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsxs)("select",{name:"computeClass",value:d.computeClass,onChange:e=>{let{name:s,value:a}=e.target;c(e=>({...e,[s]:a}))},className:"block w-2/3 rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[(0,t.jsx)("option",{value:"",children:"Select Default ComputeClass for services"},"defaults"),o&&o.length>0?[...o].map(e=>e&&(0,t.jsx)("option",{value:e,children:e},e)):[(0,t.jsx)("option",{value:"default",children:"default"},"default")]]})})]})})})},Q=a(73042),ee=a(35463),es=a(7682),ea=a(46346),et=a(58991),er=a(94432),en=a(74859);function el(){let e=(0,m.v9)(e=>e.environment.environmentLoadedValues),s=(0,m.v9)(e=>{var s;return null==e?void 0:null===(s=e.userInfo)||void 0===s?void 0:s.userInfoLoadedValues}),a=(0,m.v9)(e=>e.secrets),i=(0,Y.useRouter)(),d=(0,m.v9)(e=>e.deploymentName.deploymentNameLoadedValues.name),c=(0,m.v9)(e=>e.chartsgroups.chartsLoadedValues),u=(0,m.v9)(e=>e.nodegroups.nodeLoadedValues),p=(0,m.v9)(e=>e.deployment.deploymentLoadedValues),x=(0,m.v9)(e=>e.extraEnvVars),[v,g]=(0,r.useState)("Something went wrong while creating the deployment. Please try again later."),[f,y]=(0,r.useState)(!1),[j,b]=(0,r.useState)(!1),[N,w]=(0,r.useState)(!1),[P,E]=(0,r.useState)(!1),_=e=>{try{let{name:s,tag:a}=(0,er.Z)(e);if(!s||!a){console.error("Invalid image or tag:",s,a),o.ZP.error("Invalid image or tag. Please try again.");return}let t=c.items.map(e=>{for(let t of Object.keys(e.spec))t.endsWith("Params")&&e.spec[t].image&&(e.spec[t].image.name=s,e.spec[t].image.tag=a);return e});console.log("Updated items:",t),dispatch(chartsLoadedValues({items:t}))}catch(e){console.error("Update failed:",e)}},A=async()=>{var t,r,l;let i;try{if("true"==en.env.NEXT_PUBLIC_SNOWFLAKE&&(null==p?void 0:p.databaseURI)===""){o.ZP.error("Database URI is missing.",{duration:5e3});return}_(null===(t=userEnv)||void 0===t?void 0:t.image),window.scrollTo({top:0,behavior:"smooth"});let r={name:d,spec:{fake:!!d.startsWith("fake"),dataEndpoints:{artifactStore:{backendType:"",connectionURI:(null==p?void 0:p.artifactStoreURI)||""},dataStore:{backendType:"",connectionURI:(null==p?void 0:p.databaseURI)||""},metadataStore:{backendType:"",connectionURI:(null==p?void 0:p.metadataStoreURI)||""},extraEnvVars:"true"==en.env.NEXT_PUBLIC_SNOWFLAKE?[]:x||[]},nodeGroupList:u.items.map(e=>{let{status:s,...a}=e;return a}).filter(e=>{var s;return(null==e?void 0:null===(s=e.spec)||void 0===s?void 0:s.extraComputeClass)&&e.spec.extraComputeClass.length>0}),secrets:"true"==en.env.NEXT_PUBLIC_SNOWFLAKE&&a||[],serviceList:c.items.map(e=>{let{status:s,...a}=e;return a}).filter(e=>{if("true"===en.env.NEXT_PUBLIC_SNOWFLAKE){var s;return(null==e?void 0:null===(s=e.spec)||void 0===s?void 0:s.category)!=="databases"&&(null==e?void 0:e.name)!=="mongodb"&&(null==e?void 0:e.name)!=="monitoring"}return!0}).filter(e=>{let{name:s}=e;return!("mongodb"===s&&((null==p?void 0:p.artifactStoreURI)||(null==p?void 0:p.databaseURI)||(null==p?void 0:p.metadataStoreURI)))})}};E(!0),console.log("\uD83D\uDC49 REQUEST DATA",r);let l={headers:{Accept:"application/json","Content-Type":"application/json",Authorization:(0,C.Z)(s),superduper_reverse_proxy:en.env.NEXT_PUBLIC_API||e.NEXT_PUBLIC_API}};y(!0),i=o.ZP.loading("Deployment in progress...",{duration:1/0}),await new Promise(e=>setTimeout(e,3e3));let m=await n.Z.post("".concat("".concat(en.env.NEXT_PUBLIC_API,"/deployments")),r,l);console.log("RESULT:",m.data),await new Promise(e=>setTimeout(e,5e3)),o.ZP.dismiss(i),window.location.assign("/webui?deployment=done&query=1m"),o.ZP.success("Deployment successful!",{icon:"\uD83D\uDE80",duration:5e3})}catch(e){i&&o.ZP.dismiss(i),e.response&&"true"===en.env.NEXT_PUBLIC_SNOWFLAKE&&200!==e.response.status&&400!==e.response.status?(console.error("Deployment Form Submission Error:",e.response.data),g((null===(r=e.response)||void 0===r?void 0:r.data)||e.message)):(console.error("Deployment Form Submission Error:",e),g((null===(l=e.response)||void 0===l?void 0:l.data)||e.message)),w(!0),o.ZP.error("Deployment failed. Please try again.",{duration:5e3})}finally{E(!1),y(!1),b(!1)}},S=async()=>{var t,r;let l;try{if("true"==en.env.NEXT_PUBLIC_SNOWFLAKE&&(null==p?void 0:p.databaseURI)===""){o.ZP.error("Database URI is missing.",{duration:5e3});return}_(null===(t=userEnv)||void 0===t?void 0:t.image);let r={name:d,spec:{fake:!!d.startsWith("fake"),dataEndpoints:{artifactStore:{backendType:"",connectionURI:(null==p?void 0:p.artifactStoreURI)||""},dataStore:{backendType:"",connectionURI:(null==p?void 0:p.databaseURI)||""},metadataStore:{backendType:"",connectionURI:(null==p?void 0:p.metadataStoreURI)||""},extraEnvVars:"true"==en.env.NEXT_PUBLIC_SNOWFLAKE?[]:x||[]},nodeGroupList:u.items.map(e=>{let{status:s,...a}=e;return a}).filter(e=>{var s;return(null==e?void 0:null===(s=e.spec)||void 0===s?void 0:s.extraComputeClass)&&e.spec.extraComputeClass.length>0}),secrets:"true"==en.env.NEXT_PUBLIC_SNOWFLAKE&&a||[],serviceList:c.items.map(e=>{let{status:s,...a}=e;return a}).filter(e=>{if("true"===en.env.NEXT_PUBLIC_SNOWFLAKE){var s;return(null==e?void 0:null===(s=e.spec)||void 0===s?void 0:s.category)!=="databases"&&(null==e?void 0:e.name)!=="mongodb"&&(null==e?void 0:e.name)!=="monitoring"}return!0}).filter(e=>{let{name:s}=e;return!("mongodb"===s&&((null==p?void 0:p.artifactStoreURI)||(null==p?void 0:p.databaseURI)||(null==p?void 0:p.metadataStoreURI)))})}};console.log("\uD83D\uDC49 REQUEST DATA",r),y(!0),l=o.ZP.loading("Retrying deployment...",{duration:1/0}),await new Promise(e=>setTimeout(e,5e3));let m={headers:{Accept:"application/json","Content-Type":"application/json",Authorization:(0,C.Z)(s),superduper_reverse_proxy:en.env.NEXT_PUBLIC_API||e.NEXT_PUBLIC_API}},h=await n.Z.post("".concat("".concat(en.env.NEXT_PUBLIC_API,"/deployments")),r,m);console.log("RESULT:",h.data),await new Promise(e=>setTimeout(e,5e3)),o.ZP.dismiss(l),o.ZP.success("Deployment is successful.",{duration:5e3}),i.push("/webui?deployment=done&query=1m",void 0,{shallow:!1}),b(!1)}catch(e){l&&o.ZP.dismiss(l),e.response&&200!==e.response.status&&400!==e.response.status?(console.error("Deployment Form Submission Error:",e.response.data),i.push("/webui?deployment=done&query=1m",void 0,{shallow:!1}),o.ZP.success("Deployment successful!",{icon:"\uD83D\uDE80",duration:5e3})):(console.error("Deployment Form Submission Error:",e),g((null===(r=e.response)||void 0===r?void 0:r.data)||e.message),w(!0),o.ZP.error("Deployment retry failed. Please try again.",{duration:5e3}))}finally{y(!1),b(!1)}};return f?(0,t.jsx)(et.Z,{}):(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"pb-2",children:[(0,t.jsx)("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:"Step 1: Set Compute Classes"}),(0,t.jsx)("p",{className:"mt-1 text-sm leading-6 text-gray-600",children:"ComputeClass enables users to influence the scheduling of Services on nodes based on specific criteria such as hardware capabilities, geographic location, or other custom requirements."})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(I,{}),(0,t.jsx)(J,{}),(0,t.jsx)("br",{})]}),(0,t.jsxs)("div",{className:"border-b border-gray-900/10 pb-12",children:[(0,t.jsx)("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:"Step 2: Add Databackend"}),(0,t.jsx)("p",{className:"mt-1 text-sm leading-6 text-gray-600",children:"At first you have to add a database to your deployment. You can update the parameters below. We will deploy and handle the rest."}),(0,t.jsx)("br",{}),"true"!==en.env.NEXT_PUBLIC_SNOWFLAKE?(0,t.jsx)(G.Z,{}):(0,t.jsx)(M.Z,{})]}),(0,t.jsx)("br",{}),(0,t.jsxs)("div",{className:"pb-4",children:[(0,t.jsx)("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:"Step 3: Define Parameters"}),(0,t.jsx)("p",{className:"mt-1 text-sm leading-6 text-gray-600",children:"Update the services you want to install on your deployment. You can click on the service to edit the configuration."}),(0,t.jsxs)("div",{style:{marginLeft:"-1.5rem!important"},children:[(0,t.jsx)(Q.Z,{}),"true"==en.env.NEXT_PUBLIC_SNOWFLAKE?(0,t.jsx)(es.Z,{}):(0,t.jsx)(ee.Z,{}),(0,t.jsx)(q,{})]})]}),(0,t.jsxs)("div",{className:"mt-6 flex items-center justify-end gap-x-6",children:[(0,t.jsx)(l.default,{href:"/webui",children:(0,t.jsx)("button",{type:"button",className:"text-sm font-semibold leading-6 text-gray-900",children:"Cancel"})}),(0,t.jsxs)(K.aR,{children:[(0,t.jsx)(K.vW,{className:"rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Start Deployment"}),(0,t.jsxs)(K._T,{children:[(0,t.jsxs)(K.fY,{children:[(0,t.jsx)(K.f$,{children:"Start creating deployment now..."}),(0,t.jsx)(K.yT,{children:"This will create a deployment and it will take some time to finish. Please be patient. Do you want to continue?"})]}),(0,t.jsxs)(K.xo,{children:[(0,t.jsx)(K.le,{children:"Cancel"}),(0,t.jsx)(K.OL,{onClick:()=>{b(!0),A()},children:"Continue"})]})]})]})]}),(0,t.jsx)(K.aR,{open:j,children:(0,t.jsx)(K._T,{children:(0,t.jsxs)(K.fY,{children:[(0,t.jsx)(K.f$,{children:"Started deployment process..."}),(0,t.jsx)(K.yT,{children:"This initiates a deployment process that may take some time. Please wait patiently. You'll be redirected to the dashboard once it's complete."}),(0,t.jsx)("br",{}),(0,t.jsx)(H.O,{})]})})}),(0,t.jsx)(K.aR,{open:N,children:(0,t.jsxs)(K._T,{children:[(0,t.jsxs)(K.fY,{children:[(0,t.jsx)(K.f$,{children:"Deployment Failed"}),(0,t.jsx)(K.yT,{children:(0,t.jsxs)($.bZ,{variant:"destructive",children:[(0,t.jsx)(h.LPM,{className:"h-4 w-4"}),(0,t.jsx)($.Cd,{children:"Error"}),(0,t.jsx)(ea.x,{className:"scrollbar-visible h-[200px] w-full mt-2 pr-4",children:(0,t.jsx)($.X,{children:v})})]})})]}),(0,t.jsxs)(K.xo,{children:[(0,t.jsx)(K.le,{onClick:()=>{w(!1),b(!1)},children:"Cancel"}),(0,t.jsx)(K.OL,{onClick:()=>{b(!0),w(!1),S()},children:"Retry Now"})]})]})})]})]})}},72513:function(e,s,a){a.d(s,{Cd:function(){return d},X:function(){return c},bZ:function(){return o}});var t=a(27573),r=a(7653),n=a(85145),l=a(18580);let i=(0,n.j)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),o=r.forwardRef((e,s)=>{let{className:a,variant:r,...n}=e;return(0,t.jsx)("div",{ref:s,role:"alert",className:(0,l.cn)(i({variant:r}),a),...n})});o.displayName="Alert";let d=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("h5",{ref:s,className:(0,l.cn)("mb-1 font-medium leading-none tracking-tight",a),...r})});d.displayName="AlertTitle";let c=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,l.cn)("text-sm [&_p]:leading-relaxed",a),...r})});c.displayName="AlertDescription"},4216:function(e,s,a){a.d(s,{X:function(){return o}});var t=a(27573),r=a(7653),n=a(92999),l=a(85688),i=a(18580);let o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(n.fC,{ref:s,className:(0,i.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",a),...r,children:(0,t.jsx)(n.z$,{className:(0,i.cn)("flex items-center justify-center text-current"),children:(0,t.jsx)(l.nQG,{className:"h-4 w-4"})})})});o.displayName=n.fC.displayName},42502:function(e,s,a){a.d(s,{$F:function(){return d},AW:function(){return u},Xi:function(){return m},_x:function(){return c},h_:function(){return o},qB:function(){return p}});var t=a(27573),r=a(7653),n=a(49002),l=a(85688),i=a(18580);let o=n.fC,d=n.xz;n.ZA,n.Uv,n.Tr;let c=n.Ee;r.forwardRef((e,s)=>{let{className:a,inset:r,children:o,...d}=e;return(0,t.jsxs)(n.fF,{ref:s,className:(0,i.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",r&&"pl-8",a),...d,children:[o,(0,t.jsx)(l.XCv,{className:"ml-auto h-4 w-4"})]})}).displayName=n.fF.displayName,r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(n.tu,{ref:s,className:(0,i.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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",a),...r})}).displayName=n.tu.displayName;let u=r.forwardRef((e,s)=>{let{className:a,sideOffset:r=4,...l}=e;return(0,t.jsx)(n.Uv,{children:(0,t.jsx)(n.VY,{ref:s,sideOffset:r,className:(0,i.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","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",a),...l})})});u.displayName=n.VY.displayName;let m=r.forwardRef((e,s)=>{let{className:a,inset:r,...l}=e;return(0,t.jsx)(n.ck,{ref:s,className:(0,i.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r&&"pl-8",a),...l})});m.displayName=n.ck.displayName,r.forwardRef((e,s)=>{let{className:a,children:r,checked:o,...d}=e;return(0,t.jsxs)(n.oC,{ref:s,className:(0,i.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:o,...d,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(n.wU,{children:(0,t.jsx)(l.nQG,{className:"h-4 w-4"})})}),r]})}).displayName=n.oC.displayName;let p=r.forwardRef((e,s)=>{let{className:a,children:r,...o}=e;return(0,t.jsxs)(n.Rk,{ref:s,className:(0,i.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...o,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(n.wU,{children:(0,t.jsx)(l.jXb,{className:"h-4 w-4 fill-current"})})}),r]})});p.displayName=n.Rk.displayName,r.forwardRef((e,s)=>{let{className:a,inset:r,...l}=e;return(0,t.jsx)(n.__,{ref:s,className:(0,i.cn)("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",a),...l})}).displayName=n.__.displayName,r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(n.Z0,{ref:s,className:(0,i.cn)("-mx-1 my-1 h-px bg-muted",a),...r})}).displayName=n.Z0.displayName},80500:function(e,s,a){a.d(s,{RM:function(){return o},SC:function(){return d},iA:function(){return l},pj:function(){return u},ss:function(){return c},xD:function(){return i}});var t=a(27573),r=a(7653),n=a(18580);let l=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{className:"relative w-full overflow-auto",children:(0,t.jsx)("table",{ref:s,className:(0,n.cn)("w-full caption-bottom text-sm",a),...r})})});l.displayName="Table";let i=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("thead",{ref:s,className:(0,n.cn)("[&_tr]:border-b",a),...r})});i.displayName="TableHeader";let o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("tbody",{ref:s,className:(0,n.cn)("[&_tr:last-child]:border-0",a),...r})});o.displayName="TableBody",r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("tfoot",{ref:s,className:(0,n.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...r})}).displayName="TableFooter";let d=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("tr",{ref:s,className:(0,n.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...r})});d.displayName="TableRow";let c=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("th",{ref:s,className:(0,n.cn)("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...r})});c.displayName="TableHead";let u=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("td",{ref:s,className:(0,n.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...r})});u.displayName="TableCell",r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("caption",{ref:s,className:(0,n.cn)("mt-4 text-sm text-muted-foreground",a),...r})}).displayName="TableCaption"},4482:function(e,s,a){a.d(s,{_v:function(){return c},aJ:function(){return d},pn:function(){return i},u:function(){return o}});var t=a(27573),r=a(7653),n=a(23098),l=a(18580);let i=n.zt,o=n.fC,d=n.xz,c=r.forwardRef((e,s)=>{let{className:a,sideOffset:r=4,...i}=e;return(0,t.jsx)(n.VY,{ref:s,sideOffset:r,className:(0,l.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",a),...i})});c.displayName=n.VY.displayName},58991:function(e,s,a){a.d(s,{Z:function(){return f}});var t=a(27573),r=a(7653),n=a(12198),l=a(34527),i=a(82440),o=a(66465),d=a(53896),c=a(86288),u=a(13908),m=a(81695),p=a(7109),x=a(412),h=a(70790),v=a(74859);let g=[{key:"initializing",icon:n.Z,label:"Initializing",duration:3e3},{key:"building",icon:l.Z,label:"Building",duration:3e3},{key:"deploying",icon:i.Z,label:"Deploying",duration:3e3},{key:"success",icon:o.Z,label:"Success",duration:3e3}];function f(){let[e,s]=(0,r.useState)("initializing"),[a,n]=(0,r.useState)(0),l=(0,x.v9)(e=>e.environment.environmentLoadedValues),i=(0,x.v9)(e=>{var s;return null==e?void 0:null===(s=e.userInfo)||void 0===s?void 0:s.userInfoLoadedValues}),o=(0,m.useRouter)(),f=(0,x.v9)(e=>e.deploymentName.deploymentNameLoadedValues.name),y=async e=>(await u.Z.get(e,{headers:{Accept:"application/json",Authorization:(0,p.Z)(i),superduper_reverse_proxy:v.env.NEXT_PUBLIC_API||l.NEXT_PUBLIC_API}})).data,{data:j,error:b}=(0,h.ZP)("".concat("".concat(v.env.NEXT_PUBLIC_API,"/deployments/").concat(f)),"".concat("".concat(v.env.NEXT_PUBLIC_API,"/deployments/").concat(f,"/")),y,{refreshInterval:0,revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});(0,r.useEffect)(()=>{j&&o.push("/webui?deployment=done&query=1m",void 0,{shallow:!0})},[j]),(0,r.useEffect)(()=>{N()},[]);let N=()=>{s("initializing"),n(0)};return(0,r.useEffect)(()=>{if("success"===e)return;let a=g.find(s=>s.key===e),t=g.findIndex(s=>s.key===e);n(0);let r=setInterval(()=>{n(e=>{let s=e+100/(a.duration/100);return s>=100?100:s})},100),l=setTimeout(()=>{t{clearInterval(r),clearTimeout(l)}},[e]),(0,t.jsxs)("div",{className:"flex items-center justify-center min-h-screen w-full bg-background",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-primary/10 to-transparent h-96 pointer-events-none"}),(0,t.jsxs)(c.Zb,{className:"w-full max-w-6xl shadow-lg relative -mt-20",children:[(0,t.jsxs)(c.Ol,{className:"text-center space-y-2",children:[(0,t.jsx)(c.ll,{className:"text-4xl font-extrabold tracking-tight",children:"Deployment Status"}),(0,t.jsx)("p",{className:"text-xl text-muted-foreground",children:"Tracking progress of your deployment"})]}),(0,t.jsx)(c.aY,{children:(0,t.jsxs)("div",{className:"flex flex-col md:flex-row gap-8",children:[(0,t.jsxs)("div",{className:"w-full md:w-1/3 md:border-r md:pr-8",children:[(0,t.jsx)("h2",{className:"text-xl font-semibold mb-6",children:"Deployment Stages"}),(0,t.jsx)("ul",{className:"space-y-6",children:g.map(s=>{let a=s.icon,r=s.key===e,n=g.findIndex(s=>s.key===e)>g.findIndex(e=>e.key===s.key);return(0,t.jsxs)("li",{className:"flex items-center space-x-3 ".concat(r?"text-primary font-medium":n?"text-green-600":"text-muted-foreground"),children:[(0,t.jsx)(a,{className:"w-5 h-5"}),(0,t.jsx)("span",{children:s.label}),n&&(0,t.jsx)(d.Z,{className:"w-4 h-4 text-green-600"})]},s.key)})})]}),(0,t.jsxs)("div",{className:"w-full md:w-2/3 md:pl-8 flex flex-col items-center",children:[(0,t.jsx)("h2",{className:"text-xl font-semibold mb-6",children:"Progress"}),(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center mb-8",children:["success"===e?(0,t.jsx)(d.Z,{className:"text-green-500 w-24 h-24 mb-4"}):(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("svg",{className:"w-24 h-24",viewBox:"0 0 100 100",children:[(0,t.jsx)("circle",{className:"text-gray-200",strokeWidth:"8",stroke:"currentColor",fill:"transparent",r:"42",cx:"50",cy:"50"}),(0,t.jsx)("circle",{className:"text-primary",strokeWidth:"8",strokeDasharray:264,strokeDashoffset:264-a/100*264,strokeLinecap:"round",stroke:"url(#gradient)",fill:"transparent",r:"42",cx:"50",cy:"50"}),(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"gradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"hsl(var(--primary))"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"hsl(var(--primary))"})]})})]}),(0,t.jsxs)("span",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-xl font-semibold",children:[Math.round(a),"%"]})]}),(0,t.jsx)("p",{className:"text-center text-lg font-medium mt-4",children:(()=>{switch(e){case"initializing":return"Deployment ongoing, initializing...";case"building":return"Deployment ongoing, building files...";case"deploying":return"Deployment ongoing, finalizing production setup...";case"success":return"Deployment ongoing, almost live!";default:return"Deployment ongoing, wrapping up..."}})()})]})]})]})})]})]})}},7682:function(e,s,a){a.d(s,{Z:function(){return A}});var t=a(27573),r=a(7653),n=a(412),l=a(36531),i=a(80500),o=a(86288),d=a(3172),c=a(47686),u=a(6315),m=a(10997),p=a(19434),x=a(11952);let h=e=>s=>s({type:x.e,payload:e});var v=a(45696),g=a.n(v),f=a(93296),y=a(13908),j=a(7109),b=a(24776),N=a(1930),C=a(18580);let w=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("textarea",{className:(0,C.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",a),ref:s,...r})});w.displayName="Textarea";var P=a(97747);function I(e){let{open:s,onOpenChange:a,onSubmit:n,initialData:i,mode:o}=e,[d,c]=(0,r.useState)((null==i?void 0:i.name)||""),[u,m]=(0,r.useState)((null==i?void 0:i.value)||"");return(0,r.useEffect)(()=>{i?(c(i.name),m(i.value)):(c(""),m(""))},[i]),(0,t.jsx)(b.Vq,{open:s,onOpenChange:a,children:(0,t.jsx)(b.cZ,{className:"sm:max-w-[600px]",children:(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),n(d,u),c(""),m(""),a(!1)},children:[(0,t.jsxs)(b.fK,{children:[(0,t.jsx)(b.$N,{children:"add"===o?"Add secret":"Edit secret"}),(0,t.jsx)(b.Be,{children:"add"===o?"Add a new secret to your environment.":"Edit secret on your existing environment"})]}),(0,t.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)(P._,{htmlFor:"name",children:"Name"}),(0,t.jsx)(N.I,{id:"name",placeholder:"YOUR_SECRET_NAME",value:d,onChange:e=>c(e.target.value),disabled:"edit"===o})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)(P._,{htmlFor:"value",children:"Value"}),(0,t.jsx)(w,{id:"value",placeholder:"Secret value",value:u,onChange:e=>m(e.target.value),className:"min-h-[100px]"})]})]}),(0,t.jsxs)(b.cN,{children:[(0,t.jsx)(l.z,{type:"button",variant:"secondary",onClick:()=>a(!1),children:"Cancel"}),(0,t.jsx)(l.z,{type:"submit",children:"add"===o?"Add secret":"Save changes"})]})]})})})}var E=a(5772),_=a(74859);function A(e){let{data:s}=e,a=(0,n.I0)(),[x,v]=(0,r.useState)([]),[b,N]=(0,r.useState)(!1),[C,w]=(0,r.useState)(null),P=(0,r.useRef)(null),A=(0,n.v9)(e=>e.deploymentName.deploymentNameLoadedValues.name),Z=(0,n.v9)(e=>{var s;return null==e?void 0:null===(s=e.userInfo)||void 0===s?void 0:s.userInfoLoadedValues}),[L,U]=(0,r.useState)([]),[k,T]=(0,r.useState)(!1),R=(0,n.v9)(e=>e.environment.environmentLoadedValues),D=(0,n.v9)(e=>e.extraEnvVars),B=(0,n.v9)(e=>e.secrets),X=async(e,s)=>{try{let t={headers:{Accept:"application/json",Authorization:(0,j.Z)(Z),superduper_reverse_proxy:_.env.NEXT_PUBLIC_API||R.NEXT_PUBLIC_API}},r="".concat(_.env.NEXT_PUBLIC_API,"/secrets?deployment=").concat(A),n=await y.Z.post(r,{name:e,spec:{stringData:{[e]:s},type:"Opaque"}},t),l=S(n.data);a(h([...B[0],...l])),a((0,p.I)(g()([...D,{name:e,value:s}]))),U([...L,e]),f.ZP.success("Secret added successfully!")}catch(e){console.error("Error adding secret:",e),f.ZP.error("Failed to add secret")}},F=async(e,s)=>{try{let t={headers:{Accept:"application/json",Authorization:(0,j.Z)(Z),superduper_reverse_proxy:_.env.NEXT_PUBLIC_API||R.NEXT_PUBLIC_API}},r="".concat(_.env.NEXT_PUBLIC_API,"/secrets/").concat(e,"?deployment=").concat(A),n=await y.Z.put(r,{name:e,spec:{stringData:{[e]:s},type:"Opaque"}},t),l=S(n.data);a(h([...B[0],...l]));let i=D.map(a=>a.name===e?{...a,value:s}:a);a((0,p.I)(g()(i))),f.ZP.success("Secret updated successfully!")}catch(e){console.error("Error updating secret:",e),f.ZP.error("Failed to update secret")}},V=async e=>{try{let s={headers:{Accept:"application/json",Authorization:(0,j.Z)(Z),superduper_reverse_proxy:_.env.NEXT_PUBLIC_API||R.NEXT_PUBLIC_API}},t=D[e];if(t){let e="".concat(_.env.NEXT_PUBLIC_API,"/secrets/").concat(t.name,"?deployment=").concat(A);try{await y.Z.delete(e,s),f.ZP.success("Secret ".concat(t.name," removed successfully"))}catch(e){console.error("Failed to delete secret ".concat(t.name,":"),e),f.ZP.error("Error removing secret: ".concat(t.name));return}}let r=D.filter((s,a)=>a!==e);a((0,p.I)(g()(r))),v(x.filter((s,a)=>a!==e))}catch(e){console.error("Unexpected error in removing secrets:",e),f.ZP.error("An unexpected error occurred. Please try again.")}};return((0,r.useEffect)(()=>{let e=e=>(console.error("Error occurred:",e),console.log("Using fallback logic. Returning an empty array."),[]),s=async()=>{try{T(!0);let e="".concat(_.env.NEXT_PUBLIC_API,"/secrets?deployment=").concat(A),s=await y.Z.get(e,{headers:{Accept:"application/json",Authorization:(0,j.Z)(Z),superduper_reverse_proxy:_.env.NEXT_PUBLIC_API||R.NEXT_PUBLIC_API}});console.log("Secrets retrieved successfully:",s.data);let t=function(e){try{if(e&&Array.isArray(e.items))return e.items.map(e=>e.name)}catch(e){console.error("Error processing payload:",e)}return[]}(s.data),r=S(s.data);return a(h([r])),U(t),function(e){let s=[...D],t=e.filter(e=>!s.some(s=>s.name===e));t.length>0&&(t.forEach(e=>{s.push({name:e,value:""})}),a((0,p.I)(g()(s))))}(t),t}catch(s){return console.log("Error Propagation",s),e(s)}finally{T(!1)}};(async()=>{console.log("Final secrets array:",await s())})()},[]),k)?(0,t.jsx)(E.Z,{}):D&&Array.isArray(D)?(0,t.jsxs)(o.Zb,{className:"w-full",children:[(0,t.jsxs)(o.Ol,{children:[(0,t.jsx)(o.ll,{className:"text-xl font-semibold",children:"Environment secrets"}),(0,t.jsx)(o.SZ,{children:"Secrets are encrypted environment variables. They are accessible only by deployment actions in the context of this environment."})]}),(0,t.jsx)(o.aY,{children:(0,t.jsxs)("div",{className:"space-y-4",children:[0===D.length?(0,t.jsxs)("div",{className:"rounded-lg border border-dashed p-12 text-center",children:[(0,t.jsx)("div",{className:"text-muted-foreground mb-4",children:"This environment has no secrets."}),(0,t.jsxs)(l.z,{onClick:()=>N(!0),variant:"default",children:[(0,t.jsx)(d.Z,{className:"w-4 h-4 mr-2"}),"Add environment secret"]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"flex justify-between items-center",children:(0,t.jsx)("div",{className:"space-x-2",children:(0,t.jsxs)(l.z,{onClick:()=>N(!0),variant:"default",children:[(0,t.jsx)(d.Z,{className:"w-4 h-4 mr-2"}),"Add secret"]})})}),(0,t.jsxs)(i.iA,{children:[(0,t.jsx)(i.xD,{children:(0,t.jsxs)(i.SC,{children:[(0,t.jsx)(i.ss,{className:"w-[90%]",children:"Name"}),(0,t.jsx)(i.ss,{className:"w-[10%]"})]})}),(0,t.jsx)(i.RM,{children:D.map((e,s)=>(0,t.jsxs)(i.SC,{children:[(0,t.jsx)(i.pj,{children:(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(c.Z,{className:"w-4 h-4 text-muted-foreground"}),(0,t.jsx)("span",{children:e.name})]})}),(0,t.jsx)(i.pj,{children:(0,t.jsxs)("div",{className:"flex space-x-2",children:[(0,t.jsx)(l.z,{variant:"ghost",size:"icon",onClick:()=>{w(e),N(!0)},children:(0,t.jsx)(u.Z,{className:"h-4 w-4"})}),(0,t.jsx)(l.z,{variant:"ghost",size:"icon",onClick:()=>V(s),className:"hover:text-red-500",children:(0,t.jsx)(m.Z,{className:"h-4 w-4"})})]})})]},s))})]})]}),(0,t.jsx)("input",{ref:P,type:"file",onChange:e=>{let s=e.target.files[0];try{if(s){let e=new FileReader;e.onload=e=>{let s=e.target.result.split("\n").map(e=>{let[s,a]=e.split("=").map(e=>e.trim());return{name:s,value:a}}).filter(e=>e.name&&e.value);a((0,p.I)(g()([...D,...s]))),v(e=>[...e,...Array(s.length).fill(!1)])},e.readAsText(s)}}catch(e){console.error(e),f.ZP.error("Failed to parse the file. Please try again with .env or .txt format.")}},className:"hidden",accept:".env,.txt"})]})}),(0,t.jsx)(I,{open:b,onOpenChange:e=>{N(e),e||w(null)},onSubmit:C?F:X,initialData:C,mode:C?"edit":"add"})]}):null}function S(e){try{if(e&&Array.isArray(e.items))return e.items.map(e=>e.status.uid);if(e&&(null==e?void 0:e.status)&&(null==e?void 0:e.status.uid))return[e.status.uid]}catch(e){console.error("Error processing payload:",e)}return[]}},35463:function(e,s,a){var t=a(27573),r=a(7653),n=a(412),l=a(36531),i=a(9551),o=a(72940),d=a(13333),c=a(95417),u=a(37727),m=a(80923),p=a(19434),x=a(45696),h=a.n(x),v=a(93296);s.Z=e=>{let{data:s}=e,a=(0,n.I0)(),[x,g]=(0,r.useState)([]),f=(0,r.useRef)(null),y=(0,n.v9)(e=>e.extraEnvVars),j=(e,s,t)=>{let r=[...y];r[e][s]=t.target.value,a((0,p.I)(h()(r)))};(0,r.useEffect)(()=>{let e=[...y],s=(console.error("NEXT_PUBLIC_API_DEFAULT_ENV is not defined or empty."),[]).filter(s=>!e.some(e=>e.name===s));s.length>0&&(s.forEach(s=>{e.push({name:s,value:""})}),a((0,p.I)(h()(e))))},[a,y]);let b=e=>{let s=y.filter((s,a)=>a!==e),t=h()(s);a((0,p.I)(t)),g(x.filter((s,a)=>a!==e))},N=e=>{g(s=>{let a=[...s];return a[e]=!a[e],a})};return y&&Array.isArray(y)?(0,t.jsxs)("div",{children:[y.map((e,s)=>(0,t.jsx)("div",{className:"relative mt-5 grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-8",children:(0,t.jsxs)("div",{className:"sm:col-span-1 grid grid-cols-2 gap-x-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(m.Z,{label:"Key",popoverheader:"Key",popovercontent:(0,t.jsx)("p",{children:"Enter the key for the environment variable."})}),(0,t.jsx)("input",{name:"name-".concat(s),value:e.name,onChange:e=>j(s,"name",e),className:"mt-2 block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",placeholder:"Enter key"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(m.Z,{label:"Value",popoverheader:"Value",popovercontent:(0,t.jsx)("p",{children:"Enter the value for the environment variable."})}),(0,t.jsxs)("div",{className:"mt-2 flex items-center space-x-4 w-3xl max-w-md",children:[(0,t.jsxs)("div",{className:"relative flex-1",children:[(0,t.jsx)("input",{name:"value-".concat(s),value:e.value,type:x[s]?"text":"password",onChange:e=>j(s,"value",e),placeholder:"Enter value",className:"block w-3xl rounded-md border-0 py-1.5 pr-10 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"}),(0,t.jsx)("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3 cursor-pointer",onClick:()=>N(s),children:x[s]?(0,t.jsx)(i.Z,{className:"h-5 w-5 text-gray-400 hover:text-gray-600"}):(0,t.jsx)(o.Z,{className:"h-5 w-5 text-gray-400 hover:text-gray-600"})})]}),(0,t.jsx)(l.z,{variant:"ghost",onClick:()=>b(s),className:"bg-black text-white hover:bg-red-500 hover:text-white dark:hover:bg-red-900 px-2",children:(0,t.jsx)(d.Z,{className:"h-4 w-4"})})]})]})]})},s)),(0,t.jsxs)("div",{className:"flex space-x-4 mt-4",children:[(0,t.jsxs)(l.z,{onClick:()=>{a((0,p.I)(h()([...y,{name:"",value:""}]))),g([...x,!1])},children:[(0,t.jsx)(c.Z,{className:"mr-2 h-4 w-4"}),"Add Secret"]}),(0,t.jsxs)(l.z,{onClick:()=>f.current.click(),children:[(0,t.jsx)(u.Z,{className:"mr-2 h-4 w-4"}),"Upload Secret File"]}),(0,t.jsx)("input",{ref:f,type:"file",onChange:e=>{let s=e.target.files[0];try{if(s){let e=new FileReader;e.onload=e=>{let s=e.target.result.split("\n").map(e=>{let[s,a]=e.split("=").map(e=>e.trim());return{name:s,value:a}}).filter(e=>e.name&&e.value);a((0,p.I)(h()([...y,...s]))),g(e=>[...e,...Array(s.length).fill(!1)])},e.readAsText(s)}}catch(e){console.error(e),v.ZP.error("Failed to parse the file. Please try again with .env or .txt format.")}},style:{display:"none"}})]})]}):null}},94432:function(e,s,a){a.d(s,{Z:function(){return t}});function t(e){let s=e.indexOf(":");return -1===s?{name:e,tag:"latest"}:{name:e.substring(0,s),tag:e.substring(s+1)}}},34611:function(e,s,a){a.d(s,{Gi:function(){return r}});var t=a(58108);let r=e=>s=>s({type:t.a6,payload:e})},4429:function(e,s,a){a.d(s,{a:function(){return r}});var t=a(49904);let r=e=>s=>s({type:t.s,payload:e})},19434:function(e,s,a){a.d(s,{I:function(){return r}});var t=a(82869);let r=e=>s=>s({type:t.I,payload:e})},60855:function(e,s,a){a.d(s,{Bw:function(){return n},Lj:function(){return l},NB:function(){return r}});var t=a(59625);let r=e=>s=>s({type:t.qJ,payload:e}),n=e=>s=>{let a=new Set;(null==e?void 0:e.items)&&Array.isArray(e.items)&&e.items.forEach(e=>{var s,t,r;(null==e?void 0:null===(t=e.status)||void 0===t?void 0:null===(s=t.reservation)||void 0===s?void 0:s.computeClassList)&&Array.isArray(e.status.reservation.computeClassList)&&e.status.reservation.computeClassList.forEach(e=>{a.add(e)});let n=(null==e?void 0:null===(r=e.spec)||void 0===r?void 0:r.extraComputeClass)||[];Array.isArray(n)&&n.forEach(e=>{a.add(e)})});let r=Array.from(a);return r.includes("base")&&(r=["base",...Array.from(a).filter(e=>"base"!==e)]),s({type:t.Ou,payload:r})},l=e=>s=>{let a=e;return e.includes("base")&&(a=["base",...e.filter(e=>"base"!==e)]),s({type:t.Ou,payload:a})}}}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/5141-f0f34dbf1ff997d1.js b/superduper/rest/out/_next/static/chunks/5141-f0f34dbf1ff997d1.js new file mode 100644 index 000000000..7df2b8a00 --- /dev/null +++ b/superduper/rest/out/_next/static/chunks/5141-f0f34dbf1ff997d1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5141],{39838:function(e,s,l){l.d(s,{Z:function(){return eH}});var t=l(27573),a=l(7653),n=l(70790),r=l(13908),i=l(412),o=l(34611),d=l(60855),c=l(44195);let u=e=>s=>s({type:c.m,payload:e});var x=l(64544),m=l(45034),h=l(97370),v=l(903),p=l(12900),g=l(93296),j=l(81695),f=l(98348),N=l(85688),y=l(88623),w=l(38983),b=l(87354),C=l(18580),L=l(36531),S=l(42502);let k=[{label:"Off",value:0},{label:"30s",value:3e4},{label:"1m",value:6e4},{label:"2m",value:12e4},{label:"5m",value:3e5},{label:"10m",value:6e5}];function E(){let e=(0,j.useRouter)(),s=(0,j.useSearchParams)(),[l,n]=(0,a.useState)(k[0]),[r,i]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=s.get("query");if(e){let s=k.find(s=>s.label.toLowerCase()===e.toLowerCase());s&&n(s)}},[s]),(0,a.useEffect)(()=>{if(l.value>0){let e=setInterval(()=>{let e=new URL(window.location.href);e.searchParams.set("query",l.label),window.history.replaceState(null,"",e.toString()),window.location.reload()},l.value);return()=>clearInterval(e)}},[l,e]);let o=e=>{n(e),i(!1);let s=new URL(window.location.href);s.searchParams.set("query",e.label),window.history.replaceState(null,"",s.toString())};return(0,t.jsxs)(S.h_,{open:r,onOpenChange:i,children:[(0,t.jsx)(S.$F,{asChild:!0,children:(0,t.jsxs)(L.z,{variant:"outline",role:"combobox","aria-expanded":r,className:"w-[150px] justify-between bg-background text-sm font-normal",children:[(0,t.jsx)(y.Z,{className:"mr-2 h-4 w-4"}),l.label,(0,t.jsx)(w.Z,{className:"ml-auto h-4 w-4 shrink-0 opacity-50"})]})}),(0,t.jsx)(S.AW,{className:"w-[150px]",children:k.map(e=>(0,t.jsxs)(S.Xi,{onSelect:()=>o(e),children:[(0,t.jsx)(b.Z,{className:(0,C.cn)("mr-2 h-4 w-4",l.value===e.value?"opacity-100":"opacity-0")}),e.label]},e.value))})]})}function P(e){return(0,t.jsxs)("svg",{...e,"aria-hidden":"true",className:"w-4 h-4 me-0 text-gray-200 animate-spin dark:text-white-600 fill-yellow-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})}function I(e){return(0,t.jsx)("svg",{...e,className:"w-4 h-4 me-0 text-green-500 dark:text-green-400 flex-shrink-0","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z"})})}let _={submitted:{bgColor:"bg-gray-100",textColor:"text-gray-700",ringColor:"ring-gray-600/20",icon:(0,t.jsx)(function(e){return(0,t.jsx)("svg",{...e,className:"w-4 h-4 text-gray-500 dark:text-gray-400 flex-shrink-0","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",strokeWidth:"1.5",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 12h16.5m-16.5 3.75h16.5M3.75 19.5h16.5M5.625 4.5h12.75a1.875 1.875 0 0 1 0 3.75H5.625a1.875 1.875 0 0 1 0-3.75Z"})})},{}),label:"Submitted"},pending:{bgColor:"bg-yellow-100",textColor:"text-yellow-700",ringColor:"ring-yellow-600/20",icon:(0,t.jsx)(P,{}),label:"Pending"},running:{bgColor:"bg-green-100",textColor:"text-green-700",ringColor:"ring-green-600/20",icon:(0,t.jsx)(I,{}),label:"Running"},failed:{bgColor:"bg-red-100",textColor:"text-red-700",ringColor:"ring-red-600/20",icon:(0,t.jsx)(function(e){return(0,t.jsx)("svg",{...e,className:"w-4 h-4 me-0 text-red-500 dark:text-red-400 flex-shrink-0","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M2 12a10 10 0 1 1 20 0 10 10 0 0 1-20 0Zm7.7-3.7a1 1 0 0 0-1.4 1.4l2.3 2.3-2.3 2.3a1 1 0 1 0 1.4 1.4l2.3-2.3 2.3 2.3a1 1 0 0 0 1.4-1.4L13.4 12l2.3-2.3a1 1 0 0 0-1.4-1.4L12 10.6 9.7 8.3Z"})})},{}),label:"Failed"},success:{bgColor:"bg-gray-100",textColor:"text-gray-700",ringColor:"ring-gray-600/20",icon:(0,t.jsx)(I,{}),label:"Success"},unknown:{bgColor:"bg-gray-100",textColor:"text-gray-700",ringColor:"ring-gray-600/20",icon:(0,t.jsx)(P,{}),label:"Unknown"}},A=e=>{let s=_[(null==e?void 0:e.toLowerCase())||"unknown"];return s?(0,t.jsxs)("dd",{className:"inline-flex items-center rounded-md ".concat(s.bgColor," px-2 py-1 text-xs font-medium ").concat(s.textColor," ring-1 ring-inset ").concat(s.ringColor),children:[s.label.toLowerCase(),(0,t.jsx)("div",{className:"ml-1 flex-none rounded-full p-1",children:(0,t.jsx)("div",{role:"status",children:s.icon})})]}):null};var T=l(64520),B=l(72513),U=l(1930),R=l(97747),Z=l(87191),D=l(24776),O=l(7109),M=l(13333),z=l(74859);function F(){for(var e=arguments.length,s=Array(e),l=0;le.environment.environmentLoadedValues),[n,o]=(0,a.useState)("Something went wrong while creating the deployment. Please try again later."),d=(0,i.v9)(e=>{var s;return null==e?void 0:null===(s=e.userInfo)||void 0===s?void 0:s.userInfoLoadedValues}),[c,u]=(0,a.useState)(!1),[y,w]=(0,a.useState)(!1),[b,C]=(0,a.useState)(!1),L=(0,i.v9)(e=>e.deploymentName.deploymentNameLoadedValues.name),S=(0,i.v9)(e=>e.deploymentAPI.deploymentAPILoadedValues),k=(null==S?void 0:null===(e=S.status)||void 0===e?void 0:e.phase)||"Unknown",P=(null==S?void 0:null===(s=S.status)||void 0===s?void 0:s.message)||"",I=(null==S?void 0:S.name)||L,_=(0,j.useRouter)(),[X,V]=(0,a.useState)(""),[W,G]=(0,a.useState)(!1),Y=async()=>{try{if(I!==X){console.error("No deployment name found"),g.ZP.error("Your typed name is not matched with the deployment name. Type it carefully.",{id:"delete-deployment"});return}w(!0),u(!1);let e=await r.Z.delete("".concat("".concat(z.env.NEXT_PUBLIC_API,"/deployments/").concat(L)),{headers:{Accept:"application/json",Authorization:(0,O.Z)(d),superduper_reverse_proxy:z.env.NEXT_PUBLIC_API||l.NEXT_PUBLIC_API}});console.log("Deployments API data:",e.data),200===e.status?(console.log("Deployment deleted successfully"),z.env.NEXT_PUBLIC_APPLICATION_URL?_.push("/webui/deployment?deleted=true"):_.push("/webui?deleted=true"),g.ZP.success("Deployment deleted process is running..."),z.env.NEXT_PUBLIC_APPLICATION_URL?window.location.assign("/webui/deployment?deleted=true"):window.location.assign("/webui?deleted=true")):(console.error("Error deleting deployment:",e.data),g.ZP.error("Error deleting deployment",{id:"delete-deployment"}),w(!1),C(!0),o(null==e?void 0:e.data))}catch(s){var e;console.error("Error deleting deployment:",s),w(!1),o((null===(e=s.response)||void 0===e?void 0:e.data)||s.message),C(!0)}};return(0,t.jsxs)(t.Fragment,{children:[I&&(0,t.jsxs)("div",{className:"pb-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h1",{id:"message-heading",className:"text-2xl mb-2 font-semibold text-gray-900",children:"Deployment"}),(0,t.jsx)("div",{className:"mb-2 mr-4",children:(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsx)("div",{children:(0,t.jsxs)("span",{onClick:()=>{window.location.reload()},className:"flex items-center rounded-full bg-white p-2 text-gray-400 hover:text-gray-600 focus:outline-none focus:ring-2 focus:ring-indigo-500",children:[(0,t.jsx)("span",{className:"sr-only",children:"Reload"}),(0,t.jsx)(h.Z,{className:"h-5 w-5","aria-hidden":"true"})]})}),(0,t.jsx)(E,{})]})})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("div",{className:"flex items-center sm:w-0 sm:flex-1",children:(0,t.jsx)("div",{className:"flex items-center gap-x-6",children:(0,t.jsx)("div",{children:(0,t.jsxs)("p",{className:"mt-1 truncate text-base text-gray-500",children:[(0,t.jsx)(p.C,{className:"text-base truncate",children:I}),P&&(0,t.jsxs)(T.aR,{children:[(0,t.jsx)(T.vW,{asChild:!0,children:(0,t.jsx)(p.C,{variant:"outline",className:"ml-2 text-base truncate",children:P.length>24?P.slice(0,24)+"... [Show More]":P})}),(0,t.jsxs)(T._T,{children:[(0,t.jsxs)(T.fY,{children:[(0,t.jsxs)(T.f$,{children:["Status of ",(0,t.jsx)("strong",{children:I})]}),(0,t.jsx)(T.yT,{children:(0,t.jsxs)(B.bZ,{children:[(0,t.jsx)(N.WCv,{className:"h-4 w-4"}),(0,t.jsx)(B.Cd,{children:"Status"}),(0,t.jsx)(B.X,{children:P})]})})]}),(0,t.jsxs)(T.xo,{children:[(0,t.jsx)(T.le,{children:"Cancel"}),(0,t.jsx)(T.OL,{children:"Continue"})]})]})]})]})})})}),(0,t.jsxs)("div",{className:"mt--6 flex items-center justify-between sm:ml-6 sm:mt-0 sm:flex-shrink-0 sm:justify-start gap-x-2",children:[A(k),(0,t.jsxs)(x.v,{as:"div",className:"relative ml-3 inline-block text-left",children:[(0,t.jsx)("div",{children:(0,t.jsxs)(x.v.Button,{className:"-my-2 flex items-center rounded-full bg-white p-2 text-gray-400 hover:text-gray-600 focus:outline-none focus:ring-2 focus:ring-indigo-500",children:[(0,t.jsx)("span",{className:"sr-only",children:"Open options"}),(0,t.jsx)(v.Z,{className:"h-5 w-5","aria-hidden":"true"})]})}),(0,t.jsx)(m.u,{as:a.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,t.jsx)(x.v.Items,{className:"absolute right-0 z-10 mt-2 w-56 origin-top-right rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",children:(0,t.jsxs)("div",{className:"py-1",children:[!0!==z.env.NEXT_PUBLIC_SNOWFLAKE&&(0,t.jsx)(x.v.Item,{children:e=>{let{active:s}=e;return(0,t.jsx)("a",{href:"#",onClick:()=>u(!0),className:F(s?"bg-gray-100 text-gray-900":"text-gray-700","flex justify-between px-4 py-2 text-sm"),children:(0,t.jsx)("span",{children:"Delete Deployment"})})}}),(0,t.jsx)(x.v.Item,{children:e=>{let{active:s}=e;return(0,t.jsx)("div",{className:F(s?"bg-gray-100 text-gray-900":"text-gray-700","flex justify-between px-4 py-2 text-sm"),onClick:()=>G(!0),children:(0,t.jsx)("span",{children:"View Deployment in JSON"})})}}),(0,t.jsx)(x.v.Item,{children:e=>{let{active:s}=e;return(0,t.jsx)("a",{href:"mailto:support@superduper.io",className:F(s?"bg-gray-100 text-gray-900":"text-gray-700","flex justify-between px-4 py-2 text-sm"),children:(0,t.jsx)("span",{children:"Contact Support"})})}})]})})})]})]})]})]}),(0,t.jsxs)(T.aR,{open:c,children:[(0,t.jsx)(T.vW,{}),(0,t.jsxs)(T._T,{children:[(0,t.jsxs)(T.fY,{children:[(0,t.jsx)(T.f$,{children:"Are you absolutely sure?"}),(0,t.jsx)(T.yT,{children:"This action cannot be undone. This will permanently delete your deployment and remove your data. Be aware!"}),(0,t.jsx)("br",{}),(0,t.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-1.5",children:[(0,t.jsxs)(R._,{htmlFor:"deployment-name",children:["Type the deployment name: ",(0,t.jsx)("strong",{children:I})]}),(0,t.jsx)(U.I,{type:"text",id:"deployment-name",placeholder:"Type the deployment name",value:X,onChange:e=>{V(e.target.value)},className:"border border-gray-300 rounded-md p-2"})]})]}),(0,t.jsxs)(T.xo,{children:[(0,t.jsx)(T.le,{onClick:()=>u(!1),children:"Cancel"}),(0,t.jsxs)(T.OL,{onClick:()=>{Y()},variant:"destructive",className:"gap-2 bg-destructive text-destructive-foreground hover:bg-destructive/90",children:[(0,t.jsx)(M.Z,{className:"w-5 h-5"}),"Delete Deployment"]})]})]})]}),(0,t.jsx)(T.aR,{open:y,children:(0,t.jsx)(T._T,{children:(0,t.jsxs)(T.fY,{children:[(0,t.jsx)(T.f$,{children:"Delete Deployment..."}),(0,t.jsx)(T.yT,{children:"This initiates a delete deployment process that may take some time. Please wait patiently. You'll be redirected to the dashboard once it's complete."}),(0,t.jsx)("br",{}),(0,t.jsx)(f.O,{})]})})}),(0,t.jsx)(T.aR,{open:b,children:(0,t.jsxs)(T._T,{children:[(0,t.jsxs)(T.fY,{children:[(0,t.jsx)(T.f$,{children:"Delete Deployment Failed"}),(0,t.jsx)(T.yT,{children:(0,t.jsxs)(B.bZ,{variant:"destructive",children:[(0,t.jsx)(N.LPM,{className:"h-4 w-4"}),(0,t.jsx)(B.Cd,{children:"Error"}),(0,t.jsx)(B.X,{children:n})]})})]}),(0,t.jsxs)(T.xo,{children:[(0,t.jsx)(T.le,{onClick:()=>{C(!1),w(!1)},children:"Cancel"}),(0,t.jsx)(T.OL,{onClick:()=>{w(!0),C(!1),Y()},children:"Retry Now"})]})]})}),(0,t.jsx)(D.Vq,{open:W,onOpenChange:()=>G(!1),children:(0,t.jsxs)(D.cZ,{className:"sm:max-w-[768px]",children:[(0,t.jsxs)(D.fK,{children:[(0,t.jsx)(D.$N,{children:"View the Deployment"}),(0,t.jsx)(D.Be,{children:"This is the deployment data in JSON format."})]}),(0,t.jsx)(Z.Z,{data:S}),(0,t.jsx)(D.cN,{})]})})]})}var V=l(87285),W=l(26716),G=l(57293),Y=()=>{let[e,s]=(0,a.useState)(!1);return e?null:(0,t.jsxs)(B.bZ,{variant:"destructive",children:[(0,t.jsx)(N.LPM,{className:"h-4 w-4"}),(0,t.jsx)(B.Cd,{children:"Deleted Deployment"}),(0,t.jsx)(B.X,{children:"Your deployment is deleted and no longer available. You can create a new deployment."}),(0,t.jsx)("button",{onClick:()=>{s(!0)},className:"absolute top-0 right-0 p-2",children:(0,t.jsx)(G.Z,{className:"h-4 w-4 text-gray-400","aria-hidden":"true"})})]})};l(74859);var J=l(5772),H=l(53146),K=l.n(H);function q(e){let{text:s="superduper",color:l="currentColor",typingSpeed:n=150,fontSize:r=24,iconSize:i=24}=e,[o,d]=(0,a.useState)(""),[c,u]=(0,a.useState)(0),x=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e=x.current;return e&&(e.style.animation="spin 1s linear infinite"),()=>{e&&(e.style.animation="")}},[]),(0,a.useEffect)(()=>{if(c{d(e=>e+s[c]),u(e=>e+1)},n);return()=>clearTimeout(e)}{let e=setTimeout(()=>{d(""),u(0)},3*n);return()=>clearTimeout(e)}},[c,s,n]),(0,t.jsxs)("div",{className:"jsx-4dad6a469886ca08 flex items-center gap-3",children:[(0,t.jsxs)("svg",{ref:x,width:i,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"jsx-4dad6a469886ca08",children:[(0,t.jsx)("style",{children:"\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n "}),(0,t.jsx)("path",{d:"M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4Z",fill:l,fillOpacity:"0.3",className:"jsx-4dad6a469886ca08"}),(0,t.jsx)("path",{d:"M12 2C6.47715 2 2 6.47715 2 12H4C4 7.58172 7.58172 4 12 4V2Z",fill:l,className:"jsx-4dad6a469886ca08"})]}),(0,t.jsxs)("div",{style:{color:l,fontSize:"".concat(r,"px"),minWidth:"".concat(s.length,"ch")},"aria-live":"polite","aria-label":"Loading: typing ".concat(s),className:"jsx-4dad6a469886ca08 inline-block",children:[o,(0,t.jsx)("span",{style:{borderRight:"2px solid ".concat(l)},className:"jsx-4dad6a469886ca08 animate-blink",children:"\xa0"})]}),(0,t.jsx)(K(),{id:"4dad6a469886ca08",children:"@-webkit-keyframes blink{0%,100%{opacity:0}50%{opacity:1}}@-moz-keyframes blink{0%,100%{opacity:0}50%{opacity:1}}@-o-keyframes blink{0%,100%{opacity:0}50%{opacity:1}}@keyframes blink{0%,100%{opacity:0}50%{opacity:1}}.animate-blink.jsx-4dad6a469886ca08{-webkit-animation:blink.7s step-end infinite;-moz-animation:blink.7s step-end infinite;-o-animation:blink.7s step-end infinite;animation:blink.7s step-end infinite}"})]})}var Q=l(45246),$=l(61284),ee=l(96764),es=l(63130),el=l(95042),et=l(70694),ea=l(80923);function en(e){let{header:s,message:l}=e;return(0,t.jsx)("div",{className:"flex min-h-[40vh] flex-col items-center justify-center bg-background px-4 py-12 sm:px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"mx-auto max-w-md text-center",children:[(0,t.jsx)(er,{className:"mx-auto h-12 w-12 text-primary"}),(0,t.jsx)("h2",{className:"mt-4 text-xl font-bold tracking-tight text-foreground sm:text-xl",children:s||"UNKNOWN"}),(0,t.jsx)("p",{className:"mt-4 text-muted-foreground",children:l||"Status: UNKNOWN"})]})})}function er(e){return(0,t.jsxs)("svg",{...e,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",children:[(0,t.jsx)("path",{d:"M12 20h.01"}),(0,t.jsx)("path",{d:"M8.5 16.429a5 5 0 0 1 7 0"}),(0,t.jsx)("path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69"}),(0,t.jsx)("path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523"}),(0,t.jsx)("path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643"}),(0,t.jsx)("path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764"}),(0,t.jsx)("path",{d:"m2 2 20 20"})]})}var ei=l(22392);l(40020),l(19234),l(83346);var eo=l(16800),ed=l(64303),ec=e=>{var s,l;let{data:n}=e,r=(0,i.v9)(e=>e.deploymentAPI.deploymentAPILoadedValues),[o,d]=(0,a.useState)("".concat(JSON.stringify(n,null," "))),c=e=>{d(e)},u=(0,a.useRef)(null),x=async()=>{try{u.current.editor.selectAll();let e=u.current.editor.getSelectedText();await navigator.clipboard.writeText(e),console.log("Text copied to clipboard:",e)}catch(e){console.error("Unable to copy text to clipboard:",e)}};return r?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(ed.mQ,{defaultValue:"log",className:"w-full",children:[(0,t.jsxs)(ed.dr,{className:"grid w-full grid-cols-2",children:[(0,t.jsx)(ed.SP,{value:"status",children:"Status"}),(0,t.jsx)(ed.SP,{value:"specs",children:"Specs"})]}),(0,t.jsxs)(ed.nU,{value:"status",children:[(0,t.jsxs)("div",{className:"relative mt-4",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center","aria-hidden":"true",children:(0,t.jsx)("div",{className:"w-full border-t border-gray-300"})}),(0,t.jsx)("div",{className:"relative flex justify-start",children:(0,t.jsx)("span",{className:"bg-white pr-3 text-base font-semibold leading-6 text-gray-900",children:"Status"})})]}),(0,t.jsxs)("div",{className:"relative overflow-visible mt-4",children:[(0,t.jsx)("div",{className:"absolute bottom-8 right-5 z-50",children:(0,t.jsx)("span",{onClick:x,children:(0,t.jsx)(eo.Z,{popoverheader:"Click to copy"})})}),(0,t.jsx)(ei.default,{ref:u,className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Placeholder Text",mode:"json",theme:"github",name:"blah2",onChange:c,fontSize:14,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:"".concat(JSON.stringify(n,null," ")),setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,useWorker:!1,wrap:!0},height:"400px",width:"100%"})]})]}),(0,t.jsxs)(ed.nU,{value:"specs",children:[(0,t.jsxs)("div",{className:"relative mt-4",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center","aria-hidden":"true",children:(0,t.jsx)("div",{className:"w-full border-t border-gray-300"})}),(0,t.jsx)("div",{className:"relative flex justify-start",children:(0,t.jsx)("span",{className:"bg-white pr-3 text-base font-semibold leading-6 text-gray-900",children:"Specs"})})]}),(0,t.jsxs)("div",{className:"relative overflow-visible mt-4",children:[(0,t.jsx)("div",{className:"absolute bottom-8 right-5 z-50",children:(0,t.jsx)("span",{onClick:x,children:(0,t.jsx)(eo.Z,{popoverheader:"Click to copy"})})}),(0,t.jsx)(ei.default,{ref:u,className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Placeholder Text",mode:"json",theme:"github",name:"blah2",onChange:c,fontSize:14,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:"".concat(JSON.stringify((null==r?void 0:null===(s=r.spec)||void 0===s?void 0:s.nodeGroupList)&&(null==r?void 0:null===(l=r.spec)||void 0===l?void 0:l.nodeGroupList.filter(e=>e.name===(null==n?void 0:n.name))),null," ")),setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,useWorker:!1,wrap:!0},height:"400px",width:"100%"})]})]})]})}):null},eu=l(46346);function ex(){var e;let s=(0,i.v9)(e=>e.nodegroups.nodeLoadedValues);(0,i.v9)(e=>e.deploymentAPI.deploymentAPILoadedValues);let[l,n]=(0,a.useState)(!0);(0,a.useEffect)(()=>{let e=setTimeout(()=>{n(!1)},5e3);return()=>clearTimeout(e)},[]);let r=e=>{var s;switch(null==e?void 0:null===(s=e.phase)||void 0===s?void 0:s.toLowerCase()){case"submitted":case"success":default:return"text-gray-400 bg-gray-400/10";case"pending":return"text-yellow-400 bg-yellow-400/10";case"running":return"text-green-400 bg-green-400/10";case"failed":return"text-red-400 bg-red-400/10"}};return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"mx-auto max-w-7xl pr-4 pt-8 pb-0 sm:pr-6 lg:pr-8",children:(0,t.jsx)("div",{className:"mx-auto flex max-w-2xl items-center justify-between gap-x-8 lg:mx-0 lg:max-w-none",children:(0,t.jsxs)("div",{className:"flex items-center gap-x-4",children:[(0,t.jsx)("div",{className:"bg-black rounded-lg p-2",children:(0,t.jsx)(em,{className:"w-6 h-6 text-gray-300"})}),(0,t.jsx)("h1",{children:(0,t.jsxs)("div",{className:"text-base font-semibold leading-6 text-gray-900",children:["Node Groups"," ",(0,t.jsx)(ea.Z,{label:"",popoverheader:"Node Groups",popovercontent:(0,t.jsx)("p",{children:"Node Groups are a collection of nodes that are managed together."})})]})})]})})}),(0,t.jsxs)(eu.x,{className:"max-w-7xl whitespace-nowrap",children:[s?(0,t.jsxs)("div",{className:" bg-white px-4 py-5 sm:px-6",children:[(0,t.jsx)("div",{className:"-ml-4 -mt-4 flex flex-wrap items-center justify-between sm:flex-nowrap border-b border-gray-200",children:(0,t.jsx)("div",{className:"ml-4 mt-4 flex-shrink-0"})}),(0,t.jsx)("ul",{role:"list",className:"divide-y divide-red/5",children:null==s?void 0:null===(e=s.items)||void 0===e?void 0:e.map((e,s)=>{var l,a,n,i,o,d,c,u,x,m,h,v,p,g,j,f,N,y,w,b,C,S,k;return(0,t.jsxs)("li",{className:"relative flex items-center space-x-4 py-4",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-auto",children:[(0,t.jsxs)("div",{className:"flex items-center gap-x-3",children:[(0,t.jsx)("div",{className:function(){for(var e=arguments.length,s=Array(e),l=0;l0?null==e?void 0:null===(S=e.status)||void 0===S?void 0:null===(C=S.reservation)||void 0===C?void 0:null===(b=C.computeClassList)||void 0===b?void 0:b.map((e,s)=>(0,t.jsx)("button",{type:"button",className:"inline-flex items-center rounded-full bg-white px-2.5 py-1 text-xs font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:e},s)):(0,t.jsx)("button",{type:"button",className:"inline-flex items-center rounded-full bg-white px-2.5 py-1 text-xs font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:"No ComputeClass"})]})]}),A(null==e?void 0:null===(k=e.status)||void 0===k?void 0:k.phase),(0,t.jsxs)(et.yo,{children:[(0,t.jsx)(et.aM,{asChild:!0,children:(0,t.jsxs)(L.z,{variant:"outline",children:["Show more"," ",(0,t.jsx)(ee.Z,{className:"ml-2 -mr-0.5 h-5 w-5 flex-none text-gray-400","aria-hidden":"true"})]})}),(0,t.jsxs)(et.ue,{className:"overflow-auto w-[800px] sm:w-[800px] sm:max-w-none",children:[(0,t.jsxs)(et.Tu,{children:[(0,t.jsxs)(et.bC,{children:["More info about ",e.name]}),(0,t.jsx)(et.Ei,{children:"Here is the information regarding the node groups."})]}),(0,t.jsx)("div",{className:"grid gap-4 py-4 overflow-visible",children:(0,t.jsx)(ec,{data:e})}),(0,t.jsx)(et.FF,{children:(0,t.jsx)(et.sw,{asChild:!0,children:(0,t.jsx)(L.z,{type:"submit",children:"Close Now"})})})]})]})]},e.name)})})]}):(0,t.jsx)("div",{className:"mt-2 ml-4",children:l?(0,t.jsx)(J.Z,{}):(0,t.jsx)(en,{header:"UNKNOWN",message:""})}),(0,t.jsx)(eu.B,{orientation:"horizontal"})]})]})})}function em(e){return(0,t.jsxs)("svg",{...e,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",children:[(0,t.jsx)("rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2"}),(0,t.jsx)("rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2"}),(0,t.jsx)("line",{x1:"6",x2:"6.01",y1:"6",y2:"6"}),(0,t.jsx)("line",{x1:"6",x2:"6.01",y1:"18",y2:"18"})]})}var eh=l(63052);function ev(){return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center h-[50vh] gap-4",children:[(0,t.jsx)("div",{className:"bg-red-100 dark:bg-red-900 rounded-full p-4",children:(0,t.jsx)(eg,{className:"h-8 w-8 text-red-500 dark:text-red-400"})}),(0,t.jsxs)("div",{className:"text-center space-y-2",children:[(0,t.jsx)("h3",{className:"text-2xl font-bold",children:"The dashboard is not yet reachable now!"}),(0,t.jsx)("p",{className:"text-gray-500 dark:text-gray-400",children:"We couldn't load the requested resource right now. Please try again in a few moments."})]}),(0,t.jsxs)(L.z,{className:"mt-4",variant:"outline",onClick:()=>{window.location.reload()},children:[(0,t.jsx)(ep,{className:"mr-2 h-4 w-4"}),"Reload"]})]})}function ep(e){return(0,t.jsxs)("svg",{...e,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",children:[(0,t.jsx)("path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}),(0,t.jsx)("path",{d:"M21 3v5h-5"}),(0,t.jsx)("path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}),(0,t.jsx)("path",{d:"M8 16H3v5"})]})}function eg(e){return(0,t.jsxs)("svg",{...e,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",children:[(0,t.jsx)("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}),(0,t.jsx)("path",{d:"M12 9v4"}),(0,t.jsx)("path",{d:"M12 17h.01"})]})}var ej=l(86288),ef=l(52269),eN=l(58153),ey=l(46065),ew=l(74859);function eb(e){let{selectedPod:s}=e,[l,n]=(0,a.useState)([]),[r,o]=(0,a.useState)(null),[d,c]=(0,a.useState)(!0),[u,x]=(0,a.useState)(!1),[m,h]=(0,a.useState)(!1),v=(0,a.useRef)(null),p=(0,i.v9)(e=>e.environment.environmentLoadedValues),g=(0,i.v9)(e=>{var s;return null==e?void 0:null===(s=e.userInfo)||void 0===s?void 0:s.userInfoLoadedValues}),j=(0,i.v9)(e=>e.deploymentName.deploymentNameLoadedValues.name),f=(0,a.useCallback)(async()=>{try{c(!0);let e=await fetch("".concat("".concat(ew.env.NEXT_PUBLIC_API,"/logs/").concat(s,"?deployment=").concat(j)),{headers:{Accept:"application/json",Authorization:(0,O.Z)(g),superduper_reverse_proxy:ew.env.NEXT_PUBLIC_API||p.NEXT_PUBLIC_API}});if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let l=(await e.json()).payload;if(!l)throw Error("Invalid data structure received from the API");let t=N(l);n(t),o(null),x(!1)}catch(e){console.error("Error fetching logs:",e),o(e instanceof Error?e.message:"An unknown error occurred")}finally{c(!1)}},[s,j,g,p]);(0,a.useEffect)(()=>{f();let e=setInterval(f,3e4);return()=>clearInterval(e)},[f]),(0,a.useEffect)(()=>{v.current&&(v.current.scrollTop=v.current.scrollHeight)},[l]);let N=e=>"string"!=typeof e?(console.error("Invalid payload type:",typeof e),[]):e.split("\n").filter(Boolean).map(e=>{let s=e.replace(/\s{2,}/g," "),l=s.match(/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}/),t=l?l[0]:"",a=l?s.slice(t.length).trim():s.trim(),n=a.match(/\b(INFO|WARNING|ERROR|SUCC|E)\b/i),r=n?n[1].toUpperCase():"",i=n?a.slice(r.length).trim().replace(/\s{2,}/g," "):a;return{timestamp:t,level:r,message:i}});return d&&0===l.length?(0,t.jsx)(J.Z,{times:6}):(0,t.jsx)("div",{className:(0,C.cn)("w-full max-w-6xl mx-auto mt-2 transition-all duration-300",m?"fixed inset-0 mt-0 max-w-none z-50":"h-[450px]"),children:(0,t.jsxs)(ej.Zb,{className:"w-full h-full mx-auto border-0 flex flex-col",children:[(0,t.jsxs)("div",{className:"bg-[#1c2127] text-white p-2 flex justify-between items-center rounded-t-lg border-t border-l border-r border-gray-600",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)("div",{className:"w-3 h-3 rounded-full bg-red-500"}),(0,t.jsx)("div",{className:"w-3 h-3 rounded-full bg-yellow-500"}),(0,t.jsx)("div",{className:"w-3 h-3 rounded-full bg-green-500"}),(0,t.jsxs)("h2",{className:"text-sm font-mono ml-2",children:[s," logs"]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(L.z,{onClick:f,disabled:d,size:"sm",variant:"ghost",className:"text-xs text-white hover:text-white hover:bg-gray-700",children:d?"Loading...":"Reload"}),(0,t.jsx)(L.z,{onClick:()=>{h(!m)},size:"sm",variant:"ghost",className:"text-white hover:text-white hover:bg-gray-700",children:m?(0,t.jsx)(ef.Z,{className:"h-4 w-4"}):(0,t.jsx)(eN.Z,{className:"h-4 w-4"})})]})]}),r&&(0,t.jsxs)(B.bZ,{variant:"destructive",className:"mb-4",children:[(0,t.jsx)(ey.Z,{className:"h-4 w-4"}),(0,t.jsx)(B.Cd,{children:"Error"}),(0,t.jsxs)(B.X,{children:["Failed to fetch logs: ",r,"."]})]}),(0,t.jsx)("div",{className:"flex-grow overflow-hidden h-full",children:(0,t.jsx)("div",{ref:v,className:"bg-black text-green-400 font-mono text-sm h-full overflow-y-auto p-4",children:0===l.length?(0,t.jsx)("p",{className:"text-center",children:"No logs available."}):l.map((e,s)=>(0,t.jsxs)("div",{className:"mb-2",children:[e.timestamp&&(0,t.jsx)("span",{className:"text-blue-400",children:e.timestamp}),e.level&&(0,t.jsxs)("span",{className:"font-bold ".concat(function(e){switch(e.toUpperCase()){case"DEBUG":return"text-gray-400";case"TRACE":return"text-purple-400";case"WARNING":case"WARN":return"text-yellow-400";case"INFO":return"text-cyan-400";case"SUCC":case"SUCCESS":return"text-green-400";case"E":case"ERROR":return"text-rose-400";case"CRITICAL":case"FATAL":return"text-red-600";default:return"text-gray-200"}}(e.level)),children:[" ",e.level]}),(0,t.jsx)("span",{className:"ml-2",dangerouslySetInnerHTML:{__html:e.message.replace(/\u001B\[1m/g,'').replace(/\u001B\[22m/g,"").replace(/\u001B\[32m/g,'').replace(/\u001B\[37m/g,'').replace(/\u001B\[39m/g,"").replace(/\[37m/g,'').replace(/\[39m/g,"").replace(/\[1m/g,'').replace(/\[22m/g,"").replace(/\[32m/g,'')}})]},s))})})]})})}var eC=l(74859);function eL(e){try{var s,l,t;if(e&&(null==e?void 0:e.status)&&(null==e?void 0:null===(s=e.status)||void 0===s?void 0:s.podRefList))return null==e?void 0:null===(t=e.status)||void 0===t?void 0:null===(l=t.podRefList)||void 0===l?void 0:l.map(e=>e.name);return[]}catch(e){return[]}}var eS=e=>{var s,l;let{data:n}=e,r=(0,i.v9)(e=>e.environment.environmentLoadedValues),o=(0,i.v9)(e=>e.deploymentAPI.deploymentAPILoadedValues),[d,c]=(0,a.useState)("".concat(JSON.stringify(n,null," "))),[u,x]=(0,a.useState)(eL(n)||[]),[m,h]=(0,a.useState)(u[0]),[v,p]=(0,a.useState)([{label:"Last 5 minutes",value:5},{label:"Last 15 minutes",value:15},{label:"Last 30 minutes",value:30},{label:"Last 1 hour",value:60},{label:"Last 6 hours",value:360},{label:"Last 12 hours",value:720},{label:"Last 24 hours",value:1440},{label:"Last 2 days",value:2880},{label:"Last 3 days",value:4320},{label:"Last 7 days",value:10080},{label:"Last 14 days",value:20160},{label:"Last 30 days",value:43200}]),[g,j]=(0,a.useState)(v[0].value);(0,a.useEffect)(()=>{x(eL(n)||[])},[n]);let f=e=>{c(e)},N=(0,a.useRef)(null),y=async()=>{try{N.current.editor.selectAll();let e=N.current.editor.getSelectedText();await navigator.clipboard.writeText(e),console.log("Text copied to clipboard:",e)}catch(e){console.error("Unable to copy text to clipboard:",e)}},w=e=>{h(e)},[b,C]=(0,a.useState)(!1),[L,S]=(0,a.useState)(!0),k=eC.env.NEXT_PUBLIC_GRAFANA_DASHBOARD||r.NEXT_PUBLIC_GRAFANA_DASHBOARD||"/grafana/";return o?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(ed.mQ,{defaultValue:"log",className:"w-full",children:[(0,t.jsxs)(ed.dr,{className:"grid w-full grid-cols-3",children:[m&&"true"==eC.env.NEXT_PUBLIC_SNOWFLAKE&&(0,t.jsx)(ed.SP,{value:"log",children:"Logs"}),m&&"true"!==eC.env.NEXT_PUBLIC_SNOWFLAKE&&(0,t.jsx)(ed.SP,{value:"monitoring",children:"Logs"}),(0,t.jsx)(ed.SP,{value:"status",children:"Status"}),(0,t.jsx)(ed.SP,{value:"specs",children:"Specs"})]}),m&&"true"==eC.env.NEXT_PUBLIC_SNOWFLAKE&&(0,t.jsxs)(ed.nU,{value:"log",children:[(0,t.jsxs)("div",{className:"relative mt-4",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center","aria-hidden":"true",children:(0,t.jsx)("div",{className:"w-full border-t border-gray-300"})}),(0,t.jsx)("div",{className:"relative flex justify-start",children:(0,t.jsx)("span",{className:"bg-white pr-3 text-base font-semibold leading-6 text-gray-900",children:"Logs"})})]}),(0,t.jsx)("div",{className:"flex gap-4",children:(0,t.jsxs)(eh.Ph,{value:m,onValueChange:w,children:[(0,t.jsx)(eh.i4,{className:"w-3/6 mt-4 mb-2",children:(0,t.jsx)(eh.ki,{placeholder:"Select a pod for log"})}),(0,t.jsx)(eh.Bw,{children:(0,t.jsxs)(eh.DI,{children:[(0,t.jsx)(eh.n5,{children:"Select a pod for log"}),u&&u.map((e,s)=>(0,t.jsx)(eh.Ql,{value:e,children:e},s))]})})]})}),(0,t.jsx)("div",{children:(0,t.jsx)(eb,{selectedPod:m})})]}),m&&"true"!==eC.env.NEXT_PUBLIC_SNOWFLAKE&&(0,t.jsxs)(ed.nU,{value:"monitoring",children:[(0,t.jsxs)("div",{className:"relative mt-4",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center","aria-hidden":"true",children:(0,t.jsx)("div",{className:"w-full border-t border-gray-300"})}),(0,t.jsx)("div",{className:"relative flex justify-start",children:(0,t.jsx)("span",{className:"bg-white pr-3 text-base font-semibold leading-6 text-gray-900",children:"Logs"})})]}),(0,t.jsxs)("div",{className:"flex gap-4",children:[(0,t.jsxs)(eh.Ph,{value:m,onValueChange:w,children:[(0,t.jsx)(eh.i4,{className:"w-3/6 mt-4 mb-2",children:(0,t.jsx)(eh.ki,{placeholder:"Select a pod for log"})}),(0,t.jsx)(eh.Bw,{children:(0,t.jsxs)(eh.DI,{children:[(0,t.jsx)(eh.n5,{children:"Select a pod for log"}),u&&u.map((e,s)=>(0,t.jsx)(eh.Ql,{value:e,children:e},s))]})})]}),(0,t.jsxs)(eh.Ph,{value:g,onValueChange:e=>{j(e)},children:[(0,t.jsx)(eh.i4,{className:"w-3/6 mt-4 mb-2",children:(0,t.jsx)(eh.ki,{placeholder:"Select a pod for log"})}),(0,t.jsx)(eh.Bw,{children:(0,t.jsxs)(eh.DI,{children:[(0,t.jsx)(eh.n5,{children:"Select a time"}),v.map((e,s)=>(0,t.jsx)(eh.Ql,{value:e.value,children:e.label},s))]})})]})]}),(0,t.jsx)("div",{children:L&&!b?(0,t.jsx)("iframe",{title:"External Website",allowFullScreen:!0,src:"".concat(k,"d-solo/logs/container-logs?orgId=1&theme=dark&panelId=2&refresh=&from=now-").concat(g,"m&to=now&var-pod=").concat(m,"&var-namespace=").concat(r.NEXT_PUBLIC_GRAFANA_NAMESPACE||eC.env.NEXT_PUBLIC_GRAFANA_NAMESPACE,"&var-container=&var-logs_type=&var-logs_source"),width:"100%",height:"400px",onLoad:()=>{C(!1)},onError:()=>{C(!0)},className:"mt-2",style:{overflow:"auto",borderRadius:"10px"}}):(0,t.jsx)(ev,{})})]}),(0,t.jsxs)(ed.nU,{value:"status",children:[(0,t.jsxs)("div",{className:"relative mt-4",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center","aria-hidden":"true",children:(0,t.jsx)("div",{className:"w-full border-t border-gray-300"})}),(0,t.jsx)("div",{className:"relative flex justify-start",children:(0,t.jsx)("span",{className:"bg-white pr-3 text-base font-semibold leading-6 text-gray-900",children:"Status"})})]}),(0,t.jsxs)("div",{className:"relative overflow-visible mt-4",children:[(0,t.jsx)("div",{className:"absolute bottom-8 right-5 z-50",children:(0,t.jsx)("span",{onClick:y,children:(0,t.jsx)(eo.Z,{popoverheader:"Click to copy"})})}),(0,t.jsx)(ei.default,{ref:N,className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Placeholder Text",mode:"json",theme:"github",name:"blah2",onChange:f,fontSize:14,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:"".concat(JSON.stringify(n,null," ")),setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,useWorker:!1,wrap:!0},height:"400px",width:"100%"})]})]}),(0,t.jsxs)(ed.nU,{value:"specs",children:[(0,t.jsxs)("div",{className:"relative mt-4",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center","aria-hidden":"true",children:(0,t.jsx)("div",{className:"w-full border-t border-gray-300"})}),(0,t.jsx)("div",{className:"relative flex justify-start",children:(0,t.jsx)("span",{className:"bg-white pr-3 text-base font-semibold leading-6 text-gray-900",children:"Specs"})})]}),(0,t.jsxs)("div",{className:"relative overflow-visible mt-4",children:[(0,t.jsx)("div",{className:"absolute bottom-8 right-5 z-50",children:(0,t.jsx)("span",{onClick:y,children:(0,t.jsx)(eo.Z,{popoverheader:"Click to copy"})})}),(0,t.jsx)(ei.default,{ref:N,className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Placeholder Text",mode:"json",theme:"github",name:"blah2",onChange:f,fontSize:14,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:"".concat(JSON.stringify((null==o?void 0:null===(s=o.spec)||void 0===s?void 0:s.serviceList)&&(null==o?void 0:null===(l=o.spec)||void 0===l?void 0:l.serviceList.filter(e=>(null==e?void 0:e.name.toLowerCase())===(null==n?void 0:n.name.toLowerCase()))),null," ")),setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,useWorker:!1,wrap:!0},height:"400px",width:"100%"})]})]})]})}):null},ek=l(3078),eE=l(32966),eP=l(6850),eI=l(74859);function e_(e){let{url:s}=e;return(console.log("DeploymentLink",s),s)?s.toLowerCase().includes("endpoints provisioning in progress... check back in a few minutes")?(0,t.jsxs)(L.z,{variant:"outline",disabled:!0,children:["Endpoint Provisioning",(0,t.jsx)(eE.Z,{className:"ml-0.5 -mr.5 h-5 w-5","aria-hidden":"true"})]}):(0,t.jsx)("a",{href:s,target:"_blank",rel:"noopener noreferrer",children:(0,t.jsxs)(L.z,{variant:"outline",children:["Open",(0,t.jsx)(eP.Z,{className:"ml-0.5 -mr.5 h-5 w-5","aria-hidden":"true"})]})}):null}let eA=e=>{var s,l,a;let{deployment:n,token:r,env:i}=e;if((null==n?void 0:null===(l=n.status)||void 0===l?void 0:null===(s=l.phase)||void 0===s?void 0:s.toLowerCase())!=="running")return null;let o=null==n?void 0:null===(a=n.name)||void 0===a?void 0:a.toLowerCase(),d=[{condition:o.includes("ray"),url:eI.env.NEXT_PUBLIC_RAY_DASHBOARD||i.NEXT_PUBLIC_RAY_DASHBOARD},{condition:o.includes("jupyter"),url:"".concat(eI.env.NEXT_PUBLIC_JUPYTER_NOTEBOOK||i.NEXT_PUBLIC_JUPYTER_NOTEBOOK,"?superduper_token=").concat(r)},{condition:o.includes("monitoring"),url:eI.env.NEXT_PUBLIC_GRAFANA_DASHBOARD||i.NEXT_PUBLIC_GRAFANA_DASHBOARD},{condition:o.includes("rest"),url:"".concat("http://localhost:8000","docs")},{condition:o.includes("apiserver"),url:eI.env.NEXT_PUBLIC_APISERVER||i.NEXT_PUBLIC_APISERVER},{condition:o.includes("appui"),url:eI.env.NEXT_PUBLIC_APPUI||i.NEXT_PUBLIC_APPUI},{condition:o.includes("webui"),url:eI.env.NEXT_PUBLIC_WEBUI||i.NEXT_PUBLIC_WEBUI},{condition:o.includes("proxy"),url:eI.env.NEXT_PUBLIC_PROXY||i.NEXT_PUBLIC_PROXY}];return(0,t.jsx)(t.Fragment,{children:d.map((e,s)=>e.condition&&e.url&&(0,t.jsx)(e_,{url:e.url},s))})};var eT=l(74859);let eB=e=>{let{url:s,token:l,identifier:a}=e;return s?s.toLowerCase().includes("endpoints provisioning in progress... check back in a few minutes")?(0,t.jsxs)(L.z,{variant:"outline",disabled:!0,children:["Endpoint Provisioning",(0,t.jsx)(eE.Z,{className:"ml-0.5 -mr.5 h-5 w-5","aria-hidden":"true"})]}):(0,t.jsx)(t.Fragment,{children:s&&(0,t.jsx)("a",{href:"true"==eT.env.NEXT_PUBLIC_SNOWFLAKE?(e=>{let s=window.location.origin;return"".concat(s,"/webui/").concat(e,"/")})(a):"".concat(s,"?superduper_token=").concat(l),target:"_blank",rel:"noopener noreferrer",children:(0,t.jsxs)(L.z,{variant:"outline",children:["Open",(0,t.jsx)(eP.Z,{className:"ml-0.5 -mr-0.5 h-5 w-5","aria-hidden":"true"})]})})}):null};var eU=e=>{var s;let{deployment:l,token:a,env:n,endpointData:r}=e,i=null==l?void 0:null===(s=l.name)||void 0===s?void 0:s.toLowerCase();return r&&null!==r.items&&void 0!==r.items?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(eB,{identifier:i,token:a,url:function(e,s){for(let l of e.items)if(l.serviceName.toLowerCase()===s){for(let e of l.endpoints)if(e.ingressURL&&e.protocol)return"".concat(e.protocol,"://").concat(e.ingressURL)}return null}(r,i)},i)}):null};let eR=e=>{if("object"==typeof e){if("computeClass"in e)return e.computeClass;for(let s of Object.values(e)){let e=eR(s);if(void 0!==e)return e}console.log("No computeClass found in the object:",e)}},eZ=(e,s)=>{var l,t;let a=null==s?void 0:null===(t=s.spec)||void 0===t?void 0:null===(l=t.serviceList)||void 0===l?void 0:l.find(s=>s.name.toLowerCase()===e.toLowerCase());return(null==a?void 0:a.spec)?eR(a.spec):void 0};function eD(e){return(0,t.jsxs)("svg",{...e,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",children:[(0,t.jsx)("path",{d:"M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z"}),(0,t.jsx)("path",{d:"M10 21.9V14L2.1 9.1"}),(0,t.jsx)("path",{d:"m10 14 11.9-6.9"}),(0,t.jsx)("path",{d:"M14 19.8v-8.1"}),(0,t.jsx)("path",{d:"M18 17.5V9.4"})]})}let eO=()=>(0,t.jsx)("div",{className:"mx-auto max-w-7xl pr-4 pt-5 pb-0 sm:pr-6 lg:pr-8",children:(0,t.jsx)("div",{className:"mx-auto flex max-w-2xl items-center justify-between gap-x-8 lg:mx-0 lg:max-w-none",children:(0,t.jsxs)("div",{className:"flex items-center gap-x-4",children:[(0,t.jsx)("div",{className:"bg-black rounded-lg p-2",children:(0,t.jsx)(eD,{className:"w-6 h-6 text-gray-300"})}),(0,t.jsxs)("h1",{className:"text-base font-semibold leading-6 text-gray-900",children:["Services"," ",(0,t.jsx)(ea.Z,{label:"",popoverheader:"",popovercontent:(0,t.jsx)("p",{children:"Services are the microservices that are running in the cluster that make superduper works!"})})]})]})})});var eM=l(74859);let ez=function(){for(var e=arguments.length,s=Array(e),l=0;l{var s;switch(null==e?void 0:null===(s=e.phase)||void 0===s?void 0:s.toLowerCase()){case"submitted":case"success":default:return"text-gray-400 bg-gray-400/10";case"pending":return"text-yellow-400 bg-yellow-400/10";case"running":return"text-green-400 bg-green-400/10";case"failed":return"text-red-400 bg-red-400/10"}};var eX=()=>{let e=(0,i.v9)(e=>e.environment.environmentLoadedValues),s=(0,i.v9)(e=>e.environment.environmentLoadedValues.endpointData),[l,n]=(0,a.useState)(!0),[r,o]=(0,a.useState)(0),d=(0,i.v9)(e=>{var s,l;return null==e?void 0:null===(l=e.userInfo)||void 0===l?void 0:null===(s=l.userInfoLoadedValues)||void 0===s?void 0:s.token}),c=(0,i.v9)(e=>e.chartsgroups.chartsLoadedValues),u=(0,i.v9)(e=>e.deploymentAPI.deploymentAPILoadedValues);return(0,a.useEffect)(()=>{let e=setTimeout(()=>n(!1),5e3);return()=>clearTimeout(e)},[]),(0,a.useEffect)(()=>{d&&o(e=>e+1)},[d]),c||e||d||(l?(0,t.jsx)(J.Z,{}):(0,t.jsx)(en,{header:"No Services Found",message:""})),(0,t.jsxs)("div",{children:[(0,t.jsx)(eO,{}),(0,t.jsxs)(eu.x,{className:"max-w-7xl whitespace-nowrap",children:[c&&e&&d&&(0,t.jsx)("div",{className:"bg-white px-4 py-5 sm:px-6",children:(0,t.jsx)("ul",{role:"list",className:"divide-y divide-red/5",children:c.items.map(l=>{var n,r,i;return(0,t.jsx)(a.Fragment,{children:l.name&&(0,t.jsxs)("li",{className:"relative flex items-center space-x-4 py-4",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-auto",children:[(0,t.jsxs)("div",{className:"flex items-center gap-x-3",children:[(0,t.jsx)("div",{className:ez(eF(null==l?void 0:l.status),"flex-none rounded-full p-1"),children:(0,t.jsx)("div",{className:"h-2 w-2 rounded-full bg-current"})}),(0,t.jsx)("h2",{className:"min-w-0 text-sm font-semibold leading-6 text-gray-900",children:(0,t.jsxs)(el.J2,{children:[(0,t.jsx)(el.xo,{asChild:!0,children:(0,t.jsxs)("div",{className:"flex",children:[l.name.toLowerCase(),"\xa0\xa0",(0,t.jsx)(N.jnn,{className:"h-4 w-4 mt-1"})]})}),(0,t.jsx)(el.yk,{className:"w-80",children:(0,t.jsxs)("div",{className:"grid gap-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("h4",{className:"font-medium leading-none",children:"Pods Status"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"See the status of the pods"})]}),(0,t.jsx)("div",{className:"grid gap-2",children:null==l?void 0:null===(r=l.status)||void 0===r?void 0:null===(n=r.podRefList)||void 0===n?void 0:n.map(e=>{var s;return(0,t.jsxs)("div",{className:"grid grid-cols-3 items-center gap-4",children:[(0,t.jsx)(p.C,{className:"col-span-2 h-8",children:e.name}),A(null==e?void 0:null===(s=e.lifecycle)||void 0===s?void 0:s.phase)]},e.name)})})]})})]})})]}),(0,t.jsxs)("div",{className:"mt-3 flex items-center gap-x-2.5 text-xs leading-5 text-gray-400",children:[(0,t.jsx)("p",{className:"whitespace-nowrap",children:"ComputeClass:"}),(0,t.jsx)("button",{type:"button",className:"inline-flex items-center rounded-full bg-white px-2.5 py-1 text-xs font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:eZ(l.name,u)||"No ComputeClass"})]})]}),"true"!==eM.env.NEXT_PUBLIC_SNOWFLAKE?"true"===eM.env.NEXT_PUBLIC_API_DISABLE_ENV_LINK?(0,t.jsx)(eU,{deployment:l,token:d,env:e,endpointData:s}):(0,t.jsx)(eA,{deployment:l,token:d,env:e,endpointData:s}):null,A(null==l?void 0:null===(i=l.status)||void 0===i?void 0:i.phase),(0,t.jsxs)(et.yo,{children:[(0,t.jsx)(et.aM,{asChild:!0,children:(0,t.jsxs)(L.z,{variant:"outline",children:["Show more"," ",(0,t.jsx)(ek.Z,{className:"ml-2 -mr-0.5 h-5 w-5 flex-none text-gray-400","aria-hidden":"true"})]})}),(0,t.jsxs)(et.ue,{className:"overflow-auto w-[800px] sm:w-[800px] sm:max-w-none",children:[(0,t.jsxs)(et.Tu,{children:[(0,t.jsxs)(et.bC,{children:["More info about ",l.name]}),(0,t.jsx)(et.Ei,{children:"Here is the information regarding the services."})]}),(0,t.jsx)("div",{className:"grid gap-4 py-4 overflow-visible",children:(0,t.jsx)(eS,{data:l})}),(0,t.jsx)(et.FF,{children:(0,t.jsx)(et.sw,{asChild:!0,children:(0,t.jsx)(L.z,{type:"submit",children:"Close Now"})})})]})]})]})},l.name)})})}),(0,t.jsx)(eu.B,{orientation:"horizontal"})]})]})};function eV(){var e,s,l,a,n,r,o,d,c,u,x,m,h,v,p,g,j,f,N,y,w,b,C,L,S,k,E,P,I,_,A,T,B,U,R,Z,D,O,M,z,F,X,V,W,G,Y,J,H,K,q,Q,$,ee,es,el,et,ea,en,er,ei,eo,ed,ec,eu,ex,em,eh;let ev=(0,i.v9)(e=>e.deploymentAPI.deploymentAPILoadedValues);return ev&&(null==ev?void 0:null===(e=ev.spec)||void 0===e?void 0:e.superDuperEnv)?(0,t.jsxs)(ej.Zb,{className:"w-full",children:[(0,t.jsxs)(ej.Ol,{children:[(0,t.jsx)(ej.ll,{children:"Configuration"}),(0,t.jsx)(ej.SZ,{children:"Details for the deployment environment."})]}),(0,t.jsxs)(ej.aY,{className:"grid gap-6",children:[(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Data Store"}),(0,t.jsxs)("div",{className:"grid sm:grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Backend Type"}),(0,t.jsx)("span",{className:"font-medium",children:(null==ev?void 0:null===(a=ev.spec)||void 0===a?void 0:null===(l=a.superDuperEnv)||void 0===l?void 0:null===(s=l.dataStore)||void 0===s?void 0:s.backendType)?null==ev?void 0:null===(o=ev.spec)||void 0===o?void 0:null===(r=o.superDuperEnv)||void 0===r?void 0:null===(n=r.dataStore)||void 0===n?void 0:n.backendType:"[Not Specified]"})]}),(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Connection URI"}),(0,t.jsx)("span",{className:"font-medium",children:(null==ev?void 0:null===(u=ev.spec)||void 0===u?void 0:null===(c=u.superDuperEnv)||void 0===c?void 0:null===(d=c.dataStore)||void 0===d?void 0:d.connectionURI)?null==ev?void 0:null===(h=ev.spec)||void 0===h?void 0:null===(m=h.superDuperEnv)||void 0===m?void 0:null===(x=m.dataStore)||void 0===x?void 0:x.connectionURI:"[Not Specified]"})]})]})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Metadata Store"}),(0,t.jsxs)("div",{className:"grid sm:grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Backend Type"}),(0,t.jsxs)("span",{className:"font-medium",children:[" ",(null==ev?void 0:null===(g=ev.spec)||void 0===g?void 0:null===(p=g.superDuperEnv)||void 0===p?void 0:null===(v=p.metadataStore)||void 0===v?void 0:v.backendType)?null==ev?void 0:null===(N=ev.spec)||void 0===N?void 0:null===(f=N.superDuperEnv)||void 0===f?void 0:null===(j=f.metadataStore)||void 0===j?void 0:j.backendType:"[Not Specified]"]})]}),(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Connection URI"}),(0,t.jsx)("span",{className:"font-medium",children:(null==ev?void 0:null===(b=ev.spec)||void 0===b?void 0:null===(w=b.superDuperEnv)||void 0===w?void 0:null===(y=w.metadataStore)||void 0===y?void 0:y.connectionURI)?null==ev?void 0:null===(S=ev.spec)||void 0===S?void 0:null===(L=S.superDuperEnv)||void 0===L?void 0:null===(C=L.metadataStore)||void 0===C?void 0:C.connectionURI:"[Not Specified]"})]})]})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Artifact Store"}),(0,t.jsxs)("div",{className:"grid sm:grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Backend Type"}),(0,t.jsx)("span",{className:"font-medium",children:(null==ev?void 0:null===(P=ev.spec)||void 0===P?void 0:null===(E=P.superDuperEnv)||void 0===E?void 0:null===(k=E.artifactStore)||void 0===k?void 0:k.backendType)?null==ev?void 0:null===(A=ev.spec)||void 0===A?void 0:null===(_=A.superDuperEnv)||void 0===_?void 0:null===(I=_.artifactStore)||void 0===I?void 0:I.backendType:"[Not Specified]"})]}),(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Connection URI"}),(0,t.jsx)("span",{className:"font-medium",children:(null==ev?void 0:null===(U=ev.spec)||void 0===U?void 0:null===(B=U.superDuperEnv)||void 0===B?void 0:null===(T=B.artifactStore)||void 0===T?void 0:T.connectionURI)?null==ev?void 0:null===(D=ev.spec)||void 0===D?void 0:null===(Z=D.superDuperEnv)||void 0===Z?void 0:null===(R=Z.artifactStore)||void 0===R?void 0:R.connectionURI:"[Not Specified]"})]})]})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Service Endpoints"}),(0,t.jsxs)("div",{className:"grid sm:grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"CDC"}),(0,t.jsx)("span",{className:"font-medium",children:(null==ev?void 0:null===(z=ev.spec)||void 0===z?void 0:null===(M=z.superDuperEnv)||void 0===M?void 0:null===(O=M.serviceEndpoints)||void 0===O?void 0:O.cdc)?null==ev?void 0:null===(V=ev.spec)||void 0===V?void 0:null===(X=V.superDuperEnv)||void 0===X?void 0:null===(F=X.serviceEndpoints)||void 0===F?void 0:F.cdc:"[Not Specified]"})]}),(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Ray"}),(0,t.jsx)("span",{className:"font-medium",children:(null==ev?void 0:null===(Y=ev.spec)||void 0===Y?void 0:null===(G=Y.superDuperEnv)||void 0===G?void 0:null===(W=G.serviceEndpoints)||void 0===W?void 0:W.ray)?null==ev?void 0:null===(K=ev.spec)||void 0===K?void 0:null===(H=K.superDuperEnv)||void 0===H?void 0:null===(J=H.serviceEndpoints)||void 0===J?void 0:J.ray:"[Not Specified]"})]}),(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"REST Server"}),(0,t.jsxs)("span",{className:"font-medium",children:[" ",(null==ev?void 0:null===($=ev.spec)||void 0===$?void 0:null===(Q=$.superDuperEnv)||void 0===Q?void 0:null===(q=Q.serviceEndpoints)||void 0===q?void 0:q.restServer)?null==ev?void 0:null===(el=ev.spec)||void 0===el?void 0:null===(es=el.superDuperEnv)||void 0===es?void 0:null===(ee=es.serviceEndpoints)||void 0===ee?void 0:ee.restServer:"[Not Specified]"]})]}),(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Vector Search"}),(0,t.jsxs)("span",{className:"font-medium",children:[" ",(null==ev?void 0:null===(en=ev.spec)||void 0===en?void 0:null===(ea=en.superDuperEnv)||void 0===ea?void 0:null===(et=ea.serviceEndpoints)||void 0===et?void 0:et.vectorSearch)?null==ev?void 0:null===(eo=ev.spec)||void 0===eo?void 0:null===(ei=eo.superDuperEnv)||void 0===ei?void 0:null===(er=ei.serviceEndpoints)||void 0===er?void 0:er.vectorSearch:"[Not Specified]"]})]}),(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Scheduler"}),(0,t.jsxs)("span",{className:"font-medium",children:[" ",(null==ev?void 0:null===(eu=ev.spec)||void 0===eu?void 0:null===(ec=eu.superDuperEnv)||void 0===ec?void 0:null===(ed=ec.serviceEndpoints)||void 0===ed?void 0:ed.scheduler)?null==ev?void 0:null===(eh=ev.spec)||void 0===eh?void 0:null===(em=eh.superDuperEnv)||void 0===em?void 0:null===(ex=em.serviceEndpoints)||void 0===ex?void 0:ex.scheduler:"[Not Specified]"]})]})]})]})]})]}):null}var eW=l(43210),eG=l(48144),eY=l(74859);let{getReasonPhrase:eJ}=l(70194);function eH(e){let{simple:s=!1}=e,[l,c]=(0,a.useState)(!1),x=(0,i.v9)(e=>e.environment.environmentLoadedValues),m=(0,i.v9)(e=>{var s;return null==e?void 0:null===(s=e.userInfo)||void 0===s?void 0:s.userInfoLoadedValues}),h=(0,i.v9)(e=>e.deploymentName.deploymentNameLoadedValues.name),v=(0,j.useSearchParams)(),p=v.get("deleted"),g=v.get("create"),f=v.get("deployment"),N=(0,i.I0)(),y=async e=>(await r.Z.get(e,{headers:{Accept:"application/json",Authorization:(0,O.Z)(m),superduper_reverse_proxy:eY.env.NEXT_PUBLIC_API||x.NEXT_PUBLIC_API}})).data,{data:w,error:b}=(0,n.ZP)("".concat("".concat(eY.env.NEXT_PUBLIC_API,"/deployments/").concat(h)),y,{refreshInterval:0,revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});if((0,a.useEffect)(()=>{w&&(console.log("\uD83D\uDC49 PROXYING FROM",eY.env.NEXT_PUBLIC_API),N(u(w)),null==w.status.nodeGroupList?console.log("No Node Group List"):(N((0,d.NB)({items:w.status.nodeGroupList})),N((0,d.Bw)({items:w.status.nodeGroupList}))),null==w.status.serviceList?console.log("No such service"):N((0,o.Gi)({items:w.status.serviceList.filter(e=>"true"!==eY.env.NEXT_PUBLIC_SNOWFLAKE||(null==e?void 0:e.name.toLowerCase())!=="mongodb").sort((e,s)=>e.names.name?1:0)})))},[w,N]),"true"===p)return(0,t.jsxs)("div",{children:[(0,t.jsx)(Y,{}),(0,t.jsx)(V.Z,{showIconPart:!1})]});if("true"===g)return(0,t.jsx)("div",{children:s?(0,t.jsx)(eG.Z,{}):(0,t.jsx)(eW.Z,{})});if(!w&&!b)return(0,t.jsx)(J.Z,{times:6});if("done"!==f||w||l||setTimeout(()=>{c(!0)},15e3),"done"===f&&!w)return l?(0,t.jsx)(W.Z,{showIconPart:!1,showHeadUp:!0}):(0,t.jsx)("div",{className:"flex items-center justify-center h-75vh",children:(0,t.jsx)(q,{})});if(b){console.log("Error Details:",b);let e=b.response.status||404,l=eJ(e)||"Service Unavailable";if(b.response){if(404===e&&!s||404===e&&s)return(0,t.jsx)(W.Z,{showIconPart:!1,showHeadUp:!0})}else if(b.request)return console.log("No response received from server"),(0,t.jsx)(Q.Z,{header:"API SERVER",shortMessage:l,status:e,description:"Status: ".concat(e,", Message: ").concat("string"==typeof b.message?b.message:JSON.stringify(b.message))});else return console.log("Error:",b.message),(0,t.jsx)(Q.Z,{header:"API SERVER",shortMessage:l,status:e,description:"Status: ".concat(e,", Message: ").concat("string"==typeof b.message?b.message:JSON.stringify(b.message))});return console.log("Error",b),(0,t.jsx)(Q.Z,{header:"API SERVER",shortMessage:l,status:e,description:"Status: ".concat(e,", Message: ").concat("string"==typeof b.message?b.message:JSON.stringify(b.message))})}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(X,{}),(0,t.jsx)(eV,{}),(0,t.jsx)("br",{}),(0,t.jsx)(ex,{}),(0,t.jsx)("br",{}),(0,t.jsx)(eX,{}),(0,t.jsx)("br",{}),(0,t.jsx)("br",{})]})}},63052:function(e,s,l){l.d(s,{Bw:function(){return h},DI:function(){return d},Ph:function(){return o},Ql:function(){return p},i4:function(){return u},ki:function(){return c},n5:function(){return v}});var t=l(27573),a=l(7653),n=l(85688),r=l(66240),i=l(18580);let o=r.fC,d=r.ZA,c=r.B4,u=a.forwardRef((e,s)=>{let{className:l,children:a,...o}=e;return(0,t.jsxs)(r.xz,{ref:s,className:(0,i.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",l),...o,children:[a,(0,t.jsx)(r.JO,{asChild:!0,children:(0,t.jsx)(n.jnn,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=r.xz.displayName;let x=a.forwardRef((e,s)=>{let{className:l,...a}=e;return(0,t.jsx)(r.u_,{ref:s,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",l),...a,children:(0,t.jsx)(n.g8U,{})})});x.displayName=r.u_.displayName;let m=a.forwardRef((e,s)=>{let{className:l,...a}=e;return(0,t.jsx)(r.$G,{ref:s,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",l),...a,children:(0,t.jsx)(n.v4q,{})})});m.displayName=r.$G.displayName;let h=a.forwardRef((e,s)=>{let{className:l,children:a,position:n="popper",...o}=e;return(0,t.jsx)(r.h_,{children:(0,t.jsxs)(r.VY,{ref:s,className:(0,i.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",l),position:n,...o,children:[(0,t.jsx)(x,{}),(0,t.jsx)(r.l_,{className:(0,i.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),(0,t.jsx)(m,{})]})})});h.displayName=r.VY.displayName;let v=a.forwardRef((e,s)=>{let{className:l,...a}=e;return(0,t.jsx)(r.__,{ref:s,className:(0,i.cn)("px-2 py-1.5 text-sm font-semibold",l),...a})});v.displayName=r.__.displayName;let p=a.forwardRef((e,s)=>{let{className:l,children:a,...o}=e;return(0,t.jsxs)(r.ck,{ref:s,className:(0,i.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",l),...o,children:[(0,t.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(r.wU,{children:(0,t.jsx)(n.nQG,{className:"h-4 w-4"})})}),(0,t.jsx)(r.eT,{children:a})]})});p.displayName=r.ck.displayName,a.forwardRef((e,s)=>{let{className:l,...a}=e;return(0,t.jsx)(r.Z0,{ref:s,className:(0,i.cn)("-mx-1 my-1 h-px bg-muted",l),...a})}).displayName=r.Z0.displayName},87191:function(e,s,l){l.d(s,{Z:function(){return d}});var t=l(27573),a=l(7653),n=l(22392);l(40020),l(19234),l(83346);var r=l(412),i=l(24017),o=l(93296);function d(e){let{data:s,height:l="300px"}=e,d=(0,r.I0)(),[c,u]=(0,a.useState)(JSON.stringify(s,null," "));return(0,a.useRef)(null),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(n.default,{className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Stack result JSON here...",mode:"json",theme:"github",name:"blah2",onChange:e=>{try{u(e),d((0,i.q7)(JSON.parse(e)))}catch(e){o.ZP.error("Error updating...",{id:"stack-update-error"})}},fontSize:13,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:c,setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,useWorker:!1,wrap:!0},height:l,width:"100%"})})}},87882:function(e,s,l){l.d(s,{Z:function(){return i}});var t=l(27573),a=l(36531),n=l(86288),r=l(88146);function i(){return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center min-h-screen bg-background -mt-4",children:[(0,t.jsxs)("div",{className:"text-center space-y-2 mb-8",children:[(0,t.jsx)("h2",{className:"text-3xl font-bold",children:"Welcome to Superduper"}),(0,t.jsx)("p",{className:"text-muted-foreground max-w-md",children:"Explore our reusable templates, applications, and execute queries against your database."})]}),(0,t.jsxs)("header",{className:"flex items-center justify-center gap-4 mb-8",children:[(0,t.jsx)(r.default,{href:"/webui/templates",children:(0,t.jsxs)(a.z,{variant:"outline",size:"sm",className:"flex items-center gap-2",children:[(0,t.jsx)(d,{className:"w-4 h-4"}),"See Templates"]})}),(0,t.jsx)(r.default,{href:"/webui/application",children:(0,t.jsxs)(a.z,{variant:"outline",size:"sm",className:"flex items-center gap-2",children:[(0,t.jsx)(o,{className:"w-4 h-4"}),"See Applications"]})}),(0,t.jsx)(r.default,{href:"/webui/query",children:(0,t.jsxs)(a.z,{variant:"outline",size:"sm",className:"flex items-center gap-2",children:[(0,t.jsx)(c,{className:"w-4 h-4"}),"Execute Query"]})})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 w-full max-w-3xl",children:[(0,t.jsx)(r.default,{href:"/webui/templates",children:(0,t.jsx)(n.Zb,{className:"transition-transform duration-300 hover:scale-105",children:(0,t.jsxs)(n.aY,{className:"flex flex-col items-center justify-center p-8",children:[(0,t.jsx)(d,{className:"w-6 h-6 mb-4 text-primary"}),(0,t.jsx)("h3",{className:"text-base font-bold mb-2",children:"Templates"}),(0,t.jsx)("p",{className:"text-muted-foreground text-center",children:"See our library of reusable templates or add one."})]})})}),(0,t.jsx)(r.default,{href:"/webui/application",children:(0,t.jsx)(n.Zb,{className:"transition-transform duration-300 hover:scale-105",children:(0,t.jsxs)(n.aY,{className:"flex flex-col items-center justify-center p-8",children:[(0,t.jsx)(o,{className:"w-6 h-6 mb-4 text-primary"}),(0,t.jsx)("h3",{className:"text-base font-bold mb-2",children:"Applications"}),(0,t.jsx)("p",{className:"text-muted-foreground text-center",children:"Check out our pre-built applications or add one now."})]})})}),(0,t.jsx)(r.default,{href:"/webui/query",children:(0,t.jsx)(n.Zb,{className:"transition-transform duration-300 hover:scale-105",children:(0,t.jsxs)(n.aY,{className:"flex flex-col items-center justify-center p-8",children:[(0,t.jsx)(c,{className:"w-6 h-6 mb-4 text-primary"}),(0,t.jsx)("h3",{className:"text-base font-bold mb-2",children:"Execute"}),(0,t.jsx)("p",{className:"text-muted-foreground text-center",children:"Execute queries to retrieve data from your database."})]})})})]})]})}function o(e){return(0,t.jsxs)("svg",{...e,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",children:[(0,t.jsx)("rect",{width:"7",height:"7",x:"3",y:"3",rx:"1"}),(0,t.jsx)("rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}),(0,t.jsx)("rect",{width:"7",height:"7",x:"14",y:"14",rx:"1"}),(0,t.jsx)("rect",{width:"7",height:"7",x:"3",y:"14",rx:"1"})]})}function d(e){return(0,t.jsx)("svg",{...e,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",children:(0,t.jsx)("path",{d:"M19.439 7.85c-.049.322.059.648.289.878l1.568 1.568c.47.47.706 1.087.706 1.704s-.235 1.233-.706 1.704l-1.611 1.611a.98.98 0 0 1-.837.276c-.47-.07-.802-.48-.968-.925a2.501 2.501 0 1 0-3.214 3.214c.446.166.855.497.925.968a.979.979 0 0 1-.276.837l-1.61 1.61a2.404 2.404 0 0 1-1.705.707 2.402 2.402 0 0 1-1.704-.706l-1.568-1.568a1.026 1.026 0 0 0-.877-.29c-.493.074-.84.504-1.02.968a2.5 2.5 0 1 1-3.237-3.237c.464-.18.894-.527.967-1.02a1.026 1.026 0 0 0-.289-.877l-1.568-1.568A2.402 2.402 0 0 1 1.998 12c0-.617.236-1.234.706-1.704L4.23 8.77c.24-.24.581-.353.917-.303.515.077.877.528 1.073 1.01a2.5 2.5 0 1 0 3.259-3.259c-.482-.196-.933-.558-1.01-1.073-.05-.336.062-.676.303-.917l1.525-1.525A2.402 2.402 0 0 1 12 1.998c.617 0 1.234.236 1.704.706l1.568 1.568c.23.23.556.338.877.29.493-.074.84-.504 1.02-.968a2.5 2.5 0 1 1 3.237 3.237c-.464.18-.894.527-.967 1.02Z"})})}function c(e){return(0,t.jsxs)("svg",{...e,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",children:[(0,t.jsx)("polyline",{points:"4 17 10 11 4 5"}),(0,t.jsx)("line",{x1:"12",x2:"20",y1:"19",y2:"19"})]})}}}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/9730-4d3f1b4ec3297db0.js b/superduper/rest/out/_next/static/chunks/5554-7a056a8eb6ba43c1.js similarity index 92% rename from superduper/rest/out/_next/static/chunks/9730-4d3f1b4ec3297db0.js rename to superduper/rest/out/_next/static/chunks/5554-7a056a8eb6ba43c1.js index ff39e4695..5eeb70a7c 100644 --- a/superduper/rest/out/_next/static/chunks/9730-4d3f1b4ec3297db0.js +++ b/superduper/rest/out/_next/static/chunks/5554-7a056a8eb6ba43c1.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9730],{87354:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84313).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},38983:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84313).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},88623:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84313).Z)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},42356:function(){},37224:function(e,t,n){"use strict";var r=n(74859);n(42356);var i=n(7653),s=i&&"object"==typeof i&&"default"in i?i:{default:i},o=void 0!==r&&r.env&&!0,l=function(e){return"[object String]"===Object.prototype.toString.call(e)},u=function(){function e(e){var t=void 0===e?{}:e,n=t.name,r=void 0===n?"stylesheet":n,i=t.optimizeForSpeed,s=void 0===i?o:i;a(l(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",a("boolean"==typeof s,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=s,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var u="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=u?u.getAttribute("content"):null}var t=e.prototype;return t.setOptimizeForSpeed=function(e){a("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),a(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},t.isOptimizeForSpeed=function(){return this._optimizeForSpeed},t.inject=function(){var e=this;if(a(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(o||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,n){return"number"==typeof n?e._serverSheet.cssRules[n]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),n},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},t.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t>>0},d={};function h(e,t){if(!t)return"jsx-"+e;var n=String(t),r=e+n;return d[r]||(d[r]="jsx-"+c(e+"-"+n)),d[r]}function f(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var n=e+t;return d[n]||(d[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[n]}var p=function(){function e(e){var t=void 0===e?{}:e,n=t.styleSheet,r=void 0===n?null:n,i=t.optimizeForSpeed,s=void 0!==i&&i;this._sheet=r||new u({name:"styled-jsx",optimizeForSpeed:s}),this._sheet.inject(),r&&"boolean"==typeof s&&(this._sheet.setOptimizeForSpeed(s),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var n=this.getIdAndRules(e),r=n.styleId,i=n.rules;if(r in this._instancesCounts){this._instancesCounts[r]+=1;return}var s=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[r]=s,this._instancesCounts[r]=1},t.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var r=this._fromServer&&this._fromServer[n];r?(r.parentNode.removeChild(r),delete this._fromServer[n]):(this._indices[n].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[n]),delete this._instancesCounts[n]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return n[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,n;return t=this.cssRules(),void 0===(n=e)&&(n={}),t.map(function(e){var t=e[0],r=e[1];return s.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:r}})})},t.getIdAndRules=function(e){var t=e.children,n=e.dynamic,r=e.id;if(n){var i=h(r,n);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return f(i,e)}):[f(i,t)]}}return{styleId:h(r),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=i.createContext(null);m.displayName="StyleSheetContext";var v=s.default.useInsertionEffect||s.default.useLayoutEffect,_="undefined"!=typeof window?new p:void 0;function y(e){var t=_||i.useContext(m);return t&&("undefined"==typeof window?t.add(e):v(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}y.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},t.style=y},53146:function(e,t,n){"use strict";e.exports=n(37224).style},97370:function(e,t,n){"use strict";var r=n(7653);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...s}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{fillRule:"evenodd",d:"M15.312 11.424a5.5 5.5 0 0 1-9.201 2.466l-.312-.311h2.433a.75.75 0 0 0 0-1.5H3.989a.75.75 0 0 0-.75.75v4.242a.75.75 0 0 0 1.5 0v-2.43l.31.31a7 7 0 0 0 11.712-3.138.75.75 0 0 0-1.449-.39Zm1.23-3.723a.75.75 0 0 0 .219-.53V2.929a.75.75 0 0 0-1.5 0V5.36l-.31-.31A7 7 0 0 0 3.239 8.188a.75.75 0 1 0 1.448.389A5.5 5.5 0 0 1 13.89 6.11l.311.31h-2.432a.75.75 0 0 0 0 1.5h4.243a.75.75 0 0 0 .53-.219Z",clipRule:"evenodd"}))});t.Z=i},903:function(e,t,n){"use strict";var r=n(7653);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...s}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M10 3a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM10 8.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM11.5 15.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0Z"}))});t.Z=i},18929:function(e,t,n){"use strict";var r=n(7653);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...s}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5v-4.5Z"}))});t.Z=i},32966:function(e,t,n){"use strict";var r=n(7653);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...s}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))});t.Z=i},3078:function(e,t,n){"use strict";var r=n(7653);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...s}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))});t.Z=i},7611:function(e,t,n){"use strict";var r=n(7653);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...s}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{fillRule:"evenodd",d:"M10.5 3A1.501 1.501 0 0 0 9 4.5h6A1.5 1.5 0 0 0 13.5 3h-3Zm-2.693.178A3 3 0 0 1 10.5 1.5h3a3 3 0 0 1 2.694 1.678c.497.042.992.092 1.486.15 1.497.173 2.57 1.46 2.57 2.929V19.5a3 3 0 0 1-3 3H6.75a3 3 0 0 1-3-3V6.257c0-1.47 1.073-2.756 2.57-2.93.493-.057.989-.107 1.487-.15Z",clipRule:"evenodd"}))});t.Z=i}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5554],{87354:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84313).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},38983:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84313).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},58153:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84313).Z)("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]])},52269:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84313).Z)("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]])},88623:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84313).Z)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},42356:function(){},37224:function(e,t,n){"use strict";var r=n(74859);n(42356);var i=n(7653),s=i&&"object"==typeof i&&"default"in i?i:{default:i},o=void 0!==r&&r.env&&!0,l=function(e){return"[object String]"===Object.prototype.toString.call(e)},u=function(){function e(e){var t=void 0===e?{}:e,n=t.name,r=void 0===n?"stylesheet":n,i=t.optimizeForSpeed,s=void 0===i?o:i;a(l(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",a("boolean"==typeof s,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=s,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var u="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=u?u.getAttribute("content"):null}var t=e.prototype;return t.setOptimizeForSpeed=function(e){a("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),a(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},t.isOptimizeForSpeed=function(){return this._optimizeForSpeed},t.inject=function(){var e=this;if(a(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(o||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,n){return"number"==typeof n?e._serverSheet.cssRules[n]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),n},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},t.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t>>0},d={};function h(e,t){if(!t)return"jsx-"+e;var n=String(t),r=e+n;return d[r]||(d[r]="jsx-"+c(e+"-"+n)),d[r]}function f(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var n=e+t;return d[n]||(d[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[n]}var p=function(){function e(e){var t=void 0===e?{}:e,n=t.styleSheet,r=void 0===n?null:n,i=t.optimizeForSpeed,s=void 0!==i&&i;this._sheet=r||new u({name:"styled-jsx",optimizeForSpeed:s}),this._sheet.inject(),r&&"boolean"==typeof s&&(this._sheet.setOptimizeForSpeed(s),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var n=this.getIdAndRules(e),r=n.styleId,i=n.rules;if(r in this._instancesCounts){this._instancesCounts[r]+=1;return}var s=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[r]=s,this._instancesCounts[r]=1},t.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var r=this._fromServer&&this._fromServer[n];r?(r.parentNode.removeChild(r),delete this._fromServer[n]):(this._indices[n].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[n]),delete this._instancesCounts[n]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return n[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,n;return t=this.cssRules(),void 0===(n=e)&&(n={}),t.map(function(e){var t=e[0],r=e[1];return s.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:r}})})},t.getIdAndRules=function(e){var t=e.children,n=e.dynamic,r=e.id;if(n){var i=h(r,n);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return f(i,e)}):[f(i,t)]}}return{styleId:h(r),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=i.createContext(null);m.displayName="StyleSheetContext";var v=s.default.useInsertionEffect||s.default.useLayoutEffect,y="undefined"!=typeof window?new p:void 0;function _(e){var t=y||i.useContext(m);return t&&("undefined"==typeof window?t.add(e):v(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}_.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},t.style=_},53146:function(e,t,n){"use strict";e.exports=n(37224).style},97370:function(e,t,n){"use strict";var r=n(7653);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...s}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{fillRule:"evenodd",d:"M15.312 11.424a5.5 5.5 0 0 1-9.201 2.466l-.312-.311h2.433a.75.75 0 0 0 0-1.5H3.989a.75.75 0 0 0-.75.75v4.242a.75.75 0 0 0 1.5 0v-2.43l.31.31a7 7 0 0 0 11.712-3.138.75.75 0 0 0-1.449-.39Zm1.23-3.723a.75.75 0 0 0 .219-.53V2.929a.75.75 0 0 0-1.5 0V5.36l-.31-.31A7 7 0 0 0 3.239 8.188a.75.75 0 1 0 1.448.389A5.5 5.5 0 0 1 13.89 6.11l.311.31h-2.432a.75.75 0 0 0 0 1.5h4.243a.75.75 0 0 0 .53-.219Z",clipRule:"evenodd"}))});t.Z=i},903:function(e,t,n){"use strict";var r=n(7653);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...s}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M10 3a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM10 8.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM11.5 15.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0Z"}))});t.Z=i},18929:function(e,t,n){"use strict";var r=n(7653);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...s}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5v-4.5Z"}))});t.Z=i},32966:function(e,t,n){"use strict";var r=n(7653);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...s}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))});t.Z=i},3078:function(e,t,n){"use strict";var r=n(7653);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...s}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))});t.Z=i},7611:function(e,t,n){"use strict";var r=n(7653);let i=r.forwardRef(function(e,t){let{title:n,titleId:i,...s}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},s),n?r.createElement("title",{id:i},n):null,r.createElement("path",{fillRule:"evenodd",d:"M10.5 3A1.501 1.501 0 0 0 9 4.5h6A1.5 1.5 0 0 0 13.5 3h-3Zm-2.693.178A3 3 0 0 1 10.5 1.5h3a3 3 0 0 1 2.694 1.678c.497.042.992.092 1.486.15 1.497.173 2.57 1.46 2.57 2.929V19.5a3 3 0 0 1-3 3H6.75a3 3 0 0 1-3-3V6.257c0-1.47 1.073-2.756 2.57-2.93.493-.057.989-.107 1.487-.15Z",clipRule:"evenodd"}))});t.Z=i}}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/5865-13233e1b47e313ae.js b/superduper/rest/out/_next/static/chunks/5865-13233e1b47e313ae.js new file mode 100644 index 000000000..75c8ec0fa --- /dev/null +++ b/superduper/rest/out/_next/static/chunks/5865-13233e1b47e313ae.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5865],{28251:function(e,s,a){var t=a(27573);a(7653);var r=a(80923),n=a(5772),l=a(4429),i=a(412);s.Z=()=>{let e=(0,i.I0)(),s=(0,i.v9)(e=>e.deployment.deploymentLoadedValues),a=a=>{let{name:t,value:r}=a.target;e((0,l.a)({...s,databackendType:"haveDatabase",[t]:r}))};return(0,t.jsx)(t.Fragment,{children:s?(0,t.jsx)("div",{children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mt-2 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,t.jsxs)("div",{className:"sm:col-span-3",children:[(0,t.jsx)(r.Z,{label:"Database Connection URI",popoverheader:"Database Connection URI",popovercontent:(0,t.jsx)("p",{children:"Here you put the connection string to your database. So, that we can connect to it. It's the full connection string."})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("input",{id:"database_uri",name:"databaseURI",type:"text",placeholder:"",autoComplete:"database_uri",value:s.databaseURI,onChange:a,className:"block w-2/3 rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"})})]})}),(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,t.jsxs)("div",{className:"sm:col-span-3",children:[(0,t.jsx)(r.Z,{label:"Metadata Store URI",popoverheader:"Metadata Store URI",popovercontent:(0,t.jsx)("p",{children:"Here you put a connection string of your database. So, that it could be used as metadata store. Otherwise, you can use the same as metadata store."})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("input",{id:"metadata-store-uri",name:"metadataStoreURI",type:"text",placeholder:"",autoComplete:"metadata-store-uri",value:s.metadataStoreURI,onChange:a,className:"block w-2/3 rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"})})]})}),(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,t.jsxs)("div",{className:"sm:col-span-3",children:[(0,t.jsx)(r.Z,{label:"Artifact Store URI",popoverheader:"Artifact Store URI",popovercontent:(0,t.jsx)("p",{children:"Artifact Store is a place where we store the artifacts. You can use the same as artifact store."})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("input",{id:"artifact_database_uri",name:"artifactStoreURI",type:"text",placeholder:"",autoComplete:"artifact_database_uri",value:s.artifactStoreURI,onChange:a,className:"block w-2/3 rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"})})]})})]})}):(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(n.Z,{})})})}},56511:function(e,s,a){a.d(s,{Z:function(){return C}});var t=a(27573),r=a(7653),n=a(59260),l=a(33453),i=a(80923),o=a(5772),d=a(4429),c=a(412),u=a(23611),m=a(2187),p=a(34611),x=a(93296),h=a(75355),v=a.n(h),g=a(68321),f=a(9551),y=a(72940),j=e=>{var s,a,n,l,o,d,h,j,b,N,C,w,P;let{data:I}=e,E=(0,c.I0)(),_=(0,c.v9)(e=>e.chartsgroups.chartsLoadedValues),[A,S]=(0,r.useState)(!1),Z=(0,c.v9)(e=>e.nodegroups.nodeUniqueLabels),[L,U]=(0,r.useState)({database:(null==I?void 0:null===(n=I.spec)||void 0===n?void 0:null===(a=n.mongodbParams)||void 0===a?void 0:null===(s=a.auth)||void 0===s?void 0:s.database)||"",username:(null==I?void 0:null===(d=I.spec)||void 0===d?void 0:null===(o=d.mongodbParams)||void 0===o?void 0:null===(l=o.auth)||void 0===l?void 0:l.username)||"",password:(null==I?void 0:null===(b=I.spec)||void 0===b?void 0:null===(j=b.mongodbParams)||void 0===j?void 0:null===(h=j.auth)||void 0===h?void 0:h.password)||"",replicaCount:(null==I?void 0:null===(C=I.spec)||void 0===C?void 0:null===(N=C.mongodbParams)||void 0===N?void 0:N.replicaCount)||0,computeClass:(null==I?void 0:null===(P=I.spec)||void 0===P?void 0:null===(w=P.mongodbParams)||void 0===w?void 0:w.computeClass)||""}),k=(0,r.useRef)(L),T=(0,r.useRef)(_);(0,r.useEffect)(()=>{v()(L,k.current)&&v()(_,T.current)||(console.log(),R(),k.current=L,T.current=_)},[L,_,g.V]);let R=()=>{try{let{database:e,username:s,password:a,replicaCount:t,computeClass:r}=L;I.spec.mongodbParams.auth.database=e,I.spec.mongodbParams.auth.username=s,I.spec.mongodbParams.auth.password=a,I.spec.mongodbParams.replicaCount=t,I.spec.mongodbParams.computeClass=r;let n=_.items.map(e=>e.name===I.name?I:e);E((0,p.Gi)({items:n})),x.ZP.success("MongoDB Params Updated!",{id:"unique-toast-id"})}catch(e){x.ZP.error("Something is wrong! Please try again.")}},D=e=>{let{name:s,value:a}=e.target;U(e=>({...e,[s]:a}))};return(0,t.jsxs)("div",{className:"overflow-visible",children:[Z&&_&&(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-8",children:(0,t.jsxs)("div",{className:"sm:col-span-3",children:[(0,t.jsx)(i.Z,{label:"Select ComputeClass",popoverheader:"Select ComputeClass",popovercontent:(0,t.jsx)("p",{children:"Please select the labels for this service. This means the service will run in a particular node! If you want a custom label first add labels in a node!"})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsxs)("select",{name:"computeClass",value:L.computeClass,onChange:D,className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[(0,t.jsx)("option",{value:"",children:"Select ComputeClass"}),[...Z].map(e=>(0,t.jsx)("option",{value:e,children:e},e))]})})]})}),(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-8",children:(0,t.jsxs)("div",{className:"sm:col-span-3",children:[(0,t.jsx)(i.Z,{label:"Database Name",popoverheader:"Name of the Database",popovercontent:(0,t.jsx)("p",{children:"Please provide the name of your database. It is the specific database you want to connect to."})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("input",{name:"database",value:L.database,onChange:D,type:"text",placeholder:"Type your database name",autoComplete:"database-name",className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"})})]})}),(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-8",children:(0,t.jsxs)("div",{className:"sm:col-span-3",children:[(0,t.jsx)(i.Z,{label:"Username",popoverheader:"Database Username",popovercontent:(0,t.jsx)("p",{children:"Please provide your username here. It is used to connect to your database from your cluster."})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("input",{name:"username",value:L.username,onChange:D,type:"text",placeholder:"Type your database username",autoComplete:"username",className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"})})]})}),(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-8",children:(0,t.jsxs)("div",{className:"sm:col-span-3",children:[(0,t.jsx)(i.Z,{label:"Password",popoverheader:"Database Password",popovercontent:(0,t.jsx)("p",{children:"Please provide your password here. It is used to authenticate connections to your database."})}),(0,t.jsxs)("div",{className:"mt-2 relative",children:[(0,t.jsx)("input",{id:"password",value:L.password,onChange:D,type:A?"text":"password",placeholder:"Type your database password",autoComplete:"current-password",className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6 pr-10"}),(0,t.jsx)("div",{className:"absolute inset-y-0 right-0 pr-3 flex items-center",children:(0,t.jsx)("button",{type:"button",onClick:()=>S(!A),className:"text-gray-400 hover:text-gray-500",children:A?(0,t.jsx)(f.Z,{className:"h-5 w-5","aria-hidden":"true"}):(0,t.jsx)(y.Z,{className:"h-5 w-5","aria-hidden":"true"})})})]})]})}),(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-8",children:(0,t.jsxs)("div",{className:"sm:col-span-3",children:[(0,t.jsx)(i.Z,{label:"Replica Count",popoverheader:"Replica Count",popovercontent:(0,t.jsx)("p",{children:"Please provide the replica count. It represents the number of replicas for your database."})}),(0,t.jsxs)("div",{className:"flex items-center justify-left mt-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>{U(e=>({...e,replicaCount:Math.max(e.replicaCount-1,1)}))},className:"rounded-full bg-indigo-600 p-1 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 mr-4",children:(0,t.jsx)(u.Z,{className:"h-5 w-5","aria-hidden":"true"})}),(0,t.jsx)("input",{disabled:!0,name:"replicaCount",value:L.replicaCount,onChange:D,type:"number",className:"w-16 text-center block rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"}),(0,t.jsx)("button",{type:"button",onClick:()=>{U(e=>({...e,replicaCount:e.replicaCount+1}))},className:"rounded-full bg-indigo-600 p-1 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 ml-4",children:(0,t.jsx)(m.Z,{className:"h-5 w-5","aria-hidden":"true"})})]})]})})]})},b=a(28251);function N(){for(var e=arguments.length,s=Array(e),a=0;a{var e;let s=(0,c.I0)(),a=(0,c.v9)(e=>e.chartsgroups.chartsLoadedValues),i=(0,c.v9)(e=>e.nodegroups.nodeUniqueLabels),u=(0,c.v9)(e=>e.deployment.deploymentLoadedValues),[m,p]=(0,r.useState)("deployDatabase"),[x,h]=(0,r.useState)({databaseURI:"",databaseType:"",metadataStoreURI:"",artifactStoreURI:""});return(0,r.useEffect)(()=>{s((0,d.a)({databackendType:m,...x}))},[x,m,s,a]),(0,t.jsx)(t.Fragment,{children:u&&i?(0,t.jsxs)("div",{children:[(0,t.jsxs)(n.E,{value:u.databackendType,onChange:p,children:[(0,t.jsx)(n.E.Label,{className:"text-base font-semibold leading-6 text-gray-900"}),(0,t.jsx)("div",{className:"mt-4 grid grid-cols-1 gap-y-6 sm:grid-cols-3 sm:gap-x-4",children:[{id:"deployDatabase",title:"Deploy a database",description:"We can deploy a database for you, and you can start using it right away.",users:"Deploy database",disabled:!1,active:!0},{id:"haveDatabase",title:"Connect existing database",description:"If you have a database, select this option and add the uri below.",users:"Host existing data",disabled:!1,active:!1}].map(e=>(0,t.jsx)(n.E.Option,{disabled:e.disabled,value:e.id,className:e=>{let{checked:s,active:a}=e;return N(s?"border-transparent":"border-gray-300",a?"border-indigo-600 ring-2 ring-indigo-600":"","relative flex cursor-pointer rounded-lg border bg-white p-4 shadow-sm focus:outline-none")},children:s=>{let{checked:a,active:r}=s;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"flex flex-1",children:(0,t.jsxs)("span",{className:"flex flex-col",children:[(0,t.jsx)(n.E.Label,{as:"span",className:"block text-sm font-medium text-gray-900",children:e.title}),(0,t.jsx)(n.E.Description,{as:"span",className:"mt-1 flex items-center text-sm text-gray-500",children:e.description}),(0,t.jsx)(n.E.Description,{as:"span",className:"mt-6 text-sm font-medium text-gray-900",children:e.users})]})}),(0,t.jsx)(l.Z,{className:N(a?"":"invisible","h-5 w-5 text-indigo-600"),"aria-hidden":"true"}),(0,t.jsx)("span",{className:N(r?"border":"border-2",a?"border-indigo-600":"border-transparent","pointer-events-none absolute -inset-px rounded-lg"),"aria-hidden":"true"})]})}},e.id))})]}),(0,t.jsx)("br",{}),"deployDatabase"===m&&(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"sm:col-span-3",children:[(0,t.jsx)("label",{htmlFor:"database-type",className:"block text-sm font-medium leading-6 text-gray-900",children:"Select Database"}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsxs)("select",{id:"database-type",name:"databaseType",autoComplete:"database-type",className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:max-w-xs sm:text-sm sm:leading-6",value:x.databaseType,onChange:e=>{let{name:s,value:a}=e.target;h(e=>({...e,[s]:a}))},children:[(0,t.jsx)("option",{value:"",children:"Select Database"}),(null==a?void 0:a.items)&&(null==a?void 0:a.items.filter(e=>{var s;return(null==e?void 0:null===(s=e.spec)||void 0===s?void 0:s.category)==="databases"}).map(e=>e.name).map(e=>(0,t.jsx)("option",{value:e,children:e.toLowerCase()},e)))]})}),a&&"mongodb"==x.databaseType&&(null==a?void 0:null===(e=a.items)||void 0===e?void 0:e.map((e,s)=>(0,t.jsx)(t.Fragment,{children:"mongodb"==e.name&&(0,t.jsx)(j,{data:e},s)})))]})}),"haveDatabase"===m&&(0,t.jsx)(b.Z,{})]}):(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(o.Z,{})})})}},73042:function(e,s,a){a.d(s,{Z:function(){return m}});var t=a(27573),r=a(7653),n=a(80923),l=a(34611),i=a(65454);let o=e=>s=>s({type:i.s,payload:e});var d=a(412),c=a(94432),u=a(74859),m=e=>{let{data:s}=e,a=(0,d.I0)(),i=(0,d.v9)(e=>e.chartsgroups.chartsLoadedValues),m=(0,d.v9)(e=>e.nodegroups.nodeUniqueLabels),p=(0,d.v9)(e=>{var s;return null==e?void 0:null===(s=e.userEnv)||void 0===s?void 0:s.userEnvLoadedValues});return(0,r.useEffect)(()=>{u.env.NEXT_PUBLIC_SUPERDUPER_IMAGE&&(e=>{try{let{name:s,tag:t}=(0,c.Z)(e),r=i.items.map(e=>{for(let a of Object.keys(e.spec))a.endsWith("Params")&&e.spec[a].image&&(e.spec[a].image.name=s,e.spec[a].image.tag=t);return e});console.log("Updated items:",r),a((0,l.Gi)({items:r}))}catch(e){console.error("Update failed:",e)}})(u.env.NEXT_PUBLIC_SUPERDUPER_IMAGE)},[]),(0,r.useEffect)(()=>{a(o({...p,image:u.env.NEXT_PUBLIC_SUPERDUPER_IMAGE}))},[]),(0,t.jsx)("div",{children:m&&(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,t.jsxs)("div",{className:"sm:col-span-3",children:[(0,t.jsx)(n.Z,{label:"Update Default Image",popoverheader:"Update Default Image",popovercontent:(0,t.jsx)("p",{children:"Please select the default Docker image for all services. All our services use the same Docker image."})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("input",{name:"imageandtag",value:p.image,onChange:e=>{a(o({...p,image:e.target.value}))},className:"block w-3/4 rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",placeholder:p.image||"Enter image and tag"})})]})})})}},48144:function(e,s,a){a.d(s,{Z:function(){return T}});var t=a(27573),r=a(7653),n=a(13908),l=a(88146),i=a(56511),o=a(28251),d=a(93296),c=a(412),u=a(64520),m=a(81695),p=a(72513),x=a(85688),h=a(98348),v=a(73042),g=a(35463),f=a(7682),y=a(46346),j=a(58991),b=a(34611),N=a(60855),C=a(72090),w=a(67412),P=a(5772),I=a(45246),E=a(7109),_=a(36531),A=a(19434),S=a(45696),Z=a.n(S),L=a(94432),U=a(74859);function k(e){return Array.isArray(e)&&e.length>0?Array.isArray(e[0])?e[0]:e:[]}function T(){let e=(0,c.I0)(),s=(0,c.v9)(e=>e.environment.environmentLoadedValues),a=(0,c.v9)(e=>{var s;return null==e?void 0:null===(s=e.userEnv)||void 0===s?void 0:s.userEnvLoadedValues}),S=(0,c.v9)(e=>e.extraEnvVars),T=(0,c.v9)(e=>{var s;return null==e?void 0:null===(s=e.userInfo)||void 0===s?void 0:s.userInfoLoadedValues}),R=(0,c.v9)(e=>e.secrets),D=(0,m.useRouter)(),B=(0,c.v9)(e=>e.deploymentName.deploymentNameLoadedValues.name),X=(0,c.v9)(e=>e.chartsgroups.chartsLoadedValues),F=(0,c.v9)(e=>e.nodegroups.nodeLoadedValues),V=(0,c.v9)(e=>e.deployment.deploymentLoadedValues),z=(0,c.v9)(e=>e.extraEnvVars),[O,W]=(0,r.useState)("Something went wrong while creating the deployment. Please try again later."),[q,G]=(0,r.useState)(!1),[M,K]=(0,r.useState)(!1),[Y,$]=(0,r.useState)(!1),[H,J]=(0,r.useState)(!1),[Q,ee]=(0,r.useState)(!0),[es,ea]=(0,r.useState)([]),et=s=>{try{let{name:a,tag:t}=(0,L.Z)(s);if(!a||!t){console.error("Invalid image or tag:",a,t),d.ZP.error("Invalid image or tag. Please try again.");return}let r=X.items.map(e=>{for(let s of Object.keys(e.spec))s.endsWith("Params")&&e.spec[s].image&&(e.spec[s].image.name=a,e.spec[s].image.tag=t);return e});console.log("Updated items:",r),e((0,b.Gi)({items:r}))}catch(e){console.error("Update failed:",e)}};(0,r.useEffect)(()=>{(async function(){ee(!0);try{function a(s){let a=[...S],t=s.filter(e=>!a.some(s=>s.name===e));t.length>0&&(t.forEach(e=>{a.push({name:e,value:""})}),e((0,A.I)(Z()(a))))}let t=e=>(console.error("Error occurred:",e),console.log("Using fallback logic. Returning an empty array."),a([]),[]),r=async()=>{try{let e="".concat(U.env.NEXT_PUBLIC_API,"/secrets?deployment=").concat(B),t=await n.Z.get(e,{headers:{Accept:"application/json",Authorization:(0,E.Z)(T),superduper_reverse_proxy:U.env.NEXT_PUBLIC_API||s.NEXT_PUBLIC_API}});console.log("Secrets retrieved successfully:",t.data);let r=function(e){try{if(e&&Array.isArray(e.items))return e.items.map(e=>e.name)}catch(e){console.error("Error processing payload:",e)}return[]}(t.data);return ea((0,w.Z)(t.data)),console.log("Empty Secrets",(0,w.Z)(t.data)),a(r),r}catch(e){return t(e)}},l=await r();console.log("Final secrets array:",l)}catch(e){console.error("Error fetching secrets:",e)}finally{ee(!1)}})()},[]),(0,r.useEffect)(()=>{let a=async()=>{try{let a=await n.Z.get("".concat("".concat(U.env.NEXT_PUBLIC_API,"/charts?deployment=").concat(B)),{headers:{Accept:"application/json",Authorization:(0,E.Z)(T),superduper_reverse_proxy:U.env.NEXT_PUBLIC_API||s.NEXT_PUBLIC_API}});console.log("Charts API data:",a.data),e((0,b.Gi)(a.data))}catch(e){console.error("Error fetching Services API data")}};X||a()},[]),(0,r.useEffect)(()=>{let a=async()=>{try{let a=await n.Z.get("".concat("".concat(U.env.NEXT_PUBLIC_API,"/nodegroups?deployment=").concat(B)),{headers:{Accept:"application/json",Authorization:(0,E.Z)(T),superduper_reverse_proxy:U.env.NEXT_PUBLIC_API||s.NEXT_PUBLIC_API}});console.log("Nodegroups API data:",a.data);let t=a.data.items.map(e=>e.spec.extraComputeClass&&e.spec.extraComputeClass.length>0?e:{...e,spec:{...e.spec,extraComputeClass:[...new Set([...e.spec.extraComputeClass||[],"base"].filter(Boolean))]},status:{...e.status,reservation:{...e.status.reservation,state:"Idle"}}});console.log("Updated Nodegroups API data:",t),e((0,N.NB)({items:t})),e((0,N.Bw)({items:t}))}catch(e){console.error("Error fetching API data:",e),d.ZP.error("Error fetching Node Groups data")}};F||a()},[]);let er=()=>{if(X&&X.items){let s=function e(s){if(Array.isArray(s))return s.map(s=>e(s));if("object"!=typeof s||null===s)return s;for(let a in s)s[a]=e(s[a]),"computeClass"===a&&(s[a]="base");return s}(X.items);e((0,b.Gi)({items:s}))}else console.error("chartsgroups or chartsgroups.items is undefined")},en=async()=>{let e;try{er(),et(null==a?void 0:a.image),window.scrollTo({top:0,behavior:"smooth"});let t={name:B,spec:{fake:!!B.startsWith("fake"),dataEndpoints:{artifactStore:{backendType:"",connectionURI:"true"==U.env.NEXT_PUBLIC_SNOWFLAKE?"filesystem:///artifacts":(null==V?void 0:V.databaseURI)?"filesystem://":""},dataStore:{backendType:"",connectionURI:"true"==U.env.NEXT_PUBLIC_SNOWFLAKE?"snowflake://":(null==V?void 0:V.databaseURI)||""},metadataStore:{backendType:"",connectionURI:"true"==U.env.NEXT_PUBLIC_SNOWFLAKE?"snowflake://":(null==V?void 0:V.databaseURI)||""},extraEnvVars:"true"==U.env.NEXT_PUBLIC_SNOWFLAKE?[]:z||[]},nodeGroupList:F.items.map(e=>{let{status:s,...a}=e;return a}).filter(e=>{var s;return(null==e?void 0:null===(s=e.spec)||void 0===s?void 0:s.extraComputeClass)&&e.spec.extraComputeClass.length>0}),secrets:"true"==U.env.NEXT_PUBLIC_SNOWFLAKE&&k(R)||[],serviceList:X.items.map(e=>{let{status:s,...a}=e;return a}).filter(e=>{if("true"===U.env.NEXT_PUBLIC_SNOWFLAKE){var s;return(null==e?void 0:null===(s=e.spec)||void 0===s?void 0:s.category)!=="databases"&&(null==e?void 0:e.name)!=="mongodb"&&(null==e?void 0:e.name)!=="monitoring"}return!0})}};J(!0),console.log("\uD83D\uDC49 REQUEST DATA",t);let r={headers:{Accept:"application/json","Content-Type":"application/json",Authorization:(0,E.Z)(T),superduper_reverse_proxy:U.env.NEXT_PUBLIC_API||s.NEXT_PUBLIC_API}};G(!0),e=d.ZP.loading("Deployment in progress...",{duration:1/0}),await new Promise(e=>setTimeout(e,3e3));let l=await n.Z.post("".concat("".concat(U.env.NEXT_PUBLIC_API,"/deployments")),t,r);console.log("RESULT:",l.data),await new Promise(e=>setTimeout(e,5e3)),d.ZP.dismiss(e),window.location.assign("/webui/deployment?deployment=done&query=1m"),d.ZP.success("Deployment successful!",{icon:"\uD83D\uDE80",duration:5e3})}catch(s){var t,r;e&&d.ZP.dismiss(e),s.response&&"true"===U.env.NEXT_PUBLIC_SNOWFLAKE&&200!==s.response.status&&400!==s.response.status?(console.error("Deployment Form Submission Error:",s.response.data),W((null===(t=s.response)||void 0===t?void 0:t.data)||s.message)):(console.error("Deployment Form Submission Error:",s),W((null===(r=s.response)||void 0===r?void 0:r.data)||s.message)),$(!0),d.ZP.error("Deployment failed. Please try again.",{duration:5e3})}finally{J(!1),G(!1),K(!1)}},el=async()=>{let e;try{er(),et(null==a?void 0:a.image);let t={name:B,spec:{fake:!!B.startsWith("fake"),dataEndpoints:{artifactStore:{backendType:"",connectionURI:(null==V?void 0:V.artifactStoreURI)||""},dataStore:{backendType:"",connectionURI:(null==V?void 0:V.databaseURI)||""},metadataStore:{backendType:"",connectionURI:(null==V?void 0:V.metadataStoreURI)||""},extraEnvVars:"true"==U.env.NEXT_PUBLIC_SNOWFLAKE?[]:z||[]},nodeGroupList:F.items.map(e=>{let{status:s,...a}=e;return a}).filter(e=>{var s;return(null==e?void 0:null===(s=e.spec)||void 0===s?void 0:s.extraComputeClass)&&e.spec.extraComputeClass.length>0}),secrets:"true"==U.env.NEXT_PUBLIC_SNOWFLAKE&&k(R)||[],serviceList:X.items.map(e=>{let{status:s,...a}=e;return a}).filter(e=>{if("true"===U.env.NEXT_PUBLIC_SNOWFLAKE){var s;return(null==e?void 0:null===(s=e.spec)||void 0===s?void 0:s.category)!=="databases"&&(null==e?void 0:e.name)!=="mongodb"&&(null==e?void 0:e.name)!=="monitoring"}return!0})}};console.log("\uD83D\uDC49 REQUEST DATA",t),G(!0),e=d.ZP.loading("Retrying deployment...",{duration:1/0}),await new Promise(e=>setTimeout(e,5e3));let r={headers:{Accept:"application/json","Content-Type":"application/json",Authorization:(0,E.Z)(T),superduper_reverse_proxy:U.env.NEXT_PUBLIC_API||s.NEXT_PUBLIC_API}},l=await n.Z.post("".concat("".concat(U.env.NEXT_PUBLIC_API,"/deployments")),t,r);console.log("RESULT:",l.data),await new Promise(e=>setTimeout(e,5e3)),d.ZP.dismiss(e),d.ZP.success("Deployment is successful.",{duration:5e3}),D.push("/webui/deployment?deployment=done&query=1m",void 0,{shallow:!1}),K(!1)}catch(s){if(e&&d.ZP.dismiss(e),s.response&&200!==s.response.status&&400!==s.response.status)console.error("Deployment Form Submission Error:",s.response.data),D.push("/webui/deployment?deployment=done&query=1m",void 0,{shallow:!1}),d.ZP.success("Deployment successful!",{icon:"\uD83D\uDE80",duration:5e3});else{var t;console.error("Deployment Form Submission Error:",s),W((null===(t=s.response)||void 0===t?void 0:t.data)||s.message),$(!0),d.ZP.error("Deployment retry failed. Please try again.",{duration:5e3})}}finally{G(!1),K(!1)}};return q?(0,t.jsx)(j.Z,{}):Q?(0,t.jsxs)("div",{className:"mt-4",children:[(0,t.jsx)(P.Z,{times:6}),";"]}):S&&0!==S.length?es.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(I.Z,{header:"Missing Secrets",shortMessage:"Please create the following secrets: ".concat(es.join(", ")),status:"404",description:"You have to create the listed secrets first from /secrets page."}),(0,t.jsx)("div",{className:"my-4 border-t border-gray-300"}),(0,t.jsx)("br",{}),(0,t.jsx)("br",{}),(0,t.jsx)("div",{className:"text-center mt-4",children:(0,t.jsx)("a",{href:"/webui/secrets",children:(0,t.jsxs)(_.z,{className:"mt-4 mx-auto w-full max-w-md p-6 text-lg rounded-lg flex items-center justify-center space-x-2 bg-blue-600 text-white hover:bg-blue-700",children:[(0,t.jsx)(C.Z,{className:"w-6 h-6"})," ",(0,t.jsx)("span",{children:"Create Secrets"})]})})})]}):(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"space-y-2",children:["true"!==U.env.NEXT_PUBLIC_SNOWFLAKE&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"border-b border-gray-900/10 pb-12",children:[(0,t.jsx)("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:"Add Databackend"}),(0,t.jsx)("p",{className:"mt-1 text-sm leading-6 text-gray-600",children:"At first you have to add a database to your deployment. You can update the parameters below. We will deploy and handle the rest."}),(0,t.jsx)("br",{}),"true"!==U.env.NEXT_PUBLIC_SNOWFLAKE?(0,t.jsx)(i.Z,{}):(0,t.jsx)(o.Z,{})]}),(0,t.jsx)("br",{})]}),(0,t.jsxs)("div",{className:"pb-4",children:[(0,t.jsx)("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:"Define Image"}),(0,t.jsx)("p",{className:"mt-1 text-sm leading-6 text-gray-600",children:"Update the image you want to install on your deployment."}),(0,t.jsxs)("div",{style:{marginLeft:"-1.5rem!important"},children:[(0,t.jsx)(v.Z,{}),"true"==U.env.NEXT_PUBLIC_SNOWFLAKE?(0,t.jsx)("div",{className:"hidden",children:(0,t.jsx)(f.Z,{})}):(0,t.jsx)("div",{className:"hidden",children:(0,t.jsx)(g.Z,{})})]})]}),(0,t.jsxs)("div",{className:"mt-6 flex items-center justify-end gap-x-6",children:[(0,t.jsx)(l.default,{href:"/webui",children:(0,t.jsx)("button",{type:"button",className:"text-sm font-semibold leading-6 text-gray-900",children:"Cancel"})}),(0,t.jsxs)(u.aR,{children:[(0,t.jsx)(u.vW,{className:"rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Start Deployment"}),(0,t.jsxs)(u._T,{children:[(0,t.jsxs)(u.fY,{children:[(0,t.jsx)(u.f$,{children:"Start creating deployment now..."}),(0,t.jsx)(u.yT,{children:"This will create a deployment and it will take some time to finish. Please be patient. Do you want to continue?"})]}),(0,t.jsxs)(u.xo,{children:[(0,t.jsx)(u.le,{children:"Cancel"}),(0,t.jsx)(u.OL,{onClick:()=>{K(!0),en()},children:"Continue"})]})]})]})]}),(0,t.jsx)(u.aR,{open:M,children:(0,t.jsx)(u._T,{children:(0,t.jsxs)(u.fY,{children:[(0,t.jsx)(u.f$,{children:"Started deployment process..."}),(0,t.jsx)(u.yT,{children:"This initiates a deployment process that may take some time. Please wait patiently. You'll be redirected to the dashboard once it's complete."}),(0,t.jsx)("br",{}),(0,t.jsx)(h.O,{})]})})}),(0,t.jsx)(u.aR,{open:Y,children:(0,t.jsxs)(u._T,{children:[(0,t.jsxs)(u.fY,{children:[(0,t.jsx)(u.f$,{children:"Deployment Failed"}),(0,t.jsx)(u.yT,{children:(0,t.jsxs)(p.bZ,{variant:"destructive",children:[(0,t.jsx)(x.LPM,{className:"h-4 w-4"}),(0,t.jsx)(p.Cd,{children:"Error"}),(0,t.jsx)(y.x,{className:"scrollbar-visible h-[200px] w-full mt-2 pr-4",children:(0,t.jsx)(p.X,{children:O})})]})})]}),(0,t.jsxs)(u.xo,{children:[(0,t.jsx)(u.le,{onClick:()=>{$(!1),K(!1)},children:"Cancel"}),(0,t.jsx)(u.OL,{onClick:()=>{K(!0),$(!1),el()},children:"Retry Now"})]})]})})]})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(I.Z,{header:"No secrets added",shortMessage:"Please create secrets at first before proceeding.",status:"404",description:"You have to add a secret first from /secrets page."}),(0,t.jsx)("div",{className:"my-4 border-t border-gray-300"}),(0,t.jsx)("br",{}),(0,t.jsx)("br",{}),(0,t.jsx)("div",{className:"text-center mt-4",children:(0,t.jsx)("a",{href:"/webui/secrets",children:(0,t.jsxs)(_.z,{className:"mt-4 mx-auto w-full max-w-md p-6 text-lg rounded-lg flex items-center justify-center space-x-2 bg-blue-600 text-white hover:bg-blue-700",children:[(0,t.jsx)(C.Z,{className:"w-6 h-6"})," ",(0,t.jsx)("span",{children:"Create Secrets"})]})})})]})}},43210:function(e,s,a){a.d(s,{Z:function(){return el}});var t=a(27573),r=a(7653),n=a(13908),l=a(88146),i=a(5772),o=a(93296),d=a(61284),c=a(63130),u=a(36531),m=a(412),p=a(60855);function x(e){let{data:s}=e,a=(0,m.I0)(),n=(0,m.v9)(e=>e.nodegroups.nodeUniqueLabels)||[],[l,i]=(0,r.useState)(""),d=async()=>{if(!l){o.ZP.error("Please type a ComputeClass before adding.",{id:"no-input-toast"});return}if(n.includes(l)){o.ZP.error("This ComputeClass is already added! Add a new ComputeClass!");return}try{a((0,p.Lj)([...n,l])),i(""),o.ZP.success("Successfully added!")}catch(e){o.ZP.error("An error occurred. Please reload and try again!")}};return(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("label",{className:"block text-sm font-medium leading-6 text-gray-900",children:"Add ComputeClass"}),(0,t.jsx)("input",{type:"text",className:"mt-2 w-full rounded-md border-0 bg-white py-1.5 pl-3 pr-10 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",value:l,onChange:e=>{i(e.target.value)},placeholder:"Type ComputeClass here..."}),(0,t.jsx)(u.z,{type:"button",className:"mt-2",onClick:d,children:"Add Now"})]})}var h=a(85688),v=a(4482),g=a(42502),f=a(64303),y=a(4216),j=a(80500),b=a(95042),N=a(12900),C=a(7109),w=a(74859);let P=(e,s)=>[...e].sort((e,a)=>{for(let[t,r]of Object.entries(s)){let s=parseFloat(e.status.capacity[t]),n=parseFloat(a.status.capacity[t]);if(s!==n)return se.environment.environmentLoadedValues),l=(0,m.v9)(e=>{var s;return null==e?void 0:null===(s=e.userInfo)||void 0===s?void 0:s.userInfoLoadedValues}),I=(0,m.I0)(),_=(0,m.v9)(e=>e.nodegroups.nodeLoadedValues),A=(0,m.v9)(e=>e.deploymentName.deploymentNameLoadedValues.name),S=(0,m.v9)(e=>e.nodegroups.nodeUniqueLabels)||[];(0,r.useEffect)(()=>{let e=async()=>{try{let e=(await n.Z.get("".concat("".concat(w.env.NEXT_PUBLIC_API,"/nodegroups?deployment=").concat(A)),{headers:{Accept:"application/json",Authorization:(0,C.Z)(l),superduper_reverse_proxy:w.env.NEXT_PUBLIC_API||a.NEXT_PUBLIC_API}})).data.items.map(e=>e.spec.extraComputeClass&&e.spec.extraComputeClass.length>0?e:{...e,spec:{...e.spec,extraComputeClass:[...new Set([...e.spec.extraComputeClass||[],"base"].filter(Boolean))]},status:{...e.status,reservation:{...e.status.reservation,state:"Idle"}}});I((0,p.NB)({items:e})),I((0,p.Bw)({items:e}))}catch(e){console.error("Error fetching API data:",e),o.ZP.error("Error fetching Node Groups data")}};_||e()},[]);let[Z,L]=(0,r.useState)({numCPUs:"asc",numGPUs:"asc",memoryMB:"asc",ephemeralStorageMB:"asc"}),U=(e,s)=>{L(a=>({...a,[e]:s}))},[,k]=(0,r.useState)(),T=()=>k({}),[R,D]=(0,r.useState)(()=>S.length?S[S.length-1]:"base"),[B,X]=(0,r.useState)(0);(0,r.useEffect)(()=>{S.length&&(0===B?(D("base"),X(e=>e+1)):(D(S[S.length-1]),X(e=>e+1)))},[S]),(0,r.useEffect)(()=>{if(console.log("Sorting nodegroups with sortOrder:",Z),null==_?void 0:_.items){let e=P(_.items,Z);console.log("Sorted items:",e),I((0,p.NB)({items:e})),T()}},[Z]);let F=async(e,s)=>{var a,t;(null==e?void 0:e.spec)||(e.spec={}),(null==e?void 0:null===(a=e.spec)||void 0===a?void 0:a.extraComputeClass)||(e.spec.extraComputeClass=[]);let r=(null==e?void 0:null===(t=e.spec)||void 0===t?void 0:t.extraComputeClass)||[];if(r.includes(s)){try{for(let a=e.spec.extraComputeClass.length-1;a>=0;a--)e.spec.extraComputeClass[a]===s&&e.spec.extraComputeClass.splice(a,1);e.spec.exclusiveReservation=null,e.status.reservation.state="Idle";let a=_.items.map(s=>s.name===e.name?e:s);I((0,p.NB)({items:a})),(0,o.ZP)("".concat(s," is removed from ").concat(e.name,"!"),{icon:"❎",id:"updated-toast"}),T()}catch(e){o.ZP.error("An error occurred",{id:"updated-toast"})}return}try{e.spec.extraComputeClass=[...r,s],e.status.reservation.state="Shared";let a=_.items.map(s=>s.name===e.name?e:s);I((0,p.NB)({items:a})),(0,o.ZP)("".concat(s," is added to ").concat(e.name,"!"),{icon:"✅",id:"updated-toast"}),T()}catch(e){o.ZP.error("An error occurred. Please reload and try again!")}},V=async(e,s)=>{var a,t,r;if((null==e?void 0:e.spec)||(e.spec={}),(null==e?void 0:null===(a=e.spec)||void 0===a?void 0:a.extraComputeClass)||(e.spec.extraComputeClass=[]),(null==e?void 0:null===(t=e.spec)||void 0===t?void 0:t.exclusiveReservation)||(e.spec.exclusiveReservation=null),((null==e?void 0:null===(r=e.spec)||void 0===r?void 0:r.exclusiveReservation)||null)===s){try{e.spec.exclusiveReservation=null,e.status.reservation.state="Shared";let a=_.items.map(s=>s.name===e.name?e:s);I((0,p.NB)({items:a})),(0,o.ZP)("".concat(s," is removed from ").concat(e.name,"!"),{icon:"❎",id:"updated-toast"}),T()}catch(e){o.ZP.error("An error occurred",{id:"updated-toast"})}return}try{e.spec.exclusiveReservation=s,e.spec.extraComputeClass=[s],e.status.reservation.state="Exclusive";let a=_.items.map(s=>s.name===e.name?e:s);I((0,p.NB)({items:a})),(0,o.ZP)("".concat(s," is exclusively added to ").concat(e.name,"! It will remove the reserved status from all other nodes."),{icon:"✅",id:"updated-toast"}),T()}catch(e){o.ZP.error("An error occurred. Please reload and try again!")}},z=e=>{try{var s;return"string"==typeof(null==e?void 0:null===(s=e.spec)||void 0===s?void 0:s.exclusiveReservation)&&""!==e.spec.exclusiveReservation.trim()}catch(e){return console.error("Error in reserveDefineDisableOrNot:",e),!1}},O=(e,s)=>{try{var a,t,r,n,l,i,o,d,c,u;if(null==e?void 0:null===(r=e.spec)||void 0===r?void 0:null===(t=r.extraComputeClass)||void 0===t?void 0:t.includes(null==e?void 0:null===(a=e.spec)||void 0===a?void 0:a.exclusiveReservation)){if((null==e?void 0:null===(u=e.spec)||void 0===u?void 0:u.exclusiveReservation)===s)return!1;return!0}if((null==e?void 0:null===(n=e.spec)||void 0===n?void 0:n.exclusiveReservation)||!(null==e?void 0:null===(i=e.spec)||void 0===i?void 0:null===(l=i.extraComputeClass)||void 0===l?void 0:l.length))return!0;null==e||null===(c=e.spec)||void 0===c||null===(d=c.extraComputeClass)||void 0===d||d.includes(null==e?void 0:null===(o=e.spec)||void 0===o?void 0:o.exclusiveReservation)}catch(e){}return!1},W=(e,s)=>{try{if(1===S.length){o.ZP.error("At least one ComputeClass is required!",{id:"removed-toast"});return}let a=e.items.map(e=>{let a=JSON.parse(JSON.stringify(e));if(a.spec.exclusiveReservation===s&&(a.spec.exclusiveReservation=null),Array.isArray(a.spec.extraComputeClass)){let e=a.spec.extraComputeClass.indexOf(s);-1!==e&&a.spec.extraComputeClass.splice(e,1)}return a});I((0,p.NB)({items:a})),I((0,p.Lj)([...S.filter(e=>e!==s)])),D(S[S.length-1]),T(),(0,o.ZP)("Successfully removed!",{id:"removed-toast"})}catch(e){console.error("Error in handleRemoveComputeClassAndReservation:",e)}},[q,G]=(0,r.useState)("all"),M=e=>{G(e)};return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{children:_?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"-ml-4 mt-4 mb-2 bg-white px-4 py-2 sm:px-4",children:(0,t.jsxs)(f.mQ,{defaultValue:R,value:R,onValueChange:e=>D(e),className:"w-full",children:[(0,t.jsx)(f.dr,{children:(0,t.jsxs)("div",{className:"flex",children:[S.map(e=>(0,t.jsxs)(f.SP,{value:e,children:[e," ",(0,t.jsx)(c.Z,{onClick:()=>{W(_,e)},className:"-mr-1 h-4 w-4","aria-hidden":"true"})]},e)),(0,t.jsxs)(b.J2,{children:[(0,t.jsx)(b.xo,{asChild:!0,children:(0,t.jsx)(u.z,{className:"rounded-full",variant:"primary",children:(0,t.jsx)(E,{className:"h-5 w-5"})})}),(0,t.jsxs)(b.yk,{className:"w-80",children:[(0,t.jsx)(d.xp,{asChild:!0,children:(0,t.jsx)(c.Z,{className:"ml-auto -mb-2 h-5 w-5 flex text-gray-400 cursor-pointer hover:text-gray-500","aria-hidden":"true"})}),(0,t.jsxs)("div",{className:"grid gap-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("h4",{className:"font-medium leading-none",children:"Add ComputeClass"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"You can select the compute class for the node later."})]}),(0,t.jsx)("div",{className:"grid gap-2",children:(0,t.jsx)(x,{data:_})})]})]})]})]})}),S.map(e=>(0,t.jsx)(f.nU,{value:e,children:(0,t.jsx)("div",{className:"container mx-auto px-0 py-2 w-full",children:(0,t.jsx)("div",{className:"border rounded-lg overflow-x-auto w-full",children:(0,t.jsxs)(j.iA,{children:[(0,t.jsx)(j.xD,{children:(0,t.jsxs)(j.SC,{children:[(0,t.jsx)(j.ss,{className:"text-center px-1",children:(0,t.jsx)(N.C,{variant:"outline",children:"Reserve"})}),(0,t.jsx)(j.ss,{className:"text-center px-1",children:(0,t.jsx)(N.C,{variant:"outline",children:"Exclusive"})}),(0,t.jsx)(j.ss,{children:(0,t.jsx)(N.C,{variant:"outline",children:"Node Name"})}),(0,t.jsx)(j.ss,{className:"text-center",children:(0,t.jsxs)(g.h_,{children:[(0,t.jsx)(g.$F,{asChild:!0,children:(0,t.jsxs)(u.z,{variant:"ghost",size:"sm",className:"px-0",children:["CPU",(0,t.jsx)(h.jnn,{className:"ml-2 h-4 w-4"})]})}),(0,t.jsx)(g.AW,{align:"end",className:"w-[200px]",children:(0,t.jsxs)(g._x,{value:Z.numCPUs,onValueChange:e=>U("numCPUs",e),children:[(0,t.jsx)(g.qB,{value:"asc",children:"Ascending"}),(0,t.jsx)(g.qB,{value:"desc",children:"Descending"})]})})]})}),(0,t.jsx)(j.ss,{className:"text-center",children:(0,t.jsxs)(g.h_,{children:[(0,t.jsx)(g.$F,{asChild:!0,children:(0,t.jsxs)(u.z,{variant:"ghost",size:"sm",className:"px-0",children:["GPU",(0,t.jsx)(h.jnn,{className:"ml-2 h-4 w-4"})]})}),(0,t.jsx)(g.AW,{align:"end",className:"w-[200px]",children:(0,t.jsxs)(g._x,{value:Z.numGPUs,onValueChange:e=>U("numGPUs",e),children:[(0,t.jsx)(g.qB,{value:"asc",children:"Ascending"}),(0,t.jsx)(g.qB,{value:"desc",children:"Descending"})]})})]})}),(0,t.jsx)(j.ss,{className:"text-center",children:(0,t.jsxs)(g.h_,{children:[(0,t.jsx)(g.$F,{asChild:!0,children:(0,t.jsxs)(u.z,{variant:"ghost",className:"px-0",size:"sm",children:["RAM",(0,t.jsx)(h.jnn,{className:"ml-2 h-4 w-4"})]})}),(0,t.jsx)(g.AW,{align:"end",className:"w-[200px]",children:(0,t.jsxs)(g._x,{value:Z.memoryMB,onValueChange:e=>U("memoryMB",e),children:[(0,t.jsx)(g.qB,{value:"asc",children:"Ascending"}),(0,t.jsx)(g.qB,{value:"desc",children:"Descending"})]})})]})}),(0,t.jsx)(j.ss,{className:"text-center",children:(0,t.jsxs)(g.h_,{children:[(0,t.jsx)(g.$F,{asChild:!0,children:(0,t.jsxs)(u.z,{className:"px-0",variant:"ghost",size:"sm",children:["Storage",(0,t.jsx)(h.jnn,{className:"ml-2 h-4 w-4"})]})}),(0,t.jsx)(g.AW,{align:"end",className:"w-[200px]",children:(0,t.jsxs)(g._x,{value:Z.ephemeralStorageMB,onValueChange:e=>U("ephemeralStorageMB",e),children:[(0,t.jsx)(g.qB,{value:"asc",children:"Ascending"}),(0,t.jsx)(g.qB,{value:"desc",children:"Descending"})]})})]})}),(0,t.jsx)(j.ss,{className:"text-center",children:(0,t.jsxs)(g.h_,{children:[(0,t.jsx)(g.$F,{asChild:!0,children:(0,t.jsxs)(u.z,{className:"px-0",variant:"ghost",size:"sm",children:["State",(0,t.jsx)(h.jnn,{className:"ml-2 h-4 w-4"})]})}),(0,t.jsx)(g.AW,{align:"end",className:"w-[200px]",children:(0,t.jsxs)(g._x,{value:q,onValueChange:e=>M(e),children:[(0,t.jsx)(g.qB,{value:"all",children:"Show All"}),(0,t.jsx)(g.qB,{value:"IDLE",children:"IDLE"}),(0,t.jsx)(g.qB,{value:"SHARED",children:"SHARED"}),(0,t.jsx)(g.qB,{value:"EXCLUSIVE",children:"EXCLUSIVE"})]})})]})})]})}),(0,t.jsx)(j.RM,{children:null==_?void 0:_.items.filter(e=>{let s=q.toLowerCase();return"all"===s||!["exclusive","idle","shared"].includes(s)||e.status.reservation.state.toLowerCase()===s}).map((s,a)=>{var r,n,l,i,o,d,c,u,m,p,x,h,g,f,b,N,C;return(0,t.jsxs)(j.SC,{children:[(0,t.jsx)(j.pj,{className:"text-center",children:(0,t.jsx)(y.X,{id:e,onCheckedChange:()=>{F(s,e)},checked:null==s?void 0:null===(n=s.spec)||void 0===n?void 0:null===(r=n.extraComputeClass)||void 0===r?void 0:r.includes(e),defaultChecked:null==s?void 0:null===(i=s.spec)||void 0===i?void 0:null===(l=i.extraComputeClass)||void 0===l?void 0:l.includes(e),disabled:z(s)})}),(0,t.jsx)(j.pj,{className:"text-center",children:(0,t.jsx)(y.X,{id:e+e,onCheckedChange:()=>{V(s,e)},checked:(null==s?void 0:null===(o=s.spec)||void 0===o?void 0:o.exclusiveReservation)===e,defaultChecked:(null==s?void 0:null===(d=s.spec)||void 0===d?void 0:d.exclusiveReservation)===e,disabled:O(s,e)})}),(0,t.jsx)(j.pj,{children:null==s?void 0:s.name.replace(/\.compute\.internal/g,"")}),(0,t.jsx)(j.pj,{className:"text-center",children:null==s?void 0:null===(u=s.status)||void 0===u?void 0:null===(c=u.capacity)||void 0===c?void 0:c.numCPUs}),(0,t.jsx)(j.pj,{className:"text-center",children:null==s?void 0:null===(p=s.status)||void 0===p?void 0:null===(m=p.capacity)||void 0===m?void 0:m.numGPUs}),(0,t.jsxs)(j.pj,{className:"text-center",children:[null==s?void 0:null===(h=s.status)||void 0===h?void 0:null===(x=h.capacity)||void 0===x?void 0:x.memoryMB,"MB"]}),(0,t.jsxs)(j.pj,{className:"text-center",children:[(parseInt(String(null==s?void 0:null===(f=s.status)||void 0===f?void 0:null===(g=f.capacity)||void 0===g?void 0:g.ephemeralStorageMB),10)/1024).toFixed(2),"GB"]}),(0,t.jsx)(j.pj,{className:"text-center",children:(0,t.jsx)("div",{className:"mt-1",children:(0,t.jsx)("span",{className:"",children:(null==s?void 0:null===(b=s.spec)||void 0===b?void 0:b.exclusiveReservation)?(0,t.jsxs)("dd",{className:"inline-flex items-center rounded-md bg-black px-2 py-1 text-xs font-medium text-white ring-1 ring-inset ring-black/20",children:[(0,t.jsx)(v.pn,{children:(0,t.jsxs)(v.u,{children:[(0,t.jsx)(v.aJ,{children:"EXCLUSIVE"}),(0,t.jsx)(v._v,{children:(0,t.jsx)("p",{children:"The whole node is dedicated to a single computeclass."})})]})}),(0,t.jsx)("div",{className:"offline flex-none rounded-full p-1",children:(0,t.jsx)("div",{role:"status",children:(0,t.jsx)("svg",{className:"w-4 h-4 me-0 text-white dark:text-white flex-shrink-0","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M12 1.5a5.25 5.25 0 0 0-5.25 5.25v3a3 3 0 0 0-3 3v6.75a3 3 0 0 0 3 3h10.5a3 3 0 0 0 3-3v-6.75a3 3 0 0 0-3-3v-3c0-2.9-2.35-5.25-5.25-5.25Zm3.75 8.25v-3a3.75 3.75 0 1 0-7.5 0v3h7.5Z",clipRule:"evenodd"})})})})]}):(null==s?void 0:null===(C=s.spec)||void 0===C?void 0:null===(N=C.extraComputeClass)||void 0===N?void 0:N.length)?(0,t.jsxs)("dd",{className:"inline-flex items-center rounded-md bg-yellow-50 px-2 py-1 text-xs font-medium text-yellow-700 ring-1 ring-inset ring-yellow-600/20",children:[(0,t.jsx)(v.pn,{children:(0,t.jsxs)(v.u,{children:[(0,t.jsx)(v.aJ,{children:"SHARED"}),(0,t.jsx)(v._v,{children:(0,t.jsx)("p",{children:"The node has been allocated to one or more computeclasses."})})]})}),(0,t.jsx)("div",{className:"offline flex-none rounded-full p-1",children:(0,t.jsx)("div",{role:"status",children:(0,t.jsx)("svg",{className:"w-4 h-4 me-0 text-yellow-500 dark:text-yellow-400 flex-shrink-0","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z"})})})})]}):(0,t.jsxs)("dd",{className:"inline-flex items-center rounded-md bg-green-50 px-2 py-1 text-xs font-medium text-green-700 ring-1 ring-inset ring-green-600/20",children:[(0,t.jsx)(v.pn,{children:(0,t.jsxs)(v.u,{children:[(0,t.jsx)(v.aJ,{children:"IDLE"}),(0,t.jsx)(v._v,{children:(0,t.jsx)("p",{children:"The node is not allocated to any jobs and is available for use."})})]})}),(0,t.jsx)("div",{className:"offline flex-none rounded-full p-1",children:(0,t.jsxs)("div",{role:"status",children:[(0,t.jsx)("svg",{className:"w-4 h-4 me-0 text-green-500 dark:text-green-400 flex-shrink-0","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z"})}),(0,t.jsx)("span",{className:"sr-only",children:"..."})]})})]})})})})]},a)})})]})})})},e))]})})}):(0,t.jsx)("div",{className:"mt-2 ml-4",children:(0,t.jsx)(i.Z,{})})})})}function E(e){return(0,t.jsxs)("svg",{...e,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",children:[(0,t.jsx)("path",{d:"M5 12h14"}),(0,t.jsx)("path",{d:"M12 5v14"})]})}var _=a(87420),A=a(34611),S=a(75355),Z=a.n(S),L=a(80923),U=a(34209),k=a(23611),T=a(2187),R=e=>{let{workerdata:s}=e,a=(0,m.I0)(),n=(0,m.v9)(e=>e.chartsgroups.chartsLoadedValues),[l,i]=(0,r.useState)(!0),[d,c]=(0,r.useState)({groupName:s.groupName||"",computeClass:s.computeClass||"",replicaCount:s.replicaCount||0}),u=(0,r.useRef)(d);(0,r.useEffect)(()=>{Z()(d,u.current)||(h(),u.current=d)},[d,l,s]);let p=n.items.find(e=>"ray"===e.name),x=(0,m.v9)(e=>e.nodegroups.nodeUniqueLabels),h=()=>{console.log("submittedData RAY:",d);try{if(""===d.groupName&&""===d.computeClass&&0===d.replicaCount){o.ZP.error("Please update the Ray Worker parameters to save changes!");return}if(""!==d.groupName){let e={...p,spec:{...p.spec,rayParams:{...p.spec.rayParams,workers:p.spec.rayParams.workers.map(e=>e.groupName===s.groupName||""===e.groupName?{groupName:d.groupName,computeClass:d.computeClass,replicaCount:d.replicaCount}:e)}}},t=n.items.map(s=>"ray"===s.name?e:s);console.log("Updated data:",t),a((0,A.Gi)({items:[...t]}))}o.ZP.success("Ray Worker Params Updated!",{id:"unique-toast-id"})}catch(e){o.ZP.error("Something is wrong! Please try again.",{id:"rayWorkerParams"})}},v=e=>{let{name:s,value:a}=e.target;c(e=>({...e,[s]:a}))},g=e=>{let s=parseInt(d.replicaCount,10)||0;c(a=>({...a,[e]:Math.max(s-1,1)}))},f=e=>{let s=parseInt(d.replicaCount,10)||0;c(a=>({...a,[e]:s+1}))};return(0,t.jsx)(t.Fragment,{children:l&&(0,t.jsxs)("div",{className:"mt-4 pt-4 rounded-2xl border-4 border-dashed border-gray-900/25 px-6 py-10",children:[(0,t.jsx)("div",{className:"space-y-12",children:(0,t.jsx)("div",{className:"pb-2",children:(0,t.jsxs)("div",{className:"flex items-start justify-between",children:[(0,t.jsx)("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:"Worker Group"}),(0,t.jsx)("div",{className:"ml-3 flex h-7 items-center",children:(0,t.jsxs)("button",{type:"button",className:"rounded-md bg-white text-gray-400 hover:text-gray-500 outline ring-2 ring-indigo-500",onClick:()=>{try{if(""===s.groupName&&""===s.computeClass&&0===s.replicaCount){let e={...p,spec:{...p.spec,rayParams:{...p.spec.rayParams,workers:p.spec.rayParams.workers.slice(0,-1)}}},s=n.items.map(s=>"ray"===s.name?e:s);a((0,A.Gi)({items:s})),i(!1),o.ZP.success("Removed the worker!",{id:"rayWorkerParams"})}else if(1===p.spec.rayParams.workers.length)o.ZP.error("You cannot delete the last worker!",{id:"rayWorkerParams"});else if(""!==s.groupName){let e=p.spec.rayParams.workers.filter(e=>e.groupName!==s.groupName),t={...p,spec:{...p.spec,rayParams:{...p.spec.rayParams,workers:[...e]}}},r=n.items.map(e=>"ray"===e.name?t:e);a((0,A.Gi)({items:r})),i(!1),o.ZP.success("".concat(s.groupName," removed!"),{id:"rayWorkerParams"})}}catch(e){o.ZP.error("Something is wrong! Please reload and try again.",{id:"rayWorkerParams"})}},children:[(0,t.jsx)("span",{className:"sr-only",children:"Close"}),(0,t.jsx)(U.Z,{className:"h-6 w-6","aria-hidden":"true"})]})})]})})}),(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,t.jsxs)("div",{className:"sm:col-span-5",children:[(0,t.jsx)(L.Z,{label:"Group Name",popoverheader:"Name of the Group",popovercontent:(0,t.jsx)("p",{children:"Please provide the name of your Ray worker group. It is the specific group name you want to add."})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("input",{name:"groupName",value:d.groupName,onChange:v,type:"text",placeholder:"Type your group name",autoComplete:"groupName",className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"})})]})}),(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,t.jsxs)("div",{className:"sm:col-span-5",children:[(0,t.jsx)(L.Z,{label:"Select ComputeClass",popoverheader:"Select ComputeClass",popovercontent:(0,t.jsx)("p",{children:"Please select the labels for this service. This means the service will run in a particular node! If you want a custom label first add labels in a node!"})}),(0,t.jsx)("div",{className:"mt-2",children:x&&(0,t.jsx)("select",{name:"computeClass",value:d.computeClass,onChange:v,className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[...x].reverse().map(e=>(0,t.jsx)("option",{value:e,children:e},e))})})]})}),(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,t.jsxs)("div",{className:"sm:col-span-5",children:[(0,t.jsx)(L.Z,{label:"Number of workers",popoverheader:"Number of workers",popovercontent:(0,t.jsx)("p",{children:"Please provide the number of workers. It represents the number of replicas for your database."})}),(0,t.jsxs)("div",{className:"flex items-center justify-left mt-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>g("replicaCount"),className:"rounded-full bg-indigo-600 p-1 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 mr-4",children:(0,t.jsx)(k.Z,{className:"h-5 w-5","aria-hidden":"true"})}),(0,t.jsx)("input",{disabled:!0,name:"replicaCount",value:d.replicaCount,onChange:v,className:"w-16 text-center block rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"}),(0,t.jsx)("button",{type:"button",onClick:()=>f("replicaCount"),className:"rounded-full bg-indigo-600 p-1 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 ml-4",children:(0,t.jsx)(T.Z,{className:"h-5 w-5","aria-hidden":"true"})})]})]})})]})})},D=e=>{var s,a,n,l,i,d,c,u,p,x,h,v,g;let{data:f}=e,y=(0,m.I0)(),j=(0,m.v9)(e=>e.chartsgroups.chartsLoadedValues),b=(0,m.v9)(e=>e.nodegroups.nodeUniqueLabels),[N,C]=(0,r.useState)({computeClass:(null==f?void 0:null===(n=f.spec)||void 0===n?void 0:null===(a=n.rayParams)||void 0===a?void 0:null===(s=a.head)||void 0===s?void 0:s.computeClass)||"",name:(null==f?void 0:null===(d=f.spec)||void 0===d?void 0:null===(i=d.rayParams)||void 0===i?void 0:null===(l=i.image)||void 0===l?void 0:l.name)||"",tag:(null==f?void 0:null===(p=f.spec)||void 0===p?void 0:null===(u=p.rayParams)||void 0===u?void 0:null===(c=u.image)||void 0===c?void 0:c.tag)||""}),w=(0,r.useRef)(N);(0,r.useEffect)(()=>{Z()(N,w.current)||(P(),w.current=N)},[N]);let P=()=>{let{name:e,tag:s,computeClass:a}=N;f.spec||(f.spec={}),f.spec.rayParams||(f.spec.rayParams={}),f.spec.rayParams.head||(f.spec.rayParams.head={}),f.spec.rayParams.image.name=e,f.spec.rayParams.image.tag=s,f.spec.rayParams.head.computeClass=a;let t=j.items.map(e=>e.name===f.name?f:e);y((0,A.Gi)({items:t})),o.ZP.success("Ray Parameters Updated!",{id:"rayParams"})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mt-4 pt-4 rounded-2xl border-4 border-dashed border-gray-900/25 px-6 py-10",children:[(0,t.jsx)("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:"Ray Head"}),b&&(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,t.jsxs)("div",{className:"sm:col-span-5",children:[(0,t.jsx)(L.Z,{label:"Select ComputeClass",popoverheader:"Select ComputeClass",popovercontent:(0,t.jsx)("p",{children:"Please select the labels for this service. This means the service will run in a specific node! For custom labels, add them to a node first."})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("select",{name:"computeClass",value:N.computeClass,onChange:e=>{let{name:s,value:a}=e.target;C(e=>({...e,[s]:a}))},className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[...b].reverse().map(e=>(0,t.jsx)("option",{value:e,children:e},e))})})]})})]}),(null==f?void 0:null===(h=f.spec)||void 0===h?void 0:null===(x=h.rayParams)||void 0===x?void 0:x.workers)&&(null==f?void 0:null===(g=f.spec)||void 0===g?void 0:null===(v=g.rayParams)||void 0===v?void 0:v.workers.map((e,s)=>(0,t.jsx)(R,{workerdata:e},s))),(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:"mt-6 flex items-center justify-center gap-x-6",children:(0,t.jsx)("div",{className:"mt-6",children:(0,t.jsx)("button",{type:"button",onClick:()=>{f.spec||(f.spec={}),f.spec.rayParams||(f.spec.rayParams={}),f.spec.rayParams.workers||(f.spec.rayParams.workers=[]),f.spec.rayParams.workers.push({groupName:"workergroup_".concat(f.spec.rayParams.workers.length+1),computeClass:b.length>0?b[b.length-1]:"",replicaCount:1});let e=j.items.map(e=>e.name===f.name?f:e);y((0,A.Gi)({items:e}))},className:"rounded-full bg-indigo-600 p-2 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:(0,t.jsx)(T.Z,{className:"h-5 w-5","aria-hidden":"true"})})})})}),(0,t.jsx)("div",{className:"flex justify-center items-center h-full",children:(0,t.jsx)("div",{className:"mt-0 ml-8 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,t.jsx)("div",{className:"sm:col-span-5",children:(0,t.jsx)(L.Z,{label:"Add Ray Workers",popoverheader:"Add Ray Workers",popovercontent:(0,t.jsx)("p",{children:"Please click on the plus button to add ray workers. You can add multiple ray workers."})})})})})]})},B=e=>{var s,a;let{data:n,paramsName:l}=e;if(n.name.includes("ray"))return(0,t.jsx)(D,{data:n});let i=(0,m.I0)(),d=(0,m.v9)(e=>e.nodegroups.nodeUniqueLabels),c=(0,m.v9)(e=>e.chartsgroups.chartsLoadedValues),[u,p]=(0,r.useState)({computeClass:(null==n?void 0:null===(a=n.spec)||void 0===a?void 0:null===(s=a[l])||void 0===s?void 0:s.computeClass)||""}),x=(0,r.useRef)(u);(0,r.useEffect)(()=>{Z()(u,x.current)||(h(),x.current=u)},[u]);let h=()=>{try{let{computeClass:e}=u;n.spec||(n.spec={}),n.spec[l]||(n.spec[l]={}),n.spec[l].computeClass=e;let s=c.items.map(e=>e.name===n.name?n:e);i((0,A.Gi)({items:s})),o.ZP.success("Parameters Updated!",{id:"paramsName"})}catch(e){o.ZP.error("Something went wrong! Please try again.",{id:"paramsName"})}};return d?(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,t.jsxs)("div",{className:"sm:col-span-5",children:[(0,t.jsx)(L.Z,{label:"Select ComputeClass",popoverheader:"Select ComputeClass",popovercontent:(0,t.jsx)("p",{children:"Please select the labels for this service. This means the service will run on a specific node! For custom labels, add them to a node first."})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("select",{name:"computeClass",value:u.computeClass,onChange:e=>{let{name:s,value:a}=e.target;p(e=>({...e,[s]:a}))},className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[...d].reverse().map(e=>(0,t.jsx)("option",{value:e,children:e},e))})})]})})}):null},X=e=>{let{deployment:s,icon:a,description:r,children:n}=e;return(0,t.jsxs)("li",{className:"relative flex items-center space-x-4 py-4",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-auto",children:[(0,t.jsxs)("div",{className:"flex items-center gap-x-3",children:[(0,t.jsx)(a,{className:"h-5 w-5 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600","aria-hidden":"true"}),(0,t.jsx)("h2",{className:"min-w-0 text-sm font-semibold leading-6 text-gray-900",children:(0,t.jsx)("a",{href:"#",className:"flex gap-x-2",children:(0,t.jsxs)("span",{className:"whitespace-nowrap text-gray-900",children:[s.name,(0,t.jsx)("span",{className:"text-base text-rose-500",children:"*️"})]})})})]}),(0,t.jsxs)("div",{className:"mt-3 flex items-center gap-x-2.5 text-xs leading-5 text-gray-400",children:[(0,t.jsx)("p",{className:"whitespace-nowrap truncate",children:r}),(0,t.jsx)("br",{})]})]}),n]},s.name)},F=a(70694),V=a(96764),z=e=>{let{deployment:s,children:a}=e;return(0,t.jsxs)(F.yo,{children:[(0,t.jsx)(F.aM,{asChild:!0,children:(0,t.jsxs)(u.z,{variant:"outline",children:["Edit Params"," ",(0,t.jsx)(V.Z,{className:"ml-2 -mr-0.5 h-5 w-5 flex-none text-gray-400","aria-hidden":"true"})]})}),(0,t.jsxs)(F.ue,{className:"overflow-auto",children:[(0,t.jsxs)(F.Tu,{children:[(0,t.jsxs)(F.bC,{children:["Edit ",s.name," values"]}),(0,t.jsx)(F.Ei,{children:"You can update these values and click update. These are current default values. If there is no value to update then it will be empty."})]}),(0,t.jsx)("div",{className:"grid gap-4 py-4 overflow-visible",children:a})]})]})},O=a(74859);let W=e=>e.items.filter(e=>{if("true"===O.env.NEXT_PUBLIC_SNOWFLAKE){var s,a;return(null==e?void 0:null===(s=e.spec)||void 0===s?void 0:s.category)!=="databases"&&(null==e?void 0:null===(a=e.spec)||void 0===a?void 0:a.category)!=="mongodb"&&(null==e?void 0:e.name)!=="monitoring"}return!0}).sort((e,s)=>e.names.name?1:0).map(e=>(0,t.jsx)(X,{deployment:e,icon:(null==e?void 0:e.icon)||_.Z,description:(null==e?void 0:e.description)||"".concat(e.name," is a service of superduper required to run the application."),children:(0,t.jsx)(z,{deployment:e,children:(0,t.jsx)(B,{data:e,paramsName:"".concat(e.name,"Params")})})},e.id));var q=()=>{let e=(0,m.v9)(e=>e.environment.environmentLoadedValues),s=(0,m.v9)(e=>{var s;return null==e?void 0:null===(s=e.userInfo)||void 0===s?void 0:s.userInfoLoadedValues}),a=(0,m.I0)(),l=(0,m.v9)(e=>e.nodegroups.nodeUniqueLabels),o=(0,m.v9)(e=>e.chartsgroups.chartsLoadedValues),d=(0,m.v9)(e=>e.deploymentName.deploymentNameLoadedValues.name);return((0,r.useEffect)(()=>{let t=async()=>{try{let t=await n.Z.get("".concat("".concat(O.env.NEXT_PUBLIC_API,"/charts?deployment=").concat(d)),{headers:{Accept:"application/json",Authorization:(0,C.Z)(s),superduper_reverse_proxy:O.env.NEXT_PUBLIC_API||e.NEXT_PUBLIC_API}});console.log("Charts API data:",t.data),a((0,A.Gi)(t.data))}catch(e){console.error("Error fetching Services API data")}};o||t()},[o,a]),o||l)?(0,t.jsx)("div",{className:"mb-8",children:(0,t.jsx)("div",{className:"bg-white px-2 py-5 sm:px-2",children:(0,t.jsxs)("ul",{role:"list",className:"divide-y divide-red/5",children:[o&&W(o)," "]})})}):(0,t.jsxs)("div",{className:"mt-2 ml-4",children:[(0,t.jsx)(i.Z,{})," "]})},G=a(56511),M=a(28251),K=a(64520),Y=a(81695),$=a(72513),H=a(98348),J=e=>{var s,a;let{data:n}=e,l=(0,m.I0)(),i=(0,m.v9)(e=>e.chartsgroups.chartsLoadedValues),o=(0,m.v9)(e=>e.nodegroups.nodeUniqueLabels),[d,c]=(0,r.useState)({computeClass:(null==n?void 0:null===(a=n.spec)||void 0===a?void 0:null===(s=a.monitoringParams)||void 0===s?void 0:s.computeClass)||""}),u=(0,r.useRef)(d);(0,r.useEffect)(()=>{Z()(d,u.current)||(p(),u.current=d)},[d]),(0,m.v9)(e=>e.nodegroups.nodeLoadedValues);let p=()=>{if(i&&i.items){var e,s;let a=(e=i.items,s=d.computeClass,function e(a){if(Array.isArray(a))return a.map(s=>e(s));if("object"!=typeof a||null===a)return a;for(let t in a)a[t]=e(a[t]),"computeClass"===t&&(a[t]=s);return a}(e));l((0,A.Gi)({items:a}))}else console.error("chartsgroups or chartsgroups.items is undefined")};return(0,t.jsx)("div",{children:o&&(0,t.jsx)("div",{className:"mt-1 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,t.jsxs)("div",{className:"sm:col-span-3",children:[(0,t.jsx)(L.Z,{label:"Select Default ComputeClass for services",popoverheader:"Select Default ComputeClass",popovercontent:(0,t.jsx)("p",{children:"Please select the default compute class for all of the services and databases. If you have workloads that have unique hardware requirements, such as performing machine learning or AI tasks, needing specific CPU platforms and architecture, or needing performance isolation among users, Superduper offers compute classes. These compute classes are a curated subset of the infrastructure machine types. You can assign a compute class to a workload to ensure that it runs on the right type of machine."})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsxs)("select",{name:"computeClass",value:d.computeClass,onChange:e=>{let{name:s,value:a}=e.target;c(e=>({...e,[s]:a}))},className:"block w-2/3 rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[(0,t.jsx)("option",{value:"",children:"Select Default ComputeClass for services"},"defaults"),o&&o.length>0?[...o].map(e=>e&&(0,t.jsx)("option",{value:e,children:e},e)):[(0,t.jsx)("option",{value:"default",children:"default"},"default")]]})})]})})})},Q=a(73042),ee=a(35463),es=a(7682),ea=a(46346),et=a(58991),er=a(94432),en=a(74859);function el(){let e=(0,m.v9)(e=>e.environment.environmentLoadedValues),s=(0,m.v9)(e=>{var s;return null==e?void 0:null===(s=e.userInfo)||void 0===s?void 0:s.userInfoLoadedValues}),a=(0,m.v9)(e=>e.secrets),i=(0,Y.useRouter)(),d=(0,m.v9)(e=>e.deploymentName.deploymentNameLoadedValues.name),c=(0,m.v9)(e=>e.chartsgroups.chartsLoadedValues),u=(0,m.v9)(e=>e.nodegroups.nodeLoadedValues),p=(0,m.v9)(e=>e.deployment.deploymentLoadedValues),x=(0,m.v9)(e=>e.extraEnvVars),[v,g]=(0,r.useState)("Something went wrong while creating the deployment. Please try again later."),[f,y]=(0,r.useState)(!1),[j,b]=(0,r.useState)(!1),[N,w]=(0,r.useState)(!1),[P,E]=(0,r.useState)(!1),_=e=>{try{let{name:s,tag:a}=(0,er.Z)(e);if(!s||!a){console.error("Invalid image or tag:",s,a),o.ZP.error("Invalid image or tag. Please try again.");return}let t=c.items.map(e=>{for(let t of Object.keys(e.spec))t.endsWith("Params")&&e.spec[t].image&&(e.spec[t].image.name=s,e.spec[t].image.tag=a);return e});console.log("Updated items:",t),dispatch(chartsLoadedValues({items:t}))}catch(e){console.error("Update failed:",e)}},A=async()=>{var t,r,l;let i;try{if("true"==en.env.NEXT_PUBLIC_SNOWFLAKE&&(null==p?void 0:p.databaseURI)===""){o.ZP.error("Database URI is missing.",{duration:5e3});return}_(null===(t=userEnv)||void 0===t?void 0:t.image),window.scrollTo({top:0,behavior:"smooth"});let r={name:d,spec:{fake:!!d.startsWith("fake"),dataEndpoints:{artifactStore:{backendType:"",connectionURI:(null==p?void 0:p.artifactStoreURI)||""},dataStore:{backendType:"",connectionURI:(null==p?void 0:p.databaseURI)||""},metadataStore:{backendType:"",connectionURI:(null==p?void 0:p.metadataStoreURI)||""},extraEnvVars:"true"==en.env.NEXT_PUBLIC_SNOWFLAKE?[]:x||[]},nodeGroupList:u.items.map(e=>{let{status:s,...a}=e;return a}).filter(e=>{var s;return(null==e?void 0:null===(s=e.spec)||void 0===s?void 0:s.extraComputeClass)&&e.spec.extraComputeClass.length>0}),secrets:"true"==en.env.NEXT_PUBLIC_SNOWFLAKE&&a||[],serviceList:c.items.map(e=>{let{status:s,...a}=e;return a}).filter(e=>{if("true"===en.env.NEXT_PUBLIC_SNOWFLAKE){var s;return(null==e?void 0:null===(s=e.spec)||void 0===s?void 0:s.category)!=="databases"&&(null==e?void 0:e.name)!=="mongodb"&&(null==e?void 0:e.name)!=="monitoring"}return!0}).filter(e=>{let{name:s}=e;return!("mongodb"===s&&((null==p?void 0:p.artifactStoreURI)||(null==p?void 0:p.databaseURI)||(null==p?void 0:p.metadataStoreURI)))})}};E(!0),console.log("\uD83D\uDC49 REQUEST DATA",r);let l={headers:{Accept:"application/json","Content-Type":"application/json",Authorization:(0,C.Z)(s),superduper_reverse_proxy:en.env.NEXT_PUBLIC_API||e.NEXT_PUBLIC_API}};y(!0),i=o.ZP.loading("Deployment in progress...",{duration:1/0}),await new Promise(e=>setTimeout(e,3e3));let m=await n.Z.post("".concat("".concat(en.env.NEXT_PUBLIC_API,"/deployments")),r,l);console.log("RESULT:",m.data),await new Promise(e=>setTimeout(e,5e3)),o.ZP.dismiss(i),window.location.assign("/webui?deployment=done&query=1m"),o.ZP.success("Deployment successful!",{icon:"\uD83D\uDE80",duration:5e3})}catch(e){i&&o.ZP.dismiss(i),e.response&&"true"===en.env.NEXT_PUBLIC_SNOWFLAKE&&200!==e.response.status&&400!==e.response.status?(console.error("Deployment Form Submission Error:",e.response.data),g((null===(r=e.response)||void 0===r?void 0:r.data)||e.message)):(console.error("Deployment Form Submission Error:",e),g((null===(l=e.response)||void 0===l?void 0:l.data)||e.message)),w(!0),o.ZP.error("Deployment failed. Please try again.",{duration:5e3})}finally{E(!1),y(!1),b(!1)}},S=async()=>{var t,r;let l;try{if("true"==en.env.NEXT_PUBLIC_SNOWFLAKE&&(null==p?void 0:p.databaseURI)===""){o.ZP.error("Database URI is missing.",{duration:5e3});return}_(null===(t=userEnv)||void 0===t?void 0:t.image);let r={name:d,spec:{fake:!!d.startsWith("fake"),dataEndpoints:{artifactStore:{backendType:"",connectionURI:(null==p?void 0:p.artifactStoreURI)||""},dataStore:{backendType:"",connectionURI:(null==p?void 0:p.databaseURI)||""},metadataStore:{backendType:"",connectionURI:(null==p?void 0:p.metadataStoreURI)||""},extraEnvVars:"true"==en.env.NEXT_PUBLIC_SNOWFLAKE?[]:x||[]},nodeGroupList:u.items.map(e=>{let{status:s,...a}=e;return a}).filter(e=>{var s;return(null==e?void 0:null===(s=e.spec)||void 0===s?void 0:s.extraComputeClass)&&e.spec.extraComputeClass.length>0}),secrets:"true"==en.env.NEXT_PUBLIC_SNOWFLAKE&&a||[],serviceList:c.items.map(e=>{let{status:s,...a}=e;return a}).filter(e=>{if("true"===en.env.NEXT_PUBLIC_SNOWFLAKE){var s;return(null==e?void 0:null===(s=e.spec)||void 0===s?void 0:s.category)!=="databases"&&(null==e?void 0:e.name)!=="mongodb"&&(null==e?void 0:e.name)!=="monitoring"}return!0}).filter(e=>{let{name:s}=e;return!("mongodb"===s&&((null==p?void 0:p.artifactStoreURI)||(null==p?void 0:p.databaseURI)||(null==p?void 0:p.metadataStoreURI)))})}};console.log("\uD83D\uDC49 REQUEST DATA",r),y(!0),l=o.ZP.loading("Retrying deployment...",{duration:1/0}),await new Promise(e=>setTimeout(e,5e3));let m={headers:{Accept:"application/json","Content-Type":"application/json",Authorization:(0,C.Z)(s),superduper_reverse_proxy:en.env.NEXT_PUBLIC_API||e.NEXT_PUBLIC_API}},h=await n.Z.post("".concat("".concat(en.env.NEXT_PUBLIC_API,"/deployments")),r,m);console.log("RESULT:",h.data),await new Promise(e=>setTimeout(e,5e3)),o.ZP.dismiss(l),o.ZP.success("Deployment is successful.",{duration:5e3}),i.push("/webui?deployment=done&query=1m",void 0,{shallow:!1}),b(!1)}catch(e){l&&o.ZP.dismiss(l),e.response&&200!==e.response.status&&400!==e.response.status?(console.error("Deployment Form Submission Error:",e.response.data),i.push("/webui?deployment=done&query=1m",void 0,{shallow:!1}),o.ZP.success("Deployment successful!",{icon:"\uD83D\uDE80",duration:5e3})):(console.error("Deployment Form Submission Error:",e),g((null===(r=e.response)||void 0===r?void 0:r.data)||e.message),w(!0),o.ZP.error("Deployment retry failed. Please try again.",{duration:5e3}))}finally{y(!1),b(!1)}};return f?(0,t.jsx)(et.Z,{}):(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"pb-2",children:[(0,t.jsx)("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:"Step 1: Set Compute Classes"}),(0,t.jsx)("p",{className:"mt-1 text-sm leading-6 text-gray-600",children:"ComputeClass enables users to influence the scheduling of Services on nodes based on specific criteria such as hardware capabilities, geographic location, or other custom requirements."})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(I,{}),(0,t.jsx)(J,{}),(0,t.jsx)("br",{})]}),(0,t.jsxs)("div",{className:"border-b border-gray-900/10 pb-12",children:[(0,t.jsx)("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:"Step 2: Add Databackend"}),(0,t.jsx)("p",{className:"mt-1 text-sm leading-6 text-gray-600",children:"At first you have to add a database to your deployment. You can update the parameters below. We will deploy and handle the rest."}),(0,t.jsx)("br",{}),"true"!==en.env.NEXT_PUBLIC_SNOWFLAKE?(0,t.jsx)(G.Z,{}):(0,t.jsx)(M.Z,{})]}),(0,t.jsx)("br",{}),(0,t.jsxs)("div",{className:"pb-4",children:[(0,t.jsx)("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:"Step 3: Define Parameters"}),(0,t.jsx)("p",{className:"mt-1 text-sm leading-6 text-gray-600",children:"Update the services you want to install on your deployment. You can click on the service to edit the configuration."}),(0,t.jsxs)("div",{style:{marginLeft:"-1.5rem!important"},children:[(0,t.jsx)(Q.Z,{}),"true"==en.env.NEXT_PUBLIC_SNOWFLAKE?(0,t.jsx)(es.Z,{}):(0,t.jsx)(ee.Z,{}),(0,t.jsx)(q,{})]})]}),(0,t.jsxs)("div",{className:"mt-6 flex items-center justify-end gap-x-6",children:[(0,t.jsx)(l.default,{href:"/webui",children:(0,t.jsx)("button",{type:"button",className:"text-sm font-semibold leading-6 text-gray-900",children:"Cancel"})}),(0,t.jsxs)(K.aR,{children:[(0,t.jsx)(K.vW,{className:"rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Start Deployment"}),(0,t.jsxs)(K._T,{children:[(0,t.jsxs)(K.fY,{children:[(0,t.jsx)(K.f$,{children:"Start creating deployment now..."}),(0,t.jsx)(K.yT,{children:"This will create a deployment and it will take some time to finish. Please be patient. Do you want to continue?"})]}),(0,t.jsxs)(K.xo,{children:[(0,t.jsx)(K.le,{children:"Cancel"}),(0,t.jsx)(K.OL,{onClick:()=>{b(!0),A()},children:"Continue"})]})]})]})]}),(0,t.jsx)(K.aR,{open:j,children:(0,t.jsx)(K._T,{children:(0,t.jsxs)(K.fY,{children:[(0,t.jsx)(K.f$,{children:"Started deployment process..."}),(0,t.jsx)(K.yT,{children:"This initiates a deployment process that may take some time. Please wait patiently. You'll be redirected to the dashboard once it's complete."}),(0,t.jsx)("br",{}),(0,t.jsx)(H.O,{})]})})}),(0,t.jsx)(K.aR,{open:N,children:(0,t.jsxs)(K._T,{children:[(0,t.jsxs)(K.fY,{children:[(0,t.jsx)(K.f$,{children:"Deployment Failed"}),(0,t.jsx)(K.yT,{children:(0,t.jsxs)($.bZ,{variant:"destructive",children:[(0,t.jsx)(h.LPM,{className:"h-4 w-4"}),(0,t.jsx)($.Cd,{children:"Error"}),(0,t.jsx)(ea.x,{className:"scrollbar-visible h-[200px] w-full mt-2 pr-4",children:(0,t.jsx)($.X,{children:v})})]})})]}),(0,t.jsxs)(K.xo,{children:[(0,t.jsx)(K.le,{onClick:()=>{w(!1),b(!1)},children:"Cancel"}),(0,t.jsx)(K.OL,{onClick:()=>{b(!0),w(!1),S()},children:"Retry Now"})]})]})})]})]})}},72513:function(e,s,a){a.d(s,{Cd:function(){return d},X:function(){return c},bZ:function(){return o}});var t=a(27573),r=a(7653),n=a(85145),l=a(18580);let i=(0,n.j)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),o=r.forwardRef((e,s)=>{let{className:a,variant:r,...n}=e;return(0,t.jsx)("div",{ref:s,role:"alert",className:(0,l.cn)(i({variant:r}),a),...n})});o.displayName="Alert";let d=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("h5",{ref:s,className:(0,l.cn)("mb-1 font-medium leading-none tracking-tight",a),...r})});d.displayName="AlertTitle";let c=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,l.cn)("text-sm [&_p]:leading-relaxed",a),...r})});c.displayName="AlertDescription"},4216:function(e,s,a){a.d(s,{X:function(){return o}});var t=a(27573),r=a(7653),n=a(92999),l=a(85688),i=a(18580);let o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(n.fC,{ref:s,className:(0,i.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",a),...r,children:(0,t.jsx)(n.z$,{className:(0,i.cn)("flex items-center justify-center text-current"),children:(0,t.jsx)(l.nQG,{className:"h-4 w-4"})})})});o.displayName=n.fC.displayName},42502:function(e,s,a){a.d(s,{$F:function(){return d},AW:function(){return u},Xi:function(){return m},_x:function(){return c},h_:function(){return o},qB:function(){return p}});var t=a(27573),r=a(7653),n=a(49002),l=a(85688),i=a(18580);let o=n.fC,d=n.xz;n.ZA,n.Uv,n.Tr;let c=n.Ee;r.forwardRef((e,s)=>{let{className:a,inset:r,children:o,...d}=e;return(0,t.jsxs)(n.fF,{ref:s,className:(0,i.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",r&&"pl-8",a),...d,children:[o,(0,t.jsx)(l.XCv,{className:"ml-auto h-4 w-4"})]})}).displayName=n.fF.displayName,r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(n.tu,{ref:s,className:(0,i.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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",a),...r})}).displayName=n.tu.displayName;let u=r.forwardRef((e,s)=>{let{className:a,sideOffset:r=4,...l}=e;return(0,t.jsx)(n.Uv,{children:(0,t.jsx)(n.VY,{ref:s,sideOffset:r,className:(0,i.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","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",a),...l})})});u.displayName=n.VY.displayName;let m=r.forwardRef((e,s)=>{let{className:a,inset:r,...l}=e;return(0,t.jsx)(n.ck,{ref:s,className:(0,i.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r&&"pl-8",a),...l})});m.displayName=n.ck.displayName,r.forwardRef((e,s)=>{let{className:a,children:r,checked:o,...d}=e;return(0,t.jsxs)(n.oC,{ref:s,className:(0,i.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:o,...d,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(n.wU,{children:(0,t.jsx)(l.nQG,{className:"h-4 w-4"})})}),r]})}).displayName=n.oC.displayName;let p=r.forwardRef((e,s)=>{let{className:a,children:r,...o}=e;return(0,t.jsxs)(n.Rk,{ref:s,className:(0,i.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...o,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(n.wU,{children:(0,t.jsx)(l.jXb,{className:"h-4 w-4 fill-current"})})}),r]})});p.displayName=n.Rk.displayName,r.forwardRef((e,s)=>{let{className:a,inset:r,...l}=e;return(0,t.jsx)(n.__,{ref:s,className:(0,i.cn)("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",a),...l})}).displayName=n.__.displayName,r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(n.Z0,{ref:s,className:(0,i.cn)("-mx-1 my-1 h-px bg-muted",a),...r})}).displayName=n.Z0.displayName},80500:function(e,s,a){a.d(s,{RM:function(){return o},SC:function(){return d},iA:function(){return l},pj:function(){return u},ss:function(){return c},xD:function(){return i}});var t=a(27573),r=a(7653),n=a(18580);let l=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{className:"relative w-full overflow-auto",children:(0,t.jsx)("table",{ref:s,className:(0,n.cn)("w-full caption-bottom text-sm",a),...r})})});l.displayName="Table";let i=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("thead",{ref:s,className:(0,n.cn)("[&_tr]:border-b",a),...r})});i.displayName="TableHeader";let o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("tbody",{ref:s,className:(0,n.cn)("[&_tr:last-child]:border-0",a),...r})});o.displayName="TableBody",r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("tfoot",{ref:s,className:(0,n.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...r})}).displayName="TableFooter";let d=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("tr",{ref:s,className:(0,n.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...r})});d.displayName="TableRow";let c=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("th",{ref:s,className:(0,n.cn)("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...r})});c.displayName="TableHead";let u=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("td",{ref:s,className:(0,n.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...r})});u.displayName="TableCell",r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("caption",{ref:s,className:(0,n.cn)("mt-4 text-sm text-muted-foreground",a),...r})}).displayName="TableCaption"},4482:function(e,s,a){a.d(s,{_v:function(){return c},aJ:function(){return d},pn:function(){return i},u:function(){return o}});var t=a(27573),r=a(7653),n=a(23098),l=a(18580);let i=n.zt,o=n.fC,d=n.xz,c=r.forwardRef((e,s)=>{let{className:a,sideOffset:r=4,...i}=e;return(0,t.jsx)(n.VY,{ref:s,sideOffset:r,className:(0,l.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",a),...i})});c.displayName=n.VY.displayName},58991:function(e,s,a){a.d(s,{Z:function(){return f}});var t=a(27573),r=a(7653),n=a(12198),l=a(34527),i=a(82440),o=a(66465),d=a(53896),c=a(86288),u=a(13908),m=a(81695),p=a(7109),x=a(412),h=a(70790),v=a(74859);let g=[{key:"initializing",icon:n.Z,label:"Initializing",duration:3e3},{key:"building",icon:l.Z,label:"Building",duration:3e3},{key:"deploying",icon:i.Z,label:"Deploying",duration:3e3},{key:"success",icon:o.Z,label:"Success",duration:3e3}];function f(){let[e,s]=(0,r.useState)("initializing"),[a,n]=(0,r.useState)(0),l=(0,x.v9)(e=>e.environment.environmentLoadedValues),i=(0,x.v9)(e=>{var s;return null==e?void 0:null===(s=e.userInfo)||void 0===s?void 0:s.userInfoLoadedValues}),o=(0,m.useRouter)(),f=(0,x.v9)(e=>e.deploymentName.deploymentNameLoadedValues.name),y=async e=>(await u.Z.get(e,{headers:{Accept:"application/json",Authorization:(0,p.Z)(i),superduper_reverse_proxy:v.env.NEXT_PUBLIC_API||l.NEXT_PUBLIC_API}})).data,{data:j,error:b}=(0,h.ZP)("".concat("".concat(v.env.NEXT_PUBLIC_API,"/deployments/").concat(f)),"".concat("".concat(v.env.NEXT_PUBLIC_API,"/deployments/").concat(f,"/")),y,{refreshInterval:0,revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});(0,r.useEffect)(()=>{j&&o.push("/webui?deployment=done&query=1m",void 0,{shallow:!0})},[j]),(0,r.useEffect)(()=>{N()},[]);let N=()=>{s("initializing"),n(0)};return(0,r.useEffect)(()=>{if("success"===e)return;let a=g.find(s=>s.key===e),t=g.findIndex(s=>s.key===e);n(0);let r=setInterval(()=>{n(e=>{let s=e+100/(a.duration/100);return s>=100?100:s})},100),l=setTimeout(()=>{t{clearInterval(r),clearTimeout(l)}},[e]),(0,t.jsxs)("div",{className:"flex items-center justify-center min-h-screen w-full bg-background",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-primary/10 to-transparent h-96 pointer-events-none"}),(0,t.jsxs)(c.Zb,{className:"w-full max-w-6xl shadow-lg relative -mt-20",children:[(0,t.jsxs)(c.Ol,{className:"text-center space-y-2",children:[(0,t.jsx)(c.ll,{className:"text-4xl font-extrabold tracking-tight",children:"Deployment Status"}),(0,t.jsx)("p",{className:"text-xl text-muted-foreground",children:"Tracking progress of your deployment"})]}),(0,t.jsx)(c.aY,{children:(0,t.jsxs)("div",{className:"flex flex-col md:flex-row gap-8",children:[(0,t.jsxs)("div",{className:"w-full md:w-1/3 md:border-r md:pr-8",children:[(0,t.jsx)("h2",{className:"text-xl font-semibold mb-6",children:"Deployment Stages"}),(0,t.jsx)("ul",{className:"space-y-6",children:g.map(s=>{let a=s.icon,r=s.key===e,n=g.findIndex(s=>s.key===e)>g.findIndex(e=>e.key===s.key);return(0,t.jsxs)("li",{className:"flex items-center space-x-3 ".concat(r?"text-primary font-medium":n?"text-green-600":"text-muted-foreground"),children:[(0,t.jsx)(a,{className:"w-5 h-5"}),(0,t.jsx)("span",{children:s.label}),n&&(0,t.jsx)(d.Z,{className:"w-4 h-4 text-green-600"})]},s.key)})})]}),(0,t.jsxs)("div",{className:"w-full md:w-2/3 md:pl-8 flex flex-col items-center",children:[(0,t.jsx)("h2",{className:"text-xl font-semibold mb-6",children:"Progress"}),(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center mb-8",children:["success"===e?(0,t.jsx)(d.Z,{className:"text-green-500 w-24 h-24 mb-4"}):(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("svg",{className:"w-24 h-24",viewBox:"0 0 100 100",children:[(0,t.jsx)("circle",{className:"text-gray-200",strokeWidth:"8",stroke:"currentColor",fill:"transparent",r:"42",cx:"50",cy:"50"}),(0,t.jsx)("circle",{className:"text-primary",strokeWidth:"8",strokeDasharray:264,strokeDashoffset:264-a/100*264,strokeLinecap:"round",stroke:"url(#gradient)",fill:"transparent",r:"42",cx:"50",cy:"50"}),(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"gradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"hsl(var(--primary))"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"hsl(var(--primary))"})]})})]}),(0,t.jsxs)("span",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-xl font-semibold",children:[Math.round(a),"%"]})]}),(0,t.jsx)("p",{className:"text-center text-lg font-medium mt-4",children:(()=>{switch(e){case"initializing":return"Deployment ongoing, initializing...";case"building":return"Deployment ongoing, building files...";case"deploying":return"Deployment ongoing, finalizing production setup...";case"success":return"Deployment ongoing, almost live!";default:return"Deployment ongoing, wrapping up..."}})()})]})]})]})})]})]})}},7682:function(e,s,a){a.d(s,{Z:function(){return Z}});var t=a(27573),r=a(7653),n=a(412),l=a(36531),i=a(80500),o=a(86288),d=a(3172),c=a(47686),u=a(6315),m=a(10997),p=a(19434),x=a(11952);let h=e=>s=>s({type:x.e,payload:e});var v=a(45696),g=a.n(v),f=a(93296),y=a(13908),j=a(7109),b=a(24776),N=a(1930),C=a(18580);let w=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("textarea",{className:(0,C.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",a),ref:s,...r})});w.displayName="Textarea";var P=a(97747);function I(e){let{open:s,onOpenChange:a,onSubmit:n,initialData:i,mode:o}=e,[d,c]=(0,r.useState)((null==i?void 0:i.name)||""),[u,m]=(0,r.useState)((null==i?void 0:i.value)||"");return(0,r.useEffect)(()=>{i?(c(i.name),m(i.value)):(c(""),m(""))},[i]),(0,t.jsx)(b.Vq,{open:s,onOpenChange:a,children:(0,t.jsx)(b.cZ,{className:"sm:max-w-[600px]",children:(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),n(d,u),c(""),m(""),a(!1)},children:[(0,t.jsxs)(b.fK,{children:[(0,t.jsx)(b.$N,{children:"add"===o?"Add secret":"Edit secret"}),(0,t.jsx)(b.Be,{children:"add"===o?"Add a new secret to your environment.":"Edit secret on your existing environment"})]}),(0,t.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)(P._,{htmlFor:"name",children:"Name"}),(0,t.jsx)(N.I,{id:"name",placeholder:"YOUR_SECRET_NAME",value:d,onChange:e=>c(e.target.value),disabled:"edit"===o})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)(P._,{htmlFor:"value",children:"Value"}),(0,t.jsx)(w,{id:"value",placeholder:"Secret value",value:u,required:!0,onChange:e=>m(e.target.value),className:"min-h-[100px]"})]})]}),(0,t.jsxs)(b.cN,{children:[(0,t.jsx)(l.z,{type:"button",variant:"secondary",onClick:()=>a(!1),children:"Cancel"}),(0,t.jsx)(l.z,{type:"submit",children:"add"===o?"Add secret":"Save changes"})]})]})})})}var E=a(5772),_=a(12900),A=a(67412),S=a(74859);function Z(e){let{data:s}=e,a=(0,n.I0)(),[x,v]=(0,r.useState)([]),[b,N]=(0,r.useState)(!1),[C,w]=(0,r.useState)(null),[P,Z]=(0,r.useState)([]),[U,k]=(0,r.useState)(["AWS_ACCESS_KEY_ID","AWS_SECRET_ACCESS_KEY","OPENAI_API_KEY","SUPERDUPER_STREAMLIT_PASSWORD"]),T=(0,r.useRef)(null),R=(0,n.v9)(e=>e.deploymentName.deploymentNameLoadedValues.name),D=(0,n.v9)(e=>{var s;return null==e?void 0:null===(s=e.userInfo)||void 0===s?void 0:s.userInfoLoadedValues}),[B,X]=(0,r.useState)([]),[F,V]=(0,r.useState)(!1),z=(0,n.v9)(e=>e.environment.environmentLoadedValues),O=(0,n.v9)(e=>e.extraEnvVars),W=(0,n.v9)(e=>e.secrets),q=async(e,s)=>{try{let t={headers:{Accept:"application/json",Authorization:(0,j.Z)(D),superduper_reverse_proxy:S.env.NEXT_PUBLIC_API||z.NEXT_PUBLIC_API}},r="".concat(S.env.NEXT_PUBLIC_API,"/secrets?deployment=").concat(R),n=await y.Z.post(r,{name:e,spec:{stringData:{[e]:s},type:"Opaque"}},t),l=L(n.data);a(h([...W[0],...l])),a((0,p.I)(g()([...O,{name:e,value:s}]))),X([...B,e]),f.ZP.success("Secret added successfully!")}catch(e){console.error("Error adding secret:",e),f.ZP.error("Failed to add secret")}},G=async(e,s)=>{try{let t={headers:{Accept:"application/json",Authorization:(0,j.Z)(D),superduper_reverse_proxy:S.env.NEXT_PUBLIC_API||z.NEXT_PUBLIC_API}},r="".concat(S.env.NEXT_PUBLIC_API,"/secrets/").concat(e,"?deployment=").concat(R),n=await y.Z.put(r,{name:e,spec:{stringData:{[e]:s},type:"Opaque"}},t),l=L(n.data);a(h([...W[0],...l]));let i=O.map(a=>a.name===e?{...a,value:s}:a);a((0,p.I)(g()(i))),Z((0,A.Z)(P.splice(P.indexOf(e),1))),f.ZP.success("Secret updated successfully!")}catch(e){console.error("Error updating secret:",e),f.ZP.error("Failed to update secret")}},M=async e=>{try{let s={headers:{Accept:"application/json",Authorization:(0,j.Z)(D),superduper_reverse_proxy:S.env.NEXT_PUBLIC_API||z.NEXT_PUBLIC_API}},t=O[e];if(t){let e="".concat(S.env.NEXT_PUBLIC_API,"/secrets/").concat(t.name,"?deployment=").concat(R);try{await y.Z.delete(e,s),f.ZP.success("Secret ".concat(t.name," removed successfully"))}catch(e){console.error("Failed to delete secret ".concat(t.name,":"),e),f.ZP.error("Error removing secret: ".concat(t.name));return}}let r=O.filter((s,a)=>a!==e);a((0,p.I)(g()(r))),v(x.filter((s,a)=>a!==e))}catch(e){console.error("Unexpected error in removing secrets:",e),f.ZP.error("An unexpected error occurred. Please try again.")}};return((0,r.useEffect)(()=>{let e=e=>(console.error("Error occurred:",e),console.log("Using fallback logic. Returning an empty array."),[]),s=async()=>{try{V(!0);let e="".concat(S.env.NEXT_PUBLIC_API,"/secrets?deployment=").concat(R),s=await y.Z.get(e,{headers:{Accept:"application/json",Authorization:(0,j.Z)(D),superduper_reverse_proxy:S.env.NEXT_PUBLIC_API||z.NEXT_PUBLIC_API}});console.log("Secrets retrieved successfully:",s.data);let t=function(e){try{if(e&&Array.isArray(e.items))return e.items.map(e=>e.name)}catch(e){console.error("Error processing payload:",e)}return[]}(s.data),r=L(s.data);return Z((0,A.Z)(s.data)),console.log("Empty Secrets",(0,A.Z)(s.data)),a(h([r])),X(t),function(e){let s=[...O],t=e.filter(e=>!s.some(s=>s.name===e));t.length>0&&(t.forEach(e=>{s.push({name:e,value:""})}),a((0,p.I)(g()(s))))}(t),t}catch(s){return console.log("Error Propagation",s),e(s)}finally{V(!1)}};(async()=>{console.log("Final secrets array:",await s())})()},[]),F)?(0,t.jsx)(E.Z,{}):O&&Array.isArray(O)?(0,t.jsxs)(o.Zb,{className:"w-full",children:[(0,t.jsxs)(o.Ol,{children:[(0,t.jsx)(o.ll,{className:"text-xl font-semibold",children:"Environment secrets"}),(0,t.jsx)(o.SZ,{children:"Secrets are encrypted environment variables. They are accessible only by deployment actions in the context of this environment."})]}),(0,t.jsx)(o.aY,{children:(0,t.jsxs)("div",{className:"space-y-4",children:[0===O.length?(0,t.jsxs)("div",{className:"rounded-lg border border-dashed p-12 text-center",children:[(0,t.jsx)("div",{className:"text-muted-foreground mb-4",children:"This environment has no secrets."}),(0,t.jsxs)(l.z,{onClick:()=>N(!0),variant:"default",children:[(0,t.jsx)(d.Z,{className:"w-4 h-4 mr-2"}),"Add environment secret"]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"flex justify-between items-center",children:(0,t.jsx)("div",{className:"space-x-2",children:(0,t.jsxs)(l.z,{onClick:()=>N(!0),variant:"default",children:[(0,t.jsx)(d.Z,{className:"w-4 h-4 mr-2"}),"Add secret"]})})}),(0,t.jsxs)(i.iA,{children:[(0,t.jsx)(i.xD,{children:(0,t.jsxs)(i.SC,{children:[(0,t.jsx)(i.ss,{className:"w-[90%]",children:"Name"}),(0,t.jsx)(i.ss,{className:"w-[10%]"})]})}),(0,t.jsx)(i.RM,{children:O.map((e,s)=>(0,t.jsxs)(i.SC,{children:[(0,t.jsx)(i.pj,{children:(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(c.Z,{className:"w-4 h-4 text-muted-foreground"}),(0,t.jsx)("span",{children:e.name}),Array.isArray(P)&&P.includes(e.name)&&(0,t.jsx)(_.C,{children:"empty"})]})}),(0,t.jsx)(i.pj,{children:(0,t.jsxs)("div",{className:"flex space-x-2",children:[(0,t.jsx)(l.z,{variant:"ghost",size:"icon",onClick:()=>{w(e),N(!0)},children:(0,t.jsx)(u.Z,{className:"h-4 w-4"})}),(0,t.jsx)(l.z,{variant:"ghost",size:"icon",onClick:()=>M(s),className:"hover:text-red-500",children:(0,t.jsx)(m.Z,{className:"h-4 w-4"})})]})})]},s))})]})]}),(0,t.jsx)("input",{ref:T,type:"file",onChange:e=>{let s=e.target.files[0];try{if(s){let e=new FileReader;e.onload=e=>{let s=e.target.result.split("\n").map(e=>{let[s,a]=e.split("=").map(e=>e.trim());return{name:s,value:a}}).filter(e=>e.name&&e.value);a((0,p.I)(g()([...O,...s]))),v(e=>[...e,...Array(s.length).fill(!1)])},e.readAsText(s)}}catch(e){console.error(e),f.ZP.error("Failed to parse the file. Please try again with .env or .txt format.")}},className:"hidden",accept:".env,.txt"})]})}),(0,t.jsx)(I,{open:b,onOpenChange:e=>{N(e),e||w(null)},onSubmit:C?G:q,initialData:C,mode:C?"edit":"add"})]}):null}function L(e){try{if(e&&Array.isArray(e.items))return e.items.map(e=>e.status.uid);if(e&&(null==e?void 0:e.status)&&(null==e?void 0:e.status.uid))return[e.status.uid]}catch(e){console.error("Error processing payload:",e)}return[]}},35463:function(e,s,a){var t=a(27573),r=a(7653),n=a(412),l=a(36531),i=a(9551),o=a(72940),d=a(13333),c=a(95417),u=a(37727),m=a(80923),p=a(19434),x=a(45696),h=a.n(x),v=a(93296),g=a(74859);s.Z=e=>{let{data:s}=e,a=(0,n.I0)(),[x,f]=(0,r.useState)([]),y=(0,r.useRef)(null),j=(0,n.v9)(e=>e.extraEnvVars),b=(e,s,t)=>{let r=[...j];r[e][s]=t.target.value,a((0,p.I)(h()(r)))};(0,r.useEffect)(()=>{var e;let s=[...j],t=((e=g.env.NEXT_PUBLIC_API_DEFAULT_ENV)?e.split(",").map(e=>e.trim()):(console.error("NEXT_PUBLIC_API_DEFAULT_ENV is not defined or empty."),[])).filter(e=>!s.some(s=>s.name===e));t.length>0&&(t.forEach(e=>{s.push({name:e,value:""})}),a((0,p.I)(h()(s))))},[a,j]);let N=e=>{let s=j.filter((s,a)=>a!==e),t=h()(s);a((0,p.I)(t)),f(x.filter((s,a)=>a!==e))},C=e=>{f(s=>{let a=[...s];return a[e]=!a[e],a})};return j&&Array.isArray(j)?(0,t.jsxs)("div",{children:[j.map((e,s)=>(0,t.jsx)("div",{className:"relative mt-5 grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-8",children:(0,t.jsxs)("div",{className:"sm:col-span-1 grid grid-cols-2 gap-x-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(m.Z,{label:"Key",popoverheader:"Key",popovercontent:(0,t.jsx)("p",{children:"Enter the key for the environment variable."})}),(0,t.jsx)("input",{name:"name-".concat(s),value:e.name,onChange:e=>b(s,"name",e),className:"mt-2 block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",placeholder:"Enter key"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(m.Z,{label:"Value",popoverheader:"Value",popovercontent:(0,t.jsx)("p",{children:"Enter the value for the environment variable."})}),(0,t.jsxs)("div",{className:"mt-2 flex items-center space-x-4 w-3xl max-w-md",children:[(0,t.jsxs)("div",{className:"relative flex-1",children:[(0,t.jsx)("input",{name:"value-".concat(s),value:e.value,type:x[s]?"text":"password",onChange:e=>b(s,"value",e),placeholder:"Enter value",className:"block w-3xl rounded-md border-0 py-1.5 pr-10 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"}),(0,t.jsx)("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3 cursor-pointer",onClick:()=>C(s),children:x[s]?(0,t.jsx)(i.Z,{className:"h-5 w-5 text-gray-400 hover:text-gray-600"}):(0,t.jsx)(o.Z,{className:"h-5 w-5 text-gray-400 hover:text-gray-600"})})]}),(0,t.jsx)(l.z,{variant:"ghost",onClick:()=>N(s),className:"bg-black text-white hover:bg-red-500 hover:text-white dark:hover:bg-red-900 px-2",children:(0,t.jsx)(d.Z,{className:"h-4 w-4"})})]})]})]})},s)),(0,t.jsxs)("div",{className:"flex space-x-4 mt-4",children:[(0,t.jsxs)(l.z,{onClick:()=>{a((0,p.I)(h()([...j,{name:"",value:""}]))),f([...x,!1])},children:[(0,t.jsx)(c.Z,{className:"mr-2 h-4 w-4"}),"Add Secret"]}),(0,t.jsxs)(l.z,{onClick:()=>y.current.click(),children:[(0,t.jsx)(u.Z,{className:"mr-2 h-4 w-4"}),"Upload Secret File"]}),(0,t.jsx)("input",{ref:y,type:"file",onChange:e=>{let s=e.target.files[0];try{if(s){let e=new FileReader;e.onload=e=>{let s=e.target.result.split("\n").map(e=>{let[s,a]=e.split("=").map(e=>e.trim());return{name:s,value:a}}).filter(e=>e.name&&e.value);a((0,p.I)(h()([...j,...s]))),f(e=>[...e,...Array(s.length).fill(!1)])},e.readAsText(s)}}catch(e){console.error(e),v.ZP.error("Failed to parse the file. Please try again with .env or .txt format.")}},style:{display:"none"}})]})]}):null}},94432:function(e,s,a){a.d(s,{Z:function(){return t}});function t(e){let s=e.indexOf(":");return -1===s?{name:e,tag:"latest"}:{name:e.substring(0,s),tag:e.substring(s+1)}}},67412:function(e,s,a){a.d(s,{Z:function(){return t}});function t(e){try{if(console.log("Processing payload:",e),!e||!Array.isArray(e.items))return[];return e.items.filter(e=>e.status&&!0===e.status.isEmpty).map(e=>e.name)}catch(e){return console.error("Error processing payload:",e),[]}}},34611:function(e,s,a){a.d(s,{Gi:function(){return r}});var t=a(58108);let r=e=>s=>s({type:t.a6,payload:e})},4429:function(e,s,a){a.d(s,{a:function(){return r}});var t=a(49904);let r=e=>s=>s({type:t.s,payload:e})},19434:function(e,s,a){a.d(s,{I:function(){return r}});var t=a(82869);let r=e=>s=>s({type:t.I,payload:e})},60855:function(e,s,a){a.d(s,{Bw:function(){return n},Lj:function(){return l},NB:function(){return r}});var t=a(59625);let r=e=>s=>s({type:t.qJ,payload:e}),n=e=>s=>{let a=new Set;(null==e?void 0:e.items)&&Array.isArray(e.items)&&e.items.forEach(e=>{var s,t,r;(null==e?void 0:null===(t=e.status)||void 0===t?void 0:null===(s=t.reservation)||void 0===s?void 0:s.computeClassList)&&Array.isArray(e.status.reservation.computeClassList)&&e.status.reservation.computeClassList.forEach(e=>{a.add(e)});let n=(null==e?void 0:null===(r=e.spec)||void 0===r?void 0:r.extraComputeClass)||[];Array.isArray(n)&&n.forEach(e=>{a.add(e)})});let r=Array.from(a);return r.includes("base")&&(r=["base",...Array.from(a).filter(e=>"base"!==e)]),s({type:t.Ou,payload:r})},l=e=>s=>{let a=e;return e.includes("base")&&(a=["base",...e.filter(e=>"base"!==e)]),s({type:t.Ou,payload:a})}}}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/6280-8d193144ed9c18e0.js b/superduper/rest/out/_next/static/chunks/6280-8d193144ed9c18e0.js deleted file mode 100644 index e0b77631b..000000000 --- a/superduper/rest/out/_next/static/chunks/6280-8d193144ed9c18e0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6280],{61259:function(e,s,l){l.d(s,{Z:function(){return eG}});var t=l(27573),n=l(7653),a=l(70790),i=l(13908),r=l(412),o=l(34611),d=l(60855),c=l(44195);let u=e=>s=>s({type:c.m,payload:e});var x=l(64544),m=l(45034),h=l(97370),v=l(903),p=l(12900),g=l(93296),j=l(81695),f=l(98348),w=l(85688),N=l(88623),y=l(38983),b=l(87354),C=l(18580),L=l(36531),S=l(42502);let k=[{label:"Off",value:0},{label:"30s",value:3e4},{label:"1m",value:6e4},{label:"2m",value:12e4},{label:"5m",value:3e5},{label:"10m",value:6e5}];function E(){let e=(0,j.useRouter)(),s=(0,j.useSearchParams)(),[l,a]=(0,n.useState)(k[0]),[i,r]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=s.get("query");if(e){let s=k.find(s=>s.label.toLowerCase()===e.toLowerCase());s&&a(s)}},[s]),(0,n.useEffect)(()=>{if(l.value>0){let e=setInterval(()=>{let e=new URL(window.location.href);e.searchParams.set("query",l.label),window.history.replaceState(null,"",e.toString()),window.location.reload()},l.value);return()=>clearInterval(e)}},[l,e]);let o=e=>{a(e),r(!1);let s=new URL(window.location.href);s.searchParams.set("query",e.label),window.history.replaceState(null,"",s.toString())};return(0,t.jsxs)(S.h_,{open:i,onOpenChange:r,children:[(0,t.jsx)(S.$F,{asChild:!0,children:(0,t.jsxs)(L.z,{variant:"outline",role:"combobox","aria-expanded":i,className:"w-[150px] justify-between bg-background text-sm font-normal",children:[(0,t.jsx)(N.Z,{className:"mr-2 h-4 w-4"}),l.label,(0,t.jsx)(y.Z,{className:"ml-auto h-4 w-4 shrink-0 opacity-50"})]})}),(0,t.jsx)(S.AW,{className:"w-[150px]",children:k.map(e=>(0,t.jsxs)(S.Xi,{onSelect:()=>o(e),children:[(0,t.jsx)(b.Z,{className:(0,C.cn)("mr-2 h-4 w-4",l.value===e.value?"opacity-100":"opacity-0")}),e.label]},e.value))})]})}var P=l(64520),A=l(72513),I=l(1930),_=l(97747),B=l(87191),T=l(24776),Z=l(7109),U=l(13333),R=l(74859);function D(){for(var e=arguments.length,s=Array(e),l=0;le.environment.environmentLoadedValues),[a,o]=(0,n.useState)("Something went wrong while creating the deployment. Please try again later."),d=(0,r.v9)(e=>{var s;return null==e?void 0:null===(s=e.userInfo)||void 0===s?void 0:s.userInfoLoadedValues}),[c,u]=(0,n.useState)(!1),[N,y]=(0,n.useState)(!1),[b,C]=(0,n.useState)(!1),[L,S]=(0,n.useState)(!1),k=(0,r.v9)(e=>e.deploymentName.deploymentNameLoadedValues.name),M=(0,r.v9)(e=>e.deploymentAPI.deploymentAPILoadedValues),O=(null==M?void 0:null===(e=M.status)||void 0===e?void 0:e.phase)||"Unknown",F=(null==M?void 0:null===(s=M.status)||void 0===s?void 0:s.message)||"",V=(null==M?void 0:M.name)||k,z=(0,j.useRouter)(),[X,W]=(0,n.useState)(""),[G,Y]=(0,n.useState)(!1),J=async()=>{try{if(V!==X){console.error("No deployment name found"),g.ZP.error("Your typed name is not matched with the deployment name. Type it carefully.",{id:"delete-deployment"});return}y(!0),u(!1);let e=await i.Z.delete("".concat("".concat(R.env.NEXT_PUBLIC_API,"/deployments/").concat(k)),{headers:{Accept:"application/json",Authorization:(0,Z.Z)(d),superduper_reverse_proxy:R.env.NEXT_PUBLIC_API||l.NEXT_PUBLIC_API}});(console.log("Deployments API data:",e.data),200===e.status)?(console.log("Deployment deleted successfully"),z.push("/webui/deployment?deleted=true"),g.ZP.success("Deployment deleted process is running..."),window.location.assign("/webui/deployment?deleted=true")):(console.error("Error deleting deployment:",e.data),g.ZP.error("Error deleting deployment",{id:"delete-deployment"}),y(!1),C(!0),o(null==e?void 0:e.data))}catch(s){var e;console.error("Error deleting deployment:",s),y(!1),o((null===(e=s.response)||void 0===e?void 0:e.data)||s.message),C(!0)}};return(0,t.jsxs)(t.Fragment,{children:[V&&(0,t.jsxs)("div",{className:"pb-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h1",{id:"message-heading",className:"text-2xl mb-2 font-semibold text-gray-900",children:"Deployment"}),(0,t.jsx)("div",{className:"mb-2 mr-4",children:(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsx)("div",{children:(0,t.jsxs)("span",{onClick:()=>{window.location.reload()},className:"flex items-center rounded-full bg-white p-2 text-gray-400 hover:text-gray-600 focus:outline-none focus:ring-2 focus:ring-indigo-500",children:[(0,t.jsx)("span",{className:"sr-only",children:"Reload"}),(0,t.jsx)(h.Z,{className:"h-5 w-5","aria-hidden":"true"})]})}),(0,t.jsx)(E,{})]})})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("div",{className:"flex items-center sm:w-0 sm:flex-1",children:(0,t.jsx)("div",{className:"flex items-center gap-x-6",children:(0,t.jsx)("div",{children:(0,t.jsxs)("p",{className:"mt-1 truncate text-base text-gray-500",children:[(0,t.jsx)(p.C,{className:"text-base truncate",children:V}),F&&(0,t.jsxs)(P.aR,{children:[(0,t.jsx)(P.vW,{asChild:!0,children:(0,t.jsx)(p.C,{variant:"outline",className:"ml-2 text-base truncate",children:F.length>24?F.slice(0,24)+"... [Show More]":F})}),(0,t.jsxs)(P._T,{children:[(0,t.jsxs)(P.fY,{children:[(0,t.jsxs)(P.f$,{children:["Status of ",(0,t.jsx)("strong",{children:V})]}),(0,t.jsx)(P.yT,{children:(0,t.jsxs)(A.bZ,{children:[(0,t.jsx)(w.WCv,{className:"h-4 w-4"}),(0,t.jsx)(A.Cd,{children:"Status"}),(0,t.jsx)(A.X,{children:F})]})})]}),(0,t.jsxs)(P.xo,{children:[(0,t.jsx)(P.le,{children:"Cancel"}),(0,t.jsx)(P.OL,{children:"Continue"})]})]})]})]})})})}),(0,t.jsxs)("div",{className:"mt--6 flex items-center justify-between sm:ml-6 sm:mt-0 sm:flex-shrink-0 sm:justify-start gap-x-2",children:[!O&&(0,t.jsxs)("dd",{className:"inline-flex items-center rounded-md bg-green-50 px-2 py-1 text-xs font-medium text-green-700 ring-1 ring-inset ring-green-600/20",children:["Running",(0,t.jsx)("div",{className:"offline flex-none rounded-full p-1",children:(0,t.jsxs)("div",{role:"status",children:[(0,t.jsx)("svg",{className:"w-4 h-4 me-0 text-green-500 dark:text-green-400 flex-shrink-0","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z"})}),(0,t.jsx)("span",{className:"sr-only",children:"..."})]})})]}),O&&(null==O?void 0:O.toLowerCase())==="running"&&(0,t.jsxs)("dd",{className:"inline-flex items-center rounded-md bg-green-50 px-2 py-1 text-xs font-medium text-green-700 ring-1 ring-inset ring-green-600/20",children:["Running",(0,t.jsx)("div",{className:"offline flex-none rounded-full p-1",children:(0,t.jsxs)("div",{role:"status",children:[(0,t.jsx)("svg",{className:"w-4 h-4 me-0 text-green-500 dark:text-green-400 flex-shrink-0","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z"})}),(0,t.jsx)("span",{className:"sr-only",children:"..."})]})})]}),O&&(null==O?void 0:O.toLowerCase())==="pending"&&(0,t.jsxs)("dd",{className:"inline-flex items-center rounded-md bg-yellow-50 px-2 py-1 text-xs font-medium text-yellow-700 ring-1 ring-inset ring-yellow-600/20",children:["Pending",(0,t.jsx)("div",{className:"offline flex-none rounded-full p-1",children:(0,t.jsx)("div",{role:"status",children:(0,t.jsxs)("svg",{"aria-hidden":"true",className:"w-4 h-4 me-0 text-gray-200 animate-spin dark:text-white-600 fill-yellow-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})})})]}),O&&(null==O?void 0:O.toLowerCase())==="deploying"&&(0,t.jsxs)("dd",{className:"inline-flex items-center rounded-md bg-yellow-50 px-2 py-1 text-xs font-medium text-yellow-700 ring-1 ring-inset ring-yellow-600/20",children:["Deploying",(0,t.jsx)("div",{className:"offline flex-none rounded-full p-1",children:(0,t.jsx)("div",{role:"status",children:(0,t.jsxs)("svg",{"aria-hidden":"true",className:"w-4 h-4 me-0 text-gray-200 animate-spin dark:text-white-600 fill-yellow-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})})})]}),O&&(null==O?void 0:O.toLowerCase())==="failed"&&(0,t.jsxs)("dd",{className:"inline-flex items-center rounded-md bg-red-50 px-2 py-1 text-xs font-medium text-red-700 ring-1 ring-inset ring-red-600/20",children:["Failed",(0,t.jsx)("div",{className:"offline flex-none rounded-full p-1",children:(0,t.jsx)("div",{role:"status",children:(0,t.jsx)("svg",{className:"w-4 h-4 me-0 text-red-500 dark:text-red-400 flex-shrink-0","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M2 12a10 10 0 1 1 20 0 10 10 0 0 1-20 0Zm7.7-3.7a1 1 0 0 0-1.4 1.4l2.3 2.3-2.3 2.3a1 1 0 1 0 1.4 1.4l2.3-2.3 2.3 2.3a1 1 0 0 0 1.4-1.4L13.4 12l2.3-2.3a1 1 0 0 0-1.4-1.4L12 10.6 9.7 8.3Z"})})})})]}),(0,t.jsxs)(x.v,{as:"div",className:"relative ml-3 inline-block text-left",children:[(0,t.jsx)("div",{children:(0,t.jsxs)(x.v.Button,{className:"-my-2 flex items-center rounded-full bg-white p-2 text-gray-400 hover:text-gray-600 focus:outline-none focus:ring-2 focus:ring-indigo-500",children:[(0,t.jsx)("span",{className:"sr-only",children:"Open options"}),(0,t.jsx)(v.Z,{className:"h-5 w-5","aria-hidden":"true"})]})}),(0,t.jsx)(m.u,{as:n.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,t.jsx)(x.v.Items,{className:"absolute right-0 z-10 mt-2 w-56 origin-top-right rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",children:(0,t.jsxs)("div",{className:"py-1",children:[!0!==R.env.NEXT_PUBLIC_SNOWFLAKE&&(0,t.jsx)(x.v.Item,{children:e=>{let{active:s}=e;return(0,t.jsx)("a",{href:"#",onClick:()=>u(!0),className:D(s?"bg-gray-100 text-gray-900":"text-gray-700","flex justify-between px-4 py-2 text-sm"),children:(0,t.jsx)("span",{children:"Delete Deployment"})})}}),(0,t.jsx)(x.v.Item,{children:e=>{let{active:s}=e;return(0,t.jsx)("div",{className:D(s?"bg-gray-100 text-gray-900":"text-gray-700","flex justify-between px-4 py-2 text-sm"),onClick:()=>Y(!0),children:(0,t.jsx)("span",{children:"View Deployment in JSON"})})}}),(0,t.jsx)(x.v.Item,{children:e=>{let{active:s}=e;return(0,t.jsx)("a",{href:"mailto:support@superduper.io",className:D(s?"bg-gray-100 text-gray-900":"text-gray-700","flex justify-between px-4 py-2 text-sm"),children:(0,t.jsx)("span",{children:"Contact Support"})})}})]})})})]})]})]})]}),(0,t.jsxs)(P.aR,{open:c,children:[(0,t.jsx)(P.vW,{}),(0,t.jsxs)(P._T,{children:[(0,t.jsxs)(P.fY,{children:[(0,t.jsx)(P.f$,{children:"Are you absolutely sure?"}),(0,t.jsx)(P.yT,{children:"This action cannot be undone. This will permanently delete your deployment and remove your data. Be aware!"}),(0,t.jsx)("br",{}),(0,t.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-1.5",children:[(0,t.jsxs)(_._,{htmlFor:"deployment-name",children:["Type the deployment name: ",(0,t.jsx)("strong",{children:V})]}),(0,t.jsx)(I.I,{type:"text",id:"deployment-name",placeholder:"Type the deployment name",value:X,onChange:e=>{W(e.target.value)},className:"border border-gray-300 rounded-md p-2"})]})]}),(0,t.jsxs)(P.xo,{children:[(0,t.jsx)(P.le,{onClick:()=>u(!1),children:"Cancel"}),(0,t.jsxs)(P.OL,{onClick:()=>{J()},variant:"destructive",className:"gap-2 bg-destructive text-destructive-foreground hover:bg-destructive/90",children:[(0,t.jsx)(U.Z,{className:"w-5 h-5"}),"Delete Deployment"]})]})]})]}),(0,t.jsx)(P.aR,{open:N,children:(0,t.jsx)(P._T,{children:(0,t.jsxs)(P.fY,{children:[(0,t.jsx)(P.f$,{children:"Delete Deployment..."}),(0,t.jsx)(P.yT,{children:"This initiates a delete deployment process that may take some time. Please wait patiently. You'll be redirected to the dashboard once it's complete."}),(0,t.jsx)("br",{}),(0,t.jsx)(f.O,{})]})})}),(0,t.jsx)(P.aR,{open:b,children:(0,t.jsxs)(P._T,{children:[(0,t.jsxs)(P.fY,{children:[(0,t.jsx)(P.f$,{children:"Delete Deployment Failed"}),(0,t.jsx)(P.yT,{children:(0,t.jsxs)(A.bZ,{variant:"destructive",children:[(0,t.jsx)(w.LPM,{className:"h-4 w-4"}),(0,t.jsx)(A.Cd,{children:"Error"}),(0,t.jsx)(A.X,{children:a})]})})]}),(0,t.jsxs)(P.xo,{children:[(0,t.jsx)(P.le,{onClick:()=>{C(!1),y(!1)},children:"Cancel"}),(0,t.jsx)(P.OL,{onClick:()=>{y(!0),C(!1),J()},children:"Retry Now"})]})]})}),(0,t.jsx)(T.Vq,{open:G,onOpenChange:()=>Y(!1),children:(0,t.jsxs)(T.cZ,{className:"sm:max-w-[768px]",children:[(0,t.jsxs)(T.fK,{children:[(0,t.jsx)(T.$N,{children:"View the Deployment"}),(0,t.jsx)(T.Be,{children:"This is the deployment data in JSON format."})]}),(0,t.jsx)(B.Z,{data:M}),(0,t.jsx)(T.cN,{})]})})]})}var O=l(87285),F=l(26716),V=l(57293),z=()=>{let[e,s]=(0,n.useState)(!1);return e?null:(0,t.jsxs)(A.bZ,{variant:"destructive",children:[(0,t.jsx)(w.LPM,{className:"h-4 w-4"}),(0,t.jsx)(A.Cd,{children:"Deleted Deployment"}),(0,t.jsx)(A.X,{children:"Your deployment is deleted and no longer available. You can create a new deployment."}),(0,t.jsx)("button",{onClick:()=>{s(!0)},className:"absolute top-0 right-0 p-2",children:(0,t.jsx)(V.Z,{className:"h-4 w-4 text-gray-400","aria-hidden":"true"})})]})};l(74859);var X=l(5772),W=l(53146),G=l.n(W);function Y(e){let{text:s="superduper",color:l="currentColor",typingSpeed:a=150,fontSize:i=24,iconSize:r=24}=e,[o,d]=(0,n.useState)(""),[c,u]=(0,n.useState)(0),x=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e=x.current;return e&&(e.style.animation="spin 1s linear infinite"),()=>{e&&(e.style.animation="")}},[]),(0,n.useEffect)(()=>{if(c{d(e=>e+s[c]),u(e=>e+1)},a);return()=>clearTimeout(e)}{let e=setTimeout(()=>{d(""),u(0)},3*a);return()=>clearTimeout(e)}},[c,s,a]),(0,t.jsxs)("div",{className:"jsx-aca48a445eb89caf flex items-center gap-3",children:[(0,t.jsxs)("svg",{ref:x,width:r,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"jsx-aca48a445eb89caf",children:[(0,t.jsx)("style",{children:"\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n "}),(0,t.jsx)("path",{d:"M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4Z",fill:l,fillOpacity:"0.3",className:"jsx-aca48a445eb89caf"}),(0,t.jsx)("path",{d:"M12 2C6.47715 2 2 6.47715 2 12H4C4 7.58172 7.58172 4 12 4V2Z",fill:l,className:"jsx-aca48a445eb89caf"})]}),(0,t.jsxs)("div",{style:{color:l,fontSize:"".concat(i,"px"),minWidth:"".concat(s.length,"ch")},"aria-live":"polite","aria-label":"Loading: typing ".concat(s),className:"jsx-aca48a445eb89caf inline-block",children:[o,(0,t.jsx)("span",{style:{borderRight:"2px solid ".concat(l)},className:"jsx-aca48a445eb89caf animate-blink",children:"\xa0"})]}),(0,t.jsx)(G(),{id:"aca48a445eb89caf",children:"@-webkit-keyframes blink{0%,100%{opacity:0}50%{opacity:1}}@-moz-keyframes blink{0%,100%{opacity:0}50%{opacity:1}}@-o-keyframes blink{0%,100%{opacity:0}50%{opacity:1}}@keyframes blink{0%,100%{opacity:0}50%{opacity:1}}.animate-blink.jsx-aca48a445eb89caf{-webkit-animation:blink.7s step-end infinite;-moz-animation:blink.7s step-end infinite;-o-animation:blink.7s step-end infinite;animation:blink.7s step-end infinite}"})]})}var J=l(45246),H=l(61284),K=l(96764),q=l(63130),Q=l(95042),$=l(70694),ee=l(80923);function es(e){let{header:s,message:l}=e;return(0,t.jsx)("div",{className:"flex min-h-[40vh] flex-col items-center justify-center bg-background px-4 py-12 sm:px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"mx-auto max-w-md text-center",children:[(0,t.jsx)(el,{className:"mx-auto h-12 w-12 text-primary"}),(0,t.jsx)("h2",{className:"mt-4 text-xl font-bold tracking-tight text-foreground sm:text-xl",children:s||"UNKNOWN"}),(0,t.jsx)("p",{className:"mt-4 text-muted-foreground",children:l||"Status: UNKNOWN"})]})})}function el(e){return(0,t.jsxs)("svg",{...e,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",children:[(0,t.jsx)("path",{d:"M12 20h.01"}),(0,t.jsx)("path",{d:"M8.5 16.429a5 5 0 0 1 7 0"}),(0,t.jsx)("path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69"}),(0,t.jsx)("path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523"}),(0,t.jsx)("path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643"}),(0,t.jsx)("path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764"}),(0,t.jsx)("path",{d:"m2 2 20 20"})]})}var et=l(22392);l(40020),l(19234),l(83346);var en=l(16800),ea=l(64303),ei=e=>{var s,l;let{data:a}=e,i=(0,r.v9)(e=>e.deploymentAPI.deploymentAPILoadedValues),[o,d]=(0,n.useState)("".concat(JSON.stringify(a,null," "))),c=e=>{d(e)},u=(0,n.useRef)(null),x=async()=>{try{u.current.editor.selectAll();let e=u.current.editor.getSelectedText();await navigator.clipboard.writeText(e),console.log("Text copied to clipboard:",e)}catch(e){console.error("Unable to copy text to clipboard:",e)}};return i?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(ea.mQ,{defaultValue:"log",className:"w-full",children:[(0,t.jsxs)(ea.dr,{className:"grid w-full grid-cols-2",children:[(0,t.jsx)(ea.SP,{value:"status",children:"Status"}),(0,t.jsx)(ea.SP,{value:"specs",children:"Specs"})]}),(0,t.jsxs)(ea.nU,{value:"status",children:[(0,t.jsxs)("div",{className:"relative mt-4",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center","aria-hidden":"true",children:(0,t.jsx)("div",{className:"w-full border-t border-gray-300"})}),(0,t.jsx)("div",{className:"relative flex justify-start",children:(0,t.jsx)("span",{className:"bg-white pr-3 text-base font-semibold leading-6 text-gray-900",children:"Status"})})]}),(0,t.jsxs)("div",{className:"relative overflow-visible mt-4",children:[(0,t.jsx)("div",{className:"absolute bottom-8 right-5 z-50",children:(0,t.jsx)("span",{onClick:x,children:(0,t.jsx)(en.Z,{popoverheader:"Click to copy"})})}),(0,t.jsx)(et.default,{ref:u,className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Placeholder Text",mode:"json",theme:"github",name:"blah2",onChange:c,fontSize:14,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:"".concat(JSON.stringify(a,null," ")),setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,useWorker:!1,wrap:!0},height:"400px",width:"100%"})]})]}),(0,t.jsxs)(ea.nU,{value:"specs",children:[(0,t.jsxs)("div",{className:"relative mt-4",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center","aria-hidden":"true",children:(0,t.jsx)("div",{className:"w-full border-t border-gray-300"})}),(0,t.jsx)("div",{className:"relative flex justify-start",children:(0,t.jsx)("span",{className:"bg-white pr-3 text-base font-semibold leading-6 text-gray-900",children:"Specs"})})]}),(0,t.jsxs)("div",{className:"relative overflow-visible mt-4",children:[(0,t.jsx)("div",{className:"absolute bottom-8 right-5 z-50",children:(0,t.jsx)("span",{onClick:x,children:(0,t.jsx)(en.Z,{popoverheader:"Click to copy"})})}),(0,t.jsx)(et.default,{ref:u,className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Placeholder Text",mode:"json",theme:"github",name:"blah2",onChange:c,fontSize:14,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:"".concat(JSON.stringify((null==i?void 0:null===(s=i.spec)||void 0===s?void 0:s.nodeGroupList)&&(null==i?void 0:null===(l=i.spec)||void 0===l?void 0:l.nodeGroupList.filter(e=>e.name===(null==a?void 0:a.name))),null," ")),setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,useWorker:!1,wrap:!0},height:"400px",width:"100%"})]})]})]})}):null},er=l(46346);let eo=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"";function ed(){var e;let s=(0,r.v9)(e=>e.nodegroups.nodeLoadedValues);(0,r.v9)(e=>e.deploymentAPI.deploymentAPILoadedValues);let[l,a]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let e=setTimeout(()=>{a(!1)},5e3);return()=>clearTimeout(e)},[]),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"mx-auto max-w-7xl pr-4 pt-8 pb-0 sm:pr-6 lg:pr-8",children:(0,t.jsx)("div",{className:"mx-auto flex max-w-2xl items-center justify-between gap-x-8 lg:mx-0 lg:max-w-none",children:(0,t.jsxs)("div",{className:"flex items-center gap-x-4",children:[(0,t.jsx)("div",{className:"bg-black rounded-lg p-2",children:(0,t.jsx)(ec,{className:"w-6 h-6 text-gray-300"})}),(0,t.jsx)("h1",{children:(0,t.jsxs)("div",{className:"text-base font-semibold leading-6 text-gray-900",children:["Node Groups"," ",(0,t.jsx)(ee.Z,{label:"",popoverheader:"Node Groups",popovercontent:(0,t.jsx)("p",{children:"Node Groups are a collection of nodes that are managed together."})})]})})]})})}),(0,t.jsxs)(er.x,{className:"max-w-7xl whitespace-nowrap",children:[s?(0,t.jsxs)("div",{className:" bg-white px-4 py-5 sm:px-6",children:[(0,t.jsx)("div",{className:"-ml-4 -mt-4 flex flex-wrap items-center justify-between sm:flex-nowrap border-b border-gray-200",children:(0,t.jsx)("div",{className:"ml-4 mt-4 flex-shrink-0"})}),(0,t.jsx)("ul",{role:"list",className:"divide-y divide-red/5",children:null==s?void 0:null===(e=s.items)||void 0===e?void 0:e.map((e,s)=>{var l,n,a,i,r,o,d,c,u,x,m,h,v,p,g,j,f,w,N,y,b,C,S,k,E,P,A,B,T,Z;return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("li",{className:"relative flex items-center space-x-4 py-4",children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"min-w-0 flex-auto",children:[(0,t.jsxs)("div",{className:"flex items-center gap-x-3",children:[(0,t.jsx)("div",{className:function(){for(var e=arguments.length,s=Array(e),l=0;l0?null==e?void 0:null===(S=e.status)||void 0===S?void 0:null===(C=S.reservation)||void 0===C?void 0:null===(b=C.computeClassList)||void 0===b?void 0:b.map((e,s)=>(0,t.jsx)("button",{type:"button",className:"inline-flex items-center rounded-full bg-white px-2.5 py-1 text-xs font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:e},s)):(0,t.jsx)("button",{type:"button",className:"inline-flex items-center rounded-full bg-white px-2.5 py-1 text-xs font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:"No ComputeClass"})]})]}),e&&(null==e?void 0:null===(k=e.status)||void 0===k?void 0:k.ready)&&(0,t.jsxs)("dd",{className:"inline-flex items-center rounded-md bg-green-50 px-2 py-1 text-xs font-medium text-green-700 ring-1 ring-inset ring-green-600/20",children:[eo(null==e?void 0:null===(E=e.status)||void 0===E?void 0:E.phase)||"Healthy",(0,t.jsx)("div",{className:"offline flex-none rounded-full p-1",children:(0,t.jsxs)("div",{role:"status",children:[(0,t.jsx)("svg",{className:"w-4 h-4 me-0 text-green-500 dark:text-green-400 flex-shrink-0","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z"})}),(0,t.jsx)("span",{className:"sr-only",children:"..."})]})})]}),e&&!(null==e?void 0:null===(P=e.status)||void 0===P?void 0:P.ready)&&(0,t.jsxs)("dd",{className:"inline-flex items-center rounded-md px-2 py-1 text-xs font-medium ring-1 ring-inset ".concat("Pending"===eo(null==e?void 0:null===(A=e.status)||void 0===A?void 0:A.phase)?"bg-yellow-50 text-yellow-700 ring-yellow-600/20":"bg-red-50 text-red-700 ring-red-600/20"),children:["Pending"===eo(null==e?void 0:null===(B=e.status)||void 0===B?void 0:B.phase)?"Pending":eo(null==e?void 0:null===(T=e.status)||void 0===T?void 0:T.phase)||"Unhealthy",(0,t.jsx)("div",{className:"offline flex-none rounded-full p-1",children:(0,t.jsx)("div",{role:"status",children:(0,t.jsx)("svg",{className:"w-4 h-4 me-0 flex-shrink-0 ".concat("Pending"===eo(null==e?void 0:null===(Z=e.status)||void 0===Z?void 0:Z.phase)?"text-yellow-500 dark:text-yellow-400":"text-red-500 dark:text-red-400"),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M2 12a10 10 0 1 1 20 0 10 10 0 0 1-20 0Zm7.7-3.7a1 1 0 0 0-1.4 1.4l2.3 2.3-2.3 2.3a1 1 0 1 0 1.4 1.4l2.3-2.3 2.3 2.3a1 1 0 0 0 1.4-1.4L13.4 12l2.3-2.3a1 1 0 0 0-1.4-1.4L12 10.6 9.7 8.3Z"})})})})]}),(0,t.jsxs)($.yo,{children:[(0,t.jsx)($.aM,{asChild:!0,children:(0,t.jsxs)(L.z,{variant:"outline",children:["Show More"," ",(0,t.jsx)(K.Z,{className:"ml-2 -mr-0.5 h-5 w-5 flex-none text-gray-400","aria-hidden":"true"})]})}),(0,t.jsxs)($.ue,{className:"overflow-auto w-[800px] sm:w-[800px] sm:max-w-none",children:[(0,t.jsxs)($.Tu,{children:[(0,t.jsxs)($.bC,{children:["More info about ",e.name]}),(0,t.jsx)($.Ei,{children:"Here is the information regarding the node groups."})]}),(0,t.jsx)("div",{className:"grid gap-4 py-4 overflow-visible",children:(0,t.jsx)(ei,{data:e})}),(0,t.jsx)($.FF,{children:(0,t.jsx)($.sw,{asChild:!0,children:(0,t.jsx)(L.z,{type:"submit",children:"Close Now"})})})]})]})]})},e.name)})})})]}):(0,t.jsx)("div",{className:"mt-2 ml-4",children:l?(0,t.jsx)(X.Z,{}):(0,t.jsx)(es,{header:"UNKNOWN",message:""})}),(0,t.jsx)(er.B,{orientation:"horizontal"})]})]})})}function ec(e){return(0,t.jsxs)("svg",{...e,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",children:[(0,t.jsx)("rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2"}),(0,t.jsx)("rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2"}),(0,t.jsx)("line",{x1:"6",x2:"6.01",y1:"6",y2:"6"}),(0,t.jsx)("line",{x1:"6",x2:"6.01",y1:"18",y2:"18"})]})}var eu=l(63052);function ex(){return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center h-[50vh] gap-4",children:[(0,t.jsx)("div",{className:"bg-red-100 dark:bg-red-900 rounded-full p-4",children:(0,t.jsx)(eh,{className:"h-8 w-8 text-red-500 dark:text-red-400"})}),(0,t.jsxs)("div",{className:"text-center space-y-2",children:[(0,t.jsx)("h3",{className:"text-2xl font-bold",children:"The dashboard is not yet reachable now!"}),(0,t.jsx)("p",{className:"text-gray-500 dark:text-gray-400",children:"We couldn't load the requested resource right now. Please try again in a few moments."})]}),(0,t.jsxs)(L.z,{className:"mt-4",variant:"outline",onClick:()=>{window.location.reload()},children:[(0,t.jsx)(em,{className:"mr-2 h-4 w-4"}),"Reload"]})]})}function em(e){return(0,t.jsxs)("svg",{...e,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",children:[(0,t.jsx)("path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}),(0,t.jsx)("path",{d:"M21 3v5h-5"}),(0,t.jsx)("path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}),(0,t.jsx)("path",{d:"M8 16H3v5"})]})}function eh(e){return(0,t.jsxs)("svg",{...e,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",children:[(0,t.jsx)("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}),(0,t.jsx)("path",{d:"M12 9v4"}),(0,t.jsx)("path",{d:"M12 17h.01"})]})}var ev=l(86288),ep=l(46065),eg=l(74859);function ej(e){let{selectedPod:s}=e,[l,a]=(0,n.useState)([]),[i,o]=(0,n.useState)(null),[d,c]=(0,n.useState)(!0),[u,x]=(0,n.useState)(!1),m=(0,r.v9)(e=>e.environment.environmentLoadedValues),h=(0,r.v9)(e=>{var s;return null==e?void 0:null===(s=e.userInfo)||void 0===s?void 0:s.userInfoLoadedValues}),v=(0,r.v9)(e=>e.deploymentName.deploymentNameLoadedValues.name);(0,n.useEffect)(()=>{(async()=>{try{c(!0);let e=await fetch("".concat("".concat(eg.env.NEXT_PUBLIC_API,"/logs/").concat(s,"\n?deployment=").concat(v)),{headers:{Accept:"application/json",Authorization:(0,Z.Z)(h),superduper_reverse_proxy:eg.env.NEXT_PUBLIC_API||m.NEXT_PUBLIC_API}});if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let l=(await e.json()).payload;if(!l)throw Error("Invalid data structure received from the API");let t=p(l);a(t),o(null),x(!1)}catch(e){console.error("Error fetching logs:",e),o(e instanceof Error?e.message:"An unknown error occurred")}finally{c(!1)}})()},[s]);let p=e=>"string"!=typeof e?(console.error("Invalid payload type:",typeof e),[]):e.split("\n").filter(Boolean).map(e=>{let s=e.replace(/\s{2,}/g," "),l=s.match(/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}/),t=l?l[0]:"",n=l?s.slice(t.length).trim():s.trim(),a=n.match(/\b(INFO|WARNING|ERROR|SUCC|E)\b/i),i=a?a[1].toUpperCase():"",r=a?n.slice(i.length).trim().replace(/\s{2,}/g," "):n;return{timestamp:t,level:i,message:r}});return d?(0,t.jsx)(ev.Zb,{className:"w-full max-w-6xl mx-auto p-4",children:(0,t.jsx)("p",{className:"text-center",children:"Loading logs..."})}):(0,t.jsxs)("div",{className:"w-full max-w-6xl mx-auto mt-2",children:[i&&(0,t.jsxs)(A.bZ,{variant:"destructive",className:"mb-4",children:[(0,t.jsx)(ep.Z,{className:"h-4 w-4"}),(0,t.jsx)(A.Cd,{children:"Error"}),(0,t.jsxs)(A.X,{children:["Failed to fetch logs: ",i,"."]})]}),(0,t.jsx)(ev.Zb,{className:"bg-black text-green-400 p-4 font-mono text-sm overflow-hidden",children:(0,t.jsx)("div",{className:"overflow-y-auto h-[600px]",children:0===l.length?(0,t.jsx)("p",{className:"text-center",children:"No logs available."}):l.map((e,s)=>(0,t.jsxs)("div",{className:"mb-2",children:[e.timestamp&&(0,t.jsx)("span",{className:"text-blue-400",children:e.timestamp}),e.level&&(0,t.jsxs)("span",{className:"font-bold ".concat(function(e){switch(e.toUpperCase()){case"DEBUG":return"text-gray-400";case"TRACE":return"text-purple-400";case"WARNING":case"WARN":return"text-yellow-400";case"INFO":return"text-cyan-400";case"SUCC":case"SUCCESS":return"text-green-400";case"E":case"ERROR":return"text-rose-400";case"CRITICAL":case"FATAL":return"text-red-600";default:return"text-gray-200"}}(e.level)),children:[" ",e.level]}),(0,t.jsx)("span",{className:"ml-2",dangerouslySetInnerHTML:{__html:e.message.replace(/\u001B\[1m/g,'').replace(/\u001B\[22m/g,"").replace(/\u001B\[32m/g,'').replace(/\u001B\[37m/g,'').replace(/\u001B\[39m/g,"").replace(/\[37m/g,'').replace(/\[39m/g,"").replace(/\[1m/g,'').replace(/\[22m/g,"").replace(/\[32m/g,'')}})]},s))})})]})}var ef=l(74859);function ew(e){try{var s,l,t;if(e&&(null==e?void 0:e.status)&&(null==e?void 0:null===(s=e.status)||void 0===s?void 0:s.podRefList))return null==e?void 0:null===(t=e.status)||void 0===t?void 0:null===(l=t.podRefList)||void 0===l?void 0:l.map(e=>e.name);return[]}catch(e){return[]}}var eN=e=>{var s,l;let{data:a}=e,i=(0,r.v9)(e=>e.environment.environmentLoadedValues),o=(0,r.v9)(e=>e.deploymentAPI.deploymentAPILoadedValues),[d,c]=(0,n.useState)("".concat(JSON.stringify(a,null," "))),[u,x]=(0,n.useState)(ew(a)||[]),[m,h]=(0,n.useState)(u[0]),[v,p]=(0,n.useState)([{label:"Last 5 minutes",value:5},{label:"Last 15 minutes",value:15},{label:"Last 30 minutes",value:30},{label:"Last 1 hour",value:60},{label:"Last 6 hours",value:360},{label:"Last 12 hours",value:720},{label:"Last 24 hours",value:1440},{label:"Last 2 days",value:2880},{label:"Last 3 days",value:4320},{label:"Last 7 days",value:10080},{label:"Last 14 days",value:20160},{label:"Last 30 days",value:43200}]),[g,j]=(0,n.useState)(v[0].value);(0,n.useEffect)(()=>{x(ew(a)||[])},[a]);let f=e=>{c(e)},w=(0,n.useRef)(null),N=async()=>{try{w.current.editor.selectAll();let e=w.current.editor.getSelectedText();await navigator.clipboard.writeText(e),console.log("Text copied to clipboard:",e)}catch(e){console.error("Unable to copy text to clipboard:",e)}},y=e=>{h(e)},[b,C]=(0,n.useState)(!1),[L,S]=(0,n.useState)(!0),k=ef.env.NEXT_PUBLIC_GRAFANA_DASHBOARD||i.NEXT_PUBLIC_GRAFANA_DASHBOARD||"/grafana/";return o?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(ea.mQ,{defaultValue:"log",className:"w-full",children:[(0,t.jsxs)(ea.dr,{className:"grid w-full grid-cols-3",children:[m&&"true"==ef.env.NEXT_PUBLIC_SNOWFLAKE&&(0,t.jsx)(ea.SP,{value:"log",children:"Logs"}),m&&"true"!==ef.env.NEXT_PUBLIC_SNOWFLAKE&&(0,t.jsx)(ea.SP,{value:"monitoring",children:"Logs"}),(0,t.jsx)(ea.SP,{value:"status",children:"Status"}),(0,t.jsx)(ea.SP,{value:"specs",children:"Specs"})]}),m&&"true"==ef.env.NEXT_PUBLIC_SNOWFLAKE&&(0,t.jsxs)(ea.nU,{value:"log",children:[(0,t.jsxs)("div",{className:"relative mt-4",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center","aria-hidden":"true",children:(0,t.jsx)("div",{className:"w-full border-t border-gray-300"})}),(0,t.jsx)("div",{className:"relative flex justify-start",children:(0,t.jsx)("span",{className:"bg-white pr-3 text-base font-semibold leading-6 text-gray-900",children:"Logs"})})]}),(0,t.jsx)("div",{className:"flex gap-4",children:(0,t.jsxs)(eu.Ph,{value:m,onValueChange:y,children:[(0,t.jsx)(eu.i4,{className:"w-3/6 mt-4 mb-2",children:(0,t.jsx)(eu.ki,{placeholder:"Select a pod for log"})}),(0,t.jsx)(eu.Bw,{children:(0,t.jsxs)(eu.DI,{children:[(0,t.jsx)(eu.n5,{children:"Select a pod for log"}),u&&u.map((e,s)=>(0,t.jsx)(eu.Ql,{value:e,children:e},s))]})})]})}),(0,t.jsx)("div",{children:(0,t.jsx)(ej,{selectedPod:m})})]}),m&&"true"!==ef.env.NEXT_PUBLIC_SNOWFLAKE&&(0,t.jsxs)(ea.nU,{value:"monitoring",children:[(0,t.jsxs)("div",{className:"relative mt-4",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center","aria-hidden":"true",children:(0,t.jsx)("div",{className:"w-full border-t border-gray-300"})}),(0,t.jsx)("div",{className:"relative flex justify-start",children:(0,t.jsx)("span",{className:"bg-white pr-3 text-base font-semibold leading-6 text-gray-900",children:"Logs"})})]}),(0,t.jsxs)("div",{className:"flex gap-4",children:[(0,t.jsxs)(eu.Ph,{value:m,onValueChange:y,children:[(0,t.jsx)(eu.i4,{className:"w-3/6 mt-4 mb-2",children:(0,t.jsx)(eu.ki,{placeholder:"Select a pod for log"})}),(0,t.jsx)(eu.Bw,{children:(0,t.jsxs)(eu.DI,{children:[(0,t.jsx)(eu.n5,{children:"Select a pod for log"}),u&&u.map((e,s)=>(0,t.jsx)(eu.Ql,{value:e,children:e},s))]})})]}),(0,t.jsxs)(eu.Ph,{value:g,onValueChange:e=>{j(e)},children:[(0,t.jsx)(eu.i4,{className:"w-3/6 mt-4 mb-2",children:(0,t.jsx)(eu.ki,{placeholder:"Select a pod for log"})}),(0,t.jsx)(eu.Bw,{children:(0,t.jsxs)(eu.DI,{children:[(0,t.jsx)(eu.n5,{children:"Select a time"}),v.map((e,s)=>(0,t.jsx)(eu.Ql,{value:e.value,children:e.label},s))]})})]})]}),(0,t.jsx)("div",{children:L&&!b?(0,t.jsx)("iframe",{title:"External Website",allowFullScreen:!0,src:"".concat(k,"d-solo/logs/container-logs?orgId=1&theme=dark&panelId=2&refresh=&from=now-").concat(g,"m&to=now&var-pod=").concat(m,"&var-namespace=").concat(i.NEXT_PUBLIC_GRAFANA_NAMESPACE||ef.env.NEXT_PUBLIC_GRAFANA_NAMESPACE,"&var-container=&var-logs_type=&var-logs_source"),width:"100%",height:"400px",onLoad:()=>{C(!1)},onError:()=>{C(!0)},className:"mt-2",style:{overflow:"auto",borderRadius:"10px"}}):(0,t.jsx)(ex,{})})]}),(0,t.jsxs)(ea.nU,{value:"status",children:[(0,t.jsxs)("div",{className:"relative mt-4",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center","aria-hidden":"true",children:(0,t.jsx)("div",{className:"w-full border-t border-gray-300"})}),(0,t.jsx)("div",{className:"relative flex justify-start",children:(0,t.jsx)("span",{className:"bg-white pr-3 text-base font-semibold leading-6 text-gray-900",children:"Status"})})]}),(0,t.jsxs)("div",{className:"relative overflow-visible mt-4",children:[(0,t.jsx)("div",{className:"absolute bottom-8 right-5 z-50",children:(0,t.jsx)("span",{onClick:N,children:(0,t.jsx)(en.Z,{popoverheader:"Click to copy"})})}),(0,t.jsx)(et.default,{ref:w,className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Placeholder Text",mode:"json",theme:"github",name:"blah2",onChange:f,fontSize:14,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:"".concat(JSON.stringify(a,null," ")),setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,useWorker:!1,wrap:!0},height:"400px",width:"100%"})]})]}),(0,t.jsxs)(ea.nU,{value:"specs",children:[(0,t.jsxs)("div",{className:"relative mt-4",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center","aria-hidden":"true",children:(0,t.jsx)("div",{className:"w-full border-t border-gray-300"})}),(0,t.jsx)("div",{className:"relative flex justify-start",children:(0,t.jsx)("span",{className:"bg-white pr-3 text-base font-semibold leading-6 text-gray-900",children:"Specs"})})]}),(0,t.jsxs)("div",{className:"relative overflow-visible mt-4",children:[(0,t.jsx)("div",{className:"absolute bottom-8 right-5 z-50",children:(0,t.jsx)("span",{onClick:N,children:(0,t.jsx)(en.Z,{popoverheader:"Click to copy"})})}),(0,t.jsx)(et.default,{ref:w,className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Placeholder Text",mode:"json",theme:"github",name:"blah2",onChange:f,fontSize:14,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:"".concat(JSON.stringify((null==o?void 0:null===(s=o.spec)||void 0===s?void 0:s.serviceList)&&(null==o?void 0:null===(l=o.spec)||void 0===l?void 0:l.serviceList.filter(e=>(null==e?void 0:e.name.toLowerCase())===(null==a?void 0:a.name.toLowerCase()))),null," ")),setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,useWorker:!1,wrap:!0},height:"400px",width:"100%"})]})]})]})}):null},ey=l(3078);function eb(e){return(0,t.jsxs)("svg",{...e,"aria-hidden":"true",className:"w-4 h-4 me-0 text-gray-200 animate-spin dark:text-white-600 fill-yellow-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})}let eC={running:{bgColor:"bg-green-50",textColor:"text-green-700",ringColor:"ring-green-600/20",icon:(0,t.jsx)(function(e){return(0,t.jsx)("svg",{...e,className:"w-4 h-4 me-0 text-green-500 dark:text-green-400 flex-shrink-0","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z"})})},{}),label:"Running"},pending:{bgColor:"bg-yellow-50",textColor:"text-yellow-700",ringColor:"ring-yellow-600/20",icon:(0,t.jsx)(eb,{}),label:"Pending"},unknown:{bgColor:"bg-yellow-50",textColor:"text-yellow-700",ringColor:"ring-yellow-600/20",icon:(0,t.jsx)(eb,{}),label:"Unknown"},failed:{bgColor:"bg-red-50",textColor:"text-red-700",ringColor:"ring-red-600/20",icon:(0,t.jsx)(function(e){return(0,t.jsx)("svg",{...e,className:"w-4 h-4 me-0 text-red-500 dark:text-red-400 flex-shrink-0","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M2 12a10 10 0 1 1 20 0 10 10 0 0 1-20 0Zm7.7-3.7a1 1 0 0 0-1.4 1.4l2.3 2.3-2.3 2.3a1 1 0 1 0 1.4 1.4l2.3-2.3 2.3 2.3a1 1 0 0 0 1.4-1.4L13.4 12l2.3-2.3a1 1 0 0 0-1.4-1.4L12 10.6 9.7 8.3Z"})})},{}),label:"Failed"}},eL=e=>{let s=eC[(null==e?void 0:e.toLowerCase())||"unknown"];return s?(0,t.jsxs)("dd",{className:"inline-flex items-center rounded-md ".concat(s.bgColor," px-2 py-1 text-xs font-medium ").concat(s.textColor," ring-1 ring-inset ").concat(s.ringColor),children:[s.label,(0,t.jsx)("div",{className:"offline flex-none rounded-full p-1",children:(0,t.jsx)("div",{role:"status",children:s.icon})})]}):null};var eS=l(32966),ek=l(6850),eE=l(74859);function eP(e){let{url:s}=e;return(console.log("DeploymentLink",s),s)?s.toLowerCase().includes("endpoints provisioning in progress... check back in a few minutes")?(0,t.jsxs)(L.z,{variant:"outline",disabled:!0,children:["Endpoint Provisioning",(0,t.jsx)(eS.Z,{className:"ml-0.5 -mr.5 h-5 w-5","aria-hidden":"true"})]}):(0,t.jsx)("a",{href:s,target:"_blank",rel:"noopener noreferrer",children:(0,t.jsxs)(L.z,{variant:"outline",children:["Open",(0,t.jsx)(ek.Z,{className:"ml-0.5 -mr.5 h-5 w-5","aria-hidden":"true"})]})}):null}let eA=e=>{var s,l,n;let{deployment:a,token:i,env:r}=e;if((null==a?void 0:null===(l=a.status)||void 0===l?void 0:null===(s=l.phase)||void 0===s?void 0:s.toLowerCase())!=="running")return null;let o=null==a?void 0:null===(n=a.name)||void 0===n?void 0:n.toLowerCase(),d=[{condition:o.includes("ray"),url:eE.env.NEXT_PUBLIC_RAY_DASHBOARD||r.NEXT_PUBLIC_RAY_DASHBOARD},{condition:o.includes("jupyter"),url:"".concat(eE.env.NEXT_PUBLIC_JUPYTER_NOTEBOOK||r.NEXT_PUBLIC_JUPYTER_NOTEBOOK,"?superduper_token=").concat(i)},{condition:o.includes("monitoring"),url:eE.env.NEXT_PUBLIC_GRAFANA_DASHBOARD||r.NEXT_PUBLIC_GRAFANA_DASHBOARD},{condition:o.includes("rest"),url:"".concat("http://localhost:8000","docs")},{condition:o.includes("apiserver"),url:eE.env.NEXT_PUBLIC_APISERVER||r.NEXT_PUBLIC_APISERVER},{condition:o.includes("appui"),url:eE.env.NEXT_PUBLIC_APPUI||r.NEXT_PUBLIC_APPUI},{condition:o.includes("webui"),url:eE.env.NEXT_PUBLIC_WEBUI||r.NEXT_PUBLIC_WEBUI},{condition:o.includes("proxy"),url:eE.env.NEXT_PUBLIC_PROXY||r.NEXT_PUBLIC_PROXY}];return(0,t.jsx)(t.Fragment,{children:d.map((e,s)=>e.condition&&e.url&&(0,t.jsx)(eP,{url:e.url},s))})};var eI=l(74859);let e_=e=>{let{url:s,token:l,identifier:n}=e;return s?s.toLowerCase().includes("endpoints provisioning in progress... check back in a few minutes")?(0,t.jsxs)(L.z,{variant:"outline",disabled:!0,children:["Endpoint Provisioning",(0,t.jsx)(eS.Z,{className:"ml-0.5 -mr.5 h-5 w-5","aria-hidden":"true"})]}):(0,t.jsx)(t.Fragment,{children:s&&(0,t.jsx)("a",{href:"true"==eI.env.NEXT_PUBLIC_SNOWFLAKE?(e=>{let s=window.location.origin;return"".concat(s,"/webui/").concat(e,"/")})(n):"".concat(s,"?superduper_token=").concat(l),target:"_blank",rel:"noopener noreferrer",children:(0,t.jsxs)(L.z,{variant:"outline",children:["Open",(0,t.jsx)(ek.Z,{className:"ml-0.5 -mr-0.5 h-5 w-5","aria-hidden":"true"})]})})}):null};var eB=e=>{var s;let{deployment:l,token:n,env:a,endpointData:i}=e,r=null==l?void 0:null===(s=l.name)||void 0===s?void 0:s.toLowerCase();return i&&null!==i.items&&void 0!==i.items?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(e_,{identifier:r,token:n,url:function(e,s){for(let l of e.items)if(l.serviceName.toLowerCase()===s){for(let e of l.endpoints)if(e.ingressURL&&e.protocol)return"".concat(e.protocol,"://").concat(e.ingressURL)}return null}(i,r)},r)}):null};let eT=e=>{if("object"==typeof e){if("computeClass"in e)return e.computeClass;for(let s of Object.values(e)){let e=eT(s);if(void 0!==e)return e}console.log("No computeClass found in the object:",e)}},eZ=(e,s)=>{var l,t;let n=null==s?void 0:null===(t=s.spec)||void 0===t?void 0:null===(l=t.serviceList)||void 0===l?void 0:l.find(s=>s.name.toLowerCase()===e.toLowerCase());return(null==n?void 0:n.spec)?eT(n.spec):void 0};function eU(e){return(0,t.jsxs)("svg",{...e,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",children:[(0,t.jsx)("path",{d:"M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z"}),(0,t.jsx)("path",{d:"M10 21.9V14L2.1 9.1"}),(0,t.jsx)("path",{d:"m10 14 11.9-6.9"}),(0,t.jsx)("path",{d:"M14 19.8v-8.1"}),(0,t.jsx)("path",{d:"M18 17.5V9.4"})]})}let eR=()=>(0,t.jsx)("div",{className:"mx-auto max-w-7xl pr-4 pt-5 pb-0 sm:pr-6 lg:pr-8",children:(0,t.jsx)("div",{className:"mx-auto flex max-w-2xl items-center justify-between gap-x-8 lg:mx-0 lg:max-w-none",children:(0,t.jsxs)("div",{className:"flex items-center gap-x-4",children:[(0,t.jsx)("div",{className:"bg-black rounded-lg p-2",children:(0,t.jsx)(eU,{className:"w-6 h-6 text-gray-300"})}),(0,t.jsxs)("h1",{className:"text-base font-semibold leading-6 text-gray-900",children:["Services",(0,t.jsx)(ee.Z,{label:"",popoverheader:"",popovercontent:(0,t.jsx)("p",{children:"Services are the microservices that are running in the cluster that make superduper works!"})})]})]})})});var eD=l(74859);let eM=function(){for(var e=arguments.length,s=Array(e),l=0;l{let e=(0,r.v9)(e=>e.environment.environmentLoadedValues),s=(0,r.v9)(e=>e.environment.environmentLoadedValues.endpointData),[l,a]=(0,n.useState)(!0),[i,o]=(0,n.useState)(0),d=(0,r.v9)(e=>{var s,l;return null==e?void 0:null===(l=e.userInfo)||void 0===l?void 0:null===(s=l.userInfoLoadedValues)||void 0===s?void 0:s.token}),c=(0,r.v9)(e=>e.chartsgroups.chartsLoadedValues),u=(0,r.v9)(e=>e.deploymentAPI.deploymentAPILoadedValues);return(0,n.useEffect)(()=>{let e=setTimeout(()=>a(!1),5e3);return()=>clearTimeout(e)},[]),(0,n.useEffect)(()=>{d&&o(e=>e+1)},[d]),c||e||d||(l?(0,t.jsx)(X.Z,{}):(0,t.jsx)(es,{header:"No Services Found",message:""})),(0,t.jsxs)("div",{children:[(0,t.jsx)(eR,{}),(0,t.jsxs)(er.x,{className:"max-w-7xl whitespace-nowrap",children:[c&&e&&d&&(0,t.jsx)("div",{className:"bg-white px-4 py-5 sm:px-6",children:(0,t.jsx)("ul",{role:"list",className:"divide-y divide-red/5",children:c.items.map(l=>{var a,i,r,o,c,x,m;return(0,t.jsx)(n.Fragment,{children:l.name&&(0,t.jsxs)("li",{className:"relative flex items-center space-x-4 py-4",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-auto",children:[(0,t.jsxs)("div",{className:"flex items-center gap-x-3",children:[(0,t.jsx)("div",{className:eM((null==l?void 0:null===(i=l.status)||void 0===i?void 0:null===(a=i.phase)||void 0===a?void 0:a.toLowerCase())==="running"?"text-green-400 bg-green-400/10":(null==l?void 0:null===(o=l.status)||void 0===o?void 0:null===(r=o.phase)||void 0===r?void 0:r.toLowerCase())==="failed"?"text-rose-400 bg-rose-400/10":"text-yellow-400 bg-yellow-400/10","flex-none rounded-full p-1"),children:(0,t.jsx)("div",{className:"h-2 w-2 rounded-full bg-current"})}),(0,t.jsx)("h2",{className:"min-w-0 text-sm font-semibold leading-6 text-gray-900",children:(0,t.jsxs)(Q.J2,{children:[(0,t.jsx)(Q.xo,{asChild:!0,children:(0,t.jsxs)("div",{className:"flex",children:[l.name,"\xa0\xa0",(0,t.jsx)(w.jnn,{className:"h-4 w-4 mt-1"})]})}),(0,t.jsx)(Q.yk,{className:"w-80",children:(0,t.jsxs)("div",{className:"grid gap-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("h4",{className:"font-medium leading-none",children:"Pods Status"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"See the status of the pods"})]}),(0,t.jsx)("div",{className:"grid gap-2",children:null==l?void 0:null===(x=l.status)||void 0===x?void 0:null===(c=x.podRefList)||void 0===c?void 0:c.map(e=>{var s;return(0,t.jsxs)("div",{className:"grid grid-cols-3 items-center gap-4",children:[(0,t.jsx)(p.C,{className:"col-span-2 h-8",children:e.name}),eL(null==e?void 0:null===(s=e.lifecycle)||void 0===s?void 0:s.phase)]},e.name)})})]})})]})})]}),(0,t.jsxs)("div",{className:"mt-3 flex items-center gap-x-2.5 text-xs leading-5 text-gray-400",children:[(0,t.jsx)("p",{className:"whitespace-nowrap",children:"ComputeClass:"}),(0,t.jsx)("button",{type:"button",className:"inline-flex items-center rounded-full bg-white px-2.5 py-1 text-xs font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:eZ(l.name,u)||"No ComputeClass"})]})]}),"true"==eD.env.NEXT_PUBLIC_API_DISABLE_ENV_LINK?(0,t.jsx)(eB,{deployment:l,token:d,env:e,endpointData:s}):(0,t.jsx)(eA,{deployment:l,token:d,env:e,endpointData:s}),eL(null==l?void 0:null===(m=l.status)||void 0===m?void 0:m.phase),(0,t.jsxs)($.yo,{children:[(0,t.jsx)($.aM,{asChild:!0,children:(0,t.jsxs)(L.z,{variant:"outline",children:["Show More ",(0,t.jsx)(ey.Z,{})]})}),(0,t.jsxs)($.ue,{className:"overflow-auto w-[800px] sm:w-[800px] sm:max-w-none",children:[(0,t.jsxs)($.Tu,{children:[(0,t.jsxs)($.bC,{children:["More info about ",l.name]}),(0,t.jsx)($.Ei,{children:"Here is the information regarding the services."})]}),(0,t.jsx)("div",{className:"grid gap-4 py-4 overflow-visible",children:(0,t.jsx)(eN,{data:l})}),(0,t.jsx)($.FF,{children:(0,t.jsx)($.sw,{asChild:!0,children:(0,t.jsx)(L.z,{type:"submit",children:"Close Now"})})})]})]})]})},l.name)})})}),(0,t.jsx)(er.B,{orientation:"horizontal"})]})]})};function eF(){var e,s,l,n,a,i,o,d,c,u,x,m,h,v,p,g,j,f,w,N,y,b,C,L,S,k,E,P,A,I,_,B,T,Z,U,R,D,M,O,F,V,z,X,W,G,Y,J,H,K,q,Q,$,ee,es,el,et,en,ea,ei,er,eo,ed,ec,eu,ex,em,eh;let ep=(0,r.v9)(e=>e.deploymentAPI.deploymentAPILoadedValues);return ep&&(null==ep?void 0:null===(e=ep.spec)||void 0===e?void 0:e.superDuperEnv)?(0,t.jsxs)(ev.Zb,{className:"w-full",children:[(0,t.jsxs)(ev.Ol,{children:[(0,t.jsx)(ev.ll,{children:"Configuration"}),(0,t.jsx)(ev.SZ,{children:"Details for the deployment environment."})]}),(0,t.jsxs)(ev.aY,{className:"grid gap-6",children:[(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Data Store"}),(0,t.jsxs)("div",{className:"grid sm:grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Backend Type"}),(0,t.jsx)("span",{className:"font-medium",children:(null==ep?void 0:null===(n=ep.spec)||void 0===n?void 0:null===(l=n.superDuperEnv)||void 0===l?void 0:null===(s=l.dataStore)||void 0===s?void 0:s.backendType)?null==ep?void 0:null===(o=ep.spec)||void 0===o?void 0:null===(i=o.superDuperEnv)||void 0===i?void 0:null===(a=i.dataStore)||void 0===a?void 0:a.backendType:"[Not Specified]"})]}),(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Connection URI"}),(0,t.jsx)("span",{className:"font-medium",children:(null==ep?void 0:null===(u=ep.spec)||void 0===u?void 0:null===(c=u.superDuperEnv)||void 0===c?void 0:null===(d=c.dataStore)||void 0===d?void 0:d.connectionURI)?null==ep?void 0:null===(h=ep.spec)||void 0===h?void 0:null===(m=h.superDuperEnv)||void 0===m?void 0:null===(x=m.dataStore)||void 0===x?void 0:x.connectionURI:"[Not Specified]"})]})]})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Metadata Store"}),(0,t.jsxs)("div",{className:"grid sm:grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Backend Type"}),(0,t.jsxs)("span",{className:"font-medium",children:[" ",(null==ep?void 0:null===(g=ep.spec)||void 0===g?void 0:null===(p=g.superDuperEnv)||void 0===p?void 0:null===(v=p.metadataStore)||void 0===v?void 0:v.backendType)?null==ep?void 0:null===(w=ep.spec)||void 0===w?void 0:null===(f=w.superDuperEnv)||void 0===f?void 0:null===(j=f.metadataStore)||void 0===j?void 0:j.backendType:"[Not Specified]"]})]}),(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Connection URI"}),(0,t.jsx)("span",{className:"font-medium",children:(null==ep?void 0:null===(b=ep.spec)||void 0===b?void 0:null===(y=b.superDuperEnv)||void 0===y?void 0:null===(N=y.metadataStore)||void 0===N?void 0:N.connectionURI)?null==ep?void 0:null===(S=ep.spec)||void 0===S?void 0:null===(L=S.superDuperEnv)||void 0===L?void 0:null===(C=L.metadataStore)||void 0===C?void 0:C.connectionURI:"[Not Specified]"})]})]})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Artifact Store"}),(0,t.jsxs)("div",{className:"grid sm:grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Backend Type"}),(0,t.jsx)("span",{className:"font-medium",children:(null==ep?void 0:null===(P=ep.spec)||void 0===P?void 0:null===(E=P.superDuperEnv)||void 0===E?void 0:null===(k=E.artifactStore)||void 0===k?void 0:k.backendType)?null==ep?void 0:null===(_=ep.spec)||void 0===_?void 0:null===(I=_.superDuperEnv)||void 0===I?void 0:null===(A=I.artifactStore)||void 0===A?void 0:A.backendType:"[Not Specified]"})]}),(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Connection URI"}),(0,t.jsx)("span",{className:"font-medium",children:(null==ep?void 0:null===(Z=ep.spec)||void 0===Z?void 0:null===(T=Z.superDuperEnv)||void 0===T?void 0:null===(B=T.artifactStore)||void 0===B?void 0:B.connectionURI)?null==ep?void 0:null===(D=ep.spec)||void 0===D?void 0:null===(R=D.superDuperEnv)||void 0===R?void 0:null===(U=R.artifactStore)||void 0===U?void 0:U.connectionURI:"[Not Specified]"})]})]})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Service Endpoints"}),(0,t.jsxs)("div",{className:"grid sm:grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"CDC"}),(0,t.jsx)("span",{className:"font-medium",children:(null==ep?void 0:null===(F=ep.spec)||void 0===F?void 0:null===(O=F.superDuperEnv)||void 0===O?void 0:null===(M=O.serviceEndpoints)||void 0===M?void 0:M.cdc)?null==ep?void 0:null===(X=ep.spec)||void 0===X?void 0:null===(z=X.superDuperEnv)||void 0===z?void 0:null===(V=z.serviceEndpoints)||void 0===V?void 0:V.cdc:"[Not Specified]"})]}),(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Ray"}),(0,t.jsx)("span",{className:"font-medium",children:(null==ep?void 0:null===(Y=ep.spec)||void 0===Y?void 0:null===(G=Y.superDuperEnv)||void 0===G?void 0:null===(W=G.serviceEndpoints)||void 0===W?void 0:W.ray)?null==ep?void 0:null===(K=ep.spec)||void 0===K?void 0:null===(H=K.superDuperEnv)||void 0===H?void 0:null===(J=H.serviceEndpoints)||void 0===J?void 0:J.ray:"[Not Specified]"})]}),(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"REST Server"}),(0,t.jsxs)("span",{className:"font-medium",children:[" ",(null==ep?void 0:null===($=ep.spec)||void 0===$?void 0:null===(Q=$.superDuperEnv)||void 0===Q?void 0:null===(q=Q.serviceEndpoints)||void 0===q?void 0:q.restServer)?null==ep?void 0:null===(el=ep.spec)||void 0===el?void 0:null===(es=el.superDuperEnv)||void 0===es?void 0:null===(ee=es.serviceEndpoints)||void 0===ee?void 0:ee.restServer:"[Not Specified]"]})]}),(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Vector Search"}),(0,t.jsxs)("span",{className:"font-medium",children:[" ",(null==ep?void 0:null===(ea=ep.spec)||void 0===ea?void 0:null===(en=ea.superDuperEnv)||void 0===en?void 0:null===(et=en.serviceEndpoints)||void 0===et?void 0:et.vectorSearch)?null==ep?void 0:null===(eo=ep.spec)||void 0===eo?void 0:null===(er=eo.superDuperEnv)||void 0===er?void 0:null===(ei=er.serviceEndpoints)||void 0===ei?void 0:ei.vectorSearch:"[Not Specified]"]})]}),(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Scheduler"}),(0,t.jsxs)("span",{className:"font-medium",children:[" ",(null==ep?void 0:null===(eu=ep.spec)||void 0===eu?void 0:null===(ec=eu.superDuperEnv)||void 0===ec?void 0:null===(ed=ec.serviceEndpoints)||void 0===ed?void 0:ed.scheduler)?null==ep?void 0:null===(eh=ep.spec)||void 0===eh?void 0:null===(em=eh.superDuperEnv)||void 0===em?void 0:null===(ex=em.serviceEndpoints)||void 0===ex?void 0:ex.scheduler:"[Not Specified]"]})]})]})]})]})]}):null}var eV=l(43210),ez=l(15055),eX=l(74859);let{getReasonPhrase:eW}=l(70194);function eG(e){let{simple:s=!1}=e,[l,c]=(0,n.useState)(!1),x=(0,r.v9)(e=>e.environment.environmentLoadedValues),m=(0,r.v9)(e=>{var s;return null==e?void 0:null===(s=e.userInfo)||void 0===s?void 0:s.userInfoLoadedValues}),h=(0,r.v9)(e=>e.deploymentName.deploymentNameLoadedValues.name),v=(0,j.useSearchParams)(),p=v.get("deleted"),g=v.get("create"),f=v.get("deployment"),w=(0,r.I0)(),N=async e=>(await i.Z.get(e,{headers:{Accept:"application/json",Authorization:(0,Z.Z)(m),superduper_reverse_proxy:eX.env.NEXT_PUBLIC_API||x.NEXT_PUBLIC_API}})).data,{data:y,error:b}=(0,a.ZP)("".concat("".concat(eX.env.NEXT_PUBLIC_API,"/deployments/").concat(h)),N,{refreshInterval:0,revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});if((0,n.useEffect)(()=>{y&&(console.log("\uD83D\uDC49 PROXYING FROM",eX.env.NEXT_PUBLIC_API),w(u(y)),null==y.status.nodeGroupList?console.log("No Node Group List"):(w((0,d.NB)({items:y.status.nodeGroupList})),w((0,d.Bw)({items:y.status.nodeGroupList}))),null==y.status.serviceList?console.log("No such service"):w((0,o.Gi)({items:y.status.serviceList.filter(e=>"true"!==eX.env.NEXT_PUBLIC_SNOWFLAKE||(null==e?void 0:e.name.toLowerCase())!=="mongodb").sort((e,s)=>e.names.name?1:0)})))},[y,w]),"true"===p)return(0,t.jsxs)("div",{children:[(0,t.jsx)(z,{}),(0,t.jsx)(O.Z,{showIconPart:!1})]});if("true"===g)return(0,t.jsx)("div",{children:s?(0,t.jsx)(ez.Z,{}):(0,t.jsx)(eV.Z,{})});if(!y&&!b)return(0,t.jsx)(X.Z,{times:6});if("done"!==f||y||l||setTimeout(()=>{c(!0)},15e3),"done"===f&&!y)return l?(0,t.jsx)(F.Z,{showIconPart:!1,showHeadUp:!0}):(0,t.jsx)("div",{className:"flex items-center justify-center h-75vh",children:(0,t.jsx)(Y,{})});if(b){console.log("Error Details:",b);let e=b.response.status||404,l=eW(e)||"Service Unavailable";if(b.response){if(404===e&&!s||404===e&&s)return(0,t.jsx)(F.Z,{showIconPart:!1,showHeadUp:!0})}else if(b.request)return console.log("No response received from server"),(0,t.jsx)(J.Z,{header:"API SERVER",shortMessage:l,status:e,description:"Status: ".concat(e,", Message: ").concat("string"==typeof b.message?b.message:JSON.stringify(b.message))});else return console.log("Error:",b.message),(0,t.jsx)(J.Z,{header:"API SERVER",shortMessage:l,status:e,description:"Status: ".concat(e,", Message: ").concat("string"==typeof b.message?b.message:JSON.stringify(b.message))});return console.log("Error",b),(0,t.jsx)(J.Z,{header:"API SERVER",shortMessage:l,status:e,description:"Status: ".concat(e,", Message: ").concat("string"==typeof b.message?b.message:JSON.stringify(b.message))})}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(M,{}),(0,t.jsx)(eF,{}),(0,t.jsx)("br",{}),(0,t.jsx)(ed,{}),(0,t.jsx)("br",{}),(0,t.jsx)(eO,{}),(0,t.jsx)("br",{}),(0,t.jsx)("br",{})]})}},63052:function(e,s,l){l.d(s,{Bw:function(){return h},DI:function(){return d},Ph:function(){return o},Ql:function(){return p},i4:function(){return u},ki:function(){return c},n5:function(){return v}});var t=l(27573),n=l(7653),a=l(85688),i=l(66240),r=l(18580);let o=i.fC,d=i.ZA,c=i.B4,u=n.forwardRef((e,s)=>{let{className:l,children:n,...o}=e;return(0,t.jsxs)(i.xz,{ref:s,className:(0,r.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",l),...o,children:[n,(0,t.jsx)(i.JO,{asChild:!0,children:(0,t.jsx)(a.jnn,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=i.xz.displayName;let x=n.forwardRef((e,s)=>{let{className:l,...n}=e;return(0,t.jsx)(i.u_,{ref:s,className:(0,r.cn)("flex cursor-default items-center justify-center py-1",l),...n,children:(0,t.jsx)(a.g8U,{})})});x.displayName=i.u_.displayName;let m=n.forwardRef((e,s)=>{let{className:l,...n}=e;return(0,t.jsx)(i.$G,{ref:s,className:(0,r.cn)("flex cursor-default items-center justify-center py-1",l),...n,children:(0,t.jsx)(a.v4q,{})})});m.displayName=i.$G.displayName;let h=n.forwardRef((e,s)=>{let{className:l,children:n,position:a="popper",...o}=e;return(0,t.jsx)(i.h_,{children:(0,t.jsxs)(i.VY,{ref:s,className:(0,r.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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","popper"===a&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",l),position:a,...o,children:[(0,t.jsx)(x,{}),(0,t.jsx)(i.l_,{className:(0,r.cn)("p-1","popper"===a&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),(0,t.jsx)(m,{})]})})});h.displayName=i.VY.displayName;let v=n.forwardRef((e,s)=>{let{className:l,...n}=e;return(0,t.jsx)(i.__,{ref:s,className:(0,r.cn)("px-2 py-1.5 text-sm font-semibold",l),...n})});v.displayName=i.__.displayName;let p=n.forwardRef((e,s)=>{let{className:l,children:n,...o}=e;return(0,t.jsxs)(i.ck,{ref:s,className:(0,r.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",l),...o,children:[(0,t.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(i.wU,{children:(0,t.jsx)(a.nQG,{className:"h-4 w-4"})})}),(0,t.jsx)(i.eT,{children:n})]})});p.displayName=i.ck.displayName,n.forwardRef((e,s)=>{let{className:l,...n}=e;return(0,t.jsx)(i.Z0,{ref:s,className:(0,r.cn)("-mx-1 my-1 h-px bg-muted",l),...n})}).displayName=i.Z0.displayName},87191:function(e,s,l){l.d(s,{Z:function(){return d}});var t=l(27573),n=l(7653),a=l(22392);l(40020),l(19234),l(83346);var i=l(412),r=l(24017),o=l(93296);function d(e){let{data:s,height:l="300px"}=e,d=(0,i.I0)(),[c,u]=(0,n.useState)(JSON.stringify(s,null," "));return(0,n.useRef)(null),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(a.default,{className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Stack result JSON here...",mode:"json",theme:"github",name:"blah2",onChange:e=>{try{u(e),d((0,r.q7)(JSON.parse(e)))}catch(e){o.ZP.error("Error updating...",{id:"stack-update-error"})}},fontSize:13,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:c,setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,useWorker:!1,wrap:!0},height:l,width:"100%"})})}},87882:function(e,s,l){l.d(s,{Z:function(){return r}});var t=l(27573),n=l(36531),a=l(86288),i=l(88146);function r(){return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center min-h-screen bg-background -mt-4",children:[(0,t.jsxs)("div",{className:"text-center space-y-2 mb-8",children:[(0,t.jsx)("h2",{className:"text-3xl font-bold",children:"Welcome to Superduper"}),(0,t.jsx)("p",{className:"text-muted-foreground max-w-md",children:"Explore our reusable templates, applications, and execute queries against your database."})]}),(0,t.jsxs)("header",{className:"flex items-center justify-center gap-4 mb-8",children:[(0,t.jsx)(i.default,{href:"/webui/templates",children:(0,t.jsxs)(n.z,{variant:"outline",size:"sm",className:"flex items-center gap-2",children:[(0,t.jsx)(d,{className:"w-4 h-4"}),"See Templates"]})}),(0,t.jsx)(i.default,{href:"/webui/application",children:(0,t.jsxs)(n.z,{variant:"outline",size:"sm",className:"flex items-center gap-2",children:[(0,t.jsx)(o,{className:"w-4 h-4"}),"See Applications"]})}),(0,t.jsx)(i.default,{href:"/webui/query",children:(0,t.jsxs)(n.z,{variant:"outline",size:"sm",className:"flex items-center gap-2",children:[(0,t.jsx)(c,{className:"w-4 h-4"}),"Execute Query"]})})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 w-full max-w-3xl",children:[(0,t.jsx)(i.default,{href:"/webui/templates",children:(0,t.jsx)(a.Zb,{className:"transition-transform duration-300 hover:scale-105",children:(0,t.jsxs)(a.aY,{className:"flex flex-col items-center justify-center p-8",children:[(0,t.jsx)(d,{className:"w-6 h-6 mb-4 text-primary"}),(0,t.jsx)("h3",{className:"text-base font-bold mb-2",children:"Templates"}),(0,t.jsx)("p",{className:"text-muted-foreground text-center",children:"See our library of reusable templates or add one."})]})})}),(0,t.jsx)(i.default,{href:"/webui/application",children:(0,t.jsx)(a.Zb,{className:"transition-transform duration-300 hover:scale-105",children:(0,t.jsxs)(a.aY,{className:"flex flex-col items-center justify-center p-8",children:[(0,t.jsx)(o,{className:"w-6 h-6 mb-4 text-primary"}),(0,t.jsx)("h3",{className:"text-base font-bold mb-2",children:"Applications"}),(0,t.jsx)("p",{className:"text-muted-foreground text-center",children:"Check out our pre-built applications or add one now."})]})})}),(0,t.jsx)(i.default,{href:"/webui/query",children:(0,t.jsx)(a.Zb,{className:"transition-transform duration-300 hover:scale-105",children:(0,t.jsxs)(a.aY,{className:"flex flex-col items-center justify-center p-8",children:[(0,t.jsx)(c,{className:"w-6 h-6 mb-4 text-primary"}),(0,t.jsx)("h3",{className:"text-base font-bold mb-2",children:"Execute"}),(0,t.jsx)("p",{className:"text-muted-foreground text-center",children:"Execute queries to retrieve data from your database."})]})})})]})]})}function o(e){return(0,t.jsxs)("svg",{...e,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",children:[(0,t.jsx)("rect",{width:"7",height:"7",x:"3",y:"3",rx:"1"}),(0,t.jsx)("rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}),(0,t.jsx)("rect",{width:"7",height:"7",x:"14",y:"14",rx:"1"}),(0,t.jsx)("rect",{width:"7",height:"7",x:"3",y:"14",rx:"1"})]})}function d(e){return(0,t.jsx)("svg",{...e,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",children:(0,t.jsx)("path",{d:"M19.439 7.85c-.049.322.059.648.289.878l1.568 1.568c.47.47.706 1.087.706 1.704s-.235 1.233-.706 1.704l-1.611 1.611a.98.98 0 0 1-.837.276c-.47-.07-.802-.48-.968-.925a2.501 2.501 0 1 0-3.214 3.214c.446.166.855.497.925.968a.979.979 0 0 1-.276.837l-1.61 1.61a2.404 2.404 0 0 1-1.705.707 2.402 2.402 0 0 1-1.704-.706l-1.568-1.568a1.026 1.026 0 0 0-.877-.29c-.493.074-.84.504-1.02.968a2.5 2.5 0 1 1-3.237-3.237c.464-.18.894-.527.967-1.02a1.026 1.026 0 0 0-.289-.877l-1.568-1.568A2.402 2.402 0 0 1 1.998 12c0-.617.236-1.234.706-1.704L4.23 8.77c.24-.24.581-.353.917-.303.515.077.877.528 1.073 1.01a2.5 2.5 0 1 0 3.259-3.259c-.482-.196-.933-.558-1.01-1.073-.05-.336.062-.676.303-.917l1.525-1.525A2.402 2.402 0 0 1 12 1.998c.617 0 1.234.236 1.704.706l1.568 1.568c.23.23.556.338.877.29.493-.074.84-.504 1.02-.968a2.5 2.5 0 1 1 3.237 3.237c-.464.18-.894.527-.967 1.02Z"})})}function c(e){return(0,t.jsxs)("svg",{...e,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",children:[(0,t.jsx)("polyline",{points:"4 17 10 11 4 5"}),(0,t.jsx)("line",{x1:"12",x2:"20",y1:"19",y2:"19"})]})}}}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/8743-5aa55bdab8d1c8e0.js b/superduper/rest/out/_next/static/chunks/6784-71aa810bd66f0d51.js similarity index 87% rename from superduper/rest/out/_next/static/chunks/8743-5aa55bdab8d1c8e0.js rename to superduper/rest/out/_next/static/chunks/6784-71aa810bd66f0d51.js index a85ad3df7..03961ae41 100644 --- a/superduper/rest/out/_next/static/chunks/8743-5aa55bdab8d1c8e0.js +++ b/superduper/rest/out/_next/static/chunks/6784-71aa810bd66f0d51.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8743],{4821:function(e,t,r){let n=r(1627),a=r(95006),i=r(59944),o=r(7309),[s,{lineHeight:l}]=i.fontSize.base,{spacing:f,borderWidth:c,borderRadius:d}=i;function u(e,t){return e.replace("",`var(${t}, 1)`)}let p=a.withOptions(function(e={strategy:void 0}){return function({addBase:t,addComponents:r,theme:a}){var i,p;let m;let g=void 0===e.strategy?["base","class"]:[e.strategy],b=[{base:["[type='text']","input:where(:not([type]))","[type='email']","[type='url']","[type='password']","[type='number']","[type='date']","[type='datetime-local']","[type='month']","[type='search']","[type='tel']","[type='time']","[type='week']","[multiple]","textarea","select"],class:[".form-input",".form-textarea",".form-select",".form-multiselect"],styles:{appearance:"none","background-color":"#fff","border-color":u(a("colors.gray.500",o.gray[500]),"--tw-border-opacity"),"border-width":c.DEFAULT,"border-radius":d.none,"padding-top":f[2],"padding-right":f[3],"padding-bottom":f[2],"padding-left":f[3],"font-size":s,"line-height":l,"--tw-shadow":"0 0 #0000","&:focus":{outline:"2px solid transparent","outline-offset":"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":u(a("colors.blue.600",o.blue[600]),"--tw-ring-opacity"),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)","box-shadow":"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)","border-color":u(a("colors.blue.600",o.blue[600]),"--tw-border-opacity")}}},{base:["input::placeholder","textarea::placeholder"],class:[".form-input::placeholder",".form-textarea::placeholder"],styles:{color:u(a("colors.gray.500",o.gray[500]),"--tw-text-opacity"),opacity:"1"}},{base:["::-webkit-datetime-edit-fields-wrapper"],class:[".form-input::-webkit-datetime-edit-fields-wrapper"],styles:{padding:"0"}},{base:["::-webkit-date-and-time-value"],class:[".form-input::-webkit-date-and-time-value"],styles:{"min-height":"1.5em"}},{base:["::-webkit-date-and-time-value"],class:[".form-input::-webkit-date-and-time-value"],styles:{"text-align":"inherit"}},{base:["::-webkit-datetime-edit"],class:[".form-input::-webkit-datetime-edit"],styles:{display:"inline-flex"}},{base:["::-webkit-datetime-edit","::-webkit-datetime-edit-year-field","::-webkit-datetime-edit-month-field","::-webkit-datetime-edit-day-field","::-webkit-datetime-edit-hour-field","::-webkit-datetime-edit-minute-field","::-webkit-datetime-edit-second-field","::-webkit-datetime-edit-millisecond-field","::-webkit-datetime-edit-meridiem-field"],class:[".form-input::-webkit-datetime-edit",".form-input::-webkit-datetime-edit-year-field",".form-input::-webkit-datetime-edit-month-field",".form-input::-webkit-datetime-edit-day-field",".form-input::-webkit-datetime-edit-hour-field",".form-input::-webkit-datetime-edit-minute-field",".form-input::-webkit-datetime-edit-second-field",".form-input::-webkit-datetime-edit-millisecond-field",".form-input::-webkit-datetime-edit-meridiem-field"],styles:{"padding-top":0,"padding-bottom":0}},{base:["select"],class:[".form-select"],styles:{"background-image":`url("${n(`","1"))}" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M6 8l4 4 4-4"/>`)}")`,"background-position":`right ${f[2]} center`,"background-repeat":"no-repeat","background-size":"1.5em 1.5em","padding-right":f[10],"print-color-adjust":"exact"}},{base:["[multiple]",'[size]:where(select:not([size="1"]))'],class:['.form-select:where([size]:not([size="1"]))'],styles:{"background-image":"initial","background-position":"initial","background-repeat":"unset","background-size":"initial","padding-right":f[3],"print-color-adjust":"unset"}},{base:["[type='checkbox']","[type='radio']"],class:[".form-checkbox",".form-radio"],styles:{appearance:"none",padding:"0","print-color-adjust":"exact",display:"inline-block","vertical-align":"middle","background-origin":"border-box","user-select":"none","flex-shrink":"0",height:f[4],width:f[4],color:u(a("colors.blue.600",o.blue[600]),"--tw-text-opacity"),"background-color":"#fff","border-color":u(a("colors.gray.500",o.gray[500]),"--tw-border-opacity"),"border-width":c.DEFAULT,"--tw-shadow":"0 0 #0000"}},{base:["[type='checkbox']"],class:[".form-checkbox"],styles:{"border-radius":d.none}},{base:["[type='radio']"],class:[".form-radio"],styles:{"border-radius":"100%"}},{base:["[type='checkbox']:focus","[type='radio']:focus"],class:[".form-checkbox:focus",".form-radio:focus"],styles:{outline:"2px solid transparent","outline-offset":"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"2px","--tw-ring-offset-color":"#fff","--tw-ring-color":u(a("colors.blue.600",o.blue[600]),"--tw-ring-opacity"),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)","box-shadow":"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)"}},{base:["[type='checkbox']:checked","[type='radio']:checked"],class:[".form-checkbox:checked",".form-radio:checked"],styles:{"border-color":"transparent","background-color":"currentColor","background-size":"100% 100%","background-position":"center","background-repeat":"no-repeat"}},{base:["[type='checkbox']:checked"],class:[".form-checkbox:checked"],styles:{"background-image":`url("${n('')}")`,"@media (forced-colors: active) ":{appearance:"auto"}}},{base:["[type='radio']:checked"],class:[".form-radio:checked"],styles:{"background-image":`url("${n('')}")`,"@media (forced-colors: active) ":{appearance:"auto"}}},{base:["[type='checkbox']:checked:hover","[type='checkbox']:checked:focus","[type='radio']:checked:hover","[type='radio']:checked:focus"],class:[".form-checkbox:checked:hover",".form-checkbox:checked:focus",".form-radio:checked:hover",".form-radio:checked:focus"],styles:{"border-color":"transparent","background-color":"currentColor"}},{base:["[type='checkbox']:indeterminate"],class:[".form-checkbox:indeterminate"],styles:{"background-image":`url("${n('')}")`,"border-color":"transparent","background-color":"currentColor","background-size":"100% 100%","background-position":"center","background-repeat":"no-repeat","@media (forced-colors: active) ":{appearance:"auto"}}},{base:["[type='checkbox']:indeterminate:hover","[type='checkbox']:indeterminate:focus"],class:[".form-checkbox:indeterminate:hover",".form-checkbox:indeterminate:focus"],styles:{"border-color":"transparent","background-color":"currentColor"}},{base:["[type='file']"],class:null,styles:{background:"unset","border-color":"inherit","border-width":"0","border-radius":"0",padding:"0","font-size":"unset","line-height":"inherit"}},{base:["[type='file']:focus"],class:null,styles:{outline:["1px solid ButtonText","1px auto -webkit-focus-ring-color"]}}],x=e=>b.map(t=>null===t[e]?null:{[t[e]]:t.styles}).filter(Boolean);g.includes("base")&&t(x("base")),g.includes("class")&&r(x("class"))}});e.exports=p},61883:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(84313).Z)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},25820:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(84313).Z)("CheckCircle2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},64386:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(84313).Z)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},40837:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(84313).Z)("Code2",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]])},23919:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(84313).Z)("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},58153:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(84313).Z)("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]])},52269:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(84313).Z)("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]])},24878:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(84313).Z)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},1627:function(e,t,r){var n=r(23827),a=/\s+/g,i=/%[\dA-F]{2}/g,o=/"/g;function s(e){switch(e){case"%20":return" ";case"%3D":return"=";case"%3A":return":";case"%2F":return"/";default:return e.toLowerCase()}}function l(e){var t;if("string"!=typeof e)throw TypeError("Expected a string, but received "+typeof e);return 65279===e.charCodeAt(0)&&(e=e.slice(1)),"data:image/svg+xml,"+encodeURIComponent((t=e.trim().replace(a," "),Object.keys(n).forEach(function(e){n[e].test(t)&&(t=t.replace(n[e],e))}),t).replace(o,"'")).replace(i,s)}l.toSrcset=function(e){return l(e).replace(/ /g,"%20")},e.exports=l},23827:function(e){e.exports={aqua:/#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,azure:/#f0ffff(ff)?(?!\w)/gi,beige:/#f5f5dc(ff)?(?!\w)/gi,bisque:/#ffe4c4(ff)?(?!\w)/gi,black:/#000000(ff)?(?!\w)|#000(f)?(?!\w)/gi,blue:/#0000ff(ff)?(?!\w)|#00f(f)?(?!\w)/gi,brown:/#a52a2a(ff)?(?!\w)/gi,coral:/#ff7f50(ff)?(?!\w)/gi,cornsilk:/#fff8dc(ff)?(?!\w)/gi,crimson:/#dc143c(ff)?(?!\w)/gi,cyan:/#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,darkblue:/#00008b(ff)?(?!\w)/gi,darkcyan:/#008b8b(ff)?(?!\w)/gi,darkgrey:/#a9a9a9(ff)?(?!\w)/gi,darkred:/#8b0000(ff)?(?!\w)/gi,deeppink:/#ff1493(ff)?(?!\w)/gi,dimgrey:/#696969(ff)?(?!\w)/gi,gold:/#ffd700(ff)?(?!\w)/gi,green:/#008000(ff)?(?!\w)/gi,grey:/#808080(ff)?(?!\w)/gi,honeydew:/#f0fff0(ff)?(?!\w)/gi,hotpink:/#ff69b4(ff)?(?!\w)/gi,indigo:/#4b0082(ff)?(?!\w)/gi,ivory:/#fffff0(ff)?(?!\w)/gi,khaki:/#f0e68c(ff)?(?!\w)/gi,lavender:/#e6e6fa(ff)?(?!\w)/gi,lime:/#00ff00(ff)?(?!\w)|#0f0(f)?(?!\w)/gi,linen:/#faf0e6(ff)?(?!\w)/gi,maroon:/#800000(ff)?(?!\w)/gi,moccasin:/#ffe4b5(ff)?(?!\w)/gi,navy:/#000080(ff)?(?!\w)/gi,oldlace:/#fdf5e6(ff)?(?!\w)/gi,olive:/#808000(ff)?(?!\w)/gi,orange:/#ffa500(ff)?(?!\w)/gi,orchid:/#da70d6(ff)?(?!\w)/gi,peru:/#cd853f(ff)?(?!\w)/gi,pink:/#ffc0cb(ff)?(?!\w)/gi,plum:/#dda0dd(ff)?(?!\w)/gi,purple:/#800080(ff)?(?!\w)/gi,red:/#ff0000(ff)?(?!\w)|#f00(f)?(?!\w)/gi,salmon:/#fa8072(ff)?(?!\w)/gi,seagreen:/#2e8b57(ff)?(?!\w)/gi,seashell:/#fff5ee(ff)?(?!\w)/gi,sienna:/#a0522d(ff)?(?!\w)/gi,silver:/#c0c0c0(ff)?(?!\w)/gi,skyblue:/#87ceeb(ff)?(?!\w)/gi,snow:/#fffafa(ff)?(?!\w)/gi,tan:/#d2b48c(ff)?(?!\w)/gi,teal:/#008080(ff)?(?!\w)/gi,thistle:/#d8bfd8(ff)?(?!\w)/gi,tomato:/#ff6347(ff)?(?!\w)/gi,violet:/#ee82ee(ff)?(?!\w)/gi,wheat:/#f5deb3(ff)?(?!\w)/gi,white:/#ffffff(ff)?(?!\w)|#fff(f)?(?!\w)/gi}},64070:function(e,t,r){"use strict";r.d(t,{default:function(){return a.a}});var n=r(23842),a=r.n(n)},23842:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(11887);r(27573),r(7653);let a=n._(r(58379));function i(e,t){var r;let n={loading:e=>{let{error:t,isLoading:r,pastDelay:n}=e;return null}};"function"==typeof e&&(n.loader=e);let i={...n,...t};return(0,a.default)({...i,modules:null==(r=i.loadableGenerated)?void 0:r.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42972:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return a}});let n=r(20951);function a(e){let{reason:t,children:r}=e;if("undefined"==typeof window)throw new n.BailoutToCSRError(t);return r}},58379:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let n=r(27573),a=r(7653),i=r(42972),o=r(69111);function s(e){return{default:e&&"default"in e?e.default:e}}let l={loader:()=>Promise.resolve(s(()=>null)),loading:null,ssr:!0},f=function(e){let t={...l,...e},r=(0,a.lazy)(()=>t.loader().then(s)),f=t.loading;function c(e){let s=f?(0,n.jsx)(f,{isLoading:!0,pastDelay:!0,error:null}):null,l=t.ssr?(0,n.jsxs)(n.Fragment,{children:["undefined"==typeof window?(0,n.jsx)(o.PreloadCss,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(i.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(a.Suspense,{fallback:s,children:l})}return c.displayName="LoadableComponent",c}},69111:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return i}});let n=r(27573),a=r(92399);function i(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let r=(0,a.getExpectedRequestStore)("next/dynamic css"),i=[];if(r.reactLoadableManifest&&t){let e=r.reactLoadableManifest;for(let r of t){if(!e[r])continue;let t=e[r].files.filter(e=>e.endsWith(".css"));i.push(...t)}}return 0===i.length?null:(0,n.jsx)(n.Fragment,{children:i.map(e=>(0,n.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:r.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}},91731:function(e){var t=String,r=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};e.exports=r(),e.exports.createColors=r},58173:function(e,t,r){let n=r(95006);function a(e){return Object.fromEntries(Object.entries(e).filter(([e])=>"DEFAULT"!==e))}e.exports=n(({addUtilities:e,matchUtilities:t,theme:r})=>{e({"@keyframes enter":r("keyframes.enter"),"@keyframes exit":r("keyframes.exit"),".animate-in":{animationName:"enter",animationDuration:r("animationDuration.DEFAULT"),"--tw-enter-opacity":"initial","--tw-enter-scale":"initial","--tw-enter-rotate":"initial","--tw-enter-translate-x":"initial","--tw-enter-translate-y":"initial"},".animate-out":{animationName:"exit",animationDuration:r("animationDuration.DEFAULT"),"--tw-exit-opacity":"initial","--tw-exit-scale":"initial","--tw-exit-rotate":"initial","--tw-exit-translate-x":"initial","--tw-exit-translate-y":"initial"}}),t({"fade-in":e=>({"--tw-enter-opacity":e}),"fade-out":e=>({"--tw-exit-opacity":e})},{values:r("animationOpacity")}),t({"zoom-in":e=>({"--tw-enter-scale":e}),"zoom-out":e=>({"--tw-exit-scale":e})},{values:r("animationScale")}),t({"spin-in":e=>({"--tw-enter-rotate":e}),"spin-out":e=>({"--tw-exit-rotate":e})},{values:r("animationRotate")}),t({"slide-in-from-top":e=>({"--tw-enter-translate-y":`-${e}`}),"slide-in-from-bottom":e=>({"--tw-enter-translate-y":e}),"slide-in-from-left":e=>({"--tw-enter-translate-x":`-${e}`}),"slide-in-from-right":e=>({"--tw-enter-translate-x":e}),"slide-out-to-top":e=>({"--tw-exit-translate-y":`-${e}`}),"slide-out-to-bottom":e=>({"--tw-exit-translate-y":e}),"slide-out-to-left":e=>({"--tw-exit-translate-x":`-${e}`}),"slide-out-to-right":e=>({"--tw-exit-translate-x":e})},{values:r("animationTranslate")}),t({duration:e=>({animationDuration:e})},{values:a(r("animationDuration"))}),t({delay:e=>({animationDelay:e})},{values:r("animationDelay")}),t({ease:e=>({animationTimingFunction:e})},{values:a(r("animationTimingFunction"))}),e({".running":{animationPlayState:"running"},".paused":{animationPlayState:"paused"}}),t({"fill-mode":e=>({animationFillMode:e})},{values:r("animationFillMode")}),t({direction:e=>({animationDirection:e})},{values:r("animationDirection")}),t({repeat:e=>({animationIterationCount:e})},{values:r("animationRepeat")})},{theme:{extend:{animationDelay:({theme:e})=>({...e("transitionDelay")}),animationDuration:({theme:e})=>({0:"0ms",...e("transitionDuration")}),animationTimingFunction:({theme:e})=>({...e("transitionTimingFunction")}),animationFillMode:{none:"none",forwards:"forwards",backwards:"backwards",both:"both"},animationDirection:{normal:"normal",reverse:"reverse",alternate:"alternate","alternate-reverse":"alternate-reverse"},animationOpacity:({theme:e})=>({DEFAULT:0,...e("opacity")}),animationTranslate:({theme:e})=>({DEFAULT:"100%",...e("translate")}),animationScale:({theme:e})=>({DEFAULT:0,...e("scale")}),animationRotate:({theme:e})=>({DEFAULT:"30deg",...e("rotate")}),animationRepeat:{0:"0",1:"1",infinite:"infinite"},keyframes:{enter:{from:{opacity:"var(--tw-enter-opacity, 1)",transform:"translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))"}},exit:{to:{opacity:"var(--tw-exit-opacity, 1)",transform:"translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))"}}}}}})},7309:function(e,t,r){let n=r(34619);e.exports=(n.__esModule?n:{default:n}).default},59944:function(e,t,r){let n=r(67474);e.exports=(n.__esModule?n:{default:n}).default},34619:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let a=(n=r(33345))&&n.__esModule?n:{default:n};function i({version:e,from:t,to:r}){a.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${r}\`.`,"Update your configuration file to silence this warning."])}let o={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return i({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return i({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return i({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return i({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return i({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},26925:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let a=((n=r(99582))&&n.__esModule?n:{default:n}).default},67474:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let a=r(66121),i=(n=r(28216))&&n.__esModule?n:{default:n},o=(0,a.cloneDeep)(i.default.theme)},66121:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return function e(t){return Array.isArray(t)?t.map(t=>e(t)):"object"==typeof t&&null!==t?Object.fromEntries(Object.entries(t).map(([t,r])=>[t,e(r)])):t}}})},99582:function(e,t){"use strict";function r(e,t){return{handler:e,config:t}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.withOptions=function(e,t=()=>({})){let r=function(r){return{__options:r,handler:e(r),config:t(r)}};return r.__isOptionsFunction=!0,r.__pluginFunction=e,r.__configFunction=t,r};let n=r},33345:function(e,t,r){"use strict";var n,a=r(74859);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{dim:function(){return l},default:function(){return f}});let i=(n=r(91731))&&n.__esModule?n:{default:n},o=new Set;function s(e,t,r){(void 0===a||!a.env.JEST_WORKER_ID)&&(r&&o.has(r)||(r&&o.add(r),console.warn(""),t.forEach(t=>console.warn(e,"-",t))))}function l(e){return i.default.dim(e)}let f={info(e,t){s(i.default.bold(i.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){s(i.default.bold(i.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){s(i.default.bold(i.default.magenta("risk")),...Array.isArray(e)?[e]:[t,e])}}},95006:function(e,t,r){let n=r(26925);e.exports=(n.__esModule?n:{default:n}).default},28216:function(e){e.exports={content:[],presets:[],darkMode:"media",theme:{accentColor:({theme:e})=>({...e("colors"),auto:"auto"}),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>e("brightness"),backdropContrast:({theme:e})=>e("contrast"),backdropGrayscale:({theme:e})=>e("grayscale"),backdropHueRotate:({theme:e})=>e("hueRotate"),backdropInvert:({theme:e})=>e("invert"),backdropOpacity:({theme:e})=>e("opacity"),backdropSaturate:({theme:e})=>e("saturate"),backdropSepia:({theme:e})=>e("sepia"),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({...e("colors"),DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>({...e("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},caretColor:({theme:e})=>e("colors"),colors:({colors:e})=>({inherit:e.inherit,current:e.current,transparent:e.transparent,black:e.black,white:e.white,slate:e.slate,gray:e.gray,zinc:e.zinc,neutral:e.neutral,stone:e.stone,red:e.red,orange:e.orange,amber:e.amber,yellow:e.yellow,lime:e.lime,green:e.green,emerald:e.emerald,teal:e.teal,cyan:e.cyan,sky:e.sky,blue:e.blue,indigo:e.indigo,violet:e.violet,purple:e.purple,fuchsia:e.fuchsia,pink:e.pink,rose:e.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>e("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>({none:"none",...e("colors")}),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%"},grayscale:{0:"0",DEFAULT:"100%"},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},height:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},inset:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),invert:{0:"0",DEFAULT:"100%"},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6"},maxHeight:({theme:e})=>({...e("spacing"),none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:e,breakpoints:t})=>({...e("spacing"),none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...t(e("screens"))}),minHeight:({theme:e})=>({...e("spacing"),full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),minWidth:({theme:e})=>({...e("spacing"),full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:e("colors.blue.500","#3b82f6"),...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},scrollMargin:({theme:e})=>({...e("spacing")}),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:e})=>({...e("spacing")}),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2"},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:e})=>({...e("spacing")}),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),size:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),width:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},plugins:[]}},92999:function(e,t,r){"use strict";r.d(t,{fC:function(){return C},z$:function(){return D}});var n=r(7653),a=r(94492),i=r(99933),o=r(46196),s=r(47178),l=r(1403),f=r(35032),c=r(65622),d=r(78378),u=r(27573),p="Checkbox",[m,g]=(0,i.b)(p),[b,x]=m(p),w=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,name:i,checked:l,defaultChecked:f,required:c,disabled:p,value:m="on",onCheckedChange:g,form:x,...w}=e,[h,y]=n.useState(null),C=(0,a.e)(t,e=>y(e)),D=n.useRef(!1),j=!h||x||!!h.closest("form"),[E=!1,_]=(0,s.T)({prop:l,defaultProp:f,onChange:g}),T=n.useRef(E);return n.useEffect(()=>{let e=null==h?void 0:h.form;if(e){let t=()=>_(T.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[h,_]),(0,u.jsxs)(b,{scope:r,state:E,disabled:p,children:[(0,u.jsx)(d.WV.button,{type:"button",role:"checkbox","aria-checked":v(E)?"mixed":E,"aria-required":c,"data-state":z(E),"data-disabled":p?"":void 0,disabled:p,value:m,...w,ref:C,onKeyDown:(0,o.M)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,o.M)(e.onClick,e=>{_(e=>!!v(e)||!e),j&&(D.current=e.isPropagationStopped(),D.current||e.stopPropagation())})}),j&&(0,u.jsx)(k,{control:h,bubbles:!D.current,name:i,value:m,checked:E,required:c,disabled:p,form:x,style:{transform:"translateX(-100%)"},defaultChecked:!v(f)&&f})]})});w.displayName=p;var h="CheckboxIndicator",y=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:n,...a}=e,i=x(h,r);return(0,u.jsx)(c.z,{present:n||v(i.state)||!0===i.state,children:(0,u.jsx)(d.WV.span,{"data-state":z(i.state),"data-disabled":i.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});y.displayName=h;var k=e=>{let{control:t,checked:r,bubbles:a=!0,defaultChecked:i,...o}=e,s=n.useRef(null),c=(0,l.D)(r),d=(0,f.t)(t);n.useEffect(()=>{let e=s.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(c!==r&&t){let n=new Event("click",{bubbles:a});e.indeterminate=v(r),t.call(e,!v(r)&&r),e.dispatchEvent(n)}},[c,r,a]);let p=n.useRef(!v(r)&&r);return(0,u.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:null!=i?i:p.current,...o,tabIndex:-1,ref:s,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function v(e){return"indeterminate"===e}function z(e){return v(e)?"indeterminate":e?"checked":"unchecked"}var C=w,D=y},32041:function(e,t,r){"use strict";r.d(t,{f:function(){return f}});var n=r(7653),a=r(78378),i=r(27573),o="horizontal",s=["horizontal","vertical"],l=n.forwardRef((e,t)=>{let{decorative:r,orientation:n=o,...l}=e,f=s.includes(n)?n:o;return(0,i.jsx)(a.WV.div,{"data-orientation":f,...r?{role:"none"}:{"aria-orientation":"vertical"===f?f:void 0,role:"separator"},...l,ref:t})});l.displayName="Separator";var f=l},63612:function(e,t,r){"use strict";let n;r.d(t,{Z:function(){return s}});var a={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let i=new Uint8Array(16),o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));var s=function(e,t,r){if(a.randomUUID&&!t&&!e)return a.randomUUID();let s=(e=e||{}).random||(e.rng||function(){if(!n){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");n=crypto.getRandomValues.bind(crypto)}return n(i)})();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=s[e];return t}return function(e,t=0){return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}(s)}}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6784],{4821:function(e,t,r){let n=r(1627),a=r(95006),i=r(59944),o=r(7309),[l,{lineHeight:s}]=i.fontSize.base,{spacing:f,borderWidth:c,borderRadius:d}=i;function u(e,t){return e.replace("",`var(${t}, 1)`)}let p=a.withOptions(function(e={strategy:void 0}){return function({addBase:t,addComponents:r,theme:a}){var i,p;let m;let g=void 0===e.strategy?["base","class"]:[e.strategy],b=[{base:["[type='text']","input:where(:not([type]))","[type='email']","[type='url']","[type='password']","[type='number']","[type='date']","[type='datetime-local']","[type='month']","[type='search']","[type='tel']","[type='time']","[type='week']","[multiple]","textarea","select"],class:[".form-input",".form-textarea",".form-select",".form-multiselect"],styles:{appearance:"none","background-color":"#fff","border-color":u(a("colors.gray.500",o.gray[500]),"--tw-border-opacity"),"border-width":c.DEFAULT,"border-radius":d.none,"padding-top":f[2],"padding-right":f[3],"padding-bottom":f[2],"padding-left":f[3],"font-size":l,"line-height":s,"--tw-shadow":"0 0 #0000","&:focus":{outline:"2px solid transparent","outline-offset":"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":u(a("colors.blue.600",o.blue[600]),"--tw-ring-opacity"),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)","box-shadow":"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)","border-color":u(a("colors.blue.600",o.blue[600]),"--tw-border-opacity")}}},{base:["input::placeholder","textarea::placeholder"],class:[".form-input::placeholder",".form-textarea::placeholder"],styles:{color:u(a("colors.gray.500",o.gray[500]),"--tw-text-opacity"),opacity:"1"}},{base:["::-webkit-datetime-edit-fields-wrapper"],class:[".form-input::-webkit-datetime-edit-fields-wrapper"],styles:{padding:"0"}},{base:["::-webkit-date-and-time-value"],class:[".form-input::-webkit-date-and-time-value"],styles:{"min-height":"1.5em"}},{base:["::-webkit-date-and-time-value"],class:[".form-input::-webkit-date-and-time-value"],styles:{"text-align":"inherit"}},{base:["::-webkit-datetime-edit"],class:[".form-input::-webkit-datetime-edit"],styles:{display:"inline-flex"}},{base:["::-webkit-datetime-edit","::-webkit-datetime-edit-year-field","::-webkit-datetime-edit-month-field","::-webkit-datetime-edit-day-field","::-webkit-datetime-edit-hour-field","::-webkit-datetime-edit-minute-field","::-webkit-datetime-edit-second-field","::-webkit-datetime-edit-millisecond-field","::-webkit-datetime-edit-meridiem-field"],class:[".form-input::-webkit-datetime-edit",".form-input::-webkit-datetime-edit-year-field",".form-input::-webkit-datetime-edit-month-field",".form-input::-webkit-datetime-edit-day-field",".form-input::-webkit-datetime-edit-hour-field",".form-input::-webkit-datetime-edit-minute-field",".form-input::-webkit-datetime-edit-second-field",".form-input::-webkit-datetime-edit-millisecond-field",".form-input::-webkit-datetime-edit-meridiem-field"],styles:{"padding-top":0,"padding-bottom":0}},{base:["select"],class:[".form-select"],styles:{"background-image":`url("${n(`","1"))}" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M6 8l4 4 4-4"/>`)}")`,"background-position":`right ${f[2]} center`,"background-repeat":"no-repeat","background-size":"1.5em 1.5em","padding-right":f[10],"print-color-adjust":"exact"}},{base:["[multiple]",'[size]:where(select:not([size="1"]))'],class:['.form-select:where([size]:not([size="1"]))'],styles:{"background-image":"initial","background-position":"initial","background-repeat":"unset","background-size":"initial","padding-right":f[3],"print-color-adjust":"unset"}},{base:["[type='checkbox']","[type='radio']"],class:[".form-checkbox",".form-radio"],styles:{appearance:"none",padding:"0","print-color-adjust":"exact",display:"inline-block","vertical-align":"middle","background-origin":"border-box","user-select":"none","flex-shrink":"0",height:f[4],width:f[4],color:u(a("colors.blue.600",o.blue[600]),"--tw-text-opacity"),"background-color":"#fff","border-color":u(a("colors.gray.500",o.gray[500]),"--tw-border-opacity"),"border-width":c.DEFAULT,"--tw-shadow":"0 0 #0000"}},{base:["[type='checkbox']"],class:[".form-checkbox"],styles:{"border-radius":d.none}},{base:["[type='radio']"],class:[".form-radio"],styles:{"border-radius":"100%"}},{base:["[type='checkbox']:focus","[type='radio']:focus"],class:[".form-checkbox:focus",".form-radio:focus"],styles:{outline:"2px solid transparent","outline-offset":"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"2px","--tw-ring-offset-color":"#fff","--tw-ring-color":u(a("colors.blue.600",o.blue[600]),"--tw-ring-opacity"),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)","box-shadow":"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)"}},{base:["[type='checkbox']:checked","[type='radio']:checked"],class:[".form-checkbox:checked",".form-radio:checked"],styles:{"border-color":"transparent","background-color":"currentColor","background-size":"100% 100%","background-position":"center","background-repeat":"no-repeat"}},{base:["[type='checkbox']:checked"],class:[".form-checkbox:checked"],styles:{"background-image":`url("${n('')}")`,"@media (forced-colors: active) ":{appearance:"auto"}}},{base:["[type='radio']:checked"],class:[".form-radio:checked"],styles:{"background-image":`url("${n('')}")`,"@media (forced-colors: active) ":{appearance:"auto"}}},{base:["[type='checkbox']:checked:hover","[type='checkbox']:checked:focus","[type='radio']:checked:hover","[type='radio']:checked:focus"],class:[".form-checkbox:checked:hover",".form-checkbox:checked:focus",".form-radio:checked:hover",".form-radio:checked:focus"],styles:{"border-color":"transparent","background-color":"currentColor"}},{base:["[type='checkbox']:indeterminate"],class:[".form-checkbox:indeterminate"],styles:{"background-image":`url("${n('')}")`,"border-color":"transparent","background-color":"currentColor","background-size":"100% 100%","background-position":"center","background-repeat":"no-repeat","@media (forced-colors: active) ":{appearance:"auto"}}},{base:["[type='checkbox']:indeterminate:hover","[type='checkbox']:indeterminate:focus"],class:[".form-checkbox:indeterminate:hover",".form-checkbox:indeterminate:focus"],styles:{"border-color":"transparent","background-color":"currentColor"}},{base:["[type='file']"],class:null,styles:{background:"unset","border-color":"inherit","border-width":"0","border-radius":"0",padding:"0","font-size":"unset","line-height":"inherit"}},{base:["[type='file']:focus"],class:null,styles:{outline:["1px solid ButtonText","1px auto -webkit-focus-ring-color"]}}],x=e=>b.map(t=>null===t[e]?null:{[t[e]]:t.styles}).filter(Boolean);g.includes("base")&&t(x("base")),g.includes("class")&&r(x("class"))}});e.exports=p},61883:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(84313).Z)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},25820:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(84313).Z)("CheckCircle2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},64386:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(84313).Z)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},40837:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(84313).Z)("Code2",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]])},23919:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(84313).Z)("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},58153:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(84313).Z)("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]])},52269:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(84313).Z)("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]])},24878:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(84313).Z)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},1627:function(e,t,r){var n=r(23827),a=/\s+/g,i=/%[\dA-F]{2}/g,o=/"/g;function l(e){switch(e){case"%20":return" ";case"%3D":return"=";case"%3A":return":";case"%2F":return"/";default:return e.toLowerCase()}}function s(e){var t;if("string"!=typeof e)throw TypeError("Expected a string, but received "+typeof e);return 65279===e.charCodeAt(0)&&(e=e.slice(1)),"data:image/svg+xml,"+encodeURIComponent((t=e.trim().replace(a," "),Object.keys(n).forEach(function(e){n[e].test(t)&&(t=t.replace(n[e],e))}),t).replace(o,"'")).replace(i,l)}s.toSrcset=function(e){return s(e).replace(/ /g,"%20")},e.exports=s},23827:function(e){e.exports={aqua:/#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,azure:/#f0ffff(ff)?(?!\w)/gi,beige:/#f5f5dc(ff)?(?!\w)/gi,bisque:/#ffe4c4(ff)?(?!\w)/gi,black:/#000000(ff)?(?!\w)|#000(f)?(?!\w)/gi,blue:/#0000ff(ff)?(?!\w)|#00f(f)?(?!\w)/gi,brown:/#a52a2a(ff)?(?!\w)/gi,coral:/#ff7f50(ff)?(?!\w)/gi,cornsilk:/#fff8dc(ff)?(?!\w)/gi,crimson:/#dc143c(ff)?(?!\w)/gi,cyan:/#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,darkblue:/#00008b(ff)?(?!\w)/gi,darkcyan:/#008b8b(ff)?(?!\w)/gi,darkgrey:/#a9a9a9(ff)?(?!\w)/gi,darkred:/#8b0000(ff)?(?!\w)/gi,deeppink:/#ff1493(ff)?(?!\w)/gi,dimgrey:/#696969(ff)?(?!\w)/gi,gold:/#ffd700(ff)?(?!\w)/gi,green:/#008000(ff)?(?!\w)/gi,grey:/#808080(ff)?(?!\w)/gi,honeydew:/#f0fff0(ff)?(?!\w)/gi,hotpink:/#ff69b4(ff)?(?!\w)/gi,indigo:/#4b0082(ff)?(?!\w)/gi,ivory:/#fffff0(ff)?(?!\w)/gi,khaki:/#f0e68c(ff)?(?!\w)/gi,lavender:/#e6e6fa(ff)?(?!\w)/gi,lime:/#00ff00(ff)?(?!\w)|#0f0(f)?(?!\w)/gi,linen:/#faf0e6(ff)?(?!\w)/gi,maroon:/#800000(ff)?(?!\w)/gi,moccasin:/#ffe4b5(ff)?(?!\w)/gi,navy:/#000080(ff)?(?!\w)/gi,oldlace:/#fdf5e6(ff)?(?!\w)/gi,olive:/#808000(ff)?(?!\w)/gi,orange:/#ffa500(ff)?(?!\w)/gi,orchid:/#da70d6(ff)?(?!\w)/gi,peru:/#cd853f(ff)?(?!\w)/gi,pink:/#ffc0cb(ff)?(?!\w)/gi,plum:/#dda0dd(ff)?(?!\w)/gi,purple:/#800080(ff)?(?!\w)/gi,red:/#ff0000(ff)?(?!\w)|#f00(f)?(?!\w)/gi,salmon:/#fa8072(ff)?(?!\w)/gi,seagreen:/#2e8b57(ff)?(?!\w)/gi,seashell:/#fff5ee(ff)?(?!\w)/gi,sienna:/#a0522d(ff)?(?!\w)/gi,silver:/#c0c0c0(ff)?(?!\w)/gi,skyblue:/#87ceeb(ff)?(?!\w)/gi,snow:/#fffafa(ff)?(?!\w)/gi,tan:/#d2b48c(ff)?(?!\w)/gi,teal:/#008080(ff)?(?!\w)/gi,thistle:/#d8bfd8(ff)?(?!\w)/gi,tomato:/#ff6347(ff)?(?!\w)/gi,violet:/#ee82ee(ff)?(?!\w)/gi,wheat:/#f5deb3(ff)?(?!\w)/gi,white:/#ffffff(ff)?(?!\w)|#fff(f)?(?!\w)/gi}},64070:function(e,t,r){"use strict";r.d(t,{default:function(){return a.a}});var n=r(23842),a=r.n(n)},23842:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(11887);r(27573),r(7653);let a=n._(r(58379));function i(e,t){var r;let n={loading:e=>{let{error:t,isLoading:r,pastDelay:n}=e;return null}};"function"==typeof e&&(n.loader=e);let i={...n,...t};return(0,a.default)({...i,modules:null==(r=i.loadableGenerated)?void 0:r.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42972:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return a}});let n=r(20951);function a(e){let{reason:t,children:r}=e;if("undefined"==typeof window)throw new n.BailoutToCSRError(t);return r}},58379:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let n=r(27573),a=r(7653),i=r(42972),o=r(69111);function l(e){return{default:e&&"default"in e?e.default:e}}let s={loader:()=>Promise.resolve(l(()=>null)),loading:null,ssr:!0},f=function(e){let t={...s,...e},r=(0,a.lazy)(()=>t.loader().then(l)),f=t.loading;function c(e){let l=f?(0,n.jsx)(f,{isLoading:!0,pastDelay:!0,error:null}):null,s=t.ssr?(0,n.jsxs)(n.Fragment,{children:["undefined"==typeof window?(0,n.jsx)(o.PreloadCss,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(i.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(a.Suspense,{fallback:l,children:s})}return c.displayName="LoadableComponent",c}},69111:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return i}});let n=r(27573),a=r(92399);function i(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let r=(0,a.getExpectedRequestStore)("next/dynamic css"),i=[];if(r.reactLoadableManifest&&t){let e=r.reactLoadableManifest;for(let r of t){if(!e[r])continue;let t=e[r].files.filter(e=>e.endsWith(".css"));i.push(...t)}}return 0===i.length?null:(0,n.jsx)(n.Fragment,{children:i.map(e=>(0,n.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:r.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}},91731:function(e){var t=String,r=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};e.exports=r(),e.exports.createColors=r},58173:function(e,t,r){let n=r(95006);function a(e){return Object.fromEntries(Object.entries(e).filter(([e])=>"DEFAULT"!==e))}e.exports=n(({addUtilities:e,matchUtilities:t,theme:r})=>{e({"@keyframes enter":r("keyframes.enter"),"@keyframes exit":r("keyframes.exit"),".animate-in":{animationName:"enter",animationDuration:r("animationDuration.DEFAULT"),"--tw-enter-opacity":"initial","--tw-enter-scale":"initial","--tw-enter-rotate":"initial","--tw-enter-translate-x":"initial","--tw-enter-translate-y":"initial"},".animate-out":{animationName:"exit",animationDuration:r("animationDuration.DEFAULT"),"--tw-exit-opacity":"initial","--tw-exit-scale":"initial","--tw-exit-rotate":"initial","--tw-exit-translate-x":"initial","--tw-exit-translate-y":"initial"}}),t({"fade-in":e=>({"--tw-enter-opacity":e}),"fade-out":e=>({"--tw-exit-opacity":e})},{values:r("animationOpacity")}),t({"zoom-in":e=>({"--tw-enter-scale":e}),"zoom-out":e=>({"--tw-exit-scale":e})},{values:r("animationScale")}),t({"spin-in":e=>({"--tw-enter-rotate":e}),"spin-out":e=>({"--tw-exit-rotate":e})},{values:r("animationRotate")}),t({"slide-in-from-top":e=>({"--tw-enter-translate-y":`-${e}`}),"slide-in-from-bottom":e=>({"--tw-enter-translate-y":e}),"slide-in-from-left":e=>({"--tw-enter-translate-x":`-${e}`}),"slide-in-from-right":e=>({"--tw-enter-translate-x":e}),"slide-out-to-top":e=>({"--tw-exit-translate-y":`-${e}`}),"slide-out-to-bottom":e=>({"--tw-exit-translate-y":e}),"slide-out-to-left":e=>({"--tw-exit-translate-x":`-${e}`}),"slide-out-to-right":e=>({"--tw-exit-translate-x":e})},{values:r("animationTranslate")}),t({duration:e=>({animationDuration:e})},{values:a(r("animationDuration"))}),t({delay:e=>({animationDelay:e})},{values:r("animationDelay")}),t({ease:e=>({animationTimingFunction:e})},{values:a(r("animationTimingFunction"))}),e({".running":{animationPlayState:"running"},".paused":{animationPlayState:"paused"}}),t({"fill-mode":e=>({animationFillMode:e})},{values:r("animationFillMode")}),t({direction:e=>({animationDirection:e})},{values:r("animationDirection")}),t({repeat:e=>({animationIterationCount:e})},{values:r("animationRepeat")})},{theme:{extend:{animationDelay:({theme:e})=>({...e("transitionDelay")}),animationDuration:({theme:e})=>({0:"0ms",...e("transitionDuration")}),animationTimingFunction:({theme:e})=>({...e("transitionTimingFunction")}),animationFillMode:{none:"none",forwards:"forwards",backwards:"backwards",both:"both"},animationDirection:{normal:"normal",reverse:"reverse",alternate:"alternate","alternate-reverse":"alternate-reverse"},animationOpacity:({theme:e})=>({DEFAULT:0,...e("opacity")}),animationTranslate:({theme:e})=>({DEFAULT:"100%",...e("translate")}),animationScale:({theme:e})=>({DEFAULT:0,...e("scale")}),animationRotate:({theme:e})=>({DEFAULT:"30deg",...e("rotate")}),animationRepeat:{0:"0",1:"1",infinite:"infinite"},keyframes:{enter:{from:{opacity:"var(--tw-enter-opacity, 1)",transform:"translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))"}},exit:{to:{opacity:"var(--tw-exit-opacity, 1)",transform:"translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))"}}}}}})},7309:function(e,t,r){let n=r(34619);e.exports=(n.__esModule?n:{default:n}).default},59944:function(e,t,r){let n=r(67474);e.exports=(n.__esModule?n:{default:n}).default},34619:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let a=(n=r(33345))&&n.__esModule?n:{default:n};function i({version:e,from:t,to:r}){a.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${r}\`.`,"Update your configuration file to silence this warning."])}let o={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return i({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return i({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return i({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return i({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return i({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},26925:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let a=((n=r(99582))&&n.__esModule?n:{default:n}).default},67474:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let a=r(66121),i=(n=r(28216))&&n.__esModule?n:{default:n},o=(0,a.cloneDeep)(i.default.theme)},66121:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return function e(t){return Array.isArray(t)?t.map(t=>e(t)):"object"==typeof t&&null!==t?Object.fromEntries(Object.entries(t).map(([t,r])=>[t,e(r)])):t}}})},99582:function(e,t){"use strict";function r(e,t){return{handler:e,config:t}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.withOptions=function(e,t=()=>({})){let r=function(r){return{__options:r,handler:e(r),config:t(r)}};return r.__isOptionsFunction=!0,r.__pluginFunction=e,r.__configFunction=t,r};let n=r},33345:function(e,t,r){"use strict";var n,a=r(74859);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{dim:function(){return s},default:function(){return f}});let i=(n=r(91731))&&n.__esModule?n:{default:n},o=new Set;function l(e,t,r){(void 0===a||!a.env.JEST_WORKER_ID)&&(r&&o.has(r)||(r&&o.add(r),console.warn(""),t.forEach(t=>console.warn(e,"-",t))))}function s(e){return i.default.dim(e)}let f={info(e,t){l(i.default.bold(i.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){l(i.default.bold(i.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){l(i.default.bold(i.default.magenta("risk")),...Array.isArray(e)?[e]:[t,e])}}},95006:function(e,t,r){let n=r(26925);e.exports=(n.__esModule?n:{default:n}).default},28216:function(e){e.exports={content:[],presets:[],darkMode:"media",theme:{accentColor:({theme:e})=>({...e("colors"),auto:"auto"}),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>e("brightness"),backdropContrast:({theme:e})=>e("contrast"),backdropGrayscale:({theme:e})=>e("grayscale"),backdropHueRotate:({theme:e})=>e("hueRotate"),backdropInvert:({theme:e})=>e("invert"),backdropOpacity:({theme:e})=>e("opacity"),backdropSaturate:({theme:e})=>e("saturate"),backdropSepia:({theme:e})=>e("sepia"),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({...e("colors"),DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>({...e("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},caretColor:({theme:e})=>e("colors"),colors:({colors:e})=>({inherit:e.inherit,current:e.current,transparent:e.transparent,black:e.black,white:e.white,slate:e.slate,gray:e.gray,zinc:e.zinc,neutral:e.neutral,stone:e.stone,red:e.red,orange:e.orange,amber:e.amber,yellow:e.yellow,lime:e.lime,green:e.green,emerald:e.emerald,teal:e.teal,cyan:e.cyan,sky:e.sky,blue:e.blue,indigo:e.indigo,violet:e.violet,purple:e.purple,fuchsia:e.fuchsia,pink:e.pink,rose:e.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>e("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>({none:"none",...e("colors")}),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%"},grayscale:{0:"0",DEFAULT:"100%"},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},height:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},inset:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),invert:{0:"0",DEFAULT:"100%"},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6"},maxHeight:({theme:e})=>({...e("spacing"),none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:e,breakpoints:t})=>({...e("spacing"),none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...t(e("screens"))}),minHeight:({theme:e})=>({...e("spacing"),full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),minWidth:({theme:e})=>({...e("spacing"),full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:e("colors.blue.500","#3b82f6"),...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},scrollMargin:({theme:e})=>({...e("spacing")}),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:e})=>({...e("spacing")}),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2"},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:e})=>({...e("spacing")}),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),size:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),width:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},plugins:[]}},61521:function(e,t,r){"use strict";var n=r(7653);let a=n.forwardRef(function(e,t){let{title:r,titleId:a,...i}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":a},i),r?n.createElement("title",{id:a},r):null,n.createElement("path",{fillRule:"evenodd",d:"M7.72 12.53a.75.75 0 0 1 0-1.06l7.5-7.5a.75.75 0 1 1 1.06 1.06L9.31 12l6.97 6.97a.75.75 0 1 1-1.06 1.06l-7.5-7.5Z",clipRule:"evenodd"}))});t.Z=a},50611:function(e,t,r){"use strict";var n=r(7653);let a=n.forwardRef(function(e,t){let{title:r,titleId:a,...i}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":a},i),r?n.createElement("title",{id:a},r):null,n.createElement("path",{fillRule:"evenodd",d:"M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z",clipRule:"evenodd"}))});t.Z=a},92999:function(e,t,r){"use strict";r.d(t,{fC:function(){return C},z$:function(){return D}});var n=r(7653),a=r(94492),i=r(99933),o=r(46196),l=r(47178),s=r(1403),f=r(35032),c=r(65622),d=r(78378),u=r(27573),p="Checkbox",[m,g]=(0,i.b)(p),[b,x]=m(p),w=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,name:i,checked:s,defaultChecked:f,required:c,disabled:p,value:m="on",onCheckedChange:g,form:x,...w}=e,[h,y]=n.useState(null),C=(0,a.e)(t,e=>y(e)),D=n.useRef(!1),E=!h||x||!!h.closest("form"),[j=!1,_]=(0,l.T)({prop:s,defaultProp:f,onChange:g}),O=n.useRef(j);return n.useEffect(()=>{let e=null==h?void 0:h.form;if(e){let t=()=>_(O.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[h,_]),(0,u.jsxs)(b,{scope:r,state:j,disabled:p,children:[(0,u.jsx)(d.WV.button,{type:"button",role:"checkbox","aria-checked":k(j)?"mixed":j,"aria-required":c,"data-state":z(j),"data-disabled":p?"":void 0,disabled:p,value:m,...w,ref:C,onKeyDown:(0,o.M)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,o.M)(e.onClick,e=>{_(e=>!!k(e)||!e),E&&(D.current=e.isPropagationStopped(),D.current||e.stopPropagation())})}),E&&(0,u.jsx)(v,{control:h,bubbles:!D.current,name:i,value:m,checked:j,required:c,disabled:p,form:x,style:{transform:"translateX(-100%)"},defaultChecked:!k(f)&&f})]})});w.displayName=p;var h="CheckboxIndicator",y=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:n,...a}=e,i=x(h,r);return(0,u.jsx)(c.z,{present:n||k(i.state)||!0===i.state,children:(0,u.jsx)(d.WV.span,{"data-state":z(i.state),"data-disabled":i.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});y.displayName=h;var v=e=>{let{control:t,checked:r,bubbles:a=!0,defaultChecked:i,...o}=e,l=n.useRef(null),c=(0,s.D)(r),d=(0,f.t)(t);n.useEffect(()=>{let e=l.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(c!==r&&t){let n=new Event("click",{bubbles:a});e.indeterminate=k(r),t.call(e,!k(r)&&r),e.dispatchEvent(n)}},[c,r,a]);let p=n.useRef(!k(r)&&r);return(0,u.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:null!=i?i:p.current,...o,tabIndex:-1,ref:l,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function k(e){return"indeterminate"===e}function z(e){return k(e)?"indeterminate":e?"checked":"unchecked"}var C=w,D=y},32041:function(e,t,r){"use strict";r.d(t,{f:function(){return f}});var n=r(7653),a=r(78378),i=r(27573),o="horizontal",l=["horizontal","vertical"],s=n.forwardRef((e,t)=>{let{decorative:r,orientation:n=o,...s}=e,f=l.includes(n)?n:o;return(0,i.jsx)(a.WV.div,{"data-orientation":f,...r?{role:"none"}:{"aria-orientation":"vertical"===f?f:void 0,role:"separator"},...s,ref:t})});s.displayName="Separator";var f=s},63612:function(e,t,r){"use strict";let n;r.d(t,{Z:function(){return l}});var a={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let i=new Uint8Array(16),o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));var l=function(e,t,r){if(a.randomUUID&&!t&&!e)return a.randomUUID();let l=(e=e||{}).random||(e.rng||function(){if(!n){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");n=crypto.getRandomValues.bind(crypto)}return n(i)})();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=l[e];return t}return function(e,t=0){return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}(l)}}}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/8374-9a15f780d742dfdf.js b/superduper/rest/out/_next/static/chunks/8374-9805a482625528d9.js similarity index 100% rename from superduper/rest/out/_next/static/chunks/8374-9a15f780d742dfdf.js rename to superduper/rest/out/_next/static/chunks/8374-9805a482625528d9.js diff --git a/superduper/rest/out/_next/static/chunks/8499-130dd8c24577c42c.js b/superduper/rest/out/_next/static/chunks/8499-73a88d4874e76b5d.js similarity index 100% rename from superduper/rest/out/_next/static/chunks/8499-130dd8c24577c42c.js rename to superduper/rest/out/_next/static/chunks/8499-73a88d4874e76b5d.js diff --git a/superduper/rest/out/_next/static/chunks/935-27e91877e2c19e06.js b/superduper/rest/out/_next/static/chunks/935-5d63c47e4bc7ab53.js similarity index 68% rename from superduper/rest/out/_next/static/chunks/935-27e91877e2c19e06.js rename to superduper/rest/out/_next/static/chunks/935-5d63c47e4bc7ab53.js index f98ca8008..36cd0df8c 100644 --- a/superduper/rest/out/_next/static/chunks/935-27e91877e2c19e06.js +++ b/superduper/rest/out/_next/static/chunks/935-5d63c47e4bc7ab53.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[935],{64520:function(e,a,t){t.d(a,{OL:function(){return g},_T:function(){return x},aR:function(){return o},f$:function(){return h},fY:function(){return m},le:function(){return y},vW:function(){return d},xo:function(){return p},yT:function(){return f}});var s=t(27573),r=t(7653),l=t(97112),n=t(18580),i=t(36531);let o=l.fC,d=l.xz,c=l.h_,u=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(l.aV,{className:(0,n.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...r,ref:a})});u.displayName=l.aV.displayName;let x=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsxs)(c,{children:[(0,s.jsx)(u,{}),(0,s.jsx)(l.VY,{ref:a,className:(0,n.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...r})]})});x.displayName=l.VY.displayName;let m=e=>{let{className:a,...t}=e;return(0,s.jsx)("div",{className:(0,n.cn)("flex flex-col space-y-2 text-center sm:text-left",a),...t})};m.displayName="AlertDialogHeader";let p=e=>{let{className:a,...t}=e;return(0,s.jsx)("div",{className:(0,n.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...t})};p.displayName="AlertDialogFooter";let h=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(l.Dx,{ref:a,className:(0,n.cn)("text-lg font-semibold",t),...r})});h.displayName=l.Dx.displayName;let f=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(l.dk,{ref:a,className:(0,n.cn)("text-sm text-muted-foreground",t),...r})});f.displayName=l.dk.displayName;let g=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(l.aU,{ref:a,className:(0,n.cn)((0,i.d)(),t),...r})});g.displayName=l.aU.displayName;let y=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(l.$j,{ref:a,className:(0,n.cn)((0,i.d)({variant:"outline"}),"mt-2 sm:mt-0",t),...r})});y.displayName=l.$j.displayName},12900:function(e,a,t){t.d(a,{C:function(){return i}});var s=t(27573);t(7653);var r=t(85145),l=t(18580);let n=(0,r.j)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function i(e){let{className:a,variant:t,...r}=e;return(0,s.jsx)("div",{className:(0,l.cn)(n({variant:t}),a),...r})}},70007:function(e,a,t){t.d(a,{Z:function(){return A}});var s=t(27573),r=t(81695),l=t(7653),n=t(45034),i=t(73225),o=t(85335),d=t(64544),c=t(12900),u=t(59916),x=t(68683),m=t(95901),p=t(46318),h=t(57293),f=t(94975),g=t(3383),y=t(68602),j=t(78119),v=t(412),N=t(88280),b=t(39e3);function w(){return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("span",{className:"relative inline-block h-8 w-8 overflow-hidden rounded-full bg-gray-100",children:(0,s.jsx)("svg",{className:"h-full w-full text-gray-300",fill:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M24 20.993V24H0v-2.996A14.977 14.977 0 0112.004 15c4.904 0 9.26 2.354 11.996 5.993zM16.002 8.999a4 4 0 11-8 0 4 4 0 018 0z"})})})})}var C=t(64520),k=t(93296),F=t(10822),Z=t(6850),T=t(12799);let S=[{id:1,name:"Support",description:"Contact support for help with your account.",url:"/webui/support",color:"bg-indigo-500",icon:Z.Z},{id:2,name:"Add Templates",description:"Add templates to deploy applications faster.",url:"/webui/add-template",color:"bg-indigo-500",icon:Z.Z},{id:3,name:"Add Application",description:"Add application from the template.",url:"/webui/add-application",color:"bg-indigo-500",icon:Z.Z},{id:4,name:"Execute Query",description:"Execute Query on your data and get the results.",url:"/webui/query",color:"bg-indigo-500",icon:Z.Z},{id:5,name:"View Templates",description:"Show all the templates already added!",url:"/webui/templates",color:"bg-indigo-500",icon:Z.Z},{id:6,name:"View Applications",description:"View all the applications deployed!",url:"/webui/application",color:"bg-indigo-500",icon:Z.Z},{id:8,name:"Documentation of the OSS Project",description:"Explaining what is SuperDuperDB?",url:"https://docs.superduperdb.com",color:"bg-indigo-500",icon:Z.Z}],V=[{name:"Dashboard",href:"/webui",icon:u.Z},{name:"Templates",href:"/webui/templates",icon:x.Z},{name:"Applications",href:"/webui/application",icon:m.Z},{name:"Execute",href:"/webui/query",icon:p.Z}],z=[{name:"Dashboard",href:"/webui"},{name:"Support",href:"/webui/support"}];function D(){for(var e=arguments.length,a=Array(e),t=0;t{let a=a=>{let[t,r]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{r(!0)},[]),t&&(0,s.jsx)(N.Z,{children:(0,s.jsx)(e,{...a})})};return a.displayName="withAuth(".concat(e.displayName||e.name,")"),a})(function(e){let{children:a,activeNavItem:t}=e,u=(0,r.useRouter)(),[x,m]=(0,l.useState)(!1);V.forEach(e=>{e.current=e.href===t});let p=(0,v.v9)(e=>{var a;return null==e?void 0:null===(a=e.userInfo)||void 0===a?void 0:a.userInfoLoadedValues}),N=(0,v.I0)(),[Z,A]=(0,l.useState)(""),[R,E]=(0,l.useState)(!1),L=""===Z?[]:S.filter(e=>{let a=Z.toLowerCase();return e.name.toLowerCase().includes(a)||e.description.toLowerCase().includes(a)});return(0,l.useEffect)(()=>{R?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[R]),(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{children:[(0,s.jsx)(n.u.Root,{show:R,as:l.Fragment,afterLeave:()=>A(""),appear:!0,children:(0,s.jsxs)(i.V,{as:"div",className:"relative z-50",onClose:E,children:[(0,s.jsx)(n.u.Child,{as:l.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-25 transition-opacity"})}),(0,s.jsx)("div",{className:"fixed inset-0 z-1000000000000000000000000 overflow-y-auto p-4 sm:p-6 md:p-20",children:(0,s.jsx)(n.u.Child,{as:l.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,s.jsx)(i.V.Panel,{className:"mx-auto max-w-xl transform divide-y divide-gray-100 overflow-hidden rounded-xl bg-white shadow-2xl ring-1 ring-black ring-opacity-5 transition-all",children:(0,s.jsxs)(o.h,{onChange:e=>window.location=e.url,children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(F.Z,{className:"pointer-events-none absolute left-4 top-3.5 h-5 w-5 text-gray-400","aria-hidden":"true"}),(0,s.jsx)(o.h.Input,{className:"h-12 w-full border-0 bg-transparent pl-11 pr-4 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm",placeholder:"Search...",autoComplete:"off",onChange:e=>A(e.target.value)})]}),L.length>0&&(0,s.jsx)(o.h.Options,{static:!0,className:"max-h-96 scroll-py-3 overflow-y-auto p-3",children:L.map(e=>(0,s.jsx)(o.h.Option,{value:e,className:e=>{let{active:a}=e;return D("flex cursor-default select-none rounded-xl p-3",a&&"bg-gray-100")},children:a=>{let{active:t}=a;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:D("flex h-10 w-10 flex-none items-center justify-center rounded-lg",e.color),children:(0,s.jsx)(e.icon,{className:"h-6 w-6 text-white","aria-hidden":"true"})}),(0,s.jsxs)("div",{className:"ml-4 flex-auto",children:[(0,s.jsx)("p",{className:D("text-sm font-medium",t?"text-gray-900":"text-gray-700"),children:e.name}),(0,s.jsx)("p",{className:D("text-sm",t?"text-gray-700":"text-gray-500"),children:e.description})]})]})}},e.id))}),""!==Z&&0===L.length&&(0,s.jsxs)("div",{className:"px-6 py-14 text-center text-sm sm:px-14",children:[(0,s.jsx)(T.Z,{type:"outline",name:"exclamation-circle",className:"mx-auto h-6 w-6 text-gray-400"}),(0,s.jsx)("p",{className:"mt-4 font-semibold text-gray-900",children:"No results found"}),(0,s.jsx)("p",{className:"mt-2 text-gray-500",children:"No items found for this search term. Please try again."})]})]})})})})]})}),(0,s.jsx)(n.u.Root,{show:x,as:l.Fragment,children:(0,s.jsxs)(i.V,{as:"div",className:"relative z-50 lg:hidden",onClose:m,children:[(0,s.jsx)(n.u.Child,{as:l.Fragment,enter:"transition-opacity ease-linear duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity ease-linear duration-300",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)("div",{className:"fixed inset-0 bg-gray-900/80"})}),(0,s.jsx)("div",{className:"fixed inset-0 flex",children:(0,s.jsx)(n.u.Child,{as:l.Fragment,enter:"transition ease-in-out duration-300 transform",enterFrom:"-translate-x-full",enterTo:"translate-x-0",leave:"transition ease-in-out duration-300 transform",leaveFrom:"translate-x-0",leaveTo:"-translate-x-full",children:(0,s.jsxs)(i.V.Panel,{className:"relative mr-16 flex w-full max-w-xs flex-1",children:[(0,s.jsx)(n.u.Child,{as:l.Fragment,enter:"ease-in-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in-out duration-300",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)("div",{className:"absolute left-full top-0 flex w-16 justify-center pt-5",children:(0,s.jsxs)("button",{type:"button",className:"-m-2.5 p-2.5",onClick:()=>m(!1),children:[(0,s.jsx)("span",{className:"sr-only",children:"Close sidebar"}),(0,s.jsx)(h.Z,{className:"h-6 w-6 text-white","aria-hidden":"true"})]})})}),(0,s.jsxs)("div",{className:"flex grow flex-col gap-y-5 overflow-y-auto bg-white px-6 pb-4",children:[(0,s.jsx)("div",{className:"flex h-16 shrink-0 items-center",children:(0,s.jsx)("a",{href:"/webui",children:(0,s.jsx)("img",{className:"h-12 w-auto",src:"/webui_asset/purple-dark.png",alt:"SuperDuperDB Inc."})})}),(0,s.jsx)("nav",{className:"flex flex-1 flex-col",children:(0,s.jsxs)("ul",{role:"list",className:"flex flex-1 flex-col gap-y-7",children:[(0,s.jsx)("li",{children:(0,s.jsx)("ul",{role:"list",className:"-mx-2 space-y-1",children:V.map(e=>(0,s.jsx)("li",{children:(0,s.jsxs)("a",{href:e.href,className:D(e.current?"bg-gray-100 text-indigo-600":"text-gray-700 hover:text-indigo-600 hover:bg-gray-100","group flex gap-x-3 rounded-md p-2 text-sm leading-6 font-semibold"),children:[(0,s.jsx)(e.icon,{className:D(e.current?"text-indigo-600":"text-gray-400 group-hover:text-indigo-600","h-6 w-6 shrink-0"),"aria-hidden":"true"}),e.name]})},e.name))})}),(0,s.jsxs)("li",{className:"mt-auto",children:[(0,s.jsxs)("a",{href:"/webui/support",className:"group -mx-2 flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6 text-white-200 hover:bg-gray-50 hover:text-indigo",children:[(0,s.jsx)(f.Z,{className:"h-6 w-6 shrink-0 text-white-200 group-hover:text-white","aria-hidden":"true"}),"Contact Support"]}),(0,s.jsx)(c.C,{className:"whitespace-nowrap",children:"latest"})]})]})})]})]})})})]})}),(0,s.jsx)("div",{className:"hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col",children:(0,s.jsxs)("div",{className:"flex grow flex-col gap-y-5 overflow-y-auto border-r border-gray-300 bg-white px-6 pb-4",children:[(0,s.jsx)("div",{className:"flex h-16 shrink-0 items-center",children:(0,s.jsx)("a",{href:"/webui",children:(0,s.jsx)("img",{className:"h-12 w-auto",src:"/webui_asset/purple-dark.png",alt:"SuperDuperDB"})})}),(0,s.jsx)("nav",{className:"flex flex-1 flex-col",children:(0,s.jsxs)("ul",{role:"list",className:"flex flex-1 flex-col gap-y-7",children:[(0,s.jsx)("li",{children:(0,s.jsx)("ul",{role:"list",className:"-mx-2 space-y-1",children:V.map(e=>(0,s.jsx)("li",{children:(0,s.jsxs)("a",{href:e.href,className:D(e.current?"bg-gray-100 text-indigo-600":"text-gray-700 hover:text-indigo-600 hover:bg-gray-100","group flex gap-x-3 rounded-md p-2 text-sm leading-6 font-semibold"),children:[(0,s.jsx)(e.icon,{className:D(e.current?"text-indigo-600":"text-gray-400 group-hover:text-indigo-600","h-6 w-6 shrink-0"),"aria-hidden":"true"}),e.name]})},e.name))})}),(0,s.jsx)("li",{className:"mt-auto",children:(0,s.jsxs)("a",{href:"/webui/support",className:"group -mx-2 flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6 text-gray-700 hover:bg-gray-100 hover:text-indigo-600",children:[(0,s.jsx)(f.Z,{className:"h-6 w-6 shrink-0 text-gray-400 group-hover:text-indigo-600","aria-hidden":"true"}),"Contact Support",(0,s.jsx)(c.C,{className:"whitespace-nowrap",children:"latest"})]})})]})})]})}),(0,s.jsxs)("div",{className:"lg:pl-72",children:[(0,s.jsxs)("div",{className:"sticky top-0 z-40 flex h-16 shrink-0 items-center gap-x-4 border-b border-gray-200 bg-white px-4 shadow-sm sm:gap-x-6 sm:px-6 lg:px-8",children:[(0,s.jsxs)("button",{type:"button",className:"-m-2.5 p-2.5 text-gray-700 lg:hidden",onClick:()=>m(!0),children:[(0,s.jsx)("span",{className:"sr-only",children:"Open sidebar"}),(0,s.jsx)(g.Z,{className:"h-6 w-6","aria-hidden":"true"})]}),(0,s.jsx)("div",{className:"h-6 w-px bg-gray-100 lg:hidden","aria-hidden":"true"}),(0,s.jsxs)("div",{className:"flex flex-1 gap-x-4 self-stretch lg:gap-x-6",children:[(0,s.jsxs)("form",{className:"relative flex flex-1",action:"#",method:"GET",children:[(0,s.jsx)("label",{htmlFor:"search-field",className:"sr-only",children:"Search"}),(0,s.jsx)(y.Z,{className:"pointer-events-none absolute inset-y-0 left-0 h-full w-5 text-gray-400","aria-hidden":"true"}),(0,s.jsx)("input",{onClick:()=>E(!0),disabled:R,autoComplete:"off",id:"search-field",className:"block h-full w-full border-0 py-0 pl-8 pr-0 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm",placeholder:"Search...",type:"search",name:"search"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-x-4 lg:gap-x-6",children:[(0,s.jsx)("button",{type:"button",className:"-m-2.5 p-2.5 text-gray-400 hover:text-gray-500",children:(0,s.jsx)("span",{className:"sr-only",children:"View notifications"})}),(0,s.jsxs)(d.v,{as:"div",className:"relative",children:[(0,s.jsxs)(d.v.Button,{className:"-m-1.5 flex items-center p-1.5",children:[(0,s.jsx)("span",{className:"sr-only",children:"Open user menu"}),(0,s.jsx)(w,{}),(0,s.jsxs)("span",{className:"hidden lg:flex lg:items-center",children:[(0,s.jsx)("span",{className:"ml-4 text-sm font-semibold leading-6 text-gray-900","aria-hidden":"true",children:(null==p?void 0:p.email)?p.email.split("@")[0]:"User"}),(0,s.jsx)(j.Z,{className:"ml-2 h-5 w-5 text-gray-400","aria-hidden":"true"})]})]}),(0,s.jsx)(n.u,{as:l.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,s.jsxs)(d.v.Items,{className:"absolute right-0 z-10 mt-2.5 w-32 origin-top-right rounded-md bg-white py-2 shadow-lg ring-1 ring-gray-900/5 focus:outline-none",children:[z.map(e=>(0,s.jsx)(d.v.Item,{children:a=>{let{active:t}=a;return(0,s.jsx)("a",{href:e.href,className:D(t?"bg-gray-100":"","block px-3 py-1 text-sm leading-6 text-gray-900"),children:e.name})}},e.name)),(0,s.jsx)(d.v.Item,{children:(0,s.jsxs)(C.aR,{children:[(0,s.jsx)(C.vW,{asChild:!0,children:(0,s.jsx)("span",{className:" block px-3 py-1 text-sm leading-6 text-gray-900",children:"Log Out"})}),(0,s.jsxs)(C._T,{children:[(0,s.jsxs)(C.fY,{children:[(0,s.jsx)(C.f$,{children:"Log out of your account"}),(0,s.jsx)(C.yT,{children:"You will be logged out of your account."})]}),(0,s.jsxs)(C.xo,{children:[(0,s.jsx)(C.le,{children:"Cancel"}),(0,s.jsx)(C.OL,{onClick:()=>{N((0,b.v)({token:""})),k.ZP.success("Logged out successfully"),u.push("/webui/login")},children:"Continue"})]})]})]})},"logout")]})})]})]})]})]}),a]})]})})})},74531:function(e,a,t){t.d(a,{C:function(){return r}});var s=t(15909);let r=e=>a=>a({type:s.j,payload:e})}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[935],{64520:function(e,a,t){t.d(a,{OL:function(){return g},_T:function(){return x},aR:function(){return o},f$:function(){return h},fY:function(){return m},le:function(){return y},vW:function(){return d},xo:function(){return p},yT:function(){return f}});var s=t(27573),r=t(7653),l=t(97112),n=t(18580),i=t(36531);let o=l.fC,d=l.xz,c=l.h_,u=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(l.aV,{className:(0,n.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...r,ref:a})});u.displayName=l.aV.displayName;let x=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsxs)(c,{children:[(0,s.jsx)(u,{}),(0,s.jsx)(l.VY,{ref:a,className:(0,n.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...r})]})});x.displayName=l.VY.displayName;let m=e=>{let{className:a,...t}=e;return(0,s.jsx)("div",{className:(0,n.cn)("flex flex-col space-y-2 text-center sm:text-left",a),...t})};m.displayName="AlertDialogHeader";let p=e=>{let{className:a,...t}=e;return(0,s.jsx)("div",{className:(0,n.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...t})};p.displayName="AlertDialogFooter";let h=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(l.Dx,{ref:a,className:(0,n.cn)("text-lg font-semibold",t),...r})});h.displayName=l.Dx.displayName;let f=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(l.dk,{ref:a,className:(0,n.cn)("text-sm text-muted-foreground",t),...r})});f.displayName=l.dk.displayName;let g=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(l.aU,{ref:a,className:(0,n.cn)((0,i.d)(),t),...r})});g.displayName=l.aU.displayName;let y=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(l.$j,{ref:a,className:(0,n.cn)((0,i.d)({variant:"outline"}),"mt-2 sm:mt-0",t),...r})});y.displayName=l.$j.displayName},12900:function(e,a,t){t.d(a,{C:function(){return i}});var s=t(27573);t(7653);var r=t(85145),l=t(18580);let n=(0,r.j)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function i(e){let{className:a,variant:t,...r}=e;return(0,s.jsx)("div",{className:(0,l.cn)(n({variant:t}),a),...r})}},70007:function(e,a,t){t.d(a,{Z:function(){return A}});var s=t(27573),r=t(81695),l=t(7653),n=t(45034),i=t(73225),o=t(85335),d=t(64544),c=t(12900),u=t(59916),x=t(68683),m=t(95901),p=t(46318),h=t(57293),f=t(94975),g=t(3383),y=t(68602),j=t(78119),v=t(412),N=t(88280),b=t(39e3);function w(){return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("span",{className:"relative inline-block h-8 w-8 overflow-hidden rounded-full bg-gray-100",children:(0,s.jsx)("svg",{className:"h-full w-full text-gray-300",fill:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M24 20.993V24H0v-2.996A14.977 14.977 0 0112.004 15c4.904 0 9.26 2.354 11.996 5.993zM16.002 8.999a4 4 0 11-8 0 4 4 0 018 0z"})})})})}var C=t(64520),k=t(93296),F=t(10822),Z=t(6850),T=t(12799);let S=[{id:1,name:"Support",description:"Contact support for help with your account.",url:"/webui/support",color:"bg-indigo-500",icon:Z.Z},{id:2,name:"Add Templates",description:"Add templates to deploy applications faster.",url:"/webui/add-template",color:"bg-indigo-500",icon:Z.Z},{id:3,name:"Add Application",description:"Add application from the template.",url:"/webui/add-application",color:"bg-indigo-500",icon:Z.Z},{id:4,name:"Execute Query",description:"Execute Query on your data and get the results.",url:"/webui/query",color:"bg-indigo-500",icon:Z.Z},{id:5,name:"View Templates",description:"Show all the templates already added!",url:"/webui/templates",color:"bg-indigo-500",icon:Z.Z},{id:6,name:"View Applications",description:"View all the applications deployed!",url:"/webui/application",color:"bg-indigo-500",icon:Z.Z},{id:8,name:"Documentation of the OSS Project",description:"Explaining what is SuperDuperDB?",url:"https://docs.superduperdb.com",color:"bg-indigo-500",icon:Z.Z}],V=[{name:"Dashboard",href:"/webui",icon:u.Z},{name:"Templates",href:"/webui/templates",icon:x.Z},{name:"Applications",href:"/webui/application",icon:m.Z},{name:"Execute",href:"/webui/query",icon:p.Z}],z=[{name:"Dashboard",href:"/webui"},{name:"Support",href:"/webui/support"}];function D(){for(var e=arguments.length,a=Array(e),t=0;t{let a=a=>{let[t,r]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{r(!0)},[]),t&&(0,s.jsx)(N.Z,{children:(0,s.jsx)(e,{...a})})};return a.displayName="withAuth(".concat(e.displayName||e.name,")"),a})(function(e){let{children:a,activeNavItem:t}=e,u=(0,r.useRouter)(),[x,m]=(0,l.useState)(!1);V.forEach(e=>{e.current=e.href===t});let p=(0,v.v9)(e=>{var a;return null==e?void 0:null===(a=e.userInfo)||void 0===a?void 0:a.userInfoLoadedValues}),N=(0,v.I0)(),[Z,A]=(0,l.useState)(""),[R,E]=(0,l.useState)(!1),L=""===Z?[]:S.filter(e=>{let a=Z.toLowerCase();return e.name.toLowerCase().includes(a)||e.description.toLowerCase().includes(a)});return(0,l.useEffect)(()=>{R?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[R]),(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{children:[(0,s.jsx)(n.u.Root,{show:R,as:l.Fragment,afterLeave:()=>A(""),appear:!0,children:(0,s.jsxs)(i.V,{as:"div",className:"relative z-50",onClose:E,children:[(0,s.jsx)(n.u.Child,{as:l.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-25 transition-opacity"})}),(0,s.jsx)("div",{className:"fixed inset-0 z-1000000000000000000000000 overflow-y-auto p-4 sm:p-6 md:p-20",children:(0,s.jsx)(n.u.Child,{as:l.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,s.jsx)(i.V.Panel,{className:"mx-auto max-w-xl transform divide-y divide-gray-100 overflow-hidden rounded-xl bg-white shadow-2xl ring-1 ring-black ring-opacity-5 transition-all",children:(0,s.jsxs)(o.h,{onChange:e=>window.location=e.url,children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(F.Z,{className:"pointer-events-none absolute left-4 top-3.5 h-5 w-5 text-gray-400","aria-hidden":"true"}),(0,s.jsx)(o.h.Input,{className:"h-12 w-full border-0 bg-transparent pl-11 pr-4 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm",placeholder:"Search...",autoComplete:"off",onChange:e=>A(e.target.value)})]}),L.length>0&&(0,s.jsx)(o.h.Options,{static:!0,className:"max-h-96 scroll-py-3 overflow-y-auto p-3",children:L.map(e=>(0,s.jsx)(o.h.Option,{value:e,className:e=>{let{active:a}=e;return D("flex cursor-default select-none rounded-xl p-3",a&&"bg-gray-100")},children:a=>{let{active:t}=a;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:D("flex h-10 w-10 flex-none items-center justify-center rounded-lg",e.color),children:(0,s.jsx)(e.icon,{className:"h-6 w-6 text-white","aria-hidden":"true"})}),(0,s.jsxs)("div",{className:"ml-4 flex-auto",children:[(0,s.jsx)("p",{className:D("text-sm font-medium",t?"text-gray-900":"text-gray-700"),children:e.name}),(0,s.jsx)("p",{className:D("text-sm",t?"text-gray-700":"text-gray-500"),children:e.description})]})]})}},e.id))}),""!==Z&&0===L.length&&(0,s.jsxs)("div",{className:"px-6 py-14 text-center text-sm sm:px-14",children:[(0,s.jsx)(T.Z,{type:"outline",name:"exclamation-circle",className:"mx-auto h-6 w-6 text-gray-400"}),(0,s.jsx)("p",{className:"mt-4 font-semibold text-gray-900",children:"No results found"}),(0,s.jsx)("p",{className:"mt-2 text-gray-500",children:"No items found for this search term. Please try again."})]})]})})})})]})}),(0,s.jsx)(n.u.Root,{show:x,as:l.Fragment,children:(0,s.jsxs)(i.V,{as:"div",className:"relative z-50 lg:hidden",onClose:m,children:[(0,s.jsx)(n.u.Child,{as:l.Fragment,enter:"transition-opacity ease-linear duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity ease-linear duration-300",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)("div",{className:"fixed inset-0 bg-gray-900/80"})}),(0,s.jsx)("div",{className:"fixed inset-0 flex",children:(0,s.jsx)(n.u.Child,{as:l.Fragment,enter:"transition ease-in-out duration-300 transform",enterFrom:"-translate-x-full",enterTo:"translate-x-0",leave:"transition ease-in-out duration-300 transform",leaveFrom:"translate-x-0",leaveTo:"-translate-x-full",children:(0,s.jsxs)(i.V.Panel,{className:"relative mr-16 flex w-full max-w-xs flex-1",children:[(0,s.jsx)(n.u.Child,{as:l.Fragment,enter:"ease-in-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in-out duration-300",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)("div",{className:"absolute left-full top-0 flex w-16 justify-center pt-5",children:(0,s.jsxs)("button",{type:"button",className:"-m-2.5 p-2.5",onClick:()=>m(!1),children:[(0,s.jsx)("span",{className:"sr-only",children:"Close sidebar"}),(0,s.jsx)(h.Z,{className:"h-6 w-6 text-white","aria-hidden":"true"})]})})}),(0,s.jsxs)("div",{className:"flex grow flex-col gap-y-5 overflow-y-auto bg-white px-6 pb-4",children:[(0,s.jsx)("div",{className:"flex h-16 shrink-0 items-center",children:(0,s.jsx)("a",{href:"/webui",children:(0,s.jsx)("img",{className:"h-12 w-auto",src:"/webui_asset/purple-dark.png",alt:"SuperDuperDB Inc."})})}),(0,s.jsx)("nav",{className:"flex flex-1 flex-col",children:(0,s.jsxs)("ul",{role:"list",className:"flex flex-1 flex-col gap-y-7",children:[(0,s.jsx)("li",{children:(0,s.jsx)("ul",{role:"list",className:"-mx-2 space-y-1",children:V.map(e=>(0,s.jsx)("li",{children:(0,s.jsxs)("a",{href:e.href,className:D(e.current?"bg-gray-100 text-indigo-600":"text-gray-700 hover:text-indigo-600 hover:bg-gray-100","group flex gap-x-3 rounded-md p-2 text-sm leading-6 font-semibold"),children:[(0,s.jsx)(e.icon,{className:D(e.current?"text-indigo-600":"text-gray-400 group-hover:text-indigo-600","h-6 w-6 shrink-0"),"aria-hidden":"true"}),e.name]})},e.name))})}),(0,s.jsxs)("li",{className:"mt-auto",children:[(0,s.jsxs)("a",{href:"/webui/support",className:"group -mx-2 flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6 text-white-200 hover:bg-gray-50 hover:text-indigo",children:[(0,s.jsx)(f.Z,{className:"h-6 w-6 shrink-0 text-white-200 group-hover:text-white","aria-hidden":"true"}),"Contact Support"]}),(0,s.jsx)(c.C,{className:"whitespace-nowrap",children:"latest"})]})]})})]})]})})})]})}),(0,s.jsx)("div",{className:"hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col",children:(0,s.jsxs)("div",{className:"flex grow flex-col gap-y-5 overflow-y-auto border-r border-gray-300 bg-white px-6 pb-4",children:[(0,s.jsx)("div",{className:"flex h-16 shrink-0 items-center",children:(0,s.jsx)("a",{href:"/webui",children:(0,s.jsx)("img",{className:"h-12 w-auto",src:"/webui_asset/purple-dark.png",alt:"SuperDuperDB"})})}),(0,s.jsx)("nav",{className:"flex flex-1 flex-col",children:(0,s.jsxs)("ul",{role:"list",className:"flex flex-1 flex-col gap-y-7",children:[(0,s.jsx)("li",{children:(0,s.jsx)("ul",{role:"list",className:"-mx-2 space-y-1",children:V.map(e=>(0,s.jsx)("li",{children:(0,s.jsxs)("a",{href:e.href,className:D(e.current?"bg-gray-100 text-indigo-600":"text-gray-700 hover:text-indigo-600 hover:bg-gray-100","group flex gap-x-3 rounded-md p-2 text-sm leading-6 font-semibold"),children:[(0,s.jsx)(e.icon,{className:D(e.current?"text-indigo-600":"text-gray-400 group-hover:text-indigo-600","h-6 w-6 shrink-0"),"aria-hidden":"true"}),e.name]})},e.name))})}),(0,s.jsx)("li",{className:"mt-auto",children:(0,s.jsxs)("a",{href:"/webui/support",className:"group -mx-2 flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6 text-gray-700 hover:bg-gray-100 hover:text-indigo-600",children:[(0,s.jsx)(f.Z,{className:"h-6 w-6 shrink-0 text-gray-400 group-hover:text-indigo-600","aria-hidden":"true"}),"Contact Support",(0,s.jsx)(c.C,{className:"whitespace-nowrap",variant:"outline",children:"latest"})]})})]})})]})}),(0,s.jsxs)("div",{className:"lg:pl-72",children:[(0,s.jsxs)("div",{className:"sticky top-0 z-40 flex h-16 shrink-0 items-center gap-x-4 border-b border-gray-200 bg-white px-4 shadow-sm sm:gap-x-6 sm:px-6 lg:px-8",children:[(0,s.jsxs)("button",{type:"button",className:"-m-2.5 p-2.5 text-gray-700 lg:hidden",onClick:()=>m(!0),children:[(0,s.jsx)("span",{className:"sr-only",children:"Open sidebar"}),(0,s.jsx)(g.Z,{className:"h-6 w-6","aria-hidden":"true"})]}),(0,s.jsx)("div",{className:"h-6 w-px bg-gray-100 lg:hidden","aria-hidden":"true"}),(0,s.jsxs)("div",{className:"flex flex-1 gap-x-4 self-stretch lg:gap-x-6",children:[(0,s.jsxs)("form",{className:"relative flex flex-1",action:"#",method:"GET",children:[(0,s.jsx)("label",{htmlFor:"search-field",className:"sr-only",children:"Search"}),(0,s.jsx)(y.Z,{className:"pointer-events-none absolute inset-y-0 left-0 h-full w-5 text-gray-400","aria-hidden":"true"}),(0,s.jsx)("input",{onClick:()=>E(!0),disabled:R,autoComplete:"off",id:"search-field",className:"block h-full w-full border-0 py-0 pl-8 pr-0 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm",placeholder:"Search...",type:"search",name:"search"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-x-4 lg:gap-x-6",children:[(0,s.jsx)("button",{type:"button",className:"-m-2.5 p-2.5 text-gray-400 hover:text-gray-500",children:(0,s.jsx)("span",{className:"sr-only",children:"View notifications"})}),(0,s.jsxs)(d.v,{as:"div",className:"relative",children:[(0,s.jsxs)(d.v.Button,{className:"-m-1.5 flex items-center p-1.5",children:[(0,s.jsx)("span",{className:"sr-only",children:"Open user menu"}),(0,s.jsx)(w,{}),(0,s.jsxs)("span",{className:"hidden lg:flex lg:items-center",children:[(0,s.jsx)("span",{className:"ml-4 text-sm font-semibold leading-6 text-gray-900","aria-hidden":"true",children:(null==p?void 0:p.email)?p.email.split("@")[0]:"User"}),(0,s.jsx)(j.Z,{className:"ml-2 h-5 w-5 text-gray-400","aria-hidden":"true"})]})]}),(0,s.jsx)(n.u,{as:l.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,s.jsxs)(d.v.Items,{className:"absolute right-0 z-10 mt-2.5 w-32 origin-top-right rounded-md bg-white py-2 shadow-lg ring-1 ring-gray-900/5 focus:outline-none",children:[z.map(e=>(0,s.jsx)(d.v.Item,{children:a=>{let{active:t}=a;return(0,s.jsx)("a",{href:e.href,className:D(t?"bg-gray-100":"","block px-3 py-1 text-sm leading-6 text-gray-900"),children:e.name})}},e.name)),(0,s.jsx)(d.v.Item,{children:(0,s.jsxs)(C.aR,{children:[(0,s.jsx)(C.vW,{asChild:!0,children:(0,s.jsx)("span",{className:" block px-3 py-1 text-sm leading-6 text-gray-900",children:"Log Out"})}),(0,s.jsxs)(C._T,{children:[(0,s.jsxs)(C.fY,{children:[(0,s.jsx)(C.f$,{children:"Log out of your account"}),(0,s.jsx)(C.yT,{children:"You will be logged out of your account."})]}),(0,s.jsxs)(C.xo,{children:[(0,s.jsx)(C.le,{children:"Cancel"}),(0,s.jsx)(C.OL,{onClick:()=>{N((0,b.v)({token:""})),k.ZP.success("Logged out successfully"),u.push("/webui/login")},children:"Continue"})]})]})]})},"logout")]})})]})]})]})]}),a]})]})})})},74531:function(e,a,t){t.d(a,{C:function(){return r}});var s=t(15909);let r=e=>a=>a({type:s.j,payload:e})}}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/app/layout-30850a3a53b45d77.js b/superduper/rest/out/_next/static/chunks/app/layout-b41151c3428804f2.js similarity index 98% rename from superduper/rest/out/_next/static/chunks/app/layout-30850a3a53b45d77.js rename to superduper/rest/out/_next/static/chunks/app/layout-b41151c3428804f2.js index 3244cbfc5..21d441564 100644 --- a/superduper/rest/out/_next/static/chunks/app/layout-30850a3a53b45d77.js +++ b/superduper/rest/out/_next/static/chunks/app/layout-b41151c3428804f2.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{38132:function(e,t,n){Promise.resolve().then(n.t.bind(n,68230,23)),Promise.resolve().then(n.bind(n,93296)),Promise.resolve().then(n.t.bind(n,24116,23))},68230:function(e,t,n){"use strict";var r=Object.create,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t)=>o(e,"name",{value:t,configurable:!0}),p=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of i(t))c.call(e,a)||a===n||o(e,a,{get:()=>t[a],enumerable:!(r=s(t,a))||r.enumerable});return e},u=(e,t,n)=>(n=null!=e?r(a(e)):{},p(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)),d={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(d,{default:()=>b}),e.exports=p(o({},"__esModule",{value:!0}),d);var f=u(n(63074)),m=u(n(7653)),h=u(n(1257)),g=l(e=>{let{color:t,height:n,showSpinner:r,crawl:o,crawlSpeed:s,initialPosition:i,easing:a,speed:c,shadow:p,template:u,zIndex:d=1600,showAtBottom:f=!1}=e,g=null!=t?t:"#29d",b=p||void 0===p?p?"box-shadow:".concat(p):"box-shadow:0 0 10px ".concat(g,",0 0 5px ").concat(g):"",v=m.createElement("style",null,"#nprogress{pointer-events:none}#nprogress .bar{background:".concat(g,";position:fixed;z-index:").concat(d,";").concat(f?"bottom: 0;":"top: 0;","left:0;width:100%;height:").concat(null!=n?n:3,"px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;").concat(b,";opacity:1;-webkit-transform:rotate(3deg) translate(0px,-4px);-ms-transform:rotate(3deg) translate(0px,-4px);transform:rotate(3deg) translate(0px,-4px)}#nprogress .spinner{display:block;position:fixed;z-index:").concat(d,";").concat(f?"bottom: 15px;":"top: 15px;","right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border:2px solid transparent;border-top-color:").concat(g,";border-left-color:").concat(g,";border-radius:50%;-webkit-animation:nprogress-spinner 400ms linear infinite;animation:nprogress-spinner 400ms linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .bar,.nprogress-custom-parent #nprogress .spinner{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes nprogress-spinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}")),y=l(e=>new URL(e,window.location.href).href,"toAbsoluteURL"),w=l((e,t)=>{let n=new URL(y(e)),r=new URL(y(t));return n.href.split("#")[0]===r.href.split("#")[0]},"isHashAnchor"),k=l((e,t)=>{let n=new URL(y(e)),r=new URL(y(t));return n.hostname.replace(/^www\./,"")===r.hostname.replace(/^www\./,"")},"isSameHostName");return m.useEffect(()=>{let e,t;function n(e,t){let n=new URL(e),r=new URL(t);if(n.hostname===r.hostname&&n.pathname===r.pathname&&n.search===r.search){let e=n.hash,t=r.hash;return e!==t&&n.href.replace(e,"")===r.href.replace(t,"")}return!1}h.configure({showSpinner:null==r||r,trickle:null==o||o,trickleSpeed:null!=s?s:200,minimum:null!=i?i:.08,easing:null!=a?a:"ease",speed:null!=c?c:200,template:null!=u?u:'
'}),l(n,"isAnchorOfCurrentUrl");var p,d,f=document.querySelectorAll("html");let m=l(()=>f.forEach(e=>e.classList.remove("nprogress-busy")),"removeNProgressClass");function g(e){for(;e&&"a"!==e.tagName.toLowerCase();)e=e.parentElement;return e}function b(e){try{let t=e.target,r=g(t),o=null==r?void 0:r.href;if(o){let t=window.location.href,s="_blank"===r.target,i=["tel:","mailto:","sms:","blob:","download:"].some(e=>o.startsWith(e)),a=n(t,o);if(!k(window.location.href,r.href))return;o===t||a||s||i||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||w(window.location.href,r.href)||!y(r.href).startsWith("http")?(h.start(),h.done(),m()):h.start()}}catch(e){h.start(),h.done()}}function v(){h.done(),m()}function S(){h.done()}return l(g,"findClosestAnchor"),l(b,"handleClick"),e=(p=window.history).pushState,p.pushState=function(){for(var t=arguments.length,n=Array(t),r=0;r{document.removeEventListener("click",b),window.removeEventListener("pagehide",v),window.removeEventListener("popstate",S)}},[]),v},"NextTopLoader"),b=g;g.propTypes={color:f.string,height:f.number,showSpinner:f.bool,crawl:f.bool,crawlSpeed:f.number,initialPosition:f.number,easing:f.string,speed:f.number,template:f.string,shadow:f.oneOfType([f.string,f.bool]),zIndex:f.number,showAtBottom:f.bool}},1257:function(e,t,n){var r,o;void 0!==(o="function"==typeof(r=function(){var e,t,n,r={};r.version="0.2.0";var o=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};function s(e,t,n){return en?n:e}r.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(o[t]=n);return this},r.status=null,r.set=function(e){var t=r.isStarted();e=s(e,o.minimum,1),r.status=1===e?null:e;var n=r.render(!t),c=n.querySelector(o.barSelector),l=o.speed,p=o.easing;return n.offsetWidth,i(function(t){var s,i;""===o.positionUsing&&(o.positionUsing=r.getPositioningCSS()),a(c,(s=e,(i="translate3d"===o.positionUsing?{transform:"translate3d("+(-1+s)*100+"%,0,0)"}:"translate"===o.positionUsing?{transform:"translate("+(-1+s)*100+"%,0)"}:{"margin-left":(-1+s)*100+"%"}).transition="all "+l+"ms "+p,i)),1===e?(a(n,{transition:"none",opacity:1}),n.offsetWidth,setTimeout(function(){a(n,{transition:"all "+l+"ms linear",opacity:0}),setTimeout(function(){r.remove(),t()},l)},l)):setTimeout(t,l)}),this},r.isStarted=function(){return"number"==typeof r.status},r.start=function(){r.status||r.set(0);var e=function(){setTimeout(function(){r.status&&(r.trickle(),e())},o.trickleSpeed)};return o.trickle&&e(),this},r.done=function(e){return e||r.status?r.inc(.3+.5*Math.random()).set(1):this},r.inc=function(e){var t=r.status;return t?("number"!=typeof e&&(e=(1-t)*s(Math.random()*t,.1,.95)),t=s(t+e,0,.994),r.set(t)):r.start()},r.trickle=function(){return r.inc(Math.random()*o.trickleRate)},e=0,t=0,r.promise=function(n){return n&&"resolved"!==n.state()&&(0===t&&r.start(),e++,t++,n.always(function(){0==--t?(e=0,r.done()):r.set((e-t)/e)})),this},r.render=function(e){if(r.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=o.template;var n,s=t.querySelector(o.barSelector),i=e?"-100":(-1+(r.status||0))*100,c=document.querySelector(o.parent);return a(s,{transition:"all 0 linear",transform:"translate3d("+i+"%,0,0)"}),!o.showSpinner&&(n=t.querySelector(o.spinnerSelector))&&d(n),c!=document.body&&l(c,"nprogress-custom-parent"),c.appendChild(t),t},r.remove=function(){p(document.documentElement,"nprogress-busy"),p(document.querySelector(o.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&d(e)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective" in e?"translate3d":t+"Transform" in e?"translate":"margin"};var i=(n=[],function(e){n.push(e),1==n.length&&function e(){var t=n.shift();t&&t(e)}()}),a=function(){var e=["Webkit","O","Moz","ms"],t={};function n(n,r,o){var s;r=t[s=(s=r).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[s]=function(t){var n=document.body.style;if(t in n)return t;for(var r,o=e.length,s=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((r=e[o]+s)in n)return r;return t}(s)),n.style[r]=o}return function(e,t){var r,o,s=arguments;if(2==s.length)for(r in t)void 0!==(o=t[r])&&t.hasOwnProperty(r)&&n(e,r,o);else n(e,s[1],s[2])}}();function c(e,t){return("string"==typeof e?e:u(e)).indexOf(" "+t+" ")>=0}function l(e,t){var n=u(e),r=n+t;c(n,t)||(e.className=r.substring(1))}function p(e,t){var n,r=u(e);c(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function u(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function d(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return r})?r.call(t,n,t,e):r)&&(e.exports=o)},30924:function(e,t,n){"use strict";var r=n(15979);function o(){}function s(){}s.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,s,i){if(i!==r){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:o};return n.PropTypes=n,n}},63074:function(e,t,n){e.exports=n(30924)()},15979:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},24116:function(){}},function(e){e.O(0,[1671,3296,1293,1528,1744],function(){return e(e.s=38132)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{65781:function(e,t,n){Promise.resolve().then(n.t.bind(n,68230,23)),Promise.resolve().then(n.bind(n,93296)),Promise.resolve().then(n.t.bind(n,24116,23))},68230:function(e,t,n){"use strict";var r=Object.create,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t)=>o(e,"name",{value:t,configurable:!0}),p=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of i(t))c.call(e,a)||a===n||o(e,a,{get:()=>t[a],enumerable:!(r=s(t,a))||r.enumerable});return e},u=(e,t,n)=>(n=null!=e?r(a(e)):{},p(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)),d={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(d,{default:()=>b}),e.exports=p(o({},"__esModule",{value:!0}),d);var f=u(n(63074)),m=u(n(7653)),h=u(n(1257)),g=l(e=>{let{color:t,height:n,showSpinner:r,crawl:o,crawlSpeed:s,initialPosition:i,easing:a,speed:c,shadow:p,template:u,zIndex:d=1600,showAtBottom:f=!1}=e,g=null!=t?t:"#29d",b=p||void 0===p?p?"box-shadow:".concat(p):"box-shadow:0 0 10px ".concat(g,",0 0 5px ").concat(g):"",v=m.createElement("style",null,"#nprogress{pointer-events:none}#nprogress .bar{background:".concat(g,";position:fixed;z-index:").concat(d,";").concat(f?"bottom: 0;":"top: 0;","left:0;width:100%;height:").concat(null!=n?n:3,"px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;").concat(b,";opacity:1;-webkit-transform:rotate(3deg) translate(0px,-4px);-ms-transform:rotate(3deg) translate(0px,-4px);transform:rotate(3deg) translate(0px,-4px)}#nprogress .spinner{display:block;position:fixed;z-index:").concat(d,";").concat(f?"bottom: 15px;":"top: 15px;","right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border:2px solid transparent;border-top-color:").concat(g,";border-left-color:").concat(g,";border-radius:50%;-webkit-animation:nprogress-spinner 400ms linear infinite;animation:nprogress-spinner 400ms linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .bar,.nprogress-custom-parent #nprogress .spinner{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes nprogress-spinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}")),y=l(e=>new URL(e,window.location.href).href,"toAbsoluteURL"),w=l((e,t)=>{let n=new URL(y(e)),r=new URL(y(t));return n.href.split("#")[0]===r.href.split("#")[0]},"isHashAnchor"),k=l((e,t)=>{let n=new URL(y(e)),r=new URL(y(t));return n.hostname.replace(/^www\./,"")===r.hostname.replace(/^www\./,"")},"isSameHostName");return m.useEffect(()=>{let e,t;function n(e,t){let n=new URL(e),r=new URL(t);if(n.hostname===r.hostname&&n.pathname===r.pathname&&n.search===r.search){let e=n.hash,t=r.hash;return e!==t&&n.href.replace(e,"")===r.href.replace(t,"")}return!1}h.configure({showSpinner:null==r||r,trickle:null==o||o,trickleSpeed:null!=s?s:200,minimum:null!=i?i:.08,easing:null!=a?a:"ease",speed:null!=c?c:200,template:null!=u?u:'
'}),l(n,"isAnchorOfCurrentUrl");var p,d,f=document.querySelectorAll("html");let m=l(()=>f.forEach(e=>e.classList.remove("nprogress-busy")),"removeNProgressClass");function g(e){for(;e&&"a"!==e.tagName.toLowerCase();)e=e.parentElement;return e}function b(e){try{let t=e.target,r=g(t),o=null==r?void 0:r.href;if(o){let t=window.location.href,s="_blank"===r.target,i=["tel:","mailto:","sms:","blob:","download:"].some(e=>o.startsWith(e)),a=n(t,o);if(!k(window.location.href,r.href))return;o===t||a||s||i||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||w(window.location.href,r.href)||!y(r.href).startsWith("http")?(h.start(),h.done(),m()):h.start()}}catch(e){h.start(),h.done()}}function v(){h.done(),m()}function S(){h.done()}return l(g,"findClosestAnchor"),l(b,"handleClick"),e=(p=window.history).pushState,p.pushState=function(){for(var t=arguments.length,n=Array(t),r=0;r{document.removeEventListener("click",b),window.removeEventListener("pagehide",v),window.removeEventListener("popstate",S)}},[]),v},"NextTopLoader"),b=g;g.propTypes={color:f.string,height:f.number,showSpinner:f.bool,crawl:f.bool,crawlSpeed:f.number,initialPosition:f.number,easing:f.string,speed:f.number,template:f.string,shadow:f.oneOfType([f.string,f.bool]),zIndex:f.number,showAtBottom:f.bool}},1257:function(e,t,n){var r,o;void 0!==(o="function"==typeof(r=function(){var e,t,n,r={};r.version="0.2.0";var o=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};function s(e,t,n){return en?n:e}r.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(o[t]=n);return this},r.status=null,r.set=function(e){var t=r.isStarted();e=s(e,o.minimum,1),r.status=1===e?null:e;var n=r.render(!t),c=n.querySelector(o.barSelector),l=o.speed,p=o.easing;return n.offsetWidth,i(function(t){var s,i;""===o.positionUsing&&(o.positionUsing=r.getPositioningCSS()),a(c,(s=e,(i="translate3d"===o.positionUsing?{transform:"translate3d("+(-1+s)*100+"%,0,0)"}:"translate"===o.positionUsing?{transform:"translate("+(-1+s)*100+"%,0)"}:{"margin-left":(-1+s)*100+"%"}).transition="all "+l+"ms "+p,i)),1===e?(a(n,{transition:"none",opacity:1}),n.offsetWidth,setTimeout(function(){a(n,{transition:"all "+l+"ms linear",opacity:0}),setTimeout(function(){r.remove(),t()},l)},l)):setTimeout(t,l)}),this},r.isStarted=function(){return"number"==typeof r.status},r.start=function(){r.status||r.set(0);var e=function(){setTimeout(function(){r.status&&(r.trickle(),e())},o.trickleSpeed)};return o.trickle&&e(),this},r.done=function(e){return e||r.status?r.inc(.3+.5*Math.random()).set(1):this},r.inc=function(e){var t=r.status;return t?("number"!=typeof e&&(e=(1-t)*s(Math.random()*t,.1,.95)),t=s(t+e,0,.994),r.set(t)):r.start()},r.trickle=function(){return r.inc(Math.random()*o.trickleRate)},e=0,t=0,r.promise=function(n){return n&&"resolved"!==n.state()&&(0===t&&r.start(),e++,t++,n.always(function(){0==--t?(e=0,r.done()):r.set((e-t)/e)})),this},r.render=function(e){if(r.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=o.template;var n,s=t.querySelector(o.barSelector),i=e?"-100":(-1+(r.status||0))*100,c=document.querySelector(o.parent);return a(s,{transition:"all 0 linear",transform:"translate3d("+i+"%,0,0)"}),!o.showSpinner&&(n=t.querySelector(o.spinnerSelector))&&d(n),c!=document.body&&l(c,"nprogress-custom-parent"),c.appendChild(t),t},r.remove=function(){p(document.documentElement,"nprogress-busy"),p(document.querySelector(o.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&d(e)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective" in e?"translate3d":t+"Transform" in e?"translate":"margin"};var i=(n=[],function(e){n.push(e),1==n.length&&function e(){var t=n.shift();t&&t(e)}()}),a=function(){var e=["Webkit","O","Moz","ms"],t={};function n(n,r,o){var s;r=t[s=(s=r).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[s]=function(t){var n=document.body.style;if(t in n)return t;for(var r,o=e.length,s=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((r=e[o]+s)in n)return r;return t}(s)),n.style[r]=o}return function(e,t){var r,o,s=arguments;if(2==s.length)for(r in t)void 0!==(o=t[r])&&t.hasOwnProperty(r)&&n(e,r,o);else n(e,s[1],s[2])}}();function c(e,t){return("string"==typeof e?e:u(e)).indexOf(" "+t+" ")>=0}function l(e,t){var n=u(e),r=n+t;c(n,t)||(e.className=r.substring(1))}function p(e,t){var n,r=u(e);c(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function u(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function d(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return r})?r.call(t,n,t,e):r)&&(e.exports=o)},30924:function(e,t,n){"use strict";var r=n(15979);function o(){}function s(){}s.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,s,i){if(i!==r){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:o};return n.PropTypes=n,n}},63074:function(e,t,n){e.exports=n(30924)()},15979:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},24116:function(){}},function(e){e.O(0,[1671,3296,1293,1528,1744],function(){return e(e.s=65781)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/app/not-found-b4ac503461e8ae13.js b/superduper/rest/out/_next/static/chunks/app/not-found-85b8fc327df53b65.js similarity index 58% rename from superduper/rest/out/_next/static/chunks/app/not-found-b4ac503461e8ae13.js rename to superduper/rest/out/_next/static/chunks/app/not-found-85b8fc327df53b65.js index 0973efd37..e7bf83b6a 100644 --- a/superduper/rest/out/_next/static/chunks/app/not-found-b4ac503461e8ae13.js +++ b/superduper/rest/out/_next/static/chunks/app/not-found-85b8fc327df53b65.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9160],{61146:function(n,e,u){Promise.resolve().then(u.t.bind(u,16340,23))}},function(n){n.O(0,[6340,1293,1528,1744],function(){return n(n.s=61146)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9160],{58458:function(n,e,u){Promise.resolve().then(u.t.bind(u,16340,23))}},function(n){n.O(0,[6340,1293,1528,1744],function(){return n(n.s=58458)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/app/page-82d10c02e8dbd8e2.js b/superduper/rest/out/_next/static/chunks/app/page-82d10c02e8dbd8e2.js new file mode 100644 index 000000000..4b0a8dd57 --- /dev/null +++ b/superduper/rest/out/_next/static/chunks/app/page-82d10c02e8dbd8e2.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1931],{7364:function(e,n,s){Promise.resolve().then(s.bind(s,39480))},39480:function(e,n,s){"use strict";s.r(n);var i=s(27573),t=s(88280);s(39838);var u=s(70007),r=s(4867),l=s(87882),o=s(74859);n.default=(0,r.N)(function(){return console.log("\uD83E\uDEE1 API Server is running at: ",o.env.NEXT_PUBLIC_API||"(undefined - please set NEXT_PUBLIC_API in your environment)"),console.log("\uD83E\uDEE1 Reverse proxy is running at: ",o.env.NEXT_PUBLIC_REVERSE_PROXY||"(undefined - please set NEXT_PUBLIC_REVERSE_PROXY in your environment)"),console.log("\uD83E\uDEE1 REST API endpoint:","http://localhost:8000"),(0,i.jsx)(t.Z,{children:(0,i.jsx)(u.Z,{activeNavItem:"/webui",children:(0,i.jsx)("main",{className:"py-0",children:(0,i.jsx)("div",{className:"px-4 sm:px-6 lg:px-8",children:(0,i.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,i.jsx)(l.Z,{})})})})})})})},4867:function(e,n,s){"use strict";s.d(n,{N:function(){return i}}),s(27573),s(81695),s(7653),s(412),s(88280),s(39e3),s(74531),s(74859);let i=e=>(e.displayName||e.name,e)}},function(e){e.O(0,[5458,7441,3296,8320,8374,3908,7653,7050,6340,4112,790,8307,9115,3098,7635,5554,3696,935,1826,8238,5865,5141,1293,1528,1744],function(){return e(e.s=7364)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/app/page-ee97a48916544a1b.js b/superduper/rest/out/_next/static/chunks/app/page-ee97a48916544a1b.js deleted file mode 100644 index 1eec864d5..000000000 --- a/superduper/rest/out/_next/static/chunks/app/page-ee97a48916544a1b.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1931],{69943:function(e,n,s){Promise.resolve().then(s.bind(s,39480))},39480:function(e,n,s){"use strict";s.r(n);var i=s(27573),t=s(88280);s(61259);var u=s(70007),r=s(4867),l=s(87882),o=s(74859);n.default=(0,r.N)(function(){return console.log("\uD83E\uDEE1 API Server is running at: ",o.env.NEXT_PUBLIC_API||"(undefined - please set NEXT_PUBLIC_API in your environment)"),console.log("\uD83E\uDEE1 Reverse proxy is running at: ","(undefined - please set NEXT_PUBLIC_REVERSE_PROXY in your environment)"),console.log("\uD83E\uDEE1 REST API endpoint:","http://localhost:8000"),(0,i.jsx)(t.Z,{children:(0,i.jsx)(u.Z,{activeNavItem:"/webui",children:(0,i.jsx)("main",{className:"py-0",children:(0,i.jsx)("div",{className:"px-4 sm:px-6 lg:px-8",children:(0,i.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,i.jsx)(l.Z,{})})})})})})})},4867:function(e,n,s){"use strict";s.d(n,{N:function(){return i}}),s(27573),s(81695),s(7653),s(412),s(88280),s(39e3),s(74531),s(74859);let i=e=>(e.displayName||e.name,e)}},function(e){e.O(0,[5458,7441,3296,8320,8374,3908,7653,7050,6340,4112,790,8307,9115,3098,7635,9730,3696,935,1826,8238,4426,6280,1293,1528,1744],function(){return e(e.s=69943)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/app/webui/add-application/page-42d81c5098ebe15d.js b/superduper/rest/out/_next/static/chunks/app/webui/add-application/page-42d81c5098ebe15d.js deleted file mode 100644 index aefc9b5a2..000000000 --- a/superduper/rest/out/_next/static/chunks/app/webui/add-application/page-42d81c5098ebe15d.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5834],{69386:function(e,l,i){Promise.resolve().then(i.bind(i,7038))},7038:function(e,l,i){"use strict";i.r(l),i.d(l,{default:function(){return ek}});var a=i(27573),o=i(7653),n=i(13908),s=i(63052),r=i(97747),t=i(81695),d=i(22392);i(40020),i(19234),i(83346);var c=i(88146),v=i(93296),u=i(412),m=i(87191),h=i(24776),p=i(36531),x=i(7109),b=i(63612),f=i(74859);function g(e){let{simple:l=!1}=e,i=(0,t.useSearchParams)(),n=i.get("identifier"),s=i.get("type_id");(0,u.v9)(e=>e.environment.environmentLoadedValues);let r=(0,u.v9)(e=>{var l;return null==e?void 0:null===(l=e.userInfo)||void 0===l?void 0:l.userInfoLoadedValues});(0,t.useRouter)();let d=(0,u.v9)(e=>e.stack.stackUpdateByIndex),g=(0,u.v9)(e=>e.stack.submittedStack),[N,j]=(0,o.useState)(null),[y,_]=(0,o.useState)(!1),[w,k]=(0,o.useState)(!1),[S,A]=(0,o.useState)(null);function Z(){if(!g){v.ZP.error("Error adding application",{id:"form-error"});return}let e=(0,b.Z)();v.ZP.loading("Adding application...",{id:"adding"});try{fetch("".concat("".concat("http://localhost:8000","/db/apply?id=").concat(e)),{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:(0,x.Z)(r),superduper_reverse_proxy:"http://localhost:8000"},body:JSON.stringify(g,null," ")}).then(e=>{if(!e.ok){if(500===e.status)return e.json().then(e=>{throw console.log("Error response data:",e),A(e),Error("Server error")});throw Error("Network response was not ok")}return e.json()}).then(l=>{v.ZP.dismiss("adding"),console.log("Data from:",l),v.ZP.success("Application added successfully"),setTimeout(()=>{w||("true"===f.env.NEXT_PUBLIC_SNOWFLAKE?window.location.assign("/webui/add-application"):window.location.assign("/webui/add-application?id=".concat(e)))},1e3)}).catch(e=>{k(!0),console.error("Error fetching API data",e),v.ZP.error("Error adding application",{id:"form-error"}),v.ZP.dismiss("adding")})}catch(e){v.ZP.dismiss("adding"),k(!0),v.ZP.error("Error adding application",{id:"form-error"})}}return d?l?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{onClick:e=>{e.preventDefault,_(!0)},className:"rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:s&&n?"Apply Changes":"Add Application"}),(0,a.jsx)(h.Vq,{open:y,onOpenChange:()=>_(!1),children:(0,a.jsxs)(h.cZ,{className:"sm:max-w-[768px]",children:[(0,a.jsxs)(h.fK,{children:[(0,a.jsx)(h.$N,{children:"Review the application"}),(0,a.jsx)(h.Be,{children:"This will be added to the database. Please review the application before confirming."})]}),g?(0,a.jsx)(m.Z,{data:g}):"Preparing application...",(0,a.jsx)(h.cN,{children:(0,a.jsx)(p.z,{type:"submit",onClick:()=>{Z()},children:"Save changes"})})]})}),(0,a.jsx)(h.Vq,{open:w,onOpenChange:e=>{e||(_(!1),k(!1))},children:(0,a.jsxs)(h.cZ,{className:"sm:max-w-[768px]",children:[(0,a.jsxs)(h.fK,{children:[(0,a.jsx)(h.$N,{children:"Failed Adding Application"}),(0,a.jsx)(h.Be,{children:"Please review the error message and try again."})]}),(0,a.jsx)("strong",{children:"Error Message"}),S?(0,a.jsx)(m.Z,{data:S,height:100}):"Loading ...",(0,a.jsx)("strong",{children:"Submitted"}),g?(0,a.jsx)(m.Z,{data:g,height:"150px"}):"Preparing application...",(0,a.jsxs)(h.cN,{children:[(0,a.jsx)(p.z,{onClick:()=>{Z()},children:"Retry now"}),(0,a.jsx)(p.z,{variant:"secondary",onClick:()=>{_(!1),k(!1)},children:"Close"})]})]})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"mt-6 flex items-center justify-end gap-x-6",children:[(0,a.jsx)(c.default,{href:"/webui/add-application",children:(0,a.jsx)("button",{type:"button",className:"text-sm font-semibold leading-6 text-gray-900",children:"Cancel"})}),(0,a.jsx)("button",{onClick:e=>{e.preventDefault,_(!0)},className:"rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:s&&n?"Apply Changes":"Add Application"})]}),(0,a.jsx)("br",{}),(0,a.jsx)(h.Vq,{open:y,onOpenChange:()=>_(!1),children:(0,a.jsxs)(h.cZ,{className:"sm:max-w-[768px]",children:[(0,a.jsxs)(h.fK,{children:[(0,a.jsx)(h.$N,{children:"Review the application"}),(0,a.jsx)(h.Be,{children:"This will be added to the database. Please review the application before confirming."})]}),g?(0,a.jsx)(m.Z,{data:g}):"Preparing application...",(0,a.jsx)(h.cN,{children:(0,a.jsx)(p.z,{type:"submit",onClick:()=>{Z()},children:"Save changes"})})]})}),(0,a.jsx)(h.Vq,{open:w,onOpenChange:e=>{e||(_(!1),k(!1))},children:(0,a.jsxs)(h.cZ,{className:"sm:max-w-[768px]",children:[(0,a.jsxs)(h.fK,{children:[(0,a.jsx)(h.$N,{children:"Failed Adding Application"}),(0,a.jsx)(h.Be,{children:"Please review the error message and try again."})]}),(0,a.jsx)("strong",{children:"Error Message"}),S?(0,a.jsx)(m.Z,{data:S,height:100}):"Loading ...",(0,a.jsx)("strong",{children:"Submitted"}),g?(0,a.jsx)(m.Z,{data:g,height:"150px"}):"Preparing application...",(0,a.jsx)(h.cN,{children:(0,a.jsx)(p.z,{onClick:()=>{Z()},children:"Retry now"})})]})})]}):null}var N=i(24017),j=i(1070),y=i(91894);function _(e,l){if(!e||"object"!=typeof e)return{};let i={};for(let[r,t]of Object.entries(e))if("string"==typeof t){if(l&&t in l){var a,o,n,s;(null==l?void 0:null===(a=l[t])||void 0===a?void 0:a.type)==="complex"?i[r]={type:t,sequence:(null==l?void 0:null===(o=l[t])||void 0===o?void 0:o.sequence)||!1,optional:(null==l?void 0:null===(n=l[t])||void 0===n?void 0:n.optional)||!1,default:(null==l?void 0:null===(s=l[t])||void 0===s?void 0:s.default)||null}:i[r]=l[t]}else i[r]={type:t}}else i[r]=t;return console.log("transformWithTrueType Result:",i),i}function w(e){return e&&"object"==typeof e?Object.keys(e).map(l=>({_variableName:l,...e[l]})):[]}let k=e=>{if(!e)return e;let l=w(_(null==e?void 0:e.schema,null==e?void 0:e.types)).reduce((e,l)=>((null==l?void 0:l.default)&&(e[null==l?void 0:l._variableName]=l.default),e),{});return{...e,_variables:{...null==e?void 0:e._variables,...l}}};function S(e){let{simple:l=!1}=e,i=(0,u.v9)(e=>e.stack.submittedStack),c=(0,u.v9)(e=>{var l;return null==e?void 0:null===(l=e.stack)||void 0===l?void 0:l.stackSelectedTemplate});(0,u.v9)(e=>e.environment.environmentLoadedValues);let m=(0,u.v9)(e=>{var l;return null==e?void 0:null===(l=e.userInfo)||void 0===l?void 0:l.userInfoLoadedValues}),h=(0,u.I0)(),p=(0,t.useRouter)(),[b,f]=(0,o.useState)("{}"),[_,w]=(0,o.useState)(""),S=async e=>{let l=e.target.files[0];if(l){if("application/json"===l.type){let e=v.ZP.loading("Loading JSON file..."),i=new FileReader;i.onload=l=>{try{let i=JSON.parse(l.target.result);w(JSON.stringify(i,null,2)),f(JSON.stringify(i,null,2)),h((0,N.q7)(i)),v.ZP.success("JSON file loaded successfully!",{id:e})}catch(l){w("Invalid JSON file."),f("Invalid JSON file."),v.ZP.error("Failed to load JSON file.",{id:e})}},i.readAsText(l)}else if("application/zip"===l.type||l.name.endsWith(".zip")){let e=v.ZP.loading("Uploading ZIP file..."),o=new FormData;o.append("raw",l,l.name);try{var i,a;let l=await n.Z.put("".concat("".concat("http://localhost:8000","/db/upload")),o,{headers:{"Content-Type":"multipart/form-data",accept:"application/json",Authorization:(0,x.Z)(m),superduper_reverse_proxy:"http://localhost:8000"}}),s=JSON.parse(JSON.stringify(null==l?void 0:null===(i=l.data)||void 0===i?void 0:i.component));h((0,j.Xs)([...null==l?void 0:null===(a=l.data)||void 0===a?void 0:a.artifacts])),w(JSON.stringify(s,null,2)),f(JSON.stringify(s,null,2)),h((0,N.q7)(s)),v.ZP.success("ZIP file uploaded successfully!",{id:e})}catch(l){v.ZP.error((null==l?void 0:l.message)||"Failed to upload ZIP file.",{id:e,duration:1e4}),console.log("Error uploading ZIP file:",l)}}else w("Please upload a valid JSON or ZIP file."),v.ZP.error("Invalid file type.")}else w("No file selected."),v.ZP.error("No file selected.")},A=(0,o.useRef)(null),Z=()=>{p.push("/webui/add-application",void 0,{shallow:!0}),h((0,N.v$)("")),w(""),f(""),h((0,N.q7)(""))};(0,o.useEffect)(()=>{let e=async()=>{try{let e=await n.Z.get("".concat("".concat("http://localhost:8000","/db/show?type_id=template")),{headers:{Accept:"application/json",Authorization:(0,x.Z)(m),superduper_reverse_proxy:"http://localhost:8000"}});P([...e.data])}catch(e){i()}},i=()=>{console.log("Error fetching Services API data. Please check your connection.")};l||e()},[]);let[C,P]=(0,o.useState)(["No template added yet"]);return(0,a.jsxs)(a.Fragment,{children:[!l&&(0,a.jsxs)("div",{className:"max-w-3xl",children:[(0,a.jsxs)(r._,{htmlFor:"terms",children:["Select a template"," ",c&&(0,a.jsx)("span",{onClick:Z,className:"bg-transparent border-none text-indigo-500 cursor-pointer p-0",children:"(Remove Selection)"})]}),(0,a.jsxs)(s.Ph,{value:c,onValueChange:e=>{l||Z(),h((0,N.v$)(e));let i=()=>{v.ZP.error("Error fetching template API data. Please check your connection. ");let e={error:"Error fetching template API data. No template information found!"};w(JSON.stringify(e,null,2)),f(JSON.stringify(e,null,2)),h((0,N.q7)(e)),console.log("Error fetching template API data. Please check your connection. So returning to fallback data!")};(async()=>{try{let l=await n.Z.get("".concat("".concat("http://localhost:8000","/db/show_template?identifier=").concat(e)),{headers:{Accept:"application/json",Authorization:(0,x.Z)(m),superduper_reverse_proxy:"http://localhost:8000"}});console.log("/webui/restapi/db/show_template?identifier=".concat(e),l.data),h((0,N.q7)(k(l.data)))}catch(e){i()}})()},children:[(0,a.jsx)(s.i4,{className:"w-3/6 mt-2 mb-2",children:(0,a.jsx)(s.ki,{placeholder:"Select a template to populate the JSON field"})}),(0,a.jsx)(s.Bw,{children:(0,a.jsxs)(s.DI,{children:[(0,a.jsx)(s.n5,{children:"Select a template for populating"}),C&&C.map((e,l)=>(0,a.jsx)(s.Ql,{value:e,children:e},l))]})})]})]}),!l&&(0,a.jsx)("br",{}),!l&&(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{className:"flex items-center my-4",children:[(0,a.jsx)("div",{className:"flex-grow border-t border-gray-300"}),(0,a.jsx)("span",{className:"mx-4 text-gray-500 dark:text-gray-400",children:"OR"}),(0,a.jsx)("div",{className:"flex-grow border-t border-gray-300"})]}),(0,a.jsxs)("div",{className:"border-gray-900/10 pb-2",children:[(0,a.jsx)("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:"Upload your template json file"}),(0,a.jsx)("p",{className:"mt-1 text-sm leading-6 text-gray-600",children:"You can type or upload a JSON file here to automatically fill in the JSON field."})]})]}),(0,a.jsx)("div",{className:"mt-2 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,a.jsxs)("div",{className:"sm:col-span-3",children:[(0,a.jsx)(d.default,{ref:A,className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Add your JSON here...",mode:"json",theme:"github",name:"blah2",onChange:e=>{f(e);try{let l=JSON.parse(e);h((0,N.q7)(l))}catch(e){}},fontSize:13,showPrintMargin:!0,showGutter:!1,highlightActiveLine:!0,value:i?JSON.stringify(i,null,2):b,setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,useWorker:!1,wrap:!0},height:"500px",width:"200%"}),(0,a.jsx)("input",{type:"file",accept:".json,.zip",className:"block mt-2 w-full text-sm text-gray-700 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-indigo-50 file:text-indigo-700 hover:file:bg-indigo-100",onChange:S}),(0,a.jsx)("p",{className:"text-xs pl-2 text-muted-foreground",children:"*You can upload a json file to populate the json field. Or you can upload a zip file."})]})}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)(y.Z,{}),!l&&(0,a.jsx)(g,{})]})}var A=i(1930),Z=i(4216),C=i(46346),P=i(18580);let F=e=>{let{textAreaRef:l,triggerAutoSize:i,maxHeight:a=Number.MAX_SAFE_INTEGER,minHeight:n=0}=e,[s,r]=o.useState(!0);o.useEffect(()=>{let e=l.current;if(e){s&&(e.style.minHeight="".concat(n+2,"px"),a>n&&(e.style.maxHeight="".concat(a,"px")),r(!1)),e.style.height="".concat(n+2,"px");let l=e.scrollHeight;l>a?e.style.height="".concat(a,"px"):e.style.height="".concat(l+2,"px")}},[l.current,i])},E=o.forwardRef((e,l)=>{let{maxHeight:i=Number.MAX_SAFE_INTEGER,minHeight:n=52,className:s,onChange:r,value:t,...d}=e,c=o.useRef(null),[v,u]=o.useState("");return F({textAreaRef:c,triggerAutoSize:v,maxHeight:i,minHeight:n}),(0,o.useImperativeHandle)(l,()=>({textArea:c.current,focus:()=>{var e;return null==c?void 0:null===(e=c.current)||void 0===e?void 0:e.focus()},maxHeight:i,minHeight:n})),o.useEffect(()=>{u(t)},[null==d?void 0:d.defaultValue,t]),(0,a.jsx)("textarea",{...d,value:t,ref:c,className:(0,P.cn)("flex w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",s),onChange:e=>{u(e.target.value),null==r||r(e)}})});E.displayName="AutosizeTextarea";var O=i(74859);let I=async(e,l)=>{try{let i=await n.Z.post("".concat("".concat("http://localhost:8000").concat(e)),{},{headers:{Accept:"application/json",Authorization:l,superduper_reverse_proxy:O.env.NEXT_PUBLIC_API}});if(200===i.status&&i.data){let e=i.data;if(Array.isArray(e))return e;console.error("Response data is not an array")}else console.error("Invalid response status or missing data from API")}catch(e){console.error("Error in getTableArray:",e.message)}return[]};var L=e=>{let{choices:l,authHeaderToken:i}=e,[n,s]=(0,o.useState)([]);return(0,o.useEffect)(()=>{(async()=>{try{let e=await I(l,i);s(e||[])}catch(e){console.error("Error fetching options:",e.message),s([])}})()},[l,i]),(0,a.jsx)(a.Fragment,{children:n.map(e=>(0,a.jsx)("option",{value:e,children:e},e))})},q=i(32041);let T=o.forwardRef((e,l)=>{let{className:i,orientation:o="horizontal",decorative:n=!0,...s}=e;return(0,a.jsx)(q.f,{ref:l,decorative:n,orientation:o,className:(0,P.cn)("shrink-0 bg-border","horizontal"===o?"h-[1px] w-full":"h-full w-[1px]",i),...s})});T.displayName=q.f.displayName;var z=i(80923),R=i(34209),J=i(2187),B=i(23611);i(98295),i(78187),i(39166);var D=i(30897),V=i(46065),U=i(72513),G=i(12900);function M(e,l){let i=l.replace("$","").split("."),a=e;for(let e of i)if(Array.isArray(a))a=a.map(l=>l[e]);else{if(!a||"object"!=typeof a)return[];a=a[e]}return Array.isArray(a)?a:[]}function W(){for(var e=arguments.length,l=Array(e),i=0;i!0===e.optional)}var H=function(e){var l,i,n;let{complexField:t}=e,c=(0,u.I0)(),m=(0,u.v9)(e=>e.stack.submittedStack),h=(0,u.v9)(e=>{var l;return null==e?void 0:null===(l=e.userInfo)||void 0===l?void 0:l.userInfoLoadedValues}),[p,b]=(0,o.useState)(0),[f,g]=(0,o.useState)(!0),j=(e,l)=>{var i;c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[null==t?void 0:t._variableName]:{...null==m?void 0:null===(i=m._variables)||void 0===i?void 0:i[null==t?void 0:t._variableName],[l]:e.target.value}}})),b(e=>e+1)},y=(e,l)=>{var i,a,o;let{target:n}=e,s=null==n?void 0:n.value;if(!s)return;let r=null==t?void 0:t._variableName,d=(null==m?void 0:null===(a=m._variables)||void 0===a?void 0:null===(i=a[r])||void 0===i?void 0:i[l])||[];if(!Array.isArray(d)){console.error("Existing field value is not an array:",d);return}c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[r]:{...null==m?void 0:null===(o=m._variables)||void 0===o?void 0:o[r],[l]:[...d,s]}}})),b(e=>e+1)},k=(e,l)=>{var i,a,o,n,s;c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[null==t?void 0:t._variableName]:{...null==m?void 0:null===(i=m._variables)||void 0===i?void 0:i[null==t?void 0:t._variableName],[l]:Array.isArray(null==m?void 0:null===(o=m._variables)||void 0===o?void 0:null===(a=o[null==t?void 0:t._variableName])||void 0===a?void 0:a[l])?null==m?void 0:null===(s=m._variables)||void 0===s?void 0:null===(n=s[null==t?void 0:t._variableName])||void 0===n?void 0:n[l].filter((l,i)=>i!==e):[]}}})),b(e=>e+1)},S=(e,l,i)=>{var a,o,n;let s=null==t?void 0:t._variableName,r=(null==m?void 0:null===(o=m._variables)||void 0===o?void 0:null===(a=o[null==t?void 0:t._variableName])||void 0===a?void 0:a[null==i?void 0:i._variableName])||[];if(!Array.isArray(r)){console.error('Expected an array for field "'.concat(null==i?void 0:i._variableName,'", but got:'),r);return}let d=l?[...r,e]:r.filter(l=>l!==e);c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[s]:{...null==m?void 0:null===(n=m._variables)||void 0===n?void 0:n[s],[null==i?void 0:i._variableName]:d}}})),b(e=>e+1)},P=(e,l)=>{var i;c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[null==t?void 0:t._variableName]:{...null==m?void 0:null===(i=m._variables)||void 0===i?void 0:i[null==t?void 0:t._variableName],[l]:!e}}})),b(e=>e+1)},F=(e,l)=>{let i=e.target.value;try{let e=parseInt(i,10);if(isNaN(e))v.ZP.error("The value for ".concat(l," must be an integer."),{id:"integer-error"});else{var a;c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[null==t?void 0:t._variableName]:{...null==m?void 0:null===(a=m._variables)||void 0===a?void 0:a[null==t?void 0:t._variableName],[l]:e}}})),b(e=>e+1)}}catch(e){console.error("Error:",e),v.ZP.error("The value for ".concat(l," must be an integer."),{id:"integer-error"})}},O=(e,l)=>{var i;c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[null==t?void 0:t._variableName]:{...null==m?void 0:null===(i=m._variables)||void 0===i?void 0:i[null==t?void 0:t._variableName],[l]:e}}})),b(e=>e+1)},L=e=>()=>{var l,i,a;c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[null==t?void 0:t._variableName]:{...null==m?void 0:null===(l=m._variables)||void 0===l?void 0:l[null==t?void 0:t._variableName],[e]:(parseInt(null==m?void 0:null===(a=m._variables)||void 0===a?void 0:null===(i=a[null==t?void 0:t._variableName])||void 0===i?void 0:i[e])||0)+1}}})),b(e=>e+1)},q=e=>()=>{var l;c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[null==t?void 0:t._variableName]:{...null==m?void 0:null===(l=m._variables)||void 0===l?void 0:l[null==t?void 0:t._variableName],[e]:(parseInt(null==m?void 0:m._variables[null==t?void 0:t._variableName][e])||0)-1}}})),b(e=>e+1)},V=e=>null!=e&&!!e.optional&&!!f,U=(e,l)=>{var i,a;try{let a;""===e?a={}:"string"==typeof e?(a=JSON.parse(e),JSON.stringify(a,null,2)):a={},console.log("Parsed JSON:",a),c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[null==t?void 0:t._variableName]:{...null==m?void 0:null===(i=m._variables)||void 0===i?void 0:i[null==t?void 0:t._variableName],[l]:a}}}))}catch(i){console.error("Error parsing JSON:",i),c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[null==t?void 0:t._variableName]:{...null==m?void 0:null===(a=m._variables)||void 0===a?void 0:a[null==t?void 0:t._variableName],[l]:e}}}))}},G=(e,l)=>{try{var i;c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[null==t?void 0:t._variableName]:{...null==m?void 0:null===(i=m._variables)||void 0===i?void 0:i[null==t?void 0:t._variableName],[l]:e}}}))}catch(i){console.error("Error parsing JSON:",i),c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[l]:e}}))}};return m?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"mt-4 mb-2 pt-4 rounded-2xl border-4 border-dashed border-gray-900/25 px-6 py-10",children:[(0,a.jsx)("div",{className:"space-y-12",children:(0,a.jsx)("div",{className:"pb-2",children:(0,a.jsx)("div",{className:"flex items-start justify-between",children:(0,a.jsx)("h2",{className:"text-xl font-semibold leading-7 text-gray-900",children:(0,a.jsxs)(r._,{className:"text-xl",htmlFor:null==t?void 0:t._variableName,children:[null==t?void 0:t._variableName," ",(null==t?void 0:t.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]})})})})}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-1.5",children:[(null==m?void 0:m.schema)&&w(_(null==m?void 0:null===(l=m.types)||void 0===l?void 0:l[null==t?void 0:t.type],null==m?void 0:m.types)).map(e=>{var l,i,n,c,v,u,p,b,f,g,N,_,w,X,H,Q,K,Y,ee,el,ei,ea,eo,en,es,er,et,ed,ec,ev,eu,em,eh,ep,ex;return(0,a.jsxs)(o.Fragment,{children:[console.log("field",e),!V(e)&&"str"===$(null==e?void 0:e.type,null==e?void 0:e.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsx)(A.I,{id:null==e?void 0:e._variableName,value:(null==m?void 0:null===(i=m._variables)||void 0===i?void 0:null===(l=i[null==t?void 0:t._variableName])||void 0===l?void 0:l[null==e?void 0:e._variableName])||"",onChange:l=>j(l,null==e?void 0:e._variableName),placeholder:(null==e?void 0:e.default)?"Default: ".concat(null==e?void 0:e.default):"Type the ".concat(null==e?void 0:e._variableName," value here"),autocomplete:"off"})]}),!V(e)&&"text-area"===$(null==e?void 0:e.type,null==e?void 0:e.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsx)(E,{id:null==e?void 0:e._variableName,value:(null==m?void 0:null===(c=m._variables)||void 0===c?void 0:null===(n=c[null==t?void 0:t._variableName])||void 0===n?void 0:n[null==e?void 0:e._variableName])||"",onChange:l=>j(l,null==e?void 0:e._variableName),placeholder:(null==e?void 0:e.default)?"Default: ".concat(null==e?void 0:e.default):"Type the ".concat(null==e?void 0:e._variableName," value here"),className:"resize-none",rows:6})]}),!V(e)&&"boolean"===$(null==e?void 0:e.type,null==e?void 0:e.choices)&&(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsxs)(D.r.Group,{as:"div",className:"flex items-center",children:[(0,a.jsx)(D.r,{checked:null==m?void 0:null===(u=m._variables)||void 0===u?void 0:null===(v=u[null==t?void 0:t._variableName])||void 0===v?void 0:v[null==e?void 0:e._variableName],onChange:()=>{var l,i;return P(null==m?void 0:null===(i=m._variables)||void 0===i?void 0:null===(l=i[null==t?void 0:t._variableName])||void 0===l?void 0:l[null==e?void 0:e._variableName],null==e?void 0:e._variableName)},className:W((null==m?void 0:null===(b=m._variables)||void 0===b?void 0:null===(p=b[null==t?void 0:t._variableName])||void 0===p?void 0:p[null==e?void 0:e._variableName])?"bg-indigo-600":"bg-gray-200","relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-600 focus:ring-offset-2"),children:(0,a.jsx)("span",{"aria-hidden":"true",className:W((null==m?void 0:null===(g=m._variables)||void 0===g?void 0:null===(f=g[null==t?void 0:t._variableName])||void 0===f?void 0:f[null==e?void 0:e._variableName])?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out")})}),(0,a.jsxs)(D.r.Label,{as:"span",className:"ml-3 text-sm",children:[(0,a.jsx)("span",{className:"font-medium text-gray-900",children:null==e?void 0:e._variableName})," ",(null==e?void 0:e.optional)?(0,a.jsx)("span",{className:"text-gray-500",children:"(optional)"}):(0,a.jsx)("span",{className:"text-rose-500",children:"*"}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]})]})})}),!V(e)&&"multi-select"===$(null==e?void 0:e.type,null==e?void 0:e.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})}),(0,a.jsxs)("div",{className:"mt-0 items-center gap-x-2.5 gap-y-2.5 text-xs leading-5 text-gray-400",children:[(0,a.jsxs)("p",{className:"whitespace-nowrap",children:["Selected values:"," ",(null==m?void 0:null===(_=m._variables)||void 0===_?void 0:null===(N=_[null==t?void 0:t._variableName])||void 0===N?void 0:N[null==e?void 0:e._variableName])&&(null==m?void 0:null===(H=m._variables)||void 0===H?void 0:null===(X=H[null==t?void 0:t._variableName])||void 0===X?void 0:null===(w=X[null==e?void 0:e._variableName])||void 0===w?void 0:w.length)===0&&(0,a.jsx)("span",{children:"None"})]}),(null==m?void 0:null===(K=m._variables)||void 0===K?void 0:null===(Q=K[null==t?void 0:t._variableName])||void 0===Q?void 0:Q[null==e?void 0:e._variableName])&&(null==m?void 0:null===(el=m._variables)||void 0===el?void 0:null===(ee=el[null==t?void 0:t._variableName])||void 0===ee?void 0:null===(Y=ee[null==e?void 0:e._variableName])||void 0===Y?void 0:Y.map((l,i)=>(0,a.jsx)(o.Fragment,{children:(0,a.jsxs)("button",{type:"button",className:"mt-2 inline-flex items-center rounded-full bg-white px-2.5 py-1 text-xs font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:[l,(0,a.jsx)(R.Z,{onClick:()=>k(i,null==e?void 0:e._variableName),className:"-mr-0.5 h-4 w-4","aria-hidden":"true"})]})},l)))]})]}),(0,a.jsxs)("select",{id:null==e?void 0:e.name,name:null==e?void 0:e.name,value:"",onChange:l=>y(l,null==e?void 0:e._variableName),placeholder:(null==e?void 0:e.default)?"Default: ".concat(null==e?void 0:e.default):"Type the ".concat(null==e?void 0:e.name," value here"),className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[(0,a.jsx)("option",{value:"",children:"Select values to create sequence"},"uploadArtifact"),Array.isArray(null==e?void 0:e.choices)?e.choices.map(e=>(0,a.jsx)("option",{value:e,children:e},e)):"string"==typeof(null==e?void 0:e.choices)&&e.choices.startsWith("$")?M(null==m?void 0:m._variables,e.choices).map(e=>(0,a.jsx)("option",{value:e,children:e},e)):"string"==typeof(null==e?void 0:e.choices)&&e.choices.startsWith("/")?I(e.choices,(0,x.Z)(h)).map(e=>(0,a.jsx)("option",{value:e,children:e},e)):null]},JSON.stringify(null==m?void 0:null===(ea=m._variables)||void 0===ea?void 0:null===(ei=ea[null==t?void 0:t._variableName])||void 0===ei?void 0:ei[null==e?void 0:e._variableName]))]}),!V(e)&&"multi-checkbox"===$(null==e?void 0:e.type,null==e?void 0:e.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsx)(C.x,{className:"h-72 w-full rounded-md border",children:(0,a.jsx)("div",{className:"flex space-x-2 mt-2 m-2",children:(0,a.jsx)("div",{className:"space-y-4",children:Array.isArray(null==e?void 0:e.choices)?e.choices.map(l=>{var i,o;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(Z.X,{id:l,checked:Array.isArray(null==m?void 0:null===(o=m._variables)||void 0===o?void 0:null===(i=o[null==t?void 0:t._variableName])||void 0===i?void 0:i[null==e?void 0:e._variableName])&&m._variables[t._variableName][e._variableName].includes(l),onCheckedChange:i=>S(l,i,e)}),(0,a.jsx)("label",{htmlFor:l,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:l})]},l),(0,a.jsx)(T,{className:"my-16"})]})}):"string"==typeof(null==e?void 0:e.choices)&&e.choices.startsWith("$")?M(null==m?void 0:m._variables,e.choices).map(l=>{var i,o;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(Z.X,{id:l,checked:Array.isArray(null==m?void 0:null===(o=m._variables)||void 0===o?void 0:null===(i=o[null==t?void 0:t._variableName])||void 0===i?void 0:i[null==e?void 0:e._variableName])&&m._variables[t._variableName][e._variableName].includes(l),onCheckedChange:i=>S(l,i,e)}),(0,a.jsx)("label",{htmlFor:l,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:l})]},l),(0,a.jsx)(T,{className:"my-16"})]})}):"string"==typeof(null==e?void 0:e.choices)&&e.choices.startsWith("/")?I(e.choices,(0,x.Z)(h)).map(l=>{var i,o;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(Z.X,{id:l,checked:Array.isArray(null==m?void 0:null===(o=m._variables)||void 0===o?void 0:null===(i=o[null==t?void 0:t._variableName])||void 0===i?void 0:i[null==e?void 0:e._variableName])&&m._variables[t._variableName][e._variableName].includes(l),onCheckedChange:i=>S(l,i,e)}),(0,a.jsx)("label",{htmlFor:l,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:l})]},l),(0,a.jsx)(T,{className:"my-16"})]})}):null})})})]}),!V(e)&&"select"===$(null==e?void 0:e.type,null==e?void 0:e.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsxs)(s.Ph,{value:(null==m?void 0:null===(en=m._variables)||void 0===en?void 0:null===(eo=en[null==t?void 0:t._variableName])||void 0===eo?void 0:eo[null==e?void 0:e._variableName])||"",onValueChange:l=>O(l,null==e?void 0:e._variableName),children:[(0,a.jsx)(s.i4,{"aria-label":null==e?void 0:e._variableName,className:"w-[280px]",children:(0,a.jsx)(s.ki,{placeholder:"Select an option"})}),(0,a.jsx)(s.Bw,{children:(0,a.jsxs)(s.DI,{children:[(0,a.jsxs)(s.n5,{children:["Select ",null==e?void 0:e._variableName]}),null===(es=e.choices)||void 0===es?void 0:es.map(e=>(0,a.jsx)(s.Ql,{value:e,children:e},e))]})})]})]}),!V(e)&&"int"===$(null==e?void 0:e.type,null==e?void 0:e.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsxs)("div",{className:"flex items-center justify-left",children:[(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("button",{type:"button",onClick:q(null==e?void 0:e._variableName),className:"rounded-full bg-indigo-600 p-1 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 mr-4",children:(0,a.jsx)(B.Z,{className:"h-5 w-5","aria-hidden":"true"})}),(0,a.jsx)("input",{type:"int",className:"w-16 text-center block rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",id:null==e?void 0:e._variableName,value:(null==m?void 0:null===(et=m._variables)||void 0===et?void 0:null===(er=et[null==t?void 0:t._variableName])||void 0===er?void 0:er[null==e?void 0:e._variableName])||0,onChange:l=>F(l,null==e?void 0:e._variableName)}),(0,a.jsx)("button",{type:"button",onClick:L(null==e?void 0:e._variableName),className:"rounded-full bg-indigo-600 p-1 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 ml-4",children:(0,a.jsx)(J.Z,{className:"h-5 w-5","aria-hidden":"true"})})]})]}),!V(e)&&"json"===$(null==e?void 0:e.type,null==e?void 0:e.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsx)(d.default,{placeholder:"Here you can pass a dictionary as value. e.g. {key: value}",mode:"json",theme:"twilight",name:null==e?void 0:e._variableName,onChange:l=>U(l,null==e?void 0:e._variableName),fontSize:14,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:"object"==typeof(null==m?void 0:null===(ec=m._variables)||void 0===ec?void 0:null===(ed=ec[null==t?void 0:t._variableName])||void 0===ed?void 0:ed[null==e?void 0:e._variableName])?JSON.stringify(null==m?void 0:null===(eu=m._variables)||void 0===eu?void 0:null===(ev=eu[null==t?void 0:t._variableName])||void 0===ev?void 0:ev[null==e?void 0:e._variableName],null," "):(null==m?void 0:null===(eh=m._variables)||void 0===eh?void 0:null===(em=eh[null==t?void 0:t._variableName])||void 0===em?void 0:em[null==e?void 0:e._variableName])||"",setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2},style:{width:"100%",height:"200px"}})]}),!V(e)&&"code"===$(null==e?void 0:e.type,null==e?void 0:e.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsx)(d.default,{placeholder:"Write Python here...",mode:"python",theme:"tomorrow",name:null==e?void 0:e._variableName,onChange:l=>G(l,null==e?void 0:e._variableName),fontSize:14,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:(null==m?void 0:null===(ex=m._variables)||void 0===ex?void 0:null===(ep=ex[null==t?void 0:t._variableName])||void 0===ep?void 0:ep[null==e?void 0:e._variableName])||"",setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2},style:{width:"100%",height:"200px"}})]})]},null==e?void 0:e._variableName)}),X(w(_(null==m?void 0:null===(i=m.types)||void 0===i?void 0:i[null==t?void 0:t.type],null==m?void 0:m.types)))&&f&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("ul",{role:"list",className:"mt-6 divide-y divide-gray-200 border-b border-t border-gray-200"}),(0,a.jsx)("div",{className:"mt-6 flex",children:(0,a.jsxs)("span",{className:"text-sm font-medium text-indigo-600 hover:text-indigo-500",onClick:()=>{g(!f)},children:["Show optional parameters",(0,a.jsx)("span",{"aria-hidden":"true",children:" →"})]})})]}),X(w(_(null==m?void 0:null===(n=m.types)||void 0===n?void 0:n[null==t?void 0:t.type],null==m?void 0:m.types)))&&!f&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("ul",{role:"list",className:"mt-6 divide-y divide-gray-200 border-b border-t border-gray-200"}),(0,a.jsx)("div",{className:"mt-6 flex",children:(0,a.jsxs)("span",{className:"text-sm font-medium text-indigo-600 hover:text-indigo-500",onClick:()=>{g(!f)},children:["Hide optional parameters",(0,a.jsx)("span",{"aria-hidden":"true",children:" ←"})]})})]})]})]})}):null};let Q=(0,i(64070).default)(async()=>{let e=await Promise.resolve().then(i.bind(i,22392));return await Promise.resolve().then(i.t.bind(i,83346,23)),await Promise.resolve().then(i.t.bind(i,78187,23)),await Promise.resolve().then(i.t.bind(i,19234,23)),e},{loadableGenerated:{webpack:()=>[19234]},ssr:!1});function K(){for(var e=arguments.length,l=Array(e),i=0;ie.stack.submittedStack),b=(0,u.v9)(e=>{var l;return null==e?void 0:null===(l=e.userInfo)||void 0===l?void 0:l.userInfoLoadedValues}),f=(0,t.useSearchParams)();(0,t.useRouter)();let g=null==v?void 0:null===(l=v[0])||void 0===l?void 0:l._variableName,j=(null===(i=f.get(g))||void 0===i?void 0:i.split(","))||[null==v?void 0:null===(n=v[0])||void 0===n?void 0:n._variableName],[y,k]=(0,o.useState)(()=>null==j?void 0:j.map(e=>(null==v?void 0:v.find(l=>(null==l?void 0:l._variableName)===e))||(null==v?void 0:v[0]))),[S,P]=(0,o.useState)(null===(d=Array(null==v?void 0:v.length))||void 0===d?void 0:d.fill(!0)),F=(e,l)=>{var i,a,o;let n=null==y?void 0:null===(i=y[e])||void 0===i?void 0:i._variableName,s=null===(o=(Array.isArray(null==h?void 0:null===(a=h._variables)||void 0===a?void 0:a[n])?h._variables[n]:[])[e])||void 0===o?void 0:o[l];return void 0!==s?s:[]},O=(e,l,i)=>{var a,o;let n=null==y?void 0:null===(a=y[e])||void 0===a?void 0:a._variableName,s=Array.isArray(null==h?void 0:null===(o=h._variables)||void 0===o?void 0:o[n])?h._variables[n]:[],r=[...s];r[e]={...(null==s?void 0:s[e])||{},[l]:i};let t={...null==h?void 0:h._variables,[n]:r},d={...h,_variables:t};m((0,N.q7)(d))},L=(e,l,i)=>{let a=F(i,l);a.push(e.target.value),O(i,l,a)},q=(e,l,i)=>{let a=F(i,l).filter((l,i)=>i!==e);O(i,l,a)},V=(e,l,i,a)=>{var o,n,s,r;let t=null==y?void 0:null===(o=y[a])||void 0===o?void 0:o._variableName,d=(null==h?void 0:null===(s=h._variables)||void 0===s?void 0:null===(n=s[t])||void 0===n?void 0:n[null==i?void 0:i._variableName])||[];if(!Array.isArray(d)){console.error('Expected an array for field "'.concat(null==i?void 0:i._variableName,'", but got:'),d);return}let c=l?[...d,e]:d.filter(l=>l!==e);m((0,N.q7)({...h,_variables:{...null==h?void 0:h._variables,[t]:{...null==h?void 0:null===(r=h._variables)||void 0===r?void 0:r[t],[null==i?void 0:i._variableName]:c}}}))},U=(e,l,i)=>{O(e,l,!i)},G=(e,l,i)=>{O(e,l,i)},W=(e,l)=>{var i,a,o,n;let s=parseInt(null==h?void 0:null===(n=h._variables)||void 0===n?void 0:null===(a=n[null==y?void 0:null===(o=y[e])||void 0===o?void 0:o._variableName])||void 0===a?void 0:null===(i=a[e])||void 0===i?void 0:i[l])||0;O(e,l,s+1)},$=(e,l)=>{var i,a,o,n;let s=parseInt(null==h?void 0:null===(n=h._variables)||void 0===n?void 0:null===(a=n[null==y?void 0:null===(o=y[e])||void 0===o?void 0:o._variableName])||void 0===a?void 0:null===(i=a[e])||void 0===i?void 0:i[l])||0;O(e,l,s-1)},X=(e,l,i)=>{try{let a=""===i?{}:JSON.parse(i);O(e,l,a)}catch(a){console.error("Error parsing JSON:",a),O(e,l,i)}},H=(e,l,i)=>{O(e,l,i)},ee=e=>{P(l=>{let i=[...l];return i[e]=!i[e],i})},el=e=>{k(l=>l.filter((l,i)=>i!==e));let l={...null==h?void 0:h._variables};Object.keys(l).forEach(i=>{if(Array.isArray(l[i])){var a;l[i]=null==l?void 0:null===(a=l[i])||void 0===a?void 0:a.filter((l,i)=>i!==e)}});let i={...h,_variables:l};m((0,N.q7)(i));let a=j.filter((l,i)=>i!==e),o=new URL(window.location),n=new URLSearchParams(o.search);n.set(g,a.join(",")),window.history.pushState(null,"","".concat(o.pathname,"?").concat(n.toString()))};return h?(0,a.jsxs)(a.Fragment,{children:[y.map((e,l)=>{var i,n;return(0,a.jsxs)("div",{className:"mt-4 mb-2 pt-4 rounded-2xl border-4 border-dashed border-gray-900/25 px-6 py-10",children:[(0,a.jsx)("div",{className:"space-y-12",children:(0,a.jsx)("div",{className:"pb-2",children:(0,a.jsxs)("div",{className:"flex items-start justify-between",children:[(0,a.jsx)("h2",{className:"text-xl font-semibold leading-7 text-gray-900",children:(0,a.jsxs)(r._,{className:"text-xl",htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]})}),(null==y?void 0:y.length)>1&&(0,a.jsx)("div",{className:"ml-3 flex h-7 items-center",children:(0,a.jsxs)("button",{type:"button",className:"rounded-md bg-white text-gray-400 hover:text-gray-500 outline ring-2 ring-indigo-500",onClick:()=>el(l),children:[(0,a.jsx)("span",{className:"sr-only",children:"Close"}),(0,a.jsx)(R.Z,{className:"h-6 w-6","aria-hidden":"true"})]})})]})})}),(0,a.jsx)("div",{className:"grid w-full max-w-sm items-center gap-1.5",children:w(_(null==h?void 0:null===(i=h.types)||void 0===i?void 0:i[null==e?void 0:e.type],null==h?void 0:h.types)).map(i=>{var n,t,d,c,v,u,m,f,g,N,j,_,w,k,P,F,ee,el,ei,ea,eo,en,es,er,et,ed,ec,ev,eu,em,eh,ep,ex,eb,ef,eg,eN,ej,ey,e_,ew,ek,eS,eA,eZ,eC,eP,eF,eE,eO,eI,eL,eq,eT,ez,eR,eJ,eB,eD,eV,eU,eG,eM,eW;return(0,a.jsx)(o.Fragment,{children:(!i.optional||S[l])&&(0,a.jsxs)(a.Fragment,{children:["str"===Y(null==i?void 0:i.type,null==i?void 0:i.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:"".concat(l,"-").concat(null==i?void 0:i._variableName),children:[null==i?void 0:i._variableName," ",(null==i?void 0:i.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==i?void 0:i.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==i?void 0:i.tooltip})})]}),(0,a.jsx)(A.I,{id:"".concat(l,"-").concat(null==i?void 0:i._variableName),value:(null==h?void 0:null===(c=h._variables)||void 0===c?void 0:null===(t=c[null==y?void 0:null===(d=y[l])||void 0===d?void 0:d._variableName])||void 0===t?void 0:null===(n=t[l])||void 0===n?void 0:n[null==i?void 0:i._variableName])||"",onChange:e=>O(l,null==i?void 0:i._variableName,e.target.value),placeholder:(null==i?void 0:i.default)?"Default: ".concat(null==i?void 0:i.default):"Type the ".concat(null==i?void 0:i._variableName," value here")})]}),"text-area"===Y(null==i?void 0:i.type,null==i?void 0:i.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:"".concat(l,"-").concat(null==i?void 0:i._variableName),children:[null==i?void 0:i._variableName," ",(null==i?void 0:i.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==i?void 0:i.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==i?void 0:i.tooltip})})]}),(0,a.jsx)(E,{id:"".concat(l,"-").concat(null==i?void 0:i._variableName),value:(null==h?void 0:null===(f=h._variables)||void 0===f?void 0:null===(u=f[null==y?void 0:null===(m=y[l])||void 0===m?void 0:m._variableName])||void 0===u?void 0:null===(v=u[l])||void 0===v?void 0:v[null==i?void 0:i._variableName])||"",onChange:e=>O(l,null==i?void 0:i._variableName,e.target.value),placeholder:(null==i?void 0:i.default)?"Default: ".concat(null==i?void 0:i.default):"Type the ".concat(null==i?void 0:i._variableName," value here"),className:"resize-none",rows:6})]}),"multi-select"===Y(null==i?void 0:i.type,null==i?void 0:i.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:null==i?void 0:i._variableName,children:[null==i?void 0:i._variableName," ",(null==i?void 0:i.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==i?void 0:i.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==i?void 0:i.tooltip})}),(0,a.jsxs)("div",{className:"mt-0 items-center gap-x-2.5 gap-y-2.5 text-xs leading-5 text-gray-400",children:[(0,a.jsxs)("p",{className:"whitespace-nowrap",children:["Selected values:"," ",(null==h?void 0:null===(_=h._variables)||void 0===_?void 0:null===(N=_[null==y?void 0:null===(j=y[l])||void 0===j?void 0:j._variableName])||void 0===N?void 0:null===(g=N[l])||void 0===g?void 0:g[null==i?void 0:i._variableName])&&(null==h?void 0:null===(ee=h._variables)||void 0===ee?void 0:null===(P=ee[null==y?void 0:null===(F=y[l])||void 0===F?void 0:F._variableName])||void 0===P?void 0:null===(k=P[l])||void 0===k?void 0:null===(w=k[null==i?void 0:i._variableName])||void 0===w?void 0:w.length)===0&&(0,a.jsx)("span",{children:"None"})]}),(null==h?void 0:null===(eo=h._variables)||void 0===eo?void 0:null===(ei=eo[null==y?void 0:null===(ea=y[l])||void 0===ea?void 0:ea._variableName])||void 0===ei?void 0:null===(el=ei[l])||void 0===el?void 0:el[null==i?void 0:i._variableName])&&(null==h?void 0:null===(et=h._variables)||void 0===et?void 0:null===(es=et[null==y?void 0:null===(er=y[l])||void 0===er?void 0:er._variableName])||void 0===es?void 0:null===(en=es[l])||void 0===en?void 0:en[null==i?void 0:i._variableName].map((e,n)=>(0,a.jsx)(o.Fragment,{children:(0,a.jsxs)("button",{type:"button",className:"mt-2 inline-flex items-center rounded-full bg-white px-2.5 py-1 text-xs font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:[e,(0,a.jsx)(R.Z,{onClick:()=>q(n,null==i?void 0:i._variableName,l),className:"-mr-0.5 h-4 w-4","aria-hidden":"true"})]})},n)))]})]}),(0,a.jsxs)("select",{id:null==i?void 0:i.name,name:null==i?void 0:i.name,value:"",onChange:e=>L(e,null==i?void 0:i._variableName,l),placeholder:(null==i?void 0:i.default)?"Default: ".concat(null==i?void 0:i.default):"Type the ".concat(null==i?void 0:i.name," value here"),className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[(0,a.jsx)("option",{value:"",children:"Select values to create sequence"},"uploadArtifact"),Array.isArray(null==i?void 0:i.choices)?i.choices.map(e=>(0,a.jsx)("option",{value:e,children:e},e)):"string"==typeof(null==i?void 0:i.choices)&&i.choices.startsWith("$")?M(null==h?void 0:h._variables,i.choices).map(e=>(0,a.jsx)("option",{value:e,children:e},e)):"string"==typeof(null==i?void 0:i.choices)&&i.choices.startsWith("/")?I(i.choices,(0,x.Z)(b)).map(e=>(0,a.jsx)("option",{value:e,children:e},e)):null]},JSON.stringify(null==h?void 0:null===(ec=h._variables)||void 0===ec?void 0:null===(ed=ec[null==e?void 0:e._variableName])||void 0===ed?void 0:ed[null==i?void 0:i._variableName]))]}),"multi-checkbox"===Y(null==i?void 0:i.type,null==i?void 0:i.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:null==i?void 0:i._variableName,children:[null==i?void 0:i._variableName," ",(null==i?void 0:i.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==i?void 0:i.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==i?void 0:i.tooltip})})]}),(0,a.jsx)(C.x,{className:"h-72 w-full rounded-md border",children:(0,a.jsx)("div",{className:"flex space-x-2 mt-2 m-2",children:(0,a.jsx)("div",{className:"space-y-4",children:(null==i?void 0:i.choices)&&(null==i?void 0:i.choices.map(o=>{var n,s,r;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(Z.X,{id:o,checked:null==h?void 0:null===(r=h._variables)||void 0===r?void 0:null===(s=r[null==e?void 0:e._variableName])||void 0===s?void 0:null===(n=s[null==i?void 0:i._variableName])||void 0===n?void 0:n.includes(o),onCheckedChange:e=>V(o,e,i,l)}),(0,a.jsx)("label",{htmlFor:o,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:o})]},o),(0,a.jsx)(T,{className:"my-16"})]})}))})})})]}),"boolean"===Y(null==i?void 0:i.type,null==i?void 0:i.choices)&&(0,a.jsxs)("div",{children:[" ",(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsxs)(D.r.Group,{as:"div",className:"flex items-center",children:[(0,a.jsx)(D.r,{id:"".concat(l,"-").concat(null==i?void 0:i._variableName),checked:null==h?void 0:null===(eh=h._variables)||void 0===eh?void 0:null===(eu=eh[null==y?void 0:null===(em=y[l])||void 0===em?void 0:em._variableName])||void 0===eu?void 0:null===(ev=eu[l])||void 0===ev?void 0:ev[null==i?void 0:i._variableName],onChange:e=>{var a,o,n,s;return U(l,null==i?void 0:i._variableName,null==h?void 0:null===(s=h._variables)||void 0===s?void 0:null===(o=s[null==y?void 0:null===(n=y[l])||void 0===n?void 0:n._variableName])||void 0===o?void 0:null===(a=o[l])||void 0===a?void 0:a[null==i?void 0:i._variableName])},className:K((null==h?void 0:null===(ef=h._variables)||void 0===ef?void 0:null===(ex=ef[null==y?void 0:null===(eb=y[l])||void 0===eb?void 0:eb._variableName])||void 0===ex?void 0:null===(ep=ex[l])||void 0===ep?void 0:ep[null==i?void 0:i._variableName])?"bg-indigo-600":"bg-gray-200","relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-600 focus:ring-offset-2"),children:(0,a.jsx)("span",{"aria-hidden":"true",className:K((null==h?void 0:null===(ey=h._variables)||void 0===ey?void 0:null===(eN=ey[null==y?void 0:null===(ej=y[l])||void 0===ej?void 0:ej._variableName])||void 0===eN?void 0:null===(eg=eN[l])||void 0===eg?void 0:eg[null==i?void 0:i._variableName])?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out")})}),(0,a.jsxs)(D.r.Label,{as:"span",className:"ml-3 text-sm",children:[(0,a.jsx)("span",{className:"font-medium text-gray-900",children:null==i?void 0:i._variableName})," ",(null==i?void 0:i.optional)?(0,a.jsx)("span",{className:"text-gray-500",children:"(optional)"}):(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==i?void 0:i.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==i?void 0:i.tooltip})})]})})]},l),"select"===Y(null==i?void 0:i.type,null==i?void 0:i.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:"".concat(l,"-").concat(null==i?void 0:i._variableName),children:[null==i?void 0:i._variableName," ",(null==i?void 0:i.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==i?void 0:i.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==i?void 0:i.tooltip})})]}),(0,a.jsxs)(s.Ph,{value:(null==h?void 0:null===(eS=h._variables)||void 0===eS?void 0:null===(ew=eS[null==y?void 0:null===(ek=y[l])||void 0===ek?void 0:ek._variableName])||void 0===ew?void 0:null===(e_=ew[l])||void 0===e_?void 0:e_[null==i?void 0:i._variableName])||"",onValueChange:e=>G(l,null==i?void 0:i._variableName,e),children:[(0,a.jsx)(s.i4,{className:"w-[280px]",children:(0,a.jsx)(s.ki,{placeholder:"Select an option"})}),(0,a.jsx)(s.Bw,{children:null==i?void 0:null===(eA=i.choices)||void 0===eA?void 0:eA.map(e=>(0,a.jsx)(s.Ql,{value:e,children:e},e))})]})]}),"int"===Y(null==i?void 0:i.type,null==i?void 0:i.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:"".concat(l,"-").concat(null==i?void 0:i._variableName),children:[null==i?void 0:i._variableName," ",(null==i?void 0:i.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==i?void 0:i.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==i?void 0:i.tooltip})})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(p.z,{type:"button",variant:"outline",size:"icon",onClick:()=>$(l,null==i?void 0:i._variableName),children:(0,a.jsx)(B.Z,{className:"h-4 w-4"})}),(0,a.jsx)(A.I,{type:"number",id:"".concat(l,"-").concat(null==i?void 0:i._variableName),value:(null==h?void 0:null===(eF=h._variables)||void 0===eF?void 0:null===(eC=eF[null==y?void 0:null===(eP=y[l])||void 0===eP?void 0:eP._variableName])||void 0===eC?void 0:null===(eZ=eC[l])||void 0===eZ?void 0:eZ[null==i?void 0:i._variableName])||0,onChange:e=>O(l,null==i?void 0:i._variableName,parseInt(e.target.value)),className:"w-20 text-center"}),(0,a.jsx)(p.z,{type:"button",variant:"outline",size:"icon",onClick:()=>W(l,null==i?void 0:i._variableName),children:(0,a.jsx)(J.Z,{className:"h-4 w-4"})})]})]}),"json"===Y(null==i?void 0:i.type,null==i?void 0:i.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:"".concat(l,"-").concat(null==i?void 0:i._variableName),children:[null==i?void 0:i._variableName," ",(null==i?void 0:i.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==i?void 0:i.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==i?void 0:i.tooltip})})]}),(0,a.jsx)(Q,{mode:"json",theme:"github",name:"".concat(l,"-").concat(null==i?void 0:i._variableName),onChange:e=>X(l,null==i?void 0:i._variableName,e),fontSize:14,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:"object"==typeof(null==h?void 0:null===(eL=h._variables)||void 0===eL?void 0:null===(eO=eL[null==y?void 0:null===(eI=y[l])||void 0===eI?void 0:eI._variableName])||void 0===eO?void 0:null===(eE=eO[l])||void 0===eE?void 0:eE[null==i?void 0:i._variableName])?JSON.stringify(null==h?void 0:null===(eR=h._variables)||void 0===eR?void 0:null===(eT=eR[null==y?void 0:null===(ez=y[l])||void 0===ez?void 0:ez._variableName])||void 0===eT?void 0:null===(eq=eT[l])||void 0===eq?void 0:eq[null==i?void 0:i._variableName],null,2):(null==h?void 0:null===(eV=h._variables)||void 0===eV?void 0:null===(eB=eV[null==y?void 0:null===(eD=y[l])||void 0===eD?void 0:eD._variableName])||void 0===eB?void 0:null===(eJ=eB[l])||void 0===eJ?void 0:eJ[null==i?void 0:i._variableName])||"",setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2},style:{width:"100%",height:"200px"}})]}),"code"===Y(null==i?void 0:i.type,null==i?void 0:i.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:"".concat(l,"-").concat(null==i?void 0:i._variableName),children:[null==i?void 0:i._variableName," ",(null==i?void 0:i.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==i?void 0:i.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==i?void 0:i.tooltip})})]}),(0,a.jsx)(Q,{mode:"python",theme:"github",name:"".concat(l,"-").concat(null==i?void 0:i._variableName),onChange:e=>H(l,null==i?void 0:i._variableName,e),fontSize:14,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:(null==h?void 0:null===(eW=h._variables)||void 0===eW?void 0:null===(eG=eW[null==y?void 0:null===(eM=y[l])||void 0===eM?void 0:eM._variableName])||void 0===eG?void 0:null===(eU=eG[l])||void 0===eU?void 0:eU[null==i?void 0:i._variableName])||"",setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2},style:{width:"100%",height:"200px"}})]})]})},null==i?void 0:i._variableName)})}),w(_(null==h?void 0:null===(n=h.types)||void 0===n?void 0:n[null==e?void 0:e.type],null==h?void 0:h.types)).some(e=>!0===e.optional)&&(0,a.jsx)("div",{className:"mt-6 flex",children:(0,a.jsxs)(p.z,{variant:"link",onClick:()=>ee(l),children:[(null==S?void 0:S[l])?"Hide":"Show"," optional parameters"]})})]},l)}),(null==y?void 0:null===(c=y[0])||void 0===c?void 0:c.sequence)>0&&(0,a.jsx)("div",{className:"flex items-center justify-center mt-6",children:(0,a.jsx)("button",{type:"button",onClick:()=>{let e=null==v?void 0:v[0];k(l=>[...l,e]);let l=[...j,null==e?void 0:e._variableName],i=new URL(window.location),a=new URLSearchParams(i.search);a.set(g,l.join(",")),window.history.pushState(null,"","".concat(i.pathname,"?").concat(a.toString()))},className:"rounded-full bg-indigo-600 p-1 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 ml-4",children:(0,a.jsx)(J.Z,{className:"h-5 w-5","aria-hidden":"true"})})})]}):null}var el=e=>{let{header:l="Edit now",description:i="Edit these fields",sequence:n=null,children:s}=e,[r,t]=o.useState(!1),d=(0,u.v9)(e=>e.stack.submittedStack);if(n){var c;let e=0,i=null==d?void 0:null===(c=d._variables)||void 0===c?void 0:c[l];if(i){e=i.length,console.log("variables",i),console.log("currentLength",e);let a=new URL(window.location),o=new URLSearchParams(a.search),n=Array(e).fill(l).join(",");o.set(l,n);let s="".concat(a.origin).concat(a.pathname,"?").concat(o.toString());window.history.replaceState(null,"",s),console.log("Updated URL:",s)}}return(0,a.jsxs)("div",{className:"w-full border border-border rounded-lg shadow-sm flex justify-between items-center p-4",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold",children:l}),(0,a.jsxs)(h.Vq,{open:r,onOpenChange:t,children:[(0,a.jsx)(p.z,{variant:"outline",size:"sm",onClick:()=>t(!0),children:"Edit now"}),(0,a.jsxs)(h.cZ,{className:"sm:max-w-[50vw] sm:h-[80vh] flex flex-col p-0",children:[(0,a.jsxs)(h.fK,{className:"p-6",children:[(0,a.jsx)(h.$N,{children:l}),(0,a.jsx)(h.Be,{children:i})]}),(0,a.jsx)(C.x,{className:"flex-grow px-6",children:s}),(0,a.jsx)(h.cN,{className:"p-6",children:(0,a.jsx)(p.z,{onClick:()=>t(!1),children:"Close"})})]})]})]})},ei=i(86288),ea=i(23919);function eo(){let[e,l]=(0,o.useState)(!0);return(0,o.useEffect)(()=>{let e=setTimeout(()=>{l(!1)},2e3);return()=>clearTimeout(e)},[]),(0,a.jsx)(ei.Zb,{className:"w-full max-w-md",children:(0,a.jsx)(ei.aY,{className:"flex items-center space-x-4 p-6",children:e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ea.Z,{className:"h-10 w-10 text-primary animate-spin"}),(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold",children:"Loading..."}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Please wait while we check for schemas."})]})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(V.Z,{className:"h-10 w-10 text-yellow-500"}),(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold",children:"No schema found"}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Please use Developer Mode to create the application."})]})]})})})}var en=i(13271);function es(){for(var e=arguments.length,l=Array(e),i=0;i(null==e?void 0:e.types)&&"object"==typeof e.types?Object.keys(e.types):[];function et(e,l,i){return"code"===e?"code":"text-area"===e?"text-area":"multi-str"===e?"multi-str":"multi-checkbox"===e?"multi-checkbox":"str"===e||"string"===e?l?"select":"str":"int"===e?l?"select":"int":"json"===e||"query"==e?"json":"bool"===e||"boolean"===e?"boolean":"multi-select"===e?"multi-select":"complex"===e?"complex":i.includes(e)?e:"not_found"}function ed(e){return e.some(e=>!0===e.optional)}var ec=function(e){let{simple:l=!1}=e,i=(0,t.useSearchParams)(),n=i.get("identifier");i.get("type_id");let c=(0,u.I0)(),m=(0,u.v9)(e=>e.stack.stackSelectedTemplate),h=(0,u.v9)(e=>{var l;return null==e?void 0:null===(l=e.userInfo)||void 0===l?void 0:l.userInfoLoadedValues}),b=(0,u.v9)(e=>e.stack.submittedStack),[f,g]=(0,o.useState)(0),[j,y]=(0,o.useState)(!0),[k,S]=(0,o.useState)([...en.defaultFormTypes]),[P,F]=(0,o.useState)({}),O=(e,l)=>{let{target:i}=e;F(e=>({...e,[l]:i.value}))};(0,o.useEffect)(()=>{b&&(g(0),S([...k,...er(b)]))},[b]);let I=(e,l)=>{c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[l]:e.target.value}})),g(e=>e+1)},q=(e,l)=>{c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[l]:e}})),g(e=>e+1)},W=(e,l)=>{var i,a,o,n,s;c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[l]:(null==b?void 0:null===(i=b._variables)||void 0===i?void 0:i[l])&&(null==b?void 0:null===(o=b._variables)||void 0===o?void 0:null===(a=o[l])||void 0===a?void 0:a.includes(e.target.value))?[...null==b?void 0:null===(n=b._variables)||void 0===n?void 0:n[l],e.target.value]:[...(null==b?void 0:null===(s=b._variables)||void 0===s?void 0:s[l])||[],e.target.value]}})),g(e=>e+1)},$=(e,l)=>{W({target:{value:e}},l),g(e=>e+1),F(e=>({...e,[l]:""}))},X=(e,l,i)=>{var a,o;let n=l?[...null==b?void 0:null===(a=b._variables)||void 0===a?void 0:a[null==i?void 0:i._variableName],e]:null==b?void 0:null===(o=b._variables)||void 0===o?void 0:o[null==i?void 0:i._variableName].filter(l=>l!==e);c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[null==i?void 0:i._variableName]:n}})),g(e=>e+1)},Q=(e,l)=>{var i,a,o;c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[l]:Array.isArray(null==b?void 0:null===(i=b._variables)||void 0===i?void 0:i[l])?null==b?void 0:null===(o=b._variables)||void 0===o?void 0:null===(a=o[l])||void 0===a?void 0:a.filter((l,i)=>i!==e):[]}})),g(e=>e+1)},K=e=>{c((0,N.q7)({...b,identifier:e.target.value})),g(e=>e+1)};(0,o.useEffect)(()=>{b&&n&&!(null==b?void 0:b.identifier)&&c((0,N.q7)({...b,identifier:n}))},[n,b]);let Y=(e,l)=>{c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[l]:!e}})),g(e=>e+1)},ei=(e,l)=>{let i=e.target.value;try{let e=parseInt(i,10);isNaN(e)?v.ZP.error("The value for ".concat(l," must be an integer."),{id:"integer-error"}):(c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[l]:e}})),g(e=>e+1))}catch(e){console.error("Error:",e),v.ZP.error("The value for ".concat(l," must be an integer."),{id:"integer-error"})}},ea=e=>()=>{var l;c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[e]:(parseInt(null==b?void 0:null===(l=b._variables)||void 0===l?void 0:l[e])||0)+1}})),g(e=>e+1)},ec=e=>()=>{var l;c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[e]:(parseInt(null==b?void 0:null===(l=b._variables)||void 0===l?void 0:l[e])||0)-1}})),g(e=>e+1)},ev=e=>null!=e&&!!e.optional&&!!j,eu=(e,l)=>{try{let i;""===e?i={}:"string"==typeof e?(i=JSON.parse(e),JSON.stringify(i,null,2)):i={},console.log("Parsed JSON:",i),c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[l]:i}}))}catch(i){console.error("Error parsing JSON:",i),c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[l]:e}}))}},em=(e,l)=>{try{c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[l]:e}}))}catch(i){console.error("Error parsing JSON:",i),c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[l]:e}}))}};return b?!m||(null==b?void 0:b.schema)?(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-1.5",children:[!l&&(null==b?void 0:b.schema)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-2 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:"identifier",children:["identifier",(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(0,a.jsx)(z.Z,{popoverheader:"Identifier",popovercontent:(0,a.jsx)("p",{children:"Please provide a unique name for your application. This name is used to identify your application in the system. It should be unique and should not contain any special characters."})})]}),(0,a.jsx)(A.I,{id:"identifier",value:(null==b?void 0:b.identifier)||"",onChange:e=>K(e),placeholder:"",autocomplete:"off"})]}),(null==b?void 0:b.schema)&&w(_(null==b?void 0:b.schema,null==b?void 0:b.types)).map(e=>{var l,i,n,t,c,v,u,m,f,g,N,j,y,_,w,S,F,K,eo,er;return(0,a.jsxs)(o.Fragment,{children:[!ev(e)&&"str"===et(null==e?void 0:e.type,null==e?void 0:e.choices,k)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsx)(A.I,{id:null==e?void 0:e._variableName,value:(null==b?void 0:null===(l=b._variables)||void 0===l?void 0:l[null==e?void 0:e._variableName])||"",onChange:l=>I(l,null==e?void 0:e._variableName),placeholder:(null==e?void 0:e.default)?"Default: ".concat(null==e?void 0:e.default):"Type the ".concat(null==e?void 0:e._variableName," value here"),autocomplete:"off"})]}),!ev(e)&&"select"===et(null==e?void 0:e.type,null==e?void 0:e.choices,k)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsxs)(s.Ph,{value:(null==b?void 0:null===(i=b._variables)||void 0===i?void 0:i[null==e?void 0:e._variableName])||"",onValueChange:l=>q(l,null==e?void 0:e._variableName),children:[(0,a.jsx)(s.i4,{"aria-label":null==e?void 0:e._variableName,className:"w-[280px]",children:(0,a.jsx)(s.ki,{placeholder:"Select an option"})}),(0,a.jsx)(s.Bw,{children:(0,a.jsxs)(s.DI,{children:[(0,a.jsxs)(s.n5,{children:["Select ",null==e?void 0:e._variableName]}),Array.isArray(null==e?void 0:e.choices)&&e.choices.map(e=>(0,a.jsx)(s.Ql,{value:e,children:e},e))]})})]})]}),!ev(e)&&"not_found"===et(null==e?void 0:e.type,null==e?void 0:e.choices,k)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsxs)(U.bZ,{variant:"destructive",children:[(0,a.jsx)(V.Z,{className:"h-4 w-4"}),(0,a.jsx)(U.Cd,{children:"Error"}),(0,a.jsxs)(U.X,{children:["Type: ",(0,a.jsx)(G.C,{variant:"destructive",children:null==e?void 0:e.type})," ","is not a valid type. Please create this type and refer it in the schema."]})]})]}),!ev(e)&&"text-area"===et(null==e?void 0:e.type,null==e?void 0:e.choices,k)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsx)(E,{id:null==e?void 0:e._variableName,value:(null==b?void 0:null===(n=b._variables)||void 0===n?void 0:n[null==e?void 0:e._variableName])||"",onChange:l=>I(l,null==e?void 0:e._variableName),placeholder:(null==e?void 0:e.default)?"Default: ".concat(null==e?void 0:e.default):"Type the ".concat(null==e?void 0:e._variableName," value here"),className:"resize-none",rows:6})]}),!ev(e)&&"boolean"===et(null==e?void 0:e.type,null==e?void 0:e.choices,k)&&(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsxs)(D.r.Group,{as:"div",className:"flex items-center",children:[(0,a.jsx)(D.r,{checked:null==b?void 0:null===(t=b._variables)||void 0===t?void 0:t[null==e?void 0:e._variableName],onChange:()=>{var l;return Y(null==b?void 0:null===(l=b._variables)||void 0===l?void 0:l[null==e?void 0:e._variableName],null==e?void 0:e._variableName)},className:es((null==b?void 0:null===(c=b._variables)||void 0===c?void 0:c[null==e?void 0:e._variableName])?"bg-indigo-600":"bg-gray-200","relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-600 focus:ring-offset-2"),children:(0,a.jsx)("span",{"aria-hidden":"true",className:es((null==b?void 0:null===(v=b._variables)||void 0===v?void 0:v[null==e?void 0:e._variableName])?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out")})}),(0,a.jsxs)(D.r.Label,{as:"span",className:"ml-3 text-sm",children:[(0,a.jsx)("span",{className:"font-medium text-gray-900",children:null==e?void 0:e._variableName})," ",(null==e?void 0:e.optional)?(0,a.jsx)("span",{className:"text-gray-500",children:"(optional)"}):(0,a.jsx)("span",{className:"text-rose-500",children:"*"}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]})]})})}),!ev(e)&&"multi-select"===et(null==e?void 0:e.type,null==e?void 0:e.choices,k)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})}),(0,a.jsxs)("div",{className:"mt-0 items-center gap-x-2.5 gap-y-2.5 text-xs leading-5 text-gray-400",children:[(0,a.jsxs)("p",{className:"whitespace-nowrap",children:["Selected values:"," ",(null==b?void 0:null===(u=b._variables)||void 0===u?void 0:u[null==e?void 0:e._variableName])&&(null==b?void 0:null===(f=b._variables)||void 0===f?void 0:null===(m=f[null==e?void 0:e._variableName])||void 0===m?void 0:m.length)===0&&(0,a.jsx)("span",{children:"None"})]}),(null==b?void 0:null===(g=b._variables)||void 0===g?void 0:g[null==e?void 0:e._variableName])&&(null==b?void 0:null===(N=b._variables)||void 0===N?void 0:N[null==e?void 0:e._variableName].map((l,i)=>(0,a.jsxs)("button",{type:"button",className:"inline-flex items-center rounded-full bg-white m-0.5 px-2.5 py-1 text-xs font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:[l,(0,a.jsx)(R.Z,{onClick:()=>Q(i,null==e?void 0:e._variableName),className:"ml-1 h-4 w-4 text-gray-400 hover:text-gray-600","aria-hidden":"true"})]},i)))]})]}),(0,a.jsxs)("select",{id:null==e?void 0:e.name,name:null==e?void 0:e.name,value:"",onChange:l=>W(l,null==e?void 0:e._variableName),placeholder:(null==e?void 0:e.default)?"Default: ".concat(null==e?void 0:e.default):"Type the ".concat(null==e?void 0:e.name," value here"),className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[(0,a.jsx)("option",{value:"",children:"Select values to create sequence"},"uploadArtifact"),Array.isArray(null==e?void 0:e.choices)?e.choices.map(e=>(0,a.jsx)("option",{value:e,children:e},e)):"string"==typeof(null==e?void 0:e.choices)&&e.choices.startsWith("$")?M(null==b?void 0:b._variables,e.choices).map(e=>(0,a.jsx)("option",{value:e,children:e},e)):"string"==typeof(null==e?void 0:e.choices)&&e.choices.startsWith("/")?(0,a.jsx)(L,{choices:e.choices,authHeaderToken:(0,x.Z)(h)}):null]},JSON.stringify(null==b?void 0:null===(j=b._variables)||void 0===j?void 0:j[null==e?void 0:e._variableName]))]}),!ev(e)&&"multi-str"===et(null==e?void 0:e.type,null==e?void 0:e.choices,k)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(null==b?void 0:null===(y=b._variables)||void 0===y?void 0:y[null==e?void 0:e._variableName])&&(null==b?void 0:null===(_=b._variables)||void 0===_?void 0:_[null==e?void 0:e._variableName].map((l,i)=>(0,a.jsxs)("button",{type:"button",className:"inline-flex m-0.5 items-center rounded-full bg-white px-2.5 py-1 text-xs font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:[l,(0,a.jsx)(R.Z,{onClick:()=>Q(i,null==e?void 0:e._variableName),className:"ml-1 h-4 w-4 text-gray-400 hover:text-gray-600","aria-hidden":"true"})]},i))),(0,a.jsxs)("div",{className:"flex space-x-2 mt-2",children:[(0,a.jsx)(A.I,{id:null==e?void 0:e.name,name:null==e?void 0:e.name,type:"text",value:P[null==e?void 0:e._variableName]||"",placeholder:"Type the ".concat(null==e?void 0:e._variableName," value here"),onChange:l=>O(l,null==e?void 0:e._variableName),className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6","aria-label":"Enter item"}),(0,a.jsx)(p.z,{type:"button",onClick:()=>{$(P[null==e?void 0:e._variableName],null==e?void 0:e._variableName)},"aria-label":"Add ".concat(null==e?void 0:e._variableName),disabled:!(null===(w=P[null==e?void 0:e._variableName])||void 0===w?void 0:w.trim()),className:"justify-center p-2 rounded bg-indigo-600 text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-600 focus:ring-offset-2",children:(0,a.jsx)(J.Z,{className:"h-4 w-4"})})]})]}),!ev(e)&&"multi-checkbox"===et(null==e?void 0:e.type,null==e?void 0:e.choices,k)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsx)(C.x,{className:"h-72 w-full rounded-md border",children:(0,a.jsx)("div",{className:"flex space-x-2 mt-2 m-2",children:(0,a.jsx)("div",{className:"space-y-4",children:Array.isArray(null==e?void 0:e.choices)?e.choices.map(l=>{var i,o;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(Z.X,{id:l,checked:null==b?void 0:null===(o=b._variables)||void 0===o?void 0:null===(i=o[null==e?void 0:e._variableName])||void 0===i?void 0:i.includes(l),onCheckedChange:i=>X(l,i,e)}),(0,a.jsx)("label",{htmlFor:l,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:l})]},l),(0,a.jsx)(T,{className:"my-16"})]})}):"string"==typeof(null==e?void 0:e.choices)&&e.choices.startsWith("$")?M(null==b?void 0:b._variables,e.choices).map(l=>{var i,o;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(Z.X,{id:l,checked:null==b?void 0:null===(o=b._variables)||void 0===o?void 0:null===(i=o[null==e?void 0:e._variableName])||void 0===i?void 0:i.includes(l),onCheckedChange:i=>X(l,i,e)}),(0,a.jsx)("label",{htmlFor:l,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:l})]},l),(0,a.jsx)(T,{className:"my-16"})]})}):null})})})]}),!ev(e)&&"int"===et(null==e?void 0:e.type,null==e?void 0:e.choices,k)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsxs)("div",{className:"flex items-center justify-left",children:[(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("button",{type:"button",onClick:ec(null==e?void 0:e._variableName),className:"rounded-full bg-indigo-600 p-1 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 mr-4",children:(0,a.jsx)(B.Z,{className:"h-5 w-5","aria-hidden":"true"})}),(0,a.jsx)("input",{type:"int",className:"w-16 text-center block rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",id:null==e?void 0:e._variableName,value:(null==b?void 0:null===(S=b._variables)||void 0===S?void 0:S[null==e?void 0:e._variableName])||0,onChange:l=>ei(l,null==e?void 0:e._variableName)}),(0,a.jsx)("button",{type:"button",onClick:ea(null==e?void 0:e._variableName),className:"rounded-full bg-indigo-600 p-1 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 ml-4",children:(0,a.jsx)(J.Z,{className:"h-5 w-5","aria-hidden":"true"})})]})]}),!ev(e)&&"json"===et(null==e?void 0:e.type,null==e?void 0:e.choices,k)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsx)(d.default,{className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Here you can pass a dictionary as value. e.g. {key: value}",mode:"json",theme:"twilight",name:null==e?void 0:e._variableName,onChange:l=>eu(l,null==e?void 0:e._variableName),fontSize:13,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:"object"==typeof(null==b?void 0:null===(F=b._variables)||void 0===F?void 0:F[null==e?void 0:e._variableName])?JSON.stringify(null==b?void 0:null===(K=b._variables)||void 0===K?void 0:K[null==e?void 0:e._variableName],null," "):(null==b?void 0:null===(eo=b._variables)||void 0===eo?void 0:eo[null==e?void 0:e._variableName])||"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,style:{width:"100%",height:"200px"}})]}),!ev(e)&&"code"===et(null==e?void 0:e.type,null==e?void 0:e.choices,k)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(r._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(z.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsx)(d.default,{className:"mt-2 rounded-md border-2 py-1.5 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Write Python here...",mode:"python",theme:"tomorrow",name:null==e?void 0:e._variableName,onChange:l=>em(l,null==e?void 0:e._variableName),fontSize:13,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:(null==b?void 0:null===(er=b._variables)||void 0===er?void 0:er[null==e?void 0:e._variableName])||"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,style:{width:"100%",height:"200px"}})]}),"not_found"!==et(null==e?void 0:e.type,null==e?void 0:e.choices,k)&&!en.defaultFormTypes.includes(et(null==e?void 0:e.type,null==e?void 0:e.choices,k))&&(!ev(e)||"complex"===et(null==e?void 0:e.type,null==e?void 0:e.choices,k))&&(0,a.jsxs)("div",{children:[(0,a.jsx)("br",{}),(0,a.jsx)(el,{header:null==e?void 0:e._variableName,sequence:null==e?void 0:e.sequence,className:"mt-4",children:(null==e?void 0:e.sequence)?(0,a.jsx)(ee,{complexFields:[e]}):(0,a.jsx)(H,{complexField:e})})]})]},null==e?void 0:e._variableName)}),ed(w(_(null==b?void 0:b.schema,null==b?void 0:b.types)))&&j&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("ul",{role:"list",className:"mt-6 divide-y divide-gray-200 border-b border-t border-gray-200"}),(0,a.jsx)("div",{className:"mt-6 flex",children:(0,a.jsxs)("span",{className:"text-sm font-medium text-indigo-600 hover:text-indigo-500",onClick:()=>{y(!j)},children:["Show optional parameters",(0,a.jsx)("span",{"aria-hidden":"true",children:" →"})]})})]}),ed(w(_(null==b?void 0:b.schema,null==b?void 0:b.types)))&&!j&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("ul",{role:"list",className:"mt-6 divide-y divide-gray-200 border-b border-t border-gray-200"}),(0,a.jsx)("div",{className:"mt-6 flex",children:(0,a.jsxs)("span",{className:"text-sm font-medium text-indigo-600 hover:text-indigo-500",onClick:()=>{y(!j)},children:["Hide optional parameters",(0,a.jsx)("span",{"aria-hidden":"true",children:" ←"})]})})]})]}):(0,a.jsx)(eo,{}):null},ev=i(45246);let{getReasonPhrase:eu}=i(70194);function em(e){let{simple:l=!1,autoselect:i=!1}=e,d=(0,t.useRouter)(),c=(0,u.v9)(e=>e.environment.environmentLoadedValues),m=(0,t.useSearchParams)(),h=m.get("identifier"),p=m.get("type_id"),b=(0,u.v9)(e=>e.stack.stackSelectedTemplate),f=(0,u.v9)(e=>{var l;return null==e?void 0:null===(l=e.userInfo)||void 0===l?void 0:l.userInfoLoadedValues}),j=(0,u.I0)(),[y,_]=(0,o.useState)("{}"),[w,S]=(0,o.useState)({}),A=()=>{d.push("/webui/add-application",void 0,{shallow:!0}),j((0,N.v$)("")),_(""),S({}),j((0,N.q7)(""))};(0,o.useEffect)(()=>{let e=n.Z.CancelToken.source(),l=async()=>{try{let l=await n.Z.get("".concat("".concat("http://localhost:8000","/db/show?type_id=template")),{headers:{Accept:"application/json",Authorization:(0,x.Z)(f),superduper_reverse_proxy:"http://localhost:8000"},cancelToken:e.token});C([...l.data])}catch(e){n.Z.isCancel(e)?console.log("Request canceled",e.message):console.error("Error fetching Services API data.",e)}};return h&&p||l(),()=>{e.cancel("Operation canceled by the user.")}},[h,p,f,c]);let[Z,C]=(0,o.useState)(["No template added yet"]),[P,F]=(0,o.useState)("");if((0,o.useEffect)(()=>{if(!h||!p)return;let e=n.Z.CancelToken.source(),l=async(l,i)=>{try{return(await n.Z.get(l,{headers:i,cancelToken:e.token})).data}catch(e){n.Z.isCancel(e)?console.log("Request canceled",e.message):console.error("Error fetching data from ".concat(l," edit api:"),e)}};return(async()=>{let e="".concat("http://localhost:8000","/db/edit?type_id=").concat(p,"&identifier=").concat(h),i={Accept:"application/json",Authorization:(0,x.Z)(f),superduper_reverse_proxy:"http://localhost:8000"};try{let a=await l(e,i);a&&(j((0,N.v$)(h)),j((0,N.q7)(a)))}catch(e){v.ZP.error("Error fetching edit api."),F(e)}})(),()=>{e.cancel("Operation canceled by the user.")}},[h,p,f,c]),P){var E;let e=(null==P?void 0:P.status)||404,l=eu(e)||"Service Unavailable";return(0,a.jsx)(ev.Z,{header:"Failed to fetch template data",shortMessage:l,status:e,description:(0,a.jsx)("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:"Status: ".concat(e,",\nMessage: ").concat("object"==typeof(null==P?void 0:null===(E=P.response)||void 0===E?void 0:E.data)?JSON.stringify(P.response.data,null,2):(null==P?void 0:P.message)||"Unknown error occurred")})})}return(0,a.jsxs)(a.Fragment,{children:[!l&&!h&&!p&&(0,a.jsxs)("div",{className:"max-w-3xl",children:[(0,a.jsxs)(r._,{htmlFor:"terms",children:["Select a template"," ",b&&(0,a.jsx)("span",{onClick:A,className:"bg-transparent border-none text-indigo-500 cursor-pointer p-0",children:"(Remove Selection)"})]}),(0,a.jsxs)(s.Ph,{value:b,onValueChange:e=>{l||A(),j((0,N.v$)(e));let i=()=>{v.ZP.error("Error fetching template API data. Please check your connection. ");let e={error:"Error fetching template API data. No template information found!"};_(JSON.stringify(e,null,2)),j((0,N.q7)(e)),console.log("Error fetching template API data. Please check your connection. So returning to fallback data!")};(async()=>{try{let l=await n.Z.get("".concat("".concat("http://localhost:8000","/db/show_template?identifier=").concat(e)),{headers:{Accept:"application/json",Authorization:(0,x.Z)(f),superduper_reverse_proxy:"http://localhost:8000"}});console.log("/webui/restapi/db/show_template?identifier=".concat(e),l.data);let i={...l.data,build_template:e};j((0,N.q7)(k(i)))}catch(e){console.log("Error fetching API",e),i()}})()},children:[(0,a.jsx)(s.i4,{className:"w-3/6 mt-2 mb-2",children:(0,a.jsx)(s.ki,{placeholder:"Select a template"})}),(0,a.jsx)(s.Bw,{children:(0,a.jsxs)(s.DI,{children:[(0,a.jsx)(s.n5,{children:"Select a template"}),null==Z?void 0:Z.map((e,l)=>(0,a.jsx)(s.Ql,{value:e,children:e},l))]})})]})]}),!l&&!h&&!p&&(0,a.jsx)("br",{}),(0,a.jsx)(ec,{simple:l}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),!l&&(0,a.jsx)(g,{})]})}var eh=i(61883),ep=i(52269),ex=i(58153),eb=i(64386),ef=i(24878),eg=i(25820);function eN(e){let{id:l="default-id",onGoBack:i=()=>{}}=e,[n,s]=(0,o.useState)([]),[r,t]=(0,o.useState)(!0),[d,c]=(0,o.useState)(null),[v,u]=(0,o.useState)(!1),m=(0,o.useRef)(null),h=async()=>{t(!0),c(null),s([]);try{let e=await fetch("".concat("http://localhost:8000","/stdout?id=").concat(l));if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let i=e.body.getReader(),a=new TextDecoder;for(;;){let{value:e,done:l}=await i.read();if(l){console.log("Stream complete");break}let o=a.decode(e,{stream:!0}).split("\n").filter(e=>""!==e.trim());s(e=>[...e,...o]),t(!1)}}catch(e){console.error("Error fetching logs:",e),c("Failed to fetch logs: ".concat(e.message))}finally{t(!1)}};return(0,o.useEffect)(()=>(h(),()=>{}),[l]),(0,o.useEffect)(()=>{m.current&&(m.current.scrollTop=m.current.scrollHeight)},[n]),(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,a.jsx)("div",{className:"py-4 w-full max-w-7xl",children:(0,a.jsx)("a",{href:"/webui/application",onClick:i,children:(0,a.jsxs)(p.z,{className:"flex items-center space-x-2",children:[(0,a.jsx)(eh.Z,{className:"mr-2 h-4 w-4"}),(0,a.jsx)("span",{children:"Go back"})]})})}),(0,a.jsx)("div",{className:"w-full max-w-7xl bg-white shadow-lg rounded-lg overflow-hidden",children:(0,a.jsx)("div",{className:"w-full bg-gray-900 ".concat(v?"fixed inset-0 z-50":"min-h-0"),children:(0,a.jsxs)("div",{className:"w-full flex flex-col h-full",children:[(0,a.jsxs)("div",{className:"bg-gray-800 p-3 flex items-center justify-between border-b border-gray-700",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsxs)("div",{className:"flex space-x-2",children:[(0,a.jsx)("div",{className:"w-3 h-3 rounded-full bg-red-500"}),(0,a.jsx)("div",{className:"w-3 h-3 rounded-full bg-yellow-500"}),(0,a.jsx)("div",{className:"w-3 h-3 rounded-full bg-green-500"})]}),(0,a.jsxs)("span",{className:"text-gray-300 ml-4 font-mono",children:["Terminal - Apply Application Logs (",l,")"]})]}),(0,a.jsx)("button",{onClick:()=>{u(!v)},className:"text-gray-400 hover:text-gray-200",children:v?(0,a.jsx)(ep.Z,{className:"w-5 h-5"}):(0,a.jsx)(ex.Z,{className:"w-5 h-5"})})]}),(0,a.jsx)("div",{className:"p-4 overflow-hidden ".concat(v?"flex-1":"h-[400px]"),children:r?(0,a.jsxs)("div",{className:"flex items-center space-x-2 text-gray-300",children:[(0,a.jsx)(eb.Z,{className:"animate-spin"}),(0,a.jsx)("span",{className:"font-mono",children:"Initializing terminal session..."})]}):d?(0,a.jsxs)("div",{className:"text-red-400 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2 font-mono",children:[(0,a.jsx)(V.Z,{className:"w-5 h-5"}),(0,a.jsxs)("span",{children:["Error: ",d]})]}),(0,a.jsxs)("button",{onClick:h,className:"flex items-center space-x-2 px-3 py-1 bg-gray-700 text-gray-200 rounded hover:bg-gray-600 font-mono",children:[(0,a.jsx)(ef.Z,{className:"w-4 h-4"}),(0,a.jsx)("span",{children:"Retry Connection"})]})]}):n.length>0?(0,a.jsx)("div",{ref:m,className:"font-mono text-sm text-green-400 overflow-y-auto h-full",children:n.map((e,l)=>(0,a.jsx)("div",{className:"whitespace-pre-wrap py-0.5 border-b border-gray-800/50 last:border-0",children:e},l))}):(0,a.jsx)("div",{className:"text-gray-500 font-mono",children:"No logs available. Waiting for data..."})}),(0,a.jsx)("div",{className:"bg-gray-800 p-2 border-t border-gray-700",children:(0,a.jsxs)("div",{className:"flex items-center justify-between text-xs text-gray-400 font-mono",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(eg.Z,{className:"w-4 h-4 text-green-500"}),(0,a.jsx)("span",{children:"Connected to logs"})]}),(0,a.jsx)("span",{children:new Date().toLocaleTimeString()})]})})]})})})]})}var ej=i(56146),ey=i(40837);function e_(){let[e,l]=(0,o.useState)(!1),i=(0,t.useSearchParams)(),n=i.get("id"),s=i.get("identifier"),r=i.get("type_id");return n?(0,a.jsx)(eN,{id:n}):(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-3xl",children:[(0,a.jsx)(ej.aG,{children:(0,a.jsxs)(ej.Jb,{children:[(0,a.jsx)(ej.gN,{children:(0,a.jsx)(ej.At,{href:"/webui",children:"Home"})}),(0,a.jsx)(ej.bg,{}),(0,a.jsx)(ej.gN,{children:(0,a.jsx)(ej.At,{href:"/webui/application",children:"Application"})}),(0,a.jsx)(ej.bg,{}),(0,a.jsx)(ej.gN,{children:(0,a.jsx)(ej.AG,{children:(0,a.jsx)("a",{href:"/webui/application",children:r&&s?"Edit Application":"Add Application"})})})]})}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsxs)("div",{className:"border-b border-gray-200 pb-4 mb-4",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,a.jsx)("h1",{className:"text-2xl font-semibold leading-7 text-gray-900",children:r&&s?"Edit application":"Create application"}),(0,a.jsxs)(p.z,{variant:"outline",onClick:()=>l(!0),className:"flex items-center gap-2",children:[(0,a.jsx)(ey.Z,{className:"w-4 h-4"}),"Developer mode"]})]}),(0,a.jsx)("p",{className:"text-sm text-gray-500",children:r&&s?"Edit your application and click apply changes":"Set up your new application in a minute!"}),(0,a.jsx)(h.Vq,{open:e,onOpenChange:l,children:(0,a.jsxs)(h.cZ,{className:"sm:max-w-[1000px] max-h-[80vh] flex flex-col",children:[(0,a.jsxs)(h.fK,{children:[(0,a.jsx)(h.$N,{children:"Developer Mode"}),(0,a.jsx)(h.Be,{children:"Access advanced settings and configurations for your application."})]}),(0,a.jsx)("div",{className:"flex-1 overflow-y-auto py-6",children:(0,a.jsx)("div",{className:"m-2",children:(0,a.jsx)(S,{simple:!0})})})]})})]}),(0,a.jsx)("br",{}),(0,a.jsx)(em,{})]})})}var ew=i(70007),ek=(0,i(4867).N)(function(){return(0,a.jsx)(ew.Z,{activeNavItem:"/webui/application",children:(0,a.jsx)("main",{className:"py-10",children:(0,a.jsx)("div",{className:"px-4 sm:px-6 lg:px-8",children:(0,a.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,a.jsx)("div",{className:"mx-auto max-w-7xl",children:(0,a.jsx)(e_,{})})})})})})})},72513:function(e,l,i){"use strict";i.d(l,{Cd:function(){return d},X:function(){return c},bZ:function(){return t}});var a=i(27573),o=i(7653),n=i(85145),s=i(18580);let r=(0,n.j)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),t=o.forwardRef((e,l)=>{let{className:i,variant:o,...n}=e;return(0,a.jsx)("div",{ref:l,role:"alert",className:(0,s.cn)(r({variant:o}),i),...n})});t.displayName="Alert";let d=o.forwardRef((e,l)=>{let{className:i,...o}=e;return(0,a.jsx)("h5",{ref:l,className:(0,s.cn)("mb-1 font-medium leading-none tracking-tight",i),...o})});d.displayName="AlertTitle";let c=o.forwardRef((e,l)=>{let{className:i,...o}=e;return(0,a.jsx)("div",{ref:l,className:(0,s.cn)("text-sm [&_p]:leading-relaxed",i),...o})});c.displayName="AlertDescription"},56146:function(e,l,i){"use strict";i.d(l,{AG:function(){return u},At:function(){return v},Jb:function(){return d},aG:function(){return t},bg:function(){return m},gN:function(){return c}});var a=i(27573),o=i(7653),n=i(85688),s=i(8828),r=i(18580);let t=o.forwardRef((e,l)=>{let{...i}=e;return(0,a.jsx)("nav",{ref:l,"aria-label":"breadcrumb",...i})});t.displayName="Breadcrumb";let d=o.forwardRef((e,l)=>{let{className:i,...o}=e;return(0,a.jsx)("ol",{ref:l,className:(0,r.cn)("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",i),...o})});d.displayName="BreadcrumbList";let c=o.forwardRef((e,l)=>{let{className:i,...o}=e;return(0,a.jsx)("li",{ref:l,className:(0,r.cn)("inline-flex items-center gap-1.5",i),...o})});c.displayName="BreadcrumbItem";let v=o.forwardRef((e,l)=>{let{asChild:i,className:o,...n}=e,t=i?s.g7:"a";return(0,a.jsx)(t,{ref:l,className:(0,r.cn)("transition-colors hover:text-foreground",o),...n})});v.displayName="BreadcrumbLink";let u=o.forwardRef((e,l)=>{let{className:i,...o}=e;return(0,a.jsx)("span",{ref:l,role:"link","aria-disabled":"true","aria-current":"page",className:(0,r.cn)("font-normal text-foreground",i),...o})});u.displayName="BreadcrumbPage";let m=e=>{let{children:l,className:i,...o}=e;return(0,a.jsx)("li",{role:"presentation","aria-hidden":"true",className:(0,r.cn)("[&>svg]:size-3.5",i),...o,children:null!=l?l:(0,a.jsx)(n.XCv,{})})};m.displayName="BreadcrumbSeparator"},4216:function(e,l,i){"use strict";i.d(l,{X:function(){return t}});var a=i(27573),o=i(7653),n=i(92999),s=i(85688),r=i(18580);let t=o.forwardRef((e,l)=>{let{className:i,...o}=e;return(0,a.jsx)(n.fC,{ref:l,className:(0,r.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",i),...o,children:(0,a.jsx)(n.z$,{className:(0,r.cn)("flex items-center justify-center text-current"),children:(0,a.jsx)(s.nQG,{className:"h-4 w-4"})})})});t.displayName=n.fC.displayName},63052:function(e,l,i){"use strict";i.d(l,{Bw:function(){return h},DI:function(){return d},Ph:function(){return t},Ql:function(){return x},i4:function(){return v},ki:function(){return c},n5:function(){return p}});var a=i(27573),o=i(7653),n=i(85688),s=i(66240),r=i(18580);let t=s.fC,d=s.ZA,c=s.B4,v=o.forwardRef((e,l)=>{let{className:i,children:o,...t}=e;return(0,a.jsxs)(s.xz,{ref:l,className:(0,r.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",i),...t,children:[o,(0,a.jsx)(s.JO,{asChild:!0,children:(0,a.jsx)(n.jnn,{className:"h-4 w-4 opacity-50"})})]})});v.displayName=s.xz.displayName;let u=o.forwardRef((e,l)=>{let{className:i,...o}=e;return(0,a.jsx)(s.u_,{ref:l,className:(0,r.cn)("flex cursor-default items-center justify-center py-1",i),...o,children:(0,a.jsx)(n.g8U,{})})});u.displayName=s.u_.displayName;let m=o.forwardRef((e,l)=>{let{className:i,...o}=e;return(0,a.jsx)(s.$G,{ref:l,className:(0,r.cn)("flex cursor-default items-center justify-center py-1",i),...o,children:(0,a.jsx)(n.v4q,{})})});m.displayName=s.$G.displayName;let h=o.forwardRef((e,l)=>{let{className:i,children:o,position:n="popper",...t}=e;return(0,a.jsx)(s.h_,{children:(0,a.jsxs)(s.VY,{ref:l,className:(0,r.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",i),position:n,...t,children:[(0,a.jsx)(u,{}),(0,a.jsx)(s.l_,{className:(0,r.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),(0,a.jsx)(m,{})]})})});h.displayName=s.VY.displayName;let p=o.forwardRef((e,l)=>{let{className:i,...o}=e;return(0,a.jsx)(s.__,{ref:l,className:(0,r.cn)("px-2 py-1.5 text-sm font-semibold",i),...o})});p.displayName=s.__.displayName;let x=o.forwardRef((e,l)=>{let{className:i,children:o,...t}=e;return(0,a.jsxs)(s.ck,{ref:l,className:(0,r.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",i),...t,children:[(0,a.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(s.wU,{children:(0,a.jsx)(n.nQG,{className:"h-4 w-4"})})}),(0,a.jsx)(s.eT,{children:o})]})});x.displayName=s.ck.displayName,o.forwardRef((e,l)=>{let{className:i,...o}=e;return(0,a.jsx)(s.Z0,{ref:l,className:(0,r.cn)("-mx-1 my-1 h-px bg-muted",i),...o})}).displayName=s.Z0.displayName},91894:function(e,l,i){"use strict";var a=i(27573),o=i(7653),n=i(412),s=i(33597),r=i(36531);function t(e){return(0,a.jsx)("svg",{...e,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",children:(0,a.jsx)("path",{d:"m6 9 6 6 6-6"})})}function d(e){return(0,a.jsx)("svg",{...e,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",children:(0,a.jsx)("path",{d:"m18 15-6-6-6 6"})})}l.Z=()=>{let e=(0,n.v9)(e=>e.uploadFiles.uploadFilesLoadedValues||[]),[l,i]=(0,o.useState)(!1),[c,v]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{0===e.length||c||i(!0)},[e,c]),(0,a.jsxs)("div",{children:[(0,a.jsxs)(r.z,{variant:"secondary",onClick:()=>{i(!l),v(!0)},children:["Upload Artifact",l?(0,a.jsx)(d,{className:"ml-2 h-4 w-4"}):(0,a.jsx)(t,{className:"ml-2 h-4 w-4"})]}),(l||!c&&0!==e.length)&&(0,a.jsx)("div",{className:"col-span-full mt-2",children:(0,a.jsx)(s.Z,{})})]})}},87191:function(e,l,i){"use strict";i.d(l,{Z:function(){return d}});var a=i(27573),o=i(7653),n=i(22392);i(40020),i(19234),i(83346);var s=i(412),r=i(24017),t=i(93296);function d(e){let{data:l,height:i="300px"}=e,d=(0,s.I0)(),[c,v]=(0,o.useState)(JSON.stringify(l,null," "));return(0,o.useRef)(null),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(n.default,{className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Stack result JSON here...",mode:"json",theme:"github",name:"blah2",onChange:e=>{try{v(e),d((0,r.q7)(JSON.parse(e)))}catch(e){t.ZP.error("Error updating...",{id:"stack-update-error"})}},fontSize:13,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:c,setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,useWorker:!1,wrap:!0},height:i,width:"100%"})})}},55623:function(e){"use strict";e.exports=["str","string","bool","select","boolean","text-area","multi-select","multi-str","multi-checkbox","complex","int","json","code"]},13271:function(e,l,i){"use strict";let a=i(36509),o=i(53971),n=i(33181),s=i(55623);e.exports={tailwindConfig:a,postcssConfig:o,nextBaseConfig:n,defaultFormTypes:s}},33181:function(e){"use strict";e.exports={output:"export",reactStrictMode:!1,eslint:{ignoreDuringBuilds:!0},swcMinify:!0,headers:async()=>[{source:"/api/:path*",headers:[{key:"Access-Control-Allow-Credentials",value:"true"},{key:"Access-Control-Allow-Origin",value:"*"},{key:"Access-Control-Allow-Methods",value:"GET,DELETE,PATCH,POST,PUT"},{key:"Access-Control-Allow-Headers",value:"X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"}]}],assetPrefix:void 0,experimental:{missingSuspenseWithCSRBailout:!1,proxyTimeout:36e4},redirects:async()=>[{source:"/",destination:"/webui",permanent:!0}],rewrites:async()=>[{source:"/webui/apiserver/:path*",destination:"".concat("","/:path*")},{source:"/webui/restapi/:path*",destination:"".concat("http://localhost:8000","/:path*")},{source:"/webui_api/:path*",destination:"/api/:path*"}]}},53971:function(e){"use strict";e.exports={plugins:{tailwindcss:{},autoprefixer:{}}}},36509:function(e,l,i){"use strict";e.exports={darkMode:["class"],content:["./pages/**/*.{js,ts,jsx,tsx,mdx}","./components/**/*.{js,ts,jsx,tsx,mdx}","./app/**/*.{js,ts,jsx,tsx,mdx}","./src/**/*.{js,ts,jsx,tsx,mdx}","../components/**/*.{js,ts,jsx,tsx,mdx}","../../components/**/*.{js,ts,jsx,tsx,mdx}","../../utils/**/*.{js,ts,jsx,tsx,mdx}"],prefix:"",theme:{container:{center:!0,padding:"2rem",screens:{"2xl":"1400px"}},extend:{colors:{indigo:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},supercolor:{50:"#ede7ff",100:"#d2befd",200:"#b692fc",300:"#9a67ea",400:"#7f3dfd",500:"#7628f8",600:"#5b0cb8",700:"#4c0a91",800:"#3e086b",900:"#32074f"},border:"hsl(var(--border))",input:"hsl(var(--input))",ring:"hsl(var(--ring))",background:"hsl(var(--background))",backgroundImage:{"gradient-radial":"radial-gradient(var(--tw-gradient-stops))","gradient-conic":"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))"},foreground:"hsl(var(--foreground))",primary:{DEFAULT:"hsl(var(--primary))",foreground:"hsl(var(--primary-foreground))"},secondary:{DEFAULT:"hsl(var(--secondary))",foreground:"hsl(var(--secondary-foreground))"},destructive:{DEFAULT:"hsl(var(--destructive))",foreground:"hsl(var(--destructive-foreground))"},muted:{DEFAULT:"hsl(var(--muted))",foreground:"hsl(var(--muted-foreground))"},accent:{DEFAULT:"hsl(var(--accent))",foreground:"hsl(var(--accent-foreground))"},popover:{DEFAULT:"hsl(var(--popover))",foreground:"hsl(var(--popover-foreground))"},card:{DEFAULT:"hsl(var(--card))",foreground:"hsl(var(--card-foreground))"}},borderRadius:{lg:"var(--radius)",md:"calc(var(--radius) - 2px)",sm:"calc(var(--radius) - 4px)"},keyframes:{"accordion-down":{from:{height:"0"},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:"0"}}},animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out"}}},plugins:[i(4821),i(58173)]}}},function(e){e.O(0,[5458,7441,3296,8320,8374,3908,7653,7050,6340,4112,9115,3406,8113,8743,3696,935,1826,2895,1293,1528,1744],function(){return e(e.s=69386)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/app/webui/add-application/page-fef2d1681a696a06.js b/superduper/rest/out/_next/static/chunks/app/webui/add-application/page-fef2d1681a696a06.js new file mode 100644 index 000000000..7c6edddf7 --- /dev/null +++ b/superduper/rest/out/_next/static/chunks/app/webui/add-application/page-fef2d1681a696a06.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5834],{78186:function(e,l,i){Promise.resolve().then(i.bind(i,79455))},79455:function(e,l,i){"use strict";i.r(l),i.d(l,{default:function(){return eP}});var a=i(27573),o=i(7653),n=i(13908),s=i(63052),t=i(97747),r=i(81695),d=i(22392);i(40020),i(19234),i(83346);var c=i(88146),v=i(93296),u=i(412),m=i(87191),h=i(24776),p=i(36531),x=i(7109),b=i(63612),f=i(74859);function g(e){let{simple:l=!1}=e,i=(0,r.useSearchParams)(),n=i.get("identifier"),s=i.get("type_id");(0,u.v9)(e=>e.environment.environmentLoadedValues);let t=(0,u.v9)(e=>{var l;return null==e?void 0:null===(l=e.userInfo)||void 0===l?void 0:l.userInfoLoadedValues});(0,r.useRouter)();let d=(0,u.v9)(e=>e.stack.stackUpdateByIndex),g=(0,u.v9)(e=>e.stack.submittedStack),[N,j]=(0,o.useState)(null),[y,_]=(0,o.useState)(!1),[w,S]=(0,o.useState)(!1),[k,A]=(0,o.useState)(null);function Z(){if(!g){v.ZP.error("Error adding application",{id:"form-error"});return}let e=(0,b.Z)();v.ZP.loading("Adding application...",{id:"adding"});try{fetch("".concat("".concat("http://localhost:8000","/db/apply?id=").concat(e)),{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:(0,x.Z)(t),superduper_reverse_proxy:"http://localhost:8000"},body:JSON.stringify(g,null," ")}).then(e=>{if(!e.ok){if(500===e.status)return e.json().then(e=>{throw console.log("Error response data:",e),A(e),Error("Server error")});throw Error("Network response was not ok")}return e.json()}).then(l=>{v.ZP.dismiss("adding"),console.log("Data from:",l),v.ZP.success("Application added successfully"),setTimeout(()=>{w||("true"===f.env.NEXT_PUBLIC_SNOWFLAKE?window.location.assign("/webui/application?id=".concat(e)):window.location.assign("/webui/add-application?id=".concat(e)))},1e3)}).catch(e=>{S(!0),console.error("Error fetching API data",e),v.ZP.error("Error adding application",{id:"form-error"}),v.ZP.dismiss("adding")})}catch(e){v.ZP.dismiss("adding"),S(!0),v.ZP.error("Error adding application",{id:"form-error"})}}return d?l?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{onClick:e=>{e.preventDefault,_(!0)},className:"rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:s&&n?"Apply Changes":"Add Application"}),(0,a.jsx)(h.Vq,{open:y,onOpenChange:()=>_(!1),children:(0,a.jsxs)(h.cZ,{className:"sm:max-w-[768px]",children:[(0,a.jsxs)(h.fK,{children:[(0,a.jsx)(h.$N,{children:"Review the application"}),(0,a.jsx)(h.Be,{children:"This will be added to the database. Please review the application before confirming."})]}),g?(0,a.jsx)(m.Z,{data:g}):"Preparing application...",(0,a.jsx)(h.cN,{children:(0,a.jsx)(p.z,{type:"submit",onClick:()=>{Z()},children:"Save changes"})})]})}),(0,a.jsx)(h.Vq,{open:w,onOpenChange:e=>{e||(_(!1),S(!1))},children:(0,a.jsxs)(h.cZ,{className:"sm:max-w-[768px]",children:[(0,a.jsxs)(h.fK,{children:[(0,a.jsx)(h.$N,{children:"Failed Adding Application"}),(0,a.jsx)(h.Be,{children:"Please review the error message and try again."})]}),(0,a.jsx)("strong",{children:"Error Message"}),k?(0,a.jsx)(m.Z,{data:k,height:100}):"Loading ...",(0,a.jsx)("strong",{children:"Submitted"}),g?(0,a.jsx)(m.Z,{data:g,height:"150px"}):"Preparing application...",(0,a.jsxs)(h.cN,{children:[(0,a.jsx)(p.z,{onClick:()=>{Z()},children:"Retry now"}),(0,a.jsx)(p.z,{variant:"secondary",onClick:()=>{_(!1),S(!1)},children:"Close"})]})]})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"mt-6 flex items-center justify-end gap-x-6",children:[(0,a.jsx)(c.default,{href:"/webui/add-application",children:(0,a.jsx)("button",{type:"button",className:"text-sm font-semibold leading-6 text-gray-900",children:"Cancel"})}),(0,a.jsx)("button",{onClick:e=>{e.preventDefault,_(!0)},className:"rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:s&&n?"Apply Changes":"Add Application"})]}),(0,a.jsx)("br",{}),(0,a.jsx)(h.Vq,{open:y,onOpenChange:()=>_(!1),children:(0,a.jsxs)(h.cZ,{className:"sm:max-w-[768px]",children:[(0,a.jsxs)(h.fK,{children:[(0,a.jsx)(h.$N,{children:"Review the application"}),(0,a.jsx)(h.Be,{children:"This will be added to the database. Please review the application before confirming."})]}),g?(0,a.jsx)(m.Z,{data:g}):"Preparing application...",(0,a.jsx)(h.cN,{children:(0,a.jsx)(p.z,{type:"submit",onClick:()=>{Z()},children:"Save changes"})})]})}),(0,a.jsx)(h.Vq,{open:w,onOpenChange:e=>{e||(_(!1),S(!1))},children:(0,a.jsxs)(h.cZ,{className:"sm:max-w-[768px]",children:[(0,a.jsxs)(h.fK,{children:[(0,a.jsx)(h.$N,{children:"Failed Adding Application"}),(0,a.jsx)(h.Be,{children:"Please review the error message and try again."})]}),(0,a.jsx)("strong",{children:"Error Message"}),k?(0,a.jsx)(m.Z,{data:k,height:100}):"Loading ...",(0,a.jsx)("strong",{children:"Submitted"}),g?(0,a.jsx)(m.Z,{data:g,height:"150px"}):"Preparing application...",(0,a.jsx)(h.cN,{children:(0,a.jsx)(p.z,{onClick:()=>{Z()},children:"Retry now"})})]})})]}):null}var N=i(24017),j=i(1070),y=i(91894);function _(e,l){if(!e||"object"!=typeof e)return{};let i={};for(let[t,r]of Object.entries(e))if("string"==typeof r){if(l&&r in l){var a,o,n,s;(null==l?void 0:null===(a=l[r])||void 0===a?void 0:a.type)==="complex"?i[t]={type:r,sequence:(null==l?void 0:null===(o=l[r])||void 0===o?void 0:o.sequence)||!1,optional:(null==l?void 0:null===(n=l[r])||void 0===n?void 0:n.optional)||!1,default:(null==l?void 0:null===(s=l[r])||void 0===s?void 0:s.default)||null}:i[t]=l[r]}else i[t]={type:r}}else i[t]=r;return console.log("transformWithTrueType Result:",i),i}function w(e){return e&&"object"==typeof e?Object.keys(e).map(l=>({_variableName:l,...e[l]})):[]}let S=e=>{if(!e)return e;let l=w(_(null==e?void 0:e.schema,null==e?void 0:e.types)).reduce((e,l)=>((null==l?void 0:l.default)&&(e[null==l?void 0:l._variableName]=l.default),e),{});return{...e,_variables:{...null==e?void 0:e._variables,...l}}};function k(e){let{simple:l=!1}=e,i=(0,u.v9)(e=>e.stack.submittedStack),c=(0,u.v9)(e=>{var l;return null==e?void 0:null===(l=e.stack)||void 0===l?void 0:l.stackSelectedTemplate});(0,u.v9)(e=>e.environment.environmentLoadedValues);let m=(0,u.v9)(e=>{var l;return null==e?void 0:null===(l=e.userInfo)||void 0===l?void 0:l.userInfoLoadedValues}),h=(0,u.I0)(),p=(0,r.useRouter)(),[b,f]=(0,o.useState)("{}"),[_,w]=(0,o.useState)(""),k=async e=>{let l=e.target.files[0];if(l){if("application/json"===l.type){let e=v.ZP.loading("Loading JSON file..."),i=new FileReader;i.onload=l=>{try{let i=JSON.parse(l.target.result);w(JSON.stringify(i,null,2)),f(JSON.stringify(i,null,2)),h((0,N.q7)(i)),v.ZP.success("JSON file loaded successfully!",{id:e})}catch(l){w("Invalid JSON file."),f("Invalid JSON file."),v.ZP.error("Failed to load JSON file.",{id:e})}},i.readAsText(l)}else if("application/zip"===l.type||l.name.endsWith(".zip")){let e=v.ZP.loading("Uploading ZIP file..."),o=new FormData;o.append("raw",l,l.name);try{var i,a;let l=await n.Z.put("".concat("".concat("http://localhost:8000","/db/upload")),o,{headers:{"Content-Type":"multipart/form-data",accept:"application/json",Authorization:(0,x.Z)(m),superduper_reverse_proxy:"http://localhost:8000"}}),s=JSON.parse(JSON.stringify(null==l?void 0:null===(i=l.data)||void 0===i?void 0:i.component));h((0,j.Xs)([...null==l?void 0:null===(a=l.data)||void 0===a?void 0:a.artifacts])),w(JSON.stringify(s,null,2)),f(JSON.stringify(s,null,2)),h((0,N.q7)(s)),v.ZP.success("ZIP file uploaded successfully!",{id:e})}catch(l){v.ZP.error((null==l?void 0:l.message)||"Failed to upload ZIP file.",{id:e,duration:1e4}),console.log("Error uploading ZIP file:",l)}}else w("Please upload a valid JSON or ZIP file."),v.ZP.error("Invalid file type.")}else w("No file selected."),v.ZP.error("No file selected.")},A=(0,o.useRef)(null),Z=()=>{p.push("/webui/add-application",void 0,{shallow:!0}),h((0,N.v$)("")),w(""),f(""),h((0,N.q7)(""))};(0,o.useEffect)(()=>{let e=async()=>{try{let e=await n.Z.get("".concat("".concat("http://localhost:8000","/db/show?type_id=template")),{headers:{Accept:"application/json",Authorization:(0,x.Z)(m),superduper_reverse_proxy:"http://localhost:8000"}});P([...e.data])}catch(e){i()}},i=()=>{console.log("Error fetching Services API data. Please check your connection.")};l||e()},[]);let[C,P]=(0,o.useState)(["No template added yet"]);return(0,a.jsxs)(a.Fragment,{children:[!l&&(0,a.jsxs)("div",{className:"max-w-3xl",children:[(0,a.jsxs)(t._,{htmlFor:"terms",children:["Select a template"," ",c&&(0,a.jsx)("span",{onClick:Z,className:"bg-transparent border-none text-indigo-500 cursor-pointer p-0",children:"(Remove Selection)"})]}),(0,a.jsxs)(s.Ph,{value:c,onValueChange:e=>{l||Z(),h((0,N.v$)(e));let i=()=>{v.ZP.error("Error fetching template API data. Please check your connection. ");let e={error:"Error fetching template API data. No template information found!"};w(JSON.stringify(e,null,2)),f(JSON.stringify(e,null,2)),h((0,N.q7)(e)),console.log("Error fetching template API data. Please check your connection. So returning to fallback data!")};(async()=>{try{let l=await n.Z.get("".concat("".concat("http://localhost:8000","/db/show_template?identifier=").concat(e)),{headers:{Accept:"application/json",Authorization:(0,x.Z)(m),superduper_reverse_proxy:"http://localhost:8000"}});console.log("/webui/restapi/db/show_template?identifier=".concat(e),l.data),h((0,N.q7)(S(l.data)))}catch(e){i()}})()},children:[(0,a.jsx)(s.i4,{className:"w-3/6 mt-2 mb-2",children:(0,a.jsx)(s.ki,{placeholder:"Select a template to populate the JSON field"})}),(0,a.jsx)(s.Bw,{children:(0,a.jsxs)(s.DI,{children:[(0,a.jsx)(s.n5,{children:"Select a template for populating"}),C&&C.map((e,l)=>(0,a.jsx)(s.Ql,{value:e,children:e},l))]})})]})]}),!l&&(0,a.jsx)("br",{}),!l&&(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{className:"flex items-center my-4",children:[(0,a.jsx)("div",{className:"flex-grow border-t border-gray-300"}),(0,a.jsx)("span",{className:"mx-4 text-gray-500 dark:text-gray-400",children:"OR"}),(0,a.jsx)("div",{className:"flex-grow border-t border-gray-300"})]}),(0,a.jsxs)("div",{className:"border-gray-900/10 pb-2",children:[(0,a.jsx)("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:"Upload your template json file"}),(0,a.jsx)("p",{className:"mt-1 text-sm leading-6 text-gray-600",children:"You can type or upload a JSON file here to automatically fill in the JSON field."})]})]}),(0,a.jsx)("div",{className:"mt-2 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,a.jsxs)("div",{className:"sm:col-span-3",children:[(0,a.jsx)(d.default,{ref:A,className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Add your JSON here...",mode:"json",theme:"github",name:"blah2",onChange:e=>{f(e);try{let l=JSON.parse(e);h((0,N.q7)(l))}catch(e){}},fontSize:13,showPrintMargin:!0,showGutter:!1,highlightActiveLine:!0,value:i?JSON.stringify(i,null,2):b,setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,useWorker:!1,wrap:!0},height:"500px",width:"200%"}),(0,a.jsx)("input",{type:"file",accept:".json,.zip",className:"block mt-2 w-full text-sm text-gray-700 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-indigo-50 file:text-indigo-700 hover:file:bg-indigo-100",onChange:k}),(0,a.jsx)("p",{className:"text-xs pl-2 text-muted-foreground",children:"*You can upload a json file to populate the json field. Or you can upload a zip file."})]})}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)(y.Z,{}),!l&&(0,a.jsx)(g,{})]})}var A=i(1930),Z=i(4216),C=i(46346),P=i(18580);let E=e=>{let{textAreaRef:l,triggerAutoSize:i,maxHeight:a=Number.MAX_SAFE_INTEGER,minHeight:n=0}=e,[s,t]=o.useState(!0);o.useEffect(()=>{let e=l.current;if(e){s&&(e.style.minHeight="".concat(n+2,"px"),a>n&&(e.style.maxHeight="".concat(a,"px")),t(!1)),e.style.height="".concat(n+2,"px");let l=e.scrollHeight;l>a?e.style.height="".concat(a,"px"):e.style.height="".concat(l+2,"px")}},[l.current,i])},F=o.forwardRef((e,l)=>{let{maxHeight:i=Number.MAX_SAFE_INTEGER,minHeight:n=52,className:s,onChange:t,value:r,...d}=e,c=o.useRef(null),[v,u]=o.useState("");return E({textAreaRef:c,triggerAutoSize:v,maxHeight:i,minHeight:n}),(0,o.useImperativeHandle)(l,()=>({textArea:c.current,focus:()=>{var e;return null==c?void 0:null===(e=c.current)||void 0===e?void 0:e.focus()},maxHeight:i,minHeight:n})),o.useEffect(()=>{u(r)},[null==d?void 0:d.defaultValue,r]),(0,a.jsx)("textarea",{...d,value:r,ref:c,className:(0,P.cn)("flex w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",s),onChange:e=>{u(e.target.value),null==t||t(e)}})});F.displayName="AutosizeTextarea";var I=i(74859);let O=async(e,l)=>{try{let i=await n.Z.post("".concat("".concat("http://localhost:8000").concat(e)),{},{headers:{Accept:"application/json",Authorization:l,superduper_reverse_proxy:I.env.NEXT_PUBLIC_API}});if(200===i.status&&i.data){let e=i.data;if(Array.isArray(e))return e;console.error("Response data is not an array")}else console.error("Invalid response status or missing data from API")}catch(e){console.error("Error in getTableArray:",e.message)}return[]};var L=e=>{let{choices:l,authHeaderToken:i}=e,[n,s]=(0,o.useState)([]);return(0,o.useEffect)(()=>{(async()=>{try{let e=await O(l,i);s(e||[])}catch(e){console.error("Error fetching options:",e.message),s([])}})()},[l,i]),(0,a.jsx)(a.Fragment,{children:n.map(e=>(0,a.jsx)("option",{value:e,children:e},e))})},q=i(32041);let T=o.forwardRef((e,l)=>{let{className:i,orientation:o="horizontal",decorative:n=!0,...s}=e;return(0,a.jsx)(q.f,{ref:l,decorative:n,orientation:o,className:(0,P.cn)("shrink-0 bg-border","horizontal"===o?"h-[1px] w-full":"h-full w-[1px]",i),...s})});T.displayName=q.f.displayName;var z=e=>{let{choices:l,authHeaderToken:i,submittedStack:n,handleMultiCheckboxChange:s,field:t}=e,[r,d]=(0,o.useState)([]);return(0,o.useEffect)(()=>{(async()=>{try{let e=await O(l,i);d(e||[])}catch(e){console.error("Error fetching options:",e.message),d([])}})()},[l,i]),(0,a.jsxs)(a.Fragment,{children:[r.map(e=>{var l,i;return(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(Z.X,{id:e,checked:null==n?void 0:null===(i=n._variables)||void 0===i?void 0:null===(l=i[null==t?void 0:t._variableName])||void 0===l?void 0:l.includes(e),onCheckedChange:l=>s(e,l,t)}),(0,a.jsx)("label",{htmlFor:e,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:e})]},e)}),(0,a.jsx)(T,{className:"my-16"})]})},R=i(80923),J=i(45246),B=i(5772);let{getReasonPhrase:D}=i(70194);var U=function(e){var l,i;let{simple:s=!1,autoSelect:d=!1}=e,c=(0,u.I0)(),m=(0,u.v9)(e=>e.stack.submittedStack),h=(0,u.v9)(e=>{var l;return null==e?void 0:null===(l=e.userInfo)||void 0===l?void 0:l.userInfoLoadedValues}),p=(0,r.useSearchParams)(),b=p.get("identifier"),f=p.get("type_id");(0,u.v9)(e=>e.environment.environmentLoadedValues);let[g,j]=(0,o.useState)([]),[y,_]=(0,o.useState)(0),[w,k]=(0,o.useState)(""),[Z,C]=(0,o.useState)(""),[P,E]=(0,o.useState)("");(0,o.useEffect)(()=>{(async()=>{try{let e=await n.Z.get("".concat("http://localhost:8000","/db/show?type_id=application"),{headers:{Accept:"application/json",Authorization:(0,x.Z)(h),superduper_reverse_proxy:"http://localhost:8000"}});e.data&&j(e.data)}catch(e){console.error("Error fetching restricted identifiers:",e)}})()},[]);let[F,I]=(0,o.useState)(!1);if((0,o.useEffect)(()=>{!d||f||b||(null==m?void 0:m.schema)||(async()=>{try{I(!0);let e=await n.Z.get("".concat("http://localhost:8000","/db/show?type_id=template"),{headers:{Accept:"application/json",Authorization:(0,x.Z)(h),superduper_reverse_proxy:"http://localhost:8000"}});if(e.data&&e.data.length){let l=e.data[0];c((0,N.v$)(l));let i="".concat("http://localhost:8000","/db/show_template?identifier=").concat(l),a=await n.Z.get(i,{headers:{Accept:"application/json",Authorization:(0,x.Z)(h),superduper_reverse_proxy:"http://localhost:8000"}});if(a.data){let e={...a.data,build_template:l};c((0,N.q7)(S(e)))}}}catch(e){v.ZP.error("Error fetching template API data."),C(e)}finally{I(!1)}})()},[]),(0,o.useEffect)(()=>{!b||(null==m?void 0:m.identifier)||c((0,N.q7)({...m,identifier:b}))},[b]),Z){let e=(null==Z?void 0:Z.status)||404,i=D(e)||"Service Unavailable";return(0,a.jsx)(J.Z,{header:"Failed to fetch template data",shortMessage:i,status:e,description:(0,a.jsx)("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:"Status: ".concat(e,",\nMessage: ").concat("object"==typeof(null==Z?void 0:null===(l=Z.response)||void 0===l?void 0:l.data)?JSON.stringify(Z.response.data,null,2):(null==Z?void 0:Z.message)||"Unknown error occurred")})})}if(P){let e=(null==P?void 0:P.status)||404,l=D(e)||"Service Unavailable";return(0,a.jsx)(J.Z,{header:"Failed to fetch edit template api",shortMessage:l,status:e,description:(0,a.jsx)("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:"Status: ".concat(e,",\nMessage: ").concat("object"==typeof(null==P?void 0:null===(i=P.response)||void 0===i?void 0:i.data)?JSON.stringify(P.response.data,null,2):(null==P?void 0:P.message)||"Unknown error occurred")})})}return!F||(null==m?void 0:m.schema)?(0,a.jsx)("div",{className:"grid w-full max-w-sm items-center gap-1.5",children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-2 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:"uri",className:"text-lg font-medium",children:["Name your Superduper Agents App"," "]}),(0,a.jsx)(R.Z,{popoverheader:"Identifier",popovercontent:(0,a.jsx)("p",{children:"Please provide a unique name for your application. This name is used to identify your application in the system. It should be unique and should not contain any special characters."})})]}),(0,a.jsx)(A.I,{id:"identifier",value:(null==m?void 0:m.identifier)||"",onChange:e=>{let{target:l}=e,{value:i}=l;if(g===i){k("This name is not allowed as you have already used the name. Please choose a different one.");return}k(""),c((0,N.q7)({...m,identifier:i}))},placeholder:"Enter your application name",autoComplete:"off"}),w&&(0,a.jsx)("p",{className:"text-rose-500 text-sm mt-1",children:w})]})}):(0,a.jsx)(B.Z,{})},V=i(34209),M=i(2187),G=i(23611),W=i(61521),X=i(50611);i(98295),i(78187),i(39166);var $=i(30897),H=i(46065),Q=i(72513),K=i(12900);function Y(e,l){let i=l.replace("$","").split("."),a=e;for(let e of i)if(Array.isArray(a))a=a.map(l=>l[e]);else{if(!a||"object"!=typeof a)return[];a=a[e]}return Array.isArray(a)?a:[]}function ee(){for(var e=arguments.length,l=Array(e),i=0;i!0===e.optional)}var ea=function(e){var l,i,n;let{complexField:r}=e,c=(0,u.I0)(),m=(0,u.v9)(e=>e.stack.submittedStack),h=(0,u.v9)(e=>{var l;return null==e?void 0:null===(l=e.userInfo)||void 0===l?void 0:l.userInfoLoadedValues}),[p,b]=(0,o.useState)(0),[f,g]=(0,o.useState)(!0),j=(e,l)=>{var i;c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[null==r?void 0:r._variableName]:{...null==m?void 0:null===(i=m._variables)||void 0===i?void 0:i[null==r?void 0:r._variableName],[l]:e.target.value}}})),b(e=>e+1)},y=(e,l)=>{var i,a,o;let{target:n}=e,s=null==n?void 0:n.value;if(!s)return;let t=null==r?void 0:r._variableName,d=(null==m?void 0:null===(a=m._variables)||void 0===a?void 0:null===(i=a[t])||void 0===i?void 0:i[l])||[];if(!Array.isArray(d)){console.error("Existing field value is not an array:",d);return}c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[t]:{...null==m?void 0:null===(o=m._variables)||void 0===o?void 0:o[t],[l]:[...d,s]}}})),b(e=>e+1)},S=(e,l)=>{var i,a,o,n,s;c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[null==r?void 0:r._variableName]:{...null==m?void 0:null===(i=m._variables)||void 0===i?void 0:i[null==r?void 0:r._variableName],[l]:Array.isArray(null==m?void 0:null===(o=m._variables)||void 0===o?void 0:null===(a=o[null==r?void 0:r._variableName])||void 0===a?void 0:a[l])?null==m?void 0:null===(s=m._variables)||void 0===s?void 0:null===(n=s[null==r?void 0:r._variableName])||void 0===n?void 0:n[l].filter((l,i)=>i!==e):[]}}})),b(e=>e+1)},k=(e,l,i)=>{var a,o,n;let s=null==r?void 0:r._variableName,t=(null==m?void 0:null===(o=m._variables)||void 0===o?void 0:null===(a=o[null==r?void 0:r._variableName])||void 0===a?void 0:a[null==i?void 0:i._variableName])||[];if(!Array.isArray(t)){console.error('Expected an array for field "'.concat(null==i?void 0:i._variableName,'", but got:'),t);return}let d=l?[...t,e]:t.filter(l=>l!==e);c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[s]:{...null==m?void 0:null===(n=m._variables)||void 0===n?void 0:n[s],[null==i?void 0:i._variableName]:d}}})),b(e=>e+1)},P=(e,l)=>{var i;c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[null==r?void 0:r._variableName]:{...null==m?void 0:null===(i=m._variables)||void 0===i?void 0:i[null==r?void 0:r._variableName],[l]:!e}}})),b(e=>e+1)},E=(e,l)=>{let i=e.target.value;try{let e=parseInt(i,10);if(isNaN(e))v.ZP.error("The value for ".concat(l," must be an integer."),{id:"integer-error"});else{var a;c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[null==r?void 0:r._variableName]:{...null==m?void 0:null===(a=m._variables)||void 0===a?void 0:a[null==r?void 0:r._variableName],[l]:e}}})),b(e=>e+1)}}catch(e){console.error("Error:",e),v.ZP.error("The value for ".concat(l," must be an integer."),{id:"integer-error"})}},I=(e,l)=>{var i;c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[null==r?void 0:r._variableName]:{...null==m?void 0:null===(i=m._variables)||void 0===i?void 0:i[null==r?void 0:r._variableName],[l]:e}}})),b(e=>e+1)},L=e=>()=>{var l,i,a;c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[null==r?void 0:r._variableName]:{...null==m?void 0:null===(l=m._variables)||void 0===l?void 0:l[null==r?void 0:r._variableName],[e]:(parseInt(null==m?void 0:null===(a=m._variables)||void 0===a?void 0:null===(i=a[null==r?void 0:r._variableName])||void 0===i?void 0:i[e])||0)+1}}})),b(e=>e+1)},q=e=>()=>{var l;c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[null==r?void 0:r._variableName]:{...null==m?void 0:null===(l=m._variables)||void 0===l?void 0:l[null==r?void 0:r._variableName],[e]:(parseInt(null==m?void 0:m._variables[null==r?void 0:r._variableName][e])||0)-1}}})),b(e=>e+1)},z=e=>null!=e&&!!e.optional&&!!f,J=(e,l)=>{var i,a;try{let a;""===e?a={}:"string"==typeof e?(a=JSON.parse(e),JSON.stringify(a,null,2)):a={},console.log("Parsed JSON:",a),c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[null==r?void 0:r._variableName]:{...null==m?void 0:null===(i=m._variables)||void 0===i?void 0:i[null==r?void 0:r._variableName],[l]:a}}}))}catch(i){console.error("Error parsing JSON:",i),c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[null==r?void 0:r._variableName]:{...null==m?void 0:null===(a=m._variables)||void 0===a?void 0:a[null==r?void 0:r._variableName],[l]:e}}}))}},B=(e,l)=>{try{var i;c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[null==r?void 0:r._variableName]:{...null==m?void 0:null===(i=m._variables)||void 0===i?void 0:i[null==r?void 0:r._variableName],[l]:e}}}))}catch(i){console.error("Error parsing JSON:",i),c((0,N.q7)({...m,_variables:{...null==m?void 0:m._variables,[l]:e}}))}};return m?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"mt-4 mb-2 pt-4 rounded-2xl border-4 border-dashed border-gray-900/25 px-6 py-10",children:[(0,a.jsx)("div",{className:"space-y-12",children:(0,a.jsx)("div",{className:"pb-2",children:(0,a.jsx)("div",{className:"flex items-start justify-between",children:(0,a.jsx)("h2",{className:"text-xl font-semibold leading-7 text-gray-900",children:(0,a.jsxs)(t._,{className:"text-xl",htmlFor:null==r?void 0:r._variableName,children:[null==r?void 0:r._variableName," ",(null==r?void 0:r.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]})})})})}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-1.5",children:[(null==m?void 0:m.schema)&&w(_(null==m?void 0:null===(l=m.types)||void 0===l?void 0:l[null==r?void 0:r.type],null==m?void 0:m.types)).map(e=>{var l,i,n,c,v,u,p,b,f,g,N,_,w,D,U,W,X,H,Q,K,ei,ea,eo,en,es,et,er,ed,ec,ev,eu,em,eh,ep,ex;return(0,a.jsxs)(o.Fragment,{children:[console.log("field",e),!z(e)&&"str"===el(null==e?void 0:e.type,null==e?void 0:e.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsx)(A.I,{id:null==e?void 0:e._variableName,value:(null==m?void 0:null===(i=m._variables)||void 0===i?void 0:null===(l=i[null==r?void 0:r._variableName])||void 0===l?void 0:l[null==e?void 0:e._variableName])||"",onChange:l=>j(l,null==e?void 0:e._variableName),placeholder:(null==e?void 0:e.default)?"Default: ".concat(null==e?void 0:e.default):"Type the ".concat(null==e?void 0:e._variableName," value here"),autocomplete:"off"})]}),!z(e)&&"text-area"===el(null==e?void 0:e.type,null==e?void 0:e.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsx)(F,{id:null==e?void 0:e._variableName,value:(null==m?void 0:null===(c=m._variables)||void 0===c?void 0:null===(n=c[null==r?void 0:r._variableName])||void 0===n?void 0:n[null==e?void 0:e._variableName])||"",onChange:l=>j(l,null==e?void 0:e._variableName),placeholder:(null==e?void 0:e.default)?"Default: ".concat(null==e?void 0:e.default):"Type the ".concat(null==e?void 0:e._variableName," value here"),className:"resize-none",rows:6})]}),!z(e)&&"boolean"===el(null==e?void 0:e.type,null==e?void 0:e.choices)&&(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsxs)($.r.Group,{as:"div",className:"flex items-center",children:[(0,a.jsx)($.r,{checked:null==m?void 0:null===(u=m._variables)||void 0===u?void 0:null===(v=u[null==r?void 0:r._variableName])||void 0===v?void 0:v[null==e?void 0:e._variableName],onChange:()=>{var l,i;return P(null==m?void 0:null===(i=m._variables)||void 0===i?void 0:null===(l=i[null==r?void 0:r._variableName])||void 0===l?void 0:l[null==e?void 0:e._variableName],null==e?void 0:e._variableName)},className:ee((null==m?void 0:null===(b=m._variables)||void 0===b?void 0:null===(p=b[null==r?void 0:r._variableName])||void 0===p?void 0:p[null==e?void 0:e._variableName])?"bg-indigo-600":"bg-gray-200","relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-600 focus:ring-offset-2"),children:(0,a.jsx)("span",{"aria-hidden":"true",className:ee((null==m?void 0:null===(g=m._variables)||void 0===g?void 0:null===(f=g[null==r?void 0:r._variableName])||void 0===f?void 0:f[null==e?void 0:e._variableName])?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out")})}),(0,a.jsxs)($.r.Label,{as:"span",className:"ml-3 text-sm",children:[(0,a.jsx)("span",{className:"font-medium text-gray-900",children:null==e?void 0:e._variableName})," ",(null==e?void 0:e.optional)?(0,a.jsx)("span",{className:"text-gray-500",children:"(optional)"}):(0,a.jsx)("span",{className:"text-rose-500"}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]})]})})}),!z(e)&&"multi-select"===el(null==e?void 0:e.type,null==e?void 0:e.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})}),(0,a.jsxs)("div",{className:"mt-0 items-center gap-x-2.5 gap-y-2.5 text-xs leading-5 text-gray-400",children:[(0,a.jsxs)("p",{className:"whitespace-nowrap",children:["Selected values:"," ",(null==m?void 0:null===(_=m._variables)||void 0===_?void 0:null===(N=_[null==r?void 0:r._variableName])||void 0===N?void 0:N[null==e?void 0:e._variableName])&&(null==m?void 0:null===(U=m._variables)||void 0===U?void 0:null===(D=U[null==r?void 0:r._variableName])||void 0===D?void 0:null===(w=D[null==e?void 0:e._variableName])||void 0===w?void 0:w.length)===0&&(0,a.jsx)("span",{children:"None"})]}),(null==m?void 0:null===(X=m._variables)||void 0===X?void 0:null===(W=X[null==r?void 0:r._variableName])||void 0===W?void 0:W[null==e?void 0:e._variableName])&&(null==m?void 0:null===(K=m._variables)||void 0===K?void 0:null===(Q=K[null==r?void 0:r._variableName])||void 0===Q?void 0:null===(H=Q[null==e?void 0:e._variableName])||void 0===H?void 0:H.map((l,i)=>(0,a.jsx)(o.Fragment,{children:(0,a.jsxs)("button",{type:"button",className:"mt-2 inline-flex items-center rounded-full bg-white px-2.5 py-1 text-xs font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:[l,(0,a.jsx)(V.Z,{onClick:()=>S(i,null==e?void 0:e._variableName),className:"-mr-0.5 h-4 w-4","aria-hidden":"true"})]})},l)))]})]}),(0,a.jsxs)("select",{id:null==e?void 0:e.name,name:null==e?void 0:e.name,value:"",onChange:l=>y(l,null==e?void 0:e._variableName),placeholder:(null==e?void 0:e.default)?"Default: ".concat(null==e?void 0:e.default):"Type the ".concat(null==e?void 0:e.name," value here"),className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[(0,a.jsx)("option",{value:"",children:"Select values to create sequence"},"uploadArtifact"),Array.isArray(null==e?void 0:e.choices)?e.choices.map(e=>(0,a.jsx)("option",{value:e,children:e},e)):"string"==typeof(null==e?void 0:e.choices)&&e.choices.startsWith("$")?Y(null==m?void 0:m._variables,e.choices).map(e=>(0,a.jsx)("option",{value:e,children:e},e)):"string"==typeof(null==e?void 0:e.choices)&&e.choices.startsWith("/")?O(e.choices,(0,x.Z)(h)).map(e=>(0,a.jsx)("option",{value:e,children:e},e)):null]},JSON.stringify(null==m?void 0:null===(ea=m._variables)||void 0===ea?void 0:null===(ei=ea[null==r?void 0:r._variableName])||void 0===ei?void 0:ei[null==e?void 0:e._variableName]))]}),!z(e)&&"multi-checkbox"===el(null==e?void 0:e.type,null==e?void 0:e.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsx)(C.x,{className:"h-72 w-full rounded-md border",children:(0,a.jsx)("div",{className:"flex space-x-2 mt-2 m-2",children:(0,a.jsx)("div",{className:"space-y-4",children:Array.isArray(null==e?void 0:e.choices)?e.choices.map(l=>{var i,o;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(Z.X,{id:l,checked:Array.isArray(null==m?void 0:null===(o=m._variables)||void 0===o?void 0:null===(i=o[null==r?void 0:r._variableName])||void 0===i?void 0:i[null==e?void 0:e._variableName])&&m._variables[r._variableName][e._variableName].includes(l),onCheckedChange:i=>k(l,i,e)}),(0,a.jsx)("label",{htmlFor:l,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:l})]},l),(0,a.jsx)(T,{className:"my-16"})]})}):"string"==typeof(null==e?void 0:e.choices)&&e.choices.startsWith("$")?Y(null==m?void 0:m._variables,e.choices).map(l=>{var i,o;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(Z.X,{id:l,checked:Array.isArray(null==m?void 0:null===(o=m._variables)||void 0===o?void 0:null===(i=o[null==r?void 0:r._variableName])||void 0===i?void 0:i[null==e?void 0:e._variableName])&&m._variables[r._variableName][e._variableName].includes(l),onCheckedChange:i=>k(l,i,e)}),(0,a.jsx)("label",{htmlFor:l,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:l})]},l),(0,a.jsx)(T,{className:"my-16"})]})}):"string"==typeof(null==e?void 0:e.choices)&&e.choices.startsWith("/")?O(e.choices,(0,x.Z)(h)).map(l=>{var i,o;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(Z.X,{id:l,checked:Array.isArray(null==m?void 0:null===(o=m._variables)||void 0===o?void 0:null===(i=o[null==r?void 0:r._variableName])||void 0===i?void 0:i[null==e?void 0:e._variableName])&&m._variables[r._variableName][e._variableName].includes(l),onCheckedChange:i=>k(l,i,e)}),(0,a.jsx)("label",{htmlFor:l,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:l})]},l),(0,a.jsx)(T,{className:"my-16"})]})}):null})})})]}),!z(e)&&"select"===el(null==e?void 0:e.type,null==e?void 0:e.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsxs)(s.Ph,{value:(null==m?void 0:null===(en=m._variables)||void 0===en?void 0:null===(eo=en[null==r?void 0:r._variableName])||void 0===eo?void 0:eo[null==e?void 0:e._variableName])||"",onValueChange:l=>I(l,null==e?void 0:e._variableName),children:[(0,a.jsx)(s.i4,{"aria-label":null==e?void 0:e._variableName,className:"w-[280px]",children:(0,a.jsx)(s.ki,{placeholder:"Select an option"})}),(0,a.jsx)(s.Bw,{children:(0,a.jsxs)(s.DI,{children:[(0,a.jsxs)(s.n5,{children:["Select ",null==e?void 0:e._variableName]}),null===(es=e.choices)||void 0===es?void 0:es.map(e=>(0,a.jsx)(s.Ql,{value:e,children:e},e))]})})]})]}),!z(e)&&"int"===el(null==e?void 0:e.type,null==e?void 0:e.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsxs)("div",{className:"flex items-center justify-left",children:[(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("button",{type:"button",onClick:q(null==e?void 0:e._variableName),className:"rounded-full bg-indigo-600 p-1 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 mr-4",children:(0,a.jsx)(G.Z,{className:"h-5 w-5","aria-hidden":"true"})}),(0,a.jsx)("input",{type:"int",className:"w-16 text-center block rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",id:null==e?void 0:e._variableName,value:(null==m?void 0:null===(er=m._variables)||void 0===er?void 0:null===(et=er[null==r?void 0:r._variableName])||void 0===et?void 0:et[null==e?void 0:e._variableName])||0,onChange:l=>E(l,null==e?void 0:e._variableName)}),(0,a.jsx)("button",{type:"button",onClick:L(null==e?void 0:e._variableName),className:"rounded-full bg-indigo-600 p-1 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 ml-4",children:(0,a.jsx)(M.Z,{className:"h-5 w-5","aria-hidden":"true"})})]})]}),!z(e)&&"json"===el(null==e?void 0:e.type,null==e?void 0:e.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsx)(d.default,{placeholder:"Here you can pass a dictionary as value. e.g. {key: value}",mode:"json",theme:"twilight",name:null==e?void 0:e._variableName,onChange:l=>J(l,null==e?void 0:e._variableName),fontSize:14,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:"object"==typeof(null==m?void 0:null===(ec=m._variables)||void 0===ec?void 0:null===(ed=ec[null==r?void 0:r._variableName])||void 0===ed?void 0:ed[null==e?void 0:e._variableName])?JSON.stringify(null==m?void 0:null===(eu=m._variables)||void 0===eu?void 0:null===(ev=eu[null==r?void 0:r._variableName])||void 0===ev?void 0:ev[null==e?void 0:e._variableName],null," "):(null==m?void 0:null===(eh=m._variables)||void 0===eh?void 0:null===(em=eh[null==r?void 0:r._variableName])||void 0===em?void 0:em[null==e?void 0:e._variableName])||"",setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2},style:{width:"100%",height:"200px"}})]}),!z(e)&&"code"===el(null==e?void 0:e.type,null==e?void 0:e.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsx)(d.default,{placeholder:"Write Python here...",mode:"python",theme:"tomorrow",name:null==e?void 0:e._variableName,onChange:l=>B(l,null==e?void 0:e._variableName),fontSize:14,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:(null==m?void 0:null===(ex=m._variables)||void 0===ex?void 0:null===(ep=ex[null==r?void 0:r._variableName])||void 0===ep?void 0:ep[null==e?void 0:e._variableName])||"",setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2},style:{width:"100%",height:"200px"}})]})]},null==e?void 0:e._variableName)}),ei(w(_(null==m?void 0:null===(i=m.types)||void 0===i?void 0:i[null==r?void 0:r.type],null==m?void 0:m.types)))&&f&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("ul",{role:"list",className:"mt-6 divide-y divide-gray-200 border-b border-t border-gray-200"}),(0,a.jsx)("div",{className:"mt-6 flex",children:(0,a.jsxs)("span",{className:"text-sm font-medium text-indigo-600 hover:text-indigo-500",onClick:()=>{g(!f)},children:["Show optional parameters",(0,a.jsx)("span",{"aria-hidden":"true",children:" →"})]})})]}),ei(w(_(null==m?void 0:null===(n=m.types)||void 0===n?void 0:n[null==r?void 0:r.type],null==m?void 0:m.types)))&&!f&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("ul",{role:"list",className:"mt-6 divide-y divide-gray-200 border-b border-t border-gray-200"}),(0,a.jsx)("div",{className:"mt-6 flex",children:(0,a.jsxs)("span",{className:"text-sm font-medium text-indigo-600 hover:text-indigo-500",onClick:()=>{g(!f)},children:["Hide optional parameters",(0,a.jsx)("span",{"aria-hidden":"true",children:" ←"})]})})]})]})]})}):null};let eo=(0,i(64070).default)(async()=>{let e=await Promise.resolve().then(i.bind(i,22392));return await Promise.resolve().then(i.t.bind(i,83346,23)),await Promise.resolve().then(i.t.bind(i,78187,23)),await Promise.resolve().then(i.t.bind(i,19234,23)),e},{loadableGenerated:{webpack:()=>[19234]},ssr:!1});function en(){for(var e=arguments.length,l=Array(e),i=0;ie.stack.submittedStack),b=(0,u.v9)(e=>{var l;return null==e?void 0:null===(l=e.userInfo)||void 0===l?void 0:l.userInfoLoadedValues}),f=(0,r.useSearchParams)();(0,r.useRouter)();let g=null==v?void 0:null===(l=v[0])||void 0===l?void 0:l._variableName,j=(null===(i=f.get(g))||void 0===i?void 0:i.split(","))||[null==v?void 0:null===(n=v[0])||void 0===n?void 0:n._variableName],[y,S]=(0,o.useState)([]);(0,o.useEffect)(()=>{j&&v&&S(j.map(e=>v.find(l=>(null==l?void 0:l._variableName)===e)||v[0]))},[j,v]);let[k,P]=(0,o.useState)(null===(d=Array(null==v?void 0:v.length))||void 0===d?void 0:d.fill(!0)),E=(e,l)=>{var i,a,o;let n=null==y?void 0:null===(i=y[e])||void 0===i?void 0:i._variableName,s=null===(o=(Array.isArray(null==h?void 0:null===(a=h._variables)||void 0===a?void 0:a[n])?h._variables[n]:[])[e])||void 0===o?void 0:o[l];return void 0!==s?s:[]},I=(e,l,i)=>{var a,o;let n=null==y?void 0:null===(a=y[e])||void 0===a?void 0:a._variableName,s=Array.isArray(null==h?void 0:null===(o=h._variables)||void 0===o?void 0:o[n])?h._variables[n]:[],t=[...s];t[e]={...(null==s?void 0:s[e])||{},[l]:i};let r={...null==h?void 0:h._variables,[n]:t},d={...h,_variables:r};m((0,N.q7)(d))},L=(e,l,i)=>{let a=E(i,l);a.push(e.target.value),I(i,l,a)},q=(e,l,i)=>{let a=E(i,l).filter((l,i)=>i!==e);I(i,l,a)},z=(e,l,i,a)=>{var o,n,s,t;let r=null==y?void 0:null===(o=y[a])||void 0===o?void 0:o._variableName,d=(null==h?void 0:null===(s=h._variables)||void 0===s?void 0:null===(n=s[r])||void 0===n?void 0:n[null==i?void 0:i._variableName])||[];if(!Array.isArray(d)){console.error('Expected an array for field "'.concat(null==i?void 0:i._variableName,'", but got:'),d);return}let c=l?[...d,e]:d.filter(l=>l!==e);m((0,N.q7)({...h,_variables:{...null==h?void 0:h._variables,[r]:{...null==h?void 0:null===(t=h._variables)||void 0===t?void 0:t[r],[null==i?void 0:i._variableName]:c}}}))},J=(e,l,i)=>{I(e,l,!i)},B=(e,l,i)=>{I(e,l,i)},D=(e,l)=>{var i,a,o,n;let s=parseInt(null==h?void 0:null===(n=h._variables)||void 0===n?void 0:null===(a=n[null==y?void 0:null===(o=y[e])||void 0===o?void 0:o._variableName])||void 0===a?void 0:null===(i=a[e])||void 0===i?void 0:i[l])||0;I(e,l,s+1)},U=(e,l)=>{var i,a,o,n;let s=parseInt(null==h?void 0:null===(n=h._variables)||void 0===n?void 0:null===(a=n[null==y?void 0:null===(o=y[e])||void 0===o?void 0:o._variableName])||void 0===a?void 0:null===(i=a[e])||void 0===i?void 0:i[l])||0;I(e,l,s-1)},W=(e,l,i)=>{try{let a=""===i?{}:JSON.parse(i);I(e,l,a)}catch(a){console.error("Error parsing JSON:",a),I(e,l,i)}},X=(e,l,i)=>{I(e,l,i)},H=e=>{P(l=>{let i=[...l];return i[e]=!i[e],i})},Q=e=>{S(l=>l.filter((l,i)=>i!==e));let l={...null==h?void 0:h._variables};Object.keys(l).forEach(i=>{if(Array.isArray(l[i])){var a;l[i]=null==l?void 0:null===(a=l[i])||void 0===a?void 0:a.filter((l,i)=>i!==e)}});let i={...h,_variables:l};m((0,N.q7)(i));let a=j.filter((l,i)=>i!==e),o=new URL(window.location),n=new URLSearchParams(o.search);n.set(g,a.join(",")),window.history.pushState(null,"","".concat(o.pathname,"?").concat(n.toString()))};return h?(0,a.jsxs)(a.Fragment,{children:[y.map((e,l)=>{var i,n;return(0,a.jsxs)("div",{className:"mt-4 mb-2 pt-4 rounded-2xl border-4 border-dashed border-gray-900/25 px-6 py-10",children:[(0,a.jsx)("div",{className:"space-y-12",children:(0,a.jsx)("div",{className:"pb-2",children:(0,a.jsxs)("div",{className:"flex items-start justify-between",children:[(0,a.jsx)("h2",{className:"text-xl font-semibold leading-7 text-gray-900",children:(0,a.jsxs)(t._,{className:"text-xl",htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]})}),(null==y?void 0:y.length)>1&&(0,a.jsx)("div",{className:"ml-3 flex h-7 items-center",children:(0,a.jsxs)("button",{type:"button",className:"rounded-md bg-white text-gray-400 hover:text-gray-500 outline ring-2 ring-indigo-500",onClick:()=>Q(l),children:[(0,a.jsx)("span",{className:"sr-only",children:"Close"}),(0,a.jsx)(V.Z,{className:"h-6 w-6","aria-hidden":"true"})]})})]})})}),(0,a.jsx)("div",{className:"grid w-full max-w-sm items-center gap-1.5",children:w(_(null==h?void 0:null===(i=h.types)||void 0===i?void 0:i[null==e?void 0:e.type],null==h?void 0:h.types)).map(i=>{var n,r,d,c,v,u,m,f,g,N,j,_,w,S,P,E,H,Q,K,ee,el,ei,ea,et,er,ed,ec,ev,eu,em,eh,ep,ex,eb,ef,eg,eN,ej,ey,e_,ew,eS,ek,eA,eZ,eC,eP,eE,eF,eI,eO,eL,eq,eT,ez,eR,eJ,eB,eD,eU,eV,eM,eG,eW;return(0,a.jsx)(o.Fragment,{children:(!i.optional||k[l])&&(0,a.jsxs)(a.Fragment,{children:["str"===es(null==i?void 0:i.type,null==i?void 0:i.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:"".concat(l,"-").concat(null==i?void 0:i._variableName),children:[null==i?void 0:i._variableName," ",(null==i?void 0:i.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==i?void 0:i.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==i?void 0:i.tooltip})})]}),(0,a.jsx)(A.I,{id:"".concat(l,"-").concat(null==i?void 0:i._variableName),value:(null==h?void 0:null===(c=h._variables)||void 0===c?void 0:null===(r=c[null==y?void 0:null===(d=y[l])||void 0===d?void 0:d._variableName])||void 0===r?void 0:null===(n=r[l])||void 0===n?void 0:n[null==i?void 0:i._variableName])||"",onChange:e=>I(l,null==i?void 0:i._variableName,e.target.value),placeholder:(null==i?void 0:i.default)?"Default: ".concat(null==i?void 0:i.default):"Type the ".concat(null==i?void 0:i._variableName," value here")})]}),"text-area"===es(null==i?void 0:i.type,null==i?void 0:i.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:"".concat(l,"-").concat(null==i?void 0:i._variableName),children:[null==i?void 0:i._variableName," ",(null==i?void 0:i.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==i?void 0:i.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==i?void 0:i.tooltip})})]}),(0,a.jsx)(F,{id:"".concat(l,"-").concat(null==i?void 0:i._variableName),value:(null==h?void 0:null===(f=h._variables)||void 0===f?void 0:null===(u=f[null==y?void 0:null===(m=y[l])||void 0===m?void 0:m._variableName])||void 0===u?void 0:null===(v=u[l])||void 0===v?void 0:v[null==i?void 0:i._variableName])||"",onChange:e=>I(l,null==i?void 0:i._variableName,e.target.value),placeholder:(null==i?void 0:i.default)?"Default: ".concat(null==i?void 0:i.default):"Type the ".concat(null==i?void 0:i._variableName," value here"),className:"resize-none",rows:6})]}),"multi-select"===es(null==i?void 0:i.type,null==i?void 0:i.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:null==i?void 0:i._variableName,children:[null==i?void 0:i._variableName," ",(null==i?void 0:i.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==i?void 0:i.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==i?void 0:i.tooltip})}),(0,a.jsxs)("div",{className:"mt-0 items-center gap-x-2.5 gap-y-2.5 text-xs leading-5 text-gray-400",children:[(0,a.jsxs)("p",{className:"whitespace-nowrap",children:["Selected values:"," ",(null==h?void 0:null===(_=h._variables)||void 0===_?void 0:null===(N=_[null==y?void 0:null===(j=y[l])||void 0===j?void 0:j._variableName])||void 0===N?void 0:null===(g=N[l])||void 0===g?void 0:g[null==i?void 0:i._variableName])&&(null==h?void 0:null===(H=h._variables)||void 0===H?void 0:null===(P=H[null==y?void 0:null===(E=y[l])||void 0===E?void 0:E._variableName])||void 0===P?void 0:null===(S=P[l])||void 0===S?void 0:null===(w=S[null==i?void 0:i._variableName])||void 0===w?void 0:w.length)===0&&(0,a.jsx)("span",{children:"None"})]}),(null==h?void 0:null===(el=h._variables)||void 0===el?void 0:null===(K=el[null==y?void 0:null===(ee=y[l])||void 0===ee?void 0:ee._variableName])||void 0===K?void 0:null===(Q=K[l])||void 0===Q?void 0:Q[null==i?void 0:i._variableName])&&(null==h?void 0:null===(er=h._variables)||void 0===er?void 0:null===(ea=er[null==y?void 0:null===(et=y[l])||void 0===et?void 0:et._variableName])||void 0===ea?void 0:null===(ei=ea[l])||void 0===ei?void 0:ei[null==i?void 0:i._variableName].map((e,n)=>(0,a.jsx)(o.Fragment,{children:(0,a.jsxs)("button",{type:"button",className:"mt-2 inline-flex items-center rounded-full bg-white px-2.5 py-1 text-xs font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:[e,(0,a.jsx)(V.Z,{onClick:()=>q(n,null==i?void 0:i._variableName,l),className:"-mr-0.5 h-4 w-4","aria-hidden":"true"})]})},n)))]})]}),(0,a.jsxs)("select",{id:null==i?void 0:i.name,name:null==i?void 0:i.name,value:"",onChange:e=>L(e,null==i?void 0:i._variableName,l),placeholder:(null==i?void 0:i.default)?"Default: ".concat(null==i?void 0:i.default):"Type the ".concat(null==i?void 0:i.name," value here"),className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[(0,a.jsx)("option",{value:"",children:"Select values to create sequence"},"uploadArtifact"),Array.isArray(null==i?void 0:i.choices)?i.choices.map(e=>(0,a.jsx)("option",{value:e,children:e},e)):"string"==typeof(null==i?void 0:i.choices)&&i.choices.startsWith("$")?Y(null==h?void 0:h._variables,i.choices).map(e=>(0,a.jsx)("option",{value:e,children:e},e)):"string"==typeof(null==i?void 0:i.choices)&&i.choices.startsWith("/")?O(i.choices,(0,x.Z)(b)).map(e=>(0,a.jsx)("option",{value:e,children:e},e)):null]},JSON.stringify(null==h?void 0:null===(ec=h._variables)||void 0===ec?void 0:null===(ed=ec[null==e?void 0:e._variableName])||void 0===ed?void 0:ed[null==i?void 0:i._variableName]))]}),"multi-checkbox"===es(null==i?void 0:i.type,null==i?void 0:i.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:null==i?void 0:i._variableName,children:[null==i?void 0:i._variableName," ",(null==i?void 0:i.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==i?void 0:i.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==i?void 0:i.tooltip})})]}),(0,a.jsx)(C.x,{className:"h-72 w-full rounded-md border",children:(0,a.jsx)("div",{className:"flex space-x-2 mt-2 m-2",children:(0,a.jsx)("div",{className:"space-y-4",children:(null==i?void 0:i.choices)&&(null==i?void 0:i.choices.map(o=>{var n,s,t;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(Z.X,{id:o,checked:null==h?void 0:null===(t=h._variables)||void 0===t?void 0:null===(s=t[null==e?void 0:e._variableName])||void 0===s?void 0:null===(n=s[null==i?void 0:i._variableName])||void 0===n?void 0:n.includes(o),onCheckedChange:e=>z(o,e,i,l)}),(0,a.jsx)("label",{htmlFor:o,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:o})]},o),(0,a.jsx)(T,{className:"my-16"})]})}))})})})]}),"boolean"===es(null==i?void 0:i.type,null==i?void 0:i.choices)&&(0,a.jsxs)("div",{children:[" ",(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsxs)($.r.Group,{as:"div",className:"flex items-center",children:[(0,a.jsx)($.r,{id:"".concat(l,"-").concat(null==i?void 0:i._variableName),checked:null==h?void 0:null===(eh=h._variables)||void 0===eh?void 0:null===(eu=eh[null==y?void 0:null===(em=y[l])||void 0===em?void 0:em._variableName])||void 0===eu?void 0:null===(ev=eu[l])||void 0===ev?void 0:ev[null==i?void 0:i._variableName],onChange:e=>{var a,o,n,s;return J(l,null==i?void 0:i._variableName,null==h?void 0:null===(s=h._variables)||void 0===s?void 0:null===(o=s[null==y?void 0:null===(n=y[l])||void 0===n?void 0:n._variableName])||void 0===o?void 0:null===(a=o[l])||void 0===a?void 0:a[null==i?void 0:i._variableName])},className:en((null==h?void 0:null===(ef=h._variables)||void 0===ef?void 0:null===(ex=ef[null==y?void 0:null===(eb=y[l])||void 0===eb?void 0:eb._variableName])||void 0===ex?void 0:null===(ep=ex[l])||void 0===ep?void 0:ep[null==i?void 0:i._variableName])?"bg-indigo-600":"bg-gray-200","relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-600 focus:ring-offset-2"),children:(0,a.jsx)("span",{"aria-hidden":"true",className:en((null==h?void 0:null===(ey=h._variables)||void 0===ey?void 0:null===(eN=ey[null==y?void 0:null===(ej=y[l])||void 0===ej?void 0:ej._variableName])||void 0===eN?void 0:null===(eg=eN[l])||void 0===eg?void 0:eg[null==i?void 0:i._variableName])?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out")})}),(0,a.jsxs)($.r.Label,{as:"span",className:"ml-3 text-sm",children:[(0,a.jsx)("span",{className:"font-medium text-gray-900",children:null==i?void 0:i._variableName})," ",(null==i?void 0:i.optional)?(0,a.jsx)("span",{className:"text-gray-500",children:"(optional)"}):(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==i?void 0:i.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==i?void 0:i.tooltip})})]})})]},l),"select"===es(null==i?void 0:i.type,null==i?void 0:i.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:"".concat(l,"-").concat(null==i?void 0:i._variableName),children:[null==i?void 0:i._variableName," ",(null==i?void 0:i.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==i?void 0:i.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==i?void 0:i.tooltip})})]}),(0,a.jsxs)(s.Ph,{value:(null==h?void 0:null===(ek=h._variables)||void 0===ek?void 0:null===(ew=ek[null==y?void 0:null===(eS=y[l])||void 0===eS?void 0:eS._variableName])||void 0===ew?void 0:null===(e_=ew[l])||void 0===e_?void 0:e_[null==i?void 0:i._variableName])||"",onValueChange:e=>B(l,null==i?void 0:i._variableName,e),children:[(0,a.jsx)(s.i4,{className:"w-[280px]",children:(0,a.jsx)(s.ki,{placeholder:"Select an option"})}),(0,a.jsx)(s.Bw,{children:null==i?void 0:null===(eA=i.choices)||void 0===eA?void 0:eA.map(e=>(0,a.jsx)(s.Ql,{value:e,children:e},e))})]})]}),"int"===es(null==i?void 0:i.type,null==i?void 0:i.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:"".concat(l,"-").concat(null==i?void 0:i._variableName),children:[null==i?void 0:i._variableName," ",(null==i?void 0:i.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==i?void 0:i.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==i?void 0:i.tooltip})})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(p.z,{type:"button",variant:"outline",size:"icon",onClick:()=>U(l,null==i?void 0:i._variableName),children:(0,a.jsx)(G.Z,{className:"h-4 w-4"})}),(0,a.jsx)(A.I,{type:"number",id:"".concat(l,"-").concat(null==i?void 0:i._variableName),value:(null==h?void 0:null===(eE=h._variables)||void 0===eE?void 0:null===(eC=eE[null==y?void 0:null===(eP=y[l])||void 0===eP?void 0:eP._variableName])||void 0===eC?void 0:null===(eZ=eC[l])||void 0===eZ?void 0:eZ[null==i?void 0:i._variableName])||0,onChange:e=>I(l,null==i?void 0:i._variableName,parseInt(e.target.value)),className:"w-20 text-center"}),(0,a.jsx)(p.z,{type:"button",variant:"outline",size:"icon",onClick:()=>D(l,null==i?void 0:i._variableName),children:(0,a.jsx)(M.Z,{className:"h-4 w-4"})})]})]}),"json"===es(null==i?void 0:i.type,null==i?void 0:i.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:"".concat(l,"-").concat(null==i?void 0:i._variableName),children:[null==i?void 0:i._variableName," ",(null==i?void 0:i.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==i?void 0:i.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==i?void 0:i.tooltip})})]}),(0,a.jsx)(eo,{mode:"json",theme:"github",name:"".concat(l,"-").concat(null==i?void 0:i._variableName),onChange:e=>W(l,null==i?void 0:i._variableName,e),fontSize:14,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:"object"==typeof(null==h?void 0:null===(eL=h._variables)||void 0===eL?void 0:null===(eI=eL[null==y?void 0:null===(eO=y[l])||void 0===eO?void 0:eO._variableName])||void 0===eI?void 0:null===(eF=eI[l])||void 0===eF?void 0:eF[null==i?void 0:i._variableName])?JSON.stringify(null==h?void 0:null===(eR=h._variables)||void 0===eR?void 0:null===(eT=eR[null==y?void 0:null===(ez=y[l])||void 0===ez?void 0:ez._variableName])||void 0===eT?void 0:null===(eq=eT[l])||void 0===eq?void 0:eq[null==i?void 0:i._variableName],null,2):(null==h?void 0:null===(eU=h._variables)||void 0===eU?void 0:null===(eB=eU[null==y?void 0:null===(eD=y[l])||void 0===eD?void 0:eD._variableName])||void 0===eB?void 0:null===(eJ=eB[l])||void 0===eJ?void 0:eJ[null==i?void 0:i._variableName])||"",setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2},style:{width:"100%",height:"200px"}})]}),"code"===es(null==i?void 0:i.type,null==i?void 0:i.choices)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:"".concat(l,"-").concat(null==i?void 0:i._variableName),children:[null==i?void 0:i._variableName," ",(null==i?void 0:i.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==i?void 0:i.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==i?void 0:i.tooltip})})]}),(0,a.jsx)(eo,{mode:"python",theme:"github",name:"".concat(l,"-").concat(null==i?void 0:i._variableName),onChange:e=>X(l,null==i?void 0:i._variableName,e),fontSize:14,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:(null==h?void 0:null===(eW=h._variables)||void 0===eW?void 0:null===(eM=eW[null==y?void 0:null===(eG=y[l])||void 0===eG?void 0:eG._variableName])||void 0===eM?void 0:null===(eV=eM[l])||void 0===eV?void 0:eV[null==i?void 0:i._variableName])||"",setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2},style:{width:"100%",height:"200px"}})]})]})},null==i?void 0:i._variableName)})}),w(_(null==h?void 0:null===(n=h.types)||void 0===n?void 0:n[null==e?void 0:e.type],null==h?void 0:h.types)).some(e=>!0===e.optional)&&(0,a.jsx)("div",{className:"mt-6 flex",children:(0,a.jsxs)(p.z,{variant:"link",onClick:()=>H(l),children:[(null==k?void 0:k[l])?"Hide":"Show"," optional parameters"]})})]},l)}),(null==y?void 0:null===(c=y[0])||void 0===c?void 0:c.sequence)>0&&(0,a.jsx)("div",{className:"flex items-center justify-center mt-6",children:(0,a.jsx)("button",{type:"button",onClick:()=>{let e=null==v?void 0:v[0];S(l=>[...l,e]);let l=[...j,null==e?void 0:e._variableName],i=new URL(window.location),a=new URLSearchParams(i.search);a.set(g,l.join(",")),window.history.pushState(null,"","".concat(i.pathname,"?").concat(a.toString()))},className:"rounded-full bg-indigo-600 p-1 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 ml-4",children:(0,a.jsx)(M.Z,{className:"h-5 w-5","aria-hidden":"true"})})})]}):null}var er=e=>{let{header:l="Edit now",description:i="Edit these fields",sequence:n=null,children:s}=e,[t,r]=(0,o.useState)(!1),[d,c]=(0,o.useState)(""),[v,m]=(0,o.useState)((0,b.Z)()),h=(0,u.v9)(e=>e.stack.submittedStack);return(0,o.useEffect)(()=>{if(n&&h){var e;let i=(null===(e=h._variables)||void 0===e?void 0:e[l])||[];if(i.length>0){let e=new URL(window.location),a=new URLSearchParams(e.search),o=Array(i.length).fill(l).join(",");a.set(l,o);let n="".concat(e.origin).concat(e.pathname,"?").concat(a.toString());n!==d&&(c(n),window.history.replaceState(null,"",n),m((0,b.Z)()),r(!0))}}},[n,h,l,d]),(0,a.jsx)("div",{children:t&&(0,a.jsx)("div",{children:s})})},ed=i(86288),ec=i(23919);function ev(){return(0,a.jsx)(ed.Zb,{className:"w-full max-w-md",children:(0,a.jsx)(ed.aY,{className:"flex items-center space-x-4 p-6",children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ec.Z,{className:"h-10 w-10 text-primary animate-spin"}),(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold",children:"Loading..."}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Please wait while we check for schemas."})]})]})})})}var eu=i(13271);function em(){for(var e=arguments.length,l=Array(e),i=0;i(null==e?void 0:e.types)&&"object"==typeof e.types?Object.keys(e.types):[];function ep(e,l,i){return"code"===e?"code":"text-area"===e?"text-area":"multi-str"===e?"multi-str":"multi-checkbox"===e?"multi-checkbox":"str"===e||"string"===e?l?"select":"str":"int"===e?l?"select":"int":"json"===e||"query"==e?"json":"bool"===e||"boolean"===e?"boolean":"multi-select"===e?"multi-select":"complex"===e?"complex":i.includes(e)?e:"not_found"}var ex=function(e){let{simple:l=!1}=e,i=(0,r.useSearchParams)(),n=i.get("identifier");i.get("type_id");let c=(0,u.I0)(),m=(0,u.v9)(e=>e.stack.stackSelectedTemplate),h=(0,u.v9)(e=>{var l;return null==e?void 0:null===(l=e.userInfo)||void 0===l?void 0:l.userInfoLoadedValues}),b=(0,u.v9)(e=>e.stack.submittedStack),[f,j]=(0,o.useState)(0),[y,S]=(0,o.useState)(!0),[k,P]=(0,o.useState)([...eu.defaultFormTypes]),[E,I]=(0,o.useState)({}),[O,q]=(0,o.useState)(0),[J,B]=(0,o.useState)(0);(0,o.useEffect)(()=>{(null==b?void 0:b.schema)&&B(Object.keys(b.schema).length+1)},[null==b?void 0:b.schema]);let D=(e,l)=>{let{target:i}=e;I(e=>({...e,[l]:i.value}))};(0,o.useEffect)(()=>{b&&(j(0),P([...k,...eh(b)]))},[b]);let ee=(e,l)=>{c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[l]:e.target.value}})),j(e=>e+1)},el=(e,l)=>{c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[l]:e}})),j(e=>e+1)},ei=(e,l)=>{var i,a,o,n,s;c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[l]:(null==b?void 0:null===(i=b._variables)||void 0===i?void 0:i[l])&&(null==b?void 0:null===(o=b._variables)||void 0===o?void 0:null===(a=o[l])||void 0===a?void 0:a.includes(e.target.value))?[...null==b?void 0:null===(n=b._variables)||void 0===n?void 0:n[l],e.target.value]:[...(null==b?void 0:null===(s=b._variables)||void 0===s?void 0:s[l])||[],e.target.value]}})),j(e=>e+1)},eo=(e,l)=>{ei({target:{value:e}},l),j(e=>e+1),I(e=>({...e,[l]:""}))},en=(e,l,i)=>{var a,o;let n=l?[...null==b?void 0:null===(a=b._variables)||void 0===a?void 0:a[null==i?void 0:i._variableName],e]:null==b?void 0:null===(o=b._variables)||void 0===o?void 0:o[null==i?void 0:i._variableName].filter(l=>l!==e);c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[null==i?void 0:i._variableName]:n}})),j(e=>e+1)},es=(e,l)=>{var i,a,o;c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[l]:Array.isArray(null==b?void 0:null===(i=b._variables)||void 0===i?void 0:i[l])?null==b?void 0:null===(o=b._variables)||void 0===o?void 0:null===(a=o[l])||void 0===a?void 0:a.filter((l,i)=>i!==e):[]}})),j(e=>e+1)};(0,o.useEffect)(()=>{b&&n&&!(null==b?void 0:b.identifier)&&c((0,N.q7)({...b,identifier:n}))},[n,b]);let ed=(e,l)=>{c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[l]:!e}})),j(e=>e+1)},ec=(e,l)=>{let i=e.target.value;try{let e=parseInt(i,10);isNaN(e)?v.ZP.error("The value for ".concat(l," must be an integer."),{id:"integer-error"}):(c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[l]:e}})),j(e=>e+1))}catch(e){console.error("Error:",e),v.ZP.error("The value for ".concat(l," must be an integer."),{id:"integer-error"})}},ex=e=>()=>{var l;c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[e]:(parseInt(null==b?void 0:null===(l=b._variables)||void 0===l?void 0:l[e])||0)+1}})),j(e=>e+1)},eb=e=>()=>{var l;c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[e]:(parseInt(null==b?void 0:null===(l=b._variables)||void 0===l?void 0:l[e])||0)-1}})),j(e=>e+1)},ef=e=>null!=e&&!!e.optional&&!!y,eg=(e,l)=>{try{let i;""===e?i={}:"string"==typeof e?(i=JSON.parse(e),JSON.stringify(i,null,2)):i={},console.log("Parsed JSON:",i),c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[l]:i}}))}catch(i){console.error("Error parsing JSON:",i),c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[l]:e}}))}},eN=(e,l)=>{try{c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[l]:e}}))}catch(i){console.error("Error parsing JSON:",i),c((0,N.q7)({...b,_variables:{...null==b?void 0:b._variables,[l]:e}}))}};return b?!m||(null==b?void 0:b.schema)?(0,a.jsxs)("div",{className:"flex flex-col h-[550px]",children:[(0,a.jsx)("div",{className:"flex-grow overflow-y-auto",children:(0,a.jsx)("div",{className:"",children:(null==b?void 0:b.schema)&&(0===O?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-6",children:[(0,a.jsxs)(K.C,{variant:"secondary",className:"h-6 px-2 font-medium",children:["Step 1 of ",J]}),(0,a.jsx)("h2",{className:"text-lg font-medium leading-none tracking-tight",children:"identifier"})]}),(0,a.jsx)(U,{})]}):w(_(null==b?void 0:b.schema,null==b?void 0:b.types)).map((e,l)=>{var i,n,r,c,v,u,m,f,g,N,j,y,_,w,S,P,I,q,B,U;return l===O-1&&(0,a.jsxs)(o.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-6",children:[(0,a.jsxs)(K.C,{variant:"secondary",className:"h-6 px-2 font-medium",children:["Step ",O+1," of ",J]}),(0,a.jsx)("h2",{className:"text-lg font-medium leading-none tracking-tight",children:null==e?void 0:e._variableName})]}),(0,a.jsxs)(o.Fragment,{children:[!ef(e)&&"str"===ep(null==e?void 0:e.type,null==e?void 0:e.choices,k)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsx)(A.I,{id:null==e?void 0:e._variableName,value:(null==b?void 0:null===(i=b._variables)||void 0===i?void 0:i[null==e?void 0:e._variableName])||"",onChange:l=>ee(l,null==e?void 0:e._variableName),placeholder:(null==e?void 0:e.default)?"Default: ".concat(null==e?void 0:e.default):"Type the ".concat(null==e?void 0:e._variableName," value here"),autocomplete:"off"})]}),!ef(e)&&"select"===ep(null==e?void 0:e.type,null==e?void 0:e.choices,k)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsxs)(s.Ph,{value:(null==b?void 0:null===(n=b._variables)||void 0===n?void 0:n[null==e?void 0:e._variableName])||"",onValueChange:l=>el(l,null==e?void 0:e._variableName),children:[(0,a.jsx)(s.i4,{"aria-label":null==e?void 0:e._variableName,className:"w-[280px]",children:(0,a.jsx)(s.ki,{placeholder:"Select an option"})}),(0,a.jsx)(s.Bw,{children:(0,a.jsxs)(s.DI,{children:[(0,a.jsxs)(s.n5,{children:["Select ",null==e?void 0:e._variableName]}),Array.isArray(null==e?void 0:e.choices)&&e.choices.map(e=>(0,a.jsx)(s.Ql,{value:e,children:e},e))]})})]})]}),!ef(e)&&"not_found"===ep(null==e?void 0:e.type,null==e?void 0:e.choices,k)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsxs)(Q.bZ,{variant:"destructive",children:[(0,a.jsx)(H.Z,{className:"h-4 w-4"}),(0,a.jsx)(Q.Cd,{children:"Error"}),(0,a.jsxs)(Q.X,{children:["Type:"," ",(0,a.jsx)(K.C,{variant:"destructive",children:null==e?void 0:e.type})," ","is not a valid type. Please create this type and refer it in the schema."]})]})]}),!ef(e)&&"text-area"===ep(null==e?void 0:e.type,null==e?void 0:e.choices,k)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsx)(F,{id:null==e?void 0:e._variableName,value:(null==b?void 0:null===(r=b._variables)||void 0===r?void 0:r[null==e?void 0:e._variableName])||"",onChange:l=>ee(l,null==e?void 0:e._variableName),placeholder:(null==e?void 0:e.default)?"Default: ".concat(null==e?void 0:e.default):"Type the ".concat(null==e?void 0:e._variableName," value here"),className:"resize-none",rows:6})]}),!ef(e)&&"boolean"===ep(null==e?void 0:e.type,null==e?void 0:e.choices,k)&&(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsxs)($.r.Group,{as:"div",className:"flex items-center",children:[(0,a.jsx)($.r,{checked:null==b?void 0:null===(c=b._variables)||void 0===c?void 0:c[null==e?void 0:e._variableName],onChange:()=>{var l;return ed(null==b?void 0:null===(l=b._variables)||void 0===l?void 0:l[null==e?void 0:e._variableName],null==e?void 0:e._variableName)},className:em((null==b?void 0:null===(v=b._variables)||void 0===v?void 0:v[null==e?void 0:e._variableName])?"bg-indigo-600":"bg-gray-200","relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-600 focus:ring-offset-2"),children:(0,a.jsx)("span",{"aria-hidden":"true",className:em((null==b?void 0:null===(u=b._variables)||void 0===u?void 0:u[null==e?void 0:e._variableName])?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out")})}),(0,a.jsxs)($.r.Label,{as:"span",className:"ml-3 text-sm",children:[(0,a.jsx)("span",{className:"font-medium text-gray-900",children:null==e?void 0:e._variableName})," ",(null==e?void 0:e.optional)?(0,a.jsx)("span",{className:"text-gray-500",children:"(optional)"}):(0,a.jsx)("span",{className:"text-rose-500"}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]})]})})}),!ef(e)&&"multi-select"===ep(null==e?void 0:e.type,null==e?void 0:e.choices,k)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})}),(0,a.jsxs)("div",{className:"mt-0 items-center gap-x-2.5 gap-y-2.5 text-xs leading-5 text-gray-400",children:[(0,a.jsxs)("p",{className:"whitespace-nowrap",children:["Selected values:"," ",(null==b?void 0:null===(m=b._variables)||void 0===m?void 0:m[null==e?void 0:e._variableName])&&(null==b?void 0:null===(g=b._variables)||void 0===g?void 0:null===(f=g[null==e?void 0:e._variableName])||void 0===f?void 0:f.length)===0&&(0,a.jsx)("span",{children:"None"})]}),(null==b?void 0:null===(N=b._variables)||void 0===N?void 0:N[null==e?void 0:e._variableName])&&(null==b?void 0:null===(j=b._variables)||void 0===j?void 0:j[null==e?void 0:e._variableName].map((l,i)=>(0,a.jsxs)("button",{type:"button",className:"inline-flex items-center rounded-full bg-white m-0.5 px-2.5 py-1 text-xs font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:[l,(0,a.jsx)(V.Z,{onClick:()=>es(i,null==e?void 0:e._variableName),className:"ml-1 h-4 w-4 text-gray-400 hover:text-gray-600","aria-hidden":"true"})]},i)))]})]}),(0,a.jsxs)("select",{id:null==e?void 0:e.name,name:null==e?void 0:e.name,value:"",onChange:l=>ei(l,null==e?void 0:e._variableName),placeholder:(null==e?void 0:e.default)?"Default: ".concat(null==e?void 0:e.default):"Type the ".concat(null==e?void 0:e.name," value here"),className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[(0,a.jsx)("option",{value:"",children:"Select values to create sequence"},"uploadArtifact"),Array.isArray(null==e?void 0:e.choices)?e.choices.map(e=>(0,a.jsx)("option",{value:e,children:e},e)):"string"==typeof(null==e?void 0:e.choices)&&e.choices.startsWith("$")?Y(null==b?void 0:b._variables,e.choices).map(e=>(0,a.jsx)("option",{value:e,children:e},e)):"string"==typeof(null==e?void 0:e.choices)&&e.choices.startsWith("/")?(0,a.jsx)(L,{choices:e.choices,authHeaderToken:(0,x.Z)(h)}):null]},JSON.stringify(null==b?void 0:null===(y=b._variables)||void 0===y?void 0:y[null==e?void 0:e._variableName]))]}),!ef(e)&&"multi-str"===ep(null==e?void 0:e.type,null==e?void 0:e.choices,k)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(null==b?void 0:null===(_=b._variables)||void 0===_?void 0:_[null==e?void 0:e._variableName])&&(null==b?void 0:null===(w=b._variables)||void 0===w?void 0:w[null==e?void 0:e._variableName].map((l,i)=>(0,a.jsxs)("button",{type:"button",className:"inline-flex m-0.5 items-center rounded-full bg-white px-2.5 py-1 text-xs font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:[l,(0,a.jsx)(V.Z,{onClick:()=>es(i,null==e?void 0:e._variableName),className:"ml-1 h-4 w-4 text-gray-400 hover:text-gray-600","aria-hidden":"true"})]},i))),(0,a.jsxs)("div",{className:"flex space-x-2 mt-2",children:[(0,a.jsx)(A.I,{id:null==e?void 0:e.name,name:null==e?void 0:e.name,type:"text",value:E[null==e?void 0:e._variableName]||"",placeholder:"Type the ".concat(null==e?void 0:e._variableName," value here"),onChange:l=>D(l,null==e?void 0:e._variableName),className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6","aria-label":"Enter item"}),(0,a.jsx)(p.z,{type:"button",onClick:()=>{eo(E[null==e?void 0:e._variableName],null==e?void 0:e._variableName)},"aria-label":"Add ".concat(null==e?void 0:e._variableName),disabled:!(null===(S=E[null==e?void 0:e._variableName])||void 0===S?void 0:S.trim()),className:"justify-center p-2 rounded bg-indigo-600 text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-600 focus:ring-offset-2",children:(0,a.jsx)(M.Z,{className:"h-4 w-4"})})]})]}),!ef(e)&&"multi-checkbox"===ep(null==e?void 0:e.type,null==e?void 0:e.choices,k)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsx)(C.x,{className:"h-72 w-full rounded-md border",children:(0,a.jsx)("div",{className:"flex space-x-2 mt-2 m-2",children:(0,a.jsx)("div",{className:"space-y-4",children:Array.isArray(null==e?void 0:e.choices)?e.choices.map(l=>{var i,o;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(Z.X,{id:l,checked:null==b?void 0:null===(o=b._variables)||void 0===o?void 0:null===(i=o[null==e?void 0:e._variableName])||void 0===i?void 0:i.includes(l),onCheckedChange:i=>en(l,i,e)}),(0,a.jsx)("label",{htmlFor:l,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:l})]},l),(0,a.jsx)(T,{className:"my-16"})]})}):"string"==typeof(null==e?void 0:e.choices)&&e.choices.startsWith("$")?Y(null==b?void 0:b._variables,e.choices).map(l=>{var i,o;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(Z.X,{id:l,checked:null==b?void 0:null===(o=b._variables)||void 0===o?void 0:null===(i=o[null==e?void 0:e._variableName])||void 0===i?void 0:i.includes(l),onCheckedChange:i=>en(l,i,e)}),(0,a.jsx)("label",{htmlFor:l,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:l})]},l),(0,a.jsx)(T,{className:"my-16"})]})}):"string"==typeof(null==e?void 0:e.choices)&&e.choices.startsWith("/")?(0,a.jsx)(z,{choices:e.choices,authHeaderToken:(0,x.Z)(h),submittedStack:b,handleMultiCheckboxChange:en,field:e}):null})})})]}),!ef(e)&&"int"===ep(null==e?void 0:e.type,null==e?void 0:e.choices,k)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsxs)("div",{className:"flex items-center justify-left",children:[(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("button",{type:"button",onClick:eb(null==e?void 0:e._variableName),className:"rounded-full bg-indigo-600 p-1 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 mr-4",children:(0,a.jsx)(G.Z,{className:"h-5 w-5","aria-hidden":"true"})}),(0,a.jsx)("input",{type:"int",className:"w-16 text-center block rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",id:null==e?void 0:e._variableName,value:(null==b?void 0:null===(P=b._variables)||void 0===P?void 0:P[null==e?void 0:e._variableName])||0,onChange:l=>ec(l,null==e?void 0:e._variableName)}),(0,a.jsx)("button",{type:"button",onClick:ex(null==e?void 0:e._variableName),className:"rounded-full bg-indigo-600 p-1 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 ml-4",children:(0,a.jsx)(M.Z,{className:"h-5 w-5","aria-hidden":"true"})})]})]}),!ef(e)&&"json"===ep(null==e?void 0:e.type,null==e?void 0:e.choices,k)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsx)(d.default,{className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Here you can pass a dictionary as value. e.g. {key: value}",mode:"json",theme:"twilight",name:null==e?void 0:e._variableName,onChange:l=>eg(l,null==e?void 0:e._variableName),fontSize:13,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:"object"==typeof(null==b?void 0:null===(I=b._variables)||void 0===I?void 0:I[null==e?void 0:e._variableName])?JSON.stringify(null==b?void 0:null===(q=b._variables)||void 0===q?void 0:q[null==e?void 0:e._variableName],null," "):(null==b?void 0:null===(B=b._variables)||void 0===B?void 0:B[null==e?void 0:e._variableName])||"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,style:{width:"100%",height:"200px"}})]}),!ef(e)&&"code"===ep(null==e?void 0:e.type,null==e?void 0:e.choices,k)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(t._,{htmlFor:null==e?void 0:e._variableName,children:[null==e?void 0:e._variableName," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500"})]}),(null==e?void 0:e.tooltip)&&(0,a.jsx)(R.Z,{className:"-mr-0.5",popovercontent:(0,a.jsx)("p",{children:null==e?void 0:e.tooltip})})]}),(0,a.jsx)(d.default,{className:"mt-2 rounded-md border-2 py-1.5 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Write Python here...",mode:"python",theme:"tomorrow",name:null==e?void 0:e._variableName,onChange:l=>eN(l,null==e?void 0:e._variableName),fontSize:13,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:(null==b?void 0:null===(U=b._variables)||void 0===U?void 0:U[null==e?void 0:e._variableName])||"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,style:{width:"100%",height:"200px"}})]}),"not_found"!==ep(null==e?void 0:e.type,null==e?void 0:e.choices,k)&&!eu.defaultFormTypes.includes(ep(null==e?void 0:e.type,null==e?void 0:e.choices,k))&&(!ef(e)||"complex"===ep(null==e?void 0:e.type,null==e?void 0:e.choices,k))&&(0,a.jsx)("div",{children:(0,a.jsx)(er,{header:null==e?void 0:e._variableName,sequence:null==e?void 0:e.sequence,children:(null==e?void 0:e.sequence)?(0,a.jsx)(et,{complexFields:[e]}):(0,a.jsx)(ea,{complexField:e})},"".concat(null==e?void 0:e._variableName,"-").concat(null==e?void 0:e.sequence))})]},null==e?void 0:e._variableName)]},null==e?void 0:e._variableName)}))})}),(0,a.jsxs)("div",{className:"flex justify-between mt-4 md:p-4 border-t",children:[(0,a.jsxs)(p.z,{variant:"outline",onClick:()=>q(e=>Math.max(0,e-1)),disabled:0===O,className:"w-[100px]",children:[(0,a.jsx)(W.Z,{className:"h-4 w-4 mr-2"}),"Previous"]}),O===J-1?(0,a.jsx)(g,{simple:!0}):(0,a.jsxs)(p.z,{onClick:()=>{Oe+1):console.log("Form completed")},className:"w-[100px]",children:["Next",(0,a.jsx)(X.Z,{className:"h-4 w-4 ml-2"})]})]})]}):(0,a.jsx)(ev,{}):null};let{getReasonPhrase:eb}=i(70194);function ef(e){let{simple:l=!1,autoselect:i=!1}=e,d=(0,r.useRouter)(),c=(0,u.v9)(e=>e.environment.environmentLoadedValues),m=(0,r.useSearchParams)(),h=m.get("identifier"),p=m.get("type_id"),b=(0,u.v9)(e=>e.stack.stackSelectedTemplate),f=(0,u.v9)(e=>{var l;return null==e?void 0:null===(l=e.userInfo)||void 0===l?void 0:l.userInfoLoadedValues}),g=(0,u.I0)(),[j,y]=(0,o.useState)("{}"),[_,w]=(0,o.useState)({}),k=()=>{d.push("/webui/add-application",void 0,{shallow:!0}),g((0,N.v$)("")),y(""),w({}),g((0,N.q7)(""))};(0,o.useEffect)(()=>{let e=n.Z.CancelToken.source(),l=async()=>{try{let l=await n.Z.get("".concat("".concat("http://localhost:8000","/db/show?type_id=template")),{headers:{Accept:"application/json",Authorization:(0,x.Z)(f),superduper_reverse_proxy:"http://localhost:8000"},cancelToken:e.token});Z([...l.data])}catch(e){n.Z.isCancel(e)?console.log("Request canceled",e.message):console.error("Error fetching Services API data.",e)}};return h&&p||l(),()=>{e.cancel("Operation canceled by the user.")}},[h,p,f,c]);let[A,Z]=(0,o.useState)(["No template added yet"]),[C,P]=(0,o.useState)("");if((0,o.useEffect)(()=>{if(!h||!p)return;let e=n.Z.CancelToken.source(),l=async(l,i)=>{try{return(await n.Z.get(l,{headers:i,cancelToken:e.token})).data}catch(e){n.Z.isCancel(e)?console.log("Request canceled",e.message):console.error("Error fetching data from ".concat(l," edit api:"),e)}};return(async()=>{let e="".concat("http://localhost:8000","/db/edit?type_id=").concat(p,"&identifier=").concat(h),i={Accept:"application/json",Authorization:(0,x.Z)(f),superduper_reverse_proxy:"http://localhost:8000"};try{let a=await l(e,i);a&&(g((0,N.v$)(h)),g((0,N.q7)(a)))}catch(e){v.ZP.error("Error fetching edit api."),P(e)}})(),()=>{e.cancel("Operation canceled by the user.")}},[h,p,f,c]),C){var E;let e=(null==C?void 0:C.status)||404,l=eb(e)||"Service Unavailable";return(0,a.jsx)(J.Z,{header:"Failed to fetch template data",shortMessage:l,status:e,description:(0,a.jsx)("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:"Status: ".concat(e,",\nMessage: ").concat("object"==typeof(null==C?void 0:null===(E=C.response)||void 0===E?void 0:E.data)?JSON.stringify(C.response.data,null,2):(null==C?void 0:C.message)||"Unknown error occurred")})})}return(0,a.jsxs)(a.Fragment,{children:[!l&&!h&&!p&&(0,a.jsxs)("div",{className:"max-w-3xl",children:[(0,a.jsxs)(t._,{htmlFor:"terms",children:["Select a template"," ",b&&(0,a.jsx)("span",{onClick:k,className:"bg-transparent border-none text-indigo-500 cursor-pointer p-0",children:"(Remove Selection)"})]}),(0,a.jsxs)(s.Ph,{value:b,onValueChange:e=>{l||k(),g((0,N.v$)(e));let i=()=>{v.ZP.error("Error fetching template API data. Please check your connection. ");let e={error:"Error fetching template API data. No template information found!"};y(JSON.stringify(e,null,2)),g((0,N.q7)(e)),console.log("Error fetching template API data. Please check your connection. So returning to fallback data!")};(async()=>{try{let l=await n.Z.get("".concat("".concat("http://localhost:8000","/db/show_template?identifier=").concat(e)),{headers:{Accept:"application/json",Authorization:(0,x.Z)(f),superduper_reverse_proxy:"http://localhost:8000"}});console.log("/webui/restapi/db/show_template?identifier=".concat(e),l.data);let i={...l.data,build_template:e};g((0,N.q7)(S(i)))}catch(e){console.log("Error fetching API",e),i()}})()},children:[(0,a.jsx)(s.i4,{className:"w-3/6 mt-2 mb-2",children:(0,a.jsx)(s.ki,{placeholder:"Select a template"})}),(0,a.jsx)(s.Bw,{children:(0,a.jsxs)(s.DI,{children:[(0,a.jsx)(s.n5,{children:"Select a template"}),null==A?void 0:A.map((e,l)=>(0,a.jsx)(s.Ql,{value:e,children:e},l))]})})]})]}),!l&&!h&&!p&&(0,a.jsx)("br",{}),(0,a.jsx)(ex,{simple:l}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{})]})}var eg=i(61883),eN=i(52269),ej=i(58153),ey=i(64386),e_=i(24878),ew=i(25820);function eS(e){let{id:l="default-id",onGoBack:i=()=>{}}=e,[n,s]=(0,o.useState)([]),[t,r]=(0,o.useState)(!0),[d,c]=(0,o.useState)(null),[v,u]=(0,o.useState)(!1),m=(0,o.useRef)(null),h=async()=>{r(!0),c(null),s([]);try{let e=await fetch("".concat("http://localhost:8000","/stdout?id=").concat(l));if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let i=e.body.getReader(),a=new TextDecoder;for(;;){let{value:e,done:l}=await i.read();if(l){console.log("Stream complete");break}let o=a.decode(e,{stream:!0}).split("\n").filter(e=>""!==e.trim());s(e=>[...e,...o]),r(!1)}}catch(e){console.error("Error fetching logs:",e),c("Failed to fetch logs: ".concat(e.message))}finally{r(!1)}};return(0,o.useEffect)(()=>(h(),()=>{}),[l]),(0,o.useEffect)(()=>{m.current&&(m.current.scrollTop=m.current.scrollHeight)},[n]),(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,a.jsx)("div",{className:"py-4 w-full max-w-7xl",children:(0,a.jsx)("a",{href:"/webui/application",onClick:i,children:(0,a.jsxs)(p.z,{className:"flex items-center space-x-2",children:[(0,a.jsx)(eg.Z,{className:"mr-2 h-4 w-4"}),(0,a.jsx)("span",{children:"Go back"})]})})}),(0,a.jsx)("div",{className:"w-full max-w-7xl bg-white shadow-lg rounded-lg overflow-hidden",children:(0,a.jsx)("div",{className:"w-full bg-gray-900 ".concat(v?"fixed inset-0 z-50":"min-h-0"),children:(0,a.jsxs)("div",{className:"w-full flex flex-col h-full",children:[(0,a.jsxs)("div",{className:"bg-gray-800 p-3 flex items-center justify-between border-b border-gray-700",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsxs)("div",{className:"flex space-x-2",children:[(0,a.jsx)("div",{className:"w-3 h-3 rounded-full bg-red-500"}),(0,a.jsx)("div",{className:"w-3 h-3 rounded-full bg-yellow-500"}),(0,a.jsx)("div",{className:"w-3 h-3 rounded-full bg-green-500"})]}),(0,a.jsxs)("span",{className:"text-gray-300 ml-4 font-mono",children:["Terminal - Apply Application Logs (",l,")"]})]}),(0,a.jsx)("button",{onClick:()=>{u(!v)},className:"text-gray-400 hover:text-gray-200",children:v?(0,a.jsx)(eN.Z,{className:"w-5 h-5"}):(0,a.jsx)(ej.Z,{className:"w-5 h-5"})})]}),(0,a.jsx)("div",{className:"p-4 overflow-hidden ".concat(v?"flex-1":"h-[400px]"),children:t?(0,a.jsxs)("div",{className:"flex items-center space-x-2 text-gray-300",children:[(0,a.jsx)(ey.Z,{className:"animate-spin"}),(0,a.jsx)("span",{className:"font-mono",children:"Initializing terminal session..."})]}):d?(0,a.jsxs)("div",{className:"text-red-400 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2 font-mono",children:[(0,a.jsx)(H.Z,{className:"w-5 h-5"}),(0,a.jsxs)("span",{children:["Error: ",d]})]}),(0,a.jsxs)("button",{onClick:h,className:"flex items-center space-x-2 px-3 py-1 bg-gray-700 text-gray-200 rounded hover:bg-gray-600 font-mono",children:[(0,a.jsx)(e_.Z,{className:"w-4 h-4"}),(0,a.jsx)("span",{children:"Retry Connection"})]})]}):n.length>0?(0,a.jsx)("div",{ref:m,className:"font-mono text-sm text-green-400 overflow-y-auto h-full",children:n.map((e,l)=>(0,a.jsx)("div",{className:"whitespace-pre-wrap py-0.5 border-b border-gray-800/50 last:border-0",children:e},l))}):(0,a.jsx)("div",{className:"text-gray-500 font-mono",children:"No logs available. Waiting for data..."})}),(0,a.jsx)("div",{className:"bg-gray-800 p-2 border-t border-gray-700",children:(0,a.jsxs)("div",{className:"flex items-center justify-between text-xs text-gray-400 font-mono",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(ew.Z,{className:"w-4 h-4 text-green-500"}),(0,a.jsx)("span",{children:"Connected to logs"})]}),(0,a.jsx)("span",{children:new Date().toLocaleTimeString()})]})})]})})})]})}var ek=i(56146),eA=i(40837);function eZ(){let[e,l]=(0,o.useState)(!1),i=(0,r.useSearchParams)(),n=i.get("id"),s=i.get("identifier"),t=i.get("type_id");return n?(0,a.jsx)(eS,{id:n}):(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-3xl",children:[(0,a.jsx)(ek.aG,{children:(0,a.jsxs)(ek.Jb,{children:[(0,a.jsx)(ek.gN,{children:(0,a.jsx)(ek.At,{href:"/webui",children:"Home"})}),(0,a.jsx)(ek.bg,{}),(0,a.jsx)(ek.gN,{children:(0,a.jsx)(ek.At,{href:"/webui/application",children:"Application"})}),(0,a.jsx)(ek.bg,{}),(0,a.jsx)(ek.gN,{children:(0,a.jsx)(ek.AG,{children:(0,a.jsx)("a",{href:"/webui/application",children:t&&s?"Edit Application":"Add Application"})})})]})}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsxs)("div",{className:"border-b border-gray-200 pb-4 mb-4",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,a.jsx)("h1",{className:"text-2xl font-semibold leading-7 text-gray-900",children:t&&s?"Edit ".concat(s):"Create application"}),(0,a.jsxs)(p.z,{variant:"outline",onClick:()=>l(!0),className:"flex items-center gap-2",children:[(0,a.jsx)(eA.Z,{className:"w-4 h-4"}),"Developer mode"]})]}),(0,a.jsx)("p",{className:"text-sm text-gray-500",children:t&&s?"Edit your application and click apply changes":"Set up your new application in a minute!"}),(0,a.jsx)(h.Vq,{open:e,onOpenChange:l,children:(0,a.jsxs)(h.cZ,{className:"sm:max-w-[1000px] max-h-[80vh] flex flex-col",children:[(0,a.jsxs)(h.fK,{children:[(0,a.jsx)(h.$N,{children:"Developer Mode"}),(0,a.jsx)(h.Be,{children:"Access advanced settings and configurations for your application."})]}),(0,a.jsx)("div",{className:"flex-1 overflow-y-auto py-6",children:(0,a.jsx)("div",{className:"m-2",children:(0,a.jsx)(k,{simple:!0})})})]})})]}),(0,a.jsx)("br",{}),(0,a.jsx)(ef,{})]})})}var eC=i(70007),eP=(0,i(4867).N)(function(){return(0,a.jsx)(eC.Z,{activeNavItem:"/webui/application",children:(0,a.jsx)("main",{className:"py-10",children:(0,a.jsx)("div",{className:"px-4 sm:px-6 lg:px-8",children:(0,a.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,a.jsx)("div",{className:"mx-auto max-w-7xl",children:(0,a.jsx)(eZ,{})})})})})})})},72513:function(e,l,i){"use strict";i.d(l,{Cd:function(){return d},X:function(){return c},bZ:function(){return r}});var a=i(27573),o=i(7653),n=i(85145),s=i(18580);let t=(0,n.j)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),r=o.forwardRef((e,l)=>{let{className:i,variant:o,...n}=e;return(0,a.jsx)("div",{ref:l,role:"alert",className:(0,s.cn)(t({variant:o}),i),...n})});r.displayName="Alert";let d=o.forwardRef((e,l)=>{let{className:i,...o}=e;return(0,a.jsx)("h5",{ref:l,className:(0,s.cn)("mb-1 font-medium leading-none tracking-tight",i),...o})});d.displayName="AlertTitle";let c=o.forwardRef((e,l)=>{let{className:i,...o}=e;return(0,a.jsx)("div",{ref:l,className:(0,s.cn)("text-sm [&_p]:leading-relaxed",i),...o})});c.displayName="AlertDescription"},56146:function(e,l,i){"use strict";i.d(l,{AG:function(){return u},At:function(){return v},Jb:function(){return d},aG:function(){return r},bg:function(){return m},gN:function(){return c}});var a=i(27573),o=i(7653),n=i(85688),s=i(8828),t=i(18580);let r=o.forwardRef((e,l)=>{let{...i}=e;return(0,a.jsx)("nav",{ref:l,"aria-label":"breadcrumb",...i})});r.displayName="Breadcrumb";let d=o.forwardRef((e,l)=>{let{className:i,...o}=e;return(0,a.jsx)("ol",{ref:l,className:(0,t.cn)("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",i),...o})});d.displayName="BreadcrumbList";let c=o.forwardRef((e,l)=>{let{className:i,...o}=e;return(0,a.jsx)("li",{ref:l,className:(0,t.cn)("inline-flex items-center gap-1.5",i),...o})});c.displayName="BreadcrumbItem";let v=o.forwardRef((e,l)=>{let{asChild:i,className:o,...n}=e,r=i?s.g7:"a";return(0,a.jsx)(r,{ref:l,className:(0,t.cn)("transition-colors hover:text-foreground",o),...n})});v.displayName="BreadcrumbLink";let u=o.forwardRef((e,l)=>{let{className:i,...o}=e;return(0,a.jsx)("span",{ref:l,role:"link","aria-disabled":"true","aria-current":"page",className:(0,t.cn)("font-normal text-foreground",i),...o})});u.displayName="BreadcrumbPage";let m=e=>{let{children:l,className:i,...o}=e;return(0,a.jsx)("li",{role:"presentation","aria-hidden":"true",className:(0,t.cn)("[&>svg]:size-3.5",i),...o,children:null!=l?l:(0,a.jsx)(n.XCv,{})})};m.displayName="BreadcrumbSeparator"},4216:function(e,l,i){"use strict";i.d(l,{X:function(){return r}});var a=i(27573),o=i(7653),n=i(92999),s=i(85688),t=i(18580);let r=o.forwardRef((e,l)=>{let{className:i,...o}=e;return(0,a.jsx)(n.fC,{ref:l,className:(0,t.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",i),...o,children:(0,a.jsx)(n.z$,{className:(0,t.cn)("flex items-center justify-center text-current"),children:(0,a.jsx)(s.nQG,{className:"h-4 w-4"})})})});r.displayName=n.fC.displayName},63052:function(e,l,i){"use strict";i.d(l,{Bw:function(){return h},DI:function(){return d},Ph:function(){return r},Ql:function(){return x},i4:function(){return v},ki:function(){return c},n5:function(){return p}});var a=i(27573),o=i(7653),n=i(85688),s=i(66240),t=i(18580);let r=s.fC,d=s.ZA,c=s.B4,v=o.forwardRef((e,l)=>{let{className:i,children:o,...r}=e;return(0,a.jsxs)(s.xz,{ref:l,className:(0,t.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",i),...r,children:[o,(0,a.jsx)(s.JO,{asChild:!0,children:(0,a.jsx)(n.jnn,{className:"h-4 w-4 opacity-50"})})]})});v.displayName=s.xz.displayName;let u=o.forwardRef((e,l)=>{let{className:i,...o}=e;return(0,a.jsx)(s.u_,{ref:l,className:(0,t.cn)("flex cursor-default items-center justify-center py-1",i),...o,children:(0,a.jsx)(n.g8U,{})})});u.displayName=s.u_.displayName;let m=o.forwardRef((e,l)=>{let{className:i,...o}=e;return(0,a.jsx)(s.$G,{ref:l,className:(0,t.cn)("flex cursor-default items-center justify-center py-1",i),...o,children:(0,a.jsx)(n.v4q,{})})});m.displayName=s.$G.displayName;let h=o.forwardRef((e,l)=>{let{className:i,children:o,position:n="popper",...r}=e;return(0,a.jsx)(s.h_,{children:(0,a.jsxs)(s.VY,{ref:l,className:(0,t.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",i),position:n,...r,children:[(0,a.jsx)(u,{}),(0,a.jsx)(s.l_,{className:(0,t.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),(0,a.jsx)(m,{})]})})});h.displayName=s.VY.displayName;let p=o.forwardRef((e,l)=>{let{className:i,...o}=e;return(0,a.jsx)(s.__,{ref:l,className:(0,t.cn)("px-2 py-1.5 text-sm font-semibold",i),...o})});p.displayName=s.__.displayName;let x=o.forwardRef((e,l)=>{let{className:i,children:o,...r}=e;return(0,a.jsxs)(s.ck,{ref:l,className:(0,t.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",i),...r,children:[(0,a.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(s.wU,{children:(0,a.jsx)(n.nQG,{className:"h-4 w-4"})})}),(0,a.jsx)(s.eT,{children:o})]})});x.displayName=s.ck.displayName,o.forwardRef((e,l)=>{let{className:i,...o}=e;return(0,a.jsx)(s.Z0,{ref:l,className:(0,t.cn)("-mx-1 my-1 h-px bg-muted",i),...o})}).displayName=s.Z0.displayName},91894:function(e,l,i){"use strict";var a=i(27573),o=i(7653),n=i(412),s=i(33597),t=i(36531);function r(e){return(0,a.jsx)("svg",{...e,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",children:(0,a.jsx)("path",{d:"m6 9 6 6 6-6"})})}function d(e){return(0,a.jsx)("svg",{...e,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",children:(0,a.jsx)("path",{d:"m18 15-6-6-6 6"})})}l.Z=()=>{let e=(0,n.v9)(e=>e.uploadFiles.uploadFilesLoadedValues||[]),[l,i]=(0,o.useState)(!1),[c,v]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{0===e.length||c||i(!0)},[e,c]),(0,a.jsxs)("div",{children:[(0,a.jsxs)(t.z,{variant:"secondary",onClick:()=>{i(!l),v(!0)},children:["Upload Artifact",l?(0,a.jsx)(d,{className:"ml-2 h-4 w-4"}):(0,a.jsx)(r,{className:"ml-2 h-4 w-4"})]}),(l||!c&&0!==e.length)&&(0,a.jsx)("div",{className:"col-span-full mt-2",children:(0,a.jsx)(s.Z,{})})]})}},87191:function(e,l,i){"use strict";i.d(l,{Z:function(){return d}});var a=i(27573),o=i(7653),n=i(22392);i(40020),i(19234),i(83346);var s=i(412),t=i(24017),r=i(93296);function d(e){let{data:l,height:i="300px"}=e,d=(0,s.I0)(),[c,v]=(0,o.useState)(JSON.stringify(l,null," "));return(0,o.useRef)(null),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(n.default,{className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Stack result JSON here...",mode:"json",theme:"github",name:"blah2",onChange:e=>{try{v(e),d((0,t.q7)(JSON.parse(e)))}catch(e){r.ZP.error("Error updating...",{id:"stack-update-error"})}},fontSize:13,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:c,setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,useWorker:!1,wrap:!0},height:i,width:"100%"})})}},55623:function(e){"use strict";e.exports=["str","string","bool","select","boolean","text-area","multi-select","multi-str","multi-checkbox","complex","int","json","code"]},13271:function(e,l,i){"use strict";let a=i(36509),o=i(53971),n=i(33181),s=i(55623);e.exports={tailwindConfig:a,postcssConfig:o,nextBaseConfig:n,defaultFormTypes:s}},33181:function(e,l,i){"use strict";var a=i(74859);e.exports={output:"export",reactStrictMode:!1,eslint:{ignoreDuringBuilds:!0},swcMinify:!0,headers:async()=>[{source:"/api/:path*",headers:[{key:"Access-Control-Allow-Credentials",value:"true"},{key:"Access-Control-Allow-Origin",value:"*"},{key:"Access-Control-Allow-Methods",value:"GET,DELETE,PATCH,POST,PUT"},{key:"Access-Control-Allow-Headers",value:"X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"}]}],assetPrefix:void 0,experimental:{missingSuspenseWithCSRBailout:!1,proxyTimeout:36e4},redirects:async()=>[{source:"/",destination:"/webui",permanent:!0}],rewrites:async()=>[{source:"/webui/apiserver/:path*",destination:"".concat("","/:path*")},{source:"/webui/restapi/:path*",destination:"".concat(a.env.NEXT_PUBLIC_REVERSE_PROXY||"http://localhost:8000","/:path*")},{source:"/webui_api/:path*",destination:"/api/:path*"}]}},53971:function(e){"use strict";e.exports={plugins:{tailwindcss:{},autoprefixer:{}}}},36509:function(e,l,i){"use strict";e.exports={darkMode:["class"],content:["./pages/**/*.{js,ts,jsx,tsx,mdx}","./components/**/*.{js,ts,jsx,tsx,mdx}","./app/**/*.{js,ts,jsx,tsx,mdx}","./src/**/*.{js,ts,jsx,tsx,mdx}","../components/**/*.{js,ts,jsx,tsx,mdx}","../../components/**/*.{js,ts,jsx,tsx,mdx}","../../utils/**/*.{js,ts,jsx,tsx,mdx}"],prefix:"",theme:{container:{center:!0,padding:"2rem",screens:{"2xl":"1400px"}},extend:{colors:{indigo:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},supercolor:{50:"#ede7ff",100:"#d2befd",200:"#b692fc",300:"#9a67ea",400:"#7f3dfd",500:"#7628f8",600:"#5b0cb8",700:"#4c0a91",800:"#3e086b",900:"#32074f"},border:"hsl(var(--border))",input:"hsl(var(--input))",ring:"hsl(var(--ring))",background:"hsl(var(--background))",backgroundImage:{"gradient-radial":"radial-gradient(var(--tw-gradient-stops))","gradient-conic":"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))"},foreground:"hsl(var(--foreground))",primary:{DEFAULT:"hsl(var(--primary))",foreground:"hsl(var(--primary-foreground))"},secondary:{DEFAULT:"hsl(var(--secondary))",foreground:"hsl(var(--secondary-foreground))"},destructive:{DEFAULT:"hsl(var(--destructive))",foreground:"hsl(var(--destructive-foreground))"},muted:{DEFAULT:"hsl(var(--muted))",foreground:"hsl(var(--muted-foreground))"},accent:{DEFAULT:"hsl(var(--accent))",foreground:"hsl(var(--accent-foreground))"},popover:{DEFAULT:"hsl(var(--popover))",foreground:"hsl(var(--popover-foreground))"},card:{DEFAULT:"hsl(var(--card))",foreground:"hsl(var(--card-foreground))"}},borderRadius:{lg:"var(--radius)",md:"calc(var(--radius) - 2px)",sm:"calc(var(--radius) - 4px)"},keyframes:{"accordion-down":{from:{height:"0"},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:"0"}}},animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out"}}},plugins:[i(4821),i(58173)]}}},function(e){e.O(0,[5458,7441,3296,8320,8374,3908,7653,7050,6340,4112,9115,3406,8113,6784,3696,935,1826,2895,1293,1528,1744],function(){return e(e.s=78186)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/app/webui/add-components/page-6ffc9eab11a325a7.js b/superduper/rest/out/_next/static/chunks/app/webui/add-components/page-6ffc9eab11a325a7.js deleted file mode 100644 index a715a231a..000000000 --- a/superduper/rest/out/_next/static/chunks/app/webui/add-components/page-6ffc9eab11a325a7.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9346],{31065:function(e,n,t){Promise.resolve().then(t.bind(t,65061))},65061:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return L}});var a=t(27573),s=t(7653),l=t(64303),o=t(34209),r=t(63052),i=t(80923),d=t(24017),c=t(412),u=t(1930),m=t(97747),p=t(23611),f=t(2187),h=t(13908),x=t(22392);t(98295),t(19234),t(78187),t(83346),t(39166);var g=t(30897),v=t(93296),j=t(7109);function y(){for(var e=arguments.length,n=Array(e),t=0;t2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(!0==t){if(a&&a.length>0&&a.includes(e))return"componentSelectSequence";if("artifact"==e)return"artifactSelectSequence";if(("str"===e||"string"===e)&&n)return"strSelectSequence"}return"artifact"===e||"blob"==e||"blobs"==e?"artifactSelect":"code"===e?"code":a&&a.length>0&&a.includes(e)?"componentSelect":"str"===e||"string"===e?n?"select":"str":"int"===e?"int":"json"===e||"query"==e?"json":"bool"===e||"boolean"===e?"boolean":"str"}function N(e){return e.some(e=>!0===e.optional)}var w=function(e){let{index:n,component:t,componentType:l}=e;(0,c.v9)(e=>e.environment.environmentLoadedValues);let i=(0,c.v9)(e=>{var n;return null==e?void 0:null===(n=e.userInfo)||void 0===n?void 0:n.userInfoLoadedValues}),w=(0,c.I0)(),k=(0,c.v9)(e=>e.stack.stackUpdateByIndex),S=(0,c.v9)(e=>e.stack.stackSpecLoadedValues),C=(0,c.v9)(e=>e.uploadFiles.uploadFilesLoadedValues),[_,T]=(0,s.useState)(null),[E,A]=(0,s.useState)(0),[Z,I]=(0,s.useState)(!0),[P,O]=(0,s.useState)(null),[R,D]=(0,s.useState)(!1),[V,q]=(0,s.useState)("");(0,s.useEffect)(()=>{var e;let a=null===(e=S[l])||void 0===e?void 0:e[t],s=a?(console.log("\uD83D\uDE80\uD83D\uDE80\uD83D\uDE80 Component Spec: \uD83D\uDE80\uD83D\uDE80\uD83D\uDE80",a),a.reduce((e,n)=>((null==n?void 0:n.default)===void 0&&(null==n?void 0:n.sequence)?e[n.name]=[]:n.default&&(null==n?void 0:n.sequence)?e[n.name]=(null==n?void 0:n.default)||[]:(null==n?void 0:n.default)===void 0&&(null==n?void 0:n.optional)||((null==n?void 0:n.type)=="boolean"||(null==n?void 0:n.type)=="bool"?e[n.name]=(null==n?void 0:n.default)||!1:(null==n?void 0:n.default)===void 0&&(null==n?void 0:n.optional)?e[n.name]=null:e[n.name]="int"===n.type&&void 0!==n.default?parseInt(n.default,10)||0:n.default||""),e),{})):{};w((0,d.Qk)(n,{...k[n],...s})),setTimeout(()=>{w((0,d.Qk)(n,{...k[n],...s}))},100),D(!0),A(e=>e+1)},[l]),(0,s.useEffect)(()=>{let e=[],n=()=>{setTimeout(()=>{O(e)},1e3)};(async()=>{try{let e=k.filter(e=>e.componentType&&e.identifier).map(e=>{let{componentType:n,identifier:t}=e;return{type_id:n,identifier:t}}),n=function(e,n,t){let a=new Set;return[...e.flatMap(e=>a.add(e[t])&&e),...n.flatMap(e=>!a.has(e[t])&&e)]}(e,[],"identifier");O(n)}catch(e){console.error("Error fetching Services API data"),n()}})()},[n,t,l]),(0,s.useEffect)(()=>{T(S[l][t])},[S,k,n,t,l]);let[L,F]=(0,s.useState)([]);(0,s.useEffect)(()=>{!function(){try{h.Z.get("".concat("".concat("http://localhost:8000","/spec/show")),{headers:{Accept:"application/json",Authorization:(0,j.Z)(i),superduper_reverse_proxy:"http://localhost:8000"}}).then(e=>{F([...e.data.components,...Object.keys(e.data.leaves)]),q(e.data.leaves)}).catch(e=>{console.error("Error fetching components data",e),v.ZP.error("Error fetching components data!")})}catch(e){v.ZP.error("Error fetching lookup data!")}}()},[k]);let z=(e,t)=>{w((0,d.Qk)(n,{...k[n],[t]:e.target.value})),A(e=>e+1)},B=(e,t)=>{w((0,d.Qk)(n,{...k[n],[t]:!e})),A(e=>e+1)},Q=(e,t)=>{w((0,d.Qk)(n,{...k[n],[t]:k[n][t].includes(e.target.value)?[...k[n][t]]:[...k[n][t],e.target.value]})),A(e=>e+1)},J=(e,t)=>{w((0,d.Qk)(n,{...k[n],[t]:Array.isArray(k[n][t])?k[n][t].filter(n=>n!==e):[]})),A(e=>e+1)},U=(e,t)=>{let a=e.target.value;try{let e=parseInt(a,10);isNaN(e)?v.ZP.error("The value for ".concat(t," must be an integer."),{id:"integer-error"}):(w((0,d.Qk)(n,{...k[n],[t]:e})),A(e=>e+1))}catch(e){console.error("Error:",e),v.ZP.error("The value for ".concat(t," must be an integer."),{id:"integer-error"})}},G=(e,t)=>{w((0,d.Qk)(n,{...k[n],[t]:e})),A(e=>e+1)},M=(e,n)=>()=>{w((0,d.Qk)(e,{...k[e],[n]:(parseInt(k[e][n])||0)+1})),A(e=>e+1)},Y=(e,n)=>()=>{w((0,d.Qk)(e,{...k[e],[n]:(parseInt(k[e][n])||0)-1})),A(e=>e+1)},H=e=>null!=e&&!!e.optional&&!!Z;function W(e,n){let t=n.replace(/^component\//,"");return e.filter(e=>e.type_id===t&&e.identifier).map(e=>e.identifier)}let X=(e,t)=>{try{let a;""===e?a={}:"string"==typeof e?(a=JSON.parse(e),JSON.stringify(a,null,2)):a={},console.log("Parsed JSON:",a),w((0,d.Qk)(n,{...k[n],[t.name]:a}))}catch(a){console.error("Error parsing JSON:",a),w((0,d.Qk)(n,{...k[n],[t.name]:e}))}},$=(e,t)=>{try{w((0,d.Qk)(n,{...k[n],[t.name]:e}))}catch(a){console.error("Error parsing JSON:",a),w((0,d.Qk)(n,{...k[n],[t.name]:e}))}};function K(e,n){if(e.hasOwnProperty(n)){let t=e[n];for(let e in t)if(t[e].hasOwnProperty("_path"))return t[e]._path}}return _&&k&&P&&R?(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-1.5",children:[_.map(e=>{var t,l,i,d,c,h,v,j,N,w,S,_,T,E,A,Z,I,O,R,D,q,F,ee,en;return(0,a.jsxs)(s.Fragment,{children:[!H(e)&&"str"===b(null==e?void 0:e.type,null==e?void 0:e.choices,null==e?void 0:e.sequence,L)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsxs)(m._,{htmlFor:e.name,children:[e.name," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]})}),(0,a.jsx)(u.I,{id:e.name,value:(null===(t=k[n])||void 0===t?void 0:t[e.name])||"",onChange:n=>z(n,e.name),placeholder:e.default?"Default: ".concat(e.default):"Type the ".concat(e.name," value here"),autocomplete:"off"})]}),!H(e)&&"boolean"===b(null==e?void 0:e.type,null==e?void 0:e.choices,null==e?void 0:e.sequence,L)&&(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsxs)(g.r.Group,{as:"div",className:"flex items-center",children:[(0,a.jsx)(g.r,{checked:null===(l=k[n])||void 0===l?void 0:l[e.name],onChange:()=>{var t;return B(null===(t=k[n])||void 0===t?void 0:t[e.name],e.name)},className:y((null===(i=k[n])||void 0===i?void 0:i[e.name])?"bg-indigo-600":"bg-gray-200","relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-600 focus:ring-offset-2"),children:(0,a.jsx)("span",{"aria-hidden":"true",className:y((null===(d=k[n])||void 0===d?void 0:d[e.name])?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out")})}),(0,a.jsxs)(g.r.Label,{as:"span",className:"ml-3 text-sm",children:[(0,a.jsx)("span",{className:"font-medium text-gray-900",children:e.name})," ",(null==e?void 0:e.optional)?(0,a.jsx)("span",{className:"text-gray-500",children:"(optional)"}):(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]})]})})}),!H(e)&&"select"===b(null==e?void 0:e.type,null==e?void 0:e.choices,null==e?void 0:e.sequence,L)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsxs)(m._,{htmlFor:e.name,children:[e.name," ",e.optional?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]})}),(0,a.jsxs)(r.Ph,{value:(null===(c=k[n])||void 0===c?void 0:c[e.name])||"",onValueChange:n=>G(n,e.name),children:[(0,a.jsx)(r.i4,{"aria-label":e.name,className:"w-[280px]",children:(0,a.jsx)(r.ki,{placeholder:"Select an option"})}),(0,a.jsx)(r.Bw,{children:(0,a.jsxs)(r.DI,{children:[(0,a.jsxs)(r.n5,{children:["Select ",e.name]}),null===(h=e.choices)||void 0===h?void 0:h.map(e=>(0,a.jsx)(r.Ql,{value:e,children:e},e))]})})]})]}),!H(e)&&"componentSelect"===b(null==e?void 0:e.type,null==e?void 0:e.choices,null==e?void 0:e.sequence,L)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsxs)(m._,{htmlFor:e.name,children:[e.name," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]})}),(0,a.jsxs)("select",{id:e.name,name:e.name,value:(null===(v=k[n])||void 0===v?void 0:v[e.name])||"",onChange:n=>z(n,e.name),placeholder:e.default?"Default: ".concat(e.default):"Type the ".concat(e.name," value here"),className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[(0,a.jsx)("option",{value:"",children:"Select a component"},"showComponent"),P?null===(j=W(P,null==e?void 0:e.type))||void 0===j?void 0:j.map(n=>(0,a.jsxs)("option",{value:"?".concat(K(V,null==e?void 0:e.type),"/").concat(null==e?void 0:e.type,"/").concat(n),children:["?",K(V,null==e?void 0:e.type),"/",n]},n)):null]})]}),!H(e)&&"componentSelectSequence"===b(null==e?void 0:e.type,null==e?void 0:e.choices,null==e?void 0:e.sequence,L)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(m._,{htmlFor:e.name,children:[e.name," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(0,a.jsxs)("div",{className:"mt-0 items-center gap-x-2.5 gap-y-2.5 text-xs leading-5 text-gray-400",children:[(0,a.jsxs)("p",{className:"whitespace-nowrap",children:["Selected Sequence:"," ",k[n]&&k[n][e.name]&&0===k[n][e.name].length&&(0,a.jsx)("span",{children:"None"})]}),(null===(N=k[n])||void 0===N?void 0:N[e.name])&&(null===(w=k[n])||void 0===w?void 0:w[e.name].map((n,t)=>(0,a.jsxs)(s.Fragment,{children:[(0,a.jsxs)("button",{type:"button",className:"mt-2 inline-flex items-center rounded-full bg-white px-2.5 py-1 text-xs font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:[n,(0,a.jsx)(o.Z,{onClick:()=>J(n,e.name),className:"-mr-0.5 h-4 w-4","aria-hidden":"true"})]}),(0,a.jsx)("br",{})]},n)))]})]}),(0,a.jsxs)("select",{id:e.name,name:e.name,value:"",onChange:n=>Q(n,e.name),placeholder:e.default?"Default: ".concat(e.default):"Type the ".concat(e.name," value here"),className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[(0,a.jsx)("option",{value:"",children:"Select a component to sequence"},"showComponent"),P&&(null==e?void 0:e.type)&&k[n][e.name]?null===(S=W(P,e.type))||void 0===S?void 0:S.filter(t=>{var a;return!(Array.isArray(null===(a=k[n])||void 0===a?void 0:a[e.name])&&k[n][e.name].includes(t))}).map((n,t)=>(0,a.jsx)(s.Fragment,{children:(0,a.jsxs)("option",{value:"?component/".concat(e.type,"/").concat(n),children:["?component/",e.type,"/",n]},n)},t)):null]},JSON.stringify(null===(_=k[n])||void 0===_?void 0:_[e.name]))]}),!H(e)&&"artifactSelectSequence"===b(null==e?void 0:e.type,null==e?void 0:e.choices,null==e?void 0:e.sequence,L)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(m._,{htmlFor:e.name,children:[e.name," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(0,a.jsxs)("div",{className:"mt-0 items-center gap-x-2.5 gap-y-2.5 text-xs leading-5 text-gray-400",children:[(0,a.jsxs)("p",{className:"whitespace-nowrap",children:["Selected Sequence:"," ",k[n]&&k[n][e.name]&&0===k[n][e.name].length&&(0,a.jsx)("span",{children:"None"})]}),(null===(T=k[n])||void 0===T?void 0:T[e.name])&&(null===(E=k[n])||void 0===E?void 0:E[e.name].map((n,t)=>(0,a.jsxs)(s.Fragment,{children:[(0,a.jsxs)("button",{type:"button",className:"mt-2 inline-flex items-center rounded-full bg-white px-2.5 py-1 text-xs font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:[n,(0,a.jsx)(o.Z,{onClick:()=>J(n,e.name),className:"-mr-0.5 h-4 w-4","aria-hidden":"true"})]}),(0,a.jsx)("br",{})]},n)))]})]}),(0,a.jsxs)("select",{id:e.name,name:e.name,value:"",onChange:n=>Q(n,e.name),placeholder:e.default?"Default: ".concat(e.default):"Type the ".concat(e.name," value here"),className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[(0,a.jsx)("option",{value:"",children:"Select an artifact after uploading to create sequence"},"uploadArtifact"),C?null==C?void 0:C.map((e,n)=>(0,a.jsx)("option",{value:"".concat(e),children:e},e)):null]},JSON.stringify(null===(A=k[n])||void 0===A?void 0:A[e.name]))]}),!H(e)&&"strSelectSequence"===b(null==e?void 0:e.type,null==e?void 0:e.choices,null==e?void 0:e.sequence,L)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(m._,{htmlFor:e.name,children:[e.name," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(0,a.jsxs)("div",{className:"mt-0 items-center gap-x-2.5 gap-y-2.5 text-xs leading-5 text-gray-400",children:[(0,a.jsxs)("p",{className:"whitespace-nowrap",children:["Selected Sequence:"," ",k[n]&&k[n][e.name]&&0===k[n][e.name].length&&(0,a.jsx)("span",{children:"None"})]}),(null===(Z=k[n])||void 0===Z?void 0:Z[e.name])&&(null===(I=k[n])||void 0===I?void 0:I[e.name].map((n,t)=>(0,a.jsxs)(s.Fragment,{children:[(0,a.jsxs)("button",{type:"button",className:"mt-2 inline-flex items-center rounded-full bg-white px-2.5 py-1 text-xs font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:[n,(0,a.jsx)(o.Z,{onClick:()=>J(n,e.name),className:"-mr-0.5 h-4 w-4","aria-hidden":"true"})]}),(0,a.jsx)("br",{})]},n)))]})]}),(0,a.jsxs)("select",{id:e.name,name:e.name,value:"",onChange:n=>Q(n,e.name),placeholder:e.default?"Default: ".concat(e.default):"Type the ".concat(e.name," value here"),className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[(0,a.jsx)("option",{value:"",children:"Select values to create sequence"},"uploadArtifact"),e.choices?null==e?void 0:e.choices.map(e=>(0,a.jsx)("option",{value:e,children:e},e)):null]},JSON.stringify(null===(O=k[n])||void 0===O?void 0:O[e.name]))]}),!H(e)&&"artifactSelect"===b(null==e?void 0:e.type,null==e?void 0:e.choices,null==e?void 0:e.sequence,L)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsxs)(m._,{htmlFor:e.name,children:[e.name," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]})}),(0,a.jsxs)("select",{id:e.name,name:e.name,value:(null===(R=k[n])||void 0===R?void 0:R[e.name])||"",onChange:n=>z(n,e.name),placeholder:e.default?"Default: ".concat(e.default):"Type the ".concat(e.name," value here"),className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[(0,a.jsx)("option",{value:"",children:"Select an artifact after uploading"},"uploadArtifact"),C?null==C?void 0:C.map((e,n)=>(0,a.jsx)("option",{value:"".concat(e),children:e},e)):null]})]}),!H(e)&&"int"===b(null==e?void 0:e.type,null==e?void 0:e.choices,null==e?void 0:e.sequence,L)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsxs)(m._,{htmlFor:e.name,children:[e.name," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]})}),(0,a.jsxs)("div",{className:"flex items-center justify-left",children:[(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("button",{type:"button",onClick:Y(n,e.name),className:"rounded-full bg-indigo-600 p-1 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 mr-4",children:(0,a.jsx)(p.Z,{className:"h-5 w-5","aria-hidden":"true"})}),(0,a.jsx)("input",{type:"int",className:"w-16 text-center block rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",id:e.name,value:(null===(D=k[n])||void 0===D?void 0:D[e.name])||0,onChange:n=>U(n,e.name)}),(0,a.jsx)("button",{type:"button",onClick:M(n,e.name),className:"rounded-full bg-indigo-600 p-1 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 ml-4",children:(0,a.jsx)(f.Z,{className:"h-5 w-5","aria-hidden":"true"})})]})]}),!H(e)&&"json"===b(null==e?void 0:e.type,null==e?void 0:e.choices,null==e?void 0:e.sequence,L)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsxs)(m._,{htmlFor:e.name,children:[e.name," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]})}),(0,a.jsx)(x.default,{className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Here you can pass a dictionary as value. e.g. {key: value}",mode:"json",theme:"twilight",name:e.name,onChange:n=>X(n,e),fontSize:13,showPrintMargin:!0,showGutter:!1,highlightActiveLine:!0,value:"object"==typeof(null===(q=k[n])||void 0===q?void 0:q[e.name])?JSON.stringify(null===(F=k[n])||void 0===F?void 0:F[e.name],null," "):(null===(ee=k[n])||void 0===ee?void 0:ee[e.name])||"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,height:"150px",width:"175%"})]}),!H(e)&&"code"===b(null==e?void 0:e.type,null==e?void 0:e.choices,null==e?void 0:e.sequence,L)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsxs)(m._,{htmlFor:e.name,children:[e.name," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]})}),(0,a.jsx)(x.default,{className:"mt-2 rounded-md border-2 py-1.5 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Write Python here...",mode:"python",theme:"tomorrow",name:e.name,onChange:n=>$(n,e),fontSize:13,showPrintMargin:!0,showGutter:!1,highlightActiveLine:!0,value:(null===(en=k[n])||void 0===en?void 0:en[e.name])||"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,height:"250px",width:"175%"})]})]},e.name)}),N(_)&&Z&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("ul",{role:"list",className:"mt-6 divide-y divide-gray-200 border-b border-t border-gray-200"}),(0,a.jsx)("div",{className:"mt-6 flex",children:(0,a.jsxs)("span",{className:"text-sm font-medium text-indigo-600 hover:text-indigo-500",onClick:()=>{I(!Z)},children:["Show optional parameters",(0,a.jsx)("span",{"aria-hidden":"true",children:" →"})]})})]}),N(_)&&!Z&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("ul",{role:"list",className:"mt-6 divide-y divide-gray-200 border-b border-t border-gray-200"}),(0,a.jsx)("div",{className:"mt-6 flex",children:(0,a.jsxs)("span",{className:"text-sm font-medium text-indigo-600 hover:text-indigo-500",onClick:()=>{I(!Z)},children:["Hide optional parameters",(0,a.jsx)("span",{"aria-hidden":"true",children:" ←"})]})})]})]}):null},k=function(e){var n,t,l,u,m,p,f,h,x;let{index:g}=e,v=(0,c.I0)(),j=(0,c.v9)(e=>e.stack.stackUpdateByIndex),y=(0,c.v9)(e=>e.stack.stackSpecLoadedValues),[b,N]=(0,s.useState)(null),[k,S]=(0,s.useState)(0),[C,_]=(0,s.useState)(!1),T=()=>{try{let e=function(e){let n={};for(let t in e)Array.isArray(e[t])?n[t]=Object.keys(e[t]):n[t]=Object.keys(e[t]).map(e=>e);return n}(y);N(e)}catch(e){console.error("Error fetching data:",e)}};return((0,s.useEffect)(()=>{T()},[y,j]),b)?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"mt-4 pt-4 rounded-2xl border-4 border-dashed border-gray-900/25 px-6 py-10",children:[(0,a.jsx)("br",{}),(0,a.jsx)("div",{className:"space-y-12",children:(0,a.jsxs)("div",{className:"pb-2",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between",children:[(0,a.jsx)("h2",{className:"text-base font-semibold leading-7 text-gray-900 ",children:"Add Component"}),(0,a.jsx)("div",{className:"ml-3 flex h-7 items-center",children:(0,a.jsxs)("button",{type:"button",className:"-mt-10 rounded-md bg-white text-gray-400 hover:text-gray-500 outline ring-2 ring-indigo-500",onClick:()=>{_(!0);let e=j.filter((e,n)=>n!==g);v((0,d.vW)(e))},children:[(0,a.jsx)("span",{className:"sr-only",children:"Close"}),(0,a.jsx)(o.Z,{className:"h-6 w-6","aria-hidden":"true"})]})})]}),(0,a.jsx)("p",{className:"mt-1 text-sm leading-6 text-gray-600",children:"Begin by choosing a component type, then select a specific component from the available list. To add multiple components simultaneously, click the plus icon below."}),(0,a.jsxs)("div",{className:"sm:col-span-3",children:[(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsx)(i.Z,{label:"Select Component Type",popoverheader:"Select Component Type",popovercontent:(0,a.jsx)("p",{children:'Select Component is the name of the component you want to add. i.e. "model"'})})}),(0,a.jsxs)(r.Ph,{className:"mt-4",value:(null===(n=j[g])||void 0===n?void 0:n.componentType)||"",onValueChange:e=>{v((0,d.Qk)(g,{componentType:e}))},children:[(0,a.jsx)(r.i4,{className:"w-[280px]",children:(0,a.jsx)(r.ki,{placeholder:"Select an option"})}),(0,a.jsx)(r.Bw,{children:(0,a.jsxs)(r.DI,{children:[(0,a.jsx)(r.n5,{children:"Select Component Type"}),Object.keys(b).filter(e=>"application"!==e).map(e=>(0,a.jsx)(r.Ql,{value:e,children:e},e))]})})]})]}),(null===(t=j[g])||void 0===t?void 0:t.componentType)!==""&&(0,a.jsxs)("div",{className:"sm:col-span-3",children:[(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsx)(i.Z,{label:"Select Component",popoverheader:"Select Component",popovercontent:(0,a.jsx)("p",{children:'Select Component is the name of the component you want to add. i.e. "my-Select Component"'})})}),(0,a.jsxs)(r.Ph,{className:"mt-2",value:(null===(l=j[g])||void 0===l?void 0:l.component)||"",onValueChange:e=>{var n;v((0,d.Qk)(g,{componentType:j[g].componentType,component:e}));let t=null===(n=y[j[g].componentType])||void 0===n?void 0:n[e],a=t?t.reduce((e,n)=>((null==n?void 0:n.default)===void 0&&(null==n?void 0:n.sequence)?e[n.name]=[]:n.default&&(null==n?void 0:n.sequence)?e[n.name]=(null==n?void 0:n.default)||[]:(null==n?void 0:n.default)===void 0&&(null==n?void 0:n.optional)||((null==n?void 0:n.type)=="boolean"||(null==n?void 0:n.type)=="bool"?e[n.name]=(null==n?void 0:n.default)||!1:(null==n?void 0:n.default)===void 0&&(null==n?void 0:n.optional)?e[n.name]=null:e[n.name]="int"===n.type&&void 0!==n.default?parseInt(n.default,10)||0:n.default||""),e),{}):{};v((0,d.Qk)(g,{componentType:j[g].componentType,component:e})),v((0,d.Qk)(g,{componentType:j[g].componentType,component:e,...a}))},children:[(0,a.jsx)(r.i4,{className:"w-[280px]",children:(0,a.jsx)(r.ki,{placeholder:"Select an option"})}),(0,a.jsx)(r.Bw,{children:(0,a.jsxs)(r.DI,{children:[(0,a.jsx)(r.n5,{children:"Select Component"}),null===(u=b[null===(m=j[g])||void 0===m?void 0:m.componentType])||void 0===u?void 0:u.map(e=>(0,a.jsx)(r.Ql,{value:e,children:e},e))]})})]})]}),(null===(p=j[g])||void 0===p?void 0:p.component)&&(null===(f=j[g])||void 0===f?void 0:f.componentType)&&(0,a.jsx)(w,{index:g,component:null===(h=j[g])||void 0===h?void 0:h.component,componentType:null===(x=j[g])||void 0===x?void 0:x.componentType})]})})]})}):null},S=t(88146),C=t(87191),_=t(45696),T=t.n(_),E=t(24776),A=t(36531);function Z(){(0,c.v9)(e=>e.environment.environmentLoadedValues);let e=(0,c.v9)(e=>{var n;return null==e?void 0:null===(n=e.userInfo)||void 0===n?void 0:n.userInfoLoadedValues}),n=(0,c.I0)(),t=(0,c.v9)(e=>e.stack.stackUpdateByIndex),l=(0,c.v9)(e=>e.stack.submittedStack),o=(0,c.v9)(e=>e.stack.stackLoadedValues),r=(0,c.v9)(e=>e.uploadFiles.uploadFilesLoadedValuesComponent||[]),[i,u]=(0,s.useState)(null),[m,p]=(0,s.useState)(!1),[f,h]=(0,s.useState)(!1),[x,g]=(0,s.useState)(null),y=async()=>{try{let t=await fetch("".concat("".concat("http://localhost:8000","/spec/show")),{headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:(0,j.Z)(e),superduper_reverse_proxy:"http://localhost:8000"}}),a=await t.json();n((0,d.EU)(null==a?void 0:a.leaves)),u(null==a?void 0:a.leaves)}catch(e){console.error(e),v.ZP.error("Error fetching data!",{id:"form-error"})}};function b(e){v.ZP.error(e,{id:"form-error"})}function N(){if(!l){v.ZP.error("Error adding component",{id:"form-error"});return}v.ZP.loading("Adding component...",{id:"adding"});try{fetch("".concat("".concat("http://localhost:8000","/db/apply")),{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:(0,j.Z)(e),superduper_reverse_proxy:"http://localhost:8000"},body:JSON.stringify(l,null," ")}).then(e=>{if(!e.ok){if(500===e.status)return e.json().then(e=>{throw console.log("Error response data:",e),g(e),Error("Server error")});throw Error("Network response was not ok")}return e.json()}).then(e=>{v.ZP.dismiss("adding"),console.log("Data from:",e),v.ZP.success("Component added successfully")}).catch(e=>{h(!0),console.error("Error fetching API data",e),v.ZP.error("Error adding component",{id:"form-error"}),v.ZP.dismiss("adding")})}catch(e){v.ZP.dismiss("adding"),h(!0),v.ZP.error("Error adding component")}}return(0,s.useEffect)(()=>{y()},[]),t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"mt-6 flex items-center justify-end gap-x-6",children:[(0,a.jsx)(S.default,{href:"/webui/add-components",children:(0,a.jsx)("button",{type:"button",className:"text-sm font-semibold leading-6 text-gray-900",children:"Cancel"})}),(0,a.jsx)("button",{onClick:e=>{e.preventDefault,function(){if(!t||0===t.length)return b("Please add at least one component to the stack");try{let e=t.map(e=>{if(!(null==e?void 0:e.componentType)||!(null==e?void 0:e.component))throw Error("Incomplete component data");let{componentType:n,component:t}=e,a=i[n][t]._path;if(!e||0===Object.keys(e).length)throw Error("Component ".concat(t," does not have any properties"));return{leaf_type:"component",type_id:n,cls:t,module:a,dict:e}}),a={identifier:null==o?void 0:o.identifier,_leaves:[...r,...e]},s=function(e){let{_leaves:n}=e,t={_leaves:{}};function a(e,n){let a=1,s=e;for(;(s in t._leaves);)s="".concat(e,"_").concat(a),a+=1;return"".concat(n,"/").concat(s)}return n.forEach(e=>{let n;let{type_id:s,cls:l,module:o,dict:r}=e;r.componentType&&delete r.componentType,r.component&&delete r.component,n=r.identifier?a(r.identifier,o):a(s,o),t._leaves[n]={_path:"".concat(o),...r},t._base="?".concat(function(e){let n=Object.keys(e);return n[n.length-1]}(t._leaves))}),t}(T()(a));n((0,d.q7)(T()(s))),p(!0)}catch(e){b(e.message)}}()},className:"rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Add Template"})]}),(0,a.jsx)("br",{}),(0,a.jsx)(E.Vq,{open:m,onOpenChange:()=>p(!1),children:(0,a.jsxs)(E.cZ,{className:"sm:max-w-[768px]",children:[(0,a.jsxs)(E.fK,{children:[(0,a.jsx)(E.$N,{children:"Review the component"}),(0,a.jsx)(E.Be,{children:"This will be added to the database. Please Review the component before confirming."})]}),l?(0,a.jsx)(C.Z,{data:l}):"Preparing component...",(0,a.jsx)(E.cN,{children:(0,a.jsx)(A.z,{type:"submit",onClick:()=>{N()},children:"Save changes"})})]})}),(0,a.jsx)(E.Vq,{open:f,onOpenChange:()=>{p(!1),h(!1)},children:(0,a.jsxs)(E.cZ,{className:"sm:max-w-[768px]",children:[(0,a.jsxs)(E.fK,{children:[(0,a.jsx)(E.$N,{children:"Failed Adding Template"}),(0,a.jsx)(E.Be,{children:"Please review the error message and try again."})]}),(0,a.jsx)("strong",{children:"Error Message"}),x?(0,a.jsx)(C.Z,{data:x,height:100}):"Loading ...",(0,a.jsx)("strong",{children:"Submitted"}),l?(0,a.jsx)(C.Z,{data:l,height:"150px"}):"Preparing component...",(0,a.jsx)(E.cN,{children:(0,a.jsx)(A.z,{onClick:()=>{N()},children:"Retry now"})})]})})]}):null}var I=t(33597);function P(){var e,n;(0,c.v9)(e=>e.environment.environmentLoadedValues);let t=(0,c.v9)(e=>{var n;return null==e?void 0:null===(n=e.userInfo)||void 0===n?void 0:n.userInfoLoadedValues}),l=(0,c.I0)(),o=(0,c.v9)(e=>e.stack.stackUpdateByIndex),r=(0,c.v9)(e=>e.stack.stackLoadedValues),i=(0,c.v9)(e=>e.stack.stackSpecLoadedValues),[u,m]=(0,s.useState)(1),p=async()=>{try{let e=await fetch("".concat("".concat("http://localhost:8000","/spec/show")),{headers:{"Content-Type":"application/json",Authorization:(0,j.Z)(t),Accept:"application/json",superduper_reverse_proxy:"http://localhost:8000"}}),n=await e.json();console.log("Spec:",null==n?void 0:n.leaves),l(i(null==n?void 0:n.leaves))}catch(e){console.error(e)}};return((0,s.useEffect)(()=>{p()},[o]),o)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"space-y-12",children:(0,a.jsxs)("div",{className:"border-gray-900/10 pb-2",children:[(0,a.jsx)("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:"Add Components Form"}),(0,a.jsx)("p",{className:"mt-1 text-sm leading-6 text-gray-600",children:"Fill in the form below to add components. You can add multiple components by clicking the plus button."})]})}),(0,a.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6"}),(0,a.jsx)("br",{}),r&&i&&o&&o.map((e,n)=>(0,a.jsx)(k,{index:n},n)),(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"mt-6 flex items-center justify-center gap-x-6",children:(0,a.jsx)("div",{className:"mt-6",children:(0,a.jsx)("button",{type:"button",onClick:()=>{m(e=>e+1),o.push({componentType:""}),l((0,d.vW)(o))},className:"rounded-full bg-indigo-600 p-2 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:(0,a.jsx)(f.Z,{className:"h-5 w-5","aria-hidden":"true"})})})})}),(0,a.jsx)(Z,{}),o&&(null===(e=o[0])||void 0===e?void 0:e.componentType)&&(null===(n=o[0])||void 0===n?void 0:n.component)&&(0,a.jsx)(I.Z,{})]}):null}var O=t(8522),R=t.n(O),D=t(56146);function V(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(D.aG,{children:(0,a.jsxs)(D.Jb,{children:[(0,a.jsx)(D.gN,{children:(0,a.jsx)(D.At,{href:"/webui",children:"Home"})}),(0,a.jsx)(D.bg,{}),(0,a.jsx)(D.gN,{children:(0,a.jsx)(D.At,{href:"/webui/show",children:"Components"})}),(0,a.jsx)(D.bg,{}),(0,a.jsx)(D.gN,{children:(0,a.jsx)(D.AG,{children:"Add Components"})})]})}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("div",{className:"space-y-12",children:(0,a.jsxs)("div",{className:"border-gray-900/10 pb-2",children:[(0,a.jsx)("h1",{className:"text-base font-semibold leading-7 text-gray-900",children:"Select Input Method"}),(0,a.jsx)("p",{className:"mt-1 text-sm leading-6 text-gray-600",children:"You can select UI to add components with forms or upload a JSON file to add components."})]})}),(0,a.jsxs)(l.mQ,{defaultValue:"UI",className:"w-full",children:[(0,a.jsxs)(l.dr,{className:"grid w-full grid-cols-2",children:[(0,a.jsx)(l.SP,{value:"UI",children:"UI"}),(0,a.jsx)(l.SP,{value:"JSON",children:"JSON"})]}),(0,a.jsxs)(l.nU,{value:"UI",children:[(0,a.jsx)("br",{}),(0,a.jsx)(P,{})]}),(0,a.jsxs)(l.nU,{value:"JSON",children:[(0,a.jsx)("br",{}),(0,a.jsx)(R(),{})]})]})]})}var q=t(70007),L=(0,t(4867).N)(function(){return(0,a.jsx)(q.Z,{activeNavItem:"/webui/show",children:(0,a.jsx)("main",{className:"py-10",children:(0,a.jsx)("div",{className:"px-4 sm:px-6 lg:px-8",children:(0,a.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,a.jsx)("div",{className:"mx-auto max-w-3xl",children:(0,a.jsx)(V,{})})})})})})})},8522:function(){},56146:function(e,n,t){"use strict";t.d(n,{AG:function(){return m},At:function(){return u},Jb:function(){return d},aG:function(){return i},bg:function(){return p},gN:function(){return c}});var a=t(27573),s=t(7653),l=t(85688),o=t(8828),r=t(18580);let i=s.forwardRef((e,n)=>{let{...t}=e;return(0,a.jsx)("nav",{ref:n,"aria-label":"breadcrumb",...t})});i.displayName="Breadcrumb";let d=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)("ol",{ref:n,className:(0,r.cn)("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",t),...s})});d.displayName="BreadcrumbList";let c=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)("li",{ref:n,className:(0,r.cn)("inline-flex items-center gap-1.5",t),...s})});c.displayName="BreadcrumbItem";let u=s.forwardRef((e,n)=>{let{asChild:t,className:s,...l}=e,i=t?o.g7:"a";return(0,a.jsx)(i,{ref:n,className:(0,r.cn)("transition-colors hover:text-foreground",s),...l})});u.displayName="BreadcrumbLink";let m=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:(0,r.cn)("font-normal text-foreground",t),...s})});m.displayName="BreadcrumbPage";let p=e=>{let{children:n,className:t,...s}=e;return(0,a.jsx)("li",{role:"presentation","aria-hidden":"true",className:(0,r.cn)("[&>svg]:size-3.5",t),...s,children:null!=n?n:(0,a.jsx)(l.XCv,{})})};p.displayName="BreadcrumbSeparator"},86288:function(e,n,t){"use strict";t.d(n,{Ol:function(){return r},SZ:function(){return d},Zb:function(){return o},aY:function(){return c},eW:function(){return u},ll:function(){return i}});var a=t(27573),s=t(7653),l=t(18580);let o=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)("div",{ref:n,className:(0,l.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...s})});o.displayName="Card";let r=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)("div",{ref:n,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",t),...s})});r.displayName="CardHeader";let i=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)("h3",{ref:n,className:(0,l.cn)("font-semibold leading-none tracking-tight",t),...s})});i.displayName="CardTitle";let d=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)("p",{ref:n,className:(0,l.cn)("text-sm text-muted-foreground",t),...s})});d.displayName="CardDescription";let c=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)("div",{ref:n,className:(0,l.cn)("p-6 pt-0",t),...s})});c.displayName="CardContent";let u=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)("div",{ref:n,className:(0,l.cn)("flex items-center p-6 pt-0",t),...s})});u.displayName="CardFooter"},24776:function(e,n,t){"use strict";t.d(n,{$N:function(){return h},Be:function(){return x},Vq:function(){return i},cN:function(){return f},cZ:function(){return m},fK:function(){return p},hg:function(){return d}});var a=t(27573),s=t(7653),l=t(67905),o=t(85688),r=t(18580);let i=l.fC,d=l.xz,c=l.h_;l.x8;let u=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)(l.aV,{ref:n,className:(0,r.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...s})});u.displayName=l.aV.displayName;let m=s.forwardRef((e,n)=>{let{className:t,children:s,...i}=e;return(0,a.jsxs)(c,{children:[(0,a.jsx)(u,{}),(0,a.jsxs)(l.VY,{ref:n,className:(0,r.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...i,children:[s,(0,a.jsxs)(l.x8,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,a.jsx)(o.Pxu,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});m.displayName=l.VY.displayName;let p=e=>{let{className:n,...t}=e;return(0,a.jsx)("div",{className:(0,r.cn)("flex flex-col space-y-1.5 text-center sm:text-left",n),...t})};p.displayName="DialogHeader";let f=e=>{let{className:n,...t}=e;return(0,a.jsx)("div",{className:(0,r.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...t})};f.displayName="DialogFooter";let h=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)(l.Dx,{ref:n,className:(0,r.cn)("text-lg font-semibold leading-none tracking-tight",t),...s})});h.displayName=l.Dx.displayName;let x=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)(l.dk,{ref:n,className:(0,r.cn)("text-sm text-muted-foreground",t),...s})});x.displayName=l.dk.displayName},1930:function(e,n,t){"use strict";t.d(n,{I:function(){return o}});var a=t(27573),s=t(7653),l=t(18580);let o=s.forwardRef((e,n)=>{let{className:t,type:s,...o}=e;return(0,a.jsx)("input",{type:s,className:(0,l.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:n,...o})});o.displayName="Input"},97747:function(e,n,t){"use strict";t.d(n,{_:function(){return d}});var a=t(27573),s=t(7653),l=t(1001),o=t(85145),r=t(18580);let i=(0,o.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)(l.f,{ref:n,className:(0,r.cn)(i(),t),...s})});d.displayName=l.f.displayName},63052:function(e,n,t){"use strict";t.d(n,{Bw:function(){return f},DI:function(){return d},Ph:function(){return i},Ql:function(){return x},i4:function(){return u},ki:function(){return c},n5:function(){return h}});var a=t(27573),s=t(7653),l=t(85688),o=t(66240),r=t(18580);let i=o.fC,d=o.ZA,c=o.B4,u=s.forwardRef((e,n)=>{let{className:t,children:s,...i}=e;return(0,a.jsxs)(o.xz,{ref:n,className:(0,r.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...i,children:[s,(0,a.jsx)(o.JO,{asChild:!0,children:(0,a.jsx)(l.jnn,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=o.xz.displayName;let m=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)(o.u_,{ref:n,className:(0,r.cn)("flex cursor-default items-center justify-center py-1",t),...s,children:(0,a.jsx)(l.g8U,{})})});m.displayName=o.u_.displayName;let p=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)(o.$G,{ref:n,className:(0,r.cn)("flex cursor-default items-center justify-center py-1",t),...s,children:(0,a.jsx)(l.v4q,{})})});p.displayName=o.$G.displayName;let f=s.forwardRef((e,n)=>{let{className:t,children:s,position:l="popper",...i}=e;return(0,a.jsx)(o.h_,{children:(0,a.jsxs)(o.VY,{ref:n,className:(0,r.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:l,...i,children:[(0,a.jsx)(m,{}),(0,a.jsx)(o.l_,{className:(0,r.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,a.jsx)(p,{})]})})});f.displayName=o.VY.displayName;let h=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)(o.__,{ref:n,className:(0,r.cn)("px-2 py-1.5 text-sm font-semibold",t),...s})});h.displayName=o.__.displayName;let x=s.forwardRef((e,n)=>{let{className:t,children:s,...i}=e;return(0,a.jsxs)(o.ck,{ref:n,className:(0,r.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...i,children:[(0,a.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(o.wU,{children:(0,a.jsx)(l.nQG,{className:"h-4 w-4"})})}),(0,a.jsx)(o.eT,{children:s})]})});x.displayName=o.ck.displayName,s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)(o.Z0,{ref:n,className:(0,r.cn)("-mx-1 my-1 h-px bg-muted",t),...s})}).displayName=o.Z0.displayName},64303:function(e,n,t){"use strict";t.d(n,{SP:function(){return d},dr:function(){return i},mQ:function(){return r},nU:function(){return c}});var a=t(27573),s=t(7653),l=t(84132),o=t(18580);let r=l.fC,i=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)(l.aV,{ref:n,className:(0,o.cn)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",t),...s})});i.displayName=l.aV.displayName;let d=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)(l.xz,{ref:n,className:(0,o.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",t),...s})});d.displayName=l.xz.displayName;let c=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)(l.VY,{ref:n,className:(0,o.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...s})});c.displayName=l.VY.displayName},7109:function(e,n,t){"use strict";t.d(n,{Z:function(){return s}});var a=t(74859);function s(e){if(a.env.NEXT_PUBLIC_AUTO_LOGIN_EXTERNAL_SERVICES){let[e,n]=a.env.NEXT_PUBLIC_AUTO_LOGIN_EXTERNAL_SERVICES.split(","),t=e.includes("@")?e.split("@")[0]:e;return"Basic ".concat(btoa("".concat(t,":").concat(n)))}return"jwt"===a.env.AUTH_MECHANISM?"Bearer ".concat(e.token):"Basic ".concat(btoa("".concat(e.username,":").concat(e.password)))}},87191:function(e,n,t){"use strict";t.d(n,{Z:function(){return d}});var a=t(27573),s=t(7653),l=t(22392);t(40020),t(19234),t(83346);var o=t(412),r=t(24017),i=t(93296);function d(e){let{data:n,height:t="300px"}=e,d=(0,o.I0)(),[c,u]=(0,s.useState)(JSON.stringify(n,null," "));return(0,s.useRef)(null),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(l.default,{className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Stack result JSON here...",mode:"json",theme:"github",name:"blah2",onChange:e=>{try{u(e),d((0,r.q7)(JSON.parse(e)))}catch(e){i.ZP.error("Error updating...",{id:"stack-update-error"})}},fontSize:13,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:c,setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,useWorker:!1,wrap:!0},height:t,width:"100%"})})}},5772:function(e,n,t){"use strict";var a=t(27573);t(7653),n.Z=e=>{let n=e.times||4;return(0,a.jsxs)("div",{role:"status",className:"max-w-full p-4 space-y-4 border border-gray-200 divide-y divide-gray-200 rounded shadow animate-pulse gray:divide-gray-700 md:p-6 gray:border-gray-700",children:[[...Array(n)].map((e,n)=>(0,a.jsxs)("div",{className:"flex items-center justify-between pt-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"h-2.5 bg-gray-300 rounded-full gray:bg-gray-600 w-24 mb-2.5"}),(0,a.jsx)("div",{className:"w-32 h-2 bg-gray-200 rounded-full gray:bg-gray-700"})]}),(0,a.jsx)("div",{className:"h-2.5 bg-gray-300 rounded-full gray:bg-gray-700 w-12"})]},n)),(0,a.jsx)("span",{className:"sr-only",children:"Loading..."})]})}},80923:function(e,n,t){"use strict";t.d(n,{Z:function(){return c}});var a=t(27573),s=t(7653),l=t(86527),o=t(18580);let r=l.fC,i=l.xz,d=s.forwardRef((e,n)=>{let{className:t,align:s="center",sideOffset:r=4,...i}=e;return(0,a.jsx)(l.VY,{ref:n,align:s,sideOffset:r,className:(0,o.cn)("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",t),...i})});d.displayName=l.VY.displayName;var c=e=>{let{label:n,popoverheader:t,popovercontent:s}=e;return(0,a.jsxs)(r,{children:[(0,a.jsx)(i,{children:(0,a.jsx)("label",{className:"text-sm font-medium leading-6 text-gray-900 inline-flex items-center",children:(0,a.jsxs)("p",{children:[n," ",(0,a.jsx)("button",{type:"button",className:"align-middle mb-1",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20","stroke-width":"1.5",stroke:"currentColor",className:"w-4 h-4 hover:text-gray-500 rounded-sm align-middle",children:(0,a.jsx)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.375 9.375l.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M17.5 10a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0Zm-7.5-3.125h.008v.008H10V6.875Z"})})})]})})}),(0,a.jsxs)(d,{className:"text-sm text-gray-500 transition-opacity duration-300 bg-white border border-gray-200 rounded-lg shadow-sm overflow-visible",children:[t&&(0,a.jsx)("div",{className:"px-3 py-2 bg-gray-100 border-b border-gray-200 rounded-lg dark:border-gray-600 dark:bg-gray-700 overflow-visible",children:(0,a.jsx)("h3",{className:"font-semibold text-gray-900 dark:text-white overflow-visible",children:t})}),(0,a.jsx)("div",{className:"px-3 py-2",children:s})]})]})}}},function(e){e.O(0,[5458,7441,3296,8320,8374,3908,7653,7050,6340,9115,3406,8113,4529,3696,935,2895,1293,1528,1744],function(){return e(e.s=31065)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/app/webui/add-components/page-e8cfdffb848386b0.js b/superduper/rest/out/_next/static/chunks/app/webui/add-components/page-e8cfdffb848386b0.js new file mode 100644 index 000000000..9efeaeca8 --- /dev/null +++ b/superduper/rest/out/_next/static/chunks/app/webui/add-components/page-e8cfdffb848386b0.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9346],{1100:function(e,n,t){Promise.resolve().then(t.bind(t,65061))},65061:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return L}});var a=t(27573),s=t(7653),l=t(64303),o=t(34209),r=t(63052),i=t(80923),d=t(24017),c=t(412),u=t(1930),m=t(97747),p=t(23611),f=t(2187),h=t(13908),x=t(22392);t(98295),t(19234),t(78187),t(83346),t(39166);var g=t(30897),v=t(93296),j=t(7109);function y(){for(var e=arguments.length,n=Array(e),t=0;t2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(!0==t){if(a&&a.length>0&&a.includes(e))return"componentSelectSequence";if("artifact"==e)return"artifactSelectSequence";if(("str"===e||"string"===e)&&n)return"strSelectSequence"}return"artifact"===e||"blob"==e||"blobs"==e?"artifactSelect":"code"===e?"code":a&&a.length>0&&a.includes(e)?"componentSelect":"str"===e||"string"===e?n?"select":"str":"int"===e?"int":"json"===e||"query"==e?"json":"bool"===e||"boolean"===e?"boolean":"str"}function N(e){return e.some(e=>!0===e.optional)}var w=function(e){let{index:n,component:t,componentType:l}=e;(0,c.v9)(e=>e.environment.environmentLoadedValues);let i=(0,c.v9)(e=>{var n;return null==e?void 0:null===(n=e.userInfo)||void 0===n?void 0:n.userInfoLoadedValues}),w=(0,c.I0)(),k=(0,c.v9)(e=>e.stack.stackUpdateByIndex),S=(0,c.v9)(e=>e.stack.stackSpecLoadedValues),C=(0,c.v9)(e=>e.uploadFiles.uploadFilesLoadedValues),[_,T]=(0,s.useState)(null),[E,A]=(0,s.useState)(0),[Z,I]=(0,s.useState)(!0),[P,O]=(0,s.useState)(null),[R,D]=(0,s.useState)(!1),[V,q]=(0,s.useState)("");(0,s.useEffect)(()=>{var e;let a=null===(e=S[l])||void 0===e?void 0:e[t],s=a?(console.log("\uD83D\uDE80\uD83D\uDE80\uD83D\uDE80 Component Spec: \uD83D\uDE80\uD83D\uDE80\uD83D\uDE80",a),a.reduce((e,n)=>((null==n?void 0:n.default)===void 0&&(null==n?void 0:n.sequence)?e[n.name]=[]:n.default&&(null==n?void 0:n.sequence)?e[n.name]=(null==n?void 0:n.default)||[]:(null==n?void 0:n.default)===void 0&&(null==n?void 0:n.optional)||((null==n?void 0:n.type)=="boolean"||(null==n?void 0:n.type)=="bool"?e[n.name]=(null==n?void 0:n.default)||!1:(null==n?void 0:n.default)===void 0&&(null==n?void 0:n.optional)?e[n.name]=null:e[n.name]="int"===n.type&&void 0!==n.default?parseInt(n.default,10)||0:n.default||""),e),{})):{};w((0,d.Qk)(n,{...k[n],...s})),setTimeout(()=>{w((0,d.Qk)(n,{...k[n],...s}))},100),D(!0),A(e=>e+1)},[l]),(0,s.useEffect)(()=>{let e=[],n=()=>{setTimeout(()=>{O(e)},1e3)};(async()=>{try{let e=k.filter(e=>e.componentType&&e.identifier).map(e=>{let{componentType:n,identifier:t}=e;return{type_id:n,identifier:t}}),n=function(e,n,t){let a=new Set;return[...e.flatMap(e=>a.add(e[t])&&e),...n.flatMap(e=>!a.has(e[t])&&e)]}(e,[],"identifier");O(n)}catch(e){console.error("Error fetching Services API data"),n()}})()},[n,t,l]),(0,s.useEffect)(()=>{T(S[l][t])},[S,k,n,t,l]);let[L,F]=(0,s.useState)([]);(0,s.useEffect)(()=>{!function(){try{h.Z.get("".concat("".concat("http://localhost:8000","/spec/show")),{headers:{Accept:"application/json",Authorization:(0,j.Z)(i),superduper_reverse_proxy:"http://localhost:8000"}}).then(e=>{F([...e.data.components,...Object.keys(e.data.leaves)]),q(e.data.leaves)}).catch(e=>{console.error("Error fetching components data",e),v.ZP.error("Error fetching components data!")})}catch(e){v.ZP.error("Error fetching lookup data!")}}()},[k]);let z=(e,t)=>{w((0,d.Qk)(n,{...k[n],[t]:e.target.value})),A(e=>e+1)},B=(e,t)=>{w((0,d.Qk)(n,{...k[n],[t]:!e})),A(e=>e+1)},Q=(e,t)=>{w((0,d.Qk)(n,{...k[n],[t]:k[n][t].includes(e.target.value)?[...k[n][t]]:[...k[n][t],e.target.value]})),A(e=>e+1)},J=(e,t)=>{w((0,d.Qk)(n,{...k[n],[t]:Array.isArray(k[n][t])?k[n][t].filter(n=>n!==e):[]})),A(e=>e+1)},U=(e,t)=>{let a=e.target.value;try{let e=parseInt(a,10);isNaN(e)?v.ZP.error("The value for ".concat(t," must be an integer."),{id:"integer-error"}):(w((0,d.Qk)(n,{...k[n],[t]:e})),A(e=>e+1))}catch(e){console.error("Error:",e),v.ZP.error("The value for ".concat(t," must be an integer."),{id:"integer-error"})}},G=(e,t)=>{w((0,d.Qk)(n,{...k[n],[t]:e})),A(e=>e+1)},M=(e,n)=>()=>{w((0,d.Qk)(e,{...k[e],[n]:(parseInt(k[e][n])||0)+1})),A(e=>e+1)},Y=(e,n)=>()=>{w((0,d.Qk)(e,{...k[e],[n]:(parseInt(k[e][n])||0)-1})),A(e=>e+1)},H=e=>null!=e&&!!e.optional&&!!Z;function W(e,n){let t=n.replace(/^component\//,"");return e.filter(e=>e.type_id===t&&e.identifier).map(e=>e.identifier)}let X=(e,t)=>{try{let a;""===e?a={}:"string"==typeof e?(a=JSON.parse(e),JSON.stringify(a,null,2)):a={},console.log("Parsed JSON:",a),w((0,d.Qk)(n,{...k[n],[t.name]:a}))}catch(a){console.error("Error parsing JSON:",a),w((0,d.Qk)(n,{...k[n],[t.name]:e}))}},$=(e,t)=>{try{w((0,d.Qk)(n,{...k[n],[t.name]:e}))}catch(a){console.error("Error parsing JSON:",a),w((0,d.Qk)(n,{...k[n],[t.name]:e}))}};function K(e,n){if(e.hasOwnProperty(n)){let t=e[n];for(let e in t)if(t[e].hasOwnProperty("_path"))return t[e]._path}}return _&&k&&P&&R?(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-1.5",children:[_.map(e=>{var t,l,i,d,c,h,v,j,N,w,S,_,T,E,A,Z,I,O,R,D,q,F,ee,en;return(0,a.jsxs)(s.Fragment,{children:[!H(e)&&"str"===b(null==e?void 0:e.type,null==e?void 0:e.choices,null==e?void 0:e.sequence,L)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsxs)(m._,{htmlFor:e.name,children:[e.name," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]})}),(0,a.jsx)(u.I,{id:e.name,value:(null===(t=k[n])||void 0===t?void 0:t[e.name])||"",onChange:n=>z(n,e.name),placeholder:e.default?"Default: ".concat(e.default):"Type the ".concat(e.name," value here"),autocomplete:"off"})]}),!H(e)&&"boolean"===b(null==e?void 0:e.type,null==e?void 0:e.choices,null==e?void 0:e.sequence,L)&&(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsxs)(g.r.Group,{as:"div",className:"flex items-center",children:[(0,a.jsx)(g.r,{checked:null===(l=k[n])||void 0===l?void 0:l[e.name],onChange:()=>{var t;return B(null===(t=k[n])||void 0===t?void 0:t[e.name],e.name)},className:y((null===(i=k[n])||void 0===i?void 0:i[e.name])?"bg-indigo-600":"bg-gray-200","relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-600 focus:ring-offset-2"),children:(0,a.jsx)("span",{"aria-hidden":"true",className:y((null===(d=k[n])||void 0===d?void 0:d[e.name])?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out")})}),(0,a.jsxs)(g.r.Label,{as:"span",className:"ml-3 text-sm",children:[(0,a.jsx)("span",{className:"font-medium text-gray-900",children:e.name})," ",(null==e?void 0:e.optional)?(0,a.jsx)("span",{className:"text-gray-500",children:"(optional)"}):(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]})]})})}),!H(e)&&"select"===b(null==e?void 0:e.type,null==e?void 0:e.choices,null==e?void 0:e.sequence,L)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsxs)(m._,{htmlFor:e.name,children:[e.name," ",e.optional?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]})}),(0,a.jsxs)(r.Ph,{value:(null===(c=k[n])||void 0===c?void 0:c[e.name])||"",onValueChange:n=>G(n,e.name),children:[(0,a.jsx)(r.i4,{"aria-label":e.name,className:"w-[280px]",children:(0,a.jsx)(r.ki,{placeholder:"Select an option"})}),(0,a.jsx)(r.Bw,{children:(0,a.jsxs)(r.DI,{children:[(0,a.jsxs)(r.n5,{children:["Select ",e.name]}),null===(h=e.choices)||void 0===h?void 0:h.map(e=>(0,a.jsx)(r.Ql,{value:e,children:e},e))]})})]})]}),!H(e)&&"componentSelect"===b(null==e?void 0:e.type,null==e?void 0:e.choices,null==e?void 0:e.sequence,L)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsxs)(m._,{htmlFor:e.name,children:[e.name," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]})}),(0,a.jsxs)("select",{id:e.name,name:e.name,value:(null===(v=k[n])||void 0===v?void 0:v[e.name])||"",onChange:n=>z(n,e.name),placeholder:e.default?"Default: ".concat(e.default):"Type the ".concat(e.name," value here"),className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[(0,a.jsx)("option",{value:"",children:"Select a component"},"showComponent"),P?null===(j=W(P,null==e?void 0:e.type))||void 0===j?void 0:j.map(n=>(0,a.jsxs)("option",{value:"?".concat(K(V,null==e?void 0:e.type),"/").concat(null==e?void 0:e.type,"/").concat(n),children:["?",K(V,null==e?void 0:e.type),"/",n]},n)):null]})]}),!H(e)&&"componentSelectSequence"===b(null==e?void 0:e.type,null==e?void 0:e.choices,null==e?void 0:e.sequence,L)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(m._,{htmlFor:e.name,children:[e.name," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(0,a.jsxs)("div",{className:"mt-0 items-center gap-x-2.5 gap-y-2.5 text-xs leading-5 text-gray-400",children:[(0,a.jsxs)("p",{className:"whitespace-nowrap",children:["Selected Sequence:"," ",k[n]&&k[n][e.name]&&0===k[n][e.name].length&&(0,a.jsx)("span",{children:"None"})]}),(null===(N=k[n])||void 0===N?void 0:N[e.name])&&(null===(w=k[n])||void 0===w?void 0:w[e.name].map((n,t)=>(0,a.jsxs)(s.Fragment,{children:[(0,a.jsxs)("button",{type:"button",className:"mt-2 inline-flex items-center rounded-full bg-white px-2.5 py-1 text-xs font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:[n,(0,a.jsx)(o.Z,{onClick:()=>J(n,e.name),className:"-mr-0.5 h-4 w-4","aria-hidden":"true"})]}),(0,a.jsx)("br",{})]},n)))]})]}),(0,a.jsxs)("select",{id:e.name,name:e.name,value:"",onChange:n=>Q(n,e.name),placeholder:e.default?"Default: ".concat(e.default):"Type the ".concat(e.name," value here"),className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[(0,a.jsx)("option",{value:"",children:"Select a component to sequence"},"showComponent"),P&&(null==e?void 0:e.type)&&k[n][e.name]?null===(S=W(P,e.type))||void 0===S?void 0:S.filter(t=>{var a;return!(Array.isArray(null===(a=k[n])||void 0===a?void 0:a[e.name])&&k[n][e.name].includes(t))}).map((n,t)=>(0,a.jsx)(s.Fragment,{children:(0,a.jsxs)("option",{value:"?component/".concat(e.type,"/").concat(n),children:["?component/",e.type,"/",n]},n)},t)):null]},JSON.stringify(null===(_=k[n])||void 0===_?void 0:_[e.name]))]}),!H(e)&&"artifactSelectSequence"===b(null==e?void 0:e.type,null==e?void 0:e.choices,null==e?void 0:e.sequence,L)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(m._,{htmlFor:e.name,children:[e.name," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(0,a.jsxs)("div",{className:"mt-0 items-center gap-x-2.5 gap-y-2.5 text-xs leading-5 text-gray-400",children:[(0,a.jsxs)("p",{className:"whitespace-nowrap",children:["Selected Sequence:"," ",k[n]&&k[n][e.name]&&0===k[n][e.name].length&&(0,a.jsx)("span",{children:"None"})]}),(null===(T=k[n])||void 0===T?void 0:T[e.name])&&(null===(E=k[n])||void 0===E?void 0:E[e.name].map((n,t)=>(0,a.jsxs)(s.Fragment,{children:[(0,a.jsxs)("button",{type:"button",className:"mt-2 inline-flex items-center rounded-full bg-white px-2.5 py-1 text-xs font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:[n,(0,a.jsx)(o.Z,{onClick:()=>J(n,e.name),className:"-mr-0.5 h-4 w-4","aria-hidden":"true"})]}),(0,a.jsx)("br",{})]},n)))]})]}),(0,a.jsxs)("select",{id:e.name,name:e.name,value:"",onChange:n=>Q(n,e.name),placeholder:e.default?"Default: ".concat(e.default):"Type the ".concat(e.name," value here"),className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[(0,a.jsx)("option",{value:"",children:"Select an artifact after uploading to create sequence"},"uploadArtifact"),C?null==C?void 0:C.map((e,n)=>(0,a.jsx)("option",{value:"".concat(e),children:e},e)):null]},JSON.stringify(null===(A=k[n])||void 0===A?void 0:A[e.name]))]}),!H(e)&&"strSelectSequence"===b(null==e?void 0:e.type,null==e?void 0:e.choices,null==e?void 0:e.sequence,L)&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mt-4 mb-2",children:[(0,a.jsxs)(m._,{htmlFor:e.name,children:[e.name," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(0,a.jsxs)("div",{className:"mt-0 items-center gap-x-2.5 gap-y-2.5 text-xs leading-5 text-gray-400",children:[(0,a.jsxs)("p",{className:"whitespace-nowrap",children:["Selected Sequence:"," ",k[n]&&k[n][e.name]&&0===k[n][e.name].length&&(0,a.jsx)("span",{children:"None"})]}),(null===(Z=k[n])||void 0===Z?void 0:Z[e.name])&&(null===(I=k[n])||void 0===I?void 0:I[e.name].map((n,t)=>(0,a.jsxs)(s.Fragment,{children:[(0,a.jsxs)("button",{type:"button",className:"mt-2 inline-flex items-center rounded-full bg-white px-2.5 py-1 text-xs font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:[n,(0,a.jsx)(o.Z,{onClick:()=>J(n,e.name),className:"-mr-0.5 h-4 w-4","aria-hidden":"true"})]}),(0,a.jsx)("br",{})]},n)))]})]}),(0,a.jsxs)("select",{id:e.name,name:e.name,value:"",onChange:n=>Q(n,e.name),placeholder:e.default?"Default: ".concat(e.default):"Type the ".concat(e.name," value here"),className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[(0,a.jsx)("option",{value:"",children:"Select values to create sequence"},"uploadArtifact"),e.choices?null==e?void 0:e.choices.map(e=>(0,a.jsx)("option",{value:e,children:e},e)):null]},JSON.stringify(null===(O=k[n])||void 0===O?void 0:O[e.name]))]}),!H(e)&&"artifactSelect"===b(null==e?void 0:e.type,null==e?void 0:e.choices,null==e?void 0:e.sequence,L)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsxs)(m._,{htmlFor:e.name,children:[e.name," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]})}),(0,a.jsxs)("select",{id:e.name,name:e.name,value:(null===(R=k[n])||void 0===R?void 0:R[e.name])||"",onChange:n=>z(n,e.name),placeholder:e.default?"Default: ".concat(e.default):"Type the ".concat(e.name," value here"),className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[(0,a.jsx)("option",{value:"",children:"Select an artifact after uploading"},"uploadArtifact"),C?null==C?void 0:C.map((e,n)=>(0,a.jsx)("option",{value:"".concat(e),children:e},e)):null]})]}),!H(e)&&"int"===b(null==e?void 0:e.type,null==e?void 0:e.choices,null==e?void 0:e.sequence,L)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsxs)(m._,{htmlFor:e.name,children:[e.name," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]})}),(0,a.jsxs)("div",{className:"flex items-center justify-left",children:[(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("button",{type:"button",onClick:Y(n,e.name),className:"rounded-full bg-indigo-600 p-1 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 mr-4",children:(0,a.jsx)(p.Z,{className:"h-5 w-5","aria-hidden":"true"})}),(0,a.jsx)("input",{type:"int",className:"w-16 text-center block rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",id:e.name,value:(null===(D=k[n])||void 0===D?void 0:D[e.name])||0,onChange:n=>U(n,e.name)}),(0,a.jsx)("button",{type:"button",onClick:M(n,e.name),className:"rounded-full bg-indigo-600 p-1 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 ml-4",children:(0,a.jsx)(f.Z,{className:"h-5 w-5","aria-hidden":"true"})})]})]}),!H(e)&&"json"===b(null==e?void 0:e.type,null==e?void 0:e.choices,null==e?void 0:e.sequence,L)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsxs)(m._,{htmlFor:e.name,children:[e.name," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]})}),(0,a.jsx)(x.default,{className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Here you can pass a dictionary as value. e.g. {key: value}",mode:"json",theme:"twilight",name:e.name,onChange:n=>X(n,e),fontSize:13,showPrintMargin:!0,showGutter:!1,highlightActiveLine:!0,value:"object"==typeof(null===(q=k[n])||void 0===q?void 0:q[e.name])?JSON.stringify(null===(F=k[n])||void 0===F?void 0:F[e.name],null," "):(null===(ee=k[n])||void 0===ee?void 0:ee[e.name])||"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,height:"150px",width:"175%"})]}),!H(e)&&"code"===b(null==e?void 0:e.type,null==e?void 0:e.choices,null==e?void 0:e.sequence,L)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsxs)(m._,{htmlFor:e.name,children:[e.name," ",(null==e?void 0:e.optional)?"(optional)":(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]})}),(0,a.jsx)(x.default,{className:"mt-2 rounded-md border-2 py-1.5 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Write Python here...",mode:"python",theme:"tomorrow",name:e.name,onChange:n=>$(n,e),fontSize:13,showPrintMargin:!0,showGutter:!1,highlightActiveLine:!0,value:(null===(en=k[n])||void 0===en?void 0:en[e.name])||"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,height:"250px",width:"175%"})]})]},e.name)}),N(_)&&Z&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("ul",{role:"list",className:"mt-6 divide-y divide-gray-200 border-b border-t border-gray-200"}),(0,a.jsx)("div",{className:"mt-6 flex",children:(0,a.jsxs)("span",{className:"text-sm font-medium text-indigo-600 hover:text-indigo-500",onClick:()=>{I(!Z)},children:["Show optional parameters",(0,a.jsx)("span",{"aria-hidden":"true",children:" →"})]})})]}),N(_)&&!Z&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("ul",{role:"list",className:"mt-6 divide-y divide-gray-200 border-b border-t border-gray-200"}),(0,a.jsx)("div",{className:"mt-6 flex",children:(0,a.jsxs)("span",{className:"text-sm font-medium text-indigo-600 hover:text-indigo-500",onClick:()=>{I(!Z)},children:["Hide optional parameters",(0,a.jsx)("span",{"aria-hidden":"true",children:" ←"})]})})]})]}):null},k=function(e){var n,t,l,u,m,p,f,h,x;let{index:g}=e,v=(0,c.I0)(),j=(0,c.v9)(e=>e.stack.stackUpdateByIndex),y=(0,c.v9)(e=>e.stack.stackSpecLoadedValues),[b,N]=(0,s.useState)(null),[k,S]=(0,s.useState)(0),[C,_]=(0,s.useState)(!1),T=()=>{try{let e=function(e){let n={};for(let t in e)Array.isArray(e[t])?n[t]=Object.keys(e[t]):n[t]=Object.keys(e[t]).map(e=>e);return n}(y);N(e)}catch(e){console.error("Error fetching data:",e)}};return((0,s.useEffect)(()=>{T()},[y,j]),b)?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"mt-4 pt-4 rounded-2xl border-4 border-dashed border-gray-900/25 px-6 py-10",children:[(0,a.jsx)("br",{}),(0,a.jsx)("div",{className:"space-y-12",children:(0,a.jsxs)("div",{className:"pb-2",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between",children:[(0,a.jsx)("h2",{className:"text-base font-semibold leading-7 text-gray-900 ",children:"Add Component"}),(0,a.jsx)("div",{className:"ml-3 flex h-7 items-center",children:(0,a.jsxs)("button",{type:"button",className:"-mt-10 rounded-md bg-white text-gray-400 hover:text-gray-500 outline ring-2 ring-indigo-500",onClick:()=>{_(!0);let e=j.filter((e,n)=>n!==g);v((0,d.vW)(e))},children:[(0,a.jsx)("span",{className:"sr-only",children:"Close"}),(0,a.jsx)(o.Z,{className:"h-6 w-6","aria-hidden":"true"})]})})]}),(0,a.jsx)("p",{className:"mt-1 text-sm leading-6 text-gray-600",children:"Begin by choosing a component type, then select a specific component from the available list. To add multiple components simultaneously, click the plus icon below."}),(0,a.jsxs)("div",{className:"sm:col-span-3",children:[(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsx)(i.Z,{label:"Select Component Type",popoverheader:"Select Component Type",popovercontent:(0,a.jsx)("p",{children:'Select Component is the name of the component you want to add. i.e. "model"'})})}),(0,a.jsxs)(r.Ph,{className:"mt-4",value:(null===(n=j[g])||void 0===n?void 0:n.componentType)||"",onValueChange:e=>{v((0,d.Qk)(g,{componentType:e}))},children:[(0,a.jsx)(r.i4,{className:"w-[280px]",children:(0,a.jsx)(r.ki,{placeholder:"Select an option"})}),(0,a.jsx)(r.Bw,{children:(0,a.jsxs)(r.DI,{children:[(0,a.jsx)(r.n5,{children:"Select Component Type"}),Object.keys(b).filter(e=>"application"!==e).map(e=>(0,a.jsx)(r.Ql,{value:e,children:e},e))]})})]})]}),(null===(t=j[g])||void 0===t?void 0:t.componentType)!==""&&(0,a.jsxs)("div",{className:"sm:col-span-3",children:[(0,a.jsx)("div",{className:"mt-4 mb-2",children:(0,a.jsx)(i.Z,{label:"Select Component",popoverheader:"Select Component",popovercontent:(0,a.jsx)("p",{children:'Select Component is the name of the component you want to add. i.e. "my-Select Component"'})})}),(0,a.jsxs)(r.Ph,{className:"mt-2",value:(null===(l=j[g])||void 0===l?void 0:l.component)||"",onValueChange:e=>{var n;v((0,d.Qk)(g,{componentType:j[g].componentType,component:e}));let t=null===(n=y[j[g].componentType])||void 0===n?void 0:n[e],a=t?t.reduce((e,n)=>((null==n?void 0:n.default)===void 0&&(null==n?void 0:n.sequence)?e[n.name]=[]:n.default&&(null==n?void 0:n.sequence)?e[n.name]=(null==n?void 0:n.default)||[]:(null==n?void 0:n.default)===void 0&&(null==n?void 0:n.optional)||((null==n?void 0:n.type)=="boolean"||(null==n?void 0:n.type)=="bool"?e[n.name]=(null==n?void 0:n.default)||!1:(null==n?void 0:n.default)===void 0&&(null==n?void 0:n.optional)?e[n.name]=null:e[n.name]="int"===n.type&&void 0!==n.default?parseInt(n.default,10)||0:n.default||""),e),{}):{};v((0,d.Qk)(g,{componentType:j[g].componentType,component:e})),v((0,d.Qk)(g,{componentType:j[g].componentType,component:e,...a}))},children:[(0,a.jsx)(r.i4,{className:"w-[280px]",children:(0,a.jsx)(r.ki,{placeholder:"Select an option"})}),(0,a.jsx)(r.Bw,{children:(0,a.jsxs)(r.DI,{children:[(0,a.jsx)(r.n5,{children:"Select Component"}),null===(u=b[null===(m=j[g])||void 0===m?void 0:m.componentType])||void 0===u?void 0:u.map(e=>(0,a.jsx)(r.Ql,{value:e,children:e},e))]})})]})]}),(null===(p=j[g])||void 0===p?void 0:p.component)&&(null===(f=j[g])||void 0===f?void 0:f.componentType)&&(0,a.jsx)(w,{index:g,component:null===(h=j[g])||void 0===h?void 0:h.component,componentType:null===(x=j[g])||void 0===x?void 0:x.componentType})]})})]})}):null},S=t(88146),C=t(87191),_=t(45696),T=t.n(_),E=t(24776),A=t(36531);function Z(){(0,c.v9)(e=>e.environment.environmentLoadedValues);let e=(0,c.v9)(e=>{var n;return null==e?void 0:null===(n=e.userInfo)||void 0===n?void 0:n.userInfoLoadedValues}),n=(0,c.I0)(),t=(0,c.v9)(e=>e.stack.stackUpdateByIndex),l=(0,c.v9)(e=>e.stack.submittedStack),o=(0,c.v9)(e=>e.stack.stackLoadedValues),r=(0,c.v9)(e=>e.uploadFiles.uploadFilesLoadedValuesComponent||[]),[i,u]=(0,s.useState)(null),[m,p]=(0,s.useState)(!1),[f,h]=(0,s.useState)(!1),[x,g]=(0,s.useState)(null),y=async()=>{try{let t=await fetch("".concat("".concat("http://localhost:8000","/spec/show")),{headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:(0,j.Z)(e),superduper_reverse_proxy:"http://localhost:8000"}}),a=await t.json();n((0,d.EU)(null==a?void 0:a.leaves)),u(null==a?void 0:a.leaves)}catch(e){console.error(e),v.ZP.error("Error fetching data!",{id:"form-error"})}};function b(e){v.ZP.error(e,{id:"form-error"})}function N(){if(!l){v.ZP.error("Error adding component",{id:"form-error"});return}v.ZP.loading("Adding component...",{id:"adding"});try{fetch("".concat("".concat("http://localhost:8000","/db/apply")),{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:(0,j.Z)(e),superduper_reverse_proxy:"http://localhost:8000"},body:JSON.stringify(l,null," ")}).then(e=>{if(!e.ok){if(500===e.status)return e.json().then(e=>{throw console.log("Error response data:",e),g(e),Error("Server error")});throw Error("Network response was not ok")}return e.json()}).then(e=>{v.ZP.dismiss("adding"),console.log("Data from:",e),v.ZP.success("Component added successfully")}).catch(e=>{h(!0),console.error("Error fetching API data",e),v.ZP.error("Error adding component",{id:"form-error"}),v.ZP.dismiss("adding")})}catch(e){v.ZP.dismiss("adding"),h(!0),v.ZP.error("Error adding component")}}return(0,s.useEffect)(()=>{y()},[]),t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"mt-6 flex items-center justify-end gap-x-6",children:[(0,a.jsx)(S.default,{href:"/webui/add-components",children:(0,a.jsx)("button",{type:"button",className:"text-sm font-semibold leading-6 text-gray-900",children:"Cancel"})}),(0,a.jsx)("button",{onClick:e=>{e.preventDefault,function(){if(!t||0===t.length)return b("Please add at least one component to the stack");try{let e=t.map(e=>{if(!(null==e?void 0:e.componentType)||!(null==e?void 0:e.component))throw Error("Incomplete component data");let{componentType:n,component:t}=e,a=i[n][t]._path;if(!e||0===Object.keys(e).length)throw Error("Component ".concat(t," does not have any properties"));return{leaf_type:"component",type_id:n,cls:t,module:a,dict:e}}),a={identifier:null==o?void 0:o.identifier,_leaves:[...r,...e]},s=function(e){let{_leaves:n}=e,t={_leaves:{}};function a(e,n){let a=1,s=e;for(;(s in t._leaves);)s="".concat(e,"_").concat(a),a+=1;return"".concat(n,"/").concat(s)}return n.forEach(e=>{let n;let{type_id:s,cls:l,module:o,dict:r}=e;r.componentType&&delete r.componentType,r.component&&delete r.component,n=r.identifier?a(r.identifier,o):a(s,o),t._leaves[n]={_path:"".concat(o),...r},t._base="?".concat(function(e){let n=Object.keys(e);return n[n.length-1]}(t._leaves))}),t}(T()(a));n((0,d.q7)(T()(s))),p(!0)}catch(e){b(e.message)}}()},className:"rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Add Template"})]}),(0,a.jsx)("br",{}),(0,a.jsx)(E.Vq,{open:m,onOpenChange:()=>p(!1),children:(0,a.jsxs)(E.cZ,{className:"sm:max-w-[768px]",children:[(0,a.jsxs)(E.fK,{children:[(0,a.jsx)(E.$N,{children:"Review the component"}),(0,a.jsx)(E.Be,{children:"This will be added to the database. Please Review the component before confirming."})]}),l?(0,a.jsx)(C.Z,{data:l}):"Preparing component...",(0,a.jsx)(E.cN,{children:(0,a.jsx)(A.z,{type:"submit",onClick:()=>{N()},children:"Save changes"})})]})}),(0,a.jsx)(E.Vq,{open:f,onOpenChange:()=>{p(!1),h(!1)},children:(0,a.jsxs)(E.cZ,{className:"sm:max-w-[768px]",children:[(0,a.jsxs)(E.fK,{children:[(0,a.jsx)(E.$N,{children:"Failed Adding Template"}),(0,a.jsx)(E.Be,{children:"Please review the error message and try again."})]}),(0,a.jsx)("strong",{children:"Error Message"}),x?(0,a.jsx)(C.Z,{data:x,height:100}):"Loading ...",(0,a.jsx)("strong",{children:"Submitted"}),l?(0,a.jsx)(C.Z,{data:l,height:"150px"}):"Preparing component...",(0,a.jsx)(E.cN,{children:(0,a.jsx)(A.z,{onClick:()=>{N()},children:"Retry now"})})]})})]}):null}var I=t(33597);function P(){var e,n;(0,c.v9)(e=>e.environment.environmentLoadedValues);let t=(0,c.v9)(e=>{var n;return null==e?void 0:null===(n=e.userInfo)||void 0===n?void 0:n.userInfoLoadedValues}),l=(0,c.I0)(),o=(0,c.v9)(e=>e.stack.stackUpdateByIndex),r=(0,c.v9)(e=>e.stack.stackLoadedValues),i=(0,c.v9)(e=>e.stack.stackSpecLoadedValues),[u,m]=(0,s.useState)(1),p=async()=>{try{let e=await fetch("".concat("".concat("http://localhost:8000","/spec/show")),{headers:{"Content-Type":"application/json",Authorization:(0,j.Z)(t),Accept:"application/json",superduper_reverse_proxy:"http://localhost:8000"}}),n=await e.json();console.log("Spec:",null==n?void 0:n.leaves),l(i(null==n?void 0:n.leaves))}catch(e){console.error(e)}};return((0,s.useEffect)(()=>{p()},[o]),o)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"space-y-12",children:(0,a.jsxs)("div",{className:"border-gray-900/10 pb-2",children:[(0,a.jsx)("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:"Add Components Form"}),(0,a.jsx)("p",{className:"mt-1 text-sm leading-6 text-gray-600",children:"Fill in the form below to add components. You can add multiple components by clicking the plus button."})]})}),(0,a.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6"}),(0,a.jsx)("br",{}),r&&i&&o&&o.map((e,n)=>(0,a.jsx)(k,{index:n},n)),(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"mt-6 flex items-center justify-center gap-x-6",children:(0,a.jsx)("div",{className:"mt-6",children:(0,a.jsx)("button",{type:"button",onClick:()=>{m(e=>e+1),o.push({componentType:""}),l((0,d.vW)(o))},className:"rounded-full bg-indigo-600 p-2 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:(0,a.jsx)(f.Z,{className:"h-5 w-5","aria-hidden":"true"})})})})}),(0,a.jsx)(Z,{}),o&&(null===(e=o[0])||void 0===e?void 0:e.componentType)&&(null===(n=o[0])||void 0===n?void 0:n.component)&&(0,a.jsx)(I.Z,{})]}):null}var O=t(8522),R=t.n(O),D=t(56146);function V(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(D.aG,{children:(0,a.jsxs)(D.Jb,{children:[(0,a.jsx)(D.gN,{children:(0,a.jsx)(D.At,{href:"/webui",children:"Home"})}),(0,a.jsx)(D.bg,{}),(0,a.jsx)(D.gN,{children:(0,a.jsx)(D.At,{href:"/webui/show",children:"Components"})}),(0,a.jsx)(D.bg,{}),(0,a.jsx)(D.gN,{children:(0,a.jsx)(D.AG,{children:"Add Components"})})]})}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("div",{className:"space-y-12",children:(0,a.jsxs)("div",{className:"border-gray-900/10 pb-2",children:[(0,a.jsx)("h1",{className:"text-base font-semibold leading-7 text-gray-900",children:"Select Input Method"}),(0,a.jsx)("p",{className:"mt-1 text-sm leading-6 text-gray-600",children:"You can select UI to add components with forms or upload a JSON file to add components."})]})}),(0,a.jsxs)(l.mQ,{defaultValue:"UI",className:"w-full",children:[(0,a.jsxs)(l.dr,{className:"grid w-full grid-cols-2",children:[(0,a.jsx)(l.SP,{value:"UI",children:"UI"}),(0,a.jsx)(l.SP,{value:"JSON",children:"JSON"})]}),(0,a.jsxs)(l.nU,{value:"UI",children:[(0,a.jsx)("br",{}),(0,a.jsx)(P,{})]}),(0,a.jsxs)(l.nU,{value:"JSON",children:[(0,a.jsx)("br",{}),(0,a.jsx)(R(),{})]})]})]})}var q=t(70007),L=(0,t(4867).N)(function(){return(0,a.jsx)(q.Z,{activeNavItem:"/webui/show",children:(0,a.jsx)("main",{className:"py-10",children:(0,a.jsx)("div",{className:"px-4 sm:px-6 lg:px-8",children:(0,a.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,a.jsx)("div",{className:"mx-auto max-w-3xl",children:(0,a.jsx)(V,{})})})})})})})},8522:function(){},56146:function(e,n,t){"use strict";t.d(n,{AG:function(){return m},At:function(){return u},Jb:function(){return d},aG:function(){return i},bg:function(){return p},gN:function(){return c}});var a=t(27573),s=t(7653),l=t(85688),o=t(8828),r=t(18580);let i=s.forwardRef((e,n)=>{let{...t}=e;return(0,a.jsx)("nav",{ref:n,"aria-label":"breadcrumb",...t})});i.displayName="Breadcrumb";let d=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)("ol",{ref:n,className:(0,r.cn)("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",t),...s})});d.displayName="BreadcrumbList";let c=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)("li",{ref:n,className:(0,r.cn)("inline-flex items-center gap-1.5",t),...s})});c.displayName="BreadcrumbItem";let u=s.forwardRef((e,n)=>{let{asChild:t,className:s,...l}=e,i=t?o.g7:"a";return(0,a.jsx)(i,{ref:n,className:(0,r.cn)("transition-colors hover:text-foreground",s),...l})});u.displayName="BreadcrumbLink";let m=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:(0,r.cn)("font-normal text-foreground",t),...s})});m.displayName="BreadcrumbPage";let p=e=>{let{children:n,className:t,...s}=e;return(0,a.jsx)("li",{role:"presentation","aria-hidden":"true",className:(0,r.cn)("[&>svg]:size-3.5",t),...s,children:null!=n?n:(0,a.jsx)(l.XCv,{})})};p.displayName="BreadcrumbSeparator"},86288:function(e,n,t){"use strict";t.d(n,{Ol:function(){return r},SZ:function(){return d},Zb:function(){return o},aY:function(){return c},eW:function(){return u},ll:function(){return i}});var a=t(27573),s=t(7653),l=t(18580);let o=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)("div",{ref:n,className:(0,l.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...s})});o.displayName="Card";let r=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)("div",{ref:n,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",t),...s})});r.displayName="CardHeader";let i=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)("h3",{ref:n,className:(0,l.cn)("font-semibold leading-none tracking-tight",t),...s})});i.displayName="CardTitle";let d=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)("p",{ref:n,className:(0,l.cn)("text-sm text-muted-foreground",t),...s})});d.displayName="CardDescription";let c=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)("div",{ref:n,className:(0,l.cn)("p-6 pt-0",t),...s})});c.displayName="CardContent";let u=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)("div",{ref:n,className:(0,l.cn)("flex items-center p-6 pt-0",t),...s})});u.displayName="CardFooter"},24776:function(e,n,t){"use strict";t.d(n,{$N:function(){return h},Be:function(){return x},Vq:function(){return i},cN:function(){return f},cZ:function(){return m},fK:function(){return p},hg:function(){return d}});var a=t(27573),s=t(7653),l=t(67905),o=t(85688),r=t(18580);let i=l.fC,d=l.xz,c=l.h_;l.x8;let u=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)(l.aV,{ref:n,className:(0,r.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...s})});u.displayName=l.aV.displayName;let m=s.forwardRef((e,n)=>{let{className:t,children:s,...i}=e;return(0,a.jsxs)(c,{children:[(0,a.jsx)(u,{}),(0,a.jsxs)(l.VY,{ref:n,className:(0,r.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...i,children:[s,(0,a.jsxs)(l.x8,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,a.jsx)(o.Pxu,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});m.displayName=l.VY.displayName;let p=e=>{let{className:n,...t}=e;return(0,a.jsx)("div",{className:(0,r.cn)("flex flex-col space-y-1.5 text-center sm:text-left",n),...t})};p.displayName="DialogHeader";let f=e=>{let{className:n,...t}=e;return(0,a.jsx)("div",{className:(0,r.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...t})};f.displayName="DialogFooter";let h=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)(l.Dx,{ref:n,className:(0,r.cn)("text-lg font-semibold leading-none tracking-tight",t),...s})});h.displayName=l.Dx.displayName;let x=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)(l.dk,{ref:n,className:(0,r.cn)("text-sm text-muted-foreground",t),...s})});x.displayName=l.dk.displayName},1930:function(e,n,t){"use strict";t.d(n,{I:function(){return o}});var a=t(27573),s=t(7653),l=t(18580);let o=s.forwardRef((e,n)=>{let{className:t,type:s,...o}=e;return(0,a.jsx)("input",{type:s,className:(0,l.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:n,...o})});o.displayName="Input"},97747:function(e,n,t){"use strict";t.d(n,{_:function(){return d}});var a=t(27573),s=t(7653),l=t(1001),o=t(85145),r=t(18580);let i=(0,o.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)(l.f,{ref:n,className:(0,r.cn)(i(),t),...s})});d.displayName=l.f.displayName},63052:function(e,n,t){"use strict";t.d(n,{Bw:function(){return f},DI:function(){return d},Ph:function(){return i},Ql:function(){return x},i4:function(){return u},ki:function(){return c},n5:function(){return h}});var a=t(27573),s=t(7653),l=t(85688),o=t(66240),r=t(18580);let i=o.fC,d=o.ZA,c=o.B4,u=s.forwardRef((e,n)=>{let{className:t,children:s,...i}=e;return(0,a.jsxs)(o.xz,{ref:n,className:(0,r.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...i,children:[s,(0,a.jsx)(o.JO,{asChild:!0,children:(0,a.jsx)(l.jnn,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=o.xz.displayName;let m=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)(o.u_,{ref:n,className:(0,r.cn)("flex cursor-default items-center justify-center py-1",t),...s,children:(0,a.jsx)(l.g8U,{})})});m.displayName=o.u_.displayName;let p=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)(o.$G,{ref:n,className:(0,r.cn)("flex cursor-default items-center justify-center py-1",t),...s,children:(0,a.jsx)(l.v4q,{})})});p.displayName=o.$G.displayName;let f=s.forwardRef((e,n)=>{let{className:t,children:s,position:l="popper",...i}=e;return(0,a.jsx)(o.h_,{children:(0,a.jsxs)(o.VY,{ref:n,className:(0,r.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:l,...i,children:[(0,a.jsx)(m,{}),(0,a.jsx)(o.l_,{className:(0,r.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,a.jsx)(p,{})]})})});f.displayName=o.VY.displayName;let h=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)(o.__,{ref:n,className:(0,r.cn)("px-2 py-1.5 text-sm font-semibold",t),...s})});h.displayName=o.__.displayName;let x=s.forwardRef((e,n)=>{let{className:t,children:s,...i}=e;return(0,a.jsxs)(o.ck,{ref:n,className:(0,r.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...i,children:[(0,a.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(o.wU,{children:(0,a.jsx)(l.nQG,{className:"h-4 w-4"})})}),(0,a.jsx)(o.eT,{children:s})]})});x.displayName=o.ck.displayName,s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)(o.Z0,{ref:n,className:(0,r.cn)("-mx-1 my-1 h-px bg-muted",t),...s})}).displayName=o.Z0.displayName},64303:function(e,n,t){"use strict";t.d(n,{SP:function(){return d},dr:function(){return i},mQ:function(){return r},nU:function(){return c}});var a=t(27573),s=t(7653),l=t(84132),o=t(18580);let r=l.fC,i=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)(l.aV,{ref:n,className:(0,o.cn)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",t),...s})});i.displayName=l.aV.displayName;let d=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)(l.xz,{ref:n,className:(0,o.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",t),...s})});d.displayName=l.xz.displayName;let c=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,a.jsx)(l.VY,{ref:n,className:(0,o.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...s})});c.displayName=l.VY.displayName},7109:function(e,n,t){"use strict";t.d(n,{Z:function(){return s}});var a=t(74859);function s(e){if(a.env.NEXT_PUBLIC_AUTO_LOGIN_EXTERNAL_SERVICES){let[e,n]=a.env.NEXT_PUBLIC_AUTO_LOGIN_EXTERNAL_SERVICES.split(","),t=e.includes("@")?e.split("@")[0]:e;return"Basic ".concat(btoa("".concat(t,":").concat(n)))}return"jwt"===a.env.AUTH_MECHANISM?"Bearer ".concat(e.token):"Basic ".concat(btoa("".concat(e.username,":").concat(e.password)))}},87191:function(e,n,t){"use strict";t.d(n,{Z:function(){return d}});var a=t(27573),s=t(7653),l=t(22392);t(40020),t(19234),t(83346);var o=t(412),r=t(24017),i=t(93296);function d(e){let{data:n,height:t="300px"}=e,d=(0,o.I0)(),[c,u]=(0,s.useState)(JSON.stringify(n,null," "));return(0,s.useRef)(null),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(l.default,{className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Stack result JSON here...",mode:"json",theme:"github",name:"blah2",onChange:e=>{try{u(e),d((0,r.q7)(JSON.parse(e)))}catch(e){i.ZP.error("Error updating...",{id:"stack-update-error"})}},fontSize:13,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:c,setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,useWorker:!1,wrap:!0},height:t,width:"100%"})})}},5772:function(e,n,t){"use strict";var a=t(27573);t(7653),n.Z=e=>{let n=e.times||4;return(0,a.jsxs)("div",{role:"status",className:"max-w-full p-4 space-y-4 border border-gray-200 divide-y divide-gray-200 rounded shadow animate-pulse gray:divide-gray-700 md:p-6 gray:border-gray-700",children:[[...Array(n)].map((e,n)=>(0,a.jsxs)("div",{className:"flex items-center justify-between pt-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"h-2.5 bg-gray-300 rounded-full gray:bg-gray-600 w-24 mb-2.5"}),(0,a.jsx)("div",{className:"w-32 h-2 bg-gray-200 rounded-full gray:bg-gray-700"})]}),(0,a.jsx)("div",{className:"h-2.5 bg-gray-300 rounded-full gray:bg-gray-700 w-12"})]},n)),(0,a.jsx)("span",{className:"sr-only",children:"Loading..."})]})}},80923:function(e,n,t){"use strict";t.d(n,{Z:function(){return c}});var a=t(27573),s=t(7653),l=t(86527),o=t(18580);let r=l.fC,i=l.xz,d=s.forwardRef((e,n)=>{let{className:t,align:s="center",sideOffset:r=4,...i}=e;return(0,a.jsx)(l.VY,{ref:n,align:s,sideOffset:r,className:(0,o.cn)("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",t),...i})});d.displayName=l.VY.displayName;var c=e=>{let{label:n,popoverheader:t,popovercontent:s}=e;return(0,a.jsxs)(r,{children:[(0,a.jsx)(i,{children:(0,a.jsx)("label",{className:"text-sm font-medium leading-6 text-gray-900 inline-flex items-center",children:(0,a.jsxs)("p",{children:[n," ",(0,a.jsx)("button",{type:"button",className:"align-middle mb-1",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20","stroke-width":"1.5",stroke:"currentColor",className:"w-4 h-4 hover:text-gray-500 rounded-sm align-middle",children:(0,a.jsx)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.375 9.375l.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M17.5 10a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0Zm-7.5-3.125h.008v.008H10V6.875Z"})})})]})})}),(0,a.jsxs)(d,{className:"text-sm text-gray-500 transition-opacity duration-300 bg-white border border-gray-200 rounded-lg shadow-sm overflow-visible",children:[t&&(0,a.jsx)("div",{className:"px-3 py-2 bg-gray-100 border-b border-gray-200 rounded-lg dark:border-gray-600 dark:bg-gray-700 overflow-visible",children:(0,a.jsx)("h3",{className:"font-semibold text-gray-900 dark:text-white overflow-visible",children:t})}),(0,a.jsx)("div",{className:"px-3 py-2",children:s})]})]})}}},function(e){e.O(0,[5458,7441,3296,8320,8374,3908,7653,7050,6340,9115,3406,8113,4529,3696,935,2895,1293,1528,1744],function(){return e(e.s=1100)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/app/webui/add-template/page-9497e2aebbc1d553.js b/superduper/rest/out/_next/static/chunks/app/webui/add-template/page-9497e2aebbc1d553.js deleted file mode 100644 index 1d88b381c..000000000 --- a/superduper/rest/out/_next/static/chunks/app/webui/add-template/page-9497e2aebbc1d553.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7986],{24703:function(e,t,r){Promise.resolve().then(r.bind(r,15198))},15198:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return S}});var a=r(27573),n=r(7653),s=r(80923),l=r(13908),i=r(93296),o=r(22392);r(40020),r(19234),r(83346);var d=r(88146),c=r(412),u=r(81695),f=r(87191),m=r(24776),p=r(7109),x=r(36531);function g(){(0,c.v9)(e=>e.environment.environmentLoadedValues);let e=(0,c.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues}),t=(0,u.useRouter)(),r=(0,c.v9)(e=>e.stack.stackUpdateByIndex),s=(0,c.v9)(e=>e.stack.submittedStack),[l,o]=(0,n.useState)(null),[g,h]=(0,n.useState)(!1),[v,b]=(0,n.useState)(!1),[j,N]=(0,n.useState)(null);function y(){if(!s){i.ZP.error("Error adding template",{id:"form-error"});return}i.ZP.loading("Adding template...",{id:"adding"});try{fetch("".concat("".concat("http://localhost:8000","/db/apply")),{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:(0,p.Z)(e),superduper_reverse_proxy:"http://localhost:8000"},body:JSON.stringify(s,null," ")}).then(e=>{if(!e.ok){if(500===e.status)return e.json().then(e=>{throw console.log("Error response data:",e),N(e),Error("Server error")});throw Error("Network response was not ok")}return e.json()}).then(e=>{i.ZP.dismiss("adding"),console.log("Data from:",e),i.ZP.success("Custom template added successfully"),t.push("/webui/templates")}).catch(e=>{b(!0),console.error("Error fetching API data",e),i.ZP.error("Error adding template",{id:"form-error"}),i.ZP.dismiss("adding")})}catch(e){i.ZP.dismiss("adding"),b(!0),i.ZP.error("Error adding template",{id:"form-error"})}}return r?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"mt-6 flex items-center justify-end gap-x-6",children:[(0,a.jsx)(d.default,{href:"/webui/add-template",children:(0,a.jsx)("button",{type:"button",className:"text-sm font-semibold leading-6 text-gray-900",children:"Cancel"})}),(0,a.jsx)("button",{onClick:e=>{e.preventDefault,h(!0)},className:"rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Add Template"})]}),(0,a.jsx)("br",{}),(0,a.jsx)(m.Vq,{open:g,onOpenChange:()=>h(!1),children:(0,a.jsxs)(m.cZ,{className:"sm:max-w-[768px]",children:[(0,a.jsxs)(m.fK,{children:[(0,a.jsx)(m.$N,{children:"Review the template"}),(0,a.jsx)(m.Be,{children:"This will be added to the database. Please review the template before confirming."})]}),s?(0,a.jsx)(f.Z,{data:s}):"Preparing template...",(0,a.jsx)(m.cN,{children:(0,a.jsx)(x.z,{type:"submit",onClick:()=>{y()},children:"Save changes"})})]})}),(0,a.jsx)(m.Vq,{open:v,onOpenChange:()=>{h(!1),b(!1)},children:(0,a.jsxs)(m.cZ,{className:"sm:max-w-[768px]",children:[(0,a.jsxs)(m.fK,{children:[(0,a.jsx)(m.$N,{children:"Failed Adding Template"}),(0,a.jsx)(m.Be,{children:"Please review the error message and try again."})]}),(0,a.jsx)("strong",{children:"Error Message"}),j?(0,a.jsx)(f.Z,{data:j,height:100}):"Loading ...",(0,a.jsx)("strong",{children:"Submitted"}),s?(0,a.jsx)(f.Z,{data:s,height:"150px"}):"Preparing component...",(0,a.jsx)(m.cN,{children:(0,a.jsx)(x.z,{onClick:()=>{y()},children:"Retry now"})})]})})]}):null}var h=r(24017),v=r(1070),b=r(91894);function j(e){let t=(0,c.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues});(0,c.v9)(e=>e.environment.environmentLoadedValues);let r=(0,c.I0)(),[d,u]=(0,n.useState)("{}"),[f,m]=(0,n.useState)(""),x=async e=>{let a=e.target.files[0];if(a){if("application/json"===a.type){let e=i.ZP.loading("Loading JSON file..."),t=new FileReader;t.onload=t=>{try{let a=JSON.parse(t.target.result);m(JSON.stringify(a,null,2)),u(JSON.stringify(a,null,2)),r((0,h.q7)(a)),i.ZP.success("JSON file loaded successfully!",{id:e})}catch(t){m("Invalid JSON file."),u("Invalid JSON file."),i.ZP.error("Failed to load JSON file.",{id:e})}},t.readAsText(a)}else if("application/zip"===a.type||a.name.endsWith(".zip")){let e=i.ZP.loading("Uploading ZIP file..."),o=new FormData;o.append("raw",a,a.name);try{var n,s;let a=await l.Z.put("".concat("".concat("http://localhost:8000","/db/upload")),o,{headers:{"Content-Type":"multipart/form-data",accept:"application/json",Authorization:(0,p.Z)(t),superduper_reverse_proxy:"http://localhost:8000"}}),d=JSON.parse(JSON.stringify(null==a?void 0:null===(n=a.data)||void 0===n?void 0:n.component));r((0,v.Xs)([...null==a?void 0:null===(s=a.data)||void 0===s?void 0:s.artifacts])),m(JSON.stringify(d,null,2)),u(JSON.stringify(d,null,2)),r((0,h.q7)(d)),i.ZP.success("ZIP file uploaded successfully!",{id:e})}catch(t){i.ZP.error((null==t?void 0:t.message)||"Failed to upload ZIP file.",{id:e,duration:1e4}),console.log("Error uploading ZIP file:",t)}}else m("Please upload a valid JSON or ZIP file."),i.ZP.error("Invalid file type.")}else m("No file selected."),i.ZP.error("No file selected.")},j=(0,n.useRef)(null);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"space-y-6",children:(0,a.jsx)("div",{className:"border-gray-900/10 pb-2",children:(0,a.jsxs)("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:["Add Custom Template"," ",(0,a.jsx)(s.Z,{label:"",popoverheader:"Add Custom Template",popovercontent:(0,a.jsx)("p",{children:"You can type or upload a JSON file here to automatically fill in the JSON field."})})]})})}),(0,a.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,a.jsxs)("div",{className:"sm:col-span-3",children:[(0,a.jsx)(o.default,{ref:j,className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Add JSON here...",mode:"json",theme:"github",name:"blah2",onChange:e=>{u(e);try{let t=JSON.parse(e);r((0,h.q7)(t))}catch(e){}},fontSize:13,showPrintMargin:!0,showGutter:!1,highlightActiveLine:!0,value:d,setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,useWorker:!1,wrap:!0},height:"500px",width:"200%"}),(0,a.jsx)("input",{type:"file",accept:".json,.zip",className:"block mt-2 w-full text-sm text-gray-700 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-indigo-50 file:text-indigo-700 hover:file:bg-indigo-100",onChange:x}),(0,a.jsx)("p",{className:"text-xs pl-2 text-muted-foreground",children:"*You can upload a json file to populate the json field. Or you can upload a zip file."})]})}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)(b.Z,{}),(0,a.jsx)(g,{})]})}var N=r(56146);function y(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(N.aG,{children:(0,a.jsxs)(N.Jb,{children:[(0,a.jsx)(N.gN,{children:(0,a.jsx)(N.At,{href:"/webui",children:"Home"})}),(0,a.jsx)(N.bg,{}),(0,a.jsx)(N.gN,{children:(0,a.jsx)(N.At,{href:"/webui/templates",children:"Templates"})}),(0,a.jsx)(N.bg,{}),(0,a.jsx)(N.gN,{children:(0,a.jsx)(N.AG,{children:"Add Template"})})]})}),(0,a.jsx)("br",{}),(0,a.jsx)(j,{})]})}var w=r(70007),S=(0,r(4867).N)(function(){return(0,a.jsx)(w.Z,{activeNavItem:"/webui/templates",children:(0,a.jsx)("main",{className:"py-10",children:(0,a.jsx)("div",{className:"px-4 sm:px-6 lg:px-8",children:(0,a.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,a.jsx)("div",{className:"mx-auto max-w-3xl",children:(0,a.jsx)(y,{})})})})})})})},56146:function(e,t,r){"use strict";r.d(t,{AG:function(){return f},At:function(){return u},Jb:function(){return d},aG:function(){return o},bg:function(){return m},gN:function(){return c}});var a=r(27573),n=r(7653),s=r(85688),l=r(8828),i=r(18580);let o=n.forwardRef((e,t)=>{let{...r}=e;return(0,a.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...r})});o.displayName="Breadcrumb";let d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("ol",{ref:t,className:(0,i.cn)("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",r),...n})});d.displayName="BreadcrumbList";let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("li",{ref:t,className:(0,i.cn)("inline-flex items-center gap-1.5",r),...n})});c.displayName="BreadcrumbItem";let u=n.forwardRef((e,t)=>{let{asChild:r,className:n,...s}=e,o=r?l.g7:"a";return(0,a.jsx)(o,{ref:t,className:(0,i.cn)("transition-colors hover:text-foreground",n),...s})});u.displayName="BreadcrumbLink";let f=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:(0,i.cn)("font-normal text-foreground",r),...n})});f.displayName="BreadcrumbPage";let m=e=>{let{children:t,className:r,...n}=e;return(0,a.jsx)("li",{role:"presentation","aria-hidden":"true",className:(0,i.cn)("[&>svg]:size-3.5",r),...n,children:null!=t?t:(0,a.jsx)(s.XCv,{})})};m.displayName="BreadcrumbSeparator"},86288:function(e,t,r){"use strict";r.d(t,{Ol:function(){return i},SZ:function(){return d},Zb:function(){return l},aY:function(){return c},eW:function(){return u},ll:function(){return o}});var a=r(27573),n=r(7653),s=r(18580);let l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...n})});l.displayName="Card";let i=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",r),...n})});i.displayName="CardHeader";let o=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("h3",{ref:t,className:(0,s.cn)("font-semibold leading-none tracking-tight",r),...n})});o.displayName="CardTitle";let d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("p",{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",r),...n})});d.displayName="CardDescription";let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("p-6 pt-0",r),...n})});c.displayName="CardContent";let u=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center p-6 pt-0",r),...n})});u.displayName="CardFooter"},24776:function(e,t,r){"use strict";r.d(t,{$N:function(){return x},Be:function(){return g},Vq:function(){return o},cN:function(){return p},cZ:function(){return f},fK:function(){return m},hg:function(){return d}});var a=r(27573),n=r(7653),s=r(67905),l=r(85688),i=r(18580);let o=s.fC,d=s.xz,c=s.h_;s.x8;let u=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.aV,{ref:t,className:(0,i.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...n})});u.displayName=s.aV.displayName;let f=n.forwardRef((e,t)=>{let{className:r,children:n,...o}=e;return(0,a.jsxs)(c,{children:[(0,a.jsx)(u,{}),(0,a.jsxs)(s.VY,{ref:t,className:(0,i.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",r),...o,children:[n,(0,a.jsxs)(s.x8,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,a.jsx)(l.Pxu,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});f.displayName=s.VY.displayName;let m=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...r})};m.displayName="DialogHeader";let p=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,i.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r})};p.displayName="DialogFooter";let x=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.Dx,{ref:t,className:(0,i.cn)("text-lg font-semibold leading-none tracking-tight",r),...n})});x.displayName=s.Dx.displayName;let g=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.dk,{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",r),...n})});g.displayName=s.dk.displayName},1930:function(e,t,r){"use strict";r.d(t,{I:function(){return l}});var a=r(27573),n=r(7653),s=r(18580);let l=n.forwardRef((e,t)=>{let{className:r,type:n,...l}=e;return(0,a.jsx)("input",{type:n,className:(0,s.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...l})});l.displayName="Input"},97747:function(e,t,r){"use strict";r.d(t,{_:function(){return d}});var a=r(27573),n=r(7653),s=r(1001),l=r(85145),i=r(18580);let o=(0,l.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.f,{ref:t,className:(0,i.cn)(o(),r),...n})});d.displayName=s.f.displayName},91894:function(e,t,r){"use strict";var a=r(27573),n=r(7653),s=r(412),l=r(33597),i=r(36531);function o(e){return(0,a.jsx)("svg",{...e,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",children:(0,a.jsx)("path",{d:"m6 9 6 6 6-6"})})}function d(e){return(0,a.jsx)("svg",{...e,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",children:(0,a.jsx)("path",{d:"m18 15-6-6-6 6"})})}t.Z=()=>{let e=(0,s.v9)(e=>e.uploadFiles.uploadFilesLoadedValues||[]),[t,r]=(0,n.useState)(!1),[c,u]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{0===e.length||c||r(!0)},[e,c]),(0,a.jsxs)("div",{children:[(0,a.jsxs)(i.z,{variant:"secondary",onClick:()=>{r(!t),u(!0)},children:["Upload Artifact",t?(0,a.jsx)(d,{className:"ml-2 h-4 w-4"}):(0,a.jsx)(o,{className:"ml-2 h-4 w-4"})]}),(t||!c&&0!==e.length)&&(0,a.jsx)("div",{className:"col-span-full mt-2",children:(0,a.jsx)(l.Z,{})})]})}},7109:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var a=r(74859);function n(e){if(a.env.NEXT_PUBLIC_AUTO_LOGIN_EXTERNAL_SERVICES){let[e,t]=a.env.NEXT_PUBLIC_AUTO_LOGIN_EXTERNAL_SERVICES.split(","),r=e.includes("@")?e.split("@")[0]:e;return"Basic ".concat(btoa("".concat(r,":").concat(t)))}return"jwt"===a.env.AUTH_MECHANISM?"Bearer ".concat(e.token):"Basic ".concat(btoa("".concat(e.username,":").concat(e.password)))}},87191:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var a=r(27573),n=r(7653),s=r(22392);r(40020),r(19234),r(83346);var l=r(412),i=r(24017),o=r(93296);function d(e){let{data:t,height:r="300px"}=e,d=(0,l.I0)(),[c,u]=(0,n.useState)(JSON.stringify(t,null," "));return(0,n.useRef)(null),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.default,{className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Stack result JSON here...",mode:"json",theme:"github",name:"blah2",onChange:e=>{try{u(e),d((0,i.q7)(JSON.parse(e)))}catch(e){o.ZP.error("Error updating...",{id:"stack-update-error"})}},fontSize:13,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:c,setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,useWorker:!1,wrap:!0},height:r,width:"100%"})})}},5772:function(e,t,r){"use strict";var a=r(27573);r(7653),t.Z=e=>{let t=e.times||4;return(0,a.jsxs)("div",{role:"status",className:"max-w-full p-4 space-y-4 border border-gray-200 divide-y divide-gray-200 rounded shadow animate-pulse gray:divide-gray-700 md:p-6 gray:border-gray-700",children:[[...Array(t)].map((e,t)=>(0,a.jsxs)("div",{className:"flex items-center justify-between pt-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"h-2.5 bg-gray-300 rounded-full gray:bg-gray-600 w-24 mb-2.5"}),(0,a.jsx)("div",{className:"w-32 h-2 bg-gray-200 rounded-full gray:bg-gray-700"})]}),(0,a.jsx)("div",{className:"h-2.5 bg-gray-300 rounded-full gray:bg-gray-700 w-12"})]},t)),(0,a.jsx)("span",{className:"sr-only",children:"Loading..."})]})}},80923:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var a=r(27573),n=r(7653),s=r(86527),l=r(18580);let i=s.fC,o=s.xz,d=n.forwardRef((e,t)=>{let{className:r,align:n="center",sideOffset:i=4,...o}=e;return(0,a.jsx)(s.VY,{ref:t,align:n,sideOffset:i,className:(0,l.cn)("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",r),...o})});d.displayName=s.VY.displayName;var c=e=>{let{label:t,popoverheader:r,popovercontent:n}=e;return(0,a.jsxs)(i,{children:[(0,a.jsx)(o,{children:(0,a.jsx)("label",{className:"text-sm font-medium leading-6 text-gray-900 inline-flex items-center",children:(0,a.jsxs)("p",{children:[t," ",(0,a.jsx)("button",{type:"button",className:"align-middle mb-1",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20","stroke-width":"1.5",stroke:"currentColor",className:"w-4 h-4 hover:text-gray-500 rounded-sm align-middle",children:(0,a.jsx)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.375 9.375l.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M17.5 10a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0Zm-7.5-3.125h.008v.008H10V6.875Z"})})})]})})}),(0,a.jsxs)(d,{className:"text-sm text-gray-500 transition-opacity duration-300 bg-white border border-gray-200 rounded-lg shadow-sm overflow-visible",children:[r&&(0,a.jsx)("div",{className:"px-3 py-2 bg-gray-100 border-b border-gray-200 rounded-lg dark:border-gray-600 dark:bg-gray-700 overflow-visible",children:(0,a.jsx)("h3",{className:"font-semibold text-gray-900 dark:text-white overflow-visible",children:r})}),(0,a.jsx)("div",{className:"px-3 py-2",children:n})]})]})}},88146:function(e,t,r){"use strict";r.d(t,{default:function(){return n.a}});var a=r(16340),n=r.n(a)},21091:function(e,t,r){"use strict";var a=r(7653);let n=a.forwardRef(function(e,t){let{title:r,titleId:n,...s}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":n},s),r?a.createElement("title",{id:n},r):null,a.createElement("path",{fillRule:"evenodd",d:"M5.5 17a4.5 4.5 0 0 1-1.44-8.765 4.5 4.5 0 0 1 8.302-3.046 3.5 3.5 0 0 1 4.504 4.272A4 4 0 0 1 15 17H5.5Zm3.75-2.75a.75.75 0 0 0 1.5 0V9.66l1.95 2.1a.75.75 0 1 0 1.1-1.02l-3.25-3.5a.75.75 0 0 0-1.1 0l-3.25 3.5a.75.75 0 1 0 1.1 1.02l1.95-2.1v4.59Z",clipRule:"evenodd"}))});t.Z=n}},function(e){e.O(0,[5458,7441,3296,8320,8374,3908,7653,7050,6340,3696,935,2895,1293,1528,1744],function(){return e(e.s=24703)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/app/webui/add-template/page-eefa93512ff5f9a7.js b/superduper/rest/out/_next/static/chunks/app/webui/add-template/page-eefa93512ff5f9a7.js new file mode 100644 index 000000000..4f21f2305 --- /dev/null +++ b/superduper/rest/out/_next/static/chunks/app/webui/add-template/page-eefa93512ff5f9a7.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7986],{2167:function(e,t,r){Promise.resolve().then(r.bind(r,15198))},15198:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return S}});var a=r(27573),n=r(7653),s=r(80923),l=r(13908),i=r(93296),o=r(22392);r(40020),r(19234),r(83346);var d=r(88146),c=r(412),u=r(81695),f=r(87191),m=r(24776),p=r(7109),x=r(36531);function g(){(0,c.v9)(e=>e.environment.environmentLoadedValues);let e=(0,c.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues}),t=(0,u.useRouter)(),r=(0,c.v9)(e=>e.stack.stackUpdateByIndex),s=(0,c.v9)(e=>e.stack.submittedStack),[l,o]=(0,n.useState)(null),[g,h]=(0,n.useState)(!1),[v,b]=(0,n.useState)(!1),[j,N]=(0,n.useState)(null);function y(){if(!s){i.ZP.error("Error adding template",{id:"form-error"});return}i.ZP.loading("Adding template...",{id:"adding"});try{fetch("".concat("".concat("http://localhost:8000","/db/apply")),{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:(0,p.Z)(e),superduper_reverse_proxy:"http://localhost:8000"},body:JSON.stringify(s,null," ")}).then(e=>{if(!e.ok){if(500===e.status)return e.json().then(e=>{throw console.log("Error response data:",e),N(e),Error("Server error")});throw Error("Network response was not ok")}return e.json()}).then(e=>{i.ZP.dismiss("adding"),console.log("Data from:",e),i.ZP.success("Custom template added successfully"),t.push("/webui/templates")}).catch(e=>{b(!0),console.error("Error fetching API data",e),i.ZP.error("Error adding template",{id:"form-error"}),i.ZP.dismiss("adding")})}catch(e){i.ZP.dismiss("adding"),b(!0),i.ZP.error("Error adding template",{id:"form-error"})}}return r?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"mt-6 flex items-center justify-end gap-x-6",children:[(0,a.jsx)(d.default,{href:"/webui/add-template",children:(0,a.jsx)("button",{type:"button",className:"text-sm font-semibold leading-6 text-gray-900",children:"Cancel"})}),(0,a.jsx)("button",{onClick:e=>{e.preventDefault,h(!0)},className:"rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Add Template"})]}),(0,a.jsx)("br",{}),(0,a.jsx)(m.Vq,{open:g,onOpenChange:()=>h(!1),children:(0,a.jsxs)(m.cZ,{className:"sm:max-w-[768px]",children:[(0,a.jsxs)(m.fK,{children:[(0,a.jsx)(m.$N,{children:"Review the template"}),(0,a.jsx)(m.Be,{children:"This will be added to the database. Please review the template before confirming."})]}),s?(0,a.jsx)(f.Z,{data:s}):"Preparing template...",(0,a.jsx)(m.cN,{children:(0,a.jsx)(x.z,{type:"submit",onClick:()=>{y()},children:"Save changes"})})]})}),(0,a.jsx)(m.Vq,{open:v,onOpenChange:()=>{h(!1),b(!1)},children:(0,a.jsxs)(m.cZ,{className:"sm:max-w-[768px]",children:[(0,a.jsxs)(m.fK,{children:[(0,a.jsx)(m.$N,{children:"Failed Adding Template"}),(0,a.jsx)(m.Be,{children:"Please review the error message and try again."})]}),(0,a.jsx)("strong",{children:"Error Message"}),j?(0,a.jsx)(f.Z,{data:j,height:100}):"Loading ...",(0,a.jsx)("strong",{children:"Submitted"}),s?(0,a.jsx)(f.Z,{data:s,height:"150px"}):"Preparing component...",(0,a.jsx)(m.cN,{children:(0,a.jsx)(x.z,{onClick:()=>{y()},children:"Retry now"})})]})})]}):null}var h=r(24017),v=r(1070),b=r(91894);function j(e){let t=(0,c.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues});(0,c.v9)(e=>e.environment.environmentLoadedValues);let r=(0,c.I0)(),[d,u]=(0,n.useState)("{}"),[f,m]=(0,n.useState)(""),x=async e=>{let a=e.target.files[0];if(a){if("application/json"===a.type){let e=i.ZP.loading("Loading JSON file..."),t=new FileReader;t.onload=t=>{try{let a=JSON.parse(t.target.result);m(JSON.stringify(a,null,2)),u(JSON.stringify(a,null,2)),r((0,h.q7)(a)),i.ZP.success("JSON file loaded successfully!",{id:e})}catch(t){m("Invalid JSON file."),u("Invalid JSON file."),i.ZP.error("Failed to load JSON file.",{id:e})}},t.readAsText(a)}else if("application/zip"===a.type||a.name.endsWith(".zip")){let e=i.ZP.loading("Uploading ZIP file..."),o=new FormData;o.append("raw",a,a.name);try{var n,s;let a=await l.Z.put("".concat("".concat("http://localhost:8000","/db/upload")),o,{headers:{"Content-Type":"multipart/form-data",accept:"application/json",Authorization:(0,p.Z)(t),superduper_reverse_proxy:"http://localhost:8000"}}),d=JSON.parse(JSON.stringify(null==a?void 0:null===(n=a.data)||void 0===n?void 0:n.component));r((0,v.Xs)([...null==a?void 0:null===(s=a.data)||void 0===s?void 0:s.artifacts])),m(JSON.stringify(d,null,2)),u(JSON.stringify(d,null,2)),r((0,h.q7)(d)),i.ZP.success("ZIP file uploaded successfully!",{id:e})}catch(t){i.ZP.error((null==t?void 0:t.message)||"Failed to upload ZIP file.",{id:e,duration:1e4}),console.log("Error uploading ZIP file:",t)}}else m("Please upload a valid JSON or ZIP file."),i.ZP.error("Invalid file type.")}else m("No file selected."),i.ZP.error("No file selected.")},j=(0,n.useRef)(null);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"space-y-6",children:(0,a.jsx)("div",{className:"border-gray-900/10 pb-2",children:(0,a.jsxs)("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:["Add Custom Template"," ",(0,a.jsx)(s.Z,{label:"",popoverheader:"Add Custom Template",popovercontent:(0,a.jsx)("p",{children:"You can type or upload a JSON file here to automatically fill in the JSON field."})})]})})}),(0,a.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,a.jsxs)("div",{className:"sm:col-span-3",children:[(0,a.jsx)(o.default,{ref:j,className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Add JSON here...",mode:"json",theme:"github",name:"blah2",onChange:e=>{u(e);try{let t=JSON.parse(e);r((0,h.q7)(t))}catch(e){}},fontSize:13,showPrintMargin:!0,showGutter:!1,highlightActiveLine:!0,value:d,setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,useWorker:!1,wrap:!0},height:"500px",width:"200%"}),(0,a.jsx)("input",{type:"file",accept:".json,.zip",className:"block mt-2 w-full text-sm text-gray-700 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-indigo-50 file:text-indigo-700 hover:file:bg-indigo-100",onChange:x}),(0,a.jsx)("p",{className:"text-xs pl-2 text-muted-foreground",children:"*You can upload a json file to populate the json field. Or you can upload a zip file."})]})}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)(b.Z,{}),(0,a.jsx)(g,{})]})}var N=r(56146);function y(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(N.aG,{children:(0,a.jsxs)(N.Jb,{children:[(0,a.jsx)(N.gN,{children:(0,a.jsx)(N.At,{href:"/webui",children:"Home"})}),(0,a.jsx)(N.bg,{}),(0,a.jsx)(N.gN,{children:(0,a.jsx)(N.At,{href:"/webui/templates",children:"Templates"})}),(0,a.jsx)(N.bg,{}),(0,a.jsx)(N.gN,{children:(0,a.jsx)(N.AG,{children:"Add Template"})})]})}),(0,a.jsx)("br",{}),(0,a.jsx)(j,{})]})}var w=r(70007),S=(0,r(4867).N)(function(){return(0,a.jsx)(w.Z,{activeNavItem:"/webui/templates",children:(0,a.jsx)("main",{className:"py-10",children:(0,a.jsx)("div",{className:"px-4 sm:px-6 lg:px-8",children:(0,a.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,a.jsx)("div",{className:"mx-auto max-w-3xl",children:(0,a.jsx)(y,{})})})})})})})},56146:function(e,t,r){"use strict";r.d(t,{AG:function(){return f},At:function(){return u},Jb:function(){return d},aG:function(){return o},bg:function(){return m},gN:function(){return c}});var a=r(27573),n=r(7653),s=r(85688),l=r(8828),i=r(18580);let o=n.forwardRef((e,t)=>{let{...r}=e;return(0,a.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...r})});o.displayName="Breadcrumb";let d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("ol",{ref:t,className:(0,i.cn)("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",r),...n})});d.displayName="BreadcrumbList";let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("li",{ref:t,className:(0,i.cn)("inline-flex items-center gap-1.5",r),...n})});c.displayName="BreadcrumbItem";let u=n.forwardRef((e,t)=>{let{asChild:r,className:n,...s}=e,o=r?l.g7:"a";return(0,a.jsx)(o,{ref:t,className:(0,i.cn)("transition-colors hover:text-foreground",n),...s})});u.displayName="BreadcrumbLink";let f=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:(0,i.cn)("font-normal text-foreground",r),...n})});f.displayName="BreadcrumbPage";let m=e=>{let{children:t,className:r,...n}=e;return(0,a.jsx)("li",{role:"presentation","aria-hidden":"true",className:(0,i.cn)("[&>svg]:size-3.5",r),...n,children:null!=t?t:(0,a.jsx)(s.XCv,{})})};m.displayName="BreadcrumbSeparator"},86288:function(e,t,r){"use strict";r.d(t,{Ol:function(){return i},SZ:function(){return d},Zb:function(){return l},aY:function(){return c},eW:function(){return u},ll:function(){return o}});var a=r(27573),n=r(7653),s=r(18580);let l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...n})});l.displayName="Card";let i=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",r),...n})});i.displayName="CardHeader";let o=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("h3",{ref:t,className:(0,s.cn)("font-semibold leading-none tracking-tight",r),...n})});o.displayName="CardTitle";let d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("p",{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",r),...n})});d.displayName="CardDescription";let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("p-6 pt-0",r),...n})});c.displayName="CardContent";let u=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center p-6 pt-0",r),...n})});u.displayName="CardFooter"},24776:function(e,t,r){"use strict";r.d(t,{$N:function(){return x},Be:function(){return g},Vq:function(){return o},cN:function(){return p},cZ:function(){return f},fK:function(){return m},hg:function(){return d}});var a=r(27573),n=r(7653),s=r(67905),l=r(85688),i=r(18580);let o=s.fC,d=s.xz,c=s.h_;s.x8;let u=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.aV,{ref:t,className:(0,i.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...n})});u.displayName=s.aV.displayName;let f=n.forwardRef((e,t)=>{let{className:r,children:n,...o}=e;return(0,a.jsxs)(c,{children:[(0,a.jsx)(u,{}),(0,a.jsxs)(s.VY,{ref:t,className:(0,i.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",r),...o,children:[n,(0,a.jsxs)(s.x8,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,a.jsx)(l.Pxu,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});f.displayName=s.VY.displayName;let m=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...r})};m.displayName="DialogHeader";let p=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,i.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r})};p.displayName="DialogFooter";let x=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.Dx,{ref:t,className:(0,i.cn)("text-lg font-semibold leading-none tracking-tight",r),...n})});x.displayName=s.Dx.displayName;let g=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.dk,{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",r),...n})});g.displayName=s.dk.displayName},1930:function(e,t,r){"use strict";r.d(t,{I:function(){return l}});var a=r(27573),n=r(7653),s=r(18580);let l=n.forwardRef((e,t)=>{let{className:r,type:n,...l}=e;return(0,a.jsx)("input",{type:n,className:(0,s.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...l})});l.displayName="Input"},97747:function(e,t,r){"use strict";r.d(t,{_:function(){return d}});var a=r(27573),n=r(7653),s=r(1001),l=r(85145),i=r(18580);let o=(0,l.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.f,{ref:t,className:(0,i.cn)(o(),r),...n})});d.displayName=s.f.displayName},91894:function(e,t,r){"use strict";var a=r(27573),n=r(7653),s=r(412),l=r(33597),i=r(36531);function o(e){return(0,a.jsx)("svg",{...e,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",children:(0,a.jsx)("path",{d:"m6 9 6 6 6-6"})})}function d(e){return(0,a.jsx)("svg",{...e,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",children:(0,a.jsx)("path",{d:"m18 15-6-6-6 6"})})}t.Z=()=>{let e=(0,s.v9)(e=>e.uploadFiles.uploadFilesLoadedValues||[]),[t,r]=(0,n.useState)(!1),[c,u]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{0===e.length||c||r(!0)},[e,c]),(0,a.jsxs)("div",{children:[(0,a.jsxs)(i.z,{variant:"secondary",onClick:()=>{r(!t),u(!0)},children:["Upload Artifact",t?(0,a.jsx)(d,{className:"ml-2 h-4 w-4"}):(0,a.jsx)(o,{className:"ml-2 h-4 w-4"})]}),(t||!c&&0!==e.length)&&(0,a.jsx)("div",{className:"col-span-full mt-2",children:(0,a.jsx)(l.Z,{})})]})}},7109:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var a=r(74859);function n(e){if(a.env.NEXT_PUBLIC_AUTO_LOGIN_EXTERNAL_SERVICES){let[e,t]=a.env.NEXT_PUBLIC_AUTO_LOGIN_EXTERNAL_SERVICES.split(","),r=e.includes("@")?e.split("@")[0]:e;return"Basic ".concat(btoa("".concat(r,":").concat(t)))}return"jwt"===a.env.AUTH_MECHANISM?"Bearer ".concat(e.token):"Basic ".concat(btoa("".concat(e.username,":").concat(e.password)))}},87191:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var a=r(27573),n=r(7653),s=r(22392);r(40020),r(19234),r(83346);var l=r(412),i=r(24017),o=r(93296);function d(e){let{data:t,height:r="300px"}=e,d=(0,l.I0)(),[c,u]=(0,n.useState)(JSON.stringify(t,null," "));return(0,n.useRef)(null),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.default,{className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Stack result JSON here...",mode:"json",theme:"github",name:"blah2",onChange:e=>{try{u(e),d((0,i.q7)(JSON.parse(e)))}catch(e){o.ZP.error("Error updating...",{id:"stack-update-error"})}},fontSize:13,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:c,setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,useWorker:!1,wrap:!0},height:r,width:"100%"})})}},5772:function(e,t,r){"use strict";var a=r(27573);r(7653),t.Z=e=>{let t=e.times||4;return(0,a.jsxs)("div",{role:"status",className:"max-w-full p-4 space-y-4 border border-gray-200 divide-y divide-gray-200 rounded shadow animate-pulse gray:divide-gray-700 md:p-6 gray:border-gray-700",children:[[...Array(t)].map((e,t)=>(0,a.jsxs)("div",{className:"flex items-center justify-between pt-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"h-2.5 bg-gray-300 rounded-full gray:bg-gray-600 w-24 mb-2.5"}),(0,a.jsx)("div",{className:"w-32 h-2 bg-gray-200 rounded-full gray:bg-gray-700"})]}),(0,a.jsx)("div",{className:"h-2.5 bg-gray-300 rounded-full gray:bg-gray-700 w-12"})]},t)),(0,a.jsx)("span",{className:"sr-only",children:"Loading..."})]})}},80923:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var a=r(27573),n=r(7653),s=r(86527),l=r(18580);let i=s.fC,o=s.xz,d=n.forwardRef((e,t)=>{let{className:r,align:n="center",sideOffset:i=4,...o}=e;return(0,a.jsx)(s.VY,{ref:t,align:n,sideOffset:i,className:(0,l.cn)("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",r),...o})});d.displayName=s.VY.displayName;var c=e=>{let{label:t,popoverheader:r,popovercontent:n}=e;return(0,a.jsxs)(i,{children:[(0,a.jsx)(o,{children:(0,a.jsx)("label",{className:"text-sm font-medium leading-6 text-gray-900 inline-flex items-center",children:(0,a.jsxs)("p",{children:[t," ",(0,a.jsx)("button",{type:"button",className:"align-middle mb-1",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20","stroke-width":"1.5",stroke:"currentColor",className:"w-4 h-4 hover:text-gray-500 rounded-sm align-middle",children:(0,a.jsx)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.375 9.375l.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M17.5 10a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0Zm-7.5-3.125h.008v.008H10V6.875Z"})})})]})})}),(0,a.jsxs)(d,{className:"text-sm text-gray-500 transition-opacity duration-300 bg-white border border-gray-200 rounded-lg shadow-sm overflow-visible",children:[r&&(0,a.jsx)("div",{className:"px-3 py-2 bg-gray-100 border-b border-gray-200 rounded-lg dark:border-gray-600 dark:bg-gray-700 overflow-visible",children:(0,a.jsx)("h3",{className:"font-semibold text-gray-900 dark:text-white overflow-visible",children:r})}),(0,a.jsx)("div",{className:"px-3 py-2",children:n})]})]})}},88146:function(e,t,r){"use strict";r.d(t,{default:function(){return n.a}});var a=r(16340),n=r.n(a)},21091:function(e,t,r){"use strict";var a=r(7653);let n=a.forwardRef(function(e,t){let{title:r,titleId:n,...s}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":n},s),r?a.createElement("title",{id:n},r):null,a.createElement("path",{fillRule:"evenodd",d:"M5.5 17a4.5 4.5 0 0 1-1.44-8.765 4.5 4.5 0 0 1 8.302-3.046 3.5 3.5 0 0 1 4.504 4.272A4 4 0 0 1 15 17H5.5Zm3.75-2.75a.75.75 0 0 0 1.5 0V9.66l1.95 2.1a.75.75 0 1 0 1.1-1.02l-3.25-3.5a.75.75 0 0 0-1.1 0l-3.25 3.5a.75.75 0 1 0 1.1 1.02l1.95-2.1v4.59Z",clipRule:"evenodd"}))});t.Z=n}},function(e){e.O(0,[5458,7441,3296,8320,8374,3908,7653,7050,6340,3696,935,2895,1293,1528,1744],function(){return e(e.s=2167)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/app/webui/application/page-8ae0e3c3987130a5.js b/superduper/rest/out/_next/static/chunks/app/webui/application/page-77f65a9246965933.js similarity index 88% rename from superduper/rest/out/_next/static/chunks/app/webui/application/page-8ae0e3c3987130a5.js rename to superduper/rest/out/_next/static/chunks/app/webui/application/page-77f65a9246965933.js index aacdd2ed8..b8e7d93d0 100644 --- a/superduper/rest/out/_next/static/chunks/app/webui/application/page-8ae0e3c3987130a5.js +++ b/superduper/rest/out/_next/static/chunks/app/webui/application/page-77f65a9246965933.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1022],{75353:function(e,n,s){Promise.resolve().then(s.bind(s,85892))},85892:function(e,n,s){"use strict";s.r(n);var i=s(27573),a=s(21959),c=s(70007),l=s(88280),x=s(4867);n.default=(0,x.N)(function(){return(0,i.jsx)(l.Z,{children:(0,i.jsx)(c.Z,{activeNavItem:"/webui/application",children:(0,i.jsx)("main",{className:"py-10",children:(0,i.jsx)("div",{className:"px-4 sm:px-6 lg:px-8",children:(0,i.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,i.jsx)("div",{className:"mx-auto max-w-7xl",children:(0,i.jsx)(a.Z,{application:!0})})})})})})})})}},function(e){e.O(0,[5458,7441,3296,8320,8374,3908,7653,7050,4112,790,8307,9078,3696,935,1826,8238,8499,1959,1293,1528,1744],function(){return e(e.s=75353)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1022],{90824:function(e,n,s){Promise.resolve().then(s.bind(s,85892))},85892:function(e,n,s){"use strict";s.r(n);var i=s(27573),a=s(21959),c=s(70007),l=s(88280),x=s(4867);n.default=(0,x.N)(function(){return(0,i.jsx)(l.Z,{children:(0,i.jsx)(c.Z,{activeNavItem:"/webui/application",children:(0,i.jsx)("main",{className:"py-10",children:(0,i.jsx)("div",{className:"px-4 sm:px-6 lg:px-8",children:(0,i.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,i.jsx)("div",{className:"mx-auto max-w-7xl",children:(0,i.jsx)(a.Z,{application:!0})})})})})})})})}},function(e){e.O(0,[5458,7441,3296,8320,8374,3908,7653,7050,4112,790,8307,9078,3696,935,1826,8238,8499,1959,1293,1528,1744],function(){return e(e.s=90824)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/app/webui/deployment/page-4be8017f426844f3.js b/superduper/rest/out/_next/static/chunks/app/webui/deployment/page-4be8017f426844f3.js new file mode 100644 index 000000000..29da134b8 --- /dev/null +++ b/superduper/rest/out/_next/static/chunks/app/webui/deployment/page-4be8017f426844f3.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4256],{4418:function(e,t,a){Promise.resolve().then(a.bind(a,25361))},25361:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return g}});var n=a(27573),r=a(70007),s=a(70790),i=a(13908),o=a(5772),l=a(412),d=a(45246),u=a(43210),c=a(48144),f=a(7109),m=a(74859);let{getReasonPhrase:p}=a(70194);function x(e){let{simple:t=!1}=e,a=(0,l.v9)(e=>e.environment.environmentLoadedValues),r=(0,l.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues}),x=async e=>{try{return(await i.Z.get(e,{headers:{Accept:"application/json",Authorization:(0,f.Z)(r),superduper_reverse_proxy:m.env.NEXT_PUBLIC_API||a.NEXT_PUBLIC_API}})).data}catch(e){var t,n;throw{status:(null===(t=e.response)||void 0===t?void 0:t.status)||500,message:(null===(n=e.response)||void 0===n?void 0:n.data)||"An unexpected error occurred"}}},{data:v,error:g}=(0,s.ZP)("".concat("".concat(m.env.NEXT_PUBLIC_API,"/health")),x,{refreshInterval:0,revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});if(!v&&!g)return(0,n.jsx)(o.Z,{times:6});if(g){console.error("Error Details:",g);let e=g.status||404,t=p(e)||"Service Unavailable";return(0,n.jsx)(d.Z,{header:"API SERVER",shortMessage:t,status:e,description:"Status: ".concat(e,", Message: ").concat("string"==typeof g.message?g.message:JSON.stringify(healthError.message))})}return(0,n.jsx)(n.Fragment,{children:t?(0,n.jsx)(c.Z,{}):(0,n.jsx)(u.Z,{})})}var v=a(88280),g=(0,a(4867).N)(function(){return(0,n.jsx)(v.Z,{children:(0,n.jsx)(r.Z,{activeNavItem:"/webui",children:(0,n.jsx)("main",{className:"py-10",children:(0,n.jsx)("div",{className:"px-4 sm:px-6 lg:px-8",children:(0,n.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,n.jsx)("div",{className:"mx-auto max-w-7xl",children:(0,n.jsx)(x,{})})})})})})})})},95042:function(e,t,a){"use strict";a.d(t,{J2:function(){return o},xo:function(){return l},yk:function(){return d}});var n=a(27573),r=a(7653),s=a(61284),i=a(18580);let o=s.fC,l=s.xz;s.ee;let d=r.forwardRef((e,t)=>{let{className:a,align:r="center",sideOffset:o=4,...l}=e;return(0,n.jsx)(s.h_,{children:(0,n.jsx)(s.VY,{ref:t,align:r,sideOffset:o,className:(0,i.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",a),...l})})});d.displayName=s.VY.displayName},70694:function(e,t,a){"use strict";a.d(t,{Ei:function(){return N},FF:function(){return g},Tu:function(){return v},aM:function(){return u},bC:function(){return h},sw:function(){return c},ue:function(){return x},yo:function(){return d}});var n=a(27573),r=a(7653),s=a(67905),i=a(85145),o=a(10269),l=a(18580);let d=s.fC,u=s.xz,c=s.x8,f=s.h_,m=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,n.jsx)(s.aV,{className:(0,l.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...r,ref:t})});m.displayName=s.aV.displayName;let p=(0,i.j)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),x=r.forwardRef((e,t)=>{let{side:a="right",className:r,children:i,...d}=e;return(0,n.jsxs)(f,{children:[(0,n.jsx)(m,{}),(0,n.jsxs)(s.VY,{ref:t,className:(0,l.cn)(p({side:a}),r),...d,children:[i,(0,n.jsxs)(s.x8,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,n.jsx)(o.Z,{className:"h-4 w-4"}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=s.VY.displayName;let v=e=>{let{className:t,...a}=e;return(0,n.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...a})};v.displayName="SheetHeader";let g=e=>{let{className:t,...a}=e;return(0,n.jsx)("div",{className:(0,l.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a})};g.displayName="SheetFooter";let h=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,n.jsx)(s.Dx,{ref:t,className:(0,l.cn)("text-lg font-semibold text-foreground",a),...r})});h.displayName=s.Dx.displayName;let N=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,n.jsx)(s.dk,{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",a),...r})});N.displayName=s.dk.displayName},64303:function(e,t,a){"use strict";a.d(t,{SP:function(){return d},dr:function(){return l},mQ:function(){return o},nU:function(){return u}});var n=a(27573),r=a(7653),s=a(84132),i=a(18580);let o=s.fC,l=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,n.jsx)(s.aV,{ref:t,className:(0,i.cn)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",a),...r})});l.displayName=s.aV.displayName;let d=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,n.jsx)(s.xz,{ref:t,className:(0,i.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",a),...r})});d.displayName=s.xz.displayName;let u=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,n.jsx)(s.VY,{ref:t,className:(0,i.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...r})});u.displayName=s.VY.displayName},4867:function(e,t,a){"use strict";a.d(t,{N:function(){return n}}),a(27573),a(81695),a(7653),a(412),a(88280),a(39e3),a(74531),a(74859);let n=e=>(e.displayName||e.name,e)},98348:function(e,t,a){"use strict";a.d(t,{O:function(){return l}});var n=a(27573),r=a(7653),s=a(2177),i=a(18580);let o=r.forwardRef((e,t)=>{let{className:a,value:r,...o}=e;return(0,n.jsx)(s.fC,{ref:t,className:(0,i.cn)("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",a),...o,children:(0,n.jsx)(s.z$,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:"translateX(-".concat(100-(r||0),"%)")}})})});function l(){let[e,t]=(0,r.useState)(0);return(0,r.useEffect)(()=>{let a=setInterval(()=>{e<95&&t(e=>e+1)},1e3);return()=>clearInterval(a)},[e,95]),(0,n.jsx)(o,{value:e,max:95,className:"w-[100%]"})}o.displayName=s.fC.displayName},88146:function(e,t,a){"use strict";a.d(t,{default:function(){return r.a}});var n=a(16340),r=a.n(n)},1403:function(e,t,a){"use strict";a.d(t,{D:function(){return r}});var n=a(7653);function r(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},3336:function(e,t,a){"use strict";a.d(t,{T:function(){return i},f:function(){return o}});var n=a(7653),r=a(78378),s=a(27573),i=n.forwardRef((e,t)=>(0,s.jsx)(r.WV.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));i.displayName="VisuallyHidden";var o=i}},function(e){e.O(0,[5458,3296,8320,8374,3908,7653,6340,4112,790,8307,3098,7635,3696,935,1826,5865,1293,1528,1744],function(){return e(e.s=4418)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/app/webui/deployment/page-8ab4e629cfbb5c0d.js b/superduper/rest/out/_next/static/chunks/app/webui/deployment/page-8ab4e629cfbb5c0d.js deleted file mode 100644 index c7995b031..000000000 --- a/superduper/rest/out/_next/static/chunks/app/webui/deployment/page-8ab4e629cfbb5c0d.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4256],{43386:function(e,t,a){Promise.resolve().then(a.bind(a,25361))},25361:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return g}});var n=a(27573),r=a(70007),s=a(70790),i=a(13908),o=a(5772),l=a(412),d=a(45246),u=a(43210),c=a(15055),f=a(7109),m=a(74859);let{getReasonPhrase:p}=a(70194);function x(e){let{simple:t=!1}=e,a=(0,l.v9)(e=>e.environment.environmentLoadedValues),r=(0,l.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues}),x=async e=>{try{return(await i.Z.get(e,{headers:{Accept:"application/json",Authorization:(0,f.Z)(r),superduper_reverse_proxy:m.env.NEXT_PUBLIC_API||a.NEXT_PUBLIC_API}})).data}catch(e){var t,n;throw{status:(null===(t=e.response)||void 0===t?void 0:t.status)||500,message:(null===(n=e.response)||void 0===n?void 0:n.data)||"An unexpected error occurred"}}},{data:v,error:g}=(0,s.ZP)("".concat("".concat(m.env.NEXT_PUBLIC_API,"/health")),x,{refreshInterval:0,revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});if(!v&&!g)return(0,n.jsx)(o.Z,{times:6});if(g){console.error("Error Details:",g);let e=g.status||404,t=p(e)||"Service Unavailable";return(0,n.jsx)(d.Z,{header:"API SERVER",shortMessage:t,status:e,description:"Status: ".concat(e,", Message: ").concat("string"==typeof g.message?g.message:JSON.stringify(healthError.message))})}return(0,n.jsx)(n.Fragment,{children:t?(0,n.jsx)(c.Z,{}):(0,n.jsx)(u.Z,{})})}var v=a(88280),g=(0,a(4867).N)(function(){return(0,n.jsx)(v.Z,{children:(0,n.jsx)(r.Z,{activeNavItem:"/webui",children:(0,n.jsx)("main",{className:"py-10",children:(0,n.jsx)("div",{className:"px-4 sm:px-6 lg:px-8",children:(0,n.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,n.jsx)("div",{className:"mx-auto max-w-7xl",children:(0,n.jsx)(x,{})})})})})})})})},95042:function(e,t,a){"use strict";a.d(t,{J2:function(){return o},xo:function(){return l},yk:function(){return d}});var n=a(27573),r=a(7653),s=a(61284),i=a(18580);let o=s.fC,l=s.xz;s.ee;let d=r.forwardRef((e,t)=>{let{className:a,align:r="center",sideOffset:o=4,...l}=e;return(0,n.jsx)(s.h_,{children:(0,n.jsx)(s.VY,{ref:t,align:r,sideOffset:o,className:(0,i.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",a),...l})})});d.displayName=s.VY.displayName},70694:function(e,t,a){"use strict";a.d(t,{Ei:function(){return N},FF:function(){return g},Tu:function(){return v},aM:function(){return u},bC:function(){return h},sw:function(){return c},ue:function(){return x},yo:function(){return d}});var n=a(27573),r=a(7653),s=a(67905),i=a(85145),o=a(10269),l=a(18580);let d=s.fC,u=s.xz,c=s.x8,f=s.h_,m=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,n.jsx)(s.aV,{className:(0,l.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...r,ref:t})});m.displayName=s.aV.displayName;let p=(0,i.j)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),x=r.forwardRef((e,t)=>{let{side:a="right",className:r,children:i,...d}=e;return(0,n.jsxs)(f,{children:[(0,n.jsx)(m,{}),(0,n.jsxs)(s.VY,{ref:t,className:(0,l.cn)(p({side:a}),r),...d,children:[i,(0,n.jsxs)(s.x8,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,n.jsx)(o.Z,{className:"h-4 w-4"}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=s.VY.displayName;let v=e=>{let{className:t,...a}=e;return(0,n.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...a})};v.displayName="SheetHeader";let g=e=>{let{className:t,...a}=e;return(0,n.jsx)("div",{className:(0,l.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a})};g.displayName="SheetFooter";let h=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,n.jsx)(s.Dx,{ref:t,className:(0,l.cn)("text-lg font-semibold text-foreground",a),...r})});h.displayName=s.Dx.displayName;let N=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,n.jsx)(s.dk,{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",a),...r})});N.displayName=s.dk.displayName},64303:function(e,t,a){"use strict";a.d(t,{SP:function(){return d},dr:function(){return l},mQ:function(){return o},nU:function(){return u}});var n=a(27573),r=a(7653),s=a(84132),i=a(18580);let o=s.fC,l=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,n.jsx)(s.aV,{ref:t,className:(0,i.cn)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",a),...r})});l.displayName=s.aV.displayName;let d=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,n.jsx)(s.xz,{ref:t,className:(0,i.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",a),...r})});d.displayName=s.xz.displayName;let u=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,n.jsx)(s.VY,{ref:t,className:(0,i.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...r})});u.displayName=s.VY.displayName},4867:function(e,t,a){"use strict";a.d(t,{N:function(){return n}}),a(27573),a(81695),a(7653),a(412),a(88280),a(39e3),a(74531),a(74859);let n=e=>(e.displayName||e.name,e)},98348:function(e,t,a){"use strict";a.d(t,{O:function(){return l}});var n=a(27573),r=a(7653),s=a(2177),i=a(18580);let o=r.forwardRef((e,t)=>{let{className:a,value:r,...o}=e;return(0,n.jsx)(s.fC,{ref:t,className:(0,i.cn)("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",a),...o,children:(0,n.jsx)(s.z$,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:"translateX(-".concat(100-(r||0),"%)")}})})});function l(){let[e,t]=(0,r.useState)(0);return(0,r.useEffect)(()=>{let a=setInterval(()=>{e<95&&t(e=>e+1)},1e3);return()=>clearInterval(a)},[e,95]),(0,n.jsx)(o,{value:e,max:95,className:"w-[100%]"})}o.displayName=s.fC.displayName},88146:function(e,t,a){"use strict";a.d(t,{default:function(){return r.a}});var n=a(16340),r=a.n(n)},1403:function(e,t,a){"use strict";a.d(t,{D:function(){return r}});var n=a(7653);function r(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},3336:function(e,t,a){"use strict";a.d(t,{T:function(){return i},f:function(){return o}});var n=a(7653),r=a(78378),s=a(27573),i=n.forwardRef((e,t)=>(0,s.jsx)(r.WV.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));i.displayName="VisuallyHidden";var o=i}},function(e){e.O(0,[5458,3296,8320,8374,3908,7653,6340,4112,790,8307,3098,7635,3696,935,1826,4426,1293,1528,1744],function(){return e(e.s=43386)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/app/webui/deployment/status/page-78c0b05c9fc98010.js b/superduper/rest/out/_next/static/chunks/app/webui/deployment/status/page-0d927a137ba878da.js similarity index 98% rename from superduper/rest/out/_next/static/chunks/app/webui/deployment/status/page-78c0b05c9fc98010.js rename to superduper/rest/out/_next/static/chunks/app/webui/deployment/status/page-0d927a137ba878da.js index 5d2c34baf..4e7afc76f 100644 --- a/superduper/rest/out/_next/static/chunks/app/webui/deployment/status/page-78c0b05c9fc98010.js +++ b/superduper/rest/out/_next/static/chunks/app/webui/deployment/status/page-0d927a137ba878da.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6511],{67642:function(e,t,n){Promise.resolve().then(n.bind(n,24516))},24516:function(e,t,n){"use strict";n.r(t);var r=n(27573),s=n(70007),a=n(58991),l=n(88280),i=n(4867);t.default=(0,i.N)(function(){return(0,r.jsx)(l.Z,{children:(0,r.jsx)(s.Z,{activeNavItem:"/webui",children:(0,r.jsx)("main",{className:"py-10",children:(0,r.jsx)("div",{className:"px-4 sm:px-6 lg:px-8",children:(0,r.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,r.jsx)("div",{className:"mx-auto max-w-7xl",children:(0,r.jsx)(a.Z,{})})})})})})})})},86288:function(e,t,n){"use strict";n.d(t,{Ol:function(){return i},SZ:function(){return o},Zb:function(){return l},aY:function(){return d},eW:function(){return u},ll:function(){return c}});var r=n(27573),s=n(7653),a=n(18580);let l=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,a.cn)("rounded-xl border bg-card text-card-foreground shadow",n),...s})});l.displayName="Card";let i=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,a.cn)("flex flex-col space-y-1.5 p-6",n),...s})});i.displayName="CardHeader";let c=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,r.jsx)("h3",{ref:t,className:(0,a.cn)("font-semibold leading-none tracking-tight",n),...s})});c.displayName="CardTitle";let o=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,r.jsx)("p",{ref:t,className:(0,a.cn)("text-sm text-muted-foreground",n),...s})});o.displayName="CardDescription";let d=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,a.cn)("p-6 pt-0",n),...s})});d.displayName="CardContent";let u=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,a.cn)("flex items-center p-6 pt-0",n),...s})});u.displayName="CardFooter"},7109:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(74859);function s(e){if(r.env.NEXT_PUBLIC_AUTO_LOGIN_EXTERNAL_SERVICES){let[e,t]=r.env.NEXT_PUBLIC_AUTO_LOGIN_EXTERNAL_SERVICES.split(","),n=e.includes("@")?e.split("@")[0]:e;return"Basic ".concat(btoa("".concat(n,":").concat(t)))}return"jwt"===r.env.AUTH_MECHANISM?"Bearer ".concat(e.token):"Basic ".concat(btoa("".concat(e.username,":").concat(e.password)))}},4867:function(e,t,n){"use strict";n.d(t,{N:function(){return r}}),n(27573),n(81695),n(7653),n(412),n(88280),n(39e3),n(74531),n(74859);let r=e=>(e.displayName||e.name,e)},58991:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(27573),s=n(7653),a=n(12198),l=n(34527),i=n(82440),c=n(66465),o=n(53896),d=n(86288),u=n(13908),m=n(81695),f=n(7109),x=n(412),p=n(70790),y=n(74859);let h=[{key:"initializing",icon:a.Z,label:"Initializing",duration:3e3},{key:"building",icon:l.Z,label:"Building",duration:3e3},{key:"deploying",icon:i.Z,label:"Deploying",duration:3e3},{key:"success",icon:c.Z,label:"Success",duration:3e3}];function g(){let[e,t]=(0,s.useState)("initializing"),[n,a]=(0,s.useState)(0),l=(0,x.v9)(e=>e.environment.environmentLoadedValues),i=(0,x.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues}),c=(0,m.useRouter)(),g=(0,x.v9)(e=>e.deploymentName.deploymentNameLoadedValues.name),v=async e=>(await u.Z.get(e,{headers:{Accept:"application/json",Authorization:(0,f.Z)(i),superduper_reverse_proxy:y.env.NEXT_PUBLIC_API||l.NEXT_PUBLIC_API}})).data,{data:N,error:k}=(0,p.ZP)("".concat("".concat(y.env.NEXT_PUBLIC_API,"/deployments/").concat(g)),"".concat("".concat(y.env.NEXT_PUBLIC_API,"/deployments/").concat(g,"/")),v,{refreshInterval:0,revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});(0,s.useEffect)(()=>{N&&c.push("/webui?deployment=done&query=1m",void 0,{shallow:!0})},[N]),(0,s.useEffect)(()=>{j()},[]);let j=()=>{t("initializing"),a(0)};return(0,s.useEffect)(()=>{if("success"===e)return;let n=h.find(t=>t.key===e),r=h.findIndex(t=>t.key===e);a(0);let s=setInterval(()=>{a(e=>{let t=e+100/(n.duration/100);return t>=100?100:t})},100),l=setTimeout(()=>{r{clearInterval(s),clearTimeout(l)}},[e]),(0,r.jsxs)("div",{className:"flex items-center justify-center min-h-screen w-full bg-background",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-primary/10 to-transparent h-96 pointer-events-none"}),(0,r.jsxs)(d.Zb,{className:"w-full max-w-6xl shadow-lg relative -mt-20",children:[(0,r.jsxs)(d.Ol,{className:"text-center space-y-2",children:[(0,r.jsx)(d.ll,{className:"text-4xl font-extrabold tracking-tight",children:"Deployment Status"}),(0,r.jsx)("p",{className:"text-xl text-muted-foreground",children:"Tracking progress of your deployment"})]}),(0,r.jsx)(d.aY,{children:(0,r.jsxs)("div",{className:"flex flex-col md:flex-row gap-8",children:[(0,r.jsxs)("div",{className:"w-full md:w-1/3 md:border-r md:pr-8",children:[(0,r.jsx)("h2",{className:"text-xl font-semibold mb-6",children:"Deployment Stages"}),(0,r.jsx)("ul",{className:"space-y-6",children:h.map(t=>{let n=t.icon,s=t.key===e,a=h.findIndex(t=>t.key===e)>h.findIndex(e=>e.key===t.key);return(0,r.jsxs)("li",{className:"flex items-center space-x-3 ".concat(s?"text-primary font-medium":a?"text-green-600":"text-muted-foreground"),children:[(0,r.jsx)(n,{className:"w-5 h-5"}),(0,r.jsx)("span",{children:t.label}),a&&(0,r.jsx)(o.Z,{className:"w-4 h-4 text-green-600"})]},t.key)})})]}),(0,r.jsxs)("div",{className:"w-full md:w-2/3 md:pl-8 flex flex-col items-center",children:[(0,r.jsx)("h2",{className:"text-xl font-semibold mb-6",children:"Progress"}),(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center mb-8",children:["success"===e?(0,r.jsx)(o.Z,{className:"text-green-500 w-24 h-24 mb-4"}):(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)("svg",{className:"w-24 h-24",viewBox:"0 0 100 100",children:[(0,r.jsx)("circle",{className:"text-gray-200",strokeWidth:"8",stroke:"currentColor",fill:"transparent",r:"42",cx:"50",cy:"50"}),(0,r.jsx)("circle",{className:"text-primary",strokeWidth:"8",strokeDasharray:264,strokeDashoffset:264-n/100*264,strokeLinecap:"round",stroke:"url(#gradient)",fill:"transparent",r:"42",cx:"50",cy:"50"}),(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"gradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0,r.jsx)("stop",{offset:"0%",stopColor:"hsl(var(--primary))"}),(0,r.jsx)("stop",{offset:"100%",stopColor:"hsl(var(--primary))"})]})})]}),(0,r.jsxs)("span",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-xl font-semibold",children:[Math.round(n),"%"]})]}),(0,r.jsx)("p",{className:"text-center text-lg font-medium mt-4",children:(()=>{switch(e){case"initializing":return"Deployment ongoing, initializing...";case"building":return"Deployment ongoing, building files...";case"deploying":return"Deployment ongoing, finalizing production setup...";case"success":return"Deployment ongoing, almost live!";default:return"Deployment ongoing, wrapping up..."}})()})]})]})]})})]})]})}},84313:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(7653),s={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"};let a=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),l=(e,t)=>{let n=(0,r.forwardRef)((n,l)=>{let{color:i="currentColor",size:c=24,strokeWidth:o=2,absoluteStrokeWidth:d,className:u="",children:m,...f}=n;return(0,r.createElement)("svg",{ref:l,...s,width:c,height:c,stroke:i,strokeWidth:d?24*Number(o)/Number(c):o,className:["lucide","lucide-".concat(a(e)),u].join(" "),...f},[...t.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(m)?m:[m]])});return n.displayName="".concat(e),n}},53896:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84313).Z)("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},34527:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84313).Z)("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]])},82440:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84313).Z)("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]])},66465:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84313).Z)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},12198:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84313).Z)("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])}},function(e){e.O(0,[3296,8320,8374,3908,790,3696,935,1293,1528,1744],function(){return e(e.s=67642)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6511],{87170:function(e,t,n){Promise.resolve().then(n.bind(n,24516))},24516:function(e,t,n){"use strict";n.r(t);var r=n(27573),s=n(70007),a=n(58991),l=n(88280),i=n(4867);t.default=(0,i.N)(function(){return(0,r.jsx)(l.Z,{children:(0,r.jsx)(s.Z,{activeNavItem:"/webui",children:(0,r.jsx)("main",{className:"py-10",children:(0,r.jsx)("div",{className:"px-4 sm:px-6 lg:px-8",children:(0,r.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,r.jsx)("div",{className:"mx-auto max-w-7xl",children:(0,r.jsx)(a.Z,{})})})})})})})})},86288:function(e,t,n){"use strict";n.d(t,{Ol:function(){return i},SZ:function(){return o},Zb:function(){return l},aY:function(){return d},eW:function(){return u},ll:function(){return c}});var r=n(27573),s=n(7653),a=n(18580);let l=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,a.cn)("rounded-xl border bg-card text-card-foreground shadow",n),...s})});l.displayName="Card";let i=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,a.cn)("flex flex-col space-y-1.5 p-6",n),...s})});i.displayName="CardHeader";let c=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,r.jsx)("h3",{ref:t,className:(0,a.cn)("font-semibold leading-none tracking-tight",n),...s})});c.displayName="CardTitle";let o=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,r.jsx)("p",{ref:t,className:(0,a.cn)("text-sm text-muted-foreground",n),...s})});o.displayName="CardDescription";let d=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,a.cn)("p-6 pt-0",n),...s})});d.displayName="CardContent";let u=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,a.cn)("flex items-center p-6 pt-0",n),...s})});u.displayName="CardFooter"},7109:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(74859);function s(e){if(r.env.NEXT_PUBLIC_AUTO_LOGIN_EXTERNAL_SERVICES){let[e,t]=r.env.NEXT_PUBLIC_AUTO_LOGIN_EXTERNAL_SERVICES.split(","),n=e.includes("@")?e.split("@")[0]:e;return"Basic ".concat(btoa("".concat(n,":").concat(t)))}return"jwt"===r.env.AUTH_MECHANISM?"Bearer ".concat(e.token):"Basic ".concat(btoa("".concat(e.username,":").concat(e.password)))}},4867:function(e,t,n){"use strict";n.d(t,{N:function(){return r}}),n(27573),n(81695),n(7653),n(412),n(88280),n(39e3),n(74531),n(74859);let r=e=>(e.displayName||e.name,e)},58991:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(27573),s=n(7653),a=n(12198),l=n(34527),i=n(82440),c=n(66465),o=n(53896),d=n(86288),u=n(13908),m=n(81695),f=n(7109),x=n(412),p=n(70790),y=n(74859);let h=[{key:"initializing",icon:a.Z,label:"Initializing",duration:3e3},{key:"building",icon:l.Z,label:"Building",duration:3e3},{key:"deploying",icon:i.Z,label:"Deploying",duration:3e3},{key:"success",icon:c.Z,label:"Success",duration:3e3}];function g(){let[e,t]=(0,s.useState)("initializing"),[n,a]=(0,s.useState)(0),l=(0,x.v9)(e=>e.environment.environmentLoadedValues),i=(0,x.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues}),c=(0,m.useRouter)(),g=(0,x.v9)(e=>e.deploymentName.deploymentNameLoadedValues.name),v=async e=>(await u.Z.get(e,{headers:{Accept:"application/json",Authorization:(0,f.Z)(i),superduper_reverse_proxy:y.env.NEXT_PUBLIC_API||l.NEXT_PUBLIC_API}})).data,{data:N,error:k}=(0,p.ZP)("".concat("".concat(y.env.NEXT_PUBLIC_API,"/deployments/").concat(g)),"".concat("".concat(y.env.NEXT_PUBLIC_API,"/deployments/").concat(g,"/")),v,{refreshInterval:0,revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});(0,s.useEffect)(()=>{N&&c.push("/webui?deployment=done&query=1m",void 0,{shallow:!0})},[N]),(0,s.useEffect)(()=>{j()},[]);let j=()=>{t("initializing"),a(0)};return(0,s.useEffect)(()=>{if("success"===e)return;let n=h.find(t=>t.key===e),r=h.findIndex(t=>t.key===e);a(0);let s=setInterval(()=>{a(e=>{let t=e+100/(n.duration/100);return t>=100?100:t})},100),l=setTimeout(()=>{r{clearInterval(s),clearTimeout(l)}},[e]),(0,r.jsxs)("div",{className:"flex items-center justify-center min-h-screen w-full bg-background",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-primary/10 to-transparent h-96 pointer-events-none"}),(0,r.jsxs)(d.Zb,{className:"w-full max-w-6xl shadow-lg relative -mt-20",children:[(0,r.jsxs)(d.Ol,{className:"text-center space-y-2",children:[(0,r.jsx)(d.ll,{className:"text-4xl font-extrabold tracking-tight",children:"Deployment Status"}),(0,r.jsx)("p",{className:"text-xl text-muted-foreground",children:"Tracking progress of your deployment"})]}),(0,r.jsx)(d.aY,{children:(0,r.jsxs)("div",{className:"flex flex-col md:flex-row gap-8",children:[(0,r.jsxs)("div",{className:"w-full md:w-1/3 md:border-r md:pr-8",children:[(0,r.jsx)("h2",{className:"text-xl font-semibold mb-6",children:"Deployment Stages"}),(0,r.jsx)("ul",{className:"space-y-6",children:h.map(t=>{let n=t.icon,s=t.key===e,a=h.findIndex(t=>t.key===e)>h.findIndex(e=>e.key===t.key);return(0,r.jsxs)("li",{className:"flex items-center space-x-3 ".concat(s?"text-primary font-medium":a?"text-green-600":"text-muted-foreground"),children:[(0,r.jsx)(n,{className:"w-5 h-5"}),(0,r.jsx)("span",{children:t.label}),a&&(0,r.jsx)(o.Z,{className:"w-4 h-4 text-green-600"})]},t.key)})})]}),(0,r.jsxs)("div",{className:"w-full md:w-2/3 md:pl-8 flex flex-col items-center",children:[(0,r.jsx)("h2",{className:"text-xl font-semibold mb-6",children:"Progress"}),(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center mb-8",children:["success"===e?(0,r.jsx)(o.Z,{className:"text-green-500 w-24 h-24 mb-4"}):(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)("svg",{className:"w-24 h-24",viewBox:"0 0 100 100",children:[(0,r.jsx)("circle",{className:"text-gray-200",strokeWidth:"8",stroke:"currentColor",fill:"transparent",r:"42",cx:"50",cy:"50"}),(0,r.jsx)("circle",{className:"text-primary",strokeWidth:"8",strokeDasharray:264,strokeDashoffset:264-n/100*264,strokeLinecap:"round",stroke:"url(#gradient)",fill:"transparent",r:"42",cx:"50",cy:"50"}),(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"gradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0,r.jsx)("stop",{offset:"0%",stopColor:"hsl(var(--primary))"}),(0,r.jsx)("stop",{offset:"100%",stopColor:"hsl(var(--primary))"})]})})]}),(0,r.jsxs)("span",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-xl font-semibold",children:[Math.round(n),"%"]})]}),(0,r.jsx)("p",{className:"text-center text-lg font-medium mt-4",children:(()=>{switch(e){case"initializing":return"Deployment ongoing, initializing...";case"building":return"Deployment ongoing, building files...";case"deploying":return"Deployment ongoing, finalizing production setup...";case"success":return"Deployment ongoing, almost live!";default:return"Deployment ongoing, wrapping up..."}})()})]})]})]})})]})]})}},84313:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(7653),s={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"};let a=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),l=(e,t)=>{let n=(0,r.forwardRef)((n,l)=>{let{color:i="currentColor",size:c=24,strokeWidth:o=2,absoluteStrokeWidth:d,className:u="",children:m,...f}=n;return(0,r.createElement)("svg",{ref:l,...s,width:c,height:c,stroke:i,strokeWidth:d?24*Number(o)/Number(c):o,className:["lucide","lucide-".concat(a(e)),u].join(" "),...f},[...t.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(m)?m:[m]])});return n.displayName="".concat(e),n}},53896:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84313).Z)("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},34527:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84313).Z)("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]])},82440:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84313).Z)("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]])},66465:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84313).Z)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},12198:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84313).Z)("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])}},function(e){e.O(0,[3296,8320,8374,3908,790,3696,935,1293,1528,1744],function(){return e(e.s=87170)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/app/webui/login/page-0af38aef8a1cc509.js b/superduper/rest/out/_next/static/chunks/app/webui/login/page-6be4b05413e52545.js similarity index 97% rename from superduper/rest/out/_next/static/chunks/app/webui/login/page-0af38aef8a1cc509.js rename to superduper/rest/out/_next/static/chunks/app/webui/login/page-6be4b05413e52545.js index 192edd86a..7b6053963 100644 --- a/superduper/rest/out/_next/static/chunks/app/webui/login/page-0af38aef8a1cc509.js +++ b/superduper/rest/out/_next/static/chunks/app/webui/login/page-6be4b05413e52545.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6071],{52178:function(e,r,s){Promise.resolve().then(s.bind(s,32179))},32179:function(e,r,s){"use strict";s.r(r);var n=s(27573),i=s(88280),t=s(41664);r.default=function(){return(0,n.jsx)(i.Z,{children:(0,n.jsx)(t.Z,{})})}},41664:function(e,r,s){"use strict";s.d(r,{Z:function(){return f}});var n=s(27573),i=s(7653),t=s(1930),a=s(97747),l=s(88146),o=s(36531),d=s(93296),c=s(39e3),u=s(412);function f(){let e=(0,u.I0)(),[r,s]=(0,i.useState)(""),[f,g]=(0,i.useState)(""),[p,m]=(0,i.useState)("");async function x(){try{d.ZP.loading("Logging in...",{id:"login-loading"}),console.log("email",r),console.log("password",f);let s=await fetch("/webui_api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:r,password:f})});if(console.log("response",s),401===s.status){m("Invalid email or password"),d.ZP.error("Invalid email or password",{id:"login-error"}),d.ZP.dismiss("login-loading"),e((0,c.v)({token:""}));return}if(200===s.status){let r=await s.json();console.log("response.data",r),e((0,c.v)(r)),console.log("Login successful"),window.location.assign("/webui"),d.ZP.success("Login successful.",{id:"login-success",duration:3e3,style:{backgroundColor:"#10B981",color:"#fff"}}),d.ZP.dismiss("login-loading")}else{let r=await s.text()||"An error occurred while loading!";m(r),e((0,c.v)({token:""})),d.ZP.error(r,{id:"login-error"}),d.ZP.dismiss("login-loading")}}catch(r){console.error("An error occurred:",r),d.ZP.error("An error occurred. Please try again later.",{id:"login-error"}),d.ZP.dismiss("login-loading"),e((0,c.v)({token:""}))}}return(0,n.jsx)("div",{className:"w-full lg:grid lg:min-h-[600px] lg:grid-cols-1 place-items-center",children:(0,n.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,n.jsxs)("div",{className:"mx-auto grid w-[350px] gap-6",children:[(0,n.jsx)("div",{className:"grid gap-2 text-center",children:(0,n.jsx)("div",{className:"flex h-auto shrink-0 items-center pb-4",children:(0,n.jsx)("a",{href:"/webui",children:(0,n.jsx)("img",{className:"h-auto w-auto",src:"/webui_asset/purple-dark.png",alt:"SuperDuperDB Inc."})})})}),(0,n.jsxs)("div",{className:"grid gap-4",children:[(0,n.jsxs)("div",{className:"grid gap-2",children:[(0,n.jsx)(a._,{htmlFor:"email",children:"Username or email"}),(0,n.jsx)(t.I,{id:"email",type:"email",placeholder:"m@example.com",required:!0,value:r,onChange:e=>s(e.target.value)})]}),(0,n.jsxs)("div",{className:"grid gap-2",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(a._,{htmlFor:"password",children:"Password"}),(0,n.jsx)(l.default,{href:"/webui/support",className:"ml-auto inline-block text-sm underline",children:"Forgot your password?"})]}),(0,n.jsx)(t.I,{id:"password",type:"password",required:!0,value:f,onChange:e=>g(e.target.value)})]}),p&&(0,n.jsx)("p",{className:"text-red-500",children:p}),(0,n.jsx)(o.z,{id:"login-button-homepage",className:"w-full",onClick:x,children:"Log in"})]}),(0,n.jsxs)("div",{className:"mt-4 text-center text-sm",children:["Don't have an account?"," ",(0,n.jsx)(l.default,{href:"/webui/support",className:"underline",children:"Contact Enterprise Support"})]})]})})})}},1930:function(e,r,s){"use strict";s.d(r,{I:function(){return a}});var n=s(27573),i=s(7653),t=s(18580);let a=i.forwardRef((e,r)=>{let{className:s,type:i,...a}=e;return(0,n.jsx)("input",{type:i,className:(0,t.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:r,...a})});a.displayName="Input"},97747:function(e,r,s){"use strict";s.d(r,{_:function(){return d}});var n=s(27573),i=s(7653),t=s(1001),a=s(85145),l=s(18580);let o=(0,a.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=i.forwardRef((e,r)=>{let{className:s,...i}=e;return(0,n.jsx)(t.f,{ref:r,className:(0,l.cn)(o(),s),...i})});d.displayName=t.f.displayName},88146:function(e,r,s){"use strict";s.d(r,{default:function(){return i.a}});var n=s(16340),i=s.n(n)},1001:function(e,r,s){"use strict";s.d(r,{f:function(){return l}});var n=s(7653),i=s(78378),t=s(27573),a=n.forwardRef((e,r)=>(0,t.jsx)(i.WV.label,{...e,ref:r,onMouseDown:r=>{var s;r.target.closest("button, input, select, textarea")||(null===(s=e.onMouseDown)||void 0===s||s.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));a.displayName="Label";var l=a}},function(e){e.O(0,[3296,8320,6340,3696,1293,1528,1744],function(){return e(e.s=52178)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6071],{95684:function(e,r,s){Promise.resolve().then(s.bind(s,32179))},32179:function(e,r,s){"use strict";s.r(r);var n=s(27573),i=s(88280),t=s(41664);r.default=function(){return(0,n.jsx)(i.Z,{children:(0,n.jsx)(t.Z,{})})}},41664:function(e,r,s){"use strict";s.d(r,{Z:function(){return f}});var n=s(27573),i=s(7653),t=s(1930),a=s(97747),l=s(88146),o=s(36531),d=s(93296),c=s(39e3),u=s(412);function f(){let e=(0,u.I0)(),[r,s]=(0,i.useState)(""),[f,g]=(0,i.useState)(""),[p,m]=(0,i.useState)("");async function x(){try{d.ZP.loading("Logging in...",{id:"login-loading"}),console.log("email",r),console.log("password",f);let s=await fetch("/webui_api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:r,password:f})});if(console.log("response",s),401===s.status){m("Invalid email or password"),d.ZP.error("Invalid email or password",{id:"login-error"}),d.ZP.dismiss("login-loading"),e((0,c.v)({token:""}));return}if(200===s.status){let r=await s.json();console.log("response.data",r),e((0,c.v)(r)),console.log("Login successful"),window.location.assign("/webui"),d.ZP.success("Login successful.",{id:"login-success",duration:3e3,style:{backgroundColor:"#10B981",color:"#fff"}}),d.ZP.dismiss("login-loading")}else{let r=await s.text()||"An error occurred while loading!";m(r),e((0,c.v)({token:""})),d.ZP.error(r,{id:"login-error"}),d.ZP.dismiss("login-loading")}}catch(r){console.error("An error occurred:",r),d.ZP.error("An error occurred. Please try again later.",{id:"login-error"}),d.ZP.dismiss("login-loading"),e((0,c.v)({token:""}))}}return(0,n.jsx)("div",{className:"w-full lg:grid lg:min-h-[600px] lg:grid-cols-1 place-items-center",children:(0,n.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,n.jsxs)("div",{className:"mx-auto grid w-[350px] gap-6",children:[(0,n.jsx)("div",{className:"grid gap-2 text-center",children:(0,n.jsx)("div",{className:"flex h-auto shrink-0 items-center pb-4",children:(0,n.jsx)("a",{href:"/webui",children:(0,n.jsx)("img",{className:"h-auto w-auto",src:"/webui_asset/purple-dark.png",alt:"SuperDuperDB Inc."})})})}),(0,n.jsxs)("div",{className:"grid gap-4",children:[(0,n.jsxs)("div",{className:"grid gap-2",children:[(0,n.jsx)(a._,{htmlFor:"email",children:"Username or email"}),(0,n.jsx)(t.I,{id:"email",type:"email",placeholder:"m@example.com",required:!0,value:r,onChange:e=>s(e.target.value)})]}),(0,n.jsxs)("div",{className:"grid gap-2",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(a._,{htmlFor:"password",children:"Password"}),(0,n.jsx)(l.default,{href:"/webui/support",className:"ml-auto inline-block text-sm underline",children:"Forgot your password?"})]}),(0,n.jsx)(t.I,{id:"password",type:"password",required:!0,value:f,onChange:e=>g(e.target.value)})]}),p&&(0,n.jsx)("p",{className:"text-red-500",children:p}),(0,n.jsx)(o.z,{id:"login-button-homepage",className:"w-full",onClick:x,children:"Log in"})]}),(0,n.jsxs)("div",{className:"mt-4 text-center text-sm",children:["Don't have an account?"," ",(0,n.jsx)(l.default,{href:"/webui/support",className:"underline",children:"Contact Enterprise Support"})]})]})})})}},1930:function(e,r,s){"use strict";s.d(r,{I:function(){return a}});var n=s(27573),i=s(7653),t=s(18580);let a=i.forwardRef((e,r)=>{let{className:s,type:i,...a}=e;return(0,n.jsx)("input",{type:i,className:(0,t.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:r,...a})});a.displayName="Input"},97747:function(e,r,s){"use strict";s.d(r,{_:function(){return d}});var n=s(27573),i=s(7653),t=s(1001),a=s(85145),l=s(18580);let o=(0,a.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=i.forwardRef((e,r)=>{let{className:s,...i}=e;return(0,n.jsx)(t.f,{ref:r,className:(0,l.cn)(o(),s),...i})});d.displayName=t.f.displayName},88146:function(e,r,s){"use strict";s.d(r,{default:function(){return i.a}});var n=s(16340),i=s.n(n)},1001:function(e,r,s){"use strict";s.d(r,{f:function(){return l}});var n=s(7653),i=s(78378),t=s(27573),a=n.forwardRef((e,r)=>(0,t.jsx)(i.WV.label,{...e,ref:r,onMouseDown:r=>{var s;r.target.closest("button, input, select, textarea")||(null===(s=e.onMouseDown)||void 0===s||s.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));a.displayName="Label";var l=a}},function(e){e.O(0,[3296,8320,6340,3696,1293,1528,1744],function(){return e(e.s=95684)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/app/webui/page-f94ef9074437ca2a.js b/superduper/rest/out/_next/static/chunks/app/webui/page-f94ef9074437ca2a.js deleted file mode 100644 index 6c320eda8..000000000 --- a/superduper/rest/out/_next/static/chunks/app/webui/page-f94ef9074437ca2a.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2945],{5396:function(e,s,n){Promise.resolve().then(n.bind(n,53596))},53596:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return c}});var i,r=n(27573),l=n(88280);n(61259);var a=n(70007),o=(n(7653),n(412),n(39e3),n(74531),n(41664),n(74859),n(87882)),t=n(74859),c=((i=function(){return console.log("\uD83E\uDEE1 API Server is running at: ",t.env.NEXT_PUBLIC_API||"(undefined - please set NEXT_PUBLIC_API in your environment)"),console.log("\uD83E\uDEE1 Reverse proxy is running at: ","(undefined - please set NEXT_PUBLIC_REVERSE_PROXY in your environment)"),console.log("\uD83E\uDEE1 REST API endpoint:","http://localhost:8000"),(0,r.jsx)(l.Z,{children:(0,r.jsx)(a.Z,{activeNavItem:"/webui/",children:(0,r.jsx)("main",{className:"py-0",children:(0,r.jsx)("div",{className:"px-4 sm:px-6 lg:px-8",children:(0,r.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,r.jsx)(o.Z,{})})})})})})}).displayName||i.name,i)},41664:function(e,s,n){"use strict";n.d(s,{Z:function(){return g}});var i=n(27573),r=n(7653),l=n(1930),a=n(97747),o=n(88146),t=n(36531),c=n(93296),d=n(39e3),u=n(412);function g(){let e=(0,u.I0)(),[s,n]=(0,r.useState)(""),[g,m]=(0,r.useState)(""),[p,x]=(0,r.useState)("");async function h(){try{c.ZP.loading("Logging in...",{id:"login-loading"}),console.log("email",s),console.log("password",g);let n=await fetch("/webui_api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:s,password:g})});if(console.log("response",n),401===n.status){x("Invalid email or password"),c.ZP.error("Invalid email or password",{id:"login-error"}),c.ZP.dismiss("login-loading"),e((0,d.v)({token:""}));return}if(200===n.status){let s=await n.json();console.log("response.data",s),e((0,d.v)(s)),console.log("Login successful"),window.location.assign("/webui"),c.ZP.success("Login successful.",{id:"login-success",duration:3e3,style:{backgroundColor:"#10B981",color:"#fff"}}),c.ZP.dismiss("login-loading")}else{let s=await n.text()||"An error occurred while loading!";x(s),e((0,d.v)({token:""})),c.ZP.error(s,{id:"login-error"}),c.ZP.dismiss("login-loading")}}catch(s){console.error("An error occurred:",s),c.ZP.error("An error occurred. Please try again later.",{id:"login-error"}),c.ZP.dismiss("login-loading"),e((0,d.v)({token:""}))}}return(0,i.jsx)("div",{className:"w-full lg:grid lg:min-h-[600px] lg:grid-cols-1 place-items-center",children:(0,i.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,i.jsxs)("div",{className:"mx-auto grid w-[350px] gap-6",children:[(0,i.jsx)("div",{className:"grid gap-2 text-center",children:(0,i.jsx)("div",{className:"flex h-auto shrink-0 items-center pb-4",children:(0,i.jsx)("a",{href:"/webui",children:(0,i.jsx)("img",{className:"h-auto w-auto",src:"/webui_asset/purple-dark.png",alt:"SuperDuperDB Inc."})})})}),(0,i.jsxs)("div",{className:"grid gap-4",children:[(0,i.jsxs)("div",{className:"grid gap-2",children:[(0,i.jsx)(a._,{htmlFor:"email",children:"Username or email"}),(0,i.jsx)(l.I,{id:"email",type:"email",placeholder:"m@example.com",required:!0,value:s,onChange:e=>n(e.target.value)})]}),(0,i.jsxs)("div",{className:"grid gap-2",children:[(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsx)(a._,{htmlFor:"password",children:"Password"}),(0,i.jsx)(o.default,{href:"/webui/support",className:"ml-auto inline-block text-sm underline",children:"Forgot your password?"})]}),(0,i.jsx)(l.I,{id:"password",type:"password",required:!0,value:g,onChange:e=>m(e.target.value)})]}),p&&(0,i.jsx)("p",{className:"text-red-500",children:p}),(0,i.jsx)(t.z,{id:"login-button-homepage",className:"w-full",onClick:h,children:"Log in"})]}),(0,i.jsxs)("div",{className:"mt-4 text-center text-sm",children:["Don't have an account?"," ",(0,i.jsx)(o.default,{href:"/webui/support",className:"underline",children:"Contact Enterprise Support"})]})]})})})}}},function(e){e.O(0,[5458,7441,3296,8320,8374,3908,7653,7050,6340,4112,790,8307,9115,3098,7635,9730,3696,935,1826,8238,4426,6280,1293,1528,1744],function(){return e(e.s=5396)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/app/webui/page-fa1d14a8e3b85cf4.js b/superduper/rest/out/_next/static/chunks/app/webui/page-fa1d14a8e3b85cf4.js new file mode 100644 index 000000000..bfb6c00e5 --- /dev/null +++ b/superduper/rest/out/_next/static/chunks/app/webui/page-fa1d14a8e3b85cf4.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2945],{52819:function(e,s,n){Promise.resolve().then(n.bind(n,53596))},53596:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return c}});var i,r=n(27573),l=n(88280);n(39838);var a=n(70007),o=(n(7653),n(412),n(39e3),n(74531),n(41664),n(74859),n(87882)),t=n(74859),c=((i=function(){return console.log("\uD83E\uDEE1 API Server is running at: ",t.env.NEXT_PUBLIC_API||"(undefined - please set NEXT_PUBLIC_API in your environment)"),console.log("\uD83E\uDEE1 Reverse proxy is running at: ",t.env.NEXT_PUBLIC_REVERSE_PROXY||"(undefined - please set NEXT_PUBLIC_REVERSE_PROXY in your environment)"),console.log("\uD83E\uDEE1 REST API endpoint:","http://localhost:8000"),(0,r.jsx)(l.Z,{children:(0,r.jsx)(a.Z,{activeNavItem:"/webui/",children:(0,r.jsx)("main",{className:"py-0",children:(0,r.jsx)("div",{className:"px-4 sm:px-6 lg:px-8",children:(0,r.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,r.jsx)(o.Z,{})})})})})})}).displayName||i.name,i)},41664:function(e,s,n){"use strict";n.d(s,{Z:function(){return g}});var i=n(27573),r=n(7653),l=n(1930),a=n(97747),o=n(88146),t=n(36531),c=n(93296),d=n(39e3),u=n(412);function g(){let e=(0,u.I0)(),[s,n]=(0,r.useState)(""),[g,m]=(0,r.useState)(""),[p,x]=(0,r.useState)("");async function h(){try{c.ZP.loading("Logging in...",{id:"login-loading"}),console.log("email",s),console.log("password",g);let n=await fetch("/webui_api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:s,password:g})});if(console.log("response",n),401===n.status){x("Invalid email or password"),c.ZP.error("Invalid email or password",{id:"login-error"}),c.ZP.dismiss("login-loading"),e((0,d.v)({token:""}));return}if(200===n.status){let s=await n.json();console.log("response.data",s),e((0,d.v)(s)),console.log("Login successful"),window.location.assign("/webui"),c.ZP.success("Login successful.",{id:"login-success",duration:3e3,style:{backgroundColor:"#10B981",color:"#fff"}}),c.ZP.dismiss("login-loading")}else{let s=await n.text()||"An error occurred while loading!";x(s),e((0,d.v)({token:""})),c.ZP.error(s,{id:"login-error"}),c.ZP.dismiss("login-loading")}}catch(s){console.error("An error occurred:",s),c.ZP.error("An error occurred. Please try again later.",{id:"login-error"}),c.ZP.dismiss("login-loading"),e((0,d.v)({token:""}))}}return(0,i.jsx)("div",{className:"w-full lg:grid lg:min-h-[600px] lg:grid-cols-1 place-items-center",children:(0,i.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,i.jsxs)("div",{className:"mx-auto grid w-[350px] gap-6",children:[(0,i.jsx)("div",{className:"grid gap-2 text-center",children:(0,i.jsx)("div",{className:"flex h-auto shrink-0 items-center pb-4",children:(0,i.jsx)("a",{href:"/webui",children:(0,i.jsx)("img",{className:"h-auto w-auto",src:"/webui_asset/purple-dark.png",alt:"SuperDuperDB Inc."})})})}),(0,i.jsxs)("div",{className:"grid gap-4",children:[(0,i.jsxs)("div",{className:"grid gap-2",children:[(0,i.jsx)(a._,{htmlFor:"email",children:"Username or email"}),(0,i.jsx)(l.I,{id:"email",type:"email",placeholder:"m@example.com",required:!0,value:s,onChange:e=>n(e.target.value)})]}),(0,i.jsxs)("div",{className:"grid gap-2",children:[(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsx)(a._,{htmlFor:"password",children:"Password"}),(0,i.jsx)(o.default,{href:"/webui/support",className:"ml-auto inline-block text-sm underline",children:"Forgot your password?"})]}),(0,i.jsx)(l.I,{id:"password",type:"password",required:!0,value:g,onChange:e=>m(e.target.value)})]}),p&&(0,i.jsx)("p",{className:"text-red-500",children:p}),(0,i.jsx)(t.z,{id:"login-button-homepage",className:"w-full",onClick:h,children:"Log in"})]}),(0,i.jsxs)("div",{className:"mt-4 text-center text-sm",children:["Don't have an account?"," ",(0,i.jsx)(o.default,{href:"/webui/support",className:"underline",children:"Contact Enterprise Support"})]})]})})})}}},function(e){e.O(0,[5458,7441,3296,8320,8374,3908,7653,7050,6340,4112,790,8307,9115,3098,7635,5554,3696,935,1826,8238,5865,5141,1293,1528,1744],function(){return e(e.s=52819)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/app/webui/query/page-0615db45108dc599.js b/superduper/rest/out/_next/static/chunks/app/webui/query/page-0615db45108dc599.js new file mode 100644 index 000000000..9f627f823 --- /dev/null +++ b/superduper/rest/out/_next/static/chunks/app/webui/query/page-0615db45108dc599.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5811],{24660:function(e,t,r){Promise.resolve().then(r.bind(r,12958))},12958:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return $}});var s=r(27573),n=r(88280),a=r(70007),i=r(4867),o=r(70790),l=r(13908),c=r(412),d=r(5772),u=r(45246),h=r(7653),p=r(88146),m=r(22392);r(40020),r(19234),r(83346),r(5083),r(39166);var f=r(93296);function x(e){let{data:t,height:r="300px"}=e,[n,a]=(0,h.useState)(JSON.stringify(t,null," "));return(0,h.useRef)(null),(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(m.default,{className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Stack result JSON here...",mode:"json",theme:"github",name:"blah2",onChange:e=>{try{a(e)}catch(e){f.ZP.error("Error updating...",{id:"stack-update-error"})}},fontSize:13,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:n,setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,useWorker:!1,wrap:!0},height:r,width:"100%"})})}var g=r(63052),j=r(80923),y=r(4482),v=r(24776),b=r(36531),w=r(55236);let N=e=>t=>t({type:w.V,payload:e});var S=r(7109),k=r(51856),Z=r(1070),C=r(91894);function L(){let e=(0,c.I0)();(0,c.v9)(e=>e.environment.environmentLoadedValues);let t=(0,c.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues}),[r,n]=(0,h.useState)(!1),[a,i]=(0,h.useState)(!1),[o,d]=(0,h.useState)("".concat(JSON.stringify([],null," ")));(0,h.useEffect)(()=>{console.log("Result:",r)},[r]);let[u,w]=(0,h.useState)(""),[L,P]=(0,h.useState)(""),[O,A]=(0,h.useState)(!1),[z,_]=(0,h.useState)(!1),[R,E]=(0,h.useState)(null),[J,I]=(0,h.useState)(""),q=e=>{let r={query:u,...JSON.parse(o||"{}")},s={"Content-Type":"application/json",Accept:"application/json",Authorization:(0,S.Z)(t)},n=Object.keys(s).map(e=>'-H "'.concat(e,": ").concat(s[e],'"')).join(" "),a="curl -X POST ".concat(n," -d '").concat(JSON.stringify(r),"' ").concat("".concat(e,"/db/execute"));I(a),navigator.clipboard.writeText(a).then(()=>{f.ZP.success("CURL command copied to clipboard!")}).catch(e=>{f.ZP.error("Failed to copy CURL command."),console.error("Error copying CURL command to clipboard:",e)})},T=async()=>{n(null),f.ZP.loading("Executing query...",{id:"queryExecution"});try{let r={query:u,...JSON.parse(o||"{}")};console.log("Query Body:",r);let s=await fetch("".concat("".concat("http://localhost:8000","/db/execute")),{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:(0,S.Z)(t),superduper_reverse_proxy:"http://localhost:8000"},body:JSON.stringify(r)});if(!s.ok){let e=await s.json();throw console.log("Error response data:",e),500===s.status&&E(e||"Server error occurred"),Error(500===s.status?"Server error":"Network response was not ok")}let a=await s.json();console.log("/db/execute API data:",a),n(a),e(N(a)),A(!0),f.ZP.success("Query executed successfully")}catch(e){console.error("Error fetching Services API data",e),n(null),_(!0),f.ZP.error("Query failed!",{id:"queryFail"})}finally{f.ZP.dismiss("queryExecution")}},F=(0,h.useRef)(null),V=async r=>{let s=r.target.files[0];if(s){if("application/json"===s.type){let e=f.ZP.loading("Loading JSON file..."),t=new FileReader;t.onload=t=>{try{let r=JSON.parse(t.target.result);P(JSON.stringify(r,null,2)),d(JSON.stringify(r,null,2)),f.ZP.success("JSON file loaded successfully!",{id:e})}catch(t){P("Invalid JSON file."),d("Invalid JSON file."),f.ZP.error("Failed to load JSON file.",{id:e})}},t.readAsText(s)}else if("application/zip"===s.type||s.name.endsWith(".zip")){let r=f.ZP.loading("Uploading ZIP file..."),i=new FormData;i.append("raw",s,s.name);try{var n,a;let s=await l.Z.put("".concat("".concat("http://localhost:8000","/db/upload")),i,{headers:{"Content-Type":"multipart/form-data",accept:"application/json",Authorization:(0,S.Z)(t),superduper_reverse_proxy:"http://localhost:8000"}}),o=JSON.parse(JSON.stringify(null==s?void 0:null===(n=s.data)||void 0===n?void 0:n.component));e((0,Z.Xs)([...null==s?void 0:null===(a=s.data)||void 0===a?void 0:a.artifacts])),P(JSON.stringify(o,null,2)),d(JSON.stringify(o,null,2)),f.ZP.success("ZIP file uploaded successfully!",{id:r})}catch(e){f.ZP.error((null==e?void 0:e.message)||"Failed to upload ZIP file.",{id:r,duration:1e4}),console.log("Error uploading ZIP file:",e)}}else P("Please upload a valid JSON or ZIP file."),f.ZP.error("Invalid file type.")}else P("No file selected."),f.ZP.error("No file selected.")},[B,Q]=(0,h.useState)([]),[U,W]=(0,h.useState)(""),M=async()=>{try{let e=await fetch("".concat("".concat("http://localhost:8000","/db/show?type_id=query_template")),{headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:(0,S.Z)(t),superduper_reverse_proxy:"http://localhost:8000"}}),r=await e.json(),s=Array.isArray(r)?r:[r];console.log("Lookup:",s),console.log("Lookup Response:",e),Q(s)}catch(e){console.error(e),f.ZP.error("Error fetching data!",{id:"form-error"})}};(0,h.useEffect)(()=>{M()},[]);let[Y,D]=(0,h.useState)(!1),[G,H]=(0,h.useState)("");async function $(e){try{D(!0),W(e),H(""),console.log("Selected:",e);let r=await fetch("".concat("".concat("http://localhost:8000","/db/show_template?type_id=query_template&identifier=").concat(e)),{headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:(0,S.Z)(t),superduper_reverse_proxy:"http://localhost:8000"}}),s=await r.json();w((null==s?void 0:s.query)||"");let{query:n,...a}=s;d(JSON.stringify(a,null," ")),console.log("Query:",(null==s?void 0:s.query)||""),console.log("JSON without query:",a),D(!1)}catch(e){console.error("Error handling component change:",e),D(!1),H("An error occurred while fetching data")}}return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("br",{}),(0,s.jsx)("div",{className:"flex flex-col space-y-6",children:(0,s.jsxs)("div",{className:"border-b border-gray-900/10 pb-2",children:[(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:"Query"}),(0,s.jsx)(y.pn,{children:(0,s.jsxs)(y.u,{children:[(0,s.jsx)(y.aJ,{asChild:!0,children:(0,s.jsxs)(b.z,{variant:"outline",className:"flex items-center space-x-2",onClick:()=>{q("http://localhost:8000")},children:[(0,s.jsx)(k.Z,{className:"h-4 w-4"}),(0,s.jsx)("span",{children:"cURL"})]})}),(0,s.jsx)(y._v,{children:(0,s.jsx)("p",{children:"Click to copy cURL command."})})]})})]}),(0,s.jsx)("p",{className:"mt-1 text-sm leading-6 text-gray-600",children:"You can write queries to retrieve data from your database."})]})}),(0,s.jsxs)("div",{className:"sm:col-span-3",children:[(0,s.jsx)("div",{className:"mt-4 mb-2",children:(0,s.jsx)(j.Z,{label:"Select Query Template",popoverheader:"Select Query Template",popovercontent:(0,s.jsx)("p",{children:"You can select a template and query faster."})})}),(0,s.jsxs)(g.Ph,{className:"mt-2",value:U,onValueChange:$,children:[(0,s.jsx)(g.i4,{className:"w-[280px]",children:(0,s.jsx)(g.ki,{placeholder:"Select an option"})}),(0,s.jsx)(g.Bw,{children:(0,s.jsxs)(g.DI,{children:[(0,s.jsx)(g.n5,{children:"Select Query Template"}),Y&&(0,s.jsx)("div",{children:"Loading..."}),!Y&&0===B.length&&G&&(0,s.jsx)("div",{children:G}),!Y&&B.length>0&&B.map(e=>(0,s.jsx)(g.Ql,{value:e,children:e},e))]})})]})]}),(0,s.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,s.jsxs)("div",{className:"sm:col-span-6",children:[(0,s.jsx)(j.Z,{label:"Please type a query",popoverheader:"Query Documentation",popovercontent:(0,s.jsx)("p",{children:"You can write queries to retrieve data from your database."})}),(0,s.jsx)(m.default,{className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Type your query here: documents.find_one()",mode:"mysql",theme:"tomorrow",name:"query",onChange:e=>{w(e)},fontSize:13,lineHeight:19,showPrintMargin:!0,showGutter:!1,highlightActiveLine:!0,value:u,setOptions:{enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,enableSnippets:!0,showLineNumbers:!0,tabSize:2,useWorker:!1,wrap:!0},height:"80px",width:"98%"}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:"Your query will be run against the database."})]})}),(0,s.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,s.jsxs)("div",{className:"sm:col-span-3",children:[(0,s.jsx)(j.Z,{label:"Body",popoverheader:"Body",popovercontent:(0,s.jsx)("p",{children:"Here you can provide the data or documents you want to query."})}),(0,s.jsx)("br",{}),(0,s.jsx)(m.default,{ref:F,className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Placeholder Text",mode:"json",theme:"github",name:"blah2",onChange:e=>{d(e)},fontSize:13,showPrintMargin:!0,showGutter:!1,highlightActiveLine:!0,value:o,enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,height:"180px",width:"206%"}),(0,s.jsx)("input",{type:"file",accept:".json,.zip",className:"block mt-2 w-full text-sm text-gray-700 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-indigo-50 file:text-indigo-700 hover:file:bg-indigo-100",onChange:V}),(0,s.jsx)("p",{className:"text-xs pl-2 text-muted-foreground",children:"*upload json file to populate."})]})}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)(C.Z,{}),(0,s.jsx)("br",{}),(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)("div",{className:"mt-6"}),(0,s.jsxs)("div",{className:"mt-6 flex items-center justify-end gap-x-6",children:[(0,s.jsx)(p.default,{href:"/webui/query",children:(0,s.jsx)("button",{type:"button",className:"text-sm font-semibold leading-6 text-gray-900",children:"Cancel"})}),(0,s.jsx)("button",{type:"submit",className:"rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",onClick:()=>{T()},children:"Run Query"})]})]}),(0,s.jsx)("br",{}),(0,s.jsx)(v.Vq,{open:z,onOpenChange:()=>{i(!1),_(!1)},children:(0,s.jsxs)(v.cZ,{className:"sm:max-w-[768px] lg:max-w-screen-lg overflow-y-scroll max-h-screen",children:[(0,s.jsxs)(v.fK,{children:[(0,s.jsx)(v.$N,{children:"Failed Running Query"}),(0,s.jsx)(v.Be,{children:"The query can't be run. Please check the error message below."})]}),(0,s.jsx)("strong",{children:"Error Message"}),R?(0,s.jsx)(x,{data:R,height:100}):"No result found. Error while running the query...",(0,s.jsx)(v.cN,{children:(0,s.jsx)(b.z,{onClick:()=>{T()},children:"Retry now"})})]})})]})})}r(35724);var P=r(16800),O=r(12900),A=e=>{let{data:t}=e,r=function(e){let t=[],r=/(https?:\/\/[^\s]+)/g;return!function e(s){if("string"==typeof s){let e=s.match(r);e&&t.push(...e)}else Array.isArray(s)?s.forEach(t=>e(t)):"object"==typeof s&&null!==s&&Object.values(s).forEach(t=>e(t))}(e),t}(t),n=e=>{let t=e.replace(/-/g,"-​");return t.length>72?"".concat(t.slice(0,72),"..."):t};return(0,s.jsxs)(s.Fragment,{children:[r.length>0&&(0,s.jsx)(O.C,{className:"mt-2 mb-2",children:"Links"}),r.length>0?r.map((e,t)=>(0,s.jsxs)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"mb-2 gap-2",children:[(0,s.jsxs)("span",{className:"inline-flex items-center rounded-full bg-gray-50 px-2 py-1 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10 whitespace-nowrap mb-2",children:[n(e),(0,s.jsx)(z,{className:"h-4 w-4"})]}),(0,s.jsx)("br",{})]},t)):(0,s.jsx)(s.Fragment,{})]})};function z(e){return(0,s.jsxs)("svg",{...e,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",children:[(0,s.jsx)("path",{d:"M7 7h10v10"}),(0,s.jsx)("path",{d:"M7 17 17 7"})]})}var _=e=>{let{data:t}=e,[r,n]=(0,h.useState)("".concat(JSON.stringify(t,null,4))),a=(0,h.useRef)(null),i=async()=>{try{a.current.editor.selectAll();let e=a.current.editor.getSelectedText();await navigator.clipboard.writeText(e),console.log("Text copied to clipboard:",e)}catch(e){console.error("Unable to copy text to clipboard:",e)}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"relative w-full",children:[(0,s.jsx)(m.default,{ref:a,className:"w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Loading...",mode:"json",theme:"github",name:"jsonEditor",onChange:e=>{n(e)},fontSize:13,showPrintMargin:!1,showGutter:!1,highlightActiveLine:!0,value:r,setOptions:{enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,enableSnippets:!1,showLineNumbers:!1,tabSize:2,useWorker:!1,wrap:!0},style:{height:"350px",width:"210%"}}),(0,s.jsx)("div",{className:"absolute bottom-8 -right-40 mb-2 mr-2",children:(0,s.jsx)("span",{onClick:i,children:(0,s.jsx)(P.Z,{popoverheader:"Click to copy"})})})]}),(0,s.jsx)(A,{data:t})]})},R=r(45696),E=r.n(R),J=r(64303),I=r(10822),q=r(56718);let T=e=>{let t=e.replace(/-/g,"-​");return t.length>72?"".concat(t.slice(0,72),"..."):t},F=e=>{let{fileId:t,fileType:r,fileData:n,fileContent:a}=e;return n?r.startsWith("video/")?(0,s.jsxs)("div",{children:[(0,s.jsx)(O.C,{className:"mb-2",children:"Video"}),(0,s.jsxs)("video",{controls:!0,children:[(0,s.jsx)("source",{src:n,type:r}),"Your browser does not support the video element."]})]}):r.startsWith("audio/")?(0,s.jsxs)("div",{children:[(0,s.jsx)(O.C,{className:"mb-2",children:"Audio"}),(0,s.jsxs)("audio",{controls:!0,children:[(0,s.jsx)("source",{src:n,type:r}),"Your browser does not support the audio element."]})]}):r.startsWith("image/")?(0,s.jsxs)("div",{className:"image-container relative mb-4",children:[(0,s.jsx)(O.C,{className:"mb-2",children:"Images"}),(0,s.jsx)("img",{src:n,alt:"File Preview",className:"max-w-sm rounded-lg border-r-8 transition-transform duration-300 ease-in-out"}),(0,s.jsx)("div",{className:"zoom-icon absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-white opacity-0 transition-opacity duration-300 ease-in-out pointer-events-none",children:(0,s.jsx)(I.Z,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"})})]}):r.startsWith("text/")?(0,s.jsxs)("div",{children:[(0,s.jsx)(O.C,{className:"mb-2",children:"Text"}),(0,s.jsx)("pre",{className:"bg-gray-100 p-4 rounded-lg dark:bg-gray-800 whitespace-pre-wrap",children:(0,s.jsx)("code",{children:a})})]}):(0,s.jsxs)("div",{children:[(0,s.jsx)(O.C,{className:"mb-2",children:"Byte Files"}),(0,s.jsxs)("a",{href:n,download:!0,className:"pl-2 pr-2",children:[(0,s.jsxs)("span",{className:"inline-flex items-center rounded-full bg-gray-50 px-2 py-1 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10 whitespace-nowrap mb-2",children:[T(n),(0,s.jsx)(q.Z,{className:"h-4 w-4 mx-2"})]}),(0,s.jsx)("br",{})]})]}):(0,s.jsx)(d.Z,{})};var V=e=>{let{fileIds:t}=e,r=(0,c.v9)(e=>e.environment.environmentLoadedValues),n="string"==typeof t?[t]:t,a=(0,c.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues}),[i,o]=(0,h.useState)([]);return(0,h.useEffect)(()=>{(async()=>{let e=n.map(async e=>{try{let t=await l.Z.get("".concat("".concat("http://localhost:8000","/db/artifact_store/get?file_id=").concat(e)),{responseType:"blob",headers:{Accept:"application/json",Authorization:(0,S.Z)(a),superduper_reverse_proxy:"http://localhost:8000"}}),r=new Blob([t.data],{type:t.headers["content-type"]}),s=window.URL.createObjectURL(r),n=t.headers["content-type"],i="";return n.startsWith("text/")&&(i=await new Response(t.data).text()),{fileId:e,fileData:s,fileType:n,fileContent:i}}catch(e){return console.error("Error fetching file:",e),null}}),t=(await Promise.all(e)).filter(e=>null!==e),r=["video/","audio/","image/","text/",""];o(t.sort((e,t)=>r.findIndex(t=>e.fileType.startsWith(t))-r.findIndex(e=>t.fileType.startsWith(e))))})()},[t,r,a]),(0,s.jsx)("div",{children:i.map(e=>(0,s.jsx)(F,{fileId:e.fileId,fileType:e.fileType,fileData:e.fileData,fileContent:e.fileContent},e.fileId))})},B=function(e){let{uploadFiles:t}=e;return(0,c.v9)(e=>e.environment.environmentLoadedValues),(0,c.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues}),(0,s.jsx)(s.Fragment,{children:t&&0!==t.length&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{children:(0,s.jsx)(V,{fileIds:t,className:"pb-2"})})})})};function Q(e){let{data:t}=e,[r,n]=(0,h.useState)(1),[a,i]=(0,h.useState)(1),[o,l]=(0,h.useState)(null);return((0,h.useEffect)(()=>{t&&(i(t.length),l(E()(t[r-1])))},[t,r]),(0,h.useEffect)(()=>{console.log("Data:",t),console.log("Current page:",r),console.log("Current data:",t[r-1]),l(t[r-1])},[r]),o)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)(b.z,{variant:"outline",onClick:()=>{n(e=>Math.max(e-1,1))},disabled:1===r,children:[(0,s.jsx)(U,{className:"h-5 w-5"}),"Previous"]}),(0,s.jsxs)("span",{children:[r," of ",a]}),(0,s.jsxs)(b.z,{variant:"outline",onClick:()=>{n(e=>Math.min(e+1,a))},disabled:r===a,children:["Next",(0,s.jsx)(W,{className:"h-5 w-5"})]})]}),(0,s.jsx)("br",{}),o&&(0,s.jsx)("div",{children:(0,s.jsxs)(J.mQ,{defaultValue:"JSON",className:"w-full",children:[(0,s.jsxs)(J.dr,{className:"grid w-full grid-cols-2",children:[(0,s.jsx)(J.SP,{value:"JSON",children:"Data"}),(0,s.jsx)(J.SP,{value:"artifacts",disabled:!o[1]||!(o[1].length>0),children:"Artifacts"})]}),(0,s.jsx)(J.nU,{value:"artifacts",children:(0,s.jsx)("div",{className:"flex items-center mt-2",children:(0,s.jsx)(B,{uploadFiles:o[1]})})}),(0,s.jsxs)(J.nU,{value:"JSON",children:[(0,s.jsx)(O.C,{className:"mt-2",children:"JSON"}),(0,s.jsx)("div",{className:"mt-2 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,s.jsx)("div",{className:"sm:col-span-3",children:(0,s.jsx)(_,{data:o[0]})})})]})]})},JSON.stringify(o))]}):(0,s.jsx)("div",{className:"flex items-center justify-center p-6 shadow-lg rounded-lg bg-white",children:(0,s.jsx)("span",{className:"text-gray-600 text-lg font-medium",children:"No result found"})})}function U(e){return(0,s.jsx)("svg",{...e,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",children:(0,s.jsx)("path",{d:"m15 18-6-6 6-6"})})}function W(e){return(0,s.jsx)("svg",{...e,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",children:(0,s.jsx)("path",{d:"m9 18 6-6-6-6"})})}function M(){return(0,s.jsx)(s.Fragment,{})}var Y=function(){let e=(0,c.v9)(e=>{var t;return null==e?void 0:null===(t=e.queryResult)||void 0===t?void 0:t.queryResultLoadedValues});return e?(0,s.jsx)("div",{className:"m-6",children:(0,s.jsx)(Q,{data:e})}):(0,s.jsx)("div",{className:"m-6",children:(0,s.jsx)(M,{})})},D=r(46346);let{getReasonPhrase:G}=r(70194);function H(){(0,c.v9)(e=>e.environment.environmentLoadedValues);let e=(0,c.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues}),t=async t=>{try{return(await l.Z.get(t,{headers:{Accept:"application/json",Authorization:(0,S.Z)(e),superduper_reverse_proxy:"http://localhost:8000"}})).data}catch(e){var r,s;throw{status:(null===(r=e.response)||void 0===r?void 0:r.status)||500,message:(null===(s=e.response)||void 0===s?void 0:s.data)||"An unexpected error occurred"}}},{data:r,error:n}=(0,o.ZP)("".concat("".concat("http://localhost:8000","/health")),t,{refreshInterval:3e4,shouldRetryOnError:!1});if(!r&&!n)return(0,s.jsx)(d.Z,{times:6});if(n){console.error("Error Details:",n);let e=n.status||404,t=G(e)||"Service Unavailable";return(0,s.jsx)(u.Z,{header:"REST API",shortMessage:t,status:e,description:"Status: ".concat(e,", Message: ").concat("string"==typeof n.message?n.message:JSON.stringify(n.message))})}return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(D.x,{className:"max-w-7xl whitespace-nowrap",children:[(0,s.jsxs)("div",{className:"min-h-screen grid grid-cols-2 gap-1 px-1",children:[(0,s.jsx)("div",{className:"bg-white",children:(0,s.jsx)(L,{})}),(0,s.jsxs)("div",{className:"bg-white",children:[(0,s.jsx)("br",{}),(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"border-b ml-6 border-gray-900/10 pb-2",children:[(0,s.jsx)("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:"Result"}),(0,s.jsx)("p",{className:"mt-1 text-sm leading-6 text-gray-600 mb-2",children:"You can see the results of your query here."})]}),(0,s.jsx)(Y,{})]})]})]}),(0,s.jsx)(D.B,{orientation:"horizontal"})]})})}var $=(0,i.N)(function(){return(0,s.jsx)(n.Z,{children:(0,s.jsx)(a.Z,{activeNavItem:"/webui/query",children:(0,s.jsx)("main",{className:"py-5",children:(0,s.jsx)("div",{className:"px-4 sm:px-6 lg:px-8",children:(0,s.jsx)("div",{className:"mx-auto max-w-7xl",children:(0,s.jsx)(H,{})})})})})})})},63052:function(e,t,r){"use strict";r.d(t,{Bw:function(){return m},DI:function(){return c},Ph:function(){return l},Ql:function(){return x},i4:function(){return u},ki:function(){return d},n5:function(){return f}});var s=r(27573),n=r(7653),a=r(85688),i=r(66240),o=r(18580);let l=i.fC,c=i.ZA,d=i.B4,u=n.forwardRef((e,t)=>{let{className:r,children:n,...l}=e;return(0,s.jsxs)(i.xz,{ref:t,className:(0,o.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...l,children:[n,(0,s.jsx)(i.JO,{asChild:!0,children:(0,s.jsx)(a.jnn,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=i.xz.displayName;let h=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)(i.u_,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",r),...n,children:(0,s.jsx)(a.g8U,{})})});h.displayName=i.u_.displayName;let p=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)(i.$G,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",r),...n,children:(0,s.jsx)(a.v4q,{})})});p.displayName=i.$G.displayName;let m=n.forwardRef((e,t)=>{let{className:r,children:n,position:a="popper",...l}=e;return(0,s.jsx)(i.h_,{children:(0,s.jsxs)(i.VY,{ref:t,className:(0,o.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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","popper"===a&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:a,...l,children:[(0,s.jsx)(h,{}),(0,s.jsx)(i.l_,{className:(0,o.cn)("p-1","popper"===a&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),(0,s.jsx)(p,{})]})})});m.displayName=i.VY.displayName;let f=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)(i.__,{ref:t,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",r),...n})});f.displayName=i.__.displayName;let x=n.forwardRef((e,t)=>{let{className:r,children:n,...l}=e;return(0,s.jsxs)(i.ck,{ref:t,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...l,children:[(0,s.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(i.wU,{children:(0,s.jsx)(a.nQG,{className:"h-4 w-4"})})}),(0,s.jsx)(i.eT,{children:n})]})});x.displayName=i.ck.displayName,n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)(i.Z0,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",r),...n})}).displayName=i.Z0.displayName},64303:function(e,t,r){"use strict";r.d(t,{SP:function(){return c},dr:function(){return l},mQ:function(){return o},nU:function(){return d}});var s=r(27573),n=r(7653),a=r(84132),i=r(18580);let o=a.fC,l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)(a.aV,{ref:t,className:(0,i.cn)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",r),...n})});l.displayName=a.aV.displayName;let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)(a.xz,{ref:t,className:(0,i.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",r),...n})});c.displayName=a.xz.displayName;let d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)(a.VY,{ref:t,className:(0,i.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",r),...n})});d.displayName=a.VY.displayName},4482:function(e,t,r){"use strict";r.d(t,{_v:function(){return d},aJ:function(){return c},pn:function(){return o},u:function(){return l}});var s=r(27573),n=r(7653),a=r(23098),i=r(18580);let o=a.zt,l=a.fC,c=a.xz,d=n.forwardRef((e,t)=>{let{className:r,sideOffset:n=4,...o}=e;return(0,s.jsx)(a.VY,{ref:t,sideOffset:n,className:(0,i.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",r),...o})});d.displayName=a.VY.displayName},91894:function(e,t,r){"use strict";var s=r(27573),n=r(7653),a=r(412),i=r(33597),o=r(36531);function l(e){return(0,s.jsx)("svg",{...e,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",children:(0,s.jsx)("path",{d:"m6 9 6 6 6-6"})})}function c(e){return(0,s.jsx)("svg",{...e,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",children:(0,s.jsx)("path",{d:"m18 15-6-6-6 6"})})}t.Z=()=>{let e=(0,a.v9)(e=>e.uploadFiles.uploadFilesLoadedValues||[]),[t,r]=(0,n.useState)(!1),[d,u]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{0===e.length||d||r(!0)},[e,d]),(0,s.jsxs)("div",{children:[(0,s.jsxs)(o.z,{variant:"secondary",onClick:()=>{r(!t),u(!0)},children:["Upload Artifact",t?(0,s.jsx)(c,{className:"ml-2 h-4 w-4"}):(0,s.jsx)(l,{className:"ml-2 h-4 w-4"})]}),(t||!d&&0!==e.length)&&(0,s.jsx)("div",{className:"col-span-full mt-2",children:(0,s.jsx)(i.Z,{})})]})}},16800:function(e,t,r){"use strict";var s=r(27573),n=r(7653),a=r(7611);t.Z=function(e){let{children:t,label:r,popovercontent:i,popoverheader:o,trigger:l="hover"}=e,[c,d]=(0,n.useState)(!1),u=(0,n.useRef)(null);return(0,n.useEffect)(()=>{function e(e){u.current&&!u.current.contains(e.target)&&d(!1)}if(c)return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[c,u]),(0,s.jsxs)("div",{ref:u,onMouseEnter:()=>{"hover"===l&&d(!0)},onMouseLeave:()=>{"hover"===l&&d(!1)},className:"w-fit h-fit relative flex justify-center",children:[(0,s.jsx)("div",{onClick:()=>d(!c),children:(0,s.jsx)("label",{htmlFor:r,className:"text-sm font-medium leading-6 text-gray-900 inline-flex overflow-visible",children:(0,s.jsxs)("p",{children:[r," ",(0,s.jsx)("button",{type:"button",className:"opacity-50 cursor-pointer flex items-center space-x-1 rounded-full bg-gray-600 p-2 text-white shadow-sm hover:bg-gray-500 focus:ring focus:outline-none",children:(0,s.jsx)(a.Z,{className:"h-6 w-6","aria-hidden":"true"})})]})})}),(0,s.jsx)("div",{hidden:!c,className:"bottom-[100%] absolute z-50 w-32 text-sm text-gray-500 transition-opacity duration-300 bg-white border border-gray-200 rounded-lg shadow-sm",children:(0,s.jsx)("div",{className:"px-3 py-2 bg-gray-100 border-b border-gray-200 rounded-t-lg dark:border-gray-600 dark:bg-gray-700",children:(0,s.jsx)("h3",{className:"font-semibold text-gray-900 dark:text-white ",children:o})})})]})}}},function(e){e.O(0,[5458,7441,3296,8320,8374,3908,7653,7050,6340,4112,790,9115,3098,3406,6901,3696,935,1826,2895,1293,1528,1744],function(){return e(e.s=24660)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/app/webui/query/page-24b6164f34214377.js b/superduper/rest/out/_next/static/chunks/app/webui/query/page-24b6164f34214377.js deleted file mode 100644 index 8a85b4e2d..000000000 --- a/superduper/rest/out/_next/static/chunks/app/webui/query/page-24b6164f34214377.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5811],{41294:function(e,t,r){Promise.resolve().then(r.bind(r,12958))},12958:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return $}});var s=r(27573),n=r(88280),a=r(70007),i=r(4867),o=r(70790),l=r(13908),c=r(412),d=r(5772),u=r(45246),h=r(7653),p=r(88146),m=r(22392);r(40020),r(19234),r(83346),r(5083),r(39166);var f=r(93296);function x(e){let{data:t,height:r="300px"}=e,[n,a]=(0,h.useState)(JSON.stringify(t,null," "));return(0,h.useRef)(null),(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(m.default,{className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Stack result JSON here...",mode:"json",theme:"github",name:"blah2",onChange:e=>{try{a(e)}catch(e){f.ZP.error("Error updating...",{id:"stack-update-error"})}},fontSize:13,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:n,setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,useWorker:!1,wrap:!0},height:r,width:"100%"})})}var g=r(63052),j=r(80923),y=r(4482),v=r(24776),b=r(36531),w=r(55236);let N=e=>t=>t({type:w.V,payload:e});var S=r(7109),k=r(51856),Z=r(1070),C=r(91894);function L(){let e=(0,c.I0)();(0,c.v9)(e=>e.environment.environmentLoadedValues);let t=(0,c.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues}),[r,n]=(0,h.useState)(!1),[a,i]=(0,h.useState)(!1),[o,d]=(0,h.useState)("".concat(JSON.stringify([],null," ")));(0,h.useEffect)(()=>{console.log("Result:",r)},[r]);let[u,w]=(0,h.useState)(""),[L,P]=(0,h.useState)(""),[O,A]=(0,h.useState)(!1),[z,_]=(0,h.useState)(!1),[R,E]=(0,h.useState)(null),[J,I]=(0,h.useState)(""),q=e=>{let r={query:u,...JSON.parse(o||"{}")},s={"Content-Type":"application/json",Accept:"application/json",Authorization:(0,S.Z)(t)},n=Object.keys(s).map(e=>'-H "'.concat(e,": ").concat(s[e],'"')).join(" "),a="curl -X POST ".concat(n," -d '").concat(JSON.stringify(r),"' ").concat("".concat(e,"/db/execute"));I(a),navigator.clipboard.writeText(a).then(()=>{f.ZP.success("CURL command copied to clipboard!")}).catch(e=>{f.ZP.error("Failed to copy CURL command."),console.error("Error copying CURL command to clipboard:",e)})},T=async()=>{n(null),f.ZP.loading("Executing query...",{id:"queryExecution"});try{let r={query:u,...JSON.parse(o||"{}")};console.log("Query Body:",r);let s=await fetch("".concat("".concat("http://localhost:8000","/db/execute")),{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:(0,S.Z)(t),superduper_reverse_proxy:"http://localhost:8000"},body:JSON.stringify(r)});if(!s.ok){let e=await s.json();throw console.log("Error response data:",e),500===s.status&&E(e||"Server error occurred"),Error(500===s.status?"Server error":"Network response was not ok")}let a=await s.json();console.log("/db/execute API data:",a),n(a),e(N(a)),A(!0),f.ZP.success("Query executed successfully")}catch(e){console.error("Error fetching Services API data",e),n(null),_(!0),f.ZP.error("Query failed!",{id:"queryFail"})}finally{f.ZP.dismiss("queryExecution")}},F=(0,h.useRef)(null),V=async r=>{let s=r.target.files[0];if(s){if("application/json"===s.type){let e=f.ZP.loading("Loading JSON file..."),t=new FileReader;t.onload=t=>{try{let r=JSON.parse(t.target.result);P(JSON.stringify(r,null,2)),d(JSON.stringify(r,null,2)),f.ZP.success("JSON file loaded successfully!",{id:e})}catch(t){P("Invalid JSON file."),d("Invalid JSON file."),f.ZP.error("Failed to load JSON file.",{id:e})}},t.readAsText(s)}else if("application/zip"===s.type||s.name.endsWith(".zip")){let r=f.ZP.loading("Uploading ZIP file..."),i=new FormData;i.append("raw",s,s.name);try{var n,a;let s=await l.Z.put("".concat("".concat("http://localhost:8000","/db/upload")),i,{headers:{"Content-Type":"multipart/form-data",accept:"application/json",Authorization:(0,S.Z)(t),superduper_reverse_proxy:"http://localhost:8000"}}),o=JSON.parse(JSON.stringify(null==s?void 0:null===(n=s.data)||void 0===n?void 0:n.component));e((0,Z.Xs)([...null==s?void 0:null===(a=s.data)||void 0===a?void 0:a.artifacts])),P(JSON.stringify(o,null,2)),d(JSON.stringify(o,null,2)),f.ZP.success("ZIP file uploaded successfully!",{id:r})}catch(e){f.ZP.error((null==e?void 0:e.message)||"Failed to upload ZIP file.",{id:r,duration:1e4}),console.log("Error uploading ZIP file:",e)}}else P("Please upload a valid JSON or ZIP file."),f.ZP.error("Invalid file type.")}else P("No file selected."),f.ZP.error("No file selected.")},[B,Q]=(0,h.useState)([]),[U,W]=(0,h.useState)(""),M=async()=>{try{let e=await fetch("".concat("".concat("http://localhost:8000","/db/show?type_id=query_template")),{headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:(0,S.Z)(t),superduper_reverse_proxy:"http://localhost:8000"}}),r=await e.json(),s=Array.isArray(r)?r:[r];console.log("Lookup:",s),console.log("Lookup Response:",e),Q(s)}catch(e){console.error(e),f.ZP.error("Error fetching data!",{id:"form-error"})}};(0,h.useEffect)(()=>{M()},[]);let[Y,D]=(0,h.useState)(!1),[G,H]=(0,h.useState)("");async function $(e){try{D(!0),W(e),H(""),console.log("Selected:",e);let r=await fetch("".concat("".concat("http://localhost:8000","/db/show_template?type_id=query_template&identifier=").concat(e)),{headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:(0,S.Z)(t),superduper_reverse_proxy:"http://localhost:8000"}}),s=await r.json();w((null==s?void 0:s.query)||"");let{query:n,...a}=s;d(JSON.stringify(a,null," ")),console.log("Query:",(null==s?void 0:s.query)||""),console.log("JSON without query:",a),D(!1)}catch(e){console.error("Error handling component change:",e),D(!1),H("An error occurred while fetching data")}}return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("br",{}),(0,s.jsx)("div",{className:"flex flex-col space-y-6",children:(0,s.jsxs)("div",{className:"border-b border-gray-900/10 pb-2",children:[(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:"Query"}),(0,s.jsx)(y.pn,{children:(0,s.jsxs)(y.u,{children:[(0,s.jsx)(y.aJ,{asChild:!0,children:(0,s.jsxs)(b.z,{variant:"outline",className:"flex items-center space-x-2",onClick:()=>{q("http://localhost:8000")},children:[(0,s.jsx)(k.Z,{className:"h-4 w-4"}),(0,s.jsx)("span",{children:"cURL"})]})}),(0,s.jsx)(y._v,{children:(0,s.jsx)("p",{children:"Click to copy cURL command."})})]})})]}),(0,s.jsx)("p",{className:"mt-1 text-sm leading-6 text-gray-600",children:"You can write queries to retrieve data from your database."})]})}),(0,s.jsxs)("div",{className:"sm:col-span-3",children:[(0,s.jsx)("div",{className:"mt-4 mb-2",children:(0,s.jsx)(j.Z,{label:"Select Query Template",popoverheader:"Select Query Template",popovercontent:(0,s.jsx)("p",{children:"You can select a template and query faster."})})}),(0,s.jsxs)(g.Ph,{className:"mt-2",value:U,onValueChange:$,children:[(0,s.jsx)(g.i4,{className:"w-[280px]",children:(0,s.jsx)(g.ki,{placeholder:"Select an option"})}),(0,s.jsx)(g.Bw,{children:(0,s.jsxs)(g.DI,{children:[(0,s.jsx)(g.n5,{children:"Select Query Template"}),Y&&(0,s.jsx)("div",{children:"Loading..."}),!Y&&0===B.length&&G&&(0,s.jsx)("div",{children:G}),!Y&&B.length>0&&B.map(e=>(0,s.jsx)(g.Ql,{value:e,children:e},e))]})})]})]}),(0,s.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,s.jsxs)("div",{className:"sm:col-span-6",children:[(0,s.jsx)(j.Z,{label:"Please type a query",popoverheader:"Query Documentation",popovercontent:(0,s.jsx)("p",{children:"You can write queries to retrieve data from your database."})}),(0,s.jsx)(m.default,{className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Type your query here: documents.find_one()",mode:"mysql",theme:"tomorrow",name:"query",onChange:e=>{w(e)},fontSize:13,lineHeight:19,showPrintMargin:!0,showGutter:!1,highlightActiveLine:!0,value:u,setOptions:{enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,enableSnippets:!0,showLineNumbers:!0,tabSize:2,useWorker:!1,wrap:!0},height:"80px",width:"98%"}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:"Your query will be run against the database."})]})}),(0,s.jsx)("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,s.jsxs)("div",{className:"sm:col-span-3",children:[(0,s.jsx)(j.Z,{label:"Body",popoverheader:"Body",popovercontent:(0,s.jsx)("p",{children:"Here you can provide the data or documents you want to query."})}),(0,s.jsx)("br",{}),(0,s.jsx)(m.default,{ref:F,className:"block w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Placeholder Text",mode:"json",theme:"github",name:"blah2",onChange:e=>{d(e)},fontSize:13,showPrintMargin:!0,showGutter:!1,highlightActiveLine:!0,value:o,enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,height:"180px",width:"206%"}),(0,s.jsx)("input",{type:"file",accept:".json,.zip",className:"block mt-2 w-full text-sm text-gray-700 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-indigo-50 file:text-indigo-700 hover:file:bg-indigo-100",onChange:V}),(0,s.jsx)("p",{className:"text-xs pl-2 text-muted-foreground",children:"*upload json file to populate."})]})}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)(C.Z,{}),(0,s.jsx)("br",{}),(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)("div",{className:"mt-6"}),(0,s.jsxs)("div",{className:"mt-6 flex items-center justify-end gap-x-6",children:[(0,s.jsx)(p.default,{href:"/webui/query",children:(0,s.jsx)("button",{type:"button",className:"text-sm font-semibold leading-6 text-gray-900",children:"Cancel"})}),(0,s.jsx)("button",{type:"submit",className:"rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",onClick:()=>{T()},children:"Run Query"})]})]}),(0,s.jsx)("br",{}),(0,s.jsx)(v.Vq,{open:z,onOpenChange:()=>{i(!1),_(!1)},children:(0,s.jsxs)(v.cZ,{className:"sm:max-w-[768px] lg:max-w-screen-lg overflow-y-scroll max-h-screen",children:[(0,s.jsxs)(v.fK,{children:[(0,s.jsx)(v.$N,{children:"Failed Running Query"}),(0,s.jsx)(v.Be,{children:"The query can't be run. Please check the error message below."})]}),(0,s.jsx)("strong",{children:"Error Message"}),R?(0,s.jsx)(x,{data:R,height:100}):"No result found. Error while running the query...",(0,s.jsx)(v.cN,{children:(0,s.jsx)(b.z,{onClick:()=>{T()},children:"Retry now"})})]})})]})})}r(35724);var P=r(16800),O=r(12900),A=e=>{let{data:t}=e,r=function(e){let t=[],r=/(https?:\/\/[^\s]+)/g;return!function e(s){if("string"==typeof s){let e=s.match(r);e&&t.push(...e)}else Array.isArray(s)?s.forEach(t=>e(t)):"object"==typeof s&&null!==s&&Object.values(s).forEach(t=>e(t))}(e),t}(t),n=e=>{let t=e.replace(/-/g,"-​");return t.length>72?"".concat(t.slice(0,72),"..."):t};return(0,s.jsxs)(s.Fragment,{children:[r.length>0&&(0,s.jsx)(O.C,{className:"mt-2 mb-2",children:"Links"}),r.length>0?r.map((e,t)=>(0,s.jsxs)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"mb-2 gap-2",children:[(0,s.jsxs)("span",{className:"inline-flex items-center rounded-full bg-gray-50 px-2 py-1 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10 whitespace-nowrap mb-2",children:[n(e),(0,s.jsx)(z,{className:"h-4 w-4"})]}),(0,s.jsx)("br",{})]},t)):(0,s.jsx)(s.Fragment,{})]})};function z(e){return(0,s.jsxs)("svg",{...e,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",children:[(0,s.jsx)("path",{d:"M7 7h10v10"}),(0,s.jsx)("path",{d:"M7 17 17 7"})]})}var _=e=>{let{data:t}=e,[r,n]=(0,h.useState)("".concat(JSON.stringify(t,null,4))),a=(0,h.useRef)(null),i=async()=>{try{a.current.editor.selectAll();let e=a.current.editor.getSelectedText();await navigator.clipboard.writeText(e),console.log("Text copied to clipboard:",e)}catch(e){console.error("Unable to copy text to clipboard:",e)}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"relative w-full",children:[(0,s.jsx)(m.default,{ref:a,className:"w-full rounded-md border-2 py-1.5 text-gray-900 shadow-lg ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600",placeholder:"Loading...",mode:"json",theme:"github",name:"jsonEditor",onChange:e=>{n(e)},fontSize:13,showPrintMargin:!1,showGutter:!1,highlightActiveLine:!0,value:r,setOptions:{enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,enableSnippets:!1,showLineNumbers:!1,tabSize:2,useWorker:!1,wrap:!0},style:{height:"350px",width:"210%"}}),(0,s.jsx)("div",{className:"absolute bottom-8 -right-40 mb-2 mr-2",children:(0,s.jsx)("span",{onClick:i,children:(0,s.jsx)(P.Z,{popoverheader:"Click to copy"})})})]}),(0,s.jsx)(A,{data:t})]})},R=r(45696),E=r.n(R),J=r(64303),I=r(10822),q=r(56718);let T=e=>{let t=e.replace(/-/g,"-​");return t.length>72?"".concat(t.slice(0,72),"..."):t},F=e=>{let{fileId:t,fileType:r,fileData:n,fileContent:a}=e;return n?r.startsWith("video/")?(0,s.jsxs)("div",{children:[(0,s.jsx)(O.C,{className:"mb-2",children:"Video"}),(0,s.jsxs)("video",{controls:!0,children:[(0,s.jsx)("source",{src:n,type:r}),"Your browser does not support the video element."]})]}):r.startsWith("audio/")?(0,s.jsxs)("div",{children:[(0,s.jsx)(O.C,{className:"mb-2",children:"Audio"}),(0,s.jsxs)("audio",{controls:!0,children:[(0,s.jsx)("source",{src:n,type:r}),"Your browser does not support the audio element."]})]}):r.startsWith("image/")?(0,s.jsxs)("div",{className:"image-container relative mb-4",children:[(0,s.jsx)(O.C,{className:"mb-2",children:"Images"}),(0,s.jsx)("img",{src:n,alt:"File Preview",className:"max-w-sm rounded-lg border-r-8 transition-transform duration-300 ease-in-out"}),(0,s.jsx)("div",{className:"zoom-icon absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-white opacity-0 transition-opacity duration-300 ease-in-out pointer-events-none",children:(0,s.jsx)(I.Z,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"})})]}):r.startsWith("text/")?(0,s.jsxs)("div",{children:[(0,s.jsx)(O.C,{className:"mb-2",children:"Text"}),(0,s.jsx)("pre",{className:"bg-gray-100 p-4 rounded-lg dark:bg-gray-800 whitespace-pre-wrap",children:(0,s.jsx)("code",{children:a})})]}):(0,s.jsxs)("div",{children:[(0,s.jsx)(O.C,{className:"mb-2",children:"Byte Files"}),(0,s.jsxs)("a",{href:n,download:!0,className:"pl-2 pr-2",children:[(0,s.jsxs)("span",{className:"inline-flex items-center rounded-full bg-gray-50 px-2 py-1 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10 whitespace-nowrap mb-2",children:[T(n),(0,s.jsx)(q.Z,{className:"h-4 w-4 mx-2"})]}),(0,s.jsx)("br",{})]})]}):(0,s.jsx)(d.Z,{})};var V=e=>{let{fileIds:t}=e,r=(0,c.v9)(e=>e.environment.environmentLoadedValues),n="string"==typeof t?[t]:t,a=(0,c.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues}),[i,o]=(0,h.useState)([]);return(0,h.useEffect)(()=>{(async()=>{let e=n.map(async e=>{try{let t=await l.Z.get("".concat("".concat("http://localhost:8000","/db/artifact_store/get?file_id=").concat(e)),{responseType:"blob",headers:{Accept:"application/json",Authorization:(0,S.Z)(a),superduper_reverse_proxy:"http://localhost:8000"}}),r=new Blob([t.data],{type:t.headers["content-type"]}),s=window.URL.createObjectURL(r),n=t.headers["content-type"],i="";return n.startsWith("text/")&&(i=await new Response(t.data).text()),{fileId:e,fileData:s,fileType:n,fileContent:i}}catch(e){return console.error("Error fetching file:",e),null}}),t=(await Promise.all(e)).filter(e=>null!==e),r=["video/","audio/","image/","text/",""];o(t.sort((e,t)=>r.findIndex(t=>e.fileType.startsWith(t))-r.findIndex(e=>t.fileType.startsWith(e))))})()},[t,r,a]),(0,s.jsx)("div",{children:i.map(e=>(0,s.jsx)(F,{fileId:e.fileId,fileType:e.fileType,fileData:e.fileData,fileContent:e.fileContent},e.fileId))})},B=function(e){let{uploadFiles:t}=e;return(0,c.v9)(e=>e.environment.environmentLoadedValues),(0,c.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues}),(0,s.jsx)(s.Fragment,{children:t&&0!==t.length&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{children:(0,s.jsx)(V,{fileIds:t,className:"pb-2"})})})})};function Q(e){let{data:t}=e,[r,n]=(0,h.useState)(1),[a,i]=(0,h.useState)(1),[o,l]=(0,h.useState)(null);return((0,h.useEffect)(()=>{t&&(i(t.length),l(E()(t[r-1])))},[t,r]),(0,h.useEffect)(()=>{console.log("Data:",t),console.log("Current page:",r),console.log("Current data:",t[r-1]),l(t[r-1])},[r]),o)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)(b.z,{variant:"outline",onClick:()=>{n(e=>Math.max(e-1,1))},disabled:1===r,children:[(0,s.jsx)(U,{className:"h-5 w-5"}),"Previous"]}),(0,s.jsxs)("span",{children:[r," of ",a]}),(0,s.jsxs)(b.z,{variant:"outline",onClick:()=>{n(e=>Math.min(e+1,a))},disabled:r===a,children:["Next",(0,s.jsx)(W,{className:"h-5 w-5"})]})]}),(0,s.jsx)("br",{}),o&&(0,s.jsx)("div",{children:(0,s.jsxs)(J.mQ,{defaultValue:"JSON",className:"w-full",children:[(0,s.jsxs)(J.dr,{className:"grid w-full grid-cols-2",children:[(0,s.jsx)(J.SP,{value:"JSON",children:"Data"}),(0,s.jsx)(J.SP,{value:"artifacts",disabled:!o[1]||!(o[1].length>0),children:"Artifacts"})]}),(0,s.jsx)(J.nU,{value:"artifacts",children:(0,s.jsx)("div",{className:"flex items-center mt-2",children:(0,s.jsx)(B,{uploadFiles:o[1]})})}),(0,s.jsxs)(J.nU,{value:"JSON",children:[(0,s.jsx)(O.C,{className:"mt-2",children:"JSON"}),(0,s.jsx)("div",{className:"mt-2 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6",children:(0,s.jsx)("div",{className:"sm:col-span-3",children:(0,s.jsx)(_,{data:o[0]})})})]})]})},JSON.stringify(o))]}):(0,s.jsx)("div",{className:"flex items-center justify-center p-6 shadow-lg rounded-lg bg-white",children:(0,s.jsx)("span",{className:"text-gray-600 text-lg font-medium",children:"No result found"})})}function U(e){return(0,s.jsx)("svg",{...e,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",children:(0,s.jsx)("path",{d:"m15 18-6-6 6-6"})})}function W(e){return(0,s.jsx)("svg",{...e,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",children:(0,s.jsx)("path",{d:"m9 18 6-6-6-6"})})}function M(){return(0,s.jsx)(s.Fragment,{})}var Y=function(){let e=(0,c.v9)(e=>{var t;return null==e?void 0:null===(t=e.queryResult)||void 0===t?void 0:t.queryResultLoadedValues});return e?(0,s.jsx)("div",{className:"m-6",children:(0,s.jsx)(Q,{data:e})}):(0,s.jsx)("div",{className:"m-6",children:(0,s.jsx)(M,{})})},D=r(46346);let{getReasonPhrase:G}=r(70194);function H(){(0,c.v9)(e=>e.environment.environmentLoadedValues);let e=(0,c.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues}),t=async t=>{try{return(await l.Z.get(t,{headers:{Accept:"application/json",Authorization:(0,S.Z)(e),superduper_reverse_proxy:"http://localhost:8000"}})).data}catch(e){var r,s;throw{status:(null===(r=e.response)||void 0===r?void 0:r.status)||500,message:(null===(s=e.response)||void 0===s?void 0:s.data)||"An unexpected error occurred"}}},{data:r,error:n}=(0,o.ZP)("".concat("".concat("http://localhost:8000","/health")),t,{refreshInterval:3e4,shouldRetryOnError:!1});if(!r&&!n)return(0,s.jsx)(d.Z,{times:6});if(n){console.error("Error Details:",n);let e=n.status||404,t=G(e)||"Service Unavailable";return(0,s.jsx)(u.Z,{header:"REST API",shortMessage:t,status:e,description:"Status: ".concat(e,", Message: ").concat("string"==typeof n.message?n.message:JSON.stringify(n.message))})}return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(D.x,{className:"max-w-7xl whitespace-nowrap",children:[(0,s.jsxs)("div",{className:"min-h-screen grid grid-cols-2 gap-1 px-1",children:[(0,s.jsx)("div",{className:"bg-white",children:(0,s.jsx)(L,{})}),(0,s.jsxs)("div",{className:"bg-white",children:[(0,s.jsx)("br",{}),(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"border-b ml-6 border-gray-900/10 pb-2",children:[(0,s.jsx)("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:"Result"}),(0,s.jsx)("p",{className:"mt-1 text-sm leading-6 text-gray-600 mb-2",children:"You can see the results of your query here."})]}),(0,s.jsx)(Y,{})]})]})]}),(0,s.jsx)(D.B,{orientation:"horizontal"})]})})}var $=(0,i.N)(function(){return(0,s.jsx)(n.Z,{children:(0,s.jsx)(a.Z,{activeNavItem:"/webui/query",children:(0,s.jsx)("main",{className:"py-5",children:(0,s.jsx)("div",{className:"px-4 sm:px-6 lg:px-8",children:(0,s.jsx)("div",{className:"mx-auto max-w-7xl",children:(0,s.jsx)(H,{})})})})})})})},63052:function(e,t,r){"use strict";r.d(t,{Bw:function(){return m},DI:function(){return c},Ph:function(){return l},Ql:function(){return x},i4:function(){return u},ki:function(){return d},n5:function(){return f}});var s=r(27573),n=r(7653),a=r(85688),i=r(66240),o=r(18580);let l=i.fC,c=i.ZA,d=i.B4,u=n.forwardRef((e,t)=>{let{className:r,children:n,...l}=e;return(0,s.jsxs)(i.xz,{ref:t,className:(0,o.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...l,children:[n,(0,s.jsx)(i.JO,{asChild:!0,children:(0,s.jsx)(a.jnn,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=i.xz.displayName;let h=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)(i.u_,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",r),...n,children:(0,s.jsx)(a.g8U,{})})});h.displayName=i.u_.displayName;let p=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)(i.$G,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",r),...n,children:(0,s.jsx)(a.v4q,{})})});p.displayName=i.$G.displayName;let m=n.forwardRef((e,t)=>{let{className:r,children:n,position:a="popper",...l}=e;return(0,s.jsx)(i.h_,{children:(0,s.jsxs)(i.VY,{ref:t,className:(0,o.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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","popper"===a&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:a,...l,children:[(0,s.jsx)(h,{}),(0,s.jsx)(i.l_,{className:(0,o.cn)("p-1","popper"===a&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),(0,s.jsx)(p,{})]})})});m.displayName=i.VY.displayName;let f=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)(i.__,{ref:t,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",r),...n})});f.displayName=i.__.displayName;let x=n.forwardRef((e,t)=>{let{className:r,children:n,...l}=e;return(0,s.jsxs)(i.ck,{ref:t,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...l,children:[(0,s.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(i.wU,{children:(0,s.jsx)(a.nQG,{className:"h-4 w-4"})})}),(0,s.jsx)(i.eT,{children:n})]})});x.displayName=i.ck.displayName,n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)(i.Z0,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",r),...n})}).displayName=i.Z0.displayName},64303:function(e,t,r){"use strict";r.d(t,{SP:function(){return c},dr:function(){return l},mQ:function(){return o},nU:function(){return d}});var s=r(27573),n=r(7653),a=r(84132),i=r(18580);let o=a.fC,l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)(a.aV,{ref:t,className:(0,i.cn)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",r),...n})});l.displayName=a.aV.displayName;let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)(a.xz,{ref:t,className:(0,i.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",r),...n})});c.displayName=a.xz.displayName;let d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)(a.VY,{ref:t,className:(0,i.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",r),...n})});d.displayName=a.VY.displayName},4482:function(e,t,r){"use strict";r.d(t,{_v:function(){return d},aJ:function(){return c},pn:function(){return o},u:function(){return l}});var s=r(27573),n=r(7653),a=r(23098),i=r(18580);let o=a.zt,l=a.fC,c=a.xz,d=n.forwardRef((e,t)=>{let{className:r,sideOffset:n=4,...o}=e;return(0,s.jsx)(a.VY,{ref:t,sideOffset:n,className:(0,i.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",r),...o})});d.displayName=a.VY.displayName},91894:function(e,t,r){"use strict";var s=r(27573),n=r(7653),a=r(412),i=r(33597),o=r(36531);function l(e){return(0,s.jsx)("svg",{...e,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",children:(0,s.jsx)("path",{d:"m6 9 6 6 6-6"})})}function c(e){return(0,s.jsx)("svg",{...e,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",children:(0,s.jsx)("path",{d:"m18 15-6-6-6 6"})})}t.Z=()=>{let e=(0,a.v9)(e=>e.uploadFiles.uploadFilesLoadedValues||[]),[t,r]=(0,n.useState)(!1),[d,u]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{0===e.length||d||r(!0)},[e,d]),(0,s.jsxs)("div",{children:[(0,s.jsxs)(o.z,{variant:"secondary",onClick:()=>{r(!t),u(!0)},children:["Upload Artifact",t?(0,s.jsx)(c,{className:"ml-2 h-4 w-4"}):(0,s.jsx)(l,{className:"ml-2 h-4 w-4"})]}),(t||!d&&0!==e.length)&&(0,s.jsx)("div",{className:"col-span-full mt-2",children:(0,s.jsx)(i.Z,{})})]})}},16800:function(e,t,r){"use strict";var s=r(27573),n=r(7653),a=r(7611);t.Z=function(e){let{children:t,label:r,popovercontent:i,popoverheader:o,trigger:l="hover"}=e,[c,d]=(0,n.useState)(!1),u=(0,n.useRef)(null);return(0,n.useEffect)(()=>{function e(e){u.current&&!u.current.contains(e.target)&&d(!1)}if(c)return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[c,u]),(0,s.jsxs)("div",{ref:u,onMouseEnter:()=>{"hover"===l&&d(!0)},onMouseLeave:()=>{"hover"===l&&d(!1)},className:"w-fit h-fit relative flex justify-center",children:[(0,s.jsx)("div",{onClick:()=>d(!c),children:(0,s.jsx)("label",{htmlFor:r,className:"text-sm font-medium leading-6 text-gray-900 inline-flex overflow-visible",children:(0,s.jsxs)("p",{children:[r," ",(0,s.jsx)("button",{type:"button",className:"opacity-50 cursor-pointer flex items-center space-x-1 rounded-full bg-gray-600 p-2 text-white shadow-sm hover:bg-gray-500 focus:ring focus:outline-none",children:(0,s.jsx)(a.Z,{className:"h-6 w-6","aria-hidden":"true"})})]})})}),(0,s.jsx)("div",{hidden:!c,className:"bottom-[100%] absolute z-50 w-32 text-sm text-gray-500 transition-opacity duration-300 bg-white border border-gray-200 rounded-lg shadow-sm",children:(0,s.jsx)("div",{className:"px-3 py-2 bg-gray-100 border-b border-gray-200 rounded-t-lg dark:border-gray-600 dark:bg-gray-700",children:(0,s.jsx)("h3",{className:"font-semibold text-gray-900 dark:text-white ",children:o})})})]})}}},function(e){e.O(0,[5458,7441,3296,8320,8374,3908,7653,7050,6340,4112,790,9115,3098,3406,6901,3696,935,1826,2895,1293,1528,1744],function(){return e(e.s=41294)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/app/webui/show/page-735e05ddd136f4a0.js b/superduper/rest/out/_next/static/chunks/app/webui/show/page-ed5be0edf3c67b2f.js similarity index 86% rename from superduper/rest/out/_next/static/chunks/app/webui/show/page-735e05ddd136f4a0.js rename to superduper/rest/out/_next/static/chunks/app/webui/show/page-ed5be0edf3c67b2f.js index 14d6bd8e3..28ddd837f 100644 --- a/superduper/rest/out/_next/static/chunks/app/webui/show/page-735e05ddd136f4a0.js +++ b/superduper/rest/out/_next/static/chunks/app/webui/show/page-ed5be0edf3c67b2f.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4652],{42660:function(n,e,i){Promise.resolve().then(i.bind(i,4148))},4148:function(n,e,i){"use strict";i.r(e);var s=i(27573),a=i(21959),c=i(70007),l=i(88280),t=i(4867);e.default=(0,t.N)(function(){return(0,s.jsx)(l.Z,{children:(0,s.jsx)(c.Z,{activeNavItem:"/webui/application",children:(0,s.jsx)("main",{className:"py-10",children:(0,s.jsx)("div",{className:"px-4 sm:px-6 lg:px-8",children:(0,s.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,s.jsx)(a.Z,{application:!1})})})})})})})}},function(n){n.O(0,[5458,7441,3296,8320,8374,3908,7653,7050,4112,790,8307,9078,3696,935,1826,8238,8499,1959,1293,1528,1744],function(){return n(n.s=42660)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4652],{35823:function(n,e,i){Promise.resolve().then(i.bind(i,4148))},4148:function(n,e,i){"use strict";i.r(e);var s=i(27573),a=i(21959),c=i(70007),l=i(88280),t=i(4867);e.default=(0,t.N)(function(){return(0,s.jsx)(l.Z,{children:(0,s.jsx)(c.Z,{activeNavItem:"/webui/application",children:(0,s.jsx)("main",{className:"py-10",children:(0,s.jsx)("div",{className:"px-4 sm:px-6 lg:px-8",children:(0,s.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,s.jsx)(a.Z,{application:!1})})})})})})})}},function(n){n.O(0,[5458,7441,3296,8320,8374,3908,7653,7050,4112,790,8307,9078,3696,935,1826,8238,8499,1959,1293,1528,1744],function(){return n(n.s=35823)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/app/webui/templates/page-9697d99c3231e45a.js b/superduper/rest/out/_next/static/chunks/app/webui/templates/page-10bbc028e2f49a03.js similarity index 99% rename from superduper/rest/out/_next/static/chunks/app/webui/templates/page-9697d99c3231e45a.js rename to superduper/rest/out/_next/static/chunks/app/webui/templates/page-10bbc028e2f49a03.js index f6518bf5d..84136aa8c 100644 --- a/superduper/rest/out/_next/static/chunks/app/webui/templates/page-9697d99c3231e45a.js +++ b/superduper/rest/out/_next/static/chunks/app/webui/templates/page-10bbc028e2f49a03.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6332],{55174:function(e,t,s){Promise.resolve().then(s.bind(s,56999))},56999:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return j}});var a=s(27573),r=s(70790),n=s(13908),i=s(5772),o=s(412),l=s(45246),d=s(7653),c=s(80840),u=s(87285),f=s(92859),m=s(93296),x=s(7109);function p(e){return e.filter(e=>"template"===e.type_id)}function h(){(0,o.v9)(e=>e.environment.environmentLoadedValues);let e=(0,o.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues}),[t,s]=(0,d.useState)(null),[l,h]=(0,d.useState)(null),g=async t=>{try{m.ZP.loading("Fetching latest data",{id:"fetching",position:"bottom-center"});let t=await n.Z.get("".concat("".concat("http://localhost:8000","/db/show")),{headers:{Accept:"application/json",Authorization:(0,x.Z)(e),superduper_reverse_proxy:"http://localhost:8000"}});return console.log("/db/show/ API data:",t.data),m.ZP.dismiss("fetching"),t.data}catch(e){m.ZP.dismiss("fetching"),console.error("Error fetching Services API data")}},v=e=>{let t={};return e.forEach((e,s)=>{let a=e.type_id;t[a]||(t[a]={type_id:a,payload:[]}),t[a].payload.push({id:s+1,identifier:e.identifier,type_id:e.type_id,status:"online",timestamp:"Retrieved 1 minute ago"})}),Object.values(t)},{data:b,error:y}=(0,r.ZP)("".concat("".concat("http://localhost:8000","/db/show")),g,{refreshInterval:6e4,shouldRetryOnError:!1});(0,d.useEffect)(()=>{b?(s(v(b.filter(e=>"application"!==e.type_id))),h(v(p(b)))):(s(v(p([]))),h(v(p([]))))},[b,y]);let[j,w]=(0,d.useState)(!1);return(0,d.useEffect)(()=>{if(l&&0===l.length){let e=setTimeout(()=>{w(!0)},1e3);return()=>clearTimeout(e)}w(!1)},[l]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(f.Z,{title:"Templates",description:"See, add and delete AI app and workflow templates which you can use to create applications.",buttonText:"Add Template",buttonLink:"/webui/add-template"}),(0,a.jsx)("br",{}),(0,a.jsxs)("div",{children:[l?l.length>0?l.map((e,t)=>(0,a.jsx)(c.Z,{data:e},t)):!j&&(0,a.jsx)(i.Z,{}):(0,a.jsx)(i.Z,{}),j&&(0,a.jsx)(u.Z,{header:"No Template Found",description:"Get started by adding a new custom template.",createDeployment:"hide"})]}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{})]})}let{getReasonPhrase:g}=s(70194);function v(){(0,o.v9)(e=>e.environment.environmentLoadedValues);let e=(0,o.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues}),t=async t=>{try{return(await n.Z.get(t,{headers:{Accept:"application/json",Authorization:(0,x.Z)(e),superduper_reverse_proxy:"http://localhost:8000"}})).data}catch(e){var s,a;throw{status:(null===(s=e.response)||void 0===s?void 0:s.status)||500,message:(null===(a=e.response)||void 0===a?void 0:a.data)||"An unexpected error occurred"}}},{data:s,error:d}=(0,r.ZP)("".concat("".concat("http://localhost:8000","/health")),t,{refreshInterval:3e4,shouldRetryOnError:!1});if(!s&&!d)return(0,a.jsx)(i.Z,{times:6});if(d){console.error("Error Details:",d);let e=d.status||404,t=g(e)||"Service Unavailable";return(0,a.jsx)(l.Z,{header:"REST API",shortMessage:t,status:e,description:"Status: ".concat(e,", Message: ").concat("string"==typeof d.message?d.message:JSON.stringify(d.message))})}return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(h,{})})}var b=s(70007),y=s(88280),j=(0,s(4867).N)(function(){return(0,a.jsx)(y.Z,{children:(0,a.jsx)(b.Z,{activeNavItem:"/webui/templates",children:(0,a.jsx)("main",{className:"py-10",children:(0,a.jsx)("div",{className:"px-4 sm:px-6 lg:px-8",children:(0,a.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,a.jsx)("div",{className:"mx-auto max-w-7xl",children:(0,a.jsx)(v,{})})})})})})})})},95042:function(e,t,s){"use strict";s.d(t,{J2:function(){return o},xo:function(){return l},yk:function(){return d}});var a=s(27573),r=s(7653),n=s(61284),i=s(18580);let o=n.fC,l=n.xz;n.ee;let d=r.forwardRef((e,t)=>{let{className:s,align:r="center",sideOffset:o=4,...l}=e;return(0,a.jsx)(n.h_,{children:(0,a.jsx)(n.VY,{ref:t,align:r,sideOffset:o,className:(0,i.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",s),...l})})});d.displayName=n.VY.displayName},70694:function(e,t,s){"use strict";s.d(t,{Ei:function(){return b},FF:function(){return g},Tu:function(){return h},aM:function(){return c},bC:function(){return v},sw:function(){return u},ue:function(){return p},yo:function(){return d}});var a=s(27573),r=s(7653),n=s(67905),i=s(85145),o=s(10269),l=s(18580);let d=n.fC,c=n.xz,u=n.x8,f=n.h_,m=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.aV,{className:(0,l.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...r,ref:t})});m.displayName=n.aV.displayName;let x=(0,i.j)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),p=r.forwardRef((e,t)=>{let{side:s="right",className:r,children:i,...d}=e;return(0,a.jsxs)(f,{children:[(0,a.jsx)(m,{}),(0,a.jsxs)(n.VY,{ref:t,className:(0,l.cn)(x({side:s}),r),...d,children:[i,(0,a.jsxs)(n.x8,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,a.jsx)(o.Z,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});p.displayName=n.VY.displayName;let h=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...s})};h.displayName="SheetHeader";let g=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,l.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...s})};g.displayName="SheetFooter";let v=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.Dx,{ref:t,className:(0,l.cn)("text-lg font-semibold text-foreground",s),...r})});v.displayName=n.Dx.displayName;let b=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.dk,{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",s),...r})});b.displayName=n.dk.displayName},64303:function(e,t,s){"use strict";s.d(t,{SP:function(){return d},dr:function(){return l},mQ:function(){return o},nU:function(){return c}});var a=s(27573),r=s(7653),n=s(84132),i=s(18580);let o=n.fC,l=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.aV,{ref:t,className:(0,i.cn)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",s),...r})});l.displayName=n.aV.displayName;let d=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.xz,{ref:t,className:(0,i.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",s),...r})});d.displayName=n.xz.displayName;let c=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.VY,{ref:t,className:(0,i.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",s),...r})});c.displayName=n.VY.displayName},16800:function(e,t,s){"use strict";var a=s(27573),r=s(7653),n=s(7611);t.Z=function(e){let{children:t,label:s,popovercontent:i,popoverheader:o,trigger:l="hover"}=e,[d,c]=(0,r.useState)(!1),u=(0,r.useRef)(null);return(0,r.useEffect)(()=>{function e(e){u.current&&!u.current.contains(e.target)&&c(!1)}if(d)return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[d,u]),(0,a.jsxs)("div",{ref:u,onMouseEnter:()=>{"hover"===l&&c(!0)},onMouseLeave:()=>{"hover"===l&&c(!1)},className:"w-fit h-fit relative flex justify-center",children:[(0,a.jsx)("div",{onClick:()=>c(!d),children:(0,a.jsx)("label",{htmlFor:s,className:"text-sm font-medium leading-6 text-gray-900 inline-flex overflow-visible",children:(0,a.jsxs)("p",{children:[s," ",(0,a.jsx)("button",{type:"button",className:"opacity-50 cursor-pointer flex items-center space-x-1 rounded-full bg-gray-600 p-2 text-white shadow-sm hover:bg-gray-500 focus:ring focus:outline-none",children:(0,a.jsx)(n.Z,{className:"h-6 w-6","aria-hidden":"true"})})]})})}),(0,a.jsx)("div",{hidden:!d,className:"bottom-[100%] absolute z-50 w-32 text-sm text-gray-500 transition-opacity duration-300 bg-white border border-gray-200 rounded-lg shadow-sm",children:(0,a.jsx)("div",{className:"px-3 py-2 bg-gray-100 border-b border-gray-200 rounded-t-lg dark:border-gray-600 dark:bg-gray-700",children:(0,a.jsx)("h3",{className:"font-semibold text-gray-900 dark:text-white ",children:o})})})]})}},87285:function(e,t,s){"use strict";s.d(t,{Z:function(){return n}});var a=s(27573);s(7653);var r=s(18929);function n(e){let{header:t,description:s,createDeployment:n,showIconPart:i=!0,showHeadUp:o=!1}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),i&&(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",className:"mx-auto h-12 w-12 text-gray-400",children:(0,a.jsx)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"})}),(0,a.jsx)("h3",{className:"mt-2 text-sm font-semibold text-gray-900",children:t||"No Deployments Found"}),(0,a.jsx)("p",{className:"mt-1 text-sm text-gray-500",children:s||"Get started by creating a new deployment."})]}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),n&&"hide"==n?"":(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"flex items-center justify-center",children:(0,a.jsx)("div",{className:"bg-white shadow sm:rounded-lg",children:(0,a.jsx)("div",{className:"px-4 py-5 sm:p-6",children:(0,a.jsxs)("div",{className:"sm:flex sm:items-start sm:justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-base font-semibold leading-6 text-gray-900",children:"Create Deployment"}),(0,a.jsx)("div",{className:"mt-2 max-w-xl text-sm text-gray-500",children:(0,a.jsx)("p",{children:"You have to create a deployment to use SuperDuper, first you need to deploy instances and then we will manage everything for you."})})]}),(0,a.jsx)("div",{className:"mt-5 sm:ml-6 sm:mt-0 sm:flex sm:flex-shrink-0 sm:items-center",children:(0,a.jsx)("a",{href:"/webui/deployment?create=true",children:(0,a.jsxs)("button",{type:"button",className:"inline-flex items-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:["Start Here",(0,a.jsx)("span",{children:" "}),(0,a.jsx)(r.Z,{className:"ml-0.5 -mr.5 h-5 w-5","aria-hidden":"true"})]})})})]})})})})})]})}},98348:function(e,t,s){"use strict";s.d(t,{O:function(){return l}});var a=s(27573),r=s(7653),n=s(2177),i=s(18580);let o=r.forwardRef((e,t)=>{let{className:s,value:r,...o}=e;return(0,a.jsx)(n.fC,{ref:t,className:(0,i.cn)("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",s),...o,children:(0,a.jsx)(n.z$,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:"translateX(-".concat(100-(r||0),"%)")}})})});function l(){let[e,t]=(0,r.useState)(0);return(0,r.useEffect)(()=>{let s=setInterval(()=>{e<95&&t(e=>e+1)},1e3);return()=>clearInterval(s)},[e,95]),(0,a.jsx)(o,{value:e,max:95,className:"w-[100%]"})}o.displayName=n.fC.displayName}},function(e){e.O(0,[5458,7441,3296,8320,8374,3908,7653,7050,4112,790,8307,9078,3696,935,1826,8499,1293,1528,1744],function(){return e(e.s=55174)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6332],{24286:function(e,t,s){Promise.resolve().then(s.bind(s,56999))},56999:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return j}});var a=s(27573),r=s(70790),n=s(13908),i=s(5772),o=s(412),l=s(45246),d=s(7653),c=s(80840),u=s(87285),f=s(92859),m=s(93296),x=s(7109);function p(e){return e.filter(e=>"template"===e.type_id)}function h(){(0,o.v9)(e=>e.environment.environmentLoadedValues);let e=(0,o.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues}),[t,s]=(0,d.useState)(null),[l,h]=(0,d.useState)(null),g=async t=>{try{m.ZP.loading("Fetching latest data",{id:"fetching",position:"bottom-center"});let t=await n.Z.get("".concat("".concat("http://localhost:8000","/db/show")),{headers:{Accept:"application/json",Authorization:(0,x.Z)(e),superduper_reverse_proxy:"http://localhost:8000"}});return console.log("/db/show/ API data:",t.data),m.ZP.dismiss("fetching"),t.data}catch(e){m.ZP.dismiss("fetching"),console.error("Error fetching Services API data")}},v=e=>{let t={};return e.forEach((e,s)=>{let a=e.type_id;t[a]||(t[a]={type_id:a,payload:[]}),t[a].payload.push({id:s+1,identifier:e.identifier,type_id:e.type_id,status:"online",timestamp:"Retrieved 1 minute ago"})}),Object.values(t)},{data:b,error:y}=(0,r.ZP)("".concat("".concat("http://localhost:8000","/db/show")),g,{refreshInterval:6e4,shouldRetryOnError:!1});(0,d.useEffect)(()=>{b?(s(v(b.filter(e=>"application"!==e.type_id))),h(v(p(b)))):(s(v(p([]))),h(v(p([]))))},[b,y]);let[j,w]=(0,d.useState)(!1);return(0,d.useEffect)(()=>{if(l&&0===l.length){let e=setTimeout(()=>{w(!0)},1e3);return()=>clearTimeout(e)}w(!1)},[l]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(f.Z,{title:"Templates",description:"See, add and delete AI app and workflow templates which you can use to create applications.",buttonText:"Add Template",buttonLink:"/webui/add-template"}),(0,a.jsx)("br",{}),(0,a.jsxs)("div",{children:[l?l.length>0?l.map((e,t)=>(0,a.jsx)(c.Z,{data:e},t)):!j&&(0,a.jsx)(i.Z,{}):(0,a.jsx)(i.Z,{}),j&&(0,a.jsx)(u.Z,{header:"No Template Found",description:"Get started by adding a new custom template.",createDeployment:"hide"})]}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{})]})}let{getReasonPhrase:g}=s(70194);function v(){(0,o.v9)(e=>e.environment.environmentLoadedValues);let e=(0,o.v9)(e=>{var t;return null==e?void 0:null===(t=e.userInfo)||void 0===t?void 0:t.userInfoLoadedValues}),t=async t=>{try{return(await n.Z.get(t,{headers:{Accept:"application/json",Authorization:(0,x.Z)(e),superduper_reverse_proxy:"http://localhost:8000"}})).data}catch(e){var s,a;throw{status:(null===(s=e.response)||void 0===s?void 0:s.status)||500,message:(null===(a=e.response)||void 0===a?void 0:a.data)||"An unexpected error occurred"}}},{data:s,error:d}=(0,r.ZP)("".concat("".concat("http://localhost:8000","/health")),t,{refreshInterval:3e4,shouldRetryOnError:!1});if(!s&&!d)return(0,a.jsx)(i.Z,{times:6});if(d){console.error("Error Details:",d);let e=d.status||404,t=g(e)||"Service Unavailable";return(0,a.jsx)(l.Z,{header:"REST API",shortMessage:t,status:e,description:"Status: ".concat(e,", Message: ").concat("string"==typeof d.message?d.message:JSON.stringify(d.message))})}return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(h,{})})}var b=s(70007),y=s(88280),j=(0,s(4867).N)(function(){return(0,a.jsx)(y.Z,{children:(0,a.jsx)(b.Z,{activeNavItem:"/webui/templates",children:(0,a.jsx)("main",{className:"py-10",children:(0,a.jsx)("div",{className:"px-4 sm:px-6 lg:px-8",children:(0,a.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,a.jsx)("div",{className:"mx-auto max-w-7xl",children:(0,a.jsx)(v,{})})})})})})})})},95042:function(e,t,s){"use strict";s.d(t,{J2:function(){return o},xo:function(){return l},yk:function(){return d}});var a=s(27573),r=s(7653),n=s(61284),i=s(18580);let o=n.fC,l=n.xz;n.ee;let d=r.forwardRef((e,t)=>{let{className:s,align:r="center",sideOffset:o=4,...l}=e;return(0,a.jsx)(n.h_,{children:(0,a.jsx)(n.VY,{ref:t,align:r,sideOffset:o,className:(0,i.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",s),...l})})});d.displayName=n.VY.displayName},70694:function(e,t,s){"use strict";s.d(t,{Ei:function(){return b},FF:function(){return g},Tu:function(){return h},aM:function(){return c},bC:function(){return v},sw:function(){return u},ue:function(){return p},yo:function(){return d}});var a=s(27573),r=s(7653),n=s(67905),i=s(85145),o=s(10269),l=s(18580);let d=n.fC,c=n.xz,u=n.x8,f=n.h_,m=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.aV,{className:(0,l.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...r,ref:t})});m.displayName=n.aV.displayName;let x=(0,i.j)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),p=r.forwardRef((e,t)=>{let{side:s="right",className:r,children:i,...d}=e;return(0,a.jsxs)(f,{children:[(0,a.jsx)(m,{}),(0,a.jsxs)(n.VY,{ref:t,className:(0,l.cn)(x({side:s}),r),...d,children:[i,(0,a.jsxs)(n.x8,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,a.jsx)(o.Z,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});p.displayName=n.VY.displayName;let h=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...s})};h.displayName="SheetHeader";let g=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,l.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...s})};g.displayName="SheetFooter";let v=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.Dx,{ref:t,className:(0,l.cn)("text-lg font-semibold text-foreground",s),...r})});v.displayName=n.Dx.displayName;let b=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.dk,{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",s),...r})});b.displayName=n.dk.displayName},64303:function(e,t,s){"use strict";s.d(t,{SP:function(){return d},dr:function(){return l},mQ:function(){return o},nU:function(){return c}});var a=s(27573),r=s(7653),n=s(84132),i=s(18580);let o=n.fC,l=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.aV,{ref:t,className:(0,i.cn)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",s),...r})});l.displayName=n.aV.displayName;let d=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.xz,{ref:t,className:(0,i.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",s),...r})});d.displayName=n.xz.displayName;let c=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.VY,{ref:t,className:(0,i.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",s),...r})});c.displayName=n.VY.displayName},16800:function(e,t,s){"use strict";var a=s(27573),r=s(7653),n=s(7611);t.Z=function(e){let{children:t,label:s,popovercontent:i,popoverheader:o,trigger:l="hover"}=e,[d,c]=(0,r.useState)(!1),u=(0,r.useRef)(null);return(0,r.useEffect)(()=>{function e(e){u.current&&!u.current.contains(e.target)&&c(!1)}if(d)return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[d,u]),(0,a.jsxs)("div",{ref:u,onMouseEnter:()=>{"hover"===l&&c(!0)},onMouseLeave:()=>{"hover"===l&&c(!1)},className:"w-fit h-fit relative flex justify-center",children:[(0,a.jsx)("div",{onClick:()=>c(!d),children:(0,a.jsx)("label",{htmlFor:s,className:"text-sm font-medium leading-6 text-gray-900 inline-flex overflow-visible",children:(0,a.jsxs)("p",{children:[s," ",(0,a.jsx)("button",{type:"button",className:"opacity-50 cursor-pointer flex items-center space-x-1 rounded-full bg-gray-600 p-2 text-white shadow-sm hover:bg-gray-500 focus:ring focus:outline-none",children:(0,a.jsx)(n.Z,{className:"h-6 w-6","aria-hidden":"true"})})]})})}),(0,a.jsx)("div",{hidden:!d,className:"bottom-[100%] absolute z-50 w-32 text-sm text-gray-500 transition-opacity duration-300 bg-white border border-gray-200 rounded-lg shadow-sm",children:(0,a.jsx)("div",{className:"px-3 py-2 bg-gray-100 border-b border-gray-200 rounded-t-lg dark:border-gray-600 dark:bg-gray-700",children:(0,a.jsx)("h3",{className:"font-semibold text-gray-900 dark:text-white ",children:o})})})]})}},87285:function(e,t,s){"use strict";s.d(t,{Z:function(){return n}});var a=s(27573);s(7653);var r=s(18929);function n(e){let{header:t,description:s,createDeployment:n,showIconPart:i=!0,showHeadUp:o=!1}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),i&&(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",className:"mx-auto h-12 w-12 text-gray-400",children:(0,a.jsx)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"})}),(0,a.jsx)("h3",{className:"mt-2 text-sm font-semibold text-gray-900",children:t||"No Deployments Found"}),(0,a.jsx)("p",{className:"mt-1 text-sm text-gray-500",children:s||"Get started by creating a new deployment."})]}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),n&&"hide"==n?"":(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"flex items-center justify-center",children:(0,a.jsx)("div",{className:"bg-white shadow sm:rounded-lg",children:(0,a.jsx)("div",{className:"px-4 py-5 sm:p-6",children:(0,a.jsxs)("div",{className:"sm:flex sm:items-start sm:justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-base font-semibold leading-6 text-gray-900",children:"Create Deployment"}),(0,a.jsx)("div",{className:"mt-2 max-w-xl text-sm text-gray-500",children:(0,a.jsx)("p",{children:"You have to create a deployment to use SuperDuper, first you need to deploy instances and then we will manage everything for you."})})]}),(0,a.jsx)("div",{className:"mt-5 sm:ml-6 sm:mt-0 sm:flex sm:flex-shrink-0 sm:items-center",children:(0,a.jsx)("a",{href:"/webui/deployment?create=true",children:(0,a.jsxs)("button",{type:"button",className:"inline-flex items-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:["Start Here",(0,a.jsx)("span",{children:" "}),(0,a.jsx)(r.Z,{className:"ml-0.5 -mr.5 h-5 w-5","aria-hidden":"true"})]})})})]})})})})})]})}},98348:function(e,t,s){"use strict";s.d(t,{O:function(){return l}});var a=s(27573),r=s(7653),n=s(2177),i=s(18580);let o=r.forwardRef((e,t)=>{let{className:s,value:r,...o}=e;return(0,a.jsx)(n.fC,{ref:t,className:(0,i.cn)("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",s),...o,children:(0,a.jsx)(n.z$,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:"translateX(-".concat(100-(r||0),"%)")}})})});function l(){let[e,t]=(0,r.useState)(0);return(0,r.useEffect)(()=>{let s=setInterval(()=>{e<95&&t(e=>e+1)},1e3);return()=>clearInterval(s)},[e,95]),(0,a.jsx)(o,{value:e,max:95,className:"w-[100%]"})}o.displayName=n.fC.displayName}},function(e){e.O(0,[5458,7441,3296,8320,8374,3908,7653,7050,4112,790,8307,9078,3696,935,1826,8499,1293,1528,1744],function(){return e(e.s=24286)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/app/webui/update/page-5349247e3c94a91d.js b/superduper/rest/out/_next/static/chunks/app/webui/update/page-5349247e3c94a91d.js new file mode 100644 index 000000000..eecd403f9 --- /dev/null +++ b/superduper/rest/out/_next/static/chunks/app/webui/update/page-5349247e3c94a91d.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6482],{3466:function(e,r,n){Promise.resolve().then(n.bind(n,80245))},80245:function(e,r,n){"use strict";n.r(r),n.d(r,{default:function(){return u}});var a=n(27573);n(7653);var t=n(35489),s=n.n(t),i=n(56146);function l(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.aG,{children:(0,a.jsxs)(i.Jb,{children:[(0,a.jsx)(i.gN,{children:(0,a.jsx)(i.At,{href:"/webui",children:"Home"})}),(0,a.jsx)(i.bg,{}),(0,a.jsx)(i.gN,{children:(0,a.jsx)(i.At,{href:"/webui/application",children:"Application"})}),(0,a.jsx)(i.bg,{}),(0,a.jsx)(i.gN,{children:(0,a.jsx)(i.AG,{children:"Update"})})]})}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)(s(),{})]})}var c=n(70007),u=(0,n(4867).N)(function(){return(0,a.jsx)(c.Z,{activeNavItem:"/webui/application",children:(0,a.jsx)("main",{className:"py-10",children:(0,a.jsx)("div",{className:"px-4 sm:px-6 lg:px-8",children:(0,a.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,a.jsx)("div",{className:"mx-auto max-w-3xl",children:(0,a.jsx)(l,{})})})})})})})},35489:function(){},56146:function(e,r,n){"use strict";n.d(r,{AG:function(){return x},At:function(){return o},Jb:function(){return u},aG:function(){return c},bg:function(){return f},gN:function(){return d}});var a=n(27573),t=n(7653),s=n(85688),i=n(8828),l=n(18580);let c=t.forwardRef((e,r)=>{let{...n}=e;return(0,a.jsx)("nav",{ref:r,"aria-label":"breadcrumb",...n})});c.displayName="Breadcrumb";let u=t.forwardRef((e,r)=>{let{className:n,...t}=e;return(0,a.jsx)("ol",{ref:r,className:(0,l.cn)("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",n),...t})});u.displayName="BreadcrumbList";let d=t.forwardRef((e,r)=>{let{className:n,...t}=e;return(0,a.jsx)("li",{ref:r,className:(0,l.cn)("inline-flex items-center gap-1.5",n),...t})});d.displayName="BreadcrumbItem";let o=t.forwardRef((e,r)=>{let{asChild:n,className:t,...s}=e,c=n?i.g7:"a";return(0,a.jsx)(c,{ref:r,className:(0,l.cn)("transition-colors hover:text-foreground",t),...s})});o.displayName="BreadcrumbLink";let x=t.forwardRef((e,r)=>{let{className:n,...t}=e;return(0,a.jsx)("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:(0,l.cn)("font-normal text-foreground",n),...t})});x.displayName="BreadcrumbPage";let f=e=>{let{children:r,className:n,...t}=e;return(0,a.jsx)("li",{role:"presentation","aria-hidden":"true",className:(0,l.cn)("[&>svg]:size-3.5",n),...t,children:null!=r?r:(0,a.jsx)(s.XCv,{})})};f.displayName="BreadcrumbSeparator"},4867:function(e,r,n){"use strict";n.d(r,{N:function(){return a}}),n(27573),n(81695),n(7653),n(412),n(88280),n(39e3),n(74531),n(74859);let a=e=>(e.displayName||e.name,e)}},function(e){e.O(0,[5458,3296,8320,8374,3696,935,1293,1528,1744],function(){return e(e.s=3466)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/app/webui/update/page-b147361a868f6e6b.js b/superduper/rest/out/_next/static/chunks/app/webui/update/page-b147361a868f6e6b.js deleted file mode 100644 index c048ffe2e..000000000 --- a/superduper/rest/out/_next/static/chunks/app/webui/update/page-b147361a868f6e6b.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6482],{28874:function(e,r,n){Promise.resolve().then(n.bind(n,80245))},80245:function(e,r,n){"use strict";n.r(r),n.d(r,{default:function(){return u}});var a=n(27573);n(7653);var t=n(35489),s=n.n(t),i=n(56146);function l(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.aG,{children:(0,a.jsxs)(i.Jb,{children:[(0,a.jsx)(i.gN,{children:(0,a.jsx)(i.At,{href:"/webui",children:"Home"})}),(0,a.jsx)(i.bg,{}),(0,a.jsx)(i.gN,{children:(0,a.jsx)(i.At,{href:"/webui/application",children:"Application"})}),(0,a.jsx)(i.bg,{}),(0,a.jsx)(i.gN,{children:(0,a.jsx)(i.AG,{children:"Update"})})]})}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)(s(),{})]})}var c=n(70007),u=(0,n(4867).N)(function(){return(0,a.jsx)(c.Z,{activeNavItem:"/webui/application",children:(0,a.jsx)("main",{className:"py-10",children:(0,a.jsx)("div",{className:"px-4 sm:px-6 lg:px-8",children:(0,a.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,a.jsx)("div",{className:"mx-auto max-w-3xl",children:(0,a.jsx)(l,{})})})})})})})},35489:function(){},56146:function(e,r,n){"use strict";n.d(r,{AG:function(){return x},At:function(){return o},Jb:function(){return u},aG:function(){return c},bg:function(){return f},gN:function(){return d}});var a=n(27573),t=n(7653),s=n(85688),i=n(8828),l=n(18580);let c=t.forwardRef((e,r)=>{let{...n}=e;return(0,a.jsx)("nav",{ref:r,"aria-label":"breadcrumb",...n})});c.displayName="Breadcrumb";let u=t.forwardRef((e,r)=>{let{className:n,...t}=e;return(0,a.jsx)("ol",{ref:r,className:(0,l.cn)("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",n),...t})});u.displayName="BreadcrumbList";let d=t.forwardRef((e,r)=>{let{className:n,...t}=e;return(0,a.jsx)("li",{ref:r,className:(0,l.cn)("inline-flex items-center gap-1.5",n),...t})});d.displayName="BreadcrumbItem";let o=t.forwardRef((e,r)=>{let{asChild:n,className:t,...s}=e,c=n?i.g7:"a";return(0,a.jsx)(c,{ref:r,className:(0,l.cn)("transition-colors hover:text-foreground",t),...s})});o.displayName="BreadcrumbLink";let x=t.forwardRef((e,r)=>{let{className:n,...t}=e;return(0,a.jsx)("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:(0,l.cn)("font-normal text-foreground",n),...t})});x.displayName="BreadcrumbPage";let f=e=>{let{children:r,className:n,...t}=e;return(0,a.jsx)("li",{role:"presentation","aria-hidden":"true",className:(0,l.cn)("[&>svg]:size-3.5",n),...t,children:null!=r?r:(0,a.jsx)(s.XCv,{})})};f.displayName="BreadcrumbSeparator"},4867:function(e,r,n){"use strict";n.d(r,{N:function(){return a}}),n(27573),n(81695),n(7653),n(412),n(88280),n(39e3),n(74531),n(74859);let a=e=>(e.displayName||e.name,e)}},function(e){e.O(0,[5458,3296,8320,8374,3696,935,1293,1528,1744],function(){return e(e.s=28874)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/chunks/main-app-db31124ee2ed7954.js b/superduper/rest/out/_next/static/chunks/main-app-33b70fe2da17035c.js similarity index 81% rename from superduper/rest/out/_next/static/chunks/main-app-db31124ee2ed7954.js rename to superduper/rest/out/_next/static/chunks/main-app-33b70fe2da17035c.js index dcc56ad60..33a4d733e 100644 --- a/superduper/rest/out/_next/static/chunks/main-app-db31124ee2ed7954.js +++ b/superduper/rest/out/_next/static/chunks/main-app-33b70fe2da17035c.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1744],{17493:function(e,n,t){Promise.resolve().then(t.t.bind(t,11815,23)),Promise.resolve().then(t.t.bind(t,5428,23)),Promise.resolve().then(t.t.bind(t,91584,23)),Promise.resolve().then(t.t.bind(t,55092,23)),Promise.resolve().then(t.t.bind(t,63859,23)),Promise.resolve().then(t.t.bind(t,82023,23))}},function(e){var n=function(n){return e(e.s=n)};e.O(0,[1293,1528],function(){return n(86e3),n(17493)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1744],{56933:function(e,n,t){Promise.resolve().then(t.t.bind(t,11815,23)),Promise.resolve().then(t.t.bind(t,5428,23)),Promise.resolve().then(t.t.bind(t,91584,23)),Promise.resolve().then(t.t.bind(t,55092,23)),Promise.resolve().then(t.t.bind(t,63859,23)),Promise.resolve().then(t.t.bind(t,82023,23))}},function(e){var n=function(n){return e(e.s=n)};e.O(0,[1293,1528],function(){return n(86e3),n(56933)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/superduper/rest/out/_next/static/css/4b610322db99cc76.css b/superduper/rest/out/_next/static/css/4b610322db99cc76.css deleted file mode 100644 index aac1b6269..000000000 --- a/superduper/rest/out/_next/static/css/4b610322db99cc76.css +++ /dev/null @@ -1,3 +0,0 @@ -*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/* -! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com -*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af}input::placeholder,textarea::placeholder{color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow:0 0 #0000}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,input:where(:not([type])):focus,select:focus,textarea:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow:0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:50%;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors:active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors:active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:50%;background-repeat:no-repeat}@media (forced-colors:active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}:root{--background:0 0% 100%;--foreground:222.2 84% 4.9%;--card:0 0% 100%;--card-foreground:222.2 84% 4.9%;--popover:0 0% 100%;--popover-foreground:222.2 84% 4.9%;--primary:222.2 47.4% 11.2%;--primary-foreground:210 40% 98%;--secondary:210 40% 96.1%;--secondary-foreground:222.2 47.4% 11.2%;--muted:210 40% 96.1%;--muted-foreground:215.4 16.3% 46.9%;--accent:210 40% 96.1%;--accent-foreground:222.2 47.4% 11.2%;--destructive:0 84.2% 60.2%;--destructive-foreground:210 40% 98%;--border:214.3 31.8% 91.4%;--input:214.3 31.8% 91.4%;--ring:222.2 84% 4.9%;--radius:0.5rem}.dark{--background:222.2 84% 4.9%;--foreground:210 40% 98%;--card:222.2 84% 4.9%;--card-foreground:210 40% 98%;--popover:222.2 84% 4.9%;--popover-foreground:210 40% 98%;--primary:210 40% 98%;--primary-foreground:222.2 47.4% 11.2%;--secondary:217.2 32.6% 17.5%;--secondary-foreground:210 40% 98%;--muted:217.2 32.6% 17.5%;--muted-foreground:215 20.2% 65.1%;--accent:217.2 32.6% 17.5%;--accent-foreground:210 40% 98%;--destructive:0 62.8% 30.6%;--destructive-foreground:210 40% 98%;--border:217.2 32.6% 17.5%;--input:217.2 32.6% 17.5%;--ring:212.7 26.8% 83.9%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}@font-face{font-family:Inter;src:url(/webui_asset/fonts/Inter-Regular.woff2) format("woff2");font-weight:400;font-style:normal}@font-face{font-family:Inter;src:url(/webui_asset/fonts/Inter-Medium.woff2) format("woff2");font-weight:500;font-style:normal}@font-face{font-family:Inter;src:url(/webui_asset/fonts/Inter-SemiBold.woff2) format("woff2");font-weight:600;font-style:normal}@font-face{font-family:Inter;src:url(/webui_asset/fonts/Inter-Bold.woff2) format("woff2");font-weight:700;font-style:normal}@font-face{font-family:Inter;src:url(/webui_asset/fonts/Inter-ExtraBold.woff2) format("woff2");font-weight:800;font-style:normal}@font-face{font-family:Inter;src:url(/webui_asset/fonts/Inter-Black.woff2) format("woff2");font-weight:900;font-style:normal}.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width:1400px){.container{max-width:1400px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-inset-px{inset:-1px}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-right-40{right:-10rem}.bottom-0{bottom:0}.bottom-8{bottom:2rem}.bottom-\[100\%\]{bottom:100%}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-4{left:1rem}.left-\[50\%\]{left:50%}.left-full{left:100%}.right-0{right:0}.right-2{right:.5rem}.right-4{right:1rem}.right-5{right:1.25rem}.top-0{top:0}.top-1\/2{top:50%}.top-3\.5{top:.875rem}.top-4{top:1rem}.top-\[1px\]{top:1px}.top-\[50\%\]{top:50%}.top-\[60\%\]{top:60%}.top-full{top:100%}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-\[1\]{z-index:1}.col-span-2{grid-column:span 2/span 2}.col-span-4{grid-column:span 4/span 4}.col-span-full{grid-column:1/-1}.-m-1\.5{margin:-.375rem}.-m-2\.5{margin:-.625rem}.m-0\.5{margin:.125rem}.m-2{margin:.5rem}.m-6{margin:1.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-2{margin-left:-.5rem;margin-right:-.5rem}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-16{margin-top:4rem;margin-bottom:4rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-mb-2{margin-bottom:-.5rem}.-ml-4{margin-left:-1rem}.-mr-0\.5{margin-right:-.125rem}.-mr-1{margin-right:-.25rem}.-mt-10{margin-top:-2.5rem}.-mt-20{margin-top:-5rem}.-mt-4{margin-top:-1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-2\.5{margin-bottom:.625rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.me-0{margin-inline-end:0}.ml-0\.5{margin-left:.125rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-8{margin-left:2rem}.ml-auto{margin-left:auto}.mr-16{margin-right:4rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mr-auto{margin-right:auto}.-mt-6{margin-top:-1.5rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-2\.5{margin-top:.625rem}.mt-20{margin-top:5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.size-6{width:1.5rem;height:1.5rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-3\/4{height:75%}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-72{height:18rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[1px\]{height:1px}.h-\[200px\]{height:200px}.h-\[400px\]{height:400px}.h-\[50vh\]{height:50vh}.h-\[600px\]{height:600px}.h-\[calc\(100vh-300px\)\]{height:calc(100vh - 300px)}.h-\[var\(--radix-navigation-menu-viewport-height\)\]{height:var(--radix-navigation-menu-viewport-height)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-40{max-height:10rem}.max-h-60{max-height:15rem}.max-h-96{max-height:24rem}.max-h-\[300px\]{max-height:300px}.max-h-\[400px\]{max-height:400px}.max-h-\[60vh\]{max-height:60vh}.max-h-\[80vh\]{max-height:80vh}.max-h-full{max-height:100%}.max-h-screen{max-height:100vh}.min-h-0{min-height:0}.min-h-\[100px\]{min-height:100px}.min-h-\[400px\]{min-height:400px}.min-h-\[40vh\]{min-height:40vh}.min-h-\[50vh\]{min-height:50vh}.min-h-\[60px\]{min-height:60px}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-2\/3{width:66.666667%}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-3\/6{width:50%}.w-32{width:8rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-72{width:18rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-\[10\%\]{width:10%}.w-\[100\%\]{width:100%}.w-\[100px\]{width:100px}.w-\[150px\]{width:150px}.w-\[1px\]{width:1px}.w-\[200px\]{width:200px}.w-\[280px\]{width:280px}.w-\[350px\]{width:350px}.w-\[800px\]{width:800px}.w-\[90\%\]{width:90%}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.min-w-full{min-width:100%}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-max{max-width:-moz-max-content;max-width:max-content}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.caption-bottom{caption-side:bottom}.origin-top-right{transform-origin:top right}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-x-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x:-100%}.-translate-y-1\/2{--tw-translate-y:-50%}.-translate-y-1\/2,.translate-x-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x:0px}.translate-x-5{--tw-translate-x:1.25rem}.translate-x-5,.translate-x-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[-50\%\]{--tw-translate-x:-50%}.translate-y-\[-50\%\]{--tw-translate-y:-50%}.rotate-45,.translate-y-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate:45deg}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-100,.scale-95{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.scroll-py-3{scroll-padding-top:.75rem;scroll-padding-bottom:.75rem}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-2\.5{-moz-column-gap:.625rem;column-gap:.625rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.gap-y-2\.5{row-gap:.625rem}.gap-y-5{row-gap:1.25rem}.gap-y-6{row-gap:1.5rem}.gap-y-7{row-gap:1.75rem}.gap-y-8{row-gap:2rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-12>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(3rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(3rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(243 244 246/var(--tw-divide-opacity,1))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 231 235/var(--tw-divide-opacity,1))}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-r-md{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.rounded-t-lg{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.rounded-tl-sm{border-top-left-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-r-8{border-right-width:8px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-border{border-color:hsl(var(--border))}.border-destructive\/50{border-color:hsl(var(--destructive)/.5)}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.border-gray-700{--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity,1))}.border-gray-800\/50{border-color:rgba(31,41,55,.5)}.border-gray-900\/10{border-color:rgba(17,24,39,.1)}.border-gray-900\/25{border-color:rgba(17,24,39,.25)}.border-indigo-600{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-transparent{border-color:transparent}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-black\/80{background-color:rgba(0,0,0,.8)}.bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-current{background-color:currentColor}.bg-destructive{background-color:hsl(var(--destructive))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.bg-gray-100\/10{background-color:rgba(243,244,246,.1)}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity,1))}.bg-gray-600{--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity,1))}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.bg-gray-900\/80{background-color:rgba(17,24,39,.8)}.bg-green-400\/10{background-color:rgba(74,222,128,.1)}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity,1))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/50{background-color:hsl(var(--muted)/.5)}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/20{background-color:hsl(var(--primary)/.2)}.bg-primary\/5{background-color:hsl(var(--primary)/.05)}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.bg-rose-400\/10{background-color:rgba(251,113,133,.1)}.bg-rose-50{--tw-bg-opacity:1;background-color:rgb(255 241 242/var(--tw-bg-opacity,1))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-yellow-400\/10{background-color:rgba(250,204,21,.1)}.bg-yellow-50{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity,1))}.bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity,1))}.bg-opacity-25{--tw-bg-opacity:0.25}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-background{--tw-gradient-from:hsl(var(--background)) var(--tw-gradient-from-position);--tw-gradient-to:hsl(var(--background)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-primary\/10{--tw-gradient-from:hsl(var(--primary)/0.1) var(--tw-gradient-from-position);--tw-gradient-to:hsl(var(--primary)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-muted{--tw-gradient-to:hsl(var(--muted)) var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to:transparent var(--tw-gradient-to-position)}.fill-current{fill:currentColor}.fill-yellow-600{fill:#ca8a04}.p-0{padding:0}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-12{padding:3rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[1px\]{padding:1px}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-14{padding-top:3.5rem;padding-bottom:3.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-0{padding-bottom:0}.pb-12{padding-bottom:3rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-1{padding-left:.25rem}.pl-11{padding-left:2.75rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-3{padding-left:.75rem}.pl-8{padding-left:2rem}.pr-0{padding-right:0}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.pr-9{padding-right:2.25rem}.pt-0{padding-top:0}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\[0\.625rem\]{font-size:.625rem}.text-\[0\.8rem\]{font-size:.8rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-tighter{letter-spacing:-.05em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-\[\#666\]{--tw-text-opacity:1;color:rgb(102 102 102/var(--tw-text-opacity,1))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.text-blue-400{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-cyan-400{--tw-text-opacity:1;color:rgb(34 211 238/var(--tw-text-opacity,1))}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-gray-200{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity,1))}.text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity,1))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1))}.text-indigo-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.text-indigo-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-purple-400{--tw-text-opacity:1;color:rgb(192 132 252/var(--tw-text-opacity,1))}.text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}.text-rose-400{--tw-text-opacity:1;color:rgb(251 113 133/var(--tw-text-opacity,1))}.text-rose-500{--tw-text-opacity:1;color:rgb(244 63 94/var(--tw-text-opacity,1))}.text-rose-700{--tw-text-opacity:1;color:rgb(190 18 60/var(--tw-text-opacity,1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.text-yellow-400{--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity,1))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}.text-yellow-700{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-2xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-lg,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-0,.ring-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-inset{--tw-ring-inset:inset}.ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity,1))}.ring-black\/20{--tw-ring-color:rgba(0,0,0,.2)}.ring-gray-300{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity,1))}.ring-gray-500\/10{--tw-ring-color:hsla(220,9%,46%,.1)}.ring-gray-900\/5{--tw-ring-color:rgba(17,24,39,.05)}.ring-green-600\/20{--tw-ring-color:rgba(22,163,74,.2)}.ring-indigo-500{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.ring-indigo-600{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity,1))}.ring-red-600\/20{--tw-ring-color:rgba(220,38,38,.2)}.ring-rose-600\/20{--tw-ring-color:rgba(225,29,72,.2)}.ring-yellow-600\/20{--tw-ring-color:rgba(202,138,4,.2)}.ring-opacity-5{--tw-ring-opacity:0.05}.ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.fade-in-0{--tw-enter-opacity:0}.zoom-in-95{--tw-enter-scale:.95}.duration-100{animation-duration:.1s}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.duration-500{animation-duration:.5s}.duration-75{animation-duration:75ms}.ease-in{animation-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{animation-timing-function:linear}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.running{animation-play-state:running}.scrollbar-visible::-webkit-scrollbar{width:10px}.scrollbar-visible::-webkit-scrollbar-track{background:#f1f1f1}.scrollbar-visible::-webkit-scrollbar-thumb{background:#888;border-radius:5px}.scrollbar-visible::-webkit-scrollbar-thumb:hover{background:#555}.file\:mr-4::file-selector-button{margin-right:1rem}.file\:rounded-full::file-selector-button{border-radius:9999px}.file\:border-0::file-selector-button{border-width:0}.file\:bg-indigo-50::file-selector-button{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:px-4::file-selector-button{padding-left:1rem;padding-right:1rem}.file\:py-2::file-selector-button{padding-top:.5rem;padding-bottom:.5rem}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:font-semibold::file-selector-button{font-weight:600}.file\:text-indigo-700::file-selector-button{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.placeholder\:text-gray-400::-moz-placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.placeholder\:text-gray-400::placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.last\:border-0:last-child{border-width:0}.focus-within\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}.focus-within\:ring-2:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-within\:ring-indigo-600:focus-within{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity,1))}.focus-within\:ring-offset-2:focus-within{--tw-ring-offset-width:2px}.hover\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-gray-400:hover{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity,1))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-blue-500:hover{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.hover\:bg-blue-700:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity,1))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive)/.8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.hover\:bg-gray-500:hover{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity,1))}.hover\:bg-gray-600:hover{--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity,1))}.hover\:bg-indigo-500:hover{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.hover\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity,1))}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted)/.5)}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary)/.8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}.hover\:bg-red-500:hover{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary)/.8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-gray-200:hover{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity,1))}.hover\:text-gray-500:hover{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.hover\:text-gray-600:hover{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.hover\:text-gray-900:hover{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.hover\:text-indigo-500:hover{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.hover\:text-indigo-600:hover{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.hover\:text-red-500:hover{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:ring-gray-400:hover{--tw-ring-opacity:1;--tw-ring-color:rgb(156 163 175/var(--tw-ring-opacity,1))}.hover\:file\:bg-indigo-100::file-selector-button:hover{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-0:focus,.focus\:ring:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-1:focus,.focus\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-inset:focus{--tw-ring-inset:inset}.focus\:ring-indigo-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.focus\:ring-indigo-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity,1))}.focus\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\:ring-transparent:focus{--tw-ring-color:transparent}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:outline-2:focus-visible{outline-width:2px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\:outline-blue-600:focus-visible{outline-color:#2563eb}.focus-visible\:outline-indigo-500:focus-visible{outline-color:#3b82f6}.focus-visible\:outline-indigo-600:focus-visible{outline-color:#2563eb}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-gray-950:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(3 7 18/var(--tw-ring-opacity,1))}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:border-indigo-600{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}.group:hover .group-hover\:text-indigo-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.group:hover .group-hover\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.aria-selected\:bg-accent[aria-selected=true]{background-color:hsl(var(--accent))}.aria-selected\:text-accent-foreground[aria-selected=true]{color:hsl(var(--accent-foreground))}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom],.data-\[side\=left\]\:-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right],.data-\[side\=top\]\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\[active\]\:bg-accent\/50[data-active]{background-color:hsl(var(--accent)/.5)}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:hsl(var(--accent)/.5)}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow[data-state=active]{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[motion\^\=from-\]\:animate-in[data-motion^=from-],.data-\[state\=open\]\:animate-in[data-state=open],.data-\[state\=visible\]\:animate-in[data-state=visible]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\[motion\^\=to-\]\:animate-out[data-motion^=to-],.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[state\=hidden\]\:animate-out[data-state=hidden]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\[motion\^\=from-\]\:fade-in[data-motion^=from-]{--tw-enter-opacity:0}.data-\[motion\^\=to-\]\:fade-out[data-motion^=to-],.data-\[state\=closed\]\:fade-out-0[data-state=closed],.data-\[state\=hidden\]\:fade-out[data-state=hidden]{--tw-exit-opacity:0}.data-\[state\=open\]\:fade-in-0[data-state=open],.data-\[state\=visible\]\:fade-in[data-state=visible]{--tw-enter-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:zoom-in-90[data-state=open]{--tw-enter-scale:.9}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[motion\=from-end\]\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x:13rem}.data-\[motion\=from-start\]\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x:-13rem}.data-\[motion\=to-end\]\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x:13rem}.data-\[motion\=to-start\]\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x:-13rem}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y:-48%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}.group[data-state=open] .group-data-\[state\=open\]\:rotate-180{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:divide-gray-700:is(.dark *)>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(55 65 81/var(--tw-divide-opacity,1))}.dark\:border-destructive:is(.dark *){border-color:hsl(var(--destructive))}.dark\:border-gray-600:is(.dark *){--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity,1))}.dark\:border-gray-800:is(.dark *){--tw-border-opacity:1;border-color:rgb(31 41 55/var(--tw-border-opacity,1))}.dark\:bg-blue-900:is(.dark *){--tw-bg-opacity:1;background-color:rgb(30 58 138/var(--tw-bg-opacity,1))}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.dark\:bg-gray-950:is(.dark *){--tw-bg-opacity:1;background-color:rgb(3 7 18/var(--tw-bg-opacity,1))}.dark\:bg-red-900:is(.dark *){--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity,1))}.dark\:text-blue-300:is(.dark *){--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity,1))}.dark\:text-blue-400:is(.dark *){--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.dark\:text-gray-100:is(.dark *){--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity,1))}.dark\:text-gray-300:is(.dark *){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.dark\:text-green-400:is(.dark *){--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity,1))}.dark\:text-red-400:is(.dark *){--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.dark\:text-rose-400:is(.dark *){--tw-text-opacity:1;color:rgb(251 113 133/var(--tw-text-opacity,1))}.dark\:text-white:is(.dark *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\:text-yellow-400:is(.dark *){--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity,1))}.dark\:hover\:bg-gray-800:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.dark\:hover\:bg-red-900:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity,1))}.dark\:hover\:text-gray-50:hover:is(.dark *){--tw-text-opacity:1;color:rgb(249 250 251/var(--tw-text-opacity,1))}.dark\:focus-visible\:ring-gray-300:focus-visible:is(.dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity,1))}@media (min-width:640px){.sm\:col-span-1{grid-column:span 1/span 1}.sm\:col-span-3{grid-column:span 3/span 3}.sm\:col-span-5{grid-column:span 5/span 5}.sm\:col-span-6{grid-column:span 6/span 6}.sm\:ml-6{margin-left:1.5rem}.sm\:mt-0{margin-top:0}.sm\:flex{display:flex}.sm\:h-\[80vh\]{height:80vh}.sm\:w-0{width:0}.sm\:w-\[800px\]{width:800px}.sm\:max-w-\[1000px\]{max-width:1000px}.sm\:max-w-\[425px\]{max-width:425px}.sm\:max-w-\[50vw\]{max-width:50vw}.sm\:max-w-\[600px\]{max-width:600px}.sm\:max-w-\[768px\]{max-width:768px}.sm\:max-w-md{max-width:28rem}.sm\:max-w-none{max-width:none}.sm\:max-w-sm{max-width:24rem}.sm\:max-w-xs{max-width:20rem}.sm\:flex-1{flex:1 1 0%}.sm\:flex-shrink-0{flex-shrink:0}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.sm\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-nowrap{flex-wrap:nowrap}.sm\:items-start{align-items:flex-start}.sm\:items-center{align-items:center}.sm\:justify-start{justify-content:flex-start}.sm\:justify-end{justify-content:flex-end}.sm\:justify-between{justify-content:space-between}.sm\:gap-2\.5{gap:.625rem}.sm\:gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.sm\:gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:p-6{padding:1.5rem}.sm\:px-14{padding-left:3.5rem;padding-right:3.5rem}.sm\:px-2{padding-left:.5rem;padding-right:.5rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:px-6{padding-left:1.5rem}.sm\:pr-6,.sm\:px-6{padding-right:1.5rem}.sm\:text-left{text-align:left}.sm\:text-6xl{font-size:3.75rem;line-height:1}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:text-xl{font-size:1.25rem;line-height:1.75rem}.sm\:leading-6{line-height:1.5rem}}@media (min-width:768px){.md\:absolute{position:absolute}.md\:w-1\/3{width:33.333333%}.md\:w-2\/3{width:66.666667%}.md\:w-\[var\(--radix-navigation-menu-viewport-width\)\]{width:var(--radix-navigation-menu-viewport-width)}.md\:w-auto{width:auto}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:border-r{border-right-width:1px}.md\:p-20{padding:5rem}.md\:p-6{padding:1.5rem}.md\:py-24{padding-top:6rem;padding-bottom:6rem}.md\:pl-8{padding-left:2rem}.md\:pr-8{padding-right:2rem}}@media (min-width:1024px){.lg\:fixed{position:fixed}.lg\:inset-y-0{top:0;bottom:0}.lg\:z-50{z-index:50}.lg\:mx-0{margin-left:0;margin-right:0}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:h-6{height:1.5rem}.lg\:min-h-\[600px\]{min-height:600px}.lg\:w-72{width:18rem}.lg\:w-px{width:1px}.lg\:max-w-none{max-width:none}.lg\:max-w-screen-lg{max-width:1024px}.lg\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:flex-col{flex-direction:column}.lg\:items-center{align-items:center}.lg\:gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.lg\:bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:pl-72{padding-left:18rem}.lg\:pr-8{padding-right:2rem}}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y:2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y:-3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:left-4>svg{left:1rem}.\[\&\>svg\]\:top-4>svg{top:1rem}.\[\&\>svg\]\:size-3\.5>svg{width:.875rem;height:.875rem}.\[\&\>svg\]\:text-destructive>svg{color:hsl(var(--destructive))}.\[\&\>svg\]\:text-foreground>svg{color:hsl(var(--foreground))}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:1.75rem}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-top:.375rem;padding-bottom:.375rem}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{font-weight:500}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:hsl(var(--muted-foreground))}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:3rem}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-top:.75rem;padding-bottom:.75rem}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:1.25rem}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:1.25rem}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0}.\[\&_tr\]\:border-b tr{border-bottom-width:1px} \ No newline at end of file diff --git a/superduper/rest/out/_next/static/css/df5692dccd88b7b4.css b/superduper/rest/out/_next/static/css/df5692dccd88b7b4.css new file mode 100644 index 000000000..519aefa03 --- /dev/null +++ b/superduper/rest/out/_next/static/css/df5692dccd88b7b4.css @@ -0,0 +1,3 @@ +*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/* +! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com +*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af}input::placeholder,textarea::placeholder{color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow:0 0 #0000}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,input:where(:not([type])):focus,select:focus,textarea:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow:0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:50%;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors:active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors:active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:50%;background-repeat:no-repeat}@media (forced-colors:active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}:root{--background:0 0% 100%;--foreground:222.2 84% 4.9%;--card:0 0% 100%;--card-foreground:222.2 84% 4.9%;--popover:0 0% 100%;--popover-foreground:222.2 84% 4.9%;--primary:222.2 47.4% 11.2%;--primary-foreground:210 40% 98%;--secondary:210 40% 96.1%;--secondary-foreground:222.2 47.4% 11.2%;--muted:210 40% 96.1%;--muted-foreground:215.4 16.3% 46.9%;--accent:210 40% 96.1%;--accent-foreground:222.2 47.4% 11.2%;--destructive:0 84.2% 60.2%;--destructive-foreground:210 40% 98%;--border:214.3 31.8% 91.4%;--input:214.3 31.8% 91.4%;--ring:222.2 84% 4.9%;--radius:0.5rem}.dark{--background:222.2 84% 4.9%;--foreground:210 40% 98%;--card:222.2 84% 4.9%;--card-foreground:210 40% 98%;--popover:222.2 84% 4.9%;--popover-foreground:210 40% 98%;--primary:210 40% 98%;--primary-foreground:222.2 47.4% 11.2%;--secondary:217.2 32.6% 17.5%;--secondary-foreground:210 40% 98%;--muted:217.2 32.6% 17.5%;--muted-foreground:215 20.2% 65.1%;--accent:217.2 32.6% 17.5%;--accent-foreground:210 40% 98%;--destructive:0 62.8% 30.6%;--destructive-foreground:210 40% 98%;--border:217.2 32.6% 17.5%;--input:217.2 32.6% 17.5%;--ring:212.7 26.8% 83.9%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}@font-face{font-family:Inter;src:url(/webui_asset/fonts/Inter-Regular.woff2) format("woff2");font-weight:400;font-style:normal}@font-face{font-family:Inter;src:url(/webui_asset/fonts/Inter-Medium.woff2) format("woff2");font-weight:500;font-style:normal}@font-face{font-family:Inter;src:url(/webui_asset/fonts/Inter-SemiBold.woff2) format("woff2");font-weight:600;font-style:normal}@font-face{font-family:Inter;src:url(/webui_asset/fonts/Inter-Bold.woff2) format("woff2");font-weight:700;font-style:normal}@font-face{font-family:Inter;src:url(/webui_asset/fonts/Inter-ExtraBold.woff2) format("woff2");font-weight:800;font-style:normal}@font-face{font-family:Inter;src:url(/webui_asset/fonts/Inter-Black.woff2) format("woff2");font-weight:900;font-style:normal}.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width:1400px){.container{max-width:1400px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-inset-px{inset:-1px}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-right-40{right:-10rem}.bottom-0{bottom:0}.bottom-8{bottom:2rem}.bottom-\[100\%\]{bottom:100%}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-4{left:1rem}.left-\[50\%\]{left:50%}.left-full{left:100%}.right-0{right:0}.right-2{right:.5rem}.right-4{right:1rem}.right-5{right:1.25rem}.top-0{top:0}.top-1\/2{top:50%}.top-3\.5{top:.875rem}.top-4{top:1rem}.top-\[1px\]{top:1px}.top-\[50\%\]{top:50%}.top-\[60\%\]{top:60%}.top-full{top:100%}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.z-\[1\]{z-index:1}.col-span-2{grid-column:span 2/span 2}.col-span-4{grid-column:span 4/span 4}.col-span-full{grid-column:1/-1}.-m-1\.5{margin:-.375rem}.-m-2\.5{margin:-.625rem}.m-0\.5{margin:.125rem}.m-2{margin:.5rem}.m-6{margin:1.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-2{margin-left:-.5rem;margin-right:-.5rem}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-16{margin-top:4rem;margin-bottom:4rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-mb-2{margin-bottom:-.5rem}.-ml-4{margin-left:-1rem}.-mr-0\.5{margin-right:-.125rem}.-mr-1{margin-right:-.25rem}.-mt-10{margin-top:-2.5rem}.-mt-20{margin-top:-5rem}.-mt-4{margin-top:-1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-2\.5{margin-bottom:.625rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.me-0{margin-inline-end:0}.ml-0\.5{margin-left:.125rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-8{margin-left:2rem}.ml-auto{margin-left:auto}.mr-16{margin-right:4rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mr-auto{margin-right:auto}.-mt-6{margin-top:-1.5rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-2\.5{margin-top:.625rem}.mt-20{margin-top:5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.size-6{width:1.5rem;height:1.5rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-3\/4{height:75%}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-72{height:18rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[1px\]{height:1px}.h-\[200px\]{height:200px}.h-\[400px\]{height:400px}.h-\[450px\]{height:450px}.h-\[50vh\]{height:50vh}.h-\[550px\]{height:550px}.h-\[calc\(100vh-300px\)\]{height:calc(100vh - 300px)}.h-\[var\(--radix-navigation-menu-viewport-height\)\]{height:var(--radix-navigation-menu-viewport-height)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-40{max-height:10rem}.max-h-60{max-height:15rem}.max-h-96{max-height:24rem}.max-h-\[300px\]{max-height:300px}.max-h-\[400px\]{max-height:400px}.max-h-\[60vh\]{max-height:60vh}.max-h-\[80vh\]{max-height:80vh}.max-h-full{max-height:100%}.max-h-screen{max-height:100vh}.min-h-0{min-height:0}.min-h-\[100px\]{min-height:100px}.min-h-\[400px\]{min-height:400px}.min-h-\[40vh\]{min-height:40vh}.min-h-\[50vh\]{min-height:50vh}.min-h-\[60px\]{min-height:60px}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-2\/3{width:66.666667%}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-3\/6{width:50%}.w-32{width:8rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-72{width:18rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-\[10\%\]{width:10%}.w-\[100\%\]{width:100%}.w-\[100px\]{width:100px}.w-\[150px\]{width:150px}.w-\[1px\]{width:1px}.w-\[200px\]{width:200px}.w-\[280px\]{width:280px}.w-\[350px\]{width:350px}.w-\[800px\]{width:800px}.w-\[90\%\]{width:90%}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.min-w-full{min-width:100%}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-max{max-width:-moz-max-content;max-width:max-content}.max-w-md{max-width:28rem}.max-w-none{max-width:none}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.caption-bottom{caption-side:bottom}.origin-top-right{transform-origin:top right}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-x-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x:-100%}.-translate-y-1\/2{--tw-translate-y:-50%}.-translate-y-1\/2,.translate-x-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x:0px}.translate-x-5{--tw-translate-x:1.25rem}.translate-x-5,.translate-x-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[-50\%\]{--tw-translate-x:-50%}.translate-y-\[-50\%\]{--tw-translate-y:-50%}.rotate-45,.translate-y-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate:45deg}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-100,.scale-95{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.scroll-py-3{scroll-padding-top:.75rem;scroll-padding-bottom:.75rem}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-2\.5{-moz-column-gap:.625rem;column-gap:.625rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.gap-y-2\.5{row-gap:.625rem}.gap-y-5{row-gap:1.25rem}.gap-y-6{row-gap:1.5rem}.gap-y-7{row-gap:1.75rem}.gap-y-8{row-gap:2rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-12>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(3rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(3rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(243 244 246/var(--tw-divide-opacity,1))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 231 235/var(--tw-divide-opacity,1))}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-r-md{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.rounded-t-lg{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.rounded-tl-sm{border-top-left-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-r-8{border-right-width:8px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-destructive\/50{border-color:hsl(var(--destructive)/.5)}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.border-gray-600{--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity,1))}.border-gray-700{--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity,1))}.border-gray-800\/50{border-color:rgba(31,41,55,.5)}.border-gray-900\/10{border-color:rgba(17,24,39,.1)}.border-gray-900\/25{border-color:rgba(17,24,39,.25)}.border-indigo-600{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-transparent{border-color:transparent}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\[\#1c2127\]{--tw-bg-opacity:1;background-color:rgb(28 33 39/var(--tw-bg-opacity,1))}.bg-background{background-color:hsl(var(--background))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-black\/80{background-color:rgba(0,0,0,.8)}.bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-current{background-color:currentColor}.bg-destructive{background-color:hsl(var(--destructive))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.bg-gray-100\/10{background-color:rgba(243,244,246,.1)}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.bg-gray-400\/10{background-color:rgba(156,163,175,.1)}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity,1))}.bg-gray-600{--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity,1))}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.bg-gray-900\/80{background-color:rgba(17,24,39,.8)}.bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity,1))}.bg-green-400\/10{background-color:rgba(74,222,128,.1)}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity,1))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/50{background-color:hsl(var(--muted)/.5)}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/20{background-color:hsl(var(--primary)/.2)}.bg-primary\/5{background-color:hsl(var(--primary)/.05)}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.bg-red-400\/10{background-color:hsla(0,91%,71%,.1)}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.bg-rose-400\/10{background-color:rgba(251,113,133,.1)}.bg-rose-50{--tw-bg-opacity:1;background-color:rgb(255 241 242/var(--tw-bg-opacity,1))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity,1))}.bg-yellow-400\/10{background-color:rgba(250,204,21,.1)}.bg-yellow-50{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity,1))}.bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity,1))}.bg-opacity-25{--tw-bg-opacity:0.25}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-background{--tw-gradient-from:hsl(var(--background)) var(--tw-gradient-from-position);--tw-gradient-to:hsl(var(--background)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-primary\/10{--tw-gradient-from:hsl(var(--primary)/0.1) var(--tw-gradient-from-position);--tw-gradient-to:hsl(var(--primary)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-muted{--tw-gradient-to:hsl(var(--muted)) var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to:transparent var(--tw-gradient-to-position)}.fill-current{fill:currentColor}.fill-yellow-600{fill:#ca8a04}.p-0{padding:0}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-12{padding:3rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[1px\]{padding:1px}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-14{padding-top:3.5rem;padding-bottom:3.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-0{padding-bottom:0}.pb-12{padding-bottom:3rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-1{padding-left:.25rem}.pl-11{padding-left:2.75rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-3{padding-left:.75rem}.pl-8{padding-left:2rem}.pr-0{padding-right:0}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.pr-9{padding-right:2.25rem}.pt-0{padding-top:0}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\[0\.625rem\]{font-size:.625rem}.text-\[0\.8rem\]{font-size:.8rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-tighter{letter-spacing:-.05em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-\[\#666\]{--tw-text-opacity:1;color:rgb(102 102 102/var(--tw-text-opacity,1))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.text-blue-400{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-cyan-400{--tw-text-opacity:1;color:rgb(34 211 238/var(--tw-text-opacity,1))}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-gray-200{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity,1))}.text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity,1))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1))}.text-indigo-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.text-indigo-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-purple-400{--tw-text-opacity:1;color:rgb(192 132 252/var(--tw-text-opacity,1))}.text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}.text-rose-400{--tw-text-opacity:1;color:rgb(251 113 133/var(--tw-text-opacity,1))}.text-rose-500{--tw-text-opacity:1;color:rgb(244 63 94/var(--tw-text-opacity,1))}.text-rose-700{--tw-text-opacity:1;color:rgb(190 18 60/var(--tw-text-opacity,1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.text-yellow-400{--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity,1))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}.text-yellow-700{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-2xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-lg,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-0,.ring-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-inset{--tw-ring-inset:inset}.ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity,1))}.ring-black\/20{--tw-ring-color:rgba(0,0,0,.2)}.ring-gray-300{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity,1))}.ring-gray-500\/10{--tw-ring-color:hsla(220,9%,46%,.1)}.ring-gray-600\/20{--tw-ring-color:rgba(75,85,99,.2)}.ring-gray-900\/5{--tw-ring-color:rgba(17,24,39,.05)}.ring-green-600\/20{--tw-ring-color:rgba(22,163,74,.2)}.ring-indigo-500{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.ring-indigo-600{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity,1))}.ring-red-600\/20{--tw-ring-color:rgba(220,38,38,.2)}.ring-rose-600\/20{--tw-ring-color:rgba(225,29,72,.2)}.ring-yellow-600\/20{--tw-ring-color:rgba(202,138,4,.2)}.ring-opacity-5{--tw-ring-opacity:0.05}.ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.fade-in-0{--tw-enter-opacity:0}.zoom-in-95{--tw-enter-scale:.95}.duration-100{animation-duration:.1s}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.duration-500{animation-duration:.5s}.duration-75{animation-duration:75ms}.ease-in{animation-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{animation-timing-function:linear}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.running{animation-play-state:running}.scrollbar-visible::-webkit-scrollbar{width:10px}.scrollbar-visible::-webkit-scrollbar-track{background:#f1f1f1}.scrollbar-visible::-webkit-scrollbar-thumb{background:#888;border-radius:5px}.scrollbar-visible::-webkit-scrollbar-thumb:hover{background:#555}.file\:mr-4::file-selector-button{margin-right:1rem}.file\:rounded-full::file-selector-button{border-radius:9999px}.file\:border-0::file-selector-button{border-width:0}.file\:bg-indigo-50::file-selector-button{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:px-4::file-selector-button{padding-left:1rem;padding-right:1rem}.file\:py-2::file-selector-button{padding-top:.5rem;padding-bottom:.5rem}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:font-semibold::file-selector-button{font-weight:600}.file\:text-indigo-700::file-selector-button{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.placeholder\:text-gray-400::-moz-placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.placeholder\:text-gray-400::placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.last\:border-0:last-child{border-width:0}.focus-within\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}.focus-within\:ring-2:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-within\:ring-indigo-600:focus-within{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity,1))}.focus-within\:ring-offset-2:focus-within{--tw-ring-offset-width:2px}.hover\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-gray-400:hover{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity,1))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-blue-500:hover{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.hover\:bg-blue-700:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity,1))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive)/.8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.hover\:bg-gray-500:hover{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity,1))}.hover\:bg-gray-600:hover{--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity,1))}.hover\:bg-gray-700:hover{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.hover\:bg-indigo-500:hover{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.hover\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity,1))}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted)/.5)}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary)/.8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}.hover\:bg-red-500:hover{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary)/.8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-gray-200:hover{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity,1))}.hover\:text-gray-500:hover{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.hover\:text-gray-600:hover{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.hover\:text-gray-900:hover{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.hover\:text-indigo-500:hover{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.hover\:text-indigo-600:hover{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.hover\:text-red-500:hover{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:ring-gray-400:hover{--tw-ring-opacity:1;--tw-ring-color:rgb(156 163 175/var(--tw-ring-opacity,1))}.hover\:file\:bg-indigo-100::file-selector-button:hover{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-0:focus,.focus\:ring:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-1:focus,.focus\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-inset:focus{--tw-ring-inset:inset}.focus\:ring-indigo-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.focus\:ring-indigo-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity,1))}.focus\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\:ring-transparent:focus{--tw-ring-color:transparent}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:outline-2:focus-visible{outline-width:2px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\:outline-blue-600:focus-visible{outline-color:#2563eb}.focus-visible\:outline-indigo-500:focus-visible{outline-color:#3b82f6}.focus-visible\:outline-indigo-600:focus-visible{outline-color:#2563eb}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-gray-950:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(3 7 18/var(--tw-ring-opacity,1))}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:border-indigo-600{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}.group:hover .group-hover\:text-indigo-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.group:hover .group-hover\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.aria-selected\:bg-accent[aria-selected=true]{background-color:hsl(var(--accent))}.aria-selected\:text-accent-foreground[aria-selected=true]{color:hsl(var(--accent-foreground))}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom],.data-\[side\=left\]\:-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right],.data-\[side\=top\]\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\[active\]\:bg-accent\/50[data-active]{background-color:hsl(var(--accent)/.5)}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:hsl(var(--accent)/.5)}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow[data-state=active]{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[motion\^\=from-\]\:animate-in[data-motion^=from-],.data-\[state\=open\]\:animate-in[data-state=open],.data-\[state\=visible\]\:animate-in[data-state=visible]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\[motion\^\=to-\]\:animate-out[data-motion^=to-],.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[state\=hidden\]\:animate-out[data-state=hidden]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\[motion\^\=from-\]\:fade-in[data-motion^=from-]{--tw-enter-opacity:0}.data-\[motion\^\=to-\]\:fade-out[data-motion^=to-],.data-\[state\=closed\]\:fade-out-0[data-state=closed],.data-\[state\=hidden\]\:fade-out[data-state=hidden]{--tw-exit-opacity:0}.data-\[state\=open\]\:fade-in-0[data-state=open],.data-\[state\=visible\]\:fade-in[data-state=visible]{--tw-enter-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:zoom-in-90[data-state=open]{--tw-enter-scale:.9}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[motion\=from-end\]\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x:13rem}.data-\[motion\=from-start\]\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x:-13rem}.data-\[motion\=to-end\]\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x:13rem}.data-\[motion\=to-start\]\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x:-13rem}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y:-48%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}.group[data-state=open] .group-data-\[state\=open\]\:rotate-180{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:divide-gray-700:is(.dark *)>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(55 65 81/var(--tw-divide-opacity,1))}.dark\:border-destructive:is(.dark *){border-color:hsl(var(--destructive))}.dark\:border-gray-600:is(.dark *){--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity,1))}.dark\:border-gray-800:is(.dark *){--tw-border-opacity:1;border-color:rgb(31 41 55/var(--tw-border-opacity,1))}.dark\:bg-blue-900:is(.dark *){--tw-bg-opacity:1;background-color:rgb(30 58 138/var(--tw-bg-opacity,1))}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.dark\:bg-gray-950:is(.dark *){--tw-bg-opacity:1;background-color:rgb(3 7 18/var(--tw-bg-opacity,1))}.dark\:bg-red-900:is(.dark *){--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity,1))}.dark\:text-blue-300:is(.dark *){--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity,1))}.dark\:text-blue-400:is(.dark *){--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.dark\:text-gray-100:is(.dark *){--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity,1))}.dark\:text-gray-300:is(.dark *){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.dark\:text-green-400:is(.dark *){--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity,1))}.dark\:text-red-400:is(.dark *){--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.dark\:text-rose-400:is(.dark *){--tw-text-opacity:1;color:rgb(251 113 133/var(--tw-text-opacity,1))}.dark\:text-white:is(.dark *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\:text-yellow-400:is(.dark *){--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity,1))}.dark\:hover\:bg-gray-800:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.dark\:hover\:bg-red-900:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity,1))}.dark\:hover\:text-gray-50:hover:is(.dark *){--tw-text-opacity:1;color:rgb(249 250 251/var(--tw-text-opacity,1))}.dark\:focus-visible\:ring-gray-300:focus-visible:is(.dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity,1))}@media (min-width:640px){.sm\:col-span-1{grid-column:span 1/span 1}.sm\:col-span-3{grid-column:span 3/span 3}.sm\:col-span-5{grid-column:span 5/span 5}.sm\:col-span-6{grid-column:span 6/span 6}.sm\:ml-6{margin-left:1.5rem}.sm\:mt-0{margin-top:0}.sm\:flex{display:flex}.sm\:w-0{width:0}.sm\:w-\[800px\]{width:800px}.sm\:max-w-\[1000px\]{max-width:1000px}.sm\:max-w-\[425px\]{max-width:425px}.sm\:max-w-\[600px\]{max-width:600px}.sm\:max-w-\[768px\]{max-width:768px}.sm\:max-w-md{max-width:28rem}.sm\:max-w-none{max-width:none}.sm\:max-w-sm{max-width:24rem}.sm\:max-w-xs{max-width:20rem}.sm\:flex-1{flex:1 1 0%}.sm\:flex-shrink-0{flex-shrink:0}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.sm\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-nowrap{flex-wrap:nowrap}.sm\:items-start{align-items:flex-start}.sm\:items-center{align-items:center}.sm\:justify-start{justify-content:flex-start}.sm\:justify-end{justify-content:flex-end}.sm\:justify-between{justify-content:space-between}.sm\:gap-2\.5{gap:.625rem}.sm\:gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.sm\:gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:p-6{padding:1.5rem}.sm\:px-14{padding-left:3.5rem;padding-right:3.5rem}.sm\:px-2{padding-left:.5rem;padding-right:.5rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:px-6{padding-left:1.5rem}.sm\:pr-6,.sm\:px-6{padding-right:1.5rem}.sm\:text-left{text-align:left}.sm\:text-6xl{font-size:3.75rem;line-height:1}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:text-xl{font-size:1.25rem;line-height:1.75rem}.sm\:leading-6{line-height:1.5rem}}@media (min-width:768px){.md\:absolute{position:absolute}.md\:w-1\/3{width:33.333333%}.md\:w-2\/3{width:66.666667%}.md\:w-\[var\(--radix-navigation-menu-viewport-width\)\]{width:var(--radix-navigation-menu-viewport-width)}.md\:w-auto{width:auto}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:border-r{border-right-width:1px}.md\:p-20{padding:5rem}.md\:p-4{padding:1rem}.md\:p-6{padding:1.5rem}.md\:py-24{padding-top:6rem;padding-bottom:6rem}.md\:pl-8{padding-left:2rem}.md\:pr-8{padding-right:2rem}}@media (min-width:1024px){.lg\:fixed{position:fixed}.lg\:inset-y-0{top:0;bottom:0}.lg\:z-50{z-index:50}.lg\:mx-0{margin-left:0;margin-right:0}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:h-6{height:1.5rem}.lg\:min-h-\[600px\]{min-height:600px}.lg\:w-72{width:18rem}.lg\:w-px{width:1px}.lg\:max-w-none{max-width:none}.lg\:max-w-screen-lg{max-width:1024px}.lg\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:flex-col{flex-direction:column}.lg\:items-center{align-items:center}.lg\:gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.lg\:bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:pl-72{padding-left:18rem}.lg\:pr-8{padding-right:2rem}}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y:2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y:-3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:left-4>svg{left:1rem}.\[\&\>svg\]\:top-4>svg{top:1rem}.\[\&\>svg\]\:size-3\.5>svg{width:.875rem;height:.875rem}.\[\&\>svg\]\:text-destructive>svg{color:hsl(var(--destructive))}.\[\&\>svg\]\:text-foreground>svg{color:hsl(var(--foreground))}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:1.75rem}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-top:.375rem;padding-bottom:.375rem}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{font-weight:500}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:hsl(var(--muted-foreground))}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:3rem}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-top:.75rem;padding-bottom:.75rem}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:1.25rem}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:1.25rem}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0}.\[\&_tr\]\:border-b tr{border-bottom-width:1px} \ No newline at end of file diff --git a/superduper/rest/out/_next/static/BdkHNW7I8ok4Z_JYMC9XR/_buildManifest.js b/superduper/rest/out/_next/static/xF_WmCnLlFhi4or0pjN2u/_buildManifest.js similarity index 100% rename from superduper/rest/out/_next/static/BdkHNW7I8ok4Z_JYMC9XR/_buildManifest.js rename to superduper/rest/out/_next/static/xF_WmCnLlFhi4or0pjN2u/_buildManifest.js diff --git a/superduper/rest/out/_next/static/BdkHNW7I8ok4Z_JYMC9XR/_ssgManifest.js b/superduper/rest/out/_next/static/xF_WmCnLlFhi4or0pjN2u/_ssgManifest.js similarity index 100% rename from superduper/rest/out/_next/static/BdkHNW7I8ok4Z_JYMC9XR/_ssgManifest.js rename to superduper/rest/out/_next/static/xF_WmCnLlFhi4or0pjN2u/_ssgManifest.js diff --git a/superduper/rest/out/index.html b/superduper/rest/out/index.html index edc33bd78..9465eaf68 100644 --- a/superduper/rest/out/index.html +++ b/superduper/rest/out/index.html @@ -1 +1 @@ -Superduper EnterpriseSuperduper Enterprise
\ No newline at end of file +Superduper EnterpriseSuperduper Enterprise
\ No newline at end of file diff --git a/superduper/rest/out/index.txt b/superduper/rest/out/index.txt index 3bfa4cb17..f004a04ef 100644 --- a/superduper/rest/out/index.txt +++ b/superduper/rest/out/index.txt @@ -1,10 +1,10 @@ 2:I[5428,[],"ClientPageRoot"] -3:I[39480,["5458","static/chunks/7d384bb9-b9b63d36727fefc5.js","7441","static/chunks/63b16823-cfd58480e99f831f.js","3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","8374","static/chunks/8374-9a15f780d742dfdf.js","3908","static/chunks/3908-1a37f657e7e5aa69.js","7653","static/chunks/7653-f45dec0858aedea2.js","7050","static/chunks/7050-04c6688aab91740e.js","6340","static/chunks/6340-cdbf44cff7943074.js","4112","static/chunks/4112-342dcc42f5047ca7.js","790","static/chunks/790-5eed20caa16a52c5.js","8307","static/chunks/8307-5156f857ee75f041.js","9115","static/chunks/9115-6a7b078153fefa6c.js","3098","static/chunks/3098-b03ad4b75e5cd107.js","7635","static/chunks/7635-a384ee62503efb2f.js","9730","static/chunks/9730-4d3f1b4ec3297db0.js","3696","static/chunks/3696-705cc7f6fab9ebd6.js","935","static/chunks/935-27e91877e2c19e06.js","1826","static/chunks/1826-f088de321c4609a2.js","8238","static/chunks/8238-c74234f3acef7217.js","4426","static/chunks/4426-11804c1749f054e3.js","6280","static/chunks/6280-8d193144ed9c18e0.js","1931","static/chunks/app/page-ee97a48916544a1b.js"],"default",1] +3:I[39480,["5458","static/chunks/7d384bb9-b9b63d36727fefc5.js","7441","static/chunks/63b16823-cfd58480e99f831f.js","3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","8374","static/chunks/8374-9805a482625528d9.js","3908","static/chunks/3908-1a37f657e7e5aa69.js","7653","static/chunks/7653-f45dec0858aedea2.js","7050","static/chunks/7050-04c6688aab91740e.js","6340","static/chunks/6340-cdbf44cff7943074.js","4112","static/chunks/4112-342dcc42f5047ca7.js","790","static/chunks/790-5eed20caa16a52c5.js","8307","static/chunks/8307-5156f857ee75f041.js","9115","static/chunks/9115-6a7b078153fefa6c.js","3098","static/chunks/3098-b03ad4b75e5cd107.js","7635","static/chunks/7635-a384ee62503efb2f.js","5554","static/chunks/5554-7a056a8eb6ba43c1.js","3696","static/chunks/3696-fb046e68040b140e.js","935","static/chunks/935-5d63c47e4bc7ab53.js","1826","static/chunks/1826-b998ad7b2f0282e2.js","8238","static/chunks/8238-c74234f3acef7217.js","5865","static/chunks/5865-13233e1b47e313ae.js","5141","static/chunks/5141-f0f34dbf1ff997d1.js","1931","static/chunks/app/page-82d10c02e8dbd8e2.js"],"default",1] 4:I[55092,[],""] 5:I[82023,[],""] -6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-b4ac503461e8ae13.js"],""] -7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],""] -8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],"Toaster"] -0:["BdkHNW7I8ok4Z_JYMC9XR",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/4b610322db99cc76.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] +6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-85b8fc327df53b65.js"],""] +7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],""] +8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],"Toaster"] +0:["xF_WmCnLlFhi4or0pjN2u",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/df5692dccd88b7b4.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] 9:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Superduper Enterprise"}],["$","meta","3",{"name":"description","content":"Bring AI to your database"}],["$","meta","4",{"property":"og:title","content":"Superduper Enterprise"}],["$","meta","5",{"property":"og:description","content":"Bring AI to your database"}],["$","meta","6",{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","meta","7",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","8",{"name":"twitter:title","content":"Superduper Enterprise"}],["$","meta","9",{"name":"twitter:description","content":"Bring AI to your database"}],["$","meta","10",{"name":"twitter:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","link","11",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"48x48"}],["$","link","12",{"rel":"icon","href":"/webui_asset/favicon.ico"}]] 1:null diff --git a/superduper/rest/out/webui.html b/superduper/rest/out/webui.html index 516645d13..f5e492bb6 100644 --- a/superduper/rest/out/webui.html +++ b/superduper/rest/out/webui.html @@ -1 +1 @@ -Superduper EnterpriseSuperduper Enterprise
\ No newline at end of file +Superduper EnterpriseSuperduper Enterprise
\ No newline at end of file diff --git a/superduper/rest/out/webui.txt b/superduper/rest/out/webui.txt index 60bde214c..55b4252a6 100644 --- a/superduper/rest/out/webui.txt +++ b/superduper/rest/out/webui.txt @@ -1,10 +1,10 @@ 2:I[5428,[],"ClientPageRoot"] -3:I[53596,["5458","static/chunks/7d384bb9-b9b63d36727fefc5.js","7441","static/chunks/63b16823-cfd58480e99f831f.js","3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","8374","static/chunks/8374-9a15f780d742dfdf.js","3908","static/chunks/3908-1a37f657e7e5aa69.js","7653","static/chunks/7653-f45dec0858aedea2.js","7050","static/chunks/7050-04c6688aab91740e.js","6340","static/chunks/6340-cdbf44cff7943074.js","4112","static/chunks/4112-342dcc42f5047ca7.js","790","static/chunks/790-5eed20caa16a52c5.js","8307","static/chunks/8307-5156f857ee75f041.js","9115","static/chunks/9115-6a7b078153fefa6c.js","3098","static/chunks/3098-b03ad4b75e5cd107.js","7635","static/chunks/7635-a384ee62503efb2f.js","9730","static/chunks/9730-4d3f1b4ec3297db0.js","3696","static/chunks/3696-705cc7f6fab9ebd6.js","935","static/chunks/935-27e91877e2c19e06.js","1826","static/chunks/1826-f088de321c4609a2.js","8238","static/chunks/8238-c74234f3acef7217.js","4426","static/chunks/4426-11804c1749f054e3.js","6280","static/chunks/6280-8d193144ed9c18e0.js","2945","static/chunks/app/webui/page-f94ef9074437ca2a.js"],"default",1] +3:I[53596,["5458","static/chunks/7d384bb9-b9b63d36727fefc5.js","7441","static/chunks/63b16823-cfd58480e99f831f.js","3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","8374","static/chunks/8374-9805a482625528d9.js","3908","static/chunks/3908-1a37f657e7e5aa69.js","7653","static/chunks/7653-f45dec0858aedea2.js","7050","static/chunks/7050-04c6688aab91740e.js","6340","static/chunks/6340-cdbf44cff7943074.js","4112","static/chunks/4112-342dcc42f5047ca7.js","790","static/chunks/790-5eed20caa16a52c5.js","8307","static/chunks/8307-5156f857ee75f041.js","9115","static/chunks/9115-6a7b078153fefa6c.js","3098","static/chunks/3098-b03ad4b75e5cd107.js","7635","static/chunks/7635-a384ee62503efb2f.js","5554","static/chunks/5554-7a056a8eb6ba43c1.js","3696","static/chunks/3696-fb046e68040b140e.js","935","static/chunks/935-5d63c47e4bc7ab53.js","1826","static/chunks/1826-b998ad7b2f0282e2.js","8238","static/chunks/8238-c74234f3acef7217.js","5865","static/chunks/5865-13233e1b47e313ae.js","5141","static/chunks/5141-f0f34dbf1ff997d1.js","2945","static/chunks/app/webui/page-fa1d14a8e3b85cf4.js"],"default",1] 4:I[55092,[],""] 5:I[82023,[],""] -6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-b4ac503461e8ae13.js"],""] -7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],""] -8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],"Toaster"] -0:["BdkHNW7I8ok4Z_JYMC9XR",[[["",{"children":["webui",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/4b610322db99cc76.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] +6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-85b8fc327df53b65.js"],""] +7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],""] +8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],"Toaster"] +0:["xF_WmCnLlFhi4or0pjN2u",[[["",{"children":["webui",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/df5692dccd88b7b4.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] 9:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Superduper Enterprise"}],["$","meta","3",{"name":"description","content":"Bring AI to your database"}],["$","meta","4",{"property":"og:title","content":"Superduper Enterprise"}],["$","meta","5",{"property":"og:description","content":"Bring AI to your database"}],["$","meta","6",{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","meta","7",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","8",{"name":"twitter:title","content":"Superduper Enterprise"}],["$","meta","9",{"name":"twitter:description","content":"Bring AI to your database"}],["$","meta","10",{"name":"twitter:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","link","11",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"48x48"}],["$","link","12",{"rel":"icon","href":"/webui_asset/favicon.ico"}]] 1:null diff --git a/superduper/rest/out/webui/add-application.html b/superduper/rest/out/webui/add-application.html index adb040cca..3f152b561 100644 --- a/superduper/rest/out/webui/add-application.html +++ b/superduper/rest/out/webui/add-application.html @@ -1 +1 @@ -Superduper EnterpriseSuperduper Enterprise
\ No newline at end of file +Superduper EnterpriseSuperduper Enterprise
\ No newline at end of file diff --git a/superduper/rest/out/webui/add-application.txt b/superduper/rest/out/webui/add-application.txt index de1170942..e4d44a625 100644 --- a/superduper/rest/out/webui/add-application.txt +++ b/superduper/rest/out/webui/add-application.txt @@ -1,10 +1,10 @@ 2:I[5428,[],"ClientPageRoot"] -3:I[7038,["5458","static/chunks/7d384bb9-b9b63d36727fefc5.js","7441","static/chunks/63b16823-cfd58480e99f831f.js","3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","8374","static/chunks/8374-9a15f780d742dfdf.js","3908","static/chunks/3908-1a37f657e7e5aa69.js","7653","static/chunks/7653-f45dec0858aedea2.js","7050","static/chunks/7050-04c6688aab91740e.js","6340","static/chunks/6340-cdbf44cff7943074.js","4112","static/chunks/4112-342dcc42f5047ca7.js","9115","static/chunks/9115-6a7b078153fefa6c.js","3406","static/chunks/3406-2e735848cb993f5d.js","8113","static/chunks/8113-516dda8208f5a15c.js","8743","static/chunks/8743-5aa55bdab8d1c8e0.js","3696","static/chunks/3696-705cc7f6fab9ebd6.js","935","static/chunks/935-27e91877e2c19e06.js","1826","static/chunks/1826-f088de321c4609a2.js","2895","static/chunks/2895-736a43c8e9b46697.js","5834","static/chunks/app/webui/add-application/page-42d81c5098ebe15d.js"],"default",1] +3:I[79455,["5458","static/chunks/7d384bb9-b9b63d36727fefc5.js","7441","static/chunks/63b16823-cfd58480e99f831f.js","3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","8374","static/chunks/8374-9805a482625528d9.js","3908","static/chunks/3908-1a37f657e7e5aa69.js","7653","static/chunks/7653-f45dec0858aedea2.js","7050","static/chunks/7050-04c6688aab91740e.js","6340","static/chunks/6340-cdbf44cff7943074.js","4112","static/chunks/4112-342dcc42f5047ca7.js","9115","static/chunks/9115-6a7b078153fefa6c.js","3406","static/chunks/3406-2e735848cb993f5d.js","8113","static/chunks/8113-516dda8208f5a15c.js","6784","static/chunks/6784-71aa810bd66f0d51.js","3696","static/chunks/3696-fb046e68040b140e.js","935","static/chunks/935-5d63c47e4bc7ab53.js","1826","static/chunks/1826-b998ad7b2f0282e2.js","2895","static/chunks/2895-fbf25d0fdec94cd1.js","5834","static/chunks/app/webui/add-application/page-fef2d1681a696a06.js"],"default",1] 4:I[55092,[],""] 5:I[82023,[],""] -6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-b4ac503461e8ae13.js"],""] -7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],""] -8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],"Toaster"] -0:["BdkHNW7I8ok4Z_JYMC9XR",[[["",{"children":["webui",{"children":["add-application",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["add-application",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","add-application","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/4b610322db99cc76.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] +6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-85b8fc327df53b65.js"],""] +7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],""] +8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],"Toaster"] +0:["xF_WmCnLlFhi4or0pjN2u",[[["",{"children":["webui",{"children":["add-application",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["add-application",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","add-application","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/df5692dccd88b7b4.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] 9:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Superduper Enterprise"}],["$","meta","3",{"name":"description","content":"Bring AI to your database"}],["$","meta","4",{"property":"og:title","content":"Superduper Enterprise"}],["$","meta","5",{"property":"og:description","content":"Bring AI to your database"}],["$","meta","6",{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","meta","7",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","8",{"name":"twitter:title","content":"Superduper Enterprise"}],["$","meta","9",{"name":"twitter:description","content":"Bring AI to your database"}],["$","meta","10",{"name":"twitter:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","link","11",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"48x48"}],["$","link","12",{"rel":"icon","href":"/webui_asset/favicon.ico"}]] 1:null diff --git a/superduper/rest/out/webui/add-components.html b/superduper/rest/out/webui/add-components.html index 0711b9de3..288bfc613 100644 --- a/superduper/rest/out/webui/add-components.html +++ b/superduper/rest/out/webui/add-components.html @@ -1 +1 @@ -Superduper EnterpriseSuperduper Enterprise
\ No newline at end of file +Superduper EnterpriseSuperduper Enterprise
\ No newline at end of file diff --git a/superduper/rest/out/webui/add-components.txt b/superduper/rest/out/webui/add-components.txt index 2449df271..1f5342b89 100644 --- a/superduper/rest/out/webui/add-components.txt +++ b/superduper/rest/out/webui/add-components.txt @@ -1,10 +1,10 @@ 2:I[5428,[],"ClientPageRoot"] -3:I[65061,["5458","static/chunks/7d384bb9-b9b63d36727fefc5.js","7441","static/chunks/63b16823-cfd58480e99f831f.js","3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","8374","static/chunks/8374-9a15f780d742dfdf.js","3908","static/chunks/3908-1a37f657e7e5aa69.js","7653","static/chunks/7653-f45dec0858aedea2.js","7050","static/chunks/7050-04c6688aab91740e.js","6340","static/chunks/6340-cdbf44cff7943074.js","9115","static/chunks/9115-6a7b078153fefa6c.js","3406","static/chunks/3406-2e735848cb993f5d.js","8113","static/chunks/8113-516dda8208f5a15c.js","4529","static/chunks/4529-fa086004eb27649a.js","3696","static/chunks/3696-705cc7f6fab9ebd6.js","935","static/chunks/935-27e91877e2c19e06.js","2895","static/chunks/2895-736a43c8e9b46697.js","9346","static/chunks/app/webui/add-components/page-6ffc9eab11a325a7.js"],"default",1] +3:I[65061,["5458","static/chunks/7d384bb9-b9b63d36727fefc5.js","7441","static/chunks/63b16823-cfd58480e99f831f.js","3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","8374","static/chunks/8374-9805a482625528d9.js","3908","static/chunks/3908-1a37f657e7e5aa69.js","7653","static/chunks/7653-f45dec0858aedea2.js","7050","static/chunks/7050-04c6688aab91740e.js","6340","static/chunks/6340-cdbf44cff7943074.js","9115","static/chunks/9115-6a7b078153fefa6c.js","3406","static/chunks/3406-2e735848cb993f5d.js","8113","static/chunks/8113-516dda8208f5a15c.js","4529","static/chunks/4529-fa086004eb27649a.js","3696","static/chunks/3696-fb046e68040b140e.js","935","static/chunks/935-5d63c47e4bc7ab53.js","2895","static/chunks/2895-fbf25d0fdec94cd1.js","9346","static/chunks/app/webui/add-components/page-e8cfdffb848386b0.js"],"default",1] 4:I[55092,[],""] 5:I[82023,[],""] -6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-b4ac503461e8ae13.js"],""] -7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],""] -8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],"Toaster"] -0:["BdkHNW7I8ok4Z_JYMC9XR",[[["",{"children":["webui",{"children":["add-components",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["add-components",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","add-components","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/4b610322db99cc76.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] +6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-85b8fc327df53b65.js"],""] +7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],""] +8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],"Toaster"] +0:["xF_WmCnLlFhi4or0pjN2u",[[["",{"children":["webui",{"children":["add-components",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["add-components",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","add-components","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/df5692dccd88b7b4.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] 9:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Superduper Enterprise"}],["$","meta","3",{"name":"description","content":"Bring AI to your database"}],["$","meta","4",{"property":"og:title","content":"Superduper Enterprise"}],["$","meta","5",{"property":"og:description","content":"Bring AI to your database"}],["$","meta","6",{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","meta","7",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","8",{"name":"twitter:title","content":"Superduper Enterprise"}],["$","meta","9",{"name":"twitter:description","content":"Bring AI to your database"}],["$","meta","10",{"name":"twitter:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","link","11",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"48x48"}],["$","link","12",{"rel":"icon","href":"/webui_asset/favicon.ico"}]] 1:null diff --git a/superduper/rest/out/webui/add-template.html b/superduper/rest/out/webui/add-template.html index 051fbe0d1..d7309b113 100644 --- a/superduper/rest/out/webui/add-template.html +++ b/superduper/rest/out/webui/add-template.html @@ -1 +1 @@ -Superduper EnterpriseSuperduper Enterprise
\ No newline at end of file +Superduper EnterpriseSuperduper Enterprise
\ No newline at end of file diff --git a/superduper/rest/out/webui/add-template.txt b/superduper/rest/out/webui/add-template.txt index 44aa318cd..d42a98553 100644 --- a/superduper/rest/out/webui/add-template.txt +++ b/superduper/rest/out/webui/add-template.txt @@ -1,10 +1,10 @@ 2:I[5428,[],"ClientPageRoot"] -3:I[15198,["5458","static/chunks/7d384bb9-b9b63d36727fefc5.js","7441","static/chunks/63b16823-cfd58480e99f831f.js","3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","8374","static/chunks/8374-9a15f780d742dfdf.js","3908","static/chunks/3908-1a37f657e7e5aa69.js","7653","static/chunks/7653-f45dec0858aedea2.js","7050","static/chunks/7050-04c6688aab91740e.js","6340","static/chunks/6340-cdbf44cff7943074.js","3696","static/chunks/3696-705cc7f6fab9ebd6.js","935","static/chunks/935-27e91877e2c19e06.js","2895","static/chunks/2895-736a43c8e9b46697.js","7986","static/chunks/app/webui/add-template/page-9497e2aebbc1d553.js"],"default",1] +3:I[15198,["5458","static/chunks/7d384bb9-b9b63d36727fefc5.js","7441","static/chunks/63b16823-cfd58480e99f831f.js","3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","8374","static/chunks/8374-9805a482625528d9.js","3908","static/chunks/3908-1a37f657e7e5aa69.js","7653","static/chunks/7653-f45dec0858aedea2.js","7050","static/chunks/7050-04c6688aab91740e.js","6340","static/chunks/6340-cdbf44cff7943074.js","3696","static/chunks/3696-fb046e68040b140e.js","935","static/chunks/935-5d63c47e4bc7ab53.js","2895","static/chunks/2895-fbf25d0fdec94cd1.js","7986","static/chunks/app/webui/add-template/page-eefa93512ff5f9a7.js"],"default",1] 4:I[55092,[],""] 5:I[82023,[],""] -6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-b4ac503461e8ae13.js"],""] -7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],""] -8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],"Toaster"] -0:["BdkHNW7I8ok4Z_JYMC9XR",[[["",{"children":["webui",{"children":["add-template",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["add-template",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","add-template","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/4b610322db99cc76.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] +6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-85b8fc327df53b65.js"],""] +7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],""] +8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],"Toaster"] +0:["xF_WmCnLlFhi4or0pjN2u",[[["",{"children":["webui",{"children":["add-template",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["add-template",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","add-template","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/df5692dccd88b7b4.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] 9:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Superduper Enterprise"}],["$","meta","3",{"name":"description","content":"Bring AI to your database"}],["$","meta","4",{"property":"og:title","content":"Superduper Enterprise"}],["$","meta","5",{"property":"og:description","content":"Bring AI to your database"}],["$","meta","6",{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","meta","7",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","8",{"name":"twitter:title","content":"Superduper Enterprise"}],["$","meta","9",{"name":"twitter:description","content":"Bring AI to your database"}],["$","meta","10",{"name":"twitter:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","link","11",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"48x48"}],["$","link","12",{"rel":"icon","href":"/webui_asset/favicon.ico"}]] 1:null diff --git a/superduper/rest/out/webui/application.html b/superduper/rest/out/webui/application.html index f7648fbef..4dab527c5 100644 --- a/superduper/rest/out/webui/application.html +++ b/superduper/rest/out/webui/application.html @@ -1 +1 @@ -Superduper EnterpriseSuperduper Enterprise
\ No newline at end of file +Superduper EnterpriseSuperduper Enterprise
\ No newline at end of file diff --git a/superduper/rest/out/webui/application.txt b/superduper/rest/out/webui/application.txt index 393bab138..361851d6d 100644 --- a/superduper/rest/out/webui/application.txt +++ b/superduper/rest/out/webui/application.txt @@ -1,10 +1,10 @@ 2:I[5428,[],"ClientPageRoot"] -3:I[85892,["5458","static/chunks/7d384bb9-b9b63d36727fefc5.js","7441","static/chunks/63b16823-cfd58480e99f831f.js","3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","8374","static/chunks/8374-9a15f780d742dfdf.js","3908","static/chunks/3908-1a37f657e7e5aa69.js","7653","static/chunks/7653-f45dec0858aedea2.js","7050","static/chunks/7050-04c6688aab91740e.js","4112","static/chunks/4112-342dcc42f5047ca7.js","790","static/chunks/790-5eed20caa16a52c5.js","8307","static/chunks/8307-5156f857ee75f041.js","9078","static/chunks/9078-aaabf1780e9d7379.js","3696","static/chunks/3696-705cc7f6fab9ebd6.js","935","static/chunks/935-27e91877e2c19e06.js","1826","static/chunks/1826-f088de321c4609a2.js","8238","static/chunks/8238-c74234f3acef7217.js","8499","static/chunks/8499-130dd8c24577c42c.js","1959","static/chunks/1959-d42b8b91ebe6b051.js","1022","static/chunks/app/webui/application/page-8ae0e3c3987130a5.js"],"default",1] +3:I[85892,["5458","static/chunks/7d384bb9-b9b63d36727fefc5.js","7441","static/chunks/63b16823-cfd58480e99f831f.js","3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","8374","static/chunks/8374-9805a482625528d9.js","3908","static/chunks/3908-1a37f657e7e5aa69.js","7653","static/chunks/7653-f45dec0858aedea2.js","7050","static/chunks/7050-04c6688aab91740e.js","4112","static/chunks/4112-342dcc42f5047ca7.js","790","static/chunks/790-5eed20caa16a52c5.js","8307","static/chunks/8307-5156f857ee75f041.js","9078","static/chunks/9078-aaabf1780e9d7379.js","3696","static/chunks/3696-fb046e68040b140e.js","935","static/chunks/935-5d63c47e4bc7ab53.js","1826","static/chunks/1826-b998ad7b2f0282e2.js","8238","static/chunks/8238-c74234f3acef7217.js","8499","static/chunks/8499-73a88d4874e76b5d.js","1959","static/chunks/1959-e2b6837ed2211791.js","1022","static/chunks/app/webui/application/page-77f65a9246965933.js"],"default",1] 4:I[55092,[],""] 5:I[82023,[],""] -6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-b4ac503461e8ae13.js"],""] -7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],""] -8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],"Toaster"] -0:["BdkHNW7I8ok4Z_JYMC9XR",[[["",{"children":["webui",{"children":["application",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["application",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","application","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/4b610322db99cc76.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] +6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-85b8fc327df53b65.js"],""] +7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],""] +8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],"Toaster"] +0:["xF_WmCnLlFhi4or0pjN2u",[[["",{"children":["webui",{"children":["application",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["application",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","application","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/df5692dccd88b7b4.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] 9:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Superduper Enterprise"}],["$","meta","3",{"name":"description","content":"Bring AI to your database"}],["$","meta","4",{"property":"og:title","content":"Superduper Enterprise"}],["$","meta","5",{"property":"og:description","content":"Bring AI to your database"}],["$","meta","6",{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","meta","7",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","8",{"name":"twitter:title","content":"Superduper Enterprise"}],["$","meta","9",{"name":"twitter:description","content":"Bring AI to your database"}],["$","meta","10",{"name":"twitter:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","link","11",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"48x48"}],["$","link","12",{"rel":"icon","href":"/webui_asset/favicon.ico"}]] 1:null diff --git a/superduper/rest/out/webui/deployment.html b/superduper/rest/out/webui/deployment.html index b5629e33f..321063ef9 100644 --- a/superduper/rest/out/webui/deployment.html +++ b/superduper/rest/out/webui/deployment.html @@ -1 +1 @@ -Superduper EnterpriseSuperduper Enterprise
\ No newline at end of file +Superduper EnterpriseSuperduper Enterprise
\ No newline at end of file diff --git a/superduper/rest/out/webui/deployment.txt b/superduper/rest/out/webui/deployment.txt index 29120977b..1161d6134 100644 --- a/superduper/rest/out/webui/deployment.txt +++ b/superduper/rest/out/webui/deployment.txt @@ -1,10 +1,10 @@ 2:I[5428,[],"ClientPageRoot"] -3:I[25361,["5458","static/chunks/7d384bb9-b9b63d36727fefc5.js","3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","8374","static/chunks/8374-9a15f780d742dfdf.js","3908","static/chunks/3908-1a37f657e7e5aa69.js","7653","static/chunks/7653-f45dec0858aedea2.js","6340","static/chunks/6340-cdbf44cff7943074.js","4112","static/chunks/4112-342dcc42f5047ca7.js","790","static/chunks/790-5eed20caa16a52c5.js","8307","static/chunks/8307-5156f857ee75f041.js","3098","static/chunks/3098-b03ad4b75e5cd107.js","7635","static/chunks/7635-a384ee62503efb2f.js","3696","static/chunks/3696-705cc7f6fab9ebd6.js","935","static/chunks/935-27e91877e2c19e06.js","1826","static/chunks/1826-f088de321c4609a2.js","4426","static/chunks/4426-11804c1749f054e3.js","4256","static/chunks/app/webui/deployment/page-8ab4e629cfbb5c0d.js"],"default",1] +3:I[25361,["5458","static/chunks/7d384bb9-b9b63d36727fefc5.js","3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","8374","static/chunks/8374-9805a482625528d9.js","3908","static/chunks/3908-1a37f657e7e5aa69.js","7653","static/chunks/7653-f45dec0858aedea2.js","6340","static/chunks/6340-cdbf44cff7943074.js","4112","static/chunks/4112-342dcc42f5047ca7.js","790","static/chunks/790-5eed20caa16a52c5.js","8307","static/chunks/8307-5156f857ee75f041.js","3098","static/chunks/3098-b03ad4b75e5cd107.js","7635","static/chunks/7635-a384ee62503efb2f.js","3696","static/chunks/3696-fb046e68040b140e.js","935","static/chunks/935-5d63c47e4bc7ab53.js","1826","static/chunks/1826-b998ad7b2f0282e2.js","5865","static/chunks/5865-13233e1b47e313ae.js","4256","static/chunks/app/webui/deployment/page-4be8017f426844f3.js"],"default",1] 4:I[55092,[],""] 5:I[82023,[],""] -6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-b4ac503461e8ae13.js"],""] -7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],""] -8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],"Toaster"] -0:["BdkHNW7I8ok4Z_JYMC9XR",[[["",{"children":["webui",{"children":["deployment",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["deployment",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","deployment","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/4b610322db99cc76.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] +6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-85b8fc327df53b65.js"],""] +7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],""] +8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],"Toaster"] +0:["xF_WmCnLlFhi4or0pjN2u",[[["",{"children":["webui",{"children":["deployment",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["deployment",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","deployment","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/df5692dccd88b7b4.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] 9:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Superduper Enterprise"}],["$","meta","3",{"name":"description","content":"Bring AI to your database"}],["$","meta","4",{"property":"og:title","content":"Superduper Enterprise"}],["$","meta","5",{"property":"og:description","content":"Bring AI to your database"}],["$","meta","6",{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","meta","7",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","8",{"name":"twitter:title","content":"Superduper Enterprise"}],["$","meta","9",{"name":"twitter:description","content":"Bring AI to your database"}],["$","meta","10",{"name":"twitter:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","link","11",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"48x48"}],["$","link","12",{"rel":"icon","href":"/webui_asset/favicon.ico"}]] 1:null diff --git a/superduper/rest/out/webui/deployment/status.html b/superduper/rest/out/webui/deployment/status.html index 9fdccad6d..1a4c21330 100644 --- a/superduper/rest/out/webui/deployment/status.html +++ b/superduper/rest/out/webui/deployment/status.html @@ -1 +1 @@ -Superduper EnterpriseSuperduper Enterprise
\ No newline at end of file +Superduper EnterpriseSuperduper Enterprise
\ No newline at end of file diff --git a/superduper/rest/out/webui/deployment/status.txt b/superduper/rest/out/webui/deployment/status.txt index 330b7d801..872a75238 100644 --- a/superduper/rest/out/webui/deployment/status.txt +++ b/superduper/rest/out/webui/deployment/status.txt @@ -1,10 +1,10 @@ 2:I[5428,[],"ClientPageRoot"] -3:I[24516,["3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","8374","static/chunks/8374-9a15f780d742dfdf.js","3908","static/chunks/3908-1a37f657e7e5aa69.js","790","static/chunks/790-5eed20caa16a52c5.js","3696","static/chunks/3696-705cc7f6fab9ebd6.js","935","static/chunks/935-27e91877e2c19e06.js","6511","static/chunks/app/webui/deployment/status/page-78c0b05c9fc98010.js"],"default",1] +3:I[24516,["3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","8374","static/chunks/8374-9805a482625528d9.js","3908","static/chunks/3908-1a37f657e7e5aa69.js","790","static/chunks/790-5eed20caa16a52c5.js","3696","static/chunks/3696-fb046e68040b140e.js","935","static/chunks/935-5d63c47e4bc7ab53.js","6511","static/chunks/app/webui/deployment/status/page-0d927a137ba878da.js"],"default",1] 4:I[55092,[],""] 5:I[82023,[],""] -6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-b4ac503461e8ae13.js"],""] -7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],""] -8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],"Toaster"] -0:["BdkHNW7I8ok4Z_JYMC9XR",[[["",{"children":["webui",{"children":["deployment",{"children":["status",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["deployment",{"children":["status",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","deployment","children","status","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","deployment","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/4b610322db99cc76.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] +6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-85b8fc327df53b65.js"],""] +7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],""] +8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],"Toaster"] +0:["xF_WmCnLlFhi4or0pjN2u",[[["",{"children":["webui",{"children":["deployment",{"children":["status",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["deployment",{"children":["status",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","deployment","children","status","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","deployment","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/df5692dccd88b7b4.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] 9:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Superduper Enterprise"}],["$","meta","3",{"name":"description","content":"Bring AI to your database"}],["$","meta","4",{"property":"og:title","content":"Superduper Enterprise"}],["$","meta","5",{"property":"og:description","content":"Bring AI to your database"}],["$","meta","6",{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","meta","7",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","8",{"name":"twitter:title","content":"Superduper Enterprise"}],["$","meta","9",{"name":"twitter:description","content":"Bring AI to your database"}],["$","meta","10",{"name":"twitter:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","link","11",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"48x48"}],["$","link","12",{"rel":"icon","href":"/webui_asset/favicon.ico"}]] 1:null diff --git a/superduper/rest/out/webui/login.html b/superduper/rest/out/webui/login.html index 7cbed96f2..84d4f86b7 100644 --- a/superduper/rest/out/webui/login.html +++ b/superduper/rest/out/webui/login.html @@ -1 +1 @@ -Superduper EnterpriseSuperduper Enterprise
SuperDuperDB Inc.
Don't have an account? Contact Enterprise Support
\ No newline at end of file +Superduper EnterpriseSuperduper Enterprise
SuperDuperDB Inc.
Don't have an account? Contact Enterprise Support
\ No newline at end of file diff --git a/superduper/rest/out/webui/login.txt b/superduper/rest/out/webui/login.txt index 0c27e03c5..d68a2e349 100644 --- a/superduper/rest/out/webui/login.txt +++ b/superduper/rest/out/webui/login.txt @@ -1,10 +1,10 @@ 2:I[5428,[],"ClientPageRoot"] -3:I[32179,["3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","6340","static/chunks/6340-cdbf44cff7943074.js","3696","static/chunks/3696-705cc7f6fab9ebd6.js","6071","static/chunks/app/webui/login/page-0af38aef8a1cc509.js"],"default",1] +3:I[32179,["3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","6340","static/chunks/6340-cdbf44cff7943074.js","3696","static/chunks/3696-fb046e68040b140e.js","6071","static/chunks/app/webui/login/page-6be4b05413e52545.js"],"default",1] 4:I[55092,[],""] 5:I[82023,[],""] -6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-b4ac503461e8ae13.js"],""] -7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],""] -8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],"Toaster"] -0:["BdkHNW7I8ok4Z_JYMC9XR",[[["",{"children":["webui",{"children":["login",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["login",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","login","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/4b610322db99cc76.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] +6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-85b8fc327df53b65.js"],""] +7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],""] +8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],"Toaster"] +0:["xF_WmCnLlFhi4or0pjN2u",[[["",{"children":["webui",{"children":["login",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["login",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","login","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/df5692dccd88b7b4.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] 9:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Superduper Enterprise"}],["$","meta","3",{"name":"description","content":"Bring AI to your database"}],["$","meta","4",{"property":"og:title","content":"Superduper Enterprise"}],["$","meta","5",{"property":"og:description","content":"Bring AI to your database"}],["$","meta","6",{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","meta","7",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","8",{"name":"twitter:title","content":"Superduper Enterprise"}],["$","meta","9",{"name":"twitter:description","content":"Bring AI to your database"}],["$","meta","10",{"name":"twitter:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","link","11",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"48x48"}],["$","link","12",{"rel":"icon","href":"/webui_asset/favicon.ico"}]] 1:null diff --git a/superduper/rest/out/webui/query.html b/superduper/rest/out/webui/query.html index 64c282261..fd7c7e242 100644 --- a/superduper/rest/out/webui/query.html +++ b/superduper/rest/out/webui/query.html @@ -1 +1 @@ -Superduper EnterpriseSuperduper Enterprise
\ No newline at end of file +Superduper EnterpriseSuperduper Enterprise
\ No newline at end of file diff --git a/superduper/rest/out/webui/query.txt b/superduper/rest/out/webui/query.txt index c90360e50..7802d94fa 100644 --- a/superduper/rest/out/webui/query.txt +++ b/superduper/rest/out/webui/query.txt @@ -1,10 +1,10 @@ 2:I[5428,[],"ClientPageRoot"] -3:I[12958,["5458","static/chunks/7d384bb9-b9b63d36727fefc5.js","7441","static/chunks/63b16823-cfd58480e99f831f.js","3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","8374","static/chunks/8374-9a15f780d742dfdf.js","3908","static/chunks/3908-1a37f657e7e5aa69.js","7653","static/chunks/7653-f45dec0858aedea2.js","7050","static/chunks/7050-04c6688aab91740e.js","6340","static/chunks/6340-cdbf44cff7943074.js","4112","static/chunks/4112-342dcc42f5047ca7.js","790","static/chunks/790-5eed20caa16a52c5.js","9115","static/chunks/9115-6a7b078153fefa6c.js","3098","static/chunks/3098-b03ad4b75e5cd107.js","3406","static/chunks/3406-2e735848cb993f5d.js","6901","static/chunks/6901-61d483bcd8b73cde.js","3696","static/chunks/3696-705cc7f6fab9ebd6.js","935","static/chunks/935-27e91877e2c19e06.js","1826","static/chunks/1826-f088de321c4609a2.js","2895","static/chunks/2895-736a43c8e9b46697.js","5811","static/chunks/app/webui/query/page-24b6164f34214377.js"],"default",1] +3:I[12958,["5458","static/chunks/7d384bb9-b9b63d36727fefc5.js","7441","static/chunks/63b16823-cfd58480e99f831f.js","3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","8374","static/chunks/8374-9805a482625528d9.js","3908","static/chunks/3908-1a37f657e7e5aa69.js","7653","static/chunks/7653-f45dec0858aedea2.js","7050","static/chunks/7050-04c6688aab91740e.js","6340","static/chunks/6340-cdbf44cff7943074.js","4112","static/chunks/4112-342dcc42f5047ca7.js","790","static/chunks/790-5eed20caa16a52c5.js","9115","static/chunks/9115-6a7b078153fefa6c.js","3098","static/chunks/3098-b03ad4b75e5cd107.js","3406","static/chunks/3406-2e735848cb993f5d.js","6901","static/chunks/6901-61d483bcd8b73cde.js","3696","static/chunks/3696-fb046e68040b140e.js","935","static/chunks/935-5d63c47e4bc7ab53.js","1826","static/chunks/1826-b998ad7b2f0282e2.js","2895","static/chunks/2895-fbf25d0fdec94cd1.js","5811","static/chunks/app/webui/query/page-0615db45108dc599.js"],"default",1] 4:I[55092,[],""] 5:I[82023,[],""] -6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-b4ac503461e8ae13.js"],""] -7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],""] -8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],"Toaster"] -0:["BdkHNW7I8ok4Z_JYMC9XR",[[["",{"children":["webui",{"children":["query",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["query",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","query","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/4b610322db99cc76.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] +6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-85b8fc327df53b65.js"],""] +7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],""] +8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],"Toaster"] +0:["xF_WmCnLlFhi4or0pjN2u",[[["",{"children":["webui",{"children":["query",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["query",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","query","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/df5692dccd88b7b4.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] 9:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Superduper Enterprise"}],["$","meta","3",{"name":"description","content":"Bring AI to your database"}],["$","meta","4",{"property":"og:title","content":"Superduper Enterprise"}],["$","meta","5",{"property":"og:description","content":"Bring AI to your database"}],["$","meta","6",{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","meta","7",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","8",{"name":"twitter:title","content":"Superduper Enterprise"}],["$","meta","9",{"name":"twitter:description","content":"Bring AI to your database"}],["$","meta","10",{"name":"twitter:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","link","11",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"48x48"}],["$","link","12",{"rel":"icon","href":"/webui_asset/favicon.ico"}]] 1:null diff --git a/superduper/rest/out/webui/show.html b/superduper/rest/out/webui/show.html index 8b2066a48..f62d0a540 100644 --- a/superduper/rest/out/webui/show.html +++ b/superduper/rest/out/webui/show.html @@ -1 +1 @@ -Superduper EnterpriseSuperduper Enterprise
\ No newline at end of file +Superduper EnterpriseSuperduper Enterprise
\ No newline at end of file diff --git a/superduper/rest/out/webui/show.txt b/superduper/rest/out/webui/show.txt index 54a40995f..1735781ef 100644 --- a/superduper/rest/out/webui/show.txt +++ b/superduper/rest/out/webui/show.txt @@ -1,10 +1,10 @@ 2:I[5428,[],"ClientPageRoot"] -3:I[4148,["5458","static/chunks/7d384bb9-b9b63d36727fefc5.js","7441","static/chunks/63b16823-cfd58480e99f831f.js","3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","8374","static/chunks/8374-9a15f780d742dfdf.js","3908","static/chunks/3908-1a37f657e7e5aa69.js","7653","static/chunks/7653-f45dec0858aedea2.js","7050","static/chunks/7050-04c6688aab91740e.js","4112","static/chunks/4112-342dcc42f5047ca7.js","790","static/chunks/790-5eed20caa16a52c5.js","8307","static/chunks/8307-5156f857ee75f041.js","9078","static/chunks/9078-aaabf1780e9d7379.js","3696","static/chunks/3696-705cc7f6fab9ebd6.js","935","static/chunks/935-27e91877e2c19e06.js","1826","static/chunks/1826-f088de321c4609a2.js","8238","static/chunks/8238-c74234f3acef7217.js","8499","static/chunks/8499-130dd8c24577c42c.js","1959","static/chunks/1959-d42b8b91ebe6b051.js","4652","static/chunks/app/webui/show/page-735e05ddd136f4a0.js"],"default",1] +3:I[4148,["5458","static/chunks/7d384bb9-b9b63d36727fefc5.js","7441","static/chunks/63b16823-cfd58480e99f831f.js","3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","8374","static/chunks/8374-9805a482625528d9.js","3908","static/chunks/3908-1a37f657e7e5aa69.js","7653","static/chunks/7653-f45dec0858aedea2.js","7050","static/chunks/7050-04c6688aab91740e.js","4112","static/chunks/4112-342dcc42f5047ca7.js","790","static/chunks/790-5eed20caa16a52c5.js","8307","static/chunks/8307-5156f857ee75f041.js","9078","static/chunks/9078-aaabf1780e9d7379.js","3696","static/chunks/3696-fb046e68040b140e.js","935","static/chunks/935-5d63c47e4bc7ab53.js","1826","static/chunks/1826-b998ad7b2f0282e2.js","8238","static/chunks/8238-c74234f3acef7217.js","8499","static/chunks/8499-73a88d4874e76b5d.js","1959","static/chunks/1959-e2b6837ed2211791.js","4652","static/chunks/app/webui/show/page-ed5be0edf3c67b2f.js"],"default",1] 4:I[55092,[],""] 5:I[82023,[],""] -6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-b4ac503461e8ae13.js"],""] -7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],""] -8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],"Toaster"] -0:["BdkHNW7I8ok4Z_JYMC9XR",[[["",{"children":["webui",{"children":["show",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["show",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","show","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/4b610322db99cc76.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] +6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-85b8fc327df53b65.js"],""] +7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],""] +8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],"Toaster"] +0:["xF_WmCnLlFhi4or0pjN2u",[[["",{"children":["webui",{"children":["show",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["show",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","show","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/df5692dccd88b7b4.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] 9:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Superduper Enterprise"}],["$","meta","3",{"name":"description","content":"Bring AI to your database"}],["$","meta","4",{"property":"og:title","content":"Superduper Enterprise"}],["$","meta","5",{"property":"og:description","content":"Bring AI to your database"}],["$","meta","6",{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","meta","7",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","8",{"name":"twitter:title","content":"Superduper Enterprise"}],["$","meta","9",{"name":"twitter:description","content":"Bring AI to your database"}],["$","meta","10",{"name":"twitter:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","link","11",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"48x48"}],["$","link","12",{"rel":"icon","href":"/webui_asset/favicon.ico"}]] 1:null diff --git a/superduper/rest/out/webui/support.html b/superduper/rest/out/webui/support.html index 81a276c75..f07483844 100644 --- a/superduper/rest/out/webui/support.html +++ b/superduper/rest/out/webui/support.html @@ -1 +1 @@ -Superduper EnterpriseSuperduper Enterprise

Support

Our support team is here to help you with any questions or issues you may have. Feel free to send us an email and we'll get back to you as soon as possible.

\ No newline at end of file +Superduper EnterpriseSuperduper Enterprise

Support

Our support team is here to help you with any questions or issues you may have. Feel free to send us an email and we'll get back to you as soon as possible.

\ No newline at end of file diff --git a/superduper/rest/out/webui/support.txt b/superduper/rest/out/webui/support.txt index 8b97d7a86..c694ebaed 100644 --- a/superduper/rest/out/webui/support.txt +++ b/superduper/rest/out/webui/support.txt @@ -1,8 +1,8 @@ 2:I[55092,[],""] 3:I[82023,[],""] -4:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-b4ac503461e8ae13.js"],""] -5:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],""] -6:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],"Toaster"] -0:["BdkHNW7I8ok4Z_JYMC9XR",[[["",{"children":["webui",{"children":["support",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["support",{"children":["__PAGE__",{},[["$L1",["$","div",null,{"className":"flex flex-col items-center justify-center py-12 md:py-24","children":["$","div",null,{"className":"w-full max-w-md","children":["$","div",null,{"className":"rounded-xl border bg-card text-card-foreground shadow","children":[["$","div",null,{"className":"flex flex-col space-y-1.5 p-6","children":[["$","h3",null,{"className":"font-semibold leading-none tracking-tight","children":"Support"}],["$","p",null,{"className":"text-sm text-muted-foreground","children":"Our support team is here to help you with any questions or issues you may have. Feel free to send us an email and we'll get back to you as soon as possible."}]]}],["$","div",null,{"className":"p-6 pt-0 space-y-4","children":["$","a",null,{"href":"mailto:support@superduper.io","className":"w-full","style":{"textDecoration":"none"},"children":["$","button",null,{"className":"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 bg-primary text-primary-foreground shadow hover:bg-primary/90 h-9 px-4 py-2 w-full","href":"mailto:support@superduper.io","children":"Send Email"}]}]}]]}]}]}],null],null],null]},[null,["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","support","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/4b610322db99cc76.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L4",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L5",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L6",null,{}]]}]]}]],null],null],["$L7",null]]]] +4:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-85b8fc327df53b65.js"],""] +5:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],""] +6:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],"Toaster"] +0:["xF_WmCnLlFhi4or0pjN2u",[[["",{"children":["webui",{"children":["support",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["support",{"children":["__PAGE__",{},[["$L1",["$","div",null,{"className":"flex flex-col items-center justify-center py-12 md:py-24","children":["$","div",null,{"className":"w-full max-w-md","children":["$","div",null,{"className":"rounded-xl border bg-card text-card-foreground shadow","children":[["$","div",null,{"className":"flex flex-col space-y-1.5 p-6","children":[["$","h3",null,{"className":"font-semibold leading-none tracking-tight","children":"Support"}],["$","p",null,{"className":"text-sm text-muted-foreground","children":"Our support team is here to help you with any questions or issues you may have. Feel free to send us an email and we'll get back to you as soon as possible."}]]}],["$","div",null,{"className":"p-6 pt-0 space-y-4","children":["$","a",null,{"href":"mailto:support@superduper.io","className":"w-full","style":{"textDecoration":"none"},"children":["$","button",null,{"className":"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 bg-primary text-primary-foreground shadow hover:bg-primary/90 h-9 px-4 py-2 w-full","href":"mailto:support@superduper.io","children":"Send Email"}]}]}]]}]}]}],null],null],null]},[null,["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","support","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/df5692dccd88b7b4.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L4",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L5",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L6",null,{}]]}]]}]],null],null],["$L7",null]]]] 7:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Superduper Enterprise"}],["$","meta","3",{"name":"description","content":"Bring AI to your database"}],["$","meta","4",{"property":"og:title","content":"Superduper Enterprise"}],["$","meta","5",{"property":"og:description","content":"Bring AI to your database"}],["$","meta","6",{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","meta","7",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","8",{"name":"twitter:title","content":"Superduper Enterprise"}],["$","meta","9",{"name":"twitter:description","content":"Bring AI to your database"}],["$","meta","10",{"name":"twitter:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","link","11",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"48x48"}],["$","link","12",{"rel":"icon","href":"/webui_asset/favicon.ico"}]] 1:null diff --git a/superduper/rest/out/webui/templates.html b/superduper/rest/out/webui/templates.html index 02bffbd38..06a7829b1 100644 --- a/superduper/rest/out/webui/templates.html +++ b/superduper/rest/out/webui/templates.html @@ -1 +1 @@ -Superduper EnterpriseSuperduper Enterprise
\ No newline at end of file +Superduper EnterpriseSuperduper Enterprise
\ No newline at end of file diff --git a/superduper/rest/out/webui/templates.txt b/superduper/rest/out/webui/templates.txt index 68ff27cf2..b69fa77d2 100644 --- a/superduper/rest/out/webui/templates.txt +++ b/superduper/rest/out/webui/templates.txt @@ -1,10 +1,10 @@ 2:I[5428,[],"ClientPageRoot"] -3:I[56999,["5458","static/chunks/7d384bb9-b9b63d36727fefc5.js","7441","static/chunks/63b16823-cfd58480e99f831f.js","3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","8374","static/chunks/8374-9a15f780d742dfdf.js","3908","static/chunks/3908-1a37f657e7e5aa69.js","7653","static/chunks/7653-f45dec0858aedea2.js","7050","static/chunks/7050-04c6688aab91740e.js","4112","static/chunks/4112-342dcc42f5047ca7.js","790","static/chunks/790-5eed20caa16a52c5.js","8307","static/chunks/8307-5156f857ee75f041.js","9078","static/chunks/9078-aaabf1780e9d7379.js","3696","static/chunks/3696-705cc7f6fab9ebd6.js","935","static/chunks/935-27e91877e2c19e06.js","1826","static/chunks/1826-f088de321c4609a2.js","8499","static/chunks/8499-130dd8c24577c42c.js","6332","static/chunks/app/webui/templates/page-9697d99c3231e45a.js"],"default",1] +3:I[56999,["5458","static/chunks/7d384bb9-b9b63d36727fefc5.js","7441","static/chunks/63b16823-cfd58480e99f831f.js","3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","8374","static/chunks/8374-9805a482625528d9.js","3908","static/chunks/3908-1a37f657e7e5aa69.js","7653","static/chunks/7653-f45dec0858aedea2.js","7050","static/chunks/7050-04c6688aab91740e.js","4112","static/chunks/4112-342dcc42f5047ca7.js","790","static/chunks/790-5eed20caa16a52c5.js","8307","static/chunks/8307-5156f857ee75f041.js","9078","static/chunks/9078-aaabf1780e9d7379.js","3696","static/chunks/3696-fb046e68040b140e.js","935","static/chunks/935-5d63c47e4bc7ab53.js","1826","static/chunks/1826-b998ad7b2f0282e2.js","8499","static/chunks/8499-73a88d4874e76b5d.js","6332","static/chunks/app/webui/templates/page-10bbc028e2f49a03.js"],"default",1] 4:I[55092,[],""] 5:I[82023,[],""] -6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-b4ac503461e8ae13.js"],""] -7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],""] -8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],"Toaster"] -0:["BdkHNW7I8ok4Z_JYMC9XR",[[["",{"children":["webui",{"children":["templates",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["templates",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","templates","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/4b610322db99cc76.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] +6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-85b8fc327df53b65.js"],""] +7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],""] +8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],"Toaster"] +0:["xF_WmCnLlFhi4or0pjN2u",[[["",{"children":["webui",{"children":["templates",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["templates",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","templates","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/df5692dccd88b7b4.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] 9:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Superduper Enterprise"}],["$","meta","3",{"name":"description","content":"Bring AI to your database"}],["$","meta","4",{"property":"og:title","content":"Superduper Enterprise"}],["$","meta","5",{"property":"og:description","content":"Bring AI to your database"}],["$","meta","6",{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","meta","7",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","8",{"name":"twitter:title","content":"Superduper Enterprise"}],["$","meta","9",{"name":"twitter:description","content":"Bring AI to your database"}],["$","meta","10",{"name":"twitter:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","link","11",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"48x48"}],["$","link","12",{"rel":"icon","href":"/webui_asset/favicon.ico"}]] 1:null diff --git a/superduper/rest/out/webui/update.html b/superduper/rest/out/webui/update.html index b62af5906..6d0b06404 100644 --- a/superduper/rest/out/webui/update.html +++ b/superduper/rest/out/webui/update.html @@ -1 +1 @@ -Superduper EnterpriseSuperduper Enterprise
\ No newline at end of file +Superduper EnterpriseSuperduper Enterprise
\ No newline at end of file diff --git a/superduper/rest/out/webui/update.txt b/superduper/rest/out/webui/update.txt index ae68f3fcf..5ad4c01b9 100644 --- a/superduper/rest/out/webui/update.txt +++ b/superduper/rest/out/webui/update.txt @@ -1,10 +1,10 @@ 2:I[5428,[],"ClientPageRoot"] -3:I[80245,["5458","static/chunks/7d384bb9-b9b63d36727fefc5.js","3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","8374","static/chunks/8374-9a15f780d742dfdf.js","3696","static/chunks/3696-705cc7f6fab9ebd6.js","935","static/chunks/935-27e91877e2c19e06.js","6482","static/chunks/app/webui/update/page-b147361a868f6e6b.js"],"default",1] +3:I[80245,["5458","static/chunks/7d384bb9-b9b63d36727fefc5.js","3296","static/chunks/3296-742cb17f842066fd.js","8320","static/chunks/8320-7c8cbf76c615c243.js","8374","static/chunks/8374-9805a482625528d9.js","3696","static/chunks/3696-fb046e68040b140e.js","935","static/chunks/935-5d63c47e4bc7ab53.js","6482","static/chunks/app/webui/update/page-5349247e3c94a91d.js"],"default",1] 4:I[55092,[],""] 5:I[82023,[],""] -6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-b4ac503461e8ae13.js"],""] -7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],""] -8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-30850a3a53b45d77.js"],"Toaster"] -0:["BdkHNW7I8ok4Z_JYMC9XR",[[["",{"children":["webui",{"children":["update",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["update",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","update","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/4b610322db99cc76.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] +6:I[16340,["6340","static/chunks/6340-cdbf44cff7943074.js","9160","static/chunks/app/not-found-85b8fc327df53b65.js"],""] +7:I[68230,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],""] +8:I[93296,["3296","static/chunks/3296-742cb17f842066fd.js","3185","static/chunks/app/layout-b41151c3428804f2.js"],"Toaster"] +0:["xF_WmCnLlFhi4or0pjN2u",[[["",{"children":["webui",{"children":["update",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["webui",{"children":["update",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children","update","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/df5692dccd88b7b4.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","link",null,{"rel":"icon","href":"/webui_asset/favicon.ico"}],["$","title",null,{"children":"Superduper Enterprise"}],["$","meta",null,{"name":"description","content":"Bring AI to your database"}],["$","meta",null,{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}]]}],["$","body",null,{"style":{"fontFamily":"Inter, sans-serif"},"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-center justify-center min-h-[400px] space-y-4","children":[["$","div",null,{"className":"text-center space-y-2","children":[["$","h1",null,{"className":"text-4xl font-extrabold tracking-tighter sm:text-6xl","children":"404"}],["$","p",null,{"className":"text-gray-500 dark:text-gray-400","children":"Page Not Found"}]]}],["$","$L6",null,{"className":"inline-flex h-10 items-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300","href":"/webui","children":"Go back home"}]]}],"notFoundStyles":[]}],["$","$L7",null,{"color":"#0BDA51","initialPosition":0.08,"crawlSpeed":200,"height":3,"crawl":true,"showSpinner":true,"easing":"ease","speed":200,"shadow":"0 0 10px #0BDA51,0 0 5px #0BDA51","template":"
","zIndex":1600,"showAtBottom":false}],["$","$L8",null,{}]]}]]}]],null],null],["$L9",null]]]] 9:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Superduper Enterprise"}],["$","meta","3",{"name":"description","content":"Bring AI to your database"}],["$","meta","4",{"property":"og:title","content":"Superduper Enterprise"}],["$","meta","5",{"property":"og:description","content":"Bring AI to your database"}],["$","meta","6",{"property":"og:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","meta","7",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","8",{"name":"twitter:title","content":"Superduper Enterprise"}],["$","meta","9",{"name":"twitter:description","content":"Bring AI to your database"}],["$","meta","10",{"name":"twitter:image","content":"http://webui.playground.superduper.io/webui_asset/background-5.png"}],["$","link","11",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"48x48"}],["$","link","12",{"rel":"icon","href":"/webui_asset/favicon.ico"}]] 1:null