import{j as e,E as m,Y as s,h as n,i,Q as l,af as o,R as p,gX as x}from"./app-BgLa5dit.js";function c({label:a,url:r}){const[d,t]=p.useState("Copy");function u(){t("Copied!"),setTimeout(()=>{t("Copy")},2e3)}return e.jsxs(e.Fragment,{children:[e.jsx("label",{className:"form-label",children:a}),e.jsxs("div",{className:"input-group mb-3",children:[e.jsx("input",{type:"text",className:"form-control",value:r,readOnly:!0}),e.jsx(x,{text:r,onCopy:u,children:e.jsx("button",{type:"button",className:"btn btn-outline-dark border-secondary input-group-text",children:d})})]})]})}function b(a){return e.jsxs(m,{title:"Livestream links",closePopup:a.closePopup,children:[a.livestreamUrl&&e.jsx(c,{label:"Zoom join link",url:a.livestreamUrl}),a.registrationUrl&&e.jsx(c,{label:"Zoom registration link",url:a.registrationUrl}),e.jsxs("div",{className:"row",children:[a.recordingMasterId&&e.jsxs("div",{className:"form-group col-6",children:[e.jsx("label",{className:"form-label",htmlFor:"recordingMasterId",children:"Recording ID"}),e.jsxs("div",{className:"input-group mb-3",children:[e.jsx("input",{id:"recordingMasterId",type:"text",className:"form-control",value:a.recordingMasterId,readOnly:!0}),e.jsx(s,{appLink:{application:i.STREAMABLE_LEARNING,action:n.StreamableLearning.EDIT_VIDEO,args:[a.recordingMasterId]},onClick:a.closePopup,openInNewTab:!0,className:"btn btn-outline-dark border-secondary input-group-text",children:e.jsx(l,{svg:o})})]})]}),a.pastRecordingMasterId&&e.jsxs("div",{className:"form-group col-6",children:[e.jsx("label",{className:"form-label",htmlFor:"pastRecordingMasterId",children:"Past recording ID"}),e.jsxs("div",{className:"input-group mb-3",children:[e.jsx("input",{id:"pastRecordingMasterId",type:"text",className:"form-control",value:a.pastRecordingMasterId,readOnly:!0}),e.jsx(s,{appLink:{application:i.STREAMABLE_LEARNING,action:n.StreamableLearning.EDIT_VIDEO,args:[a.pastRecordingMasterId]},openInNewTab:!0,onClick:a.closePopup,className:"btn btn-outline-dark border-secondary input-group-text",children:e.jsx(l,{svg:o})})]})]})]})]})}export{b as StreamableLivestreamLinks};
//# sourceMappingURL=Cno4-WU2.chunk.js.map
