1import{_ as O}from"./CJAbeZ-w.js";import{_ as W}from"./2SckMSD3.js";import{_ as N}from"./BuGE_yeX.js";import{_ as q}from"./C-gx0Ads.js";import{e as T,f as R,c as p,b as f,a as _,j as e,t as $,w as k,v as P,i as S,o as a,d as J,s as G,u as K,g as B,h as n,F as Q,k as X}from"./DCJDvfEZ.js";import{i as Y,_ as Z}from"./BPPZQuZt.js";import{b as ee}from"./D7MQ5aK9.js";import{u as te}from"./DYuXEyW1.js";import{u as oe}from"./BDHaZBzp.js";import{u as se}from"./UMH1j_xo.js";const ie={class:"group relative flex flex-col md:flex-row w-full bg-white border border-gray-200 overflow-hidden shadow-lg hover:shadow-2xl transition-all duration-300 ring-2 ring-blue-600"},re={class:"absolute top-4 right-4 bg-gradient-to-br from-blue-200 to-purple-200 backdrop-blur-sm px-3 py-1 text-xs font-semibold uppercase tracking-wider text-gray-700 z-20"},ne=["src","alt"],le={class:"flex flex-col justify-between p-6 md:p-8 w-full"},ce={class:"flex flex-col md:flex-row md:items-center justify-end gap-3"},ae=T({__name:"HighlightProductCard",props:{title:{},body:{},price:{},discountedPrice:{},img:{},section:{},slug:{},prestashopUrl:{}},setup(I){const l=R(),o=I;return(L,c)=>{const d=W,b=N,v=q;return a(),p("article",ie,[f(d,{to:e(l)(`/${o.section}/${o.slug}`),class:"absolute inset-0 z-10"},null,8,["to"]),_("div",re,$(L.$t("popular")),1),f(d,{to:e(l)(`/${o.section}/${o.slug}`),class:"relative overflow-hidden md:w-1/3 flex items-center justify-center mx-4 md:mx-0 md:ml-8 mt-4"},{default:k(()=>[_("img",{src:o.img,alt:o.title,class:"w-auto md:w-full h-36 md:h-auto transition-transform duration-500 group-hover:scale-105",loading:"lazy"},null,8,ne)]),_:1},8,["to"]),_("div",le,[_("div",null,[f(d,{to:e(l)(`/${o.section}/${o.slug}`),class:"font-semibold text-xl md:text-2xl mb-3 inline-block group-hover:text-blue-700 transition-colors"},{default:k(()=>[J($(o.title),1)]),_:1},8,["to"]),f(b,{content:o.body,class:"markdown-body mb-6 line-clamp-6"},null,8,["content"])]),_("div",ce,[o.prestashopUrl?(a(),P(v,{key:0,to:o.prestashopUrl,price:o.discountedPrice||o.price,oldPrice:o.discountedPrice?o.price:void 0},null,8,["to","price","oldPrice"])):S("",!0)])])])}}}),ue={class:"container mx-auto py-16"},de=["innerHTML"],pe={key:2},me={key:3},he={key:4},ge={key:0,class:"flex justify-center mb-12 pr-4 lg:w-2/3"},_e={class:"grid md:grid-cols-3 gap-6"},Ie=T({__name:"index",async setup(I){let l,o;const c=G().params.section,{locale:d,t:b}=K(),{data:v,pending:M,error:U}=([l,o]=B(()=>te(`/api/section/${c}`,{query:{locale:d.value}},"$eV9pTjl34u")),l=await l,o(),l),{data:g}=([l,o]=B(()=>oe(()=>`section-cfg:${c}:${d.value||"en"}`,()=>$fetch(`/api/section-config/${c}`,{params:{locale:d.value}}),{watch:[d,()=>c],staleTime:6e4})),l=await l,o(),l),m=n(()=>{var t;return((t=g.value)==null?void 0:t.intro)||""}),V=n(()=>/<\/?[a-z][\s\S]*>/i.test(m.value)),x=n(()=>{var t,s;return((s=(t=g.value)==null?void 0:t.highlight_product)==null?void 0:s.id)||null}),y=n(()=>{var t,s;return((s=(t=g.value)==null?void 0:t.highlight_product)==null?void 0:s.slug)||null}),z=n(()=>{var t;return((t=g.value)==null?void 0:t.show_highlight_first)!==!1}),A=n(()=>c==="partner"||c==="partners"),H=n(()=>{var t,s,r,h;return!A.value&&!!((s=(t=g.value)==null?void 0:t.highlight_product)!=null&&s.slug||(h=(r=g.value)==null?void 0:r.highlight_product)!=null&&h.id)}),w=n(()=>c==="asap"?"ASAP":c==="merchandising"?"Merchandising":Y(c)?b("eventsMenu"):c.replace(/-/g," ")),i=n(()=>{const t=(v.value||[]).slice().sort((r,h)=>(r.orderInSection??1e3)-(h.orderInSection??1e3)||String(r.title||"").localeCompare(String(h.title||"")));if(!z.value||!x.value&&!y.value)return t;let s=-1;if(x.value!=null&&(s=t.findIndex(r=>
1r.id===x.value)),s<0&&y.value&&(s=t.findIndex(r=>r.slug===y.value)),s>0){const[r]=t.splice(s,1);t.unshift(r)}return t}),D=n(()=>ee(v.value||[])),j=n(()=>`${w.value} â Ircam Forum`),C=n(()=>m.value?m.value.replace(/<[^>]*>/g,"").trim().slice(0,180):`Discover ${w.value} from the Ircam Forum: software, plugins, creative tools and exclusive resources.`),E=n(()=>({"@context":"https://schema.org","@type":"WebPage",name:j.value,url:`https://forum.ircam.fr/shop/${c}`,description:C.value,isPartOf:{"@type":"WebSite",name:"Ircam Forum",url:"https://forum.ircam.fr"}}));return se(()=>({title:j.value,meta:[{name:"description",content:C.value}],script:[{type:"application/ld+json",children:JSON.stringify(E.value)},...D.value.map(t=>({type:"application/ld+json",children:JSON.stringify(t)}))]})),(t,s)=>{const r=O,h=ae;return a(),p("div",ue,[f(r,{class:"mb-8"},{default:k(()=>[J($(e(w)),1)]),_:1}),e(m)&&e(V)?(a(),p("div",{key:0,class:"prose max-w-none mb-8",innerHTML:e(m)},null,8,de)):e(m)?(a(),P(N,{key:1,content:e(m),class:"markdown-body mb-8"},null,8,["content"])):S("",!0),e(M)?(a(),p("div",pe,"Loading...")):e(U)?(a(),p("div",me,"Error while loading.")):(a(),p("div",he,[e(H)&&e(i).length&&(e(i)[0].slug===e(y)||e(i)[0].id===e(x))?(a(),p("div",ge,[f(h,{title:e(i)[0].title,price:e(i)[0].price,"discounted-price":e(i)[0].discountedPrice,section:e(i)[0].section,slug:e(i)[0].slug,"prestashop-url":e(i)[0].prestashopUrl,img:e(i)[0].heroImg,body:e(i)[0].body},null,8,["title","price","discounted-price","section","slug","prestashop-url","img","body"])])):S("",!0),_("div",_e,[(a(!0),p(Q,null,X(e(H)?e(i).slice(1):e(i),u=>{var F;return a(),P(Z,{key:u.id,title:u.title,excerpt:u.excerpt,price:u.price,"discounted-price":u.discountedPrice,section:u.section,slug:u.slug,"prestashop-url":u.prestashopUrl,img:u.heroImg,"has-price-tiers":((F=u.price_tiers)==null?void 0:F.length)>0},null,8,["title","excerpt","price","discounted-price","section","slug","prestashop-url","img","has-price-tiers"])}),128))])]))])}}});export{Ie 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.