"use strict";(self.webpackChunkplex_web_client=self.webpackChunkplex_web_client||[]).push([[3159],{36154:(e,t,r)=>{r.r(t),r.d(t,{default:()=>w});var n=r(96540),a=r(106),i=r(89342),d=r(59147),o=r(94772),c=r(4627),s=r(57122),m=r(54863),u=r(4370),l=r(71468),p=r(1081),y=r(84074);const I=(0,p.Mz)(e=>e.ui.prePlayPage.metadataItem,y.A,(e,t)=>{const r=t[e]||{};return!(!r||!r.isPreFetched)});var E=r(1250),A=r(12639),v=r(25376),f=r(60049),D=r(88923);const h=(0,A.A)(D.A,function(e){const t=e.ui.prePlayPage;return{providerEntityID:t.providerEntityID,metadataKey:t.metadataKey}},function(e,t){e(v.xi({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataKey:t.metadataKey})),e(v.Yx()),e(v.Pt())}),P=(0,l.Ng)(function(){return(0,p.Mz)(e=>e.ui.prePlayPage,I,f.A,E.A,(e,t,r,n)=>{const{metadataItem:a,descendantList:i,isMetadataItemPending:d,metadataItemError:o}=e,c=!d&&!!o;return{metadataItemEntityID:a,metadataListEntityID:i,showSpinner:d&&!t,showError:c,showNotFoundError:c&&404===o.status,activeSelectionType:r.activeSelectionType,columnAdjustment:n.columnAdjustment}})})(h);function w(){const{machineIdentifier:e,providerIdentifier:t}=(0,c.A)(),r=(0,o.A)(),l=(0,s.A)(r.key),p=(0,a.A)(i.yv,e),y=(0,a.A)(i.Su,t,p);return n.createElement(d.A,{metricsContext:(0,s.A)(r.context)},n.createElement(m.A,{machineIdentifier:e,providerIdentifier:t},l?n.createElement(P,{allEpisodes:1===parseInt((0,s.A)(r.allEpisodes),10),metadataKey:l,providerEntityID:y,record:1===parseInt((0,s.A)(r.record),10),serverEntityID:p}):n.createElement(u.A,null)))}}}]);