"use strict";(self.webpackChunkplex_web_client=self.webpackChunkplex_web_client||[]).push([[5800],{48884:(e,t,n)=>{n.r(t),n.d(t,{default:()=>K});var r=n(11504),i=n(18168),a=n(6084),c=n(79048),l=n(39968),o=n(18730),s=n(75536),m=n(50249),u=n(27876),p=n(57864),y=n(32516),d=n(45272),v=n(31564),h=n(95924),E=n(40072),f=n(59396),I=n(66532),w=n(95292),b=n(3268),g=n.n(b),D=n(52908);function x(e){const t=e["aria-label"],n=e.className,i=e.style,a={strokeLinejoin:"round",strokeMiterlimit:"1.414",viewBox:"0 0 560 560",xmlns:"http://www.w3.org/2000/svg",id:"plex-icon-toolbar-remove-from-playlist-560"};a["aria-hidden"]=!t,a.style=i,a.className=D.c.plexIcon+(n?" "+n:"");const c=[r.createElement.apply(r,["path",{d:"m560 504h-336v-44.8h336zm0-134.4h-336v-44.8h336zm-464.965-188.478 63.357-63.357 31.679 31.678-63.357 63.357 63.357 63.357-31.679 31.678-63.357-63.356-63.356 63.356-31.679-31.678 63.357-63.357-63.357-63.357 31.679-31.678zm464.965 54.078h-252v-44.8h252zm0-134.4h-336v-44.8h336z"}].concat([]))];return t&&c.unshift(r.createElement("title",null,t)),r.createElement.apply(r,["svg",a].concat(c))}x.propTypes={"aria-label":g().string,className:g().string,style:g().object};const P=x,k=(0,u.Ul)(null,(function(e,t){return{onRemovePress(){e(v.EN())}}}))((function({onRemovePress:e}){return r.createElement(I.c,{tooltip:(0,f.c)("Remove from Playlist"),tooltipAttachment:w.gb,onPress:e},r.createElement(P,null))})),j=(0,d.c)(E.c,(function(e){const t=e.ui.playlistPage;return{serverEntityID:t.serverEntityID,metadataKey:t.metadataKey}}),(function(e,t){e(v.gj({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataKey:t.metadataKey})),e(v.ys())})),z=(0,u.Ul)((function(e,t){return(0,p.M3)((e=>e.ui.playlistPage),y.c,h.c,((e,t,n)=>{const{playlist:r,isPlaylistPending:i,playlistError:a}=e,c=!i&&!!a;return{metadataItemEntityID:r,showSpinner:i,showError:c,showNotFoundError:c&&404===a.status,columnAdjustment:t.columnAdjustment,activeSelectionType:n.activeSelectionType,multiSelectToolbarComponent:k}}))}))(j);function K(){const{machineIdentifier:e,providerIdentifier:t}=(0,o.c)(),n=(0,l.c)(),u=(0,i.c)(a.qe,e),p=(0,i.c)(a.SF,t,u);return r.createElement(m.c,{machineIdentifier:e,providerIdentifier:t},r.createElement(c.c,{metricsContext:(0,s.c)(n.context)},r.createElement(z,{machineIdentifier:e,metadataKey:(0,s.c)(n.key),providerEntityID:p,serverEntityID:u})))}}}]);