import{j as e,E as g,F as s,d2 as h,br as t,a9 as c,o as p,s as x,r as k,ag as L,cw as P,g as l,h as n,i as d}from"./app-BgLa5dit.js";import{C as V}from"./Bt9p_RvA.chunk.js";import{b as v}from"./bfau-xCV.chunk.js";import{u as b}from"./B3BWduXu.chunk.js";const o="shared.videoGuidanceClassroomGuidePopup",m=350;function j(i){function a(u){return i.curriculums.updateCurriculum(u,{shouldLog:!0,video:i.video,locationContext:t.CurriculumGuidancePopup})}return e.jsx(g,{closePopup:i.onClickClose,showLoadingSpinner:i.isLoading,title:s.getPhrase(o,"curriculumLinks"),size:"lg",children:!i.isLoading&&e.jsxs(e.Fragment,{children:[e.jsxs(h,{autoHeightMax:m,autoHeightMin:m,autoHeight:!0,className:"pb-3",renderThumbVertical:({style:u,...r})=>e.jsx("div",{...r,style:{...u,borderRadius:"inherit",backgroundColor:"rgba(0, 0, 0, 0.2)",zIndex:5},className:"thumb-vertical"}),children:[e.jsx(V,{availableCurriculums:i.curriculums.availableCurriculums,onChangeCurriculum:a,selectedCurriculum:i.curriculums.preferredCurriculum}),e.jsx("div",{className:"pb-3",children:e.jsx(v,{curriculumLinks:i.curriculums.curriculumLinks,onChangeCurriculum:a,hasCompleted:i.curriculums.hasCompleted,mappedCurriculums:i.curriculums.mappedCurriculums,isFetching:i.curriculums.isFetching,getCodeAppLink:i.getCodeAppLink,locationContext:t.CurriculumGuidancePopup})})]}),e.jsxs(c,{children:[e.jsx(c.Cancel,{onClick:i.onClickClose,text:s.getPhrase(o,"close")}),e.jsx(c.Submit,{text:s.getPhrase(o,"viewVideo"),variant:"dark",onClick:i.onClickViewVideo})]})]})})}function w(i){function a(){return i.type===L.Video?x.video(i.id):k.clip(i.id)}const u=p(a()),r=b();function C(){if(P.isVideo(u.data)){l.trigger({application:d.VIDEOS,action:n.Videos.EDIT_VIDEO,args:[u.data.id]}),i.closePopup();return}l.trigger({application:d.CLIPS,action:n.Clips.EDIT_CLIP_DETAILS,args:[u.data.id]}),i.closePopup()}return e.jsx(j,{isLoading:!u.hasCompleted,video:u.data,curriculums:r,onClickClose:i.closePopup,onClickViewVideo:C,closePopup:i.closePopup})}export{w as VideoGuidanceClassroomGuideView};
//# sourceMappingURL=EyNKiMvs.chunk.js.map
