(function(f){var g=window.AmazonUIPageJS||window.P,k=g._namespace||g.attributeErrors,b=k?k("DetailPagePostPurchaseAssets",""):g;b.guardFatal?b.guardFatal(f)(b,window):b.execute(function(){f(b,window)})})(function(f,g,k){f.when("A","jQuery","post-purchase-side-sheet-constants","post-purchase-side-sheet-tab-selector","post-purchase-side-sheet-controller","post-purchase-side-sheet-action-handler-info-tab","post-purchase-side-sheet-action-handler-video-tab").register("post-purchase-side-sheet-action-handler", function(b,e,a,d,c){b.declarative(a.PP_SIDE_SHEET_OPEN_ACTION,"click",function(e){b.show(a.PP_SIDE_SHEET_FOREGROUND_SELECTOR);b.show(a.PP_SIDE_SHEET_BACKGROUND_SELECTOR);c.openSideSheet();d.tabSelector(e.data.tab)});b.declarative(a.PP_SIDE_SHEET_CLOSE_ACTION,"click",function(a){c.closeSideSheet()});e(a.PP_SIDE_SHEET_SCROLL_CONTAINER_SELECTOR).find("div.a-box-inner").css("padding","14px 0px");c.showIngressLink1stAttempt();b.on("PageRefresh:ATF",function(){c.showIngressLink1stAttempt()});b.on("a:pageUpdate", function(){c.showIngressLink2ndAttempt()})});f.when("A","jQuery","post-purchase-side-sheet-constants","post-purchase-csm-counters","ready").execute("postpurchase-anchor-link-check",function(b,e,a,d){e(a.PP_INFO_LINK_SELECTOR).click(function(){d.incrementCounterOncePerSession(a.PP_INFO_LINK_CLICK_CSM)});e(a.PP_SIDE_SHEET_DOC_WIDGET_LINK_SELECTOR).click(function(){d.incrementCounterOncePerSession(a.PP_SIDE_SHEET_DOC_CLICK_CSM)});e(a.PP_SIDE_SHEET_PRODUCT_SUPPORT_LINK_SECTION_SELECTOR).click(function(){d.incrementCounterOncePerSession(a.PP_PRODUCT_SUPPORT_LINK_CLICK_CSM)}); b.on("a:tabs:"+a.PP_SIDE_SHEET_TAB_SET+":select",function(b){b.selectedTab.tabName!==a.PP_SIDE_SHEET_TAB_INFO_EVENT&&d.incrementCounterOncePerSession(a.PP_TAB_SELECT_CSM+b.selectedTab.tabName)})});f.register("post-purchase-side-sheet-action-handler-info-tab");"use strict";f.when("A","jQuery","post-purchase-side-sheet-constants","post-purchase-side-sheet-tab-selector","post-purchase-side-sheet-controller","post-purchase-side-sheet-videos-ajax-load").register("post-purchase-side-sheet-action-handler-video-tab", function(b,e,a,d,c,h){b.declarative(a.PP_SIDE_SHEET_OPEN_ACTION,"click",function(a){h.getPostPurchaseVideos()})});"use strict";f.declare("post-purchase-side-sheet-constants",{PP_ATTRIBUTION:"post-purchase",PP_LOG_LEVEL_ERROR:"ERROR",PP_SIDE_SHEET_OPEN_ACTION:"pp-sidesheet-open-action",PP_SIDE_SHEET_CLOSE_ACTION:"pp-sidesheet-close-action",PP_SIDE_SHEET_CLOSE_LINK_SELECTOR:"#pp-sidesheet-close-link",PP_SIDE_SHEET_FOREGROUND_SELECTOR:"#pp-sidesheet-foreground-content-div",PP_SIDE_SHEET_BACKGROUND_SELECTOR:"#pp-sidesheet-background-close-div", PP_SIDE_SHEET_TAB_INFO_EVENT:"info",PP_SIDE_SHEET_TAB_VIDEO_EVENT:"video",PP_SIDE_SHEET_TAB_CONTACT_EVENT:"contact",PP_SIDE_SHEET_TAB_SET:"pp-sidesheet-tabs",PP_SIDE_SHEET_DESKTOP_WIDTH:"580px",PP_ANIMATION_SLIDE_TIME:100,PP_SIDE_SHEET_HIDE_WIDTH_CHANGE:50,PP_INFO_LINK_SELECTOR:"#pp-sidesheet-open-link-info",PP_SIDE_SHEET_CLOSE_ACTION_BACKGROUND_SELECTOR:"#pp-sidesheet-close-action-bg",PP_SIDE_SHEET_CLOSE_ACTION_ICON_SELECTOR:"#pp-sidesheet-close-action-icon",PP_SIDE_SHEET_SCROLL_CONTAINER_SELECTOR:"#postpurchase-sidesheet-display-scroller", PP_SIDE_SHEET_DOC_WIDGET_LINK_SELECTOR:"#postpurchase-sidesheet-product-documents \x3e .postpurchase-sidesheet-feature-content \x3e .postpurchase-sidesheet-doc-list-item \x3e a",PP_SIDE_SHEET_PRODUCT_SUPPORT_LINK_SECTION_SELECTOR:"#postpurchase-sidesheet-product-support-link-section a",PP_INFO_LINK_CLICK_CSM:"dp:postPurchase:anchorLinks:openInfoTabClick",PP_INFO_LINK_CLICK_NO_SIDE_SHEET_CSM:"dp:postPurchase:anchorLinks:openInfoTabClickFailureBtf",PP_PRODUCT_SUPPORT_LINK_CLICK_CSM:"dp:postPurchase:sideSheet:productSupportLinkClick", PP_SIDE_SHEET_DOC_CLICK_CSM:"dp:postPurchase:sideSheet:productDocumentsClick",PP_VIDEOS_DIV_HOLDER:"#pp-sidesheet-videos-holder",PP_VIDEOS_HIDDEN_ASIN_FIELD:"#ppSideSheetVideoAsin",PP_VIDEOS_HIDDEN_MARKETPLACE_ID_FIELD:"#ppSideSheetVideoMarketplaceId",PP_VIDEOS_HIDDEN_LOCALE_FIELD:"#ppSideSheetVideoLocale",PP_VIDEOS_CUSTOMER_ID:"#ppSideSheetVideoCustomerId",PP_VIDEOS_REQUEST_ID:"#ppSideSheetVideoRequestId",PP_VIDEOS_EMPTY_VIEW:"#pp-sidesheet-videos-empty-view",PP_VIDEOS_RESULT_EMPTY:"#vse-successful-empty", PP_VIDEOS_LOAD_URI:"/vap/ew/componentbuilder",PP_VIDEOS_REQUESTER:"VideoShoppingExperience",PP_VIDEOS_CLIENT_PREFIX:"ppvs",PP_VIDEOS_PAGE:"Detail",PP_VIDEOS_PLACEMENT:"PostPurchase",PP_VIDEOS_COUNT:10,DEVICE_MOBILE:"Mobile",DEVICE_DESKTOP:"Desktop",PP_VIDEO_REQUEST_CSM:"dp:postPurchase:sideSheet:video:requestVideo",PP_VIDEO_REQUEST_SUCCESS_CSM:"dp:postPurchase:sideSheet:video:requestVideoSuccess",PP_VIDEO_REQUEST_ERROR_CSM:"dp:postPurchase:sideSheet:video:requestVideoError",PP_VIDEO_REQUEST_LATENCY_CSM:"dp:postPurchase:sideSheet:video:requestVideoLatency", PP_VIDEO_REQUEST_ERROR_CODE_4XX_CSM:"dp:postPurchase:sideSheet:video:requestVideoErrorCode:4XX",PP_VIDEO_REQUEST_ERROR_CODE_5XX_CSM:"dp:postPurchase:sideSheet:video:requestVideoErrorCode:5XX",PP_TAB_SELECT_CSM:"dp:postPurchase:sideSheet:tabSelect:"});"use strict";f.when("A","jQuery","post-purchase-side-sheet-constants","post-purchase-csm-counters").register("post-purchase-side-sheet-controller",function(b,e,a,d){function c(d,c){b.animate(e(a.PP_SIDE_SHEET_FOREGROUND_SELECTOR),d,a.PP_ANIMATION_SLIDE_TIME, "ease-out",c)}function h(a){b.show(a.closest(".iou-ingress-link"));b.show(a)}return{openSideSheet:function(){e(a.PP_SIDE_SHEET_FOREGROUND_SELECTOR).show(function(){c({right:"0px"})})},closeSideSheet:function(){b.hide(a.PP_SIDE_SHEET_BACKGROUND_SELECTOR);var d=e(a.PP_SIDE_SHEET_FOREGROUND_SELECTOR).width()+a.PP_SIDE_SHEET_HIDE_WIDTH_CHANGE;c({right:"-"+d+"px"},function(){e(a.PP_SIDE_SHEET_FOREGROUND_SELECTOR).css({display:"none"})})},showIngressLink1stAttempt:function(){var d=e(a.PP_INFO_LINK_SELECTOR), c=e(a.PP_SIDE_SHEET_FOREGROUND_SELECTOR);0b.status?a.PP_VIDEO_REQUEST_ERROR_CODE_4XX_CSM:500<=b.status&&600>b.status?a.PP_VIDEO_REQUEST_ERROR_CODE_5XX_CSM:null)&&d.incrementCounterOncePerSession(b,1)}};l=e.now();b.ajax(c);d.incrementCounterOncePerSession(a.PP_VIDEO_REQUEST_CSM)})}})});