1import{j as e,P as h,M as c}from"./bootstrap-7a1d96b0.js";import{a as j,B as d}from"./index-f278ab68.js";import{u as f,T as b,R as y}from"./TextComponent-45d31cb8.js";import{I as k}from"./ImageComponent-d55c2476.js";import{r as l}from"./react-vendor-a2a3b72f.js";import"./redux-0bedbf41.js";import"./carousel-23bf4cc4.js";function m({lang:s}){const{content:a}=f("BrandsPage","BrandsHero");if(!a)return null;const{title:i,description:r,image:t,logo:o}=a;return e.jsx("div",{className:"top-hero-main",children:e.jsx("div",{className:"home-hero d-flex align-items-center",style:{backgroundImage:`url(${t.url})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},children:e.jsxs("div",{className:"container p-3 ",children:[e.jsx(k,{src:o?.url,alt:"Madox"}),e.jsx(b,{heading:"h1",content:i,language:s,className:"title mb-4"}),e.jsx(y,{heading:"p",content:r,language:s,className:"description mb-4"})]})})})}m.propTypes={lang:h.string};function H(){const{data:s=[],isSuccess:a}=j(),[i,r]=l.useState(!1),[t,o]=l.useState(null),[u,v]=l.useState("en");l.useEffect(()=>{},[a,s]);const p=n=>{o(n),r(!0)},x=()=>{r(!1),o(null)};return e.jsxs(e.Fragment,{children:[e.jsx(m,{}),e.jsx("div",{className:"container px-0 py-1",children:e.jsx("div",{className:"d-flex flex-wrap gap-2 justify-content-center mb-5",children:s.map((n,g)=>e.jsx("div",{className:"brand-box",onClick:()=>p(n),style:{cursor:"pointer"},children:e.jsx("img",{src:n?.logo?.url,alt:n?.name})},g))})}),t&&e.jsxs(c,{className:"brand-modal",show:i,onHide:x,size:"xl","aria-labelledby":"contained-modal-title-vcenter",centered:!0,children:[e.jsx(c.Header,{closeButton:!0,style:{padding:"0"},children:e.jsx("img",{src:t?.image?.url,alt:t?.name,style:{width:"100%",height:"300px",objectFit:"cover",borderRadius:"8px 8px 0 0"}})}),e.jsxs(c.Body,{children:[e.jsx("div",{dangerouslySetInnerHTML:{__html:u==="en"?t?.description:t?.greek?.description}}),e.jsxs("div",{className:"d-flex mt-4 justify-content-start",children:[e.jsx(d,{text:"View Collection",style:"outline me-2",link:`/products/brand/${t.path}`}),e.jsx(d,{text:"View Stores",link:`/partners/brand/${t.path}`})]})]})]})]})}export{H 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.