(()=>{"use strict";const e=window.React,o=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"mycred-woocommerce/mycred-woo-checkout-block","version":"1.0.0","title":"myCred WooCommerce","category":"woocommerce","parent":["woocommerce/checkout-totals-block"],"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"textdomain":"mycred-woocommerce","editorScript":"file:./build/index.js"}'),t=window.wp.i18n,c=window.wc.wcSettings,{registerCheckoutBlock:a}=wc.blocksCheckout,r=(0,c.getSetting)("mycredwoo_data",{});a({metadata:o,component:({extensions:o})=>{const{mycredwoo:c}=o,a=""!=c.mycred_woo_balance_label,l="cart"!==r.show_total&&""!==r.show_total;var m="no"===c.payment_gateway?"low-balance":"",d=""==c?"wrapper-disabled":"";return(0,e.createElement)("div",{class:`mycred-woo-fields-wrapper ${d}`},l&&(0,e.createElement)("div",{class:"mycred-woo-order-total"},(0,e.createElement)("span",{class:"mycred-woo-order-total-label"},(0,t.__)(c.mycred_woo_total_label,"mycred-woocommerce")),(0,e.createElement)("span",{class:`mycred-woo-order-total-value ${m}`},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,t.__)(c.mycred_woo_balance_label,"mycred-woocommerce")),(0,e.createElement)("span",{class:"mycred-woo-total-credit-value"},c.mycred_woo_balance)))}})})();