1import{r as d,g as Br,j as o,K as Or}from"./@react-core-DAiQxeIm.js";import{r as Fr,M as Nr,S as jr}from"./MainLayout-BG0Ff-G8.js";import{M as Lr}from"./MetaHeader-Dyrie7Xm.js";import{M as kr}from"./ManufacturerHeader-_mAm7cJ1.js";import{m as Dr,j as $r}from"./WrapperLayout-DW7P2zvO.js";import{p as Pr,q as Hr,j as Gr,c as Kr,s as Tr,t as Ur,l as U,u as W,v as Wr,w as Xr,x as Sr,r as Jr,y as Yr,z as Qr}from"./@form-validations-Clq_0QHa.js";import{r as wr}from"./_baseIsEqual-DGgo9Zmh.js";import{r as Zr}from"./get-7IcPvTrX.js";import{J as zr}from"./app-Cyh6yV_e.js";import{M as Vr}from"./ManufacturersGrid-7Tm1USd1.js";import{r as re}from"./renderComponents-PVdm_eq0.js";import"./MetricsEvents-ePHyF7G_.js";import"./useThemeVisuals-B1RdzApi.js";import"./useIsOnlineLightingShop-CZ-toRlz.js";import"./useModal-DijYsnd1.js";import"./FormatPrice-DHQ3sYHY.js";import"./BreadCrumbs-cpcB7NUU.js";import"./fetch-DIMp6ACm.js";import"./@phone-validation--Ker3J3T.js";import"./ImgIconTitleCard-D2JTeTud.js";function ee({sectionsRefs:r,navRef:e,extraDistance:n=0,navPrefix:i=""}){const[t,a]=d.useState(null),u=d.useRef(t);return d.useEffect(()=>{let s=null;const c=parseInt(Dr()),h=()=>{var g;if((g=r.current)==null||g.forEach(f=>{var l,p,_;if(f.current){const{top:x,height:y}=f.current.getBoundingClientRect(),v=c+n,q=(_=(p=(l=r==null?void 0:r.current)==null?void 0:l[0])==null?void 0:p.current)==null?void 0:_.getBoundingClientRect().top;x<v&&x>-(y/2)+v?s=f.current.id:q>v&&(s=null)}}),s!==u.current&&(a(s),u.current=s,e.current&&s)){const f=document.querySelector(`#${i}${s}`);if(f){const l=f.getBoundingClientRect(),p=e.current.getBoundingClientRect();l.right>p.right?e.current.scrollBy({left:l.right+l.width-p.right,behavior:"smooth"}):l.left<p.left&&e.current.scrollBy({left:l.left-p.left,behavior:"smooth"})}}};return window.addEventListener("scroll",h),h(),()=>{window.removeEventListener("scroll",h)}},[]),{activeSection:t}}var A,er;function te(){if(er)return A;er=1;function r(e,n,i,t){for(var a=-1,u=e==null?0:e.length;++a<u;){var s=e[a];n(t,s,i(s),e)}return t}return A=r,A}var M,tr;function ae(){if(tr)return M;tr=1;function r(e){return function(n,i,t){for(var a=-1,u=Object(n),s=t(n),c=s.length;c--;){var h=s[e?c:++a];if(i(u[h],h,u)===!1)break}return n}}return M=r,M}var R,ar;function ne(){if(ar)return R;ar=1;var r=ae(),e=r();return R=e,R}var I,nr;function se(){if(nr)return I;nr=1;var r=ne(),e=Pr();function n(i,t){return i&&r(i,t,e)}return I=n,I}var P,sr;function ie(){if(sr)return P;sr=1;var r=Hr();function e(n,i){return function(t,a){if(t==null)return t;if(!r(t))return n(t,a);for(var u=t.length,s=i?u:-1,c=Object(t);(i?s--:++s<u)&&a(c[s],s,c)!==!1;);return t}}return P=e,P}var S,ir;function ue(){if(ir)return S;ir=1;var r=se(),e=ie(),n=e(r);return S=n,S}var w,ur;function oe(){if(ur)return w;ur=1;var r=ue();function e(n,i,t,a){return r(n,function(u,s,c){i(a,u,t(u),c)}),a}return w=e,w}var E,or;function ce(){if(or)return E;or=1;var r=Gr(),e=wr(),n=1,i=2;function t(a,u,s,c){var h=s.length,g=h,f=!c;if(a==null)return!g;for(a=Object(a);h--;){var l=s[h];if(f&&l[2]?l[1]!==a[l[0]]:!(l[0]in a))return!1}for(;++h<g;){l=s[h];var p=l[0],_=a[p],x=l[1];if(f&&l[2]){if(_===void 0&&!(p in a))return!1}else{var y=new r;if(c)var v=c(_,x,p,a,u,y);if(!(v===void 0?e(x,_,n|i,c,y):v))return!1}}return!0}return E=t,E}var C,cr;function Er(){if(cr)return C;cr=1;var r=Kr();function e(n){return n===n&&!r(n)}return C=e,C}var B,lr;function le(){if(lr)return B;lr=1;var r=Er(),e=Pr();function n(i){for(var t=e(i),a=t.length;a--;){var u=t[a],s=i[u];t[a]=[u,s,r(s)]}return t}return B=n,B}var O,fr;function Cr(){if(fr)return O;fr=1;function r(e,n){return function(i){return i==null?!1:i[e]===n&&(n!==void 0||e in Object(i))}}return O=r,O}var F,hr;function fe(){if(hr)return F;hr=1;var r=ce(),e=le(),n=Cr();function i(t){var a=e(t);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(u){return u===t||r(u,t,a)}}return F=i,F}var N,pr;function he(){if(pr)return N;pr=1;function r(e,n){return e!=null&&n in Object(e)}return N=r,N}var j,gr;function pe(){if(gr)return j;gr=1;var r=Tr(),e=Ur(),n=U(),i=Xr(),t=Wr(),a=W();function u(s,c,h){c=r(c,s);for(var g=-1,f=c.length,l=!1;++g<f;){var p=a(c[g]);if(!(l=s!=null&&h(s,p)))break;s=s[p]}return l||++g!=f?l:(f=s==null?0:s.length,!!f&&t(f)&&i(p,f)&&(n(s)||e(s)))}return j=u,j}var L,mr;function ge(){if(mr)return L;mr=1;var r=he(),e=pe();function n(i,t){return i!=null&&e(i,t,r)}return L=n,L}var k,dr;function me(){if(dr)return k;dr=1;var r=wr(),e=Zr(),n=ge(),i=Sr(),t=Er(),a=Cr(),u=W(),s=1,c=2;function h(g,f){return i(g)&&t(f)?a(u(g),f):function(l){var p=e(l,g);return p===void 0&&p===f?n(l,g):r(f,p,s|c)}}return k=h,k}var D,vr;function de(){if(vr)return D;vr=1;function r(e){return function(n){return n==null?void 0:n[e]}}return D=r,D}var $,br;function ve(){if(br)return $;br=1;var r=Jr();function e(n){return function(i){return r(i,n)}}return $=e,$}var H,_r;function be(){if(_r)return H;_r=1;var r=de(),e=ve(),n=Sr(),i=W();function t(a){return n(a)?r(i(a)):e(a)}return H=t,H}var G,xr;function _e(){if(xr)return G;xr=1;var r=fe(),e=me(),n=Yr(),i=U(),t=be();function a(u){return typeof u=="function"?u:u==null?n:typeof u=="object"?i(u)?e(u[0],u[1]):r(u):t(u)}return G=a,G}var K,yr;function xe(){if(yr)return K;yr=1;var r=te(),e=oe(),n=_e(),i=U();function t(a,u){return function(s,c){var h=i(s)?r:e,g=u?u():{};return h(s,a,n(c,2),g)}}return K=t,K}var T,qr;function ye(){if(qr)return T;qr=1;var r=Qr(),e=xe(),n=Object.prototype,i=n.hasOwnProperty,t=e(function(a,u,s){i.c
1all(a,s)?a[s].push(u):r(a,s,[u])});return T=t,T}var qe=ye();const Ae=Br(qe),Me={ManufacturersGrid:Vr,Pills:Fr},Re=r=>d.useMemo(()=>re({data:r,componentType:Me}),[r]),Ar=({item:r})=>o.jsx(o.Fragment,{children:o.jsx("li",{className:"relative sm:w-[250px] h-[70px] p-3 sm:h-[100px] border border-borderColor rounded flex items-center justify-center hover:bg-gray-efl-50 duration-300",children:o.jsx("a",{href:r==null?void 0:r.link,className:"o-link-block w-full flex justify-center",title:r==null?void 0:r.name,children:o.jsx("img",{src:r==null?void 0:r.image_logo,alt:r==null?void 0:r.name,className:"w-full max-w-[140px] max-h-[25px] sm:max-w-[170px] sm:max-h-[50px]"})})},r==null?void 0:r.name)}),Mr="section_",Rr="navItem_",Ir="-";function We(){var x,y,v,q,X,J,Y,Q,Z,z,V;const{metas:r,manufacturers:e,customContents:n,subcategories:i,t,configuration:a}=Or().props,u=Re(n==null?void 0:n.ManufacturersMain01),s=d.useRef(),c=d.useRef(zr(Ir)).current,h=d.useRef(Ae((x=e==null?void 0:e.manufacturers)==null?void 0:x.list,({name:m})=>{const b=m.charAt(0).toUpperCase();return c!=null&&c.includes(b)?b:Ir})).current,g=d.useRef(Object.keys(h)).current,f=d.useRef(Object.fromEntries(Object.keys(h).map(m=>[m,d.useRef(null)]))),{activeSection:l}=ee({sectionsRefs:d.useRef(Object.values(f.current)),navRef:s,extraDistance:80,navPrefix:Rr}),p=(q=(v=(y=t==null?void 0:t.manufacturers_main)==null?void 0:y.seo_block)==null?void 0:v.description1)==null?void 0:q.replace("{shop_name}",`${a==null?void 0:a.shopName}`).replace(/{openSpanBold}/g,'<span class="font-semibold">').replace(/{closeSpanBold}/g,"</span>"),_=(Y=(J=(X=t==null?void 0:t.manufacturers_main)==null?void 0:X.seo_block)==null?void 0:J.description2)==null?void 0:Y.replace("{shop_name}",`${a==null?void 0:a.shopName}`).replace(/{openSpanBold}/g,'<span class="font-semibold">').replace(/{closeSpanBold}/g,"</span>");return o.jsx(o.Fragment,{children:o.jsxs(Nr,{children:[o.jsx(Lr,{metas:r}),o.jsx(kr,{data:e==null?void 0:e.header,showImage:!1}),o.jsxs("section",{className:"relative l-wrap pt-10 mb-10",children:[o.jsx(o.Fragment,{children:u&&u}),o.jsxs("div",{children:[o.jsx("p",{className:"text-xl sm:text-3xl mb-5",children:(Q=t==null?void 0:t.manufacturers_main)==null?void 0:Q.title}),o.jsx("div",{className:"sticky top-[var(--header-height-sticky)] left-0 z-30 bg-white py-2 shadow-sm",children:o.jsx(jr,{classContainer:"gap-4",reference:s,children:c.map(m=>{const b=`${Mr}${m}`;return o.jsx("li",{onClick:()=>{g.includes(m)&&$r(`${b}`,70)},id:`${Rr}${b}`,className:`border border-colorBorder rounded min-w-10 h-10 flex justify-center items-center snap-start ${`${b}`===l?"bg-gray-efl-950 text-white":"bg-white"} ${g.includes(m)?"cursor-pointer sm:hover:bg-gray-efl-950 sm:hover:text-white duration-300":"!bg-gray-efl-50 text-gray-efl-200"}`,children:m},`nav item ${m}`)})})}),o.jsx("ul",{className:"mt-10",children:Object.keys(h).map(m=>{const b=`${Mr}${m}`;return o.jsxs("li",{ref:f.current[m],className:"pb-12 sm:pb-14",id:b,children:[o.jsx("p",{className:"font-light text-gray-efl-200 text-xl sm:text-2xl mb-5",children:m}),o.jsx("ul",{className:"max-sm:grid-cols-2 grid sm:flex gap-x-4 sm:gap-x-8 gap-y-4 flex-wrap",children:h[m].map(rr=>o.jsx(Ar,{item:rr},`manufacturer ${rr.name}`))})]},b)})})]}),i&&!!i.length&&o.jsxs("div",{children:[o.jsx("p",{className:"text-xl sm:text-3xl mb-5",children:(Z=t==null?void 0:t.manufacturers_main)==null?void 0:Z.components}),o.jsx("ul",{className:"max-sm:grid-cols-2 grid sm:flex gap-x-4 sm:gap-x-8 gap-y-4 flex-wrap",children:i.map(m=>o.jsx(Ar,{item:m},`manufacturer ${m.name}`))})]})]}),o.jsx("div",{className:"bg-gray-efl-50 py-10",children:o.jsxs("div",{className:"l-wrap text-sm",children:[o.jsx("p",{className:"text-xl sm:text-3xl mb-4",children:(V=(z=t==null?void 0:t.manufacturers_main)==null?void 0:z.seo_block)==null?void 0:V.title}),o.jsx("p",{dangerouslySetInnerHTML:{__html:p}})," ",o.jsx("p",{dangerouslySetInnerHTML:{__html:_}})]})})]})})}export{We 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.