-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path78bdc28.modern.js
More file actions
1 lines (1 loc) · 13.3 KB
/
Copy path78bdc28.modern.js
File metadata and controls
1 lines (1 loc) · 13.3 KB
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[23,100,148],{182:function(e,t,o){var content=o(189);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(11).default)("40cd3b1a",content,!0,{sourceMap:!1})},183:function(e,t,o){var content=o(191);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(11).default)("1bb2cce9",content,!0,{sourceMap:!1})},188:function(e,t,o){"use strict";o(182)},189:function(e,t,o){var r=o(10)(function(i){return i[1]});r.push([e.i,".slider[data-v-542710b7]{overflow:hidden}.slider-wrapper[data-v-542710b7]{position:relative}.products .slider[data-v-542710b7]{padding:4px}.container_swiper[data-v-542710b7]{overflow:hidden;position:relative;width:100%}.container_swiper.-show[data-v-542710b7]{opacity:1;transition:opacity .3s ease-in-out}",""]),r.locals={},e.exports=r},190:function(e,t,o){"use strict";o(183)},191:function(e,t,o){var r=o(10)(function(i){return i[1]});r.push([e.i,".showcase_slider .swiper-wrapper .cardprod{width:calc(50% - 5px)}@media (min-width:790px){.showcase_slider .swiper-wrapper .cardprod{width:calc(33.33333% - 6.67px)}}@media (min-width:1115px){.showcase_slider .swiper-wrapper .cardprod{width:calc(25% - 7.5px)}}.showcase_slider .swiper-wrapper .cardprod{margin-right:10px}",""]),r.locals={},e.exports=r},192:function(e,t,o){"use strict";o.r(t);var r=o(197),n=o(196),l=o(1);var d={props:{slidesPerView:{type:Number,default:1},autoSlide:{type:Boolean,default:!1},spaceBetween:{type:Number,default:0},loop:{type:Boolean,default:!1},freeMode:{type:Boolean,default:!1},speed:{type:Number,required:!1},autoplay:{type:Object},breakpoints:{type:Object,required:!1},pagination:{type:Boolean,default:!1},navigation:{type:Boolean,default:!0},direction:{type:String,required:!1},thumbsSwiper:{type:Object,default:null},enableThumbs:{type:Boolean,default:!1},enabled:{type:Boolean,default:!0}},setup(){const{swiperElementRef:e,startSwiper:t,initialized:o,destroySwiper:d}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Object(l.d)(null),o=Object(l.d)(null),d=Object(l.d)(!1);return{swiperElementRef:t,startSwiper:function(){let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e;if(d.value)return;const c=t.value.querySelector(".slider"),h=t.value.querySelector("[data-pagination]"),v=t.value.querySelector("[data-swiper-navigation-prev]"),w=t.value.querySelector("[data-swiper-navigation-next]");o.value=new r.default(c,{modules:[n.Pagination,n.Autoplay,n.Navigation,n.Thumbs],navigation:!(!v||!w)&&{prevEl:v,nextEl:w},pagination:!!h&&{el:h,clickable:!0},...l}),d.value=!0,this.$emit("swiper-ready",o.value),o.value.on("activeIndexChange",()=>{const e=o.value.activeIndex;this.$emit("slide-change",e)})},initialized:d,destroySwiper:function(){o.value&&(o.value.destroy(!0,!0),o.value=null,d.value=!1)}}}();return{swiperElementRef:e,startSwiper:t,initialized:o,destroySwiper:d}},computed:{slides(){return this.$slots.default||[]},totalItens(){return this.slides.length}},watch:{thumbsSwiper:{handler(){this.enableThumbs&&this.initSlider()}},enabled:{handler(){this.initSlider()}}},mounted(){this.enabled&&!this.enableThumbs&&this.initSlider()},methods:{initSlider(){if(!this.initialized){const e={slidesPerView:this.autoSlide?"auto":this.slidesPerView,spaceBetween:this.spaceBetween};this.totalItens>this.slidesPerView&&this.loop&&(e.loop=!0),this.speed&&(e.speed=this.speed),this.freeMode&&(e.freeMode=!0),this.totalItens>this.slidesPerView&&this.autoplay&&(e.autoplay=this.autoplay),this.breakpoints&&(e.breakpoints=this.breakpoints),this.direction&&(e.direction=this.direction),this.thumbsSwiper&&(e.thumbs={autoScrollOffset:1,swiper:this.thumbsSwiper}),this.startSwiper(e)}}}},c=d,h=(o(188),o(190),o(12)),component=Object(h.a)(c,function(){var e=this,t=e._self._c;return t("div",{ref:"swiperElementRef",staticClass:"slider-wrapper",class:e.initialized?"-show":""},[t("div",{staticClass:"slider"},[t("div",{staticClass:"swiper-wrapper"},[e._t("default")],2)]),e._v(" "),e.pagination?t("div",{staticClass:"swiper-pagination",attrs:{"data-pagination":""}}):e._e(),e._v(" "),e.navigation?t("sliderSwiper-navigation"):e._e()],1)},[],!1,null,"542710b7",null);t.default=component.exports},193:function(e,t,o){"use strict";o.r(t);var r,n=o(1);class l{}r=l,l.observer=void 0,l.observe=e=>{r.observer||(r.observer=new IntersectionObserver(e=>{e.forEach(e=>{const t=e.target;e.isIntersecting&&(t.callback(),r.observer.unobserve(t))})})),r.observer.observe(e)};var d={props:{lazyCallback:{type:Function,required:!0},elementType:{type:String,default:"section"}},setup(e){const{lazyElementRef:t}=function(e){const t=Object(n.d)(null),o=Object(n.d)(!1);return Object(n.c)(()=>{t.value.callback=e||(()=>{}),t.value&&l.observe(t.value)}),Object(n.b)(()=>{l.observer.unobserve(t.value)}),{lazyElementRef:t,isVisible:o}}(e.lazyCallback);return{lazyElementRef:t}}},c=o(12),component=Object(c.a)(d,function(){var e=this;return(0,e._self._c)(e.elementType,{ref:"lazyElementRef",tag:"component"},[e._t("default")],2)},[],!1,null,null,null);t.default=component.exports},305:function(e,t,o){var content=o(559);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(11).default)("04c8f06e",content,!0,{sourceMap:!1})},558:function(e,t,o){"use strict";o(305)},559:function(e,t,o){var r=o(10)(function(i){return i[1]});r.push([e.i,"#video-showcase .container_swiper{padding:0 28px}#video-showcase .section_title{color:#1e2c47;font-weight:var(--font_weight_light)}#video-showcase .section_subtitle{color:var(--primary_color);font-size:var(--font_size_subtitle);font-weight:var(--font_weight_light);margin-top:4px;text-align:center}#video-showcase .section_subtitle a{transition:var(--transition_color)}#video-showcase .section_subtitle a:hover{color:var(--secondary_color)}#video-showcase .section_header{margin-bottom:40px}#video-showcase .swiper-slide{--video_width:20%;--video_margin_calc:13px;border-radius:8px;margin-right:16px;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:calc(20% - 13px);width:calc(var(--video_width) - var(--video_margin_calc))}#video-showcase .video_item .frame_video,#video-showcase .video_item .thumb_video{height:100%;line-height:0;width:100%}#video-showcase .video_item .thumb_video{left:0;position:absolute;top:0;z-index:10}#video-showcase .video_item .frame_video{background-color:var(--bg_dark)}#video-showcase .video_item .frame_video .init_player{animation:bgLoading 1.5s linear 1s infinite alternate;aspect-ratio:.56;height:100%;width:100%}@keyframes bgLoading{0%{background-color:var(--bg_dark)}to{background-color:#000}}#video-showcase .video_item .thumb_video{cursor:pointer;transition:var(--transition_fade)}#video-showcase .video_item .thumb_video.playing{opacity:0;visibility:hidden}#video-showcase .video_item .thumb_video img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}#video-showcase .video_item .thumb_video .play_icon{color:var(--bg_primary);left:50%;opacity:.6;position:absolute;top:50%;transform:translate(-50%,-50%);transition:var(--transition_fade)}#video-showcase .video_item .thumb_video.loading .play_icon{opacity:0!important}#video-showcase .video_item .thumb_video:hover .play_icon{opacity:1}#video-showcase .video_item .thumb_video .loading_icon{height:60px;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:var(--transition_fade);visibility:hidden;width:60px}#video-showcase .video_item .thumb_video.loading .loading_icon{opacity:1;visibility:visible}#video-showcase .video_item .thumb_video .loading_icon svg{animation:spin 1s linear infinite;color:var(--bg_primary);height:60px;width:60px}@keyframes spin{0%{transform:rotate(0deg)}40%{transform:rotate(180deg)}to{transform:rotate(1turn)}}#video-showcase .video_item .thumb_video .touch_video{bottom:0;cursor:pointer;height:78%;left:0;position:absolute;visibility:hidden;width:100%;z-index:10}#video-showcase .video_item .thumb_video.playing .touch_video{visibility:visible}@media (max-width:1440px){#video-showcase .swiper-slide{--video_width:25%}}@media (max-width:1024px){#video-showcase .swiper-slide{--video_width:33%;--video_margin_calc:6px;margin-right:12px}}@media (max-width:768px){#video-showcase .swiper-slide{--video_width:50%;--video_margin_calc:4px;margin-right:8px}}@media (max-width:340px){#video-showcase .swiper-slide{--video_width:100%;--video_margin_calc:0px}}#video-showcase .video_item .frame_video iframe{aspect-ratio:.56;height:100%;width:100%}",""]),r.locals={},e.exports=r},818:function(e,t,o){"use strict";o.r(t);var r={components:{sectionTitle:()=>o.e(2).then(o.bind(null,791))},data:()=>({playerList:[],isDragging:!1,startX:0,startY:0,banners:Array.from({length:8},(e,i)=>({placeholder:!0}))}),computed:{titleAndProfileLink(){return this.$store.state.home.videoShowcase||null},hasRealBanners(){return this.banners.some(b=>!b.placeholder)}},watch:{banners:{immediate:!0,async handler(e){null!=e&&e.length&&!e[0].placeholder&&(await this.$nextTick(),this.initPlayers())}}},methods:{initVideoShowcase(){this.getVideoShowcaseData(),this.lazyLoadYouTubeAPI()},async getVideoShowcaseData(){this.banners=await this.$dataFetcher.getBanners("video-showcase")},lazyLoadYouTubeAPI(){if(window.YT)this.$nextTick().then(()=>this.initPlayers());else{const e=document.createElement("script");e.src="https://www.youtube.com/iframe_api";document.querySelector("body").appendChild(e),window.onYouTubeIframeAPIReady=async()=>{await this.$nextTick(),this.initPlayers()}}},initPlayers(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null!==(e=this.banners)&&void 0!==e&&e.length&&window.YT&&("function"==typeof window.YT.Player&&this.$refs.videoFrame?this.banners.forEach((e,t)=>{const o=this.$refs.videoFrame[t].id;if(!o)return;const r=new window.YT.Player(o,{width:"300",height:"530",videoId:o,playerVars:{autoplay:0,mute:0,modestbranding:1,"showinfo:":0,controls:0,loop:0,rel:0},events:{onReady:e=>this.onPlayerReady(e,t),onStateChange:this.onPlayerStateChange}});this.playerList.push({player:r,isPlaying:!1})}):t<4&&setTimeout(()=>this.initPlayers(t+1),500))},onPlayerReady(e,t){var o;const r=null===(o=this.$refs.thumbVideo)||void 0===o?void 0:o[t];r&&r.classList.remove("loading")},onPlayerStateChange(e){},videoUrl(e){if(!e||!e.includes("shorts"))return"";return e.split("https://www.youtube.com/shorts/")[1]},toggleVideo(e){const video=this.playerList[e];if(!video.player&&!video.player.playVideo)return;const t=this.$refs.thumbVideo[e];video.isPlaying?(video.player.pauseVideo(),video.isPlaying=!1,t&&t.classList.remove("playing")):(video.player.playVideo(),video.isPlaying=!0,t&&t.classList.add("playing"))}}},n=r,l=(o(558),o(12)),component=Object(l.a)(n,function(){var e=this,t=e._self._c;return t("Lazy",{staticClass:"section",attrs:{id:"video-showcase",lazyCallback:e.initVideoShowcase}},[t("sectionTitle",{attrs:{sectionName:"video-showcase"}}),e._v(" "),t("Slider",{staticClass:"container container_swiper",attrs:{enabled:e.hasRealBanners,totalItens:e.banners.length,breakpoints:{1:{slidesPerView:1,spaceBetween:6},340:{slidesPerView:2,spaceBetween:8},768:{slidesPerView:3,spaceBetween:12},1024:{slidesPerView:4,spaceBetween:16},1440:{slidesPerView:5,spaceBetween:16}}}},e._l(e.banners,function(o,r){var n,l,d;return t("div",{key:`video_${r}`,staticClass:"swiper-slide"},[t("div",{staticClass:"video_item frame_image -shorts"},[t("div",{staticClass:"frame_video"},[t("div",{ref:"videoFrame",refInFor:!0,staticClass:"init_player",attrs:{id:e.videoUrl(null===(n=o.dimensoes)||void 0===n?void 0:n.desktop.link)}})]),e._v(" "),(null===(l=o.dimensoes)||void 0===l?void 0:l.desktop.imagem)!=e.$store.state.defaultBannerWithoutImg?t("div",{ref:"thumbVideo",refInFor:!0,staticClass:"thumb_video loading",on:{click:function(t){return e.toggleVideo(r)}}},[t("img",{attrs:{src:null===(d=o.dimensoes)||void 0===d?void 0:d.desktop.imagem,alt:o.alt||o.nome||"Placeholder",width:"300",height:"550"}}),e._v(" "),t("div",{staticClass:"play_icon"},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 375 375",width:"80",height:"80",version:"1.0"}},[t("path",{attrs:{fill:"currentColor",d:"M72.02 374.758c8.183 0 17.539-3.512 27.187-10.235l208.16-142.378c13.45-9.063 20.758-21.633 20.758-34.79 0-13.156-7.309-25.73-20.758-34.792L99.5 10.183C89.852 3.462 80.203.244 72.02.244c-15.497 0-25.145 12.573-25.145 33.331v307.852c0 20.758 9.648 33.332 25.145 33.332Zm0 0"}})])]),e._v(" "),t("div",{staticClass:"loading_icon"},[t("svg",{attrs:{version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:"60",height:"60",viewBox:"0 0 500 500"}},[t("path",{attrs:{d:"M221 1.7c-15.9 2.4-29.4 5.1-39.4 7.9C140.9 21.2 104.3 42.8 73.9 73c-39.4 39.1-62.8 85.9-71.6 143-2.1 14.2-2.4 50.9-.5 64.5C13.5 362.1 57 427.1 126.5 467.1c131.2 75.3 299.7 16.1 355.8-125.1 9-22.5 16.7-56 16.7-72.2 0-9.9-5.2-18.3-14.2-22.9-5.6-2.9-16-2.9-21.6 0-9.5 4.8-13.4 11.8-14.7 25.8-2.9 32.5-18.5 71.1-40.4 99.8-6.4 8.5-23.3 25.6-32 32.7-27.2 21.9-54.9 34.7-90.1 41.5-11.9 2.3-16.1 2.6-35 2.7-16.3 0-24-.4-32-1.7-36.6-6.2-66.2-19.3-93.7-41.3C53.7 349 30.2 252.1 67.6 167.7c16.1-36.4 45.9-69.6 80.9-90.2 23.1-13.6 44.7-21 76-25.9 18.3-2.9 21.7-4.6 26.9-13 5.6-9 4.6-20.9-2.4-28.8-6.7-7.7-15.1-10.1-28-8.1z",fill:"currentColor"}})])])]):e._e()])])}),0)],1)},[],!1,null,null,null);t.default=component.exports;installComponents(component,{Slider:o(192).default,Lazy:o(193).default})}}]);