',a.element.innerHTML=n.trim(),a.hor.horElement=a.element.getElementsByClassName(g.appClass.collHorCont)[0],A(a,a.hor.horElement,t),a.hor.leftArrow=a.element.getElementsByClassName(g.appClass.collArrowLeft)[0],a.hor.rightArrow=a.element.getElementsByClassName(g.appClass.collArrowRight)[0],a.hor.rightArrowDis=!1,a.hor.leftArrowDis=!0,L(a),window.addEventListener("resize",L.bind(null,a))):A(a,a.element,t),k(a),a.productEl=a.element.parentNode,a.imgEl=a.productEl.querySelector("img:not(.shappify-sales-icon-collection)"),g.features.switchImage&&g.features.switchShowLoading&&((n=document.createElement("div")).className=g.appClass.loadingImage,a.imgEl.parentNode.style.position="relative",a.loadingEl=a.imgEl.parentNode.insertBefore(n,a.imgEl.parentNode.children[0]),a.imgEl.addEventListener("load",function(){f(a)})),window.SellerPanda.Swatchify.collConts.push(a)):I.deleteCont&&p(o)}(e,t)},e.prototype.getSwatchData=function(e,t,s){return E(s,e,t)},window.SellerPanda.Swatchify=new e}();