PageSourceSearch

https://static.ksta.de/__assets/_nuxt/B1FVIGfD.js

js ksta.de collected 2026-09-24 08:39:43 UTC 6,639 bytes, 1 lines download raw bytes

1import{s as e}from"./D_on4AFH.js";import{$t as t,C as n,G as r,Nt as i,Tt as a,d as o,dt as s,f as c,ft as l,h as u,jt as d,lt as f,m as p,nn as m,p as h,pt as g,q as _,rn as v,ut as y,x as b}from"./D9d_4q1I.js";import{u as x}from"./BDHHldE6.js";import{t as S}from"./DYWcKvqL.js";import{t as ee}from"./Ds9skkgH.js";import{r as te}from"./DLSuFSN1.js";import{f as ne,p as C,t as w}from"./BvtST-mO.js";import{a as T}from"./LEvys-hS.js";import{r as E}from"./FJ2DA3F0.js";import{t as re}from"./C8oVZPM9.js";import{n as D}from"./B95nhwdc.js";import{t as ie}from"./BOD6q0Xz.js";import{n as O}from"./CPB5PKBn.js";import{l as k}from"./Dl0ELuBr.js";import{n as ae,t as A}from"./Da8jCoil.js";import{t as j}from"./DCyf4pHg.js";import{t as M}from"./BDNMzG2s.js";import{t as oe}from"./Crr40ORe.js";function N(){let e=S(`menu-bookmark-icon.bookmark`,()=>null),t=S(`menu-bookmark-icon.feed-bookmark`,()=>null);return{bookmarkMenuIcon:e,feedBookmarkMenuIcon:t,getAnimatedBookmarkIconCssVars:t=>C(t,e.value),getAnimatedFeedBookmarkIconCssVars:e=>C(e,t.value)}}var P=(e=`300px`)=>{let t=a(null),n=a(!1),{stop:r}=k(t,([e])=>{e.isIntersecting&&(n.value=!0,r())},{rootMargin:e});return{container:t,isNearViewport:n}},F={class:`flex flex-col justify-center pb-2 w-[300px]`},I={class:`my-2`},L={class:`my-2`},R={class:`text-center text-darkgrey`},se=Object.assign(n({__name:`ArticleBookmarkDialog`,emits:[`close`],setup(t,{emit:n}){let{dispatchAdobeAnalyticsGenericEvent:r}=E(),{isLoggedIn:i}=T(w()),{t:o}=D(),{$auth:s}=e(),u=a(!1),d=n,p=()=>{r({eventName:`pop_up_tool_open`,toolName:o(`bookmarks.events.save`)})},m=()=>{r({eventName:`pop_up_tool_closed`,toolName:o(`bookmarks.events.save`)}),u.value||(O(`bookmarkedArticleId`).value=null)},g=()=>{u.value=!0,r({eventName:`pop_up_tool_register_button_click`,toolName:o(`bookmarks.events.save`)}),s.signup()},y=()=>{u.value=!0,s.login()};return f(i,e=>{e&&d(`close`)}),(e,t)=>{let n=A;return _(),h(n,{title:e.$t(`dialog.bookmark.notlogged.heading`),onClosed:m,onOpened:p,onClose:t[0]||=e=>d(`close`)},{default:l(()=>[c(`div`,F,[c(`p`,I,v(e.$t(`dialog.bookmark.notlogged.paragraph1`)),1),c(`p`,L,v(e.$t(`dialog.bookmark.notlogged.paragraph2`)),1),c(`button`,{class:`block mx-auto my-2 text-white py-2 px-8 font-bold bg-primary dark:bg-lightblue`,onClick:g},v(e.$t(`dialog.notlogged.signup`)),1),t[1]||=c(`hr`,{class:`w-3/4 my-4 mx-auto`},null,-1),c(`p`,R,v(e.$t(`dialog.notlogged.alreadyuser`)),1),c(`button`,{class:`mx-auto hover:underline`,onClick:y},v(e.$t(`dialog.notlogged.login`)),1)])]),_:1},8,[`title`])}}}),{__name:`ModalsArticleBookmarkDialog`}),ce=[`popovertarget`],le=[`id`],ue={ref:`tooltipWrapper`,class:`dm-tooltip-wrapper relative cursor-pointer`},z=Object.assign(M(n({__name:`ArticleBookmark`,props:{articleId:{},showLabel:{type:Boolean,default:!1},enableTooltip:{type:Boolean,default:!0},eventSource:{},enableAnimation:{type:Boolean,default:!0}},async setup(e){let n,l,{dispatchAdobeAnalyticsGenericEvent:f}=E(),{t:h}=D(),{articleId:S,eventSource:C,showLabel:k,enableAnimation:A}=d(e),{isExpress:M}=j(),{isLoggedIn:F,isPlusUser:I}=T(w()),{userArticleBookmarksCount:L,checkIfArticleIsBookmarked:R,addUserArticleBookmark:z,removeUserArticleBookmark:de}=ne(),{getAnimatedBookmarkIconCssVars:B}=N(),{isMobile:V}=ie(),{container:fe,isNearViewport:H}=P(),U=o(()=>{switch(C.value){case`teaserTool`:return`dm-article-teaser`;case`articleTool`:return`dm-article-action-bar`;case`toolbar`:return`dm-toolbar`}return``}),W=a(!1),pe=o(()=>C.value==`articleTool`),G=a(!1),me=()=>{G.value=!1},K=()=>{A.value&&(G.value=!0,setTimeout(()=>{me()},2e3))},{open:q,close:J}=ae({component:se,attrs:{onClose:()=>J()}}),Y=a(!1),X=a(null),Z=a({}),Q=a(!1),he=a(!0),ge=async()=>{if(F.value)await _e();else{let{isNativeApp:e}=ee();if(e){let{openLoginPage:e}=te();await e()}else O(`bookmarkedArticleId`,{maxAge:3600}).value=S.value,q()}},_e=async()=>{W.value?(await de(S.value),W.value=!1,K(),Y.value=!1,$(h(`bookmarks.events.remove`))):he.value||!I.value&&L.value<5||M.value?(await z(S.value),W.value=!0,K(),Y.value=A.value,$(h(`bookmarks.events.save`)),X.value&&(Z.value=B(X.value))):q()},$=e=>{f({eventName:pe.value?`article_tool_click`:`teaser_tool_click`,toolName:e})},{data:ve}=([n,l]=s(async()=>re(`article-${S.value}-is-bookmarked`,async()=>!F.value||!H.value?!1:!!await R(S.value),{server:!1,immediate:!0,default:()=>!1,watch:[F,H]})),n=await n,l(),n);return y(()=>{W.value=!!ve.value}),r(()=>J()),(e,n)=>{let r=oe;return _(),u(`div`,{ref_key:`container`,ref:fe,class:`relative`},[c(`button`,{class:t([`${i(U)}__trigger`,`flex flex-nowrap flex-col md:flex-row px-2 gap-2 font-bold cursor-pointer`,i(M)?`text-black dark:text-white`:`text-primary dark:text-lightblue`]),popovertarget:`article-bookmark-${i(S)}`,onClick:n[0]||=e=>ge(),onMouseover:n[1]||=e=>Q.value=!i(V)&&!0,onMouseenter:n[2]||=e=>e.target?.popoverTargetElement?.classList.add(`show`),onMouseleave:n[3]||=e=>{Q.value=!i(V)&&!1,e.target?.popoverTargetElement?.classList.remove(`show`)},onFocusin:n[4]||=e=>e.target?.popoverTargetElement?.classList.add(`show`),onFocusout:n[5]||=e=>e.target?.popoverTargetElement?.classList.remove(`show`)},[!i(k)&&!i(G)?(_(),u(`div`,{key:0,id:`article-bookmark-${i(S)}`,class:`actionbar-popover`},v(e.$t(i(W)?`article.actionbar.saved`:`article.actionbar.save`)),9,le)):p(``,!0),c(`span`,ue,[g(b(r,{name:`bookmarkActive`,height:i(M)?30:20,width:i(M)?30:20,class:t({"text-primary":i(M)})},null,8,[`height`,`width`,`class`]),[[x,i(W)||i(Q)]]),c(`span`,{ref_key:`animatedIcon`,ref:X,style:m(i(Z)),class:t([`absolute opacity-0 to
1p-0 left-0 z-40`,{animated:i(Y)}])},[b(r,{name:`bookmarkActive`,height:i(M)?30:20,width:i(M)?30:20,class:t({"text-primary":i(M)})},null,8,[`height`,`width`,`class`])],6),g(b(r,{name:`bookmark`,height:i(M)?30:20,width:i(M)?30:20,class:t({"text-black dark:text-white":i(M)})},null,8,[`height`,`width`,`class`]),[[x,!i(W)&&!i(Q)]]),i(G)?(_(),u(`span`,{key:0,ref:`tooltip`,class:`dm-tooltip absolute bg-whitesmoke text-primary rounded-[4px] font-bold text-xs whitespace-nowrap z-10 py-0.5 px-1.5 bottom-full right-0 mb-2 before:content-[''] before:absolute before:w-0 before:h-0 before:top-full before:right-[8px] before:border-solid before:border-transparent before:border-t-whitesmoke before:border-4 before:border-t-[6px] before:border-b-0`},v(e.$t(i(W)?`article.actionbar.saved`:`article.actionbar.unsaved`)),513)):p(``,!0)],512),c(`span`,{class:t([`${i(U)}__item-text`,{"!sr-only":!i(k),"not-sr-only":i(k)}])},v(e.$t(i(W)?`article.actionbar.saved`:`article.actionbar.save`)),3)],42,ce)],512)}}}),[[`__scopeId`,`data-v-32afd38b`]]),{__name:`MoleculesArticleBookmark`});export{P as n,N as r,z 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.