PageSourceSearch

https://learner.mycreds.ca/assets/js/vtr_mPz0.js

js mycreds.ca collected 2026-09-25 18:17:43 UTC 3,541 bytes, 1 lines download raw bytes

1import{j as e,T as i}from"./D0VmeZlM.js";import{f as K,u as f,h as I}from"./DgBbrFyH.js";import{a1 as k,$ as D,c as _,d as v,N as F,t as N}from"./sRY3DiEn.js";import{u as l,e as C,S as V,o as G}from"./CyRrnge5.js";import{f as M}from"./CvC4n2yY.js";import{u as q,B as O,M as m}from"./DJO6hRfa.js";import{u as R,B as Q}from"./IQ8bETys.js";import{T as s}from"./b95EBUvu.js";import{S as $}from"./B-dxpwYh.js";import{T as E}from"./Cqj-9p0s.js";import{L as z}from"./Bbhejz9A.js";import{L as a}from"./D-ssxArA.js";import"./BnM-9d2U.js";import"./Dz3gSq_o.js";import"./CBZfO2as.js";import"./jdsya_lk.js";import"./D36g4Ajs.js";import"./DkeiFY1T.js";import"./CVr06Fmx.js";import"./D6f4ctCm.js";import"./Q80QacKX.js";import"./DCzhpi49.js";import"./B_xUSyJX.js";import"./C0sfc55m.js";import"./BUTNxTb_.js";import"./k47b_wdx.js";import"./BSLjVo1R.js";import"./DqWon3xb.js";import"./BmYz3S0b.js";import"./D37_80EJ.js";import"./DFoj3xVP.js";import"./hqIi6cvT.js";import"./DlO6kpen.js";function H(){const{t}=l("badgeView","assertionNotFound.info"),{skin:n}=C();return e.jsxs(e.Fragment,{children:[e.jsx(i,{variant:"h2",children:e.jsx(s,{t,i18nKey:"title"})}),e.jsx(i,{gutterBottom:!0,children:e.jsx(s,{t,i18nKey:"p1"})}),e.jsx(i,{gutterBottom:!0,children:e.jsx(s,{t,i18nKey:"p2"})}),e.jsx(i,{gutterBottom:!0,children:e.jsx(s,{t,i18nKey:"credentials.title"})}),e.jsxs("ul",{children:[e.jsx("li",{children:e.jsx(s,{t,i18nKey:"credentials.item1",context:n})}),e.jsx("li",{children:e.jsx(s,{t,i18nKey:"credentials.item2"})}),e.jsx("li",{children:e.jsx(s,{t,i18nKey:"credentials.item3"})})]}),n==="ca"&&e.jsx(i,{gutterBottom:!0,children:e.jsx(s,{t,i18nKey:"p3"})}),e.jsxs(V,{direction:"row",spacing:4,children:[e.jsx(k,{children:t("more")}),n!=="ca"&&e.jsx(D,{href:"https://www.digitary.net/contact",children:t("contact")})]})]})}function J(){const{t}=l("badgeView","assertionNotFound");return e.jsxs($,{info:e.jsx(H,{}),children:[e.jsx(i,{variant:"h1",sx:{mb:1.5},children:t("title")}),e.jsx(i,{gutterBottom:!0,children:e.jsx(s,{t,i18nKey:"description"})}),e.jsx(G,{variant:"ul",children:t("reasons",{returnObjects:!0})}),e.jsx(i,{gutterBottom:!0,children:t("instruction")})]})}function Ae(){const{t}=l("badgeView"),n=_(),d=K(v.CuratedProfileExternalBadge),w=f(),u=f(),c=d?u.assertionId:w.id;if(!c)throw new Error("Assertion ID is required");const x=d?u.shareId:void 0;if(d&&!x)throw new Error("Share ID is required for profile share badge");const[b]=I(),y=b.get("showGrade")!=="1",{data:r,isError:B}=M({assertionId:c,shareId:x}),[P,p]=q(r==null?void 0:r.badge_class_extensions),[S,h]=R(r,{hideGrade:y});if(B)return e.jsx(J,{});if(p.isError||h.isError)throw new F;if(!r||p.isLoading||h.isLoading)return e.jsx(E,{children:e.jsx(z,{})});const o=r.expiry_date&&new Date(r.expiry_date),j=!!o&&N(o);return e.jsx(E,{documentTitle:r.name,children:e.jsx(O,{leftColumn:o&&j&&e.jsx(Q,{date:o}),meta:e.jsxs(e.Fragment,{children:[e.jsx(a,{label:t("recipient"),children:r.recipient_name}),e.jsx(a,{label:t("awarded"),children:e.jsx(m,{date:new Date(r.issued),format:"datetime"})}),o&&!j&&e.jsx(a,{label:t("expires"),children:e.jsx(m,{date:o,format:"datetime"})}),S.map(({id:L,name:T,value:g,format:A})=>e.jsx(a,{label:T,children:A==="date-time"?e.jsx(m,{date:new Date(g),format:"date"}):g},L))]}),image:r.image,id:c,name:r.name,description:r.description,issuerId:r.issuer_id,issuerName:r.issuer_name,tags:r.tags,criteria:r.criteria,alignments:r.alignments,evidence:r.evidence,extensions:P,backButton:n==null?void 0:n.showBackButton,verification:!0})})}export{Ae 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.