import{_ as O,j as z,o,f as y,A as d,t as u,i,w as s,y as b,C as _,s as a,U as W,W as X,a0 as Q,a1 as Y,b as P,m as H,aa as Z,ab as L,c as G,X as T,a2 as $,u as ee,g as n,B as te,h as l,l as se,n as re,F as A,q as oe,v as U,p as ie,N as k,k as E,G as le,D as ae,am as N,an as B,al as ne,af as R,x as J,ax as v,ay as S,z as ue,aw as ce,az as de,aA as he,at as q}from"./index-Bmj_12NV.js";import{a as pe}from"./alternate-hreflangs-xZGRuUDd.js";import"./vue-scrollto-ByHiu5px.js";import{u as me}from"./index-Dz520mHp.js";import{u as fe}from"./vue.f36acd1f-DOct_Vl-.js";const ye={name:"Socials",props:["url","title","description","hashtags"]},_e=t=>(W("data-v-b6a50231"),t=t(),X(),t),ge={class:"social"},ke={class:"text-overline"},be=_e(()=>d("span",{class:"ml-1 text-white"},"Facebook",-1));function xe(t,r,p,h,e,c){const g=z("ShareNetwork");return o(),y("div",ge,[d("h3",ke,u(t.$t("headings.Social Sharing")),1),i(g,{network:"facebook",url:p.url,title:p.title,description:p.description,hashtags:"helios,homeopathy"},{default:s(()=>[i(b,{color:"#4363f3",small:"",theme:"dark"},{default:s(()=>[i(_,{color:"white"},{default:s(()=>[a("mdi-facebook")]),_:1}),be]),_:1})]),_:1},8,["url","title","description"])])}const ve=O(ye,[["render",xe],["__scopeId","data-v-b6a50231"]]),Se={name:"ProductForm",props:["slug","remedy","routeFrom"],components:{Socials:ve,Form:Q,Field:Y},data(){return{snackbar:!1,snackColor:"",snackText:null,show:!1,product:null,sizes:[],potencies:[],form:null,size:null,potency:null,price:null,breadcrumbItems:[],name:"",description:"",plainDescription:"",summary:"",imageSocial:"",image:"",keywords:"",url:"",loading:!1,links:pe(this.$router,this.$i18n)}},watch:{slug(t){this.show=!1,this.product=null,this.sizes=[],this.potencies=[],this.form=null,this.size=null,this.potency=null,this.price=null;let r="https://images.helios.co.uk";P.get("https://api.helios.co.uk/api/products/"+t).then(p=>{this.product=p.data.data,this.name=this.product.name,this.description=this.product.description,this.plainDescription=this.product.plain_description,this.summary=this.product.summary,this.image=this.product.path?r+"/assets/product-large/"+this.product.path:"",this.imageSocial=this.product.path?r+"/assets/product-social/"+this.product.path:"",this.keywords=this.product.keywords;let h=[];h.push({title:this.$t("headings.Shop"),disabled:!1,exact:!0,to:"/shop"}),this.product.book&&h.push({title:this.$t("headings.Books"),disabled:!1,exact:!0,to:{name:"books",query:{showLastSearch:!1}}}),this.lastTerm&&this.searchSource==="books"?h.push({title:this.$t("headings.Search by")+": "+this.lastTerm,disabled:!1,exact:!0,to:{name:"books",params:{term:this.lastTerm,showLastSearch:!0}}}):this.lastTerm&&h.push({title:this.$t("headings.Search by")+": "+this.lastTerm,disabled:!1,exact:!0,to:{name:"search",params:{term:this.lastTerm,showLastSearch:!0}}}),h.push({title:this.product.name,disabled:!0}),this.breadcrumbItems=h,this.url="https://helios.co.uk"+this.$route.path,this.show=!0,setTimeout(function(){window.prerenderReady=!0},1e3)}).catch(p=>{console.log(p)})}},computed:{...H($,["user"]),...H(ee,["lastTerm","searchSource"]),...H(T,["getBySlug"]),productJsonLd(){let t={};return this.product&&(t={"@context":"http://schema.org","@type":"Product",name:this.product.name,description:this.product.plain_description,url:this.url,sku:this.product.sku,keywords:this.product.keywords},this.product.is_remedy&&(t.alternateName=this.product.common_name,t.lowPrice=this.product.lowest_remedy_price),this.product.price&&(t.offers={"@type":"Offer",price:this.product.price,priceCurrency:"GBP"}),this.product.brand&&(t.brand={"@type":"Thing",name:this.product.brand.name}),this.product.path&&(t.image=this.imagesHost+"/assets/product-social/"+this.product.path)),t},remedySchema(){return Z({form:L().required().label(this.$t("fields.Form")),size:L().required().label(this.$t("fields.Size")),potency:L().required().label(this.$t("fields.Potency"))})},availableAsMotherTincture(){for(let t in this.product.forms)if(this.product.forms[t].name==="Mother tincture")return!0;return!1},frontendHost(){return"https://helios.co.uk"},imagesHost(){return"https://images.helios.co.uk"},breadcrumbs(){return this.breadcrumbItems},productPrice(){return this.product.price?"£"+this.product.price:""},hasDiscountGroupText(){if(this.product.price&&this.product.restricted_from_country!=="United Kingdom"&&this.product.discount_groups&&this.product.discount_groups.length>0)for(let t in this.product.discount_groups){let r=this.product.discount_groups[t];if(r.products_count>1||r.products_count===1&&r.qualifying_quantity===1||r.products_count===1&&r.qualifying_quantity>1)return!0}return!1},productAdded(){return this.getBySlug(this.slug)},quantity(){let t=this.getBySlug(this.slug);return console.log("quantity: "+t.quantity),t?t.quantity:0}},methods:{...G(T,["add","update","setBasketPopover"]),nth(t){if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},onInvalidSubmit({values:t,errors:r,results:p}){console.log(t),console.log(r),console.log(p),this.snackbar=!0,this.snackColor="error",this.snackText=this.$t("Please check the form for errors")},async addToBasket(t){console.log("adding"),this.loading=!0;const{form:r,size:p,potency:h}=this;let e=null,c=null,g=null;if(t.is_remedy){let x=await this.$refs.remedyForm.validate();if(x.valid||(this.loading=!1),x.valid){let F=t.forms.filter(function(f){return f.id===r})[0];e={id:F.id,name:F.name};let m=this.sizes.filter(function(f){return f.id===p})[0];c={id:m.id,quantity:m.quantity,price:parseFloat(m.price),weight:parseInt(m.weight,10)};let D=this.potencies.filter(function(f){return f.id===h})[0];g={id:D.id,level:D.level},this.add({product:t,formModel:e,sizeModel:c,potencyModel:g}).then(()=>{this.loading=!1,this.setBasketPopover({message:"added"},this.$t),setTimeout(function(){T().$patch({popover:!1,popoverMessage:""})},3e3)})}}else this.add({product:t}).then(()=>{this.loading=!1,this.setBasketPopover({message:"added"},this.$t),setTimeout(function(){T().$patch({popover:!1,popoverMessage:""})},3e3)})},clearSearch(){return this.clearTerm()},chooseForm(t){this.size=null,this.$refs.size.reset(),this.sizes=[],this.potency=null,this.$refs.potency.reset(),this.potencies=[];let p=this.product.forms.filter(function(e){return e.id===t})[0],h=p.sizes.map(function(e){return{id:e.id,form:e.form,quantity:e.quantity,price:e.price,weight:e.weight,label:e.quantity+" - £"+e.price}});this.sizes=h,this.potencies=p.potencies,this.potencies.length===1&&(this.potency=this.potencies[0].id),this.price="from £"+this.sizes[0].price},chooseSize(){if(this.size){let t=this.sizes,r=this.size,p=t.filter(function(h){return h.id===r})[0];this.price="£"+p.price,console.log(this.price)}},decrement(){this.loading=!0;let t=this.getBySlug(this.product.slug),r=this.quantity-1;return this.update({product:t,quantity:r}).then(()=>{this.loading=!1,this.setBasketPopover({message:"updated"},this.$t),setTimeout(function(){T().$patch({popover:!1,popoverMessage:""})},3e3)})},increment(){this.loading=!0;let t=this.getBySlug(this.product.slug),r=this.quantity+1;this.update({product:t,quantity:r}).then(()=>{this.loading=!1,this.setBasketPopover({message:"updated"},this.$t),setTimeout(function(){T().$patch({popover:!1,popoverMessage:""})},3e3)})},navigate(t,r){this.$router.push({name:t,params:r}).catch(()=>{})},discountGroupText(t){if(t.products_count>1||t.products_count===1&&t.qualifying_quantity===1){let r=this.$t("links.Buy any {quantity} get {discount} off",{quantity:t.qualifying_quantity,discount:t.discount+"%"});return this.product.exclude_from_discounts_in_uk?r+=" (discount restrictions apply in the UK)":this.product.is_restricted&&(r+=" (discount restrictions apply in "+this.product.restricted_from_country+")"),r}else if(t.products_count===1&&t.qualifying_quantity>1){let r=this.$t("Buy {quantity} or more get {discount} off",{quantity:t.qualifying_quantity,discount:t.discount+"%"});return this.product.exclude_from_discounts_in_uk?r+=" (discount restrictions apply in the UK)":this.product.is_restricted&&(r+=" (discount restrictions apply in "+this.product.restricted_from_country+")"),r}return null},addMeta(){fe({htmlAttrs:{lang:this.locale},link:this.links}),me({title:"Helios Homeopathy - "+this.$t("headings.Shop")+" - "+this.name,description:this.plainDescription,keywords:this.keywords,ogDescription:this.plainDescription,ogTitle:this.name,ogImage:this.imageSocial,ogUrl:this.url,twitterTitle:this.name,twitterDescription:this.plainDescription,twitterImage:this.imageSocial,twitterCard:"summary_large_image"})}},mounted(){document.getElementById("scrolling-content").scrollTop=0,this.url="https://helios.co.uk"+this.$route.path;let t="https://images.helios.co.uk",r=this;P.get("https://api.helios.co.uk/api/products/"+this.slug).then(p=>{this.product=p.data.data,this.name=this.product.name,this.description=this.product.description,this.plainDescription=this.product.plain_description,this.summary=this.product.summary,this.image=this.product.path?t+"/assets/product-large/"+this.product.path:"",this.imageSocial=this.product.path?t+"/assets/product-social/"+this.product.path:"",this.keywords=this.product.keywords,this.remedy!=="true"&&this.addMeta();let h=[];this.routeFrom&&this.routeFrom.name==="collection"?P.get("https://api.helios.co.uk/api/collections/"+this.routeFrom.params.slug).then(e=>{h.push({title:this.$t("headings.Collections"),disabled:!0,exact:!0}),h.push({title:e.data.data.name,disabled:!1,exact:!0,to:{name:"collection",params:r.routeFrom.params}}),h.push({title:this.product.name,disabled:!0})}).catch(e=>{console.log(e)}):(h.push({title:this.$t("headings.Shop"),disabled:!1,exact:!0,to:"/shop"}),this.product.book&&h.push({title:this.$t("headings.Books"),disabled:!1,exact:!0,to:{name:"books",query:{showLastSearch:!1}}}),this.lastTerm&&this.searchSource==="books"?h.push({title:this.$t("headings.Search by")+": "+this.lastTerm,disabled:!1,exact:!0,to:{name:"books",params:{term:this.lastTerm,showLastSearch:!0}}}):this.lastTerm&&h.push({title:this.$t("headings.Search by")+": "+this.lastTerm,disabled:!1,exact:!0,to:{name:"search",params:{term:this.lastTerm,showLastSearch:!0}}}),h.push({title:this.product.name,disabled:!0,exact:!0,to:"/"})),this.breadcrumbItems=h,this.show=!0,document.getElementById("scrolling-content").scrollTop=0,setTimeout(function(){window.prerenderReady=!0},1e3)}).catch(p=>{console.log(p),p.response&&p.response.status===404&&this.$router.push("/404/not-found").catch(()=>{})})}},C=t=>(W("data-v-f3f3bca4"),t=t(),X(),t),we={class:"d-flex justify-space-between align-baseline"},Te={key:0},ze={key:0,class:"text-h5"},Ve=C(()=>d("a",{href:"tel:01892 537254"},"01892 537254",-1)),qe={class:"d-flex flex-no-wrap justify-space-between"},Ce={class:"text-left"},Fe={class:"mb-6 text-body-1"},Be=["innerHTML"],Ie={key:0,class:"mb-6 text-body-1"},Me={class:"mb-6 text-body-1"},De={key:1,class:"text-subtitle-1 font-weight-bold text--primary"},Pe=["innerHTML"],He={class:"text-red"},Le={key:3,class:"text-body-1"},Ae={key:4,class:"text-body-1"},Ue={class:"d-flex justify-center"},Ne={key:6,class:"text-h6 font-weight-bold text--primary mt-6 text-center"},je={class:"headline error--text"},Ke=["innerHTML"],Ee={key:0},Re={key:0,class:"text-h5"},Je=C(()=>d("a",{href:"tel:01892 537254"},"01892 537254",-1)),Oe={class:"text-body-1"},We={key:0,class:"text-body-1"},Xe={key:2},Qe={key:0,class:"d-block ml-10 mr-10 d-flex justify-space-between"},Ye=["textContent"],Ze=C(()=>d("h3",{class:"text-subtitle-1"},"Ingredients",-1)),Ge={class:"text-body-1"},$e=C(()=>d("h3",{class:"text-subtitle-1"},"Free from",-1)),et={class:"text-subtitle-1"},tt={class:"select-flag"},st=C(()=>d("h3",{class:"text-subtitle-1"},"Directions for use",-1)),rt={class:"text-body-1"},ot={class:"text-subtitle-1 font-weight-bold text-red"},it={class:"text-body-1"};function lt(t,r,p,h,e,c){const g=z("router-link"),x=z("Field"),I=z("Form"),F=z("country-flag"),j=z("Socials");return o(),y("div",null,[d("div",we,[this.$route.name==="product"?(o(),n(te,{key:0,large:"",items:c.breadcrumbs,divider:">"},null,8,["items"])):l("",!0),e.product&&e.product.is_remedy&&t.$route.name==="product"?(o(),n(b,{key:1,variant:"text",onClick:r[0]||(r[0]=m=>c.navigate("remedies",{}))},{default:s(()=>[a(u(t.$t("buttons.Find more remedies"))+" ",1),i(_,{theme:"dark"},{default:s(()=>[a("mdi-chevron-right")]),_:1})]),_:1})):l("",!0)]),e.product?(o(),y("div",Te,[i(ue,null,{default:s(()=>[i(se,{cols:"12"},{default:s(()=>[i(re,{class:"mx-auto pa-4 product-card",outlined:"","max-width":"800"},{default:s(()=>[e.product.is_restricted&&e.product.restricted_from_country!=="United Kingdom"?(o(),y("p",ze,[a(u(t.$t("This product is not currently available to buy from our website in {country}.",{country:e.product.restricted_from_country}))+" ",1),i(g,{to:{name:"enquiry"}},{default:s(()=>[a(u(t.$t("Please contact us directly using the secure enquiry form")),1)]),_:1}),a(", "+u(t.$t("or telephone"))+" ",1),Ve,a(".")])):(o(),y(A,{key:1},[d("div",qe,[d("div",Ce,[i(oe,{class:"text-h5",textContent:u(e.product.name)},null,8,["textContent"]),e.product.book&&e.product.book.author?(o(),n(U,{key:0,class:"text-subtitle-1",textContent:u(e.product.book.author)},null,8,["textContent"])):l("",!0),e.product.common_name?(o(),n(U,{key:1,class:"text-subtitle-1",textContent:u(e.product.common_name)},null,8,["textContent"])):l("",!0),e.product.brand?(o(),n(U,{key:2,class:"text-subtitle-1"},{default:s(()=>[i(g,{to:{name:"brand",params:{slug:e.product.brand.slug}}},{default:s(()=>[a(u(t.$t("links.View all by"))+" "+u(e.product.brand.name),1)]),_:1},8,["to"])]),_:1})):l("",!0)])]),e.product.path?(o(),n(ie,{key:0,height:"300px",contain:"",src:c.imagesHost+"/assets/product-medium/"+e.product.path,srcset:c.imagesHost+"/assets/product-large/"+e.product.path},null,8,["src","srcset"])):l("",!0),i(k,{class:"text-left"},{default:s(()=>[d("div",Fe,[d("span",{innerHTML:e.product.description},null,8,Be)]),e.product.book?(o(),y("div",Ie,"ISBN: "+u(e.product.book.isbn),1)):l("",!0),d("div",Me,"SKU: "+u(e.product.sku),1),e.product.is_remedy===!1?(o(),y("div",De,[d("span",{innerHTML:c.productPrice},null,8,Pe)])):l("",!0),c.hasDiscountGroupText?(o(),n(ae,{key:2},{default:s(()=>[(o(!0),y(A,null,E(e.product.discount_groups,m=>(o(),n(le,{key:m.slug,onClick:M=>c.navigate("discount",{slug:m.slug})},{default:s(()=>[d("span",He,u(c.discountGroupText(m)),1)]),_:2},1032,["onClick"]))),128))]),_:1})):l("",!0),e.product.is_remedy?(o(),y("p",Le,"Please select remedy Form, Size and Potency below, and then add to basket.")):l("",!0),e.product.is_remedy&&!c.availableAsMotherTincture?(o(),y("p",Ae,u(t.$t("Sorry, this remedy is not available as a Mother Tincture.")),1)):l("",!0),e.product.is_remedy?(o(),n(I,{key:5,ref:"remedyForm",onSubmit:ne(c.addToBasket,["prevent"]),onInvalidSubmit:c.onInvalidSubmit,"validation-schema":c.remedySchema},{default:s(({errors:m,setFieldError:M,setFieldValue:D})=>[i(x,{modelValue:e.form,"onUpdate:modelValue":r[2]||(r[2]=f=>e.form=f),name:"form"},{default:s(({field:f,errors:w,errorMessage:K})=>[e.product.is_remedy===!0?(o(),n(N,B({key:0,items:e.product.forms},f,{"item-title":"name","item-value":"id",label:t.$t("fields.Form"),"onUpdate:modelValue":r[1]||(r[1]=V=>c.chooseForm(V)),"menu-props":{maxHeight:"1000px"},"error-messages":w[0],class:"mb-3"}),null,16,["items","label","error-messages"])):l("",!0)]),_:2},1032,["modelValue"]),i(x,{modelValue:e.size,"onUpdate:modelValue":r[4]||(r[4]=f=>e.size=f),name:"size"},{default:s(({field:f,errors:w,errorMessage:K})=>[e.product.is_remedy===!0?(o(),n(N,B({key:0,ref:"size",items:e.sizes},f,{"item-title":"label","item-value":"id",label:t.$t("fields.Size"),"onUpdate:modelValue":r[3]||(r[3]=V=>c.chooseSize(V)),"menu-props":{maxHeight:"1000px"},"no-data-text":"Please select a remedy form first","error-messages":w[0],class:"mb-3"}),null,16,["items","label","error-messages"])):l("",!0)]),_:2},1032,["modelValue"]),i(x,{modelValue:e.potency,"onUpdate:modelValue":r[6]||(r[6]=f=>e.potency=f),name:"potency"},{default:s(({field:f,errors:w,errorMessage:K})=>[e.product.is_remedy===!0?(o(),n(N,B({key:0,ref:"potency",items:e.potencies,modelValue:e.potency,"onUpdate:modelValue":r[5]||(r[5]=V=>e.potency=V)},f,{"item-title":"level","item-value":"id",label:t.$t("fields.Potency"),"no-data-text":"Please select a remedy form first","error-messages":w[0],class:"mb-3"}),null,16,["items","modelValue","label","error-messages"])):l("",!0)]),_:2},1032,["modelValue"]),d("div",Ue,[i(b,{loading:e.loading,disabled:e.loading,variant:"flat",class:"small",elevation:"0",color:"primary",onClick:r[7]||(r[7]=f=>c.addToBasket(e.product))},{default:s(()=>[i(_,{left:""},{default:s(()=>[a("mdi-cart-plus")]),_:1}),a(" "+u(t.$t("buttons.Add to basket")),1)]),_:1},8,["loading","disabled"])])]),_:1},8,["onSubmit","onInvalidSubmit","validation-schema"])):l("",!0),e.product.is_remedy&&e.price?(o(),y("div",Ne,u(e.price),1)):l("",!0)]),_:1}),e.product.block_country?(o(),n(J,{key:1,class:"d-flex justify-space-around"},{default:s(()=>[i(R,{border:"start",variant:"text","border-color":"error",icon:"mdi-alert-circle",color:"error",elevation:"2"},{default:s(()=>[d("p",je,u(t.$t("Sorry, we have temporarily suspended delivery to {countryName}.",{countryName:e.product.block_country})),1),d("p",{class:"headline error--text",innerHTML:t.$t("Please email {email} for more information.",{email:"order@helios.co.uk"})},null,8,Ke)]),_:1})]),_:1})):l("",!0),i(J,{class:"d-flex justify-space-around"},{default:s(()=>[e.product.is_restricted&&e.product.restricted_from_country==="United Kingdom"?(o(),y("div",Ee,[["dh36to","aekito","dh36o","dh18co"].includes(e.product.sku)?l("",!0):(o(),y("p",Re,[a(u(t.$t("This product is not currently available to buy from our website in the United Kingdom."))+" ",1),i(g,{to:{name:"enquiry"}},{default:s(()=>[a(u(t.$t("Please contact us directly using the secure enquiry form")),1)]),_:1}),a(", "+u(t.$t("or telephone"))+" ",1),Je,a(".")]))])):e.product.stock&&e.product.stock.out_of_stock===!0?(o(),n(R,{key:1,outlined:"",type:"error",variant:"text"},{default:s(()=>[d("p",Oe,u(t.$t("Sorry, this item is currently out of stock")),1),e.product.stock.expected_in_stock?(o(),y("p",We,u(t.$t("We expect it to available again by"))+" "+u(new Intl.DateTimeFormat("en-GB",{weekday:"long",year:"numeric",month:"long",day:"numeric"}).format(new Date(e.product.stock.expected_in_stock))),1)):l("",!0)]),_:1})):(o(),y("div",Xe,[!e.product.is_remedy&&c.productAdded&&!e.loading?(o(),y("div",Qe,[i(b,{icon:"",onClick:r[8]||(r[8]=m=>c.decrement()),class:"align-self-center"},{default:s(()=>[i(_,{color:"primary"},{default:s(()=>[a(" mdi-minus ")]),_:1})]),_:1}),d("div",{class:"display-1 font-weight-light text-right mr-6 ml-6 mt-0 align-self-center",textContent:u(c.quantity)},null,8,Ye),i(b,{icon:"",onClick:r[9]||(r[9]=m=>c.increment()),class:"align-self-center"},{default:s(()=>[i(_,{color:"primary"},{default:s(()=>[a(" mdi-plus ")]),_:1})]),_:1})])):l("",!0),c.productAdded&&e.loading&&!e.product.is_remedy?(o(),n(b,{key:1,loading:e.loading,disabled:e.loading,fab:"",small:""},null,8,["loading","disabled"])):l("",!0),e.product.is_remedy===!1&&!c.productAdded?(o(),n(b,{key:2,loading:e.loading,disabled:e.loading,variant:"flat",class:"small",elevation:"0",color:"primary",onClick:r[10]||(r[10]=m=>c.addToBasket(e.product))},{default:s(()=>[i(_,{left:""},{default:s(()=>[a("mdi-cart-plus")]),_:1}),a(" "+u(t.$t("buttons.Add to basket")),1)]),_:1},8,["loading","disabled"])):l("",!0)]))]),_:1}),e.product.ingredients?(o(),n(q,{key:2,class:"mx-4"})):l("",!0),e.product.ingredients?(o(),n(k,{key:3,class:"text-left"},{default:s(()=>[Ze,d("p",Ge,u(e.product.ingredients),1)]),_:1})):l("",!0),e.product.free_froms.length>0?(o(),n(q,{key:4,class:"mx-4"})):l("",!0),e.product.free_froms.length>0?(o(),n(k,{key:5,class:"text-left"},{default:s(()=>[$e,d("ul",null,[(o(!0),y(A,null,E(e.product.free_froms,m=>(o(),y("li",{key:m.id,class:"text-body-1"},u(m.name),1))),128))])]),_:1})):l("",!0),e.product.certified_organic||e.product.vegan||e.product.vegetarian||e.product.recyclable_packaging||e.product.cruelty_free||e.product.age_restriction||e.product.contains_alcohol?(o(),n(q,{key:6,class:"mx-4"})):l("",!0),i(k,null,{default:s(()=>[e.product.certified_organic?(o(),n(S,{key:0,class:"ma-1"},{default:s(()=>[i(v,{left:"",color:"success",class:"mr-1"},{default:s(()=>[i(_,{theme:"dark",size:"18"},{default:s(()=>[a("mdi-certificate")]),_:1})]),_:1}),a("Certified Organic")]),_:1})):l("",!0),e.product.vegan?(o(),n(S,{key:1,class:"ma-1"},{default:s(()=>[i(v,{left:"",color:"blue",class:"mr-1"},{default:s(()=>[i(_,{theme:"dark",size:"18"},{default:s(()=>[a("mdi-leaf")]),_:1})]),_:1}),a("Vegan")]),_:1})):l("",!0),e.product.vegetarian?(o(),n(S,{key:2,class:"ma-1"},{default:s(()=>[i(v,{left:"",color:"success",class:"mr-1"},{default:s(()=>[i(_,{theme:"dark",size:"18"},{default:s(()=>[a("mdi-leaf")]),_:1})]),_:1}),a("Vegetarian ")]),_:1})):l("",!0),e.product.recyclable_packaging?(o(),n(S,{key:3,class:"ma-1"},{default:s(()=>[i(v,{left:"",color:"black",class:"mr-1"},{default:s(()=>[i(_,{theme:"dark",size:"20"},{default:s(()=>[a("mdi-recycle")]),_:1})]),_:1}),a(" Recyclable packaging ")]),_:1})):l("",!0),e.product.cruelty_free?(o(),n(S,{key:4,class:"ma-1"},{default:s(()=>[i(v,{left:"",color:"brown",class:"mr-1"},{default:s(()=>[i(_,{theme:"dark",size:"22"},{default:s(()=>[a("mdi-rabbit")]),_:1})]),_:1}),a("Cruelty free")]),_:1})):l("",!0),e.product.contains_alcohol?(o(),n(S,{key:5,class:"ma-1"},{default:s(()=>[i(v,{left:"",color:"black",class:"mr-1"},{default:s(()=>[i(_,{theme:"dark",size:"22"},{default:s(()=>[a("mdi-bottle-tonic-outline")]),_:1})]),_:1}),a("Contains Alcohol")]),_:1})):l("",!0),e.product.age_restriction?(o(),n(S,{key:6,class:"ma-1"},{default:s(()=>[i(v,{left:"",color:"error",class:"mr-1"},{default:s(()=>[i(_,{theme:"dark",size:"22"},{default:s(()=>[a("mdi-block-helper")]),_:1})]),_:1}),a(u(e.product.age_restriction),1)]),_:1})):l("",!0)]),_:1}),e.product.madein_country?(o(),n(q,{key:7,class:"mx-4 text-body-1"})):l("",!0),e.product.madein_country?(o(),n(k,{key:8,class:"text-left"},{default:s(()=>[d("h3",et,[a("Made in "+u(e.product.madein_country.name)+" ",1),d("span",tt,[i(F,{country:e.product.madein_country.code,size:"small"},null,8,["country"])])])]),_:1})):l("",!0),e.product.directions?(o(),n(q,{key:9,class:"mx-4 text-body-1"})):l("",!0),e.product.directions?(o(),n(k,{key:10,class:"text-left"},{default:s(()=>[st,d("p",rt,u(e.product.directions),1)]),_:1})):l("",!0),e.product.caution?(o(),n(k,{key:11,class:"text-left"},{default:s(()=>[d("h3",ot,[a("Caution "),i(_,{color:"error",size:"20"},{default:s(()=>[a("mdi-alert")]),_:1})]),d("p",it,u(e.product.caution),1)]),_:1})):l("",!0),i(k,null,{default:s(()=>[i(j,{url:e.url,title:e.name,description:e.summary,hashtags:e.keywords},null,8,["url","title","description","hashtags"])]),_:1})],64))]),_:1})]),_:1})]),_:1})])):l("",!0),i(ce,{modelValue:e.snackbar,"onUpdate:modelValue":r[12]||(r[12]=m=>e.snackbar=m),color:e.snackColor},{action:s(({attrs:m})=>[i(b,B({color:"#fff",text:""},m,{onClick:r[11]||(r[11]=M=>e.snackbar=!1)}),{default:s(()=>[a(u(t.$t("buttons.Close")),1)]),_:2},1040)]),default:s(()=>[a(u(e.snackText)+" ",1)]),_:1},8,["modelValue","color"]),(o(),n(he,{to:"head"},[(o(),n(de("script"),{type:"application/ld+json"},{default:s(()=>[a(u(c.productJsonLd),1)]),_:1}))]))])}const ht=O(Se,[["render",lt],["__scopeId","data-v-f3f3bca4"]]);export{ht as P};
//# sourceMappingURL=ProductForm-BVRm4YE_.js.map