PageSourceSearch

https://eupry.com/_nuxt/DyTAHpl-.js

js eupry.com collected 2026-10-02 18:08:57 UTC 5,748 bytes, 1 lines download raw bytes

1import{d as oe,u as le,G as ne,W as N,X as ce,w as b,a as w,aa as f,J as re,K as ie,q as j,ab as de,ac as ue,a0 as pe,c as A,e as o,f as r,g as h,H as me,h as s,I as H,i,_ as ge,F as _,r as D,m as C,v as O,k,t as x,B as fe,N as he,O as _e,n as xe,p as ve,s as I}from"./CO5-G7P0.js";import{b as ye}from"./BZS-nSUY.js";import{c as be}from"./DUNzAAID.js";import"./BqXGQkKS.js";import"./C0qGQOAp.js";const we={class:"content"},De={class:"container mt-32"},ke={href:"/products",class:"flex flex-row w-fit font-medium px-2 py-1 rounded-md hover:bg-gray-200 mb-5 cursor-pointer"},Ie={class:"flex flex-col md:flex-row"},Pe={class:"w-full md:w-[50%] pr-0 md:pr-7"},$e={class:"flex flex-row gap-2 mt-2"},Se={class:"w-full md:w-[50%] pl-0 md:pl-7 pt-7 md:pt-0 xl:pt-[100px]"},Ae={key:0,class:"inline-flex items-center rounded-lg bg-cyan-500 px-3 py-0.5 mb-4 text-xs font-bold text-white"},Ce={class:"font-medium text-2xl md:text-3xl mb-4 text-balance"},Le={key:1,class:"text-lg text-black/50 mb-6 text-balance"},ze={key:2,class:"mt-5 overflow-auto"},Te={class:"flex flex-row items-center justify-center w-[40px] h-[40px] shadow rounded-md bg-cyan-50"},Re={class:"flex flex-col justify-center"},Ue={class:"ml-4 text-black/80"},Be={class:"text-sm ml-4 text-black/60"},Fe={class:"mt-7 flex flex-col lg:flex-row gap-4 lg:items-center"},Me={components:{...be}},Ke=oe({...Me,__name:"product",async setup(Ne){let a,d;const n=le(),m=ve(),v=ne(n);N.Draft,ce(n);const u=n.meta.locale||"en",L=u!=="en"?`&locale=${u}`:"",W=u!=="en"?`-${u}`:"",E=v===N.Draft?{server:!1,key:n.fullPath}:{},{data:l}=([a,d]=b(()=>w(`${m.public.STRAPI_API_URL}${f}${n.meta.documentId}?status=${v}${L}`,{...E})),a=await a,d(),a);if(!l.value?.data)throw re({statusCode:404,statusMessage:"Page Not Found"});const g=j(null);if(u!=="en"){const{data:t}=([a,d]=b(()=>w(`${m.public.STRAPI_API_URL}${f}${n.meta.documentId}?status=${v}`,{key:`product-en-fallback-${n.meta.documentId}`})),a=await a,d(),a);g.value=t.value?.data??null,ie("enBody",g.value?.body??[])}const y=I(()=>l.value.data),z=I(()=>y.value.category??g.value?.category??null),V=t=>Array.isArray(t)&&t.some(p=>p?.image?.hash),P=I(()=>{const t=y.value.pictures;return V(t)?t:g.value?.pictures??t??[]}),T=I(()=>{const t=y.value.benefits;return t?.length?t:g.value?.benefits??[]}),$=j(P.value[0]?.image?.hash),c=l?.value?.data?.seo||{},K=m.public.STRAPI_API_URL+"/global-seo-setting",{data:S}=([a,d]=b(()=>w(K,{key:"global-seo-setting"})),a=await a,d(),a),{data:X}=([a,d]=b(()=>w(`${m.public.STRAPI_API_URL}${f}${n.meta.documentId}?fields[0]=slug&fields[1]=locale&populate[localizations][fields][0]=slug&populate[localizations][fields][1]=locale${L}`,{key:`product-localizations-${n.meta.documentId}${W}`})),a=await a,d(),a),q=X.value?.data?.localizations||[],{hreflangLinks:G,canonicalFallback:J}=ye({siteUrl:m.public.siteUrl,currentLocale:u,current:{locale:u,slug:y.value.slug,basePrefix:f},localizations:q.map(t=>({locale:t.locale,slug:t.slug,basePrefix:f}))}),Q=c.noIndex??!1,R=c.pageTitle,U=c.shortDescription,Y=c.ogTitle??R,B=c.canonicalURL||J,Z=c.ogDescription??U,ee=(c?.image??S?.value?.data?.ogImage)?.url,ae=de(l.value.data,B),te=ue(l.value.data,n),se=pe(te);return A({title:()=>R,meta:[{property:"og:title",content:()=>Y},{name:"description",content:()=>U},{property:"og:description",content:()=>Z},{property:"og:image",content:()=>ee}]}),A({meta:[Q!=!1?{name:"robots",content:"noindex, follow"}:{}],script:[c.Schema!=null?{type:"application/ld+json",innerHTML:c.Schema}:{},S?.value?.data?.globalSchema!=null?{type:"application/ld+json",innerHTML:S.value.data.globalSchema}:{},{type:"application/ld+json",innerHTML:ae},{type:"application/ld+json",innerHTML:se}],link:[{rel:"canonical",href:B},...G]}),A({htmlAttrs:{lang:u}},{tagPriority:200}),(t,p)=>{const F=ge;return o(),r(_,null,[h(me),s("main",we,[s("div",De,[s("a",ke,[h(H,{name:"arrow-left",class:"w-6 h-6",onClick:p[0]||(p[0]=e=>t.$router.back())}),p[1]||(p[1]=s("span",null,"Back to product overview",-1))]),s("div",Ie,[s("div",Pe,[h(F,{loading:"eager",sizes:"360px md:600px",src:i($),imgAttrs:{class:"w-full rounded-lg border-[0.5px] border-gray-300 aspect-[4/3] object-cover",fetchpriority:"high"}},null,8,["src"]),s("div",$e,[P.value.length>1?(o(!0),r(_,{key:0},D(P.value,e=>
1(o(),C(F,{loading:"lazy",sizes:"100px",class:O(["w-[24%]",[{"cursor-pointer opacity-50 hover:opacity-100":i($)!==e.image?.hash}]]),src:e.image?.hash,imgAttrs:{class:"w-full rounded-lg border-[0.5px] border-gray-300 aspect-[4/3] object-cover"},onClick:()=>$.value=e.image?.hash},null,8,["class","src","onClick"]))),256)):k("",!0)])]),s("div",Se,[z.value?(o(),r("span",Ae,x(z.value.name),1)):k("",!0),s("h1",Ce,x(i(l).data.name),1),i(l)?.data.shortDescription?(o(),r("h2",Le,x(i(l).data.shortDescription),1)):k("",!0),T.value.length>0?(o(),r("div",ze,[(o(!0),r(_,null,D(T.value,e=>(o(),r("div",{key:e,class:"flex flex-row pr-3 py-2 w-[50%] float-left"},[s("div",Te,[h(H,{name:e.icon,lucideName:e.lucideIcon,class:"w-6 h-6 text-black"},null,8,["name","lucideName"])]),s("div",Re,[s("span",Ue,x(e.title),1),s("span",Be,x(e.description),1)])]))),128))])):k("",!0),s("div",Fe,[(o(!0),r(_,null,D(i(l)?.data.buttons,e=>(o(),C(fe,{title:e.title,"aria-label":e.ariaLabel||void 0,link:e.href,variant:e.type,size:e.size,arrow:e.arrow,isFullWidth:e.fullWidth,icon:e.lucideIcon??e.icon,classes:"rounded-md lg:w-fit min-w-full lg:min-w-0"},null,8,["title","aria-label","link","variant","size","arrow","isFullWidth","icon"]))),256))])])])]),(o(!0),r(_,null,D(i(l)?.data.body,(e,M)=>(o(),C(he(i(_e)(e)),{key:M,index:parseInt(M),data:e,productAttributes:i(l).data,class:O(e.hideOnMobile?"hidden md:block":"")},null,8,["index","data","productAttributes","class"]))),128))]),h(xe)],64)}}});export{Ke as default};

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.