import{ax as c,bd as v,V as u,ao as t,aq as a,b5 as f,bb as x,M as s,Y as m}from"./app-k0jcl5PQ.js";const n="lite.insightsAdminAlert";function h(e){const[l,r]=c(u.INSIGHTS_ADMIN_ALERT,!0,{storage:v.LocalStorage});function d(){r(!1)}function o(){if(!e.video)return e.analyticsUrl;let i="";return e.video.typeId===s.Interactive&&(i=`/interactives/${e.video.id}/views`),e.video.typeId===s.Video&&(i=`/videos/${e.video.id}/views`),e.video.typeId===s.Clip&&(i=`/clips/${e.video.id}/views`),m.safeUrlConcat(e.analyticsUrl,i)}return!e.hasAnalytics||!l?t.jsx(t.Fragment,{}):t.jsxs("div",{role:"alert",className:"d-flex justify-content-between align-items-center bg-light-blue rounded p-2 mb-4",children:[t.jsxs("div",{children:[t.jsx(a,{namespace:n,phrase:"adminAlert"}),t.jsx("a",{className:"text-info",href:o(),target:"_blank",children:t.jsx(a,{namespace:n,phrase:"analytics"})}),"."]}),t.jsx(f,{svg:x,className:"text-blue",onClick:d})]})}export{h as I};
//# sourceMappingURL=bYe0TMNu.chunk.js.map
