import{_ as p,o as t,s as n,F as d,z as f,c as r,w as s,m as o,v as a,e as k,C as B,l as i,y as h,n as u,N as I}from"./entry.4a1e3e7a.js";import{_ as m}from"./index.90d25de1.js";import{F as R}from"./form-check.9b8179f4.js";import{X as L}from"./x.aa03620d.js";import{L as D}from"./leaf.16ea3788.js";const F={props:{notes:{type:Array,default:()=>[]}}};function V(x,v,l,g,$,b){const _=B;return t(),n("span",null,[(t(!0),n(d,null,f(l.notes,(c,y)=>(t(),r(_,{key:c.name,to:c.glossary_url,class:"note-link"},{default:s(()=>[o(a(c.name),1),y+1!==l.notes.length?(t(),n(d,{key:0},[o(", ")],64)):k("",!0)]),_:2},1032,["to"]))),128))])}const M=p(F,[["render",V],["__scopeId","data-v-b8ce99ea"]]),S={components:{DetailRow:m},props:{notes:{type:Object,default:()=>{}}}};function T(x,v,l,g,$,b){const _=M,c=m;return t(),n("div",null,[i(c,null,{name:s(()=>[o(" Top ")]),extra:s(()=>[i(_,{notes:l.notes.top},null,8,["notes"])]),_:1}),o(),i(c,null,{name:s(()=>[o(" Middle ")]),extra:s(()=>[i(_,{notes:l.notes.middle},null,8,["notes"])]),_:1}),o(),i(c,null,{name:s(()=>[o(" Base ")]),extra:s(()=>[i(_,{notes:l.notes.base},null,8,["notes"])]),_:1})])}const ne=p(S,[["render",T]]);const A={components:{DetailRow:m,CheckIcon:R,MarkIcon:L,LeafIcon:D},props:{properties:{type:Array,default:()=>[]}}},q={class:"wrap"},z={key:0,class:"prop-name"},X={class:"at-text"},j={"aria-hidden":"true"},E={key:1},O=["aria-hidden"],P={key:0,class:"property-table__candle-safe"},W={key:1,class:"property-table__prop-warning-required"},Y=["title"],G={class:"at-text"},H={key:4,class:"flashpoint"},J={key:5,class:"percent"};function K(x,v,l,g,$,b){const _=h("CheckIcon"),c=h("MarkIcon"),y=h("LeafIcon"),C=m;return t(),n("div",q,[(t(!0),n(d,null,f(l.properties,e=>(t(),r(C,{key:e.name,alignment:"center"},{name:s(()=>[e.type==="Boolean"?(t(),n("span",z,[u("span",X,a(e.value?`This product is ${e.label}`:`This product is not ${e.label}`),1),o(),u("span",j,a(e.label),1)])):(t(),n("span",E,a(e.label),1))]),note:s(()=>[u("span",{"aria-hidden":!e.value,class:"prop-note"},a(e.note),9,O)]),extra:s(()=>[e.label==="Candle Safe"&&e.note==="usage: 0.0%"?(t(),n("span",P," Not recommended")):e.label==="Prop 65 Warning Required"?(t(),n("span",W,a(e.value?"Yes":"No"),1)):e.type==="Boolean"?(t(),n(d,{key:2},[e.value===!0?(t(),r(_,{key:0,class:"checkicon","aria-hidden":"true"})):k("",!0),o(),e.value?k("",!0):(t(),r(c,{key:1,class:"markicon","aria-hidden":"true"}))],64)):e.type==="Rating"?(t(),n("div",{key:3,class:"leafrating",title:`Rating: ${e.value} out of 3`},[u("span",G,a(e.value)+" of 3 ",1),o(),(t(!0),n(d,null,f([...Array(3)],(w,N)=>(t(),r(y,{key:w,"aria-hidden":"true",class:I(["leaficon",e.value>N&&"leaficon-active"])},null,8,["class"]))),128))],8,Y)):e.label==="Flashpoint"&&e.type==="String"?(t(),n("span",H,a(e.value),1)):e.label==="Vanillin Content"&&e.type==="String"?(t(),n("span",J,a(e.value),1)):(t(),n("span",{key:6,class:I({"italic-text":e.style==="italic"})},a(e.value),3))]),_:2},1024))),128))])}const ae=p(A,[["render",K],["__scopeId","data-v-14422981"]]);export{ae as _,ne as a};