(function(g){var f=window.AmazonUIPageJS||window.P,n=f._namespace||f.attributeErrors,a=n?n("CommonDetailPageScripts",""):f;a.guardFatal?a.guardFatal(g)(a,window):a.execute(function(){g(a,window)})})(function(g,f,n){g.when("jQuery","jumpLink").execute(function(a,b){var f=a("#miniATFUDP"),k=0;0e?50-e:10,r=1,r=0,y=(new Date).getTime(),setTimeout(function(){var e=u.scrollTop(),a=b("#miniATFUDP");if(0= c.length||0>=c.height())c=b("#buyxgety_feature_div");var d=c;c=Number.MAX_VALUE;if(d&&0c?!v&&a.is(":hidden")&&(a.removeClass("a-hidden"),a.slideDown(200)):(a.slideUp(200),v=0)}},e))}k=b("#miniATFUDP");var A=b("#miniATFPartialSelection")[0],p=b(".twister-dropdown-highlight")[0];if(!(0>=k.length)){var v=0,y=0,r=0,q={},t=0,w=0,z="T2";q.setMiniATFShowHeight=function(b){z=b};q.setMiniATFScrollUpHeight= function(a){w=0;"T1"===a&&(a=b("#productTitle"),0= e.getContentContainer().outerHeight()-7?a.addClass("climatePledgeFriendlyShadowBox"):a.removeClass("climatePledgeFriendlyShadowBox"))};d.defer(function(){a.sheet.changeHeight({height:g?Math.ceil(g.innerHeight()+1):k,duration:.3});d.delay(f,500)});e.getContentContainer().scroll(d.throttle(f,150));c.incrementCounter("cpf_dp_"+h()+"_dpcd_atck");l()&&d.loadDescendantImagesManually(e.getContentContainer())})):c.incrementCounter("cpf_dp_"+h()+"_dppb_nr")});d.declarative("dp-cpf-sheet-atf-bottom","click", function(a){a=a&&a.data||{};a.preloadDomId||f.log("missing preloadDomId in ATF bottom sheet secondary trigger","ERROR","DetailPageClimatePledgeFriendlyNewAssets");a=b("#"+a.preloadDomId);a.length?(a=a.clone().removeAttr("id"),a.find(".dp-cpf-container-bottom-sheet-atf-bottom").attr("id","dp-cpf-bottom-sheet-atf-bottom-content"),e.getContentContainer().replaceWith(a.html()),e.changeHeight({height:document.querySelector("#dp-cpf-bottom-sheet-atf-bottom-content").offsetHeight,duration:.2}),l()&&d.loadImageManually(b(".subAttributeCertIconATF")), c.incrementCounter("cpf_dp_"+h()+"_dpcd_abck")):c.incrementCounter("cpf_dp_"+h()+"_dppb_snr")})});f.when("A").execute(function(a){a.on("a:image:lazyLoaded",function(a){a.hasClass("climatePledgeFriendlyLazyload")&&c.recordLazyLoad()});a.on("a:image:load:cpf-leaf",function(){c.recordImageLoad()})});f.when("A","a-sheet").execute("dp-cpf-bottom-sheet-declarative-action",function(a,b){var d=a.$,e;a.declarative("dp-cpf-sheet","click",function(g){g=g&&g.data||{};e&&e.destroy();g.preloadDomId||f.log("missing preloadDomId in BTF bottom sheet trigger", "ERROR","DetailPageClimatePledgeFriendlyNewAssets");var k=d("#"+g.preloadDomId);k.length?(e=b.create({name:"dp-cpf-bottom-sheet",preloadDomId:"dp-cpf-bottom-sheet",height:1,closeType:"icon",sheetLabel:g.sheetLabel,sheetDescription:g.sheetDescription}),b.showSheet(e),a.on("a:sheet:afterShow:dp-cpf-bottom-sheet",function(b){var f=k.clone().removeAttr("id");f.find(".dp-cpf-container-bottom-sheet").attr("id","dp-cpf-bottom-sheet-content");e.getContentContainer().append(f.html());b.sheet.changeHeight({height:document.querySelector("#dp-cpf-bottom-sheet-content").offsetHeight, duration:.3});c.incrementCounter("cpf_dp_"+h()+"_dpcd_cfcd");l()&&a.loadImageManually(d(".subAttributeCertIconBTF"))})):c.incrementCounter("cpf_dp_"+h()+"_dppb_bnr")})});c.recordLatency()});"use strict";f.when("dp-latency-marker").register("climate-pledge-friendly-csm-counters",function(){return{incrementCounter:function(a,c){c=c||1;c=(ue.count(a)||0)+c;ue.count(a,c)},recordLatency:function(){"function"===typeof a.uet&&a.uet("bb","climate-pledge-friendly-dpx",{wb:1});"function"===typeof a.uet&&a.uet("x1", "climate-pledge-friendly-dpx",{wb:1});"function"===typeof a.uex&&a.uex("ld","climate-pledge-friendly-dpx",{wb:1})},recordClick:function(){"function"===typeof a.uet&&a.uet("af","climate-pledge-friendly-dpx-click",{wb:1});"function"===typeof a.uex&&a.uex("ld","climate-pledge-friendly-dpx-click",{wb:1})},recordImageLoad:function(){"function"===typeof a.uet&&a.uet("be","climate-pledge-friendly-dpx-image-loading",{wb:1});"function"===typeof a.uex&&a.uex("ld","climate-pledge-friendly-dpx-image-loading", {wb:1})},recordLazyLoad:function(){"function"===typeof a.uet&&a.uet("cf","climate-pledge-friendly-dpx-image-loading",{wb:1});"function"===typeof a.uex&&a.uex("ld","climate-pledge-friendly-dpx-image-loading",{wb:1})}}})}); /* ******** */ (function(b){var c=window.AmazonUIPageJS||window.P,d=c._namespace||c.attributeErrors,a=d?d("PrimeOneClickAssets",""):c;a.guardFatal?a.guardFatal(b)(a,window):a.execute(function(){b(a,window)})})(function(b,c,d){b.register("PrimeOneClickCountdown",function(){function a(e,a,b,c,d){if(!(1>e)){var f=this;this.endTime=this.getCurrentTime()+e;this.expirationCallback=a;this.displayElement=b;this.displayEnabled=!!d;this.formatFunction=c;this.update();this.currentTimer=setInterval(function(){f.update()},6E4)}} a.prototype.update=function(){var a=this.endTime-this.getCurrentTime();0>a&&(a=0);this.updateDisplay(a);0===a&&("function"===typeof this.expirationCallback&&this.expirationCallback(),this.destroy())};a.prototype.updateDisplay=function(a){this.displayElement&&this.displayEnabled&&(this.displayElement.innerHTML=this.getCountdownDisplay(Math.floor(a/3600),Math.floor(a%3600/60),a%60))};a.prototype.getCountdownDisplay=function(a,b,c){return"function"===typeof this.formatFunction?this.formatFunction(a, b,c):a+"h "+b+"m "+c+"s"};a.prototype.enableDisplay=function(){this.displayEnabled=!0;this.update()};a.prototype.disableDisplay=function(a){this.displayEnabled=!1;a&&this.displayElement&&(this.displayElement.innerHTML="")};a.prototype.getCurrentTime=function(){return Math.floor(+new Date/1E3)};a.prototype.destroy=function(){clearTimeout(this.currentTimer)};return{Countdown:a}})}); /* ******** */