!function(y, k) {
async function T(e) {
var t = await (await fetch("/checkout/current-cart")).json();
k = t, Object.assign(e, k);
}
y(function() {
"use strict";
// const isOpenActive = new URLSearchParams(window.location.search).get('open') === 'true';
var c = '
';
function p(e) {
var t = [];
if (0 < e.items.length && (t = y.merge(t, e.items)), e.sales && 0 < e.sales.length)
for (var a = 0; a < e.sales.length; a++) t = y.merge(t, e.sales[a].items);
return t;
}
function getCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') c = c.substring(1, c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
}
return null;
}
function t(e) {
const cartContent = y(".shopping-cart-content");
// Mostrar imagem de carregamento
// cartContent.empty().append('');
cartContent.empty().append('...');
// Atualizar o conteúdo do carrinho
T(e).then(() => {
const t = SHOW_PRODUCT_PRICE ? y.number(e.totalWithDiscount, 2, ",", ".") : "",
a = cartContent.empty(),
o = p(e);
const divBefore = '