@igamingcareer/igaming-components 1.0.117 → 1.0.118

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -7740,7 +7740,7 @@
7740
7740
  hover:bg-accent
7741
7741
  hover:text-accent-foreground
7742
7742
  transition-colors
7743
- `,children:"View Profile →"})})]})]})]})})})},fa=ct.Root,ka=ct.Value,Qt=ie.forwardRef(({className:t,children:a,...s},r)=>e.jsxs(ct.Trigger,{ref:r,className:le("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),...s,children:[a,e.jsx(ct.Icon,{asChild:!0,children:e.jsx(lc.ChevronDownIcon,{className:"h-4 w-4 opacity-50"})})]}));Qt.displayName=ct.Trigger.displayName;const kL=ie.forwardRef(({className:t,...a},s)=>e.jsx(ct.ScrollUpButton,{ref:s,className:le("flex cursor-default items-center justify-center py-1",t),...a,children:e.jsx(lc.ChevronUpIcon,{className:"h-4 w-4"})}));kL.displayName=ct.ScrollUpButton.displayName;const vL=ie.forwardRef(({className:t,...a},s)=>e.jsx(ct.ScrollDownButton,{ref:s,className:le("flex cursor-default items-center justify-center py-1",t),...a,children:e.jsx(lc.ChevronDownIcon,{className:"h-4 w-4"})}));vL.displayName=ct.ScrollDownButton.displayName;const ea=ie.forwardRef(({className:t,children:a,position:s="popper",...r},n)=>e.jsx(ct.Portal,{children:e.jsxs(ct.Content,{ref:n,className:le("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]",s==="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:s,...r,children:[e.jsx(kL,{}),e.jsx(ct.Viewport,{className:le("p-1",s==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),e.jsx(vL,{})]})}));ea.displayName=ct.Content.displayName;const DT=ie.forwardRef(({className:t,...a},s)=>e.jsx(ct.Label,{ref:s,className:le("px-2 py-1.5 text-sm font-semibold",t),...a}));DT.displayName=ct.Label.displayName;const kt=ie.forwardRef(({className:t,children:a,...s},r)=>e.jsxs(ct.Item,{ref:r,className:le("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),...s,children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(ct.ItemIndicator,{children:e.jsx(lc.CheckIcon,{className:"h-4 w-4"})})}),e.jsx(ct.ItemText,{children:a})]}));kt.displayName=ct.Item.displayName;const RT=ie.forwardRef(({className:t,...a},s)=>e.jsx(ct.Separator,{ref:s,className:le("-mx-1 my-1 h-px bg-muted",t),...a}));RT.displayName=ct.Separator.displayName;const FT=p9.Root,HT=p9.CollapsibleTrigger,VT=p9.CollapsibleContent,bL=[{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"]}]}],wL=bL.flatMap(t=>t.items),jL={search:"",companyType:"",verticals:[],productCategories:[],employeeRanges:[],products:[],openRolesRanges:[],yearsActiveRanges:[],hiringNow:!1,scope:"company",claimedOnly:!1,hasLicenses:!1,hasAwards:!1},BT=t=>Array.from(new Set(t.filter(Boolean))).sort((a,s)=>a.localeCompare(s)),OT=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""},ET=t=>{var a,s;if(typeof t=="string")return t;if(typeof t=="object"&&t!==null){const r=t;return r.title??((a=r.tag)==null?void 0:a.name)??((s=r.tag)==null?void 0:s.slug)??null}return null},UT=t=>{const a=t.productsAndServices.flatMap(s=>[s.name,s.category,s.description,...s.keyDifferentiators??[]]);return[t.name,t.companyType,t.classification.businessModel,...t.classification.verticals,...t.classification.productCategories,...t.classification.tags.map(ET).filter(s=>!!s),...a].filter(Boolean)},GT=t=>{const a=UT(t).map(OT).join(" ");return wL.filter(s=>s.matchers.some(r=>a.includes(r))).map(s=>s.label)},$T=t=>{if(!t.overview.foundedYear)return null;const a=new Date().getFullYear();return Math.max(0,a-t.overview.foundedYear)},WT=t=>BT([t.classification.businessModel,...t.productsAndServices.map(a=>a.integrationModel),...t.productsAndServices.flatMap(a=>a.keyDifferentiators)]),ML=t=>{var r;const a=$T(t),s=((r=t.group)==null?void 0:r.intelligenceProfile)??t.signalsAndInsights;return{products:GT(t),capabilities:WT(t),credibility:{licenses:t.trustAndCompliance.licenses.length,awards:t.trustAndCompliance.awards.length,certifications:t.trustAndCompliance.certifications.length,yearsActive:a},commercialSignals:{profileViews30d:s.profileViews30d,followsCount:s.followsCount,hiringIntensity:s.hiringIntensity,searchImpressions:t.visibilityMetrics.searchImpressions,profileClicks:t.visibilityMetrics.profileClicks,externalClicks:t.visibilityMetrics.externalClicks}}},_N=({filters:t,options:a,onFiltersChange:s,onClearFilters:r,resultCount:n})=>{const[o,l]=f.useState({companyType:!0,verticals:!0,products:!0,normalizedProducts:!0,employees:!1,hiring:!0,credibility:!0,signals:!1}),c=p=>{l(g=>({...g,[p]:!g[p]}))},d={companyTypes:a.companyTypes??[],verticals:a.verticals??[],productCategories:a.productCategories??[],employeeRanges:a.employeeRanges??[],products:a.products??[],openRolesRanges:a.openRolesRanges??[],yearsActiveRanges:a.yearsActiveRanges??[]},h=(p,g)=>{s({...t,[p]:g})},u=(p,g)=>{const x=t[p],k=x.includes(g)?x.filter(v=>v!==g):[...x,g];h(p,k)},m=(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),y=({id:p,title:g,icon:x,children:k})=>e.jsxs(FT,{open:o[p],onOpenChange:()=>c(p),children:[e.jsxs(HT,{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(x,{className:"w-4 h-4 text-muted-foreground"}),e.jsx("span",{className:"font-medium text-sm",children:g})]}),o[p]?e.jsx(Wo,{className:"w-4 h-4 text-muted-foreground"}):e.jsx(rs,{className:"w-4 h-4 text-muted-foreground"})]}),e.jsx(VT,{className:"pb-4",children:k})]});return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"relative",children:[e.jsx(dt,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(he,{placeholder:"Search companies, products, tags...",value:t.search,onChange:p=>h("search",p.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(I,{type:"button",size:"sm",variant:t.scope==="company"?"default":"outline",onClick:()=>h("scope","company"),children:"Companies"}),e.jsx(I,{type:"button",size:"sm",variant:t.scope==="group"?"default":"outline",onClick:()=>h("scope","group"),children:"Groups"})]})]}),m>0&&e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"text-sm text-muted-foreground",children:[m," filter",m!==1?"s":""," active"]}),e.jsxs(I,{variant:"ghost",size:"sm",onClick:r,className:"text-accent h-auto py-1",children:[e.jsx(He,{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:[n," ",n===1?t.scope==="group"?"group":"company":t.scope==="group"?"groups":"companies"," found"]}),e.jsxs("div",{className:"divide-y divide-border",children:[e.jsx(y,{id:"companyType",title:"Company Type",icon:De,children:e.jsxs(fa,{value:t.companyType||"all",onValueChange:p=>h("companyType",p==="all"?"":p),children:[e.jsx(Qt,{className:"w-full",children:e.jsx(ka,{placeholder:"All company types"})}),e.jsxs(ea,{children:[e.jsx(kt,{value:"all",children:"All company types"}),d.companyTypes.map(p=>e.jsx(kt,{value:p,children:p},p))]})]})}),e.jsx(y,{id:"verticals",title:"Verticals",icon:zl,children:e.jsx("div",{className:"flex flex-wrap gap-2",children:d.verticals.map(p=>e.jsx(E,{variant:t.verticals.includes(p)?"default":"outline",className:"cursor-pointer transition-colors",onClick:()=>u("verticals",p),children:p},p))})}),e.jsx(y,{id:"products",title:"Products & Services",icon:Ma,children:e.jsx("div",{className:"space-y-2 max-h-48 overflow-y-auto",children:d.productCategories.map(p=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Ut,{id:`cat-${p}`,checked:t.productCategories.includes(p),onCheckedChange:()=>u("productCategories",p)}),e.jsx(H,{htmlFor:`cat-${p}`,className:"text-sm font-normal cursor-pointer flex-1",children:p})]},p))})}),e.jsx(y,{id:"normalizedProducts",title:"Normalized Products",icon:Aa,children:e.jsx("div",{className:"space-y-3",children:bL.map(p=>e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-semibold uppercase text-muted-foreground mb-2",children:p.category}),e.jsx("div",{className:"space-y-2",children:p.items.map(g=>g.label).filter(g=>(d.products??[]).includes(g)).map(g=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Ut,{id:`product-${g}`,checked:t.products.includes(g),onCheckedChange:()=>u("products",g)}),e.jsx(H,{htmlFor:`product-${g}`,className:"text-sm font-normal cursor-pointer flex-1",children:g})]},g))})]},p.category))})}),e.jsx(y,{id:"employees",title:"Company Size",icon:Re,children:e.jsx("div",{className:"space-y-2",children:d.employeeRanges.map(p=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Ut,{id:`emp-${p}`,checked:t.employeeRanges.includes(p),onCheckedChange:()=>u("employeeRanges",p)}),e.jsxs(H,{htmlFor:`emp-${p}`,className:"text-sm font-normal cursor-pointer flex-1",children:[p," employees"]})]},p))})}),e.jsx(y,{id:"hiring",title:"Hiring",icon:_e,children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Ut,{id:"hiring-now",checked:t.hiringNow,onCheckedChange:p=>h("hiringNow",p===!0)}),e.jsxs(H,{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(H,{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(p=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Ut,{id:`open-roles-${p}`,checked:t.openRolesRanges.includes(p),onCheckedChange:()=>u("openRolesRanges",p)}),e.jsxs(H,{htmlFor:`open-roles-${p}`,className:"text-sm font-normal cursor-pointer flex-1",children:[p," roles"]})]},p))})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Ut,{id:"claimed-only",checked:t.claimedOnly,onCheckedChange:p=>h("claimedOnly",p===!0)}),e.jsxs(H,{htmlFor:"claimed-only",className:"text-sm font-normal cursor-pointer flex items-center gap-2",children:[e.jsx(Oe,{className:"w-3.5 h-3.5 text-accent"}),"Claimed profiles only"]})]})]})}),e.jsx(y,{id:"credibility",title:"Credibility",icon:Oe,children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Ut,{id:"has-licenses",checked:t.hasLicenses,onCheckedChange:p=>h("hasLicenses",p===!0)}),e.jsx(H,{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(Ut,{id:"has-awards",checked:t.hasAwards,onCheckedChange:p=>h("hasAwards",p===!0)}),e.jsx(H,{htmlFor:"has-awards",className:"text-sm font-normal cursor-pointer",children:"Award winners"})]}),e.jsxs("div",{children:[e.jsx(H,{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(p=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Ut,{id:`years-${p}`,checked:t.yearsActiveRanges.includes(p),onCheckedChange:()=>u("yearsActiveRanges",p)}),e.jsxs(H,{htmlFor:`years-${p}`,className:"text-sm font-normal cursor-pointer flex-1",children:[p," years"]})]},p))})]})]})})]}),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(I,{variant:"accent",size:"sm",className:"w-full",children:"Request Intro"})]})]})},NL=({count:t=4})=>e.jsx("div",{className:"space-y-4 animate-fade-in",children:[...Array(t)].map((a,s)=>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"})]})]})]})},s))}),ZT=t=>{const a=wL.find(s=>s.label===t);return(a==null?void 0:a.label)??t},CL=({entities:t,onClearSelection:a,maxSelections:s})=>e.jsxs(O,{className:"border-border/60",children:[e.jsxs(ne,{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 ",s," selected profiles"]})]}),e.jsx(I,{variant:"ghost",size:"sm",onClick:a,children:"Clear selection"})]}),e.jsx(G,{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(r=>e.jsx("div",{className:"font-semibold text-sm",children:r.name},r.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(r=>{const n=r.normalizedProfile;return e.jsx("div",{className:"flex flex-wrap gap-1",children:n.products.length===0?e.jsx("span",{className:"text-xs text-muted-foreground",children:"No normalized products"}):n.products.map(o=>e.jsx(E,{variant:"secondary",className:"text-xs",children:ZT(o)},o))},r.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(r=>{const n=r.normalizedProfile;return e.jsx("div",{className:"flex flex-wrap gap-1",children:n.capabilities.length===0?e.jsx("span",{className:"text-xs text-muted-foreground",children:"No data"}):n.capabilities.map(o=>e.jsx(E,{variant:"outline",className:"text-xs",children:o},o))},r.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(r=>{const n=r.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:n.credibility.licenses})]}),e.jsxs("div",{children:["Awards: ",e.jsx("span",{className:"text-foreground",children:n.credibility.awards})]}),e.jsxs("div",{children:["Years active:"," ",e.jsx("span",{className:"text-foreground",children:n.credibility.yearsActive??"N/A"})]})]},r.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(r=>{const n=r.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:n.commercialSignals.profileViews30d})]}),e.jsxs("div",{children:["Followers:"," ",e.jsx("span",{className:"text-foreground",children:n.commercialSignals.followsCount})]}),e.jsxs("div",{children:["Hiring intensity:"," ",e.jsx("span",{className:"text-foreground",children:n.commercialSignals.hiringIntensity})]}),e.jsxs("div",{children:["Search impressions:"," ",e.jsx("span",{className:"text-foreground",children:n.commercialSignals.searchImpressions})]})]},r.id)})]})]})})})]}),JT=({viewMode:t,onToggleViewMode:a,selectedItemsPerPage:s,onItemsPerPageChange:r,totalCount:n,startIndex:o,endIndex:l,title:c,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(De,{className:"w-5 h-5 text-muted-foreground"}),e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:c})]}),e.jsxs("p",{className:"text-sm text-gray-600",children:["Showing ",e.jsx("span",{className:"font-semibold text-gray-900",children:o}),"–",e.jsx("span",{className:"font-semibold text-gray-900",children:l})," of"," ",e.jsx("span",{className:"font-semibold text-gray-900",children:n})," ",d]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3",children:[e.jsx(dM,{viewMode:t,onToggle:a}),e.jsx(E9,{value:s,onChange:r})]})]})}),YT=()=>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(Cl,{className:"bg-accent/20 text-accent border-accent/30 mb-4",children:[e.jsx(Aa,{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."})]})})}),PM=4,XT=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),KT=({companies:t,filterOptions:a,loading:s,page:r,pageSize:n,totalCount:o,totalPages:l,onPageChange:c,onPageSizeChange:d,filters:h,onFiltersChange:u,onClearFilters:m,viewMode:y,onViewModeChange:p,followDisabled:g=!1,followLoading:x=!1,onToggleFollow:k,onFollowAction:v,saveDisabled:w=!1,saveLoading:b=!1,onToggleSave:N,onSaveAction:j})=>{const[M,S]=f.useState(!1),[C,L]=f.useState([]),[A,T]=f.useState(!0),{displayCompanies:P,comparisonEntities:z}=f.useMemo(()=>{const Q=t.map(B=>{var q,Y,te;const ee=h.scope==="group",X=((Y=(q=B.group)==null?void 0:q.companies)==null?void 0:Y.length)??1;return{company:B,displayName:ee?((te=B.group)==null?void 0:te.name)??B.groupName??B.name:B.name,openRolesCount:Array.isArray(B.jobs.openRoles)?B.jobs.openRoles.length:B.jobs.openRoles,groupMembersCount:X,isGroup:ee,comparisonProfile:ML(B),comparisonId:B.id}});return{displayCompanies:Q,comparisonEntities:Q.map(B=>({id:B.comparisonId,name:B.displayName,normalizedProfile:B.comparisonProfile}))}},[t,h.scope]),_=f.useMemo(()=>XT(h),[h]),R=f.useMemo(()=>z.filter(Q=>C.includes(Q.id)),[z,C]);f.useEffect(()=>{L([])},[h.scope]),f.useEffect(()=>{L(Q=>Q.filter(B=>z.some(ee=>ee.id===B)))},[z]);const K=Q=>{L(B=>B.includes(Q)?B.filter(ee=>ee!==Q):B.length>=PM?B:[...B,Q])},Z=()=>{L([])},ce=o===0?0:(r-1)*n+1,se=Math.min(r*n,o),F=y==="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(YT,{}),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(ns,{className:"w-5 h-5 text-accent"}),e.jsx("h2",{className:"font-semibold",children:"Filters"})]}),e.jsx(_N,{filters:h,options:a,onFiltersChange:u,onClearFilters:m,resultCount:o})]})}),e.jsxs("main",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"lg:hidden mb-4",children:e.jsxs(I,{variant:"outline",onClick:()=>S(!0),className:"w-full",children:[e.jsx(ns,{className:"w-4 h-4 mr-2"}),"Filters",_>0&&e.jsx(E,{variant:"secondary",className:"ml-2",children:"Active"})]})}),e.jsx(JT,{viewMode:y,onToggleViewMode:p,selectedItemsPerPage:n,onItemsPerPageChange:d,totalCount:o,startIndex:ce,endIndex:se,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:[C.length>0&&e.jsxs(I,{variant:"outline",size:"sm",onClick:()=>T(Q=>!Q),children:[A?"Hide comparison":"Show comparison"," (",C.length,")"]}),e.jsx("span",{className:"text-sm text-muted-foreground hidden sm:inline",children:"Sort by:"}),e.jsxs(I,{variant:"ghost",size:"sm",className:"text-accent",children:[e.jsx(Wt,{className:"w-4 h-4 mr-1"}),"Most Active"]})]})]}),R.length>0&&A&&e.jsx("div",{className:"mb-6",children:e.jsx(CL,{entities:R,onClearSelection:Z,maxSelections:PM})}),s?e.jsx(NL,{count:n}):e.jsx("div",{className:F,children:P.map(Q=>e.jsx(fL,{company:Q.company,displayName:Q.displayName,openRolesCount:Q.openRolesCount,groupMembersCount:Q.groupMembersCount,isGroup:Q.isGroup,viewMode:y,compareId:Q.comparisonId,compareSelected:C.includes(Q.comparisonId),compareDisabled:!C.includes(Q.comparisonId)&&C.length>=PM,onToggleCompare:K,followDisabled:g,followLoading:x,onToggleFollow:k,onFollowAction:v,saveDisabled:w,saveLoading:b,onToggleSave:N,onSaveAction:j},Q.company.id))}),!s&&l>1&&e.jsx(dc,{currentPage:r,totalPages:l,onPageChange:c}),!s&&o===0&&e.jsxs("div",{className:"text-center py-16",children:[e.jsx(De,{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(I,{variant:"outline",onClick:m,children:"Clear all filters"})]})]})]})})}),M&&e.jsxs("div",{className:"fixed inset-0 z-50 lg:hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:()=>S(!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(I,{variant:"ghost",size:"icon",onClick:()=>S(!1),children:e.jsx(He,{className:"w-5 h-5"})})]}),e.jsx(_N,{filters:h,options:a,onFiltersChange:u,onClearFilters:m,resultCount:o})]})]})]})},SL=ie.forwardRef(({className:t,...a},s)=>e.jsxs(jl.Root,{ref:s,className:le("relative flex w-full touch-none select-none items-center",t),...a,children:[e.jsx(jl.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:e.jsx(jl.Range,{className:"absolute h-full bg-primary"})}),e.jsx(jl.Thumb,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));SL.displayName=jl.Root.displayName;const LL=({title:t="Filters",sections:a,onFilterChange:s,onClearAll:r,activeFiltersCount:n,savedCount:o=0,showSavedOnly:l=!1,onToggleSavedOnly:c,savedLabel:d="Saved Items",className:h=""})=>e.jsxs("div",{className:`bg-card rounded-lg shadow-sm border border-border sticky top-24 max-h-[calc(100vh-7rem)] overflow-y-auto scrollbar-thin ${h}`,children:[e.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-border",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ns,{className:"w-5 h-5 text-accent"}),e.jsx("h2",{className:"font-semibold text-foreground",children:t}),n>0&&e.jsx("span",{className:"bg-accent text-accent-foreground text-xs font-bold px-2 py-0.5 rounded-full",children:n})]}),n>0&&e.jsx("button",{onClick:r,className:"text-sm text-accent hover:underline",children:"Clear all"})]}),e.jsxs("div",{className:"p-4 space-y-4",children:[a.map(u=>e.jsx(QT,{section:u,onFilterChange:s},u.key)),c&&e.jsx("div",{className:"pt-4 border-t border-border",children:e.jsxs("button",{onClick:c,className:`w-full px-4 py-2.5 rounded-lg flex items-center justify-center gap-2 transition-colors ${l?"bg-accent text-accent-foreground":"bg-muted text-muted-foreground hover:bg-muted/80"}`,children:[e.jsx(_t,{className:"w-4 h-4"}),e.jsxs("span",{className:"font-medium",children:[d," (",o,")"]})]})})]})]}),QT=({section:t,onFilterChange:a})=>{var w,b,N;const[s,r]=f.useState(t.defaultExpanded??!0),[n,o]=f.useState(""),[l,c]=f.useState(!1),d=t.maxVisible??1/0,h=f.useMemo(()=>{var C;const j=((C=t.options)==null?void 0:C.filter(L=>L.label.toLowerCase().includes(n.toLowerCase())))||[],M=j.filter(L=>t.selectedValues.includes(L.value)),S=j.filter(L=>!t.selectedValues.includes(L.value));return[...M,...S]},[t.options,n,t.selectedValues]),u=f.useMemo(()=>l||d>=h.length?h:h.slice(0,d),[h,l,d]),m=h.length>d,y=t.searchable!==!1&&(((w=t.options)==null?void 0:w.length)||0)>6,p=j=>{const M=t.selectedValues.includes(j)?t.selectedValues.filter(S=>S!==j):[...t.selectedValues,j];a(t.key,M)},g=j=>{a(t.key,j?[j]:[])},x=t.rangeConfig,k=t.selectedValues.length===2?t.selectedValues.map(Number):x?[x.min,x.max]:[0,100],v=j=>{if(x!=null&&x.formatLabel)return x.formatLabel(j);const M=(x==null?void 0:x.unit)||"";return((x==null?void 0:x.unitPosition)||"prefix")==="prefix"?`${M}${j.toLocaleString()}`:`${j.toLocaleString()}${M}`};return e.jsxs("div",{className:"border-b border-border pb-4 last:border-b-0 last:pb-0",children:[t.collapsible!==!1?e.jsxs("button",{onClick:()=>r(!s),className:"flex items-center justify-between w-full py-2 text-left",children:[e.jsx("h3",{className:"text-sm font-medium text-foreground",children:t.label}),s?e.jsx(rs,{className:"w-4 h-4 text-muted-foreground"}):e.jsx(wa,{className:"w-4 h-4 text-muted-foreground"})]}):e.jsx("h3",{className:"text-sm font-medium text-foreground py-2",children:t.label}),s&&e.jsxs("div",{className:"mt-2 space-y-2",children:[y&&t.type==="checkbox"&&e.jsxs("div",{className:"relative mb-3",children:[e.jsx(dt,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx("input",{type:"text",value:n,onChange:j=>o(j.target.value),placeholder:`Search ${t.label.toLowerCase()}...`,className:"w-full h-8 pl-8 pr-8 text-sm rounded-md border border-input bg-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring"}),n&&e.jsx("button",{onClick:()=>o(""),className:"absolute right-2 top-1/2 -translate-y-1/2",children:e.jsx(He,{className:"w-4 h-4 text-muted-foreground hover:text-foreground"})})]}),t.type==="checkbox"&&e.jsxs("div",{className:"space-y-2",children:[u.map(j=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer group",children:[e.jsx("input",{type:"checkbox",checked:t.selectedValues.includes(j.value),onChange:()=>p(j.value),className:"h-4 w-4 rounded border-input text-accent focus:ring-accent"}),e.jsx("span",{className:"text-sm text-foreground group-hover:text-accent transition-colors flex-1 truncate",children:j.label}),j.count!==void 0&&e.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",j.count,")"]})]},j.value)),h.length===0&&n&&e.jsx("p",{className:"text-sm text-muted-foreground italic",children:"No matching options"}),m&&!n&&e.jsx("button",{onClick:()=>c(j=>!j),className:"text-sm text-accent hover:underline font-medium mt-1",children:l?"View less":`View more (${h.length-d})`})]}),(t.type==="select"||t.type==="searchable-select")&&e.jsxs("select",{value:t.selectedValues[0]||"",onChange:j=>g(j.target.value),className:"w-full h-9 px-3 rounded-md border border-input bg-background text-sm focus:outline-none focus:ring-2 focus:ring-ring",children:[e.jsxs("option",{value:"",children:["All ",t.label]}),(b=t.options)==null?void 0:b.map(j=>e.jsxs("option",{value:j.value,children:[j.label,j.count!==void 0&&` (${j.count})`]},j.value))]}),t.type==="range"&&x&&e.jsxs("div",{className:"space-y-3 px-1",children:[e.jsxs("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[e.jsx("span",{children:v(k[0])}),e.jsx("span",{children:v(k[1])})]}),e.jsx(SL,{min:x.min,max:x.max,step:x.step??1,value:k,onValueChange:j=>{a(t.key,j.map(String))},className:"w-full"}),e.jsxs("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[e.jsx("span",{children:v(x.min)}),e.jsx("span",{children:v(x.max)})]})]}),t.type==="toggle"&&((N=t.options)==null?void 0:N.map(j=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:t.selectedValues.includes(j.value),onChange:()=>p(j.value),className:"h-4 w-4 rounded border-input text-accent focus:ring-accent"}),e.jsx("span",{className:"text-sm text-foreground",children:j.label})]},j.value)))]})]})},IL=({value:t,onChange:a,onSubmit:s,onClear:r,onFilterClick:n,placeholder:o="Search...",suggestions:l=[],onSuggestionSelect:c,showFilterButton:d=!0,filterCount:h=0,className:u=""})=>{const[m,y]=f.useState(!1),p=g=>{g.key==="Enter"&&t.trim()&&(s(t.trim()),y(!1)),g.key==="Escape"&&y(!1)};return e.jsxs("div",{className:`relative ${u}`,children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("div",{className:"relative flex-1",children:[e.jsx(dt,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-5 w-5 text-muted-foreground"}),e.jsx("input",{type:"text",value:t,onChange:g=>{a(g.target.value),y(g.target.value.length>0)},onKeyDown:p,onFocus:()=>y(t.length>0&&l.length>0),onBlur:()=>setTimeout(()=>y(!1),200),placeholder:o,className:"w-full h-12 pl-10 pr-20 rounded-lg border border-input bg-background text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"}),t&&r&&e.jsx("button",{onClick:r,className:"absolute right-14 top-1/2 -translate-y-1/2 p-1 hover:bg-muted rounded",children:e.jsx(He,{className:"h-4 w-4 text-muted-foreground"})}),e.jsx("button",{onClick:()=>t.trim()&&s(t.trim()),className:"absolute right-2 top-1/2 -translate-y-1/2 bg-accent hover:bg-accent-hover text-accent-foreground p-2 rounded-md transition-colors",children:e.jsx(dt,{className:"h-4 w-4"})})]}),d&&n&&e.jsxs("button",{onClick:n,className:"lg:hidden flex items-center justify-center h-12 w-12 rounded-lg border border-input bg-background hover:bg-muted transition-colors relative",children:[e.jsx(gs,{className:"h-5 w-5 text-muted-foreground"}),h>0&&e.jsx("span",{className:"absolute -top-1 -right-1 bg-accent text-accent-foreground text-xs font-bold w-5 h-5 rounded-full flex items-center justify-center",children:h})]})]}),m&&l.length>0&&e.jsx("ul",{className:"absolute z-20 mt-1 w-full bg-card border border-border rounded-lg shadow-lg max-h-60 overflow-y-auto",children:l.map((g,x)=>e.jsx("li",{children:e.jsxs("button",{className:"w-full px-4 py-2 text-left text-sm text-foreground hover:bg-muted flex items-center gap-2",onClick:()=>{c==null||c(g),y(!1)},children:[e.jsx(dt,{className:"h-4 w-4 text-muted-foreground"}),g]})},x))})]})},AL=({search:t,sort:a,viewMode:s,onViewModeChange:r,itemsPerPage:n,onItemsPerPageChange:o,itemsPerPageOptions:l,showItemsPerPage:c=!0,showFilterButton:d=!0,filterCount:h=0,onFilterClick:u,trailingSlot:m,className:y=""})=>e.jsxs("div",{className:`flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between ${y}`,children:[t&&e.jsx("div",{className:"flex-1",children:e.jsx(IL,{value:t.value,onChange:t.onChange,onSubmit:t.onSubmit,onClear:t.onClear,placeholder:t.placeholder,suggestions:t.suggestions,onSuggestionSelect:t.onSuggestionSelect,showFilterButton:d,filterCount:h,onFilterClick:u})}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[a&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm text-gray-600 whitespace-nowrap",children:a.label??"Sort by"}),e.jsx("select",{value:a.value,onChange:p=>a.onChange(p.target.value),className:"h-9 px-3 rounded-md border border-gray-300 bg-white text-sm focus:outline-none focus:ring-2 focus:ring-yellow-500",children:a.options.map(p=>e.jsx("option",{value:p.value,children:p.label},p.value))})]}),s&&r&&e.jsx(dM,{viewMode:s,onViewModeChange:r}),c&&n!==void 0&&o&&e.jsx(E9,{value:n,onChange:o,options:l}),m]})]}),_M=({config:t,className:a=""})=>{const s=t.url.match(/\.(mp4|webm|ogg)$/i),r={sidebar:"w-full max-w-[300px] h-[250px]",top:"w-full h-[48px] md:h-[90px]",bottom:"w-full h-[48px] md:h-[90px]"};return e.jsx("div",{className:`flex justify-center items-center rounded-lg overflow-hidden bg-muted ${a}`,children:e.jsx("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",className:"block",children:s?e.jsxs("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:`${r[t.position]} object-cover`,children:[e.jsx("source",{src:t.url,type:"video/mp4"}),"Your browser does not support the video tag."]}):e.jsx("img",{src:t.url,alt:t.alt??"Advertisement",className:`${r[t.position]} object-cover`})})})},PL=({title:t,description:a,sponsoredSlot:s,sidebarSlot:r,filtersPanel:n,mobileFiltersPanel:o,filters:l,filterValues:c,onFilterChange:d,onClearFilters:h,activeFilters:u,search:m,sort:y,viewMode:p,onViewModeChange:g,pagination:x,showToolbar:k=!0,toolbarTrailingSlot:v,resultsClassName:w="",banner:b,children:N})=>{const[j,M]=f.useState(!1),S=!!(n||l&&l.length>0),C=f.useMemo(()=>l?l.map(P=>({...P,selectedValues:(c==null?void 0:c[P.key])??[]})):[],[l,c]),L=f.useMemo(()=>c?Object.values(c).reduce((P,z)=>P+z.length,0):u?u.length:0,[c,u]),A=f.useMemo(()=>n||(l&&d&&h?e.jsx(LL,{sections:C,onFilterChange:d,onClearAll:h,activeFiltersCount:L}):null),[n,l,d,h,C,L]),T=o??A;return e.jsxs("div",{className:"bg-gray-50",children:[e.jsx(lM,{onSearchChange:()=>{},title:t,description:a,sponsoredSlot:s,popularTags:[]}),e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6",children:[k&&e.jsx(AL,{search:m,sort:y,viewMode:p,onViewModeChange:g,itemsPerPage:x==null?void 0:x.pageSize,onItemsPerPageChange:x==null?void 0:x.onPageSizeChange,itemsPerPageOptions:x==null?void 0:x.pageSizeOptions,showItemsPerPage:(x==null?void 0:x.showItemsPerPage)!==!1,showFilterButton:S,filterCount:L,onFilterClick:()=>M(!0),trailingSlot:v}),u&&u.length>0&&h&&e.jsx("div",{className:"mt-4",children:e.jsx(cM,{filters:u,onClearAll:h})}),e.jsxs("div",{className:"mt-6 flex flex-col gap-6 lg:flex-row",children:[A&&e.jsxs("aside",{className:"hidden lg:block lg:w-72 space-y-4",children:[A,b&&b.position==="sidebar"&&e.jsx(_M,{config:b})]}),e.jsxs("div",{className:`flex-1 ${w}`,children:[b&&b.position==="top"&&e.jsx("div",{className:"mb-4",children:e.jsx(_M,{config:b})}),N,b&&b.position==="bottom"&&e.jsx("div",{className:"mt-4",children:e.jsx(_M,{config:b})}),x&&x.enabled!==!1&&e.jsx(dc,{currentPage:x.page,totalPages:x.totalPages,onPageChange:x.onPageChange})]}),r&&e.jsx("aside",{className:"lg:w-72",children:r})]})]}),T&&e.jsx(gL,{isOpen:j,onClose:()=>M(!1),children:T})]})},_L=({companies:t,filterOptions:a,loading:s,page:r,pageSize:n,totalCount:o,totalPages:l,onPageChange:c,onPageSizeChange:d,filters:h,onFiltersChange:u,onClearFilters:m,viewMode:y,onViewModeChange:p,followDisabled:g=!1,followLoading:x=!1,onToggleFollow:k,onFollowAction:v,saveDisabled:w=!1,saveLoading:b=!1,onToggleSave:N,onSaveAction:j,maxCompare:M,sortOptions:S})=>{const[C,L]=f.useState([]),[A,T]=f.useState(!0),[P,z]=f.useState("popularity"),{displayCompanies:_,comparisonEntities:R}=f.useMemo(()=>{const V=t.map(re=>{var ue,de,Ee;const xe=h.scope==="group",D=((de=(ue=re.group)==null?void 0:ue.companies)==null?void 0:de.length)??1;return{company:re,displayName:xe?((Ee=re.group)==null?void 0:Ee.name)??re.groupName??re.name:re.name,openRolesCount:Array.isArray(re.jobs.openRoles)?re.jobs.openRoles.length:re.jobs.openRoles,groupMembersCount:D,isGroup:xe,comparisonProfile:ML(re),comparisonId:re.id}});return{displayCompanies:V,comparisonEntities:V.map(re=>({id:re.comparisonId,name:re.displayName,normalizedProfile:re.comparisonProfile}))}},[t,h.scope]),K=f.useMemo(()=>R.filter(V=>C.includes(V.id)),[R,C]),Z=f.useMemo(()=>{const V=[..._];switch(P){case"name_asc":V.sort((re,xe)=>re.displayName.localeCompare(xe.displayName));break;case"name_desc":V.sort((re,xe)=>xe.displayName.localeCompare(re.displayName));break;case"employees":V.sort((re,xe)=>(xe.company.overview.employeeRange??"").localeCompare(re.company.overview.employeeRange??""));break;default:V.sort((re,xe)=>{var D,ue;return(((D=xe.company.signalsAndInsights)==null?void 0:D.profileViews30d)||0)-(((ue=re.company.signalsAndInsights)==null?void 0:ue.profileViews30d)||0)})}return V},[_,P]);f.useEffect(()=>{L([])},[h.scope]),f.useEffect(()=>{L(V=>V.filter(re=>R.some(xe=>xe.id===re)))},[R]);const ce=V=>{L(re=>re.includes(V)?re.filter(xe=>xe!==V):re.length>=M?re:[...re,V])},se=()=>{L([])},F=f.useMemo(()=>[{key:"companyType",label:"Company Type",type:"select",options:a.companyTypes.map(V=>({value:V,label:V}))},{key:"verticals",label:"Verticals",type:"checkbox",searchable:!0,options:a.verticals.map(V=>({value:V,label:V}))},{key:"productCategories",label:"Product Categories",type:"checkbox",searchable:!0,options:a.productCategories.map(V=>({value:V,label:V}))},{key:"employeeRanges",label:"Company Size",type:"checkbox",options:a.employeeRanges.map(V=>({value:V,label:V}))},{key:"products",label:"Products",type:"checkbox",searchable:!0,options:a.products.map(V=>({value:V,label:V}))},{key:"openRolesRanges",label:"Open Roles",type:"checkbox",options:a.openRolesRanges.map(V=>({value:V,label:V}))},{key:"yearsActiveRanges",label:"Years Active",type:"checkbox",options:a.yearsActiveRanges.map(V=>({value:V,label:V}))},{key:"hiringNow",label:"Hiring",type:"toggle",options:[{value:"true",label:"Hiring now"}]},{key:"claimedOnly",label:"Claimed Profiles",type:"toggle",options:[{value:"true",label:"Claimed only"}]},{key:"hasLicenses",label:"Compliance",type:"toggle",options:[{value:"true",label:"Has licenses"}]},{key:"hasAwards",label:"Awards",type:"toggle",options:[{value:"true",label:"Has awards"}]}],[a]),Q=f.useMemo(()=>({companyType:h.companyType?[h.companyType]:[],verticals:h.verticals,productCategories:h.productCategories,employeeRanges:h.employeeRanges,products:h.products,openRolesRanges:h.openRolesRanges,yearsActiveRanges:h.yearsActiveRanges,hiringNow:h.hiringNow?["true"]:[],claimedOnly:h.claimedOnly?["true"]:[],hasLicenses:h.hasLicenses?["true"]:[],hasAwards:h.hasAwards?["true"]:[]}),[h]),B=(V,re)=>{const xe={...h};switch(V){case"companyType":xe.companyType=re[0]??"";break;case"verticals":xe.verticals=re;break;case"productCategories":xe.productCategories=re;break;case"employeeRanges":xe.employeeRanges=re;break;case"products":xe.products=re;break;case"openRolesRanges":xe.openRolesRanges=re;break;case"yearsActiveRanges":xe.yearsActiveRanges=re;break;case"hiringNow":xe.hiringNow=re.includes("true");break;case"claimedOnly":xe.claimedOnly=re.includes("true");break;case"hasLicenses":xe.hasLicenses=re.includes("true");break;case"hasAwards":xe.hasAwards=re.includes("true");break}u(xe)},ee=f.useMemo(()=>({companyType:"Company Type",verticals:"Vertical",productCategories:"Product Category",employeeRanges:"Company Size",products:"Product",openRolesRanges:"Open Roles",yearsActiveRanges:"Years Active",hiringNow:"Hiring now",claimedOnly:"Claimed",hasLicenses:"Has licenses",hasAwards:"Has awards"}),[]),X=f.useMemo(()=>Object.entries(Q).flatMap(([V,re])=>re.map(xe=>({key:V,label:ee[V]??V,value:xe==="true"?"Yes":xe,onRemove:()=>{const D=re.filter(ue=>ue!==xe);B(V,D)}}))),[Q,ee,B]),q=V=>{u({...h,search:V})},Y=V=>{V!==y&&p()},te=y==="grid"?"grid gap-4 sm:grid-cols-2 xl:grid-cols-3":"grid gap-4";return e.jsxs(PL,{title:"Company Directory",description:"Discover operators, suppliers, affiliates, and service providers in iGaming.",search:{value:h.search,onChange:V=>{q(V),c(1)},onSubmit:V=>{q(V),c(1)},onClear:()=>{q(""),c(1)},placeholder:"Search companies"},filters:F,filterValues:Q,onFilterChange:(V,re)=>{B(V,re),c(1)},onClearFilters:()=>{m(),c(1)},activeFilters:X,sort:{value:P,options:S,onChange:V=>{z(V),c(1)}},viewMode:y,onViewModeChange:Y,pagination:{page:r,pageSize:n,totalPages:l,totalCount:o,onPageChange:c,onPageSizeChange:V=>{d(V),c(1)}},resultsClassName:te,children:[K.length>0&&A&&e.jsx("div",{className:"mb-6",children:e.jsx(CL,{entities:K,onClearSelection:se,maxSelections:M})}),s?e.jsx(NL,{count:n}):Z.map(V=>e.jsx(fL,{company:V.company,displayName:V.displayName,openRolesCount:V.openRolesCount,groupMembersCount:V.groupMembersCount,isGroup:V.isGroup,viewMode:y,compareId:V.comparisonId,compareSelected:C.includes(V.comparisonId),compareDisabled:!C.includes(V.comparisonId)&&C.length>=M,onToggleCompare:ce,followDisabled:g,followLoading:x,onToggleFollow:k,onFollowAction:v,saveDisabled:w,saveLoading:b,onToggleSave:N,onSaveAction:j},V.company.id)),!s&&C.length>0&&e.jsx("div",{className:"mt-4 flex justify-end",children:e.jsxs(I,{variant:"outline",size:"sm",onClick:()=>T(V=>!V),children:[A?"Hide comparison":"Show comparison"," (",C.length,")"]})}),!s&&o===0&&e.jsxs("div",{className:"text-center py-16",children:[e.jsx(De,{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(I,{variant:"outline",onClick:m,children:"Clear all filters"})]})]})},Jt=ie.forwardRef(({className:t,...a},s)=>e.jsx("textarea",{className:le("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:s,...a}));Jt.displayName="Textarea";const eq=({company:t,open:a,onOpenChange:s,onClaimSubmit:r,claimPrefill:n})=>{const[o,l]=f.useState(1),c=y=>({fullName:(y==null?void 0:y.fullName)??"",workEmail:(y==null?void 0:y.workEmail)??"",jobTitle:(y==null?void 0:y.jobTitle)??"",relationship:"",message:""}),[d,h]=f.useState(()=>c(n));f.useEffect(()=>{a&&h(c(n))},[a,n]);const u=()=>{r==null||r({companyId:t.id,companySlug:t.slug,companyName:t.name,fullName:d.fullName,workEmail:d.workEmail,jobTitle:d.jobTitle,relationship:d.relationship,message:d.message}),l(3)},m=()=>{l(1),h(c(n)),s(!1)};return e.jsx(yt,{open:a,onOpenChange:m,children:e.jsxs(ht,{className:"sm:max-w-[500px]",children:[o===1&&e.jsxs(e.Fragment,{children:[e.jsxs(vt,{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(De,{className:"w-6 h-6 text-accent"})}),e.jsxs(Je,{children:["Claim ",t.name,"'s Profile"]}),e.jsx(oa,{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(Oe,{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(Oe,{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(Oe,{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(Oe,{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(Zt,{children:[e.jsx(I,{variant:"outline",onClick:m,children:"Cancel"}),e.jsxs(I,{variant:"accent",onClick:()=>l(2),children:["Continue",e.jsx(va,{className:"w-4 h-4 ml-2"})]})]})]}),o===2&&e.jsxs(e.Fragment,{children:[e.jsxs(vt,{children:[e.jsx(Je,{children:"Verify Your Affiliation"}),e.jsxs(oa,{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(H,{htmlFor:"fullName",children:"Full Name"}),e.jsx(he,{id:"fullName",placeholder:"John Smith",value:d.fullName,onChange:y=>h({...d,fullName:y.target.value})})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(H,{htmlFor:"workEmail",children:"Work Email"}),e.jsxs("div",{className:"relative",children:[e.jsx(ta,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(he,{id:"workEmail",type:"email",placeholder:`you@${t.overview.website.replace(/^https?:\/\/(www\.)?/,"").split("/")[0]}`,className:"pl-10",value:d.workEmail,onChange:y=>h({...d,workEmail:y.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(H,{htmlFor:"jobTitle",children:"Job Title"}),e.jsxs("div",{className:"relative",children:[e.jsx(_e,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(he,{id:"jobTitle",placeholder:"e.g., Marketing Manager",className:"pl-10",value:d.jobTitle,onChange:y=>h({...d,jobTitle:y.target.value})})]})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(H,{htmlFor:"relationship",children:"Your Role"}),e.jsxs(fa,{value:d.relationship,onValueChange:y=>h({...d,relationship:y}),children:[e.jsx(Qt,{children:e.jsx(ka,{placeholder:"Select your relationship"})}),e.jsxs(ea,{children:[e.jsx(kt,{value:"employee",children:"Current Employee"}),e.jsx(kt,{value:"founder",children:"Founder / Executive"}),e.jsx(kt,{value:"hr",children:"HR / Recruiting"}),e.jsx(kt,{value:"marketing",children:"Marketing / PR"}),e.jsx(kt,{value:"agency",children:"Authorized Agency"})]})]})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(H,{htmlFor:"message",children:"Additional Information (Optional)"}),e.jsx(Jt,{id:"message",placeholder:"Any additional context to help verify your claim...",value:d.message,onChange:y=>h({...d,message:y.target.value}),rows:3})]})]})}),e.jsxs(Zt,{children:[e.jsx(I,{variant:"outline",onClick:()=>l(1),children:"Back"}),e.jsx(I,{variant:"accent",onClick:u,disabled:!d.fullName||!d.workEmail||!d.relationship,children:"Submit Claim Request"})]})]}),o===3&&e.jsxs(e.Fragment,{children:[e.jsxs(vt,{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(Oe,{className:"w-8 h-8 text-gaming-success"})}),e.jsx(Je,{children:"Claim Request Submitted!"}),e.jsxs(oa,{className:"text-center",children:["We've sent a verification email to ",e.jsx("strong",{children:d.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(Zt,{children:e.jsx(I,{variant:"accent",onClick:m,className:"w-full",children:"Done"})})]})]})})},tq=({headquarters:t,foundedYear:a,employeeRange:s,className:r})=>e.jsxs("div",{className:le("flex flex-wrap items-center gap-4 text-sm text-muted-foreground",r),children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(st,{className:"h-4 w-4"}),t.city,", ",t.country]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Ct,{className:"h-4 w-4"}),"Founded ",a]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Re,{className:"h-4 w-4"}),s," employees"]})]});function TL({companyName:t,isAdminView:a=!1,companyType:s,overview:r,classification:n,companyId:o,companySlug:l,groupLabel:c,groupSlug:d,claimedStatus:h,isFollowing:u,signalsAndInsights:m,openRolesCount:y,trustScore:p,isSaved:g,onBack:x,saveDisabled:k,saveLoading:v,canClaim:w,onToggleFollow:b,onFollowAction:N,onToggleSave:j,onSaveAction:M,role:S="viewer",enabledPermissions:C=[],followLoading:L=!1,followDisabled:A=!1,onClaimClick:T}){const P=g,z=A||L,_=u?"Unfollow Company":"Follow Company",R=k||v,K=P?"Remove from Saved":"Save Company",Z=()=>h==="claimed"?e.jsxs(E,{className:"bg-accent/10 text-accent border-accent/20",children:[e.jsx(Oe,{className:"w-3 h-3 mr-1"}),"Claimed"]}):null,ce=()=>{const F=!u;b==null||b(o,F),N==null||N({companyId:o,companySlug:l,action:F?"follow":"unfollow"})},se=()=>{const F=!P;j==null||j(o,F),M==null||M({companyId:o,companySlug:l,companyName:t,action:F?"save":"unsave"})};return 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:[x&&e.jsxs("button",{type:"button",onClick:x,className:"inline-flex items-center text-primary-foreground/70 hover:text-primary-foreground mb-6 text-sm",children:[e.jsx(Ba,{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(De,{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}),Z()]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[e.jsx(E,{variant:"secondary",children:s}),c&&e.jsx("a",{href:d?`/groups/${d}`:"/groups",children:e.jsxs(E,{variant:"outline",className:"border-primary-foreground/30 text-primary-foreground",children:["Part of ",c]})}),n.verticals.map(F=>e.jsx(E,{variant:"outline",className:"border-primary-foreground/30 text-primary-foreground",children:F},F))]}),e.jsx(tq,{headquarters:r.headquarters,foundedYear:r.foundedYear,employeeRange:r.employeeRange,className:"mb-4 text-primary-foreground/80"}),a?e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs(E,{variant:"secondary",className:"",children:["Role: ",S]}),C.length>0?C.map(([F,Q])=>e.jsx(E,{variant:"outline",children:Q},F)):e.jsx("span",{className:"text-xs text-muted-foreground",children:"No extra permissions"})]}):e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsxs(I,{variant:"accent",onClick:ce,disabled:z,"aria-label":`${_} ${t}`,"aria-pressed":u,"aria-busy":L,title:_,children:[L?e.jsx($e,{className:"w-4 h-4 mr-2 animate-spin"}):u?e.jsx(Oe,{className:"w-4 h-4 mr-2"}):e.jsx($a,{className:"w-4 h-4 mr-2"}),L?"Loading":u?"Following":"Follow"]}),e.jsxs(I,{variant:P?"secondary":"outline",className:"border-primary-foreground/30 hover:bg-primary-foreground/10",onClick:se,disabled:R,"aria-label":`${K} ${t}`,"aria-pressed":P,"aria-busy":v,title:K,children:[v?e.jsx($e,{className:"w-4 h-4 mr-2 animate-spin"}):e.jsx(_t,{className:"w-4 h-4 mr-2 fill-transparent"}),v?"Loading":P?"Saved":"Save"]}),h==="unclaimed"&&e.jsx(I,{variant:"ghost",className:"text-primary-foreground",onClick:T,children:"Claim Profile"})]})]}),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:y}),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:[(m.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:p}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Trust Signals"})]})]})]})]})})}const qL=({items:t,className:a})=>e.jsx(Ja,{className:["flex-wrap h-auto gap-1 bg-secondary/50 p-1",a].join(" "),children:t.filter(s=>!s.hidden).map(({value:s,label:r,icon:n,disabled:o})=>e.jsxs(Me,{value:s,disabled:o,children:[n&&e.jsx(n,{className:"w-4 h-4 mr-1.5"}),r]},s))}),aq=({overview:t,classification:a,officeLocations:s,formatOfficeLocation:r})=>e.jsxs(ke,{value:"overview",className:"space-y-6 mt-0",children:[e.jsxs(O,{children:[e.jsx(ne,{children:e.jsx(oe,{children:"About"})}),e.jsxs(G,{children:[e.jsx("p",{className:"text-muted-foreground mb-4",children:t.longDescription||t.shortDescription}),e.jsx("div",{className:"flex flex-wrap gap-2",children:a.tags.map(n=>e.jsxs(E,{variant:"secondary",children:["#",n]},n))})]})]}),e.jsxs(O,{children:[e.jsx(ne,{children:e.jsx(oe,{children:"Office Locations"})}),e.jsx(G,{children:e.jsx("div",{className:"flex flex-wrap gap-3",children:s.map((n,o)=>e.jsxs(E,{variant:"outline",children:[e.jsx(st,{className:"w-3 h-3 mr-1"}),r(n)]},o))})})]})]}),sq=({products:t})=>e.jsx(ke,{value:"products",className:"space-y-4 mt-0",children:t.map((a,s)=>e.jsxs(O,{children:[e.jsx(ne,{children:e.jsx("div",{className:"flex items-start justify-between",children:e.jsxs("div",{children:[e.jsx(oe,{className:"text-lg",children:a.name}),e.jsx(E,{variant:"secondary",className:"mt-1",children:a.category})]})})}),e.jsxs(G,{children:[e.jsx("p",{className:"text-muted-foreground mb-3",children:a.description}),e.jsx("div",{className:"flex flex-wrap gap-2",children:a.keyDifferentiators.map((r,n)=>e.jsxs(E,{variant:"outline",children:[e.jsx(Gl,{className:"w-3 h-3 mr-1"}),r]},n))})]})]},s))}),rq=new Set(["malta","italy","spain","netherlands","united kingdom","germany","sweden","romania","croatia","serbia","brazil"]),nq=({companyTrustData:t,credibilityEvidence:a})=>{const s=h=>typeof h=="string"?h:`${h.authority} (${h.jurisdiction})`,r=h=>typeof h=="string"?h:`${h.name} (${h.year})`;function n(h=[]){const u=h.map(m=>m.toLowerCase());return o.flatMap(m=>u.find(p=>m.aliases.some(g=>p.includes(g)))?[{name:m.name,year:new Date().getFullYear()}]:[])}const o=[{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"]}],l=n((a==null?void 0:a.awards_mentioned)??[]),c=d((a==null?void 0:a.countries_mentioned)??[],rq);function d(h=[],u){return Array.from(new Set(h.map(m=>m.toLowerCase()).filter(m=>u.has(m)).map(m=>m[0].toUpperCase()+m.slice(1))))}return e.jsxs(ke,{value:"trust",className:"space-y-4 mt-0",children:[t.licenses.length>0&&e.jsxs(O,{children:[e.jsx(ne,{children:e.jsxs(oe,{className:"flex items-center gap-2",children:[e.jsx(Bs,{className:"w-5 h-5 text-gaming-success"}),"Licenses"]})}),e.jsx(G,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:t.licenses.map((h,u)=>e.jsx(E,{className:"bg-gaming-success/10 text-gaming-success",children:s(h)},u))})})]}),t.awards.length>0&&e.jsxs(O,{children:[e.jsx(ne,{children:e.jsxs(oe,{className:"flex items-center gap-2",children:[e.jsx(Pt,{className:"w-5 h-5 text-gaming-gold"}),"Awards"]})}),e.jsx(G,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:t.awards.map((h,u)=>e.jsx(E,{className:"bg-gaming-gold/10 text-gaming-gold",children:r(h)},u))})})]}),l.length>0&&e.jsxs(O,{children:[e.jsx(ne,{children:e.jsxs(oe,{className:"flex items-center gap-2",children:[e.jsx(Pt,{className:"w-5 h-5 text-gaming-gold"}),"Industry Recognition"]})}),e.jsx(G,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:l.map((h,u)=>e.jsxs(E,{variant:"outline",children:[h.name,e.jsx("span",{className:"ml-1 text-xs text-muted-foreground",children:"(inferred)"})]},u))})})]}),c.length>0&&e.jsxs(O,{children:[e.jsx(ne,{children:e.jsxs(oe,{className:"flex items-center gap-2",children:[e.jsx(Ma,{className:"w-5 h-5 text-accent"}),"Markets Mentioned"]})}),e.jsx(G,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:c.map((h,u)=>e.jsx(E,{variant:"secondary",children:h},u))})})]})]})},iq=({members:t})=>e.jsx(ke,{value:"people",className:"mt-0",children:e.jsx(O,{children:e.jsx(G,{className:"py-6 space-y-4",children:t.length===0?e.jsx("p",{className:"text-center text-muted-foreground",children:"Employee profiles are opt-in. No verified members yet."}):t.map((a,s)=>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:a.name}),e.jsx("p",{className:"text-sm text-muted-foreground",children:a.title})]}),a.profileUrl&&e.jsx("a",{href:a.profileUrl,target:"_blank",rel:"noreferrer",children:e.jsx(I,{size:"sm",variant:"outline",children:"View Profile"})})]},s))})})});function $7({job:t,view:a,isSaved:s=!1,onApply:r,onSave:n,onRemove:o,onViewApplication:l}){var h;const c=t.city?`${t.city}, ${t.country}`:t.location,d=t.salaryMin&&t.salaryMax?`${t.salaryMin}–${t.salaryMax} ${t.salaryCurrency||""}`:void 0;return e.jsxs(O,{children:[e.jsxs(ne,{children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx(oe,{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($o,{className:"h-4 w-4"}),t.company]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(st,{className:"h-4 w-4"}),c]})]})]}),a==="applications"&&t.status&&e.jsx(E,{variant:"secondary",children:t.status})]}),d&&e.jsx("p",{className:"text-sm font-semibold text-accent mt-1",children:d})]}),e.jsx(G,{children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.department&&e.jsx(E,{variant:"outline",children:t.department}),(h=t.skills)==null?void 0:h.slice(0,6).map(u=>e.jsx(E,{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(ja,{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(I,{size:"sm",onClick:()=>r==null?void 0:r(t.id),children:"Apply Now"}),e.jsx(I,{size:"sm",variant:s?"secondary":"outline",disabled:s,onClick:()=>n==null?void 0:n(t),children:s?"Saved":"Save Job"}),e.jsx(I,{size:"sm",variant:"destructive",onClick:()=>o==null?void 0:o(t.id),children:"Remove"})]}),a==="saved"&&e.jsx(I,{size:"sm",variant:"destructive",onClick:()=>o==null?void 0:o(t.id),children:"Remove"}),a==="applications"&&e.jsx(I,{size:"sm",variant:"outline",onClick:()=>l==null?void 0:l(t.id),children:"View Application"}),a==="company"&&e.jsx(I,{size:"sm",variant:"outline",onClick:()=>{window.location.href=t.link},children:"Apply"})]})]})})]})}const oq=({company:t,jobListings:a,openRolesCount:s})=>e.jsx(ke,{value:"jobs",className:"space-y-4 mt-0",children:e.jsxs(O,{children:[e.jsx(ne,{children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs(oe,{children:["Open Positions (",s,")"]}),e.jsx(E,{children:t.jobs.remotePolicy})]})}),e.jsx("div",{className:"grid gap-4 p-4",children:a.length===0?e.jsx(O,{children:e.jsxs(G,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(ba,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No saved jobs yet"}),e.jsx(I,{variant:"link",className:"mt-2",children:"Browse Jobs"})]})}):a.map(r=>e.jsx($7,{job:r,view:"company"},r.id))})]})});function l9({article:t,view:a,isSaved:s=!1,onRead:r,onSave:n,onRemove:o}){var l;return e.jsxs(O,{children:[e.jsxs(ne,{children:[e.jsxs("div",{className:"flex gap-2 items-start mb-2",children:[(l=t.categories)==null?void 0:l.map(c=>e.jsx(E,{variant:"secondary",children:c})),e.jsx("span",{className:"text-xs text-muted-foreground",children:t.publishedDate})]}),e.jsx(oe,{className:"text-lg",children:t.title}),e.jsxs(Se,{className:"text-xs",children:[t.source?t.source:t.company," • ",t.readTime," min"]})]}),e.jsx(G,{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(c=>e.jsx(E,{variant:"outline",className:"text-xs",children:c},c))}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:flex-wrap",children:[e.jsx(I,{size:"sm",onClick:()=>r==null?void 0:r(t.id),children:"Read Article"}),a==="recommended"&&e.jsxs(e.Fragment,{children:[e.jsx(I,{size:"sm",variant:s?"secondary":"outline",disabled:s,onClick:()=>n==null?void 0:n(t),children:s?"Saved":"Save"}),e.jsx(I,{size:"sm",variant:"destructive",onClick:()=>o==null?void 0:o(t.id),children:"Remove"})]}),a==="saved"&&e.jsx(I,{size:"sm",variant:"destructive",onClick:()=>o==null?void 0:o(t.id),children:"Remove Saved"}),a==="company"&&e.jsx(I,{size:"sm",variant:"outline",onClick:()=>r==null?void 0:r(t.id),children:"Read"})]})]})})]})}const lq=({companyNews:t,newsArticles:a=[]})=>{var n;const s=o=>typeof o=="string"?o:`${o.title} • ${o.source}`,r=o=>typeof o=="object"&&o!==null&&"url"in o;return e.jsx(ke,{value:"news",className:"mt-0",children:e.jsxs(O,{children:[e.jsx(ne,{children:e.jsxs(oe,{children:["News (",a.length,")"]})}),e.jsx(G,{className:"py-6 space-y-4",children:a.length>0?e.jsx("div",{className:"grid gap-4",children:a.map(o=>e.jsx(l9,{article:o,view:"company",onRead:()=>window.open(o.link,"_blank")},o.id))}):(n=t==null?void 0:t.pressMentions)!=null&&n.length?t.pressMentions.map((o,l)=>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:s(o)}),r(o)&&o.url&&e.jsx("a",{href:o.url,target:"_blank",rel:"noreferrer",children:e.jsx(I,{size:"sm",variant:"outline",children:"Read"})})]},l)):e.jsx("p",{className:"text-center text-muted-foreground",children:"No recent news mentions."})})]})})},cq=({companyEvents:t,conferenceEvents:a=[]})=>{const s=n=>"name"in n?n.name:n.eventName,r=n=>"startDate"in n?`${n.startDate}${n.endDate?` - ${n.endDate}`:""}`:n.date;return e.jsx(ke,{value:"events",className:"space-y-4 mt-0",children:a.length>0?e.jsxs(O,{children:[e.jsx(ne,{children:e.jsx(oe,{className:"flex items-center gap-2",children:"Upcoming Events"})}),e.jsx(G,{children:e.jsx("div",{className:"grid gap-4 p-4",children:a.map(n=>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:[n.conference," - ",n.event_year]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Stand: ",n.stand]})]}),e.jsx("a",{href:n.link,target:"_blank",rel:"noreferrer",children:e.jsx(I,{size:"sm",variant:"outline",children:"View"})})]},n._id))})})]}):t.upcomingEvents.map((n,o)=>e.jsxs("div",{className:`flex items-center justify-between p-3
7743
+ `,children:"View Profile →"})})]})]})]})})})},fa=ct.Root,ka=ct.Value,Qt=ie.forwardRef(({className:t,children:a,...s},r)=>e.jsxs(ct.Trigger,{ref:r,className:le("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),...s,children:[a,e.jsx(ct.Icon,{asChild:!0,children:e.jsx(lc.ChevronDownIcon,{className:"h-4 w-4 opacity-50"})})]}));Qt.displayName=ct.Trigger.displayName;const kL=ie.forwardRef(({className:t,...a},s)=>e.jsx(ct.ScrollUpButton,{ref:s,className:le("flex cursor-default items-center justify-center py-1",t),...a,children:e.jsx(lc.ChevronUpIcon,{className:"h-4 w-4"})}));kL.displayName=ct.ScrollUpButton.displayName;const vL=ie.forwardRef(({className:t,...a},s)=>e.jsx(ct.ScrollDownButton,{ref:s,className:le("flex cursor-default items-center justify-center py-1",t),...a,children:e.jsx(lc.ChevronDownIcon,{className:"h-4 w-4"})}));vL.displayName=ct.ScrollDownButton.displayName;const ea=ie.forwardRef(({className:t,children:a,position:s="popper",...r},n)=>e.jsx(ct.Portal,{children:e.jsxs(ct.Content,{ref:n,className:le("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]",s==="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:s,...r,children:[e.jsx(kL,{}),e.jsx(ct.Viewport,{className:le("p-1",s==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),e.jsx(vL,{})]})}));ea.displayName=ct.Content.displayName;const DT=ie.forwardRef(({className:t,...a},s)=>e.jsx(ct.Label,{ref:s,className:le("px-2 py-1.5 text-sm font-semibold",t),...a}));DT.displayName=ct.Label.displayName;const kt=ie.forwardRef(({className:t,children:a,...s},r)=>e.jsxs(ct.Item,{ref:r,className:le("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),...s,children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(ct.ItemIndicator,{children:e.jsx(lc.CheckIcon,{className:"h-4 w-4"})})}),e.jsx(ct.ItemText,{children:a})]}));kt.displayName=ct.Item.displayName;const RT=ie.forwardRef(({className:t,...a},s)=>e.jsx(ct.Separator,{ref:s,className:le("-mx-1 my-1 h-px bg-muted",t),...a}));RT.displayName=ct.Separator.displayName;const FT=p9.Root,HT=p9.CollapsibleTrigger,VT=p9.CollapsibleContent,bL=[{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"]}]}],wL=bL.flatMap(t=>t.items),jL={search:"",companyType:"",verticals:[],productCategories:[],employeeRanges:[],products:[],openRolesRanges:[],yearsActiveRanges:[],hiringNow:!1,scope:"company",claimedOnly:!1,hasLicenses:!1,hasAwards:!1},BT=t=>Array.from(new Set(t.filter(Boolean))).sort((a,s)=>a.localeCompare(s)),OT=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""},ET=t=>{var a,s;if(typeof t=="string")return t;if(typeof t=="object"&&t!==null){const r=t;return r.title??((a=r.tag)==null?void 0:a.name)??((s=r.tag)==null?void 0:s.slug)??null}return null},UT=t=>{const a=t.productsAndServices.flatMap(s=>[s.name,s.category,s.description,...s.keyDifferentiators??[]]);return[t.name,t.companyType,t.classification.businessModel,...t.classification.verticals,...t.classification.productCategories,...t.classification.tags.map(ET).filter(s=>!!s),...a].filter(Boolean)},GT=t=>{const a=UT(t).map(OT).join(" ");return wL.filter(s=>s.matchers.some(r=>a.includes(r))).map(s=>s.label)},$T=t=>{if(!t.overview.foundedYear)return null;const a=new Date().getFullYear();return Math.max(0,a-t.overview.foundedYear)},WT=t=>BT([t.classification.businessModel,...t.productsAndServices.map(a=>a.integrationModel),...t.productsAndServices.flatMap(a=>a.keyDifferentiators)]),ML=t=>{var r;const a=$T(t),s=((r=t.group)==null?void 0:r.intelligenceProfile)??t.signalsAndInsights;return{products:GT(t),capabilities:WT(t),credibility:{licenses:t.trustAndCompliance.licenses.length,awards:t.trustAndCompliance.awards.length,certifications:t.trustAndCompliance.certifications.length,yearsActive:a},commercialSignals:{profileViews30d:s.profileViews30d,followsCount:s.followsCount,hiringIntensity:s.hiringIntensity,searchImpressions:t.visibilityMetrics.searchImpressions,profileClicks:t.visibilityMetrics.profileClicks,externalClicks:t.visibilityMetrics.externalClicks}}},_N=({filters:t,options:a,onFiltersChange:s,onClearFilters:r,resultCount:n})=>{const[o,l]=f.useState({companyType:!0,verticals:!0,products:!0,normalizedProducts:!0,employees:!1,hiring:!0,credibility:!0,signals:!1}),c=p=>{l(g=>({...g,[p]:!g[p]}))},d={companyTypes:a.companyTypes??[],verticals:a.verticals??[],productCategories:a.productCategories??[],employeeRanges:a.employeeRanges??[],products:a.products??[],openRolesRanges:a.openRolesRanges??[],yearsActiveRanges:a.yearsActiveRanges??[]},h=(p,g)=>{s({...t,[p]:g})},u=(p,g)=>{const x=t[p],k=x.includes(g)?x.filter(v=>v!==g):[...x,g];h(p,k)},m=(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),y=({id:p,title:g,icon:x,children:k})=>e.jsxs(FT,{open:o[p],onOpenChange:()=>c(p),children:[e.jsxs(HT,{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(x,{className:"w-4 h-4 text-muted-foreground"}),e.jsx("span",{className:"font-medium text-sm",children:g})]}),o[p]?e.jsx(Wo,{className:"w-4 h-4 text-muted-foreground"}):e.jsx(rs,{className:"w-4 h-4 text-muted-foreground"})]}),e.jsx(VT,{className:"pb-4",children:k})]});return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"relative",children:[e.jsx(dt,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(he,{placeholder:"Search companies, products, tags...",value:t.search,onChange:p=>h("search",p.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(I,{type:"button",size:"sm",variant:t.scope==="company"?"default":"outline",onClick:()=>h("scope","company"),children:"Companies"}),e.jsx(I,{type:"button",size:"sm",variant:t.scope==="group"?"default":"outline",onClick:()=>h("scope","group"),children:"Groups"})]})]}),m>0&&e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"text-sm text-muted-foreground",children:[m," filter",m!==1?"s":""," active"]}),e.jsxs(I,{variant:"ghost",size:"sm",onClick:r,className:"text-accent h-auto py-1",children:[e.jsx(He,{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:[n," ",n===1?t.scope==="group"?"group":"company":t.scope==="group"?"groups":"companies"," found"]}),e.jsxs("div",{className:"divide-y divide-border",children:[e.jsx(y,{id:"companyType",title:"Company Type",icon:De,children:e.jsxs(fa,{value:t.companyType||"all",onValueChange:p=>h("companyType",p==="all"?"":p),children:[e.jsx(Qt,{className:"w-full",children:e.jsx(ka,{placeholder:"All company types"})}),e.jsxs(ea,{children:[e.jsx(kt,{value:"all",children:"All company types"}),d.companyTypes.map(p=>e.jsx(kt,{value:p,children:p},p))]})]})}),e.jsx(y,{id:"verticals",title:"Verticals",icon:zl,children:e.jsx("div",{className:"flex flex-wrap gap-2",children:d.verticals.map(p=>e.jsx(E,{variant:t.verticals.includes(p)?"default":"outline",className:"cursor-pointer transition-colors",onClick:()=>u("verticals",p),children:p},p))})}),e.jsx(y,{id:"products",title:"Products & Services",icon:Ma,children:e.jsx("div",{className:"space-y-2 max-h-48 overflow-y-auto",children:d.productCategories.map(p=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Ut,{id:`cat-${p}`,checked:t.productCategories.includes(p),onCheckedChange:()=>u("productCategories",p)}),e.jsx(H,{htmlFor:`cat-${p}`,className:"text-sm font-normal cursor-pointer flex-1",children:p})]},p))})}),e.jsx(y,{id:"normalizedProducts",title:"Normalized Products",icon:Aa,children:e.jsx("div",{className:"space-y-3",children:bL.map(p=>e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-semibold uppercase text-muted-foreground mb-2",children:p.category}),e.jsx("div",{className:"space-y-2",children:p.items.map(g=>g.label).filter(g=>(d.products??[]).includes(g)).map(g=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Ut,{id:`product-${g}`,checked:t.products.includes(g),onCheckedChange:()=>u("products",g)}),e.jsx(H,{htmlFor:`product-${g}`,className:"text-sm font-normal cursor-pointer flex-1",children:g})]},g))})]},p.category))})}),e.jsx(y,{id:"employees",title:"Company Size",icon:Re,children:e.jsx("div",{className:"space-y-2",children:d.employeeRanges.map(p=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Ut,{id:`emp-${p}`,checked:t.employeeRanges.includes(p),onCheckedChange:()=>u("employeeRanges",p)}),e.jsxs(H,{htmlFor:`emp-${p}`,className:"text-sm font-normal cursor-pointer flex-1",children:[p," employees"]})]},p))})}),e.jsx(y,{id:"hiring",title:"Hiring",icon:_e,children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Ut,{id:"hiring-now",checked:t.hiringNow,onCheckedChange:p=>h("hiringNow",p===!0)}),e.jsxs(H,{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(H,{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(p=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Ut,{id:`open-roles-${p}`,checked:t.openRolesRanges.includes(p),onCheckedChange:()=>u("openRolesRanges",p)}),e.jsxs(H,{htmlFor:`open-roles-${p}`,className:"text-sm font-normal cursor-pointer flex-1",children:[p," roles"]})]},p))})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Ut,{id:"claimed-only",checked:t.claimedOnly,onCheckedChange:p=>h("claimedOnly",p===!0)}),e.jsxs(H,{htmlFor:"claimed-only",className:"text-sm font-normal cursor-pointer flex items-center gap-2",children:[e.jsx(Oe,{className:"w-3.5 h-3.5 text-accent"}),"Claimed profiles only"]})]})]})}),e.jsx(y,{id:"credibility",title:"Credibility",icon:Oe,children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Ut,{id:"has-licenses",checked:t.hasLicenses,onCheckedChange:p=>h("hasLicenses",p===!0)}),e.jsx(H,{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(Ut,{id:"has-awards",checked:t.hasAwards,onCheckedChange:p=>h("hasAwards",p===!0)}),e.jsx(H,{htmlFor:"has-awards",className:"text-sm font-normal cursor-pointer",children:"Award winners"})]}),e.jsxs("div",{children:[e.jsx(H,{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(p=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Ut,{id:`years-${p}`,checked:t.yearsActiveRanges.includes(p),onCheckedChange:()=>u("yearsActiveRanges",p)}),e.jsxs(H,{htmlFor:`years-${p}`,className:"text-sm font-normal cursor-pointer flex-1",children:[p," years"]})]},p))})]})]})})]}),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(I,{variant:"accent",size:"sm",className:"w-full",children:"Request Intro"})]})]})},NL=({count:t=4})=>e.jsx("div",{className:"space-y-4 animate-fade-in",children:[...Array(t)].map((a,s)=>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"})]})]})]})},s))}),ZT=t=>{const a=wL.find(s=>s.label===t);return(a==null?void 0:a.label)??t},CL=({entities:t,onClearSelection:a,maxSelections:s})=>e.jsxs(O,{className:"border-border/60",children:[e.jsxs(ne,{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 ",s," selected profiles"]})]}),e.jsx(I,{variant:"ghost",size:"sm",onClick:a,children:"Clear selection"})]}),e.jsx(G,{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(r=>e.jsx("div",{className:"font-semibold text-sm",children:r.name},r.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(r=>{const n=r.normalizedProfile;return e.jsx("div",{className:"flex flex-wrap gap-1",children:n.products.length===0?e.jsx("span",{className:"text-xs text-muted-foreground",children:"No normalized products"}):n.products.map(o=>e.jsx(E,{variant:"secondary",className:"text-xs",children:ZT(o)},o))},r.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(r=>{const n=r.normalizedProfile;return e.jsx("div",{className:"flex flex-wrap gap-1",children:n.capabilities.length===0?e.jsx("span",{className:"text-xs text-muted-foreground",children:"No data"}):n.capabilities.map(o=>e.jsx(E,{variant:"outline",className:"text-xs",children:o},o))},r.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(r=>{const n=r.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:n.credibility.licenses})]}),e.jsxs("div",{children:["Awards: ",e.jsx("span",{className:"text-foreground",children:n.credibility.awards})]}),e.jsxs("div",{children:["Years active:"," ",e.jsx("span",{className:"text-foreground",children:n.credibility.yearsActive??"N/A"})]})]},r.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(r=>{const n=r.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:n.commercialSignals.profileViews30d})]}),e.jsxs("div",{children:["Followers:"," ",e.jsx("span",{className:"text-foreground",children:n.commercialSignals.followsCount})]}),e.jsxs("div",{children:["Hiring intensity:"," ",e.jsx("span",{className:"text-foreground",children:n.commercialSignals.hiringIntensity})]}),e.jsxs("div",{children:["Search impressions:"," ",e.jsx("span",{className:"text-foreground",children:n.commercialSignals.searchImpressions})]})]},r.id)})]})]})})})]}),JT=({viewMode:t,onToggleViewMode:a,selectedItemsPerPage:s,onItemsPerPageChange:r,totalCount:n,startIndex:o,endIndex:l,title:c,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(De,{className:"w-5 h-5 text-muted-foreground"}),e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:c})]}),e.jsxs("p",{className:"text-sm text-gray-600",children:["Showing ",e.jsx("span",{className:"font-semibold text-gray-900",children:o}),"–",e.jsx("span",{className:"font-semibold text-gray-900",children:l})," of"," ",e.jsx("span",{className:"font-semibold text-gray-900",children:n})," ",d]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3",children:[e.jsx(dM,{viewMode:t,onToggle:a}),e.jsx(E9,{value:s,onChange:r})]})]})}),YT=()=>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(Cl,{className:"bg-accent/20 text-accent border-accent/30 mb-4",children:[e.jsx(Aa,{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."})]})})}),PM=4,XT=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),KT=({companies:t,filterOptions:a,loading:s,page:r,pageSize:n,totalCount:o,totalPages:l,onPageChange:c,onPageSizeChange:d,filters:h,onFiltersChange:u,onClearFilters:m,viewMode:y,onViewModeChange:p,followDisabled:g=!1,followLoading:x=!1,onToggleFollow:k,onFollowAction:v,saveDisabled:w=!1,saveLoading:b=!1,onToggleSave:N,onSaveAction:j})=>{const[M,S]=f.useState(!1),[C,L]=f.useState([]),[A,T]=f.useState(!0),{displayCompanies:P,comparisonEntities:z}=f.useMemo(()=>{const Q=t.map(B=>{var q,Y,te;const ee=h.scope==="group",X=((Y=(q=B.group)==null?void 0:q.companies)==null?void 0:Y.length)??1;return{company:B,displayName:ee?((te=B.group)==null?void 0:te.name)??B.groupName??B.name:B.name,openRolesCount:Array.isArray(B.jobs.openRoles)?B.jobs.openRoles.length:B.jobs.openRoles,groupMembersCount:X,isGroup:ee,comparisonProfile:ML(B),comparisonId:B.id}});return{displayCompanies:Q,comparisonEntities:Q.map(B=>({id:B.comparisonId,name:B.displayName,normalizedProfile:B.comparisonProfile}))}},[t,h.scope]),_=f.useMemo(()=>XT(h),[h]),R=f.useMemo(()=>z.filter(Q=>C.includes(Q.id)),[z,C]);f.useEffect(()=>{L([])},[h.scope]),f.useEffect(()=>{L(Q=>Q.filter(B=>z.some(ee=>ee.id===B)))},[z]);const K=Q=>{L(B=>B.includes(Q)?B.filter(ee=>ee!==Q):B.length>=PM?B:[...B,Q])},Z=()=>{L([])},ce=o===0?0:(r-1)*n+1,se=Math.min(r*n,o),F=y==="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(YT,{}),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(ns,{className:"w-5 h-5 text-accent"}),e.jsx("h2",{className:"font-semibold",children:"Filters"})]}),e.jsx(_N,{filters:h,options:a,onFiltersChange:u,onClearFilters:m,resultCount:o})]})}),e.jsxs("main",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"lg:hidden mb-4",children:e.jsxs(I,{variant:"outline",onClick:()=>S(!0),className:"w-full",children:[e.jsx(ns,{className:"w-4 h-4 mr-2"}),"Filters",_>0&&e.jsx(E,{variant:"secondary",className:"ml-2",children:"Active"})]})}),e.jsx(JT,{viewMode:y,onToggleViewMode:p,selectedItemsPerPage:n,onItemsPerPageChange:d,totalCount:o,startIndex:ce,endIndex:se,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:[C.length>0&&e.jsxs(I,{variant:"outline",size:"sm",onClick:()=>T(Q=>!Q),children:[A?"Hide comparison":"Show comparison"," (",C.length,")"]}),e.jsx("span",{className:"text-sm text-muted-foreground hidden sm:inline",children:"Sort by:"}),e.jsxs(I,{variant:"ghost",size:"sm",className:"text-accent",children:[e.jsx(Wt,{className:"w-4 h-4 mr-1"}),"Most Active"]})]})]}),R.length>0&&A&&e.jsx("div",{className:"mb-6",children:e.jsx(CL,{entities:R,onClearSelection:Z,maxSelections:PM})}),s?e.jsx(NL,{count:n}):e.jsx("div",{className:F,children:P.map(Q=>e.jsx(fL,{company:Q.company,displayName:Q.displayName,openRolesCount:Q.openRolesCount,groupMembersCount:Q.groupMembersCount,isGroup:Q.isGroup,viewMode:y,compareId:Q.comparisonId,compareSelected:C.includes(Q.comparisonId),compareDisabled:!C.includes(Q.comparisonId)&&C.length>=PM,onToggleCompare:K,followDisabled:g,followLoading:x,onToggleFollow:k,onFollowAction:v,saveDisabled:w,saveLoading:b,onToggleSave:N,onSaveAction:j},Q.company.id))}),!s&&l>1&&e.jsx(dc,{currentPage:r,totalPages:l,onPageChange:c}),!s&&o===0&&e.jsxs("div",{className:"text-center py-16",children:[e.jsx(De,{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(I,{variant:"outline",onClick:m,children:"Clear all filters"})]})]})]})})}),M&&e.jsxs("div",{className:"fixed inset-0 z-50 lg:hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:()=>S(!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(I,{variant:"ghost",size:"icon",onClick:()=>S(!1),children:e.jsx(He,{className:"w-5 h-5"})})]}),e.jsx(_N,{filters:h,options:a,onFiltersChange:u,onClearFilters:m,resultCount:o})]})]})]})},SL=ie.forwardRef(({className:t,...a},s)=>e.jsxs(jl.Root,{ref:s,className:le("relative flex w-full touch-none select-none items-center",t),...a,children:[e.jsx(jl.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:e.jsx(jl.Range,{className:"absolute h-full bg-primary"})}),e.jsx(jl.Thumb,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));SL.displayName=jl.Root.displayName;const LL=({title:t="Filters",sections:a,onFilterChange:s,onClearAll:r,activeFiltersCount:n,savedCount:o=0,showSavedOnly:l=!1,onToggleSavedOnly:c,savedLabel:d="Saved Items",className:h=""})=>e.jsxs("div",{className:`bg-card rounded-lg shadow-sm border border-border sticky top-24 max-h-[calc(100vh-7rem)] overflow-y-auto scrollbar-thin ${h}`,children:[e.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-border",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ns,{className:"w-5 h-5 text-accent"}),e.jsx("h2",{className:"font-semibold text-foreground",children:t}),n>0&&e.jsx("span",{className:"bg-accent text-accent-foreground text-xs font-bold px-2 py-0.5 rounded-full",children:n})]}),n>0&&e.jsx("button",{onClick:r,className:"text-sm text-accent hover:underline",children:"Clear all"})]}),e.jsxs("div",{className:"p-4 space-y-4",children:[a.map(u=>e.jsx(QT,{section:u,onFilterChange:s},u.key)),c&&e.jsx("div",{className:"pt-4 border-t border-border",children:e.jsxs("button",{onClick:c,className:`w-full px-4 py-2.5 rounded-lg flex items-center justify-center gap-2 transition-colors ${l?"bg-accent text-accent-foreground":"bg-muted text-muted-foreground hover:bg-muted/80"}`,children:[e.jsx(_t,{className:"w-4 h-4"}),e.jsxs("span",{className:"font-medium",children:[d," (",o,")"]})]})})]})]}),QT=({section:t,onFilterChange:a})=>{var w,b,N;const[s,r]=f.useState(t.defaultExpanded??!0),[n,o]=f.useState(""),[l,c]=f.useState(!1),d=t.maxVisible??1/0,h=f.useMemo(()=>{var C;const j=((C=t.options)==null?void 0:C.filter(L=>L.label.toLowerCase().includes(n.toLowerCase())))||[],M=j.filter(L=>t.selectedValues.includes(L.value)),S=j.filter(L=>!t.selectedValues.includes(L.value));return[...M,...S]},[t.options,n,t.selectedValues]),u=f.useMemo(()=>l||d>=h.length?h:h.slice(0,d),[h,l,d]),m=h.length>d,y=t.searchable!==!1&&(((w=t.options)==null?void 0:w.length)||0)>6,p=j=>{const M=t.selectedValues.includes(j)?t.selectedValues.filter(S=>S!==j):[...t.selectedValues,j];a(t.key,M)},g=j=>{a(t.key,j?[j]:[])},x=t.rangeConfig,k=t.selectedValues.length===2?t.selectedValues.map(Number):x?[x.min,x.max]:[0,100],v=j=>{if(x!=null&&x.formatLabel)return x.formatLabel(j);const M=(x==null?void 0:x.unit)||"";return((x==null?void 0:x.unitPosition)||"prefix")==="prefix"?`${M}${j.toLocaleString()}`:`${j.toLocaleString()}${M}`};return e.jsxs("div",{className:"border-b border-border pb-4 last:border-b-0 last:pb-0",children:[t.collapsible!==!1?e.jsxs("button",{onClick:()=>r(!s),className:"flex items-center justify-between w-full py-2 text-left",children:[e.jsx("h3",{className:"text-sm font-medium text-foreground",children:t.label}),s?e.jsx(rs,{className:"w-4 h-4 text-muted-foreground"}):e.jsx(wa,{className:"w-4 h-4 text-muted-foreground"})]}):e.jsx("h3",{className:"text-sm font-medium text-foreground py-2",children:t.label}),s&&e.jsxs("div",{className:"mt-2 space-y-2",children:[y&&t.type==="checkbox"&&e.jsxs("div",{className:"relative mb-3",children:[e.jsx(dt,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx("input",{type:"text",value:n,onChange:j=>o(j.target.value),placeholder:`Search ${t.label.toLowerCase()}...`,className:"w-full h-8 pl-8 pr-8 text-sm rounded-md border border-input bg-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring"}),n&&e.jsx("button",{onClick:()=>o(""),className:"absolute right-2 top-1/2 -translate-y-1/2",children:e.jsx(He,{className:"w-4 h-4 text-muted-foreground hover:text-foreground"})})]}),t.type==="checkbox"&&e.jsxs("div",{className:"space-y-2",children:[u.map(j=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer group",children:[e.jsx("input",{type:"checkbox",checked:t.selectedValues.includes(j.value),onChange:()=>p(j.value),className:"h-4 w-4 rounded border-input text-accent focus:ring-accent"}),e.jsx("span",{className:"text-sm text-foreground group-hover:text-accent transition-colors flex-1 truncate",children:j.label}),j.count!==void 0&&e.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",j.count,")"]})]},j.value)),h.length===0&&n&&e.jsx("p",{className:"text-sm text-muted-foreground italic",children:"No matching options"}),m&&!n&&e.jsx("button",{onClick:()=>c(j=>!j),className:"text-sm text-accent hover:underline font-medium mt-1",children:l?"View less":`View more (${h.length-d})`})]}),(t.type==="select"||t.type==="searchable-select")&&e.jsxs("select",{value:t.selectedValues[0]||"",onChange:j=>g(j.target.value),className:"w-full h-9 px-3 rounded-md border border-input bg-background text-sm focus:outline-none focus:ring-2 focus:ring-ring",children:[e.jsxs("option",{value:"",children:["All ",t.label]}),(b=t.options)==null?void 0:b.map(j=>e.jsxs("option",{value:j.value,children:[j.label,j.count!==void 0&&` (${j.count})`]},j.value))]}),t.type==="range"&&x&&e.jsxs("div",{className:"space-y-3 px-1",children:[e.jsxs("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[e.jsx("span",{children:v(k[0])}),e.jsx("span",{children:v(k[1])})]}),e.jsx(SL,{min:x.min,max:x.max,step:x.step??1,value:k,onValueChange:j=>{a(t.key,j.map(String))},className:"w-full"}),e.jsxs("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[e.jsx("span",{children:v(x.min)}),e.jsx("span",{children:v(x.max)})]})]}),t.type==="toggle"&&((N=t.options)==null?void 0:N.map(j=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:t.selectedValues.includes(j.value),onChange:()=>p(j.value),className:"h-4 w-4 rounded border-input text-accent focus:ring-accent"}),e.jsx("span",{className:"text-sm text-foreground",children:j.label})]},j.value)))]})]})},IL=({value:t,onChange:a,onSubmit:s,onClear:r,onFilterClick:n,placeholder:o="Search...",suggestions:l=[],onSuggestionSelect:c,showFilterButton:d=!0,filterCount:h=0,className:u=""})=>{const[m,y]=f.useState(!1),p=g=>{g.key==="Enter"&&t.trim()&&(s(t.trim()),y(!1)),g.key==="Escape"&&y(!1)};return e.jsxs("div",{className:`relative ${u}`,children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("div",{className:"relative flex-1",children:[e.jsx(dt,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-5 w-5 text-muted-foreground"}),e.jsx("input",{type:"text",value:t,onChange:g=>{a(g.target.value),y(g.target.value.length>0)},onKeyDown:p,onFocus:()=>y(t.length>0&&l.length>0),onBlur:()=>setTimeout(()=>y(!1),200),placeholder:o,className:"w-full h-12 pl-10 pr-20 rounded-lg border border-input bg-background text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"}),t&&r&&e.jsx("button",{onClick:r,className:"absolute right-14 top-1/2 -translate-y-1/2 p-1 hover:bg-muted rounded",children:e.jsx(He,{className:"h-4 w-4 text-muted-foreground"})}),e.jsx("button",{onClick:()=>t.trim()&&s(t.trim()),className:"absolute right-2 top-1/2 -translate-y-1/2 bg-accent hover:bg-accent-hover text-accent-foreground p-2 rounded-md transition-colors",children:e.jsx(dt,{className:"h-4 w-4"})})]}),d&&n&&e.jsxs("button",{onClick:n,className:"lg:hidden flex items-center justify-center h-12 w-12 rounded-lg border border-input bg-background hover:bg-muted transition-colors relative",children:[e.jsx(gs,{className:"h-5 w-5 text-muted-foreground"}),h>0&&e.jsx("span",{className:"absolute -top-1 -right-1 bg-accent text-accent-foreground text-xs font-bold w-5 h-5 rounded-full flex items-center justify-center",children:h})]})]}),m&&l.length>0&&e.jsx("ul",{className:"absolute z-20 mt-1 w-full bg-card border border-border rounded-lg shadow-lg max-h-60 overflow-y-auto",children:l.map((g,x)=>e.jsx("li",{children:e.jsxs("button",{className:"w-full px-4 py-2 text-left text-sm text-foreground hover:bg-muted flex items-center gap-2",onClick:()=>{c==null||c(g),y(!1)},children:[e.jsx(dt,{className:"h-4 w-4 text-muted-foreground"}),g]})},x))})]})},AL=({search:t,sort:a,viewMode:s,onViewModeChange:r,itemsPerPage:n,onItemsPerPageChange:o,itemsPerPageOptions:l,showItemsPerPage:c=!0,showFilterButton:d=!0,filterCount:h=0,onFilterClick:u,trailingSlot:m,className:y=""})=>{var p;return e.jsxs("div",{className:`flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between ${y}`,children:[t&&e.jsx("div",{className:"flex-1",children:e.jsx(IL,{value:t.value,onChange:t.onChange,onSubmit:t.onSubmit,onClear:t.onClear,placeholder:t.placeholder,suggestions:t.suggestions,onSuggestionSelect:t.onSuggestionSelect,showFilterButton:d,filterCount:h,onFilterClick:u})}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[a&&((p=a.options)==null?void 0:p.length)&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm text-gray-600 whitespace-nowrap",children:a.label??"Sort by"}),e.jsx("select",{value:a.value,onChange:g=>a.onChange(g.target.value),className:"h-9 px-3 rounded-md border border-gray-300 bg-white text-sm focus:outline-none focus:ring-2 focus:ring-yellow-500",children:a.options.map(g=>e.jsx("option",{value:g.value,children:g.label},g.value))})]}),s&&r&&e.jsx(dM,{viewMode:s,onViewModeChange:r}),c&&n!==void 0&&o&&e.jsx(E9,{value:n,onChange:o,options:l}),m]})]})},_M=({config:t,className:a=""})=>{const s=t.url.match(/\.(mp4|webm|ogg)$/i),r={sidebar:"w-full max-w-[300px] h-[250px]",top:"w-full h-[48px] md:h-[90px]",bottom:"w-full h-[48px] md:h-[90px]"};return e.jsx("div",{className:`flex justify-center items-center rounded-lg overflow-hidden bg-muted ${a}`,children:e.jsx("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",className:"block",children:s?e.jsxs("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:`${r[t.position]} object-cover`,children:[e.jsx("source",{src:t.url,type:"video/mp4"}),"Your browser does not support the video tag."]}):e.jsx("img",{src:t.url,alt:t.alt??"Advertisement",className:`${r[t.position]} object-cover`})})})},PL=({title:t,description:a,sponsoredSlot:s,sidebarSlot:r,filtersPanel:n,mobileFiltersPanel:o,filters:l,filterValues:c,onFilterChange:d,onClearFilters:h,activeFilters:u,search:m,sort:y,viewMode:p,onViewModeChange:g,pagination:x,showToolbar:k=!0,toolbarTrailingSlot:v,resultsClassName:w="",banner:b,children:N})=>{const[j,M]=f.useState(!1),S=!!(n||l&&l.length>0),C=f.useMemo(()=>l?l.map(P=>({...P,selectedValues:(c==null?void 0:c[P.key])??[]})):[],[l,c]),L=f.useMemo(()=>c?Object.values(c).reduce((P,z)=>P+z.length,0):u?u.length:0,[c,u]),A=f.useMemo(()=>n||(l&&d&&h?e.jsx(LL,{sections:C,onFilterChange:d,onClearAll:h,activeFiltersCount:L}):null),[n,l,d,h,C,L]),T=o??A;return e.jsxs("div",{className:"bg-gray-50",children:[e.jsx(lM,{onSearchChange:()=>{},title:t,description:a,sponsoredSlot:s,popularTags:[]}),e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6",children:[k&&e.jsx(AL,{search:m,sort:y,viewMode:p,onViewModeChange:g,itemsPerPage:x==null?void 0:x.pageSize,onItemsPerPageChange:x==null?void 0:x.onPageSizeChange,itemsPerPageOptions:x==null?void 0:x.pageSizeOptions,showItemsPerPage:(x==null?void 0:x.showItemsPerPage)!==!1,showFilterButton:S,filterCount:L,onFilterClick:()=>M(!0),trailingSlot:v}),u&&u.length>0&&h&&e.jsx("div",{className:"mt-4",children:e.jsx(cM,{filters:u,onClearAll:h})}),e.jsxs("div",{className:"mt-6 flex flex-col gap-6 lg:flex-row",children:[A&&e.jsxs("aside",{className:"hidden lg:block lg:w-72 space-y-4",children:[A,b&&b.position==="sidebar"&&e.jsx(_M,{config:b})]}),e.jsxs("div",{className:`flex-1 ${w}`,children:[b&&b.position==="top"&&e.jsx("div",{className:"mb-4",children:e.jsx(_M,{config:b})}),N,b&&b.position==="bottom"&&e.jsx("div",{className:"mt-4",children:e.jsx(_M,{config:b})}),x&&x.enabled!==!1&&e.jsx(dc,{currentPage:x.page,totalPages:x.totalPages,onPageChange:x.onPageChange})]}),r&&e.jsx("aside",{className:"lg:w-72",children:r})]})]}),T&&e.jsx(gL,{isOpen:j,onClose:()=>M(!1),children:T})]})},_L=({companies:t,filterOptions:a,loading:s,page:r,pageSize:n,totalCount:o,totalPages:l,onPageChange:c,onPageSizeChange:d,filters:h,onFiltersChange:u,onClearFilters:m,viewMode:y,onViewModeChange:p,followDisabled:g=!1,followLoading:x=!1,onToggleFollow:k,onFollowAction:v,saveDisabled:w=!1,saveLoading:b=!1,onToggleSave:N,onSaveAction:j,maxCompare:M,sortOptions:S})=>{const[C,L]=f.useState([]),[A,T]=f.useState(!0),[P,z]=f.useState("popularity"),{displayCompanies:_,comparisonEntities:R}=f.useMemo(()=>{const V=t.map(re=>{var ue,de,Ee;const xe=h.scope==="group",D=((de=(ue=re.group)==null?void 0:ue.companies)==null?void 0:de.length)??1;return{company:re,displayName:xe?((Ee=re.group)==null?void 0:Ee.name)??re.groupName??re.name:re.name,openRolesCount:Array.isArray(re.jobs.openRoles)?re.jobs.openRoles.length:re.jobs.openRoles,groupMembersCount:D,isGroup:xe,comparisonProfile:ML(re),comparisonId:re.id}});return{displayCompanies:V,comparisonEntities:V.map(re=>({id:re.comparisonId,name:re.displayName,normalizedProfile:re.comparisonProfile}))}},[t,h.scope]),K=f.useMemo(()=>R.filter(V=>C.includes(V.id)),[R,C]),Z=f.useMemo(()=>{const V=[..._];switch(P){case"name_asc":V.sort((re,xe)=>re.displayName.localeCompare(xe.displayName));break;case"name_desc":V.sort((re,xe)=>xe.displayName.localeCompare(re.displayName));break;case"employees":V.sort((re,xe)=>(xe.company.overview.employeeRange??"").localeCompare(re.company.overview.employeeRange??""));break;default:V.sort((re,xe)=>{var D,ue;return(((D=xe.company.signalsAndInsights)==null?void 0:D.profileViews30d)||0)-(((ue=re.company.signalsAndInsights)==null?void 0:ue.profileViews30d)||0)})}return V},[_,P]);f.useEffect(()=>{L([])},[h.scope]),f.useEffect(()=>{L(V=>V.filter(re=>R.some(xe=>xe.id===re)))},[R]);const ce=V=>{L(re=>re.includes(V)?re.filter(xe=>xe!==V):re.length>=M?re:[...re,V])},se=()=>{L([])},F=f.useMemo(()=>[{key:"companyType",label:"Company Type",type:"select",options:a.companyTypes.map(V=>({value:V,label:V}))},{key:"verticals",label:"Verticals",type:"checkbox",searchable:!0,options:a.verticals.map(V=>({value:V,label:V}))},{key:"productCategories",label:"Product Categories",type:"checkbox",searchable:!0,options:a.productCategories.map(V=>({value:V,label:V}))},{key:"employeeRanges",label:"Company Size",type:"checkbox",options:a.employeeRanges.map(V=>({value:V,label:V}))},{key:"products",label:"Products",type:"checkbox",searchable:!0,options:a.products.map(V=>({value:V,label:V}))},{key:"openRolesRanges",label:"Open Roles",type:"checkbox",options:a.openRolesRanges.map(V=>({value:V,label:V}))},{key:"yearsActiveRanges",label:"Years Active",type:"checkbox",options:a.yearsActiveRanges.map(V=>({value:V,label:V}))},{key:"hiringNow",label:"Hiring",type:"toggle",options:[{value:"true",label:"Hiring now"}]},{key:"claimedOnly",label:"Claimed Profiles",type:"toggle",options:[{value:"true",label:"Claimed only"}]},{key:"hasLicenses",label:"Compliance",type:"toggle",options:[{value:"true",label:"Has licenses"}]},{key:"hasAwards",label:"Awards",type:"toggle",options:[{value:"true",label:"Has awards"}]}],[a]),Q=f.useMemo(()=>({companyType:h.companyType?[h.companyType]:[],verticals:h.verticals,productCategories:h.productCategories,employeeRanges:h.employeeRanges,products:h.products,openRolesRanges:h.openRolesRanges,yearsActiveRanges:h.yearsActiveRanges,hiringNow:h.hiringNow?["true"]:[],claimedOnly:h.claimedOnly?["true"]:[],hasLicenses:h.hasLicenses?["true"]:[],hasAwards:h.hasAwards?["true"]:[]}),[h]),B=(V,re)=>{const xe={...h};switch(V){case"companyType":xe.companyType=re[0]??"";break;case"verticals":xe.verticals=re;break;case"productCategories":xe.productCategories=re;break;case"employeeRanges":xe.employeeRanges=re;break;case"products":xe.products=re;break;case"openRolesRanges":xe.openRolesRanges=re;break;case"yearsActiveRanges":xe.yearsActiveRanges=re;break;case"hiringNow":xe.hiringNow=re.includes("true");break;case"claimedOnly":xe.claimedOnly=re.includes("true");break;case"hasLicenses":xe.hasLicenses=re.includes("true");break;case"hasAwards":xe.hasAwards=re.includes("true");break}u(xe)},ee=f.useMemo(()=>({companyType:"Company Type",verticals:"Vertical",productCategories:"Product Category",employeeRanges:"Company Size",products:"Product",openRolesRanges:"Open Roles",yearsActiveRanges:"Years Active",hiringNow:"Hiring now",claimedOnly:"Claimed",hasLicenses:"Has licenses",hasAwards:"Has awards"}),[]),X=f.useMemo(()=>Object.entries(Q).flatMap(([V,re])=>re.map(xe=>({key:V,label:ee[V]??V,value:xe==="true"?"Yes":xe,onRemove:()=>{const D=re.filter(ue=>ue!==xe);B(V,D)}}))),[Q,ee,B]),q=V=>{u({...h,search:V})},Y=V=>{V!==y&&p()},te=y==="grid"?"grid gap-4 sm:grid-cols-2 xl:grid-cols-3":"grid gap-4";return e.jsxs(PL,{title:"Company Directory",description:"Discover operators, suppliers, affiliates, and service providers in iGaming.",search:{value:h.search,onChange:V=>{q(V),c(1)},onSubmit:V=>{q(V),c(1)},onClear:()=>{q(""),c(1)},placeholder:"Search companies"},filters:F,filterValues:Q,onFilterChange:(V,re)=>{B(V,re),c(1)},onClearFilters:()=>{m(),c(1)},activeFilters:X,sort:{value:P,options:S,onChange:V=>{z(V),c(1)}},viewMode:y,onViewModeChange:Y,pagination:{page:r,pageSize:n,totalPages:l,totalCount:o,onPageChange:c,onPageSizeChange:V=>{d(V),c(1)}},resultsClassName:te,children:[K.length>0&&A&&e.jsx("div",{className:"mb-6",children:e.jsx(CL,{entities:K,onClearSelection:se,maxSelections:M})}),s?e.jsx(NL,{count:n}):Z.map(V=>e.jsx(fL,{company:V.company,displayName:V.displayName,openRolesCount:V.openRolesCount,groupMembersCount:V.groupMembersCount,isGroup:V.isGroup,viewMode:y,compareId:V.comparisonId,compareSelected:C.includes(V.comparisonId),compareDisabled:!C.includes(V.comparisonId)&&C.length>=M,onToggleCompare:ce,followDisabled:g,followLoading:x,onToggleFollow:k,onFollowAction:v,saveDisabled:w,saveLoading:b,onToggleSave:N,onSaveAction:j},V.company.id)),!s&&C.length>0&&e.jsx("div",{className:"mt-4 flex justify-end",children:e.jsxs(I,{variant:"outline",size:"sm",onClick:()=>T(V=>!V),children:[A?"Hide comparison":"Show comparison"," (",C.length,")"]})}),!s&&o===0&&e.jsxs("div",{className:"text-center py-16",children:[e.jsx(De,{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(I,{variant:"outline",onClick:m,children:"Clear all filters"})]})]})},Jt=ie.forwardRef(({className:t,...a},s)=>e.jsx("textarea",{className:le("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:s,...a}));Jt.displayName="Textarea";const eq=({company:t,open:a,onOpenChange:s,onClaimSubmit:r,claimPrefill:n})=>{const[o,l]=f.useState(1),c=y=>({fullName:(y==null?void 0:y.fullName)??"",workEmail:(y==null?void 0:y.workEmail)??"",jobTitle:(y==null?void 0:y.jobTitle)??"",relationship:"",message:""}),[d,h]=f.useState(()=>c(n));f.useEffect(()=>{a&&h(c(n))},[a,n]);const u=()=>{r==null||r({companyId:t.id,companySlug:t.slug,companyName:t.name,fullName:d.fullName,workEmail:d.workEmail,jobTitle:d.jobTitle,relationship:d.relationship,message:d.message}),l(3)},m=()=>{l(1),h(c(n)),s(!1)};return e.jsx(yt,{open:a,onOpenChange:m,children:e.jsxs(ht,{className:"sm:max-w-[500px]",children:[o===1&&e.jsxs(e.Fragment,{children:[e.jsxs(vt,{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(De,{className:"w-6 h-6 text-accent"})}),e.jsxs(Je,{children:["Claim ",t.name,"'s Profile"]}),e.jsx(oa,{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(Oe,{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(Oe,{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(Oe,{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(Oe,{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(Zt,{children:[e.jsx(I,{variant:"outline",onClick:m,children:"Cancel"}),e.jsxs(I,{variant:"accent",onClick:()=>l(2),children:["Continue",e.jsx(va,{className:"w-4 h-4 ml-2"})]})]})]}),o===2&&e.jsxs(e.Fragment,{children:[e.jsxs(vt,{children:[e.jsx(Je,{children:"Verify Your Affiliation"}),e.jsxs(oa,{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(H,{htmlFor:"fullName",children:"Full Name"}),e.jsx(he,{id:"fullName",placeholder:"John Smith",value:d.fullName,onChange:y=>h({...d,fullName:y.target.value})})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(H,{htmlFor:"workEmail",children:"Work Email"}),e.jsxs("div",{className:"relative",children:[e.jsx(ta,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(he,{id:"workEmail",type:"email",placeholder:`you@${t.overview.website.replace(/^https?:\/\/(www\.)?/,"").split("/")[0]}`,className:"pl-10",value:d.workEmail,onChange:y=>h({...d,workEmail:y.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(H,{htmlFor:"jobTitle",children:"Job Title"}),e.jsxs("div",{className:"relative",children:[e.jsx(_e,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(he,{id:"jobTitle",placeholder:"e.g., Marketing Manager",className:"pl-10",value:d.jobTitle,onChange:y=>h({...d,jobTitle:y.target.value})})]})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(H,{htmlFor:"relationship",children:"Your Role"}),e.jsxs(fa,{value:d.relationship,onValueChange:y=>h({...d,relationship:y}),children:[e.jsx(Qt,{children:e.jsx(ka,{placeholder:"Select your relationship"})}),e.jsxs(ea,{children:[e.jsx(kt,{value:"employee",children:"Current Employee"}),e.jsx(kt,{value:"founder",children:"Founder / Executive"}),e.jsx(kt,{value:"hr",children:"HR / Recruiting"}),e.jsx(kt,{value:"marketing",children:"Marketing / PR"}),e.jsx(kt,{value:"agency",children:"Authorized Agency"})]})]})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(H,{htmlFor:"message",children:"Additional Information (Optional)"}),e.jsx(Jt,{id:"message",placeholder:"Any additional context to help verify your claim...",value:d.message,onChange:y=>h({...d,message:y.target.value}),rows:3})]})]})}),e.jsxs(Zt,{children:[e.jsx(I,{variant:"outline",onClick:()=>l(1),children:"Back"}),e.jsx(I,{variant:"accent",onClick:u,disabled:!d.fullName||!d.workEmail||!d.relationship,children:"Submit Claim Request"})]})]}),o===3&&e.jsxs(e.Fragment,{children:[e.jsxs(vt,{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(Oe,{className:"w-8 h-8 text-gaming-success"})}),e.jsx(Je,{children:"Claim Request Submitted!"}),e.jsxs(oa,{className:"text-center",children:["We've sent a verification email to ",e.jsx("strong",{children:d.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(Zt,{children:e.jsx(I,{variant:"accent",onClick:m,className:"w-full",children:"Done"})})]})]})})},tq=({headquarters:t,foundedYear:a,employeeRange:s,className:r})=>e.jsxs("div",{className:le("flex flex-wrap items-center gap-4 text-sm text-muted-foreground",r),children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(st,{className:"h-4 w-4"}),t.city,", ",t.country]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Ct,{className:"h-4 w-4"}),"Founded ",a]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Re,{className:"h-4 w-4"}),s," employees"]})]});function TL({companyName:t,isAdminView:a=!1,companyType:s,overview:r,classification:n,companyId:o,companySlug:l,groupLabel:c,groupSlug:d,claimedStatus:h,isFollowing:u,signalsAndInsights:m,openRolesCount:y,trustScore:p,isSaved:g,onBack:x,saveDisabled:k,saveLoading:v,canClaim:w,onToggleFollow:b,onFollowAction:N,onToggleSave:j,onSaveAction:M,role:S="viewer",enabledPermissions:C=[],followLoading:L=!1,followDisabled:A=!1,onClaimClick:T}){const P=g,z=A||L,_=u?"Unfollow Company":"Follow Company",R=k||v,K=P?"Remove from Saved":"Save Company",Z=()=>h==="claimed"?e.jsxs(E,{className:"bg-accent/10 text-accent border-accent/20",children:[e.jsx(Oe,{className:"w-3 h-3 mr-1"}),"Claimed"]}):null,ce=()=>{const F=!u;b==null||b(o,F),N==null||N({companyId:o,companySlug:l,action:F?"follow":"unfollow"})},se=()=>{const F=!P;j==null||j(o,F),M==null||M({companyId:o,companySlug:l,companyName:t,action:F?"save":"unsave"})};return 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:[x&&e.jsxs("button",{type:"button",onClick:x,className:"inline-flex items-center text-primary-foreground/70 hover:text-primary-foreground mb-6 text-sm",children:[e.jsx(Ba,{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(De,{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}),Z()]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[e.jsx(E,{variant:"secondary",children:s}),c&&e.jsx("a",{href:d?`/groups/${d}`:"/groups",children:e.jsxs(E,{variant:"outline",className:"border-primary-foreground/30 text-primary-foreground",children:["Part of ",c]})}),n.verticals.map(F=>e.jsx(E,{variant:"outline",className:"border-primary-foreground/30 text-primary-foreground",children:F},F))]}),e.jsx(tq,{headquarters:r.headquarters,foundedYear:r.foundedYear,employeeRange:r.employeeRange,className:"mb-4 text-primary-foreground/80"}),a?e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs(E,{variant:"secondary",className:"",children:["Role: ",S]}),C.length>0?C.map(([F,Q])=>e.jsx(E,{variant:"outline",children:Q},F)):e.jsx("span",{className:"text-xs text-muted-foreground",children:"No extra permissions"})]}):e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsxs(I,{variant:"accent",onClick:ce,disabled:z,"aria-label":`${_} ${t}`,"aria-pressed":u,"aria-busy":L,title:_,children:[L?e.jsx($e,{className:"w-4 h-4 mr-2 animate-spin"}):u?e.jsx(Oe,{className:"w-4 h-4 mr-2"}):e.jsx($a,{className:"w-4 h-4 mr-2"}),L?"Loading":u?"Following":"Follow"]}),e.jsxs(I,{variant:P?"secondary":"outline",className:"border-primary-foreground/30 hover:bg-primary-foreground/10",onClick:se,disabled:R,"aria-label":`${K} ${t}`,"aria-pressed":P,"aria-busy":v,title:K,children:[v?e.jsx($e,{className:"w-4 h-4 mr-2 animate-spin"}):e.jsx(_t,{className:"w-4 h-4 mr-2 fill-transparent"}),v?"Loading":P?"Saved":"Save"]}),h==="unclaimed"&&e.jsx(I,{variant:"ghost",className:"text-primary-foreground",onClick:T,children:"Claim Profile"})]})]}),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:y}),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:[(m.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:p}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Trust Signals"})]})]})]})]})})}const qL=({items:t,className:a})=>e.jsx(Ja,{className:["flex-wrap h-auto gap-1 bg-secondary/50 p-1",a].join(" "),children:t.filter(s=>!s.hidden).map(({value:s,label:r,icon:n,disabled:o})=>e.jsxs(Me,{value:s,disabled:o,children:[n&&e.jsx(n,{className:"w-4 h-4 mr-1.5"}),r]},s))}),aq=({overview:t,classification:a,officeLocations:s,formatOfficeLocation:r})=>e.jsxs(ke,{value:"overview",className:"space-y-6 mt-0",children:[e.jsxs(O,{children:[e.jsx(ne,{children:e.jsx(oe,{children:"About"})}),e.jsxs(G,{children:[e.jsx("p",{className:"text-muted-foreground mb-4",children:t.longDescription||t.shortDescription}),e.jsx("div",{className:"flex flex-wrap gap-2",children:a.tags.map(n=>e.jsxs(E,{variant:"secondary",children:["#",n]},n))})]})]}),e.jsxs(O,{children:[e.jsx(ne,{children:e.jsx(oe,{children:"Office Locations"})}),e.jsx(G,{children:e.jsx("div",{className:"flex flex-wrap gap-3",children:s.map((n,o)=>e.jsxs(E,{variant:"outline",children:[e.jsx(st,{className:"w-3 h-3 mr-1"}),r(n)]},o))})})]})]}),sq=({products:t})=>e.jsx(ke,{value:"products",className:"space-y-4 mt-0",children:t.map((a,s)=>e.jsxs(O,{children:[e.jsx(ne,{children:e.jsx("div",{className:"flex items-start justify-between",children:e.jsxs("div",{children:[e.jsx(oe,{className:"text-lg",children:a.name}),e.jsx(E,{variant:"secondary",className:"mt-1",children:a.category})]})})}),e.jsxs(G,{children:[e.jsx("p",{className:"text-muted-foreground mb-3",children:a.description}),e.jsx("div",{className:"flex flex-wrap gap-2",children:a.keyDifferentiators.map((r,n)=>e.jsxs(E,{variant:"outline",children:[e.jsx(Gl,{className:"w-3 h-3 mr-1"}),r]},n))})]})]},s))}),rq=new Set(["malta","italy","spain","netherlands","united kingdom","germany","sweden","romania","croatia","serbia","brazil"]),nq=({companyTrustData:t,credibilityEvidence:a})=>{const s=h=>typeof h=="string"?h:`${h.authority} (${h.jurisdiction})`,r=h=>typeof h=="string"?h:`${h.name} (${h.year})`;function n(h=[]){const u=h.map(m=>m.toLowerCase());return o.flatMap(m=>u.find(p=>m.aliases.some(g=>p.includes(g)))?[{name:m.name,year:new Date().getFullYear()}]:[])}const o=[{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"]}],l=n((a==null?void 0:a.awards_mentioned)??[]),c=d((a==null?void 0:a.countries_mentioned)??[],rq);function d(h=[],u){return Array.from(new Set(h.map(m=>m.toLowerCase()).filter(m=>u.has(m)).map(m=>m[0].toUpperCase()+m.slice(1))))}return e.jsxs(ke,{value:"trust",className:"space-y-4 mt-0",children:[t.licenses.length>0&&e.jsxs(O,{children:[e.jsx(ne,{children:e.jsxs(oe,{className:"flex items-center gap-2",children:[e.jsx(Bs,{className:"w-5 h-5 text-gaming-success"}),"Licenses"]})}),e.jsx(G,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:t.licenses.map((h,u)=>e.jsx(E,{className:"bg-gaming-success/10 text-gaming-success",children:s(h)},u))})})]}),t.awards.length>0&&e.jsxs(O,{children:[e.jsx(ne,{children:e.jsxs(oe,{className:"flex items-center gap-2",children:[e.jsx(Pt,{className:"w-5 h-5 text-gaming-gold"}),"Awards"]})}),e.jsx(G,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:t.awards.map((h,u)=>e.jsx(E,{className:"bg-gaming-gold/10 text-gaming-gold",children:r(h)},u))})})]}),l.length>0&&e.jsxs(O,{children:[e.jsx(ne,{children:e.jsxs(oe,{className:"flex items-center gap-2",children:[e.jsx(Pt,{className:"w-5 h-5 text-gaming-gold"}),"Industry Recognition"]})}),e.jsx(G,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:l.map((h,u)=>e.jsxs(E,{variant:"outline",children:[h.name,e.jsx("span",{className:"ml-1 text-xs text-muted-foreground",children:"(inferred)"})]},u))})})]}),c.length>0&&e.jsxs(O,{children:[e.jsx(ne,{children:e.jsxs(oe,{className:"flex items-center gap-2",children:[e.jsx(Ma,{className:"w-5 h-5 text-accent"}),"Markets Mentioned"]})}),e.jsx(G,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:c.map((h,u)=>e.jsx(E,{variant:"secondary",children:h},u))})})]})]})},iq=({members:t})=>e.jsx(ke,{value:"people",className:"mt-0",children:e.jsx(O,{children:e.jsx(G,{className:"py-6 space-y-4",children:t.length===0?e.jsx("p",{className:"text-center text-muted-foreground",children:"Employee profiles are opt-in. No verified members yet."}):t.map((a,s)=>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:a.name}),e.jsx("p",{className:"text-sm text-muted-foreground",children:a.title})]}),a.profileUrl&&e.jsx("a",{href:a.profileUrl,target:"_blank",rel:"noreferrer",children:e.jsx(I,{size:"sm",variant:"outline",children:"View Profile"})})]},s))})})});function $7({job:t,view:a,isSaved:s=!1,onApply:r,onSave:n,onRemove:o,onViewApplication:l}){var h;const c=t.city?`${t.city}, ${t.country}`:t.location,d=t.salaryMin&&t.salaryMax?`${t.salaryMin}–${t.salaryMax} ${t.salaryCurrency||""}`:void 0;return e.jsxs(O,{children:[e.jsxs(ne,{children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx(oe,{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($o,{className:"h-4 w-4"}),t.company]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(st,{className:"h-4 w-4"}),c]})]})]}),a==="applications"&&t.status&&e.jsx(E,{variant:"secondary",children:t.status})]}),d&&e.jsx("p",{className:"text-sm font-semibold text-accent mt-1",children:d})]}),e.jsx(G,{children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.department&&e.jsx(E,{variant:"outline",children:t.department}),(h=t.skills)==null?void 0:h.slice(0,6).map(u=>e.jsx(E,{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(ja,{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(I,{size:"sm",onClick:()=>r==null?void 0:r(t.id),children:"Apply Now"}),e.jsx(I,{size:"sm",variant:s?"secondary":"outline",disabled:s,onClick:()=>n==null?void 0:n(t),children:s?"Saved":"Save Job"}),e.jsx(I,{size:"sm",variant:"destructive",onClick:()=>o==null?void 0:o(t.id),children:"Remove"})]}),a==="saved"&&e.jsx(I,{size:"sm",variant:"destructive",onClick:()=>o==null?void 0:o(t.id),children:"Remove"}),a==="applications"&&e.jsx(I,{size:"sm",variant:"outline",onClick:()=>l==null?void 0:l(t.id),children:"View Application"}),a==="company"&&e.jsx(I,{size:"sm",variant:"outline",onClick:()=>{window.location.href=t.link},children:"Apply"})]})]})})]})}const oq=({company:t,jobListings:a,openRolesCount:s})=>e.jsx(ke,{value:"jobs",className:"space-y-4 mt-0",children:e.jsxs(O,{children:[e.jsx(ne,{children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs(oe,{children:["Open Positions (",s,")"]}),e.jsx(E,{children:t.jobs.remotePolicy})]})}),e.jsx("div",{className:"grid gap-4 p-4",children:a.length===0?e.jsx(O,{children:e.jsxs(G,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(ba,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No saved jobs yet"}),e.jsx(I,{variant:"link",className:"mt-2",children:"Browse Jobs"})]})}):a.map(r=>e.jsx($7,{job:r,view:"company"},r.id))})]})});function l9({article:t,view:a,isSaved:s=!1,onRead:r,onSave:n,onRemove:o}){var l;return e.jsxs(O,{children:[e.jsxs(ne,{children:[e.jsxs("div",{className:"flex gap-2 items-start mb-2",children:[(l=t.categories)==null?void 0:l.map(c=>e.jsx(E,{variant:"secondary",children:c})),e.jsx("span",{className:"text-xs text-muted-foreground",children:t.publishedDate})]}),e.jsx(oe,{className:"text-lg",children:t.title}),e.jsxs(Se,{className:"text-xs",children:[t.source?t.source:t.company," • ",t.readTime," min"]})]}),e.jsx(G,{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(c=>e.jsx(E,{variant:"outline",className:"text-xs",children:c},c))}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:flex-wrap",children:[e.jsx(I,{size:"sm",onClick:()=>r==null?void 0:r(t.id),children:"Read Article"}),a==="recommended"&&e.jsxs(e.Fragment,{children:[e.jsx(I,{size:"sm",variant:s?"secondary":"outline",disabled:s,onClick:()=>n==null?void 0:n(t),children:s?"Saved":"Save"}),e.jsx(I,{size:"sm",variant:"destructive",onClick:()=>o==null?void 0:o(t.id),children:"Remove"})]}),a==="saved"&&e.jsx(I,{size:"sm",variant:"destructive",onClick:()=>o==null?void 0:o(t.id),children:"Remove Saved"}),a==="company"&&e.jsx(I,{size:"sm",variant:"outline",onClick:()=>r==null?void 0:r(t.id),children:"Read"})]})]})})]})}const lq=({companyNews:t,newsArticles:a=[]})=>{var n;const s=o=>typeof o=="string"?o:`${o.title} • ${o.source}`,r=o=>typeof o=="object"&&o!==null&&"url"in o;return e.jsx(ke,{value:"news",className:"mt-0",children:e.jsxs(O,{children:[e.jsx(ne,{children:e.jsxs(oe,{children:["News (",a.length,")"]})}),e.jsx(G,{className:"py-6 space-y-4",children:a.length>0?e.jsx("div",{className:"grid gap-4",children:a.map(o=>e.jsx(l9,{article:o,view:"company",onRead:()=>window.open(o.link,"_blank")},o.id))}):(n=t==null?void 0:t.pressMentions)!=null&&n.length?t.pressMentions.map((o,l)=>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:s(o)}),r(o)&&o.url&&e.jsx("a",{href:o.url,target:"_blank",rel:"noreferrer",children:e.jsx(I,{size:"sm",variant:"outline",children:"Read"})})]},l)):e.jsx("p",{className:"text-center text-muted-foreground",children:"No recent news mentions."})})]})})},cq=({companyEvents:t,conferenceEvents:a=[]})=>{const s=n=>"name"in n?n.name:n.eventName,r=n=>"startDate"in n?`${n.startDate}${n.endDate?` - ${n.endDate}`:""}`:n.date;return e.jsx(ke,{value:"events",className:"space-y-4 mt-0",children:a.length>0?e.jsxs(O,{children:[e.jsx(ne,{children:e.jsx(oe,{className:"flex items-center gap-2",children:"Upcoming Events"})}),e.jsx(G,{children:e.jsx("div",{className:"grid gap-4 p-4",children:a.map(n=>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:[n.conference," - ",n.event_year]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Stand: ",n.stand]})]}),e.jsx("a",{href:n.link,target:"_blank",rel:"noreferrer",children:e.jsx(I,{size:"sm",variant:"outline",children:"View"})})]},n._id))})})]}):t.upcomingEvents.map((n,o)=>e.jsxs("div",{className:`flex items-center justify-between p-3
7744
7744
  rounded-lg
7745
7745
  border
7746
7746
  bg-card text-card-foreground
package/dist/index.mjs CHANGED
@@ -43902,47 +43902,50 @@ const hI = ({
43902
43902
  onFilterClick: p,
43903
43903
  trailingSlot: y,
43904
43904
  className: g = ""
43905
- }) => /* @__PURE__ */ n("div", { className: `flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between ${g}`, children: [
43906
- t && /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
43907
- uI,
43908
- {
43909
- value: t.value,
43910
- onChange: t.onChange,
43911
- onSubmit: t.onSubmit,
43912
- onClear: t.onClear,
43913
- placeholder: t.placeholder,
43914
- suggestions: t.suggestions,
43915
- onSuggestionSelect: t.onSuggestionSelect,
43916
- showFilterButton: h,
43917
- filterCount: u,
43918
- onFilterClick: p
43919
- }
43920
- ) }),
43921
- /* @__PURE__ */ n("div", { className: "flex flex-wrap items-center gap-3", children: [
43922
- a && /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
43923
- /* @__PURE__ */ e("span", { className: "text-sm text-gray-600 whitespace-nowrap", children: a.label ?? "Sort by" }),
43924
- /* @__PURE__ */ e(
43925
- "select",
43926
- {
43927
- value: a.value,
43928
- onChange: (m) => a.onChange(m.target.value),
43929
- className: "h-9 px-3 rounded-md border border-gray-300 bg-white text-sm focus:outline-none focus:ring-2 focus:ring-yellow-500",
43930
- children: a.options.map((m) => /* @__PURE__ */ e("option", { value: m.value, children: m.label }, m.value))
43931
- }
43932
- )
43933
- ] }),
43934
- r && i && /* @__PURE__ */ e($N, { viewMode: r, onViewModeChange: i }),
43935
- d && s !== void 0 && o && /* @__PURE__ */ e(
43936
- WN,
43905
+ }) => {
43906
+ var m;
43907
+ return /* @__PURE__ */ n("div", { className: `flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between ${g}`, children: [
43908
+ t && /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
43909
+ uI,
43937
43910
  {
43938
- value: s,
43939
- onChange: o,
43940
- options: c
43911
+ value: t.value,
43912
+ onChange: t.onChange,
43913
+ onSubmit: t.onSubmit,
43914
+ onClear: t.onClear,
43915
+ placeholder: t.placeholder,
43916
+ suggestions: t.suggestions,
43917
+ onSuggestionSelect: t.onSuggestionSelect,
43918
+ showFilterButton: h,
43919
+ filterCount: u,
43920
+ onFilterClick: p
43941
43921
  }
43942
- ),
43943
- y
43944
- ] })
43945
- ] }), R9 = ({ config: t, className: a = "" }) => {
43922
+ ) }),
43923
+ /* @__PURE__ */ n("div", { className: "flex flex-wrap items-center gap-3", children: [
43924
+ a && ((m = a.options) == null ? void 0 : m.length) && /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
43925
+ /* @__PURE__ */ e("span", { className: "text-sm text-gray-600 whitespace-nowrap", children: a.label ?? "Sort by" }),
43926
+ /* @__PURE__ */ e(
43927
+ "select",
43928
+ {
43929
+ value: a.value,
43930
+ onChange: (k) => a.onChange(k.target.value),
43931
+ className: "h-9 px-3 rounded-md border border-gray-300 bg-white text-sm focus:outline-none focus:ring-2 focus:ring-yellow-500",
43932
+ children: a.options.map((k) => /* @__PURE__ */ e("option", { value: k.value, children: k.label }, k.value))
43933
+ }
43934
+ )
43935
+ ] }),
43936
+ r && i && /* @__PURE__ */ e($N, { viewMode: r, onViewModeChange: i }),
43937
+ d && s !== void 0 && o && /* @__PURE__ */ e(
43938
+ WN,
43939
+ {
43940
+ value: s,
43941
+ onChange: o,
43942
+ options: c
43943
+ }
43944
+ ),
43945
+ y
43946
+ ] })
43947
+ ] });
43948
+ }, R9 = ({ config: t, className: a = "" }) => {
43946
43949
  const r = t.url.match(/\.(mp4|webm|ogg)$/i), i = {
43947
43950
  sidebar: "w-full max-w-[300px] h-[250px]",
43948
43951
  top: "w-full h-[48px] md:h-[90px]",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igamingcareer/igaming-components",
3
- "version": "1.0.117",
3
+ "version": "1.0.118",
4
4
  "description": "Reusable React component library for the iGamingCareer platform",
5
5
  "author": "iGamingCareer <info@igamingcareer.com>",
6
6
  "license": "MIT",