PageSourceSearch

https://flamy.co/_nuxt/_NrGeKwb.js

js flamy.co collected 2026-09-24 12:22:39 UTC 8,955 bytes, 1 lines download raw bytes

1import{_ as ne}from"./zEAgLzoC.js";import{s as le,g as O,a as re,f as R,b as ie,c as ce,d as ue}from"./KcWH9_ne.js";import{s as de}from"./BG0HJo5R.js";import{n as pe,b as V,w as ge,t as q}from"./B7nvAQt6.js";import{d as me,a4 as he,a8 as xe,a3 as _e,ao as fe,al as ve,ap as W,S as ye,a9 as be,ag as we,aq as Le,E as i,a2 as t,ah as J,Z as C,q as a,ab as s,ae as f,ac as v,ad as y,v as l,ar as ze,H as r,af as F,Y,z as Te}from"#entry";import"./CSbHLAk_.js";const Ce={class:"bg-white text-zinc-950"},ke={class:"mx-auto max-w-6xl px-6 pb-24 pt-28 md:px-8 md:pt-36"},Ie={class:"mt-8 max-w-4xl"},Se={class:"flex items-center gap-4"},Ae={key:0,class:"flex h-16 w-16 shrink-0 items-center justify-center rounded-lg bg-orange-50 text-4xl md:h-20 md:w-20 md:text-5xl","aria-hidden":"true"},Me={class:"min-w-0"},Fe={class:"text-sm font-bold uppercase tracking-wider text-orange-600"},Pe={class:"mt-4 text-4xl font-extrabold leading-tight tracking-normal text-zinc-950 md:text-6xl"},$e={class:"mt-6 text-lg leading-relaxed text-zinc-600 md:text-xl"},Ee={class:"mt-10 grid gap-4 md:grid-cols-3"},De={class:"rounded-lg border border-zinc-200 p-5"},Ne={class:"text-3xl font-extrabold text-zinc-950"},Ue={class:"mt-1 text-sm font-semibold text-zinc-500"},Be={class:"rounded-lg border border-zinc-200 p-5"},He={class:"text-3xl font-extrabold text-zinc-950"},je={class:"mt-1 text-sm font-semibold text-zinc-500"},Oe={class:"rounded-lg border border-orange-100 bg-orange-50 p-5"},Re={class:"text-3xl font-extrabold text-orange-700"},Ve={class:"mt-1 text-sm font-semibold text-orange-800"},qe={class:"mt-12 grid gap-10 lg:grid-cols-[minmax(0,1fr)_18rem]"},We={class:"space-y-5 text-lg leading-relaxed text-zinc-700"},Je={class:"rounded-lg border border-zinc-200 bg-zinc-50/70 p-5 lg:self-start"},Ye={class:"text-sm font-extrabold uppercase tracking-wide text-zinc-500"},Ze={class:"mt-4 space-y-3"},Ge={class:"mt-16"},Ke={class:"flex flex-wrap items-end justify-between gap-4"},Qe={class:"text-3xl font-extrabold tracking-normal text-zinc-950"},Xe={class:"mt-2 text-sm font-semibold text-zinc-500"},et={class:"mt-6 grid gap-5 md:grid-cols-2"},tt={class:"flex flex-wrap items-center gap-2 text-xs font-bold uppercase tracking-wide text-zinc-500"},at={class:"rounded-full bg-orange-50 px-2.5 py-1 text-orange-700"},st={key:0},ot={class:"mt-4 text-2xl font-extrabold leading-tight tracking-normal text-zinc-950 group-hover:text-orange-700"},nt={class:"mt-3 line-clamp-3 text-base leading-relaxed text-zinc-600"},lt={key:0,class:"mt-5 flex flex-wrap gap-2"},rt={key:0,class:"mt-16"},it={class:"text-2xl font-extrabold tracking-normal text-zinc-950"},ct={class:"mt-5 flex flex-wrap gap-2"},ut={key:0,"aria-hidden":"true"},dt={class:"ml-1 text-xs opacity-70"},vt=me({__name:"[slug]",async setup(pt){let b,P;const k=he(),$=xe(),w=_e(),Z=fe(),G=Te(),I=l(()=>String(G.public.hostname||"https://flamy.co").replace(/\/$/,"")),h=l(()=>{const e=k.params.slug;return Array.isArray(e)?String(e[0]||""):String(e||"")}),E=le,D=new Set(E),p=l(()=>{const e=k.path.split("/").filter(Boolean)[0]?.toLowerCase();if(e&&D.has(e))return e;const n=$.locale.value.toLowerCase().split("-")[0]||"de";return D.has(n)?n:"de"}),{data:x,error:K}=([b,P]=ve(async()=>ze(`flamy-tips-category-${p.value}-${h.value}`,async()=>{const e=Array.from(new Set([p.value,"de"]));let n;for(const d of e)try{const o=await ie(d,"tips-category");if((o.categories||[]).some(T=>j(T,h.value)))return o}catch(o){n=o}throw n||W({statusCode:404,statusMessage:"Tip category not found"})},{watch:[p,h]})),b=await b,P(),b),N=l(()=>x.value?.locale||p.value),U=l(()=>[...x.value?.tips||[]].sort((e,n)=>e.index-n.index||e.title.localeCompare(n.title))),c=l(()=>x.value?.categories?.find(e=>j(e,h.value))||null),g=l(()=>c.value?O(c.value,p.value):null),u=l(()=>re(p.value)),L=l(()=>g.value?.label||c.value?.title||"Flamy"),m=l(()=>c.value?U.value.filter(e=>R(e,c.value)):[]),B=l(()=>(x.value?.categories||[]).filter(e=>c.value&&e.id!==c.value.id).map(e=>({...e,content:O(e,p.value),count:U.value.filter(n=>R(n,e)).length})).filter(e=>e.count>0).slice(0,5));if(K.value||!x.value||!c.value||!g.value||m.value.length===0)throw W({statusCode:404,statusMessage:"Tip category not found"});function Q(e){return Object.fromEntries(E.map(n=>[n,{slug:e}]))}ye(()=>c.value?.id||h.value,e=>{e&&Z(Q(e))},{immediate:!0});const H=be({}),z=l(()=>V(I.value,k.path)),S=l(()=>g.value?.metaTitle||`${c.value?.title||"Tipps"} | Flamy`),_=l(()=>g.value?.description||`Praktische Flamy Tipps für ${c.value?.title||"Rauchstopp"}.`),A=l(()=>`${I.value}/images/og/tips/default-${te(p.value)}.png`),M=l(()=>m.value.filter(e=>Number(e.applicationMinutes)>0)),X=l(()=>{if(!M.value.length)return null;const e=M.value.reduce((n,d)=>n+Number(d.applicationMinutes||0),0);return Math.max(1,Math.round(e/M.value.length))}),ee=l(()=>({"@context":"https://schema.org","@graph":[{"@type":"CollectionPage",name:g.value?.title,de
1scription:_.value,inLanguage:N.value,url:z.value,mainEntity:{"@type":"ItemList",numberOfItems:m.value.length,itemListElement:m.value.map((e,n)=>({"@type":"ListItem",position:n+1,url:ge(e.shareUrl),name:e.title,description:e.summary}))}},{"@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:u.value.allTips,item:V(I.value,w("tips"))},{"@type":"ListItem",position:2,name:L.value,item:z.value}]}]}));we(()=>({htmlAttrs:{lang:H.value.htmlAttrs?.lang??$.locale.value},link:pe([...H.value.link??[],{rel:"canonical",href:z.value}]),script:[{type:"application/ld+json",innerHTML:de(ee.value)}]})),Le({title:()=>q(S.value,62),description:()=>q(_.value,155),robots:"index, follow",ogTitle:()=>S.value,ogDescription:()=>_.value,ogType:"website",ogUrl:()=>z.value,ogImage:()=>A.value,ogImageSecureUrl:()=>A.value,ogImageWidth:1731,ogImageHeight:909,ogImageAlt:()=>`${L.value} - Flamy`,twitterCard:"summary_large_image",twitterTitle:()=>S.value,twitterDescription:()=>_.value,twitterImage:()=>A.value,twitterImageAlt:()=>`${L.value} - Flamy`});function te(e){return["de","en","fr","nl"].includes(e)?e:"en"}function j(e,n){const d=n.trim().toLowerCase();return e.id.toLowerCase()===d||e.uuid?.toLowerCase()===d}function ae(e){try{return new URL(e.shareUrl).pathname}catch{return`/${N.value==="de"?"de/tipps":"tips"}/${e.slug||e.id}`}}function se(e){return w({name:"tips-category-slug",params:{slug:e.id}})}function oe(e){return ue(e,p.value)}return(e,n)=>{const d=ne;return r(),i("main",Ce,[t("section",ke,[J(d,{to:a(w)("tips"),class:"text-sm font-semibold text-orange-600 hover:text-orange-700"},{default:C(()=>[F(s(a(u).allTips),1)]),_:1},8,["to"]),t("div",Ie,[t("div",Se,[a(c)?.icon?(r(),i("span",Ae,s(a(c).icon),1)):f("",!0),t("div",Me,[t("p",Fe,s(a(g)?.eyebrow),1),t("h1",Pe,s(a(g)?.title),1)])]),t("p",$e,s(a(_)),1)]),t("div",Ee,[t("div",De,[t("p",Ne,s(a(m).length),1),t("p",Ue,s(a(u).tipsInCategory),1)]),t("div",Be,[t("p",He,s(a(X)??"–"),1),t("p",je,s(a(u).averageApplicationDuration),1)]),t("div",Oe,[t("p",Re,s(a(g)?.focus.length||0),1),t("p",Ve,s(a(u).concreteFocusAreas),1)])]),t("div",qe,[t("article",We,[(r(!0),i(v,null,y(a(g)?.intro,o=>(r(),i("p",{key:o},s(o),1))),128))]),t("aside",Je,[t("h2",Ye,s(a(u).focusTitle),1),t("ul",Ze,[(r(!0),i(v,null,y(a(g)?.focus,o=>(r(),i("li",{key:o,class:"flex gap-3 text-sm font-semibold text-zinc-700"},[n[0]||(n[0]=t("span",{class:"mt-1 h-2 w-2 rounded-full bg-orange-500"},null,-1)),t("span",null,s(o),1)]))),128))])])]),t("section",Ge,[t("div",Ke,[t("div",null,[t("h2",Qe,s(a(u).matchingTips),1),t("p",Xe,s(a(L))+" · "+s(a(m).length)+" "+s(a(u).tips),1
1)]),J(d,{to:a(w)("tips"),class:"rounded-lg border border-zinc-200 px-4 py-2 text-sm font-bold text-zinc-700 transition hover:border-orange-200 hover:text-orange-700"},{default:C(()=>[F(s(a(u).viewAllTips),1)]),_:1},8,["to"])]),t("div",et,[(r(!0),i(v,null,y(a(m),o=>(r(),Y(d,{key:o.id,to:ae(o),class:"group rounded-lg border border-zinc-200 p-6 transition hover:-translate-y-0.5 hover:border-orange-200 hover:shadow-lg hover:shadow-orange-100/60"},{default:C(()=>[t("div",tt,[t("span",at,s(oe(o.category)),1),o.applicationMinutes?(r(),i("span",st,s(o.applicationMinutes)+" "+s(a(u).applicationDuration),1)):f("",!0)]),t("h3",ot,s(o.title),1),t("p",nt,s(o.summary),1),o.tags.length?(r(),i("div",lt,[(r(!0),i(v,null,y(o.tags.slice(0,3),T=>(r(),i("span",{key:T,class:"rounded-full bg-zinc-100 px-2.5 py-1 text-xs font-bold text-zinc-600"}," #"+s(a(ce)(T,a(p))),1))),128))])):f("",!0)]),_:2},1032,["to"]))),128))])]),a(B).length?(r(),i("section",rt,[t("h2",it,s(a(u).relatedCategories),1),t("div",ct,[(r(!0),i(v,null,y(a(B),o=>(r(),Y(d,{key:o.id,to:se(o),class:"inline-flex items-center gap-2 rounded-full border border-zinc-200 px-4 py-2 text-sm font-bold text-zinc-700 transition hover:border-orange-200 hover:text-orange-700"},{default:C(()=>[o.icon?(r(),i("span",ut,s(o.icon),1)):f("",!0),F(" "+s(o.content.label||o.title)+" ",1),t("span",dt,s(o.count),1)]),_:2},1032,["to"]))),128))])])):f("",!0)])])}}});export{vt 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.