!function(e){var n={};function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(o,i,function(n){return e[n]}.bind(null,i));return o},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=4)}([function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"a",(function(){return i})),t.d(n,"c",(function(){return l})),t.d(n,"i",(function(){return c})),t.d(n,"l",(function(){return a})),t.d(n,"j",(function(){return d})),t.d(n,"f",(function(){return s})),t.d(n,"n",(function(){return u})),t.d(n,"d",(function(){return p})),t.d(n,"e",(function(){return w})),t.d(n,"m",(function(){return f})),t.d(n,"g",(function(){return m})),t.d(n,"h",(function(){return g})),t.d(n,"o",(function(){return h})),t.d(n,"k",(function(){return b}));const o=1,i=3,l=20;function r(e){return e.trim().toLowerCase().replace(/\/$/,"").replace(/,/g,"%2c")}function c(e,n,t){let o=null===n?"":n.split(",");function i(e,n,o){for(let o=0;o=0&&e.search("chrome")<0)return!0;return!1}()||navigator.userAgent.toLowerCase().search("instagram")>=0||function(){const e=new RegExp(`(${["WebView","FBAN","(iPhone|iPod|iPad)(?!.*Safari/)","Android.*wv"].join("|")})`,"ig");return null!==navigator.userAgent.match(e)}())}function d(){return new Promise((function(e){let n=function(){e(!0)},t=function(){e(!1)};if(!(function(){let e=/(?=.*(opera|chrome)).*/i.test(navigator.userAgent)&&navigator.storage&&navigator.storage.estimate;return e&&navigator.storage.estimate().then((function(e){return e.quota<12e7?n():t()})),!!e}()||function(){let e="MozAppearance"in document.documentElement.style;if(e)if(null==indexedDB)n();else{let e=indexedDB.open("inPrivate");e.onsuccess=t,e.onerror=n}return e}()||function(){let e=navigator.userAgent.match(/Version\/([0-9\._]+).*Safari/);if(e){let o=function(){try{localStorage.length||(localStorage.setItem("inPrivate","0"),localStorage.removeItem("inPrivate")),t()}catch(e){navigator.cookieEnabled?n():t()}return!0};if(parseInt(e[1],10)<11)return o();try{window.openDatabase(null,null,null,null),t()}catch(e){n()}}return!!e}()||function(){let e=!window.indexedDB&&(window.PointerEvent||window.MSPointerEvent);return e&&n(),!!e}()))return t()}))}function s(){let e=navigator.userAgent.toLowerCase();return/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(e)?2:/(mobi|ipod|phone|blackberry|opera mini|fennec|minimo|symbian|psp|nintendo ds|archos|skyfire|puffin|blazer|bolt|gobrowser|iris|maemo|semc|teashark|uzard)/.test(e)?o:i}function u(e){let n,t;try{return n=window[e],t="__storage_test__",n.setItem(t,t),n.removeItem(t),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==n.length}}function p(e){g(e,null,0),document.cookie=e+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}function w(e){let n=e+"=",t=decodeURIComponent(document.cookie).split(";");for(let e=0;e0&&f(n,function(e){if(null!=e){let n=document.createElement("div");return n.innerHTML=e,n.style.cssText="font-size: 11px; line-height: 10px; position: absolute; bottom: 8px; right: 24px;",n}return null}(e.terms)),null!=e.ad&&e.ad.length>0&&f(n,function(e){let n=document.createElement("div");return n.innerHTML=e,n.style.cssText="text-align: center; position: absolute; bottom: 9px; left: 13px; line-height: 10px;",n}(e.ad));let t=document.getElementsByTagName("body")[0],o=s(99999,"top");o.appendChild(n),t.appendChild(o);let i=document.getElementById("wpnReminder");null!=i&&i.remove()}function r(e){let n=document.createElement("div"),t=410;window.innerWidth0&&f(n,function(e){if(null!=e){let n=document.createElement("div");return n.innerHTML=e,n.style.cssText="font-size: 11px; line-height: 10px; position: absolute; top: 11px; left: 24px;",n}return null}(e.terms)),null!=e.ad&&e.ad.length>0&&f(n,function(e){let n=document.createElement("div");return n.innerHTML=e,n.style.cssText="text-align: center; position: absolute; top: 10px; right: 25px; line-height: 10px;",n}(e.ad));let o=document.getElementsByTagName("body")[0],i=s(99999,"bottom");i.appendChild(n),o.appendChild(i);let l=document.getElementById("wpnReminder");null!=l&&l.remove()}function c(e){let n=document.createElement("div");n.id="wpnDialogcontainer",n.innerHTML=e,document.getElementsByTagName("body")[0].appendChild(n);let t=document.getElementById("wpnReminder");null!=t&&t.remove()}function a(e,n){(e=String(e).replace(/[^0-9a-f]/gi,"")).length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),n=n||0;let t,o,i="#";for(o=0;o<3;o++)t=parseInt(e.substr(2*o,2),16),t=Math.round(Math.min(Math.max(0,t+t*n),255)).toString(16),i+=("00"+t).substr(t.length);return i}function d(e){if(e){let n=e.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);delete n[0];for(let e=1;e<=3;++e)n[e]=parseInt(n[e]).toString(16),1==n[e].length&&(n[e]="0"+n[e]);return"#"+n.join("").toUpperCase()}}function s(e,n){n=n||"top";let t=document.createElement("div");return t.id="wpnDialogcontainer",t.style.cssText="font-family: Roboto, Helvetica, Tahoma; display: inline-block; "+n+": 0px; z-index: "+(e+1)+";position: fixed;left: 50%; transform: translateX(-50%); letter-spacing: normal;",t}function u(e,n,t,o=!1){let i=document.createElement("div");return e.length>0&&i.appendChild(function(e,n,t=!1){let o=document.createElement("div"),i=t?"line-height: 18px; margin: 0 0 4px 0;":"margin: 4px 0;";return o.style.cssText="font-size: 16px; text-align: left; color:"+n+"; font-weight: bold; display:block;"+i,o.innerHTML=e,o}(e,t,o)),n.length>0&&i.appendChild(function(e,n,t=!1){let o=document.createElement("div"),i=t?"line-height: 18px;":"line-height: 21px";return o.style.cssText="font-size: 14px; text-align: left; color:"+n+"; font-weight:normal; display:block;"+i,o.innerHTML=e,o}(n,t,o)),i}function p(e,n,t){let o=document.createElement("a");return o.innerHTML=e,o.id=t,o.style.cssText=n,o}function w(e,n){n=n||96;let t=document.createElement("div");if(t.style.cssText="max-width:"+n+"px; height: "+n+"px; margin-right: 16px; overflow: hidden;",null!=e&&e.length>0){let o=document.createElement("img");o.style.cssText="max-width:"+n+"px; position: relative; top: 50%; left: 50%; transform: translate(-50%, -50%)",o.src=e,o.width=n,t.appendChild(o)}return t}function f(e,n){var t;t=n,("object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)&&e.appendChild(n)}function m(e,n="wpn_fade"){const t=document.getElementById(e);null!=t&&(n&&t.classList.add(n),t.remove())}function g(){const e=document.querySelector(".flowy-whatsapp-bubble");if(null!==e){let n=".wpn-position-right",t="right";e.classList.contains("flowy-position-left")&&(n=".wpn-position-left",t="left");const o=document.querySelectorAll(".wpn-bubble-widget"+n);Array.from(o).forEach(e=>{e.style[t]="110px"})}}function h(){var e=i.e("_wpn_eatouser");return null===e||""===e?{}:JSON.parse(e)}function b(){var e=h(),n=[];for(var t in e)e.hasOwnProperty(t)&&(!0===e[t]?n.push(t+"_1"):n.push(t+"_0"));if("object"==typeof LS){const e=window.location.href.includes("search"),t=null!==document.querySelector('[data-product-id][data-product-type="list"]');e&&n.push("search_results_"+(t?"1":"0"))}return n.join(",")}function y(e,n){let t,o=e.split("?")[0],i=[],l=-1!==e.indexOf("?")?e.split("?")[1]:"";if(""!==l){i=l.split("&");for(let e=i.length-1;e>=0;e-=1)t=i[e].split("=")[0],t===n&&i.splice(e,1);o=o+"?"+i.join("&")}return o}function v(e){let n=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","fbclid","gclid","SID"];for(let t=0;t0&&null!=n[0].content.match(/product/i)&&null==n[0].content.match(/category/i)&&null==n[0].content.match(/group/i)){if(null===R){let n,t=window.location.href,o="",i=0,l=null;const r=document.querySelectorAll("meta[property^=og], meta[property^=tiendanube], meta[property^=product], meta[property^=nuvemshop]");Array.prototype.forEach.call(r,(function(l){const r=l.getAttribute("property"),c=l.getAttribute("content");if("og:url"===r&&c.length>0&&(t=c),"og:image:secure_url"===r&&(o=c),"og:image"===r&&0==o.length&&(o=c),e.includes(r)&&void 0!==c&&0===i){let e=c;/^[0-9]{1,3}(\.[0-9]{3})*(,[0-9]+)?$/.test(e)?(e=e.replaceAll(".",""),e=e.replaceAll(",",".")):/^[0-9]{1,3}(,[0-9]{3})*(\.[0-9]+)?$/.test(e)&&(e=e.replaceAll(",","")),parseFloat(e)>0&&(i=parseFloat(e))}"og:title"===r&&(n=c)}));const c=document.querySelectorAll("meta[property*='currency' i], meta[name*='currency' i], meta[itemprop*='currency' i]");return Array.prototype.forEach.call(c,(function(e){const n=e.getAttribute("property"),t=e.getAttribute("content"),o=e.getAttribute("itemprop"),i=e.getAttribute("name"),r=["priceCurrency","og:price:currency","currency","product:price:currency"];(r.includes(n)||r.includes(o)||r.includes(i))&&(l=t)})),D(n,i,t,o,l)}return!0}return!1}(),n=null!==R||function(){if("undefined"!=typeof skuJson&&Boolean(skuJson)&&"object"==typeof skuJson&&"object"==typeof skuJson.skus&&"object"==typeof skuJson.skus[0]&&skuJson.skus[0].available){if(null===R){let e=parseFloat(skuJson.skus[0].bestPrice)/100,n=parseFloat(skuJson.skus[0].taxAsInt);return n>0&&(e+=n/100),D(skuJson.skus[0].skuname,e,window.location.href,skuJson.skus[0].image)}return!0}return!1}(),t=null!==R||function(){let e=[],n=document.querySelectorAll('[itemtype*="schema.org/Product"]');if(n.length>0){let t,o,i,l,r,c,a,d=[];for(t=0;t0)try{let e=t[0].innerHTML.replace(/(\r\n|\n|\r)/gm,""),n=JSON.parse(e);if(!Array.isArray(n))return N(n);for(let e of n){let n=N(e);if(n)return n}}catch(e){return!1}return!1}(),o=null!==R||function(){let e=document.querySelectorAll("html");if(e.length>0){let n=new RegExp("fbq\\('track'\\s*,\\s*'ViewContent'\\s*,\\s*(\\{.*?['\"]{0,1}content_type['\"]{0,1}\\s*:\\s*['\"]product['\"].*?\\})\\)","igsm");return null!=e[0].textContent.match(n)}return!1}();return!function(){if("function"==typeof meli_ga){if("function"==typeof meli_ga.getAll)try{if("paused"===meli_ga.getAll()[0].model.data.ea[":dimension39"])return!0}catch(e){}if(null!==document.querySelector(".ui-pdp-no-stock-shops"))return!0}return!1}()&&(e||n||t||o)}())return C=1,1;if(window.location.href.indexOf("orderPlaced")>-1||window.location.href.indexOf("checkout/success")>-1||function(e){try{const n=new URL(e),t=n.pathname.includes("order"),o="success"===new URLSearchParams(n.search).get("order_status");return t&&o}catch(e){return!1}}(window.location.href)||2===window._wpnPageTypeForce||P()){let n=window.btoa(unescape(encodeURIComponent(window.location.href)));const t="wpncvset-"+n;let l=i.e(t);if((null===l||l!==n)&&null!==e){i.h(t,n,604800);let l=function(e){let n=null;(window.wpnObject.hasOwnProperty("storeProvider")&&3===window.wpnObject.storeProvider||P())&&(n=function(e){let n=new L(LS.order.id,e,LS.order.total/100,LS.currency);return n.date=LS.order.created_at,n.orderData=JSON.stringify(LS.order),n}(e));if(null!=n&&Object.keys(n).length>0){let e=new URLSearchParams(Object.keys(n).map(e=>[e,n[e]]));o.d("/track/order","&"+e.toString())}return n}(e);22238!=e&&18039!=e&&40!=e||console.log("!order data: ",l);let r=null;null!==l&&l.hasOwnProperty("orderId")&&(r=l.orderId),o.e(e,16,"goal",null,window.location.href,null,2,null,null,null,null,r)}return C=2,2}return null}class L{constructor(e,n,t,o){this.orderId=e,this.idClient=n,this.amount=t,this.currency=o,this.date=null,this.orderData=null}}function P(){return"object"==typeof LS&&"object"==typeof LS.order&&"number"==typeof LS.order.id}function M(e){let n=e.textContent;return""===n&&"meta"===e.tagName.toLowerCase()&&(n=e.getAttribute("content")),n}function N(e){let n=e["@type"]||"";return n&&n.match(/webpage/i)&&e.mainEntity&&e.mainEntity["@type"]&&e.mainEntity["@type"].toString().match(/product/i)?B(e.mainEntity):n&&n.match(/product/i)?B(e):void 0}function B(e){let n,t,o,i;if(n=e.name||"",o=e.url||window.location.href,i=e.image||"","object"==typeof i&&(i=Array.isArray(i)&&i.length>0?i[0]:i.url||i.image||""),e.offers&&"object"==typeof e.offers)if(Array.isArray(e.offers)){for(let n of e.offers)if(n.price&&(!n.availability||n.availability.toLowerCase().includes("instock"))){t=n.price;break}}else t=e.offers.price||"";return D(n,t,o,i)}let R=null;function D(e,n,t,o,l=null){let r=new oe(e,n,t,o,new Date);return!!r.isValid()&&(null!=l&&(r.currency=l),R=r,function(e){let n=H();e.url=e.url.split("#")[0],n.unshift(e);for(let t=1;t10&&n.pop();i.h("_wpnlvusw",1,3600),localStorage.setItem("wpn-local-history",JSON.stringify(n))}(r),!0)}function H(e=null){let n=null,t=localStorage.getItem("wpn-local-history");if(null===t)return[];if(n=JSON.parse(t).map((function(e){return Object.assign(new oe,e)})),null!==e&&e>0){n.length;const t=new Date;let o=n.filter((function(n){let o=n.seenAt;"string"==typeof o&&(o=new Date(o));let i=Math.abs(t-o);return i=Math.floor(i/864e5),io.length&&localStorage.setItem("wpn-local-history",JSON.stringify(o))}return n}function W(){localStorage.setItem("wpn-local-history-ts",(new Date).getTime().toString())}function U(e,n,t,l={cache:!0}){let r=i.k(t);if(null==r||"undefined"===r){if(null!=e)return o.b(n,"idClient="+e).then((function(e){return l.cache&&i.o(t,JSON.stringify(e),300),e}));r="{}"}return Promise.resolve(JSON.parse(r))}function q(e){return"/"===window.location.pathname||47501===e&&"/app"===window.location.pathname}function J(e){U(e,"/product/last-visit","last-visit").then((function(n){if(void 0!==n&&void 0!==n.templateMultipleProducts){let t=H(n.maxAgeForProducts);const l=Y(n);if(Z(l)&&t.length>0&&function(e){let n=i.e("_wpnlvusw");return 1!==parseInt(n,10)&&q(e)}(e)){let r=t.slice(0,2);const c=function(e,n,t=null){let o=1,i=new Date;const l=null!==t&&t.enabled&&document.getElementById("store_bar_iframe");return n.forEach((function(n){let t=new RegExp("{{products."+o+".title}}","gi"),r=new RegExp("{{products."+o+".price}}","gi"),c=new RegExp("{{products."+o+".url}}","gi"),a=new RegExp("{{products."+o+".image}}","gi"),d=new RegExp("{{products."+o+".seenAt}}","gi"),s="";n.seenAt&&(s=X(n.seenAt,i)),void 0!==n.price&&(n.price=S(n.price,n.currency));const u=V(n.url);if(e=e.replace(t,n.name).replace(r,n.price).replace(c,l?"#":u).replace(a,n.image).replace(d,s),!n.seenAt){let n=new RegExp('
.*
',"gim");e=e.replace(n,"")}o++})),e}(n.templateMultipleProducts,r,l),a=l.enabled;if(te(e,n,c,"lv",13),a&&document.getElementById("store_bar_iframe")){const e=F(l,!0),n=document.querySelector(".wpn-container-lv-products");n&&(n.style.position="relative",n.insertAdjacentHTML("beforeend",e))}if(1===t.length){let e=document.getElementsByClassName("lv-product-2");for(let n=0;n
'+e.text+'
"}function V(e){const n=document.createElement("a");n.href=e;const t=window.location.hostname;return null==t||""===t||"localhost"===t?e:n.hostname!==t?e.replace(n.hostname,t):e}function $(e,n,t,o=null){let i="",l=new Date,r=1;const c=null!==o&&o.enabled&&document.getElementById("store_bar_iframe");if(t.forEach((function(e){let t="";e.seenAt&&(t=X(e.seenAt,l));let o=e.price,a="";void 0!==o&&z(o)&&(o=S(o,e.currency)),void 0!==e.promotionalPrice&&null!==e.promotionalPrice&&z(e.promotionalPrice)&&(a=o,o=S(e.promotionalPrice,e.currency));const d=V(e.url);let s=n.replace(/{{name}}/gi,e.name).replace(/{{price}}/gi,o).replace(/{{oldPrice}}/gi,a).replace(/{{url}}/gi,c?"#":d).replace(/{{image}}/gi,e.image).replace(/{{index}}/gi,r).replace(/{{seenAt}}/gi,t);if(!e.seenAt){let e=new RegExp('
.*
',"gim");s=s.replace(e,"")}i+=s,r++})),c){const e=F(o);i=e+i}return e.replace(/{{products}}/gi,i)}function G(e){const n="wpn-"+e+"-bubble",t="wpn-"+e+"-container",o="wpn-"+e+"-inline",i=document.getElementById(n),l=document.getElementById(t),r=document.getElementById(o),c=function(e,n){let t=e.indexOf(n);t>-1&&(e.splice(t,1),e.forEach((function(e,n,t){const o=document.getElementById("wpn-"+e+"-bubble");o&&(o.style.bottom=k+_*n+"px")})))};i&&(i.remove(),window.wpnObject.hasOwnProperty("bubbles")&&(c(window.wpnObject.bubbles.left,e),c(window.wpnObject.bubbles.center,e),c(window.wpnObject.bubbles.right,e))),l&&l.remove(),r&&r.remove()}function X(e,n){let t="seconds";"string"==typeof e&&(e=new Date(e));let o=Math.abs((n-e)/1e3);return o>60&&(t="minutes",o/=60,o=Math.floor(o),o>60&&(t="hours",o/=60,o=Math.floor(o),o>24&&(t="days",o/=24,o=Math.floor(o)))),o=Math.floor(o),1===o&&(t=t.substr(0,t.length-1)),o+" "+E(t)}function Y(e){let n={enabled:!1};return e.upgradeOnsite&&e.upgradeText&&e.upgradeUrl&&e.upgradeCTA&&(n.enabled=!0,n.text=e.upgradeText,n.url=e.upgradeUrl,n.cta=e.upgradeCTA),n}function Q(e){U(e,"/product/history","productHistory").then((function(n){if(void 0!==n&&void 0!==n.template){let o=H(n.maxAgeForProducts);if(o.length>0){let l=i.i(n.display,n.pages,window.location.href);const r=n.showInline&&(q(e)||1===A()),c=Y(n);if(Z(c)&&(l||r)){const a=$(n.template,n.productTemplate,o,c);if(te(e,n,a,"h",14,"open",l),r){let l=7;i.f()===i.b&&(l=4),o=o.slice(0,l);const r=$(n.inlineTemplate,n.inlineProductTemplate,o);function t(){"delayInline"in window.wpnObject&&window.wpnObject.delayInline?setTimeout((function(){ce(e,r,"h",18,n.inlineCustomInjectionSelector,n.inlineCustomSubtitleSelector,c)}),5e3):ce(e,r,"h",18,n.inlineCustomInjectionSelector,n.inlineCustomSubtitleSelector,c)}"complete"===document.readyState?t():window.addEventListener("load",t)}window._wpnOpenModalIfLoadingInProgress("h")}}}}))}window._wpnWaitingForHistory=!1;function K(e){let n=H();if(function(){let e=parseInt(localStorage.getItem("wpn-local-history-ts"));isNaN(e)&&(e=0);return(new Date).getTime()-e>2592e5}()){let t="&idClient="+e+"&products="+encodeURIComponent(JSON.stringify(n));return window._wpnWaitingForHistory=!0,o.d("/product/check-products",t).then((function(e){return localStorage.setItem("wpn-local-history",JSON.stringify(e)),W(),window._wpnWaitingForHistory=!1,e}))}return Promise.resolve(n)}function Z(e){return null===e||!e.enabled||document.getElementById("store_bar_iframe")}function ee(e){U(e,"/product/most-viewed","most-viewed").then((function(n){if(void 0!==n&&void 0!==n.template&&n.products.length>0){let o=i.i(n.display,n.pages,window.location.href);const l=n.showInline&&q(e),r=Y(n);if(Z(r)&&(o||l)){const c=$(n.template,n.productTemplate,n.products,r);if(te(e,n,c,"mv",15,"open",o),l){let o=5;i.f()===i.b&&(o=3);let l=n.products.slice(0,o);const c=$(n.inlineTemplate,n.inlineProductTemplate,l);function t(){"delayInline"in window.wpnObject&&window.wpnObject.delayInline?setTimeout((function(){ce(e,c,"mv",19,n.inlineCustomInjectionSelector,n.inlineCustomSubtitleSelector,r)}),5e3):ce(e,c,"mv",19,n.inlineCustomInjectionSelector,n.inlineCustomSubtitleSelector,r)}"complete"===document.readyState?t():window.addEventListener("load",t)}window._wpnOpenModalIfLoadingInProgress("mv")}}}))}function ne(e,n){const t=document.getElementById(e),l=document.getElementById("_wpn-modal-backdrop");if(l&&document.body.removeChild(l),"wpn-lv-container"===e){const e=document.getElementById("wpn-lv-h-link");e&&e.addEventListener("click",(function(e){const t=b(),l=v(document.referrer),r=T(),c=A();ne("wpn-h-container",n),o.e(n,14,"open",null,window.location.href,null,c,r,l,t,null),i.m(E("History"),null,null,null,"wpn_open")}))}else{const e=document.getElementById("wpn-lv-container");null!==e&&e.classList.add("wpn-fade")}t&&t.classList.remove("wpn-fade")}function te(e,n,t,l,r,c="open",s=!0){document.getElementsByTagName("body")[0].insertAdjacentHTML("beforeend",t);const u=b(),p=v(document.referrer),w=T(),f=A(),m="wpn-"+l+"-container",h=document.getElementById("wpn-"+l+"-bubble"),y=document.getElementsByClassName("wpn-"+l+"-link"),x=document.getElementById(m);let O="Most Popular";"lv"===l?O="Last Visit":"h"===l&&(O="History");let j=E(O);for(let n=0,t=0|y.length;n1&&(e=window.wpnObject.bubbles[n].length),e>0&&(h.style.bottom=k+_*(e-1)+"px")}}else h.style.display="none";const I=function(n){null!==x&&(x.classList.add("wpn-fade"),o.e(e,r,"close",null,window.location.href,null,f,w,p,u,null))},S=document.getElementById("wpn-"+l+"-close");null!==S&&S.addEventListener("click",I),null!==x&&x.addEventListener("click",(function(e){e.currentTarget===e.target&&I()}));let C=x.getElementsByClassName("wpn-product-link");C.length>0&&Array.from(C).forEach((function(n){n.addEventListener("click",(function(){let t=n.getAttribute("href");o.e(e,r,"click",null,t,null,f,w,p,u,null);const c=n.getElementsByClassName("wpn-"+l+"-single-product-title")[0]||null,a=c?c.innerText:"WPN article",d=n.getElementsByClassName("wpn-"+l+"-single-product-price")[0]||null,s=ae(d?d.innerText:"0.0");i.m(j,a,s,window.wpnObject.currencyCode,"wpn_click")}))}));let L=document.getElementById("wpn-spin");null!==L&&null!==simpleLink&&"true"==L.dataset.wpnoff&&(L.style.display="none",simpleLink.click()),g()}window._wpnOpenModalIfLoadingInProgress=function(e){if(window._wpnLastFunc==="_wpn_prod_"+e){const n=document.getElementById("wpn-"+e+"-bubble");if(null!=n){let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}),t=document.getElementById("_wpn-modal-backdrop");null!=t&&t.parentNode.removeChild(t),n.dispatchEvent(e)}}};class oe{constructor(e,n,t,o,i){this.name=e,this.price=n,this.url=t,this.image=o,this.seenAt=i}isValid(){return void 0!==this.name&&this.name.length>0&&void 0!==this.image&&this.image.length>0&&void 0!==this.price&&(this.price.length>0||this.price>0)&&void 0!==this.url&&this.url.length>0}}function ie(e){if(!e.multiple)return document.querySelector(e.selector);{let n=document.querySelectorAll(e.selector);if(n.length>0)return"last"===e.multiple?n[n.length-1]:n[0]}}function le(){const e=[{selector:"footer.footer",specf:.21,insertion:"beforebegin",multiple:"last"},{selector:"footer.page-footer",specf:.21,insertion:"beforebegin",multiple:"last"},{selector:"footer",specf:.2,insertion:"beforebegin",multiple:"last"},{selector:"div.footer",specf:.11,insertion:"beforebegin",multiple:"last"},{selector:"div#footer",specf:.11,insertion:"beforebegin",multiple:"last"},{selector:"main",specf:.1,insertion:"beforeend"}];let n={rules:e,subtitleRules:[{selector:"h2",specf:.1},{selector:"h3",specf:.09},{selector:"h4",specf:.09},{selector:"h5",specf:.09},{selector:"h6",specf:.09},{selector:"h1",specf:.08}]},t=document.getElementsByTagName("head")[0].innerHTML;return document.querySelectorAll('[property="tiendanube:price"]').length>0||t.search("tiendanube")>0||document.querySelectorAll('[property="nuvemshop:price"]').length>0||t.search("nuvemshop")>0?(n.rules=n.rules.concat([{selector:"div#related-products",specf:.3,insertion:"afterend"}]),n.subtitleRules=n.subtitleRules.concat([{selector:"#shopify-section-product-recommendations h2",specf:.45}])):t.search("shopify")>0?(n.rules=n.rules.concat([{selector:"#shopify-section-footer",specf:.5,insertion:"beforebegin"},{selector:"#shopify-section-promotions",specf:.6,insertion:"beforebegin"},{selector:"#shopify-section-recomendations",specf:.6,insertion:"beforebegin"},{selector:".site-footer-wrapper",specf:.6,insertion:"beforebegin"}]),n.subtitleRules=n.subtitleRules.concat([{selector:"#shopify-section-product-recommendations h2",specf:.45},{selector:"#shopify-section-product-recommendations h3",specf:.45},{selector:"#shopify-section-recently-viewed-products h3",specf:.45},{selector:"div.product-recommendations h2",specf:.4},{selector:".shopify-section h3",specf:.4},{selector:".related-products h3",specf:.4}])):t.search("vtex")>0?(n.rules=n.rules.concat([{selector:"div.vtex-store-footer-2-x-footerLayout",specf:.2,insertion:"beforebegin"}]),n.subtitleRules=n.subtitleRules.concat([{selector:".sugestion h2",specf:.2}])):t.search("jumpseller")>0?(n.rules=n.rules.concat([{selector:"section#related-products",specf:.3,insertion:"afterend"}]),n.subtitleRules=n.subtitleRules.concat([{selector:"section#related-products h1",specf:.2}])):t.search("fenicio")>0?n.subtitleRules=n.subtitleRules.concat([{selector:"#blkProductosRelacionados .tit",specf:.7},{selector:"#blkProductos .tit",specf:.7},{selector:".blkProductos .tit",specf:.7}]):"MS"==document.getElementsByTagName("body")[0].dataset.site?n.rules=e.concat([{selector:"#wpn-carrousel-insert",specf:.7,insertion:"afterbegin",multiple:"last"},{selector:"section.site-shopping-info",specf:.33,insertion:"beforebegin",multiple:"last"},{selector:"section.buyer-info",specf:.35,insertion:"beforebegin",multiple:"last"},{selector:".fashion-nav-footer-contact",specf:.34,insertion:"beforebegin",multiple:"last"}]):t.search("Loja Integrada")>0&&(n.rules=e.concat([{selector:"#corpo .conteiner",specf:.7,insertion:"beforeend"},{selector:"#corpo",specf:.6,insertion:"beforeend"}])),n}let re=null;function ce(e,n,t,l,r=null,c=null,a=null){const d=b(),s=v(document.referrer),u=T(),p=A();let w=le(),f="wpn-"+t+"-inline";const m="wpn-"+t+"-container";let g=null===r?function(e){return e.reduce((function(e,n){const t=document.querySelector(n.selector);return t?"function"===t.checkVisibility&&!1===t.checkVisibility()&&t.parentElement&&"function"===t.parentElement.checkVisibility&&!1===t.parentElement.checkVisibility()?e:null===e||e.specf0)for(let n=0;n0&&Array.from(v).forEach((function(n){n.addEventListener("click",(function(){let r=n.getAttribute("href");o.e(e,l,"click",null,r,null,p,u,s,d,null,"inline");const c=n.getElementsByClassName("wpn-"+t+"-name")[0]||null,a=c?c.innerText:"WPN article",f=n.getElementsByClassName("wpn-"+t+"-price")[0]||null,m=ae(f?f.innerText:"0.0");i.m(w,a,m,window.wpnObject.currencyCode,"wpn_click")}))}));window.innerWidth>700&&(de(".wpn-"+t+"-inline-list",".wpn-"+t+"-product",15),window.addEventListener("resize",(function(){de(".wpn-"+t+"-inline-list",".wpn-"+t+"-product",15)})));new IntersectionObserver((n,t)=>{n.forEach(n=>{n.isIntersecting&&(o.e(e,l,"view",null,window.location.href,null,p,u,s,d,null,"inline"),t.unobserve(n.target))})},{threshold:.33}).observe(y)}}function ae(e){const n=e.replace(/[^\d.,-]/g,"").trim(),t=n.lastIndexOf(","),o=n.lastIndexOf(".");let i="";t>o?i=",":o>t&&(i=".");let l=n;if(i){const e=","===i?"\\.":",";l=l.replace(new RegExp(e,"g"),""),l=l.replace(i,".")}return parseFloat(l)}function de(e,n,t){let o=document.querySelector(n),i=document.querySelector(e);if(null!==o&&null!==i){const e=o.offsetHeight+t;i.style.overflowY="hidden",i.style.height=e+"px"}}function se(e){U(e,"/recommendation","recommended-items").then((function(n){void 0!==n&&void 0!==n.template&&1===A()&&function(e,n){const t="ri-"+window.btoa(n),l="&url="+encodeURIComponent(n);let r=i.k(t);if(null==r||"undefined"===r)return o.b("/recommendation/product","idClient="+e+l).then((function(e){return i.o(t,JSON.stringify(e.products),600),e.products}));return Promise.resolve(JSON.parse(r))}(e,window.location.href).then((function(t){const o=Y(n);if(Z(o)&&t&&t.length>0){const r=window.innerWidth;if(i.f()===i.b)t=t.slice(0,4);else if(r>700){const e=Math.floor(r/190);t=t.slice(0,e)}const c=$(n.template,n.productTemplate,t,o);function l(){"delayInline"in window.wpnObject&&window.wpnObject.delayInline?setTimeout((function(){ce(e,c,"ri",17,n.customInjectionSelector,null,o)}),5e3):ce(e,c,"ri",17,n.customInjectionSelector,null,o)}"complete"===document.readyState?l():window.addEventListener("load",l)}}))}))}function ue(e,n,t,o,i){"PushManager"in window&&navigator.serviceWorker.ready.then((function(e){e.update(),e.pushManager.getSubscription().then((function(e){if(e)return pe(e,t,o,i);!function(e,n,t,o){navigator.serviceWorker.ready.then((function(i){var l={userVisibleOnly:!0};l.applicationServerKey=function(e){for(var n="=".repeat((4-e.length%4)%4),t=(e+n).replace(/\-/g,"+").replace(/_/g,"/"),o=window.atob(t),i=new Uint8Array(o.length),l=0;l=n;return parseInt(t,10)=s)return function(e,n){let t="idClient="+e,i=new Headers;return i.append("Access-Control-Request-Headers","x-wpn-ref"),i.append("x-wpn-ref",window.location.href),o.b(n,t,"no-referrer-when-downgrade",i)}(e,t).then((function(e){return sessionStorage.setItem(a,d+600),e&&(void 0!==e.available&&"object"==typeof e.available&&function(e,n){if(window.sessionStorage&&void 0!==n&&window.sessionStorage){let t=sessionStorage.getItem(e);if(null!==t){let e=JSON.parse(t);for(let t in n)Object.prototype.hasOwnProperty.call(n,t)&&void 0!==e[t]&&"object"==typeof e[t]&&!1===e[t].ok&&(n[t].ok=!1)}sessionStorage.setItem(e,JSON.stringify(n))}}(n,e.available),void 0!==e.id&&void 0!==e.html&&sessionStorage.setItem(e.id,e.html)),e}));if(Object.keys(c).length>0&&null!==l&&null!==r){let e=c[l].updatedAt;return Promise.resolve({id:l,html:r,updatedAt:e,showInMobile:c[l].showInMobile})}return Promise.resolve({})}function be(e,n){let t=we(e);return null!==n&&null!=t&&"object"==typeof t&&void 0!==t[n]&&t[n].daysToHide}function ye(e){null!==e&&he(e,"wpnb","/banner/index").then((function(n){!n||void 0===n.html||me("wpnb",n.id)||ge(n.id,n.updatedAt)||function(e,n){const t=A(),l=T(),r=b(),c=v(document.referrer);let a=Ee(e.id);document.getElementsByTagName("body")[0].insertAdjacentHTML("beforeend",e.html);let d=be("wpnb",e.id)||30;const s=document.getElementById("wpn-close-btn");null!=s&&s.addEventListener("click",(function(s){m("wpn-banner"),fe("wpnb",e.id),i.g(e.id+"us",e.updatedAt,d),o.e(n,11,"close",null,window.location.href,null,t,l,c,r,a)}));const u=document.getElementById("wpn-banner-link");null!=u&&u.addEventListener("click",(function(s){m("wpn-banner"),i.g(e.id+"us",e.updatedAt,d),o.e(n,11,"click",null,window.location.href,null,t,l,c,r,a),i.m("banner",null,null,null,"wpn_click")}));o.e(n,11,"view",null,window.location.href,null,t,l,c,r,a),i.m("banner",null,null,null,"wpn_view")}(n,e)}))}function ve(e){null!==e&&he(e,"wpnp","/popup/index").then((function(n){!n||void 0===n.html||me("wpnp",n.id)||ge(n.id,n.updatedAt)||function(e,n){const t=A(),l=T(),r=b(),c=v(document.referrer);let a=Ee(e.id),d=function(e,n){let t=we(e);return null!==n&&null!=t&&"object"==typeof t&&void 0!==t[n]&&t[n].delayInSeconds}("wpnp",e.id);document.getElementsByTagName("body")[0].insertAdjacentHTML("beforeend",e.html);let s=be("wpnp",e.id)||1;const u=function(d){m("wpn-popup-modal"),m("wpn-popup-backdrop"),fe("wpnp",e.id),i.g(e.id+"us",e.updatedAt,s),o.e(n,10,"close",null,window.location.href,null,t,l,c,r,a)},p=document.getElementById("wpn_close_banner_dialog");null!=p&&p.addEventListener("click",u);const w=function(e){"Esc"!=e.key&&"Escape"!=e.key||(document.removeEventListener("keydown",w),u())},f=document.getElementById("wpn-popup-modal");null!=f&&(f.addEventListener("click",(function(e){e.currentTarget===e.target&&u()})),document.addEventListener("keydown",w));if(document.getElementById("wpn-popup-btn").addEventListener("click",(function(d){m("wpn-popup-modal"),m("wpn-popup-backdrop"),i.g(e.id+"us",e.updatedAt,s),o.e(n,10,"click",null,window.location.href,null,t,l,c,r,a),i.m("popup",null,null,null,"wpn_click")})),setTimeout((function(){xe(n,t,l,c,r,a)}),1e3*d),3===i.f())setTimeout((function(){document.addEventListener("mouseout",(function e(o){null!==o.toElement&&void 0!==o.toElement||null!==o.relatedTarget||(xe(n,t,l,c,r,a),document.removeEventListener("mouseout",e))}))}),2e3);else if(e.showInMobile&&(function(){let e=["utm_source","utm_campaign","fbclid","gclid"];for(let n=0;nt&&(t=l)}return t}(e)+1).toString(),window._alreadyCalled=!1,e.addEventListener("click",(function(n){if(je&&alert("Detecté un click"),e&&e.parentNode&&!window._alreadyCalled){window._alreadyCalled=!0,e.parentNode.removeChild(e);const t=n.clientX,o=n.clientY,i=document.elementFromPoint(t,o),l=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window,clientX:t,clientY:o});i.dispatchEvent(l)}return!0})),window.addEventListener("popstate",(function(e){return je&&alert("Detecté popstate"),!(window.history.state||{}).wpnPopupIntent||(je&&alert("Popstate indica que debe mostrar banner"),void xe(n,t,l,c,r,a))}))}}(n,e)}))}function xe(e,n,t,l,r,c){const a=document.getElementById("wpn-popup-modal"),d=document.getElementById("wpn-popup-backdrop");a&&d&&(a.classList.remove("wpn-fade"),d.classList.remove("wpn-fade")),o.e(e,10,"view",null,window.location.href,null,n,t,l,r,c),i.m("popup",null,null,null,"wpn_view")}function Oe(e,n){return new URLSearchParams(e).has(n)}const je=Oe(window.location.search,"wpndebugclick");function Ee(e){let n=null,t=e.match(/\w+-(\d+)/);return void 0!==t[1]&&(n=t[1]),n}function Ie(e,n){if(e){2===A()?function(e,n){if(3===n){const e=LS.order;if(e&&e.id){const n=document.createElement("script"),t=e.total/100;n.type="text/javascript",n.src=`https://ads01.groovinads.com/grv/track/px.os?fgimg=0&idpixel=15482&goalvalue=${t}&idtransaction=${e.id}`,document.head.appendChild(n)}}}(0,n):function(e,n){3===n&&document.addEventListener("cart.item.added",(function(n){const t=n.detail.item.id,o=document.createElement("script");o.type="text/javascript",o.src=`https://ads01.groovinads.com/grv/track/bhpx.os?idc=${e}&fgjs=1&cart=1&sku=${t}`,document.head.appendChild(o)}))}(e,n),function(e,n){if(3===n){const n=LS.product;let t=null;n&&n.id&&(t=n.id);const o=document.createElement("script");o.type="text/javascript",o.src=`https://ads01.groovinads.com/grv/track/bhpx.os?idc=${e}&fgjs=1`,t&&(o.src+="&sku="+t),document.head.appendChild(o)}}(e,n)}}function Se(){LS&&_e.includes(LS.store.id)&&window.wpnObject.wapn&&function(){const e=window.wpnObject.wappUsers||[];return LS&&LS.customer&&e.includes(LS.customer)}()&&document.addEventListener("cart.viewed",(function(e){!function(e){const n=document.querySelector('[data-component="cart.checkout-button"]');if(null!==n&&null===document.querySelector(".wpn-wa-btn-container")){const t=window.getComputedStyle(n);let l=t.cssText;l||(l=Array.from(t).reduce((e,n)=>`${e}${n}:${t.getPropertyValue(n)};`,""));const r=document.createElement("div");r.classList.add("wpn-wa-btn-container"),r.classList.add("btn"),r.classList.add("btn-block"),r.style.marginLeft="20px";const c=document.createElement("a");c.addEventListener("click",ke),c.style.cssText=l,c.innerHTML=e.WA_PRIMARY_BTN_TEXT,c.style.background="#1FAF38",c.style.float="none",c.style.boxShadow="none",c.style.border="none",c.style.height="auto",c.style.marginTop=c.style.marginBottom,c.style.width="100%",c.style.display="block",r.appendChild(c);const a=document.createElement("div");a.setAttribute("id","wpnWaformContainer"),r.appendChild(a),n.insertAdjacentElement("afterend",r),n.remove(),function(e,n){const t=document.createElement("style");t.textContent="\n /* Basic modal overlay styling */\n .wpn-wa-modal-overlay {\n display: none; /* Hidden by default */\n position: fixed; /* Stay in place */\n z-index: 999999; /* Sit on top */\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n overflow: auto; /* Enable scroll if needed */\n background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */\n }\n\n /* Modal content box */\n .wpn-wa-modal-content {\n background-color: #fff;\n margin: 10% auto; /* 10% from the top and centered */\n padding: 20px;\n border-radius: 5px;\n width: 300px; /* Could be more or less, depending on screen size */\n position: relative;\n text-align: center;\n }\n\n /* Close button style */\n .wpn-wa-close-btn {\n 0 cursor: pointer;\n position: absolute;\n right: 10px;\n top: 10px;\n font-size: 20px;\n font-weight: bold;\n border: none;\n background: transparent;\n }\n\n /* Simple button styling */\n .wpn-wa-button {\n cursor: pointer;\n border-radius: 4px;\n border: none;\n font-size: 14px;\n }\n\n /* Error and success message styles */\n .wpn-wa-error-message {\n color: #d9534f;\n margin-top: 5px;\n }\n\n .wpn-wa-success-message {\n color: #5cb85c;\n margin-top: 5px;\n display: none; /* hidden by default */\n }\n ",document.head.appendChild(t);const l=document.createElement("div");l.id="wpnWaModalOverlay",l.classList.add("wpn-wa-modal-overlay"),document.body.appendChild(l);const r=document.createElement("div");r.classList.add("wpn-wa-modal-content"),l.appendChild(r);const c=document.createElement("button");c.id="wpnWaCloseModalBtn",c.classList.add("wpn-wa-close-btn"),c.classList.add("wpn-wa-button"),c.innerHTML="×",r.appendChild(c);const a=document.createElement("h2");a.textContent=n.WA_MODAL_TITLE,r.appendChild(a);const d=document.createElement("form");d.id="wpnWaPhoneForm";const s=document.createElement("label");s.setAttribute("for","phoneInput"),s.textContent=n.WA_MODAL_SUBTITLE,d.appendChild(s),d.appendChild(document.createElement("br"));const u=document.createElement("input");u.type="tel",u.id="wpnWaPhoneInput",u.name="phone",u.placeholder=n.WA_INPUT_PLACEHOLDER,u.required=!0,u.style.width="calc(100% - 16px)",u.style.padding="8px",u.style.margin="8px 0",d.appendChild(u);const p=document.createElement("div");p.id="wpnWaErrorContainer",p.classList.add("wpn-wa-error-message"),d.appendChild(p);const w=document.createElement("div");w.id="wpnWaSuccessContainer",w.classList.add("wpn-wa-success-message"),w.textContent=n.WA_SUCCESS_MESSAGE,d.appendChild(w);const f=document.createElement("button");f.type="submit",f.textContent=n.WA_SUBMIT_BTN_TEXT,f.style.cssText=e,f.style.float="none",f.style.width="100%",d.appendChild(f),r.appendChild(d),c.addEventListener("click",()=>{l.style.display="none"}),d.addEventListener("submit",async e=>{e.preventDefault();const n=u.value.trim();try{const e=function(){const e=window._wpnCart.items.map(e=>`${e.variant_id}-${e.quantity}`),n=window.location.href,t=new URL(n).origin;return`${t+"/comprar"}/${e.join(",")}`}(),t=o.f()+"/product/send-product-whatsapp";let l=i.e("wpn_wa_template_index");l||(l=Math.floor(3*Math.random()));const r=new URLSearchParams;r.append("phone",n),r.append("url",e),r.append("clientId",window.wpnObject.clientId),r.append("templateIndex",l),i.g("wpn_wa_template_index",(parseInt(l)+1)%3,365),fetch(t,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:r}).then(e=>e.json()).then(e=>{e.success?(p.textContent="",w.style.display="block"):(w.style.display="none",p.textContent=e.message||"An error occurred.")}).catch(e=>{w.style.display="none",p.textContent="Network or server error. Please try again later."})}catch(e){w.style.display="none",p.textContent="Network or server error. Please try again later."}})}(l,e)}}(window.wpnObject.wappMessages||function(){switch(LS.langCode){case"pt":return{WA_PRIMARY_BTN_TEXT:"Enviar para Whatsapp",WA_MODAL_TITLE:"Digite seu telefone",WA_MODAL_SUBTITLE:"Inclua o código do país e área",WA_INPUT_PLACEHOLDER:"+5511988810000",WA_SUBMIT_BTN_TEXT:"Enviar",WA_SUCCESS_MESSAGE:"Obrigado! Entraremos em contato em breve."};case"es":default:return{WA_PRIMARY_BTN_TEXT:"Enviar a Whatsapp",WA_MODAL_TITLE:"Ingresa tu teléfono",WA_MODAL_SUBTITLE:"Incluye código de país y área",WA_INPUT_PLACEHOLDER:"+5491138881000",WA_SUBMIT_BTN_TEXT:"Enviar",WA_SUCCESS_MESSAGE:"¡Gracias! Te contactaremos pronto."}}}()),document.addEventListener("cart.updated",(function(e){window._wpnCart.items=e.detail.products}))}))}function ke(e){document.getElementById("wpnWaModalOverlay").style.display="block",document.getElementById("wpnWaPhoneForm").reset(),document.getElementById("wpnWaErrorContainer").textContent="",document.getElementById("wpnWaSuccessContainer").style.display="none"}"object"==typeof LS&&(window._wpnCart=structuredClone(LS.cart));const _e=[2366020,1935828,1022935,767];const Ce=window._WPN||"titanPush";function Te(e,n,t,o){if(1989==window.wpnObject.clientId||2067==window.wpnObject.clientId||10857==window.wpnObject.clientId||12122==window.wpnObject.clientId)return;let i=function(){null==window.wpnObject.analyticsObject&&(void 0!==window.GoogleAnalyticsObject?window.wpnObject.analyticsObject=window[window.GoogleAnalyticsObject]:(e=window.wpnObject,n=document,t="script",o="analyticsObject",e.GoogleAnalyticsObject=o,e[o]=e[o]||function(){(e[o].q=e[o].q||[]).push(arguments)},e[o].l=1*new Date,i=n.createElement(t),l=n.getElementsByTagName(t)[0],i.async=1,i.src="//www.google-analytics.com/analytics.js",l.parentNode.insertBefore(i,l)),window.wpnObject.analyticsObject("create","UA-109406021-2","auto","wpnTracker"));var e,n,t,o,i,l;return window.wpnObject.analyticsObject}();void 0!==i&&i("wpnTracker.send","event",e,n,t,o)}function Ae(e){i.g("wpnLastDenial",Date.now(),7),Te("dialog","dismiss",window.wpnObject.clientId),i.d("sdtpc"),document.getElementById("wpnDialogcontainer").remove(),window.wpnObject.dialogInitialized=!1,o.e(window.wpnObject.clientId,21,"dismiss",null,window.location.href,null,null,b(),v(document.referrer),b(),null)}function Le(e){(function(){let e=i.e("cwdcc");return!!(null!=e&&"false"==e)})()||function(e){let n="&clientId="+e;return o.d("/push-register/get-webhook-data",n)}(e).then((function(e){i.g("cwdcc",e.webhooksEnabled,1),e.webhook&&e.webhook.endpoint&&function(e){let n=new Headers;n.append("Content-Type","application/json");let t=new URL(e.endpoint);t.searchParams.append("data",e.data),fetch(t,{method:"GET",credentials:"include",headers:n})}(e.webhook)}))}function Pe(){const e=function(e,n){let t=i.e(n);null!==t&&t!==window.wpnObject.currentPageViewAmount&&void 0===window.wpnObject.runWidgets[n]&&(window.wpnObject.runWidgets[n]=1,e())};e((function(){ye(window.wpnObject.clientId)}),"_wpnbecc"),e((function(){ve(window.wpnObject.clientId)}),"_wpnpecc"),(i.e("_wpnlvecc")||i.e("_wpnhecc"))&&K(window.wpnObject.clientId).then((function(n){e((function(){J(window.wpnObject.clientId)}),"_wpnlvecc"),e((function(){Q(window.wpnObject.clientId)}),"_wpnhecc")})),e((function(){ee(window.wpnObject.clientId)}),"_wpnmvecc"),e((function(){se(window.wpnObject.clientId)}),"_wpnriecc")}function Me(){if(window.wpnObject.dialogEnabled&&!1===window.wpnObject.dialogInitialized){window.wpnObject.dialogInitialized=!0;let e=window.wpnObject.dialog;50==window.wpnObject.dialog.configurationType?c(e.customHtml):3==i.f()?l(e):r(e),function(){let e=document.getElementById("btnYesIdWpnPush");null!==e&&e.addEventListener("click",(function(e){i.d("sdtpc"),Te("dialog","click",window.wpnObject.clientId),o.e(window.wpnObject.clientId,21,"open",null,window.location.href,null,null,b(),v(document.referrer),b(),null),document.getElementById("wpnDialogcontainer").remove(),20==window.wpnObject.optinMode?o.a().then((function(e){ue(0,window.wpnObject.vapid,window.wpnObject.clientId,window.wpnObject.tk,e)})):window.wpnObject.redirectToUrl()}));let n=document.getElementById("btnNoIdWpnPush");null!==n&&n.addEventListener("click",Ae)}(),document.addEventListener("keyup",(function(e){27===e.keyCode&&Ae()})),o.e(window.wpnObject.clientId,21,"view",null,window.location.href,null,null,b(),v(document.referrer),b(),null)}}function Ne(e){if(3==i.f()){let n=null!=window.screenLeft?window.screenLeft:screen.left,t=null!=window.screenTop?window.screenTop:screen.top,o=(window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width)/2-250+n,i=(window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height)/2-150+t;window.open(e,"ask-subscription","status=0, toolbar=0, menubar = 0, scrollbars = 0, width = 500, height = 240, top = "+i+", left= "+o)}else window.location.href=e;try{document.getElementById("wpnOverlayId").remove(),document.getElementById("wpnDialogId").remove(),window.wpnObject.dialogInitialized=!1}catch(e){}}var Be;window.wpnObject={clientId:null,currentPageViewAmount:null,dialog:{},queue:[],analyticsObject:null,language:null,country:null,reminder:{},showReminder:!0,ready:!1,isSubscriptionCached:!1,forceCheckOfSubscription:!1,unsubscribeToken:null,browserAvailable:!0,browserAvailableChecked:!1,isPrivateMode:!1,webhook:null,dialogEnabled:!0,dialogInitialized:!1,scriptUrl:null,optinMode:10,runWidgets:{},groovinId:null,checkSubscription:function(e,n){if(void 0!==n&&null!=n||(n=!0),(e=e||!1)||!window.wpnObject.isSubscriptionCached){let t=i.e("cwdscc");null!=t&&""!==t||(Le(window.wpnObject.clientId),i.h("cwdscc","true",450)),function(e,n,t){t=t||!1;let l="&clientId="+e+"&lang="+(n||"es"),r=i.e("sdtpc");return null==r||!1===r||!0===t||""===r?o.d("/push-register/check-subscription?cid="+e,l):new Promise((function(e,n){let t=null;i.n("localStorage")?(t=localStorage.getItem("sdtp"),e(JSON.parse(t))):(t=i.e("sdtp"),t=JSON.parse(t),t.dialogHtml=i.e("sddh"),e(t))}))}(window.wpnObject.clientId,window.wpnObject.language,e).then((function(t){if(1===t.error)return void i.h("cus",!0,3600);if(2139===window.wpnObject.clientId||"2139"===window.wpnObject.clientId){const e=document.createElement("div");e.style.position="fixed",e.style.bottom="20px",e.style.right="20px",e.style.width="250px",e.style.padding="15px",e.style.backgroundColor="#E5FDFF",e.style.border="1px solid transparent",e.style.borderRadius="8px",e.style.boxShadow="0 2px 10px rgba(0, 0, 0, 0.1)",e.style.fontFamily="Arial, sans-serif",e.style.fontSize="14px",e.style.color="#777",e.style.zIndex="99999",e.textContent="Script de notificaciones activo. Por favor retire el mismo.",document.body.appendChild(e)}let o=parseInt(t.minPageViewsToShow),l=parseInt(t.recurringEveryPageViewCount),r=parseInt(t.minDaysBetweenDialogs);if(window.wpnObject.dialog.msg=t.msg,window.wpnObject.dialog.url=t.url,window.wpnObject.dialog.title=t.title,window.wpnObject.language=t.language,window.wpnObject.country=t.country,window.wpnObject.currencyCode=t.currencyCode,window.wpnObject.dialog.backgroundColor=t.backgroundColor,window.wpnObject.dialog.displayOptionType=t.displayOptionType,window.wpnObject.dialog.displayOnlyPages=t.displayOnlyPages,window.wpnObject.dialog.displayExcludePages=t.displayExcludePages,window.wpnObject.dialog.yesText=t.yesText,window.wpnObject.dialog.noText=t.noText,window.wpnObject.dialog.image=t.image,window.wpnObject.dialog.ad=t.ad,window.wpnObject.dialog.terms=t.terms,window.wpnObject.dialog.reminderIcon=t.reminderIcon,window.wpnObject.dialog.modalBackgroundColor=t.modalBackgroundColor,window.wpnObject.dialog.modalFontColor=t.modalFontColor,window.wpnObject.dialog.testUrl=t.testUrl,window.wpnObject.dialog.customHtml=t.dialogHtml,window.wpnObject.dialog.configurationType=t.configurationType,window.wpnObject.showReminder=t.showReminder,window.wpnObject.reminder.position=t.reminderPosition,window.wpnObject.unsubscribeToken=t.unsubscribeToken,window.wpnObject.dialogEnabled=0!=t.dialogEnabled,window.wpnObject.scriptUrl=t.scriptUrl,window.wpnObject.isSubscriptionCached=!0,window.wpnObject.ready=!0,window.wpnObject.tk=t.tk,window.wpnObject.vapid=t.vapid,window.wpnObject.optinMode=t.optinMode||10,window.wpnObject.wapn=t.wapn,window.wpnObject.wabtnmsg=t.wabtnmsg,window.wpnObject.storeProvider=t.storeProvider,window.wpnObject.delayInline=t.delayInline,window.wpnObject.groovinId=t.groovinId||null,window.wpnObject.wappUsers=t.wappUsers||[],window.wpnObject.wappMessages=t.wappMessages||null,window.wpnObject.groovinId&&Ie(window.wpnObject.groovinId,window.wpnObject.storeProvider),window._wpnPreferredGAProperty=t.preferredGA||null,20==window.wpnObject.optinMode&&"serviceWorker"in navigator){let e="/importer.js",n={};9131==window.wpnObject.clientId&&(e="/arquivos/importer.js",n.scope="/"),navigator.serviceWorker.register(e,n).then((function(e){})).catch((function(e){}))}let c=i.e("sdtpc");if(n&&(null==c||""===c))if(i.h("sdtpc","1",300),i.n("localStorage")){let e=JSON.stringify(t);localStorage.setItem("sdtp",e)}else{let e=JSON.parse(JSON.stringify(t));delete e[dialogHtml],i.h("sdtp",JSON.stringify(e),320),i.h("sddh",t.dialogHtml,320)}i.g("cus",t.success,20);let a=i.e("_wpn_ard");if(!t.success||null!=a&&""!==a||(i.g("_wpn_ard",1,7),function(e){let n=document.createElement("iframe");n.style.display="none",n.src=e,document.body.appendChild(n)}(t.url)),window.wpnObject.browserAvailable&&(e||!1===t.success)&&(e||function(e,n,t,o){if(e>=n&&(e==n||t>0&&(e-n)%t==0)){if(o>0){let e=i.e("wpnLastDenial");return null!=e&&""!==e||(e=0),(Date.now()-parseInt(e))/864e5>o}return!0}return!1}(window.wpnObject.currentPageViewAmount,o,l,r))&&(20!==window.wpnObject.optinMode||"denied"!==Notification.permission)){(new Image).src=t.image,window.wpnObject.showDialog()}const d=function(e,n,t,o){e?null==i.e(t)&&void 0===window.wpnObject.runWidgets[t]&&(i.h(t,window.wpnObject.currentPageViewAmount,o),window.wpnObject.runWidgets[t]=1,n()):i.d(t)};d(t.bannersEnabled,(function(){ye(window.wpnObject.clientId)}),"_wpnbecc",300),d(t.popupsEnabled,(function(){ve(window.wpnObject.clientId)}),"_wpnpecc",300),(t.lastVisit||t.productHistory)&&K(window.wpnObject.clientId).then((function(e){d(t.lastVisit,(function(){J(window.wpnObject.clientId)}),"_wpnlvecc",300),d(t.productHistory,(function(){Q(window.wpnObject.clientId)}),"_wpnhecc",300)})),d(t.mostViewed,(function(){ee(window.wpnObject.clientId)}),"_wpnmvecc",300),d(t.recommendedItems,(function(){se(window.wpnObject.clientId)}),"_wpnriecc",300),""!==window.wpnObject.scriptUrl&&window.wpnObject.insertExternalScript(window.wpnObject.scriptUrl),"consoleMessages"in t&&Array.isArray(t.consoleMessages)&&t.consoleMessages.length>0&&t.consoleMessages.forEach((function(e){Array.isArray(e)?console.log(...e):console.log(e)})),Se()})).catch((function(e){}))}},showDialog:function(){let e=window.location.href,n=e.indexOf("#");n>0&&(e=e.substr(0,n));let t=window.wpnObject.dialog.displayOptionType===i.c?window.wpnObject.dialog.displayOnlyPages:window.wpnObject.dialog.displayExcludePages;i.i(window.wpnObject.dialog.displayOptionType,t,e)&&(window.wpnObject.isSubscriptionCached?"complete"===document.readyState?Me():window.addEventListener("load",(function(){Me()})):(window.wpnObject.forceCheckOfSubscription=!0,window.wpnObject.checkSubscription()),Te("dialog","open",window.wpnObject.clientId))},pageView:function(e,n){let t="?idClient="+window.wpnObject.clientId;(e=new URL(window.location.href)).searchParams.has("gclid")&&(t+="&gclid="+e.searchParams.get("gclid"));const i=A(window.wpnObject.clientId);if(o.e(window.wpnObject.clientId,1,"pageview",n,e,null,i,T(),v(document.referrer),b(),null,null,t),"object"==typeof LS&&"function"==typeof LS.addToCartEnhanced){!function(e,n){const t=new URLSearchParams(window.location.search).get(e);if(t)try{const e=atob(t),o=JSON.parse(e);if(0===o.length)return;const i=o[0],{pid:l,q:r,v:c}=i;if(l&&r&&void 0!==c){const e=o.slice(1);e.length>0&&document.addEventListener("cart.updated",(function t(){e.forEach(e=>{const{pid:t,q:o,v:i}=e;t&&o&&void 0!==i&&n(t,o,Array.isArray(i)?i:[])}),document.removeEventListener("cart.updated",t)})),n(l,r,Array.isArray(c)?c:[])}}catch(e){console.error("Error processing smart link:",e)}}("wpnc",(e,n,t)=>{let o="";if(t)for(let e=0;e`;let i=`
'${o}'
`;LS.addToCartEnhanced(jQueryNuvem(i))})}},event:function(e,n){o.e(window.wpnObject.clientId,2,e,null,null,n,null,null,document.referrer,b())},conversion:function(e){o.e(window.wpnObject.clientId,16,"goal",null,window.location.href,null,2,null,null,null,null,e)},initChat:function(e){(function(e){let n="&clientId="+e+"&lang=es",t=i.e("_wpn_cotpc"),l=null;return t&&(l=i.n("localStorage")?localStorage.getItem("_wpn_cotp"):i.e("_wpn_cotp")),l&&null!=t&&!1!==t&&"undefined"!==l?new Promise((function(e,n){let t=null;i.n("localStorage")?(t=localStorage.getItem("_wpn_cotp"),e(JSON.parse(t))):(t=i.e("_wpn_cotp"),e(t))})):o.d("/chat/get-options",n)})(e).then((function(e){if(null==i.e("_wpn_cotpc")||""===i.e("_wpn_cotpc"))if(i.h("_wpn_cotpc","1",300),i.n("localStorage")){let n=JSON.stringify(e);localStorage.setItem("_wpn_cotp",n)}else{let n=JSON.parse(JSON.stringify(e));i.h("_wpn_cotp",JSON.stringify(n),320)}if(null!=e&&e.isEnabled){let n=e.displayOptionType==i.c?e.displayOnlyPages:e.displayExcludePages;i.i(e.displayOptionType,n,window.location.href)&&function(e){let n=document.getElementsByTagName("body")[0],t=e.mobileHtml;i.f()===i.a&&(t=e.html),n.insertAdjacentHTML("beforeend",t);let l=document.getElementsByClassName("_wpn_chat_link");window.wpnObject.hasOwnProperty("bubbles")||(window.wpnObject.bubbles={left:[],right:[],center:[]});let r=document.getElementById("_wpn_chat_container"),c=r.dataset.position;if(l.length>0)for(let e=0;e0&&(!function(e){for(let n=0;n