import{ao as t,p as f,az as c,fL as L,aj as A,bN as j,bO as C,bP as l,L as v,aX as H,fp as k,c3 as w,dy as I}from"./app-k0jcl5PQ.js";import{B as N}from"./CCtuxSlD.chunk.js";import{P as D,V as S,a as W}from"./DH1mz64H.chunk.js";import{u as B}from"./CtFw3Moj.chunk.js";import{u as M,V as R}from"./BUtU6IOA.chunk.js";import{u as U}from"./DDxzgH2W.chunk.js";import{u as _}from"./DgW9Cwsn.chunk.js";import{u as q}from"./4IZETxJX.chunk.js";import"./CPXlV0fg.chunk.js";import"./BlKMjFEf.chunk.js";import"./CofWDDSQ.chunk.js";import"./DwvfEevL.chunk.js";import"./D9SGbB34.chunk.js";import"./BwBaQklX.chunk.js";import"./ByBCp1MC.chunk.js";import"./BhYYYlpK.chunk.js";import"./FGhEvk_q.chunk.js";import"./WCBjpMHJ.chunk.js";import"./DoFMWlew.chunk.js";import"./CMnqIsoM.chunk.js";import"./eerUhItV.chunk.js";import"./Cukd0Qmt.chunk.js";import"./B31bqZwo.chunk.js";import"./uoUaCILN.chunk.js";import"./f_twTV5Z.chunk.js";import"./BDeUEvb2.chunk.js";import"./Daim1zo7.chunk.js";import"./B3XH0kWB.chunk.js";import"./BRhv_AHY.chunk.js";import"./BDviDDog.chunk.js";import"./wCY37Ze3.chunk.js";import"./CIN5bTKK.chunk.js";import"./DAIetGMf.chunk.js";import"./TReHo2Ua.chunk.js";import"./Bj7bJt_4.chunk.js";import"./CGYNvpr2.chunk.js";import"./U4M4wGTR.chunk.js";import"./Bw9otuBi.chunk.js";import"./BvnABNse.chunk.js";import"./Bh7bFXwG.chunk.js";import"./DCdUbbLx.chunk.js";import"./t24_x3Gi.chunk.js";import"./BAuuQuuB.chunk.js";const y="_partialHeading_n7dp5_1",Q={partialHeading:y};function T(){return t.jsxs("div",{className:"px-3",children:[t.jsx("div",{className:`partial-loading-background mb-2 ${Q.partialHeading}`}),t.jsx(D,{})]})}const z="dashboard.dashboardWidget",E=v.encloseNamespace(z);function Bt(o){var n,p,m;const{widgetId:s,presentationSlug:r}=o,{commonVideoProps:u}=U({locationContext:f.VideoThumbnail}),g=M({location:R.VideoItem,presentationSlug:r}),e=c(s&&L.dashboardWidgetContent(s)),x=c(A.currentUser()),i=(n=e.data)==null?void 0:n.content;q(i),j(C.getDefaultMetadata({title:(p=e.data)==null?void 0:p.name,phraseContext:{phraseHandler:E,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:l.getCanonicalLink({stripPresentationSlug:!0}),allowIndexing:l.allowIndexing()}));const h=_(),{hasPermissions:P}=H(),b=B({name:(m=e.data)==null?void 0:m.name});return!e.data||!(i!=null&&i.length)?t.jsx(T,{}):t.jsx(S.Provider,{value:g,children:t.jsxs("div",{className:"px-3",children:[t.jsx("h1",{className:"h2 mb-2",children:e.data.name}),t.jsx(N,{breadcrumbs:b}),t.jsx(W,{videos:i,getVideoAppLink:(a,V)=>{var d;return w.getAppLink(a,{...V,context:I.Widget,contextId:o.widgetId,includeContext:(d=x.data)==null?void 0:d.isAuthenticated},r)},hasPermissions:P,presentationAudiences:h.data,getPreviewQuestionsAppLink:a=>k.getPreviewQuestionsAppLink(a),commonVideoProps:u})]})})}export{Bt as CuratedDashboardWidgetView};
//# sourceMappingURL=kFehAyqc.chunk.js.map
