"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[82],{368:(e,t,n)=>{n.r(t),n.d(t,{default:()=>o});const o={container:"ul9a_w3W",badge:"uRDviH2Z",modalContent:"dYFW9HIF",okBtn:"_CoJyT3N"}},18:(e,t,n)=>{n.r(t),n.d(t,{default:()=>o});const o={modalOverlay:"pKklj6A7",modalBackground:"srpRGD58",modal:"L76vEo7G",closeBtn:"E2U6v0rP",closeIconSVG:"SMOJf3ND",modalImage:"v3EoYlrW",sizeGuidePage:"tZxZJ5xu"}},367:(e,t,n)=>{const o=n(95);(0,n(1).createEntrypoint)("product_promo_badge",o.ProductPromoBadge)},95:function(e,t,n){var o=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(a,s){function d(e){try{l(o.next(e))}catch(e){s(e)}}function i(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(d,i)}l((o=o.apply(e,t||[])).next())}))},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProductPromoBadge=function({promoInfo:{promoMessagingOne:e,firstPromoId:t,promoMessagingTwo:n,secondPromoId:a}}){const[u,f]=(0,l.useState)(""),[h,m]=(0,l.useState)(!1),[g,p]=(0,l.useState)(""),v=(e,t)=>o(this,void 0,void 0,(function*(){if(p(t),f(""),e){const t=yield(0,c.getLazyState)("pageBody",{pageId:e});f(t||"")}m(!0)})),x=()=>{m(!1),f(""),p("")};return e||n?(0,s.jsxs)(d.Fragment,{children:[(0,s.jsxs)("div",{class:i.default.container,children:[e&&(0,s.jsx)("button",{class:i.default.badge,onClick:()=>v(t,e),children:e}),n&&(0,s.jsx)("button",{class:i.default.badge,onClick:()=>v(a,n),children:n})]}),(0,s.jsx)(r.PortalModal,{isOpen:h,onClose:x,children:(0,s.jsxs)("div",{class:i.default.modalContent,children:[u?(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:u}}):(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{children:g}),(0,s.jsx)("p",{children:"No additional details available."})]}),(0,s.jsx)("button",{class:i.default.okBtn,onClick:x,children:"OK"})]})})]}):(0,s.jsx)(d.Fragment,{})};const s=n(0),d=n(3),i=a(n(368)),l=n(2),r=n(62),c=n(1)}},e=>{e.O(0,[1,3,13],(()=>e(e.s=367))),e.O()}]);