1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},i=(new e.Error).stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="42cb1fd6-5e0f-43b4-8575-e7c8ec6bb808",e._sentryDebugIdIdentifier="sentry-dbid-42cb1fd6-5e0f-43b4-8575-e7c8ec6bb808")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4139],{1022:function(e,i,s){var t=s(57437);s(2265);var a=s(20703),n=s(41547);i.Z=e=>{let{className:i}=e;return(0,t.jsx)("div",{className:"flex items-center justify-center w-full h-full ".concat(i),children:(0,t.jsx)(a.default,{src:n.Z,alt:"Loading...",width:150,height:150})})}},57032:function(e,i,s){s.d(i,{YI:function(){return d},aA:function(){return c}});var t=s(57437),a=s(8792),n=s(47907),r=s(85754),l=s(41636),o=s(1657);let d=e=>{var i;return{latestComment:null!==(i=null==e?void 0:e.latestComment)&&void 0!==i?i:null}},c=e=>{let{href:i,openInNewTab:s=!1,stopPropagation:d=!1,className:c,insideLink:u=!1}=e,x=(0,n.useRouter)(),m=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Z,{className:"w-4 h-4"}),"Notes"]});return u?(0,t.jsx)(r.z,{size:"sm",variant:"outline",className:(0,o.cn)("gap-1.5",c),onClick:e=>{e.preventDefault(),e.stopPropagation(),s?window.open(i,"_blank"):x.push(i)},children:m}):(0,t.jsx)(r.z,{asChild:!0,size:"sm",variant:"outline",className:(0,o.cn)("gap-1.5",c),children:(0,t.jsx)(a.default,{href:i,target:s?"_blank":void 0,onClick:d?e=>e.stopPropagation():void 0,children:m})})}},14139:function(e,i,s){s.d(i,{P:function(){return eI},Z:function(){return ew}});var t=s(57437),a=s(26989),n=s(481),r=s(64045),l=s(59636),o=s(1022),d=s(53055),c=s(31478),u=s(76928),x=s(58274),m=s(74398),v=s(162),h=s(98273),p=s(54897),b=s(69182),g=s(38292),j=s(98872),f=s(1657),y=s(79438),N=s(48009),E=s(34726),k=s(62455),w=s(68036),C=s(89948),D=s(87691),T=s(83744),I=s(22266),S=s(74180),_=s(65053),P=s(74703),A=s(64093),O=s(2892),F=s(16529),M=s(41636),R=s(25177),z=s(13888),L=s(20230),B=s(77222),U=s(76941),Z=s(82958),V=s(35216),K=s(57032),J=s(70345),q=s(59740),W=s(8792),Y=s(47907),H=s(63992),G=s(2265),$=s(52551),Q=s(85754),X=s(54900),ee=s(55322),ei=s(75083),es=s(84758),et=s(51671),ea=s(77969),en=s(81568),er=s(74681),el=s(12001),eo=s(25314),ed=s(18139),ec=s(51214),eu=s(58928),ex=s(95847),em=s(99948);let ev=e=>{let{value:i=0,label:s,color:a,isLocked:n}=e,r=2*Math.PI*18,l=a?"":null==i||i<=25?"text-[#398e4a]":i<=50?"text-[#FFD70A]":i<=75?"text-[#FF990A]":"text-[#DA2F35]";return(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsxs)("div",{className:(0,f.cn)("relative inline-flex",n&&"blur-[5px] select-none pointer-events-none opacity-80"),children:[(0,t.jsxs)("svg",{className:"w-[40px] h-[40px]","aria-hidden":"true",children:[(0,t.jsx)("circle",{className:"text-gray-200",strokeWidth:"4",stroke:"currentColor",fill:"transparent",r:18,cx:"20",cy:"20"}),(0,t.jsx)("circle",{className:l,strokeWidth:"4",strokeDasharray:r,strokeDashoffset:r-(i?i/100*r:0),strokeLinecap:"round",stroke:a||"currentColor",fill:"transparent",r:18,cx:"20",cy:"20"})]}),(0,t.jsx)("span",{className:"absolute inset-0 flex items-center justify-center text-xs font-semibold","aria-hidden":"true",children:n?null!=i?i:72:i||"-"})]}),s&&(0,t.jsx)("p",{className:"text-xs border-[#EBEBEB] border bg-white dark:bg-[#171717] rounded p-1 mt-1",children:s})]})},eh=e=>{let{label:i,placeholder:s="Premium"}=e;return(0,t.jsxs)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm gap-1",children:[i,": ",(0,t.jsx)(J.G,{children:s})]})},ep={organizer:{past:"Organized",future:"Organizing"},sponsor:{past:"Sponsored",future:"Sponsoring"},exhibitor:{past:"Exhibited",future:"Exhibiting"},speaker:{past:"Spoke",future:"Speaking"},attendee:{past:"Attended",future:"Attending"},visitor:{past:"Visited",future:"Visiting"}},eb=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",eg=e=>{let{editions:i}=e,[s,a]=(0,G.useState)(!1),n=(0,G.useMemo)(()=>{let e=new Date;return e.setHours(0,0,0,0),(i||[]).filter(e=>!!(null==e?void 0:e.startDate)).map(i=>{let s=new Date(i.startDate),t=i.endDate?new Date(i.endDate):s;return{...i,start:s,end:t,isUpcoming:t>=e}}).sort((e,i)=>i.start.getTime()-e.start.getTime()||(e.association||"").localeCompare(i.association||""))},[i]);if(!n.length)return null;let r=[...n].reverse().find(e=>e.isUpcoming)||n.find(e=>e.isLatest)||n[0],l=(r.association||"").toLowerCase(),o=n.map(e=>(e.association||"").toLowerCase()).filter((e,i,s)=>e&&s.indexOf(e)===i).join(" \xb7 ")||"tracked",d=new Set(n.map((e,i)=>e.editionId||"row-".concat(i))).size,c=ep[l],u=c?r.isUpcoming?c.future:c.past:eb(r.association)||"Tracked",x=n.length>1?"+".concat(n.length-1):"",m="".concat(u," in ").concat((0,_.WU)(r.start,"MMM yyyy")),v=(0,t.jsxs)("span",{className:(0,f.cn)("inline-flex items-center gap-1.5 rounded-tr-md rounded-bl-lg border px-2.5 py-1 text-xs font-medium transition-colors",r.isUpcoming?"border-[var(--tracking-border)] bg-[var(--tracking-surface)] text-[var(--tracking-accent)]":"border-[#F9D7E2] bg-[#FEECF2] text-[#DF2670] dark:border-[#551B33] dark:bg-[#3A1726]"),children:[m,x&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"opacity-50",children:"|"}),(0,t.jsx)("span",{children:x})]}),n.length>1&&(0,t.jsx)(P.Z,{className:"h-3 w-3"})]});return 1===n.length?(0,t.jsx)("div",{className:"w-fit order-last -mb-4 -ml-4",children:v}):(0,t.jsx)("div",{className:"w-fit order-last -mb-4 -ml-4",onClick:e=>{e.preventDefault(),e.stopPropagation()},children:(0,t.jsxs)(V.J2,{open:s,onOpenChange:a,children:[(0,t.jsx)(V.xo,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-label":m,children:v})}),(0,t.jsxs)(V.yk,{align:"start",side:"top",className:"w-[320px] p-0",children:[(0,t.jsxs)("div",{className:"border-b px-3 py-2 text-[10px] font-semibold uppercase tracking-[0.04em] [color:var(--tertiary-text-color)]",children:[o,", ",d," edition",d>1?"s":""]}),(0,t.jsx)("div",{className:"max-h-56 overflow-y-auto py-1",children:n.map((e,i)=>(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 px-3 py-1.5 text-sm",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-baseline gap-1.5",children:[(0,t.jsx)("span",{className:"shrink-0 text-xs font-medium capitalize [color:var(--secondary-text-color)]",children:e.association||"tracked"}),(0,t.jsx)("span",{className:"truncate [color:var(--primary-text-color)]",children:(0,k.$Q)(e.startDate,e.endD
1ate||e.startDate,!1)})]}),e.isUpcoming?(0,t.jsx)("span",{className:"shrink-0 rounded-[20px] border border-[var(--tracking-border)] bg-[var(--tracking-surface)] px-1.5 py-px text-[10px] font-semibold text-[var(--tracking-accent)]",children:"Upcoming"}):e.isLatest?(0,t.jsx)("span",{className:"shrink-0 rounded-[20px] border border-[var(--border-color)] bg-[var(--neutral-light-color)] px-1.5 py-px text-[10px] font-semibold [color:var(--secondary-text-color)]",children:"Latest"}):null]},"".concat(e.editionId||i,"-").concat(e.association||i)))})]})]})})},ej=e=>{var i,s,a,n,r,l,o;let{event:d,showRelevanceScore:u,showMatchedBadge:x,relevanceScore:h,relevanceColor:p}=e,{getFilterValue:g}=(0,b.S)(),{data:j,setIsNewCall:y}=(0,v.Bj)(),N=null===(s=Object)||void 0===s?void 0:s.keys((null==j?void 0:null===(i=j.filterValues)||void 0===i?void 0:i.locationIds)||{}),E=(0,k.$Q)(d.basic.startDateTime,d.basic.endDateTime),w=d.basic.eventLocation?(0,I.L)(d.basic.eventLocation,!0):"Venue to be announced",C=[d.basic.primaryEventType&&(0,t.jsxs)(c.C,{className:"bg-pink-100 text-pink-800 rounded-sm px-2 py-0.5 text-xs font-medium capitalize",style:{color:m.kl[d.basic.primaryEventType]||void 0,backgroundColor:(0,f.t)(m.kl[d.basic.primaryEventType]||"#E5E7EB",.9)},children:[(0,t.jsx)("span",{className:"mr-1 capitalize",children:m.kM[d.basic.primaryEventType]||null}),d.basic.primaryEventType]},d.basic.primaryEventType),...(null===(a=d.basic.categories)||void 0===a?void 0:a.slice(0,1).map(e=>(0,t.jsx)(c.C,{variant:"outline",className:"text-gray-700 rounded-sm px-2 py-0.5 text-xs font-medium",children:e.name},e.id)))||[]],D=1==g("locationIds").split(",").filter(Boolean).length||1==N.length,T=null===(n=(null===(r=d.basic)||void 0===r?void 0:r.eventLocation)[0])||void 0===n?void 0:n.businessScore,S=null===(l=(null===(o=d.basic)||void 0===o?void 0:o.eventLocation)[0])||void 0===l?void 0:l.socialScore;return(0,t.jsxs)("div",{className:"relative bg-background dark:bg-[#171717] rounded-lg shadow border border-border dark:border-[#232323] p-4 flex flex-col gap-3 w-full",children:[u?(0,t.jsx)("div",{className:"absolute top-3 right-3 z-10 min-w-[88px] flex justify-end",children:(0,t.jsx)(ev,{value:h||0,label:"Relevance",color:p})}):x&&(0,t.jsx)("div",{className:"absolute top-4 right-4 z-10",children:(0,t.jsx)(c.C,{variant:"outline",className:"border-transparent flex items-center gap-2 py-1 px-4 bg-pink-100 text-pink-800 hover:bg-pink-100 uppercase rounded-sm",style:{color:"rgb(80, 85, 163)",backgroundColor:"rgb(238, 238, 246)"},children:"Matched"})}),(0,t.jsx)("div",{className:"text-sm [color:var(--secondary-text-color)] dark:text-gray-400 pr-24",children:E}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[d.basic.logoUrl?(0,t.jsx)("img",{src:d.basic.logoUrl||"/placeholder.svg",alt:d.basic.name,className:"w-16 h-16 rounded-md object-contain border border-border dark:border-[#232323] bg-background dark:bg-[#232323]"}):d.basic.website?(0,t.jsxs)("div",{className:"w-16 h-16 relative",children:[(0,t.jsx)("img",{src:"https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=".concat(d.basic.website,"&size=64"),alt:"".concat(d.basic.name," website favicon"),className:"w-16 h-16 object-contain border border-border dark:border-[#232323] rounded-md bg-background dark:bg-[#232323]",onError:e=>{e.currentTarget.style.display="none",e.currentTarget.dataset.error="true"}}),(0,t.jsx)("div",{className:"w-16 h-16 rounded-md bg-[#5055A3]/10 border border-[#5055A3]/20 shadow-sm flex items-center justify-center absolute top-0 left-0 dark:bg-[#232323] dark:border-[#232323]",style:{display:"none"},ref:e=>{if(e){let i=e.previousSibling;i&&"true"===i.dataset.error&&(e.style.display="flex")}},children:(0,t.jsx)("span",{className:"text-[#5055A3] text-lg font-semibold",children:d.basic.name.charAt(0)})})]}):(0,t.jsx)("div",{className:"w-16 h-16 rounded-md bg-[#5055A3]/10 border border-[#5055A3]/20 shadow-sm flex items-center justify-center dark:bg-[#232323] dark:border-[#232323]",children:(0,t.jsx)("span",{className:"text-[#5055A3] text-lg font-semibold",children:d.basic.name.charAt(0)})}),(0,t.jsx)("div",{className:"flex-1 pr-24",children:(0,t.jsx)("div",{className:"font-semibold text-xl leading-tight text-gray-900 dark:text-gray-100",children:d.basic.name})})]}),(0,t.jsx)("div",{className:"flex gap-2 mt-1 flex-wrap",children:C}),(0,t.jsx)("div",{className:"text-sm text-gray-700 dark:text-gray-300",children:w}),D&&(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)("div",{className:"text-sm [color:var(--secondary-text-color)] font-medium",children:"Insights & Scores"}),(0,t.jsxs)("div",{className:"flex items-center gap-2 mt-2",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center flex-1",children:[(0,t.jsx)("div",{className:"text-[11px] mb-1 border border-border dark:border-[#232323] px-1 bg-white dark:bg-[#171717]",children:"Social"}),(0,t.jsx)(ev,{value:S})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center flex-1",children:[(0,t.jsx)("div",{className:"text-[11px] mb-1 border border-border dark:border-[#232323] px-1 bg-white dark:bg-[#171717]",children:"Business"}),(0,t.jsx)(ev,{value:T})]})]})]})]})};var ef=e=>{var i,r,l,o,d,v,h,p,g,j,y,N,w,C,D,S,P,L,B,U,Z,V,K,q,Y,H,$,ee,ei,es,et,ea,en,er,el,eo,ed,ec,eu,ep,eb,ef,ey,eN,eE,ek,ew,eC,eD,eT,eI,eS,e_,eP,eA,eO,eF,eM,eR,ez;let{isMobile:eL,global:eB,view:eU,trackerId:eZ,setEventId:eV,setInterest:eK,event:eJ,showValues:eq,showMatchKeywords:eW,showaudienceSpread:eY,showMaturity:eH,initialIntelScoreData:eG,intelLoading:e$,source:eQ,isRecommended:eX,showCheckBox:e0,totalChecked:e1,toggleSelection:e2,isAdvanceLocked:e5}=e,[e3,e4]=(0,G.useState)(!1),{getFilterValue:e8}=(0,b.S)(),e6=Object.entries(eJ.interests||{}).some(e=>{let[i,s]=e;return"bookmark"!==i&&!!s})?"coordinate":"notes",e7=e8("type"),e9=(null==eG?void 0:eG.alltrackers_score)||(null==eJ?void 0:eJ.score)||0,[ie,ii]=(0,G.useState)((0,ex.O)({eventLogo:eJ.basic.logoUrl,companyLogo:null==eJ?void 0:null===(r=eJ.basic)||void 0===r?void 0:null===(i=r.organizer)||void 0===i?void 0:i.logoUrl,companyDomain:null==eJ?void 0:null===(o=eJ.basic)||void 0===o?void 0:null===(l=o.organizer)||void 0===l?void 0:l.website,eventDomain:eJ.basic.website})),is=null==ie?void 0:ie.includes("google.com/s2/favicons"),[it,ia]=(0,G.useState)(!1),[ir,il]=(0,G.useState)(!1);(0,G.useEffect)(()=>
1{if(!ie)return;let e=new window.Image;e.onload=()=>{is&&e.naturalWidth<32?ia(!0):il(!0)},e.onerror=()=>{ia(!0)},e.src=ie},[ie]);let io=eJ.trackerMatchInfo||{},id="T_PEOPLE_FINDER"===e7?(null==io?void 0:null===(eA=io.peopleFinderPersonAssociation)||void 0===eA?void 0:eA.length)||0:"T_SPEAKER_OPPORTUINTY"===e7||"T_SPEAKING_OPPORTUNITY"===e7?(null==io?void 0:null===(eO=io.speakerPersonAssociation)||void 0===eO?void 0:eO.length)||0:"T_COMPETITOR"===e7||"T_CUSTOMER_ICP"===e7?(null==io?void 0:null===(eF=io.competitorDomainOrName)||void 0===eF?void 0:eF.length)||0:"T_PRODUCT_KEYWORDS"===e7&&(null===(eR=eJ.basic)||void 0===eR?void 0:null===(eM=eR.matchedKeywords)||void 0===eM?void 0:eM.length)||0,ic="T_PEOPLE_FINDER"===e7||"T_SPEAKER_OPPORTUINTY"===e7?"#646BDC":"T_PRODUCT_KEYWORDS"===e7?"#E99CD4":"#9B86D4",iu=!!eZ&&"public"!==eQ&&!u.SB&&!e$&&1===id,ix=!!eZ&&"public"!==eQ&&!u.SB&&!e$&&e9>0&&("T_PEOPLE_FINDER"!==e7&&"T_SPEAKER_OPPORTUINTY"!==e7&&"T_SPEAKING_OPPORTUNITY"!==e7&&"T_COMPETITOR"!==e7&&"T_CUSTOMER_ICP"!==e7&&"T_PRODUCT_KEYWORDS"!==e7||id>1),im=function(e,i,s){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"1,250";return(0,t.jsxs)("div",{className:"flex items-center justify-between py-1",children:[(0,t.jsx)("span",{className:"flex items-center gap-1 text-[15px] [color:var(--secondary-text-color)] font-medium",children:e}),(0,t.jsx)("span",{className:"font-semibold text-primary text-sm",children:s?(0,t.jsx)(J.G,{children:a}):i})]})};function iv(e){let i=e%10,s=e%100;return 1===i&&11!==s?"st":2===i&&12!==s?"nd":3===i&&13!==s?"rd":"th"}let ih=[eJ.basic.eventTypes.length>0&&eJ.basic.eventTypes.map(e=>(0,t.jsxs)(c.C,{className:"bg-pink-100 text-pink-800 rounded-sm px-2 py-0.5 text-xs font-medium capitalize",style:{color:m.kl[e.slug]||void 0,backgroundColor:(0,f.t)(m.kl[e.slug]||"#E5E7EB",.9)},children:[(0,t.jsx)("span",{className:"mr-1 capitalize",children:m.kM[e.slug]||null}),e.name]},e.id)),...!(u.SB&&x.Mv.social.includes(eJ.basic.primaryEventType))&&(null===(d=eJ.basic.categories)||void 0===d?void 0:d.slice(0,1).map(e=>(0,t.jsx)(c.C,{variant:"outline",className:"whitespace-nowrap text-[#A35200] dark:border-[#0D3868] bg-[#FFF6E6] h-fit font-semibold text-xs py-1 px-4 border-[#FEF0CD] border rounded-md w-fit",children:e.name},e.id)))||[]],ip=(0,k.$Q)(eJ.basic.startDateTime,eJ.basic.endDateTime),ib=(null===(v=eJ.basic.status)||void 0===v?void 0:v.toLowerCase())==="cancelled",ig=(null===(h=eJ.basic.status)||void 0===h?void 0:h.toLowerCase())==="postponed",ij=new Date,iy=eJ.basic.endDateTime?new Date(eJ.basic.endDateTime):null,iN=eJ.basic.startDateTime?new Date(eJ.basic.startDateTime):null,iE=!!iy&&iy<ij,ik=eJ.basic.eventLocation?"online"===eJ.basic.format?(0,t.jsxs)("span",{className:"flex items-center",children:[(0,t.jsx)(A.Z,{className:"w-4 h-4 mr-1"})," Online"]}):"hybrid"===eJ.basic.format?(0,t.jsxs)("span",{children:[(0,t.jsx)(A.Z,{className:"w-4 h-4 mr-1 inline-block"}),"Hybrid\xa0-\xa0",(null===(p=eJ.basic.eventLocation)||void 0===p?void 0:p.locationType)==="VENUE"?eJ.basic.eventLocation.name:"Venue to be announced"]}):(null===(g=eJ.basic.eventLocation)||void 0===g?void 0:g.locationType)==="VENUE"?eJ.basic.eventLocation.name:"Venue to be announced":"Venue to be announced",iw=eJ.basic.eventLocation?"online"===eJ.basic.format?null:(0,I.L)(eJ.basic.eventLocation,!0):null,iC=null!==(eS=null===(y=eJ.insights)||void 0===y?void 0:null===(j=y.scores)||void 0===j?void 0:j.inboundScore)&&void 0!==eS?eS:null,iD=null!==(e_=null===(w=eJ.insights)||void 0===w?void 0:null===(N=w.scores)||void 0===N?void 0:N.internationalScore)&&void 0!==e_?e_:null,iT="-";(null===(C=eJ.insights)||void 0===C?void 0:C.rankings)&&"object"==typeof eJ.insights.rankings&&("rank"in eJ.insights.rankings&&"number"==typeof eJ.insights.rankings.rank?iT="".concat(eJ.insights.rankings.rank).concat(iv(eJ.insights.rankings.rank)," ").concat(eJ.insights.rankings.rankType||"Country"," Rank"):"country"in eJ.insights.rankings&&eJ.insights.rankings.country&&"number"==typeof eJ.insights.rankings.country.rank&&(iT="".concat(eJ.insights.rankings.country.rank).concat(iv(eJ.insights.rankings.country.rank)," Country Rank")));let iI=null;eq.includes(E.di.entryType)&&("free_and_paid"===eJ.basic.entryType?iI=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#
1EDDCF9] bg-white capitalize rounded-sm",children:"Free"}),(0,t.jsx)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm ml-1",children:"Paid"})]}):"paid"===eJ.basic.entryType&&(iI=(0,t.jsx)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm",children:"Paid"})));let iS=[eH&&(e5?(0,t.jsx)(eh,{label:"Maturity",placeholder:"Mature"}):(null===(D=eJ.advance)||void 0===D?void 0:D.maturity)&&(0,t.jsx)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm",children:null===(S=eJ.advance)||void 0===S?void 0:S.maturity},"maturity")),eq.includes(E.di.frequency)&&(e5?(0,t.jsx)(eh,{label:"Frequency",placeholder:"Annual"}):(null===(P=eJ.advance)||void 0===P?void 0:P.frequency)&&(0,t.jsx)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm",children:null===(L=eJ.advance)||void 0===L?void 0:L.frequency},"frequency")),eq.includes(E.di.branded)&&(null===(B=eJ.advance)||void 0===B?void 0:B.isBranded)&&(0,t.jsx)(c.C,{variant:"outline",className:"text-[#DF2670] border-[#F9D7E2] bg-[#FEECF2] capitalize rounded-sm text-xs font-medium",children:"Branded"},"branded"),eq.includes(E.di.series)&&(null===(U=eJ.advance)||void 0===U?void 0:U.isSeries)&&(0,t.jsx)(c.C,{variant:"outline",className:"text-[#0D8C7D] border-[#BEF4EB] bg-[#E5FAF6] capitalize rounded-sm text-xs font-medium",children:"Series"},"series")].filter(Boolean),i_=eq.includes(E.di.rankings)&&(e5?(0,t.jsx)(eh,{label:"Event Ranking",placeholder:"12th Category"}):(null===(Z=eJ.insights)||void 0===Z?void 0:Z.rankings)&&"-"!==iT&&(0,t.jsx)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm",children:iT})),iP=eq.includes(E.di.rankings)&&(e5?(0,t.jsx)(eh,{label:"Trust Score",placeholder:"85"}):(null===(V=eJ.insights)||void 0===V?void 0:V.trustScore)&&(null===(K=eJ.insights)||void 0===K?void 0:K.trustScore)>0?(0,t.jsxs)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm",children:["Trust Score: ",null===(q=eJ.insights)||void 0===q?void 0:q.trustScore]}):""),iA=eq.includes(E.di.rating)&&(null===(Y=eJ.insights)||void 0===Y?void 0:Y.reputationScore)&&(0,t.jsxs)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm",children:["Reputation Score: ",null===(H=eJ.insights)||void 0===H?void 0:H.reputationScore]}),iO=eW&&eJ.basic.matchedKeywords&&eJ.basic.matchedKeywords.length>0&&(0,t.jsxs)(c.C,{variant:"outline",className:"flex items-center gap-2 text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm",children:["Match Keyword: ",null===($=eJ.basic.matchedKeywords)||void 0===$?void 0:$.join(" | ")]}),iF=eW&&(0,t.jsx)(c.C,{variant:"secondary",className:"flex items-center gap-2 text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm ".concat(null===(ez=null!==(eP=eJ.basic.matchedKeywordsPercentage)&&void 0!==eP?eP:null)?"[color:var(--secondary-text-color)]":ez>20?"text-green-500 bg-[var(--success-background-color)] ":ez>=10&&ez<=20?"text-blue-500 bg-[#eeeaf9]":ez>0&&ez<10?"text-red-500 bg-[var(--danger-background-color)]":"[color:var(--secondary-text-color)]"),children:(()=>{var e;let i=null!==(e=eJ.basic.matchedKeywordsPercentage)&&void 0!==e?e:null;return null===i?"-":i>20?(0,t.jsx)("span",{children:"High"}):i>=10&&i<=20?(0,t.jsx)("span",{children:"Medium"}):i>0&&i<10?(0,t.jsx)("span",{children:"Low"}):"-"})()}),iM=eq.includes(E.di.audienceZone)&&(e5?(0,t.jsx)(eh,{label:"Audience Zone",placeholder:"Regional"}):(null===(ee=eJ.audience)||void 0===ee?void 0:ee.audienceZone)&&(0,t.jsxs)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm",children:[eJ.audience.audienceZone," Audience"]})),iR=eq.includes(E.di.rating)&&eJ.basic.rating&&eJ.basic.rating>0?(0,t.jsxs)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm",children:[(0,t.jsx)(z.Z,{className:"w-3 h-3 mr-1",fill:"#6F48AD"}),(0,t.jsx)("span",{children:eJ.basic.rating})]}):"",iz=eY&&(e5?(0,t.jsx)(eh,{label:"Audience Country",placeholder:"US GB DE"}
1):(null===(ei=eJ.audience)||void 0===ei?void 0:ei.audienceSpread)&&(0,t.jsx)(c.C,{variant:"secondary",className:"flex items-center gap-2 text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm",children:(0,t.jsx)("div",{className:"flex gap-1",children:Object.entries(eJ.audience.audienceSpread).slice(0,5).map(e=>{let[i,{iso:a,name:n}]=e,r=s(95245)["UK"===a?"GB":a];return r?(0,t.jsx)("span",{className:"inline-block rounded overflow-hidden",title:n,children:(0,t.jsx)(r,{className:"w-4 h-3 border"})},i):null})})}));return"holiday"==eJ.basic.primaryEventType?(0,t.jsx)(ej,{event:eJ,showRelevanceScore:ix,showMatchedBadge:iu,relevanceScore:e9,relevanceColor:ic}):(0,t.jsx)("div",{className:"flex gap-2 items-start w-full",children:(0,t.jsx)(W.default,{target:"_blank",href:"/internal/event/".concat(eJ.basic.id),className:"block w-full",children:(0,t.jsxs)("div",{className:"relative isolate bg-background rounded-lg shadow border border-border dark:border-[#232323] p-4 flex flex-col gap-3 w-full ".concat((null==e1?void 0:e1.includes(eJ.basic.id))?"ring-1 ring-primary border-primary":""),children:["detail"===eQ&&!!(null==eJ?void 0:null===(et=eJ.trackerMatchInfo)||void 0===et?void 0:null===(es=et.qualifyingEditions)||void 0===es?void 0:es.length)&&(0,t.jsx)(eg,{editions:eJ.trackerMatchInfo.qualifyingEditions}),e0&&e1&&e2&&(0,t.jsx)("div",{className:"absolute left-2 top-2 z-10",onClick:e=>{e.preventDefault(),e.stopPropagation()},children:(0,t.jsx)(X.X,{checked:e1.includes(eJ.basic.id),onCheckedChange:()=>e2(eJ.basic.id,eJ)})}),ix?(0,t.jsx)("div",{className:"absolute top-3 right-3 z-10 min-w-[88px] flex justify-end",children:(0,t.jsx)(ev,{value:e9,label:"Relevance",color:ic})}):iu&&(0,t.jsx)("div",{className:"absolute top-4 right-4 z-10",children:(0,t.jsx)(c.C,{variant:"outline",className:"border-transparent flex items-center gap-2 py-1 px-4 bg-pink-100 text-pink-800 hover:bg-pink-100 uppercase rounded-sm",style:{color:"rgb(80, 85, 163)",backgroundColor:"rgb(238, 238, 246)"},children:"Matched"})}),(0,t.jsxs)("div",{className:"flex items-center gap-2 flex-wrap ".concat(e0&&e1&&e2?"pl-6":""),children:[(0,t.jsx)(O.Z,{className:"w-3.5 h-3.5 flex-shrink-0 [color:var(--secondary-text-color)]"}),(0,t.jsx)("span",{className:(0,f.cn)("text-sm [color:var(--secondary-text-color)]",ib||ig?"line-through":""),children:ip}),ib&&(0,t.jsx)("span",{className:"text-xs text-red-600 font-medium",children:"Cancelled"}),ig&&(0,t.jsx)("span",{className:"text-xs text-red-600 font-medium",children:"Postponed"}),!ib&&!ig&&!!iN&&!!iy&&iN<=ij&&iy>=ij&&(0,t.jsxs)("span",{className:"text-xs text-green-600 font-medium flex items-center gap-1",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-green-500 animate-pulse"}),"Live"]}),!ib&&!ig&&iE&&(0,t.jsx)("span",{className:"text-xs text-red-600 font-medium",children:"Ended"})]}),eq.includes(E.di.forecasted)&&((e,i)=>{if(i&&(null==e?void 0:e.currentEditionStartDate)){let i=new Date(e.currentEditionStartDate);if(i>ij)return(0,t.jsxs)("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md bg-[var(--primary-light-color)] text-xs w-fit text-primary",children:[(0,t.jsx)(O.Z,{className:"w-3 h-3 flex-shrink-0"}),(0,t.jsx)("span",{children:"Next Edition:"}),(0,t.jsx)("span",{className:"font-semibold",children:(0,_.WU)(i,"MMM yyyy")})]})}let s=(null==e?void 0:e.futureExpectedStartDate)||(null==e?void 0:e.rehostDate);if(s&&""!==s){let e=new Date(s);if(e>ij)return(0,t.jsxs)("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md bg-[var(--primary-light-color)] text-xs w-fit text-primary",children:[(0,t.jsx)(O.Z,{className:"w-3 h-3 flex-shrink-0"}),(0,t.jsx)("span",{children:"Next Expected Edition:"}),(0,t.jsx)("span",{className:"font-semibold",children:(0,_.WU)(e,"MMM yyyy")})]})}return iE&&"hybrid"===eJ.basic.format?(0,t.jsxs)("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md bg-[var(--primary-light-color)] text-xs w-fit text-primary",children:[(0,t.jsx)(F.Z,{className:"w-3 h-3 flex-shrink-0"}),(0,t.jsx)("span",{className:"font-semibold",children:"Venue to be announced"})]}):null})(eJ.advance,(null===(ea=eJ.basic)||void 0===ea?void 0:ea.isCurrent)===!1),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[ie&&ir&&!it?(0,t.jsx)("img",{src:ie,loading:"lazy",alt:"logo",className:"w-16 h-16 md:w-24 md:h-24 object-contain rounded-xl bg-white shadow-lg border border-[#
1EBEBEB] dark:border-[#222]"}):(0,t.jsx)("div",{className:"w-16 h-16 md:w-24 md:h-24 rounded-md bg-[#5055A3]/10 border border-[#5055A3]/20 shadow-sm flex items-center justify-center",children:(0,t.jsx)("span",{className:"text-[#5055A3] text-lg md:text-2xl font-semibold",children:(null===(er=eJ.basic.name)||void 0===er?void 0:null===(en=er.charAt(0))||void 0===en?void 0:en.toUpperCase())||"E"})}),(0,t.jsx)("div",{className:"flex-1 pr-24",children:(0,t.jsx)("div",{className:"font-semibold text-lg leading-tight text-gray-900 dark:text-gray-100",children:eJ.basic.name})})]}),(ik||iw)&&(0,t.jsxs)("div",{className:"flex items-start gap-1 text-sm capitalize [color:var(--secondary-text-color)]",children:["online"!==eJ.basic.format&&(0,t.jsx)(F.Z,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0"}),(0,t.jsxs)("div",{children:[ik&&!("Venue to be announced"===ik&&iE)&&(0,t.jsx)("div",{children:ik}),iw&&(0,t.jsx)("div",{className:"opacity-75",children:iw})]})]}),(null===(el=eJ.basic.organizer)||void 0===el?void 0:el.prospectId)?(0,t.jsx)("div",{onClick:e=>e.stopPropagation(),children:(0,t.jsxs)(W.default,{href:"/internal/company/".concat(eJ.basic.organizer.prospectId),target:"_blank",className:"flex items-center gap-1 text-sm capitalize [color:var(--secondary-text-color)]",title:null===(eo=eJ.basic.organizer)||void 0===eo?void 0:eo.name,children:[(0,t.jsx)(R.Z,{className:"w-3.5 h-3.5 flex-shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:null===(ed=eJ.basic.organizer)||void 0===ed?void 0:ed.name})]})}):(null===(ec=eJ.basic.organizer)||void 0===ec?void 0:ec.name)?(0,t.jsxs)("div",{className:"flex items-center gap-1 text-sm capitalize [color:var(--secondary-text-color)]",children:[(0,t.jsx)(R.Z,{className:"w-3.5 h-3.5 flex-shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:null===(eu=eJ.basic.organizer)||void 0===eu?void 0:eu.name})]}):null,(0,t.jsxs)("div",{className:"flex gap-2 mt-1 flex-wrap",children:[ih,iR,iI,iS,i_,iM,iP,iA,iO,iF,iz]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[im("Estimated Visitors",(null===(ep=eJ.basic)||void 0===ep?void 0:ep.estimatedAttendance)&&(null===(eb=eJ.basic)||void 0===eb?void 0:eb.estimatedAttendance)!=="0"?null===(ey=eJ.basic)||void 0===ey?void 0:null===(ef=ey.estimatedAttendance)||void 0===ef?void 0:ef.toLocaleString():"-"),eq.includes(E.di.estimatedExhibitors)&&im("Estimated Exhibitors",(null===(eN=eJ.insights)||void 0===eN?void 0:eN.estimatedExhibitors)!==void 0&&(null===(eE=eJ.insights)||void 0===eE?void 0:eE.estimatedExhibitors)!==null&&(null===(ek=eJ.insights)||void 0===ek?void 0:ek.estimatedExhibitors)!==""&&(null===(ew=eJ.insights)||void 0===ew?void 0:ew.estimatedExhibitors)!=="0"?function(e){if(null==e)return"--";if("0-0"===e||"0"===e||0===e)return"-";let i=String(e),s=i.split("-");return 2===s.length&&s[0]===s[1]?0===Number(s[0])?"-":Number(s[0]).toLocaleString():i.toLocaleString()}(null===(eC=eJ.insights)||void 0===eC?void 0:eC.estimatedExhibitors):"-",!!e5),eq.includes(E.di.economicImpact)&&im("Economic Impact",(null===(eD=eJ.insights)||void 0===eD?void 0:eD.economicImpact)&&(null===(eT=eJ.insights)||void 0===eT?void 0:eT.economicImpact)!=="$0"&&(null===(eI=eJ.insights)||void 0===eI?void 0:eI.economicImpact)!=="0"?(0,T.Bk)(eJ.insights.economicImpact):"-",!!e5,"$1.2M")]}),eq.includes(E.di.scores)&&(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)("div",{className:"text-sm [color:var(--secondary-text-color)] dark:text-gray-400 font-medium",children:"Insights & Scores"}),(0,t.jsxs)("div",{className:"flex items-center gap-2 mt-2",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center flex-1",children:[(0,t.jsx)("div",{className:"text-[11px] mb-1 border border-border dark:border-[#232323] px-1 bg-white dark:bg-[#171717]",children:"Inbound"}),(0,t.jsx)(ev,{value:e5?72:iC,isLocked:e5})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center flex-1",children:[(0,t.jsx)("div",{className:"text-[11px] mb-1 border border-border dark:border-[#232323] px-1 bg-white dark:bg-[#171717]",children:"International"}),(0,t.jsx)(ev,{value:e5?64:iD,isLocked:e5})]})]})]}),(0,t.jsx)("div",{className:"flex justify-end items-center gap-2",children:"public"!==eQ&&!eX&&(0,t.jsxs)("div",{className:"flex items-center gap-1",onClick:e=>e.preventDefault(),children:[(0,t.jsx)(a.k,{eventId:eJ.basic.id,interests:eJ.interests,trackerId:eZ,setInterest:eK,setEventId:eV,view:eU}),"public"!==eQ&&"tracker"!==eQ&&(0,t.jsx)(n.ZP,{subType:"T_EVENT_PARTICIPATION",label:eJ.basic.name,target:{eventId:eJ.basic.id,categories:eJ.basic.categories,countryId:(0,em.Iy)(eJ.basic.eventLocation)}}),(0,t.jsx)(Q.z,{variant:"ghost",size:"icon","aria-label":"Notes",onClick:e=>{e.preventDefault(),e.stopPropagation(),window.open("/internal/event/".concat(eJ.basic.id,"?view=").concat(e6),"_blank")},children:(0,t.jsx)(M.Z,{className:"w-5 h-5 text-primary"})})]})})]})})})},ey=s(93563),eN=s(1608),eE=s(88804);let ek=e=>{let{value:i=0,label:s,color:a,isLocked:n}=e,r=2*Math.PI*22,l=a?"":null==i||i<=25?"text-[#398e4a]":i<=50?"text-[#FFD70A]":i<=75?"text-[#FF990A]":"text-[#DA2F35]";return(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsxs)("div",{className:"relative inline-flex ".concat(n?"blur-[5px] select-none pointer-events-none opacity-80":""),children:[(0,t.jsxs)("svg",{className:"w-[52px] h-[52px]","aria-hidden":"true",children:[(0,t.jsx)("circle",{className:"text-gray-200",strokeWidth:"4",stroke:"currentColor",fill:"transparent",r:22,cx:"26",cy:"26"}),(0,t.jsx)("circle",{className:l,strokeWidth:"4",strokeDasharray:r,strokeDashoffset:r-(i?i/100*r:0),strokeLinecap:"round",stroke:a||"currentColor",fill:"transparent",r:22,cx:"26",cy:"26"})]}),(0,t.jsx)("span",{className:"absolute inset-0 flex items-center justify-center text-sm font-semibold","aria-hidden":"true",children:n?null!=i?i:72:i||"-"})]}
1),(0,t.jsx)("p",{className:"text-xs border-[#EBEBEB] border bg-white dark:bg-[#171717] rounded p-1",children:s})]})};function ew(e){var i,s,a,n,c,u,x,m,f,k,T,I,S,_;let P,A,O,F,M,R,z,L,{module:B,source:U,eventType:Z,trackerId:V,view:K,showCheckBox:J,setShowCheckBox:q,eventsData:W,onPublicPageChange:Q,cityLocationIds:X,showEntriesCount:ee,onTotalCountChange:en,newEventsStrip:ex,newEventsStripPending:ev,tabSwitchPending:eh}=e,ep=(0,Y.usePathname)(),eb="recommended_events"===ep.split("/")[3],[eg,ej]=(0,G.useState)(!1),{isAuthorised:ek,membershipData:ew}=(0,er.useAuthContext)(),[eC,eD]=(0,G.useState)([]),eT=!!(null==ep?void 0:ep.startsWith("/internal"))&&"public"!==U&&"detail"!==U,eS=!!eT||J,e_=eT?J||eC.length>0:J,{disableAdvancedFilters:eP,applyFilters:eA,localFilters:eO,setTokenAlertAdvanceUsed:eF,tokenAlertAdvanceUsed:eM}=(0,ey.h)(),[eR,ez]=(0,G.useState)({status:"",label:"None"}),[eL,eB]=(0,G.useState)(!1),{toast:eU}=(0,ei.pm)(),{inTransition:eZ}=(0,eo.useTransition)(),[eV,eK]=(0,G.useState)(new Map),{currentToken:eJ,nextToken:eq,previousToken:eW,updatePaginationTokens:eY,recordRenderedPage:eH,setCurrentToken:eG,resetPagination:e$}=(0,eN.h0)(),eQ=(0,Y.useSearchParams)(),eX=(0,G.useRef)(),e0=eQ.toString();(0,G.useMemo)(()=>{if(eX.current&&eX.current!==e0){let e=new URLSearchParams(eX.current),i=new URLSearchParams(e0);e.delete("offset"),e.delete("page"),e.delete("limit"),i.delete("offset"),i.delete("page"),i.delete("limit"),e.toString()!==i.toString()&&e$({keepStagedSwitch:!0})}eX.current=e0},[e0,e$]);let{interestConfiguration:e1,isLoading:e2,error:e5}="public"===U?{interestConfiguration:null,isLoading:!1,error:null}:h.m.interest(),{createUserEventInterest:e3,isLoading:e4}="public"===U?{createUserEventInterest:()=>Promise.resolve(),isLoading:!1}:g.v.createUserEventInterest(),{removeBookmark:e8}=(0,y.p)(),e6=(0,et.dD)(),{data:e7,setIsNewCall:e9}=(0,v.Bj)(),{getFilterValue:ie,setMultipleFilters:ii}=(0,b.S)(),is=!!ie("maturity")||(null==e7?void 0:null===(i=e7.filterValues)||void 0===i?void 0:i.maturity),it=ie("includeKeywords").trim().split(",").filter(Boolean),ia=ie("excludeKeywords").trim().split(",").filter(Boolean),ir=ie("audienceSpread").split(",").filter(Boolean).length||(null==e7?void 0:null===(s=e7.filterValues)||void 0===s?void 0:s.audienceSpread),il=it.length+ia.length>=5,io=(0,H.Uy)(ep)?(0,H.zF)(Object.fromEntries(eQ.entries())):Object.fromEntries(eQ.entries());io.view="list";let[id,ic]=(0,G.useState)((null==W?void 0:null===(a=W.data)||void 0===a?void 0:a.events)||[]),[iu,ix]=(0,G.useState)(),[im,iv]=(0,G.useState)(),ih=null;("public"===U||"detail"===U)&&(A=null==W?void 0:W.data.count,P=null==W?void 0:W.data.events,O=null==W?void 0:null===(k=W.query)||void 0===k?void 0:k.next,F=null==W?void 0:null===(T=W.query)||void 0===T?void 0:T.previous,z=null==W?void 0:null===(I=W.query)||void 0===I?void 0:I.page);let{data:ip}=(0,v.Bj)(),ib=(0,ed.S)({removeBookmark:e8,createUserEventInterest:e3}),{executeBulkAction:ig,isLoading:ij}="public"===U?{executeBulkAction:()=>Promise.resolve(),isLoading:!1}:ib,iy=ep.includes("trackers")?"TRACKER":"/internal/search/events"===ep?"RESEARCH":"";"tracker"===U?{events:P,totalEvents:A,nextToken:O,previousToken:F,isLoading:M,error:R,page:z,tokenInfo:ih,autoSwitchedToBasic:L}=j.j.list(io,V,K,eJ):"tracker"!==U&&"public"!==U&&"detail"!==U&&({events:P,totalEvents:A,nextToken:O,previousToken:F,isLoading:M,error:R,page:z,tokenInfo:ih,autoSwitchedToBasic:L}=p.h.list(io,eZ,eJ)),(0,G.useEffect)(()=>{M||null==en||en(null!=A?A:0)},[A,M,en]);let{intelScoreData:iN,loading:iE,error:ik}=(0,ea.n)(V||"",P&&(null==P?void 0:P.length)>0?P:[],io.eventType,io.type),iw=[];Object.entries({rating:"rating",maturity:"maturity",branded:"branded",series:"series",forecasted:"forecasted",frequency:"frequency",estimatedExhibitors:"estimatedExhibitors",scores:"scores",audienceZone:"audienceZone",rankings:"rankings",economicImpact:"economicImpact"}).forEach(e=>{var i,s;let[t,a]=e;(null==ip?void 0:null===(s=ip.filterValues)||void 0===s?void 0:null===(i=s.show)||void 0===i?void 0:i.includes(t))&&iw.push(a)});let iC=null!==(S=null==ew?void 0:null===(n=ew.advancePendingRequests)||void 0===n?void 0:n.total)&&void 0!==S?S:0,iD=(null==ih?void 0:null===(c=ih.advancePrevious)||void 0===c?void 0:c.percentage)-(null==ih?void 0:null===(u=ih.advance)||void 0===u?void 0:u.percentage)||0,iT=iC>0?iD/100*iC:0,iI=!!L,iS=async()=>
1{if((null==eR?void 0:eR.status)===""&&(null==eR?void 0:eR.label)==="None"){eB(!0),eU({title:"Error",description:"No action selected",variant:"destructive"});return}if(eB(!1),0===eC.length){eU({title:"Error",description:"No events selected",variant:"destructive"});return}try{await ig({action:eR,selectedInterestMap:eV,updatedEvents:id,totalChecked:eC,sourceModule:iy,trackerId:V},{setInterest:ix,setUpdatedEvents:ic,setSelectedInterestMap:eK,setShowCheckBox:q,setTotalChecked:eD,onSuccess:()=>{eU((0,es.y)(null==eR?void 0:eR.status)),eK(new Map)},onError:e=>eU({title:"Error",description:e.message})})}catch(e){console.error("Bulk action failed:",e),eU({title:"Error",description:"Failed to complete bulk action"})}},i_=!!(null==ip?void 0:null===(x=ip.filterValues)||void 0===x?void 0:x.maturity),iP=Number.parseInt(ie("limit")||"10"),iA=Math.floor(Number.parseInt(ie("offset")||"0")/iP)+1,iO=Math.ceil((A||0)/iP),iF=ie("show").split(",").filter(Boolean).map(e=>E.di[e]);"tracker"===U&&(iF=iw.filter(Boolean).map(e=>E.di[e])),(0,G.useEffect)(()=>{P&&(null==P?void 0:P.length)>0&&ic(P)},[P]),(0,G.useEffect)(()=>{(O||F)&&eY(O,F)},[O,F,eY]);let iM=null!==(_=null==P?void 0:P.length)&&void 0!==_?_:0,iR=!M&&!R;function iz(e){let i=iV.reduce((e,i)=>(e[i.status.toLowerCase()]=void 0,e),{});return e&&Object.keys(e).forEach(s=>{let t=s.toLowerCase();if(t in i){var a;i[t]=null===(a=e[s])||void 0===a?void 0:a.interestId}}),i}function iL(e,i){eD(i=>i.includes(e)?i.filter(i=>i!==e):[...i,e]),eK(s=>{let t=new Map(s);if(t.has(e))t.delete(e);else{let s=iz(i.interests);t.set(e,s)}return t})}(0,G.useEffect)(()=>{iR&&eH(eJ,iM,iP)},[eJ,iM,iP,iR,eH]);let iB=(0,G.useMemo)(()=>id&&id.length>0&&id.every(e=>eC.includes(e.basic.id)),[eC,id]),iU="public"!==U&&("tracker"!==U||eb),iZ=(0,G.useMemo)(()=>(id||[]).filter(e=>{var i;return eC.includes(null===(i=e.basic)||void 0===i?void 0:i.id)}).map(e=>({eventId:e.basic.id,categories:e.basic.categories,countryId:(0,em.Iy)(e.basic.eventLocation)})),[id,eC]),iV=[...(null==e1?void 0:e1.interest)||[],{label:"Bookmark",status:"BOOKMARK"},{label:"Un Bookmark",status:"UN BOOKMARK"}];(0,G.useEffect)(()=>{iV.length>0&&!eR&&ez({status:"",label:"None"})},[iV]),(0,G.useEffect)(()=>{"public"!==U&&P&&ic(e=>{let i=e?[...e]:[...P];return"bookmarked"===io.eventType&&iu&&"bookmark"in iu?i.filter(e=>e.basic.id!==im):i.map(e=>e.basic.id===im?{...e,interests:iu?Object.keys(iu).reduce((i,s)=>{var t;return(null===(t=e.interests)||void 0===t?void 0:t[s])?delete i[s]:i[s]=iu[s],i},{...e.interests}):{}}:e)})},[im,iu]);let iK=Number(ie("offset")||0)>0||!!eJ;return((0,G.useEffect)(()=>{J||(ej(!1),eD([]),eK(new Map),eB(!1),ez({status:"",label:"None"}))},[J]),M||eZ||eh)?(0,t.jsx)(o.Z,{className:"h-24 text-primary"}):R?(0,t.jsx)(d.Z,{issues:R.issues,text:R.message,errorStatusCode:null==R?void 0:R.statusCode,tokenInfo:ih,onBackToFirstPage:iK?()=>{if("public"===U&&Q){Q(1);return}ii({offset:""}),e$()}:void 0}):"city_page"!==B&&"detail"!==U&&(0===eQ.size||1==eQ.size&&eQ.has("view")&&"tracker"!==U)?(0,t.jsx)("div",{className:"p-6",children:(0,t.jsx)(el.Z,{})}):(null==P?void 0:P.length)===0?"tracker"===U?"bookmarked"===io.eventType?(0,t.jsx)(l.Z,{image:N.Z,title:"No events bookmarked yet! Start bookmarking events to easily track and revisit them here."}):ev?(0,t.jsx)(o.Z,{className:"h-24 text-primary"}):(0,t.jsxs)("div",{className:"flex h-full flex-col overflow-y-auto",children:[ex&&(0,t.jsx)(D.Z,{...ex}),!(0,D.D)(ex)&&(0,t.jsx)("div",{className:"min-h-0 flex-1",children:(0,t.jsx)(l.Z,{image:N.Z,title:"We couldn't find any events matching your tracker criteria at the moment.",text:"Try adjusting your filters or checking back later, as new events are added frequently.",buttonText:"Manage Configurations",buttonUrl:"/internal/trackers/".concat(V,"/editTracker?type=").concat(io.type)})})]}):"city_page"===B?(0,t.jsx)(l.Z,{image:N.Z,title:"No upcoming events in next 30 days...",text:ek?"Consider exploring past events and upcoming events in the next couple of months happening in the city and nearby areas.":"Sign Up to explore past events and upcoming events in the next couple of months happening in the city and nearby areas.",buttonText:ek?"Manage Filters":"Sign Up",buttonUrl:"/internal/search/events?locationIds=".concat(X)}):(0,t.jsx)(d.Z,{text:"No events found. Try expanding your preferences by selecting more categories, products, or topics."}):(0,t.jsxs)("div",{className:"flex flex-col h-full w-[100%]",children:["tracker"!==U&&"detail"!==U&&(0,t.jsx)(eE.u,{advanceTokensUsed:null==ih?void 0:null===(m=ih.advance)||void 0===m?void 0:m.percentage,dailySearchesUsed:null==ih?void 0:null===(f=ih.basic)||void 0===f?void 0:f.percentage,basicMonthlyLimitExhausted:null==ih?void 0:ih.basicMonthlyLimitExhausted}),null==eM&&(0,t.jsx)(r.Z,{show:e_,isAllChecked:iB,onSelectAll:function(e){let i=(null==id?void 0:id.flatMap(e=>"holiday"!==e.basic.primaryEventType?[e.basic.id]:[]))||[];e?(eD(e=>[...e,...i]),eK(e=>{let i=new Map(e);
1return null==id||id.forEach(e=>{if("holiday"===e.basic.primaryEventType)return;let s=e.basic.id,t=iz(e.interests);i.set(s,t)}),i})):(eD(e=>e.filter(e=>!i.includes(e))),eK(e=>{let s=new Map(e);return i.forEach(e=>s.delete(e)),s}))},selectedCount:eV.size,actions:iV,action:eR,setAction:e=>{eB(!1),ez(e)},hasError:eL,isSubmitting:ij,disabled:0===eC.length,onSubmit:iS,onCancel:function(){ej(!1),null==q||q(!1),eD([]),eK(new Map),eB(!1),ez({status:"",label:"None"})},trackerSource:eb?"RECOMMEND_EVENT":void 0,trackerSubType:iU?"T_EVENT_PARTICIPATION":void 0,trackerTargets:iU?iZ:void 0}),null==eM&&(0,t.jsx)("div",{className:"flex-grow overflow-y-auto md:p-[8px]",children:(0,t.jsxs)("div",{className:"w-full space-y-3 list-none px-4 md:px-0",children:[(0,t.jsx)(C.Z,{show:iI,currentPage:Number(z)||iA||1}),ex&&(0,t.jsx)(D.Z,{...ex}),"RESEARCH"===iy&&(0,t.jsx)(w.Z,{currentPage:Number(z)||iA||1,itemsPerPage:iP,totalEvents:A||0}),null==id?void 0:id.map((e,i)=>{var s,a,n,r;return e6?(0,t.jsx)(ef,{isMobile:e6,global:K,trackerId:V,view:io.eventType,setEventId:iv,setInterest:ix,event:e,showValues:iF,showMaturity:is||i_,showMatchKeywords:il,showaudienceSpread:ir,intelLoading:iE,initialIntelScoreData:(null==iN?void 0:null===(r=iN.trackerEventsIntelScore)||void 0===r?void 0:r.find(i=>(null==i?void 0:i.event)===e.basic.id))||null,source:U,isRecommended:eb,totalChecked:eC,showCheckBox:eS,toggleSelection:iL,isAdvanceLocked:iI&&iT-(i+1)<0},e.basic.editionId||e.basic.id):(0,t.jsx)(eI,{interest:iu,toggleSelection:iL,totalChecked:eC,isChecked:eg,setIsChecked:ej,setTotalChecked:eD,showCheckBox:eS,itemsPerPage:iP,isMobile:e6,global:K,trackerId:V,view:io.eventType,setEventId:iv,setInterest:ix,event:e,showValues:iF,showMaturity:is||i_,showMatchKeywords:il,showaudienceSpread:ir,intelError:ik,intelLoading:iE,initialIntelScoreData:(null==iN?void 0:null===(s=iN.trackerEventsIntelScore)||void 0===s?void 0:s.find(i=>(null==i?void 0:i.event)===e.basic.id))||null,source:U,isRecommended:eb,isAdvanceLocked:iI&&iT-(i+1)<0},(null===(a=e.basic)||void 0===a?void 0:a.editionId)||(null===(n=e.basic)||void 0===n?void 0:n.id))})]})}),null==eM&&"detail"!==U&&(0,t.jsx)("div",{className:"".concat("city_page"===B?"none":"sticky"," bottom-0 bg-background py-3"),children:(0,t.jsx)($.Q,{showEntriesCount:ee,nextToken:eq||O,previousToken:eW||F,currentPage:Number(z)||1,totalPages:iO,itemsPerPage:iP,count:A||0,onPageChange:e=>{try{var i,s,t;let e=(0,eu.so)(eu.Rn.LAST_INFO),a=e?JSON.parse(e):null,n=null==a?void 0:null===(i=a.advance)||void 0===i?void 0:i.percentage,r=null!==(t=null==ih?void 0:null===(s=ih.advance)||void 0===s?void 0:s.percentage)&&void 0!==t?t:n,l="number"==typeof r?100-r:void 0,o="true"===(0,eu.so)(eu.Rn.ADV70),d="true"===(0,eu.so)(eu.Rn.ADV90);if((0,ec.VT)(eO)&&"number"==typeof l){let e=l>=90&&!d,i=l>=70&&!o&&!e;if(e||i){try{e?((0,eu.Ob)(eu.Rn.ADV90,"true"),(0,eu.Ob)(eu.Rn.ADV70,"true")):i&&(0,eu.Ob)(eu.Rn.ADV70,"true")}catch(e){}"number"==typeof r&&(null==eF||eF(r));return}}}catch(e){}if("public"===U&&Q){Q(e);return}"string"==typeof e?eG(e):(ii({offset:((e-1)*iP).toString(),limit:iP.toString()}),e$())},onItemsPerPageChange:e=>{ii({limit:e}),e$()}})}),e_&&(0,t.jsx)("div",{className:"h-14 shrink-0"})]})}let eC={organizer:{past:"Organized",future:"Organizing"},sponsor:{past:"Sponsored",future:"Sponsoring"},exhibitor:{past:"Exhibited",future:"Exhibiting"},speaker:{past:"Spoke",future:"Speaking"},attendee:{past:"Attended",future:"Attending"},visitor:{past:"Visited",future:"Visiting"}},eD=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",eT=e=>{let{editions:i,className:s="w-fit -mt-2"}=e,[a,n]=(0,G.useState)(!1),r=(0,G.useMemo)(()=>{let e=new Date;return e.setHours(0,0,0,0),(i||[]).filter(e=>!!(null==e?void 0:e.startDate)).map(i=>{let s=new Date(i.startDate),t=i.endDate?new Date(i.endDate):s;return{...i,start:s,end:t,isUpcoming:t>=e}}).sort((e,i)=>i.start.getTime()-e.start.getTime()||(e.association||"").localeCompare(i.association||""))},[i]);if(!r.length)return null;let l=[...r].reverse().find(e=>e.isUpcoming)||r.find(e=>e.isLatest)||r[0],o=(l.association||"").toLowerCase(),d=r.map(e=>(e.association||"").toLowerCase()).filter((e,i,s)=>e&&s.indexOf(e)===i).join(" \xb7 ")||"tracked",c=new Set(r.map((e,i)=>
1e.editionId||"row-".concat(i))).size,u=eC[o],x=u?l.isUpcoming?u.future:u.past:eD(l.association)||"Tracked",m=r.length>1?"+".concat(r.length-1):"",v="".concat(x," in ").concat((0,_.WU)(l.start,"MMM yyyy")),h=(0,t.jsxs)("span",{className:(0,f.cn)("inline-flex items-center gap-1.5 rounded-tr-md rounded-bl-lg border px-2.5 py-1 text-xs font-medium transition-colors",l.isUpcoming?"border-[var(--tracking-border)] bg-[var(--tracking-surface)] text-[var(--tracking-accent)]":"border-[#F9D7E2] bg-[#FEECF2] text-[#DF2670] dark:border-[#551B33] dark:bg-[#3A1726]"),children:[v,m&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"opacity-50",children:"|"}),(0,t.jsx)("span",{children:m})]}),r.length>1&&(0,t.jsx)(P.Z,{className:"h-3 w-3"})]});return 1===r.length?(0,t.jsx)("div",{className:s,children:h}):(0,t.jsx)("div",{className:s,onClick:e=>{e.preventDefault(),e.stopPropagation()},children:(0,t.jsxs)(V.J2,{open:a,onOpenChange:n,children:[(0,t.jsx)(V.xo,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-label":v,children:h})}),(0,t.jsxs)(V.yk,{align:"start",side:"top",className:"w-[320px] p-0",children:[(0,t.jsxs)("div",{className:"border-b px-3 py-2 text-[10px] font-semibold uppercase tracking-[0.04em] [color:var(--tertiary-text-color)]",children:[d,", ",c," edition",c>1?"s":""]}),(0,t.jsx)("div",{className:"max-h-56 overflow-y-auto py-1",children:r.map((e,i)=>(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 px-3 py-1.5 text-sm",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-baseline gap-1.5",children:[(0,t.jsx)("span",{className:"shrink-0 text-xs font-medium capitalize [color:var(--secondary-text-color)]",children:e.association||"tracked"}),(0,t.jsx)("span",{className:"truncate [color:var(--primary-text-color)]",children:(0,k.$Q)(e.startDate,e.endDate||e.startDate,!1)})]}),e.isUpcoming?(0,t.jsx)("span",{className:"shrink-0 rounded-[20px] border border-[var(--tracking-border)] bg-[var(--tracking-surface)] px-1.5 py-px text-[10px] font-semibold text-[var(--tracking-accent)]",children:"Upcoming"}):e.isLatest?(0,t.jsx)("span",{className:"shrink-0 rounded-[20px] border border-[var(--border-color)] bg-[var(--neutral-light-color)] px-1.5 py-px text-[10px] font-semibold [color:var(--secondary-text-color)]",children:"Latest"}):null]},"".concat(e.editionId||i,"-").concat(e.association||i)))})]})]})})},eI=e=>{var i,s,r,l,o,d,v,h,p,g,j,y,N,w,C,D,P,V,Y,H,$,ei,es,et,ea,er,el,eo,ed,ec,eu,ev,eh,ep,eb,eg,ej,ef,ey,eN,eE,ew,eC,eD,eI,e_,eP,eA,eO,eF,eM,eR,ez,eL,eB,eU,eZ,eV,eK,eJ,eq,eW,eY,eH,eG,e$,eQ,eX,e0,e1,e2,e5,e3,e4,e8,e6,e7,e9,ie,ii,is,it,ia,ir,il,io,id,ic,iu,ix,im,iv,ih,ip,ib,ig,ij,iy,iN,iE,ik,iw,iC,iD;let{interest:iT,toggleSelection:iI,isMobile:iS,global:i_,view:iP,trackerId:iA,setEventId:iO,setInterest:iF,event:iM,showValues:iR,showMatchKeywords:iz,showaudienceSpread:iL,showCheckBox:iB,totalChecked:iU,isChecked:iZ,setIsChecked:iV,setTotalChecked:iK,itemsPerPage:iJ,showMaturity:iq,initialIntelScoreData:iW,intelError:iY,intelLoading:iH,source:iG,isRecommended:i$,latestComment:iQ,showAddNote:iX=!1,isAdvanceLocked:i0}=e,{getFilterValue:i1}=(0,b.S)(),i2=Object.entries(iM.interests||{}).some(e=>{let[i,s]=e;return"bookmark"!==i&&!!s})?"coordinate":"notes",[i5,i3]=(0,G.useState)(!1),i4="public"!==iG&&("tracker"!==iG||!!i$),i8=(null===(i=iM.basic)||void 0===i?void 0:i.eventLocation)?"online"===iM.basic.format?null:(iM.basic.format,(0,I.L)(iM.basic.eventLocation,!0)):null,[i6,i7]=(0,G.useState)((0,ex.O)({eventLogo:iM.basic.logoUrl,companyLogo:null==iM?void 0:null===(r=iM.basic)||void 0===r?void 0:null===(s=r.organizer)||void 0===s?void 0:s.logoUrl,companyDomain:null==iM?void 0:null===(o=iM.basic)||void 0===o?void 0:null===(l=o.organizer)||void 0===l?void 0:l.website,eventDomain:iM.basic.website})),i9=null==i6?void 0:i6.includes("google.com/s2/favicons"),[se,si]=(0,G.useState)(!1),[ss,st]=(0,G.useState)(!1),sa=null==iM?void 0:null===(v=iM.basic)||void 0===v?void 0:null===(d=v.organizer)||void 0===d?void 0:d.logoUrl,sn=()=>{sa&&i6!==sa?i7(sa):si(!0)};(0,G.useEffect)(()=>{if(!i6)return;let e=new window.Image;e.onload=()=>
1{i9&&e.naturalWidth<32?sn():st(!0)},e.onerror=()=>{sn()},e.src=i6},[i6]);let sr=(null===(h=iM.basic.status)||void 0===h?void 0:h.toLowerCase())==="cancelled",sl=(null===(p=iM.basic.status)||void 0===p?void 0:p.toLowerCase())==="postponed",so=iM.basic.endDateTime?new Date(iM.basic.endDateTime):null,sd=iM.basic.startDateTime?new Date(iM.basic.startDateTime):null,sc=!!so&&(()=>{let e=new Date(so);e.setHours(0,0,0,0);let i=new Date;return i.setHours(0,0,0,0),e<i})(),su=!sr&&!sl&&!!sd&&!!so&&(()=>{let e=new Date(sd);e.setHours(0,0,0,0);let i=new Date(so);i.setHours(0,0,0,0);let s=new Date;return s.setHours(0,0,0,0),e<=s&&i>=s})(),sx=iM.basic.eventLocation?"online"===iM.basic.format?(0,t.jsxs)("span",{className:"flex items-center",children:[(0,t.jsx)(A.Z,{className:"w-4 h-4 mr-1"})," Online"]}):"hybrid"===iM.basic.format?(0,t.jsxs)("span",{children:[(0,t.jsx)(A.Z,{className:"w-4 h-4 mr-1 inline-block"}),"Hybrid\xa0-\xa0",(null===(g=iM.basic.eventLocation)||void 0===g?void 0:g.locationType)==="VENUE"?iM.basic.eventLocation.name:"Venue to be announced"]}):(null===(j=iM.basic.eventLocation)||void 0===j?void 0:j.locationType)==="VENUE"?iM.basic.eventLocation.name:"Venue to be announced":"Venue to be announced";function sm(e){if(null==e)return"--";if("0-0"===e||"0"===e||0===e)return"-";let i=String(e),s=i.split("-");return 2===s.length&&s[0]===s[1]?0===Number(s[0])?"-":Number(s[0]).toLocaleString():i.toLocaleString()}function sv(e,i){var s;return"peopleFinderPersonAssociationPercentage"===i?[null==e?void 0:e.peopleFinderPersonAssociationPercentage]:"competitorPercentage"===i||"speakerPersonAssociationPercentage"===i?(null==e?void 0:e[i])===""?"-":[null==e?void 0:e[i]]:null==e?void 0:null===(s=e[i])||void 0===s?void 0:s.map(e=>e.split("_").map(e=>"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1))).join("_"))}if("holiday"==iM.basic.primaryEventType)return(0,t.jsx)(eS,{event:iM});let sh=i1("type"),sp=[{name:"Total",value:(null==iW?void 0:iW.alltrackers_score)||(null==iM?void 0:iM.score)||0,fill:"T_PEOPLE_FINDER"===sh||"T_SPEAKER_OPPORTUINTY"===sh?"#646BDC":"T_PRODUCT_KEYWORDS"===sh?"#E99CD4":"#9B86D4"}],sb=e=>{let{label:i,placeholder:s="Premium"}=e;return(0,t.jsxs)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm gap-1 ",children:[i,": ",(0,t.jsx)(J.G,{children:s})]})};return(0,t.jsx)("div",{className:"flex gap-2 items-start w-full",children:(0,t.jsxs)("div",{className:"bg-background rounded-lg border shadow-sm relative isolate w-full transition-all duration-300 hover:bg-gray-50 dark:hover:bg-[var(--heading-background-color)] hover:shadow-lg hover:scale-[1.01] cursor-pointer ".concat("global"===i_&&"ml-5"," ").concat(iU.includes(iM.basic.id)?"ring-1 ring-primary border-primary":""),children:[(0,t.jsxs)("div",{className:"flex items-start gap-2 p-3",children:[!!(iB&&iI)&&(0,t.jsx)("div",{className:"w-4 shrink-0 pt-0.5",children:(0,t.jsx)(X.X,{className:"border-[var(--tertiary-text-color)] data-[state=checked]:border-primary",checked:iU.includes(iM.basic.id),onCheckedChange:()=>iI(iM.basic.id,iM)})}),(0,t.jsxs)(W.default,{target:"_blank",href:"/internal/event/".concat(iM.basic.id),className:"block min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-start gap-2 md:gap-3",children:[(0,t.jsx)("div",{className:"shrink-0",children:i6&&ss&&!se?(0,t.jsx)("img",{src:i6,alt:"logo",loading:"lazy",className:"w-16 h-16 md:w-24 md:h-24 object-contain rounded-xl shadow-lg border border-[#EBEBEB] dark:border-[#222] bg-[var(--logo-background)]"}):(0,t.jsx)("div",{className:"w-16 h-16 md:w-24 md:h-24 rounded-md bg-[#5055A3]/10 border border-[#5055A3]/20 shadow-sm flex items-center justify-center",children:(0,t.jsx)("span",{className:"text-[#5055A3] text-lg font-semibold",children:(null===(N=iM.basic.name)||void 0===N?void 0:null===(y=N.charAt(0))||void 0===y?void 0:y.toUpperCase())||"E"})})}),(0,t.jsx)("div",{className:"min-w-0 flex-1",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-3",children:[(0,t.jsxs)("div",{className:"col-span-1 md:col-span-7 flex flex-col gap-1.5",children:[(0,t.jsxs)("div",{className:"flex justify-between items-start",children:[(0,t.jsx)("h3",{className:"text-base md:text-lg font-semibold ",children:iM.basic.name}),iS&&"public"!==iG&&"detail"!==iG&&(0,t.jsxs)("div",{className:"flex items-center gap-1 [&_button]:h-7 [&_button]:w-7",onClick:e=>e.preventDefault(),children:[(0,t.jsx)(a.k,{eventId:iM.basic.id,interests:iM.interests,trackerId:iA,setInterest:iF,setEventId:iO,view:iP}),i4&&(0,t.jsx)(n.ZP,{source:i$?"RECOMMEND_EVENT":void 0,subType:"T_EVENT_PARTICIPATION",label:iM.basic.name,target:{eventId:iM.basic.id,categories:iM.basic.categories,countryId:(0,em.Iy)(iM.basic.eventLocation)}}),"global"!==i_&&(0,t.jsx)(Q.z,{variant:"ghost",size:"icon","aria-label":"Notes",onClick:e=>{e.preventDefault(),e.stopPropagation(),window.open("/internal/event/".concat(iM.basic.id,"?view=").concat(i2),"_blank")},children:(0,t.jsx)(M.Z,{className:"w-5 h-5 text-primary"})})]})]}),(0,t.jsxs)("div",{className:"space-y-1",children:[(sx||i8)&&(0,t.jsxs)("div",{className:"flex items-start gap-1 text-sm capitalize [color:var(--secondary-text-color)]",children:["online"!==iM.basic.format&&(0,t.jsx)(F.Z,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0"}),(0,t.jsxs)("div",{children:[sx&&!("Venue to be announced"===sx&&sc)&&(0,t.jsx)("div",{children:sx}),i8&&(0,t.jsx)("div",{className:"opacity-75",children:i8})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,t.jsx)(O.Z,{className:"w-3.5 h-3.5 flex-shrink-0 [color:var(--secondary-text-color)]"}),(0,t.jsx)("p",{className:(0,f.cn)("text-sm [color:var(--secondary-text-color)]",sr||sl?"line-through":""),children:(0,k.$Q)(iM.basic.startDateTime,iM.basic.endDateTime)}),sr&&(0,t.jsx)("span",{className:"text-xs text-red-600 font-medium",children:"Cancelled"}),sl&&(0,t.jsx)("span",{className:"text-xs text-red-600 font-medium",children:"Postponed"}),su&&(0,t.jsxs)("span",{className:"text-xs text-green-600 font-medium flex items-center gap-1",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-green-500 animate-pulse"}),"Live"]}),!sr&&!sl&&sc&&(0,t.jsx)("span",{className:"text-xs text-red-600 font-medium",children:"Ended"})]}),!iS&&iR.includes(E.di.forecasted)&&(0,t.jsx)(t.Fragment,{children:function(e,i){let s=new Date;if(i&&(null==e?void 0:e.currentEditionStartDate)){let i=new Date(e.currentEditionStartDate);if(i>s)return(0,t.jsxs)("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md bg-[var(--primary-light-color)] text-xs w-fit text-primary",children:[(0,t.jsx)(O.Z,{className:"w-3 h-3 flex-shrink-0"}),(0,t.jsx)("span",{children:"Next Edition:"}),(0,t.jsx)("span",{className:"font-semibold",children:(0,_.WU)(i,"MMM yyyy")})]})}let a=(null==e?void 0:e.futureExpectedStartDate)||(null==e?void 0:e.rehostDate);if(a&&""!==a){let e=new Date(a);if(e>s)return(0,t.jsxs)("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md bg-[var(--primary-light-color)] text-xs w-fit text-primary",children:[(0,t.jsx)(O.Z,{className:"w-3 h-3 flex-shrink-0"}),(0,t.jsx)("span",{children:"Next Expected Edition:"}),(0,t.jsx)("span",{className:"font-semibold",children:(0,_.WU)(e,"MMM yyyy")})]})}return sc&&"hybrid"===iM.basic.format?(0,t.jsxs)("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md bg-[var(--primary-light-color)] text-xs w-fit text-primary",children:[(0,t.jsx)(F.Z,{className:"w-3 h-3 flex-shrink-0"}),(0,t.jsx)("span",{className:"font-semibold",children:"Venue to be announced"})]}):(0,t.jsx)(t.Fragment,{})}(iM.advance,(null===(w=iM.basic)||void 0===w?void 0:w.isCurrent)===!1)}),(null===(C=iM.basic.organizer)||void 0===C?void 0:C.prospectId)?(0,t.jsx)("div",{onClick:e=>e.stopPropagation(),children:(0,t.jsxs)("div",{onClick:e=>{var i,s;e.stopPropagation(),window.open("/internal/company/".concat(null==iM?void 0:null===(s=iM.basic)||void 0===s?void 0:null===(i=s.organizer)||void 0===i?void 0:i.prospectId),"_blank")},className:"flex items-center gap-1 text-sm capitalize text-[var(--secondary-text-color)] cursor-pointer hover:underline w-fit",title:null===(D=iM.basic.organizer)||void 0===D?void 0:D.name,children:[(0,t.jsx)(R.Z,{className:"w-3.5 h-3.5 flex-shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:null===(P=iM.basic.organizer)||void 0===P?void 0:P.name})]})}):(null===(V=iM.basic.organizer)||void 0===V?void 0:V.name)?(0,t.jsxs)("div",{className:"flex items-center gap-1 text-sm capitalize [color:var(--secondary-text-color)]",children:[(0,t.jsx)(R.Z,{className:"w-3.5 h-3.5 flex-shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:null===(Y=iM.basic.organizer)||void 0===Y?void 0:Y.name})]}):null]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-1.5 pt-1.5 border-t border-border/40 empty:hidden",children:[(null==iM?void 0:null===($=iM.basic)||void 0===$?void 0:null===(H=$.eventTypes)||void 0===H?void 0:H.length)>0&&iM.basic.eventTypes.map(e=>
1(0,t.jsx)(ee.pn,{children:(0,t.jsxs)(ee.u,{delayDuration:0,children:[(0,t.jsx)(ee.aJ,{children:(0,t.jsxs)(c.C,{variant:"secondary",className:"flex items-center gap-2 py-0.5 px-2.5 bg-pink-100 text-pink-800 hover:bg-pink-100 uppercase rounded-sm",style:{color:m.kl[e.slug||""],backgroundColor:(0,f.t)(m.kl[e.slug||""],.9)},children:[(0,t.jsx)("span",{children:m.kM[e.slug||"festivals"]}),(0,t.jsx)("span",{className:"capitalize",children:e.name.toLowerCase()})]})}),(0,t.jsx)(ee._v,{className:"bg-gray-800 text-gray-100 text-xs px-2 rounded-md shadow-md border border-gray-700",children:(0,t.jsx)("p",{children:"Event Type"})})]})},e.id)),!(u.SB&&x.Mv.social.includes(iM.basic.primaryEventType))&&(null===(ei=iM.basic.categories)||void 0===ei?void 0:ei.map((e,i)=>(0,t.jsx)(ee.pn,{children:(0,t.jsxs)(ee.u,{delayDuration:0,children:[(0,t.jsx)(ee.aJ,{children:(0,t.jsx)(c.C,{variant:"outline",className:"whitespace-nowrap text-[#A35200] dark:border-[#0D3868] bg-[#FFF6E6] h-fit font-semibold text-xs py-0.5 px-2.5 border-[#FEF0CD] border rounded-md w-fit",children:e.name})}),(0,t.jsx)(ee._v,{className:"bg-gray-800 text-gray-100 text-xs px-2 rounded-md shadow-md border border-gray-700",children:(0,t.jsx)("p",{children:"Category"})})]})},i))),iR.includes(E.di.rating)&&iM.basic.rating&&iM.basic.rating>0?(0,t.jsx)(ee.pn,{children:(0,t.jsxs)(ee.u,{delayDuration:0,children:[(0,t.jsx)(ee.aJ,{children:(0,t.jsxs)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm",children:[(0,t.jsx)(z.Z,{className:"w-3 h-3 mr-1",fill:"#6F48AD"}),(0,t.jsx)("span",{children:iM.basic.rating}),(0,t.jsxs)("span",{className:"ml-0.5",children:[(null===(es=iM.insights)||void 0===es?void 0:es.reputationChangePercentage)!==void 0&&(null===(et=iM.insights)||void 0===et?void 0:et.reputationChangePercentage)>10&&(0,t.jsx)("span",{className:"text-green-500",children:(0,t.jsx)(L.Z,{className:"w-4 h-4 inline"})}),(null===(ea=iM.insights)||void 0===ea?void 0:ea.reputationChangePercentage)!==void 0&&(null===(er=iM.insights)||void 0===er?void 0:er.reputationChangePercentage)<-10&&(0,t.jsx)("span",{className:"text-red-500",children:(0,t.jsx)(B.Z,{className:"w-4 h-4 inline"})})]})]})}),(0,t.jsx)(ee._v,{className:"bg-gray-800 text-gray-100 text-xs px-2 rounded-md shadow-md border border-gray-700",children:(0,t.jsx)("p",{children:"Rating"})})]})}):"","detail"===iG&&Array.from(new Set((null!==(iC=null==iM?void 0:null===(el=iM.trackerMatchInfo)||void 0===el?void 0:el.competitorDomainOrName)&&void 0!==iC?iC:[]).map(e=>e.split("_")[0]))).map(e=>(0,t.jsx)("div",{className:"inline-flex items-center rounded-sm border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent bg-secondary hover:bg-secondary/80 text-primary w-fit capitalize",children:e},e)),iR.includes(E.di.entryType)&&"free_and_paid"==iM.basic.entryType?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(ee.pn,{children:(0,t.jsxs)(ee.u,{delayDuration:0,children:[(0,t.jsx)(ee.aJ,{children:(0,t.jsxs)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm",children:[(0,t.jsx)(U.Z,{className:"w-3 h-3 mr-1"}),(0,t.jsx)("span",{children:"Free"})]})}),(0,t.jsx)(ee._v,{className:"bg-gray-800 text-gray-100 text-xs px-2 rounded-md shadow-md border border-gray-700",children:(0,t.jsx)("p",{children:"Entry Type"})})]})}),(0,t.jsx)(ee.pn,{children:(0,t.jsxs)(ee.u,{delayDuration:0,children:[(0,t.jsx)(ee.aJ,{children:(0,t.jsxs)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm",children:[(0,t.jsx)(U.Z,{className:"w-3 h-3 mr-1"}),(0,t.jsx)("span",{children:"Paid"})]})}),(0,t.jsx)(ee._v,{className:"bg-gray-800 text-gray-100 text-xs px-2 rounded-md shadow-md border border-gray-700",children:(0,t.jsx)("p",{children:"Entry Type"})})]})})]}):"paid"==iM.basic.entryType?(0,t.jsx)(ee.pn,{children:(0,t.jsxs)(ee.u,{delayDuration:0,children:[(0,t.jsx)(ee.aJ,{children:(0,t.jsxs)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#
1EDDCF9] bg-white capitalize rounded-sm",children:[(0,t.jsx)(U.Z,{className:"w-3 h-3 mr-1"}),(0,t.jsx)("span",{children:"Paid"})]})}),(0,t.jsx)(ee._v,{className:"bg-gray-800 text-gray-100 text-xs px-2 rounded-md shadow-md border border-gray-700",children:(0,t.jsx)("p",{children:"Entry Type"})})]})}):""]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-1.5 mt-1.5",children:[iq&&(i0?(0,t.jsx)(sb,{label:"Maturity",placeholder:"Mature"}):(null===(eo=iM.advance)||void 0===eo?void 0:eo.maturity)&&(0,t.jsx)(ee.pn,{children:(0,t.jsxs)(ee.u,{delayDuration:0,children:[(0,t.jsx)(ee.aJ,{children:(0,t.jsx)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm",children:null===(ed=iM.advance)||void 0===ed?void 0:ed.maturity})}),(0,t.jsx)(ee._v,{className:"bg-gray-800 text-gray-100 text-xs px-2 rounded-md shadow-md border border-gray-700",children:(0,t.jsx)("p",{children:"Maturity"})})]})})),iR.includes(E.di.frequency)&&(i0?(0,t.jsx)(sb,{label:"Frequency",placeholder:"Annual"}):(null===(ec=iM.advance)||void 0===ec?void 0:ec.frequency)&&(0,t.jsx)(ee.pn,{children:(0,t.jsxs)(ee.u,{delayDuration:0,children:[(0,t.jsx)(ee.aJ,{children:(0,t.jsx)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm",children:null===(eu=iM.advance)||void 0===eu?void 0:eu.frequency})}),(0,t.jsx)(ee._v,{className:"bg-gray-800 text-gray-100 text-xs px-2 rounded-md shadow-md border border-gray-700",children:(0,t.jsx)("p",{children:"Frequency"})})]})})),iR.includes(E.di.branded)&&(null===(ev=iM.advance)||void 0===ev?void 0:ev.isBranded)&&(0,t.jsx)(ee.pn,{children:(0,t.jsxs)(ee.u,{delayDuration:0,children:[(0,t.jsx)(ee.aJ,{children:(0,t.jsx)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm",children:"Branded"})}),(0,t.jsx)(ee._v,{className:"bg-gray-800 text-gray-100 text-xs px-2 rounded-md shadow-md border border-gray-700",children:(0,t.jsx)("p",{children:"Brand"})})]})}),iR.includes(E.di.series)&&(null===(eh=iM.advance)||void 0===eh?void 0:eh.isSeries)&&(0,t.jsx)(ee.pn,{children:(0,t.jsxs)(ee.u,{delayDuration:0,children:[(0,t.jsx)(ee.aJ,{children:(0,t.jsx)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm",children:"Series"})}),(0,t.jsx)(ee._v,{className:"bg-gray-800 text-gray-100 text-xs px-2 rounded-md shadow-md border border-gray-700",children:(0,t.jsx)("p",{children:"Brand"})})]})}),iR.includes(E.di.rankings)&&(i0?(0,t.jsx)(sb,{label:"Event Ranking",placeholder:"12th Global"}):(null===(ep=iM.insights)||void 0===ep?void 0:ep.rankings)&&(0,t.jsx)(ee.pn,{children:(0,t.jsxs)(ee.u,{delayDuration:0,children:[(0,t.jsx)(ee.aJ,{children:(0,t.jsxs)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm",children:[(null===(eb=iM.insights)||void 0===eb?void 0:eb.rankings).rank,(0,t.jsx)("sup",{className:"mr-1",children:function(e){let i=e%10,s=e%100;return 1===i&&11!==s?"st":2===i&&12!==s?"nd":3===i&&13!==s?"rd":"th"}((null===(eg=iM.insights)||void 0===eg?void 0:eg.rankings).rank)}),(null===(ej=iM.insights)||void 0===ej?void 0:ej.rankings).rankType," ","Rank"]})}),(0,t.jsx)(ee._v,{className:"bg-gray-800 text-gray-100 text-xs px-2 rounded-md shadow-md border border-gray-700",children:(0,t.jsx)("p",{children:"Event Ranking"})})]})})),!iS&&iR.includes(E.di.audienceZone)&&(i0?(0,t.jsx)(sb,{label:"Audience Zone",placeholder:"Regional"}):(null===(ef=iM.audience)||void 0===ef?void 0:ef.audienceZone)&&(0,t.jsx)(ee.pn,{children:(0,t.jsxs)(ee.u,{delayDuration:0,children:[(0,t.jsx)(ee.aJ,{children:(0,t.jsxs)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm",children:[iM.audience.audienceZone," Audience"]})}),(0,t.jsx)(ee._v,{className:"bg-gray-800 text-gray-100 text-xs px-2 rounded-md shadow-md border border-gray-700",children:(0,t.jsx)("p",{children:"Audience Zone"})})]})})),iR.includes(E.di.rankings)&&(i0?(0,t.jsx)(sb,{label:"Trust Score",placeholder:"85"}):(null===(ey=iM.insights)||void 0===ey?void 0:ey.trustScore)&&(null===(eN=iM.insights)||void 0===eN?void 0:eN.trustScore)>
10?(0,t.jsx)(ee.pn,{children:(0,t.jsxs)(ee.u,{delayDuration:0,children:[(0,t.jsx)(ee.aJ,{children:(0,t.jsxs)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm",children:["Trust Score: ",null===(eE=iM.insights)||void 0===eE?void 0:eE.trustScore]})}),(0,t.jsx)(ee._v,{className:"bg-gray-800 text-gray-100 text-xs px-2 rounded-md shadow-md border border-gray-700",children:(0,t.jsx)("p",{children:"Trust Score"})})]})}):""),iR.includes(E.di.rating)&&(null===(ew=iM.insights)||void 0===ew?void 0:ew.reputationScore)&&(0,t.jsx)(ee.pn,{children:(0,t.jsxs)(ee.u,{delayDuration:0,children:[(0,t.jsx)(ee.aJ,{children:(0,t.jsxs)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm",children:["Reputation Score :"," ",null===(eC=iM.insights)||void 0===eC?void 0:eC.reputationScore]})}),(0,t.jsx)(ee._v,{className:"bg-gray-800 text-gray-100 text-xs px-2 rounded-md shadow-md border border-gray-700",children:(0,t.jsx)("p",{children:"Reputation Score"})})]})}),iz&&(0,t.jsx)(ee.pn,{children:(0,t.jsxs)(ee.u,{delayDuration:0,children:[(0,t.jsx)(ee.aJ,{children:(0,t.jsxs)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm",children:["Match Keyword :"," ",null===(eD=iM.basic.matchedKeywords)||void 0===eD?void 0:eD.join(" | ")]})}),(0,t.jsx)(ee._v,{className:"bg-gray-800 text-gray-100 text-xs px-2 rounded-md shadow-md border border-gray-700",children:(0,t.jsx)("p",{children:"Matched Keywords"})})]})}),iz&&(0,t.jsx)(ee.pn,{children:(0,t.jsxs)(ee.u,{delayDuration:0,children:[(0,t.jsx)(ee.aJ,{children:(0,t.jsx)(c.C,{variant:"outline",className:(0,f.cn)("flex items-center gap-2 [color:var(--secondary-text-color)] capitalize rounded-sm",null===(iD=iM.basic.matchedKeywordsPercentage)?"text-gray-500":iD>20?"text-green-500 bg-[var(--success-background-color)] ":iD>=10&&iD<=20?"text-blue-500 bg-[#eeeaf9]":iD>0&&iD<10?"text-red-500 bg-[var(--danger-background-color)]":"text-gray-500"),children:(()=>{var e;let i=null!==(e=iM.basic.matchedKeywordsPercentage)&&void 0!==e?e:null;return null===i?"-":i>20?(0,t.jsx)("span",{children:"High"}):i>=10&&i<=20?(0,t.jsx)("span",{children:"Medium"}):i>0&&i<10?(0,t.jsx)("span",{children:"Low"}):"-"})()})}),(0,t.jsx)(ee._v,{className:"bg-gray-800 text-gray-100 text-xs px-2 rounded-md shadow-md border border-gray-700",children:(0,t.jsx)("p",{children:"Score"})})]})}),iL&&(i0?(0,t.jsx)(sb,{label:"Audience Country",placeholder:"US GB DE"}):(null===(eI=iM.audience)||void 0===eI?void 0:eI.audienceSpread)&&(0,t.jsx)(ee.pn,{children:(0,t.jsxs)(ee.u,{delayDuration:0,children:[(0,t.jsx)(ee.aJ,{children:(0,t.jsx)(c.C,{variant:"secondary",className:"text-[#8E4EC6] border-[#EDDCF9] bg-white capitalize rounded-sm",children:(0,t.jsx)("div",{className:"flex gap-1",children:Object.entries(iM.audience.audienceSpread).slice(0,5).map(e=>{let[i,{iso:s,name:a}]=e,n=S["UK"===s?"GB":s];return n?(0,t.jsx)("span",{className:"inline-block rounded overflow-hidden",title:a,children:(0,t.jsx)(n,{className:"w-4 h-3 border"})},i):null})})})}),(0,t.jsx)(ee._v,{className:"bg-gray-800 text-gray-100 text-xs px-2 rounded-md shadow-md border border-gray-700",children:(0,t.jsx)("p",{children:"Audience Country"})})]})}))]})]})]}),(0,t.jsxs)("div",{className:"col-span-1 md:col-span-5 flex flex-col gap-1.5 justify-between md:min-h-[100px]",children:[u.SB&&iM.alerts&&(null===(e_=iM.alerts)||void 0===e_?void 0:e_.length)>0&&(0,t.jsx)("div",{className:"flex items-center justify-end gap-2",children:null===(eP=iM.alerts)||void 0===eP?void 0:eP.map(e=>(0,t.jsxs)(c.C,{variant:"outline",className:(0,f.cn)("capitalize text-sm border-2",(0,m.RH)(e.level)),children:[(0,t.jsx)("span",{children:m.gJ[e.type]}),(0,t.jsx)("span",{className:"ml-1 font-medium",children:e.name.toLowerCase()})]},e.id))}),(0,t.jsxs)("div",{className:"flex items-start justify-between flex-col-reverse md:justify-end h-full",children:[iA&&iA.length>0&&"public"!==iG&&!iS&&(0,t.jsxs)("div",{className:"flex items-end justify-end w-full mt-auto",children:["T_PRODUCT_KEYWORDS"===sh||"T_AUDIENCE_DEPT_PROFILE"===sh?("T_AUDIENCE_DEPT_PROFILE"===sh?((null==iM?void 0:null===(eO=iM.basic)||void 0===eO?void 0:null===(eA=eO.matchedKeywords)||void 0===eA?void 0:eA.length)||0)>=1:(null==iM?void 0:null===(eM=iM.basic)||void 0===eM?void 0:null===(eF=eM.matchedKeywords)||void 0===eF?void 0:eF.length)===1)&&(0,t.jsx)(ee.pn,{children:(0,t.jsxs)(ee.u,{children:[(0,t.jsx)(ee.aJ,{asChild:!0,children:(0,t.jsx)("div",{className:"border text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent flex items-center gap-2 py-0.5 px-2.5 bg-pink-100 text-pink-800 hover:bg-pink-100 uppercase rounded-sm",style:{color:"rgb(80, 85, 163)",backgroundColor:"rgb(238, 238, 246)"},children:"Matched"})}),(0,t.jsx)(ee._v,{className:"max-w-sm bg-gray-800 text-gray-100",children:null===(eR=iM.basic.matchedKeywords)||void 0===eR?void 0:eR.join(" | ")})]})}):(null===(ez=sv(iM.trackerMatchInfo,"T_COMPETITOR"===sh||"T_CUSTOMER_ICP"===sh?"competitorDomainOrName":"T_PEOPLE_FINDER"===sh?"peopleFinderPersonAssociation":"speakerPersonAssociation"))||void 0===ez?void 0:ez.length)===1&&(0,t.jsx)(ee.pn,{children:(0,t.jsxs)(ee.u,{children:[(0,t.jsx)(ee.aJ,{asChild:!0,children:(0,t.jsx)("div",{className:"border text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent flex items-center gap-2 py-0.5 px-2.5 bg-pink-100 text-pink-800 hover:bg-pink-100 uppercase rounded-sm",style:{color:"rgb(80, 85, 163)",backgroundColor:"rgb(238, 238, 246)"},children:"Matched"})}),(0,t.jsx)(ee._v,{className:"max-w-sm bg-gray-800 text-gray-100",children:"T_COMPETITOR"===sh||"T_CUSTOMER_ICP"===sh?null===(eL=sv(iM.trackerMatchInfo,"competitorDomainOrName"))||void 0===eL?void 0:eL.map((e,i)=>(0,t.jsxs)("div",{children:[e.split("_")[1].toLowerCase()," (",e.split("_")[0],")"]}
1,i)):"T_PEOPLE_FINDER"===sh?sv(iM.trackerMatchInfo,"peopleFinderPersonAssociation").map((e,i)=>{let s=e.split("_");return(0,t.jsx)("div",{children:s.join(" ")},i)}):"T_SPEAKER_OPPORTUINTY"===sh?sv(iM.trackerMatchInfo,"speakerPersonAssociation").map((e,i)=>{let s=e.split("_");return(0,t.jsx)("div",{children:s.join(" ")},i)}):"null"})]})}),iH?(null===(eK=sv(iM.trackerMatchInfo,"T_COMPETITOR"===sh||"T_CUSTOMER_ICP"===sh?"competitorDomainOrName":"T_PEOPLE_FINDER"===sh?"peopleFinderPersonAssociation":"speakerPersonAssociation"))||void 0===eK?void 0:eK.length)>1||"T_PRODUCT_KEYWORDS"===sh&&((null==iM?void 0:null===(eq=iM.basic)||void 0===eq?void 0:null===(eJ=eq.matchedKeywords)||void 0===eJ?void 0:eJ.length)||0)>1?(0,t.jsx)(en.O,{className:"h-[132px] w-[98px] rounded-md"}):(0,t.jsx)("div",{}):(null==iY?void 0:iY.statusCode)===202&&((null===(eB=sv(iM.trackerMatchInfo,"T_COMPETITOR"===sh||"T_CUSTOMER_ICP"===sh?"competitorDomainOrName":"T_PEOPLE_FINDER"===sh?"peopleFinderPersonAssociation":"speakerPersonAssociation"))||void 0===eB?void 0:eB.length)>1||"T_PRODUCT_KEYWORDS"===sh&&((null==iM?void 0:null===(eZ=iM.basic)||void 0===eZ?void 0:null===(eU=eZ.matchedKeywords)||void 0===eU?void 0:eU.length)||0)>1)?(0,t.jsx)(ee.pn,{children:(0,t.jsxs)(ee.u,{children:[(0,t.jsx)(ee.aJ,{asChild:!0,children:(0,t.jsxs)("div",{className:"flex flex-col justify-center items-center text-[10px] cursor-default",children:[(0,t.jsx)("span",{className:"text-[var(--secondary-text-color)]",children:"Calculating"}),(0,t.jsx)("div",{className:"border text-[10px] p-1 font-semibold transition-colors border-transparent bg-secondary hover:bg-secondary/80 flex items-center gap-2 rounded-sm text-[rgb(80,85,163)] bg-[rgb(238,238,246)] text-center",children:"Relevance Score"})]})}),(0,t.jsx)(ee._v,{side:"top",className:"bg-gray-800 text-gray-100 text-xs px-2 rounded-md shadow-md border border-gray-700",children:"might take a minute"})]})}):(null==sp?void 0:null===(eV=sp[0])||void 0===eV?void 0:eV.value)>0&&(0,t.jsx)("div",{className:"space-y-4",children:(0,t.jsxs)("div",{className:"grid grid-rows-1 gap-2 md:border bg:transparent md:bg-[var(--background-secondary-color)] rounded-[4px] p-2 place-items-center",children:[(0,t.jsx)(q.Z,{view:"list",width:"80px",height:"70px",intelScore:sp,data:"T_PRODUCT_KEYWORDS"===sh?iM.basic.matchedKeywords:sv(iM.trackerMatchInfo,"T_COMPETITOR"===sh||"T_CUSTOMER_ICP"===sh?"competitorDomainOrName":"T_PEOPLE_FINDER"===sh?"peopleFinderPersonAssociation":"T_SPEAKING_OPPORTUNITY"===sh?"speakerPersonAssociation":"")}),(0,t.jsx)("div",{className:"text-primary border px-2.5 py-0.5 font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent bg-secondary hover:bg-secondary/80 flex items-center gap-2 rounded-sm",style:{fontSize:"10px"},children:"Relevance"})]})})]}),iR.includes(E.di.scores)&&(null===(eW=iM.insights)||void 0===eW?void 0:eW.scores)&&((null===(eY=iM.insights)||void 0===eY?void 0:eY.scores.inboundScore)!==null||(null===(eH=iM.insights)||void 0===eH?void 0:eH.scores.internationalScore)!==null)?(0,t.jsxs)("div",{className:"flex justify-end gap-6 w-full",children:[iS&&"detail"===iG&&!!(null==iM?void 0:null===(e$=iM.trackerMatchInfo)||void 0===e$?void 0:null===(eG=e$.qualifyingEditions)||void 0===eG?void 0:eG.length)&&(0,t.jsx)(eT,{editions:iM.trackerMatchInfo.qualifyingEditions,className:"w-fit mr-auto self-end"}),(0,t.jsxs)("div",{className:"hidden md:flex flex-col gap-2",children:[iR.includes(E.di.estimatedExhibitors)&&(null===(eQ=iM.insights)||void 0===eQ?void 0:eQ.estimatedExhibitors)!==void 0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs md:text-sm [color:var(--secondary-text-color)] font-medium",children:"Estimated Exhibitors"}),(0,t.jsx)("p",{className:"text-base md:text-lg font-semibold text-primary",children:(null===(eX=iM.insights)||void 0===eX?void 0:eX.estimatedExhibitors)&&(null===(e0=iM.insights)||void 0===e0?void 0:e0.estimatedExhibitors)!="0"?sm(null===(e1=iM.insights)||void 0===e1?void 0:e1.estimatedExhibitors):"-"})]}),(null===(e2=iM.basic)||void 0===e2?void 0:e2.estimatedAttendance)!==void 0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs md:text-sm [color:var(--secondary-text-color)] font-medium",children:"Estimated Visitors"}),(0,t.jsx)("p",{className:"text-base md:text-lg font-semibold text-primary",children:(null===(e5=iM.basic)||void 0===e5?void 0:e5.estimatedAttendance)&&(null===(e3=iM.basic)||void 0===e3?void 0:e3.estimatedAttendance)!="0"?null===(e4=iM.basic)||void 0===e4?void 0:e4.estimatedAttendance:"-"})]}),u.SB&&iR.includes(E.di.economicImpact)&&(null===(e8=iM.insights)||void 0===e8?void 0:e8.economicImpact)!==void 0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs md:text-sm [color:var(--secondary-text-color)] font-medium",children:"Economic Impact"}),(0,t.jsx)("p",{className:"text-base md:text-lg font-semibold text-primary",children:(null===(e6=iM.insights)||void 0===e6?void 0:e6.economicImpact)&&(null===(e7=iM.insights)||void 0===e7?void 0:e7.economicImpact)!="$0"&&(null===(e9=iM.insights)||void 0===e9?void 0:e9.economicImpact)!="0"?(0,T.Bk)(null===(ie=iM.insights)||void 0===ie?void 0:ie.economicImpact):"-"})]})]}),(0,t.jsx)("div",{className:"hidden md:block space-y-4",children:u.SB&&iR.includes(E.di.scores)&&(null===(ii=iM.insights)||void 0===ii?void 0:ii.scores)&&(0,t.jsxs)("div",{className:"grid grid-rows-2 gap-2 border border-[#
1EBEBEB] dark:border-[#222222] bg-[#FAFAFA] dark:bg-[#18181b] p-2 rounded",children:[(0,t.jsx)(ek,{value:null===(is=iM.insights)||void 0===is?void 0:is.scores.inboundScore,label:"Inbound"}),(0,t.jsx)(ek,{value:null===(it=iM.insights)||void 0===it?void 0:it.scores.internationalScore,label:"International"})]})}),(!iS||"detail"===iG)&&"public"!==iG&&(0,t.jsxs)("div",{className:"flex flex-row md:flex-col items-end gap-1 [&_button]:h-7 [&_button]:w-7",onClick:e=>e.preventDefault(),children:[(0,t.jsx)(a.k,{tooltipSide:"left",eventId:iM.basic.id,interests:iM.interests,trackerId:iA,setInterest:iF,setEventId:iO}),i4&&(0,t.jsx)(n.ZP,{source:i$?"RECOMMEND_EVENT":void 0,subType:"T_EVENT_PARTICIPATION",label:iM.basic.name,target:{eventId:iM.basic.id,categories:iM.basic.categories,countryId:(0,em.Iy)(iM.basic.eventLocation)}}),"global"!==i_&&(0,t.jsx)(ee.pn,{children:(0,t.jsxs)(ee.u,{delayDuration:0,children:[(0,t.jsx)(ee.aJ,{asChild:!0,children:(0,t.jsx)(Q.z,{variant:"ghost",size:"icon","aria-label":"Notes",onClick:e=>{e.preventDefault(),e.stopPropagation(),window.open("/internal/event/".concat(iM.basic.id,"?view=").concat(i2),"_blank")},children:(0,t.jsx)(M.Z,{className:"w-5 h-5 text-primary"})})}),(0,t.jsx)(ee._v,{side:"left",children:"Notes"})]})})]})]}):(0,t.jsxs)("div",{className:"flex justify-start md:justify-end w-full gap-6",children:[iS&&"detail"===iG&&!!(null==iM?void 0:null===(ir=iM.trackerMatchInfo)||void 0===ir?void 0:null===(ia=ir.qualifyingEditions)||void 0===ia?void 0:ia.length)&&(0,t.jsx)(eT,{editions:iM.trackerMatchInfo.qualifyingEditions,className:"w-fit mr-auto self-end"}),(0,t.jsxs)("div",{className:"hidden md:grid grid-row-2 gap-2",children:[(null===(il=iM.basic)||void 0===il?void 0:il.estimatedAttendance)!==void 0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs md:text-sm [color:var(--secondary-text-color)] font-medium",children:"Estimated Visitors"}),(0,t.jsx)("p",{className:"text-base md:text-lg font-semibold text-primary",children:(null===(io=iM.basic)||void 0===io?void 0:io.estimatedAttendance)&&(null===(id=iM.basic)||void 0===id?void 0:id.estimatedAttendance)!="0"?null===(ic=iM.basic)||void 0===ic?void 0:ic.estimatedAttendance:"-"})]}),iR.includes(E.di.estimatedExhibitors)&&(i0?(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs md:text-sm [color:var(--secondary-text-color)] font-medium",children:"Estimated Exhibitors"}),(0,t.jsx)(J.G,{className:"text-base md:text-lg font-semibold text-primary",children:"1,250"})]}):(null===(iu=iM.insights)||void 0===iu?void 0:iu.estimatedExhibitors)!==void 0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs md:text-sm [color:var(--secondary-text-color)] font-medium",children:"Estimated Exhibitors"}),(0,t.jsx)("p",{className:"text-base md:text-lg font-semibold text-primary",children:(null===(ix=iM.insights)||void 0===ix?void 0:ix.estimatedExhibitors)&&(null===(im=iM.insights)||void 0===im?void 0:im.estimatedExhibitors)!="0"?sm(null===(iv=iM.insights)||void 0===iv?void 0:iv.estimatedExhibitors):"-"})]})),u.SB&&iR.includes(E.di.economicImpact)&&(i0?(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs md:text-sm [color:var(--secondary-text-color)] font-medium",children:"Economic Impact"}),(0,t.jsx)(J.G,{className:"text-base md:text-lg font-semibold text-primary",children:"$1.2M"})]}):(null===(ih=iM.insights)||void 0===ih?void 0:ih.economicImpact)!==void 0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs md:text-sm [color:var(--secondary-text-color)] font-medium",children:"Economic Impact"}),(0,t.jsx)("p",{className:"text-base md:text-lg font-semibold text-primary",children:(null===(ip=iM.insights)||void 0===ip?void 0:ip.economicImpact)&&(null===(ib=iM.insights)||void 0===ib?void 0:ib.economicImpact)!="$0"&&(null===(ig=iM.insights)||void 0===ig?void 0:ig.economicImpact)!="0"?(0,T.Bk)(null===(ij=iM.insights)||void 0===ij?void 0:ij.economicImpact):"-"})]}))]}),u.SB&&iR.includes(E.di.scores)&&i0&&(0,t.jsxs)("div",{className:"grid grid-rows-2 gap-2 border border-[#EBEBEB] dark:border-[#222222] bg-[#FAFAFA] dark:bg-[#18181b] p-2 rounded",children:[(0,t.jsx)(ek,{value:72,label:"Inbound",isLocked:!0}),(0,t.jsx)(ek,{value:64,label:"International",isLocked:!0})]}),(!iS||"detail"===iG)&&"public"!==iG&&(0,t.jsxs)("div",{className:"flex flex-row md:flex-col items-end gap-1 [&_button]:h-7 [&_button]:w-7",onClick:e=>e.preventDefault(),children:[(0,t.jsx)(a.k,{tooltipSide:"left",eventId:iM.basic.id,interests:iM.interests,trackerId:iA,setInterest:iF,setEventId:iO,view:iP}),i4&&(0,t.jsx)(n.ZP,{source:i$?"RECOMMEND_EVENT":void 0,subType:"T_EVENT_PARTICIPATION",label:iM.basic.name,target:{eventId:iM.basic.id,categories:iM.basic.categories,countryId:(0,em.Iy)(iM.basic.eventLocation)}}),"global"!==i_&&(0,t.jsx)(ee.pn,{children:(0,t.jsxs)(ee.u,{delayDuration:0,
1children:[(0,t.jsx)(ee.aJ,{asChild:!0,children:(0,t.jsx)(Q.z,{variant:"ghost",size:"icon","aria-label":"Notes",onClick:e=>{e.preventDefault(),e.stopPropagation(),window.open("/internal/event/".concat(iM.basic.id,"?view=").concat(i2),"_blank")},children:(0,t.jsx)(M.Z,{className:"w-5 h-5 text-primary"})})}),(0,t.jsx)(ee._v,{side:"left",children:"Notes"})]})})]})]})]}),iX&&(0,t.jsxs)("div",{className:"flex flex-wrap justify-end items-center gap-2 mt-auto",children:[(0,t.jsx)(K.aA,{href:"/internal/event/".concat(iM.basic.id,"?view=").concat(i2),openInNewTab:!0,insideLink:!0}),(0,t.jsx)("div",{onClick:e=>e.preventDefault(),className:"contents",children:(0,t.jsx)(a.k,{eventId:iM.basic.id,interests:iM.interests,trackerId:iA,setInterest:iF,setEventId:iO,view:iP,trigger:(0,t.jsxs)(Q.z,{size:"sm",variant:"outline",className:"gap-1.5",children:[(0,t.jsx)(Z.Z,{className:"w-4 h-4"}),"Add to List"]})})})]})]})]})})]}),iA&&iA.length>0&&"public"!==iG&&iS&&(0,t.jsx)(t.Fragment,{children:u.SB||iH?(0,t.jsx)(en.O,{className:"h-[132px] w-[98px] rounded-md"}):(null==sp?void 0:null===(iy=sp[0])||void 0===iy?void 0:iy.value)>0&&(0,t.jsx)("div",{className:"space-y-4",children:(0,t.jsx)("div",{className:"w-min h-min border border-[#EBEBEB] dark:border-[#222] bg-[#FAFAFA] dark:bg-[#18181b] p-2 rounded mt-[-38px]",children:(0,t.jsx)(ek,{value:(null==sp?void 0:null===(iN=sp[0])||void 0===iN?void 0:iN.value)||0,label:"Relevance",color:null==sp?void 0:null===(iE=sp[0])||void 0===iE?void 0:iE.fill})})})})]})]}),!iS&&"detail"===iG&&!!(null==iM?void 0:null===(iw=iM.trackerMatchInfo)||void 0===iw?void 0:null===(ik=iw.qualifyingEditions)||void 0===ik?void 0:ik.length)&&(0,t.jsx)(eT,{editions:iM.trackerMatchInfo.qualifyingEditions})]})})},eS=e=>{var i,s,a,n,r,l,o,d,u;let{event:x}=e,{getFilterValue:h}=(0,b.S)(),{data:p,setIsNewCall:g}=(0,v.Bj)(),j=null===(s=Object)||void 0===s?void 0:s.keys((null==p?void 0:null===(i=p.filterValues)||void 0===i?void 0:i.locationIds)||{}),y=x.basic.eventTypes.filter(e=>"general-holiday"!==e.slug&&"holiday"!==e.slug).map(e=>e.name),N=1==h("locationIds").split(",").filter(Boolean).length||1==j.length;return(0,t.jsx)("div",{className:"bg-background rounded-lg border shadow-sm relative w-full transition-all duration-300 hover:bg-gray-50 dark:hover:bg-[var(--heading-background-color)] hover:shadow-lg hover:scale-[1.01] cursor-pointer",children:(0,t.jsxs)("div",{className:"block",children:[(0,t.jsx)("div",{className:"absolute left-0 top-3 h-auto w-[120px] flex items-start justify-center",children:x.basic.logoUrl?(0,t.jsx)("img",{src:x.basic.logoUrl||"/placeholder.svg",alt:"".concat(x.basic.name," logo"),className:"w-24 h-24 object-contain p-2 border rounded-md bg-white shadow-sm"}):x.basic.website?(0,t.jsxs)("div",{className:"w-24 h-24 relative",children:[(0,t.jsx)("img",{src:"https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=".concat(x.basic.website,"&size=64"),alt:"".concat(x.basic.name," website favicon"),className:"w-24 h-24 object-contain p-2 border rounded-md bg-white shadow-sm",onError:e=>{e.currentTarget.style.display="none",e.currentTarget.dataset.error="true"}}),(0,t.jsx)("div",{className:"w-24 h-24 rounded-md bg-[#5055A3]/10 border border-[#5055A3]/20 shadow-sm flex items-center justify-center absolute top-0 left-0",style:{display:"none"},ref:e=>{if(e){let i=e.previousSibling;i&&"true"===i.dataset.error&&(e.style.display="flex")}},children:(0,t.jsx)("span",{className:"text-[#5055A3] text-2xl font-semibold",children:x.basic.name.charAt(0)})})]}):(0,t.jsx)("div",{className:"w-24 h-24 rounded-md bg-[#5055A3]/10 border border-[#5055A3]/20 shadow-sm flex items-center justify-center",children:(0,t.jsx)("span",{className:"text-[#5055A3] text-2xl font-semibold",children:x.basic.name.charAt(0)})})}),(0,t.jsx)("div",{className:"pl-[120px] p-3 pr-3",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-3",children:[(0,t.jsxs)("div",{className:"col-span-7 flex flex-col gap-2",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold",children:x.basic.name}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm capitalize",children:Array.isArray(u=x.basic.eventLocation)?u.map(e=>{let i=[];return e.displayName&&i.push(e.displayName),i.join(", ")}).join("; "):""}),(0,t.jsx)("p",{className:"text-sm [color:var(--secondary-text-color)] mt-1",children:(0,k.$Q)(x.basic.startDateTime,x.basic.endDateTime)})]}),(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(ee.pn,{children:(0,t.jsxs)(ee.u,{delayDuration:0,
1children:[(0,t.jsx)(ee.aJ,{children:(0,t.jsxs)(c.C,{variant:"secondary",className:"flex items-center gap-2 bg-pink-100 text-pink-800 hover:bg-pink-100 uppercase rounded-sm",style:{color:m.kl[x.basic.primaryEventType||""],backgroundColor:(0,f.t)(m.kl[x.basic.primaryEventType||""],.9)},children:[(0,t.jsx)("span",{children:m.kM[x.basic.primaryEventType||"festivals"]}),(0,t.jsx)("span",{className:"capitalize",children:x.basic.primaryEventType.toLowerCase()})]})}),(0,t.jsx)(ee._v,{className:"bg-gray-800 text-gray-100 text-xs px-2 rounded-md shadow-md border border-gray-700",children:(0,t.jsx)("p",{children:"Event Type"})})]})}),y.map(e=>(0,t.jsx)(ee.pn,{children:(0,t.jsxs)(ee.u,{delayDuration:0,children:[(0,t.jsx)(ee.aJ,{children:(0,t.jsx)(c.C,{variant:"outline",className:"[color:var(--secondary-text-color)] capitalize rounded-sm",children:e})}),(0,t.jsx)(ee._v,{className:"bg-gray-800 text-gray-100 text-xs px-2 rounded-md shadow-md border border-gray-700",children:(0,t.jsx)("p",{children:"Category"})})]})},e))]})})]}),N&&(0,t.jsx)("div",{className:"col-span-5 hidden md:flex flex-col gap-2 items-end pr-[59px]",children:(0,t.jsx)("div",{className:"max-w-[94px] h-full",children:(0,t.jsxs)("div",{className:"flex-[0_0_100%] min-w-0 border border-[#EBEBEB] bg-[#FAFAFA] p-2 rounded",children:[(0,t.jsx)("p",{className:"text-xs [color:var(--secondary-text-color)] font-medium text-center mb-1",children:null===(a=(null===(n=x.basic)||void 0===n?void 0:n.eventLocation)[0])||void 0===a?void 0:a.displayName.split(",")[0]}),(0,t.jsxs)("div",{className:"grid grid-rows-2 gap-2",children:[(0,t.jsx)(ek,{value:null===(r=(null===(l=x.basic)||void 0===l?void 0:l.eventLocation)[0])||void 0===r?void 0:r.businessScore,label:"Business"}),(0,t.jsx)(ek,{value:null===(o=(null===(d=x.basic)||void 0===d?void 0:d.eventLocation)[0])||void 0===o?void 0:o.socialScore,label:"Social"})]})]})})})]})})]})})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.