import{i6 as L,az as g,dK as k,ay as j,ao as e,aF as v,L as P,p as r,ij as f,ih as S,bU as a}from"./app-k0jcl5PQ.js";import{C as w}from"./BlyWclzH.chunk.js";import{b as R}from"./BWkfKZwD.chunk.js";const o=P.encloseNamespace("shared.viewCurriculumLinks");function V(u){const{preferredCurriculum:t,availableCurriculums:c,curriculumLinks:n,mappedCurriculums:l,updateCurriculum:m,hasCompleted:d,isFetching:p}=L(u.id),C=g(k.video(u.id)),{hasNewSearch:h}=j(null);function s(i){m(i,{shouldLog:!0,locationContext:r.Popup,video:C.data})}return e.jsxs(v,{title:o("heading"),closePopup:u.closePopup,size:"lg",children:[e.jsx(w,{availableCurriculums:c,onChangeCurriculum:s,selectedCurriculum:t}),e.jsx("div",{className:"pb-3",children:e.jsx(R,{curriculumLinks:n,onChangeCurriculum:s,hasCompleted:d,mappedCurriculums:l,isFetching:p,getCodeAppLink:(i,x)=>h?f.getSearchAppLink(i,{[S]:x}):null,locationContext:r.ViewCurriculumLinks})}),e.jsx(a,{children:e.jsx(a.Submit,{variant:"dark",onClick:u.closePopup,text:o("close")})})]})}export{V as ViewCurriculumLinksView};
//# sourceMappingURL=D_2rX44l.chunk.js.map
