(this["webpackJsonp6th-street"]=this["webpackJsonp6th-street"]||[]).push([[36],{628:function(t,e,o){"use strict";o.r(e),function(t){var n=o(1),a=o.n(n),r=(o(16),o(11)),i=o(929),l=o.n(i),c=(o(930),o(13).checkBEMProps);e.default=function(e){const[o,i]=Object(n.useState)("00"),[s,f]=Object(n.useState)("00"),[h,P]=Object(n.useState)("00"),[p,u]=Object(n.useState)("00"),b=e.end;Object(n.useEffect)(()=>{const t=setInterval(()=>(()=>{const t=(new Date).toUTCString(),e=null===b||void 0===b?void 0:b.toLocaleString(),o=Date.parse(e)-Date.parse(t),n=Math.floor(o/864e5)>9?Math.floor(o/864e5):"0"+Math.floor(o/864e5),a=Math.floor(o/36e5%24+24*n)>9?Math.floor(o/36e5%24+24*n):"0"+Math.floor(o/36e5%24),r=Math.floor(o/1e3/60%60)>9?Math.floor(o/1e3/60%60):"0"+Math.floor(o/1e3/60%60),l=Math.floor(o/1e3%60)>9?Math.floor(o/1e3%60):"0"+Math.floor(o/1e3%60);i(n),f(a),P(r),u(l)})(),1e3);return()=>clearInterval(t)},[]);const{start:m,end:T,containerStyle:g}=e,x=Date.parse((new Date).toUTCString()),D=Date.parse(m),k=Date.parse(T);return k>=D&&x<=k&&!(D>=x)?c(a.a,"div",{block:"DynamicContentCountDownTimer",id:"DynamicContentCountDownTimer",style:g},(()=>{const{newtimerIcon:o=l.a,infoText:n="",alignment:i="",textAlignment:f="",isPLPOrPDP:P,hideInfoText:u=!1}=e,b="string"===typeof n?n.trim():n,m=!u&&Boolean(b),T=Object(r.h)();return c(a.a,"h3",{block:"left"===i?"TimerTitle AlignLeft":"right"===i?"TimerTitle AlignRight":P?"TimerTitle AlignCenter PDPPLPMarginZero":"TimerTitle AlignCenter",mods:{isArabicStore:T}},m&&c(a.a,"span",{block:"right_to_the_timer"===f?"InfoText AlignTextRight":"left_to_the_timer"===f?"InfoText AlignTextLeft":"InfoText AlignTextCenter",mods:{isArabicStore:T}},b),c(a.a,"span",{block:P?"timer PLPOrPDPTimer":"timer"},P&&c(a.a,"span",{block:"clock"}," ",c(a.a,"img",{src:o,alt:"countDown"})),c(a.a,"span",{block:P?"Box isPLPorPDPBox":"Box"},c(a.a,"b",null,s),t(" \u0633")),c(a.a,"span",{block:"separator"},":"),c(a.a,"span",{block:P?"Box isPLPorPDPBox":"Box"},c(a.a,"b",null,h),t(" \u062f")),c(a.a,"span",{block:"separator"},":"),c(a.a,"span",{block:P?"Box isPLPorPDPBox":"Box"},c(a.a,"b",null,p),t(" \u062b"))))})()):null}}.call(this,o(28))},929:function(t,e,o){t.exports=o.p+"static/media/clockIcon.ecac74c0.svg"},930:function(t,e,o){}}]);