import{_ as m,bu as C,h as H}from"./index.f2790301.js";import{f as b}from"./faSync.d34711d5.js";import{I as _,t as l,x as h,F as M,Y as L,Q as S}from"./vue.02ad7c87.js";var d={},v;function p(){return v||(v=1,function(a){Object.defineProperty(a,"__esModule",{value:!0});var c="fal",r="seedling",t=512,o=512,n=[127793,"sprout"],e="f4d8",i="M80 96h-64C7.156 96 0 103.2 0 112C0 226.7 93.31 320 208 320H256v144c0 8.836 7.164 16 16 16s16-7.164 16-16v-160C288 189.3 194.7 96 80 96zM208 288C116.3 288 40.83 217.6 32.72 128H80c91.66 0 167.2 70.41 175.3 160H208zM496 32h-64c-66.75 0-129.9 32.41-168.1 86.66C257.9 125.8 259.5 135.8 266.7 141c7.141 5.125 17.16 3.5 22.33-3.656C322.1 91.41 375.5 64 432 64h47.27c-7.734 83.78-75.48 152.4-160.6 159.4c-8.812 .7187-15.36 8.438-14.64 17.25c.7031 8.375 7.688 14.69 15.94 14.69c.4375 0 .8906-.0313 1.328-.0625C428.2 246.5 512 155.4 512 48C512 39.16 504.8 32 496 32z";a.definition={prefix:c,iconName:r,icon:[t,o,n,e,i]},a.faSeedling=a.definition,a.prefix=c,a.iconName=r,a.width=t,a.height=o,a.ligatures=n,a.unicode=e,a.svgPathData=i,a.aliases=n}(d)),d}var z=p(),u={},g;function w(){return g||(g=1,function(a){Object.defineProperty(a,"__esModule",{value:!0});var c="fal",r="hand-holding-heart",t=576,o=512,n=[],e="f4be",i="M275.2 250.5c6.998 7.377 18.5 7.377 25.5 0l108.1-114.2c31.49-33.13 29.72-88.22-5.65-118.7c-35.37-30.63-81.38-16.91-104.9 7.724L287.1 36.91L276.8 25.28C253.9 1.149 207.6-13.45 171.1 17.56C136.7 48.06 134.7 103.1 166.4 136.3L275.2 250.5zM192.3 41.79C213.2 23.79 240.6 33.17 254.2 47.54l33.74 35.26l33.74-35.26c13.5-14.13 40.99-23.76 61.86-5.752c23.74 20.63 20.12 54.51 3.373 72.14L287.9 217.7L188.1 113.9C172.2 96.56 168.7 62.42 192.3 41.79zM558.2 333.6c-9.5-8.619-22-13.37-35.12-13.37c-12.5 0-24.88 4.248-34.62 12.12l-61.45 49.21c-1.928 1.545-4.324 2.385-6.795 2.385h-41.62c4.625-9.619 6.5-20.74 4.75-32.23C379.4 323.7 353.7 304 325.6 304H181.2c-20.75 0-40.1 6.746-57.5 19.24l-38.5 28.73H16c-8.801 0-16 7.195-16 15.99s7.198 16.04 15.1 16.04l80.01 .0091l46.86-35.29c11.12-8.244 24.62-12.74 38.37-12.74h146.7c13.25 0 24 10.74 24 23.99s-10.75 23.98-24 23.98H239.1c-8.75 0-16 7.246-16 15.99c0 8.746 7.25 15.99 16 15.99h180.2c9.625 0 19-3.248 26.62-9.246l61.62-49.22c4.25-3.373 9.5-5.248 14.62-5.248c5 0 9.875 1.75 13.75 5.248c10.12 9.119 9.375 24.48-.875 32.61l-100.7 80.58c-7.584 6.064-17.01 9.369-26.72 9.369H16c-8.801 0-15.1 7.189-15.1 15.98S7.198 512 15.1 512h392.5c17 0 33.38-5.871 46.62-16.37l100.9-80.7c12.25-9.744 19.5-24.36 19.1-39.98C576.5 359.3 569.1 344.2 558.2 333.6z";a.definition={prefix:c,iconName:r,icon:[t,o,n,e,i]},a.faHandHoldingHeart=a.definition,a.prefix=c,a.iconName=r,a.width=t,a.height=o,a.ligatures=n,a.unicode=e,a.svgPathData=i,a.aliases=n}(u)),u}var N=w(),f={},s;function P(){return s||(s=1,function(a){Object.defineProperty(a,"__esModule",{value:!0});var c="fal",r="wind-turbine",t=512,o=512,n=[],e="f89b",i="M404.1 395.5l-78.02-163.3C324.2 225.7 324 218.3 326.5 212l64.81-160.7c7.453-19.06-1.875-40.91-20.94-48.72c-16-6.281-34.09-1-44.03 12.97L225.5 156C221.4 161.7 215.4 165.4 208.6 166.5L39.42 193.7C21.14 196.7 7.625 213 8 231.9c.4687 18.75 14.77 34.41 33.27 36.44l167.6 18.41c6.75 .7187 13.14 4.312 17.78 10.19L240 312.9V480h-96C135.2 480 128 487.2 128 496S135.2 512 144 512h224c8.844 0 16-7.156 16-16S376.8 480 368 480h-96v-128.9l69.3 82.74C349.2 443.8 359.1 448 370.3 448c7.234 0 14.22-2.031 19.81-5.531C405.9 432.8 412.3 412.7 404.1 395.5zM373.3 415.3c-.0469-.0313-4 2.406-7.125-1.594L251.5 276.7C241.8 264.5 227.5 256.6 212.3 254.9L44.75 236.5C42.16 236.3 40.06 233.9 40 231.2C39.94 228.3 41.88 225.7 44.5 225.3l169.1-27.16c15.34-2.469 28.8-10.84 37.86-23.53l100.9-140.4c1.016-1.438 2.641-2.219 4.25-2.219c.5938 0 1.188 .125 1.75 .3438c2.859 1.156 4.25 4.469 3.172 7.219l-64.8 160.6c-5.578 14.19-5.281 30.47 1.062 45.28l77.84 162.9C376.6 410.8 375.6 413.8 373.3 415.3zM256 208C247.2 208 239.1 215.2 239.1 224c0 8.836 7.164 16 16 16c8.836 0 15.1-7.164 15.1-16C271.1 215.2 264.8 208 256 208z";a.definition={prefix:c,iconName:r,icon:[t,o,n,e,i]},a.faWindTurbine=a.definition,a.prefix=c,a.iconName=r,a.width=t,a.height=o,a.ligatures=n,a.unicode=e,a.svgPathData=i,a.aliases=n}(f)),f}var k=P();const E={name:"EcoIcons",inject:["theme"],props:{product:Object},data(){return{iconMap:{"organic-icon.png":{text:"Organic",icon:z.faSeedling},"circular-icon.png":{text:"Circular",icon:b.faSync},"low-carbon-icon.png":{text:"Renewable",icon:k.faWindTurbine},"ethical-icon.png":{text:"Circular",icon:N.faHandHoldingHeart}}}},computed:{icons(){return this.product.ecoIcons.map(a=>this.iconMap[a]).filter(a=>a)},backgroundColor(){return C(this.theme().get("text.color"),.05)}},methods:{formatUrl:H}},F={class:"flex gap-8"};function q(a,c,r,t,o,n){const e=_("tml-icon-button");return l(),h("div",F,[(l(!0),h(M,null,L(n.icons,i=>(l(),S(e,{key:i.text,class:"text-sm pointer-events-none",icon:i.icon,text:i.text,"icon-color":"var(--tml-text-color)","background-color":n.backgroundColor,"max-size":"48px",circle:""},null,8,["icon","text","background-color"]))),128))])}const W=m(E,[["render",q]]);export{W as E};
//# sourceMappingURL=EcoIcons.12c3d457.js.map
