PageSourceSearch

https://flamy-app.netlify.app/_nuxt/8CVXyMW9.js

js flamy-app.netlify.app collected 2026-10-03 10:46:09 UTC 12,237 bytes, 1 lines download raw bytes

1import{_ as W}from"./zEAgLzoC.js";import{s as B}from"./BG0HJo5R.js";import{n as Y,t as R}from"./B7nvAQt6.js";import{r as q,S as Z,g as L,n as Q,a as X,b as tt}from"./BegGHuXU.js";import{d as et,a4 as st,a8 as ot,a3 as at,ao as it,ap as H,a9 as nt,al as lt,ag as rt,aq as ct,q as s,E as l,a2 as t,ah as S,Z as f,ab as e,ae as v,ac as p,ad as C,af as y,v as h,l as dt,t as mt,H as n,G as ht,Y as gt}from"#entry";const ut={key:0,class:"min-h-screen bg-black text-white font-sora"},xt={class:"relative pt-24 md:pt-28 pb-12 px-6 overflow-hidden bg-black"},pt={class:"relative mx-auto max-w-screen-lg"},_t={class:"grid md:grid-cols-2 gap-10 items-center"},bt={class:"flex items-center gap-2 flex-wrap mb-4"},wt={class:"text-xs font-semibold text-white/55 uppercase tracking-wider"},ft={key:0,class:"text-xs font-semibold uppercase tracking-wider text-red-200 bg-[#2a0f12] border border-red-500/20 px-2 py-0.5 rounded"},vt={class:"text-4xl md:text-6xl font-bold tracking-tight leading-tight"},yt={class:"mt-4 text-lg md:text-xl text-white/70 italic"},kt={class:"flex justify-center md:justify-end"},St=["src","alt"],Ct={key:1,class:"rounded-3xl bg-[#111] border border-white/10 flex items-center justify-center w-full max-w-[400px] aspect-square"},Ft={key:0,class:"py-6 px-6"},Et={class:"mx-auto max-w-screen-lg"},$t={class:"bg-[#2a2110] border-l-4 border-amber-500 rounded-r-2xl p-5 flex gap-4"},Lt={class:"font-bold text-amber-200"},It={class:"mt-1 text-amber-100/85 leading-relaxed"},At={class:"py-10 md:py-12 px-6"},Tt={class:"mx-auto max-w-screen-lg"},Nt={class:"text-xs font-semibold text-white/50 uppercase tracking-wider mb-4"},zt={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4"},jt={class:"bg-[#111] border border-white/10 rounded-2xl p-5"},Bt={class:"text-xs font-semibold text-white/50 uppercase tracking-wider"},Rt={class:"mt-1 text-sm font-medium"},qt={class:"bg-[#111] border border-white/10 rounded-2xl p-5"},Ht={class:"text-xs font-semibold text-white/50 uppercase tracking-wider"},Ot={class:"mt-1 text-sm font-medium font-mono"},Gt={class:"bg-[#111] border border-white/10 rounded-2xl p-5"},Vt={class:"text-xs font-semibold text-white/50 uppercase tracking-wider"},Mt={class:"mt-1.5"},Pt={class:"text-sm font-medium"},Ut=["aria-label"],Jt={class:"bg-[#111] border border-white/10 rounded-2xl p-5"},Dt={class:"text-xs font-semibold text-white/50 uppercase tracking-wider"},Kt={class:"mt-1 text-sm font-medium"},Wt={class:"bg-[#111] border border-white/10 rounded-2xl p-5"},Yt={class:"text-xs font-semibold text-white/50 uppercase tracking-wider"},Zt={class:"mt-1 text-sm font-medium"},Qt={key:0,class:"bg-[#111] border border-white/10 rounded-2xl p-5"},Xt={class:"text-xs font-semibold text-white/50 uppercase tracking-wider"},te={class:"mt-1 text-sm font-medium"},ee={class:"py-12 md:py-16 px-6"},se={class:"mx-auto max-w-screen-md space-y-12"},oe={class:"text-2xl md:text-3xl font-bold tracking-tight"},ae={class:"mt-4 text-lg leading-relaxed text-white/78"},ie={class:"text-2xl md:text-3xl font-bold tracking-tight"},ne={class:"mt-4 text-lg leading-relaxed text-white/78"},le={class:"text-2xl md:text-3xl font-bold tracking-tight"},re={class:"mt-4 text-lg leading-relaxed text-white/78"},ce={class:"text-2xl md:text-3xl font-bold tracking-tight"},de={class:"mt-4 text-lg leading-relaxed text-white/78"},me={class:"bg-[#111] rounded-2xl p-6 md:p-8 border border-[#FE7F5C]/25"},he={class:"text-2xl md:text-3xl font-bold tracking-tight"},ge={class:"mt-4 text-lg leading-relaxed text-white/78"},ue={class:"mt-5 flex flex-wrap gap-2"},xe={class:"text-2xl md:text-3xl font-bold tracking-tight"},pe={class:"mt-4 text-lg leading-relaxed text-white/78"},_e={class:"mt-3 text-sm text-white/55"},be={class:"font-mono"},we={class:"py-12 md:py-16 px-6 bg-[#050505]"},fe={class:"mx-auto max-w-screen-md space-y-4"},ve={class:"text-base md:text-lg font-medium leading-relaxed"},ye={class:"mt-2 text-sm font-bold text-[#FE7F5C] group-hover:underline"},ke={class:"text-base md:text-lg font-medium leading-relaxed"},Se={class:"mt-2 text-sm font-bold text-[#FE7F5C] group-hover:underline"},Ce={key:1,class:"py-12 md:py-16 px-6"},Fe={class:"mx-auto max-w-screen-lg"},Ee={class:"text-2xl md:text-3xl font-bold tracking-tight"},$e={class:"mt-6 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4"},Le={class:"text-xs font-semibold text-white/55 uppercase tracking-wider"},Ie={class:"mt-2 text-lg font-bold"},Ae={class:"py-10 md:py-12 px-6 border-t border-white/10"},Te={class:"mx-auto max-w-screen-md"},Ne={class:"text-xs font-semibold text-white/50 uppercase tracking-wider"},ze={class:"mt-4 space-y-2"},je=["href"],Be={class:"py-16 md:py-20 px-6 bg-black text-white border-t border-white/10"},Re={class:"mx-auto max-w-screen-md text-center"},qe={class:"text-2xl md:text-3xl font-bold"},He={class:"mt-4 text-white/70"},Je=et({__name:"[slug]",async setup(Oe){let I,A;const O=st(),g=ot(),{locale:_}=g,u=at(),G=it(),F=h(()=>String(O.params.slug??"")),k=q(F.value,_.value);if(!k)throw H({statusCode:404,statusMessage:"Unknown substance"});G(Object.fromEntries(Z.map(i=>[i,{slug:L(k,i)}])));const T=nt({}),N=L(k,_.value);Q(F.value)!==N&&([I,A]=lt(()=>mt(u({name:"cigarette-ingredients-slug",params:{slug:N}}),{})),await I,A());const x=h(()=>q(F.value,_.value)??k),V=i=>L(i,_.value),E=h(()=>X(x.value));if(!E.value)throw H({statusCode:404,statusMessage:"Unknown substance"});const a=E.value,c=i=>g.t(`cigarette-ingredients.substances.${x.value}.${i}`),o=(i,m)=>g.t(`cigarette-ingredients.detail.${i}`,m??{}),b=(i,m)=>g.t(`cigarette-ingredients.${i}`,{}),d=h(()=>String(c("name"))),M=h(()=>String(c("tagline"))),z=h(()=>tt(x.value)),P=i=>({name:"cigarette-ingredients-slug",params:{slug:V(i)}}),j=dt(!1),$=h(()=>{const i={low:{level:1,color:"bg-emerald-500"}
1,medium:{level:2,color:"bg-amber-500"},high:{level:3,color:"bg-[#FE7F5C]"},"very-high":{level:4,color:"bg-red-500"}};return i[a.toxicity]??i.medium});function U(i){const m=`cigarette-ingredients.substances.${i}.name`;return g.te(m)?String(g.t(m)):i}const J=h(()=>B({"@context":"https://schema.org","@type":"ChemicalSubstance",name:d.value,alternateName:a.alsoKnownAs,identifier:a.cas,description:c("whatIs")})),D=h(()=>B({"@context":"https://schema.org","@type":"Article",headline:o("section-what",{name:d.value}),description:c("whatIs"),author:{"@type":"Organization",name:"Flamy",url:"https://flamy.co"},publisher:{"@type":"Organization",name:"Flamy",logo:{"@type":"ImageObject",url:"https://flamy.co/images/logo.png"}},isPartOf:{"@type":"WebSite",name:"Flamy",url:"https://flamy.co"},mainEntity:{"@type":"ChemicalSubstance",name:d.value,identifier:a.cas}}));return rt(()=>({htmlAttrs:{lang:T.value.htmlAttrs?.lang??_.value},link:Y([...T.value.link??[]]),script:[{type:"application/ld+json",innerHTML:J.value},{type:"application/ld+json",innerHTML:D.value}]})),ct({title:()=>R(o("meta-title",{name:d.value}),62),description:()=>R(c("whatIs"),155),robots:"index, follow",ogTitle:()=>String(o("meta-og-title",{name:d.value})),ogDescription:()=>String(c("whatIs")),ogType:"article",ogImage:()=>`https://flamy.co/images/og/cigarette-ingredients/${x.value}.png`,twitterCard:"summary_large_image",twitterImage:()=>`https://flamy.co/images/og/cigarette-ingredients/${x.value}.png`}),(i,m)=>{const w=W;return s(E)?(n(),l("div",ut,[t("header",xt,[t("div",pt,[S(w,{to:s(u)("cigarette-ingredients"),class:"inline-block text-sm text-white/55 hover:text-white/85 underline mb-8"},{default:f(()=>[y(e(o("back-link")),1)]),_:1},8,["to"]),t("div",_t,[t("div",null,[t("div",bt,[t("span",wt,e(b(`categories.${s(a).category}`)),1),s(a).iarcGroup==="1"||s(a).iarcGroup==="2A"||s(a).iarcGroup==="2B"?(n(),l("span",ft," IARC "+e(s(a).iarcGroup),1)):v("",!0)]),t("h1",vt,e(s(d)),1),t("p",yt,e(s(M)),1)]),t("div",kt,[s(j)?(n(),l("div",Ct,[...m[1]||(m[1]=[t("svg",{class:"w-16 h-16 text-white/25",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[t("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),t("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),t("path",{d:"m21 15-5-5L5 21"})],-1)])])):(n(),l("img",{key:0,src:`/images/ingredients/${s(x)}.webp`,alt:s(d),width:"400",height:"400",class:"rounded-3xl shadow-2xl shadow-[#FE7F5C]/10 max-w-full",onError:m[0]||(m[0]=r=>j.value=!0)},null,40,St))])])])]),s(a).deceptivelyHarmless&&s(a).warningNote?(n(),l("section",Ft,[t("div",Et,[t("div",$t,[m[2]||(m[2]=t("span",{class:"text-2xl","aria-hidden":"true"},"⚠",-1)),t("div",null,[t("p",Lt,e(o("warning-headline")),1),t("p",It,e(s(a).warningNote),1)])])])])):v("",!0),t("section",At,[t("div",Tt,[t("h2",Nt,e(o("quick-facts")),1),t("dl",zt,[t("div",jt,[t("dt",Bt,e(o("also-known-as")),1),t("dd",Rt,e(s(a).alsoKnownAs.join(" · ")||"—"),1)]),t("div",qt,[t("dt",Ht,e(o("cas-label")),1),t("dd",Ot,e(s(a).cas||"—"),1)]),t("div",Gt,[t("dt",Vt,e(o("toxicity-label")),1),t("dd",Mt,[t("p",Pt,e(b(`toxicity.${s(a).toxicity}`)),1),t("div",{class:"mt-2 flex gap-1",role:"img","aria-label":`${o("toxicity-label")}: ${b(`toxicity.${s(a).toxicity}`)} — ${s($).level} von 4`},[(n(),l(p,null,C(4,r=>t("span",{key:r,class:ht(["h-1.5 flex-1 max-w-7 rounded-full transition-colors",r<=s($).level?s($).color:"bg-white/10"])},null,2)),64))],8,Ut)])]),t("div",Jt,[t("dt",Dt,e(o("carcinogenic-label")),1),t("dd",Kt,[s(a).carcinogenic?(n(),l(p,{key:0},[y(e(o("carcinogenic-yes",{group:s(a).iarcGroup})),1)],64)):(n(),l(p,{key:1},[y(e(o("carcinogenic-no")),1)],64))])]),t("div",Wt,[t("dt",Yt,e(o("in-cigarette")),1),t("dd",Zt,e(s(a).inCigaretteSmoke),1)]),s(a).inVapeAerosol?(n(),l("div",Qt,[t("dt",Xt,e(o("in-vape")),1),t("dd",te,e(s(a).inVapeAerosol),1)])):v("",!0)])])]),t("section",ee,[t("div",se,[t("div",null,[t("h2",oe,e(o("section-what",{name:s(d)})),1),t("p",ae,e(c("whatIs")),1)]),t("div",null,[t("h2",ie,e(o("section-why",{name:s(d)})),1),t("p",ne,e(c("whyInCigarette")),1)]),t("div",null,[t("h2",le,e(o("section-short",{name:s(d)})),1),t("p",re,e(c("shortTermBody")),1)]),t("div",null,[t("h2",ce,e(o("section-long",{name:s(d)})),1),t("p",de,e(c("longTermBody")),1)]),t("div",me,[t("h2",he,e(o("section-where",{name:s(d)})),1),t("p",ge,e(c("whereElse")),1),t("div",ue,[(n(!0),l(p,null,C(s(a).commonUses,r=>(n(),l("span",{key:r,class:"bg-black/40 text-white/80 text-sm font-medium px-3 py-1.5 rounded-full border border-white/10"},e(b(`common-uses.${r}`)),1))),128))])]),t("div",null,[t("h2",xe,e(o("section-compare")),1),t("p",pe,e(c("compareToLimit")),1),t("p",_e,[y(e(o("workplace-limit"))+": ",1),t("span",be,e(s(a).workplaceLimit),1)])])])]),t("section",we,[t("div",fe,[S(w,{to:s(u)("savings-calculator"),class:"block bg-[#111] border border-white/10 rounded-2xl p-6 hover:border-[#FE7F5C] hover:shadow-lg hover:shadow-[#FE7F5C]/10 transition group"},{default:f(()=>[t("p",ve,e(o("cta-savings")),1),t("p",ye,e(o("cta-savings-link")),1)]),_:1},8,["to"]),S(w,{to:s(u)("addiction-quiz"),class:"block bg-[#111] border border-white/10 rounded-2xl p-6 hover:border-[#FE7F5C] hover:shadow-lg hover:shadow-[#FE7F5C]/10 transition group"},{default:f(()=>[t("p",ke,e(o("cta-quiz")),1),t("p",Se,e(o("cta-quiz-link")),1)]),_:1},8,["to"])])]),s(z).length>0?(n(),l("section",Ce,[t("div",Fe,[t("h2",Ee,e(o("section-related")),1),t("div",$e,[(n(!0),l(p,null,C(s(z),r=>(n(),gt(w,{key:r.slug,to:s(u)(P(r.slug)),class:"bg-[#111] border border-white/10 rounded-2xl p-5 hover:border-[#FE7F5C] hover:shadow-lg hover:shadow-[#FE7F5C]/10 transition"},{default:f(()=>[t("p",Le,e(b(`categories.${r.category}`)),1),t("p",Ie,e(U(r.slug)),1)]),_:2},1032,["to"]))),128))])])])):v("",!0),t("section",Ae,[t("div",Te,[t("h2",Ne,e(o("section-sources")),1),t("ul",ze,[(n(!0),l(p,null,C(s(a).sources,(r,K)=>(n(),l("li",{key:K},[t("a",{href:r.url,target:"_blank",rel:"noopener noreferrer",class:"text-sm text-white/65 hover:text-[#FE7F5C] hover:underline"}," · "+e(r.label)+" ↗ ",9,je)]))),128))])])]),t("section",Be,[t("div",Re,[t("h2",qe,e(o("cta-app-headline")),1),t("p",He,e(o("cta-app-sub")),1),S(w,{to:s(u)("install"),class:"mt-8 inl
1ine-flex items-center gap-2 bg-white text-black px-8 py-4 rounded-full text-base font-semibold hover:bg-white/90 transition"},{default:f(()=>[y(e(o("cta-app-button")),1)]),_:1},8,["to"])])])])):v("",!0)}}});export{Je 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.