1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,996510,e=>{"use strict";let t=(0,e.i(201544).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["Download",0,t],996510)},872160,e=>{"use strict";var t=e.i(115497),s=e.i(550595);e.s(["CreditIcon",0,({className:e})=>(0,t.jsxs)("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,s.cn)("h-4 w-4 stroke-[1.5px] text-white",e),children:[(0,t.jsx)("circle",{cx:"8",cy:"8",r:"7",className:"stroke-current"}),(0,t.jsx)("rect",{x:"4.59961",y:"7.9939",width:"4.8",height:"4.8",transform:"rotate(-45 4.59961 7.9939)",fill:"currentColor"})]})])},753860,e=>{"use strict";var t=e.i(100982),s=e.i(845963),a=e.i(582482),r=e.i(650394),i=e.i(99338);e.i(610798);var l=e.i(106361),n=e.i(100335);let o=(0,s.atom)(null),c=(0,s.atom)(null);e.s(["useCreditBalance",0,()=>{let[e,s]=(0,a.useAtom)(o),[d,u]=(0,a.useAtom)(c),{user:m}=(0,n.useUser)(),h=m?.id,{data:p,isLoading:x,refetch:g}=(0,t.useQuery)({queryKey:["creditBalance",h],queryFn:async()=>(await i.api.get("/api/user/credit/balance")).data.balance,enabled:!!h,staleTime:3e5});return(0,r.useEffect)(()=>{void 0!==p&&(s(p),u(new Date().toISOString()))},[p,s,u]),(0,r.useEffect)(()=>{if(!d||!h)return;let e=(0,l.dayjs)(d),t=(0,l.dayjs)();e.month()!==t.month()&&g()},[d,g,h]),{creditBalance:e??0,isLoading:x}}])},498493,e=>{"use strict";let t=(0,e.i(201544).default)("gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);e.s(["Gift",0,t],498493)},65146,e=>{"use strict";var t=e.i(424747);let s="https://t.me/STEarnBot";e.s(["JTTG",0,"https://t.me/jilltodkar/","generateTelegramBotUrl",0,function(e){if(!e)return s;let a=t.Buffer.from(e).toString("base64");return`${s}?start=${a}`}])},130027,e=>{"use strict";var t=e.i(115497),s=e.i(650394),a=e.i(174617),r=e.i(413534),i=e.i(507452),l=e.i(149653),n=e.i(911765),o=e.i(176175),c=e.i(489911),d="Switch",[u,m]=(0,i.createContextScope)(d),[h,p]=u(d),x=s.forwardRef((e,i)=>{let{__scopeSwitch:n,name:o,checked:u,defaultChecked:m,required:p,disabled:x,value:g="on",onCheckedChange:f,form:j,...v}=e,[w,N]=s.useState(null),k=(0,r.useComposedRefs)(i,e=>N(e)),y=s.useRef(!1),S=!w||j||!!w.closest("form"),[M,T]=(0,l.useControllableState)({prop:u,defaultProp:m??!1,onChange:f,caller:d});return(0,t.jsxs)(h,{scope:n,checked:M,disabled:x,children:[(0,t.jsx)(c.Primitive.button,{type:"button",role:"switch","aria-checked":M,"aria-required":p,"data-state":b(M),"data-disabled":x?"":void 0,disabled:x,value:g,...v,ref:k,onClick:(0,a.composeEventHandlers)(e.onClick,e=>{T(e=>!e),S&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())})}),S&&(0,t.jsx)(C,{control:w,bubbles:!y.current,name:o,value:g,checked:M,required:p,disabled:x,form:j,style:{transform:"translateX(-100%)"}})]})});x.displayName=d;var g="SwitchThumb",f=s.forwardRef((e,s)=>{let{__scopeSwitch:a,...r}=e,i=p(g,a);return(0,t.jsx)(c.Primitive.span,{"data-state":b(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:s})});f.displayName=g;var C=s.forwardRef(({__scopeSwitch:e,control:a,checked:i,bubbles:l=!0,...c},d)=>{let u=s.useRef(null),m=(0,r.useComposedRefs)(u,d),h=(0,n.usePrevious)(i),p=(0,o.useSize)(a);return s.useEffect(()=>{let e=u.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(h!==i&&t){let s=new Event("click",{bubbles:l});t.call(e,i),e.dispatchEvent(s)}},[h,i,l]),(0,t.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:i,...c,tabIndex:-1,ref:m,style:{...c.style,...p,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function b(e){return e?"checked":"unchecked"}C.displayName="SwitchBubbleInput";var j=e.i(550595);e.s(["Switch",0,function({className:e,thumbClassName:s,...a}){return(0,t.jsx)(x,{"data-slot":"switch",className:(0,j.cn)("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:ring-ring focus-visible:ring-offset-background inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-xs transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...a,children:(0,t.jsx)(f,{"data-slot":"switch-thumb",className:(0,j.cn)("bg-background pointer-events-none block h-4 w-4 roun
1ded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0",s)})})}],130027)},443915,e=>{"use strict";var t=e.i(115497),s=e.i(550595);e.s(["Textarea",0,function({className:e,...a}){return(0,t.jsx)("textarea",{"data-slot":"textarea",className:(0,s.cn)("border-input focus-visible:ring-brand-purple flex min-h-[60px] w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs placeholder:text-slate-400 focus-visible:ring-1 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...a})}])},136893,e=>{"use strict";var t=e.i(115497),s=e.i(280811),a=e.i(135152),r=e.i(674835),i=e.i(650394),l=e.i(130119),n=e.i(271527),o=e.i(97429),c=e.i(939310),d=e.i(296202),u=e.i(394261),m=e.i(45124),h=e.i(443915),p=e.i(100335);let x=(e,t)=>a.default.sanitize(e,{ALLOWED_TAGS:[],ALLOWED_ATTR:[],...t}),g=o.z.object({email:o.z.string().email({message:"Please enter a valid email address"}),subject:o.z.preprocess(e=>x(e),o.z.string().min(1,{message:"Subject is required"})),description:o.z.preprocess(e=>x(e),o.z.string().min(10,{message:"Description must be at least 10 valid characters"}))});e.s(["SupportFormDialog",0,function({children:e,onSubmit:a}){let{user:o}=(0,p.useUser)(),[f,C]=(0,i.useState)(!1),[b,j]=(0,i.useState)(!1),v=(0,l.useForm)({resolver:(0,s.zodResolver)(g),defaultValues:{email:o?.email||"",subject:"",description:""}});i.default.useEffect(()=>{o?.email&&v.setValue("email",o.email)},[o,v]);let w=async e=>{try{j(!0),r.default.capture("submit_support form");let t=await fetch("/api/email/manual/support",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o?.email||e.email,subject:x(e.subject),description:x(e.description)})}),s=await t.json();if(!t.ok)throw Error(s.error||s.message||"Failed to send message");n.toast.success("Message sent"),a?.(e),C(!1),v.reset({email:o?.email||"",subject:"",description:""})}catch(e){console.error("Error sending support message:",e),n.toast.error(e instanceof Error?e.message:"Failed to send message. Please try again.")}finally{j(!1)}};return(0,t.jsxs)(d.Dialog,{open:f,onOpenChange:C,children:[(0,t.jsx)(d.DialogTrigger,{asChild:!0,onClick:()=>r.default.capture("open_support form"),children:e}),(0,t.jsxs)(d.DialogContent,{className:"gap-2 px-0 sm:max-w-xl",children:[(0,t.jsxs)(d.DialogHeader,{className:"border-b px-6 pb-4",children:[(0,t.jsx)(d.DialogTitle,{className:"text-lg font-semibold",children:"Get In Touch With Us"}),(0,t.jsx)(d.DialogDescription,{className:"text-sm",children:"Describe what you need from us, and we'll get in touch with you as soon as possible"})]}),(0,t.jsx)(u.Form,{...v,children:(0,t.jsxs)("form",{onSubmit:v.handleSubmit(w),className:"space-y-6 px-6 pt-4",children:[!o&&(0,t.jsx)(u.FormField,{control:v.control,name:"email",render:({field:e})=>(0,t.jsxs)(u.FormItem,{children:[(0,t.jsx)(u.FormLabel,{className:"mb-1",isRequired:!0,children:"Email"}),(0,t.jsx)(u.FormControl,{children:(0,t.jsx)(m.Input,{type:"email",placeholder:"Your email",...e})}),(0,t.jsx)(u.FormMessage,{})]})}),(0,t.jsx)(u.FormField,{control:v.control,name:"subject",render:({field:e})=>(0,t.jsxs)(u.FormItem,{children:[(0,t.jsx)(u.FormLabel,{className:"mb-1",isRequired:!0,children:"Subject"}),(0,t.jsx)(u.FormControl,{children:(0,t.jsx)(m.Input,{placeholder:"Add a short subject line",...e})}),(0,t.jsx)(u.FormMessage,{})]})}),(0,t.jsx)(u.FormField,{control:v.control,name:"description",render:({field:e})=>(0,t.jsxs)(u.FormItem,{children:[(0,t.jsx)(u.FormLabel,{className:"mb-1",isRequired:!0,children:"Description"}),(0,t.jsx)(u.FormControl,{children:(0,t.jsx)(h.Textarea,{placeholder:"Write a short description on how we can help",className:"min-h-[150px]",...e})}),(0,t.jsx)(u.FormMessage,{})]})}),(0,t.jsx)(c.Button,{type:"submit",className:"w-full bg-indigo-500 hover:bg-indigo-600",disabled:b,children:b?"Sending...":"Continue"})]})})]})]})}])},909398,e=>{"use strict";var t=e.i(115497),s=e.i(674835),a=e.i(650394),r=e.i(271527),i=e.i(939310),l=e.i(296202),n=e.i(130027),o=e.i(99338),c=e.i(100335);let d=({title:e,category:s,selectedCategories:a,onCategoryChange:r})=>(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("p",{className:"mt-1 font-medium text-slate-500",children:e}),(0,t.jsx)(n.Switch,{autoFocus:!1,className:"mt-0.5",checked:a.includes(s),onCheckedChange:()=>r(s)})]});e.s(["EmailSettingsModal",0,({isOpen:e,onClose:n})=>{let{user:u,refetchUser:m}=(0,c.useUser)(),h=u?.emailSettings||[],[p,x]=(0,a.useState)(h.map(e=>e.category)),[g,f]=(0,a.useState)(!1),C=e=>{x(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},b=async()=>{try{s.default.capture("confirm_email preferences"),f(!0),await o.api.post("/api/user/update-email-sett
1ings",{categories:p}),await m(),f(!1),n(),r.toast.success("Email preferences updated")}catch(e){console.error("Error updating email preferences:",e),r.toast.error("Failed to update email preferences."),f(!1)}},j=u?.currentSponsorId,v=u?.isTalentFilled;return(0,t.jsx)(l.Dialog,{open:e,onOpenChange:n,children:(0,t.jsxs)(l.DialogContent,{className:"p-2",children:[(0,t.jsxs)("div",{className:"px-3 py-6 sm:px-6",children:[(0,t.jsx)("h2",{className:"text-2xl font-semibold text-slate-700",children:"Update Email Preferences"}),(0,t.jsx)("p",{className:"mt-1 font-medium text-slate-400",children:"Tell us which emails you would like to receive!"}),j&&(0,t.jsxs)("div",{className:"mt-6",children:[(0,t.jsx)("p",{className:"mt-6 mb-1 text-sm tracking-[0.8px] text-slate-400",children:"SPONSOR ALERTS"}),(0,t.jsx)(d,{title:"New submissions received for your listing",category:"submissionSponsor",selectedCategories:p,onCategoryChange:C}),(0,t.jsx)(d,{title:"Comments Received on your listing",category:"commentSponsor",selectedCategories:p,onCategoryChange:C}),(0,t.jsx)(d,{title:"Deadline related reminders",category:"deadlineSponsor",selectedCategories:p,onCategoryChange:C})]}),v&&(0,t.jsxs)("div",{className:"mt-6",children:[(0,t.jsx)("p",{className:"mt-6 mb-1 text-sm tracking-[0.8px] text-slate-400",children:"TALENT ALERTS"}),(0,t.jsx)(d,{title:"Weekly Roundup of new listings",category:"weeklyListingRoundup",selectedCategories:p,onCategoryChange:C}),(0,t.jsx)(d,{title:"New listings added for my skills",category:"createListing",selectedCategories:p,onCategoryChange:C}),(0,t.jsx)(d,{title:"Likes and comments on my submissions",category:"commentOrLikeSubmission",selectedCategories:p,onCategoryChange:C}),(0,t.jsx)(d,{title:"Sponsor Invitation Emails (Scout)",category:"scoutInvite",selectedCategories:p,onCategoryChange:C})]}),(v||j)&&(0,t.jsxs)("div",{className:"mt-6",children:[(0,t.jsx)("p",{className:"mt-6 mb-1 text-sm tracking-[0.8px] text-slate-400",children:"GENERAL ALERTS"}),(0,t.jsx)(d,{title:"Comment replies and tags",category:"replyOrTagComment",selectedCategories:p,onCategoryChange:C}),(0,t.jsx)(d,{title:"Product updates and newsletters",category:"productAndNewsletter",selectedCategories:p,onCategoryChange:C})]})]}),(0,t.jsx)("div",{className:"px-2 sm:px-4",children:(0,t.jsx)(i.Button,{className:"ph-no-capture mb-3 w-full",disabled:g,onClick:b,children:g?(0,t.jsx)("span",{children:"Updating Preferences.."}):(0,t.jsx)("span",{children:"Update Preferences"})})})]})})}])},540955,e=>{"use strict";var t=e.i(115497),s=e.i(745050),a=e.i(997810),r=e.i(538237),i=e.i(674835),l=e.i(650394),n=e.i(136893),o=e.i(939310),c=e.i(831395),d=e.i(65146),u=e.i(633327),m=e.i(100335),h=e.i(458173),p=e.i(909398);e.s(["UserMenu",0,function(){let e=(0,r.useRouter)(),{user:x,isLoading:g}=(0,m.useUser)(),f=(0,m.useLogout)(),{isOpen:C,onClose:b,onOpen:j}=(0,u.useDisclosure)(),v=()=>"true"===localStorage.getItem("telegram-alerts-shown");(0,l.useEffect)(()=>{(()=>{let e=window.location.href,t=e.indexOf("#"),[s]=(-1!==t?e.substring(t+1):"").split("?");"emailPreferences"===s&&j()})()},[C,j]);let w=async()=>{console.log("close -",e),await e.replace(e.asPath.replace("#emailPreferences",""),void 0,{shallow:!0}),b()};return g?(0,t.jsx)(t.Fragment,{}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p.EmailSettingsModal,{isOpen:C,onClose:w}),x&&!x.currentSponsorId&&!x.isTalentFilled&&!e.pathname.startsWith("/earn/new")&&(0,t.jsx)(o.Button,{variant:"ghost",size:"sm",onClick:()=>{i.default.capture("complete profile_nav bar"),e.push("/earn/new")},className:"ph-no-capture flex text-xs",children:"Complete your Profile"}),(0,t.jsxs)(c.DropdownMenu,{children:[(0,t.jsx)(c.DropdownMenuTrigger,{id:"user menu",className:"ph-no-capture roun
1ded-lg border border-white px-2 py-1 transition-all duration-100 hover:bg-slate-100 focus:outline-hidden active:border-slate-300 active:bg-slate-200 data-[state=open]:bg-slate-100",onClick:()=>{i.default.capture("clicked_user menu")},children:(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(h.EarnAvatar,{className:"size-7",id:x?.id,avatar:x?.photo}),(0,t.jsx)("div",{className:"flex items-center",children:(0,t.jsx)("p",{className:"text-sm font-medium tracking-tight text-slate-600",children:x?.firstName??x?.email??""})}),!v()&&(0,t.jsx)("div",{className:"block h-1.5 w-1.5 rounded-full bg-sky-400"}),(0,t.jsx)(s.ChevronDown,{className:"block size-4 text-slate-400"})]})}),(0,t.jsxs)(c.DropdownMenuContent,{className:"ph-no-capture px-0 font-medium",align:"start",children:[x?.isTalentFilled&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.DropdownMenuItem,{asChild:!0,children:(0,t.jsx)(a.default,{href:`/earn/t/${x?.username}`,onClick:()=>{i.default.capture("profile_user menu")},className:"text-sm tracking-tight text-slate-500",children:"Profile"})}),(0,t.jsx)(c.DropdownMenuItem,{asChild:!0,children:(0,t.jsx)(a.default,{href:`/earn/t/${x?.username}/edit`,onClick:()=>{i.default.capture("edit profile_user menu")},className:"text-sm tracking-tight text-slate-500",children:"Edit Profile"})})]}),!!x?.currentSponsorId&&(0,t.jsx)(c.DropdownMenuItem,{asChild:!0,children:(0,t.jsx)(a.default,{href:"/earn/dashboard/listings",onClick:()=>{i.default.capture("sponsor dashboard_user menu")},className:"text-sm tracking-tight text-slate-500",children:"Dashboard"})}),(0,t.jsx)(c.DropdownMenuSeparator,{}),x?.role==="GOD"&&(0,t.jsxs)("div",{children:[(0,t.jsx)(c.DropdownMenuLabel,{className:"-mb-2 text-xs font-medium text-slate-400",children:"God Mode"}),(0,t.jsx)(c.DropdownMenuItem,{asChild:!0,children:(0,t.jsx)(a.default,{href:"/earn/new/sponsor",className:"text-sm tracking-tight text-slate-500",children:"Create New Sponsor"})}),(0,t.jsx)(c.DropdownMenuSeparator,{})]}),(x?.isTalentFilled||!!x?.currentSponsorId)&&(0,t.jsx)(c.DropdownMenuItem,{onClick:()=>{j(),i.default.capture("email preferences_user menu")},className:"text-sm tracking-tight text-slate-500",children:"Email Preferences"}),x?.isTalentFilled&&(0,t.jsx)(c.DropdownMenuItem,{asChild:!0,children:(0,t.jsx)(a.default,{href:"/earn/bookmarks",onClick:()=>{i.default.capture("bookmarks_user menu")},className:"text-sm tracking-tight text-slate-500",children:"Bookmarks"})}),(0,t.jsx)(c.DropdownMenuItem,{asChild:!0,children:(0,t.jsx)(a.default,{href:(0,d.generateTelegramBotUrl)(x?.email),target:"_blank",onClick:()=>{localStorage.setItem("telegram-alerts-shown","true"),i.default.capture("telegram notifications_user menu")},className:"text-sm tracking-tight text-slate-500",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{children:"Telegram Alerts"}),!v()&&(0,t.jsx)("div",{className:"block h-1.5 w-1.5 rounded-full bg-sky-400"})]})})}),(0,t.jsx)(n.SupportFormDialog,{children:(0,t.jsx)(c.DropdownMenuItem,{className:"text-sm tracking-tight text-slate-500",onSelect:e=>{e.preventDefault(),i.default.capture("get help_user menu")},children:"Get Help"})}),(0,t.jsx)(c.DropdownMenuItem,{onClick:()=>{i.default.capture("logout_user menu"),f()},className:"text-sm tracking-tight text-red-500",children:"Logout"})]})]})]})}])},94623,200967,e=>{"use strict";var t=e.i(60597);e.s(["default",0,e=>(0,t.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"36",d:"M221.09 64a157.09 157.09 0 1 0 157.09 157.09A157.1 157.1 0 0 0 221.09 64z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"36",d:"M338.29 338.29 448 448"},child:[]}]})(e)],94623),e.s(["default",0,e=>(0,t.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"416",height:"288",x:"48",y:"144",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"48",ry:"48"},child:[]},{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M411.36 144v-30A50 50 0 0 0 352 64.9L88.64 109.85A50 50 0 0 0 48 159v49"},child:[]},{tag:"path",attr:{d:"M368 320a32 32 0 1 1 32-32 32 32 0 0 1-32 32z"},child:[]}]})(e)],200967)},917892,e=>{"use strict";var t=e.i(115497),s=e.i(130509),a=e.i(498493),r=e.i(997810),i=e.i(538237),l=e.i(674835),n=e.i(6
150394),o=e.i(94623),c=e.i(200967),d=e.i(939310),u=e.i(584294),m=e.i(905300),h=e.i(102150),p=e.i(646190),x=e.i(753860),g=e.i(100335),f=e.i(550595),C=e.i(717844),b=e.i(872160),j=e.i(255041),v=e.i(440559),w=e.i(920313),N=e.i(868104),k=e.i(996510),y=e.i(271527),S=e.i(831395),M=e.i(679533);let T=({children:e})=>{let{onCopy:s}=(0,M.useClipboard)('<svg width="81" height="21" viewBox="0 0 81 21" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(#clip0_2580_746)"> <path d="M10.5 21C16.299 21 21 16.299 21 10.5C21 4.70101 16.299 0 10.5 0C4.70101 0 0 4.70101 0 10.5C0 16.299 4.70101 21 10.5 21Z" fill="#6366F1"/> <path d="M13.7492 7.5107H16.125V8.42172C16.125 9.6573 15.1193 10.656 13.8751 10.656H13.7492V7.5107ZM10.3681 6.1875H13.7492V14.7875H13.3469C10.896 14.7875 10.4057 13.0901 10.4057 11.5796L10.3681 6.1875ZM4.875 8.13481C4.875 9.66995 5.98101 10.2318 7.21286 10.419H4.875V14.8125H7.12494C9.38761 14.8125 9.65138 13.8139 9.65138 12.8652C9.65138 11.7043 8.84703 10.8932 7.60245 10.581H9.65138V6.1875H7.40144C5.13908 6.1875 4.875 7.18614 4.875 8.13481Z" fill="white"/> <path d="M34.6023 17.0917C33.2114 17.0917 31.9983 16.8087 30.9632 16.2426C29.9281 15.6765 29.1194 14.9002 28.5372 13.9136C27.9549 12.927 27.6638 11.7949 27.6638 10.5172C27.6638 9.53059 27.8256 8.62488 28.149 7.80002C28.4725 6.97517 28.9254 6.26354 29.5076 5.66511C30.0899 5.05052 30.7772 4.58148 31.5697 4.25801C32.3784 3.91837 33.2518 3.74854 34.1899 3.74854C35.0632 3.74854 35.8719 3.91028 36.6159 4.23375C37.3599 4.54105 37.9987 4.98582 38.5325 5.56807C39.0824 6.13415 39.5029 6.80535 39.794 7.58168C40.0851 8.35802 40.2145 9.20713 40.1822 10.129L40.1579 11.1964H29.8473L29.2893 9.08582H37.3195L36.9313 9.5225V8.98878C36.8989 8.55209 36.7534 8.15584 36.4946 7.80002C36.252 7.4442 35.9366 7.16926 35.5484 6.97517C35.1603 6.78109 34.7236 6.68405 34.2384 6.68405C33.5267 6.68405 32.9202 6.82153 32.4189 7.09648C31.9336 7.37143 31.5617 7.77577 31.3029 8.30949C31.0441 8.84321 30.9147 9.49016 30.9147 10.2503C30.9147 11.0266 31.0764 11.6978 31.3999 12.2639C31.7396 12.83 32.2086 13.2747 32.807 13.5982C33.4216 13.9055 34.1413 14.0592 34.9662 14.0592C35.5323 14.0592 36.0498 13.9702 36.5189 13.7923C36.9879 13.6144 37.4893 13.3071 38.023 12.8704L39.6727 15.1751C39.2037 15.5957 38.6861 15.9515 38.12 16.2426C37.554 16.5176 36.9717 16.7278 36.3733 16.8734C35.7749 17.0189 35.1845 17.0917 34.6023 17.0917Z" fill="#334155"/> <path d="M47.5316 17.0917C46.4641 17.0917 45.5018 16.8006 44.6446 16.2183C43.7874 15.6361 43.1081 14.8436 42.6067 13.8408C42.1053 12.8381 41.8546 11.6897 41.8546 10.3958C41.8546 9.10199 42.1053 7.96176 42.6067 6.97517C43.1243 5.97241 43.8197 5.18799 44.6931 4.62192C45.5665 4.03967 46.5611 3.74854 47.6771 3.74854C48.3079 3.74854 48.8821 3.84558 49.3996 4.03967C49.9333 4.21758 50.3943 4.46827 50.7825 4.79174C51.1868 5.11521 51.5264 5.4872 51.8014 5.90772C52.0763 6.32823 52.2704 6.78109 52.3836 7.2663L51.6558 7.145V4.01541H55.0765V16.8491H51.6073V13.768L52.3836 13.6953C52.2542 14.1481 52.044 14.5767 51.7529 14.9811C51.4617 15.3854 51.0978 15.7493 50.6611 16.0728C50.2406 16.3801 49.7635 16.6308 49.2298 16.8249C48.6961 17.0028 48.13 17.0917 47.5316 17.0917ZM48.4777 14.1077C49.1247 14.1077 49.6907 13.954 50.1759 13.6467C50.6611 13.3394 51.0331 12.9108 51.2919 12.3609C51.5669 11.7949 51.7043 11.1398 51.7043 10.3958C51.7043 9.66807 51.5669 9.02921 51.2919 8.47931C51.0331 7.92941 50.6611 7.50082 50.1759 7.19352C49.6907 6.87005 49.1247 6.70831 48.4777 6.70831C47.8469 6.70831 47.289 6.87005 46.8037 7.19352C46.3347 7.50082 45.9627 7.92941 45.6878 8.47931C45.4128 9.02921 45.2753 9.66807 45.2753 10.3958C45.2753 11.1398 45.4128 11.7949 45.6878 12.3609C45.9627 12.9108 46.3347 13.3394 46.8037 13.6467C47.289 13.954 47.8469 14.1077 48.4777 14.1077Z" fill="#334155"/> <path d="M58.5304 16.8491V4.01541H61.8541L61.9754 8.13966L61.3932 7.29056C61.5872 6.62744 61.9026 6.02902 62.3393 5.49529C62.776 4.94539 63.2855 4.51679 63.8677 4.20949C64.4661 3.90219 65.0888 3.74854 65.7358 3.74854C66.0107 3.74854 66.2776 3.7728 66.5364 3.82132C66.7951 3.86984 67.0135 3.92645 67.1914 3.99115L66.2695 7.77577C66.0754 7.67873 65.8409 7.59786 65.5659 7.53316C65.291 7.4523 65.0079 7.41186 64.7168 7.41186C64.3287 7.41186 63.9647 7.48464 63.6251 7.6302C63.3016 7.75959 63.0186 7.95368 62.776 8.21245C62.5334 8.45506 62.3393 8.74
1617 62.1937 9.08582C62.0644 9.42546 61.9997 9.79746 61.9997 10.2018V16.8491H58.5304Z" fill="#334155"/> <path d="M69.168 16.8491V4.01541H72.4674L72.5645 6.63553L71.8852 6.92665C72.0631 6.3444 72.3785 5.81876 72.8314 5.34973C73.3004 4.86452 73.8584 4.47635 74.5053 4.18523C75.1523 3.89411 75.8316 3.74854 76.5432 3.74854C77.5136 3.74854 78.3223 3.94263 78.9692 4.33079C79.6323 4.71896 80.1256 5.30929 80.4491 6.1018C80.7888 6.87813 80.9586 7.84045 80.9586 8.98878V16.8491H77.5136V9.25564C77.5136 8.67339 77.4327 8.18818 77.271 7.80002C77.1093 7.41185 76.8586 7.12882 76.5189 6.95091C76.1955 6.75683 75.7911 6.67596 75.3059 6.70831C74.9177 6.70831 74.5538 6.773 74.2142 6.90239C73.8907 7.01561 73.6077 7.18543 73.3651 7.41186C73.1387 7.63829 72.9527 7.89706 72.8071 8.18818C72.6777 8.47931 72.613 8.7947 72.613 9.13435V16.8491H70.9148C70.5428 16.8491 70.2112 16.8491 69.9201 16.8491C69.629 16.8491 69.3783 16.8491 69.168 16.8491Z" fill="#334155"/> <path fillRule="evenodd" clipRule="evenodd" d="M33.5475 5.50793L34.6766 0.617188L37.5998 1.29203L36.4707 6.18277L33.5475 5.50793Z" fill="#334155"/> <path fillRule="evenodd" clipRule="evenodd" d="M29.7 19.7079L31.0173 14.002L33.9405 14.6768L32.6232 20.3827L29.7 19.7079Z" fill="#334155"/> </g> <defs> <clipPath id="clip0_2580_746"> <rect width="81" height="21" fill="white"/> </clipPath> </defs> </svg>'),[a,r]=(0,n.useState)(!1),l=(0,i.useRouter)();return(0,t.jsx)("div",{className:"hidden md:block",children:(0,t.jsxs)(S.DropdownMenu,{open:a,onOpenChange:e=>{e||r(!1)},children:[(0,t.jsx)(S.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)("div",{className:"cursor-pointer",onMouseDown:e=>{0===e.button&&l.push("/earn"),0===e.button&&a&&r(!1)},onContextMenu:e=>{e.preventDefault(),r(!0)},children:e})}),(0,t.jsxs)(S.DropdownMenuContent,{align:"start",children:[(0,t.jsxs)(S.DropdownMenuItem,{onClick:()=>{s(),y.toast.success("Logo copied")},children:[(0,t.jsx)(N.Copy,{className:"mr-2 h-4 w-4"}),"Copy logo as SVG"]}),(0,t.jsxs)(S.DropdownMenuItem,{onClick:()=>{window.open("/earn-brand-assets.zip","_blank")},children:[(0,t.jsx)(k.Download,{className:"mr-2 h-4 w-4"}),"Download all assets"]})]})]})})},I=({href:e,label:s,isActive:a,className:i,isPro:l=!1,...n})=>(0,t.jsx)(r.default,{href:e,className:(0,f.cn)("flex items-center py-2 font-medium","h-14","text-sm",a?"text-slate-600":"text-slate-500","hover:text-slate-600 hover:no-underline","relative border-b",a?l?"border-zinc-600":"border-brand-purple":"border-transparent",i),...n,children:s});var D=e.i(540955);e.s(["DesktopNavbar",0,({onLoginOpen:e,onSearchOpen:N,onWalletOpen:k,onCreditOpen:y,onReferralOpen:S,walletBalance:M})=>{let{authenticated:L,ready:E}=(0,s.usePrivy)(),P=(0,i.useRouter)(),{user:_,isLoading:F}=(0,g.useUser)(),{creditBalance:A}=(0,x.useCreditBalance)(),[R,z]=(0,n.useState)(()=>E);(0,n.useEffect)(()=>{E?z(!0):z(!1)},[E,L]);let B=(0,n.useMemo)(()=>P.pathname.startsWith("/earn/dashboard"),[P.pathname]),O=(0,n.useMemo)(()=>P.pathname.startsWith("/earn/new/talent"),[P.pathname]),V=(0,n.useMemo)(()=>{if(!O)return!1;try{let e=new URL(window.location.origin+P.asPath);return"true"===e.searchParams.get("referral")}catch{return P.asPath.includes("referral=true")}},[O,P.asPath]),H=(0,n.useMemo)(()=>B?"max-w-full":O?"2xl:max-w-[82rem]":"max-w-7xl",[B,O]),U=(0,n.useMemo)(()=>B?"pr-8 pl-6":O?"pr-8 pl-24 2xl:pl-0":"px-2 lg:px-6",[B,O]),W=(0,n.useMemo)(()=>O?"mx-0 2xl:mx-auto":"mx-auto",[O]),G=_?.isPro;return(0,t.jsx)("div",{className:(0,f.cn)("hidden h-14 border-b border-slate-200 bg-white text-slate-500 lg:flex",U),children:(0,t.jsxs)("div",{className:(0,f.cn)("mx-auto flex w-full max-w-7xl justify-between",H,W),children:[(0,t.jsxs)("div",{className:"ph-no-capture flex w-fit items-center gap-3 lg:gap-5",children:[(0,t.jsx)(T,{children:(0,t.jsxs)(r.default,{href:"/earn",className:"flex items-center gap-3 hover:no-underline",onClick:()=>{l.default.capture("homepage logo click_universal")},children:[(0,t.jsx)(m.LocalImage,{className:"h-[1.4rem] cursor-pointer object-contain",alt:"Superteam Earn",src:"/assets/logo.svg"}),B&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h-6 w-[1.5px] bg-slate-300"}),(0,t.jsx)("p",{className:"text-sm tracking-[1.5px]",children:"SPONSORS"})]})]})}),(0,t.jsx)(h.Separator,{orientation:"vertical",className:"h-6"}),!P.pathname.startsWith("/earn/new/")&&(0,t.jsxs)(t.Fragment,{children:[w.L
1ISTING_NAV_ITEMS?.map(e=>{let s=`${e.href}`===P.asPath;return(0,t.jsx)(I,{isPro:G,className:"ph-no-capture",onClick:()=>{l.default.capture(e.posthog)},href:e.href??"#",label:e.label,isActive:s},e.label)}),(0,t.jsx)(I,{isPro:G,className:"ph-no-capture",onClick:()=>{l.default.capture("pro_navbar")},href:"/earn/pro",label:(0,t.jsx)(v.ProBadge,{containerClassName:"gap-1 mt-px",iconClassName:"size-4 text-zinc-600",textClassName:"text-xs font-medium text-slate-600"}),isActive:"/earn/pro"===P.pathname}),j.HACKATHONS.map(e=>(0,t.jsx)(r.default,{href:`/earn/hackathon/${e.slug}`,className:(0,f.cn)("flex items-center py-2 font-medium","h-7"),prefetch:!1,children:(0,t.jsx)(u.ExternalImage,{src:e.logo,alt:e.label,className:"h-full object-contain"})},e.slug)),(0,t.jsx)(r.default,{href:w.BREAKPOINT_NAV_ITEM.href,className:(0,f.cn)("flex items-center py-2 font-medium","h-9"),onClick:()=>{l.default.capture(w.BREAKPOINT_NAV_ITEM.posthog)},"aria-label":w.BREAKPOINT_NAV_ITEM.label,title:w.BREAKPOINT_NAV_ITEM.label,prefetch:!1,children:(0,t.jsx)(m.LocalImage,{src:w.BREAKPOINT_NAV_ITEM.icon,alt:w.BREAKPOINT_NAV_ITEM.label,className:"h-full max-w-40 object-contain"})})]}),!P.pathname.startsWith("/earn/search")&&!P.pathname.startsWith("/earn/new/")&&(0,t.jsx)("div",{className:"flex cursor-pointer items-center gap-1.5 rounded-md border border-slate-300 px-2 py-2 text-slate-500 transition-all duration-100 hover:bg-slate-100 hover:text-slate-700",onClick:N,children:(0,t.jsx)(o.default,{className:"size-4"})})]}),(0,t.jsxs)("div",{className:"flex items-center gap-4 py-1.5",children:[(!R&&!L||F&&!_)&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(p.Skeleton,{className:"size-7 rounded-full"}),(0,t.jsx)(p.Skeleton,{className:"mr-4 h-3 w-20"})]}),R&&L&&(0,t.jsxs)("div",{className:"ph-no-capture flex items-center gap-2",children:[_?.currentSponsorId&&!B&&(0,t.jsx)(d.Button,{variant:"ghost",size:"sm",className:"text-xs font-semibold",onClick:()=>{l.default.capture("sponsor dashboard_navbar")},asChild:!0,children:(0,t.jsxs)(r.default,{href:"/earn/dashboard/listings",children:[(0,t.jsx)("span",{children:"Dashboard"}),(0,t.jsx)("div",{className:"block h-1.5 w-1.5 rounded-full bg-sky-400"})]})}),!_?.currentSponsorId&&_?.isTalentFilled&&(0,t.jsxs)(d.Button,{variant:"ghost",size:"sm",className:(0,f.cn)("text-brand-purple hover:text-brand-purple bg-indigo-50 text-xs font-semibold hover:bg-indigo-100",G&&"bg-zinc-200 text-zinc-700 hover:bg-zinc-300 hover:text-zinc-700"),onClick:S,children:[(0,t.jsx)(a.Gift,{}),(0,t.jsx)("span",{children:"Get Free Credits"})]}),_?.isTalentFilled&&(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsxs)("div",{className:"flex cursor-pointer items-center gap-1.5 rounded-md px-2 py-2 text-slate-500 transition-all duration-100 hover:bg-slate-100 hover:text-slate-700",onClick:()=>{l.default.capture("open_credits"),y()},children:[(0,t.jsx)(b.CreditIcon,{className:(0,f.cn)("size-4",G?"text-zinc-600":"text-brand-purple")}),(0,t.jsx)("p",{className:(0,f.cn)("text-sm font-semibold",G?"text-zinc-600":"text-slate-500"),children:A})]}),(0,t.jsx)("div",{className:"relative",children:(0,t.jsxs)("div",{className:"flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-slate-500 transition-all duration-100 hover:bg-slate-100 hover:text-slate-700",onClick:k,children:[(0,t.jsx)(c.default,{className:(0,f.cn)("size-6",G?"text-zinc-600":"text-brand-purple")}),(0,t.jsxs)("span",{className:(0,f.cn)("absolute top-px -right-1.5 block rounded-md px-1 py-px text-[10px] font-semibold tracking-tight text-white",G?"bg-zinc-700":"bg-brand-purple/95"),children:["$",(0,C.formatNumberWithSuffix)(M||0,1,!1)]})]})})]}),(0,t.jsx)(D.UserMenu,{})]}),R&&!L&&(0,t.jsxs)("div",{className:"ph-no-capture flex items-center gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-0",children:[!V&&(0,t.jsxs)(d.Button,{variant:"ghost",size:"sm",className:"text-xs font-semibold",onClick:()=>{l.default.capture("create a listing_navbar"),P.push("/earn/sponsor")},children:[(0,t.jsx)("span",{children:"Become a Sponsor"}),(0,t.jsx)("div",{className:"block h-1.5 w-1.5 rounded-full bg-sky-4
100"})]}),(0,t.jsx)(d.Button,{variant:"ghost",size:"sm",className:"text-xs font-semibold",onClick:()=>{l.default.capture("login_navbar"),e()},children:"Login"})]}),(0,t.jsx)(d.Button,{variant:"default",size:"sm",className:"my-1 w-full px-4 text-xs font-semibold",onClick:()=>{l.default.capture("signup_navbar"),e()},children:"Sign Up"})]})]})]})})}],917892)},710202,e=>{e.n(e.i(917892))}]);
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.