PageSourceSearch

https://static.zeit.de/p/zeit.web/js/6977.c889b374d82c0f97.js

js zeit.de collected 2026-09-24 06:50:32 UTC 7,805 bytes, 7 lines download raw bytes

1"use strict";(self.rspackChunk=self.rspackChunk||[]).push([[6977],{1485(t,e,i){var n=i(1925),o=i(4505),s=i(2289),a=i(619);let r=n.A.user&&!!n.A.user.ssoid;class l{constructor(t){this.container=t.closest(".js-show-podcast-feed"),this.element=t}handleEvent(t){(t.preventDefault(),this.authorized())?this.copyLink():this.showWally()}authorized(){return!n.A.freebie&&n.A.user?.hasSomeEntitlement?.(["zplus","podcast"])}showWally(){let t=n.A.settings.get(`footerbar_audio_${r?"abo":"registration"}`,"sys_gate_audio_web");if(t){let e=this.getTrackingEntities();n.A.renderWally(t,void 0,e)}}getTrackingEntities(){return this.entities||(this.entities=function(t){let e=(0,a.Yl)(t);if(!e)return{};let i={article_uuid:e?.linked_page_uuid,article_url:e?.linked_page_url,entitlements:t.dataset.accepted_entitlements?.split(",")||null};return{teaser:[e],article:[i]}}(this.element)),this.entities}track(t){n.A.dispatchEvent("track",this.element,{customClickParameter:t})}notify(t){s.A.showInline({element:this.container,message:t})}copyLink(){let t="Der Link wurde in die Zwischenablage kopiert";if(window.zappi?.postMessage&&navigator.userAgent.indexOf("ZONApp/Android")>-1)this.create().then(()=>{(0,o.xI)(this.element,t)&&this.notify(t)}).catch(t=>{this.notify(t)});else if(window.ClipboardItem&&navigator.clipboard?.write){let e=new ClipboardItem({"text/plain":this.create().then(t=>new Blob([t],{type:"text/plain"}))});navigator.clipboard.write([e]).then(()=>{this.notify(t)},t=>{this.notify(t)})}else this.create().then(()=>{(0,o.xI)(this.element,t)&&this.notify(t)}).catch(t=>{this.notify(t)})}create(){return fetch("/-/freebies/freebies",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",Prefer:"return=representation","X-ZON-Entitlement":"podcast"},body:JSON.stringify({content:this.element.dataset.uuid,path:new URL(this.element.href).pathname.replace("/rss-podcatcher","")})}).then(t=>{if(!t.ok)throw Error(t.statusText);return t.json()}).then(t=>{let e=t[0];return this.element.search=`?freebie=${e.token}`,n.A.log(`generated freebie: ${this.element.href}`),this.track({7:e.token,9:"copy-link"}),this.element.href})}}function c(t){let e=t.target.closest(".js-create-podcast-feed");e&&new l(e).handleEvent(t)}i.d(e,{},{default:function(){document.addEventListener("click",c)}})},4505(t,e,i){function n(t){let e=document.createElement("textarea");e.value=t,e.style.position="absolute",e.style.left="-999999px",document.body.prepend(e),e.select();try{document.execCommand("copy")}catch(t){console.error(t)}finally{e.remove()}}async function o(t){if(navigator.clipboard)try{await navigator.clipboard.writeText(t)}catch(e){n(t)}else n(t)}i.d(e,{lC:()=>c,xI:()=>r,default:()=>h});var s=i(9861),a=i(2289);function r(t,e){let i=t.href||t.dataset.copyContent;return window.zappi?.postMessage&&navigator.userAgent.indexOf("ZONApp/Android")>-1?(window.zappi.postMessage({type:"zoncopy",cliptext:i,message:e}),!1):(o(i),!0)}function l(t){t.preventDefault();let e="Der Link zu diesem Eintrag wurde in Ihre Zwischenablage kopiert.";r(this,e)&&(0,s.A)(e)}function c(t){t.preventDefault();let e=this.getAttribute("aria-label"),i=e?`${e} kopiert`:"Der Link wurde in die Zwischenablage kopiert";r(this,i)&&a.A.showInline({element:this,message:i})}let h=function(){document.querySelectorAll(".js-copy").forEach(t=>{t.addEventListener("click",l)}),document.querySelectorAll(".js-copy-inline").forEach(t=>{t.addEventListener("click",c)})}},2289(t,e,i){let n=`
2			<button class="z-toast-bottom__close-btn" aria-label="Schlie\xdfen">
3				<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
4					<path d="M15 15L2.99999 3.00001" stroke="#444444" stroke-width="1.5"/>
5					<path d="M15 3.00001L3.00001 15" stroke="#444444" stroke-width="1.5"/>
6				</svg>
7			</button>`;class o{constructor(){if(o.instance)return o.instance;o.instance=this,this.toasts=[],this.maxToasts=3,this.container=null,this.toastTimeout=4e3}showBottom({message:t,status:e,button:i,link:n}){this.container=this.createBottomContainer();let o=this.createToast({message:t,status:e,button:i,link:n});this.toasts.push(o),this.toasts.length>this.maxToasts&&this.removeToast(this.toasts[0]),this.container.show(),this.startTimeout(o)}async setAndAnnounceMessage(t){this.container?(this.container.innerText="",await new Promise(t=>{setTimeout(()=>{t()},50)}),this.container.innerText=t):console.warn("Toaster container is not initialized.")}async showInline({element:t,message:e}){let i={timeoutID:null};this.container=this.createInlineContainer(),await this.setAndAnnounceMessage(e),this.inlinePositioning(t,this.container);let n=t=>{this.container&&!this.container.contains(t.target)&&(this.removeInlineToast(this.container,i),document.removeEventListener("pointerup",n))};document.addEventListener("pointerup",n);let o=window.scrollY,s=()=>{Math.abs(window.scrollY-o)>100&&(this.removeInlineToast(this.container,i),document.removeEventListener("scroll",s))};document.addEventListener("scroll",s,{passive:!0}),i.timeoutID=setTimeout(()=>this.removeInlineToast(this.container,i),this.toastTimeout)}createInlineContainer(){let t=document.querySelector(".z-toast-inline");return t||((t=document.createElement("div")).className="z-toast-inline",t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),document.querySelector(".page").insertAdjacentElement("beforeend",t)),t}createBottomContainer(){let t=document.querySelector(".z-toast-bottom");if(!t){if(!("showModal"in(t=document.createElement("dialog"))))return void i.e(4018).then(i.bind(i,841)).then(e=>{e.default.registerDialog(t),this.createBottomContainer()});t.className="z-toast-bottom",document.querySelector(".page").insertAdjacentElement("beforeend",t)}return t}createToast({message:t,status:e,button:i,link:o}){let s=document.createElement("div");s.className=`z-toast-bottom__item ${"error"===e?"z-toast-bottom__item--state-error":""}`,s.setAttribute("role","alert"),s.setAttribute("aria-live","assertive"),i||o||s.classList.add("z-toast-bottom__item--no-action");let a="";return o?a=`<a href="${o.href}" class="z-toast-bottom__action-btn" role="link">${o.text}</a>`:i&&(a=`<button class="z-toast-bottom__action-btn" role="button">${i.text}</button>`),s.innerHTML=`${n}<p class="z-toast-bottom__message">${t}</p>${a}`,this.container.appendChild(s),i&&i.onClick&&(s.querySelector(".z-toast-bottom__action-btn").onclick=()=>{i.onClick(),this.removeToast(s)}),s.querySelector(".z-toast-bottom__close-btn").onclick=()=>this.removeToast(s),s.isPaused=!1,this.addPauseResumeEvents(s),s}inlinePositioning(t,e){let i=t.getBoundingClientRect(),n=document.documentElement.clientWidth||window.innerWidth,o=document.documentElement.clientHeight||window.innerHeight;e.style.top="auto",e.style.right="auto",e.style.left=Math.round(window.scrollX+i.left)+"px",e.style.bottom=Math.round(0-window.scrollY+o-i.top+8)+"px",(i=e.getBoundingClientRect()).right>=n&&(e.style.left="auto",e.style.right="var(--z-gap)")}startTimeout(t){t.timeoutID=setTimeout(()=>{t.isPaused||this.removeToast(t)},this.toastTimeout)}addPauseResumeEvents(t){let e=()=>{t.isPaused=!1,this.startTimeout(t)};t.addEventListener("pointerenter",()=>{t.isPaused=!0,clearTimeout(t.timeoutID)}),t.addEventListener("pointerleave",e)}removeToast(t){t&&(t.remove(),this.toasts=this.toasts.filter(e=>
7e!==t),clearTimeout(t.timeoutID),0===this.toasts.length&&this.container.open&&this.container.close())}removeInlineToast(t,e){clearTimeout(e.timeoutID),t.remove()}}let s={toaster:new o,showInline({message:t,element:e}){this.toaster.showInline({message:t,element:e})},showBottom({message:t,status:e,button:i,link:n}){this.toaster.showBottom({message:t,status:e,button:i,link:n})}};window.Zeit.toast=s,i.d(e,{},{A:s})}}]);

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.