"use strict";(self.webpackChunkplex_web_client=self.webpackChunkplex_web_client||[]).push([[7516],{23213:(e,t,n)=>{n.r(t),n.d(t,{default:()=>K});var r=n(96540),i=n(106),a=n(89342),l=n(59147),o=n(94772),s=n(4627),c=n(57122),m=n(54863),u=n(71468),p=n(1081),y=n(1250),d=n(12639),v=n(10283),h=n(60049),E=n(88923),f=n(46772),A=n(35518),I=n(54409),w=n(5556),g=n.n(w),D=n(31182);function b(e){const t=e["aria-label"],n=e.className,i=e.style,a={fillRule:"evenodd",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.A.plexIcon+(n?" "+n:"");const l=[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&&l.unshift(r.createElement("title",null,t)),r.createElement.apply(r,["svg",a].concat(l))}b.propTypes={"aria-label":g().string,className:g().string,style:g().object};const x=b,P=(0,u.Ng)(null,(function(e,t){return{onRemovePress(){e(v.g$())}}}))((function({onRemovePress:e}){return r.createElement(A.A,{tooltip:(0,f.A)("Remove from Playlist"),tooltipAttachment:I.ZD,onPress:e},r.createElement(x,null))})),k=(0,d.A)(E.A,(function(e){const t=e.ui.playlistPage;return{serverEntityID:t.serverEntityID,metadataKey:t.metadataKey}}),(function(e,t){e(v.KD({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataKey:t.metadataKey})),e(v.vx())})),z=(0,u.Ng)((function(e,t){return(0,p.Mz)((e=>e.ui.playlistPage),y.A,h.A,((e,t,n)=>{const{playlist:r,isPlaylistPending:i,playlistError:a}=e,l=!i&&!!a;return{metadataItemEntityID:r,showSpinner:i,showError:l,showNotFoundError:l&&404===a.status,columnAdjustment:t.columnAdjustment,activeSelectionType:n.activeSelectionType,multiSelectToolbarComponent:P}}))}))(k);function K(){const{machineIdentifier:e,providerIdentifier:t}=(0,s.A)(),n=(0,o.A)(),u=(0,i.A)(a.yv,e),p=(0,i.A)(a.Su,t,u);return r.createElement(m.A,{machineIdentifier:e,providerIdentifier:t},r.createElement(l.A,{metricsContext:(0,c.A)(n.context)},r.createElement(z,{machineIdentifier:e,metadataKey:(0,c.A)(n.key),providerEntityID:p,serverEntityID:u})))}}}]);