import{c4 as y,bc as P,az as d,n as i,ao as l,aF as h,L as g,m as x,o as c,W as f,E,r as w}from"./app-k0jcl5PQ.js";import{P as k}from"./dBn0j60R.chunk.js";import"./CGIhFPIn.chunk.js";import"./DLmnDxSd.chunk.js";import"./CW7x8M-z.chunk.js";import"./DV1GpLCe.chunk.js";import"./Di9d6zcy.chunk.js";import"./CKctgafI.chunk.js";import"./C3DvQ1wU.chunk.js";const a=g.encloseNamespace("playlists.editPlaylist");function F(s){const n=y(),o=P(),e=d(i.getPlaylist(s.playlistId)),r=p=>{const m=t=>{o.success(a("success",{name:t.name,escapeText:!0})),c.logUserAction({id:t.id,name:t.name},c.mergeOptions(s.analyticsOptions,{actionType:w.Edit,entity:E.Playlist,workflowPhase:f.Complete})),s.closePopup()},u=()=>{o.error(a("error",{name:e.data.name,escapeText:!0})),s.closePopup()};x(n,i.updatePlaylist(s.playlistId,p,m,u))};return l.jsx(h,{title:a("heading"),closePopup:s.closePopup,showLoadingSpinner:!e.data,children:!!e.data&&l.jsx(k,{playlist:e.data,savePlaylist:r,onClickCancel:s.closePopup,cancelButtonClass:"outline-dark"})})}export{F as EditPlaylistView};
//# sourceMappingURL=DnpI93gJ.chunk.js.map
