'use strict';mix_d("BuffetDisclaimersCards__buffet-high-priority-disclaimers-card:buffet-high-priority-disclaimers-card__Dxf2abMg","require exports tslib @c/remote-operations @c/scoped-dom @c/navigation @p/A @c/metrics @c/aui-utils".split(" "),function(Ja,ta,w,Ka,La,Ma,Na,ka,T){function ba(a){return a&&"object"===typeof a&&"default"in a?a:{"default":a}}function Oa(a){if(a&&a.__esModule)return a;var c=Object.create(null);a&&Object.keys(a).forEach(function(b){if("default"!==b){var d=Object.getOwnPropertyDescriptor(a,
b);Object.defineProperty(c,b,d.get?d:{enumerable:!0,get:function(){return a[b]}})}});c["default"]=a;return c}var Pa=ba(Ka),n=ba(La),ua=ba(Ma),R=ba(Na),va={},la=function(a,c,b){void 0===c&&(c="");void 0===b&&(b=1);c=a+c;va.hasOwnProperty(c)||(va[c]=!0,ka.count(a,(ka.count(a)||0)+b))},Qa=function(a){la(R["default"].capabilities.mobile?"Card:EERU:SharedLib:mobile:render":"Card:EERU:SharedLib:desktop:render");var c=function(d,f){d={$event:{preventDefault:R["default"].$.noop,stopPropagation:R["default"].$.noop},
$target:d.getContent().find('[data-a-tab-name="'+f+'"]'),data:{name:"energyEfficiencyTabSet"}};R["default"].trigger("a:declarative:a-tabs:click",d)},b=function(d,f){var h=d&&d.$event,g=d&&d.data||{},m=g.activeTabName,k=g.modalHeight,q=g.name;h&&h.preventDefault&&h.preventDefault();h&&h.stopPropagation&&h.stopPropagation();h=f.get(q);h||(R["default"].on("a:popover:beforeShow:"+q,function(t){t.popover&&t.popover.getContent&&(t=t.popover.getContent(),t.find(".a-manually-loaded").parent().css("min-height",
k),R["default"].loadDescendantImagesManually(t))}),h=f.create(d.$target,g));h.show();c(h,m)};a.when("a-secondary-view").execute("RegisterEnergyEfficiencyEventMobile",function(d){R["default"].declarative("card-energy-efficiency-secondary-view","click",function(f){la("Card:EERU:SharedLib:mobile:click",f&&f.data&&f.data.name||"");b(f,d)})});a.when("a-modal").execute("RegisterEnergyEfficiencyEventDesktop",function(d){R["default"].declarative("card-energy-efficiency-modal","click",function(f){la("Card:EERU:SharedLib:desktop:click",
f&&f.data&&f.data.name||"");b(f,d)})})},Ra=function(a){a.when("ready").execute("EEBadgeProductFicheResize",function(c){var b=R["default"].$;b(".energyEfficiencyContainer").each(function(d,f){d=b(f).find(".energyEfficiencyProductFicheLabel").first();f=b(f).find("svg").first();d.parent().outerHeight()>f.outerHeight()&&(d.removeClass("a-size-small"),d.addClass("a-size-micro"),d.parent().outerHeight()>f.outerHeight()&&d.parent().css("line-height","10px"))})})},Sa=function(){var a=window.P;Qa(a);Ra(a)},
wa;(function(a){a.BEFORE_FIRST_OPEN="before first open";a.OPEN="open";a.CLOSE="close"})(wa||(wa={}));var xa;(function(a){a.RIGHT_OUT_OF_SCREEN="-120%";a.INSIDE_SCREEN="0px"})(xa||(xa={}));var I;(function(a){a.MOBILE="mobile";a.DESKTOP="desktop"})(I||(I={}));var J;(function(a){a.ATF="ATF";a.BTF="BTF"})(J||(J={}));var O;(function(a){a.SW="SW";a.CER="CER";a.GPSR="GPSR";a.ENV="ENV"})(O||(O={}));var Z;(function(a){a.Sidesheet="Sidesheet";a.BTF="BTF"})(Z||(Z={}));var ya;(function(a){a.FATAL="FATAL";a.ERROR=
"ERROR";a.WARN="WARN"})(ya||(ya={}));var y;(function(a){a[a.PSI=0]="PSI";a[a.RSP_MANUFACTURER=1]="RSP_MANUFACTURER";a[a.PD=2]="PD";a[a.RED=3]="RED";a[a.LEGAL_WARNINGS_SW=4]="LEGAL_WARNINGS_SW";a[a.LEGAL_WARNINGS_CER=5]="LEGAL_WARNINGS_CER"})(y||(y={}));var e;(function(a){a[a.RSP=0]="RSP";a[a.MANUFACTURER=1]="MANUFACTURER";a[a.PSI=2]="PSI";a[a.PD=3]="PD";a[a.RED=4]="RED";a[a.SAFETYWARNING=5]="SAFETYWARNING";a[a.CERTIFICATION=6]="CERTIFICATION"})(e||(e={}));var l;(function(a){a.CLIENT_LOAD="Buffet.Client.Load";
a.RED_LOADED_CHARGER_INCLUDED="Buffet.Client.RedChargerIncludedLoaded";a.RED_LOADED_NO_CHARGER_INCLUDED="Buffet.Client.RedNoChargerIncludedLoaded";a.INGRESS_LINK_CLICK="Buffet.Sidesheet.IngressLinkClick";a.RSP_INGRESS_LINK_CLICK="Buffet.Sidesheet.RspIngressLinkClick";a.PD_INGRESS_LINK_CLICK="Buffet.Sidesheet.PdIngressLinkClick";a.PSI_INGRESS_LINK_CLICK="Buffet.Sidesheet.PsiIngressLinkClick";a.SAFETY_WARNING_PICTOGRAM_CLICK="Buffet.Sidesheet.SafetyWarningPicClick";a.SAFETY_WARNING_PICTOGRAM_LOADED=
"Buffet.Sidesheet.SafetyWarninPicLoaded";a.CERTIFICATION_INGRESS_LINK_CLICK="Buffet.Sidesheet.CertificationIngressLinkClick";a.CERTIFICATION_INGRESS_LINK_LOADED="Buffet.Sidesheet.CertificationIngressLinkLoaded";a.CERTIFICATION_PICTOGRAM_CLICK="Buffet.Sidesheet.CertificationPicClick";a.CERTIFICATION_PICTOGRAM_LOADED="Buffet.Sidesheet.CertificationPicLoaded";a.RED_ICON_CLICK_CHARGER_INCLUDED="Buffet.Sidesheet.RedIconClickChargerIncluded";a.RED_ICON_CLICK_NO_CHARGER_INCLUDED="Buffet.Sidesheet.RedIconClickNoChargerIncluded";
a.RED_LINK_CLICK_CHARGER_INCLUDED="Buffet.Sidesheet.RedLinkClickChargerIncluded";a.RED_LINK_CLICK_NO_CHARGER_INCLUDED="Buffet.Sidesheet.RedLinkClickNoChargerIncluded";a.SIDESHEET_OPENED="Buffet.Sidesheet.Open";a.SIDESHEET_CLOSED="Buffet.Sidesheet.Close";a.SIDESHEET_DWELL_TIME="Buffet.Sidesheet.DwellTime";a.SIDESHEET_CONTENT_LOADED="Buffet.SdesheetContent.Load";a.SIDESHEET_CONTENT_LOAD_LATENCY="Buffet.SidesheetContent.LoadLatency";a.PSI_PILL_CLICK="Buffet.SidesheetContent.PsiPillClick";a.MANUFACTURER_PILL_CLICK=
"Buffet.SidesheetContent.ManufacturerPillClick";a.RSP_PILL_CLICK="Buffet.SidesheetContent.RspPillClick";a.PD_PILL_CLICK="Buffet.SidesheetContent.PdPillClick";a.RED_PILL_CLICK="Buffet.SidesheetContent.RedPillClick";a.PSI_ZOOM_IN_CLICK="Buffet.SidesheetContent.PsiZoomInClick";a.PSI_ZOOM_OUT_CLICK="Buffet.SidesheetContent.PsiZoomOutClick";a.PD_SIDESHEET_WINDOW_OPEN_CLICK="Buffet.SidesheetContent.PdWindowOpen";a.GPSR_EXPANDER_OPEN="Buffet.Sidesheet.GpsrExpanderOpen";a.ENVIORNMENTAL_EXPANDER_OPEN="Buffet.Sidesheet.EnviornmantalExpanderOpen";
a.SAFETY_WARNINGS_EXPANDER_OPEN="Buffet.Sidesheet.SafetyWarningsExpanderOpen";a.CERTIFICATIONS_EXPANDER_OPEN="Buffet.Sidesheet.CertificationsExpanderOpen";a.PD_BTF_WINDOW_OPEN_CLICK="Buffet.BtfContent.PdWindowOpen";a.MISSING_ASIN_ERROR="Buffet.MissingAsin.Error";a.MISSING_CRUCIAL_ELEMENTS_ERROR="Buffet.MissingCrucialElements.Error";a.MISSING_GPSR_CONTENT_ERROR="Buffet.MissingGpsrContent.Error";a.MISSING_PD_ELEMENTS_ERROR="Buffet.MissingExpectedPdElements.Error";a.SIDESHEET_OPEN_ERROR="Buffet.Sidesheet.Open.Error";
a.SIDESHEET_CONTENT_LOAD_ERROR="Buffet.Sidesheet.ContentLoad.Error";a.ALL_AAPI_CALL_FAIL="Buffet.AllAapiCall.FAIL";a.RSP_MANUFACTURER_AAPI_CALL_FAIL="Buffet.RspManufacturerAapiCall.FAIL";a.PSI_AAPI_CALL_FAIL="Buffet.PsiAapiCall.FAIL";a.PD_AAPI_CALL_FAIL="Buffet.PdAapiCall.FAIL";a.RED_AAPI_CALL_FAIL="Buffet.RedAapiCall.FAIL";a.LEGAL_WARNINGS_AAPI_FAIL="Buffet.LegalWarningsAapiCall.FAIL"})(l||(l={}));var za=new Map([[e.RSP,{aapiCallFailMetric:l.RSP_MANUFACTURER_AAPI_CALL_FAIL,pillClickMetric:l.RSP_PILL_CLICK}],
[e.MANUFACTURER,{aapiCallFailMetric:l.RSP_MANUFACTURER_AAPI_CALL_FAIL,pillClickMetric:l.MANUFACTURER_PILL_CLICK}],[e.PSI,{aapiCallFailMetric:l.PSI_AAPI_CALL_FAIL,pillClickMetric:l.PSI_PILL_CLICK}],[e.PD,{aapiCallFailMetric:l.PD_AAPI_CALL_FAIL,pillClickMetric:l.PD_PILL_CLICK}],[e.RED,{aapiCallFailMetric:l.RED_AAPI_CALL_FAIL,pillClickMetric:l.RED_PILL_CLICK}],[e.SAFETYWARNING,{aapiCallFailMetric:l.LEGAL_WARNINGS_AAPI_FAIL}],[e.CERTIFICATION,{aapiCallFailMetric:l.LEGAL_WARNINGS_AAPI_FAIL}]]),Ta=new Map([[e.RSP,
y.RSP_MANUFACTURER],[e.MANUFACTURER,y.RSP_MANUFACTURER],[e.PSI,y.PSI],[e.PD,y.PD],[e.RED,y.RED],[e.SAFETYWARNING,y.LEGAL_WARNINGS_SW],[e.CERTIFICATION,y.LEGAL_WARNINGS_CER]]),Ua=new Map([[O.GPSR,l.GPSR_EXPANDER_OPEN],[O.ENV,l.ENVIORNMENTAL_EXPANDER_OPEN],[O.SW,l.SAFETY_WARNINGS_EXPANDER_OPEN],[O.CER,l.CERTIFICATIONS_EXPANDER_OPEN]]),ca=function(a,c){a&&!a.classList.contains(c)&&a.classList.add(c)},da=function(a,c){a&&a.classList.contains(c)&&a.classList.remove(c)},ma=function(a){if(!a.every(function(c){return c})||
!a.map(function(c){return null===c||void 0===c?void 0:c.id}).every(function(c){return c}))throw Error("Some HTML elements are missing.");},Aa=function(a){return{html:a.innerHTML,className:a.className,style:a.style.cssText}},ea=function(a,c){a.innerHTML=c.html;a.className=c.className;a.style.cssText=c.style},D;(function(a){a.LANDING_ASIN="buffet-atf-asin";a.OPEN_BUTTON_IMG_DOC_CONT="buffet-sidesheet-atf-open-button-show-image-doc-contact";a.CLOSE_BUTTON="buffet-sidesheet-atf-close-button";a.DARKENED_BACKGROUND=
"buffet-atf-darkened-background";a.SAFETY_AND_PRODUCT_RESOURCES_HEADER="safety-and-product-resources";a.RED_ATF_CONTENT="buffet-red-atf-content";a.RED_IS_CHARGER_INCLUDED_INPUT="buffet-red-atf-is-charger-included";a.RED_SIDESHEET_INGRESS="buffet-red-atf-sidesheet-ingress";a.SIDESHEET="buffet-sidesheet-atf";a.SIDESHEET_ROOT="buffet-sidesheet-root-atf";a.SIDESHEET_CONTENT="buffet-sidesheet-atf-content";a.SIDESHEET_CONTENT_HEADER="buffet-sidesheet-atf-content-header";a.SIDESHEET_SUB_CONTENT="buffet-sidesheet-atf-sub-content";
a.SIDESHEET_CONTENT_BUFFER_SPINNER="buffet-sidesheet-atf-content-spinner";a.SIDESHEET_ERROR_ALERT="buffet-sidesheet-atf-error-alert";a.SIDESHEET_GPSR_PILLS_CONTAINER="buffet-sidesheet-gpsr-pills-container";a.SIDESHEET_ENV_PILLS_CONTAINER="buffet-sidesheet-env-pills-container";a.SIDESHEET_RSP_PILL="buffet-sidesheet-rsp-pill";a.SIDESHEET_MANUFACTURER_PILL="buffet-sidesheet-manufacturer-pill";a.SIDESHEET_PSI_PILL="buffet-sidesheet-psi-pill";a.SIDESHEET_RSP_CONTENT="buffet-sidesheet-rsp-content-container";
a.SIDESHEET_MANUFACTURER_CONTENT="buffet-sidesheet-manufacturer-content-container";a.SIDESHEET_PSI_CONTENT="buffet-sidesheet-psi-content-container";a.SIDESHEET_PSI_CAROUSEL="buffet-psi-component";a.SIDESHEET_RED_CONTENT="buffet-sidesheet-red-content-container";a.SIDESHEET_RED_PILL="buffet-product-red-pill";a.SIDESHEET_PD_CONTENT="buffet-sidesheet-product-docs-content-container";a.SIDESHEET_PD_PILL="buffet-product-docs-pill";a.RSP_MANUFACTURER_AAPI_FAIL="buffet-sidesheet-rsp-manufacturer-aapi-fail";
a.PSI_AAPI_FAIL="buffet-sidesheet-psi-aapi-fail";a.PD_AAPI_FAIL="buffet-sidesheet-pd-aapi-fail";a.RED_AAPI_FAIL="buffet-sidesheet-mobile-red-aapi-fail";a.SIDESHEET_PD_LINKS_SECTION="product-docs-links";a.SIDESHEET_PD_LINK="product-docs-ingress-";a.SIDESHEET_PD_URL="buffet-product-docs-url-";a.SIDESHEET_PD_LIST_SIZE="product-docs-list-size";a.BTF_PD_LINKS_SECTION="product-docs-btf-links";a.BTF_PD_LINK="product-docs-btf-ingress-";a.BTF_PD_URL="buffet-product-docs-btf-url-";a.BTF_PD_LIST_SIZE="product-docs-btf-list-size";
a.PRODUCT_DOCS_BTF="product-docs-btf-section";a.GPSR_EXPANDER="buffet-sidesheet-gpsr-expander";a.GPSR_EXPANDER_HEADER="buffet-sidesheet-gpsr-expander-header";a.ENVIRONMENTAL_EXPANDER="buffet-sidesheet-env-expander";a.ENVIRONMENTAL_EXPANDER_HEADER="buffet-sidesheet-env-expander-header";a.DYNAMIC_CERTIFICATIONS_INGRESS_T1="buffet-dynamic-certifications-ingress-atf-t1";a.DYNAMIC_CERTIFICATIONS_INGRESS_T2="buffet-dynamic-certifications-ingress-atf-t2";a.DYNAMIC_DOCUMENTS_INGRESS="buffet-dynamic-product-docs-ingress-atf";
a.DYNAMIC_CONTACTS_INGRESS="buffet-dynamic-contacts-ingress-atf";a.DYNAMIC_IMAGES_INGRESS="buffet-dynamic-images-ingress-atf";a.SIDESHEET_SAFETY_WARNINGS_CONTENT="sidesheet-safety-warnings-content-container";a.SIDESHEET_CERTIFICATIONS_CONTENT="sidesheet-certifications-content-container";a.SAFETY_WARNINGS_EXPANDER_HEADER="sidesheet-safety-warnings-expander-header";a.CERTIFICATIONS_EXPANDER_HEADER="sidesheet-certifications-expander-header";a.LEGAL_WARNINGS_AAPI_FAIL="legal-warnings-aapi-fail"})(D||
(D={}));var Ba;(function(a){a.DE="A1PA6795UKMFR9";a.FR="A13V1IB3VIYZZH";a.IT="APJ6JRA9NG5V4";a.ES="A1RKKUPIHCS9HS";a.NL="A1805IZSGTT6HS";a.SE="A2NODRKZP88ZB9";a.PL="A1C3SOZRARQ6R3";a.BE="AMEN7PMS3EDWL";a.IE="A28R8C7NBKEWEA"})(Ba||(Ba={}));var u=function(a,c,b,d){void 0===d&&(d=1);ka.count(a+"."+c+"."+b,d)},Ca=function(a,c,b,d,f,h){var g=b.SIDESHEET_PD_LINKS_SECTION,m=b.SIDESHEET_PD_LIST_SIZE,k=b.SIDESHEET_PD_LINK,q=b.SIDESHEET_PD_URL,t=l.PD_SIDESHEET_WINDOW_OPEN_CLICK;a===Z.BTF&&(g=b.BTF_PD_LINKS_SECTION,
m=b.BTF_PD_LIST_SIZE,k=b.BTF_PD_LINK,q=b.BTF_PD_URL,t=l.PD_BTF_WINDOW_OPEN_CLICK);a=n["default"].cardRoot.querySelector("#"+g);m=n["default"].cardRoot.querySelector("#"+m);if(a&&m)for(a=function(A){var r=n["default"].cardRoot.querySelector("#"+k+A);A=n["default"].cardRoot.querySelector("#"+q+A);if(r&&A){var C=A.value;r.addEventListener("click",function(){c?r.setAttribute("href",C):d.openWindow(C,"ProductDisplay");u(f,h,t)})}else u(f,h,l.MISSING_PD_ELEMENTS_ERROR)},b=0;b<parseInt(m.value);b++)a(b);
else u(f,h,l.MISSING_PD_ELEMENTS_ERROR)},Da=function(a,c,b){if(a){var d=!1,f=a.querySelectorAll("li"),h=a.querySelectorAll("img");f.forEach(function(g,m){g.style.maxWidth="1600px";0===m?g.style.marginLeft="0px":m===f.length-1&&(g.style.marginRight="0px")});h.forEach(function(g){g.addEventListener("click",function(){return w.__awaiter(void 0,void 0,void 0,function(){return w.__generator(this,function(m){switch(m.label){case 0:return d?(u(c,b,l.PSI_ZOOM_OUT_CLICK),f.forEach(function(k){k.style.width=
""}),h.forEach(function(k){k.style.maxWidth="100%";var q=n["default"].cardRoot.querySelector("#"+k.id+"-zoomed-out").value;k.src=q}),d=!1):(u(c,b,l.PSI_ZOOM_IN_CLICK),f.forEach(function(k){k.style.width="1600px"}),h.forEach(function(k){k.style.maxWidth="1600px";var q=n["default"].cardRoot.querySelector("#"+k.id+"-zoomed-in").value;k.src=q}),d=!0),[4,g.decode()];case 1:return m.sent(),g.scrollIntoView({block:"center",inline:"center"}),[2]}})})})})}},na=new Map([[O.SW,Array.from([e.SAFETYWARNING])],
[O.CER,Array.from([e.CERTIFICATION])],[O.ENV,Array.from([e.RED])],[O.GPSR,Array.from([e.PSI,e.MANUFACTURER,e.RSP,e.PD])]]),Va=function(a){return new Map([[e.RSP,{contentElement:n["default"].cardRoot.querySelector("#"+a.SIDESHEET_RSP_CONTENT),pillElement:n["default"].cardRoot.querySelector("#"+a.SIDESHEET_RSP_PILL)}],[e.MANUFACTURER,{contentElement:n["default"].cardRoot.querySelector("#"+a.SIDESHEET_MANUFACTURER_CONTENT),pillElement:n["default"].cardRoot.querySelector("#"+a.SIDESHEET_MANUFACTURER_PILL)}],
[e.PSI,{contentElement:n["default"].cardRoot.querySelector("#"+a.SIDESHEET_PSI_CONTENT),pillElement:n["default"].cardRoot.querySelector("#"+a.SIDESHEET_PSI_PILL)}],[e.PD,{contentElement:n["default"].cardRoot.querySelector("#"+a.SIDESHEET_PD_CONTENT),pillElement:n["default"].cardRoot.querySelector("#"+a.SIDESHEET_PD_PILL)}],[e.RED,{contentElement:n["default"].cardRoot.querySelector("#"+a.SIDESHEET_RED_CONTENT),pillElement:n["default"].cardRoot.querySelector("#"+a.SIDESHEET_RED_PILL)}],[e.SAFETYWARNING,
{contentElement:n["default"].cardRoot.querySelector("#"+a.SIDESHEET_SAFETY_WARNINGS_CONTENT)}],[e.CERTIFICATION,{contentElement:n["default"].cardRoot.querySelector("#"+a.SIDESHEET_CERTIFICATIONS_CONTENT)}]])},fa=function(a){return new Map([[O.SW,{headerElement:n["default"].cardRoot.querySelector("#"+a.SAFETY_WARNINGS_EXPANDER_HEADER)}],[O.CER,{headerElement:n["default"].cardRoot.querySelector("#"+a.CERTIFICATIONS_EXPANDER_HEADER)}],[O.GPSR,{headerElement:n["default"].cardRoot.querySelector("#"+a.GPSR_EXPANDER_HEADER),
pillContainerElement:n["default"].cardRoot.querySelector("#"+a.SIDESHEET_GPSR_PILLS_CONTAINER)}],[O.ENV,{headerElement:n["default"].cardRoot.querySelector("#"+a.ENVIRONMENTAL_EXPANDER_HEADER),pillContainerElement:n["default"].cardRoot.querySelector("#"+a.SIDESHEET_ENV_PILLS_CONTAINER)}]])},Wa=function(a,c){switch(c){case e.RSP:case e.MANUFACTURER:return a.RSP_MANUFACTURER_AAPI_FAIL;case e.PSI:return a.PSI_AAPI_FAIL;case e.PD:return a.PD_AAPI_FAIL;case e.RED:return a.RED_AAPI_FAIL;case e.SAFETYWARNING:case e.CERTIFICATION:return a.LEGAL_WARNINGS_AAPI_FAIL}},
Ea=function(a){switch(a){case e.RSP:case e.MANUFACTURER:return y.RSP_MANUFACTURER;case e.PSI:return y.PSI;case e.PD:return y.PD;case e.RED:return y.RED;case e.SAFETYWARNING:return y.LEGAL_WARNINGS_SW;case e.CERTIFICATION:return y.LEGAL_WARNINGS_CER}},Xa=function(a,c){a.forEach(function(b,d){switch(d){case e.RSP:case e.MANUFACTURER:case e.PSI:case e.RED:case e.PD:b.contentElement&&b.pillElement||(a.delete(d),c.delete(Ea(d)));case e.SAFETYWARNING:case e.CERTIFICATION:b.contentElement||(a.delete(d),
c.delete(Ea(d)))}})},aa=function(a){var c;try{for(var b=w.__values(na.keys()),d=b.next();!d.done;d=b.next()){var f=d.value;if(na.get(f).includes(a))return f}}catch(g){var h={error:g}}finally{try{d&&!d.done&&(c=b.return)&&c.call(b)}finally{if(h)throw h.error;}}throw Error("Content type not found in Expanders-ContentType mapping!");},Ya=function(a,c){var b,d,f,h,g,m;try{for(var k=w.__values(c.keys()),q=k.next();!q.done;q=k.next()){var t=q.value,A=null===(g=c.get(t))||void 0===g?void 0:g.pillContainerElement;
if(A){var r=0;try{for(var C=(d=void 0,w.__values(a.keys())),F=C.next();!F.done;F=C.next()){var G=F.value;aa(G)===t&&a.get(G).pillElement&&r++}}catch(v){d={error:v}}finally{try{F&&!F.done&&(f=C.return)&&f.call(C)}finally{if(d)throw d.error;}}A.setAttribute("role","tablist");A.setAttribute("aria-orientation","horizontal");1===r&&A.setAttribute("aria-label","Tab navigation with single tab")}}}catch(v){var E={error:v}}finally{try{q&&!q.done&&(b=k.return)&&b.call(k)}finally{if(E)throw E.error;}}E=function(v){var K=
a.get(v),B=K.pillElement,P=K.contentElement;K=aa(v);K=null===(m=c.get(K))||void 0===m?void 0:m.pillContainerElement;if(B&&P&&K){B.id||(B.id="tab-"+v);B.setAttribute("role","tab");B.setAttribute("aria-selected","false");B.setAttribute("tabindex","-1");B.removeAttribute("type");if(B.hasAttribute("buttonType")){var U=B.getAttribute("buttonType");B.removeAttribute("buttonType");B.setAttribute("data-button-type",U||"")}P.setAttribute("role","tabpanel");P.setAttribute("tabindex","0");P.addEventListener("keydown",
function(z){"Tab"===z.key&&z.shiftKey&&(z.preventDefault(),B.focus());"Escape"===z.key&&(z.preventDefault(),B.focus())});U=V(B,K);B.addEventListener("click",U);B.addEventListener("keydown",function(z){var S=z.target,M=S.parentElement;if(M){var H=Array.prototype.slice.call(M.children).filter(function(Y){return"tab"===Y.getAttribute("role")}),W=H.indexOf(S);switch(z.key){case "ArrowLeft":case "ArrowUp":z.preventDefault();0<W&&(z=H[W-1],z.focus(),z.click(),V(z,M)());break;case "ArrowRight":case "ArrowDown":z.preventDefault();
W<H.length-1&&(z=H[W+1],z.focus(),z.click(),V(z,M)());break;case "Home":z.preventDefault();H[0].focus();H[0].click();V(H[0],M)();break;case "End":z.preventDefault();H[H.length-1].focus();H[H.length-1].click();V(H[H.length-1],M)();break;case "Enter":case " ":z.preventDefault();S.click();V(S,M)();break;case "Tab":if("true"===S.getAttribute("aria-selected"))if((M=S.getAttribute("aria-controls"))&&n["default"].cardRoot){if(M=n["default"].cardRoot.querySelector("#"+M))z.preventDefault(),M.focus()}else P&&
(z.preventDefault(),P.focus())}}});K=Array.prototype.slice.call(K.children).filter(function(z){return"tab"===z.getAttribute("role")});B===K[0]&&(B.setAttribute("aria-selected","true"),B.setAttribute("tabindex","0"),P.setAttribute("tabindex","0"));v=P.id||"panel-"+v;P.id||(P.id=v);B.setAttribute("aria-controls",v)}};try{for(var N=w.__values(a.keys()),x=N.next();!x.done;x=N.next())G=x.value,E(G)}catch(v){var p={error:v}}finally{try{x&&!x.done&&(h=N.return)&&h.call(N)}finally{if(p)throw p.error;}}},
V=function(a,c){return function(){setTimeout(function(){var b=a.offsetLeft,d=a.offsetWidth,f=c.offsetWidth,h=b+d;d=Math.max(0,Math.min(b-f/2+d/2,c.scrollWidth-f));try{a.scrollIntoView({behavior:"auto",block:"nearest",inline:"center"}),c.scrollLeft=d}catch(g){c.scrollLeft=d}setTimeout(function(){var g=c.scrollLeft;if(b<g||h>g+f)b<g?c.scrollLeft=b:h>g+f&&(c.scrollLeft=h-f)},100)},50)}},Ha=function(a,c,b){var d;void 0===b&&(b=!1);var f=aa(a);try{for(var h=w.__values(c.keys()),g=h.next();!g.done;g=h.next()){var m=
g.value;switch(m){case e.PSI:case e.MANUFACTURER:case e.RSP:case e.PD:case e.RED:var k=c.get(m),q=aa(m);if(q===f)m===a?Fa(k):Ga(k);else if(b){var t=m;a:{var A=void 0,r=void 0,C=new Set(c.keys()),F=na.get(q);if(F){try{for(var G=w.__values(F),E=G.next();!E.done;E=G.next()){var N=E.value;if(C.has(N)){var x=N;break a}}}catch(v){r={error:v}}finally{try{E&&!E.done&&(A=G.return)&&A.call(G)}finally{if(r)throw r.error;}}x=null}else throw Error("Expander must be defined in Expander-ContentType mapping!");}t===
x?Fa(k):Ga(k)}}}}catch(v){var p={error:v}}finally{try{g&&!g.done&&(d=h.return)&&d.call(h)}finally{if(p)throw p.error;}}},Fa=function(a){ca(a.pillElement,"a-button-selected");a.pillElement.setAttribute("aria-selected","true");a.pillElement.setAttribute("tabindex","0");da(a.contentElement,"aok-hidden");a.contentElement.setAttribute("tabindex","0");a.contentElement.setAttribute("aria-hidden","false");a.contentElement.setAttribute("aria-label",(a.pillElement.textContent||"Tab")+" content");a.contentElement.removeAttribute("aria-labelledby");
if(!a.contentElement.id)if(a.pillElement.id)a.contentElement.id="panel-"+a.pillElement.id;else{var c=a.pillElement.getAttribute("data-content-type")||"unknown";a.contentElement.id="panel-"+c+"-"+Date.now()}a.pillElement.setAttribute("aria-controls",a.contentElement.id);a.pillElement.hasAttribute("data-keyboard-handler")||(a.pillElement.addEventListener("keydown",function(b){if("Tab"===b.key&&b.shiftKey){var d=a.pillElement.closest('[role="tablist"]');d&&(d=d.closest(".a-expander-container"))&&(d=
d.querySelector(".a-expander-header"))&&(b.preventDefault(),d.focus())}}),a.pillElement.setAttribute("data-keyboard-handler","true"));a.pillElement.focus();(c=a.pillElement.closest('[role="tablist"]'))&&V(a.pillElement,c)()},Ga=function(a){da(a.pillElement,"a-button-selected");a.pillElement.setAttribute("aria-selected","false");a.pillElement.setAttribute("tabindex","-1");ca(a.contentElement,"aok-hidden");a.contentElement.setAttribute("tabindex","-1");a.contentElement.setAttribute("aria-hidden","true")},
Ia=function(a){var c,b;try{for(var d=w.__values(Object.values(O)),f=d.next();!f.done;f=d.next()){var h=f.value,g=null===(b=fa(a).get(h))||void 0===b?void 0:b.headerElement,m=null===g||void 0===g?void 0:g.getAttribute("aria-expanded");g&&"true"===m&&g.click()}}catch(q){var k={error:q}}finally{try{f&&!f.done&&(c=d.return)&&c.call(d)}finally{if(k)throw k.error;}}},oa,pa,Q=new Set(Object.values(y).filter(function(a){return"number"===typeof a})),L,Za=Object.keys(y).length/2,db=function(a,c,b,d,f,h,g,m,
k,q,t){return w.__awaiter(void 0,void 0,void 0,function(){var A,r,C,F,G,E,N;return w.__generator(this,function(x){switch(x.label){case 0:A=Date.now();r=n["default"].cardRoot.querySelector("#"+g.SIDESHEET_CONTENT);C=n["default"].cardRoot.querySelector("#"+g.SIDESHEET_CONTENT_BUFFER_SPINNER);F=n["default"].cardRoot.querySelector("#"+g.SIDESHEET_ERROR_ALERT);G=[r,C,F];try{ma(G)}catch(p){return u(b,f,l.MISSING_CRUCIAL_ELEMENTS_ERROR),[2,[a,c]]}a&&(oa=Aa(C),pa=Aa(r));if(c)return[3,5];x.label=1;case 1:return x.trys.push([1,
3,,4]),ea(C,oa),ea(r,pa),E=n["default"].cardRoot.querySelector("#"+g.SIDESHEET_SUB_CONTENT),L=Va(g),N=fa(g),$a(E,b,f),Xa(L,Q),Ya(L,N),ab(b,f),[4,bb(h,g,m,b,f,d,t)];case 2:x.sent();if(Q.size===Za)throw u(b,f,l.ALL_AAPI_CALL_FAIL),Error();C.style.opacity="0";u(b,f,l.SIDESHEET_CONTENT_LOAD_LATENCY,Date.now()-A);T.delay(function(){ca(C,"aok-hidden");da(E,"aok-hidden");r.style.opacity="1"},200);c=!0;return[3,4];case 3:return x.sent(),u(b,f,l.SIDESHEET_CONTENT_LOAD_ERROR),ea(C,oa),ea(r,pa),da(F,"aok-hidden"),
C.style.opacity="0",T.delay(function(){ca(C,"aok-hidden");r.style.opacity="1"},200),[3,4];case 4:return[3,6];case 5:0!==Q.size&&Q.forEach(function(p){return w.__awaiter(void 0,void 0,void 0,function(){var v,K,B,P,U,z,S,M,H,W,Y,qa,ha,ra,ia,sa,ja;return w.__generator(this,function(X){switch(X.label){case 0:v=p;switch(v){case y.PSI:return[3,1];case y.RSP_MANUFACTURER:return[3,3];case y.PD:return[3,5];case y.RED:return[3,7];case y.LEGAL_WARNINGS_SW:return[3,9];case y.LEGAL_WARNINGS_CER:return[3,11]}return[3,
13];case 1:return[4,h.getPsiContent({asin:m})];case 2:return(K=X.sent())&&"false"===K.querySelector("#"+g.PSI_AAPI_FAIL).value?(Q.delete(y.PSI),B=L.get(e.PSI).contentElement,B.style.opacity="0",T.delay(function(){B.innerHTML=K.outerHTML;B.style.opacity="1"},500),P=n["default"].cardRoot.querySelector("#"+g.SIDESHEET_PSI_CAROUSEL),Da(P,b,f)):u(b,f,l.PSI_AAPI_CALL_FAIL),[3,13];case 3:return[4,h.getRspManufacturerContent({asin:m})];case 4:return(U=X.sent())&&"false"===U.querySelector("#"+g.RSP_MANUFACTURER_AAPI_FAIL).value?
(Q.delete(y.RSP_MANUFACTURER),z=U.querySelector("#"+g.SIDESHEET_RSP_CONTENT),S=U.querySelector("#"+g.SIDESHEET_MANUFACTURER_CONTENT),M=L.get(e.RSP).contentElement,H=L.get(e.MANUFACTURER).contentElement,M.style.opacity="0",H.style.opacity="0",T.delay(function(){M.innerHTML=z.innerHTML;H.innerHTML=S.innerHTML;M.style.opacity="1";H.style.opacity="1"},500)):u(b,f,l.RSP_MANUFACTURER_AAPI_CALL_FAIL),[3,13];case 5:return[4,h.getPdContent({asin:m})];case 6:return(W=X.sent())&&"false"===W.querySelector("#"+
g.PD_AAPI_FAIL).value?(Q.delete(y.PD),Y=L.get(e.PD).contentElement,Y.style.opacity="0",T.delay(function(){Y.innerHTML=W.innerHTML;Ca(Z.Sidesheet,d,g,t,b,f);Y.style.opacity="1"},500)):u(b,f,l.PD_AAPI_CALL_FAIL),[3,13];case 7:return[4,h.getRedContent({asin:m})];case 8:return(qa=X.sent())&&"false"===qa.querySelector("#"+g.RED_AAPI_FAIL).value?(Q.delete(y.RED),ha=L.get(e.RED).contentElement,ha.style.opacity="0",T.delay(function(){ha.innerHTML=qa.innerHTML;ha.style.opacity="1"},500)):u(b,f,l.RED_AAPI_CALL_FAIL),
[3,13];case 9:return[4,h.getSafetyWarningContent({asin:m})];case 10:return(ra=X.sent())&&"false"===ra.querySelector("#"+g.LEGAL_WARNINGS_AAPI_FAIL).value?(Q.delete(y.LEGAL_WARNINGS_SW),ia=L.get(e.SAFETYWARNING).contentElement,ia.style.opacity="0",T.delay(function(){ia.innerHTML=ra.innerHTML;ia.style.opacity="1"},500)):u(b,f,l.LEGAL_WARNINGS_AAPI_FAIL),[3,13];case 11:return[4,h.getCertificationContent({asin:m})];case 12:return(sa=X.sent())&&"false"===sa.querySelector("#"+g.LEGAL_WARNINGS_AAPI_FAIL).value?
(Q.delete(y.LEGAL_WARNINGS_CER),ja=L.get(e.CERTIFICATION).contentElement,ja.style.opacity="0",T.delay(function(){ja.innerHTML=sa.innerHTML;ja.style.opacity="1"},500)):u(b,f,l.LEGAL_WARNINGS_AAPI_FAIL),[3,13];case 13:return[2]}})})}),x.label=6;case 6:return cb(g,k,a,q,b,f),a=!1,[2,[a,c]]}})})},ab=function(a,c){var b,d,f=function(k){switch(k){case e.PSI:case e.MANUFACTURER:case e.RSP:case e.PD:case e.RED:null===(d=L.get(k))||void 0===d?void 0:d.pillElement.addEventListener("click",function(){Ha(k,L);
u(a,c,za.get(k).pillClickMetric)})}};try{for(var h=w.__values(L.keys()),g=h.next();!g.done;g=h.next())f(g.value)}catch(k){var m={error:k}}finally{try{g&&!g.done&&(b=h.return)&&b.call(h)}finally{if(m)throw m.error;}}},bb=function(a,c,b,d,f,h,g){return w.__awaiter(void 0,void 0,void 0,function(){var m,k,q,t,A,r,C,F,G,E,N,x;return w.__generator(this,function(p){switch(p.label){case 0:m=null,p.label=1;case 1:p.trys.push([1,28,29,30]),k=w.__values(L.keys()),q=k.next(),p.label=2;case 2:if(q.done)return[3,
27];t=q.value;A=L.get(t);r=void 0;C=t;switch(C){case e.PSI:return[3,3];case e.MANUFACTURER:return[3,5];case e.RSP:return[3,5];case e.PD:return[3,8];case e.RED:return[3,10];case e.SAFETYWARNING:return[3,12];case e.CERTIFICATION:return[3,14]}return[3,16];case 3:return[4,a.getPsiContent({asin:b})];case 4:return r=p.sent(),[3,16];case 5:return null!==m?[3,7]:[4,a.getRspManufacturerContent({asin:b})];case 6:m=p.sent(),p.label=7;case 7:return r=m,[3,16];case 8:return[4,a.getPdContent({asin:b})];case 9:return r=
p.sent(),[3,16];case 10:return[4,a.getRedContent({asin:b})];case 11:return r=p.sent(),[3,16];case 12:return[4,a.getSafetyWarningContent({asin:b})];case 13:return r=p.sent(),[3,16];case 14:return[4,a.getCertificationContent({asin:b})];case 15:return r=p.sent(),[3,16];case 16:if(!r||!A.contentElement||"false"!==(null===(x=r.querySelector("#"+Wa(c,t)))||void 0===x?void 0:x.value))return[3,25];Q.delete(Ta.get(t));F=t;switch(F){case e.PSI:return[3,17];case e.RSP:return[3,18];case e.MANUFACTURER:return[3,
19];case e.PD:return[3,20];case e.RED:return[3,22];case e.SAFETYWARNING:return[3,22];case e.CERTIFICATION:return[3,22]}return[3,24];case 17:return A.contentElement.innerHTML=r.outerHTML,p=n["default"].cardRoot.querySelector("#"+c.SIDESHEET_PSI_CAROUSEL),Da(p,d,f),[3,24];case 18:p=A;var v=r.querySelector("#"+c.SIDESHEET_RSP_CONTENT);p.contentElement.innerHTML=v.innerHTML;return[3,24];case 19:return p=A,v=r.querySelector("#"+c.SIDESHEET_MANUFACTURER_CONTENT),p.contentElement.innerHTML=v.innerHTML,[3,
24];case 20:return[4,eb(A,r,c,h,g,d,f)];case 21:return p.sent(),[3,24];case 22:return A.contentElement.innerHTML=r.outerHTML,[4,void 0];case 23:return p.sent(),[3,24];case 24:return[3,26];case 25:u(d,f,za.get(t).aapiCallFailMetric),p.label=26;case 26:return q=k.next(),[3,2];case 27:return[3,30];case 28:return G=p.sent(),E={error:G},[3,30];case 29:try{q&&!q.done&&(N=k.return)&&N.call(k)}finally{if(E)throw E.error;}return[7];case 30:return[2]}})})},eb=function(a,c,b,d,f,h,g){return w.__awaiter(void 0,
void 0,void 0,function(){return w.__generator(this,function(m){a.contentElement.innerHTML=c.outerHTML;Ca(Z.Sidesheet,d,b,f,h,g);return[2]})})},$a=function(a,c,b){try{ma([a])}catch(d){throw u(c,b,l.MISSING_CRUCIAL_ELEMENTS_ERROR),Error();}},cb=function(a,c,b,d,f,h){var g,m,k=aa(c);Ia(a);var q,t=null===(q=fa(a).get(k))||void 0===q?void 0:q.headerElement;q=null===t||void 0===t?void 0:t.getAttribute("aria-expanded");t&&"false"===q&&(t.click(),u(f,h,Ua.get(k)));(b||d)&&Ha(c,L,b);c=null===(g=L.get(c))||
void 0===g?void 0:g.pillElement;a=null===(m=fa(a).get(k))||void 0===m?void 0:m.pillContainerElement;c&&a&&V(c,a)()},fb=function(){var a=n["default"].cardRoot.querySelector("#"+D.RED_IS_CHARGER_INCLUDED_INPUT);a&&u(I.DESKTOP,J.ATF,"true"===a.value?l.RED_LOADED_CHARGER_INCLUDED:l.RED_LOADED_NO_CHARGER_INCLUDED)};ta._operationNames=["getRspManufacturerContent","getPsiContent","getPdContent","getRedContent"];ta.card=function(){return w.__awaiter(void 0,void 0,void 0,function(){var a,c,b,d,f,h,g,m,k,q,
t,A,r,C,F,G,E;return w.__generator(this,function(N){switch(N.label){case 0:u(I.DESKTOP,J.ATF,l.CLIENT_LOAD);fb();a=n["default"].cardRoot.querySelector("#"+D.LANDING_ASIN);if(!a||!a.value)return u(I.DESKTOP,J.ATF,l.MISSING_ASIN_ERROR),[2];if(c=n["default"].cardRoot.querySelector("#"+D.DYNAMIC_CERTIFICATIONS_INGRESS_T1))u(I.DESKTOP,J.ATF,l.CERTIFICATION_PICTOGRAM_LOADED),c.addEventListener("click",function(x){return w.__awaiter(void 0,void 0,void 0,function(){return w.__generator(this,function(p){x.preventDefault();
u(I.DESKTOP,J.ATF,l.CERTIFICATION_PICTOGRAM_CLICK);ua["default"].setLocation("https://www.amazon.com/b?node=122527263011&ref=jpmainfo");return[2]})})});if(b=n["default"].cardRoot.querySelector("#"+D.DYNAMIC_CERTIFICATIONS_INGRESS_T2))u(I.DESKTOP,J.ATF,l.CERTIFICATION_INGRESS_LINK_LOADED),b.addEventListener("click",function(x){return w.__awaiter(void 0,void 0,void 0,function(){return w.__generator(this,function(p){x.preventDefault();u(I.DESKTOP,J.ATF,l.CERTIFICATION_INGRESS_LINK_CLICK);ua["default"].setLocation("https://www.amazon.com/b?node=122527263011&ref=jpmainfo");
return[2]})})});return[4,new Promise(function(x,p){Ja(["@p/buffet-sidesheet"],function(v){x(Oa(v))},p)})];case 1:d=N.sent().default;Sa();f=Pa["default"].setup(["getCertificationContent","getRspManufacturerContent","getPsiContent","getPdContent","getRedContent"]);d.initializeBuffetSidesheet(D.SIDESHEET,D.CLOSE_BUTTON,D.DARKENED_BACKGROUND,!0);h=!0;g=!1;k=function(x){return function(p){return w.__awaiter(void 0,void 0,void 0,function(){var v;return w.__generator(this,function(K){switch(K.label){case 0:return p.preventDefault(),
d.showBuffetSidesheet(D.SIDESHEET,D.CLOSE_BUTTON,D.DARKENED_BACKGROUND,!0),u(I.DESKTOP,J.ATF,l.SIDESHEET_OPENED),u(I.DESKTOP,J.ATF,l.INGRESS_LINK_CLICK),[4,db(h,g,I.DESKTOP,!1,J.ATF,f,D,a.value,x,!0,d)];case 1:v=w.__read.apply(void 0,[K.sent(),2]);h=v[0];if(g=v[1])u(I.DESKTOP,J.ATF,l.SIDESHEET_CONTENT_LOADED),m=Date.now();return[2]}})})}};if(q=n["default"].cardRoot.querySelector("#"+D.RED_SIDESHEET_INGRESS))A=(t=n["default"].cardRoot.querySelector("#"+D.RED_IS_CHARGER_INCLUDED_INPUT))&&t.value,q.addEventListener("click",
function(x){return w.__awaiter(void 0,void 0,void 0,function(){var p;return w.__generator(this,function(v){switch(v.label){case 0:return p="true"===A?l.RED_ICON_CLICK_CHARGER_INCLUDED:l.RED_ICON_CLICK_NO_CHARGER_INCLUDED,u(I.DESKTOP,J.ATF,p),[4,k(e.RED)(x)];case 1:return v.sent(),[2]}})})});r=function(){d.closeBuffetSidesheet(D.SIDESHEET,D.CLOSE_BUTTON,D.DARKENED_BACKGROUND,!0);Ia(D);u(I.DESKTOP,J.ATF,l.SIDESHEET_CLOSED);g&&u(I.DESKTOP,J.ATF,l.SIDESHEET_DWELL_TIME,Date.now()-m)};if(C=n["default"].cardRoot.querySelector("#"+
D.SIDESHEET)){F=n["default"].cardRoot.querySelector("#"+D.DARKENED_BACKGROUND);G=n["default"].cardRoot.querySelector("#"+D.CLOSE_BUTTON);E=[F,G];try{ma(E)}catch(x){return u(I.DESKTOP,J.ATF,l.MISSING_CRUCIAL_ELEMENTS_ERROR),[2]}G.addEventListener("click",function(){r()});F.addEventListener("click",function(){r()})}return[2]}})})}});
