Software - Amazon.com

Skip to main content"},"url":"/cart/ewc/compact?hostPageType=Landing&hostSubPageType=Cat-M&hostPageRID=TJ6FM59EMF3565B1G1E4&prerender=0&storeName=software","cartCount":0,"freshCartCount":0,"almCartCount":0,"isCompactViewEnabled":true,"isCompactEWCRendered":true};var hasAui = window.P && window.P.AUI_BUILD_DATE;var isRTLEnabled = (document.dir === 'rtl');config.pinnable = config.pinnable && hasAui;config.isMigrationTreatment = true;config.flyout = (function() {var navbelt = document.getElementById('nav-belt');var navCart = document.getElementById('nav-cart');var ewcFlyout = document.getElementById('nav-flyout-ewc');var persistentClassOnBody = 'nav-ewc-persistent-hover nav-ewc-full-height-persistent-hover';var flyout = {};var getDocumentScrollTop = function() {return (document.documentElement && document.documentElement.scrollTop) || document.body.scrollTop;};var isWindow = function(obj) {return obj != null && obj === obj.window;};var getWindow = function(elem) {return isWindow(elem) ? elem : elem.nodeType === 9 && elem.defaultView;};var getOffset = function(elem) {if (elem.getClientRects && !elem.getClientRects().length) {return {top: 0};}var rect = elem.getBoundingClientRect? elem.getBoundingClientRect(): {top: 0};if (rect.width || rect.height) {var doc = elem.ownerDocument;var win = getWindow(doc);return {top: rect.top + win.pageYOffset - doc.documentElement.clientTop};}return rect;};flyout.align = function() {var newTop = getOffset(navbelt).top - getDocumentScrollTop();ewcFlyout.style.top = (newTop > 0 ? newTop + 'px' : 0);};flyout.hide = function() {isRTLEnabled? (ewcFlyout.style.left = ''): (ewcFlyout.style.right = '');};if(typeof config.isCompactEWCRendered === 'undefined') {if ((config.isSmallScreenEnabled && viewportWidth() = 1400)) {config.isCompactEWCRendered = true;config.isEWCStateExpanded = true;config.url = config.url.replace("/gp/navcart/sidebar", "/cart/ewc/compact");} else {config.isCompactEWCRendered = false;}}var viewportQualifyForPersistent = function () {return (config.isCompactEWCRendered)? true: viewportWidth() >= 1400;}flyout.hasQualifiedViewportForPersistent = viewportQualifyForPersistent;var getEWCRightOffset = function() {if (!config.isCompactEWCRendered) {return 0;}var $navbelt = document.getElementById('nav-belt');if ($navbelt === undefined || $navbelt === null) {return 0;}var EWCCompactViewWidth = (config.isWiderCompactEWCRendered&& viewportWidth() >= 1280) ? 130 : 100;var scrollLeft = (window.pageXOffset !== undefined)? window.pageXOffset: (document.documentElement || document.body.parentNode || document.body).scrollLeft;var scrollXAxis = Math.abs(scrollLeft);var windowWidth = document.documentElement.clientWidth;var navbeltWidth = $navbelt.offsetWidth;var isPartOfNavbarNotVisible = (navbeltWidth + EWCCompactViewWidth) > windowWidth;if (isPartOfNavbarNotVisible) {return 0 - (navbeltWidth - scrollXAxis - windowWidth + EWCCompactViewWidth);} else {return 0;}}flyout.getEWCRightOffsetCssProperty = function () {return getEWCRightOffset() + 'px';}if (config.isCompactEWCRendered) {persistentClassOnBody = 'nav-ewc-persistent-hover nav-ewc-compact-view';if (config.isWiderCompactEWCRendered) { persistentClassOnBody += ' nav-ewc-wider-compact-view'; }}flyout.show = function() {isRTLEnabled? (ewcFlyout.style.left = flyout.getEWCRightOffsetCssProperty()): (ewcFlyout.style.right = flyout.getEWCRightOffsetCssProperty());};var isIOSDevice = function() {return (/iPad|iPhone|iPod/.test(navigator.platform) ||(navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)) &&!window.MSStream;}var checkForPersistent = function() {if (!hasAui) {return { result: false, reason: 'noAui' };}if (!config.enablePersistent) {return { result: false, reason: 'config' };}if (!viewportQualifyForPersistent()) {return { result: false, reason: 'viewport' };}if (isIOSDevice()) {return { result: false, reason: 'iOS' };}if (!config.cartCount > 0) {return { result: false, reason: 'emptycart' };}return { result: true };};flyout.ableToPersist = function() {return checkForPersistent().result;};var persistentClassRegExp = '(?:^|\\s)' + persistentClassOnBody + '(?!\\S)';flyout.applyPageLayoutForPersistent = function() {if (!document.documentElement.className.match( new RegExp(persistentClassRegExp) )) {document.documentElement.className += ' ' + persistentClassOnBody;}};flyout.unapplyPageLayoutForPersistent = function() {document.documentElement.className = document.documentElement.className.replace( new RegExp(persistentClassRegExp, 'g'), '');};flyout.persist = function() {flyout.applyPageLayoutForPersistent();flyout.show();if (config.isCompactEWCRendered) {flyout.align();}};flyout.unpersist = function() {flyout.unapplyPageLayoutForPersistent();flyout.hide();};var resizeCallback = function() {if (flyout.ableToPersist()) {flyout.persist();}else {flyout.unpersist();}};flyout.bindEvents = function() {if (window.addEventListener) {window.addEventListener('resize', resizeCallback, false);if (config.isCompactEWCRendered) {window.addEventListener('scroll', flyout.align, false);}}};flyout.unbindEvents = function() {if (window.removeEventListener) {window.removeEventListener('resize', resizeCallback, false);if (config.isCompactEWCRendered) {window.removeEventListener('scroll', flyout.align, false);}}};var persistentCheck = checkForPersistent();if (persistentCheck.result) {flyout.persist();if (window.ue && ue.tag) {ue.tag('ewc:persist');}} else {if (window.ue && ue.tag) {ue.tag('ewc:unpersist');if (persistentCheck.reason === 'noAui') {ue.tag('ewc:unpersist:noAui');}if (persistentCheck.reason === 'viewport') {ue.tag('ewc:unpersist:viewport');}if (persistentCheck.reason === 'emptycart') {ue.tag('ewc:unpersist:emptycart');}if (persistentCheck.reason === 'iOS') {ue.tag('ewc:unpersist:iOS');}}}if (window.ue && ue.tag){if (flyout.hasQualifiedViewportForPersistent()) {ue.tag('ewc:bview');}else {ue.tag('ewc:sview');}}flyout.bindEvents();return flyout;}());return config;}()));if (typeof uet === 'function') {uet('x2', 'ewc', {wb: 1});(window.AmazonUIPageJS ? AmazonUIPageJS : P).when('navCF').execute(function() {uet('bb', 'ewc', {wb: 1});});}if (window.ue && ue.tag) {ue.tag('ewc');ue.tag('ewc:unrec');ue.tag('ewc:cartsize:0');if ( window.P && window.P.AUI_BUILD_DATE ) {ue.tag('ewc:aui');} else {ue.tag('ewc:noAui');}}}());

Post a Comment (0)
Previous Post Next Post