(this["webpackJsonp6th-street"]=this["webpackJsonp6th-street"]||[]).push([[23,25],{1024:function(e,t,i){"use strict";i.r(t),i.d(t,"default",(function(){return y}));var n=i(1),o=i.n(n),r=i(126),l=i(77),s=i(487),a=i(712),c=i(11),d=i(9),u=i(825),h=i(968),p=(i(2705),i(931));function m(e,t,i){if(!i)return!0;const n=new Date,o=e?new Date(e):null,r=t?new Date(t):null;return!(o&&n<o)&&!(r&&n>r)}function v(e){if(!e)return{};const t=String(e).toLowerCase(),i=t.includes("manrope")?"Manrope":void 0;let n="normal";return t.includes("extra-light")||t.includes("extralight")||t.includes("200")?n=200:t.includes("light")||t.includes("300")?n=300:t.includes("regular")||t.includes("400")?n=400:t.includes("medium")||t.includes("500")?n=500:t.includes("semi-bold")||t.includes("semibold")||t.includes("600")?n=600:t.includes("extra-bold")||t.includes("extrabold")||t.includes("800")?n=800:(t.includes("bold")||t.includes("700"))&&(n=700),{fontFamily:i,fontWeight:n,fontStyle:t.includes("italic")?"italic":"normal",textDecoration:t.includes("underline")?"underline":"none"}}function _(e){if(null==e)return;if("number"===typeof e&&Number.isFinite(e))return e;const t=String(e).trim();if(!t)return;if(/^\d+(\.\d+)?(px|rem|em|%)$/.test(t))return t;const i=Number(t);return Number.isFinite(i)?i:void 0}function f(e,t){if(!e)return t;const i=String(e).trim().toLowerCase().replace(/[_\s]+/g,"-");return i.includes("left")?"left":i.includes("right")?"right":i.includes("top")?"top":i.includes("bottom")?"bottom":i.includes("center")||i.includes("middle")?"center":t}var g=i(13).checkBEMProps;class b extends n.Component{constructor(e){super(e),this.BAR_WIDTH=200,this._handleResize=()=>{this.resizeTimer&&clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this._updateSliderWidth();const{activeIndex:e}=this.state;this._scrollToIndex(e,!1)},120)},this._handleScroll=e=>{const{items:t,onViewableItemsChanged:i}=this.props,n=e.target.scrollLeft,o=this._getSliderWidth()||1,r=Math.max(Math.min(Math.round(n/o),t.length-1),0);this.setState({scrollLeft:n,activeIndex:r},()=>{i({viewableItems:[{index:r,item:t[r],isViewable:!0,key:String(r)}],changed:[]})})};const{start_time:t,end_time:i,items:o}=e,r=!(!t||!i);this.state={activeIndex:0,scrollLeft:0,sliderWidth:0,isWidgetVisible:m(t,i,r),isArabic:Object(c.h)()},this.sliderRef=Object(n.createRef)(),this.autoPlayInterval=null,this.visibilityTimer=null,this.resizeTimer=null}componentDidMount(){this._updateSliderWidth(),setTimeout(()=>{const e=this.sliderRef.current;e&&(e.scrollLeft=0)},100),this._startAutoPlay(),this._scheduleVisibilityCheck(),window.addEventListener("resize",this._handleResize),Object(u.d)(this.props.moengage_experience_keys,this.props.items,this.props.widget_name)}componentDidUpdate(e,t){const{auto_play:i,auto_play_speed:n,items:o,start_time:r,end_time:l}=this.props;e.moengage_experience_keys!==this.props.moengage_experience_keys&&Object(u.d)(this.props.moengage_experience_keys,this.props.items,this.props.widget_name);(e.auto_play!==i||e.auto_play_speed!==n||e.items.length!==o.length)&&(this._clearAutoPlay(),this._startAutoPlay()),e.start_time===r&&e.end_time===l||(this.visibilityTimer&&clearTimeout(this.visibilityTimer),this._scheduleVisibilityCheck())}componentWillUnmount(){this._clearAutoPlay(),this.visibilityTimer&&clearTimeout(this.visibilityTimer),this.resizeTimer&&clearTimeout(this.resizeTimer),window.removeEventListener("resize",this._handleResize)}_updateSliderWidth(){const e=(this.sliderRef.current?this.sliderRef.current.offsetWidth:0)||window.innerWidth||0;this.setState(t=>t.sliderWidth!==e?{sliderWidth:e}:null)}_startAutoPlay(){const{auto_play:e,auto_play_speed:t,items:i}=this.props;!e||i.length<=1||(this.autoPlayInterval=setInterval(()=>{const e=this.sliderRef.current;if(!e)return;const t=this._getSliderWidth(),i=e.scrollWidth-e.clientWidth;let n=e.scrollLeft+t;n>i&&(n=0);const o=Math.max(Math.min(Math.round(n/t),this.props.items.length-1),0);e.scrollTo({left:n,behavior:"auto"}),this.setState({activeIndex:o})},t))}_clearAutoPlay(){this.autoPlayInterval&&(clearInterval(this.autoPlayInterval),this.autoPlayInterval=null)}_getSliderWidth(){const{sliderWidth:e}=this.state,t=this.sliderRef.current,i=t?t.offsetWidth:0,n=e||i||window.innerWidth;return Math.max(n,0)}_scrollToIndex(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const i=this.sliderRef.current;if(!i)return;const n=this._getSliderWidth(),{items:o}=this.props,r=e*n;t?i.scrollTo({left:r,behavior:"smooth"}):i.scrollLeft=r}_scheduleVisibilityCheck(){const{start_time:e,end_time:t}=this.props;if(!e&&!t)return;const i=!(!e||!t),n=()=>{const o=m(e,t,i);this.setState({isWidgetVisible:o}),this.visibilityTimer=setTimeout(n,6e4)};this.visibilityTimer=setTimeout(n,6e4)}_getLegacyPosition(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{vertical:f(e.text_vertical_position,"center"),horizontal:f(e.text_horizontal_position,"center")}}_getElementPosition(e,t){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=String(e||"").toLowerCase(),n=i.split(",").map(e=>e.trim()).filter(Boolean),o={vertical:t.vertical||"center",horizontal:t.horizontal||"center"};return n.forEach(e=>{e.includes("top")?o.vertical="top":e.includes("bottom")?o.vertical="bottom":e.includes("middle")&&(o.vertical="center"),e.includes("left")?o.horizontal="left":e.includes("right")?o.horizontal="right":e.includes("center")&&(o.horizontal="center")}),n.length||(o.vertical=f(e,o.vertical),o.horizontal=f(e,o.horizontal)),o}(e,t)}_getPositionKey(e){return"".concat(e.vertical,"-").concat(e.horizontal)}_getElementPositionStyle(e){const{vertical:t,horizontal:i}=e,n=[],o="left"===i||"right"===i,r=o?"var(--hero-banner-horizontal-inset)":20,l="top"===t||"bottom"===t?"var(--hero-banner-vertical-inset)":20,s={position:"absolute",maxWidth:o?"calc(100% - var(--hero-banner-horizontal-inset) - var(--hero-banner-horizontal-inset))":"calc(100% - 40px)",boxSizing:"border-box",textAlign:i,display:"flex",flexDirection:"column",gap:10,alignItems:"left"===i?"flex-start":"right"===i?"flex-end":"center"};return"top"===t?s.top=l:"bottom"===t?s.bottom=l:(s.top="50%",n.push("translateY(-50%)")),"left"===i?s.left=r:"right"===i?s.right=r:(s.left="50%",n.push("translateX(-50%)")),n.length&&(s.transform=n.join(" ")),s}_renderPositionedContent(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((e,t)=>{const i=this._getPositionKey(t.position);return e[i]||(e[i]={position:t.position,elements:[]}),e[i].elements.push(t.element),e},{});return Object.entries(e).map(e=>{let[t,i]=e;return g(o.a,"div",{key:t,className:"HeroBannerSlider-PositionGroup HeroBannerSlider-PositionGroup_".concat(i.position.horizontal),style:this._getElementPositionStyle(i.position)},i.elements)})}_getIndicatorWidth(){const{items:e}=this.props,{scrollLeft:t}=this.state;if(!e.length)return 0;const i=this._getSliderWidth()||1,n=this.BAR_WIDTH/e.length,o=i*(e.length-1);if(o<=0)return this.BAR_WIDTH;return n+Math.min(t/o,1)*(this.BAR_WIDTH-n)}_renderBannerMedia(e,t,i){const n=(null===e||void 0===e?void 0:e.url)||(null===e||void 0===e?void 0:e.image_url)||(null===e||void 0===e?void 0:e.mobile_url),l=(null===e||void 0===e?void 0:e.video_url)||n,{width:s,height:a}=this._getAspectDimensions(e);return"color"===e.type?g(o.a,"div",{block:"BackgroundProductSlider",elem:"Background",style:{backgroundColor:e.background_color,height:"".concat(a,"px")}}):e.has_video&&l?g(o.a,h.a,{src:l,width:s||void 0,height:a||void 0,onClick:i=>{Object(p.a)(i,this.props.is_non_clickable||(null===e||void 0===e?void 0:e.is_non_clickable)),i.stopPropagation(),t()},style:{width:"100%",height:"100%",objectFit:"cover",cursor:this.props.is_non_clickable||(null===e||void 0===e?void 0:e.is_non_clickable)?"default":"pointer",display:"block"},fillHeight:!0,isActive:i===this.state.activeIndex}):g(o.a,r.default,{src:n,alt:e.promotion_name||e.title||"Hero Banner",intrinsicWidth:s||void 0,intrinsicHeight:a||void 0,style:{width:"100%",height:"100%",display:"block",objectFit:"cover"}})}_getAspectDimensions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{widget_width:t,widget_height:i,widgetWidth:n,widgetHeight:o}=this.props;return{width:Number(null!==t&&void 0!==t?t:n)||Number(null===e||void 0===e?void 0:e.width),height:Number(null!==i&&void 0!==i?i:o)||Number(null===e||void 0===e?void 0:e.height)}}_getItemHeight(e){const t=this._getSliderWidth(),{width:i,height:n}=this._getAspectDimensions(e);return t>0&&i>0&&n>0?Math.round(n/i*t):t}_getFixedSliderHeight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const{width:t,height:i}=this._getAspectDimensions();if(t>0&&i>0)return this._getItemHeight();const n=e.find(e=>Number(null===e||void 0===e?void 0:e.width)>0&&Number(null===e||void 0===e?void 0:e.height)>0);return n?this._getItemHeight(n):this._getSliderWidth()}_renderItem(e,t){const{onItemPress:i,moengage_experience_keys:n,widget_name:r,is_non_clickable:a}=this.props,c=this._getSliderWidth(),h=this._getItemHeight(e),m=o=>{Object(p.a)(o,a||(null===e||void 0===e?void 0:e.is_non_clickable)),Object(u.c)(n,{audienceNames:e.audience_names,bannerName:e.promotion_name,widgetName:r}),i(e,t)},f=Boolean(e.cta&&e.button_label&&String(e.button_label).trim()),b=this._getLegacyPosition(e),y=this._getElementPosition(e.title_position,b),x=this._getElementPosition(e.subtitle_position,b),k=this._getElementPosition(e.cta_positions||e.cta_position,b),w=this._renderBannerMedia(e,m,t),S=[];if(e.title&&S.push({position:y,element:g(o.a,"span",{key:"title",className:"HeroBannerSlider-Title",style:{fontSize:_(e.title_font_size),color:e.text_color||"#ffffff",...v(e.title_font_style)}},e.title)}),e.subtitle&&S.push({position:x,element:g(o.a,"span",{key:"subtitle",className:"HeroBannerSlider-Subtitle",style:{fontSize:_(e.subtitle_font_size),color:e.text_color||"#ffffff",...v(e.subtitle_font_style)}},e.subtitle)}),f){const t=g(o.a,s.a,{variant:"special",className:"HeroBannerSlider-CTA",onClick:e.link?void 0:m,style:{color:e.text_color||"#ffffff",fontSize:_(e.cta_font_size||e.button_font_size),...v(e.cta_font_style||e.button_font_style),cursor:a||(null===e||void 0===e?void 0:e.is_non_clickable)?"default":"pointer"},type:"button"},e.button_label);S.push({position:k,element:e.link?g(o.a,l.default,Object.assign({key:"cta",to:e.is_external_link?Object(d.h)(e.link):Object(d.c)(e.link),onClick:m,className:"HeroBannerSlider-CTALink",title:t||""},Object(d.g)(e.is_external_link),{style:{cursor:a||(null===e||void 0===e?void 0:e.is_non_clickable)?"default":"pointer"}}),t):o.a.cloneElement(t,{key:"cta"})})}return g(o.a,"div",{key:e.id||t,className:"HeroBannerSlider-Item",style:{width:c,height:h,flexShrink:0,position:"relative",scrollSnapAlign:"start"}},e.link?g(o.a,l.default,Object.assign({to:e.is_external_link?Object(d.h)(e.link):Object(d.c)(e.link),onClick:m,className:"HeroBannerSlider-Link",title:w||""},Object(d.g)(e.is_external_link),{style:{cursor:a||(null===e||void 0===e?void 0:e.is_non_clickable)?"default":"pointer"}}),w):w,g(o.a,"div",{className:"HeroBannerSlider-Overlay"},this._renderPositionedContent(S)))}render(){const{items:e,background_color:t,edge_to_edge:i,indicator_style:n,widget_spacing:r,header:l}=this.props,{isWidgetVisible:s}=this.state;if(!s||!(null===e||void 0===e?void 0:e.length))return null;const c=this._getIndicatorWidth(),d=this._getFixedSliderHeight(e);return g(o.a,o.a.Fragment,null,l&&g(o.a,a.default,{header:l}),g(o.a,"div",{className:"HeroBannerSlider ".concat(i?"HeroBannerSlider_edgeToEdge":"HeroBannerSlider_withSpacing"," ").concat(this.state.isArabic?"HeroBannerSlider_isArabic":""),style:{backgroundColor:t||"transparent",height:Number.isFinite(d)&&d>0?d:void 0,marginBottom:r?Number(r):void 0}},g(o.a,"div",{className:"HeroBannerSlider-Track",ref:this.sliderRef,onScroll:this._handleScroll},e.map((e,t)=>this._renderItem(e,t))),e.length>1&&"lines"===n&&g(o.a,"div",{className:"HeroBannerSlider-PaginationContainer"},g(o.a,"div",{className:"HeroBannerSlider-PaginationTrack",style:{width:this.BAR_WIDTH}},g(o.a,"div",{className:"HeroBannerSlider-PaginationIndicator",style:{width:c,transition:"width 0.3s ease"}})))))}}b.defaultProps={items:[],background_color:"transparent",runAfterInteraction:!1,start_time:null,end_time:null,edge_to_edge:!1,auto_play:!0,auto_play_speed:3e3,indicator_style:"lines",onItemPress:()=>{},onViewableItemsChanged:()=>{},moengage_experience_keys:[]};var y=b},2705:function(e,t,i){},487:function(e,t,i){"use strict";(function(e){i(606);var n=i(27),o=i(13).checkBEMProps;t.a=function(t){let{variant:i,children:r,wide:l,extendedAction:s,preContent:a,postContent:c,type:d="button",...u}=t;const h={block:"AppButton",elem:"Button",mods:{variant:i,wide:l},type:d,...u,..."link"===i&&{onClick:function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];null===(e=u.onClick)||void 0===e||e.call(u,...i),u.to&&n.a.push(u.to)}}};return s?o(e,"div",{block:"AppButton",elem:"Button",mods:{variant:"extendedAction"}},a,o(e,"button",h,c)):o(e,"button",h,r)}}).call(this,i(1))},606:function(e,t,i){},712:function(e,t,i){"use strict";i.r(t),function(e){var n=i(16),o=i(11),r=i(1),l=i(77),s=i(9),a=(i(773),i(479)),c=i(31),d=i(13).checkBEMProps;class u extends r.PureComponent{constructor(){super(...arguments),this.isTrendingWidgetexist=()=>{const{type:e=""}=this.props;return!["vue_brands_for_you","vue_categories_for_you"].includes(e)},this.onArrowClick=e=>{var t,i;const n=null===(t=this.props)||void 0===t||null===(i=t.header)||void 0===i?void 0:i.nav_arrow_link,o=Object(s.c)(n);o&&((null===e||void 0===e?void 0:e.preventDefault)&&e.preventDefault(),window.location.assign(o))}}render(){var t,i,r,u,h,p,m,v,_,f,g,b,y,x,k,w,S,O,A,E,I,N,B,T,P,j,C,W,H,z;let M="";(null===(t=this.props)||void 0===t||null===(i=t.header)||void 0===i?void 0:i.title_color)&&(M={color:this.props.header.title_color});const R=this.isTrendingWidgetexist();Object(o.h)()&&n.a.any()&&!R&&(M={...M,textAlign:"right"});const D=null===(r=this.props)||void 0===r||null===(u=r.header)||void 0===u?void 0:u.nav_arrow_link,L=Object(o.h)()?a.e:a.f,V=(null===(h=this.props)||void 0===h||null===(p=h.header)||void 0===p?void 0:p.title_color)||Object(o.h)()&&n.a.any()&&!R?M:{};return d(e,"div",{block:"DynamicContentHeader"},(null===(m=this.props)||void 0===m||null===(v=m.header)||void 0===v?void 0:v.title)&&d(e,"h1",{style:D?{...V,display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px"}:V},d(e,"span",null,Object(c.ib)(null===(_=this.props)||void 0===_||null===(f=_.header)||void 0===f?void 0:f.title,Object(o.d)())),D&&d(e,l.default,{to:Object(s.c)(D),onClick:this.onArrowClick,block:"DynamicContentHeader",elem:"NavArrow","aria-label":"Navigate",title:(null===(g=this.props)||void 0===g||null===(b=g.header)||void 0===b?void 0:b.title)||""},d(e,L,null))),this.isTrendingWidgetexist()?(null===(y=this.props)||void 0===y||null===(x=y.header)||void 0===x?void 0:x.subtitle)&&d(e,"p",{block:"",style:(null===(k=this.props)||void 0===k||null===(w=k.header)||void 0===w?void 0:w.subtitle_color)?{color:null===(S=this.props)||void 0===S||null===(O=S.header)||void 0===O?void 0:O.subtitle_color}:void 0},null===(A=this.props)||void 0===A||null===(E=A.header)||void 0===E?void 0:E.subtitle):"",this.isTrendingWidgetexist()?(null===(I=this.props)||void 0===I||null===(N=I.header)||void 0===N?void 0:N.button_label)&&d(e,"a",{href:(null===(B=this.props)||void 0===B||null===(T=B.header)||void 0===T?void 0:T.button_link)||void 0,block:"",style:{textAlign:"start",display:"block",...(null===(P=this.props)||void 0===P||null===(j=P.header)||void 0===j?void 0:j.button_label_color)?{color:null===(C=this.props)||void 0===C||null===(W=C.header)||void 0===W?void 0:W.button_label_color}:void 0}},null===(H=this.props)||void 0===H||null===(z=H.header)||void 0===z?void 0:z.button_label):"")}}t.default=u}.call(this,i(1))},772:function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"a",(function(){return c}));var n=i(170),o=i(209);const r="https://sdk-01.moengage.com".replace(/\/+$/,""),l="".concat(r).concat("/v1/experiences/fetch"),s="".concat(r).concat("/v1/experiences/events"),a="MOE_PERSONALIZATION_MESSAGE_SHOWN",c="MOE_PERSONALIZATION_MESSAGE_CLICKED",d=()=>({Accept:"*/*","Content-Type":"application/json",Authorization:"Basic ".concat("T0EwODRDT1NNQUZBWkdINDlEN0VPOVhPOkV6ZUNSOGQ2SUtXNDFrRXYyRGdCRExOSg=="),"MOE-APPKEY":"OA084COSMAFAZGH49D7EO9XO"}),u=e=>(Array.isArray(e)?e:[e]).filter(Boolean),h={fetchExperiences:async e=>{let{customerId:t,email:i,mobile:n,experienceKeys:s}=e;if(!r||!Array.isArray(s)||!s.length)return null;try{const e=await Object(o.a)(l,{method:"post",headers:d(),body:JSON.stringify({identifiers:{customer_id:t,user_identifiers:{u_em:i,u_mb:n}},experience_key:s})},1e3);if(!e.ok){const t=await e.text().catch(()=>"");throw new Error("MoEngage ".concat(e.status," ").concat(e.statusText).concat(t?" \u2014 ".concat(t):""))}return e.json()}catch(a){return console.error("Error fetching MoEngage experiences",a),null}},trackExperienceEvents:async function(){let{customerId:e,action:t,experienceContexts:i,extraAttributes:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const a=u(i);if(!r||!e||!t||!a.length)return null;const c=Math.floor(Date.now()/1e3),h=a.map(e=>({action:t,moe_event_uuid:Object(n.a)(),event_time:c,platform:"web",attributes:l?{...e,...l}:e})),p={elements:[{customer_id:e,actions:h}]};try{const e=await Object(o.a)(s,{method:"post",headers:d(),body:JSON.stringify(p)},1e3);if(!e.ok){const t=await e.text().catch(()=>"");throw new Error("MoEngage ".concat(e.status," ").concat(e.statusText).concat(t?" \u2014 ".concat(t):""))}return e.json().catch(()=>null)}catch(m){return console.error("Error reporting MoEngage experience events",m),null}}};t.c=h},773:function(e,t,i){},825:function(e,t,i){"use strict";i.d(t,"b",(function(){return h})),i.d(t,"a",(function(){return p})),i.d(t,"f",(function(){return f})),i.d(t,"e",(function(){return g})),i.d(t,"d",(function(){return b})),i.d(t,"c",(function(){return y}));var n=i(6),o=i(772);let r={customerId:null,experiences:null,matchedAudienceNames:[],matchedAudienceIds:[]};const l=new Set,s=e=>Array.isArray(e)?e:[],a=e=>null==e||""===e?null:String(e),c=e=>{const t=e&&e.payload,i=t&&t.default;return"true"===(n=i&&i.value,String(null==n?"":n).trim().toLowerCase());var n};let d=[],u=null;const h=(e,t)=>{const i=t&&t.experiences||null,{names:n,ids:o}=(e=>{const t=new Set,i=new Set;return Object.keys(e||{}).forEach(n=>{const o=e[n]&&e[n].experience_context;o&&(o.audience_name&&t.add(o.audience_name),a(o.audience_id)&&i.add(a(o.audience_id)))}),{names:[...t],ids:[...i]}})(i);r={customerId:e||null,experiences:i,matchedAudienceNames:n,matchedAudienceIds:o},l.clear(),d=[],u&&(clearTimeout(u),u=null)},p=()=>r.matchedAudienceNames,m=e=>{const{customerId:t,experiences:i,matchedAudienceNames:o,matchedAudienceIds:l}=r;return Object(n.h)()&&t&&i?s(e).filter(Boolean).filter(e=>!c(i[e])).map(e=>i[e]&&i[e].experience_context).filter(e=>e&&(-1!==o.indexOf(e.audience_name)||-1!==l.indexOf(a(e.audience_id)))):[]},v=(e,t,i)=>{const n={...e};return t&&(n.banner_name=t),i&&(n.widget_name=i),n},_=()=>{if(u=null,!d.length)return;const e=d;d=[],o.c.trackExperienceEvents({customerId:r.customerId,action:o.b,experienceContexts:e})},f=(e,t,i)=>{const n=s(e).filter(Boolean);if(!n.length)return;const o=m(n);if(!o.length)return;let r=!1;s(t).forEach(e=>{const t=(e=>s(e&&e.audience_names).filter(Boolean))(e);if(!t.length)return;const n=e&&e.promotion_name||void 0;o.forEach(e=>{if(-1===t.indexOf(e.audience_name))return;const o="".concat((e=>e.cid||JSON.stringify(e))(e),"|").concat(n||"");l.has(o)||(l.add(o),d.push(v(e,n,i)),r=!0)})}),r&&(u||(u=setTimeout(_,800)))},g=(e,t)=>{const i=s(e).filter(Boolean);if(!i.length)return;const{audienceNames:n,bannerName:l,widgetName:a}=t||{},c=s(n).filter(Boolean);if(!c.length)return;const d=m(i).filter(e=>-1!==c.indexOf(e.audience_name)).map(e=>v(e,l,a));d.length&&o.c.trackExperienceEvents({customerId:r.customerId,action:o.a,experienceContexts:d})},b=f,y=g},841:function(e,t,i){"use strict";(function(e){var n=i(1),o=i(969),r=i(970),l=(i(971),i(13).checkBEMProps);t.a=t=>{let{src:i,width:s,height:a,style:c,className:d,onClick:u,loop:h=!0,autoPlay:p=!0,playsInline:m=!0,fillHeight:v=!1,isActive:_=!0,containerStyle:f}=t;const[g,b]=Object(n.useState)(!0),[y,x]=Object(n.useState)(!1),k=Object(n.useRef)(null),w=Object(n.useRef)(null);Object(n.useEffect)(()=>{w.current&&(w.current.muted=g)},[g]),Object(n.useEffect)(()=>{const e=k.current;if(!e||"undefined"===typeof IntersectionObserver)return void x(!0);const t=new IntersectionObserver(e=>{let[t]=e;return x(t.isIntersecting)},{threshold:0});return t.observe(e),()=>t.disconnect()},[]),Object(n.useEffect)(()=>{const e=w.current;if(e&&p)if(y&&_){const t=e.play();void 0!==t&&t.catch(()=>{})}else e.pause()},[y,_,p]);const S=Object(n.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),b(e=>!e)},[]);return l(e,"div",{ref:k,block:"AutoMuteVideo",style:{position:"relative",width:"100%",height:v?"100%":void 0,...f}},l(e,"video",{ref:w,src:i,width:s||void 0,height:a||void 0,muted:g,loop:h,playsInline:m,onClick:u,style:c,className:d}),l(e,"button",{type:"button",block:"AutoMuteVideo",elem:"MuteButton",onClick:S,"aria-label":g?"Unmute video":"Mute video"},l(e,g?o.a:r.a,null)))}}).call(this,i(1))},931:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));const n=(e,t)=>{if(t)return e.preventDefault()}},968:function(e,t,i){"use strict";var n=i(841);i.d(t,"a",(function(){return n.a}))},969:function(e,t,i){"use strict";i.d(t,"a",(function(){return c}));var n,o,r=i(1),l=i.n(r);function s(){return(s=Object.assign||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)}const a=e=>{let{svgRef:t,title:i,...r}=e;return l.a.createElement("svg",s({viewBox:"0 0 40 40","aria-hidden":"true",ref:t},r),i?l.a.createElement("title",null,i):null,n||(n=l.a.createElement("circle",{cx:20,cy:20,r:20})),o||(o=l.a.createElement("path",{d:"M14.086 23H12.5c-.552 0-1-.448-1-1v-4c0-.552.448-1 1-1h1.586l4.707-4.707c.63-.63 1.707-.184 1.707.707v14c0 .891-1.077 1.337-1.707.707L14.086 23zM25.5 22l4-4m0 4l-4-4"})))},c=l.a.forwardRef((e,t)=>l.a.createElement(a,s({svgRef:t},e)));i.p},970:function(e,t,i){"use strict";i.d(t,"a",(function(){return c}));var n,o,r=i(1),l=i.n(r);function s(){return(s=Object.assign||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)}const a=e=>{let{svgRef:t,title:i,...r}=e;return l.a.createElement("svg",s({viewBox:"0 0 40 40","aria-hidden":"true",ref:t},r),i?l.a.createElement("title",null,i):null,n||(n=l.a.createElement("circle",{cx:20,cy:20,r:20})),o||(o=l.a.createElement("path",{d:"M14.086 23H12.5c-.552 0-1-.448-1-1v-4c0-.552.448-1 1-1h1.586l4.707-4.707c.63-.63 1.707-.184 1.707.707v14c0 .891-1.077 1.337-1.707.707L14.086 23zM24.036 16.464a5 5 0 010 7.072M26.864 13.636a9 9 0 010 12.728"})))},c=l.a.forwardRef((e,t)=>l.a.createElement(a,s({svgRef:t},e)));i.p},971:function(e,t,i){}}]);