import{u as g}from"./CQo394Om.js";import{u as y}from"./76RNkh61.js";import{u as p}from"./DYEtpFU4.js";import{d as _}from"./COjhYyr1.js";import{u as v}from"./DlDklb_P.js";import"./B-XSawTn.js";import"./D_HjwF_l.js";import{d as h}from"./BPEPGNiH.js";import{d as w,i as n}from"./CGuWR5z3.js";import"./D9_ME1OV.js";import"./B6orRp05.js";import"./BVQKphmM.js";import"./PPVm8Dsz.js";import"./G46Rm1Gk.js";function T(){const l=v();return _(l.public["nuxt-schema-org"],{scriptAttributes:{}})}function x(l){const e=T(),a={type:"application/ld+json",key:"schema-org-graph",nodes:l,tagPriority:"high",...e.scriptAttributes};if(e?.reactive)return p({script:[a]})}const S=w({__name:"SeoMetatags",props:{blok:{}},setup(l){const e=l,a=g(),b=y();function t(o){return o?.length?o.map(i=>typeof i=="string"?null:i.content?.title||i.name).filter(Boolean):[]}function s(o){return!o||typeof o=="string"?null:o.content?.title||o.name||null}const c=n(()=>e.blok?[...t(e.blok.tags),...t(e.blok.research_area),...t(e.blok.technique),...t(e.blok.sample),...t(e.blok.molecule),...t(e.blok.range),...t(e.blok.device_family),...t(e.blok.device),...t(e.blok.software),...t(e.blok.operating_system),...t(e.blok.sector_or_applied_use),...t(e.blok.organism),...t(e.blok.flow_cell_family),...t(e.blok.flow_cell),...t(e.blok.kit),...t(e.blok.chemistry),s(e.blok.document_type),s(e.blok.document_sub_type)].filter(Boolean).join(", "):""),f=n(()=>{if(!e.blok)return null;const o={documentType:s(e.blok.document_type),documentSubType:s(e.blok.document_sub_type),tags:t(e.blok.tags),researchArea:t(e.blok.research_area),technique:t(e.blok.technique),sample:t(e.blok.sample),molecule:t(e.blok.molecule),range:t(e.blok.range),deviceFamily:t(e.blok.device_family),device:t(e.blok.device),software:t(e.blok.software),operatingSystem:t(e.blok.operating_system),sectorOrAppliedUse:t(e.blok.sector_or_applied_use),organism:t(e.blok.organism),flowCellFamily:t(e.blok.flow_cell_family),flowCell:t(e.blok.flow_cell),kit:t(e.blok.kit),chemistry:t(e.blok.chemistry)};return Object.fromEntries(Object.entries(o).filter(([i,m])=>Array.isArray(m)?m.length>0:m!==null))}),r=n(()=>e.blok?.title?.trim()?e.blok.title.trim():a.siteName),u=n(()=>e.blok?.description?.trim()?e.blok.description:`${r.value} | ${a.siteDescription}`),k=n(()=>Object.keys(b.query).length>0),d=n(()=>{if(e.blok){if(e.blok.index===!1)return"noindex, nofollow";if(k.value)return"noindex, follow"}});return p({title:r.value,meta:[{property:"og:title",content:r.value},{name:"description",content:u.value},{property:"og:description",content:u.value},{property:"og:image",content:e.blok?.image?.filename},{name:"robots",content:d.value},{name:"keywords",content:c.value||void 0}]}),p({title:r.value,meta:[{property:"og:title",content:r.value}]}),x([h({name:r.value,description:u.value,image:e.blok?.image?.filename?{"@type":"ImageObject",url:e.blok.image.filename}:void 0}),...c.value?.length>0?[{"@type":"PageMetadata",name:"Page meta data",description:"Tags and categorisation for the current page",keywords:c.value,...f.value}]:[]]),(o,i)=>null}}),I=Object.assign(S,{__name:"SeoMetatags"});export{I as default};