PageSourceSearch

https://profit-scanner.com/_next/static/chunks/2db8yg5ll5l95.js

js profit-scanner.com collected 2026-10-02 00:56:11 UTC 8,511 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="bc45ce65-bf18-d587-dcb0-0dfc4ad1a0db")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,785126,e=>{"use strict";var a=e.i(991865),r=e.i(651682),t=e.i(540316),s=e.i(513935),i=e.i(843476),n=e.i(271645),l=e.i(167881),o=e.i(23750),c=e.i(10708),d=e.i(184762),u=e.i(970065),m=e.i(846696),p=e.i(595468),h=e.i(531278),x=["Instagram","YouTube","TikTok","Blog","Newsletter","Telegram channel","Other"],f=[{value:"lt1k",label:"Under 1k"},{value:"1k_10k",label:"1k – 10k"},{value:"10k_100k",label:"10k – 100k"},{value:"gt100k",label:"100k+"}];e.s(["AffiliateApplicationForm",0,function(){var e=(0,r._)((0,n.useState)(""),2),v=e[0],b=e[1],g=(0,r._)((0,n.useState)(""),2),y=g[0],j=g[1],N=(0,r._)((0,n.useState)([]),2),_=N[0],k=N[1],C=(0,r._)((0,n.useState)("1k_10k"),2),w=C[0],S=C[1],T=(0,r._)((0,n.useState)(""),2),L=T[0],A=T[1],P=(0,r._)((0,n.useState)(!1),2),F=P[0],O=P[1],q=(0,r._)((0,n.useState)(!1),2),B=q[0],I=q[1],z=(0,r._)((0,n.useState)(""),2),D=z[0],H=z[1],U=function(e){k(function(a){return a.includes(e)?a.filter(function(a){return a!==e}):(0,t._)(a).concat([e])})};if(B)return(0,i.jsx)(u.Card,{className:"pt-6",children:(0,i.jsx)(u.CardContent,{children:(0,i.jsxs)("div",{className:"text-center space-y-4",children:[(0,i.jsx)(p.CheckCircle2,{className:"h-12 w-12 text-[var(--color-success)] mx-auto"}),(0,i.jsx)("h3",{className:"text-lg font-semibold",children:"Thanks — we got your application!"}),(0,i.jsx)("p",{className:"text-muted-foreground",children:D}),(0,i.jsx)("div",{className:"pt-4 border-t text-sm text-muted-foreground",children:"If we approve your application, you'll get an email with a magic link to set up your account and access your referral dashboard."})]})})});var W=2e3-L.length;return(0,i.jsxs)(u.Card,{children:[(0,i.jsxs)(u.CardHeader,{children:[(0,i.jsx)(u.CardTitle,{children:"Apply to the affiliate program"}),(0,i.jsx)(u.CardDescription,{children:"No account needed. We review every application personally and reply by email."})]}),(0,i.jsx)(u.CardContent,{children:(0,i.jsxs)("form",{onSubmit:function(e){return(0,a._)(function(){var a,r,t;return(0,s._)(this,function(s){switch(s.label){case 0:if(e.preventDefault(),!v.trim()||!y.trim())return m.toast.error("Email and name are required."),[2];if(0===_.length)return m.toast.error("Please select at least one promo channel."),[2];if(L.trim().length<20)return m.toast.error("Tell us a bit more — at least ".concat(20," characters.")),[2];O(!0),s.label=1;case 1:return s.trys.push([1,4,5,6]),[4,fetch("/api/v1/affiliate/apply",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:v.trim(),name:y.trim(),promo_channels:_,audience_size:w,promo_strategy:L.trim()})})];case 2:return[4,(a=s.sent()).json().catch(function(){return{}})];case 3:if(r=s.sent(),!a.ok||!r.success)return t=r.detail||r.message||"Could not submit application.",m.toast.error(t),[2];return H(r.message||"Application received. We'll review it shortly."),I(!0),b(""),j(""),k([]),S("1k_10k"),A(""),[3,6];case 4:return s.sent(),m.toast.error("Network error. Please try again."),[3,6];case 5:return O(!1),[7];case 6:return[2]}})})()},className:"space-y-5",children:[(0,i.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,i.jsxs)("div",{className:"space-y-1.5",children:[(0,i.jsx)(c.Label,{htmlFor:"email",children:"Email *"}),(0,i.jsx)(o.Input,{id:"email",type:"email",value:v,onChange:function(e){return b(e.target.value)},required:!0,placeholder:"[email protected]",disabled:F})]}),(0,i.jsxs)("div",{className:"space-y-1.5",children:[(0,i.jsx)(c.Label,{htmlFor:"name",children:"Your name *"}),(0,i.jsx)(o.Input,{id:"name",type:"text",value:y,onChange:function(e){return j(e.target.value)},required:!0,placeholder:"First and last name",maxLength:120,disabled:F})]})]}),(0,i.jsxs)("div",{className:"space-y-1.5",children:[(0,i.jsx)(c.Label,{children:"Where will you promote? *"}),(0,i.jsx)("div",{className:"flex flex-wrap gap-2 mt-2",children:x.map(function(e){var a=_.includes(e);return(0,i.jsx)("button",{type:"button",onClick:function(){return U(e)},disabled:F,className:["px-3 py-1.5 rounded-full text-sm border transition-colors cursor-pointer",a?"bg-primary/15 border-primary text-primary":"bg-muted border-transparent hover:bg-muted/80"].join(" "),children:e},e)})}),(0,i.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Pick at least one. You can always update later."})]}),(0,i.jsxs)("div",{className:"space-y-1.5",children:[(0,i.jsx)(c.Label,{children:"Audience size *"}),(0,i.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-2 mt-2",children:f.map(function(e){var a=w===e.value;return(0,i.jsx)("button",{type:"button",onClick:function(){return S(e.value)},disabled:F,className:["px-3 py-2 rounded-lg text-sm border transition-colors cursor-pointer text-center",a?"bg-primary/15 border-primary text-primary font-medium":"bg-muted border-transparent hover:bg-muted/80"].join(" "),children:e.label},e.value)})})]}),(0,i.jsxs)("div",{className:"space-y-1.5",children:[(0,i.jsx)(c.Label,{htmlFor:"strategy",children:"How will you promote Profit Scanner? *"}),(0,i.jsx)(d.Textarea,{id:"strategy",value:L,onChange:function(e){return A(e.target.value.slice(0,2e3))},required:!0,placeholder:"A few sentences about your audience, your channel mix, and how you'd talk about Profit Scanner. Min 20 characters.",rows:5,maxLength:2e3,disabled:F}),(0,i.jsxs)("div",{className:"flex justify-between text-xs text-muted-foreground mt-1",children:[(0,i.jsxs)("span",{children:["Min ",20," characters."]}),(0,i.jsxs)("span",{children:[W," left"]})]})]}),(0,i.jsx)(l.Button,{type:"submit",className:"w-full",disabled:F,children:F?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}),"Submitting..."]}):"Submit application"})]})})]})}])},970065,e=>{"use strict";var a=e.i(120786),r=e.i(92808),t=e.i(233027),s=e.i(843476),i=e.i(647163);e.s(["Card",0,function(e){var n=e.className,l=e.children,o=e.variant,c=(0,t._)(e,["className","children","variant"]);return(0,s.jsx)("div",(0,r._)((0,a._)({"data-slot":"card",className:(0,i.cn)("p-6 text-foreground flex flex-col gap-4 w-full",{default:"glass",elevated:"card-base",interactive:"card-interactive"}[void 0===o?"default":o],n)},c),{children:l}))},"CardContent",0,function(e){var r=e.className,n=(0,t._)(e,["className"]);return(0,s.jsx)("div",(0,a._)({"data-slot":"card-content",className:(0,i.cn)(r)},n))},"CardDescription",0,function(e){var r=e.className,n=(0,t._)(e,["className"]);return(0,s.jsx)("div",(0,a._)({"data-slot":"card-description",className:(0,i.cn)("text-muted-foreground text-sm",r)},n))},"CardHeader",0,function(e){var r=e.className,n=(0,t._)(e,["className"]);return(0,s.jsx)("div",(0,a._)({"data-slot":"card-header",className:(0,i.cn)("@container/card-header flex flex-col gap-1.5 has-data-[slot=card-action]:grid has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6 not-last:border-b not-last:border-[var(--card-div
2ider)] not-last:pb-4",r)},n))},"CardTitle",0,function(e){var r=e.className,n=(0,t._)(e,["className"]);return(0,s.jsx)("div",(0,a._)({"data-slot":"card-title",className:(0,i.cn)("[font-family:var(--font-display)] text-[1.0625rem] leading-tight font-semibold text-foreground",r)},n))}])},184762,e=>{"use strict";var a=e.i(120786),r=e.i(233027),t=e.i(843476),s=e.i(647163);e.s(["Textarea",0,function(e){var i=e.className,n=(0,r._)(e,["className"]);return(0,t.jsx)("textarea",(0,a._)({"data-slot":"textarea",className:(0,s.cn)("border-[var(--field-border)] bg-[var(--field-bg)] hover:border-[var(--field-border-hover)] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-md border px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",i)},n))}])},595468,e=>{"use strict";var a=e.i(123287);e.s(["CheckCircle2",()=>a.default])},531278,e=>{"use strict";var a=e.i(717521);e.s(["Loader2",()=>a.default])}]);
3
4//# debugId=bc45ce65-bf18-d587-dcb0-0dfc4ad1a0db

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.