"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9247],{43245:function(e,t,s){s.r(t),s.d(t,{Footer:function(){return d}});var a=s(57437),l=s(87138),r=s(4086),n=s(9229),i=s(27218),o=s(87055),c=s(59799);function d(){const e=(new Date).getFullYear();return(0,a.jsxs)("footer",{className:"forfooter flex flex-col items-center justify-center  bg-gray-950 px-10 py-4 font-[sans-serif] md:flex-row",children:[(0,a.jsxs)("span",{className:"mx-4 text-xs text-gray-300",children:["\xa9 ",e," Jarvislabs.ai | All Rights Reserved | Made with \u2764\ufe0f in India"]}),(0,a.jsxs)("div",{className:"mx-4 flex gap-4 text-gray-300",children:[(0,a.jsx)(l.default,{href:"/termsandservice",children:(0,a.jsx)("span",{className:"text-xs text-gray-300 transition-colors duration-300 hover:text-white hover:underline",children:"Terms and Conditions"})}),(0,a.jsx)(l.default,{href:"/contactus",children:(0,a.jsx)("span",{className:"text-xs text-gray-300 transition-colors duration-300 hover:text-white hover:underline",children:"Contact Us"})})]}),(0,a.jsxs)("div",{className:"mx-4 flex gap-2 text-gray-300",children:[(0,a.jsx)(l.default,{href:"mailto:hello@jarvislabs.ai",target:"_blank",rel:"noopener noreferrer",children:(0,a.jsx)(r.Z,{className:"h-4 w-4 transition-transform duration-300 hover:scale-110 hover:text-gray-500"})}),(0,a.jsx)(l.default,{href:"https://www.youtube.com/channel/UCAMo8bfMjeMyY_CTkcN9fcA",target:"_blank",rel:"noopener noreferrer",children:(0,a.jsx)(n.Z,{className:"h-4 w-4 transition-transform duration-300 hover:scale-110 hover:text-gray-500"})}),(0,a.jsx)(l.default,{href:"https://www.linkedin.com/company/jarvislabsai/",target:"_blank",rel:"noopener noreferrer",children:(0,a.jsx)(i.Z,{className:"h-4 w-4 transition-transform duration-300 hover:scale-110 hover:text-gray-500"})}),(0,a.jsx)(l.default,{href:"https://github.com/jarvislabsai",target:"_blank",rel:"noopener noreferrer",children:(0,a.jsx)(o.Z,{className:"h-4 w-4 transition-transform duration-300 hover:scale-110 hover:text-gray-500"})}),(0,a.jsx)(l.default,{href:"https://twitter.com/jarvislabsai",target:"_blank",rel:"noopener noreferrer",children:(0,a.jsx)(c.Z,{className:"h-4 w-4 transition-transform duration-300 hover:scale-110 hover:text-gray-400"})})]})]})}},57946:function(e,t,s){s.d(t,{h:function(){return $}});var a=s(57437),l=s(2265),r=s(87138),n=s(49896),i=s(10875),o=s(65658),c=s(73384),d=s(56465),x=s(66648),h=s(45923),m=s(24258),f=s(89896);function u(e){let{user:t}=e;var s;const l=t.fullName,r=null===(s=t.primaryEmailAddress)||void 0===s?void 0:s.emailAddress;return(0,a.jsxs)("div",{className:"px-4 py-3",children:[l&&(0,a.jsx)("p",{className:"text-sm text-gray-300",children:l}),r&&(0,a.jsx)("p",{className:"truncate text-sm text-gray-500",children:r})]})}const g=e=>{let{active:t,children:s,onClick:l}=e;return(0,a.jsx)(h.v.Item,{children:e=>{let{active:t}=e;return(0,a.jsx)("button",{onClick:l,className:"".concat(t?" text-gray-300":"text-gray-500"," group flex w-full items-center px-4 py-2 text-sm hover:cursor-pointer"),children:s})}})};var p=()=>{const{user:e}=(0,d.aF)(),{signOut:t}=(0,d.ll)();return e?(0,a.jsxs)(h.v,{as:"div",className:"relative inline-block w-20 text-left ",children:[(0,a.jsx)("div",{children:(0,a.jsx)(h.v.Button,{className:"inline-flex w-full justify-center rounded-md",children:e&&e.imageUrl&&(0,a.jsx)(x.default,{quality:75,src:e.imageUrl,height:208,width:342,unoptimized:!0,alt:e.fullName,className:"h-10 w-auto rounded-full bg-slate-700"})})}),(0,a.jsx)(o.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,a.jsxs)(h.v.Items,{className:"absolute  right-0 mt-2  w-64 origin-top-right divide-y divide-gray-800  rounded-md bg-gray-900 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",children:[(0,a.jsx)(u,{user:e}),(0,a.jsx)("div",{className:"py-1",children:[{href:"/settings",icon:(0,a.jsx)(m.Z,{className:"mr-2 h-5 w-5"}),label:"Settings"},{onClick:t,href:"",icon:(0,a.jsx)(f.Z,{className:"mr-2 h-5 w-5"}),label:"Log out"}].map(((e,t)=>(0,a.jsx)(r.default,{href:e.href,children:(0,a.jsxs)(g,{onClick:e.onClick,children:[e.icon,e.label]},t)},e.href)))})]})})]}):null},v=s(16463);var j=s(14107),b=s(74649),w=s(74589),N=s(84573);var y=s(91375),k=s(44867),C=s(74622),L=s(46715),F=s(14218),Z=s(47390),M=s(51077);const S=e=>{let{label:t,value:s,textColorClass:l,isOnStableDiffusionPath:r}=e;return(0,a.jsxs)("h6",{className:"hidden cursor-pointer gap-x-2.5 self-center px-2 pt-2 text-xs font-semibold first-letter:*:mr-2 hover:rounded-lg sm:text-sm lg:block ".concat(l," ").concat(r?"hover:bg-gray-200 hover:text-black":"hover:bg-black hover:text-white"),children:[t,": $",s.toFixed(2)]})};function T(e,t,s){const a=e===t.href?"text-white":"",l=s?"text-black":"text-gray-400";return"".concat("group -mx-1 mb-1 flex gap-x-3 rounded-md p-1 text-sm font-medium leading-6"," ").concat(a," ").concat(l)}function z(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return t.filter(Boolean).join(" ")}const P=e=>{let{show:t}=e;const[s,n]=(0,l.useState)(!1),[i,c]=(0,l.useState)(!1),[x,h]=(0,l.useState)(!1),m=(0,v.usePathname)(),f=(0,v.useRouter)(),{isSignedIn:u}=(0,d.aF)(),{balance:g,grant:p,frameworks:j}=(0,y.L)(),P=(m.split("/")[1],"stablediffusion"===m.split("/")[1]),B=P?"text-black":"text-slate-400",D="docs"===m.split("/")[1],_="text-gray-400 mb-4",A="hover:bg-gray-800 hover:text-white",R=[{text:"Docs",href:"/docs",onClick:()=>n(!1),classNames:{active:"text-white ".concat(A," mb-4"),inactive:"".concat(_,"  ").concat(P?"text-black":"")}},{text:"Blogs",href:"/blogs",onClick:()=>n(!1),classNames:{active:"text-white ".concat(A," mb-4"),inactive:"".concat(_,"  ").concat(P?"text-black":"")}},{text:"Settings",href:"/settings",onClick:()=>n(!1),classNames:{active:"text-white ".concat(A," mb-4"),inactive:"".concat(_,"  ").concat(P?"text-black":"")}}],I=[{name:"Pricing",href:"/pricing",icon:(0,a.jsx)(k.Z,{className:"mr-2 h-5 w-5 text-slate-400"})},{name:"FAQs",href:"/docs/faqs/",icon:(0,a.jsx)(C.Z,{className:"mr-2 h-5 w-5 text-slate-400"})},{name:"Learn",href:"/learn",icon:(0,a.jsx)(L.Z,{className:"mr-2 h-5 w-5 text-slate-400"})},{name:"Terms",href:"/termsandservice",icon:(0,a.jsx)(F.Z,{className:"mr-2 h-5 w-5 text-slate-400"})},{name:"Contact Us",href:"/contactus/",icon:(0,a.jsx)(Z.Z,{className:"mr-2 h-5 w-5 text-slate-400"})}];(0,l.useCallback)((e=>(0,a.jsx)("li",{children:(0,a.jsxs)(r.default,{href:e.href,className:z(m===e.href?"text-white":"",P?"text-black":"text-gray-400","group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"),onClick:()=>n(!1),children:[l.createElement(m===e.href?e.active:e.icon,{className:"h-6 w-6 shrink-0 self-center","aria-hidden":"true"}),e.name]})},e.name)),[m,P]);return(0,a.jsxs)(a.Fragment,{children:[i&&(0,a.jsxs)("div",{children:[u&&!D&&(0,a.jsx)(o.u.Root,{show:s,as:l.Fragment,children:(0,a.jsxs)(b.V,{as:"div",className:"relative z-50 lg:hidden",onClose:n,children:[(0,a.jsx)(o.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,a.jsx)("div",{className:"fixed inset-0 ".concat(P?" bg-gray-950/10":" bg-gray-950/80")})}),(0,a.jsx)("div",{className:"fixed inset-0 flex w-[12rem]",children:(0,a.jsx)(o.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,a.jsx)(b.V.Panel,{className:"relative mr-16 flex w-full max-w-xs flex-1",children:(0,a.jsxs)("div",{className:"z-30 flex grow flex-col gap-y-5 overflow-y-auto ".concat(P?"bg-gray-200":" bg-gray-950"," px-6 pb-2 pt-5 ring-1 ring-white/10"),children:[(0,a.jsxs)("div",{onClick:()=>c(!1),className:"flex gap-x-4",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",class:"mt-0.5 h-5 w-5 text-gray-400",children:(0,a.jsx)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"})}),(0,a.jsx)("p",{className:"text-md font-bold text-gray-400",children:"Help"})]}),(0,a.jsx)("hr",{className:"-ml-6 w-[12rem] border-t border-gray-500"}),(0,a.jsx)("nav",{className:"flex flex-1 flex-col ",children:(0,a.jsx)("ul",{role:"list",className:"flex flex-1 flex-col gap-y-7",children:(0,a.jsx)("li",{children:(0,a.jsx)("ul",{role:"list",className:"-mx-2 space-y-1",children:I.map((e=>(0,a.jsx)("li",{children:(0,a.jsxs)(r.default,{href:e.href,className:z(m===e.href?"text-white":"",P?"text-black":"text-gray-400","group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"),onClick:()=>n(!1),children:[e.icon,e.name]})},e.name)))})})})})]})})})})]})}),(0,a.jsx)("div",{className:"fixed top-0 z-30 m-auto flex items-center gap-x-6 shadow-sm",children:!s&&(0,a.jsxs)("button",{type:"button",className:"absolute left-2 top-6 z-30 -m-2.5 p-2.5 pr-6 text-slate-400 sm:left-0  md:hidden ".concat(u&&D?"hidden":"block"),onClick:()=>c(!1),children:[(0,a.jsx)("span",{className:"sr-only",children:"Open sidebar"}),(0,a.jsx)(w.Z,{className:"h-6 w-6","aria-hidden":"true"})]})})]}),!i&&(0,a.jsxs)("div",{children:[u&&(0,a.jsx)(o.u.Root,{show:s,as:l.Fragment,children:(0,a.jsxs)(b.V,{as:"div",className:"relative z-50 lg:hidden",onClose:n,children:[(0,a.jsx)(o.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,a.jsx)("div",{className:"fixed inset-0 ".concat(P?" bg-gray-950/10":" bg-gray-950/80")})}),(0,a.jsx)("div",{className:"fixed inset-0 flex w-44",children:(0,a.jsx)(o.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,a.jsxs)(b.V.Panel,{className:"relative mr-16 flex w-full max-w-xs flex-1",children:[(0,a.jsx)(o.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,a.jsx)("div",{className:"absolute left-full top-0 flex w-16 justify-center pt-5",children:(0,a.jsxs)("button",{type:"button",className:"-m-2.5 p-2.5",onClick:()=>n(!1),children:[(0,a.jsx)("span",{className:"sr-only",children:"Close sidebar"}),(0,a.jsx)(N.Z,{className:"h-6 w-6 text-white","aria-hidden":"true"})]})})}),(0,a.jsx)("div",{className:"z-30 flex grow flex-col gap-y-5 overflow-y-auto ".concat(P?"bg-gray-200":" bg-gray-950"," px-6 pb-2 pt-5 ring-1"),children:(0,a.jsxs)("nav",{className:"flex flex-1 flex-col ",children:[(0,a.jsx)("ul",{role:"list",className:"flex flex-1 flex-col gap-y-7",children:(0,a.jsx)("li",{children:(0,a.jsxs)("ul",{role:"list",className:"-mx-2 space-y-1",children:[(0,a.jsxs)("div",{onClick:()=>c(!0),className:"ml-2 flex gap-x-3 pt-3 text-sm font-semibold text-gray-400 md:hidden",children:[(0,a.jsx)(C.Z,{}),(0,a.jsx)("p",{isSignedIn:u,children:"Help"}),(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ml-1 mt-1 h-5 w-5 text-gray-500",viewBox:"0 0 20 20",fill:"currentColor",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M10 3a.75.75 0 0 0-.53 1.28l3.47 3.5H4.75a.75.75 0 0 0 0 1.5h8.19l-3.47 3.5a.75.75 0 1 0 1.06 1.06l4.25-4.5a.75.75 0 0 0 0-1.06l-4.25-4.5A.75.75 0 0 0 10 3z"})})]}),(0,a.jsxs)("h6",{className:"flex cursor-pointer gap-x-2.5 self-center px-2 py-2 pt-5 text-sm font-semibold first-letter:*:mr-2 hover:rounded-lg sm:text-sm ".concat(B," ").concat(P?"hover:bg-gray-200 hover:text-black":"hover:bg-gray-950 hover:text-slate-200"),onClick:()=>f.push("/settings/#recharge"),children:[(0,a.jsx)(M.Z,{className:"h-5 w-5 self-center"}),(g+p).toFixed(2)]}),(1===(null===j||void 0===j?void 0:j.length)&&g>0||(null===j||void 0===j?void 0:j.length)>1&&p>0)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(S,{label:"Balance",value:g,textColorClass:B,isOnStableDiffusionPath:P}),(0,a.jsx)(S,{label:"Grant",value:p,textColorClass:B,isOnStableDiffusionPath:P})]}),(0,a.jsxs)("div",{className:" m-auto ml-2 inline-block pt-3.5 sm:-mr-3 md:ml-0 md:pt-0 xl:ml-6",children:[(0,a.jsx)(r.default,{href:"https://discord.gg/sps7qeDKJr",target:"_blank",rel:"noopener noreferrer",children:(0,a.jsx)("div",{className:"-mt-2 flex",children:(0,a.jsxs)("button",{className:"relative mt-1  rounded-xl  sm:mr-6 md:mr-0",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onMouseClick:()=>h(!1),children:[(0,a.jsx)("svg",{className:" h-5 w-5",viewBox:"0 -28.5 256 256",children:(0,a.jsx)("path",{fill:"",fillRule:"nonzero",className:"w-40 fill-indigo-600",d:"M216.856339,16.5966031 C200.285002,8.84328665 182.566144,3.2084988 164.041564,0 C161.766523,4.11318106 159.108624,9.64549908 157.276099,14.0464379 C137.583995,11.0849896 118.072967,11.0849896 98.7430163,14.0464379 C96.9108417,9.64549908 94.1925838,4.11318106 91.8971895,0 C73.3526068,3.2084988 55.6133949,8.86399117 39.0420583,16.6376612 C5.61752293,67.146514 -3.4433191,116.400813 1.08711069,164.955721 C23.2560196,181.510915 44.7403634,191.567697 65.8621325,198.148576 C71.0772151,190.971126 75.7283628,183.341335 79.7352139,175.300261 C72.104019,172.400575 64.7949724,168.822202 57.8887866,164.667963 C59.7209612,163.310589 61.5131304,161.891452 63.2445898,160.431257 C105.36741,180.133187 151.134928,180.133187 192.754523,160.431257 C194.506336,161.891452 196.298154,163.310589 198.110326,164.667963 C191.183787,168.842556 183.854737,172.420929 176.223542,175.320965 C180.230393,183.341335 184.861538,190.991831 190.096624,198.16893 C211.238746,191.588051 232.743023,181.531619 254.911949,164.955721 C260.227747,108.668201 245.831087,59.8662432 216.856339,16.5966031 Z M85.4738752,135.09489 C72.8290281,135.09489 62.4592217,123.290155 62.4592217,108.914901 C62.4592217,94.5396472 72.607595,82.7145587 85.4738752,82.7145587 C98.3405064,82.7145587 108.709962,94.5189427 108.488529,108.914901 C108.508531,123.290155 98.3405064,135.09489 85.4738752,135.09489 Z M170.525237,135.09489 C157.88039,135.09489 147.510584,123.290155 147.510584,108.914901 C147.510584,94.5396472 157.658606,82.7145587 170.525237,82.7145587 C183.391518,82.7145587 193.761324,94.5189427 193.539891,108.914901 C193.539891,123.290155 183.391518,135.09489 170.525237,135.09489 Z"})}),(0,a.jsx)("p",{className:"-mt-5 ml-8 text-sm font-semibold text-gray-400 ",children:"Discord"})]})})}),(0,a.jsx)("span",{className:"relative -left-5 w-[7rem]  rounded-md md:absolute ".concat(P?"text-black md:top-10":"text-white shadow-md md:top-12","  px-2 py-1 text-xs  ").concat(x?"visible":"hidden"),children:"Join our Discord"})]})]})})}),(0,a.jsx)("ul",{children:R.map((e=>(0,a.jsx)("li",{children:(0,a.jsx)(r.default,{href:e.href,className:T(m,e,P),onClick:e.onClick,children:e.text})},e.href)))})]})})]})})})]})}),u&&"stablediffusion"!==m&&(0,a.jsx)("div",{className:"".concat(t?"mt-0":"mt-2","  inset-y-0 z-30 hidden bg-gray-950 md:fixed md:flex md:flex-col"),children:(0,a.jsx)("div",{className:"flex grow flex-col gap-y-5 overflow-y-auto  px-4 pt-24 ",children:(0,a.jsx)("nav",{className:"flex flex-1 flex-col",children:(0,a.jsx)("ul",{role:"list",className:"flex flex-1 flex-col gap-y-7",children:u&&(0,a.jsx)("li",{className:"mt-auto",children:R.map((e=>(0,a.jsx)(r.default,{href:e.href,className:z(m===e.href?e.classNames.active:e.classNames.inactive,"group  -mt-4 flex flex-col gap-x-3 rounded-md p-1 text-sm font-semibold leading-6"),children:(0,a.jsx)("p",{className:"px-1 text-[14px] font-normal",children:e.text})},e.href)))})})})})}),(0,a.jsx)("div",{className:"fixed top-0 z-30 m-auto flex items-center gap-x-6 shadow-sm",children:!s&&(0,a.jsxs)("button",{type:"button",className:"absolute left-2 top-6 z-30 -m-2.5 p-2.5 pr-6 text-slate-400 sm:left-0  md:hidden ".concat(u&&D?"hidden":"block"),onClick:()=>n(!0),children:[(0,a.jsx)("span",{className:"sr-only",children:"Open sidebar"}),(0,a.jsx)(w.Z,{className:"h-6 w-6","aria-hidden":"true"})]})})]})]})};var B=l.memo(P);var D=s(99435);function _(e){return(0,a.jsx)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",strokeWidth:"2",strokeLinecap:"round",...e,children:(0,a.jsx)("path",{d:"M4 7h16M4 12h16M4 17h16"})})}function A(e){return(0,a.jsx)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",strokeWidth:"2",strokeLinecap:"round",...e,children:(0,a.jsx)("path",{d:"M5 5l14 14M19 5l-14 14"})})}function R(e){let{close:t}=e,s=(0,v.usePathname)(),a=(0,v.useSearchParams)();return(0,l.useEffect)((()=>{t()}),[s,a,t]),null}function I(){let[e,t]=(0,l.useState)(!1),s=(0,l.useCallback)((()=>t(!1)),[t]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button",onClick:()=>t(!0),className:"relative","aria-label":"Open navigation",children:(0,a.jsx)(_,{className:"h-6 w-6 stroke-slate-500"})}),(0,a.jsx)(l.Suspense,{fallback:null,children:(0,a.jsx)(R,{close:s})}),(0,a.jsx)(b.V,{open:e,onClose:()=>s(),className:"fixed inset-0 z-50 flex items-start overflow-y-auto bg-slate-900/50 pr-10 backdrop-blur lg:hidden","aria-label":"Navigation",children:(0,a.jsxs)(b.V.Panel,{className:"min-h-full w-full max-w-xs  bg-slate-900 px-4 pb-12 pt-5 sm:px-6",children:[(0,a.jsx)("div",{className:"flex items-center pb-5",children:(0,a.jsx)("button",{type:"button",onClick:()=>s(),"aria-label":"Close navigation",children:(0,a.jsx)(A,{className:"h-6 w-6 stroke-slate-300"})})}),(0,a.jsx)(D.Navigation,{className:"mt-5 px-1",onLinkClick:function(e){let t=e.currentTarget;t.pathname+t.search+t.hash===window.location.pathname+window.location.search+window.location.hash&&s()}})]})})]})}var O=s(40119);const E=e=>{let{href:t,isActive:s,textColorClass:l,children:n}=e;return(0,a.jsx)(r.default,{href:t,className:"block cursor-pointer self-center  rounded-xl p-2 px-3  py-2  text-xs hover:bg-gray-800 sm:text-sm ".concat(s?"underline underline-offset-8":""," ").concat(l),style:{textDecorationColor:s?"rgb(99 102 241)":"currentColor"},children:n})};function J(e){let{href:t,children:s}=e;return(0,a.jsx)(n.J.Button,{as:r.default,href:t,className:"flex w-full items-center  gap-2 p-2",children:s})}function H(e){let{open:t}=e;return(0,a.jsxs)("svg",{"aria-hidden":"true",className:"h-3.5 w-3.5 overflow-visible stroke-slate-500 ",fill:"none",strokeWidth:2,strokeLinecap:"round",children:[(0,a.jsx)("path",{d:"M0 1H14M0 7H14M0 13H14",className:(0,i.Z)("origin-center transition",t&&"scale-90 opacity-0")}),(0,a.jsx)("path",{d:"M2 2L12 12M12 2L2 12",className:(0,i.Z)("origin-center transition",!t&&"scale-90 opacity-0")})]})}function G(){let e=(0,v.usePathname)();e=e.split("/")[1];const t="stablediffusion"===e,s="docs"===e,[r,i]=(0,l.useState)(!1);if(!s)return(0,a.jsxs)(n.J,{children:[(0,a.jsx)("div",{className:"flex",children:(0,a.jsx)(n.J.Button,{className:"relative z-10 mt-2 flex h-8 w-8 items-center justify-start ui-not-focus-visible:outline-none md:hidden","aria-label":"Toggle Navigation",children:e=>{let{open:t}=e;return(0,a.jsx)(H,{open:t})}})}),(0,a.jsxs)(o.u.Root,{children:[(0,a.jsx)(o.u.Child,{as:l.Fragment,enter:"duration-150 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"duration-150 ease-in",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)(n.J.Overlay,{className:"fixed inset-0"})}),(0,a.jsx)(o.u.Child,{as:l.Fragment,enter:"duration-150 ease-out",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"duration-100 ease-in",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,a.jsxs)(n.J.Panel,{as:"div",className:"absolute inset-x-0 top-full mt-4 flex origin-top flex-col rounded-2xl border  ".concat(t?"bg-white text-black":"border-slate-800 bg-slate-950 text-white ring-1 ring-slate-900/5 ","  0 text-md  mx-4 w-[21rem]   p-4 tracking-tight   shadow-xl  "),children:[(0,a.jsxs)(J,{href:"/pricing",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:" h-5 w-5 text-gray-500 ",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v12m-3-2.818.879.659c1.171.879 3.07.879 4.242 0 1.172-.879 1.172-2.303 0-3.182C13.536 12.219 12.768 12 12 12c-.725 0-1.45-.22-2.003-.659-1.106-.879-1.106-2.303 0-3.182s2.9-.879 4.006 0l.415.33M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})}),"Pricing"]}),(0,a.jsxs)(J,{href:"/docs",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"h-5 w-5 text-gray-500 ",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})}),"Docs"]}),(0,a.jsxs)(J,{href:"/learn",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"h-5 w-5 text-gray-500 ",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9 13.5 3 3m0 0 3-3m-3 3v-6m1.06-4.19-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"})}),"Learn"]}),(0,a.jsxs)(J,{href:"/blogs",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",fill:"currentColor",className:"shrink- h-5 w-5 text-gray-500",children:(0,a.jsx)("path",{d:"M 13 3 L 13 22.3125 L 13.1875 22.59375 L 17.78125 29 L 17.90625 29.21875 L 18.75 30.53125 L 22.875 37 L 20.625 37 L 20.34375 37.25 L 14 42.8125 L 14 37 L 11 37 C 8.722656 37 7 35.277344 7 33 L 7 12 C 7 9.722656 8.722656 8 11 8 L 12 8 L 12 6 L 11 6 C 7.675781 6 5 8.675781 5 12 L 5 33 C 5 36.324219 7.675781 39 11 39 L 12 39 L 12 47.21875 L 13.65625 45.75 L 21.375 39 L 40 39 C 43.324219 39 46 36.324219 46 33 L 46 12 C 46 8.675781 43.324219 6 40 6 L 25 6 L 25 3 Z M 15 5 L 23 5 L 23 19.5 L 19.375 18.0625 L 19 17.9375 L 18.625 18.0625 L 15 19.5 Z M 25 8 L 40 8 C 42.277344 8 44 9.722656 44 12 L 44 29 L 20.25 29 L 24.8125 22.59375 L 25 22.3125 Z M 19 20.09375 L 22.96875 21.6875 L 20.625 25 L 17.375 25 L 15.03125 21.6875 Z M 21.40625 31 L 44 31 L 44 33 C 44 35.277344 42.277344 37 40 37 L 25.21875 37 Z"})}),"Blogs"]}),(0,a.jsxs)(J,{className:"flex  items-center",href:"/stablediffusion",children:[(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"shrink-  h-8 w-fit  text-gray-500",children:[(0,a.jsx)("path",{d:"m9.06 11.9 8.07-8.06a2.85 2.85 0 1 1 4.03 4.03l-8.06 8.08"}),(0,a.jsx)("path",{d:"M7.07 14.94c-1.66 0-3 1.35-3 3.02 0 1.33-2.5 1.52-2 2.02 1.08 1.1 2.49 2.02 4 2.02 2.2 0 4-1.8 4-4.04a3.01 3.01 0 0 0-3-3.02z"})]}),(0,a.jsx)("p",{children:" Stable Diffusion"})]}),(0,a.jsx)("hr",{className:"m-2 border-slate-300/40"}),(0,a.jsx)(d.$d,{mode:"modal",children:(0,a.jsx)("button",{children:(0,a.jsx)(J,{href:"",children:(0,a.jsx)("span",{className:"whitespace-nowrap rounded-lg border border-gray-800 bg-slate-900 px-3 py-2 text-white hover:bg-slate-800 ",children:"Log in"})})})}),(0,a.jsx)(d.gX,{mode:"modal",children:(0,a.jsx)("button",{children:(0,a.jsx)(J,{href:"",children:(0,a.jsx)("span",{className:"whitespace-nowrap rounded-lg bg-gradient-to-r from-indigo-500 via-violet-500 to-violet-600 px-3 py-2",children:"Sign up"})})})})]})})]})]})}function V(){return(0,a.jsx)(n.J,{className:"relative z-10 flex h-8 w-8 items-center justify-center ui-not-focus-visible:outline-none","aria-label":"Toggle Navigation",children:e=>{let{open:t}=e;return(0,a.jsxs)("div",{children:[" ",(0,a.jsx)(I,{})]})}})}const U=e=>{let{label:t,value:s,isINR:l}=e;return(0,a.jsxs)("p",{className:"flex w-full justify-between px-3 py-1",children:[(0,a.jsxs)("span",{className:"mx-1 w-1/2",children:[t,":"]}),(0,a.jsx)("span",{className:"mx-1 w-1/2",children:"".concat(l?"\u20b9":"$").concat(s.toFixed(2))})]})},W=[{href:"/explore",label:"Explore"},{href:"/pricing",label:"Pricing"},{href:"/docs",label:"Docs"},{href:"/blogs",label:"Blogs"}];function q(e){let{pathName:t,textColorClass:s,isOnStableDiffusionPath:l}=e;return(0,a.jsx)(a.Fragment,{children:W.map((e=>(0,a.jsx)(E,{href:e.href,isActive:t===e.href.slice(1),textColorClass:s,isOnStableDiffusionPath:l,children:e.label},e.href)))})}function $(e){let{showFrameworks:t,show:s,setShow:n}=e;const[i,o]=(0,l.useState)(!1);let h=(0,v.usePathname)();const[m,f]=(0,l.useState)(""),[u,g]=(0,l.useState)(!1),[b,w]=(0,l.useState)(!1);h=h.split("/")[1];const N="docs"===h,k="stablediffusion"===h?"text-slate-800":"text-slate-400",C="stablediffusion"===h,L=(0,v.useRouter)(),{isSignedIn:F}=(0,d.aF)(),{grant:Z,balance:S,fetchUserBalance:T,frameworks:z,isINR:P}=(0,y.L)(),D=P?O.Z:M.Z,[_,A]=(0,l.useState)(""),R=(0,v.useSearchParams)(),{authenticatedFetch:I}=(0,j.Z)();return(0,l.useEffect)((()=>{const e=R.get("referral_token");""!==e&&A(e);const t=new AbortController,s=t.signal;if(""!==_&&null!==e){const e=setTimeout((()=>{(async()=>{try{const e="https://backendprod.jarvislabs.net/"+"referrals/activate_referral_link?referral_token=".concat(_),t=await I(e,"GET",null,!1,s);t.error?console.error(t.error):200==t.status&&T()}catch(e){console.error(e,"error")}L.push("/",{shallow:!0})})()}),2e3);return()=>{t.abort(),clearTimeout(e)}}}),[_,A,R]),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("header",{className:"fixed z-50 flex h-16 w-full justify-between px-8 md:top-0  ".concat(""==h&&!F&&"lg:px-24"," ").concat(C?"bg-white":"bg-gray-950"),children:[(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsxs)("div",{className:"flex items-center lg:mt-4",children:[N&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"mt-3 block items-center pr-2 md:mt-1 lg:hidden",children:(0,a.jsx)(V,{})})}),(0,a.jsx)("div",{className:"md:hidden",children:!F&&!t||N?(0,a.jsx)(G,{}):(0,a.jsx)(B,{})})]}),(0,a.jsx)("div",{className:"".concat(F?"":"ml-0","\n                        ").concat(F&&N?"ml-0":"","\n                        ").concat(F&&!N?"ml-10":""," \n                        z-30 mt-[1.7rem] shrink-0 items-center sm:ml-0 md:mt-6"),children:(0,a.jsx)(r.default,{href:"/",children:(0,a.jsx)(x.default,{quality:75,src:"https://jarvislabs.net/jarvislabs_website/landing/main/logoJarvislabs.svg",className:"".concat(C&&"invert"),width:100,height:100,alt:"JarvisLabs AI logo",priority:!1})})})]}),(0,a.jsx)("nav",{className:"relative z-40 flex items-center lg:ml-32 lg:justify-end ",children:(0,a.jsx)("div",{className:"flex items-center justify-between ",children:F?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"-mr-8 -mt-2 flex items-center  md:hidden",children:[N&&(0,a.jsx)("div",{className:"z-40 pr-4",children:(0,a.jsx)(c.o,{})}),(0,a.jsx)("div",{className:"m-auto mr-4 mt-4 text-center",children:(0,a.jsx)(p,{})})]}),(0,a.jsx)("div",{className:"hidden  items-center md:block",children:(0,a.jsxs)("div",{className:"flex cursor-pointer self-center  py-2  hover:rounded-lg sm:ml-10 md:ml-3 lg:ml-0 ".concat(k),children:[N&&(0,a.jsx)("div",{className:"z-40 pr-2",children:(0,a.jsx)(c.o,{})}),(0,a.jsx)(q,{pathName:h,textColorClass:k,isOnStableDiffusionPath:C}),(0,a.jsxs)("h6",{className:"relative flex w-full cursor-pointer self-center rounded-xl px-3 py-2 text-xs hover:bg-gray-800 sm:text-sm ".concat(b?"hover:text-gray-200":"hover:text-white"),onClick:()=>L.push("/settings/#recharge"),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:[(0,a.jsxs)("span",{className:"flex items-center",children:[(0,a.jsx)(D,{className:"h-3 w-3 sm:h-4 sm:w-5"}),(S+Z).toFixed(2)]}),i&&(0,a.jsx)("div",{className:"absolute -left-5 top-12 rounded-lg border border-gray-800 bg-gray-900 text-sm text-gray-300",children:(1===(null===z||void 0===z?void 0:z.length)&&S>0||(null===z||void 0===z?void 0:z.length)>1&&Z>0)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(U,{label:"Balance",value:S,isINR:P}),(0,a.jsx)(U,{label:"Grant",value:Z,isINR:P})]})})]}),(0,a.jsx)("div",{className:"text-center",children:(0,a.jsx)(p,{})})]})})]}):(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"ml-8  flex ",children:[N&&(0,a.jsx)("div",{className:"ml-4 mt-2 flex items-center md:mt-0 lg:hidden",children:(0,a.jsx)("div",{className:"z-40 md:pr-4",children:(0,a.jsx)(c.o,{})})}),(0,a.jsxs)("div",{className:"mr-4 hidden justify-between lg:mr-5 lg:gap-x-3 xl:mr-3 ".concat(N?"lg:flex":"md:flex"),children:[N&&(0,a.jsx)("div",{className:"z-40 pr-4 lg:mt-1 lg:pl-4 lg:pr-2",children:(0,a.jsx)(c.o,{})}),(0,a.jsx)(q,{pathName:h,textColorClass:k,isOnStableDiffusionPath:C})]}),(0,a.jsxs)("div",{className:" -mr-2  flex items-center md:flex-row  xl:-mr-0 ",children:[(0,a.jsx)(d.$d,{mode:"modal",children:(0,a.jsx)("button",{className:"mt-1 hidden md:mr-3 md:mt-0  md:block lg:mr-1",children:(0,a.jsx)("span",{className:"xl:text-md border- whitespace-nowrap rounded-lg px-3 py-2 text-sm font-semibold sm:text-base xl:mr-4 ".concat(C?" text-violet-500 hover:text-violet-800 ":"rounded-xl text-violet-400  hover:bg-violet-950  hover:text-white "," transition-colors"),children:"Log in"})})}),(0,a.jsx)(d.gX,{mode:"modal",children:(0,a.jsx)("button",{className:"mt-1 hidden md:mt-0 md:block",children:(0,a.jsx)("span",{className:"whitespace-nowrap rounded-lg border ".concat(C?"  bg-violet-500 text-white hover:bg-violet-800":"border-violet-500  bg-violet-950/40 text-violet-400 hover:bg-violet-950/65","  px-3 py-2  text-base  font-medium  transition-colors"),children:"Sign up"})})})]})]})})})})]})})}},99435:function(e,t,s){s.d(t,{Navigation:function(){return c}});var a=s(57437),l=s(10875),r=s(87138),n=s(16463),i=s(2265),o=s(25045);s(77735);function c(e){let{onLinkClick:t}=e,s=(0,n.usePathname)(),c=(0,n.useRouter)();const[d,x]=(0,i.useState)("Introduction");(0,i.useEffect)((()=>{let e=s.split("/")[2];e=void 0==e?"docs":"docs/"+e;const t=o.G.find((t=>t.links.some((t=>t.href==="/".concat(e))))),a=t?t.title:null;x(a)}),[s,o.G,x,d]);return(0,a.jsx)("nav",{className:(0,l.Z)("text-base lg:text-sm"),children:(0,a.jsx)("ul",{role:"list",className:"space-y-8",children:o.G.map((e=>(0,a.jsxs)("li",{children:[(0,a.jsx)(r.default,{href:"",className:"font-display font-bold text-slate-300 bg-opacity-10",onClick:t=>{t.preventDefault(),(e=>{const t=o.G.findIndex((t=>t.title===e.title)),s=o.G[t].links[0].href;x(e.title),c.push(s)})(e)},children:e.title}),(0,a.jsx)("ul",{role:"list",className:(0,l.Z)("mt-2 space-y-2 border-l border-slate-700 lg:mt-4 lg:space-y-4",{"hidden-list":e.title!==d,"visible-list":e.title===d}),children:e.links.map((t=>(0,a.jsx)("li",{className:"relative",children:(0,a.jsx)(r.default,{href:t.href,className:(0,l.Z)("opacity-2 block w-full translate-y-0 transform pl-3.5 before:pointer-events-none before:absolute before:-left-1 before:top-1/2 before:h-1.5 before:w-1.5 before:-translate-y-1/2 before:rounded-full",t.href===s?"font-bold text-purple-500 before:bg-purple-500":" text-slate-300 before:hidden before:bg-slate-700 hover:text-white hover:before:block"),style:{opacity:1,transform:"translateY(0)"},onClick:t=>{x(e.title)},children:t.title})},t.href)))})]},e.title)))})})}}}]);