PageSourceSearch

https://www.iu.de/build/assets/Button-BgEr0VHq.js

js iu.de collected 2026-09-24 17:38:17 UTC 2,407 bytes, 1 lines download raw bytes

1import{i as e}from"./dist-V0wV9pPA.js";import{Ct as t,D as n,E as r,On as i,Yt as a,g as o,k as s,mt as c,qt as l,tr as u,v as d,vn as f}from"./runtime-core.esm-bundler-DPmoNEl9.js";import{n as p}from"./tracking-CUlrFEbe.js";import{t as m}from"./DynamicIcon-C8VHPWuh.js";import{c as h,n as g,s as _}from"./button-CDobz866.js";import{r as v}from"./urlHelper-CjTJ7FwX.js";import{t as y}from"./useQueryParams-1ee35z1j.js";import{i as b}from"./tracking-DvEtHb3N.js";function x(e){return typeof e.component==`string`&&[`button`,`link`,`linked-image`,`richtext-button`].includes(e.component)&&(typeof e.href==`string`||typeof e.hrefLandingpage==`string`)&&e.passQueryParameter===!0}var S=(e,t=!1)=>{if(t&&e!==void 0){let t=y().toString();if(t&&e?.includes(`?`)===!1)return`${e}?${t}`}return e},C=e=>{if(!e||typeof e!=`object`)return;let t=e;for(let e of Object.keys(t)){let n=t[e];if(typeof n!=`object`||!n)continue;let r=n;x(r)?(r.href=S(r.href,r.passQueryParameter),r.hrefLandingpage=S(r.hrefLandingpage,r.passQueryParameter)):C(r)}},w=s({__name:`Button`,props:{blok:{}},setup(s){let y=s,{props:x}=e(),C=f(!1),{resolveHref:w}=_(x.page?.full_slug),T=w(y.blok),E=o(()=>S(T,y.blok.passQueryParameter)),D=async e=>{try{return(await fetch(e,{method:`GET`,headers:{"Cache-Control":`no-store`}})).status===404}catch{return!0}},O=e=>{D(e).then(t=>{C.value=t,C.value&&setTimeout(()=>O(e),5e3)}).catch(()=>{setTimeout(()=>O(e),5e3)})};y.blok.checkHrefForExistence&&y.blok.href&&!y.blok.disabled&&(C.value=!0,O(E.value??``));let k=o(()=>h(E.value)),A=o(()=>E.value?.includes(`#info-material`)),{isLP:j}=v(),M=o(()=>j.value?A.value?p.CTA_SECONDARY:k.value?p.CTA_PRIMARY:b(y.blok.buttonType):b(y.blok.buttonType)),N=o(()=>C.value&&y.blok.notExistingText?y.blok.notExistingText:y.blok.text);return(e,o)=>{let f=t(`editable`);return a((c(),d(i(g),{variant:s.blok.buttonType,disabled:C.value||s.blok.disabled,href:E.value,type:s.blok.submit?`submit`:`button`,"data-uid":s.blok._uid,"element-type":s.blok.submit||i(j)&&(A.value||k.value)?M.value:i(p).LINK,class:`mt-6 text-pretty whitespace-break-spaces not-last:self-start has-[+[data-slot=button]]:mr-3 last:md:self-start`},{default:l(()=>[n(m,{name:s.blok.iconBefore},null,8,[`name`]),r(` `+u(N.value)+` `,1),n(m,{name:s.blok.iconAfter},null,8,[`name`])]),_:1},8,[`variant`,`disabled`,`href`,`type`,`data-uid`,`element-type`])),[[f,s.blok]])}}});export{C as n,S as r,w as t};

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.