@igamingcareer/igaming-components 1.0.85 → 1.0.86
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7822,7 +7822,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${a.do
|
|
|
7822
7822
|
*
|
|
7823
7823
|
* This source code is licensed under the MIT license found in the
|
|
7824
7824
|
* LICENSE file in the root directory of this source tree.
|
|
7825
|
-
*/var HL;function HO(){return HL||(HL=1,process.env.NODE_ENV!=="production"&&function(){function t(y,x){return y===x&&(y!==0||1/y===1/x)||y!==y&&x!==x}function a(y,x){u||s.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var f=x();if(!p){var v=x();i(f,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}v=c({inst:{value:f,getSnapshot:x}});var k=v[0].inst,w=v[1];return d(function(){k.value=f,k.getSnapshot=x,r(k)&&w({inst:k})},[y,f,x]),l(function(){return r(k)&&w({inst:k}),y(function(){r(k)&&w({inst:k})})},[y]),h(f),f}function r(y){var x=y.getSnapshot;y=y.value;try{var f=x();return!i(y,f)}catch{return!0}}function n(y,x){return x()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=M,i=typeof Object.is=="function"?Object.is:t,c=s.useState,l=s.useEffect,d=s.useLayoutEffect,h=s.useDebugValue,u=!1,p=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:a;Ej.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Ej}process.env.NODE_ENV==="production"?yC.exports=OO():yC.exports=HO();var VO=yC.exports;function BO(){return VO.useSyncExternalStore($O,()=>!0,()=>!1)}function $O(){return()=>{}}var kS="Avatar",[UO,KG]=DO(kS),[GO,IP]=UO(kS),AP=g.forwardRef((t,a)=>{const{__scopeAvatar:r,...n}=t,[s,i]=g.useState("idle");return e.jsx(GO,{scope:r,imageLoadingStatus:s,onImageLoadingStatusChange:i,children:e.jsx(gS.span,{...n,ref:a})})});AP.displayName=kS;var PP="AvatarImage",_P=g.forwardRef((t,a)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:s=()=>{},...i}=t,c=IP(PP,r),l=WO(n,i),d=EO(h=>{s(h),c.onImageLoadingStatusChange(h)});return pC(()=>{l!=="idle"&&d(l)},[l,d]),l==="loaded"?e.jsx(gS.img,{...i,ref:a,src:n}):null});_P.displayName=PP;var RP="AvatarFallback",TP=g.forwardRef((t,a)=>{const{__scopeAvatar:r,delayMs:n,...s}=t,i=IP(RP,r),[c,l]=g.useState(n===void 0);return g.useEffect(()=>{if(n!==void 0){const d=window.setTimeout(()=>l(!0),n);return()=>window.clearTimeout(d)}},[n]),c&&i.imageLoadingStatus!=="loaded"?e.jsx(gS.span,{...s,ref:a}):null});TP.displayName=RP;function VL(t,a){return t?a?(t.src!==a&&(t.src=a),t.complete&&t.naturalWidth>0?"loaded":"loading"):"error":"idle"}function WO(t,{referrerPolicy:a,crossOrigin:r}){const n=BO(),s=g.useRef(null),i=n?(s.current||(s.current=new window.Image),s.current):null,[c,l]=g.useState(()=>VL(i,t));return pC(()=>{l(VL(i,t))},[i,t]),pC(()=>{const d=p=>()=>{l(p)};if(!i)return;const h=d("loaded"),u=d("error");return i.addEventListener("load",h),i.addEventListener("error",u),a&&(i.referrerPolicy=a),typeof r=="string"&&(i.crossOrigin=r),()=>{i.removeEventListener("load",h),i.removeEventListener("error",u)}},[i,r,a]),c}var qP=AP,DP=_P,zP=TP;const EP=g.forwardRef(({className:t,...a},r)=>e.jsx(qP,{ref:r,className:me("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t),...a}));EP.displayName=qP.displayName;const FP=g.forwardRef(({className:t,...a},r)=>e.jsx(DP,{ref:r,className:me("aspect-square h-full w-full",t),...a}));FP.displayName=DP.displayName;const OP=g.forwardRef(({className:t,...a},r)=>e.jsx(zP,{ref:r,className:me("flex h-full w-full items-center justify-center rounded-full bg-muted",t),...a}));OP.displayName=zP.displayName;const ZO=D9("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-yellow-200/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ge({className:t,variant:a,...r}){return e.jsx("div",{className:me(ZO({variant:a}),t),...r})}function BL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function JO(...t){return a=>{let r=!1;const n=t.map(s=>{const i=BL(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():BL(t[s],null)}}}}var XO=Symbol.for("react.lazy"),S9=g[" use ".trim().toString()];function YO(t){return typeof t=="object"&&t!==null&&"then"in t}function HP(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===XO&&"_payload"in t&&YO(t._payload)}function KO(t){const a=QO(t),r=g.forwardRef((n,s)=>{let{children:i,...c}=n;HP(i)&&typeof S9=="function"&&(i=S9(i._payload));const l=g.Children.toArray(i),d=l.find(tH);if(d){const h=d.props.children,u=l.map(p=>p===d?g.Children.count(h)>1?g.Children.only(null):g.isValidElement(h)?h.props.children:null:p);return e.jsx(a,{...c,ref:s,children:g.isValidElement(h)?g.cloneElement(h,void 0,u):null})}return e.jsx(a,{...c,ref:s,children:i})});return r.displayName=`${t}.Slot`,r}function QO(t){const a=g.forwardRef((r,n)=>{let{children:s,...i}=r;if(HP(s)&&typeof S9=="function"&&(s=S9(s._payload)),g.isValidElement(s)){const c=rH(s),l=aH(i,s.props);return s.type!==g.Fragment&&(l.ref=n?JO(n,c):c),g.cloneElement(s,l)}return g.Children.count(s)>1?g.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var eH=Symbol("radix.slottable");function tH(t){return g.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===eH}function aH(t,a){const r={...a};for(const n in a){const s=t[n],i=a[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...l)=>{const d=i(...l);return s(...l),d}:s&&(r[n]=s):n==="style"?r[n]={...s,...i}:n==="className"&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...t,...r}}function rH(t){var n,s;let a=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var nH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],sH=nH.reduce((t,a)=>{const r=KO(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),iH="Separator",$L="horizontal",oH=["horizontal","vertical"],VP=g.forwardRef((t,a)=>{const{decorative:r,orientation:n=$L,...s}=t,i=cH(n)?n:$L,l=r?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return e.jsx(sH.div,{"data-orientation":i,...l,...s,ref:a})});VP.displayName=iH;function cH(t){return oH.includes(t)}var BP=VP;const p9=g.forwardRef(({className:t,orientation:a="horizontal",decorative:r=!0,...n},s)=>e.jsx(BP,{ref:s,decorative:r,orientation:a,className:me("shrink-0 bg-border",a==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t),...n}));p9.displayName=BP.displayName;const lH=({candidateData:t})=>{var l;const[a,r]=M.useState(!1),{profileData:n,first_name:s,last_name:i}=t,c=`${s[0]}${i[0]}`;return e.jsxs("div",{className:"min-h-screen bg-muted/30",children:[e.jsx("header",{className:"bg-card border-b border-border sticky top-0 z-50",children:e.jsx("div",{className:"container mx-auto px-4 py-3",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("a",{href:"/jobs",className:"flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors",children:[e.jsx(fr,{className:"w-5 h-5"}),e.jsx("span",{className:"font-medium",children:"Back to Search"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs(D,{variant:"outline",size:"sm",onClick:()=>r(!a),children:[e.jsx(ga,{className:`w-4 h-4 mr-2 ${a?"fill-accent text-accent":""}`}),a?"Saved":"Save"]}),e.jsxs(D,{variant:"outline",size:"sm",children:[e.jsx(po,{className:"w-4 h-4 mr-2"}),"Share"]}),e.jsxs(D,{variant:"accent",size:"sm",children:[e.jsx(wr,{className:"w-4 h-4 mr-2"}),"Contact"]})]})]})})}),e.jsx("div",{className:"bg-gradient-to-r from-primary via-primary/90 to-accent/80 h-32 md:h-48"}),e.jsx("div",{className:"container mx-auto px-4 -mt-16 md:-mt-20 pb-12",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[e.jsx(ce,{className:"overflow-visible",children:e.jsx(de,{className:"pt-0",children:e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsx("div",{className:"-mt-12 md:-mt-16",children:e.jsxs(EP,{className:"w-28 h-28 md:w-36 md:h-36 border-4 border-card shadow-lg",children:[e.jsx(FP,{src:""}),e.jsx(OP,{className:"bg-gradient-to-br from-accent to-accent/80 text-white text-3xl md:text-4xl font-bold",children:c})]})}),e.jsx("div",{className:"flex-1 pt-2 md:pt-6",children:e.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-foreground",children:n.personalDetails.fullName}),e.jsx("p",{className:"text-lg text-muted-foreground mt-1",children:"Business / Data Analyst"}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 mt-3 text-sm text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(ct,{className:"w-4 h-4 text-accent"}),n.personalDetails.location]}),e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(na,{className:"w-4 h-4 text-accent"}),n.personalDetails.nationality]})]})]}),e.jsxs("div",{className:"flex gap-6 text-center",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-2xl font-bold text-accent",children:"15+"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"Years Exp."})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-2xl font-bold text-accent",children:"5"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"Roles"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-2xl font-bold text-accent",children:"3"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"Languages"})]})]})]})})]})})}),e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsxs(ke,{className:"flex items-center gap-2",children:[e.jsx(Jo,{className:"w-5 h-5 text-accent"}),"About"]})}),e.jsx(de,{children:e.jsx("p",{className:"text-muted-foreground leading-relaxed",children:n.personalDetails.summary})})]}),e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsxs(ke,{className:"flex items-center gap-2",children:[e.jsx(nt,{className:"w-5 h-5 text-accent"}),"Experience"]})}),e.jsx(de,{className:"space-y-6",children:n.workExperience.map((d,h)=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("div",{className:"w-12 h-12 rounded-lg bg-muted flex items-center justify-center",children:e.jsx(gt,{className:"w-6 h-6 text-accent"})})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-1",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground",children:d.title}),e.jsx("p",{className:"text-accent font-medium",children:d.company})]}),e.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-muted-foreground whitespace-nowrap",children:[e.jsx(lo,{className:"w-4 h-4"}),d.period]})]}),d.location&&e.jsxs("p",{className:"text-sm text-muted-foreground mt-1 flex items-center gap-1",children:[e.jsx(ct,{className:"w-3 h-3"}),d.location]}),d.summary&&e.jsx("p",{className:"text-sm text-muted-foreground mt-3 leading-relaxed",children:d.summary}),d.tags&&d.tags.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 mt-3",children:d.tags.map(u=>e.jsx(ge,{variant:"secondary",className:"text-xs",children:u},u))})]})]}),h<n.workExperience.length-1&&e.jsx(p9,{className:"mt-6"})]},d.id))})]}),e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsxs(ke,{className:"flex items-center gap-2",children:[e.jsx(kr,{className:"w-5 h-5 text-accent"}),"Education"]})}),e.jsx(de,{className:"space-y-6",children:n.education.map((d,h)=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("div",{className:"w-12 h-12 rounded-lg bg-muted flex items-center justify-center",children:e.jsx(kr,{className:"w-6 h-6 text-accent"})})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold text-foreground",children:d.degree}),e.jsx("p",{className:"text-accent font-medium",children:d.institution}),e.jsx(ge,{variant:"outline",className:"mt-2 text-xs",children:d.level})]})]}),h<n.education.length-1&&e.jsx(p9,{className:"mt-6"})]},h))})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs(ce,{className:"sticky top-20",children:[e.jsx(xe,{children:e.jsx(ke,{className:"text-lg",children:"Contact Information"})}),e.jsxs(de,{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-accent/10 flex items-center justify-center",children:e.jsx(sa,{className:"w-5 h-5 text-accent"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Email"}),e.jsx("p",{className:"text-sm font-medium truncate",children:n.personalDetails.email})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-accent/10 flex items-center justify-center",children:e.jsx(br,{className:"w-5 h-5 text-accent"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Phone"}),e.jsx("p",{className:"text-sm font-medium",children:n.personalDetails.phone})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-accent/10 flex items-center justify-center",children:e.jsx(ct,{className:"w-5 h-5 text-accent"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Location"}),e.jsx("p",{className:"text-sm font-medium",children:n.personalDetails.location})]})]}),e.jsx(p9,{}),e.jsxs(D,{variant:"accent",className:"w-full",children:[e.jsx(wr,{className:"w-4 h-4 mr-2"}),"Send Message"]}),((l=n.resume)==null?void 0:l.url)&&e.jsxs(D,{variant:"outline",className:"w-full",children:[e.jsx(Nc,{className:"w-4 h-4 mr-2"}),"Download Resume"]})]})]}),e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsxs(ke,{className:"flex items-center gap-2 text-lg",children:[e.jsx(ea,{className:"w-5 h-5 text-accent"}),"Skills"]})}),e.jsx(de,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:n.skills.map(d=>e.jsx(ge,{variant:"secondary",className:"px-3 py-1",children:d},d))})})]}),e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsxs(ke,{className:"flex items-center gap-2 text-lg",children:[e.jsx(_c,{className:"w-5 h-5 text-accent"}),"Languages"]})}),e.jsx(de,{className:"space-y-3",children:n.languages.map(d=>e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"font-medium text-foreground",children:d.name}),e.jsx(ge,{variant:"outline",className:"text-xs",children:d.proficiency})]},d.name))})]})]})]})})]})};function UL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function dH(...t){return a=>{let r=!1;const n=t.map(s=>{const i=UL(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():UL(t[s],null)}}}}function vS(...t){return g.useCallback(dH(...t),t)}function hH(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:m,children:y,...x}=p,f=((k=m==null?void 0:m[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:y})};h.displayName=i+"Provider";function u(p,m){var f;const y=((f=m==null?void 0:m[t])==null?void 0:f[d])||l,x=g.useContext(y);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,uH(s,...a)]}function uH(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}function GL(t,a,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}var mC=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},pH=g[" useInsertionEffect ".trim().toString()]||mC;function yH({prop:t,defaultProp:a,onChange:r=()=>{},caller:n}){const[s,i,c]=mH({defaultProp:a,onChange:r}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,n])}const h=g.useCallback(u=>{var p;if(l){const m=fH(u)?u(t):u;m!==t&&((p=c.current)==null||p.call(c,m))}else i(u)},[l,t,i,c]);return[d,h]}function mH({defaultProp:t,onChange:a}){const[r,n]=g.useState(t),s=g.useRef(r),i=g.useRef(a);return pH(()=>{i.current=a},[a]),g.useEffect(()=>{var c;s.current!==r&&((c=i.current)==null||c.call(i,r),s.current=r)},[r,s]),[r,n,i]}function fH(t){return typeof t=="function"}function wS(t){const a=g.useRef({value:t,previous:t});return g.useMemo(()=>(a.current.value!==t&&(a.current.previous=a.current.value,a.current.value=t),a.current.previous),[t])}var xH=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{};function bS(t){const[a,r]=g.useState(void 0);return xH(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let c,l;if("borderBoxSize"in i){const d=i.borderBoxSize,h=Array.isArray(d)?d[0]:d;c=h.inlineSize,l=h.blockSize}else c=t.offsetWidth,l=t.offsetHeight;r({width:c,height:l})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),a}function gH(t,a){return g.useReducer((r,n)=>a[r][n]??r,t)}var $P=t=>{const{present:a,children:r}=t,n=kH(a),s=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),i=vS(n.ref,vH(s));return typeof r=="function"||n.isPresent?g.cloneElement(s,{ref:i}):null};$P.displayName="Presence";function kH(t){const[a,r]=g.useState(),n=g.useRef(null),s=g.useRef(t),i=g.useRef("none"),c=t?"mounted":"unmounted",[l,d]=gH(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=Ll(n.current);i.current=l==="mounted"?h:"none"},[l]),mC(()=>{const h=n.current,u=s.current;if(u!==t){const m=i.current,y=Ll(h);t?d("MOUNT"):y==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&m!==y?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),mC(()=>{if(a){let h;const u=a.ownerDocument.defaultView??window,p=y=>{const f=Ll(n.current).includes(CSS.escape(y.animationName));if(y.target===a&&f&&(d("ANIMATION_END"),!s.current)){const v=a.style.animationFillMode;a.style.animationFillMode="forwards",h=u.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=v)})}},m=y=>{y.target===a&&(i.current=Ll(n.current))};return a.addEventListener("animationstart",m),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{u.clearTimeout(h),a.removeEventListener("animationstart",m),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{n.current=h?getComputedStyle(h):null,r(h)},[])}}function Ll(t){return(t==null?void 0:t.animationName)||"none"}function vH(t){var n,s;let a=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var wH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],MS=wH.reduce((t,a)=>{const r=at(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),Q9="Checkbox",[bH,QG]=hH(Q9),[MH,jS]=bH(Q9);function jH(t){const{__scopeCheckbox:a,checked:r,children:n,defaultChecked:s,disabled:i,form:c,name:l,onCheckedChange:d,required:h,value:u="on",internal_do_not_use_render:p}=t,[m,y]=yH({prop:r,defaultProp:s??!1,onChange:d,caller:Q9}),[x,f]=g.useState(null),[v,k]=g.useState(null),w=g.useRef(!1),j=x?!!c||!!x.closest("form"):!0,S={checked:m,disabled:i,setChecked:y,control:x,setControl:f,name:l,form:c,value:u,hasConsumerStoppedPropagationRef:w,required:h,defaultChecked:Lr(s)?!1:s,isFormControl:j,bubbleInput:v,setBubbleInput:k};return e.jsx(MH,{scope:a,...S,children:CH(p)?p(S):n})}var UP="CheckboxTrigger",GP=g.forwardRef(({__scopeCheckbox:t,onKeyDown:a,onClick:r,...n},s)=>{const{control:i,value:c,disabled:l,checked:d,required:h,setControl:u,setChecked:p,hasConsumerStoppedPropagationRef:m,isFormControl:y,bubbleInput:x}=jS(UP,t),f=vS(s,u),v=g.useRef(d);return g.useEffect(()=>{const k=i==null?void 0:i.form;if(k){const w=()=>p(v.current);return k.addEventListener("reset",w),()=>k.removeEventListener("reset",w)}},[i,p]),e.jsx(MS.button,{type:"button",role:"checkbox","aria-checked":Lr(d)?"mixed":d,"aria-required":h,"data-state":YP(d),"data-disabled":l?"":void 0,disabled:l,value:c,...n,ref:f,onKeyDown:GL(a,k=>{k.key==="Enter"&&k.preventDefault()}),onClick:GL(r,k=>{p(w=>Lr(w)?!0:!w),x&&y&&(m.current=k.isPropagationStopped(),m.current||k.stopPropagation())})})});GP.displayName=UP;var CS=g.forwardRef((t,a)=>{const{__scopeCheckbox:r,name:n,checked:s,defaultChecked:i,required:c,disabled:l,value:d,onCheckedChange:h,form:u,...p}=t;return e.jsx(jH,{__scopeCheckbox:r,checked:s,defaultChecked:i,disabled:l,required:c,onCheckedChange:h,name:n,form:u,value:d,internal_do_not_use_render:({isFormControl:m})=>e.jsxs(e.Fragment,{children:[e.jsx(GP,{...p,ref:a,__scopeCheckbox:r}),m&&e.jsx(XP,{__scopeCheckbox:r})]})})});CS.displayName=Q9;var WP="CheckboxIndicator",ZP=g.forwardRef((t,a)=>{const{__scopeCheckbox:r,forceMount:n,...s}=t,i=jS(WP,r);return e.jsx($P,{present:n||Lr(i.checked)||i.checked===!0,children:e.jsx(MS.span,{"data-state":YP(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:a,style:{pointerEvents:"none",...t.style}})})});ZP.displayName=WP;var JP="CheckboxBubbleInput",XP=g.forwardRef(({__scopeCheckbox:t,...a},r)=>{const{control:n,hasConsumerStoppedPropagationRef:s,checked:i,defaultChecked:c,required:l,disabled:d,name:h,value:u,form:p,bubbleInput:m,setBubbleInput:y}=jS(JP,t),x=vS(r,y),f=wS(i),v=bS(n);g.useEffect(()=>{const w=m;if(!w)return;const j=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(j,"checked").set,A=!s.current;if(f!==i&&C){const L=new Event("click",{bubbles:A});w.indeterminate=Lr(i),C.call(w,Lr(i)?!1:i),w.dispatchEvent(L)}},[m,f,i,s]);const k=g.useRef(Lr(i)?!1:i);return e.jsx(MS.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??k.current,required:l,disabled:d,name:h,value:u,form:p,...a,tabIndex:-1,ref:x,style:{...a.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});XP.displayName=JP;function CH(t){return typeof t=="function"}function Lr(t){return t==="indeterminate"}function YP(t){return Lr(t)?"indeterminate":t?"checked":"unchecked"}const Dt=g.forwardRef(({className:t,...a},r)=>e.jsx(CS,{ref:r,className:me("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...a,children:e.jsx(ZP,{className:me("flex items-center justify-center text-current"),children:e.jsx(Fo,{className:"h-4 w-4"})})}));Dt.displayName=CS.displayName;const SH=({company:t,displayName:a,openRolesCount:r,groupMembersCount:n,isGroup:s=!1,viewMode:i="list",compareId:c,compareSelected:l=!1,compareDisabled:d=!1,onToggleCompare:h,isFollowing:u,followLoading:p=!1,followDisabled:m=!1,onToggleFollow:y,onFollowAction:x,isSaved:f,saveLoading:v=!1,saveDisabled:k=!1,onToggleSave:w,onSaveAction:j})=>{var ee,ue,we,Z,te,ve,fe;const S=i==="grid",C=u??t.isFollowing??!1,A=m||p,L=C?"Unfollow Company":"Follow Company",b=f??t.isSaved??!1,N=k||v,q=b?"Remove from Saved":"Save Company",P=t.trustAndCompliance.licenses.length+t.trustAndCompliance.certifications.length+t.trustAndCompliance.awards.length,R=((ee=t.group)==null?void 0:ee.intelligenceProfile)??t.signalsAndInsights,T=Array.isArray(t.jobs.openRoles)?t.jobs.openRoles.length:t.jobs.openRoles,$=r??T,W=$>0,B=((ue=t.group)==null?void 0:ue.name)??t.groupName??t.group_name,U=((we=t.group)==null?void 0:we.slug)??t.groupSlug??t.group_slug??((Z=t.group)==null?void 0:Z.id)??t.groupId??t.group_id,O=re=>{switch(re){case"Operator":return"bg-blue-500/10 text-blue-600 border-blue-500/20";case"Game Provider":return"bg-purple-500/10 text-purple-600 border-purple-500/20";case"Platform Provider":return"bg-emerald-500/10 text-emerald-600 border-emerald-500/20";case"Affiliate":return"bg-orange-500/10 text-orange-600 border-orange-500/20";case"Payments":return"bg-cyan-500/10 text-cyan-600 border-cyan-500/20";default:return"bg-muted text-muted-foreground"}},oe=re=>{var he,Ae,Pe;if(typeof re=="string")return re;if(typeof re=="object"&&re!==null){const _e=re;return _e.title??((he=_e.tag)==null?void 0:he.title)??((Ae=_e.tag)==null?void 0:Ae.name)??((Pe=_e.tag)==null?void 0:Pe.slug)??null}return null},ae=(te=t.overview.headquarters)==null?void 0:te.city,Y=(ve=t.overview.headquarters)==null?void 0:ve.country,J=()=>{const re=!C;y==null||y(t.id,re),x==null||x({companyId:t.id,companySlug:t.slug,action:re?"follow":"unfollow"})},Q=()=>{const re=!b;w==null||w(t.id,re),j==null||j({companyId:t.id,companySlug:t.slug,companyName:t.name,action:re?"save":"unsave"})};return e.jsx(ce,{className:`group hover:shadow-lg transition-all duration-300 border-border/50 hover:border-accent/30 overflow-hidden ${S?"h-full":""}`,children:e.jsx(de,{className:`p-5 ${S?"flex h-full flex-col":""}`,children:e.jsxs("div",{className:`flex gap-4 ${S?"flex-col":""}`,children:[e.jsx("div",{className:"w-16 h-16 rounded-xl bg-gradient-to-br from-primary/10 to-accent/10 flex items-center justify-center flex-shrink-0 border border-border/50",children:e.jsx(gt,{className:"w-8 h-8 text-primary"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:`mb-2 flex items-start ${S?"flex-col gap-3":"justify-between gap-2"}`,children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("a",{href:`/companies/${t.slug}`,className:"font-semibold text-foreground hover:text-accent transition-colors text-lg",children:a??t.name}),t.claimedStatus==="claimed"&&e.jsx(it,{className:"w-4 h-4 text-accent flex-shrink-0"})]}),e.jsxs("div",{className:"flex items-center gap-3 text-sm text-muted-foreground mt-0.5",children:[(ae||Y)&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ct,{className:"w-3.5 h-3.5"}),[ae,Y].filter(Boolean).join(", ")]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Nt,{className:"w-3.5 h-3.5"}),t.overview.employeeRange]})]})]}),e.jsxs("div",{className:`flex flex-col gap-2 ${S?"items-start":"items-end"}`,children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Dt,{id:`compare-${c??t.id}`,checked:l,disabled:d,onCheckedChange:()=>h==null?void 0:h(c??t.id),"aria-label":`Compare ${a??t.name}`}),e.jsx("label",{htmlFor:`compare-${c??t.id}`,className:`text-xs ${d?"text-muted-foreground":"text-foreground"} cursor-pointer`,children:"Compare"})]}),e.jsxs("div",{className:`flex flex-wrap gap-2 ${S?"justify-start":"justify-end"}`,children:[e.jsxs(D,{variant:b?"secondary":"outline",size:"sm",className:"flex-shrink-0 gap-2 opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity",onClick:Q,disabled:N,"aria-label":`${q} ${a??t.name}`,"aria-pressed":b,"aria-busy":v,title:q,children:[v?e.jsx(ma,{className:"h-4 w-4 animate-spin"}):e.jsx(ga,{className:`h-4 w-4 ${b?"fill-current":"fill-transparent"}`}),v?"Loading":b?"Saved":"Save"]}),e.jsxs(D,{variant:C?"secondary":"outline",size:"sm",className:"flex-shrink-0 gap-2 opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity",onClick:J,disabled:A,"aria-label":`${L} ${a??t.name}`,"aria-pressed":C,"aria-busy":p,title:L,children:[p?e.jsx(ma,{className:"h-4 w-4 animate-spin"}):C?e.jsx(it,{className:"h-4 w-4"}):e.jsx(vr,{className:"h-4 w-4"}),p?"Loading":C?"Following":"Follow"]})]})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-1.5 mb-3",children:[e.jsx(ge,{className:`${O(t.companyType)} border text-xs`,children:t.companyType}),s&&e.jsxs(ge,{variant:"outline",className:"text-xs",children:["Group (",n??1,")"]}),B&&!s&&e.jsx("a",{href:U?`/groups/${U}`:"/groups",children:e.jsxs(ge,{variant:"outline",className:"text-xs",children:["Part of ",B]})}),t.classification.verticals.slice(0,2).map(re=>e.jsx(ge,{variant:"secondary",className:"text-xs",children:re},re)),W&&e.jsxs(ge,{className:"bg-gaming-success/10 text-gaming-success border-gaming-success/20 border text-xs",children:[e.jsx(nt,{className:"w-3 h-3 mr-1"}),"Hiring (",$,")"]})]}),e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mb-3",children:t.overview.shortDescription}),e.jsx("div",{className:"flex flex-wrap gap-1.5 mb-3",children:(fe=t.classification.tags)==null?void 0:fe.map(oe).filter(re=>!!re).slice(0,4).map(re=>e.jsxs("span",{className:"text-xs px-2 py-0.5 rounded-full bg-secondary text-secondary-foreground",children:["#",re]},re))}),e.jsxs("div",{className:"flex items-center justify-between pt-3 border-t border-border/50",children:[e.jsxs("div",{className:"flex items-center gap-4 text-xs text-muted-foreground",children:[P>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Mr,{className:"w-3.5 h-3.5 text-gaming-success"}),P," trust signals"]}),R.followsCount>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Lt,{className:"w-3.5 h-3.5 text-gaming-gold"}),R.followsCount.toLocaleString()," followers"]}),R.hiringIntensity==="High"&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Ra,{className:"w-3.5 h-3.5 text-accent"}),"High hiring"]})]}),e.jsx("a",{href:`/companies/${t.slug}`,children:e.jsx(D,{variant:"ghost",size:"sm",className:"text-accent hover:text-accent",children:"View Profile →"})})]})]})]})})})};function WL(t,[a,r]){return Math.min(r,Math.max(a,t))}function pt(t,a,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function KP(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:m,children:y,...x}=p,f=((k=m==null?void 0:m[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:y})};h.displayName=i+"Provider";function u(p,m){var f;const y=((f=m==null?void 0:m[t])==null?void 0:f[d])||l,x=g.useContext(y);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,LH(s,...a)]}function LH(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}function ZL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function NH(...t){return a=>{let r=!1;const n=t.map(s=>{const i=ZL(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():ZL(t[s],null)}}}}function la(...t){return g.useCallback(NH(...t),t)}function IH(t){const a=t+"CollectionProvider",[r,n]=KP(a),[s,i]=r(a,{collectionRef:{current:null},itemMap:new Map}),c=f=>{const{scope:v,children:k}=f,w=M.useRef(null),j=M.useRef(new Map).current;return e.jsx(s,{scope:v,itemMap:j,collectionRef:w,children:k})};c.displayName=a;const l=t+"CollectionSlot",d=at(l),h=M.forwardRef((f,v)=>{const{scope:k,children:w}=f,j=i(l,k),S=la(v,j.collectionRef);return e.jsx(d,{ref:S,children:w})});h.displayName=l;const u=t+"CollectionItemSlot",p="data-radix-collection-item",m=at(u),y=M.forwardRef((f,v)=>{const{scope:k,children:w,...j}=f,S=M.useRef(null),C=la(v,S),A=i(u,k);return M.useEffect(()=>(A.itemMap.set(S,{ref:S,...j}),()=>void A.itemMap.delete(S))),e.jsx(m,{[p]:"",ref:C,children:w})});y.displayName=u;function x(f){const v=i(t+"CollectionConsumer",f);return M.useCallback(()=>{const w=v.collectionRef.current;if(!w)return[];const j=Array.from(w.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((A,L)=>j.indexOf(A.ref.current)-j.indexOf(L.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:c,Slot:h,ItemSlot:y},x,n]}var AH=g.createContext(void 0);function PH(t){const a=g.useContext(AH);return t||a||"ltr"}var za=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},_H=g[" useId ".trim().toString()]||(()=>{}),RH=0;function SS(t){const[a,r]=g.useState(_H());return za(()=>{r(n=>n??String(RH++))},[t]),a?`radix-${a}`:""}const TH=["top","right","bottom","left"],Ar=Math.min,Ot=Math.max,L9=Math.round,Nl=Math.floor,qa=t=>({x:t,y:t}),qH={left:"right",right:"left",bottom:"top",top:"bottom"},DH={start:"end",end:"start"};function fC(t,a,r){return Ot(t,Ar(a,r))}function Qa(t,a){return typeof t=="function"?t(a):t}function er(t){return t.split("-")[0]}function dc(t){return t.split("-")[1]}function LS(t){return t==="x"?"y":"x"}function NS(t){return t==="y"?"height":"width"}const zH=new Set(["top","bottom"]);function Pa(t){return zH.has(er(t))?"y":"x"}function IS(t){return LS(Pa(t))}function EH(t,a,r){r===void 0&&(r=!1);const n=dc(t),s=IS(t),i=NS(s);let c=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return a.reference[i]>a.floating[i]&&(c=N9(c)),[c,N9(c)]}function FH(t){const a=N9(t);return[xC(t),a,xC(a)]}function xC(t){return t.replace(/start|end/g,a=>DH[a])}const JL=["left","right"],XL=["right","left"],OH=["top","bottom"],HH=["bottom","top"];function VH(t,a,r){switch(t){case"top":case"bottom":return r?a?XL:JL:a?JL:XL;case"left":case"right":return a?OH:HH;default:return[]}}function BH(t,a,r,n){const s=dc(t);let i=VH(er(t),r==="start",n);return s&&(i=i.map(c=>c+"-"+s),a&&(i=i.concat(i.map(xC)))),i}function N9(t){return t.replace(/left|right|bottom|top/g,a=>qH[a])}function $H(t){return{top:0,right:0,bottom:0,left:0,...t}}function QP(t){return typeof t!="number"?$H(t):{top:t,right:t,bottom:t,left:t}}function I9(t){const{x:a,y:r,width:n,height:s}=t;return{width:n,height:s,top:r,left:a,right:a+n,bottom:r+s,x:a,y:r}}function YL(t,a,r){let{reference:n,floating:s}=t;const i=Pa(a),c=IS(a),l=NS(c),d=er(a),h=i==="y",u=n.x+n.width/2-s.width/2,p=n.y+n.height/2-s.height/2,m=n[l]/2-s[l]/2;let y;switch(d){case"top":y={x:u,y:n.y-s.height};break;case"bottom":y={x:u,y:n.y+n.height};break;case"right":y={x:n.x+n.width,y:p};break;case"left":y={x:n.x-s.width,y:p};break;default:y={x:n.x,y:n.y}}switch(dc(a)){case"start":y[c]-=m*(r&&h?-1:1);break;case"end":y[c]+=m*(r&&h?-1:1);break}return y}const UH=async(t,a,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:c}=r,l=i.filter(Boolean),d=await(c.isRTL==null?void 0:c.isRTL(a));let h=await c.getElementRects({reference:t,floating:a,strategy:s}),{x:u,y:p}=YL(h,n,d),m=n,y={},x=0;for(let f=0;f<l.length;f++){const{name:v,fn:k}=l[f],{x:w,y:j,data:S,reset:C}=await k({x:u,y:p,initialPlacement:n,placement:m,strategy:s,middlewareData:y,rects:h,platform:c,elements:{reference:t,floating:a}});u=w??u,p=j??p,y={...y,[v]:{...y[v],...S}},C&&x<=50&&(x++,typeof C=="object"&&(C.placement&&(m=C.placement),C.rects&&(h=C.rects===!0?await c.getElementRects({reference:t,floating:a,strategy:s}):C.rects),{x:u,y:p}=YL(h,m,d)),f=-1)}return{x:u,y:p,placement:m,strategy:s,middlewareData:y}};async function cl(t,a){var r;a===void 0&&(a={});const{x:n,y:s,platform:i,rects:c,elements:l,strategy:d}=t,{boundary:h="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:m=!1,padding:y=0}=Qa(a,t),x=QP(y),v=l[m?p==="floating"?"reference":"floating":p],k=I9(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(v)))==null||r?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:h,rootBoundary:u,strategy:d})),w=p==="floating"?{x:n,y:s,width:c.floating.width,height:c.floating.height}:c.reference,j=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),S=await(i.isElement==null?void 0:i.isElement(j))?await(i.getScale==null?void 0:i.getScale(j))||{x:1,y:1}:{x:1,y:1},C=I9(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:j,strategy:d}):w);return{top:(k.top-C.top+x.top)/S.y,bottom:(C.bottom-k.bottom+x.bottom)/S.y,left:(k.left-C.left+x.left)/S.x,right:(C.right-k.right+x.right)/S.x}}const GH=t=>({name:"arrow",options:t,async fn(a){const{x:r,y:n,placement:s,rects:i,platform:c,elements:l,middlewareData:d}=a,{element:h,padding:u=0}=Qa(t,a)||{};if(h==null)return{};const p=QP(u),m={x:r,y:n},y=IS(s),x=NS(y),f=await c.getDimensions(h),v=y==="y",k=v?"top":"left",w=v?"bottom":"right",j=v?"clientHeight":"clientWidth",S=i.reference[x]+i.reference[y]-m[y]-i.floating[x],C=m[y]-i.reference[y],A=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let L=A?A[j]:0;(!L||!await(c.isElement==null?void 0:c.isElement(A)))&&(L=l.floating[j]||i.floating[x]);const b=S/2-C/2,N=L/2-f[x]/2-1,q=Ar(p[k],N),P=Ar(p[w],N),R=q,T=L-f[x]-P,$=L/2-f[x]/2+b,W=fC(R,$,T),B=!d.arrow&&dc(s)!=null&&$!==W&&i.reference[x]/2-($<R?q:P)-f[x]/2<0,U=B?$<R?$-R:$-T:0;return{[y]:m[y]+U,data:{[y]:W,centerOffset:$-W-U,...B&&{alignmentOffset:U}},reset:B}}}),WH=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(a){var r,n;const{placement:s,middlewareData:i,rects:c,initialPlacement:l,platform:d,elements:h}=a,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:f=!0,...v}=Qa(t,a);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const k=er(s),w=Pa(l),j=er(l)===l,S=await(d.isRTL==null?void 0:d.isRTL(h.floating)),C=m||(j||!f?[N9(l)]:FH(l)),A=x!=="none";!m&&A&&C.push(...BH(l,f,x,S));const L=[l,...C],b=await cl(a,v),N=[];let q=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&N.push(b[k]),p){const $=EH(s,c,S);N.push(b[$[0]],b[$[1]])}if(q=[...q,{placement:s,overflows:N}],!N.every($=>$<=0)){var P,R;const $=(((P=i.flip)==null?void 0:P.index)||0)+1,W=L[$];if(W&&(!(p==="alignment"?w!==Pa(W):!1)||q.every(O=>Pa(O.placement)===w?O.overflows[0]>0:!0)))return{data:{index:$,overflows:q},reset:{placement:W}};let B=(R=q.filter(U=>U.overflows[0]<=0).sort((U,O)=>U.overflows[1]-O.overflows[1])[0])==null?void 0:R.placement;if(!B)switch(y){case"bestFit":{var T;const U=(T=q.filter(O=>{if(A){const oe=Pa(O.placement);return oe===w||oe==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(oe=>oe>0).reduce((oe,ae)=>oe+ae,0)]).sort((O,oe)=>O[1]-oe[1])[0])==null?void 0:T[0];U&&(B=U);break}case"initialPlacement":B=l;break}if(s!==B)return{reset:{placement:B}}}return{}}}};function KL(t,a){return{top:t.top-a.height,right:t.right-a.width,bottom:t.bottom-a.height,left:t.left-a.width}}function QL(t){return TH.some(a=>t[a]>=0)}const ZH=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(a){const{rects:r}=a,{strategy:n="referenceHidden",...s}=Qa(t,a);switch(n){case"referenceHidden":{const i=await cl(a,{...s,elementContext:"reference"}),c=KL(i,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:QL(c)}}}case"escaped":{const i=await cl(a,{...s,altBoundary:!0}),c=KL(i,r.floating);return{data:{escapedOffsets:c,escaped:QL(c)}}}default:return{}}}}},e_=new Set(["left","top"]);async function JH(t,a){const{placement:r,platform:n,elements:s}=t,i=await(n.isRTL==null?void 0:n.isRTL(s.floating)),c=er(r),l=dc(r),d=Pa(r)==="y",h=e_.has(c)?-1:1,u=i&&d?-1:1,p=Qa(a,t);let{mainAxis:m,crossAxis:y,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof x=="number"&&(y=l==="end"?x*-1:x),d?{x:y*u,y:m*h}:{x:m*h,y:y*u}}const XH=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(a){var r,n;const{x:s,y:i,placement:c,middlewareData:l}=a,d=await JH(a,t);return c===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:s+d.x,y:i+d.y,data:{...d,placement:c}}}}},YH=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(a){const{x:r,y:n,placement:s}=a,{mainAxis:i=!0,crossAxis:c=!1,limiter:l={fn:v=>{let{x:k,y:w}=v;return{x:k,y:w}}},...d}=Qa(t,a),h={x:r,y:n},u=await cl(a,d),p=Pa(er(s)),m=LS(p);let y=h[m],x=h[p];if(i){const v=m==="y"?"top":"left",k=m==="y"?"bottom":"right",w=y+u[v],j=y-u[k];y=fC(w,y,j)}if(c){const v=p==="y"?"top":"left",k=p==="y"?"bottom":"right",w=x+u[v],j=x-u[k];x=fC(w,x,j)}const f=l.fn({...a,[m]:y,[p]:x});return{...f,data:{x:f.x-r,y:f.y-n,enabled:{[m]:i,[p]:c}}}}}},KH=function(t){return t===void 0&&(t={}),{options:t,fn(a){const{x:r,y:n,placement:s,rects:i,middlewareData:c}=a,{offset:l=0,mainAxis:d=!0,crossAxis:h=!0}=Qa(t,a),u={x:r,y:n},p=Pa(s),m=LS(p);let y=u[m],x=u[p];const f=Qa(l,a),v=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(d){const j=m==="y"?"height":"width",S=i.reference[m]-i.floating[j]+v.mainAxis,C=i.reference[m]+i.reference[j]-v.mainAxis;y<S?y=S:y>C&&(y=C)}if(h){var k,w;const j=m==="y"?"width":"height",S=e_.has(er(s)),C=i.reference[p]-i.floating[j]+(S&&((k=c.offset)==null?void 0:k[p])||0)+(S?0:v.crossAxis),A=i.reference[p]+i.reference[j]+(S?0:((w=c.offset)==null?void 0:w[p])||0)-(S?v.crossAxis:0);x<C?x=C:x>A&&(x=A)}return{[m]:y,[p]:x}}}},QH=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(a){var r,n;const{placement:s,rects:i,platform:c,elements:l}=a,{apply:d=()=>{},...h}=Qa(t,a),u=await cl(a,h),p=er(s),m=dc(s),y=Pa(s)==="y",{width:x,height:f}=i.floating;let v,k;p==="top"||p==="bottom"?(v=p,k=m===(await(c.isRTL==null?void 0:c.isRTL(l.floating))?"start":"end")?"left":"right"):(k=p,v=m==="end"?"top":"bottom");const w=f-u.top-u.bottom,j=x-u.left-u.right,S=Ar(f-u[v],w),C=Ar(x-u[k],j),A=!a.middlewareData.shift;let L=S,b=C;if((r=a.middlewareData.shift)!=null&&r.enabled.x&&(b=j),(n=a.middlewareData.shift)!=null&&n.enabled.y&&(L=w),A&&!m){const q=Ot(u.left,0),P=Ot(u.right,0),R=Ot(u.top,0),T=Ot(u.bottom,0);y?b=x-2*(q!==0||P!==0?q+P:Ot(u.left,u.right)):L=f-2*(R!==0||T!==0?R+T:Ot(u.top,u.bottom))}await d({...a,availableWidth:b,availableHeight:L});const N=await c.getDimensions(l.floating);return x!==N.width||f!==N.height?{reset:{rects:!0}}:{}}}};function ej(){return typeof window<"u"}function hc(t){return t_(t)?(t.nodeName||"").toLowerCase():"#document"}function Gt(t){var a;return(t==null||(a=t.ownerDocument)==null?void 0:a.defaultView)||window}function Oa(t){var a;return(a=(t_(t)?t.ownerDocument:t.document)||window.document)==null?void 0:a.documentElement}function t_(t){return ej()?t instanceof Node||t instanceof Gt(t).Node:!1}function wa(t){return ej()?t instanceof Element||t instanceof Gt(t).Element:!1}function Ea(t){return ej()?t instanceof HTMLElement||t instanceof Gt(t).HTMLElement:!1}function eN(t){return!ej()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Gt(t).ShadowRoot}const eV=new Set(["inline","contents"]);function pl(t){const{overflow:a,overflowX:r,overflowY:n,display:s}=ba(t);return/auto|scroll|overlay|hidden|clip/.test(a+n+r)&&!eV.has(s)}const tV=new Set(["table","td","th"]);function aV(t){return tV.has(hc(t))}const rV=[":popover-open",":modal"];function tj(t){return rV.some(a=>{try{return t.matches(a)}catch{return!1}})}const nV=["transform","translate","scale","rotate","perspective"],sV=["transform","translate","scale","rotate","perspective","filter"],iV=["paint","layout","strict","content"];function AS(t){const a=PS(),r=wa(t)?ba(t):t;return nV.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!a&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!a&&(r.filter?r.filter!=="none":!1)||sV.some(n=>(r.willChange||"").includes(n))||iV.some(n=>(r.contain||"").includes(n))}function oV(t){let a=Pr(t);for(;Ea(a)&&!oc(a);){if(AS(a))return a;if(tj(a))return null;a=Pr(a)}return null}function PS(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const cV=new Set(["html","body","#document"]);function oc(t){return cV.has(hc(t))}function ba(t){return Gt(t).getComputedStyle(t)}function aj(t){return wa(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Pr(t){if(hc(t)==="html")return t;const a=t.assignedSlot||t.parentNode||eN(t)&&t.host||Oa(t);return eN(a)?a.host:a}function a_(t){const a=Pr(t);return oc(a)?t.ownerDocument?t.ownerDocument.body:t.body:Ea(a)&&pl(a)?a:a_(a)}function ll(t,a,r){var n;a===void 0&&(a=[]),r===void 0&&(r=!0);const s=a_(t),i=s===((n=t.ownerDocument)==null?void 0:n.body),c=Gt(s);if(i){const l=gC(c);return a.concat(c,c.visualViewport||[],pl(s)?s:[],l&&r?ll(l):[])}return a.concat(s,ll(s,[],r))}function gC(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function r_(t){const a=ba(t);let r=parseFloat(a.width)||0,n=parseFloat(a.height)||0;const s=Ea(t),i=s?t.offsetWidth:r,c=s?t.offsetHeight:n,l=L9(r)!==i||L9(n)!==c;return l&&(r=i,n=c),{width:r,height:n,$:l}}function _S(t){return wa(t)?t:t.contextElement}function ec(t){const a=_S(t);if(!Ea(a))return qa(1);const r=a.getBoundingClientRect(),{width:n,height:s,$:i}=r_(a);let c=(i?L9(r.width):r.width)/n,l=(i?L9(r.height):r.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}const lV=qa(0);function n_(t){const a=Gt(t);return!PS()||!a.visualViewport?lV:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function dV(t,a,r){return a===void 0&&(a=!1),!r||a&&r!==Gt(t)?!1:a}function Mo(t,a,r,n){a===void 0&&(a=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),i=_S(t);let c=qa(1);a&&(n?wa(n)&&(c=ec(n)):c=ec(t));const l=dV(i,r,n)?n_(i):qa(0);let d=(s.left+l.x)/c.x,h=(s.top+l.y)/c.y,u=s.width/c.x,p=s.height/c.y;if(i){const m=Gt(i),y=n&&wa(n)?Gt(n):n;let x=m,f=gC(x);for(;f&&n&&y!==x;){const v=ec(f),k=f.getBoundingClientRect(),w=ba(f),j=k.left+(f.clientLeft+parseFloat(w.paddingLeft))*v.x,S=k.top+(f.clientTop+parseFloat(w.paddingTop))*v.y;d*=v.x,h*=v.y,u*=v.x,p*=v.y,d+=j,h+=S,x=Gt(f),f=gC(x)}}return I9({width:u,height:p,x:d,y:h})}function rj(t,a){const r=aj(t).scrollLeft;return a?a.left+r:Mo(Oa(t)).left+r}function s_(t,a){const r=t.getBoundingClientRect(),n=r.left+a.scrollLeft-rj(t,r),s=r.top+a.scrollTop;return{x:n,y:s}}function hV(t){let{elements:a,rect:r,offsetParent:n,strategy:s}=t;const i=s==="fixed",c=Oa(n),l=a?tj(a.floating):!1;if(n===c||l&&i)return r;let d={scrollLeft:0,scrollTop:0},h=qa(1);const u=qa(0),p=Ea(n);if((p||!p&&!i)&&((hc(n)!=="body"||pl(c))&&(d=aj(n)),Ea(n))){const y=Mo(n);h=ec(n),u.x=y.x+n.clientLeft,u.y=y.y+n.clientTop}const m=c&&!p&&!i?s_(c,d):qa(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-d.scrollLeft*h.x+u.x+m.x,y:r.y*h.y-d.scrollTop*h.y+u.y+m.y}}function uV(t){return Array.from(t.getClientRects())}function pV(t){const a=Oa(t),r=aj(t),n=t.ownerDocument.body,s=Ot(a.scrollWidth,a.clientWidth,n.scrollWidth,n.clientWidth),i=Ot(a.scrollHeight,a.clientHeight,n.scrollHeight,n.clientHeight);let c=-r.scrollLeft+rj(t);const l=-r.scrollTop;return ba(n).direction==="rtl"&&(c+=Ot(a.clientWidth,n.clientWidth)-s),{width:s,height:i,x:c,y:l}}const tN=25;function yV(t,a){const r=Gt(t),n=Oa(t),s=r.visualViewport;let i=n.clientWidth,c=n.clientHeight,l=0,d=0;if(s){i=s.width,c=s.height;const u=PS();(!u||u&&a==="fixed")&&(l=s.offsetLeft,d=s.offsetTop)}const h=rj(n);if(h<=0){const u=n.ownerDocument,p=u.body,m=getComputedStyle(p),y=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,x=Math.abs(n.clientWidth-p.clientWidth-y);x<=tN&&(i-=x)}else h<=tN&&(i+=h);return{width:i,height:c,x:l,y:d}}const mV=new Set(["absolute","fixed"]);function fV(t,a){const r=Mo(t,!0,a==="fixed"),n=r.top+t.clientTop,s=r.left+t.clientLeft,i=Ea(t)?ec(t):qa(1),c=t.clientWidth*i.x,l=t.clientHeight*i.y,d=s*i.x,h=n*i.y;return{width:c,height:l,x:d,y:h}}function aN(t,a,r){let n;if(a==="viewport")n=yV(t,r);else if(a==="document")n=pV(Oa(t));else if(wa(a))n=fV(a,r);else{const s=n_(t);n={x:a.x-s.x,y:a.y-s.y,width:a.width,height:a.height}}return I9(n)}function i_(t,a){const r=Pr(t);return r===a||!wa(r)||oc(r)?!1:ba(r).position==="fixed"||i_(r,a)}function xV(t,a){const r=a.get(t);if(r)return r;let n=ll(t,[],!1).filter(l=>wa(l)&&hc(l)!=="body"),s=null;const i=ba(t).position==="fixed";let c=i?Pr(t):t;for(;wa(c)&&!oc(c);){const l=ba(c),d=AS(c);!d&&l.position==="fixed"&&(s=null),(i?!d&&!s:!d&&l.position==="static"&&!!s&&mV.has(s.position)||pl(c)&&!d&&i_(t,c))?n=n.filter(u=>u!==c):s=l,c=Pr(c)}return a.set(t,n),n}function gV(t){let{element:a,boundary:r,rootBoundary:n,strategy:s}=t;const c=[...r==="clippingAncestors"?tj(a)?[]:xV(a,this._c):[].concat(r),n],l=c[0],d=c.reduce((h,u)=>{const p=aN(a,u,s);return h.top=Ot(p.top,h.top),h.right=Ar(p.right,h.right),h.bottom=Ar(p.bottom,h.bottom),h.left=Ot(p.left,h.left),h},aN(a,l,s));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function kV(t){const{width:a,height:r}=r_(t);return{width:a,height:r}}function vV(t,a,r){const n=Ea(a),s=Oa(a),i=r==="fixed",c=Mo(t,!0,i,a);let l={scrollLeft:0,scrollTop:0};const d=qa(0);function h(){d.x=rj(s)}if(n||!n&&!i)if((hc(a)!=="body"||pl(s))&&(l=aj(a)),n){const y=Mo(a,!0,i,a);d.x=y.x+a.clientLeft,d.y=y.y+a.clientTop}else s&&h();i&&!n&&s&&h();const u=s&&!n&&!i?s_(s,l):qa(0),p=c.left+l.scrollLeft-d.x-u.x,m=c.top+l.scrollTop-d.y-u.y;return{x:p,y:m,width:c.width,height:c.height}}function Fj(t){return ba(t).position==="static"}function rN(t,a){if(!Ea(t)||ba(t).position==="fixed")return null;if(a)return a(t);let r=t.offsetParent;return Oa(t)===r&&(r=r.ownerDocument.body),r}function o_(t,a){const r=Gt(t);if(tj(t))return r;if(!Ea(t)){let s=Pr(t);for(;s&&!oc(s);){if(wa(s)&&!Fj(s))return s;s=Pr(s)}return r}let n=rN(t,a);for(;n&&aV(n)&&Fj(n);)n=rN(n,a);return n&&oc(n)&&Fj(n)&&!AS(n)?r:n||oV(t)||r}const wV=async function(t){const a=this.getOffsetParent||o_,r=this.getDimensions,n=await r(t.floating);return{reference:vV(t.reference,await a(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function bV(t){return ba(t).direction==="rtl"}const MV={convertOffsetParentRelativeRectToViewportRelativeRect:hV,getDocumentElement:Oa,getClippingRect:gV,getOffsetParent:o_,getElementRects:wV,getClientRects:uV,getDimensions:kV,getScale:ec,isElement:wa,isRTL:bV};function c_(t,a){return t.x===a.x&&t.y===a.y&&t.width===a.width&&t.height===a.height}function jV(t,a){let r=null,n;const s=Oa(t);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function c(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),i();const h=t.getBoundingClientRect(),{left:u,top:p,width:m,height:y}=h;if(l||a(),!m||!y)return;const x=Nl(p),f=Nl(s.clientWidth-(u+m)),v=Nl(s.clientHeight-(p+y)),k=Nl(u),j={rootMargin:-x+"px "+-f+"px "+-v+"px "+-k+"px",threshold:Ot(0,Ar(1,d))||1};let S=!0;function C(A){const L=A[0].intersectionRatio;if(L!==d){if(!S)return c();L?c(!1,L):n=setTimeout(()=>{c(!1,1e-7)},1e3)}L===1&&!c_(h,t.getBoundingClientRect())&&c(),S=!1}try{r=new IntersectionObserver(C,{...j,root:s.ownerDocument})}catch{r=new IntersectionObserver(C,j)}r.observe(t)}return c(!0),i}function CV(t,a,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=n,h=_S(t),u=s||i?[...h?ll(h):[],...ll(a)]:[];u.forEach(k=>{s&&k.addEventListener("scroll",r,{passive:!0}),i&&k.addEventListener("resize",r)});const p=h&&l?jV(h,r):null;let m=-1,y=null;c&&(y=new ResizeObserver(k=>{let[w]=k;w&&w.target===h&&y&&(y.unobserve(a),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var j;(j=y)==null||j.observe(a)})),r()}),h&&!d&&y.observe(h),y.observe(a));let x,f=d?Mo(t):null;d&&v();function v(){const k=Mo(t);f&&!c_(f,k)&&r(),f=k,x=requestAnimationFrame(v)}return r(),()=>{var k;u.forEach(w=>{s&&w.removeEventListener("scroll",r),i&&w.removeEventListener("resize",r)}),p==null||p(),(k=y)==null||k.disconnect(),y=null,d&&cancelAnimationFrame(x)}}const SV=XH,LV=YH,NV=WH,IV=QH,AV=ZH,nN=GH,PV=KH,_V=(t,a,r)=>{const n=new Map,s={platform:MV,...r},i={...s.platform,_c:n};return UH(t,a,{...s,platform:i})};var RV=typeof document<"u",TV=function(){},y9=RV?M.useLayoutEffect:TV;function A9(t,a){if(t===a)return!0;if(typeof t!=typeof a)return!1;if(typeof t=="function"&&t.toString()===a.toString())return!0;let r,n,s;if(t&&a&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==a.length)return!1;for(n=r;n--!==0;)if(!A9(t[n],a[n]))return!1;return!0}if(s=Object.keys(t),r=s.length,r!==Object.keys(a).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(a,s[n]))return!1;for(n=r;n--!==0;){const i=s[n];if(!(i==="_owner"&&t.$$typeof)&&!A9(t[i],a[i]))return!1}return!0}return t!==t&&a!==a}function l_(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function sN(t,a){const r=l_(t);return Math.round(a*r)/r}function Oj(t){const a=g.useRef(t);return y9(()=>{a.current=t}),a}function qV(t){t===void 0&&(t={});const{placement:a="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:i,floating:c}={},transform:l=!0,whileElementsMounted:d,open:h}=t,[u,p]=g.useState({x:0,y:0,strategy:r,placement:a,middlewareData:{},isPositioned:!1}),[m,y]=g.useState(n);A9(m,n)||y(n);const[x,f]=g.useState(null),[v,k]=g.useState(null),w=g.useCallback(O=>{O!==A.current&&(A.current=O,f(O))},[]),j=g.useCallback(O=>{O!==L.current&&(L.current=O,k(O))},[]),S=i||x,C=c||v,A=g.useRef(null),L=g.useRef(null),b=g.useRef(u),N=d!=null,q=Oj(d),P=Oj(s),R=Oj(h),T=g.useCallback(()=>{if(!A.current||!L.current)return;const O={placement:a,strategy:r,middleware:m};P.current&&(O.platform=P.current),_V(A.current,L.current,O).then(oe=>{const ae={...oe,isPositioned:R.current!==!1};$.current&&!A9(b.current,ae)&&(b.current=ae,q9.flushSync(()=>{p(ae)}))})},[m,a,r,P,R]);y9(()=>{h===!1&&b.current.isPositioned&&(b.current.isPositioned=!1,p(O=>({...O,isPositioned:!1})))},[h]);const $=g.useRef(!1);y9(()=>($.current=!0,()=>{$.current=!1}),[]),y9(()=>{if(S&&(A.current=S),C&&(L.current=C),S&&C){if(q.current)return q.current(S,C,T);T()}},[S,C,T,q,N]);const W=g.useMemo(()=>({reference:A,floating:L,setReference:w,setFloating:j}),[w,j]),B=g.useMemo(()=>({reference:S,floating:C}),[S,C]),U=g.useMemo(()=>{const O={position:r,left:0,top:0};if(!B.floating)return O;const oe=sN(B.floating,u.x),ae=sN(B.floating,u.y);return l?{...O,transform:"translate("+oe+"px, "+ae+"px)",...l_(B.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:oe,top:ae}},[r,l,B.floating,u.x,u.y]);return g.useMemo(()=>({...u,update:T,refs:W,elements:B,floatingStyles:U}),[u,T,W,B,U])}const DV=t=>{function a(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:s}=typeof t=="function"?t(r):t;return n&&a(n)?n.current!=null?nN({element:n.current,padding:s}).fn(r):{}:n?nN({element:n,padding:s}).fn(r):{}}}},zV=(t,a)=>({...SV(t),options:[t,a]}),EV=(t,a)=>({...LV(t),options:[t,a]}),FV=(t,a)=>({...PV(t),options:[t,a]}),OV=(t,a)=>({...NV(t),options:[t,a]}),HV=(t,a)=>({...IV(t),options:[t,a]}),VV=(t,a)=>({...AV(t),options:[t,a]}),BV=(t,a)=>({...DV(t),options:[t,a]});var $V=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],UV=$V.reduce((t,a)=>{const r=at(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),GV="Arrow",d_=g.forwardRef((t,a)=>{const{children:r,width:n=10,height:s=5,...i}=t;return e.jsx(UV.svg,{...i,ref:a,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:e.jsx("polygon",{points:"0,0 30,0 15,10"})})});d_.displayName=GV;var WV=d_;function iN(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function ZV(...t){return a=>{let r=!1;const n=t.map(s=>{const i=iN(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():iN(t[s],null)}}}}function h_(...t){return g.useCallback(ZV(...t),t)}function JV(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:m,children:y,...x}=p,f=((k=m==null?void 0:m[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:y})};h.displayName=i+"Provider";function u(p,m){var f;const y=((f=m==null?void 0:m[t])==null?void 0:f[d])||l,x=g.useContext(y);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,XV(s,...a)]}function XV(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}var YV=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],u_=YV.reduce((t,a)=>{const r=at(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{});function KV(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...r)=>{var n;return(n=a.current)==null?void 0:n.call(a,...r)},[])}var oN=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},RS="Popper",[p_,nj]=JV(RS),[QV,y_]=p_(RS),m_=t=>{const{__scopePopper:a,children:r}=t,[n,s]=g.useState(null);return e.jsx(QV,{scope:a,anchor:n,onAnchorChange:s,children:r})};m_.displayName=RS;var f_="PopperAnchor",x_=g.forwardRef((t,a)=>{const{__scopePopper:r,virtualRef:n,...s}=t,i=y_(f_,r),c=g.useRef(null),l=h_(a,c),d=g.useRef(null);return g.useEffect(()=>{const h=d.current;d.current=(n==null?void 0:n.current)||c.current,h!==d.current&&i.onAnchorChange(d.current)}),n?null:e.jsx(u_.div,{...s,ref:l})});x_.displayName=f_;var TS="PopperContent",[eB,tB]=p_(TS),g_=g.forwardRef((t,a)=>{var Z,te,ve,fe,re,he;const{__scopePopper:r,side:n="bottom",sideOffset:s=0,align:i="center",alignOffset:c=0,arrowPadding:l=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:u=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:y="optimized",onPlaced:x,...f}=t,v=y_(TS,r),[k,w]=g.useState(null),j=h_(a,Ae=>w(Ae)),[S,C]=g.useState(null),A=bS(S),L=(A==null?void 0:A.width)??0,b=(A==null?void 0:A.height)??0,N=n+(i!=="center"?"-"+i:""),q=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},P=Array.isArray(h)?h:[h],R=P.length>0,T={padding:q,boundary:P.filter(rB),altBoundary:R},{refs:$,floatingStyles:W,placement:B,isPositioned:U,middlewareData:O}=qV({strategy:"fixed",placement:N,whileElementsMounted:(...Ae)=>CV(...Ae,{animationFrame:y==="always"}),elements:{reference:v.anchor},middleware:[zV({mainAxis:s+b,alignmentAxis:c}),d&&EV({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?FV():void 0,...T}),d&&OV({...T}),HV({...T,apply:({elements:Ae,rects:Pe,availableWidth:_e,availableHeight:Qe})=>{const{width:st,height:yt}=Pe.reference,rt=Ae.floating.style;rt.setProperty("--radix-popper-available-width",`${_e}px`),rt.setProperty("--radix-popper-available-height",`${Qe}px`),rt.setProperty("--radix-popper-anchor-width",`${st}px`),rt.setProperty("--radix-popper-anchor-height",`${yt}px`)}}),S&&BV({element:S,padding:l}),nB({arrowWidth:L,arrowHeight:b}),m&&VV({strategy:"referenceHidden",...T})]}),[oe,ae]=w_(B),Y=KV(x);oN(()=>{U&&(Y==null||Y())},[U,Y]);const J=(Z=O.arrow)==null?void 0:Z.x,Q=(te=O.arrow)==null?void 0:te.y,ee=((ve=O.arrow)==null?void 0:ve.centerOffset)!==0,[ue,we]=g.useState();return oN(()=>{k&&we(window.getComputedStyle(k).zIndex)},[k]),e.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:U?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[(fe=O.transformOrigin)==null?void 0:fe.x,(re=O.transformOrigin)==null?void 0:re.y].join(" "),...((he=O.hide)==null?void 0:he.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:e.jsx(eB,{scope:r,placedSide:oe,onArrowChange:C,arrowX:J,arrowY:Q,shouldHideArrow:ee,children:e.jsx(u_.div,{"data-side":oe,"data-align":ae,...f,ref:j,style:{...f.style,animation:U?void 0:"none"}})})})});g_.displayName=TS;var k_="PopperArrow",aB={top:"bottom",right:"left",bottom:"top",left:"right"},v_=g.forwardRef(function(a,r){const{__scopePopper:n,...s}=a,i=tB(k_,n),c=aB[i.placedSide];return e.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:e.jsx(WV,{...s,ref:r,style:{...s.style,display:"block"}})})});v_.displayName=k_;function rB(t){return t!==null}var nB=t=>({name:"transformOrigin",options:t,fn(a){var v,k,w;const{placement:r,rects:n,middlewareData:s}=a,c=((v=s.arrow)==null?void 0:v.centerOffset)!==0,l=c?0:t.arrowWidth,d=c?0:t.arrowHeight,[h,u]=w_(r),p={start:"0%",center:"50%",end:"100%"}[u],m=(((k=s.arrow)==null?void 0:k.x)??0)+l/2,y=(((w=s.arrow)==null?void 0:w.y)??0)+d/2;let x="",f="";return h==="bottom"?(x=c?p:`${m}px`,f=`${-d}px`):h==="top"?(x=c?p:`${m}px`,f=`${n.floating.height+d}px`):h==="right"?(x=`${-d}px`,f=c?p:`${y}px`):h==="left"&&(x=`${n.floating.width+d}px`,f=c?p:`${y}px`),{data:{x,y:f}}}});function w_(t){const[a,r="center"]=t.split("-");return[a,r]}var b_=m_,qS=x_,M_=g_,j_=v_,sB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Zt=sB.reduce((t,a)=>{const r=at(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{});function iB(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...r)=>{var n;return(n=a.current)==null?void 0:n.call(a,...r)},[])}var oB=g[" useInsertionEffect ".trim().toString()]||za;function cN({prop:t,defaultProp:a,onChange:r=()=>{},caller:n}){const[s,i,c]=cB({defaultProp:a,onChange:r}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,n])}const h=g.useCallback(u=>{var p;if(l){const m=lB(u)?u(t):u;m!==t&&((p=c.current)==null||p.call(c,m))}else i(u)},[l,t,i,c]);return[d,h]}function cB({defaultProp:t,onChange:a}){const[r,n]=g.useState(t),s=g.useRef(r),i=g.useRef(a);return oB(()=>{i.current=a},[a]),g.useEffect(()=>{var c;s.current!==r&&((c=i.current)==null||c.call(i,r),s.current=r)},[r,s]),[r,n,i]}function lB(t){return typeof t=="function"}var dB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hB=dB.reduce((t,a)=>{const r=at(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),C_=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),uB="VisuallyHidden",pB=g.forwardRef((t,a)=>e.jsx(hB.span,{...t,ref:a,style:{...C_,...t.style}}));pB.displayName=uB;var yB=[" ","Enter","ArrowUp","ArrowDown"],mB=[" ","Enter"],jo="Select",[sj,ij,fB]=IH(jo),[uc,eW]=KP(jo,[fB,nj]),oj=nj(),[xB,Dr]=uc(jo),[gB,kB]=uc(jo),S_=t=>{const{__scopeSelect:a,children:r,open:n,defaultOpen:s,onOpenChange:i,value:c,defaultValue:l,onValueChange:d,dir:h,name:u,autoComplete:p,disabled:m,required:y,form:x}=t,f=oj(a),[v,k]=g.useState(null),[w,j]=g.useState(null),[S,C]=g.useState(!1),A=PH(h),[L,b]=cN({prop:n,defaultProp:s??!1,onChange:i,caller:jo}),[N,q]=cN({prop:c,defaultProp:l,onChange:d,caller:jo}),P=g.useRef(null),R=v?x||!!v.closest("form"):!0,[T,$]=g.useState(new Set),W=Array.from(T).map(B=>B.props.value).join(";");return e.jsx(b_,{...f,children:e.jsxs(xB,{required:y,scope:a,trigger:v,onTriggerChange:k,valueNode:w,onValueNodeChange:j,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:SS(),value:N,onValueChange:q,open:L,onOpenChange:b,dir:A,triggerPointerDownPosRef:P,disabled:m,children:[e.jsx(sj.Provider,{scope:a,children:e.jsx(gB,{scope:t.__scopeSelect,onNativeOptionAdd:g.useCallback(B=>{$(U=>new Set(U).add(B))},[]),onNativeOptionRemove:g.useCallback(B=>{$(U=>{const O=new Set(U);return O.delete(B),O})},[]),children:r})}),R?e.jsxs(X_,{"aria-hidden":!0,required:y,tabIndex:-1,name:u,autoComplete:p,value:N,onChange:B=>q(B.target.value),disabled:m,form:x,children:[N===void 0?e.jsx("option",{value:""}):null,Array.from(T)]},W):null]})})};S_.displayName=jo;var L_="SelectTrigger",N_=g.forwardRef((t,a)=>{const{__scopeSelect:r,disabled:n=!1,...s}=t,i=oj(r),c=Dr(L_,r),l=c.disabled||n,d=la(a,c.onTriggerChange),h=ij(r),u=g.useRef("touch"),[p,m,y]=K_(f=>{const v=h().filter(j=>!j.disabled),k=v.find(j=>j.value===c.value),w=Q_(v,f,k);w!==void 0&&c.onValueChange(w.value)}),x=f=>{l||(c.onOpenChange(!0),y()),f&&(c.triggerPointerDownPosRef.current={x:Math.round(f.pageX),y:Math.round(f.pageY)})};return e.jsx(qS,{asChild:!0,...i,children:e.jsx(Zt.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Y_(c.value)?"":void 0,...s,ref:d,onClick:pt(s.onClick,f=>{f.currentTarget.focus(),u.current!=="mouse"&&x(f)}),onPointerDown:pt(s.onPointerDown,f=>{u.current=f.pointerType;const v=f.target;v.hasPointerCapture(f.pointerId)&&v.releasePointerCapture(f.pointerId),f.button===0&&f.ctrlKey===!1&&f.pointerType==="mouse"&&(x(f),f.preventDefault())}),onKeyDown:pt(s.onKeyDown,f=>{const v=p.current!=="";!(f.ctrlKey||f.altKey||f.metaKey)&&f.key.length===1&&m(f.key),!(v&&f.key===" ")&&yB.includes(f.key)&&(x(),f.preventDefault())})})})});N_.displayName=L_;var I_="SelectValue",A_=g.forwardRef((t,a)=>{const{__scopeSelect:r,className:n,style:s,children:i,placeholder:c="",...l}=t,d=Dr(I_,r),{onValueNodeHasChildrenChange:h}=d,u=i!==void 0,p=la(a,d.onValueNodeChange);return za(()=>{h(u)},[h,u]),e.jsx(Zt.span,{...l,ref:p,style:{pointerEvents:"none"},children:Y_(d.value)?e.jsx(e.Fragment,{children:c}):i})});A_.displayName=I_;var vB="SelectIcon",P_=g.forwardRef((t,a)=>{const{__scopeSelect:r,children:n,...s}=t;return e.jsx(Zt.span,{"aria-hidden":!0,...s,ref:a,children:n||"▼"})});P_.displayName=vB;var wB="SelectPortal",__=t=>e.jsx(W9,{asChild:!0,...t});__.displayName=wB;var Co="SelectContent",R_=g.forwardRef((t,a)=>{const r=Dr(Co,t.__scopeSelect),[n,s]=g.useState();if(za(()=>{s(new DocumentFragment)},[]),!r.open){const i=n;return i?q9.createPortal(e.jsx(T_,{scope:t.__scopeSelect,children:e.jsx(sj.Slot,{scope:t.__scopeSelect,children:e.jsx("div",{children:t.children})})}),i):null}return e.jsx(q_,{...t,ref:a})});R_.displayName=Co;var ya=10,[T_,zr]=uc(Co),bB="SelectContentImpl",MB=at("SelectContent.RemoveScroll"),q_=g.forwardRef((t,a)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:c,side:l,sideOffset:d,align:h,alignOffset:u,arrowPadding:p,collisionBoundary:m,collisionPadding:y,sticky:x,hideWhenDetached:f,avoidCollisions:v,...k}=t,w=Dr(Co,r),[j,S]=g.useState(null),[C,A]=g.useState(null),L=la(a,Z=>S(Z)),[b,N]=g.useState(null),[q,P]=g.useState(null),R=ij(r),[T,$]=g.useState(!1),W=g.useRef(!1);g.useEffect(()=>{if(j)return lS(j)},[j]),cS();const B=g.useCallback(Z=>{const[te,...ve]=R().map(he=>he.ref.current),[fe]=ve.slice(-1),re=document.activeElement;for(const he of Z)if(he===re||(he==null||he.scrollIntoView({block:"nearest"}),he===te&&C&&(C.scrollTop=0),he===fe&&C&&(C.scrollTop=C.scrollHeight),he==null||he.focus(),document.activeElement!==re))return},[R,C]),U=g.useCallback(()=>B([b,j]),[B,b,j]);g.useEffect(()=>{T&&U()},[T,U]);const{onOpenChange:O,triggerPointerDownPosRef:oe}=w;g.useEffect(()=>{if(j){let Z={x:0,y:0};const te=fe=>{var re,he;Z={x:Math.abs(Math.round(fe.pageX)-(((re=oe.current)==null?void 0:re.x)??0)),y:Math.abs(Math.round(fe.pageY)-(((he=oe.current)==null?void 0:he.y)??0))}},ve=fe=>{Z.x<=10&&Z.y<=10?fe.preventDefault():j.contains(fe.target)||O(!1),document.removeEventListener("pointermove",te),oe.current=null};return oe.current!==null&&(document.addEventListener("pointermove",te),document.addEventListener("pointerup",ve,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",te),document.removeEventListener("pointerup",ve,{capture:!0})}}},[j,O,oe]),g.useEffect(()=>{const Z=()=>O(!1);return window.addEventListener("blur",Z),window.addEventListener("resize",Z),()=>{window.removeEventListener("blur",Z),window.removeEventListener("resize",Z)}},[O]);const[ae,Y]=K_(Z=>{const te=R().filter(re=>!re.disabled),ve=te.find(re=>re.ref.current===document.activeElement),fe=Q_(te,Z,ve);fe&&setTimeout(()=>fe.ref.current.focus())}),J=g.useCallback((Z,te,ve)=>{const fe=!W.current&&!ve;(w.value!==void 0&&w.value===te||fe)&&(N(Z),fe&&(W.current=!0))},[w.value]),Q=g.useCallback(()=>j==null?void 0:j.focus(),[j]),ee=g.useCallback((Z,te,ve)=>{const fe=!W.current&&!ve;(w.value!==void 0&&w.value===te||fe)&&P(Z)},[w.value]),ue=n==="popper"?kC:D_,we=ue===kC?{side:l,sideOffset:d,align:h,alignOffset:u,arrowPadding:p,collisionBoundary:m,collisionPadding:y,sticky:x,hideWhenDetached:f,avoidCollisions:v}:{};return e.jsx(T_,{scope:r,content:j,viewport:C,onViewportChange:A,itemRefCallback:J,selectedItem:b,onItemLeave:Q,itemTextRefCallback:ee,focusSelectedItem:U,selectedItemText:q,position:n,isPositioned:T,searchRef:ae,children:e.jsx(X9,{as:MB,allowPinchZoom:!0,children:e.jsx(G9,{asChild:!0,trapped:w.open,onMountAutoFocus:Z=>{Z.preventDefault()},onUnmountAutoFocus:pt(s,Z=>{var te;(te=w.trigger)==null||te.focus({preventScroll:!0}),Z.preventDefault()}),children:e.jsx(U9,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:Z=>Z.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:e.jsx(ue,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:Z=>Z.preventDefault(),...k,...we,onPlaced:()=>$(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",...k.style},onKeyDown:pt(k.onKeyDown,Z=>{const te=Z.ctrlKey||Z.altKey||Z.metaKey;if(Z.key==="Tab"&&Z.preventDefault(),!te&&Z.key.length===1&&Y(Z.key),["ArrowUp","ArrowDown","Home","End"].includes(Z.key)){let fe=R().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes(Z.key)&&(fe=fe.slice().reverse()),["ArrowUp","ArrowDown"].includes(Z.key)){const re=Z.target,he=fe.indexOf(re);fe=fe.slice(he+1)}setTimeout(()=>B(fe)),Z.preventDefault()}})})})})})})});q_.displayName=bB;var jB="SelectItemAlignedPosition",D_=g.forwardRef((t,a)=>{const{__scopeSelect:r,onPlaced:n,...s}=t,i=Dr(Co,r),c=zr(Co,r),[l,d]=g.useState(null),[h,u]=g.useState(null),p=la(a,L=>u(L)),m=ij(r),y=g.useRef(!1),x=g.useRef(!0),{viewport:f,selectedItem:v,selectedItemText:k,focusSelectedItem:w}=c,j=g.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&h&&f&&v&&k){const L=i.trigger.getBoundingClientRect(),b=h.getBoundingClientRect(),N=i.valueNode.getBoundingClientRect(),q=k.getBoundingClientRect();if(i.dir!=="rtl"){const re=q.left-b.left,he=N.left-re,Ae=L.left-he,Pe=L.width+Ae,_e=Math.max(Pe,b.width),Qe=window.innerWidth-ya,st=WL(he,[ya,Math.max(ya,Qe-_e)]);l.style.minWidth=Pe+"px",l.style.left=st+"px"}else{const re=b.right-q.right,he=window.innerWidth-N.right-re,Ae=window.innerWidth-L.right-he,Pe=L.width+Ae,_e=Math.max(Pe,b.width),Qe=window.innerWidth-ya,st=WL(he,[ya,Math.max(ya,Qe-_e)]);l.style.minWidth=Pe+"px",l.style.right=st+"px"}const P=m(),R=window.innerHeight-ya*2,T=f.scrollHeight,$=window.getComputedStyle(h),W=parseInt($.borderTopWidth,10),B=parseInt($.paddingTop,10),U=parseInt($.borderBottomWidth,10),O=parseInt($.paddingBottom,10),oe=W+B+T+O+U,ae=Math.min(v.offsetHeight*5,oe),Y=window.getComputedStyle(f),J=parseInt(Y.paddingTop,10),Q=parseInt(Y.paddingBottom,10),ee=L.top+L.height/2-ya,ue=R-ee,we=v.offsetHeight/2,Z=v.offsetTop+we,te=W+B+Z,ve=oe-te;if(te<=ee){const re=P.length>0&&v===P[P.length-1].ref.current;l.style.bottom="0px";const he=h.clientHeight-f.offsetTop-f.offsetHeight,Ae=Math.max(ue,we+(re?Q:0)+he+U),Pe=te+Ae;l.style.height=Pe+"px"}else{const re=P.length>0&&v===P[0].ref.current;l.style.top="0px";const Ae=Math.max(ee,W+f.offsetTop+(re?J:0)+we)+ve;l.style.height=Ae+"px",f.scrollTop=te-ee+f.offsetTop}l.style.margin=`${ya}px 0`,l.style.minHeight=ae+"px",l.style.maxHeight=R+"px",n==null||n(),requestAnimationFrame(()=>y.current=!0)}},[m,i.trigger,i.valueNode,l,h,f,v,k,i.dir,n]);za(()=>j(),[j]);const[S,C]=g.useState();za(()=>{h&&C(window.getComputedStyle(h).zIndex)},[h]);const A=g.useCallback(L=>{L&&x.current===!0&&(j(),w==null||w(),x.current=!1)},[j,w]);return e.jsx(SB,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:y,onScrollButtonChange:A,children:e.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:e.jsx(Zt.div,{...s,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});D_.displayName=jB;var CB="SelectPopperPosition",kC=g.forwardRef((t,a)=>{const{__scopeSelect:r,align:n="start",collisionPadding:s=ya,...i}=t,c=oj(r);return e.jsx(M_,{...c,...i,ref:a,align:n,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});kC.displayName=CB;var[SB,DS]=uc(Co,{}),vC="SelectViewport",z_=g.forwardRef((t,a)=>{const{__scopeSelect:r,nonce:n,...s}=t,i=zr(vC,r),c=DS(vC,r),l=la(a,i.onViewportChange),d=g.useRef(0);return e.jsxs(e.Fragment,{children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),e.jsx(sj.Slot,{scope:r,children:e.jsx(Zt.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:pt(s.onScroll,h=>{const u=h.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:m}=c;if(m!=null&&m.current&&p){const y=Math.abs(d.current-u.scrollTop);if(y>0){const x=window.innerHeight-ya*2,f=parseFloat(p.style.minHeight),v=parseFloat(p.style.height),k=Math.max(f,v);if(k<x){const w=k+y,j=Math.min(x,w),S=w-j;p.style.height=j+"px",p.style.bottom==="0px"&&(u.scrollTop=S>0?S:0,p.style.justifyContent="flex-end")}}}d.current=u.scrollTop})})})]})});z_.displayName=vC;var E_="SelectGroup",[LB,NB]=uc(E_),IB=g.forwardRef((t,a)=>{const{__scopeSelect:r,...n}=t,s=SS();return e.jsx(LB,{scope:r,id:s,children:e.jsx(Zt.div,{role:"group","aria-labelledby":s,...n,ref:a})})});IB.displayName=E_;var F_="SelectLabel",O_=g.forwardRef((t,a)=>{const{__scopeSelect:r,...n}=t,s=NB(F_,r);return e.jsx(Zt.div,{id:s.id,...n,ref:a})});O_.displayName=F_;var P9="SelectItem",[AB,H_]=uc(P9),V_=g.forwardRef((t,a)=>{const{__scopeSelect:r,value:n,disabled:s=!1,textValue:i,...c}=t,l=Dr(P9,r),d=zr(P9,r),h=l.value===n,[u,p]=g.useState(i??""),[m,y]=g.useState(!1),x=la(a,w=>{var j;return(j=d.itemRefCallback)==null?void 0:j.call(d,w,n,s)}),f=SS(),v=g.useRef("touch"),k=()=>{s||(l.onValueChange(n),l.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return e.jsx(AB,{scope:r,value:n,disabled:s,textId:f,isSelected:h,onItemTextChange:g.useCallback(w=>{p(j=>j||((w==null?void 0:w.textContent)??"").trim())},[]),children:e.jsx(sj.ItemSlot,{scope:r,value:n,disabled:s,textValue:u,children:e.jsx(Zt.div,{role:"option","aria-labelledby":f,"data-highlighted":m?"":void 0,"aria-selected":h&&m,"data-state":h?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...c,ref:x,onFocus:pt(c.onFocus,()=>y(!0)),onBlur:pt(c.onBlur,()=>y(!1)),onClick:pt(c.onClick,()=>{v.current!=="mouse"&&k()}),onPointerUp:pt(c.onPointerUp,()=>{v.current==="mouse"&&k()}),onPointerDown:pt(c.onPointerDown,w=>{v.current=w.pointerType}),onPointerMove:pt(c.onPointerMove,w=>{var j;v.current=w.pointerType,s?(j=d.onItemLeave)==null||j.call(d):v.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:pt(c.onPointerLeave,w=>{var j;w.currentTarget===document.activeElement&&((j=d.onItemLeave)==null||j.call(d))}),onKeyDown:pt(c.onKeyDown,w=>{var S;((S=d.searchRef)==null?void 0:S.current)!==""&&w.key===" "||(mB.includes(w.key)&&k(),w.key===" "&&w.preventDefault())})})})})});V_.displayName=P9;var wc="SelectItemText",B_=g.forwardRef((t,a)=>{const{__scopeSelect:r,className:n,style:s,...i}=t,c=Dr(wc,r),l=zr(wc,r),d=H_(wc,r),h=kB(wc,r),[u,p]=g.useState(null),m=la(a,k=>p(k),d.onItemTextChange,k=>{var w;return(w=l.itemTextRefCallback)==null?void 0:w.call(l,k,d.value,d.disabled)}),y=u==null?void 0:u.textContent,x=g.useMemo(()=>e.jsx("option",{value:d.value,disabled:d.disabled,children:y},d.value),[d.disabled,d.value,y]),{onNativeOptionAdd:f,onNativeOptionRemove:v}=h;return za(()=>(f(x),()=>v(x)),[f,v,x]),e.jsxs(e.Fragment,{children:[e.jsx(Zt.span,{id:d.textId,...i,ref:m}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren?q9.createPortal(i.children,c.valueNode):null]})});B_.displayName=wc;var $_="SelectItemIndicator",U_=g.forwardRef((t,a)=>{const{__scopeSelect:r,...n}=t;return H_($_,r).isSelected?e.jsx(Zt.span,{"aria-hidden":!0,...n,ref:a}):null});U_.displayName=$_;var wC="SelectScrollUpButton",G_=g.forwardRef((t,a)=>{const r=zr(wC,t.__scopeSelect),n=DS(wC,t.__scopeSelect),[s,i]=g.useState(!1),c=la(a,n.onScrollButtonChange);return za(()=>{if(r.viewport&&r.isPositioned){let l=function(){const h=d.scrollTop>0;i(h)};const d=r.viewport;return l(),d.addEventListener("scroll",l),()=>d.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),s?e.jsx(Z_,{...t,ref:c,onAutoScroll:()=>{const{viewport:l,selectedItem:d}=r;l&&d&&(l.scrollTop=l.scrollTop-d.offsetHeight)}}):null});G_.displayName=wC;var bC="SelectScrollDownButton",W_=g.forwardRef((t,a)=>{const r=zr(bC,t.__scopeSelect),n=DS(bC,t.__scopeSelect),[s,i]=g.useState(!1),c=la(a,n.onScrollButtonChange);return za(()=>{if(r.viewport&&r.isPositioned){let l=function(){const h=d.scrollHeight-d.clientHeight,u=Math.ceil(d.scrollTop)<h;i(u)};const d=r.viewport;return l(),d.addEventListener("scroll",l),()=>d.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),s?e.jsx(Z_,{...t,ref:c,onAutoScroll:()=>{const{viewport:l,selectedItem:d}=r;l&&d&&(l.scrollTop=l.scrollTop+d.offsetHeight)}}):null});W_.displayName=bC;var Z_=g.forwardRef((t,a)=>{const{__scopeSelect:r,onAutoScroll:n,...s}=t,i=zr("SelectScrollButton",r),c=g.useRef(null),l=ij(r),d=g.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return g.useEffect(()=>()=>d(),[d]),za(()=>{var u;const h=l().find(p=>p.ref.current===document.activeElement);(u=h==null?void 0:h.ref.current)==null||u.scrollIntoView({block:"nearest"})},[l]),e.jsx(Zt.div,{"aria-hidden":!0,...s,ref:a,style:{flexShrink:0,...s.style},onPointerDown:pt(s.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(n,50))}),onPointerMove:pt(s.onPointerMove,()=>{var h;(h=i.onItemLeave)==null||h.call(i),c.current===null&&(c.current=window.setInterval(n,50))}),onPointerLeave:pt(s.onPointerLeave,()=>{d()})})}),PB="SelectSeparator",J_=g.forwardRef((t,a)=>{const{__scopeSelect:r,...n}=t;return e.jsx(Zt.div,{"aria-hidden":!0,...n,ref:a})});J_.displayName=PB;var MC="SelectArrow",_B=g.forwardRef((t,a)=>{const{__scopeSelect:r,...n}=t,s=oj(r),i=Dr(MC,r),c=zr(MC,r);return i.open&&c.position==="popper"?e.jsx(j_,{...s,...n,ref:a}):null});_B.displayName=MC;var RB="SelectBubbleInput",X_=g.forwardRef(({__scopeSelect:t,value:a,...r},n)=>{const s=g.useRef(null),i=la(n,s),c=wS(a);return g.useEffect(()=>{const l=s.current;if(!l)return;const d=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(d,"value").set;if(c!==a&&u){const p=new Event("change",{bubbles:!0});u.call(l,a),l.dispatchEvent(p)}},[c,a]),e.jsx(Zt.select,{...r,style:{...C_,...r.style},ref:i,defaultValue:a})});X_.displayName=RB;function Y_(t){return t===""||t===void 0}function K_(t){const a=iB(t),r=g.useRef(""),n=g.useRef(0),s=g.useCallback(c=>{const l=r.current+c;a(l),function d(h){r.current=h,window.clearTimeout(n.current),h!==""&&(n.current=window.setTimeout(()=>d(""),1e3))}(l)},[a]),i=g.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,s,i]}function Q_(t,a,r){const s=a.length>1&&Array.from(a).every(h=>h===a[0])?a[0]:a,i=r?t.indexOf(r):-1;let c=TB(t,Math.max(i,0));s.length===1&&(c=c.filter(h=>h!==r));const d=c.find(h=>h.textValue.toLowerCase().startsWith(s.toLowerCase()));return d!==r?d:void 0}function TB(t,a){return t.map((r,n)=>t[(a+n)%t.length])}var qB=S_,eR=N_,DB=A_,zB=P_,EB=__,tR=R_,FB=z_,aR=O_,rR=V_,OB=B_,HB=U_,nR=G_,sR=W_,zS=J_;const So=qB,Lo=DB,_r=g.forwardRef(({className:t,children:a,...r},n)=>e.jsxs(eR,{ref:n,className:me("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...r,children:[a,e.jsx(zB,{asChild:!0,children:e.jsx(bP,{className:"h-4 w-4 opacity-50"})})]}));_r.displayName=eR.displayName;const iR=g.forwardRef(({className:t,...a},r)=>e.jsx(nR,{ref:r,className:me("flex cursor-default items-center justify-center py-1",t),...a,children:e.jsx(aO,{className:"h-4 w-4"})}));iR.displayName=nR.displayName;const oR=g.forwardRef(({className:t,...a},r)=>e.jsx(sR,{ref:r,className:me("flex cursor-default items-center justify-center py-1",t),...a,children:e.jsx(bP,{className:"h-4 w-4"})}));oR.displayName=sR.displayName;const Rr=g.forwardRef(({className:t,children:a,position:r="popper",...n},s)=>e.jsx(EB,{children:e.jsxs(tR,{ref:s,className:me("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,...n,children:[e.jsx(iR,{}),e.jsx(FB,{className:me("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),e.jsx(oR,{})]})}));Rr.displayName=tR.displayName;const VB=g.forwardRef(({className:t,...a},r)=>e.jsx(aR,{ref:r,className:me("px-2 py-1.5 text-sm font-semibold",t),...a}));VB.displayName=aR.displayName;const Vt=g.forwardRef(({className:t,children:a,...r},n)=>e.jsxs(rR,{ref:n,className:me("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r,children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(HB,{children:e.jsx(QF,{className:"h-4 w-4"})})}),e.jsx(OB,{children:a})]}));Vt.displayName=rR.displayName;const BB=g.forwardRef(({className:t,...a},r)=>e.jsx(zS,{ref:r,className:me("-mx-1 my-1 h-px bg-muted",t),...a}));BB.displayName=zS.displayName;function $B(t,a,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function UB(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:m,children:y,...x}=p,f=((k=m==null?void 0:m[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:y})};h.displayName=i+"Provider";function u(p,m){var f;const y=((f=m==null?void 0:m[t])==null?void 0:f[d])||l,x=g.useContext(y);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,GB(s,...a)]}function GB(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}var dl=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},WB=g[" useInsertionEffect ".trim().toString()]||dl;function ZB({prop:t,defaultProp:a,onChange:r=()=>{},caller:n}){const[s,i,c]=JB({defaultProp:a,onChange:r}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,n])}const h=g.useCallback(u=>{var p;if(l){const m=XB(u)?u(t):u;m!==t&&((p=c.current)==null||p.call(c,m))}else i(u)},[l,t,i,c]);return[d,h]}function JB({defaultProp:t,onChange:a}){const[r,n]=g.useState(t),s=g.useRef(r),i=g.useRef(a);return WB(()=>{i.current=a},[a]),g.useEffect(()=>{var c;s.current!==r&&((c=i.current)==null||c.call(i,r),s.current=r)},[r,s]),[r,n,i]}function XB(t){return typeof t=="function"}function lN(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function YB(...t){return a=>{let r=!1;const n=t.map(s=>{const i=lN(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():lN(t[s],null)}}}}function cR(...t){return g.useCallback(YB(...t),t)}var KB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ES=KB.reduce((t,a)=>{const r=at(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{});function QB(t,a){return g.useReducer((r,n)=>a[r][n]??r,t)}var lR=t=>{const{present:a,children:r}=t,n=e$(a),s=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),i=cR(n.ref,t$(s));return typeof r=="function"||n.isPresent?g.cloneElement(s,{ref:i}):null};lR.displayName="Presence";function e$(t){const[a,r]=g.useState(),n=g.useRef(null),s=g.useRef(t),i=g.useRef("none"),c=t?"mounted":"unmounted",[l,d]=QB(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=Il(n.current);i.current=l==="mounted"?h:"none"},[l]),dl(()=>{const h=n.current,u=s.current;if(u!==t){const m=i.current,y=Il(h);t?d("MOUNT"):y==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&m!==y?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),dl(()=>{if(a){let h;const u=a.ownerDocument.defaultView??window,p=y=>{const f=Il(n.current).includes(CSS.escape(y.animationName));if(y.target===a&&f&&(d("ANIMATION_END"),!s.current)){const v=a.style.animationFillMode;a.style.animationFillMode="forwards",h=u.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=v)})}},m=y=>{y.target===a&&(i.current=Il(n.current))};return a.addEventListener("animationstart",m),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{u.clearTimeout(h),a.removeEventListener("animationstart",m),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{n.current=h?getComputedStyle(h):null,r(h)},[])}}function Il(t){return(t==null?void 0:t.animationName)||"none"}function t$(t){var n,s;let a=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var a$=g[" useId ".trim().toString()]||(()=>{}),r$=0;function n$(t){const[a,r]=g.useState(a$());return dl(()=>{t||r(n=>n??String(r$++))},[t]),t||(a?`radix-${a}`:"")}var cj="Collapsible",[s$,tW]=UB(cj),[i$,FS]=s$(cj),dR=g.forwardRef((t,a)=>{const{__scopeCollapsible:r,open:n,defaultOpen:s,disabled:i,onOpenChange:c,...l}=t,[d,h]=ZB({prop:n,defaultProp:s??!1,onChange:c,caller:cj});return e.jsx(i$,{scope:r,disabled:i,contentId:n$(),open:d,onOpenToggle:g.useCallback(()=>h(u=>!u),[h]),children:e.jsx(ES.div,{"data-state":HS(d),"data-disabled":i?"":void 0,...l,ref:a})})});dR.displayName=cj;var hR="CollapsibleTrigger",uR=g.forwardRef((t,a)=>{const{__scopeCollapsible:r,...n}=t,s=FS(hR,r);return e.jsx(ES.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":HS(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...n,ref:a,onClick:$B(t.onClick,s.onOpenToggle)})});uR.displayName=hR;var OS="CollapsibleContent",pR=g.forwardRef((t,a)=>{const{forceMount:r,...n}=t,s=FS(OS,t.__scopeCollapsible);return e.jsx(lR,{present:r||s.open,children:({present:i})=>e.jsx(o$,{...n,ref:a,present:i})})});pR.displayName=OS;var o$=g.forwardRef((t,a)=>{const{__scopeCollapsible:r,present:n,children:s,...i}=t,c=FS(OS,r),[l,d]=g.useState(n),h=g.useRef(null),u=cR(a,h),p=g.useRef(0),m=p.current,y=g.useRef(0),x=y.current,f=c.open||l,v=g.useRef(f),k=g.useRef(void 0);return g.useEffect(()=>{const w=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(w)},[]),dl(()=>{const w=h.current;if(w){k.current=k.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const j=w.getBoundingClientRect();p.current=j.height,y.current=j.width,v.current||(w.style.transitionDuration=k.current.transitionDuration,w.style.animationName=k.current.animationName),d(n)}},[c.open,n]),e.jsx(ES.div,{"data-state":HS(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!f,...i,ref:u,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...t.style},children:f&&s})});function HS(t){return t?"open":"closed"}var c$=dR;const l$=c$,d$=uR,h$=pR,yR=[{category:"Online Casino Operators",items:[{label:"Slots",matchers:["slot","slots"]},{label:"Live Casino",matchers:["live casino","live dealer","live-casino"]},{label:"Jackpots",matchers:["jackpot","jackpots"]},{label:"Sportsbook",matchers:["sportsbook"]},{label:"Crypto",matchers:["crypto","crypto casino","crypto-casino"]}]},{category:"Providers",items:[{label:"Game Provider",matchers:["aggregation","aggregator","game-platform","games","game-api"]},{label:"Live Casino",matchers:["live-casino-studio","live-casino-provider","live-casino","live casino","live studios","live dealer","live dealers","live dealer studio","live dealer studios"]},{label:"Game Platform",matchers:["aggregation","aggregator","game-platform","games","game-api"]},{label:"Bonus Platform",matchers:["bonus","promotions","promo","loyalty"]},{label:"Backoffice",matchers:["backoffice","back office","crm","admin"]},{label:"Gamification",matchers:["gamification"]},{label:"Tech Providers",matchers:["AI","Integrations","Development"]}]},{category:"Affiliate",items:[{label:"Affiliate Agencies",matchers:["affiliate agencies","affiliate","affiliate agency","affiliate marketing"]},{label:"Affiliate Program",matchers:["affiliate program","affiliate programs"]},{label:"Tracking Tools",matchers:["tracking","attribution"]},{label:"Affiliate Tools",matchers:["affiliate tools","attribution","Marketing Platform","Marketing Automation","Marketing Automation Platform"]}]},{category:"Payments",items:[{label:"Payment Processing",matchers:["payment","psp","wallet"]}]},{category:"Compliance",items:[{label:"KYC",matchers:["kyc","know your customer"]},{label:"AML",matchers:["aml","anti-money"]},{label:"Risk & Fraud",matchers:["risk","fraud"]}]}],mR=yR.flatMap(t=>t.items),fR={search:"",companyType:"",verticals:[],productCategories:[],employeeRanges:[],products:[],openRolesRanges:[],yearsActiveRanges:[],hiringNow:!1,scope:"company",claimedOnly:!1,hasLicenses:!1,hasAwards:!1},u$=t=>Array.from(new Set(t.filter(Boolean))).sort((a,r)=>a.localeCompare(r)),p$=t=>{if(typeof t=="string")return t.toLowerCase();if(typeof t=="number")return String(t);if(typeof t=="object"&&t!==null){if("name"in t&&typeof t.name=="string")return t.name.toLowerCase();if("title"in t&&typeof t.title=="string")return t.title.toLowerCase()}return""},y$=t=>{var a,r;if(typeof t=="string")return t;if(typeof t=="object"&&t!==null){const n=t;return n.title??((a=n.tag)==null?void 0:a.name)??((r=n.tag)==null?void 0:r.slug)??null}return null},m$=t=>{const a=t.productsAndServices.flatMap(r=>[r.name,r.category,r.description,...r.keyDifferentiators??[]]);return[t.name,t.companyType,t.classification.businessModel,...t.classification.verticals,...t.classification.productCategories,...t.classification.tags.map(y$).filter(r=>!!r),...a].filter(Boolean)},f$=t=>{const a=m$(t).map(p$).join(" ");return mR.filter(r=>r.matchers.some(n=>a.includes(n))).map(r=>r.label)},x$=t=>{if(!t.overview.foundedYear)return null;const a=new Date().getFullYear();return Math.max(0,a-t.overview.foundedYear)},g$=t=>u$([t.classification.businessModel,...t.productsAndServices.map(a=>a.integrationModel),...t.productsAndServices.flatMap(a=>a.keyDifferentiators)]),k$=t=>{var n;const a=x$(t),r=((n=t.group)==null?void 0:n.intelligenceProfile)??t.signalsAndInsights;return{products:f$(t),capabilities:g$(t),credibility:{licenses:t.trustAndCompliance.licenses.length,awards:t.trustAndCompliance.awards.length,certifications:t.trustAndCompliance.certifications.length,yearsActive:a},commercialSignals:{profileViews30d:r.profileViews30d,followsCount:r.followsCount,hiringIntensity:r.hiringIntensity,searchImpressions:t.visibilityMetrics.searchImpressions,profileClicks:t.visibilityMetrics.profileClicks,externalClicks:t.visibilityMetrics.externalClicks}}},dN=({filters:t,options:a,onFiltersChange:r,onClearFilters:n,resultCount:s})=>{const[i,c]=M.useState({companyType:!0,verticals:!0,products:!0,normalizedProducts:!0,employees:!1,hiring:!0,credibility:!0,signals:!1}),l=y=>{c(x=>({...x,[y]:!x[y]}))},d={companyTypes:a.companyTypes??[],verticals:a.verticals??[],productCategories:a.productCategories??[],employeeRanges:a.employeeRanges??[],products:a.products??[],openRolesRanges:a.openRolesRanges??[],yearsActiveRanges:a.yearsActiveRanges??[]},h=(y,x)=>{r({...t,[y]:x})},u=(y,x)=>{const f=t[y],v=f.includes(x)?f.filter(k=>k!==x):[...f,x];h(y,v)},p=(t.companyType?1:0)+t.verticals.length+t.productCategories.length+t.employeeRanges.length+t.products.length+t.openRolesRanges.length+t.yearsActiveRanges.length+(t.hiringNow?1:0)+(t.claimedOnly?1:0)+(t.hasLicenses?1:0)+(t.hasAwards?1:0),m=({id:y,title:x,icon:f,children:v})=>e.jsxs(l$,{open:i[y],onOpenChange:()=>l(y),children:[e.jsxs(d$,{className:"flex items-center justify-between w-full py-3 text-left group",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(f,{className:"w-4 h-4 text-muted-foreground"}),e.jsx("span",{className:"font-medium text-sm",children:x})]}),i[y]?e.jsx(Oo,{className:"w-4 h-4 text-muted-foreground"}):e.jsx(mr,{className:"w-4 h-4 text-muted-foreground"})]}),e.jsx(h$,{className:"pb-4",children:v})]});return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"relative",children:[e.jsx($t,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(Re,{placeholder:"Search companies, products, tags...",value:t.search,onChange:y=>h("search",y.target.value),className:"pl-10"})]}),e.jsxs("div",{className:"flex items-center justify-between gap-2 rounded-lg border border-border px-3 py-2",children:[e.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"View scope"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(D,{type:"button",size:"sm",variant:t.scope==="company"?"default":"outline",onClick:()=>h("scope","company"),children:"Companies"}),e.jsx(D,{type:"button",size:"sm",variant:t.scope==="group"?"default":"outline",onClick:()=>h("scope","group"),children:"Groups"})]})]}),p>0&&e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"text-sm text-muted-foreground",children:[p," filter",p!==1?"s":""," active"]}),e.jsxs(D,{variant:"ghost",size:"sm",onClick:n,className:"text-accent h-auto py-1",children:[e.jsx(Ct,{className:"w-3 h-3 mr-1"}),"Clear all"]})]}),e.jsxs("div",{className:"text-sm font-medium text-foreground py-2 px-3 bg-secondary/50 rounded-lg",children:[s," ",s===1?t.scope==="group"?"group":"company":t.scope==="group"?"groups":"companies"," found"]}),e.jsxs("div",{className:"divide-y divide-border",children:[e.jsx(m,{id:"companyType",title:"Company Type",icon:gt,children:e.jsxs(So,{value:t.companyType||"all",onValueChange:y=>h("companyType",y==="all"?"":y),children:[e.jsx(_r,{className:"w-full",children:e.jsx(Lo,{placeholder:"All company types"})}),e.jsxs(Rr,{children:[e.jsx(Vt,{value:"all",children:"All company types"}),d.companyTypes.map(y=>e.jsx(Vt,{value:y,children:y},y))]})]})}),e.jsx(m,{id:"verticals",title:"Verticals",icon:Pc,children:e.jsx("div",{className:"flex flex-wrap gap-2",children:d.verticals.map(y=>e.jsx(ge,{variant:t.verticals.includes(y)?"default":"outline",className:"cursor-pointer transition-colors",onClick:()=>u("verticals",y),children:y},y))})}),e.jsx(m,{id:"products",title:"Products & Services",icon:na,children:e.jsx("div",{className:"space-y-2 max-h-48 overflow-y-auto",children:d.productCategories.map(y=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Dt,{id:`cat-${y}`,checked:t.productCategories.includes(y),onCheckedChange:()=>u("productCategories",y)}),e.jsx(ne,{htmlFor:`cat-${y}`,className:"text-sm font-normal cursor-pointer flex-1",children:y})]},y))})}),e.jsx(m,{id:"normalizedProducts",title:"Normalized Products",icon:La,children:e.jsx("div",{className:"space-y-3",children:yR.map(y=>e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-semibold uppercase text-muted-foreground mb-2",children:y.category}),e.jsx("div",{className:"space-y-2",children:y.items.map(x=>x.label).filter(x=>(d.products??[]).includes(x)).map(x=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Dt,{id:`product-${x}`,checked:t.products.includes(x),onCheckedChange:()=>u("products",x)}),e.jsx(ne,{htmlFor:`product-${x}`,className:"text-sm font-normal cursor-pointer flex-1",children:x})]},x))})]},y.category))})}),e.jsx(m,{id:"employees",title:"Company Size",icon:Nt,children:e.jsx("div",{className:"space-y-2",children:d.employeeRanges.map(y=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Dt,{id:`emp-${y}`,checked:t.employeeRanges.includes(y),onCheckedChange:()=>u("employeeRanges",y)}),e.jsxs(ne,{htmlFor:`emp-${y}`,className:"text-sm font-normal cursor-pointer flex-1",children:[y," employees"]})]},y))})}),e.jsx(m,{id:"hiring",title:"Hiring",icon:nt,children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Dt,{id:"hiring-now",checked:t.hiringNow,onCheckedChange:y=>h("hiringNow",y===!0)}),e.jsxs(ne,{htmlFor:"hiring-now",className:"text-sm font-normal cursor-pointer flex items-center gap-2",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-gaming-success"}),"Hiring now"]})]}),e.jsxs("div",{children:[e.jsx(ne,{className:"text-xs text-muted-foreground mb-2 inline-flex items-center",children:"Open roles count"}),e.jsx("div",{className:"space-y-2",children:d.openRolesRanges.map(y=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Dt,{id:`open-roles-${y}`,checked:t.openRolesRanges.includes(y),onCheckedChange:()=>u("openRolesRanges",y)}),e.jsxs(ne,{htmlFor:`open-roles-${y}`,className:"text-sm font-normal cursor-pointer flex-1",children:[y," roles"]})]},y))})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Dt,{id:"claimed-only",checked:t.claimedOnly,onCheckedChange:y=>h("claimedOnly",y===!0)}),e.jsxs(ne,{htmlFor:"claimed-only",className:"text-sm font-normal cursor-pointer flex items-center gap-2",children:[e.jsx(it,{className:"w-3.5 h-3.5 text-accent"}),"Claimed profiles only"]})]})]})}),e.jsx(m,{id:"credibility",title:"Credibility",icon:it,children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Dt,{id:"has-licenses",checked:t.hasLicenses,onCheckedChange:y=>h("hasLicenses",y===!0)}),e.jsx(ne,{htmlFor:"has-licenses",className:"text-sm font-normal cursor-pointer",children:"Licensed operators/providers"})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Dt,{id:"has-awards",checked:t.hasAwards,onCheckedChange:y=>h("hasAwards",y===!0)}),e.jsx(ne,{htmlFor:"has-awards",className:"text-sm font-normal cursor-pointer",children:"Award winners"})]}),e.jsxs("div",{children:[e.jsx(ne,{className:"text-xs text-muted-foreground mb-2 inline-flex items-center",children:"Years active"}),e.jsx("div",{className:"space-y-2",children:d.yearsActiveRanges.map(y=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Dt,{id:`years-${y}`,checked:t.yearsActiveRanges.includes(y),onCheckedChange:()=>u("yearsActiveRanges",y)}),e.jsxs(ne,{htmlFor:`years-${y}`,className:"text-sm font-normal cursor-pointer flex-1",children:[y," years"]})]},y))})]})]})})]}),e.jsxs("div",{className:"p-4 bg-gradient-to-br from-accent/10 to-gaming-gold/10 rounded-xl border border-accent/20",children:[e.jsx("h4",{className:"font-semibold text-sm mb-1",children:"Need vendor recommendations?"}),e.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:"Tell us what you need and we'll create a shortlist for you."}),e.jsx(D,{variant:"accent",size:"sm",className:"w-full",children:"Request Intro"})]})]})},v$=({count:t=4})=>e.jsx("div",{className:"space-y-4 animate-fade-in",children:[...Array(t)].map((a,r)=>e.jsx("div",{className:"bg-white rounded-lg shadow-sm p-5 border border-border/50 animate-pulse",children:e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"w-16 h-16 rounded-xl bg-gray-200 flex-shrink-0"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2 mb-2",children:[e.jsxs("div",{className:"space-y-2 flex-1",children:[e.jsx("div",{className:"h-5 bg-gray-200 rounded w-1/3"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"h-3 bg-gray-200 rounded w-28"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-20"})]})]}),e.jsx("div",{className:"h-8 bg-gray-200 rounded w-20"})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[e.jsx("div",{className:"h-5 bg-gray-200 rounded w-20"}),e.jsx("div",{className:"h-5 bg-gray-200 rounded w-24"}),e.jsx("div",{className:"h-5 bg-gray-200 rounded w-16"})]}),e.jsxs("div",{className:"space-y-2 mb-3",children:[e.jsx("div",{className:"h-3 bg-gray-200 rounded w-full"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-3/4"})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[e.jsx("div",{className:"h-5 bg-gray-200 rounded w-16"}),e.jsx("div",{className:"h-5 bg-gray-200 rounded w-14"}),e.jsx("div",{className:"h-5 bg-gray-200 rounded w-20"})]}),e.jsxs("div",{className:"flex items-center justify-between pt-3 border-t border-border/50",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"h-3 bg-gray-200 rounded w-24"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-20"})]}),e.jsx("div",{className:"h-6 bg-gray-200 rounded w-24"})]})]})]})},r))}),w$=t=>{const a=mR.find(r=>r.label===t);return(a==null?void 0:a.label)??t},b$=({entities:t,onClearSelection:a,maxSelections:r})=>e.jsxs(ce,{className:"border-border/60",children:[e.jsxs(xe,{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold",children:"Comparison"}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Comparing ",t.length," of ",r," selected profiles"]})]}),e.jsx(D,{variant:"ghost",size:"sm",onClick:a,children:"Clear selection"})]}),e.jsx(de,{children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("div",{className:"min-w-[640px] grid gap-4",children:[e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Profile"}),t.map(n=>e.jsx("div",{className:"font-semibold text-sm",children:n.name},n.id))]}),e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Products"}),t.map(n=>{const s=n.normalizedProfile;return e.jsx("div",{className:"flex flex-wrap gap-1",children:s.products.length===0?e.jsx("span",{className:"text-xs text-muted-foreground",children:"No normalized products"}):s.products.map(i=>e.jsx(ge,{variant:"secondary",className:"text-xs",children:w$(i)},i))},n.id)})]}),e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Capabilities"}),t.map(n=>{const s=n.normalizedProfile;return e.jsx("div",{className:"flex flex-wrap gap-1",children:s.capabilities.length===0?e.jsx("span",{className:"text-xs text-muted-foreground",children:"No data"}):s.capabilities.map(i=>e.jsx(ge,{variant:"outline",className:"text-xs",children:i},i))},n.id)})]}),e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Credibility"}),t.map(n=>{const s=n.normalizedProfile;return e.jsxs("div",{className:"text-sm text-muted-foreground space-y-1",children:[e.jsxs("div",{children:["Licenses: ",e.jsx("span",{className:"text-foreground",children:s.credibility.licenses})]}),e.jsxs("div",{children:["Awards: ",e.jsx("span",{className:"text-foreground",children:s.credibility.awards})]}),e.jsxs("div",{children:["Years active:"," ",e.jsx("span",{className:"text-foreground",children:s.credibility.yearsActive??"N/A"})]})]},n.id)})]}),e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Commercial Signals"}),t.map(n=>{const s=n.normalizedProfile;return e.jsxs("div",{className:"text-sm text-muted-foreground space-y-1",children:[e.jsxs("div",{children:["Profile views (30d):"," ",e.jsx("span",{className:"text-foreground",children:s.commercialSignals.profileViews30d})]}),e.jsxs("div",{children:["Followers:"," ",e.jsx("span",{className:"text-foreground",children:s.commercialSignals.followsCount})]}),e.jsxs("div",{children:["Hiring intensity:"," ",e.jsx("span",{className:"text-foreground",children:s.commercialSignals.hiringIntensity})]}),e.jsxs("div",{children:["Search impressions:"," ",e.jsx("span",{className:"text-foreground",children:s.commercialSignals.searchImpressions})]})]},n.id)})]})]})})})]}),M$=({viewMode:t,onToggleViewMode:a,selectedItemsPerPage:r,onItemsPerPageChange:n,totalCount:s,startIndex:i,endIndex:c,title:l,items:d})=>e.jsx("div",{className:"lg:block hidden bg-white rounded-lg shadow-sm border border-gray-200 p-4 mb-6",children:e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(gt,{className:"w-5 h-5 text-muted-foreground"}),e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:l})]}),e.jsxs("p",{className:"text-sm text-gray-600",children:["Showing ",e.jsx("span",{className:"font-semibold text-gray-900",children:i}),"–",e.jsx("span",{className:"font-semibold text-gray-900",children:c})," of"," ",e.jsx("span",{className:"font-semibold text-gray-900",children:s})," ",d]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3",children:[e.jsx(EA,{viewMode:t,onToggle:a}),e.jsx(FA,{value:r,onChange:n})]})]})}),j$=()=>e.jsx("section",{className:"bg-gradient-to-br from-primary via-primary to-primary-variant py-12",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-3xl",children:[e.jsxs(bc,{className:"bg-accent/20 text-accent border-accent/30 mb-4",children:[e.jsx(La,{className:"w-3 h-3 mr-1"}),"iGaming Intelligence"]}),e.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-primary-foreground mb-3",children:"iGaming Company Directory"}),e.jsx("p",{className:"text-primary-foreground/80 text-lg",children:"Discover operators, suppliers, affiliates, and service providers. Filter by type, vertical, jurisdiction, and hiring signals."})]})})}),Hj=4,C$=t=>(t.companyType?1:0)+t.verticals.length+t.productCategories.length+t.employeeRanges.length+t.products.length+t.openRolesRanges.length+t.yearsActiveRanges.length+(t.hiringNow?1:0)+(t.claimedOnly?1:0)+(t.hasLicenses?1:0)+(t.hasAwards?1:0),xR=({companies:t,filterOptions:a,loading:r,page:n,pageSize:s,totalCount:i,totalPages:c,onPageChange:l,onPageSizeChange:d,filters:h,onFiltersChange:u,onClearFilters:p,viewMode:m,onViewModeChange:y,followDisabled:x=!1,followLoading:f=!1,onToggleFollow:v,onFollowAction:k,saveDisabled:w=!1,saveLoading:j=!1,onToggleSave:S,onSaveAction:C})=>{const[A,L]=M.useState(!1),[b,N]=M.useState([]),[q,P]=M.useState(!0),{displayCompanies:R,comparisonEntities:T}=M.useMemo(()=>{const Y=t.map(J=>{var ue,we,Z;const Q=h.scope==="group",ee=((we=(ue=J.group)==null?void 0:ue.companies)==null?void 0:we.length)??1;return{company:J,displayName:Q?((Z=J.group)==null?void 0:Z.name)??J.groupName??J.name:J.name,openRolesCount:Array.isArray(J.jobs.openRoles)?J.jobs.openRoles.length:J.jobs.openRoles,groupMembersCount:ee,isGroup:Q,comparisonProfile:k$(J),comparisonId:J.id}});return{displayCompanies:Y,comparisonEntities:Y.map(J=>({id:J.comparisonId,name:J.displayName,normalizedProfile:J.comparisonProfile}))}},[t,h.scope]),$=M.useMemo(()=>C$(h),[h]),W=M.useMemo(()=>T.filter(Y=>b.includes(Y.id)),[T,b]);M.useEffect(()=>{N([])},[h.scope]),M.useEffect(()=>{N(Y=>Y.filter(J=>T.some(Q=>Q.id===J)))},[T]);const B=Y=>{N(J=>J.includes(Y)?J.filter(Q=>Q!==Y):J.length>=Hj?J:[...J,Y])},U=()=>{N([])},O=i===0?0:(n-1)*s+1,oe=Math.min(n*s,i),ae=m==="grid"?"grid gap-6 sm:grid-cols-2 xl:grid-cols-3":"space-y-4";return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(j$,{}),e.jsx("section",{className:"py-8",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"flex gap-8",children:[e.jsx("aside",{className:"hidden lg:block w-80 flex-shrink-0",children:e.jsxs("div",{className:"sticky top-24 bg-card rounded-xl border border-border p-5",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsx(gr,{className:"w-5 h-5 text-accent"}),e.jsx("h2",{className:"font-semibold",children:"Filters"})]}),e.jsx(dN,{filters:h,options:a,onFiltersChange:u,onClearFilters:p,resultCount:i})]})}),e.jsxs("main",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"lg:hidden mb-4",children:e.jsxs(D,{variant:"outline",onClick:()=>L(!0),className:"w-full",children:[e.jsx(gr,{className:"w-4 h-4 mr-2"}),"Filters",$>0&&e.jsx(ge,{variant:"secondary",className:"ml-2",children:"Active"})]})}),e.jsx(M$,{viewMode:m,onToggleViewMode:y,selectedItemsPerPage:s,onItemsPerPageChange:d,totalCount:i,startIndex:O,endIndex:oe,title:"All companies",items:"companies"}),e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("div",{className:"flex items-center gap-3"}),e.jsxs("div",{className:"flex items-center gap-2",children:[b.length>0&&e.jsxs(D,{variant:"outline",size:"sm",onClick:()=>P(Y=>!Y),children:[q?"Hide comparison":"Show comparison"," (",b.length,")"]}),e.jsx("span",{className:"text-sm text-muted-foreground hidden sm:inline",children:"Sort by:"}),e.jsxs(D,{variant:"ghost",size:"sm",className:"text-accent",children:[e.jsx(Ra,{className:"w-4 h-4 mr-1"}),"Most Active"]})]})]}),W.length>0&&q&&e.jsx("div",{className:"mb-6",children:e.jsx(b$,{entities:W,onClearSelection:U,maxSelections:Hj})}),r?e.jsx(v$,{count:s}):e.jsx("div",{className:ae,children:R.map(Y=>e.jsx(SH,{company:Y.company,displayName:Y.displayName,openRolesCount:Y.openRolesCount,groupMembersCount:Y.groupMembersCount,isGroup:Y.isGroup,viewMode:m,compareId:Y.comparisonId,compareSelected:b.includes(Y.comparisonId),compareDisabled:!b.includes(Y.comparisonId)&&b.length>=Hj,onToggleCompare:B,followDisabled:x,followLoading:f,onToggleFollow:v,onFollowAction:k,saveDisabled:w,saveLoading:j,onToggleSave:S,onSaveAction:C},Y.company.id))}),!r&&c>1&&e.jsx(B9,{currentPage:n,totalPages:c,onPageChange:l}),!r&&i===0&&e.jsxs("div",{className:"text-center py-16",children:[e.jsx(gt,{className:"w-12 h-12 text-muted-foreground mx-auto mb-4"}),e.jsxs("h3",{className:"text-lg font-medium mb-2",children:["No ",h.scope==="group"?"groups":"companies"," found"]}),e.jsx("p",{className:"text-muted-foreground mb-4",children:"Try adjusting your filters"}),e.jsx(D,{variant:"outline",onClick:p,children:"Clear all filters"})]})]})]})})}),A&&e.jsxs("div",{className:"fixed inset-0 z-50 lg:hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:()=>L(!1)}),e.jsxs("div",{className:"absolute right-0 top-0 h-full w-full max-w-sm bg-background p-6 overflow-y-auto",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("h2",{className:"font-semibold text-lg",children:"Filters"}),e.jsx(D,{variant:"ghost",size:"icon",onClick:()=>L(!1),children:e.jsx(Ct,{className:"w-5 h-5"})})]}),e.jsx(dN,{filters:h,options:a,onFiltersChange:u,onClearFilters:p,resultCount:i})]})]})]})},_9=g.forwardRef(({className:t,...a},r)=>e.jsx("textarea",{className:me("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...a}));_9.displayName="Textarea";const S$=({company:t,open:a,onOpenChange:r,onClaimSubmit:n})=>{const[s,i]=M.useState(1),[c,l]=M.useState({fullName:"",workEmail:"",jobTitle:"",relationship:"",message:""}),d=()=>{n==null||n({companyId:t.id,companySlug:t.slug,companyName:t.name,fullName:c.fullName,workEmail:c.workEmail,jobTitle:c.jobTitle,relationship:c.relationship,message:c.message}),i(3)},h=()=>{i(1),l({fullName:"",workEmail:"",jobTitle:"",relationship:"",message:""}),r(!1)};return e.jsx(ar,{open:a,onOpenChange:h,children:e.jsxs(Fa,{className:"sm:max-w-[500px]",children:[s===1&&e.jsxs(e.Fragment,{children:[e.jsxs(va,{children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-accent/20 to-gaming-gold/20 flex items-center justify-center mb-2",children:e.jsx(gt,{className:"w-6 h-6 text-accent"})}),e.jsxs(oa,{children:["Claim ",t.name,"'s Profile"]}),e.jsx(go,{children:"Verify your affiliation to manage this company's page, add products, respond to reviews, and access analytics."})]}),e.jsx("div",{className:"space-y-4 py-4",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx(it,{className:"w-5 h-5 text-gaming-success mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:"Update company information"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Add products, edit descriptions, and manage your profile"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx(it,{className:"w-5 h-5 text-gaming-success mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:"Access analytics"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"See who's viewing your profile and track engagement"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx(it,{className:"w-5 h-5 text-gaming-success mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:"Publish jobs & events"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Post open roles and announce event attendance"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx(it,{className:"w-5 h-5 text-gaming-success mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:"Enable meeting bookings"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Let potential partners request meetings at events"})]})]})]})}),e.jsxs(ia,{children:[e.jsx(D,{variant:"outline",onClick:h,children:"Cancel"}),e.jsxs(D,{variant:"accent",onClick:()=>i(2),children:["Continue",e.jsx(co,{className:"w-4 h-4 ml-2"})]})]})]}),s===2&&e.jsxs(e.Fragment,{children:[e.jsxs(va,{children:[e.jsx(oa,{children:"Verify Your Affiliation"}),e.jsxs(go,{children:["We'll verify your work email domain to confirm your connection to ",t.name,"."]})]}),e.jsx("div",{className:"space-y-4 py-4",children:e.jsxs("div",{className:"grid gap-4",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(ne,{htmlFor:"fullName",children:"Full Name"}),e.jsx(Re,{id:"fullName",placeholder:"John Smith",value:c.fullName,onChange:u=>l({...c,fullName:u.target.value})})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(ne,{htmlFor:"workEmail",children:"Work Email"}),e.jsxs("div",{className:"relative",children:[e.jsx(sa,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(Re,{id:"workEmail",type:"email",placeholder:`you@${t.overview.website.replace(/^https?:\/\/(www\.)?/,"").split("/")[0]}`,className:"pl-10",value:c.workEmail,onChange:u=>l({...c,workEmail:u.target.value})})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"We'll send a verification link to this address"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(ne,{htmlFor:"jobTitle",children:"Job Title"}),e.jsxs("div",{className:"relative",children:[e.jsx(nt,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(Re,{id:"jobTitle",placeholder:"e.g., Marketing Manager",className:"pl-10",value:c.jobTitle,onChange:u=>l({...c,jobTitle:u.target.value})})]})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(ne,{htmlFor:"relationship",children:"Your Role"}),e.jsxs(So,{value:c.relationship,onValueChange:u=>l({...c,relationship:u}),children:[e.jsx(_r,{children:e.jsx(Lo,{placeholder:"Select your relationship"})}),e.jsxs(Rr,{children:[e.jsx(Vt,{value:"employee",children:"Current Employee"}),e.jsx(Vt,{value:"founder",children:"Founder / Executive"}),e.jsx(Vt,{value:"hr",children:"HR / Recruiting"}),e.jsx(Vt,{value:"marketing",children:"Marketing / PR"}),e.jsx(Vt,{value:"agency",children:"Authorized Agency"})]})]})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(ne,{htmlFor:"message",children:"Additional Information (Optional)"}),e.jsx(_9,{id:"message",placeholder:"Any additional context to help verify your claim...",value:c.message,onChange:u=>l({...c,message:u.target.value}),rows:3})]})]})}),e.jsxs(ia,{children:[e.jsx(D,{variant:"outline",onClick:()=>i(1),children:"Back"}),e.jsx(D,{variant:"accent",onClick:d,disabled:!c.fullName||!c.workEmail||!c.relationship,children:"Submit Claim Request"})]})]}),s===3&&e.jsxs(e.Fragment,{children:[e.jsxs(va,{className:"text-center",children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-gaming-success/10 flex items-center justify-center mx-auto mb-4",children:e.jsx(it,{className:"w-8 h-8 text-gaming-success"})}),e.jsx(oa,{children:"Claim Request Submitted!"}),e.jsxs(go,{className:"text-center",children:["We've sent a verification email to ",e.jsx("strong",{children:c.workEmail}),". Click the link in the email to verify your affiliation."]})]}),e.jsx("div",{className:"py-4",children:e.jsxs("div",{className:"p-4 bg-secondary/50 rounded-lg text-sm text-muted-foreground",children:[e.jsx("p",{className:"font-medium text-foreground mb-2",children:"What happens next?"}),e.jsxs("ul",{className:"space-y-2",children:[e.jsx("li",{children:"• Check your email for the verification link"}),e.jsx("li",{children:"• Our team will review your claim within 24-48 hours"}),e.jsx("li",{children:"• You'll receive an email once your claim is approved"})]})]})}),e.jsx(ia,{children:e.jsx(D,{variant:"accent",onClick:h,className:"w-full",children:"Done"})})]})]})})};function m9({job:t,view:a,isSaved:r=!1,onApply:n,onSave:s,onRemove:i,onViewApplication:c}){var h;const l=t.city?`${t.city}, ${t.country}`:t.location,d=t.salaryMin&&t.salaryMax?`${t.salaryMin}–${t.salaryMax} ${t.salaryCurrency||""}`:void 0;return e.jsxs(ce,{children:[e.jsxs(xe,{children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx(ke,{className:"text-lg",children:t.title}),e.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground mt-2",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Eo,{className:"h-4 w-4"}),t.company]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ct,{className:"h-4 w-4"}),l]})]})]}),a==="applications"&&t.status&&e.jsx(ge,{variant:"secondary",children:t.status})]}),d&&e.jsx("p",{className:"text-sm font-semibold text-accent mt-1",children:d})]}),e.jsx(de,{children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.department&&e.jsx(ge,{variant:"outline",children:t.department}),(h=t.skills)==null?void 0:h.slice(0,6).map(u=>e.jsx(ge,{variant:"secondary",children:u},u))]}),a==="applications"&&t.appliedDate&&e.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1",children:[e.jsx(ka,{className:"h-3 w-3"}),"Applied ",t.appliedDate]}),e.jsxs("div",{className:"flex gap-2",children:[a==="recommended"&&e.jsxs(e.Fragment,{children:[e.jsx(D,{size:"sm",onClick:()=>n==null?void 0:n(t.id),children:"Apply Now"}),e.jsx(D,{size:"sm",variant:r?"secondary":"outline",disabled:r,onClick:()=>s==null?void 0:s(t),children:r?"Saved":"Save Job"}),e.jsx(D,{size:"sm",variant:"destructive",onClick:()=>i==null?void 0:i(t.id),children:"Remove"})]}),a==="saved"&&e.jsx(D,{size:"sm",variant:"destructive",onClick:()=>i==null?void 0:i(t.id),children:"Remove"}),a==="applications"&&e.jsx(D,{size:"sm",variant:"outline",onClick:()=>c==null?void 0:c(t.id),children:"View Application"}),a==="company"&&e.jsx(D,{size:"sm",variant:"outline",onClick:()=>{window.location.href=t.link},children:"Apply"})]})]})})]})}function jC({article:t,view:a,isSaved:r=!1,onRead:n,onSave:s,onRemove:i}){var c;return e.jsxs(ce,{children:[e.jsxs(xe,{children:[e.jsxs("div",{className:"flex gap-2 items-start mb-2",children:[(c=t.categories)==null?void 0:c.map(l=>e.jsx(ge,{variant:"secondary",children:l})),e.jsx("span",{className:"text-xs text-muted-foreground",children:t.publishedDate})]}),e.jsx(ke,{className:"text-lg",children:t.title}),e.jsxs(Ge,{className:"text-xs",children:[t.source?t.source:t.company," • ",t.readTime," min"]})]}),e.jsx(de,{children:e.jsxs("div",{className:"space-y-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:t.excerpt}),e.jsx("div",{className:"flex flex-wrap gap-2",children:t.tags.map(l=>e.jsx(ge,{variant:"outline",className:"text-xs",children:l},l))}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:flex-wrap",children:[e.jsx(D,{size:"sm",onClick:()=>n==null?void 0:n(t.id),children:"Read Article"}),a==="recommended"&&e.jsxs(e.Fragment,{children:[e.jsx(D,{size:"sm",variant:r?"secondary":"outline",disabled:r,onClick:()=>s==null?void 0:s(t),children:r?"Saved":"Save"}),e.jsx(D,{size:"sm",variant:"destructive",onClick:()=>i==null?void 0:i(t.id),children:"Remove"})]}),a==="saved"&&e.jsx(D,{size:"sm",variant:"destructive",onClick:()=>i==null?void 0:i(t.id),children:"Remove Saved"}),a==="company"&&e.jsx(D,{size:"sm",variant:"outline",onClick:()=>n==null?void 0:n(t.id),children:"Read"})]})]})})]})}const gR=({isClaimed:t,canClaim:a,onClaimClick:r})=>t||!a?null:e.jsx(D,{type:"button",variant:"ghost",className:"text-primary-foreground",onClick:r,children:"Claim this company"}),L$=({company:t,jobs:a,news:r,events:n,officeLocations:s,isFollowing:i,followLoading:c=!1,followDisabled:l=!1,onToggleFollow:d,onFollowAction:h,isSaved:u,saveLoading:p=!1,saveDisabled:m=!1,onToggleSave:y,onSaveAction:x,canClaim:f,onClaimSubmit:v})=>{var da,ft,dt,Jt,F,V,K,Le,Te,Ze,ze;const[k,w]=M.useState(!1);if(!t)return e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"container mx-auto px-4 py-16 text-center",children:[e.jsx(gt,{className:"w-16 h-16 text-muted-foreground mx-auto mb-4"}),e.jsx("h1",{className:"text-2xl font-bold mb-2",children:"Company Not Found"}),e.jsx("p",{className:"text-muted-foreground mb-6",children:"The company you're looking for doesn't exist."}),e.jsx("a",{href:"/companies",children:e.jsx(D,{variant:"accent",children:"Browse Directory"})})]})});const j=((ft=(da=t.webIntelligence)==null?void 0:da.menus.primary_nav_details)==null?void 0:ft.flatMap(z=>z.key_points))??[],S=t.trustAndCompliance.licenses.length+t.trustAndCompliance.certifications.length+t.trustAndCompliance.awards.length,C=t.signalsAndInsights,A=((dt=t.group)==null?void 0:dt.name)??t.groupName??t.group_name??null,L=((Jt=t.group)==null?void 0:Jt.slug)??t.groupSlug??t.group_slug??((F=t.group)==null?void 0:F.id)??t.groupId??t.group_id??void 0,b=a??[],N=r??[],q=n??[],P=b.length>0?b.length:Array.isArray(t.jobs.openRoles)?t.jobs.openRoles.length:t.jobs.openRoles,R=z=>typeof z=="string"?z:`${z.authority} (${z.jurisdiction})`,T=z=>typeof z=="string"?z:`${z.name} (${z.year})`,$=z=>"name"in z?z.name:z.eventName,W=z=>"startDate"in z?`${z.startDate}${z.endDate?` - ${z.endDate}`:""}`:z.date,B=z=>typeof z=="string"?z:`${z.title} • ${z.source}`,U=z=>typeof z=="object"&&z!==null&&"url"in z,O=z=>{if(typeof z=="string")return z;const pe=z.city??z.cities??z.location,He=z.country;return`${pe??"Remote"}, ${He??"Global"}`},oe=s??t.overview.officeLocations??[],ae=i??t.isFollowing??!1,Y=l||c,J=ae?"Unfollow Company":"Follow Company",Q=u??t.isSaved??!1,ee=m||p,ue=Q?"Remove from Saved":"Save Company",we=f??t.claimedStatus==="unclaimed",Z=()=>t.claimedStatus==="claimed"?e.jsxs(ge,{className:"bg-accent/10 text-accent border-accent/20",children:[e.jsx(it,{className:"w-3 h-3 mr-1"}),"Claimed"]}):null,te=[{name:"Casino Games (Slots & RNG)",category:"Game Content",description:"RNG-based casino games including slots and table games.",keywords:["slot","rng","casino game","table game","jackpot","buy bonus"],negativeKeywords:["live casino games","live casino"],priority:10},{name:"Live Casino Games",category:"Live Casino",description:"Live dealer games streamed from professional studios.",keywords:["live casino games","live dealer games","roulette games","live roulette","sic-bo","presenter"],negativeKeywords:["real-time reporting"],priority:10},{name:"iGaming Platform / PAM",category:"Platform",description:"Core iGaming platform including player accounts, wallet, and cashier.",keywords:["pam","aggregation platform","cashier","player account"],negativeKeywords:[],priority:10},{name:"Game Aggregation",category:"Aggregation",description:"Single API access to multiple game providers.",keywords:["aggregation","aggregator","single api","content hub"],negativeKeywords:[],priority:10},{name:"Bonus & Promotions Platform",category:"CRM & Engagement",description:"Bonus management, promotions, and player engagement tools.",keywords:["bonus tools","promotional tools","free spins tools","tournament","leaderboard","rewards tools","bonus features","bonus platform"],negativeKeywords:[],priority:10},{name:"Back Office & Analytics",category:"Operations",description:"Reporting, dashboards, and performance analytics.",keywords:["back office","real-time reporting","analytics","easy-to-use tools","insights"],negativeKeywords:[],priority:10},{name:"Live Casino Infrastructure",category:"Technology",description:"Hardware, streaming, and infrastructure for live casino operations.",keywords:["streaming","video streaming","Live Casino studio","professional game hosts"],negativeKeywords:[],priority:10},{name:"Payments & Payouts",category:"Payments",description:"Payment processing, deposits, and withdrawals.",keywords:["Payment processing","psp","payout","withdrawal","deposit"],negativeKeywords:[],priority:10},{name:"Compliance & Risk",category:"Compliance",description:"KYC, AML, fraud prevention, and responsible gaming.",keywords:["kyc detection","aml detection","compliance tools","fraud detection","fraud prevention","responsible gaming tools"],negativeKeywords:[],priority:10}];function ve(z,pe){var Tt;const He=pe.toLowerCase();return!(!z.keywords.some(Yt=>He.includes(Yt))||((Tt=z.negativeKeywords)==null?void 0:Tt.some(Yt=>He.includes(Yt))))}function fe(z){return z!==null}const re=[{key:"migea",name:"Malta iGaming Excellence Awards",aliases:["migea","malta igaming excellence awards","malta gaming excellence awards"]},{key:"egr",name:"EGR Awards",aliases:["egr awards","egr b2b awards","egr operator awards"]},{key:"sigma",name:"SiGMA Awards",aliases:["sigma awards","sigma igaming awards"]},{key:"ice",name:"ICE Gaming Awards",aliases:["ice gaming awards","ice awards"]}];function he(z=[]){const pe=z.map(He=>He.toLowerCase());return re.flatMap(He=>pe.find(ha=>He.aliases.some(Tt=>ha.includes(Tt)))?[{name:He.name,year:new Date().getFullYear()}]:[])}const Ae=new Set(["malta","italy","spain","netherlands","united kingdom","germany","sweden","romania","croatia","serbia","brazil"]);function Pe(z=[]){return Array.from(new Set(z.map(pe=>pe.toLowerCase()).filter(pe=>Ae.has(pe)).map(pe=>pe[0].toUpperCase()+pe.slice(1))))}const _e=(Le=(K=(V=t.webIntelligence)==null?void 0:V.signals)==null?void 0:K.evidence)==null?void 0:Le.credibility,Qe=he((_e==null?void 0:_e.awards_mentioned)??[]),st=Pe((_e==null?void 0:_e.countries_mentioned)??[]);function yt(z){return te.map(pe=>{const He=z.filter(Xt=>ve(pe,Xt));return He.length===0?null:{name:pe.name,category:pe.category,description:pe.description,keyDifferentiators:Array.from(new Set(He)),source:"derived",confidence:Math.min(1,He.length/5),priority:pe.priority}}).filter(fe).sort((pe,He)=>He.priority-pe.priority)}const rt=yt(j),Be=[...t.productsAndServices??[],...rt??[]],mt=()=>{const z=!ae;d==null||d(t.id,z),h==null||h({companyId:t.id,companySlug:t.slug,action:z?"follow":"unfollow"})},et=()=>{const z=!Q;y==null||y(t.id,z),x==null||x({companyId:t.id,companySlug:t.slug,companyName:t.name,action:z?"save":"unsave"})};return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx("section",{className:"bg-gradient-to-br from-primary via-primary to-primary-variant py-8",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("a",{href:"/companies",className:"inline-flex items-center text-primary-foreground/70 hover:text-primary-foreground mb-6 text-sm",children:[e.jsx(Ja,{className:"w-4 h-4 mr-1"})," Back to Directory"]}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsx("div",{className:"w-20 h-20 rounded-2xl bg-white/10 backdrop-blur flex items-center justify-center flex-shrink-0",children:e.jsx(gt,{className:"w-10 h-10 text-primary-foreground"})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-2",children:[e.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:t.name}),Z()]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[e.jsx(ge,{variant:"secondary",children:t.companyType}),A&&e.jsx("a",{href:L?`/groups/${L}`:"/groups",children:e.jsxs(ge,{variant:"outline",className:"border-primary-foreground/30 text-primary-foreground",children:["Part of ",A]})}),t.classification.verticals.map(z=>e.jsx(ge,{variant:"outline",className:"border-primary-foreground/30 text-primary-foreground",children:z},z))]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-primary-foreground/80 text-sm mb-4",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ct,{className:"w-4 h-4"}),t.overview.headquarters.city,", ",t.overview.headquarters.country]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(lo,{className:"w-4 h-4"}),"Founded ",t.overview.foundedYear]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Nt,{className:"w-4 h-4"}),t.overview.employeeRange," employees"]})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsxs(D,{variant:"accent",onClick:mt,disabled:Y,"aria-label":`${J} ${t.name}`,"aria-pressed":ae,"aria-busy":c,title:J,children:[c?e.jsx(ma,{className:"w-4 h-4 mr-2 animate-spin"}):ae?e.jsx(it,{className:"w-4 h-4 mr-2"}):e.jsx(vr,{className:"w-4 h-4 mr-2"}),c?"Loading":ae?"Following":"Follow"]}),e.jsxs(D,{variant:Q?"secondary":"outline",className:"border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground/10",onClick:et,disabled:ee,"aria-label":`${ue} ${t.name}`,"aria-pressed":Q,"aria-busy":p,title:ue,children:[p?e.jsx(ma,{className:"w-4 h-4 mr-2 animate-spin"}):e.jsx(ga,{className:`w-4 h-4 mr-2 ${Q?"fill-current":"fill-transparent"}`}),p?"Loading":Q?"Saved":"Save"]}),e.jsx(gR,{isClaimed:t.claimedStatus==="claimed",canClaim:we,onClaimClick:()=>w(!0)})]})]}),e.jsxs("div",{className:"flex gap-4 md:gap-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-primary-foreground",children:P}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Open Jobs"})]}),e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"text-2xl font-bold text-primary-foreground",children:[(C.profileViews30d/1e3).toFixed(1),"k"]}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Views/30d"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-primary-foreground",children:S}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Trust Signals"})]})]})]})]})}),e.jsx("section",{className:"py-6",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs(Tr,{defaultValue:"overview",className:"space-y-6",children:[e.jsxs(tr,{className:"flex-wrap h-auto gap-1 bg-secondary/50 p-1",children:[e.jsxs(Ce,{value:"overview",children:[e.jsx(Vo,{className:"w-4 h-4 mr-1.5"}),"Overview"]}),e.jsxs(Ce,{value:"products",children:[e.jsx(Fc,{className:"w-4 h-4 mr-1.5"}),"Products"]}),e.jsxs(Ce,{value:"trust",children:[e.jsx(Mr,{className:"w-4 h-4 mr-1.5"}),"Trust"]}),e.jsxs(Ce,{value:"people",children:[e.jsx(Gc,{className:"w-4 h-4 mr-1.5"}),"People"]}),e.jsxs(Ce,{value:"jobs",children:[e.jsx(nt,{className:"w-4 h-4 mr-1.5"}),"Jobs"]}),e.jsxs(Ce,{value:"news",children:[e.jsx(_a,{className:"w-4 h-4 mr-1.5"}),"News"]}),e.jsxs(Ce,{value:"events",children:[e.jsx(Cc,{className:"w-4 h-4 mr-1.5"}),"Events"]}),e.jsxs(Ce,{value:"insights",children:[e.jsx(uo,{className:"w-4 h-4 mr-1.5"}),"Insights"]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[e.jsxs(Se,{value:"overview",className:"space-y-6 mt-0",children:[e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsx(ke,{children:"About"})}),e.jsxs(de,{children:[e.jsx("p",{className:"text-muted-foreground mb-4",children:t.overview.longDescription||t.overview.shortDescription}),e.jsx("div",{className:"flex flex-wrap gap-2",children:t.classification.tags.map(z=>e.jsxs(ge,{variant:"secondary",children:["#",z]},z))})]})]}),e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsx(ke,{children:"Office Locations"})}),e.jsx(de,{children:e.jsx("div",{className:"flex flex-wrap gap-3",children:oe.map((z,pe)=>e.jsxs(ge,{variant:"outline",children:[e.jsx(ct,{className:"w-3 h-3 mr-1"}),O(z)]},pe))})})]})]}),e.jsx(Se,{value:"products",className:"space-y-4 mt-0",children:Be.map((z,pe)=>e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsx("div",{className:"flex items-start justify-between",children:e.jsxs("div",{children:[e.jsx(ke,{className:"text-lg",children:z.name}),e.jsx(ge,{variant:"secondary",className:"mt-1",children:z.category})]})})}),e.jsxs(de,{children:[e.jsx("p",{className:"text-muted-foreground mb-3",children:z.description}),e.jsx("div",{className:"flex flex-wrap gap-2",children:z.keyDifferentiators.map((He,Xt)=>e.jsxs(ge,{variant:"outline",children:[e.jsx(Wc,{className:"w-3 h-3 mr-1"}),He]},Xt))})]})]},pe))}),e.jsxs(Se,{value:"trust",className:"space-y-4 mt-0",children:[t.trustAndCompliance.licenses.length>0&&e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsxs(ke,{className:"flex items-center gap-2",children:[e.jsx(Mr,{className:"w-5 h-5 text-gaming-success"}),"Licenses"]})}),e.jsx(de,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:t.trustAndCompliance.licenses.map((z,pe)=>e.jsx(ge,{className:"bg-gaming-success/10 text-gaming-success",children:R(z)},pe))})})]}),t.trustAndCompliance.awards.length>0&&e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsxs(ke,{className:"flex items-center gap-2",children:[e.jsx(ea,{className:"w-5 h-5 text-gaming-gold"}),"Awards"]})}),e.jsx(de,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:t.trustAndCompliance.awards.map((z,pe)=>e.jsx(ge,{className:"bg-gaming-gold/10 text-gaming-gold",children:T(z)},pe))})})]}),Qe.length>0&&e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsxs(ke,{className:"flex items-center gap-2",children:[e.jsx(ea,{className:"w-5 h-5 text-gaming-gold"}),"Industry Recognition"]})}),e.jsx(de,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:Qe.map((z,pe)=>e.jsxs(ge,{variant:"outline",children:[z.name,e.jsx("span",{className:"ml-1 text-xs text-muted-foreground",children:"(inferred)"})]},pe))})})]}),st.length>0&&e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsxs(ke,{className:"flex items-center gap-2",children:[e.jsx(na,{className:"w-5 h-5 text-accent"}),"Markets Mentioned"]})}),e.jsx(de,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:st.map((z,pe)=>e.jsx(ge,{variant:"secondary",children:z},pe))})})]})]}),e.jsx(Se,{value:"jobs",className:"space-y-4 mt-0",children:e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs(ke,{children:["Open Positions (",P,")"]}),e.jsx(ge,{children:t.jobs.remotePolicy})]})}),e.jsx("div",{className:"grid gap-4 p-4",children:b.length===0?e.jsx(ce,{children:e.jsxs(de,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(xa,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No saved jobs yet"}),e.jsx(D,{variant:"link",className:"mt-2",children:"Browse Jobs"})]})}):b.map(z=>e.jsx(m9,{job:z,view:"company"},z.id))})]})}),e.jsx(Se,{value:"people",className:"mt-0",children:e.jsx(ce,{children:e.jsx(de,{className:"py-6 space-y-4",children:t.people.members.length===0?e.jsx("p",{className:"text-center text-muted-foreground",children:"Employee profiles are opt-in. No verified members yet."}):t.people.members.map((z,pe)=>e.jsxs("div",{className:"flex items-center justify-between gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:z.name}),e.jsx("p",{className:"text-sm text-muted-foreground",children:z.title})]}),z.profileUrl&&e.jsx("a",{href:z.profileUrl,target:"_blank",rel:"noreferrer",children:e.jsx(D,{size:"sm",variant:"outline",children:"View Profile"})})]},pe))})})}),e.jsx(Se,{value:"news",className:"mt-0",children:e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsxs(ke,{children:["News (",N.length,")"]})}),e.jsx(de,{className:"py-6 space-y-4",children:N.length>0?e.jsx("div",{className:"grid gap-4",children:N.map(z=>e.jsx(jC,{article:z,view:"company",onRead:()=>window.open(z.link,"_blank")},z.id))}):(Ze=(Te=t.newsAndMedia)==null?void 0:Te.pressMentions)!=null&&Ze.length?t.newsAndMedia.pressMentions.map((z,pe)=>e.jsxs("div",{className:"flex items-center justify-between gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx("span",{className:"text-sm",children:B(z)}),U(z)&&z.url&&e.jsx("a",{href:z.url,target:"_blank",rel:"noreferrer",children:e.jsx(D,{size:"sm",variant:"outline",children:"Read"})})]},pe)):e.jsx("p",{className:"text-center text-muted-foreground",children:"No recent news mentions."})})]})}),e.jsx(Se,{value:"events",className:"space-y-4 mt-0",children:q.length>0?e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsx(ke,{className:"flex items-center gap-2",children:"Upcoming Events"})}),e.jsx(de,{children:e.jsx("div",{className:"grid gap-4 p-4",children:q.map(z=>e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 p-3 m-3 rounded-xl border bg-card text-card-foreground shadow",children:[e.jsxs("div",{children:[e.jsxs("p",{className:"font-semibold text-lg",children:[z.conference," - ",z.event_year]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Stand: ",z.stand]})]}),e.jsx("a",{href:z.link,target:"_blank",rel:"noreferrer",children:e.jsx(D,{size:"sm",variant:"outline",children:"View"})})]},z._id))})})]}):t.events.upcomingEvents.map((z,pe)=>e.jsxs("div",{className:"flex items-center justify-between p-3 bg-secondary/50 rounded-lg",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold tracking-tight text-lg",children:$(z)}),e.jsxs("p",{className:"font-semibold tracking-tight text-lg",children:[z.location," • ",W(z)]})]}),t.events.bookMeetingEnabled&&e.jsx(D,{size:"sm",variant:"accent",children:"Book Meeting"})]},pe))}),e.jsx(Se,{value:"insights",className:"mt-0",children:e.jsx(ce,{children:e.jsxs(de,{className:"py-12 text-center",children:[e.jsx(uo,{className:"w-10 h-10 text-muted-foreground mx-auto mb-3"}),e.jsx("h3",{className:"font-semibold mb-2",children:"Premium Insights"}),e.jsx("p",{className:"text-muted-foreground mb-4",children:"Unlock demand trends, competitor analysis, and intent signals."}),e.jsx(D,{variant:"accent",children:"Upgrade to Access"})]})})})]}),e.jsxs("aside",{className:"space-y-4",children:[e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsx(ke,{className:"text-base",children:"Contact"})}),e.jsxs(de,{className:"space-y-3",children:[e.jsxs("a",{href:t.overview.website,target:"_blank",className:"flex items-center gap-2 text-sm text-accent hover:underline",children:[e.jsx(na,{className:"w-4 h-4"}),t.overview.website.replace(/^https?:\/\//,"")]}),((ze=t.overview.socialLinks)==null?void 0:ze.linkedin)&&e.jsxs("a",{href:t.overview.socialLinks.linkedin,target:"_blank",className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground",children:[e.jsx(qc,{className:"w-4 h-4"}),"LinkedIn"]})]})]}),e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsx(ke,{className:"text-base",children:"Similar Companies"})}),e.jsx(de,{className:"space-y-2",children:C.similarCompanies.map((z,pe)=>e.jsx("div",{className:"flex items-center gap-2 p-2 bg-secondary/50 rounded-lg text-sm",children:z},pe))})]})]})]})]})})}),e.jsx(S$,{company:t,open:k,onOpenChange:w,onClaimSubmit:v})]})},N$=({group:t})=>{var n,s;if(!t)return e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"container mx-auto px-4 py-16 text-center",children:[e.jsx(gt,{className:"w-16 h-16 text-muted-foreground mx-auto mb-4"}),e.jsx("h1",{className:"text-2xl font-bold mb-2",children:"Group Not Found"}),e.jsx("p",{className:"text-muted-foreground mb-6",children:"The group you're looking for doesn't exist."}),e.jsx("a",{href:"/companies",children:e.jsx(D,{variant:"accent",children:"Browse Companies"})})]})});const a=t.intelligenceProfile,r=((n=t.companies)==null?void 0:n.length)??0;return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx("section",{className:"bg-gradient-to-br from-primary via-primary to-primary-variant py-8",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("a",{href:"/companies",className:"inline-flex items-center text-primary-foreground/70 hover:text-primary-foreground mb-6 text-sm",children:[e.jsx(Ja,{className:"w-4 h-4 mr-1"})," Back to Directory"]}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsx("div",{className:"w-20 h-20 rounded-2xl bg-white/10 backdrop-blur flex items-center justify-center flex-shrink-0",children:e.jsx(gt,{className:"w-10 h-10 text-primary-foreground"})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-2",children:[e.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:t.name}),e.jsx(ge,{className:"bg-white/10 text-primary-foreground border-white/20",children:"Company Group"})]}),t.description&&e.jsx("p",{className:"text-primary-foreground/80 text-sm mb-4 max-w-2xl",children:t.description}),e.jsx("div",{className:"flex flex-wrap gap-2",children:t.website&&e.jsx("a",{href:t.website,target:"_blank",rel:"noreferrer",children:e.jsxs(D,{variant:"outline",className:"border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground/10",children:[e.jsx(na,{className:"w-4 h-4 mr-2"})," Visit Website"]})})})]}),a&&e.jsxs("div",{className:"flex gap-4 md:gap-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-primary-foreground",children:r}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Member Companies"})]}),e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"text-2xl font-bold text-primary-foreground",children:[(a.profileViews30d/1e3).toFixed(1),"k"]}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Views/30d"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-primary-foreground",children:a.followsCount.toLocaleString()}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Followers"})]})]})]})]})}),e.jsx("section",{className:"py-8",children:e.jsxs("div",{className:"container mx-auto px-4 space-y-6",children:[e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsx(ke,{children:"Group Overview"})}),e.jsxs(de,{className:"space-y-4",children:[t.website&&e.jsxs("div",{className:"flex items-center gap-2 text-sm text-accent",children:[e.jsx(na,{className:"w-4 h-4"}),e.jsx("a",{href:t.website,target:"_blank",rel:"noreferrer",className:"hover:underline",children:t.website.replace(/^https?:\/\//,"")})]}),t.description?e.jsx("p",{className:"text-muted-foreground",children:t.description}):e.jsx("p",{className:"text-muted-foreground",children:"No group description available yet."})]})]}),e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsx(ke,{children:"Member Companies"})}),e.jsxs(de,{className:"space-y-3",children:[r===0&&e.jsx("p",{className:"text-muted-foreground",children:"No member companies listed."}),(s=t.companies)==null?void 0:s.map(i=>{var l,d,h;const c=i.isPrimary||i.id===t.primaryCompanyId;return e.jsxs("div",{className:`flex flex-col md:flex-row md:items-center md:justify-between gap-3 rounded-lg border p-4 ${c?"border-accent/40 bg-accent/5":"border-border"}`,children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("a",{href:`/companies/${i.slug}`,className:"font-semibold hover:text-accent",children:i.name}),c&&e.jsx(ge,{className:"bg-accent/10 text-accent border-accent/20",children:"Primary"})]}),((l=i.overview)==null?void 0:l.shortDescription)&&e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:i.overview.shortDescription})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm text-muted-foreground",children:[((d=i.overview)==null?void 0:d.headquarters)&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(gt,{className:"w-4 h-4"}),i.overview.headquarters.city,", ",i.overview.headquarters.country]}),((h=i.overview)==null?void 0:h.employeeRange)&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Nt,{className:"w-4 h-4"}),i.overview.employeeRange]})]})]},i.id)})]})]}),a&&e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsx(ke,{children:"Group Intelligence"})}),e.jsxs(de,{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"rounded-lg border border-border/60 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(Lt,{className:"w-4 h-4"})," Followers"]}),e.jsx("div",{className:"text-2xl font-semibold mt-2",children:a.followsCount.toLocaleString()})]}),e.jsxs("div",{className:"rounded-lg border border-border/60 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(Ra,{className:"w-4 h-4"})," Hiring Intensity"]}),e.jsx("div",{className:"text-2xl font-semibold mt-2",children:a.hiringIntensity})]}),e.jsxs("div",{className:"rounded-lg border border-border/60 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(Nt,{className:"w-4 h-4"})," Top Viewing Countries"]}),e.jsx("div",{className:"text-sm font-medium mt-2",children:a.topViewingCountries.join(", ")||"No data"})]})]})]})]})})]})},I$=t=>{var a,r;if(t==null)return"";if(typeof t=="string"&&t.startsWith("http"))return t;if(typeof t=="string"&&t.startsWith("{"))try{const n=JSON.parse(t.replace(/'/g,'"'));return(n==null?void 0:n.url)??""}catch{return""}return typeof t=="object"?(t==null?void 0:t.url)??((r=(a=t==null?void 0:t.formats)==null?void 0:a.thumbnail)==null?void 0:r.url)??"":""},kR=t=>({profileViews30d:(t==null?void 0:t.profile_views_30d)??(t==null?void 0:t.profileViews30d)??0,followsCount:(t==null?void 0:t.follows_count)??(t==null?void 0:t.followsCount)??0,hiringIntensity:(t==null?void 0:t.hiring_intensity)??(t==null?void 0:t.hiringIntensity)??"Low",topSkillsHiring:(t==null?void 0:t.top_skills_hiring)??(t==null?void 0:t.topSkillsHiring)??[],topViewingCountries:(t==null?void 0:t.top_viewing_countries)??(t==null?void 0:t.topViewingCountries)??[],oftenComparedWith:(t==null?void 0:t.often_compared_with)??(t==null?void 0:t.oftenComparedWith)??[],similarCompanies:(t==null?void 0:t.similar_companies)??(t==null?void 0:t.similarCompanies)??[]}),A$=t=>{if(t)return{capabilitiesScore:t.capabilities_score??t.capabilitiesScore??0,credibilityScore:t.credibility_score??t.credibilityScore??0,complianceScore:t.compliance_score??t.complianceScore??0,hiringScore:t.hiring_score??t.hiringScore??0,overallScore:t.overall_score??t.overallScore??0,detectedBusinessModel:t.detected_business_model??t.detectedBusinessModel??"",detectedProducts:t.detected_products??t.detectedProducts??[],detectedMarkets:t.detected_markets??t.detectedMarkets??[]}},P$=t=>({id:String(t.id??t.company_id??""),name:t.name??"",slug:t.slug??"",companyType:t.company_type??t.companyType,overview:t.overview?{shortDescription:t.overview.short_description??t.overview.shortDescription,headquarters:t.overview.headquarters,employeeRange:t.overview.employee_range??t.overview.employeeRange}:void 0,isPrimary:t.is_primary??t.isPrimary}),_$=t=>({id:String((t==null?void 0:t.id)??(t==null?void 0:t.group_id)??""),name:(t==null?void 0:t.name)??(t==null?void 0:t.group_name)??"",slug:(t==null?void 0:t.slug)??"",website:(t==null?void 0:t.website)??"",description:(t==null?void 0:t.description)??"",primaryCompanyId:(t==null?void 0:t.primary_company_id)??(t==null?void 0:t.primaryCompanyId)??"",companies:Array.isArray(t==null?void 0:t.companies)?t.companies.map(P$):[],intelligenceProfile:kR((t==null?void 0:t.intelligence_profile)??(t==null?void 0:t.intelligenceProfile))}),R$=t=>{var a,r;return{shortDescription:(t==null?void 0:t.shortDescription)??(t==null?void 0:t.short_description)??"",longDescription:(t==null?void 0:t.longDescription)??(t==null?void 0:t.long_description),foundedYear:typeof(t==null?void 0:t.foundedYear)=="number"?t.foundedYear:0,headquarters:{city:((a=t==null?void 0:t.headquarters)==null?void 0:a.city)??"",country:((r=t==null?void 0:t.headquarters)==null?void 0:r.country)??""},officeLocations:t==null?void 0:t.officeLocations,employeeRange:(t==null?void 0:t.employeeRange)??(t==null?void 0:t.employee_range)??"",publicCompany:t==null?void 0:t.publicCompany,stockTicker:t==null?void 0:t.stockTicker,website:(t==null?void 0:t.website)??"",socialLinks:t==null?void 0:t.socialLinks}},T$=t=>({searchImpressions:(t==null?void 0:t.searchImpressions)??0,profileClicks:(t==null?void 0:t.profileClicks)??0,externalClicks:(t==null?void 0:t.externalClicks)??0}),q$=t=>{var a,r,n;return{...t,overview:R$(t.overview),logo:I$(t.logo),jobs:D$(t.jobs),group:_$(t.group),groupId:t.groupId??t.group_id??((a=t.group)==null?void 0:a.id),groupName:t.groupName??t.group_name??((r=t.group)==null?void 0:r.name),groupSlug:t.group_slug??t.groupSlug??((n=t.group)==null?void 0:n.slug),signalsAndInsights:kR(t.signalsAndInsights??t.signals_and_insights??t.signalsAndInsights)??t.signalsAndInsights,visibilityMetrics:T$(t.visibilityMetrics),intelligenceProfile:A$(t.intelligence_profile??t.intelligenceProfile),classification:z$(t.classification)}},D$=t=>({openRoles:Array.isArray(t==null?void 0:t.openRoles)||typeof(t==null?void 0:t.openRoles)=="number"?t.openRoles:[],departmentsHiring:Array.isArray(t==null?void 0:t.departmentsHiring)?t.departmentsHiring:[],locationsHiring:Array.isArray(t==null?void 0:t.locationsHiring)?t.locationsHiring:[],remotePolicy:(t==null?void 0:t.remotePolicy)??""}),z$=t=>({businessModel:(t==null?void 0:t.businessModel)??(t==null?void 0:t.business_model)??"",verticals:Array.isArray(t==null?void 0:t.verticals)?t.verticals:[],productCategories:Array.isArray(t==null?void 0:t.productCategories)?t.productCategories:[],tags:((t==null?void 0:t.tags)??[]).map(a=>typeof a=="string"?a:a.title??a.tag??"")}),E$=t=>({count:(t==null?void 0:t.count)??0,page:(t==null?void 0:t.page)??1,pageSize:(t==null?void 0:t.page_size)??(t==null?void 0:t.pageSize)??0,totalPages:(t==null?void 0:t.total_pages)??(t==null?void 0:t.totalPages)??1,results:Array.isArray(t==null?void 0:t.results)?t.results.map(q$):[],filterOptions:(t==null?void 0:t.filter_options)??(t==null?void 0:t.filterOptions)}),F$=(t,a)=>{const{buildUrl:r,initialData:n}=a,[s,i]=M.useState(n??null),[c,l]=M.useState(!n),d=M.useMemo(()=>r(t),[r,t]);return M.useEffect(()=>{let h=!1;return l(!0),fetch(d).then(u=>{if(!u.ok)throw new Error(`Failed to load companies: ${u.status}`);return u.json()}).then(u=>{h||i(E$(u))}).catch(u=>{console.error(u)}).finally(()=>{h||l(!1)}),()=>{h=!0}},[d]),{data:s,loading:c}},CC={query:"",filters:{},sort:"popularity_desc",page:1,pageSize:50,scope:"company"},Mt=(t,a)=>{var r;return((r=t.get(a))==null?void 0:r.split(",").filter(Boolean))??[]},hN=(t,a)=>{const r=Number(t);return Number.isFinite(r)&&r>0?r:a},O$=t=>{var r,n,s,i,c,l,d;const a=new URLSearchParams;return t.query&&a.set("query",t.query),t.sort&&a.set("sort",t.sort),t.scope&&t.scope!=="company"&&a.set("scope",t.scope),t.segment&&a.set("segment",t.segment),t.subcategory&&a.set("subcategory",t.subcategory),t.region&&a.set("region",t.region),a.set("page",String(t.page)),a.set("pageSize",String(t.pageSize)),t.filters.companyType&&a.set("filters[companyType]",t.filters.companyType),(r=t.filters.country)!=null&&r.length&&a.set("filters[country]",t.filters.country.join(",")),(n=t.filters.products)!=null&&n.length&&a.set("filters[products]",t.filters.products.join(",")),(s=t.filters.employees)!=null&&s.length&&a.set("filters[employees]",t.filters.employees.join(",")),(i=t.filters.verticals)!=null&&i.length&&a.set("filters[verticals]",t.filters.verticals.join(",")),(c=t.filters.productCategories)!=null&&c.length&&a.set("filters[productCategories]",t.filters.productCategories.join(",")),(l=t.filters.openRoles)!=null&&l.length&&a.set("filters[openRoles]",t.filters.openRoles.join(",")),(d=t.filters.yearsActive)!=null&&d.length&&a.set("filters[yearsActive]",t.filters.yearsActive.join(",")),t.filters.hiringNow&&a.set("filters[hiringNow]","true"),t.filters.claimedOnly&&a.set("filters[claimedOnly]","true"),t.filters.hasLicenses&&a.set("filters[hasLicenses]","true"),t.filters.hasAwards&&a.set("filters[hasAwards]","true"),a.toString()},H$=(t,a=CC)=>{const r=new URLSearchParams(t),n=r.get("scope"),s=n==="group"||n==="company"?n:a.scope,i=r.get("query")??r.get("search")??a.query??"",c=r.get("pageSize")??r.get("page_size");return{...a,query:i,sort:r.get("sort")??a.sort,page:hN(r.get("page"),a.page),pageSize:hN(c,a.pageSize),scope:s,segment:r.get("segment")??a.segment,subcategory:r.get("subcategory")??a.subcategory,region:r.get("region")??a.region,filters:{companyType:r.get("filters[companyType]")??r.get("companyType")??a.filters.companyType,country:Mt(r,"filters[country]").concat(Mt(r,"country")),products:Mt(r,"filters[products]").concat(Mt(r,"products")),employees:Mt(r,"filters[employees]").concat(Mt(r,"employees")).concat(Mt(r,"employeeRanges")),verticals:Mt(r,"filters[verticals]").concat(Mt(r,"verticals")),productCategories:Mt(r,"filters[productCategories]").concat(Mt(r,"productCategories")),openRoles:Mt(r,"filters[openRoles]").concat(Mt(r,"openRoles")),yearsActive:Mt(r,"filters[yearsActive]").concat(Mt(r,"yearsActive")),hiringNow:["true","1","yes"].includes(r.get("filters[hiringNow]")??r.get("hiringNow")??""),claimedOnly:["true","1","yes"].includes(r.get("filters[claimedOnly]")??r.get("claimedOnly")??""),hasLicenses:["true","1","yes"].includes(r.get("filters[hasLicenses]")??r.get("hasLicenses")??""),hasAwards:["true","1","yes"].includes(r.get("filters[hasAwards]")??r.get("hasAwards")??"")}}},V$=t=>({...fR,search:t.query??"",companyType:t.filters.companyType??"",verticals:t.filters.verticals??[],productCategories:t.filters.productCategories??[],employeeRanges:t.filters.employees??[],products:t.filters.products??[],openRolesRanges:t.filters.openRoles??[],yearsActiveRanges:t.filters.yearsActive??[],hiringNow:t.filters.hiringNow??!1,scope:t.scope,claimedOnly:t.filters.claimedOnly??!1,hasLicenses:t.filters.hasLicenses??!1,hasAwards:t.filters.hasAwards??!1}),B$=t=>({companyType:t.companyType||void 0,verticals:t.verticals.length?t.verticals:void 0,productCategories:t.productCategories.length?t.productCategories:void 0,employees:t.employeeRanges.length?t.employeeRanges:void 0,products:t.products.length?t.products:void 0,openRoles:t.openRolesRanges.length?t.openRolesRanges:void 0,yearsActive:t.yearsActiveRanges.length?t.yearsActiveRanges:void 0,hiringNow:t.hiringNow||void 0,claimedOnly:t.claimedOnly||void 0,hasLicenses:t.hasLicenses||void 0,hasAwards:t.hasAwards||void 0}),$$={companyTypes:[],verticals:[],productCategories:[],employeeRanges:[],products:[],openRolesRanges:[],yearsActiveRanges:[]},U$=({initialData:t,initialFilterOptions:a,buildUrl:r,initialQuery:n,followDisabled:s=!1,followLoading:i=!1,onToggleFollow:c,onFollowAction:l,saveDisabled:d=!1,saveLoading:h=!1,onToggleSave:u,onSaveAction:p})=>{const[m,y]=M.useState(()=>n||(typeof window>"u"?CC:H$(window.location.search,CC))),[x,f]=M.useState("list"),[v,k]=M.useState(a),{data:w,loading:j}=F$(m,{buildUrl:r,initialData:t}),S=w??t,C=j&&!w,A=M.useMemo(()=>V$(m),[m]);M.useEffect(()=>{if(typeof window>"u")return;const R=O$(m),T=R?`${window.location.pathname}?${R}`:window.location.pathname;window.history.replaceState(null,"",T)},[m]),M.useEffect(()=>{w!=null&&w.filterOptions&&k({...$$,...w.filterOptions})},[w]);const L=R=>{y(T=>({...T,query:R.search,scope:R.scope,filters:B$(R),page:1}))},b=()=>{L(fR)},N=R=>{y(T=>({...T,page:R}))},q=R=>{y(T=>({...T,pageSize:R,page:1}))},P=()=>{f(R=>R==="grid"?"list":"grid")};return e.jsx(xR,{companies:S.results,loading:C,page:S.page,pageSize:S.pageSize||m.pageSize,totalCount:S.count,totalPages:S.totalPages,onPageChange:N,onPageSizeChange:q,filters:A,filterOptions:v,onFiltersChange:L,onClearFilters:b,viewMode:x,onViewModeChange:P,followDisabled:s,followLoading:i,onToggleFollow:c,onFollowAction:l,saveDisabled:d,saveLoading:h,onToggleSave:u,onSaveAction:p})};var SC={exports:{}},VS={};function G$(t){return t&&t.__esModule?t:{default:t}}VS._=G$;var vR={};function wR(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,r=new WeakMap;return(wR=function(n){return n?r:a})(t)}function W$(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var r=wR(a);if(r&&r.has(t))return r.get(t);var n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)){var c=s?Object.getOwnPropertyDescriptor(t,i):null;c&&(c.get||c.set)?Object.defineProperty(n,i,c):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}vR._=W$;var Vj={},uN;function Z$(){return uN||(uN=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=VS._(M).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(Vj)),Vj}var Al={exports:{}},pN;function J$(){return pN||(pN=1,function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"setAttributesFromProps",{enumerable:!0,get:function(){return i}});const r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},n=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function s(c){return["async","defer","noModule"].includes(c)}function i(c,l){for(const[d,h]of Object.entries(l)){if(!l.hasOwnProperty(d)||n.includes(d)||h===void 0)continue;const u=r[d]||d.toLowerCase();c.tagName==="SCRIPT"&&s(u)?c[u]=!!h:c.setAttribute(u,String(h)),(h===!1||c.tagName==="SCRIPT"&&s(u)&&(!h||h==="false"))&&(c.setAttribute(u,""),c.removeAttribute(u))}}(typeof a.default=="function"||typeof a.default=="object"&&a.default!==null)&&typeof a.default.__esModule>"u"&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)}(Al,Al.exports)),Al.exports}var Pl={exports:{}},yN;function X$(){return yN||(yN=1,function(t,a){Object.defineProperty(a,"__esModule",{value:!0});function r(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}r(a,{cancelIdleCallback:function(){return s},requestIdleCallback:function(){return n}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let c=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-c))}})},1)},s=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(i){return clearTimeout(i)};(typeof a.default=="function"||typeof a.default=="object"&&a.default!==null)&&typeof a.default.__esModule>"u"&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)}(Pl,Pl.exports)),Pl.exports}(function(t,a){"use client";Object.defineProperty(a,"__esModule",{value:!0});function r(C,A){for(var L in A)Object.defineProperty(C,L,{enumerable:!0,get:A[L]})}r(a,{default:function(){return S},handleClientScriptLoad:function(){return f},initScriptLoader:function(){return w}});const n=VS,s=vR,i=e,c=n._(LC),l=s._(M),d=Z$(),h=J$(),u=X$(),p=new Map,m=new Set,y=C=>{if(c.default.preinit){C.forEach(A=>{c.default.preinit(A,{as:"style"})});return}if(typeof window<"u"){let A=document.head;C.forEach(L=>{let b=document.createElement("link");b.type="text/css",b.rel="stylesheet",b.href=L,A.appendChild(b)})}},x=C=>{const{src:A,id:L,onLoad:b=()=>{},onReady:N=null,dangerouslySetInnerHTML:q,children:P="",strategy:R="afterInteractive",onError:T,stylesheets:$}=C,W=L||A;if(W&&m.has(W))return;if(p.has(A)){m.add(W),p.get(A).then(b,T);return}const B=()=>{N&&N(),m.add(W)},U=document.createElement("script"),O=new Promise((oe,ae)=>{U.addEventListener("load",function(Y){oe(),b&&b.call(this,Y),B()}),U.addEventListener("error",function(Y){ae(Y)})}).catch(function(oe){T&&T(oe)});q?(U.innerHTML=q.__html||"",B()):P?(U.textContent=typeof P=="string"?P:Array.isArray(P)?P.join(""):"",B()):A&&(U.src=A,p.set(A,O)),(0,h.setAttributesFromProps)(U,C),R==="worker"&&U.setAttribute("type","text/partytown"),U.setAttribute("data-nscript",R),$&&y($),document.body.appendChild(U)};function f(C){const{strategy:A="afterInteractive"}=C;A==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>x(C))}):x(C)}function v(C){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>x(C)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>x(C))})}function k(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(A=>{const L=A.id||A.getAttribute("src");m.add(L)})}function w(C){C.forEach(f),k()}function j(C){const{id:A,src:L="",onLoad:b=()=>{},onReady:N=null,strategy:q="afterInteractive",onError:P,stylesheets:R,...T}=C,{updateScripts:$,scripts:W,getIsSsr:B,appDir:U,nonce:O}=(0,l.useContext)(d.HeadManagerContext),oe=(0,l.useRef)(!1);(0,l.useEffect)(()=>{const Y=A||L;oe.current||(N&&Y&&m.has(Y)&&N(),oe.current=!0)},[N,A,L]);const ae=(0,l.useRef)(!1);if((0,l.useEffect)(()=>{ae.current||(q==="afterInteractive"?x(C):q==="lazyOnload"&&v(C),ae.current=!0)},[C,q]),(q==="beforeInteractive"||q==="worker")&&($?(W[q]=(W[q]||[]).concat([{id:A,src:L,onLoad:b,onReady:N,onError:P,...T}]),$(W)):B&&B()?m.add(A||L):B&&!B()&&x(C)),U){if(R&&R.forEach(Y=>{c.default.preinit(Y,{as:"style"})}),q==="beforeInteractive")return L?(c.default.preload(L,T.integrity?{as:"script",integrity:T.integrity,nonce:O,crossOrigin:T.crossOrigin}:{as:"script",nonce:O,crossOrigin:T.crossOrigin}),(0,i.jsx)("script",{nonce:O,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([L,{...T,id:A}])+")"}})):(T.dangerouslySetInnerHTML&&(T.children=T.dangerouslySetInnerHTML.__html,delete T.dangerouslySetInnerHTML),(0,i.jsx)("script",{nonce:O,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...T,id:A}])+")"}}));q==="afterInteractive"&&L&&c.default.preload(L,T.integrity?{as:"script",integrity:T.integrity,nonce:O,crossOrigin:T.crossOrigin}:{as:"script",nonce:O,crossOrigin:T.crossOrigin})}return null}Object.defineProperty(j,"__nextScript",{value:!0});const S=j;(typeof a.default=="function"||typeof a.default=="object"&&a.default!==null)&&typeof a.default.__esModule>"u"&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)})(SC,SC.exports);var Y$=SC.exports,K$=Y$;const Q$=CT(K$),eU=`
|
|
7825
|
+
*/var HL;function HO(){return HL||(HL=1,process.env.NODE_ENV!=="production"&&function(){function t(y,x){return y===x&&(y!==0||1/y===1/x)||y!==y&&x!==x}function a(y,x){u||s.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var f=x();if(!p){var v=x();i(f,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}v=c({inst:{value:f,getSnapshot:x}});var k=v[0].inst,w=v[1];return d(function(){k.value=f,k.getSnapshot=x,r(k)&&w({inst:k})},[y,f,x]),l(function(){return r(k)&&w({inst:k}),y(function(){r(k)&&w({inst:k})})},[y]),h(f),f}function r(y){var x=y.getSnapshot;y=y.value;try{var f=x();return!i(y,f)}catch{return!0}}function n(y,x){return x()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=M,i=typeof Object.is=="function"?Object.is:t,c=s.useState,l=s.useEffect,d=s.useLayoutEffect,h=s.useDebugValue,u=!1,p=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:a;Ej.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Ej}process.env.NODE_ENV==="production"?yC.exports=OO():yC.exports=HO();var VO=yC.exports;function BO(){return VO.useSyncExternalStore($O,()=>!0,()=>!1)}function $O(){return()=>{}}var kS="Avatar",[UO,KG]=DO(kS),[GO,IP]=UO(kS),AP=g.forwardRef((t,a)=>{const{__scopeAvatar:r,...n}=t,[s,i]=g.useState("idle");return e.jsx(GO,{scope:r,imageLoadingStatus:s,onImageLoadingStatusChange:i,children:e.jsx(gS.span,{...n,ref:a})})});AP.displayName=kS;var PP="AvatarImage",_P=g.forwardRef((t,a)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:s=()=>{},...i}=t,c=IP(PP,r),l=WO(n,i),d=EO(h=>{s(h),c.onImageLoadingStatusChange(h)});return pC(()=>{l!=="idle"&&d(l)},[l,d]),l==="loaded"?e.jsx(gS.img,{...i,ref:a,src:n}):null});_P.displayName=PP;var RP="AvatarFallback",TP=g.forwardRef((t,a)=>{const{__scopeAvatar:r,delayMs:n,...s}=t,i=IP(RP,r),[c,l]=g.useState(n===void 0);return g.useEffect(()=>{if(n!==void 0){const d=window.setTimeout(()=>l(!0),n);return()=>window.clearTimeout(d)}},[n]),c&&i.imageLoadingStatus!=="loaded"?e.jsx(gS.span,{...s,ref:a}):null});TP.displayName=RP;function VL(t,a){return t?a?(t.src!==a&&(t.src=a),t.complete&&t.naturalWidth>0?"loaded":"loading"):"error":"idle"}function WO(t,{referrerPolicy:a,crossOrigin:r}){const n=BO(),s=g.useRef(null),i=n?(s.current||(s.current=new window.Image),s.current):null,[c,l]=g.useState(()=>VL(i,t));return pC(()=>{l(VL(i,t))},[i,t]),pC(()=>{const d=p=>()=>{l(p)};if(!i)return;const h=d("loaded"),u=d("error");return i.addEventListener("load",h),i.addEventListener("error",u),a&&(i.referrerPolicy=a),typeof r=="string"&&(i.crossOrigin=r),()=>{i.removeEventListener("load",h),i.removeEventListener("error",u)}},[i,r,a]),c}var qP=AP,DP=_P,zP=TP;const EP=g.forwardRef(({className:t,...a},r)=>e.jsx(qP,{ref:r,className:me("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t),...a}));EP.displayName=qP.displayName;const FP=g.forwardRef(({className:t,...a},r)=>e.jsx(DP,{ref:r,className:me("aspect-square h-full w-full",t),...a}));FP.displayName=DP.displayName;const OP=g.forwardRef(({className:t,...a},r)=>e.jsx(zP,{ref:r,className:me("flex h-full w-full items-center justify-center rounded-full bg-muted",t),...a}));OP.displayName=zP.displayName;const ZO=D9("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-yellow-200/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ge({className:t,variant:a,...r}){return e.jsx("div",{className:me(ZO({variant:a}),t),...r})}function BL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function JO(...t){return a=>{let r=!1;const n=t.map(s=>{const i=BL(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():BL(t[s],null)}}}}var XO=Symbol.for("react.lazy"),S9=g[" use ".trim().toString()];function YO(t){return typeof t=="object"&&t!==null&&"then"in t}function HP(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===XO&&"_payload"in t&&YO(t._payload)}function KO(t){const a=QO(t),r=g.forwardRef((n,s)=>{let{children:i,...c}=n;HP(i)&&typeof S9=="function"&&(i=S9(i._payload));const l=g.Children.toArray(i),d=l.find(tH);if(d){const h=d.props.children,u=l.map(p=>p===d?g.Children.count(h)>1?g.Children.only(null):g.isValidElement(h)?h.props.children:null:p);return e.jsx(a,{...c,ref:s,children:g.isValidElement(h)?g.cloneElement(h,void 0,u):null})}return e.jsx(a,{...c,ref:s,children:i})});return r.displayName=`${t}.Slot`,r}function QO(t){const a=g.forwardRef((r,n)=>{let{children:s,...i}=r;if(HP(s)&&typeof S9=="function"&&(s=S9(s._payload)),g.isValidElement(s)){const c=rH(s),l=aH(i,s.props);return s.type!==g.Fragment&&(l.ref=n?JO(n,c):c),g.cloneElement(s,l)}return g.Children.count(s)>1?g.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var eH=Symbol("radix.slottable");function tH(t){return g.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===eH}function aH(t,a){const r={...a};for(const n in a){const s=t[n],i=a[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...l)=>{const d=i(...l);return s(...l),d}:s&&(r[n]=s):n==="style"?r[n]={...s,...i}:n==="className"&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...t,...r}}function rH(t){var n,s;let a=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var nH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],sH=nH.reduce((t,a)=>{const r=KO(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),iH="Separator",$L="horizontal",oH=["horizontal","vertical"],VP=g.forwardRef((t,a)=>{const{decorative:r,orientation:n=$L,...s}=t,i=cH(n)?n:$L,l=r?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return e.jsx(sH.div,{"data-orientation":i,...l,...s,ref:a})});VP.displayName=iH;function cH(t){return oH.includes(t)}var BP=VP;const p9=g.forwardRef(({className:t,orientation:a="horizontal",decorative:r=!0,...n},s)=>e.jsx(BP,{ref:s,decorative:r,orientation:a,className:me("shrink-0 bg-border",a==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t),...n}));p9.displayName=BP.displayName;const lH=({candidateData:t})=>{var l;const[a,r]=M.useState(!1),{profileData:n,first_name:s,last_name:i}=t,c=`${s[0]}${i[0]}`;return e.jsxs("div",{className:"min-h-screen bg-muted/30",children:[e.jsx("header",{className:"bg-card border-b border-border sticky top-0 z-50",children:e.jsx("div",{className:"container mx-auto px-4 py-3",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("a",{href:"/jobs",className:"flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors",children:[e.jsx(fr,{className:"w-5 h-5"}),e.jsx("span",{className:"font-medium",children:"Back to Search"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs(D,{variant:"outline",size:"sm",onClick:()=>r(!a),children:[e.jsx(ga,{className:`w-4 h-4 mr-2 ${a?"fill-accent text-accent":""}`}),a?"Saved":"Save"]}),e.jsxs(D,{variant:"outline",size:"sm",children:[e.jsx(po,{className:"w-4 h-4 mr-2"}),"Share"]}),e.jsxs(D,{variant:"accent",size:"sm",children:[e.jsx(wr,{className:"w-4 h-4 mr-2"}),"Contact"]})]})]})})}),e.jsx("div",{className:"bg-gradient-to-r from-primary via-primary/90 to-accent/80 h-32 md:h-48"}),e.jsx("div",{className:"container mx-auto px-4 -mt-16 md:-mt-20 pb-12",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[e.jsx(ce,{className:"overflow-visible",children:e.jsx(de,{className:"pt-0",children:e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsx("div",{className:"-mt-12 md:-mt-16",children:e.jsxs(EP,{className:"w-28 h-28 md:w-36 md:h-36 border-4 border-card shadow-lg",children:[e.jsx(FP,{src:""}),e.jsx(OP,{className:"bg-gradient-to-br from-accent to-accent/80 text-white text-3xl md:text-4xl font-bold",children:c})]})}),e.jsx("div",{className:"flex-1 pt-2 md:pt-6",children:e.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-foreground",children:n.personalDetails.fullName}),e.jsx("p",{className:"text-lg text-muted-foreground mt-1",children:"Business / Data Analyst"}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 mt-3 text-sm text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(ct,{className:"w-4 h-4 text-accent"}),n.personalDetails.location]}),e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(na,{className:"w-4 h-4 text-accent"}),n.personalDetails.nationality]})]})]}),e.jsxs("div",{className:"flex gap-6 text-center",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-2xl font-bold text-accent",children:"15+"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"Years Exp."})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-2xl font-bold text-accent",children:"5"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"Roles"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-2xl font-bold text-accent",children:"3"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"Languages"})]})]})]})})]})})}),e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsxs(ke,{className:"flex items-center gap-2",children:[e.jsx(Jo,{className:"w-5 h-5 text-accent"}),"About"]})}),e.jsx(de,{children:e.jsx("p",{className:"text-muted-foreground leading-relaxed",children:n.personalDetails.summary})})]}),e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsxs(ke,{className:"flex items-center gap-2",children:[e.jsx(nt,{className:"w-5 h-5 text-accent"}),"Experience"]})}),e.jsx(de,{className:"space-y-6",children:n.workExperience.map((d,h)=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("div",{className:"w-12 h-12 rounded-lg bg-muted flex items-center justify-center",children:e.jsx(gt,{className:"w-6 h-6 text-accent"})})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-1",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground",children:d.title}),e.jsx("p",{className:"text-accent font-medium",children:d.company})]}),e.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-muted-foreground whitespace-nowrap",children:[e.jsx(lo,{className:"w-4 h-4"}),d.period]})]}),d.location&&e.jsxs("p",{className:"text-sm text-muted-foreground mt-1 flex items-center gap-1",children:[e.jsx(ct,{className:"w-3 h-3"}),d.location]}),d.summary&&e.jsx("p",{className:"text-sm text-muted-foreground mt-3 leading-relaxed",children:d.summary}),d.tags&&d.tags.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 mt-3",children:d.tags.map(u=>e.jsx(ge,{variant:"secondary",className:"text-xs",children:u},u))})]})]}),h<n.workExperience.length-1&&e.jsx(p9,{className:"mt-6"})]},d.id))})]}),e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsxs(ke,{className:"flex items-center gap-2",children:[e.jsx(kr,{className:"w-5 h-5 text-accent"}),"Education"]})}),e.jsx(de,{className:"space-y-6",children:n.education.map((d,h)=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("div",{className:"w-12 h-12 rounded-lg bg-muted flex items-center justify-center",children:e.jsx(kr,{className:"w-6 h-6 text-accent"})})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold text-foreground",children:d.degree}),e.jsx("p",{className:"text-accent font-medium",children:d.institution}),e.jsx(ge,{variant:"outline",className:"mt-2 text-xs",children:d.level})]})]}),h<n.education.length-1&&e.jsx(p9,{className:"mt-6"})]},h))})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs(ce,{className:"sticky top-20",children:[e.jsx(xe,{children:e.jsx(ke,{className:"text-lg",children:"Contact Information"})}),e.jsxs(de,{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-accent/10 flex items-center justify-center",children:e.jsx(sa,{className:"w-5 h-5 text-accent"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Email"}),e.jsx("p",{className:"text-sm font-medium truncate",children:n.personalDetails.email})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-accent/10 flex items-center justify-center",children:e.jsx(br,{className:"w-5 h-5 text-accent"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Phone"}),e.jsx("p",{className:"text-sm font-medium",children:n.personalDetails.phone})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-accent/10 flex items-center justify-center",children:e.jsx(ct,{className:"w-5 h-5 text-accent"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Location"}),e.jsx("p",{className:"text-sm font-medium",children:n.personalDetails.location})]})]}),e.jsx(p9,{}),e.jsxs(D,{variant:"accent",className:"w-full",children:[e.jsx(wr,{className:"w-4 h-4 mr-2"}),"Send Message"]}),((l=n.resume)==null?void 0:l.url)&&e.jsxs(D,{variant:"outline",className:"w-full",children:[e.jsx(Nc,{className:"w-4 h-4 mr-2"}),"Download Resume"]})]})]}),e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsxs(ke,{className:"flex items-center gap-2 text-lg",children:[e.jsx(ea,{className:"w-5 h-5 text-accent"}),"Skills"]})}),e.jsx(de,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:n.skills.map(d=>e.jsx(ge,{variant:"secondary",className:"px-3 py-1",children:d},d))})})]}),e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsxs(ke,{className:"flex items-center gap-2 text-lg",children:[e.jsx(_c,{className:"w-5 h-5 text-accent"}),"Languages"]})}),e.jsx(de,{className:"space-y-3",children:n.languages.map(d=>e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"font-medium text-foreground",children:d.name}),e.jsx(ge,{variant:"outline",className:"text-xs",children:d.proficiency})]},d.name))})]})]})]})})]})};function UL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function dH(...t){return a=>{let r=!1;const n=t.map(s=>{const i=UL(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():UL(t[s],null)}}}}function vS(...t){return g.useCallback(dH(...t),t)}function hH(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:m,children:y,...x}=p,f=((k=m==null?void 0:m[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:y})};h.displayName=i+"Provider";function u(p,m){var f;const y=((f=m==null?void 0:m[t])==null?void 0:f[d])||l,x=g.useContext(y);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,uH(s,...a)]}function uH(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}function GL(t,a,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}var mC=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},pH=g[" useInsertionEffect ".trim().toString()]||mC;function yH({prop:t,defaultProp:a,onChange:r=()=>{},caller:n}){const[s,i,c]=mH({defaultProp:a,onChange:r}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,n])}const h=g.useCallback(u=>{var p;if(l){const m=fH(u)?u(t):u;m!==t&&((p=c.current)==null||p.call(c,m))}else i(u)},[l,t,i,c]);return[d,h]}function mH({defaultProp:t,onChange:a}){const[r,n]=g.useState(t),s=g.useRef(r),i=g.useRef(a);return pH(()=>{i.current=a},[a]),g.useEffect(()=>{var c;s.current!==r&&((c=i.current)==null||c.call(i,r),s.current=r)},[r,s]),[r,n,i]}function fH(t){return typeof t=="function"}function wS(t){const a=g.useRef({value:t,previous:t});return g.useMemo(()=>(a.current.value!==t&&(a.current.previous=a.current.value,a.current.value=t),a.current.previous),[t])}var xH=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{};function bS(t){const[a,r]=g.useState(void 0);return xH(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let c,l;if("borderBoxSize"in i){const d=i.borderBoxSize,h=Array.isArray(d)?d[0]:d;c=h.inlineSize,l=h.blockSize}else c=t.offsetWidth,l=t.offsetHeight;r({width:c,height:l})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),a}function gH(t,a){return g.useReducer((r,n)=>a[r][n]??r,t)}var $P=t=>{const{present:a,children:r}=t,n=kH(a),s=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),i=vS(n.ref,vH(s));return typeof r=="function"||n.isPresent?g.cloneElement(s,{ref:i}):null};$P.displayName="Presence";function kH(t){const[a,r]=g.useState(),n=g.useRef(null),s=g.useRef(t),i=g.useRef("none"),c=t?"mounted":"unmounted",[l,d]=gH(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=Ll(n.current);i.current=l==="mounted"?h:"none"},[l]),mC(()=>{const h=n.current,u=s.current;if(u!==t){const m=i.current,y=Ll(h);t?d("MOUNT"):y==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&m!==y?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),mC(()=>{if(a){let h;const u=a.ownerDocument.defaultView??window,p=y=>{const f=Ll(n.current).includes(CSS.escape(y.animationName));if(y.target===a&&f&&(d("ANIMATION_END"),!s.current)){const v=a.style.animationFillMode;a.style.animationFillMode="forwards",h=u.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=v)})}},m=y=>{y.target===a&&(i.current=Ll(n.current))};return a.addEventListener("animationstart",m),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{u.clearTimeout(h),a.removeEventListener("animationstart",m),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{n.current=h?getComputedStyle(h):null,r(h)},[])}}function Ll(t){return(t==null?void 0:t.animationName)||"none"}function vH(t){var n,s;let a=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var wH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],MS=wH.reduce((t,a)=>{const r=at(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),Q9="Checkbox",[bH,QG]=hH(Q9),[MH,jS]=bH(Q9);function jH(t){const{__scopeCheckbox:a,checked:r,children:n,defaultChecked:s,disabled:i,form:c,name:l,onCheckedChange:d,required:h,value:u="on",internal_do_not_use_render:p}=t,[m,y]=yH({prop:r,defaultProp:s??!1,onChange:d,caller:Q9}),[x,f]=g.useState(null),[v,k]=g.useState(null),w=g.useRef(!1),j=x?!!c||!!x.closest("form"):!0,S={checked:m,disabled:i,setChecked:y,control:x,setControl:f,name:l,form:c,value:u,hasConsumerStoppedPropagationRef:w,required:h,defaultChecked:Lr(s)?!1:s,isFormControl:j,bubbleInput:v,setBubbleInput:k};return e.jsx(MH,{scope:a,...S,children:CH(p)?p(S):n})}var UP="CheckboxTrigger",GP=g.forwardRef(({__scopeCheckbox:t,onKeyDown:a,onClick:r,...n},s)=>{const{control:i,value:c,disabled:l,checked:d,required:h,setControl:u,setChecked:p,hasConsumerStoppedPropagationRef:m,isFormControl:y,bubbleInput:x}=jS(UP,t),f=vS(s,u),v=g.useRef(d);return g.useEffect(()=>{const k=i==null?void 0:i.form;if(k){const w=()=>p(v.current);return k.addEventListener("reset",w),()=>k.removeEventListener("reset",w)}},[i,p]),e.jsx(MS.button,{type:"button",role:"checkbox","aria-checked":Lr(d)?"mixed":d,"aria-required":h,"data-state":YP(d),"data-disabled":l?"":void 0,disabled:l,value:c,...n,ref:f,onKeyDown:GL(a,k=>{k.key==="Enter"&&k.preventDefault()}),onClick:GL(r,k=>{p(w=>Lr(w)?!0:!w),x&&y&&(m.current=k.isPropagationStopped(),m.current||k.stopPropagation())})})});GP.displayName=UP;var CS=g.forwardRef((t,a)=>{const{__scopeCheckbox:r,name:n,checked:s,defaultChecked:i,required:c,disabled:l,value:d,onCheckedChange:h,form:u,...p}=t;return e.jsx(jH,{__scopeCheckbox:r,checked:s,defaultChecked:i,disabled:l,required:c,onCheckedChange:h,name:n,form:u,value:d,internal_do_not_use_render:({isFormControl:m})=>e.jsxs(e.Fragment,{children:[e.jsx(GP,{...p,ref:a,__scopeCheckbox:r}),m&&e.jsx(XP,{__scopeCheckbox:r})]})})});CS.displayName=Q9;var WP="CheckboxIndicator",ZP=g.forwardRef((t,a)=>{const{__scopeCheckbox:r,forceMount:n,...s}=t,i=jS(WP,r);return e.jsx($P,{present:n||Lr(i.checked)||i.checked===!0,children:e.jsx(MS.span,{"data-state":YP(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:a,style:{pointerEvents:"none",...t.style}})})});ZP.displayName=WP;var JP="CheckboxBubbleInput",XP=g.forwardRef(({__scopeCheckbox:t,...a},r)=>{const{control:n,hasConsumerStoppedPropagationRef:s,checked:i,defaultChecked:c,required:l,disabled:d,name:h,value:u,form:p,bubbleInput:m,setBubbleInput:y}=jS(JP,t),x=vS(r,y),f=wS(i),v=bS(n);g.useEffect(()=>{const w=m;if(!w)return;const j=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(j,"checked").set,A=!s.current;if(f!==i&&C){const L=new Event("click",{bubbles:A});w.indeterminate=Lr(i),C.call(w,Lr(i)?!1:i),w.dispatchEvent(L)}},[m,f,i,s]);const k=g.useRef(Lr(i)?!1:i);return e.jsx(MS.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??k.current,required:l,disabled:d,name:h,value:u,form:p,...a,tabIndex:-1,ref:x,style:{...a.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});XP.displayName=JP;function CH(t){return typeof t=="function"}function Lr(t){return t==="indeterminate"}function YP(t){return Lr(t)?"indeterminate":t?"checked":"unchecked"}const Dt=g.forwardRef(({className:t,...a},r)=>e.jsx(CS,{ref:r,className:me("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...a,children:e.jsx(ZP,{className:me("flex items-center justify-center text-current"),children:e.jsx(Fo,{className:"h-4 w-4"})})}));Dt.displayName=CS.displayName;const SH=({company:t,displayName:a,openRolesCount:r,groupMembersCount:n,isGroup:s=!1,viewMode:i="list",compareId:c,compareSelected:l=!1,compareDisabled:d=!1,onToggleCompare:h,isFollowing:u,followLoading:p=!1,followDisabled:m=!1,onToggleFollow:y,onFollowAction:x,isSaved:f,saveLoading:v=!1,saveDisabled:k=!1,onToggleSave:w,onSaveAction:j})=>{var ee,ue,we,Z,te,ve,fe;const S=i==="grid",C=u??t.isFollowing??!1,A=m||p,L=C?"Unfollow Company":"Follow Company",b=t.isSaved,N=k||v,q=b?"Remove from Saved":"Save Company",P=t.trustAndCompliance.licenses.length+t.trustAndCompliance.certifications.length+t.trustAndCompliance.awards.length,R=((ee=t.group)==null?void 0:ee.intelligenceProfile)??t.signalsAndInsights,T=Array.isArray(t.jobs.openRoles)?t.jobs.openRoles.length:t.jobs.openRoles,$=r??T,W=$>0,B=((ue=t.group)==null?void 0:ue.name)??t.groupName??t.group_name,U=((we=t.group)==null?void 0:we.slug)??t.groupSlug??t.group_slug??((Z=t.group)==null?void 0:Z.id)??t.groupId??t.group_id,O=re=>{switch(re){case"Operator":return"bg-blue-500/10 text-blue-600 border-blue-500/20";case"Game Provider":return"bg-purple-500/10 text-purple-600 border-purple-500/20";case"Platform Provider":return"bg-emerald-500/10 text-emerald-600 border-emerald-500/20";case"Affiliate":return"bg-orange-500/10 text-orange-600 border-orange-500/20";case"Payments":return"bg-cyan-500/10 text-cyan-600 border-cyan-500/20";default:return"bg-muted text-muted-foreground"}},oe=re=>{var he,Ae,Pe;if(typeof re=="string")return re;if(typeof re=="object"&&re!==null){const _e=re;return _e.title??((he=_e.tag)==null?void 0:he.title)??((Ae=_e.tag)==null?void 0:Ae.name)??((Pe=_e.tag)==null?void 0:Pe.slug)??null}return null},ae=(te=t.overview.headquarters)==null?void 0:te.city,Y=(ve=t.overview.headquarters)==null?void 0:ve.country,J=()=>{const re=!C;y==null||y(t.id,re),x==null||x({companyId:t.id,companySlug:t.slug,action:re?"follow":"unfollow"})},Q=()=>{const re=!b;w==null||w(t.id,re),j==null||j({companyId:t.id,companySlug:t.slug,companyName:t.name,action:re?"save":"unsave"})};return e.jsx(ce,{className:`group hover:shadow-lg transition-all duration-300 border-border/50 hover:border-accent/30 overflow-hidden ${S?"h-full":""}`,children:e.jsx(de,{className:`p-5 ${S?"flex h-full flex-col":""}`,children:e.jsxs("div",{className:`flex gap-4 ${S?"flex-col":""}`,children:[e.jsx("div",{className:"w-16 h-16 rounded-xl bg-gradient-to-br from-primary/10 to-accent/10 flex items-center justify-center flex-shrink-0 border border-border/50",children:e.jsx(gt,{className:"w-8 h-8 text-primary"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:`mb-2 flex items-start ${S?"flex-col gap-3":"justify-between gap-2"}`,children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("a",{href:`/companies/${t.slug}`,className:"font-semibold text-foreground hover:text-accent transition-colors text-lg",children:a??t.name}),t.claimedStatus==="claimed"&&e.jsx(it,{className:"w-4 h-4 text-accent flex-shrink-0"})]}),e.jsxs("div",{className:"flex items-center gap-3 text-sm text-muted-foreground mt-0.5",children:[(ae||Y)&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ct,{className:"w-3.5 h-3.5"}),[ae,Y].filter(Boolean).join(", ")]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Nt,{className:"w-3.5 h-3.5"}),t.overview.employeeRange]})]})]}),e.jsxs("div",{className:`flex flex-col gap-2 ${S?"items-start":"items-end"}`,children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Dt,{id:`compare-${c??t.id}`,checked:l,disabled:d,onCheckedChange:()=>h==null?void 0:h(c??t.id),"aria-label":`Compare ${a??t.name}`}),e.jsx("label",{htmlFor:`compare-${c??t.id}`,className:`text-xs ${d?"text-muted-foreground":"text-foreground"} cursor-pointer`,children:"Compare"})]}),e.jsxs("div",{className:`flex flex-wrap gap-2 ${S?"justify-start":"justify-end"}`,children:[e.jsxs(D,{variant:b?"secondary":"outline",size:"sm",className:"flex-shrink-0 gap-2 opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity",onClick:Q,disabled:N,"aria-label":`${q} ${a??t.name}`,"aria-pressed":b,"aria-busy":v,title:q,children:[v?e.jsx(ma,{className:"h-4 w-4 animate-spin"}):e.jsx(ga,{className:`h-4 w-4 ${b?"fill-current":"fill-transparent"}`}),v?"Loading":b?"Saved":"Save"]}),e.jsxs(D,{variant:C?"secondary":"outline",size:"sm",className:"flex-shrink-0 gap-2 opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity",onClick:J,disabled:A,"aria-label":`${L} ${a??t.name}`,"aria-pressed":C,"aria-busy":p,title:L,children:[p?e.jsx(ma,{className:"h-4 w-4 animate-spin"}):C?e.jsx(it,{className:"h-4 w-4"}):e.jsx(vr,{className:"h-4 w-4"}),p?"Loading":C?"Following":"Follow"]})]})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-1.5 mb-3",children:[e.jsx(ge,{className:`${O(t.companyType)} border text-xs`,children:t.companyType}),s&&e.jsxs(ge,{variant:"outline",className:"text-xs",children:["Group (",n??1,")"]}),B&&!s&&e.jsx("a",{href:U?`/groups/${U}`:"/groups",children:e.jsxs(ge,{variant:"outline",className:"text-xs",children:["Part of ",B]})}),t.classification.verticals.slice(0,2).map(re=>e.jsx(ge,{variant:"secondary",className:"text-xs",children:re},re)),W&&e.jsxs(ge,{className:"bg-gaming-success/10 text-gaming-success border-gaming-success/20 border text-xs",children:[e.jsx(nt,{className:"w-3 h-3 mr-1"}),"Hiring (",$,")"]})]}),e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mb-3",children:t.overview.shortDescription}),e.jsx("div",{className:"flex flex-wrap gap-1.5 mb-3",children:(fe=t.classification.tags)==null?void 0:fe.map(oe).filter(re=>!!re).slice(0,4).map(re=>e.jsxs("span",{className:"text-xs px-2 py-0.5 rounded-full bg-secondary text-secondary-foreground",children:["#",re]},re))}),e.jsxs("div",{className:"flex items-center justify-between pt-3 border-t border-border/50",children:[e.jsxs("div",{className:"flex items-center gap-4 text-xs text-muted-foreground",children:[P>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Mr,{className:"w-3.5 h-3.5 text-gaming-success"}),P," trust signals"]}),R.followsCount>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Lt,{className:"w-3.5 h-3.5 text-gaming-gold"}),R.followsCount.toLocaleString()," followers"]}),R.hiringIntensity==="High"&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Ra,{className:"w-3.5 h-3.5 text-accent"}),"High hiring"]})]}),e.jsx("a",{href:`/companies/${t.slug}`,children:e.jsx(D,{variant:"ghost",size:"sm",className:"text-accent hover:text-accent",children:"View Profile →"})})]})]})]})})})};function WL(t,[a,r]){return Math.min(r,Math.max(a,t))}function pt(t,a,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function KP(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:m,children:y,...x}=p,f=((k=m==null?void 0:m[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:y})};h.displayName=i+"Provider";function u(p,m){var f;const y=((f=m==null?void 0:m[t])==null?void 0:f[d])||l,x=g.useContext(y);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,LH(s,...a)]}function LH(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}function ZL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function NH(...t){return a=>{let r=!1;const n=t.map(s=>{const i=ZL(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():ZL(t[s],null)}}}}function la(...t){return g.useCallback(NH(...t),t)}function IH(t){const a=t+"CollectionProvider",[r,n]=KP(a),[s,i]=r(a,{collectionRef:{current:null},itemMap:new Map}),c=f=>{const{scope:v,children:k}=f,w=M.useRef(null),j=M.useRef(new Map).current;return e.jsx(s,{scope:v,itemMap:j,collectionRef:w,children:k})};c.displayName=a;const l=t+"CollectionSlot",d=at(l),h=M.forwardRef((f,v)=>{const{scope:k,children:w}=f,j=i(l,k),S=la(v,j.collectionRef);return e.jsx(d,{ref:S,children:w})});h.displayName=l;const u=t+"CollectionItemSlot",p="data-radix-collection-item",m=at(u),y=M.forwardRef((f,v)=>{const{scope:k,children:w,...j}=f,S=M.useRef(null),C=la(v,S),A=i(u,k);return M.useEffect(()=>(A.itemMap.set(S,{ref:S,...j}),()=>void A.itemMap.delete(S))),e.jsx(m,{[p]:"",ref:C,children:w})});y.displayName=u;function x(f){const v=i(t+"CollectionConsumer",f);return M.useCallback(()=>{const w=v.collectionRef.current;if(!w)return[];const j=Array.from(w.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((A,L)=>j.indexOf(A.ref.current)-j.indexOf(L.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:c,Slot:h,ItemSlot:y},x,n]}var AH=g.createContext(void 0);function PH(t){const a=g.useContext(AH);return t||a||"ltr"}var za=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},_H=g[" useId ".trim().toString()]||(()=>{}),RH=0;function SS(t){const[a,r]=g.useState(_H());return za(()=>{r(n=>n??String(RH++))},[t]),a?`radix-${a}`:""}const TH=["top","right","bottom","left"],Ar=Math.min,Ot=Math.max,L9=Math.round,Nl=Math.floor,qa=t=>({x:t,y:t}),qH={left:"right",right:"left",bottom:"top",top:"bottom"},DH={start:"end",end:"start"};function fC(t,a,r){return Ot(t,Ar(a,r))}function Qa(t,a){return typeof t=="function"?t(a):t}function er(t){return t.split("-")[0]}function dc(t){return t.split("-")[1]}function LS(t){return t==="x"?"y":"x"}function NS(t){return t==="y"?"height":"width"}const zH=new Set(["top","bottom"]);function Pa(t){return zH.has(er(t))?"y":"x"}function IS(t){return LS(Pa(t))}function EH(t,a,r){r===void 0&&(r=!1);const n=dc(t),s=IS(t),i=NS(s);let c=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return a.reference[i]>a.floating[i]&&(c=N9(c)),[c,N9(c)]}function FH(t){const a=N9(t);return[xC(t),a,xC(a)]}function xC(t){return t.replace(/start|end/g,a=>DH[a])}const JL=["left","right"],XL=["right","left"],OH=["top","bottom"],HH=["bottom","top"];function VH(t,a,r){switch(t){case"top":case"bottom":return r?a?XL:JL:a?JL:XL;case"left":case"right":return a?OH:HH;default:return[]}}function BH(t,a,r,n){const s=dc(t);let i=VH(er(t),r==="start",n);return s&&(i=i.map(c=>c+"-"+s),a&&(i=i.concat(i.map(xC)))),i}function N9(t){return t.replace(/left|right|bottom|top/g,a=>qH[a])}function $H(t){return{top:0,right:0,bottom:0,left:0,...t}}function QP(t){return typeof t!="number"?$H(t):{top:t,right:t,bottom:t,left:t}}function I9(t){const{x:a,y:r,width:n,height:s}=t;return{width:n,height:s,top:r,left:a,right:a+n,bottom:r+s,x:a,y:r}}function YL(t,a,r){let{reference:n,floating:s}=t;const i=Pa(a),c=IS(a),l=NS(c),d=er(a),h=i==="y",u=n.x+n.width/2-s.width/2,p=n.y+n.height/2-s.height/2,m=n[l]/2-s[l]/2;let y;switch(d){case"top":y={x:u,y:n.y-s.height};break;case"bottom":y={x:u,y:n.y+n.height};break;case"right":y={x:n.x+n.width,y:p};break;case"left":y={x:n.x-s.width,y:p};break;default:y={x:n.x,y:n.y}}switch(dc(a)){case"start":y[c]-=m*(r&&h?-1:1);break;case"end":y[c]+=m*(r&&h?-1:1);break}return y}const UH=async(t,a,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:c}=r,l=i.filter(Boolean),d=await(c.isRTL==null?void 0:c.isRTL(a));let h=await c.getElementRects({reference:t,floating:a,strategy:s}),{x:u,y:p}=YL(h,n,d),m=n,y={},x=0;for(let f=0;f<l.length;f++){const{name:v,fn:k}=l[f],{x:w,y:j,data:S,reset:C}=await k({x:u,y:p,initialPlacement:n,placement:m,strategy:s,middlewareData:y,rects:h,platform:c,elements:{reference:t,floating:a}});u=w??u,p=j??p,y={...y,[v]:{...y[v],...S}},C&&x<=50&&(x++,typeof C=="object"&&(C.placement&&(m=C.placement),C.rects&&(h=C.rects===!0?await c.getElementRects({reference:t,floating:a,strategy:s}):C.rects),{x:u,y:p}=YL(h,m,d)),f=-1)}return{x:u,y:p,placement:m,strategy:s,middlewareData:y}};async function cl(t,a){var r;a===void 0&&(a={});const{x:n,y:s,platform:i,rects:c,elements:l,strategy:d}=t,{boundary:h="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:m=!1,padding:y=0}=Qa(a,t),x=QP(y),v=l[m?p==="floating"?"reference":"floating":p],k=I9(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(v)))==null||r?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:h,rootBoundary:u,strategy:d})),w=p==="floating"?{x:n,y:s,width:c.floating.width,height:c.floating.height}:c.reference,j=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),S=await(i.isElement==null?void 0:i.isElement(j))?await(i.getScale==null?void 0:i.getScale(j))||{x:1,y:1}:{x:1,y:1},C=I9(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:j,strategy:d}):w);return{top:(k.top-C.top+x.top)/S.y,bottom:(C.bottom-k.bottom+x.bottom)/S.y,left:(k.left-C.left+x.left)/S.x,right:(C.right-k.right+x.right)/S.x}}const GH=t=>({name:"arrow",options:t,async fn(a){const{x:r,y:n,placement:s,rects:i,platform:c,elements:l,middlewareData:d}=a,{element:h,padding:u=0}=Qa(t,a)||{};if(h==null)return{};const p=QP(u),m={x:r,y:n},y=IS(s),x=NS(y),f=await c.getDimensions(h),v=y==="y",k=v?"top":"left",w=v?"bottom":"right",j=v?"clientHeight":"clientWidth",S=i.reference[x]+i.reference[y]-m[y]-i.floating[x],C=m[y]-i.reference[y],A=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let L=A?A[j]:0;(!L||!await(c.isElement==null?void 0:c.isElement(A)))&&(L=l.floating[j]||i.floating[x]);const b=S/2-C/2,N=L/2-f[x]/2-1,q=Ar(p[k],N),P=Ar(p[w],N),R=q,T=L-f[x]-P,$=L/2-f[x]/2+b,W=fC(R,$,T),B=!d.arrow&&dc(s)!=null&&$!==W&&i.reference[x]/2-($<R?q:P)-f[x]/2<0,U=B?$<R?$-R:$-T:0;return{[y]:m[y]+U,data:{[y]:W,centerOffset:$-W-U,...B&&{alignmentOffset:U}},reset:B}}}),WH=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(a){var r,n;const{placement:s,middlewareData:i,rects:c,initialPlacement:l,platform:d,elements:h}=a,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:f=!0,...v}=Qa(t,a);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const k=er(s),w=Pa(l),j=er(l)===l,S=await(d.isRTL==null?void 0:d.isRTL(h.floating)),C=m||(j||!f?[N9(l)]:FH(l)),A=x!=="none";!m&&A&&C.push(...BH(l,f,x,S));const L=[l,...C],b=await cl(a,v),N=[];let q=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&N.push(b[k]),p){const $=EH(s,c,S);N.push(b[$[0]],b[$[1]])}if(q=[...q,{placement:s,overflows:N}],!N.every($=>$<=0)){var P,R;const $=(((P=i.flip)==null?void 0:P.index)||0)+1,W=L[$];if(W&&(!(p==="alignment"?w!==Pa(W):!1)||q.every(O=>Pa(O.placement)===w?O.overflows[0]>0:!0)))return{data:{index:$,overflows:q},reset:{placement:W}};let B=(R=q.filter(U=>U.overflows[0]<=0).sort((U,O)=>U.overflows[1]-O.overflows[1])[0])==null?void 0:R.placement;if(!B)switch(y){case"bestFit":{var T;const U=(T=q.filter(O=>{if(A){const oe=Pa(O.placement);return oe===w||oe==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(oe=>oe>0).reduce((oe,ae)=>oe+ae,0)]).sort((O,oe)=>O[1]-oe[1])[0])==null?void 0:T[0];U&&(B=U);break}case"initialPlacement":B=l;break}if(s!==B)return{reset:{placement:B}}}return{}}}};function KL(t,a){return{top:t.top-a.height,right:t.right-a.width,bottom:t.bottom-a.height,left:t.left-a.width}}function QL(t){return TH.some(a=>t[a]>=0)}const ZH=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(a){const{rects:r}=a,{strategy:n="referenceHidden",...s}=Qa(t,a);switch(n){case"referenceHidden":{const i=await cl(a,{...s,elementContext:"reference"}),c=KL(i,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:QL(c)}}}case"escaped":{const i=await cl(a,{...s,altBoundary:!0}),c=KL(i,r.floating);return{data:{escapedOffsets:c,escaped:QL(c)}}}default:return{}}}}},e_=new Set(["left","top"]);async function JH(t,a){const{placement:r,platform:n,elements:s}=t,i=await(n.isRTL==null?void 0:n.isRTL(s.floating)),c=er(r),l=dc(r),d=Pa(r)==="y",h=e_.has(c)?-1:1,u=i&&d?-1:1,p=Qa(a,t);let{mainAxis:m,crossAxis:y,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof x=="number"&&(y=l==="end"?x*-1:x),d?{x:y*u,y:m*h}:{x:m*h,y:y*u}}const XH=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(a){var r,n;const{x:s,y:i,placement:c,middlewareData:l}=a,d=await JH(a,t);return c===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:s+d.x,y:i+d.y,data:{...d,placement:c}}}}},YH=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(a){const{x:r,y:n,placement:s}=a,{mainAxis:i=!0,crossAxis:c=!1,limiter:l={fn:v=>{let{x:k,y:w}=v;return{x:k,y:w}}},...d}=Qa(t,a),h={x:r,y:n},u=await cl(a,d),p=Pa(er(s)),m=LS(p);let y=h[m],x=h[p];if(i){const v=m==="y"?"top":"left",k=m==="y"?"bottom":"right",w=y+u[v],j=y-u[k];y=fC(w,y,j)}if(c){const v=p==="y"?"top":"left",k=p==="y"?"bottom":"right",w=x+u[v],j=x-u[k];x=fC(w,x,j)}const f=l.fn({...a,[m]:y,[p]:x});return{...f,data:{x:f.x-r,y:f.y-n,enabled:{[m]:i,[p]:c}}}}}},KH=function(t){return t===void 0&&(t={}),{options:t,fn(a){const{x:r,y:n,placement:s,rects:i,middlewareData:c}=a,{offset:l=0,mainAxis:d=!0,crossAxis:h=!0}=Qa(t,a),u={x:r,y:n},p=Pa(s),m=LS(p);let y=u[m],x=u[p];const f=Qa(l,a),v=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(d){const j=m==="y"?"height":"width",S=i.reference[m]-i.floating[j]+v.mainAxis,C=i.reference[m]+i.reference[j]-v.mainAxis;y<S?y=S:y>C&&(y=C)}if(h){var k,w;const j=m==="y"?"width":"height",S=e_.has(er(s)),C=i.reference[p]-i.floating[j]+(S&&((k=c.offset)==null?void 0:k[p])||0)+(S?0:v.crossAxis),A=i.reference[p]+i.reference[j]+(S?0:((w=c.offset)==null?void 0:w[p])||0)-(S?v.crossAxis:0);x<C?x=C:x>A&&(x=A)}return{[m]:y,[p]:x}}}},QH=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(a){var r,n;const{placement:s,rects:i,platform:c,elements:l}=a,{apply:d=()=>{},...h}=Qa(t,a),u=await cl(a,h),p=er(s),m=dc(s),y=Pa(s)==="y",{width:x,height:f}=i.floating;let v,k;p==="top"||p==="bottom"?(v=p,k=m===(await(c.isRTL==null?void 0:c.isRTL(l.floating))?"start":"end")?"left":"right"):(k=p,v=m==="end"?"top":"bottom");const w=f-u.top-u.bottom,j=x-u.left-u.right,S=Ar(f-u[v],w),C=Ar(x-u[k],j),A=!a.middlewareData.shift;let L=S,b=C;if((r=a.middlewareData.shift)!=null&&r.enabled.x&&(b=j),(n=a.middlewareData.shift)!=null&&n.enabled.y&&(L=w),A&&!m){const q=Ot(u.left,0),P=Ot(u.right,0),R=Ot(u.top,0),T=Ot(u.bottom,0);y?b=x-2*(q!==0||P!==0?q+P:Ot(u.left,u.right)):L=f-2*(R!==0||T!==0?R+T:Ot(u.top,u.bottom))}await d({...a,availableWidth:b,availableHeight:L});const N=await c.getDimensions(l.floating);return x!==N.width||f!==N.height?{reset:{rects:!0}}:{}}}};function ej(){return typeof window<"u"}function hc(t){return t_(t)?(t.nodeName||"").toLowerCase():"#document"}function Gt(t){var a;return(t==null||(a=t.ownerDocument)==null?void 0:a.defaultView)||window}function Oa(t){var a;return(a=(t_(t)?t.ownerDocument:t.document)||window.document)==null?void 0:a.documentElement}function t_(t){return ej()?t instanceof Node||t instanceof Gt(t).Node:!1}function wa(t){return ej()?t instanceof Element||t instanceof Gt(t).Element:!1}function Ea(t){return ej()?t instanceof HTMLElement||t instanceof Gt(t).HTMLElement:!1}function eN(t){return!ej()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Gt(t).ShadowRoot}const eV=new Set(["inline","contents"]);function pl(t){const{overflow:a,overflowX:r,overflowY:n,display:s}=ba(t);return/auto|scroll|overlay|hidden|clip/.test(a+n+r)&&!eV.has(s)}const tV=new Set(["table","td","th"]);function aV(t){return tV.has(hc(t))}const rV=[":popover-open",":modal"];function tj(t){return rV.some(a=>{try{return t.matches(a)}catch{return!1}})}const nV=["transform","translate","scale","rotate","perspective"],sV=["transform","translate","scale","rotate","perspective","filter"],iV=["paint","layout","strict","content"];function AS(t){const a=PS(),r=wa(t)?ba(t):t;return nV.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!a&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!a&&(r.filter?r.filter!=="none":!1)||sV.some(n=>(r.willChange||"").includes(n))||iV.some(n=>(r.contain||"").includes(n))}function oV(t){let a=Pr(t);for(;Ea(a)&&!oc(a);){if(AS(a))return a;if(tj(a))return null;a=Pr(a)}return null}function PS(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const cV=new Set(["html","body","#document"]);function oc(t){return cV.has(hc(t))}function ba(t){return Gt(t).getComputedStyle(t)}function aj(t){return wa(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Pr(t){if(hc(t)==="html")return t;const a=t.assignedSlot||t.parentNode||eN(t)&&t.host||Oa(t);return eN(a)?a.host:a}function a_(t){const a=Pr(t);return oc(a)?t.ownerDocument?t.ownerDocument.body:t.body:Ea(a)&&pl(a)?a:a_(a)}function ll(t,a,r){var n;a===void 0&&(a=[]),r===void 0&&(r=!0);const s=a_(t),i=s===((n=t.ownerDocument)==null?void 0:n.body),c=Gt(s);if(i){const l=gC(c);return a.concat(c,c.visualViewport||[],pl(s)?s:[],l&&r?ll(l):[])}return a.concat(s,ll(s,[],r))}function gC(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function r_(t){const a=ba(t);let r=parseFloat(a.width)||0,n=parseFloat(a.height)||0;const s=Ea(t),i=s?t.offsetWidth:r,c=s?t.offsetHeight:n,l=L9(r)!==i||L9(n)!==c;return l&&(r=i,n=c),{width:r,height:n,$:l}}function _S(t){return wa(t)?t:t.contextElement}function ec(t){const a=_S(t);if(!Ea(a))return qa(1);const r=a.getBoundingClientRect(),{width:n,height:s,$:i}=r_(a);let c=(i?L9(r.width):r.width)/n,l=(i?L9(r.height):r.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}const lV=qa(0);function n_(t){const a=Gt(t);return!PS()||!a.visualViewport?lV:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function dV(t,a,r){return a===void 0&&(a=!1),!r||a&&r!==Gt(t)?!1:a}function Mo(t,a,r,n){a===void 0&&(a=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),i=_S(t);let c=qa(1);a&&(n?wa(n)&&(c=ec(n)):c=ec(t));const l=dV(i,r,n)?n_(i):qa(0);let d=(s.left+l.x)/c.x,h=(s.top+l.y)/c.y,u=s.width/c.x,p=s.height/c.y;if(i){const m=Gt(i),y=n&&wa(n)?Gt(n):n;let x=m,f=gC(x);for(;f&&n&&y!==x;){const v=ec(f),k=f.getBoundingClientRect(),w=ba(f),j=k.left+(f.clientLeft+parseFloat(w.paddingLeft))*v.x,S=k.top+(f.clientTop+parseFloat(w.paddingTop))*v.y;d*=v.x,h*=v.y,u*=v.x,p*=v.y,d+=j,h+=S,x=Gt(f),f=gC(x)}}return I9({width:u,height:p,x:d,y:h})}function rj(t,a){const r=aj(t).scrollLeft;return a?a.left+r:Mo(Oa(t)).left+r}function s_(t,a){const r=t.getBoundingClientRect(),n=r.left+a.scrollLeft-rj(t,r),s=r.top+a.scrollTop;return{x:n,y:s}}function hV(t){let{elements:a,rect:r,offsetParent:n,strategy:s}=t;const i=s==="fixed",c=Oa(n),l=a?tj(a.floating):!1;if(n===c||l&&i)return r;let d={scrollLeft:0,scrollTop:0},h=qa(1);const u=qa(0),p=Ea(n);if((p||!p&&!i)&&((hc(n)!=="body"||pl(c))&&(d=aj(n)),Ea(n))){const y=Mo(n);h=ec(n),u.x=y.x+n.clientLeft,u.y=y.y+n.clientTop}const m=c&&!p&&!i?s_(c,d):qa(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-d.scrollLeft*h.x+u.x+m.x,y:r.y*h.y-d.scrollTop*h.y+u.y+m.y}}function uV(t){return Array.from(t.getClientRects())}function pV(t){const a=Oa(t),r=aj(t),n=t.ownerDocument.body,s=Ot(a.scrollWidth,a.clientWidth,n.scrollWidth,n.clientWidth),i=Ot(a.scrollHeight,a.clientHeight,n.scrollHeight,n.clientHeight);let c=-r.scrollLeft+rj(t);const l=-r.scrollTop;return ba(n).direction==="rtl"&&(c+=Ot(a.clientWidth,n.clientWidth)-s),{width:s,height:i,x:c,y:l}}const tN=25;function yV(t,a){const r=Gt(t),n=Oa(t),s=r.visualViewport;let i=n.clientWidth,c=n.clientHeight,l=0,d=0;if(s){i=s.width,c=s.height;const u=PS();(!u||u&&a==="fixed")&&(l=s.offsetLeft,d=s.offsetTop)}const h=rj(n);if(h<=0){const u=n.ownerDocument,p=u.body,m=getComputedStyle(p),y=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,x=Math.abs(n.clientWidth-p.clientWidth-y);x<=tN&&(i-=x)}else h<=tN&&(i+=h);return{width:i,height:c,x:l,y:d}}const mV=new Set(["absolute","fixed"]);function fV(t,a){const r=Mo(t,!0,a==="fixed"),n=r.top+t.clientTop,s=r.left+t.clientLeft,i=Ea(t)?ec(t):qa(1),c=t.clientWidth*i.x,l=t.clientHeight*i.y,d=s*i.x,h=n*i.y;return{width:c,height:l,x:d,y:h}}function aN(t,a,r){let n;if(a==="viewport")n=yV(t,r);else if(a==="document")n=pV(Oa(t));else if(wa(a))n=fV(a,r);else{const s=n_(t);n={x:a.x-s.x,y:a.y-s.y,width:a.width,height:a.height}}return I9(n)}function i_(t,a){const r=Pr(t);return r===a||!wa(r)||oc(r)?!1:ba(r).position==="fixed"||i_(r,a)}function xV(t,a){const r=a.get(t);if(r)return r;let n=ll(t,[],!1).filter(l=>wa(l)&&hc(l)!=="body"),s=null;const i=ba(t).position==="fixed";let c=i?Pr(t):t;for(;wa(c)&&!oc(c);){const l=ba(c),d=AS(c);!d&&l.position==="fixed"&&(s=null),(i?!d&&!s:!d&&l.position==="static"&&!!s&&mV.has(s.position)||pl(c)&&!d&&i_(t,c))?n=n.filter(u=>u!==c):s=l,c=Pr(c)}return a.set(t,n),n}function gV(t){let{element:a,boundary:r,rootBoundary:n,strategy:s}=t;const c=[...r==="clippingAncestors"?tj(a)?[]:xV(a,this._c):[].concat(r),n],l=c[0],d=c.reduce((h,u)=>{const p=aN(a,u,s);return h.top=Ot(p.top,h.top),h.right=Ar(p.right,h.right),h.bottom=Ar(p.bottom,h.bottom),h.left=Ot(p.left,h.left),h},aN(a,l,s));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function kV(t){const{width:a,height:r}=r_(t);return{width:a,height:r}}function vV(t,a,r){const n=Ea(a),s=Oa(a),i=r==="fixed",c=Mo(t,!0,i,a);let l={scrollLeft:0,scrollTop:0};const d=qa(0);function h(){d.x=rj(s)}if(n||!n&&!i)if((hc(a)!=="body"||pl(s))&&(l=aj(a)),n){const y=Mo(a,!0,i,a);d.x=y.x+a.clientLeft,d.y=y.y+a.clientTop}else s&&h();i&&!n&&s&&h();const u=s&&!n&&!i?s_(s,l):qa(0),p=c.left+l.scrollLeft-d.x-u.x,m=c.top+l.scrollTop-d.y-u.y;return{x:p,y:m,width:c.width,height:c.height}}function Fj(t){return ba(t).position==="static"}function rN(t,a){if(!Ea(t)||ba(t).position==="fixed")return null;if(a)return a(t);let r=t.offsetParent;return Oa(t)===r&&(r=r.ownerDocument.body),r}function o_(t,a){const r=Gt(t);if(tj(t))return r;if(!Ea(t)){let s=Pr(t);for(;s&&!oc(s);){if(wa(s)&&!Fj(s))return s;s=Pr(s)}return r}let n=rN(t,a);for(;n&&aV(n)&&Fj(n);)n=rN(n,a);return n&&oc(n)&&Fj(n)&&!AS(n)?r:n||oV(t)||r}const wV=async function(t){const a=this.getOffsetParent||o_,r=this.getDimensions,n=await r(t.floating);return{reference:vV(t.reference,await a(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function bV(t){return ba(t).direction==="rtl"}const MV={convertOffsetParentRelativeRectToViewportRelativeRect:hV,getDocumentElement:Oa,getClippingRect:gV,getOffsetParent:o_,getElementRects:wV,getClientRects:uV,getDimensions:kV,getScale:ec,isElement:wa,isRTL:bV};function c_(t,a){return t.x===a.x&&t.y===a.y&&t.width===a.width&&t.height===a.height}function jV(t,a){let r=null,n;const s=Oa(t);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function c(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),i();const h=t.getBoundingClientRect(),{left:u,top:p,width:m,height:y}=h;if(l||a(),!m||!y)return;const x=Nl(p),f=Nl(s.clientWidth-(u+m)),v=Nl(s.clientHeight-(p+y)),k=Nl(u),j={rootMargin:-x+"px "+-f+"px "+-v+"px "+-k+"px",threshold:Ot(0,Ar(1,d))||1};let S=!0;function C(A){const L=A[0].intersectionRatio;if(L!==d){if(!S)return c();L?c(!1,L):n=setTimeout(()=>{c(!1,1e-7)},1e3)}L===1&&!c_(h,t.getBoundingClientRect())&&c(),S=!1}try{r=new IntersectionObserver(C,{...j,root:s.ownerDocument})}catch{r=new IntersectionObserver(C,j)}r.observe(t)}return c(!0),i}function CV(t,a,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=n,h=_S(t),u=s||i?[...h?ll(h):[],...ll(a)]:[];u.forEach(k=>{s&&k.addEventListener("scroll",r,{passive:!0}),i&&k.addEventListener("resize",r)});const p=h&&l?jV(h,r):null;let m=-1,y=null;c&&(y=new ResizeObserver(k=>{let[w]=k;w&&w.target===h&&y&&(y.unobserve(a),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var j;(j=y)==null||j.observe(a)})),r()}),h&&!d&&y.observe(h),y.observe(a));let x,f=d?Mo(t):null;d&&v();function v(){const k=Mo(t);f&&!c_(f,k)&&r(),f=k,x=requestAnimationFrame(v)}return r(),()=>{var k;u.forEach(w=>{s&&w.removeEventListener("scroll",r),i&&w.removeEventListener("resize",r)}),p==null||p(),(k=y)==null||k.disconnect(),y=null,d&&cancelAnimationFrame(x)}}const SV=XH,LV=YH,NV=WH,IV=QH,AV=ZH,nN=GH,PV=KH,_V=(t,a,r)=>{const n=new Map,s={platform:MV,...r},i={...s.platform,_c:n};return UH(t,a,{...s,platform:i})};var RV=typeof document<"u",TV=function(){},y9=RV?M.useLayoutEffect:TV;function A9(t,a){if(t===a)return!0;if(typeof t!=typeof a)return!1;if(typeof t=="function"&&t.toString()===a.toString())return!0;let r,n,s;if(t&&a&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==a.length)return!1;for(n=r;n--!==0;)if(!A9(t[n],a[n]))return!1;return!0}if(s=Object.keys(t),r=s.length,r!==Object.keys(a).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(a,s[n]))return!1;for(n=r;n--!==0;){const i=s[n];if(!(i==="_owner"&&t.$$typeof)&&!A9(t[i],a[i]))return!1}return!0}return t!==t&&a!==a}function l_(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function sN(t,a){const r=l_(t);return Math.round(a*r)/r}function Oj(t){const a=g.useRef(t);return y9(()=>{a.current=t}),a}function qV(t){t===void 0&&(t={});const{placement:a="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:i,floating:c}={},transform:l=!0,whileElementsMounted:d,open:h}=t,[u,p]=g.useState({x:0,y:0,strategy:r,placement:a,middlewareData:{},isPositioned:!1}),[m,y]=g.useState(n);A9(m,n)||y(n);const[x,f]=g.useState(null),[v,k]=g.useState(null),w=g.useCallback(O=>{O!==A.current&&(A.current=O,f(O))},[]),j=g.useCallback(O=>{O!==L.current&&(L.current=O,k(O))},[]),S=i||x,C=c||v,A=g.useRef(null),L=g.useRef(null),b=g.useRef(u),N=d!=null,q=Oj(d),P=Oj(s),R=Oj(h),T=g.useCallback(()=>{if(!A.current||!L.current)return;const O={placement:a,strategy:r,middleware:m};P.current&&(O.platform=P.current),_V(A.current,L.current,O).then(oe=>{const ae={...oe,isPositioned:R.current!==!1};$.current&&!A9(b.current,ae)&&(b.current=ae,q9.flushSync(()=>{p(ae)}))})},[m,a,r,P,R]);y9(()=>{h===!1&&b.current.isPositioned&&(b.current.isPositioned=!1,p(O=>({...O,isPositioned:!1})))},[h]);const $=g.useRef(!1);y9(()=>($.current=!0,()=>{$.current=!1}),[]),y9(()=>{if(S&&(A.current=S),C&&(L.current=C),S&&C){if(q.current)return q.current(S,C,T);T()}},[S,C,T,q,N]);const W=g.useMemo(()=>({reference:A,floating:L,setReference:w,setFloating:j}),[w,j]),B=g.useMemo(()=>({reference:S,floating:C}),[S,C]),U=g.useMemo(()=>{const O={position:r,left:0,top:0};if(!B.floating)return O;const oe=sN(B.floating,u.x),ae=sN(B.floating,u.y);return l?{...O,transform:"translate("+oe+"px, "+ae+"px)",...l_(B.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:oe,top:ae}},[r,l,B.floating,u.x,u.y]);return g.useMemo(()=>({...u,update:T,refs:W,elements:B,floatingStyles:U}),[u,T,W,B,U])}const DV=t=>{function a(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:s}=typeof t=="function"?t(r):t;return n&&a(n)?n.current!=null?nN({element:n.current,padding:s}).fn(r):{}:n?nN({element:n,padding:s}).fn(r):{}}}},zV=(t,a)=>({...SV(t),options:[t,a]}),EV=(t,a)=>({...LV(t),options:[t,a]}),FV=(t,a)=>({...PV(t),options:[t,a]}),OV=(t,a)=>({...NV(t),options:[t,a]}),HV=(t,a)=>({...IV(t),options:[t,a]}),VV=(t,a)=>({...AV(t),options:[t,a]}),BV=(t,a)=>({...DV(t),options:[t,a]});var $V=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],UV=$V.reduce((t,a)=>{const r=at(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),GV="Arrow",d_=g.forwardRef((t,a)=>{const{children:r,width:n=10,height:s=5,...i}=t;return e.jsx(UV.svg,{...i,ref:a,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:e.jsx("polygon",{points:"0,0 30,0 15,10"})})});d_.displayName=GV;var WV=d_;function iN(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function ZV(...t){return a=>{let r=!1;const n=t.map(s=>{const i=iN(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():iN(t[s],null)}}}}function h_(...t){return g.useCallback(ZV(...t),t)}function JV(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:m,children:y,...x}=p,f=((k=m==null?void 0:m[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:y})};h.displayName=i+"Provider";function u(p,m){var f;const y=((f=m==null?void 0:m[t])==null?void 0:f[d])||l,x=g.useContext(y);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,XV(s,...a)]}function XV(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}var YV=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],u_=YV.reduce((t,a)=>{const r=at(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{});function KV(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...r)=>{var n;return(n=a.current)==null?void 0:n.call(a,...r)},[])}var oN=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},RS="Popper",[p_,nj]=JV(RS),[QV,y_]=p_(RS),m_=t=>{const{__scopePopper:a,children:r}=t,[n,s]=g.useState(null);return e.jsx(QV,{scope:a,anchor:n,onAnchorChange:s,children:r})};m_.displayName=RS;var f_="PopperAnchor",x_=g.forwardRef((t,a)=>{const{__scopePopper:r,virtualRef:n,...s}=t,i=y_(f_,r),c=g.useRef(null),l=h_(a,c),d=g.useRef(null);return g.useEffect(()=>{const h=d.current;d.current=(n==null?void 0:n.current)||c.current,h!==d.current&&i.onAnchorChange(d.current)}),n?null:e.jsx(u_.div,{...s,ref:l})});x_.displayName=f_;var TS="PopperContent",[eB,tB]=p_(TS),g_=g.forwardRef((t,a)=>{var Z,te,ve,fe,re,he;const{__scopePopper:r,side:n="bottom",sideOffset:s=0,align:i="center",alignOffset:c=0,arrowPadding:l=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:u=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:y="optimized",onPlaced:x,...f}=t,v=y_(TS,r),[k,w]=g.useState(null),j=h_(a,Ae=>w(Ae)),[S,C]=g.useState(null),A=bS(S),L=(A==null?void 0:A.width)??0,b=(A==null?void 0:A.height)??0,N=n+(i!=="center"?"-"+i:""),q=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},P=Array.isArray(h)?h:[h],R=P.length>0,T={padding:q,boundary:P.filter(rB),altBoundary:R},{refs:$,floatingStyles:W,placement:B,isPositioned:U,middlewareData:O}=qV({strategy:"fixed",placement:N,whileElementsMounted:(...Ae)=>CV(...Ae,{animationFrame:y==="always"}),elements:{reference:v.anchor},middleware:[zV({mainAxis:s+b,alignmentAxis:c}),d&&EV({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?FV():void 0,...T}),d&&OV({...T}),HV({...T,apply:({elements:Ae,rects:Pe,availableWidth:_e,availableHeight:Qe})=>{const{width:st,height:yt}=Pe.reference,rt=Ae.floating.style;rt.setProperty("--radix-popper-available-width",`${_e}px`),rt.setProperty("--radix-popper-available-height",`${Qe}px`),rt.setProperty("--radix-popper-anchor-width",`${st}px`),rt.setProperty("--radix-popper-anchor-height",`${yt}px`)}}),S&&BV({element:S,padding:l}),nB({arrowWidth:L,arrowHeight:b}),m&&VV({strategy:"referenceHidden",...T})]}),[oe,ae]=w_(B),Y=KV(x);oN(()=>{U&&(Y==null||Y())},[U,Y]);const J=(Z=O.arrow)==null?void 0:Z.x,Q=(te=O.arrow)==null?void 0:te.y,ee=((ve=O.arrow)==null?void 0:ve.centerOffset)!==0,[ue,we]=g.useState();return oN(()=>{k&&we(window.getComputedStyle(k).zIndex)},[k]),e.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:U?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[(fe=O.transformOrigin)==null?void 0:fe.x,(re=O.transformOrigin)==null?void 0:re.y].join(" "),...((he=O.hide)==null?void 0:he.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:e.jsx(eB,{scope:r,placedSide:oe,onArrowChange:C,arrowX:J,arrowY:Q,shouldHideArrow:ee,children:e.jsx(u_.div,{"data-side":oe,"data-align":ae,...f,ref:j,style:{...f.style,animation:U?void 0:"none"}})})})});g_.displayName=TS;var k_="PopperArrow",aB={top:"bottom",right:"left",bottom:"top",left:"right"},v_=g.forwardRef(function(a,r){const{__scopePopper:n,...s}=a,i=tB(k_,n),c=aB[i.placedSide];return e.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:e.jsx(WV,{...s,ref:r,style:{...s.style,display:"block"}})})});v_.displayName=k_;function rB(t){return t!==null}var nB=t=>({name:"transformOrigin",options:t,fn(a){var v,k,w;const{placement:r,rects:n,middlewareData:s}=a,c=((v=s.arrow)==null?void 0:v.centerOffset)!==0,l=c?0:t.arrowWidth,d=c?0:t.arrowHeight,[h,u]=w_(r),p={start:"0%",center:"50%",end:"100%"}[u],m=(((k=s.arrow)==null?void 0:k.x)??0)+l/2,y=(((w=s.arrow)==null?void 0:w.y)??0)+d/2;let x="",f="";return h==="bottom"?(x=c?p:`${m}px`,f=`${-d}px`):h==="top"?(x=c?p:`${m}px`,f=`${n.floating.height+d}px`):h==="right"?(x=`${-d}px`,f=c?p:`${y}px`):h==="left"&&(x=`${n.floating.width+d}px`,f=c?p:`${y}px`),{data:{x,y:f}}}});function w_(t){const[a,r="center"]=t.split("-");return[a,r]}var b_=m_,qS=x_,M_=g_,j_=v_,sB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Zt=sB.reduce((t,a)=>{const r=at(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{});function iB(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...r)=>{var n;return(n=a.current)==null?void 0:n.call(a,...r)},[])}var oB=g[" useInsertionEffect ".trim().toString()]||za;function cN({prop:t,defaultProp:a,onChange:r=()=>{},caller:n}){const[s,i,c]=cB({defaultProp:a,onChange:r}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,n])}const h=g.useCallback(u=>{var p;if(l){const m=lB(u)?u(t):u;m!==t&&((p=c.current)==null||p.call(c,m))}else i(u)},[l,t,i,c]);return[d,h]}function cB({defaultProp:t,onChange:a}){const[r,n]=g.useState(t),s=g.useRef(r),i=g.useRef(a);return oB(()=>{i.current=a},[a]),g.useEffect(()=>{var c;s.current!==r&&((c=i.current)==null||c.call(i,r),s.current=r)},[r,s]),[r,n,i]}function lB(t){return typeof t=="function"}var dB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hB=dB.reduce((t,a)=>{const r=at(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),C_=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),uB="VisuallyHidden",pB=g.forwardRef((t,a)=>e.jsx(hB.span,{...t,ref:a,style:{...C_,...t.style}}));pB.displayName=uB;var yB=[" ","Enter","ArrowUp","ArrowDown"],mB=[" ","Enter"],jo="Select",[sj,ij,fB]=IH(jo),[uc,eW]=KP(jo,[fB,nj]),oj=nj(),[xB,Dr]=uc(jo),[gB,kB]=uc(jo),S_=t=>{const{__scopeSelect:a,children:r,open:n,defaultOpen:s,onOpenChange:i,value:c,defaultValue:l,onValueChange:d,dir:h,name:u,autoComplete:p,disabled:m,required:y,form:x}=t,f=oj(a),[v,k]=g.useState(null),[w,j]=g.useState(null),[S,C]=g.useState(!1),A=PH(h),[L,b]=cN({prop:n,defaultProp:s??!1,onChange:i,caller:jo}),[N,q]=cN({prop:c,defaultProp:l,onChange:d,caller:jo}),P=g.useRef(null),R=v?x||!!v.closest("form"):!0,[T,$]=g.useState(new Set),W=Array.from(T).map(B=>B.props.value).join(";");return e.jsx(b_,{...f,children:e.jsxs(xB,{required:y,scope:a,trigger:v,onTriggerChange:k,valueNode:w,onValueNodeChange:j,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:SS(),value:N,onValueChange:q,open:L,onOpenChange:b,dir:A,triggerPointerDownPosRef:P,disabled:m,children:[e.jsx(sj.Provider,{scope:a,children:e.jsx(gB,{scope:t.__scopeSelect,onNativeOptionAdd:g.useCallback(B=>{$(U=>new Set(U).add(B))},[]),onNativeOptionRemove:g.useCallback(B=>{$(U=>{const O=new Set(U);return O.delete(B),O})},[]),children:r})}),R?e.jsxs(X_,{"aria-hidden":!0,required:y,tabIndex:-1,name:u,autoComplete:p,value:N,onChange:B=>q(B.target.value),disabled:m,form:x,children:[N===void 0?e.jsx("option",{value:""}):null,Array.from(T)]},W):null]})})};S_.displayName=jo;var L_="SelectTrigger",N_=g.forwardRef((t,a)=>{const{__scopeSelect:r,disabled:n=!1,...s}=t,i=oj(r),c=Dr(L_,r),l=c.disabled||n,d=la(a,c.onTriggerChange),h=ij(r),u=g.useRef("touch"),[p,m,y]=K_(f=>{const v=h().filter(j=>!j.disabled),k=v.find(j=>j.value===c.value),w=Q_(v,f,k);w!==void 0&&c.onValueChange(w.value)}),x=f=>{l||(c.onOpenChange(!0),y()),f&&(c.triggerPointerDownPosRef.current={x:Math.round(f.pageX),y:Math.round(f.pageY)})};return e.jsx(qS,{asChild:!0,...i,children:e.jsx(Zt.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Y_(c.value)?"":void 0,...s,ref:d,onClick:pt(s.onClick,f=>{f.currentTarget.focus(),u.current!=="mouse"&&x(f)}),onPointerDown:pt(s.onPointerDown,f=>{u.current=f.pointerType;const v=f.target;v.hasPointerCapture(f.pointerId)&&v.releasePointerCapture(f.pointerId),f.button===0&&f.ctrlKey===!1&&f.pointerType==="mouse"&&(x(f),f.preventDefault())}),onKeyDown:pt(s.onKeyDown,f=>{const v=p.current!=="";!(f.ctrlKey||f.altKey||f.metaKey)&&f.key.length===1&&m(f.key),!(v&&f.key===" ")&&yB.includes(f.key)&&(x(),f.preventDefault())})})})});N_.displayName=L_;var I_="SelectValue",A_=g.forwardRef((t,a)=>{const{__scopeSelect:r,className:n,style:s,children:i,placeholder:c="",...l}=t,d=Dr(I_,r),{onValueNodeHasChildrenChange:h}=d,u=i!==void 0,p=la(a,d.onValueNodeChange);return za(()=>{h(u)},[h,u]),e.jsx(Zt.span,{...l,ref:p,style:{pointerEvents:"none"},children:Y_(d.value)?e.jsx(e.Fragment,{children:c}):i})});A_.displayName=I_;var vB="SelectIcon",P_=g.forwardRef((t,a)=>{const{__scopeSelect:r,children:n,...s}=t;return e.jsx(Zt.span,{"aria-hidden":!0,...s,ref:a,children:n||"▼"})});P_.displayName=vB;var wB="SelectPortal",__=t=>e.jsx(W9,{asChild:!0,...t});__.displayName=wB;var Co="SelectContent",R_=g.forwardRef((t,a)=>{const r=Dr(Co,t.__scopeSelect),[n,s]=g.useState();if(za(()=>{s(new DocumentFragment)},[]),!r.open){const i=n;return i?q9.createPortal(e.jsx(T_,{scope:t.__scopeSelect,children:e.jsx(sj.Slot,{scope:t.__scopeSelect,children:e.jsx("div",{children:t.children})})}),i):null}return e.jsx(q_,{...t,ref:a})});R_.displayName=Co;var ya=10,[T_,zr]=uc(Co),bB="SelectContentImpl",MB=at("SelectContent.RemoveScroll"),q_=g.forwardRef((t,a)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:c,side:l,sideOffset:d,align:h,alignOffset:u,arrowPadding:p,collisionBoundary:m,collisionPadding:y,sticky:x,hideWhenDetached:f,avoidCollisions:v,...k}=t,w=Dr(Co,r),[j,S]=g.useState(null),[C,A]=g.useState(null),L=la(a,Z=>S(Z)),[b,N]=g.useState(null),[q,P]=g.useState(null),R=ij(r),[T,$]=g.useState(!1),W=g.useRef(!1);g.useEffect(()=>{if(j)return lS(j)},[j]),cS();const B=g.useCallback(Z=>{const[te,...ve]=R().map(he=>he.ref.current),[fe]=ve.slice(-1),re=document.activeElement;for(const he of Z)if(he===re||(he==null||he.scrollIntoView({block:"nearest"}),he===te&&C&&(C.scrollTop=0),he===fe&&C&&(C.scrollTop=C.scrollHeight),he==null||he.focus(),document.activeElement!==re))return},[R,C]),U=g.useCallback(()=>B([b,j]),[B,b,j]);g.useEffect(()=>{T&&U()},[T,U]);const{onOpenChange:O,triggerPointerDownPosRef:oe}=w;g.useEffect(()=>{if(j){let Z={x:0,y:0};const te=fe=>{var re,he;Z={x:Math.abs(Math.round(fe.pageX)-(((re=oe.current)==null?void 0:re.x)??0)),y:Math.abs(Math.round(fe.pageY)-(((he=oe.current)==null?void 0:he.y)??0))}},ve=fe=>{Z.x<=10&&Z.y<=10?fe.preventDefault():j.contains(fe.target)||O(!1),document.removeEventListener("pointermove",te),oe.current=null};return oe.current!==null&&(document.addEventListener("pointermove",te),document.addEventListener("pointerup",ve,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",te),document.removeEventListener("pointerup",ve,{capture:!0})}}},[j,O,oe]),g.useEffect(()=>{const Z=()=>O(!1);return window.addEventListener("blur",Z),window.addEventListener("resize",Z),()=>{window.removeEventListener("blur",Z),window.removeEventListener("resize",Z)}},[O]);const[ae,Y]=K_(Z=>{const te=R().filter(re=>!re.disabled),ve=te.find(re=>re.ref.current===document.activeElement),fe=Q_(te,Z,ve);fe&&setTimeout(()=>fe.ref.current.focus())}),J=g.useCallback((Z,te,ve)=>{const fe=!W.current&&!ve;(w.value!==void 0&&w.value===te||fe)&&(N(Z),fe&&(W.current=!0))},[w.value]),Q=g.useCallback(()=>j==null?void 0:j.focus(),[j]),ee=g.useCallback((Z,te,ve)=>{const fe=!W.current&&!ve;(w.value!==void 0&&w.value===te||fe)&&P(Z)},[w.value]),ue=n==="popper"?kC:D_,we=ue===kC?{side:l,sideOffset:d,align:h,alignOffset:u,arrowPadding:p,collisionBoundary:m,collisionPadding:y,sticky:x,hideWhenDetached:f,avoidCollisions:v}:{};return e.jsx(T_,{scope:r,content:j,viewport:C,onViewportChange:A,itemRefCallback:J,selectedItem:b,onItemLeave:Q,itemTextRefCallback:ee,focusSelectedItem:U,selectedItemText:q,position:n,isPositioned:T,searchRef:ae,children:e.jsx(X9,{as:MB,allowPinchZoom:!0,children:e.jsx(G9,{asChild:!0,trapped:w.open,onMountAutoFocus:Z=>{Z.preventDefault()},onUnmountAutoFocus:pt(s,Z=>{var te;(te=w.trigger)==null||te.focus({preventScroll:!0}),Z.preventDefault()}),children:e.jsx(U9,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:Z=>Z.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:e.jsx(ue,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:Z=>Z.preventDefault(),...k,...we,onPlaced:()=>$(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",...k.style},onKeyDown:pt(k.onKeyDown,Z=>{const te=Z.ctrlKey||Z.altKey||Z.metaKey;if(Z.key==="Tab"&&Z.preventDefault(),!te&&Z.key.length===1&&Y(Z.key),["ArrowUp","ArrowDown","Home","End"].includes(Z.key)){let fe=R().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes(Z.key)&&(fe=fe.slice().reverse()),["ArrowUp","ArrowDown"].includes(Z.key)){const re=Z.target,he=fe.indexOf(re);fe=fe.slice(he+1)}setTimeout(()=>B(fe)),Z.preventDefault()}})})})})})})});q_.displayName=bB;var jB="SelectItemAlignedPosition",D_=g.forwardRef((t,a)=>{const{__scopeSelect:r,onPlaced:n,...s}=t,i=Dr(Co,r),c=zr(Co,r),[l,d]=g.useState(null),[h,u]=g.useState(null),p=la(a,L=>u(L)),m=ij(r),y=g.useRef(!1),x=g.useRef(!0),{viewport:f,selectedItem:v,selectedItemText:k,focusSelectedItem:w}=c,j=g.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&h&&f&&v&&k){const L=i.trigger.getBoundingClientRect(),b=h.getBoundingClientRect(),N=i.valueNode.getBoundingClientRect(),q=k.getBoundingClientRect();if(i.dir!=="rtl"){const re=q.left-b.left,he=N.left-re,Ae=L.left-he,Pe=L.width+Ae,_e=Math.max(Pe,b.width),Qe=window.innerWidth-ya,st=WL(he,[ya,Math.max(ya,Qe-_e)]);l.style.minWidth=Pe+"px",l.style.left=st+"px"}else{const re=b.right-q.right,he=window.innerWidth-N.right-re,Ae=window.innerWidth-L.right-he,Pe=L.width+Ae,_e=Math.max(Pe,b.width),Qe=window.innerWidth-ya,st=WL(he,[ya,Math.max(ya,Qe-_e)]);l.style.minWidth=Pe+"px",l.style.right=st+"px"}const P=m(),R=window.innerHeight-ya*2,T=f.scrollHeight,$=window.getComputedStyle(h),W=parseInt($.borderTopWidth,10),B=parseInt($.paddingTop,10),U=parseInt($.borderBottomWidth,10),O=parseInt($.paddingBottom,10),oe=W+B+T+O+U,ae=Math.min(v.offsetHeight*5,oe),Y=window.getComputedStyle(f),J=parseInt(Y.paddingTop,10),Q=parseInt(Y.paddingBottom,10),ee=L.top+L.height/2-ya,ue=R-ee,we=v.offsetHeight/2,Z=v.offsetTop+we,te=W+B+Z,ve=oe-te;if(te<=ee){const re=P.length>0&&v===P[P.length-1].ref.current;l.style.bottom="0px";const he=h.clientHeight-f.offsetTop-f.offsetHeight,Ae=Math.max(ue,we+(re?Q:0)+he+U),Pe=te+Ae;l.style.height=Pe+"px"}else{const re=P.length>0&&v===P[0].ref.current;l.style.top="0px";const Ae=Math.max(ee,W+f.offsetTop+(re?J:0)+we)+ve;l.style.height=Ae+"px",f.scrollTop=te-ee+f.offsetTop}l.style.margin=`${ya}px 0`,l.style.minHeight=ae+"px",l.style.maxHeight=R+"px",n==null||n(),requestAnimationFrame(()=>y.current=!0)}},[m,i.trigger,i.valueNode,l,h,f,v,k,i.dir,n]);za(()=>j(),[j]);const[S,C]=g.useState();za(()=>{h&&C(window.getComputedStyle(h).zIndex)},[h]);const A=g.useCallback(L=>{L&&x.current===!0&&(j(),w==null||w(),x.current=!1)},[j,w]);return e.jsx(SB,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:y,onScrollButtonChange:A,children:e.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:e.jsx(Zt.div,{...s,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});D_.displayName=jB;var CB="SelectPopperPosition",kC=g.forwardRef((t,a)=>{const{__scopeSelect:r,align:n="start",collisionPadding:s=ya,...i}=t,c=oj(r);return e.jsx(M_,{...c,...i,ref:a,align:n,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});kC.displayName=CB;var[SB,DS]=uc(Co,{}),vC="SelectViewport",z_=g.forwardRef((t,a)=>{const{__scopeSelect:r,nonce:n,...s}=t,i=zr(vC,r),c=DS(vC,r),l=la(a,i.onViewportChange),d=g.useRef(0);return e.jsxs(e.Fragment,{children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),e.jsx(sj.Slot,{scope:r,children:e.jsx(Zt.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:pt(s.onScroll,h=>{const u=h.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:m}=c;if(m!=null&&m.current&&p){const y=Math.abs(d.current-u.scrollTop);if(y>0){const x=window.innerHeight-ya*2,f=parseFloat(p.style.minHeight),v=parseFloat(p.style.height),k=Math.max(f,v);if(k<x){const w=k+y,j=Math.min(x,w),S=w-j;p.style.height=j+"px",p.style.bottom==="0px"&&(u.scrollTop=S>0?S:0,p.style.justifyContent="flex-end")}}}d.current=u.scrollTop})})})]})});z_.displayName=vC;var E_="SelectGroup",[LB,NB]=uc(E_),IB=g.forwardRef((t,a)=>{const{__scopeSelect:r,...n}=t,s=SS();return e.jsx(LB,{scope:r,id:s,children:e.jsx(Zt.div,{role:"group","aria-labelledby":s,...n,ref:a})})});IB.displayName=E_;var F_="SelectLabel",O_=g.forwardRef((t,a)=>{const{__scopeSelect:r,...n}=t,s=NB(F_,r);return e.jsx(Zt.div,{id:s.id,...n,ref:a})});O_.displayName=F_;var P9="SelectItem",[AB,H_]=uc(P9),V_=g.forwardRef((t,a)=>{const{__scopeSelect:r,value:n,disabled:s=!1,textValue:i,...c}=t,l=Dr(P9,r),d=zr(P9,r),h=l.value===n,[u,p]=g.useState(i??""),[m,y]=g.useState(!1),x=la(a,w=>{var j;return(j=d.itemRefCallback)==null?void 0:j.call(d,w,n,s)}),f=SS(),v=g.useRef("touch"),k=()=>{s||(l.onValueChange(n),l.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return e.jsx(AB,{scope:r,value:n,disabled:s,textId:f,isSelected:h,onItemTextChange:g.useCallback(w=>{p(j=>j||((w==null?void 0:w.textContent)??"").trim())},[]),children:e.jsx(sj.ItemSlot,{scope:r,value:n,disabled:s,textValue:u,children:e.jsx(Zt.div,{role:"option","aria-labelledby":f,"data-highlighted":m?"":void 0,"aria-selected":h&&m,"data-state":h?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...c,ref:x,onFocus:pt(c.onFocus,()=>y(!0)),onBlur:pt(c.onBlur,()=>y(!1)),onClick:pt(c.onClick,()=>{v.current!=="mouse"&&k()}),onPointerUp:pt(c.onPointerUp,()=>{v.current==="mouse"&&k()}),onPointerDown:pt(c.onPointerDown,w=>{v.current=w.pointerType}),onPointerMove:pt(c.onPointerMove,w=>{var j;v.current=w.pointerType,s?(j=d.onItemLeave)==null||j.call(d):v.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:pt(c.onPointerLeave,w=>{var j;w.currentTarget===document.activeElement&&((j=d.onItemLeave)==null||j.call(d))}),onKeyDown:pt(c.onKeyDown,w=>{var S;((S=d.searchRef)==null?void 0:S.current)!==""&&w.key===" "||(mB.includes(w.key)&&k(),w.key===" "&&w.preventDefault())})})})})});V_.displayName=P9;var wc="SelectItemText",B_=g.forwardRef((t,a)=>{const{__scopeSelect:r,className:n,style:s,...i}=t,c=Dr(wc,r),l=zr(wc,r),d=H_(wc,r),h=kB(wc,r),[u,p]=g.useState(null),m=la(a,k=>p(k),d.onItemTextChange,k=>{var w;return(w=l.itemTextRefCallback)==null?void 0:w.call(l,k,d.value,d.disabled)}),y=u==null?void 0:u.textContent,x=g.useMemo(()=>e.jsx("option",{value:d.value,disabled:d.disabled,children:y},d.value),[d.disabled,d.value,y]),{onNativeOptionAdd:f,onNativeOptionRemove:v}=h;return za(()=>(f(x),()=>v(x)),[f,v,x]),e.jsxs(e.Fragment,{children:[e.jsx(Zt.span,{id:d.textId,...i,ref:m}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren?q9.createPortal(i.children,c.valueNode):null]})});B_.displayName=wc;var $_="SelectItemIndicator",U_=g.forwardRef((t,a)=>{const{__scopeSelect:r,...n}=t;return H_($_,r).isSelected?e.jsx(Zt.span,{"aria-hidden":!0,...n,ref:a}):null});U_.displayName=$_;var wC="SelectScrollUpButton",G_=g.forwardRef((t,a)=>{const r=zr(wC,t.__scopeSelect),n=DS(wC,t.__scopeSelect),[s,i]=g.useState(!1),c=la(a,n.onScrollButtonChange);return za(()=>{if(r.viewport&&r.isPositioned){let l=function(){const h=d.scrollTop>0;i(h)};const d=r.viewport;return l(),d.addEventListener("scroll",l),()=>d.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),s?e.jsx(Z_,{...t,ref:c,onAutoScroll:()=>{const{viewport:l,selectedItem:d}=r;l&&d&&(l.scrollTop=l.scrollTop-d.offsetHeight)}}):null});G_.displayName=wC;var bC="SelectScrollDownButton",W_=g.forwardRef((t,a)=>{const r=zr(bC,t.__scopeSelect),n=DS(bC,t.__scopeSelect),[s,i]=g.useState(!1),c=la(a,n.onScrollButtonChange);return za(()=>{if(r.viewport&&r.isPositioned){let l=function(){const h=d.scrollHeight-d.clientHeight,u=Math.ceil(d.scrollTop)<h;i(u)};const d=r.viewport;return l(),d.addEventListener("scroll",l),()=>d.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),s?e.jsx(Z_,{...t,ref:c,onAutoScroll:()=>{const{viewport:l,selectedItem:d}=r;l&&d&&(l.scrollTop=l.scrollTop+d.offsetHeight)}}):null});W_.displayName=bC;var Z_=g.forwardRef((t,a)=>{const{__scopeSelect:r,onAutoScroll:n,...s}=t,i=zr("SelectScrollButton",r),c=g.useRef(null),l=ij(r),d=g.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return g.useEffect(()=>()=>d(),[d]),za(()=>{var u;const h=l().find(p=>p.ref.current===document.activeElement);(u=h==null?void 0:h.ref.current)==null||u.scrollIntoView({block:"nearest"})},[l]),e.jsx(Zt.div,{"aria-hidden":!0,...s,ref:a,style:{flexShrink:0,...s.style},onPointerDown:pt(s.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(n,50))}),onPointerMove:pt(s.onPointerMove,()=>{var h;(h=i.onItemLeave)==null||h.call(i),c.current===null&&(c.current=window.setInterval(n,50))}),onPointerLeave:pt(s.onPointerLeave,()=>{d()})})}),PB="SelectSeparator",J_=g.forwardRef((t,a)=>{const{__scopeSelect:r,...n}=t;return e.jsx(Zt.div,{"aria-hidden":!0,...n,ref:a})});J_.displayName=PB;var MC="SelectArrow",_B=g.forwardRef((t,a)=>{const{__scopeSelect:r,...n}=t,s=oj(r),i=Dr(MC,r),c=zr(MC,r);return i.open&&c.position==="popper"?e.jsx(j_,{...s,...n,ref:a}):null});_B.displayName=MC;var RB="SelectBubbleInput",X_=g.forwardRef(({__scopeSelect:t,value:a,...r},n)=>{const s=g.useRef(null),i=la(n,s),c=wS(a);return g.useEffect(()=>{const l=s.current;if(!l)return;const d=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(d,"value").set;if(c!==a&&u){const p=new Event("change",{bubbles:!0});u.call(l,a),l.dispatchEvent(p)}},[c,a]),e.jsx(Zt.select,{...r,style:{...C_,...r.style},ref:i,defaultValue:a})});X_.displayName=RB;function Y_(t){return t===""||t===void 0}function K_(t){const a=iB(t),r=g.useRef(""),n=g.useRef(0),s=g.useCallback(c=>{const l=r.current+c;a(l),function d(h){r.current=h,window.clearTimeout(n.current),h!==""&&(n.current=window.setTimeout(()=>d(""),1e3))}(l)},[a]),i=g.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,s,i]}function Q_(t,a,r){const s=a.length>1&&Array.from(a).every(h=>h===a[0])?a[0]:a,i=r?t.indexOf(r):-1;let c=TB(t,Math.max(i,0));s.length===1&&(c=c.filter(h=>h!==r));const d=c.find(h=>h.textValue.toLowerCase().startsWith(s.toLowerCase()));return d!==r?d:void 0}function TB(t,a){return t.map((r,n)=>t[(a+n)%t.length])}var qB=S_,eR=N_,DB=A_,zB=P_,EB=__,tR=R_,FB=z_,aR=O_,rR=V_,OB=B_,HB=U_,nR=G_,sR=W_,zS=J_;const So=qB,Lo=DB,_r=g.forwardRef(({className:t,children:a,...r},n)=>e.jsxs(eR,{ref:n,className:me("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...r,children:[a,e.jsx(zB,{asChild:!0,children:e.jsx(bP,{className:"h-4 w-4 opacity-50"})})]}));_r.displayName=eR.displayName;const iR=g.forwardRef(({className:t,...a},r)=>e.jsx(nR,{ref:r,className:me("flex cursor-default items-center justify-center py-1",t),...a,children:e.jsx(aO,{className:"h-4 w-4"})}));iR.displayName=nR.displayName;const oR=g.forwardRef(({className:t,...a},r)=>e.jsx(sR,{ref:r,className:me("flex cursor-default items-center justify-center py-1",t),...a,children:e.jsx(bP,{className:"h-4 w-4"})}));oR.displayName=sR.displayName;const Rr=g.forwardRef(({className:t,children:a,position:r="popper",...n},s)=>e.jsx(EB,{children:e.jsxs(tR,{ref:s,className:me("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,...n,children:[e.jsx(iR,{}),e.jsx(FB,{className:me("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),e.jsx(oR,{})]})}));Rr.displayName=tR.displayName;const VB=g.forwardRef(({className:t,...a},r)=>e.jsx(aR,{ref:r,className:me("px-2 py-1.5 text-sm font-semibold",t),...a}));VB.displayName=aR.displayName;const Vt=g.forwardRef(({className:t,children:a,...r},n)=>e.jsxs(rR,{ref:n,className:me("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r,children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(HB,{children:e.jsx(QF,{className:"h-4 w-4"})})}),e.jsx(OB,{children:a})]}));Vt.displayName=rR.displayName;const BB=g.forwardRef(({className:t,...a},r)=>e.jsx(zS,{ref:r,className:me("-mx-1 my-1 h-px bg-muted",t),...a}));BB.displayName=zS.displayName;function $B(t,a,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function UB(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:m,children:y,...x}=p,f=((k=m==null?void 0:m[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:y})};h.displayName=i+"Provider";function u(p,m){var f;const y=((f=m==null?void 0:m[t])==null?void 0:f[d])||l,x=g.useContext(y);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,GB(s,...a)]}function GB(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}var dl=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},WB=g[" useInsertionEffect ".trim().toString()]||dl;function ZB({prop:t,defaultProp:a,onChange:r=()=>{},caller:n}){const[s,i,c]=JB({defaultProp:a,onChange:r}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,n])}const h=g.useCallback(u=>{var p;if(l){const m=XB(u)?u(t):u;m!==t&&((p=c.current)==null||p.call(c,m))}else i(u)},[l,t,i,c]);return[d,h]}function JB({defaultProp:t,onChange:a}){const[r,n]=g.useState(t),s=g.useRef(r),i=g.useRef(a);return WB(()=>{i.current=a},[a]),g.useEffect(()=>{var c;s.current!==r&&((c=i.current)==null||c.call(i,r),s.current=r)},[r,s]),[r,n,i]}function XB(t){return typeof t=="function"}function lN(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function YB(...t){return a=>{let r=!1;const n=t.map(s=>{const i=lN(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():lN(t[s],null)}}}}function cR(...t){return g.useCallback(YB(...t),t)}var KB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ES=KB.reduce((t,a)=>{const r=at(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{});function QB(t,a){return g.useReducer((r,n)=>a[r][n]??r,t)}var lR=t=>{const{present:a,children:r}=t,n=e$(a),s=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),i=cR(n.ref,t$(s));return typeof r=="function"||n.isPresent?g.cloneElement(s,{ref:i}):null};lR.displayName="Presence";function e$(t){const[a,r]=g.useState(),n=g.useRef(null),s=g.useRef(t),i=g.useRef("none"),c=t?"mounted":"unmounted",[l,d]=QB(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=Il(n.current);i.current=l==="mounted"?h:"none"},[l]),dl(()=>{const h=n.current,u=s.current;if(u!==t){const m=i.current,y=Il(h);t?d("MOUNT"):y==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&m!==y?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),dl(()=>{if(a){let h;const u=a.ownerDocument.defaultView??window,p=y=>{const f=Il(n.current).includes(CSS.escape(y.animationName));if(y.target===a&&f&&(d("ANIMATION_END"),!s.current)){const v=a.style.animationFillMode;a.style.animationFillMode="forwards",h=u.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=v)})}},m=y=>{y.target===a&&(i.current=Il(n.current))};return a.addEventListener("animationstart",m),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{u.clearTimeout(h),a.removeEventListener("animationstart",m),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{n.current=h?getComputedStyle(h):null,r(h)},[])}}function Il(t){return(t==null?void 0:t.animationName)||"none"}function t$(t){var n,s;let a=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var a$=g[" useId ".trim().toString()]||(()=>{}),r$=0;function n$(t){const[a,r]=g.useState(a$());return dl(()=>{t||r(n=>n??String(r$++))},[t]),t||(a?`radix-${a}`:"")}var cj="Collapsible",[s$,tW]=UB(cj),[i$,FS]=s$(cj),dR=g.forwardRef((t,a)=>{const{__scopeCollapsible:r,open:n,defaultOpen:s,disabled:i,onOpenChange:c,...l}=t,[d,h]=ZB({prop:n,defaultProp:s??!1,onChange:c,caller:cj});return e.jsx(i$,{scope:r,disabled:i,contentId:n$(),open:d,onOpenToggle:g.useCallback(()=>h(u=>!u),[h]),children:e.jsx(ES.div,{"data-state":HS(d),"data-disabled":i?"":void 0,...l,ref:a})})});dR.displayName=cj;var hR="CollapsibleTrigger",uR=g.forwardRef((t,a)=>{const{__scopeCollapsible:r,...n}=t,s=FS(hR,r);return e.jsx(ES.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":HS(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...n,ref:a,onClick:$B(t.onClick,s.onOpenToggle)})});uR.displayName=hR;var OS="CollapsibleContent",pR=g.forwardRef((t,a)=>{const{forceMount:r,...n}=t,s=FS(OS,t.__scopeCollapsible);return e.jsx(lR,{present:r||s.open,children:({present:i})=>e.jsx(o$,{...n,ref:a,present:i})})});pR.displayName=OS;var o$=g.forwardRef((t,a)=>{const{__scopeCollapsible:r,present:n,children:s,...i}=t,c=FS(OS,r),[l,d]=g.useState(n),h=g.useRef(null),u=cR(a,h),p=g.useRef(0),m=p.current,y=g.useRef(0),x=y.current,f=c.open||l,v=g.useRef(f),k=g.useRef(void 0);return g.useEffect(()=>{const w=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(w)},[]),dl(()=>{const w=h.current;if(w){k.current=k.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const j=w.getBoundingClientRect();p.current=j.height,y.current=j.width,v.current||(w.style.transitionDuration=k.current.transitionDuration,w.style.animationName=k.current.animationName),d(n)}},[c.open,n]),e.jsx(ES.div,{"data-state":HS(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!f,...i,ref:u,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...t.style},children:f&&s})});function HS(t){return t?"open":"closed"}var c$=dR;const l$=c$,d$=uR,h$=pR,yR=[{category:"Online Casino Operators",items:[{label:"Slots",matchers:["slot","slots"]},{label:"Live Casino",matchers:["live casino","live dealer","live-casino"]},{label:"Jackpots",matchers:["jackpot","jackpots"]},{label:"Sportsbook",matchers:["sportsbook"]},{label:"Crypto",matchers:["crypto","crypto casino","crypto-casino"]}]},{category:"Providers",items:[{label:"Game Provider",matchers:["aggregation","aggregator","game-platform","games","game-api"]},{label:"Live Casino",matchers:["live-casino-studio","live-casino-provider","live-casino","live casino","live studios","live dealer","live dealers","live dealer studio","live dealer studios"]},{label:"Game Platform",matchers:["aggregation","aggregator","game-platform","games","game-api"]},{label:"Bonus Platform",matchers:["bonus","promotions","promo","loyalty"]},{label:"Backoffice",matchers:["backoffice","back office","crm","admin"]},{label:"Gamification",matchers:["gamification"]},{label:"Tech Providers",matchers:["AI","Integrations","Development"]}]},{category:"Affiliate",items:[{label:"Affiliate Agencies",matchers:["affiliate agencies","affiliate","affiliate agency","affiliate marketing"]},{label:"Affiliate Program",matchers:["affiliate program","affiliate programs"]},{label:"Tracking Tools",matchers:["tracking","attribution"]},{label:"Affiliate Tools",matchers:["affiliate tools","attribution","Marketing Platform","Marketing Automation","Marketing Automation Platform"]}]},{category:"Payments",items:[{label:"Payment Processing",matchers:["payment","psp","wallet"]}]},{category:"Compliance",items:[{label:"KYC",matchers:["kyc","know your customer"]},{label:"AML",matchers:["aml","anti-money"]},{label:"Risk & Fraud",matchers:["risk","fraud"]}]}],mR=yR.flatMap(t=>t.items),fR={search:"",companyType:"",verticals:[],productCategories:[],employeeRanges:[],products:[],openRolesRanges:[],yearsActiveRanges:[],hiringNow:!1,scope:"company",claimedOnly:!1,hasLicenses:!1,hasAwards:!1},u$=t=>Array.from(new Set(t.filter(Boolean))).sort((a,r)=>a.localeCompare(r)),p$=t=>{if(typeof t=="string")return t.toLowerCase();if(typeof t=="number")return String(t);if(typeof t=="object"&&t!==null){if("name"in t&&typeof t.name=="string")return t.name.toLowerCase();if("title"in t&&typeof t.title=="string")return t.title.toLowerCase()}return""},y$=t=>{var a,r;if(typeof t=="string")return t;if(typeof t=="object"&&t!==null){const n=t;return n.title??((a=n.tag)==null?void 0:a.name)??((r=n.tag)==null?void 0:r.slug)??null}return null},m$=t=>{const a=t.productsAndServices.flatMap(r=>[r.name,r.category,r.description,...r.keyDifferentiators??[]]);return[t.name,t.companyType,t.classification.businessModel,...t.classification.verticals,...t.classification.productCategories,...t.classification.tags.map(y$).filter(r=>!!r),...a].filter(Boolean)},f$=t=>{const a=m$(t).map(p$).join(" ");return mR.filter(r=>r.matchers.some(n=>a.includes(n))).map(r=>r.label)},x$=t=>{if(!t.overview.foundedYear)return null;const a=new Date().getFullYear();return Math.max(0,a-t.overview.foundedYear)},g$=t=>u$([t.classification.businessModel,...t.productsAndServices.map(a=>a.integrationModel),...t.productsAndServices.flatMap(a=>a.keyDifferentiators)]),k$=t=>{var n;const a=x$(t),r=((n=t.group)==null?void 0:n.intelligenceProfile)??t.signalsAndInsights;return{products:f$(t),capabilities:g$(t),credibility:{licenses:t.trustAndCompliance.licenses.length,awards:t.trustAndCompliance.awards.length,certifications:t.trustAndCompliance.certifications.length,yearsActive:a},commercialSignals:{profileViews30d:r.profileViews30d,followsCount:r.followsCount,hiringIntensity:r.hiringIntensity,searchImpressions:t.visibilityMetrics.searchImpressions,profileClicks:t.visibilityMetrics.profileClicks,externalClicks:t.visibilityMetrics.externalClicks}}},dN=({filters:t,options:a,onFiltersChange:r,onClearFilters:n,resultCount:s})=>{const[i,c]=M.useState({companyType:!0,verticals:!0,products:!0,normalizedProducts:!0,employees:!1,hiring:!0,credibility:!0,signals:!1}),l=y=>{c(x=>({...x,[y]:!x[y]}))},d={companyTypes:a.companyTypes??[],verticals:a.verticals??[],productCategories:a.productCategories??[],employeeRanges:a.employeeRanges??[],products:a.products??[],openRolesRanges:a.openRolesRanges??[],yearsActiveRanges:a.yearsActiveRanges??[]},h=(y,x)=>{r({...t,[y]:x})},u=(y,x)=>{const f=t[y],v=f.includes(x)?f.filter(k=>k!==x):[...f,x];h(y,v)},p=(t.companyType?1:0)+t.verticals.length+t.productCategories.length+t.employeeRanges.length+t.products.length+t.openRolesRanges.length+t.yearsActiveRanges.length+(t.hiringNow?1:0)+(t.claimedOnly?1:0)+(t.hasLicenses?1:0)+(t.hasAwards?1:0),m=({id:y,title:x,icon:f,children:v})=>e.jsxs(l$,{open:i[y],onOpenChange:()=>l(y),children:[e.jsxs(d$,{className:"flex items-center justify-between w-full py-3 text-left group",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(f,{className:"w-4 h-4 text-muted-foreground"}),e.jsx("span",{className:"font-medium text-sm",children:x})]}),i[y]?e.jsx(Oo,{className:"w-4 h-4 text-muted-foreground"}):e.jsx(mr,{className:"w-4 h-4 text-muted-foreground"})]}),e.jsx(h$,{className:"pb-4",children:v})]});return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"relative",children:[e.jsx($t,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(Re,{placeholder:"Search companies, products, tags...",value:t.search,onChange:y=>h("search",y.target.value),className:"pl-10"})]}),e.jsxs("div",{className:"flex items-center justify-between gap-2 rounded-lg border border-border px-3 py-2",children:[e.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"View scope"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(D,{type:"button",size:"sm",variant:t.scope==="company"?"default":"outline",onClick:()=>h("scope","company"),children:"Companies"}),e.jsx(D,{type:"button",size:"sm",variant:t.scope==="group"?"default":"outline",onClick:()=>h("scope","group"),children:"Groups"})]})]}),p>0&&e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"text-sm text-muted-foreground",children:[p," filter",p!==1?"s":""," active"]}),e.jsxs(D,{variant:"ghost",size:"sm",onClick:n,className:"text-accent h-auto py-1",children:[e.jsx(Ct,{className:"w-3 h-3 mr-1"}),"Clear all"]})]}),e.jsxs("div",{className:"text-sm font-medium text-foreground py-2 px-3 bg-secondary/50 rounded-lg",children:[s," ",s===1?t.scope==="group"?"group":"company":t.scope==="group"?"groups":"companies"," found"]}),e.jsxs("div",{className:"divide-y divide-border",children:[e.jsx(m,{id:"companyType",title:"Company Type",icon:gt,children:e.jsxs(So,{value:t.companyType||"all",onValueChange:y=>h("companyType",y==="all"?"":y),children:[e.jsx(_r,{className:"w-full",children:e.jsx(Lo,{placeholder:"All company types"})}),e.jsxs(Rr,{children:[e.jsx(Vt,{value:"all",children:"All company types"}),d.companyTypes.map(y=>e.jsx(Vt,{value:y,children:y},y))]})]})}),e.jsx(m,{id:"verticals",title:"Verticals",icon:Pc,children:e.jsx("div",{className:"flex flex-wrap gap-2",children:d.verticals.map(y=>e.jsx(ge,{variant:t.verticals.includes(y)?"default":"outline",className:"cursor-pointer transition-colors",onClick:()=>u("verticals",y),children:y},y))})}),e.jsx(m,{id:"products",title:"Products & Services",icon:na,children:e.jsx("div",{className:"space-y-2 max-h-48 overflow-y-auto",children:d.productCategories.map(y=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Dt,{id:`cat-${y}`,checked:t.productCategories.includes(y),onCheckedChange:()=>u("productCategories",y)}),e.jsx(ne,{htmlFor:`cat-${y}`,className:"text-sm font-normal cursor-pointer flex-1",children:y})]},y))})}),e.jsx(m,{id:"normalizedProducts",title:"Normalized Products",icon:La,children:e.jsx("div",{className:"space-y-3",children:yR.map(y=>e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-semibold uppercase text-muted-foreground mb-2",children:y.category}),e.jsx("div",{className:"space-y-2",children:y.items.map(x=>x.label).filter(x=>(d.products??[]).includes(x)).map(x=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Dt,{id:`product-${x}`,checked:t.products.includes(x),onCheckedChange:()=>u("products",x)}),e.jsx(ne,{htmlFor:`product-${x}`,className:"text-sm font-normal cursor-pointer flex-1",children:x})]},x))})]},y.category))})}),e.jsx(m,{id:"employees",title:"Company Size",icon:Nt,children:e.jsx("div",{className:"space-y-2",children:d.employeeRanges.map(y=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Dt,{id:`emp-${y}`,checked:t.employeeRanges.includes(y),onCheckedChange:()=>u("employeeRanges",y)}),e.jsxs(ne,{htmlFor:`emp-${y}`,className:"text-sm font-normal cursor-pointer flex-1",children:[y," employees"]})]},y))})}),e.jsx(m,{id:"hiring",title:"Hiring",icon:nt,children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Dt,{id:"hiring-now",checked:t.hiringNow,onCheckedChange:y=>h("hiringNow",y===!0)}),e.jsxs(ne,{htmlFor:"hiring-now",className:"text-sm font-normal cursor-pointer flex items-center gap-2",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-gaming-success"}),"Hiring now"]})]}),e.jsxs("div",{children:[e.jsx(ne,{className:"text-xs text-muted-foreground mb-2 inline-flex items-center",children:"Open roles count"}),e.jsx("div",{className:"space-y-2",children:d.openRolesRanges.map(y=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Dt,{id:`open-roles-${y}`,checked:t.openRolesRanges.includes(y),onCheckedChange:()=>u("openRolesRanges",y)}),e.jsxs(ne,{htmlFor:`open-roles-${y}`,className:"text-sm font-normal cursor-pointer flex-1",children:[y," roles"]})]},y))})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Dt,{id:"claimed-only",checked:t.claimedOnly,onCheckedChange:y=>h("claimedOnly",y===!0)}),e.jsxs(ne,{htmlFor:"claimed-only",className:"text-sm font-normal cursor-pointer flex items-center gap-2",children:[e.jsx(it,{className:"w-3.5 h-3.5 text-accent"}),"Claimed profiles only"]})]})]})}),e.jsx(m,{id:"credibility",title:"Credibility",icon:it,children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Dt,{id:"has-licenses",checked:t.hasLicenses,onCheckedChange:y=>h("hasLicenses",y===!0)}),e.jsx(ne,{htmlFor:"has-licenses",className:"text-sm font-normal cursor-pointer",children:"Licensed operators/providers"})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Dt,{id:"has-awards",checked:t.hasAwards,onCheckedChange:y=>h("hasAwards",y===!0)}),e.jsx(ne,{htmlFor:"has-awards",className:"text-sm font-normal cursor-pointer",children:"Award winners"})]}),e.jsxs("div",{children:[e.jsx(ne,{className:"text-xs text-muted-foreground mb-2 inline-flex items-center",children:"Years active"}),e.jsx("div",{className:"space-y-2",children:d.yearsActiveRanges.map(y=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Dt,{id:`years-${y}`,checked:t.yearsActiveRanges.includes(y),onCheckedChange:()=>u("yearsActiveRanges",y)}),e.jsxs(ne,{htmlFor:`years-${y}`,className:"text-sm font-normal cursor-pointer flex-1",children:[y," years"]})]},y))})]})]})})]}),e.jsxs("div",{className:"p-4 bg-gradient-to-br from-accent/10 to-gaming-gold/10 rounded-xl border border-accent/20",children:[e.jsx("h4",{className:"font-semibold text-sm mb-1",children:"Need vendor recommendations?"}),e.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:"Tell us what you need and we'll create a shortlist for you."}),e.jsx(D,{variant:"accent",size:"sm",className:"w-full",children:"Request Intro"})]})]})},v$=({count:t=4})=>e.jsx("div",{className:"space-y-4 animate-fade-in",children:[...Array(t)].map((a,r)=>e.jsx("div",{className:"bg-white rounded-lg shadow-sm p-5 border border-border/50 animate-pulse",children:e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"w-16 h-16 rounded-xl bg-gray-200 flex-shrink-0"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2 mb-2",children:[e.jsxs("div",{className:"space-y-2 flex-1",children:[e.jsx("div",{className:"h-5 bg-gray-200 rounded w-1/3"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"h-3 bg-gray-200 rounded w-28"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-20"})]})]}),e.jsx("div",{className:"h-8 bg-gray-200 rounded w-20"})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[e.jsx("div",{className:"h-5 bg-gray-200 rounded w-20"}),e.jsx("div",{className:"h-5 bg-gray-200 rounded w-24"}),e.jsx("div",{className:"h-5 bg-gray-200 rounded w-16"})]}),e.jsxs("div",{className:"space-y-2 mb-3",children:[e.jsx("div",{className:"h-3 bg-gray-200 rounded w-full"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-3/4"})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[e.jsx("div",{className:"h-5 bg-gray-200 rounded w-16"}),e.jsx("div",{className:"h-5 bg-gray-200 rounded w-14"}),e.jsx("div",{className:"h-5 bg-gray-200 rounded w-20"})]}),e.jsxs("div",{className:"flex items-center justify-between pt-3 border-t border-border/50",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"h-3 bg-gray-200 rounded w-24"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-20"})]}),e.jsx("div",{className:"h-6 bg-gray-200 rounded w-24"})]})]})]})},r))}),w$=t=>{const a=mR.find(r=>r.label===t);return(a==null?void 0:a.label)??t},b$=({entities:t,onClearSelection:a,maxSelections:r})=>e.jsxs(ce,{className:"border-border/60",children:[e.jsxs(xe,{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold",children:"Comparison"}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Comparing ",t.length," of ",r," selected profiles"]})]}),e.jsx(D,{variant:"ghost",size:"sm",onClick:a,children:"Clear selection"})]}),e.jsx(de,{children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("div",{className:"min-w-[640px] grid gap-4",children:[e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Profile"}),t.map(n=>e.jsx("div",{className:"font-semibold text-sm",children:n.name},n.id))]}),e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Products"}),t.map(n=>{const s=n.normalizedProfile;return e.jsx("div",{className:"flex flex-wrap gap-1",children:s.products.length===0?e.jsx("span",{className:"text-xs text-muted-foreground",children:"No normalized products"}):s.products.map(i=>e.jsx(ge,{variant:"secondary",className:"text-xs",children:w$(i)},i))},n.id)})]}),e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Capabilities"}),t.map(n=>{const s=n.normalizedProfile;return e.jsx("div",{className:"flex flex-wrap gap-1",children:s.capabilities.length===0?e.jsx("span",{className:"text-xs text-muted-foreground",children:"No data"}):s.capabilities.map(i=>e.jsx(ge,{variant:"outline",className:"text-xs",children:i},i))},n.id)})]}),e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Credibility"}),t.map(n=>{const s=n.normalizedProfile;return e.jsxs("div",{className:"text-sm text-muted-foreground space-y-1",children:[e.jsxs("div",{children:["Licenses: ",e.jsx("span",{className:"text-foreground",children:s.credibility.licenses})]}),e.jsxs("div",{children:["Awards: ",e.jsx("span",{className:"text-foreground",children:s.credibility.awards})]}),e.jsxs("div",{children:["Years active:"," ",e.jsx("span",{className:"text-foreground",children:s.credibility.yearsActive??"N/A"})]})]},n.id)})]}),e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Commercial Signals"}),t.map(n=>{const s=n.normalizedProfile;return e.jsxs("div",{className:"text-sm text-muted-foreground space-y-1",children:[e.jsxs("div",{children:["Profile views (30d):"," ",e.jsx("span",{className:"text-foreground",children:s.commercialSignals.profileViews30d})]}),e.jsxs("div",{children:["Followers:"," ",e.jsx("span",{className:"text-foreground",children:s.commercialSignals.followsCount})]}),e.jsxs("div",{children:["Hiring intensity:"," ",e.jsx("span",{className:"text-foreground",children:s.commercialSignals.hiringIntensity})]}),e.jsxs("div",{children:["Search impressions:"," ",e.jsx("span",{className:"text-foreground",children:s.commercialSignals.searchImpressions})]})]},n.id)})]})]})})})]}),M$=({viewMode:t,onToggleViewMode:a,selectedItemsPerPage:r,onItemsPerPageChange:n,totalCount:s,startIndex:i,endIndex:c,title:l,items:d})=>e.jsx("div",{className:"lg:block hidden bg-white rounded-lg shadow-sm border border-gray-200 p-4 mb-6",children:e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(gt,{className:"w-5 h-5 text-muted-foreground"}),e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:l})]}),e.jsxs("p",{className:"text-sm text-gray-600",children:["Showing ",e.jsx("span",{className:"font-semibold text-gray-900",children:i}),"–",e.jsx("span",{className:"font-semibold text-gray-900",children:c})," of"," ",e.jsx("span",{className:"font-semibold text-gray-900",children:s})," ",d]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3",children:[e.jsx(EA,{viewMode:t,onToggle:a}),e.jsx(FA,{value:r,onChange:n})]})]})}),j$=()=>e.jsx("section",{className:"bg-gradient-to-br from-primary via-primary to-primary-variant py-12",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-3xl",children:[e.jsxs(bc,{className:"bg-accent/20 text-accent border-accent/30 mb-4",children:[e.jsx(La,{className:"w-3 h-3 mr-1"}),"iGaming Intelligence"]}),e.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-primary-foreground mb-3",children:"iGaming Company Directory"}),e.jsx("p",{className:"text-primary-foreground/80 text-lg",children:"Discover operators, suppliers, affiliates, and service providers. Filter by type, vertical, jurisdiction, and hiring signals."})]})})}),Hj=4,C$=t=>(t.companyType?1:0)+t.verticals.length+t.productCategories.length+t.employeeRanges.length+t.products.length+t.openRolesRanges.length+t.yearsActiveRanges.length+(t.hiringNow?1:0)+(t.claimedOnly?1:0)+(t.hasLicenses?1:0)+(t.hasAwards?1:0),xR=({companies:t,filterOptions:a,loading:r,page:n,pageSize:s,totalCount:i,totalPages:c,onPageChange:l,onPageSizeChange:d,filters:h,onFiltersChange:u,onClearFilters:p,viewMode:m,onViewModeChange:y,followDisabled:x=!1,followLoading:f=!1,onToggleFollow:v,onFollowAction:k,saveDisabled:w=!1,saveLoading:j=!1,onToggleSave:S,onSaveAction:C})=>{const[A,L]=M.useState(!1),[b,N]=M.useState([]),[q,P]=M.useState(!0),{displayCompanies:R,comparisonEntities:T}=M.useMemo(()=>{const Y=t.map(J=>{var ue,we,Z;const Q=h.scope==="group",ee=((we=(ue=J.group)==null?void 0:ue.companies)==null?void 0:we.length)??1;return{company:J,displayName:Q?((Z=J.group)==null?void 0:Z.name)??J.groupName??J.name:J.name,openRolesCount:Array.isArray(J.jobs.openRoles)?J.jobs.openRoles.length:J.jobs.openRoles,groupMembersCount:ee,isGroup:Q,comparisonProfile:k$(J),comparisonId:J.id}});return{displayCompanies:Y,comparisonEntities:Y.map(J=>({id:J.comparisonId,name:J.displayName,normalizedProfile:J.comparisonProfile}))}},[t,h.scope]),$=M.useMemo(()=>C$(h),[h]),W=M.useMemo(()=>T.filter(Y=>b.includes(Y.id)),[T,b]);M.useEffect(()=>{N([])},[h.scope]),M.useEffect(()=>{N(Y=>Y.filter(J=>T.some(Q=>Q.id===J)))},[T]);const B=Y=>{N(J=>J.includes(Y)?J.filter(Q=>Q!==Y):J.length>=Hj?J:[...J,Y])},U=()=>{N([])},O=i===0?0:(n-1)*s+1,oe=Math.min(n*s,i),ae=m==="grid"?"grid gap-6 sm:grid-cols-2 xl:grid-cols-3":"space-y-4";return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(j$,{}),e.jsx("section",{className:"py-8",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"flex gap-8",children:[e.jsx("aside",{className:"hidden lg:block w-80 flex-shrink-0",children:e.jsxs("div",{className:"sticky top-24 bg-card rounded-xl border border-border p-5",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsx(gr,{className:"w-5 h-5 text-accent"}),e.jsx("h2",{className:"font-semibold",children:"Filters"})]}),e.jsx(dN,{filters:h,options:a,onFiltersChange:u,onClearFilters:p,resultCount:i})]})}),e.jsxs("main",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"lg:hidden mb-4",children:e.jsxs(D,{variant:"outline",onClick:()=>L(!0),className:"w-full",children:[e.jsx(gr,{className:"w-4 h-4 mr-2"}),"Filters",$>0&&e.jsx(ge,{variant:"secondary",className:"ml-2",children:"Active"})]})}),e.jsx(M$,{viewMode:m,onToggleViewMode:y,selectedItemsPerPage:s,onItemsPerPageChange:d,totalCount:i,startIndex:O,endIndex:oe,title:"All companies",items:"companies"}),e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("div",{className:"flex items-center gap-3"}),e.jsxs("div",{className:"flex items-center gap-2",children:[b.length>0&&e.jsxs(D,{variant:"outline",size:"sm",onClick:()=>P(Y=>!Y),children:[q?"Hide comparison":"Show comparison"," (",b.length,")"]}),e.jsx("span",{className:"text-sm text-muted-foreground hidden sm:inline",children:"Sort by:"}),e.jsxs(D,{variant:"ghost",size:"sm",className:"text-accent",children:[e.jsx(Ra,{className:"w-4 h-4 mr-1"}),"Most Active"]})]})]}),W.length>0&&q&&e.jsx("div",{className:"mb-6",children:e.jsx(b$,{entities:W,onClearSelection:U,maxSelections:Hj})}),r?e.jsx(v$,{count:s}):e.jsx("div",{className:ae,children:R.map(Y=>e.jsx(SH,{company:Y.company,displayName:Y.displayName,openRolesCount:Y.openRolesCount,groupMembersCount:Y.groupMembersCount,isGroup:Y.isGroup,viewMode:m,compareId:Y.comparisonId,compareSelected:b.includes(Y.comparisonId),compareDisabled:!b.includes(Y.comparisonId)&&b.length>=Hj,onToggleCompare:B,followDisabled:x,followLoading:f,onToggleFollow:v,onFollowAction:k,saveDisabled:w,saveLoading:j,onToggleSave:S,onSaveAction:C},Y.company.id))}),!r&&c>1&&e.jsx(B9,{currentPage:n,totalPages:c,onPageChange:l}),!r&&i===0&&e.jsxs("div",{className:"text-center py-16",children:[e.jsx(gt,{className:"w-12 h-12 text-muted-foreground mx-auto mb-4"}),e.jsxs("h3",{className:"text-lg font-medium mb-2",children:["No ",h.scope==="group"?"groups":"companies"," found"]}),e.jsx("p",{className:"text-muted-foreground mb-4",children:"Try adjusting your filters"}),e.jsx(D,{variant:"outline",onClick:p,children:"Clear all filters"})]})]})]})})}),A&&e.jsxs("div",{className:"fixed inset-0 z-50 lg:hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:()=>L(!1)}),e.jsxs("div",{className:"absolute right-0 top-0 h-full w-full max-w-sm bg-background p-6 overflow-y-auto",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("h2",{className:"font-semibold text-lg",children:"Filters"}),e.jsx(D,{variant:"ghost",size:"icon",onClick:()=>L(!1),children:e.jsx(Ct,{className:"w-5 h-5"})})]}),e.jsx(dN,{filters:h,options:a,onFiltersChange:u,onClearFilters:p,resultCount:i})]})]})]})},_9=g.forwardRef(({className:t,...a},r)=>e.jsx("textarea",{className:me("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...a}));_9.displayName="Textarea";const S$=({company:t,open:a,onOpenChange:r,onClaimSubmit:n})=>{const[s,i]=M.useState(1),[c,l]=M.useState({fullName:"",workEmail:"",jobTitle:"",relationship:"",message:""}),d=()=>{n==null||n({companyId:t.id,companySlug:t.slug,companyName:t.name,fullName:c.fullName,workEmail:c.workEmail,jobTitle:c.jobTitle,relationship:c.relationship,message:c.message}),i(3)},h=()=>{i(1),l({fullName:"",workEmail:"",jobTitle:"",relationship:"",message:""}),r(!1)};return e.jsx(ar,{open:a,onOpenChange:h,children:e.jsxs(Fa,{className:"sm:max-w-[500px]",children:[s===1&&e.jsxs(e.Fragment,{children:[e.jsxs(va,{children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-accent/20 to-gaming-gold/20 flex items-center justify-center mb-2",children:e.jsx(gt,{className:"w-6 h-6 text-accent"})}),e.jsxs(oa,{children:["Claim ",t.name,"'s Profile"]}),e.jsx(go,{children:"Verify your affiliation to manage this company's page, add products, respond to reviews, and access analytics."})]}),e.jsx("div",{className:"space-y-4 py-4",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx(it,{className:"w-5 h-5 text-gaming-success mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:"Update company information"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Add products, edit descriptions, and manage your profile"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx(it,{className:"w-5 h-5 text-gaming-success mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:"Access analytics"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"See who's viewing your profile and track engagement"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx(it,{className:"w-5 h-5 text-gaming-success mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:"Publish jobs & events"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Post open roles and announce event attendance"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx(it,{className:"w-5 h-5 text-gaming-success mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:"Enable meeting bookings"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Let potential partners request meetings at events"})]})]})]})}),e.jsxs(ia,{children:[e.jsx(D,{variant:"outline",onClick:h,children:"Cancel"}),e.jsxs(D,{variant:"accent",onClick:()=>i(2),children:["Continue",e.jsx(co,{className:"w-4 h-4 ml-2"})]})]})]}),s===2&&e.jsxs(e.Fragment,{children:[e.jsxs(va,{children:[e.jsx(oa,{children:"Verify Your Affiliation"}),e.jsxs(go,{children:["We'll verify your work email domain to confirm your connection to ",t.name,"."]})]}),e.jsx("div",{className:"space-y-4 py-4",children:e.jsxs("div",{className:"grid gap-4",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(ne,{htmlFor:"fullName",children:"Full Name"}),e.jsx(Re,{id:"fullName",placeholder:"John Smith",value:c.fullName,onChange:u=>l({...c,fullName:u.target.value})})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(ne,{htmlFor:"workEmail",children:"Work Email"}),e.jsxs("div",{className:"relative",children:[e.jsx(sa,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(Re,{id:"workEmail",type:"email",placeholder:`you@${t.overview.website.replace(/^https?:\/\/(www\.)?/,"").split("/")[0]}`,className:"pl-10",value:c.workEmail,onChange:u=>l({...c,workEmail:u.target.value})})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"We'll send a verification link to this address"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(ne,{htmlFor:"jobTitle",children:"Job Title"}),e.jsxs("div",{className:"relative",children:[e.jsx(nt,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(Re,{id:"jobTitle",placeholder:"e.g., Marketing Manager",className:"pl-10",value:c.jobTitle,onChange:u=>l({...c,jobTitle:u.target.value})})]})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(ne,{htmlFor:"relationship",children:"Your Role"}),e.jsxs(So,{value:c.relationship,onValueChange:u=>l({...c,relationship:u}),children:[e.jsx(_r,{children:e.jsx(Lo,{placeholder:"Select your relationship"})}),e.jsxs(Rr,{children:[e.jsx(Vt,{value:"employee",children:"Current Employee"}),e.jsx(Vt,{value:"founder",children:"Founder / Executive"}),e.jsx(Vt,{value:"hr",children:"HR / Recruiting"}),e.jsx(Vt,{value:"marketing",children:"Marketing / PR"}),e.jsx(Vt,{value:"agency",children:"Authorized Agency"})]})]})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(ne,{htmlFor:"message",children:"Additional Information (Optional)"}),e.jsx(_9,{id:"message",placeholder:"Any additional context to help verify your claim...",value:c.message,onChange:u=>l({...c,message:u.target.value}),rows:3})]})]})}),e.jsxs(ia,{children:[e.jsx(D,{variant:"outline",onClick:()=>i(1),children:"Back"}),e.jsx(D,{variant:"accent",onClick:d,disabled:!c.fullName||!c.workEmail||!c.relationship,children:"Submit Claim Request"})]})]}),s===3&&e.jsxs(e.Fragment,{children:[e.jsxs(va,{className:"text-center",children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-gaming-success/10 flex items-center justify-center mx-auto mb-4",children:e.jsx(it,{className:"w-8 h-8 text-gaming-success"})}),e.jsx(oa,{children:"Claim Request Submitted!"}),e.jsxs(go,{className:"text-center",children:["We've sent a verification email to ",e.jsx("strong",{children:c.workEmail}),". Click the link in the email to verify your affiliation."]})]}),e.jsx("div",{className:"py-4",children:e.jsxs("div",{className:"p-4 bg-secondary/50 rounded-lg text-sm text-muted-foreground",children:[e.jsx("p",{className:"font-medium text-foreground mb-2",children:"What happens next?"}),e.jsxs("ul",{className:"space-y-2",children:[e.jsx("li",{children:"• Check your email for the verification link"}),e.jsx("li",{children:"• Our team will review your claim within 24-48 hours"}),e.jsx("li",{children:"• You'll receive an email once your claim is approved"})]})]})}),e.jsx(ia,{children:e.jsx(D,{variant:"accent",onClick:h,className:"w-full",children:"Done"})})]})]})})};function m9({job:t,view:a,isSaved:r=!1,onApply:n,onSave:s,onRemove:i,onViewApplication:c}){var h;const l=t.city?`${t.city}, ${t.country}`:t.location,d=t.salaryMin&&t.salaryMax?`${t.salaryMin}–${t.salaryMax} ${t.salaryCurrency||""}`:void 0;return e.jsxs(ce,{children:[e.jsxs(xe,{children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx(ke,{className:"text-lg",children:t.title}),e.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground mt-2",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Eo,{className:"h-4 w-4"}),t.company]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ct,{className:"h-4 w-4"}),l]})]})]}),a==="applications"&&t.status&&e.jsx(ge,{variant:"secondary",children:t.status})]}),d&&e.jsx("p",{className:"text-sm font-semibold text-accent mt-1",children:d})]}),e.jsx(de,{children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.department&&e.jsx(ge,{variant:"outline",children:t.department}),(h=t.skills)==null?void 0:h.slice(0,6).map(u=>e.jsx(ge,{variant:"secondary",children:u},u))]}),a==="applications"&&t.appliedDate&&e.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1",children:[e.jsx(ka,{className:"h-3 w-3"}),"Applied ",t.appliedDate]}),e.jsxs("div",{className:"flex gap-2",children:[a==="recommended"&&e.jsxs(e.Fragment,{children:[e.jsx(D,{size:"sm",onClick:()=>n==null?void 0:n(t.id),children:"Apply Now"}),e.jsx(D,{size:"sm",variant:r?"secondary":"outline",disabled:r,onClick:()=>s==null?void 0:s(t),children:r?"Saved":"Save Job"}),e.jsx(D,{size:"sm",variant:"destructive",onClick:()=>i==null?void 0:i(t.id),children:"Remove"})]}),a==="saved"&&e.jsx(D,{size:"sm",variant:"destructive",onClick:()=>i==null?void 0:i(t.id),children:"Remove"}),a==="applications"&&e.jsx(D,{size:"sm",variant:"outline",onClick:()=>c==null?void 0:c(t.id),children:"View Application"}),a==="company"&&e.jsx(D,{size:"sm",variant:"outline",onClick:()=>{window.location.href=t.link},children:"Apply"})]})]})})]})}function jC({article:t,view:a,isSaved:r=!1,onRead:n,onSave:s,onRemove:i}){var c;return e.jsxs(ce,{children:[e.jsxs(xe,{children:[e.jsxs("div",{className:"flex gap-2 items-start mb-2",children:[(c=t.categories)==null?void 0:c.map(l=>e.jsx(ge,{variant:"secondary",children:l})),e.jsx("span",{className:"text-xs text-muted-foreground",children:t.publishedDate})]}),e.jsx(ke,{className:"text-lg",children:t.title}),e.jsxs(Ge,{className:"text-xs",children:[t.source?t.source:t.company," • ",t.readTime," min"]})]}),e.jsx(de,{children:e.jsxs("div",{className:"space-y-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:t.excerpt}),e.jsx("div",{className:"flex flex-wrap gap-2",children:t.tags.map(l=>e.jsx(ge,{variant:"outline",className:"text-xs",children:l},l))}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:flex-wrap",children:[e.jsx(D,{size:"sm",onClick:()=>n==null?void 0:n(t.id),children:"Read Article"}),a==="recommended"&&e.jsxs(e.Fragment,{children:[e.jsx(D,{size:"sm",variant:r?"secondary":"outline",disabled:r,onClick:()=>s==null?void 0:s(t),children:r?"Saved":"Save"}),e.jsx(D,{size:"sm",variant:"destructive",onClick:()=>i==null?void 0:i(t.id),children:"Remove"})]}),a==="saved"&&e.jsx(D,{size:"sm",variant:"destructive",onClick:()=>i==null?void 0:i(t.id),children:"Remove Saved"}),a==="company"&&e.jsx(D,{size:"sm",variant:"outline",onClick:()=>n==null?void 0:n(t.id),children:"Read"})]})]})})]})}const gR=({isClaimed:t,canClaim:a,onClaimClick:r})=>t||!a?null:e.jsx(D,{type:"button",variant:"ghost",className:"text-primary-foreground",onClick:r,children:"Claim this company"}),L$=({company:t,jobs:a,news:r,events:n,officeLocations:s,isFollowing:i,followLoading:c=!1,followDisabled:l=!1,onToggleFollow:d,onFollowAction:h,isSaved:u,saveLoading:p=!1,saveDisabled:m=!1,onToggleSave:y,onSaveAction:x,canClaim:f,onClaimSubmit:v})=>{var da,ft,dt,Jt,F,V,K,Le,Te,Ze,ze;const[k,w]=M.useState(!1);if(!t)return e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"container mx-auto px-4 py-16 text-center",children:[e.jsx(gt,{className:"w-16 h-16 text-muted-foreground mx-auto mb-4"}),e.jsx("h1",{className:"text-2xl font-bold mb-2",children:"Company Not Found"}),e.jsx("p",{className:"text-muted-foreground mb-6",children:"The company you're looking for doesn't exist."}),e.jsx("a",{href:"/companies",children:e.jsx(D,{variant:"accent",children:"Browse Directory"})})]})});const j=((ft=(da=t.webIntelligence)==null?void 0:da.menus.primary_nav_details)==null?void 0:ft.flatMap(z=>z.key_points))??[],S=t.trustAndCompliance.licenses.length+t.trustAndCompliance.certifications.length+t.trustAndCompliance.awards.length,C=t.signalsAndInsights,A=((dt=t.group)==null?void 0:dt.name)??t.groupName??t.group_name??null,L=((Jt=t.group)==null?void 0:Jt.slug)??t.groupSlug??t.group_slug??((F=t.group)==null?void 0:F.id)??t.groupId??t.group_id??void 0,b=a??[],N=r??[],q=n??[],P=b.length>0?b.length:Array.isArray(t.jobs.openRoles)?t.jobs.openRoles.length:t.jobs.openRoles,R=z=>typeof z=="string"?z:`${z.authority} (${z.jurisdiction})`,T=z=>typeof z=="string"?z:`${z.name} (${z.year})`,$=z=>"name"in z?z.name:z.eventName,W=z=>"startDate"in z?`${z.startDate}${z.endDate?` - ${z.endDate}`:""}`:z.date,B=z=>typeof z=="string"?z:`${z.title} • ${z.source}`,U=z=>typeof z=="object"&&z!==null&&"url"in z,O=z=>{if(typeof z=="string")return z;const pe=z.city??z.cities??z.location,He=z.country;return`${pe??"Remote"}, ${He??"Global"}`},oe=s??t.overview.officeLocations??[],ae=i??t.isFollowing??!1,Y=l||c,J=ae?"Unfollow Company":"Follow Company",Q=u??t.isSaved??!1,ee=m||p,ue=Q?"Remove from Saved":"Save Company",we=f??t.claimedStatus==="unclaimed",Z=()=>t.claimedStatus==="claimed"?e.jsxs(ge,{className:"bg-accent/10 text-accent border-accent/20",children:[e.jsx(it,{className:"w-3 h-3 mr-1"}),"Claimed"]}):null,te=[{name:"Casino Games (Slots & RNG)",category:"Game Content",description:"RNG-based casino games including slots and table games.",keywords:["slot","rng","casino game","table game","jackpot","buy bonus"],negativeKeywords:["live casino games","live casino"],priority:10},{name:"Live Casino Games",category:"Live Casino",description:"Live dealer games streamed from professional studios.",keywords:["live casino games","live dealer games","roulette games","live roulette","sic-bo","presenter"],negativeKeywords:["real-time reporting"],priority:10},{name:"iGaming Platform / PAM",category:"Platform",description:"Core iGaming platform including player accounts, wallet, and cashier.",keywords:["pam","aggregation platform","cashier","player account"],negativeKeywords:[],priority:10},{name:"Game Aggregation",category:"Aggregation",description:"Single API access to multiple game providers.",keywords:["aggregation","aggregator","single api","content hub"],negativeKeywords:[],priority:10},{name:"Bonus & Promotions Platform",category:"CRM & Engagement",description:"Bonus management, promotions, and player engagement tools.",keywords:["bonus tools","promotional tools","free spins tools","tournament","leaderboard","rewards tools","bonus features","bonus platform"],negativeKeywords:[],priority:10},{name:"Back Office & Analytics",category:"Operations",description:"Reporting, dashboards, and performance analytics.",keywords:["back office","real-time reporting","analytics","easy-to-use tools","insights"],negativeKeywords:[],priority:10},{name:"Live Casino Infrastructure",category:"Technology",description:"Hardware, streaming, and infrastructure for live casino operations.",keywords:["streaming","video streaming","Live Casino studio","professional game hosts"],negativeKeywords:[],priority:10},{name:"Payments & Payouts",category:"Payments",description:"Payment processing, deposits, and withdrawals.",keywords:["Payment processing","psp","payout","withdrawal","deposit"],negativeKeywords:[],priority:10},{name:"Compliance & Risk",category:"Compliance",description:"KYC, AML, fraud prevention, and responsible gaming.",keywords:["kyc detection","aml detection","compliance tools","fraud detection","fraud prevention","responsible gaming tools"],negativeKeywords:[],priority:10}];function ve(z,pe){var Tt;const He=pe.toLowerCase();return!(!z.keywords.some(Yt=>He.includes(Yt))||((Tt=z.negativeKeywords)==null?void 0:Tt.some(Yt=>He.includes(Yt))))}function fe(z){return z!==null}const re=[{key:"migea",name:"Malta iGaming Excellence Awards",aliases:["migea","malta igaming excellence awards","malta gaming excellence awards"]},{key:"egr",name:"EGR Awards",aliases:["egr awards","egr b2b awards","egr operator awards"]},{key:"sigma",name:"SiGMA Awards",aliases:["sigma awards","sigma igaming awards"]},{key:"ice",name:"ICE Gaming Awards",aliases:["ice gaming awards","ice awards"]}];function he(z=[]){const pe=z.map(He=>He.toLowerCase());return re.flatMap(He=>pe.find(ha=>He.aliases.some(Tt=>ha.includes(Tt)))?[{name:He.name,year:new Date().getFullYear()}]:[])}const Ae=new Set(["malta","italy","spain","netherlands","united kingdom","germany","sweden","romania","croatia","serbia","brazil"]);function Pe(z=[]){return Array.from(new Set(z.map(pe=>pe.toLowerCase()).filter(pe=>Ae.has(pe)).map(pe=>pe[0].toUpperCase()+pe.slice(1))))}const _e=(Le=(K=(V=t.webIntelligence)==null?void 0:V.signals)==null?void 0:K.evidence)==null?void 0:Le.credibility,Qe=he((_e==null?void 0:_e.awards_mentioned)??[]),st=Pe((_e==null?void 0:_e.countries_mentioned)??[]);function yt(z){return te.map(pe=>{const He=z.filter(Xt=>ve(pe,Xt));return He.length===0?null:{name:pe.name,category:pe.category,description:pe.description,keyDifferentiators:Array.from(new Set(He)),source:"derived",confidence:Math.min(1,He.length/5),priority:pe.priority}}).filter(fe).sort((pe,He)=>He.priority-pe.priority)}const rt=yt(j),Be=[...t.productsAndServices??[],...rt??[]],mt=()=>{const z=!ae;d==null||d(t.id,z),h==null||h({companyId:t.id,companySlug:t.slug,action:z?"follow":"unfollow"})},et=()=>{const z=!Q;y==null||y(t.id,z),x==null||x({companyId:t.id,companySlug:t.slug,companyName:t.name,action:z?"save":"unsave"})};return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx("section",{className:"bg-gradient-to-br from-primary via-primary to-primary-variant py-8",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("a",{href:"/companies",className:"inline-flex items-center text-primary-foreground/70 hover:text-primary-foreground mb-6 text-sm",children:[e.jsx(Ja,{className:"w-4 h-4 mr-1"})," Back to Directory"]}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsx("div",{className:"w-20 h-20 rounded-2xl bg-white/10 backdrop-blur flex items-center justify-center flex-shrink-0",children:e.jsx(gt,{className:"w-10 h-10 text-primary-foreground"})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-2",children:[e.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:t.name}),Z()]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[e.jsx(ge,{variant:"secondary",children:t.companyType}),A&&e.jsx("a",{href:L?`/groups/${L}`:"/groups",children:e.jsxs(ge,{variant:"outline",className:"border-primary-foreground/30 text-primary-foreground",children:["Part of ",A]})}),t.classification.verticals.map(z=>e.jsx(ge,{variant:"outline",className:"border-primary-foreground/30 text-primary-foreground",children:z},z))]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-primary-foreground/80 text-sm mb-4",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ct,{className:"w-4 h-4"}),t.overview.headquarters.city,", ",t.overview.headquarters.country]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(lo,{className:"w-4 h-4"}),"Founded ",t.overview.foundedYear]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Nt,{className:"w-4 h-4"}),t.overview.employeeRange," employees"]})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsxs(D,{variant:"accent",onClick:mt,disabled:Y,"aria-label":`${J} ${t.name}`,"aria-pressed":ae,"aria-busy":c,title:J,children:[c?e.jsx(ma,{className:"w-4 h-4 mr-2 animate-spin"}):ae?e.jsx(it,{className:"w-4 h-4 mr-2"}):e.jsx(vr,{className:"w-4 h-4 mr-2"}),c?"Loading":ae?"Following":"Follow"]}),e.jsxs(D,{variant:Q?"secondary":"outline",className:"border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground/10",onClick:et,disabled:ee,"aria-label":`${ue} ${t.name}`,"aria-pressed":Q,"aria-busy":p,title:ue,children:[p?e.jsx(ma,{className:"w-4 h-4 mr-2 animate-spin"}):e.jsx(ga,{className:`w-4 h-4 mr-2 ${Q?"fill-current":"fill-transparent"}`}),p?"Loading":Q?"Saved":"Save"]}),e.jsx(gR,{isClaimed:t.claimedStatus==="claimed",canClaim:we,onClaimClick:()=>w(!0)})]})]}),e.jsxs("div",{className:"flex gap-4 md:gap-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-primary-foreground",children:P}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Open Jobs"})]}),e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"text-2xl font-bold text-primary-foreground",children:[(C.profileViews30d/1e3).toFixed(1),"k"]}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Views/30d"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-primary-foreground",children:S}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Trust Signals"})]})]})]})]})}),e.jsx("section",{className:"py-6",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs(Tr,{defaultValue:"overview",className:"space-y-6",children:[e.jsxs(tr,{className:"flex-wrap h-auto gap-1 bg-secondary/50 p-1",children:[e.jsxs(Ce,{value:"overview",children:[e.jsx(Vo,{className:"w-4 h-4 mr-1.5"}),"Overview"]}),e.jsxs(Ce,{value:"products",children:[e.jsx(Fc,{className:"w-4 h-4 mr-1.5"}),"Products"]}),e.jsxs(Ce,{value:"trust",children:[e.jsx(Mr,{className:"w-4 h-4 mr-1.5"}),"Trust"]}),e.jsxs(Ce,{value:"people",children:[e.jsx(Gc,{className:"w-4 h-4 mr-1.5"}),"People"]}),e.jsxs(Ce,{value:"jobs",children:[e.jsx(nt,{className:"w-4 h-4 mr-1.5"}),"Jobs"]}),e.jsxs(Ce,{value:"news",children:[e.jsx(_a,{className:"w-4 h-4 mr-1.5"}),"News"]}),e.jsxs(Ce,{value:"events",children:[e.jsx(Cc,{className:"w-4 h-4 mr-1.5"}),"Events"]}),e.jsxs(Ce,{value:"insights",children:[e.jsx(uo,{className:"w-4 h-4 mr-1.5"}),"Insights"]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[e.jsxs(Se,{value:"overview",className:"space-y-6 mt-0",children:[e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsx(ke,{children:"About"})}),e.jsxs(de,{children:[e.jsx("p",{className:"text-muted-foreground mb-4",children:t.overview.longDescription||t.overview.shortDescription}),e.jsx("div",{className:"flex flex-wrap gap-2",children:t.classification.tags.map(z=>e.jsxs(ge,{variant:"secondary",children:["#",z]},z))})]})]}),e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsx(ke,{children:"Office Locations"})}),e.jsx(de,{children:e.jsx("div",{className:"flex flex-wrap gap-3",children:oe.map((z,pe)=>e.jsxs(ge,{variant:"outline",children:[e.jsx(ct,{className:"w-3 h-3 mr-1"}),O(z)]},pe))})})]})]}),e.jsx(Se,{value:"products",className:"space-y-4 mt-0",children:Be.map((z,pe)=>e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsx("div",{className:"flex items-start justify-between",children:e.jsxs("div",{children:[e.jsx(ke,{className:"text-lg",children:z.name}),e.jsx(ge,{variant:"secondary",className:"mt-1",children:z.category})]})})}),e.jsxs(de,{children:[e.jsx("p",{className:"text-muted-foreground mb-3",children:z.description}),e.jsx("div",{className:"flex flex-wrap gap-2",children:z.keyDifferentiators.map((He,Xt)=>e.jsxs(ge,{variant:"outline",children:[e.jsx(Wc,{className:"w-3 h-3 mr-1"}),He]},Xt))})]})]},pe))}),e.jsxs(Se,{value:"trust",className:"space-y-4 mt-0",children:[t.trustAndCompliance.licenses.length>0&&e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsxs(ke,{className:"flex items-center gap-2",children:[e.jsx(Mr,{className:"w-5 h-5 text-gaming-success"}),"Licenses"]})}),e.jsx(de,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:t.trustAndCompliance.licenses.map((z,pe)=>e.jsx(ge,{className:"bg-gaming-success/10 text-gaming-success",children:R(z)},pe))})})]}),t.trustAndCompliance.awards.length>0&&e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsxs(ke,{className:"flex items-center gap-2",children:[e.jsx(ea,{className:"w-5 h-5 text-gaming-gold"}),"Awards"]})}),e.jsx(de,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:t.trustAndCompliance.awards.map((z,pe)=>e.jsx(ge,{className:"bg-gaming-gold/10 text-gaming-gold",children:T(z)},pe))})})]}),Qe.length>0&&e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsxs(ke,{className:"flex items-center gap-2",children:[e.jsx(ea,{className:"w-5 h-5 text-gaming-gold"}),"Industry Recognition"]})}),e.jsx(de,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:Qe.map((z,pe)=>e.jsxs(ge,{variant:"outline",children:[z.name,e.jsx("span",{className:"ml-1 text-xs text-muted-foreground",children:"(inferred)"})]},pe))})})]}),st.length>0&&e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsxs(ke,{className:"flex items-center gap-2",children:[e.jsx(na,{className:"w-5 h-5 text-accent"}),"Markets Mentioned"]})}),e.jsx(de,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:st.map((z,pe)=>e.jsx(ge,{variant:"secondary",children:z},pe))})})]})]}),e.jsx(Se,{value:"jobs",className:"space-y-4 mt-0",children:e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs(ke,{children:["Open Positions (",P,")"]}),e.jsx(ge,{children:t.jobs.remotePolicy})]})}),e.jsx("div",{className:"grid gap-4 p-4",children:b.length===0?e.jsx(ce,{children:e.jsxs(de,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(xa,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No saved jobs yet"}),e.jsx(D,{variant:"link",className:"mt-2",children:"Browse Jobs"})]})}):b.map(z=>e.jsx(m9,{job:z,view:"company"},z.id))})]})}),e.jsx(Se,{value:"people",className:"mt-0",children:e.jsx(ce,{children:e.jsx(de,{className:"py-6 space-y-4",children:t.people.members.length===0?e.jsx("p",{className:"text-center text-muted-foreground",children:"Employee profiles are opt-in. No verified members yet."}):t.people.members.map((z,pe)=>e.jsxs("div",{className:"flex items-center justify-between gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:z.name}),e.jsx("p",{className:"text-sm text-muted-foreground",children:z.title})]}),z.profileUrl&&e.jsx("a",{href:z.profileUrl,target:"_blank",rel:"noreferrer",children:e.jsx(D,{size:"sm",variant:"outline",children:"View Profile"})})]},pe))})})}),e.jsx(Se,{value:"news",className:"mt-0",children:e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsxs(ke,{children:["News (",N.length,")"]})}),e.jsx(de,{className:"py-6 space-y-4",children:N.length>0?e.jsx("div",{className:"grid gap-4",children:N.map(z=>e.jsx(jC,{article:z,view:"company",onRead:()=>window.open(z.link,"_blank")},z.id))}):(Ze=(Te=t.newsAndMedia)==null?void 0:Te.pressMentions)!=null&&Ze.length?t.newsAndMedia.pressMentions.map((z,pe)=>e.jsxs("div",{className:"flex items-center justify-between gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx("span",{className:"text-sm",children:B(z)}),U(z)&&z.url&&e.jsx("a",{href:z.url,target:"_blank",rel:"noreferrer",children:e.jsx(D,{size:"sm",variant:"outline",children:"Read"})})]},pe)):e.jsx("p",{className:"text-center text-muted-foreground",children:"No recent news mentions."})})]})}),e.jsx(Se,{value:"events",className:"space-y-4 mt-0",children:q.length>0?e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsx(ke,{className:"flex items-center gap-2",children:"Upcoming Events"})}),e.jsx(de,{children:e.jsx("div",{className:"grid gap-4 p-4",children:q.map(z=>e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 p-3 m-3 rounded-xl border bg-card text-card-foreground shadow",children:[e.jsxs("div",{children:[e.jsxs("p",{className:"font-semibold text-lg",children:[z.conference," - ",z.event_year]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Stand: ",z.stand]})]}),e.jsx("a",{href:z.link,target:"_blank",rel:"noreferrer",children:e.jsx(D,{size:"sm",variant:"outline",children:"View"})})]},z._id))})})]}):t.events.upcomingEvents.map((z,pe)=>e.jsxs("div",{className:"flex items-center justify-between p-3 bg-secondary/50 rounded-lg",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold tracking-tight text-lg",children:$(z)}),e.jsxs("p",{className:"font-semibold tracking-tight text-lg",children:[z.location," • ",W(z)]})]}),t.events.bookMeetingEnabled&&e.jsx(D,{size:"sm",variant:"accent",children:"Book Meeting"})]},pe))}),e.jsx(Se,{value:"insights",className:"mt-0",children:e.jsx(ce,{children:e.jsxs(de,{className:"py-12 text-center",children:[e.jsx(uo,{className:"w-10 h-10 text-muted-foreground mx-auto mb-3"}),e.jsx("h3",{className:"font-semibold mb-2",children:"Premium Insights"}),e.jsx("p",{className:"text-muted-foreground mb-4",children:"Unlock demand trends, competitor analysis, and intent signals."}),e.jsx(D,{variant:"accent",children:"Upgrade to Access"})]})})})]}),e.jsxs("aside",{className:"space-y-4",children:[e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsx(ke,{className:"text-base",children:"Contact"})}),e.jsxs(de,{className:"space-y-3",children:[e.jsxs("a",{href:t.overview.website,target:"_blank",className:"flex items-center gap-2 text-sm text-accent hover:underline",children:[e.jsx(na,{className:"w-4 h-4"}),t.overview.website.replace(/^https?:\/\//,"")]}),((ze=t.overview.socialLinks)==null?void 0:ze.linkedin)&&e.jsxs("a",{href:t.overview.socialLinks.linkedin,target:"_blank",className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground",children:[e.jsx(qc,{className:"w-4 h-4"}),"LinkedIn"]})]})]}),e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsx(ke,{className:"text-base",children:"Similar Companies"})}),e.jsx(de,{className:"space-y-2",children:C.similarCompanies.map((z,pe)=>e.jsx("div",{className:"flex items-center gap-2 p-2 bg-secondary/50 rounded-lg text-sm",children:z},pe))})]})]})]})]})})}),e.jsx(S$,{company:t,open:k,onOpenChange:w,onClaimSubmit:v})]})},N$=({group:t})=>{var n,s;if(!t)return e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"container mx-auto px-4 py-16 text-center",children:[e.jsx(gt,{className:"w-16 h-16 text-muted-foreground mx-auto mb-4"}),e.jsx("h1",{className:"text-2xl font-bold mb-2",children:"Group Not Found"}),e.jsx("p",{className:"text-muted-foreground mb-6",children:"The group you're looking for doesn't exist."}),e.jsx("a",{href:"/companies",children:e.jsx(D,{variant:"accent",children:"Browse Companies"})})]})});const a=t.intelligenceProfile,r=((n=t.companies)==null?void 0:n.length)??0;return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx("section",{className:"bg-gradient-to-br from-primary via-primary to-primary-variant py-8",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("a",{href:"/companies",className:"inline-flex items-center text-primary-foreground/70 hover:text-primary-foreground mb-6 text-sm",children:[e.jsx(Ja,{className:"w-4 h-4 mr-1"})," Back to Directory"]}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsx("div",{className:"w-20 h-20 rounded-2xl bg-white/10 backdrop-blur flex items-center justify-center flex-shrink-0",children:e.jsx(gt,{className:"w-10 h-10 text-primary-foreground"})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-2",children:[e.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:t.name}),e.jsx(ge,{className:"bg-white/10 text-primary-foreground border-white/20",children:"Company Group"})]}),t.description&&e.jsx("p",{className:"text-primary-foreground/80 text-sm mb-4 max-w-2xl",children:t.description}),e.jsx("div",{className:"flex flex-wrap gap-2",children:t.website&&e.jsx("a",{href:t.website,target:"_blank",rel:"noreferrer",children:e.jsxs(D,{variant:"outline",className:"border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground/10",children:[e.jsx(na,{className:"w-4 h-4 mr-2"})," Visit Website"]})})})]}),a&&e.jsxs("div",{className:"flex gap-4 md:gap-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-primary-foreground",children:r}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Member Companies"})]}),e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"text-2xl font-bold text-primary-foreground",children:[(a.profileViews30d/1e3).toFixed(1),"k"]}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Views/30d"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-primary-foreground",children:a.followsCount.toLocaleString()}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Followers"})]})]})]})]})}),e.jsx("section",{className:"py-8",children:e.jsxs("div",{className:"container mx-auto px-4 space-y-6",children:[e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsx(ke,{children:"Group Overview"})}),e.jsxs(de,{className:"space-y-4",children:[t.website&&e.jsxs("div",{className:"flex items-center gap-2 text-sm text-accent",children:[e.jsx(na,{className:"w-4 h-4"}),e.jsx("a",{href:t.website,target:"_blank",rel:"noreferrer",className:"hover:underline",children:t.website.replace(/^https?:\/\//,"")})]}),t.description?e.jsx("p",{className:"text-muted-foreground",children:t.description}):e.jsx("p",{className:"text-muted-foreground",children:"No group description available yet."})]})]}),e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsx(ke,{children:"Member Companies"})}),e.jsxs(de,{className:"space-y-3",children:[r===0&&e.jsx("p",{className:"text-muted-foreground",children:"No member companies listed."}),(s=t.companies)==null?void 0:s.map(i=>{var l,d,h;const c=i.isPrimary||i.id===t.primaryCompanyId;return e.jsxs("div",{className:`flex flex-col md:flex-row md:items-center md:justify-between gap-3 rounded-lg border p-4 ${c?"border-accent/40 bg-accent/5":"border-border"}`,children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("a",{href:`/companies/${i.slug}`,className:"font-semibold hover:text-accent",children:i.name}),c&&e.jsx(ge,{className:"bg-accent/10 text-accent border-accent/20",children:"Primary"})]}),((l=i.overview)==null?void 0:l.shortDescription)&&e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:i.overview.shortDescription})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm text-muted-foreground",children:[((d=i.overview)==null?void 0:d.headquarters)&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(gt,{className:"w-4 h-4"}),i.overview.headquarters.city,", ",i.overview.headquarters.country]}),((h=i.overview)==null?void 0:h.employeeRange)&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Nt,{className:"w-4 h-4"}),i.overview.employeeRange]})]})]},i.id)})]})]}),a&&e.jsxs(ce,{children:[e.jsx(xe,{children:e.jsx(ke,{children:"Group Intelligence"})}),e.jsxs(de,{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"rounded-lg border border-border/60 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(Lt,{className:"w-4 h-4"})," Followers"]}),e.jsx("div",{className:"text-2xl font-semibold mt-2",children:a.followsCount.toLocaleString()})]}),e.jsxs("div",{className:"rounded-lg border border-border/60 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(Ra,{className:"w-4 h-4"})," Hiring Intensity"]}),e.jsx("div",{className:"text-2xl font-semibold mt-2",children:a.hiringIntensity})]}),e.jsxs("div",{className:"rounded-lg border border-border/60 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(Nt,{className:"w-4 h-4"})," Top Viewing Countries"]}),e.jsx("div",{className:"text-sm font-medium mt-2",children:a.topViewingCountries.join(", ")||"No data"})]})]})]})]})})]})},I$=t=>{var a,r;if(t==null)return"";if(typeof t=="string"&&t.startsWith("http"))return t;if(typeof t=="string"&&t.startsWith("{"))try{const n=JSON.parse(t.replace(/'/g,'"'));return(n==null?void 0:n.url)??""}catch{return""}return typeof t=="object"?(t==null?void 0:t.url)??((r=(a=t==null?void 0:t.formats)==null?void 0:a.thumbnail)==null?void 0:r.url)??"":""},kR=t=>({profileViews30d:(t==null?void 0:t.profile_views_30d)??(t==null?void 0:t.profileViews30d)??0,followsCount:(t==null?void 0:t.follows_count)??(t==null?void 0:t.followsCount)??0,hiringIntensity:(t==null?void 0:t.hiring_intensity)??(t==null?void 0:t.hiringIntensity)??"Low",topSkillsHiring:(t==null?void 0:t.top_skills_hiring)??(t==null?void 0:t.topSkillsHiring)??[],topViewingCountries:(t==null?void 0:t.top_viewing_countries)??(t==null?void 0:t.topViewingCountries)??[],oftenComparedWith:(t==null?void 0:t.often_compared_with)??(t==null?void 0:t.oftenComparedWith)??[],similarCompanies:(t==null?void 0:t.similar_companies)??(t==null?void 0:t.similarCompanies)??[]}),A$=t=>{if(t)return{capabilitiesScore:t.capabilities_score??t.capabilitiesScore??0,credibilityScore:t.credibility_score??t.credibilityScore??0,complianceScore:t.compliance_score??t.complianceScore??0,hiringScore:t.hiring_score??t.hiringScore??0,overallScore:t.overall_score??t.overallScore??0,detectedBusinessModel:t.detected_business_model??t.detectedBusinessModel??"",detectedProducts:t.detected_products??t.detectedProducts??[],detectedMarkets:t.detected_markets??t.detectedMarkets??[]}},P$=t=>({id:String(t.id??t.company_id??""),name:t.name??"",slug:t.slug??"",companyType:t.company_type??t.companyType,overview:t.overview?{shortDescription:t.overview.short_description??t.overview.shortDescription,headquarters:t.overview.headquarters,employeeRange:t.overview.employee_range??t.overview.employeeRange}:void 0,isPrimary:t.is_primary??t.isPrimary}),_$=t=>({id:String((t==null?void 0:t.id)??(t==null?void 0:t.group_id)??""),name:(t==null?void 0:t.name)??(t==null?void 0:t.group_name)??"",slug:(t==null?void 0:t.slug)??"",website:(t==null?void 0:t.website)??"",description:(t==null?void 0:t.description)??"",primaryCompanyId:(t==null?void 0:t.primary_company_id)??(t==null?void 0:t.primaryCompanyId)??"",companies:Array.isArray(t==null?void 0:t.companies)?t.companies.map(P$):[],intelligenceProfile:kR((t==null?void 0:t.intelligence_profile)??(t==null?void 0:t.intelligenceProfile))}),R$=t=>{var a,r;return{shortDescription:(t==null?void 0:t.shortDescription)??(t==null?void 0:t.short_description)??"",longDescription:(t==null?void 0:t.longDescription)??(t==null?void 0:t.long_description),foundedYear:typeof(t==null?void 0:t.foundedYear)=="number"?t.foundedYear:0,headquarters:{city:((a=t==null?void 0:t.headquarters)==null?void 0:a.city)??"",country:((r=t==null?void 0:t.headquarters)==null?void 0:r.country)??""},officeLocations:t==null?void 0:t.officeLocations,employeeRange:(t==null?void 0:t.employeeRange)??(t==null?void 0:t.employee_range)??"",publicCompany:t==null?void 0:t.publicCompany,stockTicker:t==null?void 0:t.stockTicker,website:(t==null?void 0:t.website)??"",socialLinks:t==null?void 0:t.socialLinks}},T$=t=>({searchImpressions:(t==null?void 0:t.searchImpressions)??0,profileClicks:(t==null?void 0:t.profileClicks)??0,externalClicks:(t==null?void 0:t.externalClicks)??0}),q$=t=>{var a,r,n;return{...t,overview:R$(t.overview),logo:I$(t.logo),jobs:D$(t.jobs),group:_$(t.group),groupId:t.groupId??t.group_id??((a=t.group)==null?void 0:a.id),groupName:t.groupName??t.group_name??((r=t.group)==null?void 0:r.name),groupSlug:t.group_slug??t.groupSlug??((n=t.group)==null?void 0:n.slug),signalsAndInsights:kR(t.signalsAndInsights??t.signals_and_insights??t.signalsAndInsights)??t.signalsAndInsights,visibilityMetrics:T$(t.visibilityMetrics),intelligenceProfile:A$(t.intelligence_profile??t.intelligenceProfile),classification:z$(t.classification)}},D$=t=>({openRoles:Array.isArray(t==null?void 0:t.openRoles)||typeof(t==null?void 0:t.openRoles)=="number"?t.openRoles:[],departmentsHiring:Array.isArray(t==null?void 0:t.departmentsHiring)?t.departmentsHiring:[],locationsHiring:Array.isArray(t==null?void 0:t.locationsHiring)?t.locationsHiring:[],remotePolicy:(t==null?void 0:t.remotePolicy)??""}),z$=t=>({businessModel:(t==null?void 0:t.businessModel)??(t==null?void 0:t.business_model)??"",verticals:Array.isArray(t==null?void 0:t.verticals)?t.verticals:[],productCategories:Array.isArray(t==null?void 0:t.productCategories)?t.productCategories:[],tags:((t==null?void 0:t.tags)??[]).map(a=>typeof a=="string"?a:a.title??a.tag??"")}),E$=t=>({count:(t==null?void 0:t.count)??0,page:(t==null?void 0:t.page)??1,pageSize:(t==null?void 0:t.page_size)??(t==null?void 0:t.pageSize)??0,totalPages:(t==null?void 0:t.total_pages)??(t==null?void 0:t.totalPages)??1,results:Array.isArray(t==null?void 0:t.results)?t.results.map(q$):[],filterOptions:(t==null?void 0:t.filter_options)??(t==null?void 0:t.filterOptions)}),F$=(t,a)=>{const{buildUrl:r,initialData:n}=a,[s,i]=M.useState(n??null),[c,l]=M.useState(!n),d=M.useMemo(()=>r(t),[r,t]);return M.useEffect(()=>{let h=!1;return l(!0),fetch(d).then(u=>{if(!u.ok)throw new Error(`Failed to load companies: ${u.status}`);return u.json()}).then(u=>{h||i(E$(u))}).catch(u=>{console.error(u)}).finally(()=>{h||l(!1)}),()=>{h=!0}},[d]),{data:s,loading:c}},CC={query:"",filters:{},sort:"popularity_desc",page:1,pageSize:50,scope:"company"},Mt=(t,a)=>{var r;return((r=t.get(a))==null?void 0:r.split(",").filter(Boolean))??[]},hN=(t,a)=>{const r=Number(t);return Number.isFinite(r)&&r>0?r:a},O$=t=>{var r,n,s,i,c,l,d;const a=new URLSearchParams;return t.query&&a.set("query",t.query),t.sort&&a.set("sort",t.sort),t.scope&&t.scope!=="company"&&a.set("scope",t.scope),t.segment&&a.set("segment",t.segment),t.subcategory&&a.set("subcategory",t.subcategory),t.region&&a.set("region",t.region),a.set("page",String(t.page)),a.set("pageSize",String(t.pageSize)),t.filters.companyType&&a.set("filters[companyType]",t.filters.companyType),(r=t.filters.country)!=null&&r.length&&a.set("filters[country]",t.filters.country.join(",")),(n=t.filters.products)!=null&&n.length&&a.set("filters[products]",t.filters.products.join(",")),(s=t.filters.employees)!=null&&s.length&&a.set("filters[employees]",t.filters.employees.join(",")),(i=t.filters.verticals)!=null&&i.length&&a.set("filters[verticals]",t.filters.verticals.join(",")),(c=t.filters.productCategories)!=null&&c.length&&a.set("filters[productCategories]",t.filters.productCategories.join(",")),(l=t.filters.openRoles)!=null&&l.length&&a.set("filters[openRoles]",t.filters.openRoles.join(",")),(d=t.filters.yearsActive)!=null&&d.length&&a.set("filters[yearsActive]",t.filters.yearsActive.join(",")),t.filters.hiringNow&&a.set("filters[hiringNow]","true"),t.filters.claimedOnly&&a.set("filters[claimedOnly]","true"),t.filters.hasLicenses&&a.set("filters[hasLicenses]","true"),t.filters.hasAwards&&a.set("filters[hasAwards]","true"),a.toString()},H$=(t,a=CC)=>{const r=new URLSearchParams(t),n=r.get("scope"),s=n==="group"||n==="company"?n:a.scope,i=r.get("query")??r.get("search")??a.query??"",c=r.get("pageSize")??r.get("page_size");return{...a,query:i,sort:r.get("sort")??a.sort,page:hN(r.get("page"),a.page),pageSize:hN(c,a.pageSize),scope:s,segment:r.get("segment")??a.segment,subcategory:r.get("subcategory")??a.subcategory,region:r.get("region")??a.region,filters:{companyType:r.get("filters[companyType]")??r.get("companyType")??a.filters.companyType,country:Mt(r,"filters[country]").concat(Mt(r,"country")),products:Mt(r,"filters[products]").concat(Mt(r,"products")),employees:Mt(r,"filters[employees]").concat(Mt(r,"employees")).concat(Mt(r,"employeeRanges")),verticals:Mt(r,"filters[verticals]").concat(Mt(r,"verticals")),productCategories:Mt(r,"filters[productCategories]").concat(Mt(r,"productCategories")),openRoles:Mt(r,"filters[openRoles]").concat(Mt(r,"openRoles")),yearsActive:Mt(r,"filters[yearsActive]").concat(Mt(r,"yearsActive")),hiringNow:["true","1","yes"].includes(r.get("filters[hiringNow]")??r.get("hiringNow")??""),claimedOnly:["true","1","yes"].includes(r.get("filters[claimedOnly]")??r.get("claimedOnly")??""),hasLicenses:["true","1","yes"].includes(r.get("filters[hasLicenses]")??r.get("hasLicenses")??""),hasAwards:["true","1","yes"].includes(r.get("filters[hasAwards]")??r.get("hasAwards")??"")}}},V$=t=>({...fR,search:t.query??"",companyType:t.filters.companyType??"",verticals:t.filters.verticals??[],productCategories:t.filters.productCategories??[],employeeRanges:t.filters.employees??[],products:t.filters.products??[],openRolesRanges:t.filters.openRoles??[],yearsActiveRanges:t.filters.yearsActive??[],hiringNow:t.filters.hiringNow??!1,scope:t.scope,claimedOnly:t.filters.claimedOnly??!1,hasLicenses:t.filters.hasLicenses??!1,hasAwards:t.filters.hasAwards??!1}),B$=t=>({companyType:t.companyType||void 0,verticals:t.verticals.length?t.verticals:void 0,productCategories:t.productCategories.length?t.productCategories:void 0,employees:t.employeeRanges.length?t.employeeRanges:void 0,products:t.products.length?t.products:void 0,openRoles:t.openRolesRanges.length?t.openRolesRanges:void 0,yearsActive:t.yearsActiveRanges.length?t.yearsActiveRanges:void 0,hiringNow:t.hiringNow||void 0,claimedOnly:t.claimedOnly||void 0,hasLicenses:t.hasLicenses||void 0,hasAwards:t.hasAwards||void 0}),$$={companyTypes:[],verticals:[],productCategories:[],employeeRanges:[],products:[],openRolesRanges:[],yearsActiveRanges:[]},U$=({initialData:t,initialFilterOptions:a,buildUrl:r,initialQuery:n,followDisabled:s=!1,followLoading:i=!1,onToggleFollow:c,onFollowAction:l,saveDisabled:d=!1,saveLoading:h=!1,onToggleSave:u,onSaveAction:p})=>{const[m,y]=M.useState(()=>n||(typeof window>"u"?CC:H$(window.location.search,CC))),[x,f]=M.useState("list"),[v,k]=M.useState(a),{data:w,loading:j}=F$(m,{buildUrl:r,initialData:t}),S=w??t,C=j&&!w,A=M.useMemo(()=>V$(m),[m]);M.useEffect(()=>{if(typeof window>"u")return;const R=O$(m),T=R?`${window.location.pathname}?${R}`:window.location.pathname;window.history.replaceState(null,"",T)},[m]),M.useEffect(()=>{w!=null&&w.filterOptions&&k({...$$,...w.filterOptions})},[w]);const L=R=>{y(T=>({...T,query:R.search,scope:R.scope,filters:B$(R),page:1}))},b=()=>{L(fR)},N=R=>{y(T=>({...T,page:R}))},q=R=>{y(T=>({...T,pageSize:R,page:1}))},P=()=>{f(R=>R==="grid"?"list":"grid")};return e.jsx(xR,{companies:S.results,loading:C,page:S.page,pageSize:S.pageSize||m.pageSize,totalCount:S.count,totalPages:S.totalPages,onPageChange:N,onPageSizeChange:q,filters:A,filterOptions:v,onFiltersChange:L,onClearFilters:b,viewMode:x,onViewModeChange:P,followDisabled:s,followLoading:i,onToggleFollow:c,onFollowAction:l,saveDisabled:d,saveLoading:h,onToggleSave:u,onSaveAction:p})};var SC={exports:{}},VS={};function G$(t){return t&&t.__esModule?t:{default:t}}VS._=G$;var vR={};function wR(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,r=new WeakMap;return(wR=function(n){return n?r:a})(t)}function W$(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var r=wR(a);if(r&&r.has(t))return r.get(t);var n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)){var c=s?Object.getOwnPropertyDescriptor(t,i):null;c&&(c.get||c.set)?Object.defineProperty(n,i,c):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}vR._=W$;var Vj={},uN;function Z$(){return uN||(uN=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=VS._(M).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(Vj)),Vj}var Al={exports:{}},pN;function J$(){return pN||(pN=1,function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"setAttributesFromProps",{enumerable:!0,get:function(){return i}});const r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},n=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function s(c){return["async","defer","noModule"].includes(c)}function i(c,l){for(const[d,h]of Object.entries(l)){if(!l.hasOwnProperty(d)||n.includes(d)||h===void 0)continue;const u=r[d]||d.toLowerCase();c.tagName==="SCRIPT"&&s(u)?c[u]=!!h:c.setAttribute(u,String(h)),(h===!1||c.tagName==="SCRIPT"&&s(u)&&(!h||h==="false"))&&(c.setAttribute(u,""),c.removeAttribute(u))}}(typeof a.default=="function"||typeof a.default=="object"&&a.default!==null)&&typeof a.default.__esModule>"u"&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)}(Al,Al.exports)),Al.exports}var Pl={exports:{}},yN;function X$(){return yN||(yN=1,function(t,a){Object.defineProperty(a,"__esModule",{value:!0});function r(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}r(a,{cancelIdleCallback:function(){return s},requestIdleCallback:function(){return n}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let c=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-c))}})},1)},s=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(i){return clearTimeout(i)};(typeof a.default=="function"||typeof a.default=="object"&&a.default!==null)&&typeof a.default.__esModule>"u"&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)}(Pl,Pl.exports)),Pl.exports}(function(t,a){"use client";Object.defineProperty(a,"__esModule",{value:!0});function r(C,A){for(var L in A)Object.defineProperty(C,L,{enumerable:!0,get:A[L]})}r(a,{default:function(){return S},handleClientScriptLoad:function(){return f},initScriptLoader:function(){return w}});const n=VS,s=vR,i=e,c=n._(LC),l=s._(M),d=Z$(),h=J$(),u=X$(),p=new Map,m=new Set,y=C=>{if(c.default.preinit){C.forEach(A=>{c.default.preinit(A,{as:"style"})});return}if(typeof window<"u"){let A=document.head;C.forEach(L=>{let b=document.createElement("link");b.type="text/css",b.rel="stylesheet",b.href=L,A.appendChild(b)})}},x=C=>{const{src:A,id:L,onLoad:b=()=>{},onReady:N=null,dangerouslySetInnerHTML:q,children:P="",strategy:R="afterInteractive",onError:T,stylesheets:$}=C,W=L||A;if(W&&m.has(W))return;if(p.has(A)){m.add(W),p.get(A).then(b,T);return}const B=()=>{N&&N(),m.add(W)},U=document.createElement("script"),O=new Promise((oe,ae)=>{U.addEventListener("load",function(Y){oe(),b&&b.call(this,Y),B()}),U.addEventListener("error",function(Y){ae(Y)})}).catch(function(oe){T&&T(oe)});q?(U.innerHTML=q.__html||"",B()):P?(U.textContent=typeof P=="string"?P:Array.isArray(P)?P.join(""):"",B()):A&&(U.src=A,p.set(A,O)),(0,h.setAttributesFromProps)(U,C),R==="worker"&&U.setAttribute("type","text/partytown"),U.setAttribute("data-nscript",R),$&&y($),document.body.appendChild(U)};function f(C){const{strategy:A="afterInteractive"}=C;A==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>x(C))}):x(C)}function v(C){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>x(C)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>x(C))})}function k(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(A=>{const L=A.id||A.getAttribute("src");m.add(L)})}function w(C){C.forEach(f),k()}function j(C){const{id:A,src:L="",onLoad:b=()=>{},onReady:N=null,strategy:q="afterInteractive",onError:P,stylesheets:R,...T}=C,{updateScripts:$,scripts:W,getIsSsr:B,appDir:U,nonce:O}=(0,l.useContext)(d.HeadManagerContext),oe=(0,l.useRef)(!1);(0,l.useEffect)(()=>{const Y=A||L;oe.current||(N&&Y&&m.has(Y)&&N(),oe.current=!0)},[N,A,L]);const ae=(0,l.useRef)(!1);if((0,l.useEffect)(()=>{ae.current||(q==="afterInteractive"?x(C):q==="lazyOnload"&&v(C),ae.current=!0)},[C,q]),(q==="beforeInteractive"||q==="worker")&&($?(W[q]=(W[q]||[]).concat([{id:A,src:L,onLoad:b,onReady:N,onError:P,...T}]),$(W)):B&&B()?m.add(A||L):B&&!B()&&x(C)),U){if(R&&R.forEach(Y=>{c.default.preinit(Y,{as:"style"})}),q==="beforeInteractive")return L?(c.default.preload(L,T.integrity?{as:"script",integrity:T.integrity,nonce:O,crossOrigin:T.crossOrigin}:{as:"script",nonce:O,crossOrigin:T.crossOrigin}),(0,i.jsx)("script",{nonce:O,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([L,{...T,id:A}])+")"}})):(T.dangerouslySetInnerHTML&&(T.children=T.dangerouslySetInnerHTML.__html,delete T.dangerouslySetInnerHTML),(0,i.jsx)("script",{nonce:O,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...T,id:A}])+")"}}));q==="afterInteractive"&&L&&c.default.preload(L,T.integrity?{as:"script",integrity:T.integrity,nonce:O,crossOrigin:T.crossOrigin}:{as:"script",nonce:O,crossOrigin:T.crossOrigin})}return null}Object.defineProperty(j,"__nextScript",{value:!0});const S=j;(typeof a.default=="function"||typeof a.default=="object"&&a.default!==null)&&typeof a.default.__esModule>"u"&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)})(SC,SC.exports);var Y$=SC.exports,K$=Y$;const Q$=CT(K$),eU=`
|
|
7826
7826
|
window.dataLayer = window.dataLayer || [];
|
|
7827
7827
|
window.dataLayer.push({ event: 'consent_granted' });
|
|
7828
7828
|
// gtag('consent', 'update', { ad_storage: 'granted', analytics_storage: 'granted' });
|
package/dist/index.mjs
CHANGED
|
@@ -45063,7 +45063,7 @@ const gH = ({
|
|
|
45063
45063
|
onSaveAction: M
|
|
45064
45064
|
}) => {
|
|
45065
45065
|
var ee, pe, be, Z, te, we, xe;
|
|
45066
|
-
const C = i === "grid", j = u ?? t.isFollowing ?? !1, I = m || p, S = j ? "Unfollow Company" : "Follow Company", b =
|
|
45066
|
+
const C = i === "grid", j = u ?? t.isFollowing ?? !1, I = m || p, S = j ? "Unfollow Company" : "Follow Company", b = t.isSaved, L = k || v, q = b ? "Remove from Saved" : "Save Company", A = t.trustAndCompliance.licenses.length + t.trustAndCompliance.certifications.length + t.trustAndCompliance.awards.length, R = ((ee = t.group) == null ? void 0 : ee.intelligenceProfile) ?? t.signalsAndInsights, T = Array.isArray(t.jobs.openRoles) ? t.jobs.openRoles.length : t.jobs.openRoles, $ = r ?? T, W = $ > 0, B = ((pe = t.group) == null ? void 0 : pe.name) ?? t.groupName ?? t.group_name, U = ((be = t.group) == null ? void 0 : be.slug) ?? t.groupSlug ?? t.group_slug ?? ((Z = t.group) == null ? void 0 : Z.id) ?? t.groupId ?? t.group_id, O = (re) => {
|
|
45067
45067
|
switch (re) {
|
|
45068
45068
|
case "Operator":
|
|
45069
45069
|
return "bg-blue-500/10 text-blue-600 border-blue-500/20";
|
package/package.json
CHANGED