PageSourceSearch

https://dlight.com/_next/static/chunks/8c2d6528d0776382.js

js dlight.com collected 2026-10-02 10:02:34 UTC 84,497 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,38816,e=>{"use strict";var t=e.i(79812),i=e.i(45834),l=e.i(59514);let a=e=>"home.hero"===e.__component,s=e=>"home.social-impact"===e.__component,r=e=>"home.about-us"===e.__component,n=e=>"home.our-products"===e.__component,o=e=>"shared.partners-section"===e.__component,c=e=>"home.carbon-projects"===e.__component,d=e=>"home.reach-out"===e.__component,m=e=>"home.difference"===e.__component,x=e=>"home.news"===e.__component,h=(0,l.createContext)(null);function u(){let e=(0,l.useContext)(h);if(null===e)throw Error("useHomePage must be used within a HomePageProvider");return e}function p(e){let u,p,g,b,v,y,w,j,_,N,S,k=(0,i.c)(28),{children:T,initialData:A,categories:F,awards:C,products:E,customerStories:z}=e,[H]=(0,l.useState)(A);if(k[0]!==H.Content){let e=H.Content?.flatMap(f)??[];b=e.find(a),j=e.find(s),u=e.find(r),v=e.find(n),y=e.find(o),p=e.find(c),w=e.find(d),g=e.find(m),_=e.find(x),k[0]=H.Content,k[1]=u,k[2]=p,k[3]=g,k[4]=b,k[5]=v,k[6]=y,k[7]=w,k[8]=j,k[9]=_}else u=k[1],p=k[2],g=k[3],b=k[4],v=k[5],y=k[6],w=k[7],j=k[8],_=k[9];let I=_;return console.log(I),k[10]!==u||k[11]!==C||k[12]!==p||k[13]!==F||k[
114]!==z||k[15]!==H||k[16]!==g||k[17]!==b||k[18]!==I||k[19]!==v||k[20]!==y||k[21]!==E||k[22]!==w||k[23]!==j?(N={data:H,hero:b,socialImpact:j,aboutUs:u,ourProducts:v,partners:y,categories:F,carbonProjects:p,reachout:w,difference:g,news:I,awards:C,products:E,customerStories:z},k[10]=u,k[11]=C,k[12]=p,k[13]=F,k[14]=z,k[15]=H,k[16]=g,k[17]=b,k[18]=I,k[19]=v,k[20]=y,k[21]=E,k[22]=w,k[23]=j,k[24]=N):N=k[24],k[25]!==T||k[26]!==N?(S=(0,t.jsx)(h.Provider,{value:N,children:T}),k[25]=T,k[26]=N,k[27]=S):S=k[27],S}function f(e){return e}e.s(["HomePageProvider",()=>p,"useHomePage",()=>u])},30561,(e,t,i)=>{},68599,(e,t,i)=>{var l=e.i(18976);e.r(30561);var a=e.r(59514),s=a&&"object"==typeof a&&"default"in a?a:{default:a},r=void 0!==l.default&&l.default.env&&!0,n=function(e){return"[object String]"===Object.prototype.toString.call(e)},o=function(){function e(e){var t=void 0===e?{}:e,i=t.name,l=void 0===i?"stylesheet":i,a=t.optimizeForSpeed,s=void 0===a?r:a;c(n(l),"`name` must be a string"),this._name=l,this._deletedRulePlaceholder="#"+l+"-deleted-rule____{}",c("boolean"==typeof s,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=s,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var o="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=o?o.getAttribute("content"):null}var t,i=e.prototype;return i.setOptimizeForSpeed=function(e){c("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),c(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},i.isOptimizeForSpeed=function(){return this._optimizeForSpeed},i.inject=function(){var e=this;if(c(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(r||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,i){return"number"==typeof i?e._serverSheet.cssRules[i]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),i},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},i.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},i.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},i.insertRule=function(e,t){if(c(n(e),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var i=this.getSheet();"number"!=typeof t&&(t=i.cssRules.length);try{i.insertRule(e,t)}catch(t){return r||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var l=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,l))}return this._rulesCount++},i.replaceRule=function(e,t){if(this._optimizeForSpeed||"undefined"==typeof window){var i="undefined"!=typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!i.cssRules[e])return e;i.deleteRule(e);try{i.insertRule(t,e)}catch(l){r||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),i.insertRule(this._deletedRulePlaceholder,e)}}else{var l=this._tags[e];c(l,"old rule at index `"+e+"` not found"),l.textContent=t}return e},i.deleteRule=function(e){if("undefined"==typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];c(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},i.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},i.cssRules=function(){var e=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,i){return i?t=t.concat(Array.prototype.map.call(e.getSheetForTag(i).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},i.makeStyleTag=function(e,t,i){t&&c(n(t),"makeStyleTag accepts only strings as second parameter");var l=document.createElement("style");this._nonce&&l.setAttribute("nonce",this._nonce),l.type="text/css",l.setAttribute("data-"+e,""),t&&l.appendChild(document.createTextNode(t));var a=document.head||document.getElementsByTagName("head")[0];return i?a.insertBefore(l,i):a.appendChild(l),l},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var i=0;i<t.length;i++){var l=t[i];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}(e.prototype,t),e}();function c(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var d=function(e){for(var t=5381,i=e.length;i;)t=33*t^e.charCodeAt(--i);return t>>>0},m={};function x(e,t){if(!t)return"jsx-"+e;var i=String(t),l=e+i;return m[l]||(m[l]="jsx-"+d(e+"-"+i)),m[l]}function h(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var i=e+t;return m[i]||(m[i]=t.replace(/__jsx-style-dynamic-selector/g,e)),m[i]}var u=function(){function e(e){var t=void 0===e?{}:e,i=t.styleSheet,l=void 0===i?null:i,a=t.optimizeForSpeed,s=void 0!==a&&a;this._sheet=l||new o({name:"styled-jsx",optimizeForSpeed:s}),this._sheet.inject(),l&&"boolean"==typeof s&&(this._sheet.setOptimizeForSpeed(s),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var i=this.getIdAndRules(e),l=i.styleId,a=i.rules;if(l in this._instancesCounts){this._instancesCounts[l]+=1;return}var s=a.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[l]=s,this._instancesCounts[l]=1},t.remove=function(e){var t=this,i=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(i in this._instancesCounts,"styleId: `"+i+"` not found"),this._instancesCounts[i]-=1,this._instancesCounts[i]<1){var l=this._fromServer&&this._fromServer[i];l?(l.parentNode.removeChild(l),delete this._fromServer[i]):(this._indices[i].forEac
1h(function(e){return t._sheet.deleteRule(e)}),delete this._indices[i]),delete this._instancesCounts[i]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],i=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return i[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,i;return t=this.cssRules(),void 0===(i=e)&&(i={}),t.map(function(e){var t=e[0],l=e[1];return s.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:i.nonce?i.nonce:void 0,dangerouslySetInnerHTML:{__html:l}})})},t.getIdAndRules=function(e){var t=e.children,i=e.dynamic,l=e.id;if(i){var a=x(l,i);return{styleId:a,rules:Array.isArray(t)?t.map(function(e){return h(a,e)}):[h(a,t)]}}return{styleId:x(l),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),p=a.createContext(null);function f(){return new u}function g(){return a.useContext(p)}p.displayName="StyleSheetContext";var b=s.default.useInsertionEffect||s.default.useLayoutEffect,v="undefined"!=typeof window?f():void 0;function y(e){var t=v||g();return t&&("undefined"==typeof window?t.add(e):b(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}y.dynamic=function(e){return e.map(function(e){return x(e[0],e[1])}).join(" ")},i.StyleRegistry=function(e){var t=e.registry,i=e.children,l=a.useContext(p),r=a.useState(function(){return l||t||f()})[0];return s.default.createElement(p.Provider,{value:r},i)},i.createStyleRegistry=f,i.style=y,i.useStyleRegistry=g},13907,(e,t,i)=>{t.exports=e.r(68599).style},35849,e=>{"use strict";var t=e.i(79812),i=e.i(45834),l=e.i(93118),a=e.i(70144),s=e.i(48961),r=e.i(73989),n=e.i(18379),o=e.i(33307),c=e.i(59514),d=e.i(65224),m=e.i(40089),x=e.i(22404),h=e.i(53310),u=e.i(29355);function p(e){return"number"==typeof e?e:parseFloat(e)}var f=e.i(70101),g=e.i(69210),b=e.i(58903),v=e.i(38816),y=e.i(75157),w=e.i(22486),j=e.i(23603),_=e.i(39369),N=e.i(39714),S=e.i(93264),k=e.i(65086),T=e.i(16483);let A={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.6,ease:[.42,0,.58,1]}}},F={visible:{transition:{staggerChildren:.1}}},C={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.5,ease:[.42,0,.58,1]}}},E=()=>{let e,l,a,r,n,o,d,m,x=(0,i.c)(25),[h,u]=(0,c.useState)(!1),{aboutUs:p}=(0,v.useHomePage)(),[f,g]=(0,c.useState)(!1);if(!p)return null;let{Dialog:b}=p;return x[0]===Symbol.for("react.memo_cache_sentinel")?(e={scale:1.05},l={scale:.95},x[0]=e,x[1]=l):(e=x[0],l=x[1]),x[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(s.motion.button,{className:"mt-2 w-full rounded-full bg-[#FF4612] px-6 py-3 text-base font-semibold text-white sm:mt-3 sm:w-auto sm:px-8 sm:py-4 sm:text-lg",whileHover:e,whileTap:l,variants:C,onClick:()=>u(!0),children:"Learn More"}),x[2]=a):a=x[2],x[3]===Symbol.for("react.memo_cache_sentinel")?(r=()=>u(!1),x[3]=r):r=x[3],x[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)("div",{className:"fixed inset-0 bg-black/30 backdrop-blur-sm","aria-hidden":"true"}),x[4]=n):n=x[4],x[5]!==b?.Empowering?.content||x[6]!==b?.Empowering?.
1image?.url||x[7]!==b?.Empowering?.title||x[8]!==b?.awards_section?.CTA_BTN_TEXT||x[9]!==b?.awards_section?.awards||x[10]!==b?.awards_section?.title||x[11]!==b?.purpose_section?.Card||x[12]!==b?.purpose_section?.Title||x[13]!==b?.sub_title||x[14]!==b?.title||x[15]!==b?.yt_thumbnail?.url||x[16]!==b?.yt_url||x[17]!==h||x[18]!==f?(o=h&&(0,t.jsx)(s.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"fixed inset-0 z-50 mx-auto flex h-screen w-full items-center justify-center overflow-hidden px-5 py-5",children:(0,t.jsxs)(s.motion.div,{variants:A,initial:"hidden",animate:"visible",exit:"hidden",className:"relative z-10 flex h-full w-max flex-col overflow-hidden rounded-[30px] bg-white",children:[(0,t.jsxs)(s.motion.div,{className:"sticky top-0 z-20 flex items-center justify-between border-b border-gray-200 bg-white p-6 lg:p-12",initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{delay:.2},children:[(0,t.jsx)(s.motion.h2,{variants:A,className:"text-title text-2xl leading-[120%] font-bold md:text-3xl lg:text-4xl xl:text-5xl",children:"About Us"}),(0,t.jsx)(s.motion.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>u(!1),className:"flex h-8 w-8 items-center justify-center rounded-full bg-black text-xl text-white",children:(0,t.jsx)(S.X,{className:"h-5 w-5"})})]}),(0,t.jsx)("div",{className:"max-h-[calc(100vh-80px)] overflow-y-auto",children:(0,t.jsxs)("div",{className:"p-6 lg:p-12",children:[(0,t.jsxs)(s.motion.div,{variants:F,initial:"hidden",animate:"visible",children:[(0,t.jsxs)(s.motion.div,{variants:A,className:"mb-10 text-center md:mb-12 md:text-left lg:mb-16 xl:mb-20",children:[(0,t.jsx)("h5",{className:"text-primary mb-2 text-base font-bold lg:text-xl",dangerouslySetInnerHTML:{__html:(0,w.convertAsteriskToSpan)(b?.title??"")}}),(0,t.jsx)("h2",{className:"text-title max-w-96 text-2xl leading-[120%] font-bold md:text-3xl lg:max-w-[440px] lg:text-4xl xl:max-w-[636px] xl:text-5xl",dangerouslySetInnerHTML:{__html:(0,w.convertAsteriskToSpan)(b?.sub_title??"")}})]}),f?(0,t.jsx)(s.motion.div,{variants:A,children:(0,t.jsx)("iframe",{src:b?.yt_url??"",title:"d.light Founding Story",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"aspect-video h-full w-full shadow-xl"})}):(0,t.jsxs)(s.motion.div,{variants:A,className:"group relative overflow-hidden rounded-[30px] after:absolute after:top-0 after:left-0 after:z-20 after:h-full after:w-full after:rounded-[30px] after:bg-black/15",children:[(0,t.jsx)("img",{src:(0,j.getS3Url)(b?.yt_thumbnail?.url??""),alt:"about thumb",width:1047,height:590,className:"relative z-10 min-h-72 w-full rounded-2xl object-cover transition-all duration-1000 md:rounded-[30px]"}),(0,t.jsx)(s.motion.button,{whileHover:{scale:1.1},onClick:()=>g(!0),className:"absolute right-5 bottom-5 z-30 block text-[40px] leading-none text-[#E0E6EA] md:right-9 md:bottom-8",children:(0,t.jsx)(k.FaCirclePlay,{className:"h-6 w-6"})})]})]}),(0,t.jsxs)(s.motion.div,{variants:F,initial:"hidden",animate:"visible",className:"pt-12 pb-16 lg:mt-2 lg:pt-16 lg:pb-24",children:[(0,t.jsx)(s.motion.h2,{variants:A,className:"mx-auto max-w-60 text-center text-[22px] leading-[120%] font-bold capitalize md:max-w-64 md:text-[28px] lg:max-w-80 lg:text-4xl xl:max-w-[500px] xl:text-[44px]",dangerouslySetInnerHTML:{__html:(0,w.convertAsteriskToSpan)(b?.purpose_section?.Title??"")}}),(0,t.jsxs)(s.motion.div,{variants:A,className:"mt-10 flex flex-col gap-5 md:mt-12 md:flex-row lg:gap-6 xl:mt-14 xl:pt-1",children:[(0,t.jsx)("div",{className:"w-full space-y-5",children:b?.purpose_section?.Card?.slice(0,2).map(z)}),(0,t.jsxs)(s.motion.div,{whileHover:{y:-5},className:"w-full shrink-0 rounded-[22px] border border-[#E9E9E987] bg-white/80 p-8 shadow-[0px_12.211px_78.152px_0px_rgba(0,0,0,0.07)] backdrop-blur-sm md:w-[240px] lg:w-[328px] lg:p-12",children:[(0,t.jsx)("span",{className:"bg-primary mb-7 flex h-12 w-12 items-center justify-center rounded-full",children:(0,t.jsx)("img",{width:128,height:128,alt:"Mission",src:(0,j.getS3Url)(b?.purpose_section?.Card?.[2]?.Icon?.url??""),className:"h-full w-full object-contain"})}),(0,t.jsx)("h3",{className:"mb-2 text-xl font-bold lg:text-[22px]",children:b?.purpose_section?.Card?.[2]?.Title}),(0,t.jsx)("div",{children:(0,t.jsx)("img",{src:(0,j.getS3Url)(b?.purpose_section?.Card?.[2]?.Image?.url??""),alt:"i.HOPE",
1width:1080,height:1080,className:"mr-auto h-64 w-fit object-contain"})})]})]})]}),(0,t.jsxs)(s.motion.div,{variants:F,initial:"hidden",animate:"visible",className:"flex flex-col gap-5 md:flex-row lg:gap-8 xl:gap-11",children:[(0,t.jsx)(s.motion.div,{variants:A,className:"group relative w-full shrink-0 overflow-hidden rounded-[30px] after:absolute after:top-0 after:left-0 after:h-full after:w-full after:rounded-[30px] after:bg-black/15 md:max-w-80 lg:max-w-[450px]",children:(0,t.jsx)("img",{width:1080,height:1080,alt:"Radience of Empowerment",className:"h-full w-full object-cover object-left",src:(0,j.getS3Url)(b?.Empowering?.image?.url??"")})}),(0,t.jsxs)(s.motion.div,{variants:A,className:"max-w-[370px] text-center md:text-left",children:[(0,t.jsx)("h3",{className:"mb-4 pb-0.5 text-xl leading-[120%] font-bold capitalize md:text-2xl lg:text-3xl",dangerouslySetInnerHTML:{__html:(0,w.convertAsteriskToSpan)(b?.Empowering?.title??"")}}),(0,t.jsx)("div",{className:"prose max-w-none",children:(0,t.jsx)(T.default,{components:{h4:H,p:I},children:b?.Empowering?.content})})]})]}),(0,t.jsxs)(s.motion.div,{variants:F,initial:"hidden",animate:"visible",className:"py-12 md:pt-16 md:pb-16 lg:my-2 lg:pt-20",children:[(0,t.jsxs)(s.motion.div,{variants:A,className:"mb-10 items-end justify-between text-center md:mb-16 md:flex md:text-left lg:mb-20",children:[(0,t.jsx)("h2",{className:"text-[22px] leading-[120%] font-bold capitalize md:max-w-[440px] md:text-[28px] lg:max-w-[565px] lg:text-4xl",dangerouslySetInnerHTML:{__html:(0,w.convertAsteriskToSpan)(b?.awards_section?.title??"")}}),(0,t.jsx)(s.motion.a,{href:"/about/awards",whileHover:{scale:1.05},whileTap:{scale:.95},className:"bg-primary hidden w-[180px] rounded-full px-9 py-4 text-center text-base leading-none font-bold text-white hover:bg-[#394B59] md:inline-block lg:w-[200px] lg:text-lg",children:b?.awards_section?.CTA_BTN_TEXT})]}),(0,t.jsx)(s.motion.div,{variants:A,className:"grid gap-y-10 md:grid-cols-2",children:b?.awards_section?.awards?.slice(0,4).map(P)})]}),(0,t.jsx)(s.motion.div,{className:"text-center",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.5},children:(0,t.jsx)(s.motion.a,{href:"/about",className:"text-primary text-lg font-bold underline hover:text-black",whileHover:{scale:1.05},whileTap:{scale:.95},children:"Learn More About Us"})})]})})]})}
1),x[5]=b?.Empowering?.content,x[6]=b?.Empowering?.image?.url,x[7]=b?.Empowering?.title,x[8]=b?.awards_section?.CTA_BTN_TEXT,x[9]=b?.awards_section?.awards,x[10]=b?.awards_section?.title,x[11]=b?.purpose_section?.Card,x[12]=b?.purpose_section?.Title,x[13]=b?.sub_title,x[14]=b?.title,x[15]=b?.yt_thumbnail?.url,x[16]=b?.yt_url,x[17]=h,x[18]=f,x[19]=o):o=x[19],x[20]!==o?(d=(0,t.jsx)("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:(0,t.jsx)(_.DialogPanel,{children:(0,t.jsx)(N.AnimatePresence,{children:o})})}),x[20]=o,x[21]=d):d=x[21],x[22]!==h||x[23]!==d?(m=(0,t.jsxs)(t.Fragment,{children:[a,(0,t.jsxs)(_.Dialog,{open:h,onClose:r,className:"relative z-50",children:[n,d]})]}),x[22]=h,x[23]=d,x[24]=m):m=x[24],m};function z(e){return(0,t.jsxs)(s.motion.div,{whileHover:{y:-5},className:"w-full rounded-[22px] border border-[#E9E9E987] bg-white/80 px-6 pt-8 pb-7 shadow-[0px_12.211px_78.152px_0px_rgba(0,0,0,0.07)] backdrop-blur-sm",children:[(0,t.jsx)("span",{className:"bg-primary mb-4 flex h-7 w-7 items-center justify-center rounded-full",children:(0,t.jsx)("img",{width:128,height:128,alt:"Mission",src:(0,j.getS3Url)(e.Icon?.url??""),className:"h-full w-full object-contain"})}),(0,t.jsx)("h3",{className:"mb-2 text-xl font-bold lg:text-[22px]",children:e.Title}),(0,t.jsx)("p",{className:"text-black/70 md:text-lg lg:text-[22px]",children:e.Description})]},e.id)}function H(e){let{children:i}=e;return(0,t.jsx)("h4",{className:"font-semibold italic",children:i})}function I(e){let{children:i}=e;return(0,t.jsx)("p",{className:"leading-[120%] text-black/80",children:i})}
1function P(e,i){return(0,t.jsxs)(s.motion.div,{whileHover:{y:-5},className:(0,y.cn)("flex items-center gap-3 2xl:gap-4",i%2==1?"border-l-[#D8D8D8] md:ml-5 md:border-l md:pl-5":"md:pl-5"),children:[(0,t.jsx)("div",{className:"h-16 w-16 shrink-0 rounded-full border-2 border-[#EAEAEA] 2xl:h-20 2xl:w-20",children:(0,t.jsx)("img",{width:480,height:480,src:(0,j.getS3Url)(e?.logo?.url??""),alt:e?.title??"",className:"h-full w-full rounded-full object-contain"})}),(0,t.jsx)("h4",{className:"text-grey-900 text-base leading-[120%] font-semibold md:max-w-[245px] xl:text-lg",children:e?.title})]},i)}var R=e.i(76697);let M=()=>{let e,l,a,y,w,_,N,S,k,T,A,F,C,z,H,I,P,M,L,U,V,O,B,D,q,X,$,J,K,Y,Q,G,W,Z,ee,et,ei,el,ea=(0,i.c)(71),{aboutUs:es}=(0,v.useHomePage)(),er=(0,r.useAnimation)();ea[0]===Symbol.for("react.memo_cache_sentinel")?(e={threshold:.1,triggerOnce:!0},ea[0]=e):e=ea[0];let[en,eo]=(0,b.useInView)(e),ec=(0,c.useRef)(null),ed=(0,c.useRef)(null),[em,ex]=(0,c.useState)(!1);ea[1]===Symbol.for("react.memo_cache_sentinel")?(l={target:ec,offset:["start end","end start"]},ea[1]=l):l=ea[1];let{scrollYProgress:eh}=(0,o.useScroll)(l);ea[2]===Symbol.for("react.memo_cache_sentinel")?(a=[0,1],y=[1.05,1],ea[2]=a,ea[3]=y):(a=ea[2],y=ea[3]);let eu=(0,f.useTransform)(eh,a,y);ea[4]===Symbol.for("react.memo_cache_sentinel")?(w=[0,1],_=[1,1.1],ea[4]=w,ea[5]=_):(w=ea[4],_=ea[5]);let ep=(0,f.useTransform)(eh,w,_),ef=(0,n.useMotionValue)(1);ea[6]===Symbol.for("react.memo_cache_sentinel")?(N={stiffness:300,damping:30},ea[6]=N):N=ea[6];let eg=function(e,t={}){let{isStatic:i}=(0,c.useContext)(m.MotionConfigContext),l=(0,c.useRef)(null),a=(0,n.useMotionValue)((0,h.isMotionValue)(e)?p(e.get()):e),s=(0,c.useRef)(a.get()),r=(0,c.useRef)(()=>{}),o=()=>{let e=l.current;e&&0===e.time&&e.sample(u.frameData.delta),f(),l.current=(0,d.animateValue)({keyframes:[a.get(),s.current],velocity:a.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...t,onUpdate:r.current})},f=()=>{l.current&&l.current.stop()};return(0,c.useInsertionEffect)(()=>a.attach((e,t)=>i?t(e):(s.current=e,r.current=t,u.frame.update(o),a.get()),f),[JSON.stringify(t)]),(0,x.useIsomorphicLayoutEffect)(()=>{if((0,h.isMotionValue)(e))return e.on("change",e=>a.set(p(e)))},[a]),a}(ef,N);ea[7]!==er||ea[8]!==eo?(S=()=>{eo&&er.start("visible")},k=[er,eo],ea[7]=er,ea[8]=eo,ea[9]=S,ea[10]=k):(S=ea[9],k=ea[10]),(0,c.useEffect)(S,k),ea[11]!==eu||ea[12]!==ef?(A=()=>{let e=eu.onChange(e=>{ef.set(e)});return()=>e()},T=[eu,ef],ea[11]=eu,ea[12]=ef,ea[13]=T,ea[14]=A):(T=ea[13],A=ea[14]),(0,c.useEffect)(A,T),ea[15]===Symbol.for("react.memo_cache_sentinel")?(F={opacity:0,y:50},ea[15]=F):F=ea[15],ea[16]===Symbol.for("react.memo_cache_sentinel")?(C={hidden:F,visible:{opacity:1,y:0,transition:{duration:.8,staggerChildren:.3}}},ea[16]=C):C=ea[16];let eb=C;ea[17]===Symbol.for("react.memo_cache_sentinel")?(z={opacity:0,y:20},ea[17]=z):z=ea[17],ea[18]===Symbol.for("react.memo_cache_sentinel")?(H={hidden:z,visible:{opacity:1,y:0,transition:{duration:.5}}},ea[18]=H):H=ea[18];let ev=H;if(!es)return null;ea[19]!==es.section_label?(I=(0,t.jsx)(s.motion.h5,{variants:ev,className:"mb-2 text-sm font-bold text-[#FF4612] sm:text-base lg:text-xl",children:es.section_label}),ea[19]=es.section_label,ea[20]=I):I=ea[20],ea[21]!==es.main_heading?(P=(0,t.jsx)(s.motion.h2,{variants:ev,className:"font-body mb-4 text-3xl leading-tight font-semibold sm:text-4xl md:text-5xl",children:es.main_heading}),ea[21]=es.main_heading,ea[22]=P):P=ea[22],ea[23]!==es.description?(M=(0,t.jsx)(s.motion.p,{variants:ev,className:"mb-6 text-sm text-gray-600 sm:text-base",children:es.description}),ea[23]=es.description,ea[24]=M):M=ea[24],ea[25]===Symbol.for("react.memo_cache_sentinel")?(L=(0,t.jsx)(E,{}),ea[25]=L):L=ea[25],ea[26]!==I||ea[27]!==P||ea[28]!==M?(U=(0,t.jsxs)(s.motion.div,{className:"mb-8 w-full sm:mb-0 sm:w-1/2 sm:pr-4 md:pr-8",variants:ev,children:[I,P,M,L]}),ea[26]=I,ea[27]=P,ea[28]=M,ea[29]=U):U=ea[29],ea[30]!==ep?(V={scale:ep},ea[30]=ep,ea[31]=V):V=ea[31];let ey=es.Vector?.url;ea[32]!==ey?(O=(0,j.getS3Url)(ey),ea[32]=ey,ea[33]=O):O=ea[33],ea[34]===Symbol.for("react.memo_cache_sentinel")?(B={position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:"contain",color:"transparent"},ea[34]=B):B=ea[34],ea[35]!==O?(D=(0,t.jsx)("img",{src:O,alt:"Decorative vector",style:B}),ea[35]=O,ea[36]=D):D=ea[36],ea[37]!==V||ea[38]!==D?(q=(0,t.jsx)(s.motion.div,{ref:ed,className:"absolute -bottom-8 -left-8 z-0 h-24 w-24 sm:-bottom-12 sm:-left-12 sm:h-32 sm:w-32 md:-bottom-16 md:-left-16 md:h-40 md:w-40",style:V,children:D}),ea[37]=V,ea[38]=D,ea[39]=q):q=ea[39],ea[40]!==eg?(X={scale:eg},ea[40]=eg,ea[41]=X):X=ea[41],ea[42]===Symbol.for("react.memo_cache_sentinel")?($={scale:1.05},J={scale:.95},ea[42]=$,ea[43]=J):($=ea[42],J=ea[43]),ea[44]!==eu||ea[45]!==ef?(K=()=>ef.set(eu.get()),ea[44]=eu,ea[45]=ef,ea[46]=K):K=ea[46];let ew=es.Image?.url;ea[47]!==ew?(Y=(0,j.getS3Url)(ew),ea[47]=ew,ea[48]=Y):Y=ea[48],ea[49]!==Y?(Q=(0,t.jsx)("img",{src:Y,alt:"d.light in action",className:"h-[300px] w-full object-cover object-left sm:h-[350px] md:h-[400px]",width:1080,height:1080}),ea[49]=Y,ea[50]=Q):Q=ea[50],ea[51]!==X||ea[52]!==K||ea[53]!==Q?(G=(0,t.jsx)(s.motion.div,{ref:ec,style:X,className:"relative z-10 overflow-hidden rounded-2xl shadow-lg sm:rounded-3xl",whileHover:$,whileTap:J,onHoverEnd:K,children:Q}),ea[51]=X,ea[52]=K,ea[53]=Q,ea[54]=G):G=ea[54],ea[55]===Symbol.for("react.memo_cache_sentinel")?(W=()=>ex(!0),ea[55]=W):W=ea[55],ea[56]===Symbol.for("react.memo_cache_sentinel")?(Z=(0,t.jsx)(s.motion.button,{type:"button",onClick:W,className:"absolute top-2 left-2 z-20 cursor-pointer rounded-full bg-white p-2 shadow-md sm:top-4 sm:left-4 sm:p-3",whileHover:{scale:1.1},whileTap:{scale:.9},children:(0,t.jsx)(g.FaPlay,{className:"text-lg text-gray-800 sm:text-xl"})}),ea[56]=Z):Z=ea[56],ea[57]!==q||ea[58]!==G?(ee=(0,t.jsxs)(s.motion.div,{className:"relative mt-8 w-full sm:mt-0 sm:w-1/2",variants:ev,children:[q,G,Z]}),ea[57]=q,ea[58]=G,ea[59]=ee):ee=ea[59],ea[60]!==U||ea[61]!==ee?(et=(0,t.jsxs)("div",{className:"flex flex-col items-center sm:flex-row sm:items-start",children:[U,ee]}),ea[60]=U,ea[61]=ee,ea[62]=et):et=ea[62];let ej=es.yt_url??"";return ea[63]!==em||ea[64]!==ej?(ei=(0,t.jsx)(R.default,{show:em,setShow:ex,videoUrl:ej}),ea[63]=em,ea[64]=ej,ea[65]=ei):ei=ea[65],ea[66]!==er||ea[67]!==en||ea[68]!==et||ea[69]!==ei?(el=(0,t.jsxs)(s.motion.section,{ref:en,id:"about",variants:eb,initial:"hidden",animate:er,className:"font-body container mx-auto max-w-7xl px-4 py-12 sm:py-16 md:py-24",children:[et,ei]}),ea[66]=er,ea[67]=en,ea[68]=et,ea[69]=ei,ea[70]=el):el=ea[70],el};
1var L=e.i(66231),U=e.i(38551);let V={hidden:{height:0,opacity:0,overflow:"hidden"},visible:{height:"auto",opacity:1,transition:{duration:.5,ease:[.42,0,.58,1]}},exit:{height:0,opacity:0,overflow:"hidden",transition:{duration:.5,ease:[.42,0,.58,1]}}},O={hidden:{opacity:0,scale:.95},visible:{opacity:1,scale:1,transition:{duration:.5,ease:[.42,0,.58,1]}}},B=function(){let e,l,a,r,n,o,d,m,x,h,u,p,f=(0,i.c)(30),{carbonProjects:g}=(0,v.useHomePage)(),[b,_]=(0,c.useState)(null);f[0]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{_(t=>t===e?null:e)},f[0]=e):e=f[0];let S=e;if(!g)return null;f[1]!==g.title?(l=(0,t.jsx)("h5",{className:"text-primary mb-2 text-base font-bold lg:text-xl",children:g.title}),f[1]=g.title,f[2]=l):l=f[2];let k=g.sub_title??"";f[3]!==k?(a=(0,w.convertAsteriskToSpan)(k),f[3]=k,f[4]=a):a=f[4],f[5]!==a?(r=(0,t.jsx)("h2",{className:"mx-auto max-w-2xl text-2xl leading-[115%] font-bold text-[#020202] md:text-3xl lg:text-4xl xl:text-5xl",dangerouslySetInnerHTML:{__html:a}}),f[5]=a,f[6]=r):r=f[6],f[7]!==l||f[8]!==r?(n=(0,t.jsxs)("div",{className:"pb-6 text-center lg:pb-8 xl:pb-10",children:[l,r]}),f[7]=l,f[8]=r,f[9]=n):n=f[9],f[10]!==b||f[11]!==g.faq?(o=g.faq?.map((e,i)=>(0,t.jsxs)(s.motion.li,{className:(0,y.cn)("accordion-item mb-5 overflow-hidden rounded-lg border-b border-b-[#FF4612]/25 xl:mb-7",i===(g?.faq?.length??0)-1?"border-b-0":""),initial:!1,animate:b===i?"visible":"hidden",children:[(0,t.jsxs)("div",{onClick:()=>S(i),className:"flex cursor-pointer justify-between gap-5 p-4 text-lg font-semibold sm:text-xl xl:text-2xl",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-[#FF4612]",children:(0,t.jsx)("img",{alt:"FAQ",width:32,height:32,className:"h-full w-full",src:(0,j.getS3Url)("https://d2a18w1f2socv6.cloudfront.net/Sustainability_c3dd6ab4da.png")})}),(0,t.jsx)("h3",{className:"text-[#333333]",children:e.title})]}),(0,t.jsx)(s.motion.span,{animate:{rotate:180*(b===i)},transition:{duration:.4,ease:[.42,0,.58,1]},className:"flex h-8 w-8 shrink-0 items-center justify-center text-xl text-[#AEAEAE]",children:(0,t.jsx)(L.ChevronDown,{size:24})})]}),(0,t.jsx)(N.AnimatePresence,{initial:!1,children:b===i&&(0,t.jsx)(s.motion.div,{initial:"hidden",animate:"visible",exit:"exit",variants:V,children:(0,t.jsxs)("div",{className:"px-4 pt-2 pb-4 pl-16",children:[(0,t.jsx)("div",{className:"prose mb-6 text-sm leading-relaxed text-black/70",children:(0,t.jsx)(T.default,{children:e.content})}),(0,t.jsxs)(s.motion.a,{href:e.link,target:"_blank",className:"group inline-flex items-center gap-3 rounded-full bg-[#EAEAEA] p-[3px] pl-3.5 text-xs leading-none font-semibold transition-all duration-500 hover:bg-[#FF4612] hover:text-white",whileHover:{scale:1.05},whileTap:{scale:.95},children:[(0,t.jsx)("span",{children:"Learn More"}),(0,t.jsx)("span",{className:"btn-icon flex h-6 w-6 items-center justify-center rounded-full bg-[#FF4612] text-sm text-white transition-transform duration-500 group-hover:bg-white group-hover:text-black",children:(0,t.jsx)(U.Plus,{size:16})})]})]})})})]},i)),f[10]=b,f[11]=g.faq,f[12]=o):o=f[12],f[13]!==o?(d=(0,t.jsx)("div",{className:"shrink-0 lg:w-[420px] xl:w-[468px]",children:(0,t.jsx)("ul",{className:"faq-accordion",children:o})}),f[13]=o,f[14]=d):d=f[14],f[15]!==b||f[16]!==g.faq?(m=(0,j.getS3Url)(g.faq?.[b??0]?.image?.url)??"/new/images/home/faq/carbon-projects.jpg",f[15]=b,f[16]=g.faq,f[17]=m):m=f[17];let A=g.faq?.[b??0]?.image?.name??"Carbon Projects";return f[18]!==m||f[19]!==A?(x=(0,t.jsx)("img",{className:"w-full rounded-3xl object-cover",src:m,alt:A,width:720,height:480}),f[18]=m,f[19]=A,f[20]=x):x=f[20],f[21]!==b||f[22]!==x?(h=(0,t.jsx)("div",{className:"group w-full overflow-hidden rounded-3xl",children:(0,t.jsx)(N.AnimatePresence,{mode:"wait",children:(0,t.jsx)(s.motion.div,{initial:"hidden",animate:"visible",exit:"hidden",variants:O,className:"h-full w-full",children:x},b)})}),f[21]=b,f[22]=x,f[23]=h):h=f[23],f[24]!==h||f[25]!==d?(u=(0,t.jsxs)("div",{className:"mx-auto flex max-w-[1210px] flex-col items-center gap-10 lg:flex-row xl:gap-[74px]",children:[d,h]}),f[24]=h,f[25]=d,f[26]=u):u=f[26],f[27]!==u||f[28]!==n?(p=(0,t.jsx)("section",{id:"carbon-projects",className:"font-body relative pt-12 pb-12",children:(0,t.jsxs)("div",{className:"container-custom mx-auto px-4 lg:px-8",children:[n,u]})}),f[27]=u,f[28]=n,f[29]=p):p=f[29],p};var D=e.i(43849);let q=(0,D.default)("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);var X=e.i(33418),X=X;let $=(0,D.default)("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]),J=(0,D.default)("VolumeOff",[["path",{d:"M16 9a5 5 0 0 1 .95 2.293",key:"1fgyg8"}],["path",{d:"M19.364 5.636a9 9 0 0 1 1.889 9.96",key:"l3zxae"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"m7 7-.587.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298V11",key:"1gbwow"}],["path",{d:"M9.828 4.172A.686.686 0 0 1 11 4.657v.686",key:"s2je0y"}]]),K=()=>{let e,l,a,r,n,d,m,x,h,u,p,g,y,w,j,_,N,S,k,T,A,F,C,E,z,H=(0,i.c)(50),{hero:I}=(0,v.useHomePage)();H[0]===Symbol.for("react.memo_cache_sentinel")?(e={threshold:.1,triggerOnce:!0},H[0]=e):e=H[0];let[P,R]=(0,b.useInView)(e),M=I?.Video?.url??"https://dlight-promotional-videos.s3.us-east-2.amazonaws.com/Journey-Across-Africa.mp4",L=(0,c.useRef)(null),[U,V]=(0,c.useState)(!1),[O,B]=(0,c.useState)(!0),[D,K]=(0,c.useState)(1.7777777777777777),[G,W]=(0,c.useState)(!1),[Z,ee]=(0,c.useState)(!1),[et,ei]=(0,c.useState)(!1);H[1]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{ei(function(){if("undefined"==typeof navigator)return!1;let e=navigator.userAgent,t=/iP(ad|hone|od)/.test(e),i=!t&&/Macintosh/.test(e)&&/Mobile/.test(e)&&navigator.maxTouchPoints>1;return t||i}())},a=[],H[1]=l,H[2]=a):(l=H[1],a=H[2]),(0,c.useEffect)(l,a),H[3]!==et?(r=()=>{let e=L.current;!e||et&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.defaultMuted=!0,e.muted=!0,e.volume=0)},n=[et],H[3]=et,H[4]=r,H[5]=n):(r=H[4],n=H[5]),(0,c.useEffect)(r,n),H[6]===Symbol.for("react.memo_cache_sentinel")?(d=[],H[6]=d):d=H[6],(0,c.useEffect)(Y,d),H[7]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{let e=new window.Image;e.src="https://d2a18w1f2socv6.cloudfront.net/optimized_image_5717d84716.webp",e.onload=()=>{K(e.width/e.height)}},x=[],H[7]=m,H[8]=x):(m=H[7],x=H[8]),(0,c.useEffect)(m,x),H[9]!==R?(h=()=>
1{if(R){let e=setTimeout(()=>{W(!0)},500);return()=>clearTimeout(e)}},u=[R],H[9]=R,H[10]=h,H[11]=u):(h=H[10],u=H[11]),(0,c.useEffect)(h,u),H[12]!==R||H[13]!==O||H[14]!==U||H[15]!==G?(p=()=>{L.current&&G&&!U&&R?(L.current.muted=O,L.current.play().then(()=>{ee(!0)}).catch(console.error)):L.current&&(!R||U)&&L.current.pause()},g=[R,U,G,O],H[12]=R,H[13]=O,H[14]=U,H[15]=G,H[16]=p,H[17]=g):(p=H[16],g=H[17]),(0,c.useEffect)(p,g);let{scrollY:el}=(0,o.useScroll)();H[18]===Symbol.for("react.memo_cache_sentinel")?(y=[0,500],w=[1,.9],H[18]=y,H[19]=w):(y=H[18],w=H[19]);let ea=(0,f.useTransform)(el,y,w);H[20]===Symbol.for("react.memo_cache_sentinel")?(j=[0,300],_=[1,.6],H[20]=j,H[21]=_):(j=H[20],_=H[21]);let es=(0,f.useTransform)(el,j,_);H[22]===Symbol.for("react.memo_cache_sentinel")?(N=()=>{B(e=>{let t=!e;return L.current&&(L.current.muted=t),t})},H[22]=N):N=H[22];let er=N;H[23]!==U?(S=()=>{V(Q),L.current&&(U?L.current.play().catch(console.error):L.current.pause())},H[23]=U,H[24]=S):S=H[24];let en=S;H[25]!==R||H[26]!==O||H[27]!==U?(k=()=>{L.current&&!U&&R&&(L.current.muted=O,L.current.play().then(()=>{ee(!0)}).catch(console.error))},H[25]=R,H[26]=O,H[27]=U,H[28]=k):k=H[28];let eo=k;H[29]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{let e=L.current;e&&e.currentTime>.05&&ee(!0)},H[29]=T):T=H[29];let ec=T;H[30]===Symbol.for("react.memo_cache_sentinel")?(A=()=>{ee(!0)},H[30]=A):A=H[30];let ed=A;return I?(H[31]!==D?(F=D.toString(),H[31]=D,H[32]=F):F=H[32],H[33]!==F?(C={aspectRatio:F,maxHeight:"calc(100vh - 350px)",minHeight:"300px"},H[33]=F,H[34]=C):C=H[34],H[35]!==en||H[36]!==eo||H[37]!==et||H[38]!==O||H[39]!==U||H[40]!==es||H[41]!==ea||H[42]!==G||H[43]!==Z||H[44]!==M?(E=et?(0,t.jsxs)("div",{className:"relative h-full w-full overflow-hidden rounded-3xl",children:[G&&(0,t.jsx)("div",{className:"absolute inset-0",children:(0,t.jsx)("video",{loop:!0,autoPlay:!0,playsInline:!0,ref:L,muted:O,onLoadedData:eo,onTimeUpdate:ec,onPlaying:ed,preload:"metadata",className:"h-full w-full rounded-3xl object-cover object-top",children:(0,t.jsx)("source",{src:M,type:"video/mp4"})})}),(0,t.jsx)("div",{className:"absolute inset-0 z-10 transition-opacity duration-300 ease-out",style:{opacity:+!Z},children:(0,t.jsx)("img",{src:"https://d2a18w1f2socv6.cloudfront.net/optimized_image_5717d84716.webp",alt:"d.light hero image",className:"h-full w-full rounded-3xl object-cover object-top",style:{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,color:"transparent"}})}),(0,t.jsxs)("button",{onClick:er,className:"bg-opacity-50 absolute top-4 right-4 z-20 flex items-center justify-start gap-2 rounded-full bg-black p-2 text-white backdrop-blur-sm",type:"button",children:[O?(0,t.jsx)(J,{className:"h-4 w-4"}):(0,t.jsx)($,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"text-sm",children:O?"Unmute":"Mute"})]}),(0,t.jsx)("button",{onClick:en,className:"bg-opacity-50 absolute right-4 bottom-4 z-20 flex items-center justify-start gap-2 rounded-full bg-black p-2 text-white backdrop-blur-sm md:right-8 md:bottom-8",type:"button",children:U?(0,t.jsx)(X.default,{className:"h-6 w-6 fill-white"}):(0,t.jsx)(q,{className:"h-6 w-6 fill-white"})})]}):(0,t.jsxs)(s.motion.div,{className:"relative h-full w-full overflow-hidden rounded-3xl",style:{scale:ea,opacity:es},children:[G&&(0,t.jsx)("div",{className:"absolute inset-0",children:(0,t.jsx)("video",{loop:!0,autoPlay:!0,playsInline:!0,ref:L,muted:O,onLoadedData:eo,onTimeUpdate:ec,onPlaying:ed,preload:"metadata",className:"h-full w-full rounded-3xl object-cover object-top",children:(0,t.jsx)("source",{src:M,type:"video/mp4"})})}),(0,t.jsx)(s.motion.div,{initial:{opacity:1},animate:{opacity:+!Z},transition:{duration:.4,ease:"easeOut"},className:"absolute inset-0 z-10",children:(0,t.jsx)("img",{src:"https://d2a18w1f2socv6.cloudfront.net/optimized_image_5717d84716.webp",alt:"d.light hero image",className:"h-full w-full rounded-3xl object-cover object-top",style:{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,color:"transparent"}})}),(0,t.jsxs)(s.motion.button,{onClick:er,initial:{opacity:0,y:-10}
1,animate:{opacity:1,y:0},transition:{delay:.2,duration:.2},className:"bg-opacity-50 absolute top-4 right-4 z-20 flex items-center justify-start gap-2 rounded-full bg-black p-2 text-white backdrop-blur-sm",children:[O?(0,t.jsx)(J,{className:"h-4 w-4"}):(0,t.jsx)($,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"text-sm",children:O?"Unmute":"Mute"})]}),(0,t.jsx)(s.motion.button,{onClick:en,initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.3,duration:.2},className:"bg-opacity-50 absolute right-4 bottom-4 z-20 flex items-center justify-start gap-2 rounded-full bg-black p-2 text-white backdrop-blur-sm md:right-8 md:bottom-8",children:U?(0,t.jsx)(X.default,{className:"h-6 w-6 fill-white"}):(0,t.jsx)(q,{className:"h-6 w-6 fill-white"})})]}),H[35]=en,H[36]=eo,H[37]=et,H[38]=O,H[39]=U,H[40]=es,H[41]=ea,H[42]=G,H[43]=Z,H[44]=M,H[45]=E):E=H[45],H[46]!==P||H[47]!==C||H[48]!==E?(z=(0,t.jsx)("div",{className:"mt-5 px-5 md:mt-9 xl:px-6",children:(0,t.jsx)("div",{ref:P,className:"relative mx-auto w-full",style:C,children:E})}),H[46]=P,H[47]=C,H[48]=E,H[49]=z):z=H[49],z):null};function Y(){let e=document.createElement("link");return e.rel="preload",e.as="image",e.href="https://d2a18w1f2socv6.cloudfront.net/optimized_image_5717d84716.webp",document.head.appendChild(e),()=>{document.head.removeChild(e)}}function Q(e){return!e}var G=e.i(56151),W=e.i(40638);let Z={hidden:{scale:1},visible:{scale:1}},ee={hidden:{opacity:0,y:20},visible:{opacity:1,y:0}},et={type:"spring",damping:30,stiffness:300},ei=()=>{let e,l,a,r,n,o,c,d,m=(0,i.c)(21),{news:x}=(0,v.useHomePage)();m[0]===Symbol.for("react.memo_cache_sentinel")?(e={triggerOnce:!0,threshold:.1},m[0]=e):e=m[0];let{ref:h,inView:u}=(0,b.useInView)(e),p=x?.news_card_title,f=x?.news_card_image?.url,g=x?.news_card_link;m[1]!==p?(l=p?.trim(),m[1]=p,m[2]=l):l=m[2];let y=!!l,w=!!g&&!y;if(!f)return null;m[3]===Symbol.for("react.memo_cache_sentinel")?(a={type:"spring",stiffness:300},m[3]=a):a=m[3],m[4]!==f?(r=(0,j.getS3Url)(f),m[4]=f,m[5]=r):r=m[5],m[6]!==p||m[7]!==r?(n=(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(s.motion.div,{initial:"hidden",animate:"visible",variants:Z,transition:a,className:"absolute z-0 h-full w-full rounded-[30px] object-cover md:h-auto",children:(0,t.jsx)("img",{src:r,alt:p,width:1200,height:384,className:"h-full w-full rounded-[30px] object-cover brightness-90"})})}),m[6]=p,m[7]=r,m[8]=n):n=m[8];let _=n;return m[9]!==_||m[10]!==y||m[11]!==u||m[12]!==g||m[13]!==p||m[14]!==w?(o=u&&(0,t.jsx)("div",{className:"flex flex-col space-y-8",children:(0,t.jsxs)(s.motion.div,{className:"relative h-96 overflow-hidden rounded-[30px]",transition:et,whileHover:{scale:1.03},whileTap:{scale:.95},children:[w?(0,t.jsx)(W.default,{target:"_blank",rel:"noopener noreferrer",href:g??"",className:"absolute inset-0 block rounded-[30px]","aria-label":"Open news banner link",children:_}):_,y&&(0,t.jsx)(s.motion.a,{target:"_blank",rel:"noopener noreferrer",href:g??"",className:"hover:text-primary absolute right-5 bottom-5 left-7 z-20 max-w-4xl text-lg font-semibold text-white transition-colors duration-300 ease-in-out md:bottom-8 md:left-10 md:text-xl lg:bottom-12 lg:left-16 lg:text-2xl xl:bottom-[70px] xl:left-[90px] xl:text-3xl",initial:"hidden",animate:"visible",variants:ee,transition:{duration:.6,ease:"easeOut"},children:p})]})}),m[9]=_,m[10]=y,m[11]=u,m[12]=g,m[13]=p,m[14]=w,m[15]=o):o=m[15],m[16]!==o?(c=(0,t.jsx)(N.AnimatePresence,{children:o}),m[16]=o,m[17]=c):c=m[17],m[18]!==h||m[19]!==c?(d=(0,t.jsx)("div",{className:"relative z-10",ref:h,children:c}),m[18]=h,m[19]=c,m[20]=d):d=m[20],d},el={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.2,delayChildren:.3}}},ea={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{type:"spring",stiffness:100,damping:10}}},es=()=>{let e,l=(0,i.c)(1);return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(s.motion.div,{variants:ea,className:"mb-12 flex items-center justify-between",children:(0,t.jsx)("h2",{className:"text-3xl font-bold text-[#020202] md:text-4xl lg:text-5xl",children:"News"})}),l[0]=e):e=l[0],e},er=e=>
1{let l,a,r,n,o,c,d,m,x,h,u,p,f,g,b=(0,i.c)(32),{item:v,index:y,inView:w}=e;b[0]===Symbol.for("react.memo_cache_sentinel")?(l={opacity:0,scale:.95,y:30},b[0]=l):l=b[0],b[1]!==w?(a=w?{opacity:1,scale:1,y:0}:{},b[1]=w,b[2]=a):a=b[2];let _=.1*y;b[3]!==_?(r={duration:.6,ease:"easeInOut",delay:_},b[3]=_,b[4]=r):r=b[4];let N=v.Image?.url;b[5]!==N?(n=(0,j.getS3Url)(N),b[5]=N,b[6]=n):n=b[6];let S=v.title??"";return b[7]===Symbol.for("react.memo_cache_sentinel")?(o={position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,color:"transparent"},b[7]=o):o=b[7],b[8]!==n||b[9]!==S?(c=(0,t.jsx)("div",{className:"relative h-[200px] w-full overflow-hidden",children:(0,t.jsx)("img",{src:n,alt:S,className:"aspect-auto h-full w-full object-contain",style:o})}),b[8]=n,b[9]=S,b[10]=c):c=b[10],b[11]!==v.title?(d=(0,t.jsx)("h3",{className:"mb-3 line-clamp-2 text-xl font-semibold text-[#020202]",children:v.title}),b[11]=v.title,b[12]=d):d=b[12],b[13]!==v.content?(m=(0,t.jsx)("p",{className:"mb-4 line-clamp-2 text-sm text-black/70",children:v.content}),b[13]=v.content,b[14]=m):m=b[14],b[15]===Symbol.for("react.memo_cache_sentinel")?(x={x:10},b[15]=x):x=b[15],b[16]!==v.Media?.url||b[17]!==v.isExternal||b[18]!==v.slug?(h=v.isExternal?(0,j.getS3Url)(v.Media?.url):`/news/${v.slug}`,b[16]=v.Media?.url,b[17]=v.isExternal,b[18]=v.slug,b[19]=h):h=b[19],b[20]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(G.ChevronRightIcon,{className:"h-3 w-3"}),b[20]=u):u=b[20],b[21]!==h?(p=(0,t.jsxs)(s.motion.a,{target:"_blank",whileHover:x,href:h,className:"inline-flex items-center gap-2 font-medium text-[#FF4612] transition-colors duration-300 hover:text-[#020202]",children:["Read More",u]}),b[21]=h,b[22]=p):p=b[22],b[23]!==d||b[24]!==m||b[25]!==p?(f=(0,t.jsxs)("div",{className:"p-6",children:[d,m,p]}),b[23]=d,b[24]=m,b[25]=p,b[26]=f):f=b[26],b[27]!==f||b[28]!==a||b[29]!==r||b[30]!==c?(g=(0,t.jsxs)(s.motion.div,{initial:l,animate:a,transition:r,className:"overflow-hidden rounded-xl bg-[#F9F9F9] shadow-md transition-shadow duration-300 hover:shadow-lg",children:[c,f]}),b[27]=f,b[28]=a,b[29]=r,b[30]=c,b[31]=g):g=b[31],g},en=()=>{let e,l=(0,i.c)(1);return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(s.motion.div,{variants:ea,className:"mt-8 text-center",children:(0,t.jsx)(s.motion.a,{whileHover:{scale:1.1},whileTap:{scale:.95},href:"/news",className:"inline-block rounded-full bg-[#FF4612] px-8 py-3 text-lg font-bold text-white transition-colors duration-300 hover:bg-[#394B59] hover:shadow-lg",children:"View More"})}),l[0]=e):e=l[0],e},eo=()=>{let e,l=(0,i.c)(2),{news:a}=(0,v.useHomePage)();return l[0]!==a?.news?(e=(0,t.jsx)(b.InView,{threshold:.1,triggerOnce:!0,children:e=>{let i,{inView:l,ref:r}=e;return(0,t.jsx)("section",{ref:r,id:"news",className:"font-body bg-gradient-to-b from-white to-gray-50 py-16 md:py-20 lg:py-24",children:(0,t.jsx)("div",{className:"container-custom !max-w-7xl",children:(0,t.jsx)(N.AnimatePresence,{children:l&&(0,t.jsxs)(s.motion.div,{initial:"hidden",animate:"visible",exit:"hidden",variants:el,children:[(0,t.jsx)(es,{}),(0,t.jsx)(ei,{}),(0,t.jsx)("div",{className:"mt-12 grid gap-4 md:grid-cols-2 md:gap-8 lg:grid-cols-3 xl:mt-16",children:(i=new Set,a?.news?.filter(e=>!(!e.documentId||i.has(e.documentId))&&(i.add(e.documentId),!0))?.sort(ec)?.slice(0,3)?.map((e,i)=>(0,t.jsx)(er,{item:e,index:i,inView:l},e.documentId)))}),(0,t.jsx)(en,{})]})})})})}}),l[0]=a?.news,l[1]=e):e=l[1],e};function ec(e,t){let i=new Date(e.date??"");return new Date(t.date??"").getTime()-i.getTime()}e.i(3352);var ed=e.i(94386),ed=ed,em=e.i(82623),ex=e.i(40085);let eh={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.5,ease:[.42,0,.58,1]}},exit:{opacity:0,y:20,transition:{duration:.3,ease:[.42,0,.58,1]}}},eu={visible:{transition:{staggerChildren:.1}}};function ep(e){let l,a,r,n,o,c,d,m,x,h,u,p=(0,i.c)(31),{isOpen:f,setIsOpen:g}=e,{products:b,categories:k,customerStories:T}=(0,v.useHomePage)();if(!b||!k||!T)return null;if(p[0]!==k||p[1]!==T||p[2]!==f||p[3]!==b||p[4]!==g){let e,i=k.find(eb),x=b?.filter(e=>e?.category?.id===i?.id);p[13]!==g?(e=()=>{g(!1)},p[13]=g,p[14]=e):e=p[14];let h=e;r=_.Dialog,o=f,p[15]!==g?(c=()=>g(!1),p[15]=g,p[16]=c):c=p[16],d="relative z-50",p[17]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)(_.DialogBackdrop,{
1className:"fixed inset-0 bg-black/30 backdrop-blur-sm"}),p[17]=m):m=p[17],a=_.DialogPanel,l=N.AnimatePresence,n=f&&(0,t.jsx)(s.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"fixed inset-0 z-50 mx-auto flex h-screen w-full items-center justify-center overflow-hidden px-5 py-5",children:(0,t.jsxs)(s.motion.div,{variants:eh,initial:"hidden",animate:"visible",exit:"exit",className:"relative z-10 flex h-full w-max flex-col overflow-hidden rounded-[30px] bg-white",children:[(0,t.jsxs)(s.motion.div,{className:"sticky top-0 z-20 flex items-center justify-between border-b border-gray-200 bg-white p-6 lg:p-12",initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{delay:.2},children:[(0,t.jsx)(s.motion.h2,{variants:eh,className:"text-title text-2xl !leading-[120%] font-bold md:text-3xl lg:text-4xl xl:text-5xl",dangerouslySetInnerHTML:{__html:(0,w.convertAsteriskToSpan)(i?.text??"")??""}}),(0,t.jsx)(s.motion.button,{whileHover:{scale:1.05},whileTap:{scale:.95},title:"close modal",type:"button",className:"flex h-8 w-8 items-center justify-center rounded-full bg-black text-xl text-white",onClick:h,children:(0,t.jsx)(S.X,{className:"h-5 w-5"})})]}),(0,t.jsx)("div",{className:"custom-scrollbar flex-grow overflow-y-auto",children:(0,t.jsxs)("div",{className:(0,y.cn)("relative w-full max-w-[1047px] overflow-x-hidden rounded-[30px] bg-white p-6 max-md:px-4 lg:p-12 xl:p-20 xl:pr-[75px] xl:pb-[72px]",{"xl:p-12":!i?.category_image}),children:[i?.category_image?(0,t.jsxs)(s.motion.div,{variants:eh,className:"relative mb-10 rounded-[30px] after:absolute after:top-0 after:left-0 after:h-full after:w-full after:rounded-[30px] after:bg-gradient-to-b after:from-black/10 after:to-black/0 md:mb-12 lg:mb-16 xl:mb-20",children:[(0,t.jsx)("img",{src:(0,j.getS3Url)(i?.category_image?.url??""),alt:i?.text??"",width:1047,height:300,className:"h-[300px] w-full rounded-3xl object-cover md:rounded-[30px]"}),(0,t.jsx)("h3",{className:"absolute bottom-5 left-5 z-10 max-w-56 pr-5 text-xl !leading-[110%] font-bold text-white capitalize sm:max-w-80 md:bottom-10 md:left-10 md:max-w-[360px] md:text-[26px] lg:text-3xl xl:text-[34px]",dangerouslySetInnerHTML:{__html:(0,w.convertAsteriskToSpan)(i?.category_text??"")}})]}):(0,t.jsx)("h3",{className:"text-foreground z-10 mb-12 pr-5 text-xl font-bold capitalize md:text-[26px] lg:text-3xl xl:text-[34px]",dangerouslySetInnerHTML:{__html:(0,w.convertAsteriskToSpan)(i?.category_text??"")??""}}),(0,t.jsx)(s.motion.div,{variants:eu,initial:"hidden",animate:"visible",className:"grid gap-x-5 gap-y-8 sm:grid-cols-2 lg:grid-cols-3 lg:gap-x-6 lg:gap-y-12",children:x.map(eg)}),(0,t.jsxs)(s.motion.div,{variants:eh,className:"-mx-24 overflow-hidden pt-16 md:pt-20",children:[(0,t.jsx)("h2",{className:"mb-6 text-center text-2xl !leading-[120%] font-bold lg:text-4xl",children:"Customer Experience"}),(0,t.jsxs)("div",{children:[(0,t.jsx)(ex.Swiper,{modules:[em.Navigation,ed.default],navigation:{prevEl:".p-slider-nav-prev",nextEl:".p-slider-nav-next"},autoplay:{delay:5e3,disableOnInteraction:!1},loop:!0,slidesPerView:1,spaceBetween:30,breakpoints:{640:{slidesPerView:2},1024:{slidesPerView:3}},className:"pb-12",children:T.map(ef)}),(0,t.jsx)("div",{className:"swiper-pagination !static flex items-center justify-center pb-10 md:pb-12 lg:pb-16 xl:pb-20"})]}),(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)(s.motion.a,{href:"/products",className:"text-primary text-lg font-bold underline hover:text-black",whileHover:{scale:1.05},whileTap:{scale:.95},children:"View All Products"})})]})]})})]})}),p[0]=k,p[1]=T,p[2]=f,p[3]=b,p[4]=g,p[5]=l,p[6]=a,p[7]=r,p[8]=n,p[9]=o,p[10]=c,p[11]=d,p[12]=m}else l=p[5],a=p[6],r=p[7],n=p[8],o=p[9],c=p[10],d=p[11],m=p[12];return p[18]!==l||p[19]!==n?(x=(0,t.jsx)(l,{children:n}),p[18]=l,p[19]=n,p[20]=x):x=p[20],p[21]!==a||p[22]!==x?(h=(0,t.jsx)(a,{children:x}),p[21]=a,p[22]=x,p[23]=h):h=p[23],p[24]!==r||p[25]!==o||p[26]!==c||p[27]!==d||p[28]!==m||p[29]!==h?(u=(0,t.jsxs)(r,{open:o,onClose:c,className:d,children:[m,h]}
1),p[24]=r,p[25]=o,p[26]=c,p[27]=d,p[28]=m,p[29]=h,p[30]=u):u=p[30],u}function ef(e,i){return(0,t.jsx)(ex.SwiperSlide,{className:"!w-[276px]",children:(0,t.jsxs)(s.motion.a,{target:"_blank",href:"/news#customer-reviews",whileHover:{y:-5},transition:{duration:.3},className:"relative block min-h-[180px] !w-[276px] rounded-[20px] bg-[#F9F9F9] p-[34px] pt-9 transition-all duration-300 hover:border-white hover:bg-white hover:shadow-[0px_11.942px_76.427px_0px_rgba(0,0,0,0.07)]",children:[(0,t.jsx)("div",{className:"mb-5 flex items-center gap-1.5",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h5",{className:"text-xs !leading-[120%] font-bold",children:e?.Name??""}),(0,t.jsx)("span",{className:"block text-[11px] text-black/60 italic",children:e?.location??""})]})}),(0,t.jsx)("p",{className:"line-clamp-5 text-xs text-black/70",title:e?.content??"",children:e?.content??""})]})},i)}function eg(e,i){return(0,t.jsxs)(s.motion.div,{variants:eh,whileHover:{y:-5},transition:{duration:.3},className:"group/product-card flex w-full flex-col items-center justify-center gap-5 rounded-3xl bg-[#F9F9F9] px-4 py-5 text-center transition-all duration-300 hover:bg-white hover:shadow-[0px_8.461px_54px_0px_rgba(0,0,0,0.07)] lg:px-9 lg:py-6",children:[(0,t.jsx)("img",{src:(0,j.getS3Url)(e?.Images?.[0]?.url??"")??"/images/product-1.png",alt:e?.Name??"",width:1080,height:1080,className:"h-40 w-full object-contain md:h-48"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"mb-1.5 text-xl font-bold",children:e?.Name}),(0,t.jsx)("p",{className:"text-black/80",children:e?.excerpt})]}),(0,t.jsxs)(s.motion.a,{href:`/products/${e?.Name?.toLowerCase().replace(/ /g,"-")}`,className:"product-btn group/btn flex items-center gap-6 rounded-full text-sm leading-none group-hover/product-card:bg-[#EAEAEA] group-hover/product-card:p-1 group-hover/product-card:pl-4",whileHover:{scale:1.05},whileTap:{scale:.95},children:[(0,t.jsx)("span",{className:"btn-text hidden group-hover/product-card:block",children:"View Product"}),(0,t.jsx)("span",{className:"btn-icon group-hover/product-card:bg-primary flex h-7 w-7 items-center justify-center rounded-full bg-[#EAEAEA] text-lg text-[#B1B1B1] transition-all duration-300 group-hover/product-card:text-white",children:(0,t.jsx)(U.Plus,{size:16})})]})]},i)}function eb(e){return e?.text==="Appliances"}var ed=ed;let ev={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.5,ease:[.42,0,.58,1]}},exit:{opacity:0,y:20,transition:{duration:.3,ease:[.42,0,.58,1]}}},ey={visible:{transition:{staggerChildren:.1}}};function ew(e){let l,a,r,n,o,c,d,m,x,h,u,p=(0,i.c)(31),{isOpen:f,setIsOpen:g}=e,{products:b,categories:k,customerStories:T}=(0,v.useHomePage)();if(!b||!k||!T)return null;if(p[0]!==k||p[1]!==T||p[2]!==f||p[3]!==b||p[4]!==g){let e,i=k.find(eN),x=b?.filter(e=>e?.category?.id===i?.id);p[13]!==g?(e=()=>{g(!1)},p[13]=g,p[14]=e):e=p[14];let h=e;r=_.Dialog,o=f,p[15]!==g?(c=()=>g(!1),p[15]=g,p[16]=c):c=p[16],d="relative z-50",p[17]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)(_.DialogBackdrop,{className:"fixed inset-0 bg-black/30 backdrop-blur-sm"}),p[17]=m):m=p[17],a=_.DialogPanel,l=N.AnimatePresence,n=f&&(0,t.jsx)(s.motion.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"fixed inset-0 z-50 mx-auto flex h-screen w-full items-center justify-center overflow-hidden px-5 py-5",children:(0,t.jsxs)(s.motion.div,{variants:ev,initial:"hidden",animate:"visible",exit:"exit",className:"relative z-10 flex h-full w-max flex-col overflow-hidden rounded-[30px] bg-white",children:[(0,t.jsxs)(s.motion.div,{className:"sticky top-0 z-20 flex items-center justify-between border-b border-gray-200 bg-white p-6 lg:p-12",initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{delay:.2},children:[(0,t.jsx)(s.motion.h2,{variants:ev,className:"text-title text-2xl !leading-[120%] font-bold md:text-3xl lg:text-4xl xl:text-5xl",dangerouslySetInnerHTML:{__html:(0,w.convertAsteriskToSpan)(i?.text??"")??""}}),(0,t.jsx)(s.motion.button,{whileHover:{scale:1.05},whileTap:{scale:.95},title:"close modal",type:"button",className:"flex h-8 w-8 items-center justify-center rounded-full bg-black text-xl text-white",onClick:h,children:(0,t.jsx)(S.X,{className:"h-5 w-5"})})]}),(0,t.jsx)("div",{className:"custom-scrollbar flex-grow overflow-y-auto",children:(0,t.jsxs)("div",{className:(0,y.cn)("relative w-full max-w-[1047px] overflow-x-hidden rounded-[30px] bg-white p-6 max-md:px-4 lg:p-12 xl:p-20 xl:pr-[75px] xl:pb-[72px]",{"xl:p-12":!i?.category_image}),children:[i?.category_image?(0,t.jsxs)(s.motion.div,{variants:ev,className:"relative mb-10 rounded-[30px] after:absolute after:top-0 after:left-0 after:h-full after:w-full after:rounded-[30px] after:bg-gradient-to-b after:from-black/80 after:to-black/0 md:mb-12 lg:mb-16 xl:mb-20",children:[(0,t.jsx)("img",{src:(0,j.getS3Url)(i?.category_image?.url??""),alt:i?.text??"",width:1047,height:300,className:"h-[300px] w-full rounded-3xl object-cover object-top md:rounded-[30px]"}),(0,t.jsx)("h3",{className:"absolute bottom-5 left-5 z-10 max-w-56 pr-5 text-xl !leading-[110%] font-bold text-white capitalize sm:max-w-80 md:bottom-10 md:left-10 md:max-w-[360px] md:text-[26px] lg:text-3xl xl:text-[34px]",dangerouslySetInnerHTML:{__html:(0,w.convertAsteriskToSpan)(i?.category_text??"")??""}})]}):(0,t.jsx)("h3",{className:"text-foreground z-10 mb-12 pr-5 text-xl font-bold capitalize md:text-[26px] lg:text-3xl xl:text-[34px]",dangerouslySetInnerHTML:{__html:(0,w.convertAsteriskToSpan)(i?.category_text??"")??""}}),(0,t.jsx)(s.motion.div,{variants:ey,initial:"hidden",animate:"visible",className:"grid gap-x-5 gap-y-8 sm:grid-cols-2 lg:grid-cols-3 lg:gap-x-6 lg:gap-y-12",children:x.map(e_)}),(0,t.jsxs)(s.motion.div,{variants:ev,className:"-mx-24 overflow-hidden pt-16 md:pt-20",children:[(0,t.jsx)("h2",{className:"mb-6 text-center text-2xl !leading-[120%] font-bold lg:text-4xl",children:"Customer Experience"}),(0,t.jsxs)("div",{children:[(0,t.jsx)(ex.Swiper,{modules:[em.Navigation,ed.default],navigation:{prevEl:".p-slider-nav-prev",nextEl:".p-slider-nav-next"},autoplay:{delay:5e3,disableOnInteraction:!1},loop:!0,slidesPerView:1,spaceBetween:30,breakpoints:{640:{slidesPerView:2},1024:{slidesPerView:3}},className:"pb-12",children:T.map(ej)}),(0,t.jsx)("div",{className:"swiper-pagination !static flex items-center justify-center pb-10 md:pb-12 lg:pb-16 xl:pb-20"})]}),(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)(s.motion.a,{href:"/products",className:"text-primary text-lg font-bold underline hover:text-black",whileHover:{scale:1.05},whileTap:{scale:.95},children:"View All Products"})})]})]})})]})}),p[0]=k,p[1]=T,p[2]=f,p[3]=b,p[4]=g,p[5]=l,p[6]=a,p[7]=r,p[8]=n,p[9]=o,p[10]=c,p[11]=d,p[12]=m}else l=p[5],a=p[6],r=p[7],n=p[8],o=p[9],c=p[10],d=p[11],m=p[12];return p[18]!==l||p[19]!==n?(x=(0,t.jsx)(l,{children:n}),p[18]=l,p[19]=n,p[20]=x):x=p[20],p[21]!==a||p[22]!==x?(h=(0,t.jsx)(a,{children:x}),p[21]=a,p[22]=x,p[23]=h):h=p[23],p[24]!==r||p[25]!==o||p[26]!==c||p[27]!==d||p[28]!==m||p[29]!==h?(u=(0,t.jsxs)(r,{open:o,onClose:c,className:d,children:[m,h]}),p[24]=r,p[25]=o,p[26]=c,p[27]=d,p[28]=m,p[29]=h,p[30]=u):u=p[30],u}function ej(e,i){return(0,t.jsx)(ex.SwiperSlide,{className:"!w-[276px]",children:(0,t.jsxs)(s.motion.a,{href:"/news#customer-reviews",target:"_blank",whileHover:{y:-5},transition:{duration:.3},className:"relative block min-h-[180px] !w-[276px] rounded-[20px] bg-[#F9F9F9] p-[34px] pt-9 transition-all duration-300 hover:border-white hover:bg-white hover:shadow-[0px_11.942px_76.427px_0px_rgba(0,0,0,0.07)]",children:[(0,t.jsx)("div",{className:"mb-5 flex items-center gap-1.5",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h5",{className:"text-xs !leading-[120%] font-bold",children:e?.Name??""}),(0,t.jsx)("span",{className:"block text-[11px] text-black/60 italic",children:e?.location??""})]})}),(0,t.jsx)("p",{className:"line-clamp-5 text-xs text-black/70",title:e?.content??"",children:e?.content??""})]})},i)}function e_(e,i){return(0,t.jsxs)(s.motion.div,{variants:ev,whileHover:{y:-5},transition:{duration:.3},className:"group/product-card flex w-full flex-col items-center justify-center gap-5 rounded-3xl bg-[#F9F9F9] px-4 py-5 text-center transition-all duration-300 hover:bg-white hover:shadow-[0px_8.461px_54px_0px_rgba(0,0,0,0.07)] lg:px-9 lg:py-6",children:[(0,t.jsx)("img",{src:(0,j.getS3Url)(e?.Images?.[0]?.url??"")??"/images/product-1.png",alt:e?.Name??"",width:200,height:200,className:"w-full"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"mb-1.5 text-xl font-bold",children:e?.Name}),(0,t.jsx)("p",{className:"text-black/80",children:e?.excerpt})]}),(0,t.jsxs)(s.motion.a,{href:`/products/${e?.Name?.toLowerCase().replace(/ /g,"-")}`,className:"product-btn group/btn flex items-center gap-6 rounded-full text-sm leading-none group-hover/product-card:bg-[#EAEAEA] group-hover/product-card:p-1 group-hover/product-card:pl-4",whileHover:{scale:1.05},whileTap:{scale:.95},children:[(0,t.jsx)("span",{className:"btn-text hidden group-hover/product-card:block",children:"View Product"}),(0,t.jsx)("span",{className:"btn-icon group-hover/product-card:bg-primary flex h-7 w-7 items-center justify-center rounded-full bg-[#EAEAEA] text-lg text-[#B1B1B1] transition-all duration-300 group-hover/product-card:text-white",children:(0,t.jsx)(U.Plus,{size:16})})]})]},i)}function eN(e){return e?.text==="Solar Home Systems"}var ed=ed;function eS(e){let l,a,r,n,o,d,m=(0,i.c)(19),{isOpen:x,setIsOpen:h}=e,{products:u,categories:p,customerStories:f}=(0,v.useHomePage)(),[g,b]=(0,c.useState)(!1);if(m[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{b(!0)},a=[],m[0]=l,m[1]=a):(l=m[0],a=m[1]),(0,c.useEffect)(l,a),!u||!p||!f)return null;if(m[2]!==p||m[3]!==f||m[4]!==x||m[5]!==g||m[6]!==u||m[7]!==h){o=Symbol.for("react.early_return_sentinel");e:{let e,i,l,a,c=p.find(eA),d=u?.filter(e=>e?.category?.id===c?.id);m[11]===Symbol.for("react.memo_cache_sentinel")?(e={opacity:0,y:20},m[11]=e):e=m[11],m[12]===Symbol.for("react.memo_cache_sentinel")?(i={opacity:1,y:0,transition:{duration:.5,ease:[.42,0,.58,1]}},m[12]=i):i=m[12],m[13]===Symbol.for("react.memo_cache_sentinel")?(l={hidden:e,visible:i,exit:{opacity:0,y:20,transition:{duration:.3,ease:[.42,0,.58,1]}}},m[13]=l):l=m[13];let b=l;m[14]!==h?(a=()=>{h(!1)},m[14]=h,m[15]=a):a=m[15];let v=a;if(!g){o=null;break e}r=N.AnimatePresence,n=x&&(0,t.jsx)(s.motion.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"bg-opacity-50 fixed inset-0 z-50 flex items-center justify-center overflow-y-auto bg-black",children:(0,t.jsxs)(s.motion.div,{variants:b,initial:"hidden",animate:"visible",exit:"exit",className:"relative mx-auto w-full max-w-[1047px] overflow-hidden rounded-[30px] bg-white",children:[(0,t.jsxs)(s.motion.div,{className:"sticky top-0 z-20 flex items-center justify-between border-b border-gray-200 bg-white p-6 lg:p-12",initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{delay:.2},children:[(0,t.jsx)(s.motion.h2,{variants:b,className:"text-title text-2xl !leading-[120%] font-bold md:text-3xl lg:text-4xl xl:text-5xl",dangerouslySetInnerHTML:{__html:(0,w.convertAsteriskToSpan)(c?.text??"")??""}}),(0,t.jsx)(s.motion.button,{whileHover:{scale:1.05},whileTap:{scale:.95},title:"close modal",type:"button",className:"flex h-8 w-8 items-center justify-center rounded-full bg-black text-xl text-white",onClick:v,children:(0,t.jsx)(S.X,{className:"h-5 w-5"})})]}),(0,t.jsx)("div",{className:"max-h-[calc(90vh-80px)] overflow-y-auto",children:(0,t.jsxs)("div",{className:(0,y.cn)("relative p-6 max-md:px-4 lg:p-12 xl:p-20 xl:pr-[75px] xl:pb-[72px]",{"xl:p-12":!c?.category_image}),children:[c?.category_image?(0,t.jsxs)(s.motion.div,{variants:b,className:"relative mb-10 rounded-[30px] after:absolute after:top-0 after:left-0 after:h-full after:w-full after:rounded-[30px] after:bg-gradient-to-b after:from-black/0 after:to-black/90 md:mb-14",children:[(0,t.jsx)("img",{src:(0,j.getS3Url)(c?.category_image?.url??""),alt:"impact img",width:1047,height:300,className:"h-[300px] w-full rounded-3xl object-cover md:rounded-[30px]"}),(0,t.jsx)("h3",{className:"absolute bottom-5 left-5 z-10 max-w-[620px] pr-5 text-xl leading-[110%] font-bold text-white md:bottom-10 md:left-10 md:text-[26px] lg:text-3xl xl:text-[34px]",dangerouslySetInnerHTML:{__html:(0,w.convertAsteriskToSpan)(c?.category_text??"")}})]}):(0,t.jsx)("h3",{className:"text-foreground z-10 mb-12 pr-5 text-xl font-bold capitalize md:text-[26px] lg:text-3xl xl:text-[34px]",dangerouslySetInnerHTML:{__html:(0,w.convertAsteriskToSpan)(c?.category_text??"")??""}}),(0,t.jsx)(s.motion.div,{variants:b,className:"grid gap-x-5 gap-y-[18px] sm:grid-cols-2 lg:grid-cols-3 lg:gap-x-6",children:d.map(eT)}),(0,t.jsxs)(s.motion.div,{variants:b,className:"-mx-24 overflow-hidden pt-16 md:pt-20",children:[(0,t.jsx)("h2",{className:"mb-6 text-center text-2xl leading-[120%] font-bold lg:text-4xl",children:"Customer Experience"}),(0,t.jsxs)("div",{children:[(0,t.jsx)(ex.Swiper,{modules:[em.Navigation,ed.default],navigation:{prevEl:".p-slider-nav-prev",nextEl:".p-slider-nav-next"},autoplay:{delay:5e3,disableOnInteraction:!1},loop:!0,slidesPerView:1,spaceBetween:30,breakpoints:{640:{slidesPerView:2},1024:{slidesPerView:3}},className:"pb-12",children:f.map(ek)}),(0,t.jsx)("div",{className:"swiper-pagination !static flex items-center justify-center pb-10 md:pb-12 lg:pb-16 xl:pb-20"})]}),(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)(s.motion.a,{href:"/products",className:"text-primary text-lg font-bold underline hover:text-black",whileHover:{scale:1.05},whileTap:{scale:.95},children:"View All Products"})})]})]})})]})})}m[2]=p,m[3]=f,m[4]=x,m[5]=g,m[6]=u,m[7]=h,m[8]=r,m[9]=n,m[10]=o}else r=m[8],n=m[9],o=m[10];return o!==Symbol.for("react.early_return_sentinel")?o:(m[16]!==r||m[17]!==n?(d=(0,t.jsx)(r,{children:n}),m[16]=r,m[17]=n,m[18]=d):d=m[18],d)}function ek(e,i){return(0,t.jsx)(ex.SwiperSlide,{className:"!w-[276px]",children:(0,t.jsxs)(s.motion.a,{target:"_blank",href:"/news#customer-reviews",whileHover:{y:-5},transition:{duration:.3},className:"relative block min-h-[180px] !w-[276px] rounded-[20px] bg-[#F9F9F9] p-[34px] pt-9 transition-all duration-300 hover:border-white hover:bg-white hover:shadow-[0px_11.942px_76.427px_0px_rgba(0,0,0,0.07)]",children:[(0,t.jsx)("div",{className:"mb-5 flex items-center gap-1.5",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h5",{className:"text-xs leading-[120%] font-bold",children:e?.Name??""}),(0,t.jsx)("span",{className:"block text-[11px] text-black/60 italic",children:e?.location??""})]})}),(0,t.jsx)("p",{className:"line-clamp-5 text-xs text-black/70",title:e?.content??"",children:e?.content??""})]})},i)}function eT(e,i){return(0,t.jsxs)(s.motion.div,{whileHover:{y:-5},transition:{duration:.3},className:"group/product-card flex w-full flex-col items-center justify-center gap-5 rounded-3xl bg-[#F9F9F9] px-4 py-5 text-center transition-all duration-300 hover:bg-white hover:shadow-[0px_8.461px_54px_0px_rgba(0,0,0,0.07)] lg:px-5 lg:py-6",children:[(0,t.jsx)("img",{height:480,width:480,className:"w-full",alt:e?.Name??"",src:(0,j.getS3Url)(e?.Images?.[0]?.url??"")??"/images/product-1.png"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"mb-1.5 text-xl font-bold",children:e?.Name}),(0,t.jsx)("p",{className:"text-black/80",children:e?.excerpt})]}),(0,t.jsxs)(s.motion.a,{href:`/products/${e?.Name?.toLowerCase().replace(/ /g,"-")}`,className:"product-btn group/btn flex items-center gap-6 rounded-full text-sm leading-none group-hover/product-card:bg-[#EAEAEA] group-hover/product-card:p-1 group-hover/product-card:pl-4",whileHover:{scale:1.05},whileTap:{scale:.95},children:[(0,t.jsx)("span",{className:"btn-text hidden group-hover/product-card:block",children:"View Product"}),(0,t.jsx)("span",{className:"btn-icon group-hover/product-card:bg-primary flex h-7 w-7 items-center justify-center rounded-full bg-[#EAEAEA] text-lg text-[#B1B1B1] transition-all duration-300 group-hover/product-card:text-white",children:(0,t.jsx)(U.Plus,{size:16})})]})]},i)}function eA(e){return e?.text==="Solar Inverters"}var ed=ed;let eF={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.5,ease:[.42,0,.58,1]}},exit:{opacity:0,y:20,transition:{duration:.3,ease:[.42,0,.58,1]}}},eC={visible:{transition:{staggerChildren:.1}}};
1function eE(e){let l,a,r,n,o,c,d,m,x,h,u,p=(0,i.c)(31),{isOpen:f,setIsOpen:g}=e,{products:b,categories:k,customerStories:T}=(0,v.useHomePage)();if(!b||!k||!T)return null;if(p[0]!==k||p[1]!==T||p[2]!==f||p[3]!==b||p[4]!==g){let e,i=k.find(eI),x=b?.filter(e=>e?.category?.id===i?.id);p[13]!==g?(e=()=>{g(!1)},p[13]=g,p[14]=e):e=p[14];let h=e;r=_.Dialog,o=f,p[15]!==g?(c=()=>g(!1),p[15]=g,p[16]=c):c=p[16],d="relative z-50",p[17]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)(_.DialogBackdrop,{className:"fixed inset-0 bg-black/30 backdrop-blur-sm"}),p[17]=m):m=p[17],a=_.DialogPanel,l=N.AnimatePresence,n=f&&(0,t.jsx)(s.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"fixed inset-0 z-50 mx-auto flex h-screen w-full items-center justify-center overflow-hidden px-5 py-5",children:(0,t.jsxs)(s.motion.div,{variants:eF,initial:"hidden",animate:"visible",exit:"exit",className:"relative z-10 flex h-full w-max flex-col overflow-hidden rounded-[30px] bg-white",children:[(0,t.jsxs)(s.motion.div,{className:"sticky top-0 z-20 flex items-center justify-between border-b border-gray-200 bg-white p-6 lg:p-12",initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{delay:.2},children:[(0,t.jsx)(s.motion.h2,{variants:eF,className:"text-title text-2xl !leading-[120%] font-bold md:text-3xl lg:text-4xl xl:text-5xl",dangerouslySetInnerHTML:{__html:(0,w.convertAsteriskToSpan)(i?.text??"")??""}}),(0,t.jsx)(s.motion.button,{whileHover:{scale:1.05},whileTap:{scale:.95},title:"close modal",type:"button",className:"flex h-8 w-8 items-center justify-center rounded-full bg-black text-xl text-white",onClick:h,children:(0,t.jsx)(S.X,{className:"h-5 w-5"})})]}),(0,t.jsx)("div",{className:"custom-scrollbar flex-grow overflow-y-auto",children:(0,t.jsxs)("div",{className:(0,y.cn)("relative w-full max-w-[1047px] overflow-x-hidden rounded-[30px] bg-white p-6 max-md:px-4 lg:p-12 xl:p-20 xl:pr-[75px] xl:pb-[72px]",{"xl:p-12":!i?.category_image}),children:[i?.category_image?(0,t.jsxs)(s.motion.div,{variants:eF,className:"relative mb-10 rounded-[30px] after:absolute after:top-0 after:left-0 after:h-full after:w-full after:rounded-[30px] after:bg-gradient-to-b after:from-black/10 after:to-black/0 md:mb-12 lg:mb-16 xl:mb-20",children:[(0,t.jsx)("img",{src:(0,j.getS3Url)(i?.category_image?.url??""),alt:i?.text??"",width:1047,height:300,className:"h-[300px] w-full rounded-3xl object-cover md:rounded-[30px]"}),(0,t.jsx)("h3",{className:"absolute bottom-5 left-5 z-10 max-w-56 pr-5 text-xl !leading-[110%] font-bold text-white capitalize sm:max-w-80 md:bottom-10 md:left-10 md:max-w-[360px] md:text-[26px] lg:text-3xl xl:text-[34px]",dangerouslySetInnerHTML:{__html:(0,w.convertAsteriskToSpan)(i?.category_text??"")}})]}):(0,t.jsx)("h3",{className:"text-foreground z-10 mb-12 pr-5 text-xl font-bold capitalize md:text-[26px] lg:text-3xl xl:text-[34px]",dangerouslySetInnerHTML:{__html:(0,w.convertAsteriskToSpan)(i?.category_text??"")??""}}),(0,t.jsx)(s.motion.div,{variants:eC,initial:"hidden",animate:"visible",className:"grid gap-x-5 gap-y-8 sm:grid-cols-2 lg:grid-cols-3 lg:gap-x-6 lg:gap-y-12",children:x?.map(eH)}),(0,t.jsxs)(s.motion.div,{variants:eF,className:"-mx-24 overflow-hidden pt-16 md:pt-20",children:[(0,t.jsx)("h2",{className:"mb-6 text-center text-2xl !leading-[120%] font-bold lg:text-4xl",children:"Customer Experience"}),(0,t.jsxs)("div",{children:[(0,t.jsx)(ex.Swiper,{modules:[em.Navigation,ed.default],navigation:{prevEl:".p-slider-nav-prev",nextEl:".p-slider-nav-next"},autoplay:{delay:5e3,disableOnInteraction:!1},loop:!0,slidesPerView:1,spaceBetween:30,breakpoints:{640:{slidesPerView:2},1024:{slidesPerView:3}},className:"pb-12",children:T.map(ez)}),(0,t.jsx)("div",{className:"swiper-pagination !static flex items-center justify-center pb-10 md:pb-12 lg:pb-16 xl:pb-20"})]}),(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)(s.motion.a,{href:"/products",className:"text-primary text-lg font-bold underline hover:text-black",whileHover:{scale:1.05},whileTap:{scale:.95},children:"View All Products"})})]})]})})]})}),p[0]=k,p[1]=T,p[2]=f,p[3]=b,p[4]=g,p[5]=l,p[6]=a,p[7]=r,p[8]=n,p[9]=o,p[10]=c,p[11]=d,p[12]=m}else l=p[5],a=p[6],r=p[7],n=p[8],o=p[9],c=p[10],d=p[11],m=p[12];return p[18]!==l||p[19]!==n?(x=(0,t.jsx)(l,{children:n}),p[18]=l,p[19]=n,p[20]=x):x=p[20],p[21]!==a||p[22]!==x?(h=(0,t.jsx)(a,{children:x}),p[21]=a,p[22]=x,p[23]=h):h=p[23],p[24]!==r||p[25]!==o||p[26]!==c||p[27]!==d||p[28]!==m||p[29]!==h?(u=(0,t.jsxs)(r,{open:o,onClose:c,className:d,children:[m,h]}
1),p[24]=r,p[25]=o,p[26]=c,p[27]=d,p[28]=m,p[29]=h,p[30]=u):u=p[30],u}function ez(e,i){return(0,t.jsx)(ex.SwiperSlide,{className:"!w-[276px]",children:(0,t.jsxs)(s.motion.a,{target:"_blank",href:"/news#customer-reviews",whileHover:{y:-5},transition:{duration:.3},className:"relative block min-h-[180px] !w-[276px] rounded-[20px] bg-[#F9F9F9] p-[34px] pt-9 transition-all duration-300 hover:border-white hover:bg-white hover:shadow-[0px_11.942px_76.427px_0px_rgba(0,0,0,0.07)]",children:[(0,t.jsx)("div",{className:"mb-5 flex items-center gap-1.5",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h5",{className:"text-xs !leading-[120%] font-bold",children:e?.Name??""}),(0,t.jsx)("span",{className:"block text-[11px] text-black/60 italic",children:e?.location??""})]})}),(0,t.jsx)("p",{className:"line-clamp-5 text-xs text-black/70",title:e?.content??"",children:e?.content??""})]})},i)}function eH(e,i){return(0,t.jsxs)(s.motion.div,{variants:eF,whileHover:{y:-5},transition:{duration:.3},className:"group/product-card flex w-full flex-col items-center justify-center gap-5 rounded-3xl bg-[#F9F9F9] px-4 py-5 text-center transition-all duration-300 hover:bg-white hover:shadow-[0px_8.461px_54px_0px_rgba(0,0,0,0.07)] lg:px-9 lg:py-6",children:[(0,t.jsx)("img",{width:480,height:480,className:"w-full",alt:e?.Name??"",src:(0,j.getS3Url)(e?.Images?.[0]?.url??"")??"/images/product-1.png"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"mb-1.5 text-xl font-bold",children:e?.Name}),(0,t.jsx)("p",{className:"text-black/80",children:e?.excerpt})]}),(0,t.jsxs)(s.motion.a,{href:`/products/${e?.Name?.toLowerCase().replace(/ /g,"-")}`,className:"product-btn group/btn flex items-center gap-6 rounded-full text-sm leading-none group-hover/product-card:bg-[#EAEAEA] group-hover/product-card:p-1 group-hover/product-card:pl-4",whileHover:{scale:1.05},whileTap:{scale:.95},children:[(0,t.jsx)("span",{className:"btn-text hidden group-hover/product-card:block",children:"View Product"}),(0,t.jsx)("span",{className:"btn-icon group-hover/product-card:bg-primary flex h-7 w-7 items-center justify-center rounded-full bg-[#EAEAEA] text-lg text-[#B1B1B1] transition-all duration-300 group-hover/product-card:text-white",children:(0,t.jsx)(U.Plus,{size:16})})]})]},i)}function eI(e){return e?.text==="Solar Lanterns"}var eP=e.i(54344),eR=e.i(76819),eM=e.i(72079);let eL=()=>{let e,l,a,r,n=(0,i.c)(14),[o,d]=(0,c.useState)(),{categories:m,ourProducts:x}=(0,v.useHomePage)(),h=(0,c.useRef)(null),[u,p]=(0,c.useState)(!1),[f,g]=(0,c.useState)(!1),[y,w]=(0,c.useState)(!1),[_,N]=(0,c.useState)(!1);n[0]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{"Solar Home Systems"===e?p(!0):"Solar Inverters"===e?g(!0):"Solar Lanterns"===e?w(!0):"Appliances"===e&&N(!0)},n[0]=e):e=n[0];let S=e;n[1]!==o?(l=e=>{if(!o)return;let t=()=>{"right"===e?o.scrollNext():o.scrollPrev()};h.current&&clearInterval(h.current),t(),h.current=setInterval(t,1e3)},n[1]=o,n[2]=l):l=n[2];let k=l;if(n[3]!==m){let e={text:"Coming Soon",description:"Details will be available soon.",featured_image:{url:"/new/images/products/placeholder.png"}};a=["Solar Home Systems","Solar Inverters","Appliances","Solar Lanterns"].map(t=>m.find(e=>e?.text===t)??e),n[3]=m,n[4]=a}else a=n[4];let T=a;if(!m){let e;return n[5]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("div",{children:"No categories found"}),n[5]=e):e=n[5],e}return x?(n[6]!==k||n[7]!==T||n[8]!==x?.title||n[9]!==_||n[10]!==u||n[11]!==f||n[12]!==y?(r=(0,t.jsx)(b.InView,{threshold:.1,children:e=>{let{inView:i,ref:l}=e;return(0,t.jsxs)("section",{ref:l,className:"font-body overflow-hidden py-16 md:py-20 lg:py-24",children:[(0,t.jsxs)("div",{className:"container-custom mx-auto max-w-7xl px-4",children:[(0,t.jsxs)(s.motion.div,{initial:{opacity:0,y:20},animate:i?{opacity:1,y:0}:{},transition:{duration:.6},className:"mb-12 flex flex-col justify-between md:mb-16 md:flex-row md:items-end",children:[(0,t.jsx)("div",{className:"mb-6 md:mb-0",children:(0,t.jsx)("h5",{className:"mb-2 text-sm font-bold text-[#FF4612] sm:text-base lg:text-xl",children:x?.title})}),(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("button",{type:"button","aria-label":"Previous slide",className:"p-slider-nav-prev flex h-10 w-10 items-center justify-center rounded-full bg-white text-[#FF4612] shadow-md transition-all duration-300 hover:bg-[#FF4612] hover:text-white",onClick:()=>k("left"),children:(0,t.jsx)(eM.ChevronLeftIcon,{className:"h-5 w-5"})}),(0,t.jsx)("button",{type:"button","aria-label":"Next slide",className:"p-slider-nav-next flex h-10 w-10 items-center justify-center rounded-full bg-white text-[#FF4612] shadow-md transition-all duration-300 hover:bg-[#FF4612] hover:text-white",onClick:()=>k("right"),children:(0,t.jsx)(G.ChevronRightIcon,{className:"h-5 w-5"})})]})]}),(0,t.jsx)(eR.Carousel,{setApi:d,className:"mx-auto max-w-7xl",children:(0,t.jsx)(eR.CarouselContent,{children:T.map((e,l)=>(0,t.jsx)(eR.CarouselItem,{className:"xl:basis[33%] md:basis-[29%]",children:(0,t.jsxs)(s.motion.div,{initial:{opacity:0,y:20},animate:i?{opacity:1,y:0,scale:.9}:{},transition:{duration:.5,delay:.1*l},onClick:()=>S(e?.text??""),className:"flex h-[400px] cursor-pointer flex-col overflow-hidden rounded-[30px] transition-all duration-500 hover:bg-white hover:shadow-[0px_12px_78px_0px_rgba(0,0,0,0.07)] bg-[#F9F9F9] p-6 px-10",children:[(0,t.jsx)("div",{className:"relative mb-4 flex h-[180px] items-center justify-center",children:(0,t.jsx)("img",{src:(0,j.getS3Url)(e?.featured_image?.url),alt:e?.text??"",className:"h-full w-full object-contain mix-blend-multiply transition-transform duration-300 group-hover:scale-105",style:{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,color:"transparent"}})}),(0,t.jsxs)("div",{className:"flex flex-grow flex-col items-center",children:[(0,t.jsx)("h3",{className:"mb-2 text-xl font-bold transition-colors duration-300 md:text-2xl text-black/70",children:e?.text}),(0,t.jsx)("p",{className:"mb-4 text-center text-sm transition-colors duration-300 md:text-lg text-black/50",children:e?.description}),(0,t.jsx)(eP.default,{text:"View Products"})]})]})},l))})})]}),(0,t.jsx)(ew,{isOpen:u,setIsOpen:p}),(0,t.jsx)(eS,{isOpen:f,setIsOpen:g}),(0,t.jsx)(eE,{isOpen:y,setIsOpen:w}),(0,t.jsx)(ep,{isOpen:_,setIsOpen:N})]})}}
1),n[6]=k,n[7]=T,n[8]=x?.title,n[9]=_,n[10]=u,n[11]=f,n[12]=y,n[13]=r):r=n[13],r):null};var eU=e.i(13907);let eV=()=>{let e,l,a,s,r,n,o,c,d,m,x,h,u=(0,i.c)(25),{reachout:p}=(0,v.useHomePage)();u[0]===Symbol.for("react.memo_cache_sentinel")?(e={threshold:.1,triggerOnce:!0},u[0]=e):e=u[0];let{ref:f,inView:g}=(0,b.useInView)(e);u[1]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(eU.default,{id:"4ac2e080995eff1d",children:"@keyframes fadeInLeft{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.animate-fadeInLeft.jsx-4ac2e080995eff1d{animation:.6s ease-out forwards fadeInLeft}.animate-fadeInUp.jsx-4ac2e080995eff1d{animation:.6s ease-out forwards fadeInUp}"}),a=(0,j.getS3Url)("https://d2a18w1f2socv6.cloudfront.net/explore_area_shape_1b5f7c90bb.png"),u[1]=l,u[2]=a):(l=u[1],a=u[2]);let w=g?"animate-fadeInLeft":"opacity-0";u[3]!==w?(s=(0,y.cn)("absolute -top-16 left-0 w-28 md:-top-20 md:w-36 xl:-top-28 xl:w-[200px]",w),u[3]=w,u[4]=s):s=u[4],u[5]!==s?(r=(0,t.jsx)("img",{src:a,alt:"explore-area-shape",width:1080,height:1080,className:s}),u[5]=s,u[6]=r):r=u[6],u[7]!==p?.image?.url?(n=(0,j.getS3Url)(p?.image?.url)??"/new/images/home/reachout.jpg",u[7]=p?.image?.url,u[8]=n):n=u[8],u[9]!==n?(o=(0,t.jsx)("img",{height:1080,width:1080,src:n,className:"min-h-72 w-full rounded-[40px] object-cover lg:max-h-[900px]",alt:"Explore sustainable solutions with d.light - Reach out now"}),u[9]=n,u[10]=o):o=u[10];let _=g?"animate-fadeInUp":"opacity-0";u[11]!==_?(c=(0,y.cn)("absolute right-8 bottom-8 left-8 z-10 md:bottom-16 md:left-16 lg:bottom-28 lg:left-28 xl:bottom-[160px] xl:left-[140px]",_),u[11]=_,u[12]=c):c=u[12];let N=p?.CTA_BTN_TEXT;return u[13]!==N?(d=(0,t.jsx)("a",{href:"/contact",target:"_blank",className:"font-body button-hover inline-block w-40 rounded-full bg-[#FF4612] p-8 py-4 text-center leading-none text-white transition-all duration-500 hover:scale-110 hover:bg-[#394b59] md:w-[240px] md:text-lg lg:py-[20px] lg:text-xl",children:N}),u[13]=N,u[14]=d):d=u[14],u[15]!==d||u[16]!==c?(m=(0,t.jsx)("div",{className:c,children:d}),u[15]=d,u[16]=c,u[17]=m):m=u[17],u[18]!==m||u[19]!==o?(x=(0,t.jsx)("div",{className:"px-6 lg:px-10",children:(0,t.jsxs)("div",{className:"group relative z-10 overflow-hidden rounded-[40px] after:absolute after:top-0 after:left-0 after:h-full after:w-full after:rounded-[40px]",children:[o,m]})}),u[18]=m,u[19]=o,u[20]=x):x=u[20],u[21]!==f||u[22]!==x||u[23]!==r?(h=(0,t.jsxs)("section",{ref:f,id:"contact",className:"relative mb-12 pb-4",children:[l,r,x]}),u[21]=f,u[22]=x,u[23]=r,u[24]=h):h=u[24],h},eO=e=>{let l,a,r,n,o,c,d,m,x,h=(0,i.c)(19),{image:u,title:p,description:f,link:g}=e;h[0]===Symbol.for("react.memo_cache_sentinel")?(l={scale:1.02,transition:{duration:.3}},a={scale:.98},h[0]=l,h[1]=a):(l=h[0],a=h[1]);let b="string"==typeof p?p:"Social impact image";return h[2]===Symbol.for("react.memo_cache_sentinel")?(r={position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,color:"transparent"},h[2]=r):r=h[2],h[3]!==u||h[4]!==b?(n=(0,t.jsx)("img",{src:u,alt:b,className:"object-cover",style:r}),h[3]=u,h[4]=b,h[5]=n):n=h[5],h[6]!==p?(o=(0,w.convertAsteriskToSpan)(p),h[6]=p,h[7]=o):o=h[7],h[8]!==o?(c=(0,t.jsx)("h3",{className:"font-body mb-2 text-2xl font-bold sm:text-3xl lg:text-4xl",dangerouslySetInnerHTML:{__html:o}}),h[8]=o,h[9]=c):c=h[9],h[10]!==f?(d=(0,t.jsx)("p",{className:"font-body text-xl leading-snug font-bold opacity-90 sm:text-2xl lg:text-3xl",children:f}),h[10]=f,h[11]=d):d=h[11],h[12]!==c||h[13]!==d?(m=(0,t.jsxs)("div",{className:"absolute inset-0 flex flex-col justify-end bg-gradient-to-b from-black/80 to-black/0 p-8 text-white sm:p-8",children:[c,d]}),h[12]=c,h[13]=d,h[14]=m):m=h[14],h[15]!==g||h[16]!==m||h[17]!==n?(x=(0,t.jsx)(s.motion.div,{className:"relative h-[280px] overflow-hidden rounded-3xl shadow-lg sm:h-[320px] md:rounded-[30px] lg:h-[370px]",whileHover:l,whileTap:a,children:(0,t.jsxs)("a",{href:g,className:"relative block h-full",children:[n,m]})}),h[15]=g,h[16]=m,h[17]=n,h[18]=x):x=h[18],x},eB=()=>{let e,l,a,n,o,d,m,x,h,u,p,f,g,y=(0,i.c)(25),{socialImpact:w}=(0,v.useHomePage)(),j=(0,r.useAnimation)();y[0]===Symbol.for("react.memo_cache_sentinel")?(e={threshold:.1,triggerOnce:!0},y[0]=e):e=y[0];let{ref:_,inView:N}=(0,b.useInView)(e);y[1]!==j||y[2]!==N?(l=()=>{N&&j.start("visible")},a=[j,N],y[1]=j,y[2]=N,y[3]=l,y[4]=a):(l=y[3],a=y[4]),(0,c.useEffect)(l,a),y[5]===Symbol.for("react.memo_cache_sentinel")?(n={opacity:0,y:50},y[5]=n):n=y[5],y[6]===Symbol.for("react.memo_cache_sentinel")?(o={hidden:n,visible:{opacity:1,y:0,transition:{duration:.8,staggerChildren:.3}}},y[6]=o):o=y[6];let S=o;y[7]===Symbol.for("react.memo_cache_sentinel")?(d={opacity:0,y:20},y[7]=d):d=y[7],y[8]===Symbol.for("react.memo_cache_sentinel")?(m={hidden:d,visible:{opacity:1,y:0,transition:{duration:.5}}},y[8]=m):m=y[8];let k=m;return w?(y[9]!==w.Title?(x=(0,t.jsx)("h5",{className:"mb-2 text-sm font-bold text-[#FF4612] sm:text-base lg:text-xl",children:w.Title}),y[9]=w.Title,y[10]=x):x=y[10],y[11]!==w.Heading?(h=(0,t.jsx)("h2",{className:"mx-auto max-w-[300px] text-xl leading-[115%] font-bold text-[#020202] sm:max-w-[350px] sm:text-3xl md:max-w-[440px] md:text-3xl lg:max-w-[520px] lg:text-4xl xl:max-w-[700px] xl:text-5xl",children:w.Heading}),y[11]=w.Heading,y[12]=h):h=y[12],y[13]!==x||y[14]!==h?(u=(0,t.jsxs)(s.motion.div,{variants:k,className:"font-body mb-10 text-center lg:mb-16 xl:mb-20",children:[x,h]}),y[13]=x,y[14]=h,y[15]=u):u=y[15],y[16]!==w.Card?(p=w.Card?.map(eD),y[16]=w.Card,y[17]=p):p=y[17],y[18]!==p?(f=(0,t.jsx)("div",{className:"flex flex-col gap-5 md:gap-7 lg:gap-10",children:p}),y[18]=p,y[19]=f):f=y[19],y[20]!==j||y[21]!==_||y[22]!==f||y[23]!==u?(g=(0,t.jsxs)(s.motion.section,{ref:_,initial:"hidden",animate:j,id:"social-impact",variants:S,className:"container mx-auto max-w-7xl px-4 py-6 sm:py-8",children:[u,f]}),y[20]=j,y[21]=_,y[22]=f,y[23]=u,y[24]=g):g=y[24],g):null};function eD(e){return(0,t.jsx)(eO,{image:(0,j.getS3Url)(e.Image?.url),description:e.Description??"",title:e.Label??"",link:"/our-impact"},e.id)}e.s(["default",0,()=>{let e,s,r,n,o,c,d,m,x,h,u=(0,i.c)(14),{difference:p,partners:f}=(0,v.useHomePage)();return u[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(K,{}),s=(0,t.jsx)(eB,{}),r=(0,t.jsx)(M,{}
1),u[0]=e,u[1]=s,u[2]=r):(e=u[0],s=u[1],r=u[2]),u[3]!==p?(n=p&&(0,t.jsx)(l.default,{difference:p}),u[3]=p,u[4]=n):n=u[4],u[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(eL,{}),u[5]=o):o=u[5],u[6]!==f?(c=f&&(0,t.jsx)(a.default,{partners:f}),u[6]=f,u[7]=c):c=u[7],u[8]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(B,{}),m=(0,t.jsx)(eo,{}),x=(0,t.jsx)(eV,{}),u[8]=d,u[9]=m,u[10]=x):(d=u[8],m=u[9],x=u[10]),u[11]!==n||u[12]!==c?(h=(0,t.jsxs)("div",{children:[e,s,r,n,o,c,d,m,x]}),u[11]=n,u[12]=c,u[13]=h):h=u[13],h}],35849)}]);

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.