(function(d){var b=window.AmazonUIPageJS||window.P,e=b._namespace||b.attributeErrors,a=e?e("PortableOffersDisplayAssets@core","PortableOffersDisplayAssets"):b;a.guardFatal?a.guardFatal(d)(a,window):a.execute(function(){d(a,window)})})(function(d,b,e){d.when("ax:initiator","action-handler:dom-input-parser").register("cta-handler",function(a,f){function c(c){a.initiateCTAHandling(c,f.createRequestPayload(c))}return{handleATCClick:c,handleCTAClick:c}});"use strict";d.register("pcta:bottom-sheet-constants",
function(){return{EVENTS:{AFTER_SHOW:"a:sheet:afterShow:",AFTER_HIDE:"a:sheet:afterHide:"}}});"use strict";d.register("pcta:utils:csm",function(){function a(a,c){b.ue&&b.ue.count&&b.ue.count(a,c)}return{logCounter:a,logPerformance:function(f){performance&&performance.now&&a(f,b.parseInt(performance.now()))}}});"use strict";d.register("action-handler:dom-input-parser",function(){return{createRequestPayload:function(a){var b={};if(0<a.$target.closest("form").length){for(var c=a.$target.closest("form")[0],
d=c.elements,e=0;e<d.length;e++){var g=d[e];g.name&&(b[g.name]=g.value)}(c=c.getAttribute("action")||c.action)&&(b.formAction=c)}a=a.data;for(var h in a)a.hasOwnProperty(h)&&(b[h]=a[h]);return b}}})});
/* ******** */
(function(a){var c=window.AmazonUIPageJS||window.P,d=c._namespace||c.attributeErrors,b=d?d("PortableOffersDisplayAssets@add-to-cart","PortableOffersDisplayAssets"):c;b.guardFatal?b.guardFatal(a)(b,window):b.execute(function(){a(b,window)})})(function(a,c,d){a.register("pcta:add-to-cart:constants",function(){return{DECLARATIVE_ACTION_NAME:"cta-add-to-cart",METRICS:{AX_LOAD_TIME:"ax:load:time"},PREFIX:"items",ITEM_TYPES:{BASE:"base"},PARAMETER_PATHS:{QUANTITY:["quantity"],GIFTOPTIONS:["additionalParameters",
"giftOptions","includeGiftReceipt"],UOM_QUANTITY_DIMENSION:["unitOfMeasureQuantity","unitOfMeasure","dimension"],UOM_QUANTITY_UNIT:["unitOfMeasureQuantity","unitOfMeasure","unit"],UOM_QUANTITY_VALUE:["unitOfMeasureQuantity","value"]},ELEMENTS:{AX_ATC:".ax-atc"},BUILD_TIME_CONSTANT:"build-change-v1"}});"use strict";a.when("A","pcta:add-to-cart:constants","cta-handler","pcta:utils:csm").register("pcta:add-to-cart:handler",function(b,a,c,f){b.declarative(a.DECLARATIVE_ACTION_NAME,"click",function(a){c.handleCTAClick(a)});
f.logPerformance(a.METRICS.AX_LOAD_TIME)});"use strict";a.when("A","pcta:add-to-cart:constants").register("pcta:atc-parameter-name",function(a,c){return{constructParameterName:function(a,b,d){if("string"===typeof a&&"number"===typeof b&&0<=b&&Array.isArray(d)){var e=c.PREFIX;e+="["+(b+"."+a)+"]";d.forEach(function(a){e+="["+a+"]"});return e}console.debug("pctaLogFatalsEvent","[Invalid parameters used to construct add to cart parameter]","WARN","addtocart_construct_parameter_error")}}})});
/* ******** */
