import{ao as e,ck as u,L as p,bU as i}from"./app-k0jcl5PQ.js";import{P as d}from"./CGIhFPIn.chunk.js";import{F as l}from"./DV1GpLCe.chunk.js";import{F as x,u as h}from"./C3DvQ1wU.chunk.js";const P="playlists.playlistDetails",s=p.encloseNamespace(P);function b(a){const t=h();return e.jsxs(u,{children:[e.jsx(l,{label:s("nameLabel"),type:"text",name:"name",id:"name",placeholder:s("namePlaceholder"),autoFocus:!0,value:t.values.name,showRequiredStar:!0}),e.jsx(l,{label:s("descriptionLabel"),component:"textarea",name:"description",id:"description",placeholder:s("descriptionPlaceholder"),value:t.values.description}),e.jsxs(i,{children:[e.jsx(i.Cancel,{onClick:a.onClickCancel}),e.jsx(i.Submit,{variant:"dark",isNew:a.isNew,text:a.submitText})]})]})}function y(a){const{playlist:{name:t="",description:n="",id:o=null}={},savePlaylist:r,onClickCancel:c,cancelButtonClass:m}=a;return e.jsx(x,{initialValues:{name:t,description:n},validationSchema:d,onSubmit:r,children:e.jsx(b,{isNew:!o,onClickCancel:c,cancelButtonClass:m,submitText:a.submitText})})}export{y as P};
//# sourceMappingURL=dBn0j60R.chunk.js.map
