PageSourceSearch

https://app.youscan.io/assets/Filters-D7smRdi8.js

js youscan.io collected 2026-10-02 14:32:54 UTC 12,934 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`2a2642b6dfacef97687e3efcbfceddb15cf2ec44`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`4551f643-01ec-49ca-9f78-e8b606ff39ae`,e._sentryDebugIdIdentifier=`sentry-dbid-4551f643-01ec-49ca-9f78-e8b606ff39ae`)}catch{}})();import{o as e}from"./rolldown-runtime-Dq-L5ofj.js";import{y as t}from"./vendor-highcharts-D9LiJ1jq.js";import{x as n}from"./vendor-mui-CwwA7Cvy.js";import{Hr as r,Nn as i,Vr as a,an as o,qn as s}from"./vendors-_iXptsBn.js";import{$t as c,Q as u,St as d,Z as f,u as p}from"./apiSingleton-DoXPG3Va.js";import{G as m,r as h}from"./Popover-BFBsLyOX.js";import{t as g}from"./Mutable-CiG_AyGC.js";import{t as _}from"./Button-kEJcF-Z7.js";import{D as v,G as y,N as b,a as x,f as S}from"./selectors-DjN9nLzP.js";import{A as C,g as ee,h as te,m as ne,t as re,v as ie,wt as w}from"./selectors-hQNTf6lX.js";import{t as T}from"./model-CT-4ZDE9.js";import{s as ae}from"./pixieDust-yJlUz75R.js";import{d as E,i as oe,o as D,s as se,t as ce,u as O}from"./FilterChipPanel-BsXg8Yb5.js";import{t as k}from"./VerticalSpacer-C7Is-MhU.js";import{t as A}from"./NoResultsText-BvHEQHH_.js";import{t as le}from"./Autocomplete-Cmdc3ONM.js";import{t as j}from"./model-MwXDRPQB.js";import{t as ue}from"./ButtonBar-D_eRRhbe.js";import{n as de,t as fe}from"./Toolbar-BBMWMWj8.js";import{t as pe}from"./Modal-_djYA3Lp.js";import"./Modal-BlmhHrv6.js";import{t as me}from"./Divider-DqhVee4Z.js";import{t as M}from"./Badge-C5zp1BgG.js";import{c as N}from"./statsBy-TJHhwowI.js";import{t as P}from"./model-sPFLfBFh.js";var F=e(t()),he=e(r()),I=e(a()),L=n(),R=e=>({processed:`checkbox-checked-outline`,starred:`star-full`,spam:`spam`})[e]||null,z=({withoutSpacer:e,facets:t,hideCounters:n,countFormat:r,filterName:i,onSelectGlobalOption:a,onExcludeGlobalOption:o})=>{let s=(e,t)=>{a({name:e,value:t})},c=(e,t)=>{o({name:e,value:!t})};return(0,L.jsxs)(L.Fragment,{children:[i?(0,L.jsx)(h,{children:i}):null,t.isEmpty()&&(0,L.jsx)(A,{children:l(`No filters available`)}),(0,L.jsx)(O.Group,{children:t.map(e=>{let t=e.get(`id`),i=R(t);return(0,L.jsx)(O,{prefix:i&&(0,L.jsx)(m,{type:i,color:`gray`}),label:e.get(`label`),count:!n&&e.get(`count`),countFormat:r,value:t,selected:e.get(`selected`),excluded:e.get(`excluded`),onSelect:(e,n)=>s(t,n),onExclude:(e,n)=>c(t,n)},t)})}),!e&&(0,L.jsx)(k,{double:!0})]})},ge=({hideCounters:e,countFormat:t,filter:n,onSelectGlobalOption:r,onExcludeGlobalOption:i})=>{let a=[{id:`processed`,label:l(`Processed`),count:0},{id:`starred`,label:l(`Starred`),count:0},{id:`spam`,label:l(`Spam`),count:0}],o=g.from(a.map(e=>({id:e.id,name:e.id,label:e.label,selected:n[e.id],excluded:n[e.id]===!1})));return(0,L.jsx)(z,{facets:o,hideCounters:e,countFormat:t,filterName:l(`Mentions processing`),onSelectGlobalOption:r,onExcludeGlobalOption:i})},B=({showMentionsProcessing:e=!0}={})=>[{id:`general`,label:()=>l(`General`),filterTypes:[`sentiment`,`postType`,`contentType`,`sponsored`,`collectionMethod`,`engagement`,`comments`,`indirect`,...e?[`mentionsProcessing`]:[]]},{id:`systemTags`,label:()=>l(`Auto-categories`),filterTypes:[`systemTags`]},{id:`aspects`,label:()=>l(`Aspects`),filterTypes:[`aspect`]},{id:`subjects`,label:()=>l(`Subjects`),filterTypes:[`subject`]},{id:`trends`,label:()=>l(`Trends`),filterTypes:[`trend`]},{id:`tags`,label:()=>l(`Tags`),filterTypes:[`tag`,`tagged`]},{id:`spaceCategories`,label:()=>l(`Categories`),filterTypes:[`subcategory`]},{id:`sources`,label:()=>l(`Sources`),filterTypes:[`resourceType`,`starRating`,`sourceId`,`sourceFormat`]},{id:`authors`,label:()=>l(`Audience`),filterTypes:[`authorSubscribers`,`authorIsVerified`,`authorId`,`gender`,`authorAge`,`authorInterestCategories`,`authorInterests`,`authorJobs`]},{id:`channels`,label:()=>l(`Publication place`,`filterTab`),filterTypes:[`channelSubscribers`,`channelId`]},{id:`languages`,label:()=>l(`Languages`),filterTypes:[`language`]},{id:`geo`,label:()=>l(`Geography`),filterTypes:[`countryGroup`,`country`,`region`,`city`]},{id:`images`,label:()=>l(`Visual`,`visualInsights`),filterTypes:[`imageType`,`imageSubtype`,`imageBrand`,`imageObject`,`imageScene`,`imagePeople`,`imageActivities`,`imageColors`]},{id:`links`,label:()=>l(`Top shared URLs`),filterTypes:[`host`,`link`]},{id:`labs`,label:()=>(0,L.jsxs)(`span`,{children:[l(`Labs`),(0,L.jsx)(M.Support,{})]}),filterTypes:[`origin`,`withImage`,`hasSentimentCorrection`]}],_e=({showGlobalSpaceCategories:e}={})=>[{id:`general`,label:()=>l(`General`),filterTypes:[`sentiment`,`postType`,`contentType`,`sponsored`,`collectionMethod`,`engagement`,`comments`,`indirect`,`mentionsProcessing`]},{id:`systemTags`,label:()=>l(`Auto-categories`),filterTypes:[`systemTags`]},e?{id:`spaceCategories`,label:()=>l(`Categories`),filterTypes:[`subcategory`]}:null,{id:`sources`,label:()=>l(`Sources`),filterTypes:[`resourceType`,`starRating`,`sourceFormat`]},{id:`authors`,label:()=>l(`Audience`),filterTypes:[`gender`,`authorAge`,`authorSubscribers`,`authorIsVerified`]},{id:`languages`,label:()=>l(`Languages`),filterTypes:[`language`]},{id:`geo`,label:()=>l(`Geography`),filterTypes:[`countryGroup`,`country`,`region`,`city`]}
1].filter(Boolean),V=()=>[{id:`languages`,label:()=>l(`Languages`),filterTypes:[`language`]},{id:`geo`,label:()=>l(`Geography`),filterTypes:[`countryGroup`,`country`,`region`,`city`]},{id:`sources`,label:()=>l(`Sources`),filterTypes:[`resourceType`,`source`]},{id:`general`,label:()=>l(`Post types`),filterTypes:[`postType`,`indirect`]},{id:`authors`,label:()=>(0,L.jsx)(`span`,{children:l(`Audience`)}),filterTypes:[`gender`,`authorAge`,`authorSubscribers`,`authorIsVerified`,`authorInterestCategories`,`authorInterests`,`authorJobs`]},{id:`images`,label:()=>(0,L.jsx)(`span`,{children:l(`Visual`,`visualInsights`)}),filterTypes:[`imageType`,`imageSubtype`,`imageBrand`,`imageObject`,`imageScene`,`imagePeople`,`imageActivities`,`imageColors`]}],H=`ocrSearch`,U=(e,t)=>Object.keys(e[t]).map(n=>({type:t,name:n,values:e[t][n]})),ve=i(e=>({themeId:C(e),visualInsightsEnabled:y(e),visualTags:w(e,{excludedVisualTags:[`imageType`,`imageBrandPlacements`]})||{},visualTagsLoaded:e.stats.visualTags.labels!==null,visualTagsLoading:e.stats.visualTags.isLoading}),{fetchVisualTags:P.action.fetchVisualTags,onTextSearch:j.action.searchMentionsByQuery,sendAnalyticalEvent:T.action.sendAnalyticalEvent})(({cta:e,themeId:t,visualInsightsEnabled:n,wide:r,imageTagType:i,visualTags:a,visualTagsLoaded:s,visualTagsLoading:u,placeholder:f,size:m,fetchVisualTags:h,sendAnalyticalEvent:g,onSelect:_,onTextSearch:v})=>{let[y,b]=(0,F.useState)(``);(0,F.useEffect)(()=>{n&&!s&&h()},[n,s]);let x=(0,F.useMemo)(()=>i?U(a,i):Object.keys(a).reduce((e,t)=>e.concat(U(a,t)),[]),[i,a]),S=(0,L.jsx)(le,{keepMenuOpenOnSelect:!0,fullWidth:r,size:m,value:y,placeholder:f,isLoading:u,suggestions:y.trim()===``?x:x.concat({name:y,type:H,values:[]}),suggestionsLimit:20,renderItem:e=>{let t=e.name,n=e.type===H?`OCR`:p(N(e.type));return(0,L.jsxs)(`span`,{title:t,children:[t,!i&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(c,{}),(0,L.jsx)(`span`,{className:E.additionalInfo,children:n})]})]})},suggestionContainerClassName:(0,I.default)(E.suggestionContainer),sortingProperties:{keys:[{minRanking:o.MATCHES,key:`name`},{maxRanking:o.WORD_STARTS_WITH,key:`values`}],threshold:o.CONTAINS},onChange:(e,t)=>
1{b(t)},onSelect:n=>{if(n&&!e){if(i){_(n.name,null);return}if(g({eventType:`VisualInsights search: select suggestion`,properties:{type:n.type,value:n.name}}),n.type===H){v({text:`ocr: (${n.name})`,themeId:t});return}_(n.name,{customFilterType:N(n.type)})}}});return(0,L.jsx)(`div`,{className:(0,I.default)(E.base),children:e?(0,L.jsx)(d,{text:e.text,hoverable:!0,children:S}):S})}),W={base:`_base_l86r2_1`,pageHeader:`_pageHeader_l86r2_9`,title:`_title_l86r2_14`,titleRow:`_titleRow_l86r2_18`,subtitle:`_subtitle_l86r2_30`,modal:`_modal_l86r2_35`,toolbarGroup:`_toolbarGroup_l86r2_42`,filtersContainer:`_filtersContainer_l86r2_49`,tabs:`_tabs_l86r2_57`,tabsScrollContainer:`_tabsScrollContainer_l86r2_60`,tabsNavLink:`_tabsNavLink_l86r2_64`,selectedTab:`_selectedTab_l86r2_68`,filtersContent:`_filtersContent_l86r2_71`,dumbFilter:`_dumbFilter_l86r2_75`,dedup:`_dedup_l86r2_82`,search:`_search_l86r2_85`,tabsContainer:`_tabsContainer_l86r2_88`,tabContent:`_tabContent_l86r2_92`,insideTabContainer:`_insideTabContainer_l86r2_99`,buttons:`_buttons_l86r2_102`,clearFiltersButton:`_clearFiltersButton_l86r2_111`,joinTogether:`_joinTogether_l86r2_118`,endorseContent:`_endorseContent_l86r2_130`,filterIcon:`_filterIcon_l86r2_146`,previewFiltersToolbar:`_previewFiltersToolbar_l86r2_
1149`},ye=new Set([`images`,`authorInterests`,`authorInterestCategories`,`authorJobs`,`authorAge`,`authorSubscribers`,`gender`]),G=(0,F.forwardRef)((e,t)=>{let{showGlobalFilters:n,showGlobalSpaceCategories:r,hideCounters:i,countFormat:a,initialFilter:o,triggerButtonLabel:c,title:d,subtitle:p,noFiltersText:g,triggerButton:C,topicId:w,spaceId:E,filterTabsConfig:O,preFetchStats:A,onApply:le,onUpdatePreviewFilter:j}=e,{select:M,dispatch:N}=ae(),P={systemTags:M(e=>v(e,`smartTags`)),subjects:M(ee),aspects:M(ne),trends:M(re),images:M(y),labs:M(ie)},R=e.tabPermissions??P,z={imageBrand:M(te),authorInterests:M(x),authorInterestCategories:M(x),authorJobs:M(x),audioMonitoring:M(b)},V=M(S),H={...e.filterTypePermissions??z,newAudioFormat:V},U=(0,F.useCallback)(e=>N(T.action.sendAnalyticalEvent(e)),[]),[G,K]=(0,F.useState)(!1),[q,be]=(0,F.useState)(0),[J,Y]=(0,F.useState)(o.copyFilter()),{facets:xe,fetchFacets:X}=oe(),Se=s(),Ce=e.globalMode;(0,F.useEffect)(()=>{A&&X(J,w)},[]),(0,F.useImperativeHandle)(t,()=>({open(){Z()}}),[o,w,G]);let we=()=>{le(J),K(!1)},Te=()=>{Y(o),K(!1)},Z=async()=>{K(!0),Y(o),await X(o,w)},Q=async({filter:e})=>{Y(e.copyFilter()),await X(e,w),j?.(e)},$=(e,t)=>{u(e,t,J.copyFilter(),Q)},Ee=(e,t)=>{f(e,t,J.copyFilter(),Q)},De=(e,t)=>{let n=J.copyFilter();(0,he.default)(n[e.name])&&n[e.name]===t?n[e.name]=void 0:n[e.name]=t,Q({filter:n})},Oe=C?F.cloneElement(C,{onClick:Z}):(0,L.jsx)(_,{primary:!0,label:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(m,{type:`filter`,color:`white`,className:(0,I.default)(W.filterIcon)}),c]}),onClick:Z});return(0,L.jsxs)(L.Fragment,{children:[Oe,(0,L.jsxs)(pe,{fitted:!0,isOpen:G,className:(0,I.default)(W.modal),onRequestClose:()=>K(!1),children:[(0,L.jsxs)(`div`,{className:(0,I.default)(W.titleRow),children:[(0,L.jsx)(h,{className:(0,I.default)(W.title),children:d||l(`Filter`)}),p&&(0,L.jsx)(`span`,{className:(0,I.default)(W.subtitle),children:p})]}),ke(),(0,L.jsx)(me,{}),Ae()]})]});function ke(){return(0,L.jsxs)(de,{className:W.previewFiltersToolbar,children:[(0,L.jsx)(fe,{children:(0,L.jsx)(ce,{showGlobalFilters:n,topicId:w,filter:J,noFiltersText:g,onUpdate:e=>Q({filter:e})})}),(0,L.jsxs)(ue,{className:(0,I.default)(W.buttons),children:[(0,L.jsx)(_,{label:l(`Cancel`),onClick:Te}),(0,L.jsx)(_,{primary:!0,label:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(m,{type:`filter`,color:`white`,className:(0,I.default)(W.filterIcon)}),l(`Apply`)]}),onClick:we})]})]})}function Ae(){let e=(e,t)=>!Object.keys(e).filter(e=>!ye.has(e)).includes(t)||e[t]||null,t=(e,t)=>{U({eventType:`New filters: ${e} tab clicked`}),be(t)},n=!Se.pathname.includes(`/mentions`),o=O||(Ce?_e({showGlobalSpaceCategories:r}):B({showMentionsProcessing:n})),s=o[q],c=s.id===`images`?se(R,U)():null;return(0,L.jsxs)(`div`,{className:(0,I.default)(W.filtersContainer),children:[(0,L.jsx)(`div`,{className:(0,I.default)(W.tabs),children:(0,L.jsx)(`div`,{className:(0,I.default)(W.tabsScrollContainer),children:o.filter(Boolean).map((n,r)=>e(R,n.id)&&(0,L.jsx)(`div`,{className:(0,I.default)(W.tabsNavLink,{[W.selectedTab]:q===r}),onClick:()=>t(n.id,r),children:n.label()},n.id))})}),(0,L.jsx)(`div`,{className:(0,I.default)(W.filtersContent),children:(0,L.jsxs)(`div`,{className:(0,I.default)(W.tabContent),children:[s.id===`images`&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ve,{wide:!0,cta:c,placeholder:l(`Search by all visual tags`),onSelect:c?null:(e,t)=>$(t?.customFilterType||`imageObject`,t?.customFilterValue||(Array.isArray(e)?e:[e]))}),(0,L.jsx)(k,{double:!0}),(0,L.jsx)(k,{double:!0})]}),s.filterTypes.filter(Boolean).map(e=>{if(e===`mentionsProcessing`)return(0,L.jsx)(ge,{hideCounters:i,countFormat:a,filter:J,onSelectGlobalOption:e=>De(e,!0),onExcludeGlobalOption:e=>De(e,!1)},e);let t=D.exists(e)?D.get(e):void 0;if(!t?.Component)return null;let n=t.Component;return(0,L.jsx)(n,{hideCounters:i,countFormat:a,onSendAnalyticalEvent:U,onSelect:(t,n)=>$(n?.customFilterType||e,n?.customFilterValue||(Array.isArray(t)?t:[t])),onExclude:(t,n)=>Ee(n?.customFilterType||e,n?.customFilterValue||(Array.isArray(t)?t:[t])),tabPermissions:R,filterTypePermissions:H,facets:xe,filter:J,filterGroupType:t,topicId:w,spaceId:E},e)})]})})]})}}),K=(0,F.memo)(G);export{B as i,W as n,V as r,K as t};

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.