34085336a2cd1dbf9f635c1fa1f7008319b85ec4d95d86617d4be4d855f07079

Source Code:

(function(g){var n=window.AmazonUIPageJS||window.P,u=n._namespace||n.attributeErrors,w=u?u("DetailPageAllOffersDisplayAssets",""):n;w.guardFatal?w.guardFatal(g)(w,window):w.execute(function(){g(w,window)})})(function(g,n,u){g.when("A","jQuery").execute("all-offers-display-init",function(w,H){g.when("A","jQuery","all-offers-display-constants","all-offers-display-url-builder","all-offers-display-elements","all-offers-display-delivery-promise-handler","all-offers-display-content-loader","all-offers-display-delivery-promise-expander",
"all-offers-display-state-manager").execute("all-offers-display-pinned-offers",function(f,d,a,b,c,e,m,k,h){function l(){return 0<c.getElement(c.elements.AOD_ATC_STICKY_PRIME_TRUNCATED_TEXT).length}var p=n.ueLogError;f.declarative(a.AOD_PINNED_OFFER_SHOW_MORE_ACTION,a.AOD_WIDGET_TRIGGER_EVENTS,function(b){try{b.$event.preventDefault(),b.$event.stopPropagation(),c.getElement(c.elements.ADDITIONAL_CONTENT_KEY).removeClass(a.AOD_HIDE_ELEMENT_CSS_CLASS),c.getElement(c.elements.SHOW_LESS_LINK_KEY).removeClass(a.AOD_HIDE_ELEMENT_CSS_CLASS),
c.getElement(c.elements.SHOW_MORE_LINK_KEY).addClass(a.AOD_HIDE_ELEMENT_CSS_CLASS),l()&&(c.getElement(c.elements.AOD_ATC_STICKY_PRIME_TRUNCATED_TEXT)[1].classList.add(a.AOD_HIDE_ELEMENT_CSS_CLASS),c.getElement(c.elements.AOD_ATC_STICKY_PRIME_FULL_TEXT)[1].classList.remove(a.AOD_HIDE_ELEMENT_CSS_CLASS)),k.expandPinnedOfferDeliveryMessage(),h.setAodModifiedState(!0)}catch(e){n.ueLogError&&p(e,{logLevel:"ERROR",attribution:"aod",message:"[Error in registering declarative action for pinned offer]"})}});
f.declarative(a.AOD_PINNED_OFFER_SHOW_LESS_ACTION,a.AOD_WIDGET_TRIGGER_EVENTS,function(b){b.$event.preventDefault();b.$event.stopPropagation();c.getElement(c.elements.ADDITIONAL_CONTENT_KEY).addClass(a.AOD_HIDE_ELEMENT_CSS_CLASS);c.getElement(c.elements.SHOW_LESS_LINK_KEY).addClass(a.AOD_HIDE_ELEMENT_CSS_CLASS);c.getElement(c.elements.SHOW_MORE_LINK_KEY).removeClass(a.AOD_HIDE_ELEMENT_CSS_CLASS);l()&&(c.getElement(c.elements.AOD_ATC_STICKY_PRIME_TRUNCATED_TEXT)[1].classList.remove(a.AOD_HIDE_ELEMENT_CSS_CLASS),
c.getElement(c.elements.AOD_ATC_STICKY_PRIME_FULL_TEXT)[1].classList.add(a.AOD_HIDE_ELEMENT_CSS_CLASS));e.truncatePinnedOfferDeliveryMessage();h.setAodModifiedState(!1)});f.declarative(a.AOD_STICKY_PINNED_OFFER_SHOW_MORE_ACTION,a.AOD_WIDGET_TRIGGER_EVENTS,function(b){try{b.$event.preventDefault(),b.$event.stopPropagation(),c.getElement(c.elements.STICKY_ADDITIONAL_CONTENT_KEY).removeClass(a.AOD_HIDE_ELEMENT_CSS_CLASS),c.getElement(c.elements.STICKY_SHOW_LESS_LINK_KEY).removeClass(a.AOD_HIDE_ELEMENT_CSS_CLASS),
c.getElement(c.elements.STICKY_SHOW_MORE_LINK_KEY).addClass(a.AOD_HIDE_ELEMENT_CSS_CLASS),l()&&(c.getElement(c.elements.AOD_ATC_STICKY_PRIME_TRUNCATED_TEXT)[0].classList.add(a.AOD_HIDE_ELEMENT_CSS_CLASS),c.getElement(c.elements.AOD_ATC_STICKY_PRIME_FULL_TEXT)[0].classList.remove(a.AOD_HIDE_ELEMENT_CSS_CLASS)),k.expandStickyPinnedOfferDeliveryMessage(),h.setAodModifiedState(!0)}catch(e){n.ueLogError&&p(e,{logLevel:"ERROR",attribution:"aod",message:"[Error in registering declarative action for pinned offer]"})}});
f.declarative(a.AOD_STICKY_PINNED_OFFER_SHOW_LESS_ACTION,a.AOD_WIDGET_TRIGGER_EVENTS,function(b){b.$event.preventDefault();b.$event.stopPropagation();c.getElement(c.elements.STICKY_ADDITIONAL_CONTENT_KEY).addClass(a.AOD_HIDE_ELEMENT_CSS_CLASS);c.getElement(c.elements.STICKY_SHOW_LESS_LINK_KEY).addClass(a.AOD_HIDE_ELEMENT_CSS_CLASS);c.getElement(c.elements.STICKY_SHOW_MORE_LINK_KEY).removeClass(a.AOD_HIDE_ELEMENT_CSS_CLASS);l()&&(c.getElement(c.elements.AOD_ATC_STICKY_PRIME_TRUNCATED_TEXT)[0].classList.remove(a.AOD_HIDE_ELEMENT_CSS_CLASS),
c.getElement(c.elements.AOD_ATC_STICKY_PRIME_FULL_TEXT)[0].classList.add(a.AOD_HIDE_ELEMENT_CSS_CLASS));e.truncateStickyPinnedOfferDeliveryMessage();h.setAodModifiedState(!1)});f.declarative(a.AOD_PINNED_OFFER_SCROLL_TOP_ACTION,a.AOD_WIDGET_TRIGGER_EVENTS,function(b){b=b.$event.target.constructor.name;b!==a.HTML_ANCHOR_ELEMENT_KEY&&b!==a.HTML_INPUT_ELEMENT_KEY&&(c.getElement(c.elements.AOD_SCROLL_DIV_KEY)[0].scrollTop=0)})});g.when("A","jQuery","all-offers-display-mash").execute("aod-mash",function(f,
d,a){var b={"add-to-cart":function(b){a.addToCart(b)}};f.declarative("aw-mash-aod",["click"],function(a){"object"===typeof a&&"object"===typeof a.data&&"string"===typeof a.data.buttonID&&"function"===typeof b[a.data.buttonID]&&b[a.data.buttonID](a.data)})});"use strict";g.register("all-offers-display-action-util",function(){return{isExpectedKeyCode:function(f,d){return f.$event.keyCode===d||f.$event.key===d}}});g.when("A","jQuery","all-offers-display-constants","all-offers-display-content-loader",
"aod-load-event-handler").execute("all-offers-display",function(f,d,a,b,c){f.state("aod:assetsLoaded",{isAodAssetsLoaded:!0});f.state("aod:assets2Loaded",{isAodAssetsLoaded:!0});f.declarative(a.AOD_SHOW_WIDGET_ACTION,a.AOD_WIDGET_TRIGGER_EVENTS,function(a){c.renderAodAction(a)});f.declarative(a.AOD_CLOSE_WIDGET_ACTION,a.AOD_WIDGET_KEY_HANDLER,function(c){c.type!==a.AOD_WIDGET_TRIGGER_EVENTS&&(c.type!==a.AOD_KEY_DOWN_EVENT||c.$event.keyCode!==a.ENTER_KEY_CODE&&c.$event.key!==a.ENTER_KEY_CODE)||b.closeAod();
c.type!==a.AOD_KEY_DOWN_EVENT||c.$event.keyCode!==a.TAB_KEY_CODE&&c.$event.key!==a.TAB_KEY_CODE||!c.$event.shiftKey||(c.$event.preventDefault(),c.$event.stopPropagation())});f.declarative(a.AOD_CLOSE_BY_ESC_KEY,a.AOD_KEY_DOWN_EVENT,function(c){c.type!==a.AOD_KEY_DOWN_EVENT||c.$event.keyCode!==a.ESC_KEY_CODE&&c.$event.key!==a.ESC_KEY_CODE||b.closeAod()});f.on(a.AOD_CLOSE_FROM_CUSTOM_CONFIGURATOR,function(){b.closeAod()})});g.when("A","jQuery","all-offers-display-constants","search-all-offers-display-util").execute("search-all-offers-display",
function(f,d,a,b){f.state("aod:assetsLoaded",{isAodAssetsLoaded:!0});f.state("aod:assets2Loaded",{isAodAssetsLoaded:!0});f.declarative(a.SEARCH_AOD_SHOW_WIDGET_ACTION,a.AOD_WIDGET_TRIGGER_EVENTS,function(a){b.searchOnClickHandler(a)})});g.when("A","jQuery","all-offers-display-constants").execute(function(f,d,a){f.declarative("ags-expand-text",a.AOD_WIDGET_TRIGGER_EVENTS,a.AOD_KEY_UP_EVENT,function(b){b.$event.preventDefault();b.$event.stopPropagation();var c=b.$target.parents("."+a.AOD_AGS_NOTE_TEXT_SECTION_CLASS);
b=c.find("."+a.AOD_AGS_NOTE__EXPEND_TEXT_SECTION_CLASS);var e=c.find("."+a.AOD_AGS_NOTE_TRUNCATED_TEXT_CLASS),c=c.find("."+a.AOD_AGS_NOTE_TRUNCATED_TEXT_CLASS);e.css(a.AOD_DISPLAY_NONE_STYLE);c.css(a.AOD_DISPLAY_NONE_STYLE);b.css(a.AOD_DISPLAY_BLOCK_STYLE)})});g.when("A","jQuery","all-offers-display-constants").execute("all-offers-atc-prime-offer-block",function(f,d,a){f.declarative(a.AOD_ATC_PRIME_OFFER_MORE_ACTION,a.AOD_WIDGET_TRIGGER_EVENTS,function(b){b.$event.preventDefault();b.$event.stopPropagation();
var c=b.$target.parents("."+a.AOD_ATC_PRIME_OFFER_CLASS);b=c.find("."+a.AOD_ATC_PRIME_TRUNCATED_TEXT_CLASS);c=c.find("."+a.AOD_ATC_PRIME_FULL_TEXT_CLASS);b[0].classList.add(a.AOD_HIDE_ELEMENT_CSS_CLASS);c[0].classList.remove(a.AOD_HIDE_ELEMENT_CSS_CLASS)})});g.when("A","jQuery","all-offers-display-constants","all-offers-display-delivery-promise-expander").execute("all-offers-display-delivery-promise-actions",function(f,d,a,b){f.declarative(a.AOD_DELIVERY_PROMISE_MORE_ACTION,a.AOD_WIDGET_TRIGGER_EVENTS,
function(a){a.$event.preventDefault();a.$event.stopPropagation();b.expandOfferListDeliveryMessage(a)})});g.when("A","jQuery","all-offers-display-constants","all-offers-display-filter-state-manager","all-offers-display-url-builder","all-offers-display-filter-actions","all-offers-display-filter-util","all_offers_display_filter_swatch_manager").execute("all-offers-display-filters",function(f,d,a,b,c,e,m,k){var h=n.uet;f.declarative(a.AOD_SHOW_FILTER_ACTION,a.AOD_WIDGET_KEY_HANDLER,function(b){if(b.type===
a.AOD_WIDGET_TRIGGER_EVENTS||b.type===a.AOD_KEY_DOWN_EVENT&&(13===b.$event.keyCode||13===b.$event.key))e.isFilterOpen()?e.closeFilter():e.openFilter()});f.declarative(a.AOD_CLEAR_ALL_FILTER_ACTION,a.AOD_WIDGET_TRIGGER_EVENTS,function(l){"function"===typeof h&&h("bb",a.AOD_FILTERS_CSM_LATENCY_METRIC_SCOPE_NAME,{wb:1});l.$event.preventDefault();l.$event.stopPropagation();b.clearAllCheckboxes();m.updateFilterCount(b.getCheckboxState());c.setRefMarker(a.AOD_FILTER_CLEAR_REF_MARKER);m.fetchAodContent(JSON.parse(a.AOD_DEFAULT_CHECKBOX_STATE));
k.updateFilterSwatches();e.closeFilter()});f.declarative(a.AOD_TOGGLE_FILTER_CHECKBOX_ACTION,a.AOD_WIDGET_KEY_HANDLER,function(e){var p=e.data.checkboxID,q=e.data.parentID,d=e.data.refMarker;if(e.type===a.AOD_WIDGET_TRIGGER_EVENTS||e.type===a.AOD_KEY_DOWN_EVENT&&(e.$event.keyCode===a.ENTER_KEY_CODE||e.$event.key===a.ENTER_KEY_CODE))"function"===typeof h&&h("bb",a.AOD_FILTERS_CSM_LATENCY_METRIC_SCOPE_NAME,{wb:1}),e.$event.preventDefault(),e.$event.stopPropagation(),b.recordClick(p,q),m.updateFilterCount(b.getCheckboxState()),
d&&c.setRefMarker(d),m.fetchAodContent(b.getCheckboxState()),k.updateFilterSwatches()});f.declarative(a.AOD_FILTER_MOUSE_LEAVE_EVENT,a.AOD_MOUSE_MOVE_EVENT_NAME,function(a){a.$event.preventDefault();a.$event.stopPropagation();e.closeFilter()});f.declarative(a.AOD_SWATCH_EXPAND_ACTION,a.AOD_WIDGET_TRIGGER_EVENTS,function(a){a.$event.preventDefault();a.$event.stopPropagation();k.setExpandedModeTrue();k.updateFilterSwatches()})});g.when("A","jQuery","all-offers-display-constants","all-offers-display-filter-state-manager",
"all-offers-display-url-builder","all-offers-display-filter-actions","all-offers-display-filter-util","all-offers-display-b2b-filter-util","all_offers_display_filter_swatch_manager","all-offers-display-action-util").execute("all-offers-display-b2b-filters",function(f,d,a,b,c,e,m,k,h,l){var p=n.uet;f.declarative(a.AOD_B2B_CLEAR_ALL_FILTER_ACTION,a.AOD_WIDGET_TRIGGER_EVENTS,function(l){"function"===typeof p&&p("bb",a.AOD_FILTERS_CSM_LATENCY_METRIC_SCOPE_NAME,{wb:1});l.$event.preventDefault();l.$event.stopPropagation();
b.clearAllCheckboxes();m.updateFilterCount(b.getCheckboxState());c.setRefMarker(a.AOD_FILTER_CLEAR_REF_MARKER);k.fetchAodContent(JSON.parse(a.AOD_DEFAULT_CHECKBOX_STATE));h.updateFilterSwatches();e.closeFilter()});f.declarative(a.AOD_B2B_TOGGLE_FILTER_CHECKBOX_ACTION,a.AOD_WIDGET_KEY_HANDLER,function(e){var d=e.data.checkboxID,f=e.data.parentID,x=e.data.refMarker;if(e.type===a.AOD_WIDGET_TRIGGER_EVENTS||e.type===a.AOD_KEY_DOWN_EVENT&&l.isExpectedKeyCode(e,a.ENTER_KEY_CODE))"function"===typeof p&&
p("bb",a.AOD_FILTERS_CSM_LATENCY_METRIC_SCOPE_NAME,{wb:1}),e.$event.preventDefault(),e.$event.stopPropagation(),b.recordClick(d,f),m.updateFilterCount(b.getCheckboxState()),x&&c.setRefMarker(x),k.fetchAodContent(b.getCheckboxState()),h.updateFilterSwatches()})});g.when("A","jQuery","all-offers-display-pagination").execute("all-offers-display-pagination-action-handler",function(f,d,a){f.declarative("aod-load-offers","click","keyup",a.loadNextPage)});g.when("A","jQuery","all-offers-display-constants").execute("all-offers-display-condition",
function(f,d,a){f.on(a.AOD_POP_OVER_BEFORE_SHOW_EVENT,function(b){d(".a-popover").addClass(a.AOD_POP_OVER_CLASS)});f.on(a.AOD_POP_OVER_BEFORE_HIDE_EVENT,function(b){d(".a-popover").removeClass(a.AOD_POP_OVER_CLASS)});f.declarative(a.AOD_CONDITION_EXPAND_TEXT_ACTION,a.AOD_WIDGET_TRIGGER_EVENTS,a.AOD_KEY_UP_EVENT,function(b){b.$event.preventDefault();b.$event.stopPropagation();var c=b.$target.parents("."+a.AOD_CONDITION_TEXT_SECTION_CLASS);b=c.find("."+a.AOD_CONDITION_TRUNCATED_TEXT_CLASS);var e=c.find("."+
a.AOD_CONDITION_EXPAND_TEXT_CLASS),c=c.find("."+a.AOD_CONDITION_EXPAND_LINK_CLASS);b.css(a.AOD_DISPLAY_NONE_STYLE);e.css(a.AOD_DISPLAY_INLINE_STYLE);c.css(a.AOD_DISPLAY_NONE_STYLE)})});g.when("A","jQuery","all-offers-display-constants","all-offers-display-qty-util","all-offers-display-qty-state-manager","all-offers-display-action-util").execute("all-offers-display-quantity",function(f,d,a,b,c,e){f.declarative(a.AOD_QTY_SELECTOR_ACTIONS,a.AOD_QTY_SELECTOR_SUBMIT_EVENTS,function(d){if(d.type===a.AOD_FOCUS_OUT_EVENT||
d.type===a.AOD_KEY_DOWN_EVENT&&e.isExpectedKeyCode(d,a.ENTER_KEY_CODE))d.$event.preventDefault(),d.$event.stopPropagation(),b.processInputQuantity()&&b.fetchAodContent(c.getSelectedQuantity())});f.declarative(a.AOD_QTY_SELECTOR_ACTIONS,a.AOD_QTY_SELECTOR_VALIDATION_EVENTS,function(){var b=d("#"+a.AOD_QTY_SELECTOR_INPUT_ID).val();"undefined"!==typeof b&&d("#"+a.AOD_QTY_SELECTOR_INPUT_ID).val(b.substr(0,3))})});"use strict";g.when("A","jQuery","mash","all-offers-display-ajax-controller").register("all-offers-display-mash",
function(f,d,a,b){function c(a){a.preventDefault();a.stopPropagation()}function e(a){d("#all-offers-display #atc-spinner").addClass("aod-atc-display-none");a?(d("#all-offers-display #atc-success").removeClass("aod-atc-display-none"),d("#all-offers-display #atc-toast").removeClass("aod-atc-toast-progress-styles"),d("#all-offers-display #atc-toast").addClass("aod-atc-toast-success-styles")):(d("#all-offers-display #atc-failed").removeClass("aod-atc-display-none"),d("#all-offers-display #atc-toast").removeClass("aod-atc-toast-progress-styles"),
d("#all-offers-display #atc-toast").addClass("aod-atc-toast-failure-styles"))}function m(){d("#all-offers-display #atc-toast").removeClass("aod-atc-toast-failure-styles");d("#all-offers-display #atc-toast").removeClass("aod-atc-toast-success-styles");d("#all-offers-display #atc-failed").addClass("aod-atc-display-none");d("#all-offers-display #atc-success").addClass("aod-atc-display-none");d("#all-offers-display #atc-toast").addClass("aod-atc-display-none");d("#all-offers-display #atc-spinner").addClass("aod-atc-display-none");
k.removeClass("stop-scrolling");k.unbind("touchmove touchstart touchend touchcancel",c);d("#all-offers-display #atc-toast-overlay").addClass("aod-atc-display-none")}d=f.$;var k=d("body");return{addToCart:function(h){function l(a){e(0);setTimeout(function(){m()},2E3)}function p(b,c){c&&(e(1),setTimeout(function(){m()},2E3));b=parseInt(b.numActiveItemsInCart,10);a.cart.didUpdate({newCartQuantity:b})}function q(a){a&&a.ok?p(a,!0):a&&"perOfferingRestrictionViolated"===a.error?(m(0),p(a,!1)):l(f.aa_mash_failed_add_to_cart)}
function r(){l(f.aa_mash_failed_add_to_cart)}var f=h.strings;(function(a){d("#all-offers-display #atc-toast-overlay").removeClass("aod-atc-display-none");k.addClass("aod-stop-scrolling");k.bind("touchmove touchstart touchend touchcancel",c);d("#all-offers-display #atc-toast").addClass("aod-atc-toast-progress-styles");d("#all-offers-display #atc-toast").removeClass("aod-atc-display-none");d("#all-offers-display #atc-spinner").removeClass("aod-atc-display-none");b.call("/gp/aw/detail/ajax/add-to-cart/ref\x3d"+
a.refTag,{cache:!1,method:"post",params:a.inputs,timeout:a.timeout,success:q,failure:r})})(h)}}});"use strict";g.when("A").execute(function(f){f.declarative("aod-click-log",["click"],function(d){d=d.data;if("object"===typeof d&&d.type&&"function"===typeof n.uet&&"function"===typeof n.uex){var a="aodc:"+d.type;d.subtype&&(a+=":"+d.subtype);n.uet("bb",a,{wb:1});n.uex("ld",a,{wb:1})}})});g.when("A").register("all-offers-display-ajax-controller",function(f){var d=u,a,b;return{call:function(c,e){d&&d.abort();
a=e.success;b=e.error;e.success=function(b){a(b);d=u};e.error=function(a){b(a);d=u};d=f.ajax(c,e)}}});g.when("A","jQuery","all-offers-display-constants","all-offers-display-url-builder","all-offers-display-elements","all-offers-display-ajax-response-handler","all-offers-display-filter-state-manager","all-offers-display-filter-util","all-offers-display-utils","all-offers-display-state-manager","all-offers-display-ajax-controller","all-offers-display-olplink-handler","all_offers_display_filter_swatch_manager",
"aod-gestalt","aod-gestalt-assets-loader","all-offers-display-search-helper","all-offers-display-qty-util","all-offers-display-html-builder").register("all-offers-display-content-loader",function(f,d,a,b,c,e,m,k,h,l,p,q,r,t,x,v,y,C){function D(b,p){b&&"string"===typeof b&&b.trim()?c.getElement(c.elements.ALL_OFFERS_DISPLAY_KEY)&&(c.getElement(c.elements.ALL_OFFERS_DISPLAY_KEY)[0].insertAdjacentHTML("beforeend",b),"function"===typeof A&&A("cf",a.AOD_FULL_LOAD_CSM_LATENCY_METRIC_SCOPE_NAME,{wb:1}),
f.hide(c.getElement(c.elements.ALL_OFFERS_DISPLAY_SPINNER_KEY)),"0"===d("#"+a.AOD_OFFER_COUNT_HIDDEN_INPUT_HTML_ID).val()?e.noOfferAjaxResponseHandler():e.loadOfferAjaxResponseHandler(),C.createFooterLoadingComponent(),t.isGestalt()&&t.isCustomBuyboxQualified()&&(x.loadAssets(),t.initializeGestaltAod()),k.updateFilterCount(m.getCheckboxState()),r.updateFilterSwatches(),0<k.getSelectedFilterCount(m.getCheckboxState())&&r.triggerFilterSwatchWeblab(),y.initializeQuantity(),l.setAODLoadingState(!1),"function"===
typeof z&&z("ld",a.AOD_FULL_LOAD_CSM_LATENCY_METRIC_SCOPE_NAME,{wb:1})):q.redirectToOlp(p)}function E(b,e){b&&b.http&&b.http.status===a.AOD_NO_CONTENT_HTTP_STATUS?q.redirectToOlp(e):(f.hide(c.getElement(c.elements.ALL_OFFERS_DISPLAY_SPINNER_KEY)),B(),e="AllOffersDisplay ajax call error",b&&(b.responseURL?e="AllOffersDisplay ajax call error, URL:"+b.responseURL:b.http&&b.http.responseURL&&(e="AllOffersDisplay ajax call error, URL:"+b.http.responseURL)),g.log("ERROR",e),l.setAODLoadingState(!1),"function"===
typeof z&&z("ld",a.AOD_FULL_LOAD_CSM_LATENCY_METRIC_SCOPE_NAME,{wb:1}))}function F(e,d,l){f.show(c.getElement(c.elements.ALL_OFFERS_DISPLAY_SPINNER_KEY));var q=b.getDefaultParameterMap(e);b.addParams(q);b.updateDebugParameter();p.call(b.getAodUrl(),{method:"get",success:function(a){d(a,e)},error:function(a){l(a,e)},timeout:a.AOD_AJAX_TIMEOUT})}function G(){l.setAODOpenState(!0);c.getElement(c.elements.ALL_OFFERS_DISPLAY_KEY).show(function(){u({right:"0px"})})}function B(){l.setAODOpenState(!1);var b=
c.getElement(c.elements.ALL_OFFERS_DISPLAY_KEY).width()+50;u({right:"-"+b+"px"},function(){c.getElement(c.elements.ALL_OFFERS_DISPLAY_KEY).css(a.AOD_DISPLAY_NONE_STYLE)})}function u(b,e){f.animate(c.getElement(c.elements.ALL_OFFERS_DISPLAY_KEY),b,a.AOD_ANIMATION_TIMEOUT,a.AOD_ANIMATION_EASING_TYPE,e)}function w(b){var c=document.getElementById(a.AOD_DISPLAY_RELOAD_ELEMENT_ID);return c&&c.value===a.AOD_TRUE_STATE||l.isAodModified()||v.isSearchPageCall(b.data)?!0:!1}var A=n.uet,z=n.uex;return{loadAllAodBlocks:function(b){w(b)&&
(l.setAODLoadingState(!0),F(b,D,E),c.getElement(c.elements.AOD_DISPLAY_RELOAD).val(a.AOD_FALSE_STATE),l.setAodModifiedState(!1))},showAod:function(e){"function"===typeof A&&A("bb",a.AOD_FULL_LOAD_INCOMPLETE_CSM_LATENCY_METRIC_SCOPE_NAME,{wb:1});var p=c.getElement(c.elements.AOD_SUPERLEAF_AVAILABILITY_SELECTOR);p&&0<p.size()&&p.css(a.AOD_DISPLAY_ATTRIBUTE_NAME)===a.AOD_DISPLAY_NONE_VALUE&&(p.find("#"+a.AOD_SIDESHEET_HTML_ID)&&p.find("#"+a.AOD_SIDESHEET_HTML_ID).remove(),p.find("#"+a.AOD_BACKGROUND_HTML_ID)&&
p.find("#"+a.AOD_BACKGROUND_HTML_ID).remove());var p=h.getCurrentAsin(e.data),d=k.getConditionFromDeclarativeParams(e.data,a.AOD_CONDITION_ALL_TEXT),q=k.getConditionsApplicableForInputCondition(d),v=l.hasOpeningToClosingStateChanged(q,p);v&&(l.setAodModifiedState(!0),l.setPreviousAsinRetrieved(p));w(e)&&(b.resetParameterMap(),c.resetQueriedElements(),h.resetAODElements(),m.clearAllCheckboxes(),r.setExpandedModeFalse());k.setInitialFiltersIfStateChange(v,d,q);f.show(c.getElement(c.elements.AOD_BACKGROUND_KEY));
c.getElement(c.elements.AOD_BACKGROUND_KEY)&&f.show(c.getElement(c.elements.AOD_BACKGROUND_KEY));h.increaseZIndexSuperleaf();h.decreaseZIndexCNAD();h.disableScroll();G();n.history.state&&n.history.state.page===a.AOD_STATE||n.history.pushState({page:a.AOD_STATE},null);h.disableAppOverlay&&h.disableAppOverlay()},closeAod:function(){l.isAODLoading()&&"function"===typeof z&&z("ld",a.AOD_FULL_LOAD_INCOMPLETE_CSM_LATENCY_METRIC_SCOPE_NAME,{wb:1});h.decreaseZIndexSuperleaf();h.increaseZIndexCNAD();B();h.enableScroll();
l.setClosingState();b.setRefMarker(a.AOD_AOD_CLOSE_FILTER_CLEAR_REF_MARKER);f.hide(c.getElement(c.elements.AOD_BACKGROUND_KEY));c.getElement(c.elements.AOD_BACKGROUND_KEY)&&f.hide(c.getElement(c.elements.AOD_BACKGROUND_KEY));h.enableAppOverlay&&h.enableAppOverlay();l.resetAODStates()}}});g.when("A","jQuery","all-offers-display-constants","all-offers-display-elements","all-offers-display-ajax-response-handler","all-offers-display-filter-state-manager","all-offers-display-filter-util","all_offers_display_filter_swatch_manager",
"all-offers-display-html-builder").register("all-offers-display-b2b-content-loader",function(f,d,a,b,c,e,m,k,h){var l=n.uet,p=n.uex;return{handleAodSuccessResponsePostLoad:function(q,r){b.getElement(b.elements.ALL_OFFERS_DISPLAY_KEY).html(q);m.updateFilterCount(e.getCheckboxState());k.updateFilterSwatches();0<m.getSelectedFilterCount(e.getCheckboxState())&&k.triggerFilterSwatchWeblab();"function"===typeof l&&l("cf",r,{wb:1});b.resetQueriedElements();"0"===d("#"+a.AOD_OFFER_COUNT_HIDDEN_INPUT_HTML_ID).val()?
c.noOfferAjaxResponseHandler():c.loadOfferAjaxResponseHandler();h.createFooterLoadingComponent();"function"===typeof p&&p("ld",r,{wb:1})},handleAodErrorResponsePostLoad:function(a,b){g.log("ERROR",a&&a.responseURL?"AllOffersDisplay ajax call error, URL:"+a.responseURL:"AllOffersDisplay ajax call error");"function"===typeof p&&p("ld",b,{wb:1})}}});g.when("A","jQuery","all-offers-display-constants","all-offers-display-pagination","all-offers-display-pagination-display-components","all-offers-display-delivery-promise-handler").register("all-offers-display-ajax-response-handler",
function(f,d,a,b,c,e){return{noOfferAjaxResponseHandler:function(){d("#"+a.AOD_FILTER_OFFER_COUNT_STRING_DIV_ID).addClass(a.AOD_NO_OFFERS_NORMAL_FONT_CLASS);d("#"+a.AOD_SORT_DETAILS_STRING_DIV_ID).css(a.AOD_DISPLAY_NONE_STYLE);d("#"+a.AOD_SCROLL_DIV_HTML_ID).css(a.AOD_OVERFLOW_X_HIDDEN_STYLE);d("#"+a.AOD_OFFER_LIST_HTML_ID).addClass(a.AOD_ZERO_OFFER_CLASS);d("#"+a.AOD_FILTER_NO_OFFER_COLUMN_ID).addClass(a.AOD_FILTER_NO_OFFER_STRING_STYLE_CLASS);d("#"+a.AOD_B2B_SORT_DETAILS_MESSAGE_DIV_ID).css(a.AOD_DISPLAY_NONE_STYLE);
d("#"+a.AOD_FILTER_NO_OFFER_COUNT_HEADING_DIV_ID).removeClass(a.AUI_HIDE_ELEMENT_CSS_NAME);e.executeHandlers();c.hideFooter()},loadOfferAjaxResponseHandler:function(){d("#"+a.AOD_FILTER_OFFER_COUNT_STRING_DIV_ID).removeClass(a.AOD_NO_OFFERS_NORMAL_FONT_CLASS);d("#"+a.AOD_SORT_DETAILS_STRING_DIV_ID).css(a.AOD_DISPLAY_BLOCK_STYLE);d("#"+a.AOD_SCROLL_DIV_HTML_ID).css(a.AOD_OVERFLOW_SCROLL_STYLE);d("#"+a.AOD_OFFER_LIST_HTML_ID).removeClass(a.AOD_ZERO_OFFER_CLASS);d("#"+a.AOD_FILTER_NO_OFFER_COLUMN_ID).removeClass(a.AOD_FILTER_NO_OFFER_STRING_STYLE_CLASS);
d("#"+a.AOD_B2B_SORT_DETAILS_MESSAGE_DIV_ID).css(a.AOD_DISPLAY_INLINE_STYLE);d("#"+a.AOD_FILTER_NO_OFFER_COUNT_HEADING_DIV_ID).addClass(a.AUI_HIDE_ELEMENT_CSS_NAME);b.initialisePagination();e.executeHandlers()}}});g.when("A","jQuery","all-offers-display-constants","all-offers-display-html-builder","all-offers-display-content-loader","all-offers-display-url-builder","all-offers-display-url-helper").execute("all-offers-display-enable-compare",function(f,d,a,b,c,e,m){function k(b){var c;var e=0;for(c in a.DP_URL_FORMAT){var d=
a.DP_URL_FORMAT[c];if(-1!==b.indexOf(d)){e=b.indexOf(d)+d.length;break}}0==e?c=null:(e=b.slice(e,e+10),c=/^[0-9][0-9]{8}[0-9X]|[A-Za-z][A-Za-z0-9]{9}$/.test(e)?e:null);if(null==c)return{};e={};e[a.ASIN]=c;b=m.getQueryParamStructFromUrl(b);for(var l in a.AOD_DEFAULT_PARAMS)c=a.AOD_DEFAULT_PARAMS[l],b[c]&&(e[c]=b[c]);return e}function h(d,l){d={data:d};b.createAODContainer();c.showAod(d);(l=m.getRefMarkerFromUrl(l))&&l===a.OLP_AOD_REDIR?e.setRefMarker(a.OLP_AOD_REDIR):e.setRefMarker(a.AUTO_LOAD_AOD);
c.loadAllAodBlocks(d)}-1!==n.location.href.indexOf(a.AOD_ENABLE_AOD_AUTO_LOAD)&&d(n).load(function(){var a=d("[data-action\x3dshow-all-offers-display]");0<a.length&&a.find("a").click()});if(-1!==n.location.href.indexOf(a.HASH_AOD_SMALL)||-1!==n.location.href.indexOf(a.HASH_AOD_CAPS)){f=n.location.href;var l=k(f);l&&l.asin&&h(l,f)}});"use strict";g.when("A","jQuery","all-offers-display-constants").register("all-offers-display-filter-state-manager",function(f,d,a){function b(a,b,c){a?(a=c.indexOf(b),
c=c.slice(0,a).concat(c.slice(a+1))):c.push(b);return c}function c(){for(var b=document.getElementsByClassName(a.AOD_FILTER_CHECKBOX_ID),c=0;c<b.length;c++)if(b[c].classList.contains(a.AOD_FILTER_CHECKBOX_ID))for(var e=b[c].getElementsByTagName(a.AOD_INPUT),d=0;d<e.length;d++)e[d].checked=!1}function e(){c();for(var b=Object.keys(h),e=0;e<b.length;e++)for(var d=h[b[e]],k=0;k<d.length;k++)for(var f=document.querySelectorAll("#"+d[k]),m=0;m<f.length;m++)f[m].classList.contains(a.AOD_FILTER_CHECKBOX_ID)&&
(f[m].getElementsByTagName(a.AOD_INPUT)[0].checked=!0)}function m(a){for(var b=Object.keys(a),c=0;c<b.length;c++)a[b[c]]||delete a[b[c]];return a}var k=JSON.parse(a.AOD_DEFAULT_CHECKBOX_STATE),h={};return{getSelectedFiltersMap:function(){return h},getCheckboxState:function(){return m(k)},setSelectedFiltersMap:function(a){h=a},setCheckboxState:function(a){k=m(a)},clearAllCheckboxes:function(){h={};k=JSON.parse(a.AOD_DEFAULT_CHECKBOX_STATE);c()},recordClick:function(c,d){(c===a.CONDITION_OPEN_BOX||
d===a.CONDITION_OPEN_BOX)&&h[a.CONDITION_USED]&&0<h[a.CONDITION_USED].length&&(h[a.CONDITION_OPEN_BOX]=a.OPENBOX_SELECTED_FILTER,delete h[a.CONDITION_USED]);if(0===d.length){d=h&&h[c]&&0<h[c].length;var f=document.getElementById(a.AOD_SIDESHEET_HTML_ID).getElementsByClassName(c),m=[];d&&(m=h[c]);m=b(d,c,m);if(f&&0<f.length)for(var t=0;t<f.length;t++){var g=f[t];d?delete k[g.id]:k[g.id]=!0;m=b(d,g.id,m)}else k[c]=!d;h[c]=m}else f=[],f.push(d),h[d]&&0<h[d].length&&(f=h[d]),k[c]?(f=b(k[c],c,f),delete k[c]):
(k[c]=!0,f=b(!1,c,f)),1===Object.keys(f).length&&(f=[]),h[d]=f;e();return k},updateCheckboxState:e}});g.when("A","jQuery","all-offers-display-constants","all-offers-display-url-builder","all-offers-display-pagination","all-offers-display-elements","all-offers-display-ajax-response-handler","all-offers-display-ajax-controller","all-offers-display-filter-state-manager","all_offers_display_filter_swatch_manager").register("all-offers-display-filter-util",function(f,d,a,b,c,e,m,k,h,l){function p(b){e.getElement(e.elements.AOD_OFFER_LIST_KEY).html(b);
"function"==typeof uet&&uet("cf",a.AOD_FILTERS_CSM_LATENCY_METRIC_SCOPE_NAME,{wb:1});e.getElement(e.elements.AOD_FILTER_OFFER_COUNT_STRING_DIV_KEY).html(d("#"+a.AOD_OFFER_COUNT_STRING_DIV_ID).val());"0"===d("#"+a.AOD_OFFER_COUNT_HIDDEN_INPUT_HTML_ID).val()?m.noOfferAjaxResponseHandler():m.loadOfferAjaxResponseHandler();"function"==typeof uex&&uex("ld",a.AOD_FILTERS_CSM_LATENCY_METRIC_SCOPE_NAME,{wb:1})}function q(b,c,e){g.log("ERROR","AllOffersDisplay");"function"==typeof uex&&uex("ld",a.AOD_FILTERS_CSM_LATENCY_METRIC_SCOPE_NAME,
{wb:1})}return{updateFilterCount:function(b){b=Object.keys(b).length-1;0<b?d("#"+a.AOD_FILTER_STRING_ID).text(d("#"+a.AOD_FILTER_SELECTED_COUNT_ID).val()+" ("+b+")"):d("#"+a.AOD_FILTER_STRING_ID).text(d("#"+a.AOD_FILTER_SELECTED_COUNT_ID).val())},getSelectedFilterCount:function(a){return Object.keys(a).length-1},fetchAodContent:function(e){c.resetPagination();b.addParam(a.AOD_FILTER_REQUEST_KEY,JSON.stringify(e));b.addParam(a.AOD_ONLY_RENDER_OFFER_LIST_PARAM,"true");k.call(b.getAodUrl(),{method:"get",
success:p,error:q,timeout:a.AOD_AJAX_TIMEOUT})},getConditionsApplicableForInputCondition:function(b){return b&&(b=b.toLowerCase().trim(),a.CONDITIONS_MAP[b])?(b=a.CONDITIONS_MAP[b],b[a.AOD_CONDITION_ALL_TEXT]=!0,b):JSON.parse(a.AOD_DEFAULT_CHECKBOX_STATE)},getConditionFromDeclarativeParams:function(a,b){return a&&"object"===typeof a&&a.condition?a.condition.toLowerCase().trim():b},setInitialFiltersIfStateChange:function(c,e,d){if(c&&e!==a.AOD_CONDITION_ALL_TEXT){c=Object.keys(d);for(d=0;d<c.length;d++){var k=
c[d];k!==a.AOD_CONDITION_ALL_TEXT&&(k===e?h.recordClick(k,""):h.recordClick(k,e))}b.addParam(a.AOD_FILTER_REQUEST_KEY,JSON.stringify(h.getCheckboxState()))}}}});g.when("A","jQuery","all-offers-display-constants","all-offers-display-url-builder","all-offers-display-pagination","all-offers-display-ajax-controller","all-offers-display-b2b-content-loader").register("all-offers-display-b2b-filter-util",function(f,d,a,b,c,e,m){function k(b){m.handleAodSuccessResponsePostLoad(b,a.AOD_FILTERS_CSM_LATENCY_METRIC_SCOPE_NAME)}
function h(b){m.handleAodErrorResponsePostLoad(b,a.AOD_FILTERS_CSM_LATENCY_METRIC_SCOPE_NAME)}return{fetchAodContent:function(d){c.resetPagination();b.addParam(a.AOD_FILTER_REQUEST_KEY,JSON.stringify(d));e.call(b.getAodUrl(),{method:"get",success:k,error:h,timeout:a.AOD_AJAX_TIMEOUT})}}});g.when("A","jQuery","all-offers-display-constants").register("all-offers-display-filter-actions",function(f,d,a){function b(){return!(0<d(c+":visible").length)}var c="#"+a.AOD_FILTER_SHOW_ARROW_ID,e="#"+a.AOD_FILTER_HIDE_ARROW_ID,
m="#"+a.AOD_FILTER_CONTAINER_ID;return{isFilterOpen:b,openFilter:function(){b()||(d(c).css(a.AOD_DISPLAY_NONE_STYLE),d(e).css(a.AOD_DISPLAY_BLOCK_STYLE),d(m).css(a.AOD_DISPLAY_BLOCK_STYLE))},closeFilter:function(){b()&&(d(c).css(a.AOD_DISPLAY_BLOCK_STYLE),d(e).css(a.AOD_DISPLAY_NONE_STYLE),d(m).css(a.AOD_DISPLAY_NONE_STYLE))}}});g.when("A","jQuery","all-offers-display-constants","all-offers-display-elements","all-offers-display-delivery-promise-counter").register("all-offers-display-delivery-promise-handler",
function(f,d,a,b,c){function e(b,e,h,k){e=document.querySelectorAll("#"+a.AOD_SIDESHEET_HTML_ID+" "+e);for(var p=0;p<e.length;p++){var f=e[p],l=f.dataset.messageid;if(l&&(b[l]&&!k&&b[l].stopTimer(),!b[l]||!k)){var m;a:{m=h;var q=f.dataset.secondsleft,f=d(f).closest(a.AOD_FASTTRACK_CSS_SELECTOR),f=f[0];if(q&&f&&(q=parseInt(q),0<q)){m=new c.fastTrackCountDown(q,f.id+" "+m);break a}m=void 0}b[l]=m}}return b}function m(a){l(b.getElementIdentifier(b.elements.AOD_OFFER_LIST_KEY),a)}function k(a){l(b.getElementIdentifier(b.elements.AOD_PINNED_OFFER),
a)}function h(a){l(b.getElementIdentifier(b.elements.AOD_STICKY_PINNED_OFFER),a)}function l(c,e){var k=document.querySelectorAll(c+" "+a.AOD_FASTTRACK_CSS_SELECTOR);g(k,r,e,c);k=document.querySelectorAll(c+" "+a.AOD_SCHEDULED_DELIVERY_CSS_SELECTOR);g(k,q,e,c);for(var k=document.querySelectorAll(c+" "+a.AOD_DYNAMIC_DELIVERY_DIV_SELECTOR),h=0;h<k.length;h++){var f=k[h];if(!e||!f.classList.contains(a.AOD_DDM_PROMISE_EXPANDED_CSS_NAME)){var l=f.querySelector(a.AOD_DDM_MESSAGE_DIV_SELECTOR),m=l.firstElementChild;
null!==m&&"BR"===m.tagName&&l.removeChild(m);var t=parseInt(d(f).css("line-height"),10);if(l=l.querySelector(a.AOD_UPSELL_MESSAGE_DIV_SELECTOR))l=l.parentElement;l&&null!==m&&"BR"!==m.tagName&&l.scrollHeight>t&&(m=d(f).closest(a.AOD_DELIVERY_PROMISE_COLUMN_CSS_SELECTOR),p(m[0]),m=m.closest(a.AOD_DELIVERY_PROMISE_CSS_SELECTOR).find(a.AOD_DELIVERY_MORE_ELEMENT_CSS_SELECTOR),m=m[0],f.classList.add(a.AOD_DDM_PROMISE_EXPANDED_CSS_NAME),l.classList.add(a.AUI_HIDE_ELEMENT_CSS_NAME),c!==b.getElementIdentifier(b.elements.AOD_PINNED_OFFER)&&
c!==b.getElementIdentifier(b.elements.AOD_STICKY_PINNED_OFFER)&&m.classList.remove(a.AUI_HIDE_ELEMENT_CSS_NAME),m.classList.add(a.AOD_DDM_MORE_IDENTIFIER))}}}function p(b){var c=b.parentElement.querySelector(a.AOD_DELIVERY_BOTTOMSHEET_CSS_SELECTOR);if(c){var e=b.cloneNode(!0);e.classList.add(a.AOD_BOTTOM_SHEET_PADDING_CLASS);e.classList.add(a.AOD_DELIVERY_MEASURE_HEIGHT_CSS_NAME);d(b).append(d(e));b.dataset.bottomsheetheight=e.offsetHeight;d(c).append(d(e));e.classList.remove(a.AOD_DELIVERY_MEASURE_HEIGHT_CSS_NAME)}}
function q(b,c,e){b=b.querySelector(a.AOD_SCHEDULED_DELIVERY_ROOT_DIV_SELECTOR);b.insertBefore(c,b.firstElementChild.nextSibling)}function r(b,c,e){var k=b.querySelector(a.AOD_DELIVERY_MESSAGE_DIV_SELECTOR+", "+a.AOD_UPSELL_MESSAGE_DIV_SELECTOR+", "+a.AOD_AMAZON_DAY_MESSAGE_DIV_SELECTOR);e.classList.add(a.AUI_GRID_8_CSS);e.classList.remove(a.AUI_GRID_12_CSS);k.offsetWidth<b.offsetWidth&&((b=k.querySelector("br"))?b.parentNode.insertBefore(c,b):d(k).append(d(c)),e.classList.add(a.AUI_GRID_12_CSS))}
function t(a){return a===u||null==a||0>=a.length?!0:!1}function g(c,e,k,h){for(e=0;e<c.length;e++){var f=c[e],l=f.querySelector(a.AOD_FASTTRACK_UPSELL_DIV_SELECTOR),m=f.querySelector(a.AOD_FASTTRACK_DELIVERY_PROMISE_DIV_SELECTOR);if(t(l)||!(l.classList.contains(a.AOD_FASTTRACK_UPSELL_HIDE_CLASS)||k&&l.classList.contains(a.AOD_FASTTRACK_UPSELL_SHOW_CLASS))){if(!t(l))var q=parseInt(d(l).css("line-height"),10),r=l.scrollHeight;!t(m)&&!t(l)&&r>q&&(f=d(f).closest(a.AOD_DELIVERY_PROMISE_COLUMN_CSS_SELECTOR),
p(f[0]),f=f.closest(a.AOD_DELIVERY_PROMISE_CSS_SELECTOR).find(a.AOD_DELIVERY_MORE_ELEMENT_CSS_SELECTOR),f=f[0],h!==b.getElementIdentifier(b.elements.AOD_PINNED_OFFER)&&h!==b.getElementIdentifier(b.elements.AOD_STICKY_PINNED_OFFER)&&f.classList.remove(a.AUI_HIDE_ELEMENT_CSS_NAME),l.classList.add(a.AUI_HIDE_ELEMENT_CSS_NAME),l.classList.add(a.AOD_FASTTRACK_UPSELL_HIDE_CLASS))}}}return{executeHandlers:function(b){var c=f.state(a.AOD_PAGE_STATE);"undefined"===typeof c&&(c={});c=e(c,a.AOD_DELIVERY_MESSAGE_DATA_SELECTOR,
a.AOD_DELIVERY_MESSAGE_DIV_SELECTOR,b);c=e(c,a.AOD_UPSELL_MESSAGE_DATA_SELECTOR,a.AOD_UPSELL_MESSAGE_DIV_SELECTOR,b);c=e(c,a.AOD_AMAZON_DAY_MESSAGE_DATA_SELECTOR,a.AOD_AMAZON_DAY_MESSAGE_DIV_SELECTOR,b);f.state(a.AOD_PAGE_STATE,c);k(!0);h(!0);m(b)},truncatePinnedOfferDeliveryMessage:k,truncateStickyPinnedOfferDeliveryMessage:h,truncateOfferListDeliveryMessage:m}});g.when("A","jQuery","all-offers-display-constants").register("all-offers-display-delivery-promise-counter",function(f,d,a){return{fastTrackCountDown:function(b,
c){function e(){var b=new Date,c=b.getHours();k>c&&(c+=24);var g=b.getMinutes(),b=b.getSeconds();l=3600*c+60*g+b;c=f-l;if(1>c&&document.querySelectorAll){var b=document.querySelectorAll(a.AOD_DELIVERY_FASTTRACK),n=!1;if(b){for(g=0;g<b.length;++g)b[g].querySelector("#"+d)?b[g].style.display="none":n=!0;if(n&&(b=document.querySelectorAll("#"+d)))for(g=0;g<b.length;++g)b[g].style.display="none"}}c/=86400;g=Math.floor(c);c=24*(c-g);b=Math.floor(c);c=Math.floor(60*(c-b));p=setTimeout(e,1E3);g=24*g+b;b=
1==g?"hr":"hrs";n=1==c?"min":"mins";g=0==g?c+" "+n:0==c?g+" "+b:g+" "+b+" "+c+" "+n;if(t.length&&(q!=c||r)){for(b=0;n=t[b++];)n.innerHTML=g;q=c;r=!1}}var d=c,k=(new Date).getHours(),f,l,p,q,r=!0,t=function(a){var b=[];if(document.querySelectorAll)for(var c=document.querySelectorAll("#"+d),e=0;e<c.length;++e)for(var f=c[e].querySelectorAll("."+a),k=0;f&&k<f.length;k++)b.push(f[k]);return b}(a.AOD_FASTTRACK_COUNTDOWN_CLASS);1>t.length&&document.getElementById(d)&&document.getElementById(a.AOD_FASTTRACK_COUNTDOWN)&&
t.push(document.getElementById(a.AOD_FASTTRACK_COUNTDOWN));(function(a){var b=new Date,c=b.getHours(),d=b.getMinutes(),b=b.getSeconds();f=3600*c+60*d+b;f+=a;e()})(b);return{stopTimer:function(){clearTimeout(p)}}}}});g.when("A","jQuery","all-offers-display-constants","all-offers-display-elements").register("all-offers-display-delivery-promise-expander",function(f,d,a,b){function c(b){if(b.hasClass(a.AOD_DDM_MORE_IDENTIFIER)){var c=b.closest(a.AOD_DELIVERY_PROMISE_CSS_SELECTOR).find(a.AOD_DELIVERY_PROMISE_COLUMN_CSS_SELECTOR).find(a.AOD_DDM_UPSELL_MESSAGE_SELECTOR);
b.addClass(a.AUI_HIDE_ELEMENT_CSS_NAME);c&&(c=c.parent(),c.removeClass(a.AUI_HIDE_ELEMENT_CSS_NAME))}else{var d=b.closest(a.AOD_DELIVERY_PROMISE_CSS_SELECTOR).find(a.AOD_DELIVERY_PROMISE_COLUMN_CSS_SELECTOR),c=d.find(a.AOD_FASTTRACK_UPSELL_DIV_SELECTOR),d=d.find(a.AOD_FASTTRACK_DELIVERY_PROMISE_DIV_SELECTOR);c.removeClass(a.AUI_HIDE_ELEMENT_CSS_NAME);c.addClass(a.AOD_FASTTRACK_UPSELL_SHOW_CLASS);c.removeClass(a.AOD_FASTTRACK_UPSELL_HIDE_CLASS);d.removeClass(a.AUI_HIDE_ELEMENT_CSS_NAME);b.addClass(a.AUI_HIDE_ELEMENT_CSS_NAME)}}
return{expandOfferListDeliveryMessage:function(b){b=d(b.$event.target).closest(a.AOD_DELIVERY_MORE_ELEMENT_CSS_SELECTOR);c(b)},expandPinnedOfferDeliveryMessage:function(){var e=b.getElementIdentifier(b.elements.AOD_PINNED_OFFER)+" "+a.AOD_DELIVERY_MORE_ELEMENT_CSS_SELECTOR,e=d(e);c(e)},expandStickyPinnedOfferDeliveryMessage:function(){var e=b.getElementIdentifier(b.elements.AOD_STICKY_PINNED_OFFER)+" "+a.AOD_DELIVERY_MORE_ELEMENT_CSS_SELECTOR,e=d(e);c(e)}}});g.when("A","jQuery","all-offers-display-elements",
"all-offers-display-polyfill","all-offers-display-constants").register("all-offers-display-pinned-offer-image-animation",function(f,d,a,b,c){function e(){var b=a.getElement(a.elements.AOD_STICKY_PINNED_OFFER),c="-"+b.outerHeight()+"px";b.css({top:c})}var m=0,k=!1,h=null,l=!1,p=!1,q=b.requestAnimationFrame();return{addPinnedOfferImageAnimation:function(){(h=a.getElement(a.elements.AOD_SCROLL_DIV_KEY))?h.scroll(function(){k||(q(function(){var b=h[0].scrollTop;l=m<b?!0:!1;m=h[0].scrollTop;l&&!p&&30<
b?(a.getElement(a.elements.AOD_STICKY_PINNED_OFFER).addClass(c.AOD_STICKY_OFFER_SHOW_POSITION_CLASS),p=!0):!l&&p&&30>b&&(b=a.getElement(a.elements.AOD_STICKY_PINNED_OFFER),e(),b.removeClass(c.AOD_STICKY_OFFER_SHOW_POSITION_CLASS),p=!1);k=!1}),k=!0)}):n.ueLogError&&n.ueLogError({logLevel:"ERROR",attribution:"aod_scroll_element_not_found",message:"[Attempt to add scroll event to AOD scroll element. access undefined element]"})},setStickyOfferTopOffset:e}});"use strict";g.when("A","jQuery","all-offers-display-constants",
"all-offers-display-elements").register("all-offers-display-pagination-display-components",function(f,d,a,b){function c(){b.getElement(b.elements.AOD_FOOTER_KEY).addClass(a.AOD_HIDE_ELEMENT_CSS_CLASS);b.getElement(b.elements.AOD_FOOTER_SPINNER_KEY).addClass(a.AOD_HIDE_ELEMENT_CSS_CLASS);b.getElement(b.elements.AOD_FOOTER_EOR_KEY).addClass(a.AOD_HIDE_ELEMENT_CSS_CLASS);b.getElement(b.elements.AOD_FOOTER_SHOW_MORE_KEY).addClass(a.AOD_HIDE_ELEMENT_CSS_CLASS)}return{displayEndOfResults:function(){c();
b.getElement(b.elements.AOD_FOOTER_EOR_KEY).removeClass(a.AOD_HIDE_ELEMENT_CSS_CLASS);b.getElement(b.elements.AOD_FOOTER_KEY).removeClass(a.AOD_HIDE_ELEMENT_CSS_CLASS)},displayShowMore:function(){c();b.getElement(b.elements.AOD_FOOTER_SHOW_MORE_KEY).removeClass(a.AOD_HIDE_ELEMENT_CSS_CLASS);b.getElement(b.elements.AOD_FOOTER_KEY).removeClass(a.AOD_HIDE_ELEMENT_CSS_CLASS)},displaySpinner:function(){c();b.getElement(b.elements.AOD_FOOTER_SPINNER_KEY).removeClass(a.AOD_HIDE_ELEMENT_CSS_CLASS);b.getElement(b.elements.AOD_FOOTER_KEY).removeClass(a.AOD_HIDE_ELEMENT_CSS_CLASS)},
hideFooter:function(){b.getElement(b.elements.AOD_FOOTER_KEY).addClass(a.AOD_HIDE_ELEMENT_CSS_CLASS)},hideAllComponents:c}});g.when("A","jQuery","all-offers-display-constants","all-offers-display-pagination-display-components","all-offers-display-url-builder","all-offers-display-elements","all-offers-display-delivery-promise-handler","all-offers-display-ajax-controller","all-offers-display-state-manager").register("all-offers-display-pagination",function(f,d,a,b,c,e,m,k,h){function l(){v*a.AOD_PAGE_SIZE>=
y?0<y&&b.displayEndOfResults():3>v?e.getElement(e.elements.AOD_SCROLL_DIV_KEY).bind("scroll",q):b.displayShowMore()}function p(){e.getElement(e.elements.AOD_SCROLL_DIV_KEY).unbind("scroll",q)}function q(){e.getElement(e.elements.AOD_SCROLL_DIV_KEY)[0].offsetHeight+e.getElement(e.elements.AOD_SCROLL_DIV_KEY)[0].scrollTop+1>=e.getElement(e.elements.AOD_SCROLL_DIV_KEY)[0].scrollHeight&&g()}function g(){var e;e=y>v*a.AOD_PAGE_SIZE?!0:!1;e&&!h.isLoadingOffers()&&("function"==typeof uet&&uet("bb",a.AOD_PAGINATION_CSM_LATENCY_METRIC_SCOPE_NAME,
{wb:1}),v++,h.setLoadingOffersState(!0),c.setRefMarker(a.AOD_PAGINATION_REF_MARKER_PREFIX+v),c.addParam(a.AOD_ONLY_RENDER_OFFER_LIST_PARAM,"true"),c.addParam(a.AOD_PAGE_NO_PARAM,v),b.displaySpinner(),p(),k.call(c.getAodUrl(),{method:"get",success:t,error:x,timeout:a.AOD_AJAX_TIMEOUT}))}function t(c){h.setLoadingOffersState(!1);b.hideFooter();e.getElement(e.elements.AOD_OFFER_LIST_KEY)[0].insertAdjacentHTML("beforeend",c);"function"==typeof uet&&uet("cf",a.AOD_PAGINATION_CSM_LATENCY_METRIC_SCOPE_NAME,
{wb:1});l();m.executeHandlers(!0);"function"==typeof uex&&uex("ld",a.AOD_PAGINATION_CSM_LATENCY_METRIC_SCOPE_NAME,{wb:1})}function x(c){h.setLoadingOffersState(!1);b.displayEndOfResults();"function"==typeof uex&&uex("ld",a.AOD_PAGINATION_CSM_LATENCY_METRIC_SCOPE_NAME,{wb:1});n.ueLogError&&n.ueLogError({logLevel:"ERROR",attribution:"aod_ajax_error",message:"[Ajax call failed]"})}var v,y,u;return{loadNextPage:g,resetPagination:function(){v=1;h.setLoadingOffersState(!1);c.removeParam(a.AOD_ONLY_RENDER_OFFER_LIST_PARAM);
c.addParam(a.AOD_PAGE_NO_PARAM,v);b.hideAllComponents();p()},initialisePagination:function(){u=d("#"+a.AOD_OFFER_COUNT_HIDDEN_INPUT_HTML_ID);y=parseInt(u.val(),10);v=1;h.setLoadingOffersState(!1);l()}}});g.when("A","jQuery","all-offers-display-constants","all-offers-display-content-loader","all-offers-display-state-manager").execute("all-offers-display-history-manager",function(f,d,a,b,c){n.onpopstate=function(a){c.isAODOpen()&&b.closeAod()}});g.when("A","jQuery","all-offers-display-filter-state-manager",
"all-offers-display-constants").register("all-offers-display-state-manager",function(f,d,a,b){var c=!1,e=!1,m=!1,k=!1,h=!0,l=JSON.parse(b.AOD_DEFAULT_CHECKBOX_STATE),p=null;return{setAODOpenState:function(a){c=a},setAODLoadingState:function(a){e=a},setBottomSheetOpenState:function(a){m=a},setLoadingOffersState:function(a){k=a},setAodModifiedState:function(a){h=a},setPreviousAsinRetrieved:function(a){p=a},isAODOpen:function(){return c},isAODLoading:function(){return e},isLoadingOffers:function(){return k},
isBottomSheetOpen:function(){return m},isAodModified:function(){return h},getPreviousAsinRetrieved:function(){return p},resetAODStates:function(){k=m=e=c=!1},setClosingState:function(){l=a.getCheckboxState()},hasOpeningToClosingStateChanged:function(a,b){var c=!1;if(a)a:if(c=l,Object.keys(a).length!==Object.keys(c).length)c=!0;else{for(var e=Object.keys(a),d=0;d<e.length;d++){var f=e[d];if(a[f]!==c[f]){c=!0;break a}}c=!1}return b?c||b!==p:c}}});g.register("all-offers-display-constants",function(){return{AOD_RELATIVE_URL:"/gp/aod/ajax",
AOD_WEBLAB_TRIGGER_URL:"/gp/aod/ajax/weblab-trigger.html?",AOD_AJAX_TIMEOUT:1E4,AOD_AJAX_METHOD:"post",AOD_ANIMATION_TIMEOUT:300,AOD_PAGE_SIZE:10,AOD_ANIMATION_EASING_TYPE:"ease-out",AOD_PAGE_STATE:"aodPageState",AOD_REF_MARKER_PREFIX:"/ref\x3d",AOD_WEBLAB_TREATMENT_KEY:"treatment",AOD_WEBLAB_NAME_KEY:"name",WEBLAB_TREATMENT_T1:"T1",WEBLAB_TREATMENT_T2:"T2",WEBLAB_TREATMENT_T3:"T3",WEBLAB_TREATMENT_C:"C",AOD_FUN_LOAD_WEBLAB_DESKTOP:"DP_ALL_OFFERS_DISPLAY_FUN_LOAD_DESKTOP_323159",AOD_FUN_LOAD_WEBLAB_MOBILE:"DP_ALL_OFFERS_DISPLAY_FUN_LOAD_MOBILE_323160",
ENABLE_AOD_ON_IE_WEBLAB:"ALL_OFFERS_DISPLAY_IE_DESKTOP_312902",AOD_REF_MARKER_URL_MATCHER:"/ref\x3d",AOD_SIDESHEET_HTML_ID:"all-offers-display",AOD_SPINNER_HTML_ID:"all-offers-display-spinner",AOD_BACKGROUND_HTML_ID:"aod-background",AOD_SCROLL_DIV_HTML_ID:"all-offers-display-scroller",AOD_OFFER_LIST_HTML_ID:"aod-offer-list",AOD_DEFAULT_PARAMS_ID:"all-offers-display-params",AOD_WEBLAB_TREATMENT_ID:"all-offers-display-weblab-treatment",AOD_WEBLAB_NAME_ID:"all-offers-display-weblab-name",AOD_DISPLAY_RELOAD_ELEMENT_ID:"all-offers-display-reload-param",
AOD_PPD_RIGHT_ELEMENT_ID:"ppd-right",AOD_SUPERLEAF_CSS_CLASS:"superleaf",AOD_TRUE_STATE:"true",AOD_FALSE_STATE:"false",AOD_IS_CUSTOMIZABLE_ASIN_ID:"all-offers-display-is-customizable-asin",AOD_IS_CUSTOM_BUYBOX_QUALIFIED:"aod-is-custom-buybox-qualified",HTML_ANCHOR_ELEMENT_KEY:"HTMLAnchorElement",HTML_INPUT_ELEMENT_KEY:"HTMLInputElement",AOD_CLOSE_FROM_CUSTOM_CONFIGURATOR:"aod-close-from-custom-configuration",AOD_CLOSE_BY_ESC_KEY:"aod-close-on-esc-action",AOD_DIV_FOR_FOCUS:"aod-div-for-focus",AOD_SHOW_WIDGET_ACTION:"show-all-offers-display",
SEARCH_AOD_SHOW_WIDGET_ACTION:"s-show-all-offers-display",AOD_CLOSE_WIDGET_ACTION:"close-all-offers-display",AOD_WIDGET_TRIGGER_EVENTS:"click",AOD_WIDGET_KEY_HANDLER:"click keydown",AOD_HIDE_ELEMENT_CSS_CLASS:"aod-hide",AOD_VISIBILITY_HIDDEN_CSS_CLASS:"aod-visibility-hidden",AOD_FOOTER_HTML_ID:"aod-footer",AOD_FOOTER_EOR_HTML_ID:"aod-end-of-results",AOD_FOOTER_SHOW_MORE_ID:"aod-show-more-offers",AOD_FOOTER_SPINNER_HTML_ID:"aod-offer-load-spinner",AOD_FOOTER_SPINNER_CONTAINER_HTML_ID:"aod-footer-spinner-container",
AOD_OFFER_COUNT_HIDDEN_INPUT_HTML_ID:"aod-total-offer-count",AOD_ONLY_RENDER_OFFER_LIST_PARAM:"isonlyrenderofferlist",AOD_PAGE_NO_PARAM:"pageno",AOD_PAGINATION_REF_MARKER_PREFIX:"aod_page_",AOD_DISPLAY_MAX_HEIGHT_NONE_STYLE:{"max-height":"none"},AOD_DISPLAY_BLOCK_STYLE:{display:"block"},AOD_DISPLAY_NONE_STYLE:{display:"none"},AOD_DISPLAY_ATTRIBUTE_NAME:"display",AOD_DISPLAY_NONE_VALUE:"none",AOD_DISPLAY_INLINE_STYLE:{display:"inline"},AOD_SHOW_FILTER_ACTION:"aod-show-filter-action",AOD_B2B_SHOW_FILTER_ACTION:"aod-b2b-show-filter-action",
AOD_FILTER_CHECKBOX_ID:"aod-filter-checkbox",AOD_NO_OFFERS_NORMAL_FONT_CLASS:"aod-no-offer-normal-font",AOD_INPUT:"input",AOD_TOGGLE_FILTER_CHECKBOX_ACTION:"aod-toggle-filter-checkbox",AOD_CLEAR_ALL_FILTER_ACTION:"aod-filter-clear-all",AOD_B2B_TOGGLE_FILTER_CHECKBOX_ACTION:"aod-toggle-b2b-filter-checkbox",AOD_B2B_CLEAR_ALL_FILTER_ACTION:"aod-b2b-filter-clear-all",AOD_FILTER_SHOW_ARROW_ID:"aod-filter-show",AOD_FILTER_HIDE_ARROW_ID:"aod-filter-hide",AOD_FILTER_CONTAINER_ID:"aod-filter-list",AOD_FILTER_CLEAR_REF_MARKER:"aod_f_clearAll",
AOD_MOBILE_FILTER_APPLY_REF_MARKER:"aod_mf_apply",AOD_AOD_CLOSE_FILTER_CLEAR_REF_MARKER:"aod_f_close",AOD_FILTER_MOUSE_LEAVE_EVENT:"aod-filter-container-hover",AOD_FILTER_NO_OFFER_STRING_STYLE_CLASS:"aod-no-offer-filter-col",AOD_FILTER_NO_OFFER_COLUMN_ID:"aod-no-offer-filter-col-id",AOD_PINNED_OFFER:"aod-pinned-offer",AOD_CONTAINER:"aod-container",AOD_DEFAULT_CHECKBOX_STATE:JSON.stringify({all:!0}),AOD_PINNED_OFFER_SHOW_MORE_ACTION:"aod-pinned-offer-show-more",AOD_PINNED_OFFER_SHOW_LESS_ACTION:"aod-pinned-offer-show-less",
AOD_PINNED_OFFER_SHOW_MORE_DIV_ID:"aod-pinned-offer-show-more-link",AOD_PINNED_OFFER_ADDITIONAL_CONTENT_DIV_ID:"aod-pinned-offer-additional-content",AOD_PINNED_OFFER_SHOW_LESS_DIV_ID:"aod-pinned-offer-show-less-link",AOD_PINNED_OFFER_SCROLL_TOP_ACTION:"aod-pinned-offer-scroll-top",AOD_CONDITION_TEXT_SECTION_CLASS:"expandable-text-section",AOD_CONDITION_TRUNCATED_TEXT_CLASS:"expandable-truncated-text",AOD_CONDITION_EXPAND_TEXT_CLASS:"expandable-expanded-text",AOD_MOQ_BOTTOM_SHEET_CLOSE_ACTION:"aod-moq-sheet-close-action",
AOD_MOQ_BOTTOM_SHEET_SHOW_ACTION:"aod-show-moq-sheet",AOD_BLOCK:"block",AOD_CONDITION_EXPAND_LINK_CLASS:"expandable-expand-action",AOD_CONDITION_REDUCE_LINK_CLASS:"expandable-reduce-action",AOD_CONDITION_EXPAND_TEXT_ACTION:"expand-text",AOD_CONDITION_REDUCE_TEXT_ACTION:"reduce-text",AOD_KEY_UP_EVENT:"keyup",AOD_KEY_DOWN_EVENT:"keydown",AOD_FOCUS_OUT_EVENT:"focusout",AOD_SCROLL_EVENT:"scroll",AOD_LOAD_OFFERS_ACTION_NAME:"aod-load-offers",AOD_OVERFLOW_HIDDEN_STYLE:{overflow:"hidden"},AOD_Z_INDEX_CSS_STYLE:"z-index",
AOD_SUPERLEAF_Z_INDEX_OPEN_VALUE:200,AOD_OVERFLOW_SCROLL_STYLE:{overflow:"scroll"},AOD_MOBILE_OVERFLOW_HIDDEN_STYLE:{overflow:"hidden",position:"fixed"},AOD_MOBILE_OVERFLOW_SCROLL_STYLE:{overflow:"scroll",position:""},AOD_OVERFLOW_X_HIDDEN_STYLE:{"overflow-x":"hidden"},AOD_OFFER_COUNT_STRING_DIV_ID:"aod-total-offer-count-string",AOD_SORT_DETAILS_STRING_DIV_ID:"aod-sort-details-string",AOD_B2B_SORT_DETAILS_MESSAGE_DIV_ID:"aod-b2b-sort-details-message",AOD_FILTER_OFFER_COUNT_STRING_DIV_ID:"aod-filter-offer-count-string",
AOD_FILTER_NO_OFFER_COUNT_HEADING_DIV_ID:"aod-filter-no-offer-count-heading",AOD_FILTER_REQUEST_KEY:"filters",AOD_FILTER_BOTTOM_SHEET_ID:"aod-filter-bottom-sheet-id",AOD_FUNCTION_STRING:"function",AOD_SCRIPT_STRING:"script",AOD_DELIVERY_MESSAGE_DATA_SELECTOR:".aod-delivery-message-data",AOD_UPSELL_MESSAGE_DATA_SELECTOR:".aod-upsell-message-data",AOD_AMAZON_DAY_MESSAGE_DATA_SELECTOR:".aod-amazon-day-message-data",AOD_DELIVERY_MESSAGE_DIV_SELECTOR:"#delivery-message",AOD_UPSELL_MESSAGE_DIV_SELECTOR:"#upsell-message",
AOD_AMAZON_DAY_MESSAGE_DIV_SELECTOR:"#amazon-day-message",AOD_FASTTRACK_CSS_SELECTOR:".aod-fasttrack",AOD_SCHEDULED_DELIVERY_CSS_SELECTOR:".aod-scheduled-delivery",AOD_SCHEDULED_DELIVERY_ROOT_DIV_SELECTOR:"#sd_buybox_root",AOD_DELIVERY_PROMISE_TRUNCATE_CSS_NAME:"aod-delivery-promise-truncate",AOD_DELIVERY_PROMISE_EXPANDED_CSS_NAME:"aod-delivery-promise-expanded",AOD_DELIVERY_PROMISE_COLUMN_CSS_SELECTOR:".aod-delivery-promise-column",AOD_DELIVERY_PROMISE_CSS_SELECTOR:".aod-delivery-promise",AOD_DELIVERY_MORE_ELEMENT_CSS_SELECTOR:".aod-delivery-more",
AOD_DELIVERY_BOTTOMSHEET_CSS_SELECTOR:".delivery_promise_bottomsheet",AOD_DELIVERY_MEASURE_HEIGHT_CSS_NAME:"aod-delivery-measure-height",AOD_DELIVERY_PROMISE_MORE_ACTION:"aod-delivery-more-action",AOD_FASTTRACK_UPSELL_DIV_SELECTOR:".aod-upsell-message",AOD_FASTTRACK_DELIVERY_PROMISE_DIV_SELECTOR:".aod-delivery-promise-message",AOD_FASTTRACK_UPSELL_SHOW_CLASS:"ft-upsell-message-show-show",AOD_FASTTRACK_UPSELL_HIDE_CLASS:"ft-upsell-message-show-hide",AOD_MOBILE_DELIVERY_CLOSE_ACTION:"aod-mobile-delivery-close-action",
AOD_DELIVERY_FASTTRACK:"#fast-track",AOD_FASTTRACK_COUNTDOWN_CLASS:"ftCountdownClass",AOD_FASTTRACK_COUNTDOWN:"ftCountdown",AOD_DYNAMIC_DELIVERY_DIV_SELECTOR:"#dynamicDeliveryMessage",AOD_DDM_MESSAGE_DIV_SELECTOR:"#ddmDeliveryMessage",AOD_DDM_UPSELL_MESSAGE_SELECTOR:"#upsell-message",AOD_DDM_PROMISE_EXPANDED_CSS_NAME:"aod-ddm-promise-expanded",AOD_DDM_MORE_IDENTIFIER:"aod-ddm-identifier",AOD_QTY_SELECTOR_LABEL_ID:"aod-qty-label",AOD_QTY_SELECTOR_INPUT_ID:"aod-qty-selector",AOD_QTY_SELECTOR_ACTIONS:"aod-qty-selector-actions",
AOD_QTY_SELECTOR_SUBMIT_EVENTS:"focusout keydown",AOD_QTY_SELECTOR_VALIDATION_EVENTS:"keyup",AOD_QTY_REQUEST_KEY:"qty",AOD_QTY_REF_MARKER_PREFIX:"aod_qty_",AOD_QTY_SELECTOR_CSM_LATENCY_METRIC_SCOPE_NAME:"aod-qty-load",AUI_HIDE_ELEMENT_CSS_NAME:"aok-hidden",AUI_GRID_8_CSS:"a-span8",AUI_GRID_12_CSS:"a-span12",AOD_BOTTOM_SHEET_PADDING_CLASS:"aod-bottom-sheet-padding",AOD_BOTTOM_SHEET_AGS_NOTE_STATE:"AOD_AGS_NOTE_BOTTOM_SHEET",AOD_STATE:"AOD",AOD_FILTER_SELECTED_COUNT_ID:"aod-filter-count-string",AOD_FILTER_STRING_ID:"aod-filter-string",
AOD_MOBILE_FILTER_DONE_ACTION:"aod-mobile-filter-done-action",AOD_B2B_MOBILE_FILTER_DONE_ACTION:"aod-b2b-mobile-filter-done-action",AOD_AGS_NOTE_TEXT_SECTION_CLASS:"ags-expandable-text-section",AOD_AGS_NOTE__EXPEND_TEXT_SECTION_CLASS:"ags-expandable-expanded-text-li",AOD_AGS_NOTE_EXPAND_LINK_CLASS:"expandable-expand-action",AOD_AGS_NOTE_TRUNCATED_TEXT_CLASS:"ags-expandable-truncated-text",AOD_QTY_PRICING_TABLE_EXPAND_ACTION:"a-qpt-expand-action",AOD_QTY_PRICING_TABLE_SHEET_CLOSE_ACTION:"a-qpt-sheet-close-action",
AOD_ZERO_OFFER_CLASS:"aod-zero-offer-class",AOD_POP_OVER_BEFORE_SHOW_EVENT:"a:popover:beforeShow:aod-image-popover",AOD_POP_OVER_BEFORE_HIDE_EVENT:"a:popover:beforeHide:aod-image-popover",AOD_POP_OVER_CLASS:"aod-popover",AOD_CONDITION_IMAGE_CLICK:"conditionImage-click",AOD_OFFER_INFORMATION_BLOCK:"aod-information-block",AOD_CONDITION_EXPAND_TEXT_MOBILE_ACTION:"expand-text-mobile",AOD_AGS_NOTE_BOTTOM_SHEET_ID:"aod-ags-note-bottom-sheet-",AOD_CONDITION_NOTE_BOTTOM_SHEET_ACTION:"a-condition-note-sheet-close-action",
AOD_PHYSICAL_RENTAL_EXPAND_TEXT_MOBILE_ACTION:"expand-physical-rental-mobile",AOD_PHYSICAL_RENTAL_BOTTOM_SHEET_CLOSE_ACTION:"a-physical-rental-sheet-close-action",AOD_AGS_EXPAND_TEXT_BOTTOM_SHEET:"ags-expand-text-bottom-sheet",AOD_AGS_NOTE_SHEET_CLOSE_ACTION:"aod-ags-note-sheet-close-action",AOD_HIDE_WIDGET_ACTION:"hide-all-offers-display",AOD_BOTTOM_SHEET_TRIGGER:"a:declarative:a-sheet:click",ESC_KEY_CODE:27,SHIFT_KEY_CODE:16,TAB_KEY_CODE:9,ENTER_KEY_CODE:13,AOD_TOUCH_EVENT_NAME:"touchmove",AOD_MOUSE_MOVE_EVENT_NAME:"mouseleave",
AOD_RAFN_SHIPPING_EXPAND_TEXT_BOTTOM_SHEET:"rafn-shipping-expand-text-bottom-sheet",AOD_RAFN_SHIPPING_SHEET_CLOSE_ACTION:"aod-rafn-shipping-sheet-close-action",AOD_DIVERSITY_CERTIFICATIONS_EXPAND_TEXT_BOTTOM_SHEET:"diversity-certifications-bottom-sheet-expand-action",AOD_DIVERSITY_CERTIFICATIONS_SHEET_CLOSE_ACTION:"diversity-certifications-bottom-sheet-close-action",AOD_ATC_PRIME_TRUNCATED_TEXT_ID:"aod-atc-prime-truncated-text-id",AOD_ATC_PRIME_FULL_TEXT_ID:"aod-atc-prime-full-text-id",AOD_PINNED_ATC_PRIME_TRUNCATED_TEXT_CLASS:"aod-pinned-offer-atc-t",
AOD_PINNED_ATC_PRIME_FULL_TEXT_CLASS:"aod-pinned-offer-atc-f",AOD_ATC_PRIME_OFFER_MORE_ACTION:"aod-atc-prime-offer-more-action",AOD_ATC_PRIME_TRUNCATED_TEXT_CLASS:"aod-atc-prime-truncated-text-class",AOD_ATC_PRIME_OFFER_CLASS:"aod-atc-prime-offer-class",AOD_ATC_PRIME_FULL_TEXT_CLASS:"aod-atc-prime-full-text-class",AOD_DECLARATIVE_CLASS:"a-declarative",AOD_CN_AD_ID:"adv-float-div",AOD_CNAD_Z_INDEX_OPEN_VALUE:280,AOD_FILTERS_CSM_LATENCY_METRIC_SCOPE_NAME:"aod-filter-load",AOD_WEBLAB_TRIGGER_CSM_FAILURE_METRIC_SCOPE_NAME:"aod-weblab-trigger-failed",
AOD_PAGINATION_CSM_LATENCY_METRIC_SCOPE_NAME:"aod-pagination-load",AOD_FULL_LOAD_CSM_LATENCY_METRIC_SCOPE_NAME:"aod-full-load",AOD_FULL_LOAD_INCOMPLETE_CSM_LATENCY_METRIC_SCOPE_NAME:"aod-full-load-incomplete",AOD_SEARCH_WEBLAB_CHECK_LATENCY_METRIC_SCOPE_NAME:"aod-search-weblab-check",AOD_BOTTOM_SHEET_MAX_HEIGHT:"-400px",AOD_ATC_PRIME_NOTE_SHEET_CLOSE_ACTION:"aod-atc-prime-note-sheet-close-action",AOD_SCROLL_NONE_ON_SIDE_SHEET_CLASS:"aod-all-offers-display-block-scroll",AOD_GLOW_WIDGET_PLUGIN_NAME:"BottomSheetPlugin",
AOD_PROPERTY_TYPE_FUNCTION:"function",AOD_ATTRIBUTE_CLASS:"class",AOD_ATTRIBUTE_ID:"id",AOD_ATTRIBUTE_HREF:"href",AOD_CLOSEST_FUNCTION:"closest",AOD_NO_CONTENT_HTTP_STATUS:204,AOD_ENABLE_AOD_AUTO_LOAD:"enableAod\x3d1",AOD_WEBLAB_TRIGGER_FAILURE_MESSAGE:"aodWeblabTriggerCallError",AOD_PROPERTY_NOT_SUPPORTED_MESSAGE:"aodPropertyUnsupportedMessage",AOD_SEARCH_WEBLAB_AJAX_FAILURE_CTR:"aodSearchAjaxWeblabCheckFailCtr",AOD_LOG_LEVEL_WARN:"WARN",AOD_LOG_LEVEL_ERROR:"ERROR",AOD_LOG_LEVEL_FATAL:"FATAL",AOD_SWATCH_CONTAINER_ID:"aod-filter-swatch-box",
AOD_SWATCH_CONTAINER_TOP_ID:"aod-filter-swatch-container-top",AOD_SWATCH_EXPAND_STRING_CONTAINER_ID:"aod-filter-swatch-box-expand-div",AOD_SWATCH_CONTAINER_BOTTOM_ID:"aod-filter-swatch-container-bottom",AOD_SWATCH_PREFIX:"aod-swatch-id-",AOD_SWATCH_CLASS_NAME:"aod-filter-swatch",AOD_SWATCH_CLEAL_ALL_LINK_CONTAINER_ID:"aod-filter-swatch-box-clear-all-div",AOD_SWATCH_SEE_ALL_LINK_CONTAINER_ID:"aod-filter-swatch-box-expand-div",AOD_SWATCH_SEE_ALL_LINK_ELEMENT_ID:"aod-filter-swatch-expand-link",AOD_SWATCH_SEE_ALL_CONTAINER_ID:"aod-filter-swatch-box-expand-div",
AOD_SWATCH_WEBLAB_NAME_FORM_ID:"aod-swatch-weblab-name",AOD_SWATCH_WEBLAB_TREATMENT_FORM_ID:"aod-swatch-weblab-treatment",AOD_SWATCH_EXPAND_ACTION:"aod-filter-swatch-expand",AOD_UPDATE_FILTER_SWATCH_ACTION:"aod-filter-swatch-update-action",AOD_FILTER_SWATCH_CLEAR_ALL_ACTION:"aod-filter-swatch-clear-all-action",AOD_SUPERLEAF_AVAILABILITY_SELECTOR:"#superleafActionPanel #new-toggle-buybox, #used-toggle-buybox, #digital-toggle-buybox",AOD_CONDITION_ALL_TEXT:"all",CONDITION_OPEN_BOX:"openBox",CONDITION_USED:"used",
CONDITIONS_MAP:{used:{usedAcceptable:!0,usedGood:!0,usedLikeNew:!0,usedVeryGood:!0},new:{"new":!0},collectible:{collectible:!0},refurbished:{refurbished:!0},sponsored:{sponsored:!0},rental:{rental:!0},all:{all:!0},openbox:{usedAcceptable:!0,usedGood:!0,usedLikeNew:!0,usedVeryGood:!0}},AOD_SELLER_CERTIFICATIONS_ALL_TEXT:"all",SELLER_CERTIFICATIONS_MAP:{all:!0},AOD_FILTERS_ALL_TEXT:"all",OPENBOX_SELECTED_FILTER:["openBox","usedAcceptable","usedGood","usedLikeNew","usedVeryGood"],AOD_PINNED_OFFER_ENABLED_INPUT_ID:"aod-pinned-offer-present",
AOD_STICKY_PINNED_OFFER_CONTAINER:"aod-sticky-pinned-container",AOD_STICKY_PINNED_OFFER:"aod-sticky-pinned-offer",AOD_STICKY_PINNED_OFFER_SHOW_MORE_ACTION:"aod-sticky-pinned-offer-show-more",AOD_STICKY_PINNED_OFFER_SHOW_LESS_ACTION:"aod-sticky-pinned-offer-show-less",AOD_STICKY_PINNED_OFFER_SHOW_MORE_DIV_ID:"aod-sticky-pinned-offer-show-more-link",AOD_STICKY_PINNED_OFFER_ADDITIONAL_CONTENT_DIV_ID:"aod-sticky-pinned-offer-additional-content",AOD_STICKY_PINNED_OFFER_SHOW_LESS_DIV_ID:"aod-sticky-pinned-offer-show-less-link",
AOD_DISPLAY_BLOCK_CLASS:"aod-display-block",AOD_STICKY_OFFER_SHOW_POSITION_CLASS:"aod-sticky-pinned-offer-show-position",B2B_AOD_STICKY_PINNED_OFFER:"b2b-aod-sticky-pinned-offer",ASIN:"asin",PAGE_CONTEXT_SEARCH:"sp",PAGE_CONTEXT_KEY:"pc",HTML_BODY_TAG:"body",AOD_BACKGROUND_CONTENT:"\x3cdiv id\x3d'aod-background' class\x3d'a-section aok-hidden aod-darken-background'\x3e\x3c/div\x3e",AOD_BACKGROUND_DECLARATIVE_CONTENT:"\x3cspan class\x3d'a-declarative' data-action\x3d'close-all-offers-display' data-close-all-offers-display\x3d'{}'\x3e\x3c/span\x3e",
AOD_PAGE_LOAD_ANIMATION_C:"\x3cspan class\x3d'a-spinner a-spinner-medium'\x3e\x3c/span\x3e",AOD_PAGE_LOAD_ANIMATION_T1:"\x3cspan class\x3d'aod-animation-1 aod-page-load-1'\x3e\x3c/span\x3e",AOD_PAGE_LOAD_ANIMATION_T2:"\x3cspan class\x3d'aod-animation-2 aod-page-load-2'\x3e\x3c/span\x3e",HTML_BREAK_TAG:"\x3cbr\x3e",AOD_FOOTER_ANIMATION_C:"\x3cspan id\x3d'aod-offer-load-spinner' class\x3d'aod-hide a-spinner a-spinner-small'\x3e\x3c/span\x3e",AOD_FOOTER_ANIMATION_T1:"\x3cspan id\x3d'aod-offer-load-spinner' class\x3d'aod-hide aod-animation-1 aod-footer-load-1'\x3e\x3c/span\x3e",
AOD_FOOTER_ANIMATION_T2:"\x3cspan id\x3d'aod-offer-load-spinner' class\x3d'aod-hide aod-animation-2 aod-footer-load-2'\x3e\x3c/span\x3e",AOD_SPINNER_CONTAINER_CONTENT:"\x3cdiv id\x3d'all-offers-display-spinner' class\x3d'a-spinner-wrapper aok-hidden'\x3e\x3c/div\x3e",AOD_CONTAINER_CONTENT:"\x3cdiv id\x3d'all-offers-display' class\x3d'a-section'\x3e\x3c/div\x3e",HTML_SPAN_CLOSE_TAG:"\x3c/span\x3e",HTML_TEXT_SIZE_COLOR_BASE:"\x3cspan class\x3d'a-size-base a-color-base'\x3e",AOD_ANIMATION_CONTAINER:"\x3cspan class\x3d'aod-spinner-container'\x3e",
AOD_FUN_STRING_T1:"AOD_FUN_STRING_T1",AOD_FUN_STRING_T2:"AOD_FUN_STRING_T2",AOD_FUN_STRING_T3:"AOD_FUN_STRING_T3",CSS_ANIMATION:"animation",CSS_WEBKIT_ANIMATION:"-webkit-animation",CSS_ANIMATION_VALUE:"1s infinite ease-in-out",HTML_HEAD_TAG:"head",HTML_STYLE_ELEMENT:"\x3cstyle\x3e",AUI_MODAL_STYLES:".a-modal-scroller.a-declarative, .a-popover { z-index: 90003 !important; } #a-popover-lgtbox { z-index: 90002 !important; }",B2B_GB_MODAL_BEFORE_SHOW_POPOVER_EVENT:"a:popover:beforeShow:blocked-atc-button-modal",
B2B_GB_MODAL_INVISIBLE_POPOVER_EVENT:"a:popover:invisible:blocked-atc-button-modal",HASH_AOD_SMALL:"#aod",HASH_AOD_CAPS:"#AOD",OLP_AOD_REDIR:"olp_aod_redir",AUTO_LOAD_AOD:"auto_load_aod",DP_URL_FORMAT:["/dp/","/gp/aw/d/","/product/","/gp/mobile/udp/"],AOD_DEFAULT_PARAMS:["qid","sr","m","me","smid"],EXCLUDED_AOD_AJAX_PARAMS:"url ds_user ds_workspace aodWeblabTreatment assetMismatch fallbackUrl".split(" ")}});"use string";g.when("A","jQuery","all-offers-display-constants").register("all-offers-display-elements",
function(f,d,a){var b={},c={aodFooter:"#"+a.AOD_FOOTER_HTML_ID,aodFooterEOR:"#"+a.AOD_FOOTER_EOR_HTML_ID,aodFooterShowMore:"#"+a.AOD_FOOTER_SHOW_MORE_ID,aodFooterSpinner:"#"+a.AOD_FOOTER_SPINNER_HTML_ID,additionalContent:"#"+a.AOD_PINNED_OFFER_ADDITIONAL_CONTENT_DIV_ID,showMoreLink:"#"+a.AOD_PINNED_OFFER_SHOW_MORE_DIV_ID,showLessLink:"#"+a.AOD_PINNED_OFFER_SHOW_LESS_DIV_ID,stickyAdditionalContent:"#"+a.AOD_STICKY_PINNED_OFFER_ADDITIONAL_CONTENT_DIV_ID,stickyShowMoreLink:"#"+a.AOD_STICKY_PINNED_OFFER_SHOW_MORE_DIV_ID,
stickyShowLessLink:"#"+a.AOD_STICKY_PINNED_OFFER_SHOW_LESS_DIV_ID,hideElement:"."+a.AOD_HIDE_ELEMENT_CSS_CLASS,aodHiddenOfferCountInputDiv:"#"+a.AOD_OFFER_COUNT_STRING_DIV_ID,aodFilterOfferCountStringDiv:"#"+a.AOD_FILTER_OFFER_COUNT_STRING_DIV_ID,allOffersDisplay:"#"+a.AOD_SIDESHEET_HTML_ID,allOffersDisplaySpinner:"#"+a.AOD_SPINNER_HTML_ID,aodBackground:"#"+a.AOD_BACKGROUND_HTML_ID,offerList:"#"+a.AOD_OFFER_LIST_HTML_ID,scrollDiv:"#"+a.AOD_SCROLL_DIV_HTML_ID,filterBottomSheet:"#"+a.AOD_FILTER_BOTTOM_SHEET_ID,
aodPinnedOffer:"#"+a.AOD_PINNED_OFFER,aodStickyPinnedOffer:"#"+a.AOD_STICKY_PINNED_OFFER,aodContainer:"#"+a.AOD_CONTAINER,aodDefaultParams:"#"+a.AOD_DEFAULT_PARAMS_ID,aodWeblabTreatment:"#"+a.AOD_WEBLAB_TREATMENT_ID,aodWeblabName:"#"+a.AOD_WEBLAB_NAME_ID,aodAtcPrimeTruncatedText:"#"+a.AOD_ATC_PRIME_TRUNCATED_TEXT_ID,aodAtcPrimeStickyTruncatedText:"."+a.AOD_PINNED_ATC_PRIME_TRUNCATED_TEXT_CLASS,aodAtcPrimeStickyFullText:"."+a.AOD_PINNED_ATC_PRIME_FULL_TEXT_CLASS,aodAtcPrimeFullText:"#"+a.AOD_ATC_PRIME_FULL_TEXT_ID,
aodDisplayReloadElement:"#"+a.AOD_DISPLAY_RELOAD_ELEMENT_ID,aodSuperleaf:"#"+a.AOD_PPD_RIGHT_ELEMENT_ID+"."+a.AOD_SUPERLEAF_CSS_CLASS,aodSuperleafAvailabilitySelector:a.AOD_SUPERLEAF_AVAILABILITY_SELECTOR,aodIsCustomizableAsin:"#"+a.AOD_IS_CUSTOMIZABLE_ASIN_ID,aodIsCustomBuyboxQualified:"#"+a.AOD_IS_CUSTOM_BUYBOX_QUALIFIED,aodPinnedOfferEnabledId:"#"+a.AOD_PINNED_OFFER_ENABLED_INPUT_ID,aodStickyPinnedOfferContainer:"#"+a.AOD_STICKY_PINNED_OFFER_CONTAINER,aodCNADId:"#"+a.AOD_CN_AD_ID};return{elements:{AOD_FOOTER_KEY:"aodFooter",
AOD_FOOTER_EOR_KEY:"aodFooterEOR",AOD_FOOTER_SHOW_MORE_KEY:"aodFooterShowMore",AOD_FOOTER_SPINNER_KEY:"aodFooterSpinner",ADDITIONAL_CONTENT_KEY:"additionalContent",SHOW_MORE_LINK_KEY:"showMoreLink",SHOW_LESS_LINK_KEY:"showLessLink",STICKY_ADDITIONAL_CONTENT_KEY:"stickyAdditionalContent",STICKY_SHOW_MORE_LINK_KEY:"stickyShowMoreLink",STICKY_SHOW_LESS_LINK_KEY:"stickyShowLessLink",HIDE_ELEMENT_KEY:"hideElement",AOD_HIDDEN_OFFER_COUNT_INPUT_DIV_KEY:"aodHiddenOfferCountInputDiv",AOD_FILTER_OFFER_COUNT_STRING_DIV_KEY:"aodFilterOfferCountStringDiv",
ALL_OFFERS_DISPLAY_KEY:"allOffersDisplay",ALL_OFFERS_DISPLAY_SPINNER_KEY:"allOffersDisplaySpinner",AOD_BACKGROUND_KEY:"aodBackground",AOD_SCROLL_DIV_KEY:"scrollDiv",AOD_OFFER_LIST_KEY:"offerList",AOD_FILTER_BOTTOM_SHEET_KEY:"filterBottomSheet",AOD_PINNED_OFFER:"aodPinnedOffer",AOD_STICKY_PINNED_OFFER:"aodStickyPinnedOffer",AOD_CONTAINER:"aodContainer",AOD_SUPERLEAF_KEY:"aodSuperleaf",AOD_SUPERLEAF_AVAILABILITY_SELECTOR:"aodSuperleafAvailabilitySelector",AOD_DEFAULT_PARAMS:"aodDefaultParams",AOD_WEBLAB_TREATMENT:"aodWeblabTreatment",
AOD_WEBLAB_NAME:"aodWeblabName",AOD_ATC_PRIME_TRUNCATED_TEXT:"aodAtcPrimeTruncatedText",AOD_ATC_STICKY_PRIME_TRUNCATED_TEXT:"aodAtcPrimeStickyTruncatedText",AOD_ATC_PRIME_FULL_TEXT:"aodAtcPrimeFullText",AOD_ATC_STICKY_PRIME_FULL_TEXT:"aodAtcPrimeStickyFullText",AOD_DISPLAY_RELOAD:"aodDisplayReloadElement",AOD_IS_CUSTOMIZABLE_ASIN:"aodIsCustomizableAsin",AOD_IS_CUSTOM_BUYBOX_QUALIFIED:"aodIsCustomBuyboxQualified",AOD_IS_PINNED_OFFER_ENABLED:"aodPinnedOfferEnabledId",AOD_STICKY_PINNED_OFFER_CONTAINER:"aodStickyPinnedOfferContainer",
AOD_CN_AD_ID_KEY:"aodCNADId"},getElement:function(a){if(!b[a]){var f=d(c[a]);f&&(b[a]=f)}if(b[a])return b[a];n.ueLogError&&n.ueLogError({logLevel:"ERROR",attribution:"aod_element_not_found",message:"[Attempt to access undefined element]"})},getElementIdentifier:function(a){return c[a]},resetQueriedElements:function(){for(var a=Object.keys(b),c=0;c<a.length;c++)b[a[c]]=null}}});g.when("A","jQuery","all-offers-display-constants","all-offers-display-weblab-helper","all-offers-display-polyfill","all-offers-display-url-helper").register("all-offers-display-olplink-handler",
function(f,d,a,b,c,e){function m(a){if(a&&a.$event&&a.$event.target){a=a.$event.target;if("A"===a.nodeName&&a.href)return a.href;if((a=d(a).closest("a"))&&0<a.length)return a.attr("href")}return null}return{isHyperLink:function(a){return m(a)?!0:!1},redirectToOlp:function(a){(a=m(a))?n.location.href=a:n.ueLogError&&n.ueLogError({logLevel:"ERROR",attribution:"aod_no_href",message:"[Redirection failed since href is null]"})},getRefMarker:function(a){a=a&&a.data&&a.data.url?a.data.url:m(a);return e.getRefMarkerFromUrl(a)},
shouldOpenAOD:function(a){return b.isAodEnabled(a.data)}}});g.when("A","jQuery","all-offers-display-constants","aod-csm-counter","aod-element-details").register("all-offers-display-polyfill",function(f,d,a,b,c){function e(e,d,f){var h=typeof e[d]===f;if(!h){e=c.elementDetailsObject(e);var k=a.AOD_PROPERTY_NOT_SUPPORTED_MESSAGE,k=k+(", element: "+JSON.stringify(e));g.log(k+(", propertyName: "+d+", propertyType: "+f),a.AOD_LOG_LEVEL_WARN,a.AOD_PROPERTY_NOT_SUPPORTED_MESSAGE);b.triggerUnitCounter(a.AOD_PROPERTY_NOT_SUPPORTED_MESSAGE)}return h}
function m(a,b){b=2===arguments.length?b:"inherit";if("CSS"in n&&"supports"in n.CSS)return n.CSS.supports(a,b);if("supportsCSS"in n)return n.supportsCSS(a,b);var c=a.replace(/-([a-z]|[0-9])/ig,function(a,b){return(b+"").toUpperCase()}),e=document.createElement("div");e.style.cssText=a+":"+b;return c in e.style&&""!==e.style[c]}function k(){h===u&&(h=m(a.CSS_ANIMATION,a.CSS_ANIMATION_VALUE)||m(a.CSS_WEBKIT_ANIMATION,a.CSS_ANIMATION_VALUE));return h}var h=u;return{isPropertySupported:e,requestAnimationFrame:function(){return n.requestAnimationFrame||
n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||n.msRequestAnimationFrame||n.oRequestAnimationFrame||function(a){setTimeout(a,0)}},checkAnimationSupport:k,enableAnimation:function(){var b=document.createElement("a"),b=!e(b,a.AOD_CLOSEST_FUNCTION,a.AOD_PROPERTY_TYPE_FUNCTION),c=k();return!b&&c?!0:!1}}});"use strict";g.when("A","jQuery","all-offers-display-constants","all-offers-display-url-helper").register("all-offers-display-url-builder",function(f,d,a,b){function c(a,b){a&&null!==b&&
(e[a]=b)}var e={},m="",k=null;return{getAodUrl:function(){var b=a.AOD_RELATIVE_URL;m&&(b=b.concat(a.AOD_REF_MARKER_PREFIX+m));k&&c(a.ASIN,k);var d="",f;for(f in e)if(e.hasOwnProperty(f)){var g=encodeURI(f+"\x3d"+encodeURIComponent(e[f]));""!==d&&(d=d.concat("\x26"));d=d.concat(g)}return b=b.concat("?"+d)},addParam:c,addParams:function(b){for(var e in b)k&&e===a.ASIN?c(a.ASIN,k):b.hasOwnProperty(e)&&c(e,b[e])},removeParam:function(a){if(a)return delete e[a]},setRefMarker:function(a){m=a},resetParameterMap:function(){e=
{}},getDefaultParameterMap:function(a){return b.getAodDefaultParams(a.data)},updateDebugParameter:function(){var a=n.location.href;-1!==a.indexOf("isDebug\x3d1")&&c("isDebug","1");-1!==a.indexOf("portalDebug\x3d1")&&c("portalDebug","1")},setOverrideAsin:function(a){k=a},clearOverrideAsin:function(){k=null}}});g.when("A","jQuery","all-offers-display-elements","all-offers-display-constants").register("all-offers-display-url-helper",function(f,d,a,b){function c(a){for(var c={},d=Object.keys(a),f=0;f<
d.length;f++)-1<b.EXCLUDED_AOD_AJAX_PARAMS.indexOf(d[f])||(c[d[f]]=a[d[f]]);return c}return{getAodDefaultParams:function(b){if(b&&b.asin)return c(b);b=a.getElement(a.elements.AOD_DEFAULT_PARAMS);if(null!==b&&0<b.length)return c(b[0].dataset);n.ueLogError&&n.ueLogError({logLevel:"ERROR",attribution:"aod_param_map_not_found",message:"[Attempt to return aodDataSet to load AOD side sheet. empty aodDataSet returned.]"});return{}},getQueryParamStructFromUrl:function(a){var b={};if((a=a.split("?"))&&2!==
a.length)return b;a=a[1];a=a.split("#")[0];if(a=a.split("\x26"))for(var c=0;c<a.length;c++){var d=a[c].split("\x3d");d&&2!==d.length||(b[d[0]]=d[1])}return b},getRefMarkerFromUrl:function(a){if(-1===a.indexOf(b.AOD_REF_MARKER_URL_MATCHER))return null;a=a.split(b.AOD_REF_MARKER_URL_MATCHER)[1];-1!==a.indexOf("?")?a=a.split("?")[0]:-1!==a.indexOf("#")&&(a=a.split("#")[0]);return a&&-1===a.indexOf("aod")?a.replace("olp","aod"):a}}});g.when("A","jQuery","all-offers-display-elements","all-offers-display-constants",
"aod-csm-counter").register("all-offers-display-weblab-helper",function(f,d,a,b,c){function e(a){return a&&"object"===typeof a&&a.aodWeblabName&&a.aodWeblabTreatment?!0:!1}function m(b){if(e(b))return b.aodWeblabTreatment;var c=null,d=a.getElement(a.elements.AOD_WEBLAB_TREATMENT);d&&(c=d.val());return b.aodWeblabTreatment=c}function k(a,d,e){var f=b.AOD_WEBLAB_TRIGGER_FAILURE_MESSAGE;a&&a.responseURL&&(f=f+", URL: "+a.responseURL);d&&(f=f+", statusText: "+d);e&&(f=f+", errorThrown: "+e);g.log(f,b.AOD_LOG_LEVEL_ERROR,
b.AOD_WEBLAB_TRIGGER_FAILURE_MESSAGE);c.triggerUnitCounter(b.AOD_WEBLAB_TRIGGER_FAILURE_MESSAGE)}var h={};return{isAodEnabled:function(a){return(a=m(a))?b.WEBLAB_TREATMENT_T1===a:!0},triggerAodWeblab:function(c){var d=m(c),g;if(e(c))g=c.aodWeblabName;else{var r=null;(g=a.getElement(a.elements.AOD_WEBLAB_NAME))&&(r=g.val());g=c.aodWeblabName=r}var r=b.AOD_WEBLAB_TRIGGER_URL,t;t=/^[CT][0-9]*$/.test(d)?!0:!1;t&&(t=h[c.aodWeblabName.toLowerCase()]?!0:!1,t=!t);t&&(r=r+b.AOD_WEBLAB_TREATMENT_KEY+"\x3d"+
d,d=g&&("string"===typeof g||g instanceof String)?!0:!1,d&&(r=r+"\x26"+b.AOD_WEBLAB_NAME_KEY+"\x3d"+g),d={method:b.AOD_AJAX_METHOD,error:k,timeout:b.AOD_AJAX_TIMEOUT},n.navigator&&navigator.sendBeacon?navigator.sendBeacon(r)||f.ajax(r,d):f.ajax(r,d),h[c.aodWeblabName.toLowerCase()]=!0)}}});g.when("A","jQuery","all-offers-display-constants","all-offers-display-elements","all-offers-display-url-helper","all-offers-display-url-builder").register("all-offers-display-utils",function(f,d,a,b,c,e){function m(a){a.preventDefault()}
var k=document.getElementById(a.AOD_BACKGROUND_HTML_ID),h,l;return{resetAODElements:function(){for(var b=document.querySelector("#"+a.AOD_SIDESHEET_HTML_ID).children,c=0;c<b.length;c++)-1!==b[c].className.split(" ").indexOf(a.AOD_DECLARATIVE_CLASS)&&b[c].parentElement.removeChild(b[c])},enableScroll:function(){d("body").css(a.AOD_OVERFLOW_SCROLL_STYLE);k&&document.getElementById(a.AOD_BACKGROUND_HTML_ID).removeEventListener(a.AOD_TOUCH_EVENT_NAME,m)},disableScroll:function(){d("body").css(a.AOD_OVERFLOW_HIDDEN_STYLE);
k&&k.addEventListener(a.AOD_TOUCH_EVENT_NAME,m,{passive:!1})},increaseZIndexSuperleaf:function(){var c=b.getElement(b.elements.AOD_SUPERLEAF_KEY);c&&0<c.size()&&(h=c.css(a.AOD_Z_INDEX_CSS_STYLE),c.css(a.AOD_Z_INDEX_CSS_STYLE,a.AOD_SUPERLEAF_Z_INDEX_OPEN_VALUE))},decreaseZIndexSuperleaf:function(){var c=b.getElement(b.elements.AOD_SUPERLEAF_KEY);c&&0<c.size()&&c.css(a.AOD_Z_INDEX_CSS_STYLE,h)},getCurrentAsin:function(a){if(a&&a.asin)return e.setOverrideAsin(a.asin),a.asin;a=c.getAodDefaultParams(a);
e.clearOverrideAsin();return a.asin},decreaseZIndexCNAD:function(){var c=b.getElement(b.elements.AOD_CN_AD_ID_KEY);c&&0<c.size()&&(l=c.css(a.AOD_Z_INDEX_CSS_STYLE),c.css(a.AOD_Z_INDEX_CSS_STYLE,a.AOD_CNAD_Z_INDEX_OPEN_VALUE))},increaseZIndexCNAD:function(){var c=b.getElement(b.elements.AOD_CN_AD_ID_KEY);c&&0<c.size()&&c.css(a.AOD_Z_INDEX_CSS_STYLE,l)}}});g.when("A").register("aod-csm-counter",function(f){var d=n.ue;return{incrementAndTriggerCounter:function(a){d&&d.count&&d.count(a,(d.count(a)||0)+
1)},triggerUnitCounter:function(a){d&&d.count&&d.count(a,1)}}});g.when("A","jQuery","all-offers-display-constants").register("aod-element-details",function(f,d,a){return{elementDetailsObject:function(b){var c={};b.tagName&&(c.tagName=b.tagName);b.getAttribute&&typeof b.getAttribute===a.AOD_PROPERTY_TYPE_FUNCTION&&(b.getAttribute("id")&&(c.id=b.getAttribute(a.AOD_ATTRIBUTE_ID)),b.getAttribute("class")&&(c.class=b.getAttribute(a.AOD_ATTRIBUTE_CLASS)),b.getAttribute("href")&&(c.href=b.getAttribute(a.AOD_ATTRIBUTE_HREF)));
return c}}});"use strict";g.when("A","jQuery","all-offers-display-constants","all-offers-display-filter-state-manager","all-offers-display-weblab-trigger").register("all_offers_display_filter_swatch_manager",function(f,d,a,b,c){function e(){document.getElementById(a.AOD_SWATCH_SEE_ALL_CONTAINER_ID).classList.remove(a.AOD_HIDE_ELEMENT_CSS_CLASS)}function m(){document.getElementById(a.AOD_SWATCH_SEE_ALL_CONTAINER_ID).classList.add(a.AOD_HIDE_ELEMENT_CSS_CLASS)}function k(b,c){if(Array.isArray(b)){c=
document.getElementById(c).getElementsByClassName(a.AOD_SWATCH_CLASS_NAME);for(var d=0;d<c.length;d++){var e=c[d].getAttribute("id").split(a.AOD_SWATCH_PREFIX)[1];-1<b.indexOf(e)?c[d].classList.remove(a.AOD_HIDE_ELEMENT_CSS_CLASS):c[d].classList.add(a.AOD_HIDE_ELEMENT_CSS_CLASS)}}}var h=[],l=!1;return{updateFilterSwatches:function(){var c;c=document.getElementById(a.AOD_SWATCH_CONTAINER_ID)?!0:!1;if(c){if(!Array.isArray(h)||!h.length){c=document.getElementById(a.AOD_SWATCH_CONTAINER_TOP_ID).getElementsByClassName(a.AOD_SWATCH_CLASS_NAME);
for(var d=0;d<c.length;d++)h.push(c[d].getAttribute("id").split(a.AOD_SWATCH_PREFIX)[1])}d=b.getSelectedFiltersMap();c=[];for(var f=Object.keys(d),g=0;g<h.length;g++)for(var n=0;n<f.length;n++)for(var v=d[f[n]],u=0;u<v.length;u++){var w=v[u];h[g]===w&&c.push(w)}Array.isArray(c)&&c.length?document.getElementById(a.AOD_SWATCH_CONTAINER_ID).classList.remove(a.AOD_HIDE_ELEMENT_CSS_CLASS):(l=!1,document.getElementById(a.AOD_SWATCH_CONTAINER_ID).classList.add(a.AOD_HIDE_ELEMENT_CSS_CLASS));d=[];f=document.getElementById(a.AOD_SWATCH_CONTAINER_TOP_ID).clientWidth;
g=document.getElementById(a.AOD_SWATCH_CLEAL_ALL_LINK_CONTAINER_ID).clientWidth;document.getElementById(a.AOD_SWATCH_SEE_ALL_LINK_ELEMENT_ID).innerText="+99";e();g+=document.getElementById(a.AOD_SWATCH_SEE_ALL_LINK_CONTAINER_ID).clientWidth;m();for(n=0;n<c.length;n++)if(v=document.getElementById(a.AOD_SWATCH_PREFIX+c[n]),v.classList.remove(a.AOD_HIDE_ELEMENT_CSS_CLASS),u=v.clientWidth,v.classList.add(a.AOD_HIDE_ELEMENT_CSS_CLASS),g+=u,g<=f)d.push(c[n]);else break;f=[];for(g=0;g<c.length;g++)-1===
d.indexOf(c[g])&&f.push(c[g]);k(d,a.AOD_SWATCH_CONTAINER_TOP_ID);k(f,a.AOD_SWATCH_CONTAINER_BOTTOM_ID);l?document.getElementById(a.AOD_SWATCH_CONTAINER_BOTTOM_ID).classList.remove(a.AOD_HIDE_ELEMENT_CSS_CLASS):document.getElementById(a.AOD_SWATCH_CONTAINER_BOTTOM_ID).classList.add(a.AOD_HIDE_ELEMENT_CSS_CLASS);!l&&Array.isArray(f)&&f.length?(c=f.length,document.getElementById(a.AOD_SWATCH_SEE_ALL_LINK_ELEMENT_ID).innerText="+"+c,e()):m()}},setExpandedModeTrue:function(){l=!0},setExpandedModeFalse:function(){l=
!1},triggerFilterSwatchWeblab:function(){var b=document.getElementById(a.AOD_SWATCH_WEBLAB_NAME_FORM_ID),d=document.getElementById(a.AOD_SWATCH_WEBLAB_TREATMENT_FORM_ID);b&&d&&c.triggerWeblab(b.value,d.value)}}});g.when("A","jQuery","all-offers-display-constants","aod-csm-counter").register("all-offers-display-weblab-trigger",function(f,d,a,b){function c(c,d,e){var f=a.AOD_WEBLAB_TRIGGER_FAILURE_MESSAGE;c&&c.responseURL&&(f=f+", URL: "+c.responseURL);d&&(f=f+", statusText: "+d);e&&(f=f+", errorThrown: "+
e);g.log(f,a.AOD_LOG_LEVEL_ERROR,a.AOD_WEBLAB_TRIGGER_FAILURE_MESSAGE);b.triggerUnitCounter(a.AOD_WEBLAB_TRIGGER_FAILURE_MESSAGE)}var e=[];return{triggerWeblab:function(b,d){var h;h=/^[CT][0-9]*$/.test(d)?!0:!1;h&&(h=b&&("string"===typeof b||b instanceof String)?!0:!1);h&&(h=0<=e.indexOf(b)?!0:!1,h=!h);h&&(d=a.AOD_WEBLAB_TRIGGER_URL+a.AOD_WEBLAB_TREATMENT_KEY+"\x3d"+d+"\x26"+a.AOD_WEBLAB_NAME_KEY+"\x3d"+b,h={method:a.AOD_AJAX_METHOD,error:c,timeout:a.AOD_AJAX_TIMEOUT},n.navigator&&navigator.sendBeacon?
navigator.sendBeacon(d)||f.ajax(d,h):f.ajax(d,h),e.push(b))}}});g.when("all-offers-display-elements").register("aod-gestalt",function(f){return{registerAssets:function(d){g.now("gestaltCustomizableProductDetailPage",d).execute(function(a,b){a===u&&g.register("gestaltCustomizableProductDetailPage");b===u&&g.register(d)})},isGestalt:function(){var d=f.getElement(f.elements.AOD_IS_CUSTOMIZABLE_ASIN);return d&&"true"===d.val()},initializeGestaltAod:function(){g.when("A","gestalt-aod-initializer").execute("gestalt-init",
function(d,a){d.trigger("initialize-gestalt-aod")})},isCustomBuyboxQualified:function(){var d=f.getElement(f.elements.AOD_IS_CUSTOM_BUYBOX_QUALIFIED);return d&&"true"===d.val()}}});g.when("aod-gestalt-assets-loader","aod-gestalt").execute("aod-gestalt-assets-initialize",function(f,d){d.isGestalt()&&f.loadAssets()});g.when("aod-gestalt").register("aod-gestalt-assets-loader",function(f){return{loadAssets:function(){f.registerAssets("gestaltDesktopDevice")}}});g.when("A","jQuery","all-offers-display-constants",
"all-offers-display-content-loader","all-offers-display-weblab-helper","all-offers-display-olplink-handler","all-offers-display-url-builder","all-offers-display-polyfill","all-offers-display-pinned-offer-image-animation","all-offers-display-search-helper","all-offers-display-html-builder","all-offers-display-weblab-trigger").register("aod-load-event-handler",function(f,d,a,b,c,e,g,k,h,l,p,q){var r=n.uet;return{renderAodAction:function(d){try{if(d.$event.preventDefault(),d.$event.stopPropagation(),
p.createAODContainer(),e.isHyperLink(d))if(k.isPropertySupported(d.$event.target,a.AOD_CLOSEST_FUNCTION,a.AOD_PROPERTY_TYPE_FUNCTION)||q.triggerWeblab(a.ENABLE_AOD_ON_IE_WEBLAB,a.WEBLAB_TREATMENT_T1),e.shouldOpenAOD(d)||l.isSearchPageCall(d.data)){"function"===typeof r&&r("bb",a.AOD_FULL_LOAD_CSM_LATENCY_METRIC_SCOPE_NAME,{wb:1});b.showAod(d);var f=e.getRefMarker(d);f&&g.setRefMarker(f);b.loadAllAodBlocks(d);l.isSearchPageCall(d.data)||c.triggerAodWeblab(d.data);var n=setInterval(function(){0<document.getElementsByClassName(a.AOD_DIV_FOR_FOCUS).length&&
(clearInterval(n),document.getElementsByClassName(a.AOD_DIV_FOR_FOCUS)[0].focus(),h.setStickyOfferTopOffset(),h.addPinnedOfferImageAnimation())},1E3)}else l.isSearchPageCall(d.data)||c.triggerAodWeblab(d.data),e.redirectToOlp(d)}catch(u){e.redirectToOlp(d)}}}});g.when("A","jQuery","all-offers-display-constants","all-offers-display-spinner-builder","all-offers-display-polyfill").register("all-offers-display-html-builder",function(f,d,a,b,c){var e=!1;return{createAODContainer:function(){if(!e){e=!0;
var f=d(a.AOD_BACKGROUND_CONTENT),g=d(a.AOD_BACKGROUND_DECLARATIVE_CONTENT);f.appendTo(g);g.prependTo(a.HTML_BODY_TAG);f=c.enableAnimation()?b.getSpinnerComponent():d(a.AOD_PAGE_LOAD_ANIMATION_C);var g=d(a.AOD_SPINNER_CONTAINER_CONTENT),h=d(a.AOD_CONTAINER_CONTENT);f.appendTo(g);g.appendTo(h);h.prependTo(a.HTML_BODY_TAG)}},createFooterLoadingComponent:function(){var d=document.getElementById(a.AOD_FOOTER_SPINNER_CONTAINER_HTML_ID);c.enableAnimation()?d.innerHTML=b.createFooterElement():d.innerHTML=
a.AOD_FOOTER_ANIMATION_C}}});g.when("A","jQuery","all-offers-display-constants","all-offers-display-url-helper").register("all-offers-display-search-helper",function(f,d,a,b){return{addSearchPageContextDetails:function(c){c&&(c.pc=a.PAGE_CONTEXT_SEARCH);var d={};c.url&&(d=b.getQueryParamStructFromUrl(c.url));for(var f=Object.keys(d),g=0;g<f.length;g++)c[f[g]]=d[f[g]];return c},isSearchPageCall:function(b){return b&&b.pc&&b.pc===a.PAGE_CONTEXT_SEARCH?!0:!1}}});n.amz_js_PopWin=function(f,d,a){n.open(f,
d,a).focus();return!1};"use strict";g.register("all-offers-display-qty-state-manager",function(){var f=1;return{getSelectedQuantity:function(){return f},setSelectedQuantity:function(d){f=d}}});g.when("A","jQuery","all-offers-display-constants","all-offers-display-url-builder","all-offers-display-pagination","all-offers-display-ajax-controller","all-offers-display-qty-state-manager","all-offers-display-b2b-content-loader").register("all-offers-display-qty-util",function(f,d,a,b,c,e,g,k){function h(b){k.handleAodSuccessResponsePostLoad(b,
a.AOD_QTY_SELECTOR_CSM_LATENCY_METRIC_SCOPE_NAME)}function l(b){k.handleAodErrorResponsePostLoad(b,a.AOD_QTY_SELECTOR_CSM_LATENCY_METRIC_SCOPE_NAME)}function n(){var b=d("#"+a.AOD_QTY_SELECTOR_INPUT_ID).val();return b?b:1}return{fetchAodContent:function(d){c.resetPagination();b.addParam(a.AOD_QTY_REQUEST_KEY,d);b.setRefMarker(a.AOD_QTY_REF_MARKER_PREFIX+d);e.call(b.getAodUrl(),{method:"get",success:h,error:l,timeout:a.AOD_AJAX_TIMEOUT})},processInputQuantity:function(){var a=n(),b=g.getSelectedQuantity(),
b=a!==b;g.setSelectedQuantity(a);return b},initializeQuantity:function(){var a=n();g.setSelectedQuantity(a)}}});g.when("A","jQuery","all-offers-display-constants","all-offers-display-fun-strings","all-offers-display-weblab-trigger").register("all-offers-display-spinner-builder",function(f,d,a,b,c){return{getSpinnerComponent:function(){var e=a.AOD_ANIMATION_CONTAINER+a.AOD_PAGE_LOAD_ANIMATION_T2,e=e+b.getFunString(a.AOD_FUN_STRING_T2),e=e+a.HTML_SPAN_CLOSE_TAG;c.triggerWeblab(a.AOD_FUN_LOAD_WEBLAB_DESKTOP,
a.WEBLAB_TREATMENT_T2);return d(e)},createFooterElement:function(){return a.AOD_FOOTER_ANIMATION_T2}}});g.when("all-offers-display-constants").register("all-offers-display-fun-strings",function(f){var d={AOD_FUN_STRING_T1:"[Suspenseful music plays]",AOD_FUN_STRING_T2:"Let's have a look...",AOD_FUN_STRING_T3:"♪ Elevator music ♪"};return{getFunString:function(a){return f.HTML_BREAK_TAG+f.HTML_BREAK_TAG+f.HTML_TEXT_SIZE_COLOR_BASE+d[a]+f.HTML_SPAN_CLOSE_TAG}}});g.when("A","jQuery","all-offers-display-constants",
"all-offers-display-search-helper","aod-load-event-handler","all-offers-display-ajax-controller","all-offers-display-olplink-handler","aod-csm-counter").register("search-all-offers-display-util",function(f,d,a,b,c,e,m,k){f.state("aod:assetsLoaded",{isAodAssetsLoaded:!0});var h=n.uex,l=n.uet;return{searchOnClickHandler:function(d){d&&d.data&&b.addSearchPageContextDetails(d.data);var f=a.AOD_WEBLAB_TRIGGER_URL+a.PAGE_CONTEXT_KEY+"\x3d"+a.PAGE_CONTEXT_SEARCH;l("bb",a.AOD_SEARCH_WEBLAB_CHECK_LATENCY_METRIC_SCOPE_NAME,
{wb:1});e.call(f,{method:"post",success:function(b){l("cf",a.AOD_SEARCH_WEBLAB_CHECK_LATENCY_METRIC_SCOPE_NAME,{wb:1});!0===b?(h("ld",a.AOD_SEARCH_WEBLAB_CHECK_LATENCY_METRIC_SCOPE_NAME,{wb:1}),c.renderAodAction(d)):(h("ld",a.AOD_SEARCH_WEBLAB_CHECK_LATENCY_METRIC_SCOPE_NAME,{wb:1}),m.redirectToOlp(d))},error:function(b){var c="AOD Search weblab check ajax call error";b&&(b.responseURL?c=c+", URL:"+b.responseURL:b.http&&b.http.responseURL&&(c=c+", URL:"+b.http.responseURL));g.log("ERROR",c);k.triggerUnitCounter(a.AOD_SEARCH_WEBLAB_AJAX_FAILURE_CTR);
h("ld",a.AOD_SEARCH_WEBLAB_CHECK_LATENCY_METRIC_SCOPE_NAME,{wb:1});m.redirectToOlp(d)},timeout:a.AOD_AJAX_TIMEOUT})}}})})});