"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[228],{41726:function(e,a,l){l.d(a,{VC:function(){return o}});var r=l(774),t=l(43270),s=l(96126),i=l.n(s);let n={alibaba:"/img/provider_logos/alibaba.svg",aws:"/img/provider_logos/aws-light.svg",azure:"/img/provider_logos/azure.svg",digitalocean:"/img/provider_logos/digitalocean.png",fluidstack:"/img/provider_logos/fluidstack.svg",gcp:"/img/provider_logos/gcp.svg",coreweave:"/img/provider_logos/coreweave.svg",jarvislabs:"/img/provider_logos/jarvislabs.svg",lambdalabs:"/img/provider_logos/lambda-light.jpeg",linode:"/img/provider_logos/linode.svg",oracle:"/img/provider_logos/oracle.svg",paperspace:"/img/provider_logos/paperspace.svg",vultr:"/img/provider_logos/vultr.svg",crusoe:"/img/provider_logos/crusoe.png",latitude:"/img/provider_logos/latitude.svg",datacrunch:"/img/provider_logos/datacrunch.svg",runpod:"/img/provider_logos/runpod.svg","llama2-7b":"/img/model_logos/llama.svg","llama2-13b":"/img/model_logos/llama.svg","llama2-13b-chat":"/img/model_logos/llama.svg","llama2-7b-chat":"/img/model_logos/llama.svg","WizardCoder-34b":"/img/model_logos/wizard.png","CodeLlama-34b":"/img/model_logos/llama.svg",containerregistry:"/img/provider_logos/docker.svg",oblivus:"/img/provider_logos/oblivus.png",tensordock:"/img/provider_logos/tensordock.png",massedcompute:"/img/provider_logos/massedcompute.png",imwt:"/img/provider_logos/imwt.png",hyperstack:"/img/provider_logos/hyperstack.svg",valdi:"/img/provider_logos/valdi.png",nebius:"/img/provider_logos/nebius.svg",denvr:"/img/provider_logos/denvr.png"};function o(e){let{providerName:a,className:l}=e,s=n[a];return s?(0,r.jsx)(i(),{src:s,alt:"".concat(a," logo"),width:25,height:25,className:(0,t.cn)("inline-block mr-2",l),priority:!0}):(0,r.jsx)("p",{children:"Unknown Provider"})}},77679:function(e,a,l){l.d(a,{Z:function(){return o}});var r=l(774);l(78612);var t=l(70192),s=l.n(t),i=l(41726),n=l(43270);function o(e){var a,l;let{cloud:t}=e;return(0,r.jsxs)(s(),{href:"clouds/".concat(t.cloud),className:"group relative flex gap-3 p-6 w-full rounded-xl flex-col bg-[#040E21] backdrop-blur-xl hover:bg-[#051329] transition-all duration-300 ease-in-out shadow-lg hover:shadow-xl overflow-hidden",children:[(0,r.jsx)("div",{className:"absolute inset-0 rounded-xl border-2 border-gray-100/10 group-hover:border-transparent transition-colors duration-300"}),(0,r.jsx)("div",{className:"absolute inset-[-2px] bg-gradient-to-r from-[#339867] to-[#436CA6] rounded-xl opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),(0,r.jsx)("div",{className:"absolute inset-[1px] bg-[#040E21] rounded-xl group-hover:bg-[#051329] transition-colors duration-300"}),(0,r.jsxs)("div",{className:"relative z-10 flex flex-col h-full",children:[(0,r.jsxs)("div",{className:"mr-3 flex flex-row items-center",children:[(0,r.jsx)("div",{className:"w-7 h-7",children:(0,r.jsx)(i.VC,{className:"w-7",providerName:t.cloud})}),(0,r.jsx)("div",{className:"ml-4 capitalize text-base",children:t.display_name})]}),(0,r.jsx)("div",{className:"text-[12px] text-gray-400",children:(0,r.jsx)("span",{children:t.subtext})}),(0,r.jsx)("div",{className:"flex flex-col justify-between gap-2 mt-auto",children:[{label:"Headquarters",value:t.info.headquarters},{label:"Datacenter Tier",value:t.info.datacenter_tier},{label:"Price",value:(e=>{let a="$$$$";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"font-semibold",children:a.slice(0,e)}),(0,r.jsx)("span",{className:"opacity-50",children:a.slice(e,a.length)})]})})(t.price_meter)},{label:"GPU Availability",value:(0,n.jo)(t.availability_meter)},{label:"Credentials",value:null==t?void 0:null===(l=t.info)||void 0===l?void 0:null===(a=l.merits)||void 0===a?void 0:a.join(", ")}].map((e,a)=>(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[(0,r.jsx)("div",{className:"text-[12px] font-bold",children:e.label}),(0,r.jsx)("div",{className:"rounded-[15px] p-px bg-gradient-to-r from-[#339867] to-[#436CA6]",children:(0,r.jsx)("div",{className:"rounded-[14px] text-[11px] px-3 py-1 bg-[#040E21] group-hover:bg-[#051329] transition-colors duration-300",children:e.value})})]},a))})]})]})}},93228:function(e,a,l){l.r(a),l.d(a,{default:function(){return G}});var r=l(774),t=l(78612),s=l(70192),i=l.n(s),n=l(43604),o=l(50357),d=l(44823),c=l(62610),u=l(76370),m=l(80031),g=l(60560),p=l(13937),f=l(16846),x=l(43270),h=l(23147),v=l(99946);let b=v.fC,j=v.xz;v.ZA,v.Uv,v.Tr,v.Ee,t.forwardRef((e,a)=>{let{className:l,inset:t,children:s,...i}=e;return(0,r.jsxs)(v.fF,{ref:a,className:(0,x.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",t&&"pl-8",l),...i,children:[s,(0,r.jsx)(d.XCv,{className:"ml-auto h-4 w-4"})]})}).displayName=v.fF.displayName,t.forwardRef((e,a)=>{let{className:l,...t}=e;return(0,r.jsx)(v.tu,{ref:a,className:(0,x.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",l),...t})}).displayName=v.tu.displayName;let y=t.forwardRef((e,a)=>{let{className:l,sideOffset:t=4,...s}=e;return(0,r.jsx)(v.Uv,{children:(0,r.jsx)(v.VY,{ref:a,sideOffset:t,className:(0,x.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",l),...s})})});y.displayName=v.VY.displayName,t.forwardRef((e,a)=>{let{className:l,inset:t,...s}=e;return(0,r.jsx)(v.ck,{ref:a,className:(0,x.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",t&&"pl-8",l),...s})}).displayName=v.ck.displayName;let N=t.forwardRef((e,a)=>{let{className:l,children:t,checked:s,...i}=e;return(0,r.jsxs)(v.oC,{ref:a,className:(0,x.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",l),checked:s,...i,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(v.wU,{children:(0,r.jsx)(d.nQG,{className:"h-4 w-4"})})}),t]})});N.displayName=v.oC.displayName,t.forwardRef((e,a)=>{let{className:l,children:t,...s}=e;return(0,r.jsxs)(v.Rk,{ref:a,className:(0,x.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",l),value:null==s?void 0:s.value,...s,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(v.wU,{children:(0,r.jsx)(d.jXb,{className:"h-4 w-4 fill-current"})})}),t]})}).displayName=v.Rk.displayName,t.forwardRef((e,a)=>{let{className:l,inset:t,...s}=e;return(0,r.jsx)(v.__,{ref:a,className:(0,x.cn)("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",l),...s})}).displayName=v.__.displayName,t.forwardRef((e,a)=>{let{className:l,...t}=e;return(0,r.jsx)(v.Z0,{ref:a,className:(0,x.cn)("-mx-1 my-1 h-px bg-muted",l),...t})}).displayName=v.Z0.displayName;var w=l(71504),_=l(58832),C=l(86076),k=l(74072),S=l(41726);let R=(e,a)=>{let l="asc"===e.getIsSorted(),t="desc"===e.getIsSorted();return(0,r.jsxs)(h.z,{variant:"ghost",onClick:()=>{if(l){e.clearSorting();return}if(t){e.toggleSorting(!1);return}e.toggleSorting(!0)},children:[a,l?(0,r.jsx)(d.g8U,{className:"ml-2 h-4 w-4"}):t?(0,r.jsx)(d.v4q,{className:"ml-2 h-4 w-4"}):(0,r.jsx)(d.jnn,{className:"ml-2 h-4 w-4"})]})},V=e=>"any"===e?"Any Region":"msc1"===e.toLowerCase()?"Calgary, AB":e,z=e=>(0,r.jsxs)(k.u,{children:[(0,r.jsx)(k.aJ,{asChild:!0,children:(0,r.jsx)("div",{className:(0,x.cn)("w-2 h-2 rounded-full",e?"bg-green-400":"bg-red-400")})}),(0,r.jsx)(k._v,{children:(0,r.jsx)("p",{children:e?"Available":"Unavailable"})})]}),A=(e,a)=>{var l,t;let s=null===(l=e.original.availability)||void 0===l?void 0:l.filter(e=>e.available),i=null===(t=e.original.availability)||void 0===t?void 0:t.filter(e=>!e.available),n=new Set;e.original.availability.forEach(e=>{let a=(0,x.YJ)(e.region);a&&n.add(a)});let o=(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)("div",{className:"mr-2",children:Array.from(n).join("")})," ",s.length," Region",1===s.length?"":"s"," ","Available"]});if(1===e.original.availability.length){let a=e.original.availability[0];o=(0,r.jsxs)("div",{className:(0,x.cn)("flex",!a.available&&"text-gray-400"),children:[(0,r.jsx)("div",{className:(0,x.cn)("mr-2"),children:(0,x.YJ)(a.region)}),(0,r.jsx)("div",{children:V(a.region)})]})}else s.length||(o=(0,r.jsxs)("div",{className:"flex text-gray-400",children:[(0,r.jsx)("div",{className:"mr-2",children:Array.from(n).join("")})," No Regions available"]}));return a&&(o=(0,r.jsxs)("div",{className:"flex flex-col",children:[o,(0,r.jsxs)("div",{className:"flex flex-col mt-2",children:[s.map(e=>{let a=(0,x.YJ)(e.region);return(0,r.jsxs)("div",{className:"flex items-center mt-0.5",children:[n.size>1&&(0,r.jsx)("div",{className:"opacity-0",children:"\uD83C\uDDFA\uD83C\uDDF8".repeat(n.size-1)}),(0,r.jsx)("div",{className:(0,x.cn)("mr-2",!a&&"w-4"),children:a}),(0,r.jsx)("div",{children:V(e.region)}),(0,r.jsx)("div",{className:"ml-2",children:z(!0)})]},e.region)}),i.map(e=>{let a=(0,x.YJ)(e.region);return(0,r.jsxs)("div",{className:"flex items-center mt-0.5 text-gray-400",children:[n.size>1&&(0,r.jsx)("div",{className:"opacity-0",children:"\uD83C\uDDFA\uD83C\uDDF8".repeat(n.size-1)}),(0,r.jsx)("div",{className:(0,x.cn)("mr-2",!a&&"w-4"),children:a}),(0,r.jsx)("div",{children:V(e.region)}),(0,r.jsx)("div",{className:"ml-2",children:z(!1)})]},e.region)})]})]})),o},P=e=>{var a;let l=null===(a=e.original.availability)||void 0===a?void 0:a.filter(e=>e.available),t=a=>{var r;a.preventDefault();let t=l.length?l[0].region:null===(r=e.original.availability[0])||void 0===r?void 0:r.region,s="https://platform.shadeform.ai/launch?cloud=".concat(e.getValue("cloud"),"&shadeInstanceType=").concat(e.original.shade_instance_type,"&region=").concat(t,"&schedule=").concat(!l.length);o.ZP.capture("button_clicked",{button_type:"launch_instance",button_name:"table_launch_button",cloud:e.getValue("cloud"),instanceType:e.original.shade_instance_type,region:t,schedule:!l.length}),window.open(s,"_blank")};return(0,r.jsxs)("button",{type:"button",className:(0,x.cn)("group relative flex items-center justify-center w-full h-[30px] bg-transparent rounded-full hover:shadow-[0_0_12px_2px_#22c790] transition-all my-[-10px] p-2 shadow-[0_0_6px_0_#22c790]"),onClick:e=>t(e),children:[(0,r.jsx)("div",{className:"before:absolute before:bg-black"}),(0,r.jsx)("span",{className:(0,x.cn)("font-semibold text-[13px] transition-colors text-[#ffffffdd] group-hover:text-white"),children:l.length?"Launch":"Schedule"})]})},D=[{accessorKey:"cloud",header:e=>{let{column:a}=e;return R(a,"Cloud")},cell:e=>{var a;let{row:l}=e,t=null===(a=l.original.availability)||void 0===a?void 0:a.filter(e=>e.available);return(0,r.jsxs)("div",{className:"flex flex-row items-center min-w-[10rem]",children:[(0,r.jsx)(S.VC,{className:"w-4 h-4",providerName:l.getValue("cloud")}),(0,r.jsx)("div",{className:"capitalize",children:u.Tk[l.getValue("cloud")]}),(0,r.jsx)("div",{className:"ml-2",children:z(t.length>0)})]})}},{id:"gpu_type",accessorKey:"configuration.gpu_type",header:e=>{let{column:a}=e;return R(a,"GPU Type")},cell:e=>{var a;let{row:l}=e;return(0,r.jsx)("div",{children:null===(a=l.getValue("gpu_type"))||void 0===a?void 0:a.replaceAll("_"," ")})}},{id:"instance_type",accessorKey:"shade_instance_type",header:e=>{let{column:a}=e;return R(a,"Instance Type")},cell:e=>{var a;let{row:l}=e;return(0,r.jsx)("div",{children:null===(a=l.getValue("instance_type"))||void 0===a?void 0:a.replaceAll("_"," ")})}},{id:"num_gpus",accessorKey:"configuration.num_gpus",header:e=>{let{column:a}=e;return R(a,"Num GPUs")},cell:e=>{let{row:a}=e;return(0,r.jsx)("div",{className:"text-center",children:a.getValue("num_gpus")})}},{id:"vram",accessorKey:"vram",header:e=>{let{column:a}=e;return R(a,"VRAM in GB")},cell:e=>{let{row:a}=e;return(0,r.jsx)("div",{className:"text-center",children:Number(a.getValue("vram"))*Number(a.getValue("num_gpus"))})}},{accessorKey:"availability",header:e=>{let{column:a}=e;return R(a,"Availability")},sortingFn:(e,a,l)=>{var r,t;return(null===(r=e.original.availability)||void 0===r?void 0:r.filter(e=>e.available).length)-(null===(t=a.original.availability)||void 0===t?void 0:t.filter(e=>e.available).length)},cell:e=>{let{row:a}=e,l=a.getIsExpanded()?d.g8U:d.v4q;return(0,r.jsxs)("div",{className:"flex flex-row justify-between min-w-[14rem]",children:[A(a,a.getIsExpanded()),(0,r.jsx)("div",{children:(0,r.jsx)("div",{className:"flex flex-row items-center grow-0 mt-0.5",children:(0,r.jsx)(l,{onClick:()=>a.toggleExpanded(),className:(0,x.cn)("w-4 h-4 ml-2",a.original.availability.length<=1?"opacity-0":"cursor-pointer")})})})]})}},{accessorKey:"hourly_price",header:e=>{let{column:a}=e;return R(a,"Hourly Price")},cell:e=>{let{row:a}=e;return(0,r.jsx)("div",{className:"text-center",children:(0,x.DY)(a.getValue("hourly_price"))})}},{id:"interconnect",accessorKey:"configuration.interconnect",header:e=>{let{column:a}=e;return R(a,"GPU Interconnect")},cell:e=>{let{row:a}=e;return(0,r.jsx)("div",{className:"text-center",children:a.getValue("interconnect")})}},{id:"memory_in_gb",accessorKey:"configuration.memory_in_gb",header:e=>{let{column:a}=e;return R(a,"Memory in GB")},cell:e=>{let{row:a}=e;return(0,r.jsx)("div",{className:"text-center",children:a.getValue("memory_in_gb")})}},{id:"storage_in_gb",accessorKey:"configuration.storage_in_gb",header:e=>{let{column:a}=e;return R(a,"Storage in GB")},cell:e=>{let{row:a}=e;return(0,r.jsx)("div",{className:"text-center",children:a.getValue("storage_in_gb")})}},{id:"vcpus",accessorKey:"configuration.vcpus",header:e=>{let{column:a}=e;return R(a,"vCPUs")},cell:e=>{let{row:a}=e;return(0,r.jsx)("div",{className:"text-center",children:a.getValue("vcpus")})}},{id:"actions",enableHiding:!1,header:()=>(0,r.jsx)("div",{className:"text-center bg-[#040e21]",children:"Actions"}),cell:e=>{let{row:a}=e;return P(a)}}];function U(e){var a,l;let{gpuInstanceRow:s}=e,n=s.getValue("cloud"),o=s.getValue("instance_type"),c=t.useMemo(()=>{var e;return null===(e=s.original.availability)||void 0===e?void 0:e.filter(e=>e.available)},[s]),m=s.getIsExpanded()?d.g8U:d.v4q;return(0,r.jsxs)(i(),{className:"relative group flex gap-6 w-full rounded-xl border-2 border-gray-100/10 flex-col bg-gray-900/20 backdrop-blur-xl",href:"instances/".concat(n,"/").concat(o),children:[(0,r.jsx)("div",{className:"absolute inset-0 rounded-xl border-1 border-gray-100/10 group-hover:border-transparent transition-colors duration-300"}),(0,r.jsx)("div",{className:"absolute inset-[-2px] bg-gradient-to-r from-[#339867] to-[#436CA6] rounded-xl opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),(0,r.jsx)("div",{className:"absolute inset-[-1px] bg-[#040E21] rounded-xl group-hover:bg-[#051329] transition-colors duration-300"}),(0,r.jsxs)("div",{className:"relative flex gap-6 p-6 w-full rounded-xl flex-col",children:[(0,r.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex flex-row items-center",children:[(0,r.jsx)(S.VC,{className:"w-4 h-4",providerName:s.getValue("cloud")}),(0,r.jsx)("div",{className:"capitalize",children:u.Tk[s.getValue("cloud")]})]}),(0,r.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[z(c.length>0),(0,x.DY)(s.getValue("hourly_price"))]})]}),(0,r.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,r.jsxs)("div",{children:[null===(a=s.getValue("gpu_type"))||void 0===a?void 0:a.replaceAll("_"," ")," ",s.getValue("vram"),"G"," ",null===(l=s.getValue("interconnect"))||void 0===l?void 0:l.toUpperCase()]}),(0,r.jsxs)("div",{children:[s.getValue("num_gpus")," GPU",1===s.getValue("num_gpus")?"":"s"]})]}),(0,r.jsxs)("div",{className:"flex flex-col justify-between gap-4",children:[(0,r.jsxs)("div",{className:"flex flex-row",children:[A(s,s.getIsExpanded()),(0,r.jsx)("div",{children:(0,r.jsx)("div",{className:"flex flex-row items-center grow-0 mt-0.5",children:(0,r.jsx)(m,{onClick:e=>{e.preventDefault(),e.stopPropagation(),s.toggleExpanded()},className:(0,x.cn)("w-4 h-4 ml-2",s.original.availability.length<=1?"display-none":"cursor-pointer")})})})]}),(0,r.jsx)("div",{className:"flex pt-2 items-start h-full z-10",children:P(s)})]})]})]})}var E=l(77679);function G(e){let{filteredTypes:a,loading:l}=(0,p.g)(),[s,v]=(0,t.useState)(!1),[k,S]=(0,t.useState)(12),R=(0,f.Z)(),[V,z]=(0,t.useState)([]),[A,P]=(0,t.useState)([]),[G,I]=(0,t.useState)({}),[T,M]=(0,t.useState)({}),[K,F]=(0,t.useState)(a),[Z,B]=(0,t.useState)(a),[Q,Y]=(0,t.useState)(""),[L,q]=(0,t.useState)(e.defaultCardView),[H,J]=(0,t.useState)(e.prefilledCloud),[$,W]=(0,t.useState)(""),[O,X]=(0,t.useState)(""),[ee,ea]=(0,t.useState)(""),el=(0,t.useMemo)(()=>Array.from(new Set(Z.map(e=>{var a,l;return(null==e?void 0:null===(a=e.cloud)||void 0===a?void 0:a.charAt(0).toUpperCase())+(null==e?void 0:null===(l=e.cloud)||void 0===l?void 0:l.slice(1))}))),[Z]),er=(0,t.useMemo)(()=>Array.from(new Set(Z.map(e=>e.configuration.gpu_type))),[Z]),et=(0,t.useMemo)(()=>Array.from(new Set(Z.map(e=>e.configuration.num_gpus))).sort((e,a)=>e-a).map(e=>e.toString()),[Z]),es=(0,t.useMemo)(()=>Array.from(new Set(Z.map(e=>e.availability.some(e=>e.available)?"Available":"Unavailable"))),[Z]);(0,t.useEffect)(()=>{R?S(4):S(12)},[R]),(0,t.useEffect)(()=>{l||(F(a),B(a))},[a]),(0,t.useEffect)(()=>{let e=K;if(Q){let a=Q.toLowerCase().split(" ");e=K.filter(e=>a.some(a=>D.some(l=>{if(!l.accessorKey)return!1;let r=e;return l.accessorKey.split(".").forEach(e=>{r&&(r=r[e])}),r&&String(r).toLowerCase().includes(a)})))}$&&(e=e.filter(e=>e.configuration.gpu_type===$)),O&&(e=e.filter(e=>e.configuration.num_gpus===Number(O))),ee&&(e=e.filter(e=>e.availability.some(e=>e.available)===("Available"===ee))),H&&(e=e.filter(e=>e.cloud===H.toLowerCase())),B(e)},[Q,$,K,O,ee,H]);let ei=(0,m.b7)({data:Z,columns:D,onSortingChange:z,onColumnFiltersChange:P,getCoreRowModel:(0,g.sC)(),getPaginationRowModel:(0,g.G_)(),getSortedRowModel:(0,g.tj)(),getFilteredRowModel:(0,g.vL)(),onColumnVisibilityChange:I,onRowSelectionChange:M,state:{sorting:V,columnFilters:A,columnVisibility:G,rowSelection:T},initialState:{columnVisibility:{gpu_type_priority:!1},pagination:{pageSize:e.defaultCardView?k:e.defaultNumRows}}});if((0,t.useEffect)(()=>{ei.setPageSize(L?k:e.defaultNumRows)},[L,e,k]),(0,t.useEffect)(()=>{q(e.defaultCardView)},[e]),(0,t.useEffect)(()=>{v(!0)},[]),!s)return null;let en=(e,a,l,t)=>(0,r.jsxs)(C.Ph,{value:e||"",onValueChange:a,children:[(0,r.jsxs)(C.IR,{className:"min-w-36 lg:w-36 bg-gradient-to-b from-cyan-700/20 to-cyan-700/10 bg-transparent focus-visible:ring-cyan-100/30 border border-gray-100/10",children:[(0,r.jsx)(C.ki,{placeholder:t}),(0,r.jsx)(n.JO,{asChild:!0,children:e?(0,r.jsx)(d.ypG,{className:"h-4 w-4 opacity-50",onPointerDown:e=>{a("")}}):(0,r.jsx)(d.jnn,{className:"h-4 w-4 opacity-50"})})]}),(0,r.jsx)(C.Bw,{className:"bg-gradient-to-b from-cyan-700/20 to-cyan-700/10",children:(0,r.jsx)(C.DI,{children:l.map(e=>(0,r.jsx)(C.Ql,{className:"focus:bg-cyan-700/50 focus:text-cyan-100",value:e,children:u.Tk[null==e?void 0:e.toLowerCase()]||e},e))})})]},t+e),eo="bg-white bg-opacity-10 rounded-md border-white border-opacity-10";return(0,r.jsxs)("div",{className:"w-full bg-[#040e21] mt-4 md:m-0 md:p-4 lg:p-10 rounded-2xl",children:[(0,r.jsx)("div",{className:"hidden lg:block mb-12",children:(0,r.jsx)("span",{className:"leading-8 text-[#94A3B8] text-sm",children:"Real-time pricing, availability, and one-click launch for vms and containers across all GPU cloud providers. Although different cloud providers may have the same GPU instances, other factors such as memory, CPU count, storage, and play critical roles in performance and pricing."})}),(0,r.jsxs)("div",{className:"flex flex-col gap-2 md:flex-row lg:items-center justify-between  flex-wrap ".concat(e.small?"mb-12":"mb-4"),children:[(0,r.jsx)("div",{className:"flex flex-col items-start lg:flex-row lg:items-center gap-2 flex-1",children:(0,r.jsxs)("div",{className:"w-full flex flex-row items-center gap-2 flex-1 flex-wrap md:flex-nowrap",children:[(0,r.jsx)(w.I,{placeholder:"Search...",value:Q,onChange:e=>Y(e.target.value),className:"w-full flex-1 min-w-36"}),(!R||!L)&&(0,r.jsxs)(r.Fragment,{children:[!e.prefilledCloud&&en(H,J,el,"Cloud"),en($,W,er,"GPU Type"),en(O,X,et,"Num GPUs"),en(ee,ea,es,"Availability")]})]})}),!e.small&&(0,r.jsxs)("div",{className:"flex gap-1 items-center w-full md:w-fit",children:[!L&&(0,r.jsxs)(b,{children:[(0,r.jsx)(j,{asChild:!0,children:(0,r.jsxs)(h.z,{variant:"outline",className:"h-9 mr-0 bg-gradient-to-b from-cyan-700/20 to-cyan-700/10 bg-transparent focus-visible:ring-cyan-100/30 border border-gray-100/10 text-sm font-normal w-full md:w-fit",children:["Columns ",(0,r.jsx)(d.v4q,{className:"ml-2 h-4 w-4"})]})}),(0,r.jsx)(y,{className:"bg-gradient-to-b from-cyan-700/20 to-cyan-700/10",align:"end",children:ei.getAllColumns().filter(e=>e.getCanHide()).map(e=>(0,r.jsx)(N,{className:"focus:bg-cyan-700/50 focus:text-cyan-100 capitalize",checked:e.getIsVisible(),onCheckedChange:a=>e.toggleVisibility(!!a),children:e.id.replaceAll("_"," ")},e.id))})]}),(0,r.jsxs)("div",{className:"px-[0.1rem] rounded-lg border justify-start items-center hidden md:inline-flex h-9 m-1",children:[(0,r.jsx)("div",{className:(0,x.cn)("border border-[#0000] justify-start items-center flex cursor-pointer",!L&&eo),onClick:()=>q(!1),children:(0,r.jsx)(d.jVc,{className:"h-5 w-5 m-[0.3rem] text-white/80"})}),(0,r.jsx)("div",{className:(0,x.cn)("border border-[#0000] justify-start items-center flex cursor-pointer",L&&eo),onClick:()=>q(!0),children:(0,r.jsx)(d.pso,{className:"h-4 w-4 m-[0.44rem] text-white/80"})})]})]})]}),(0,r.jsx)("div",{className:"overflow-hidden ".concat(!e.small&&"min-h-[38rem]"),children:(0,r.jsx)("div",{className:L?void 0:"border-2 border-gray-100/10 rounded-sm",children:(0,r.jsxs)(_.iA,{children:[!L&&(0,r.jsx)(_.xD,{className:"",children:ei.getHeaderGroups().map(e=>(0,r.jsx)(_.SC,{className:"border-[var(--gpu-table-border)] border-opacity-60",children:e.headers.map(e=>(0,r.jsx)(_.ss,{className:(0,x.cn)("border-[var(--gpu-table-border)] border-opacity-60","last:sticky last:right-0 last:rounded-r-xl last:h-full last:p-0 last:border-l-0"),children:e.isPlaceholder?null:(0,m.ie)(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),(0,r.jsx)(_.RM,{className:(0,x.cn)("border-[var(--gpu-table-border)]",L&&"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 2xl:grid-cols-4"),children:(()=>{if(l)return(0,r.jsx)(_.SC,{className:"border-[var(--gpu-table-border)] border-opacity-60",children:(0,r.jsx)(_.pj,{colSpan:D.length,className:"h-24 text-center border-[var(--gpu-table-border)] border-opacity-60",children:"Loading..."})});if(!ei.getRowModel().rows.length)return(0,r.jsx)(_.SC,{children:(0,r.jsx)(_.pj,{colSpan:D.length,className:"h-24 text-center",children:"No results."})});if(null==e?void 0:e.clouds){var a;return null==e?void 0:null===(a=e.clouds)||void 0===a?void 0:a.map(e=>(0,r.jsx)("tr",{className:"w-full h-full",children:(0,r.jsx)("td",{className:"flex w-full h-full",children:(0,r.jsx)(E.Z,{cloud:e},e.cloud)})},e.cloud))}return ei.getRowModel().rows.map(e=>{if(L)return(0,r.jsx)("tr",{className:"w-full h-full",children:(0,r.jsx)("td",{className:"flex w-full h-full",children:(0,r.jsx)(U,{gpuInstanceRow:e})})},e.id);let a=e.getVisibleCells(),l=a[a.length-1];return(0,r.jsxs)(_.SC,{className:"border-[var(--gpu-table-border)] border-opacity-40 hover:bg-white/5 transition-colors cursor-pointer","data-state":e.getIsSelected()&&"selected",children:[(0,r.jsx)(i(),{href:"/instances/".concat(null==e?void 0:e.original.cloud,"/").concat(null==e?void 0:e.original.shade_instance_type),className:"contents",children:a.map((e,l)=>{let t=(0,m.ie)(e.column.columnDef.cell,e.getContext());return l===a.length-1?null:(0,r.jsx)(_.pj,{className:(0,x.cn)("border-[var(--gpu-table-border)] border-opacity-40 border-l first:border-l-0"),children:t},e.id)})}),(0,r.jsx)(_.pj,{className:"sticky right-0 bg-[#040e21] h-full p-4 border-l-0",children:(0,m.ie)(l.column.columnDef.cell,l.getContext())})]},e.id)})})()})]})})}),(0,r.jsxs)("div",{className:"flex items-center justify-end space-x-8 py-4",children:[!L&&(0,r.jsxs)("div",{className:"items-center text-sm gap-2 hidden md:flex",children:[(0,r.jsx)("div",{className:"text-[var(--gpu-table-border)] text-white",children:"Rows per page"}),(0,r.jsxs)(C.Ph,{value:ei.getState().pagination.pageSize.toString(),onValueChange:e=>ei.setPageSize(Number(e)),children:[(0,r.jsx)(C.i4,{className:"w-16 border-[var(--gpu-table-border)] h-8 ",children:(0,r.jsx)(C.ki,{})}),(0,r.jsx)(C.Bw,{children:(0,r.jsxs)(C.DI,{children:[(0,r.jsx)(C.Ql,{value:"5",children:"5"}),(0,r.jsx)(C.Ql,{value:"10",children:"10"}),(0,r.jsx)(C.Ql,{value:"15",children:"15"}),(0,r.jsx)(C.Ql,{value:"25",children:"25"}),(0,r.jsx)(C.Ql,{value:"50",children:"50"}),(0,r.jsx)(C.Ql,{value:"100",children:"100"})]})})]})]}),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex-0 text-sm",children:["Page ",ei.getState().pagination.pageIndex+1," of"," ",ei.getPageCount()]}),(0,r.jsxs)("div",{className:"space-x-2",children:[(0,r.jsx)(h.z,{variant:"outline",size:"sm",className:"bg-zinc-100/10 hover:bg-zinc-100/20 border-none",onClick:()=>ei.previousPage(),disabled:!ei.getCanPreviousPage(),children:"Previous"}),(0,r.jsx)(h.z,{variant:"outline",size:"sm",className:"bg-zinc-100/10 hover:bg-zinc-100/20 border-none",onClick:()=>ei.nextPage(),disabled:!ei.getCanNextPage(),children:"Next"})]})]})]}),(0,r.jsx)("a",{href:"mailto:".concat(u.be),className:"w-full flex items-center justify-center ".concat(e.small?"mt-7":"mt-16"," "),children:(0,r.jsx)(c.KM,{className:"text-sm lg:text-base px-7 border-none font-normal mb-6 bg-gradient-to-r from-[rgba(255, 255, 255, 0.05)] to-[rgba(255, 255, 255, 0.15)]",onClick:()=>{o.ZP.capture("button_clicked",{button_type:"connect_with_us",button_name:"email_link",button_text:"Want to be listed? Contact us here."})},children:"Want to be listed? Contact us here."})})]})}},62610:function(e,a,l){l.d(a,{Ee:function(){return r.default},KM:function(){return s.default},We:function(){return t.default}});var r=l(89357);l(84163),l(41866);var t=l(45379),s=l(59241);l(80819)},86076:function(e,a,l){l.d(a,{Bw:function(){return f},DI:function(){return d},IR:function(){return m},Ph:function(){return o},Ql:function(){return x},i4:function(){return u},ki:function(){return c}});var r=l(774),t=l(78612),s=l(44823),i=l(43604),n=l(43270);let o=i.fC,d=i.ZA,c=i.B4,u=t.forwardRef((e,a)=>{let{className:l,children:t,...o}=e;return(0,r.jsxs)(i.xz,{ref:a,className:(0,n.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:[t,(0,r.jsx)(i.JO,{asChild:!0,children:(0,r.jsx)(s.jnn,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=i.xz.displayName;let m=t.forwardRef((e,a)=>{let{className:l,children:t,...s}=e;return(0,r.jsx)(i.xz,{ref:a,className:(0,n.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),...s,children:t})});m.displayName=i.xz.displayName;let g=t.forwardRef((e,a)=>{let{className:l,...t}=e;return(0,r.jsx)(i.u_,{ref:a,className:(0,n.cn)("flex cursor-default items-center justify-center py-1",l),...t,children:(0,r.jsx)(s.g8U,{})})});g.displayName=i.u_.displayName;let p=t.forwardRef((e,a)=>{let{className:l,...t}=e;return(0,r.jsx)(i.$G,{ref:a,className:(0,n.cn)("flex cursor-default items-center justify-center py-1",l),...t,children:(0,r.jsx)(s.v4q,{})})});p.displayName=i.$G.displayName;let f=t.forwardRef((e,a)=>{let{className:l,children:t,position:s="popper",...o}=e;return(0,r.jsx)(i.h_,{children:(0,r.jsxs)(i.VY,{ref:a,className:(0,n.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"===s&&"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:s,...o,children:[(0,r.jsx)(g,{}),(0,r.jsx)(i.l_,{className:(0,n.cn)("p-1","popper"===s&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),(0,r.jsx)(p,{})]})})});f.displayName=i.VY.displayName,t.forwardRef((e,a)=>{let{className:l,...t}=e;return(0,r.jsx)(i.__,{ref:a,className:(0,n.cn)("px-2 py-1.5 text-sm font-semibold",l),...t})}).displayName=i.__.displayName;let x=t.forwardRef((e,a)=>{let{className:l,children:t,...o}=e;return(0,r.jsxs)(i.ck,{ref:a,className:(0,n.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),value:null==o?void 0:o.value,...o,children:[(0,r.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(i.wU,{children:(0,r.jsx)(s.nQG,{className:"h-4 w-4"})})}),(0,r.jsx)(i.eT,{children:t})]})});x.displayName=i.ck.displayName,t.forwardRef((e,a)=>{let{className:l,...t}=e;return(0,r.jsx)(i.Z0,{ref:a,className:(0,n.cn)("-mx-1 my-1 h-px bg-muted",l),...t})}).displayName=i.Z0.displayName},58832:function(e,a,l){l.d(a,{RM:function(){return o},SC:function(){return d},iA:function(){return i},pj:function(){return u},ss:function(){return c},xD:function(){return n}});var r=l(774),t=l(78612),s=l(43270);let i=t.forwardRef((e,a)=>{let{className:l,...t}=e;return(0,r.jsx)("div",{className:"relative w-full overflow-auto",children:(0,r.jsx)("table",{ref:a,className:(0,s.cn)("w-full caption-bottom text-sm",l),...t})})});i.displayName="Table";let n=t.forwardRef((e,a)=>{let{className:l,...t}=e;return(0,r.jsx)("thead",{ref:a,className:(0,s.cn)("[&_tr]:border-b",l),...t})});n.displayName="TableHeader";let o=t.forwardRef((e,a)=>{let{className:l,...t}=e;return(0,r.jsx)("tbody",{ref:a,className:(0,s.cn)("[&_tr:last-child]:border-0",l),...t})});o.displayName="TableBody",t.forwardRef((e,a)=>{let{className:l,...t}=e;return(0,r.jsx)("tfoot",{ref:a,className:(0,s.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",l),...t})}).displayName="TableFooter";let d=t.forwardRef((e,a)=>{let{className:l,...t}=e;return(0,r.jsx)("tr",{ref:a,className:(0,s.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",l),...t})});d.displayName="TableRow";let c=t.forwardRef((e,a)=>{let{className:l,...t}=e;return(0,r.jsx)("th",{ref:a,className:(0,s.cn)("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",l),...t})});c.displayName="TableHead";let u=t.forwardRef((e,a)=>{let{className:l,...t}=e;return(0,r.jsx)("td",{ref:a,className:(0,s.cn)("px-4 py-6 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",l),...t})});u.displayName="TableCell",t.forwardRef((e,a)=>{let{className:l,...t}=e;return(0,r.jsx)("caption",{ref:a,className:(0,s.cn)("mt-4 text-sm text-muted-foreground",l),...t})}).displayName="TableCaption"},16846:function(e,a,l){var r=l(19867);a.Z=()=>{let{width:e}=(0,r.iP)();return e<640}}}]);