(self.webpackChunkui=self.webpackChunkui||[]).push([[107],{300:(e,n,t)=>{"use strict";var a=t(0),l=t(3);const i="wSN4uqtL __bite_extend __bite_theme_finalSaleContainer",o="eVPvJXO3 __bite_extend __bite_theme_finalSale";var r=t(161);function s({productFinalSale:e,apps:{product:n}}){return(0,r.a)(n)?(null==e?void 0:e.message)?(0,a.jsx)("div",{class:i,children:(0,a.jsx)("span",{class:o,dangerouslySetInnerHTML:{__html:e.message}})}):(0,a.jsx)("div",{class:i,children:(0,a.jsx)("span",{class:o,children:"FINAL SALE"})}):(0,a.jsx)(l.Fragment,{})}var c=t(2),u=t(13),d=t(24);const p=[u.a];c.BentoUI.feature({featureId:"product_final_sale",variations:[c.BentoUI.variation({component:s,hydrate:!0,variationId:"default",apps:p,render(e){return n=this,t=arguments,l=function*({globalState:e,context:n}){var t,a;const{props:l}=yield e,i=yield(0,d.a)(l.byteState),o=null==i?void 0:i.product;if(!o||(null==o?void 0:o.packCollections)||o.isPack)return{html:""};const r="desktop"===n.device?null===(t=l.desktopHeroBlocks.right_column)||void 0===t?void 0:t.find((e=>"product_final_sale"===e.type)):null===(a=l.heroBlocks)||void 0===a?void 0:a.find((e=>"product_final_sale"===e.type));return r?{props:{productFinalSale:r}}:{html:""}},new((a=void 0)||(a=Promise))((function(e,i){function o(e){try{s(l.next(e))}catch(e){i(e)}}function r(e){try{s(l.throw(e))}catch(e){i(e)}}function s(n){var t;n.done?e(n.value):(t=n.value,t instanceof a?t:new a((function(e){e(t)}))).then(o,r)}s((l=l.apply(n,t||[])).next())}));var n,t,a,l}})]}),(0,c.createEntrypoint)("product_final_sale",s,p)},161:(e,n,t)=>{"use strict";function a(e){const n=e.product.value,t=e.selectedVariant.value,a=null==n?void 0:n.finalSaleTag,l=null==t?void 0:t.finalSaleTag,i=null==t?void 0:t.isFinalSale;return Boolean(a||i||l)}t.d(n,{a:()=>a})},12:()=>{}},e=>{e.O(0,[1,2,3,4,5,6,7,8,9,10,11,12,14,13,17,16,15,18,19,20,21,24,23],(()=>e(e.s=300))),e.O()}]);