File "admin.min.js.map"
Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/swedbank-pay-payments/assets/js/admin.min.js.map
File size: 4.96 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(\n\tfunction ($) {\n\t\t$( document ).on(\n\t\t\t'click',\n\t\t\t'#swedbank_pay_capture',\n\t\t\tfunction (e) {\n\t\t\t\te.preventDefault();\n\n\t\t\t\tvar nonce = $( this ).data( 'nonce' );\n\t\t\t\tvar order_id = $( this ).data( 'order-id' );\n\t\t\t\tvar self = $( this );\n\t\t\t\t$.ajax(\n\t\t\t\t\t{\n\t\t\t\t\t\turl: SwedbankPay_Admin.ajax_url,\n\t\t\t\t\t\ttype: 'POST',\n\t\t\t\t\t\tdata: {\n\t\t\t\t\t\t\taction: 'swedbank_pay_capture',\n\t\t\t\t\t\t\tnonce: nonce,\n\t\t\t\t\t\t\torder_id: order_id\n\t\t\t\t\t\t},\n\t\t\t\t\t\tbeforeSend: function () {\n\t\t\t\t\t\t\tself.data( 'text', self.html() );\n\t\t\t\t\t\t\tself.html( SwedbankPay_Admin.text_wait );\n\t\t\t\t\t\t\tself.prop( 'disabled', true );\n\t\t\t\t\t\t},\n\t\t\t\t\t\tsuccess: function ( response ) {\n\t\t\t\t\t\t\tself.html( self.data( 'text' ) );\n\t\t\t\t\t\t\tself.prop( 'disabled', false );\n\t\t\t\t\t\t\tif ( ! response.success ) {\n\t\t\t\t\t\t\t\talert( response.data );\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\twindow.location.href = location.href;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t}\n\t\t);\n\n\t\t$( document ).on(\n\t\t\t'click',\n\t\t\t'#swedbank_pay_cancel',\n\t\t\tfunction (e) {\n\t\t\t\te.preventDefault();\n\n\t\t\t\tvar nonce = $( this ).data( 'nonce' );\n\t\t\t\tvar order_id = $( this ).data( 'order-id' );\n\t\t\t\tvar self = $( this );\n\t\t\t\t$.ajax(\n\t\t\t\t\t{\n\t\t\t\t\t\turl: SwedbankPay_Admin.ajax_url,\n\t\t\t\t\t\ttype: 'POST',\n\t\t\t\t\t\tdata: {\n\t\t\t\t\t\t\taction: 'swedbank_pay_cancel',\n\t\t\t\t\t\t\tnonce: nonce,\n\t\t\t\t\t\t\torder_id: order_id\n\t\t\t\t\t\t},\n\t\t\t\t\t\tbeforeSend: function () {\n\t\t\t\t\t\t\tself.data( 'text', self.html() );\n\t\t\t\t\t\t\tself.html( SwedbankPay_Admin.text_wait );\n\t\t\t\t\t\t\tself.prop( 'disabled', true );\n\t\t\t\t\t\t},\n\t\t\t\t\t\tsuccess: function ( response ) {\n\t\t\t\t\t\t\tself.html( self.data( 'text' ) );\n\t\t\t\t\t\t\tself.prop( 'disabled', false );\n\t\t\t\t\t\t\tif ( ! response.success ) {\n\t\t\t\t\t\t\t\talert( response.data );\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\twindow.location.href = location.href;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t}\n\t\t);\n\n\t\t$( document ).on( 'click', '#swedbank_pay_refund', function (e) {\n\t\t\te.preventDefault();\n\n\t\t\tvar nonce = $( this ).data( 'nonce' );\n\t\t\tvar order_id = $( this ).data( 'order-id' );\n\t\t\tvar self = $( this );\n\t\t\t$.ajax( {\n\t\t\t\turl: SwedbankPay_Admin.ajax_url,\n\t\t\t\ttype: 'POST',\n\t\t\t\tdata: {\n\t\t\t\t\taction: 'swedbank_pay_refund',\n\t\t\t\t\tnonce: nonce,\n\t\t\t\t\torder_id: order_id\n\t\t\t\t},\n\t\t\t\tbeforeSend: function () {\n\t\t\t\t\tself.data( 'text', self.html() );\n\t\t\t\t\tself.html( SwedbankPay_Admin.text_wait );\n\t\t\t\t\tself.prop( 'disabled', true );\n\t\t\t\t},\n\t\t\t\tsuccess: function ( response ) {\n\t\t\t\t\tself.html( self.data('text') );\n\t\t\t\t\tself.prop( 'disabled', false );\n\t\t\t\t\tif ( ! response.success ) {\n\t\t\t\t\t\talert( response.data );\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\n\t\t\t\t\twindow.location.href = location.href;\n\t\t\t\t}\n\t\t\t} );\n\t\t} );\n\n\t}\n);\n"],"mappings":"AAAAA,OAAQC,UAAWC,OAClB,SAAUC,GACTA,EAAGF,UAAWG,GACb,QACA,yBACA,SAAUC,GACTA,EAAEC,iBAEF,IAAIC,EAAWJ,EAAGK,MAAOC,KAAM,SAC3BC,EAAWP,EAAGK,MAAOC,KAAM,YAC3BE,EAAWR,EAAGK,MAClBL,EAAES,KACD,CACCC,IAAKC,kBAAkBC,SACvBC,KAAM,OACNP,KAAM,CACLQ,OAAQ,uBACRV,MAAOA,EACPG,SAAUA,GAEXQ,WAAY,WACXP,EAAKF,KAAM,OAAQE,EAAKQ,QACxBR,EAAKQ,KAAML,kBAAkBM,WAC7BT,EAAKU,KAAM,YAAY,EACxB,EACAC,QAAS,SAAWC,GAGnB,GAFAZ,EAAKQ,KAAMR,EAAKF,KAAM,SACtBE,EAAKU,KAAM,YAAY,IAChBE,EAASD,QAEf,OADAE,MAAOD,EAASd,OACT,EAGRgB,OAAOC,SAASC,KAAOD,SAASC,IACjC,GAGH,IAGDxB,EAAGF,UAAWG,GACb,QACA,wBACA,SAAUC,GACTA,EAAEC,iBAEF,IAAIC,EAAWJ,EAAGK,MAAOC,KAAM,SAC3BC,EAAWP,EAAGK,MAAOC,KAAM,YAC3BE,EAAWR,EAAGK,MAClBL,EAAES,KACD,CACCC,IAAKC,kBAAkBC,SACvBC,KAAM,OACNP,KAAM,CACLQ,OAAQ,sBACRV,MAAOA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