PageSourceSearch

https://www.sunlighten.com/FeatureShowcaseSlider-4202d6c63277c734c02a.js

js sunlighten.com collected 2026-10-01 12:02:08 UTC 10,050 bytes, 2 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[871],{30531:function(e,t,a){var l=a(46518),r=a(69565),o=a(79306),n=a(28551),i=a(1767),s=a(48646),c=a(19462),d=a(9539),u=a(79039),m=a(96395),f=a(30684),h=a(84549),v=!m&&u(function(){return 1!==[1].values().flatMap(function(){return[1]}).find(function(){return!0})}),g=!m&&!v&&!f("flatMap",function(){}),w=!m&&!v&&!g&&h("flatMap",TypeError),p=m||v||g||w,b=c(function(){for(var e,t,a=this.iterator,l=this.mapper;;){if(t=this.inner)try{if(!(e=n(r(t.next,t.iterator))).done)return e.value;this.inner=null}catch(o){d(a,"throw",o)}if(e=n(r(this.next,a)),this.done=!!e.done)return;try{this.inner=s(l(e.value,this.counter++),!1)}catch(o){d(a,"throw",o)}}});l({target:"Iterator",proto:!0,real:!0,forced:p},{flatMap:function(e){n(this);try{o(e)}catch(t){d(this,"throw",t)}return w?r(w,this,e):new b(i(this),{mapper:e,inner:null})}})},36187:function(e,t,a){a.d(t,{A:function(){return n}});var l=a(96540),r=a(60739),o=a(74564);var n=({className:e,strokeColor:t,direction:a,handleClick:n,"aria-label":i})=>l.createElement("button",{type:"button",className:`${e} arrow-lg-button-module--button--adbc1`,onClick:n,"aria-label":i||("left"===a?"Previous":"Next")},"right"===a&&l.createElement(o.A,{strokeColor:t}),"left"===a&&l.createElement(r.A,{strokeColor:t}))},48390:function(e,t,a){a.r(t),a.d(t,{default:function(){return p}});a(18111),a(61701);var l=a(96540),r=a(686),o="feature-showcase-slider-module--imageFrame--30626",n="feature-showcase-slider-module--inner--2991f",i="feature-showcase-slider-module--richTextRoot--d8a77",s="feature-showcase-slider-module--section--7d210",c="feature-showcase-slider-module--slideImage--53a2d",d=a(11686),u=a(3777),m=a(48229),f=a(34704),h=a(33686),v=a(21153),g=a(36187),w=a(42899);a(22489),a(30531);var p=({headline_line_1:e,headline_line_2:t,headline_line_3:a,description:p,categories:b,categories_background_color:_,categories_font_color:k,cta_configuration__cta_label:E,cta_configuration__cta_location:y,cta_configuration__cta_location_anchor_point:N,cta_configuration__cta_window_action:C,auto_scroll:x,gradient_background:S,background_color_1:A,background_color_2:L,font_color:M,anchor_id:D,kontentItemId:T})=>{const I=(0,r.dv)(),U=(0,m.D)(),$=(0,l.useId)().replace(/:/g,""),B=`${$}-slide-panel`,R=(0,l.useMemo)(()=>function(e){const t=null==e?void 0:e.value;if(null==t)return[];const a=Array.isArray(t)?t:[t];return a.length?a.map((e,t)=>{var a,l,r,o,n,i;const s=(0,u.Dv)({value:[e]}),c=(null==s?void 0:s.url)||"",d=null===(a=e.elements)||void 0===a||null===(l=a.caption)||void 0===l?void 0:l.value,m=d||(null==s?void 0:s.name)||(null===(r=e.elements)||void 0===r||null===(o=r.file)||void 0===o||null===(n=o.value)||void 0===n||null===(i=n[0])||void 0===i?void 0:i.name)||"Slide",f=e.id||`slide-${t}`,h=(null==s?void 0:s.description)||(null==s?void 0:s.name)||d||m||"",v=[375,480,552,640,748].map(e=>`${(0,u.HT)(c,{w:e,fm:"webp",q:80})} ${e}w`).join(", "),g=(0,u.o6)(null==s?void 0:s.width,null==s?void 0:s.height,748);return{id:f,imageUrl:(0,u.HT)(c,{w:748,fm:"webp",q:80}),imageSrcSet:v,imageWidth:g.width,imageHeight:g.height,label:m,alt:h}}):[]}(b),[b]),[W,H]=(0,l.useState)(0),[P,F]=(0,l.useState)(!1),[O,j]=(0,l.useState)(!1),q=(0,l.useRef)(null),z=R.length;(0,l.useEffect)(()=>{W>=z&&z>0&&H(0)},[W,z]);const K="yes"===((0,u.To)(x)||"").toLowerCase(),V="yes"===((0,u.To)(S)||"").toLowerCase(),G=(0,u.oU)(A)||"#EF6825",J=(0,u.oU)(L)||"#B22E34",Q=(0,u.oU)(M)||"#ffffff",X=(0,l.useMemo)(()=>V?`linear-gradient(180deg, ${G} 0%, ${J} 100%)`:G,[V,G,J]),Y=(0,v.y)(y,N),Z=(0,u.To)(C),ee=null==E?void 0:E.value,te=null==N?void 0:N.value,ae=I.xl,le=P||ae&&O,re=(0,l.useRef)(le);re.current=le;const oe=(0,l.useRef)(ae);oe.current=ae,(0,l.useEffect)(()=>{if(!K||z<2)return;const e=window.setInterval(()=>{oe.current||re.current||H(e=>(e+1)%z)},7e3);return()=>window.clearInterval(e)},[K,z]),(0,l.useEffect)(()=>{if(ae||z<1)return;const e=q.current;if(e&&!e.destroyed&&e.activeIndex!==W&&!e.animating)try{e.slideTo(W,380,!1)}catch{return}},[W,ae,z]);const ne=(0,l.useCallback)(()=>{F(!0),H(e=>(e-1+z)%z)},[z]),ie=(0,l.useCallback)(()=>{F(!0),H(e=>(e+1)%z)},[z]),se=(0,l.useCallback)(e=>{F(!0),H(e)},[]),ce=(0,l.useCallback)(e=>{z<2||("ArrowRight"===e.key?(e.preventDefault(),ie()):"ArrowLeft"===e.key?(e.preventDefault(),ne()):"Home"===e.key?(e.preventDefault(),se(0)):"End"===e.key&&(e.preventDefault(),se(z-1)))},[z,ie,ne,se]),de=R[W],ue=z>0&&Boolean(null==de?void 0:de.imageUrl),me=(null==D?void 0:D.value)||void 0,fe={"--fss-tab-active-bg":(0,u.oU)(_)||"#ffffff","--fss-tab-active-fg":(0,u.oU)(k)||"#1a1816","--fss-tab-active-hover-bg":"#f5f5f5","--fss-tab-active-hover-border":"#f5f5f5"},he=(0,l.useMemo)(()=>function(e,t,a){const l=[e,t,a].filter(e=>Boolean(e&&"string"==typeof e.value&&e.value.trim()));if(0===l.length)return;return 1===l.length?l[0]:{...l[0],value:l.map(e=>e.value).join(""),modular_content:l.flatMap(e=>{var t;return null!==(t=e.modular_content)&&void 0!==t?t:[]}
1).filter(Boolean),links:l.flatMap(e=>{var t;return null!==(t=e.links)&&void 0!==t?t:[]}),images:l.flatMap(e=>{var t;return null!==(t=e.images)&&void 0!==t?t:[]})}}(e,t,a),[e,t,a]),ve=()=>he&&!(0,f.W1)(he.value)?l.createElement("div",{className:"feature-showcase-slider-module--headline--b78fb",style:{color:Q}},l.createElement(d.d,{richText:he,wrapperClassName:i,elementCodename:"headline_line_1"})):null,ge=()=>p&&!(0,f.W1)(p.value)?l.createElement("div",{className:"feature-showcase-slider-module--description--9926f",style:{color:Q}},l.createElement(d.d,{richText:p,wrapperClassName:i,elementCodename:"description"})):null,we=()=>Y&&ee?l.createElement("div",{className:"feature-showcase-slider-module--ctaWrap--b532c"},l.createElement(h.A,{href:Y,target:"new_window"===Z?"_blank":void 0,visualStyle:"outlineLight",id:te},ee)):null,pe=Q;return ue?l.createElement("section",{className:s,id:me,style:{background:X,color:Q},onMouseEnter:()=>ae&&j(!0),onMouseLeave:()=>j(!1),"data-kontent-item-id":T},l.createElement("div",{className:n},(!U||!ae)&&l.createElement("div",{className:"feature-showcase-slider-module--mobile--dc8d2"},ve(),l.createElement("div",{className:"feature-showcase-slider-module--imageWithArrows--3e665"},l.createElement(g.A,{direction:"left",strokeColor:pe,className:"feature-showcase-slider-module--arrowLeft--24117",handleClick:ne,"aria-label":"Previous slide"}),l.createElement("div",{className:o},l.createElement(w.RC,{className:"feature-showcase-slider-module--mobileSwiper--24eef",wrapperClass:"feature-showcase-slider-module--mobileSwiperWrapper--06877",slidesPerView:1,spaceBetween:0,speed:380,initialSlide:W,allowTouchMove:z>1,simulateTouch:!0,touchEventsTarget:"container",touchRatio:1,threshold:4,touchAngle:55,followFinger:!0,nested:!0,touchReleaseOnEdges:!0,resistanceRatio:.65,onSwiper:e=>{q.current=e},onSlideChange:e=>{H(e.activeIndex)},onTouchStart:()=>F(!0),onBeforeDestroy:()=>{q.current=null}},R.map((e,t)=>l.createElement(w.qr,{key:e.id,className:"feature-showcase-slider-module--mobileSlide--e62f0","data-kontent-element-codename":"categories"},l.createElement("img",{className:c,src:e.imageUrl,srcSet:e.imageSrcSet,sizes:"(max-width: 1199px) min(36rem, calc(100vw - 8.5rem)), 748px",alt:e.alt||e.label,width:e.imageWidth,height:e.imageHeight,loading:0===t?"eager":"lazy",draggable:!1}))))),l.createElement(g.A,{direction:"right",strokeColor:pe,className:"feature-showcase-slider-module--arrowRight--a2c87",handleClick:ie,"aria-label":"Next slide"})),ge(),we()),(!U||ae)&&l.createElement("div",{className:"feature-showcase-slider-module--desktop--ba76d"},l.createElement("div",{className:"feature-showcase-slider-module--imageCol--78e87 feature-showcase-slider-module--desktopImageCol--4ac12"},l.createElement("div",{className:o,id:B,role:"tabpanel","aria-labelledby":`${$}-tab-${W}`,"aria-live":"polite","data-kontent-element-codename":"categories"},l.createElement("img",{key:de.id,className:c,src:de.imageUrl,srcSet:de.imageSrcSet,sizes:"(max-width: 1199px) min(36rem, calc(100vw - 8.5rem)), 748px",alt:de.alt||de.label,width:de.imageWidth,height:de.imageHeight,loading:"eager"}))),l.createElement("div",{className:"feature-showcase-slider-module--contentCol--ed5ea"},ve(),ge(),l.createElement("div",{className:"feature-showcase-slider-module--tablist--4949b",role:"tablist","aria-label":"Product categories",onKeyDown:ce,style:fe},R.map((e,t)=>{const a=t===W,r=`${$}-tab-${t}`;return l.createElement("button",{key:e.id,type:"button",role:"tab",id:r,"aria-selected":a,"aria-controls":B,tabIndex:a?0:-1,className:"feature-showcase-slider-module--tab--30200 "+(a?"feature-showcase-slider-module--tabActive--c01ca":"feature-showcase-slider-module--tabInactive--b6689"),onClick:()=>se(t),onFocus:()=>F(!0),"data-kontent-element-codename":"caption"},e.label)})),we())))):l.createElement("section",{className:s,id:me,style:{background:X,color:Q},role:"status","data-kontent-item-id":T},l.createElement("div",{className:n},l.createElement("p",{className:"feature-showcase-slider-module--fallbackMessage--80c6e"},"Feature showcase content is missing or incomplete.")))}},48646:function(e,t,a){var l=a(69565),r=a(28551),o=a(1767),n=a(63085);e.exports=function(e,t){t&&"string"==typeof e||r(e);var a=n(e);return o(r(void 0!==a?l(a,e):e))}},60739:function(e,t,a){var l=a(96540);t.A=({strokeColor:e})=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18.36 34.2"},l.createElement("g",{"data-name":"Layer 2"},l.createElement("path",{"data-name":"Path 512",d:"M17.36 1L1 17.1l16.36 16.1",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})))},74564:function(e,t,a){var l=a(96540);t.A=({strokeColor:e})=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18.36 34.2"},l.createElement("g",{"data-name":"Layer 2"},l.createElement("path",{"data-name":"Path 509",d:"M1 33.2l16.36-16.1L1 1",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})))}}]);
2//# sourceMappingURL=FeatureShowcaseSlider-4202d6c63277c734c02a.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.