var wtbManager=function(){return{init:function(){return o=t=null,document.head.getAttribute("data-countryCode")&&document.head.getAttribute("languageCode")&&(t=document.head.dataset.countrycode.toUpperCase(),o=document.head.dataset.languagecode.toLowerCase()+"-"+t),null!=o&&(window.swnDataLayer.locale=o),null!=t&&(window.swnDataLayer.country=t),function(){try{var o=window.swnDataLayer=window.swnDataLayer||{};o.appId="5b1017177898490f4b119e94",o.eventBuffer=o.eventBuffer||[],o.loadBuffer=o.loadBuffer||[],o.push=o.push||function(t){o.eventBuffer.push(t)},o.load=o.load||function(t){o.loadBuffer.push(t)};var t=document.getElementsByTagName("script")[0],r=document.createElement("script");r.async=!0,r.src="//wtb-tag.swaven.com/scripts/"+o.appId+"/tag.min.js",t.parentNode.insertBefore(r,t)}catch(t){console.log(t)}}(),void(swnDataLayer.widget_callback=function(t){if(document.head.getAttribute("data-currencyCode")&&document.head.dataset.currencycode,"undefined"!=typeof track){if("dploy"==t.action){(r={swaven:{}}).swaven.action=t.action;var o={event:"storeLocatorOpen",interaction:r};track.push(o)}if("close"==t.action){(r={swaven:{}}).swaven.action=t.action;o={event:"storeLocatorClose",interaction:r};track.push(o)}if("clk"==t.action){(r={swaven:{}}).swaven.action=t.action,null!=t.prd&&(null!=t.prd.pid&&(r.swaven.productId=t.prd.pid),null!=t.prd.pname&&(r.swaven.productName=t.prd.pname),null!=t.prd.ppckg&&(r.swaven.productVariant=t.prd.ppckg));o={event:"storeLocatorProductDetail",interaction:r};track.push(o)}if("buy"==t.action){(r={swaven:{},storeLocator:{}}).swaven.action=t.action,null!=t.prd&&(null!=t.prd.pid&&(r.swaven.productId=t.prd.pid),null!=t.prd.pname&&(r.swaven.productName=t.prd.pname),null!=t.prd.ppckg&&(r.swaven.productVariant=t.prd.ppckg)),r.swaven.productPrice=t.store.pr,r.storeLocator.city=void 0,null!=t.store.scity&&(r.storeLocator.city=t.store.scity),r.storeLocator.zipCode=void 0,null!=t.store.szc&&(r.storeLocator.zipCode=t.store.szc),r.storeLocator.country=void 0,null!=t.store.country&&(r.storeLocator.country=t.store.country),r.storeLocator.storeId=t.store.rid,r.storeLocator.storeName=t.store.rname;o={event:"storeLocatorEtailerClick",interaction:r};track.push(o)}if("clkloc"==t.action){(r={swaven:{},storeLocator:{}}).swaven.action=t.action,null!=t.prd&&(null!=t.prd.pid&&(r.swaven.productId=t.prd.pid),null!=t.prd.pname&&(r.swaven.productName=t.prd.pname),null!=t.prd.ppckg&&(r.swaven.productVariant=t.prd.ppckg)),r.swaven.productPrice=t.store.pr,r.storeLocator.city=void 0,null!=t.store.scity&&(r.storeLocator.city=t.store.scity),r.storeLocator.zipCode=void 0,null!=t.store.szc&&(r.storeLocator.zipCode=t.store.szc),r.storeLocator.country=void 0,null!=t.store.country&&(r.storeLocator.country=t.store.country),r.storeLocator.storeId=t.store.rid,r.storeLocator.storeName=t.store.rname;o={event:"storeLocatorViewInfo",interaction:r};track.push(o)}if("clkRoute"==t.action){(r={swaven:{},storeLocator:{}}).swaven.action=t.action,null!=t.prd&&(null!=t.prd.pid&&(r.swaven.productId=t.prd.pid),null!=t.prd.pname&&(r.swaven.productName=t.prd.pname),null!=t.prd.ppckg&&(r.swaven.productVariant=t.prd.ppckg)),r.swaven.productPrice=t.store.pr,r.storeLocator.city=void 0,null!=t.store.scity&&(r.storeLocator.city=t.store.scity),r.storeLocator.zipCode=void 0,null!=t.store.szc&&(r.storeLocator.zipCode=t.store.szc),r.storeLocator.country=void 0,null!=t.store.country&&(r.storeLocator.country=t.store.country),r.storeLocator.storeId=t.store.rid,r.storeLocator.storeName=t.store.rname;o={event:"storeLocatorGetDirections",interaction:r};track.push(o)}if("geoloc"==t.action){var r;(r={swaven:{}}).swaven.action=t.action,null!=t.prd&&(null!=t.prd.pid&&(r.swaven.productId=t.prd.pid),null!=t.prd.pname&&(r.swaven.productName=t.prd.pname),null!=t.prd.ppckg&&(r.swaven.productVariant=t.prd.ppckg));o={event:"storeLocatorSearchSubmission",interaction:r};track.push(o)}}});var t,o}}};wtbM=wtbManager(),wtbM.init();