@igamingcareer/igaming-components 1.1.15 → 1.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -7718,7 +7718,7 @@
7718
7718
  bg-transparent border-white hover:bg-white/10 text-white font-medium
7719
7719
  px-6 py-2 rounded flex items-center gap-2`,children:[e.jsx(Il,{size:18}),i]})]}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6 mt-12 animate-fade-in",style:{animationDelay:"0.2s"},children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:"10,000+"}),e.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Active Candidates"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:"500+"}),e.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Partner Companies"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:"25+"}),e.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Countries"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl md:text-3xl font-bold text-accent",children:"95%"}),e.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Success Rate"})]})]})]})})})})}function LL({title:t,values:a}){return e.jsx("section",{className:"py-16 bg-white",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsx("h2",{className:"text-3xl font-bold text-center mb-12",children:t}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:a.map((s,n)=>{const r=s.icon;return e.jsxs("div",{className:"flex flex-col items-center text-center",children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-yellow-100 flex items-center justify-center mb-4",children:e.jsx(r,{className:"w-8 h-8 text-yellow-500"})}),e.jsx("h3",{className:"text-xl font-bold mb-2",children:s.title}),e.jsx("p",{className:"text-gray-600",children:s.description})]},n)})})]})})}function IL({title:t,testimonial:a,stats:s,partnerLogos:n}){const[r,i]=p.useState(0),l=[{id:1,name:"Sarah Mitchell",role:"Product Manager",company:"BetTech Gaming",image:"/placeholder.svg",rating:5,content:"Landed my dream job at DraftKings in 2 weeks! The platform was easy to use and the team provided great support throughout the process.",location:"Malta"},{id:2,name:"Marcus Chen",role:"Software Engineer",company:"Casino Solutions",image:"/placeholder.svg",rating:5,content:"The salary insights feature helped me negotiate a 25% increase. Best iGaming job platform I've used.",location:"London"},{id:3,name:"Elena Rodriguez",role:"UX Designer",company:"SportsBet Pro",image:"/placeholder.svg",rating:5,content:"Found multiple interview opportunities within days. The quality of companies on this platform is outstanding.",location:"Gibraltar"},{id:4,name:"James Wilson",role:"Data Analyst",company:"Gaming Analytics",image:"/placeholder.svg",rating:5,content:"Professional, efficient, and results-driven. Helped me transition from fintech to iGaming seamlessly.",location:"Remote"}];p.useEffect(()=>{const d=setInterval(()=>{i(u=>(u+1)%l.length)},5e3);return()=>clearInterval(d)},[l.length]);const c=()=>{i(d=>(d+1)%l.length)},h=()=>{i(d=>(d-1+l.length)%l.length)};return e.jsx("section",{className:"py-16 bg-gradient-to-r from-[#0f1219] to-[#1a2236]",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"text-center mb-16 animate-fade-in",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-primary-foreground mb-4",children:t}),e.jsx("p",{className:"text-xl text-primary-foreground/80 max-w-2xl mx-auto",children:"Join thousands of professionals who've found their dream careers through our platform"})]}),e.jsxs("div",{className:"max-w-4xl mx-auto relative animate-scale-in",children:[e.jsxs("div",{className:"bg-card/10 backdrop-blur-sm border border-primary-foreground/20 p-8 md:p-12 rounded-2xl shadow-accent",children:[e.jsx(Xo,{className:"h-12 w-12 text-yellow-500 mb-6"}),e.jsxs("blockquote",{className:"text-xl md:text-2xl text-primary-foreground mb-8 leading-relaxed font-medium",children:['"',l[r].content,'"']}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-accent/20 rounded-full flex items-center justify-center",children:e.jsx("span",{className:"text-yellow-500 font-bold text-xl",children:l[r].name.charAt(0)})}),e.jsxs("div",{children:[e.jsx("div",{className:"text-primary-foreground font-bold text-lg",children:l[r].name}),e.jsxs("div",{className:"text-primary-foreground/70",children:[l[r].role," at ",l[r].company]}),e.jsx("div",{className:"text-primary-foreground/60 text-sm",children:l[r].location})]})]}),e.jsx("div",{className:"flex items-center gap-1",children:[...Array(l[r].rating)].map((d,u)=>e.jsx(et,{className:"h-5 w-5 text-yellow-500 fill-current"},u))})]})]}),e.jsxs("div",{className:"flex items-center justify-between mt-8",children:[e.jsx(P,{variant:"outline",size:"icon",onClick:h,className:"bg-card/20 border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground hover:text-primary",children:e.jsx(ts,{className:"h-6 w-6"})}),e.jsx("div",{className:"flex gap-2",children:l.map((d,u)=>e.jsx("button",{onClick:()=>i(u),className:`w-3 h-3 rounded-full transition-all duration-300 ${u===r?"bg-accent scale-125":"bg-primary-foreground/30 hover:bg-primary-foreground/50"}`},u))}),e.jsx(P,{variant:"outline",size:"icon",onClick:c,className:"bg-card/20 border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground hover:text-primary",children:e.jsx(la,{className:"h-6 w-6"})})]})]}),e.jsxs("div",{className:"mt-16 grid grid-cols-1 md:grid-cols-3 gap-8 animate-fade-in",style:{animationDelay:"0.2s"},children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-4xl font-bold text-yellow-500 mb-2",children:"95%"}),e.jsx("div",{className:"text-primary-foreground/80",children:"Success Rate"}),e.jsx("div",{className:"text-primary-foreground/60 text-sm",children:"Candidates placed successfully"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-4xl font-bold text-yellow-500 mb-2",children:"48h"}),e.jsx("div",{className:"text-primary-foreground/80",children:"Average Response"}),e.jsx("div",{className:"text-primary-foreground/60 text-sm",children:"From application to interview"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-4xl font-bold text-yellow-500 mb-2",children:"€15k"}),e.jsx("div",{className:"text-primary-foreground/80",children:"Avg. Salary Increase"}),e.jsx("div",{className:"text-primary-foreground/60 text-sm",children:"When switching through our platform"})]})]})]})})}const pR=t=>/.+@.+\..+/.test(t);function AL({title:t,description:a,inputPlaceholder:s,buttonText:n,isAuthenticated:r=!1,userEmail:i=null,isSubscribed:l,onSubscribe:c,onManageAlerts:h,onSignInRequired:d,loading:u=!1,source:y="newsletter",api_url:x="http://localhost:5147",email:m=null}){const[g,f]=p.useState(i??m??""),[k,v]=p.useState(!!l),[N,M]=p.useState(!1);p.useEffect(()=>{if(i){f(i);return}m&&f(m)},[i,m]),p.useEffect(()=>{if(typeof l=="boolean"){v(l);return}try{const T=localStorage.getItem("email"),A=localStorage.getItem("leadId");T&&A&&(v(!0),f(R=>R||T))}catch{}},[l]);const b=u||N,C=p.useMemo(()=>i??m??g,[i,m,g]),S=()=>{v(!0);try{localStorage.setItem("email",g)}catch{}},L=async()=>{const T=await fetch(`${x}/api/leads`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:g,source:y,utmCampaign:"general",utmMedium:"ui",utmSource:"newsletter_component"})});if(!T.ok){const R=await T.text();throw new Error(R||"Submission failed")}const A=await T.json();try{localStorage.setItem("leadId",A.id),localStorage.setItem("email",g)}catch{}},w=async()=>{if(pR(g)){M(!0);try{if(c){await c({email:g,source:y}),S();return}await L(),S()}catch{c||alert("Network error while submitting")}finally{M(!1)}}},j=()=>{if(r){h==null||h();return}d==null||d()},I=k||l;return e.jsx("section",{className:"py-12 bg-[#0f1219] text-white",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[e.jsx("h2",{className:"text-2xl font-bold mb-4",children:t}),e.jsx("p",{className:"text-gray-300 mb-6",children:a}),I?e.jsxs("p",{className:"text-green-400 font-semibold",children:["✅ Thanks! You’re subscribed",C?` as ${C}`:"","."]}):r?e.jsx("div",{className:"max-w-lg mx-auto",children:e.jsx(P,{onClick:j,disabled:b,className:"px-6 py-2 bg-yellow-500 text-black font-medium rounded hover:bg-yellow-400 transition-colors",children:b?"Loading...":"Manage My Alerts"})}):e.jsxs("form",{className:"flex flex-col sm:flex-row gap-2 max-w-lg mx-auto",onSubmit:T=>{T.preventDefault(),w()},children:[e.jsx(te,{type:"email",placeholder:s,value:g,onChange:T=>f(T.target.value),disabled:b,className:"px-4 py-2 rounded bg-gray-800 border border-gray-700 text-white flex-grow"}),e.jsx(P,{type:"submit",disabled:b,className:"px-6 py-2 bg-yellow-500 text-black font-medium rounded hover:bg-yellow-400 transition-colors",children:b?"Subscribing...":n})]})]})})})}function PL({title:t,locations:a,trendingKeywords:s,searchButtonText:n,apiUrl:r,className:i="",showTrending:l=!0,showLocationFilter:c=!0,mockMode:h=!1,searchPageUrl:d="#"}){const[u,y]=p.useState(""),[x,m]=p.useState(""),[g,f]=p.useState([]),[k,v]=p.useState(!1),N="Browse 3,500+ iGaming Jobs",M=[{id:"malta",name:"Malta"},{id:"remote",name:"Remote"},{id:"uk",name:"United Kingdom"},{id:"gibraltar",name:"Gibraltar"}],b=[{label:"CRM Manager",href:"/jobs?q=crm-manager"},{label:"Game Developer",href:"/jobs?q=game-developer"},{label:"Compliance Specialist",href:"/jobs?q=compliance-specialist"}];p.useEffect(()=>{const j=new URLSearchParams(window.location.search),I=j.get("q")||"",T=j.get("location")||"";y(I),m(T)},[]),p.useEffect(()=>{if(u.length<3){f([]);return}const j=setTimeout(()=>{C(u)},300);return()=>clearTimeout(j)},[u]);const C=async j=>{if(!r||h){f([`${j} Developer`,`${j} Manager`,`${j} Specialist`,`${j} Coordinator`,`${j} Agent`]);return}try{v(!0);const I=await fetch(`${r}/suggestions?q=${encodeURIComponent(j)}`);if(!I.ok)throw new Error("Failed to fetch suggestions");const T=await I.json();f(T.suggestions||[])}catch(I){console.error("Error fetching suggestions:",I),f([])}finally{v(!1)}},S=j=>y(j),L=j=>{j.key==="Enter"&&w()},w=()=>{if(h){console.log(`Mock Search - Term: ${u}, Location: ${x}`);return}const j=new URLSearchParams;u&&j.set("q",u),x&&j.set("location",x),window.location.href=`/jobs?${j.toString()}`};return e.jsxs("section",{className:`py-12 bg-gray-100 ${i}`,children:[e.jsxs("div",{className:"text-center mb-12 animate-fade-in",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:t||N}),e.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Find your next opportunity at the world's leading gaming companies"})]}),e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"bg-card p-6 rounded-2xl shadow-card mb-12 animate-scale-in",children:[e.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[e.jsxs("div",{className:"flex-grow relative",children:[e.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:e.jsx(wt,{className:"h-5 w-5 text-gray-400"})}),e.jsx(te,{type:"text",placeholder:"Search by role, company, or keyword",className:"w-full pl-10 border-gray-300",value:u,onChange:j=>S(j.target.value),onKeyDown:L,list:"job-suggestions"}),e.jsx("datalist",{id:"job-suggestions",children:g.map((j,I)=>e.jsx("option",{value:j},I))}),u&&e.jsx("button",{onClick:()=>y(""),className:"absolute inset-y-0 right-0 pr-3 flex items-center",children:e.jsx(Na,{className:"h-5 w-5 text-gray-400 hover:text-gray-600"})}),k&&e.jsx("div",{className:"absolute inset-y-0 right-0 pr-10 flex items-center",children:e.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-gray-400"})})]}),c&&e.jsx("div",{className:"w-full md:w-1/3",children:e.jsxs("select",{className:"w-full h-10 px-3 border border-gray-300 rounded-md",value:x,onChange:j=>m(j.target.value),children:[e.jsx("option",{value:"",children:"All Locations"}),(a||M).map(j=>e.jsx("option",{value:j.id,children:j.name},j.id))]})}),e.jsxs(P,{className:"bg-yellow-500 hover:bg-yellow-400 text-black font-medium",onClick:w,disabled:k,children:[e.jsx(wt,{size:18}),k?"Searching...":n||"Search"]})]}),l&&(s||b).length>0&&e.jsxs("div",{className:"mt-4 flex flex-wrap gap-2 items-center",children:[e.jsx("span",{className:"text-muted-foreground font-medium",children:"Trending:"}),(s||b).map((j,I)=>e.jsx("a",{href:j.href,className:"inline-flex items-center justify-center whitespace-nowrap font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 rounded-md text-xs h-8 px-3 text-yellow-600 hover:text-yellow-800-hover hover:bg-accent/10",children:j.label},I))]})]})})]})}const vn=ie.forwardRef(({className:t,...a},s)=>e.jsx(Bl.Root,{ref:s,className:oe("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t),...a}));vn.displayName=Bl.Root.displayName;const il=ie.forwardRef(({className:t,...a},s)=>e.jsx(Bl.Image,{ref:s,className:oe("aspect-square h-full w-full",t),...a}));il.displayName=Bl.Image.displayName;const bn=ie.forwardRef(({className:t,...a},s)=>e.jsx(Bl.Fallback,{ref:s,className:oe("flex h-full w-full items-center justify-center rounded-full bg-muted",t),...a}));bn.displayName=Bl.Fallback.displayName;function yR(t){if(typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",a.appendChild(s),s.styleSheet?s.styleSheet.cssText=t:s.appendChild(document.createTextNode(t))}const TL=p.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),Vl=()=>{const t=p.useContext(TL);if(!t)throw new Error("useDrawerContext must be used within a Drawer.Root");return t};yR(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
7720
7720
  [data-state=closed]
7721
- ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,100%,0)}}@keyframes slideFromTop{from{transform:translate3d(0,-100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,-100%,0)}}@keyframes slideFromLeft{from{transform:translate3d(-100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(-100%,0,0)}}@keyframes slideFromRight{from{transform:translate3d(100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(100%,0,0)}}`);const xR=24,gR=typeof window<"u"?p.useLayoutEffect:p.useEffect;function QC(...t){return(...a)=>{for(let s of t)typeof s=="function"&&s(...a)}}function fR(){return kC(/^Mac/)}function kR(){return kC(/^iPhone/)}function e9(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function vR(){return kC(/^iPad/)||fR()&&navigator.maxTouchPoints>1}function RL(){return kR()||vR()}function kC(t){return typeof window<"u"&&window.navigator!=null?t.test(window.navigator.platform):void 0}const tN=typeof document<"u"&&window.visualViewport;function t9(t){let a=window.getComputedStyle(t);return/(auto|scroll)/.test(a.overflow+a.overflowX+a.overflowY)}function DL(t){for(t9(t)&&(t=t.parentElement);t&&!t9(t);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}const bR=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Yc=0,aN;function wR(t={}){let{isDisabled:a}=t;gR(()=>{if(!a)return Yc++,Yc===1&&RL()&&(aN=jR()),()=>{Yc--,Yc===0&&(aN==null||aN())}},[a])}function jR(){let t,a=0,s=y=>{t=DL(y.target),!(t===document.documentElement&&t===document.body)&&(a=y.changedTouches[0].pageY)},n=y=>{if(!t||t===document.documentElement||t===document.body){y.preventDefault();return}let x=y.changedTouches[0].pageY,m=t.scrollTop,g=t.scrollHeight-t.clientHeight;g!==0&&((m<=0&&x>a||m>=g&&x<a)&&y.preventDefault(),a=x)},r=y=>{let x=y.target;ON(x)&&x!==document.activeElement&&(y.preventDefault(),x.style.transform="translateY(-2000px)",x.focus(),requestAnimationFrame(()=>{x.style.transform=""}))},i=y=>{let x=y.target;ON(x)&&(x.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{x.style.transform="",tN&&(tN.height<window.innerHeight?requestAnimationFrame(()=>{a9(x)}):tN.addEventListener("resize",()=>a9(x),{once:!0}))}))},l=()=>{window.scrollTo(0,0)},c=window.pageXOffset,h=window.pageYOffset,d=QC(MR(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let u=QC(Zl(document,"touchstart",s,{passive:!1,capture:!0}),Zl(document,"touchmove",n,{passive:!1,capture:!0}),Zl(document,"touchend",r,{passive:!1,capture:!0}),Zl(document,"focus",i,!0),Zl(window,"scroll",l));return()=>{d(),u(),window.scrollTo(c,h)}}function MR(t,a,s){let n=t.style[a];return t.style[a]=s,()=>{t.style[a]=n}}function Zl(t,a,s,n){return t.addEventListener(a,s,n),()=>{t.removeEventListener(a,s,n)}}function a9(t){let a=document.scrollingElement||document.documentElement;for(;t&&t!==a;){let s=DL(t);if(s!==document.documentElement&&s!==document.body&&s!==t){let n=s.getBoundingClientRect().top,r=t.getBoundingClientRect().top,i=t.getBoundingClientRect().bottom;const l=s.getBoundingClientRect().bottom+xR;i>l&&(s.scrollTop+=r-n)}t=s.parentElement}}function ON(t){return t instanceof HTMLInputElement&&!bR.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}function NR(t,a){typeof t=="function"?t(a):t!=null&&(t.current=a)}function CR(...t){return a=>t.forEach(s=>NR(s,a))}function _L(...t){return ie.useCallback(CR(...t),t)}const zL=new WeakMap;function At(t,a,s=!1){if(!t||!(t instanceof HTMLElement))return;let n={};Object.entries(a).forEach(([r,i])=>{if(r.startsWith("--")){t.style.setProperty(r,i);return}n[r]=t.style[r],t.style[r]=i}),!s&&zL.set(t,n)}function SR(t,a){if(!t||!(t instanceof HTMLElement))return;let s=zL.get(t);s&&(t.style[a]=s[a])}const Pt=t=>{switch(t){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return t}};function Jc(t,a){if(!t)return null;const s=window.getComputedStyle(t),n=s.transform||s.webkitTransform||s.mozTransform;let r=n.match(/^matrix3d\((.+)\)$/);return r?parseFloat(r[1].split(", ")[Pt(a)?13:12]):(r=n.match(/^matrix\((.+)\)$/),r?parseFloat(r[1].split(", ")[Pt(a)?5:4]):null)}function LR(t){return 8*(Math.log(t+1)-2)}function sN(t,a){if(!t)return()=>{};const s=t.style.cssText;return Object.assign(t.style,a),()=>{t.style.cssText=s}}function IR(...t){return(...a)=>{for(const s of t)typeof s=="function"&&s(...a)}}const ht={DURATION:.5,EASE:[.32,.72,0,1]},qL=.4,AR=.25,PR=100,FL=8,An=16,BN=26,nN="vaul-dragging";function EL(t){const a=p.useRef(t);return p.useEffect(()=>{a.current=t}),p.useMemo(()=>(...s)=>a.current==null?void 0:a.current.call(a,...s),[])}function TR({defaultProp:t,onChange:a}){const s=p.useState(t),[n]=s,r=p.useRef(n),i=EL(a);return p.useEffect(()=>{r.current!==n&&(i(n),r.current=n)},[n,r,i]),s}function OL({prop:t,defaultProp:a,onChange:s=()=>{}}){const[n,r]=TR({defaultProp:a,onChange:s}),i=t!==void 0,l=i?t:n,c=EL(s),h=p.useCallback(d=>{if(i){const y=typeof d=="function"?d(t):d;y!==t&&c(y)}else r(d)},[i,t,r,c]);return[l,h]}function RR({activeSnapPointProp:t,setActiveSnapPointProp:a,snapPoints:s,drawerRef:n,overlayRef:r,fadeFromIndex:i,onSnapPointChange:l,direction:c="bottom",container:h,snapToSequentialPoint:d}){const[u,y]=OL({prop:t,defaultProp:s==null?void 0:s[0],onChange:a}),[x,m]=p.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);p.useEffect(()=>{function L(){m({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",L),()=>window.removeEventListener("resize",L)},[]);const g=p.useMemo(()=>u===(s==null?void 0:s[s.length-1])||null,[s,u]),f=p.useMemo(()=>s==null?void 0:s.findIndex(L=>L===u),[s,u]),k=s&&s.length>0&&(i||i===0)&&!Number.isNaN(i)&&s[i]===u||!s,v=p.useMemo(()=>{const L=h?{width:h.getBoundingClientRect().width,height:h.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var w;return(w=s==null?void 0:s.map(j=>{const I=typeof j=="string";let T=0;if(I&&(T=parseInt(j,10)),Pt(c)){const R=I?T:x?j*L.height:0;return x?c==="bottom"?L.height-R:-L.height+R:R}const A=I?T:x?j*L.width:0;return x?c==="right"?L.width-A:-L.width+A:A}))!=null?w:[]},[s,x,h]),N=p.useMemo(()=>f!==null?v==null?void 0:v[f]:null,[v,f]),M=p.useCallback(L=>{var w;const j=(w=v==null?void 0:v.findIndex(I=>I===L))!=null?w:null;l(j),At(n.current,{transition:`transform ${ht.DURATION}s cubic-bezier(${ht.EASE.join(",")})`,transform:Pt(c)?`translate3d(0, ${L}px, 0)`:`translate3d(${L}px, 0, 0)`}),v&&j!==v.length-1&&j!==i&&j<i?At(r.current,{transition:`opacity ${ht.DURATION}s cubic-bezier(${ht.EASE.join(",")})`,opacity:"0"}):At(r.current,{transition:`opacity ${ht.DURATION}s cubic-bezier(${ht.EASE.join(",")})`,opacity:"1"}),y(s==null?void 0:s[Math.max(j,0)])},[n.current,s,v,i,r,y]);p.useEffect(()=>{if(u||t){var L;const w=(L=s==null?void 0:s.findIndex(j=>j===t||j===u))!=null?L:-1;v&&w!==-1&&typeof v[w]=="number"&&M(v[w])}},[u,t,s,v,M]);function b({draggedDistance:L,closeDrawer:w,velocity:j,dismissible:I}){if(i===void 0)return;const T=c==="bottom"||c==="right"?(N??0)-L:(N??0)+L,A=f===i-1,R=f===0,_=L>0;if(A&&At(r.current,{transition:`opacity ${ht.DURATION}s cubic-bezier(${ht.EASE.join(",")})`}),!d&&j>2&&!_){I?w():M(v[0]);return}if(!d&&j>2&&_&&v&&s){M(v[s.length-1]);return}const F=v==null?void 0:v.reduce((E,U)=>typeof E!="number"||typeof U!="number"?E:Math.abs(U-T)<Math.abs(E-T)?U:E),O=Pt(c)?window.innerHeight:window.innerWidth;if(j>qL&&Math.abs(L)<O*.4){const E=_?1:-1;if(E>0&&g){M(v[s.length-1]);return}if(R&&E<0&&I&&w(),f===null)return;M(v[f+E]);return}M(F)}function C({draggedDistance:L}){if(N===null)return;const w=c==="bottom"||c==="right"?N-L:N+L;(c==="bottom"||c==="right")&&w<v[v.length-1]||(c==="top"||c==="left")&&w>v[v.length-1]||At(n.current,{transform:Pt(c)?`translate3d(0, ${w}px, 0)`:`translate3d(${w}px, 0, 0)`})}function S(L,w){if(!s||typeof f!="number"||!v||i===void 0)return null;const j=f===i-1;if(f>=i&&w)return 0;if(j&&!w)return 1;if(!k&&!j)return null;const T=j?f+1:f-1,A=j?v[T]-v[T-1]:v[T+1]-v[T],R=L/Math.abs(A);return j?1-R:R}return{isLastSnapPoint:g,activeSnapPoint:u,shouldFade:k,getPercentageDragged:S,setActiveSnapPoint:y,activeSnapPointIndex:f,onRelease:b,onDrag:C,snapPointsOffset:v}}const DR=()=>()=>{};function _R(){const{direction:t,isOpen:a,shouldScaleBackground:s,setBackgroundColorOnScale:n,noBodyStyles:r}=Vl(),i=p.useRef(null),l=p.useMemo(()=>document.body.style.backgroundColor,[]);function c(){return(window.innerWidth-BN)/window.innerWidth}p.useEffect(()=>{if(a&&s){i.current&&clearTimeout(i.current);const h=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!h)return;IR(n&&!r?sN(document.body,{background:"black"}):DR,sN(h,{transformOrigin:Pt(t)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${ht.DURATION}s`,transitionTimingFunction:`cubic-bezier(${ht.EASE.join(",")})`}));const d=sN(h,{borderRadius:`${FL}px`,overflow:"hidden",...Pt(t)?{transform:`scale(${c()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${c()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{d(),i.current=window.setTimeout(()=>{l?document.body.style.background=l:document.body.style.removeProperty("background")},ht.DURATION*1e3)}}},[a,s,l])}let Yl=null;function zR({isOpen:t,modal:a,nested:s,hasBeenOpened:n,preventScrollRestoration:r,noBodyStyles:i}){const[l,c]=p.useState(()=>typeof window<"u"?window.location.href:""),h=p.useRef(0),d=p.useCallback(()=>{if(e9()&&Yl===null&&t&&!i){Yl={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:y,innerHeight:x}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-h.current}px`,left:`${-y}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const m=x-window.innerHeight;m&&h.current>=x&&(document.body.style.top=`${-(h.current+m)}px`)}),300)}},[t]),u=p.useCallback(()=>{if(e9()&&Yl!==null&&!i){const y=-parseInt(document.body.style.top,10),x=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Yl),window.requestAnimationFrame(()=>{if(r&&l!==window.location.href){c(window.location.href);return}window.scrollTo(x,y)}),Yl=null}},[l]);return p.useEffect(()=>{function y(){h.current=window.scrollY}return y(),window.addEventListener("scroll",y),()=>{window.removeEventListener("scroll",y)}},[]),p.useEffect(()=>{s||!n||(t?(!window.matchMedia("(display-mode: standalone)").matches&&d(),a||window.setTimeout(()=>{u()},500)):u())},[t,n,l,a,s,d,u]),{restorePositionSetting:u}}function BL({open:t,onOpenChange:a,children:s,onDrag:n,onRelease:r,snapPoints:i,shouldScaleBackground:l=!1,setBackgroundColorOnScale:c=!0,closeThreshold:h=AR,scrollLockTimeout:d=PR,dismissible:u=!0,handleOnly:y=!1,fadeFromIndex:x=i&&i.length-1,activeSnapPoint:m,setActiveSnapPoint:g,fixed:f,modal:k=!0,onClose:v,nested:N,noBodyStyles:M,direction:b="bottom",defaultOpen:C=!1,disablePreventScroll:S=!0,snapToSequentialPoint:L=!1,preventScrollRestoration:w=!1,repositionInputs:j=!0,onAnimationEnd:I,container:T,autoFocus:A=!1}){var R,_;const[F=!1,O]=OL({defaultProp:C,prop:t,onChange:xe=>{a==null||a(xe),!xe&&!N&&Lt(),setTimeout(()=>{I==null||I(xe)},ht.DURATION*1e3),xe&&!k&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),xe||(document.body.style.pointerEvents="auto")}}),[E,U]=p.useState(!1),[W,G]=p.useState(!1),[ae,Q]=p.useState(!1),J=p.useRef(null),K=p.useRef(null),ce=p.useRef(null),ge=p.useRef(null),de=p.useRef(null),ee=p.useRef(!1),q=p.useRef(null),D=p.useRef(0),z=p.useRef(!1),Y=p.useRef(0),se=p.useRef(null),fe=p.useRef(((R=se.current)==null?void 0:R.getBoundingClientRect().height)||0),we=p.useRef(((_=se.current)==null?void 0:_.getBoundingClientRect().width)||0),ct=p.useRef(0),is=p.useCallback(xe=>{i&&xe===pt.length-1&&(K.current=new Date)},[]),{activeSnapPoint:Bt,activeSnapPointIndex:he,setActiveSnapPoint:_e,onRelease:_t,snapPointsOffset:pt,onDrag:sa,shouldFade:fa,getPercentageDragged:Sn}=RR({snapPoints:i,activeSnapPointProp:m,setActiveSnapPointProp:g,drawerRef:se,fadeFromIndex:x,overlayRef:J,onSnapPointChange:is,direction:b,container:T,snapToSequentialPoint:L});wR({isDisabled:!F||W||!k||ae||!E||!j||!S});const{restorePositionSetting:Lt}=zR({isOpen:F,modal:k,nested:N,hasBeenOpened:E,preventScrollRestoration:w,noBodyStyles:M});function it(){return(window.innerWidth-BN)/window.innerWidth}function $s(xe){var Ie,Te;!u&&!i||se.current&&!se.current.contains(xe.target)||(fe.current=((Ie=se.current)==null?void 0:Ie.getBoundingClientRect().height)||0,we.current=((Te=se.current)==null?void 0:Te.getBoundingClientRect().width)||0,G(!0),ce.current=new Date,RL()&&window.addEventListener("touchend",()=>ee.current=!1,{once:!0}),xe.target.setPointerCapture(xe.pointerId),D.current=Pt(b)?xe.pageY:xe.pageX)}function ot(xe,Ie){var Te,ze;let Ne=xe;const Ke=(Te=window.getSelection())==null?void 0:Te.toString(),dt=se.current?Jc(se.current,b):null,pe=new Date;if(Ne.hasAttribute("data-vaul-no-drag")||Ne.closest("[data-vaul-no-drag]"))return!1;if(b==="right"||b==="left")return!0;if(K.current&&pe.getTime()-K.current.getTime()<500)return!1;if(dt!==null&&(b==="bottom"?dt>0:dt<0))return!0;if(Ke&&Ke.length>0)return!1;if(pe.getTime()-((ze=de.current)==null?void 0:ze.getTime())<d&&dt===0||Ie)return de.current=pe,!1;for(;Ne;){if(Ne.scrollHeight>Ne.clientHeight){if(Ne.scrollTop!==0)return de.current=new Date,!1;if(Ne.getAttribute("role")==="dialog")return!0}Ne=Ne.parentNode}return!0}function Ya(xe){if(se.current&&W){const Ie=b==="bottom"||b==="right"?1:-1,Te=(D.current-(Pt(b)?xe.pageY:xe.pageX))*Ie,ze=Te>0,Ne=i&&!u&&!ze;if(Ne&&he===0)return;const Ke=Math.abs(Te),dt=document.querySelector("[data-vaul-drawer-wrapper]"),pe=b==="bottom"||b==="top"?fe.current:we.current;let Z=Ke/pe;const le=Sn(Ke,ze);if(le!==null&&(Z=le),Ne&&Z>=1||!ee.current&&!ot(xe.target,ze))return;if(se.current.classList.add(nN),ee.current=!0,At(se.current,{transition:"none"}),At(J.current,{transition:"none"}),i&&sa({draggedDistance:Te}),ze&&!i){const ve=LR(Te),Re=Math.min(ve*-1,0)*Ie;At(se.current,{transform:Pt(b)?`translate3d(0, ${Re}px, 0)`:`translate3d(${Re}px, 0, 0)`});return}const ye=1-Z;if((fa||x&&he===x-1)&&(n==null||n(xe,Z),At(J.current,{opacity:`${ye}`,transition:"none"},!0)),dt&&J.current&&l){const ve=Math.min(it()+Z*(1-it()),1),Re=8-Z*8,Ft=Math.max(0,14-Z*14);At(dt,{borderRadius:`${Re}px`,transform:Pt(b)?`scale(${ve}) translate3d(0, ${Ft}px, 0)`:`scale(${ve}) translate3d(${Ft}px, 0, 0)`,transition:"none"},!0)}if(!i){const ve=Ke*Ie;At(se.current,{transform:Pt(b)?`translate3d(0, ${ve}px, 0)`:`translate3d(${ve}px, 0, 0)`})}}}p.useEffect(()=>{var xe;function Ie(){if(!se.current||!j)return;const Te=document.activeElement;if(ON(Te)||z.current){var ze;const Ne=((ze=window.visualViewport)==null?void 0:ze.height)||0,Ke=window.innerHeight;let dt=Ke-Ne;const pe=se.current.getBoundingClientRect().height||0,Z=pe>Ke*.8;ct.current||(ct.current=pe);const le=se.current.getBoundingClientRect().top;if(Math.abs(Y.current-dt)>60&&(z.current=!z.current),i&&i.length>0&&pt&&he){const ye=pt[he]||0;dt+=ye}if(Y.current=dt,pe>Ne||z.current){const ye=se.current.getBoundingClientRect().height;let ve=ye;ye>Ne&&(ve=Ne-(Z?le:BN)),f?se.current.style.height=`${ye-Math.max(dt,0)}px`:se.current.style.height=`${Math.max(ve,Ne-le)}px`}else se.current.style.height=`${ct.current}px`;i&&i.length>0&&!z.current?se.current.style.bottom="0px":se.current.style.bottom=`${Math.max(dt,0)}px`}}return(xe=window.visualViewport)==null||xe.addEventListener("resize",Ie),()=>{var Te;return(Te=window.visualViewport)==null?void 0:Te.removeEventListener("resize",Ie)}},[he,i,pt]);function _a(xe){os(),v==null||v(),xe||O(!1),setTimeout(()=>{i&&_e(i[0])},ht.DURATION*1e3)}function ka(){if(!se.current)return;const xe=document.querySelector("[data-vaul-drawer-wrapper]"),Ie=Jc(se.current,b);At(se.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${ht.DURATION}s cubic-bezier(${ht.EASE.join(",")})`}),At(J.current,{transition:`opacity ${ht.DURATION}s cubic-bezier(${ht.EASE.join(",")})`,opacity:"1"}),l&&Ie&&Ie>0&&F&&At(xe,{borderRadius:`${FL}px`,overflow:"hidden",...Pt(b)?{transform:`scale(${it()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${it()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${ht.DURATION}s`,transitionTimingFunction:`cubic-bezier(${ht.EASE.join(",")})`},!0)}function os(){!W||!se.current||(se.current.classList.remove(nN),ee.current=!1,G(!1),ge.current=new Date)}function va(xe){if(!W||!se.current)return;se.current.classList.remove(nN),ee.current=!1,G(!1),ge.current=new Date;const Ie=Jc(se.current,b);if(!ot(xe.target,!1)||!Ie||Number.isNaN(Ie)||ce.current===null)return;const Te=ge.current.getTime()-ce.current.getTime(),ze=D.current-(Pt(b)?xe.pageY:xe.pageX),Ne=Math.abs(ze)/Te;if(Ne>.05&&(Q(!0),setTimeout(()=>{Q(!1)},200)),i){_t({draggedDistance:ze*(b==="bottom"||b==="right"?1:-1),closeDrawer:_a,velocity:Ne,dismissible:u}),r==null||r(xe,!0);return}if(b==="bottom"||b==="right"?ze>0:ze<0){ka(),r==null||r(xe,!0);return}if(Ne>qL){_a(),r==null||r(xe,!1);return}var Ke;const dt=Math.min((Ke=se.current.getBoundingClientRect().height)!=null?Ke:0,window.innerHeight);var pe;const Z=Math.min((pe=se.current.getBoundingClientRect().width)!=null?pe:0,window.innerWidth),le=b==="left"||b==="right";if(Math.abs(Ie)>=(le?Z:dt)*h){_a(),r==null||r(xe,!1);return}r==null||r(xe,!0),ka()}p.useEffect(()=>(F&&(At(document.documentElement,{scrollBehavior:"auto"}),K.current=new Date),()=>{SR(document.documentElement,"scrollBehavior")}),[F]);function Ja(xe){const Ie=xe?(window.innerWidth-An)/window.innerWidth:1,Te=xe?-An:0;q.current&&window.clearTimeout(q.current),At(se.current,{transition:`transform ${ht.DURATION}s cubic-bezier(${ht.EASE.join(",")})`,transform:`scale(${Ie}) translate3d(0, ${Te}px, 0)`}),!xe&&se.current&&(q.current=setTimeout(()=>{const ze=Jc(se.current,b);At(se.current,{transition:"none",transform:Pt(b)?`translate3d(0, ${ze}px, 0)`:`translate3d(${ze}px, 0, 0)`})},500))}function na(xe,Ie){if(Ie<0)return;const Te=(window.innerWidth-An)/window.innerWidth,ze=Te+Ie*(1-Te),Ne=-An+Ie*An;At(se.current,{transform:Pt(b)?`scale(${ze}) translate3d(0, ${Ne}px, 0)`:`scale(${ze}) translate3d(${Ne}px, 0, 0)`,transition:"none"})}function ra(xe,Ie){const Te=Pt(b)?window.innerHeight:window.innerWidth,ze=Ie?(Te-An)/Te:1,Ne=Ie?-An:0;Ie&&At(se.current,{transition:`transform ${ht.DURATION}s cubic-bezier(${ht.EASE.join(",")})`,transform:Pt(b)?`scale(${ze}) translate3d(0, ${Ne}px, 0)`:`scale(${ze}) translate3d(${Ne}px, 0, 0)`})}return p.createElement(Ct.Root,{defaultOpen:C,onOpenChange:xe=>{!u&&!xe||(xe?U(!0):_a(!0),O(xe))},open:F},p.createElement(TL.Provider,{value:{activeSnapPoint:Bt,snapPoints:i,setActiveSnapPoint:_e,drawerRef:se,overlayRef:J,onOpenChange:a,onPress:$s,onRelease:va,onDrag:Ya,dismissible:u,handleOnly:y,isOpen:F,isDragging:W,shouldFade:fa,closeDrawer:_a,onNestedDrag:na,onNestedOpenChange:Ja,onNestedRelease:ra,keyboardIsOpen:z,modal:k,snapPointsOffset:pt,direction:b,shouldScaleBackground:l,setBackgroundColorOnScale:c,noBodyStyles:M,container:T,autoFocus:A}},s))}const HL=p.forwardRef(function({...t},a){const{overlayRef:s,snapPoints:n,onRelease:r,shouldFade:i,isOpen:l,modal:c}=Vl(),h=_L(a,s),d=n&&n.length>0;return c?p.createElement(Ct.Overlay,{onMouseUp:r,ref:h,"data-vaul-overlay":"","data-vaul-snap-points":l&&d?"true":"false","data-vaul-snap-points-overlay":l&&i?"true":"false",...t}):(typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),null)});HL.displayName="Drawer.Overlay";const VL=p.forwardRef(function({onPointerDownOutside:t,style:a,onOpenAutoFocus:s,...n},r){const{drawerRef:i,onPress:l,onRelease:c,onDrag:h,keyboardIsOpen:d,snapPointsOffset:u,modal:y,isOpen:x,direction:m,snapPoints:g,container:f,handleOnly:k,autoFocus:v}=Vl(),[N,M]=p.useState(!1),b=_L(r,i),C=p.useRef(null),S=p.useRef(null),L=p.useRef(!1),w=g&&g.length>0;_R();const j=(T,A,R=0)=>{if(L.current)return!0;const _=Math.abs(T.y),F=Math.abs(T.x),O=F>_,E=["bottom","right"].includes(A)?1:-1;if(A==="left"||A==="right"){if(!(T.x*E<0)&&F>=0&&F<=R)return O}else if(!(T.y*E<0)&&_>=0&&_<=R)return!O;return L.current=!0,!0};p.useEffect(()=>{w&&window.requestAnimationFrame(()=>{M(!0)})},[]);function I(T){C.current=null,L.current=!1,c(T)}return p.createElement(Ct.Content,{"data-vaul-drawer-direction":m,"data-vaul-drawer":"","data-vaul-delayed-snap-points":N?"true":"false","data-vaul-snap-points":x&&w?"true":"false","data-vaul-custom-container":f?"true":"false",...n,ref:b,style:u&&u.length>0?{"--snap-point-height":`${u[0]}px`,...a}:a,onPointerDown:T=>{k||(n.onPointerDown==null||n.onPointerDown.call(n,T),C.current={x:T.pageX,y:T.pageY},l(T))},onOpenAutoFocus:T=>{s==null||s(T),v||T.preventDefault()},onPointerDownOutside:T=>{if(t==null||t(T),!y||T.defaultPrevented){T.preventDefault();return}d.current&&(d.current=!1)},onFocusOutside:T=>{if(!y){T.preventDefault();return}},onPointerMove:T=>{if(S.current=T,k||(n.onPointerMove==null||n.onPointerMove.call(n,T),!C.current))return;const A=T.pageY-C.current.y,R=T.pageX-C.current.x,_=T.pointerType==="touch"?10:2;j({x:R,y:A},m,_)?h(T):(Math.abs(R)>_||Math.abs(A)>_)&&(C.current=null)},onPointerUp:T=>{n.onPointerUp==null||n.onPointerUp.call(n,T),C.current=null,L.current=!1,c(T)},onPointerOut:T=>{n.onPointerOut==null||n.onPointerOut.call(n,T),I(S.current)},onContextMenu:T=>{n.onContextMenu==null||n.onContextMenu.call(n,T),I(S.current)}})});VL.displayName="Drawer.Content";const qR=250,FR=120,UL=p.forwardRef(function({preventCycle:t=!1,children:a,...s},n){const{closeDrawer:r,isDragging:i,snapPoints:l,activeSnapPoint:c,setActiveSnapPoint:h,dismissible:d,handleOnly:u,isOpen:y,onPress:x,onDrag:m}=Vl(),g=p.useRef(null),f=p.useRef(!1);function k(){if(f.current){M();return}window.setTimeout(()=>{v()},FR)}function v(){if(i||t||f.current){M();return}if(M(),(!l||l.length===0)&&d){r();return}if(c===l[l.length-1]&&d){r();return}const C=l.findIndex(L=>L===c);if(C===-1)return;const S=l[C+1];h(S)}function N(){g.current=window.setTimeout(()=>{f.current=!0},qR)}function M(){window.clearTimeout(g.current),f.current=!1}return p.createElement("div",{onClick:k,onPointerCancel:M,onPointerDown:b=>{u&&x(b),N()},onPointerMove:b=>{u&&m(b)},ref:n,"data-vaul-drawer-visible":y?"true":"false","data-vaul-handle":"","aria-hidden":"true",...s},p.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},a))});UL.displayName="Drawer.Handle";function ER({onDrag:t,onOpenChange:a,...s}){const{onNestedDrag:n,onNestedOpenChange:r,onNestedRelease:i}=Vl();if(!n)throw new Error("Drawer.NestedRoot must be placed in another drawer");return p.createElement(BL,{nested:!0,onClose:()=>{r(!1)},onDrag:(l,c)=>{n(l,c),t==null||t(l,c)},onOpenChange:l=>{l&&r(l)},onRelease:i,...s})}function OR(t){const a=Vl(),{container:s=a.container,...n}=t;return p.createElement(Ct.Portal,{container:s,...n})}const Gs={Root:BL,NestedRoot:ER,Content:VL,Overlay:HL,Trigger:Ct.Trigger,Portal:OR,Handle:UL,Close:Ct.Close,Title:Ct.Title,Description:Ct.Description},GL=({shouldScaleBackground:t=!0,...a})=>e.jsx(Gs.Root,{shouldScaleBackground:t,...a});GL.displayName="Drawer";const BR=Gs.Portal,$L=ie.forwardRef(({className:t,...a},s)=>e.jsx(Gs.Overlay,{ref:s,className:oe("fixed inset-0 z-50 bg-black/80",t),...a}));$L.displayName=Gs.Overlay.displayName;const WL=ie.forwardRef(({className:t,children:a,...s},n)=>e.jsxs(BR,{children:[e.jsx($L,{}),e.jsxs(Gs.Content,{ref:n,className:oe("fixed inset-x-0 bottom-0 z-50 flex flex-col h-[100dvh] max-h-[100dvh] rounded-t-[10px] border bg-background overflow-hidden",t),...s,children:[e.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),a]})]}));WL.displayName="DrawerContent";const ZL=({className:t,...a})=>e.jsx("div",{className:oe("grid gap-1.5 p-4 text-center sm:text-left",t),...a});ZL.displayName="DrawerHeader";const YL=({className:t,...a})=>e.jsx("div",{className:oe("mt-auto flex flex-col gap-2 p-4",t),...a});YL.displayName="DrawerFooter";const JL=ie.forwardRef(({className:t,...a},s)=>e.jsx(Gs.Title,{ref:s,className:oe("text-lg font-semibold leading-none tracking-tight",t),...a}));JL.displayName=Gs.Title.displayName;const HR=ie.forwardRef(({className:t,...a},s)=>e.jsx(Gs.Description,{ref:s,className:oe("text-sm text-muted-foreground",t),...a}));HR.displayName=Gs.Description.displayName;const VR=[{id:"profile",label:"My Profile",icon:ss,path:"/profile"},{id:"saved-jobs",label:"Saved Jobs",icon:Ce,path:"/saved/jobs",countKey:"jobs"},{id:"saved-companies",label:"Saved Companies",icon:Se,path:"/saved/companies",countKey:"companies"},{id:"saved-courses",label:"Saved Courses",icon:Ut,path:"/saved/courses",countKey:"courses"},{id:"alerts",label:"Job Alerts",icon:Ba,path:"/alerts",countKey:"alerts"},{id:"settings",label:"Settings",icon:Ga,path:"/settings"}],HN=({user:t,savedCounts:a={},menuItems:s=VR,onNavigate:n,onLogout:r,onSignIn:i,className:l=""})=>{const[c,h]=p.useState(!1),d=y=>y?y.split(" ").map(x=>x[0]).join("").toUpperCase().slice(0,2):"?",u=y=>{n==null||n(y),h(!1)};return e.jsxs(e.Fragment,{children:[e.jsxs("button",{onClick:()=>t?h(!0):i==null?void 0:i(),className:`relative flex items-center justify-center ${l}`,"aria-label":t?"Open user menu":"Sign in",children:[e.jsxs(vn,{className:"w-9 h-9 border-2 border-primary-foreground/20 hover:border-accent transition-colors",children:[t!=null&&t.avatar?e.jsx(il,{src:t.avatar,alt:t.name||"User"}):null,e.jsx(bn,{className:"bg-accent text-accent-foreground text-sm font-semibold",children:t?t.initials||d(t.name):e.jsx(ss,{className:"w-4 h-4"})})]}),a.alerts&&a.alerts>0&&e.jsx("span",{className:"absolute -top-0.5 -right-0.5 w-3.5 h-3.5 bg-destructive rounded-full border-2 border-primary flex items-center justify-center",children:e.jsx("span",{className:"text-[9px] font-bold text-white",children:a.alerts>9?"9+":a.alerts})})]}),e.jsx(GL,{open:c,onOpenChange:h,children:e.jsxs(WL,{children:[e.jsx(ZL,{className:"border-b border-border pb-4",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs(vn,{className:"w-14 h-14 border-2 border-accent",children:[t!=null&&t.avatar?e.jsx(il,{src:t.avatar,alt:t.name||"User"}):null,e.jsx(bn,{className:"bg-accent text-accent-foreground text-lg font-semibold",children:t?t.initials||d(t.name):"?"})]}),e.jsxs("div",{className:"flex-1 text-left",children:[e.jsx(JL,{className:"text-lg font-semibold",children:(t==null?void 0:t.name)||"Guest"}),(t==null?void 0:t.email)&&e.jsx("p",{className:"text-sm text-muted-foreground",children:t.email})]})]})}),e.jsx("div",{className:"flex-1 overflow-y-auto overscroll-contain",children:e.jsx("div",{className:"py-2",children:s.map(y=>{const x=y.icon,m=y.countKey?a[y.countKey]:void 0;return e.jsxs("button",{onClick:()=>u(y.path),className:"w-full flex items-center gap-4 px-6 py-2 hover:bg-muted/50 transition-colors text-left",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-secondary flex items-center justify-center",children:e.jsx(x,{className:"w-5 h-5 text-muted-foreground"})}),e.jsx("span",{className:"flex-1 font-medium",children:y.label}),m!==void 0&&m>0&&e.jsx("span",{className:"px-2.5 py-0.5 rounded-full bg-accent/10 text-accent text-sm font-semibold",children:m}),e.jsx(la,{className:"w-4 h-4 text-muted-foreground"})]},y.id)})})}),t&&r&&e.jsx(YL,{className:"border-t bg-background pb-[env(safe-area-inset-bottom)]",children:e.jsxs("button",{onClick:()=>{r(),h(!1)},className:"w-full flex items-center justify-center gap-2 py-3 text-destructive hover:bg-destructive/10 rounded-lg transition-colors font-medium",children:[e.jsx(wl,{className:"w-5 h-5"}),"Sign Out"]})})]})})]})},XL=ie.forwardRef(({className:t,children:a,...s},n)=>e.jsxs(Zo.Root,{ref:n,className:oe("relative overflow-hidden",t),...s,children:[e.jsx(Zo.Viewport,{className:"h-full w-full rounded-[inherit]",children:a}),e.jsx(KL,{}),e.jsx(Zo.Corner,{})]}));XL.displayName=Zo.Root.displayName;const KL=ie.forwardRef(({className:t,orientation:a="vertical",...s},n)=>e.jsx(Zo.ScrollAreaScrollbar,{ref:n,orientation:a,className:oe("flex touch-none select-none transition-colors",a==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",a==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",t),...s,children:e.jsx(Zo.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));KL.displayName=Zo.ScrollAreaScrollbar.displayName;const s9={name:"John Doe",email:"john@example.com",initials:"JD"},n9={jobs:3,companies:2,courses:1,alerts:2},r9=[{id:"profile",label:"My Profile",icon:ss,path:"/profile"},{id:"saved-jobs",label:"Saved Jobs",icon:Ce,path:"/saved/jobs",countKey:"jobs"},{id:"saved-companies",label:"Saved Companies",icon:Se,path:"/saved/companies",countKey:"companies"},{id:"saved-courses",label:"Saved Courses",icon:Ut,path:"/saved/courses",countKey:"courses"},{id:"alerts",label:"Job Alerts",icon:Ba,path:"/alerts",countKey:"alerts"},{id:"settings",label:"Settings",icon:Ga,path:"/settings"}],i9=t=>{window.location.href=t};function QL({logo:t,navItems:a}){const[s,n]=p.useState(!1);return e.jsxs("header",{className:"bg-[#0f1219] text-white py-4",children:[e.jsxs("div",{className:"container mx-auto px-4 flex justify-between items-center",children:[e.jsxs("a",{href:"/",className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-yellow-500 flex items-center justify-center",children:e.jsx("span",{className:"text-black font-bold text-sm",children:t.initials})}),e.jsx("span",{className:"font-bold text-xl",children:t.text})]}),e.jsx("nav",{className:"hidden md:flex items-center gap-6",children:a.map((r,i)=>e.jsx("a",{href:r.href,className:"hover:text-yellow-400 transition-colors",children:r.label},i))}),e.jsxs("div",{className:"hidden lg:flex items-center space-x-4",children:[e.jsx(P,{variant:"ghost",size:"icon",className:"text-primary-foreground hover:bg-primary-variant",children:e.jsx(Ba,{className:"h-5 w-5"})}),e.jsx(P,{variant:"accent",children:"Post a Job"}),e.jsx(HN,{user:s9,savedCounts:n9,menuItems:r9,onNavigate:i9,onLogout:()=>console.log("Logout"),onSignIn:()=>console.log("Sign in")})]}),e.jsxs("div",{className:"lg:hidden flex items-center gap-2",children:[e.jsx(HN,{user:s9,savedCounts:n9,menuItems:r9,onNavigate:i9,onLogout:()=>console.log("Logout"),onSignIn:()=>console.log("Sign in")}),e.jsx(P,{variant:"ghost",size:"icon",className:"text-primary-foreground",onClick:()=>n(!s),children:s?e.jsx(He,{className:"h-6 w-6"}):e.jsx(jl,{className:"h-6 w-6"})})]})]}),s&&e.jsx("div",{className:"md:hidden bg-[#0f1219] py-4",children:e.jsx("nav",{className:"container mx-auto px-4 flex flex-col gap-4",children:a.map((r,i)=>e.jsx("a",{href:r.href,className:"hover:text-yellow-400 transition-colors py-2",onClick:()=>n(!1),children:r.label},i))})})]})}function eI({logo:t,tagline:a,socialLinks:s,columns:n,contactInfo:r,copyright:i,poweredBy:l}){return e.jsx("footer",{className:"bg-[#0f1219] text-white py-12 border-t border-gray-800",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8 mb-12",children:[e.jsxs("div",{className:"col-span-1",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-yellow-500 flex items-center justify-center",children:e.jsx("span",{className:"text-black font-bold text-sm",children:t.initials})}),e.jsx("span",{className:"font-bold text-xl",children:t.text})]}),e.jsx("p",{className:"text-gray-400 mb-4",children:a}),e.jsx("div",{className:"flex gap-4",children:s.map((c,h)=>e.jsx("a",{href:c.href,className:"text-gray-400 hover:text-white",children:c.icon},h))})]}),n.map((c,h)=>e.jsxs("div",{className:"col-span-1",children:[e.jsx("h3",{className:"font-bold text-lg mb-4",children:c.title}),e.jsx("ul",{className:"space-y-2",children:c.links.map((d,u)=>e.jsx("li",{children:e.jsx("a",{href:d.href,className:"text-gray-400 hover:text-white",children:d.label})},u))})]},h))]}),e.jsx("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 py-6 border-t border-gray-800",children:e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[e.jsx(ca,{size:16}),e.jsx("span",{children:r.email})]}),e.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[e.jsx(dn,{size:16}),e.jsx("span",{children:r.phone})]}),e.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[e.jsx(Fe,{size:16}),e.jsx("span",{children:r.location})]})]})}),e.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 pt-6 border-t border-gray-800 text-gray-400 text-sm",children:[e.jsx("p",{children:i}),e.jsx("p",{children:l})]})]})})}const tI=()=>{const[t,a]=p.useState(null),s=[{id:1,name:"BetTech Gaming",logo:"BG",description:"Leading casino platform provider"},{id:2,name:"SportsBet Pro",logo:"SP",description:"Premier sportsbook solutions"},{id:3,name:"Casino Solutions",logo:"CS",description:"Innovative gaming technology"},{id:4,name:"Gaming Analytics",logo:"GA",description:"Data-driven gaming insights"},{id:5,name:"PokerTech",logo:"PT",description:"Advanced poker platforms"},{id:6,name:"SlotMaster",logo:"SM",description:"Premium slot game developer"},{id:7,name:"LiveCasino",logo:"LC",description:"Live dealer solutions"},{id:8,name:"BetSafe Tech",logo:"BT",description:"Secure betting infrastructure"},{id:9,name:"GameHub",logo:"GH",description:"Multi-game platform provider"},{id:10,name:"WinTech",logo:"WT",description:"Winning gaming solutions"}];return e.jsx("section",{className:"py-20 bg-gray-100",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"text-center mb-16 animate-fade-in",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:"Our Partners"}),e.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Trusted by 500+ leading iGaming companies worldwide"})]}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-6 mb-12",children:s.map((n,r)=>e.jsxs("div",{className:"group relative bg-card p-6 rounded-xl shadow-card hover:shadow-elegant transition-all duration-300 transform hover:-translate-y-2 cursor-pointer animate-scale-in",style:{animationDelay:`${r*.05}s`},onMouseEnter:()=>a(n.id),onMouseLeave:()=>a(null),children:[e.jsx("div",{className:"aspect-square flex items-center justify-center mb-4",children:e.jsx("div",{className:"w-16 h-16 bg-gradient-accent rounded-xl flex items-center justify-center group-hover:scale-110 transition-transform duration-300",children:e.jsx("span",{className:"text-accent-foreground font-bold text-lg",children:n.logo})})}),e.jsx("h3",{className:"text-center font-bold text-card-foreground group-hover:text-accent transition-colors duration-300 text-sm",children:n.name}),t===n.id&&e.jsx("div",{className:"absolute inset-0 bg-primary/95 rounded-xl flex items-center justify-center p-4 animate-fade-in",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-primary-foreground font-bold mb-2",children:n.name}),e.jsx("div",{className:"text-primary-foreground/80 text-sm",children:n.description}),e.jsx("div",{className:"mt-3 text-yellow-500 text-sm font-medium",children:"View Jobs →"})]})}),e.jsx("div",{className:"absolute inset-0 border-2 border-transparent group-hover:border-accent/50 rounded-xl transition-colors duration-300"})]},n.id))}),e.jsx("div",{className:"bg-gradient-hero p-8 rounded-2xl shadow-accent animate-fade-in",style:{animationDelay:"0.5s"},children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6 text-center text-primary-foreground",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-3xl font-bold mb-2",children:"500+"}),e.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Gaming Companies Trust Us"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-3xl font-bold mb-2",children:"50+"}),e.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Countries Worldwide"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-3xl font-bold mb-2",children:"€2B+"}),e.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Combined Revenue"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-3xl font-bold mb-2",children:"10M+"}),e.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Players Served"})]})]})}),e.jsxs("div",{className:"text-center mt-12 animate-slide-in",style:{animationDelay:"0.6s"},children:[e.jsx("h3",{className:"text-2xl font-bold text-foreground mb-4",children:"Want to Partner with Us?"}),e.jsx("p",{className:"text-muted-foreground mb-6 max-w-lg mx-auto",children:"Join hundreds of leading iGaming companies finding top talent through our platform"}),e.jsx("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:e.jsx("a",{href:"/partners",className:"bg-yellow-500 hover:bg-accent-hover font-semibold py-3 px-8 rounded-lg transition-all duration-300 transform hover:scale-105 shadow-accent",children:"Become a Partner"})})]})]})})};function UR(){const[t,a]=p.useState(null);return p.useEffect(()=>{try{const s=localStorage.getItem("email");s&&a(s)}catch{}},[]),{isSubscribed:!!t,email:t}}const aI=p.createContext({consent:{analytics:!1,marketing:!1,preferences:!1},ready:!1,update:async()=>{console.log("ConsentContext not initialized")}});function sI({notification_url:t="http://localhost:5147",children:a}){const[s,n]=p.useState({analytics:!1,marketing:!1,preferences:!1}),[r,i]=p.useState(!1),c=(y=>y.replace(/\/+$/,""))(t??"http://localhost:5147"),[h,d]=p.useState(null);p.useEffect(()=>{try{const y=localStorage.getItem("leadId");y&&d(y)}catch{}},[]),p.useEffect(()=>{const y=localStorage.getItem("consent");if(y)try{n(JSON.parse(y)),i(!0);return}catch{}if(!h){i(!0);return}fetch(`${c}/api/leads/${h}/consents/latest`).then(x=>x.ok?x.json():null).then(x=>{x&&n({analytics:!!x.analytics,marketing:!!x.marketing,preferences:!!x.preferences,timestamp:x.createdAt})}).catch(()=>{}).finally(()=>i(!0))},[h]);const u=async y=>{const x={...s,...y,timestamp:new Date().toISOString()};n(x),localStorage.setItem("consent",JSON.stringify(x));const m={analytics:x.analytics,marketing:x.marketing,preferences:x.preferences,policyVersion:"cmp-v1.0",source:"web:banner"};try{h?await fetch(`${c}/api/leads/${h}/consents`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(m)}):await fetch(`${c}/api/consents`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(m)})}catch(g){console.warn("Consent API unavailable, kept only locally",g)}};return e.jsx(aI.Provider,{value:{consent:s,ready:r,update:u},children:a})}const vC=()=>p.useContext(aI);function GR({allow:t,children:a}){const{consent:s,ready:n}=vC();return!n||!s[t]?null:e.jsx(e.Fragment,{children:a})}function nI({title:t="Cookie consent",description:a="We use cookies to improve your experience. You can accept all or manage preferences. Non-essential cookies are off until you opt in.",buttonAcceptLabel:s="Accept all",buttonRejectLabel:n="Reject non-essential",defaultOpen:r=!1,isOpen:i,onAccept:l,onReject:c}){const{consent:h,update:d,ready:u}=vC(),[y,x]=p.useState(r);p.useEffect(()=>{i===void 0&&u&&!h.timestamp&&x(!0)},[h.timestamp,i,u]);const m=p.useMemo(()=>i??y,[i,y]),g=()=>{i===void 0&&x(!1)};if(!m)return null;const f=()=>{d({analytics:!0,marketing:!0,preferences:!0}),g(),l==null||l()},k=()=>{d({analytics:!1,marketing:!1,preferences:!1}),g(),c==null||c()};return e.jsxs("div",{role:"dialog","aria-label":t,className:"fixed bottom-4 left-4 right-4 z-50 rounded-2xl bg-white p-4 shadow-xl",children:[e.jsx("p",{className:"text-sm",children:a}),e.jsxs("div",{className:"mt-3 flex gap-2",children:[e.jsx("button",{className:"px-3 py-2 rounded-xl border",onClick:k,children:n}),e.jsx("button",{className:"px-3 py-2 rounded-xl bg-black text-white",onClick:f,children:s})]})]})}const $R={logo:{text:"iGamingCareer.com",initials:"iG"},navItems:[{label:"Home",href:"/"},{label:"iGaming Salaries 2025",href:"/salaries"},{label:"Jobs",href:"/jobs"},{label:"About Us",href:"/about"},{label:"Blog",href:"/blog"},{label:"Contact",href:"/contact"}]},WR={title:"Find Your Dream Job in",subtitle:`The #1 platform for iGaming careers—connecting top talent with leading casinos,
7721
+ ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,100%,0)}}@keyframes slideFromTop{from{transform:translate3d(0,-100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,-100%,0)}}@keyframes slideFromLeft{from{transform:translate3d(-100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(-100%,0,0)}}@keyframes slideFromRight{from{transform:translate3d(100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(100%,0,0)}}`);const xR=24,gR=typeof window<"u"?p.useLayoutEffect:p.useEffect;function QC(...t){return(...a)=>{for(let s of t)typeof s=="function"&&s(...a)}}function fR(){return kC(/^Mac/)}function kR(){return kC(/^iPhone/)}function e9(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function vR(){return kC(/^iPad/)||fR()&&navigator.maxTouchPoints>1}function RL(){return kR()||vR()}function kC(t){return typeof window<"u"&&window.navigator!=null?t.test(window.navigator.platform):void 0}const tN=typeof document<"u"&&window.visualViewport;function t9(t){let a=window.getComputedStyle(t);return/(auto|scroll)/.test(a.overflow+a.overflowX+a.overflowY)}function DL(t){for(t9(t)&&(t=t.parentElement);t&&!t9(t);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}const bR=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Yc=0,aN;function wR(t={}){let{isDisabled:a}=t;gR(()=>{if(!a)return Yc++,Yc===1&&RL()&&(aN=jR()),()=>{Yc--,Yc===0&&(aN==null||aN())}},[a])}function jR(){let t,a=0,s=y=>{t=DL(y.target),!(t===document.documentElement&&t===document.body)&&(a=y.changedTouches[0].pageY)},n=y=>{if(!t||t===document.documentElement||t===document.body){y.preventDefault();return}let x=y.changedTouches[0].pageY,m=t.scrollTop,g=t.scrollHeight-t.clientHeight;g!==0&&((m<=0&&x>a||m>=g&&x<a)&&y.preventDefault(),a=x)},r=y=>{let x=y.target;ON(x)&&x!==document.activeElement&&(y.preventDefault(),x.style.transform="translateY(-2000px)",x.focus(),requestAnimationFrame(()=>{x.style.transform=""}))},i=y=>{let x=y.target;ON(x)&&(x.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{x.style.transform="",tN&&(tN.height<window.innerHeight?requestAnimationFrame(()=>{a9(x)}):tN.addEventListener("resize",()=>a9(x),{once:!0}))}))},l=()=>{window.scrollTo(0,0)},c=window.pageXOffset,h=window.pageYOffset,d=QC(MR(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let u=QC(Zl(document,"touchstart",s,{passive:!1,capture:!0}),Zl(document,"touchmove",n,{passive:!1,capture:!0}),Zl(document,"touchend",r,{passive:!1,capture:!0}),Zl(document,"focus",i,!0),Zl(window,"scroll",l));return()=>{d(),u(),window.scrollTo(c,h)}}function MR(t,a,s){let n=t.style[a];return t.style[a]=s,()=>{t.style[a]=n}}function Zl(t,a,s,n){return t.addEventListener(a,s,n),()=>{t.removeEventListener(a,s,n)}}function a9(t){let a=document.scrollingElement||document.documentElement;for(;t&&t!==a;){let s=DL(t);if(s!==document.documentElement&&s!==document.body&&s!==t){let n=s.getBoundingClientRect().top,r=t.getBoundingClientRect().top,i=t.getBoundingClientRect().bottom;const l=s.getBoundingClientRect().bottom+xR;i>l&&(s.scrollTop+=r-n)}t=s.parentElement}}function ON(t){return t instanceof HTMLInputElement&&!bR.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}function NR(t,a){typeof t=="function"?t(a):t!=null&&(t.current=a)}function CR(...t){return a=>t.forEach(s=>NR(s,a))}function _L(...t){return ie.useCallback(CR(...t),t)}const zL=new WeakMap;function At(t,a,s=!1){if(!t||!(t instanceof HTMLElement))return;let n={};Object.entries(a).forEach(([r,i])=>{if(r.startsWith("--")){t.style.setProperty(r,i);return}n[r]=t.style[r],t.style[r]=i}),!s&&zL.set(t,n)}function SR(t,a){if(!t||!(t instanceof HTMLElement))return;let s=zL.get(t);s&&(t.style[a]=s[a])}const Pt=t=>{switch(t){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return t}};function Jc(t,a){if(!t)return null;const s=window.getComputedStyle(t),n=s.transform||s.webkitTransform||s.mozTransform;let r=n.match(/^matrix3d\((.+)\)$/);return r?parseFloat(r[1].split(", ")[Pt(a)?13:12]):(r=n.match(/^matrix\((.+)\)$/),r?parseFloat(r[1].split(", ")[Pt(a)?5:4]):null)}function LR(t){return 8*(Math.log(t+1)-2)}function sN(t,a){if(!t)return()=>{};const s=t.style.cssText;return Object.assign(t.style,a),()=>{t.style.cssText=s}}function IR(...t){return(...a)=>{for(const s of t)typeof s=="function"&&s(...a)}}const ht={DURATION:.5,EASE:[.32,.72,0,1]},qL=.4,AR=.25,PR=100,FL=8,An=16,BN=26,nN="vaul-dragging";function EL(t){const a=p.useRef(t);return p.useEffect(()=>{a.current=t}),p.useMemo(()=>(...s)=>a.current==null?void 0:a.current.call(a,...s),[])}function TR({defaultProp:t,onChange:a}){const s=p.useState(t),[n]=s,r=p.useRef(n),i=EL(a);return p.useEffect(()=>{r.current!==n&&(i(n),r.current=n)},[n,r,i]),s}function OL({prop:t,defaultProp:a,onChange:s=()=>{}}){const[n,r]=TR({defaultProp:a,onChange:s}),i=t!==void 0,l=i?t:n,c=EL(s),h=p.useCallback(d=>{if(i){const y=typeof d=="function"?d(t):d;y!==t&&c(y)}else r(d)},[i,t,r,c]);return[l,h]}function RR({activeSnapPointProp:t,setActiveSnapPointProp:a,snapPoints:s,drawerRef:n,overlayRef:r,fadeFromIndex:i,onSnapPointChange:l,direction:c="bottom",container:h,snapToSequentialPoint:d}){const[u,y]=OL({prop:t,defaultProp:s==null?void 0:s[0],onChange:a}),[x,m]=p.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);p.useEffect(()=>{function L(){m({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",L),()=>window.removeEventListener("resize",L)},[]);const g=p.useMemo(()=>u===(s==null?void 0:s[s.length-1])||null,[s,u]),f=p.useMemo(()=>s==null?void 0:s.findIndex(L=>L===u),[s,u]),k=s&&s.length>0&&(i||i===0)&&!Number.isNaN(i)&&s[i]===u||!s,v=p.useMemo(()=>{const L=h?{width:h.getBoundingClientRect().width,height:h.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var w;return(w=s==null?void 0:s.map(j=>{const I=typeof j=="string";let T=0;if(I&&(T=parseInt(j,10)),Pt(c)){const R=I?T:x?j*L.height:0;return x?c==="bottom"?L.height-R:-L.height+R:R}const A=I?T:x?j*L.width:0;return x?c==="right"?L.width-A:-L.width+A:A}))!=null?w:[]},[s,x,h]),N=p.useMemo(()=>f!==null?v==null?void 0:v[f]:null,[v,f]),M=p.useCallback(L=>{var w;const j=(w=v==null?void 0:v.findIndex(I=>I===L))!=null?w:null;l(j),At(n.current,{transition:`transform ${ht.DURATION}s cubic-bezier(${ht.EASE.join(",")})`,transform:Pt(c)?`translate3d(0, ${L}px, 0)`:`translate3d(${L}px, 0, 0)`}),v&&j!==v.length-1&&j!==i&&j<i?At(r.current,{transition:`opacity ${ht.DURATION}s cubic-bezier(${ht.EASE.join(",")})`,opacity:"0"}):At(r.current,{transition:`opacity ${ht.DURATION}s cubic-bezier(${ht.EASE.join(",")})`,opacity:"1"}),y(s==null?void 0:s[Math.max(j,0)])},[n.current,s,v,i,r,y]);p.useEffect(()=>{if(u||t){var L;const w=(L=s==null?void 0:s.findIndex(j=>j===t||j===u))!=null?L:-1;v&&w!==-1&&typeof v[w]=="number"&&M(v[w])}},[u,t,s,v,M]);function b({draggedDistance:L,closeDrawer:w,velocity:j,dismissible:I}){if(i===void 0)return;const T=c==="bottom"||c==="right"?(N??0)-L:(N??0)+L,A=f===i-1,R=f===0,_=L>0;if(A&&At(r.current,{transition:`opacity ${ht.DURATION}s cubic-bezier(${ht.EASE.join(",")})`}),!d&&j>2&&!_){I?w():M(v[0]);return}if(!d&&j>2&&_&&v&&s){M(v[s.length-1]);return}const F=v==null?void 0:v.reduce((E,U)=>typeof E!="number"||typeof U!="number"?E:Math.abs(U-T)<Math.abs(E-T)?U:E),O=Pt(c)?window.innerHeight:window.innerWidth;if(j>qL&&Math.abs(L)<O*.4){const E=_?1:-1;if(E>0&&g){M(v[s.length-1]);return}if(R&&E<0&&I&&w(),f===null)return;M(v[f+E]);return}M(F)}function C({draggedDistance:L}){if(N===null)return;const w=c==="bottom"||c==="right"?N-L:N+L;(c==="bottom"||c==="right")&&w<v[v.length-1]||(c==="top"||c==="left")&&w>v[v.length-1]||At(n.current,{transform:Pt(c)?`translate3d(0, ${w}px, 0)`:`translate3d(${w}px, 0, 0)`})}function S(L,w){if(!s||typeof f!="number"||!v||i===void 0)return null;const j=f===i-1;if(f>=i&&w)return 0;if(j&&!w)return 1;if(!k&&!j)return null;const T=j?f+1:f-1,A=j?v[T]-v[T-1]:v[T+1]-v[T],R=L/Math.abs(A);return j?1-R:R}return{isLastSnapPoint:g,activeSnapPoint:u,shouldFade:k,getPercentageDragged:S,setActiveSnapPoint:y,activeSnapPointIndex:f,onRelease:b,onDrag:C,snapPointsOffset:v}}const DR=()=>()=>{};function _R(){const{direction:t,isOpen:a,shouldScaleBackground:s,setBackgroundColorOnScale:n,noBodyStyles:r}=Vl(),i=p.useRef(null),l=p.useMemo(()=>document.body.style.backgroundColor,[]);function c(){return(window.innerWidth-BN)/window.innerWidth}p.useEffect(()=>{if(a&&s){i.current&&clearTimeout(i.current);const h=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!h)return;IR(n&&!r?sN(document.body,{background:"black"}):DR,sN(h,{transformOrigin:Pt(t)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${ht.DURATION}s`,transitionTimingFunction:`cubic-bezier(${ht.EASE.join(",")})`}));const d=sN(h,{borderRadius:`${FL}px`,overflow:"hidden",...Pt(t)?{transform:`scale(${c()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${c()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{d(),i.current=window.setTimeout(()=>{l?document.body.style.background=l:document.body.style.removeProperty("background")},ht.DURATION*1e3)}}},[a,s,l])}let Yl=null;function zR({isOpen:t,modal:a,nested:s,hasBeenOpened:n,preventScrollRestoration:r,noBodyStyles:i}){const[l,c]=p.useState(()=>typeof window<"u"?window.location.href:""),h=p.useRef(0),d=p.useCallback(()=>{if(e9()&&Yl===null&&t&&!i){Yl={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:y,innerHeight:x}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-h.current}px`,left:`${-y}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const m=x-window.innerHeight;m&&h.current>=x&&(document.body.style.top=`${-(h.current+m)}px`)}),300)}},[t]),u=p.useCallback(()=>{if(e9()&&Yl!==null&&!i){const y=-parseInt(document.body.style.top,10),x=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Yl),window.requestAnimationFrame(()=>{if(r&&l!==window.location.href){c(window.location.href);return}window.scrollTo(x,y)}),Yl=null}},[l]);return p.useEffect(()=>{function y(){h.current=window.scrollY}return y(),window.addEventListener("scroll",y),()=>{window.removeEventListener("scroll",y)}},[]),p.useEffect(()=>{s||!n||(t?(!window.matchMedia("(display-mode: standalone)").matches&&d(),a||window.setTimeout(()=>{u()},500)):u())},[t,n,l,a,s,d,u]),{restorePositionSetting:u}}function BL({open:t,onOpenChange:a,children:s,onDrag:n,onRelease:r,snapPoints:i,shouldScaleBackground:l=!1,setBackgroundColorOnScale:c=!0,closeThreshold:h=AR,scrollLockTimeout:d=PR,dismissible:u=!0,handleOnly:y=!1,fadeFromIndex:x=i&&i.length-1,activeSnapPoint:m,setActiveSnapPoint:g,fixed:f,modal:k=!0,onClose:v,nested:N,noBodyStyles:M,direction:b="bottom",defaultOpen:C=!1,disablePreventScroll:S=!0,snapToSequentialPoint:L=!1,preventScrollRestoration:w=!1,repositionInputs:j=!0,onAnimationEnd:I,container:T,autoFocus:A=!1}){var R,_;const[F=!1,O]=OL({defaultProp:C,prop:t,onChange:xe=>{a==null||a(xe),!xe&&!N&&Lt(),setTimeout(()=>{I==null||I(xe)},ht.DURATION*1e3),xe&&!k&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),xe||(document.body.style.pointerEvents="auto")}}),[E,U]=p.useState(!1),[W,G]=p.useState(!1),[ae,Q]=p.useState(!1),J=p.useRef(null),K=p.useRef(null),ce=p.useRef(null),ge=p.useRef(null),de=p.useRef(null),ee=p.useRef(!1),q=p.useRef(null),D=p.useRef(0),z=p.useRef(!1),Y=p.useRef(0),se=p.useRef(null),fe=p.useRef(((R=se.current)==null?void 0:R.getBoundingClientRect().height)||0),we=p.useRef(((_=se.current)==null?void 0:_.getBoundingClientRect().width)||0),ct=p.useRef(0),is=p.useCallback(xe=>{i&&xe===pt.length-1&&(K.current=new Date)},[]),{activeSnapPoint:Bt,activeSnapPointIndex:he,setActiveSnapPoint:_e,onRelease:_t,snapPointsOffset:pt,onDrag:sa,shouldFade:fa,getPercentageDragged:Sn}=RR({snapPoints:i,activeSnapPointProp:m,setActiveSnapPointProp:g,drawerRef:se,fadeFromIndex:x,overlayRef:J,onSnapPointChange:is,direction:b,container:T,snapToSequentialPoint:L});wR({isDisabled:!F||W||!k||ae||!E||!j||!S});const{restorePositionSetting:Lt}=zR({isOpen:F,modal:k,nested:N,hasBeenOpened:E,preventScrollRestoration:w,noBodyStyles:M});function it(){return(window.innerWidth-BN)/window.innerWidth}function $s(xe){var Ie,Te;!u&&!i||se.current&&!se.current.contains(xe.target)||(fe.current=((Ie=se.current)==null?void 0:Ie.getBoundingClientRect().height)||0,we.current=((Te=se.current)==null?void 0:Te.getBoundingClientRect().width)||0,G(!0),ce.current=new Date,RL()&&window.addEventListener("touchend",()=>ee.current=!1,{once:!0}),xe.target.setPointerCapture(xe.pointerId),D.current=Pt(b)?xe.pageY:xe.pageX)}function ot(xe,Ie){var Te,ze;let Ne=xe;const Ke=(Te=window.getSelection())==null?void 0:Te.toString(),dt=se.current?Jc(se.current,b):null,pe=new Date;if(Ne.hasAttribute("data-vaul-no-drag")||Ne.closest("[data-vaul-no-drag]"))return!1;if(b==="right"||b==="left")return!0;if(K.current&&pe.getTime()-K.current.getTime()<500)return!1;if(dt!==null&&(b==="bottom"?dt>0:dt<0))return!0;if(Ke&&Ke.length>0)return!1;if(pe.getTime()-((ze=de.current)==null?void 0:ze.getTime())<d&&dt===0||Ie)return de.current=pe,!1;for(;Ne;){if(Ne.scrollHeight>Ne.clientHeight){if(Ne.scrollTop!==0)return de.current=new Date,!1;if(Ne.getAttribute("role")==="dialog")return!0}Ne=Ne.parentNode}return!0}function Ya(xe){if(se.current&&W){const Ie=b==="bottom"||b==="right"?1:-1,Te=(D.current-(Pt(b)?xe.pageY:xe.pageX))*Ie,ze=Te>0,Ne=i&&!u&&!ze;if(Ne&&he===0)return;const Ke=Math.abs(Te),dt=document.querySelector("[data-vaul-drawer-wrapper]"),pe=b==="bottom"||b==="top"?fe.current:we.current;let Z=Ke/pe;const le=Sn(Ke,ze);if(le!==null&&(Z=le),Ne&&Z>=1||!ee.current&&!ot(xe.target,ze))return;if(se.current.classList.add(nN),ee.current=!0,At(se.current,{transition:"none"}),At(J.current,{transition:"none"}),i&&sa({draggedDistance:Te}),ze&&!i){const ve=LR(Te),Re=Math.min(ve*-1,0)*Ie;At(se.current,{transform:Pt(b)?`translate3d(0, ${Re}px, 0)`:`translate3d(${Re}px, 0, 0)`});return}const ye=1-Z;if((fa||x&&he===x-1)&&(n==null||n(xe,Z),At(J.current,{opacity:`${ye}`,transition:"none"},!0)),dt&&J.current&&l){const ve=Math.min(it()+Z*(1-it()),1),Re=8-Z*8,Ft=Math.max(0,14-Z*14);At(dt,{borderRadius:`${Re}px`,transform:Pt(b)?`scale(${ve}) translate3d(0, ${Ft}px, 0)`:`scale(${ve}) translate3d(${Ft}px, 0, 0)`,transition:"none"},!0)}if(!i){const ve=Ke*Ie;At(se.current,{transform:Pt(b)?`translate3d(0, ${ve}px, 0)`:`translate3d(${ve}px, 0, 0)`})}}}p.useEffect(()=>{var xe;function Ie(){if(!se.current||!j)return;const Te=document.activeElement;if(ON(Te)||z.current){var ze;const Ne=((ze=window.visualViewport)==null?void 0:ze.height)||0,Ke=window.innerHeight;let dt=Ke-Ne;const pe=se.current.getBoundingClientRect().height||0,Z=pe>Ke*.8;ct.current||(ct.current=pe);const le=se.current.getBoundingClientRect().top;if(Math.abs(Y.current-dt)>60&&(z.current=!z.current),i&&i.length>0&&pt&&he){const ye=pt[he]||0;dt+=ye}if(Y.current=dt,pe>Ne||z.current){const ye=se.current.getBoundingClientRect().height;let ve=ye;ye>Ne&&(ve=Ne-(Z?le:BN)),f?se.current.style.height=`${ye-Math.max(dt,0)}px`:se.current.style.height=`${Math.max(ve,Ne-le)}px`}else se.current.style.height=`${ct.current}px`;i&&i.length>0&&!z.current?se.current.style.bottom="0px":se.current.style.bottom=`${Math.max(dt,0)}px`}}return(xe=window.visualViewport)==null||xe.addEventListener("resize",Ie),()=>{var Te;return(Te=window.visualViewport)==null?void 0:Te.removeEventListener("resize",Ie)}},[he,i,pt]);function _a(xe){os(),v==null||v(),xe||O(!1),setTimeout(()=>{i&&_e(i[0])},ht.DURATION*1e3)}function ka(){if(!se.current)return;const xe=document.querySelector("[data-vaul-drawer-wrapper]"),Ie=Jc(se.current,b);At(se.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${ht.DURATION}s cubic-bezier(${ht.EASE.join(",")})`}),At(J.current,{transition:`opacity ${ht.DURATION}s cubic-bezier(${ht.EASE.join(",")})`,opacity:"1"}),l&&Ie&&Ie>0&&F&&At(xe,{borderRadius:`${FL}px`,overflow:"hidden",...Pt(b)?{transform:`scale(${it()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${it()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${ht.DURATION}s`,transitionTimingFunction:`cubic-bezier(${ht.EASE.join(",")})`},!0)}function os(){!W||!se.current||(se.current.classList.remove(nN),ee.current=!1,G(!1),ge.current=new Date)}function va(xe){if(!W||!se.current)return;se.current.classList.remove(nN),ee.current=!1,G(!1),ge.current=new Date;const Ie=Jc(se.current,b);if(!ot(xe.target,!1)||!Ie||Number.isNaN(Ie)||ce.current===null)return;const Te=ge.current.getTime()-ce.current.getTime(),ze=D.current-(Pt(b)?xe.pageY:xe.pageX),Ne=Math.abs(ze)/Te;if(Ne>.05&&(Q(!0),setTimeout(()=>{Q(!1)},200)),i){_t({draggedDistance:ze*(b==="bottom"||b==="right"?1:-1),closeDrawer:_a,velocity:Ne,dismissible:u}),r==null||r(xe,!0);return}if(b==="bottom"||b==="right"?ze>0:ze<0){ka(),r==null||r(xe,!0);return}if(Ne>qL){_a(),r==null||r(xe,!1);return}var Ke;const dt=Math.min((Ke=se.current.getBoundingClientRect().height)!=null?Ke:0,window.innerHeight);var pe;const Z=Math.min((pe=se.current.getBoundingClientRect().width)!=null?pe:0,window.innerWidth),le=b==="left"||b==="right";if(Math.abs(Ie)>=(le?Z:dt)*h){_a(),r==null||r(xe,!1);return}r==null||r(xe,!0),ka()}p.useEffect(()=>(F&&(At(document.documentElement,{scrollBehavior:"auto"}),K.current=new Date),()=>{SR(document.documentElement,"scrollBehavior")}),[F]);function Ja(xe){const Ie=xe?(window.innerWidth-An)/window.innerWidth:1,Te=xe?-An:0;q.current&&window.clearTimeout(q.current),At(se.current,{transition:`transform ${ht.DURATION}s cubic-bezier(${ht.EASE.join(",")})`,transform:`scale(${Ie}) translate3d(0, ${Te}px, 0)`}),!xe&&se.current&&(q.current=setTimeout(()=>{const ze=Jc(se.current,b);At(se.current,{transition:"none",transform:Pt(b)?`translate3d(0, ${ze}px, 0)`:`translate3d(${ze}px, 0, 0)`})},500))}function na(xe,Ie){if(Ie<0)return;const Te=(window.innerWidth-An)/window.innerWidth,ze=Te+Ie*(1-Te),Ne=-An+Ie*An;At(se.current,{transform:Pt(b)?`scale(${ze}) translate3d(0, ${Ne}px, 0)`:`scale(${ze}) translate3d(${Ne}px, 0, 0)`,transition:"none"})}function ra(xe,Ie){const Te=Pt(b)?window.innerHeight:window.innerWidth,ze=Ie?(Te-An)/Te:1,Ne=Ie?-An:0;Ie&&At(se.current,{transition:`transform ${ht.DURATION}s cubic-bezier(${ht.EASE.join(",")})`,transform:Pt(b)?`scale(${ze}) translate3d(0, ${Ne}px, 0)`:`scale(${ze}) translate3d(${Ne}px, 0, 0)`})}return p.createElement(Ct.Root,{defaultOpen:C,onOpenChange:xe=>{!u&&!xe||(xe?U(!0):_a(!0),O(xe))},open:F},p.createElement(TL.Provider,{value:{activeSnapPoint:Bt,snapPoints:i,setActiveSnapPoint:_e,drawerRef:se,overlayRef:J,onOpenChange:a,onPress:$s,onRelease:va,onDrag:Ya,dismissible:u,handleOnly:y,isOpen:F,isDragging:W,shouldFade:fa,closeDrawer:_a,onNestedDrag:na,onNestedOpenChange:Ja,onNestedRelease:ra,keyboardIsOpen:z,modal:k,snapPointsOffset:pt,direction:b,shouldScaleBackground:l,setBackgroundColorOnScale:c,noBodyStyles:M,container:T,autoFocus:A}},s))}const HL=p.forwardRef(function({...t},a){const{overlayRef:s,snapPoints:n,onRelease:r,shouldFade:i,isOpen:l,modal:c}=Vl(),h=_L(a,s),d=n&&n.length>0;return c?p.createElement(Ct.Overlay,{onMouseUp:r,ref:h,"data-vaul-overlay":"","data-vaul-snap-points":l&&d?"true":"false","data-vaul-snap-points-overlay":l&&i?"true":"false",...t}):(typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),null)});HL.displayName="Drawer.Overlay";const VL=p.forwardRef(function({onPointerDownOutside:t,style:a,onOpenAutoFocus:s,...n},r){const{drawerRef:i,onPress:l,onRelease:c,onDrag:h,keyboardIsOpen:d,snapPointsOffset:u,modal:y,isOpen:x,direction:m,snapPoints:g,container:f,handleOnly:k,autoFocus:v}=Vl(),[N,M]=p.useState(!1),b=_L(r,i),C=p.useRef(null),S=p.useRef(null),L=p.useRef(!1),w=g&&g.length>0;_R();const j=(T,A,R=0)=>{if(L.current)return!0;const _=Math.abs(T.y),F=Math.abs(T.x),O=F>_,E=["bottom","right"].includes(A)?1:-1;if(A==="left"||A==="right"){if(!(T.x*E<0)&&F>=0&&F<=R)return O}else if(!(T.y*E<0)&&_>=0&&_<=R)return!O;return L.current=!0,!0};p.useEffect(()=>{w&&window.requestAnimationFrame(()=>{M(!0)})},[]);function I(T){C.current=null,L.current=!1,c(T)}return p.createElement(Ct.Content,{"data-vaul-drawer-direction":m,"data-vaul-drawer":"","data-vaul-delayed-snap-points":N?"true":"false","data-vaul-snap-points":x&&w?"true":"false","data-vaul-custom-container":f?"true":"false",...n,ref:b,style:u&&u.length>0?{"--snap-point-height":`${u[0]}px`,...a}:a,onPointerDown:T=>{k||(n.onPointerDown==null||n.onPointerDown.call(n,T),C.current={x:T.pageX,y:T.pageY},l(T))},onOpenAutoFocus:T=>{s==null||s(T),v||T.preventDefault()},onPointerDownOutside:T=>{if(t==null||t(T),!y||T.defaultPrevented){T.preventDefault();return}d.current&&(d.current=!1)},onFocusOutside:T=>{if(!y){T.preventDefault();return}},onPointerMove:T=>{if(S.current=T,k||(n.onPointerMove==null||n.onPointerMove.call(n,T),!C.current))return;const A=T.pageY-C.current.y,R=T.pageX-C.current.x,_=T.pointerType==="touch"?10:2;j({x:R,y:A},m,_)?h(T):(Math.abs(R)>_||Math.abs(A)>_)&&(C.current=null)},onPointerUp:T=>{n.onPointerUp==null||n.onPointerUp.call(n,T),C.current=null,L.current=!1,c(T)},onPointerOut:T=>{n.onPointerOut==null||n.onPointerOut.call(n,T),I(S.current)},onContextMenu:T=>{n.onContextMenu==null||n.onContextMenu.call(n,T),I(S.current)}})});VL.displayName="Drawer.Content";const qR=250,FR=120,UL=p.forwardRef(function({preventCycle:t=!1,children:a,...s},n){const{closeDrawer:r,isDragging:i,snapPoints:l,activeSnapPoint:c,setActiveSnapPoint:h,dismissible:d,handleOnly:u,isOpen:y,onPress:x,onDrag:m}=Vl(),g=p.useRef(null),f=p.useRef(!1);function k(){if(f.current){M();return}window.setTimeout(()=>{v()},FR)}function v(){if(i||t||f.current){M();return}if(M(),(!l||l.length===0)&&d){r();return}if(c===l[l.length-1]&&d){r();return}const C=l.findIndex(L=>L===c);if(C===-1)return;const S=l[C+1];h(S)}function N(){g.current=window.setTimeout(()=>{f.current=!0},qR)}function M(){window.clearTimeout(g.current),f.current=!1}return p.createElement("div",{onClick:k,onPointerCancel:M,onPointerDown:b=>{u&&x(b),N()},onPointerMove:b=>{u&&m(b)},ref:n,"data-vaul-drawer-visible":y?"true":"false","data-vaul-handle":"","aria-hidden":"true",...s},p.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},a))});UL.displayName="Drawer.Handle";function ER({onDrag:t,onOpenChange:a,...s}){const{onNestedDrag:n,onNestedOpenChange:r,onNestedRelease:i}=Vl();if(!n)throw new Error("Drawer.NestedRoot must be placed in another drawer");return p.createElement(BL,{nested:!0,onClose:()=>{r(!1)},onDrag:(l,c)=>{n(l,c),t==null||t(l,c)},onOpenChange:l=>{l&&r(l)},onRelease:i,...s})}function OR(t){const a=Vl(),{container:s=a.container,...n}=t;return p.createElement(Ct.Portal,{container:s,...n})}const Gs={Root:BL,NestedRoot:ER,Content:VL,Overlay:HL,Trigger:Ct.Trigger,Portal:OR,Handle:UL,Close:Ct.Close,Title:Ct.Title,Description:Ct.Description},GL=({shouldScaleBackground:t=!0,...a})=>e.jsx(Gs.Root,{shouldScaleBackground:t,...a});GL.displayName="Drawer";const BR=Gs.Portal,$L=ie.forwardRef(({className:t,...a},s)=>e.jsx(Gs.Overlay,{ref:s,className:oe("fixed inset-0 z-50 bg-black/80",t),...a}));$L.displayName=Gs.Overlay.displayName;const WL=ie.forwardRef(({className:t,children:a,...s},n)=>e.jsxs(BR,{children:[e.jsx($L,{}),e.jsxs(Gs.Content,{ref:n,className:oe("fixed inset-x-0 bottom-0 z-50 flex flex-col h-[100dvh] max-h-[100dvh] rounded-t-[10px] border bg-background overflow-hidden",t),...s,children:[e.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),a]})]}));WL.displayName="DrawerContent";const ZL=({className:t,...a})=>e.jsx("div",{className:oe("grid gap-1.5 p-4 text-center sm:text-left",t),...a});ZL.displayName="DrawerHeader";const YL=({className:t,...a})=>e.jsx("div",{className:oe("mt-auto flex flex-col gap-2 p-4",t),...a});YL.displayName="DrawerFooter";const JL=ie.forwardRef(({className:t,...a},s)=>e.jsx(Gs.Title,{ref:s,className:oe("text-lg font-semibold leading-none tracking-tight",t),...a}));JL.displayName=Gs.Title.displayName;const HR=ie.forwardRef(({className:t,...a},s)=>e.jsx(Gs.Description,{ref:s,className:oe("text-sm text-muted-foreground",t),...a}));HR.displayName=Gs.Description.displayName;const VR=[{id:"profile",label:"My Profile",icon:ss,path:"/profile"},{id:"saved-jobs",label:"Saved Jobs",icon:Ce,path:"/saved/jobs",countKey:"jobs"},{id:"saved-companies",label:"Saved Companies",icon:Se,path:"/saved/companies",countKey:"companies"},{id:"saved-courses",label:"Saved Courses",icon:Ut,path:"/saved/courses",countKey:"courses"},{id:"alerts",label:"Job Alerts",icon:Ba,path:"/alerts",countKey:"alerts"},{id:"settings",label:"Settings",icon:Ga,path:"/settings"}],HN=({user:t,savedCounts:a={},menuItems:s=VR,onNavigate:n,onLogout:r,onSignIn:i,className:l=""})=>{const[c,h]=p.useState(!1),d=y=>y?y.split(" ").map(x=>x[0]).join("").toUpperCase().slice(0,2):"?",u=y=>{n==null||n(y),h(!1)};return e.jsxs(e.Fragment,{children:[e.jsxs("button",{onClick:()=>t?h(!0):i==null?void 0:i(),className:`relative flex items-center justify-center ${l}`,"aria-label":t?"Open user menu":"Sign in",children:[e.jsxs(vn,{className:"w-9 h-9 border-2 border-primary-foreground/20 hover:border-accent transition-colors",children:[t!=null&&t.avatar?e.jsx(il,{src:t.avatar,alt:t.name||"User"}):null,e.jsx(bn,{className:"bg-accent text-accent-foreground text-sm font-semibold",children:t?t.initials||d(t.name):e.jsx(ss,{className:"w-4 h-4"})})]}),a.alerts&&a.alerts>0&&e.jsx("span",{className:"absolute -top-0.5 -right-0.5 w-3.5 h-3.5 bg-destructive rounded-full border-2 border-primary flex items-center justify-center",children:e.jsx("span",{className:"text-[9px] font-bold text-white",children:a.alerts>9?"9+":a.alerts})})]}),e.jsx(GL,{open:c,onOpenChange:h,children:e.jsxs(WL,{children:[e.jsx(ZL,{className:"border-b border-border pb-4",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs(vn,{className:"w-14 h-14 border-2 border-accent",children:[t!=null&&t.avatar?e.jsx(il,{src:t.avatar,alt:t.name||"User"}):null,e.jsx(bn,{className:"bg-accent text-accent-foreground text-lg font-semibold",children:t?t.initials||d(t.name):"?"})]}),e.jsxs("div",{className:"flex-1 text-left",children:[e.jsx(JL,{className:"text-lg font-semibold",children:(t==null?void 0:t.name)||"Guest"}),(t==null?void 0:t.email)&&e.jsx("p",{className:"text-sm text-muted-foreground",children:t.email})]})]})}),e.jsx("div",{className:"flex-1 overflow-y-auto overscroll-contain",children:e.jsx("div",{className:"py-2",children:s.map(y=>{const x=y.icon,m=y.countKey?a[y.countKey]:void 0;return e.jsxs("button",{onClick:()=>u(y.path),className:"w-full flex items-center gap-4 px-6 py-3 hover:bg-muted/50 transition-colors text-left",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-secondary flex items-center justify-center",children:e.jsx(x,{className:"w-5 h-5 text-muted-foreground"})}),e.jsx("span",{className:"flex-1 font-medium",children:y.label}),m!==void 0&&m>0&&e.jsx("span",{className:"px-2.5 py-0.5 rounded-full bg-accent/10 text-accent text-sm font-semibold",children:m}),e.jsx(la,{className:"w-4 h-4 text-muted-foreground"})]},y.id)})})}),t&&r&&e.jsx(YL,{className:"border-t bg-background pb-[env(safe-area-inset-bottom)]",children:e.jsxs("button",{onClick:()=>{r(),h(!1)},className:"w-full flex items-center justify-center gap-2 py-3 text-destructive hover:bg-destructive/10 rounded-lg transition-colors font-medium",children:[e.jsx(wl,{className:"w-5 h-5"}),"Sign Out"]})})]})})]})},XL=ie.forwardRef(({className:t,children:a,...s},n)=>e.jsxs(Zo.Root,{ref:n,className:oe("relative overflow-hidden",t),...s,children:[e.jsx(Zo.Viewport,{className:"h-full w-full rounded-[inherit]",children:a}),e.jsx(KL,{}),e.jsx(Zo.Corner,{})]}));XL.displayName=Zo.Root.displayName;const KL=ie.forwardRef(({className:t,orientation:a="vertical",...s},n)=>e.jsx(Zo.ScrollAreaScrollbar,{ref:n,orientation:a,className:oe("flex touch-none select-none transition-colors",a==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",a==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",t),...s,children:e.jsx(Zo.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));KL.displayName=Zo.ScrollAreaScrollbar.displayName;const s9={name:"John Doe",email:"john@example.com",initials:"JD"},n9={jobs:3,companies:2,courses:1,alerts:2},r9=[{id:"profile",label:"My Profile",icon:ss,path:"/profile"},{id:"saved-jobs",label:"Saved Jobs",icon:Ce,path:"/saved/jobs",countKey:"jobs"},{id:"saved-companies",label:"Saved Companies",icon:Se,path:"/saved/companies",countKey:"companies"},{id:"saved-courses",label:"Saved Courses",icon:Ut,path:"/saved/courses",countKey:"courses"},{id:"alerts",label:"Job Alerts",icon:Ba,path:"/alerts",countKey:"alerts"},{id:"settings",label:"Settings",icon:Ga,path:"/settings"}],i9=t=>{window.location.href=t};function QL({logo:t,navItems:a}){const[s,n]=p.useState(!1);return e.jsxs("header",{className:"bg-[#0f1219] text-white py-4",children:[e.jsxs("div",{className:"container mx-auto px-4 flex justify-between items-center",children:[e.jsxs("a",{href:"/",className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-yellow-500 flex items-center justify-center",children:e.jsx("span",{className:"text-black font-bold text-sm",children:t.initials})}),e.jsx("span",{className:"font-bold text-xl",children:t.text})]}),e.jsx("nav",{className:"hidden md:flex items-center gap-6",children:a.map((r,i)=>e.jsx("a",{href:r.href,className:"hover:text-yellow-400 transition-colors",children:r.label},i))}),e.jsxs("div",{className:"hidden lg:flex items-center space-x-4",children:[e.jsx(P,{variant:"ghost",size:"icon",className:"text-primary-foreground hover:bg-primary-variant",children:e.jsx(Ba,{className:"h-5 w-5"})}),e.jsx(P,{variant:"accent",children:"Post a Job"}),e.jsx(HN,{user:s9,savedCounts:n9,menuItems:r9,onNavigate:i9,onLogout:()=>console.log("Logout"),onSignIn:()=>console.log("Sign in")})]}),e.jsxs("div",{className:"lg:hidden flex items-center gap-2",children:[e.jsx(HN,{user:s9,savedCounts:n9,menuItems:r9,onNavigate:i9,onLogout:()=>console.log("Logout"),onSignIn:()=>console.log("Sign in")}),e.jsx(P,{variant:"ghost",size:"icon",className:"text-primary-foreground",onClick:()=>n(!s),children:s?e.jsx(He,{className:"h-6 w-6"}):e.jsx(jl,{className:"h-6 w-6"})})]})]}),s&&e.jsx("div",{className:"md:hidden bg-[#0f1219] py-4",children:e.jsx("nav",{className:"container mx-auto px-4 flex flex-col gap-4",children:a.map((r,i)=>e.jsx("a",{href:r.href,className:"hover:text-yellow-400 transition-colors py-2",onClick:()=>n(!1),children:r.label},i))})})]})}function eI({logo:t,tagline:a,socialLinks:s,columns:n,contactInfo:r,copyright:i,poweredBy:l}){return e.jsx("footer",{className:"bg-[#0f1219] text-white py-12 border-t border-gray-800",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8 mb-12",children:[e.jsxs("div",{className:"col-span-1",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-yellow-500 flex items-center justify-center",children:e.jsx("span",{className:"text-black font-bold text-sm",children:t.initials})}),e.jsx("span",{className:"font-bold text-xl",children:t.text})]}),e.jsx("p",{className:"text-gray-400 mb-4",children:a}),e.jsx("div",{className:"flex gap-4",children:s.map((c,h)=>e.jsx("a",{href:c.href,className:"text-gray-400 hover:text-white",children:c.icon},h))})]}),n.map((c,h)=>e.jsxs("div",{className:"col-span-1",children:[e.jsx("h3",{className:"font-bold text-lg mb-4",children:c.title}),e.jsx("ul",{className:"space-y-2",children:c.links.map((d,u)=>e.jsx("li",{children:e.jsx("a",{href:d.href,className:"text-gray-400 hover:text-white",children:d.label})},u))})]},h))]}),e.jsx("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 py-6 border-t border-gray-800",children:e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[e.jsx(ca,{size:16}),e.jsx("span",{children:r.email})]}),e.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[e.jsx(dn,{size:16}),e.jsx("span",{children:r.phone})]}),e.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[e.jsx(Fe,{size:16}),e.jsx("span",{children:r.location})]})]})}),e.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 pt-6 border-t border-gray-800 text-gray-400 text-sm",children:[e.jsx("p",{children:i}),e.jsx("p",{children:l})]})]})})}const tI=()=>{const[t,a]=p.useState(null),s=[{id:1,name:"BetTech Gaming",logo:"BG",description:"Leading casino platform provider"},{id:2,name:"SportsBet Pro",logo:"SP",description:"Premier sportsbook solutions"},{id:3,name:"Casino Solutions",logo:"CS",description:"Innovative gaming technology"},{id:4,name:"Gaming Analytics",logo:"GA",description:"Data-driven gaming insights"},{id:5,name:"PokerTech",logo:"PT",description:"Advanced poker platforms"},{id:6,name:"SlotMaster",logo:"SM",description:"Premium slot game developer"},{id:7,name:"LiveCasino",logo:"LC",description:"Live dealer solutions"},{id:8,name:"BetSafe Tech",logo:"BT",description:"Secure betting infrastructure"},{id:9,name:"GameHub",logo:"GH",description:"Multi-game platform provider"},{id:10,name:"WinTech",logo:"WT",description:"Winning gaming solutions"}];return e.jsx("section",{className:"py-20 bg-gray-100",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"text-center mb-16 animate-fade-in",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:"Our Partners"}),e.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Trusted by 500+ leading iGaming companies worldwide"})]}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-6 mb-12",children:s.map((n,r)=>e.jsxs("div",{className:"group relative bg-card p-6 rounded-xl shadow-card hover:shadow-elegant transition-all duration-300 transform hover:-translate-y-2 cursor-pointer animate-scale-in",style:{animationDelay:`${r*.05}s`},onMouseEnter:()=>a(n.id),onMouseLeave:()=>a(null),children:[e.jsx("div",{className:"aspect-square flex items-center justify-center mb-4",children:e.jsx("div",{className:"w-16 h-16 bg-gradient-accent rounded-xl flex items-center justify-center group-hover:scale-110 transition-transform duration-300",children:e.jsx("span",{className:"text-accent-foreground font-bold text-lg",children:n.logo})})}),e.jsx("h3",{className:"text-center font-bold text-card-foreground group-hover:text-accent transition-colors duration-300 text-sm",children:n.name}),t===n.id&&e.jsx("div",{className:"absolute inset-0 bg-primary/95 rounded-xl flex items-center justify-center p-4 animate-fade-in",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-primary-foreground font-bold mb-2",children:n.name}),e.jsx("div",{className:"text-primary-foreground/80 text-sm",children:n.description}),e.jsx("div",{className:"mt-3 text-yellow-500 text-sm font-medium",children:"View Jobs →"})]})}),e.jsx("div",{className:"absolute inset-0 border-2 border-transparent group-hover:border-accent/50 rounded-xl transition-colors duration-300"})]},n.id))}),e.jsx("div",{className:"bg-gradient-hero p-8 rounded-2xl shadow-accent animate-fade-in",style:{animationDelay:"0.5s"},children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6 text-center text-primary-foreground",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-3xl font-bold mb-2",children:"500+"}),e.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Gaming Companies Trust Us"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-3xl font-bold mb-2",children:"50+"}),e.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Countries Worldwide"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-3xl font-bold mb-2",children:"€2B+"}),e.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Combined Revenue"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-3xl font-bold mb-2",children:"10M+"}),e.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Players Served"})]})]})}),e.jsxs("div",{className:"text-center mt-12 animate-slide-in",style:{animationDelay:"0.6s"},children:[e.jsx("h3",{className:"text-2xl font-bold text-foreground mb-4",children:"Want to Partner with Us?"}),e.jsx("p",{className:"text-muted-foreground mb-6 max-w-lg mx-auto",children:"Join hundreds of leading iGaming companies finding top talent through our platform"}),e.jsx("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:e.jsx("a",{href:"/partners",className:"bg-yellow-500 hover:bg-accent-hover font-semibold py-3 px-8 rounded-lg transition-all duration-300 transform hover:scale-105 shadow-accent",children:"Become a Partner"})})]})]})})};function UR(){const[t,a]=p.useState(null);return p.useEffect(()=>{try{const s=localStorage.getItem("email");s&&a(s)}catch{}},[]),{isSubscribed:!!t,email:t}}const aI=p.createContext({consent:{analytics:!1,marketing:!1,preferences:!1},ready:!1,update:async()=>{console.log("ConsentContext not initialized")}});function sI({notification_url:t="http://localhost:5147",children:a}){const[s,n]=p.useState({analytics:!1,marketing:!1,preferences:!1}),[r,i]=p.useState(!1),c=(y=>y.replace(/\/+$/,""))(t??"http://localhost:5147"),[h,d]=p.useState(null);p.useEffect(()=>{try{const y=localStorage.getItem("leadId");y&&d(y)}catch{}},[]),p.useEffect(()=>{const y=localStorage.getItem("consent");if(y)try{n(JSON.parse(y)),i(!0);return}catch{}if(!h){i(!0);return}fetch(`${c}/api/leads/${h}/consents/latest`).then(x=>x.ok?x.json():null).then(x=>{x&&n({analytics:!!x.analytics,marketing:!!x.marketing,preferences:!!x.preferences,timestamp:x.createdAt})}).catch(()=>{}).finally(()=>i(!0))},[h]);const u=async y=>{const x={...s,...y,timestamp:new Date().toISOString()};n(x),localStorage.setItem("consent",JSON.stringify(x));const m={analytics:x.analytics,marketing:x.marketing,preferences:x.preferences,policyVersion:"cmp-v1.0",source:"web:banner"};try{h?await fetch(`${c}/api/leads/${h}/consents`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(m)}):await fetch(`${c}/api/consents`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(m)})}catch(g){console.warn("Consent API unavailable, kept only locally",g)}};return e.jsx(aI.Provider,{value:{consent:s,ready:r,update:u},children:a})}const vC=()=>p.useContext(aI);function GR({allow:t,children:a}){const{consent:s,ready:n}=vC();return!n||!s[t]?null:e.jsx(e.Fragment,{children:a})}function nI({title:t="Cookie consent",description:a="We use cookies to improve your experience. You can accept all or manage preferences. Non-essential cookies are off until you opt in.",buttonAcceptLabel:s="Accept all",buttonRejectLabel:n="Reject non-essential",defaultOpen:r=!1,isOpen:i,onAccept:l,onReject:c}){const{consent:h,update:d,ready:u}=vC(),[y,x]=p.useState(r);p.useEffect(()=>{i===void 0&&u&&!h.timestamp&&x(!0)},[h.timestamp,i,u]);const m=p.useMemo(()=>i??y,[i,y]),g=()=>{i===void 0&&x(!1)};if(!m)return null;const f=()=>{d({analytics:!0,marketing:!0,preferences:!0}),g(),l==null||l()},k=()=>{d({analytics:!1,marketing:!1,preferences:!1}),g(),c==null||c()};return e.jsxs("div",{role:"dialog","aria-label":t,className:"fixed bottom-4 left-4 right-4 z-50 rounded-2xl bg-white p-4 shadow-xl",children:[e.jsx("p",{className:"text-sm",children:a}),e.jsxs("div",{className:"mt-3 flex gap-2",children:[e.jsx("button",{className:"px-3 py-2 rounded-xl border",onClick:k,children:n}),e.jsx("button",{className:"px-3 py-2 rounded-xl bg-black text-white",onClick:f,children:s})]})]})}const $R={logo:{text:"iGamingCareer.com",initials:"iG"},navItems:[{label:"Home",href:"/"},{label:"iGaming Salaries 2025",href:"/salaries"},{label:"Jobs",href:"/jobs"},{label:"About Us",href:"/about"},{label:"Blog",href:"/blog"},{label:"Contact",href:"/contact"}]},WR={title:"Find Your Dream Job in",subtitle:`The #1 platform for iGaming careers—connecting top talent with leading casinos,
7722
7722
  sportsbooks, and tech providers worldwide.`,backgroundImage:"/placeholder.svg?height=800&width=1600",primaryButtonText:"Search Jobs",secondaryButtonText:"Upload CV"},ZR={title:"Why Choose Us?",values:[{icon:Ce,title:"Niche Expertise",description:"Dedicated solely to iGaming jobs worldwide."},{icon:qe,title:"Recruiter Network",description:"Direct access to hiring managers at top brands."},{icon:Qs,title:"Salary Insights",description:"Transparent data to negotiate your best offer."},{icon:Va,title:"Career Growth",description:"Courses and certifications to level up your skills."}]},YR={title:"Browse 3,500+ iGaming Jobs",locations:[{id:"malta",name:"Malta"},{id:"remote",name:"Remote"},{id:"uk",name:"United Kingdom"},{id:"gibraltar",name:"Gibraltar"}],trendingKeywords:[{label:"CRM Manager",href:"/jobs?q=crm-manager"},{label:"Game Developer",href:"/jobs?q=game-developer"},{label:"Compliance Specialist",href:"/jobs?q=compliance-specialist"}],searchButtonText:"Search"},JR={title:"Trusted by Professionals & Companies",testimonial:{quote:"Landed my dream job at DraftKings in 2 weeks! The platform was easy to use and the team provided great support throughout the process.",name:"Sarah",title:"Product Manager",avatar:"/placeholder.svg?height=80&width=80"},stats:[{value:"10,000+",label:"Candidates hired through our platform"},{value:"500+",label:"iGaming companies trust us"},{value:"25+",label:"Countries with active job listings"}],partnerLogos:Array(5).fill("/placeholder.svg?height=60&width=120")},XR={title:"Get Exclusive iGaming Job Alerts",description:"Weekly openings + salary reports. Unsubscribe anytime.",inputPlaceholder:"Your email address",buttonText:"Subscribe"},KR={title:"Hire Top iGaming Talent",description:"Access 50,000+ skilled professionals. Post a job in 5 minutes.",primaryButtonText:"Post a Job",primaryButtonHref:"/employers/post-job",secondaryButtonText:"Learn More",secondaryButtonHref:"/employers"},QR={logo:{text:"iGamingCareer.com",initials:"iG"},tagline:"We bet on the people behind the game.",socialLinks:[{icon:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-linkedin",children:[e.jsx("path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"}),e.jsx("rect",{width:"4",height:"12",x:"2",y:"9"}),e.jsx("circle",{cx:"4",cy:"4",r:"2"})]}),href:"#"},{icon:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-instagram",children:[e.jsx("rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5"}),e.jsx("path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"}),e.jsx("line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5"})]}),href:"#"}],columns:[{title:"Company",links:[{label:"About Us",href:"/about"},{label:"Careers",href:"/careers"},{label:"Press",href:"/press"}]},{title:"Resources",links:[{label:"Job Board",href:"/jobs"},{label:"Courses",href:"/courses"},{label:"Salary Guide",href:"/salary-guide"}]},{title:"Legal",links:[{label:"Privacy Policy",href:"/privacy"},{label:"Terms of Service",href:"/terms"},{label:"Contact Us",href:"/contact"}]}],contactInfo:{email:"info@igamingcareer.com",phone:"+1 (234) 567-89",location:"Malta, Europe"},copyright:"© 2025 iGaming Career Finder. All rights reserved.",poweredBy:"Powered by iGamingCareer.com"},Ys=(t,a)=>({...t,...a??{}});function eD({headerData:t,heroData:a,valuePropositionData:s,jobSearchData:n,trustSignalsData:r,newsletterData:i,onNewsletterSubscribe:l,onNewsletterManageAlerts:c,onNewsletterSignInRequired:h,forEmployersData:d,footerData:u,showValueProposition:y=!0,showJobSearchWidget:x=!0,showTrustSignals:m=!0,showPartners:g=!0,showNewsletter:f=!0,showForEmployers:k=!0,showConsentBanner:v=!0,consentNotificationUrl:N="http://localhost:5147",consentBannerProps:M}){const{isSubscribed:b,email:C}=UR(),S=Ys($R,t),L=Ys(WR,a),w=Ys(ZR,s),j=Ys(YR,n),I=Ys(JR,r),T=Ys(XR,i),A=Ys(KR,d),R=Ys(QR,u),_={...T,isSubscribed:(i==null?void 0:i.isSubscribed)??b,email:(i==null?void 0:i.email)??C,onSubscribe:(i==null?void 0:i.onSubscribe)??l,onManageAlerts:(i==null?void 0:i.onManageAlerts)??c,onSignInRequired:(i==null?void 0:i.onSignInRequired)??h};return e.jsx(sI,{notification_url:N,children:e.jsxs("div",{className:"flex flex-col min-h-screen",children:[e.jsx(QL,{...S}),e.jsxs("main",{className:"flex-grow",children:[e.jsx(SL,{...L}),y&&e.jsx(LL,{...w}),x&&e.jsx(PL,{...j}),m&&e.jsx(IL,{...I}),g&&e.jsx(tI,{}),f&&e.jsx(AL,{..._}),k&&e.jsx(CL,{...A})]}),e.jsx(eI,{...R}),v&&e.jsx(nI,{...M})]})})}function tD({title:t,description:a,inputPlaceholder:s,api_url:n="http://localhost:5147",buttonText:r,isSubscribed:i=!1,email:l=null}){const[c,h]=p.useState(l??""),[d,u]=p.useState(!1),[y,x]=p.useState(!1);p.useEffect(()=>{if(i){x(!0),l&&h(l);return}try{const k=localStorage.getItem("email"),v=localStorage.getItem("leadId");k&&v&&(x(!0),h(k))}catch{}},[i,l]);const m=async()=>{if(!c||!c.includes("@")){alert("Please enter a valid email");return}u(!0);try{const k=await fetch(`${n}/api/leads`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c,source:"newsletter",utmCampaign:"general",utmMedium:"ui",utmSource:"newsletter_component"})});if(k.ok){const v=await k.json();localStorage.setItem("leadId",v.id),localStorage.setItem("email",c),x(!0)}else{const v=await k.text();alert("Submission failed: "+v)}}catch{alert("Network error while submitting")}finally{u(!1)}},g=y||i,f=l??c;return e.jsx("section",{className:"py-12 bg-[#0f1219] text-white",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[e.jsx("h2",{className:"text-2xl font-bold mb-4",children:t}),e.jsx("p",{className:"text-gray-300 mb-6",children:a}),g?e.jsxs("p",{className:"text-green-400 font-semibold",children:["✅ Thanks! You’re subscribed",f?` as ${f}`:"","."]}):e.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 max-w-lg mx-auto",children:[e.jsx(te,{type:"email",placeholder:s,value:c,onChange:k=>h(k.target.value),className:"px-4 py-2 rounded bg-gray-800 border border-gray-700 text-white flex-grow"}),e.jsx(P,{onClick:m,disabled:d,className:"px-6 py-2 bg-yellow-500 text-black font-medium rounded hover:bg-yellow-400 transition-colors",children:d?"Subscribing...":r})]})]})})})}function aD({title:t="Premium Job Alerts",description:a="Get notified about new jobs that match your skills and preferences.",inputPlaceholder:s="Your email address",buttonText:n="Subscribe",api_url:r="http://localhost:5147"}){const[i,l]=p.useState(""),[c,h]=p.useState(!1),[d,u]=p.useState(!1);p.useEffect(()=>{const x=localStorage.getItem("email");x&&(u(!0),l(x))},[]);const y=async()=>{if(!i||!i.includes("@")){alert("Please enter a valid email");return}h(!0);try{const x=await fetch(`${r}/api/leads`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,source:"sidebar_newsletter",utmCampaign:"jobs_sidebar",utmMedium:"ui",utmSource:"sidebar_component"})});if(x.ok){const m=await x.json();localStorage.setItem("leadId",m.id),localStorage.setItem("email",i),u(!0)}else{const m=await x.text();alert("Submission failed: "+m)}}catch{alert("Network error while submitting")}finally{h(!1)}};return e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:[e.jsx("h3",{className:"font-semibold text-lg mb-3",children:t}),e.jsx("p",{className:"text-sm text-gray-600 mb-4",children:a}),d?e.jsxs("p",{className:"text-green-600 font-medium",children:["✅ You’re subscribed",i?` as ${i}`:"","!"]}):e.jsxs("form",{className:"flex flex-col",children:[e.jsx(te,{type:"email",value:i,onChange:x=>l(x.target.value),placeholder:s,className:"mb-3"}),e.jsx(P,{type:"button",onClick:y,disabled:c,className:"bg-yellow-600 text-white hover:bg-yellow-700 transition-colors",children:c?"Subscribing...":n})]})]})}const sD=t=>/.+@.+\..+/.test(t);function F7({title:t="Premium Job Alerts",description:a="Get notified about new jobs that match your skills and preferences.",inputPlaceholder:s="Your email address",buttonText:n="Subscribe",isAuthenticated:r=!1,userEmail:i=null,isSubscribed:l,onSubscribe:c,onManageAlerts:h,onSignInRequired:d,onEmitEvent:u,loading:y=!1,source:x="sidebar_newsletter",email:m=null}){const[g,f]=p.useState(i??m??""),[k,v]=p.useState(!!l),[N,M]=p.useState(!1);p.useEffect(()=>{if(i){f(i);return}m&&f(m)},[i,m]),p.useEffect(()=>{if(typeof l=="boolean"){v(l);return}try{const w=localStorage.getItem("email");w&&(v(!0),f(j=>j||w))}catch{}},[l]);const b=y||N,C=p.useCallback((w,j)=>{u==null||u({domain:"newsletter",name:w,payload:j,timestamp:new Date().toISOString()})},[u]),S=p.useCallback(async()=>{if(!sD(g))return;const w={email:g,source:x};if(C("newsletter_subscribe_requested",w),!!c){M(!0);try{await c(w),v(!0),localStorage.setItem("email",g)}finally{M(!1)}}},[g,x,c,C]),L=p.useCallback(()=>{if(r){C("newsletter_manage_alerts_clicked",{}),h==null||h();return}C("newsletter_signin_required",{}),d==null||d()},[r,h,d,C]);return e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:[e.jsx("h3",{className:"font-semibold text-lg mb-3",children:t}),e.jsx("p",{className:"text-sm text-gray-600 mb-4",children:a}),k?e.jsxs("p",{className:"text-green-600 font-medium",children:["✅ You're subscribed",g?` as ${g}`:"","!"]}):r?e.jsx(P,{onClick:L,disabled:b,className:"w-full bg-yellow-600 text-white hover:bg-yellow-700 transition-colors",children:b?"Loading...":"Manage My Alerts"}):e.jsxs("form",{className:"flex flex-col",onSubmit:w=>{w.preventDefault(),S()},children:[e.jsx(te,{type:"email",value:g,onChange:w=>f(w.target.value),placeholder:s,disabled:b,className:"mb-3"}),e.jsx(P,{type:"submit",disabled:b,className:"bg-yellow-600 text-white hover:bg-yellow-700 transition-colors",children:b?"Subscribing...":n})]})]})}function rI({open:t,type:a,message:s,onClose:n}){if(p.useEffect(()=>{if(t){const i=setTimeout(n,5e3);return()=>clearTimeout(i)}},[t,n]),!t)return null;const r={success:"bg-green-100 text-green-800 border-green-300",error:"bg-red-100 text-red-800 border-red-300",info:"bg-yellow-100 text-yellow-800 border-yellow-300"};return e.jsx("div",{className:`fixed top-6 right-6 z-50 max-w-sm w-full p-4 rounded-lg border shadow-md ${r[a]}`,children:e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsx("p",{className:"text-sm font-medium",children:s}),e.jsx("button",{onClick:n,className:"ml-4",children:e.jsx(Na,{className:"w-5 h-5"})})]})})}const Ol=({position:t,url:a,alt:s,link:n})=>{let r="",i="";switch(t){case"top":r="w-screen h-[48px] md:h-[90px] flex justify-center items-center bg-yellow-100",i="w-[390px] h-[48px] md:w-[728px] md:h-[90px]";break;case"bottom":r="w-screen h-[48px] md:h-[90px] flex justify-center items-center bg-green-100 mt-8",i="w-[390px] h-[48px] md:w-[728px] md:h-[90px]";break;case"sidebar":r="w-[300px] h-[250px] flex justify-center items-center bg-yellow-100",i="w-[300px] h-[250px]";break}const l=a.match(/\.(mp4|webm|ogg)$/i);return e.jsx("div",{className:r,children:e.jsx("a",{href:n,target:"_blank",children:l?e.jsxs("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:`${i} object-cover`,children:[e.jsx("source",{src:a,type:"video/mp4"}),"Your browser does not support the video tag."]}):e.jsx("img",{src:a,alt:s,className:`${i} object-cover`})})})},E7=({options:t,value:a,onChange:s,placeholder:n,className:r=""})=>{const[i,l]=p.useState(!1),[c,h]=p.useState(""),d=p.useRef(null),u=t.filter(y=>y.toLowerCase().includes(c.toLowerCase()));return p.useEffect(()=>{const y=x=>{d.current&&!d.current.contains(x.target)&&l(!1)};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[]),e.jsxs("div",{className:`searchable-select-container relative ${r}`,ref:d,children:[e.jsxs("div",{className:"searchable-select-header px-3 py-2 border border-gray-300 rounded-lg bg-white cursor-pointer flex justify-between items-center",onClick:()=>l(!i),children:[e.jsx("span",{className:a?"text-gray-900":"text-gray-500",children:a||n}),e.jsx("svg",{className:`h-5 w-5 text-gray-400 transition-transform ${i?"transform rotate-180":""}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]}),i&&e.jsxs("div",{className:"searchable-select-dropdown absolute z-10 mt-1 w-full bg-white border border-gray-300 rounded-lg shadow-lg",children:[e.jsx("div",{className:"p-2",children:e.jsx("input",{type:"text",className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500",placeholder:"Search...",value:c,onChange:y=>h(y.target.value),onClick:y=>y.stopPropagation(),autoFocus:!0})}),e.jsxs("div",{className:"max-h-60 overflow-y-auto",children:[e.jsx("div",{className:"py-1 px-2 hover:bg-gray-100 cursor-pointer text-gray-500",onClick:()=>{s(""),l(!1),h("")},children:n}),u.length>0?u.map((y,x)=>e.jsx("div",{className:`py-1 px-2 cursor-pointer ${a===y?"bg-yellow-50 text-indigo-700":"hover:bg-gray-100 text-gray-900"}`,onClick:()=>{s(y),l(!1),h("")},children:y},x)):e.jsx("div",{className:"py-1 px-2 text-gray-500 italic",children:"No results found"})]})]})]})},nD=({filterKeys:t,filtersData:a,activeFilters:s,handleFilterChange:n,searchFilters:r,removeSearchFilter:i,clearAllFilters:l,searchableFilters:c})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"filters-grid",children:t.map(h=>{var u,y;return(c==null?void 0:c.includes(h))?e.jsx(E7,{options:((u=a[h])==null?void 0:u.filter(x=>typeof x=="string"))||[],value:s[h]||"",onChange:x=>n(h,x),placeholder:`Select ${h.replace(/_/g," ")}`},h):e.jsxs("select",{className:"filter-select",onChange:x=>n(h,x.target.value),value:s[h]||"",children:[e.jsxs("option",{value:"",children:["Select ",h.replace(/_/g," ")]}),(y=a[h])==null?void 0:y.map((x,m)=>typeof x!="string"?null:e.jsx("option",{value:x,children:x},`${h}-${m}`))]},h)})}),e.jsxs("div",{className:"active-filters",children:[r.map(h=>e.jsxs("div",{className:"filter-badge search-filter-badge",children:[e.jsx("span",{className:"filter-value",children:h}),e.jsx("button",{className:"remove-filter",onClick:()=>i(h),"aria-label":`Remove search filter ${h}`,children:"×"})]},`search-${h}`)),Object.entries(s).map(([h,d])=>e.jsxs("div",{className:"filter-badge",children:[e.jsxs("span",{className:"filter-label",children:[h.replace(/_/g," "),":"]}),e.jsx("span",{className:"filter-value",children:d}),e.jsx("button",{className:"remove-filter",onClick:()=>n(h,""),"aria-label":`Remove ${h} filter`,children:"×"})]},h)),(Object.keys(s).length>0||r.length>0)&&e.jsx("button",{className:"clear-all-filters",onClick:l,children:"Clear All"})]})]}),rD=({searchTerm:t,handleSearchChange:a,handleSearchKeyDown:s,suggestions:n})=>e.jsx("div",{className:"search-container",children:e.jsxs("div",{className:"search-input-wrapper",children:[e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"search-icon",children:[e.jsx("circle",{cx:"11",cy:"11",r:"8"}),e.jsx("path",{d:"m21 21-4.3-4.3"})]}),e.jsx("input",{type:"text",className:"search-input",placeholder:"Search jobs and press Enter to add as filter...",value:t,onChange:r=>a(r.target.value),onKeyDown:s,list:"job-suggestions"}),e.jsx("datalist",{id:"job-suggestions",children:n.map((r,i)=>e.jsx("option",{value:r},i))})]})}),iD={not_registered:{status:"not_registered",registered:!1,allowSaving:!1,maskExternalLinks:!1,blurCompanyTitle:!0,notHrefJobsLink:!0},freemium:{status:"freemium",registered:!0,allowSaving:!0,maskExternalLinks:!1,blurCompanyTitle:!1,notHrefJobsLink:!1},premium:{status:"premium",registered:!0,allowSaving:!0,maskExternalLinks:!1,blurCompanyTitle:!1,notHrefJobsLink:!1}},O7=t=>{const a=(t==null?void 0:t.status)??(t!=null&&t.registered?"freemium":"not_registered"),s=iD[a],n=(t==null?void 0:t.registered)??s.registered,r=!n;return{...s,registered:n,allowSaving:(t==null?void 0:t.allowSaving)??s.allowSaving,maskExternalLinks:(t==null?void 0:t.maskExternalLinks)??s.maskExternalLinks,blurCompanyTitle:(t==null?void 0:t.blurCompanyTitle)??(r?!0:s.blurCompanyTitle),notHrefJobsLink:(t==null?void 0:t.notHrefJobsLink)??(r?!0:s.notHrefJobsLink),note:t==null?void 0:t.note}},iI={not_registered:"Guest access",freemium:"Freemium member",premium:"Premium member"},bC=({job:t,positionInList:a,onSaveJob:s,onViewJob:n,onApplyJob:r,isSaved:i,layout:l="grid",userAccess:c})=>{var L;if(!t||typeof t!="object")return console.error("❌ Invalid job data:",t),e.jsx("div",{className:"job-card bg-red-50",children:e.jsxs("div",{className:"p-4",children:[e.jsx("p",{className:"text-red-800 font-medium",children:"Invalid Job Data"}),e.jsx("p",{className:"text-red-600 text-sm",children:"The job data is in an unexpected format."})]})});const h=w=>{if(k||N){w.preventDefault(),w.stopPropagation();return}const j=k||N?"external":t.description&&t.description!==""?"same_tab":"new_tab";r==null||r(t,a,"external"),n(t,a,j)},d=w=>{w.preventDefault(),w.stopPropagation(),f&&s(t,a)};t.published_at||t.created_at||t.scraped_at;const u=t.min_salary||0,y=t.max_salary||0,x=`$${u.toLocaleString()} - $${y.toLocaleString()}`,g=(w=>{if(!w)return"Recently posted";try{const j=new Date(w),T=Math.abs(new Date().getTime()-j.getTime()),A=Math.floor(T/(1e3*60*60*24));return A===0?"Today":A===1?"Yesterday":A<7?`${A} days ago`:A<30?`${Math.floor(A/7)} weeks ago`:A<365?`${Math.floor(A/30)} months ago`:`${Math.floor(A/365)} years ago`}catch{return"Recently posted"}})(t.published_at||t.created_at||t.scraped_at),f=c.allowSaving,k=c.maskExternalLinks,v=c.blurCompanyTitle,N=c.notHrefJobsLink,M=iI[c.status],b=f?"Save job":"Log in to save this job",C=t.link??t.url,S=t.slug!==""?"/jobs/"+(t.slug||t.id):C;return e.jsxs("div",{className:`bg-white rounded-lg shadow-sm border border-gray-200 p-3 hover:shadow-md transition-shadow
7723
7723
  ${l==="grid"?"flex flex-col h-full":"flex flex-col md:flex-row md:items-center md:space-x-4"}`,children:[e.jsxs("div",{className:"flex items-start space-x-4",children:[e.jsx("img",{src:t.logo||`/placeholder.svg?height=48&width=48&text=${((L=t.company)==null?void 0:L.charAt(0))||"C"}`,alt:`${t.company} logo`,className:"w-12 h-12 rounded-lg object-contain bg-gray-50"}),e.jsxs("div",{className:"flex-1",children:[k||N?e.jsx("h3",{className:"font-semibold text-gray-900",children:t.title||"No Title Available"}):e.jsx("h3",{className:"font-semibold text-gray-900",children:e.jsx("a",{href:S,children:t.title||"No Title Available"})}),e.jsx("p",{className:`text-sm text-muted-foreground ${v?"blur-sm select-none":""}`,children:t.company||"Unknown Company"}),e.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[e.jsx("span",{className:"inline-flex items-center rounded-full bg-gray-100 px-2.5 py-0.5 text-xs font-medium text-gray-700",children:M}),c.note&&e.jsx("span",{className:"text-xs text-gray-500",children:c.note})]})]})]}),e.jsxs("div",{className:`
7724
7724
  mt-4 ${l==="list"?"md:mt-0 md:flex-1":""}
package/dist/index.mjs CHANGED
@@ -36762,7 +36762,7 @@ const oD = [
36762
36762
  "button",
36763
36763
  {
36764
36764
  onClick: () => m(y.path),
36765
- className: "w-full flex items-center gap-4 px-6 py-2 hover:bg-muted/50 transition-colors text-left",
36765
+ className: "w-full flex items-center gap-4 px-6 py-3 hover:bg-muted/50 transition-colors text-left",
36766
36766
  children: [
36767
36767
  /* @__PURE__ */ e("div", { className: "w-10 h-10 rounded-full bg-secondary flex items-center justify-center", children: /* @__PURE__ */ e(g, { className: "w-5 h-5 text-muted-foreground" }) }),
36768
36768
  /* @__PURE__ */ e("span", { className: "flex-1 font-medium", children: y.label }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igamingcareer/igaming-components",
3
- "version": "1.1.15",
3
+ "version": "1.1.16",
4
4
  "description": "Reusable React component library for the iGamingCareer platform",
5
5
  "author": "iGamingCareer <info@igamingcareer.com>",
6
6
  "license": "MIT",