"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[121],{14:(e,n,t)=>{t.d(n,{a:()=>o});const o={modalOverlay:"pKklj6A7",modalOverlayHidden:"FbGOep4Z",modalBackground:"srpRGD58",modal:"L76vEo7G",fitContent:"dC1D3FxI",closeBtn:"E2U6v0rP",closeIconSVG:"SMOJf3ND",modalImage:"v3EoYlrW",sizeGuidePage:"tZxZJ5xu",modalOverlayBottomSheet:"aTeBB3HC",modalBottomSheet:"rRLnrN0A __bite_extend __bite_theme_modalBottomSheet",slideUp:"woWeB2Ks",fadeIn:"rXVUk9Yk",large:"shRTi3NB",closing:"oitbq3f8",slideDown:"GC4NNj4H",fadeOut:"jtefEfQd",bottomSheetHeader:"pfc5sVVL",bottomSheetTitle:"WYgR_YWU",bottomSheetCloseBtn:"Ti_CbCl8",bottomSheetCloseBtnFloating:"PDrsEZxz",bottomSheetContent:"VI6yo2BU"}},326:(e,n,t)=>{var o=t(0),r=t(4);const i="uRDviH2Z";var c=t(1),a=t(44),l=t(2);(0,l.createEntrypoint)("product_promo_badge",(function({promoInfo:{promoMessagingOne:e,firstPromoId:n,promoMessagingTwo:t,secondPromoId:s}}){const[u,d]=(0,c.useState)(""),[f,m]=(0,c.useState)(!1),[p,b]=(0,c.useState)(""),v=(e,n)=>{return t=this,o=void 0,i=function*(){if(b(n),d(""),e){const n=yield(0,l.getLazyState)("pageBody",{pageId:e});d(n||"")}m(!0)},new((r=void 0)||(r=Promise))((function(e,n){function c(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(n){var t;n.done?e(n.value):(t=n.value,t instanceof r?t:new r((function(e){e(t)}))).then(c,a)}l((i=i.apply(t,o||[])).next())}));var t,o,r,i},h=()=>{m(!1),d(""),b("")};return e||t?(0,o.jsxs)(r.Fragment,{children:[(0,o.jsxs)("div",{class:"ul9a_w3W",children:[e&&(0,o.jsx)("button",{class:i,onClick:()=>v(n,e),children:e}),t&&(0,o.jsx)("button",{class:i,onClick:()=>v(s,t),children:t})]}),(0,o.jsx)(a.a,{isOpen:f,onClose:h,title:p||"Promotion details",children:(0,o.jsxs)("div",{class:"dYFW9HIF",children:[u?(0,o.jsx)("div",{dangerouslySetInnerHTML:{__html:u}}):(0,o.jsxs)("div",{children:[(0,o.jsx)("h3",{children:p}),(0,o.jsx)("p",{children:"No additional details available."})]}),(0,o.jsx)("button",{class:"_CoJyT3N",onClick:h,children:"OK"})]})})]}):(0,o.jsx)(r.Fragment,{})}))},29:(e,n,t)=>{t.d(n,{a:()=>r});var o=t(0);function r({size:e,iconClass:n}){return(0,o.jsx)("div",{"aria-hidden":"true",role:"presentation",class:n,style:{width:e||"",height:e||"",backgroundImage:"var(--icon-close)",backgroundSize:"contain",cursor:"pointer",backgroundRepeat:"no-repeat",backgroundOrigin:"content-box"}})}},38:(e,n,t)=>{t.d(n,{a:()=>a});var o=t(0),r=t(11),i=t(1);const c='\n a[href],\n area[href],\n input:not([type="hidden"]):not([disabled]):not([tabindex="-1"]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]):not([tabindex="-1"]),\n iframe,\n object,\n embed,\n [tabindex]:not([tabindex="-1"]),\n [contenteditable]:not([contenteditable="false"]),\n audio[controls],\n video[controls],\n summary',a=(0,r.forwardRef)((({children:e,disabled:n=!1,isActive:t,autoFocus:r=!0,restoreFocus:a=!0,as:l="div",className:s,style:u,"aria-label":d,"aria-labelledby":f,"aria-modal":m,role:p,id:b,"data-testid":v,onTransitionEnd:h,onAnimationEnd:y},g)=>{const x=(0,i.useRef)(null),E=(0,i.useRef)(null),k=(0,i.useRef)(null),C=(0,i.useRef)(null),j=(0,i.useRef)(null),w=(0,i.useRef)(!n);(0,i.useLayoutEffect)((()=>{w.current=!n}),[n]);const S=(0,i.useCallback)((()=>void 0!==t?t():w.current),[t]),R=(0,i.useCallback)((e=>{x.current=e,"function"==typeof g?g(e):g&&(g.current=e)}),[g]),O=(0,i.useCallback)((()=>{const e=x.current;if(!e)return null;const n=Array.from(e.querySelectorAll(c));for(const e of n)if(e!==E.current&&e!==k.current)return e;return null}),[]),F=(0,i.useCallback)((()=>{const e=x.current;if(!e)return null;const n=Array.from(e.querySelectorAll(c));for(let e=n.length-1;e>=0;e--){const t=n[e];if(t!==E.current&&t!==k.current)return t}return null}),[]),I=(0,i.useCallback)((()=>{var e;if(!S())return;const n=F();n?n.focus():null===(e=x.current)||void 0===e||e.focus()}),[S,F]),L=(0,i.useCallback)((()=>{var e;if(!S())return;const n=O();n?n.focus():null===(e=x.current)||void 0===e||e.focus()}),[S,O]);(0,i.useEffect)((()=>{if("undefined"==typeof document)return;const e=e=>{const n=e.target;if(!n||n===document.body)return;const t=x.current;t&&t.contains(n)||(j.current=n)};return document.addEventListener("focusin",e,!0),()=>{document.removeEventListener("focusin",e,!0)}}),[]),(0,i.useEffect)((()=>{var e;if("undefined"!=typeof document&&!n){if(a){j.current&&!document.body.contains(j.current)&&(j.current=null);let e=document.activeElement;e&&e!==document.body||(e=j.current),e&&e!==document.body&&document.body.contains(e)?C.current=e:C.current=null}return r&&(null===(e=x.current)||void 0===e||e.focus({preventScroll:!0})),()=>{a&&C.current instanceof HTMLElement&&C.current!==document.body&&document.body.contains(C.current)&&C.current.focus({preventScroll:!0}),C.current=null}}}),[n,r,a]),(0,i.useEffect)((()=>{if("undefined"==typeof document)return;const e=x.current,n=n=>{if(S()&&"Tab"===n.key&&e&&document.activeElement===e)if(n.preventDefault(),n.shiftKey){const e=F();null==e||e.focus()}else{const e=O();null==e||e.focus()}},t=n=>{if(!S()||!e)return;const t=n.target;if(t!==E.current&&t!==k.current&&!e.contains(t)){n.stopPropagation();const t=O();t?t.focus():e.focus()}};return document.addEventListener("keydown",n,!0),document.addEventListener("focusin",t,!0),()=>{document.removeEventListener("keydown",n,!0),document.removeEventListener("focusin",t,!0)}}),[S,O,F]);const B={position:"fixed",top:0,left:0,width:"1px",height:"1px",margin:"-1px",padding:"0",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"},_=void 0!==t?0:n?-1:0;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{ref:E,style:B,tabIndex:_,onFocus:I,"aria-hidden":"true"}),(0,o.jsx)(l,{ref:R,id:b,tabIndex:-1,className:s,style:u,role:p,"aria-label":d,"aria-labelledby":f,"aria-modal":m,"data-testid":v,onTransitionEnd:h,onAnimationEnd:y,children:e}),(0,o.jsx)("div",{ref:k,style:B,tabIndex:_,onFocus:L,"aria-hidden":"true"})]})}));a.displayName="FocusLock"},43:(e,n,t)=>{t.d(n,{a:()=>l});var o=t(0),r=t(1),i=t(11),c=t(38);let a=[];function l({isOpen:e,children:n,keepMounted:t=!1,onEscape:l}){const[s,u]=(0,r.useState)(!1),d=(0,r.useRef)(Symbol("focus-portal")),f=(0,r.useRef)(null);!function(e){const n=(0,r.useRef)(null);(0,r.useEffect)((()=>{if("undefined"!=typeof document&&e)return n.current=document.activeElement,()=>{n.current instanceof HTMLElement&&(n.current.focus(),n.current=null)}}),[e])}(e);const m=function(e,n){const[t,o]=(0,r.useState)("inactive"),i=(0,r.useRef)(e);return i.current=e,(0,r.useEffect)((()=>{if(!e)return void o("inactive");o("waiting");let t=!1;const r=requestAnimationFrame((()=>{if(t||!i.current)return;const e=n.current;if(!e)return void o("complete");const r=e.querySelector("[data-animate]")||e.firstElementChild;if(!r)return void o("complete");const c=r.getAnimations({subtree:!1});0!==c.length?Promise.all(c.map((e=>e.finished))).then((()=>{!t&&i.current&&o("complete")})).catch((()=>{!t&&i.current&&o("complete")})):o("complete")}));return()=>{t=!0,cancelAnimationFrame(r)}}),[e,n]),t}(e,f);(0,r.useEffect)((()=>{if(!e)return void u(!1);const n=d.current;return a.push(n),u(!0),()=>{a=a.filter((e=>e!==n))}}),[e]),(0,r.useEffect)((()=>{if("undefined"==typeof document||!e||!l)return;const n=e=>{"Escape"===e.key&&a[a.length-1]===d.current&&(e.stopPropagation(),e.preventDefault(),l())};return document.addEventListener("keydown",n,!0),()=>document.removeEventListener("keydown",n,!0)}),[e,l]);const p=(0,r.useCallback)((()=>!!e&&a[a.length-1]===d.current),[e]);if("undefined"==typeof document)return null;if(!e&&!t)return null;const b="complete"!==m||!s;return(0,i.createPortal)((0,o.jsx)(c.a,{ref:f,disabled:b,isActive:p,autoFocus:e&&s,restoreFocus:!1,children:n}),document.body)}},44:(e,n,t)=>{t.d(n,{a:()=>l});var o=t(0),r=t(14),i=t(29),c=t(43),a=t(50);function l({isOpen:e,onClose:n,children:t,title:l,fitContent:s=!1,keepMounted:u=!1}){const{dialogProps:d}=(0,a.a)({isOpen:e,label:l}),f=e?r.a.modalOverlay:r.a.modalOverlayHidden;return(0,o.jsx)(c.a,{isOpen:e,keepMounted:u,onEscape:n,children:(0,o.jsxs)("div",{className:f,"aria-hidden":!e,children:[(0,o.jsx)("div",{className:r.a.modalBackground,onClick:n,role:"presentation"}),(0,o.jsxs)("div",Object.assign({},d,{className:[r.a.modal,s?r.a.fitContent:""].join(" "),children:[(0,o.jsx)("button",{className:r.a.closeBtn,onClick:n,"aria-label":"Close dialog",children:(0,o.jsx)(i.a,{size:"14px",iconClass:r.a.closeIconSVG})}),t]}))]})})}},50:(e,n,t)=>{t.d(n,{a:()=>i});var o=t(1),r=t(51);function i({isOpen:e,label:n,labelledBy:t}){return(0,r.a)(e),{dialogProps:(0,o.useMemo)((()=>({role:"dialog","aria-modal":!0,"aria-label":t?void 0:n,"aria-labelledby":t,tabIndex:-1})),[n,t])}}},51:(e,n,t)=>{t.d(n,{a:()=>c});var o=t(1);let r=0,i=null;function c(e){(0,o.useEffect)((()=>{if("undefined"!=typeof document&&e){if(0===r){i={overflow:document.body.style.overflow,paddingRight:document.body.style.paddingRight};const e=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",document.body.style.paddingRight=`${e}px`}return r++,()=>{r--,r<0&&(r=0),0===r&&i&&(document.body.style.overflow=i.overflow,document.body.style.paddingRight=i.paddingRight,i=null)}}}),[e])}}},e=>{e.O(0,[1,3],(()=>e(e.s=326))),e.O()}]);