import{$ as r}from"./iframe-DSGyX7_4.js";import{c as o,n as k,s as d}from"./helpers-DDTkKuvc.js";const p=[{label:"teilen",href:"#",target:null,class:"share-mail",id:"teilen",title:null,onMouseDown:null},{label:"drucken",href:"?print=true&amp;printsrc=button",target:null,class:"print-btn",id:"teilen",title:"Dokument drucken",onMouseDown:"if (typeof (ET_Event) !== 'undefined') {_etracker.sendEvent(new et_ClickEvent('Dokument drucken', 'Seitenfunktion'))}"},{label:"speichern",href:"/blueprint/printpdf/?stream=true&contentId=5627068",target:"_blank",class:"print-pdf",id:null,title:"Dokument als PDF",onMouseDown:"if (typeof (ET_Event) !== 'undefined') {_etracker.sendEvent(new et_ClickEvent('Dokument als PDF', 'Seitenfunktion'))}"}];class a{constructor(e){this.wrapper=e,this.initBookmarks()}initBookmarks(){this.bookmarks=this.wrapper.find(".bookmarks"),this.wrapper.find(".share-mail").on("click",e=>{e.preventDefault(),this.bookmarks.addClass("show-bookmarks")})}}r("body").on("ihk-init dynamic-component-loaded gfi-dynamic-init",function(){r(".print-share:not(.initiated)").each(function(){new a(r(this))})});const w=({listItems:i=p})=>{const e=o("div",["print-share","variant-base"]),s=o("ul",["print-share-list"],null,e);i.map((n,h)=>{const u=o("li",[],null,s),t=o("a",[n.class],n.label,u);n.href&&n.href.length>0&&(t.href=n.href),n.onMouseDown&&n.href.onMouseDown>0&&(t.onmousedown=n.onMouseDown),n.title&&n.title.length>0&&(t.title=n.title),n.id&&n.id.length>0&&(t.id=n.id),n.target&&n.target.length>0&&(t.target=n.target)});const l=o("div",["bookmarks"],null,e),c=k({items:d,title:"Bookmark setzen bei: "});return l.appendChild(c),new a(r(e)),e};export{w as c,p};
