1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/500-CFSaqMkS.css","assets/600-DiweTQrr.css","assets/full-P4IEvtQ6.css"])))=>i.map(i=>d[i]); 2import{n as e,o as t}from"./rolldown-runtime-C0FnF6B9.js";import{Jt as n,Nt as r,Yt as i,wn as a}from"./vendor-D1JlsGpU.js";import{Ds as o,Du as s,Fc as c,Ic as l,Os as u,Ou as d,_ as f,v as p}from"./chunk-icons-D_siqEwD.js";import{n as m,t as h}from"./cn-OCK3Ba7M.js";import{d as g,g as _}from"./base.api-DpjJHIXP.js";import{n as v,t as y}from"./Dialog-Diagr7Xq.js";function b(){return V||=Promise.all([n(()=>Promise.resolve({}),__vite__mapDeps([0])),n(()=>Promise.resolve({}),__vite__mapDeps([1])),n(()=>Promise.resolve({}),__vite__mapDeps([2]))]),V}var x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,L,R,z,B,V,H,U;function W(){return(W=e((()=>{x=t(a(),1),d(),l(),u(),p(),v(),_(),m(),S=r(),i(),C=`/intake/calendly-lead`,w=/^\S+@\S+\.\S+$/,T=`https://calendly.com/labgiant/30min`,E=`https://calendly.com`,D=600,O=1500,k={hide_gdpr_banner:`1`,hide_landing_page_details:`1`,background_color:`ffffff`,text_color:`1f1f1f`,primary_color:`781c28`},A=`'Caveat', 'Reenie Beanie', 'Comic Sans MS', cursive`,j=`'Fraunces Variable', 'Fraunces', 'Charter', Georgia, serif`,M={fontFamily:j,fontSize:`26px`,fontWeight:500,letterSpacing:`-0.01em`,color:`#1f1f1f`},N={fontFamily:j,fontSize:`18px`,fontWeight:500,color:`#1f1f1f`},P={fontFamily:j,fontSize:`15px`,fontStyle:`italic`},F={fontFamily:j,fontSize:`13px`,fontStyle:`italic`,color:`#666`},I={fontFamily:A,fontSize:`22px`,lineHeight:`32px`,color:`#1f1f1f`,backgroundImage:`repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(31, 31, 31, 0.10) 31px, rgba(31, 31, 31, 0.10) 32px)`,backgroundAttachment:`local`},L={fontFamily:A,fontSize:`20px`,lineHeight:`30px`,color:`#1f1f1f`},R=[{label:`Researcher`,rendered:`A Researcher`},{label:`Admin`,rendered:`A lab admin`},{label:`Manager`,rendered:`A manager`},{label:`Facility Director`,rendered:`A Core Facility Director`},{label:`Dean / Chair`,rendered:`A Dean or Chair`},{label:`VP / Provost`,rendered:`A VP or Provost`},{label:`Founder / Exec`,rendered:`An Industry Founder or Exec`},{label:`R&D / Ops`,rendered:`An R&D or Operations Lead`},{label:`IT / Procurement`,rendered:`An IT or Procurement Lead`}],z=(e,t,n,r)=>{let i=new URLSearchParams;Object.entries(k).forEach(([e,t])=>{i.set(e,t)}),t?.firstName&&i.set(`first_name`,t.firstName),t?.lastName&&i.set(`last_name`,t.lastName);let a=(r?.trim()||t?.email||``).trim();return a&&i.set(`email`,a),n!=null&&(i.set(`utm_source`,`labgiant_website`),i.set(`utm_medium`,n)),i.set(`embed_type`,`Inline`),i.set(`embed_domain`,typeof window<`u`?window.location.hostname:`labgiant.com`),`${e}?${i.toString()}`},B=e=>`${e.toLocaleString(`en-US`,{month:`short`}).toUpperCase()} ${e.getDate()}, ${e.getFullYear()}`,V=null,H=e=>{(0,x.useEffect)(()=>{e&&b()},[e])},U=({open:e,onClose:t,prefill:n,source:r})=>{let[i,a]=(0,x.useState)(`write`),[l,u]=(0,x.useState)(``),[d,p]=(0,x.useState)(``),[m,_]=(0,x.useState)(n?.email??``),v=(0,x.useRef)(!1);H(e),(0,x.useEffect)(()=>{e||(a(`write`),u(``),p(``),_(n?.email??``),v.current=!1)},[e,n?.email]);let b=m.trim(),k=w.test(b),A=(0,x.useCallback)((e,t,i)=>{let a=e.trim(),o=i.trim();(a||t||o)&&(v.current||(v.current=!0,g(C,{note:a,role:t,email:o||n?.email,firstName:n?.firstName,lastName:n?.lastName,source:r}).catch(()=>{v.current=!1})))},[n?.email,n?.firstName,n?.lastName,r]);(0,x.useEffect)(()=>{if(!e)return;let n=e=>{e.origin===E&&e.data?.event===`calendly.event_scheduled`&&(a(`done`),window.setTimeout(t,O))};return window.addEventListener(`message`,n),()=>window.removeEventListener(`message`,n)},[e,t]);let V=(0,x.useMemo)(()=>z(T,n,r,k?b:void 0),[n,r,k,b]),U=(0,x.useMemo)(()=>B(new Date),[]);return(0,S.jsx)(y,{open:e,onOpenChange:e=>{e||t()},modal:!1,showCloseButton:!1,bodyScroll:!1,contentClassName:h(`p-0 overflow-hidden bg-white dark:bg-white border-gray-200`,i===`schedule`?`max-w-[1040px] w-full h-[min(720px,calc(100dvh-32px))]`:i===`done`?`max-w-[520px] w-full`:`max-w-[720px] w-full`),children:(0,S.jsxs)(`div`,{className:`relative h-full flex flex-col bg-white text-[#1f1f1f]`,children:[(0,S.jsx)(`button`,{type:`button`,"aria-label":`Close`,onClick:t,className:`absolute right-3 top-3 z-20 rounded-default p-2 text-[#999] transition-colors hover:bg-black/5 hover:text-[#1f1f1f] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30`,children:(0,S.jsx)(f,{size:18})}),i===`write`&&(0,S.jsxs)(`div`,{className:`relative`,children:[(0,S.jsx)(`div`,{"aria-hidden":!0,
2className:`pointer-events-none absolute -left-24 -top-24 h-[320px] w-[420px] rounded-full opacity-50 blur-3xl`,style:{background:`radial-gradient(closest-side, rgba(120, 28, 40, 0.25), transparent 70%)`}}),(0,S.jsxs)(`div`,{className:`relative px-8 py-10 md:px-14 md:py-12`,children:[(0,S.jsx)(`div`,{className:`text-right text-[11px] uppercase tracking-[0.22em] text-[#8a8a8a]`,children:U}),(0,S.jsx)(`div`,{className:`mt-10`,style:M,children:`LabGiant,`}),(0,S.jsx)(`textarea`,{value:l,onChange:e=>u(e.target.value.slice(0,D)),placeholder:`Tell us what you're working on, the bottleneck slowing it down, and what you're hoping to achieve.`,rows:7,autoFocus:!0,maxLength:D,spellCheck:!0,style:I,className:`mt-6 w-full resize-none border-0 bg-transparent px-0 py-0 placeholder:text-[#b6b6b6] focus:outline-none focus:ring-0`}),(0,S.jsxs)(`div`,{className:`mt-2`,children:[(0,S.jsx)(`div`,{className:`h-px w-44 bg-[#d8d8d8]`}),(0,S.jsx)(`div`,{className:`mt-2`,style:{...P,color:d?`#444`:`#b6b6b6`},children:d||`Add your title`}),(0,S.jsx)(`div`,{className:`mt-3 grid grid-cols-3 gap-1.5`,children:R.map(e=>{let t=d===e.rendered;return(0,S.jsx)(`button`,{type:`button`,"aria-pressed":t,onClick:()=>p(t?``:e.rendered),className:h(`rounded-default border px-2.5 py-1 text-[12px] transition-colors`,t?`border-primary/30 bg-primary/10 text-primary`:`border-[#e5e5e5] text-[#444] hover:border-[#d4d4d4] hover:bg-[#f5f5f5]`),children:e.label},e.label)})}),(0,S.jsxs)(`div`,{className:`mt-5`,children:[(0,S.jsx)(`div`,{className:`h-px w-44 bg-[#d8d8d8]`}),(0,S.jsx)(`input`,{type:`email`,value:m,onChange:e=>_(e.target.value),placeholder:`[email protected]`,autoComplete:`email`,spellCheck:!1,style:P,className:`mt-2 w-full border-0 bg-transparent px-0 py-0 placeholder:text-[#b6b6b6] focus:outline-none focus:ring-0`})]})]}),(0,S.jsxs)(`div`,{className:`mt-8 flex items-center justify-between`,children:[(0,S.jsx)(`button`,{type:`button`,onClick:()=>{A(``,d,m),u(``),a(`schedule`)},className:`text-[13px] text-[#888] underline-offset-4 transition-colors hover:text-[#444] hover:underline`,children:`Skip the note`}),(0,S.jsxs)(`button`,{type:`button`,disabled:!k,onClick:()=>{A(l,d,m),a(`schedule`)},className:`inline-flex items-center gap-2 rounded-default bg-primary px-4 py-2 text-[14px] font-medium text-white shadow-sm transition-transform duration-150 hover:bg-primary/90 hover:scale-[1.02] active:scale-[0.98] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30 disabled:cursor-not-allowed disabled:bg-primary/40 disabled:hover:scale-100`,children:[`Pick a time`,(0,S.jsx)(s,{size:16})]})]})]})]}),i===`schedule`&&(0,S.jsxs)(`div`,{className:`flex-1 min-h-0 grid grid-cols-1 md:grid-cols-[280px_1fr]`,children:[(0,S.jsxs)(`div`,{className:`relative border-b border-gray-100 px-6 py-8 md:border-b-0 md:border-r md:border-gray-100 md:px-8 md:py-10`,children:[(0,S.jsx)(`div`,{"aria-hidden":!0,className:`pointer-events-none absolute -left-16 -top-16 h-[200px] w-[280px] rounded-full opacity-40 blur-3xl`,style:{background:`radial-gradient(closest-side, rgba(120, 28, 40, 0.20), transparent 70%)`}}),(0,S.jsxs)(`div`,{className:`relative`,children:[(0,S.jsx)(`div`,{className:`text-[10px] uppercase tracking-[0.22em] text-[#8a8a8a]`,children:U}),(0,S.jsx)(`div`,{className:`mt-6`,style:N,children:`LabGiant,`}),(0,S.jsx)(`div`,{className:`mt-3 max-h-[260px] overflow-y-auto whitespace-pre-wrap break-words pr-1`,style:L,children:l.trim()?l:(0,S.jsx)(`span`,{className:`italic text-[#b6b6b6]`,children:`No note attached.`})}),(0,S.jsx)(`div`,{className:`mt-4 h-px w-32 bg-[#d8d8d8]`}),d&&(0,S.jsx)(`div`,{className:`mt-2`,style:F,children:d}),b&&(0,S.jsx)(`div`,{className:`mt-1 break-all`,style:F,children:b}),(0,S.jsxs)(`button`,{type:`button`,onClick:()=>
2a(`write`),className:`mt-8 inline-flex items-center gap-1.5 text-[12px] text-[#888] underline-offset-4 transition-colors hover:text-[#444] hover:underline`,children:[(0,S.jsx)(o,{size:13}),l.trim()?`edit note`:`add a note`]})]})]}),(0,S.jsxs)(`div`,{className:`flex flex-col min-h-0 p-4 md:p-6`,children:[(0,S.jsx)(`div`,{className:`flex-1 min-h-0 overflow-hidden rounded-default bg-white`,children:(0,S.jsx)(`iframe`,{src:V,title:`Calendly Scheduling`,width:`100%`,height:`100%`,loading:`lazy`,referrerPolicy:`no-referrer-when-downgrade`,style:{border:0,display:`block`}})}),(0,S.jsxs)(`p`,{className:`mt-3 text-center text-[12px] text-[#888]`,children:[`Trouble loading?`,` `,(0,S.jsx)(`a`,{href:T,target:`_blank`,rel:`noopener noreferrer`,className:`font-medium text-primary hover:underline`,children:`Open scheduling in a new tab`})]})]})]}),i===`done`&&(0,S.jsxs)(`div`,{className:`flex flex-col items-center justify-center px-12 py-16 text-center`,children:[(0,S.jsx)(`div`,{className:`rounded-full bg-primary/10 p-4`,children:(0,S.jsx)(c,{size:32,className:`text-primary`})}),(0,S.jsx)(`div`,{className:`mt-6`,style:{fontFamily:j,fontSize:`24px`,fontWeight:500,color:`#1f1f1f`},children:`Sent. Talk soon.`})]})]})})}})))()}export{W as n,U as t};
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.