@igamingcareer/igaming-components 1.2.17 → 1.2.19

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
@@ -7704,7 +7704,7 @@
7704
7704
  [data-state=closed]
7705
7705
  ){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 gP=24,fP=typeof window<"u"?u.useLayoutEffect:u.useEffect;function eC(...t){return(...a)=>{for(let s of t)typeof s=="function"&&s(...a)}}function vP(){return j7(/^Mac/)}function kP(){return j7(/^iPhone/)}function tC(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function bP(){return j7(/^iPad/)||vP()&&navigator.maxTouchPoints>1}function vS(){return kP()||bP()}function j7(t){return typeof window<"u"&&window.navigator!=null?t.test(window.navigator.platform):void 0}const wM=typeof document<"u"&&window.visualViewport;function aC(t){let a=window.getComputedStyle(t);return/(auto|scroll)/.test(a.overflow+a.overflowX+a.overflowY)}function kS(t){for(aC(t)&&(t=t.parentElement);t&&!aC(t);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}const jP=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Rc=0,NM;function wP(t={}){let{isDisabled:a}=t;fP(()=>{if(!a)return Rc++,Rc===1&&vS()&&(NM=NP()),()=>{Rc--,Rc===0&&(NM==null||NM())}},[a])}function NP(){let t,a=0,s=x=>{t=kS(x.target),!(t===document.documentElement&&t===document.body)&&(a=x.changedTouches[0].pageY)},n=x=>{if(!t||t===document.documentElement||t===document.body){x.preventDefault();return}let g=x.changedTouches[0].pageY,m=t.scrollTop,y=t.scrollHeight-t.clientHeight;y!==0&&((m<=0&&g>a||m>=y&&g<a)&&x.preventDefault(),a=g)},r=x=>{let g=x.target;XM(g)&&g!==document.activeElement&&(x.preventDefault(),g.style.transform="translateY(-2000px)",g.focus(),requestAnimationFrame(()=>{g.style.transform=""}))},o=x=>{let g=x.target;XM(g)&&(g.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{g.style.transform="",wM&&(wM.height<window.innerHeight?requestAnimationFrame(()=>{sC(g)}):wM.addEventListener("resize",()=>sC(g),{once:!0}))}))},l=()=>{window.scrollTo(0,0)},c=window.pageXOffset,h=window.pageYOffset,d=eC(MP(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let p=eC(_l(document,"touchstart",s,{passive:!1,capture:!0}),_l(document,"touchmove",n,{passive:!1,capture:!0}),_l(document,"touchend",r,{passive:!1,capture:!0}),_l(document,"focus",o,!0),_l(window,"scroll",l));return()=>{d(),p(),window.scrollTo(c,h)}}function MP(t,a,s){let n=t.style[a];return t.style[a]=s,()=>{t.style[a]=n}}function _l(t,a,s,n){return t.addEventListener(a,s,n),()=>{t.removeEventListener(a,s,n)}}function sC(t){let a=document.scrollingElement||document.documentElement;for(;t&&t!==a;){let s=kS(t);if(s!==document.documentElement&&s!==document.body&&s!==t){let n=s.getBoundingClientRect().top,r=t.getBoundingClientRect().top,o=t.getBoundingClientRect().bottom;const l=s.getBoundingClientRect().bottom+gP;o>l&&(s.scrollTop+=r-n)}t=s.parentElement}}function XM(t){return t instanceof HTMLInputElement&&!jP.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}function CP(t,a){typeof t=="function"?t(a):t!=null&&(t.current=a)}function SP(...t){return a=>t.forEach(s=>CP(s,a))}function bS(...t){return le.useCallback(SP(...t),t)}const jS=new WeakMap;function Kt(t,a,s=!1){if(!t||!(t instanceof HTMLElement))return;let n={};Object.entries(a).forEach(([r,o])=>{if(r.startsWith("--")){t.style.setProperty(r,o);return}n[r]=t.style[r],t.style[r]=o}),!s&&jS.set(t,n)}function LP(t,a){if(!t||!(t instanceof HTMLElement))return;let s=jS.get(t);s&&(t.style[a]=s[a])}const Xt=t=>{switch(t){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return t}};function Dc(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(", ")[Xt(a)?13:12]):(r=n.match(/^matrix\((.+)\)$/),r?parseFloat(r[1].split(", ")[Xt(a)?5:4]):null)}function IP(t){return 8*(Math.log(t+1)-2)}function MM(t,a){if(!t)return()=>{};const s=t.style.cssText;return Object.assign(t.style,a),()=>{t.style.cssText=s}}function AP(...t){return(...a)=>{for(const s of t)typeof s=="function"&&s(...a)}}const Rt={DURATION:.5,EASE:[.32,.72,0,1]},wS=.4,PP=.25,TP=100,NS=8,bn=16,QM=26,CM="vaul-dragging";function MS(t){const a=u.useRef(t);return u.useEffect(()=>{a.current=t}),u.useMemo(()=>(...s)=>a.current==null?void 0:a.current.call(a,...s),[])}function RP({defaultProp:t,onChange:a}){const s=u.useState(t),[n]=s,r=u.useRef(n),o=MS(a);return u.useEffect(()=>{r.current!==n&&(o(n),r.current=n)},[n,r,o]),s}function CS({prop:t,defaultProp:a,onChange:s=()=>{}}){const[n,r]=RP({defaultProp:a,onChange:s}),o=t!==void 0,l=o?t:n,c=MS(s),h=u.useCallback(d=>{if(o){const x=typeof d=="function"?d(t):d;x!==t&&c(x)}else r(d)},[o,t,r,c]);return[l,h]}function DP({activeSnapPointProp:t,setActiveSnapPointProp:a,snapPoints:s,drawerRef:n,overlayRef:r,fadeFromIndex:o,onSnapPointChange:l,direction:c="bottom",container:h,snapToSequentialPoint:d}){const[p,x]=CS({prop:t,defaultProp:s==null?void 0:s[0],onChange:a}),[g,m]=u.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);u.useEffect(()=>{function P(){m({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",P),()=>window.removeEventListener("resize",P)},[]);const y=u.useMemo(()=>p===(s==null?void 0:s[s.length-1])||null,[s,p]),v=u.useMemo(()=>s==null?void 0:s.findIndex(P=>P===p),[s,p]),f=s&&s.length>0&&(o||o===0)&&!Number.isNaN(o)&&s[o]===p||!s,k=u.useMemo(()=>{const P=h?{width:h.getBoundingClientRect().width,height:h.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var A;return(A=s==null?void 0:s.map(C=>{const S=typeof C=="string";let M=0;if(S&&(M=parseInt(C,10)),Xt(c)){const R=S?M:g?C*P.height:0;return g?c==="bottom"?P.height-R:-P.height+R:R}const N=S?M:g?C*P.width:0;return g?c==="right"?P.width-N:-P.width+N:N}))!=null?A:[]},[s,g,h]),j=u.useMemo(()=>v!==null?k==null?void 0:k[v]:null,[k,v]),w=u.useCallback(P=>{var A;const C=(A=k==null?void 0:k.findIndex(S=>S===P))!=null?A:null;l(C),Kt(n.current,{transition:`transform ${Rt.DURATION}s cubic-bezier(${Rt.EASE.join(",")})`,transform:Xt(c)?`translate3d(0, ${P}px, 0)`:`translate3d(${P}px, 0, 0)`}),k&&C!==k.length-1&&C!==o&&C<o?Kt(r.current,{transition:`opacity ${Rt.DURATION}s cubic-bezier(${Rt.EASE.join(",")})`,opacity:"0"}):Kt(r.current,{transition:`opacity ${Rt.DURATION}s cubic-bezier(${Rt.EASE.join(",")})`,opacity:"1"}),x(s==null?void 0:s[Math.max(C,0)])},[n.current,s,k,o,r,x]);u.useEffect(()=>{if(p||t){var P;const A=(P=s==null?void 0:s.findIndex(C=>C===t||C===p))!=null?P:-1;k&&A!==-1&&typeof k[A]=="number"&&w(k[A])}},[p,t,s,k,w]);function b({draggedDistance:P,closeDrawer:A,velocity:C,dismissible:S}){if(o===void 0)return;const M=c==="bottom"||c==="right"?(j??0)-P:(j??0)+P,N=v===o-1,R=v===0,D=P>0;if(N&&Kt(r.current,{transition:`opacity ${Rt.DURATION}s cubic-bezier(${Rt.EASE.join(",")})`}),!d&&C>2&&!D){S?A():w(k[0]);return}if(!d&&C>2&&D&&k&&s){w(k[s.length-1]);return}const E=k==null?void 0:k.reduce((O,Y)=>typeof O!="number"||typeof Y!="number"?O:Math.abs(Y-M)<Math.abs(O-M)?Y:O),W=Xt(c)?window.innerHeight:window.innerWidth;if(C>wS&&Math.abs(P)<W*.4){const O=D?1:-1;if(O>0&&y){w(k[s.length-1]);return}if(R&&O<0&&S&&A(),v===null)return;w(k[v+O]);return}w(E)}function I({draggedDistance:P}){if(j===null)return;const A=c==="bottom"||c==="right"?j-P:j+P;(c==="bottom"||c==="right")&&A<k[k.length-1]||(c==="top"||c==="left")&&A>k[k.length-1]||Kt(n.current,{transform:Xt(c)?`translate3d(0, ${A}px, 0)`:`translate3d(${A}px, 0, 0)`})}function L(P,A){if(!s||typeof v!="number"||!k||o===void 0)return null;const C=v===o-1;if(v>=o&&A)return 0;if(C&&!A)return 1;if(!f&&!C)return null;const M=C?v+1:v-1,N=C?k[M]-k[M-1]:k[M+1]-k[M],R=P/Math.abs(N);return C?1-R:R}return{isLastSnapPoint:y,activeSnapPoint:p,shouldFade:f,getPercentageDragged:L,setActiveSnapPoint:x,activeSnapPointIndex:v,onRelease:b,onDrag:I,snapPointsOffset:k}}const FP=()=>()=>{};function zP(){const{direction:t,isOpen:a,shouldScaleBackground:s,setBackgroundColorOnScale:n,noBodyStyles:r}=Sc(),o=u.useRef(null),l=u.useMemo(()=>document.body.style.backgroundColor,[]);function c(){return(window.innerWidth-QM)/window.innerWidth}u.useEffect(()=>{if(a&&s){o.current&&clearTimeout(o.current);const h=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!h)return;AP(n&&!r?MM(document.body,{background:"black"}):FP,MM(h,{transformOrigin:Xt(t)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${Rt.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Rt.EASE.join(",")})`}));const d=MM(h,{borderRadius:`${NS}px`,overflow:"hidden",...Xt(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(),o.current=window.setTimeout(()=>{l?document.body.style.background=l:document.body.style.removeProperty("background")},Rt.DURATION*1e3)}}},[a,s,l])}let Vl=null;function qP({isOpen:t,modal:a,nested:s,hasBeenOpened:n,preventScrollRestoration:r,noBodyStyles:o}){const[l,c]=u.useState(()=>typeof window<"u"?window.location.href:""),h=u.useRef(0),d=u.useCallback(()=>{if(tC()&&Vl===null&&t&&!o){Vl={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:x,innerHeight:g}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-h.current}px`,left:`${-x}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const m=g-window.innerHeight;m&&h.current>=g&&(document.body.style.top=`${-(h.current+m)}px`)}),300)}},[t]),p=u.useCallback(()=>{if(tC()&&Vl!==null&&!o){const x=-parseInt(document.body.style.top,10),g=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Vl),window.requestAnimationFrame(()=>{if(r&&l!==window.location.href){c(window.location.href);return}window.scrollTo(g,x)}),Vl=null}},[l]);return u.useEffect(()=>{function x(){h.current=window.scrollY}return x(),window.addEventListener("scroll",x),()=>{window.removeEventListener("scroll",x)}},[]),u.useEffect(()=>{s||!n||(t?(!window.matchMedia("(display-mode: standalone)").matches&&d(),a||window.setTimeout(()=>{p()},500)):p())},[t,n,l,a,s,d,p]),{restorePositionSetting:p}}function EP({open:t,onOpenChange:a,children:s,onDrag:n,onRelease:r,snapPoints:o,shouldScaleBackground:l=!1,setBackgroundColorOnScale:c=!0,closeThreshold:h=PP,scrollLockTimeout:d=TP,dismissible:p=!0,handleOnly:x=!1,fadeFromIndex:g=o&&o.length-1,activeSnapPoint:m,setActiveSnapPoint:y,fixed:v,modal:f=!0,onClose:k,nested:j,noBodyStyles:w,direction:b="bottom",defaultOpen:I=!1,disablePreventScroll:L=!0,snapToSequentialPoint:P=!1,preventScrollRestoration:A=!1,repositionInputs:C=!0,onAnimationEnd:S,container:M,autoFocus:N=!1}){var R,D;const[E=!1,W]=CS({defaultProp:I,prop:t,onChange:Pe=>{a==null||a(Pe),!Pe&&!j&&he(),setTimeout(()=>{S==null||S(Pe)},Rt.DURATION*1e3),Pe&&!f&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),Pe||(document.body.style.pointerEvents="auto")}}),[O,Y]=u.useState(!1),[K,ee]=u.useState(!1),[de,me]=u.useState(!1),U=u.useRef(null),X=u.useRef(null),te=u.useRef(null),fe=u.useRef(null),ke=u.useRef(null),ie=u.useRef(!1),B=u.useRef(null),ne=u.useRef(0),V=u.useRef(!1),z=u.useRef(0),_=u.useRef(null),ye=u.useRef(((R=_.current)==null?void 0:R.getBoundingClientRect().height)||0),Ce=u.useRef(((D=_.current)==null?void 0:D.getBoundingClientRect().width)||0),Oe=u.useRef(0),Te=u.useCallback(Pe=>{o&&Pe===q.length-1&&(X.current=new Date)},[]),{activeSnapPoint:Ke,activeSnapPointIndex:be,setActiveSnapPoint:Xe,onRelease:bt,snapPointsOffset:q,onDrag:G,shouldFade:Z,getPercentageDragged:ve}=DP({snapPoints:o,activeSnapPointProp:m,setActiveSnapPointProp:y,drawerRef:_,fadeFromIndex:g,overlayRef:U,onSnapPointChange:Te,direction:b,container:M,snapToSequentialPoint:P});wP({isDisabled:!E||K||!f||de||!O||!C||!L});const{restorePositionSetting:he}=qP({isOpen:E,modal:f,nested:j,hasBeenOpened:O,preventScrollRestoration:A,noBodyStyles:w});function oe(){return(window.innerWidth-QM)/window.innerWidth}function Me(Pe){var Ze,Je;!p&&!o||_.current&&!_.current.contains(Pe.target)||(ye.current=((Ze=_.current)==null?void 0:Ze.getBoundingClientRect().height)||0,Ce.current=((Je=_.current)==null?void 0:Je.getBoundingClientRect().width)||0,ee(!0),te.current=new Date,vS()&&window.addEventListener("touchend",()=>ie.current=!1,{once:!0}),Pe.target.setPointerCapture(Pe.pointerId),ne.current=Xt(b)?Pe.pageY:Pe.pageX)}function Se(Pe,Ze){var Je,rt;let Ge=Pe;const wt=(Je=window.getSelection())==null?void 0:Je.toString(),Tt=_.current?Dc(_.current,b):null,Ie=new Date;if(Ge.hasAttribute("data-vaul-no-drag")||Ge.closest("[data-vaul-no-drag]"))return!1;if(b==="right"||b==="left")return!0;if(X.current&&Ie.getTime()-X.current.getTime()<500)return!1;if(Tt!==null&&(b==="bottom"?Tt>0:Tt<0))return!0;if(wt&&wt.length>0)return!1;if(Ie.getTime()-((rt=ke.current)==null?void 0:rt.getTime())<d&&Tt===0||Ze)return ke.current=Ie,!1;for(;Ge;){if(Ge.scrollHeight>Ge.clientHeight){if(Ge.scrollTop!==0)return ke.current=new Date,!1;if(Ge.getAttribute("role")==="dialog")return!0}Ge=Ge.parentNode}return!0}function He(Pe){if(_.current&&K){const Ze=b==="bottom"||b==="right"?1:-1,Je=(ne.current-(Xt(b)?Pe.pageY:Pe.pageX))*Ze,rt=Je>0,Ge=o&&!p&&!rt;if(Ge&&be===0)return;const wt=Math.abs(Je),Tt=document.querySelector("[data-vaul-drawer-wrapper]"),Ie=b==="bottom"||b==="top"?ye.current:Ce.current;let Q=wt/Ie;const xe=ve(wt,rt);if(xe!==null&&(Q=xe),Ge&&Q>=1||!ie.current&&!Se(Pe.target,rt))return;if(_.current.classList.add(CM),ie.current=!0,Kt(_.current,{transition:"none"}),Kt(U.current,{transition:"none"}),o&&G({draggedDistance:Je}),rt&&!o){const Fe=IP(Je),tt=Math.min(Fe*-1,0)*Ze;Kt(_.current,{transform:Xt(b)?`translate3d(0, ${tt}px, 0)`:`translate3d(${tt}px, 0, 0)`});return}const Re=1-Q;if((Z||g&&be===g-1)&&(n==null||n(Pe,Q),Kt(U.current,{opacity:`${Re}`,transition:"none"},!0)),Tt&&U.current&&l){const Fe=Math.min(oe()+Q*(1-oe()),1),tt=8-Q*8,ra=Math.max(0,14-Q*14);Kt(Tt,{borderRadius:`${tt}px`,transform:Xt(b)?`scale(${Fe}) translate3d(0, ${ra}px, 0)`:`scale(${Fe}) translate3d(${ra}px, 0, 0)`,transition:"none"},!0)}if(!o){const Fe=wt*Ze;Kt(_.current,{transform:Xt(b)?`translate3d(0, ${Fe}px, 0)`:`translate3d(${Fe}px, 0, 0)`})}}}u.useEffect(()=>{var Pe;function Ze(){if(!_.current||!C)return;const Je=document.activeElement;if(XM(Je)||V.current){var rt;const Ge=((rt=window.visualViewport)==null?void 0:rt.height)||0,wt=window.innerHeight;let Tt=wt-Ge;const Ie=_.current.getBoundingClientRect().height||0,Q=Ie>wt*.8;Oe.current||(Oe.current=Ie);const xe=_.current.getBoundingClientRect().top;if(Math.abs(z.current-Tt)>60&&(V.current=!V.current),o&&o.length>0&&q&&be){const Re=q[be]||0;Tt+=Re}if(z.current=Tt,Ie>Ge||V.current){const Re=_.current.getBoundingClientRect().height;let Fe=Re;Re>Ge&&(Fe=Ge-(Q?xe:QM)),v?_.current.style.height=`${Re-Math.max(Tt,0)}px`:_.current.style.height=`${Math.max(Fe,Ge-xe)}px`}else _.current.style.height=`${Oe.current}px`;o&&o.length>0&&!V.current?_.current.style.bottom="0px":_.current.style.bottom=`${Math.max(Tt,0)}px`}}return(Pe=window.visualViewport)==null||Pe.addEventListener("resize",Ze),()=>{var Je;return(Je=window.visualViewport)==null?void 0:Je.removeEventListener("resize",Ze)}},[be,o,q]);function jt(Pe){Ct(),k==null||k(),Pe||W(!1),setTimeout(()=>{o&&Xe(o[0])},Rt.DURATION*1e3)}function At(){if(!_.current)return;const Pe=document.querySelector("[data-vaul-drawer-wrapper]"),Ze=Dc(_.current,b);Kt(_.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Rt.DURATION}s cubic-bezier(${Rt.EASE.join(",")})`}),Kt(U.current,{transition:`opacity ${Rt.DURATION}s cubic-bezier(${Rt.EASE.join(",")})`,opacity:"1"}),l&&Ze&&Ze>0&&E&&Kt(Pe,{borderRadius:`${NS}px`,overflow:"hidden",...Xt(b)?{transform:`scale(${oe()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${oe()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Rt.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Rt.EASE.join(",")})`},!0)}function Ct(){!K||!_.current||(_.current.classList.remove(CM),ie.current=!1,ee(!1),fe.current=new Date)}function ua(Pe){if(!K||!_.current)return;_.current.classList.remove(CM),ie.current=!1,ee(!1),fe.current=new Date;const Ze=Dc(_.current,b);if(!Se(Pe.target,!1)||!Ze||Number.isNaN(Ze)||te.current===null)return;const Je=fe.current.getTime()-te.current.getTime(),rt=ne.current-(Xt(b)?Pe.pageY:Pe.pageX),Ge=Math.abs(rt)/Je;if(Ge>.05&&(me(!0),setTimeout(()=>{me(!1)},200)),o){bt({draggedDistance:rt*(b==="bottom"||b==="right"?1:-1),closeDrawer:jt,velocity:Ge,dismissible:p}),r==null||r(Pe,!0);return}if(b==="bottom"||b==="right"?rt>0:rt<0){At(),r==null||r(Pe,!0);return}if(Ge>wS){jt(),r==null||r(Pe,!1);return}var wt;const Tt=Math.min((wt=_.current.getBoundingClientRect().height)!=null?wt:0,window.innerHeight);var Ie;const Q=Math.min((Ie=_.current.getBoundingClientRect().width)!=null?Ie:0,window.innerWidth),xe=b==="left"||b==="right";if(Math.abs(Ze)>=(xe?Q:Tt)*h){jt(),r==null||r(Pe,!1);return}r==null||r(Pe,!0),At()}u.useEffect(()=>(E&&(Kt(document.documentElement,{scrollBehavior:"auto"}),X.current=new Date),()=>{LP(document.documentElement,"scrollBehavior")}),[E]);function ma(Pe){const Ze=Pe?(window.innerWidth-bn)/window.innerWidth:1,Je=Pe?-bn:0;B.current&&window.clearTimeout(B.current),Kt(_.current,{transition:`transform ${Rt.DURATION}s cubic-bezier(${Rt.EASE.join(",")})`,transform:`scale(${Ze}) translate3d(0, ${Je}px, 0)`}),!Pe&&_.current&&(B.current=setTimeout(()=>{const rt=Dc(_.current,b);Kt(_.current,{transition:"none",transform:Xt(b)?`translate3d(0, ${rt}px, 0)`:`translate3d(${rt}px, 0, 0)`})},500))}function ta(Pe,Ze){if(Ze<0)return;const Je=(window.innerWidth-bn)/window.innerWidth,rt=Je+Ze*(1-Je),Ge=-bn+Ze*bn;Kt(_.current,{transform:Xt(b)?`scale(${rt}) translate3d(0, ${Ge}px, 0)`:`scale(${rt}) translate3d(${Ge}px, 0, 0)`,transition:"none"})}function la(Pe,Ze){const Je=Xt(b)?window.innerHeight:window.innerWidth,rt=Ze?(Je-bn)/Je:1,Ge=Ze?-bn:0;Ze&&Kt(_.current,{transition:`transform ${Rt.DURATION}s cubic-bezier(${Rt.EASE.join(",")})`,transform:Xt(b)?`scale(${rt}) translate3d(0, ${Ge}px, 0)`:`scale(${rt}) translate3d(${Ge}px, 0, 0)`})}return u.createElement(na.Root,{defaultOpen:I,onOpenChange:Pe=>{!p&&!Pe||(Pe?Y(!0):jt(!0),W(Pe))},open:E},u.createElement(fS.Provider,{value:{activeSnapPoint:Ke,snapPoints:o,setActiveSnapPoint:Xe,drawerRef:_,overlayRef:U,onOpenChange:a,onPress:Me,onRelease:ua,onDrag:He,dismissible:p,handleOnly:x,isOpen:E,isDragging:K,shouldFade:Z,closeDrawer:jt,onNestedDrag:ta,onNestedOpenChange:ma,onNestedRelease:la,keyboardIsOpen:V,modal:f,snapPointsOffset:q,direction:b,shouldScaleBackground:l,setBackgroundColorOnScale:c,noBodyStyles:w,container:M,autoFocus:N}},s))}const SS=u.forwardRef(function({...t},a){const{overlayRef:s,snapPoints:n,onRelease:r,shouldFade:o,isOpen:l,modal:c}=Sc(),h=bS(a,s),d=n&&n.length>0;return c?u.createElement(na.Overlay,{onMouseUp:r,ref:h,"data-vaul-overlay":"","data-vaul-snap-points":l&&d?"true":"false","data-vaul-snap-points-overlay":l&&o?"true":"false",...t}):(typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),null)});SS.displayName="Drawer.Overlay";const LS=u.forwardRef(function({onPointerDownOutside:t,style:a,onOpenAutoFocus:s,...n},r){const{drawerRef:o,onPress:l,onRelease:c,onDrag:h,keyboardIsOpen:d,snapPointsOffset:p,modal:x,isOpen:g,direction:m,snapPoints:y,container:v,handleOnly:f,autoFocus:k}=Sc(),[j,w]=u.useState(!1),b=bS(r,o),I=u.useRef(null),L=u.useRef(null),P=u.useRef(!1),A=y&&y.length>0;zP();const C=(M,N,R=0)=>{if(P.current)return!0;const D=Math.abs(M.y),E=Math.abs(M.x),W=E>D,O=["bottom","right"].includes(N)?1:-1;if(N==="left"||N==="right"){if(!(M.x*O<0)&&E>=0&&E<=R)return W}else if(!(M.y*O<0)&&D>=0&&D<=R)return!W;return P.current=!0,!0};u.useEffect(()=>{A&&window.requestAnimationFrame(()=>{w(!0)})},[]);function S(M){I.current=null,P.current=!1,c(M)}return u.createElement(na.Content,{"data-vaul-drawer-direction":m,"data-vaul-drawer":"","data-vaul-delayed-snap-points":j?"true":"false","data-vaul-snap-points":g&&A?"true":"false","data-vaul-custom-container":v?"true":"false",...n,ref:b,style:p&&p.length>0?{"--snap-point-height":`${p[0]}px`,...a}:a,onPointerDown:M=>{f||(n.onPointerDown==null||n.onPointerDown.call(n,M),I.current={x:M.pageX,y:M.pageY},l(M))},onOpenAutoFocus:M=>{s==null||s(M),k||M.preventDefault()},onPointerDownOutside:M=>{if(t==null||t(M),!x||M.defaultPrevented){M.preventDefault();return}d.current&&(d.current=!1)},onFocusOutside:M=>{if(!x){M.preventDefault();return}},onPointerMove:M=>{if(L.current=M,f||(n.onPointerMove==null||n.onPointerMove.call(n,M),!I.current))return;const N=M.pageY-I.current.y,R=M.pageX-I.current.x,D=M.pointerType==="touch"?10:2;C({x:R,y:N},m,D)?h(M):(Math.abs(R)>D||Math.abs(N)>D)&&(I.current=null)},onPointerUp:M=>{n.onPointerUp==null||n.onPointerUp.call(n,M),I.current=null,P.current=!1,c(M)},onPointerOut:M=>{n.onPointerOut==null||n.onPointerOut.call(n,M),S(L.current)},onContextMenu:M=>{n.onContextMenu==null||n.onContextMenu.call(n,M),S(L.current)}})});LS.displayName="Drawer.Content";const _P=250,VP=120,OP=u.forwardRef(function({preventCycle:t=!1,children:a,...s},n){const{closeDrawer:r,isDragging:o,snapPoints:l,activeSnapPoint:c,setActiveSnapPoint:h,dismissible:d,handleOnly:p,isOpen:x,onPress:g,onDrag:m}=Sc(),y=u.useRef(null),v=u.useRef(!1);function f(){if(v.current){w();return}window.setTimeout(()=>{k()},VP)}function k(){if(o||t||v.current){w();return}if(w(),(!l||l.length===0)&&d){r();return}if(c===l[l.length-1]&&d){r();return}const I=l.findIndex(P=>P===c);if(I===-1)return;const L=l[I+1];h(L)}function j(){y.current=window.setTimeout(()=>{v.current=!0},_P)}function w(){window.clearTimeout(y.current),v.current=!1}return u.createElement("div",{onClick:f,onPointerCancel:w,onPointerDown:b=>{p&&g(b),j()},onPointerMove:b=>{p&&m(b)},ref:n,"data-vaul-drawer-visible":x?"true":"false","data-vaul-handle":"","aria-hidden":"true",...s},u.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},a))});OP.displayName="Drawer.Handle";function BP(t){const a=Sc(),{container:s=a.container,...n}=t;return u.createElement(na.Portal,{container:s,...n})}const Vs={Root:EP,Content:LS,Overlay:SS,Portal:BP,Title:na.Title,Description:na.Description},IS=({shouldScaleBackground:t=!0,...a})=>e.jsx(Vs.Root,{shouldScaleBackground:t,...a});IS.displayName="Drawer";const HP=Vs.Portal,AS=le.forwardRef(({className:t,...a},s)=>e.jsx(Vs.Overlay,{ref:s,className:ue("fixed inset-0 z-50 bg-black/80",t),...a}));AS.displayName=Vs.Overlay.displayName;const PS=le.forwardRef(({className:t,children:a,...s},n)=>e.jsxs(HP,{children:[e.jsx(AS,{}),e.jsxs(Vs.Content,{ref:n,className:ue("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]})]}));PS.displayName="DrawerContent";const TS=({className:t,...a})=>e.jsx("div",{className:ue("grid gap-1.5 p-4 text-center sm:text-left",t),...a});TS.displayName="DrawerHeader";const RS=({className:t,...a})=>e.jsx("div",{className:ue("mt-auto flex flex-col gap-2 p-4",t),...a});RS.displayName="DrawerFooter";const DS=le.forwardRef(({className:t,...a},s)=>e.jsx(Vs.Title,{ref:s,className:ue("text-lg font-semibold leading-none tracking-tight",t),...a}));DS.displayName=Vs.Title.displayName;const UP=le.forwardRef(({className:t,...a},s)=>e.jsx(Vs.Description,{ref:s,className:ue("text-sm text-muted-foreground",t),...a}));UP.displayName=Vs.Description.displayName;const GP=[{id:"profile",label:"My Profile",icon:hs,path:"/profile"},{id:"saved-jobs",label:"Saved Jobs",icon:ze,path:"/saved/jobs",countKey:"jobs"},{id:"saved-companies",label:"Saved Companies",icon:Be,path:"/saved/companies",countKey:"companies"},{id:"saved-courses",label:"Saved Courses",icon:aa,path:"/saved/courses",countKey:"courses"},{id:"alerts",label:"Job Alerts",icon:Wa,path:"/alerts",countKey:"alerts"},{id:"settings",label:"Settings",icon:Ka,path:"/settings"}],e7=({user:t,savedCounts:a={},menuItems:s=GP,onNavigate:n,onLogout:r,onSignIn:o,className:l=""})=>{const[c,h]=u.useState(!1),d=x=>x?x.split(" ").map(g=>g[0]).join("").toUpperCase().slice(0,2):"?",p=x=>{n==null||n(x),h(!1)};return e.jsxs(e.Fragment,{children:[e.jsxs("button",{onClick:()=>t?h(!0):o==null?void 0:o(),className:`relative flex items-center justify-center ${l}`,"aria-label":t?"Open user menu":"Sign in",children:[e.jsxs(mn,{className:"w-9 h-9 border-2 border-primary-foreground/20 hover:border-accent transition-colors",children:[t!=null&&t.avatar?e.jsx(Yo,{src:t.avatar,alt:t.name||"User"}):null,e.jsx(pn,{className:"bg-accent text-accent-foreground text-sm font-semibold",children:t?t.initials||d(t.name):e.jsx(hs,{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(IS,{open:c,onOpenChange:h,children:e.jsxs(PS,{children:[e.jsx(TS,{className:"border-b border-border pb-4",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs(mn,{className:"w-14 h-14 border-2 border-accent",children:[t!=null&&t.avatar?e.jsx(Yo,{src:t.avatar,alt:t.name||"User"}):null,e.jsx(pn,{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(DS,{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(x=>{const g=x.icon,m=x.countKey?a[x.countKey]:void 0;return e.jsxs("button",{onClick:()=>p(x.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(g,{className:"w-5 h-5 text-muted-foreground"})}),e.jsx("span",{className:"flex-1 font-medium",children:x.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(sa,{className:"w-4 h-4 text-muted-foreground"})]},x.id)})})}),t&&r&&e.jsx(RS,{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(yl,{className:"w-5 h-5"}),"Sign Out"]})})]})})]})},FS=le.forwardRef(({className:t,children:a,...s},n)=>e.jsxs(Ho.Root,{ref:n,className:ue("relative overflow-hidden",t),...s,children:[e.jsx(Ho.Viewport,{className:"h-full w-full rounded-[inherit]",children:a}),e.jsx(zS,{}),e.jsx(Ho.Corner,{})]}));FS.displayName=Ho.Root.displayName;const zS=le.forwardRef(({className:t,orientation:a="vertical",...s},n)=>e.jsx(Ho.ScrollAreaScrollbar,{ref:n,orientation:a,className:ue("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(Ho.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));zS.displayName=Ho.ScrollAreaScrollbar.displayName;const nC={name:"John Doe",email:"john@example.com",initials:"JD"},rC={jobs:3,companies:2,courses:1,alerts:2},iC=[{id:"profile",label:"My Profile",icon:hs,path:"/profile"},{id:"saved-jobs",label:"Saved Jobs",icon:ze,path:"/saved/jobs",countKey:"jobs"},{id:"saved-companies",label:"Saved Companies",icon:Be,path:"/saved/companies",countKey:"companies"},{id:"saved-courses",label:"Saved Courses",icon:aa,path:"/saved/courses",countKey:"courses"},{id:"alerts",label:"Job Alerts",icon:Wa,path:"/alerts",countKey:"alerts"},{id:"settings",label:"Settings",icon:Ka,path:"/settings"}],oC=t=>{window.location.href=t};function qS({logo:t,navItems:a}){const[s,n]=u.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,o)=>e.jsx("a",{href:r.href,className:"hover:text-yellow-400 transition-colors",children:r.label},o))}),e.jsxs("div",{className:"hidden lg:flex items-center space-x-4",children:[e.jsx(T,{variant:"ghost",size:"icon",className:"text-primary-foreground hover:bg-primary-variant",children:e.jsx(Wa,{className:"h-5 w-5"})}),e.jsx(T,{variant:"accent",children:"Post a Job"}),e.jsx(e7,{user:nC,savedCounts:rC,menuItems:iC,onNavigate:oC,onLogout:()=>console.log("Logout"),onSignIn:()=>console.log("Sign in")})]}),e.jsxs("div",{className:"lg:hidden flex items-center gap-2",children:[e.jsx(e7,{user:nC,savedCounts:rC,menuItems:iC,onNavigate:oC,onLogout:()=>console.log("Logout"),onSignIn:()=>console.log("Sign in")}),e.jsx(T,{variant:"ghost",size:"icon",className:"text-primary-foreground",onClick:()=>n(!s),children:s?e.jsx(xt,{className:"h-6 w-6"}):e.jsx(gl,{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,o)=>e.jsx("a",{href:r.href,className:"hover:text-yellow-400 transition-colors py-2",onClick:()=>n(!1),children:r.label},o))})})]})}function ES({logo:t,tagline:a,socialLinks:s,columns:n,contactInfo:r,copyright:o,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,p)=>e.jsx("li",{children:e.jsx("a",{href:d.href,className:"text-gray-400 hover:text-white",children:d.label})},p))})]},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(wa,{size:16}),e.jsx("span",{children:r.email})]}),e.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[e.jsx(Rs,{size:16}),e.jsx("span",{children:r.phone})]}),e.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[e.jsx(We,{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:o}),e.jsx("p",{children:l})]})]})})}const _S=()=>{const[t,a]=u.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 $P(){const[t,a]=u.useState(null);return u.useEffect(()=>{try{const s=localStorage.getItem("email");s&&a(s)}catch{}},[]),{isSubscribed:!!t,email:t}}const VS=u.createContext({consent:{analytics:!1,marketing:!1,preferences:!1},ready:!1,update:async()=>{console.log("ConsentContext not initialized")}});function OS({notification_url:t="http://localhost:5147",children:a}){const[s,n]=u.useState({analytics:!1,marketing:!1,preferences:!1}),[r,o]=u.useState(!1),c=(x=>x.replace(/\/+$/,""))(t??"http://localhost:5147"),[h,d]=u.useState(null);u.useEffect(()=>{try{const x=localStorage.getItem("leadId");x&&d(x)}catch{}},[]),u.useEffect(()=>{const x=localStorage.getItem("consent");if(x)try{n(JSON.parse(x)),o(!0);return}catch{}if(!h){o(!0);return}fetch(`${c}/api/leads/${h}/consents/latest`).then(g=>g.ok?g.json():null).then(g=>{g&&n({analytics:!!g.analytics,marketing:!!g.marketing,preferences:!!g.preferences,timestamp:g.createdAt})}).catch(()=>{}).finally(()=>o(!0))},[h]);const p=async x=>{const g={...s,...x,timestamp:new Date().toISOString()};n(g),localStorage.setItem("consent",JSON.stringify(g));const m={analytics:g.analytics,marketing:g.marketing,preferences:g.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(y){console.warn("Consent API unavailable, kept only locally",y)}};return e.jsx(VS.Provider,{value:{consent:s,ready:r,update:p},children:a})}const w7=()=>u.useContext(VS);function WP({allow:t,children:a}){const{consent:s,ready:n}=w7();return!n||!s[t]?null:e.jsx(e.Fragment,{children:a})}function BS({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:o,onAccept:l,onReject:c}){const{consent:h,update:d,ready:p}=w7(),[x,g]=u.useState(r);u.useEffect(()=>{o===void 0&&p&&!h.timestamp&&g(!0)},[h.timestamp,o,p]);const m=u.useMemo(()=>o??x,[o,x]),y=()=>{o===void 0&&g(!1)};if(!m)return null;const v=()=>{d({analytics:!0,marketing:!0,preferences:!0}),y(),l==null||l()},f=()=>{d({analytics:!1,marketing:!1,preferences:!1}),y(),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:f,children:n}),e.jsx("button",{className:"px-3 py-2 rounded-xl bg-black text-white",onClick:v,children:s})]})]})}const ZP={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"}]},JP={title:"Find Your Dream Job in",subtitle:`The #1 platform for iGaming careers—connecting top talent with leading casinos,
7706
7706
  sportsbooks, and tech providers worldwide.`,backgroundImage:"/placeholder.svg?height=800&width=1600",primaryButtonText:"Search Jobs",secondaryButtonText:"Upload CV"},YP={title:"Why Choose Us?",values:[{icon:ze,title:"Niche Expertise",description:"Dedicated solely to iGaming jobs worldwide."},{icon:et,title:"Recruiter Network",description:"Direct access to hiring managers at top brands."},{icon:Ws,title:"Salary Insights",description:"Transparent data to negotiate your best offer."},{icon:ia,title:"Career Growth",description:"Courses and certifications to level up your skills."}]},KP={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"},XP={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")},QP={title:"Get Exclusive iGaming Job Alerts",description:"Weekly openings + salary reports. Unsubscribe anytime.",inputPlaceholder:"Your email address",buttonText:"Subscribe"},eT={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"},tT={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"},Hs=(t,a)=>({...t,...a??{}});function aT({headerData:t,heroData:a,valuePropositionData:s,jobSearchData:n,trustSignalsData:r,newsletterData:o,onNewsletterSubscribe:l,onNewsletterManageAlerts:c,onNewsletterSignInRequired:h,forEmployersData:d,footerData:p,showValueProposition:x=!0,showJobSearchWidget:g=!0,showTrustSignals:m=!0,showPartners:y=!0,showNewsletter:v=!0,showForEmployers:f=!0,showConsentBanner:k=!0,consentNotificationUrl:j="http://localhost:5147",consentBannerProps:w}){const{isSubscribed:b,email:I}=$P(),L=Hs(ZP,t),P=Hs(JP,a),A=Hs(YP,s),C=Hs(KP,n),S=Hs(XP,r),M=Hs(QP,o),N=Hs(eT,d),R=Hs(tT,p),D={...M,isSubscribed:(o==null?void 0:o.isSubscribed)??b,email:(o==null?void 0:o.email)??I,onSubscribe:(o==null?void 0:o.onSubscribe)??l,onManageAlerts:(o==null?void 0:o.onManageAlerts)??c,onSignInRequired:(o==null?void 0:o.onSignInRequired)??h};return e.jsx(OS,{notification_url:j,children:e.jsxs("div",{className:"flex flex-col min-h-screen",children:[e.jsx(qS,{...L}),e.jsxs("main",{className:"flex-grow",children:[e.jsx(mS,{...P}),x&&e.jsx(pS,{...A}),g&&e.jsx(gS,{...C}),m&&e.jsx(xS,{...S}),y&&e.jsx(_S,{}),v&&e.jsx(yS,{...D}),f&&e.jsx(uS,{...N})]}),e.jsx(ES,{...R}),k&&e.jsx(BS,{...w})]})})}function sT({title:t,description:a,inputPlaceholder:s,api_url:n="http://localhost:5147",buttonText:r,isSubscribed:o=!1,email:l=null}){const[c,h]=u.useState(l??""),[d,p]=u.useState(!1),[x,g]=u.useState(!1);u.useEffect(()=>{if(o){g(!0),l&&h(l);return}try{const f=localStorage.getItem("email"),k=localStorage.getItem("leadId");f&&k&&(g(!0),h(f))}catch{}},[o,l]);const m=async()=>{if(!c||!c.includes("@")){alert("Please enter a valid email");return}p(!0);try{const f=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(f.ok){const k=await f.json();localStorage.setItem("leadId",k.id),localStorage.setItem("email",c),g(!0)}else{const k=await f.text();alert("Submission failed: "+k)}}catch{alert("Network error while submitting")}finally{p(!1)}},y=x||o,v=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}),y?e.jsxs("p",{className:"text-green-400 font-semibold",children:["✅ Thanks! You’re subscribed",v?` as ${v}`:"","."]}):e.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 max-w-lg mx-auto",children:[e.jsx(re,{type:"email",placeholder:s,value:c,onChange:f=>h(f.target.value),className:"px-4 py-2 rounded bg-gray-800 border border-gray-700 text-white flex-grow"}),e.jsx(T,{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 nT({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[o,l]=u.useState(""),[c,h]=u.useState(!1),[d,p]=u.useState(!1);u.useEffect(()=>{const g=localStorage.getItem("email");g&&(p(!0),l(g))},[]);const x=async()=>{if(!o||!o.includes("@")){alert("Please enter a valid email");return}h(!0);try{const g=await fetch(`${r}/api/leads`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o,source:"sidebar_newsletter",utmCampaign:"jobs_sidebar",utmMedium:"ui",utmSource:"sidebar_component"})});if(g.ok){const m=await g.json();localStorage.setItem("leadId",m.id),localStorage.setItem("email",o),p(!0)}else{const m=await g.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",o?` as ${o}`:"","!"]}):e.jsxs("form",{className:"flex flex-col",children:[e.jsx(re,{type:"email",value:o,onChange:g=>l(g.target.value),placeholder:s,className:"mb-3"}),e.jsx(T,{type:"button",onClick:x,disabled:c,className:"bg-yellow-600 text-white hover:bg-yellow-700 transition-colors",children:c?"Subscribing...":n})]})]})}const rT=t=>/.+@.+\..+/.test(t);function mM({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:o=null,isSubscribed:l,onSubscribe:c,onManageAlerts:h,onSignInRequired:d,onEmitEvent:p,loading:x=!1,source:g="sidebar_newsletter",email:m=null}){const[y,v]=u.useState(o??m??""),[f,k]=u.useState(!!l),[j,w]=u.useState(!1);u.useEffect(()=>{if(o){v(o);return}m&&v(m)},[o,m]),u.useEffect(()=>{if(typeof l=="boolean"){k(l);return}try{const A=localStorage.getItem("email");A&&(k(!0),v(C=>C||A))}catch{}},[l]);const b=x||j,I=u.useCallback((A,C)=>{p==null||p({domain:"newsletter",name:A,payload:C,timestamp:new Date().toISOString()})},[p]),L=u.useCallback(async()=>{if(!rT(y))return;const A={email:y,source:g};if(I("newsletter_subscribe_requested",A),!!c){w(!0);try{await c(A),k(!0),localStorage.setItem("email",y)}finally{w(!1)}}},[y,g,c,I]),P=u.useCallback(()=>{if(r){I("newsletter_manage_alerts_clicked",{}),h==null||h();return}I("newsletter_signin_required",{}),d==null||d()},[r,h,d,I]);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}),f?e.jsxs("p",{className:"text-green-600 font-medium",children:["✅ You're subscribed",y?` as ${y}`:"","!"]}):r?e.jsx(T,{onClick:P,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:A=>{A.preventDefault(),L()},children:[e.jsx(re,{type:"email",value:y,onChange:A=>v(A.target.value),placeholder:s,disabled:b,className:"mb-3"}),e.jsx(T,{type:"submit",disabled:b,className:"bg-yellow-600 text-white hover:bg-yellow-700 transition-colors",children:b?"Subscribing...":n})]})]})}function HS({open:t,type:a,message:s,onClose:n}){if(u.useEffect(()=>{if(t){const o=setTimeout(n,5e3);return()=>clearTimeout(o)}},[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(Ea,{className:"w-5 h-5"})})]})})}const Il=({position:t,url:a,alt:s,link:n})=>{let r="",o="";switch(t){case"top":r="w-screen h-[48px] md:h-[90px] flex justify-center items-center bg-yellow-100",o="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",o="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",o="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:`${o} 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:`${o} object-cover`})})})},pM=({options:t,value:a,onChange:s,placeholder:n,className:r=""})=>{const[o,l]=u.useState(!1),[c,h]=u.useState(""),d=u.useRef(null),p=t.filter(x=>x.toLowerCase().includes(c.toLowerCase()));return u.useEffect(()=>{const x=g=>{d.current&&!d.current.contains(g.target)&&l(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]),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(!o),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 ${o?"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"})})]}),o&&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:x=>h(x.target.value),onClick:x=>x.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}),p.length>0?p.map((x,g)=>e.jsx("div",{className:`py-1 px-2 cursor-pointer ${a===x?"bg-yellow-50 text-indigo-700":"hover:bg-gray-100 text-gray-900"}`,onClick:()=>{s(x),l(!1),h("")},children:x},g)):e.jsx("div",{className:"py-1 px-2 text-gray-500 italic",children:"No results found"})]})]})]})},iT=({filterKeys:t,filtersData:a,activeFilters:s,handleFilterChange:n,searchFilters:r,removeSearchFilter:o,clearAllFilters:l,searchableFilters:c})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"filters-grid",children:t.map(h=>{var p,x;return(c==null?void 0:c.includes(h))?e.jsx(pM,{options:((p=a[h])==null?void 0:p.filter(g=>typeof g=="string"))||[],value:s[h]||"",onChange:g=>n(h,g),placeholder:`Select ${h.replace(/_/g," ")}`},h):e.jsxs("select",{className:"filter-select",onChange:g=>n(h,g.target.value),value:s[h]||"",children:[e.jsxs("option",{value:"",children:["Select ",h.replace(/_/g," ")]}),(x=a[h])==null?void 0:x.map((g,m)=>typeof g!="string"?null:e.jsx("option",{value:g,children:g},`${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:()=>o(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"})]})]}),oT=({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,o)=>e.jsx("option",{value:r},o))})]})}),lT={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}},xM=t=>{const a=(t==null?void 0:t.status)??(t!=null&&t.registered?"freemium":"not_registered"),s=lT[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}},US={not_registered:"Guest access",freemium:"Freemium member",premium:"Premium member"},N7=u.memo(({job:t,positionInList:a,onSaveJob:s,onViewJob:n,onApplyJob:r,isSaved:o,layout:l="grid",userAccess:c})=>{var A;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=C=>{if(k||w){C.preventDefault(),C.stopPropagation();return}const S=k||w?"external":t.description&&t.description!==""?"same_tab":"new_tab";r==null||r(t,a,"external"),n(t,a,S)},d=C=>{C.preventDefault(),C.stopPropagation(),f&&s(t,a)},p=typeof t.company=="string"?t.company:((A=t.company)==null?void 0:A.name)??"";t.published_at||t.created_at||t.scraped_at;const x=t.min_salary||0,g=t.max_salary||0,m=`$${x.toLocaleString()} - $${g.toLocaleString()}`,v=(C=>{if(!C)return"Recently posted";try{const S=new Date(C),N=Math.abs(new Date().getTime()-S.getTime()),R=Math.floor(N/(1e3*60*60*24));return R===0?"Today":R===1?"Yesterday":R<7?`${R} days ago`:R<30?`${Math.floor(R/7)} weeks ago`:R<365?`${Math.floor(R/30)} months ago`:`${Math.floor(R/365)} years ago`}catch{return"Recently posted"}})(t.published_at||t.created_at||t.scraped_at),f=c.allowSaving,k=c.maskExternalLinks,j=c.blurCompanyTitle,w=c.notHrefJobsLink,b=US[c.status],I=f?"Save job":"Log in to save this job",L=t.link??t.url,P=t.slug!==""?"/jobs/"+(t.slug||t.id):L;return e.jsxs("div",{className:`bg-white rounded-lg shadow-sm border border-gray-200 p-3 hover:shadow-md transition-shadow
7707
- ${l==="grid"?"h-full flex flex-col justify-between":"flex flex-col md:flex-row md:items-center md:space-x-4"}`,children:[e.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[e.jsx("img",{src:t.logo||`/placeholder.svg?height=48&width=48&text=${p.charAt(0)||"C"}`,alt:`${p||"Company"} logo`,className:"w-12 h-12 shrink-0 rounded-lg object-contain bg-gray-50"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[k||w?e.jsx("h3",{className:"font-semibold text-gray-900 line-clamp-2",children:t.title||"No Title Available"}):e.jsx("h3",{className:"font-semibold text-gray-900",children:e.jsx("a",{href:P,children:t.title||"No Title Available"})}),e.jsx("p",{className:`text-sm truncate text-muted-foreground ${j?"blur-sm select-none":""}`,children:p||"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:b}),c.note&&e.jsx("span",{className:"text-xs text-gray-500",children:c.note})]})]})]}),e.jsxs("div",{className:`
7707
+ ${l==="grid"?"h-full flex flex-col justify-between":"flex flex-col md:flex-row md:items-center md:space-x-4"}`,children:[e.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[e.jsx("img",{src:t.logo||`/placeholder.svg?height=48&width=48&text=${p.charAt(0)||"C"}`,alt:`${p||"Company"} logo`,className:"w-12 h-12 shrink-0 rounded-lg object-contain bg-gray-50"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[k||w?e.jsx("h3",{className:"font-semibold text-gray-900 line-clamp-2",children:t.title||"No Title Available"}):e.jsx("h3",{className:"font-semibold text-gray-900",children:e.jsx("a",{href:P,children:t.title||"No Title Available"})}),e.jsx("p",{className:`text-sm truncate text-muted-foreground ${j?"blur-sm select-none":""}`,children:p||"Unknown Company"})]})]}),e.jsxs("div",{className:"mt-3 flex flex-col items-start gap-1 sm:flex-row sm:items-center sm:gap-2 min-w-0",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:b}),c.note&&e.jsx("span",{className:"text-xs text-gray-500 truncate max-w-full",children:c.note})]}),e.jsxs("div",{className:`
7708
7708
  mt-4 ${l==="list"?"md:mt-0 md:flex-1":""}
7709
7709
  `,children:[e.jsx("div",{className:"flex flex-wrap items-center gap-3 text-xs text-gray-500 mb-3",children:e.jsxs("div",{className:"flex items-center",children:[e.jsx(We,{className:"w-4 h-4 mr-1"}),t.location||"Remote"]})}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-xs text-gray-500 mb-3",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(ze,{className:"w-4 h-4 mr-1"}),t.department||"Full-time"]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(qt,{className:"h-3.5 w-3.5 mr-1.5"}),e.jsx("span",{children:v})]})]}),e.jsx("div",{className:"hidden mt-2 text-xs text-gray-500",children:m})]}),e.jsxs("div",{className:`mt-auto pt-4 flex items-center space-x-3 ${l==="list"?"md:mt-0 md:ml-4":""}`,children:[e.jsx("button",{onClick:d,disabled:!f,className:`
7710
7710
  p-2 rounded-lg transition-colors
package/dist/index.mjs CHANGED
@@ -35900,13 +35900,13 @@ const Sc = ({ position: t, url: a, alt: r, link: i }) => {
35900
35900
  ),
35901
35901
  /* @__PURE__ */ n("div", { className: "flex-1 min-w-0", children: [
35902
35902
  k || N ? /* @__PURE__ */ e("h3", { className: "font-semibold text-gray-900 line-clamp-2", children: t.title || "No Title Available" }) : /* @__PURE__ */ e("h3", { className: "font-semibold text-gray-900", children: /* @__PURE__ */ e("a", { href: R, children: t.title || "No Title Available" }) }),
35903
- /* @__PURE__ */ e("p", { className: `text-sm truncate text-muted-foreground ${w ? "blur-sm select-none" : ""}`, children: p || "Unknown Company" }),
35904
- /* @__PURE__ */ n("div", { className: "mt-2 flex items-center gap-2", children: [
35905
- /* @__PURE__ */ e("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: b }),
35906
- d.note && /* @__PURE__ */ e("span", { className: "text-xs text-gray-500", children: d.note })
35907
- ] })
35903
+ /* @__PURE__ */ e("p", { className: `text-sm truncate text-muted-foreground ${w ? "blur-sm select-none" : ""}`, children: p || "Unknown Company" })
35908
35904
  ] })
35909
35905
  ] }),
35906
+ /* @__PURE__ */ n("div", { className: "mt-3 flex flex-col items-start gap-1 sm:flex-row sm:items-center sm:gap-2 min-w-0", children: [
35907
+ /* @__PURE__ */ e("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: b }),
35908
+ d.note && /* @__PURE__ */ e("span", { className: "text-xs text-gray-500 truncate max-w-full", children: d.note })
35909
+ ] }),
35910
35910
  /* @__PURE__ */ n(
35911
35911
  "div",
35912
35912
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igamingcareer/igaming-components",
3
- "version": "1.2.17",
3
+ "version": "1.2.19",
4
4
  "description": "Reusable React component library for the iGamingCareer platform",
5
5
  "author": "iGamingCareer <info@igamingcareer.com>",
6
6
  "license": "MIT",