import{y as I,M as T,aK as S,E as s,$ as C,aL as N,bV as O,U as r,N as c,O as t,X as n,R as d,a8 as o,V as f,e as y,Z as $,Y as D,bG as P}from"./vendor-CsGITfgk.js";import{g as q,dk as G,dl as R,K as F}from"./index-B7qwhRTg.js";import{u as K}from"./useBreadcrumbs-CLanN9FL.js";import{_ as L}from"./category.vue_vue_type_style_index_0_lang-44v1qTwa.js";import"./filters-popup-sidebar.vue_vue_type_style_index_0_lang-F1_VuV8h.js";import"./useSlugInfo-CsaEdl-y.js";import"./product-card.vue_vue_type_script_setup_true_lang-BNAp9V9h.js";import"./product-skeleton-grid-BcT3yZ5L.js";import"./product-skeleton-list-BuB7jJGJ.js";function M(l){const{storeId:m,cultureName:i}=q;return I(G,{storeId:m,cultureName:i,id:l})}const A={class:"brand-page"},Q={key:1,class:"brand-page__banner","data-test-id":"brand-banner"},W={key:2,class:"brand-page__logo","data-test-id":"brand-logo"},re=T({__name:"brand",props:{brandId:{}},setup(l){const i=S(l,"brandId"),k=s(()=>R(e.value?.brandPropertyValue)),{t:V}=C(),u=N(P),{result:h,loading:B}=M(i.value??""),e=s(()=>h.value?.brand),p=s(()=>e.value?.bannerUrl||e.value?.logoUrl),g=s(()=>{if(!u.greaterOrEqual("lg").value)return u.greaterOrEqual("md").value?"lg":u.greaterOrEqual("sm").value?"md":"sm"}),{title:b}=F(e.value?.name),x=K(()=>[{title:V("pages.brands.title"),route:(()=>{const a=e.value?.permalink??"";return`/${(a.startsWith("/")?a.slice(1):a).split("/")[0]}`})()},{title:e.value?.name??""}]);return O({title:b,keywords:e.value?.name,description:e?.value?.description,ogUrl:window.location.toString(),ogTitle:b,ogDescription:e?.value?.description,ogImage:e?.value?.logoUrl,ogType:"website"}),(a,w)=>{const _=r("VcBreadcrumbs"),E=r("VcTypography"),v=r("VcImage"),U=r("VcContainer"),z=r("VcEmptyView");return t(),c("div",A,[n(U,{class:"brand-page__top-container","has-bg-image":!1},{default:f(()=>[n(_,{class:"brand-page__breadcrumbs",items:y(x)},null,8,["items"]),p.value?(t(),d(E,{key:0,tag:"h1",class:"brand-page__title","data-test-id":"brand-title"},{default:f(()=>[$(D(e.value?.name),1)]),_:1})):o("",!0),e.value?.bannerUrl?(t(),c("div",Q,[n(v,{src:e.value?.bannerUrl,lazy:"",alt:e.value?.name,class:"brand-page__banner-image","size-suffix":g.value},null,8,["src","alt","size-suffix"])])):e.value?.logoUrl?(t(),c("div",W,[n(v,{src:e.value?.logoUrl,lazy:"",alt:e.value?.name,class:"brand-page__logo-image","size-suffix":g.value},null,8,["src","alt","size-suffix"])])):o("",!0),e.value?(t(),d(L,{key:3,"data-test-id":"brand-products",class:"brand-page__products","filters-orientation":"horizontal",filter:k.value,"hide-total":"","view-mode":"grid",title:p.value?a.$t("pages.brand.products_title"):e.value?.name,"columns-amount-desktop":"5","has-bg-image":!1,"facets-to-hide":["BRAND"]},null,8,["filter","title"])):o("",!0)]),_:1}),!y(B)&&!e.value?(t(),d(z,{key:0,text:a.$t("pages.brands.no_results")},null,8,["text"])):o("",!0)])}}});export{re as default};
//# sourceMappingURL=brand-Cza4Pg9t.js.map
