1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7841],{14643:function(e,t){t.Z={src:"/_next/static/media/website.2ec9375f.svg",height:24,width:24,blurWidth:0,blurHeight:0}},38416:function(e,t,l){var i=l(85893);t.Z=e=>{let{isOpenDescription:t,setIsOpenDescription:l}=e,s=()=>{l(e=>!e),localStorage.setItem("isOpenDescription",JSON.stringify(!t))};return(0,i.jsx)("div",{onClick:()=>s(),className:"ml-auto w-[40px] h-[40px] flex justify-center items-center bg-paperWhite cursor-pointer",children:t?(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,i.jsx)("path",{d:"M6 13C5.71667 13 5.47934 12.904 5.288 12.712C5.09667 12.52 5.00067 12.2827 5 12C4.99934 11.7173 5.09534 11.48 5.288 11.288C5.48067 11.096 5.718 11 6 11H18C18.2833 11 18.521 11.096 18.713 11.288C18.905 11.48 19.0007 11.7173 19 12C18.9993 12.2827 18.9033 12.5203 18.712 12.713C18.5207 12.9057 18.2833 13.0013 18 13H6Z",fill:"black"})}):(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,i.jsx)("path",{d:"M12 21C11.7167 21 11.4793 20.904 11.288 20.712C11.0967 20.52 11.0007 20.2827 11 20V13H4C3.71667 13 3.47934 12.904 3.288 12.712C3.09667 12.52 3.00067 12.2827 3 12C2.99934 11.7173 3.09534 11.48 3.288 11.288C3.48067 11.096 3.718 11 4 11H11V4C11 3.71667 11.096 3.47934 11.288 3.288C11.48 3.09667 11.7173 3.00067 12 3C12.2827 2.99934 12.5203 3.09534 12.713 3.288C12.9057 3.48067 13.0013 3.718 13 4V11H20C20.2833 11 20.521 11.096 20.713 11.288C20.905 11.48 21.0007 11.7173 21 12C20.9993 12.2827 20.9033 12.5203 20.712 12.713C20.5207 12.9057 20.2833 13.0013 20 13H13V20C13 20.2833 12.904 20.521 12.712 20.713C12.52 20.905 12.2827 21.0007 12 21Z",fill:"black"})})})}},51342:function(e,t,l){var i=l(85893),s=l(67294),a=l(25675),r=l.n(a),n=l(14643),c=l(60285);let o={threads:"p-[6px] w-[32px] h-[32px] bg-[white]",xiaohongshu:"p-[6px] w-[32px] h-[32px] bg-[white]"};t.Z=e=>{var t;let{source:l,sizes:a,className:d}=e,u=(0,s.useMemo)(()=>(0,c.Ap)(l),[l]);return(0,i.jsx)(r(),{src:null!==(t=c.ae[u])&&void 0!==t?t:n.Z,width:null==a?void 0:a.width,height:null==a?void 0:a.height,alt:"Pharma",className:"border border-transparent ".concat(o[u]," ").concat(null!=d?d:"")})}},50321:function(e,t,l){var i=l(85893),s=l(25675),a=l.n(s),r=l(67294);t.Z=e=>{let t,{influencerAvatar:l,influencerFirstName:s,size:n=72,fontSize:c=22,className:o}=e,[d,u]=(0,r.useState)("https://application-storage.informio.biz/sf-ai/objects-logos/".concat(l,".png")),[x,p]=(0,r.useState)(!0),h=()=>{p(!1)};return(0,i.jsx)("div",{className:"influencer-item-logo relative flex flex-col lg:flex-row ".concat(o),style:{width:n,height:n},children:x?(0,i.jsx)(a(),{src:d,alt:"watch360.ai ".concat(s),title:s,fill:!0,className:"object-contain",onError:()=>{d.endsWith(".png")?u(d.replace(".png",".svg")):h()},sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"}):(0,i.jsx)("div",{className:"flex w-full items-center justify-center rounded-full bg-paperWhite text-[".concat(c,"px] uppercase"),children:1===(t=s.includes(" ")?s.trim().split(" "):s.trim()).length?t[0].charAt(0)+t[0].charAt(1):t[0].charAt(0)+t[1].charAt(0)})})}},71921:function(e,t,l){l.d(t,{Z:function(){return W}});var i=l(85893),s=l(67294),a=l(5152),r=l.n(a),n=l(44343),c=l(31702),o=l(51342),d=l(41664),u=l.n(d),x=l(49108),p=l(26920),h=l(3510),f=l(50321),m=l(17871),g=l(87066),w=e=>{let{influencer:t,customCt:l,onShowItemsView:a,activeSource:r="instagram.com",workspaceId:n}=e,[c,o]=(0,s.useState)(null),[d,w]=(0,s.useState)(null);(0,s.useEffect)(()=>{v(),b()},[t.Key]);let v=async()=>{try{var e,l,i;let s='{\n personForceList(sfTagId: "'.concat(t.Key,'") {\n id,\n sfTagId,\n algoliaId,\n sfTopicQuery,\n sfWorkspaceId,\n personDetails,\
1n lastUpdateTimeStamp\n }\n }'),{data:a}=await g.Z.post("/api/ae-api",{query:s}),r=null==a?void 0:null===(l=a.data)||void 0===l?void 0:null===(e=l.data)||void 0===e?void 0:e.personForceList;if(!Array.isArray(r)||0===r.length)return null;let n=null===(i=r[0])||void 0===i?void 0:i.algoliaId;n&&o(n)}catch(e){console.log(e)}},b=async()=>{var e;let l={filters:["source:".concat(r),"customTags:".concat(t.Key),"objectType:(1 4 5 15 26)"],fields:["profileFollowers"],query:"*",workspaceId:null!=n?n:x.tW.fairs,type:null},i=await (0,h.FF)(l);w(null!==(e=null==i?void 0:i.max)&&void 0!==e?e:0)},j=e=>{let l=["customTags:".concat(t.Key)];a(l,e)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"flex flex-col gap-4 min-w-[165px] w-[165px]",children:[(0,i.jsx)("div",{className:"mx-auto",children:(0,i.jsx)(f.Z,{influencerAvatar:t.Key,influencerFirstName:t.label,size:80})}),(0,i.jsx)("div",{className:"flex flex-col gap-4",children:(0,i.jsxs)("div",{className:"text-center flex flex-col gap-[6px]",children:[c?(0,i.jsx)(u(),{href:"/influencers/".concat(c),children:(0,i.jsx)("div",{className:"text-[16px] leading-[20.8px] ".concat(c?"text-gold":"text-brownDark cursor-default"," uppercase line-clamp-1 underline underline-offset-4 decoration-dashed hover:opacity-[0.8]"),children:t.label})}):(0,i.jsx)("div",{className:"text-[16px] leading-[20.8px] ".concat(c?"text-gold":"text-brownDark cursor-default"," uppercase line-clamp-1 underline underline-offset-4 decoration-dashed hover:opacity-[0.8]"),children:t.label}),d?(0,i.jsx)("div",{className:"text-[14px] leading-[14px] text-[#979797] uppercase",children:(0,m.uf)(d)}):null,(0,i.jsxs)("div",{className:"cursor-pointer underline-offset-4 decoration-dashed hover:opacity-[0.8] hover:underline hover:text-gold",onClick:()=>j("posts"),children:[(0,p.hx)(t.posts)," post",t.posts>1?"s":""]}),t.comments?(0,i.jsxs)("div",{className:"cursor-pointer underline-offset-4 decoration-dashed hover:opacity-[0.8] hover:underline hover:text-gold",onClick:()=>j("comments"),children:[(0,p.hx)(t.comments)," ","comment",t.comments>1?"s":""]}):null]})})]}),(0,i.jsx)("div",{className:"w-[1px] min-w-[1px] bg-[#C6C6C6] h-[165px] hidden lg:block"})]})},v=l(92856),b=l(59804),j=l(11898),y=l(90512),N=l(34859),_=l(18446),k=l.n(_),C=l(27562);let S=r()(()=>Promise.all([l.e(296),l.e(9260)]).then(l.t.bind(l,69260,23)),{loadableGenerated:{webpack:()=>[69260]},ssr:!1}),T=[{attribute:"brand",label:"Brand Mentions",itemPrefix:"ct_brand_",searchable:!0},{attribute:"collection",label:"Collection Mentions",itemPrefix:"ct_product_line_",searchable:!0},{attribute:"model",label:"Model Mentions",itemPrefix:"ct_model_",searchable:!0},{attribute:"author_country",label:"Сountry",itemPrefix:"ct_author_country_",searchable:!1,disabled:!1},{attribute:"author_town",label:"City",itemPrefix:"ct_author_town_",searchable:!1,disabled:!1},{attribute:"author_audience_size",label:"Audience Size",itemPrefix:"ct_author_audience_size",searchable:!1,disabled:!1},{attribute:"author_category",label:"Type",itemPrefix:"ct_author_category",searchable:!1,disabled:!1}],I=["ct_author_category","ct_author_audience_size","ct_author_town_","ct_author_country_","ct_author_type_influencer","ct_author_watches_and_wonders"];var W=e=>{let{dateRange:t,setFair:l,sfTagId:a,sources:r,influencers:d,onShowItemsView:u,influencersCount:f,workspaceId:m,position:g,viewLimit:_}=e,{startDateTime:W,endDateTime:D}=t,Z=(0,n.useRouter)(),[F,M]=(0,s.useState)(!0),[A,P]=(0,s.useState)({}),[K,B]=(0,s.useState)(null),[H,q]=(0,s.useState)(["customTags:".concat(a),"customTags:ct_author_*","source:(".concat(r.join(" "),")")]),[L,z]=(0,s.useState)(r[0]),[V,O]=(0,s.useState)([]),[R,E]=(0,s.useState)(0),[J,X]=(0,s.useState)({total:0,source:0}),U=null!=_?_:4;(0,s.useEffect)(()=>{if(null==Z?void 0:Z.isReady){let e=(0,j.Bi)(Z.query),t=JSON.parse(JSON.stringify(Z.query));delete t.sortBy,delete t.selectedTab,k()(t,A)||(P(t),B(e))}},[Z]);let Y=async()=>{var e,t,i,s,r,n;l(e=>({...e,influencersCount:0,influencers:[]})),O([]),E(1),M(!0);let c={filters:["customTags:".concat(a),"customTags:ct_author_*","source:".concat(L),...null!=K?K:[]],query:"*",workspaceId:null!=m?m:x.tW.fairs,limit:5e3,skip:0,groupLimit:1,groupBy:"authorProfile",sortBy:"pubDate",sortDirection:"desc",extInfo:!1,startDateTime:W,endDateTime:
1D},o=await (0,h.wf)(c);if(null==o?void 0:null===(t=o.data)||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.groups){let e=o.data.data.groups[0].groupDetails.groups.map(e=>{let{documents:t}=e,[l]=t,{authorName:i,categories:s,country:a}=l,r=s.find(e=>!I.some(t=>e.includes(t))&&e.includes("ct_author_"));return{Key:r,name:i,label:i,posts:0,comments:0,followers:0,country:(null==a?void 0:a.length)?a[0]:"g_undefined"}}).filter(e=>e.Key),t={filters:["customTags:".concat(a),"customTags:ct_author_*","source:".concat(L),"objectType:(1 4 5 15 26)",...null!=K?K:[]],query:"*",workspaceId:null!=m?m:x.tW.fairs,limit:5e3,skip:0,groupLimit:1,groupBy:"authorProfile",sortBy:"pubDate",sortDirection:"desc",extInfo:!1,startDateTime:W,endDateTime:D},c=await (0,h.wf)(t),d=[];(null==c?void 0:null===(s=c.data)||void 0===s?void 0:null===(i=s.data)||void 0===i?void 0:i.groups)&&(d=c.data.data.groups[0].groupDetails.groups.map(e=>{let{documents:t,numFound:l}=e,[i]=t,{categories:s}=i,a=s.find(e=>!I.some(t=>e.includes(t))&&e.includes("ct_author_"));return{Key:a,posts:l}}).filter(e=>e.Key));let u={filters:["customTags:".concat(a),"customTags:ct_author_*","source:".concat(L),"objectType:2",...null!=K?K:[]],query:"*",workspaceId:null!=m?m:x.tW.fairs,limit:5e3,skip:0,groupLimit:1,groupBy:"authorProfile",sortBy:"pubDate",sortDirection:"desc",extInfo:!1,startDateTime:W,endDateTime:D},p=await (0,h.wf)(u),f=[];(null==p?void 0:null===(n=p.data)||void 0===n?void 0:null===(r=n.data)||void 0===r?void 0:r.groups)&&(f=p.data.data.groups[0].groupDetails.groups.map(e=>{let{documents:t,numFound:l}=e,[i]=t,{categories:s}=i,a=s.find(e=>!I.some(t=>e.includes(t))&&e.includes("ct_author_"));return{Key:a,comments:l}}).filter(e=>e.Key));let g=e.map(e=>e.Key),w=await (0,N.a8)(g);e=e.map(e=>{var t,l,i,s,a,r;let n=null!==(s=null===(t=d.find(t=>t.Key===e.Key))||void 0===t?void 0:t.posts)&&void 0!==s?s:0,c=null!==(a=null===(l=f.find(t=>t.Key===e.Key))||void 0===l?void 0:l.comments)&&void 0!==a?a:0,o=null!==(r=null===(i=w.find(t=>t.key===e.Key))||void 0===i?void 0:i.value)&&void 0!==r?r:null;return{...e,name:o?o.split(":")[1]:e.name,label:o?o.split(":")[1]:e.label,posts:n,comments:c}}).sort((e,t)=>t.posts-e.posts),l(t=>({...t,influencersCount:e.length,influencers:e})),O(e.slice(0,U)),E(1),M(!1);return}l(e=>({...e,influencersCount:0,influencers:[]})),O([]),E(1),M(!1)},G=async()=>{var e,t;let l={filters:["customTags:".concat(a),"customTags:ct_author_*",...null!=K?K:[]],query:"*",workspaceId:null!=m?m:x.tW.fairs,limit:1,skip:0,extInfo:!1,startDateTime:W,endDateTime:D},i=await (0,h.ge)({...l,filters:[...l.filters,"source:(".concat(r.join(" "),")")]}),s=await (0,h.ge)({...l,filters:[...l.filters,"source:".concat(L)]});X({total:null!==(e=null==i?void 0:i.itemsCount)&&void 0!==e?e:0,source:null!==(t=null==s?void 0:s.itemsCount)&&void 0!==t?t:0})};(0,s.useEffect)(()=>{K&&(G(),Y())},[L,K,W,D]);let Q=(e,l)=>{let i={query:"*",dateRange:t,filtersList:[...e,"customTags:".concat(a),"source:".concat(L),..."posts"===l?["objectType:(1 4 5 15 26)"]:["objectType:2"],...null!=K?K:[]],workspaceId:null!=m?m:x.tW.fairs};u&&u(i)};return(0,i.jsxs)("div",{className:"flex flex-wrap gap-6 w-full",children:[(0,i.jsx)("div",{className:"flex w-full items-center",children:(0,i.jsx)(b.Z,{queryFilters:A,label:"Watch",abstraction:"watches",isShowAsideFilter:!0,featuresAvailability:null,hidePaginationOptions:!0,hideFiltersToggler:!0,setIsShowAsideFilter:()=>{}})}),(0,i.jsxs)("div",{className:"flex w-full gap-6",children:[(0,i.jsx)("div",{className:"flex min-w-[250px] w-[250px] max-w-[250px]",children:(0,i.jsx)(v.Z,{dateRange:t,filtersSections:T,itemAdvancedFilters:H,workspaceId:null!=m?m:x.tW.fairs,className:"w-full",defaultSectionIndex:0})}),(0,i.jsxs)("div",{className:"flex flex-wrap self-start gap-4 w-full relative min-h-[60vh]",children:[F?(0,i.jsx)("div",{className:"flex h-full justify-center w-full absolute z-[100] left-0 right-0 bg-paperWhite opacity-80 bac",children:(0,i.jsx)(S,{animationData:C,className:"w-[120px]",loop:!0})}):null,(0,i.jsx)("div",{className:"flex self-start bg-white p-6 w-full min-h-[60vh]",children:(0,i.jsxs)(c.fC,{defaultValue:L,onValueChange:e=>z(e),className:"flex flex-col gap-4 w-full",children:[(0,i.jsxs)(c.aV,{className:(0,y.Z)("flex justify-between border-b-[1px] border-[#C6C6C6]","vertical"===g?"flex-col":"flex-row"),children:[(0,i.jsx)("div",{className:"text-[22px] leading-[28.6px] uppercase flex items-center",children:"Influencers"}),(0,i.jsx)("div",{children:r.map((e,t)=>(0,i.jsx)(c.xz,{className:"influencers-socials-trigger group mt-2 border-b-[3px] border-transparent px-1 pb-2 data-[state=active]:border-[#3A3935]",value:e,children:(0,i.jsx)(o.Z,{source:e,sizes:{width:46,height:46}})},t))}),(0,i.jsx)("div",{className:"w-[100px]"})]}),(0,i.jsxs)(c.VY,{value:L,children:[V.length?(0,i.jsxs)("div",{className:(0,y.Z)("flex gap-3 flex-col md:flex-row","vertical"===g&&"!flex-col"),children:[(0,i.jsxs)("div",{className:"p-4 bg-brownDark flex justify-center items-center flex-col gap-5 min-h-[169px] min-w-[192px]",children:[(0,i.jsxs)("div",{className:"flex flex-wrap w-full gap-2",children:[(0,i.jsx)("div",{className:"text-[46px] leading-[50.8px] text-white w-full text-center",children:(0,p.hx)(f)}),(0,i.jsx)("div",{className:"text-[16px] leading-[20.8px] text-white uppercase text-center w-full",children:"Influencers"})]}),(0,i.jsxs)("div",{className:"flex flex-wrap w-full gap-2",children:[(0,i.jsx)("div",{className:"text-[46px] leading-[50.8px] text-white w-full text-center",children:(0,p.hx)(J.total)}),(0,i.jsx)("div",{className:"text-[16px] leading-[20.8px] text-white uppercase text-center w-full",children:"Total Mentions"})]}),(0,i.jsxs)("div",{className:"flex flex-wrap w-full gap-2",children:[(0,i.jsx)("div",{className:"text-[46px] leading-[50.8px] text-white w-full text-center",children:(0,p.hx)(J.source)}),(0,i.jsxs)("div",{className:"text-[16px] leading-[20.8px] text-white uppercase text-center w-full",children:[L," Mentions"]})]})]}),(0,i.jsx)("div",{className:"flex gap-[30px] flex-col lg:flex-row items-center lg:items-start flex-wrap",children:null==V?void 0:V.map((e,t)=>(0,i.jsx)(w,{influencer:e,customCt:a,activeSource:L,onShowItemsView:Q},e.Key))}),(0,i.jsxs)("div",{className:"flex flex-wrap items-center self-center min-w-[100px] px-5",children:[(0,i.jsx)("div",{onClick:()=>{let e=R*U,t=d.slice(e,e+U);O(e=>[...e,...t]),E(e=>e+1)},className:"w-[55px] line-clamp-3 text-brownDark uppercase hover:text-gold cursor-pointer text-center py-2 flex items-center h-[100px]",children:"+ Show More"}),R>1?(0,i.jsx)("div",{onClick:()=>{let e=(R-1)*U;O(t=>[...t].slice(0,e)),E(e=>e-1)},className:"w-[55px] line-clamp-3 text-brownDark uppercase hover:text-gold cursor-pointer text-center py-2 flex items-center h-[100px]",children:"- Show Less"}):null]})]}
1):null,V.length||F?null:(0,i.jsx)("div",{className:"flex w-full items-center justify-center h-[40vh] text-[20px] uppercase",children:"No Data"})]})]})})]})]})]})}},87768:function(e,t,l){l.d(t,{Z:function(){return y}});var i=l(85893),s=l(67294),a=l(5152),r=l.n(a),n=l(44343),c=l(25166),o=l(26920),d=e=>{let{media:t,onShowItemsView:l}=e,s=e=>{let i=["source:".concat(t.key)];l(i,e)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"flex flex-col gap-4 min-w-[165px] w-[165px]",children:[(0,i.jsx)("div",{className:"mx-auto",children:(0,i.jsx)(c.Z,{src:t.key,width:20,height:20})}),(0,i.jsx)("div",{className:"flex flex-col gap-4",children:(0,i.jsxs)("div",{className:"text-center flex flex-col gap-[6px]",children:[(0,i.jsx)("div",{className:"text-[16px] leading-[20.8px] text-brownDark cursor-default uppercase overflow-hidden text-ellipsis whitespace-nowrap",title:t.label,children:t.label}),(0,i.jsxs)("div",{className:"cursor-pointer underline-offset-4 decoration-dashed hover:opacity-[0.8] hover:underline hover:text-gold",onClick:()=>s("articles"),children:[(0,o.hx)(t.articles)," article",t.articles>1?"s":""]})]})})]}),(0,i.jsx)("div",{className:"w-[1px] min-w-[1px] bg-[#C6C6C6] h-[165px] hidden lg:block"})]})},u=l(92856),x=l(59804),p=l(49108),h=l(11898),f=l(3510),m=l(90512),g=l(18446),w=l.n(g),v=l(27562);let b=r()(()=>Promise.all([l.e(296),l.e(9260)]).then(l.t.bind(l,69260,23)),{loadableGenerated:{webpack:()=>[69260]},ssr:!1}),j=[{attribute:"brand",label:"Brand Mentions",itemPrefix:"ct_brand_",searchable:!0},{attribute:"collection",label:"Collection Mentions",itemPrefix:"ct_product_line_",searchable:!0},{attribute:"model",label:"Model Mentions",itemPrefix:"ct_model_",searchable:!0},{attribute:"country",label:"Сountry",searchable:!1,field:"location",filterMask:[{matchType:"full",matchOperation:"exclude",matchMask:["g_undefined"]}],disabled:!1},{attribute:"source",label:"Source",searchable:!0,field:"source",disabled:!1}];var y=e=>{let{dateRange:t,setFair:l,sfTagId:a,media:r,onShowItemsView:c,mediaCount:g,workspaceId:y,position:N,viewLimit:_,externalFilters:k}=e,{startDateTime:C,endDateTime:S}
1=t,T=(0,n.useRouter)(),[I,W]=(0,s.useState)(!0),[D,Z]=(0,s.useState)({}),[F,M]=(0,s.useState)(null),[A,P]=(0,s.useState)(["customTags:".concat(a),...null!=k?k:[],"objectType:0"]),[K,B]=(0,s.useState)([]),[H,q]=(0,s.useState)(0),[L,z]=(0,s.useState)({total:0}),V=null!=_?_:4;(0,s.useEffect)(()=>{if(null==T?void 0:T.isReady){let e=(0,h.Bi)(T.query,j),t=JSON.parse(JSON.stringify(T.query));delete t.sortBy,delete t.selectedTab,w()(t,D)||(Z(t),M(e))}},[T]);let O=async()=>{var e,t;l(e=>({...e,mediaCount:0,media:[]})),B([]),q(1),W(!0);let i={filters:["customTags:".concat(a),"objectType:0",...null!=F?F:[],...null!=k?k:[]],query:"*",workspaceId:null!=y?y:p.tW.fairs,limit:5e3,skip:0,groupLimit:1,groupBy:"source",sortBy:"pubDate",sortDirection:"desc",extInfo:!1,startDateTime:C,endDateTime:S},s=await (0,f.wf)(i);if(null==s?void 0:null===(t=s.data)||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.groups){let e=s.data.data.groups[0].groupDetails.groups.map(e=>{let{documents:t,numFound:l}=e,[i]=t,{authorName:s,country:a,source:r}=i;return{key:r,name:r,label:r,articles:l,comments:0,country:(null==a?void 0:a.length)?a[0]:"g_undefined"}}).filter(e=>e.key);e=e.sort((e,t)=>t.articles-e.articles),l(t=>({...t,mediaCount:e.length,media:e})),B(e.slice(0,V)),q(1),W(!1);return}l(e=>({...e,mediaCount:0,media:[]})),B([]),q(1),W(!1)},R=async()=>{var e;let t={filters:["customTags:".concat(a),"objectType:0",...null!=F?F:[],...null!=k?k:[]],query:"*",workspaceId:null!=y?y:p.tW.fairs,limit:1,skip:0,extInfo:!1,startDateTime:C,endDateTime:S},l=await (0,f.ge)({...t,filters:[...t.filters]});z({total:null!==(e=null==l?void 0:l.itemsCount)&&void 0!==e?e:0})};(0,s.useEffect)(()=>{F&&(R(),O())},[F,C,S]);let E=(e,l)=>{let i={query:"*",dateRange:t,filtersList:[...e,"customTags:".concat(a),..."articles"===l?["objectType:0"]:["objectType:2"],...null!=F?F:[],...null!=k?k:[]],workspaceId:null!=y?y:p.tW.fairs};c&&c(i)};return(0,i.jsxs)("div",{className:"flex flex-wrap gap-6 w-full",children:[(0,i.jsx)("div",{className:"flex w-full items-center",children:(0,i.jsx)(x.Z,{queryFilters:D,label:"Watch",abstraction:"watches",isShowAsideFilter:!0,featuresAvailability:null,hidePaginationOptions:!0,hideFiltersToggler:!0,setIsShowAsideFilter:()=>{}})}),(0,i.jsxs)("div",{className:"flex w-full gap-6",children:[(0,i.jsx)("div",{className:"flex min-w-[250px] w-[250px] max-w-[250px]",children:(0,i.jsx)(u.Z,{dateRange:t,filtersSections:j,itemAdvancedFilters:A,workspaceId:null!=y?y:p.tW.fairs,className:"w-full",defaultSectionIndex:0})}),(0,i.jsxs)("div",{className:"flex flex-wrap self-start gap-4 w-full relative min-h-[60vh]",children:[I?(0,i.jsx)("div",{className:"flex h-full justify-center w-full absolute z-[100] left-0 right-0 bg-paperWhite opacity-80 bac",children:(0,i.jsx)(b,{animationData:v,className:"w-[120px]",loop:!0})}):null,(0,i.jsx)("div",{className:"flex self-start bg-white p-6 w-full min-h-[60vh]",children:(0,i.jsxs)("div",{className:"flex flex-col gap-4 w-full",children:[(0,i.jsxs)("div",{className:(0,m.Z)("flex justify-between border-b-[1px] border-[#C6C6C6] pb-3","vertical"===N?"flex-col":"flex-row"),children:[(0,i.jsx)("div",{className:"text-[22px] leading-[28.6px] uppercase flex items-center",children:"Media"}),(0,i.jsx)("div",{className:"w-[100px]"})]}),(0,i.jsxs)("div",{children:[K.length?(0,i.jsxs)("div",{className:(0,m.Z)("flex gap-3 flex-col md:flex-row","vertical"===N&&"!flex-col"),children:[(0,i.jsxs)("div",{className:"p-4 bg-brownDark flex justify-center items-center flex-col gap-5 min-h-[169px] min-w-[192px]",children:[(0,i.jsxs)("div",{className:"flex flex-wrap w-full gap-2",children:[(0,i.jsx)("div",{className:"text-[46px] leading-[50.8px] text-white w-full text-center",children:(0,o.hx)(g)}),(0,i.jsx)("div",{className:"text-[16px] leading-[20.8px] text-white uppercase text-center w-full",children:"Media"})]}),(0,i.jsxs)("div",{className:"flex flex-wrap w-full gap-2",children:[(0,i.jsx)("div",{className:"text-[46px] leading-[50.8px] text-white w-full text-center",children:(0,o.hx)(L.total)}),(0,i.jsx)("div",{className:"text-[16px] leading-[20.8px] text-white uppercase text-center w-full",children:"Total Mentions"})]})]}),(0,i.jsx)("div",{className:"flex gap-[30px] flex-col lg:flex-row items-center flex-wrap",children:null==K?void 0:K.map((e,t)=>(0,i.jsx)(d,{media:e,onShowItemsView:E},"media_".concat(t)))}),(0,i.jsxs)("div",{className:"flex flex-wrap items-center self-center min-w-[100px] px-5",children:[(0,i.jsx)("div",{onClick:()=>{let e=H*V,t=r.slice(e,e+V);B(e=>[...e,...t]),q(e=>e+1)},className:"w-[55px] line-clamp-3 text-brownDark uppercase hover:text-gold cursor-pointer text-center py-2 flex items-center h-[100px]",children:"+ Show More"}),H>1?(0,i.jsx)("div",{onClick:()=>{let e=(H-1)*V;B(t=>[...t].slice(0,e)),q(e=>e-1)},className:"w-[55px] line-clamp-3 text-brownDark uppercase hover:text-gold cursor-pointer text-center py-2 flex items-center h-[100px]",children:"- Show Less"}):null]})]}):null,K.length||I?null:(0,i.jsx)("div",{className:"flex w-full items-center justify-center h-[40vh] text-[20px] uppercase",children:"No Data"})]})]})})]})]})]})}},60285:function(e,t,l){l.d(t,{XU:function(){return o},ae:function(){return c}
1,IF:function(){return n},Ap:function(){return d},YQ:function(){return u}});var i=l(19537),s=l(41341),a={src:"/_next/static/media/x.2d934803.svg",height:57,width:56,blurWidth:0,blurHeight:0},r=l(14643);let n={instagram:"Instagram",x:"Twitter (X)",twitter:"Twitter (X)",youtube:"Youtube",facebook:"Facebook",tiktok:"Tiktok",linkedin:"Linkedin",pinterest:"Pinterest",xiaohongshu:"Xiaohongshu"},c={instagram:i.Z,x:a,twitter:a,youtube:{src:"/_next/static/media/youtube.c92fba29.svg",height:57,width:56,blurWidth:0,blurHeight:0},facebook:s.Z,tiktok:{src:"/_next/static/media/tiktok.05161726.svg",height:57,width:56,blurWidth:0,blurHeight:0},linkedin:{src:"/_next/static/media/linkedin.248822df.svg",height:57,width:56,blurWidth:0,blurHeight:0},website:r.Z,blog:{src:"/_next/static/media/blog.9663a24b.svg",height:24,width:24,blurWidth:0,blurHeight:0},pinterest:{src:"/_next/static/media/pinterest.3b050eb2.svg",height:57,width:56,blurWidth:0,blurHeight:0},telegram:{src:"/_next/static/media/telegram.549af3bc.svg",height:32,width:32,blurWidth:0,blurHeight:0},threads:{src:"/_next/static/media/threads.2d3c5a43.svg",height:1e3,width:878,blurWidth:0,blurHeight:0},xiaohongshu:{src:"/_next/static/media/xiaohongshu.fe12d6e1.svg",height:24,width:24,blurWidth:0,blurHeight:0}},o={threads:"p-[6px] w-[32px] h-[32px]",xiaohongshu:"p-[6px] w-[32px] h-[32px]"},d=e=>{let t=e.toLowerCase();return t.includes("instagram")?"instagram":t.includes("linkedin")?"linkedin":t.includes("facebook")?"facebook":t.includes("tiktok")?"tiktok":t.includes("youtube")?"youtube":t.includes("twitter")||t.includes("x.com")?"x":t.includes("pinterest")?"pinterest":t.includes("telegram")||"t.me"===t?"telegram":t.includes("threads")?"threads":t.includes("xiaohongshu")?"xiaohongshu":t.includes("blog")?"blog":(t.includes("http"),"website")},u=e=>e.map(e=>({profileURL:e.mediaLink,source:d(e.mediaCt)}))}}]);
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.