PageSourceSearch

https://www.boote-magazin.de/_next/static/chunks/VideoBookmark.73db16fc127c45e7.js

js boote-magazin.de collected 2026-10-02 17:11:16 UTC 2,001 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[18156],{27404:(e,o,t)=>{t.r(o),t.d(o,{VideoBookmark:()=>m,default:()=>u});var a=t(6029),i=t(75828),r=t.n(i),n=t(5700),l=t(55729),s=t(683),d=t(26898),c=t(86013),k=t(80523);let m=({videoId:e,videoData:o=null,darkMode:t=!0,className:i=""})=>{let m=(0,n.c)("common"),[u,f]=(0,l.useState)(!1),[h,b]=(0,l.useState)(!1),[p,y]=(0,l.useState)(!1),{isReady:g,isAuthorized:v,signIn:w}=(0,d.A)();if((0,l.useEffect)(()=>{if(!e||!v)return;let o=(0,s.getActive)()?.id;o&&(async()=>{try{let t=await fetch(`/api/videoBookmark/getBookmark?videoId=${encodeURIComponent(e)}&portal=${o}`),a=await t.json();t.ok&&"boolean"==typeof a.bookmarked&&f(a.bookmarked)}catch(e){console.error("[VideoBookmark] load failed:",e)}})()},[e,v]),!e)return null;let B=async()=>{if(h)return;if(!g||!v)return void y(!0);let t=(0,s.getActive)()?.id;if(!t)return;let a=!u;b(!0),f(a);try{let i=await fetch("/api/videoBookmark/addVideoToSaved",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({videoId:e,bookmarked:a,portal:t,videoData:a?o:null})});if(!i.ok){f(!a);let e=await i.json().catch(()=>({}));console.error("[VideoBookmark] set failed:",e.message||i.status)}}catch(e){f(!a),console.error("[VideoBookmark] set failed:",e)}finally{b(!1)}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button","aria-label":m("VIDEO_BOOKMARK_LABEL"),"aria-pressed":u,onClick:B,disabled:h,className:r()("inline-flex size-11 items-center justify-center rounded border transition-colors",t?"border-white/30 text-white hover:bg-white/10":"border-skin-primary-light text-skin-primary-ultradark hover:bg-skin-primary-ultralight",{"opacity-50":h},u&&(t?"bg-white/15":"bg-skin-primary-ultralight"),i),children:(0,a.jsx)(c.I,{iconName:"bookmark",iconType:u?"fill":"outline",className:"size-5"})}),(0,a.jsx)(k.LoginConfirmationOverlay,{message:m("LOGIN_MESSAGE_BOOKMARK_VIDEO"),visible:p,onCancel:()=>y(!1),onProceed:()=>{y(!1),w()}})]})},u=m}}]);

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.