PageSourceSearch

https://www.reloom.me/assets/js/OurBrandsNewSection-D1K9NYJD.js

js reloom.me collected 2026-10-10 00:14:24 UTC 2,548 bytes, 1 lines download raw bytes

1import{k as A,f as L,A as T,n as I,l as o,q as i,C as a,Q as R,M as m,m as c,K as U,I as d,R as V,G as z,F as f,J as x,e as C,r as s}from"./vendor-C-KSgEPi.js";import{c as D,_ as F}from"./index-B50HZuRE.js";import{u as $}from"./useAsync-WI__ZReU.js";import{B as p}from"./BrandCard-BcfRLIS5.js";const q={class:"ob-new__inner"},G={class:"ob-new__header"},W=["aria-busy"],J=A({__name:"OurBrandsNewSection",props:{viewAllCta:{type:Boolean,default:!1}},setup(E){const v=["relief","zerobarracento","neycko-menswear"],w=v.length,{data:O,loading:b,error:S}=$(()=>D());L(S,t=>{t&&console.warn("[OurBrandsNewSection] fetchBrands failed:",t)});const N=C(()=>{const t=new Map((O.value?.items??[]).map(e=>[e.slug,e]));return v.map(e=>t.get(e)).filter(e=>!!e)}),M=C(()=>Array.from({length:w},(t,e)=>N.value[e]??null)),u=s(null),r=s(null),h=s(0),y=s(0),g=s(0),B=s(0);function k(){if(!u.value||!r.value)return;const t=u.value.getBoundingClientRect(),e=r.value.getBoundingClientRect();g.value=Math.max(0,e.left-t.left),B.value=Math.max(0,e.right-t.left);const n=r.value.querySelector(".brand-card__img-wrap");if(n){const l=n.getBoundingClientRect();h.value=Math.max(0,l.top-t.top),y.value=Math.max(0,l.bottom-t.top)}}let _=null;return T(()=>{k(),_=new ResizeObserver(k),_.observe(document.documentElement)}),I(()=>_?.disconnect()),(t,e)=>(o(),i("section",{ref_key:"sectionEl",ref:u,class:"ob-new","aria-label":"Brands new to Reloom"},[e[2]||(e[2]=a("div",{class:"ob-new__vline","aria-hidden":"true"},null,-1)),a("div",{class:"ob-new__hline ob-new__hline--top",style:R({top:h.value-3+"px",width:B.value+"px"}),"aria-hidden":"true"},null,4),a("div",{class:"ob-new__hline ob-new__hline--bot",style:R({top:y.value-3+"px",left:g.value+"px"}),"aria-hidden":"true"},null,4),a("div",q,[a("div",G,[e[1]||(e[1]=a("h2",{class:"ob-new__title"},[m(" BRANDS "),a("span",{class:"ob-new__title--yellow"},"NEW"),a("br"),m(" TO RELOOM ")],-1)),E.viewAllCta?(o(),c(d(V),{key:0,to:"/our-brands",class:"ob-new__view-all"},{default:U(()=>[...e[0]||(e[0]=[m(" View all brands › ",-1)])]),_:1})):z("",!0)]),a("div",{ref_key:"cardsEl",ref:r,class:"ob-new__cards","aria-busy":d(b)||void 0},[d(b)?(o(!0),i(f,{key:0},x(d(w),n=>(o(),c(p,{key:`skel-${n}`,variant:"placeholder","on-dark":""}))),128)):(o(!0),i(f,{key:1},x(M.value,(n,l)=>(o(),i(f,{key:`slot-${l}`},[n?(o(),c(p,{key:0,brand:n,to:`/brands/${n.slug}`,"on-dark":""},null,8,["brand","to"])):(o(),c(p,{key:1,variant:"placeholder","on-dark":""}))],64))),128))],8,W)])],512))}}),P=F(J,[["__scopeId","data-v-63515ab1"]]);export{P as O};

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.