1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5122],{77747:function(e,s,i){"use strict";i.d(s,{default:function(){return m}});var t=i(57437),r=i(2265),n=i(27648),l=i(99376),a=i(59960);let c={some:0,all:1};function o(e){let{platform:s,icon:i,width:r,height:n}=e,l=r||37,a=n||37;if(i)return(0,t.jsx)("img",{src:i,alt:s,width:l,height:a,className:"icon icon--".concat(s),"aria-hidden":"true",style:{display:"inline-block",width:l,height:a,objectFit:"contain"}});switch(s){case"instagram":return(0,t.jsx)("svg",{className:"icon icon--instagram",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:l,height:a,children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.23 3.492c-.84-.037-1.096-.046-3.23-.046-2.144 0-2.39.01-3.238.055-.776.025-1.197.156-1.481.26-.37.144-.637.316-.916.596-.28.28-.45.546-.596.916-.104.284-.235.705-.26 1.48C3.5 7.59 3.49 7.845 3.49 10c0 2.145.01 2.39.056 3.239.025.776.156 1.197.26 1.481.145.37.317.636.597.916.28.28.546.45.916.596.284.104.705.235 1.48.26.85.045 1.095.055 3.24.055 2.134 0 2.39-.01 3.23-.055.784-.025 1.205-.156 1.49-.26.37-.145.636-.317.916-.596.28-.28.45-.546.596-.916.104-.284.235-.705.26-1.481.045-.849.055-1.094.055-3.239 0-2.155-.01-2.41-.055-3.247-.025-.776-.156-1.196-.26-1.48-.145-.37-.317-.637-.596-.916-.28-.28-.546-.45-.916-.596-.285-.104-.706-.235-1.49-.26zm-3.24-1.5c2.17 0 2.43.009 3.283.054.79.036 1.326.166 1.797.355.486.196.9.46 1.312.872.412.412.676.826.872 1.312.19.47.32 1.007.356 1.797.045.854.054 1.114.054 3.284 0 2.17-.009 2.43-.054 3.283-.036.79-.167 1.326-.356 1.797-.196.486-.46.9-.872 1.312a3.539 3.539 0 01-1.312.872c-.47.19-1.007.32-1.797.356-.854.045-1.113.054-3.283.054-2.18 0-2.44-.009-3.284-.054-.79-.036-1.326-.16
17-1.797-.356a3.539 3.539 0 01-1.312-.872 3.539 3.539 0 01-.872-1.312c-.19-.47-.32-1.007-.355-1.797-.045-.854-.055-1.113-.055-3.283 0-2.17.01-2.43.055-3.284.036-.79.166-1.326.355-1.797.196-.486.46-.9.872-1.312a3.539 3.539 0 011.312-.872c.47-.19 1.007-.32 1.797-.355C7.56 2 7.82 1.992 10 1.992zm0 3.336a4.672 4.672 0 100 9.344 4.672 4.672 0 000-9.344zm0 7.706a3.034 3.034 0 110-6.068 3.034 3.034 0 010 6.068zm4.858-7.883a1.092 1.092 0 11-2.183 0 1.092 1.092 0 012.183 0z",fill:"currentColor"})});case"youtube":return(0,t.jsx)("svg",{className:"icon icon--youtube",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:l,height:a,children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.16 5.37a2.2 2.2 0 00-1.55-1.56C15.12 3.44 10 3.44 10 3.44s-5.12 0-6.61.37a2.2 2.2 0 00-1.55 1.56C1.44 6.86 1.44 10 1.44 10s0 3.14.4 4.63a2.2 2.2 0 001.55 1.56c1.49.37 6.61.37 6.61.37s5.12 0 6.61-.37a2.2 2.2 0 001.55-1.56c.4-1.49.4-4.63.4-4.63s0-3.14-.4-4.63zM8.16 12.86V7.14L13.08 10l-4.92 2.86z",fill:"currentColor"})});case"linkedin":return(0,t.jsx)("svg",{className:"icon icon--linkedin",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:l,height:a,children:(0,t.jsx)("path",{d:"M5.77 17.89H2.44V7.17h3.33v10.72zM4.1 5.71a1.93 1.93 0 110-3.86 1.93 1.93 0 010 3.86zm13.79 12.18h-3.31v-5.21c0-1.24-.02-2.84-1.73-2.84-1.73 0-2 1.35-2 2.75v5.3H7.54V7.17h3.18v1.46h.05a3.49 3.49 0 013.14-1.73c3.36 0 3.98 2.21 3.98 5.09v5.9z",fill:"currentColor"})});default:return null}}function d(){return(0,t.jsxs)("svg",{width:"81",height:"31",viewBox:"0 0 81 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M16.0368 10.5589H15.9526C14.4789 8.58174 12.4158 7.57214 9.72105 7.57214C3.53158 7.57214 0.5 12.9567 0.5 18.6357C0.5 24.7774 3.40526 30.6668 10.2684 30.6668C12.7947 30.6668 14.9 29.5731 16.2895 27.5118H16.3737V30.0358H23.1947V0.00012207H16.0368V10.5589ZM12.0368 25.1981C8.75263 25.1981 7.65789 21.8748 7.65789 18.8881C7.65789 16.1117 8.75263 13.0408 12.0368 13.0408C15.1526 13.0408 16.2895 15.9434 16.2895 19.0984C16.2895 21.8748 15.5316 25.1981 12.0368 25.1981Z",fill:"#C2BFBA"}),(0,t.jsx)("path",{d:"M54.2684 7.57214C51.3211 7.57214 49.1737 8.79208 47.4474 11.1057C46.2684 8.45554 43.8263 7.57214 41.0895 7.57214C38.3526 7.57214 36.1211 9.00241 34.8158 11.1899H34.7316V8.20314H27.7842V30.0358H34.9421V19.3929C34.9421 14.9338 36.0368 13.4615 38.6053 13.4615C40.5421 13.4615 41.3 15.06 41.3 17.6261V30.0358H48.4579V19.3508C48.4579 15.8172 48.7526 13.4615 51.8263 13.4615C53.6789 13.4615 54.8158 14.8497 54.8158 17.2054V30.0358H61.9737V16.9951C61.9737 12.8305 61.2158 7.57214 54.2684 7.57214Z",fill:"#C2BFBA"}),(0,t.jsx)("path",{d:"M78.5632 5.04813C79.1947 5.04813 79.8263 5.0902 80.5 5.17433V0.126322C79.3632 0.0842556 78.1842 0.00012207 77.0474 0.00012207C70.9421 0.00012207 68.7526 1.93519 68.7526 8.20314H65.3V12.8305H68.7526V30.0358H75.9105V12.8305H80.2053V8.20314H75.9105V7.23561C75.9105 5.25847 76.9211 5.04813 78.5632 5.04813Z",fill:"#C2BFBA"})]})}function h(){return(0,t.jsx)("svg",{width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M6.71667 0.168213L6.71667 13.1682M0 6.66821H6.71667L13 6.66821",stroke:"#C2BFBA",strokeWidth:"1.5"})})}function u(){return(0,t.jsx)("svg",{width:"13",height:"3",viewBox:"0 0 13 3",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M0 1.66821L6.71667 1.66821L13 1.66821",stroke:"#C2BFBA",strokeWidth:"1.5"})})}function m(e){var s;let{content:i}=e,[m,x]=(0,r.useState)(new Set),p=new Date().getFullYear(),g=(0,r.useRef)(null),v=function(e){let{root:s,margin:i,amount:t,once:n=!1,initial:l=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[o,d]=(0,r.useState)(l);return(0,r.useEffect)(()=>{if(!e.current||n&&o)return;let r={root:s&&s.current||void 0,margin:i,amount:t};return function(e,s){let{root:i,margin:t,amount:r="some"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(0,a.I)(e),l=new WeakMap,o=new IntersectionObserver(e=>
1{e.forEach(e=>{let i=l.get(e.target);if(!!i!==e.isIntersecting){if(e.isIntersecting){let i=s(e.target,e);"function"==typeof i?l.set(e.target,i):o.unobserve(e.target)}else"function"==typeof i&&(i(e),l.delete(e.target))}})},{root:i,rootMargin:t,threshold:"number"==typeof r?r:c[r]});return n.forEach(e=>o.observe(e)),()=>o.disconnect()}(e.current,()=>(d(!0),n?void 0:()=>d(!1)),r)},[s,e,i,n,t]),o}(g,{once:!0,margin:"-80px"}),f=(0,l.usePathname)(),_=i||{},{logo:j,tagline:w,socialIconsHeight:N,socialIconsWidth:b,backgroundColor:k,columns:C,copyright:y,termsLink:L,brandText:M,socialSectionTitle:H}=_,A=_.socialLinks||[],V=e=>{x(s=>{let i=new Set(s);return i.has(e)?i.delete(e):i.add(e),i})},B=Array.isArray(A)?A:[];return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{id:"shopify-section-sections--25921099399479__footer",className:"shopify-section shopify-section-group-footer-group",children:(0,t.jsxs)("footer",{ref:g,className:"footer color-scheme-2 gradient section-sections--25921099399479__footer-padding",children:[(0,t.jsxs)("div",{className:"footer__content-top page-width",children:[(0,t.jsxs)("div",{className:"footer__blocks-wrapper grid grid--1-col grid--2-col grid--4-col-tablet footerMobSec","data-cascade":"",children:[(0,t.jsx)("div",{className:"footer-block grid__item scroll-trigger animate--slide-in footerMobPad".concat(v?"":" scroll-tr
1igger--offscreen"),"data-cascade":"",style:{"--animation-order":0},children:(0,t.jsxs)("div",{className:"footer-block__details-content footer-block-image ",children:[(0,t.jsxs)("div",{className:"footer-block__image-wrapper",style:{maxWidth:"min(100%, 550px)"},children:[(0,t.jsxs)(n.default,{href:"/",children:[j&&(0,t.jsx)("img",{src:j,alt:"Brand Logo",className:"footer-block__brand-logo"}),!j&&(0,t.jsx)(d,{})]}),w&&(0,t.jsx)("div",{className:"logo_bottom_text",children:(0,t.jsx)("p",{children:w})})]}),B.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h4",{className:"social-title",children:H||"Social"}),(0,t.jsx)("div",{className:"footer__social-links",children:(0,t.jsx)("ul",{className:"list-unstyled list-social footer__list-social",role:"list",children:B.map((e,s)=>(0,t.jsx)("li",{className:"list-social__item",children:(0,t.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer","aria-label":e.platform,className:"link list-social__link",children:(0,t.jsx)(o,{platform:e.platform,icon:e.icon,width:b,height:N})})},s))})})]})]})}),null==C?void 0:C.map((e,s)=>{var i;let r=m.has(s);return(0,t.jsxs)("div",{className:"footer-block grid__item footer-block--menu scroll-trigger animate--slide-in".concat(r?" active":"").concat(v?"":" scroll-tr
1igger--offscreen"),"data-cascade":"",style:{"--animation-order":s+1},children:[(0,t.jsxs)("h2",{className:"footer-block__heading inline-richtext",children:[(0,t.jsx)("a",{href:"#",title:e.title,children:e.title}),(0,t.jsx)("span",{className:"minus-plus hideActive",onClick:()=>V(s),children:(0,t.jsx)(h,{})})," ",(0,t.jsx)("span",{className:"minus-plus showActive",onClick:()=>V(s),children:(0,t.jsx)(u,{})})]}),(0,t.jsx)("ul",{className:"footer-block__details-content list-unstyled",children:null===(i=e.links)||void 0===i?void 0:i.map((e,s)=>(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{href:e.url||"#",className:"link link--text list-menu__item list-menu__item--link",style:{textDecoration:e.url&&f===e.url?"underline":"none"},children:e.text})},s))})]},s)})]}),(0,t.jsx)("div",{className:"footer-block--newsletter scroll-trigger animate--slide-in scroll-trigger--offscreen","data-cascade":""})]}),(0,t.jsxs)("div",{className:"footer__content-bottom scroll-trigger animate--slide-in".concat(v?"":" scroll-trigger--offscreen"),"data-cascade":"",style:{"--animation-order":(null!==(s=null==C?void 0:C.length)&&void 0!==s?s:0)+1},children:[(0,t.jsxs)("div",{className:"footer__content-bottom-wrapper page-width",children:[(0,t.jsx)("div",{className:"footer__column footer__localization isolate"}),(0,t.jsx)("div",{className:"footer__column footer__column--info"})]}),(0,t.jsx)("div",{className:"footer__content-bottom-wrapper page-width footerCopyText",children:(0,t.jsxs)("div",{className:"footer__copyright caption",children:[(0,t.jsxs)("small",{className:"copyright__content copyright__desktop",children:["\xa9 ",p," \xa0"," ",(0,t.jsx)("p",{children:y||"DMF Lighting. All Rights Reserved."})," ","\xa0 \xa0 \xa0 | \xa0 \xa0 \xa0"," ",(null==L?void 0:L.url)&&(0,t.jsx)("a",{href:L.url,target:"_blank",rel:"noopener noreferrer",children:L.text||"Terms and Conditions"})]}),(0,t.jsxs)("small",{className:"copyright__content copyright__mobile",children:["\xa9 ",p," \xa0"," ",(0,t.jsx)("p",{children:y||"DMF Lighting. All Rights Reserved."}),(0,t.jsx)("br",{}),(null==L?void 0:L.url)&&(0,t.jsx)("a",{href:L.url,target:"_blank",rel:"noopener noreferrer",children:L.text||"Terms and Conditions"})]}),(0,t.jsx)("span",{className:"website-link-right",children:M||"DMF Lighting"})]})})]})]})})})}},38436:function(e,s,i){"use strict";i.d(s,{default:function(){return g}});var t=i(57437),r=i(2265),n=i(27648),l=i(99376),a=i(59010),c=i(40823),o=i(99385),d=i(16822);function h(e){let{item:s,setActiveMenu:i,closeTimerRef:r}=e;return s.has_mega_menu?(0,t.jsx)(u,{...e}):(0,t.jsx)("li",{onMouseEnter:()=>{r.current&&(clearTimeout(r.current),r.current=null),i(null)},children:(0,t.jsx)(n.default,{href:s.url||"#",className:"header__menu-item list-menu__item link link--text focus-inset",children:(0,t.jsx)("span",{children:s.label})})})}function u(e){var s,i,l,a,c,o,d,h;let{item:u,activeMenu:m,setActiveMenu:x,menuKey:p,closeTimerRef:g,isSwitching:v}=e,[f,_]=(0,r.useState)([]),j=m===p,w=(0,r.useMemo)(()=>{var e,s;let i=[],t=null!==(e=u.children)&&void 0!==e?e:[];for(let e of f){let r=t[e];if(!r)break;i.push(r),t=null!==(s=r.children)&&void 0!==s?s:[]}return i},[u.children,f]),N=w[w.length-1],b=N?N.hoverImageUrl||null:u.hoverImageUrl||null,k=null!==(c=null==N?void 0:N.label)&&void 0!==c?c:u.label,C=[null!==(o=u.children)&&void 0!==o?o:[],null!==(d=null===(s=w[0])||void 0===s?void 0:s.children)&&void 0!==d?d:[],null!==(h=null===(i=w[1])||void 0===i?void 0:i.children)&&void 0!==h?h:[]],y=w.length,L=(null===(l=w[w.length-1])||void 0===l?void 0:l.url)||(null===(a=w[w.length-1])||void 0===a?void 0:a.href)||u.url||"#",M=(e,s)=>0===e.length?null:(0,t.jsx)("ul",{className:"mm5__list mm5__list--".concat(s),role:"list",children:e.map((e,i)=>{var r,l;let a=y>=s&&f[s-1]===i,c=(null!==(l=null===(r=e.children)||void 0===r?void 0:r.length)&&void 0!==l?l:0)>0,o=()=>_(e=>[...e.slice(0,s-1),i]);return(0,t.jsx)("li",{className:"mm5__item",children:(0,t.jsxs)(n.default,{href:e.url||e.href||"#",className:"mm5__link".concat(a?" mm5__link--active":""),onMouseEnter:o,onFocus:o,...e.external?{target:"_blank",rel:"noopener noreferrer"}:{},children:[(0,t.jsx)("span",{className:"mm5__label",children:e.label}),c&&(0,t.jsx)("span",{className:"mm5__chevron","aria-hidden":"true",children:"âº"})]})},e._key||"l".concat(s,"-").concat(i))})});return(0,t.jsx)("li",{children:(0,t.jsx)("header-menu",{children:(0,t.jsxs)("details",{className:"mega-menu".concat(v&&j?" mega-switching":""),onMouseEnter:()=>{g.current&&(clearTimeout(g.current),g.current=null),x(p),_([])},open:j,children:[(0,t.jsx)("summary",{className:"header__menu-item list-menu__item link focus-inset",role:"button","aria-expanded":j,children:(0,t.jsx)(n.default,{href:u.url||"#",className:"products-menu-item",children:u.label})}),(0,t.jsx)("div",{className:"mega-menu__content color-scheme-1 gradient motion-reduce global-settings-popup",tabIndex:-1,
1children:(0,t.jsxs)("div",{className:"main-menu-container page-width logged-user mm5 mm5--depth-".concat(y),"data-item-label":u.label,children:[M(C[0],1),M(C[1],2),M(C[2],3),b&&(0,t.jsx)(n.default,{href:L,className:"mm5__media mm5__media--w".concat(y>=3?1:2),children:(0,t.jsx)("img",{src:b,alt:k,className:"mm5__media-img"})})]})})]})})})}function m(e){let{isOpen:s,onToggle:i,onClose:l,items:c,myAccountNavigation:o}=e,[d,h]=(0,r.useState)(""),{user:u,isLoading:m}=(0,a.a)(),x=!m&&!!u,p=e=>{let s=e.currentTarget.closest("details");s&&s.removeAttribute("open")};return(0,r.useEffect)(()=>(document.body.style.overflow=s?"hidden":"",()=>{document.body.style.overflow=""}),[s]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"menu-drawer-overlay".concat(s?" active":""),onClick:l,"aria-hidden":"true"}),(0,t.jsx)("header-drawer",{"data-breakpoint":"tablet",children:(0,t.jsxs)("details",{id:"Details-menu-drawer-container",className:"menu-drawer-container".concat(s?" is-open":""),open:s||void 0,children:[(0,t.jsx)("summary",{className:"header__icon header__icon--menu header__icon--summary link focus-inset","aria-label":"Menu",id:"header__icon--menu",role:"button","aria-expanded":s,"aria-controls":"menu-drawer",onClick:e=>{e.preventDefault(),i()},children:(0,t.jsxs)("span",{children:[(0,t.jsx)("svg",{width:"27",height:"14",viewBox:"0 0 27 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M0 1H27M0 8H27M0 15H27",stroke:"#292521",strokeWidth:"1.5"})}),(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:"icon icon-close",fill:"none",viewBox:"0 0 18 17",children:(0,t.jsx)("path",{d:"M.865 15.978a.5.5 0 00.707.707l7.433-7.431 7.579 7.282a.501.501 0 00.846-.37.5.5 0 00-.153-.351L9.712 8.546l7.417-7.416a.5.5 0 10-.707-.708L8.991 7.853 1.413.573a.5.5 0 10-.693.72l7.563 7.268-7.418 7.417z",fill:"currentColor"})})]})}),(0,t.jsx)("div",{id:"menu-drawer",className:"gradient menu-drawer motion-reduce color-scheme-1",children:(0,t.jsx)("div",{className:"menu-drawer__inner-container",children:(0,t.jsx)("div",{className:"menu-drawer__navigation-container",children:(0,t.jsxs)("nav",{className:"menu-drawer__navigation",children:[(0,t.jsxs)("ul",{className:"menu-drawer__menu has-submenu list-menu",role:"list",children:[(0,t.jsxs)("div",{className:"menu-close close-menu",id:"menu-close",children:["Menu",(0,t.jsx)("span",{className:"menu-close-btn-icon",onClick:l,children:(0,t.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{width:"36",height:"36",rx:"18",fill:"#EFEBE6"}),(0,t.jsx)("path",{d:"M13.056 13.7506L22.2484 22.943M12.9028 23.0962L17.6522 18.3468L22.0952 13.9038",stroke:"#292521",strokeWidth:"1.5"})]})})]}),x&&(0,t.jsx)("form",{action:"/search",method:"get",role:"search",className:"search search-modal__form",onSubmit:e=>{e.preventDefault(),d.trim()&&(window.location.href="/search?q=".concat(encodeURIComponent(d)))},children:(0,t.jsxs)("div",{className:"field",children:[(0,t.jsx)("input",{className:"search__input field__input",id:"search__input",type:"search",name:"q",value:d,onChange:e=>h(e.target.value),placeholder:"Search",autoCorrect:"off",autoComplete:"off",autoCapitalize:"off",spellCheck:!1}),(0,t.jsx)("label",{className:"field__label",htmlFor:"search__input",children:"Search"}),(0,t.jsxs)("button",{type:"button",id:"drawer_reset",className:"drawer_reset field__button",onClick:()=>h(""),children:["Clear",(0,t.jsx)("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M0.7494 1.2506L9.94179 10.443M0.596194 10.5962L5.34559 5.84679L9.78858 1.40381",stroke:"#292521",strokeWidth:"1.5"})})]}),(0,t.jsx)("button",{className:"search__button field__button","aria-label":"Search",type:"submit",children:(0,t.jsxs)("svg",{className:"icon icon-search",width:"19",height:"20",viewBox:"0 0 19 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M7.81558 14.6301C11.5746 14.6301 14.6312 11.5715 14.6312 7.81453C14.6302 4.05863 11.5746 1 7.81558 1C4.05549 1 1 4.05863 1 7.81453C1 11.5715 4.05863 14.6301 7.81558 14.6301ZM7.81558 2.00469C11.0203 2.00469 13.6267 4.61109 13.6267 7.81579C13.6257 11.0196 11.0192 13.6258 7.81558 13.6258C4.61088 13.6258 2.00448 11.
10194 2.00448 7.81474C2.00448 4.61088 4.61088 2.00469 7.81558 2.00469Z",fill:"#5A5857",stroke:"#5A5857",strokeWidth:"0.25"}),(0,t.jsx)("path",{d:"M13.001 13.7991L13.7269 13.1046L18.7894 18.3055L18.0635 19L13.001 13.7991Z",fill:"#5A5857",stroke:"#5A5857",strokeWidth:"0.25"})]})})]})}),x&&o&&o.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{children:(0,t.jsxs)("details",{id:"Details-menu-drawer-my-account",children:[(0,t.jsxs)("summary",{id:"HeaderDrawer-my-account",className:"menu-drawer__menu-item list-menu__item link link--text focus-inset",role:"button","aria-expanded":"false","aria-controls":"link-my-account",children:[(0,t.jsx)("span",{className:"products-menu-item",children:"My Account"}),(0,t.jsxs)("svg",{className:"icon-arrow",width:"23",height:"14",viewBox:"0 0 23 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M15.0375 1.005L21.3996 7.00001L15.0375 1.005Z",fill:"#292521"}),(0,t.jsx)("path",{d:"M15.0375 12.995L21.3996 7.00001L15.0375 12.995Z",fill:"#292521"}),(0,t.jsx)("path",{d:"M0.600586 7.00001H21.3996M21.3996 7.00001L15.0375 1.005M21.3996 7.00001L15.0375 12.995",stroke:"#292521",strokeWidth:"1.5",strokeMiterlimit:"10"})]}),(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",className:"icon icon-caret",viewBox:"0 0 10 6",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.354.646a.5.5 0 00-.708 0L5 4.293 1.354.646a.5.5 0 00-.708.708l4 4a.5.5 0 00.708 0l4-4a.5.5 0 000-.708z",fill:"currentColor"})})]}),(0,t.jsx)("div",{id:"link-my-account",className:"menu-drawer__submenu has-submenu gradient motion-reduce",tabIndex:-1,children:(0,t.jsxs)("div",{className:"menu-drawer__inner-submenu",children:[(0,t.jsxs)("div",{className:"menu-drawer-top",children:[(0,t.jsxs)("button",{className:"menu-drawer__close-button link link--text focus-inset","aria-expanded":"true",onClick:p,children:[(0,t.jsxs)("svg",{className:"icon-arrow",width:"59",height:"26",viewBox:"0 0 59 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M0.0467162 13.0466L4.16485 17.1649L4.47998 16.8499L0.645959 13L4.47998 9.15012L4.16485 8.83512L-1.95503e-05 13L0.0467162 13.0466Z",fill:"#292521",stroke:"#292521"}),(0,t.jsx)("path",{d:"M16.712 18V8.76H19.428C21.29 8.76 22.214 9.53 22.214 11.112C22.214 12.092 21.808 12.75 20.982 13.086V13.128C22.074 13.422 22.62 14.178 22.62 15.41C22.62 17.146 21.696 18 19.82 18H16.712ZM17.832 12.722H19.33C20.534 12.722 21.08 12.26 21.08 11.238C21.08 10.23 20.534 9.768 19.33 9.768H17.832V12.722ZM17.832 16.992H19.722C20.926 16.992 21.458 16.488 21.458 15.368C21.458 14.234 20.926 13.73 19.722 13.73H17.832V16.992ZM24.482 18L27.226 8.76H28.542L31.286 18H30.124L29.424 15.564H26.316L25.616 18H24.482ZM26.596 14.556H29.144L27.898 10.188H27.842L26.596 14.556ZM36.5359 18.168C34.3379 18.168 33.3579 16.67 33.3579 13.38C33.3579 10.09 34.3379 8.592 36.5359 8.592C38.3419 8.592 39.3219 9.614 39.6159 11.77H38.4399C38.2159 10.328 37.5999 9.642 36.5359 9.642C35.1499 9.642 34.5199 10.804 34.5199 13.38C34.5199 15.956 35.1499 17.118 36.5359 17.118C37.5999 17.118 38.2159 16.432 38.4399 14.99H39.6159C39.3219 17.146 38.3419 18.168 36.5359 18.168ZM42.2759 18V8.76H43.3959V13.142H43.4519L46.8399 8.76H48.1839L44.6839 13.254L48.3799 18H46.9799L43.4519 13.45H43.3959V18H42.2759Z",fill:"black"})]}),"My Account"]}),(0,t.jsx)("button",{className:"close-menu",onClick:l,children:(0,t.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M0.749023 0.749512L10.2495 10.2495",stroke:"#292521",strokeWidth:"1.5"}),(0,t.jsx)("path",{d:"M10.2505 0.749512L0.750488 10.2495",stroke:"#292521",strokeWidth:"1.5"})]})})]}),(0,t.jsx)("ul",{className:"menu-drawer__menu list-menu",role:"list",tabIndex:-1,children:o.map((e,s)=>(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{href:e.url||e.href||"#",className:"menu-drawer__menu-item link link--text list-menu__item focus-inset",onClick:l,children:e.label})},e.id||"account-nav-".concat(s)))})]})})]})}),(0,t.jsx)("li",{className:"menu-drawer__account-nav-divider","aria-hidden":"true"})]}),c.map((e,s)=>{var i,r,a,c;return e.has_mega_menu&&Array.isArray(e.children)&&e.children.length>0?(0,t.jsx)("li",{children:(0,t.jsxs)("details",{id:"Details-menu-drawer-menu-item-".concat(s),children:[(0,t.jsxs)("summary",{id:"HeaderDrawer-".concat(null===(i=e.label)||void 0===i?void 0:i.toLowerCase().replace(/\s+/g,"-")),className:"menu-drawer__menu-item list-menu__item link link--text focus-inset",role:"button","aria-expanded":"false","aria-controls":"link-".concat(null===(r=e.label)||void 0===r?void 0:r.toLowerCase().replace(/\s+/g,"-")),children:[(0,t.jsx)(n.default,{href:e.url||"#",className:"products-menu-item",onClick:e=>{e.stopPropagation(),l()},children:e.label}),(0,t.jsxs)("svg",{className:"icon-arrow",width:"23",height:"14",viewBox:"0 0 23 14",f
1ill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M15.0375 1.005L21.3996 7.00001L15.0375 1.005Z",fill:"#292521"}),(0,t.jsx)("path",{d:"M15.0375 12.995L21.3996 7.00001L15.0375 12.995Z",fill:"#292521"}),(0,t.jsx)("path",{d:"M0.600586 7.00001H21.3996M21.3996 7.00001L15.0375 1.005M21.3996 7.00001L15.0375 12.995",stroke:"#292521",strokeWidth:"1.5",strokeMiterlimit:"10"})]}),(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",className:"icon icon-caret",viewBox:"0 0 10 6",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.354.646a.5.5 0 00-.708 0L5 4.293 1.354.646a.5.5 0 00-.708.708l4 4a.5.5 0 00.708 0l4-4a.5.5 0 000-.708z",fill:"currentColor"})})]}),(0,t.jsx)("div",{id:"link-".concat(null===(a=e.label)||void 0===a?void 0:a.toLowerCase().replace(/\s+/g,"-")),className:"menu-drawer__submenu has-submenu gradient motion-reduce",tabIndex:-1,children:(0,t.jsxs)("div",{className:"menu-drawer__inner-submenu",children:[(0,t.jsxs)("div",{className:"menu-drawer-top",children:[(0,t.jsxs)("button",{className:"menu-drawer__close-button link link--text focus-inset","aria-expanded":"true",onClick:p,children:[(0,t.jsxs)("svg",{className:"icon-arrow",width:"59",height:"26",viewBox:"0 0 59 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M0.0467162 13.0466L4.16485 17.1649L4.47998 16.8499L0.645959 13L4.47998 9.15012L4.16485 8.83512L-1.95503e-05 13L0.0467162 13.0466Z",fill:"#292521",stroke:"#292521"}),(0,t.jsx)("path",{d:"M16.712 18V8.76H19.428C21.29 8.76 22.214 9.53 22.214 11.112C22.214 12.092 21.808 12.75 20.982 13.086V13.128C22.074 13.422 22.62 14.178 22.62 15.41C22.62 17.146 21.696 18 19.82 18H16.712ZM17.832 12.722H19.33C20.534 12.722 21.08 12.26 21.08 11.238C21.08 10.23 20.534 9.768 19.33 9.768H17.832V12.722ZM17.832 16.992H19.722C20.926 16.992 21.458 16.488 21.458 15.368C21.458 14.234 20.926 13.73 19.722 13.73H17.832V16.992ZM24.482 18L27.226 8.76H28.542L31.286 18H30.124L29.424 15.564H26.316L25.616 18H24.482ZM26.596 14.556H29.144L27.898 10.188H27.842L26.596 14.556ZM36.5359 18.168C34.3379 18.168 33.3579 16.67 33.3579 13.38C33.3579 10.09 34.3379 8.592 36.5359 8.592C38.3419 8.592 39.3219 9.614 39.6159 11.77H38.4399C38.2159 10.328 37.5999 9.642 36.5359 9.642C35.1499 9.642 34.5199 10.804 34.5199 13.38C34.5199 15.956 35.1499 17.118 36.5359 17.118C37.5999 17.118 38.2159 16.432 38.4399 14.99H39.6159C39.3219 17.146 38.3419 18.168 36.5359 18.168ZM42.2759 18V8.76H43.3959V13.142H43.4519L46.8399 8.76H48.1839L44.6839 13.254L48.3799 18H46.9799L43.4519 13.45H43.3959V18H42.2759Z",fill:"black"})]}),e.label]}),(0,t.jsx)("button",{className:"close-menu",onClick:l,children:(0,t.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M0.749023 0.749512L10.2495 10.2495",stroke:"#292521",strokeWidth:"1.5"}),(0,t.jsx)("path",{d:"M10.2505 0.749512L0.750488 10.2495",stroke:"#292521",strokeWidth:"1.5"})]})})]}),(0,t.jsx)("ul",{className:"menu-drawer__menu list-menu",role:"list",tabIndex:-1,children:e.children.map((e,s)=>Array.isArray(e.children)&&e.children.length>0?(0,t.jsx)("li",{children:(0,t.jsxs)("details",{className:"level-2-details",children:[(0,t.jsx)("summary",{className:"menu-drawer__menu-item link link--text list-menu__item focus-inset level-2-parent",role:"button","aria-expanded":"false",children:(0,t.jsx)(n.default,{href:e.url||"#",onClick:e=>e.stopPropagation(),children:e.label})}),(0,t.jsx)("div",{className:"menu-drawer__submenu level-2 has-submenu gradient motion-reduce",children:(0,t.jsx)("ul",{className:"menu-drawer__menu list-menu",role:"list",tabIndex:-1,children:e.children.map((e,s)=>(0,t.jsxs)("li",{children:[(0,t.jsx)(n.default,{href:e.url||"#",className:"list-1 menu-drawer__menu-item link link--text list-menu__item focus-inset",onClick:l,children:e.label}),Array.isArray(e.children)&&e.children.length>0&&(0,t.jsx)("div",{className:"menu-drawer__submenu level-3 has-submenu gradient motion-reduce",children:(0,t.jsx)("ul",{className:"menu-drawer__menu list-menu",role:"list",tabIndex:-1,children:e.children.map((e,s)=>(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{href:e.url||e.href||"#",className:"menu-drawer__menu-item link link--text list-menu__item focus-inset",onClick:l,...e.external?{target:"_blank",rel:"noopener noreferrer"}:{},children:e.label})},e._key||"ml4-".concat(s)))})})]},e._key||"ml3-".concat(s)))})})]})},e._key||"ml2-".concat(s)):(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{href:e.url||"#",className:"menu-drawer__menu-item link link--text list-menu__item focus-inset",onClick:l,children:e.label})},e._key||"ml2-".concat(s)))})]})})]})},e._key||"mobile-".concat(s)):(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{href:e.url||"#",id:"HeaderDrawer-".concat(null===(c=e.label)||void 0===c?void 0:c.toLowerCase().replace(/\s+/g,"-")),className:"menu-drawer__menu-item list-menu__item link link--text focus-inset",onClick:l,children:e.label})},e._key||"mobile-".concat(s))})]}),(0,t.jsx)("div",{className:"menu-drawer__utility-links",children:(0,t.jsx)("account-icon",{children:x?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.default,{href:"/pages/configurators",className:"my-account",onClick:l,style:{display:"none"},children:"Account"}),(0,t.jsx)("a",{href:"/api/auth/logout",className:"logout",style:{marginLeft:"auto"},children:"Log Out"})]}):(0,t.jsx)(n.default,{href:"/login",className:"login",onClick:l,children:"Dealer Login"})})})]})})})})]})})]})}function x(e){var s;let{isOpen:i,onClose:l}=e,c=(0,r.useRef)(null),{user:d,roles:h,isLoading:u,delegationContext:m}=(0,a.a)(),x=(0,o.gI)("Ordering_ViewOrderHistory");(0,o.gI)("UserManagement_ManageUsers");let p=h.map(e=>"string"==typeof e?e:e.roleName||e.role_name||""),g=p.some(e=>["Admin","Portal Admin","IT Admin"].includes(e));if(p.some(e=>["SalesRep","Rep Agent Primary","Rep Agent","Outside DMF Sales"].includes(e)),p.some(e=>["CS Admin","CS Agent"].includes(e)),(0,r.useEffect)(()=>
1{if(!i)return;let e=e=>{c.current&&!c.current.contains(e.target)&&l()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[i,l]),(0,r.useEffect)(()=>{if(!i)return;let e=e=>{"Escape"===e.key&&l()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[i,l]),!i)return null;if(!(!u&&d))return(0,t.jsx)("div",{ref:c,className:"top-bar-dropdown",children:(0,t.jsxs)("div",{className:"dropdown-menu-items",children:[(0,t.jsxs)(n.default,{href:"/login",className:"dropdown-item",onClick:l,children:[(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,t.jsx)("path",{d:"M15 3h4a2 2 0 012 2v14a2 2 0 01-2 2h-4"}),(0,t.jsx)("polyline",{points:"10 17 15 12 10 7"}),(0,t.jsx)("line",{x1:"15",y1:"12",x2:"3",y2:"12"})]}),"Sign In"]}),(0,t.jsxs)(n.default,{href:"/register",className:"dropdown-item",onClick:l,children:[(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,t.jsx)("path",{d:"M16 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2"}),(0,t.jsx)("circle",{cx:"8.5",cy:"7",r:"4"}),(0,t.jsx)("line",{x1:"20",y1:"8",x2:"20",y2:"14"}),(0,t.jsx)("line",{x1:"23",y1:"11",x2:"17",y2:"11"})]}),"Create Account"]})]})});let v=(null==d?void 0:d.name)||(null==d?void 0:d.firstName)?"".concat((null==d?void 0:d.firstName)||""," ").concat((null==d?void 0:d.lastName)||"").trim():(null==d?void 0:null===(s=d.email)||void 0===s?void 0:s.split("@")[0])||"Account";return(0,t.jsxs)("div",{ref:c,className:"top-bar-dropdown",children:[(0,t.jsxs)("div",{className:"dropdown-user-info",children:[(0,t.jsx)("div",{className:"dropdown-user-name",children:v}),(null==d?void 0:d.email)&&(0,t.jsx)("div",{className:"dropdown-user-email",children:d.email}),p[0]&&(0,t.jsx)("div",{className:"dropdown-user-role",children:p[0]}),m&&m.currentRoleName&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("br",{}),(0,t.jsx)("div",{className:"dropdown-user-role",style:{color:"#292521",backgroundColor:"#fffbeb",border:"1px solid #292521",borderRadius:"0.375rem",padding:"0.25rem 0.5rem"},children:"Delegation Active"})]})]}),(0,t.jsxs)("div",{className:"dropdown-menu-items",children:[(0,t.jsxs)(n.default,{href:"/account",className:"dropdown-item",onClick:l,children:[(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,t.jsx)("path",{d:"M3 9.5L12 3l9 6.5V20a1 1 0 01-1 1H5a1 1 0 01-1-1V9.5z"}),(0,t.jsx)("polyline",{points:"9 21 9 12 15 12 15 21"})]}),"My Account"]}),x&&(0,t.jsxs)(n.default,{href:"/orders",className:"dropdown-item",onClick:l,children:[(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,t.jsx)("path",{d:"M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4z"}),(0,t.jsx)("line",{x1:"3",y1:"6",x2:"21",y2:"6"})]}),"Orders"]}),(0,t.jsxs)(n.default,{href:"/projects",className:"dropdown-item",onClick:l,children:[(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,t.jsx)("path",{d:"M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4z"}),(0,t.jsx)("line",{x1:"3",y1:"6",x2:"21",y2:"6"})]}),"Projects"]}),g&&!m&&(0,t.jsxs)("a",{href:"/admin",className:"dropdown-item",onClick:l,children:[(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,t.jsx)("rect",{x:"3",y:"3",width:"7",height:"9",rx:"1"}),(0,t.jsx)("rect",{x:"14",y:"3",width:"7",height:"5",rx:"1"}),(0,t.jsx)("rect",{x:"14",y:"12",width:"7",height:"9",rx:"1"}),(0,t.jsx)("rect",{x:"3",y:"16",width:"7",height:"5",rx:"1"})]}),"Admin Dashboard"]}),m&&(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("a",{href:"/admin",className:"dropdown-item",onClick:l,children:[(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,t.jsx)("rect",{x:"3",y:"3",width:"7",height:"9",rx:"1"}),(0,t.jsx)("rect",{x:"14",y:"3",width:"7",height:"5",rx:"1"}),(0,t.jsx)("rect",{x:"14",y:"12",width:"7",height:"9",rx:"1"}),(0,t.jsx)("rect",{x:"3",y:"16",width:"7",height:"5",rx:"1"})]}),"Admin Portal"]})})]}),(0,t.jsx)("div",{className:"dropdown-signout",children:(0,t.jsxs)("button",{className:"dropdown-item",onClick:()=>{window.location.href="/api/auth/logout"},children:[(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,t.jsx)("path",{d:"M9 21H5a2 2 0 01-2-2V5a2 2 0 012-2h4"}),(0,t.jsx)("polyline",{points:"16 17 21 12 16 7"}),(0,t.jsx)("line",{x1:"21",y1:"12",x2:"9",y2:"12"})]}),"Log Out"]})})]})}function p(){return(0,t.jsxs)("svg",{width:"90",height:"35",viewBox:"0 0 90 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"dmf-logo",children:[(0,t.jsx)("path",{d:"M17.4789 11.8786H17.3842C15.7263 9.65432 13.4053 8.51852 10.3737 8.51852C3.41053 8.51852 0 14.5761 0 20.965C0 27.8745 3.26842 34.5 10.9895 34.5C13.8316 34.5 16.2 33.2695 17.7632 30.9506H17.8579V33.7901H25.5316V0H17.4789V11.8786ZM12.9789 28.3477C9.28421 28.3477 8.05263 24.609 8.05263 21.249C8.05263 18.1255 9.28421 14.6708 12.9789 14.6708C16.4842 14.6708 17.7632 17.9362 17.7632 21.4856C17.7632 24.609
116.9105 28.3477 12.9789 28.3477Z",fill:"#141414"}),(0,t.jsx)("path",{d:"M60.4895 8.51852C57.1737 8.51852 54.7579 9.89094 52.8158 12.4938C51.4895 9.51234 48.7421 8.51852 45.6632 8.51852C42.5842 8.51852 40.0737 10.1276 38.6053 12.5885H38.5105V9.22839H30.6947V33.7901H38.7474V21.8169C38.7474 16.8004 39.9789 15.144 42.8684 15.144C45.0474 15.144 45.9 16.9424 45.9 19.8292V33.7901H53.9526V21.7695C53.9526 17.7942 54.2842 15.144 57.7421 15.144C59.8263 15.144 61.1053 16.7058 61.1053 19.356V33.7901H69.1579V19.1193C69.1579 14.4342 68.3053 8.51852 60.4895 8.51852Z",fill:"#141414"}),(0,t.jsx)("path",{d:"M87.8211 5.67901C88.5316 5.67901 89.2421 5.72634 90 5.82099V0.141975C88.7211 0.0946502 87.3947 0 86.1158 0C79.2474 0 76.7842 2.17695 76.7842 9.22839H72.9V14.4342H76.7842V33.7901H84.8368V14.4342H89.6684V9.22839H84.8368V8.13992C84.8368 5.91564 85.9737 5.67901 87.8211 5.67901Z",fill:"#141414"})]})}function g(e){let{leftMenu:s,rightMenu:i,myAccountNavigation:u,cartItemCount:g=0,announcementText:v,announcementLink:f,showAnnouncement:_,logoUrl:j,logoLinkUrl:w}=e,N=(null==s?void 0:s.length)?s:[],b=(null==i?void 0:i.length)?i:[],k=(0,l.usePathname)();if("/login"===k)return null;let C="/"===k,y=(0,l.useParams)(),{user:L,isLoading:M}=(0,a.a)(),{currentLocation:H}=(0,c.T)(),A=!M&&!!L,V=(0,o.C9)(["PaymentMethods_ManagePaymentMethods","PaymentMethods_ManagePrivatePaymentMethods"]),B=(0,o.gI)("AccountBalance_ViewInvoices"),[S,R]=(0,r.useState)(null),[E,I]=(0,r.useState)(""),[Z,P]=(0,r.useState)(!1),[W,z]=(0,r.useState)(!1),[F,D]=(0,r.useState)(!1),[T,q]=(0,r.useState)(g),U=(0,r.useRef)(null),O=(0,r.useRef)(0);(0,r.useEffect)(()=>{U.current&&document.documentElement.style.setProperty("--header-h","".concat(U.current.offsetHeight,"px"))},[]);let K=(0,r.useRef)(null),Y=(0,r.useRef)(null),G=(0,r.useRef)(null),J=(0,r.useRef)(!1),[Q,X]=(0,r.useState)(""),[$,ee]=(0,r.useState)([]),[es,ei]=(0,r.useState)([]),[et,er]=(0,r.useState)([]),[en,el]=(0,r.useState)(!1),ea=(0,r.useRef)(null);(0,r.useEffect)(()=>{P(!1)},[k]),(0,r.useEffect)(()=>{Z&&(K.current&&(clearTimeout(K.current),K.current=null),D(!1))},[Z]),(0,r.useEffect)(()=>{let e=!1,s=()=>{e||(e=!0,requestAnimationFrame(()=>{let s=window.scrollY,i=O.current;O.current=s;let t=window.innerWidth<=991;s<=(t?.02*document.documentElement.scrollHeight:10)?I(""):"up"==(s>i?"down":"up")||t?I("stickyHeader sticky-scrolled"):I("header-hidden"),e=!1}))};return window.addEventListener("scroll",s),()=>window.removeEventListener("scroll",s)},[]);let ec=(0,r.useRef)(!1);(0,r.useEffect)(()=>{let e=!1,s=async()=>{if(!A){q(0);return}if(!ec.current){ec.current=!0;try{let s=null==H?void 0:H.locationId,i=(await (0,d.dv)(void 0,s)).items.reduce((e,s)=>e+(s.quantity||1),0);e||q(i)}catch(e){}finally{ec.current=!1}}};s();let i=e=>{let i=e.detail;"number"==typeof(null==i?void 0:i.count)?q(i.count):(null==i?void 0:i.cart)?q(i.cart.items.reduce((e,s)=>e+(s.quantity||1),0)):s()};return window.addEventListener("cartUpdated",i),window.addEventListener("focus",s),()=>{e=!0,ec.current=!1,window.removeEventListener("cartUpdated",i),window.removeEventListener("focus",s)}},[H,A]);let eo=(0,r.useCallback)(()=>{z(!1),X(""),ee([]),ei([]),er([])},[]);(0,r.useEffect)(()=>{if(!W)return;let e=e=>{"Escape"===e.key&&eo()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[W,eo]),(0,r.useEffect)(()=>{z(!1),D(!1),R(null)},[k]),(0,r.useEffect)(()=>{S&&(J.current=!0),G.current=S},[S]),(0,r.useEffect)(()=>{if(Q.length<2){ee([]),ei([]),er([]);return}let e=setTimeout(async()=>{el(!0);try{let e=await fetch("/api/search/suggestions?q=".concat(encodeURIComponent(Q)));if(e.ok){let s=await e.json();ee(s.suggestions||[]),ei(s.pages||[]),er(s.products||[])}}catch(e){}finally{el(!1)}},300);return()=>clearTimeout(e)},[Q]);let ed=[...N||[],...b||[]],eh=null!==S,eu=null!==G.current&&null!==S||J.current&&null!==S;return(0,t.jsxs)("div",{style:{position:"relative"},children:[(0,t.jsx)("div",{className:"shopify-section shopify-section-group-header-group announcement-bar-section",children:(0,t.jsx)("div",{className:"utility-bar color-scheme-2 gradient utility-bar--bottom-border",children:(0,t.jsxs)("div",{className:"page-width utility-bar__grid",children:[(0,t.jsxs)("div",{className:"announcement-bar",role:"region","aria-label":"Announcement",children:[(0,t.jsx)("div",{className:"announcement-bar__announcement",role:"region","aria-label":"Announcement",children:(0,t.jsx)("a",{href:f||"https://www.hkluxury.com",className:"announcement-bar__link link link--text focus-inset animate-arrow",...f?{}:{rel:"noopener noreferrer"},children:(0,t.jsxs)("p",{className:"announcement-bar__message h5",children:[(0,t.jsx)("span",{children:v||"Visit HKLuxury.com"}),(0,t.jsx)("svg",{viewBox:"0 0 14 10",fill:"none","aria-hidden":"true",focusable:"false",className:"icon icon-arrow",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.537.808a.5.5 0 01.817-.162l4 4a.5.5 0 010 .708l-4 4a.5.5 0 11-.708-.708L11.793 5.5H1a.5.5 0 010-1h10.793L8.646 1.354a.5.5 0 01-.109-.546z",fill:"
1currentColor"})})]})})}),(0,t.jsxs)("div",{className:"header__icons",children:[A&&(0,t.jsx)("details-modal",{class:"header__search",children:(0,t.jsxs)("details",{open:W||void 0,children:[(0,t.jsxs)("summary",{className:"header__icon header__icon--search header__icon--summary link focus-inset modal__toggle","aria-haspopup":"dialog","aria-label":"Search",role:"button",onClick:e=>{e.preventDefault();let s=!W;z(s),D(!1),s?setTimeout(()=>{var e;return null===(e=ea.current)||void 0===e?void 0:e.focus()},50):(X(""),ee([]),ei([]),er([]))},children:[(0,t.jsxs)("span",{children:[(0,t.jsx)("svg",{className:"modal__toggle-open icon icon-search","aria-hidden":"true",focusable:"false",width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.03 11.68A5.784 5.784 0 112.85 3.5a5.784 5.784 0 018.18 8.18zm.26 1.12a6.78 6.78 0 11.72-.7l5.4 5.4a.5.5 0 11-.71.7l-5.41-5.4z",fill:"currentColor"})}),(0,t.jsx)("svg",{className:"modal__toggle-close icon icon-close","aria-hidden":"true",focusable:"false",children:(0,t.jsx)("use",{href:"#icon-close"})})]}),"Search"]}),(0,t.jsx)("div",{className:"search-modal modal__content gradient",role:"dialog","aria-modal":"true","aria-label":"Search",children:(0,t.jsx)("div",{className:"search-modal__content search-modal__content-bottom",tabIndex:-1,children:(0,t.jsx)("predictive-search",{class:"search-modal__form","data-loading-text":"Loading...",children:(0,t.jsxs)("form",{action:"/search",method:"get",role:"search",className:"search search-modal__form",onSubmit:e=>{e.preventDefault(),Q.trim()&&(window.location.href="/search?q=".concat(encodeURIComponent(Q.trim())),z(!1))},children:[(0,t.jsxs)("div",{className:"field",children:[(0,t.jsx)("input",{ref:ea,className:"search__input field__input",id:"Search-In-Modal-1",type:"search",name:"q",value:Q,placeholder:"Search",role:"combobox","aria-expanded":$.length>0||es.length>0||et.length>0,"aria-owns":"predictive-search-results","aria-controls":"predictive-search-results","aria-haspopup":"listbox","aria-autocomplete":"list",autoCorrect:"off",autoComplete:"off",autoCapitalize:"off",spellCheck:!1,onChange:e=>X(e.target.value)}),(0,t.jsx)("label",{className:"field__label",htmlFor:"Search-In-Modal-1",children:"Search"}),(0,t.jsx)("input",{type:"hidden",name:"options[prefix]",value:"last"}),(0,t.jsxs)("div",{className:"search-modal__actions",children:[(0,t.jsx)("button",{type:"reset",className:"reset__button field__button","aria-label":"Clear search term",onClick:()=>{var e;X(""),null===(e=ea.current)||void 0===e||e.focus()},children:(0,t.jsx)("span",{children:"Clear"})}),(0,t.jsx)("button",{type:"button",className:"search-modal__close-button","aria-label":"Close search",onClick:eo,children:(0,t.jsx)("svg",{className:"icon icon-close",width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:(0,t.jsx)("path",{d:"M0.7494 1.2506L9.94179 10.443M0.596194 10.5962L5.34559 5.84679L9.78858 1.40381",stroke:"#292521",strokeWidth:"1.5"})})})]}),(0,t.jsx)("button",{className:"search__button field__button","aria-label":"Search",type:"submit",children:(0,t.jsxs)("svg",{width:"19",height:"20",viewBox:"0 0 19 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M7.81558 14.6301C11.5746 14.6301 14.6312 11.5715 14.6312 7.81453C14.6302 4.05863 11.5746 1 7.81558 1C4.05549 1 1 4.05863 1 7.81453C1 11.5715 4.05863 14.6301 7.81558 14.6301ZM7.81558 2.00469C11.0203 2.00469 13.6267 4.61109 13.6267 7.81579C13.6257 11.0196 11.0192 13.6258 7.81558 13.6258C4.61088 13.6258 2.00448 11.0194 2.00448 7.81474C2.00448 4.61088 4.61088 2.00469 7.81558 2.00469Z",fill:"#5A5857",stroke:"#5A5857",strokeWidth:"0.25"}),(0,t.jsx)("path",{d:"M13.001 13.7991L13.7269 13.1046L18.7894 18.3055L18.0635 19L13.001 13.7991Z",fill:"#5A5857",stroke:"#5A5857",strokeWidth:"0.25"})]})})]}),(0,t.jsxs)("div",{className:"predictive-search predictive-search--header",tabIndex:-1,"data-predictive-search":"",children:[(0,t.jsxs)("div",{id:"predictive-search-results",role:"listbox",children:[($.length>0||es.length>0||et.length>0)&&(0,t.jsxs)("div",{id:"predictive-search-results-groups-wrapper",className:"predictive-search__results-groups-wrapper",children:[($.length>0||es.length>0)&&(0,t.jsxs)("div",{className:"predictive-search__result-group",children:[$.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{id:"predictive-search-queries",className:"predictive-search__heading text-body caption-with-letter-spacing",children:"Suggestions"}),(0,t.jsx)("ul",{id:"predictive-search-results-queries-list",className:"predictive-search__results-list list-unstyled",role:"group","aria-labelledby":"predictive-search-queries",children:$.map((e,s)=>{let i=e.slug||encodeURIComponent(e.title.toLowerCase().replace(/\s+/g,"-")),r=e.url||"/products/".concat(i);return(0,t.jsx)("li",{id:"predictive-search-option-collection-".concat(s+1),className:"predictive-search__list-item",role:"option","aria-selected":!1,children:(0,t.jsx)("a",{href:r,className:"predictive-search__item link link--text",tabIndex:-1,
1children:(0,t.jsx)("div",{className:"predictive-search__item-content predictive-search__item-content--centered",children:(0,t.jsx)("p",{className:"predictive-search__item-heading h5",children:e.title})})})},e.id)})})]}),es.length>0&&(0,t.jsxs)("div",{className:"predictive-search__pages-wrapper",children:[(0,t.jsx)("h2",{id:"predictive-search-pages-desktop",className:"predictive-search__heading text-body caption-with-letter-spacing",children:"Pages"}),(0,t.jsx)("ul",{id:"predictive-search-results-pages-list-desktop",className:"predictive-search__results-list list-unstyled",role:"group","aria-labelledby":"predictive-search-pages-desktop",children:es.map((e,s)=>(0,t.jsx)("li",{id:"predictive-search-option-page-desktop-".concat(s+1),className:"predictive-search__list-item",role:"option","aria-selected":!1,children:(0,t.jsx)("a",{href:"/pages/".concat(e.slug),className:"predictive-search__item link link--text",tabIndex:-1,children:(0,t.jsx)("div",{className:"predictive-search__item-content predictive-search__item-content--centered",children:(0,t.jsx)("p",{className:"predictive-search__item-heading h5",children:e.title})})})},e.id))})]})]}),(et.length>0||es.length>0)&&(0,t.jsxs)("div",{className:"predictive-search__result-group",children:[et.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{id:"predictive-search-products",className:"predictive-search__heading text-body caption-with-letter-spacing",children:"Products"}),(0,t.jsx)("ul",{id:"predictive-search-results-products-list",className:"predictive-search__results-list list-unstyled",role:"group","aria-labelledby":"predictive-search-products",children:et.map((e,s)=>(0,t.jsx)("li",{id:"predictive-search-option-product-".concat(s+1),className:"predictive-search__list-item",role:"option","aria-selected":!1,children:(0,t.jsxs)("a",{href:"/products/".concat(e.handle),className:"predictive-search__item predictive-search__item--link-with-thumbnail link link--text",tabIndex:-1,children:[e.image&&(0,t.jsx)("img",{className:"predictive-search__image",src:e.image,alt:e.title,width:50,height:50}),(0,t.jsxs)("div",{className:"predictive-search__item-content predictive-search__item-content--centered",children:[(0,t.jsx)("p",{className:"predictive-search__item-heading h5",children:e.title}),e.sku&&(0,t.jsxs)("div",{className:"predictive-search__item-sku caption-with-letter-spacing",style:{color:"var(--color-foreground-secondary, #6b7280)",fontSize:"0.875rem",marginTop:"0.25rem"},children:["SKU: ",e.sku]})]})]})},e.id))})]}),es.length>0&&(0,t.jsxs)("div",{className:"predictive-search__pages-wrapper",children:[(0,t.jsx)("h2",{id:"predictive-search-pages-mobile",className:"predictive-search__heading text-body caption-with-letter-spacing",children:"Pages"}),(0,t.jsx)("ul",{id:"predictive-search-results-pages-list-mobile",className:"predictive-search__results-list list-unstyled",role:"group","aria-labelledby":"predictive-search-pages-mobile",children:es.map((e,s)=>(0,t.jsx)("li",{id:"predictive-search-option-page-mobile-".concat(s+1),className:"predictive-search__list-item",role:"option","aria-selected":!1,children:(0,t.jsx)("a",{href:"/pages/".concat(e.slug),className:"predictive-search__item link link--text",tabIndex:-1,children:(0,t.jsx)("div",{className:"predictive-search__item-content predictive-search__item-content--centered",children:(0,t.jsx)("p",{className:"predictive-search__item-heading h5",children:e.title})})})},e.id))})]})]})]}),en&&(0,t.jsx)("div",{className:"predictive-search__loading-state",children:(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",className:"spinner",viewBox:"0 0 66 66",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("circle",{className:"path",fill:"none",strokeWidth:"6",cx:"33",cy:"33",r:"30"})})}),Q.trim()&&(0,t.jsx)("div",{id:"predictive-search-option-search-keywords",className:"predictive-search__search-for-button",children:(0,t.jsxs)("button",{className:"predictive-search__item predictive-search__item--term link link--text h5 animate-arrow",tabIndex:-1,role:"option","aria-selected":!1,type:"button",onClick:()=>{Q.trim()&&(window.location.href="/search?q=".concat(encodeURIComponent(Q.trim())),z(!1))},children:[(0,t.jsxs)("span",{"data-predictive-search-search-for-text":"",children:["Search for â",Q,"â"]}
1),(0,t.jsx)("svg",{viewBox:"0 0 14 10",fill:"none","aria-hidden":"true",focusable:"false",className:"icon icon-arrow",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.537.808a.5.5 0 01.817-.162l4 4a.5.5 0 010 .708l-4 4a.5.5 0 11-.708-.708L11.793 5.5H1a.5.5 0 010-1h10.793L8.646 1.354a.5.5 0 01-.109-.546z",fill:"currentColor"})})]})})]}),(0,t.jsx)("span",{className:"hidden","data-predictive-search-live-region-count-value":"",children:[es.length>0?"".concat(es.length," pages"):"",et.length>0?"".concat(et.length," products"):""].filter(Boolean).join(", ")})]}),(0,t.jsx)("span",{className:"predictive-search-status visually-hidden",role:"status","aria-hidden":"true"})]})})})})]})}),(0,t.jsx)("div",{className:"login-area",children:M?null:A?(0,t.jsxs)("div",{className:"account-hover-wrapper",onMouseEnter:()=>{K.current&&(clearTimeout(K.current),K.current=null),D(!0),z(!1)},onMouseLeave:()=>{K.current=setTimeout(()=>D(!1),150)},children:[(0,t.jsx)(n.default,{href:"/account",className:"header__icon header__icon--account link focus-inset",children:(0,t.jsx)("account-icon",{children:"Account"})}),(0,t.jsx)("div",{className:"account-dropdown",children:(0,t.jsx)(x,{isOpen:F,onClose:()=>D(!1)})})]}):(0,t.jsx)(n.default,{href:"/login",className:"header__icon header__icon--account link focus-inset",children:(0,t.jsx)("account-icon",{children:"Dealer Login"})})}),M?null:A?(0,t.jsx)("div",{children:(0,t.jsxs)("a",{href:"/cart",className:"header__icon header__icon--cart link focus-inset",id:"cart-icon-bubble",children:[(0,t.jsx)("span",{className:"cart-name",children:"Cart"}),(0,t.jsxs)("div",{className:"cart-count-bubble",children:[(0,t.jsx)("span",{"aria-hidden":"true",children:T>0?T:"0"}),(0,t.jsxs)("span",{className:"visually-hidden",children:[T," items"]})]})]})}):(0,t.jsx)(t.Fragment,{})]})]}),(0,t.jsx)("div",{className:"localization-wrapper"})]})})}),(0,t.jsx)("div",{ref:U,className:"shopify-section shopify-section-group-header-group section-header ".concat(C?"header-transparent":""," ").concat(E," ").concat(eh?"mega-open":""),onMouseLeave:()=>{Y.current=setTimeout(()=>{R(null)},300)},onMouseEnter:()=>{Y.current&&(clearTimeout(Y.current),Y.current=null)},children:(0,t.jsx)("div",{className:"header-wrapper color-scheme-1 gradient",children:(0,t.jsxs)("header",{className:y&&"homepage"===y.slug?"header header--middle-center header--mobile-center page-width header--has-menu header--has-social header--has-account homepage-header":"header header--middle-center header--mobile-center page-width header--has-menu header--has-social header--has-account",children:[(0,t.jsx)(m,{isOpen:Z,onToggle:()=>P(!Z),onClose:()=>P(!1),items:ed,myAccountNavigation:null==u?void 0:u.filter(e=>{var s,i;let t=null!==(i=null!==(s=e.url)&&void 0!==s?s:e.href)&&void 0!==i?i:"";return t.includes("payment-method")?!!V:!(t.includes("/account/balance")||t.includes("account-balance"))||!!B})}),(0,t.jsx)("nav",{className:"header__inline-menu header__inline-menu--left","aria-label":"Primary navigation",children:(0,t.jsx)("ul",{className:"list-menu list-menu--inline",role:"list",children:null==N?void 0:N.map((e,s)=>{let i=e._key||"left-".concat(s);return(0,t.jsx)(h,{item:e,activeMenu:S,setActiveMenu:R,menuKey:i,closeTimerRef:Y,isSwitching:eu},i)})})}),(0,t.jsx)(n.default,{href:w||"/",style:{opacity:"unset"},className:"header__heading-link link link--text focus-inset",children:(0,t.jsx)("div",{className:"header__heading-logo-wrapper",children:j?(0,t.jsx)("img",{src:j,alt:"DMF Lighting",className:"header-logo-img"}):(0,t.jsx)(p,{})})}),(0,t.jsx)("nav",{className:"header__inline-menu header__inline-menu--right","aria-label":"Secondary navigation",children:(0,t.jsx)("ul",{className:"list-menu list-menu--inline",role:"list",children:null==b?void 0:b.map((e,s)=>{let i=e._key||"right-".concat(s);return(0,t.jsx)(h,{item:e,activeMenu:S,setActiveMenu:R,menuKey:i,closeTimerRef:Y,isSwitching:eu},i)})})}),(0,t.jsx)("div",{className:"header__icons",children:(0,t.jsxs)("account-icon",{children:[!A&&!M&&(0,t.jsx)(n.default,{href:"/login",className:"btn-mobile login",children:"Dealer Login"}),A&&(0,t.jsxs)(n.default,{href:"/cart",className:"header__icon header__icon--cart link focus-inset",id:"cart-icon-bubble","aria-label":"Cart: ".concat(T," items"),children:["Cart",(0,t.jsxs)("div",{className:"cart-count-bubble",children:[(0,t.jsx)("span",{"aria-hidden":"true",children:T}),(0,t.jsxs)("span",{className:"visually-hidden",children:[T," items"]})]})]})]})})]})})})]})}i(19472)},99385:function(e,s,i){"use strict";i.d(s,{C9:function(){return l},UB:function(){return a},gI:function(){return n}});var t=i(59010);let r=["Portal Admin","Admin","IT Admin"];function n(e){let{user:s,permissions:i,roles:n}=(0,t.a)();return!!s&&!!i&&(!!(n&&n.some(e=>r.includes("string"==typeof e?e:e.role_name||e.name||"")))||i.some(s=>s.permission===e))}function l(e){let{user:s,permissions:i,roles:n}=(0,t.a)();return!!s&&!!i&&(!!(n&&n.some(e=>r.includes("string"==typeof e?e:e.role_name||e.name||"")))||e.some(e=>i.some(s=>s.permission===e)))}function a(e){let{user:s,permissions:i,roles:n}=(0,t.a)();return!!s&&!!i&&(!!(n&&n.some(e=>r.includes("string"==typeof e?e:e.role_name||e.name||"")))||e.every(e=>i.some(s=>s.permission===e)))}},27648:function(e,s,i){"use strict";i.d(s,{default:function(){return r.a}});var t=i(72972),r=i.n(t)},99376:function(e,s,i){"use strict";var t=i(35475);i.o(t,"useParams")&&i.d(s,{useParams:function(){return t.useParams}}),i.o(t,"usePathname")&&i.d(s,{usePathname:function(){return t.usePathname}}),i.o(t,"useRouter")&&i.d(s,{useRouter:function(){return t.useRouter}}),i.o(t,"useSearchParams")&&i.d(s,{useSearchParams:function(){return t.useSearchParams}})},19472:function(){},59960:function(e,s,i){"use strict";function t(e,s,i){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document;s&&(t=s.current);let r=i?.[e]??t.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(e=>null!=e)}i.d(s,{I:function(){return t}})}}]);
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.