{"version":3,"sources":["webpack:///js/give-stripe-ach.js","webpack:///webpack/bootstrap 2b1ef9f3274198a44a19","webpack:///./assets/src/js/frontend/give-stripe-ach.js"],"names":["modules","__webpack_require__","moduleId","installedModules","exports","module","i","l","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","8","9","jQuery","document","ready","$","donate_button_val","val","on","e","$form","this","$form_submit","find","append","prop","preventDefault","Plaid","create","env","give_stripe_ach_vars","plaid_endpoint","apiVersion","plaid_api_version","clientName","sitename","key","plaid_public_key","product","selectAccount","onSuccess","public_token","metadata","account_id","submit","onExit","hide","open"],"mappings":"CAAS,SAAUA,GCInB,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAE,OAGA,IAAAC,GAAAF,EAAAD,IACAI,EAAAJ,EACAK,GAAA,EACAH,WAUA,OANAJ,GAAAE,GAAAM,KAAAH,EAAAD,QAAAC,IAAAD,QAAAH,GAGAI,EAAAE,GAAA,EAGAF,EAAAD,QAvBA,GAAAD,KA4BAF,GAAAQ,EAAAT,EAGAC,EAAAS,EAAAP,EAGAF,EAAAU,EAAA,SAAAP,EAAAQ,EAAAC,GACAZ,EAAAa,EAAAV,EAAAQ,IACAG,OAAAC,eAAAZ,EAAAQ,GACAK,cAAA,EACAC,YAAA,EACAC,IAAAN,KAMAZ,EAAAmB,EAAA,SAAAf,GACA,GAAAQ,GAAAR,KAAAgB,WACA,WAA2B,MAAAhB,GAAA,SAC3B,WAAiC,MAAAA,GAEjC,OADAJ,GAAAU,EAAAE,EAAA,IAAAA,GACAA,GAIAZ,EAAAa,EAAA,SAAAQ,EAAAC,GAAsD,MAAAR,QAAAS,UAAAC,eAAAjB,KAAAc,EAAAC,IAGtDtB,EAAAyB,EAAA,GAGAzB,IAAA0B,EAAA,KDMMC,EACA,SAAUvB,EAAQD,EAASH,GAEjCI,EAAOD,QAAUH,EAAoB,IAK/B4B,EACA,SAAUxB,EAAQD,GExExB0B,OAAQC,UAAWC,MAAM,SAAUC,GAElC,GAAIC,GAAoBD,EAAG,iDAAkDE,KAE7EF,GAAG,uBAAwBG,GAAG,SAAU,SAAUC,GAGjD,GAAIC,GAAQL,EAAGM,MACXC,EAAeP,EAAGM,MAAOE,KAAM,kDAGnCH,EAAMI,OAAQ,yEAEdF,EAAaG,KAAM,YAAY,GAIR,eADFL,EAAMG,KAAM,8BAA+BN,SAKhEE,EAAEO,iBAEgBC,MAAMC,QACvBC,IAAKC,qBAAqBC,eAC1BC,WAAYF,qBAAqBG,kBACjCC,WAAYJ,qBAAqBK,SACjCC,IAAKN,qBAAqBO,iBAC1BC,QAAS,OACTC,eAAe,EACfC,UAAW,SAAUC,EAAcC,GAGlCtB,EAAMI,OAAQ,4DAA8DiB,EAAe,QAC3FrB,EAAMI,OAAQ,iEAAmEkB,EAASC,WAAa,QAEvGvB,EAAMnB,IAAK,GAAI2C,UAGhBC,OAAQ,WAGPzB,EAAMG,KAAM,2BAA4BuB,OAExCxB,EAAaG,KAAM,YAAY,GAE/BH,EAAaL,IAAKD,MAIR+B","file":"js/give-stripe-ach.js","sourcesContent":["/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 8);\n/******/ })\n/************************************************************************/\n/******/ ({\n\n/***/ 8:\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(9);\n\n\n/***/ }),\n\n/***/ 9:\n/***/ (function(module, exports) {\n\n/**\n * Give - Stripe Popup Checkout JS\n */\n\njQuery(document).ready(function ($) {\n\n\tvar donate_button_val = $('.give-submit-button-wrap input[type=\"submit\"]').val();\n\n\t$('form[id^=give-form]').on('submit', function (e) {\n\n\t\t// Form that has been submitted.\n\t\tvar $form = $(this);\n\t\tvar $form_submit = $(this).find('.give-submit-button-wrap input[type=\"submit\"]');\n\n\t\t// Ensure the Plaid modal displays above.\n\t\t$form.append(\"\");\n\t\t// Disable submit.\n\t\t$form_submit.prop('disabled', true);\n\n\t\t// Check that Stripe is indeed the gateway chosen.\n\t\tvar chosen_gateway = $form.find('input[name=\"give-gateway\"]').val();\n\t\tif (chosen_gateway !== 'stripe_ach') {\n\t\t\treturn;\n\t\t}\n\n\t\te.preventDefault();\n\n\t\tvar linkHandler = Plaid.create({\n\t\t\tenv: give_stripe_ach_vars.plaid_endpoint,\n\t\t\tapiVersion: give_stripe_ach_vars.plaid_api_version,\n\t\t\tclientName: give_stripe_ach_vars.sitename,\n\t\t\tkey: give_stripe_ach_vars.plaid_public_key,\n\t\t\tproduct: 'auth',\n\t\t\tselectAccount: true,\n\t\t\tonSuccess: function onSuccess(public_token, metadata) {\n\n\t\t\t\t// insert the token into the form so it gets submitted to the server\n\t\t\t\t$form.append(\"\");\n\t\t\t\t$form.append(\"\");\n\t\t\t\t// submit\n\t\t\t\t$form.get(0).submit();\n\t\t\t},\n\t\t\tonExit: function onExit() {\n\n\t\t\t\t// Remove loading animations\n\t\t\t\t$form.find('.give-loading-animation').hide();\n\t\t\t\t// Re-enable submit button.\n\t\t\t\t$form_submit.prop('disabled', false);\n\t\t\t\t// button and add back text.\n\t\t\t\t$form_submit.val(donate_button_val);\n\t\t\t}\n\t\t});\n\n\t\tlinkHandler.open();\n\t});\n});\n\n/***/ })\n\n/******/ });\n\n\n// WEBPACK FOOTER //\n// js/give-stripe-ach.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 8);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 2b1ef9f3274198a44a19","/**\n * Give - Stripe Popup Checkout JS\n */\n\njQuery( document ).ready(function ($) {\n\n\tvar donate_button_val = $( '.give-submit-button-wrap input[type=\"submit\"]' ).val();\n\n\t$( 'form[id^=give-form]' ).on('submit', function (e) {\n\n\t\t// Form that has been submitted.\n\t\tvar $form = $( this );\n\t\tvar $form_submit = $( this ).find( '.give-submit-button-wrap input[type=\"submit\"]' );\n\n\t\t// Ensure the Plaid modal displays above.\n\t\t$form.append( \"\" );\n\t\t// Disable submit.\n\t\t$form_submit.prop( 'disabled', true );\n\n\t\t// Check that Stripe is indeed the gateway chosen.\n\t\tvar chosen_gateway = $form.find( 'input[name=\"give-gateway\"]' ).val();\n\t\tif (chosen_gateway !== 'stripe_ach') {\n\t\t\treturn;\n\t\t}\n\n\t\te.preventDefault();\n\n\t\tvar linkHandler = Plaid.create({\n\t\t\tenv: give_stripe_ach_vars.plaid_endpoint,\n\t\t\tapiVersion: give_stripe_ach_vars.plaid_api_version,\n\t\t\tclientName: give_stripe_ach_vars.sitename,\n\t\t\tkey: give_stripe_ach_vars.plaid_public_key,\n\t\t\tproduct: 'auth',\n\t\t\tselectAccount: true,\n\t\t\tonSuccess: function (public_token, metadata) {\n\n\t\t\t\t// insert the token into the form so it gets submitted to the server\n\t\t\t\t$form.append( \"\" );\n\t\t\t\t$form.append( \"\" );\n\t\t\t\t// submit\n\t\t\t\t$form.get( 0 ).submit();\n\n\t\t\t},\n\t\t\tonExit: function () {\n\n\t\t\t\t// Remove loading animations\n\t\t\t\t$form.find( '.give-loading-animation' ).hide();\n\t\t\t\t// Re-enable submit button.\n\t\t\t\t$form_submit.prop( 'disabled', false );\n\t\t\t\t// button and add back text.\n\t\t\t\t$form_submit.val( donate_button_val );\n\t\t\t}\n\t\t});\n\n\t\tlinkHandler.open();\n\n\t});\n\n});\n\n\n\n// WEBPACK FOOTER //\n// ./assets/src/js/frontend/give-stripe-ach.js"],"sourceRoot":""}