1import{aX as z,aY as F,a_ as I,a$ as R,c5 as $,dA as V,dB as M,bF as j,b2 as U,bC as K,be as B,bY as H,bT as Y,dC as Q,bf as W,dD as k,dE as q,dF as x}from"./KI7RCZCQ.js";import{a as E,g as J,e as X,b as Z,t as A,c as D}from"./B98v58uR.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="42e27ceb-b845-4d1e-985c-3807c671297d",e._sentryDebugIdIdentifier="sentry-dbid-42e27ceb-b845-4d1e-985c-3807c671297d")}catch{}})();const te=e=>{const{[F.ENV_NAME]:t=""}=z().values,o=I().value,{organizationName:L,siteUrl:s="",logoName:b="euroflorist"}=o?R(o,t):{},i=$().value,c=V(i.defaultLanguage),f={"@context":"https://schema.org/","@type":"Organization",name:L||"Euroflorist",url:s,logo:s+"/images/"+b+".svg",contactPoint:{"@type":"ContactPoint",email:e.helpMailboxAddress,contactType:"customer service",areaServed:o===j.SKYFALL_BLUMENSHOP?[c,"BE","NL"]:c,availableLanguage:i==null?void 0:i.languages.map(l=>M(l))},sameAs:[e.facebookProfileURL,e.instagramProfileURL,e.twitterProfileURL,e.linkedinProfileURL,e.xProfileURL,e.youtubeProfileURL,e.wikipediaProfileURL,e.pinterestProfileURL,e.trustpilotProfileURL,e.googleReviewsURL].filter(l=>l)};U({script:[{key:"structured-data-for-organization",type:"application/ld+json",innerHTML:JSON.stringify(f)}]})},G=e=>{const{[F.ENV_NAME]:t}=z().values,o=I().value,s=$().value.defaultLanguage,b=K(),i=B(),{slug:c}=i.params,{categoryIgnoredSuffix:f,siteUrl:l}=o?R(o,t):{},{getRouteNameWithoutLocale:S}=H(),{categoryTreeState:m}=Y(),g=(e==null?void 0:e.prefix)||"",{countryCode:h}=i.query,a=new Set(b.allowedLanguagesCodes.map(r=>M(r)).filter(r=>!!r).map(r=>r.toLowerCase())),y=r=>r.trim().replace(/^\/+/,"").toLowerCase(),v=y(i.path),C=r=>{if(!Array.isArray(c))return(c??"").toString();const u=E(r,s,g);return c.filter(n=>n!==u).join("/")},w=r=>{const u=y(r);if(u!==v)return u;const[n,...d]=u.split("/");return a.has(n??"")?d.join("/"):u},N=(r,u,n)=>{var P;if(typeof n=="string")return w(n);if(u){const T=m.value[u];return T?D(r,T,f):c.join("/")}const d=C(r);return((P=n==null?void 0:n[r])==null?void 0:P.toLowerCase())??d};return{buildUrl:(r,u,n)=>{const d=E(r,s,g),P=J(r,g),T=X(N(r,u,n)),O=Z(S(i.name)||"",Q.productSlug.name,h);return A(`${l}${d===""?"":`/${d}`}/${P}${T}${O}`)}}},re=(e,t,o)=>{var v,C,w,N,_;const{[F.ENV_NAME]:L}=z().values,s=I().value,i=$().value.defaultLanguage,c=K(),{organizationName:f,isEnDefaultLocale:l}=s?R(s,L):{},S=(t==null?void 0:t.updateLinks)??!0,{buildUrl:m}=G({prefix:t==null?void 0:t.prefix}),g=t!=null&&t.slug&&typeof t.slug!="string"?new Set(Object.entries(t.slug).filter(([,r])=>r).map(([r])=>r)):null,h=W(()=>c.allowedLanguagesCodes.filter(r=>!g||g.has(r)).map(r=>{const u=q(r,l);return{rel:"alternate",hreflang:x(i,u),href:m(r,t==null?void 0:t.categoryId,t==null?void 0:t.slug),key:`alternate-${r}`}})),a=(...r)=>{for(const u of r){const n=u==null?void 0:u.trim();if(n)return n}},y=[{name:"description",content:a(e==null?void 0:e.description,o==null?void 0:o.description)},{name:"keywords",content:((v=e==null?void 0:e.keywords)==null?void 0:v.trim())??""},...e!=null&&e.pageType?[{name:"page type",content:e.pageType}]:[]].filter(r=>r.content);if(o){const r=[{hid:"og:title",property:"og:title",content:a(o==null?void 0:o.title,e==null?void 0:e.title)},{hid:"og:description",property:"og:description",content:a(o==null?void 0:o.description,e==null?void 0:e.description)},{hid:"og:type",property:"og:type",content:o.type},{hid:"og:image",property:"og:image",content:(C=o.image)==null?void 0:C.url},{hid:"og:image:alt",property:"og:image:alt",content:(w=o.image)==null?void 0:w.alt},{hid:"og:image:width",property:"og:image:width",content:(N=o.image)==null?void 0:N.width},{hid:"og:image:height",property:"og:image:height",content:(_=o.image)==null?void 0:_.height},{hid:"og:locale",property:"og:locale",content:c.currentLanguageCode?k(c.currentLanguageCode):void 0},{hid:"og:site_name",property:"og:site_name",content:f||"Euroflorist"},{hid:"og:url",property:"og:url",content:S?m(c.currentLanguageCode,t
1==null?void 0:t.categoryId,t==null?void 0:t.slug):void 0}].filter(u=>u.content);y.push(...r)}U({title:a(e==null?void 0:e.title,o==null?void 0:o.title),meta:y,link:S?[{rel:"canonical",href:m(c.currentLanguageCode,t==null?void 0:t.categoryId,t==null?void 0:t.slug)},...h.value]:[]})};export{re as a,G as b,te as u};
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.