PageSourceSearch

https://www.textilwirtschaft.de/_nuxt/oAUGqRtP.js

js textilwirtschaft.de collected 2026-10-02 02:32:53 UTC 6,414 bytes, 1 lines download raw bytes

1import{d as S,e as n,m as d,i,t as T,J as j,u as J,B as V,L as K,a as X,E as Y,H as F,z as Z,o as ee,I as ae,f as P,w as I,k as v,g as s,a0 as te,ao as oe,K as se,R as U,v as A,Q as N,N as ie,q as re,S as le,r as g,x as w,ap as ne,s as ce,a5 as ue,A as pe,D as ve}from"./BqOKZ5Z7.js";import{F as ge}from"./BOa3gH1q.js";import de from"./C5WRIXwY.js";const _e={class:"application-heading"},he={class:"application-heading__headline"},me=S({__name:"ApplicationHeading",props:{headline:{}},setup(y){return(c,u)=>(n(),d("div",_e,[i("h1",he,T(y.headline),1),j(c.$slots,"default")]))}}),ye=Object.assign(me,{__name:"AtomsHeadingsApplicationHeading"}),fe={class:"container__stage"},we=["textContent"],Te={class:"container__stage"},Pe={class:"topic-overview-page__top-bar"},Se={class:"topic-overview-page__top-bar__panel"},xe={class:"container__stage"},be={class:"topic-overview-page__fast-filter-bar"},Ce={class:"container__stage"},We={class:"topic-overview-page__results"},qe={class:"topic-overview-page__results__headline"},Oe={class:"topic-overview-page__results__list columns is-multiline"},Re={key:0,class:"container__stage"},ke={class:"topic-overview-page__pagination"},Fe=S({__name:"TopicOverviewPage",async setup(y){let c,u;const{t:r}=J(),_=V(),f=K(),z=X(),e=g({searchTerm:"",category:void 0,startsWith:void 0,page:1,pageSize:30}),l=g(""),x=g([]),b=g([]),h=g(0),B=w(()=>e.value.searchTerm?r("topicOverviewPage.text.allTopicsForSearchTerm",{searchTerm:e.value.searchTerm}):e.value.category&&e.value.category!=="_all_"?r("topicOverviewPage.text.allTopicsForTopic",{topic:e.value.category.charAt(0).toUpperCase()+e.value.category.slice(1)}):e.value.startsWith?r("topicOverviewPage.text.allTopicsForFastFilter",{startsWith:e.value.startsWith}):r("topicOverviewPage.text.allTopics")),H=Array.from({length:26},(a,o)=>String.fromCharCode(65+o)),E=w(()=>h.value&&e.value.pageSize?Math.ceil(h.value/e.value.pageSize):1),$=w(()=>h.value>e.value.pageSize);k();const[C,W]=([c,u]=Y(()=>Promise.all([F("/api/content/topics/types",{method:"GET"}),F("/api/content/topics",{method:"GET",query:q()})])),c=await c,u(),c);G(C.data,C.status),O(W.data,W.status);const L=async()=>{e.value.searchTerm=l.value.trim(),e.value.category=void 0,e.value.startsWith=void 0,e.value.page=1,await m()},D=async a=>{l.value="",e.value.startsWith=a,e.value.category=void 0,e.value.searchTerm="",e.value.page=1,ne("topic-overview","fast filter selected",{filter:e.value}),await m()},M=async()=>{l.value="",e.value.searchTerm="",e.value.startsWith=void 0,e.value.page=1,await m()},Q=async a=>{e.value.page=a,await m()};function q(){const a={page:e.value.page?.toString()||"1",pageSize:e.value.pageSize?.toString()||"30"};return e.value.searchTerm&&(a.query=e.value.searchTerm),e.value.category&&e.value.category!=="_all_"&&(a.category=e.value.category),e.value.startsWith&&(a.startsWith=e.value.startsWith),a}function G(a,o){o!==200||!a||(x.value=[...a.map(t=>({value:t,label:t.charAt(0).toUpperCase()+t.slice(1)})),{value:"_all_",label:r("topicOverviewPage.text.allTopics")}])}function O(a,o){if(o!==200||!a){Z("topic-overview","search request failed",{status:o});return}h.value=a.totalResults,b.value=a.results.map(t=>({url:t.url,title:t.title,id:t.doc_id}))}async function m(){await f.push({query:R(e)}),await ce();const{data:a,status:o}=await ue("/api/content/topics",{method:"GET",query:q()});O(a,o)}function R(a){const o={},t=_.query;for(const p in t)["page","query","category","startsWith"].includes(p)||(o[p]=t[p]);return a.value.page&&(o.page=a.value.page>1?encodeURIComponent(String(a.value.page)):void 0),a.value.searchTerm&&(o.query=encodeURIComponent(a.value.searchTerm)),a.value.category&&(o.category=a.value.category!=="_all_"?encodeURIComponent(a.value.category):void 0),a.value.startsWith&&(o.startsWith=encodeURIComponent(a.value.startsWith)),o}function k(){const a=_.query;a.page&&(e.value.page=Number(decodeURIComponent(String(a.page)))),a.query&&(e.value.searchTerm=decodeURIComponent(String(a.query)),l.value=e.value.searchTerm),a.category&&(e.value.category=decodeURIComponent(String(a.category))),a.startsWith&&(e.value.startsWith=decodeURIComponent(String(a.startsWith)))}return ee(()=>{f.replace({query:R(e)})}),ae(()=>_.fullPath,()=>{k()}),(a,o)=>(n(),P(le,{class:"topic-overview-page"},{default:I(()=>[i("section",fe,[v(ye,{headline:s(r)("topicOverviewPage.headline")},{default:I(()=>[i("div",null,[i("h2",{class:"topic-overview-page__intro",textContent:T(s(r)("topicOverviewPage.
1intro",{lineName:s(r)("lineConfig.lineName")}))},null,8,we)])]),_:1},8,["headline"])]),i("section",Te,[i("div",Pe,[i("form",{class:"topic-overview-page__top-bar__panel",name:"topic-search-form",onSubmit:te(L,["prevent"])},[v(oe,{id:"search-term",modelValue:s(l),"onUpdate:modelValue":o[0]||(o[0]=t=>se(l)?l.value=t:null),type:"text",class:"topic-overview-page__top-bar__input",placeholder:s(r)("topicOverviewPage.field.searchTerm.placeholder"),onBlur:o[1]||(o[1]=()=>{l.value=s(l).trim()})},null,8,["modelValue","placeholder"]),v(U,{label:s(r)("topicOverviewPage.button.search"),type:"submit"},null,8,["label"])],32),i("div",Se,[v(ge,{id:"topic",modelValue:s(e).category,"onUpdate:modelValue":[o[2]||(o[2]=t=>s(e).category=t),M],options:s(x),placeholder:s(r)("topicOverviewPage.field.topic.placeholder"),label:s(r)("topicOverviewPage.field.topic.placeholder")},null,8,["modelValue","options","placeholder","label"])])])]),i("section",xe,[i("div",be,[(n(!0),d(A,null,N(s(H),t=>(n(),P(U,{key:t,label:t,appearance:"tertiary",active:s(e).startsWith===t,onClick:p=>D(t)},null,8,["label","active","onClick"]))),128))])]),i("section",Ce,[i("div",We,[i("span",qe,T(s(B)),1),i("div",Oe,[(n(!0),d(A,null,N(s(b),(t,p)=>(n(),d("div",{key:p+"_"+t.url,class:"column is-full is-half-tablet is-one-third-desktop"},[v(ie,{link:s(z)({name:"topic-slug",params:{slug:t.id}}),text:t.title,"tracking-category":"topic",class:"topic-overview-page__results__list__link"},null,8,["link","text"])]))),128))])])]),s($)?(n(),d("section",Re,[i("div",ke,[v(de,{"current-page":s(e).page??1,"max-pages":s(E),"external-event-handling":!0,onOnNavigate:Q},null,8,["current-page","max-pages"])])])):re("",!0)]),_:1}))}}),Ie=Object.assign(Fe,{__name:"PagesTopicOverviewPage"}),Ve=S({__name:"index",setup(y){pe().value="default";const u=V().query,r=!!(u.query||u.category||u.startsWith);return ve().useDefaults("topicOverview",{noIndex:r}),(_,f)=>(n(),P(Ie))}});export{Ve 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.