(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9758],{59943:function(e,t,i){"use strict";var n,o=i(67294);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}var s=function(e){return o.createElement("svg",a({width:14,height:14,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=o.createElement("path",{d:"m13 13-2.9-2.9m1.567-3.767A5.333 5.333 0 1 1 1 6.333a5.333 5.333 0 0 1 10.667 0Z",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round"})))};t.Z=s},11443:function(e,t,i){"use strict";var n,o=i(67294);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}var s=function(e){return o.createElement("svg",a({width:18,height:13,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=o.createElement("path",{d:"M17 1 6 12 1 7",stroke:"#B0E020",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))};t.Z=s},97563:function(e,t,i){"use strict";var n=i(26042),o=i(99534),a=i(85893),s=i(11443),d=i(67294),r=i(40450),l=function(e){var t=e.textLabel,i=e.optionalLabel,l=e.placeholder,c=e.type,$=e.id,u=void 0===$?"":$,h=e.required,p=e.caption,v=e.isCaptionRequired,g=void 0!==v&&v,f=e.isLabelRequired,m=e.isValidationRequired,_=void 0!==m&&m,b=e.handleValidation,y=e.disabled,x=void 0!==y&&y,w=e.isFocusRequired,k=void 0===w||w,L=e.autoFocus,j=void 0!==L&&L,C=e.icon,E=e.righticon,R=e.iconWidth,Z=void 0===R?22:R,q=e.iconHeight,T=e.paddingLeft,N=void 0===T?16:T,B=e.paddingRight,I=void 0===B?16:B,S=e.paddingTop,P=void 0===S?13:S,O=e.paddingBottom,H=e.borderRadius,W=void 0===H?3:H,z=e.errorMessage,D=e.background,F=e.className,V=e.focusOutCallback,M=e.focusInCallback,U=e.height,A=e.value,K=void 0===A?"":A,Q=e.name,X=e.changeHandler,G=void 0===X?function(){}:X,J=e.style,Y=e.margin,ee=e.width,et=e.OtherComponent,ei=e.OtherComponentStyle,en=e.requiredCheckMark,eo=void 0===en||en,ea=e.keyChangeHandler,es=void 0===ea?function(){}:ea,ed=e.maxLength,er=e.iconRightPosition,el=e.iconLeftPosition,ec=e.iconTopPosition,e$=(0,o.Z)(e,["textLabel","optionalLabel","placeholder","type","id","required","caption","isCaptionRequired","isLabelRequired","isValidationRequired","handleValidation","disabled","isFocusRequired","autoFocus","icon","righticon","iconWidth","iconHeight","paddingLeft","paddingRight","paddingTop","paddingBottom","borderRadius","errorMessage","background","className","focusOutCallback","focusInCallback","height","value","name","changeHandler","style","margin","width","OtherComponent","OtherComponentStyle","requiredCheckMark","keyChangeHandler","maxLength","iconRightPosition","iconLeftPosition","iconTopPosition"]),eu=(0,d.useState)(!1),eh=eu[0],ep=eu[1],ev=(0,d.useState)(""),eg=ev[0],ef=ev[1];if(_&&!b)throw Error("Validate function required if isValidationRequired = true");var em=function(e){G&&G(e)},e_=function(e){es&&es(e)};return(0,d.useEffect)(function(){var e=function(){M&&M(),ep(!0),ef()},t=function(e){if(_&&b){var t=b(e);ef(t)}V&&V(),ep(!1)};return j&&e(),document.getElementById(u)&&(document.getElementById(u).addEventListener("focusin",e),document.getElementById(u).addEventListener("focusout",t)),function(){document.getElementById(u)&&(document.getElementById(u).removeEventListener("focusout",t),document.getElementById(u).removeEventListener("focusin",e))}},[]),(0,a.jsxs)("div",{style:(0,n.Z)({borderRadius:W,display:"flex",flexDirection:"column",margin:Y||"0px 8px",width:ee||"calc(100% - ".concat(N+I,"px)")},void 0===J?{}:J),id:u+"_div",children:[void 0!==f&&f&&(0,a.jsxs)("label",{htmlFor:u,style:{marginBottom:12,width:"100%"},className:x?"label disabled":"label",children:[void 0===t?"Text Label":t," ",(0,a.jsx)("span",{className:"optional",children:i})]}),(0,a.jsxs)("div",{style:{position:"relative",width:"calc(100% - ".concat(_&&!0===eg&&eo&&""!==K?32:0,"px)")},className:eh&&k?"shadow_glow_red ":"",children:[(0,a.jsx)("input",(0,n.Z)({type:void 0===c?"text":c,id:u,autoFocus:j,required:void 0!==h&&h,placeholder:void 0===l?"Placeholder text":l,name:Q,value:K,onChange:em,disabled:x,maxLength:void 0===ed?void 0:ed,style:{border:eh&&k||_&&!1===eg?"1px solid var(--primary-red-lightest-color)":void 0,height:void 0===U?"":U,borderRadius:W,paddingRight:_&&!0===eg&&eo&&""!==K?I+32:I,paddingTop:P,paddingBottom:void 0===O?13:O,width:C?"calc(100% - ".concat(Z+N+I+2,"px)"):"calc(100% -  ".concat(N+I+2,"px)"),paddingLeft:C?Z+N:N,background:x?"var(--bg-lightest-color)":_&&!1===eg?"rgba(237, 28, 36, 0.04)":D},className:void 0===F?"":F,onKeyPress:e_},e$)),_&&!0===eg&&eo&&""!==K&&(0,a.jsx)("div",{style:{position:"absolute",right:-12,top:P+6},children:(0,a.jsx)(r.Z,{children:(0,a.jsx)(s.Z,{})})}),C&&(0,a.jsx)("div",{style:{position:"absolute",left:void 0===el?8:el,top:null!=ec?ec:P+2},children:(0,a.jsx)(r.Z,{style:{width:Z,height:void 0===q?18:q},children:C})}),E&&(0,a.jsx)("div",{style:{position:"absolute",right:void 0===er?16:er,top:null!=ec?ec:P+2},children:(0,a.jsx)(r.Z,{children:E})}),et&&(0,a.jsx)("div",{style:(0,n.Z)({position:"absolute",right:4,top:6,width:"fit-content"},ei),children:et})]}),(g||_&&!1===eg)&&(0,a.jsx)("div",{className:"".concat(g?"".concat(x?"disabled":""," caption"):"body3"),style:{marginTop:12,color:_&&!1===eg?"var(--secondary-red-light)":void 0},children:_&&!1===eg&&z?z:void 0===p?"Caption":p})]})};t.Z=l},29758:function(e,t,i){"use strict";i.r(t);var n=i(85893);i(97563),i(59943);var o=i(1736),a=i(74595),s=i(34323),d=i.n(s),r=i(67294),l=i(47865),c=i(14682),$=function(e){var t,i,s,$,u,h=e.sectionDetails,p=(0,l.Z)({breakpoint:580}),v=(0,r.useState)(""),g=v[0],f=v[1],m=(0,r.useState)(""),_=m[0],b=m[1],y=(0,r.useState)([]),x=y[0],w=y[1],k=(0,r.useState)(90),L=k[0],j=k[1],C=(0,r.useState)(9),E=C[0],R=C[1];(0,r.useEffect)(function(){try{if(h&&h.widgets){var e=h.widgets.find(function(e){return"titleWithDescription"===e.type});e&&($=e.displayTitle,u=e.description,x=e.widgets,w(x),f($),b(u))}setTimeout(function(){document.getElementById("latest_0_div")&&(R(document.getElementById("latest_0_div").offsetLeft),j(document.getElementById("latest_0_div").offsetWidth))},500)}catch(t){}},[]);var Z=(0,r.useState)(null===(i=null===(t=null==h?void 0:h.widgets[0])||void 0===t?void 0:t.widgets[0])||void 0===i?void 0:i.title),q=Z[0],T=Z[1],N=function(t,i,n){R(n.target.offsetLeft-1),j(n.target.offsetWidth),T(t),e.filterBanners(i.widgets)};return(0,n.jsx)("section",{className:d().section,children:(0,n.jsx)(c.Z,{className:d().animationClass,children:(0,n.jsxs)("div",{className:"".concat(d().container," maxWidth"),children:[(0,n.jsx)("div",{className:"".concat(d().subtitle1," subtitle1"),style:{color:p?"#000000":"#898989",fontSize:p?"14px":"16px"},children:g}),!p&&(0,n.jsx)("div",{className:"".concat(d().subtitle2," subtitle2"),style:{color:"#898989"},children:_}),(0,n.jsxs)("div",{className:d().buttons,children:[x.map(function(e,t){return(0,n.jsx)(o.Z,{id:"latest_"+t,isShadowRequired:q!=e.displayTitle,shadowClassName:"shadow_glow_gray",clickHandler:function(t){return N(e.displayTitle,e,t)},type:a.Z.TEXT,label:e.displayTitle,color:q==e.displayTitle?"var(--primary-white-color)":"var(--primary-red-color)",backgroundColor:q==e.displayTitle?"transparent":"#ffffff",style:{zIndex:"1000",height:"30px"}},t+"")}),(null===(s=e.sectionDetails)||void 0===s?void 0:s.widgets[0].widgets.length)>0&&(0,n.jsx)("div",{style:{backgroundColor:"var(--primary-red-color)",height:30,width:L,position:"absolute",zIndex:999,borderRadius:48,left:E,transition:"all 0.5s cubic-bezier(0, 0, 0.2, 1) 0s",margin:"5px 0px"}})]})]})})})};t.default=$},34323:function(e){e.exports={section:"the-latest-section_section__89UhZ",animationClass:"the-latest-section_animationClass__zay4E",container:"the-latest-section_container__TzZ2e",subtitle1:"the-latest-section_subtitle1__gDTdU",subtitle2:"the-latest-section_subtitle2__v2Pcq",buttons:"the-latest-section_buttons__QDLsd"}}}]);