Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
klarna-payments-for-woocommerce
/
Blocks
/
Payment
/
build
:
klarna-payments-block.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
(()=>{"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})})();