1import{p as d,i as se}from"../chunks/Dc6_onEy.js";import{u as vt,p as ut,v as u,w as ht,t as S,f as Ge,y as c,s as l,g as e,a as H,b as F,c as mt,d as b,e as i,r as n,z as Fe,i as h,A as pt}from"../chunks/CsBVOSR8.js";import{e as O,i as G}from"../chunks/GstqTZ4a.js";import{g as _t,f as Se,t as oe,s as Ct,a as xt,B as yt}from"../chunks/D-K9wX1S.js";import{b as je}from"../chunks/C98SS-bb.js";import{o as wt}from"../chunks/E50abzmc.js";import{F as J,t as Lt,f as bt}from"../chunks/CqyfWL0P.js";import{p as K}from"../chunks/BN_PHlrE.js";import{B as Tt}from"../chunks/g_QcLuAj.js";import{D as kt}from"../chunks/CS7RFldB.js";import{H as Bt}from"../chunks/ZG72-6bF.js";import{I as Pt}from"../chunks/rHu4YKxe.js";import{B as Mt}from"../chunks/Dy6sN7ga.js";import{G as At}from"../chunks/h1TFXkE2.js";import{S as Ot}from"../chunks/fuq5Wi4s.js";import{B as Gt}from"../chunks/WmBINrIi.js";import{C as Ft}from"../chunks/BXOWbcvG.js";import{M as St}from"../chunks/4xtI4AFO.js";import{I as jt}from"../chunks/DnQ1Iwd8.js";import{c as It}from"../chunks/Bg6F8fnA.js";import{c as Zt}from"../chunks/B1CFBjgn.js";const N=(j,a=Fe,k=Fe)=>{var B=Dt();B.__click=[Ht,a,k];var D=i(B),_=i(D,!0);n(D),pt(2),n(B),H(()=>h(_,k().label)),F(j,B)};var Ht=(j,a,k)=>Lt(a(),k()),Dt=S('<button class="flex gap-1 items-center bg-h-white hover:bg-[#F2F2F2] text-h-gr-2 border border-h-gr-1/20 p-2"><span class="text-h-gr-1"> </span> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.99982 10.1213L12.2392 14.3606L14.3605 12.2393L10.1211 7.99994L14.3605 3.7606L12.2392 1.63928L7.99982 5.87862L3.76048 1.63928L1.63916 3.7606L5.8785 7.99994L1.63916 12.2393L3.76048 14.3606L7.99982 10.1213Z" fill="currentColor"></path></svg></button>'),zt=(j,a)=>c(a,!e(a)),Et=S("<hr>"),Yt=S('<a class="flex flex-col self-start p-4 gap-4 overflow-y-hidden hover:bg-h-black/5 focus:shadow-h-focus bg-h-white transition-all duration-300"><div class="flex flex-col md:flex-row justify-between items-center gap-8"><div class="flex flex-wrap justify-center md:justify-start items-center gap-2"></div> <div class="flex items-center gap-2"><span class="text-h-gr-1"> </span> <!> <span class="text-h-black font-bold"> </span></div></div> <div class="flex flex-col md:flex-row items-center gap-8"><!> <div class="flex flex-col gap-2"><span class="h3 group-hover:text-h-hsn-1"> </span> <!></div></div></a> <!>',1),Rt=S('<div class="grid gap-4 h-full"></div>'),qt=S('<div class="flex flex-col gap-4 items-center self-center"><svg width="96" height="96" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_875_74111)"><path d="M6.00016 -0.00244141C2.9045 -0.00244141 0.382812 2.51924 0.382812 5.61491C0.382812 6.70547 0.700415 7.72332 1.23996 8.58429C1.39302 8.31261 1.57669 8.09832 1.74123 7.93761C1.3624 7.24883 1.14812 6.45674 1.14812 5.61491C1.14812 2.94016 3.32541 0.762865 6.00016 0.762865C8.6749 0.762865 10.8522 2.94016 10.8522 5.61491C10.8522 8.04475 9.05756 10.0537 6.72337 10.4057C6.71572 10.555 6.68511 10.7004 6.62388 10.8343C6.66215 10.9453 6.68128 11.0639 6.68511 11.1825C9.45934 10.8419 11.6175 8.47715 11.6175 5.61108C11.
16213 2.51924 9.09965 -0.00244141 6.00016 -0.00244141Z" fill="#13A256"></path><path d="M4.46174 5.08971C4.89709 5.08971 5.25001 4.7368 5.25001 4.30145C5.25001 3.8661 4.89709 3.51318 4.46174 3.51318C4.0264 3.51318 3.67348 3.8661 3.67348 4.30145C3.67348 4.7368 4.0264 5.08971 4.46174 5.08971Z" fill="#13A256"></path><path d="M8.32693 4.30145C8.32693 4.7368 7.97401 5.08971 7.53866 5.08971C7.10332 5.08971 6.7504 4.7368 6.7504 4.30145C6.7504 3.9458 6.98593 3.64516 7.30952 3.54701C7.18936 3.55022 7.08142 3.56137 6.98898 3.57551C6.87785 3.59252 6.7904 3.61365 6.73283 3.62975C6.7041 3.63779 6.68297 3.64452 6.67024 3.64878C6.66387 3.65091 6.65962 3.65242 6.65759 3.65315C6.65759 3.65315 6.65823 3.65289 6.52072 3.29579C6.3832 2.9387 6.38345 2.93861 6.38345 2.93861L6.38555 2.93781L6.38881 2.93658L6.39809 2.93319C6.40547 2.93052 6.41526 2.92709 6.42734 2.92305C6.4515 2.91496 6.4849 2.90442 6.52672 2.89272C6.61025 2.86936 6.728 2.84123 6.87325 2.81901C7.1631 2.77467 7.56746 2.75312 8.02936 2.84377C8.45293 2.9272 8.80302 3.0764 9.04683 3.20413C9.16921 3.26825 9.2663 3.32772 9.33421 3.37223C9.3682 3.39452 9.39501 3.41313 9.41415 3.42682C9.42372 3.43366 9.43139 3.43928 9.43709 3.44352L9.44416 3.44882L9.44657 3.45066L9.4475 3.45137C9.4475 3.45137 9.44824 3.45194 9.2146 3.75498C8.98095 4.05802 8.98111 4.05814 8.98111 4.05814C8.97909 4.05664 8.97462 4.05336 8.969 4.04934C8.95777 4.04131 8.9395 4.02857 8.91466 4.01229C8.8649 3.97967 8.78932 3.93319 8.69167 3.88204C8.49753 3.78032 8.22179 3.66305 7.89244 3.59684C8.15013 3.72647 8.32693 3.99331 8.32693 4.30145Z" fill="#13A256"></path><path d="M7.3392 7.74349C7.56496 7.68992 7.79838 7.8315 7.85196 8.06109L7.85578 8.06874C7.90935 8.29834 7.76777 8.52793 7.53818 8.5815L5.51777 9.05982C5.73588 9.01772 5.95782 9.15548 6.01139 9.37742C6.06497 9.60701 5.92338 9.8366 5.69379 9.89017L5.48716 9.93992C5.69762 9.91313 5.90425 10.0432 5.954 10.2575C6.00757 10.4871 5.86598 10.7167 5.63639 10.7703L5.49864 10.8047C5.73588 10.8047 5.92721 10.996 5.92721 11.2333C5.92721 11.4399 5.77415 11.6045 5.57899 11.6466L4.30093 11.9527C4.16701 11.9871 4.0216 12.0024 3.87236 12.0024C3.06114 12.0024 2.11981 11.5394 1.84813 10.7588C1.3392 9.29323 2.10068 8.63124 2.51012 8.27538L2.58282 8.21415C2.87364 7.95395 3.00757 7.74349 3.07644 7.42971C3.12619 7.2116 3.05731 6.82895 3.01905 6.67589C2.96165 6.4463 3.09558 6.21288 3.32517 6.15548C3.55476 6.09425 3.78818 6.23201 3.84558 6.4616L3.84756 6.46993C3.87084 6.56723 4.01049 7.15083 3.91063 7.60573C3.81497 8.03431 3.62364 8.37104 3.29073 8.70395L7.3392 7.74349Z" fill="#13A256"></path><path d="M4.40247 6.9895C4.40247 6.9895 4.4026 6.98946 4.30142 6.62043C4.20023 6.2514 4.20038 6.25136 4.20038 6.25136L4.20188 6.25095L4.20457 6.25022L4.21304 6.24799C4.22002 6.24617 4.22967 6.2437 4.24179 6.24072C4.26601 6.23475 4.30018 6.2267 4.34277 6.2176C4.42776 6.19942 4.54731 6.17681 4.6889 6.15827C4.96742 6.12178 5.3521 6.09812 5.73231 6.16745C6.18201 6.25005 6.57076 6.46819 6.83632 6.6522C6.97142 6.74582 7.08055 6.83468 7.15665 6.90083C7.19481 6.934 7.22496 6.96172 7.24624 6.98182C7.25688 6.99187 7.26533 7.00004 7.27147 7.00606L7.27895 7.01344L7.28137 7.01586L7.2826 7.0171C7.2826 7.0171 7.28289 7.0174 7.0106 7.28624C6.7383 7.55509 6.73843 7.55522 6.73843 7.55522L6.73595 7.55279L6.72994 7.54695L6.72073 7.53818C6.70644 7.52467 6.68409 7.50408 6.65457 7.47842C6.59531 7.4269 6.50832 7.35601 6.40044 7.28125C6.18009 7.12857 5.89498 6.97549 5.59476 6.9203C5.32453 6.87106 5.02819 6.88567 4.7883 6.91709C4.67064 6.9325 4.5716 6.95127 4.50281 6.96598C4.46851 6.97332 4.442 6.97959 4.42475 6.98383C4.41614 6.98595 4.40986 6.98756 4.4061 6.98854L4.40247 6.9895Z" fill="#13A256"></path><path d="M5.11356 2.78311C4.89922 2.72889 4.59952 2.67801 4.25773 2.68981C3.89469 2.70318 3.59365 2.79158 3.38414 2.87638C3.27966 2.91867 3.19917 2.95958 3.14664 2.98867C3.12043 3.00319 3.10133 3.01468 3.08986 3.02182C3.08412 3.02538 3.08031 3.02785 3.07848 3.02904C3.07848 3.02904 3.07902 3.02865 2.8627 2.71301C2.64639 2.39736 2.6466 2.39722 2.6466 2.39722L2.64846 2.39595L2.65136 2.394L2.65962 2.38854C2.66621 2.38423 2.67497 2.3786 2.68583 2.37185C2.70753 2.35836 2.73771 2.34032 2.77582 2.3192C2.85197 2.27703 2.96041 2.22227 3.097 2.16698C3.36956 2.05666 3.75907 1.94228 4.23005 1.925C4.66105 1.91006 5.03544 1.97393 5.30126 2.04118C5.43465 2.07493 5.54237 2.10989 5.61837 2.13714C5.65641 2.15077 5.68664 2.16252 5.70831 2.17128C5.71915 2.17567 5.72786 2.17931 5.73435 2.18207L5.74241 2.18555L5.74517 2.18676L5.74623 2.18723C5.74623 2.18723 5.74707 2.1876 5.59102 2.53699C5.43496 2.88637 5.43514 2.88645 5.43514 2.88645C5.43284 2.88547 5.42774 2.88334 5.42138 2.88076C5.40864 2.87561 5.38798 2.86754 5.36014 2.85756C5.30437 2.83757 5.22028 2.81011 5.11356 2.78311Z" fill="#13A256"></path></g><defs><clipPath id="clip0_875_74111"><rect width="12" height="12" fill="white"></rect></clipPath></defs></svg> <h3> </h3> <p> </p></div>'),Jt=S('<!> <!> <div class="grid grid-cols-1 xl:grid-cols-[300px_1fr] gap-8 m-4 md:m-8 xl:m-16"><aside class="flex flex-col gap-8 xl:w-[300px] pb-6 top-36 max-xl:!h-auto"><h2 class="hidden xl:block"> </h2> <button class="flex items-center gap-2 xl:hidden">
1<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M0.821777 5.42176L2.17834 3.95215L8.00006 9.32604L13.8218 3.95215L15.1783 5.42176L8.00006 12.0479L0.821777 5.42176Z" fill="currentColor"></path></svg> <h2> </h2></button> <div class="flex flex-col gap-8"><!> <!> <!> <!></div></aside> <section class="content !pr-0 !pl-0 !pt-0 !pb-6 md:!pb-12 xl:col-start-2"><div class="flex flex-col gap-8 mt-8"><!> <div class="flex flex-col md:flex-row md:items-center justify-between gap-4"><span class="font-bold italic text-h-gr-1"> </span> <div class="flex items-center gap-2"><span> </span> <!></div></div> <div class="grid grid-cols-[1fr_auto] gap-4"><div class="flex flex-wrap items-center gap-4"><!> <!> <!> <!></div> <!></div> <!></div></section></div>',1);function ua(j,a){ut(a,!0);const k=t=>{Ft(t,{get header(){return a.data.translations.contact_us},get title(){return a.data.translations.contact},get description(){return a.data.page.contactText},get email(){return a.data.page.contactEmail},get phone(){return a.data.page.contactPhone},highlighted:!0})},B=t=>{var r=b(()=>[{label:a.data.translations.home},{label:a.data.translations.services},{label:a.data.translations.training,readonly:!0},{label:a.data.translations.academy}]);Mt(t,{get trail(){return e(r)}})},D=t=>{Gt(t,{href:"/services/training/academy/general",get text(){return a.data.translations.training_general_information}})};let _=u(""),m=u(d(a.data.filterOptions.sortBy[0]));const{content:Ie,learningType:Ze,targetGroup:He,level:De}=Ee();let C=u(d(Ie)),x=u(d(Ze)),y=u(d(He)),w=u(d(De)),Q=u(!1),I=u(1),z=10,P,M,E=u(!1),de=u(0),Y=b(()=>{let t=[...a.data.trainings];return e(C).length>0&&(t=t.filter(r=>e(C).some(s=>r.content.name===s.value))),e(w).length>0&&(t=t.filter(r=>e(w).some(s=>r.level.name===s.value))),e(x).length>0&&(t=t.filter(r=>e(x).some(s=>{var o;return(o=r.portfolio)==null?void 0:o.some(L=>{var f;return((f=L.learningType)==null?void 0:f.name)===s.value})}))),e(y).length>0&&(t=t.filter(r=>e(y).some(s=>r.targetGroup.some(o=>o.name===s.value)))),t=qe(t),t.sort((r,s)=>{if(e(m).value==="level-asc"||e(m).value==="level-desc"){let o=0;return r.level&&s.level&&(o=e(m).value==="level-asc"?r.level.difficulty-s.level.difficulty:s.level.difficulty-r.level.difficulty),o===0&&(o=r.name.localeCompare(s.name)),o}else if(e(m).value==="name-asc"||e(m).value==="name-desc"){if(!r.name||!s.name)return 0;const o=r.name.localeCompare(s.name);return e(m).value==="name-asc"?o:-o}else return!r.publishedAt||!s.publishedAt?0:(e(m).value==="oldest"?It:Zt)(new Date(r.publishedAt),new Date(s.publishedAt))})}),U=b(()=>{const t=(e(I)-1)*z+z;return e(Y).slice(0,t)}),ze=b(()=>Math.ceil(e(Y).length/z));wt(()=>(window.addEventListener("scroll",ce),()=>{window.removeEventListener("scroll",ce)})),ht(()=>{c(de,d(M.offsetTop))});function Ee(){if(typeof window>"u")return{content:[],learningType:[],targetGroup:[],level:[]};const t=K.url.searchParams.get("content"),r=a.data.filterOptions.content.find(g=>g.value===t),s=K.url.searchParams.get("learningtype"),o=a.data.filterOptions.learningTypes.find(g=>g.value===s),L=K.url.searchParams.get("targetgroup"),f=a.data.filterOptions.targetGroups.find(g=>g.value===L),re=K.url.searchParams.get("level"),T=a.data.filterOptions.levels.find(g=>g.value===re);return{content:r?[r]:[],learningType:o?[o]:[],targetGroup:f?[f]:[],level:T?[T]:[]}}function Ye(){c(C,d([])),c(w,d([])),c(x,d([])),c(y,d([])),c(_,""),c(I,1)}function Re(t){const r=Math.max(1,Math.min(t,e(ze)));r!==e(I)&&c(I,d(r))}function qe(t){return e(_).length===0?t:bt.go(e(_),t,{keys:["name","objectives","trainingId"],limit:z,threshold:.3}).map(s=>s.obj)}function ce(){const t=P.offsetTop+P.offsetHeight-window.innerHeight;c(E,d(window.scrollY>e(de)&&window.scrollY<t)),e(E)?M.style.height=`calc(100vh - ${M.offsetTop}px)`:M.style.height="auto",window.scrollY+window.innerHeight>=P.offsetTop+P.offsetHeight&&Re(e(I)+1)}const Je=_t(),[Ke,Kt]=Je;var ge=Jt(),fe=Ge(ge),Ne=b(()=>Se(a.data.page.heroImage));Bt(fe,{get title(){return a.data.page.heroHeadline},get subtitle(){return a.data.page.heroSubheadline},get image(){return e(Ne)}});var ve=l(fe,2);Pt(ve,{get text(){return a.data.page.introText},breadcrumb:B,float:k,additionalContent:D});var ue=l(ve,2),Z=i(ue),V=i(Z),Qe=i(V,!0);n(V);var R=l(V,2);R.__click=[zt,Q];var he=i(R),me=l(he,2),Ue=i(me,!0);n(me),n(R);var q=l(R,2),pe=i(q);J(pe,{id:"content",get header(){return a.data.translations.training_content},get options(){return a.data.filterOptions.content},get translations(){return a.data.translations},get filters(){return e(C)},set filters(t){c(C,d(t))}});var _e=l(pe,2);J(_e,{id:"learningtype",get header(){return a.data.translations.training_learning_type},get options(){return a.data.filterOptions.learningTypes},get translations(){return a.data.translations},get filters(){return e(x)},set filters(t){c(x,d(t))}});var Ce=l(_e,2);J(Ce,{id:"targetgroup",get header(){return a.data.translations.training_target_group},get options(){return a.data.filterOptions.targetGroups},get translations(){return a.data.translations},get filters(){return e(y)},set filters(t){c(y,d(t))}});var Ve=l(Ce,2);J(Ve,{id:"level",get header(){return a.data.translations.training_level},get options(){return a.data.filterOptions.levels},get translations(){return a.data.translations},get filters(){return e(w)},set filters(t){c(w,d(t))}}),n(q),n(Z),je(Z,t=>M=t,()=>M);var W=l(Z,2),xe=i(W),ye=i(xe);jt(ye,{id:"search",type:"search",get label(){return a.data.page.searchLabel},get placeholder(){return a.data.page.searchPlaceholder},labelClass:"h4 text-2xl text-h-gr-1 mb-1",get value(){return e(_)},set value(t){c(_,d(t))}});var X=l(ye,2),$=i(X),We=i($);n($);var we=l($,2),ee=i(we),Xe=i(ee,!0);n(ee);var $e=l(ee,2);
1kt($e,{id:"sort-by",get options(){return a.data.filterOptions.sortBy},get selected(){return e(m)},selectionChanged:t=>c(m,d(a.data.filterOptions.sortBy.find(r=>r.value===t)))}),n(we),n(X);var te=l(X,2),ae=i(te),Le=i(ae);O(Le,17,()=>e(C),G,(t,r)=>{N(t,()=>e(C),()=>e(r))});var be=l(Le,2);O(be,17,()=>e(x),G,(t,r)=>{N(t,()=>e(x),()=>e(r))});var Te=l(be,2);O(Te,17,()=>e(y),G,(t,r)=>{N(t,()=>e(y),()=>e(r))});var et=l(Te,2);O(et,17,()=>e(w),G,(t,r)=>{N(t,()=>e(w),()=>e(r))}),n(ae);var tt=l(ae,2);{var at=t=>{Tt(t,{get text(){return a.data.translations.filter_clearall},icon:"delete",onclick:Ye,class:"self-start"})};se(tt,t=>{(e(C).length||e(x).length||e(y).length||e(w).length||e(_))&&t(at)})}n(te);var rt=l(te,2);{var nt=t=>{var r=Rt();O(r,21,()=>e(U),G,(s,o,L)=>{var f=Yt();const re=b(()=>`/services/training/academy/${e(o).seoSlug}`);var T=Ge(f);H(()=>xt(T,"href",Ke(e(re),void 0)));var g=i(T),ne=i(g);O(ne,21,()=>e(o).portfolio.sort((v,p)=>{let A=0;return v.learningType.icon&&p.learningType.icon&&(A=v.learningType.icon.localeCompare(p.learningType.icon)),A===0&&v.learningType.name&&p.learningType.name&&(A=v.learningType.name.localeCompare(p.learningType.name)),A}),G,(v,p)=>{var A=b(()=>e(p).learningType.icon==="house"?"house":"region");At(v,{get label(){return e(p).learningType.name},get translations(){return a.data.translations},get icon(){return e(A)},mode:"readonly"})}),n(ne);var ke=l(ne,2),le=i(ke),it=i(le);n(le);var Be=l(le,2);Ot(Be,{get filled(){return e(o).level.difficulty}});var Pe=l(Be,2),st=i(Pe,!0);n(Pe),n(ke),n(g);var Me=l(g,2),Ae=i(Me),ot=b(()=>Se(e(o).image));yt(Ae,{get asset(){return e(ot)},class:"object-cover w-72 h-48",width:640,height:480});var Oe=l(Ae,2),ie=i(Oe),dt=i(ie,!0);n(ie);var ct=l(ie,2);St(ct,{class:"!line-clamp-6",get text(){return e(o).objectives},textSm:!0}),n(Oe),n(Me),n(T);var gt=l(T,2);{var ft=v=>{var p=Et();F(v,p)};se(gt,v=>{L<e(U).length-1&&v(ft)})}H(()=>{h(it,`${a.data.translations.training_level??""}:`),h(st,e(o).level.name),h(dt,e(o).name)}),F(s,f)}),n(r),F(t,r)},lt=t=>{var r=qt(),s=l(i(r),2),o=i(s,!0);n(s);var L=l(s,2),f=i(L,!0);n(L),n(r),H(()=>{h(o,a.data.translations.filter_no_results_headline),h(f,a.data.translations.filter_no_results_text)}),F(t,r)};se(rt,t=>{e(U).length?t(nt):t(lt,!1)})}n(xe),n(W),je(W,t=>P=t,()=>P),n(ue),H(()=>{oe(Z,"xl:!fixed",e(E)),h(Qe,a.data.translations.filter),Ct(he,`inline ${(e(Q)?"rotate-180":"")??""} transition-all`),h(Ue,a.data.translations.filter),oe(q,"max-xl:hidden",!e(Q)),oe(q,"overflow-y-auto",e(E)),h(We,`${(e(Y).length||0)??""} 2 ${(e(Y).length===1?a.data.translations.search_result:a.data.translations.search_results)??""}`),h(Xe,a.data.translations.sortedby_label)}),F(j,ge),mt()}vt(["click"]);export{ua as component};
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.