import{y as T,M as S,aK as C,E as s,$ as N,aL as O,bV as $,ax as D,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 L,Y as P,bG as q}from"./vendor-CsGITfgk.js";import{g as G,dm as R,dn as F,bj as K,K as M}from"./index-CsCqMgta.js";import{u as j}from"./useBreadcrumbs-CLanN9FL.js";import{_ as A}from"./category.vue_vue_type_style_index_0_lang-DxXhokKv.js";import"./filters-popup-sidebar.vue_vue_type_style_index_0_lang-BrnyJefL.js";import"./useSlugInfo-BKFu_7wx.js";import"./product-card.vue_vue_type_script_setup_true_lang-CXwGwsM6.js";import"./product-skeleton-grid-DM9bsmii.js";import"./product-skeleton-list-84IOCtdh.js";function Q(l){const{storeId:m,cultureName:i}=G;return T(R,{storeId:m,cultureName:i,id:l})}const W={class:"brand-page"},X={key:1,class:"brand-page__banner","data-test-id":"brand-banner"},Y={key:2,class:"brand-page__logo","data-test-id":"brand-logo"},oe=S({__name:"brand",props:{brandId:{}},setup(l){const i=C(l,"brandId"),k=s(()=>F(e.value?.brandPropertyValue)),{t:V}=N(),{updateLocalizedUrl:h}=K(),u=O(q),{result:x,loading:B}=Q(i.value??""),e=s(()=>x.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}=M(e.value?.name),w=j(()=>[{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 $({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"}),D(e,()=>{h(e.value?.permalink)},{immediate:!0}),(a,U)=>{const _=r("VcBreadcrumbs"),z=r("VcTypography"),v=r("VcImage"),E=r("VcContainer"),I=r("VcEmptyView");return t(),c("div",W,[n(E,{class:"brand-page__top-container","has-bg-image":!1},{default:f(()=>[n(_,{class:"brand-page__breadcrumbs",items:y(w)},null,8,["items"]),p.value?(t(),d(z,{key:0,tag:"h1",class:"brand-page__title","data-test-id":"brand-title"},{default:f(()=>[L(P(e.value?.name),1)]),_:1})):o("",!0),e.value?.bannerUrl?(t(),c("div",X,[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",Y,[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(A,{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(I,{key:0,text:a.$t("pages.brands.no_results")},null,8,["text"])):o("",!0)])}}});export{oe as default};
//# sourceMappingURL=brand-DnM5dhw6.js.map
