PageSourceSearch

https://incommand.ai/assets/CertificationDetail-C0L8HJ5x.js

js incommand.ai collected 2026-10-05 15:01:42 UTC 7,256 bytes, 15 lines download raw bytes

1import{j as e}from"./vendor-radix-BnNg3BH5.js";import{i as _,L as x}from"./vendor-react-67mgcWXU.js";import{d as v,s as g,B as h}from"./index-Epr9psQo.js";import{C as l,d as n,a as c,b as m}from"./card-DpKBVi42.js";import{B as p}from"./badge-Cl7apleB.js";import{A as b,b as k,a as C}from"./avatar-DkXZyfFy.js";import{S as t}from"./skeleton-CXDkv5zX.js";import{a as N}from"./vendor-query-PMAhJHCS.js";import{A as f}from"./arrow-left-BKCvbsa9.js";import{A as u}from"./award-DbGMuPfd.js";import{C as M}from"./calendar-Ce69BthR.js";import{E as j}from"./external-link-DnfaRxEP.js";import{U as B}from"./users-uAR6_Qvs.js";import{B as A}from"./briefcase-DJg8wfqE.js";import"./vendor-supabase-CTlrDMdV.js";import"./vendor-charts-Dck3qfzI.js";import"./vendor-motion-CSzk-Fqg.js";import"./vendor-editor-CEJKB4cc.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const L=v("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]);function T(r){return N({queryKey:["certification-catalog","detail",r],queryFn:async()=>{if(!r)return null;const{data:s,error:i}=await g.from("certification_catalog").select("*").eq("id",r).single();if(i)throw i;return s},enabled:!!r})}function q(r){return N({queryKey:["certification-holders",r],queryFn:async()=>{if(!r)return[];const{data:s,error:i}=await g.from("profile_certifications").select(`
7          *,
8          profiles:profile_id (
9            id,
10            full_name,
11            title,
12            avatar_url,
13            user_id
14          )
15        `).eq("certification_id",r);if(i)throw i;return s},enabled:!!r})}function Y(){const{id:r}=_(),{data:s,isLoading:i,error:y}=T(r),{data:d,isLoading:w}=q(r);return i?e.jsxs("div",{className:"container max-w-4xl py-8 space-y-6",children:[e.jsx(t,{className:"h-8 w-48"}),e.jsxs("div",{className:"flex gap-6",children:[e.jsx(t,{className:"h-24 w-24 rounded-lg"}),e.jsxs("div",{className:"flex-1 space-y-2",children:[e.jsx(t,{className:"h-8 w-64"}),e.jsx(t,{className:"h-5 w-96"}),e.jsx(t,{className:"h-5 w-32"})]})]}),e.jsx(t,{className:"h-32 w-full"})]}):y||!s?e.jsxs("div",{className:"container max-w-4xl py-8",children:[e.jsx(h,{variant:"ghost",asChild:!0,className:"mb-4",children:e.jsxs(x,{to:"/team",children:[e.jsx(f,{className:"mr-2 h-4 w-4"}),"Back"]})}),e.jsx(l,{children:e.jsxs(n,{className:"py-12 text-center",children:[e.jsx(u,{className:"mx-auto h-12 w-12 text-muted-foreground mb-4"}),e.jsx("h2",{className:"text-xl font-semibold",children:"Certification Not Found"}),e.jsx("p",{className:"text-muted-foreground mt-2",children:"This certification may have been removed or doesn't exist."})]})})]}):e.jsxs("div",{className:"container max-w-4xl py-8 space-y-6",children:[e.jsx(h,{variant:"ghost",asChild:!0,children:e.jsxs(x,{to:"/team",children:[e.jsx(f,{className:"mr-2 h-4 w-4"}),"Back to Team"]})}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-6",children:[s.badge_image_url?e.jsx("img",{src:s.badge_image_url,alt:s.name,className:"h-24 w-24 object-contain rounded-lg bg-muted p-2"}):e.jsx("div",{className:"h-24 w-24 flex items-center justify-center bg-primary/10 rounded-lg",children:e.jsx(u,{className:"h-12 w-12 text-primary"})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-start gap-2 mb-2",children:[e.jsx("h1",{className:"text-3xl font-bold",children:s.name}),s.category&&e.jsx(p,{variant:"outline",className:"text-sm",children:s.category})]}),s.full_name&&e.jsx("p",{className:"text-lg text-muted-foreground mb-2",children:s.full_name}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-sm text-muted-foreground",children:[s.issuer&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(L,{className:"h-4 w-4"}),"Issued by ",s.issuer]}),s.is_renewable&&s.typical_renewal_years&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(M,{className:"h-4 w-4"}),"Renews every ",s.typical_renewal_years," year",s.typical_renewal_years>1?"s":""]})]}),s.learn_more_url&&e.jsx(h,{variant:"outline",size:"sm",className:"mt-3",asChild:!0,children:e.jsxs("a",{href:s.learn_more_url,target:"_blank",rel:"noopener noreferrer",children:[e.jsx(j,{className:"mr-2 h-4 w-4"}),"Learn More"]})})]})]}),s.description&&e.jsxs(l,{children:[e.jsx(c,{children:e.jsx(m,{className:"text-lg",children:"What This Certification Means"})}),e.jsx(n,{children:e.jsx("p",{className:"text-muted-foreground whitespace-pre-wrap",children:s.description})})]}),s.skills&&s.skills.length>0&&e.jsxs(l,{children:[e.jsx(c,{children:e.jsx(m,{className:"text-lg",children:"Skills Demonstrated"})}),e.jsx(n,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:s.skills.map(a=>e.jsx(p,{variant:"secondary",className:"text-sm",children:a},a))})})]}),s.earning_criteria&&s.earning_criteria.length>0&&e.jsxs(l,{children:[e.jsx(c,{children:e.jsx(m,{className:"text-lg",children:"How to Earn This Certification"})}),e.jsx(n,{children:e.jsx("ul",{className:"list-disc list-inside space-y-1 text-muted-foreground",children:s.earning_criteria.map((a,o)=>e.jsx("li",{children:a},o))})})]}),e.jsxs(l,{children:[e.jsx(c,{children:e.jsxs(m,{className:"text-lg flex items-center gap-2",children:[e.jsx(B,{className:"h-5 w-5"}),"Team Members with This Certification"]})}),e.jsx(n,{children:w?e.jsx("div",{className:"space-y-3",children:[1,2,3].map(a=>e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(t,{className:"h-10 w-10 rounded-full"}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(t,{className:"h-4 w-32"}),e.jsx(t,{className:"h-3 w-24"})]})]},a))}):d&&d.length>0?e.jsx("div",{className:"space-y-3",children:d.map(a=>e.jsxs(x,{to:`/team/${a.profiles?.user_id}`,className:"flex items-center gap-3 p-2 rounded-lg hover:bg-muted transition-colors",children:[e.jsxs(b,{children:[e.jsx(k,{src:a.profiles?.avatar_url}),e.jsx(C,{children:a.profiles?.full_name?.split(" ").map(o=>o[0]).join("")})]}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:a.profiles?.full_name}),a.profiles?.title&&e.jsx("p",{className:"text-sm text-muted-foreground",children:a.profiles.title})]})]},a.id))}):e.jsx("p",{className:"text-muted-foreground text-center py-6",children:"No team members currently hold this certification."})})]}),s.credly_template_url&&e.jsx(l,{children:e.jsx(n,{className:"py-4",children:e.jsxs("a",{href:s.credly_template_url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between hover:bg-muted/50 p-2 rounded-lg transition-colors",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(A,{className:"h-5 w-5 text-muted-foreground"}),e.jsx("span",{children:"View on Credly"})]}),e.jsx(j,{className:"h-4 w-4 text-muted-foreground"})]})})})]})}export{Y as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.