1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5412],{85412:function(e,t,a){a.d(t,{Z:function(){return M}});var r=a(85893),s=a(41664),n=a.n(s),i=a(11163),l=a(92761),o=a(42020),c=a(78865),d=a(74882),m=a(8007),x=a(55264),h=a(70775),u=a(80893),p=a(79298),g=a(16706),b=a(67294),f=a(33299),w=a(48722),y=a(67694),v=a(5152),j=a.n(v),N=a(92429),k=a(71601),F=a(73416),C=a(2553),D=a(74598),E=a(62190),S=a(71707);function A(e){let{className:t=""}=e,{theme:a}=(0,y.F)(),[s,i]=(0,b.useState)(!1),l=(0,b.useRef)(null),o=[{href:"/help",icon:N.Z,title:"Help Center",description:"Guides, tutorials, and FAQ"},{href:"/help/about",icon:k.Z,title:"About Us",description:"Our mission and story"},{href:"/help/privacy",icon:F.Z,title:"Privacy Policy",description:"How we protect your data"},{href:"/help/terms",icon:C.Z,title:"Terms & Conditions",description:"Legal terms and conditions"}];return(0,b.useEffect)(()=>{if(!s)return;let e=e=>{let t=e.target;l.current&&t&&!l.current.contains(t)&&i(!1)},t=e=>{"Escape"===e.key&&i(!1)};return document.addEventListener("pointerdown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("pointerdown",e),document.removeEventListener("keydown",t)}},[s]),(0,r.jsxs)("div",{className:"relative ".concat(t),ref:l,children:[(0,r.jsx)("button",{onClick:()=>i(!s),className:"flex items-center justify-center w-9 h-9 rounded-full transition-all duration-200 ".concat("dark"===a?"bg-[#272729] text-[#D7DADC] hover:bg-[#343536] hover:text-white border border-[#343536] hover:border-[#343536]":"bg-gray-100 text-gray-600 hover:bg-gray-200 hover:text-gray-900 border border-gray-200 hover:border-gray-300"," ").concat(s?"dark"===a?"ring-2 ring-[#FF4500]/30 bg-[#343536] text-white":"ring-2 ring-[#FF4500]/30 bg-gray-200 text-gray-900":""),"aria-label":"Help menu","aria-expanded":s,children:(0,r.jsx)(N.Z,{className:"w-5 h-5"})}),s&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"fixed inset-0 bg-black/20 z-40 lg:hidden",onClick:()=>i(!1),"aria-hidden":"true"}),(0,r.jsxs)("div",{className:"absolute right-0 top-full mt-3 w-80 max-w-[calc(100vw-2rem)] z-50 ".concat("dark"===a?"bg-[#1A1A1B] border-[#343536]":"bg-white border-[#EDEFF1]"," border rounded-xl shadow-2xl overflow-hidden transform transition-all duration-200 origin-top-right"),children:[(0,r.jsx)("div",{className:"px-4 py-4 border-b ".concat("dark"===a?"border-[#343536] bg-[#272729]":"border-gray-100 bg-gray-50"),children:(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("div",{className:"p-2 rounded-lg ".concat("dark"===a?"bg-blue-900/30":"bg-blue-50"),children:(0,r.jsx)(D.Z,{className:"w-4 h-4 ".concat("dark"===a?"text-blue-400":"text-blue-600")})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"font-semibold text-sm ".concat("dark"===a?"text-white":"text-gray-900"),style:{fontFamily:"Rajdhani, sans-serif",fontWeight:700},children:"Help & Information"}),(0,r.jsx)("p",{className:"text-xs ".concat("dark"===a?"text-[#818384]":"text-gray-500"),children:"Get support and learn about TrueResume"})]})]}),(0,r.jsx)("button",{onClick:()=>i(!1),className:"lg:hidden p-1 rounded-md transition-colors ".concat("dark"===a?"text-[#818384] hover:text-white hover:bg-[#343536]":"text-gray-400 hover:text-gray-600 hover:bg-gray-100"),"aria-label":"Close help menu",children:(0,r.jsx)(E.Z,{className:"w-4 h-4"})})]})}),(0,r.jsx)("div",{className:"py-2",children:o.map((e,t)=>(0,r.jsx)(n(),{href:e.href,children:(0,r.jsxs)("button",{onClick:()=>i(!1),className:"w-full flex items-start gap-4 px-4 py-3.5 text-left transition-all duration-150 group ".concat("dark"===a?"text-[#D7DADC] hover:bg-[#272729] hover:text-white":"text-gray-700 hover:bg-gray-50 hover:text-gray-900"),children:[(0,r.jsx)("div",{className:"p-2.5 rounded-lg flex-shrink-0 transition-colors group-hover:scale-105 ".concat("dark"===a?"bg-[#272729] group-hover:bg-[#343536]":"bg-gray-100 group-hover:bg-gray-200"),children:(0,r.jsx)(e.icon,{className:"w-4 h-4 transition-colors ".concat("dark"===a?"text-[#818384] group-hover:text-blue-400":"text-gray-500 group-hover:text-blue-600")})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("div",{className:"font-medium text-sm mb-1 transition-colors ".concat("dark"===a?"text-white group-hover:text-blue-400":"text-gray-900 group-hover:text-blue-600"),style:{fontFamily:"Rajdhani, sans-serif",fontWeight:700},children:e.title}),(0,r.jsx)("div",{className:"text-xs leading-relaxed ".concat("dark"===a?"text-[#818384]":"text-gray-500"),children:e.description})]}),(0,r.jsx)(S.Z,{className:"w-3.5 h-3.5 flex-shrink-0 opacity-30 transition-opacity group-hover:opacity-60 ".concat("dark"===a?"text-[#818384]":"text-gray-400")})]})},t))}),(0,r.jsx)("div",{className:"px-4 py-4 border-t ".concat("dark"===a?"border-[#343536] bg-[#272729]":"border-gray-100 bg-gray-50"),children:(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("p",{className:"text-xs mb-3 ".concat("dark"===a?"text-[#818384]":"text-gray-500"),children:"Need more help?"}),(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2",children:[(0,r.jsx)("a",{href:"mailto:[email protected]",className:"flex-1 inline-flex items-center justify-center px-3 py-2 rounded-full text-xs !font-bold transition-colors ".concat("bg-blue-600 text-white hover:bg-blue-700"),style:{fontFamily:"Rajdhani, sans-serif"},children:"Contact Support"}),(0,r.jsx)("a",{href:"https://calendly.com/mytrueresume",target:"_blank",rel:"noopener noreferrer",className:"flex-1 inline-flex items-center justify-center px-3 py-2 rounded-full text-xs !font-bold transition-colors ".concat("dark"===a?"bg-[#343536] text-[#D7DADC] hover:bg-[#343536]":"bg-gray-100 text-gray-700 hover:bg-gray-200"),style:{fontFamily:"Rajdhani, sans-serif"},children:"Schedule Call"})]})]})})]})]})]})}var R=a(89508),z=a(87542),Z=a(10795);function U(e){let{open:t,onClose:a}=e,{theme:s}=(0,y.F)(),n="dark"===s?"dark":"light";(0,b.useEffect)(()=>
1{if(!t)return;let e=e=>{"Escape"===e.key&&a()};document.addEventListener("keydown",e);let r=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=r}},[t,a]);let i="give-review-modal-title";return(0,r.jsx)(R.M,{children:t&&(0,r.jsxs)(z.E.div,{className:"fixed inset-0 z-[100] flex items-end justify-center pt-[env(safe-area-inset-top)] sm:items-center sm:p-4",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:[(0,r.jsx)(z.E.button,{type:"button","aria-label":"Close review dialog",className:"absolute inset-0 bg-black/65 backdrop-blur-md",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:a}),(0,r.jsx)(z.E.div,{role:"dialog","aria-modal":"true","aria-labelledby":i,className:"relative z-10 mx-auto flex w-full min-w-0 max-w-full justify-center px-2 pb-[env(safe-area-inset-bottom)] pt-1 sm:max-w-[min(100%,28rem)] sm:px-0 sm:pb-0 sm:pt-0",initial:{y:36,opacity:0},animate:{y:0,opacity:1},exit:{y:24,opacity:0},transition:{type:"spring",damping:28,stiffness:320},onClick:e=>e.stopPropagation(),children:(0,r.jsxs)("div",{className:"flex max-h-[min(88dvh,calc(100dvh-env(safe-area-inset-top)-env(safe-area-inset-bottom)-0.75rem))] w-full min-w-0 flex-col overflow-hidden rounded-t-[1.35rem] shadow-[0_-12px_60px_-20px_rgba(0,0,0,0.45)] ring-1 sm:max-h-[min(92dvh,760px)] sm:rounded-3xl sm:shadow-2xl ".concat("dark"===n?"bg-[#0c0c0d] ring-white/[0.12] sm:shadow-black/60":"bg-[#fafafa] ring-black/[0.08] sm:shadow-slate-900/10"),children:[(0,r.jsxs)("div",{className:"shrink-0 px-4 pb-3 pt-2 sm:px-5 sm:pb-3 sm:pt-3 ".concat("dark"===n?"border-b border-white/[0.08]":"border-b border-black/[0.06]"),children:[(0,r.jsx)("div",{className:"mx-auto mb-2 h-1 w-10 shrink-0 rounded-full sm:hidden ".concat("dark"===n?"bg-white/20":"bg-black/15"),"aria-hidden":!0}),(0,r.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,r.jsxs)("div",{className:"min-w-0 space-y-1 pr-2",children:[(0,r.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-[0.22em] text-[#FF4500]",children:"Community"}),(0,r.jsx)("h2",{id:i,className:"text-lg font-bold leading-tight tracking-tight sm:text-xl ".concat("dark"===n?"text-white":"text-gray-950"),style:{fontFamily:"Rajdhani, sans-serif"},children:"Post a review"}),(0,r.jsx)("p",{className:"text-xs leading-relaxed sm:text-[13px] ".concat("dark"===n?"text-white/50":"text-gray-600"),children:"Real stories from members â yours is moderated before it goes live."})]}),(0,r.jsx)("button",{type:"button",onClick:a,className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full transition-colors ".concat("dark"===n?"text-white/70 hover:bg-white/10 hover:text-white":"text-gray-600 hover:bg-black/[0.05]"),"aria-label":"Close",children:(0,r.jsx)(E.Z,{className:"h-5 w-5"})})]})]}),(0,r.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto overscroll-y-contain touch-pan-y",children:(0,r.jsx)(Z.Z,{surface:"dialog",onClose:a,initialFormExpanded:!0,showCloseButton:!1,dialogHeaderMinimal:!0,dialogFlush:!0,ariaLabelledBy:i,className:"rounded-none"})})]})})]},"give-review-layer")})}var _=a(49240),P=a(54271);let L=j()(()=>Promise.all([a.e(3737),a.e(2934),a.e(8405)]).then(a.bind(a,58405)),{loadableGenerated:{webpack:()=>[58405]},ssr:!1}),I=j()(()=>a.e(3377).then(a.bind(a,3377)),{loadableGenerated:{webpack:()=>[3377]},ssr:!1}),T="/create-resume?giveReview=1";function M(e){var t,a,s,v,j,N,k,F,C;let{showBackButton:D=!1,backUrl:E="/",backLabel:S="Home",hideAppIcon:R=!1}=e,z=(0,i.useRouter)(),{data:Z,status:M}=(0,f.useSession)(),{theme:B,toggleTheme:O,brightness:W,setBrightness:J}=(0,y.F)(),H="dark"===B?"moonlight":"warm",[q,G]=(0,b.useState)(!1),[K,Y]=(0,b.useState)(!1),[V,X]=(0,b.useState)(!1),[Q,$]=(0,b.useState)(!1),[ee,et]=(0,b.useState)(!1),[ea,er]=(0,b.useState)("USA"),[es,en]=(0,b.useState)(!1),[ei,el]=(0,b.useState)(!1),[eo,ec]=(0,b.useState)("USA"),[ed,em]=(0,b.useState)("USA"),[ex,eh]=(0,b.useState)(!1),[eu,ep]=(0,b.useState)(!1),eg=(0,b.useRef)(null),eb=(0,b.useRef)(null),ef=(0,b.useCallback)(()=>{(null==Z?void 0:Z.user)?eh(!0):z.push("/login?callbackUrl=".concat(encodeURIComponent(T)))},[Z,z]),ew=(0,b.useCallback)(async()=>
1{if(!eu){ep(!0),Y(!1);try{await (0,w.Mx)({sessionId:null==Z?void 0:Z.sessionId,callbackUrl:"/"})}catch(e){ep(!1)}}},[Z,eu]);(0,b.useEffect)(()=>{var e;if(null==Z?void 0:null===(e=Z.user)||void 0===e?void 0:e.email){let e=localStorage.getItem("userCountry");e&&["USA","India","UK"].includes(e)&&er(e),fetch("/api/user/profile").then(e=>e.json()).then(e=>{e.country&&(er(e.country),localStorage.setItem("userCountry",e.country))}).catch(e=>console.error("Failed to fetch user country:",e))}},[Z]);let ey=async e=>{if(e!==ea&&!es){en(!0);try{(await fetch("/api/user/update-country",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({country:e})})).ok?(X(!1),Y(!1),localStorage.setItem("userCountry",e),ec(ea),em(e),el(!0),er(e)):(console.error("Failed to update country"),alert("Failed to update country. Please try again."),en(!1))}catch(e){console.error("Error updating country:",e),alert("Error updating country. Please try again."),en(!1)}}},ev={USA:{flag:"https://flagcdn.com/w40/us.png",name:"USA",color:"brand"},India:{flag:"https://flagcdn.com/w40/in.png",name:"India",color:"green"},UK:{flag:"https://flagcdn.com/w40/gb.png",name:"UK",color:"blue"}};return((0,b.useEffect)(()=>{G(!0)},[]),(0,b.useEffect)(()=>{Y(!1),X(!1)},[z.pathname]),(0,b.useEffect)(()=>{if(!z.isReady||"loading"===M)return;let e=z.query.giveReview;if(!("1"!==e&&"true"!==e)){if(null==Z?void 0:Z.user){eh(!0);let e={...z.query};delete e.giveReview,z.replace({pathname:z.pathname,query:e},void 0,{shallow:!0});return}"unauthenticated"===M&&z.replace("/login?callbackUrl=".concat(encodeURIComponent(T)))}},[z,z.isReady,z.pathname,z.query,Z,M]),(0,b.useEffect)(()=>{if(!K&&!V&&!Q&&!ee)return;let e=e=>{let t=e.target;if(K&&eg.current&&t&&!eg.current.contains(t)&&Y(!1),V&&eb.current&&t&&!eb.current.contains(t)&&X(!1),Q){let e=document.getElementById("nav-build-menu");t&&e&&!e.contains(t)&&$(!1)}if(ee){let e=document.getElementById("nav-jobs-menu");t&&e&&!e.contains(t)&&et(!1)}},t=e=>{"Escape"===e.key&&(Y(!1),X(!1),$(!1),et(!1))};return document.addEventListener("pointerdown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("pointerdown",e),document.removeEventListener("keydown",t)}},[K,V,Q,ee]),q)?(0,r.jsxs)(r.Fragment,{children:[ei&&(0,r.jsx)(L,{fromCountry:eo,toCountry:ed,onComplete:()=>{el(!1),en(!1);let e=z.asPath;if(e.startsWith("/jobs")){let t=e.split("?")[0];window.location.href="".concat(t,"?skipLoader=true&t=").concat(Date.now())}else window.location.reload()},onStartFetch:()=>{ed&&fetch("/api/jobs?userCountry=".concat(ed,"&limit=30")).catch(()=>{})},duration:1e4}),(0,r.jsx)("nav",{className:"fixed top-0 left-0 right-0 z-50 transition-colors duration-200 border-b nav-shimmer-border ".concat("dark"===B?"border-[#343536] bg-[#1A1A1B]":"border-[#EDEFF1] bg-white"),children:(0,r.jsx)("div",{className:"px-3 sm:px-6",children:(0,r.jsxs)("div",{className:"flex justify-between items-center h-12 sm:h-16",children:[(0,r.jsxs)("div",{className:"flex items-center space-x-2 sm:space-x-8",children:[D&&(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(p.hU,{onClick:()=>z.push(E),icon:l.Z,"aria-label":"Back to ".concat(S),variant:"ghost",size:"sm",className:"dark"!==B?"!text-[#1C1C1C]":""}),(0,r.jsx)("button",{onClick:()=>z.push(E),className:"hidden sm:inline text-sm font-medium transition-colors ".concat("dark"===B?"text-[#D7DADC] hover:text-white":"text-gray-700 hover:text-gray-900"),children:S})]}),!R&&(0,r.jsx)(n(),{href:"/create-resume",passHref:!0,legacyBehavior:!0,children:(0,r.jsxs)("a",{className:"flex items-center gap-1 cursor-pointer group",onClick:e=>{"/create-resume"===z.pathname&&(e.preventDefault(),window.location.href="/create-resume")},children:[(0,r.jsx)("div",{className:"relative w-10 h-10 sm:w-11 sm:h-11 flex items-center justify-center transition-transform duration-300 group-hover:scale-110",children:(0,r.jsx)(_.Z,{className:"w-10 h-10 sm:w-11 sm:h-11",fill:"#FF4500"})}),(0,r.jsx)("span",{className:"".concat(Z?"text-lg sm:text-2xl":"hidden sm:inline text-xl sm:text-2xl"," font-bold tracking-tight transition-colors ").concat("dark"===B?"text-[#D7DADC]":"text-[#1C1C1C]"),style:{fontFamily:"Rajdhani, sans-serif",fontWeight:700,letterSpacing:"-0.01em"},children:"TrueResume"})]})}),(0,r.jsx)("div",{className:"hidden md:block",children:(0,r.jsx)(I,{})})]}),(0,r.jsxs)("div",{className:"flex items-center space-x-2 sm:space-x-4",children:[Z&&(0,r.jsxs)("div",{className:"relative hidden sm:block",children:[(0,r.jsxs)("button",{onClick:()=>X(!V),className:"inline-flex items-center justify-center gap-1.5 px-2 sm:px-4 py-1.5 sm:py-2 text-xs sm:text-sm rounded-full transition-colors duration-150 border !font-bold ".concat("dark"===B?"bg-[#272729] border-[#343536] hover:border-[#4F4F51] hover:bg-[#343536] text-[#D7DADC]":"bg-[#F6F7F8] border-[#
1EDEFF1] hover:border-[#C8CCD0] hover:bg-[#EDEFF1] text-[#1C1C1C]"),"aria-label":"Change country",disabled:es,children:[(0,r.jsx)(o.Z,{className:"w-4 h-4"}),(0,r.jsx)("img",{src:ev[ea].flag,alt:"".concat(ev[ea].name," flag"),className:"w-5 h-4 object-cover rounded-sm shadow-sm"}),(0,r.jsx)("span",{className:"hidden sm:inline whitespace-nowrap",children:ev[ea].name})]}),V&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"fixed inset-0 z-[60]","aria-hidden":!0}),(0,r.jsxs)("div",{ref:eb,className:"absolute right-0 mt-2 w-48 rounded-md border z-[70] overflow-hidden animate-scale-in ".concat("dark"===B?"bg-[#1A1A1B] border-[#343536]":"bg-white border-[#EDEFF1] shadow-md"),children:[(0,r.jsx)("div",{className:"px-3 py-2 border-b ".concat("dark"===B?"border-[#343536]":"border-[#EDEFF1]"),children:(0,r.jsx)("p",{className:"text-xs font-medium ".concat("dark"===B?"text-[#818384]":"text-[#7C7C7C]"),children:"Select Region"})}),(0,r.jsx)("div",{className:"py-1",children:["USA","India","UK"].map(e=>(0,r.jsxs)("button",{onClick:()=>ey(e),disabled:es,className:"w-full flex items-center justify-between gap-3 px-4 py-2.5 text-sm font-medium transition-colors ".concat(ea===e?"dark"===B?"bg-[#272729] text-[#D7DADC]":"bg-[#F6F7F8] text-[#1C1C1C]":"dark"===B?"text-[#818384] hover:bg-[#272729] hover:text-[#D7DADC]":"text-[#576F76] hover:bg-[#F6F7F8] hover:text-[#1C1C1C]"," disabled:opacity-50 disabled:cursor-not-allowed"),children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("img",{src:ev[e].flag,alt:"".concat(ev[e].name," flag"),className:"w-6 h-4 object-cover rounded-sm"}),(0,r.jsx)("span",{children:ev[e].name})]}),ea===e&&(0,r.jsx)(c.Z,{className:"w-4 h-4 text-green-500"})]},e))}),(0,r.jsx)("div",{className:"px-3 py-2 border-t ".concat("dark"===B?"border-[#343536]":"border-[#EDEFF1]"),children:(0,r.jsx)("p",{className:"text-[10px] ".concat("dark"===B?"text-[#818384]":"text-[#7C7C7C]"),children:"Jobs will be filtered by your region"})})]})]})]}),(0,r.jsxs)("div",{className:"hidden sm:flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg border shadow-sm ".concat("dark"===B?"border-[#343536] bg-[#272729]/70":"border-[#EDEFF1] bg-[#F6F7F8]"),title:"Brightness: ".concat(W,"%"),children:[(0,r.jsx)(d.Z,{className:"w-3.5 h-3.5 ".concat("dark"===B?"text-[#818384]":"text-gray-500")}),(0,r.jsx)("div",{className:"relative",children:(0,r.jsx)("input",{type:"range",min:"0",max:"100",value:W,onChange:e=>J(parseInt(e.target.value,10)),className:"w-20 lg:w-24 h-2 rounded-full appearance-none cursor-pointer",style:{background:"dark"===B?"linear-gradient(to right, #1e293b 0%, #FF4500 ".concat(W,"%, #334155 ").concat(W,"%, #f8fafc 100%)"):"linear-gradient(to right, rgba(0,0,0,0.15) 0%, #FF4500 ".concat(W,"%, rgba(0,0,0,0.08) ").concat(W,"%, rgba(0,0,0,0.04) 100%)")}})}),(0,r.jsx)(m.Z,{className:"w-3.5 h-3.5 ".concat("dark"===B?"text-yellow-400":"text-gray-600")})]}),(0,r.jsx)(p.hU,{onClick:O,icon:"dark"===B?m.Z:d.Z,"aria-label":"Switch to ".concat("dark"===B?"light":"dark"," mode"),variant:"ghost",size:"sm",className:"dark"!==B?"!text-[#1C1C1C]":""}),(0,r.jsx)(p.zx,{type:"button",size:"sm",variant:"ghost",onClick:ef,"aria-label":"Post a review",className:"inline-flex items-center justify-center px-3 sm:px-4 py-1.5 sm:py-2 text-xs sm:text-sm rounded-lg ".concat("dark"!==B?"!text-[#1C1C1C]":""),children:(0,r.jsx)("span",{className:"font-medium whitespace-nowrap",children:"Post a review"})}),Z?(0,r.jsxs)("div",{className:"flex items-center space-x-1.5 sm:space-x-2 md:space-x-3",children:["/profile-management"!==z.pathname&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{id:"nav-jobs-menu",className:"relative hidden md:block",children:[(0,r.jsxs)("button",{"data-testid":"nav-jobs-btn",onClick:()=>{et(e=>!e)},className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs sm:text-sm font-bold transition-colors shadow-sm border ".concat("/jobs"===z.pathname||"/h1b-jobs"===z.pathname?"border-transparent bg-[#FF4500] text-white shadow-[#FF4500]/25":"dark"===B?"border-[#343536] bg-[#272729]/70 text-[#D7DADC] hover:bg-[#343536] hover:border-[#4F4F51]":"border-[#
1EDEFF1] bg-white text-gray-800 hover:bg-[#F6F7F8] hover:border-[#D7DADC]"),children:[(0,r.jsx)("span",{className:"whitespace-nowrap",children:"Jobs"}),(0,r.jsx)("svg",{className:"w-3 h-3 transition-transform ".concat(ee?"rotate-180":""),viewBox:"0 0 20 20",fill:"currentColor",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.06l3.71-3.83a.75.75 0 111.08 1.04l-4.25 4.39a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z",clipRule:"evenodd"})})]}),ee&&(0,r.jsxs)("div",{"data-testid":"nav-jobs-dropdown",className:"absolute left-0 mt-2 w-44 min-w-[11.5rem] rounded-lg shadow-xl border z-50 ".concat("dark"===B?"bg-[#1A1A1B] border-[#343536]":"bg-white border-[#EDEFF1]"),children:[(0,r.jsx)(n(),{href:"/jobs",children:(0,r.jsxs)("button",{onClick:()=>et(!1),className:"w-full flex items-center gap-2.5 px-3.5 py-2.5 text-sm font-semibold transition-colors ".concat("dark"===B?"text-[#D7DADC] hover:bg-[#272729]":"text-[#0F172A] hover:bg-[#F1F5F9]"),children:[(0,r.jsx)("span",{className:"shrink-0 w-[24px] flex items-center justify-center overflow-visible",children:(0,r.jsx)(P.ZP,{variant:"briefcase",size:20,chroma:H,animated:!0})}),(0,r.jsx)("span",{className:"text-left whitespace-nowrap",children:"Jobs"})]})}),(0,r.jsx)(n(),{href:"/h1b-jobs",children:(0,r.jsxs)("button",{onClick:()=>et(!1),className:"w-full flex items-center gap-2.5 px-3.5 py-2.5 text-sm font-semibold transition-colors border-t ".concat("dark"===B?"text-[#D7DADC] hover:bg-[#272729] border-[#343536]":"text-[#0F172A] hover:bg-[#F1F5F9] border-[#EDEFF1]"),children:[(0,r.jsx)("span",{className:"shrink-0 w-[24px] flex items-center justify-center overflow-visible",children:(0,r.jsx)(P.ZP,{variant:"globe",size:20,chroma:H,animated:!0})}),(0,r.jsx)("span",{className:"text-left whitespace-nowrap",children:"H1B Jobs"})]})})]})]}),(0,r.jsx)(n(),{href:"/create-resume?step=1",children:(0,r.jsx)(p.zx,{size:"sm",variant:"/create-resume"===z.pathname||"/profile-setup"===z.pathname?"accent":"ghost",className:"hidden lg:inline-flex items-center justify-center px-2 sm:px-4 py-1.5 sm:py-2 text-xs sm:text-sm rounded-lg gap-1.5 ".concat("dark"!==B?"!text-[#1C1C1C]":""),children:(0,r.jsx)("span",{className:"!font-bold whitespace-nowrap",children:"ResumeGPT"})})}),"/quick-resume"!==z.pathname&&(0,r.jsx)(n(),{href:"/quick-resume",children:(0,r.jsx)(p.zx,{size:"sm",variant:"ghost",className:"hidden lg:inline-flex items-center justify-center px-2 sm:px-4 py-1.5 sm:py-2 text-xs sm:text-sm rounded-lg gap-1.5 ".concat("dark"!==B?"!text-[#1C1C1C]":""),children:(0,r.jsx)("span",{className:"!font-bold whitespace-nowrap",children:"Resume Editor"})})}),(0,r.jsx)(n(),{href:"/portfolio",children:(0,r.jsx)(p.zx,{size:"sm",variant:"/portfolio"===z.pathname?"accent":"ghost",className:"hidden lg:inline-flex items-center justify-center px-2 sm:px-4 py-1.5 sm:py-2 text-xs sm:text-sm rounded-lg gap-1.5 ".concat("dark"!==B?"!text-[#1C1C1C]":""),children:(0,r.jsx)("span",{className:"!font-bold whitespace-nowrap",children:"Portfolio"})})}),(0,r.jsx)(n(),{href:"/my-jobs",children:(0,r.jsx)(p.zx,{size:"sm",variant:"/my-jobs"===z.pathname?"accent":"ghost",className:"hidden lg:inline-flex items-center justify-center px-2 sm:px-4 py-1.5 sm:py-2 text-xs sm:text-sm rounded-lg gap-1.5 ".concat("dark"!==B?"!text-[#1C1C1C]":""),children:(0,r.jsx)("span",{className:"!font-bold whitespace-nowrap",children:"My Jobs"})})})]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("button",{onClick:()=>Y(!K),"aria-label":"User menu",className:"w-10 h-10 rounded-full transition-all duration-200 active:scale-95 focus:outline-none focus:ring-2 focus:ring-[#FF4500]/30 hover:ring-2 hover:ring-[#FF4500]/20 p-0",children:(0,r.jsx)(g.Z,{name:(null===(t=Z.user)||void 0===t?void 0:t.name)||(null===(a=Z.user)||void 0===a?void 0:a.email),src:null===(s=Z.user)||void 0===s?void 0:s.image,size:"md"})}),K&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"fixed inset-0 z-[60]","aria-hidden":!0}),(0,r.jsxs)("div",{ref:eg,className:"absolute right-0 mt-2 min-w-[220px] w-auto sm:w-60 rounded-md border z-[70] overflow-hidden animate-scale-in ".concat("dark"===B?"bg-[#1A1A1B] border-[#343536]":"bg-white border-[#
1EDEFF1] shadow-md"),children:[(0,r.jsx)("div",{className:"px-4 py-4 border-b ".concat("dark"===B?"border-[#343536]":"border-[#EDEFF1]"),children:(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(g.Z,{name:(null===(v=Z.user)||void 0===v?void 0:v.name)||(null===(j=Z.user)||void 0===j?void 0:j.email),src:null===(N=Z.user)||void 0===N?void 0:N.image,size:"lg"}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("p",{className:"text-sm font-semibold truncate ".concat("dark"===B?"text-white":"text-gray-900"),style:{fontFamily:"Rajdhani, sans-serif"},children:(null===(k=Z.user)||void 0===k?void 0:k.name)||"User"}),(0,r.jsx)("p",{className:"text-xs truncate mt-0.5 ".concat("dark"===B?"text-[#818384]":"text-gray-500"),title:null===(F=Z.user)||void 0===F?void 0:F.email,style:{fontFamily:"Rajdhani, sans-serif"},children:null===(C=Z.user)||void 0===C?void 0:C.email})]})]})}),(0,r.jsxs)("div",{className:"py-1",children:[(0,r.jsx)(n(),{href:"/jobs",children:(0,r.jsxs)("button",{onClick:()=>Y(!1),className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm !font-bold transition-all duration-200 ".concat("dark"===B?"text-[#D7DADC] hover:bg-[#272729] hover:text-white":"text-[#1C1C1C] hover:bg-[#F6F7F8]"),children:[(0,r.jsx)("span",{className:"min-w-[26px] w-[26px] flex-shrink-0 flex items-center justify-center",children:(0,r.jsx)(P.ZP,{variant:"briefcase",size:24,chroma:H,animated:!0})}),(0,r.jsx)("span",{className:"flex-1 text-left",children:"Jobs"})]})}),(0,r.jsx)(n(),{href:"/h1b-jobs",children:(0,r.jsxs)("button",{onClick:()=>Y(!1),className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm !font-bold transition-all duration-200 ".concat("dark"===B?"text-[#D7DADC] hover:bg-[#272729] hover:text-white":"text-[#1C1C1C] hover:bg-[#F6F7F8]"),children:[(0,r.jsx)("span",{className:"min-w-[26px] w-[26px] flex-shrink-0 flex items-center justify-center",children:(0,r.jsx)(P.ZP,{variant:"globe",size:24,chroma:H,animated:!0})}),(0,r.jsx)("span",{className:"flex-1 text-left",children:"H1B Jobs"})]})}),(0,r.jsx)(n(),{href:"/profile-setup",children:(0,r.jsxs)("button",{onClick:()=>Y(!1),className:"w-full flex items-center justify-between gap-3 px-4 py-2.5 text-sm !font-bold transition-colors ".concat("dark"===B?"text-[#D7DADC] hover:bg-[#272729] hover:text-white":"text-[#1C1C1C] hover:bg-[#F6F7F8]"),children:[(0,r.jsx)("span",{className:"min-w-[26px] w-[26px] flex-shrink-0 flex items-center justify-center",children:(0,r.jsx)(P.ZP,{variant:"profile",size:24,chroma:H,animated:!0})}),(0,r.jsx)("span",{className:"flex-1 text-left",children:"My Profile"})]})}),(0,r.jsx)(n(),{href:"/portfolio",children:(0,r.jsxs)("button",{onClick:()=>Y(!1),className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm !font-bold transition-colors ".concat("dark"===B?"text-[#D7DADC] hover:bg-[#272729] hover:text-white":"text-[#1C1C1C] hover:bg-[#F6F7F8]"),children:[(0,r.jsx)("span",{className:"min-w-[26px] w-[26px] flex-shrink-0 flex items-center justify-center",children:(0,r.jsx)(P.ZP,{variant:"palette",size:24,chroma:H,animated:!0})}),(0,r.jsx)("span",{className:"flex-1 text-left",children:"My Portfolio"}),(0,r.jsx)("span",{className:"px-1.5 py-0.5 text-[8px] font-extrabold uppercase tracking-wider text-white rounded-full bg-[#46D160]",children:"NEW"})]})}),(0,r.jsx)(n(),{href:"/profile-management",children:(0,r.jsxs)("button",{onClick:()=>Y(!1),className:"w-full flex items-center justify-between gap-3 px-4 py-2.5 text-sm !font-bold transition-colors ".concat("dark"===B?"text-[#D7DADC] hover:bg-[#272729] hover:text-white":"text-[#1C1C1C] hover:bg-[#F6F7F8]"),children:[(0,r.jsx)("span",{className:"min-w-[26px] w-[26px] flex-shrink-0 flex items-center justify-center text-[#576F76] dark:text-[#818384]",children:(0,r.jsx)(x.Z,{className:"h-5 w-5",strokeWidth:2,"aria-hidden":!0})}),(0,r.jsx)("span",{className:"flex-1 text-left",children:"Settings"})]})}),(0,r.jsx)(n(),{href:"/team",children:(0,r.jsxs)("button",{onClick:()=>Y(!1),className:"w-full flex items-center justify-between gap-3 px-4 py-2.5 text-sm !font-bold transition-colors ".concat("dark"===B?"text-[#D7DADC] hover:bg-[#272729] hover:text-white":"text-[#1C1C1C] hover:bg-[#F6F7F8]"),
1children:[(0,r.jsx)("span",{className:"min-w-[26px] w-[26px] flex-shrink-0 flex items-center justify-center",children:(0,r.jsx)(P.ZP,{variant:"team",size:24,chroma:H,animated:!0})}),(0,r.jsx)("span",{className:"flex-1 text-left",children:"Team"})]})}),(0,r.jsxs)("button",{type:"button",onClick:()=>{Y(!1),eh(!0)},className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm !font-bold transition-colors ".concat("dark"===B?"text-[#D7DADC] hover:bg-[#272729] hover:text-white":"text-[#1C1C1C] hover:bg-[#F6F7F8]"),children:[(0,r.jsx)("span",{className:"min-w-[26px] w-[26px] flex-shrink-0 flex items-center justify-center",children:(0,r.jsx)(P.ZP,{variant:"trophy",size:24,chroma:H,animated:!0})}),(0,r.jsx)("span",{className:"flex-1 text-left",children:"Post a review"})]}),(0,r.jsxs)("div",{className:"sm:hidden px-4 py-3 border-t ".concat("dark"===B?"border-[#343536]":"border-[#EDEFF1]"),children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,r.jsx)("span",{className:"text-xs font-medium ".concat("dark"===B?"text-[#818384]":"text-[#576F76]"),children:"Brightness"}),(0,r.jsxs)("span",{className:"text-xs font-bold ".concat("dark"===B?"text-white":"text-gray-900"),children:[W,"%"]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(d.Z,{className:"w-4 h-4 flex-shrink-0 ".concat("dark"===B?"text-[#818384]":"text-gray-400")}),(0,r.jsx)("input",{id:"nav-brightness",name:"navBrightness",type:"range",min:"0",max:"100",value:W,onChange:e=>J(parseInt(e.target.value,10)),className:"flex-1 h-2 rounded-full appearance-none cursor-pointer",style:{background:"dark"===B?"linear-gradient(to right, #1e293b 0%, #FF4500 ".concat(W,"%, #334155 ").concat(W,"%, #f8fafc 100%)"):"linear-gradient(to right, #374151 0%, #FF4500 ".concat(W,"%, #e5e7eb ").concat(W,"%, #fafafa 100%)")}}),(0,r.jsx)(m.Z,{className:"w-4 h-4 flex-shrink-0 ".concat("dark"===B?"text-yellow-400":"text-[#FF4500]")})]})]}),(0,r.jsxs)("div",{className:"sm:hidden px-4 py-3 border-t ".concat("dark"===B?"border-[#343536]":"border-[#EDEFF1]"),children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,r.jsx)("span",{className:"text-xs font-medium ".concat("dark"===B?"text-[#818384]":"text-[#576F76]"),children:"Region"}),(0,r.jsx)("span",{className:"text-xs font-bold ".concat("dark"===B?"text-white":"text-gray-900"),children:ev[ea].name})]}),(0,r.jsx)("div",{className:"flex flex-col gap-2",children:["USA","India","UK"].map(e=>(0,r.jsxs)("button",{onClick:()=>ey(e),disabled:es,className:"w-full flex items-center gap-3 px-3 py-2 text-sm !font-bold rounded-md transition-colors ".concat(ea===e?"dark"===B?"bg-[#272729] text-[#D7DADC]":"bg-[#F6F7F8] text-[#1C1C1C]":"dark"===B?"text-[#818384] hover:bg-[#272729] hover:text-[#D7DADC]":"text-[#576F76] hover:bg-[#F6F7F8] hover:text-[#1C1C1C]"," disabled:opacity-50 disabled:cursor-not-allowed"),children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("img",{src:ev[e].flag,alt:"".concat(ev[e].name," flag"),className:"w-5 h-3 object-cover rounded-sm"}),(0,r.jsx)("span",{children:ev[e].name})]}),ea===e&&(0,r.jsx)(c.Z,{className:"w-4 h-4 text-green-500"})]},e))}),(0,r.jsx)("p",{className:"mt-2 text-[10px] ".concat("dark"===B?"text-[#818384]":"text-gray-500"),children:"Jobs will be filtered by your region"})]}),(0,r.jsx)("div",{className:"my-1 border-t ".concat("dark"===B?"border-[#343536]":"border-[#EDEFF1]")}),(0,r.jsxs)("button",{type:"button",disabled:eu,onClick:()=>{ew()},className:"w-full flex items-center justify-between gap-3 px-4 py-2.5 text-sm !font-bold transition-colors text-red-500 hover:bg-red-50 dark:hover:bg-red-900/20 disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,r.jsx)("span",{className:"w-5 flex-shrink-0 flex items-center justify-center",children:(0,r.jsx)(h.Z,{className:"w-4 h-4"})}),(0,r.jsx)("span",{className:"flex-1 text-left",children:eu?"Signing outâ¦":"Sign Out"})]})]})]})]})]}),(0,r.jsx)(A,{})]}):(0,r.jsxs)("div",{className:"flex items-center space-x-2 sm:space-x-3",children:[(0,r.jsx)(n(),{href:"/jobs",children:(0,r.jsx)(p.zx,{size:"sm",variant:"/jobs"===z.pathname?"accent":"ghost",className:"inline-flex items-center justify-center px-3 sm:px-4 py-1.5 sm:py-2 text-xs sm:text-sm rounded-lg gap-1.5 ".concat("dark"!==B?"!text-[#1C1C1C]":""),icon:u.Z,children:(0,r.jsx)("span",{className:"hidden sm:inline font-medium whitespace-nowrap",children:"Jobs"})})}),(0,r.jsx)(n(),{href:"/create-resume?step=1",children:(0,r.jsx)(p.zx,{size:"sm",variant:"/create-resume"===z.pathname?"accent":"ghost",className:"inline-flex items-center justify-center px-3 sm:px-4 py-1.5 sm:py-2 text-xs sm:text-sm rounded-lg gap-1.5 ".concat("dark"!==B?"!text-[#1C1C1C]":""),children:(0,r.jsxs)("span",{className:"flex items-center justify-center gap-1.5",children:[(0,r.jsx)("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center sm:hidden",children:(0,r.jsx)(P.ZP,{variant:"edit",size:18,chroma:H,animated:!0})}),(0,r.jsx)("span",{className:"hidden font-medium sm:inline whitespace-nowrap",children:"Build Resume"})]})})}),(0,r.jsx)(n(),{href:"/login",children:(0,r.jsx)(p.zx,{size:"sm",variant:"accent",className:"px-3 sm:px-6 py-1.5
1sm:py-2 text-sm sm:text-base rounded-full font-medium transition-all duration-300 hover:scale-105 shadow-lg hover:shadow-xl",children:"Sign In"})}),(0,r.jsx)(A,{})]})]})]})})}),(0,r.jsx)(U,{open:ex,onClose:()=>eh(!1)})]}):(0,r.jsx)("nav",{className:"fixed top-0 left-0 right-0 z-50 border-b border-[#EDEFF1] bg-white dark:border-[#343536] dark:bg-[#1A1A1B]",children:(0,r.jsx)("div",{className:"px-3 sm:px-6",children:(0,r.jsx)("div",{className:"flex justify-between items-center h-12 sm:h-16",children:(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)("div",{className:"w-10 h-10 sm:w-11 sm:h-11 flex items-center justify-center",children:(0,r.jsx)(_.Z,{className:"w-10 h-10 sm:w-11 sm:h-11",fill:"#FF4500"})}),(0,r.jsx)("span",{className:"hidden sm:inline text-[#1C1C1C] dark:text-[#D7DADC] text-xl sm:text-2xl font-bold",style:{fontFamily:"Rajdhani, sans-serif",fontWeight:700,letterSpacing:"-0.01em"},children:"TrueResume"})]})})})})}},10795:function(e,t,a){a.d(t,{Z:function(){return Z}});var r=a(85893),s=a(67294),n=a(41664),i=a.n(n),l=a(11163),o=a(33299),c=a(86501),d=a(67694),m=a(70088),x=a(89561),h=a(62190),u=a(33058),p=a(47379),g=a(60641),b=a(15432),f=a(42171),w=a(22954),y=a(90341),v=a(47055),j=a(89508),N=a(87542),k=a(58220),F=a(55689);async function C(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.92,r=await new Promise((t,a)=>{let r=new Image;r.onload=()=>t(r),r.onerror=()=>a(Error("Could not load image for cropping.")),r.src=e}),s=document.createElement("canvas");s.width=Math.max(1,Math.floor(t.width)),s.height=Math.max(1,Math.floor(t.height));let n=s.getContext("2d");if(!n)throw Error("Canvas not available");return n.fillStyle="#ffffff",n.fillRect(0,0,s.width,s.height),n.drawImage(r,t.x,t.y,t.width,t.height,0,0,s.width,s.height),s.toDataURL("image/jpeg",a)}function D(e){let{imageSrc:t,batchHint:a,theme:n,onCancel:i,onApply:l}=e,[o,d]=(0,s.useState)({x:0,y:0}
1),[m,x]=(0,s.useState)(1),u=(0,s.useRef)(null),[p,g]=(0,s.useState)(!1),b=(0,s.useCallback)((e,t)=>{u.current=t},[]),f=(0,s.useCallback)(async()=>{let e=u.current;if(!e){c.default.error("Wait a moment for the image to finish loading.");return}g(!0);try{let a=await C(t,e);l(a)}finally{g(!1)}},[t,l]);return(0,r.jsxs)("div",{className:"fixed inset-0 z-[200] flex items-end justify-center p-0 sm:items-center sm:p-4",role:"dialog","aria-modal":"true","aria-labelledby":"review-crop-title",children:[(0,r.jsx)("button",{type:"button",className:"absolute inset-0 bg-black/60 backdrop-blur-[2px]","aria-label":"Close crop dialog",onClick:i}),(0,r.jsxs)("div",{className:"relative z-[201] flex max-h-[min(92vh,640px)] w-full max-w-lg flex-col overflow-hidden rounded-t-2xl shadow-2xl sm:rounded-2xl ".concat("dark"===n?"border border-white/10 bg-[#1a1a1b]":"border border-black/[0.08] bg-white"),children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-3 ".concat("dark"===n?"border-white/[0.08]":"border-gray-200"),children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{id:"review-crop-title",className:"text-sm font-semibold ".concat("dark"===n?"text-white":"text-gray-900"),children:"Frame your face"}),(0,r.jsxs)("p",{className:"text-[11px] ".concat("dark"===n?"text-white/45":"text-gray-500"),children:["Drag and pinch zoom so your face fits the square preview",a?" \xb7 ".concat(a):"","."]})]}),(0,r.jsx)("button",{type:"button",onClick:i,className:"rounded-lg p-1.5 transition ".concat("dark"===n?"hover:bg-white/10 text-white/70":"hover:bg-gray-100 text-gray-600"),"aria-label":"Cancel",children:(0,r.jsx)(h.Z,{className:"h-5 w-5"})})]}),(0,r.jsx)("div",{className:"relative h-[min(52vh,360px)] w-full sm:h-[min(48vh,400px)]",children:(0,r.jsx)(F.ZP,{image:t,crop:o,zoom:m,aspect:1,cropShape:"rect",showGrid:!1,objectFit:"vertical-cover",onCropChange:d,onZoomChange:x,onCropComplete:b})}),(0,r.jsxs)("div",{className:"space-y-2 border-t px-4 py-3 ".concat("dark"===n?"border-white/[0.08]":"border-gray-200"),children:[(0,r.jsxs)("label",{className:"flex items-center gap-3 text-xs font-medium ".concat("dark"===n?"text-white/70":"text-gray-700"),children:[(0,r.jsx)("span",{className:"shrink-0",children:"Zoom"}),(0,r.jsx)("input",{type:"range",min:1,max:3,step:.01,value:m,onChange:e=>x(Number(e.target.value)),className:"min-w-0 flex-1 accent-[#FF4500]"})]}),(0,r.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:[(0,r.jsx)("button",{type:"button",onClick:i,className:"rounded-xl px-4 py-2 text-sm font-semibold transition ".concat("dark"===n?"bg-white/10 text-white hover:bg-white/15":"bg-gray-100 text-gray-800 hover:bg-gray-200"),children:"Cancel"}),(0,r.jsx)("button",{type:"button",disabled:p,onClick:()=>{f()},className:"rounded-xl bg-[#FF4500] px-4 py-2 text-sm font-semibold text-white shadow-md shadow-[#FF4500]/25 transition hover:bg-[#E03D00] disabled:opacity-50",children:p?"Savingâ¦":"Use this crop"})]})]})]})]})}var E=a(617);async function S(e){let{maxDim:t=1280,targetBytes:a=921600}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e=>Math.ceil(3*e.length/4),s=(e,t,a,r)=>{let s=document.createElement("canvas");s.width=t,s.height=a;let n=s.getContext("2d");return n.fillStyle="#ffffff",n.fillRect(0,0,t,a),n.drawImage(e,0,0,t,a),s.toDataURL("image/jpeg",r)};return new Promise((n,i)=>{let l=URL.createObjectURL(e),o=new Image;o.onload=()=>{URL.revokeObjectURL(l);let e=o.naturalWidth,i=o.naturalHeight,c=Math.max(e,i);if(c>t){let a=t/c;e=Math.round(e*a),i=Math.round(i*a)}for(let t=.88;t>=.3;t=Math.round((t-.08)*100)/100){let l=s(o,e,i,t);if(r(l)<=a){n(l);return}}for(let t=.7;t>=.2;t=Math.round((t-.15)*100)/100){let l=s(o,Math.max(1,Math.round(e*t)),Math.max(1,Math.round(i*t)),.72);if(r(l)<=a){n(l);return}}n(s(o,Math.max(1,Math.round(.2*e)),Math.max(1,Math.round(.2*i)),.6))},o.onerror=()=>{URL.revokeObjectURL(l),i(Error("Could not read the selected image."))},o.src=l})}function A(e){let{rating:t,size:a="md",theme:s="dark"}=e,n=Math.round(Math.min(5,Math.max(1,t))),i="lg"===a?"w-5 h-5":"sm"===a?"w-3.5 h-3.5":"w-4 h-4",l="dark"===s?"text-white/25 fill-transparent":"text-gray-300 fill-transparent";return(0,r.jsx)("div",{className:"flex items-center gap-0.5","aria-label":"".concat(n," out of 5 stars"),children:Array.from({length:5},(e,t)=>(0,r.jsx)(m.Z,{className:"".concat(i," ").concat(t<n?"text-amber-400 fill-amber-400":l)},t))})}function R(e){let{src:t,theme:a}=e;return t?(0,r.jsx)("img",{src:t,alt:"",className:"h-full w-full object-cover"}):(0,r.jsx)("div",{className:"flex h-full w-full items-center justify-center rounded-2xl ".concat("dark"===a?"bg-white/5 ring-1 ring-white/10":"bg-black/[0.04] ring-1 ring-black/[0.06]"),children:(0,r.jsx)(x.Z,{className:"h-8 w-8 ".concat("dark"===a?"text-white/35":"text-gray-400")})})}function z(e){let{src:t,theme:a,size:s="md",variant:n="portrait"}=e;return(0,r.jsxs)("div",{className:"group relative w-full",children:[(0,r.jsx)("div",{"aria-hidden":!0,
1className:"pointer-events-none absolute -inset-[2px] rounded-[1rem] bg-gradient-to-br from-[#FF4500] via-fuchsia-500/80 to-cyan-400/90 opacity-[0.92] blur-[1.5px]"}),(0,r.jsxs)("div",{className:"relative overflow-hidden rounded-2xl ".concat("square"===n?"aspect-square w-full max-w-[6.75rem]":"sm"===s?"aspect-[3/4] max-h-[7.25rem] w-full max-w-[6.5rem] mx-auto":"lg"===s?"aspect-[4/5] w-full min-h-[12rem] sm:min-h-[14rem]":"aspect-[4/5] w-full max-h-[11rem]"," ").concat("dark"===a?"shadow-[0_22px_55px_-18px_rgba(0,0,0,0.9)] ring-1 ring-white/20":"shadow-[0_20px_48px_-16px_rgba(255,69,0,0.45)] ring-1 ring-black/[0.06]"),children:[(0,r.jsx)("img",{src:t,alt:"",className:"h-full w-full object-cover transition duration-500 ease-out group-hover:scale-[1.04]"}),(0,r.jsx)("div",{className:"pointer-events-none absolute inset-0 rounded-2xl ring-1 ring-inset ring-white/20"}),(0,r.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-[linear-gradient(165deg,rgba(255,255,255,0.22)_0%,transparent_42%,transparent_58%,rgba(0,0,0,0.28)_100%)]"}),(0,r.jsx)("div",{className:"pointer-events-none absolute -right-6 -top-6 h-24 w-24 rounded-full bg-white/10 blur-2xl"})]})]})}function Z(e){var t,a;let{className:n="",surface:x="hero",variant:F="default",onClose:C,initialFormExpanded:Z=!1,showCloseButton:U=!0,dialogHeaderMinimal:_=!1,ariaLabelledBy:P,dialogFlush:L=!1}=e,I=(0,l.useRouter)(),{theme:T}=(0,d.F)(),{data:M,status:B}=(0,o.useSession)(),O=!!(null==M?void 0:M.user),W="dialog"===x,J="trustRail"===F&&!W,H="dark"===T?"dark":"light",[q,G]=(0,s.useState)([]),[K,Y]=(0,s.useState)(!0),[V,X]=(0,s.useState)(null),[Q,$]=(0,s.useState)(!1),[ee,et]=(0,s.useState)(!1),[ea,er]=(0,s.useState)(!1),[es,en]=(0,s.useState)(""),[ei,el]=(0,s.useState)(""),[eo,ec]=(0,s.useState)(""),[ed,em]=(0,s.useState)(""),[ex,eh]=(0,s.use
1State)(5),[eu,ep]=(0,s.useState)(0),[eg,eb]=(0,s.useState)(""),[ef,ew]=(0,s.useState)(!1),[ey,ev]=(0,s.useState)([]),[ej,eN]=(0,s.useState)(0),ek=(0,s.useRef)(0),eF=(0,s.useRef)([]),eC=(0,s.useRef)(0),[eD,eE]=(0,s.useState)(!1),[eS,eA]=(0,s.useState)(null),[eR,ez]=(0,s.useState)(null),[eZ,eU]=(0,s.useState)(""),[e_,eP]=(0,s.useState)(null),[eL,eI]=(0,s.useState)([]),[eT,eM]=(0,s.useState)(!1),[eB,eO]=(0,s.useState)(""),eW=(0,s.useRef)(null),eJ=J?8:24;(0,s.useEffect)(()=>{var e;if(e_){eI([]);return}let t=eZ.trim();if(t.length<2){eI([]);return}null===(e=eW.current)||void 0===e||e.abort();let a=new AbortController;eW.current=a;let r=window.setTimeout(async()=>{eM(!0);try{let e=await fetch("/api/reviews/suggest-company?q=".concat(encodeURIComponent(t)),{signal:a.signal}),r=await e.json();a.signal.aborted||eI(Array.isArray(r.suggestions)?r.suggestions:[])}catch(e){a.signal.aborted||eI([])}finally{a.signal.aborted||eM(!1)}},320);return()=>{window.clearTimeout(r),a.abort()}},[eZ,e_]),(0,s.useEffect)(()=>{0!==ey.length&&eN(e=>e>=ey.length?0:e)},[ey.length]);let eH=(0,s.useCallback)(async()=>{Y(!0),X(null);try{let e=await fetch("/api/reviews?limit=".concat(eJ)),t=await e.json();if(!e.ok||!t.success)throw Error(t.error||"load_failed");G(Array.isArray(t.reviews)?t.reviews.map(e=>(function(e){let t=e.photoUrls,a=Array.isArray(t)&&t.length>0?t.map(e=>String(e||"").trim()).filter(Boolean):String(e.photoUrl||"").trim()?[String(e.photoUrl).trim()]:[];return{id:String(e.id||""),displayName:String(e.displayName||""),roleTitle:String(e.roleTitle||""),rating:Number(e.rating)||0,body:String(e.body||""),photoUrl:a[0]||"",photoUrls:a,companyName:String(e.companyName||""),companyDomain:String(e.companyDomain||""),createdAt:"string"==typeof e.createdAt?e.createdAt:e.createdAt?String(e.createdAt):null}})(e)):[])}catch(e){X("Could not load reviews right now."),G([])}finally{Y(!1)}},[eJ]);(0,s.useEffect)(()=>{eH()},[eH]),(0,s.useEffect)(()=>{O&&Z&&$(!0)},[O,Z]),(0,s.useEffect)(()=>{O||$(!1)},[O]),(0,s.useEffect)(()=>{if(W)return;let e=()=>{if("#customer-reviews"===window.location.hash){var e;null===(e=document.getElementById("customer-reviews"))||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"})}};return e(),window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[W]);let eq=e=>{e.length&&(eF.current=e,eC.current=0,ez({current:1,total:e.length}),eA(URL.createObjectURL(e[0])),eE(!0),ew(!0))},eG=(0,s.useCallback)(()=>{eA(e=>(e&&URL.revokeObjectURL(e),null)),eF.current=[],eC.current=0,ez(null),eE(!1),ew(!1)},[]),eK=(0,s.useCallback)(async e=>{try{let t=function(e,t){var a;let r=e.split(","),s=null===(a=r[0])||void 0===a?void 0:a.match(/^data:(.*?);/),n=(null==s?void 0:s[1])||"image/jpeg",i=r[1];if(!i)throw Error("Invalid image data.");let l=atob(i),o=new Uint8Array(l.length);for(let e=0;e<l.length;e++)o[e]=l.charCodeAt(e);return new File([o],t,{type:n})}(e,"review-crop.jpg"),a=await S(t);ev(e=>(ek.current+=1,[...e,{id:"g-".concat(ek.current),preview:a,base64:a}]))}catch(e){c.default.error("Could not process the cropped image â try another photo.");return}let t=eF.current,a=eC.current+1;eC.current=a,a<t.length?(ez({current:a+1,total:t.length}),eA(e=>(e&&URL.revokeObjectURL(e),URL.createObjectURL(t[a])))):(ez(null),eA(e=>(e&&URL.revokeObjectURL(e),null)),eF.current=[],eC.current=0,eE(!1),ew(!1))},[]),eY=async()=>{if(e_||(0,E.Jx)(eB.trim()))return;let e=eZ.trim();if(!(e.length<2))try{let t=await fetch("/api/reviews/suggest-company?q=".concat(encodeURIComponent(e))),a=await t.json(),r=Array.isArray(a.suggestions)?a.suggestions:[];if(1!==r.length)return;eP({name:r[0].name,domain:r[0].domain}),eU(r[0].name),eI([])}catch(e){}},eV=async e=>{let t=e?Array.from(e):[],a=t.filter(e=>e.type.startsWith("image/"));if(!a.length){t.length&&c.default.error("Please choose JPG, PNG, WebP, or GIF images.");return}let r=6-ey.length;if(r<=0){c.default.error("You can add up to ".concat(6," photos."));return}eq(a.slice(0,r))},eX=e=>{eN(t=>e===t?0:e<t?t-1:t),ev(t=>t.filter((t,a)=>a!==e))},eQ=()=>{el(""),ec(""),em(""),eh(5),ep(0),eb(""),ev([]),eN(0),ek.current=0,eA(e=>(e&&URL.revokeObjectURL(e),null)),eF.current=[],eC.current=0,ez(null),eE(!1),eU(""),eP(null),eI([]),eO(""),en("")},e$=async()=>{et(!0);try{let e=await fetch("/api/reviews",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({trapField:es,displayName:ei,roleTitle:eo,email:ed,rating:ex,body:eg,photosBase64:ey.map(e=>e.base64),profilePhotoIndex:ej,companyName:((null==e_?void 0:e_.name)||eZ).trim(),companyDomain:(0,E.Jx)(eB.trim())||((null==e_?void 0:e_.domain)?e_.domain.trim().toLowerCase():"")})}),t=await e.json().catch(()=>({}));if(429===e.status)throw Error("Too many submissions from this network today. Please try again tomorrow.");if(401===e.status)throw Error("You need to be signed in to submit a review. Please sign in and try again.");if(!e.ok){let a={unauthorized:"You need to be signed in to submit a review. Please sign in and try again.",name_too_short:"Please enter your name (at least 2 characters).",invalid_email:"That email does not look valid.",already_submitted:"You've already submitted a review â thank you! Our team will publish it after moderation.",invalid_rating:"Pick a star rating from 1 to 5.",review_too_short:"Please write a few more words (at least 10 characters).",review_too_long:"Review is too long (max 2000 characters).",invalid_photo:"That file doesn't look like a valid image â please try a JPG or PNG.",photo_too_large:"Photo could not be compressed enough. Try a different image.",photos_too_large:"Photos combined are too large â remove one or use smaller images.",invalid_company_domain:"Company website doesn't look valid â try e.g. stripe.com or pick from suggestions.",save_failed:"Could not save your review right now â please try again."}[null==t?void 0:t.error],r=(null==t?void 0:t.message)||(null==t?void 0:t.error)||"HTTP ".concat(e.status);throw Error(a||r)}if(!t.success||!t.id)throw Error("Review submission did not complete. Please try again.");eQ(),er(!0),W&&C?setTimeout(()=>{C()},2200):(c.default.success("Thanks â your story was sent for review. It will appear after our team approves it."),await eH())}catch(e){c.default.error((null==e?void 0:e.message)||"Submit failed. Please try again.")}finally{et(!1)}},{featured:e0,rest:e1}=(0,s.useMemo)(()=>{let[e,...t]=q;return{featured:e,rest:t}},[q]),e5=!K&&0===q.length&&!V,e2="customer-reviews-heading",e4="/login?callbackUrl=".concat(encodeURIComponent(W?"/create-resume?giveReview=1":I.isReady&&I.asPath||"/")),e3=W?L?"border-0 bg-transparent shadow-none":"dark"===H?"border border-white/10 bg-[#0b0b0c]/95 shadow-xl shadow-black/40":"border border-black/[0.08] bg-white shadow-xl":"dark"===H?"border border-white/[0.08] bg-[#0A0A0B]/80 shadow-[0_0_0_1px_rgba(255,69,0,0.12),0_24px_80px_-24px_rgba(0,0,0,0.85)]":"border border-black/[0.06] bg-white/85 shadow-[0_24px_80px_-32px_rgba(15,23,42,0.18)]";return(0,r.jsxs)("div",{id:W?"give-review-dialog":"customer-reviews",role:W?L?"regi
1on":"dialog":"region","aria-modal":!!W&&!L||void 0,"aria-labelledby":W&&_&&P?P:e2,className:"relative max-w-full min-w-0 overflow-x-hidden ".concat(W?"":"scroll-mt-24"," ").concat(n),children:[(0,r.jsxs)("div",{className:"relative overflow-hidden ".concat(W?L?"rounded-none":"rounded-2xl":"rounded-3xl"," backdrop-blur-xl ").concat(e3),style:{fontFamily:"ui-sans-serif, system-ui, sans-serif"},children:[!W&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"pointer-events-none absolute -left-24 -top-24 h-72 w-72 rounded-full blur-3xl opacity-50",style:{background:"dark"===H?"radial-gradient(circle, rgba(139,92,246,0.35) 0%, transparent 70%)":"radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%)"}}),(0,r.jsx)("div",{className:"pointer-events-none absolute -bottom-20 -right-16 h-64 w-64 rounded-full blur-3xl opacity-40",style:{background:"radial-gradient(circle, rgba(255,69,0,0.35) 0%, transparent 70%)"}}),(0,r.jsx)("div",{className:"pointer-events-none absolute inset-0 opacity-[0.07]",style:{backgroundImage:"dark"===H?"linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px)":"linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px)",backgroundSize:"28px 28px"}})]}),W&&!L&&(0,r.jsx)("div",{className:"pointer-events-none absolute inset-0 opacity-[0.06]",style:{backgroundImage:"dark"===H?"linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px)":"linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px)",backgroundSize:"20px 20px"}}),(0,r.jsxs)("div",{className:"relative z-10 ".concat(W?_?"p-4 sm:p-5 pt-3":U?"p-4 sm:p-5 pt-11":"p-4 sm:p-5 pt-3":J?"p-4 sm:p-6":"p-5 sm:p-8"),children:[C&&U?(0,r.jsx)("button",{type:"button",onClick:C,className:"absolute right-2.5 top-2.5 z-30 flex h-9 w-9 items-center justify-center rounded-full transition-colors ".concat("dark"===H?"text-white/70 hover:bg-white/10 hover:text-white":"text-gray-600 hover:bg-black/[0.05]"),"aria-label":"Close",children:(0,r.jsx)(h.Z,{className:"h-5 w-5"})}):null,W&&_?null:J?(0,r.jsxs)("div",{className:"mb-3 flex items-center justify-between gap-3 sm:mb-6 sm:block sm:space-y-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[9px] font-bold uppercase tracking-[0.18em] sm:px-3 sm:py-1 sm:text-[10px] ".concat("dark"===H?"bg-emerald-500/15 text-emerald-200 ring-1 ring-emerald-400/25":"bg-emerald-50 text-emerald-800 ring-1 ring-emerald-200/80"),children:[(0,r.jsx)(u.Z,{className:"h-3 w-3 text-[#FF4500] sm:h-3.5 sm:w-3.5","aria-hidden":!0}),"Verified"]}),(0,r.jsxs)("h2",{id:e2,className:"text-sm font-bold tracking-tight sm:text-2xl ".concat("dark"===H?"text-white":"text-gray-950"),style:{fontFamily:"Rajdhani, sans-serif"},children:[(0,r.jsx)("span",{className:"sm:hidden",children:"Member Stories"}),(0,r.jsx)("span",{className:"hidden sm:inline",children:"Why job seekers trust TrueResume"})]})]}),(0,r.jsx)("p",{className:"hidden sm:block mt-2 max-w-full text-sm leading-relaxed sm:max-w-2xl sm:text-base ".concat("dark"===H?"text-white/55":"text-gray-600"),children:"Real outcomes from people tailoring resumes and letters here â not paid placements. Each story is checked before it is shown."}),(0,r.jsxs)("p",{className:"hidden sm:block mt-2 text-xs sm:text-sm ".concat("dark"===H?"text-white/40":"text-gray-500"),children:["Want to add yours? Use the ",(0,r.jsx)("span",{className:"font-semibold text-[#FF4500]",children:"Post a review"})," control in the top bar."]})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-5 lg:flex-row lg:items-start lg:justify-between ".concat(W?"mb-5":"mb-8"),children:[(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full px-3 py-1 text-[10px] font-bold uppercase tracking-[0.2em] ".concat("dark"===H?"bg-white/10 text-white/80 ring-1 ring-white/10":"bg-black/[0.04] text-gray-700 ring-1 ring-black/[0.06]"),children:[(0,r.jsx)(p.Z,{className:"h-3.5 w-3.5 text-[#FF4500]","aria-hidden":!0}),"Community signal"]}),(0,r.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full px-2.5 py-1 text-[10px] font-semibold uppercase tracking-wide ".concat("dark"===H?"text-emerald-300/90":"text-emerald-700"),children:[(0,r.jsx)(u.Z,{className:"h-3 w-3","aria-hidden":!0}),"Human-curated"]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{id:e2,className:"font-bold tracking-tight ".concat(W?"text-xl sm:text-2xl":"text-2xl sm:text-3xl"," ").concat("dark"===H?"text-white":"text-gray-950"),style:{fontFamily:"Rajdhani, sans-serif"},children:W?"Post a review":"Voices from the field"}),(0,r.jsx)("p",{className:"mt-2 max-w-xl ".concat(W?"text-xs sm:text-sm":"text-sm sm:text-base"," leading-relaxed ").concat("dark"===H?"text-white/55":"text-gray-600"),children:W?"Curated stories from members â add yours for moderation.":"Short, real feedback from people building their next role with TrueResume â surfaced like an AI telemetry wall, not a generic testimonial strip."})]})]}),"loading"===B?(0,r.jsxs)("div",{className:"inline-flex shrink-0 items-center gap-2 rounded-2xl px-5 py-3 text-sm ".concat("dark"===H?"text-white/45":"text-gray-500"),children:[(0,r.jsx)(g.Z,{className:"h-4 w-4 animate-spin"}),"Checking sessionâ¦"]}):O?(0,r.jsx)("button",{type:"button",onClick:()=>$(e=>!e),className:"inline-flex shrink-0 items-center justify-center gap-2 rounded-2xl bg-[#FF4500] px-5 py-3 text-sm font-semibold text-white shadow-lg shadow-[#FF4500]/25 transition hover:bg-[#
1E03D00] active:scale-[0.98]",children:Q?(0,r.jsxs)(r.Fragment,{children:["Close ",(0,r.jsx)(b.Z,{className:"h-4 w-4"})]}):(0,r.jsxs)(r.Fragment,{children:["Share your story ",(0,r.jsx)(f.Z,{className:"h-4 w-4"})]})}):(0,r.jsx)(i(),{href:e4,className:"inline-flex shrink-0 items-center justify-center gap-2 rounded-2xl border px-5 py-3 text-sm font-semibold transition hover:opacity-95 active:scale-[0.98] ".concat("dark"===H?"border-white/15 bg-white/5 text-white hover:bg-white/10":"border-black/10 bg-white text-gray-900 hover:bg-gray-50"),children:"Sign in to share your story"})]}),(0,r.jsx)(j.M,{initial:!1,mode:"wait",children:ea&&W?(0,r.jsxs)(N.E.div,{initial:{opacity:0,scale:.96},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.96},transition:{duration:.2},className:"flex flex-col items-center justify-center gap-4 py-10 text-center",children:[(0,r.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-emerald-500/15 ring-1 ring-emerald-400/30",children:(0,r.jsx)(w.Z,{className:"h-8 w-8 text-emerald-400"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-lg font-bold ".concat("dark"===H?"text-white":"text-gray-900"),children:"Story received!"}),(0,r.jsx)("p",{className:"mt-1 text-sm leading-relaxed ".concat("dark"===H?"text-white/55":"text-gray-500"),children:"Our team will review it and publish it to the site."})]})]},"success"):(Q||W)&&O&&!J?(0,r.jsxs)(N.E.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.22},className:"overflow-hidden ".concat(W?"":"mb-8"),children:[(0,r.jsx)("input",{type:"text",name:"tr_address_2",tabIndex:-1,autoComplete:"new-password",value:es,onChange:e=>en(e.target.value),"aria-hidden":"true",style:{display:"none"}}),(0,r.jsxs)("div",{className:"space-y-4 ".concat(W?"":"rounded-2xl border p-4 sm:p-5 ".concat("dark"===H?"border-white/10 bg-black/40":"border-black/[0.07] bg-gray-50/90")),children:[(0,r.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsxs)("label",{className:"block text-xs font-semibold uppercase tracking-wide ".concat("dark"===H?"text-white/60":"text-gray-500"),children:["Your name ",(0,r.jsx)("span",{className:"text-[#FF4500]",children:"*"})]}),(0,r.jsx)("input",{value:ei,onChange:e=>el(e.target.value),className:"w-full rounded-xl border px-3.5 py-2.5 text-sm transition focus:outline-none focus:ring-2 focus:ring-[#FF4500]/40 focus:border-[#FF4500]/60 ".concat("dark"===H?"border-white/10 bg-white/[0.06] text-white placeholder:text-white/25 hover:border-white/20":"border-black/[0.09] bg-white text-gray-900 placeholder:text-gray-400 hover:border-black/20"),maxLength:120,placeholder:"Alex Rivera",autoComplete:"name"})]}),(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsxs)("label",{className:"block text-xs font-semibold uppercase tracking-wide ".concat("dark"===H?"text-white/60":"text-gray-500"),children:["Role ",(0,r.jsx)("span",{className:"normal-case font-normal ".concat("dark"===H?"text-white/30":"text-gray-400"),children:"(optional)"})]}),(0,r.jsx)("input",{value:eo,onChange:e=>ec(e.target.value),className:"w-full rounded-xl border px-3.5 py-2.5 text-sm transition focus:outline-none focus:ring-2 focus:ring-[#FF4500]/40 focus:border-[#FF4500]/60 ".concat("dark"===H?"border-white/10 bg-white/[0.06] text-white placeholder:text-white/25 hover:border-white/20":"border-black/[0.09] bg-white text-gray-900 placeholder:text-gray-400 hover:border-black/20"),maxLength:160,placeholder:"Software Engineer"})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("label",{className:"block text-xs font-semibold uppercase tracking-wide ".concat("dark"===H?"text-white/60":"text-gray-500"),children:["Company you joined ",(0,r.jsx)("span",{className:"normal-case font-normal ".concat("dark"===H?"text-white/30":"text-gray-400"),children:"(optional)"})]}),e_?(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-3 rounded-xl border px-3 py-2.5 ".concat("dark"===H?"border-white/10 bg-white/[0.05]":"border-black/[0.09] bg-white"),children:[(0,r.jsx)(k.Z,{domain:e_.domain,label:e_.name,className:"h-10 w-10 shrink-0",theme:H}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("p",{className:"truncate text-sm font-semibold ".concat("dark"===H?"text-white":"text-gray-900"),children:e_.name}),(0,r.jsx)("p",{className:"truncate text-xs ".concat("dark"===H?"text-white/45":"text-gray-500"),children:e_.domain})]}),(0,r.jsx)("button",{type:"button",onClick:()=>eP(null),className:"shrink-0 text-xs font-semibold underline underline-offset-2 ".concat("text-[#FF4500]"),children:"Change"})]}):(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("input",{value:eZ,onChange:e=>eU(e.target.value),onBlur:()=>{eY()},className:"w-full rounded-xl border px-3.5 py-2.5 text-sm transition focus:outline-none focus:ring-2 focus:ring-[#FF4500]/40 focu
1s:border-[#FF4500]/60 ".concat("dark"===H?"border-white/10 bg-white/[0.06] text-white placeholder:text-white/25 hover:border-white/20":"border-black/[0.09] bg-white text-gray-900 placeholder:text-gray-400 hover:border-black/20"),maxLength:160,placeholder:"Type to search (we suggest spelling fixes)",autoComplete:"organization"}),eT?(0,r.jsx)(g.Z,{className:"pointer-events-none absolute right-3 top-2.5 h-4 w-4 animate-spin text-[#FF4500]"}):null,eL.length>0&&!e_?(0,r.jsx)("ul",{className:"absolute left-0 right-0 z-30 mt-1 max-h-48 overflow-auto rounded-xl border shadow-lg ".concat("dark"===H?"border-white/10 bg-[#1A1A1B]":"border-black/[0.08] bg-white"),role:"listbox",children:eL.map(e=>(0,r.jsx)("li",{children:(0,r.jsxs)("button",{type:"button",role:"option",className:"flex w-full flex-col gap-0.5 px-3 py-2 text-left text-sm transition-colors ".concat("dark"===H?"hover:bg-white/[0.06]":"hover:bg-gray-50"),onClick:()=>{eP(e),eU(e.name),eI([])},children:[(0,r.jsx)("span",{className:"font-semibold ".concat("dark"===H?"text-white":"text-gray-900"),children:e.name}),(0,r.jsx)("span",{className:"text-xs ".concat("dark"===H?"text-white/45":"text-gray-500"),children:e.domain})]})},"".concat(e.domain,"-").concat(e.name)))}):null]}),(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsxs)("label",{className:"block text-[11px] font-semibold ".concat("dark"===H?"text-white/55":"text-gray-600"),children:["Or paste website for logo ",(0,r.jsx)("span",{className:"font-normal opacity-70",children:"(optional)"})]}),(0,r.jsx)("input",{value:eB,onChange:e=>eO(e.target.value),className:"w-full rounded-xl border px-3 py-2 text-sm transition focus:outline-none focus:ring-2 focus:ring-[#FF4500]/40 focus:border-[#FF4500]/60 ".concat("dark"===H?"border-white/10 bg-white/[0.06] text-white placeholder:text-white/25 hover:border-white/20":"border-black/[0.09] bg-white text-gray-900 placeholder:text-gray-400 hover:border-black/20"),maxLength:253,placeholder:"e.g. stripe.com"}),(0,r.jsx)("p",{className:"text-[10px] leading-snug ".concat("dark"===H?"text-white/30":"text-gray-400"),children:"Overrides search when valid â used with Clearbit logos."})]})]}),(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsxs)("span",{className:"block text-xs font-semibold uppercase tracking-wide ".concat("dark"===H?"text-white/60":"text-gray-500"),children:["Rating ",(0,r.jsx)("span",{className:"text-[#FF4500]",children:"*"})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1",onMouseLeave:()=>ep(0),children:[[1,2,3,4,5].map(e=>{let t=e<=(eu||ex);return(0,r.jsx)("button",{type:"button",onClick:()=>eh(e),onMouseEnter:()=>ep(e),className:"rounded-lg p-1 transition-transform hover:scale-110 focus:outline-none focus-visible:ring-2 focus-visible:ring-[#FF4500]/50","aria-label":"".concat(e," star").concat(e>1?"s":""),children:(0,r.jsx)(m.Z,{className:"h-7 w-7 transition-colors ".concat(t?"fill-amber-400 text-amber-400":"dark"===H?"text-white/15 fill-transparent":"text-gray-200 fill-transparent")})},e)}),(0,r.jsx)("span",{className:"ml-2 text-xs font-medium ".concat("dark"===H?"text-white/40":"text-gray-400"),children:["","Poor","Fair","Good","Great","Excellent"][eu||ex]})]})]}),(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsxs)("label",{className:"block text-xs font-semibold uppercase tracking-wide ".concat("dark"===H?"text-white/60":"text-gray-500"),children:["Your story ",(0,r.jsx)("span",{className:"text-[#FF4500]",children:"*"})]}),(0,r.jsx)("textarea",{value:eg,onChange:e=>eb(e.target.value),rows:4,maxLength:2e3,className:"w-full resize-y rounded-xl border px-3.5 py-2.5 text-sm leading-relaxed transition focus:outline-none focus:ring-2 focus:ring-[#FF4500]/40 focus:border-[#FF4500]/60 ".concat("dark"===H?"border-white/10 bg-white/[0.06] text-white placeholder:text-white/25 hover:border-white/20":"border-black/[0.09] bg-white text-gray-900 placeholder:text-gray-400 hover:border-black/20"),placeholder:"What changed for you? ATS score, interview rate, how fast it was â real details help other job seekers."}),(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,r.jsx)("span",{className:"text-[11px] ".concat(eg.length<10&&eg.length>0?"text-amber-500":"dark"===H?"text-white/25":"text-gray-400"),children:eg.length<10&&eg.length>0?"".concat(10-eg.length," more chars needed"):""}),(0,r.jsxs)("span",{className:"text-[11px] tabular-nums ".concat("dark"===H?"text-white/25":"text-gray-400"),children:[eg.length," / 2000"]})]})]}),(0,r.jsxs)("div",{className:"mt-3 space-y-2",children:[(0,r.jsx)("label",{className:"mb-1 block text-xs font-medium ".concat("dark"===H?"text-white/80":"text-gray-800"),children:"Photos (optional)"}),(0,r.jsxs)("p",{className:"mb-2 text-[11px] leading-snug ".concat("dark"===H?"text-white/35":"text-gray-500"),children:["Add up to ",6," images â each opens a cropper so you can drag and zoom to frame your face in the square (same frame as on cards). Then pick which shot is your profile."]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-start gap-3",children:[(0,r.jsxs)("label",{className:"inline-flex cursor-pointer items-center gap-2 rounded-xl border px-3 py-2 text-sm font-medium transition-opacity ".concat(ef||ey.length>=6?"pointer-events-none opacity-50":""," ").concat("dark"===H?"border-white/10 bg-white/5 text-white":"border-black/[0.08] bg-white text-gray-900"),children:[ef?(0,r.jsx)(g.Z,{className:"h-4 w-4 animate-spin text-[#FF4500]"}):(0,r.jsx)(y.Z,{className:"h-4 w-4"}),ef?"Optimisingâ¦":ey.length>=6?"Limit reached":"Add images",(0,r.jsx)("input",{type:"file",accept:"image/jpeg,image/png,image/webp,image/gif",multiple:!0,className:"hidden",disabled:ef||ey.length>=6,onChange:e=>{eV(e.target.files),e.target.value=""}})]}),(0,r.jsx)("div",{className:"flex flex-wrap gap-3",children:ey.map((e,t)=>{let a=t===ej;return(0,r.jsxs)("div",{className:"flex w-[7.25rem] flex-col gap-1.5",children:[(0,r.jsxs)("div",{className:"relative rounded-2xl ".concat(a?"dark"===H?"ring-2 ring-[#FF4500] ring-offset-2 ring-offset-[#1a1a1b]":"ring-2 ring-[#FF4500] ring-offset-2 ring-offset-white":""),children:[(0,r.jsx)("button",{type:"button",className:"block w-full cursor-pointer overflow-hidden rounded-2xl text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-[#FF4500]/70",onClick:()=>{ey.length>1&&eN(t)},"aria-pressed":a,"aria-label":ey.length>1?"".concat(a?"Profile photo: ":"Use as profile photo â ","image ").concat(t+1):"Review photo ".concat(t+1),children:(0,r.jsx)(z,{src:e.preview,theme:H,size:"md",variant:"square"})}),a?(0,r.jsxs)("span",{className:"pointer-events-none absolute bottom-1.5 left-1.5 inline-flex items-center gap-0.5 rounded-md px-1.5 py-0.5 text-[9px] font-bold uppercase tracking-wide shadow ".concat("dark"===H?"bg-[#FF4500]/95 text-white":"bg-[#FF4500] text-white"),children:[(0,r.jsx)(v.Z,{className:"h-3 w-3","aria-hidden":!0}),"Profile"]}):null,(0,r.jsx)("button",{type:"button","data-remove":!0,onClick:e=>{e.stopPropagation(),eX(t)},className:"absolute -right-1 -top-1 flex h-6 w-6 items-center justify-center rounded-full border text-[10px] font-bold shadow ".concat("dark"===H?"border-[#343536] bg-[#272729] text-white":"border-gray-200 bg-white text-gray-700"),"aria-label":"Remove image ".concat(t+1),children:"\xd7"})]}),ey.length>1?a?(0,r.jsx)("p",{className:"text-center text-[10px] font-medium leading-tight ".concat("dark"===H?"text-[#FF4500]/90":"text-[#FF4500]"),children:"Shown on story cards"}):(0,r.jsx)("button",{type:"button",onClick:()=>eN(t),className:"text-center text-[10px] font-semibold underline-offset-2 hover:underline ".concat("dark"===H?"text-white/50 hover:text-white/80":"text-gray-500 hover:text-gray-800"),children:"Use as profile photo"}):(0,r.jsx)("p",{className:"text-center text-[10px] ".concat("dark"===H?"text-white/35":"text-gray-400"),children:"Profile on cards"})]},e.id)})})]})]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3 ".concat(W?"pt-1":""),children:[(0,r.jsx)("p",{className:"text-[11px] leading-relaxed ".concat("dark"===H?"text-white/30":"text-gray-400"),children:"Reviewed by our team before it appears on the site."}),(0,r.jsxs)("button",{type:"button",disabled:ee||ef||eg.length<10||ei.length<2,onClick:e$,className:"inline-flex shrink-0 items-center gap-2 rounded-2xl bg-[#FF4500] px-5 py-2.5 text-sm font-semibold text-white shadow-md shadow-[#FF4500]/25 transition hover:bg-[#
1E03D00] active:scale-[0.97] disabled:opacity-50 disabled:cursor-not-allowed",children:[ee||ef?(0,r.jsx)(g.Z,{className:"h-4 w-4 animate-spin"}):(0,r.jsx)(u.Z,{className:"h-4 w-4"}),ee?"Submittingâ¦":ef?"Optimising photosâ¦":"Submit story"]})]})]})]},"form"):null}),!W&&(K?(0,r.jsxs)("div",{className:"flex items-center justify-center gap-2 py-16 ".concat("dark"===H?"text-white/45":"text-gray-500"),children:[(0,r.jsx)(g.Z,{className:"h-6 w-6 animate-spin text-[#FF4500]"}),"Syncing storiesâ¦"]}):V?(0,r.jsx)("p",{className:"py-6 text-sm ".concat("dark"===H?"text-white/50":"text-gray-600"),children:V}):e5?(0,r.jsx)("p",{className:"py-6 text-sm ".concat("dark"===H?"text-white/45":"text-gray-600"),children:J?"Published member stories will show here once our team posts them.":"No published stories yet â be the first to send one for review."}):J?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"sm:hidden flex w-full flex-col gap-3",children:[...e0?[e0]:[],...e1.slice(0,6)].map((e,t)=>{var a;return(0,r.jsxs)(N.E.article,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.04*t},className:"relative w-full max-w-full shrink-0 rounded-2xl border p-4 flex flex-col gap-2.5 ".concat(0===t?"dark"===H?"border-[#FF4500]/22 bg-gradient-to-br from-white/[0.07] to-transparent":"border-[#FF4500]/18 bg-gradient-to-br from-orange-50/60 to-white":"dark"===H?"border-white/[0.09] bg-white/[0.03]":"border-black/[0.07] bg-white"),children:[e.companyDomain||e.companyName?(0,r.jsx)("div",{className:"absolute right-3 top-3",children:(0,r.jsx)(k.Z,{domain:e.companyDomain,label:e.companyName||e.companyDomain,className:"h-8 w-8",theme:H})}):null,(0,r.jsxs)("div",{className:"flex items-center gap-2.5 pr-10",children:[(0,r.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full ring-[1.5px] ring-offset-[1.5px] ".concat("dark"===H?"ring-[#FF4500]/35 ring-offset-[#1a1a1b]":"ring-[#FF4500]/28 ring-offset-white"),children:(0,r.jsx)(R,{src:e.photoUrl,theme:H})}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("p",{className:"truncate text-[11.5px] font-semibold leading-tight ".concat("dark"===H?"text-white/90":"text-gray-900"),children:e.displayName}),e.roleTitle||e.companyName||e.companyDomain?(0,r.jsx)("p",{className:"truncate text-[9.5px] font-medium leading-tight ".concat("dark"===H?"text-white/40":"text-gray-500"),children:[e.roleTitle,null!==(a=e.companyName)&&void 0!==a?a:e.companyDomain].filter(Boolean).join(" \xb7 ")}):null]}),(0,r.jsx)(A,{rating:e.rating,size:"sm",theme:H})]}),(0,r.jsxs)("p",{className:"line-clamp-3 font-serif text-[11.5px] leading-relaxed ".concat("dark"===H?"text-white/70":"text-gray-700"),children:['"',e.body.length>140?"".concat(e.body.slice(0,140).trim(),"â¦"):e.body,'"']})]},e.id)})}),(0,r.jsxs)("div",{className:"hidden sm:grid min-w-0 gap-4 lg:grid-cols-3",children:[e0?(0,r.jsxs)(N.E.article,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},className:"relative flex min-w-0 flex-col overflow-hidden rounded-2xl border p-5 sm:p-6 ".concat(0===e1.length?"lg:col-span-3":"lg:col-span-2"," ").concat("dark"===H?"border-[#FF4500]/25 bg-gradient-to-br from-white/[0.07] to-transparent":"border-[#FF4500]/20 bg-gradient-to-br from-orange-50/80 to-white"),children:[e0.companyDomain||e0.companyName?(0,r.jsx)("div",{className:"absolute right-5 top-5 z-[3]",children:(0,r.jsx)(k.Z,{domain:e0.companyDomain,label:e0.companyName||e0.companyDomain,className:"h-11 w-11 shadow-md",theme:H})}):null,(0,r.jsx)("div",{className:"pointer-events-none absolute right-4 top-4 opacity-[0.12]",children:(0,r.jsx)(u.Z,{className:"h-16 w-16 text-[#FF4500]"})}),(0,r.jsxs)("div",{className:"relative flex min-w-0 flex-1 flex-col gap-4 sm:flex-row sm:items-start",children:[e0.photoUrl?(0,r.jsx)("div",{className:"mx-auto w-full max-w-[10.5rem] shrink-0 sm:mx-0 sm:max-w-[12.5rem]",children:(0,r.jsx)(z,{src:e0.photoUrl,theme:H,size:"lg"})}):(0,r.jsx)("div",{className:"mx-auto h-24 w-24 shrink-0 overflow-hidden rounded-2xl sm:mx-0 sm:h-28 sm:w-28 ".concat("dark"===H?"ring-1 ring-white/10":"ring-1 ring-black/[0.06]"),children:(0,r.jsx)(R,{src:e0.photoUrl,theme:H})}),(0,r.jsxs)("div",{className:"min-w-0 flex-1 space-y-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(A,{rating:e0.rating,size:"lg",theme:H}),(0,r.jsxs)("p",{className:"mt-3 text-lg font-semibold leading-snug sm:text-xl ".concat("dark"===H?"text-white":"text-gray-950"),children:["â",e0.body.length>220?"".concat(e0.body.slice(0,220),"â¦"):e0.body,"â"]}
1)]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-baseline gap-2 text-sm ".concat("dark"===H?"text-white/50":"text-gray-600"),children:[(0,r.jsx)("span",{className:"font-semibold ".concat("dark"===H?"text-white":"text-gray-900"),children:e0.displayName}),e0.roleTitle?(0,r.jsxs)("span",{children:["\xb7 ",e0.roleTitle]}):null,e0.companyName||e0.companyDomain?(0,r.jsxs)("span",{className:"min-w-0 max-w-full truncate",children:[" \xb7 ",null!==(t=e0.companyName)&&void 0!==t?t:e0.companyDomain]}):null]})]})]})]}):null,(0,r.jsx)("div",{className:"flex min-w-0 flex-col gap-4 ".concat(e1.length>0?"lg:col-span-1":"hidden"),children:e1.slice(0,3).map((e,t)=>(0,r.jsx)(N.E.article,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.05*(t+1)},className:"flex flex-1 flex-col rounded-2xl border p-4 ".concat("dark"===H?"border-white/10 bg-white/[0.03]":"border-black/[0.06] bg-white/90"),children:(0,r.jsxs)("div",{className:"flex gap-3",children:[(0,r.jsx)("div",{className:"h-12 w-12 shrink-0 overflow-hidden rounded-xl ".concat("dark"===H?"ring-1 ring-white/10":"ring-1 ring-black/[0.05]"),children:(0,r.jsx)(R,{src:e.photoUrl,theme:H})}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,r.jsx)(A,{rating:e.rating,size:"sm",theme:H}),e.companyDomain||e.companyName?(0,r.jsx)(k.Z,{domain:e.companyDomain,label:e.companyName||e.companyDomain,className:"h-8 w-8 shrink-0",theme:H}):null]}),(0,r.jsx)("p",{className:"mt-2 line-clamp-4 text-sm leading-relaxed ".concat("dark"===H?"text-white/75":"text-gray-700"),children:e.body}),(0,r.jsxs)("p",{className:"mt-2 truncate text-xs font-medium ".concat("dark"===H?"text-white/45":"text-gray-500"),children:[e.displayName,e.roleTitle?" \xb7 ".concat(e.roleTitle):""]})]})]})},e.id))})]})]}):(0,r.jsxs)("div",{className:"grid min-w-0 gap-4 lg:grid-cols-3",children:[e0?(0,r.jsxs)(N.E.article,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},className:"relative flex min-w-0 flex-col overflow-hidden rounded-2xl border p-5 sm:p-6 ".concat(0===e1.length?"lg:col-span-3":"lg:col-span-2"," ").concat("dark"===H?"border-[#FF4500]/25 bg-gradient-to-br from-white/[0.07] to-transparent":"border-[#FF4500]/20 bg-gradient-to-br from-orange-50/80 to-white"),children:[e0.companyDomain||e0.companyName?(0,r.jsx)("div",{className:"absolute right-5 top-5 z-[3]",children:(0,r.jsx)(k.Z,{domain:e0.companyDomain,label:e0.companyName||e0.companyDomain,className:"h-11 w-11 shadow-md",theme:H})}):null,(0,r.jsx)("div",{className:"pointer-events-none absolute right-4 top-4 opacity-[0.12]",children:(0,r.jsx)(u.Z,{className:"h-16 w-16 text-[#FF4500]"})}),(0,r.jsxs)("div",{className:"relative flex min-w-0 flex-1 flex-col gap-4 sm:flex-row sm:items-start",children:[e0.photoUrl?(0,r.jsx)("div",{className:"mx-auto w-full max-w-[10.5rem] shrink-0 sm:mx-0 sm:max-w-[12.5rem]",children:(0,r.jsx)(z,{src:e0.photoUrl,theme:H,size:"lg"})}):(0,r.jsx)("div",{className:"mx-auto h-24 w-24 shrink-0 overflow-hidden rounded-2xl sm:mx-0 sm:h-28 sm:w-28 ".concat("dark"===H?"ring-1 ring-white/10":"ring-1 ring-black/[0.06]"),children:(0,r.jsx)(R,{src:e0.photoUrl,theme:H})}),(0,r.jsxs)("div",{className:"min-w-0 flex-1 space-y-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(A,{rating:e0.rating,size:"lg",theme:H}),(0,r.jsxs)("p",{className:"mt-3 text-lg font-semibold leading-snug sm:text-xl ".concat("dark"===H?"text-white":"text-gray-950"),children:['"',e0.body.length>220?"".concat(e0.body.slice(0,220),"â¦"):e0.body,'"']})]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-baseline gap-2 text-sm ".concat("dark"===H?"text-white/50":"text-gray-600"),children:[(0,r.jsx)("span",{className:"font-semibold ".concat("dark"===H?"text-white":"text-gray-900"),children:e0.displayName}),e0.roleTitle?(0,r.jsxs)("span",{children:["\xb7 ",e0.roleTitle]}):null,e0.companyName||e0.companyDomain?(0,r.jsxs)("span",{className:"min-w-0 max-w-full truncate",children:[" \xb7 ",null!==(a=e0.companyName)&&void 0!==a?a:e0.companyDomain]}):null]})]})]})]}):null,(0,r.jsx)("div",{className:"flex min-w-0 flex-col gap-4 ".concat(e1.length>0?"lg:col-span-1":"hidden"),children:e1.slice(0,4).map((e,t)=>(0,r.jsx)(N.E.article,{initial:{opacity:0,y:10}
1,animate:{opacity:1,y:0},transition:{delay:.05*(t+1)},className:"flex flex-1 flex-col rounded-2xl border p-4 ".concat("dark"===H?"border-white/10 bg-white/[0.03]":"border-black/[0.06] bg-white/90"),children:(0,r.jsxs)("div",{className:"flex gap-3",children:[(0,r.jsx)("div",{className:"h-12 w-12 shrink-0 overflow-hidden rounded-xl ".concat("dark"===H?"ring-1 ring-white/10":"ring-1 ring-black/[0.05]"),children:(0,r.jsx)(R,{src:e.photoUrl,theme:H})}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,r.jsx)(A,{rating:e.rating,size:"sm",theme:H}),e.companyDomain||e.companyName?(0,r.jsx)(k.Z,{domain:e.companyDomain,label:e.companyName||e.companyDomain,className:"h-8 w-8 shrink-0",theme:H}):null]}),(0,r.jsx)("p",{className:"mt-2 line-clamp-4 text-sm leading-relaxed ".concat("dark"===H?"text-white/75":"text-gray-700"),children:e.body}),(0,r.jsxs)("p",{className:"mt-2 truncate text-xs font-medium ".concat("dark"===H?"text-white/45":"text-gray-500"),children:[e.displayName,e.roleTitle?" \xb7 ".concat(e.roleTitle):""]})]})]})},e.id))}),e1.length>4?(0,r.jsx)("div",{className:"lg:col-span-3",children:(0,r.jsx)("div",{className:"flex gap-3 overflow-x-auto pb-2 pt-1 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:e1.slice(4).map(e=>(0,r.jsxs)("article",{className:"relative w-[260px] shrink-0 rounded-2xl border p-4 ".concat("dark"===H?"border-white/10 bg-white/[0.03]":"border-black/[0.06] bg-white/90"),children:[e.companyDomain||e.companyName?(0,r.jsx)("div",{className:"absolute right-3 top-3",children:(0,r.jsx)(k.Z,{domain:e.companyDomain,label:e.companyName||e.companyDomain,className:"h-7 w-7",theme:H})}):null,(0,r.jsxs)("div",{className:"flex gap-3 pr-9",children:[(0,r.jsx)("div",{className:"h-11 w-11 shrink-0 overflow-hidden rounded-lg ".concat("dark"===H?"ring-1 ring-white/10":"ring-1 ring-black/[0.05]"),children:(0,r.jsx)(R,{src:e.photoUrl,theme:H})}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)(A,{rating:e.rating,size:"sm",theme:H}),(0,r.jsx)("p",{className:"mt-1 line-clamp-3 text-xs leading-relaxed ".concat("dark"===H?"text-white/65":"text-gray-600"),children:e.body}),(0,r.jsx)("p",{className:"mt-2 truncate text-[11px] font-medium ".concat("dark"===H?"text-white/40":"text-gray-500"),children:e.displayName})]})]})]},e.id))})}):null]}))]})]}),eD&&eS?(0,r.jsx)(D,{imageSrc:eS,batchHint:eR?"".concat(eR.current," of ").concat(eR.total):void 0,theme:H,onCancel:eG,onApply:e=>{eK(e)}},eS):null]})}},58220:function(e,t,a){a.d(t,{Z:function(){return l}});var r=a(85893),s=a(67294),n=a(39889),i=a(617);function l(e){let{domain:t,label:a="",className:l="",imgClassName:o="",theme:c="dark"}=e,d=(t||"").trim(),m=(0,s.useMemo)(()=>
1(0,i.X1)(d),[d]),[x,h]=(0,s.useState)(0);(0,s.useEffect)(()=>{h(0)},[d]);let u=(a||t||"?").replace(/[^a-zA-Z0-9]/g,"").slice(0,2).toUpperCase()||"?",p=(0,s.useCallback)(()=>{h(e=>e+1)},[]);return!d||x>=m.length?(0,r.jsx)("div",{className:"flex items-center justify-center rounded-md ring-1 ".concat("dark"===c?"bg-white/[0.08] ring-white/10":"bg-black/[0.04] ring-black/[0.08]"," ").concat(l),title:a||t||"Company",children:u.length<=2&&"?"!==u?(0,r.jsx)("span",{className:"text-[9px] font-bold tracking-tight ".concat("dark"===c?"text-white/75":"text-gray-700"),children:u}):(0,r.jsx)(n.Z,{className:"h-3 w-3 ".concat("dark"===c?"text-white/35":"text-gray-400"),"aria-hidden":!0})}):(0,r.jsx)("div",{className:"relative overflow-hidden rounded-md bg-white ring-1 ".concat("dark"===c?"ring-white/15":"ring-black/10"," ").concat(l),children:(0,r.jsx)("img",{src:m[x],alt:"",className:"h-full w-full object-contain p-0.5 ".concat(o),loading:"lazy",referrerPolicy:"no-referrer",onError:p})})}},16706:function(e,t,a){a.d(t,{Z:function(){return c}});var r=a(85893),s=a(67294),n=a(49240),i=a(67694);let l={sm:"w-8 h-8 text-sm",md:"w-10 h-10 text-base",lg:"w-12 h-12 text-lg",xl:"w-16 h-16 text-xl"},o={sm:32,md:40,lg:48,xl:64};function c(e){let{name:t,src:a,size:c="md",className:d="",alt:m="User avatar"}=e,{theme:x}=(0,i.F)(),[h,u]=(0,s.useState)(!1),p=t?String(t).trim().charAt(0).toUpperCase():"",g=l[c]||l.md,b=o[c]||40,f=!!a&&a.trim().length>0&&!h;return(0,r.jsx)("div",{className:"inline-flex items-center justify-center rounded-full overflow-hidden ".concat(g," ").concat(f&&("xl"===c||"lg"===c)?"ring-2 ring-[#FF4500]/20 ring-offset-2 ring-offset-white dark:ring-offset-[#1A1A1B]":""," ").concat(d," relative"),"aria-hidden":!0,children:f?(0,r.jsx)("img",{src:a,alt:m,width:b,height:b,className:"w-full h-full object-cover",referrerPolicy:"no-referrer",loading:"lazy",onError:()=>u(!0)}):(0,r.jsx)("div",{className:"flex items-center justify-center w-full h-full text-white font-semibold ".concat("dark"===x?"bg-gradient-to-br from-[#FF4500] via-[#CC3700] to-[#0079D3]":"bg-gradient-to-br from-blue-500 via-[#FF4500] to-[#E03D00]"),children:p?(0,r.jsx)("span",{className:"leading-none ".concat("xl"===c?"text-xl":"lg"===c?"text-lg":"text-sm"),children:p}):(0,r.jsx)(n.Z,{className:"w-5 h-5 sm:w-6 sm:h-6",fill:"rgba(255,255,255,0.95)"})})})}},79298:function(e,t,a){a.d(t,{II:function(){return m},Zb:function(){return x},hU:function(){return d},zx:function(){return c}});var r=a(85893),s=a(67294),n=a(87542),i=a(67694);let l=e=>{switch(e){case"xs":return"h-9 px-3 text-xs font-bold gap-1.5";case"sm":return"h-10 px-4 text-sm font-bold gap-2";case"md":default:return"h-11 px-5 text-sm font-bold gap-2";case"lg":return"h-12 px-6 text-base font-bold gap-2.5";case"xl":return"h-14 px-8 text-lg font-bold gap-3"}},o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"light",a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return a?"dark"===t?"bg-[#272729] text-[#818384] border-[#343536] cursor-not-allowed opacity-60":"bg-gray-200 text-gray-400 border-gray-300 cursor-not-allowed opacity-60":({primary:"dark"===t?"bg-[#FF4500] hover:bg-[#FF5414] text-white border-0 shadow-sm":"bg-[#FF4500] hover:bg-[#E03D00] text-white border-0 shadow-sm",secondary:"dark"===t?"bg-[#272729] hover:bg-[#343536] text-[#D7DADC] border border-[#343536] hover:border-[#4F4F51] shadow-sm":"bg-white hover:bg-[#F6F7F8] text-[#1C1C1C] border border-[#EDEFF1] hover:border-[#D7DADC] shadow-sm",outline:"dark"===t?"bg-transparent hover:bg-[#272729] text-[#D7DADC] hover:text-white border border-[#343536] hover:border-[#4F4F51]":"bg-transparent hover:bg-[#F6F7F8] text-[#1C1C1C] hover:text-[#FF4500] border border-[#EDEFF1] hover:border-[#FF4500]",ghost:"dark"===t?"bg-[#272729]/70 hover:bg-[#343536] text-[#D7DADC] border border-[#343536] shadow-sm hover:shadow hover:border-[#4F4F51]":"bg-white hover:bg-[#F6F7F8] text-[#576F76] hover:text-[#1C1C1C] border border-[#EDEFF1] shadow-sm hover:shadow-md hover:border-[#D7DADC]",success:"dark"===t?"bg-emerald-600 hover:bg-emerald-500 text-white border-0 shadow-[0_4px_14px_rgba(16,185,129,0.3)]":"bg-emerald-600 hover:bg-emerald-700 text-white border-0 shadow-[0_4px_14px_rgba(16,185,129,0.2)]",warning:"dark"===t?"bg-[#FF4500] hover:bg-[#FF4500] text-white border-0 shadow-[0_4px_14px_rgba(245,158,11,0.3)]":"bg-[#FF4500] hover:bg-[#CC3700] text-white border-0 shadow-[0_4px_14px_rgba(245,158,11,0.2)]",danger:"dark"===t?"bg-red-600 hover:bg-red-500 text-white border-0 shadow-[0_4px_14px_rgba(239,68,68,0.3)]":"bg-red-600 hover:bg-red-700 text-white border-0 shadow-[0_4px_14px_rgba(239,68,68,0.2)]",accent:"dark"===t?"bg-white hover:bg-gray-100 text-[#1A1A1B] border-0 shadow-sm":"bg-white hover:bg-[#F6F7F8] text-[#1C1C1C] border border-[#
1EDEFF1] shadow-sm"})[e]},c=e=>{let{children:t,variant:a="primary",size:c="md",fullWidth:d=!1,disabled:m=!1,loading:x=!1,icon:h,iconPosition:u="left",onClick:p,type:g="button",className:b="",theme:f,noHoverScale:w=!1,testId:y}=e,{theme:v}=(0,i.F)(),j=l(c),N=o(a,f||v,m||x);return(0,r.jsxs)(n.E.button,{type:g,onClick:p,disabled:m||x,"data-testid":y,whileHover:m||x||w?{}:{scale:1.02},whileTap:m||x?{}:{scale:.98},transition:{duration:.15,ease:"easeOut"},className:"\n relative inline-flex items-center justify-center rounded-full border \n transition-shadow duration-200 ease-out\n focus:outline-none focus:ring-2 focus:ring-[#0079D3]/50 focus:ring-offset-0\n ".concat(j,"\n ").concat(N,"\n ").concat(d?"w-full":"","\n ").concat(b,"\n "),style:{willChange:"transform",fontFamily:"Rajdhani, system-ui, sans-serif",fontWeight:700},children:[x&&(0,r.jsx)("div",{className:"\n border-2 border-current border-t-transparent rounded-full animate-spin\n ".concat("xs"===c?"w-3 h-3":"sm"===c?"w-4 h-4":"md"===c?"w-4 h-4":"lg"===c?"w-5 h-5":"w-6 h-6","\n ")}),!x&&h&&"left"===u&&s.createElement(h,{className:"".concat("xs"===c?"w-3 h-3":"sm"===c?"w-4 h-4":"md"===c?"w-4 h-4":"lg"===c?"w-5 h-5":"w-6 h-6"),strokeWidth:1.5}),!x&&t,!x&&h&&"right"===u&&s.createElement(h,{className:"".concat("xs"===c?"w-3 h-3":"sm"===c?"w-4 h-4":"md"===c?"w-4 h-4":"lg"===c?"w-5 h-5":"w-6 h-6"),strokeWidth:1.5})]})},d=e=>{let{icon:t,variant:a="ghost",size:l="md",disabled:c=!1,loading:d=!1,onClick:m,className:x="",theme:h,"aria-label":u}=e,{theme:p}=(0,i.F)(),g=(e=>{switch(e){case"xs":return"w-7 h-7";case"sm":return"w-9 h-9";case"md":default:return"w-11 h-11";case"lg":return"w-13 h-13";case"xl":return"w-15 h-15"}})(l),b=(e=>{switch(e){case"xs":return"w-3 h-3";case"sm":return"w-4 h-4";case"md":default:return"w-5 h-5";case"lg":return"w-6 h-6";case"xl":return"w-7 h-7"}})(l),f=o(a,h||p,c||d),w="ghost"!==a;return(0,r.jsx)(n.E.button,{onClick:m,disabled:c||d,"aria-label":u,whileHover:c||d?{}:{scale:1.05},whileTap:c||d?{}:{scale:.95},className:"\n inline-flex items-center justify-center rounded-full ".concat(w?"border":""," transition-all duration-300\n focus:outline-none focus:ring-2 focus:ring-[#0079D3] focus:ring-offset-0\n ").concat(g,"\n ").concat(f,"\n ").concat(x,"\n "),children:d?(0,r.jsx)("div",{className:"border-2 border-current border-t-transparent rounded-full animate-spin ".concat(b)}):s.createElement(t,{className:b,strokeWidth:1.5})})},m=e=>{let{as:t="input",type:a="text",placeholder:n,value:l,onChange:o,onKeyPress:c,disabled:d=!1,error:m,label:x,required:h=!1,fullWidth:u=!0,size:p="md",icon:g,className:b="",style:f,theme:w,rows:y,id:v,autoComplete:j,endAdornment:N,maxLength:k}=e,{theme:F}=(0,i.F)(),C=w||F,D=(0,s.useId)(),E=null!=v?v:"tr-inp-".concat(D.replace(/:/g,"")),S="".concat(E,"-err"),A="textarea"===t?"sm"===p?"min-h-[100px] rounded-xl resize-y px-3 py-2.5 text-sm leading-relaxed":"min-h-[140px] rounded-xl resize-y px-4 py-3 text-base leading-relaxed":(e=>{switch(e){case"sm":return"h-10 min-h-[40px] px-3 text-sm rounded-lg";case"md":default:return"h-12 min-h-[48px] px-4 text-base rounded-xl";case"lg":return"h-12 min-h-[48px] px-5 text-base rounded-xl"}})(p),R=N&&"textarea"!==t?" pr-11":"",z="\n ".concat(u?"w-full":"","\n ").concat(A,"\n ").concat(g&&"textarea"!==t?"pl-10":"","\n ").concat(R,"\n border-2 transition-all duration-300 focus:outline-none focus:ring-4\n ").concat("dark"===C?"bg-[#272729] border-[#343536] hover:border-[#0079D3]/50 focus:border-[#0079D3] focus:ring-[#0079D3]/20 text-[#D7DADC] placeholder-[#818384]":"bg-[#F8FAFC] border-slate-300 hover:border-[#0079D3]/50 focus:border-[#0079D3] focus:ring-[#0079D3]/20 text-[#1C1C1C] placeholder-gray-500","\n ").concat(m?"border-red-500 focus:border-red-500 focus:ring-red-500/20":"","\n ").concat(d?"opacity-50 cursor-not-allowed":"","\n ").concat(b,"\n ");return(0,r.jsxs)("div",{className:u?"w-full":"",children:[x&&(0,r.jsxs)("label",{htmlFor:E,className:"block text-sm font-medium mb-2 ".concat("dark"===C?"text-[#D7DADC]":"text-[#1C1C1C]"),children:[x,h&&(0,r.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,r.jsxs)("div",{className:"relative",children:[g&&"textarea"!==t&&s.createElement(g,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 pointer-events-none z-[1] ".concat("sm"===p?"w-4 h-4":"w-5 h-5"," ").concat("dark"===C?"text-[#818384]":"text-gray-400"),strokeWidth:1.5}),"textarea"===t?(0,r.jsx)("textarea",{id:E,placeholder:n,value:l,onCh
1ange:o,onKeyPress:c,disabled:d,className:z,style:f,rows:y,"data-textarea":"true",maxLength:k,"aria-invalid":!!m||void 0,"aria-describedby":m?S:void 0}):(0,r.jsx)("input",{id:E,type:a,placeholder:n,value:l,onChange:o,onKeyPress:c,disabled:d,className:z,style:f,autoComplete:j,maxLength:k,"aria-invalid":!!m||void 0,"aria-describedby":m?S:void 0}),N&&"textarea"!==t&&(0,r.jsx)("div",{className:"absolute right-2 top-1/2 z-[1] -translate-y-1/2 flex items-center",children:N})]}),m&&(0,r.jsx)("p",{id:S,role:"alert",className:"mt-1 text-sm ".concat("dark"===C?"text-red-400":"text-red-600"),children:m})]})},x=e=>{let{children:t,variant:a="default",padding:s="md",className:n="",theme:l}=e,{theme:o}=(0,i.F)(),c=(e=>{switch(e){case"none":return"";case"sm":return"p-3 sm:p-4";case"md":default:return"p-4 sm:p-6";case"lg":return"p-6 sm:p-8";case"xl":return"p-8 sm:p-10"}})(s),d=((e,t)=>{switch(e){case"elevated":return"dark"===t?"bg-[#1A1A1B] border border-[#343536] shadow-md":"bg-white border border-[#EDEFF1] shadow-md";case"outlined":return"dark"===t?"bg-[#1A1A1B] border-2 border-[#343536]":"bg-white border-2 border-[#EDEFF1]";default:return"dark"===t?"bg-[#1A1A1B] border border-[#343536]":"bg-white border border-[#EDEFF1]"}})(a,l||o||"light");return(0,r.jsx)("div",{className:"rounded-md transition-all duration-300 ".concat(d," ").concat(c," ").concat(n),children:t})}},617:function(e,t,a){function r(e){var t,a,r;if(null==e)return;let s=String(e).trim().toLowerCase();if(!s)return;let n=null===(r=(s=(s=s.replace(/^https?:\/\//,"")).replace(/^www\./,"")).split("/")[0])||void 0===r?void 0:null===(a=r.split("?")[0])||void 0===a?void 0:null===(t=a.split("#")[0])||void 0===t?void 0:t.trim();if(n&&/^[\w.-]+\.[a-z]{2,63}$/i.test(n))return n.slice(0,253)}function s(e){let t=e.trim().toLowerCase();return t?[function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:128,a=e.trim().toLowerCase();return"https://www.google.com/s2/favicons?domain=".concat(encodeURIComponent(a),"&sz=").concat(t)}(t,128),function(e){let t=e.trim().toLowerCase();return"https://icons.duckduckgo.com/ip3/".concat(encodeURIComponent(t),".ico")}(t),function(e){let t=e.trim().toLowerCase();return"https://logo.clearbit.com/".concat(encodeURIComponent(t))}(t)]:[]}a.d(t,{Jx:function(){return r},X1:function(){return s}})}}]);
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.