PageSourceSearch

https://offergenie.ai/app/_next/static/chunks/9252-294c275b32ecf29a.js

js offergenie.ai collected 2026-10-05 12:22:34 UTC 32,625 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9252],{69252:function(e,t,s){s.d(t,{A:function(){return eg}});var a,l,r,n=s(85893),i=s(67294),o=s(55264),c=s(3011),d=s(70775),u=s(58916),m=s(12779),h=s(84869),x=s(33058),p=s(78497),f=s(45308),g=s(66054),b=s(27245),v=s(77918),w=s(47055),j=s(36514),y=s(13526),N=s(27068),k=s(36051),S=s(99059);let C=()=>{let[e,t]=(0,i.useState)([]),[s,a]=(0,i.useState)("desktop"),l=async()=>{try{let s=await fetch((0,k.w)("/api/notifications"));if(s.ok){var e;let a=await s.json();t((e=null==a?void 0:a.notifications,Array.isArray(e)?e.slice(0,10).flatMap(e=>{if(!e||"object"!=typeof e||Array.isArray(e)||"string"!=typeof e.id||e.id.length<1||e.id.length>128||"string"!=typeof e.type||e.type.length>32||"string"!=typeof e.status||e.status.length>32||"string"!=typeof e.message||e.message.length<1||e.message.length>200||/[\u0000-\u001f\u007f-\u009f\u202a-\u202e\u2066-\u2069]/.test(e.message)||"string"!=typeof e.createdAt||!Number.isFinite(Date.parse(e.createdAt))||null!==e.href&&"string"!=typeof e.href)return[];let t=e.message.normalize("NFKC").trim();return t?[{id:e.id,type:e.type,status:e.status,message:t,href:(0,S.LW)(e.href),createdAt:e.createdAt}]:[]}):[]))}else N.k.error("Failed to fetch notifications")}catch(e){N.k.error("Error fetching notifications:",e)}};return(0,i.useEffect)(()=>
1{l();let e=()=>{let e=window.innerWidth;e<=640?a("mobile"):e<=1024?a("tablet"):a("desktop")};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]),(0,n.jsxs)(y.J2,{children:[(0,n.jsx)(y.xo,{asChild:!0,children:(0,n.jsxs)(b.z,{variant:"ghost",size:"icon",className:"h-8 w-8 p-0",children:[(0,n.jsx)(v.Z,{className:"h-5 w-5"}),(0,n.jsx)("span",{className:"sr-only",children:"Toggle notifications"})]})}),(0,n.jsx)(y.yk,{className:"w-80",align:"mobile"===s?"end":"start",alignOffset:"mobile"===s?-40:10,side:"mobile"===s?"top":"right",sideOffset:"mobile"===s?10:15,onOpenAutoFocus:l,children:(0,n.jsxs)("div",{className:"grid gap-4 max-h-[50vh] sticky overflow-y-auto overscroll-contain",style:{overflowY:"auto",WebkitOverflowScrolling:"touch",touchAction:"pan-y",msOverflowStyle:"none"},children:[(0,n.jsx)("h4",{className:"font-medium leading-none",children:"Notifications"}),0===e.length&&(0,n.jsx)("p",{className:"py-2 text-sm text-gray-500",children:"No notifications yet. Updates that need your attention will appear here."}),(0,n.jsx)("div",{className:"flex flex-col gap-2",children:e.map((e,t)=>{let s=e.href,a=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"rounded-full p-1 bg-[#F2F3F5]  flex-shrink-0",children:"SYSTEM"!==e.type?(0,n.jsx)(w.Z,{absoluteStrokeWidth:!0,className:"h-4 w-4"}):(0,n.jsx)(j.Z,{absoluteStrokeWidth:!0,className:"h-4 w-4"})}),(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsx)("p",{className:"text-sm break-words",children:e.message}),(0,n.jsx)("p",{className:"text-xs text-gray-500",children:new Date(e.createdAt).toLocaleString()})]})]});return s?(0,n.jsx)("a",{href:(0,k.w)(s),className:"flex items-start gap-2 rounded-md p-1 transition-colors hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-indigo-500",children:a},e.id||t):(0,n.jsx)("div",{className:"flex items-start gap-2 p-1",children:a},e.id||t)})})]})})]})};var E=s(33299),F=s(65606),z=s(69829),I=s(10952),D=s(98997);let P=i.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,n.jsx)(I.fC,{ref:t,className:(0,D.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",s),...a})});P.displayName=I.fC.displayName;let Z=i.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,n.jsx)(I.Ee,{ref:t,className:(0,D.cn)("aspect-square h-full w-full",s),...a})});Z.displayName=I.Ee.displayName;let _=i.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,n.jsx)(I.NY,{ref:t,className:(0,D.cn)("flex h-full w-full items-center justify-center rounded-full bg-muted",s),...a})});_.displayName=I.NY.displayName;var A=s(68631),T=s(35810),O=s(76453),R=s(53645),L=s(17511),W=s(44072),U=s(70385);function B(e){let{open:t,onClose:s,onSubmit:a}=e,[l,r]=(0,i.useState)(0),[o,c]=(0,i.useState)(null),[d,u]=(0,i.useState)(""),[m,h]=(0,i.useState)(!1),[x,p]=(0,i.useState)(null),{toast:f}=(0,L.pm)();(0,i.useEffect)(()=>{t||(r(0),u(""),p(null))},[t]);let g=async()=>{if(d.length<10&&d.length>0){p("Feedback must be at least 10 characters.");return}if(d.length>5e3){p("Feedback cannot exceed 5000 characters.");return}if(p(null),l){h(!0);try{if(!(await fetch((0,k.w)("/api/feedback"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({score:l,text:d,feedbackType:U.FeedbackType.GENERAL})})).ok)throw Error("Failed to submit feedback");a({score:l,text:d}),f({title:"Feedback Submitted",description:"Thank you for your feedback!"}),s()}catch(e){N.k.error("Error submitting feedback:",e),f({title:"Error",description:"Failed to submit feedback. Please try again.",variant:"destructive"})}finally{h(!1)}}},v=0!==l;return(0,n.jsx)(T.Vq,{open:t,onOpenChange:s,children:(0,n.jsxs)(T.cZ,{className:"sm:max-w-[600px] rounded-lg mx-4",children:[(0,n.jsxs)(T.fK,{children:[(0,n.jsx)(T.$N,{children:"Provide Feedback"}),(0,n.jsx)(T.Be,{children:"How was your experience? Let us know your thoughts."})]}),(0,n.jsxs)("div",{className:"grid gap-6 py-4",children:[(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsxs)("label",{className:"text-gray-700 flex items-center font-bold",children:["Select your score",v&&(0,n.jsx)(R.Z,{className:"h-4 w-4 ml-2 text-green-500"})]}),(0,n.jsx)("div",{className:"flex items-center relative",children:(0,n.jsx)(W.Z,{value:l,hoverValue:o,onHover:c,onSelect:r})})]}),(0,n.jsxs)("div",{className:"grid gap-2",children:[(0,n.jsx)("label",{htmlFor:"feedback",className:"font-bold text-gray-700 flex items-center",children:"Tell us about your experience (optional)"}),(0,n.jsx)(O.g,{id:"feedback",placeholder:"Please share your thoughts... (minimum 10 characters, maximum 5000 characters)",value:d,onChange:e=>{let t=e.target.value;u(t),t.length>=10&&t.length<=5e3&&p(null)},className:"min-h-[150px]",minLength:10,maxLength:5e3})]})]}),(0,n.jsx)(T.cN,{children:(0,n.jsx)(b.z,{variant:"theme",onClick:g,disabled:!v||m,children:m?"Submitting...":"Submit Feedback"})}),!v&&(0,n.jsx)("p",{className:"text-sm text-red-500 mt-2",children:!v&&"Please select a score."}),x&&(0,n.jsx)("p",{className:"text-sm text-red-500 mt-2",children:x})]})})}var Y=s(41664),V=s.n(Y),M=s(2156),K=s(11163),H=s(74058),J=s(23603),G=s(2553),q=s(27218),$=s(54175),Q=s(36454),X=s(55412),ee=s(35225);let et=[{name:"Job Apply",Icon:J.Z,href:"/job-apply"},{name:"Resume",Icon:G.Z,href:"/resume"},{name:"Interview",Icon:q.Z,href:"/live-interview",match:["/mock-interview","/jobs","/reports","/cheatsheets","/report/[id]","/interview/[id]","/interview-prep/[id]","/interview-completion/[id]"]},{name:"Question Bank",Icon:$.Z,href:"".concat("https://offergenie.ai","/interview-questions"),target:"_blank",external:!0},{name:"Tools",Icon:Q.Z,href:"/tools",match:["/interview-question-predictor"],separated:!0}];
1function es(e){let{collapsed:t=!1,onNavigate:s,className:a}=e,l=(0,K.useRouter)(),r=i.useCallback(e=>{var t;return!e.external&&(l.pathname===e.href||!!(null===(t=e.match)||void 0===t?void 0:t.includes(l.pathname)))},[l.pathname]),o=e=>{let{name:a,Icon:l,href:o,target:c,external:d}=e,u=r(e),m=(0,n.jsxs)(V(),{href:o,target:c,rel:d?"noopener noreferrer":void 0,onClick:s,"aria-label":t?a:void 0,"aria-current":u?"page":void 0,className:(0,D.cn)("group relative flex items-center rounded-lg transition-colors duration-150 outline-none focus-visible:ring-2 focus-visible:ring-indigo-500/40",t?"mx-auto h-10 w-10 justify-center":"h-9 gap-3 px-3","text-sm font-medium",u?"bg-indigo-50 text-indigo-700":"text-slate-600 hover:bg-slate-100 hover:text-slate-900"),children:[(0,n.jsx)(l,{strokeWidth:1.75,className:(0,D.cn)("h-[18px] w-[18px] shrink-0",u?"text-indigo-600":"text-slate-400 group-hover:text-slate-500")}),!t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"flex-1 truncate",children:a}),d&&(0,n.jsx)(X.Z,{className:"h-3.5 w-3.5 shrink-0 text-slate-300 opacity-0 transition-opacity group-hover:opacity-100"})]})]});return t?(0,n.jsxs)(ee.u,{delayDuration:0,children:[(0,n.jsx)(ee.aJ,{asChild:!0,children:m}),(0,n.jsx)(ee._v,{side:"right",sideOffset:10,children:a})]},a):(0,n.jsx)(i.Fragment,{children:m},a)};return(0,n.jsx)(ee.pn,{delayDuration:0,children:(0,n.jsx)("nav",{"aria-label":"Main",className:(0,D.cn)("space-y-1",a),style:{scrollbarWidth:"thin",scrollbarColor:"#D1D5DB transparent"},children:et.map(e=>(0,n.jsxs)(i.Fragment,{children:[e.separated&&(0,n.jsx)("div",{className:(0,D.cn)("my-2 h-px bg-slate-200/80",t?"mx-3":"mx-1")}),o(e)]},e.name))})})}function ea(){return(ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)({}).hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e}).apply(null,arguments)}var el=function(e){return i.createElement("svg",ea({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),a||(a=i.createElement("circle",{cx:12,cy:12,r:12,fill:"#fff",fillOpacity:.08})),l||(l=i.createElement("g",{clipPath:"url(#pricing_svg__a)"},i.createElement("path",{fill:"#FFE100",d:"M6.916 11.825c-.258-.716-.388-1.074-.333-1.303a.69.69 0 0 1 .467-.512c.209-.06.533.085 1.182.373.574.255.86.383 1.13.375.297-.007.583-.126.81-.337.206-.191.345-.496.621-1.106l.61-1.343c.51-1.123.764-1.684 1.168-1.684s.658.561 1.167 1.684l.61 1.343c.277.61.415.915.622 1.106.227.21.512.33.81.337.269.008.556-.12 1.13-.375.648-.288.973-.433 1.181-.373.229.065.407.26.467.512.055.23-.074.587-.333 1.303l-1.112 3.078c-.475 1.316-.713 1.975-1.211 2.347s-1.14.371-2.427.371h-1.808c-1.287 0-1.93 0-2.427-.371-.498-.372-.736-1.03-1.212-2.347z"}),i.createElement("path",{stroke:"#FFE100",strokeLinecap:"round",d:"M9.238 18.732h6.667"}),i.createElement("circle",{cx:12.571,cy:4.955,r:.889,fill:"#FFE100"}),i.createElement("circle",{cx:5.46,cy:9.399,r:.889,fill:"#FFE100"}),i.createElement("circle",{cx:19.682,cy:9.399,r:.889,fill:"#FFE100"}))),r||(r=i.createElement("defs",null,i.createElement("clipPath",{id:"pricing_svg__a"},i.createElement("path",{fill:"#fff",d:"M4.57 3.904h16v16h-16z"})))))},er=s(96633),en=s(62190);let ei={startDate:new Date("December 23, 2024 00:00:00 UTC"),endDate:new Date("November 30, 2025 23:59:00 UTC"),promoCode:"BLACK50",discountAmount:"50%",storageKeys:{hasSeenPopup:"hasViewedBlackPromoPopup",hideBanner:"hideBlackPromoBanner"},utmParams:{source:"website",medium:"promotion",campaign:"black_friday"},content:{banner:{title:"OfferGenie Black Friday Sale: 50% OFF",subtitle:"Valid until 23:59:59 PST, November 30, 2025."},popup:{title:'<span>OfferGenie Black Friday Sale</span><br/><span>Secret code to your new offer: <code style="font-weight: bold; color: #FCD34D; margin-left: 0.5rem;">BLACK50</code></span>',subtitle:"Valid until 23:59:59 PST, November 30, 2025.",buttonText:"GET IT NOW!"}},assets:{banner:{desktop:(0,k.w)("/images/promotions/banner3.png"),mobile:(0,k.w)("/images/promotions/mobliebanner3.png")},popup:(0,k.w)("/images/promotions/PromoPopup3.png")}},eo=(e,t)=>{try{let s=new URL(e);return s.searchParams.append("prefilled_promo_code",ei.promoCode),t&&s.searchParams.append("client_reference_id",t),s.toString()}catch(e){return N.k.error("Error constructing payment URL:",e),null}};var ec=e=>{let{isActive:t,onClose:s}=e,{user:a}=(0,M.a)();return(0,n.jsx)(n.Fragment,{children:t&&(0,n.jsxs)("div",{className:"fixed left-0 top-0 z-[10] flex h-[100px] w-full cursor-pointer flex-col items-start overflow-hidden bg-[#08081d] px-4 py-[14px] text-white lg:m-0 lg:h-[68px] lg:flex-row lg:items-center lg:justify-center lg:rou
1nded-[0px] lg:p-0",children:[(0,n.jsx)("div",{className:"absolute left-0 top-0 z-[-1] h-full w-[470px] max-w-[1440px] bg-contain bg-[0px_0px] bg-no-repeat lg:left-auto lg:top-auto lg:w-[1440px] lg:bg-cover",style:{backgroundImage:window.innerWidth>1024?"url(".concat(ei.assets.banner.desktop,")"):"url(".concat(ei.assets.banner.mobile,")")}}),(0,n.jsx)("div",{className:"flex flex-row items-start justify-center",children:(0,n.jsxs)("div",{className:"flex flex-col items-start lg:ml-0",children:[(0,n.jsx)("div",{className:"text-sm font-[800] lg:text-lg",children:ei.content.banner.title}),(0,n.jsx)("div",{className:"mt-0 text-xs lg:text-sm",children:ei.content.banner.subtitle})]})}),(0,n.jsx)("button",{onClick:()=>{let e="https://buy.stripe.com/bIY6rD8t40bifUkbII";if(!e){N.k.error("Stripe payment link is not defined");return}let t=eo(e,null==a?void 0:a.id);t&&window.open(t,"_blank")},className:"ml-0 mt-[10px] flex h-[36px] w-[66px] items-center justify-center rounded-[40px] bg-[#FFED4A] text-xs font-[800] text-black shadow-md lg:ml-8 lg:mt-0 lg:h-[32px] lg:w-[103px] lg:text-sm",children:ei.promoCode}),(0,n.jsx)("div",{className:"absolute right-[8px] top-[8px] lg:right-[24px] lg:top-[22px]",children:(0,n.jsx)(en.Z,{className:"h-[24px] w-[24px] cursor-pointer",onClick:s})})]})})},ed=s(25675),eu=s.n(ed),em=()=>{let{user:e}=(0,M.a)(),[t,s]=(0,i.useState)(!0),{currentStep:a,isSignUpState:l}=(0,er.O)(),{data:r}=(0,E.useSession)();(0,i.useEffect)(()=>{if(null==e?void 0:e.id){var t;l||null!=r&&null!==(t=r.user)&&void 0!==t&&t.isFirstLogin||s("true"===localStorage.getItem(ei.storageKeys.hasSeenPopup))}},[null==e?void 0:e.id]),(0,i.useEffect)(()=>{"complete"===a&&l&&s("true"===localStorage.getItem(ei.storageKeys.hasSeenPopup))},[a]);let o=()=>{s(!0),localStorage.setItem(ei.storageKeys.hasSeenPopup,"true")},c=(0,i.useCallback)(()=>{let e=new Date().getTime();return ei.startDate.getTime()<e&&e<ei.endDate.getTime()&&!t},[t]);return(0,n.jsx)(n.Fragment,{children:c()&&(0,n.jsx)("div",{className:"fixed inset-0 z-50 overflow-auto bg-black bg-opacity-50 flex items-center justify-center",onClick:o,children:(0,n.jsxs)("div",{className:"relative rounded-xl max-w-md w-full mx-auto text-center bg-[#27433e] border-2 border-white",children:[(0,n.jsx)("div",{className:"absolute top-0 right-0 m-4 z-10",children:(0,n.jsx)(en.Z,{className:"w-6 h-6 text-white  cursor-pointer",onClick:o})}),(0,n.jsx)("div",{className:"relative rounded-xl",children:(0,n.jsx)(eu(),{src:ei.assets.popup,alt:"Black Friday",width:400,height:200,objectFit:"cover",className:"w-full h-auto rounded-xl"})}),(0,n.jsxs)("div",{className:"absolute bottom-8 left-0 right-0",children:[(0,n.jsxs)("div",{className:"text-white px-8",children:[(0,n.jsx)("p",{className:"text-lg",dangerouslySetInnerHTML:{__html:ei.content.popup.title}}),(0,n.jsx)("div",{className:"flex items-center justify-center mt-2",children:(0,n.jsx)("p",{className:"opacity-80",children:ei.content.popup.subtitle})})]}),(0,n.jsx)(b.z,{className:"bg-gradient-to-r from-yellow-400 to-yellow-500 hover:from-yellow-500 hover:to-yellow-600  mt-4 text-black font-semibold px-8",onClick:()=>{let t="https://buy.stripe.com/bIY6rD8t40bifUkbII";if(!t){N.k.error("Stripe payment link is not defined");return}let s=eo(t,null==e?void 0:e.id);s&&(o(),window.open(s,"_blank"))},children:ei.content.popup.buttonText})]})]})})})},eh=s(93295);let ex="og.sidebar.collapsed",ep="group flex h-8 w-full items-center gap-2.5 rounded-lg px-2.5 text-[13px] font-medium text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-900",ef="h-[16px] w-[16px] shrink-0 text-slate-400 group-hover:text-slate-500",eg=e=>{var t;let{children:s}=e,{data:a,status:l}=(0,E.useSession)(),{user:r}=(0,M.a)(),v=(0,K.useRouter)(),{currentStep:w,isOnboarding:j}=(0,er.O)(),[S,I]=(0,i.useState)(!1),[T,O]=(0,i.useState)(!1),[R,L]=(0,i.useState)(!1),[W,U]=(0,i.useState)("desktop"),[Y,J]=(0,i.useState)(!1),G=(0,i.useRef)(null);(0,i.useEffect)(()=>{if("authenticated"===l&&a)return(0,eh.qH)()},[l,a]),(0,i.useEffect)(()=>{let e=()=>{let e=window.innerWidth,t=e<=640?"mobile":e<=1024?"tablet":"desktop";if(U(t),t!==G.current){if(G.current=t,"tablet"===t)I(!0);else if("desktop"===t){let e=null;try{e=window.localStorage.getItem(ex)}catch(e){}I("true"===e)}}};window.addEventListener("resize",e),e();let t=new Date().getTime();return J("true"!==localStorage.getItem(ei.storageKeys.hideBanner)&&ei.startDate.getTime()<t&&t<ei.endDate.getTime()),()=>{window.removeEventListener("resize",e)}},[]),(0,i.useEffect)(()=>
1{if(null==r?void 0:r.id){let{utm_source:e,utm_medium:t,utm_campaign:s}=v.query;if(e&&t===ei.utmParams.medium&&s===ei.utmParams.campaign){let e="https://buy.stripe.com/bIY6rD8t40bifUkbII";if(!e){N.k.error("Stripe payment link is not defined");return}let t=eo(e,r.id);t&&(localStorage.setItem(ei.storageKeys.hasSeenPopup,"true"),window.location.href=t)}}},[null==r?void 0:r.id]);let q=()=>{var e,t,s;return(null==r?void 0:r.firstName)?"".concat(r.firstName," ").concat(r.lastName||""):(null==a?void 0:null===(e=a.user)||void 0===e?void 0:e.name)?a.user.name:(null==a?void 0:null===(s=a.user)||void 0===s?void 0:null===(t=s.email)||void 0===t?void 0:t.split("@")[0])||""},$=()=>{var e,t,s,l,n,i;return((null==r?void 0:null===(e=r.firstName)||void 0===e?void 0:e[0])||(null==r?void 0:null===(t=r.lastName)||void 0===t?void 0:t[0])||(null==a?void 0:null===(l=a.user)||void 0===l?void 0:null===(s=l.name)||void 0===s?void 0:s[0])||(null==a?void 0:null===(i=a.user)||void 0===i?void 0:null===(n=i.email)||void 0===n?void 0:n[0])||"?").toUpperCase()};if("loading"===l)return(0,n.jsx)(A.h,{});if("unauthenticated"===l)return(0,n.jsx)(z.U,{});if(!a)return null;let Q="tablet"===W||"desktop"===W&&S,X=(0,n.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,n.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,n.jsx)("p",{className:"text-sm font-medium",style:{wordBreak:"break-word"},children:q()}),(0,n.jsx)("p",{className:"text-xs text-gray-500",children:null==a?void 0:null===(t=a.user)||void 0===t?void 0:t.email})]}),(0,n.jsxs)(b.z,{variant:"outline",className:"w-full justify-start",onClick:()=>v.push("/settings"),"data-onboarding":"profile-button",children:[(0,n.jsx)(o.Z,{className:"mr-2 h-4 w-4"}),"Manage Account"]}),(0,n.jsx)(y.xp,{asChild:!0,children:(0,n.jsxs)(b.z,{variant:"outline",className:"w-full justify-start",onClick:()=>{L(!1),(0,eh.Zm)()},children:[(0,n.jsx)(c.Z,{className:"mr-2 h-4 w-4"}),"Cookie preferences"]})}),(0,n.jsxs)(b.z,{variant:"outline",className:"w-full justify-start",onClick:()=>{(0,F.Is)(),(0,E.signOut)({callbackUrl:"/",redirect:!0});{let e=[];for(let t=0;t<localStorage.length;t++){let s=localStorage.key(t);s&&(s.startsWith("next-auth")||s.includes("oauth"))&&e.push(s)}e.forEach(e=>localStorage.removeItem(e)),document.cookie.split(";").forEach(e=>{let[t]=e.trim().split("=");t&&(t.includes("next-auth")||t.includes("oauth"))&&(document.cookie="".concat(t,"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"))})}},id:"nav-signout-button",children:[(0,n.jsx)(d.Z,{className:"mr-2 h-4 w-4"}),"Sign out"]})]}),ee=()=>(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsxs)(y.J2,{children:[(0,n.jsx)(y.xo,{asChild:!0,children:(0,n.jsxs)("button",{className:"flex min-w-0 flex-1 items-center gap-2.5 rounded-lg p-1.5 text-left transition-colors hover:bg-slate-100","data-onboarding":"profile-trigger",children:[(0,n.jsxs)(P,{className:"h-8 w-8 shrink-0",children:[(0,n.jsx)(Z,{src:a.user.image,alt:a.user.name}),(0,n.jsx)(_,{className:"bg-[#4F46E5] text-xs text-white",children:$()})]}),(0,n.jsx)("span",{className:"min-w-0 flex-1 truncate text-sm font-medium text-slate-700",title:q(),children:q()})]})}),(0,n.jsx)(y.yk,{className:"w-80",children:X})]}),(0,n.jsx)(C,{})]}),(0,n.jsxs)("div",{className:"rounded-xl border border-indigo-100 bg-indigo-50/60 p-2.5",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between px-0.5 text-xs",children:[(0,n.jsx)("span",{className:"text-slate-500",children:"Available Credits"}),(0,n.jsx)("span",{className:"font-semibold tabular-nums text-[#4F46E5]",children:null==r?void 0:r.credits})]}),(0,n.jsx)(V(),{href:"/pricing",className:"mt-2 block",children:(0,n.jsxs)(b.z,{className:"h-9 w-full bg-[#4F46E5] text-white shadow-sm transition-colors hover:bg-[#4338CA]",id:"nav-upgrade-button",children:[(0,n.jsx)(el,{className:"mr-2 h-[18px] w-[18px]"}),"Upgrade Now"]})})]}),(0,n.jsxs)("div",{className:"space-y-0.5",children:[(0,n.jsxs)(V(),{href:"/help-center",className:(0,D.cn)(ep,j&&"help-center"===w&&"relative z-[9999] bg-slate-100"),id:"help-center-link-expanded",children:[(0,n.jsx)(u.Z,{strokeWidth:1.75,className:ef}),"Help Center"]}),(0,n.jsxs)(V(),{href:"/download-center",className:ep,id:"download-center-link",children:[(0,n.jsx)(m.Z,{strokeWidth:1.75,className:ef}),"Download Center"]}),(0,n.jsxs)("button",{type:"button",onClick:()=>O(!0),className:ep,children:[(0,n.jsx)(h.Z,{strokeWidth:1.75,className:ef}),"Give Feedback"]})]})]});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ec,{isActive:Y,onClose:()=>{J(!1),localStorage.setItem(ei.storageKeys.hideBanner,"true")}}),(0,n.jsxs)("div",{className:"flex h-screen bg-white text-[#132440] ".concat(Y?"pt-[100px] md:pt-[68px]":""," antialiased"),children:["mobile"===W&&(0,n.jsxs)("div",{className:"fixed ".concat(Y?"top-[100px]":"top-0"," left-0 right-0 h-14 bg-white/95 backdrop-blur-sm z-10 flex items-center px-4 border-b border-slate-200"),children:[(0,n.jsxs)(H.yo,{open:R,onOpenChange:L,children:[(0,n.jsx)(H.aM,{asChild:!0,children:(0,n.jsx)(b.z,{variant:"ghost",size:"icon",className:"absolute top-2 left-4 z-10 hover:bg-slate-100 transition-colors duration-200",children:(0,n.jsx)(p.Z,{className:"h-6 w-6"})})}),(0,n.jsxs)(H.ue,{side:"left",className:"w-[272px] bg-white p-0 border-r border-slate-200",children:[(0,n.jsx)(H.Tu,{children:(0,n.jsx)(H.bC,{children:(0,n.jsx)("div",{className:"flex h-14 items-center px-4",children:(0,n.jsx)("img",{src:(0,k.w)("/images/logo.png"),alt:"offergenie Logo",className:"h-7 w-auto object-contain"})})})}),(0,n.jsxs)("div",{className:"flex h-[calc(100%-3.5rem)] flex-col",children:[(0,n.jsx)(es,{className:"flex-1 overflow-y-auto px-3 py-2",onNavigate:()=>L(!1)}),(0,n.jsx)("div",{className:"shrink-0 border-t border-slate-100 p-3 pb-16",children:ee()})]})]})]}),(0,n.jsx)("div",{className:"mx-auto h-7",children:(0,n.jsx)("img",{src:(0,k.w)("/images/logo.png"),alt:"offergenie Logo",className:"h-full w-auto object-contain"})})]}),"mobile"!==W&&(0,n.jsxs)("aside",{className:(0,D.cn)("relative z-20 flex h-full flex-col border-r border-slate-200 bg-white transition-[width] duration-300 ease-out",Q?"w-[72px]":"w-64"),children:[(0,n.jsxs)("div",{className:(0,D.cn)("flex h-16 shrink-0 items-center",Q?"justify-center px-2":"justify-between pl-5 pr-2.5"),children:[!Q&&(0,n.jsx)(V(),{href:"/live-interview",className:"shrink-0","aria-label":"OfferGenie",children:(0,n.jsx)("img",{src:(0,k.w)("/images/logo.png"),alt:"offergenie Logo",className:"h-7 w-auto object-contain"})}),"desktop"===W?(0,n.jsx)("button",{type:"button",onClick:()=>{I(e=>{let t=!e;try{window.localStorage.setItem(ex,String(t))}catch(e){}return t})},"aria-label":Q?"Expand sidebar":"Collapse sidebar",className:"flex h-8 w-8 items-center justify-center rounded-lg text-slate-400 transition-colors hover:bg-slate-100 hover:text-slate-600",children:Q?(0,n.jsx)(f.Z,{strokeWidth:1.75,className:"h-[18px] w-[18px]"}):(0,n.jsx)(g.Z,{strokeWidth:1.75,className:"h-[18px] w-[18px]"})}):(0,n.jsx)(V(),{href:"/live-interview","aria-label":"OfferGenie",children:(0,n.jsx)("img",{src:(0,k.w)("/images/logo-simple.png"),alt:"offergenie Logo",className:"h-7 w-7 object-contain"})})]}),(0,n.jsx)(es,{collapsed:Q,className:(0,D.cn)("flex-1 overflow-y-auto pb-3",Q?"px-2.5":"px-3")}),(0,n.jsx)("div",{className:(0,D.cn)("shrink-0 border-t border-slate-100",Q?"px-2 py-3":"p-3"),children:Q?(0,n.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,n.jsxs)(y.J2,{children:[(0,n.jsx)(y.xo,{asChild:!0,children:(0,n.jsx)("button",{className:"rounded-full transition-transform duration-200 hover:scale-105","data-onboarding":"profile-trigger",children:(0,n.jsxs)(P,{className:"h-8 w-8 border border-slate-200 shadow-sm",children:[(0,n.jsx)(Z,{src:a.user.image,alt:a.user.name}),(0,n.jsx)(_,{className:"bg-[#4F46E5] text-xs text-white",children:$()})]})})}),(0,n.jsx)(y.yk,{side:"right",align:"end",className:"w-80",children:X})]}),(0,n.jsx)(C,{}),(0,n.jsx)(V(),{href:"/pricing","aria-label":"Upgrade",className:"flex h-9 w-9 items-center justify-center rounded-lg bg-indigo-50 text-[#4F46E5] transition-colors hover:bg-indigo-100",children:(0,n.jsx)(x.Z,{strokeWidth:1.75,className:"h-[18px] w-[18px]"})}),(0,n.jsx)(V(),{href:"/help-center","aria-label":"Help Center",id:"help-center-link-collapsed",className:(0,D.cn)("flex h-9 w-9 items-center justify-center rounded-lg text-slate-400 transition-colors hover:bg-slate-100 hover:text-slate-600",j&&"help-center"===w&&"relative z-[9999] bg-slate-100"),children:(0,n.jsx)(u.Z,{strokeWidth:1.75,className:"h-[18px] w-[18px]"})}),(0,n.jsx)(V(),{href:"/download-center","aria-label":"Download Center",id:"download-center-link-collapsed",className:"flex h-9 w-9 items-center justify-center rounded-lg text-slate-400 transition-colors hover:bg-slate-100 hover:text-slate-600",children:(0,n.jsx)(m.Z,{strokeWidth:1.75,className:"h-[18px] w-[18px]"})}),(0,n.jsx)("button",{type:"button","aria-label":"Give Feedback",onClick:()=>O(!0),className:"flex h-9 w-9 items-center justify-center rounded-lg text-slate-400 transition-colors hover:bg-slate-100 hover:text-slate-600",children:(0,n.jsx)(h.Z,{strokeWidth:1.75,className:"h-[18px] w-[18px]"})})]}):ee()})]}),(0,n.jsx)("div",{className:"flex-1 p-8 overflow-auto ".concat("mobile"===W?"pt-16":""," bg-white"),children:s}),(0,n.jsx)(B,{open:T,onClose:()=>O(!1),onSubmit:e=>{N.k.log("Feedback submitted:",e)}})]}),(0,n.jsx)(em,{})]})}},44072:function(e,t,s){s.d(t,{Z:function(){return n}});var a=s(85893),l=s(70088),r=s(98997);function n(e){let{value:t,hoverValue:s,onHover:n,onSelect:i}=e,o=(e,t)=>{let s=e.currentTarget.getBoundingClientRect(),a=s.width;n((e.clientX-s.left)/a<=.5?t+.5:t+1)};return(0,a.jsx)("div",{className:"flex items-center",children:(0,a.jsx)("div",{className:"flex relative",children:[void 0,void 0,void 0,void 0,void 0].map((e,c)=>{let d=c+1,u=s||t||0,m=u===c+.5;return(0,a.jsxs)("div",{className:"relative cursor-pointer",onMouseMove:e=>o(e,c),onMouseLeave:()=>n(null),onClick:()=>{s&&i(s)},children:[(0,a.jsx)(l.Z,{className:"w-8 h-8 sm:w-12 sm:h-12 text-gray-200 fill-gray-200 mr-4 sm:mr-8"}),(0,a.jsx)("div",{className:(0,r.cn)("absolute top-0 left-0 overflow-hidden",m?"w-[33%] sm:!w-[30%]":"w-full"),style:{width:u>=d?"100%":m?"33%":u>c&&u<c+1?"".concat((u-c)*100,"%"):"0%"},children:(0,a.jsx)(l.Z,{className:"w-8 h-8 sm:w-12 sm:h-12 text-orange-400 fill-orange-400"})})]},c)})})})}},99059:function(e,t,s){s.d(t,{Ak:function(){return r},LW:function(){return n},fb:function(){return l}});let a=new Set(["review","needs-you","history","plan"]);function l(e){return"NEEDS_USER"===e?"needs-you":"FORM_CHECK_READY"===e||"READY_FOR_REVIEW"===e||"HANDOFF_READY"===e?"review":"history"}
1function r(e){let t="string"==typeof e.view&&a.has(e.view)?e.view:void 0,s=t&&"plan"!==t&&"string"==typeof e.applicationId&&/^[a-zA-Z0-9_-]{1,128}$/.test(e.applicationId)?e.applicationId:void 0;return{view:t,applicationId:s}}function n(e){if("string"!=typeof e||e.length>512||!e.startsWith("/job-apply?")||e.includes("#")||/[\u0000-\u001f\u007f]/.test(e))return null;try{let t="https://offergenie.invalid",s=new URL(e,t);if(s.origin!==t||"/job-apply"!==s.pathname||s.hash)return null;let a=[...s.searchParams.keys()],l=s.searchParams.get("view");if("plan"===l){if(1!==a.length||"view"!==a[0]||1!==s.searchParams.getAll("view").length)return null;return"/job-apply?view=plan"}if(2!==a.length||a.some(e=>"view"!==e&&"applicationId"!==e)||1!==s.searchParams.getAll("view").length||1!==s.searchParams.getAll("applicationId").length)return null;let r=s.searchParams.get("applicationId");if("review"!==l&&"needs-you"!==l&&"history"!==l||!r||!/^[a-zA-Z0-9_-]{1,128}$/.test(r))return null;let n=new URLSearchParams({view:l,applicationId:r});return"/job-apply?".concat(n.toString())}catch(e){return null}}},13526:function(e,t,s){s.d(t,{J2:function(){return i},xo:function(){return o},xp:function(){return c},yk:function(){return d}});var a=s(85893),l=s(67294),r=s(86419),n=s(98997);let i=r.fC,o=r.xz,c=r.x8;r.ee;let d=l.forwardRef((e,t)=>{let{className:s,align:l="center",sideOffset:i=4,...o}=e;return(0,a.jsx)(r.h_,{children:(0,a.jsx)(r.VY,{ref:t,align:l,sideOffset:i,className:(0,n.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...o})})});d.displayName=r.VY.displayName},74058:function(e,t,s){s.d(t,{Tu:function(){return p},aM:function(){return d},bC:function(){return f},ue:function(){return x},yo:function(){return c}});var a=s(85893),l=s(67294),r=s(12854),n=s(62469),i=s(12003),o=s(98997);let c=r.fC,d=r.xz;r.x8;let u=r.h_,m=l.forwardRef((e,t)=>{let{className:s,...l}=e;return(0,a.jsx)(r.aV,{className:(0,o.cn)("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...l,ref:t})});m.displayName=r.aV.displayName;let h=(0,i.j)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),x=l.forwardRef((e,t)=>{let{side:s="right",className:l,children:i,...c}=e;return(0,a.jsxs)(u,{children:[(0,a.jsx)(m,{}),(0,a.jsxs)(r.VY,{ref:t,className:(0,o.cn)(h({side:s}),l),...c,children:[(0,a.jsxs)(r.x8,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,a.jsx)(n.Pxu,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]}),i]})]})});x.displayName=r.VY.displayName;let p=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,o.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...s})};p.displayName="SheetHeader";let f=l.forwardRef((e,t)=>{let{className:s,...l}=e;return(0,a.jsx)(r.Dx,{ref:t,className:(0,o.cn)("text-lg font-semibold text-foreground",s),...l})});f.displayName=r.Dx.displayName,l.forwardRef((e,t)=>{let{className:s,...l}=e;return(0,a.jsx)(r.dk,{ref:t,className:(0,o.cn)("text-sm text-muted-foreground",s),...l})}).displayName=r.dk.displayName},76453:function(e,t,s){s.d(t,{g:function(){return n}});var a=s(85893),l=s(67294),r=s(98997);let n=l.forwardRef((e,t)=>{let{className:s,...l}=e;return(0,a.jsx)("textarea",{className:(0,r.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...l})});n.displayName="Textarea"},35225:function(e,t,s){s.d(t,{_v:function(){return d},aJ:function(){return c},pn:function(){return i},u:function(){return o}});var a=s(85893),l=s(67294),r=s(10133),n=s(98997);let i=r.zt,o=r.fC,c=r.xz,d=l.forwardRef((e,t)=>{let{className:s,sideOffset:l=4,...i}=e;return(0,a.jsx)(r.VY,{ref:t,sideOffset:l,className:(0,n.cn)("z-50 overflow-hidden rounded-md border border-slate-200 bg-white px-3 py-1.5 text-sm text-slate-950 shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...i})});d.displayName=r.VY.displayName}}]);

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.