1import{B as e,Ba as a,Ct as l,Ea as t,Ga as i,La as r,Na as s,Qi as o,Rt as n,Ya as c,Zi as u,_t as d,aa as m,ba as p,di as f,ga as g,ht as v,ia as h,io as b,ka as y,kt as k,la as x,na as _,no as w,oa as S,ot as B,ra as L,rt as N,so as z,ua as H,ui as j,w as C,ya as T}from"./cEYMgSOO.js";import{C as D,y as O}from"#entry";import{t as U}from"./DzwwMeNN.js";import{t as $}from"./DdKSaeKZ2.js";var E=["innerHTML"],R=["textContent"],V=["id","innerHTML"],q={__name:"SelfServiceItem",props:{id:[String,Number],name:String,label:String,url:String,link:Object,linkDirect:Boolean,title:String,teaser:String},setup(e){const i=e,r=s(),o=_(()=>i.id&&"string"==typeof i.id?i.id:"number"==typeof i.id?`self-service-item-${i.id.toString()}`:`self-service-item-u${r}`);return(i,r)=>{const s=l,c=N,u=n;return t(),h(u,{id:w(o),to:e.link?e.link.url:e.url,target:e.linkDirect?"_blank":e.link?.target??"_self",external:!!e.linkDirect||(e.link?.external??!1),class:"c-self-service-item group","aria-labelledby":w(o)?`${w(o)}__title`:null,"aria-describedby":w(o)&&e.teaser?`${w(o)}__description`:null},{default:a(()=>[H(c,{id:`${w(o)}__title`,class:"block text-heading-md-strong text-interactive group-hover:text-interactiveHover group-active:interactiveActive whitespace-pre-line"},{default:a(()=>[L("span",{class:"group-hover:underline mr-4xs",innerHTML:e.title},null,8,E),e.linkDirect||"_blank"===e.link?.target?(t(),h(s,{key:0,class:"inline-block relative bottom-2 w-0.92em h-0.92em",name:"open-in-new",size:"sm"})):m("",!0)]),_:1},8,["id"]),e.label?(t(),S("span",{key:0,class:"block py-3xs text-body-sm-regular text-medium",textContent:z(e.label)},null,8,R)):m("",!0),e.teaser?(t(),S("p",{key:1,id:`${w(o)}__description`,class:"block text-body-sm-regular text-medium whitespace-pre-line",innerHTML:e.teaser},null,8,V)):m("",!0)]),_:1},8,["id","to","target","external","aria-labelledby","aria-describedby"])}}},A={class:"d-self-service-list"},M={role:"status",class:"sr-only"},F=Object.assign({inheritAttrs:!1},{__name:"SelfServiceList",props:{search:Object,feedback:{type:Object,default:void 0},hideFeedback:{type:Boolean,default:!1}},setup(s){O();const n=s,E=j(),R=c([]),V=c(j().query?.group??1),F=_(()=>R?.value?.find(e=>+e.id===+V.value)),G=c(null),I=c(d(n.search,{populate:E.query})),P=c(I.value.fieldByName.text?.value??""),W=_(()=>g("defaultPageHeaderColorListPage",void 0)??g("defaultPageHeaderColor",void 0)??"surface");function X(e,a=!1){a&&(I.value.fieldByName.text.value=P.value),p(()=>{G.value?.submit()})}function Y(e){return function(e){return e?.find(e=>+e.id===+V.value)}(e)?.items?.filter?.(e=>e?.items?.length)??[]}function Q(e){const a=e?.target?.closest?.("a"),l=a?.id;if(l&&"_blank"!==a.target){const{scrollX:e,scrollY:a}=window;f().replace({hash:`#${l}`,query:j().query}),window.setTimeout(()=>{window.scrollTo(e,a)},0),window.scrollTo(e,a)}}return r(()=>G.value?.limboSearch?.data,e=>{if(e){let a=[];e?.groups?.forEach(e=>{a.push(e)}),R.value=a,R.value.some(e=>+e.id===+V.value)?V.value=R.value.find(e=>+e.id===+V.value)?.id:V.value=+(R.value?.[0]?.id??1)}}),r(F,(e,a)=>{e?.id!==a?.id&&void 0!==a?.id&&X(null)}),(r,s)=>{const n=C,c=v,d=$,p=N,f=l,g=q,_=B,j=e,O=U,E=D;return t(),S("article",A,[H(E,{name:"list-page-layout"},{headerFilters:a(()=>[w(I)?(t(),h(c,{key:0,role:"search",action:w(I).endpointUrl,method:w(I).method,class:"mb-xl",onSubmit:s[2]||(s[2]=u(()=>{},["prevent"]))},{default:a(()=>[w(I).fieldByName.text?(t(),h(n,{key:0,modelValue:w(P),"onUpdate:modelValue":s[0]||(s[0]=e=>i(P)?P.value=e:null),type:"search",name:w(I).fieldByName.text.name,placeholder:w(I).fieldByName.text.placeholder,"aria-label":w(I).fieldByName.text.placeholder||("localize"in r?r.localize:w(k))("SEARCH_FIELD",{capitalize:!0}),"show-clear":!!w(P)||!!w(I).fieldByName.text?.value,class:"flex-shrink flex-grow w-12/12col >=656:w-10/12col >=960:w-8/12col >=1280:w-6/12col",onSubmit:s[1]||(s[1]=e=>X(0,!0))},null,8,["modelValue","name","placeholder","aria-label","show-clear"])):m("",!0)]),_:1},8,["action","method"])):m("",!0)]),filterBar:a(()=>[H(d,{modelValue:w(V),"onUpdate:modelValue":s[3]||(s[3]=e=>i(V)?V.value=e:null),"aria-controls":"search-result-area",filters:w(R),color:w(W),class:"relative"},null,8,["modelValue","filters","color"])]),default:a(()=>[H(O,{id:"search-result-area",ref_key:"searchManager",ref:G,class:"mt-beforeBlocks mb-afterBlocks w-12/12col >=1280:w-8/12col mx-auto flex flex-col","search-filters":w(I),"active-group-id":w(V),config:{enableGroupedSearch:!0},"extra-parameters":1!==w(V)?{group:w(V)}
1:null,"show-more":!1,"show-all":!1},{default:a(({data:e,lastRequestedUrl:l,state:i})=>[L("div",M,z(w(F)?.name?("localize"in r?r.localize:w(k))("SHOWING_RESULTS_FOR_X",{populate:[w(F).name]}):("localize"in r?r.localize:w(k))("SHOWING_ALL_RESULTS")),1),e?.groups?.length&&Y(e.groups)?.length?(t(),h(j,{key:[w(V),l,i.isLoading].join("-"),elements:Y(e.groups),"show-open-all":""},{header:a(({item:e,isActive:l})=>[e.name?(t(),h(p,{key:0,class:"text-heading-sm-strong mr-3xs"},{default:a(()=>[x(z(e.name),1)]),_:2},1024)):m("",!0),L("span",{class:b(["c-base-accordion__icon duration-300 ml-auto",{"rotate-z-0":!l,"rotate-z-180":l}])},[H(f,{name:"expand-more",class:"w-1.6em h-1.6em"})],2)]),panel:a(({item:e})=>[H(_,{tag:"div",level:e.name?"+0":"-1",class:"grid grid-cols-1 >=656:grid-cols-2 >=960:grid-cols-3 gap-x-layout-gutter gap-y-2xl"},{default:a(()=>[(t(!0),S(o,null,y(e.items,({id:e,name:a,label:i,url:r,link:s,linkDirect:o,title:n,teaser:c})=>(t(),h(g,T({key:[w(V),l,e].join("-"),ref_for:!0},{id:e,name:a,label:i,url:r,link:s,linkDirect:o,title:n,teaser:c},{onClickCapture:Q}),null,16))),128))]),_:2},1032,["level"])]),_:1},8,["elements"])):m("",!0)]),_:1},8,["search-filters","active-group-id","extra-parameters"])]),_:1})])}}});export{F 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.