File "admin.min.js.map"

Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/swedbank-pay-checkout/assets/js/admin.min.js.map
File size: 5.01 KB
MIME-type: application/json
Charset: utf-8

{"version":3,"file":"admin.min.js","names":["jQuery","document","ready","$","on","e","preventDefault","nonce","this","data","order_id","self","ajax","url","SwedbankPay_Admin","ajax_url","type","action","beforeSend","html","text_wait","prop","success","response","alert","window","location","href"],"sources":["admin.js"],"sourcesContent":["jQuery(document).ready(function ($) {\n    $( document ).on( 'click', '#swedbank_pay_capture', function (e) {\n        e.preventDefault();\n\n        var nonce = $( this ).data( 'nonce' );\n        var order_id = $( this ).data( 'order-id' );\n        var self = $( this );\n        $.ajax( {\n            url: SwedbankPay_Admin.ajax_url,\n            type: 'POST',\n            data: {\n                action: 'swedbank_pay_capture',\n                nonce: nonce,\n                order_id: order_id\n            },\n            beforeSend: function () {\n                self.data( 'text', self.html() );\n                self.html( SwedbankPay_Admin.text_wait );\n                self.prop( 'disabled', true );\n            },\n            success: function ( response ) {\n                self.html( self.data('text') );\n                self.prop( 'disabled', false );\n                if ( !response.success ) {\n                    alert( response.data );\n                    return false;\n                }\n\n                window.location.href = location.href;\n            }\n        } );\n    } );\n\n    $( document ).on( 'click', '#swedbank_pay_cancel', function (e) {\n        e.preventDefault();\n\n        var nonce = $( this ).data( 'nonce' );\n        var order_id = $( this ).data( 'order-id' );\n        var self = $( this );\n        $.ajax( {\n            url: SwedbankPay_Admin.ajax_url,\n            type: 'POST',\n            data: {\n                action: 'swedbank_pay_cancel',\n                nonce: nonce,\n                order_id: order_id\n            },\n            beforeSend: function () {\n                self.data( 'text', self.html() );\n                self.html( SwedbankPay_Admin.text_wait );\n                self.prop( 'disabled', true );\n            },\n            success: function ( response ) {\n                self.html( self.data('text') );\n                self.prop( 'disabled', false );\n                if ( ! response.success ) {\n                    alert( response.data );\n                    return false;\n                }\n\n                window.location.href = location.href;\n            }\n        } );\n    } );\n\n    $( document ).on( 'click', '#swedbank_pay_refund', function (e) {\n        e.preventDefault();\n\n        var nonce = $( this ).data( 'nonce' );\n        var order_id = $( this ).data( 'order-id' );\n        var self = $( this );\n        $.ajax( {\n            url: SwedbankPay_Admin.ajax_url,\n            type: 'POST',\n            data: {\n                action: 'swedbank_pay_refund',\n                nonce: nonce,\n                order_id: order_id\n            },\n            beforeSend: function () {\n                self.data( 'text', self.html() );\n                self.html( SwedbankPay_Admin.text_wait );\n                self.prop( 'disabled', true );\n            },\n            success: function ( response ) {\n                self.html( self.data('text') );\n                self.prop( 'disabled', false );\n                if ( ! response.success ) {\n                    alert( response.data );\n                    return false;\n                }\n\n                window.location.href = location.href;\n            }\n        } );\n    } );\n});\n"],"mappings":"AAAAA,OAAOC,UAAUC,OAAM,SAAUC,GAC7BA,EAAGF,UAAWG,GAAI,QAAS,yBAAyB,SAAUC,GAC1DA,EAAEC,iBAEF,IAAIC,EAAQJ,EAAGK,MAAOC,KAAM,SACxBC,EAAWP,EAAGK,MAAOC,KAAM,YAC3BE,EAAOR,EAAGK,MACdL,EAAES,KAAM,CACJC,IAAKC,kBAAkBC,SACvBC,KAAM,OACNP,KAAM,CACFQ,OAAQ,uBACRV,MAAOA,EACPG,SAAUA,GAEdQ,WAAY,WACRP,EAAKF,KAAM,OAAQE,EAAKQ,QACxBR,EAAKQ,KAAML,kBAAkBM,WAC7BT,EAAKU,KAAM,YAAY,EAC3B,EACAC,QAAS,SAAWC,GAGhB,GAFAZ,EAAKQ,KAAMR,EAAKF,KAAK,SACrBE,EAAKU,KAAM,YAAY,IACjBE,EAASD,QAEX,OADAE,MAAOD,EAASd,OACT,EAGXgB,OAAOC,SAASC,KAAOD,SAASC,IACpC,GAER,IAEAxB,EAAGF,UAAWG,GAAI,QAAS,wBAAwB,SAAUC,GACzDA,EAAEC,iBAEF,IAAIC,EAAQJ,EAAGK,MAAOC,KAAM,SACxBC,EAAWP,EAAGK,MAAOC,KAAM,YAC3BE,EAAOR,EAAGK,MACdL,EAAES,KAAM,CACJC,IAAKC,kBAAk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