PageSourceSearch

https://knowunity.de/_next/static/chunks/429-510ebdc390a2008b.js

js knowunity.de collected 2026-10-01 15:15:31 UTC 11,544 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e73819f0-fdd0-4dc2-9743-243a401cabee",e._sentryDebugIdIdentifier="sentry-dbid-e73819f0-fdd0-4dc2-9743-243a401cabee")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[429],{7482:(e,t,a)=>{a.d(t,{AD:()=>l,v5:()=>i});var n=a(94371);let r=n.Ik({date:n.Yj(),isPaused:n.zM(),isPartOfCurrentStreak:n.zM(),isReclaimed:n.zM(),isHoliday:n.zM(),usedNewStreakBonus:n.zM().nullish(),isFrozen:n.zM()}),l=n.Ik({maxDays:n.ai(),currentStreak:n.ai(),isNewDay:n.zM(),isNewMaxStreak:n.zM(),canStreakBeGainedToday:n.zM(),nextStreakTicketGain:n.ai(),days:n.YO(r),lastStreakLostOn:n.Yj().nullish(),streakPausedOn:n.Yj().nullish(),lastStreakCount:n.ai().nullish(),usedNewStreakBonus:n.zM(),hasStreakReclaim:n.zM(),bonusDays:n.ai().nullish(),availableStreakFreezes:n.ai().nullish(),streakFreezesPerWeek:n.ai().nullish(),previousAvailableStreakFreezes:n.ai().nullish(),areStreakFreezesRestored:n.zM().nullish()});var i=function(e){return e.Completed="COMPLETED",e.Frozen="FROZEN",e.Empty="EMPTY",e.NextMilestone="NEXT_MILESTONE",e}({})},37715:(e,t,a)=>{a.d(t,{Z:()=>r});var n=a(21462);function r(e){let[t,a]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(a(null),!e)return;let t=!0;return fetch(e).then(e=>e.json()).then(e=>{t&&a(e)}).catch(()=>void 0),()=>{t=!1}},[e]),t}},88429:(e,t,a)=>{a.d(t,{$x:()=>c,NJ:()=>h,UV:()=>m,k_:()=>i,lq:()=>x,s8:()=>f,un:()=>p});var n=a(7482);let r=[3,7,10,20,30,40,50,100];function l(e){return e.toLocaleDateString("en-CA")}function i(){return l(new Date)}function s(e){let t=e.getDay();return 0===t||6===t}function c(e,t){var a;let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Date,c=new Date(i.getFullYear(),i.getMonth(),i.getDate()),o=(c.getDay()+6)%7,u=new Date(c);u.setDate(c.getDate()-o);let d=new Map(e.days.map(e=>[e.date.slice(0,10),e])),f=Array.from({length:7},(e,t)=>{let a=new Date(u);return a.setDate(u.getDate()+t),a}),m=f.some(e=>s(e)&&d.has(l(e)))||s(c)?f:f.slice(0,5),p=(a=e.currentStreak,r.find(e=>e>a)??null),h=null!==p?new Date(c):null;return h&&null!==p&&h.setDate(c.getDate()+(p-e.currentStreak)),m.map(e=>{let a=d.get(l(e)),r=e.getTime()===c.getTime(),i=n.v5.Empty;return e>c?h&&e.getTime()===h.getTime()&&(i=n.v5.NextMilestone):a&&(i=!a.isFrozen||a.isReclaimed||a.isPaused||a.isHoliday?n.v5.Completed:n.v5.Frozen),{date:e,label:function(e,t){let a=new Intl.DateTimeFormat(t,{weekday:"short"}).format(e).slice(0,2);return a.charAt(0).toUpperCase()+a.slice(1)}(e,t),status:i,isToday:r}})}function o(e,t){return`userStreakStorageKey/${e}/${t}`}function u(e){try{return window.localStorage.getItem(e)}catch{return null}}function d(e,t){try{window.localStorage.setItem(e,t)}catch{}}function f(e){return u(o(e,"streakPageCheckAnimationShownDate"))===i()}function m(e){d(o(e,"streakPageCheckAnimationShownDate"),i())}function p(e,t){if(!r.includes(e.currentStreak))return null;let a=u(o(t,"lastSeenStreakMilestone"));return null!==a&&Number(a)>=e.currentStreak?null:e.currentStreak}function h(e,t){d(o(e,"lastSeenStreakMilestone"),String(t))}function x(e,t){return null!==p(e,t)||!!e.isNewDay&&(1!==e.maxDays||!e.isNewMaxStreak)&&!f(t)}},90429:(e,t,a)=>{a.d(t,{F:()=>P});var n,r,l,i,s=a(23798),c=a(38206),o=a(22909),u=a(40284),d=a(66110),f=a(53989);let m={type:"spring",mass:1,stiffness:180,damping:17};function p(e){let{from:t,to:a,animate:n,delaySeconds:r}=e,l="font-greed font-black text-[104px] leading-none";return n?(0,s.jsxs)("span",{className:"relative grid shrink-0 justify-items-center overflow-hidden","aria-label":String(a),children:[(0,s.jsx)(c.P.span,{"aria-hidden":!0,className:(0,f.cn)(l,"col-start-1 row-start-1 text-text-secondary"),initial:{y:0,opacity:1},animate:{y:-48,opacity:0}
1,transition:{...m,delay:r},children:t}),(0,s.jsx)(c.P.span,{className:(0,f.cn)(l,"col-start-1 row-start-1 text-coral-bold"),initial:{y:48,opacity:0},animate:{y:0,opacity:1},transition:{...m,delay:r},children:a})]}):(0,s.jsx)("span",{className:(0,f.cn)(l,"text-coral-bold"),children:a})}var h=a(88429),x=a(21462),y=a(51424),g=a.n(y),k=a(7482),w=a(37715);function v(){return(v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}let b=e=>x.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 23 17"},e),n||(n=x.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3.5,d:"M20.417 1.75 7.583 14.583 1.75 8.75"})));function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}let j=e=>x.createElement("svg",S({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 42 46"},e),r||(r=x.createElement("path",{fill:"#00a6f4",d:"M14.6 2.695C16.932 1.35 18.098.676 19.337.413a8 8 0 0 1 3.327 0c1.24.263 2.405.936 4.736 2.282l7.985 4.61c2.332 1.346 3.497 2.02 4.345 2.96a8 8 0 0 1 1.664 2.882c.391 1.205.391 2.551.391 5.243v9.22c0 2.692 0 4.038-.391 5.243a8 8 0 0 1-1.664 2.881c-.848.942-2.013 1.615-4.345 2.961l-7.985 4.61c-2.331 1.346-3.497 2.02-4.736 2.283a8 8 0 0 1-3.327 0c-1.24-.264-2.405-.937-4.737-2.283l-7.984-4.61c-2.332-1.346-3.497-2.019-4.345-2.96a8 8 0 0 1-1.664-2.882c-.391-1.205-.391-2.55-.391-5.243v-9.22c0-2.692 0-4.038.391-5.243a8 8 0 0 1 1.664-2.881c.848-.942 2.013-1.615 4.345-2.96z"})),l||(l=x.createElement("path",{fill:"#00bcff",d:"M19.337.413a8 8 0 0 1 3.327 0c1.24.264 2.405.936 4.736 2.282l7.985 4.61c2.331 1.347 3.498 2.02 4.346 2.962a8 8 0 0 1 1.663 2.88c.39 1.205.391 2.552.391 5.244v9.218l-.006 1.786c-.018 1.571-.092 2.555-.385 3.458l-.141.396a8 8 0 0 1-1.523 2.485l-.163.173c-.835.855-1.996 1.525-4.182 2.787l-7.985 4.61-1.55.888c-1.369.77-2.257 1.197-3.186 1.395l-.413.077a8 8 0 0 1-2.914-.077c-.93-.198-1.818-.625-3.188-1.395l-1.548-.887-7.985-4.61c-2.186-1.263-3.347-1.933-4.182-2.788l-.163-.173A8 8 0 0 1 .747 33.25l-.14-.396C.216 31.65.216 30.301.216 27.61v-9.218c0-2.524 0-3.865.322-5.016l.07-.227a8 8 0 0 1 1.39-2.562l.273-.32c.635-.706 1.45-1.26 2.801-2.062l1.544-.898 7.985-4.61c2.33-1.347 3.497-2.02 4.736-2.283m2.703 2.935a5 5 0 0 0-2.08 0c-.663.14-1.353.499-3.86 1.946l-6.427 3.71L9.69 9l-.497.296c-.945.564-1.417.846-1.658 1.176a2 2 0 0 0-.09 2.22c.212.348.66.668 1.555 1.308l5.727 3.34c2.287 1.335 3.431 2.002 4.65 2.272a8 8 0 0 0 3.28.04c1.224-.242 2.384-.882 4.702-2.16l6.891-3.802a1.48 1.48 0 0 1 1.47 2.57l-5.322 3.16c-3.427 2.034-5.14 3.052-6.384 4.458a12 12 0 0 0-2.44 4.286C21 29.952 21 31.945 21 35.93v2.518c0 1.407 0 2.11.234 2.551a2 2 0 0 0 1.824 1.06c.475-.014 1.051-.332 2.16-.963q.318-.18.682-.389l7.985-4.61c2.506-1.447 3.162-1.866 3.616-2.37a5 5 0 0 0 1.039-1.801c.21-.646.245-1.423.245-4.317v-9.218c0-2.894-.035-3.671-.245-4.317a5 5 0 0 0-1.039-1.8c-.454-.505-1.11-.924-3.616-2.37L25.9 5.293c-2.506-1.447-3.196-1.805-3.86-1.946"})),i||(i=x.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3.5,d:"M30.334 16 17.5 28.833 11.667 23"}))),N=g()(()=>Promise.all([a.e(6593),a.e(3299),a.e(742)]).then(a.t.bind(a,90742,23)),{loadableGenerated:{webpack:()=>[90742]},ssr:!1});function D(){return(0,s.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",className:"w-6 h-6 text-white/40",children:(0,s.jsx)("path",{d:"M11.28 3.46c.23-.47.35-.7.51-.78a.5.5 0 0 1 .42 0c.16.07.28.31.51.78l2.14 4.34c.07.14.1.2.15.26a.5.5 0 0 0 .15.11c.07.03.15.04.3.06l4.79.7c.52.08.78.12.9.24a.5.5 0 0 1 .13.4c-.02.17-.2.36-.58.73l-3.47 3.37c-.11.11-.16.16-.2.22a.5.5 0 0 0-.06.18c-.01.07 0 .15.02.3l.82 4.77c.09.52.13.78.05.93a.5.5 0 0 1-.34.25c-.17.03-.4-.09-.87-.34L12.4 18.7a1.2 1.2 0 0 0-.28-.12.5.5 0 0 0-.2 0c-.07.01-.14.05-.28.12l-4.28 2.25c-.47.25-.7.37-.87.34a.5.5 0 0 1-.34-.25c-.08-.15-.04-.4.05-.93l.82-4.77c.02-.15.04-.23.02-.3a.5.5 0 0 0-.06-.18 1.2 1.2 0 0 0-.2-.22l-3.47-3.37c-.38-.37-.56-.56-.58-.72a.5.5 0 0 1 .12-.41c.13-.12.39-.16.9-.24l4.8-.7c.15-.02.23-.03.3-.06a.5.5 0 0 0 .15-.11c.05-.05.08-.12.15-.26l2.14-4.34Z",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function M(e){let{day:t,animateToday:a,animationDelaySeconds:n}=e,r=t.isToday&&a&&t.status===k.v5.Completed,[l,i]=(0,x.useState)(!r),[c,o]=(0,x.useState)(!1),u=(0,w.Z)(r?"/lotties/streak-page-check.json":null);(0,x.useEffect)(()=>
1{if(!r)return;let e=setTimeout(()=>o(!0),1e3*n),t=setTimeout(()=>i(!0),1e3*n+500);return()=>{clearTimeout(e),clearTimeout(t)}},[r,n]);let d=t.status===k.v5.Frozen,m=t.status===k.v5.Completed&&l;return(0,s.jsxs)("div",{className:"flex flex-col items-center gap-2.5",children:[(0,s.jsx)("span",{className:"text-lg font-semibold text-text-primary",children:t.label}),(0,s.jsxs)("div",{className:(0,f.cn)("relative w-11 h-11 rounded-full flex items-center justify-center transition-[background-color,box-shadow] duration-500",d&&"bg-transparent",!d&&(m?"bg-coral-bold shadow-[0_4px_0_0_#C0522F]":"bg-white/10 border border-border shadow-[0_4px_0_0_rgba(0,0,0,0.28)]")),children:[t.status===k.v5.Frozen?(0,s.jsx)(j,{className:"w-[42px] h-[46px]"}):t.status===k.v5.NextMilestone?(0,s.jsx)(D,{}):t.status===k.v5.Completed&&l?(0,s.jsx)(b,{className:"w-[21px] h-[15px]"}):null,c&&u&&(0,s.jsx)("div",{className:"absolute w-[200px] h-[200px] pointer-events-none",children:(0,s.jsx)(N,{animationData:u,loop:!1})})]})]})}function z(e){let{streak:t,locale:a,animate:n,entranceDelaySeconds:r,checkmarkDelaySeconds:l}=e,i=(0,h.$x)(t,a);return(0,s.jsx)(c.P.div,{className:"flex items-end justify-center gap-2",initial:!!n&&{y:16,opacity:0},animate:{y:0,opacity:1},transition:{duration:.4,ease:[.33,1,.68,1],delay:r},children:i.map(e=>(0,s.jsx)(M,{day:e,animateToday:n,animationDelaySeconds:l},e.date.toISOString()))})}function P(e){let{streak:t,showAnimations:a,onContinue:n}=e,{t:r}=(0,u.A)("app"),{i18n:l}=(0,o.useTranslation)(),i=a?{duration:.4,ease:[.34,1.56,.64,1],delay:2.6}:{duration:0};return(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center flex-1 w-full px-7 text-center",children:[(0,s.jsx)(c.P.div,{className:"w-44 h-44 flex items-center justify-center",initial:!!a&&{opacity:0,scale:.6},animate:{opacity:1,scale:1},transition:a?{type:"spring",stiffness:200,damping:12}:{duration:0},children:(0,s.jsx)("img",{src:"/images/streak/streak-flame.webp",alt:"","aria-hidden":"true",width:144,height:144,className:"block"})}),(0,s.jsx)(p,{from:Math.max(t.currentStreak-1,0),to:t.currentStreak,animate:a,delaySeconds:.6}),(0,s.jsx)(c.P.h2,{className:"text-[33px] leading-9 font-black text-coral-bold",initial:!!a&&{opacity:0,y:8},animate:{opacity:1,y:0},transition:a?{duration:.4,ease:[.34,1.56,.64,1],delay:1.25}:{duration:0},children:r("app/streakPageHeader")}),(0,s.jsx)("div",{className:"mt-8 mb-12",children:(0,s.jsx)(z,{streak:t,locale:l.language,animate:a,entranceDelaySeconds:1.3,checkmarkDelaySeconds:1.75})}),(0,s.jsx)(c.P.p,{className:"text-lg leading-6 text-text-primary max-w-md",initial:!!a&&{opacity:0},animate:{opacity:1},transition:i,children:r("app/streakPageDescription")}),(0,s.jsx)(c.P.div,{className:"mt-8 w-full max-w-sm",initial:!!a&&{opacity:0,y:16},animate:{opacity:1,y:0},transition:i,children:(0,s.jsx)(d.$,{size:"lg",className:"w-full",onClick:n,children:r("app/streakPageCta")})})]})}}}]);

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.