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