/*! stevemaddencom v1.0.0 | 2025-10-21T14:57:31 | 346893e3513e8def5eb1cfc6624b5f43725f2a25 | Copyright. All rights reserved. 2025. Digital Media Technologies Ltd. */ "use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(){if("function"==typeof window.CustomEvent)return;function a(t,e){return new a(t,e=e||{bubbles:!1,cancelable:!1,detail:void 0})}a.prototype=window.Event.prototype,window.CustomEvent=a}(),function(){function n(){var t=S[A],e="desktop";return taggstar.$(window).width()<=t&&(e="mobile"),e}function o(){return"mobile"===n()}function r(){function t(t){return t&&-1 .slick-list"},basket:{v1:{desktop:".item > a > h2, .item > a > strong",mobile:".item > a > h2, .item > a > strong"},v2:{desktop:".ptitle",mobile:".ptitle"}}},S={category:767,product:991,basket:600},A="",$={},D=!1,B=["treatment-v2","treatment-v3","treatment-v4","treatment-v5"],M={},P=taggstar.config,T=P.key,j=taggstar.exception.handle,_=taggstar.util.getObjectByPath,z=taggstar.exception.Error,F=0,L={},Q={products:[]},G=[],N=!1,V=!1,U=[7191916609669,7191902519429,7119877308549,7101310402693,6815267717253,6815267750021,7169606090885,7169606156421,7169606189189,6624716226693,7172278812805,6808659525765,6808659722373,7101627072645,7167500320901,7174494912645,7182185824389,7174494421125,7155655377029,7156269219973,7119874556037,7119874719877,7087450194053,6664573780101,6734485684357,7156132348037,6817460781189,6822579142789,7111545585797,6923843960965,6923843993733,7119874392197,7050161422469,6838862872709,7167171559557,7172389601413,6804247085189,6804246921349,6804246954117,6933131526277,7039794184325,7084164513925,7176762294405,6871658692741,7150085374085,7150085406853,7159515381893,7159515316357,7131950514309,7154391122053,4392940175505,6848236126341,6764845105285,6821691326597,6817457471621,7030281044101,6580209483909,6848488603781,6990870970501,7135698616453,7135698649221,7135698681989,7135698747525,6662543638661,7040881098885,7040881131653,7076782538885,6657692205189,6911907135621,6928214524037,1353416933466,7095007936645,7095008657541,6813802791045,6850456780933,6882165686405,6882165719173,6738159042693,6768051945605,7137281245317,7125407301765,7078281937029,6822416023685,6724737269893,6814438981765,7167171100805,7167171166341,6931124977797,7109617057925,6884004003973,6928214196357,7146684317829,7167170707589,7183873376389,7000232067205,7167171035269,7057934876805,7057935007877,6585848823941,7169967292549,6565154324613,6583992385669,7068075655301,7174717800581,6983710015621,7174717898885,7191967400069,7148436947077,7174718324869,7174718357637,7137879916677,7174718128261,7154390663301,7154390728837,6953793912965,6960655401093,6554352124037,6715454062725,6945116258437,6941355769989,7128675483781,7026775359621,7026775392389,6953792307333,7083683053701,7099503771781,7124422688901,7126248390789,6657734148229,7109601755269,7154175148165,7154175180933,7154175213701,7154175246469,6625699627141,7125876408453,7125876506757,6586461388933,6621425762437,7107750264965,7137280262277,7130609483909,7130609746053,7176185413765,7176185479301,6929472782469,6929473142917,7050161193093,7050161324165,7050162339973,7073132052613,7113840525445,6734485717125,7166521507973,7142325616773,7142325649541,7180672499845,7180672630917,7180672663685,7178679615621,7178679681157,6991906701445,7155742965893,7028822737029,7028822900869,6934232531077,7180812583045,7180812648581,7180812681349,7154175770757,7154175803525,7156269056133,7156269187205,7154175344773,7154175410309,7154175443077,7154175508613,7154175541381,7154175606917,7154175672453,7154176098437,7154175901829,7154175934597,7206744391813,7022130102405,7147289608325,7147289641093,7133050110085,7133050142853,7167774359685,7182198636677,7126051848325,6864503996549,7066555383941,7127540760709,7127540793477,6934859874437,7127540826245,7127540891781,6833840128133],H=function(t,e){var a;return taggstar.log(t),taggstar.log(e),(a=e?e.is(t)?e:e.find(t):taggstar.$(t)).selector||(a.selector=t),a},W=function(a){return new Promise(function(t){try{var e=new CustomEvent("taggstar:response",{detail:g(a)});document.dispatchEvent(e),taggstar.analytics=taggstar.analytics||[],taggstar.analytics.push({data:g(a),timestamp:Date.now()}),self.dataLayer=self.dataLayer||[],self.dataLayer.push({event:"taggstarResponse",tagStarData:a})}catch(t){taggstar.log("error submitting tracking object")}finally{t(a)}})},X=function(){return document.querySelectorAll(".ais-hits-container .ais-Hits-item[data-insights-id]").length||I&&I.querySelectorAll(".ais-hit.ais-product[data-insights-id]").length?"v1":(document.querySelectorAll(".product-container[data-product-id]").length||I&&I.querySelectorAll(".product-container[data-product-id]").length,"v2")},Y=function(t){var e;return"v1"==X()&&!(e=document.querySelector('.ais-hit.ais-product[data-insights-id="'+t+'"]'))&&I&&(e=I.querySelector('.ais-hit.ais-product[data-insights-id="'+t+'"]')),"v2"==X()&&!(e=document.querySelector('.product-container[data-product-id="'+t+'"]'))&&I&&(e=I.querySelector('.product-container[data-product-id="'+t+'"]')),e},J=function(){var t=document.querySelectorAll(".ais-hit.ais-product[data-insights-id]");return"v1"==X()&&!(t=document.querySelectorAll(".ais-hit.ais-product[data-insights-id]")).length&&I&&(t=I.querySelectorAll(".ais-hit.ais-product[data-insights-id]")),"v2"==X()&&!(t=document.querySelectorAll(".product-container[data-product-id]")).length&&I&&(t=I.querySelectorAll(".product-container[data-product-id]")),t},K=function(){return window.location.pathname.includes("/re-booted")},Z=function(t){return t.includes("SM REBOOTED")},tt=function(){return 0 a > h2")&&rt()[0].querySelector(".item > a > h2").textContent.includes("SM REBOOTED")},et=function(){return document.querySelectorAll(".item-info [data-productid]").length?"v1":document.querySelectorAll(".quick-items .quick-cart-item").length?"v2":"v1"},at=function(t){var e;return"v1"==et()?(e=document.querySelector('.item-info [data-productid="'+t+'"]'))&&e.closest(".productItem"):"v2"==et()?(e=document.querySelector('.quick-items .quick-cart-item [data-product-id="'+t+'"]'))&&e.closest(".quick-cart-item"):e},rt=function(){return"v1"==et()?document.querySelectorAll(".item-info [data-productid]"):"v2"==et()?document.querySelectorAll(".quick-items .quick-cart-item"):document.querySelectorAll(".item-info [data-productid]")},nt={category:{condition:function(){var t,e,a,r,n;if(v=P.experienceRequired?v||taggstar.params&&taggstar.params.taggExperienceId||taggstar.$("body").data("tagg-experience"):void 0,h={category:"-",products:[]},(t=J()).length)for(n=t.length,r=0;r=P.tries?(clearInterval(r),i=!1,void e(t instanceof taggstar.exception.Error?t:new taggstar.exception.Error({stack:t.stack,name:t.name,message:t.message,code:"CORE03",severity:99,module:"socialproof"}))):void 0}if(a&&a!==taggstar.constant.null){if(!o)try{o=g[a].condition()}catch(t){return++n>=P.tries?(clearInterval(r),i=!1,void e(t instanceof taggstar.exception.Error?t:new taggstar.exception.Error({stack:t.stack,name:t.name,message:t.message,code:"CORE28",severity:99}))):void 0}if(o){if(clearInterval(r),i=!1,"function"!=typeof g[a].module)return void e(new taggstar.exception.Error({message:"settings invalid (module function exists? )",code:"CORE32",severity:99}));taggstar.log("successful boot");try{g[a].module(),t(!0)}catch(t){return void e(t instanceof taggstar.exception.Error?t:new taggstar.exception.Error({stack:t.stack,name:t.name,message:t.message,code:"CORE33",severity:99}))}}else{if(++n>=P.tries)return clearInterval(r),i=!1,void e(new taggstar.exception.Error({message:"condition failed (data layer missing?)",code:"CORE30",severity:99,module:A}));n%5==0&&taggstar.log("waiting for condition function","warn")}}else{if(++n>=P.tries)return clearInterval(r),i=!1,void(a===taggstar.constant.null?(taggstar.log("null module detected!","warn"),t(!0)):e(new taggstar.exception.Error({message:"booting failed during module detection (data layer missing?)",code:"CORE29",severity:99,module:"socialproof"})));a===taggstar.constant.null&&(a=void 0),n%5==0&&taggstar.log("waiting for module detection function","warn")}}},P.interval)})})(l,nt).catch(j)}).catch(j),function(){try{var t=new CustomEvent("taggstar:pushEventReady",{ready:!0});document.dispatchEvent(t)}catch(t){taggstar.log("error submitting push event")}}(),setInterval(function(){try{var t=document.querySelector(".cartOpen .cartDrawer, #CartDrawer.cart-drawer"),e=t?t.querySelectorAll(".quick-cart-item .wishlist_mini [data-product-id], .cart-item[data-product-id]"):[];if(t&&0