PageSourceSearch

https://app.clycklist.com/_next/static/chunks/pages/wp/email-finder-fc0d1f8892648989.js

js clycklist.com collected 2026-10-02 01:29:23 UTC 12,028 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7753],{22608:(e,a,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/wp/email-finder",function(){return s(29337)}])},29337:(e,a,s)=>{"use strict";s.r(a),s.d(a,{default:()=>G});var t=s(37876),r=s(14232),n=s(16175),l=s(17178),i=s(75917),c=s(45544),o=s(65870),d=s(77041),m=s(92188),u=s(59829),x=s(84081);function p(e){let{value:a="",onChange:s,onBlur:p,placeholder:f="Company name or website",className:h="",error:j=!1}=e,[N,y]=(0,r.useState)(!1),[g,w]=(0,r.useState)(""),[v,b]=(0,r.useState)(!1),[_,k]=(0,r.useState)([]),A=(0,i.d)(g,500);(0,r.useEffect)(()=>{a===g||N||w(a)},[a,N,g]),(0,r.useEffect)(()=>{(async()=>{if((null==A?void 0:A.length)<2)return k([]);b(!0);try{let e=await (0,c.eu)(A);k(e)}catch(e){console.error("Error fetching company suggestions:",e),k([])}finally{b(!1)}})()},[A]);let C=e=>{w(e.domain),s(e.domain),y(!1),p&&p()};return(0,t.jsxs)(u.AM,{open:N,onOpenChange:e=>{y(e),!e&&p&&p()},children:[(0,t.jsx)(u.Wv,{asChild:!0,children:(0,t.jsxs)(d.$,{variant:"outline",role:"combobox","aria-expanded":N,className:(0,o.cn)("h-12 w-full justify-between px-4",j?"border-red-500":"",h),children:[a||g?(0,t.jsx)("span",{className:"truncate",children:a||g}):(0,t.jsx)("span",{className:"text-muted-foreground",children:f}),(0,t.jsx)(n.A,{className:"ml-2 h-4 w-4 shrink-0 opacity-70"})]})}),(0,t.jsx)(u.hl,{className:"w-[--radix-popover-trigger-width] p-0",children:(0,t.jsxs)(m.uB,{shouldFilter:!1,children:[(0,t.jsx)(m.G7,{autoComplete:"off",placeholder:f,value:g,onValueChange:e=>{w(e),s(e)},className:"h-9"}),v&&(0,t.jsx)("div",{className:"flex items-center justify-center py-6",children:(0,t.jsx)(x.hW,{className:"h-6 w-6 animate-spin text-muted-foreground"})}),!v&&(0,t.jsxs)(m.oI,{children:[g.length>0&&0===_.length&&(0,t.jsx)(m.xL,{children:"No companies found."}),_.length>0&&(0,t.jsx)(m.L$,{children:_.map(e=>(0,t.jsx)(m.h_,{value:e.domain,onSelect:()=>C(e),className:"py-3",children:(0,t.jsxs)("div",{className:"flex w-full items-center",children:[(0,t.jsx)("div",{className:"mr-3 h-8 w-8 flex-shrink-0",children:e.logo_url?(0,t.jsx)("img",{src:e.logo_url||"/placeholder.svg",alt:e.name,className:"h-full w-full object-contain"}):(0,t.jsx)("div",{className:"flex h-full w-full items-center justify-center rounded-full bg-gray-200",children:(0,t.jsx)("span",{className:"text-xs font-bold text-gray-500",children:e.name.charAt(0).toUpperCase()})})}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("div",{className:"font-medium",children:e.name}),(0,t.jsx)("div",{className:"text-sm text-muted-foreground",children:e.domain})]}),(0,t.jsxs)("div",{className:"ml-2 rounded-full bg-secondary px-2 py-1 text-xs",children:[e.confidence_score,"%"]}),(0,t.jsx)(l.A,{className:(0,o.cn)("ml-2 h-4 w-4",a===e.domain?"opacity-100":"opacity-0")})]})},e.domain))})]})]})})]})}var f=s(82987),h=s(88992),j=s(40053);let N=h.Op,y=r.createContext({}),g=e=>{let{...a}=e;return(0,t.jsx)(y.Provider,{value:{name:a.name},children:(0,t.jsx)(h.xI,{...a})})},w=()=>{let e=r.useContext(y),a=r.useContext(v),{getFieldState:s,formState:t}=(0,h.xW)(),n=s(e.name,t);if(!e)throw Error("useFormField should be used within <FormField>");let{id:l}=a;return{id:l,name:e.name,formItemId:"".concat(l,"-form-item"),formDescriptionId:"".concat(l,"-form-item-description"),formMessageId:"".concat(l,"-form-item-message"),...n}},v=r.createContext({}),b=r.forwardRef((e,a)=>{let{className:s,...n}=e,l=r.useId();return(0,t.jsx)(v.Provider,{value:{id:l},children:(0,t.jsx)("div",{ref:a,className:(0,o.cn)("space-y-2",s),...n})})});b.displayName="FormItem",r.forwardRef((e,a)=>{let{className:s,...r}=e,{error:n,formItemId:l}=w();return(0,t.jsx)(j.J,{ref:a,className:(0,o.cn)(n&&"text-destructive",s),htmlFor:l,...r})}).displayName="FormLabel";let _=r.forwardRef((e,a)=>{let{...s}=e,{error:r,formItemId:n,formDescriptionId:l,formMessageId:i}=w();return(0,t.jsx)(f.DX,{ref:a,id:n,"aria-describedby":r?"".concat(l," ").concat(i):"".concat(l),"aria-invalid":!!r,...s})});_.displayName="FormControl",r.forwardRef((e,a)=>{let{className:s,...r}=e,{formDescriptionId:n}=w();return(0,t.jsx)("p",{ref:a,id:n,className:(0,o.cn)("text-[0.8rem] text-muted-foreground",s),...r})}).displayName="FormDescription";let k=r.forwardRef((e,a)=>{let{className:s,children:r,...n}=e,{error:l,formMessageId:i}=w(),c=l?String(null==l?void 0:l.message):r;return c?(0,t.jsx)("p",{ref:a,id:i,className:(0,o.cn)("text-[0.8rem] font-medium text-destructive",s),...n,children:c}):null});k.displayName="FormMessage";var A=s(48971),C=s(55504),S=s(23820),B=s(60513);let F=B.z.object({name:B.z.string({message:"name is required"}),company:B.z.string({message:"company is required"})});var E=s(52210),R=s(29091),I=s(13810),O=s(70374),z=s(40314),T=s(48230),L=s.n(T);function G(){let[e,a]=(0,r.useState)(!1),[s,n]=(0,r.useState)([]),l=(0,h.mN)({resolver:(0,I.u)(F)});async function i(e){a(!0);try{var s;let a=await (0,c.R4)(e);n([{_id:(0,R.Os)(),email:a.email,status:a.status,name:e.name,company:null!=(s=a.companyDomain)?s:e.company}])}catch(e){alert(e.message)}finally{a(!1)}}let o=(0,r.useCallback)(e=>{switch(e){case E.A.found:return"bg-green-100 text-green-800";
1case E.A.catchAll:return"bg-yellow-100 text-yellow-800";case E.A.skip:return"bg-gray-100 text-gray-800";case E.A.notFound:return"bg-red-100 text-red-800";default:return"bg-gray-100 text-gray-800"}},[]),m=(0,r.useCallback)(e=>{switch(e){case E.A.found:return"Valid";case E.A.catchAll:return"Risky";case E.A.skip:return"Skip";case E.A.notFound:return"Not Found";default:return e}},[]);return(0,t.jsxs)("div",{className:"mx-auto w-full max-w-3xl rounded-lg border bg-white p-8 shadow-sm",children:[(0,t.jsx)(N,{...l,children:(0,t.jsx)("div",{className:"w-full",children:(0,t.jsxs)("div",{className:"w-full space-y-4",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:[(0,t.jsx)(g,{control:l.control,name:"name",render:e=>{let{field:a}=e;return(0,t.jsxs)(b,{children:[(0,t.jsx)(_,{children:(0,t.jsx)(A.p,{...a,autoComplete:"off",type:"text",placeholder:"Full name",className:"h-12 w-full border-2 px-4"})}),(0,t.jsx)(k,{})]})}}),(0,t.jsx)(g,{control:l.control,name:"company",render:e=>{let{field:a}=e;return(0,t.jsxs)(b,{children:[(0,t.jsx)(_,{children:(0,t.jsx)(p,{value:a.value,onChange:a.onChange,onBlur:a.onBlur,error:!!l.formState.errors.company})}),(0,t.jsx)(k,{})]})}})]}),(0,t.jsx)("form",{onSubmit:l.handleSubmit(i),children:(0,t.jsxs)(d.$,{className:"h-12 w-full font-medium",type:"submit",disabled:e,children:[e?(0,t.jsx)(x.hW,{className:"mr-2 h-5 w-5 animate-spin"}):(0,t.jsx)(O.A,{className:"mr-2 h-5 w-5"}),"Find email"]})})]})})}),s&&s.length>0&&(0,t.jsxs)("div",{className:"mt-8 w-full rounded-md border p-6 ",children:[(0,t.jsxs)("p",{className:"mb-4 text-zinc-500",children:[s.length," result found"]}),s.map((e,a)=>(0,t.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("div",{className:"mr-2 h-6 w-6 text-xs",children:(0,t.jsx)("img",{src:"https://www.google.com/s2/favicons?domain=".concat(e.company),alt:e.company||"",className:"h-full w-full object-contain"})}),(0,t.jsx)("span",{className:"font-medium",children:e.company})]}),(0,t.jsxs)("div",{className:"text-right",children:[e.email&&e.status===E.A.found?(0,t.jsx)("a",{href:"mailto:".concat(e.email),className:"block font-medium text-blue-500",children:e.email}):(0,t.jsx)("span",{className:"block font-medium text-zinc-500",children:e.email||"No email found"}),(0,t.jsxs)("div",{className:"mt-1 flex items-center justify-end",children:[(0,t.jsx)("span",{className:"mr-2 text-sm text-zinc-600",children:e.email}),(0,t.jsx)("span",{className:"rounded-full px-2 py-0.5 text-xs ".concat(o(e.status)),children:m(e.status)})]})]})]},e._id)),(0,t.jsxs)("div",{className:"mt-8 flex items-center justify-between rounded-md bg-blue-50 p-4",children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("div",{className:"mr-3 flex h-10 w-10 items-center justify-center rounded-full bg-green-100",children:(0,t.jsx)(z.A,{className:"h-5 w-5 text-green-600"})}),(0,t.jsxs)("p",{className:"text-zinc-700",children:["Create your ",(0,t.jsx)("span",{children:C.A.appname})," account for more email lookups."]})]}),(0,t.jsx)(L(),{className:(0,d.r)({variant:"default"}),href:S.A.login,children:"Get Started"})]})]})]})}},40053:(e,a,s)=>{"use strict";s.d(a,{J:()=>o});var t=s(37876),r=s(14232),n=s(59773),l=s(47137),i=s(65870);let c=(0,l.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),o=r.forwardRef((e,a)=>{let{className:s,...r}=e;return(0,t.jsx)(n.b,{ref:a,className:(0,i.cn)(c(),s),...r})});o.displayName=n.b.displayName},45544:(e,a,s)=>{"use strict";s.d(a,{R4:()=>t,eu:()=>r,fS:()=>n});let t=async e=>{let a=await fetch("/api/wp/email-finder",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},credentials:"include",body:JSON.stringify(e)});if(!a.ok)throw Error((await a.json()).error||"[EmailFinder] http ".concat(a.status," error"));return await a.json().catch(()=>{})},r=async e=>{let a=await fetch("/api/wp/company-finder?kw=".concat(e),{method:"GET",headers:{Accept:"application/json","Content-Type":"application/json"},credentials:"include"});return await a.json().catch(()=>{})},n=async e=>{let a=await fetch("/api/wp/email-verifier",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:e})});if(!a.ok)throw Error((await a.json()).error||"[EmailVerifier] http ".concat(a.status," error"));return await a.json().catch(()=>{})}},92188:(e,a,s)=>{"use strict";s.d(a,{G7:()=>o,L$:()=>u,fx:()=>x,h_:()=>p,oI:()=>d,uB:()=>c,xL:()=>m});var t=s(37876),r=s(14232),n=s(58687),l=s(65870);s(92161);var i=s(5259);let c=r.forwardRef((e,a)=>{let{className:s,...r}=e;return(0,t.jsx)(n.uB,{ref:a,className:(0,l.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",s),...r})});c.displayName=n.uB.displayName;let o=r.forwardRef((e,a)=>{let{className:s,...r}=e;return(0,t.jsxs)("div",{className:"flex items-center border-b px-3 border rounded-md","cmdk-input-wrapper":"",children:[(0,t.jsx)(i.$p$,{className:"mr-1 h-4 w-4 shrink-0 opacity-50"}),(0,t.jsx)(n.uB.Input,{ref:a,className:(0,l.cn)("flex h-10 w-full border-0  focus:ring-0 rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",s),...r})]})});o.displayName=n.uB.Input.displayName;let d=r.forwardRef((e,a)=>{let{className:s,...r}=e;return(0,t.jsx)(n.uB.List,{ref:a,className:(0,l.cn)("max-h-[300px] overflow-y-auto overflow-x-hidden",s),...r})});d.displayName=n.uB.List.displayName;let m=r.forwardRef((e,a)=>(0,t.jsx)(n.uB.Empty,{ref:a,className:"py-6 text-center text-sm",...e}));m.displayName=n.uB.Empty.displayName;let u=r.forwardRef((e,a)=>{let{className:s,...r}=e;return(0,t.jsx)(n.uB.Group,{ref:a,className:(0,l.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",s),...r})});u.displayName=n.uB.Group.displayName;let x=r.forwardRef((e,a)=>{let{className:s,...r}=e;return(0,t.jsx)(n.uB.Separator,{ref:a,className:(0,l.cn)("-mx-1 h-px bg-border",s),...r})});x.displayName=n.uB.Separator.displayName;let p=r.forwardRef((e,a)=>{let{className:s,...r}=e;return(0,t.jsx)(n.uB.Item,{ref:a,className:(0,l.cn)("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",s),...r})});p.displayName=n.uB.Item.displayName}},e=>{var a=a=>e(e.s=a);e.O(0,[513,6569,9329,636,6593,8792],()=>a(22608)),_N_E=e.O()}]);

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.