var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };
if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
{
  let window = _____WB$wombat$assign$function_____("window");
  let self = _____WB$wombat$assign$function_____("self");
  let document = _____WB$wombat$assign$function_____("document");
  let location = _____WB$wombat$assign$function_____("location");
  //let top = _____WB$wombat$assign$function_____("top");
  let parent = _____WB$wombat$assign$function_____("parent");
  let frames = _____WB$wombat$assign$function_____("frames");
  let opener = _____WB$wombat$assign$function_____("opener");

(function(w) {
	if (!Object.assign) {
		objectsAssignPolyfill();
	}

	var oAuthAppId = "storefront-label-editor"

	var langCodesToAdaptForRosetta = {
        ar: "ar_SA",
        es: "es_ES",
        es_419: "es_MX",
        hy: "hy_AM",
        pt: "pt_PT",
        sv: "sv_SE",
        zh: "zh_CN"
    };
	
	var publicConfig = Ecwid.getAppPublicConfig(oAuthAppId);
	if (!publicConfig) {
		return;
	}

	var translates = JSON.parse(decodeURIComponent(publicConfig));
	var langs = Object.keys(translates);

	if (langs.length === 0) {
		return;
	}

	if (langs.length === 1) {
		newEcwidMessages = translates[getRosettaLangCode(langs[0])];
		if (w.ecwidMessages) {
			w.ecwidMessages = Object.assign(w.ecwidMessages, newEcwidMessages);
		} else {
			w.ecwidMessages = Object.assign({}, newEcwidMessages);
		}
	} else {
		Ecwid.OnAPILoaded.add(function() {
			var curLang = Ecwid.getStorefrontLang() || 'en';
			newEcwidMessages = translates[getRosettaLangCode(curLang)];
			if (w.ecwidMessages) {
				w.ecwidMessages = Object.assign(w.ecwidMessages, newEcwidMessages);
			} else {
				w.ecwidMessages = Object.assign({}, newEcwidMessages);
			}
		});
	}

   function objectsAssignPolyfill() {
			Object.defineProperty(Object, 'assign', {
				enumerable: false,
				configurable: true,
				writable: true,
				value: function (target) {

					'use strict';
					if (target === undefined || target === null) {
						throw new TypeError('Cannot convert first argument to object');
					}

					var to = Object(target);
					for (var i = 1; i < arguments.length; i++) {
						var nextSource = arguments[i];
						if (nextSource === undefined || nextSource === null) {
							continue;
						}
						nextSource = Object(nextSource);

						var keysArray = Object.keys(nextSource);
						for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {
							var nextKey = keysArray[nextIndex];
							var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);
							if (desc !== undefined && desc.enumerable) {
								to[nextKey] = nextSource[nextKey];
							}
						}
					}
					return to;
				}
			});
	}

	function getRosettaLangCode(langCode) {
		if (!!langCodesToAdaptForRosetta[langCode]) {
			return langCodesToAdaptForRosetta[langCode];
		}
		return langCode;
	}
})(window)


}
/*
     FILE ARCHIVED ON 15:52:13 Jan 06, 2022 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 18:08:29 Oct 27, 2024.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
/*
playback timings (ms):
  captures_list: 0.776
  exclusion.robots: 0.03
  exclusion.robots.policy: 0.018
  esindex: 0.012
  cdx.remote: 26.994
  LoadShardBlock: 418.816 (6)
  PetaboxLoader3.datanode: 364.009 (8)
  load_resource: 301.335 (2)
  PetaboxLoader3.resolve: 229.53 (2)
*/