File "klarna-payments-block.js"

Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/klarna-payments-for-woocommerce/Blocks/Payment/build/klarna-payments-block.js
File size: 802 bytes
MIME-type: text/plain
Charset: utf-8

(()=>{"use strict";var e=wp.htmlEntities.decodeEntities,t=wc.wcSettings.getSetting,a=wc.wcBlocksRegistry.registerPaymentMethod,n=wp.hooks.applyFilters,l=t("klarna_payments_data",{}),c=n("kp_blocks_title",e(l.title||"Klarna"),l),r=n("kp_blocks_description",e(l.description||""),l),i=l.iconurl,o=function(e){return React.createElement("div",null,r)},s=function(e){var t=e.components.PaymentMethodLabel,a=React.createElement("img",{src:i,alt:c,name:c});return React.createElement(t,{className:"kp-block-label",text:c,icon:a})};a({name:"klarna_payments",label:React.createElement(s,null),content:React.createElement(o,null),edit:React.createElement(o,null),placeOrderButtonLabel:klarna_payments_params.i18n.order_button_label,canMakePayment:function(){return n("kp_blocks_enabled",!0,l)},ariaLabel:c})})();