/* empty css                */import{$ as I}from"./iframe-DSGyX7_4.js";import{c as e,k as b,j as w}from"./helpers-DDTkKuvc.js";import{c as g}from"./ArtworkComponent-CEe87Hde.js";import{I as C}from"./search-typeahead-CN49cupz.js";const H=[{title:"Beratung und Service",link:"#"},{title:"Interessenvertretung",link:"#"},{title:"Aus- und Weiterbildung",link:"#"},{title:"Unsere Region",link:"#"},{title:"Handelskammer vor Ort",link:"#"},{title:"Veranstaltungen",link:"#"}],K=({artworkStyle:i="artwork",headline1:o="Willkommen bei Ihrer IHK.",headline2:s="Wie können wir Ihnen helfen?",placeholder:c='Tippe "Taxischein" für Autocomplete',api:a="services/search/{SEARCHTERM}.json",tiles:d=H})=>{const t=e("section",["search"],null),h=g({type:i});t.appendChild(h),t.dataset.type=i;const p=e("div",["container","small"],null,t),u=e("div",["row"],null,p),r=e("div",["col"],null,u);e("h1",["like-h2"],o+"<br>"+s,r);const n=e("form",[],null,r),m=e("label",["visually-hidden"],"IHK durchsuchen",n);m.for="search-term",n.appendChild(b({api:a,placeholder:c})),n.appendChild(w({})),n.action="#";const k=e("div",["tiles"],null,r);return d.map(l=>{const f=e("div",["tile","variant-base"],null,k),v=e("a",[],l.title,f);v.href=l.link}),a&&new C(I(n).find("input.typeahead")),t};export{K as c,H as s};
