PageSourceSearch

https://context7.com/_next/static/chunks/73284-5b527cf0b9224350.js?dpl=dpl_GxknWMM1RtwyCnXq68znKfbXGRbf

js context7.com collected 2026-10-02 03:40:32 UTC 15,239 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[73284],{3585:(e,t,r)=>{r.d(t,{C:()=>o});var a=r(12115);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2e3,[t,r]=(0,a.useState)(null),o=(0,a.useRef)(void 0);return(0,a.useEffect)(()=>()=>clearTimeout(o.current),[]),{copied:t,copy:(0,a.useCallback)(async(t,a)=>{await navigator.clipboard.writeText(t),r(null==a||a),clearTimeout(o.current),o.current=setTimeout(()=>r(null),e)},[e])}}},5869:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(95155),o=r(25016);function l(e){let{variant:t="warning",role:r,size:l="default",icon:n,title:s,children:d,className:i=""}=e,c="sm"===l,m="string"==typeof s?s.trim().length>0:!!s,u="string"==typeof d?d.trim().length>0:null!=d,x=Number(m)+Number(u)===1;return(0,a.jsx)("div",{role:null!=r?r:"error"===t||"warning"===t?"alert":"status",className:(0,o.cn)("border",c?"rounded-lg p-3":"rounded-xl p-4 sm:p-5",{warning:"border-amber-300 bg-amber-50 text-amber-800 dark:border-amber-800 dark:bg-amber-950 dark:text-amber-100 [&_a:hover]:text-amber-950 dark:[&_a:hover]:text-white [&_[data-link]:hover]:text-amber-950 dark:[&_[data-link]:hover]:text-white",upgrade:"border-amber-300 bg-amber-50 text-amber-800 dark:border-amber-800 dark:bg-amber-950 dark:text-amber-100 [&_a:hover]:text-amber-950 dark:[&_a:hover]:text-white [&_[data-link]:hover]:text-amber-950 dark:[&_[data-link]:hover]:text-white",info:"border-blue-300 bg-blue-50 text-blue-800 dark:border-blue-800 dark:bg-blue-950 dark:text-blue-100 [&_a:hover]:text-blue-950 dark:[&_a:hover]:text-white [&_[data-link]:hover]:text-blue-950 dark:[&_[data-link]:hover]:text-white",success:"border-emerald-300 bg-emerald-50 text-emerald-800 dark:border-emerald-800 dark:bg-emerald-950 dark:text-emerald-100 [&_a:hover]:text-emerald-950 dark:[&_a:hover]:text-white [&_[data-link]:hover]:text-emerald-950 dark:[&_[data-link]:hover]:text-white",error:"border-red-300 bg-red-50 text-red-800 dark:border-red-800 dark:bg-red-950 dark:text-red-100 [&_a:hover]:text-red-950 dark:[&_a:hover]:text-white [&_[data-link]:hover]:text-red-950 dark:[&_[data-link]:hover]:text-white"}[t],"[&_a]:font-medium [&_a]:underline [&_a]:underline-offset-2 [&_a]:transition-colors [&_[data-link]]:font-medium [&_[data-link]]:underline [&_[data-link]]:underline-offset-2 [&_[data-link]]:transition-colors",i),children:(0,a.jsxs)("div",{className:(0,o.cn)("flex",x?"items-center":"items-start",c?"gap-2":"gap-3"),children:[n&&(0,a.jsx)("div",{className:"hidden sm:block","aria-hidden":"true",children:n}),(0,a.jsxs)("div",{className:"flex flex-col",children:[s&&(0,a.jsx)("p",{className:"font-semibold ".concat(c?"text-sm":"text-base"),children:s}),(0,a.jsx)("div",{className:"font-normal ".concat(c?"text-sm":"text-base"),children:d})]})]})})}},13975:(e,t,r)=>{r.d(t,{K:()=>a});function a(e){let{pathname:t,search:r,hash:a}=e;return"/sign-in?redirect_url=".concat(encodeURIComponent("".concat(t).concat(r).concat(a)))}},31221:(e,t,r)=>{r.d(t,{A:()=>l,v:()=>o});var a=r(59065);let o=e=>(0,a.FB)(e)===e,l=e=>e.trim().toLowerCase().replace(/\.$/,"")},43030:(e,t,r)=>{r.d(t,{A:()=>m});var a=r(95155),o=r(64519),l=r(47522),n=r(26195),s=r(72087),d=r(3585);let i="[email protected]";function c(e){let{items:t,dotColor:r}=e;return(0,a.jsx)("ul",{className:"flex flex-col gap-1.5 text-sm text-foreground",children:t.map(e=>(0,a.jsxs)("li",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"h-1.5 w-1.5 shrink-0 rounded-full ".concat(r)}),e]},e))})}function m(e){let{isOpen:t,onClose:r,onSubscribe:m,isSubscribing:u,onTrialRequest:x}=e,{copied:b,copy:f}=(0,d.C)(),h=async()=>{await f(i)};return(0,a.jsxs)(s.A,{isOpen:t,onClose:r,title:"Enterprise Plan",maxWidth:"xl",scrollable:!0,maxHeight:"calc(100dvh - 2rem)",children:[(0,a.jsx)("p",{className:"text-pretty text-base text-muted-foreground",children:"SSO, compliance, and higher limits for growing teams."}),(0,a.jsxs)("div",{className:"grid gap-5 md:grid-cols-3",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4 roun
1ded-3xl border-2 border-emerald-300 bg-card px-7 py-8 shadow-sm dark:border-emerald-700",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("h3",{className:"text-balance text-xl font-semibold text-foreground",children:"Get started today"}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"For teams up to 50"})]}),(0,a.jsx)(c,{dotColor:"bg-emerald-600",items:["$30 per seat / month","SSO (SAML / OIDC)","SOC-2 and GDPR compliance","Private GitHub, GitLab & Bitbucket repos"]}),(0,a.jsx)("p",{className:"text-sm leading-relaxed text-muted-foreground",children:"Add a payment method and start using Enterprise features right away."}),(0,a.jsx)("div",{className:"mt-auto flex flex-col gap-2",children:(0,a.jsx)("button",{type:"button",onClick:m,disabled:u,className:"inline-flex w-full items-center justify-center gap-2 rounded-md bg-emerald-600 px-4 py-2.5 text-base font-medium text-white transition-colors hover:bg-emerald-700 disabled:cursor-not-allowed disabled:opacity-50",children:u?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.A,{size:18,className:"animate-spin"}),"Upgrading..."]}):"Start Now"})})]}
1),(0,a.jsxs)("div",{className:"flex flex-col gap-4 rounded-3xl border border-border bg-card px-7 py-8 shadow-sm",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("h3",{className:"text-balance text-xl font-semibold text-foreground",children:"Talk to sales"}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"For teams of 50+"})]}),(0,a.jsx)(c,{dotColor:"bg-foreground/70",items:["Monthly and annual contracts with volume pricing","Self-hosted deployment option","Dedicated support and SLA","Security review assistance"]}),(0,a.jsxs)("p",{className:"text-sm leading-relaxed text-muted-foreground",children:["We'll work with your procurement teams. Learn more on our"," ",(0,a.jsx)("a",{href:"https://context7.com/docs/enterprise",target:"_blank",rel:"noopener noreferrer",className:"text-emerald-600 underline hover:text-emerald-700 dark:text-emerald-300",children:"Enterprise page"}),"."]}),(0,a.jsxs)("div",{className:"mt-auto flex flex-col gap-2",children:[(0,a.jsx)("button",{type:"button",onClick:h,className:"inline-flex items-center justify-center gap-1.5 text-sm text-muted-foreground transition-colors hover:text-foreground",children:b?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.A,{size:14}),"Copied!"]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.A,{size:14}),i]})}),(0,a.jsx)("a",{href:"mailto:[email protected]?subject=Enterprise%20Context7%20inquiry&body=Hi%20Context7%20team%2C%0A%0AI'm%20interested%20in%20the%20Enterprise%20plan%20for%20our%20organization.%20Could%20you%20provide%20enterprise%20documentation%20and%20schedule%20a%20meeting%20to%20discuss%20our%20needs%3F%0A%0AThank%20you.",className:"inline-flex w-full items-center justify-center rounded-md bg-foreground px-4 py-2.5 text-base font-medium text-background transition-opacity hover:opacity-90",children:"Contact Us"})]})]}
1),(0,a.jsxs)("div",{className:"flex flex-col gap-4 rounded-3xl border border-border bg-card px-7 py-8 shadow-sm",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("h3",{className:"text-balance text-xl font-semibold text-foreground",children:"On-Premise Trial"}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Self-host Context7"})]}),(0,a.jsx)(c,{dotColor:"bg-muted-foreground",items:["Deploy on your own infrastructure","Full on-premise license key","30-day full-featured trial","No credit card required"]}),(0,a.jsx)("p",{className:"text-sm leading-relaxed text-muted-foreground",children:"Try Context7 on-premise in your own environment. We'll review your request and email you a license key."}),(0,a.jsx)("div",{className:"mt-auto flex flex-col gap-2",children:(0,a.jsx)("button",{type:"button",onClick:x,className:"inline-flex w-full items-center justify-center rounded-md bg-foreground px-4 py-2.5 text-base font-medium text-background transition-opacity hover:opacity-90",children:"Request On-Premise Trial"})})]})]})]})}},43612:(e,t,r)=>{r.d(t,{L:()=>a,e:()=>o});let a=1e3;function o(e){let t=Number.parseInt(e,10);return Number.isInteger(t)&&t>=1&&t<=a?t:null}},80988:(e,t,r)=>{r.d(t,{A:()=>x});var a=r(95155),o=r(12115),l=r(64519),n=r(47522),s=r(72087),d=r(31221);let i=new Set(["gmail.com","googlemail.com","yahoo.com","yahoo.co.uk","yahoo.fr","yahoo.de","yahoo.com.br","yahoo.co.in","ymail.com","rocketmail.com","hotmail.com","hotmail.co.uk","hotmail.fr","outlook.com","live.com","msn.com","icloud.com","me.com","mac.com","aol.com","proton.me","protonmail.com","pm.me","yandex.com","yandex.ru","mail.com","mail.ru","gmx.com","gmx.net","gmx.de","zoho.com","duck.com","fastmail.com","tutanota.com","tuta.io","qq.com","163.com","126.com"]);function c(e){var t;if(!e)return!1;let r=e.trim().toLowerCase().split("@")[1];return!!r&&!!(t=r)&&i.has((0,d.A)(t))}var m=r(43612),u=r(5869);function x(e){let{isOpen:t,onClose:r,userEmail:d}=e,[i,x]=(0,o.useState)(""),[b,f]=(0,o.useState)(""),[h,p]=(0,o.useState)(""),[g,y]=(0,o.useState)(null),[v,j]=(0,o.useState)(""),[k,N]=(0,o.useState)(!1),[w,C]=(0,o.useState)(null),[_,S]=(0,o.useState)(!1);(0,o.useEffect)(()=>{t?x(d&&!c(d)?d:""):(x(""),f(""),p(""),y(null),j(""),N(!1),C(null),S(!1))},[t,d]);let A=async()=>{if(!i.trim())return void C("Please enter your work email");if(c(i))return void C("Personal emails are not allowed. Please use your work email to request a trial");if(!b.trim())return void C("Please enter your company name");let e=(0,m.e)(h);if(null===e)return void C("Please enter a seat count between 1 and ".concat(m.L));if(!g)return void C("Please select a deployment mode");if(!v.trim())return void C("Please explain your use case");C(null),N(!0);try{let t=await fetch("/api/onpremise-trial-request",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i.trim(),companyName:b.trim(),seatCount:e,useCase:v.trim(),isOffline:"offline"===g})}),r=await t.json();t.ok&&r.success?S(!0):C(r.message||r.error||"Failed to submit trial request")}catch(e){C("Failed to submit trial request")}finally{N(!1)}},q=i.trim().length>0&&b.trim().length>0&&null!==(0,m.e)(h)&&null!==g&&v.trim().length>0,O=[{label:"Done",onClick:r,variant:"primary"}],P=[{label:"Cancel",onClick:r,variant:"secondary",disabled:k},{label:k?"Submitting...":"Submit Request",onClick:A,variant:"primary",disabled:k||!q,loading:k,icon:k?(0,a.jsx)(l.A,{size:16,className:"animate-spin"}):void 0}];return _?(0,a.jsx)(s.A,{isOpen:t,onClose:r,title:"Trial Request Submitted",buttons:O,children:(0,a.jsxs)("div",{className:"flex flex-col items-center gap-4 py-4 text-center",children:[(0,a.jsx)("div",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-emerald-100 dark:bg-emerald-900",children:(0,a.jsx)(n.A,{className:"h-7 w-7 text-emerald-600",stroke:1.5})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-lg font-semibold text-foreground",children:"Request Received"}),(0,a.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"We'll review your trial request and send you an email with your license key shortly."})]})]})}):(0,a.jsxs)(s.A,{isOpen:t,onClose:r,title:"Request On-Premise Trial",buttons:P,preventClose:k,children:[(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Tell us about your team and expected usage, and we'll set up a 30-day on-premise trial for you."}),w&&(0,a.jsx)(u.A,{variant:"error",size:"sm",children:w}),(0,a.jsx)("form",{onSubmit:e=>{e.preventDefault(),A()},children:(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"mb-2 block text-sm font-medium text-foreground",children:"Work Email"}),(0,a.jsx)("input",{type:"email",value:i,onChange:e=>x(e.target.value),placeholder:"[email protected]",disabled:k,autoFocus:!0,className:"w-full rounded-md border border-border px-3 py-2 text-sm text-foreground placeholder-muted-foreground focus:border-ring focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:bg-muted"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"mb-2 block text-sm font-medium text-foreground",children:"Company Name"}),(0,a.jsx)("input",{type:"text",value:b,onChange:e=>f(e.target.value),placeholder:"Acme Corp",disabled:k,className:"w-full rounded-md border border-border px-3 py-2 text-sm text-foreground placeholder-muted-foreground focus:border-ring focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:bg-muted"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"mb-2 block text-sm font-medium text-foreground",children:"Seat Count"}),(0,a.jsx)("input",{type:"number",min:1,max:m.L,value:h,onChange:e=>p(e.target.value),placeholder:"e.g. 25",disabled:k,className:"w-full rounded-md border border-border px-3 py-2 text-sm text-foreground placeholder-muted-foreground focus:border-ring focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:bg-muted"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"mb-2 block text-sm font-medium text-foreground",children:"Deployment Mode"}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>y("online"),disabled:k,className:"flex-1 rounded-md border px-3 py-2 text-left transition-colors disabled:cursor-not-allowed ".concat("online"===g?"border-emerald-600 bg-emerald-50 dark:bg-emerald-950":"border-border hover:bg-muted"),children:[(0,a.jsx)("span",{className:"block text-sm font-medium text-foreground",children:"Online"}),(0,a.jsx)("span",{className:"block text-xs text-muted-foreground",children:"Can call Context7 public library APIs"})]}),(0,a.jsxs)("button",{type:"button",onClick:()=>y("offline"),disabled:k,className:"flex-1 rounded-md border px-3 py-2 text-left transition-colors disabled:cursor-not-allowed ".concat("offline"===g?"border-emerald-600 bg-emerald-50 dark:bg-emerald-950":"border-border hover:bg-muted"),children:[(0,a.jsx)("span",{className:"block text-sm font-medium text-foreground",children:"Fully Offline"}),(0,a.jsx)("span",{className:"block text-xs text-muted-foreground",children:"Air-gapped, no outbound access"})]})]}),"offline"===g&&(0,a.jsx)("div",{className:"mt-2",children:(0,a.jsxs)(u.A,{variant:"info",size:"sm",children:["You can still manually import public libraries from C
1ontext7 Cloud into your offline deployment."," ",(0,a.jsx)("a",{href:"https://context7.com/docs/enterprise/library-import",target:"_blank",rel:"noopener noreferrer",className:"font-medium underline underline-offset-2",children:"Learn more"})]})})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"mb-2 block text-sm font-medium text-foreground",children:"Explain Your Use Case"}),(0,a.jsx)("textarea",{value:v,onChange:e=>j(e.target.value),placeholder:"Describe how your team plans to use Context7 on-premise...",disabled:k,rows:3,className:"w-full rounded-md border border-border px-3 py-2 text-sm text-foreground placeholder-muted-foreground focus:border-ring focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:bg-muted"})]})]})})]})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.