1(function(window,document){'use strict';var BOOT_NAME='CoremmaProductCardBoot';var MODULE_VERSION='7.4.3';var WHATSAPP_PHONE='5547988610723';var JQUERY_RETRY_MS=100;var JQUERY_MAX_TRIES=120;var jqueryTries=0;function installTechnicalSalePriceRule(){var STYLE_ID='cc-technical-sale-no-price';var style;var target;if(document.getElementById(STYLE_ID))return;style=document.createElement('style');style.id=STYLE_ID;style.textContent=['.product.tag-isvendatecnica .price,','.product.tag-isvendatecnica .product-list-price,','.product.tag-isvendatecnica .cash-payment-container,','.product.tag-isvendatecnica .payment-method-discount,','.product.tag-isvendatecnica .promotion .discount,','.product.cc-technical-sale .price,','.product.cc-technical-sale .product-list-price,','.product.cc-technical-sale .cash-payment-container,','.product.cc-technical-sale .payment-method-discount,','.product.cc-technical-sale .promotion .discount {','display: none !important;','}'].join('');target=document.head||document.documentElement;if(target)target.appendChild(style);}installTechnicalSalePriceRule();function installCommercialActionRule(){var STYLE_ID='cc-commercial-action-isolation';var style;if(document.getElementById(STYLE_ID))return;style=document.createElement('style');style.id=STYLE_ID;style.textContent=['.item > .product.tag-isvendatecnica ','.action-control.cc-action-ready > ',':not(.cc-fav-zone):not(.cc-cart-zone):not(.cc-buy-zone),','.item > .product.tag-qteestoqueextra ','.action-control.cc-action-ready > ',':not(.cc-fav-zone):not(.cc-cart-zone):not(.cc-buy-zone)','{display:none !important;}'].join('');(document.head||document.documentElement).appendChild(style);}installCommercialActionRule();function boot(){var $=window.jQuery;if(!$||!$.fn){jqueryTries+=1;if(jqueryTries<=JQUERY_MAX_TRIES)window.setTimeout(boot,JQUERY_RETRY_MS);return;}window.Uoou=window.Uoou||{};try{if(window.Uoou.productCardCoremma&&typeof window.Uoou.productCardCoremma.destroy==='function')window.Uoou.productCardCoremma.destroy();else{if(window.Uoou.productCardCoremma&&typeof window.Uoou.productCardCoremma.destroyObserver==='function')window.Uoou.productCardCoremma.destroyObserver();}}catch(ignoreDestroyError){}window.Uoou.productCardCoremma=createModule($);$(function(){window.Uoou.productCardCoremma.init();});}function createModule($){var CARD_SELECTOR=['.product-list-carousel .product:not(.product-crosssell)','.product-list-grid .product:not(.product-crosssell)','.owl-carousel .product:not(.product-crosssell)','.item > .product:not(.product-crosssell)'].join(', ');var ACTION_SELECTOR='.action-control';var EXTRA_STOCK_TEXT='Produto disponÃvel em até 2 dias.';var PRICE_SELECTOR=['.price','.product-list-price','.cash-payment-container','.payment-method-discount','.promotion .discount'].join(', ');var _processTimer=null;var _dynamicProcessTimer=null;var _dynamicCards=[];var _observer=null;var _pendingAction=null;var _pendingActionTimer=null;var SVG_HEART='<svg class="cc-icon cc-icon--heart" '+'xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" '+'fill="none" stroke="currentColor" stroke-width="1.8" '+'stroke-linecap="round" stroke-linejoin="round" '+'aria-hidden="true">'+'<path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0'+'L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 '+'7.78l1.06 1.06L12 21.23l7.78-7.78 '+'1.06-1.06a5.5 5.5 0 0 0 0-7.78z"/>'+'</svg>';var SVG_HEART_FILLED='<svg class="cc-icon cc-icon--heart cc-icon--heart-filled" '+'xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" '+'fill="currentColor" aria-hidden="true">'+'<path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0'+'L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 '+'7.78l1.06 1.06L12 21.23l7.78-7.78 '+'1.06-1.06a5.5 5.5 0 0 0 0-7.78z"/>'+'</svg>';var SVG_CART_PLUS='<svg class="cc-icon cc-icon--cart" '+'xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 24" '+'fill="none" stroke="currentColor" stroke-width="1.8" '+'stroke-linecap="round" stroke-linejoin="round" '+'aria-hidden="true">'+'<line x1="2" y1="5" x2="10" y2="5"/>'+'<line x1="6" y1="1" x2="6" y2="9"/>'+'<path d="M11 4h2l2.2 10.2a2 2 0 0 0 2 1.6h7.5'+'a2 2 0 0 0 1.9-1.4L29 7H14"/>'+'<circle cx="18" cy="20" r="1.4"/>
1'+'<circle cx="25" cy="20" r="1.4"/>'+'</svg>';var SVG_WA='<svg class="cc-icon cc-icon--wa" aria-hidden="true" '+'xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" '+'width="20" height="20">'+'<path fill="currentColor" d="M20.5 3.5A11.9 11.9 0 0 0 12 0'+'C5.4 0 0 5.4 0 12c0 2.1.6 4.2 1.6 6L0 24l6.2-1.6'+'A12 12 0 0 0 12 24c6.6 0 12-5.4 12-12 0-3.2-1.2-6.2-3.5-8.5z'+'M12 22c-1.8 0-3.6-.5-5.2-1.4l-.4-.2-3.7 1 1-3.6-.2-.4'+'A10 10 0 0 1 2 12C2 6.5 6.5 2 12 2s10 4.5 10 10-4.5 10-10 10z'+'m5.5-7.5c-.3-.1-1.8-.9-2-1-.3-.1-.5-.1-.7.1l-1 1.2'+'c-.2.2-.3.2-.6.1s-1.2-.5-2.3-1.4a8.4 8.4 0 0 1-1.6-2'+'c-.2-.3 0-.4.1-.6l.5-.5c.1-.2.2-.3.3-.5.1-.2 0-.4 0-.5'+'-.1-.1-.7-1.7-1-2.3-.2-.6-.5-.5-.7-.5h-.6'+'c-.2 0-.5.1-.8.4C7.2 8.5 6.5 9.2 6.5 10.7s1 3 1.2 3.2'+'c.1.2 2 3.1 4.9 4.3.7.3 1.2.5 1.6.6.7.2 1.3.2 1.8.1'+'.5-.1 1.8-.7 2-1.4.3-.7.3-1.3.2-1.4-.1-.1-.3-.2-.6-.3z"/>'+'</svg>';function _toBool(value){value=String(value==null?'':value).toLowerCase();return value==='true'||value==='1'||value==='yes'||value==='active'||value==='in-list';}function _safeWarn(){if(window.console&&typeof window.console.warn==='function')window.console.warn.apply(window.console,arguments);}function _scheduleProcess(delay){window.clearTimeout(_processTimer);_processTimer=window.setTimeout(_processAll,typeof delay==='number'?delay:80);}function _allCards(){return $(CARD_SELECTOR);}function _isCardValid($product){if(!$product||!$product.length)return false;if(!$product.find('.product-list-image-container').length)return false;return !!($product.find('.product-list-info').length||$product.find('.product-list-name').length||$product.find('.price').length||$product.find('.product-list-price').length);}function _getProductUrl($product){var selectors=['.product-list-name a[href]','.grid-card-link.url-image[href]','.product-list-image-container a[href]','a.btn-more-details[href]'];var i;var element;for(i=0;i<selectors.length;i+=1){element=$product.find(selectors[i]).first().get(0);if(element&&element.href)return element.href;}return '';}function _getProductName($product){var $link=$product.find('.product-list-name a').first();var name=$link.attr('title')||$link.text()||$product.find('input.productName').first().val()||'este produto';return String(name).replace(/\s+/g,' ').trim();}function _getProductSku($product){return String($product.attr('data-sku')||'').trim();}function _isTechnicalSale($product){return $product.hasClass('tag-isvendatecnica')||$product.hasClass('pdp-coremma-card-technical-sale')||$product.hasClass('cc-technical-sale');}function _isExtraStock($product){return $product.hasClass('tag-qteestoqueextra');}function _getCommercialMode($product){if(_isTechnicalSale($product))return 'technical-sale';if(_isExtraStock($product))return 'extra-stock';return '';}function _getWhatsappConfig($product,mode){var name=_getProductName($product);var sku=_getProductSku($product);var productUrl=_getProductUrl($product);var message;var label;if(mode==='technical-sale'){label='COMPRE DIRETO PELO WHATSAPP';message='Ola! Tenho interesse em comprar o produto '+name;if(sku)message+=' (SKU: '+sku+')';message+='. Pode me ajudar? '+productUrl;}else{label='FALE COM VENDEDOR';message='Ola! Gostaria de falar com um vendedor sobre o produto '+name;if(sku)message+=' (SKU: '+sku+')';message+='. '+productUrl;}return {label,href:'https://wa.me/'+WHATSAPP_PHONE+'?text='+encodeURIComponent(message)};}function _isUnavailable($product){var $image=$product.find('.product-list-image-container').first();return $product.hasClass('product-unavailable-in-list')||_toBool($image.attr('data-unavailable'));}function _isDisabled($element){if(!$element||!$element.length)return true;return $element.is(':disabled')||$element.hasClass('disabled')||$element.hasClass('pdp-coremma-card-purchase-disabled')||String($element.attr('aria-disabled')||'').toLowerCase()==='true';}function _isPurchaseRestricted($product){return $product.find('.btn-fast.first, .btn-fast-buy, .btn-more-details').filter(function(){return _isDisabled($(this));}).length>0;}function _normalizeBuyLabel($element){var $label;if(!$element||!$element.length)return;$label=$element.find('.add2cart').first();if($label.length){$label.text('COMPRAR');return;}if(!$element.children().length)$element.text('COMPRAR');}function _applyExtraStockText($product){var $message;var $anchor;if(!_isExtraStock($product))return;$message=$product.find('.product-unavailable-description').first();if(!$message.length){$message=$('<p>',{'class':'product-unavailable-description'});
1$anchor=$product.find(PRICE_SELECTOR).last();if($anchor.length)$message.insertAfter($anchor);else $product.find('.product-list-info').first().append($message);}if($.trim($message.text())!==EXTRA_STOCK_TEXT)$message.text(EXTRA_STOCK_TEXT);$message.addClass('cc-extra-stock-msg');}function _syncTechnicalSalePrice($product){var $priceBlocks;if(_isTechnicalSale($product)){$priceBlocks=$product.find(PRICE_SELECTOR);$priceBlocks.each(function(){var $block=$(this);if($block.attr('data-cc-technical-price-controlled')!=='true')$block.attr('data-cc-technical-original-display',this.style.getPropertyValue('display')||'').attr('data-cc-technical-original-priority',this.style.getPropertyPriority('display')||'').attr('data-cc-technical-price-controlled','true');this.style.setProperty('display','none','important');$block.attr('data-cc-technical-price-hidden','true').attr('aria-hidden','true');});$product.addClass('cc-technical-price-hidden');return;}$product.find('[data-cc-technical-price-controlled="true"]').each(function(){var $block=$(this);var originalDisplay=$block.attr('data-cc-technical-original-display')||'';var originalPriority=$block.attr('data-cc-technical-original-priority')||'';if(originalDisplay)this.style.setProperty('display',originalDisplay,originalPriority);else this.style.removeProperty('display');$block.removeAttr('data-cc-technical-price-controlled '+'data-cc-technical-price-hidden '+'data-cc-technical-original-display '+'data-cc-technical-original-priority '+'aria-hidden');});$product.removeClass('cc-technical-price-hidden');}function _extractLegacyFavorite($product){var $favorite=$product.find('.cc-fav-zone .add-fav, '+'.cc-fav-zone [data-wishlist-item]').first();return $favorite.length?$favorite.detach():$();}function _extractLegacyDetails($product){var $details=$product.find('.cc-buy-zone .btn-more-details').first();return $details.length?$details.detach():$();}function _extractLegacyQuickBuyRoot($product){var $quick=$product.find('.cc-buy-zone .btn-fast.first, '+'.cc-buy-zone .btn-fast-buy').first();if(!$quick.length)return $();return _getQuickBuyRoot($quick).detach();}function _removeLegacyZones($actionControl){$actionControl.children('.cc-fav-zone, .cc-cart-zone, .cc-buy-zone').remove();}function _findNativeFavorite($product,$legacyFavorite){var $favorite;if($legacyFavorite&&$legacyFavorite.length)return $legacyFavorite;$favorite=$product.find('.product-list-image-container .add-fav, '+'.product-list-info .add-fav, '+'.add-fav').not('.cc-fav-zone .add-fav').first();if($favorite.length)return $favorite;return $product.find('[data-wishlist-item]').not('.cc-fav-zone [data-wishlist-item]').first();}function _favoriteIsActive($favorite){var status;if(!$favorite||!$favorite.length)return false;status=String($favorite.attr('data-wishlist-status')||'').toLowerCase();return _toBool(status)||$favorite.hasClass('active')||$favorite.hasClass('in-wishlist')||$favorite.hasClass('added');}function _prepareFavoriteAccessibility($favorite){var tagName;if(!$favorite||!$favorite.length)return;tagName=String($favorite.prop('tagName')||'').toLowerCase();if(tagName!=='a'&&tagName!=='button'){if(!$favorite.attr('role'))$favorite.attr('role','button');if($favorite.attr('tabindex')==null)$favorite.attr('tabindex','0');}$favorite.attr('data-cc-a11y','1');}function _syncFavorite($product){var $zone=$product.find('.cc-fav-zone').first();var $favorite=$zone.find('.add-fav, [data-wishlist-item]').first();var $icon;var iconIsActive;var isActive;if(!$zone.length||!$favorite.length)return;isActive=_favoriteIsActive($favorite);$zone.toggleClass('cc-fav-zone--active',isActive);$favorite.attr({'aria-label':isActive?'Remover produto dos favoritos':'Adicionar produto aos favoritos','aria-pressed':isActive?'true':'false','title':isActive?'Remover dos favoritos':'Favoritar'});_prepareFavoriteAccessibility($favorite);$icon=$favorite.children('.cc-icon').first();iconIsActive=$icon.hasClass('cc-icon--heart-filled');if(!$icon.length||iconIsActive!==isActive){$favorite.children('.cc-icon').remove();$favorite.append(isActive?SVG_HEART_FILLED:SVG_HEART);}}
1function _buildFavoriteZone($product,$legacyFavorite){var $zone=$('<div>',{'class':'cc-fav-zone','aria-label':'Favoritos'});var $inner=$('<div>',{'class':'cc-fav-zone__inner'});var $favorite=_findNativeFavorite($product,$legacyFavorite);if($favorite.length){$favorite.detach().addClass('cc-fav-control');_prepareFavoriteAccessibility($favorite);$inner.append($favorite);$product.addClass('cc-has-native-wishlist').removeClass('cc-no-native-wishlist');}else{$inner.append($('<span>',{'class':'cc-fav-btn--static','aria-hidden':'true','html':SVG_HEART}));$zone.addClass('cc-fav-zone--disabled').attr('aria-hidden','true');$product.addClass('cc-no-native-wishlist').removeClass('cc-has-native-wishlist');}$zone.append($inner);return $zone;}function _findNativeQuickBuy($product){return $product.find('.btn-fast.first, .btn-fast-buy').not('.cc-buy-zone .btn-fast.first, '+'.cc-buy-zone .btn-fast-buy').filter(function(){return !_isDisabled($(this));}).first();}function _getQuickBuyRoot($quickBuy){var $root;if(!$quickBuy||!$quickBuy.length)return $();$root=$quickBuy.closest('form');if($root.length)return $root;$root=$quickBuy.closest('.product-form-fast-qtd');if(!$root.length)$root=$quickBuy.closest('.addto');return $root.length?$root:$quickBuy;}function _findDetailsButton($product,$actionControl,$legacyDetails){var $details;if($legacyDetails&&$legacyDetails.length)return $legacyDetails;$details=$actionControl.find('.btn-more-details').first();if($details.length)return $details;return $product.find('.btn-more-details').not('.cc-buy-zone .btn-more-details').first();}function _buildCartZone($product,hasQuickBuy){var mode=_getCommercialMode($product);var productUrl=_getProductUrl($product);var $zone=$('<div>',{'class':'cc-cart-zone'});var $button=$('<button>',{'class':'cc-cart-btn','type':'button','aria-label':'Adicionar produto ao carrinho','title':'Adicionar ao carrinho','html':SVG_CART_PLUS});if(mode){$zone.addClass('cc-cart-zone--hidden '+'cc-cart-zone--'+mode).attr('aria-hidden','true');return $zone;}if(_isUnavailable($product)||_isPurchaseRestricted($product)){$zone.addClass('cc-cart-zone--hidden '+'cc-cart-zone--unavailable').attr('aria-hidden','true');return $zone;}if(!hasQuickBuy){$zone.addClass('cc-cart-zone--details-fallback');$button.addClass('cc-cart-btn--details-fallback').attr({'aria-label':'Ver opções de compra do produto','title':'Ver opções de compra','data-product-url':productUrl});}$zone.append($button);return $zone;}function _buildWhatsappButton($product,mode){var config=_getWhatsappConfig($product,mode);var $btn=$('<a>',{'class':'cc-buy-fallback '+'cc-buy-fallback--whatsapp '+'cc-buy-fallback--'+mode,'href':config.href,'target':'_blank','rel':'noopener noreferrer','aria-label':config.label+' pelo WhatsApp'}).append($(SVG_WA)).append($('<span>').text(config.label));return $btn;}function _buildBuyZone($product,$detailsButton,$quickBuyRoot){var $zone=$('<div>',{'class':'cc-buy-zone'});var productUrl=_getProductUrl($product);var mode=_getCommercialMode($product);if(mode&&productUrl){$zone.append(_buildWhatsappButton($product,mode));$product.addClass('cc-no-quick-buy').removeClass('cc-has-quick-buy');return $zone;}if(!mode&&!_isUnavailable($product)&&!_isPurchaseRestricted($product)&&$quickBuyRoot&&$quickBuyRoot.length){$quickBuyRoot=$quickBuyRoot.detach();$zone.append($quickBuyRoot);$product.addClass('cc-has-quick-buy').removeClass('cc-no-quick-buy');_normalizeBuyLabel($zone.find('.btn-fast.first, .btn-fast-buy').first());return $zone;}if($detailsButton&&$detailsButton.length&&$detailsButton.is('a')&&$detailsButton.attr('href')){$detailsButton=$detailsButton.detach();if(!_isDisabled($detailsButton)&&!_isUnavailable($product)&&!_isPurchaseRestricted($product))_normalizeBuyLabel($detailsButton);$zone.append($detailsButton);$product.addClass('cc-no-quick-buy').removeClass('cc-has-quick-buy');return $zone;}if(productUrl)$zone.append($('<a>',{'class':'cc-buy-fallback','href':productUrl,'text':_isUnavailable($product)||_isPurchaseRestricted($product)?'VER PRODUTO':'COMPRAR'}));else $zone.addClass('cc-buy-zone--hidden').attr('aria-hidden','true');$product.addClass('cc-no-quick-buy').removeClass('cc-has-quick-buy');return $zone;}
1function _getOrCreateActionControl($product){var $actionControl=$product.find(ACTION_SELECTOR).first();var $info;var $anchor;if($actionControl.length){$actionControl.removeClass('hidden-xs hidden-sm hidden-md hidden-lg');return $actionControl;}$actionControl=$('<div>',{'class':'action-control cc-action-created'});$info=$product.find('.product-list-info').first();if($info.length){$info.append($actionControl);return $actionControl;}$anchor=$product.find('.price, .product-list-price').last();if($anchor.length)$actionControl.insertAfter($anchor);else $product.append($actionControl);return $actionControl;}function _syncCard($product){_applyExtraStockText($product);_syncTechnicalSalePrice($product);_syncFavorite($product);}function _processCard($product){var $actionControl;var $legacyFavorite;var $legacyDetails;var $legacyQuickBuyRoot;var $quickBuy;var $quickBuyRoot;var $detailsButton;var $favoriteZone;var $cartZone;var $buyZone;var hasQuickBuy;var mode;if(!_isCardValid($product))return;if($product.hasClass('cc-ready')&&$product.attr('data-cc-version')===MODULE_VERSION){_syncCard($product);return;}try{$actionControl=_getOrCreateActionControl($product);$legacyFavorite=_extractLegacyFavorite($product);$legacyDetails=_extractLegacyDetails($product);$legacyQuickBuyRoot=_extractLegacyQuickBuyRoot($product);_removeLegacyZones($actionControl);$quickBuy=_findNativeQuickBuy($product);if($legacyQuickBuyRoot&&$legacyQuickBuyRoot.length){$quickBuyRoot=$legacyQuickBuyRoot;hasQuickBuy=true;}else if($quickBuy.length){$quickBuyRoot=_getQuickBuyRoot($quickBuy);hasQuickBuy=true;}else{$quickBuyRoot=$();hasQuickBuy=false;}$detailsButton=_findDetailsButton($product,$actionControl,$legacyDetails);$favoriteZone=_buildFavoriteZone($product,$legacyFavorite);$cartZone=_buildCartZone($product,hasQuickBuy);$buyZone=_buildBuyZone($product,$detailsButton,$quickBuyRoot);$actionControl.empty().append($favoriteZone).append($cartZone).append($buyZone).addClass('cc-action-ready').attr({'data-cc-module':'productCardCoremma','data-cc-version':MODULE_VERSION});mode=_getCommercialMode($product);$product.addClass('cc-ready').attr({'data-cc-version':MODULE_VERSION,'data-cc-commercial-mode':mode}).toggleClass('cc-technical-sale',mode==='technical-sale').toggleClass('cc-extra-stock',mode==='extra-stock').toggleClass('cc-product-unavailable',_isUnavailable($product));if(mode)$product.addClass('cc-tag-whatsapp-ready');else $product.removeClass('cc-tag-whatsapp-ready');_syncCard($product);}catch(error){_safeWarn('[Coremma][Listagem V7.4.2] Falha ao processar card:',error,$product.get(0));}}function _injectCategoryButtons(){$('.product-list.boxed[data-cc-category-url]').each(function(){var $block=$(this);var url=$.trim($block.attr('data-cc-category-url')||'');var label=$.trim($block.attr('data-cc-category-label')||'')||'VER TODOS OS PRODUTOS';var $container;if(!url||$block.find('.cc-category-btn-wrap').length)return;$container=$block.find('.container').first();if(!$container.length)return;$container.append($('<div>',{'class':'cc-category-btn-wrap'}).append($('<a>',{'class':'cc-category-btn','href':url,'text':label})));});}function _repairFooterLazyImages(){$('footer img[data-src], '+'.footer img[data-src], '+'img.uoou-powered-by[data-src], '+'img.footer__assign-img[data-src]').each(function(){var $image=$(this);var source=$.trim($image.attr('src')||'');var lazySource=$.trim($image.attr('data-src')||'');if(!lazySource||(source&&source.indexOf('data:image/svg+xml')!==0))return;$image.attr('src',lazySource).removeClass('lazyload').addClass('lazyloaded');});}function _processAll(){try{_allCards().each(function(){_processCard($(this));});_injectCategoryButtons();_repairFooterLazyImages();$('html').attr('data-cc-product-card-version',MODULE_VERSION);}catch(error){_safeWarn('[Coremma][Listagem V7.4.2] Falha ao processar listagem:',error);}}function _triggerQuickBuy($product){var $target;if(_getCommercialMode($product)||_isUnavailable($product)||_isPurchaseRestricted($product))return false;$target=$product.find('.cc-buy-zone .btn-fast.first, '+'.cc-buy-zone .btn-fast-buy').filter(function(){return !_isDisabled($(this));}).first();if(!$target.length)return false;$target.trigger('click');return true;}function _setPendingAction(action){window.clearTimeout(_pendingActionTimer);_pendingAction=action;_pendingActionTimer=window.setTimeout(function(){_pendingAction=null;},5000);}
1function _onCartUpdated(){var action=_pendingAction;var checkoutUrl;_pendingAction=null;window.clearTimeout(_pendingActionTimer);_pendingActionTimer=null;if(action==='mini-cart'){try{if(window.Uoou&&window.Uoou.miniCartModal&&typeof window.Uoou.miniCartModal.open==='function')window.Uoou.miniCartModal.open();}catch(openError){_safeWarn('[Coremma] Erro ao abrir mini-cart:',openError);}return;}if(action==='checkout'){checkoutUrl=(window.Uoou&&window.Uoou.checkoutUrl)||'/checkout';window.location.href=checkoutUrl;}}function _bindEvents(){$(document).off('.productCardCoremma');$(window).off('.productCardCoremma');$(document).on('click.productCardCoremma','.cc-cart-btn',function(event){var $button=$(this);var $product=$button.closest('.product');var fallbackUrl;event.preventDefault();event.stopPropagation();if(_triggerQuickBuy($product)){_setPendingAction('mini-cart');return;}fallbackUrl=$button.attr('data-product-url')||_getProductUrl($product);if(fallbackUrl)window.location.href=fallbackUrl;});$(document).on('click.productCardCoremma','.cc-fav-zone .add-fav, '+'.cc-fav-zone [data-wishlist-item]',function(){var $product=$(this).closest('.product');window.setTimeout(function(){_syncFavorite($product);},80);window.setTimeout(function(){_syncFavorite($product);},450);});$(document).on('keydown.productCardCoremma','.cc-fav-zone .add-fav, '+'.cc-fav-zone [data-wishlist-item]',function(event){var tagName=String(this.tagName||'').toLowerCase();if(tagName==='a'||tagName==='button')return;if(event.key==='Enter'||event.key===' '||event.key==='Spacebar'){event.preventDefault();$(this).trigger('click');}});$(document).on('mousedown.productCardCoremma','.cc-buy-zone .btn-fast.first, '+'.cc-buy-zone .btn-fast-buy',function(){var $product=$(this).closest('.product');if(_getCommercialMode($product)||_isUnavailable($product))return;_setPendingAction('checkout');});$(document).on('product-added-to-cart.productCardCoremma '+'product-add-to-cart.productCardCoremma '+'uoou:cart-updated.productCardCoremma '+'uoou:cartUpdated.productCardCoremma '+'cartUpdated.productCardCoremma '+'cart-updated.productCardCoremma',_onCartUpdated);$(document).on('paginator-dinamic-page-loaded.productCardCoremma '+'productListLoaded.productCardCoremma '+'uoou:productsLoaded.productCardCoremma '+'uoou:products-loaded.productCardCoremma '+'uoou:refresh.productCardCoremma '+'initialized.owl.carousel.productCardCoremma '+'refreshed.owl.carousel.productCardCoremma '+'changed.owl.carousel.productCardCoremma',function(){_scheduleProcess(80);});$(window).on('load.productCardCoremma pageshow.productCardCoremma',function(){_scheduleProcess(0);});}function _addDynamicCard(card){if(!card||_dynamicCards.indexOf(card)!==-1)return;_dynamicCards.push(card);}function _collectDynamicCards(node){var $node;if(!node||node.nodeType!==1)return;$node=$(node);if($node.is('.product:not(.product-crosssell)'))_addDynamicCard(node);$node.find('.product:not(.product-crosssell)').each(function(){_addDynamicCard(this);});}function _flushDynamicCards(){var cards=_dynamicCards.slice(0);_dynamicCards.length=0;_dynamicProcessTimer=null;$.each(cards,function(_,card){_processCard($(card));});if(cards.length){_injectCategoryButtons();$('html').attr('data-cc-product-card-version',MODULE_VERSION);}}function _scheduleDynamicCards(delay){window.clearTimeout(_dynamicProcessTimer);_dynamicProcessTimer=window.setTimeout(_flushDynamicCards,typeof delay==='number'?delay:80);}function _observeNewCards(){if(!window.MutationObserver||_observer||!document.body)return;_observer=new window.MutationObserver(function(mutations){$.each(mutations,function(_,mutation){if(!mutation.addedNodes||!mutation.addedNodes.length)return;$.each(mutation.addedNodes,function(__,node){_collectDynamicCards(node);});});if(_dynamicCards.length)_scheduleDynamicCards(80);});_observer.observe(document.body,{childList:true,subtree:true});}function _initialPasses(){_processAll();window.setTimeout(_processAll,250);window.setTimeout(_processAll,1000);}function init(){try{_bindEvents();_observeNewCards();_initialPasses();}catch(error){_safeWarn('[Coremma][Listagem V7.4.2] Falha na inicialização:',error);}}function refresh(){_scheduleProcess(0);}function destroy(){if(_observer){_observer.disconnect();_observer=null;}window.clearTimeout(_processTimer);window.clearTimeout(_dynamicProcessTimer);window.clearTimeout(_pendingActionTimer);_dynamicCards.length=0;$(document).off('.productCardCoremma');$(window).off('.productCardCoremma');}return {init,refresh,destroy,destroyObserver:destroy,version:MODULE_VERSION};}if(window[BOOT_NAME])try{window.clearTimeout(window[BOOT_NAME]);}catch(ignoreBootError){}window[BOOT_NAME]=window.setTimeout(boot,0);}(window,document));; 2(function(window,document,$){'use strict';if(!$)return;var NS='.coremmaFavoriteVisual';var SELETOR='.cc-fav-zone .add-fav, '+'.cc-fav-zone [data-wishlist-item]';function estaAtivo($favorito){var status=String($favorito.attr('data-wishlist-status')||'').toLowerCase();return status==='in-list'||$favorito.hasClass('active')||$favorito.hasClass('in-wishlist')||$favorito.hasClass('added');}function sincronizar(elemento){var $favorito=$(elemento);var $zona=$favorito.closest('.cc-fav-zone');var $icone=$favorito.children('.cc-icon--heart').first();var ativo;if(!$zona.length)return;ativo=estaAtivo($favorito);$zona.toggleClass('cc-fav-zone--active',ativo).attr('data-favorito-ativo',ativo?'true':'false');$favorito.attr({'aria-label':ativo?'Remover produto dos favoritos':'Adicionar produto aos favoritos','aria-pressed':ativo?'true':'false','title':ativo?'Remover dos favoritos':'Adicionar aos favoritos'});if($icone.length){$icone.toggleClass('cc-icon--heart-filled',ativo);if(ativo)$icone.attr('fill','currentColor').removeAttr('stroke');else $icone.attr('fill','none').attr('stroke','currentColor');}}function sincronizarTodos(){$(SELETOR).each(function(){sincronizar(this);});}function atualizarDepoisDoClique(elemento){window.setTimeout(function(){sincronizar(elemento);},0);window.setTimeout(function(){sincronizar(elemento);},150);window.setTimeout(function(){sincronizar(elemento);},700);}function iniciar(){$(document.body).off('click'+NS,SELETOR).on('click'+NS,SELETOR,function(){atualizarDepoisDoClique(this);});$(document).off('uoou-wishlist-add'+NS+' uoou-wishlist-remove'+NS).on('uoou-wishlist-add'+NS+' uoou-wishlist-remove'+NS,function(){window.setTimeout(sincronizarTodos,0);});sincronizarTodos();}$(iniciar);}(window,document,window.jQuery));
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.