PageSourceSearch

https://www.alternativesacademy.com/_app/immutable/nodes/6.DnZzCbWo.js

js alternativesacademy.com collected 2026-10-07 04:04:14 UTC 8,101 bytes, 1 lines download raw bytes

1import{r as ie}from"../chunks/PD1Wq3xD.js";import{a as re,B as oe,t as se}from"../chunks/Cz7TJ_N8.js";import{b as ne,e as K,u as ce,p as fe}from"../chunks/Cpcw7Mkq.js";import{s as de,d as c,b as M,e as T,f as v,q as s,h as C,g as E,j as y,k as q,m as U,l as D,t as B,c as z,y as ue,u as pe,r as me,z as Q,p as G,x as _e}from"../chunks/BKNtQNNn.js";import{S as ve,i as he,d as W,t as X,a as Y,m as Z,c as x,b as ee}from"../chunks/CRbClFUE.js";import{g as be}from"../chunks/2VRwg5Ez.js";import{p as ge}from"../chunks/DB7P-16V.js";import{H as ke,D as we}from"../chunks/_tamt_7K.js";import{t as Ie,o as F}from"../chunks/C0iJBFvR.js";const Ee=async({parent:e})=>{await ne()||ie(303,"/?login=true");let t=[];const r=await re.get("certificate");return r.status===200?t=(await r.json()).map(o=>({...o,downloadUrl:o.downloadUrl??`${oe}/tamtamy/file/download-${o.fileId}.action`})):r.ok||console.error("Unexpected error from list certificate API",await r.text()),{certificates:t}},He=Object.freeze(Object.defineProperty({__proto__:null,load:Ee},Symbol.toStringTag,{value:"Module"}));function te(e,t,r){const o=e.slice();return o[13]=t[r],o}function De(e){let t,r,o,p,a=e[1]("label.profile.title")+"",f,d,k=K(e[3]),i=[];for(let n=0;n<k.length;n+=1)i[n]=le(te(e,k,n));return{c(){t=D("div"),r=D("div"),o=D("div"),p=D("h4"),f=B(a),d=U();for(let n=0;n<i.length;n+=1)i[n].c();this.h()},l(n){t=E(n,"DIV",{class:!0});var h=y(t);r=E(h,"DIV",{class:!0});var l=y(r);o=E(l,"DIV",{class:!0});var I=y(o);p=E(I,"H4",{class:!0});var m=y(p);f=q(m,a),m.forEach(c),I.forEach(c),d=C(l);for(let b=0;b<i.length;b+=1)i[b].l(l);l.forEach(c),h.forEach(c),this.h()},h(){s(p,"class","uppercase t-32"),s(o,"class","col-12"),s(r,"class","row pb-3"),s(t,"class","container-full")},m(n,h){T(n,t,h),v(t,r),v(r,o),v(o,p),v(p,f),v(r,d);for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(r,null)},p(n,h){if(h&2&&a!==(a=n[1]("label.profile.title")+"")&&M(f,a),h&62){k=K(n[3]);let l;for(l=0;l<k.length;l+=1){const I=te(n,k,l);i[l]?i[l].p(I,h):(i[l]=le(I),i[l].c(),i[l].m(r,null))}for(;l<i.length;l+=1)i[l].d(1);i.length=k.length}},d(n){n&&c(t),pe(i,n)}}}function ye(e){let t,r=(e[13].certificateName||e[4])+"",o,p,a,f=e[1]("label.profile.requirement")+"",d,k,i,n=e[1]("label.profile.move")+"",h,l,I;return{c(){t=D("p"),o=B(r),p=U(),a=D("p"),d=B(f),k=U(),i=D("button"),h=B(n),this.h()},l(m){t=E(m,"P",{class:!0});var b=y(t);o=q(b,r),b.forEach(c),p=C(m),a=E(m,"P",{class:!0});var u=y(a);d=q(u,f),u.forEach(c),k=C(m),i=E(m,"BUTTON",{class:!0,"data-link-event":!0});var V=y(i);h=q(V,n),V.forEach(c),this.h()},h(){s(t,"class","t-16 uppercase orange bold"),s(a,"class","pt-3 t-16"),s(i,"class","btn btn-orange btn-arrow-dx mb-3"),s(i,"data-link-event","cta: Go to completed module "+e[13].contentTypeId)},m(m,b){T(m,t,b),v(t,o),T(m,p,b),T(m,a,b),v(a,d),T(m,k,b),T(m,i,b),v(i,h),l||(I=G(i,"click",e[10]),l=!0)},p(m,b){b&2&&f!==(f=m[1]("label.profile.requirement")+"")&&M(d,f),b&2&&n!==(n=m[1]("label.profile.move")+"")&&M(h,n)},d(m){m&&(c(t),c(p),c(a),c(k),c(i)),l=!1,I()}}}function Ve(e){let t,r,o,p,a,f=(e[1](`label.profile.certificate.${e[13].contentTypeId}.title`)||e[13].certificateName||e[4])+"",d,k,i,n,h,l,I=e[1]("label.profile.download")+"",m,b,u,V,S,P=e[1]("label.profile.move")+"",N,H,L;function w(){return e[7](e[13])}function $(){return e[8](e[13])}return{c(){t=D("img"),p=U(),a=D("p"),d=B(f),k=U(),i=D("i"),h=U(),l=D("a"),m=B(I),u=U(),V=D("div"),S=D("button"),N=B(P),this.h()},l(_){t=E(_,"IMG",{alt:!0,class:!0,style:!0,src:!0,title:!0}),p=C(_),a=E(_,"P",{class:!0,title:!0});var g=y(a);d=q(g,f),k=C(g),i=E(g,"I",{class:!0}),y(i).forEach(c),g.forEach(c),h=C(_),l=E(_,"A",{id:!0,href:!0,"aria-label":!0,target:!0,rel:!0,"data-link-event":!0});var O=y(l);m=q(O,I),O.forEach(c),u=C(_),V=E(_,"DIV",{class:!0});var j=y(V);S=E(j,"BUTTON",{class:!0,"data-link-event":!0});var A=y(S);N=q(A,P),A.forEach(c),j.forEach(c),this.h()},h(){s(t,"alt","logo"),s(t,"class","py-3 m-auto cursor-pointer"),_e(t,"max-width","175px"),Q(t.src,r="/badge-alternatives-"+(e[2]||"en")+".png")||s(t,"src",r),s(t,"title",o=e[1]("label.profile.download")),s(i,"class","far fa-file-download ms-2"),s(a,"class","t-16 uppercase cursor-pointer bold"),s(a,"title",n=e[1]("label.profile.download")),s(l,"id","downloadCertificate_"+e[13].certificateId),s(l,"href",e[13].downloadUrl),s(l,"aria-label",b=e[1]("label.profile.download")),s(l,"target","_blank"),s(l,"rel","noreferrer"),l.hidden=!0,s(l,"data-link-event","cta: Download certificate "+e[13].certificateId),s(S,"class","btn btn-orange mr-1"),s(S,"data-link-event","cta: Go to completed module "+e[13].contentTypeId),s(V,"class","d-flex")},m(_,g){T(_,t,g),T(_,p,g),T(_,a,g),v(a,d),v(a,k),v(a,i),T(_,h,g),T(_,l,g),v(l,m),T(_,u,g),T(_,V,g),v(V,S),v(S,N),H||(L=[G(t,"click",w),G(a,"click",$),G(l,"click",F),G(S,"click",e[9])],H=!0)}
1,p(_,g){e=_,g&4&&!Q(t.src,r="/badge-alternatives-"+(e[2]||"en")+".png")&&s(t,"src",r),g&2&&o!==(o=e[1]("label.profile.download"))&&s(t,"title",o),g&2&&f!==(f=(e[1](`label.profile.certificate.${e[13].contentTypeId}.title`)||e[13].certificateName||e[4])+"")&&M(d,f),g&2&&n!==(n=e[1]("label.profile.download"))&&s(a,"title",n),g&2&&I!==(I=e[1]("label.profile.download")+"")&&M(m,I),g&2&&b!==(b=e[1]("label.profile.download"))&&s(l,"aria-label",b),g&2&&P!==(P=e[1]("label.profile.move")+"")&&M(N,P)},d(_){_&&(c(t),c(p),c(a),c(h),c(l),c(u),c(V)),H=!1,me(L)}}}function le(e){let t,r;function o(f,d){return f[13].acquired?Ve:ye}let a=o(e)(e);return{c(){t=D("div"),a.c(),r=U(),this.h()},l(f){t=E(f,"DIV",{class:!0});var d=y(t);a.l(d),r=C(d),d.forEach(c),this.h()},h(){s(t,"class","offset-sm-2 offset-md-0 col-sm-8 col-md-4 col-lg-3 col-xl-3 col-xxl-3 pb-3")},m(f,d){T(f,t,d),a.m(t,null),v(t,r)},p(f,d){a.p(f,d)},d(f){f&&c(t),a.d()}}}function Se(e){var H,L;let t,r,o,p,a,f,d,k,i=((H=e[0])==null?void 0:H.info.fullName)+"",n,h,l,I=((L=e[0])==null?void 0:L.info.mail)+"",m,b,u,V,S,P;t=new ke({});let N=e[3].length>0&&De(e);return S=new we({}),{c(){ee(t.$$.fragment),r=U(),o=D("div"),p=D("div"),a=D("div"),f=D("div"),d=D("div"),k=D("h2"),n=B(i),h=U(),l=D("p"),m=B(I),b=U(),N&&N.c(),u=U(),V=D("div"),ee(S.$$.fragment),this.h()},l(w){x(t.$$.fragment,w),r=C(w),o=E(w,"DIV",{class:!0,id:!0});var $=y(o);p=E($,"DIV",{id:!0});var _=y(p);a=E(_,"DIV",{class:!0});var g=y(a);f=E(g,"DIV",{class:!0});var O=y(f);d=E(O,"DIV",{class:!0});var j=y(d);k=E(j,"H2",{class:!0});var A=y(k);n=q(A,i),A.forEach(c),h=C(j),l=E(j,"P",{class:!0});var R=y(l);m=q(R,I),R.forEach(c),j.forEach(c),O.forEach(c),g.forEach(c),b=C(_),N&&N.l(_),u=C(_),V=E(_,"DIV",{class:!0});var J=y(V);x(S.$$.fragment,J),J.forEach(c),_.forEach(c),$.forEach(c),this.h()},h(){s(k,"class","t-32"),s(l,"class","t-16 bold mt-1 mb-0"),s(d,"class","col-md-12"),s(f,"class","row"),s(a,"class","container-full stripe bg-black"),s(V,"class","container"),s(p,"id","main-content"),s(o,"class","main-wrapper foglia profilo"),s(o,"id","wrapper")},m(w,$){Z(t,w,$),T(w,r,$),T(w,o,$),v(o,p),v(p,a),v(a,f),v(f,d),v(d,k),v(k,n),v(d,h),v(d,l),v(l,m),v(p,b),N&&N.m(p,null),v(p,u),v(p,V),Z(S,V,null),P=!0},p(w,[$]){var _,g;(!P||$&1)&&i!==(i=((_=w[0])==null?void 0:_.info.fullName)+"")&&M(n,i),(!P||$&1)&&I!==(I=((g=w[0])==null?void 0:g.info.mail)+"")&&M(m,I),w[3].length>0&&N.p(w,$)},i(w){P||(Y(t.$$.fragment,w),Y(S.$$.fragment,w),P=!0)},o(w){X(t.$$.fragment,w),X(S.$$.fragment,w),P=!1},d(w){w&&(c(r),c(o)),W(t,w),N&&N.d(),W(S)}}}function ae(e){var t;(t=document.getElementById(`downloadCertificate_${e.certificateId}`))==null||t.click()}function Te(e,t,r){let o,p,a,f;z(e,ce,u=>r(0,o=u)),z(e,ge,u=>r(11,p=u)),z(e,se,u=>r(1,a=u)),z(e,fe,u=>r(2,f=u));let{data:d}=t;const{modules:k,certificates:i}=d;let n=a("label.profile.default");ue(()=>{Ie({pageName:p.url.pathname,siteSection:"content",siteSubSection:"my profile",siteSubSubSection:"",userId:(o==null?void 0:o.id)??null,isLocked:!0})});function h(){const u=k[0];be(`/modules/${u.editionId??u.id}`)}const l=u=>ae(u),I=u=>ae(u),m=u=>F(u,h),b=u=>F(u,h);return e.$$set=u=>{"data"in u&&r(6,d=u.data)},[o,a,f,i,n,h,d,l,I,m,b]}class Le extends ve{constructor(t){super(),he(this,t,Te,Se,de,{data:6})}}export{Le as component,He as universal};

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.