PageSourceSearch

https://static.operabase.com/b02d0c7a-dc1f-4b83-8723-114bf8e68402/_next/static/chunks/4468.cfda4dc573d548ba.js

js operabase.com collected 2026-09-24 17:11:24 UTC 10,375 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="64e4fd7c-611c-4f91-9a35-da303345dfc9",e._sentryDebugIdIdentifier="sentry-dbid-64e4fd7c-611c-4f91-9a35-da303345dfc9")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4468],{2062:(e,t,a)=>{"use strict";a.d(t,{A:()=>_});var i=a(95155),r=a(12115),n=a(83693),o=a.n(n),s=a(97532),l=a(61634),d=a(37222);let _=e=>{let{value:t,onChange:a,label:n,styles:_,customOptions:c,params:u={},fullWidth:A=!1,renderMenuListItem:m,trackingData:g={}}=e,[p,y]=(0,r.useState)(!1),{data:E,refetch:N,isLoading:T=!1}=(0,l.IT)((0,d.aggregationsByEntityList)({...u?.queryParams||{},aggregationOn:u?.aggregationOn,aggregationType:u?.aggregationType,limit:u?.pagination?.limit||20,...u?.pagination||{}},{enabled:!1})),I=(0,r.useMemo)(()=>o()(N,300),[N]),{fieldOptions:S,selectedValue:h}=(0,r.useMemo)(()=>{if(c?.length>0)return c;let e=E?.data?.find(e=>e?.id===Number(t?.id))||t;return{fieldOptions:E?.data?.map(e=>({...e,value:e?.id,label:e?.name}))||[],selectedValue:{...e,...e?.name&&{label:t?.name||e?.name}}}},[c,E?.data,t]),R=(0,r.useCallback)((e,t)=>{e?.type==="change"&&a({label:t})},[a]);return(0,r.useEffect)(()=>{(p&&!c?.length||u.enableQuery)&&I()},[p,I,c,u]),(0,i.jsx)(s.A,{label:n,options:S,className:_,value:h,onChange:(e,t)=>
1{a(t||"")},onInputChange:R,isLoading:p&&T&&!c?.length,onOpen:()=>{y(!0)},onClose:()=>{y(!1)},fullWidth:A,renderMenuListItem:m,trackingData:g},n)}},6160:(e,t,a)=>{"use strict";a.d(t,{z:()=>i});let i=e=>{if("string"==typeof e)return e;if(!(e=>"object"==typeof e&&null!==e&&"pathname"in e)(e))return"";let t=(e.pathname||"").replace(/\/+$/,"")||"/",a=(e=>{if(!e)return"";if(e instanceof URLSearchParams){let t=e.toString();return t?`?${t}`:""}let t=new URLSearchParams;Object.entries(e).forEach(e=>{let[a,i]=e;null!=i&&""!==i&&t.append(a,String(i))});let a=t.toString();return a?`?${a}`:""})(e.query);return`${t}${a}`}},54468:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>T});var i=a(95155),r=a(12115),n=a(20063),o=a(64956),s=a(87123),l=a(2062),d=a(89050),_=a(78715),c=a(6097),u=a(5409),A=a(43891),m=a(46800),g=a(22377),p=a(6160),y=a(42732);let E={work:"",composer:"",organization:"",artist:""};function N(e,t){switch(t.type){case A._U.MUSICAL_WORK:return{...e,work:t.payload};case A._U.COMPOSER:return{...e,composer:t.payload,work:null};case A._U.ORGANIZATION:return{...e,organization:t.payload};case A._U.ARTISTS:return{...e,artist:t.payload};case A._U.RESET:return{...E};default:throw Error()}}let T=e=>{let{activeTab:t,trackingData:a={}}=e,{t:T}=(0,g.useTranslation)("NS_APP_GLOBALS"),I=(0,n.useRouter)(),S=(0,n.usePathname)(),h=(0,n.use
1SearchParams)(),R=S?.includes(A.bu.OPERA_ONLINE?.toLowerCase()),O=R?h?.get("individual_id"):void 0,C=R?h?.get("work_creator_id"):void 0,b=R?h?.get("work_id"):void 0,v=R?h?.get("organization_id"):void 0,[f,x]=(0,r.useReducer)(N,E,()=>({...O&&{artist:{value:O,id:O}},...C&&{composer:{value:C,id:C}},...b&&{work:{value:b,id:b}},...v&&{organization:{value:v,id:v}}})),P=[{Component:l.A,value:f?.composer,type:A._U.COMPOSER,params:{endpoint:(0,_.FILTER_AGGREGATION_SEARCH)(_.MEDIA),queryParams:{aggregation_type:"work_creator_id",aggregation_query:f?.composer?.label,organization_id:f.organization?.id,individual_id:f.artist?.id,work_id:f.work?.id,work_creator_id:f.composer?.id},enableQuery:!!f.composer?.id},onChange:e=>x({type:A._U.COMPOSER,payload:e}),label:T(`${c.TP}.m_COMPOSER`),fullWidth:!0,renderMenuListItem:(e,t)=>(0,i.jsx)("li",{...e,children:(0,i.jsx)(o.A,{entity:t,entityType:y.ENTITY_TYPES.PROFILE,variant:s.x.LANDSCAPE_MINI,disableNavigation:!0,trackingData:a})})},{Component:l.A,value:{...f?.musicalWork,...f?.musicalWork?.id&&{name:(0,m.uC)(f?.musicalWork,!0,!0)}},type:A._U.MUSICAL_WORK,params:{endpoint:(0,_.FILTER_AGGREGATION_SEARCH)(_.MEDIA),queryParams:{aggregation_type:"work_id",aggregation_query:f?.work?.label,organization_id:f.organization?.id,individual_id:f.artist?.id,work_creator_id:f.composer?.id,work_id:f.work?.id},enableQuery:!!f.work?.id},onChange:e=>x({type:A._U.MUSICAL_WORK,payload:e}),label:T(`${c.TP}.m_MUSICALWORK`),fullWidth:!0,renderMenuListItem:(e,t)=>(0,i.jsx)("li",{...e,children:(0,i.jsx)(o.A,{entity:t,entityType:y.ENTITY_TYPES.WORK,variant:s.x.LANDSCAPE_MINI,disableNavigation:!0,trackingData:a})})},{Component:l.A,value:f?.organization,type:A._U.ORGANIZATION,params:{endpoint:(0,_.FILTER_AGGREGATION_SEARCH)(_.MEDIA),queryParams:{aggregation_type:"organization_id",aggregation_query:f?.organization?.label,work_creator_id:f.composer?.id,individual_id:f.artist?.id,work_id:f.work?.id,organization_id:f.organization?.id},enableQuery:!!f.organization?.id},onChange:e=>x({type:A._U.ORGANIZATION,payload:e}),label:T(`${c.TP}.FN_ORG`),fullWidth:!0,renderMenuListItem:(e,t)=>(0,i.jsx)("li",{...e,children:(0,i.jsx)(o.A,{entity:t,entityType:y.ENTITY_TYPES.ORGANIZATION,variant:s.x.LANDSCAPE_MINI,disableNavigation:!0,trackingData:a})})},{Component:l.A,value:f?.artist,type:A._U.ARTISTS,params:{endpoint:(0,_.FILTER_AGGREGATION_SEARCH)(_.MEDIA),queryParams:{aggregation_type:"individual_id",aggregation_query:f?.artist?.label,work_creator_id:f.composer?.id,organization_id:f.organization?.id,work_id:f.work?.id,individual_id:f.artist?.id},enableQuery:!!f.artist?.id},label:T(`${c.TP}.m_ARTISTS`),onChange:e=>x({type:A._U.ARTISTS,payload:e}),fullWidth:!0,renderMenuListItem:(e,t)=>(0,i.jsx)("li",{...e,children:(0,i.jsx)(o.A,{entity:t,entityType:y.ENTITY_TYPES.PROFILE,variant:s.x.LANDSCAPE_MINI,disableNavigation:!0,trackingData:a})})}];return(0,i.jsx)(d.A,{activeTab:t,onReset:()=>{x({type:A._U.RESET})},onSearch:()=>{let e={sort:"-performance",has_posters:!0,is_valid_ls_vod:!0,is_production_published:!0,media_type_id:4,...f.work?.id&&{work_id:f.work?.id},...f.organization?.id&&{organization_id:f.organization?.id},...f.composer?.id&&{work_creator_id:f.composer?.id},...f.artist?.id&&{individual_id:f.artist?.id}};I.push((0,p.z)({pathname:`${u.Ay.VIDEOS}/search`,query:e}))},linkProps:{href:u.Ay.VIDEOS,as:u.Ay.VIDEOS},disabled:!f.composer?.value&&!f.work?.value&&!f.artist?.value&&!f.organization?.value,trackingData:a,children:P.map((e,t)=>{let{Component:a,...r}=e;return(0,i.jsx)(a,{...r},t)})})}},70311:e=>{e.exports={wrapper:"ob_IDMAT4",wrapper__subtitle:"ob_3W2n4L",content:"ob_4tvRZM",actions:"ob_DTmM9y",discoverEntity:"ob_H5o8oL",stats:"ob_SBxN57",stats__section:"ob_jsAPgn",stats__section_title:"ob_BXLgTb",concluding:"ob_6FcOdW"}},89050:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var i=a(95155);a(12115);var r=a(86194),n=a(15468),o=a.n(n),s=a(95143),l=a(11348),d=a(92905),_=a(96286),c=a(74906),u=a(6097),A=a(43891),m=a(61634),g=a(37222),p=a(55667),y=a(28554),E=a(22377),N=a(70311),T=a.n(N);let I={[A.m7.PERFORMANCES]:{text:"PRODUCTIONS_AND_PERFORMANCES_SUBTITLE",params:{performancesCount:"50000+"}},[A.m7.ARTISTS]:{text:"FN_ARTIST_SEARCH_SUBTITLE"},[A.m7.OPERA_ONLINE]:{text:"PRODUCTIONS_AND_PERFORMANCES_VIDEOS_SUBTITLE",params:{performancesCount:"650,000+"}},[A.m7.COMPANIES]:{text:"FN_FINDCOMPANIESBYCOUNTRY"}
1,[A.m7.FESTIVAL]:{text:"FN_FINDFESTIVALSBYCOUNTRY"},[A.m7.MANAGER]:{text:"FN_FINDMANAGERSANDAGENCIESBYCOUNTRY"},[A.m7.COMPOSERS]:{text:"FIND_COMPOSERS_BY_NAME"},[A.m7.COMPETITIONS]:{text:"FIND_COMPETITIONS_SUBTITLE"},[A.m7.VENUES]:{text:"FIND_VENUES_BY_COUNTRY"}},S=e=>{let{t,festivals:a,companies:r,artists:n,managers:o,performances:s}=e;return(0,i.jsxs)("div",{className:T().stats,children:[(0,i.jsxs)("div",{className:T().stats__section,children:[a?.total>0&&(0,i.jsxs)(_.Ay,{size:"12",weight:"medium",children:[a?.total,(0,i.jsx)(_.Ay,{size:"12",color:"secondary",className:T().stats__section_title,children:t(A.GM[A.m7.FESTIVAL])})]}),r?.total>0&&(0,i.jsxs)(_.Ay,{size:"12",weight:"medium",children:[r?.total,(0,i.jsx)(_.Ay,{size:"12",color:"secondary",className:T().stats__section_title,children:t(A.GM[A.m7.COMPANIES])})]}),n?.total>0&&(0,i.jsxs)(_.Ay,{size:"12",weight:"medium",children:[n?.total,(0,i.jsx)(_.Ay,{size:"12",color:"secondary",className:T().stats__section_title,children:t(A.GM[A.m7.ARTISTS])})]})]}),(0,i.jsxs)("div",{className:T().stats__section,children:[o?.total>0&&(0,i.jsxs)(_.Ay,{size:"12",weight:"medium",children:[o?.total,(0,i.jsx)(_.Ay,{size:"12",color:"secondary",className:T().stats__section_title,children:t(A.GM[A.m7.MANAGER])})]}),s?.total>0&&(0,i.jsxs)(_.Ay,{size:"12",weight:"medium",children:[s?.total,(0,i.jsx)(_.Ay,{size:"12",color:"secondary",className:T().stats__section_title,children:t(A.GM[A.m7.PERFORMANCES])})]})]})]})},h=e=>{let{children:t,activeTab:a,onSearch:n,onReset:N,disabled:h=!1,linkProps:R,isClearText:O=!1,styles:C={actions:"",wrapper:"",searchBtn:"",clearBtn:""},showConcludingBlock:b=!0,trackingData:v={},filterState:f}=e,{t:x}=(0,E.useTranslation)("NS_DISPLAY_V4"),{isMobile:P}=(0,y.Ay)(),{data:k,isLoading:w}=(0,m.IT)((0,g.homeNumbers)());return(0,i.jsxs)("div",{className:(0,r.default)(T().wrapper,{[C.wrapper]:!!C.wrapper}),children:[(0,i.jsxs)("div",{className:T().content,children:[P&&I?.[a]?.text&&(0,i.jsx)(_.Ay,{variant:"p",color:"secondary",className:T().wrapper__subtitle,children:x(`${u.TP}.${I[a].text}`,I[a].params||{})}),t,P&&b&&(0,i.jsxs)("div",{className:T().concluding,children:[(0,i.jsxs)(l.Ay,{variant:"tertiary",...R,styles:{root:T().discoverEntity},isLink:!0,children:[x(`${u.TP}.FN_DISCOVER_ALL`,{tab:x(A.GM[a])}),(0,i.jsx)(d.Ay,{icon:"chevron_right",size:14})]}),!w&&k?.data&&(0,i.jsx)(S,{t:x,...k.data})]})]}),(0,i.jsxs)("div",{className:(0,r.default)(T().actions,{[C.actions]:!!C.actions}),children:[(0,i.jsx)(s.A,{variant:"tertiary",rightIcon:(0,i.jsx)(d.Ay,{icon:"restart_alt"}),onClick:N,className:(0,r.default)({[C.clearBtn]:!!C.clearBtn}),trackingData:{...v,subComponent:c.kU.CLEAR_CTA,meta:{...v.meta,tab:a}},children:x(O?`${u.TP}.FORM_CLEAR_ALL`:`${u.TP}.RESET`)}),(0,i.jsx)(s.A,{onClick:n,disabled:h,shape:"rectangle",className:(0,r.default)(T().searchButton,{[C.searchBtn]:!!C.searchBtn}),trackingData:{...v,subComponent:c.kU.SEARCH_CTA,meta:{filters:o()(f,(e,t,a)=>{let i=(e=>e&&"string"!=typeof e&&"object"==typeof e?(0,p.vd)(e)?(0,p.JO)(e).format(u.DATE_FORMATS.FULL_DATE):e.id||e.name:e)(t);return{...e,...i&&{[a]:i}}},{}),...v.meta,tab:a}},children:x(`${u.TP}.SEARCH`)})]})]})}}}]);

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.