1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[170],{170:function(e,t,i){"use strict";i.r(t);var s=i(92777),r=i(82262),n=i(10748),o=i(45959),a=i(63553),l=i(37247),c=i(59499),d=i(67294),f=i(75589),p=i(94184),m=i.n(p),u=i(93008),g=i(68816),v=i(99140),h=i.n(v),x=i(10990),Z=i(25317),_=i(4100),S=i(15214),y=i(54688),j=i(85893),N=function(e){(0,o.Z)(f,e);var t,i,d=(i=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=(0,l.Z)(f);if(i){var s=(0,l.Z)(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return(0,a.Z)(this,e)});function f(e){var t;return(0,s.Z)(this,f),t=d.call(this,e),(0,c.Z)((0,n.Z)(t),"raf",void 0),(0,c.Z)((0,n.Z)(t),"progressTarget",void 0),(0,c.Z)((0,n.Z)(t),"start",void 0),(0,c.Z)((0,n.Z)(t),"end",void 0),(0,c.Z)((0,n.Z)(t),"stepPoints",void 0),(0,c.Z)((0,n.Z)(t),"steps",void 0),(0,c.Z)((0,n.Z)(t),"images",void 0),(0,c.Z)((0,n.Z)(t),"dProgress",void 0),(0,c.Z)((0,n.Z)(t),"progress",void 0),(0,c.Z)((0,n.Z)(t),"easing",void 0),(0,c.Z)((0,n.Z)(t),"root",void 0),(0,c.Z)((0,n.Z)(t),"offset",void 0),(0,c.Z)((0,n.Z)(t),"text",void 0),(0,c.Z)((0,n.Z)(t),"tl",void 0),(0,c.Z)((0,n.Z)(t),"onScroll",function(){t.progressTarget=t.getProgress(t.start,t.end),t.closest(t.stepPoints,t.progressTarget)!==t.state.activeIndex&&t.setState({activeIndex:t.closest(t.stepPoints,t.progressTarget)},function(){x.ZP.to(t.images.children,.65,{display:"none",opacity:0,ease:Z.qD.easeNone}),x.ZP.to(t.images.children[t.state.activeIndex],.65,{display:"block",opacity:1,ease:Z.qD.easeNone})})}),(0,c.Z)((0,n.Z)(t),"animate",function(){t.dProgress=t.progressTarget-t.progress,t.progress+=t.dProgress*t.easing,t.tl.progress(t.progress),t.raf=requestAnimationFrame(t.animate)}),(0,c.Z)((0,n.Z)(t),"onResize",function(){var e=t.props.sitecoreContext.pageEditing;window.innerWidth<992?t.state.isMobile||t.setState({isMobile:!0},function(){window.removeEventListener("scroll",t.onScroll),cancelAnimationFrame(t.raf)}):(t.state.isMobile&&t.setState({isMobile:!1},function(){e||t.init()}),t.offset=t.root.getBoundingClientRect().top+window.pageYOffset,t.start=t.offset,t.end=t.offset+t.root.clientHeight-window.innerHeight)}),(0,c.Z)((0,n.Z)(t),"init",function(){window.addEventListener("scroll",t.onScroll),t.progress=0,t.dProgress=0,t.easing=.085,t.steps=1/(t.props.fields.items.length-1),t.stepPoints=[];for(var e=0;e<t.props.fields.items.length;e++)t.stepPoints.push(e*t.steps);t.props.fields.items.length>1&&(t.root.style.height="".concat(100*t.props.fields.items.length,"vh")),t.tl=x.ZP.timeline({paused:!0}),t.tl.set(t.text.children[0],{y:10}),t.props.fields.items.forEach(function(e,i){0!==i&&t.tl.fromTo(t.text.children[i-1],1,{y:0},{y:-10,ease:Z.qD.easeNone}).fromTo(t.text.children[i],1,{y:10},{y:0,ease:Z.qD.easeNone})}),t.tl.progress(1),t.onResize(),t.onScroll(),t.animate()}),t.state={activeIndex:0,isMobile:!1},t}
1return(0,r.Z)(f,[{key:"componentDidMount",value:function(){var e=this.props.sitecoreContext.pageEditing;!g.Z||(window.addEventListener("resize",this.onResize),this.onResize(),e||this.state.isMobile||this.init())}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onResize),window.removeEventListener("scroll",this.onScroll),cancelAnimationFrame(this.raf)}},{key:"getProgress",value:function(e,t){var i=window.scrollY-e;return this.clamp(i/(t-e),0,1)}},{key:"closest",value:function(e,t){for(var i=1e3,s=0,r=0;r<e.length;r++){var n=Math.abs(t-e[r]);n<i&&(i=n,s=r)}return s}},{key:"clamp",value:function(e,t,i){return e<=t?t:e>=i?i:e}},{key:"render",value:function(){var e=this,t=this.props.fields.items,i=this.state,s=i.activeIndex,r=i.isMobile,n=this.props.sitecoreContext.pageEditing;return n||r?(0,j.jsx)("div",{className:m()(h().root,(0,c.Z)({},h().editor,n)),ref:function(t){return e.root=t},children:(0,j.jsx)("div",{className:"container",children:t&&t.map(function(e,t){return(0,j.jsxs)("div",{className:m()(h().infoCardSliderItem,"row align-items-center justify-content-center mb2"),children:[(0,j.jsx)("div",{className:"col-12 col-lg-5 col-xl-4 offset-xl-1",children:(0,j.jsxs)("div",{className:h().text,children:[(0,j.jsx)(u.xv,{tag:"h3",className:m()("f5 f3-md mb1 mb2-md",h().title),field:e.fields.title}),(0,j.jsx)(u.Vt,{field:e.fields.textBox,className:"typeset"})]})}),(0,j.jsx)("div",{className:m()("col col-lg-7",h().imagesWrapper),children:(0,j.jsx)("div",{className:h().images,children:(0,j.jsx)(u.Ee,{field:e.fields.image,visibleByDefault:!1})})})]},"infoCardSliderItem-".concat(t))})})}):(0,j.jsx)("div",{className:h().root,ref:function(t){return e.root=t},children:(0,j.jsx)("div",{className:m()(h().stickyWrapper,(0,c.Z)({},h().singleSlider,1===t.length)),children:(0,j.jsx)("div",{className:h().infoCardSlider,children:(0,j.jsx)("div",{className:"container",children:(0,j.jsxs)("div",{className:"row",children:[(0,j.jsx)("div",{className:"col col-12 col-lg-5 col-xl-4 offset-xl-1",children:(0,j.jsx)("div",{className:h().text,ref:function(t){return e.text=t},children:t&&t.map(function(e,t){return(0,j.jsx)("div",{className:m()(h().infoCardSliderItem,"mb2",(0,c.Z)({},h().active,s.toString()===t.toString())),children:(0,j.jsxs)("div",{children:[(0,j.jsx)(u.xv,{tag:"h3",className:"f5 f3-md mb1 mb2-md",field:e.fields.title}),(0,j.jsx)(u.Vt,{field:e.fields.textBox,className:m()(h().itemText,"typeset")})]})},"infoCardSliderItem-".concat(t))})})}),(0,j.jsx)("div",{className:m()("col col-lg-7",h().imagesWrapper),children:(0,j.jsx)("div",{className:h().images,ref:function(t){return e.images=t},children:t&&t.map(function(e,t){return(0,j.jsx)(u.Ee,{field:e.fields.image,largeThreshold:!0},t)})})})]})})})})})}}]),f}(d.Component);t.default=(0,y.qC)((0,S.Z)({on:[["visible",function(){return{rootMargin:"200px"}}]]}),(0,f.withSitecoreContext)({updatable:!0}),_.p)(N)},99140:function(e){e.exports={root:"infoCardSlider_root__EbIH9",stickyWrapper:"infoCardSlider_stickyWrapper__U6moy",singleSlider:"infoCardSlider_singleSlider___eZT2",title:"infoCardSlider_title__ZHUk_",text:"infoCardSlider_text__RtfFk",infoCardSliderItem:"infoCardSlider_infoCardSliderItem__QnQll",itemText:"infoCardSlider_itemText__p9wV8",active:"infoCardSlider_active__nj5pN",imagesWrapper:"infoCardSlider_imagesWrapper__Kly2b",images:"infoCardSlider_images__PrUzj",editor:"infoCardSlider_editor__zz9jk"}}}]);
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.