1import{a as k}from"./chunk-VH4OKDZP.js";import{a as T}from"./chunk-PIO6G74C.js";import{a as x}from"./chunk-CGRUFO52.js";import{a as E}from"./chunk-77NMTAFC.js";import{a as S}from"./chunk-BCPZPP5Y.js";import"./chunk-2SZU4ZME.js";import{b as q,e as b}from"./chunk-DAO3SMRL.js";import"./chunk-Z5DLUQQM.js";import"./chunk-TYFWTMGI.js";import"./chunk-I73U4EKQ.js";import{Ab as P,Bb as M,Cb as O,Db as i,Dc as f,Eb as o,Fb as d,Sb as l,Ua as r,Yb as u,Z as c,fb as h,kc as p,lc as C,oa as m,wb as s,xb as _}from"./chunk-UWUNFDSH.js";import"./chunk-HSCBD3RX.js";var y=(e,t)=>[e,t],N=(e,t)=>t.key;function I(e,t){e&1&&(i(0,"section",4)(1,"div",9)(2,"h1",10),l(3,0),o(),i(4,"p",11),l(5,1),o()()());}function U(e,t){e&1&&(i(0,"div",6),d(1,"div",12),o());}function Z(e,t){e&1&&(i(0,"div",7),d(1,"i",13),i(2,"p"),l(3,2),o()());}function Q(e,t){if(e&1&&(i(0,"p",18),p(1),o()),e&2){let n=u().$implicit;r(),C(n.description);}}function A(e,t){if(e&1&&(i(0,"a",14)(1,"div",15),d(2,"i",13),o(),i(3,"div",16)(4,"h3",17),p(5),o(),s(6,Q,2,1,"p",18),i(7,"span",19)(8,"span"),l(9,3),o(),d(10,"i",20),o()()()),e&2){let n=t.$implicit,a=u(2);O("routerLink",f(3,y,a.quizzesBase,n.key)),r(5),C(n.title),r(),_(n.description?6:-1);}}function w(e,t){if(e&1&&(i(0,"div",8),P(1,A,11,6,"a",14,N),o()),e&2){let n=u();r(),M(n.quizzes());}}function R(e,t){e&1&&d(0,"app-find-dietitian-cta");}var v=class e{quizService=c(k);languageService=c(S);seo=c(x);tracking=c(E);route=c(q);portalMode=this.route.snapshot.data.mode==="portal";quizzesBase=this.portalMode?"/portal/quizzes":"/quizzes";quizzes=m([]);loading=m(!0);ngOnInit(){this.seo.setMetaTags({title:"Free Health Self-Assessment Quizzes \u2014 Vitena",description:"Free, science-based self-assessment quizzes including Mediterranean-diet adherence. Get your instant score \u2014 no account needed.",ogType:"website",robots:"index, follow"}),this.tracking.trackPageVisit("/quizzes"),this.load();}ngOnDestroy(){this.seo.cleanup();}load(){this.loading.set(!0),this.quizService.list(this.languageService.currentLanguage()).subscribe({next:t=>{this.quizzes.set(t),this.loading.set(!1);},error:()=>{this.quizzes.set([]),this.loading.set(!1);}});}static ɵfac=function(n){return new(n||e)();};static ɵcmp=h({type:e,selectors:[["app-quizzes-hub"]],decls:6,vars:3,consts:()=>{let t;t="Free health self-assessments";let n;n=" Answer a few questions and get an instant, science-based score \u2014 free, no account needed. ";let a;a="No assessments are available right now. Please check back soon.";let z;return z="Take the quiz",[t,n,a,z,[1,"quiz-hero"],[1,"quiz-container"],[1,"quiz-loading"],[1,"quiz-empty"],[1,"quiz-grid"],[1,"quiz-hero-inner"],[1,"quiz-title"],[1,"quiz-subtitle"],[1,"spinner"],[1,"bi","bi-clipboard2-pulse"],[1,"quiz-card",3,"routerLink"],[1,"quiz-card-icon"],[1,"quiz-card-body"],[1,"quiz-card-name"],[1,"quiz-card-desc"],[1,"quiz-card-cta"],[1,"bi","bi-arrow-right"]];},template:function(n,a){n&1&&(s(0,I,6,0,"section",4),i(1,"div",5),s(2,U,2,0,"div",6)(3,Z,4,0,"div",7)(4,w,3,0,"div",8),s(5,R,1,0,"app-find-dietitian-cta"),o()),n&2&&(_(a.portalMode?-1:0),r(2),_(a.loading()?2:a.quizzes().length===0?3:4),r(3),_(a.portalMode?-1:5));},dependencies:[b,T],styles:['[_nghost-%COMP%]{display:block;background:#f8f9fa;min-height:70vh}.quiz-hero[_ngcontent-%COMP%]{background:linear-gradient(135deg,#03a791,#02d1ac);color:#fff;padding:3rem 1.5rem 2.5rem;text-align:center}.quiz-hero-inner[_ngcontent-%COMP%]{max-width:760px;margin:0 auto}.quiz-title[_ngcontent-%COMP%]{font-size:2rem;font-weight:800;margin-bottom:.5rem}.quiz-subtitle[_ngcontent-%COMP%]{opacity:.92;font-size:1.05rem;margin:0}.quiz-container[_ngcontent-%COMP%]{max-width:1000px;margin:0 auto;padding:1.75rem 1.5rem}.quiz-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.25rem}.quiz-card[_ngcontent-%COMP%]{background:#fff;border-radius:14px;overflow:hidden;text-decoration:none;color:inherit;box-shadow:0 1px 3px #00000014;transition:transform .15s,box-shadow .15s;display:flex;align-items:stretch}.quiz-card[_ngcontent-%COMP%]:hover{transform:translateY(-3px);box-shadow:0 6px 18px #0000001f}.quiz-card-icon[_ngcontent-%COMP%]{flex:none;width:64px;background:#e8f5f3;display:flex;align-items:center;justify-content:center}.quiz-card-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.6rem;color:#03a791}.quiz-card-body[_ngcontent-%COMP%]{padding:1.1rem 1.25rem;display:flex;flex-direction:column;gap:.45rem;flex:1}
1.quiz-card-name[_ngcontent-%COMP%]{font-size:1.1rem;font-weight:700;color:#212529;margin:0;line-height:1.3}.quiz-card-desc[_ngcontent-%COMP%]{font-size:.875rem;color:#6c757d;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.quiz-card-cta[_ngcontent-%COMP%]{margin-top:auto;display:inline-flex;align-items:center;gap:.4rem;color:#03a791;font-weight:600;font-size:.9rem}.quiz-card[_ngcontent-%COMP%]:hover .quiz-card-cta[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{transform:translate(3px)}.quiz-card-cta[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{transition:transform .15s}.quiz-loading[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:4rem}.spinner[_ngcontent-%COMP%]{width:40px;height:40px;border:3px solid #e8f5f3;border-top-color:#03a791;border-radius:50%;animation:_ngcontent-%COMP%_spin .8s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}.quiz-empty[_ngcontent-%COMP%]{text-align:center;padding:4rem 1rem;color:#999}.quiz-empty[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:3rem;color:#cfe8e3}[data-theme="dark"][_nghost-%COMP%], [data-theme="dark"] [_nghost-%COMP%]{background:#0f172a}[data-theme="dark"][_nghost-%COMP%] .quiz-card[_ngcontent-%COMP%], [data-theme="dark"] [_nghost-%COMP%] .quiz-card[_ngcontent-%COMP%]{background:#1e293b;box-shadow:0 1px 3px #0006}[data-theme="dark"][_nghost-%COMP%] .quiz-card[_ngcontent-%COMP%]:hover, [data-theme="dark"] [_nghost-%COMP%] .quiz-card[_ngcontent-%COMP%]:hover{box-shadow:0 6px 18px #00000080}[data-theme="dark"][_nghost-%COMP%] .quiz-card-icon[_ngcontent-%COMP%], [data-theme="dark"] [_nghost-%COMP%] .quiz-card-icon[_ngcontent-%COMP%]{background:#0cc4ac24}[data-theme="dark"][_nghost-%COMP%] .quiz-card-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%], [data-theme="dark"] [_nghost-%COMP%] .quiz-card-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#0cc4ac}[data-theme="dark"][_nghost-%COMP%] .quiz-card-name[_ngcontent-%COMP%], [data-theme="dark"] [_nghost-%COMP%] .quiz-card-name[_ngcontent-%COMP%]{color:#f1f5f9}[data-theme="dark"][_nghost-%COMP%] .quiz-card-desc[_ngcontent-%COMP%], [data-theme="dark"] [_nghost-%COMP%] .quiz-card-desc[_ngcontent-%COMP%]{color:#94a3b8}[data-theme="dark"][_nghost-%COMP%] .quiz-card-cta[_ngcontent-%COMP%], [data-theme="dark"] [_nghost-%COMP%] .quiz-card-cta[_ngcontent-%COMP%]{color:#0cc4ac}[data-theme="dark"][_nghost-%COMP%] .spinner[_ngcontent-%COMP%], [data-theme="dark"] [_nghost-%COMP%] .spinner[_ngcontent-%COMP%]{border-color:#334155;border-top-color:#0cc4ac}[data-theme="dark"][_nghost-%COMP%] .quiz-empty[_ngcontent-%COMP%], [data-theme="dark"] [_nghost-%COMP%] .quiz-empty[_ngcontent-%COMP%]{color:#94a3b8}[data-theme="dark"][_nghost-%COMP%] .quiz-empty[_ngcontent-%COMP%] i[_ngcontent-%COMP%], [data-theme="dark"] [_nghost-%COMP%] .quiz-empty[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#334155}']});};export{v as QuizzesHubComponent};/**i18n:124ccf68d2f1268c4040d7fd92ec0e6a8c443ba8f9b9e552a35ffacd4fbcb105*/
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.