1import{_ as ie,o as n,c as a,e as s,a as de,b as _,j as h,d as e,f as ee,t as c,g as he,h as Z,C as me,D as q,E as pe,k as xe,u as fe,p as ve,q as ye,G as A,H as ge,I as be,J as K,K as _e,F,r as Y,s as te,v as G,B as ke,L as se,M as we,N as $e,O as Ce,P as Se}from"./DJrw_0dD.js";import{u as Te,_ as Le,a as Ne}from"./C_tVu4N7.js";import{_ as De}from"./jwdCPYiB.js";const Oe={},ze={class:"w-full flex justify-center items-center"};function Me(m,g){return n(),a("div",ze,[...g[0]||(g[0]=[s("svg",{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"44",viewBox:"0 0 44 44",class:"fill-color-primary"},[s("path",{d:"M20.3426 0.581129C20.8624 0.542729 21.3837 0.522089 21.905 0.519209C22.5328 0.486569 23.1554 0.883049 23.38 1.47153C23.6244 2.05425 23.4434 2.77713 22.9591 3.18081C22.6696 3.43137 22.2852 3.56145 21.9036 3.54465C18.317 3.54801 14.74 4.63041 11.7578 6.62433C9.41684 8.17617 7.43828 10.2699 6.02036 12.6954C4.45988 15.3459 3.58964 18.3963 3.50372 21.4707C3.43796 23.6581 3.7586 25.8584 4.46084 27.932C5.62148 31.3957 7.84628 34.4893 10.7493 36.7045C13.5204 38.8352 16.9087 40.1494 20.393 40.4374C23.4079 40.6962 26.4866 40.2104 29.2658 39.0099C31.4378 38.0787 33.425 36.7213 35.0906 35.0451C36.7293 33.3925 38.058 31.4307 38.9724 29.2894C39.9583 26.9931 40.4608 24.4928 40.456 21.9944C40.4604 21.4002 40.8525 20.8333 41.4064 20.6197C42.0328 20.3552 42.8186 20.589 43.2012 21.1506C43.422 21.4482 43.5012 21.8269 43.48 22.1927C43.4589 24.776 42.9775 27.3565 42.0434 29.7661C40.5708 33.5979 37.9663 36.9814 34.649 39.3983C32.9724 40.6246 31.1172 41.6067 29.1588 42.2989C26.5034 43.2431 23.6599 43.6458 20.8461 43.4989C17.8504 43.3462 14.8869 42.5586 12.2172 41.1906C9.0002 39.5552 6.2114 37.0919 4.18532 34.1058C1.853 30.7002 0.5522 26.6043 0.47636 22.4782C0.40292 19.1423 1.11284 15.789 2.55572 12.7789C3.6458 10.4893 5.14724 8.39649 6.96452 6.62721C9.1826 4.46145 11.873 2.77905 14.7976 1.74801C16.5828 1.11345 18.4538 0.723689 20.3426 0.581129Z"}),s("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 0 0",to:"360 0 0",dur:"1s",additive:"sum",repeatCount:"indefinite"})],-1)])])}const Ue=Object.assign(ie(Oe,[["render",Me]]),{__name:"Loader"}),Ie={en:{Search:"","Search results":"","items matching your search terms":"","Sort by":"",relevance:"","Filter the results":"","Located in":"","New items since":"","Item type":"","date (newest first)":"",alphabetically:"",Yesterday:"","Last week":"","Last month":"",Ever:"","10 previous articles":"","The next 10 articles":"","Nothing was found":""},de:{Search:"Suchen","Search results":"Suchergebnisse","items matching your search terms":"artikel, die Ihren Suchbegriffen entsprechen","Sort by":"Sortieren nach",relevance:"relevanz","Filter the results":"Filtern Sie die Ergebnisse","Located in":"Standort","New items since":"Neue Artikel seit","Item type":"Artikeltyp","date (newest first)":"datum (neueste zuerst)",alphabetically:"alphabetisch",Yesterday:"Gestern","Last week":"Letzte Woche","Last month":"Letzten Monat",Ever:"Immer","10 previous articles":"10 frühere Artikel","The next 10 articles":"Die nächsten 10 Artikel","Nothing was found":"Es wurde nichts gefunden"},it:{Search:"Cerca","Search results":"Risultati della ricerca","items matching your search terms":"Elementi corrispondenti ai termini di ricerca","Sort by":"Ordina per",relevance:"Pertinenza","Filter the results":"Filtra i risultati","Located in":"Situato in","New items since":"Nuovi elementi da","Item type":"Tipo di elemento","date (newest first)":"Data (dal più recente)",alphabetically:"Alfabeticamente",Yesterday:"Ieri","Last week":"Settimana scorsa","Last month":"Mese scorso",Ever:"In assoluto","10 previous articles":"10 articoli precedenti","The next 10 articles":"I prossimi 10 articoli","Nothing was found":"Non è stato trovato nulla"},fr:{Search:"Recherche","Search results":"Résultats de la recherche","items matching your search terms":"Articles correspondant à vos termes de recherche","Sort by":"Trier par",relevance:"pertinence","Filter the results":"Filtrer les résultats","Located in":"Situé dans","New items since":"Nouveaux articles depuis","Item type":"Type d'article","date (newest first)":"date (du plus récent au plus ancien)",alphabetically:"alphabétique",Yesterday:"Hier","Last week":"Semaine dernière","Last month":"Mois dernier",Ever:"Toujours","10 previous articles":"10 articles précédents","The next 10 articles":"Les 10 articles suivants","Nothing was found":"Rien n'a été trouvé"}
1,rm:{Search:"Cercar","Search results":"Risultà de la ricerca ","items matching your search terms":"element che currispunden ai termin de ricerca ","Sort by":"Ordinà per",relevance:"pertinenza","Filter the results":"Filtra i resultà ","Located in":"Situà en","New items since":"NÅuf articul de chel mument","Item type":"Tip de articul","date (newest first)":"data (prim püsee nÅuf)",alphabetically:"alfabeticamente",Yesterday:"Ier","Last week":"La settimana passada","Last month":"El mes passà ",Ever:"Mai","10 previous articles":"10 articul precedent","The next 10 articles":"I 10 articul sucesif","Nothing was found":"Negot l'è stait trovad"}},ne=()=>{const m=de(),g=_(()=>m.lang);return{curLang:g,t:x=>Ie[g.value]?.[x]||x}},Re={class:"w-full first:pt-0 border-t border-black first:border-0 pt-6 pb-3 xxl:pb-4 xxl:pt-8 text-size-17 xxl:text-md"},Ee={class:""},Fe={class:"font-bold text-size-17 xxl:text-md mb-0"},Ye={key:0,class:"icon-document mr-1.5 inline-block align-top"},He={key:1,class:"icon-external_link mr-1.5 inline-block align-top"},je={key:2,class:"icon-newspaper-o mt-0.5 mr-1.5 inline-block align-top"},qe={key:3,class:"icon-paragraph ml-1 mr-2 inline-block align-top"},Ae={key:4,class:"icon-list mr-1.5 inline-block align-top"},Be=["href"],Pe={key:0},Ve={class:"mt-1 md:mt-1"},We={__name:"SearchResult",props:{item:{type:Object,required:!0},query:{type:String,default:""}},setup(m){const{t:g}=ne(),b=m,{title:x,keywords:o,link:k}=Te(b),S=_(()=>b.item["@type"]==="EduDocRecord"?{items:[{title:"edudoc.ch","@id":"https://edudoc.
1ch/","@type":"Document"}]}:b.item["@components"]?.breadcrumbs);return(T,l)=>{const f=Le,w=De;return n(),a("div",Re,[s("div",Ee,[s("h3",Fe,[m.item.type_title==="EduDoc Publikation"?(n(),a("i",Ye)):h("",!0),m.item.type_title==="Link"?(n(),a("i",He)):h("",!0),m.item.type_title==="News"?(n(),a("i",je)):h("",!0),m.item.type_title==="Text und Bild"?(n(),a("i",qe)):h("",!0),m.item.type_title==="edklistingblock"?(n(),a("i",Ae)):h("",!0),s("a",{class:"text-red hover:underline transition-all duration-200",href:e(k)(m.item)},[ee(f,{highlightClassName:"bg-white text-red",searchWords:e(o),autoEscape:!0,textToHighlight:e(x)},null,8,["searchWords","textToHighlight"])],8,Be)]),m.item.description?(n(),a("p",Pe,c(m.item.description),1)):h("",!0),s("div",Ve,[ee(w,{breadcrumbs:e(S),size:"small"},{title:he(()=>[Z(c(e(g)("Located in")),1)]),_:1},8,["breadcrumbs"])])])])}}};var B={exports:{}},Ke=B.exports,re;function Ge(){return re||(re=1,(function(m,g){(function(b,x){m.exports=x()})(Ke,(function(){var b="minute",x=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(k,S,T){var l=S.prototype;T.utc=function(t){var d={date:t,utc:!0,args:arguments};return new S(d)},l.utc=function(t){var d=T(this.toDate(),{locale:this.$L,utc:!0});return t?d.add(this.utcOffset(),b):d},l.local=function(){return T(this.toDate(),{locale:this.$L,utc:!1})};var f=l.parse;l.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),f.call(this,t)};var w=l.init;l.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else w.call(this)};var z=l.utcOffset;l.utcOffset=function(t,d){var $=this.$utils().u;if($(t))return this.$u?0:$(this.$offset)?z.call(this):this.$offset;if(typeof t=="string"&&(t=(function(C){C===void 0&&(C="");var D=C.match(x);if(!D)return null;var O=(""+D[0]).match(o)||["-",0,0],I=O[0],y=60*+O[1]+ +O[2];return y===0?0:I==="+"?y:-y})(t),t===null))return this;var p=Math.abs(t)<=16?60*t:t;if(p===0)return this.utc(d);var v=this.clone();if(d)return v.$offset=p,v.$u=!1,v;var H=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(v=this.local().add(p+H,b)).$offset=p,v.$x.$localOffset=H,v};var L=l.format;l.format=function(t){var d=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return L.call(this,d)},l.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var P=l.toDate;l.toDate=function(t){return t==="s"&&this.$offset?T(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():P.call(this)};var N=l.diff;l.diff=function(t,d,$){if(t&&this.$u===t.$u)return N.call(this,t,d,$);var p=this.local(),v=T(t).local();return N.call(p,v,d,$)}}}))})(B)),B.exports}var Ze=Ge();const Je=me(Ze),Qe={class:"content-wrapper"},Xe={class:"default-page"},et={class:"content-holder"},tt={class:"w-full"},st={class:"w-full relative mb-12 xxl:mb-14"},rt={class:"text-lg-h1 xxl:text-h1 font-bold mb-9.5 xxl:mb-11.5"},it={class:"px-5 xxl:px-6 py-3 xxl:py-3.5 mb-6 xxl:mb-7.5 bg-primary text-size-17 xxl:text-md"},nt={class:"flex justify-between"},at={class:"w-full text-size-20 leading-[1] xxl:text-xl xxl:leading-[1] mb-3"},ot={class:"font-bold"},lt={class:"relative"},ct={key:0,class:"absolute shadow-content bg-white min-w-[260px] top-full right-0 shadow-dropdown px-5 xxl:px-6 pt-3 xxl:pt-3.5 pb-5 xxl:pb-5.5 text-size-17 xxl:text-md -mt-3 z-10"},ut={key:0,class:"mb-7.5 xxl:mb-9"},dt={class:"font-bold"},ht={class:"mt-1.5 xxl:mt-[7px] first:mt-0 flex items-start"},mt=["onChange","checked"],pt={class:"whitespace-nowrap"},xt={key:1},ft={class:"font-bold"},vt=["value"],yt={class:"whitespace-nowrap"},gt={class:""},bt={class:"flex"},_t=["onClick"],kt={key:1},wt={key:0,class:"pt-0"},$t={key:1},Ct={key:0,class:"pb-7"},St={class:"text-sm-md md:text-size-17 xxl:text-md text-black font-bold"},Tt={key:2,class:"flex items-start justify-between text-size-17 xxl:text-md -mt-1 xxl:mt-0"},Lt={class:"flex items-center flex-wrap"},Nt=["onClick"],Dt={key:2,class:"py-3 px-5 mr-3.5 xxl:py-3.5 xxl:px-6 xxl:mr-2.5"},U="Suche",Ot={__name:"search",setup(m){q.extend(Je);const g=ke(),b=pe(),x=xe().origin,{t:o}=ne();fe();const{query:k,results:S,noResults:T,isLoading:l,batching:f,bStart:w,bSize:z,response:L,type:P,sortOn:N,sortOrder:t,date:d,dateFormat:$,loadResults:p,selectType:v,setOnLoad:H}=Ne(),C=se(!1),D=se(!1);H(u=>
1{try{const r=new URL(u.batching?u.batching["@id"]:u["@id"]);history.replaceState(null,"",location.href.split("?")[0]+r.search.replace("&expand=breadcrumbs&fullobjects=1&use_site_search_settings=1",""))}catch{}}),_(()=>Ce(L.value?.elasticsearch?.suggest?.["text-suggest"])?.options||[]);const O=_(()=>L.value?.items_total||0),I=_(()=>(Se(L.value?.elasticsearch?.original_aggregations)?L.value?.elasticsearch?.aggregations:L.value?.elasticsearch?.original_aggregations)?.portal_type?.buckets||[]),y=_(()=>O.value<1?0:Math.ceil(O.value/z.value)),V=_(()=>z.value<1?null:w.value>0?w.value/z.value+1:1),J=_(()=>[{name:o("relevance"),key:null},{name:o("date (newest first)"),key:"created"},{name:o("alphabetically"),key:"sortable_title"}]),Q=_(()=>[{title:o("Yesterday"),key:q.utc().startOf("day").format($)},{title:o("Last week"),key:q.utc().startOf("week").format($)},{title:o("Last month"),key:q.utc().startOf("month").format($)},{title:o("Ever"),key:"ever"}]);function W(u){try{const r=new URL(u),R=new URLSearchParams(r.search);w.value=Number(R.get("b_start"))||0,p()}catch{}}function ae(u){u<1||u>y.value||(w.value=(u-1)*z.value,p())}function oe(u){if(y.value<7)return Array.from({length:y.value},(R,E)=>E+1);const r=Math.max(1,u-3);return Array.from({length:7},(R,E)=>r+E)}function le(){C.value&&(C.value=!1)}function ce(u){switch(N.value=u?u.key:J.value[0]?.key,N.value){case"created":t.value="descending";break;case"sortable_title":t.value="ascending";break;default:N.value=null,t.value=null;break}w.value=0,p()}const j=x+"/big-logo.png",X=_(()=>x+b.fullPath);return ve({title:U+" - "+g.public.appName,meta:[{name:"description",content:U},{name:"robots",content:"index, follow"},{property:"twitter:card",content:j},{property:"twitter:domain",content:x},{property:"twitter:url",content:()=>X.value},{property:"twitter:title",content:U},{property:"twitter:description",content:U},{property:"twitter:image",content:j},{property:"og:url",content:()=>X.value},{property:"og:type",content:"website"},{property:"og:title",content:U},{property:"og:description",content:U},{property:"og:image",content:j},{property:"og:image:secure_url",content:j}]}),ye(()=>{k.value?.length>0&&p()}),(u,r)=>{const R=Ue,E=We,ue=we("click-outside");return n(),a("div",Qe,[s("div",Xe,[s("div",et,[r[12]||(r[12]=s("h1",{class:"hidden"},"Suche",-1)),s("div",tt,[s("div",st,[A(s("input",{type:"search",id:"search",name:"SearchableText","onUpdate:modelValue":r[0]||(r[0]=i=>K(k)?k.value=i:null),"aria-label":"search",onKeydown:r[1]||(r[1]=be((...i)=>e(p)&&e(p)(...i),["enter"])),class:"w-full h-11 xxl:h-13 px-5 xxl:px-6 py-2.5 xxl:py-3.5 text-size-17 xxl:text-md border border-solid border-black bg-white focus:outline-none focus:border-primary"},null,544),[[ge,e(k)]]),s("button",{type:"submit",onClick:r[2]||(r[2]=(...i)=>e(p)&&e(p)(...i)),class:"bg-green hover:bg-green-dark text-size-17 xxl:text-md px-5 xxl:px-6 py-3 xxl:py-3.5 text-white border-0 focus:outline-none"},c(e(o)("Search")),1)]),s("h2",rt,c(e(o)("Search results"))+" "+c(e(k)),1),s("div",it,[s("div",nt,[s("div",at,[s("strong",ot,c(e(O)),1),Z(" "+c(e(o)("items matching your search terms"))+". ",1)]),A((n(),a("div",lt,[s("button",{type:"button",class:"flex whitespace-nowrap items-center",onClick:r[3]||(r[3]=i=>C.value=!e(C))},[r[10]||(r[10]=s("i",{class:"icon-filter mr-2.5 xxl:mr-3.5"},null,-1)),Z(" "+c(e(o)("Filter the results"))+". ",1)]),e(C)?(n(),a("div",ct,[e(I).length>0?(n(),a("div",ut,[s("div",dt,c(e(o)("Item type")),1),s("div",null,[s("div",ht,[A(s("input",{type:"checkbox","onUpdate:modelValue":r[4]||(r[4]=i=>K(D)?D.value=i:null),onChange:r[5]||(r[5]=i=>e(v)(e(I),e(D))),class:"mr-1 xxl:mr-1.5 mt-1 xxl:mt-1.5"},null,544),[[_e,e(D)]]),r[11]||(r[11]=s("div",{class:"whitespace-nowrap"},"Alle",-1))]),(n(!0),a(F,null,Y(e(I),i=>(n(),a("div",{class:"mt-1.5 xxl:mt-[7px] first:mt-0 flex items-start",key:i.key},[s("input",{type:"checkbox",onChange:M=>e(v)(i.key),checked:e(P).includes(i.key),class:"mr-1 xxl:mr-1.5 mt-1 xxl:mt-1.5"},null,40,mt),s("div",pt,c(i.title),1)]))),128))])])):h("",!0),e(Q).length>0?(n(),a("div",xt,[s("div",ft,c(e(o)("New items since")),1),s("div",null,[(n(!0),a(F,null,Y(e(Q),i=>(n(),a("div",{class:"mt-1.5 xxl:mt-[7px] first:mt-0 flex items-start",key:i.key},[A(s("input",{type:"radio",name:"dateFilter","onUpdate:modelValue":r[6]||(r[6]=M=>K(d)?d.value=M:null),value:i.key,class:"mr-1 xxl:mr-1.5 mt-1 xxl:mt-1.5"},null,8,vt),[[$e,e(d)]]),s("div",yt,c(i.title),1)]))),128))])])):h("",!0)])):h("",!0)])),[[ue,le]])]),s("div",gt,c(e(o)("Sort by")),1),s("ul",bt,[(n(!0),a(F,null,Y(e(J),i=>(n(),a("li",{class:"before:content-[''] before:h-[3px] before:w-[3px] before:rounded-full before:absolute before:left-1.5 before:top-2.5 relative first:before:hidden before:bg-black pl-3 xxl:pl-4 first:pl-0",key:i.key},[s("button",{type:"button",onClick:M=>ce(i),class:G([e(N)===i.key?"font-bold text-black cursor-text":"text-red hover:underline cursor-pointer"])},c(i.name),11,_t)]))),128))])]),e(l)?(n(),te(R,{key:0,class:"h-[200px] md:h-[284px]"})):(n(),a("div",kt,[e(S)?.length>0?(n(),a("div",wt,[(n(!0),a(F,null,Y(e(S)||[],(i,M)=>(n(),te(E,{key:M,item:i,query:e(k)},null,8,["item","query"]))),128))])):(n(),a("div",$t,[e(T)?(n(),a("div",Ct,[s("span",St,c(e(o)("Nothing was found"))+".",1)])):h("",!0)])),e(f)&&e(S).length>0?(n(),a("div",Tt,[s("div",Lt,[e(f).prev?(n(),a("button",{key:0,class:"py-3 px-5 mr-3.5 xxl:py-3.5 xxl:px-6 xxl:mr-2.5 mb-6 xxl:mb-7 bg-primary hover:bg-primary-hover whitespace-nowrap",onClick:r[7]||(r[7]=i=>W(e(f).prev))}," « "+c(e(o)("10 previous articles")),1)):h("",!0),u.page!==0?(n(!0),a(F,{key:1},Y(oe(e(V)),i=>(n(),a("button",{class:G(["mb-6 xxl:mb-7 mr-1",{"py-3 px-5 mr-3.5 xxl:py-3.5 xxl:px-6 xxl:mr-2.5":!0,"bg-primary hover:bg-primary-hover":i!==e(V)}]),key:i,onClick:M=>ae(i)},c(i),11,Nt))),128)):h("",!0),e(y)>7?(n(),a("span",Dt,"...")):h("",!0),e(f).last&&e(y)>7?(n(),a("button",{key:3,class:G(["mb-6 xxl:mb-7 mr-1",{"py-3 px-5 mr-3.5 xxl:py-3.5 xxl:px-6 xxl:mr-2.5 bg-primary hover:bg-primary-hover":e(V)!==e(y)}]),onClick:r[8]||(r[8]=i=>W(e(f).last))},c(e(y)),3)):h("",!0),e(f).next?(n(),a("button",{key:4,class:"py-3 px-5 mr-3.5 xxl:py-3.5 xxl:px-6 xxl:mr-2.5 mb-6 xxl:mb-7 bg-primary hover:bg-primary-hover whitespace-nowrap",onClick:r[9]||(r[9]=i=>W(e(f).next))},c(e(o)("The next 10 articles"))+" » ",1)):h("",!0)])])):h("",!0)]))])])])])}}},It=ie(Ot,[["__scopeId","data-v-18599daa"]]);export{It 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.