(()=>{"use strict";const e=window.React,t=window.wp.plugins,o=window.wc.blocksCheckout,n=({extensions:e,cart:t})=>{const o=t.shippingRates?.[0]?.shipping_rates?.find((e=>e.selected&&"vp_pont"===e.method_id)),n=!!e?.["vp-woo-pont-picker"]?.selected_pont?.id&&e["vp-woo-pont-picker"].selected_pont,c=document.querySelector(".wc-block-components-totals-shipping"),p=document.querySelector(".wc-block-components-totals-shipping .wc-block-components-totals-item__description");return c&&(c.dataset.VpShippingMethod=o?"vp_pont":"",c.dataset.VpSelectedPoint=n?n.id:""),p&&(p.innerHTML=o&&n?`<i class="vp-woo-pont-provider-icon-${n.provider}"></i>${n.name}`:""),null};(0,t.registerPlugin)("vp-woo-pont-cart-slot-fill",{render:()=>(0,e.createElement)(o.ExperimentalOrderMeta,null,(0,e.createElement)(n,null)),scope:"woocommerce-checkout"})})();