1var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ 2let window = _____WB$wombat$assign$function_____("window"); 3let self = _____WB$wombat$assign$function_____("self"); 4let document = _____WB$wombat$assign$function_____("document"); 5let location = _____WB$wombat$assign$function_____("location"); 6let top = _____WB$wombat$assign$function_____("top"); 7let parent = _____WB$wombat$assign$function_____("parent"); 8let frames = _____WB$wombat$assign$function_____("frames"); 9let opener = _____WB$wombat$assign$function_____("opener"); 10if (window.getEcwidV2Object === undefined) { 11window.getEcwidV2Object = function() { 12return window.Ecwid; 13} 14window.getEcwidV2ObjectName = function() { 15return "Ecwid"; 16} 17window.getEcwidV3Object = function() { 18return undefined; 19} 20} 21var ecwidV2ObjectName = window.getEcwidV2ObjectName(); 22window[ecwidV2ObjectName] = window[ecwidV2ObjectName] || {}; 23var EcwidObj = window.getEcwidV2Object(); 24try { 25if (!window.console) { 26window.console = { 27log: function() {}, 28error: function() {} 29} 30} 31var _xnext_included; 32if (!_xnext_included && !window.location.href.match(/fb_xd_fragment/g)) { 33_xnext_included = true; 34window.ec = window.ec || {}; 35window.ec.config = window.ec.config || {}; 36window.ec.config.tracking = window.ec.config.tracking || {}; 37if(!document.body) { 38throw "The tag <body> is missing"; 39} 40function xInjectJs(src) { 41var script = document.createElement("script"); 42script.setAttribute("src", src); 43script.charset = "utf-8"; 44script.setAttribute("type", "text/javascript"); 45document.body.appendChild(script); 46} 47/*! lazysizes - v5.1.2 */ 48!function(a,b){var c=b(a,a.document);a.lazySizes=c,"object"==typeof module&&module.exports&&(module.exports=c)}("undefined"!=typeof window?window:{},function(a,b){"use strict";var c,d;if(function(){var b,c={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};d=a.lazySizesConfig||a.lazysizesConfig||{};for(b in c)b in d||(d[b]=c[b])}(),!b||!b.getElementsByClassName)return{init:function(){},cfg:d,noSupport:!0};var e=b.documentElement,f=a.Date,g=a.HTMLPictureElement,h="addEventListener",i="getAttribute",j=a[h],k=a.setTimeout,l=a.requestAnimationFrame||k,m=a.requestIdleCallback,n=/^picture$/i,o=["load","error","lazyincluded","_lazyloaded"],p={},q=Array.prototype.forEach,r=function(a,b){return p[b]||(p[b]=new RegExp("(\\s|^)"+b+"(\\s|$)")),p[b].test(a[i]("class")||"")&&p[b]},s=function(a,b){r(a,b)||a.setAttribute("class",(a[i]("class")||"").trim()+" "+b)},t=function(a,b){var c;(c=r(a,b))&&a.setAttribute("class",(a[i]("class")||"").replace(c," "))},u=function(a,b,c){var d=c?h:"removeEventListener";c&&u(a,b),o.forEach(function(c){a[d](c,b)})},v=function(a,d,e,f,g){var h=b.createEvent("Event");return e||(e={}),e.instance=c,h.initEvent(d,!f,!g),h.detail=e,a.dispatchEvent(h),h},w=function(b,c){var e;!g&&(e=a.picturefill||d.pf)?(c&&c.src&&!b[i]("srcset")&&b.setAttribute("srcset",c.src),e({reevaluate:!0,elements:[b]})):c&&c.src&&(b.src=c.src)},x=function(a,b){return(getComputedStyle(a,null)||{})[b]},y=function(a,b,c){for(c=c||a.offsetWidth;c<d.minSize&&b&&!a._lazysizesWidth;)c=b.offsetWidth,b=b.parentNode;return c},z=function(){var a,c,d=[],e=[],f=d,g=function(){var b=f;for(f=d.length?e:d,a=!0,c=!1;b.length;)b.shift()();a=!1},h=function(d,e){a&&!e?d.apply(this,arguments):(f.push(d),c||(c=!0,(b.hidden?k:l)(g)))};return h._lsFlush=g,h}(),A=function(a,b){return b?function(){z(a)}:function(){var b=this,c=arguments;z(function(){a.apply(b,c)})}},B=function(a){var b,c=0,e=d.throttleDelay,g=d.ricTimeout,h=function(){b=!1,c=f.now(),a()},i=m&&g>49?function(){m(h,{timeout:g}),g!==d.ricTimeout&&(g=d.ricTimeout)}:A(function(){k(h)},!0);return function(a){var d;(a=!0===a)&&(g=33),b||(b=!0,d=e-(f.now()-c),d<0&&(d=0),a||d<9?i():k(i,d))}},C=function(a){var b,c,d=99,e=function(){b=null,a()},g=function(){var a=f.now()-c;a<d?k(g,d-a):(m||e)(e)};return function(){c=f.now(),b||(b=k(g,d))}},D=function(){var g,l,m,o,p,y,D,F,G,H,I,J,K=/^img$/i,L=/^iframe$/i,M="onscroll"in a&&!/(gle|ing)bot/.test(navigator.userAgent),N=0,O=0,P=0,Q=-1,R=function(a){P--,(!a||P<0||!a.target)&&(P=0)},S=function(a){return null==J&&(J="hidden"==x(b.body,"visibility")),J||!("hidden"==x(a.parentNode,"visibility")&&"hidden"==x(a,"visibility"))},T=function(a,c){var d,f=a,g=S(a);for(F-=c,I+=c,G-=c,H+=c;g&&(f=f.offsetParent)&&f!=b.body&&f!=e;)(g=(x(f,"opacity")||1)>
480)&&"visible"!=x(f,"overflow")&&(d=f.getBoundingClientRect(),g=H>d.left&&G<d.right&&I>d.top-1&&F<d.bottom+1);return g},U=function(){var a,f,h,j,k,m,n,p,q,r,s,t,u=c.elements;if((o=d.loadMode)&&P<8&&(a=u.length)){for(f=0,Q++;f<a;f++)if(u[f]&&!u[f]._lazyRace)if(!M||c.prematureUnveil&&c.prematureUnveil(u[f]))aa(u[f]);else if((p=u[f][i]("data-expand"))&&(m=1*p)||(m=O),r||(r=!d.expand||d.expand<1?e.clientHeight>500&&e.clientWidth>500?500:370:d.expand,c._defEx=r,s=r*d.expFactor,t=d.hFac,J=null,O<s&&P<1&&Q>2&&o>2&&!b.hidden?(O=s,Q=0):O=o>1&&Q>1&&P<6?r:N),q!==m&&(y=innerWidth+m*t,D=innerHeight+m,n=-1*m,q=m),h=u[f].getBoundingClientRect(),(I=h.bottom)>=n&&(F=h.top)<=D&&(H=h.right)>=n*t&&(G=h.left)<=y&&(I||H||G||F)&&(d.loadHidden||S(u[f]))&&(l&&P<3&&!p&&(o<3||Q<4)||T(u[f],m))){if(aa(u[f]),k=!0,P>9)break}else!k&&l&&!j&&P<4&&Q<4&&o>2&&(g[0]||d.preloadAfterLoad)&&(g[0]||!p&&(I||H||G||F||"auto"!=u[f][i](d.sizesAttr)))&&(j=g[0]||u[f]);j&&!k&&aa(j)}},V=B(U),W=function(a){var b=a.target;if(b._lazyCache)return void delete b._lazyCache;R(a),s(b,d.loadedClass),t(b,d.loadingClass),u(b,Y),v(b,"lazyloaded")},X=A(W),Y=function(a){X({target:a.target})},Z=function(a,b){try{a.contentWindow.location.replace(b)}catch(c){a.src=b}},$=function(a){var b,c=a[i](d.srcsetAttr);(b=d.customMedia[a[i]("data-media")||a[i]("media")])&&a.setAttribute("media",b),c&&a.setAttribute("srcset",c)},_=A(function(a,b,c,e,f){var g,h,j,l,o,p;(o=v(a,"lazybeforeunveil",b)).defaultPrevented||(e&&(c?s(a,d.autosizesClass):a.setAttribute("sizes",e)),h=a[i](d.srcsetAttr),g=a[i](d.srcAttr),f&&(j=a.parentNode,l=j&&n.test(j.nodeName||"")),p=b.firesLoad||"src"in a&&(h||g||l),o={target:a},s(a,d.loadingClass),p&&(clearTimeout(m),m=k(R,2500),u(a,Y,!0)),l&&q.call(j.getElementsByTagName("source"),$),h?a.setAttribute("srcset",h):g&&!l&&(L.test(a.nodeName)?Z(a,g):a.src=g),f&&(h||l)&&w(a,{src:g})),a._lazyRace&&delete a._lazyRace,t(a,d.lazyClass),z(function(){var b=a.complete&&a.naturalWidth>1;p&&!b||(b&&s(a,"ls-is-cached"),W(o),a._lazyCache=!0,k(function(){"_lazyCache"in a&&delete a._lazyCache},9)),"lazy"==a.loading&&P--},!0)}),aa=function(a){if(!a._lazyRace){var b,c=K.test(a.nodeName),e=c&&(a[i](d.sizesAttr)||a[i]("sizes")),f="auto"==e;(!f&&l||!c||!a[i]("src")&&!a.srcset||a.complete||r(a,d.errorClass)||!r(a,d.lazyClass))&&(b=v(a,"lazyunveilread").detail,f&&E.updateElem(a,!0,a.offsetWidth),a._lazyRace=!0,P++,_(a,b,f,e,c))}},ba=C(function(){d.loadMode=3,V()}),ca=function(){3==d.loadMode&&(d.loadMode=2),ba()},da=function(){if(!l){if(f.now()-p<999)return void k(da,999);l=!0,d.loadMode=3,V(),j("scroll",ca,!0)}};return{_:function(){p=f.now(),c.elements=b.getElementsByClassName(d.lazyClass),g=b.getElementsByClassName(d.lazyClass+" "+d.preloadClass),j("scroll",V,!0),j("resize",V,!0),a.MutationObserver?new MutationObserver(V).observe(e,{childList:!0,subtree:!0,attributes:!0}):(e[h]("DOMNodeInserted",V,!0),e[h]("DOMAttrModified",V,!0),setInterval(V,999)),j("hashchange",V,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(a){b[h](a,V,!0)}),/d$|^c/.test(b.readyState)?da():(j("load",da),b[h]("DOMContentLoaded",V),k(da,2e4)),c.elements.length?(U(),z._lsFlush()):V()},checkElems:V,unveil:aa,_aLSL:ca}}(),E=function(){var a,c=A(function(a,b,c,d){var e,f,g;if(a._lazysizesWidth=d,d+="px",a.setAttribute("sizes",d),n.test(b.nodeName||""))for(e=b.getElementsByTagName("source"),f=0,g=e.length;f<g;f++)e[f].setAttribute("sizes",d);c.detail.dataAttr||w(a,c.detail)}),e=function(a,b,d){var e,f=a.parentNode;f&&(d=y(a,f,d),e=v(a,"lazybeforesizes",{width:d,dataAttr:!!b}),e.defaultPrevented||(d=e.detail.width)&&d!==a._lazysizesWidth&&c(a,f,e,d))},f=function(){var b,c=a.length;if(c)for(b=0;b<c;b++)e(a[b])},g=C(f);return{_:function(){a=b.getElementsByClassName(d.autosizesClass),j("resize",g)},checkElems:g,updateElem:e}}(),F=function(){!F.i&&b.getElementsByClassName&&(F.i=!0,E._(),D._())};return k(function(){d.init&&F()}),c={cfg:d,autoSizer:E,loader:D,init:F,uP:w,aC:s,rC:t,hC:r,fire:v,gW:y,rAF:z}}); 49window.ec = window.ec || {} 50window.ecwidEvents = { 51bind: function(event, fct) { 52this._events = this._events || {}; 53this._events[event] = this._events[event] || []; 54this._events[event].push(fct); 55}, 56unbind: function(event, fct) { 57this._events = this._events || {}; 58if (event in this._events === false) return; 59this._events[event].splice(this._events[event].indexOf(fct), 1); 60}, 61trigger: function(event /* , args... */ ) { 62this._events = this._events || {}; 63if (event in this._events === false) return; 64for (var i = 0; i < this._events[event].length; i++) { 65this._events[event][i].apply(this, Array.prototype.slice.call(arguments, 1)); 66} 67} 68}; 69window.ec.events=window.ecwidEvents;(function() { 70var injectRosettaRetry = 0; 71function tryInjectRosettaScript(cdnUrl, s3Url) { 72injectRosettaRetry++; 73var url = (injectRosettaRetry < 5) ? cdnUrl : s3Url; 74var script = document.createElement('script'); 75script.type = 'text/javascript'; 76script.onerror = function() { 77document.getElementsByTagName('head')[0].removeChild(script); 78if (injectRosettaRetry < 10) { 79setTimeout(tryInjectRosettaScript.bind(this, cdnUrl, s3Url), 200); 80} else { 81if (!!window.ga) { 82window.ga('send', 'exception', { 83'exDescription': 'Translation with url ' + url + ' not loaded.', 84'exFatal': true 85}); 86} 87console && console.error && console.error("Load translation failed: ", url); 88window.ecwid_elm_config = window.ecwid_elm_config || {}; 89window.ecwid_elm_config.translations_load_failed_url = url; 90if (!!window.ecwidEvents) { 91window.ecwidEvents.trigger('TRANSLATIONS_LOAD_FAILED', url); 92} 93if (!!window.Ecwid && !!window.Ecwid.logException) { 94window.Ecwid.logException('Failed to load translations. Url: ' + url + '. retry number: ' + injectRosettaRetry); 95} 96} 97}; 98script.onload = function () { 99window.ecwid_elm_config = window.ecwid_elm_config || {}; 100window.ecwid_elm_config.translations_loaded = true; 101if (!!window.ecwidEvents) { 102window.ecwidEvents.trigger('TRANSLATIONS_LOADED'); 103} 104} 105script.src = url; 106document.getElementsByTagName('head')[0].appendChild(script); 107} 108tryInjectRosettaScript('https://d3cy3u1txmkqs3.cloudfront.net/rosetta/translations2022/new-frontend/files/new-frontend.en.-413791614.
108js', 'https://ecwid-rosetta.s3.amazonaws.com/translations2022/new-frontend/files/new-frontend.en.-413791614.js'); 109})(); 110(function() { 111window.ecwid_init_elm_config = function () { 112function load(){ 113var script = document.createElement('script'); 114script.type = 'text/javascript'; 115script.async = true; 116script.onload = function(){ 117window.ecwid_elm_config.loaded = true; 118window.ecwidEvents.trigger('ELM_LOADED') 119}; 120script.src = selectJsVersion('https://d3cy3u1txmkqs3.cloudfront.net/venera/static/ecwid-storefront.aa43b778880a96214a35ba4b0f0a48a8.min.js'); 121document.getElementsByTagName('head')[0].appendChild(script); 122} 123function loadCheckout(callback) { 124if (window.ecwid_elm_config.checkoutLoaded) { 125callback(); 126return; 127} 128if (window.ecwid_elm_config.checkoutAdded) { 129return; 130} 131var script = document.createElement('script'); 132script.type = 'text/javascript'; 133script.async = true; 134script.onload = function() { 135window.ecwid_elm_config.checkoutLoaded = true; 136callback(); 137}; 138script.src = selectJsVersion('https://d3cy3u1txmkqs3.cloudfront.net/venera/static/ecwid-checkout.08838698f4dc375c23ab16ca3ebe4b8c.min.js'); 139document.getElementsByTagName('head')[0].appendChild(script); 140window.ecwid_elm_config.checkoutAdded = true; 141} 142function consume(callback) { 143window.ecwidEvents.bind('ELM_LOADED', callback); 144if (window.ecwid_elm_config.loaded) { 145callback(); 146} 147} 148function consumeTranslations(callback) { 149window.ecwidEvents.bind('TRANSLATIONS_LOADED', callback); 150if (window.ecwid_elm_config.translations_loaded) { 151callback(); 152} 153} 154function consumeTranslationsLoadFailed(callback) { 155window.ecwidEvents.bind('TRANSLATIONS_LOAD_FAILED', callback); 156if (window.ecwid_elm_config.translations_load_failed_url) { 157callback(window.ecwid_elm_config.translations_load_failed_url); 158} 159} 160function isDebugEnabled() { 161try { 162return "true" === window.localStorage.getItem("debug_ecwid_storefront"); 163} catch (e) { 164return false; 165} 166} 167function selectJsVersion(jsFile) { 168if (isDebugEnabled()) { 169return jsFile.replace('.min.js', '.debug.js'); 170} 171return jsFile; 172} 173window.ecwid_elm_config = window.ecwid_elm_config || {}; 174window.ecwid_elm_config.consume = consume; 175window.ecwid_elm_config.consumeTranslations = consumeTranslations; 176window.ecwid_elm_config.consumeTranslationsLoadFailed = consumeTranslationsLoadFailed; 177window.ecwid_elm_config.loadCheckout = loadCheckout 178load(); 179} 180window.ecwid_init_elm_config(); 181})() 182if (EcwidObj.restoreCartData) { 183window.ec.config.restored_http_checkout = true; 184document.body.className += " restored-http-checkout"; 185var cartData = EcwidObj.restoreCartData; 186for (var item in cartData) { 187if (!cartData.hasOwnProperty(item)) continue; 188if (item.match(/.*_expire/)) continue; 189if (item.match(/PSecwid__\d+PScart/) || item.match(/SP-ecwid__\d+SP-cart/)) { 190var cartDataItem = JSON.parse(cartData[item]); 191if (cartDataItem && cartDataItem.order && !window.ec.config.custom_redirect_after_purchase) { 192window.ec.config.custom_redirect_after_purchase = cartDataItem.order.refererUrl; 193} 194} 195} 196} 197function isOnIframe() { 198return window.top.location != window.location; 199} 200// Hi! Do you love reading JavaScript code? We too! 201// Ecwid has a plenty of different APIs and we welcome all developers to 202// create addons and services (free or paid ones) for Ecwid merchants. Such 203// addons and apps will be promoted on our site. 204// More about our APIs: http://api.ecwid.com 205var addExtension = function(cons,ext) { 206if (cons.addExtension) cons.addExtension(ext); 207else cons(ext); 208}; 209var ep = function() { 210this.extensions = []; 211this.consumers = []; 212var that = this; 213this.registerConsumer = function(cons) { 214that.consumers.push(cons); 215for (var i=0; i<that.extensions.length; i++) addExtension(cons, that.extensions[i]); 216}; 217this.addExtension = this.add = function(ext) { 218that.extensions.push(ext); 219for (var i=0; i<that.consumers.length; i++) addExtension(that.consumers[i],ext); 220}; 221this.clear = function() { 222that.extensions = []; 223}; 224}; 225var proxyChain = function() {return {Chain:new ep};}; 226window.ec = window.ec || {}; 227window.ec.config = window.ec.config || {}; 228var chameleon = window.ec.config.chameleon || {}; 229var colorPrefix = "color-"; 230for (var key in chameleon) { 231if (chameleon.hasOwnProperty(key) && key.indexOf(colorPrefix) == 0) { 232chameleon.colors = chameleon.colors || {}; 233chameleon.colors[key] = chameleon[key]; 234} 235} 236window.ec.config.chameleon = chameleon; 237function getHeadTag() { 238var head = document.getElementsByTagName('head'); 239if (!head) { 240head = document.getElementsByTagName('body')[0].parentNode.appendChild(document.createElement('head')); 241} 242return head[0] 243}; 244EcwidObj.storefrontVersion = "2024-40662-g83adb470c10934"; 245EcwidObj.MessageBundles = EcwidObj.MessageBundles ? EcwidObj.MessageBundles : {}; 246EcwidObj.restoreCartData = EcwidObj.restoreCartData ? EcwidObj.restoreCartData : {}; 247EcwidObj.ExtensionPoint = ep; 248EcwidObj.ProductBrowser = { 249Links: new ep, 250CategoryView: proxyChain() 251}; 252EcwidObj.Controller = proxyChain(); 253EcwidObj.ShoppingCartController = proxyChain(); 254EcwidObj.ProductModel = proxyChain(); 255EcwidObj.CategoriesModel = proxyChain(); 256EcwidObj.CategoryModel = proxyChain(); 257EcwidObj.AppContainer = proxyChain(); 258EcwidObj.Profile = proxyChain(); 259EcwidObj.CustomerCredentialsModel = proxyChain(); 260EcwidObj.LocationHashModel = proxyChain();
261EcwidObj.OnAPILoaded = new ep; 262EcwidObj.OnCartChanged = new ep; 263EcwidObj.OnCartSynchronized = new ep; 264EcwidObj.OnConfigLoaded = new ep; 265EcwidObj.OnConsentChanged = new ep; 266EcwidObj.OnOrderPlaced = new ep; 267EcwidObj.OnPageLoad = new ep; 268EcwidObj.OnPageLoaded = new ep; 269EcwidObj.OnPageSwitch = new ep; 270EcwidObj.OnProductOptionsChanged = new ep; 271EcwidObj.OnSetProfile = new ep; 272EcwidObj.OnSubscriptionsChanged = new ep; 273EcwidObj.signature = "aa2dc8478e9bc968ee4ffe583a986526-0"; 274EcwidObj._isInteractiveEnabled = (function() { 275var cache = null; 276function _getLoadedScripts() { 277var loadedScripts = []; 278var fullPathLoadedScripts = []; 279var scripts = document.getElementsByTagName("script"); 280for (var i = 0; i < scripts.length; i++) { 281if (!scripts[i].src) { 282continue; 283} 284var scriptPath = scripts[i].src; 285if(typeof scriptPath === 'string') { 286pathGroups = scriptPath.match(/.*\/([^\/#?]+)[#?]?.*/); 287if (pathGroups && pathGroups.length > 1) { 288loadedScripts.push(pathGroups[1]); 289} 290fullPathLoadedScripts.push(scriptPath); 291} 292} 293return {"loadedScriptNames": loadedScripts, "fullPathLoadedScripts": fullPathLoadedScripts}; 294} 295function _getIncompatibleScript() { 296var scripts = _getLoadedScripts(); 297var loadedScriptNames = scripts.loadedScriptNames; 298var fullPathLoadedScripts = scripts.fullPathLoadedScripts; 299function isScriptLoadedByName(scriptName) { 300return loadedScriptNames.indexOf(scriptName) != -1; 301} 302function isScriptLoadedByPath(scriptNameWithPath) { 303for (var i in fullPathLoadedScripts) { 304var path = fullPathLoadedScripts[i] 305if (path.indexOf(scriptNameWithPath) != -1) { 306return true; 307} 308} 309return false; 310} 311var incompatibleScriptCheckFunctions = [ 312function checkForDdlevelsmenu() { 313var hasScript = isScriptLoadedByName("menu.js"); 314var hasPlugin = typeof ddlevelsmenu != "undefined"; 315if (hasScript && hasPlugin) { 316return "ddlevelsmenu"; 317} 318return null; 319}, 320function checkForMobmenu() { 321var hasScripts = isScriptLoadedByName("mobmenu.js"); 322if (hasScripts) { 323return "mobmenu"; 324} 325return null; 326}, 327function checkForPipdigBlossom() { 328var hasThemeStyle = document.querySelectorAll("link[rel='stylesheet'][id='pipdig-style-css'][href*='themes/pipdig-blossom/style.css']").length > 0; 329if (hasThemeStyle) { 330return "pipdig-blossom"; 331} 332return null; 333}, 334function checkForSkel() { 335var hasScripts = isScriptLoadedByName("skel-layers.min.js") || isScriptLoadedByName("skel-layers.js"); 336var hasPlugin = typeof skel != "undefined" && skel.hasOwnProperty('plugins') && skel.plugins.hasOwnProperty('layers'); 337if (hasScripts || hasPlugin) { 338return "skel-layers"; 339} 340return null; 341}, 342function checkForJPanelMenu() { 343var hasScripts = isScriptLoadedByName("jquery.jpanelmenu.min.js") || isScriptLoadedByName("jquery.jpanelmenu.js"); 344var hasPlugin = typeof jQuery != "undefined" && jQuery.hasOwnProperty('jPanelMenu') && typeof jQuery.jPanelMenu == "function"; 345if (hasScripts || hasPlugin) { 346return "jPanelMenu"; 347} 348return null; 349}, 350function checkForWeeblyUnresponsiveTheme() { 351var useUnresponsiveTheme = isScriptLoadedByName("main-mobile.js") && typeof Weebly != "undefined"; 352if (useUnresponsiveTheme) { 353return "weeblyUnresponsiveTheme"; 354} 355return null; 356}, 357function checkForArtisteer() { 358var badScriptLoaded = isScriptLoadedByName("script.responsive.js") && typeof responsiveDesign != "undefined"; 359if (badScriptLoaded) { 360return "Artisteer"; 361} 362return null; 363} 364]; 365for (var i = 0; i < incompatibleScriptCheckFunctions.length; i++) { 366try { 367var incompatibleScript = incompatibleScriptCheckFunctions[i](); 368if (incompatibleScript) { 369return incompatibleScript; 370} 371} catch (e) { 372console.error("Failed to check plugin is included: " + e.message); 373} 374} 375return null; 376} 377return function() { 378if (cache != null) { 379return cache; 380} 381cache = true; 382if (cache) { 383var incompatibleScript = _getIncompatibleScript(); 384if (incompatibleScript) { 385cache = false; 386EcwidLogger.log("Interactive was disabled by plugin or script " + incompatibleScript); 387} 388} 389if (((window.ec || {}).config || {}).interactive != undefined) { 390cache = !!window.ec.config.interactive; 391EcwidLogger.log("Interactive was explicitly overriden with value " + cache); 392} 393return cache; 394} 395})(); 396EcwidObj._isHoverMustBeDisabledOnDevice = function() { 397return ('ontouchstart' in window || !!(window.DocumentTouch && document instanceof DocumentTouch)) 398&& (typeof window.matchMedia == 'function' && !window.matchMedia('(pointer: fine)').matches && window.matchMedia('(hover: none)').matches); 399}; 400EcwidObj._injectEcwidCss = function() { 401var cssUrlAddition = ''; 402cssUrlAddition += window.css_selectors_prefix ? '&id-selector=' + encodeURIComponent(window.css_selectors_prefix) : ''; 403cssUrlAddition += EcwidObj._isHoverMustBeDisabledOnDevice() ? '&hover=disable' : ''; 404cssUrlAddition += '&frontendV2'; 405ChameleonIntegration = { 406getChameleonColors: function () { 407var colors = {};
408var parent = this.findAncestor(); 409if (!parent) { 410return colors; 411} 412var colorForeground = getComputedStyle(parent, null).color; 413if (colorForeground.replace(/ /g,"") != "rgba(0,0,0,0)" 414&& colorForeground != "transparent") { 415colors['color-foreground'] = colorForeground; 416colors['color-price'] = colors['color-foreground']; 417} 418var colorBackground = this.getBackground(parent); 419if (colorBackground.replace(/ /g,"") != "rgba(0,0,0,0)" 420&& colorBackground != "transparent") { 421colors['color-background'] = colorBackground; 422} else { 423colors['color-background'] = 'white'; 424} 425var colorLink = this.getLinkColor(parent); 426if (colorLink.replace(/ /g,"") != "rgba(0,0,0,0)" 427&& colorLink != "transparent") { 428colors['color-link'] = colorLink; 429} 430return colors; 431}, 432getChameleonFontFamily: function () { 433var font = {}; 434var parent = this.findAncestor(); 435if (!parent) { 436return font; 437} 438font['font-family'] = this.getStyle(parent, 'font-family'); 439return font; 440}, 441findAncestor: function () { 442var widgetTypes = ['ProductBrowser', 'SingleProduct', 'Product', 'Minicart', 'CategoriesV2', 'VCategories']; 443for (var i = 0; i < widgetTypes.length; ++i) { 444var productWidget = this.extractWidget(widgetTypes[i]); 445if (productWidget) { 446var widget = document.querySelector("#" + productWidget.id); 447return widget ? widget.parentNode : undefined; 448} 449} 450var nodes = document.getElementsByClassName('ec-cart-widget') 451if (nodes.length > 0) { 452return nodes[nodes.length - 1].parentNode; 453} 454return undefined; 455}, 456extractWidget: function (widgetType) { 457var widgets = window._xnext_initialization_scripts; 458if (!widgets) { 459return; 460} 461for (var i = widgets.length - 1; i >= 0; i--) { 462if (widgets[i].widgetType == widgetType) { 463return widgets[i]; 464} 465} 466}, 467getLinkColor: function (parent) { 468var a = document.createElement('a'); 469a.href = a.textContent = url = ''; 470parent.appendChild(a); 471var primary_link = document.defaultView.getComputedStyle(a, null).color; 472parent.removeChild(a); 473return primary_link; 474}, 475toCamelCase: function (s) { 476for (var exp = /-([a-z])/; exp.test(s); s = s.replace(exp, RegExp.$1.toUpperCase())); 477return s; 478}, 479getStyle: function (e, a) { 480var v = null; 481if (document.defaultView && document.defaultView.getComputedStyle) { 482var cs = document.defaultView.getComputedStyle(e, null); 483if (cs && cs.getPropertyValue) 484v = cs.getPropertyValue(a); 485} 486if (!v && e.currentStyle) 487v = e.currentStyle[this.toCamelCase(a)]; 488return v; 489}, 490getBackground: function (e) { 491var v = this.getStyle(e, 'background-color'); 492while (!v || v == 'transparent' || v == '#000000' || v == 'rgba(0, 0, 0, 0)') { 493if (e == document.documentElement) 494v = 'white'; 495else { 496e = e.parentNode; 497v = this.getStyle(e, 'background-color'); 498} 499} 500return v; 501} 502}; 503function isOnIframe() { 504return window.top.location != window.location; 505} 506function getAdditionalCssUrlParams(colors, valueLengthLimit) { 507var cssColorParams = ""; 508for (var key in colors) { 509if (colors.hasOwnProperty(key)) { 510var value = colors[key]; 511cssColorParams += "&" + encodeURIComponent(key) + "=" + encodeURIComponent(value.substring(0, valueLengthLimit)); 512} 513} 514return cssColorParams; 515} 516function isIOS13() { 517var ua = navigator.userAgent; 518var uaSimilarToIos = (/Version\/13/.test(ua) && (/iPad/.test(ua) || /iPod/.test(ua) || /iPhone/.test(ua) || /Intel Mac OS X/.test(ua))); 519var supportTouchEvents = 'ontouchstart' in window || !!(window.DocumentTouch && document instanceof DocumentTouch); 520return uaSimilarToIos && supportTouchEvents; 521} 522var colors; 523if (window.ec && window.ec.config && window.ec.config.chameleon && window.ec.config.chameleon.colors) { 524colors = window.ec.config.chameleon.colors; 525} 526// disable 'chameleon' if the page doesn't have additional styles (ECWID-26112) 527var countStyles = document.styleSheets.length; 528var noStyle = (countStyles == 0) || (countStyles == 1 && window.ecwid_loader_shown); 529var chameleonEnabled = false || true && !isOnIframe(); 530if ((!colors && chameleonEnabled || colors === "auto") && !noStyle) { 531colors = ChameleonIntegration.getChameleonColors(); 532} 533window.ec = window.ec || {}; 534window.ec.config = window.ec.config || {}; 535window.ec.config.chameleonDefaults = window.ec.config.chameleonDefaults || {}; 536window.ec.config.chameleonDefaults.gallery = window.ec.config.chameleonDefaults.gallery || {}; 537var valueLengthLimit; 538if (!!colors) { 539valueLengthLimit = 50; 540cssUrlAddition += getAdditionalCssUrlParams(colors, valueLengthLimit); 541window.ec.config.chameleonDefaults.colors = colors; 542} 543var font; 544if (window.ec && window.ec.config && window.ec.config.chameleon && window.ec.config.chameleon.font) { 545font = window.ec.config.chameleon.font; 546} 547if (!font && chameleonEnabled || font === "auto") { 548font = ChameleonIntegration.getChameleonFontFamily(); 549} 550if (isIOS13() && !/-apple-system/.test(font)) { 551if (!font) { 552font = {"font-family": "-apple-system"}; 553} else { 554font["font-family"] += ", -apple-system"; 555} 556} 557if (!!font) { 558valueLengthLimit = 150; 559var fontFamily = font["font-family"]; 560if (!!fontFamily) { 561var families = fontFamily.split(/,\s*/) 562var str = ""; 563var delimiter = ""; 564for (var i = 0; i < families.length; i++) { 565if (str.length + families[i].length + delimiter.length > valueLengthLimit) { 566break; 567} 568str += delimiter + families[i]; 569delimiter = ","; 570} 571cssUrlAddition += "&font-family="+encodeURIComponent(str); 572window.ec.config.chameleonDefaults.font = { "font-family": str }; 573} 574} 575var useExactColors; 576if (window.ec && window.ec.config && window.ec.config.chameleon && window.ec.config.chameleon.gallery && window.ec.config.chameleon.gallery.useExactColors) { 577useExactColors = window.ec.config.chameleon.gallery.useExactColors; 578} 579if (!useExactColors && chameleonEnabled) { 580useExactColors = false;
581} 582if (typeof useExactColors !== 'undefined') { 583if (useExactColors) { 584useExactColors = true; 585} else { 586useExactColors = false; 587} 588cssUrlAddition += "&useExactGalleryColors=" + useExactColors; 589} 590window.ec_legacyCssUrl = 'https://d1oxsl77a1kjht.cloudfront.net/css/new?hc=966228781&ownerid=1447232' + cssUrlAddition; 591var cssUrl = 'https://d1oxsl77a1kjht.cloudfront.net/css/new?hc=966228781&ownerid=1447232' + cssUrlAddition; 592var l = document.createElement('link'); 593l.onload = function() { 594try { 595const cssUrlObject = new URL(cssUrl); 596Array.from(document.getElementsByTagName('link')).forEach((linkEl) => { 597try { 598const linkElUrlObject = new URL(linkEl.href); 599if (linkElUrlObject.origin === cssUrlObject.origin && linkElUrlObject.pathname === cssUrlObject.pathname && linkEl !== l) { 600EcwidLogger.log("Remove not actual stylesheet link element"); 601linkEl.remove(); 602} 603} finally {} 604}); 605} finally {} 606}; 607l.setAttribute('rel', 'stylesheet'); 608l.setAttribute('href', cssUrl); 609document.getElementsByTagName('head')[0].appendChild(l); 610window.ec.cssLinkElement = l; 611} 612EcwidObj._isAllCssLoaded = function() { 613if (!true) { 614return false; 615} 616var styleLinks = document.getElementsByTagName('link'); 617for (var i = 0; i < styleLinks.length; i++) { 618var styleLink = styleLinks[i]; 619if (styleLink.rel !== 'stylesheet') continue; 620if (!!styleLink.customAppStyle) continue; 621if (!EcwidObj._styleLinkIsLoaded(styleLink)) { 622return false; 623} 624} 625EcwidLogger.log("CSS loaded: all css files exist in stylesheets"); 626return true; 627}; 628EcwidObj._styleLinkIsLoaded = function(styleLink) { 629var styleSheets = document.styleSheets; 630for (var i = 0; i < styleSheets.length; i++) { 631if (styleSheets[i].href === styleLink.href) { 632return true; 633} 634} 635return false; 636}; 637EcwidObj._documentReadyStateIsComplete = function() { 638var isComplete = /complete/.test(document.readyState); 639if (isComplete) { 640EcwidLogger.log("CSS loaded: document readyState is complete"); 641} 642return isComplete; 643}; 644EcwidObj._waitForCssLoaded = function(callback) { 645var ecwidCssLoadedTimer = setInterval(function() { 646try { 647if (EcwidObj._documentReadyStateIsComplete() || /interactive/.test(document.readyState) && EcwidObj._isAllCssLoaded()) { 648clearInterval(ecwidCssLoadedTimer); 649callback(); 650} 651} catch(e) { 652console.warn("waitForCssLoaded exception: " + e.message); 653} 654}, 10); 655}; 656EcwidObj._autoChameleonEnabled = function() { 657window.ec = window.ec || {}; 658window.ec.config = window.ec.config || {}; 659window.ec.config.chameleon = window.ec.config.chameleon || {}; 660var colors = window.ec.config.chameleon.colors; 661var chameleonEnabled = false || true && !isOnIframe(); 662if (!colors && chameleonEnabled || colors === "auto") { 663return true; 664} 665var font = window.ec.config.chameleon.font; 666if (!font && chameleonEnabled || font === "auto") { 667return true; 668} 669return false; 670}; 671EcwidObj._loadEcwidCss = function() { 672var ecwidCssLoaded = !!window.ec.cssLinkElement; 673if (ecwidCssLoaded) { 674return; 675} 676if (EcwidObj._isInteractiveEnabled() && EcwidObj._autoChameleonEnabled()) { 677EcwidObj._waitForCssLoaded(function() { 678EcwidObj._injectEcwidCss(); 679}); 680} else { 681EcwidObj._injectEcwidCss(); 682} 683}; 684EcwidObj._unloadEcwidCss = function() { 685if (window.ec && window.ec.cssLinkElement) { 686window.ec.cssLinkElement.parentNode.removeChild(window.ec.cssLinkElement); 687delete window.ec.cssLinkElement; 688} 689}; 690EcwidObj._loadEcwidAsync = function() { 691setTimeout(function() { 692EcwidObj._onBodyDone(); 693EcwidObj._onComplete(); 694}, 10); 695}; 696EcwidObj._loadEcwidSync = function() { 697if (document.addEventListener) { 698document.addEventListener("DOMContentLoaded", function() { 699EcwidObj._onBodyDone(); 700}, false); 701} 702window.ecwid_onBodyDoneTimerId = setInterval(function() { 703if (/loaded|complete/.test(document.readyState)) { 704EcwidObj._onBodyDone(); 705} 706}, 50); 707document.onreadystatechange = function () { 708if (document.readyState === "complete") { 709EcwidObj._onComplete(); 710} 711} 712}; 713EcwidObj._hasFacebookIframe = function() { 714return window.location.href.match(/fb_xd_fragment/g); 715}; 716EcwidObj._isStorefrontV2 = function() { 717return true; 718}; 719EcwidObj._showPBLoader = function(id) { 720var html; 721html = '<style>\ 722\ 723/* PB placeholder */\ 724\ 725.ecwid-pb-placeholder {\ 726box-sizing: border-box;\ 727opacity: 0;\ 728min-height: 400px;\ 729padding-top: 1px;\ 730}\ 731\ 732.ecwid-pb-placeholder > div {\ 733box-sizing: border-box;\ 734}\ 735\ 736.ecwid-pb-placeholder--light,\ 737.ecwid-pb-placeholder--dark {\ 738opacity: 1;\ 739}\ 740\ 741.ecwid-pb-placeholder__grid {\ 742overflow: hidden;\ 743width: 100%;\ 744max-width: 786px;\ 745height: 280px;\ 746margin: 35px auto 50px;\ 747text-align: center;\ 748transition: opacity .15s ease-in-out;\ 749}\ 750\ 751.ecwid-pb-placeholder__wrap {\ 752margin-right: -30px;\ 753margin-left: -30px;\ 754}\ 755\ 756.ecwid-pb-placeholder__grid-cell {\ 757display: inline-block;\ 758width: 282px;\ 759height: 280px;\ 760line-height: 280px;\ 761white-space: nowrap;\ 762}\ 763\ 764.ecwid-pb-placeholder__product {\ 765width: 222px;\ 766height: 222px;\ 767margin: 0 auto;\ 768padding: 0;\ 769}\ 770\ 771.ecwid-pb-placeholder__title {\ 772max-width: 222px;\ 773margin: 12px auto;\ 774padding: 0;\ 775}\ 776\ 777.ecwid-pb-placeholder__title > div {\ 778height: 7px;\ 779margin: 12px auto;\ 780padding: 0;\ 781}\ 782\ 783.ecwid-pb-placeholder__title >
783 div:nth-child(3) {\ 784max-width: 100px;\ 785}\ 786\ 787/* PB placeholder light */\ 788\ 789.ecwid-pb-placeholder--light .ecwid-pb-placeholder__grid-cell .ecwid-pb-placeholder__product,\ 790.ecwid-pb-placeholder--light .ecwid-pb-placeholder__grid-cell .ecwid-pb-placeholder__title > div {\ 791background-color: rgba(0, 0, 0, .03);\ 792}\ 793\ 794.ecwid-pb-placeholder--light.ecwid-pb-placeholder--animate .ecwid-pb-placeholder__grid-cell:nth-child(1) .ecwid-pb-placeholder__product {\ 795animation: pb-flash-light 800ms ease-in-out 0ms infinite;\ 796}\ 797\ 798.ecwid-pb-placeholder--light.ecwid-pb-placeholder--animate .ecwid-pb-placeholder__grid-cell:nth-child(1) .ecwid-pb-placeholder__title > div {\ 799animation: pb-flash-light 800ms ease-in-out 83ms infinite;\ 800}\ 801\ 802.ecwid-pb-placeholder--light.ecwid-pb-placeholder--animate .ecwid-pb-placeholder__grid-cell:nth-child(2) .ecwid-pb-placeholder__product {\ 803animation: pb-flash-light 800ms ease-in-out 167ms infinite;\ 804}\ 805\ 806.ecwid-pb-placeholder--light.ecwid-pb-placeholder--animate .ecwid-pb-placeholder__grid-cell:nth-child(2) .ecwid-pb-placeholder__title > div {\ 807animation: pb-flash-light 800ms ease-in-out 250ms infinite;\ 808}\ 809\ 810.ecwid-pb-placeholder--light.ecwid-pb-placeholder--animate .ecwid-pb-placeholder__grid-cell:nth-child(3) .ecwid-pb-placeholder__product {\ 811animation: pb-flash-light 800ms ease-in-out 333ms infinite;\ 812}\ 813\ 814.ecwid-pb-placeholder--light.ecwid-pb-placeholder--animate .ecwid-pb-placeholder__grid-cell:nth-child(3) .ecwid-pb-placeholder__title > div {\ 815animation: pb-flash-light 800ms ease-in-out 416ms infinite;\ 816}\ 817\ 818/* PB placehoder dark */\ 819\ 820.ecwid-pb-placeholder--dark .ecwid-pb-placeholder__grid-cell .ecwid-pb-placeholder__product,\ 821.ecwid-pb-placeholder--dark .ecwid-pb-placeholder__grid-cell .ecwid-pb-placeholder__title > div {\ 822background-color: rgba(255, 255, 255, .1);\ 823}\ 824\ 825.ecwid-pb-placeholder--dark.ecwid-pb-placeholder--animate .ecwid-pb-placeholder__grid-cell:nth-child(1) .ecwid-pb-placeholder__product {\ 826animation: pb-flash-dark 800ms ease-in-out 0ms infinite;\ 827}\ 828\ 829.ecwid-pb-placeholder--dark.ecwid-pb-placeholder--animate .ecwid-pb-placeholder__grid-cell:nth-child(1) .ecwid-pb-placeholder__title > div {\ 830animation: pb-flash-dark 800ms ease-in-out 83ms infinite;\ 831}\ 832\ 833.ecwid-pb-placeholder--dark.ecwid-pb-placeholder--animate .ecwid-pb-placeholder__grid-cell:nth-child(2) .ecwid-pb-placeholder__product {\ 834animation: pb-flash-dark 800ms ease-in-out 167ms infinite;\ 835}\ 836\ 837.ecwid-pb-placeholder--dark.ecwid-pb-placeholder--animate .ecwid-pb-placeholder__grid-cell:nth-child(2) .ecwid-pb-placeholder__title > div {\ 838animation: pb-flash-dark 800ms ease-in-out 250ms infinite;\ 839}\ 840\ 841.ecwid-pb-placeholder--dark.ecwid-pb-placeholder--animate .ecwid-pb-placeholder__grid-cell:nth-child(3) .ecwid-pb-placeholder__product {\ 842animation: pb-flash-dark 800ms ease-in-out 333ms infinite;\ 843}\ 844\ 845.ecwid-pb-placeholder--dark.ecwid-pb-placeholder--animate .ecwid-pb-placeholder__grid-cell:nth-child(3) .ecwid-pb-placeholder__title > div {\ 846animation: pb-flash-dark 800ms ease-in-out 416ms infinite;\ 847}\ 848\ 849@keyframes pb-flash-light {\ 8500% { background-color: rgba(0, 0, 0, .03); }\ 85130% { background-color: rgba(0, 0, 0, .047); }\ 852100% { background-color: rgba(0, 0, 0, .03); }\ 853}\ 854\ 855@keyframes pb-flash-dark {\ 8560% { background-color: rgba(255, 255, 255, .06); }\ 85730% { background-color: rgba(255, 255, 255, .1); }\ 858100% { background-color: rgba(255, 255, 255, .06); }\ 859}\ 860</style>\ 861\ 862<div class="ecwid-pb-placeholder" id="ecwidStorefrontPlaceholder">\ 863<div class="ecwid-pb-placeholder__grid">\ 864<div class="ecwid-pb-placeholder__wrap">\ 865<div class="ecwid-pb-placeholder__grid-cell">\ 866<div class="ecwid-pb-placeholder__product"></div><div class="ecwid-pb-placeholder__title"><div></div><div></div><div></div></div>\ 867</div><div class="ecwid-pb-placeholder__grid-cell">\ 868<div class="ecwid-pb-placeholder__product"></div><div class="ecwid-pb-placeholder__title"><div></div><div></div><div></div></div>\ 869</div><div class="ecwid-pb-placeholder__grid-cell">\ 870<div class="ecwid-pb-placeholder__product"></div><div class="ecwid-pb-placeholder__title"><div></div><div></div><div></div></div>\ 871</div>\ 872</div>\ 873</div><div class="ecwid-pb-placeholder__grid">\ 874<div class="ecwid-pb-placeholder__wrap">\ 875<div class="ecwid-pb-placeholder__grid-cell">\ 876<div class="ecwid-pb-placeholder__product"></div><div class="ecwid-pb-placeholder__title"><div></div><div></div><div></div></div>\ 877</div><div class="ecwid-pb-placeholder__grid-cell">\ 878<div class="ecwid-pb-placeholder__product"></div><div class="ecwid-pb-placeholder__title"><div></div><div></div><div></div></div>\ 879</div><div class="ecwid-pb-placeholder__grid-cell">\ 880<div class="ecwid-pb-placeholder__product"></div><div class="ecwid-pb-placeholder__title"><div></div><div></div><div></div></div>\ 881</div>\ 882</div>\ 883</div>\ 884</div>'; 885var element = document.createElement("div") 886element.innerHTML = html; 887var e = document.getElementById(id); 888if (e) { 889e.appendChild(element); 890} 891(function() { 892var getRGB = function(b){ 893var a; 894if (b && b.constructor==Array && b.length==3) 895return b; 896if (a=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(b)) 897return [parseInt(a[1]),parseInt(a[2]),parseInt(a[3])]; 898if (a=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(b)) 899return [parseFloat(a[1])*2.55,parseFloat(a[2])*2.55,parseFloat(a[3])*2.55]; 900if (a=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(b)) 901return [parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]; 902if (a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(b)) 903return [parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]; 904return false;
905} 906var getLuminance = function(color){ 907var rgb = getRGB(color); 908return (rgb) ? 0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2] : false; 909} 910var getBackgroundColor = function(el){ 911var bg = getStyle(el, 'background-color'); 912while (!bg || bg == 'transparent' || bg == 'rgba(0, 0, 0, 0)'){ 913if (el == document.body) 914bg = '#fff'; 915else { 916el = el.parentNode; 917bg = getStyle(el, 'background-color'); 918} 919} 920return bg; 921} 922var isDark = function(el){ 923var color = getStyle(el, 'color'); 924var bg = getBackgroundColor(el); 925return (getLuminance(color) > getLuminance(bg)) ? true : false; 926} 927var getStyle = function(el, cssRule){ 928var val = ''; 929if(document.defaultView && document.defaultView.getComputedStyle){ 930val = document.defaultView.getComputedStyle(el, '').getPropertyValue(cssRule); 931} 932else if(el.currentStyle){ 933cssRule = cssRule.replace(/\-(\w)/g, function (m, p){ 934return p.toUpperCase(); 935}); 936val = el.currentStyle[cssRule]; 937} 938return val; 939} 940var placeholder = document.querySelector('.ecwid-pb-placeholder'), 941grid = placeholder.querySelector('.ecwid-pb-placeholder__grid'), 942skin = (isDark(grid)) ? 'ecwid-pb-placeholder--dark' : 'ecwid-pb-placeholder--light'; 943placeholder.className += ' ecwid-pb-placeholder--animate '+ skin; 944})(); }; 945EcwidObj._onBodyDone = function() { 946if ((!window.ecwid_bodyDone && !EcwidObj._hasFacebookIframe() && !window.ecwid_dynamic_widgets) || window.ecwid_dynamic_widgets && !window.ecwid_bodyDone) { 947window.ecwid_bodyDone = true; 948EcwidObj._loadEcwidCss(); 949// ========================= STUBBED NOCACHE BEGIN ========================= 950ru_cdev_xnext_frontend_LegacyFrontend=function(){var U='bootstrap',V='begin',W='gwt.codesvr.ru.cdev.xnext.frontend.LegacyFrontend=',X='gwt.codesvr=',Y='ru.cdev.xnext.frontend.LegacyFrontend',Z='startup',$='DUMMY',_=0,ab=1,bb='iframe',cb='fitvidsignore',db='position:absolute; width:0; height:0; border:none; left: -1000px;',eb=' top: -1000px;',fb='CSS1Compat',gb='<!doctype html>',hb='',ib='<html><head><\/head><body><\/body><\/html>',jb='undefined',kb='readystatechange',lb=10,mb='script',nb='function',ob='javascript',pb='ru_cdev_xnext_frontend_LegacyFrontend',qb='Failed to load ',rb='moduleStartup',sb='scriptTagAdded',tb='moduleRequested',ub='meta',vb='name',wb='ru.cdev.xnext.frontend.LegacyFrontend::',xb='::',yb='gwt:property',zb='content',Ab='=',Bb='gwt:onPropertyErrorFn',Cb='Bad handler "',Db='" for "gwt:onPropertyErrorFn"',Eb='gwt:onLoadErrorFn',Fb='" for "gwt:onLoadErrorFn"',Gb='#',Hb='?',Ib='/',Jb='img',Kb='clear.cache.gif',Lb='baseUrl',Mb='ru.cdev.xnext.frontend.LegacyFrontend.nocache.js',Nb='base',Ob='//',Pb='user.agent',Qb='webkit',Rb='safari',Sb='msie',Tb=11,Ub='iemobile/10',Vb='ie10',Wb=9,Xb='ie9',Yb='msie 6.',Zb='msie 7.',$b=8,_b='ie8',ac='gecko',bc='opera',cc='gecko1_8',dc=2,ec=3,fc=4,gc='selectingPermutation',hc='ru.cdev.xnext.frontend.LegacyFrontend.devmode.js',ic='8A9EFBBD3CD14BF36EE37C4FA957B798',jc='A4D1972130173449268D159FE602A93D',kc='AC53EAC683DCDEF5AFD618BFF06148EC',lc='D786ACE0D041D582E5BC032D71D5E8D1',mc='F8054F4E8C56B5A5F0810C71521A8201',nc=':',oc='.cache.js',pc='loadExternalRefs',qc='end',rc='http:',sc='https:',tc='file:',uc='_gwt_dummy_',vc='__gwtDevModeHook:ru.cdev.xnext.frontend.LegacyFrontend',wc='Ignoring non-whitelisted Dev Mode URL: ',xc=':moduleBase',yc='head',zc=500,Ac='src',Bc=30,Cc=300,Dc=100,Ec='ecwid-loadingIndicator-cursor',Fc='style';var o;var p=window;var q=document;s(U,V);function r(){var a=p.location.search;return a.indexOf(W)!=-1||a.indexOf(X)!=-1} 951function s(a,b){if(p.__gwtStatsEvent){p.__gwtStatsEvent({moduleName:Y,sessionId:p.__gwtStatsSessionId,subSystem:Z,evtGroup:a,millis:(new Date).getTime(),type:b})}} 952ru_cdev_xnext_frontend_LegacyFrontend.__sendStats=s;ru_cdev_xnext_frontend_LegacyFrontend.__moduleName=Y;ru_cdev_xnext_frontend_LegacyFrontend.__errFn=null;ru_cdev_xnext_frontend_LegacyFrontend.__moduleBase=$;ru_cdev_xnext_frontend_LegacyFrontend.__softPermutationId=_;ru_cdev_xnext_frontend_LegacyFrontend.__computePropValue=null;ru_cdev_xnext_frontend_LegacyFrontend.__getPropMap=null;ru_cdev_xnext_frontend_LegacyFrontend.__installRunAsyncCode=function(){};ru_cdev_xnext_frontend_LegacyFrontend.__gwtStartLoadingFragment=function(){return null};ru_cdev_xnext_frontend_LegacyFrontend.__gwt_isKnownPropertyValue=function(){return false};ru_cdev_xnext_frontend_LegacyFrontend.__gwt_getMetaProperty=function(){return null};var t=null;var u=p.__gwt_activeModules=p.__gwt_activeModules||{};u[Y]={moduleName:Y};ru_cdev_xnext_frontend_LegacyFrontend.__moduleStartupDone=function(e){var f=u[Y].bindings;u[Y].bindings=function(){var a=f?f():{};var b=e[ru_cdev_xnext_frontend_LegacyFrontend.__softPermutationId];for(var c=_;c<b.length;c++){var d=b[c];a[d[_]]=d[ab]}return a}};var v;function w(){B();return v} 953function A(){v=null} 954function B(){if(v){return}var a=q.createElement(bb);a.id=Y;a.className=cb;a.style.cssText=db+eb;a.tabIndex=-1;q.body.appendChild(a);v=a.contentWindow.document;v.open();var b=document.compatMode==fb?gb:hb;v.write(b+ib);v.close()}
955function C(f){function g(a){function b(){if(typeof q.readyState==jb){return typeof q.body!=jb&&q.body!=null}return /loaded|complete/.test(q.readyState)} 956var c=b();if(c){a();return}function d(){if(!c){if(!b()){return}c=true;a();if(q.removeEventListener){q.removeEventListener(kb,d,false)}if(e){clearInterval(e)}}} 957if(q.addEventListener){q.addEventListener(kb,d,false)}var e=setInterval(function(){d()},lb)} 958function h(a){var b=w();var c=b.body;var d=b.createElement(mb);if(typeof ecwid_addCspNonceToScript===nb){ecwid_addCspNonceToScript(d)}d.language=ob;d.src=a;if(ru_cdev_xnext_frontend_LegacyFrontend.__errFn){d.onerror=function(){ru_cdev_xnext_frontend_LegacyFrontend.__errFn(pb,new Error(qb+a))}}c.appendChild(d);s(rb,sb)} 959s(rb,tb);g(function(){h(f)})} 960function D(e){function f(a){var b=w();var c=b.body;var d=b.createElement(mb);d.language=ob;d.src=a;d.async=true;if(ru_cdev_xnext_frontend_LegacyFrontend.__errFn){d.onerror=function(){ru_cdev_xnext_frontend_LegacyFrontend.__errFn(pb,new Error(qb+a))}}c.appendChild(d);s(rb,sb)} 961s(rb,tb);f(e)} 962ru_cdev_xnext_frontend_LegacyFrontend.__startLoadingFragment=function(a){return H(a)};ru_cdev_xnext_frontend_LegacyFrontend.__installRunAsyncCode=function(a){var b=w();var c=b.body;var d=b.createElement(mb);if(typeof ecwid_addCspNonceToScript===nb){ecwid_addCspNonceToScript(d)}d.language=ob;d.text=a;c.appendChild(d);c.removeChild(d)};function F(){var c={};var d;var e;var f=q.getElementsByTagName(ub);for(var g=_,h=f.length;g<h;++g){var j=f[g],k=j.getAttribute(vb),l;if(k){k=k.replace(wb,hb);if(k.indexOf(xb)>=_){continue}if(k==yb){l=j.getAttribute(zb);if(l){var m,n=l.indexOf(Ab);if(n>=_){k=l.substring(_,n);m=l.substring(n+ab)}else{k=l;m=hb}c[k]=m}}else if(k==Bb){l=j.getAttribute(zb);if(l){try{d=eval(l)}catch(a){alert(Cb+l+Db)}}}else if(k==Eb){l=j.getAttribute(zb);if(l){try{e=eval(l)}catch(a){alert(Cb+l+Fb)}}}}}__gwt_getMetaProperty=function(a){var b=c[a];return b==null?null:b};t=d;ru_cdev_xnext_frontend_LegacyFrontend.__errFn=e} 963function G(){if(window.ecwid_script_base){o=window.ecwid_script_base;return o}function e(a){var b=a.lastIndexOf(Gb);
963if(b==-1){b=a.length}var c=a.indexOf(Hb);if(c==-1){c=a.length}var d=a.lastIndexOf(Ib,Math.min(c,b));return d>=_?a.substring(_,d+ab):hb} 964function f(a){if(a.match(/^\w+:\/\//)){}else{var b=q.createElement(Jb);b.src=a+Kb;a=e(b.src)}return a} 965function g(){var a=__gwt_getMetaProperty(Lb);if(a!=null){return a}return hb} 966function h(){var a=q.getElementsByTagName(mb);for(var b=_;b<a.length;++b){if(a[b].src.indexOf(Mb)!=-1){return e(a[b].src)}}return hb} 967function j(){var a=q.getElementsByTagName(Nb);if(a.length>_){return a[a.length-ab].href}return hb} 968function k(){var a=q.location;return a.href==a.protocol+Ob+a.host+a.pathname+a.search+a.hash} 969var l=g();if(l==hb){l=h()}if(l==hb){l=j()}if(l==hb&&k()){l=e(q.location.href)}l=f(l);return l} 970function H(a){if(a.match(/^\//)){return a}if(a.match(/^[a-zA-Z]+:\/\//)){return a}return ru_cdev_xnext_frontend_LegacyFrontend.__moduleBase+a} 971function I(){var f=[];var g=_;function h(a,b){var c=f;for(var d=_,e=a.length-ab;d<e;++d){c=c[a[d]]||(c[a[d]]=[])}c[a[e]]=b} 972var j=[];var k=[];function l(a){var b=k[a](),c=j[a];if(b in c){return b}var d=[];for(var e in c){d[c[e]]=e}if(t){t(a,d,b)}throw null} 973k[Pb]=function(){var a=navigator.userAgent.toLowerCase();var b=q.documentMode;if(function(){return a.indexOf(Qb)!=-1}())return Rb;if(function(){return a.indexOf(Sb)!=-1&&(b>=lb&&b<Tb)||a.indexOf(Ub)!=-1}())return Vb;if(function(){return a.indexOf(Sb)!=-1&&(b>=Wb&&b<Tb)}())return Xb;if(function(){return a.indexOf(Yb)!=-1||(a.indexOf(Zb)!=-1||a.indexOf(Sb)!=-1&&(b>=$b&&b<Tb))}())return _b;if(function(){return a.indexOf(ac)!=-1||(b>=Tb||a.indexOf(bc)!=-1)}())return cc;return Rb};j[Pb]={'gecko1_8':_,'ie10':ab,'ie8':dc,'ie9':ec,'safari':fc};__gwt_isKnownPropertyValue=function(a,b){return b in j[a]};ru_cdev_xnext_frontend_LegacyFrontend.__getPropMap=function(){var a={};for(var b in j){if(j.hasOwnProperty(b)){a[b]=l(b)}}return a};ru_cdev_xnext_frontend_LegacyFrontend.__computePropValue=l;p.__gwt_activeModules[Y].bindings=ru_cdev_xnext_frontend_LegacyFrontend.__getPropMap;s(U,gc);if(r()){return H(hc)}var m;try{h([cc],ic);h([Rb],jc);h([_b],kc);h([Vb],lc);h([Xb],mc);m=f[l(Pb)];var n=m.indexOf(nc);if(n!=-1){g=parseInt(m.substring(n+ab),lb);m=m.substring(_,n)}}catch(a){}ru_cdev_xnext_frontend_LegacyFrontend.__softPermutationId=g;return H(m+oc)} 974function J(){if(!p.__gwt_stylesLoaded){p.__gwt_stylesLoaded={}}s(pc,V);s(pc,qc)} 975F();ru_cdev_xnext_frontend_LegacyFrontend.__moduleBase=G();u[Y].moduleBase=ru_cdev_xnext_frontend_LegacyFrontend.__moduleBase;var K=I();if(p){var L=!!(p.location.protocol==rc||(p.location.protocol==sc||p.location.protocol==tc));p.__gwt_activeModules[Y].canRedirect=L;function M(){var b=uc;try{p.sessionStorage.setItem(b,b);p.sessionStorage.removeItem(b);return true}catch(a){return false}} 976if(L&&M()){var N=vc;var O=p.sessionStorage[N];if(!/^https:\/\/\w+.local.ecwid.com(:\d+)?\/.*$/.test(O)){if(O&&(window.console&&console.log)){console.log(wc+O)}O=hb}if(O&&!p[N]){p[N]=true;p[N+xc]=G();var P=q.createElement(mb);P.src=O;var Q=q.getElementsByTagName(yc)[_];Q.insertBefore(P,Q.firstElementChild||Q.children[_]);return false}}}J();s(U,qc);function R(b){var c=zc;var d=setInterval(function(){if(!c){clearInterval(d)}else{var a=document.getElementById(ru_cdev_xnext_frontend_LegacyFrontend.__moduleName).contentWindow.document.getElementsByTagName(mb);if(a.length!==_&&a[_].hasAttribute(Ac)){clearInterval(d);b()}c--}},Bc)} 977function S(b){var c=Cc;var d=setInterval(function(){if(!c){clearInterval(d)}else{var a=document.getElementById(ru_cdev_xnext_frontend_LegacyFrontend.__moduleName).contentWindow.document.getElementsByTagName(mb);if(a.length===_||!a[_].hasAttribute(Ac)){clearInterval(d);b()}c--}},Dc)} 978function T(){document.getElementById(ru_cdev_xnext_frontend_LegacyFrontend.__moduleName).remove();var b=document.getElementsByClassName(Ec);if(b[_]!==undefined){b[_].remove()}A();for(i=_;i<window._xnext_initialization_scripts.length;i++){var c=window._xnext_initialization_scripts[i];var d=c.id;var e=c.arg;var f=parseStyle(e);if(d&&document.getElementById(d)){var g=document.getElementById(d);while(g.hasChildNodes()){g.removeChild(g.firstChild)}g.setAttribute(Fc,f);try{g.style.cssText=f}catch(a){}}}D(K)} 979if(window.needLoadEcwidAsync){D(K);if(!!window.allowGWTAppResurrection){R(function(){S(function(){T()})})}}else{C(K)}return true} 980ru_cdev_xnext_frontend_LegacyFrontend.succeeded=ru_cdev_xnext_frontend_LegacyFrontend(); 981// ========================= STUBBED NOCACHE END =========================== 982if (!EcwidObj._isInteractiveEnabled()) { 983EcwidObj._legacyAfterBodyDone(); 984} 985} 986}; 987EcwidObj._onComplete = function() { 988setTimeout(function() { 989function getAppsData() { 990return [ 991{ 992namespace: 'kliken-stats', 993cssUrl: null, 994jsUrl: 'https://analytics.sitewit.com/ecwid.plugin.js', 995asyncJs: true 996}, 997]; 998} 999function filterEnabledApps(appsData) { 1000return EcwidObj._filter(appsData, function(appData) { 1001return EcwidObj._isAppEnabled(appData.namespace) 1002}); 1003} 1004function filterAppsWithCssUrl(appsData) { 1005return EcwidObj._filter(appsData, function(appData) { 1006return !!appData.cssUrl 1007}); 1008} 1009function filterAppsWithJsUrl(appsData) { 1010return EcwidObj._filter(appsData, function(appData) { 1011return !!appData.jsUrl 1012}); 1013} 1014function attachAppStylesheets(cssUrl) { 1015var head = getHeadTag(); 1016var link = document.createElement('link'); 1017link.setAttribute("rel", "stylesheet"); 1018link.setAttribute("type", "text/css"); 1019link.setAttribute("href", cssUrl); 1020link.customAppStyle = true; 1021head.appendChild(link); 1022} 1023function attachAllAppsStylesheets() { 1024var appsWithCssUrl = filterAppsWithCssUrl(getAppsData()); 1025var enabledAppsWithCssUrl = filterEnabledApps(appsWithCssUrl);
1026EcwidObj._forEach(enabledAppsWithCssUrl, function(appData) { 1027attachAppStylesheets(appData.cssUrl); 1028}) 1029} 1030function attachAppScript(scriptUrl, async) { 1031var head = getHeadTag(); 1032var script = document.createElement('script'); 1033script.setAttribute("data-cfasync", "false"); 1034script.setAttribute("src", scriptUrl); 1035if (async) { 1036script.setAttribute("async", ""); 1037} 1038head.appendChild(script); 1039} 1040function attachAllAppsScripts() { 1041var appsWithJsUrl = filterAppsWithJsUrl(getAppsData()); 1042var enabledAppsWithJsUrl = filterEnabledApps(appsWithJsUrl); 1043EcwidObj._forEach(enabledAppsWithJsUrl, function(appData) { 1044attachAppScript(appData.jsUrl, appData.asyncJs); 1045}); 1046EcwidLogger.log('Installed apps ' + EcwidObj._map(appsWithJsUrl, function(appData) { return appData.namespace; } )); 1047EcwidLogger.log('Enabled apps ' + EcwidObj._map(enabledAppsWithJsUrl, function(appData) { return appData.namespace; } )); 1048} 1049const isNavigationStartedFromStorefrontV3App = window.getEcwidV3Object() !== undefined; 1050if (!isNavigationStartedFromStorefrontV3App) { 1051if (!EcwidObj.appsStylesheetsAttached) { 1052attachAllAppsStylesheets(); 1053EcwidObj.appsStylesheetsAttached = true; 1054} 1055if (!EcwidObj.appsScriptsAttached) { 1056attachAllAppsScripts(); 1057EcwidObj.appsScriptsAttached = true; 1058} 1059} 1060}, 0); 1061}; 1062EcwidObj._legacyAfterBodyDone = function() { 1063window.ecwid_script_defer = true; 1064if (document.removeEventListener) { 1065document.removeEventListener("DOMContentLoaded", EcwidObj._onBodyDone, false); 1066} 1067if (window.ecwid_onBodyDoneTimerId) { 1068clearInterval(window.ecwid_onBodyDoneTimerId); 1069} 1070}; 1071EcwidObj._isIos = function() { 1072return navigator.userAgent.match(/(iPod|iPhone|iPad)/) != null; 1073}; 1074EcwidObj._fixIosIframeBlur = function() { 1075document.body.addEventListener("touchstart", function () { 1076var ae = document.activeElement; 1077if (ae && ae.tagName.toLowerCase() === "iframe") { 1078ae.blur(); 1079} 1080}); 1081window.addEventListener("message", function (event) { 1082var ae = document.activeElement; 1083if ( 1084event.data === "iosIframeFocus" 1085&& ae 1086&& ae.tagName.toLowerCase() !== "iframe" 1087) { 1088ae.blur(); 1089} 1090}, false); 1091}; 1092EcwidObj._getDisabledAppsSetting = (function () { 1093var calculated = false; 1094var calculationResult = []; 1095return function () { 1096if (!calculated) { 1097if (!EcwidUtils.localStorageSupported()) { 1098calculationResult = []; 1099} else { 1100var disabledApps = window.localStorage.getItem('ec_disabled_apps'); 1101if (disabledApps === null 1102|| disabledApps === 'none' 1103|| disabledApps === '') { 1104calculationResult = []; 1105} else if (disabledApps === 'all') { 1106calculationResult = 'all'; 1107} else { 1108try { 1109calculationResult = JSON.parse(disabledApps); 1110} catch (e) { 1111console.error(e); 1112} 1113} 1114} 1115calculated = true; 1116} 1117return calculationResult; 1118} 1119})(); 1120EcwidObj._isAppEnabled = function (namespace) { 1121var disabledAppSetting = EcwidObj._getDisabledAppsSetting(); 1122if (disabledAppSetting === 'all') { 1123return false; 1124} else if (Object.prototype.toString.call(disabledAppSetting) === '[object Array]') { 1125return disabledAppSetting.indexOf(namespace) == -1; 1126} 1127return true; 1128}; 1129EcwidObj._filter = function (arr, fn) { 1130var result = []; 1131for (var i = 0, len = arr.length; i < len; i++) { 1132if (fn(arr[i])) { 1133result.push(arr[i]); 1134} 1135} 1136return result; 1137}; 1138EcwidObj._map = function(arr, fn) { 1139var result = []; 1140for (var i = 0, len = arr.length; i < len; i++) { 1141result.push(fn(arr[i])); 1142} 1143return result; 1144}; 1145EcwidObj._forEach = function(arr, fn) { 1146for (var i = 0, len = arr.length; i < len; i++) { 1147fn(arr[i]); 1148} 1149}; 1150var EcwidUtils = (function () { 1151var localStorageTested = false; 1152var localStorageTestResult = false;
1153function localStorageSupported() { 1154if (!localStorageTested) { 1155var c = '_ec_dummy_'; 1156try { 1157window.localStorage.setItem(c, c); 1158window.localStorage.removeItem(c); 1159localStorageTestResult = true; 1160} catch (e) { 1161localStorageTestResult = false; 1162} 1163localStorageTested = true; 1164} 1165return localStorageTestResult; 1166} 1167return { 1168localStorageSupported: localStorageSupported 1169}; 1170})(); 1171var EcwidLogger = (function () { 1172function _needToShowLog() { 1173if ( 1174EcwidUtils.localStorageSupported() 1175&& window.localStorage.getItem("show_ec_logs") === "true" 1176) { 1177return true; 1178} 1179return false; 1180} 1181function log(logString) { 1182if (_needToShowLog()) { 1183console.log(logString); 1184} 1185} 1186return { 1187log: log, 1188}; 1189})(); 1190if (EcwidObj._isIos()) { 1191EcwidObj._fixIosIframeBlur(); 1192} 1193window.ecwid_onBodyDoneTimerId = null; 1194window.ecwid_bodyDone = false; 1195window.ecwid_onBodyDone = EcwidObj._onBodyDone; 1196window.needLoadEcwidAsync = EcwidObj._isInteractiveEnabled(); //need for async loading in gwt library 1197window.allowGWTAppResurrection = false; 1198xInjectJs('https://d3dq8sxcny4hg.cloudfront.net/states.js?version=2024-40662-g83adb470c10934&callback=window.ecwid_states_data.loaded'); 1199if (window.top != window && document.referrer) { 1200var hash_position = document.referrer.lastIndexOf('#!/'); 1201if (hash_position == -1) { 1202// compatibility with old hashes 1203// TODO: remove it 1204hash_position = document.referrer.lastIndexOf('#ecwid:'); 1205} 1206if (hash_position != -1) { 1207var hash = document.referrer.substr(hash_position); 1208var loc = window.location.href; 1209if (loc.indexOf('#') == -1) window.location.replace(loc + hash); 1210else { 1211if (loc.substr(loc.indexOf('#')) != hash) window.location.replace(loc.substr(0, loc.indexOf('#')) + hash); 1212} 1213} 1214if (typeof ecwid_history_token != 'undefined') { 1215var loc = window.location.href; 1216if(hash_position != -1) 1217window.location.replace(loc.substr(0, loc.indexOf('#')) + ecwid_history_token); 1218else 1219window.location.replace(loc + '#' + ecwid_history_token); 1220} 1221} 1222if (!window.css_selectors_prefix) { 1223window.css_selectors_prefix = ""; 1224if (!window.ecwid_nocssrewrite) { 1225var html_id = null; 1226var html_tag = document.getElementsByTagName("html"); 1227if (html_tag && html_tag.length) { 1228html_tag = html_tag[0]; 1229if (!html_tag.id) html_tag.id = "ecwid_html"; 1230html_id = html_tag.id; 1231} 1232var body_id = null; 1233var body_tag = document.getElementsByTagName("body"); 1234if (body_tag && body_tag.length) { 1235body_tag = body_tag[0]; 1236if (!body_tag.id) body_tag.id = "ecwid_body"; 1237body_id = body_tag.id; 1238} 1239if (html_id || body_id) { 1240if (html_id) { 1241window.css_selectors_prefix += "html#" + html_id; 1242} 1243if (html_id && body_id) { 1244css_selectors_prefix += " "; 1245} 1246if (body_id) { 1247css_selectors_prefix += "body#" + body_id; 1248} 1249} 1250} 1251} 1252window.ecwid_script_base="https://d11s7fcxy18ubx.cloudfront.net/node/static/2024/2024-40662-g83adb470c10934/ru.cdev.xnext.frontend.LegacyFrontend/"; 1253window.ecwid_static_base="https://d11s7fcxy18ubx.cloudfront.net/node/static/2024/2024-40662-g83adb470c10934/" 1254window.ecwid_url="https://app.ecwid.com/"; 1255window.ecwid_wait_for_interactive_seconds=5; 1256window.ecwid_use_new_loader = true; 1257window.ecwid_loader_logo_url = ""; 1258if (!window.amazon_image_domain) { 1259window.amazon_image_domain = "https://d2j6dbq0eux0bg.cloudfront.net"; 1260} 1261window.xnext_ownerId=1447232; 1262EcwidObj.publicToken = "public_ahN5nMajY7LX2ypLS39ZPdnqikMw7HF5", 1263EcwidObj.demo=false; 1264EcwidObj.cssUrl="https://d1oxsl77a1kjht.cloudfront.net/css/new?hc=966228781&ownerid=1447232"; 1265EcwidObj.acceptLanguage=["en"]; 1266EcwidObj.appDomain="https://app.ecwid.com/"; 1267EcwidObj.startup_flags = { 1268amazonImageDomain: window.amazon_image_domain, 1269googleMapsKey: "AIzaSyCNCmAGyN4bJYu5qeLgbASzZafm-M5TA_o" 1270}; 1271(function() { 1272window.ecwid_initial_data = {} 1273window.ecwid_initial_data.data = window.ecwid_initial_data.data || {} 1274window.ecwid_initial_data.refetchedInitialData = window.ecwid_initial_data.refetchedInitialData || {} 1275window.ecwid_initial_data.init = false 1276window.ecwid_initial_data.consume = consume 1277window.ecwid_initial_data.consumeRefetch = consumeRefetch 1278window.ecwid_initial_data.data.doInit = function(data) { 1279processResponse(data) 1280window.ecwid_initial_data.init = true; 1281window.ecwidEvents.trigger('INITIAL_DATA_LOADED') 1282} 1283window.ecwid_initial_data.data.refetchInitialData = function(data) { 1284processResponse(data) 1285window.ecwidEvents.trigger('INITIAL_DATA_REFETCHED') 1286} 1287function processResponse(data) { 1288window.ecwid_initial_data = window.ecwid_initial_data || {}; 1289window.ecwid_initial_data.data = window.ecwid_initial_data.data || {}; 1290window.ecwid_initial_data.data.storeClosed = data.storeClosed; 1291window.ecwid_initial_data.data.storeIsBlockedDueToFraud = data.storeIsBlockedDueToFraud; 1292window.ecwid_initial_data.data.isWhiteLabel = data.isWhiteLabel; 1293window.ecwid_initial_data.data.storeConfig = data.storeConfig; 1294window.ecwid_initial_data.data.categories = data.categories; 1295} 1296var ecDataJsBaseUrl = "https://app.ecwid.com/data.js?ownerid=1447232"; 1297ecDataJsBaseUrl += "&lang=en"; 1298ecDataJsBaseUrl += "&token=8c0aa67fd0f431490c034db68377e83328d674b9"; 1299xInjectJs(ecDataJsBaseUrl + "&callback=window.ecwid_initial_data.data.doInit") 1300function consume(callback) { 1301window.ecwidEvents.bind('INITIAL_DATA_LOADED', callback) 1302if (window.ecwid_initial_data.init) { 1303callback() 1304} 1305} 1306function consumeRefetch(callback) { 1307window.ecwidEvents.bind('INITIAL_DATA_REFETCHED', callback) 1308xInjectJs(ecDataJsBaseUrl + "&callback=window.ecwid_initial_data.data.refetchInitialData") 1309} 1310})(); 1311(function() { 1312window.ecwid_states_data = { 1313'data': null, 1314'loaded': function(data) { 1315window.ecwid_states_data.data = data; 1316window.ecwidEvents.trigger('STATES_DATA_LOADED', data); 1317},
1318'consume': function(callback) { 1319window.ecwidEvents.bind('STATES_DATA_LOADED', callback); 1320if (window.ecwid_states_data.data) { 1321callback(window.ecwid_states_data.data); 1322} 1323} 1324} 1325})() 1326EcwidObj.getAppPublicToken = function(namespace) { 1327var tokenMap = {"ecwid-wp-plugin":"public_xLRAwUR28rz8pwZQDF5Sx4Au7VnFxfku","ecwid-storefront":"public_vwYA1EZ1rtdSfeKkdySqukc6XtRnZWp5"}; 1328var result = tokenMap[namespace]; 1329return typeof result === 'string' ? result : null; 1330return null 1331} 1332if (EcwidObj._isInteractiveEnabled()) { 1333EcwidObj._loadEcwidAsync(); 1334} else { 1335EcwidObj._loadEcwidSync(); 1336} 1337if (!window.__heap_inits__ && !(((window.ec || {}).config || {}).disable_all_cookies === true)) { 1338(function(i,s,o,g,r,a,m){i['HeapAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0]; 1339a.async=1;a.src=g;if(EcwidObj._isInteractiveEnabled() && m != null && m.parentNode != null)m.parentNode.insertBefore(a,m);else var h=100,k=setInterval(function(){ m = s.getElementsByTagName(o)[0]; if((/loaded|complete/.test(s.readyState)||0==h--) && m != null && m.parentNode != null)m.parentNode.insertBefore(a,m),clearInterval(k)},100)})(window,document,"script","https://ecomm.events/i.js","eca"); 1340window.__heap_inits__ = true 1341} 1342window.parseId = window.parseId || function(args) { 1343var idPrefix = "id="; 1344var id; 1345for (var i=0; i<args.length; i++) { 1346if (args[i].substr(0, idPrefix.length) == idPrefix) { 1347id = args[i].substr(idPrefix.length); 1348} 1349} 1350return id; 1351}; 1352window.parseStyle = window.parseStyle || function(args) { 1353var stylePrefix = "style="; 1354var style = ""; 1355for (var i=0; i<args.length; i++) { 1356if (args[i].substr(0,stylePrefix.length) == stylePrefix) { 1357var str = args[i].substr(stylePrefix.length); 1358str = str.replace(/^ +\'?/,"").replace(/\'? +$/,""); 1359if (str.substring(0,1)=="'") str = str.substring(1); 1360if (str.substring(str.length-1)=="'") str = str.substring(0, str.length-1); 1361style += str; 1362} 1363} 1364return style; 1365}; 1366window.xAddWidget = window.xAddWidget || function(widgetType, args) { 1367args = Array.prototype.slice.call(args); // Cast Argument object into array 1368var id = parseId(args); 1369var style = parseStyle(args); 1370var hashParams = window.location.hash.match(/.*\/(.*)$/); 1371if (hashParams && hashParams.length > 1) { 1372hashParams = hashParams[1].split('&'); 1373for (var i = 0; i < hashParams.length; i++) { 1374var hashParam = hashParams[i]; 1375var paramPrefix = '_x' + widgetType + '_'; 1376if (hashParam.indexOf(paramPrefix) != 0) { 1377continue; 1378} 1379hashParam = hashParam.split('='); 1380if (hashParam.length != 2) { 1381continue; 1382} 1383var paramName = hashParam[0].replace(paramPrefix, ''); 1384var paramValue = decodeURIComponent(hashParam[1]); 1385var replaceIndex = args.length; 1386for (var j = 0; j < args.length; j++) { 1387if (args[j].indexOf(paramName + '=') == 0) { 1388replaceIndex = j; 1389break; 1390} 1391} 1392args[replaceIndex] = paramName + '=' + paramValue; 1393} 1394} 1395if(id && document.getElementById(id)) { 1396var e = document.getElementById(id); 1397while(e.hasChildNodes()) e.removeChild(e.firstChild); 1398e.setAttribute("style", style); 1399try { e.style.cssText = style; } catch(ex) { } // IE 1400} else { 1401i=1; 1402do { 1403id = widgetType+"-"+i++; 1404} while (document.getElementById(id)); 1405if (!!document.currentScript && !!document.currentScript.parentElement) { 1406var widgetElem = document.createElement("div"); 1407widgetElem.id = id; 1408if (style) { 1409widgetElem.setAttribute("style", style); 1410} else { 1411if (widgetType == "Product") { 1412widgetElem.setAttribute("style", "display: none"); 1413} 1414} 1415document.currentScript.parentElement.appendChild(widgetElem); 1416} else { 1417var html = "<div id='" + id + "'"; 1418if (style) { 1419html += " style='" + style + "'"; 1420} else { 1421if (widgetType == "Product") { 1422html += " style='display:none'"; 1423} 1424} 1425html += "></div>"; 1426var div = document.createElement("div"); 1427div.innerHTML = html; 1428document.body.appendChild(div.firstChild); 1429} 1430} 1431if (widgetType == "ProductBrowser" || 1432widgetType == "Categories") { 1433ecwid_loader(id); 1434} 1435var l = 0; 1436if (!window._xnext_initialization_scripts) { 1437window._xnext_initialization_scripts = []; 1438} else { 1439l = window._xnext_initialization_scripts.length; 1440} 1441EcwidLogger.log("Widget " + widgetType + " " + id + " added"); 1442window._xnext_initialization_scripts[l] = {widgetType:widgetType, id:id, arg:args}; 1443window.ecwid_dynamic_widgets && EcwidObj._onBodyDone(); 1444}; 1445window.xProductBrowser = window.xProductBrowser || function() { 1446window.ecwid_dynamic_widgets && EcwidObj.destroy(); 1447xAddWidget("ProductBrowser", arguments); 1448}; 1449window.ecwid_loader = window.ecwid_loader || function(id) { 1450if (!window.ecwid_loader_shown && !EcwidObj._hasFacebookIframe()) { 1451if (!window.ecwid_use_custom_loading_indicator) { 1452EcwidObj._showPBLoader(id); 1453} 1454window.ecwid_loader_shown = true; 1455} 1456}; 1457window.xAddToBag = window.xAddToBag || function() { 1458xAddWidget("AddToBag", arguments); 1459};
1460window.xProductThumbnail = window.xProductThumbnail || function() { 1461xAddWidget("ProductThumbnail", arguments); 1462}; 1463window.xLoginForm = window.xLoginForm || function() { 1464xAddWidget("LoginForm", arguments); 1465}; 1466window.xMinicart = window.xMinicart || function() { 1467xAddWidget("Minicart", arguments); 1468}; 1469window.xCategories = window.xCategories || function() { 1470xAddWidget("Categories", arguments); 1471}; 1472window.xVCategories = window.xVCategories || function() { 1473xAddWidget("VCategories", arguments); 1474}; 1475window.xCategoriesV2 = window.xCategoriesV2 || function() { 1476xAddWidget("CategoriesV2", arguments); 1477}; 1478window.xSearchPanel = window.xSearchPanel || function() { 1479xAddWidget("SearchPanel", arguments); 1480}; 1481window.xSearch = window.xSearch || function() { 1482xAddWidget("SearchWidget", arguments); 1483}; 1484window.xGadget = window.xGadget || function() { 1485xAddWidget("Gadget", arguments); 1486} 1487window.xSingleProduct = window.xSingleProduct || function() { 1488xAddWidget("SingleProduct", arguments) 1489}; 1490window.xProduct = window.xProduct || function() { 1491xAddWidget("Product", arguments) 1492}; 1493(function(w, undefined) { 1494var injectRosettaRetry = 0; 1495function tryInjectRosettaScript(cdnUrl, s3Url) { 1496injectRosettaRetry++; 1497var url = (injectRosettaRetry < 5) ? cdnUrl : s3Url; 1498var script = document.createElement('script'); 1499script.type = 'text/javascript'; 1500script.onerror = function() { 1501document.getElementsByTagName('head')[0].removeChild(script); 1502if (injectRosettaRetry < 10) { 1503setTimeout(tryInjectRosettaScript.bind(this, cdnUrl, s3Url), 200); 1504} else { 1505if (!!window.ga) { 1506window.ga('send', 'exception', { 1507'exDescription': 'Translation with url ' + url + ' not loaded.', 1508'exFatal': true 1509}); 1510} 1511console && console.error && console.error("Load translation failed: ", url); 1512window.ecwid_elm_config = window.ecwid_elm_config || {}; 1513window.ecwid_elm_config.translations_load_failed_url = url; 1514if (!!window.ecwidEvents) { 1515window.ecwidEvents.trigger('TRANSLATIONS_LOAD_FAILED', url); 1516} 1517if (!!window.Ecwid && !!window.Ecwid.logException) { 1518window.Ecwid.logException('Failed to load translations. Url: ' + url + '. retry number: ' + injectRosettaRetry); 1519} 1520} 1521}; 1522script.onload = function () { 1523window.ecwid_elm_config = window.ecwid_elm_config || {}; 1524window.ecwid_elm_config.translations_loaded = true; 1525if (!!window.ecwidEvents) { 1526window.ecwidEvents.trigger('TRANSLATIONS_LOADED'); 1527} 1528} 1529script.src = url; 1530document.getElementsByTagName('head')[0].appendChild(script); 1531} 1532var EcwidObj = w.getEcwidV2Object(); 1533EcwidObj.renderCartWidget = renderCartWidget; 1534EcwidObj.readyToCreate = readyToCreate; 1535EcwidObj.init = init; 1536var widgets = []; 1537let initCart = false; 1538function init() { 1539var nodes = document.getElementsByClassName('ec-cart-widget') 1540for (var i = 0; i < nodes.length ; i++) { 1541widgets.push({type:"cart", node: nodes[i]}); 1542initCart = true; 1543} 1544maybeLoad(); 1545if (initCart) { 1546addCartWidget(); 1547} 1548} 1549function renderCartWidget(node) { 1550widgets.push({type:"cart", node: node}) 1551maybeLoad(); 1552} 1553function readyToCreate() { 1554maybeLoad() 1555} 1556function maybeLoad() { 1557maybeLoadSource(); 1558!!EcwidObj.__loadWidgets && EcwidObj.__loadWidgets(widgets); 1559} 1560function maybeLoadSource() { 1561if (!window.ecwid_elm_config) { 1562window.ecwid_init_elm_config() 1563} 1564} 1565function addCartWidget() { 1566let l = 0 1567if (typeof(window._xnext_initialization_scripts) == "undefined" || window._xnext_initialization_scripts == null) { 1568window._xnext_initialization_scripts = [] 1569} else { 1570l = window._xnext_initialization_scripts.length 1571} 1572window._xnext_initialization_scripts[l] = {widgetType: "MinicartV2", id:"", arg:[]} 1573} 1574})(window); 1575window.xAffiliate = window.xAffiliate || function(id) { 1576EcwidObj.affiliateId = id; 1577}; 1578if (typeof xInitialized == 'function') xInitialized(); 1579} 1580} catch (e) { 1581function xReportError(msg) { 1582var html = '<div style="font-family:sans-serif;"><div style="padding:30px 20px;max-width:500px;word-wrap: break-word;margin:0 auto;border-radius:5px;box-shadow:0 10px 35px rgba(0, 0, 0, 0.15);box-sizing:border-box;background-color:#fff;"><div style="font-size:15px;line-height:1.8em;margin:16px;">' + msg + '</div></div></div><br/>'; 1583var element = document.createElement("div"); 1584element.innerHTML = html; 1585document.body.appendChild(element); 1586}
1587var commonError = "The store cannot be loaded in your browser because of some JavaScript errors, sorry. Below here's the exact error occurred."; 1588var bodyTagError = "This document doesn't contain the required " + 1589"<body> and </body> tags (see http://www.htmldog.com/reference/htmltags/body). " + 1590"Thus your Ecwid store cannot be loaded. " + 1591"Please add these tags and refresh the page. This message will disappear and you will see your store."; 1592var isWindowsMobile2005 = /(msie 4).*(windows ce)/i.test(navigator.userAgent); 1593if (!document.body && !isWindowsMobile2005) { 1594console.error(bodyTagError); 1595} else { 1596xReportError(commonError + '<br/><br/>Error: <i>' + e.message + '</i>'); 1597} 1598throw e; 1599} 1600EcwidObj.getAppPublicConfig = function(namespace) { 1601 var publicData = {"ecwid-linkup-app":"{}","ecwid-applepay-au-app":"{}","ecwid-storefront":"{}","ecwid-degenerator-app":"{}","kliken-stats":"{}","square":"{}","ecwid-apigate-app":"{}","starter-site":"{}","ecwid-iphone-app":"{}","ecwid-fbshops":"{}","ecwid-cpsettings-app":"{}","ecwid-report-api-client":"{}","ecwid-startersite-app":"{}","ecwid-store-creator-app":"{}","ecwid-wp-plugin":"{}","ecwid-domenator-app":"{}","ecwid-promos-app":"{}"}; 1602 var result = EcwidObj._isAppEnabled(namespace) ? publicData[namespace] : null; 1603 return typeof result === 'string' ? result : null; 1604 return null 1605} 1606 1607 1608}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.