PageSourceSearch

https://www.tankerkoenig.de/_nuxt/DND8gdaW.js

js tankerkoenig.de collected 2026-09-25 14:18:25 UTC 9,418 bytes, 1 lines download raw bytes

1import j from"./uV0Fadd9.js";import{_ as H}from"./Cgk2HVfK.js";import{_ as q,a as G,u as J}from"./_JwpxXdF.js";import{u as O,d as Z}from"./Bd1BaL7e.js";import{c as R,k as Y,l as Q,a as X}from"./BQ6wUm6E.js";import{a as ee,F as te}from"./CxrwSfTW.js";import{d as ae}from"./DlXh5Vpi.js";import{P as $}from"./C13fJ2oO.js";import{d as ne,W as re,a as N,m as p,n as se,c as n,e as a,t as i,b as T,f as d,F as m,r as g,k as u,w as le,B as ie,aq as x,s as M,l as f,o as t,i as oe}from"./CIlsd43Y.js";import{u as de,c as ue}from"./bpSNn1QH.js";import"./rIHos1g9.js";import"./DlAUqK2U.js";function me(b){const o=b.daily,y=o?R(o.generatedAt):null;return!o?.title||!y?"KI-Marktbriefing zur Spritpreislage in Deutschland: Tages-, Wochen- und Monatsbriefing auf MTS-K-Datenbasis, täglich neu erstellt.":`KI-Marktbriefing zu den Spritpreisen: „${o.title}“. Täglich neu, dazu Wochen- und Monatsbriefing (Datenbasis MTS-K). Stand: ${y}`}function ce(b){const o=b.daily;return!o?.title||!o.generatedAt?null:{headline:o.title,datePublished:o.generatedAt,dateModified:o.generatedAt}}const pe={class:"mx-auto max-w-3xl px-6 py-12"},fe={key:0,class:"text-muted mt-8 text-sm"},ge={key:1,class:"mt-8"},ye={class:"text-muted text-sm"},ve={key:0,"aria-label":"Zu einem Briefing springen",class:"mt-8 flex flex-wrap items-center gap-x-5 gap-y-1"},he=["href"],xe={class:"mt-6 flex flex-col gap-6"},be={key:0,id:"tag",class:"border-border scroll-mt-6 overflow-hidden rounded-xl border"},ke={class:"bg-primary px-6 pt-5 pb-7 text-white sm:px-7"},_e={class:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-1"},we={class:"flex items-center gap-2.5"},Te={"data-test":"briefing-quelle",class:"bg-white/10 text-primary-foreground inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[11px] font-semibold"},Me={class:"mt-1.5"},Ae={key:0,class:"mt-1.5","data-test":"live-fehler-hinweis"},Ce={key:0,class:"text-primary-foreground shrink-0 text-sm tabular-nums opacity-80"},De={key:0,class:"mt-5 flex justify-center"},Se={class:"inline-flex items-center gap-1.5 rounded-full bg-white/10 px-2.5 py-1 text-xs font-semibold"},ze={class:"mt-6 sm:hidden"},Be={class:"sr-only"},Ee={"aria-hidden":"true"},Ie={"aria-hidden":"true"},Ke={class:"mt-6 hidden sm:flex sm:items-start sm:justify-center sm:gap-x-12"},Le={class:"text-primary-foreground text-sm"},Fe={key:0,class:"text-primary-foreground text-xs font-semibold tabular-nums"},Pe={"aria-hidden":"true"},$e={key:1,class:"text-primary-foreground mt-3 text-center text-xs opacity-80"},Ne={key:4,class:"text-muted text-sm"},Ve="linear-gradient(-179deg, var(--color-price-lcd-top) 50%, var(--color-price-lcd-bottom) 61%)",Xe=ne({__name:"marktbriefing",async setup(b){let o,y;const{data:A}=([o,y]=re(()=>J()),o=await o,y(),o),E=me(A.value??{});N({title:"Marktbriefing",meta:[{name:"description",content:E},{property:"og:title",content:"Marktbriefing"},{property:"og:description",content:E}]}),N({noscript:[{innerHTML:"<style>.briefing-prosa{display:block!important;overflow:visible!important;-webkit-line-clamp:unset!important}</style>"}]});const k=ce(A.value??{});k&&de([ue({headline:k.headline,datePublished:k.datePublished,dateModified:k.dateModified})]);const l=p(A.value??null),v=p(l.value?"ready":"loading"),I=p(""),K=p("tagesstand"),C=p(!1),D=p(!1),h=p("");async function L(){if(C.value)return;C.value=!0;const s=l.value!=null;s||(v.value="loading");try{l.value=await O().getBriefing(),K.value="live",v.value="ready",D.value=!1,h.value=new Intl.DateTimeFormat("de-DE",{timeZone:"Europe/Berlin",hour:"2-digit",minute:"2-digit",hour12:!1}).format(new Date)}catch(e){s?D.value=!0:(I.value=ae(e),v.value="error")}finally{C.value=!1}}se(L);const c=f(()=>{const s=l.value?.daily;return s?ee.filter(e=>s.prices[e]!=null).map(e=>{const _=Y(s.keyNumbers?.[e]?.changeCentYesterday);return{key:e,label:te[e],price:s.prices[e],delta:_,deltaArrow:_?.dir==="down"?"▼":"▲"}}):[]}),S=f(()=>{const s=l.value?.daily;return s?.tone?Z(s.tone,s.magnitude):null}),V=f(()=>{const s=l.value?.daily?.tone;return s==="fallend"?"text-trend-down":s==="steigend"?"text-trend-up":"text-white/80"}),F=f(()=>{const s=l.value?.daily;return s?Q(s.period.from,s.period.to):""}),z=f(()=>`repeat(${c.value.length}, minmax(0, 1fr))`),U=f(()=>c.value.some(s=>s.delta)),P=f(()=>{const s=l.value;return s?[s.daily&&{id:"tag",label:"Tag"},s.weekly&&{id:"woche",label:"Woche"},s.monthly&&{id:"monat",label:"Monat"}].filter(e=>!!e):[]});return(s,e)=>{const _=j,W=H,w=G;
1return t(),n("div",pe,[e[11]||(e[11]=a("h1",{class:"text-h1"},"Marktbriefing",-1)),e[12]||(e[12]=a("p",{class:"text-lead text-foreground mt-3 max-w-2xl"}," Das KI-gestützte Marktbriefing zur Spritpreislage in Deutschland: täglich, wöchentlich und monatlich. ",-1)),v.value==="loading"?(t(),n("p",fe,"Lädt …")):v.value==="error"?(t(),n("div",ge,[a("p",ye,i(I.value),1),a("button",{type:"button",class:"border-border text-foreground hover:bg-surface-muted mt-3 inline-flex min-h-11 items-center gap-2 rounded-md border px-4 py-2 text-sm font-semibold transition-colors",onClick:e[0]||(e[0]=r=>L())},[T(_,{name:"lucide:refresh-cw",size:"16","aria-hidden":"true"}),e[1]||(e[1]=d(" Erneut versuchen ",-1))])])):l.value?(t(),n(m,{key:2},[P.value.length>1?(t(),n("nav",ve,[(t(!0),n(m,null,g(P.value,r=>(t(),n("a",{key:r.id,href:`#${r.id}`,class:"text-info-ink decoration-info-ink/40 hover:decoration-info-ink inline-flex min-h-9 items-center gap-1 text-sm font-medium underline underline-offset-4 transition-colors"},[e[2]||(e[2]=a("span",{"aria-hidden":"true"},"↓",-1)),d(i(r.label),1)],8,he))),128))])):u("",!0),a("div",xe,[l.value.daily&&c.value.length?(t(),n("article",be,[a("div",ke,[a("div",_e,[a("span",we,[e[9]||(e[9]=a("span",{class:"text-primary-foreground text-xs font-bold uppercase tracking-[0.14em]"},"Tagesbriefing",-1)),e[10]||(e[10]=a("img",{src:q,alt:"Vollständig KI-generiert – EU-Kennzeichnung für KI-Inhalte",width:"101",height:"32",class:"h-8 w-auto shrink-0"},null,-1)),a("span",Te,[K.value==="live"?(t(),n(m,{key:0},[e[3]||(e[3]=a("span",{class:"text-info","aria-hidden":"true"},"●",-1)),e[4]||(e[4]=d("Aktuell",-1)),h.value?(t(),n(m,{key:0},[d(" · "+i(h.value),1)],64)):u("",!0)],64)):(t(),n(m,{key:1},[d("Tagesstand")],64))]),T(W,{label:"Was bedeutet Tagesstand bzw. Aktuell?",variant:"inverse",align:"left"},{default:le(()=>[e[8]||(e[8]=a("p",null,[a("strong",null,"Tagesstand"),d(": der über Nacht gespeicherte Stand.")],-1)),a("p",Me,[e[5]||(e[5]=a("strong",null,[a("span",{class:"text-info","aria-hidden":"true"},"●"),d(" Aktuell")],-1)),e[6]||(e[6]=d(": beim Öffnen der Seite einmalig live nachgeladen",-1)),h.value?(t(),n(m,{key:0},[d(" (um "+i(h.value)+" Uhr)",1)],64)):u("",!0),e[7]||(e[7]=d(".",-1))]),D.value?(t(),n("p",Ae,"Live-Daten sind gerade nicht erreichbar; gezeigt wird der Tagesstand.")):u("",!0)]),_:1})]),F.value?(t(),n("span",Ce,i(F.value),1)):u("",!0)]),S.value?(t(),n("div",De,[a("span",Se,[a("span",{"aria-hidden":"true",class:ie(V.value)},i(S.value.glyph),3),d(i(S.value.label),1)])])):u("",!0),a("div",ze,[a("ul",Be,[(t(!0),n(m,null,g(c.value,r=>(t(),n("li",{key:r.key},[d(i(r.label)+": "+i(oe(X)(r.price))+" €",1),r.delta?(t(),n(m,{key:0},[d(", "+i(r.delta.text),1)],64)):u("",!0)]))),128))]),a("div",Ee,[a("div",{class:"grid gap-2 text-center",style:x({gridTemplateColumns:z.value})},[(t(!0),n(m,null,g(c.value,r=>(t(),n("p",{key:r.key,class:"text-primary-foreground text-xs"},i(r.label),1))),128))],4),a("div",{class:"mt-2 grid items-center justify-items-center gap-1 overflow-hidden rounded-lg px-2 py-3",style:x({gridTemplateColumns:z.value,backgroundImage:Ve})},[(t(!0),n(m,null,g(c.value,(r,B)=>(t(),M($,{key:r.key,price:r.price,size:"md",frame:!1,"power-on":"",style:x({"--lcd-delay":`${B*90}ms`})},null,8,["price","style"]))),128))],4),a("div",{class:"mt-2 grid gap-2 text-center",style:x({gridTemplateColumns:z.value})},[(t(!0),n(m,null,g(c.value,r=>(t(),n("span",{key:r.key,class:"text-primary-foreground text-xs font-semibold tabular-nums"},[r.delta?(t(),n(m,{key:0},[a("span",Ie,i(r.deltaArrow),1),d(" "+i(r.delta.text),1)],64)):u("",!0)]))),128))],4)])]),a("div",Ke,[(t(!0),n(m,null,g(c.value,(r,B)=>(t(),n("div",{key:r.key,class:"flex flex-col items-center gap-2"},[T($,{price:r.price,size:"lg","power-on":"",style:x({"--lcd-delay":`${B*90}ms`})},null,8,["price","style"]),a("p",Le,i(r.label),1),r.delta?(t(),n("span",Fe,[a("span",Pe,i(r.deltaArrow),1),d(" "+i(r.delta.text),1)])):u("",!0)]))),128))]),U.value?(t(),n("p",$e," Veränderungen ggü. Vortag ")):u("",!0)]),T(w,{entry:l.value.daily,bare:"","hide-stats":""},null,8,["entry"])])):l.value.daily?(t(),M(w,{key:1,id:"tag",class:"scroll-mt-6",entry:l.value.daily},null,8,["entry"])):u("",!0),l.value.weekly?(t(),M(w,{key:2,id:"woche",class:"scroll-mt-6",entry:l.value.weekly,collapsible:""},null,8,["entry"])):u("",!0),l.value.monthly?(t(),M(w,{key:3,id:"monat",class:"scroll-mt-6",entry:l.value.monthly,collapsible:""},null,8,["entry"])):u("",!0),!l.value.daily&&!l.value.weekly&&!l.value.monthly?(t(),n("p",Ne," A
1ktuell liegt kein Briefing vor. ")):u("",!0)])],64)):u("",!0),e[13]||(e[13]=a("p",{class:"text-muted mt-8 text-xs"}," Datenbasis: Markttransparenzstelle für Kraftstoffe (MTS-K). ",-1)),a("noscript",null,i(l.value?"Ohne JavaScript zeigt diese Seite den Tagesstand der letzten nächtlichen Aktualisierung.":"Für das aktuelle Marktbriefing wird JavaScript benötigt."),1)])}}});export{Xe as default};

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.