(()=>{"use strict";const e=window.React,o=window.wp.i18n,t=window.wc.wcSettings,{registerPlugin:c}=wp.plugins,{ExperimentalOrderMeta:a}=wc.blocksCheckout,l=(0,t.getSetting)("mycredwoo_data",{}),r=({extensions:t})=>{const{mycredwoo:c}=t,a=""!=c.mycred_woo_balance_label,r="checkout"!==l.show_total&&""!==l.show_total;var n="no"===c.payment_gateway?"low-balance":"",d=""==c?"wrapper-disabled":"";return(0,e.createElement)("div",{class:`mycred-woo-fields-wrapper ${d}`},r&&(0,e.createElement)("div",{class:"mycred-woo-order-total"},(0,e.createElement)("span",{class:"mycred-woo-order-total-label"},(0,o.__)(c.mycred_woo_total_label,"mycred-woocommerce")),(0,e.createElement)("span",{class:`mycred-woo-order-total-value ${n}`},c.mycred_woo_total)),a&&(0,e.createElement)("div",{class:"mycred-woo-total-credit"},(0,e.createElement)("span",{class:"mycred-woo-total-credit-label"},(0,o.__)(c.mycred_woo_balance_label,"mycred-woocommerce")),(0,e.createElement)("span",{class:"mycred-woo-total-credit-value"},c.mycred_woo_balance)))};c("mycredwoo",{render:()=>(0,e.createElement)(a,null,(0,e.createElement)(r,null)),scope:"woocommerce-checkout"})})();