"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[3378],{55988:(e,t,l)=>{l.r(t),l.d(t,{EventCallout:()=>N,default:()=>z});var a=l(67294),s=l(45697),r=l.n(s),n=l(73727),c=l(34506),i=l(90755),o=l(23699);const d="E3-z",u="F3-z",m=e=>{let{releaseTime:t,className:l}=e;return t?a.createElement("div",{"data-test-id":"countdownTimer","data-scroll-target":!0,className:(0,c.cn)(d,l)},a.createElement("span",{className:u},"Ends in"),t.d>0&&a.createElement("p",null,a.createElement("span",null,t.d),a.createElement("span",null,"Days")),a.createElement("p",null,a.createElement("span",null,t.h),a.createElement("span",null,"Hours")),a.createElement("p",null,a.createElement("span",null,t.m),a.createElement("span",null,"Minutes")),a.createElement("p",null,a.createElement("span",null,t.s),a.createElement("span",null,"Seconds"))):null};var p=l(60950),h=l(24873),x=l(41487);const f="uH-z",E="wH-z",y="xH-z",b="yH-z",g="zH-z",_="AH-z",w="BH-z",v="CH-z",N=e=>{const{slotName:t,slotIndex:l,shouldLazyLoad:s,onComponentClick:r,ipStatus:{valid:d}={},slotDetails:u}=e,{topcaption:x,time:N,src:z,retina:L,mobilesrc:C,mobileretina:D,tabletsrc:H,tabletretina:S,alt:P="",iprestricted:A,topheading:F,heading:O,copy:k,cta:I,link:$,gae:j,bgcolor:T}=u;(0,a.useEffect)((()=>{(0,h.j)((()=>[p.wN,{slotDetails:u,slotIndex:l,slotName:t,heroCount:1}]))}),[u,l,t]);const M=(0,a.useCallback)((e=>{r&&r(e),(0,h.j)((()=>[p.qm,{slotDetails:u,slotIndex:l,slotName:t,heroCount:1}]))}),[r,u,l,t]),W=(0,i.M)(N);if("true"===A&&!d||N&&!1!==W?.timePassed)return null;const B={src:z,retina:L,mobilesrc:C,mobileretina:D,tabletsrc:H,tabletretina:S,alt:P,shouldLazyLoad:s};return a.createElement("div",{className:(0,c.cn)(f,{[E]:"black"===T}),"data-slot-id":t},x&&a.createElement("p",{className:g},x),a.createElement(o.Z,B),a.createElement("div",{className:y},F&&a.createElement("p",{className:_},F),O&&a.createElement("h2",{className:w},O),a.createElement(m,{releaseTime:W,className:b}),k&&a.createElement("p",{className:v},k),I&&a.createElement(n.rU,{"data-eventlabel":"EventCallout","data-eventvalue":j||O,"data-slotindex":l,onClick:M,to:$},I)))};N.contextTypes={testId:r().func};const z=(0,x.P)("EventCallout",N)},23699:(e,t,l)=>{l.d(t,{Z:()=>d});var a=l(67294),s=l(58367),r=l(34506),n=l(61637),c=l(41487),i=l(6950);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},o.apply(this,arguments)}const d=(0,a.memo)((0,c.P)("LandingPageImage",(e=>{let{src:t=null,srcset:l=null,mobilesrc:s=null,tabletsrc:c=null,retina:d=null,mobileretina:u=null,tabletretina:m=null,sources:p=null,alt:h=null,title:x=null,width:f=null,height:E=null,role:y=null,itemProp:b=null,shouldLazyLoad:g=!1,className:_=null,imgTestId:w=null,isFullWidth:v=!1,src_x:N,src_y:z,retinasrc_x:L,retinasrc_y:C,mobilesrc_x:D,mobilesrc_y:H,tabletsrc_x:S,tabletsrc_y:P,fetchPriority:A}=e;const{nonDefaultSources:F,defaultSource:O}=function(e,t,l,a,s,r,n,c,i,o,d,u,m,p,h,x,f,E,y,b){const g=e=>{let t="";for(const[l,a]of e)l&&(t&&(t+=", "),t+=l,a&&(t+=" ",t+=a));return t},_=e=>{const t=e?.std?.x&&e?.std?.y&&e?.std?.x/e?.std?.y,l=e?.ret?.x&&e?.ret?.y&&e?.ret?.x/e?.ret?.y;return t&&l&&(t<1&&l<1?Math.abs(1/t-1/l)>.02:Math.abs(t-l)>.02)?void 0:t||l};if(!e?.length){if(e=[],t||s){const c={media:"(max-width: 650px)",srcset:g([[t,"1x"],[s,"2x"]])};l&&(c.width=l),a&&(c.height=a),c.aspectratio=_({std:{x:l,y:a},ret:{x:r,y:n}})?.toFixed(4),c.aspectratio&&(l&&(c.width=l),a&&(c.height=a)),e.push(c)}if(c||d){const t={media:"(max-width: 1024px)",srcset:g([[c,"1x"],[d,"2x"]])};t.aspectratio=_({std:{x:i,y:o},ret:{x:u,y:m}})?.toFixed(4),t.aspectratio&&(i&&(t.width=i),o&&(t.height=o)),e.push(t)}if(h||E){const t={media:"",srcset:g([[h,"1x"],[E,"2x"]])};t.aspectratio=_({std:{x,y:f},ret:{x:y,y:b}})?.toFixed(4),t.aspectratio&&(x&&(t.width=x),f&&(t.height=f)),e.push(t)}}let w=null;for(const t of e)if(!t.media){w=t;break}const v=[];for(const t of e)t.media&&v.push(t);if(w||(w={}),w.srcset||(w.srcset=p||g([[h,"1x"],[E,"2x"]]),w.aspectratio=_({std:{x,y:f},ret:{x:y,y:b}})?.toFixed(4),w.aspectratio&&(x&&(w.width=x),f&&(w.height=f))),!w.src){const e=w?.srcset?.trim(),t=e?.split(/\s+/,1);w.src=t?.[0]||""}return{nonDefaultSources:v,defaultSource:w}}(p,s,D,H,u,null,null,c,S,P,m,null,null,l,t,N,z,d,L,C);if(!O.src)return null;const k=[];for(const e of F)e.media&&e.srcset&&k.push(a.createElement("source",{key:e.srcset+e.media,media:e.media,srcSet:e.srcset}));const I={src:O.src,title:x,width:f,height:E,srcSet:O.srcset,role:y,itemProp:b,alt:h&&'""'!==h?h:"","data-test-id":w,fetchpriority:A},[$,j,T]=(e=>{let{sources:t,img:l,fullWidth:a}=e,s="";const r=e=>!a&&e?`max-width: ${e}px; `:"";let n=!1;for(const e of t||[])n||=!!e?.aspectratio,e?.aspectratio&&e?.width&&e?.media&&(s+=` @media ${e.media} { #--idplaceholder-- { aspect-ratio: ${e.aspectratio}; ${r(e.width)}}}`);if(s||l?.aspectratio&&l?.width){let e="#--idplaceholder-- { width: 100%; ";l?.aspectratio?(n=!0,e+=`aspect-ratio: ${l.aspectratio}; ${r(l.width)}} `):e+="}";const t=e+s,a=(0,i.l$)(t);return[a,t.split("--idplaceholder--").join(a),n]}return[]})({sources:F,img:O,fullWidth:v});return a.createElement(a.Fragment,null,j?a.createElement("style",{dangerouslySetInnerHTML:{__html:j}}):void 0,a.createElement(n.P,o({id:$},I,{className:(0,r.cn)(_),pictureProps:k,loading:g?"lazy":"eager",hasAspect:T,isFullWidth:v})))})),s.deepEqual)}}]);
//# sourceMappingURL=marty-zappos.components-landing-EventCallout.523c7ac65c487dabfb92.js.map