1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1645],{59974:(e,a,t)=>{t.d(a,{A:()=>y});var l=t(55427),s=t(97867),r=t(21426),i=t(61245),n=t(33722),c=t(20548);let d=e=>{let{error:a,children:t}=e;return a?(0,l.jsx)("div",{children:a}):t};var o=t(77829),u=t.n(o),h=t(81002);let _=e=>{let{title:a,description:t,icon:s=(0,l.jsx)(n.y88,{}),items:r,className:i}=e,c=a&&(0,l.jsx)("p",{className:"h6 c_00000 full_width mb_20",children:a}),d=t&&(0,l.jsx)("p",{className:"h6 fw_600 c_00000 full_width mb_10",children:t}),o=r&&r.length>0&&(0,l.jsx)("ul",{className:"full_width c_00000 col90 ml_20",children:r.map(e=>(0,l.jsx)("li",{className:"btn-label",children:e},e))}),u=["column_centered full_width",i].join(" ");return(0,l.jsxs)("div",{"data-testid":"no-results-found",className:u,children:[c,s&&s,(0,l.jsxs)("div",{className:"column_centered full_width",children:[d,o]})]})};var m=t(93554),p=t(3540),g=t(52692);let v=e=>{let{data:a}=e,{t}=(0,g.A)("common"),s=(0,p.useRouter)();return(0,l.jsx)(l.Fragment,{children:a.map(e=>{var a;return(0,l.jsx)("div",{className:"SearchContainer__school_results mb_10",children:(null==(a=e.data)?void 0:a.length)>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:"SearchContainer__results_title fw_700 h4",children:t(e.title)}),e.data.map((e,a)=>{let{value:t,name:r,image:i,onClick:c}=e;return(0,l.jsx)("div",{onClick:async()=>{s.push(t,void 0,{locale:!1}).then(()=>c())},className:"SearchContainer__results_item pt_10 pb_10 ".concat(0===a?"SearchContainer__results_item--first":""),children:(0,l.jsx)(m.A,{imageClassName:"SearchContainer__results--img",textWrap:!0,alt:t,className:"SearchContainer__school_results_item",image:null!=i?i:(0,l.jsx)(n.T8E,{}),type:"extra-small",fullWidth:!0,title:r,animate:!1,onClick:c})},t)})]})},e.title)})})},x=e=>{let{data:a,loading:t,className:s,error:r,onItemClick:i,searchValue:o}=e,m=["SearchContainer__results SearchResultsContainer ".concat(t?"centered":""),s].join(" "),{t:p,lang:x}=(0,g.A)("common"),j=Object.values(a).some(e=>0!==Object.keys(e).length||0!==e.length);return(0,l.jsx)("div",{className:m,children:(0,l.jsx)(d,{error:r,children:(0,l.jsx)(h.A,{loading:t,children:j?(0,l.jsxs)("div",{children:[(0,l.jsx)(v,{data:Object.values((e=>{let{data:a,onItemClick:t}=e,l=()=>t&&t();return{filters_output:{title:"Vorschl\xe4ge",data:(null==a?void 0:a.filters_output)&&Object.keys(null==a?void 0:a.filters_output).map(e=>({name:e,value:(null==a?void 0:a.filters_output)&&(null==a?void 0:a.filters_output[e]),onClick:()=>l(),image:null}))},schools:{title:"Schulen",data:(null==a?void 0:a.schools)&&(null==a?void 0:a.schools.map(e=>{var a;return{name:e.name,value:"/".concat(e.public_url),image:(null==e||null==(a=e.profile_image)?void 0:a.small_url)?decodeURIComponent(e.profile_image.small_url):"/assets/images/placeholder-studiumgang.jpg",onClick:()=>l()}}))},courses:{title:"Studieng\xe4nge",data:(null==a?void 0:a.courses)&&(null==a?void 0:a.courses.map(e=>{var a,t;return{name:e.short_name,value:"/".concat(e.public_url),image:e.background_image?decodeURIComponent(String(e.background_image.medium_url)):(null==(t=e.school)||null==(a=t.profile_image)?void 0:a.small_url)?decodeURIComponent(e.school.profile_image.small_url):"/assets/images/placeholder-studiumgang.jpg",onClick:()=>l()}}))}}})({data:a,onItemClick:i}))}),(0,l.jsx)("div",{className:"p_10 centered",children:(0,l.jsx)(u(),{href:"/".concat(x,"/suche/courses?page=1&per_page=5&term=").concat(null!=o?o:""),children:(0,l.jsx)(c.default,{onClick:i,className:"c_blue",type:"reverse_link",label:p("weitere Resultate laden"),labelClassName:"fw_400 h6"})})})]}):(0,l.jsx)(_,{title:p("Leider haben wir keine Resultate gefunden"),icon:(0,l.jsx)(n.y88,{}),description:p("Tipps f\xfcr deine Suche"),items:[p("Pr\xfcfe ob du alle W\xf6rter richtig geschrieben hast"),p("Versuche einen anderen Suchbegriff"),p("tip-3")]})})})})};var j=t(80612),f=t(35588),C=t(77052);let y=e=>{let{error:a,Icon:t,handleSetSearchValue:c,className:d,loading:o,data:u,placeholder:h,areResultsVisible:_,resultsKey:m,inputRef:v,searchResultsClassName:y,onKeyDown:w,onFocus:b,onBlur:N,searchValue:k}=e,S=(0,i.j)(),{lang:F}
1=(0,g.A)("common"),H=(0,p.useRouter)(),A=(0,i.G)(e=>e.searchInput.isSearchInputVisible),R="SearchContainer__results ".concat(_?"SearchContainer__results--show":""," ").concat(null!=y?y:""),I=[_?"z-index-11":"",d].join(" "),z=async e=>{if("Enter"===e.key){var a;S((0,C.fW)(!1)),S((0,r.Zi)({[m]:!1})),null==v||null==(a=v.current)||a.blur(),w&&w(e),await H.push("/".concat(F,"/suche/courses?page=1&per_page=5&term=").concat(encodeURIComponent(e.target.value)))}};return(0,s.useEffect)(()=>{if(!A){var e;null==(e=v.current)||e.blur();return}},[A]),(0,l.jsx)(j.A,{ref:v,onKeyDown:z,className:I,inputClassName:"centered",onChange:e=>{c(e.target.value)},onFocus:e=>(e=>{var a;b&&b(e),c(null!=(a=e.target.value)?a:""),S((0,C.fW)(!0)),S((0,r.L_)(!0)),S((0,r.Zi)({[m]:!0}))})(e),icon:null!=t?t:(0,l.jsx)(n.WIv,{}),placeholder:h,onBlur:e=>N&&N(e),children:_&&(0,l.jsx)(x,{onItemClick:()=>{S((0,r.Zi)({[m]:!1})),S((0,f.cu)(!0)),S((0,r.Pj)(!0))},className:R,loading:o,error:a,data:u,searchValue:k})})}},61645:(e,a,t)=>{t.d(a,{A:()=>w});var l=t(55427),s=t(20548),r=t(97867),i=t(38943),n=t(33722),c=t(59974),d=t(61245),o=t(3540),u=t(96838),h=t(52692),_=t(92257),m=t(21426);let p=()=>{let{t:e,lang:a}=(0,h.A)("landing"),t=(0,r.useRef)(null),s=(0,r.useRef)(null),{width:p}=(0,_.A)(),g=p<=1100?"header-section-input":"header-cover",{data:v,loading:x,error:j,handleSetLoading:f,handleSetSearchValue:C,searchValue:y}=(0,u.A)({ref:t,inputRef:s,resultsKey:g,loadingValue:!0}),w=(0,o.useRouter)(),b=(0,d.G)(e=>e.searchInput.isSearchInputVisible),N=(0,d.G)(e=>e.searchInput.areSearchResultsOpen);return(0,l.jsx)("div",{ref:t,children:(0,l.jsx)(c.A,{onFocus:()=>{(0,m.Pj)(!1)},inputRef:s,resultsKey:g,searchValue:y,areResultsVisible:!!N["header-cover"]&&b,data:null!=v?v:{},loading:x,handleSetSearchValue:C,error:j,handleSetLoading:f,className:"HeaderCoverInput",placeholder:e("header-cover-placeholder"),Icon:(0,l.jsx)(()=>(0,l.jsx)(i.A,{onClick:()=>w.push("/".concat(a,"/suche/courses?page=1&per_page=5&term=").concat(null!=y?y:"")),className:"HeaderCoverInput__search-button",animated:!1,leftIcon:(0,l.jsx)(n.WIv,{width:"40px",height:"40px"})}),{})})})};var g=t(14782),v=t.n(g),x=t(77829),j=t.n(x),f=t(17390),C=t(28848);let y=e=>{let{t:a,lang:t}=(0,h.A)("landing"),r=(0,o.useRouter)();return(0,l.jsxs)("div",{className:"HeaderCover__content ".concat("studyFieldCategories"===e.type?"c_white HeaderCover__content--sfc":""),children:[(0,l.jsx)("h1",{className:"HeaderCover__title fw_600 h2-smaller ".concat("studyFieldCategories"===e.type?"z_index_3":""),children:a("header-cover-title")}),(0,l.jsx)("p",{className:"HeaderCover__body fw_300 header_cover_h5 ".concat("studyFieldCategories"===e.type?"c_white z_index_3":""),children:a("header-cover-body")}),(0,l.jsxs)("div",{className:"full_width",children:[(0,l.jsx)(p,{}),(0,l.jsx)("div",{className:"full_width",children:(0,l.jsx)(j(),{href:"/".concat(t,"/tools/studienwahl-weiterbildung-test"),prefetch:!1,children:(0,l.jsx)(s.default,{type:"studyFieldCategories"===e.type?"link":"primary",className:"mt_20 c_white z_index_10",animated:"studyFieldCategories"!==e.type,label:a("Ich weiss es noch nicht genau")})})})]}),(0,l.jsxs)("div",{className:"flex_align_center HeaderCover__trending paragraph fw_400 ".concat("studyFieldCategories"===e.type?"c_white z_index_3":""),children:["Trending:",(0,l.jsxs)("ul",{className:" HeaderCover__list flex_align_center ",children:[(0,l.jsx)("li",{children:(0,l.jsx)(s.default,{onClick:()=>r.push("/".concat(t,"/suche/courses?page=1&per_page=5&study_field_category_ids[]=10&study_field_ids[]=121")),className:"HeaderCover__trending_item p_0 bg_transparent ".concat("studyFieldCategories"===e.type?"c_white z_index_3":""),label:a("Marketing"),animated:!1})}),(0,l.jsx)("li",{children:(0,l.jsx)(s.default,{onClick:()=>r.push("/".concat(t,"/suche/courses?page=1&per_page=5&study_field_category_ids[]=10&study_field_ids[]=123")),className:"HeaderCover__trending_item p_0 bg_transparent ".concat("studyFieldCategories"===e.type?"c_white z_index_3":""),label:a("Leadership"),animated:!1})}),(0,l.jsx)("li",{children:(0,l.jsx)(s.default,{onClick:()=>
1r.push("/".concat(t,"/fachhochschule/hwz-hochschule-fuer-wirtschaft-zuerich")),className:"HeaderCover__trending_item HeaderCover__trending_item--kalaidos p_0 bg_transparent ".concat("studyFieldCategories"===e.type?"c_white z_index_3":""),label:"HWZ",animated:!1})}),(0,l.jsx)("li",{children:(0,l.jsx)(s.default,{onClick:()=>r.push("/".concat(t,"/fachhochschule/hslu-hochschule-luzern")),className:"HeaderCover__trending_item HeaderCover__trending_item--kalaidos p_0 bg_transparent ".concat("studyFieldCategories"===e.type?"c_white z_index_3":""),label:"HSLU",animated:!1})}),(0,l.jsx)("li",{children:(0,l.jsx)(s.default,{onClick:()=>r.push("/".concat(t,"/fachhochschule/bfh-berner-fachhochschule")),className:"HeaderCover__trending_item HeaderCover__trending_item--kalaidos p_0 bg_transparent ".concat("studyFieldCategories"===e.type?"c_white z_index_3":""),label:"BFH",animated:!1})})]})]})]})},w=e=>{var a,t;let s=e.variant;s||(s=(0,l.jsx)(y,{type:e.type}));let{width:r}=(0,_.A)();return(0,l.jsxs)("div",{className:"HeaderCover ".concat("studyFieldCategories"===e.type?"centered full_width position_relative HeaderCover--sfc":"flex_between row row1240"," ").concat(e.className?e.className:""," ").concat(e.goldenCircle?"position_relative":""),children:["studyFieldCategories"===e.type&&(0,l.jsx)("div",{className:"HeaderCover--layer"}),"studyFieldCategories"===e.type&&(0,l.jsx)(v(),{priority:!0,src:"/assets/images/sfc.jpeg",fill:!0,alt:"Study Field Categories",sizes:"(max-width: 768px) 100vw,(max-width: 1200px) 50vw, 33vw"}),s,"studyFieldCategories"!==e.type&&(0,l.jsxs)("div",{className:"HeaderCover__image position_relative",children:[e.goldenCircle&&(0,l.jsx)(C.S,{translationKey1:"ki-empfehlungen"}),(0,l.jsx)(v(),{objectFit:"cover",src:"/assets/images/header-1.5-hero.webp",height:480,width:360,alt:"weiterbildungen schweiz",sizes:"(max-width: 768px) 100vw,(max-width: 1200px) 50vw, 33vw",priority:!0}),r>1300&&e.shouldShowRating&&(0,l.jsx)(f.A,{rating:null==(a=e.googleRating)?void 0:a.rating,totalRatings:null==(t=e.googleRating)?void 0:t.total_ratings})]})]})}},81002:(e,a,t)=>{t.d(a,{A:()=>r});var l=t(55427);t(97867);var s=t(81622);let r=e=>{let{loading:a,loader:t=(0,l.jsx)(s.A,{type:"normal"}),children:r}=e;return a?t:(0,l.jsx)(l.Fragment,{children:r})}},96838:(e,a,t)=>{t.d(a,{A:()=>c});
1var l=t(42824),s=t(77052),r=t(61245),i=t(4304),n=t(21426);let c=e=>{let{ref:a,inputRef:t,resultsKey:c,loadingValue:d,...o}=e,u=(0,r.j)(),{data:h,loading:_,handleSetSearchValue:m,error:p,handleSetLoading:g,searchValue:v}=(0,l.A)({loadingValue:d,...o}),x=()=>{var e;document.activeElement===(null==t?void 0:t.current)&&(g(!0),m(void 0),u((0,s.fW)(!1)),null==(e=t.current)||e.blur(),u((0,n.Zi)({[c]:!1})))};return(0,i.A)(a,x),{data:h,loading:_,handleSetSearchValue:m,error:p,handleSetLoading:g,searchValue:v,onOutsideClick:x}}}}]);
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.