-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path0c1941a.modern.js
More file actions
1 lines (1 loc) · 5.88 KB
/
Copy path0c1941a.modern.js
File metadata and controls
1 lines (1 loc) · 5.88 KB
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[69],{264:function(o,t,n){var content=n(467);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[o.i,content,""]]),content.locals&&(o.exports=content.locals);(0,n(11).default)("b43540ae",content,!0,{sourceMap:!1})},265:function(o,t,n){var content=n(469);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[o.i,content,""]]),content.locals&&(o.exports=content.locals);(0,n(11).default)("8a39ac1a",content,!0,{sourceMap:!1})},466:function(o,t,n){"use strict";n(264)},467:function(o,t,n){var e=n(10)(function(i){return i[1]});e.push([o.i,"#promotions-showcase[data-v-71b3e848]{display:grid;grid-template-columns:25% 75%;padding:24px;width:100%}#promotions-showcase .promotions_info[data-v-71b3e848]{align-items:center;display:flex;flex-direction:column;font-size:var(--font_size_big);justify-content:center}#promotions-showcase .promotions_info .promotion_text[data-v-71b3e848],#promotions-showcase .promotions_info .promotion_title[data-v-71b3e848]{font-size:var(--font_size_heading);margin:8px 0}#promotions-showcase .promotions_info .promotion_title[data-v-71b3e848]{color:var(--primary_color);font-weight:var(--font_weight_semi_bold)}#promotions-showcase .promotions_info .promotion_text[data-v-71b3e848]{color:var(--text_base);font-weight:var(--font_weight_medium)}#promotions-showcase .promotion_link[data-v-71b3e848]{background-color:var(--primary_color);border-radius:10px;color:var(--text_invert);font-weight:var(--font_weight_medium);padding:8px 24px}#promotions-showcase .countdown_container[data-v-71b3e848]{align-items:center;background-color:var(--bg_countdown);border-radius:10px;color:var(--primary_color);display:flex;justify-content:center;margin:20px 0;padding:8px 12px}#promotions-showcase .countdown_container .countdown[data-v-71b3e848]{display:flex;font-size:var(--font_size_base);font-weight:var(--font_weight_medium)}#promotions-showcase .countdown_container .item_countdown span[data-v-71b3e848]{display:block;margin-bottom:2px}#promotions-showcase .countdown_container .item_countdown[data-v-71b3e848]{margin-left:16px;text-align:center}#promotions-showcase .frame_promotion_menu[data-v-71b3e848]{height:100%;width:100%}#promotions-showcase .frame_promotion_menu .slider-wrapper[data-v-71b3e848]{width:100%}@media (max-width:1024px){#promotions-showcase[data-v-71b3e848],#promotions-showcase .frame_promotion_menu[data-v-71b3e848]{display:flex;flex-direction:column}#promotions-showcase .frame_promotion_menu[data-v-71b3e848]{align-items:center}#promotions-showcase .countdown_container[data-v-71b3e848]{width:80%}#promotions-showcase .promotion_link[data-v-71b3e848]{margin-top:8px}}",""]),e.locals={},o.exports=e},468:function(o,t,n){"use strict";n(265)},469:function(o,t,n){var e=n(10)(function(i){return i[1]});e.push([o.i,"#promotions-showcase .cardprod{--card_width:33.5%;background-color:var(--bg_primary);border-radius:2px}#promotions-showcase .swiper_navigation{--swiper-navigation-sides-offset:-4px}#promotions-showcase .frame_promotion_menu .swiper-button-prev{transform:translateX(-100%)}#promotions-showcase .frame_promotion_menu .swiper-button-next{transform:translateX(100%)}#promotions-showcase .frame_attribute.only_button .action_button{margin:auto}",""]),e.locals={},o.exports=e},786:function(o,t,n){"use strict";n.r(t);var e={props:{breakpoints:Object},data:()=>({countdown:{days:"00",hours:"00",minutes:"00",seconds:"00"},timer:null,vitrineData:null}),computed:{sectionInfos(){const o=this.$store.state.bannerVitrineInfos;if(!o)return null;for(const t in o){const n=o[t];if(n&&"promo-showcase"===n.nome)return n}return null}},async mounted(){this.vitrineData=await this.$dataFetcher.getShowcaseData("promo-showcase"),this.sectionInfos&&(this.timer=setInterval(this.calculateCountdown,1e3))},methods:{calculateCountdown(){var o;const t=(new Date).getTime(),n=new Date(null===(o=this.sectionInfos)||void 0===o?void 0:o.dataFinal).getTime();if(!n)return;const e=n-t;if(e<=0)return clearInterval(this.timer),void(this.countdown={days:"00",hours:"00",minutes:"00",seconds:"00"});const r=Math.floor(e/864e5),c=Math.floor(e%864e5/36e5),d=Math.floor(e%36e5/6e4),m=Math.floor(e%6e4/1e3);this.countdown={days:`${r}`,hours:String(c).padStart(2,"0"),minutes:String(d).padStart(2,"0"),seconds:String(m).padStart(2,"0")}}}},r=(n(466),n(468),n(12)),component=Object(r.a)(e,function(){var o=this,t=o._self._c;return t("div",{attrs:{id:"promotions-showcase"}},[t("div",{staticClass:"promotions_info"},[t("h4",{staticClass:"promotion_title"},[o._v("\n OFERTAS IMPERDÍVEIS\n ")]),o._v(" "),t("p",{staticClass:"promotion_text"},[o._v("\n Corre que já está acabando!\n ")]),o._v(" "),t("div",{staticClass:"countdown_container"},[t("div",{staticClass:"clock_icon"},[t("svg",{attrs:{width:"24",height:"24"}},[t("use",{attrs:{"xlink:href":"#clock-icon"}})])]),o._v(" "),t("div",{staticClass:"countdown"},[t("div",{staticClass:"item_countdown"},[t("span",{staticClass:"days"},[o._v(o._s(o.countdown.days))]),o._v("\n Dias\n ")]),o._v(" "),t("div",{staticClass:"item_countdown"},[t("span",{staticClass:"hours"},[o._v(o._s(o.countdown.hours))]),o._v("\n Hrs\n ")]),o._v(" "),t("div",{staticClass:"item_countdown"},[t("span",{staticClass:"minutes"},[o._v(o._s(o.countdown.minutes))]),o._v("\n Min\n ")]),o._v(" "),t("div",{staticClass:"item_countdown"},[t("span",{staticClass:"seconds"},[o._v(o._s(o.countdown.seconds))]),o._v("\n Seg\n ")])])]),o._v(" "),t("nuxt-link",{staticClass:"promotion_link -desktop",attrs:{to:"/promocoes"}},[o._v("\n Ver todos\n ")])],1),o._v(" "),t("div",{staticClass:"frame_promotion_menu"},[t("geralShowcase-slider",{attrs:{vitrineData:o.vitrineData,breakpoints:o.breakpoints}}),o._v(" "),t("nuxt-link",{staticClass:"promotion_link -mobile",attrs:{to:"/promocoes"}},[o._v("\n Ver todos\n ")])],1)])},[],!1,null,"71b3e848",null);t.default=component.exports}}]);