1var isFirefox=navigator.userAgent.toLowerCase().includes("firefox"),isEdge=navigator.userAgent.toLowerCase().includes("edg/"),isAllowedUserAgent="function"!=typeof allowedUserAgent||allowedUserAgent();function visualPagerDesign_ready(e){if(e&&e.length){var t=angular.element(e),i=t.injector();if(i){var s=i.get("$compile"),o=t.parent().scope();s(t.contents())(o)}}}function visualPagerDesignDataLazy(e){void 0!==e&&($(".rdc-lazy-image",e).each(function(){var e=$(this);e.addClass("rdc-vpd-lozad").removeClass("rdc-lazy-image"),null==e.data("src")&&null!=e.data("lazy")&&e.attr("data-src",e.data("lazy")).removeAttr("data-lazy"),null==e.data("srcset")&&null!=e.data("lazy-srcset")&&e.attr("data-srcset",e.data("lazy-srcset")).removeAttr("data-lazy-srcset")}),$(".rdc-vpd-lozad",e).each(function(){var e=$(this),t=e.closest("figure");if(0!=t.length&&(e.hasClass("rdc-lazy-loaded")?t.removeClass("rdc-lazy-placeholder"):t.addClass("rdc-lazy-placeholder"),!t.hasClass("loader")&&null!=e.attr("data-size")&&null==e.attr("src"))){var i=e.attr("data-size").split("/");i[0]&&i[1]&&(e.removeAttr("data-size"),t.css("padding-bottom",100*i[1]/i[0]+"%").addClass("loader"))}}),window.observerVPD=lozad(".container-blocks .rdc-vpd-lozad",{loaded:function(e){e.classList.add("rdc-lazy-loaded");var t=$(e),i=t.closest("figure");i.removeClass("rdc-lazy-placeholder"),setTimeout(function(){i.removeClass("rdc-lazy-placeholder"),visualPagerDesignLazyLoaded(t,i)},50),setTimeout(function(){"undefined"!=typeof stickInParent&&void 0!==stickInParent.update?stickInParent.update():"undefined"!=typeof fixedFilters&&("function"==typeof $.fn.hcSticky?fixedFilters.hcSticky("refresh"):"function"==typeof $.fn.stick_in_parent&&fixedFilters.trigger("sticky_kit:recalc"))},150)}}),setTimeout(function(){$(window).scrollTop()>2*window.innerHeight&&"function"==typeof $.fn.isOnScreen&&$(".container-blocks-section").each(function(){var e=$
1(this);if(e.isOnScreen()){var t=e.find(".rdc-vpd-lozad");t.length&&t.each(function(){var e=$(this),t=e.closest("figure");t.removeClass("rdc-lazy-placeholder"),visualPagerDesignLazyLoaded(e,t)})}})},500),observerVPD.observe(),entriesFunction=!0)}function visualPagerDesignLazyLoaded(e,t){if(e.closest(".block23").length&&e.closest(".block71").length||t.removeClass("loader").css("padding-bottom",0),e.closest(".block58, .block59, .block60").length&&e.closest(".container-blocks-section").find("div.rdc-lazy-placeholder").remove(),e.closest(".blocks_slider_mobile").length&&e.closest(".section-products").length)(i=e.closest(".section-products")).is(":visible")&&!i.hasClass("slick-start-initialized")&&blocksProductsSliderMobile(i);else if(e.closest(".blocks_slider_desktop").length&&e.closest(".section-products").length){(i=e.closest(".section-products")).is(":visible")&&!i.hasClass("slick-start-initialized")&&blocksProductsSliderDesktop(i)}else if(e.closest(".sliderBlocos").length){(i=e.closest(".sliderBlocos")).is(":visible")&&!i.hasClass("slick-start-initialized")&&createMultiImagesSlider(i)}else if(e.closest(".brands-banner-slider").length){(i=e.closest(".brands-banner-slider")).is(":visible")&&!i.hasClass("slick-start-initialized")&&bannerBrandsSlider(i)}else if(e.closest(".shopbylook-banner-slider").length){(i=e.closest(".shopbylook-banner-slider")).is(":visible")&&!i.hasClass("slick-start-initialized")&&bannerShopByLookSlider(i)}else if(e.closest(".banner63").length)createHotspots(e.closest(".banner63"));else if(e.closest(".blocks_slider_img_mobile").length){var i;(i=e.closest(".blocks_slider_img_mobile")).is(":visible")&&!i.hasClass("slick-start-initialized")&&blocksSliderMobile(i)}}function adjustEdge(){isEdge&&setTimeout(()=>{$(".container-video").each(function(){$(this).css("min-height",$(this).parent().height())}),$(".htmlTable, .htmlTable .contentHTML_TEXT, .htmlTable .contentHTML_TEXT_CONTENT, .structuredTextTable").each(function(){$(this).css("min-height",$(this).parent().height())}),ajustBlocos()},700),isFirefox&&ajustBlocos()}function ajustBlocos(){$.each([6,7,20,33,34,35,36,37,38,39,44,45,46,47,48,49,50,51],function(e,t){$(`.wrapper-banner.banner${t} .dis_table .dis_cell`).find(".box-images, .imageStructuredTextBottom").each(function(){let e=$(this),t=e.parent().height();t>50&&e.css("height",t)})}),isFirefox&&$(".wrapper-banner.banner2").each(function(){let e=$(this),t=e.find(".rdc-vpd-lozad, .rdc-lazy-image").length>0;0!=e.height()||t||e.css("height",1)})}function printInstagram(e){if(0==$(".wrapper-banner.banner28",e).length)return;let t=this;t.remoteDataInstagram=function(){$(".wrapper-banner.banner28",e).each(function(){let e=$(this),i=e.attr("hash");if(!i)return void e.remove();let s=parseInt(e.attr("num_photos")),o=e.find(".Instaimage");for(let t=s+1;t<=6;t++)e.find(".instaimage_"+t).remove();let a="https://api.instagram.com/v1/users/self/media/recent",n=1;"undefined"==typeof sLocation&&(sLocation=window.location.origin),i.length>100&&(n=2,a=sLocation+"/plugins/visualpager_blocks/includes/instagram_curl.php"),$.ajax({url:a,type:"GET",data:{access_token:i,count:s},success:function(i){let a=1==n?i?.data:i;if(!a)return;e.find(".instagramImages").css("background","none");let r=0;$.each(a,function(e,i){if(r>=s)return!1;let a=1==n?i.images?.standard_resolution?.url:i.media_url,l=i.media_type||"IMAGE";if("IMAGE"!=l){if(1==n)return;if("VIDEO"==l&&i.thumbnail_url)a=i.thumbnail_url;else{if("CAROUSEL_ALBUM"!=l||!i.media_url)return;a=i.media_url}}let d=t.getHTMLInstagram({id:i.id,link:i.link,media_url:a,media_type:l});$(o[r]).append(d),r++}),t.setInstagramisOnScreen()},error:function(){e.remove()}})})},t.getHTMLInstagram=function(e){return`\n <a href="${e.link}" class="instagramLink" target="_blank">\n <div class="instagramImageCover" media_url="${e.media_url}" style="aspect-ratio: 4/5;"></div>\n <div class="icon-instagram"></div>\n </a>\n `},t.setInstagramisOnScreen=function(){$(".wrapper-banner .instagramImageCover:not(.newimageloaded)",e).each(function(){(void 0===$.fn.isOnScreen||$(this).isOnScreen())&&($(this).addClass("newimageloaded"),t.setInstagramImage(this))})},t.setInstagramImage=function(e){$(e).css("background-image",`url(${$(e).attr("media_url")})`)},t.remoteDataInstagram(),$(window).on("scroll",function(){t.setInstagramisOnScreen()})}function visualpager_mp4_videos(e){let t=$(".container-video-mp4 .video-js",e);if(t.length&&(t.each(function(){let e=$(this);1==e.attr("hovercontrols")&&"autoplay"==e.attr("autoplay")&&e.attr("controls","controls")}),t.on("click",function(){let e=$(this).data("linkurl");this.autoplay&&e&&(location.href=e)}
1),$(".playpausevideo",e).on("click",function(){let e=$(this).closest(".container-video-mp4"),t=e.find("video"),i=t[0],s=t.data("linkurl"),o=$(this);i.paused?(t.css("opacity",1),e.find(".primary_image").remove(),o.addClass("iconPause"),o.hasClass("vd-init")||(i.currentTime=0,o.addClass("vd-init")),i.play(),1==t.attr("hovercontrols")&&t.attr("controls","controls")):t.prop("controls")||(s?location.href=s:(o.removeClass("iconPause"),i.pause()))}).on("mouseleave",function(){let e=$(this).closest(".container-video-mp4").find("video"),t=e[0];1!=e.attr("hovercontrols")||t.paused||$(this).hide()}),"function"==typeof $.fn.isOnScreen)){let e=function(){t.each(function(){let e=$(this);e.isOnScreen()?"scroll-pause"==e.data("systemScreenControll")&&this.play():this.paused||(e.data("systemScreenControll","scroll-pause"),this.pause())})};e(),$(window).on("scroll",function(){e()})}}function propositionsSlider(e){$(".propositions-slider",e).each(function(){let e=$(this);e.hasClass("slick-initialized")||(e.find(".col-tablet-portrait-height-0,.col-tablet-portrait-overflow-hidden,.col-tablet-portrait-width-6,.col-tablet-landscape-height-0,.col-tablet-landscape-overflow-hidden,.col-tablet-landscape-width-4").removeClass(),e.find(".col-tablet-portrait-display-none").remove(),e.find(".col-tablet-landscape-display-none").remove(),e.addClass("loaded").slick({autoplay:window.innerWidth<768,infinite:!0,variableWidth:!1,adaptiveHeight:!0,pauseOnHover:!0,autoplaySpeed:4e3,speed:400,draggable:!0,arrows:!1,dots:!0,slidesToShow:3,slidesToScroll:3,responsive:[{breakpoint:992,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:768,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]}))})}function testemunhosSlider(e){$(".testemunhos-slider",e).each(function(){let e=$(this);e.hasClass("slick-initialized")||(e.find(".col-tablet-portrait-height-0,.col-tablet-portrait-overflow-hidden,.col-tablet-portrait-width-6,.col-tablet-landscape-height-0,.col-tablet-landscape-overflow-hidden,.col-tablet-landscape-width-4").removeClass(),e.find(".col-tablet-portrait-display-none").remove(),e.find(".col-tablet-landscape-display-none").remove(),e.addClass("loaded").slick({autoplay:!1,infinite:!0,variableWidth:!1,adaptiveHeight:!0,pauseOnHover:!0,autoplaySpeed:0,speed:400,draggable:!0,arrows:!1,dots:!0,slidesToShow:3,slidesToScroll:3,responsive:[{breakpoint:992,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:768,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]}))})}function banner58_59_60_product(e){let t=this;t.checkOnScreen=function(){$(".wrapper-banner-maintable .wrapper-banner-product:not(.newimageloaded)",e).each(function(){let e=$(this);if(void 0===$.fn.isOnScreen||e.closest(".container-blocks-section").isOnScreen()){if(0==$("figure",this).length)return e.addClass("newimageloaded"),!0;t.loadProductImage(e),setTimeout(function(e){e.closest(".dis_cell").find(".rdc-lazy-placeholder-product-item").remove()},10,e)}})},t.loadProductImage=function(e){let t=e.attr("img_src"),i=e.attr("img_hover_src"),s=e.attr("img_alt"),o=`<img src="${t}" alt="${s}" class="rdc-visulpager-product-image"/>`;!i||"ontouchstart"in window||(o+=`<img src="${i}" alt="${s}" class="rdc-visulpager-product-houver-image"/>`),$("figure",e).html(o).removeClass("loader rdc-lazy-placeholder"),e.addClass("newimageloaded")},t.checkOnScreen(),$(window).on("scroll",function(){t.checkOnScreen()})}function blocksProductsSliderMobile(e){if(!e?.length)return;e.addClass("slick-start-initialized");let t=e.children().length,i={dots:!0,variableWidth:!1,adaptiveHeight:!0,speed:300,arrows:!1,slidesToShow:2,slidesToScroll:2,centerMode:!1,initialSlide:0,swipeToSlide:!0,cssEase:"ease",infinite:!0};e.hasClass("list_mobile_grid_100")&&(i.slidesToShow=1,i.slidesToScroll=1),e.closest(".banner71").length>0&&Object.assign(i,{infinite:!1,variableWidth:!0,adaptiveHeight:!1,slidesToShow:1,slidesToScroll:2,centerMode:!0});let s=parseFloat(e.find(".productColumn").eq(0).css("paddingLeft"));s%2!=0&&window.innerWidth%2==0&&(e.addClass("paddingCalculated").css({marginLeft:-parseInt(s),marginRight:-parseInt(s)}
1),e.find(".productColumn").css({paddingLeft:parseInt(s),paddingRight:parseInt(s)})),loadImagesBySection(e),t>1&&e.is(":visible")&&!e.hasClass("loaded")&&e.addClass("loaded").slick(i),"function"==typeof productSlide&&productSlide()}function blocksProductsSliderDesktop(e){if(!e?.length)return;e.addClass("slick-start-initialized"),"function"==typeof productSlide&&productSlide();let t=e.find("> .dis_row"),i=t.children().length,s=e.data("sliders")||4,o=1;e.closest(".banner71").length&&$("body").hasClass("tablet")&&(s=4);let a="ontouchstart"in document.documentElement;a&&(o=s),e.addClass(`blocks-products-total-${i}`);let n=e.find(".productColumn").eq(0),r=parseFloat(n.css("paddingLeft"))||0;if(r%2!=0&&window.innerWidth%2==0){let t=parseInt(r,10);e.addClass("paddingCalculated").css({marginLeft:-t,marginRight:-t}),e.find(".productColumn").css({paddingLeft:t,paddingRight:t})}if(loadImagesBySection(e),i>s&&1==e.is(":visible")&&0==e.hasClass("loaded")){e.addClass("loaded"),t.addClass("slider").slick({autoplay:!1,infinite:!1,variableWidth:!1,adaptiveHeight:!0,pauseOnHover:!0,speed:300,swipe:a,arrows:!0,dots:!1,slidesToShow:s,slidesToScroll:o,centerMode:!1,initialSlide:0,cssEase:"ease"});let i=t.slick("getSlick");if(i){let e=i.setDimensions.bind(i);i.setDimensions=function(){e();let t=this.options.slidesToShow;if(t>0&&this.slideWidth*t>this.listWidth){let e=Math.floor(this.listWidth/t);if(e>0&&e!==this.slideWidth){this.slideWidth=e;let t=this.$slideTrack.children(".slick-slide").length;this.$slideTrack.width(e*t);let i=this.$slides.first().outerWidth(!0)-this.$slides.first().width();this.$slideTrack.children(".slick-slide").width(e-i)}}},t.slick("setPosition")}}}function blocksSliderMobile(e){e?.length&&!(window.innerWidth>=768)&&(e.addClass("slick-start-initialized"),!e.is(":visible")||e.hasClass("loaded")||e.addClass("loaded").slick({autoplay:!1,infinite:!1,variableWidth:!0,adaptiveHeight:!0,pauseOnHover:!0,speed:300,swipe:!0,arrows:!1,dots:!0,centerMode:!1,initialSlide:0,cssEase:"ease",slidesToShow:1,slidesToScroll:1}))}function createMultiImagesSlider(e){if(!e?.length||e.closest(".slick-initialized").length)return;e.addClass("slick-start-initialized");let t={autoplay:!0,infinite:!0,variableWidth:!1,adaptiveHeight:!1,pauseOnHover:!0,autoplaySpeed:3e3,speed:"undefined"!=typeof JSVarsContentBlocks&&"MOBILE"===JSVarsContentBlocks.platform?400:1300,draggable:!0,swipe:!0,dots:!0,arrows:!1,height:200,mobileFirst:!0},i=parseInt(e.attr("template")),s=parseInt(e.attr("autoSlide")),o=parseInt(e.attr("indexSlide")),a=e.parents(".container-slider-blocos"),n=a.hasClass("container-slider-auto-height"),r=a.length&&!n?a.height():0;r>0&&e.find(".uni_slider").height(r),t.autoplay=0!=s,loadImagesBySection(e);let l=e.addClass("loaded").slick(t);window[`slider_${o}${i}`]=l,l.on("beforeChange",function(e,t,i,s){let o=$(t.$slider).parents("._frame").find(".pagers_multiImagens");if(!o.length)return;let a=o.children();o.find("li.active").removeClass("active"),a.eq(s).addClass("active")}),adjustEdge()}function bannerBrandsSlider(e){if(!e?.length)return;e.addClass("slick-start-initialized");let t=window.innerWidth<768?1:6;if(loadImagesBySection(e),!e.hasClass("slick-initialized")&&e.find(".uni").length>t){let i=e.closest(".brands-banner").attr("brandsid");window["brandsslider_"+i]=e.addClass("loaded").slick({autoplay:!0,infinite:!0,slidesToShow:t,slidesToScroll:t,variableWidth:!1,adaptiveHeight:!0,pauseOnHover:!0,autoplaySpeed:7e3,speed:window.innerWidth<768?400:1300,draggable:window.innerWidth<768,arrows:!1,dots:!0})}}function bannerShopByLookSlider(e){if(e?.length&&(e.addClass("slick-start-initialized"),!e.hasClass("slick-initialized")&&e.find(".uni").length>1)){let t=e.closest(".shopbylook-banner").attr("shopbylookid");window["shopbylookslider_"+t]=e.addClass("loaded").slick({autoplay:!1,infinite:!0,slidesToShow:window.innerWidth<768?1:2,slidesToScroll:window.innerWidth<768?1:2,variableWidth:!1,adaptiveHeight:!0,pauseOnHover:!0,autoplaySpeed:7e3,speed:window.innerWidth<768?400:1300,draggable:window.innerWidth<768,arrows:!1,dots:!0})}}function createHotspots(e){let t=$(".rdc-platform-b2b").length>0;var i={39:"Adicionar ao carrinho",80:"Ver Detalhes"},s={39:$(".hotspot-list[exp-39]").first().attr("exp-39"),50:$(".hotspot-list[exp-50]").first().attr("exp-50"),80:$(".hotspot-list[exp-80]").first().attr("exp-80"),420:$(".hotspot-list[exp-420]").first().attr("exp-420"),443:$(".hotspot-list[exp-443]").first().attr("exp-443"),471:$(".hotspot-list[exp-471]").first().attr("exp-471")};for(var o in i)null==s[o]&&(s[o]=i[o]);"undefined"==typeof cHotspotTimeout54&&(window.cHotspotTimeout54="");let a={element:e,elementlist:e.find(".hotspot-list"),templateHTML(e,i){let o=e.data(),a=e.closest(".hotspot-list").data("show-product-brand")||0,n={id:o.productId,title:o.productTitle,sku_family:o.productSku_family,desc:o.productDesc,image:o.productImage,url:o.productUrl,variantsLength:parseInt(o.productVariantsLength)||0,hide_sale:parseInt(o.hide_sale)||0,priceHtml:o.productPriceHtml||"",key_1_name:o.productBrand||"",brand:{enabled:1==a&&!!o.brandEnabled,image:o.brandImage||"",name:o.brandName||""},price:{rrp:o.productPriceRrp,desde:o.productPriceDesde,old:o.productPriceOld,discount:o.productPriceDiscount,discount_id:o.productPriceDiscountId,current:o.productPriceCurrent,prefix:o.productPricePrefix||"",sufix:o.productPriceSufix||""},promo:o.productPromo,vat:o.productVat,position:{top:parseInt(o.top)||0,left
1:parseInt(o.left)||0}},r="",l="";window.innerWidth>=768&&(r=n.position.top<35?"hotspot-valign-bottom":"hotspot-valign-top",l=n.position.left<20?"hotspot-align-left":n.position.left>78?"hotspot-align-right":"hotspot-align-center");let d="";!n.brand.enabled||(d=n.brand.image?`<img src="${n.brand.image}" width="80" height="49" style="max-height: 49px;object-fit: contain;" />`:n.brand.name?`<p class="paragraph" style="font-weight:500;">${n.brand.name}</p>`:"")||(n.brand.enabled=!1);let c="";return(null==i||0==i)&&(c+=`<div class="hotspot-overlay-arrow hidden-xs ${r}" style="width: 0;height: 0;border-left: 9px solid transparent;border-right: 9px solid transparent;border-top: 11px solid white;position: absolute;left: 50%;transform: translateX(-50%);z-index: 200;"></div>`),t?(c+=`<div class="hotspot-overlay ${r} ${l}">\n <div class="hotspot-canvas-overlay"></div>\n <div class="hotspot-ov" style="display: flex;flex-direction: row;">\n <div class="hotspot-ov-prodimage"><figure class="productMask"><img src="${n.image}" height="176"></figure></div>\n <div class="hotspot-ov-content">\n <div class="product-item" style="flex-grow: 1;">\n <div class="desc" style="height: 100%;">\n <div style="display: flex;flex-direction: column;height: 100%;">\n <p class="product-item-title">${n.title}</p>\n <p class="product-item-label" style="padding-bottom: 10px;">${s[50]}: ${n.sku_family}</p>\n <p class="product-item-description" style="padding-bottom: 10px;">${n.desc}</p>\n <div class="rdc-hotspot-product-price rdc-hidden-prices" style="display: flex;grid-gap: 0 11px;align-items: flex-start;flex-wrap: wrap;">`,"0"!=n.price.rrp&&(c+=`<div class="rdc-hotspot-product-price-column">\n <p class="product-item-label small price-title" style="padding-bottom: 4px;">${s[443]}</p>\n <p class="product-item-price small price-value">${n.price.prefix+n.price.rrp+n.price.sufix}</p>\n </div>`),c+='<div class="rdc-hotspot-product-price-column rdc-hidden-rrpprices">\n <div class="rdc-product-final-price rdc-hidden-prices">\n <p class="product-item-label small price-title" style="padding-bottom: 4px;">',""!=n.price.desde?c+=n.price.desde:"0"!=n.price.old?c+=s[471]:c+=s[420],c+=`</p>\n <p class="small price-value product-item-price">\n <span class="product-item-price-bold" style="line-height: 0;">${n.price.prefix+n.price.current+n.price.sufix}</span>\n </p>\n </div>\n </div>\n </div>`,""!=n.vat&&(c+=`<div class="rdc-header-search-product-vat-notice rdc-hidden-prices rdc-hidden-rrpprices" style="padding-top: 2px;">\n <p class="product-item-label small"><span>${n.vat}</span></p>\n </div>`),c+=`</div>\n </div>\n </div>\n <div class="hotspot-ov-actions">\n <span class="hotspot-btn-detail link rdc-link-icon" data-pid="${n.id}">${s[80]}<div class="rdc-icon-svg-mask rdc-icon-arrowright"></div></span>`,n.brand.enabled&&(c+=`<div class="rdc-hotspot-brand-image" style="margin-left: auto;">${d}</div>`),c+="</div>\n </div>\n </div>\n </div>"):(c+=`<div class="hotspot-overlay ${r} ${l}">\n <div class="hotspot-canvas-overlay"></div>\n <div class="hotspot-ov" style="display: grid;grid-template-columns: auto 1fr;">\n <div class="hotspot-ov-prodimage"><figure class="productMask" style="cursor:pointer;" onclick="location.href='${n.url}'"><img src="${n.image}" height="176"></figure></div>\n <div class="hotspot-ov-content">\n <div class="product-item" style="flex-grow: 1;">\n <div class="desc" style="height: 100%;">\n <div style="display: flex;flex-direction: column;height: 100%;">`,n.brand.enabled&&JSVarsContentBlocks.site_version>30&&(c+=`<p class="base-product-item-brand rdc-product-item-brand" style="line-height: 140%;">${n.key_1_name}</p>`),c+=`<p class="base-product-item-name ${JSVarsContentBlocks.site_version<30?"name":"rdc-product-item-name"}" style="${JSVarsContentBlocks.site_version<=30?"font-weight: 600;":""}cursor:pointer;" onclick="location.href='${n.url}'">${n.title}</p>`,n.desc&&(c+=`<p class="base-product-item-description description paragraph" ${JSVarsContentBlocks.site_version>30?'style="color: var(--color-darkgray, #666);"':""}>${n.desc}</p>`),c+=`<div class="base-product-item-price-wrapper">\n <div class="wrap-price price">\n ${n.priceHtml}`,c+="</div>
1",c+="</div>",0==JSVarsContentBlocks.product_item_promo_info&&"0"!=n.price.old&&""!=n.promo&&(c+=`<div class="wrap-promo" data-promo="${n.price.discount_id}"><p class="base-rdc-promo-date rdc-promo-date">${n.promo}</p></div>`),c+=`</div>\n </div>\n </div>\n <div class="hotspot-ov-actions">\n <a href="${n.url}" class="hotspot-btn-detail" data-pid="${n.id}" title="${JSVarsContentBlocks.expressions[828]+s[80].toLowerCase()}">${s[80]}</a>`,1==n.variantsLength&&0==n.hide_sale&&(c+=`<a data-pid="${n.id}" class="hotspot-btn-cart" style="text-decoration: none;" title="${JSVarsContentBlocks.expressions[828]+s[39].toLowerCase()}">${s[39]}</a>`),n.brand.enabled&&JSVarsContentBlocks.site_version<=30&&(c+=`<div class="rdc-hotspot-brand-image" style="margin-left: auto;">${d}</div>`),c+="</div>\n </div>\n </div>\n </div>"),c},hideHotspots:()=>{a.elementlist.removeClass("hotspot_active"),$(".hotspot-item.active").attr("title",$(this).data("title")).removeClass("active")}};a.elementlist.addClass("hotspot-list-display"),e.on("mouseenter",".hotspot-item",function(e){if(!$(e.target).hasClass("hotspot-overlay")&&0==$(e.target).closest(".hotspot-overlay").length){e.stopPropagation(),a.hideHotspots();let t=$(this);t.find(".hotspot-overlay").length||t.append(a.templateHTML(t)),t.data("title",t.attr("title")).addClass("active"),a.elementlist.addClass("hotspot_active"),"function"==typeof gtag&>ag("event","click_on_hotspot",{event_category:"engagement",event_label:$(this).data("product-sku_group")})}}).on("mouseleave",".hotspot-item",function(){a.hideHotspots()}).on("click",".hotspot-list",function(e){$(e.target).hasClass("hotspot-overlay")||0!=$(e.target).closest(".hotspot-overlay").length||a.hideHotspots()}),"function"!=typeof beforeOpenHotspots&&(window.beforeOpenHotspots=function(){let e=$(`#block-id-${hotspotActiveId}`).find(".hotspot-list");if(0==e.length)return!1;let t=e.find(".hotspot-item").map((e,t)=>a.templateHTML($(t),e)).get().join("");$("#ht-8764").html(e.data("hotspots-title")),$("#ht-8765").html(e.data("hotspots-length")),$("#rdc-mobile-hotspots").html(t)},$("body").on("click",".hotspot-btn-cart",function(e){$(this).closest(".hotspot-item").length&&a.hideHotspots();let t=$(this);if(t.hasClass("disabled"))return;let i=t.data("pid");i&&0!=i&&(t.addClass("loader"),$.get(`/api/api.php/addToBasket/1/0/${i}/1/0`).done(function(e){"object"!=typeof e&&(e=$.parseJSON(e)),"function"==typeof trakingsAddCart&&trakingsAddCart(e,i,1),null!=angular.element("#controller-cart").scope()?angular.element("#controller-cart").scope().addMiniBasket(e.response.cart,"AJAX"):addMiniBasketPreviousTemplates(e),"function"==typeof addCartCompleted&&addCartCompleted(e.response.cart,"<AJAX></AJAX>"),"function"==typeof addCartCompletedDetail&&addCartCompletedDetail(e.response.cart,"<AJAX></AJAX>"),e.response.trackers&&$(".tagsWrapper").append(atob(e.response.trackers)),t.removeClass("loader"),window.innerWidth<768&&(clearTimeout(cHotspotTimeout54),$("#show_hotspots .success").slideDown(300),$(".wrapper-popup").scrollTop(0),cHotspotTimeout54=setTimeout(function(){$("#show_hotspots .success:visible").slideUp(300)},2e3))}))}))}function loadYouTubeAPI(){if(!window.YT||"function"!=typeof window.YT.Player){var e=document.createElement("script");e.src="https://www.youtube.com/iframe_api",e.onload=function(){setTimeout(()=>{"function"==typeof onYouTubeIframeAPIReady&&onYouTubeIframeAPIReady()},500)},document.head.appendChild(e)}}function onYouTubeIframeAPIReady(){let e=0;!function t(){if(window.YT&&"function"==typeof window.YT.Player)return onYouTubeBLIframeAPIReady(),void("function"==typeof productYouTubeVideo&&productYouTubeVideo());e++<10&&setTimeout(t,100)}()}function onYouTubeBLIframeAPIReady(){$(".container-blocks .YoutubePlayer").each(function(){var e=$
1(this),t=e.attr("template"),i=e.attr("videoID"),s=parseInt(e.attr("auto_play"))||0,o=parseInt(e.attr("auto_repeat"))||0;window["YT_video_"+t]=new YT.Player(this,{height:"100%",width:"100%",videoId:i,playerVars:{autoplay:s,loop:o,showinfo:0,controls:1,rel:0,modestbranding:1},events:{onReady:function(e){1==s&&e.target.mute()},onStateChange:function(e){e.data==YT.PlayerState.ENDED&&1==o&&e.target.playVideo()}}})})}function loadImagesBySection(e){e.find("img.rdc-vpd-lozad[data-src]").each(function(){var e=$(this);1!=e.data("loaded")?(e.attr("src",e.data("src")).removeAttr("data-src"),null!=e.data("srcset")&&e.attr("srcset",e.data("srcset")).removeAttr("data-srcset")):e.removeAttr("data-src")}),e.find(".rdc-vpd-lozad, .rdc-lazy-placeholder").removeClass("rdc-vpd-lozad rdc-lazy-placeholder"),e.find("figure.loader").each(function(){var e=$(this);0==e.closest("article.product-item").length&&e.css("padding-bottom",0).removeClass("loader")}),Boolean(e.find("article.product-item").length)&&"function"==typeof productItemObserve&&setTimeout(function(){productItemObserve()})}function positioningStructuredText(e){let t="ontouchstart"in window,i=1440>$(window).width();$(".structuredTextTable:not(.bottomImage)",e).each(function(){let s=$(this);if(s.closest(".wrapper-banner.banner1").length)return;let o=s.find(".structuredText");var a=parseFloat(o.attr("twidth"))||0,n=o.attr("talign"),r=o.attr("tvalign"),l=parseFloat(o.attr("tdraggcenter"))||0,d=parseFloat(o.attr("ldraggcenter"))||0,c=parseFloat(o.attr("tdraggcorner"))||0,p=parseFloat(o.attr("ldraggcorner"))||0;if(!(n&&r&&l&&d))return void o.css("opacity",1);if(0!=a&&i&&t){let e=1+3.6*(1-window.innerWidth/1440);a*e<=100&&(a*=e)}e.addClass("wrapper-strtext-drgg-active"),s.addClass("draggable-positioning"),o.find(".structuredText_content").find(".contentTitles_title, .contentTitles_subtitle, .contentTitles_description, .contentTitles_description2").css("display","inline-block").each(function(){$(this).css("min-width",$(this).outerWidth())}),o.find(".contentTitles_button").each(function(){$(this).parent().css("min-width",$(this).outerWidth(!0))});let u={top:`${l}%`,left:`${d}%`,bottom:"auto",right:"auto"};if(o.hasClass("absolute")||(u={top:`${c}%`,left:`${p}%`,transform:"translate(0)"}),a>0&&(u.width=`${a}%`,o.addClass("resizable_active")),i&&t){let e="-50%",t="-50%",i=o.find(".dis_cell");if(o.add(o.find(".dis_table")).css({width:"auto",height:"auto"}),0==a){let e=0;o.find(".structuredText_content").children().each(function(){let t=$(this).children().first();t.css({display:"inline",width:"fit-content"}),e=Math.max(e,Math.round(t.outerWidth())),t.css({display:"inline-block",width:"auto"})}),o.find(".structuredText_content").width(e+1)}let n=s.height(),r=s.width(),h=i.outerHeight(),f=i.outerWidth(),m=(h-i.height())/2,g=100*(h/2+m)/n;h>=n?(u.top=0,u.bottom="auto",t="0"):g>l-30?(u.top=`${c}%`,u.bottom="auto",t="0"):g+l>=99&&(u.top="auto",u.bottom=0,t="0");let b=100*(f/2+m)/r;b>d||r*p/100<f/2?(u.left=`${p}%`,u.right="auto",e="0"):b+d>=99&&(u.left="auto",u.right=0,e="0"),u.transform=`translate(${e}, ${t})`}o.css(u)})}function clampStructuredTextPosition(e){$(".structuredTextTable:not(.bottomImage)",e).each(function(){let e=$(this);if(e.closest(".wrapper-banner.banner1").length)return;let t=e.find(".structuredText.absolute.resizable_active");if(!t.length)return;let i=parseFloat(t.attr("tdraggcenter"))||0,s=parseFloat(t.attr("ldraggcenter"))||0;if(!i||!s)return;let o=e.width(),a=e.height();if(!o||!a)return;let n=t.outerWidth(),r=t.outerHeight();n>o&&(t.css("width","100%"),n=o);let l=window.getComputedStyle(t[0]).transform,d=l&&"none"!==l?-parseFloat(l.split(",")[5]):0,c=r>0&&d/r>.25,p=l&&"none"!==l?-parseFloat(l.split(",")[4]):0,u=n>0&&p/n>.25;if(r>=a)return void t.css({top:c?r/2/a*100+"%":0,bottom:"auto"});if(!c)return;let h=n/2,f=r/2,m={top:Math.min(Math.max(a*(i/100),f),Math.max(a-f,f))/a*100+"%"};u&&(m.left=Math.min(Math.max(o*(s/100),h),Math.max(o-h,h))/o*100+"%"),t.css(m)})}function buildCreditSimulator(e,t,i){$.ajax({type:"GET",url:`/api/api.php/getCreditSimulationDetails/${i}/0/${t}`,success:function(i){let s="object"==typeof i?i:$.parseJSON(i),o=$(".rdc-credit-simulator-options",e),a=o.closest(".select"),n=$(".rdc-credit-simulator .form-message",e);o.prop("disabled",!0),a.addClass("disabled"),o.find("option:gt(0)").remove();let r=0;if(t.length>0){let e=s?.response?.opcoes||[];if(e.length>0){r=e[0].id;let t=e.map(e=>`<option value="${e.id}">${e.nome}</option>`).join("");o.append(t).prop("disabled",!1),a.removeClass("disabled"),n.is(":visible")&&n.slideUp(300)}else n.is(":visible")||n.slideDown(300)}else n.is(":visible")&&n.slideUp(300);o.val(r).trigger("change")}})}function updateCreditSimulator(e){let t=$(e),i=t.closest(".banner64"),s=t.val(),o=$(".rdc-credit-simulator-value",i).val(),a=$(".rdc-credit-simulator-months, .rdc-credit-simulator-monthly, .rdc-credit-simulator-tan, .rdc-credit-simulator-taeg, .rdc-credit-simulator-cf, .rdc-credit-simulator-total-value",i),n=$(".rdc-credit-simulator .form-message",i),r={number_dec:t.data("currency-number_dec"),separator_dec:t.data("currency-separator_dec"),separator_mil:t.data("currency-separator_mil")};if(!s||""==o||0==o)return a.val("").prop("disabled",!0),!1;
1$.ajax({type:"GET",url:`/api/api.php/getCreditInfoDetails/${s}/0/${o}`,success:function(e){let t=("object"==typeof e?e:$.parseJSON(e)).response||{};t.monthly_payment&&t.credit_total?(n.is(":visible")&&n.slideUp(300),"function"==typeof number_format&&(t.monthly_payment=number_format(t.monthly_payment,r.number_dec,r.separator_dec,r.separator_mil),t.TAN=number_format(t.TAN,r.number_dec,r.separator_dec,r.separator_mil),t.TAEG=number_format(t.TAEG,r.number_dec,r.separator_dec,r.separator_mil),t.credit_total=number_format(t.credit_total,r.number_dec,r.separator_dec,r.separator_mil),t.cf_value=number_format(t.cf_value,r.number_dec,r.separator_dec,r.separator_mil)),null!=t.duration&&$(".rdc-credit-simulator-months",i).val(t.duration),$(".rdc-credit-simulator-monthly",i).val(t.monthly_payment),$(".rdc-credit-simulator-tan",i).val(t.TAN),$(".rdc-credit-simulator-taeg",i).val(t.TAEG),$(".rdc-credit-simulator-cf",i).val(t.last_monthly_payment??t.cf_value),$(".rdc-credit-simulator-total-value",i).val(t.credit_total),a.prop("disabled",!1)):(a.val("").prop("disabled",!0),n.is(":hidden")&&n.slideDown(300))}})}function bannerCampaignsMA(e){let t=$(".container-blocks .banner65",e).find(".rdc-vpd-recommendation-campaign").first(),i=t.attr("data-productsNumber");$.ajax({type:"POST",url:"/api/api.php/getRecommendationCampaignBlock",data:{num_prods:i},success:function(e){let i=("object"==typeof e?e:$.parseJSON(e)).response||{};if(0!=i.active)if(void 0===$.base64){var s=document.createElement("script");s.src="/plugins/system/js/jquery.base64/jquery.base64.js",s.onload=o,document.head.appendChild(s)}else o();else t.closest(".container-blocks-section").remove();function o(){let e=$.base64.atob(i.prods);t.html(e),t.find(".related-products .section-products").children("[ng-repeat]").remove(),"function"==typeof dataImageSizes&&dataImageSizes()}}})}if($(window).on("load",function(){adjustEdge()}),function(){var e,t=window.innerWidth;$(window).on("resize",function(){window.innerWidth!==t&&(t=window.innerWidth,clearTimeout(e),e=setTimeout(function(){$(window).trigger("rcc:viewport-resize")},150))})}(),$(window).on("scroll",function(){"function"==typeof videoBlockControll__productitem&&videoBlockControll__productitem()}),app.controller("visualPagerBlocksController",["$scope","$rootScope","$element","$window","$timeout",function(e,t,i,s,o){e.addCart=function(e){t.$broadcast("addCartFunc",{$elem:e})},e.addWish=function(e){t.$broadcast("addWishFunc",{$elem:e})};var a=window.matchMedia("(min-width: 768px) and (max-width: 1199px) and (orientation: portrait)");function n(){e.isTabletPortrait=a.matches}n(),a.addEventListener("change",function(){o(n)});var r=()=>{$(".container-slider-blocos .sliderBlocos",i).each(function(){var e=$
1(this),t=e.parents(".container-slider-blocos").first(),i=0;t.length&&!t.hasClass("container-slider-auto-height")&&(i=t.height()),i>0&&e.find(".uni_slider").height(i)}),adjustEdge()};$(window).on("rcc:viewport-resize",r),e.$on("$destroy",function(){$(window).off("rcc:viewport-resize",r)}),$(".content_products .productItemBlocos .prod-info-cb",i).each(function(){let e=$(this),t=e.closest(".productItemBlocos"),i=e.find(".prod-info-cb-brand"),s=e.find(".prod-info-cb-price"),o=e.find(".prod-info-cb-pv-price"),a=e.find(".prod-info-cb-disc-price");i.text().trim()||(i.remove(),t.removeClass("info-brand")),(!s.text().trim()||isZeroPrice(s.text().trim()))&&(s.remove(),t.removeClass("info-price")),o.text().trim()||(o.remove(),a.remove(),t.removeClass("info-pv-price info-disc-price")),a.text().trim()||(a.remove(),t.removeClass("info-disc-price"))}),$(".rdc-block-fixed-fullscreen",i).closest(".inner-container-blocks-section").removeClass("container");let l=$(".container-blocks .cms_frm",i);l.length>0&&l.find("input[name=csrf]").val(JSVars.shop.csrf),$(".htmlTable.absolute",i).each(function(){let e=$(this),t=e.parent();e.height()<t.height()&&e.height(t.height())}),window.innerWidth<768&&$(".columnAutoHeightMobile",i).each(function(){let e=$(this);(e.find(".structuredText").length?e.find(".structuredText"):e.find(".htmlTable")).find(".dis_table").outerHeight(!0)>e.find(".cover_image").height()+20&&e.addClass("textLargerMobile")});let d=$(".bloco38-multiimages-4",i);if(d.length>0){let t=()=>{d.width($(".bloco38-image-4",i).first().width())};t(),$(window).on("rcc:viewport-resize",t),e.$on("$destroy",function(){$(window).off("rcc:viewport-resize",t)})}if($(".wrapper-banner-maintable .wrapper-banner-product",i).length>0&&banner58_59_60_product(i),$(".wrapper-banner.banner68",i).length>0&&banner68(i),$(".banner64",i).length>0){let e=$(".banner64 .rdc-credit-simulator-value",i);e.on("keypress",function(e){let t=e.which?e.which:e.keyCode;if(t>31&&46!=t&&(t<48||t>57))return!1}),e.on("keyup",function(){let e=$(this).val(),t=$(this).data("simulator"),i=$(this).closest(".banner64");"undefined"!=typeof timerCreditSimulator&&clearTimeout(timerCreditSimulator),timerCreditSimulator=setTimeout(function(){buildCreditSimulator(i,e,t)},400)})}if(($("body").hasClass("tablet")||window.innerWidth<768)&&$(".productColumn.rdc-product-item-enhance-type-3 .video-js",i).css("opacity",0),$(".container-slider-blocos",i).length>0&&$(".pagers_multiImagens li a",i).on("click",function(e){e.preventDefault();let t=$(this),i=t.parent(),s=t.closest("ul"),o=t.closest(".pagers_multiImagens"),a=i.index(),n=s.attr("indexSlide"),r=s.attr("template");o.find("li.active").removeClass("active"),i.addClass("active");let l="slider_"+n+r;window[l]&&window[l].slick("slickGoTo",a)}),$(".shopbylook-banner-slider",i).length>0&&$(".shopbylook-banner-slider .shopbylook-banner-total-products",i).on("click",function(){if("function"!=typeof showProductsRightBar)return;let e=$(this).closest(".shopbylook-banner"),t=$(this).closest(".uni"),i=$(this).closest(".wrapper-banner"),s=e.attr("shopbylookid"),o=t.attr("shopbylookunid");parseInt(t.attr("qtd_prods"))>0&&showProductsRightBar(s,o,i)}),$(".banner63",i).length>0&&(window.hotspotActiveId=0,$(".hotspot-overlay .hotspot-btn-detail",i).click(function(e){$(".rdc-platform-b2b").length>0&&"object"==typeof angular.element('[ng-controller="PopupProductController"]').scope()&&(e.preventDefault(),angular.element('[ng-controller="PopupProductController"]').scope().updateProduct({pid:$(this).data("pid")}))})),$(".content_blocks_tabs",i).on("click","a",function(e){e.preventDefault();let t=$(this),i=t.parent();if(i.hasClass("active"))return;let s=t.closest(".content_blocks_tabs_ul"),o=t.closest(".wrapper-banner"),a=i.index(),n=window.innerWidth<768?"block":"table";s.find(".content_blocks_tabs_li.active").removeClass("active"),i.addClass("active");let r=o.find(".content_products .content_tab"),l=r.eq(a);r.hide(),l.css({display:n,width:"100%",marginLeft:0,marginRight:0});let d=l.find(".section-products"),c=o.find(".blocks_slider_mobile").length,p=o.find(".blocks_slider_desktop").length;d.length&&d.is(":visible")?c?d.hasClass("slick-start-initialized")?d.slick("setPosition"):blocksProductsSliderMobile(d):p?d.hasClass("slick-start-initialized")?d.find(".slider").slick("setPosition"):blocksProductsSliderDesktop(d):"function"==typeof productSlide&&productSlide():"function"==typeof productSlide&&productSlide()}),$(".rdc-vpd-accordion > li > .rdc-vpd-accordion-head",i).click(function(){let e=$(this).parent(),t=$(this).closest(".rdc-vpd-accordion"),i=$(this).next().length?$(this).next():$(this).find(".rdc-vpd-accordion-content").first();if(e.hasClass("active"))return t.children("li").removeClass("active"),void t.find(".rdc-vpd-accordion-content:visible").stop(!0,!0).slideUp("normal");t.children("li").removeClass("active"),t.find(".rdc-vpd-accordion-content").slideUp("normal"),e.addClass("active"),i.stop(!0,!0).slideDown("normal")}),$(".structuredTextTable:not(.bottomImage)",i).length>0&&(positioningStructuredText(i),clampStructuredTextPosition(i),setTimeout(function(){positioningStructuredText(i),clampStructuredTextPosition(i),$(".draggable-positioning .structuredText",i).css("opacity",1)})),$(".structuredTextTable:not(.bottomImage) .structuredText.absolute.resizable_active",i).length>0){let t=function(){positioningStructuredText(i),clampStructuredTextPosition(i)};$(window).on("rcc:viewport-resize",t),e.$on("$destroy",function(){$(window).off("rcc:viewport-resize",t)})}let c=$(".container-blocks .YoutubePlayer",i);if(c.length>
10){$(".container-video-auto-height",i).each(function(){var e=$(this),t=e.find(".YoutubePlayer").attr("videoID");t&&$.getJSON("https://noembed.com/embed",{format:"json",url:"https://www.youtube.com/watch?v="+t}).done(function(t){t.width&&t.height&&e.css("padding-bottom",100*t.height/(t.width-2)+"%")})});var p=new IntersectionObserver(function(e,t){for(var i=0;i<e.length;i++)if(e[i].isIntersecting){t.disconnect(),loadYouTubeAPI();break}});c.each(function(){p.observe(this)})}$(".container-blocks .banner65",i).length>0&&isAllowedUserAgent&&bannerCampaignsMA(i),o(()=>{$(".propositions-slider",i).length&&(window.innerWidth<768||$("body").hasClass("tablet")&&$("body").hasClass("rdc-viewport-devicewidth")&&window.innerWidth<1200)&&propositionsSlider(i),$(".testemunhos-slider",i).length&&(window.innerWidth<768||$("body").hasClass("tablet")&&$("body").hasClass("rdc-viewport-devicewidth")&&window.innerWidth<1200)&&testemunhosSlider(i),($(".wrapper-banner.banner23",i).length>0||$(".wrapper-banner.banner71",i).length>0)&&($(".blocks_slider_mobile .section-products:not(.slick-start-initialized)",i).each(function(){$(this).is(":visible")&&0==$(this).find(".primary_image.rdc-vpd-lozad").length&&($(this).hasClass("slick-initialized")&&$(this).slick("unslick"),blocksProductsSliderMobile($(this)))}),$(".blocks_slider_desktop .section-products:not(.slick-start-initialized)",i).each(function(){$(this).is(":visible")&&0==$(this).find(".primary_image.rdc-vpd-lozad").length&&($(this).hasClass("slick-initialized")&&$(this).slick("unslick"),blocksProductsSliderDesktop($(this)))})),$(".container-slider-blocos",i).length>0&&$(".container-slider-blocos .sliderBlocos:not(.slick-start-initialized)",i).each(function(){$(this).is(":visible")&&0==$(this).find(".primary_image.rdc-vpd-lozad").length&&($(this).hasClass("slick-initialized")&&$(this).slick("unslick"),createMultiImagesSlider($(this)))}),$(".brands-banner",i).length>0&&$(".brands-banner .brands-banner-slider:not(.slick-start-initialized)",i).each(function(){$(this).is(":visible")&&0==$(this).find(".primary_image.rdc-vpd-lozad").length&&($(this).hasClass("slick-initialized")&&$(this).slick("unslick"),bannerBrandsSlider($(this)))}),$(".shopbylook-banner-slider",i).length>0&&$(".shopbylook-banner-slider:not(.slick-start-initialized)",i).each(function(){$(this).is(":visible")&&0==$(this).find(".primary_image.rdc-vpd-lozad").length&&($(this).hasClass("slick-initialized")&&$(this).slick("unslick"),bannerShopByLookSlider($(this)))}),$(".banner63",i).length>0&&$(".banner63",i).each(function(){0==$(this).find(".primary_image.rdc-vpd-lozad").length&&createHotspots($(this))}),$(".blocks_slider_img_mobile",i).length>0&&$(".blocks_slider_img_mobile:not(.slick-start-initialized)",i).each(function(){$(this).is(":visible")&&0==$(this).find(".primary_image.rdc-vpd-lozad").length&&($(this).hasClass("slick-initialized")&&$(this).slick("unslick"),blocksSliderMobile($(this)))})},10),printInstagram(i),visualpager_mp4_videos(i),showProductItemVideo(i),videoListControll(),adjustEdge(),setTimeout(()=>adjustEdge,500),loadVisualPagerDependencies(function(){visualPagerDesignDataLazy(i)})}]),"function"!=typeof videoListControll)function videoListControll(){let e=$(".rdc-product-item-enhance-type-3 .video-js");if(0==e.length||void 0===$.fn.isOnScreen)return!1;e.each(function(){let e=$(this).isOnScreen();e&&this.paused?this.play():e||this.paused||this.pause()})}if("function"!=typeof showProductItemVideo)function showProductItemVideo(){if((window.innerWidth<768||$("body").hasClass("tablet"))&&$(".wrapper-products .video-js").length>0){let e=this;e.showVideoTag=function(){$(".wrapper-products .video-js")[0].paused||(clearInterval(t),clearTimeout(i),$(".wrapper-products .video-js").each(function(){$(this).css("opacity",1),$(this).next().css("opacity",0)}))};let t=setInterval(function(){e.showVideoTag()},50),i=setTimeout(function(){clearInterval(t)},5e3)}}function banner68(e){if(isAllowedUserAgent&&$(".g-recaptcha").length>0){var t=document.createElement("script");t.src="https://www.google.com/recaptcha/api.js",document.head.appendChild(t)}let i;$(".rdc-blockregister-openpass",e).click(function(){let e=$(this).closest("form");if(e.hasClass("rdc-blockregister-showpassword"))return e.removeClass("rdc-blockregister-showpassword").addClass("rdc-blockregister-hidepassword"),void setTimeout(()=>{e.removeClass("rdc-blockregister-hidepassword"),e.find("[type=password]").attr("require",0).prop("disabled",!0)},500);e.addClass("rdc-blockregister-showpassword").find("[type=password]").attr("require",1).prop("disabled",!1)}),$(".banner68 .numericInput",e).focus(function(){let e=$(this);i=setInterval(()=>vNumber(e,e.attr("maxlength")),1)}).blur(()=>clearInterval(i)),$(".rdc-banner68__formregister",e).each(function(){let e=$(this),t=e.children().toArray().sort((e,t)=>
1$(e).data("phone_prefix")-$(t).data("phone_prefix"));e.html(t)})}function iframeLinkBlocos(){$("#show_policy_page iframe").attr("src",$("#policy_page_link").attr("link")).on("load",function(){window.innerWidth<768&&"undefined"!=typeof deviceHeight&&$(".mfp-wrap").height(deviceHeight)})}function contentblockFormRegister(e){let t=$(e),i=t.closest(".rdc-contentblock-formregister");if($("[type=submit]",t).hasClass("loader")||!validarFormulario(t))return!1;let s=t.find("[name=password]");if(!s.prop("disabled")){let e=s.val(),i=t.find("[name=rpassword]").val();if(e!=i?t.find(".form-message .error11").slideDown(300):validaPassword(e)?s.closest(".form-field").removeClass("displayError"):t.find(".form-message .error10").slideDown(300),e!=i||!validaPassword(e))return s.closest(".form-field").addClass("displayError"),!1}if("undefined"!=typeof grecaptcha&&grecaptcha.getResponse&&0==grecaptcha.getResponse().length)return t.find(".form-message .error0").slideDown(300),!1;let o=$("[type=submit]",t).addClass("loader"),a=$.param({email:t.find("[name=email]").val()}),n="undefined"==typeof CHECKOUT_VER?"v1":CHECKOUT_VER,r=new XMLHttpRequest;if(r.open("GET",`/checkout/${n}/actions_validar_email.php?${a}`,!1),r.withCredentials=!0,r.send(null),1==$.parseJSON(r.response).erro)return t.find("[name=email]").closest(".form-field").addClass("displayError"),t.find(".form-message .error12").slideDown(300),o.removeClass("loader"),!1;$.ajax({url:"/api/api.php/sendFormLandingPage",type:"POST",data:new FormData(t[0]),processData:!1,contentType:!1,success:function(e){let s=$.parseJSON(e);if(1!=s.response.success)return t.find(".form-message .error-default").slideDown(300),void o.removeClass("loader");i.addClass("rdc-contentblock-formregister_submited"),i.find(".rdc-contentblock-formregister_success").removeClass("hidden"),o.removeClass("loader"),s.response.url&&(i.find(".rdc-contentblock-formregister_success_loading").fadeIn("fast"),setTimeout(()=>location.href="/"+s.response.url,2e3))},error:function(){t.find(".form-message .error-default").slideDown(300),o.removeClass("loader")}})}function countryChangeBlocks(e){var t=$(e).closest("form"),i=$("option:selected",e).attr("data-code"),s=$("option:selected",e).attr("data-lg");$(e).closest(".select").css("background-image","url("+JSVars.shop.CDN+"plugins/system/sysimgs/flags/"+i+".png"),""!=s&&$("#lg",t).val(s)}var onloadCallback=function(){$(".g-recaptcha").removeClass("hidden")};function bl_changeCountry(e){let t=$(e),i=t.find("option:selected").text(),s=JSVarsStores.addresses.filter(e=>e.country_name==i&&""!=e.image.trim()).sort((e,t)=>e.city.toLowerCase().localeCompare(t.city.toLowerCase())),o=t.closest(".banner69-wrapper-select").find("select[name=city]");
1o.empty(),s.forEach((e,t)=>{o.append(`<option value="${e.id}" ${0==t?"selected":""}>${e.city}</option>`)}),bl69_update(t.closest(".wrapper-banner"),s[0])}function bl_changeZone(e){let t=$(e),i=t.val(),s=JSVarsStores.addresses.filter(e=>e.zoneID==i&&""!=e.image.trim()).sort((e,t)=>e.city.toLowerCase().localeCompare(t.city.toLowerCase())),o=t.closest(".banner69-wrapper-select").find("select[name=city]");o.empty(),s.forEach((e,t)=>{o.append(`<option value='${e.id}' ${0==t?"selected":""}>${e.city}</option>`)}),bl69_update(t.closest(".wrapper-banner"),s[0])}function bl_changeCity(e){let t=$(e),i=t.val(),s=JSVarsStores.addresses.filter(e=>e.id==i);s.length>0&&bl69_update(t.closest(".wrapper-banner"),s[0])}function bl69_update(e,t){let i=`\n ${""!=t.address1?t.address1:""}\n <br>\n ${""!=t.zip?`${t.zip} `:""}\n ${""!=t.city?t.city:""}\n <br>\n ${""!=t.country_name?t.country_name:""}\n ${""!=t.phone?`<br><br>${t.phone}`:""}\n ${""!=t.email_address?`<br><br><span class="paragraph"><a href="mailto:${t.email_address}">${t.email_address}</a></span>`:""}\n ${""!=t.schedule?`<br><br>${t.schedule}`:""}\n `,s=$(e);s.find(".contentTitles_description2").html(t.name),s.find(".contentTitles_description").html(i),s.find(".contentTitles_button").attr("href",`${JSVarsStores.URL_DET}&idst=${t.id}`),s.find(".box-images").html(`<figure><img src="${JSVarsStores.CDN+t.image}" class="primary_image" alt="${JSVarsStores.name}"></figure>`)}function loadVisualPagerDependencies(e){function t(){"function"==typeof e&&e()}if("function"!=typeof lozad){var i=document.createElement("script");i.src="/plugins/system/js/common/1.3/js/07_lozad.min.js",i.onload=t,i.onerror=function(){console.error("Erro ao carregar a biblioteca Lozad.")},document.head.appendChild(i)}else t()}if("function"!=typeof vNumber)function vNumber(e,t){e.val(e.val().replace(/\D/g,"")),e.val().length>t&&e.val(e.val().substring(0,10))}if("function"!=typeof validaPassword)function validaPassword(e){return!!/\d+/.test(e)&&(!!/[SA-Z]/.test(e)&&!(!/[a-z]/.test(e)||e.length<8))}function isZeroPrice(e){if(!e)return!1;let t=e.replace(/[^\d.,-]/g,"");t=t.includes(",")&&t.includes(".")?t.replace(/\./g,"").replace(",","."):t.replace(",",".");let i=parseFloat(t);return!isNaN(i)&&0===i}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.