(window.webpackJsonp=window.webpackJsonp||[]).push([[129],{1506:function(t,e,n){"use strict";n(960)},1507:function(t,e,n){var r=n(9)(!1);r.push([t.i,'@-webkit-keyframes GradientHype-data-v-3393511f{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}@keyframes GradientHype-data-v-3393511f{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}@-webkit-keyframes LivePulse-data-v-3393511f{0%{transform:scale(.95);box-shadow:0 0 0 0 hsla(0,0%,100%,.7)}70%{transform:scale(1);box-shadow:0 0 0 10px hsla(0,0%,100%,0)}to{transform:scale(.95);box-shadow:0 0 0 0 hsla(0,0%,100%,0)}}@keyframes LivePulse-data-v-3393511f{0%{transform:scale(.95);box-shadow:0 0 0 0 hsla(0,0%,100%,.7)}70%{transform:scale(1);box-shadow:0 0 0 10px hsla(0,0%,100%,0)}to{transform:scale(.95);box-shadow:0 0 0 0 hsla(0,0%,100%,0)}}.flash-listing-timer[data-v-3393511f]{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-radius:8px;background-size:cover;background-position:50%;background:url(https://alexandra.bridestory.com/image/upload/assets/widget-flashdeal-bg2x-1-ry2OhU5sr.png)}@media only screen and (max-width:1023px){.flash-listing-timer[data-v-3393511f]{padding:12px 14px;width:100%;margin-bottom:0}}.flash-listing-timer__text[data-v-3393511f]{font-family:"Figtree","Helvetica",arial,sans-serif;color:#252525;font-size:13px;letter-spacing:.2px;line-height:14px;width:70px;margin-right:10px}@media only screen and (max-width:1023px){.flash-listing-timer__text[data-v-3393511f]{flex:1}}.flash-listing-timer__counter[data-v-3393511f]{flex:0}',""]),t.exports=r},1675:function(t,e,n){"use strict";n.r(e);var r=n(640),o={name:"ListingFlashDealsTimer",props:{endTime:{type:String,required:!0}},components:{"flash-deals-timer":r.a}},d=(n(1506),n(3)),component=Object(d.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"flash-listing-timer"},[n("div",{staticClass:"flash-listing-timer__text"},[t._v(t._s(t.$t("store.ends_in")))]),t._v(" "),n("flash-deals-timer",{staticClass:"flash-listing-timer__counter",attrs:{endTime:t.endTime}})],1)}),[],!1,null,"3393511f",null);e.default=component.exports},531:function(t,e,n){"use strict";var r=n(15),o=n(535),d=n(291),l=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(d);r(r.P+r.F*l,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},535:function(t,e,n){var r=n(55),o=n(292),d=n(60);t.exports=function(t,e,n,l){var m=String(d(t)),c=m.length,f=void 0===n?" ":String(n),h=r(e);if(h<=c||""==f)return m;var _=h-c,v=o.call(f,Math.ceil(_/f.length));return v.length>_&&(v=v.slice(0,_)),l?v+m:m+v}},571:function(t,e,n){var content=n(619);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(10).default)("79a9e87f",content,!0,{manualInject:!0,ssrId:!0,sourceMap:!1})},618:function(t,e,n){"use strict";n(571)},619:function(t,e,n){var r=n(9)(!1);r.push([t.i,'@-webkit-keyframes GradientHype-data-v-52f1454c{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}@keyframes GradientHype-data-v-52f1454c{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}@-webkit-keyframes LivePulse-data-v-52f1454c{0%{transform:scale(.95);box-shadow:0 0 0 0 hsla(0,0%,100%,.7)}70%{transform:scale(1);box-shadow:0 0 0 10px hsla(0,0%,100%,0)}to{transform:scale(.95);box-shadow:0 0 0 0 hsla(0,0%,100%,0)}}@keyframes LivePulse-data-v-52f1454c{0%{transform:scale(.95);box-shadow:0 0 0 0 hsla(0,0%,100%,.7)}70%{transform:scale(1);box-shadow:0 0 0 10px hsla(0,0%,100%,0)}to{transform:scale(.95);box-shadow:0 0 0 0 hsla(0,0%,100%,0)}}.timer[data-v-52f1454c]{margin-right:4px}.timer[data-v-52f1454c],.timer__board[data-v-52f1454c]{display:flex;align-items:center}.timer__board[data-v-52f1454c]{min-width:34px;justify-content:center;background-color:#fe5d51;border-radius:5px;margin:0 3px;padding:4px 1px;flex-direction:column}@media only screen and (max-width:767px){.timer__board[data-v-52f1454c]{min-width:7.5vw;height:25px;margin:0 1px;padding:0}}.timer__value[data-v-52f1454c]{color:#fff;font-size:16px;font-weight:600;letter-spacing:.2px;line-height:17px}@media only screen and (max-width:767px){.timer__value[data-v-52f1454c]{font-size:11px;line-height:12px}}.timer__unit[data-v-52f1454c]{color:#fff;font-family:"Figtree","Helvetica",arial,sans-serif;font-size:9.92px;text-align:center}@media only screen and (max-width:767px){.timer__unit[data-v-52f1454c]{font-size:7px}}',""]),t.exports=r},640:function(t,e,n){"use strict";n(531),n(14),n(48),n(49);var r={name:"flash-deals-timer",props:{endTime:{type:String,required:!0}},data:function(){return{endTimeInMs:null,timestamp:{days:"00",hours:"00",minutes:"00",seconds:"00"},interval:null}},mounted:function(){var t=this;this.endTimeInMs=new Date(this.endTime).getTime(),this.isTimeExpired(this.endTimeInMs)||(this.updateCountdown(this.endTimeInMs),this.interval=setInterval((function(){t.updateCountdown(t.endTimeInMs)}),1e3))},methods:{updateCountdown:function(t){this.isTimeExpired(t)&&clearInterval(this.interval);var e=t-(new Date).getTime();this.formatTimestamp(e)},isTimeExpired:function(t){return t-(new Date).getTime()<=0},formatTimestamp:function(t){this.timestamp=this.transformTimestampToString(t),this.timestamp=this.padTimestamp(this.timestamp)},transformTimestampToString:function(t){return{days:Math.floor(t/864e5),hours:Math.floor(t%864e5/36e5),minutes:Math.floor(t%36e5/6e4),seconds:Math.floor(t%6e4/1e3)}},padTimestamp:function(t){for(var e in t)t[e]=t[e].toString().padStart(2,"0");return t}}},o=(n(618),n(3)),component=Object(o.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"timer"},[n("div",{staticClass:"timer__board timer__board--day"},[n("span",{staticClass:"timer__value"},[t._v(t._s(t.timestamp.days?t.timestamp.days:"0"))]),t._v(" "),n("span",{staticClass:"timer__unit"},[t._v(t._s(t.$t("Deal.day")))])]),t._v(" "),n("div",{staticClass:"timer__board timer__board--hour"},[n("span",{staticClass:"timer__value"},[t._v(t._s(t.timestamp.hours?t.timestamp.hours:"0"))]),t._v(" "),n("span",{staticClass:"timer__unit"},[t._v(t._s(t.$t("Deal.hours")))])]),t._v(" "),n("div",{staticClass:"timer__board timer__board--minute"},[n("span",{staticClass:"timer__value"},[t._v(t._s(t.timestamp.minutes?t.timestamp.minutes:"0"))]),t._v(" "),n("span",{staticClass:"timer__unit"},[t._v(t._s(t.$t("Deal.minutes")))])]),t._v(" "),n("div",{staticClass:"timer__board timer__board--second"},[n("span",{staticClass:"timer__value"},[t._v(t._s(t.timestamp.seconds?t.timestamp.seconds:"0"))]),t._v(" "),n("span",{staticClass:"timer__unit"},[t._v(t._s(t.$t("Deal.seconds")))])])])}),[],!1,null,"52f1454c",null);e.a=component.exports},960:function(t,e,n){var content=n(1507);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(10).default)("51e61f96",content,!0,{manualInject:!0,ssrId:!0,sourceMap:!1})}}]); //# sourceMappingURL=129.1726711333621.797e4e8dd74497ef3141.js.map