PageSourceSearch

https://alrosadiamond.ru/_nuxt/Ur7RgjQN.js

js alrosadiamond.ru collected 2026-10-09 21:59:24 UTC 3,547 bytes, 2 lines download raw bytes

1import{_ as N}from"./CgbqsdWJ.js";import{_ as $}from"./BAj_Ybtn.js";import{f as D,b as L,u as S,g as n,h as d,i as e,j as b,k as i,l as T,m as w,q as x,s as V,t as h,r as R,F as A,v as H,x as P,y as z,z as F,e as y,A as a}from"#entry";import{u as U}from"./DDQ8yZ4g.js";(function(){try{var o=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{};o.SENTRY_RELEASE={id:"d75fc5c7d2ec16b05c2af524e1fa5f420b077369"};var u=new o.Error().stack;u&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[u]="e9177c31-3e20-4515-bde3-c22d0391842a",o._sentryDebugIdIdentifier="sentry-dbid-e9177c31-3e20-4515-bde3-c22d0391842a")}catch(k){}})();const j={key:0,class:"catalog__main-banner main__section"},q={class:"main__picture"},O={class:"catalog__button-img picture__img_filter"},Y={class:"slider slider-collections mix-blend-multiply"},G={class:"slider__navigation"},J={class:"slider__button slider__button_prev",type:"button"},K={class:"slider__button slider__button_next",type:"button"},Z=D({__name:"CatalogHeader",props:{downBtn:{type:Boolean,default:!0},slider:{type:Boolean,default:!0}},setup(o){L().params.category;const{getHeaderBanner:u,getHeaderSlides:k}=S().$banners.catalog,p=y(()=>{const t=U().get("collections");return(t==null?void 0:t.options[0])||null}),v=y(()=>u(p.value)||null),m=y(()=>k(p.value)),C=y(()=>{var r,_;const t=(r=m.value[0])==null?void 0:r.picture,s=(_=p.value)==null?void 0:_.replace(/[^\p{L}\p{N}]/gu," ").toLowerCase();if(s){const l=m.value.find(f=>f.name.toLowerCase()===s);return(l==null?void 0:l.picture)||t}return t}),g=R(!1),B=()=>{var t;(t=document.getElementById("catalog"))==null||t.scrollIntoView({behavior:"smooth"})},E={nextEl:".slider__button_next",prevEl:".slider__button_prev"};return(t,s)=>{const r=N,_=$,l=T,f=P,I=V;return n(v)?(a(),d("section",j,[e("div",q,[n(v)?(a(),b(r,{key:0,picture:n(v).picture},null,8,["picture"])):(a(),b(_,{key:1,text:`Баннер для коллекции [${n(p)}] не загружен`,large:""},null,8,["text"]))]),o.downBtn?(a(),d("a",{key:0,class:"catalog__down",onClick:B},[s[1]||(s[1]=e("span",{class:"whitespace-nowrap"},"смотреть украшения",-1)),i(l,{height:"16",name:"down-arrow",width:"16"})])):w("",!0),o.slider?(a(),d("div",{key:1,class:x([{catalog__info_open:n(g)},"catalog__info"]),onClick:s[0]||(s[0]=c=>g.value=!n(g))},[e("div",null,[e("div",O,[n(m).length>0?(a(),b(r,{key:0,picture:n(C),class:"mix-blend-multiply"},null,8,["picture"])):(a(),b(_,{key:1,text:"Изображение для слайда не загружено"}))]),s[2]||(s[2]=e("p",{class:"catalog__button-title"},"Выбрать коллекцию",-1))])],2)):w("",!0),e("div",{class:x([{catalog__menu_open:n(g)},"catalog__menu"])},[e("div",Y,[i(I,null,{default:h(()=>[e("swiper-container",{navigation:E,speed:800,class:"swiper-container slider__collections",init:"","slides-per-view":"auto","watch-overflow":""},[(a(!0),d(A,null,H(n(m),c=>(a(),d("swiper-slide",{key:c.name,class:"slider-collections__good"},[i(f,{to:c.url,class:"slider-collections__good-img"},{default:h(()=>[i(r,{picture:c.picture},null,8,["picture"])]),_:2},1032,["to"]),i(f,{to:c.url,class:"slider-collections__good-link"},{default:h(()=>[z(F(c.name),1)]),_:2},1032,["to"])]))),128))])]),_:1}),e("div",G,[e("button",J,[i(l,{height:"20",name:"left-slider",width:"20"})]),e("button",K,[i(l,{height:"20",name:"right-slider",width:"20"})])])])],2)])):w("",!0)}}});export{Z as _};
2//# sourceMappingURL=Ur7RgjQN.js.map

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.