(self.webpackChunkui=self.webpackChunkui||[]).push([[79],{272:(e,n,t)=>{"use strict";var a=t(0);var i=t(157);function r({message:e,apps:{product:n}}){return(0,i.a)(n)?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)("div",{class:"CaS5BeTZ",children:(0,a.jsx)("span",{class:"ZZ7mUH0x",children:e})})}var l=t(1),o=t(13),s=t(20);const u=[o.a];l.BentoUI.feature({featureId:"pdp_free_shipping_message",variations:[l.BentoUI.variation({component:r,variationId:"default",hydrate:!0,apps:u,render(e){return n=this,t=arguments,i=function*({globalState:e}){var n,t;const{initializationData:{shippingConfig:a},props:i}=yield e,r=yield(0,s.a)(i.byteState),l=null==r?void 0:r.product;if(!(null==l?void 0:l.id))return{html:""};const o=null!==(n=null==a?void 0:a.threshold)&&void 0!==n?n:50;return{props:{message:"Items"===(null!==(t=null==a?void 0:a.threshold_type)&&void 0!==t?t:"Revenue")?`Free Shipping at ${o}+ items`:`Free Shipping at $${o}+`}}},new((a=void 0)||(a=Promise))((function(e,r){function l(e){try{s(i.next(e))}catch(e){r(e)}}function o(e){try{s(i.throw(e))}catch(e){r(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(l,o)}s((i=i.apply(n,t||[])).next())}));var n,t,a,i}})]}),(0,l.createEntrypoint)("pdp_free_shipping_message",r,u)},157:(e,n,t)=>{"use strict";function a(e){const n=e.product.value,t=e.selectedVariant.value,a=null==n?void 0:n.finalSaleTag,i=null==t?void 0:t.finalSaleTag,r=null==t?void 0:t.isFinalSale;return Boolean(a||r||i)}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,22],(()=>e(e.s=272))),e.O()}]);