(()=>{"use strict";const e=window.React,{registerPlugin:t}=wp.plugins,{ExperimentalOrderMeta:l,ExperimentalOrderShippingPackages:c,ExperimentalDiscountsMeta:n}=wc.blocksCheckout,{__}=wp.i18n,{useState:r,useCallback:o}=wp.element,s=({cart:t,extensions:l,context:c,location:n})=>{let r="";return"woocommerce/cart"===c&&l?.cuw_upsell_offers?.cart_upsells?r=l.cuw_upsell_offers.cart_upsells[n]||"":"woocommerce/checkout"===c&&l?.cuw_upsell_offers?.checkout_upsells&&(r=l.cuw_upsell_offers.checkout_upsells[n]||""),r?(0,e.createElement)("div",{dangerouslySetInnerHTML:{__html:r}}):""};t("cuw-upsell-offers",{render:()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(e.Fragment,null,(0,e.createElement)(l,null,(0,e.createElement)(s,{location:"order_meta"})),(0,e.createElement)(n,null,(0,e.createElement)(s,{location:"coupon"})),(0,e.createElement)(c,null,(0,e.createElement)(s,{location:"shipping"})))),scope:"woocommerce-checkout"})})();