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EAAIiB,GAAKC,CAMb,CAEA,OAAOlB,CACT,aCxDA,IAAI4B,EAAqB,SAASV,GAChC,cAAeA,GACb,IAAK,SACH,OAAOA,EAET,IAAK,UACH,OAAOA,EAAI,OAAS,QAEtB,IAAK,SACH,OAAOW,SAASX,GAAKA,EAAI,GAE3B,QACE,MAAO,GAEb,EAEAb,EAAOC,QAAU,SAASN,EAAKO,EAAKC,EAAIsB,GAOtC,OANAvB,EAAMA,GAAO,IACbC,EAAKA,GAAM,IACC,OAARR,IACFA,OAAM+B,GAGW,iBAAR/B,EACFE,OAAO8B,KAAKhC,GAAKiC,KAAI,SAAShB,GACnC,IAAIiB,EAAKC,mBAAmBP,EAAmBX,IAAMT,EACrD,OAAIiB,MAAMC,QAAQ1B,EAAIiB,IACbjB,EAAIiB,GAAGgB,KAAI,SAASf,GACzB,OAAOgB,EAAKC,mBAAmBP,EAAmBV,GACpD,IAAGkB,KAAK7B,GAED2B,EAAKC,mBAAmBP,EAAmB5B,EAAIiB,IAE1D,IAAGoB,OAAOC,SAASF,KAAK7B,GAIrBuB,EACEK,mBAAmBP,EAAmBE,IAAStB,EAC/C2B,mBAAmBP,EAAmB5B,IAF3B,EAGpB,mBC7DAM,EAAQiC,OAASjC,EAAQkC,MAAQ,EAAhB,OACjBlC,EAAQmC,OAASnC,EAAQoC,UAAY,EAApB","sources":["webpack:///./calculator/actions/actions.js","webpack:///./calculator/lib/xoom-redirect-url.js","webpack:///../../node_modules/querystring/decode.js","webpack:///../../node_modules/querystring/encode.js","webpack:///../../node_modules/querystring/index.js"],"sourcesContent":["/**\n * This file (for now) contains all actions that can be dispatched (store.dispatch({})).\n * These are all the actions that can be dispatched.\n *\n * These actions are called from async actions (in this file) as well as from UI components that\n * are dispatching actions.\n */\nimport { ActionTypes as types } from '../constants'\nimport getXoomRedirectUrl from '../lib/xoom-redirect-url'\n\n// Log an action and then redirect to Xoom.\nexport function redirectToXoom(options) {\n return function(dispatch) {\n dispatch({\n type: types.REDIRECT_TO_XOOM,\n data: { options },\n })\n\n // TODO: add client-side checks before redirecting here (isValidEmail, etc...)\n window.location.assign(getXoomRedirectUrl(options))\n }\n}\n\nexport function setFlowModel(data) {\n return {\n type: types.SET_INITIAL_FLOW_MODEL,\n data,\n }\n}\n","import qs from 'querystring'\n\n/**\n * Returns a URL to be used to redirecting to Xoom\n * @param {string} url the URL to redirect to\n * @return {string} the URL to do navigate to to get redirected\n */\nexport default function getXoomRedirectUrl(options) {\n return '/myaccount/transfer/fx/xoom/redirect?' + qs.stringify(options)\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n// If obj.hasOwnProperty has been overridden, then calling\n// obj.hasOwnProperty(prop) will break.\n// See: https://github.com/joyent/node/issues/1707\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nmodule.exports = function(qs, sep, eq, options) {\n sep = sep || '&';\n eq = eq || '=';\n var obj = {};\n\n if (typeof qs !== 'string' || qs.length === 0) {\n return obj;\n }\n\n var regexp = /\\+/g;\n qs = qs.split(sep);\n\n var maxKeys = 1000;\n if (options && typeof options.maxKeys === 'number') {\n maxKeys = options.maxKeys;\n }\n\n var len = qs.length;\n // maxKeys <= 0 means that we should not limit keys count\n if (maxKeys > 0 && len > maxKeys) {\n len = maxKeys;\n }\n\n for (var i = 0; i < len; ++i) {\n var x = qs[i].replace(regexp, '%20'),\n idx = x.indexOf(eq),\n kstr, vstr, k, v;\n\n if (idx >= 0) {\n kstr = x.substr(0, idx);\n vstr = x.substr(idx + 1);\n } else {\n kstr = x;\n vstr = '';\n }\n\n k = decodeURIComponent(kstr);\n v = decodeURIComponent(vstr);\n\n if (!hasOwnProperty(obj, k)) {\n obj[k] = v;\n } else if (Array.isArray(obj[k])) {\n obj[k].push(v);\n } else {\n obj[k] = [obj[k], v];\n }\n }\n\n return obj;\n};\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar stringifyPrimitive = function(v) {\n switch (typeof v) {\n case 'string':\n return v;\n\n case 'boolean':\n return v ? 'true' : 'false';\n\n case 'number':\n return isFinite(v) ? v : '';\n\n default:\n return '';\n }\n};\n\nmodule.exports = function(obj, sep, eq, name) {\n sep = sep || '&';\n eq = eq || '=';\n if (obj === null) {\n obj = undefined;\n }\n\n if (typeof obj === 'object') {\n return Object.keys(obj).map(function(k) {\n var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;\n if (Array.isArray(obj[k])) {\n return obj[k].map(function(v) {\n return ks + encodeURIComponent(stringifyPrimitive(v));\n }).join(sep);\n } else {\n return ks + encodeURIComponent(stringifyPrimitive(obj[k]));\n }\n }).filter(Boolean).join(sep);\n\n }\n\n if (!name) return '';\n return encodeURIComponent(stringifyPrimitive(name)) + eq +\n encodeURIComponent(stringifyPrimitive(obj));\n};\n","'use strict';\n\nexports.decode = exports.parse = require('./decode');\nexports.encode = exports.stringify = require('./encode');\n"],"names":["redirectToXoom","options","dispatch","type","types","REDIRECT_TO_XOOM","data","window","location","assign","qs","getXoomRedirectUrl","setFlowModel","SET_INITIAL_FLOW_MODEL","hasOwnProperty","obj","prop","Object","prototype","call","module","exports","sep","eq","length","regexp","split","maxKeys","len","i","kstr","vstr","k","v","x","replace","idx","indexOf","substr","decodeURIComponent","Array","isArray","push","stringifyPrimitive","isFinite","name","undefined","keys","map","ks","encodeURIComponent","join","filter","Boolean","decode","parse","encode","stringify"],"sourceRoot":""}