PageSourceSearch

https://albouraq.fr/assets/PublisherDetails-nSSsnTkq.js

js albouraq.fr collected 2026-10-07 03:56:13 UTC 4,103 bytes, 1 lines download raw bytes

1import{u as g,r,j as s,a as N,o as b,A as S,n as k,v as B,S as L,aJ as q,w as I,aK as $,c as p}from"./index-y0CXGfsW.js";import{c as E}from"./collab-placeholder-BNIQCnBa.js";import{B as P}from"./BooksView-CvoQlQJi.js";import{B as A}from"./Breadcrumb-DhMmcIwK.js";import{F as J}from"./FAQSection-q8kAj2vE.js";import"./swiper-react-j-W-jOvk.js";import"./index.esm-BIig6wxL.js";import"./index.esm-BNfnGdRN.js";import"./index.esm-Cw7HmVsn.js";import"./nobookfound-IdqLAtLO.js";import"./NewsLetterSection-QYDuor2S.js";import"./aos-D0emIC6D.js";import"./RadioGroup-B9K3b2_c.js";import"./getThemeProps-CvIvhkbt.js";import"./Radio-ZxYbIGsM.js";import"./SwitchBase-Bfx6gHz9.js";const H="_login_con_c2i1f_1",M="_header_c2i1f_12",T="_cardContainer_c2i1f_40",F="_card_c2i1f_40",O="_colabImage_c2i1f_86",K="_btns_con_c2i1f_103",c={login_con:H,header:M,cardContainer:T,card:F,colabImage:O,btns_con:K},Q="_big_container_1ffmx_1",R="_header_1ffmx_9",V="_headtitle_1ffmx_17",h={big_container:Q,header:R,headtitle:V},W=({publisher_name:t})=>{const o=g(n=>n.products.selectedLanguage[0].Language);return r.useEffect(()=>{if(t){let n=JSON.parse(localStorage.getItem("publishers"))||[];n.includes(t)||(n=[t]),localStorage.setItem("publishers",JSON.stringify(n))}},[t]),s.jsxs("div",{className:h.big_container,children:[s.jsx("div",{className:h.header,style:{display:"flex",flexDirection:"column",justifyContent:"center",marginBottom:"2em",width:"80%"},children:s.jsx("div",{className:h.headtitle,style:{margin:"auto"},children:s.jsx("h2",{style:{textAlign:"center"},children:o==="eng"?"More for the same brand":"Plus pour les mêmes marques"})})}),s.jsx(P,{publisher_id:t})]})},me=()=>{N();const t=b(),o=r.useContext(S),{id:n}=k(),[e,f]=r.useState({});g(i=>i.products.userInfo);const d=g(i=>i.products.selectedLanguage[0].Language);sessionStorage.getItem("token");const l=async()=>{try{const i=await p.get(`https://backapi.leonardo-service.com/api/sofiadis/albouraq/publishers?ecom_type=albouraq&ids[]=${n}`);f(i.data[0])}catch(i){console.error("Error fetching collaborator data:",i)}};r.useEffect(()=>{l()},[o.publishers,n]);const[G,_]=r.useState({}),x=async()=>{var i;try{const m=await p.get("https://backapi.leonardo-service.com/api/sofiadis/albouraq/website-sections?ecom_type=albouraq&section_id=collaborator-details-hero");_((i=m.data.data[0])==null?void 0:i.hero_sections[0])}catch(m){console.error("Error fetching hero data:",m)}};r.useEffect(()=>{x()},[]);const u=[{en:"Home",fr:"Accueil",url:"/"},{en:"Brands",fr:"Marques",url:"/brands"},{en:`${e.title}`,fr:`${e.title}`,url:""}],a=i=>typeof i=="string"?i.trim():"",j=a((e==null?void 0:e.meta_title)||(e==null?void 0:e.title)||(e==null?void 0:e.nom)),y=a((e==null?void 0:e.meta_description)||((e==null?void 0:e.description)||(e==null?void 0:e.biographie)||"").replace(/<[^>]*>/g,""))||B({name:(e==null?void 0:e.title)||(e==null?void 0:e.nom)}),v=a((e==null?void 0:e.keywords)||[(e==null?void 0:e.title)||(e==null?void 0:e.nom),d==="eng"?"brand":"marque"].filter(Boolean).join(", ")),w=e==null?void 0:e.image;return s.jsxs("div",{children:[s.jsx(L,{title:j,description:y,path:t.pathname,image:w,type:"profile",keywords:v,jsonLd:[q(e,t.pathname),I(u,d)]}),s.jsx(A,{paths:u}),s.jsx("div",{className:c.login_con,children:s.jsxs("div",{className:c.cardContainer,children:[s.jsx("div",{className:c.colabImage,children:!e.image||e.image===""?s.jsx("img",{src:E,alt:"",width:"100%",height:"100%"}):s.jsx("img",{src:`${e.image}`,alt:"",width:"100%",height:"100%"})}),s.jsxs("div",{className:c.card,children:[s.jsx("div",{className:c.header,children:s.jsxs("div",{children:[s.jsx("h1",{style:{whiteSpace:"nowrap",margin:".2em 0 0 0"},onClick:()=>console.log(e)&l(),children:d==="eng"?"Brand":"La marque"}),s.jsx("h2",{style:{margin:"0"},children:(e==null?void 0:e.title)||(e==null?void 0:e.nom)})]})}),s.jsx("p",{style:{color:"var(--dark-color)",fontWeight:"500"},children:e.description}),s.jsx("div",{className:c.btns_con})]})]})}),s.jsx(J,{faqParams:{field:"b_usr_editeur_id",id:e==null?void 0:e.id}}),s.jsx(W,{publisher_name:e.id}),s.jsx($,{})]})};export{me 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.