!function(){const t=[".price"],e=document.querySelector('script[data-id][data-name="shopifyAddiWidget"]'),o=e.getAttribute("data-element-reference"),n=e.getAttribute("data-ally-slug"),r={showBanner:!1,bannerId:"",bannerElementRef:""},d={borderColor:e.getAttribute("widget-border-color"),borderRadius:e.getAttribute("widget-border-radius"),fontColor:e.getAttribute("widget-font-color"),fontFamily:e.getAttribute("widget-font-family"),fontSize:e.getAttribute("widget-font-size"),badgeBackgroundColor:e.getAttribute("widget-badge-background-color"),infoBackgroundColor:e.getAttribute("widget-info-background-color"),iconType:e.getAttribute("widget-addi-icon-type"),iconSize:e.getAttribute("widget-addi-icon-size"),margin:e.getAttribute("widget-margin")},i={backgroundColor:e.getAttribute("modal-background-color"),fontColor:e.getAttribute("modal-font-color"),fontFamily:e.getAttribute("modal-font-family"),priceColor:e.getAttribute("modal-price-color"),badgeBackgroundColor:e.getAttribute("modal-badge-background-color"),badgeFontColor:e.getAttribute("modal-badge-font-color"),badgeBorderRadius:e.getAttribute("modal-badge-border-radius"),cardColor:e.getAttribute("modal-card-color"),buttonBorderColor:e.getAttribute("modal-button-border-color"),buttonBorderRadius:e.getAttribute("modal-button-border-radius"),buttonBackgroundColor:e.getAttribute("modal-button-background-color"),buttonFontColor:e.getAttribute("modal-button-font-color")};let a=null;function c(e){if(e)return a=document.querySelector(e),a;for(let e=0;et.id===parseInt(e)));return o.length>0?o[0]:null}return t?.variants[0]}console.warn("[ADDI - widget] Product info not found.")}(),e=t.price/100;t?function(t){const e=c(o);if(e){const o=document.querySelector("addi-product-widget");o&&o.remove();const r=document.createElement("addi-product-widget");r.setAttribute("ally-slug",n),r.setAttribute("price",t),r.setAttribute("country","co"),r.setAttribute("custom-widget-styles",function(){const t=t=>{const e=Object.keys(t),o={};for(let n=0;n{setTimeout(l,500)}))}();