"use strict";(self.webpackChunkplex_web_client=self.webpackChunkplex_web_client||[]).push([[9544],{78868:(e,t,r)=>{r.r(t),r.d(t,{default:()=>g});var n=r(11504),a=r(18168),i=r(6084),c=r(79048),d=r(39968),o=r(18730),s=r(75536),m=r(50249),l=r(55e3),u=r(27876),p=r(57864),y=r(94952);const I=(0,p.M3)((e=>e.ui.prePlayPage.metadataItem),y.c,((e,t)=>{const r=t[e]||{};return!(!r||!r.isPreFetched)}));var E=r(32516),v=r(45272),f=r(99516),D=r(95924),h=r(40072);const P=(0,v.c)(h.c,(function(e){const t=e.ui.prePlayPage;return{providerEntityID:t.providerEntityID,metadataKey:t.metadataKey}}),(function(e,t){e(f.gp({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataKey:t.metadataKey})),e(f.yU()),e(f.AV())})),w=(0,u.Ul)((function(){return(0,p.M3)((e=>e.ui.prePlayPage),I,D.c,E.c,((e,t,r,n)=>{const{metadataItem:a,descendantList:i,isMetadataItemPending:c,metadataItemError:d}=e,o=!c&&!!d;return{metadataItemEntityID:a,metadataListEntityID:i,showSpinner:c&&!t,showError:o,showNotFoundError:o&&404===d.status,activeSelectionType:r.activeSelectionType,columnAdjustment:n.columnAdjustment}}))}))(P);function g(){const{machineIdentifier:e,providerIdentifier:t}=(0,o.c)(),r=(0,d.c)(),u=(0,s.c)(r.key),p=(0,a.c)(i.qe,e),y=(0,a.c)(i.SF,t,p);return n.createElement(c.c,{metricsContext:(0,s.c)(r.context)},n.createElement(m.c,{machineIdentifier:e,providerIdentifier:t},u?n.createElement(w,{allEpisodes:1===parseInt((0,s.c)(r.allEpisodes),10),metadataKey:u,providerEntityID:y,record:1===parseInt((0,s.c)(r.record),10),serverEntityID:p}):n.createElement(l.c,null)))}}}]);