Give – Donation Plugin and Fundraising Platform - Version 2.10.2

Version Description

Download this release

Release Info

Developer jason_the_adams
Plugin Icon 128x128 Give – Donation Plugin and Fundraising Platform
Version 2.10.2
Comparing to
See all releases

Code changes from version 2.10.1 to 2.10.2

Files changed (72) hide show
  1. assets/dist/js/donor-dashboards-app.js +1 -1
  2. give.php +2 -2
  3. includes/admin/add-ons/actions.php +1 -1
  4. includes/class-give-logging.php +8 -10
  5. includes/forms/functions.php +1 -0
  6. includes/gateways/stripe/includes/class-give-stripe-checkout-session.php +3 -1
  7. includes/gateways/stripe/includes/class-give-stripe-gateway.php +2 -1
  8. includes/gateways/stripe/includes/class-give-stripe-payment-intent.php +5 -2
  9. languages/give.pot +63 -43
  10. readme.txt +8 -1
  11. src/DonorDashboards/Admin/Settings.php +6 -0
  12. src/DonorDashboards/App.php +1 -1
  13. src/DonorDashboards/Repositories/Donations.php +1 -1
  14. src/DonorDashboards/Routes/Captcha/ProtectedRoute.php +3 -3
  15. src/DonorDashboards/ServiceProvider.php +1 -1
  16. src/DonorDashboards/Tabs/Contracts/Route.php +34 -1
  17. src/DonorDashboards/Tabs/DonationHistoryTab/DonationsRoute.php +6 -4
  18. src/DonorDashboards/resources/js/app/store/actions.js +10 -0
  19. src/DonorDashboards/resources/js/app/tabs/annual-receipts/content.js +14 -0
  20. src/DonorDashboards/resources/js/app/tabs/annual-receipts/store/actions.js +9 -0
  21. src/DonorDashboards/resources/js/app/tabs/annual-receipts/store/initialState.js +1 -0
  22. src/DonorDashboards/resources/js/app/tabs/annual-receipts/store/reducer.js +5 -0
  23. src/DonorDashboards/resources/js/app/tabs/annual-receipts/utils/index.js +7 -1
  24. src/DonorDashboards/resources/js/app/tabs/donation-history/content.js +0 -3
  25. src/DonorDashboards/resources/js/app/tabs/donation-history/dashboard-content.js +0 -3
  26. src/DonorDashboards/resources/js/app/tabs/recurring-donations/content.js +25 -5
  27. src/DonorDashboards/resources/js/app/tabs/recurring-donations/store/actions.js +9 -0
  28. src/DonorDashboards/resources/js/app/tabs/recurring-donations/store/initialState.js +1 -0
  29. src/DonorDashboards/resources/js/app/tabs/recurring-donations/store/reducer.js +5 -0
  30. src/DonorDashboards/resources/js/app/tabs/recurring-donations/utils/index.js +6 -1
  31. src/Form/LegacyConsumer/Commands/DeprecateOldTemplateHook.php +2 -2
  32. src/Form/LegacyConsumer/Commands/HookCommandInterface.php +2 -2
  33. src/Form/LegacyConsumer/Commands/SetupFieldConfirmation.php +4 -4
  34. src/Form/LegacyConsumer/Commands/SetupFieldEmailTag.php +3 -3
  35. src/Form/LegacyConsumer/Commands/SetupFieldPersistance.php +4 -4
  36. src/Form/LegacyConsumer/Commands/SetupFieldReceipt.php +6 -6
  37. src/Form/LegacyConsumer/Commands/SetupFieldValidation.php +3 -3
  38. src/Form/LegacyConsumer/Commands/SetupNewTemplateHook.php +2 -2
  39. src/Form/LegacyConsumer/Commands/SetupPaymentDetailsDisplay.php +6 -6
  40. src/Form/LegacyConsumer/FieldView.php +3 -3
  41. src/Framework/FieldsAPI/FieldCollection.php +1 -1
  42. src/Framework/FieldsAPI/FieldCollection/Exception/NameCollisionException.php +1 -1
  43. src/Framework/FieldsAPI/FieldCollection/Exception/ReferenceNodeNotFoundException.php +1 -1
  44. src/Framework/FieldsAPI/FieldCollection/InsertNode.php +6 -6
  45. src/Framework/FieldsAPI/FieldCollection/NameCollision.php +1 -1
  46. src/Framework/FieldsAPI/FormField/FieldAttributes.php +4 -4
  47. src/Framework/FieldsAPI/FormField/FieldReceipt.php +4 -4
  48. src/Framework/FieldsAPI/FormField/FieldStoreAsMeta.php +4 -4
  49. src/Log/Helpers/LegacyLogsTable.php +1 -1
  50. src/Log/Log.php +43 -1
  51. src/Log/LogFactory.php +1 -1
  52. src/Log/LogModel.php +29 -3
  53. src/Log/LogRepository.php +2 -1
  54. src/Log/Migrations/CreateNewLogTable.php +2 -2
  55. src/PaymentGateways/Stripe/ApplicationFee.php +34 -10
  56. src/PaymentGateways/Stripe/Models/AccountDetail.php +82 -0
  57. src/PaymentGateways/Stripe/Repositories/AccountDetail.php +54 -0
  58. src/ServiceProviders/PaymentGateways.php +13 -0
  59. src/TestData/Factories/LogFactory.php +1 -1
  60. src/Tracking/Events/EditedDonationFormsTracking.php +2 -2
  61. src/Tracking/Helpers/DonationStatuses.php +2 -2
  62. src/Tracking/Repositories/TrackEvents.php +3 -3
  63. src/Tracking/TrackJob.php +1 -1
  64. src/Tracking/TrackingData/DonationMetricsData.php +1 -1
  65. src/Tracking/TrackingData/EditedDonationFormsData.php +2 -2
  66. src/Tracking/TrackingData/GivePluginSettingsData.php +1 -1
  67. src/Views/Form/Templates/Sequoia/assets/js/form.js +1 -1
  68. vendor/autoload.php +1 -1
  69. vendor/composer/InstalledVersions.php +6 -6
  70. vendor/composer/autoload_real.php +4 -4
  71. vendor/composer/autoload_static.php +4 -4
  72. vendor/composer/installed.php +6 -6
assets/dist/js/donor-dashboards-app.js CHANGED
@@ -68,4 +68,4 @@ object-assign
68
  /*!
69
  * Font Awesome Free 5.15.2 by @fontawesome - https://fontawesome.com
70
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
71
- */function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){T()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Y=M((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_ACTIVE_TAB":return K(K({},e),{},{activeTab:t.payload.tab});case"ADD_TAB":var n=Object.assign({},e.tabs);return n[t.payload.tab.slug]=t.payload.tab,K(K({},e),{},{tabs:n});case"SET_PROFILE":return K(K({},e),{},{profile:t.payload.profile});case"SET_STATES":return K(K({},e),{},{states:t.payload.states});case"SET_FETCHING_STATES":return K(K({},e),{},{fetchingStates:t.payload.fetchingStates});default:return e}})),Q=n(671),X=n.n(Q);n(627),X()(console.error);var J,ee,te,ne,ce=n(15);J={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},ee=["(","?"],te={")":["("],":":["?","?:"]},ne=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var ae={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function re(e){var t=function(e){for(var t,n,c,a,r=[],o=[];t=e.match(ne);){for(n=t[0],(c=e.substr(0,t.index).trim())&&r.push(c);a=o.pop();){if(te[n]){if(te[n][0]===a){n=te[n][1]||n;break}}else if(ee.indexOf(a)>=0||J[a]<J[n]){o.push(a);break}r.push(a)}te[n]||o.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&r.push(e),r.concat(o.reverse())}(e);return function(e){return function(e,t){var n,c,a,r,o,i,l=[];for(n=0;n<e.length;n++){if(o=e[n],r=ae[o]){for(c=r.length,a=Array(c);c--;)a[c]=l.pop();try{i=r.apply(null,a)}catch(e){return e}}else i=t.hasOwnProperty(o)?t[o]:+o;l.push(i)}return l[0]}(t,e)}}var oe={contextDelimiter:"",onMissingKey:null};function ie(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},oe)this.options[n]=void 0!==t&&n in t?t[n]:oe[n]}function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach((function(t){Object(ce.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}ie.prototype.getPluralForm=function(e,t){var n,c,a,r,o=this.pluralForms[e];return o||("function"!=typeof(a=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(c=function(e){var t,n,c;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(c=t[n].trim()).indexOf("plural="))return c.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),r=re(c),a=function(e){return+r({n:e})}),o=this.pluralForms[e]=a),o(t)},ie.prototype.dcnpgettext=function(e,t,n,c,a){var r,o,i;return r=void 0===a?0:this.getPluralForm(e,a),o=n,t&&(o=t+this.options.contextDelimiter+n),(i=this.data[e][o])&&i[r]?i[r]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===r?n:c)};var ue={"":{plural_forms:function(e){return 1===e?0:1}}},fe=/^i18n\.(n?gettext|has_translation)(_|$)/,he=n(27);var pe=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var de=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var me=function(e,t){return function(n,c,a){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,o=e[t];if(de(n)&&pe(c))if("function"==typeof a)if("number"==typeof r){var i={callback:a,priority:r,namespace:c};if(o[n]){var l,s=o[n].handlers;for(l=s.length;l>0&&!(r>=s[l-1].priority);l--);l===s.length?s[l]=i:s.splice(l,0,i),o.__current.forEach((function(e){e.name===n&&e.currentIndex>=l&&e.currentIndex++}))}else o[n]={handlers:[i],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,c,a,r)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var ve=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(c,a){var r=e[t];if(de(c)&&(n||pe(a))){if(!r[c])return 0;var o=0;if(n)o=r[c].handlers.length,r[c]={runs:r[c].runs,handlers:[]};else for(var i=r[c].handlers,l=function(e){i[e].namespace===a&&(i.splice(e,1),o++,r.__current.forEach((function(t){t.name===c&&t.currentIndex>=e&&t.currentIndex--})))},s=i.length-1;s>=0;s--)l(s);return"hookRemoved"!==c&&e.doAction("hookRemoved",c,a),o}}};var ge=function(e,t){return function(n,c){var a=e[t];return void 0!==c?n in a&&a[n].handlers.some((function(e){return e.namespace===c})):n in a}};n(310);var be=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(c){var a=e[t];a[c]||(a[c]={handlers:[],runs:0}),a[c].runs++;var r=a[c].handlers;for(var o=arguments.length,i=new Array(o>1?o-1:0),l=1;l<o;l++)i[l-1]=arguments[l];if(!r||!r.length)return n?i[0]:void 0;var s={name:c,currentIndex:0};for(a.__current.push(s);s.currentIndex<r.length;){var u=r[s.currentIndex],f=u.callback.apply(null,i);n&&(i[0]=f),s.currentIndex++}return a.__current.pop(),n?i[0]:void 0}};var ye=function(e,t){return function(){var n,c,a=e[t];return null!==(n=null===(c=a.__current[a.__current.length-1])||void 0===c?void 0:c.name)&&void 0!==n?n:null}};var ze=function(e,t){return function(n){var c=e[t];return void 0===n?void 0!==c.__current[0]:!!c.__current[0]&&n===c.__current[0].name}};var Ce=function(e,t){return function(n){var c=e[t];if(de(n))return c[n]&&c[n].runs?c[n].runs:0}},xe=function e(){Object(he.a)(this,e),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=me(this,"actions"),this.addFilter=me(this,"filters"),this.removeAction=ve(this,"actions"),this.removeFilter=ve(this,"filters"),this.hasAction=ge(this,"actions"),this.hasFilter=ge(this,"filters"),this.removeAllActions=ve(this,"actions",!0),this.removeAllFilters=ve(this,"filters",!0),this.doAction=be(this,"actions"),this.applyFilters=be(this,"filters",!0),this.currentAction=ye(this,"actions"),this.currentFilter=ye(this,"filters"),this.doingAction=ze(this,"actions"),this.doingFilter=ze(this,"filters"),this.didAction=Ce(this,"actions"),this.didFilter=Ce(this,"filters")};var Me=function(){return new xe}(),Le=(Me.addAction,Me.addFilter,Me.removeAction,Me.removeFilter,Me.hasAction,Me.hasFilter,Me.removeAllActions,Me.removeAllFilters,Me.doAction,Me.applyFilters,Me.currentAction,Me.currentFilter,Me.doingAction,Me.doingFilter,Me.didAction,Me.didFilter,Me.actions,Me.filters,function(e,t,n){var c=new ie({}),a=new Set,r=function(){a.forEach((function(e){return e()}))},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";c.data[t]=se(se(se({},ue),c.data[t]),e),c.data[t][""]=se(se({},ue[""]),c.data[t][""])},i=function(e,t){o(e,t),r()},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;return c.data[e]||o(void 0,e),c.dcnpgettext(e,t,n,a,r)},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return e},u=function(e,t,c){var a=l(c,t,e);return n?(a=n.applyFilters("i18n.gettext_with_context",a,e,t,c),n.applyFilters("i18n.gettext_with_context_"+s(c),a,e,t,c)):a};if(e&&i(e,t),n){var f=function(e){fe.test(e)&&r()};n.addAction("hookAdded","core/i18n",f),n.addAction("hookRemoved","core/i18n",f)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return c.data[e]},setLocaleData:i,subscribe:function(e){return a.add(e),function(){return a.delete(e)}},__:function(e,t){var c=l(t,void 0,e);return n?(c=n.applyFilters("i18n.gettext",c,e,t),n.applyFilters("i18n.gettext_"+s(t),c,e,t)):c},_x:u,_n:function(e,t,c,a){var r=l(a,void 0,e,t,c);return n?(r=n.applyFilters("i18n.ngettext",r,e,t,c,a),n.applyFilters("i18n.ngettext_"+s(a),r,e,t,c,a)):r},_nx:function(e,t,c,a,r){var o=l(r,a,e,t,c);return n?(o=n.applyFilters("i18n.ngettext_with_context",o,e,t,c,a,r),n.applyFilters("i18n.ngettext_with_context_"+s(r),o,e,t,c,a,r)):o},isRTL:function(){return"rtl"===u("ltr","text direction")},hasTranslation:function(e,t,a){var r,o,i=t?t+""+e:e,l=!(null===(r=c.data)||void 0===r||null===(o=r[null!=a?a:"default"])||void 0===o||!o[i]);return n&&(l=n.applyFilters("i18n.has_translation",l,e,t,a),l=n.applyFilters("i18n.has_translation_"+s(a),l,e,t,a)),l}}}(void 0,void 0,Me)),we=(Le.getLocaleData.bind(Le),Le.setLocaleData.bind(Le),Le.subscribe.bind(Le),Le.__.bind(Le));Le._x.bind(Le),Le._n.bind(Le),Le._nx.bind(Le),Le.isRTL.bind(Le),Le.hasTranslation.bind(Le);function He(e){return(He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach((function(t){Ve(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ne(e,t){if(null==e)return{};var n,c,a=function(e,t){if(null==e)return{};var n,c,a={},r=Object.keys(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function ke(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Oe(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}function Ae(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,c=t.indexOf(":"),a=Oe(t.slice(0,c)),r=t.slice(c+1).trim();return a.startsWith("webkit")?e[(n=a,n.charAt(0).toUpperCase()+n.slice(1))]=r:e[a]=r,e}),{})}var _e=!1;try{_e=!0}catch(e){}function Re(e){return _.c.icon?_.c.icon(e):null===e?null:"object"===He(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function Pe(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Ve({},e,t):{}}function Te(e){var t=e.forwardedRef,n=Ne(e,["forwardedRef"]),c=n.icon,a=n.mask,r=n.symbol,o=n.className,i=n.title,l=n.titleId,s=Re(c),u=Pe("classes",[].concat(ke(function(e){var t,n=e.spin,c=e.pulse,a=e.fixedWidth,r=e.inverse,o=e.border,i=e.listItem,l=e.flip,s=e.size,u=e.rotation,f=e.pull,h=(Ve(t={"fa-spin":n,"fa-pulse":c,"fa-fw":a,"fa-inverse":r,"fa-border":o,"fa-li":i,"fa-flip-horizontal":"horizontal"===l||"both"===l,"fa-flip-vertical":"vertical"===l||"both"===l},"fa-".concat(s),null!=s),Ve(t,"fa-rotate-".concat(u),null!=u&&0!==u),Ve(t,"fa-pull-".concat(f),null!=f),Ve(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(h).map((function(e){return h[e]?e:null})).filter((function(e){return e}))}(n)),ke(o.split(" ")))),f=Pe("transform","string"==typeof n.transform?_.c.transform(n.transform):n.transform),h=Pe("mask",Re(a)),p=Object(_.a)(s,Ee({},u,{},f,{},h,{symbol:r,title:i,titleId:l}));if(!p)return function(){var e;!_e&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",s),null;var d=p.abstract,m={ref:t};return Object.keys(n).forEach((function(e){Te.defaultProps.hasOwnProperty(e)||(m[e]=n[e])})),je(d[0],m)}Te.displayName="FontAwesomeIcon",Te.propTypes={border:s.a.bool,className:s.a.string,mask:s.a.oneOfType([s.a.object,s.a.array,s.a.string]),fixedWidth:s.a.bool,inverse:s.a.bool,flip:s.a.oneOf(["horizontal","vertical","both"]),icon:s.a.oneOfType([s.a.object,s.a.array,s.a.string]),listItem:s.a.bool,pull:s.a.oneOf(["right","left"]),pulse:s.a.bool,rotation:s.a.oneOf([0,90,180,270]),size:s.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:s.a.bool,symbol:s.a.oneOfType([s.a.bool,s.a.string]),title:s.a.string,transform:s.a.oneOfType([s.a.string,s.a.object]),swapOpacity:s.a.bool},Te.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var je=function e(t,n){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var a=(n.children||[]).map((function(n){return e(t,n)})),r=Object.keys(n.attributes||{}).reduce((function(e,t){var c=n.attributes[t];switch(t){case"class":e.attrs.className=c,delete n.attributes.class;break;case"style":e.attrs.style=Ae(c);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=c:e.attrs[Oe(t)]=c}return e}),{attrs:{}}),o=c.style,i=void 0===o?{}:o,l=Ne(c,["style"]);return r.attrs.style=Ee({},r.attrs.style,{},i),t.apply(void 0,[n.tag,Ee({},r.attrs,{},l)].concat(ke(a)))}.bind(null,i.a.createElement),De=(n(955),function(e){var t=e.icon,n=e.children;return React.createElement("div",{className:"give-donor-dashboard-heading"},t&&React.createElement(Te,{icon:t,className:"spinner"===t?"give-donor-dashboard-heading__spinner":""}),n)}),Ie=n(4),Fe=n.n(Ie),Ue=(n(956),function(e){var t=e.header,n=e.rows,c=e.footer;return React.createElement("div",{className:"give-donor-dashboard-table"},React.createElement("div",{className:"give-donor-dashboard-table__header"},t),React.createElement("div",{className:"give-donor-dashboard-table__rows"},n),React.createElement("div",{className:"give-donor-dashboard-table__footer"},c))}),Be=function(e){var t=e.annualReceipt[1],n=t.year,c=t.amount,a=t.count,r=t.statementUrl;return React.createElement("div",{className:"give-donor-dashboard-table__row"},React.createElement("div",{className:"give-donor-dashboard-table__column"},n.label),React.createElement("div",{className:"give-donor-dashboard-table__column"},c.formatted),React.createElement("div",{className:"give-donor-dashboard-table__column"},a),React.createElement("div",{className:"give-donor-dashboard-table__column"},React.createElement("a",{href:r,onClick:function(e){return function(e){e.preventDefault(),window.parent.open(e.target.href,"_blank")}(e)}},we("View Receipt","give")," ",React.createElement(Te,{icon:"arrow-right"}))))},Ze=(n(957),function(e){var t=e.annualReceipts,n=e.perPage,c=Object(o.useState)(1),a=Fe()(c,2),r=a[0],i=a[1],l=[],s=[],u=0,f=n,h=1;return t&&(s=Object.entries(t),f=(u=(r-1)*n)+n<=s.length?u+n:s.length,h=Math.ceil(s.length/n)-1,l=s.reduce((function(e,t,n){return n>=u&&n<f&&e.push(React.createElement(Be,{key:n,annualReceipt:t})),e}),[])),React.createElement(Ue,{header:React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-table__column"},we("Year","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},we("Amount","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},we("Count","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},we("Statement","give"))),rows:React.createElement(o.Fragment,null,l),footer:React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-table__footer-text"},t&&"".concat(we("Showing","give")," ").concat(u+1," - ").concat(f," ").concat(we("of","give")," ").concat(s.length," ").concat(we("Receipts","give"))),React.createElement("div",{className:"give-donor-dashboard-table__footer-nav"},r-1>=1&&React.createElement("a",{onClick:function(){return i(r-1)}},React.createElement(Te,{icon:"chevron-left"})),r<=h&&React.createElement("a",{onClick:function(){return i(r+1)}},React.createElement(Te,{icon:"chevron-right"}))))})}),We={annualReceipts:null,querying:!1};function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach((function(t){T()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ge=M((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:We,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_ANNUAL_RECEIPTS":return qe(qe({},e),{},{annualReceipts:t.payload.annualReceipts});case"SET_QUERYING":return qe(qe({},e),{},{querying:t.payload.querying});default:return e}})),Ke=function(e){var t=Object(o.useState)(e(Ge.getState())),n=Fe()(t,2),c=n[0],a=n[1];return Object(o.useEffect)((function(){var t=Ge.subscribe((function(){a(e(Ge.getState()))}));return function(){t()}}),[]),c},Ye=n(31),Qe=n.n(Ye),Xe=function(e){return{type:"SET_QUERYING",payload:{querying:e}}},Je=function(){var e=Ke((function(e){return e.annualReceipts})),t=Ke((function(e){return e.querying})),n=e?Object.entries(e).length:0;return Object(o.useEffect)((function(){var e;e=Ge.dispatch,B()&&(e(Xe(!0)),Qe.a.post(Z()+"give-api/v2/donor-dashboard/annual-receipts",{},{}).then((function(e){return e.data})).then((function(t){var n=t.receipts;e({type:"SET_ANNUAL_RECEIPTS",payload:{annualReceipts:n}}),e(Xe(!1))})).catch((function(){e(Xe(!1))})))}),[]),!0===t&&null===e?React.createElement(o.Fragment,null,React.createElement(De,null,we("Loading...","give")),React.createElement(Ze,null)):React.createElement(o.Fragment,null,React.createElement(De,null,"".concat(n," ").concat(we("Total Annual Receipts","give"))),React.createElement(Ze,{annualReceipts:e,perPage:5}))},et=function(){return window.giveDonorDashboard.utils.registerTab({label:"Annual Receipts",icon:"receipt",slug:"annual-receipts",content:Je})},tt=(n(958),function(){var e=O((function(e){return e.tabs})),t=Object(o.useState)([]),n=Fe()(t,2),c=n[0],a=n[1],r=Object(o.useState)([]),i=Fe()(r,2),l=i[0],s=i[1];Object(o.useEffect)((function(){a(Object.entries(e))}),[e]),Object(o.useEffect)((function(){c.length>2&&s(u(c))}),[c]);var u=function(e){return e.reduce((function(e,t,n){if(t[1].dashboardContent){var c=t[1].dashboardContent;e.push(React.createElement(c,{key:n}))}return e}),[])};return React.createElement("div",{className:"give-donor-dashboard-dashboard-content"},l)}),nt=function(){return React.createElement(tt,null)},ct=n(26),at=(n(959),function(e){var t=e.icon,n=e.children,c=e.onClick,a=e.href,r=e.type;return a?React.createElement("a",{className:"give-donor-dashboard-button give-donor-dashboard-button--primary",onClick:function(e){return function(e){e.preventDefault(),window.parent.location=a}(e)},href:a},n,t&&React.createElement(Te,{icon:t})):React.createElement("button",{className:"give-donor-dashboard-button give-donor-dashboard-button--primary",onClick:c?function(){return c()}:null,type:r},n,t&&React.createElement(Te,{icon:t}))}),rt=(n(960),function(e){var t=e.donation;return void 0===t?null:t.receipt.map((function(e,t){var n=e.lineItems.map((function(e,t){var n="object"===D()(e.value)&&e.value.color?React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-donation-receipt__status-indicator",style:{background:e.value.color}}),e.value.label):e.value;return React.createElement("div",{className:"give-donor-dashboard-donation-receipt__row".concat(e.class.includes("total")?" give-donor-dashboard-donation-receipt__row--footer":""),key:t},React.createElement("div",{className:"give-donor-dashboard-donation-receipt__detail"},e.icon&&React.createElement(Te,{icon:e.icon,fixedWidth:!0})," ",e.label),React.createElement("div",{className:"give-donor-dashboard-donation-receipt__value"},n))}));return React.createElement("div",{className:"give-donor-dashboard-donation-receipt__table",key:t},n)}))}),ot=function(){return O((function(e){return e.accentColor}))},it=function(){var e=Object(o.useState)({width:void 0,height:void 0}),t=Fe()(e,2),n=t[0],c=t[1];return Object(o.useEffect)((function(){function e(){c({width:window.top.innerWidth,height:window.top.innerHeight})}return window.top.addEventListener("resize",e),e(),function(){return window.top.removeEventListener("resize",e)}}),[]),n},lt=function(e){var t=e.donation,n=t.id,a=t.form,r=t.payment,o=it().width;return React.createElement("div",{className:"give-donor-dashboard-table__row"},React.createElement("div",{className:"give-donor-dashboard-table__column"},o<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},we("Amount","give")),React.createElement("div",{className:"give-donor-dashboard-table__donation-amount"},r.amount)),React.createElement("div",{className:"give-donor-dashboard-table__column"},o<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},we("Form","give")),a.title),React.createElement("div",{className:"give-donor-dashboard-table__column"},o<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},we("Date","give")),React.createElement("div",{className:"give-donor-dashboard-table__donation-date"},r.date),React.createElement("div",{className:"give-donor-dashboard-table__donation-time"},r.time)),React.createElement("div",{className:"give-donor-dashboard-table__column"},o<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},we("Status","give")),React.createElement("div",{className:"give-donor-dashboard-table__donation-status"},React.createElement("div",{className:"give-donor-dashboard-table__donation-status-indicator",style:{background:r.status.color}}),React.createElement("div",{className:"give-donor-dashboard-table__donation-status-label"},r.status.label)),"live"!==r.mode&&React.createElement("div",{className:"give-donor-dashboard-table__donation-test-tag"},we("Test Donation","give"))),React.createElement("div",{className:"give-donor-dashboard-table__pill"},React.createElement("div",{className:"give-donor-dashboard-table__donation-id"},"ID: ",r.serialCode),React.createElement("div",{className:"give-donor-dashboard-table__donation-receipt"},React.createElement(c.b,{to:"/donation-history/".concat(n)},we("View Receipt","give")," ",React.createElement(Te,{icon:"arrow-right"})))))},st=(n(961),function(e){var t=e.donations,n=e.perPage,c=Object(o.useState)(1),a=Fe()(c,2),r=a[0],i=a[1],l=[],s=[],u=0,f=n,h=1;return t&&(Object.entries(t).forEach((function(e){s[e[0]]=e[1]})),f=(u=(r-1)*n)+n<=s.length?u+n:s.length,h=Math.ceil(s.length/n)-1,l=s.reduce((function(e,t,n){return n>=u&&n<f&&e.push(React.createElement(lt,{key:n,donation:t})),e}),[])),React.createElement(Ue,{header:React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-table__column"},we("Donation","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},we("Campaign","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},we("Date","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},we("Status","give"))),rows:React.createElement(o.Fragment,null,l),footer:React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-table__footer-text"},t&&"".concat(we("Showing","give")," ").concat(u+1," - ").concat(f," ").concat(we("of","give")," ").concat(s.length," ").concat(we("Donations","give"))),React.createElement("div",{className:"give-donor-dashboard-table__footer-nav"},r-1>=1&&React.createElement("a",{onClick:function(){return i(r-1)}},React.createElement(Te,{icon:"chevron-left"})),r<=h&&React.createElement("a",{onClick:function(){return i(r+1)}},React.createElement(Te,{icon:"chevron-right"}))))})}),ut={donations:null,querying:!1,count:null,revenue:null,average:null,currency:null,error:null};function ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function ht(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(n),!0).forEach((function(t){T()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pt=M((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ut,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_DONATIONS":return ht(ht({},e),{},{donations:t.payload.donations});case"SET_QUERYING":return ht(ht({},e),{},{querying:t.payload.querying});case"SET_ERROR":return ht(ht({},e),{},{error:t.payload.error});case"SET_COUNT":return ht(ht({},e),{},{count:t.payload.count});case"SET_AVERAGE":return ht(ht({},e),{},{average:t.payload.average});case"SET_REVENUE":return ht(ht({},e),{},{revenue:t.payload.revenue});case"SET_CURRENCY":return ht(ht({},e),{},{currency:t.payload.currency});default:return e}})),dt=function(e){var t=Object(o.useState)(e(pt.getState())),n=Fe()(t,2),c=n[0],a=n[1];return Object(o.useEffect)((function(){var t=pt.subscribe((function(){a(e(pt.getState()))}));return function(){t()}}),[]),c},mt=(n(962),function(){var e=dt((function(e){return e.donations})),t=dt((function(e){return e.querying})),n=dt((function(e){return e.error})),a=Object(ct.f)(),r=a?a.pathname.split("/")[2]:null,i=function(t){var n=e.filter((function(e){return parseInt(e.id)===parseInt(t)}));return n.length?n[0]:null};return n?React.createElement(o.Fragment,null,React.createElement(De,{icon:"exclamation-triangle"},we("Error","give")),React.createElement("p",{style:{color:"#6b6b6b"}},n),React.createElement("p",{style:{color:"#6b6b6b"}},we("Contact a site administrator and have them search the logs at Donations > Tools > Logs for a more specific cause of the problem.","give"))):r?t?React.createElement(o.Fragment,null,React.createElement(De,null,we("Loading...","give")),React.createElement("div",{className:"give-donor-dashboard__donation-history-link"},React.createElement(c.b,{to:"/donation-history"},React.createElement(Te,{icon:"arrow-left"})," ",we("Back to Donation History","give")))):React.createElement(o.Fragment,null,React.createElement(De,null,we("Donation Receipt","give")," #",i(r).payment.serialCode),React.createElement(rt,{donation:i(r)}),React.createElement("div",{className:"give-donor-dashboard__donation-history-footer"},React.createElement(c.b,{to:"/donation-history"},React.createElement(Te,{icon:"arrow-left"})," ",we("Back to Donation History","give")),i(r).payment.pdfReceiptUrl.length>0&&React.createElement(at,{icon:"file-pdf",href:i(r).payment.pdfReceiptUrl},we("Download Receipt","give")))):t?React.createElement(o.Fragment,null,React.createElement(De,null,we("Loading...","give")),React.createElement(st,null)):React.createElement(o.Fragment,null,e?React.createElement(o.Fragment,null,React.createElement(De,null,"".concat(e?Object.entries(e).length:0," ").concat(we("Total Donations","give"))),React.createElement(st,{donations:e,perPage:5})):React.createElement(o.Fragment,null,React.createElement(De,{icon:"exclamation-triangle"},we("No Donations","give"))))}),vt=(n(963),function(){var e=ot(),t=dt((function(e){return e.count})),n=dt((function(e){return e.revenue})),c=dt((function(e){return e.average})),a=dt((function(e){return e.currency}));return React.createElement("div",{className:"give-donor-dashboard-dashboard__stats"},t&&React.createElement("div",{className:"give-donor-dashboard-dashboard__stat"},React.createElement("div",{className:"give-donor-dashboard-dashboard__figure",style:{color:e}},t),React.createElement("div",{className:"give-donor-dashboard-dashboard__detail"},we("Number of donations","give"))),n&&React.createElement("div",{className:"give-donor-dashboard-dashboard__stat"},React.createElement("div",{className:"give-donor-dashboard-dashboard__figure",style:{color:e}},"before"===a.position?React.createElement(o.Fragment,null,React.createElement("span",{className:"give-donor-dashboard-dashboard__figure-currency"},a.symbol),n):React.createElement(o.Fragment,null,n,React.createElement("span",{className:"give-donor-dashboard-dashboard__figure-currency"},a.symbol))),React.createElement("div",{className:"give-donor-dashboard-dashboard__detail"},we("Lifetime donations","give"))),c&&React.createElement("div",{className:"give-donor-dashboard-dashboard__stat"},React.createElement("div",{className:"give-donor-dashboard-dashboard__figure",style:{color:e}},"before"===a.position?React.createElement(o.Fragment,null,React.createElement("span",{className:"give-donor-dashboard-dashboard__figure-currency"},a.symbol),c):React.createElement(o.Fragment,null,c,React.createElement("span",{className:"give-donor-dashboard-dashboard__figure-currency"},a.symbol))," "),React.createElement("div",{className:"give-donor-dashboard-dashboard__detail"},we("Average donation","give"))))}),gt=function(){var e=dt((function(e){return e.donations})),t=dt((function(e){return e.querying})),n=dt((function(e){return e.error}));return t?React.createElement(o.Fragment,null,React.createElement(De,{icon:"spinner"},we("Loading...","give"))):n?React.createElement(o.Fragment,null,React.createElement(De,{icon:"exclamation-triangle"},we("Error","give")),React.createElement("p",{style:{color:"#6b6b6b"}},n),React.createElement("p",{style:{color:"#6b6b6b"}},we("Contact a site administrator and have them search the logs at Donations > Tools > Logs for a more specific cause of the problem.","give"))):e?React.createElement(o.Fragment,null,React.createElement(De,{icon:"chart-line"},we("Your Giving Stats","give")),React.createElement(vt,null),React.createElement(De,{icon:"calendar-alt"},we(t?"Loading...":"Recent Donations","give")),!t&&React.createElement(st,{donations:e,perPage:3})):React.createElement(o.Fragment,null,React.createElement(De,{icon:"exclamation-triangle"},we("No Donations","give")))},bt=function(e){return{type:"SET_QUERYING",payload:{querying:e}}},yt=function(){var e;e=pt.dispatch,B()&&(e(bt(!0)),Qe.a.post(Z()+"give-api/v2/donor-dashboard/donations",{},{}).then((function(e){return e.data})).then((function(t){var n=t.status,c=t.body_response;if(200===n){var a=c[0],r=a.donations,o=a.count,i=a.revenue,l=a.average,s=a.currency;e(function(e){return{type:"SET_DONATIONS",payload:{donations:e}}}(r)),e(function(e){return{type:"SET_COUNT",payload:{count:e}}}(o)),e(function(e){return{type:"SET_REVENUE",payload:{revenue:e}}}(i)),e(function(e){return{type:"SET_AVERAGE",payload:{average:e}}}(l)),e(function(e){return{type:"SET_CURRENCY",payload:{currency:e}}}(s))}400===n&&e({type:"SET_ERROR",payload:{error:c.message}}),e(bt(!1))})).catch((function(){e(bt(!1))}))),window.giveDonorDashboard.utils.registerTab({label:we("Donation History","give"),icon:"calendar-alt",slug:"donation-history",content:mt,dashboardContent:gt})},zt=n(25),Ct=n.n(zt),xt=n(12),Mt=n.n(xt),Lt=(n(964),function(){return React.createElement("div",{className:"give-donor-dashboard-divider"})}),wt=n(9),Ht=n.n(wt);function Vt(e,t,n,c){return new(n||(n=Promise))((function(a,r){function o(e){try{l(c.next(e))}catch(e){r(e)}}function i(e){try{l(c.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,i)}l((c=c.apply(e,t||[])).next())}))}function St(e,t){var n,c,a,r,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function i(r){return function(i){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,c&&(a=2&r[0]?c.return:r[0]?c.throw||((a=c.return)&&a.call(c),0):c.next)&&!(a=a.call(c,r[1])).done)return a;switch(c=0,a&&(r=[2&r[0],a.value]),r[0]){case 0:case 1:a=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,c=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==r[0]&&2!==r[0])){o=0;continue}if(3===r[0]&&(!a||r[1]>a[0]&&r[1]<a[3])){o.label=r[1];break}if(6===r[0]&&o.label<a[1]){o.label=a[1],a=r;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(r);break}a[2]&&o.ops.pop(),o.trys.pop();continue}r=t.call(e,o)}catch(e){r=[6,e],c=0}finally{n=a=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,i])}}}Object.create;function Et(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var c,a,r=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(c=r.next()).done;)o.push(c.value)}catch(e){a={error:e}}finally{try{c&&!c.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}Object.create;var Nt=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function kt(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),c=Nt.get(n);c&&Object.defineProperty(e,"type",{value:c,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var c=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof c&&c.length>0?c:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var Ot=[".DS_Store","Thumbs.db"];function At(e){return(null!==e.target&&e.target.files?Pt(e.target.files):[]).map((function(e){return kt(e)}))}function _t(e,t){return Vt(this,void 0,void 0,(function(){var n;return St(this,(function(c){switch(c.label){case 0:return e.items?(n=Pt(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(Tt))]):[3,2];case 1:return[2,Rt(jt(c.sent()))];case 2:return[2,Rt(Pt(e.files).map((function(e){return kt(e)})))]}}))}))}function Rt(e){return e.filter((function(e){return-1===Ot.indexOf(e.name)}))}function Pt(e){for(var t=[],n=0;n<e.length;n++){var c=e[n];t.push(c)}return t}function Tt(e){if("function"!=typeof e.webkitGetAsEntry)return Dt(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Ft(t):Dt(e)}function jt(e){return e.reduce((function(e,t){return function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Et(arguments[t]));return e}(e,Array.isArray(t)?jt(t):[t])}),[])}function Dt(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=kt(t);return Promise.resolve(n)}function It(e){return Vt(this,void 0,void 0,(function(){return St(this,(function(t){return[2,e.isDirectory?Ft(e):Ut(e)]}))}))}function Ft(e){var t=e.createReader();return new Promise((function(e,n){var c=[];!function a(){var r=this;t.readEntries((function(t){return Vt(r,void 0,void 0,(function(){var r,o,i;return St(this,(function(l){switch(l.label){case 0:if(t.length)return[3,5];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Promise.all(c)];case 2:return r=l.sent(),e(r),[3,4];case 3:return o=l.sent(),n(o),[3,4];case 4:return[3,6];case 5:i=Promise.all(t.map(It)),c.push(i),a(),l.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function Ut(e){return Vt(this,void 0,void 0,(function(){return St(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var c=kt(n,e.fullPath);t(c)}),(function(e){n(e)}))}))]}))}))}var Bt=n(672),Zt=n.n(Bt);function Wt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],c=!0,a=!1,r=void 0;try{for(var o,i=e[Symbol.iterator]();!(c=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);c=!0);}catch(e){a=!0,r=e}finally{try{c||null==i.return||i.return()}finally{if(a)throw r}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $t(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $t(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var qt=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:"file-invalid-type",message:"File type must be ".concat(t)}},Gt=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," bytes")}},Kt=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," bytes")}},Yt={code:"too-many-files",message:"Too many files"};function Qt(e,t){var n="application/x-moz-file"===e.type||Zt()(e,t);return[n,n?null:qt(t)]}function Xt(e,t,n){if(Jt(e.size))if(Jt(t)&&Jt(n)){if(e.size>n)return[!1,Gt(n)];if(e.size<t)return[!1,Kt(t)]}else{if(Jt(t)&&e.size<t)return[!1,Kt(t)];if(Jt(n)&&e.size>n)return[!1,Gt(n)]}return[!0,null]}function Jt(e){return null!=e}function en(e){var t=e.files,n=e.accept,c=e.minSize,a=e.maxSize,r=e.multiple,o=e.maxFiles;return!(!r&&t.length>1||r&&o>=1&&t.length>o)&&t.every((function(e){var t=Wt(Qt(e,n),1)[0],r=Wt(Xt(e,c,a),1)[0];return t&&r}))}function tn(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function nn(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function cn(e){e.preventDefault()}function an(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function rn(e){return-1!==e.indexOf("Edge/")}function on(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return an(e)||rn(e)}function ln(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,c=new Array(n>1?n-1:0),a=1;a<n;a++)c[a-1]=arguments[a];return t.some((function(t){return!tn(e)&&t&&t.apply(void 0,[e].concat(c)),tn(e)}))}}function sn(e){return function(e){if(Array.isArray(e))return hn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||fn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function un(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],c=!0,a=!1,r=void 0;try{for(var o,i=e[Symbol.iterator]();!(c=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);c=!0);}catch(e){a=!0,r=e}finally{try{c||null==i.return||i.return()}finally{if(a)throw r}}return n}(e,t)||fn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fn(e,t){if(e){if("string"==typeof e)return hn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hn(e,t):void 0}}function hn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}function pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function dn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pn(Object(n),!0).forEach((function(t){mn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vn(e,t){if(null==e)return{};var n,c,a=function(e,t){if(null==e)return{};var n,c,a={},r=Object.keys(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var gn=Object(o.forwardRef)((function(e,t){var n=e.children,c=zn(vn(e,["children"])),a=c.open,r=vn(c,["open"]);return Object(o.useImperativeHandle)(t,(function(){return{open:a}}),[a]),i.a.createElement(o.Fragment,null,n(dn(dn({},r),{},{open:a})))}));gn.displayName="Dropzone";var bn={disabled:!1,getFilesFromEvent:function(e){return Vt(this,void 0,void 0,(function(){return St(this,(function(t){return[2,(n=e,n.dataTransfer&&e.dataTransfer?_t(e.dataTransfer,e.type):At(e))];var n}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null};gn.defaultProps=bn,gn.propTypes={children:s.a.func,accept:s.a.oneOfType([s.a.string,s.a.arrayOf(s.a.string)]),multiple:s.a.bool,preventDropOnDocument:s.a.bool,noClick:s.a.bool,noKeyboard:s.a.bool,noDrag:s.a.bool,noDragEventsBubbling:s.a.bool,minSize:s.a.number,maxSize:s.a.number,maxFiles:s.a.number,disabled:s.a.bool,getFilesFromEvent:s.a.func,onFileDialogCancel:s.a.func,onDragEnter:s.a.func,onDragLeave:s.a.func,onDragOver:s.a.func,onDrop:s.a.func,onDropAccepted:s.a.func,onDropRejected:s.a.func,validator:s.a.func};var yn={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function zn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=dn(dn({},bn),e),n=t.accept,c=t.disabled,a=t.getFilesFromEvent,r=t.maxSize,i=t.minSize,l=t.multiple,s=t.maxFiles,u=t.onDragEnter,f=t.onDragLeave,h=t.onDragOver,p=t.onDrop,d=t.onDropAccepted,m=t.onDropRejected,v=t.onFileDialogCancel,g=t.preventDropOnDocument,b=t.noClick,y=t.noKeyboard,z=t.noDrag,C=t.noDragEventsBubbling,x=t.validator,M=Object(o.useRef)(null),L=Object(o.useRef)(null),w=Object(o.useReducer)(Cn,yn),H=un(w,2),V=H[0],S=H[1],E=V.isFocused,N=V.isFileDialogActive,k=V.draggedFiles,O=Object(o.useCallback)((function(){L.current&&(S({type:"openDialog"}),L.current.value=null,L.current.click())}),[S]),A=function(){N&&setTimeout((function(){L.current&&(L.current.files.length||(S({type:"closeDialog"}),"function"==typeof v&&v()))}),300)};Object(o.useEffect)((function(){return window.addEventListener("focus",A,!1),function(){window.removeEventListener("focus",A,!1)}}),[L,N,v]);var _=Object(o.useCallback)((function(e){M.current&&M.current.isEqualNode(e.target)&&(32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),O()))}),[M,L]),R=Object(o.useCallback)((function(){S({type:"focus"})}),[]),P=Object(o.useCallback)((function(){S({type:"blur"})}),[]),T=Object(o.useCallback)((function(){b||(on()?setTimeout(O,0):O())}),[L,b]),j=Object(o.useRef)([]),D=function(e){M.current&&M.current.contains(e.target)||(e.preventDefault(),j.current=[])};Object(o.useEffect)((function(){return g&&(document.addEventListener("dragover",cn,!1),document.addEventListener("drop",D,!1)),function(){g&&(document.removeEventListener("dragover",cn),document.removeEventListener("drop",D))}}),[M,g]);var I=Object(o.useCallback)((function(e){e.preventDefault(),e.persist(),q(e),j.current=[].concat(sn(j.current),[e.target]),nn(e)&&Promise.resolve(a(e)).then((function(t){tn(e)&&!C||(S({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e))}))}),[a,u,C]),F=Object(o.useCallback)((function(e){if(e.preventDefault(),e.persist(),q(e),e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return nn(e)&&h&&h(e),!1}),[h,C]),U=Object(o.useCallback)((function(e){e.preventDefault(),e.persist(),q(e);var t=j.current.filter((function(e){return M.current&&M.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),j.current=t,t.length>0||(S({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),nn(e)&&f&&f(e))}),[M,f,C]),B=Object(o.useCallback)((function(e){e.preventDefault(),e.persist(),q(e),j.current=[],nn(e)&&Promise.resolve(a(e)).then((function(t){if(!tn(e)||C){var c=[],a=[];t.forEach((function(e){var t=un(Qt(e,n),2),o=t[0],l=t[1],s=un(Xt(e,i,r),2),u=s[0],f=s[1],h=x?x(e):null;if(o&&u&&!h)c.push(e);else{var p=[l,f];h&&(p=p.concat(h)),a.push({file:e,errors:p.filter((function(e){return e}))})}})),(!l&&c.length>1||l&&s>=1&&c.length>s)&&(c.forEach((function(e){a.push({file:e,errors:[Yt]})})),c.splice(0)),S({acceptedFiles:c,fileRejections:a,type:"setFiles"}),p&&p(c,a,e),a.length>0&&m&&m(a,e),c.length>0&&d&&d(c,e)}})),S({type:"reset"})}),[l,n,i,r,s,a,p,d,m,C]),Z=function(e){return c?null:e},W=function(e){return y?null:Z(e)},$=function(e){return z?null:Z(e)},q=function(e){C&&e.stopPropagation()},G=Object(o.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,a=e.onKeyDown,r=e.onFocus,o=e.onBlur,i=e.onClick,l=e.onDragEnter,s=e.onDragOver,u=e.onDragLeave,f=e.onDrop,h=vn(e,["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return dn(dn(mn({onKeyDown:W(ln(a,_)),onFocus:W(ln(r,R)),onBlur:W(ln(o,P)),onClick:Z(ln(i,T)),onDragEnter:$(ln(l,I)),onDragOver:$(ln(s,F)),onDragLeave:$(ln(u,U)),onDrop:$(ln(f,B))},n,M),c||y?{}:{tabIndex:0}),h)}}),[M,_,R,P,T,I,F,U,B,y,z,c]),K=Object(o.useCallback)((function(e){e.stopPropagation()}),[]),Y=Object(o.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,c=void 0===t?"ref":t,a=e.onChange,r=e.onClick,o=vn(e,["refKey","onChange","onClick"]),i=mn({accept:n,multiple:l,type:"file",style:{display:"none"},onChange:Z(ln(a,B)),onClick:Z(ln(r,K)),autoComplete:"off",tabIndex:-1},c,L);return dn(dn({},i),o)}}),[L,n,l,B,c]),Q=k.length,X=Q>0&&en({files:k,accept:n,minSize:i,maxSize:r,multiple:l,maxFiles:s}),J=Q>0&&!X;return dn(dn({},V),{},{isDragAccept:X,isDragReject:J,isFocused:E&&!c,getRootProps:G,getInputProps:Y,rootRef:M,inputRef:L,open:Z(O)})}function Cn(e,t){switch(t.type){case"focus":return dn(dn({},e),{},{isFocused:!0});case"blur":return dn(dn({},e),{},{isFocused:!1});case"openDialog":return dn(dn({},e),{},{isFileDialogActive:!0});case"closeDialog":return dn(dn({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,c=t.draggedFiles;return dn(dn({},e),{},{draggedFiles:c,isDragActive:n});case"setFiles":return dn(dn({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return dn(dn({},e),{},{isFileDialogActive:!1,isDragActive:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]});default:return e}}n(965);var xn=function(e){var t=e.url,n=e.file,c=e.onChange,a=zn({onDrop:Object(o.useCallback)((function(e){c(e[0])}),[]),accept:"image/jpeg, image/png, image/gif",maxFiles:1}),r=a.getRootProps,i=a.getInputProps,l=a.isDragActive,s=Object(o.useState)(t),u=Fe()(s,2),f=u[0],h=u[1];return Object(o.useEffect)((function(){if(n){var e=new window.FileReader;e.readAsDataURL(n),e.onloadend=function(){h(e.result)}}}),[n]),React.createElement("div",{className:"give-donor-dashboard-avatar-control"},React.createElement("label",{className:"give-donor-dashboard-avatar-control__label"},"Avatar"),React.createElement("div",Ht()({className:"give-donor-dashboard-avatar-control__input"},r()),React.createElement("input",i()),React.createElement("div",{className:"give-donor-dashboard-avatar-control__preview"},React.createElement("img",{src:f})),React.createElement("div",{className:"give-donor-dashboard-avatar-control__dropzone".concat(l?" give-donor-dashboard-avatar-control__dropzone--highlight":"")},React.createElement("div",{className:"give-donor-dashboard-avatar-control__instructions"},l?React.createElement("p",null,"Drop the image here..."):React.createElement("p",null,"Drag image here to set ",React.createElement("br",null),"avatar or ",React.createElement("span",{className:"give-donor-dashboard-avatar-control__select-link"},"find image"))))))},Mn=(n(966),function(e){var t=e.children;return React.createElement("div",{className:"give-donor-dashboard-field-row"},t)}),Ln=n(380);n(967);function wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(n),!0).forEach((function(t){T()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vn=function(e){var t=e.label,n=e.value,c=e.isLoading,a=e.onChange,r=e.options,o=e.placeholder,i=e.width,l=e.isClearable;if(r&&r.length<2)return null;var s=ot(),u=$(t),f=null!==r?r.filter((function(e){return e.value===n})):null,h={control:function(e){return Hn(Hn({},e),{},{fontSize:"14px",fontFamily:"Montserrat, Arial, Helvetica, sans-serif",fontWeight:"500",color:"#828382",lineHeight:"1.2",boxSizing:"border-box",marginTop:"8px",border:"1px solid #b8b8b8",borderRadius:"4px"})},input:function(e){return Hn(Hn({},e),{},{fontSize:"14px",fontFamily:"Montserrat, Arial, Helvetica, sans-serif",fontWeight:"500",color:"#828382",lineHeight:"1.2"})},valueContainer:function(e){return Hn(Hn({},e),{},{padding:"7px 12px"})},clearIndicator:function(e){return Hn(Hn({},e),{},{padding:"0px"})},dropdownIndicator:function(e){return Hn(Hn({},e),{},{padding:"0 8px 0 0"})},option:function(e,t){return Hn(Hn({},e),{},{fontSize:"14px",fontFamily:"Montserrat, Arial, Helvetica, sans-serif",fontWeight:"500",color:t.isSelected?"#fff":"#333",lineHeight:"1.2"})},indicatorSeparator:function(){return{display:"none"}}};return React.createElement("div",{className:"give-donor-dashboard-select-control",style:i?{maxWidth:i}:null},t&&React.createElement("label",{className:"give-donor-dashboard-select-control__label",htmlFor:u},t),React.createElement(Ln.a,{placeholder:o,isLoading:c,inputId:u,value:f,onChange:function(e){return a(e?e.value:"")},options:r,styles:h,maxMenuHeight:"200px",isDisabled:c,isClearable:l,theme:function(e){return Hn(Hn({},e),{},{colors:Hn(Hn({},e.colors),{},{primary:s})})}}))};Vn.propTypes={label:s.a.string,value:s.a.string.isRequired,onChange:s.a.func,options:s.a.array.isRequired,placeholder:s.a.string,width:s.a.string,isClearable:s.a.bool},Vn.defaultProps={label:null,value:null,onChange:null,options:null,placeholder:we("Select...","give"),width:null,isClearable:!1};var Sn=Vn,En=(n(968),function(e){var t=e.label,n=e.value,c=e.onChange,a=e.icon,r=e.type,o=$(t);return React.createElement("div",{className:"give-donor-dashboard-text-control"},t&&React.createElement("label",{className:"give-donor-dashboard-text-control__label",htmlFor:o},t),React.createElement("div",{className:"give-donor-dashboard-text-control__input"},a&&React.createElement(Te,{icon:a}),React.createElement("input",{id:o,type:r,value:n,onChange:function(e){return c(e.target.value)}})))});En.defaultProps={label:null,value:"",onChange:null,icon:null,type:"text"};var Nn=En,kn=(n(969),function(e){var t=e.label,n=e.description,c=e.options,a=e.value,r=e.onChange,o=c.map((function(e,t){var n=W(e.value);return React.createElement("div",{className:"give-donor-dashboard-radio-control__option",key:t},React.createElement("input",{type:"radio",name:"format",id:n,value:e.value,checked:e.value===a,onChange:function(e){return r(e.target.value)}}),React.createElement("label",{htmlFor:n},e.label))}));return React.createElement("fieldset",{className:"give-donor-dashboard-radio-control"},t&&React.createElement("legend",{className:"give-donor-dashboard-radio-control__legend"},t),n&&React.createElement("div",{className:"give-donor-dashboard-radio-control__description"},n),o)}),On=function(){var e=Ct()(Mt.a.mark((function e(t){var n,c,a,r,o,i,l,s,u,f,h,p,d,m,v;return Mt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.titlePrefix,c=t.firstName,a=t.lastName,r=t.company,o=t.primaryEmail,i=t.additionalEmails,l=t.primaryAddress,s=t.additionalAddresses,u=t.avatarFile,f=t.isAnonymous,h=t.id,p=Y.getState(),d=p.profile,m=d.avatarId,!u){e.next=7;break}return e.next=6,An(u);case 6:m=e.sent;case 7:return v=Y.dispatch,e.abrupt("return",Qe.a.post(Z()+"give-api/v2/donor-dashboard/profile",{data:JSON.stringify({titlePrefix:n,firstName:c,lastName:a,company:r,primaryEmail:o,additionalEmails:i,primaryAddress:l,additionalAddresses:s,avatarId:m,isAnonymous:f}),id:h},{}).then((function(e){return e.data})).then((function(e){return v(I(e.profile)),e})));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),An=function(e){var t=new window.FormData;return t.append("file",e),Qe.a.post(Z()+"wp/v2/media",t,{headers:{"X-WP-Nonce":U("apiNonce")}}).then((function(e){return e.data})).then((function(e){return e.id}))},_n=function(e){return Qe.a.post(Z()+"give-api/v2/donor-dashboard/location",{countryCode:e},{}).then((function(e){return e.data})).then((function(e){return e.states.map((function(e){return{value:e.value,label:Rn(e.label)}}))}))},Rn=function(e){var t=document.createElement("div");return t.innerHTML=e,t.innerText},Pn=function(e){var t=e.primaryEmail,n=e.additionalEmails,c=e.onChangePrimaryEmail,a=e.onChangeAdditionalEmails,r=function(e,t){var c=n.concat();c[t]=e,a(c)},i=function(e){c(e)},l=function(){var e=Ct()(Mt.a.mark((function e(n,c){var a;return Mt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=t,i(n),r(a,c);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),s=n.map((function(e,t){return React.createElement(Mn,{key:t},React.createElement(Nn,{label:0===t?we("Additional Emails","give"):null,value:e,onChange:function(e){return r(e,t)},icon:"envelope"}),React.createElement("div",{className:"give-donor-dashboard__email-controls"},React.createElement("div",{className:"give-donor-dashboard__make-primary-email",onClick:function(){return l(e,t)}},we("Make Primary","give")),"|",React.createElement("div",{className:"give-donor-dashboard__delete-email",onClick:function(){return e=t,c=n.filter((function(t,n){return n!==e})),void a(c);var e,c}},we("Delete","give"))))}));return React.createElement(o.Fragment,null,React.createElement(Nn,{label:we("Primary Email","give"),value:t,onChange:function(e){return i(e)},icon:"envelope"}),s,React.createElement(at,{onClick:function(){return e="",t=n.concat(e),void a(t);var e,t},icon:"plus"},we("Add Email","give")))},Tn=function(e){var t=e.address,n=e.onChange;Object(o.useEffect)((function(){u(t.country),d(t.line1),b(t.line2),x(t.city),H(t.state),k(t.zip)}),[t]);var c=S(),a=O((function(e){return e.countries})),r=O((function(e){return e.states})),i=Object(o.useState)(t.country),l=Fe()(i,2),s=l[0],u=l[1],f=Object(o.useState)(t.line1),h=Fe()(f,2),p=h[0],d=h[1],m=Object(o.useState)(t.line2),v=Fe()(m,2),g=v[0],b=v[1],y=Object(o.useState)(t.city),z=Fe()(y,2),C=z[0],x=z[1],M=Object(o.useState)(t.state),L=Fe()(M,2),w=L[0],H=L[1],V=Object(o.useState)(t.zip),E=Fe()(V,2),N=E[0],k=E[1],A=function(){var e=Ct()(Mt.a.mark((function e(t){var n;return Mt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=5;break}return e.next=3,_n(t);case 3:n=e.sent,c({type:"SET_STATES",payload:{states:n}});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(o.useEffect)((function(){A(s)}),[s]),Object(o.useEffect)((function(){n({country:s,line1:p,line2:g,state:w,city:C,zip:N})}),[s,p,g,w,C,N]),React.createElement(o.Fragment,null,React.createElement(Sn,{label:we("Country","give"),value:s,onChange:function(e){return u(e)},options:a,width:null}),React.createElement(Nn,{label:we("Address 1","give"),value:p,onChange:function(e){return d(e)}}),React.createElement(Nn,{label:we("Address 2","give"),value:g,onChange:function(e){return b(e)}}),React.createElement(Nn,{label:we("City","give"),value:C,onChange:function(e){return x(e)}}),React.createElement(Mn,null,React.createElement(Sn,{label:we("State","give"),value:w,onChange:function(e){return H(e)},options:r}),React.createElement(Nn,{label:we("Zip","give"),value:N,onChange:function(e){return k(e)}})))},jn=function(e){var t=e.primaryAddress,n=e.additionalAddresses,c=e.onChangePrimaryAddress,a=e.onChangeAdditionalAddresses,r=function(e,t){var c=n.concat();c[t]=e,a(c)},i=function(e){c(e)},l=function(){var e=Ct()(Mt.a.mark((function e(n,c){var a;return Mt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=Object.assign({},t),i(n),r(a,c);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),s=n?n.map((function(e,t){return React.createElement(o.Fragment,{key:t},React.createElement(Mn,null,React.createElement(De,null,we("Additional Address","give")),React.createElement("div",{className:"give-donor-dashboard__address-controls"},React.createElement("div",{className:"give-donor-dashboard__make-primary-address",onClick:function(){return l(e,t)}},we("Make Primary","give")),"|",React.createElement("div",{className:"give-donor-dashboard__delete-address",onClick:function(){return e=t,c=n.filter((function(t,n){return n!==e})),void a(c);var e,c}},we("Delete","give")))),React.createElement(Lt,null),React.createElement(Tn,{address:e,onChange:function(e){return r(e,t)}}))})):null;return t?React.createElement(o.Fragment,null,React.createElement(De,null,we("Primary Address","give")),React.createElement(Lt,null),React.createElement(Tn,{address:t,onChange:function(e){return i(e)}}),s,React.createElement(at,{onClick:function(){return e={},t=n.concat(e),void a(t);var e,t},icon:"plus"},we("Add Address","give"))):React.createElement("div",{className:"give-donor-dashboard__add-primary-address"},React.createElement(De,null,we("Looks like you have not set up an address!","give")),React.createElement(at,{onClick:function(){return i({})},icon:"plus"},we("Add Address","give")))},Dn=(n(970),function(){var e=O((function(e){return e.id})),t=O((function(e){return e.profile})),n=Object(o.useState)(!1),c=Fe()(n,2),a=c[0],r=c[1],i=Object(o.useState)(!1),l=Fe()(i,2),s=l[0],u=l[1];Object(o.useEffect)((function(){b(null),x(t.avatarUrl)}),[t]);var f=Object(o.useState)(t.titlePrefix),h=Fe()(f,2),p=h[0],d=h[1],m=Object(o.useState)(null),v=Fe()(m,2),g=v[0],b=v[1],y=Object(o.useState)(t.avatarUrl),z=Fe()(y,2),C=z[0],x=z[1],M=Object(o.useState)(t.firstName),L=Fe()(M,2),w=L[0],H=L[1],V=Object(o.useState)(t.lastName),S=Fe()(V,2),E=S[0],N=S[1],k=Object(o.useState)(t.company),A=Fe()(k,2),_=A[0],R=A[1],P=Object(o.useState)(t.emails?t.emails.primary:""),T=Fe()(P,2),j=T[0],D=T[1],I=t.emails?Object.keys(t.emails).reduce((function(e,n){return"primary"!==n&&e.push(t.emails[n]),e}),[]):[],F=Object(o.useState)(I),U=Fe()(F,2),B=U[0],Z=U[1],W=Object(o.useState)(t.addresses&&t.addresses.billing?t.addresses.billing[0]:null),$=Fe()(W,2),q=$[0],G=$[1],K=t.addresses&&t.addresses.billing?Object.values(t.addresses.billing).reduce((function(e,t,n){return 0!==n&&e.push(t),e}),[]):[],Y=Object(o.useState)(K),Q=Fe()(Y,2),X=Q[0],J=Q[1],ee=Object(o.useState)(t.isAnonymous),te=Fe()(ee,2),ne=te[0],ce=te[1],ae=[{value:"0",label:we("Public - show my donations publicly","give")},{value:"1",label:we("Private - only organization admins can view my info")}];Object(o.useEffect)((function(){u(!1)}),[p,w,E,_,j,B,q,X,g,ne]);var re=function(){var t=Ct()(Mt.a.mark((function t(){return Mt.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r(!0),t.next=3,On({titlePrefix:p,firstName:w,lastName:E,company:_,primaryEmail:j,additionalEmails:B,primaryAddress:q,additionalAddresses:X,avatarFile:g,isAnonymous:ne,id:e});case 3:u(!0),r(!1);case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return React.createElement(o.Fragment,null,React.createElement(De,null,we("Profile Information","give")),React.createElement(Lt,null),React.createElement(xn,{url:C,file:g,onChange:function(e){return b(e)}}),React.createElement(Mn,null,React.createElement(Sn,{label:we("Prefix","give"),value:p,onChange:function(e){return d(e)},options:[{value:"Mr.",label:"Mr."},{value:"Ms.",label:"Ms."},{value:"Mrs.",label:"Mrs."}],placeholder:"--",width:"120px",isClearable:!0}),React.createElement(Nn,{label:we("First Name","give"),value:w,onChange:function(e){return H(e)},icon:"user"}),React.createElement(Nn,{label:we("Last Name","give"),value:E,onChange:function(e){return N(e)}})),React.createElement(Nn,{label:we("Company","give"),value:_,onChange:function(e){return R(e)}}),React.createElement(Pn,{primaryEmail:j,additionalEmails:B,onChangePrimaryEmail:function(e){return D(e)},onChangeAdditionalEmails:function(e){return Z(e)}}),React.createElement(jn,{primaryAddress:q,additionalAddresses:X,onChangePrimaryAddress:function(e){return G(e)},onChangeAdditionalAddresses:function(e){return J(e)}}),React.createElement(De,null,we("Additional Info","give")),React.createElement(Lt,null),React.createElement(kn,{label:we("Anonymous Giving"),description:we("This will prevent your avatar, first name, donation comments, and other information from appearing publicly on this organization’s website.","give"),options:ae,onChange:function(e){return ce(e)},value:ne}),React.createElement(at,{onClick:function(){return re()}},s?React.createElement(o.Fragment,null,we("Updated","give")," ",React.createElement(Te,{icon:"check",fixedWidth:!0})):React.createElement(o.Fragment,null,we("Update Profile","give")," ",React.createElement(Te,{className:a?"give-donor-dashboard__edit-profile-spinner":"",icon:a?"spinner":"save",fixedWidth:!0}))))}),In=function(e){var t=e.subscription;if(void 0===t)return null;var n,c=t.receipt.map((function(e,t){var c=e.lineItems.map((function(e,t){var n="object"===D()(e.value)&&e.value.color?React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-donation-receipt__status-indicator",style:{background:e.value.color}}),e.value.label):e.value;return React.createElement("div",{className:"give-donor-dashboard-donation-receipt__row".concat(e.class.includes("total")?" give-donor-dashboard-donation-receipt__row--footer":""),key:t},React.createElement("div",{className:"give-donor-dashboard-donation-receipt__detail"},e.icon&&React.createElement(Te,{icon:e.icon,fixedWidth:!0})," ",e.label),React.createElement("div",{className:"give-donor-dashboard-donation-receipt__value"},n))}));return"Donation"===e.id?(n=React.createElement("div",{className:"give-donor-dashboard-donation-receipt__table",key:t},c),null):React.createElement("div",{className:"give-donor-dashboard-donation-receipt__table",key:t},c)}));return c.push(n),c},Fn=n(673),Un=n.n(Fn),Bn=(n(971),function(e){var t=e.label,n=e.onChange,c=e.value,a=e.placeholder,r=e.currency,o=e.min,i=e.max,l=e.width,s=$(t),u=W(t);return React.createElement("div",{className:"give-donor-dashboard-currency-control",style:l?{maxWidth:l}:null},t&&React.createElement("label",{className:"give-donor-dashboard-currency-control__label",htmlFor:s},t),React.createElement("div",{className:"give-donor-dashboard-currency-control__input"},React.createElement(Un.a,{id:s,name:u,placeholder:a,value:c,onValueChange:function(e){return isNaN(e)?n(o):n(e)},onBlur:function(){return function(){switch(!0){case i&&c>i:n(i.toFixed(r.numberDecimals));break;case o&&c<o:n(o.toFixed(r.numberDecimals))}}()},allowNegativeValue:!1,decimalsLimit:r.numberDecimals,decimalScale:r.numberDecimals,prefix:"before"===r.currencyPosition?r.symbol:"",suffix:"after"===r.currencyPosition?r.symbol:"",decimalSeparator:r.decimalSeparator,groupSeparator:r.thousandsSeparator})))});Bn.propTypes={label:s.a.string,value:s.a.string.isRequired,onChange:s.a.func,placeholder:s.a.string,width:s.a.string,currency:s.a.object.isRequired},Bn.defaultProps={label:null,value:null,onChange:null,placeholder:we("Enter amount...","give"),width:null,currency:{code:"USD",currencyPosition:"before",decimalSeparator:".",numberDecimals:2,symbol:"$",thousandsSeparator:","}};var Zn=Bn,Wn=function(e){var t=e.form,n=e.payment,c=e.onChange,a=e.value,r=Object(o.useState)(null),i=Fe()(r,2),l=i[0],s=i[1],u=Object(o.useState)(null),f=Fe()(u,2),h=f[0],p=f[1],d=Object(o.useState)(null),m=Fe()(d,2),v=m[0],g=m[1],b=Object(o.useState)([]),y=Fe()(b,2),z=y[0],C=y[1];return Object(o.useEffect)((function(){var e=t.amounts.map((function(e){return{value:e.raw,label:e.formatted}}));t.custom_amount&&e.push({value:"custom_amount",label:we("Custom Amount","give")}),C(e)}),[]),Object(o.useEffect)((function(){if(z.length){var e=z.map((function(e){return parseFloat(e.value)}));if(a){var t=parseFloat(a);if(e.includes(t)){var c=z.filter((function(e){return parseFloat(e.value)===t}))[0];p(c.value)}else p("custom_amount"),s(t.toFixed(n.currency.numberDecimals))}}}),[z]),Object(o.useEffect)((function(){h&&("custom_amount"!==h?(c(h),g(h)):v&&s(parseFloat(v).toFixed(n.currency.numberDecimals)))}),[h]),Object(o.useEffect)((function(){if(l){var e=parseFloat(l);c(e)}}),[l]),React.createElement("div",{className:"give-donor-dashboard-amount-inputs"},React.createElement(Mn,null,React.createElement("div",null,React.createElement(Sn,{label:"Subscription Amount",options:z,value:h,onChange:function(e){return p(e)}})),React.createElement("div",null,"custom_amount"===h&&React.createElement(Zn,{label:"Custom Amount",min:t.custom_amount.minimum?parseFloat(t.custom_amount.minimum):null,max:t.custom_amount.maximum?parseFloat(t.custom_amount.maximum):null,value:l,onChange:function(e){return s(e)},currency:n.currency}))))},$n=n(406),qn="https://js.stripe.com/v3",Gn=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,Kn="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",Yn=null,Qn=function(e){return null!==Yn?Yn:Yn=new Promise((function(t,n){if("undefined"!=typeof window)if(window.Stripe&&e&&console.warn(Kn),window.Stripe)t(window.Stripe);else try{var c=function(){for(var e=document.querySelectorAll('script[src^="'.concat(qn,'"]')),t=0;t<e.length;t++){var n=e[t];if(Gn.test(n.src))return n}return null}();c&&e?console.warn(Kn):c||(c=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(qn).concat(t);var c=document.head||document.body;if(!c)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return c.appendChild(n),n}(e)),c.addEventListener("load",(function(){window.Stripe?t(window.Stripe):n(new Error("Stripe.js not available"))})),c.addEventListener("error",(function(){n(new Error("Failed to load Stripe.js"))}))}catch(e){return void n(e)}else t(null)}))},Xn=function(e,t,n){if(null===e)return null;var c=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.13.1",startTime:t})}(c,n),c},Jn=Promise.resolve().then((function(){return Qn(null)})),ec=!1;Jn.catch((function(e){ec||console.warn(e)}));n(972);var tc=function(e){var t=e.label,n=e.onChange,c=e.value,a=Object($n.useStripe)(),r=Object($n.useElements)(),i=Object(o.useState)(!1),l=Fe()(i,2),s=l[0],u=l[1],f=Object(o.useState)(c),h=Fe()(f,2),p=h[0],d=h[1];Object(o.useEffect)((function(){p&&n({give_stripe_payment_method:p})}),[p]);var m=function(){var e=Ct()(Mt.a.mark((function e(){var t,n,c,o;return Mt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u(!1),a&&r){e.next=3;break}return e.abrupt("return");case 3:return t=r.getElement($n.CardElement),e.next=6,a.createPaymentMethod({type:"card",card:t});case 6:n=e.sent,c=n.error,o=n.paymentMethod,c||d(o.id);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return React.createElement("div",{className:"give-donor-dashboard-stripe-card-control"},React.createElement("label",{className:"give-donor-dashboard-stripe-card-control__label"},t),React.createElement("div",{className:s?"give-donor-dashboard-stripe-card-control__input give-donor-dashboard-stripe-card-control__input--focused":"give-donor-dashboard-stripe-card-control__input"},React.createElement($n.CardElement,{style:{base:{fontFamily:"Montserrat"}},onFocus:function(){return u(!0)},onBlur:function(){return m()}})))},nc=function(e){var t=e.label,n=e.onChange,c=e.value,a=Object(o.useState)(null),r=Fe()(a,2),i=r[0],l=r[1];Object(o.useEffect)((function(){var e=window.give_stripe_vars.publishable_key;e&&l(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];ec=!0;var c=Date.now();return Jn.then((function(e){return Xn(e,t,c)}))}(e))}),[]);return React.createElement($n.Elements,{stripe:i,fonts:[{src:"url(https://fonts.googleapis.com/css2?family=Montserrat:wght@500)",family:"Montserrat"}]},React.createElement(tc,{label:t,onChange:function(e){return n(e)},value:c}))},cc=/(\d{1,4})/g,ac=[{displayName:"Visa",type:"visa",format:cc,startPattern:/^4/,gaps:[4,8,12],lengths:[16,18,19],code:{name:"CVV",length:3}},{displayName:"Mastercard",type:"mastercard",format:cc,startPattern:/^(5[1-5]|677189)|^(222[1-9]|2[3-6]\d{2}|27[0-1]\d|2720)/,gaps:[4,8,12],lengths:[16],code:{name:"CVC",length:3}},{displayName:"American Express",type:"amex",format:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,startPattern:/^3[47]/,gaps:[4,10],lengths:[15],code:{name:"CID",length:4}},{displayName:"Diners Club",type:"dinersclub",format:cc,startPattern:/^(36|38|30[0-5])/,gaps:[4,10],lengths:[14,16,19],code:{name:"CVV",length:3}},{displayName:"Discover",type:"discover",format:cc,startPattern:/^(6011|65|64[4-9]|622)/,gaps:[4,8,12],lengths:[16,19],code:{name:"CID",length:3}},{displayName:"JCB",type:"jcb",format:cc,startPattern:/^35/,gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVV",length:3}},{displayName:"UnionPay",type:"unionpay",format:cc,startPattern:/^62/,gaps:[4,8,12],lengths:[14,15,16,17,18,19],code:{name:"CVN",length:3}},{displayName:"Maestro",type:"maestro",format:cc,startPattern:/^(5018|5020|5038|6304|6703|6708|6759|676[1-3])/,gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:"CVC",length:3}},{displayName:"Elo",type:"elo",format:cc,startPattern:/^(4011(78|79)|43(1274|8935)|45(1416|7393|763(1|2))|50(4175|6699|67[0-7][0-9]|9000)|627780|63(6297|6368)|650(03([^4])|04([0-9])|05(0|1)|4(0[5-9]|3[0-9]|8[5-9]|9[0-9])|5([0-2][0-9]|3[0-8])|9([2-6][0-9]|7[0-8])|541|700|720|901)|651652|655000|655021)/,gaps:[4,8,12],lengths:[16],code:{name:"CVE",length:3}},{displayName:"Hipercard",type:"hipercard",format:cc,startPattern:/^(384100|384140|384160|606282|637095|637568|60(?!11))/,gaps:[4,8,12],lengths:[16],code:{name:"CVC",length:3}}],rc=function(e){return ac.filter((function(t){return t.startPattern.test(e)}))[0]},oc=Object.freeze({DEFAULT_CVC_LENGTH:3,DEFAULT_ZIP_LENGTH:5,DEFAULT_CARD_FORMAT:cc,CARD_TYPES:ac,getCardTypeByValue:rc,getCardTypeByType:function(e){return ac.filter((function(t){return t.type===e}))[0]}}),ic=/(0[1-9]|1[0-2])/,lc="Expiry month must be between 01 and 12",sc=function(e){return e.split("").reverse().map((function(e){return parseInt(e,10)})).map((function(e,t){return t%2?2*e:e})).map((function(e){return e>9?e%10+1:e})).reduce((function(e,t){return e+t}))%10==0},uc=Object.freeze({EMPTY_CARD_NUMBER:"Enter a card number",EMPTY_EXPIRY_DATE:"Enter an expiry date",EMPTY_CVC:"Enter a CVC",EMPTY_ZIP:"Enter a ZIP code",INVALID_CARD_NUMBER:"Card number is invalid",INVALID_EXPIRY_DATE:"Expiry date is invalid",INVALID_CVC:"CVC is invalid",MONTH_OUT_OF_RANGE:lc,YEAR_OUT_OF_RANGE:"Expiry year cannot be in the past",DATE_OUT_OF_RANGE:"Expiry date cannot be in the past",hasCardNumberReachedMaxLength:function(e){var t=rc(e);return t&&e.length>=t.lengths[t.lengths.length-1]},isNumeric:function(e){return/^\d*$/.test(e.key)},validateLuhn:sc,getCardNumberError:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=n.errorMessages,a=void 0===c?{}:c;if(!e)return a.emptyCardNumber||"Enter a card number";var r=e.replace(/\s/g,""),o=rc(r);if(o&&o.lengths){var i=o.lengths.includes(r.length);if(i){var l=sc(r);if(l)return t?t({cardNumber:r,cardType:o,errorMessages:a}):void 0}}return a.invalidCardNumber||"Card number is invalid"},getExpiryDateError:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=n.errorMessages,a=void 0===c?{}:c;if(!e)return a.emptyExpiryDate||"Enter an expiry date";var r=e.replace(" / ","").replace("/","");if(4===r.length){var o=r.slice(0,2),i="20".concat(r.slice(2,4));return ic.test(o)?parseInt(i)<(new Date).getFullYear()?a.yearOutOfRange||"Expiry year cannot be in the past":parseInt(i)===(new Date).getFullYear()&&parseInt(o)<(new Date).getMonth()+1?a.dateOutOfRange||"Expiry date cannot be in the past":t?t({expiryDate:{month:o,year:i},errorMessages:a}):void 0:a.monthOutOfRange||lc}return a.invalidExpiryDate||"Expiry date is invalid"},getCVCError:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=n.cardType,a=n.errorMessages,r=void 0===a?{}:a;return e?e.length<3||c&&e.length!==c.code.length?r.invalidCVC||"CVC is invalid":t?t({cvc:e,cardType:c,errorMessages:r}):void 0:r.emptyCVC||"Enter a CVC"},getZIPError:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errorMessages,c=void 0===n?{}:n;if(!e)return c.emptyZIP||"Enter a ZIP code"}});function fc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hc(){return(hc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e}).apply(this,arguments)}function pc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},c=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(c=c.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),c.forEach((function(t){fc(e,t,n[t])}))}return e}function dc(e,t){if(null==e)return{};var n,c,a=function(e,t){if(null==e)return{};var n,c,a={},r=Object.keys(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function mc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function vc(e,t){return bc(e)||function(e,t){var n=[],c=!0,a=!1,r=void 0;try{for(var o,i=e[Symbol.iterator]();!(c=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);c=!0);}catch(e){a=!0,r=e}finally{try{c||null==i.return||i.return()}finally{if(a)throw r}}return n}(e,t)||yc()}function gc(e){return bc(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||yc()}function bc(e){if(Array.isArray(e))return e}function yc(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}var zc={cardTypes:oc,formatter:Object.freeze({formatCardNumber:function(e){var t=rc(e);if(!t)return(e.match(/\d+/g)||[]).join("");var n=t.format;if(n&&n.global)return(e.match(n)||[]).join(" ");if(n){var c=n.exec(e.split(" ").join(""));if(c)return c.splice(1,3).filter((function(e){return e})).join(" ")}return e},formatExpiry:function(e){var t=e.nativeEvent&&e.nativeEvent.data,n=e.target.value.split(" / ").join("/");if(!n)return null;var c=n;if(/^[2-9]$/.test(c)&&(c="0".concat(c)),2===n.length&&+n>12){var a=gc(n.split("")),r=a[0],o=a.slice(1);c="0".concat(r,"/").concat(o.join(""))}if(/^1[/-]$/.test(c))return"01 / ";if(1===(c=c.match(/(\d{1,2})/g)||[]).length){if(!t&&n.includes("/"))return c[0];if(/\d{2}/.test(c))return"".concat(c[0]," / ")}if(c.length>2){var i=vc(c.join("").match(/^(\d{2}).*(\d{2})$/)||[],3),l=i[1],s=void 0===l?null:l,u=i[2];return[s,void 0===u?null:u].join(" / ")}return c.join(" / ")}}),validator:uc,BACKSPACE_KEY_CODE:"Backspace",ENTER_KEY_CODE:"Enter",isHighlighted:function(){return"Range"===(window.getSelection()||{type:void 0}).type}};var Cc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoFocus,n=void 0===t||t,c=e.errorMessages,a=e.onBlur,r=e.onChange,o=e.onError,l=e.onTouch,s=e.cardNumberValidator,u=e.cvcValidator,f=e.expiryValidator,h=i.a.useRef(),p=i.a.useRef(),d=i.a.useRef(),m=i.a.useRef(),v=i.a.useState({cardNumber:!1,expiryDate:!1,cvc:!1,zip:!1}),g=vc(v,2),b=g[0],y=g[1],z=i.a.useState(!1),C=vc(z,2),x=C[0],M=C[1],L=i.a.useState({cardNumber:void 0,expiryDate:void 0,cvc:void 0,zip:void 0}),w=vc(L,2),H=w[0],V=w[1],S=i.a.useState(),E=vc(S,2),N=E[0],k=E[1],O=i.a.useState(),A=vc(O,2),_=A[0],R=A[1],P=i.a.useState(),T=vc(P,2),j=T[0],D=T[1],I=i.a.useCallback((function(e,t){V((function(n){if(n[e]===t)return n;var c=t,a=pc({},n,fc({},e,t));return t?k(t):(c=Object.values(a).find(Boolean),k(c)),o&&o(c,a),a}))}),[]),F=i.a.useCallback((function(e,t){requestAnimationFrame((function(){"INPUT"!==document.activeElement.tagName?M(!0):!1===t&&M(!1)})),y((function(n){if(n[e]===t)return n;var c=pc({},n,fc({},e,t));return l&&l(fc({},e,t),c),c}))}),[]),U=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onBlur&&e.onBlur(t),a&&a(t),D(void 0),F("cardNumber",!0)}}),[a,F]),B=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var a=(t.target.value||"").replace(/\s/g,""),o=h.current.selectionStart,i=zc.cardTypes.getCardTypeByValue(a);R(i),F("cardNumber",!1),h.current.value=zc.formatter.formatCardNumber(a),e.onChange&&e.onChange(t),r&&r(t),requestAnimationFrame((function(){document.activeElement===h.current&&(" "===h.current.value[o-1]&&(o+=1),h.current.setSelectionRange(o,o))}));var l=zc.validator.getCardNumberError(a,s,{errorMessages:c});!l&&n&&p.current&&p.current.focus(),I("cardNumber",l),e.onError&&e.onError(l)}}),[n,s,c,r,I,F]),Z=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onFocus&&e.onFocus(t),D("cardNumber")}}),[]),W=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=(t.target.value||"").replace(/\s/g,"");e.onKeyPress&&e.onKeyPress(t),t.key!==zc.ENTER_KEY_CODE&&(zc.validator.isNumeric(t)||t.preventDefault(),zc.validator.hasCardNumberReachedMaxLength(n)&&t.preventDefault())}}),[]),$=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=dc(e,["refKey"]);return pc(fc({"aria-label":"Card number",autoComplete:"cc-number",id:"cardNumber",name:"cardNumber",placeholder:"Card number",type:"tel"},t||"ref",h),n,{onBlur:U(n),onChange:B(n),onFocus:Z(n),onKeyPress:W(n)})}),[U,B,Z,W]),q=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onBlur&&e.onBlur(t),a&&a(t),D(void 0),F("expiryDate",!0)}}),[a,F]),G=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){F("expiryDate",!1),p.current.value=zc.formatter.formatExpiry(t),e.onChange&&e.onChange(t),r&&r(t);var a=zc.validator.getExpiryDateError(p.current.value,f,{errorMessages:c});!a&&n&&d.current&&d.current.focus(),I("expiryDate",a),e.onError&&e.onError(a)}}),[n,c,f,r,I,F]),K=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onFocus&&e.onFocus(t),D("expiryDate")}}),[]),Y=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onKeyDown&&e.onKeyDown(t),t.key===zc.BACKSPACE_KEY_CODE&&!t.target.value&&n&&h.current&&h.current.focus()}}),[n]),Q=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=(t.target.value||"").replace(" / ","");e.onKeyPress&&e.onKeyPress(t),t.key!==zc.ENTER_KEY_CODE&&(zc.validator.isNumeric(t)||t.preventDefault(),n.length>=4&&t.preventDefault())}}),[]),X=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=dc(e,["refKey"]);return pc(fc({"aria-label":"Expiry date in format MM YY",autoComplete:"cc-exp",id:"expiryDate",name:"expiryDate",placeholder:"MM/YY",type:"tel"},t||"ref",p),n,{onBlur:q(n),onChange:G(n),onFocus:K(n),onKeyDown:Y(n),onKeyPress:Q(n)})}),[q,G,K,Y,Q]),J=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onBlur&&e.onBlur(t),a&&a(t),D(void 0),F("cvc",!0)}}),[a,F]),ee=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.cardType;return function(t){var o=t.target.value;F("cvc",!1),e.onChange&&e.onChange(t),r&&r(t);var i=zc.validator.getCVCError(o,u,{cardType:a,errorMessages:c});!i&&n&&m.current&&m.current.focus(),I("cvc",i),e.onError&&e.onError(i)}}),[n,u,c,r,I,F]),te=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onFocus&&e.onFocus(t),D("cvc")}}),[]),ne=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onKeyDown&&e.onKeyDown(t),t.key===zc.BACKSPACE_KEY_CODE&&!t.target.value&&n&&p.current&&p.current.focus()}}),[n]),ce=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.cardType;return function(t){var c=(t.target.value||"").replace(" / ","");e.onKeyPress&&e.onKeyPress(t),t.key!==zc.ENTER_KEY_CODE&&(zc.validator.isNumeric(t)||t.preventDefault(),n&&c.length>=n.code.length&&t.preventDefault(),c.length>=4&&t.preventDefault())}}),[]),ae=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=dc(e,["refKey"]);return pc(fc({"aria-label":"CVC",autoComplete:"cc-csc",id:"cvc",name:"cvc",placeholder:_?_.code.name:"CVC",type:"tel"},t||"ref",d),n,{onBlur:J(n),onChange:ee(n,{cardType:_}),onFocus:te(n),onKeyDown:ne(n),onKeyPress:ce(n,{cardType:_})})}),[_,J,ee,te,ne,ce]),re=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onBlur&&e.onBlur(t),a&&a(t),D(void 0),F("zip",!0)}}),[a,F]),oe=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=t.target.value;F("zip",!1),e.onChange&&e.onChange(t),r&&r(t);var a=zc.validator.getZIPError(n,{errorMessages:c});I("zip",a),e.onError&&e.onError(a)}}),[c,r,I,F]),ie=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onFocus&&e.onFocus(t),D("zip")}}),[]),le=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onKeyDown&&e.onKeyDown(t),t.key===zc.BACKSPACE_KEY_CODE&&!t.target.value&&n&&d.current&&d.current.focus()}}),[n]),se=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onKeyPress&&e.onKeyPress(t),t.key!==zc.ENTER_KEY_CODE&&(zc.validator.isNumeric(t)||t.preventDefault())}}),[]),ue=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=dc(e,["refKey"]);return pc(fc({autoComplete:"off",id:"zip",maxLength:"6",name:"zip",placeholder:"ZIP",type:"tel"},t||"ref",m),n,{onBlur:re(n),onChange:oe(n),onFocus:ie(n),onKeyDown:le(n),onKeyPress:se(n)})}),[re,oe,ie,le,se]),fe=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.images||{};return pc({"aria-label":_?_.displayName:"Placeholder card",children:t[_?_.type:"placeholder"]||t.placeholder,width:"1.5em",height:"1em",viewBox:"0 0 24 16"},e)}),[_]);return i.a.useLayoutEffect((function(){if(m.current){var e=zc.validator.getZIPError(m.current.value,{errorMessages:c});I("zip",e)}if(d.current){var t=zc.validator.getCVCError(d.current.value,u,{errorMessages:c});I("cvc",t)}if(p.current){var n=zc.validator.getExpiryDateError(p.current.value,f,{errorMessages:c});I("expiryDate",n)}if(h.current){var a=zc.validator.getCardNumberError(h.current.value,s,{errorMessages:c});I("cardNumber",a)}}),[s,u,c,f,I]),i.a.useLayoutEffect((function(){h.current&&(h.current.value=zc.formatter.formatCardNumber(h.current.value)),p.current&&(p.current.value=zc.formatter.formatExpiry({target:p.current}))}),[]),i.a.useLayoutEffect((function(){if(h.current){var e=zc.cardTypes.getCardTypeByValue(h.current.value);R(e)}}),[]),{getCardImageProps:fe,getCardNumberProps:$,getExpiryDateProps:X,getCVCProps:ae,getZIPProps:ue,wrapperProps:{error:N,focused:j,isTouched:x},meta:{cardType:_,erroredInputs:H,error:N,focused:j,isTouched:x,touchedInputs:b}}};var xc=n(313);function Mc(){var e=mc(["\n color: #c9444d;\n font-size: 0.75rem;\n margin-top: 0.25rem;\n\n & {\n ",";\n }\n"]);return Mc=function(){return e},e}function Lc(){var e=mc(["\n border-color: #444bc9;\n box-shadow: #444bc9 0px 0px 0px 1px;\n ",";\n "]);return Lc=function(){return e},e}function wc(){var e=mc(["\n border-color: #c9444d;\n box-shadow: #c9444d 0px 0px 0px 1px;\n ",";\n "]);return wc=function(){return e},e}function Hc(){var e=mc(["\n align-items: center;\n background-color: white;\n border: 1px solid #bdbdbd;\n box-shadow: inset 0px 1px 2px #e5e5e5;\n border-radius: 0.2em;\n display: flex;\n height: 2.5em;\n padding: 0.4em 0.6em;\n\n & {\n ",";\n }\n\n & {\n ",";\n }\n\n & input {\n border: unset;\n margin: unset;\n padding: unset;\n outline: unset;\n font-size: inherit;\n\n & {\n ",";\n }\n\n ",";\n }\n\n & svg {\n margin-right: 0.6em;\n & {\n ",";\n }\n }\n\n & input#cardNumber {\n width: 11em;\n & {\n ",";\n }\n }\n\n & input#expiryDate {\n width: 4em;\n & {\n ",";\n }\n }\n\n & input#cvc {\n width: 2.5em;\n & {\n ",";\n }\n }\n\n & input#zip {\n width: 4em;\n & {\n ",";\n }\n }\n\n ",";\n"]);return Hc=function(){return e},e}function Vc(){var e=mc(["\n display: inline-flex;\n flex-direction: column;\n\n & {\n ",";\n }\n\n ",";\n"]);return Vc=function(){return e},e}var Sc=xc.c.div(Vc(),(function(e){return e.hasErrored&&e.styles.fieldWrapper?e.styles.fieldWrapper.errored:void 0}),(function(e){return e.styles.fieldWrapper?e.styles.fieldWrapper.base:void 0})),Ec=xc.c.div(Hc(),(function(e){return e.hasErrored&&Object(xc.b)(wc(),(function(e){return e.styles.inputWrapper&&e.styles.inputWrapper.errored}))}),(function(e){return e.focused&&Object(xc.b)(Lc(),(function(e){return e.styles.inputWrapper&&e.styles.inputWrapper.focused}))}),(function(e){return e.hasErrored&&e.styles.input?e.styles.input.errored:void 0}),(function(e){return e.styles.input&&e.styles.input.base}),(function(e){return e.styles.cardImage}),(function(e){return e.styles.input&&e.styles.input.cardNumber}),(function(e){return e.styles.input&&e.styles.input.expiryDate}),(function(e){return e.styles.input&&e.styles.input.cvc}),(function(e){return e.styles.input&&e.styles.input.zip}),(function(e){return e.styles.inputWrapper?e.styles.inputWrapper.base:void 0})),Nc=xc.c.div(Mc(),(function(e){return e.styles.errorText?e.styles.errorText.base:void 0}));function kc(e){var t=e.children,n=e.error,c=e.errorTextProps,a=e.focused,r=e.inputWrapperProps,o=e.isTouched,l=e.styles,s=dc(e,["children","error","errorTextProps","focused","inputWrapperProps","isTouched","styles"]),u=n&&o;return i.a.createElement(Sc,hc({hasErrored:u,styles:l},s),i.a.createElement(Ec,hc({focused:a,hasErrored:u,styles:l},r),t),u&&i.a.createElement(Nc,hc({styles:l},c),n))}kc.defaultProps={styles:{}};var Oc=kc,Ac=i.a.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.a.createElement("g",{id:"New-Icons",transform:"translate(-80.000000, -280.000000)",fillRule:"nonzero"},i.a.createElement("g",{id:"Card-Brands",transform:"translate(40.000000, 200.000000)"},i.a.createElement("g",{id:"Color",transform:"translate(0.000000, 80.000000)"},i.a.createElement("g",{id:"Visa",transform:"translate(40.000000, 0.000000)"},i.a.createElement("rect",{strokeOpacity:"0.2",stroke:"#000000",strokeWidth:"0.5",fill:"#FFFFFF",x:"0.25",y:"0.25",width:"23.5",height:"15.5",rx:"2"}),i.a.createElement("path",{d:"M2.78773262,5.91443732 C2.26459089,5.62750595 1.6675389,5.39673777 1,5.23659312 L1.0280005,5.1118821 L3.76497922,5.1118821 C4.13596254,5.12488556 4.43699113,5.23650585 4.53494636,5.63071135 L5.12976697,8.46659052 L5.31198338,9.32072617 L6.97796639,5.1118821 L8.77678896,5.1118821 L6.10288111,11.2775284 L4.30396552,11.2775284 L2.78773262,5.91443732 L2.78773262,5.91443732 Z M10.0999752,11.2840738 L8.39882877,11.2840738 L9.46284763,5.1118821 L11.163901,5.1118821 L10.0999752,11.2840738 Z M16.2667821,5.26277458 L16.0354292,6.59558538 L15.881566,6.53004446 C15.5737466,6.40524617 15.1674138,6.28053516 14.6143808,6.29371316 C13.942741,6.29371316 13.6415263,6.56277129 13.6345494,6.82545859 C13.6345494,7.11441463 13.998928,7.3048411 14.5939153,7.58725177 C15.5740257,8.02718756 16.0286384,8.56556562 16.0218476,9.26818871 C16.0080799,10.5486366 14.8460128,11.376058 13.0610509,11.376058 C12.2978746,11.3694253 11.5627918,11.2180965 11.163808,11.0475679 L11.4018587,9.66204513 L11.6258627,9.76066195 C12.1788958,9.99070971 12.5428092,10.0889775 13.221984,10.0889775 C13.7117601,10.0889775 14.2368857,9.89837643 14.2435835,9.48488392 C14.2435835,9.21565125 14.0198586,9.01850486 13.3617074,8.7164581 C12.717789,8.42086943 11.8568435,7.92848346 11.8707973,7.04197926 C11.8780532,5.84042483 13.0610509,5 14.7409877,5 C15.3990458,5 15.9312413,5.13788902 16.2667821,5.26277458 Z M18.5277524,9.0974856 L19.941731,9.0974856 C19.8717762,8.78889347 19.549631,7.31147374 19.549631,7.31147374 L19.4307452,6.77964104 C19.3467437,7.00942698 19.1998574,7.38373457 19.2069273,7.37055657 C19.2069273,7.37055657 18.6678479,8.74290137 18.5277524,9.0974856 Z M20.6276036,5.1118821 L22,11.2839865 L20.4249023,11.2839865 C20.4249023,11.2839865 20.2707601,10.5748181 20.221922,10.3581228 L18.0377903,10.3581228 C17.9746264,10.5221933 17.6807607,11.2839865 17.6807607,11.2839865 L15.8957988,11.2839865 L18.4226343,5.62399144 C18.5977072,5.22341512 18.9059917,5.1118821 19.3117663,5.1118821 L20.6276036,5.1118821 L20.6276036,5.1118821 Z",id:"Shape",fill:"#171E6C"})))))),_c=i.a.createElement("g",{fill:"none"},i.a.createElement("path",{d:"m4.54588254.00006676h5.79377466c.8087588 0 1.3117793.72566459 1.1231113 1.61890981l-2.69741608 12.74856503c-.19036262.8901361-1.00010994 1.6164225-1.80943362 1.6164225h-5.79320976c-.80762905 0-1.31177937-.7262864-1.12311135-1.6164225l2.69854581-12.74856503c.18866803-.89324522.9979917-1.61890981 1.80773904-1.61890981",fill:"#dd2423"}),i.a.createElement("path",{d:"m9.85756516.00006676h6.66269264c.8086174 0 .4439911.72566459.2537697 1.61890981l-2.6969924 12.74856503c-.1892329.8901361-.1302036 1.6164225-.9405158 1.6164225h-6.66269248c-.81031221 0-1.31177939-.7262864-1.12141672-1.6164225l2.69685116-12.74856503c.19149238-.89324522.99912144-1.61890981 1.8083039-1.61890981",fill:"#16315e"}),i.a.createElement("path",{d:"m16.2559813.00006676h5.7937745c.8098886 0 1.3129092.72566459 1.1226878 1.61890981l-2.6969924 12.74856503c-.1903626.8901361-1.0006749 1.6164225-1.8104222 1.6164225h-5.7910915c-.8103122 0-1.3129091-.7262864-1.1231113-1.6164225l2.697416-12.74856503c.1886681-.89324522.9974268-1.61890981 1.8077391-1.61890981",fill:"#036862"}),i.a.createElement("path",{d:"m6.05901135 4.08561434c-.59580116.00668457-.77175951 0-.8279645-.01461278-.02160646.11301588-.42365577 2.15460824-.42478553 2.15631824-.08656699.4130443-.14955043.7074763-.36349659.89759795-.12144798.1105286-.26323144.1638497-.42760986.1638497-.26421996 0-.41814822-.1444178-.44399122-.41832975l-.00494264-.09405035s.08049458-.55326485.08049458-.55637395c0 0 .42196112-1.86048711.49751306-2.10641713.00395412-.01399096.00508387-.02129736.00607239-.02798193-.82132725.00792821-.9669236 0-.97695012-.01461278-.00550753.02005371-.025843.13540142-.025843.13540142l-.43085788 2.09693437-.03699927.1778407-.07159782.5817131c0 .1725552.03078565.31339755.09207452.4324762.19629382.37760055.75622549.4341862 1.07297875.4341862.40812169 0 .79096525-.09544945 1.04967767-.26971465.44907509-.2921002.56656897-.74867195.67135315-1.15440985l.04857917-.20815445s.43467082-1.93230737.5085281-2.18367833c.00282441-.01399096.00395413-.02129736.00776704-.02798193zm1.47893982 1.55881086c-.10478422 0-.29627659.0279819-.46828081.12078865-.0624186.0352883-.12144796.07601755-.18372539.11659135l.056205-.22338905-.03078563-.03762015c-.36476761.08130305-.44639193.0921849-.78333945.14441785l-.02824374.0206755c-.03911752.3570805-.07385733.6255515-.21888878 1.32743145-.05521646.25867735-.11255121.519842-.17002718.7778975l.01553403.03280105c.34527946-.0200537.45006363-.0200537.75015309-.0146128l.02428961-.0290701c.03812903-.21499445.04307165-.2653619.12752039-.70079175.03968242-.20644445.1224365-.66006255.16324868-.8215804.07498704-.038242.14898558-.07586215.21959486-.07586215.16819135 0 .14771465.1615179.14121858.22587635-.00720213.1080413-.06849101.4609245-.13133325.76390655l-.04194194.19556255c-.02923223.14441785-.06128888.2847938-.09052111.427968l.01270966.02860375c.34033679-.0200537.44413246-.0200537.73476028-.0146128l.0341749-.0290701c.0525333-.3357831.06792611-.42563615.16113038-.9145426l.04688457-.22463265c.09108601-.43962715.13684082-.6625498.06792616-.8441214-.07286879-.2034908-.24769738-.2526146-.40826291-.2526146zm1.65214439.4602871c-.18090101.038242-.29627659.0637366-.41094606.08021485-.11368097.02005375-.22453757.038242-.39936616.06498025l-.01383941.0138355-.01270966.01103735c-.01821719.14332965-.0309269.26722735-.05507525.41288885-.02047669.150636-.05196844.3217921-.10323077.56772215-.03968243.18825615-.06015913.25385825-.08275412.32008215-.0220301.06622385-.04631967.1305823-.09094476.31572935l.01045019.0171001.00875554.01570095c.1633899-.00855005.27029237-.0146128.38016043-.01570095.10972684-.00435275.22340776 0 .39936611.00108815l.01539286-.0138355.01652257-.0152346c.02541932-.1669588.02923224-.21188535.04476626-.29334385.01539282-.0873658.04194194-.20830985.10704369-.53134565.03078568-.1517242.06510179-.30298205.09701718-.4578154.03318641-.1542115.06792612-.30609115.10097127-.45781535l-.00494263-.0183437zm.00385525-.620608c-.1643784-.10679765-.45288796-.07290845-.64706354.0746185-.19361063.14457325-.21564072.34977405-.05182718.4579708.16155403.10384405.45119334.0729085.64367421-.0758621.19318708-.14768235.21733543-.3510177.05521651-.4567272zm.99410809 2.473369c.3325698 0 .6734715-.1008904.9300657-.400297.1974235-.2428209.2879446-.60409865.3192952-.7528692.1021011-.4931037.0225949-.7233328-.0772466-.8635533-.1516687-.21375085-.4197016-.28230655-.697761-.28230655-.1672028 0-.5654392.01818825-.87654364.33391765-.22340786.22774175-.32663863.5367866-.38891601.83308405-.06284224.3018939-.13514621.84536505.31887154 1.0476122.14008884.0662239.34203141.08441215.47223481.08441215zm-.0259841-1.10948335c.0766817-.3734032.1672028-.6868008.3982364-.6868008.1810422 0 .1941755.23318275.1136809.6078296-.0144042.0831685-.0804945.3923688-.1698859.5240393-.0624186.09715945-.1362759.15607695-.2179003.15607695-.0242896 0-.1687562 0-.1710157-.23613635-.0011297-.11659135.0204767-.23567.0468846-.3650087zm2.1066988 1.06146325.0259841-.0290701c.0368581-.21499445.0429305-.2655174.1245549-.70079175.0408121-.20644445.1252608-.66006255.1649433-.82158045.0751282-.0383974.1478558-.07601755.2207245-.07601755.1670616 0 .1467262.1615179.140089.2258763-.0060725.1081968-.0673613.4609245-.1313334.76390655l-.0396824.1955626c-.030362.14457325-.0634071.2847938-.0926394.42812345l.0127097.02860375c.3414665-.02005375.441308-.02005375.7336305-.0146128l.0353047-.0290701c.0512623-.33593855.0651017-.42579165.1611304-.9145426l.0457548-.2247881c.0915096-.43962715.1378292-.66239435.0700444-.84396595-.0749871-.2034908-.2509454-.2526146-.4092515-.2526146-.1049254 0-.2974063.02782645-.468422.12078865-.0611476.0352883-.1224365.0758621-.1825956.11659135l.0523921-.22338905-.0281025-.0377756c-.3646263.0814585-.4479453.09234035-.7844692.1445733l-.025843.0206755c-.0408122.35708045-.0739986.62539605-.21903 1.32743145-.0552164.25867735-.1125512.51984195-.1698859.7778975l.0153928.03280105c.3458442-.02005375.4490751-.02005375.7485997-.0146128zm2.5088186.01453505c.0214652-.1153477.1489856-.7990394.1501153-.7990394 0 0 .1085971-.50165375.1152345-.519842 0 0 .0341748-.0522329.0683497-.07290845h.0502738c.4743532 0 1.0099953 0 1.4298381-.3399804.2856852-.2331827.4809905-.57751585.5681223-.99600105.022595-.1026004.0392588-.22463269.0392588-.34666496 0-.16027425-.0292322-.3188385-.1136809-.44273624-.2140874-.32972035-.6404262-.3357831-1.132573-.33827039-.0015534 0-.2426136.00248729-.2426136.00248729-.629976.00855003-.8826161.00606275-.9864117-.00792821-.0087556.05052291-.0252782.14037599-.0252782.14037599s-.2256673 1.15130077-.2256673 1.15316622c0 0-.5400198 2.4477966-.5654392 2.5631443.5500464-.00730635.7755725-.00730635.8704714.0041973zm.4181482-2.0451678s.2399304-1.14896892.2388007-1.14461618l.0077669-.05891749.0033893-.04492654.0958874.01088185s.4948299.046792.5064099.04803565c.1953052.0831685.2757998.29754113.2195948.57736036-.0512623.2557237-.2019425.4707182-.3955532.5745622-.1594358.0879876-.3547411.095294-.5559775.095294h-.1302035zm1.4938667.99045135c-.0634072.2975411-.136276.8410123.3154822 1.0347094.1440429.0674675.2731167.0875212.4043088.08021485.1385355-.00823915.2669031-.08472305.3858092-.1947853-.0107326.04523745-.0214652.0904749-.0321978.1358678l.0204766.0290701c.324944-.01507915.4257741-.01507915.7778319-.0121255l.0319154-.0267383c.0514036-.332674.0998416-.65570975.2334344-1.2921431.0651017-.30484755.1300622-.6067414.1968587-.9103453l-.0104501-.03342285c-.3634967.0741521-.4606551.09000855-.8103124.1445733l-.026549.0237846c-.0035305.0309356-.0072021.0606275-.0105914.09031945-.0543692-.0966931-.1331691-.17923975-.2547583-.2306954-.1554817-.0673121-.5206729.01943185-.8346018.33407305-.2205834.2246327-.3264973.53243385-.3866564.8276432zm.7634275.01818825c.0778115-.3667187.1672028-.67700715.3988014-.67700715.1464436 0 .2235489.14877055.2078737.40247335-.0124272.06327025-.025843.1299605-.0418008.20535625-.0231597.10897405-.0482967.21701535-.0727275.32521215-.0248545.07399665-.0538043.143796-.0855784.1902771-.0595943.09296215-.2013777.150636-.2830021.150636-.0231599 0-.1660731 0-.1710157-.23193905-.0011298-.11550315.0204767-.23442635.0474494-.36500865zm3.9866711-1.21085565-.0281024-.0352883c-.3596838.08021485-.4247856.09296215-.755237.142086l-.0242897.02673825c-.0011296.00435275-.0021182.01103735-.0038128.0171001l-.0011298-.00606275c-.2460027.6247742-.2388006.4899946-.4390485.98185465-.0011298-.02238555-.0011298-.0363765-.0022595-.06016115l-.0501327-1.0662668-.0314917-.0352883c-.3767711.08021485-.3856679.09296215-.7336305.142086l-.0271139.02673825c-.003813.01274735-.003813.0267383-.0060724.0419729l.0022594.00544095c.0434954.2446864.0330452.19012165.0766818.5762722.0203354.1894998.0474494.3800878.0677848.5672558.0343162.3132421.0535219.4674536.0954638.94547815-.2349878.4268798-.2906279.5883977-.51686.9630446l.0015534.0037309-.1592946.27733195c-.0182171.0292256-.0347397.0492793-.0578996.05782935-.0254193.0138355-.0584644.01632275-.1043605.01632275h-.0882616l-.131192.4803564.4500635.00855005c.26422-.00124365.4302931-.1372669.5196844-.32008215l.283002-.53383295h-.004519l.0297972-.03762015c.1903626-.4511308 1.6384179-3.1855867 1.6384179-3.1855867zm-4.7501128 6.3087581h-.1909276l.7066579-2.57293795h.2344228l.0744221-.265051.0072022.29474295c-.0087556.1821934.121448.3437113.4634794.31697305h.3955532l.1361347-.49543555h-.1488443c-.0855785 0-.1252609-.02378465-.1203182-.0747739l-.0072022-.299873h-.7325008v.00155455c-.2368235.00544095-.9440462.0250283-1.0872418.0670012-.1732752.0491238-.3558709.1936971-.3558709.1936971l.071739-.26536195h-.6851925l-.1427719.52652655-.7161194 2.61226815h-.1389591l-.136276.4918601h1.3647364l-.0457548.1640051h.6724828l.0446251-.1640051h.1886681zm-.5599316-2.0501423c-.1097268.03342285-.313929.1347796-.313929.1347796l.1816071-.65757525h.5443977l-.1313333.47911275s-.1681914.01088185-.2807425.0436829zm.0104502.9394154s-.1710158.0236292-.283567.0516111c-.1108566.0369984-.3187303.1535897-.3187303.1535897l.1875382-.6843135h.5472221zm-.3050322 1.1167897h-.5460922l.158306-.5775158h.5443976zm1.315112-1.5959024h.7871525l-.1131162.4032506h-.7976024l-.1197535.4408708h.6979023l-.5284398.8190931c-.0369994.0601612-.0701858.0814585-.1070437.0984031-.0369994.0206755-.0855785.0449265-.1417835.0449265h-.1936107l-.133028.4828437h.5064098c.2632315 0 .4187131-.131826.5335239-.3048476l.3623669-.5459584.0778115.5543531c.0165225.1038439.0843074.1646269.1302034.1882561.0506975.0279819.1030897.0760176.1770882.0831685.0793648.0037309.1366995.0066846.1748285.0066846h.2488272l.1494092-.5403621h-.0981469c-.0563463 0-.1533633-.0104155-.1698859-.0298474-.0165226-.0236292-.0165226-.0600057-.0254194-.1153477l-.0789412-.5555967h-.3232494l.1417836-.1857688h.796049l.1224365-.4408708h-.7370197l.1148107-.4032506h.7347603l.1362759-.497301h-2.1905826zm-6.6483163 1.7081877.1837253-.6728098h.7550958l.1379705-.5004101h-.7558018l.1153756-.4141325h.7385731l.1368408-.4845537h-1.84798632l-.13401641.4845537h.41984283l-.1119863.4141325h-.42097264l-.13952389.5089601h.41970155l-.24487301.8901361c-.03304514.117835.01553408.1627615.04631971.2174817.03149175.0533211.06340718.0886094.13514621.1086631.07399857.0181883.12469597.0290701.19361067.0290701h.8512656l.1516688-.554353-.3773361.0570521c-.0728688 0-.2746701-.0096382-.25264-.0837903zm.0866093-3.22084395-.1913512.38070965c-.0409534.08316845-.0778114.1347796-.1109978.1585642-.0292322.02005375-.0871318.0284483-.1710157.0284483h-.0998415l-.13345158.48704095h.33158128c.1594357 0 .2818722-.0643584.3403368-.09653765.0628422-.0369983.0793647-.0158564.1279439-.0674675l.1119864-.1067977h1.0354146l.1374057-.50709465h-.7579202l.1323219-.2768656zm1.5286064 3.23062205c-.0176524-.027982-.0049427-.0772612.0220301-.1798616l.283002-1.0311339h1.0067472c.1467262-.0023318.25264-.0041973.3215547-.0096382.0739985-.0085501.1544932-.0376202.2421899-.0898531.0905212-.0547202.1368408-.1123941.1759583-.178618.0436366-.0660684.113681-.2106417.1738401-.4335643l.3557296-1.3048905-1.044735.0066846s-.3216959.0522329-.4633381.10990675c-.1429132.06435845-.3471154.2440646-.3471154.2440646l.0943341-.3577023h-.645369l-.9035164 3.29860265c-.0320566.1280949-.0535218.2210571-.0584645.2768655-.0016946.0601612.0689147.1197005.1146695.164627.0540867.0449266.1340164.0376202.2106981.0449266.0806358.0066846.1953053.0108818.3536113.0108818h.4959597l.1522336-.5658567-.4439912.0461702c-.0474494 0-.0817655-.027982-.0960286-.0516111zm.4876277-1.9074346h1.0574447l-.06722.2319391c-.0094616.0054409-.0320566-.0115037-.1396652.0024873h-.9156612zm.2118279-.77789745h1.0663414l-.0766816.27935285s-.5025969-.0054409-.5830915.01088185c-.3541763.06746755-.5610614.27577745-.5610614.27577745zm.802065 1.78653705c-.0087555.0346665-.0225949.0558084-.0419418.0716648-.0214654.0152346-.0562051.0206755-.1080323.0206755h-.1506803l.0088968-.2824619h-.626728l-.0254193 1.380908c-.0009886.0996467.007767.1573206.0739985.2034908.0662315.0576738.2702923.0649802.5449624.0649802h.392729l.1417834-.5168883-.3418902.0206755-.1136809.0073064c-.0155341-.0073064-.030362-.013991-.0468846-.0321792-.0144043-.015701-.0386939-.0060627-.0347398-.1057095l.0026831-.3539713.3585541-.0163228c.1936107 0 .2763648-.0693331.346974-.1354015.0673612-.0632702.0893913-.1360232.1148107-.2344264l.0601592-.3133975h-.4927118z",fill:"#fefefe"})),Rc=i.a.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.a.createElement("g",null,i.a.createElement("rect",{id:"Rectangle",fill:"#D8D8D8",x:"0",y:"0",width:"24",height:"16",rx:"1"}),i.a.createElement("rect",{id:"Rectangle",fill:"#A6A6A6",x:"0.923076923",y:"10.3529412",width:"4.61538462",height:"1.88235294",rx:"0.941176471"}),i.a.createElement("rect",{id:"Rectangle",fill:"#FFFFFF",x:"16.6153846",y:"3.76470588",width:"4.61538462",height:"2.82352941",rx:"1"}),i.a.createElement("rect",{id:"Rectangle",fill:"#A6A6A6",x:"6.46153846",y:"10.3529412",width:"4.61538462",height:"1.88235294",rx:"0.941176471"}),i.a.createElement("rect",{id:"Rectangle",fill:"#A6A6A6",x:"11.9230769",y:"10.3529412",width:"5.61538462",height:"1.88235294",rx:"0.941176471"}),i.a.createElement("rect",{id:"Rectangle",fill:"#A6A6A6",x:"18.4615385",y:"10.3529412",width:"4.61538462",height:"1.88235294",rx:"0.941176471"}))),Pc=i.a.createElement("g",{fill:"none",fillRule:"evenodd"},i.a.createElement("rect",{fill:"#252525",height:"16",rx:"2",width:"24"}),i.a.createElement("circle",{cx:"9",cy:"8",fill:"#eb001b",r:"5"}),i.a.createElement("circle",{cx:"15",cy:"8",fill:"#f79e1b",r:"5"}),i.a.createElement("path",{d:"m12 3.99963381c1.2144467.91220633 2 2.36454836 2 4.00036619s-.7855533 3.0881599-2 4.0003662c-1.2144467-.9122063-2-2.36454837-2-4.0003662s.7855533-3.08815986 2-4.00036619z",fill:"#ff5f00"})),Tc=i.a.createElement("g",{fill:"none"},i.a.createElement("path",{d:"m.20535714 16h4.51785715c1.0278125 0 2.25892857-1.1946667 2.25892857-2.1333333v-13.8666667h-4.51785715c-1.0278125 0-2.25892857 1.19466667-2.25892857 3.2z",fill:"#047ab1"}),i.a.createElement("path",{d:"m2.76924107 10.816c-.86733559.0001606-1.73039558-.1147397-2.56388393-.3413333v-1.17333337c.64678874.37770431 1.38610045.59084099 2.14598215.61866667.8696875 0 1.35535714-.576 1.35535714-1.36533333v-3.22133334h2.14598214v3.22133334c0 1.25866666-.70026786 2.26133333-3.0834375 2.26133333z",fill:"#fff"}),i.a.createElement("path",{d:"m8.11160714 16h4.51785716c1.0278125 0 2.2589286-1.1946667 2.2589286-2.1333333v-13.8666667h-4.5178572c-1.02781249 0-2.25892856 1.19466667-2.25892856 3.2z",fill:"#d42d06"}),i.a.createElement("path",{d:"m8.11160714 6.08c.65508929-.59733333 1.78455357-.97066667 3.61428576-.88533333.9939285.04266666 2.0330357.32 2.0330357.32v1.184c-.5943231-.3394747-1.2623758-.54734656-1.9539732-.608-1.3892411-.11733334-2.23633933.61866666-2.23633933 1.90933333s.84709823 2.0266667 2.23633933 1.92c.6920185-.06606555 1.3596342-.27744592 1.9539732-.61866667v1.17333337s-1.0391072.288-2.0330357.3306666c-1.82973219.0853334-2.95919647-.288-3.61428576-.8853333z",fill:"#fff"}),i.a.createElement("path",{d:"m16.0178571 16h4.5178572c1.0278125 0 2.2589286-1.1946667 2.2589286-2.1333333v-13.8666667h-4.5178572c-1.0278125 0-2.2589286 1.19466667-2.2589286 3.2z",fill:"#67b637"}),i.a.createElement("path",{d:"m21.6651786 9.28c0 .8533333-.7002679 1.3866667-1.6377232 1.3866667h-4.0095983v-5.33333337h3.6481697l.2597768.01066667c.8245089.04266667 1.4344196.50133333 1.4344196 1.29066667 0 .61866666-.4179018 1.152-1.1746428 1.28v.032c.8358035.05333333 1.4795982.55466666 1.4795982 1.33333333zm-2.880134-3.104c-.0486104-.00686658-.0976798-.01043129-.1468303-.01066667h-1.3553572v1.344h1.5021875c.2823661-.064.5195536-.30933333.5195536-.672 0-.36266666-.2371875-.608-.5195536-.66133333zm.1694197 2.176c-.059755-.00886168-.1202559-.01243275-.1807143-.01066667h-1.4908929v1.46133334h1.4908929l.1807143-.02133334c.2823661-.064.5195536-.34133333.5195536-.71466666 0-.37333334-.2258929-.64-.5195536-.71466667z",fill:"#fff"})),jc={amex:i.a.createElement("g",{fill:"none",fillRule:"evenodd"},i.a.createElement("rect",{fill:"#016fd0",height:"16",rx:"2",width:"24"}),i.a.createElement("path",{d:"m13.7640663 13.3938564v-5.70139231l10.1475359.00910497v1.57489503l-1.1728619 1.25339231 1.1728619 1.2648839v1.6083094h-1.8726188l-.9951823-1.0981657-.9881105 1.1023204z",fill:"#fffffe"}),i.a.createElement("path",{d:"m14.4418122 12.7687956v-4.448884h3.7722872v1.02488398h-2.550895v.69569062h2.4900774v1.0078232h-2.4900774v.6833149h2.550895v1.0371713z",fill:"#016fd0"}),i.a.createElement("path",{d:"m18.1952707 12.7687956 2.087337-2.2270055-2.0874254-2.2217901h1.6156464l1.2754917 1.41003315 1.2791161-1.41003315h1.5461657v.03500552l-2.0428729 2.18678458 2.0428729 2.1638895v.063116h-1.5617237l-1.2981216-1.4241768-1.2847735 1.4241768z",fill:"#016fd0"}),i.a.createElement("path",{d:"m14.2373481 2.6319558h2.4460552l.8591381 1.95085083v-1.95085083h3.0198453l.5207514 1.46156906.5225194-1.46156906h2.3059447v5.70139227h-12.1865193z",fill:"#fffffe"}),i.a.createElement("g",{fill:"#016fd0"},i.a.createElement("path",{d:"m14.7004641 3.25135912-1.9740111 4.44517127h1.3539006l.3724199-.89016575h2.0179447l.3721547.89016575h1.3875801l-1.96579-4.44517127zm.1696353 2.55743646.592-1.41507182.5915581 1.41507182z"}),i.a.createElement("path",{d:"m18.2119779 7.69573481v-4.44508288l1.903116.00654144.9792707 2.73272928.9856354-2.73927072h1.8316022v4.44508288l-1.1786077.01043094v-3.05334807l-1.1125746 3.04291713h-1.0758011l-1.1356464-3.05334807v3.05334807z"}))),dinersclub:i.a.createElement("g",{id:"319",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.a.createElement("g",{id:"New-Icons",transform:"translate(-320.000000, -280.000000)",fillRule:"nonzero"},i.a.createElement("g",{id:"Card-Brands",transform:"translate(40.000000, 200.000000)"},i.a.createElement("g",{id:"Color",transform:"translate(0.000000, 80.000000)"},i.a.createElement("g",{id:"Diners-Club",transform:"translate(280.000000, 0.000000)"},i.a.createElement("path",{d:"M21.9972414,15.749927 L21.999381,15.7499362 C22.9544683,15.7581106 23.73806,14.9772525 23.75,14.0041555 L23.7500083,2.00630219 C23.7461702,1.53568921 23.5588633,1.08617106 23.2297297,0.756801782 C22.9014319,0.428268884 22.4589161,0.246148853 21.9972414,0.250070854 L2.00063,0.250061791 C1.54108393,0.246148853 1.09856813,0.428268884 0.77027028,0.756801782 C0.441136651,1.08617106 0.253829819,1.53568921 0.25,2.00426336 L0.249991686,13.9936957 C0.253829819,14.4643086 0.441136651,14.9138268 0.77027028,15.2431961 C1.09856813,15.571729 1.54108393,15.753849 2.00275862,15.749927 L21.9972414,15.749927 Z M21.996203,16.249927 C21.9958359,16.249924 21.9954688,16.249921 21.9951018,16.2499178 L21.9972414,16.249927 L21.996203,16.249927 Z",id:"shape",strokeOpacity:"0.2",stroke:"#000000",strokeWidth:"0.5",fill:"#FFFFFF"}),i.a.createElement("path",{d:"M10.0021142,2.05179033 L10.0021142,2.03579033 L14.0021142,2.03579033 L14.0021142,2.05179033 C17.1375481,2.28122918 19.5642283,4.89197286 19.5642283,8.03579033 C19.5642283,11.1796078 17.1375481,13.7903515 14.0021142,14.0197903 L14.0021142,14.0357903 L10.0021142,14.0357903 L10.0021142,14.0197903 C6.86668021,13.7903515 4.44,11.1796078 4.44,8.03579033 C4.44,4.89197286 6.86668021,2.28122918 10.0021142,2.05179033 Z",id:"shape",fill:"#0165AC"}),i.a.createElement("path",{d:"M11.6021142,11.4277903 C13.0374002,10.9175027 13.9961556,9.55908923 13.9961556,8.03579033 C13.9961556,6.51249143 13.0374002,5.15407792 11.6021142,4.64379033 L11.6021142,11.4277903 L11.6021142,11.4277903 Z M9.20211417,4.64379033 C7.76682809,5.15407792 6.80807271,6.51249143 6.80807271,8.03579033 C6.80807271,9.55908923 7.76682809,10.9175027 9.20211417,11.4277903 L9.20211417,4.64379033 L9.20211417,4.64379033 Z M10.4021142,13.2357903 C7.53023347,13.2357903 5.20211417,10.907671 5.20211417,8.03579033 C5.20211417,5.16390963 7.53023347,2.83579033 10.4021142,2.83579033 C13.2739949,2.83579033 15.6021142,5.16390963 15.6021142,8.03579033 C15.6021142,10.907671 13.2739949,13.2357903 10.4021142,13.2357903 Z",id:"shape",fill:"#FFFFFF"})))))),discover:i.a.createElement("g",{id:"319",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.a.createElement("g",{id:"New-Icons",transform:"translate(-280.000000, -280.000000)",fillRule:"nonzero"},i.a.createElement("g",{id:"Card-Brands",transform:"translate(40.000000, 200.000000)"},i.a.createElement("g",{id:"Color",transform:"translate(0.000000, 80.000000)"},i.a.createElement("g",{id:"Discover",transform:"translate(240.000000, 0.000000)"},i.a.createElement("path",{d:"M21.9972414,15.749927 L21.999381,15.7499362 C22.9544683,15.7581106 23.73806,14.9772525 23.75,14.0041555 L23.7500083,2.00630219 C23.7461702,1.53568921 23.5588633,1.08617106 23.2297297,0.756801782 C22.9014319,0.428268884 22.4589161,0.246148853 21.9972414,0.250070854 L2.00063,0.250061791 C1.54108393,0.246148853 1.09856813,0.428268884 0.77027028,0.756801782 C0.441136651,1.08617106 0.253829819,1.53568921 0.25,2.00426336 L0.249991686,13.9936957 C0.253829819,14.4643086 0.441136651,14.9138268 0.77027028,15.2431961 C1.09856813,15.571729 1.54108393,15.753849 2.00275862,15.749927 L21.9972414,15.749927 Z M21.996203,16.249927 C21.9958359,16.249924 21.9954688,16.249921 21.9951018,16.2499178 L21.9972414,16.249927 L21.996203,16.249927 Z",id:"shape",strokeOpacity:"0.2",stroke:"#000000",strokeWidth:"0.5",fill:"#FFFFFF"}),i.a.createElement("path",{d:"M12.6124138,15.9999283 L21.9972414,15.9999283 C22.5240217,16.0043364 23.0309756,15.7992919 23.4065697,15.4299059 C23.7821638,15.06052 23.9956285,14.5570537 24,14.0302731 L24,11.6716524 C20.4561668,13.7059622 16.6127929,15.1667795 12.6124138,15.9999283 L12.6124138,15.9999283 Z",id:"shape",fill:"#F27712"}),i.a.createElement("path",{d:"M23.1724138,9.29647999 L22.32,9.29647999 L21.36,8.03027309 L21.2689655,8.03027309 L21.2689655,9.29647999 L20.5737931,9.29647999 L20.5737931,6.1516524 L21.6,6.1516524 C22.4027586,6.1516524 22.8662069,6.48268688 22.8662069,7.07854895 C22.8662069,7.56682481 22.5765517,7.88130757 22.0551724,7.98061792 L23.1724138,9.29647999 Z M22.1462069,7.10337654 C22.1462069,6.79716964 21.9144828,6.63992826 21.4841379,6.63992826 L21.2689655,6.63992826 L21.2689655,7.5916524 L21.4675862,7.5916524 C21.9144828,7.5916524 22.1462069,7.42613516 22.1462069,7.10337654 L22.1462069,7.10337654 Z M18.1406897,6.1516524 L20.1103448,6.1516524 L20.1103448,6.68130757 L18.8358621,6.68130757 L18.8358621,7.38475585 L20.0606897,7.38475585 L20.0606897,7.92268688 L18.8358621,7.92268688 L18.8358621,8.77510068 L20.1103448,8.77510068 L20.1103448,9.30475585 L18.1406897,9.30475585 L18.1406897,6.1516524 Z M15.9062069,9.37923861 L14.4,6.14337654 L15.1613793,6.14337654 L16.1131034,8.26199723 L17.0731034,6.14337654 L17.817931,6.14337654 L16.2951724,9.37923861 L15.9227586,9.37923861 L15.9062069,9.37923861 Z M9.60827586,9.37096274 C8.54896552,9.37096274 7.72137931,8.65096274 7.72137931,7.71579033 C7.72137931,6.8054455 8.56551724,6.06889378 9.62482759,6.06889378 C9.92275862,6.06889378 10.1710345,6.12682481 10.4772414,6.25923861 L10.4772414,6.98751447 C10.2453534,6.75969251 9.93335245,6.63192067 9.60827586,6.6316524 C8.9462069,6.6316524 8.44137931,7.1116524 8.44137931,7.71579033 C8.44137931,8.35303171 8.93793103,8.80820412 9.64137931,8.80820412 C9.95586207,8.80820412 10.1958621,8.70889378 10.4772414,8.46061792 L10.4772414,9.18889378 C10.1627586,9.32130757 9.89793103,9.37096274 9.60827586,9.37096274 L9.60827586,9.37096274 Z M7.5062069,8.33647999 C7.5062069,8.94889378 7.00137931,9.37096274 6.27310345,9.37096274 C5.74344828,9.37096274 5.36275862,9.18889378 5.04,8.77510068 L5.49517241,8.38613516 C5.65241379,8.66751447 5.91724138,8.80820412 6.24827586,8.80820412 C6.56275862,8.80820412 6.7862069,8.6178593 6.7862069,8.36958343 C6.7862069,8.22889378 6.72,8.12130757 6.57931034,8.03854895 C6.42504922,7.96369158 6.26441119,7.90275992 6.09931034,7.85647999 C5.44551724,7.64958343 5.22206897,7.42613516 5.22206897,6.98751447 C5.22206897,6.47441102 5.70206897,6.0854455 6.33103448,6.0854455 C6.72827586,6.0854455 7.08413793,6.20958343 7.38206897,6.44130757 L7.01793103,6.85510068 C6.87360928,6.69688076 6.66932728,6.60675635 6.45517241,6.60682481 C6.15724138,6.60682481 5.94206897,6.75579033 5.94206897,6.95441102 C5.94206897,7.11992826 6.0662069,7.21096274 6.48,7.3516524 C7.27448276,7.59992826 7.5062069,7.8316524 7.5062069,8.34475585 L7.5062069,8.33647999 Z M4.08827586,6.1516524 L4.78344828,6.1516524 L4.78344828,9.30475585 L4.08827586,9.30475585 L4.08827586,6.1516524 Z M1.8537931,9.30475585 L0.827586207,9.30475585 L0.827586207,6.1516524 L1.8537931,6.1516524 C2.97931034,6.1516524 3.75724138,6.79716964 3.75724138,7.72406619 C3.75724138,8.19579033 3.52551724,8.64268688 3.12,8.94061792 C2.77241379,9.18889378 2.38344828,9.30475585 1.84551724,9.30475585 L1.8537931,9.30475585 Z M2.66482759,6.9378593 C2.43310345,6.75579033 2.16827586,6.68958343 1.71310345,6.68958343 L1.52275862,6.68958343 L1.52275862,8.77510068 L1.71310345,8.77510068 C2.16,8.77510068 2.44137931,8.69234206 2.66482759,8.52682481 C2.90482759,8.32820412 3.04551724,8.03027309 3.04551724,7.72406619 C3.04551724,7.4178593 2.90482759,7.12820412 2.66482759,6.9378593 Z",id:"shape",fill:"#000000"}),i.a.createElement("path",{d:"M12.4137931,6.06889378 C11.5034483,6.06889378 10.7586207,6.79716964 10.7586207,7.69923861 C10.7586207,8.65923861 11.4703448,9.37923861 12.4137931,9.37923861 C13.3406897,9.37923861 14.0689655,8.65096274 14.0689655,7.72406619 C14.0689655,6.79716964 13.3489655,6.06889378 12.4137931,6.06889378 Z",id:"shape",fill:"#F27712"})))))),hipercard:i.a.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.a.createElement("g",{id:"Group-2"},i.a.createElement("rect",{id:"Rectangle",fill:"#B3131B",x:"0",y:"0",width:"24",height:"16",rx:"2"}),i.a.createElement("g",{id:"Hipercard_logo",transform:"translate(2.000000, 6.000000)",fill:"#FFFFFF",fillRule:"nonzero"},i.a.createElement("path",{d:"M4.45845797,4.72911206 L4.71934477,4.72911206 L4.72670967,4.71021617 C4.73076043,4.69982332 4.73407456,4.67539055 4.73407456,4.65592007 C4.73407456,4.63644958 4.74267391,4.56566228 4.75318417,4.49861521 C4.76369454,4.43156695 4.78836018,4.27726169 4.80799675,4.15571305 C4.82763331,4.0341644 4.85703646,3.85139347 4.87333717,3.74955542 C4.88963776,3.64771736 4.90953167,3.51735868 4.91754595,3.45986946 C4.92556023,3.40238023 4.93534271,3.3553436 4.93928464,3.3553436 C4.94322668,3.3553436 4.96009268,3.38074637 4.9767648,3.41179473 L5.0070776,3.46824705 L5.07434118,3.5349692 L5.14160488,3.60169134 L5.22440039,3.63432372 L5.30719578,3.66695609 L5.40587279,3.67955056 L5.5045498,3.69214384 L5.62980554,3.68457856 L5.75506139,3.67701327 L5.8906751,3.64246001 L6.02628894,3.60790675 L6.09908975,3.57519075 C6.13913019,3.55719677 6.21011098,3.51796553 6.25682484,3.48801021 L6.34175912,3.43354447 L6.42095111,3.35561954 C6.46450662,3.31276155 6.5259323,3.24403729 6.55745263,3.20290069 C6.58897283,3.16176409 6.61476215,3.12510239 6.61476215,3.12143264 C6.61476215,3.11776169 6.63024834,3.09228724 6.64917582,3.06482382 C6.66810343,3.0373592 6.70683989,2.96113177 6.73525696,2.8954298 C6.76367415,2.82972783 6.80808531,2.71146429 6.83394853,2.63262192 L6.88097263,2.48927217 L6.90527961,2.36510142 C6.91864839,2.29680721 6.93584673,2.18391928 6.94349809,2.11423935 L6.95740984,1.98754804 L6.9493753,1.88003572 L6.94134076,1.77252341 L6.91602234,1.66501109 L6.89070392,1.55749878 L6.84971924,1.47700311 L6.80873457,1.39650745 L6.72956721,1.31388424 L6.65039973,1.23125983 L6.55674682,1.18360201 L6.4630938,1.13594299 L6.35995932,1.11163207 L6.25682484,1.08732115 L6.15369036,1.07986696 L6.05055588,1.07241397 L5.93566831,1.0854122 L5.82078075,1.09840925 L5.7270093,1.12198192 L5.63323773,1.1455534 L5.55177641,1.18267501 C5.50697261,1.2030916 5.44177912,1.23776791 5.40690207,1.25973387 C5.3720249,1.28169983 5.33604735,1.30697239 5.32695174,1.31589472 C5.31785613,1.32481824 5.29608043,1.34134766 5.27856116,1.3526257 L5.24670802,1.37313308 L5.26898276,1.26820942 C5.28123392,1.21050159 5.29147275,1.15656744 5.2917358,1.14835469 L5.29221386,1.13342243 L5.06976516,1.13342243 L4.84731634,1.13342243 L4.80831003,1.37532513 C4.78685648,1.50837162 4.75298372,1.71398893 4.73303727,1.83225247 C4.7130907,1.95051602 4.68301183,2.12791134 4.66619545,2.22646429 C4.64937895,2.32501725 4.61938307,2.49972476 4.59953794,2.61470321 C4.5796928,2.72968165 4.54689191,2.91245259 4.52664697,3.02086084 C4.50640216,3.12926909 4.47674372,3.28784975 4.46073931,3.37326231 C4.44473502,3.45867488 4.41461296,3.61994335 4.39380151,3.7316367 C4.37299019,3.84333005 4.33954562,4.02072536 4.31948026,4.12584852 C4.29941502,4.23097167 4.26676167,4.39761576 4.24691738,4.49616871 C4.2270731,4.59472167 4.20785211,4.68745104 4.20420394,4.70223398 L4.19757093,4.72911206 L4.45845773,4.72911206 L4.45845797,4.72911206 Z M5.58158434,3.34795511 L5.48028286,3.35395071 L5.41406652,3.34244331 L5.34785018,3.33093472 L5.28059837,3.30070464 L5.21334656,3.27047457 L5.16636177,3.22630134 L5.11937709,3.18212931 L5.09225746,3.12240025 C5.07734166,3.08954926 5.0581828,3.0337432 5.04968233,2.99838718 L5.03422684,2.93410437 L5.04041916,2.8311458 L5.04661147,2.72818843 L5.07787505,2.56691995 C5.09507,2.47822229 5.12594421,2.31157821 5.14648436,2.19659976 C5.1670245,2.08162131 5.19812318,1.9131519 5.21559259,1.82222277 L5.24735509,1.6568975 L5.3169102,1.5999088 C5.35516545,1.56856538 5.41576424,1.52655673 5.45157423,1.50655705 L5.51668327,1.470194 L5.60161755,1.44430981 L5.68655183,1.41842563 L5.79575304,1.41211346 L5.90495426,1.40580129 L5.99387134,1.42445946 L6.08278843,1.44311762 L6.1455397,1.47157016 L6.20829096,1.50002269 L6.2609103,1.55210763 L6.31352963,1.60419138 L6.34191746,1.65934519 C6.3575308,1.68968039 6.37946059,1.74905705 6.39065044,1.79129506 L6.41099548,1.86808991 L6.40476348,2.09506035 L6.39853137,2.32203079 L6.36736983,2.45618705 C6.35023095,2.52997394 6.31760514,2.64286188 6.29486799,2.70704912 L6.25352781,2.82375493 L6.20290006,2.91822719 C6.17505485,2.9701879 6.1321162,3.04040419 6.10748089,3.07426459 C6.08284558,3.10812381 6.04357913,3.15198525 6.0202222,3.17173287 C5.99686528,3.19148049 5.95774892,3.22234369 5.93329695,3.24031617 L5.8888387,3.27299275 L5.7858622,3.30747553 L5.6828857,3.34195951 L5.58158434,3.34795511 Z M8.10111202,3.67635864 L8.23458018,3.67786023 L8.36804833,3.665875 C8.44145581,3.6592833 8.56157715,3.64555995 8.63498463,3.63537973 C8.70839211,3.62519831 8.83520336,3.60240928 8.91678734,3.58473665 L9.06512179,3.5526048 L9.07250973,3.498771 C9.07657311,3.4691621 9.093232,3.38101873 9.10952955,3.3028967 L9.1391613,3.16085621 L9.1326233,3.1544198 L9.12608543,3.1479822 L9.0807372,3.1695444 C9.05579576,3.181403 8.97811171,3.20969069 8.90810597,3.23240685 L8.78082285,3.27370711 L8.6472364,3.29918394 L8.51364995,3.32466077 L8.30131425,3.32506693 L8.08897856,3.32547309 L8.01617775,3.30258252 C7.9761373,3.28999283 7.91724557,3.26695772 7.88530737,3.25139472 L7.82723768,3.22309628 L7.7793106,3.18046765 L7.73138352,3.13783782 L7.69398963,3.07349051 L7.65659562,3.00914319 L7.63315109,2.92843011 L7.60970656,2.84771703 L7.60953911,2.69835615 L7.60937167,2.54899526 L7.63018579,2.41575047 L7.65099978,2.28250449 L7.83358895,2.27410658 L8.01617823,2.26570748 L8.69111697,2.26997453 L9.3660557,2.27424157 L9.38643459,2.18913124 C9.39764288,2.14232038 9.41477886,2.04555929 9.42451439,1.97410661 L9.44221542,1.84419231 L9.44258913,1.73490963 L9.44296284,1.62562694 L9.42374501,1.54404301 L9.40452717,1.46245909 L9.37275132,1.40843654 C9.35527451,1.37872491 9.32448062,1.33566504 9.3043205,1.31274938 C9.28416037,1.28983373 9.24816377,1.25752509 9.22432794,1.24095266 C9.20049222,1.22438023 9.15368992,1.19652977 9.12032288,1.17906499 L9.05965554,1.14730824 L8.95365525,1.12215633 L8.84765497,1.09700442 L8.71705262,1.08471099 L8.58645027,1.07241636 L8.46511559,1.08019547 L8.34378091,1.08797458 L8.19817929,1.11550012 L8.05257767,1.14302686 L7.96157665,1.17884877 C7.9115261,1.198551 7.83508525,1.23447922 7.7917081,1.2586898 C7.74833095,1.28290038 7.68827028,1.32231081 7.65823994,1.34626814 C7.62820961,1.37022427 7.57621515,1.4167998 7.54269681,1.44976786 C7.50917834,1.48273591 7.45959784,1.54196325 7.43251788,1.58138443 C7.40543792,1.62080561 7.36392374,1.69068862 7.34026433,1.73668 C7.31660479,1.78267138 7.28577559,1.84717876 7.27175488,1.88002975 C7.25773417,1.91288073 7.23225571,1.98007593 7.21513599,2.02935241 C7.1980164,2.07862889 7.17110667,2.17270216 7.15533656,2.23840413 C7.13956645,2.3041061 7.11795686,2.41225991 7.10731533,2.47874552 L7.08796742,2.59963476 L7.08814699,2.77739681 L7.08832657,2.95515887 L7.10676835,3.03280665 C7.11691132,3.07551293 7.13630473,3.14002032 7.14986473,3.1761564 C7.16342485,3.21229249 7.18849963,3.26604864 7.20558671,3.29561453 C7.22267367,3.32518042 7.2591652,3.37278329 7.28667905,3.40139948 C7.31419278,3.43001568 7.36400431,3.47343751 7.39737135,3.49789178 C7.43073838,3.52234606 7.49013972,3.55674044 7.52937438,3.57432587 L7.60070995,3.60629765 L7.70017273,3.62996947 C7.75487732,3.64298921 7.83743756,3.65841484 7.88363999,3.66425037 C7.92984242,3.6700847 8.02770503,3.67553319 8.10111251,3.67635864 L8.10111202,3.67635864 Z M8.32965888,1.99352094 C7.99374575,1.99352094 7.71890777,1.99115328 7.71890777,1.98826001 C7.71890777,1.98536673 7.73323995,1.94370571 7.75075703,1.89567996 C7.76827412,1.84765421 7.79903902,1.77617166 7.81912342,1.73682932 L7.85564031,1.66529779 L7.93590903,1.58670271 L8.01617775,1.50810762 L8.09504529,1.47097884 C8.13842244,1.45055747 8.19575308,1.42832273 8.22244671,1.42156738 C8.24914034,1.41481202 8.32558119,1.40585027 8.39231526,1.40165251 L8.51364995,1.39401794 L8.60682685,1.40580726 L8.70000364,1.41759659 L8.76771701,1.44811814 L8.8354305,1.4786385 L8.87257529,1.51806804 C8.89300502,1.53975447 8.9173507,1.5716916 8.92667697,1.58903811 L8.94363374,1.62057745 L8.95483159,1.69057752 L8.96602945,1.76057759 L8.95321966,1.87704927 L8.94040987,1.99352094 L8.32965888,1.99352094 Z M11.959629,3.67642315 L12.0931723,3.67788054 L12.2447655,3.66019237 C12.328143,3.6504637 12.4391291,3.63434164 12.4914025,3.62436569 C12.5436771,3.61438974 12.628308,3.59458597 12.6794712,3.58035851 C12.7306357,3.56612985 12.7769248,3.55074723 12.7823351,3.54617318 C12.7877455,3.54159912 12.8022037,3.48738425 12.8144634,3.42569488 C12.826723,3.3640055 12.8421665,3.28127956 12.8487817,3.24185837 C12.8553968,3.20243719 12.858816,3.16807267 12.8563809,3.16549477 C12.8539445,3.16291567 12.8449948,3.16624735 12.8364917,3.1728952 C12.8279885,3.17954304 12.7684545,3.20420995 12.7041944,3.22770736 L12.5873588,3.27043156 L12.420981,3.302168 L12.2546045,3.33390325 L12.1131465,3.32915121 L11.9716884,3.32439797 L11.8913406,3.29696441 L11.8109916,3.26953085 L11.7489046,3.21605781 L11.6868164,3.16258596 L11.6456318,3.08873695 L11.6044472,3.01488793 L11.5848322,2.91609248 L11.5652172,2.81729702 L11.5653386,2.68912203 L11.5654599,2.56094705 L11.5892961,2.40565148 L11.6131335,2.25035592 L11.6383541,2.16673523 C11.6522263,2.12074385 11.6679222,2.06698769 11.6732342,2.0472771 C11.678545,2.02756651 11.7007978,1.97112254 11.722683,1.92184607 C11.7445681,1.87256959 11.7836087,1.79641025 11.8094409,1.75260257 L11.8564059,1.67295267 L11.9140896,1.61410998 L11.9717721,1.5552673 L12.0328581,1.51796531 L12.0939452,1.48066331 L12.172393,1.45687442 C12.2155396,1.44379137 12.2917924,1.42680322 12.3418429,1.41912326 L12.4328439,1.40516219 L12.5663121,1.41175628 L12.6997802,1.41835037 L12.8575153,1.44943457 L13.0152504,1.48051877 L13.0794061,1.50407591 C13.1146915,1.51703353 13.145104,1.52763425 13.1469871,1.52763425 C13.1488715,1.52763425 13.1573345,1.48328542 13.1657928,1.42908129 C13.1742522,1.37487717 13.1893087,1.28569809 13.1992508,1.23090743 C13.209193,1.17611557 13.2149333,1.12892841 13.2120067,1.12604708 C13.2090789,1.12316575 13.1616662,1.11575337 13.1066446,1.109575 C13.0516217,1.10339663 12.9020779,1.09242679 12.7743246,1.08519718 L12.5420452,1.0720532 L12.3782433,1.08442906 L12.2144415,1.09680493 L12.0931068,1.12190786 L11.9717721,1.14701198 L11.8936314,1.17778201 C11.8506546,1.19470683 11.787705,1.2252463 11.7537446,1.24564856 C11.7197843,1.26605201 11.6765552,1.29349632 11.6576803,1.30663671 C11.6388043,1.3197771 11.5815404,1.37104495 11.5304257,1.42056632 L11.4374894,1.5106043 L11.3856128,1.58542809 C11.3570809,1.62658022 11.3077232,1.71239058 11.2759299,1.77611671 L11.2181236,1.89198153 L11.1738182,2.01741257 C11.1494494,2.08639964 11.1154271,2.19928757 11.098211,2.26827464 L11.0669102,2.39370567 L11.0555485,2.50719089 L11.0441879,2.62067611 L11.0443092,2.76999877 L11.0444306,2.91932143 L11.0558894,3.0061878 L11.0673483,3.09305536 L11.1036916,3.18241243 L11.1400338,3.27176949 L11.1820095,3.33637364 L11.2239841,3.4009766 L11.2907327,3.46565123 L11.3574813,3.53032586 L11.4280836,3.56706401 L11.4986858,3.60380216 L11.591451,3.6291691 C11.642471,3.64312061 11.7161818,3.65913278 11.7552528,3.6647509 C11.7943226,3.67037021 11.8863841,3.67562278 11.9598316,3.67642315 L11.959629,3.67642315 Z M13.9555105,3.67201037 L14.1193123,3.66738973 L14.2224468,3.64140161 L14.3255813,3.6154123 L14.3923154,3.5843508 C14.4290191,3.56726709 14.4890798,3.53354287 14.5257835,3.50940874 C14.5624872,3.48527462 14.6192998,3.43939314 14.6520322,3.40745004 C14.6847659,3.37550574 14.7333071,3.32100536 14.7599012,3.28633861 C14.7864953,3.25167066 14.8098571,3.22488337 14.8118155,3.22681143 C14.8137726,3.22873948 14.8076537,3.2839817 14.7982163,3.34957257 C14.7887801,3.41516345 14.7809516,3.50242641 14.7808217,3.54349015 L14.7805912,3.61815148 L15.003278,3.61815148 L15.2259647,3.61815148 L15.2327728,3.44792364 L15.2395797,3.27769581 L15.2713548,3.05669828 C15.2888318,2.93514963 15.3170592,2.75506651 15.3340824,2.65651355 C15.3511044,2.55796059 15.3806943,2.39131651 15.3998373,2.28619336 C15.4189803,2.1810702 15.4493055,2.01711392 15.4672278,1.92184607 L15.4998135,1.74863178 L15.5009055,1.59901287 L15.5019975,1.44939515 L15.4676343,1.38024561 L15.4332723,1.31109728 L15.3866749,1.26705665 L15.3400776,1.22301602 L15.2635748,1.18484915 L15.1870721,1.14668347 L15.0730551,1.12171553 L14.9590393,1.09674639 L14.8020602,1.08498574 L14.645081,1.07322389 L14.4428707,1.08554122 C14.3316553,1.09231569 14.1751408,1.10569261 14.0950599,1.11526718 L13.9494583,1.13267701 L13.8502272,1.13304733 L13.750996,1.13341765 L13.7365584,1.20210607 C13.7286171,1.2398847 13.7065499,1.32964076 13.687521,1.40156411 C13.6684909,1.47348627 13.6546854,1.53406946 13.6568415,1.53619223 C13.6589976,1.538315 13.7120682,1.52645639 13.7747764,1.50983976 C13.8374846,1.49322194 13.9706919,1.4658947 14.070793,1.44911203 L14.252795,1.41859765 L14.4165969,1.411951 L14.5803987,1.40530435 L14.6859089,1.42351335 L14.7914191,1.44172116 L14.8618442,1.47594352 L14.9322693,1.51016469 L14.971703,1.56803021 L15.0111368,1.62589572 L15.0105787,1.7171259 L15.0100205,1.80835607 L14.989117,1.90846915 L14.9682134,2.00858342 L14.5316331,2.01013398 L14.0950539,2.01168455 L13.9521677,2.05025639 C13.8735792,2.07147095 13.786558,2.09963679 13.7587857,2.11284647 C13.7310146,2.12605735 13.7032351,2.13686592 13.6970543,2.13686592 C13.6908735,2.13686592 13.6441232,2.16238934 13.5931651,2.19358344 L13.5005139,2.25030097 L13.4275457,2.32200093 C13.387413,2.36143645 13.3361406,2.42057897 13.3136063,2.45342996 C13.2910733,2.48628094 13.2544617,2.55490844 13.232249,2.60593498 L13.1918603,2.69871094 L13.173324,2.80304089 L13.1547877,2.90737084 L13.1547877,3.01681838 L13.1547877,3.12626711 L13.1724965,3.21739215 L13.1902065,3.3085184 L13.2230615,3.3679524 C13.2411331,3.40064092 13.2742951,3.44852332 13.2967566,3.47435973 L13.3375954,3.52133305 L13.4101681,3.56473577 L13.4827396,3.60813849 L13.5658078,3.63128231 C13.6114963,3.64401177 13.6810332,3.65942187 13.720336,3.66552618 L13.7917948,3.67662623 L13.9555966,3.67200559 L13.9555105,3.67201037 Z M14.1071788,3.33797677 L14.0101111,3.34295937 L13.9458219,3.32683969 C13.9104626,3.31797351 13.8568096,3.2982008 13.8265924,3.2829006 L13.771652,3.25508 L13.7416666,3.21999634 C13.7251748,3.20069908 13.6999809,3.16278307 13.6856804,3.13573655 L13.6596808,3.08656281 L13.6545823,2.97172771 L13.649485,2.85689381 L13.6700525,2.78723658 C13.6813657,2.74892516 13.7079052,2.68244671 13.7290308,2.6395051 L13.7674417,2.56143085 L13.840996,2.48951348 L13.9145503,2.4175973 L13.9926644,2.38056886 L14.0707784,2.34354042 L14.1678462,2.3208398 L14.2649139,2.29813917 L14.5682506,2.29813917 L14.8715874,2.29813917 L14.8907789,2.30595173 L14.9099692,2.31376429 L14.8938183,2.40749114 C14.8849342,2.4590409 14.8637479,2.55228633 14.8467356,2.61470321 C14.8297232,2.67712008 14.7996905,2.76887348 14.7799954,2.81860031 C14.7603004,2.86832714 14.7441859,2.91229012 14.7441859,2.91629675 C14.7441859,2.92030338 14.7242458,2.95653742 14.6998745,2.99681631 L14.6555643,3.07005131 L14.5828035,3.14102257 C14.5427861,3.18005671 14.5056371,3.21199384 14.5002523,3.21199384 C14.4948674,3.21199384 14.4703372,3.22543885 14.4457427,3.24187151 L14.4010235,3.27174799 L14.3026357,3.30237108 L14.2042466,3.33299417 L14.1071788,3.33797677 Z M18.0566228,3.67628099 L18.1718907,3.67771091 L18.281092,3.66026166 C18.3411526,3.65066439 18.4175935,3.63520412 18.4509605,3.6259067 C18.4843276,3.61660808 18.5443882,3.59247515 18.5844287,3.57227836 L18.6572295,3.53555693 L18.7198576,3.48128471 L18.7824857,3.4270125 L18.8484444,3.34040775 C18.8847223,3.29277621 18.9175725,3.24574076 18.9214467,3.23588547 L18.9284889,3.21796675 L18.922364,3.27769581 C18.9189945,3.3105468 18.9114402,3.36430295 18.9055761,3.39715394 C18.8997132,3.43000492 18.8913059,3.49316841 18.8868942,3.53751724 L18.8788715,3.61815148 L19.1168877,3.61815148 L19.3549039,3.61815148 L19.3549039,3.53751724 L19.3549039,3.456883 L19.391166,3.15226478 C19.411111,2.98472475 19.4406038,2.7616367 19.4567061,2.65651355 C19.4728085,2.5513904 19.4976627,2.40087316 19.5119389,2.32203079 C19.5262139,2.24318843 19.5514964,2.10073461 19.5681205,2.00546676 C19.5847433,1.9101989 19.6147725,1.74355481 19.6348497,1.63514656 C19.654927,1.52673831 19.68706,1.35471861 19.7062552,1.25288055 C19.7254515,1.1510425 19.7552865,0.992461836 19.7725549,0.900479078 C19.7898244,0.80849632 19.8207636,0.647227848 19.841308,0.542104696 C19.8618536,0.436981544 19.8918657,0.289152111 19.9080008,0.213594845 C19.9241371,0.13803758 19.9373165,0.0721862871 19.9372885,0.0672586394 L19.9372886,0.0582992798 L19.6776105,0.0582992798 L19.4179324,0.0582992798 L19.4102629,0.132960609 C19.4060453,0.174024341 19.386167,0.309758638 19.3660873,0.434592381 C19.3460089,0.559426124 19.3132764,0.758323906 19.2933496,0.876587452 C19.2734228,0.994850998 19.2542119,1.109532 19.2506592,1.13143345 L19.2442006,1.17125601 L19.2237071,1.16267653 C19.2124364,1.15795674 19.1513431,1.14127321 19.0879458,1.12560031 L18.9726778,1.09710477 L18.8149427,1.08501083 L18.6572076,1.07291569 L18.5237395,1.08516015 L18.3902713,1.09740461 L18.2689366,1.12760004 L18.147602,1.15779547 L18.032334,1.21314639 L17.9170661,1.26849731 L17.8321318,1.33040529 L17.7471975,1.39231447 L17.6738471,1.46974245 C17.6335045,1.51232808 17.5752238,1.58276537 17.5443344,1.62626963 L17.488171,1.70537002 L17.4222183,1.84048553 C17.3859453,1.91479923 17.3418026,2.01323153 17.3241241,2.05922291 C17.3064456,2.10521429 17.2752675,2.20716464 17.2548384,2.28577884 L17.2176966,2.42871287 L17.1993969,2.61428869 L17.1810984,2.7998633 L17.1948396,2.94918596 L17.2085795,3.09850862 L17.224825,3.15226478 C17.2337589,3.18183067 17.2525985,3.23450692 17.2666891,3.26932419 L17.2923089,3.33262744 L17.3390179,3.39487707 L17.3857281,3.45712789 L17.4390608,3.5001364 L17.4923947,3.54314491 L17.5651955,3.57873388 C17.6052359,3.59830709 17.6724044,3.62360354 17.714459,3.63494729 C17.7565136,3.64629103 17.8247643,3.65990926 17.8661273,3.66521081 C17.9074903,3.67051236 17.9932036,3.67549377 18.056601,3.67628099 L18.0566228,3.67628099 Z M18.2635057,3.33735678 L18.1718907,3.34214706 L18.1100549,3.33118916 C18.0760448,3.3251625 18.0216226,3.30900698 17.989117,3.29528841 L17.9300149,3.27034555 L17.8802835,3.23022554 L17.830552,3.19010433 L17.7935947,3.12041485 L17.7566361,3.05072537 L17.7397949,2.97307759 L17.7229524,2.8954298 L17.7243805,2.74013424 L17.7258074,2.58483867 L17.7453666,2.44746183 L17.7649257,2.31008498 L17.7953249,2.21451848 C17.8120436,2.1619569 17.8258042,2.11236625 17.8259049,2.10431836 C17.8260262,2.09627046 17.8425132,2.05326554 17.8625892,2.00875185 C17.8826665,1.96423817 17.9162082,1.89556528 17.9371288,1.8561441 C17.9580481,1.81672291 17.9971506,1.75526768 18.0240226,1.71957718 C18.0508934,1.68388667 18.0987648,1.63013051 18.1304016,1.60011905 C18.1620384,1.57010758 18.2123656,1.53074374 18.2422382,1.51264345 L18.2965536,1.47973512 L18.3919567,1.44723295 L18.4873609,1.41473079 L18.6875631,1.41461133 L18.8877654,1.41461133 L19.0030333,1.44609571 C19.0664307,1.46341117 19.1337447,1.48349327 19.1526184,1.49072169 L19.1869367,1.50386327 L19.1802341,1.53665453 C19.176548,1.55468912 19.1621274,1.63395198 19.1481884,1.71279434 C19.1342495,1.79163671 19.1067842,1.94215395 19.0871522,2.0472771 C19.0675203,2.15240025 19.0373589,2.31098092 19.0201245,2.39967858 C19.0028914,2.48837624 18.9779292,2.60126417 18.9646527,2.65054064 C18.9513763,2.69981712 18.9326471,2.76806952 18.9230301,2.80221304 C18.9134143,2.83635657 18.890516,2.89548834 18.872146,2.93361698 C18.8537759,2.97174563 18.8216307,3.02713239 18.8007126,3.05669828 C18.7797957,3.08626416 18.7444145,3.12722038 18.7220889,3.14771103 C18.6997633,3.16820288 18.6514661,3.2046173 18.6147623,3.22863316 L18.5480283,3.2722975 L18.4515745,3.30243201 L18.3551207,3.33256771 L18.2635057,3.33735798 L18.2635057,3.33735678 Z M0.406035224,3.61815148 L0.700846957,3.61815148 L0.721999232,3.48973399 C0.733631588,3.41910437 0.756352721,3.28337007 0.772489021,3.18810222 C0.78862532,3.09283436 0.818658081,2.91543904 0.839229163,2.7938904 C0.859799032,2.67234175 0.890636242,2.49225862 0.907755352,2.39370567 C0.924874463,2.29515271 0.952074059,2.14227379 0.968198225,2.05397392 C0.984323604,1.96567525 1.00057639,1.89041663 1.00431713,1.88673254 L1.01111794,1.88003572 L1.80383747,1.88003572 L2.596557,1.88003572 L2.60535861,1.88869883 L2.61416145,1.89736193 L2.60041544,1.96634661 C2.59285507,2.0042877 2.57049188,2.12134114 2.55072039,2.22646429 C2.53094769,2.33158744 2.49770806,2.50898276 2.47685426,2.62067611 C2.45600047,2.73236946 2.42584638,2.89095012 2.40984597,2.97307759 C2.39384435,3.05520505 2.36146377,3.22722475 2.33788965,3.3553436 C2.31431432,3.48346244 2.29507549,3.59500646 2.29513616,3.60321921 L2.2952575,3.61815148 L2.59128136,3.61815148 L2.88730644,3.61815148 L2.90040452,3.54349015 C2.90760938,3.50242641 2.91920048,3.4285117 2.92616388,3.37923522 C2.93312606,3.32995874 2.9499115,3.22513424 2.96346337,3.14629187 C2.97701646,3.06744951 3.00409472,2.91155665 3.02363688,2.7998633 C3.04317905,2.68816995 3.07588966,2.4973356 3.09632728,2.37578695 C3.11676368,2.25423831 3.14708242,2.07684299 3.16370127,1.98157513 C3.18032,1.88630727 3.2099327,1.7250388 3.22950738,1.62320075 C3.24908194,1.52136269 3.28168651,1.34934299 3.30196202,1.24093474 C3.32223741,1.13252649 3.3526127,0.96857021 3.36946269,0.876587452 C3.3863128,0.784604694 3.41703596,0.617960606 3.43773662,0.506267257 C3.45843729,0.394573908 3.48457667,0.264215227 3.49582403,0.216581299 L3.5162739,0.129974156 L3.21654665,0.129974156 L2.91681989,0.129974156 L2.90866742,0.186716767 C2.9041841,0.217925202 2.88970402,0.305278958 2.87649067,0.380836224 C2.86327611,0.456393489 2.83924092,0.590783883 2.82307672,0.679481542 C2.80691251,0.768179202 2.77737358,0.937511097 2.75743465,1.05577464 C2.73749451,1.17403819 2.7120846,1.33059045 2.7009667,1.40366896 L2.68075113,1.53653985 L2.24076366,1.54530688 L1.80077498,1.55407391 L1.43224272,1.54546337 C1.22954949,1.54072805 1.0625869,1.53591269 1.06121339,1.53476231 C1.05983988,1.53361551 1.06674383,1.4871905 1.07655495,1.43160066 C1.08636486,1.37601082 1.10492543,1.27945999 1.11780025,1.21704312 C1.13067507,1.15462624 1.15508154,1.03098708 1.17203685,0.942289422 C1.18899095,0.853591763 1.20819702,0.74339164 1.21471511,0.697400261 C1.22123321,0.651408882 1.23489429,0.574806358 1.24507305,0.52717243 C1.25525061,0.479538501 1.27456709,0.379202037 1.28799762,0.304203835 C1.30142816,0.229204439 1.31573716,0.159321434 1.3197958,0.148908269 L1.32717538,0.129974156 L1.02986779,0.129974156 L0.732560203,0.129974156 L0.713517938,0.234500018 C0.703043115,0.291989241 0.689078706,0.373967381 0.682484166,0.416673662 C0.675889626,0.459379942 0.653744833,0.596458144 0.633273245,0.721291887 C0.612802871,0.84612563 0.582582041,1.03158437 0.566118138,1.13342243 C0.549653021,1.23526048 0.519668795,1.42071922 0.499487197,1.54555297 C0.479305599,1.67038671 0.446005295,1.86390887 0.4254876,1.97560222 C0.404969905,2.08729557 0.375264748,2.24587624 0.359476679,2.3280037 C0.343687397,2.41013116 0.313600035,2.56602402 0.292613988,2.67443227 C0.271629155,2.78284052 0.241013987,2.93604557 0.224581631,3.01488793 C0.208148062,3.0937303 0.189981833,3.18511576 0.184209942,3.21796675 C0.178439265,3.25081773 0.159657869,3.34556595 0.142475664,3.42851887 C0.125292247,3.51147178 0.111233197,3.58807431 0.111233197,3.5987467 L0.111233197,3.61815148 L0.40604493,3.61815148 L0.406035224,3.61815148 Z M3.6696828,3.61815148 L3.93066933,3.61815148 L3.93803423,3.59925559 C3.94208498,3.58886273 3.94539912,3.56160239 3.94539912,3.53867598 C3.94539912,3.51574958 3.96181061,3.39658174 3.98186905,3.27385882 C4.00192749,3.1511347 4.03506982,2.95127648 4.0555186,2.82972783 C4.07596737,2.70817919 4.10616636,2.53078387 4.12262747,2.43551601 C4.13908859,2.34024816 4.16836313,2.18166749 4.18768216,2.08311454 C4.20700119,1.98456158 4.23665805,1.83135654 4.2535863,1.74265888 C4.27051468,1.65396122 4.3038043,1.48521228 4.32756345,1.3676607 C4.3513226,1.25010912 4.37372499,1.14921121 4.37734671,1.14344138 L4.38393166,1.13295176 L4.1200058,1.13617355 L3.85607993,1.13939533 L3.83409918,1.2946909 C3.82200988,1.38010346 3.79557869,1.54943535 3.77536324,1.670984 C3.75514791,1.79253264 3.72457012,1.97799139 3.70741291,2.08311454 C3.69025558,2.18823769 3.66033444,2.35756959 3.64092138,2.45940764 C3.62150844,2.56124569 3.59175924,2.71713855 3.57481193,2.80583621 C3.55786476,2.89453387 3.52745513,3.05042672 3.50723495,3.15226478 C3.48701476,3.25410283 3.45988239,3.38849323 3.44694071,3.4509101 C3.43399891,3.51332697 3.42009966,3.57649045 3.41605327,3.5912734 L3.40869626,3.61815148 L3.6696828,3.61815148 Z M9.77371379,3.61815148 L10.0327662,3.61815148 L10.0405474,3.5102342 C10.0448257,3.45088023 10.0594866,3.33127278 10.0731246,3.24443986 C10.0867638,3.15760695 10.1146878,2.98442611 10.1351788,2.85959237 C10.155671,2.73475862 10.1937543,2.52697555 10.2198085,2.39785326 C10.2458627,2.26872977 10.2753155,2.14038396 10.2852589,2.11263742 C10.295201,2.08489208 10.3033365,2.05482685 10.3033365,2.04582568 C10.3033365,2.03682332 10.3228132,1.98777501 10.346619,1.9368285 C10.3704237,1.885882 10.4147873,1.80786868 10.4452047,1.76346729 L10.5005078,1.6827351 L10.5745377,1.61525798 L10.6485665,1.54777966 L10.7398538,1.50485597 L10.8311424,1.46193228 L10.9706773,1.46264903 L11.1102122,1.46336577 L11.1788136,1.48354942 C11.216545,1.49465186 11.2506704,1.50373426 11.2546478,1.50373426 C11.2586263,1.50373426 11.2618805,1.49103467 11.2618805,1.47551228 C11.2618805,1.45999108 11.2755307,1.38130521 11.2922142,1.30065544 C11.3088977,1.22000687 11.3225479,1.15061842 11.3225479,1.14646009 C11.3225479,1.14230175 11.2829624,1.12704814 11.2345802,1.11256384 C11.186198,1.09807954 11.1193123,1.08290836 11.0859452,1.07885156 L11.0252779,1.07147502 L10.9464103,1.08520913 C10.9030332,1.09276246 10.8385341,1.10943762 10.8030789,1.12226504 C10.7676249,1.13509245 10.7090846,1.16418528 10.6729899,1.18691816 C10.6368953,1.20964985 10.5807489,1.25394851 10.5482203,1.28535763 C10.5156916,1.31676676 10.4609794,1.3800951 10.4266368,1.42608648 C10.392293,1.47207786 10.356378,1.5204584 10.3468229,1.53359879 L10.3294514,1.55749042 L10.339999,1.50970717 C10.3458012,1.48342638 10.3619594,1.39741653 10.375908,1.31857416 C10.3898566,1.2397318 10.4041729,1.16581708 10.4077208,1.15431924 L10.4141733,1.13341406 L10.1828196,1.13341406 L9.95146594,1.13341406 L9.95146594,1.16220945 C9.95146594,1.1780472 9.93781118,1.27346438 9.92112208,1.37424762 C9.90443298,1.47503205 9.87691282,1.64350027 9.85996613,1.74862342 C9.84301943,1.85374657 9.8129425,2.03651751 9.79312843,2.15478105 C9.77331448,2.2730446 9.74322906,2.44237649 9.72627205,2.53107415 C9.70931504,2.61977181 9.67920475,2.77566467 9.65936022,2.87750272 C9.63951569,2.97934078 9.60656725,3.14598486 9.58614129,3.24782292 C9.56571544,3.34966097 9.54127633,3.46992783 9.53183225,3.515083 C9.52238804,3.56023818 9.51466108,3.6018992 9.51466108,3.60766305 L9.51466108,3.61815148 L9.77371379,3.61814311 L9.77371379,3.61815148 Z M15.9231926,3.61815148 L16.1880687,3.61815148 L16.1880687,3.53834508 L16.1880687,3.4585375 L16.2185916,3.26060494 C16.2353807,3.15174036 16.2630766,2.97934914 16.2801399,2.87751109 C16.2972031,2.77567303 16.3184719,2.64665825 16.3274021,2.59081158 C16.3363336,2.53496491 16.3600011,2.41401355 16.3799983,2.32203079 C16.3999955,2.23004804 16.4249722,2.13059914 16.4355041,2.10103326 C16.4460347,2.07146737 16.4547308,2.04044768 16.4548278,2.03210114 C16.4549492,2.0237546 16.4775041,1.97007848 16.5050034,1.9128222 L16.555003,1.80871922 L16.6209641,1.72243342 L16.6869253,1.63614762 L16.7591146,1.58271997 C16.7988189,1.55333566 16.862664,1.51433975 16.9009912,1.49606385 L16.9706774,1.46283419 L17.1223457,1.46386153 L17.2740141,1.46488886 L17.3337192,1.48376564 L17.3934244,1.50264122 L17.4034867,1.49651779 L17.413549,1.49039556 L17.4140586,1.45227648 C17.4143376,1.43131157 17.4273241,1.35330183 17.4429192,1.27892123 L17.4712752,1.14368388 L17.4393799,1.13139044 C17.4218386,1.12462911 17.3801856,1.1106334 17.3468185,1.10028833 L17.2861512,1.08147964 L17.17695,1.0817544 L17.0677488,1.08202915 L16.9787546,1.11285532 L16.8897605,1.1436803 L16.8229391,1.18334995 L16.7561176,1.22301961 L16.669242,1.3126132 L16.5823676,1.4022068 L16.5356913,1.47170873 C16.5100193,1.50993414 16.4874171,1.53950002 16.4854648,1.5374107 C16.4835113,1.53532018 16.4974648,1.45566431 16.5164719,1.36039645 C16.535479,1.2651286 16.5512658,1.17508703 16.5515534,1.16030409 L16.5520751,1.1334272 L16.327606,1.1334272 L16.1031368,1.1334272 L16.1031368,1.14103908 C16.1031368,1.14522489 16.0919461,1.22182741 16.0782681,1.31126691 C16.0645912,1.40070521 16.0371283,1.57333176 16.0172416,1.6948804 C15.9973536,1.81642905 15.9647218,2.01263902 15.9447271,2.13090257 C15.9247312,2.24916611 15.894588,2.41849801 15.8777419,2.50719567 C15.8608958,2.59589333 15.8309746,2.75178618 15.8112517,2.85362424 C15.7915287,2.95546229 15.7591214,3.11941857 15.7392359,3.21797153 C15.7193504,3.31652448 15.6930086,3.44688316 15.6806992,3.50765749 L15.6583178,3.61815625 L15.9231951,3.61815625 L15.9231926,3.61815148 Z M4.18287366,0.70311036 L4.25654638,0.703373168 L4.31510626,0.683728279 L4.37366602,0.664083389 L4.42549425,0.612324572 L4.47732236,0.56056456 L4.50462182,0.491606161 L4.53192127,0.422646568 L4.5328968,0.32110716 L4.53387233,0.219567752 L4.5096054,0.179918405 L4.48533846,0.140270252 L4.4430896,0.114516275 L4.40084074,0.0887622969 L4.30962145,0.0887622969 L4.21840216,0.0887611023 L4.15629991,0.116134932 L4.09419767,0.143508762 L4.05814865,0.181538257 L4.0220995,0.219567752 L3.99378945,0.285269722 L3.96547928,0.350971692 L3.96012782,0.453313859 L3.95477635,0.555656026 L3.98113328,0.606521296 L4.00749008,0.657385372 L4.05834557,0.680117059 L4.10920094,0.702848746 L4.18287366,0.703111554 L4.18287366,0.70311036 Z",id:"path2997"})))),jcb:Tc,unionpay:_c,mastercard:Pc,placeholder:Rc,visa:Ac};n(974);function Dc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Ic(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dc(Object(n),!0).forEach((function(t){T()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fc=function(e){var t=e.label,n=e.onChange,c=e.value,a=Object(o.useState)(c?c.card_number:""),r=Fe()(a,2),i=r[0],l=r[1],s=Object(o.useState)(c?"".concat(c.card_exp_month," ").concat(c.card_exp_year):""),u=Fe()(s,2),f=u[0],h=u[1],p=Object(o.useState)(c?c.card_cvc:""),d=Fe()(p,2),m=d[0],v=d[1],g=Object(o.useState)(c?c.card_zip:""),b=Fe()(g,2),y=b[0],z=b[1],C=ot();Object(o.useEffect)((function(){n&&n({card_number:i.replace(/\s+/g,""),card_exp_month:f.substr(0,2),card_exp_year:f.substr(3,5),card_cvc:m,card_zip:y})}),[n,i,f,m,y]);var x=Cc(),M=x.wrapperProps,L=x.getCardImageProps,w=x.getCardNumberProps,H=x.getExpiryDateProps,V=x.getCVCProps,S=x.getZIPProps,E=Ic(Ic({},M),{},{styles:{fieldWrapper:{base:{width:"100%"}},inputWrapper:{base:{display:"flex",alignItems:"center",marginTop:"8px",border:"1px solid #b8b8b8",overflow:"hidden",padding:"14px 14px",boxShadow:"0 0 0 0 ".concat(C),transition:"box-shadow 0.1s ease",borderRadius:"4px"},errored:{border:"1px solid #b8b8b8",boxShadow:"0 0 0 1px #c9444d"},focused:{border:"1px solid #b8b8b8",boxShadow:"0 0 0 1px ".concat(C)}},input:{base:{fontSize:"14px",fontFamily:"Montserrat, Arial, Helvetica, sans-serif",fontWeight:"500",color:"#828382",lineHeight:"1.2"},cardNumber:{flex:"1"}}}});return React.createElement("div",{className:"give-donor-dashboard-card-control"},React.createElement("label",{className:"give-donor-dashboard-card-control__label"},t),React.createElement(Oc,E,React.createElement("svg",L({images:jc})),React.createElement("input",w({onChange:function(e){return l(e.target.value)},value:i})),React.createElement("input",H({onChange:function(e){return h(e.target.value)},value:f})),React.createElement("input",V({onChange:function(e){return v(e.target.value)},value:m})),React.createElement("input",S({onChange:function(e){return z(e.target.value)},value:y}))))};Fc.propTypes={label:s.a.string,value:s.a.object,onChange:s.a.func},Fc.defaultProps={label:null,value:null,onChange:null};var Uc=Fc,Bc=(n(975),function(e){var t=e.gateway,n=e.label,c=e.onChange;switch(t){case"stripe":return React.createElement(nc,{label:n,onChange:function(e){return c(e)}});default:return React.createElement(Uc,{label:n,onChange:function(e){return c(e)}})}}),Zc={subscriptions:null,querying:!1};function Wc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function $c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wc(Object(n),!0).forEach((function(t){T()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qc=M((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zc,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_SUBSCRIPTIONS":return $c($c({},e),{},{subscriptions:t.payload.subscriptions});case"SET_QUERYING":return $c($c({},e),{},{querying:t.payload.querying});default:return e}})),Gc=function(e){return{type:"SET_QUERYING",payload:{querying:e}}},Kc=function(){var e=qc.dispatch;if(B())return e(Gc(!0)),Qe.a.post(Z()+"give-api/v2/donor-dashboard/recurring-donations/subscriptions",{},{}).then((function(e){return e.data})).then((function(t){return e({type:"SET_SUBSCRIPTIONS",payload:{subscriptions:t.subscriptions}}),e(Gc(!1)),t})).catch((function(){return e(Gc(!1)),null}))},Yc=function(e){var t=e.id,n=e.amount,c=e.paymentMethod;return Qe.a.post(Z()+"give-api/v2/donor-dashboard/recurring-donations/subscription/update",{id:t,amount:n,payment_method:c},{}).then(function(){var e=Ct()(Mt.a.mark((function e(t){return Mt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Kc();case 2:return e.abrupt("return",t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},Qc=(n(976),function(e){var t=e.id,n=e.subscription,c=Object(o.useState)(n.payment.amount.raw),a=Fe()(c,2),r=a[0],i=a[1],l=Object(o.useState)(null),s=Fe()(l,2),u=s[0],f=s[1],h=Object(o.useState)(!1),p=Fe()(h,2),d=p[0],m=p[1],v=Object(o.useState)(!0),g=Fe()(v,2),b=g[0],y=g[1];Object(o.useEffect)((function(){y(!1)}),[r,u]);var z=function(){var e=Ct()(Mt.a.mark((function e(){return Mt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),e.next=3,Yc({id:t,amount:r,paymentMethod:u});case 3:y(!0),m(!1);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return React.createElement(o.Fragment,null,React.createElement(Wn,{form:n.form,payment:n.payment,onChange:function(e){return i(e)},value:r}),React.createElement(Bc,{label:we("Payment Method","give"),gateway:n.gateway.id,onChange:function(e){return f(e)}}),React.createElement(Mn,null,React.createElement("div",null,React.createElement(at,{onClick:function(){return z()}},b?React.createElement(o.Fragment,null,we("Updated","give")," ",React.createElement(Te,{icon:"check",fixedWidth:!0})):React.createElement(o.Fragment,null,we("Update Subscription","give")," ",React.createElement(Te,{className:d?"give-donor-dashboard__subscription-manager-spinner":"",icon:d?"spinner":"save",fixedWidth:!0}))))))}),Xc=function(e){return Qe.a.post(Z()+"give-api/v2/donor-dashboard/recurring-donations/subscription/cancel",{id:e},{}).then(function(){var e=Ct()(Mt.a.mark((function e(t){return Mt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Kc();case 2:return e.abrupt("return",t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},Jc=(n(977),function(e){var t=e.id,n=e.onRequestClose,c=function(){var e=Ct()(Mt.a.mark((function e(){return Mt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xc(t);case 2:n();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return React.createElement("div",{className:"give-donor-dashboard-cancel-modal"},React.createElement("div",{className:"give-donor-dashboard-cancel-modal__frame"},React.createElement("div",{className:"give-donor-dashboard-cancel-modal__header"},we("Cancel Subscription?","give")),React.createElement("div",{className:"give-donor-dashboard-cancel-modal__body"},React.createElement("div",{className:"give-donor-dashboard-cancel-modal__buttons"},React.createElement(at,{onClick:function(){return c()}},we("Yes, cancel","give")),React.createElement("a",{className:"give-donor-dashboard-cancel-modal__cancel",onClick:function(){return n()}},we("Nevermind","give"))))),React.createElement("div",{className:"give-donor-dashboard-cancel-modal__bg",onClick:function(){return n()}}))}),ea=function(e){var t=e.subscription,n=t.id,a=t.payment,r=t.form,i=t.gateway,l=it().width,s=Object(o.useState)(!1),u=Fe()(s,2),f=u[0],h=u[1];return React.createElement(o.Fragment,null,f&&React.createElement(Jc,{id:n,form:r,onRequestClose:function(){return h(!1)}}),React.createElement("div",{className:"give-donor-dashboard-table__row"},React.createElement("div",{className:"give-donor-dashboard-table__column"},l<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},we("Amount","give")),React.createElement("div",{className:"give-donor-dashboard-table__donation-amount"},a.amount.formatted," / ",a.frequency),r.title),React.createElement("div",{className:"give-donor-dashboard-table__column"},l<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},we("Status","give")),React.createElement("div",{className:"give-donor-dashboard-table__donation-status"},React.createElement("div",{className:"give-donor-dashboard-table__donation-status-indicator",style:{background:a.status.color}}),React.createElement("div",{className:"give-donor-dashboard-table__donation-status-label"},a.status.label))),React.createElement("div",{className:"give-donor-dashboard-table__column"},l<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},we("Next Renewal","give")),a.renewalDate),React.createElement("div",{className:"give-donor-dashboard-table__column"},l<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},we("Progress","give")),a.progress),React.createElement("div",{className:"give-donor-dashboard-table__pill"},React.createElement("div",{className:"give-donor-dashboard-table__donation-id"},"ID: ",a.serialCode),React.createElement("div",{className:"give-donor-dashboard-table__donation-receipt"},React.createElement(c.b,{to:"/recurring-donations/receipt/".concat(n)},we("View Subscription","give")," ",React.createElement(Te,{icon:"arrow-right"}))),i.can_update&&React.createElement("div",{className:"give-donor-dashboard-table__donation-receipt"},React.createElement(c.b,{to:"/recurring-donations/manage/".concat(n)},we("Manage Subscription","give")," ",React.createElement(Te,{icon:"arrow-right"}))),i.can_cancel&&React.createElement("div",{className:"give-donor-dashboard-table__donation-receipt"},React.createElement("a",{onClick:function(){return h(!0)}},we("Cancel Subscription","give"))))))},ta=(n(978),function(e){var t=e.subscriptions,n=e.perPage,c=Object(o.useState)(1),a=Fe()(c,2),r=a[0],i=a[1],l=[],s=[],u=0,f=n,h=1;return t&&(Object.entries(t).forEach((function(e){s[e[0]]=e[1]})),f=(u=(r-1)*n)+n<=s.length?u+n:s.length,h=Math.ceil(s.length/n)-1,l=s.reduce((function(e,t,n){return n>=u&&n<f&&e.push(React.createElement(ea,{subscription:t})),e}),[])),React.createElement(Ue,{header:React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-table__column"},we("Subscription","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},we("Status","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},we("Next Renewal","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},we("Progress","give"))),rows:React.createElement(o.Fragment,null,l),footer:React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-table__footer-text"},t&&"".concat(we("Showing","give")," ").concat(u+1," - ").concat(f," ").concat(we("of","give")," ").concat(s.length," ").concat(we("Subscriptions","give"))),React.createElement("div",{className:"give-donor-dashboard-table__footer-nav"},r-1>=1&&React.createElement("a",{onClick:function(){return i(r-1)}},React.createElement(Te,{icon:"chevron-left"})),r<=h&&React.createElement("a",{onClick:function(){return i(r+1)}},React.createElement(Te,{icon:"chevron-right"}))))})}),na=function(e){var t=Object(o.useState)(e(qc.getState())),n=Fe()(t,2),c=n[0],a=n[1];return Object(o.useEffect)((function(){var t=qc.subscribe((function(){a(e(qc.getState()))}));return function(){t()}}),[]),c},ca=(n(979),function(){var e=na((function(e){return e.subscriptions})),t=na((function(e){return e.querying})),n=Object(ct.f)(),a=n?n.pathname.split("/")[2]:null,r=n?n.pathname.split("/")[3]:null,i=function(t){var n=e.filter((function(e){return parseInt(e.id)===parseInt(t)}));return n.length?n[0]:null};if(r)switch(a){case"receipt":return t?React.createElement(o.Fragment,null,React.createElement(De,null,we("Loading...","give")),React.createElement("div",{className:"give-donor-dashboard__recurring-donations-link"},React.createElement(c.b,{to:"/recurring-donations"},React.createElement(Te,{icon:"arrow-left"})," ",we("Back to Recurring Donations","give")))):React.createElement(o.Fragment,null,React.createElement(De,null,we("Subscription","give")," #",i(r).payment.serialCode),React.createElement(In,{subscription:i(r)}),React.createElement("div",{className:"give-donor-dashboard__recurring-donations-link"},React.createElement(c.b,{to:"/recurring-donations"},React.createElement(Te,{icon:"arrow-left"})," ",we("Back to Recurring Donations","give"))));case"manage":return t&&null===e?React.createElement(o.Fragment,null,React.createElement(De,null,we("Loading...","give")),React.createElement("div",{className:"give-donor-dashboard__recurring-donations-link"},React.createElement(c.b,{to:"/recurring-donations"},React.createElement(Te,{icon:"arrow-left"})," ",we("Back to Recurring Donations","give")))):React.createElement(o.Fragment,null,React.createElement(De,null,we("Manage Subscription","give")),React.createElement(Lt,null),React.createElement(Qc,{id:r,subscription:i(r)}),React.createElement(Lt,null),React.createElement("div",{className:"give-donor-dashboard__recurring-donations-link"},React.createElement(c.b,{to:"/recurring-donations"},React.createElement(Te,{icon:"arrow-left"})," ",we("Back to Recurring Donations","give"))))}return t&&null===e?React.createElement(o.Fragment,null,React.createElement(De,null,we("Loading...","give")),React.createElement(ta,null)):React.createElement(o.Fragment,null,React.createElement(De,null,"".concat(Object.entries(e).length," ").concat(we("Total Subscriptions","give"))),React.createElement(ta,{subscriptions:e,perPage:5}))}),aa=function(){Kc(),window.giveDonorDashboard.utils.registerTab({label:"Recurring Donations",icon:"sync",slug:"recurring-donations",content:ca})},ra=n(399),oa=n.n(ra),ia=(n(980),function(e){var t=e.slug,n=e.label,a=e.icon;return React.createElement(c.c,{to:"/".concat(t),className:"give-donor-dashboard-tab-link",activeClassName:"give-donor-dashboard-tab-link--is-active"},React.createElement(Te,{icon:a,fixedWidth:!0}),n)}),la=(n(981),function(e){var t=e.onRequestClose,n=function(){var e=Ct()(Mt.a.mark((function e(){return Mt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Qe.a.post(Z()+"give-api/v2/donor-dashboard/logout",{}).then((function(e){return e.data}));case 2:window.location.reload();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return React.createElement("div",{className:"give-donor-dashboard-logout-modal"},React.createElement("div",{className:"give-donor-dashboard-logout-modal__frame"},React.createElement("div",{className:"give-donor-dashboard-logout-modal__header"},we("Are you sure you want to logout?","give")),React.createElement("div",{className:"give-donor-dashboard-logout-modal__body"},React.createElement("div",{className:"give-donor-dashboard-logout-modal__buttons"},React.createElement(at,{onClick:function(){return n()}},we("Yes, logout","give")),React.createElement("a",{className:"give-donor-dashboard-logout-modal__cancel",onClick:function(){return t()}},we("Nevermind","give"))))),React.createElement("div",{className:"give-donor-dashboard-logout-modal__bg",onClick:function(){return t()}}))}),sa=(n(982),function(){var e=Object(o.useState)(!1),t=Fe()(e,2),n=t[0],c=t[1],a=O((function(e){return e.tabs})),r=Object.values(a).map((function(e,t){return React.createElement(ia,{slug:e.slug,label:e.label,icon:e.icon,key:t})}));return React.createElement(o.Fragment,null,n&&React.createElement(la,{onRequestClose:function(){return c(!1)}}),React.createElement("div",{className:"give-donor-dashboard-tab-menu"},r,React.createElement("div",{className:"give-donor-dashboard-logout"},React.createElement("div",{className:"give-donor-dashboard-tab-link",onClick:function(){return c(!0)}},React.createElement(Te,{icon:"sign-out-alt"})," ",we("Logout","give")))))}),ua=(n(983),function(){var e=Object(ct.f)(),t=O((function(e){return e.tabs})),n=e.pathname.length>2?e.pathname.split("/")[1]:"dashboard",c=t[n]?t[n].content:null;return React.createElement("div",{className:"give-donor-dashboard-tab-content"},c?React.createElement(c,null):null)}),fa=(n(984),function(){var e=O((function(e){return e.profile})),t=e.name,n=e.addresses,c=e.company,a=e.sinceLastDonation,r=e.sinceCreated,o=e.avatarUrl,i=e.initials,l=n&&n.billing?n.billing[0]:null;return React.createElement("div",{className:"give-donor-dashboard-donor-info"},React.createElement("div",{className:"give-donor-dashboard-donor-info__avatar"},React.createElement("div",{className:"give-donor-dashboard-donor-info__avatar-container"},o?React.createElement("img",{src:o}):React.createElement("span",{className:"give-donor-dashboard-donor-info__avatar-initials"},i||React.createElement(Te,{icon:"user"})))),React.createElement("div",{className:"give-donor-dashboard-donor-info__details"},t&&React.createElement("div",{className:"give-donor-dashboard-donor-info__name"},t),l&&React.createElement("div",{className:"give-donor-dashboard-donor-info__detail"},React.createElement(Te,{icon:"map-pin",fixedWidth:!0})," ",l.city,", ",l.state.length>0?l.state:l.country),c&&React.createElement("div",{className:"give-donor-dashboard-donor-info__detail"},React.createElement(Te,{icon:"building",fixedWidth:!0})," ",c),a&&React.createElement("div",{className:"give-donor-dashboard-donor-info__detail"},React.createElement(Te,{icon:"clock",fixedWidth:!0})," Last donated ",a," ago"),r&&React.createElement("div",{className:"give-donor-dashboard-donor-info__detail"},React.createElement(Te,{icon:"heart",fixedWidth:!0})," Donor for ",r)),React.createElement("div",{className:"give-donor-dashboard-donor-info__badges"}))}),ha=(n(985),function(){return React.createElement("div",{className:"give-donor-dashboard-desktop-layout"},React.createElement("div",{className:"give-donor-dashboard-desktop-layout__donor-info"},React.createElement(fa,null)),React.createElement("div",{className:"give-donor-dashboard-desktop-layout__tab-menu"},React.createElement(sa,null)),React.createElement("div",{className:"give-donor-dashboard-desktop-layout__tab-content"},React.createElement(ua,null)))}),pa=(n(986),function(e){var t=e.children,n=Object(o.useState)(!1),c=Fe()(n,2),a=c[0],r=c[1],i=Object(o.useRef)(null);Object(o.useEffect)((function(){var e=function(e){i.current&&!i.current.contains(e.target)&&r(!1)};return a&&document.addEventListener("click",e),function(){a&&document.removeEventListener("click",e)}}),[a,i]);var l=Object(ct.f)(),s=O((function(e){return e.tabs})),u=l.pathname.length>2?l.pathname.split("/")[1]:"dashboard",f=s[u]?s[u].label:null;return React.createElement("div",{className:"give-donor-dashboard-mobile-menu"},React.createElement("div",{className:"give-donor-dashboard-mobile-menu__header"},React.createElement("div",{className:"give-donor-dashboard-mobile-menu__label"},f),React.createElement("div",{className:"give-donor-dashboard-mobile-menu__toggle ".concat(a?"give-donor-dashboard-mobile-menu__toggle--toggled":""),onClick:function(){return r(!a)}},React.createElement(Te,{icon:"bars"}))),a&&React.createElement("div",{className:"give-donor-dashboard-mobile-menu__content",ref:i},t))}),da=(n(987),function(){return React.createElement("div",{className:"give-donor-dashboard-mobile-layout"},React.createElement(pa,null,React.createElement("div",{className:"give-donor-dashboard-mobile-layout__tab-menu"},React.createElement(sa,null))),React.createElement("div",{className:"give-donor-dashboard-mobile-layout__donor-info"},React.createElement(fa,null)),React.createElement("div",{className:"give-donor-dashboard-mobile-layout__tab-content"},React.createElement(ua,null)))}),ma=function(e){var t=e.login,n=e.password;return Qe.a.post(Z()+"give-api/v2/donor-dashboard/login",{login:t,password:n},{}).then((function(e){return e.data}))},va=function(e){var t=e.email,n=e.recaptcha;return Qe.a.post(Z()+"give-api/v2/donor-dashboard/verify-email",{email:t,"g-recaptcha-response":n},{}).then((function(e){return e.data}))};function ga(){return(ga=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e}).apply(this,arguments)}function ba(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var ya=function(e){var t,n;function c(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(ba(t)),t.handleErrored=t.handleErrored.bind(ba(t)),t.handleChange=t.handleChange.bind(ba(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(ba(t)),t}n=e,(t=c).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=c.prototype;return a.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},a.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var e=this;return new Promise((function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()}))},a.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},a.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},a.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},a.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},a.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout((function(){document.body.removeChild(e)}),5e3)},a.handleRecaptchaRef=function(e){this.captcha=e},a.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var n,c,a={},r=Object.keys(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return i.a.createElement("div",ga({},t,{ref:this.handleRecaptchaRef}))},c}(i.a.Component);function za(){return(za=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e}).apply(this,arguments)}ya.displayName="ReCAPTCHA",ya.propTypes={sitekey:s.a.string.isRequired,onChange:s.a.func,grecaptcha:s.a.object,theme:s.a.oneOf(["dark","light"]),type:s.a.oneOf(["image","audio"]),tabindex:s.a.number,onExpired:s.a.func,onErrored:s.a.func,size:s.a.oneOf(["compact","normal","invisible"]),stoken:s.a.string,hl:s.a.string,badge:s.a.oneOf(["bottomright","bottomleft","inline"])},ya.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var Ca={},xa=0;var Ma,La,wa,Ha=(Ma=function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload=onloadcallback&render=explicit"},La=(La={callbackName:"onloadcallback",globalName:"grecaptcha"})||{},function(e){var t=e.displayName||e.name||"Component",n=function(t){var n,c;function a(e,n){var c;return(c=t.call(this,e,n)||this).state={},c.__scriptURL="",c}c=t,(n=a).prototype=Object.create(c.prototype),n.prototype.constructor=n,n.__proto__=c;var r=a.prototype;return r.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+xa++),this.__scriptLoaderID},r.setupScriptURL=function(){return this.__scriptURL="function"==typeof Ma?Ma():Ma,this.__scriptURL},r.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},r.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=Ca[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[La.callbackName]},r.componentDidMount=function(){var e=this,t=this.setupScriptURL(),n=this.asyncScriptLoaderGetScriptLoaderID(),c=La,a=c.globalName,r=c.callbackName,o=c.scriptId;if(a&&void 0!==window[a]&&(Ca[t]={loaded:!0,observers:{}}),Ca[t]){var i=Ca[t];return i&&(i.loaded||i.errored)?void this.asyncScriptLoaderHandleLoad(i):void(i.observers[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var l={};l[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)},Ca[t]={loaded:!1,observers:l};var s=document.createElement("script");for(var u in s.src=t,s.async=!0,La.attributes)s.setAttribute(u,La.attributes[u]);o&&(s.id=o);var f=function(e){if(Ca[t]){var n=Ca[t].observers;for(var c in n)e(n[c])&&delete n[c]}};r&&"undefined"!=typeof window&&(window[r]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),s.onload=function(){var e=Ca[t];e&&(e.loaded=!0,f((function(t){return!r&&(t(e),!0)})))},s.onerror=function(){var e=Ca[t];e&&(e.errored=!0,f((function(t){return t(e),!0})))},document.body.appendChild(s)},r.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===La.removeOnUnmount)for(var t=document.getElementsByTagName("script"),n=0;n<t.length;n+=1)t[n].src.indexOf(e)>-1&&t[n].parentNode&&t[n].parentNode.removeChild(t[n]);var c=Ca[e];c&&(delete c.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===La.removeOnUnmount&&delete Ca[e])},r.render=function(){var t=La.globalName,n=this.props,c=(n.asyncScriptOnLoad,n.forwardedRef),a=function(e,t){if(null==e)return{};var n,c,a={},r=Object.keys(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||(a[n]=e[n]);return a}(n,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(a[t]=void 0!==window[t]?window[t]:void 0),a.ref=c,Object(o.createElement)(e,a)},a}(o.Component),c=Object(o.forwardRef)((function(e,t){return Object(o.createElement)(n,za({},e,{forwardedRef:t}))}));return c.displayName="AsyncScriptLoader("+t+")",c.propTypes={asyncScriptOnLoad:s.a.func},g()(c,e)})(ya),Va=(n(988),function(){var e=Object(o.useState)(""),t=Fe()(e,2),n=t[0],c=t[1],a=Object(o.useState)(""),r=Fe()(a,2),i=r[0],l=r[1],s=Object(o.useState)(""),u=Fe()(s,2),f=u[0],h=u[1],p=Object(o.useState)(""),d=Fe()(p,2),m=d[0],v=d[1],g=Object(o.useState)(null),b=Fe()(g,2),y=b[0],z=b[1],C=Object(o.useState)(!1),x=Fe()(C,2),M=x[0],L=x[1],w=Object(o.useState)(!1),H=Fe()(w,2),V=H[0],S=H[1],E=Object(o.useState)(!1),N=Fe()(E,2),k=N[0],O=N[1],A=Object(o.useState)(null),_=Fe()(A,2),R=_[0],P=_[1],T=U("emailAccessEnabled"),j=U("loggedInWithoutDonor"),D=U("recaptchaKey"),I=function(){var e=Ct()(Mt.a.mark((function e(t){var n,c,a,r;return Mt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!f||!m){e.next=10;break}return L(!0),e.next=5,ma({login:f,password:m});case 5:n=e.sent,c=n.status,a=n.response,r=n.body_response,200===c?window.location.reload():(L(!1),z(r.message),"unidentified_login"===a?(h(""),v("")):v(""));case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),F=function(){var e=Ct()(Mt.a.mark((function e(t){var c,a,r;return Mt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!i){e.next=10;break}return S(!0),e.next=5,va({email:i,recaptcha:n});case 5:c=e.sent,a=c.status,r=c.body_response,S(!1),200===a?O(!0):P(r.message);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return React.createElement("div",{className:"give-donor-dashboard__auth-modal"},React.createElement("div",{className:"give-donor-dashboard__auth-modal-frame"},React.createElement("div",{className:"give-donor-dashboard__auth-modal-heading"},we("Log in to see your donor dashboard","give")),React.createElement("div",{className:"give-donor-dashboard__auth-modal-content"},j&&React.createElement("div",{className:"give-donor-dashboard__auth-modal-notice"},we("The account you are currently logged into the site with does not have an associated donor dashboard. Donate now or contact the site administrator to associate this WordPress user with a donor dashboard.","give")),T&&React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard__auth-modal-instruction"},we("Enter your email below and we'll send you a link to access your donor dashboard","give")),React.createElement("form",{className:"give-donor-dashboard__auth-modal-form",onSubmit:function(e){return F(e)}},React.createElement(Nn,{icon:"envelope",value:i,onChange:function(e){return l(e)}}),D&&React.createElement(Ha,{sitekey:D,onChange:c}),React.createElement("div",{className:"give-donor-dashboard__auth-modal-row"},React.createElement(at,{type:"submit"},we(!1===k?"Verify Email":"Email Sent","give"),!1===k&&React.createElement(Te,{className:V?"give-donor-dashboard__auth-modal-spinner":"",icon:V?"spinner":"chevron-right",fixedWidth:!0})),R&&React.createElement("div",{className:"give-donor-dashboard__auth-modal-error"},R))),React.createElement("div",{className:"give-donor-dashboard__auth-modal-seperator"})),React.createElement("div",{className:"give-donor-dashboard__auth-modal-instruction"},T&&React.createElement(o.Fragment,null,we("Already have an account?","give")," ",React.createElement("br",null)),we("Log in below to access your dashboard","give")),React.createElement("form",{className:"give-donor-dashboard__auth-modal-form",onSubmit:function(e){return I(e)}},React.createElement(Nn,{icon:"user",value:f,onChange:function(e){return h(e)}}),React.createElement(Nn,{icon:"lock",type:"password",value:m,onChange:function(e){return v(e)}}),React.createElement("div",{className:"give-donor-dashboard__auth-modal-row"},React.createElement(at,{type:"submit"},we("Log in","give"),React.createElement(Te,{className:M?"give-donor-dashboard__auth-modal-spinner":"",icon:M?"spinner":"chevron-right",fixedWidth:!0})),y&&React.createElement("div",{className:"give-donor-dashboard__auth-modal-error"},y))))))}),Sa=(n(989),function(e){var t=e.children;return B()?t:React.createElement("div",{className:"give-donor-dashboard__auth"},React.createElement(Va,null),React.createElement("div",{className:"give-donor-dashboard__auth-wrapper"},t))}),Ea=function(){var e=it().width,t=ot(),n=Object(xc.a)(wa||(wa=oa()(["\n\t:root {\n\t\t--give-donor-dashboard-accent-color: ",";\n\t}\n\t"])),t);return React.createElement(o.Fragment,null,React.createElement(n,null),React.createElement(Sa,null,e<920?React.createElement(da,null):React.createElement(ha,null)))};n(990);window.React=i.a,_.b.add(R),window.giveDonorDashboard={store:Y,utils:{registerTab:function(e){var t=window.giveDonorDashboard.store.dispatch;if(!0!==F(e))return null;t(function(e){return{type:"ADD_TAB",payload:{tab:e}}}(e))}}},r.a.render(i.a.createElement(m,{store:Y},i.a.createElement(c.a,null,i.a.createElement(Ea,null))),document.getElementById("give-donor-dashboard")),function(){window.giveDonorDashboard.utils.registerTab({label:"Dashboard",icon:"home",slug:"dashboard",content:nt});var e={"donation-history":yt,"annual-receipts":et,"recurring-donations":aa};U("registeredTabs").forEach((function(t){e[t]&&e[t]()})),window.giveDonorDashboard.utils.registerTab({label:"Edit Profile",icon:"cog",slug:"edit-profile",content:Dn})}()}});
68
  /*!
69
  * Font Awesome Free 5.15.2 by @fontawesome - https://fontawesome.com
70
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
71
+ */function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){T()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Y=M((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_ACTIVE_TAB":return K(K({},e),{},{activeTab:t.payload.tab});case"ADD_TAB":var n=Object.assign({},e.tabs);return n[t.payload.tab.slug]=t.payload.tab,K(K({},e),{},{tabs:n});case"SET_PROFILE":return K(K({},e),{},{profile:t.payload.profile});case"SET_STATES":return K(K({},e),{},{states:t.payload.states});case"SET_FETCHING_STATES":return K(K({},e),{},{fetchingStates:t.payload.fetchingStates});default:return e}})),Q=n(671),X=n.n(Q);n(627),X()(console.error);var J,ee,te,ne,ce=n(15);J={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},ee=["(","?"],te={")":["("],":":["?","?:"]},ne=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var ae={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function re(e){var t=function(e){for(var t,n,c,a,r=[],o=[];t=e.match(ne);){for(n=t[0],(c=e.substr(0,t.index).trim())&&r.push(c);a=o.pop();){if(te[n]){if(te[n][0]===a){n=te[n][1]||n;break}}else if(ee.indexOf(a)>=0||J[a]<J[n]){o.push(a);break}r.push(a)}te[n]||o.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&r.push(e),r.concat(o.reverse())}(e);return function(e){return function(e,t){var n,c,a,r,o,i,l=[];for(n=0;n<e.length;n++){if(o=e[n],r=ae[o]){for(c=r.length,a=Array(c);c--;)a[c]=l.pop();try{i=r.apply(null,a)}catch(e){return e}}else i=t.hasOwnProperty(o)?t[o]:+o;l.push(i)}return l[0]}(t,e)}}var oe={contextDelimiter:"",onMissingKey:null};function ie(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},oe)this.options[n]=void 0!==t&&n in t?t[n]:oe[n]}function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach((function(t){Object(ce.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}ie.prototype.getPluralForm=function(e,t){var n,c,a,r,o=this.pluralForms[e];return o||("function"!=typeof(a=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(c=function(e){var t,n,c;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(c=t[n].trim()).indexOf("plural="))return c.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),r=re(c),a=function(e){return+r({n:e})}),o=this.pluralForms[e]=a),o(t)},ie.prototype.dcnpgettext=function(e,t,n,c,a){var r,o,i;return r=void 0===a?0:this.getPluralForm(e,a),o=n,t&&(o=t+this.options.contextDelimiter+n),(i=this.data[e][o])&&i[r]?i[r]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===r?n:c)};var ue={"":{plural_forms:function(e){return 1===e?0:1}}},fe=/^i18n\.(n?gettext|has_translation)(_|$)/,he=n(27);var pe=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var de=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var me=function(e,t){return function(n,c,a){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,o=e[t];if(de(n)&&pe(c))if("function"==typeof a)if("number"==typeof r){var i={callback:a,priority:r,namespace:c};if(o[n]){var l,s=o[n].handlers;for(l=s.length;l>0&&!(r>=s[l-1].priority);l--);l===s.length?s[l]=i:s.splice(l,0,i),o.__current.forEach((function(e){e.name===n&&e.currentIndex>=l&&e.currentIndex++}))}else o[n]={handlers:[i],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,c,a,r)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var ve=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(c,a){var r=e[t];if(de(c)&&(n||pe(a))){if(!r[c])return 0;var o=0;if(n)o=r[c].handlers.length,r[c]={runs:r[c].runs,handlers:[]};else for(var i=r[c].handlers,l=function(e){i[e].namespace===a&&(i.splice(e,1),o++,r.__current.forEach((function(t){t.name===c&&t.currentIndex>=e&&t.currentIndex--})))},s=i.length-1;s>=0;s--)l(s);return"hookRemoved"!==c&&e.doAction("hookRemoved",c,a),o}}};var ge=function(e,t){return function(n,c){var a=e[t];return void 0!==c?n in a&&a[n].handlers.some((function(e){return e.namespace===c})):n in a}};n(310);var be=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(c){var a=e[t];a[c]||(a[c]={handlers:[],runs:0}),a[c].runs++;var r=a[c].handlers;for(var o=arguments.length,i=new Array(o>1?o-1:0),l=1;l<o;l++)i[l-1]=arguments[l];if(!r||!r.length)return n?i[0]:void 0;var s={name:c,currentIndex:0};for(a.__current.push(s);s.currentIndex<r.length;){var u=r[s.currentIndex],f=u.callback.apply(null,i);n&&(i[0]=f),s.currentIndex++}return a.__current.pop(),n?i[0]:void 0}};var ye=function(e,t){return function(){var n,c,a=e[t];return null!==(n=null===(c=a.__current[a.__current.length-1])||void 0===c?void 0:c.name)&&void 0!==n?n:null}};var ze=function(e,t){return function(n){var c=e[t];return void 0===n?void 0!==c.__current[0]:!!c.__current[0]&&n===c.__current[0].name}};var Ce=function(e,t){return function(n){var c=e[t];if(de(n))return c[n]&&c[n].runs?c[n].runs:0}},xe=function e(){Object(he.a)(this,e),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=me(this,"actions"),this.addFilter=me(this,"filters"),this.removeAction=ve(this,"actions"),this.removeFilter=ve(this,"filters"),this.hasAction=ge(this,"actions"),this.hasFilter=ge(this,"filters"),this.removeAllActions=ve(this,"actions",!0),this.removeAllFilters=ve(this,"filters",!0),this.doAction=be(this,"actions"),this.applyFilters=be(this,"filters",!0),this.currentAction=ye(this,"actions"),this.currentFilter=ye(this,"filters"),this.doingAction=ze(this,"actions"),this.doingFilter=ze(this,"filters"),this.didAction=Ce(this,"actions"),this.didFilter=Ce(this,"filters")};var Me=function(){return new xe}(),Le=(Me.addAction,Me.addFilter,Me.removeAction,Me.removeFilter,Me.hasAction,Me.hasFilter,Me.removeAllActions,Me.removeAllFilters,Me.doAction,Me.applyFilters,Me.currentAction,Me.currentFilter,Me.doingAction,Me.doingFilter,Me.didAction,Me.didFilter,Me.actions,Me.filters,function(e,t,n){var c=new ie({}),a=new Set,r=function(){a.forEach((function(e){return e()}))},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";c.data[t]=se(se(se({},ue),c.data[t]),e),c.data[t][""]=se(se({},ue[""]),c.data[t][""])},i=function(e,t){o(e,t),r()},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;return c.data[e]||o(void 0,e),c.dcnpgettext(e,t,n,a,r)},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return e},u=function(e,t,c){var a=l(c,t,e);return n?(a=n.applyFilters("i18n.gettext_with_context",a,e,t,c),n.applyFilters("i18n.gettext_with_context_"+s(c),a,e,t,c)):a};if(e&&i(e,t),n){var f=function(e){fe.test(e)&&r()};n.addAction("hookAdded","core/i18n",f),n.addAction("hookRemoved","core/i18n",f)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return c.data[e]},setLocaleData:i,subscribe:function(e){return a.add(e),function(){return a.delete(e)}},__:function(e,t){var c=l(t,void 0,e);return n?(c=n.applyFilters("i18n.gettext",c,e,t),n.applyFilters("i18n.gettext_"+s(t),c,e,t)):c},_x:u,_n:function(e,t,c,a){var r=l(a,void 0,e,t,c);return n?(r=n.applyFilters("i18n.ngettext",r,e,t,c,a),n.applyFilters("i18n.ngettext_"+s(a),r,e,t,c,a)):r},_nx:function(e,t,c,a,r){var o=l(r,a,e,t,c);return n?(o=n.applyFilters("i18n.ngettext_with_context",o,e,t,c,a,r),n.applyFilters("i18n.ngettext_with_context_"+s(r),o,e,t,c,a,r)):o},isRTL:function(){return"rtl"===u("ltr","text direction")},hasTranslation:function(e,t,a){var r,o,i=t?t+""+e:e,l=!(null===(r=c.data)||void 0===r||null===(o=r[null!=a?a:"default"])||void 0===o||!o[i]);return n&&(l=n.applyFilters("i18n.has_translation",l,e,t,a),l=n.applyFilters("i18n.has_translation_"+s(a),l,e,t,a)),l}}}(void 0,void 0,Me)),we=(Le.getLocaleData.bind(Le),Le.setLocaleData.bind(Le),Le.subscribe.bind(Le),Le.__.bind(Le));Le._x.bind(Le),Le._n.bind(Le),Le._nx.bind(Le),Le.isRTL.bind(Le),Le.hasTranslation.bind(Le);function He(e){return(He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach((function(t){Ve(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ne(e,t){if(null==e)return{};var n,c,a=function(e,t){if(null==e)return{};var n,c,a={},r=Object.keys(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function ke(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Oe(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}function Ae(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,c=t.indexOf(":"),a=Oe(t.slice(0,c)),r=t.slice(c+1).trim();return a.startsWith("webkit")?e[(n=a,n.charAt(0).toUpperCase()+n.slice(1))]=r:e[a]=r,e}),{})}var _e=!1;try{_e=!0}catch(e){}function Re(e){return _.c.icon?_.c.icon(e):null===e?null:"object"===He(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function Pe(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Ve({},e,t):{}}function Te(e){var t=e.forwardedRef,n=Ne(e,["forwardedRef"]),c=n.icon,a=n.mask,r=n.symbol,o=n.className,i=n.title,l=n.titleId,s=Re(c),u=Pe("classes",[].concat(ke(function(e){var t,n=e.spin,c=e.pulse,a=e.fixedWidth,r=e.inverse,o=e.border,i=e.listItem,l=e.flip,s=e.size,u=e.rotation,f=e.pull,h=(Ve(t={"fa-spin":n,"fa-pulse":c,"fa-fw":a,"fa-inverse":r,"fa-border":o,"fa-li":i,"fa-flip-horizontal":"horizontal"===l||"both"===l,"fa-flip-vertical":"vertical"===l||"both"===l},"fa-".concat(s),null!=s),Ve(t,"fa-rotate-".concat(u),null!=u&&0!==u),Ve(t,"fa-pull-".concat(f),null!=f),Ve(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(h).map((function(e){return h[e]?e:null})).filter((function(e){return e}))}(n)),ke(o.split(" ")))),f=Pe("transform","string"==typeof n.transform?_.c.transform(n.transform):n.transform),h=Pe("mask",Re(a)),p=Object(_.a)(s,Ee({},u,{},f,{},h,{symbol:r,title:i,titleId:l}));if(!p)return function(){var e;!_e&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",s),null;var d=p.abstract,m={ref:t};return Object.keys(n).forEach((function(e){Te.defaultProps.hasOwnProperty(e)||(m[e]=n[e])})),je(d[0],m)}Te.displayName="FontAwesomeIcon",Te.propTypes={border:s.a.bool,className:s.a.string,mask:s.a.oneOfType([s.a.object,s.a.array,s.a.string]),fixedWidth:s.a.bool,inverse:s.a.bool,flip:s.a.oneOf(["horizontal","vertical","both"]),icon:s.a.oneOfType([s.a.object,s.a.array,s.a.string]),listItem:s.a.bool,pull:s.a.oneOf(["right","left"]),pulse:s.a.bool,rotation:s.a.oneOf([0,90,180,270]),size:s.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:s.a.bool,symbol:s.a.oneOfType([s.a.bool,s.a.string]),title:s.a.string,transform:s.a.oneOfType([s.a.string,s.a.object]),swapOpacity:s.a.bool},Te.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var je=function e(t,n){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var a=(n.children||[]).map((function(n){return e(t,n)})),r=Object.keys(n.attributes||{}).reduce((function(e,t){var c=n.attributes[t];switch(t){case"class":e.attrs.className=c,delete n.attributes.class;break;case"style":e.attrs.style=Ae(c);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=c:e.attrs[Oe(t)]=c}return e}),{attrs:{}}),o=c.style,i=void 0===o?{}:o,l=Ne(c,["style"]);return r.attrs.style=Ee({},r.attrs.style,{},i),t.apply(void 0,[n.tag,Ee({},r.attrs,{},l)].concat(ke(a)))}.bind(null,i.a.createElement),De=(n(955),function(e){var t=e.icon,n=e.children;return React.createElement("div",{className:"give-donor-dashboard-heading"},t&&React.createElement(Te,{icon:t,className:"spinner"===t?"give-donor-dashboard-heading__spinner":""}),n)}),Ie=n(4),Fe=n.n(Ie),Ue=(n(956),function(e){var t=e.header,n=e.rows,c=e.footer;return React.createElement("div",{className:"give-donor-dashboard-table"},React.createElement("div",{className:"give-donor-dashboard-table__header"},t),React.createElement("div",{className:"give-donor-dashboard-table__rows"},n),React.createElement("div",{className:"give-donor-dashboard-table__footer"},c))}),Be=function(e){var t=e.annualReceipt[1],n=t.year,c=t.amount,a=t.count,r=t.statementUrl;return React.createElement("div",{className:"give-donor-dashboard-table__row"},React.createElement("div",{className:"give-donor-dashboard-table__column"},n.label),React.createElement("div",{className:"give-donor-dashboard-table__column"},c.formatted),React.createElement("div",{className:"give-donor-dashboard-table__column"},a),React.createElement("div",{className:"give-donor-dashboard-table__column"},React.createElement("a",{href:r,onClick:function(e){return function(e){e.preventDefault(),window.parent.open(e.target.href,"_blank")}(e)}},we("View Receipt","give")," ",React.createElement(Te,{icon:"arrow-right"}))))},Ze=(n(957),function(e){var t=e.annualReceipts,n=e.perPage,c=Object(o.useState)(1),a=Fe()(c,2),r=a[0],i=a[1],l=[],s=[],u=0,f=n,h=1;return t&&(s=Object.entries(t),f=(u=(r-1)*n)+n<=s.length?u+n:s.length,h=Math.ceil(s.length/n)-1,l=s.reduce((function(e,t,n){return n>=u&&n<f&&e.push(React.createElement(Be,{key:n,annualReceipt:t})),e}),[])),React.createElement(Ue,{header:React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-table__column"},we("Year","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},we("Amount","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},we("Count","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},we("Statement","give"))),rows:React.createElement(o.Fragment,null,l),footer:React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-table__footer-text"},t&&"".concat(we("Showing","give")," ").concat(u+1," - ").concat(f," ").concat(we("of","give")," ").concat(s.length," ").concat(we("Receipts","give"))),React.createElement("div",{className:"give-donor-dashboard-table__footer-nav"},r-1>=1&&React.createElement("a",{onClick:function(){return i(r-1)}},React.createElement(Te,{icon:"chevron-left"})),r<=h&&React.createElement("a",{onClick:function(){return i(r+1)}},React.createElement(Te,{icon:"chevron-right"}))))})}),We={annualReceipts:null,querying:!1,error:null};function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach((function(t){T()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ge=M((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:We,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_ANNUAL_RECEIPTS":return qe(qe({},e),{},{annualReceipts:t.payload.annualReceipts});case"SET_QUERYING":return qe(qe({},e),{},{querying:t.payload.querying});case"SET_ERROR":return qe(qe({},e),{},{error:t.payload.error});default:return e}})),Ke=function(e){var t=Object(o.useState)(e(Ge.getState())),n=Fe()(t,2),c=n[0],a=n[1];return Object(o.useEffect)((function(){var t=Ge.subscribe((function(){a(e(Ge.getState()))}));return function(){t()}}),[]),c},Ye=n(31),Qe=n.n(Ye),Xe=function(e){return{type:"SET_QUERYING",payload:{querying:e}}},Je=function(){var e=Ke((function(e){return e.annualReceipts})),t=Ke((function(e){return e.querying})),n=Ke((function(e){return e.error})),c=e?Object.entries(e).length:0;return Object(o.useEffect)((function(){var e;e=Ge.dispatch,B()&&(e(Xe(!0)),Qe.a.post(Z()+"give-api/v2/donor-dashboard/annual-receipts",{},{}).then((function(e){return e.data})).then((function(t){var n=t.receipts;e({type:"SET_ANNUAL_RECEIPTS",payload:{annualReceipts:n}}),e(Xe(!1)),400===t.status&&e({type:"SET_ERROR",payload:{error:t.body_response.message}})})).catch((function(){e(Xe(!1))})))}),[]),n?React.createElement(o.Fragment,null,React.createElement(De,{icon:"exclamation-triangle"},we("Error","give")),React.createElement("p",{style:{color:"#6b6b6b"}},n)):!0===t&&null===e?React.createElement(o.Fragment,null,React.createElement(De,null,we("Loading...","give")),React.createElement(Ze,null)):React.createElement(o.Fragment,null,React.createElement(De,null,"".concat(c," ").concat(we("Total Annual Receipts","give"))),React.createElement(Ze,{annualReceipts:e,perPage:5}))},et=function(){return window.giveDonorDashboard.utils.registerTab({label:"Annual Receipts",icon:"receipt",slug:"annual-receipts",content:Je})},tt=(n(958),function(){var e=O((function(e){return e.tabs})),t=Object(o.useState)([]),n=Fe()(t,2),c=n[0],a=n[1],r=Object(o.useState)([]),i=Fe()(r,2),l=i[0],s=i[1];Object(o.useEffect)((function(){a(Object.entries(e))}),[e]),Object(o.useEffect)((function(){c.length>2&&s(u(c))}),[c]);var u=function(e){return e.reduce((function(e,t,n){if(t[1].dashboardContent){var c=t[1].dashboardContent;e.push(React.createElement(c,{key:n}))}return e}),[])};return React.createElement("div",{className:"give-donor-dashboard-dashboard-content"},l)}),nt=function(){return React.createElement(tt,null)},ct=n(26),at=(n(959),function(e){var t=e.icon,n=e.children,c=e.onClick,a=e.href,r=e.type;return a?React.createElement("a",{className:"give-donor-dashboard-button give-donor-dashboard-button--primary",onClick:function(e){return function(e){e.preventDefault(),window.parent.location=a}(e)},href:a},n,t&&React.createElement(Te,{icon:t})):React.createElement("button",{className:"give-donor-dashboard-button give-donor-dashboard-button--primary",onClick:c?function(){return c()}:null,type:r},n,t&&React.createElement(Te,{icon:t}))}),rt=(n(960),function(e){var t=e.donation;return void 0===t?null:t.receipt.map((function(e,t){var n=e.lineItems.map((function(e,t){var n="object"===D()(e.value)&&e.value.color?React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-donation-receipt__status-indicator",style:{background:e.value.color}}),e.value.label):e.value;return React.createElement("div",{className:"give-donor-dashboard-donation-receipt__row".concat(e.class.includes("total")?" give-donor-dashboard-donation-receipt__row--footer":""),key:t},React.createElement("div",{className:"give-donor-dashboard-donation-receipt__detail"},e.icon&&React.createElement(Te,{icon:e.icon,fixedWidth:!0})," ",e.label),React.createElement("div",{className:"give-donor-dashboard-donation-receipt__value"},n))}));return React.createElement("div",{className:"give-donor-dashboard-donation-receipt__table",key:t},n)}))}),ot=function(){return O((function(e){return e.accentColor}))},it=function(){var e=Object(o.useState)({width:void 0,height:void 0}),t=Fe()(e,2),n=t[0],c=t[1];return Object(o.useEffect)((function(){function e(){c({width:window.top.innerWidth,height:window.top.innerHeight})}return window.top.addEventListener("resize",e),e(),function(){return window.top.removeEventListener("resize",e)}}),[]),n},lt=function(e){var t=e.donation,n=t.id,a=t.form,r=t.payment,o=it().width;return React.createElement("div",{className:"give-donor-dashboard-table__row"},React.createElement("div",{className:"give-donor-dashboard-table__column"},o<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},we("Amount","give")),React.createElement("div",{className:"give-donor-dashboard-table__donation-amount"},r.amount)),React.createElement("div",{className:"give-donor-dashboard-table__column"},o<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},we("Form","give")),a.title),React.createElement("div",{className:"give-donor-dashboard-table__column"},o<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},we("Date","give")),React.createElement("div",{className:"give-donor-dashboard-table__donation-date"},r.date),React.createElement("div",{className:"give-donor-dashboard-table__donation-time"},r.time)),React.createElement("div",{className:"give-donor-dashboard-table__column"},o<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},we("Status","give")),React.createElement("div",{className:"give-donor-dashboard-table__donation-status"},React.createElement("div",{className:"give-donor-dashboard-table__donation-status-indicator",style:{background:r.status.color}}),React.createElement("div",{className:"give-donor-dashboard-table__donation-status-label"},r.status.label)),"live"!==r.mode&&React.createElement("div",{className:"give-donor-dashboard-table__donation-test-tag"},we("Test Donation","give"))),React.createElement("div",{className:"give-donor-dashboard-table__pill"},React.createElement("div",{className:"give-donor-dashboard-table__donation-id"},"ID: ",r.serialCode),React.createElement("div",{className:"give-donor-dashboard-table__donation-receipt"},React.createElement(c.b,{to:"/donation-history/".concat(n)},we("View Receipt","give")," ",React.createElement(Te,{icon:"arrow-right"})))))},st=(n(961),function(e){var t=e.donations,n=e.perPage,c=Object(o.useState)(1),a=Fe()(c,2),r=a[0],i=a[1],l=[],s=[],u=0,f=n,h=1;return t&&(Object.entries(t).forEach((function(e){s[e[0]]=e[1]})),f=(u=(r-1)*n)+n<=s.length?u+n:s.length,h=Math.ceil(s.length/n)-1,l=s.reduce((function(e,t,n){return n>=u&&n<f&&e.push(React.createElement(lt,{key:n,donation:t})),e}),[])),React.createElement(Ue,{header:React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-table__column"},we("Donation","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},we("Campaign","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},we("Date","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},we("Status","give"))),rows:React.createElement(o.Fragment,null,l),footer:React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-table__footer-text"},t&&"".concat(we("Showing","give")," ").concat(u+1," - ").concat(f," ").concat(we("of","give")," ").concat(s.length," ").concat(we("Donations","give"))),React.createElement("div",{className:"give-donor-dashboard-table__footer-nav"},r-1>=1&&React.createElement("a",{onClick:function(){return i(r-1)}},React.createElement(Te,{icon:"chevron-left"})),r<=h&&React.createElement("a",{onClick:function(){return i(r+1)}},React.createElement(Te,{icon:"chevron-right"}))))})}),ut={donations:null,querying:!1,count:null,revenue:null,average:null,currency:null,error:null};function ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function ht(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(n),!0).forEach((function(t){T()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pt=M((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ut,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_DONATIONS":return ht(ht({},e),{},{donations:t.payload.donations});case"SET_QUERYING":return ht(ht({},e),{},{querying:t.payload.querying});case"SET_ERROR":return ht(ht({},e),{},{error:t.payload.error});case"SET_COUNT":return ht(ht({},e),{},{count:t.payload.count});case"SET_AVERAGE":return ht(ht({},e),{},{average:t.payload.average});case"SET_REVENUE":return ht(ht({},e),{},{revenue:t.payload.revenue});case"SET_CURRENCY":return ht(ht({},e),{},{currency:t.payload.currency});default:return e}})),dt=function(e){var t=Object(o.useState)(e(pt.getState())),n=Fe()(t,2),c=n[0],a=n[1];return Object(o.useEffect)((function(){var t=pt.subscribe((function(){a(e(pt.getState()))}));return function(){t()}}),[]),c},mt=(n(962),function(){var e=dt((function(e){return e.donations})),t=dt((function(e){return e.querying})),n=dt((function(e){return e.error})),a=Object(ct.f)(),r=a?a.pathname.split("/")[2]:null,i=function(t){var n=e.filter((function(e){return parseInt(e.id)===parseInt(t)}));return n.length?n[0]:null};return n?React.createElement(o.Fragment,null,React.createElement(De,{icon:"exclamation-triangle"},we("Error","give")),React.createElement("p",{style:{color:"#6b6b6b"}},n)):r?t?React.createElement(o.Fragment,null,React.createElement(De,null,we("Loading...","give")),React.createElement("div",{className:"give-donor-dashboard__donation-history-link"},React.createElement(c.b,{to:"/donation-history"},React.createElement(Te,{icon:"arrow-left"})," ",we("Back to Donation History","give")))):React.createElement(o.Fragment,null,React.createElement(De,null,we("Donation Receipt","give")," #",i(r).payment.serialCode),React.createElement(rt,{donation:i(r)}),React.createElement("div",{className:"give-donor-dashboard__donation-history-footer"},React.createElement(c.b,{to:"/donation-history"},React.createElement(Te,{icon:"arrow-left"})," ",we("Back to Donation History","give")),i(r).payment.pdfReceiptUrl.length>0&&React.createElement(at,{icon:"file-pdf",href:i(r).payment.pdfReceiptUrl},we("Download Receipt","give")))):t?React.createElement(o.Fragment,null,React.createElement(De,null,we("Loading...","give")),React.createElement(st,null)):React.createElement(o.Fragment,null,e?React.createElement(o.Fragment,null,React.createElement(De,null,"".concat(e?Object.entries(e).length:0," ").concat(we("Total Donations","give"))),React.createElement(st,{donations:e,perPage:5})):React.createElement(o.Fragment,null,React.createElement(De,{icon:"exclamation-triangle"},we("No Donations","give"))))}),vt=(n(963),function(){var e=ot(),t=dt((function(e){return e.count})),n=dt((function(e){return e.revenue})),c=dt((function(e){return e.average})),a=dt((function(e){return e.currency}));return React.createElement("div",{className:"give-donor-dashboard-dashboard__stats"},t&&React.createElement("div",{className:"give-donor-dashboard-dashboard__stat"},React.createElement("div",{className:"give-donor-dashboard-dashboard__figure",style:{color:e}},t),React.createElement("div",{className:"give-donor-dashboard-dashboard__detail"},we("Number of donations","give"))),n&&React.createElement("div",{className:"give-donor-dashboard-dashboard__stat"},React.createElement("div",{className:"give-donor-dashboard-dashboard__figure",style:{color:e}},"before"===a.position?React.createElement(o.Fragment,null,React.createElement("span",{className:"give-donor-dashboard-dashboard__figure-currency"},a.symbol),n):React.createElement(o.Fragment,null,n,React.createElement("span",{className:"give-donor-dashboard-dashboard__figure-currency"},a.symbol))),React.createElement("div",{className:"give-donor-dashboard-dashboard__detail"},we("Lifetime donations","give"))),c&&React.createElement("div",{className:"give-donor-dashboard-dashboard__stat"},React.createElement("div",{className:"give-donor-dashboard-dashboard__figure",style:{color:e}},"before"===a.position?React.createElement(o.Fragment,null,React.createElement("span",{className:"give-donor-dashboard-dashboard__figure-currency"},a.symbol),c):React.createElement(o.Fragment,null,c,React.createElement("span",{className:"give-donor-dashboard-dashboard__figure-currency"},a.symbol))," "),React.createElement("div",{className:"give-donor-dashboard-dashboard__detail"},we("Average donation","give"))))}),gt=function(){var e=dt((function(e){return e.donations})),t=dt((function(e){return e.querying})),n=dt((function(e){return e.error}));return t?React.createElement(o.Fragment,null,React.createElement(De,{icon:"spinner"},we("Loading...","give"))):n?React.createElement(o.Fragment,null,React.createElement(De,{icon:"exclamation-triangle"},we("Error","give")),React.createElement("p",{style:{color:"#6b6b6b"}},n)):e?React.createElement(o.Fragment,null,React.createElement(De,{icon:"chart-line"},we("Your Giving Stats","give")),React.createElement(vt,null),React.createElement(De,{icon:"calendar-alt"},we(t?"Loading...":"Recent Donations","give")),!t&&React.createElement(st,{donations:e,perPage:3})):React.createElement(o.Fragment,null,React.createElement(De,{icon:"exclamation-triangle"},we("No Donations","give")))},bt=function(e){return{type:"SET_QUERYING",payload:{querying:e}}},yt=function(){var e;e=pt.dispatch,B()&&(e(bt(!0)),Qe.a.post(Z()+"give-api/v2/donor-dashboard/donations",{},{}).then((function(e){return e.data})).then((function(t){var n=t.status,c=t.body_response;if(200===n){var a=c[0],r=a.donations,o=a.count,i=a.revenue,l=a.average,s=a.currency;e(function(e){return{type:"SET_DONATIONS",payload:{donations:e}}}(r)),e(function(e){return{type:"SET_COUNT",payload:{count:e}}}(o)),e(function(e){return{type:"SET_REVENUE",payload:{revenue:e}}}(i)),e(function(e){return{type:"SET_AVERAGE",payload:{average:e}}}(l)),e(function(e){return{type:"SET_CURRENCY",payload:{currency:e}}}(s))}400===n&&e({type:"SET_ERROR",payload:{error:c.message}}),e(bt(!1))})).catch((function(){e(bt(!1))}))),window.giveDonorDashboard.utils.registerTab({label:we("Donation History","give"),icon:"calendar-alt",slug:"donation-history",content:mt,dashboardContent:gt})},zt=n(25),Ct=n.n(zt),xt=n(12),Mt=n.n(xt),Lt=(n(964),function(){return React.createElement("div",{className:"give-donor-dashboard-divider"})}),wt=n(9),Ht=n.n(wt);function Vt(e,t,n,c){return new(n||(n=Promise))((function(a,r){function o(e){try{l(c.next(e))}catch(e){r(e)}}function i(e){try{l(c.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,i)}l((c=c.apply(e,t||[])).next())}))}function St(e,t){var n,c,a,r,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function i(r){return function(i){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,c&&(a=2&r[0]?c.return:r[0]?c.throw||((a=c.return)&&a.call(c),0):c.next)&&!(a=a.call(c,r[1])).done)return a;switch(c=0,a&&(r=[2&r[0],a.value]),r[0]){case 0:case 1:a=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,c=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==r[0]&&2!==r[0])){o=0;continue}if(3===r[0]&&(!a||r[1]>a[0]&&r[1]<a[3])){o.label=r[1];break}if(6===r[0]&&o.label<a[1]){o.label=a[1],a=r;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(r);break}a[2]&&o.ops.pop(),o.trys.pop();continue}r=t.call(e,o)}catch(e){r=[6,e],c=0}finally{n=a=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,i])}}}Object.create;function Et(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var c,a,r=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(c=r.next()).done;)o.push(c.value)}catch(e){a={error:e}}finally{try{c&&!c.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}Object.create;var Nt=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function kt(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),c=Nt.get(n);c&&Object.defineProperty(e,"type",{value:c,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var c=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof c&&c.length>0?c:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var Ot=[".DS_Store","Thumbs.db"];function At(e){return(null!==e.target&&e.target.files?Pt(e.target.files):[]).map((function(e){return kt(e)}))}function _t(e,t){return Vt(this,void 0,void 0,(function(){var n;return St(this,(function(c){switch(c.label){case 0:return e.items?(n=Pt(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(Tt))]):[3,2];case 1:return[2,Rt(jt(c.sent()))];case 2:return[2,Rt(Pt(e.files).map((function(e){return kt(e)})))]}}))}))}function Rt(e){return e.filter((function(e){return-1===Ot.indexOf(e.name)}))}function Pt(e){for(var t=[],n=0;n<e.length;n++){var c=e[n];t.push(c)}return t}function Tt(e){if("function"!=typeof e.webkitGetAsEntry)return Dt(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Ft(t):Dt(e)}function jt(e){return e.reduce((function(e,t){return function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Et(arguments[t]));return e}(e,Array.isArray(t)?jt(t):[t])}),[])}function Dt(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=kt(t);return Promise.resolve(n)}function It(e){return Vt(this,void 0,void 0,(function(){return St(this,(function(t){return[2,e.isDirectory?Ft(e):Ut(e)]}))}))}function Ft(e){var t=e.createReader();return new Promise((function(e,n){var c=[];!function a(){var r=this;t.readEntries((function(t){return Vt(r,void 0,void 0,(function(){var r,o,i;return St(this,(function(l){switch(l.label){case 0:if(t.length)return[3,5];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Promise.all(c)];case 2:return r=l.sent(),e(r),[3,4];case 3:return o=l.sent(),n(o),[3,4];case 4:return[3,6];case 5:i=Promise.all(t.map(It)),c.push(i),a(),l.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function Ut(e){return Vt(this,void 0,void 0,(function(){return St(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var c=kt(n,e.fullPath);t(c)}),(function(e){n(e)}))}))]}))}))}var Bt=n(672),Zt=n.n(Bt);function Wt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],c=!0,a=!1,r=void 0;try{for(var o,i=e[Symbol.iterator]();!(c=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);c=!0);}catch(e){a=!0,r=e}finally{try{c||null==i.return||i.return()}finally{if(a)throw r}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $t(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $t(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var qt=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:"file-invalid-type",message:"File type must be ".concat(t)}},Gt=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," bytes")}},Kt=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," bytes")}},Yt={code:"too-many-files",message:"Too many files"};function Qt(e,t){var n="application/x-moz-file"===e.type||Zt()(e,t);return[n,n?null:qt(t)]}function Xt(e,t,n){if(Jt(e.size))if(Jt(t)&&Jt(n)){if(e.size>n)return[!1,Gt(n)];if(e.size<t)return[!1,Kt(t)]}else{if(Jt(t)&&e.size<t)return[!1,Kt(t)];if(Jt(n)&&e.size>n)return[!1,Gt(n)]}return[!0,null]}function Jt(e){return null!=e}function en(e){var t=e.files,n=e.accept,c=e.minSize,a=e.maxSize,r=e.multiple,o=e.maxFiles;return!(!r&&t.length>1||r&&o>=1&&t.length>o)&&t.every((function(e){var t=Wt(Qt(e,n),1)[0],r=Wt(Xt(e,c,a),1)[0];return t&&r}))}function tn(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function nn(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function cn(e){e.preventDefault()}function an(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function rn(e){return-1!==e.indexOf("Edge/")}function on(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return an(e)||rn(e)}function ln(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,c=new Array(n>1?n-1:0),a=1;a<n;a++)c[a-1]=arguments[a];return t.some((function(t){return!tn(e)&&t&&t.apply(void 0,[e].concat(c)),tn(e)}))}}function sn(e){return function(e){if(Array.isArray(e))return hn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||fn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function un(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],c=!0,a=!1,r=void 0;try{for(var o,i=e[Symbol.iterator]();!(c=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);c=!0);}catch(e){a=!0,r=e}finally{try{c||null==i.return||i.return()}finally{if(a)throw r}}return n}(e,t)||fn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fn(e,t){if(e){if("string"==typeof e)return hn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hn(e,t):void 0}}function hn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}function pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function dn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pn(Object(n),!0).forEach((function(t){mn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vn(e,t){if(null==e)return{};var n,c,a=function(e,t){if(null==e)return{};var n,c,a={},r=Object.keys(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var gn=Object(o.forwardRef)((function(e,t){var n=e.children,c=zn(vn(e,["children"])),a=c.open,r=vn(c,["open"]);return Object(o.useImperativeHandle)(t,(function(){return{open:a}}),[a]),i.a.createElement(o.Fragment,null,n(dn(dn({},r),{},{open:a})))}));gn.displayName="Dropzone";var bn={disabled:!1,getFilesFromEvent:function(e){return Vt(this,void 0,void 0,(function(){return St(this,(function(t){return[2,(n=e,n.dataTransfer&&e.dataTransfer?_t(e.dataTransfer,e.type):At(e))];var n}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null};gn.defaultProps=bn,gn.propTypes={children:s.a.func,accept:s.a.oneOfType([s.a.string,s.a.arrayOf(s.a.string)]),multiple:s.a.bool,preventDropOnDocument:s.a.bool,noClick:s.a.bool,noKeyboard:s.a.bool,noDrag:s.a.bool,noDragEventsBubbling:s.a.bool,minSize:s.a.number,maxSize:s.a.number,maxFiles:s.a.number,disabled:s.a.bool,getFilesFromEvent:s.a.func,onFileDialogCancel:s.a.func,onDragEnter:s.a.func,onDragLeave:s.a.func,onDragOver:s.a.func,onDrop:s.a.func,onDropAccepted:s.a.func,onDropRejected:s.a.func,validator:s.a.func};var yn={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function zn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=dn(dn({},bn),e),n=t.accept,c=t.disabled,a=t.getFilesFromEvent,r=t.maxSize,i=t.minSize,l=t.multiple,s=t.maxFiles,u=t.onDragEnter,f=t.onDragLeave,h=t.onDragOver,p=t.onDrop,d=t.onDropAccepted,m=t.onDropRejected,v=t.onFileDialogCancel,g=t.preventDropOnDocument,b=t.noClick,y=t.noKeyboard,z=t.noDrag,C=t.noDragEventsBubbling,x=t.validator,M=Object(o.useRef)(null),L=Object(o.useRef)(null),w=Object(o.useReducer)(Cn,yn),H=un(w,2),V=H[0],S=H[1],E=V.isFocused,N=V.isFileDialogActive,k=V.draggedFiles,O=Object(o.useCallback)((function(){L.current&&(S({type:"openDialog"}),L.current.value=null,L.current.click())}),[S]),A=function(){N&&setTimeout((function(){L.current&&(L.current.files.length||(S({type:"closeDialog"}),"function"==typeof v&&v()))}),300)};Object(o.useEffect)((function(){return window.addEventListener("focus",A,!1),function(){window.removeEventListener("focus",A,!1)}}),[L,N,v]);var _=Object(o.useCallback)((function(e){M.current&&M.current.isEqualNode(e.target)&&(32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),O()))}),[M,L]),R=Object(o.useCallback)((function(){S({type:"focus"})}),[]),P=Object(o.useCallback)((function(){S({type:"blur"})}),[]),T=Object(o.useCallback)((function(){b||(on()?setTimeout(O,0):O())}),[L,b]),j=Object(o.useRef)([]),D=function(e){M.current&&M.current.contains(e.target)||(e.preventDefault(),j.current=[])};Object(o.useEffect)((function(){return g&&(document.addEventListener("dragover",cn,!1),document.addEventListener("drop",D,!1)),function(){g&&(document.removeEventListener("dragover",cn),document.removeEventListener("drop",D))}}),[M,g]);var I=Object(o.useCallback)((function(e){e.preventDefault(),e.persist(),q(e),j.current=[].concat(sn(j.current),[e.target]),nn(e)&&Promise.resolve(a(e)).then((function(t){tn(e)&&!C||(S({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e))}))}),[a,u,C]),F=Object(o.useCallback)((function(e){if(e.preventDefault(),e.persist(),q(e),e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return nn(e)&&h&&h(e),!1}),[h,C]),U=Object(o.useCallback)((function(e){e.preventDefault(),e.persist(),q(e);var t=j.current.filter((function(e){return M.current&&M.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),j.current=t,t.length>0||(S({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),nn(e)&&f&&f(e))}),[M,f,C]),B=Object(o.useCallback)((function(e){e.preventDefault(),e.persist(),q(e),j.current=[],nn(e)&&Promise.resolve(a(e)).then((function(t){if(!tn(e)||C){var c=[],a=[];t.forEach((function(e){var t=un(Qt(e,n),2),o=t[0],l=t[1],s=un(Xt(e,i,r),2),u=s[0],f=s[1],h=x?x(e):null;if(o&&u&&!h)c.push(e);else{var p=[l,f];h&&(p=p.concat(h)),a.push({file:e,errors:p.filter((function(e){return e}))})}})),(!l&&c.length>1||l&&s>=1&&c.length>s)&&(c.forEach((function(e){a.push({file:e,errors:[Yt]})})),c.splice(0)),S({acceptedFiles:c,fileRejections:a,type:"setFiles"}),p&&p(c,a,e),a.length>0&&m&&m(a,e),c.length>0&&d&&d(c,e)}})),S({type:"reset"})}),[l,n,i,r,s,a,p,d,m,C]),Z=function(e){return c?null:e},W=function(e){return y?null:Z(e)},$=function(e){return z?null:Z(e)},q=function(e){C&&e.stopPropagation()},G=Object(o.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,a=e.onKeyDown,r=e.onFocus,o=e.onBlur,i=e.onClick,l=e.onDragEnter,s=e.onDragOver,u=e.onDragLeave,f=e.onDrop,h=vn(e,["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return dn(dn(mn({onKeyDown:W(ln(a,_)),onFocus:W(ln(r,R)),onBlur:W(ln(o,P)),onClick:Z(ln(i,T)),onDragEnter:$(ln(l,I)),onDragOver:$(ln(s,F)),onDragLeave:$(ln(u,U)),onDrop:$(ln(f,B))},n,M),c||y?{}:{tabIndex:0}),h)}}),[M,_,R,P,T,I,F,U,B,y,z,c]),K=Object(o.useCallback)((function(e){e.stopPropagation()}),[]),Y=Object(o.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,c=void 0===t?"ref":t,a=e.onChange,r=e.onClick,o=vn(e,["refKey","onChange","onClick"]),i=mn({accept:n,multiple:l,type:"file",style:{display:"none"},onChange:Z(ln(a,B)),onClick:Z(ln(r,K)),autoComplete:"off",tabIndex:-1},c,L);return dn(dn({},i),o)}}),[L,n,l,B,c]),Q=k.length,X=Q>0&&en({files:k,accept:n,minSize:i,maxSize:r,multiple:l,maxFiles:s}),J=Q>0&&!X;return dn(dn({},V),{},{isDragAccept:X,isDragReject:J,isFocused:E&&!c,getRootProps:G,getInputProps:Y,rootRef:M,inputRef:L,open:Z(O)})}function Cn(e,t){switch(t.type){case"focus":return dn(dn({},e),{},{isFocused:!0});case"blur":return dn(dn({},e),{},{isFocused:!1});case"openDialog":return dn(dn({},e),{},{isFileDialogActive:!0});case"closeDialog":return dn(dn({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,c=t.draggedFiles;return dn(dn({},e),{},{draggedFiles:c,isDragActive:n});case"setFiles":return dn(dn({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return dn(dn({},e),{},{isFileDialogActive:!1,isDragActive:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]});default:return e}}n(965);var xn=function(e){var t=e.url,n=e.file,c=e.onChange,a=zn({onDrop:Object(o.useCallback)((function(e){c(e[0])}),[]),accept:"image/jpeg, image/png, image/gif",maxFiles:1}),r=a.getRootProps,i=a.getInputProps,l=a.isDragActive,s=Object(o.useState)(t),u=Fe()(s,2),f=u[0],h=u[1];return Object(o.useEffect)((function(){if(n){var e=new window.FileReader;e.readAsDataURL(n),e.onloadend=function(){h(e.result)}}}),[n]),React.createElement("div",{className:"give-donor-dashboard-avatar-control"},React.createElement("label",{className:"give-donor-dashboard-avatar-control__label"},"Avatar"),React.createElement("div",Ht()({className:"give-donor-dashboard-avatar-control__input"},r()),React.createElement("input",i()),React.createElement("div",{className:"give-donor-dashboard-avatar-control__preview"},React.createElement("img",{src:f})),React.createElement("div",{className:"give-donor-dashboard-avatar-control__dropzone".concat(l?" give-donor-dashboard-avatar-control__dropzone--highlight":"")},React.createElement("div",{className:"give-donor-dashboard-avatar-control__instructions"},l?React.createElement("p",null,"Drop the image here..."):React.createElement("p",null,"Drag image here to set ",React.createElement("br",null),"avatar or ",React.createElement("span",{className:"give-donor-dashboard-avatar-control__select-link"},"find image"))))))},Mn=(n(966),function(e){var t=e.children;return React.createElement("div",{className:"give-donor-dashboard-field-row"},t)}),Ln=n(380);n(967);function wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(n),!0).forEach((function(t){T()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vn=function(e){var t=e.label,n=e.value,c=e.isLoading,a=e.onChange,r=e.options,o=e.placeholder,i=e.width,l=e.isClearable;if(r&&r.length<2)return null;var s=ot(),u=$(t),f=null!==r?r.filter((function(e){return e.value===n})):null,h={control:function(e){return Hn(Hn({},e),{},{fontSize:"14px",fontFamily:"Montserrat, Arial, Helvetica, sans-serif",fontWeight:"500",color:"#828382",lineHeight:"1.2",boxSizing:"border-box",marginTop:"8px",border:"1px solid #b8b8b8",borderRadius:"4px"})},input:function(e){return Hn(Hn({},e),{},{fontSize:"14px",fontFamily:"Montserrat, Arial, Helvetica, sans-serif",fontWeight:"500",color:"#828382",lineHeight:"1.2"})},valueContainer:function(e){return Hn(Hn({},e),{},{padding:"7px 12px"})},clearIndicator:function(e){return Hn(Hn({},e),{},{padding:"0px"})},dropdownIndicator:function(e){return Hn(Hn({},e),{},{padding:"0 8px 0 0"})},option:function(e,t){return Hn(Hn({},e),{},{fontSize:"14px",fontFamily:"Montserrat, Arial, Helvetica, sans-serif",fontWeight:"500",color:t.isSelected?"#fff":"#333",lineHeight:"1.2"})},indicatorSeparator:function(){return{display:"none"}}};return React.createElement("div",{className:"give-donor-dashboard-select-control",style:i?{maxWidth:i}:null},t&&React.createElement("label",{className:"give-donor-dashboard-select-control__label",htmlFor:u},t),React.createElement(Ln.a,{placeholder:o,isLoading:c,inputId:u,value:f,onChange:function(e){return a(e?e.value:"")},options:r,styles:h,maxMenuHeight:"200px",isDisabled:c,isClearable:l,theme:function(e){return Hn(Hn({},e),{},{colors:Hn(Hn({},e.colors),{},{primary:s})})}}))};Vn.propTypes={label:s.a.string,value:s.a.string.isRequired,onChange:s.a.func,options:s.a.array.isRequired,placeholder:s.a.string,width:s.a.string,isClearable:s.a.bool},Vn.defaultProps={label:null,value:null,onChange:null,options:null,placeholder:we("Select...","give"),width:null,isClearable:!1};var Sn=Vn,En=(n(968),function(e){var t=e.label,n=e.value,c=e.onChange,a=e.icon,r=e.type,o=$(t);return React.createElement("div",{className:"give-donor-dashboard-text-control"},t&&React.createElement("label",{className:"give-donor-dashboard-text-control__label",htmlFor:o},t),React.createElement("div",{className:"give-donor-dashboard-text-control__input"},a&&React.createElement(Te,{icon:a}),React.createElement("input",{id:o,type:r,value:n,onChange:function(e){return c(e.target.value)}})))});En.defaultProps={label:null,value:"",onChange:null,icon:null,type:"text"};var Nn=En,kn=(n(969),function(e){var t=e.label,n=e.description,c=e.options,a=e.value,r=e.onChange,o=c.map((function(e,t){var n=W(e.value);return React.createElement("div",{className:"give-donor-dashboard-radio-control__option",key:t},React.createElement("input",{type:"radio",name:"format",id:n,value:e.value,checked:e.value===a,onChange:function(e){return r(e.target.value)}}),React.createElement("label",{htmlFor:n},e.label))}));return React.createElement("fieldset",{className:"give-donor-dashboard-radio-control"},t&&React.createElement("legend",{className:"give-donor-dashboard-radio-control__legend"},t),n&&React.createElement("div",{className:"give-donor-dashboard-radio-control__description"},n),o)}),On=function(){var e=Ct()(Mt.a.mark((function e(t){var n,c,a,r,o,i,l,s,u,f,h,p,d,m,v;return Mt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.titlePrefix,c=t.firstName,a=t.lastName,r=t.company,o=t.primaryEmail,i=t.additionalEmails,l=t.primaryAddress,s=t.additionalAddresses,u=t.avatarFile,f=t.isAnonymous,h=t.id,p=Y.getState(),d=p.profile,m=d.avatarId,!u){e.next=7;break}return e.next=6,An(u);case 6:m=e.sent;case 7:return v=Y.dispatch,e.abrupt("return",Qe.a.post(Z()+"give-api/v2/donor-dashboard/profile",{data:JSON.stringify({titlePrefix:n,firstName:c,lastName:a,company:r,primaryEmail:o,additionalEmails:i,primaryAddress:l,additionalAddresses:s,avatarId:m,isAnonymous:f}),id:h},{}).then((function(e){return e.data})).then((function(e){return v(I(e.profile)),e})));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),An=function(e){var t=new window.FormData;return t.append("file",e),Qe.a.post(Z()+"wp/v2/media",t,{headers:{"X-WP-Nonce":U("apiNonce")}}).then((function(e){return e.data})).then((function(e){return e.id}))},_n=function(e){return Qe.a.post(Z()+"give-api/v2/donor-dashboard/location",{countryCode:e},{}).then((function(e){return e.data})).then((function(e){return e.states.map((function(e){return{value:e.value,label:Rn(e.label)}}))}))},Rn=function(e){var t=document.createElement("div");return t.innerHTML=e,t.innerText},Pn=function(e){var t=e.primaryEmail,n=e.additionalEmails,c=e.onChangePrimaryEmail,a=e.onChangeAdditionalEmails,r=function(e,t){var c=n.concat();c[t]=e,a(c)},i=function(e){c(e)},l=function(){var e=Ct()(Mt.a.mark((function e(n,c){var a;return Mt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=t,i(n),r(a,c);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),s=n.map((function(e,t){return React.createElement(Mn,{key:t},React.createElement(Nn,{label:0===t?we("Additional Emails","give"):null,value:e,onChange:function(e){return r(e,t)},icon:"envelope"}),React.createElement("div",{className:"give-donor-dashboard__email-controls"},React.createElement("div",{className:"give-donor-dashboard__make-primary-email",onClick:function(){return l(e,t)}},we("Make Primary","give")),"|",React.createElement("div",{className:"give-donor-dashboard__delete-email",onClick:function(){return e=t,c=n.filter((function(t,n){return n!==e})),void a(c);var e,c}},we("Delete","give"))))}));return React.createElement(o.Fragment,null,React.createElement(Nn,{label:we("Primary Email","give"),value:t,onChange:function(e){return i(e)},icon:"envelope"}),s,React.createElement(at,{onClick:function(){return e="",t=n.concat(e),void a(t);var e,t},icon:"plus"},we("Add Email","give")))},Tn=function(e){var t=e.address,n=e.onChange;Object(o.useEffect)((function(){u(t.country),d(t.line1),b(t.line2),x(t.city),H(t.state),k(t.zip)}),[t]);var c=S(),a=O((function(e){return e.countries})),r=O((function(e){return e.states})),i=Object(o.useState)(t.country),l=Fe()(i,2),s=l[0],u=l[1],f=Object(o.useState)(t.line1),h=Fe()(f,2),p=h[0],d=h[1],m=Object(o.useState)(t.line2),v=Fe()(m,2),g=v[0],b=v[1],y=Object(o.useState)(t.city),z=Fe()(y,2),C=z[0],x=z[1],M=Object(o.useState)(t.state),L=Fe()(M,2),w=L[0],H=L[1],V=Object(o.useState)(t.zip),E=Fe()(V,2),N=E[0],k=E[1],A=function(){var e=Ct()(Mt.a.mark((function e(t){var n;return Mt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=5;break}return e.next=3,_n(t);case 3:n=e.sent,c({type:"SET_STATES",payload:{states:n}});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(o.useEffect)((function(){A(s)}),[s]),Object(o.useEffect)((function(){n({country:s,line1:p,line2:g,state:w,city:C,zip:N})}),[s,p,g,w,C,N]),React.createElement(o.Fragment,null,React.createElement(Sn,{label:we("Country","give"),value:s,onChange:function(e){return u(e)},options:a,width:null}),React.createElement(Nn,{label:we("Address 1","give"),value:p,onChange:function(e){return d(e)}}),React.createElement(Nn,{label:we("Address 2","give"),value:g,onChange:function(e){return b(e)}}),React.createElement(Nn,{label:we("City","give"),value:C,onChange:function(e){return x(e)}}),React.createElement(Mn,null,React.createElement(Sn,{label:we("State","give"),value:w,onChange:function(e){return H(e)},options:r}),React.createElement(Nn,{label:we("Zip","give"),value:N,onChange:function(e){return k(e)}})))},jn=function(e){var t=e.primaryAddress,n=e.additionalAddresses,c=e.onChangePrimaryAddress,a=e.onChangeAdditionalAddresses,r=function(e,t){var c=n.concat();c[t]=e,a(c)},i=function(e){c(e)},l=function(){var e=Ct()(Mt.a.mark((function e(n,c){var a;return Mt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=Object.assign({},t),i(n),r(a,c);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),s=n?n.map((function(e,t){return React.createElement(o.Fragment,{key:t},React.createElement(Mn,null,React.createElement(De,null,we("Additional Address","give")),React.createElement("div",{className:"give-donor-dashboard__address-controls"},React.createElement("div",{className:"give-donor-dashboard__make-primary-address",onClick:function(){return l(e,t)}},we("Make Primary","give")),"|",React.createElement("div",{className:"give-donor-dashboard__delete-address",onClick:function(){return e=t,c=n.filter((function(t,n){return n!==e})),void a(c);var e,c}},we("Delete","give")))),React.createElement(Lt,null),React.createElement(Tn,{address:e,onChange:function(e){return r(e,t)}}))})):null;return t?React.createElement(o.Fragment,null,React.createElement(De,null,we("Primary Address","give")),React.createElement(Lt,null),React.createElement(Tn,{address:t,onChange:function(e){return i(e)}}),s,React.createElement(at,{onClick:function(){return e={},t=n.concat(e),void a(t);var e,t},icon:"plus"},we("Add Address","give"))):React.createElement("div",{className:"give-donor-dashboard__add-primary-address"},React.createElement(De,null,we("Looks like you have not set up an address!","give")),React.createElement(at,{onClick:function(){return i({})},icon:"plus"},we("Add Address","give")))},Dn=(n(970),function(){var e=O((function(e){return e.id})),t=O((function(e){return e.profile})),n=Object(o.useState)(!1),c=Fe()(n,2),a=c[0],r=c[1],i=Object(o.useState)(!1),l=Fe()(i,2),s=l[0],u=l[1];Object(o.useEffect)((function(){b(null),x(t.avatarUrl)}),[t]);var f=Object(o.useState)(t.titlePrefix),h=Fe()(f,2),p=h[0],d=h[1],m=Object(o.useState)(null),v=Fe()(m,2),g=v[0],b=v[1],y=Object(o.useState)(t.avatarUrl),z=Fe()(y,2),C=z[0],x=z[1],M=Object(o.useState)(t.firstName),L=Fe()(M,2),w=L[0],H=L[1],V=Object(o.useState)(t.lastName),S=Fe()(V,2),E=S[0],N=S[1],k=Object(o.useState)(t.company),A=Fe()(k,2),_=A[0],R=A[1],P=Object(o.useState)(t.emails?t.emails.primary:""),T=Fe()(P,2),j=T[0],D=T[1],I=t.emails?Object.keys(t.emails).reduce((function(e,n){return"primary"!==n&&e.push(t.emails[n]),e}),[]):[],F=Object(o.useState)(I),U=Fe()(F,2),B=U[0],Z=U[1],W=Object(o.useState)(t.addresses&&t.addresses.billing?t.addresses.billing[0]:null),$=Fe()(W,2),q=$[0],G=$[1],K=t.addresses&&t.addresses.billing?Object.values(t.addresses.billing).reduce((function(e,t,n){return 0!==n&&e.push(t),e}),[]):[],Y=Object(o.useState)(K),Q=Fe()(Y,2),X=Q[0],J=Q[1],ee=Object(o.useState)(t.isAnonymous),te=Fe()(ee,2),ne=te[0],ce=te[1],ae=[{value:"0",label:we("Public - show my donations publicly","give")},{value:"1",label:we("Private - only organization admins can view my info")}];Object(o.useEffect)((function(){u(!1)}),[p,w,E,_,j,B,q,X,g,ne]);var re=function(){var t=Ct()(Mt.a.mark((function t(){return Mt.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r(!0),t.next=3,On({titlePrefix:p,firstName:w,lastName:E,company:_,primaryEmail:j,additionalEmails:B,primaryAddress:q,additionalAddresses:X,avatarFile:g,isAnonymous:ne,id:e});case 3:u(!0),r(!1);case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return React.createElement(o.Fragment,null,React.createElement(De,null,we("Profile Information","give")),React.createElement(Lt,null),React.createElement(xn,{url:C,file:g,onChange:function(e){return b(e)}}),React.createElement(Mn,null,React.createElement(Sn,{label:we("Prefix","give"),value:p,onChange:function(e){return d(e)},options:[{value:"Mr.",label:"Mr."},{value:"Ms.",label:"Ms."},{value:"Mrs.",label:"Mrs."}],placeholder:"--",width:"120px",isClearable:!0}),React.createElement(Nn,{label:we("First Name","give"),value:w,onChange:function(e){return H(e)},icon:"user"}),React.createElement(Nn,{label:we("Last Name","give"),value:E,onChange:function(e){return N(e)}})),React.createElement(Nn,{label:we("Company","give"),value:_,onChange:function(e){return R(e)}}),React.createElement(Pn,{primaryEmail:j,additionalEmails:B,onChangePrimaryEmail:function(e){return D(e)},onChangeAdditionalEmails:function(e){return Z(e)}}),React.createElement(jn,{primaryAddress:q,additionalAddresses:X,onChangePrimaryAddress:function(e){return G(e)},onChangeAdditionalAddresses:function(e){return J(e)}}),React.createElement(De,null,we("Additional Info","give")),React.createElement(Lt,null),React.createElement(kn,{label:we("Anonymous Giving"),description:we("This will prevent your avatar, first name, donation comments, and other information from appearing publicly on this organization’s website.","give"),options:ae,onChange:function(e){return ce(e)},value:ne}),React.createElement(at,{onClick:function(){return re()}},s?React.createElement(o.Fragment,null,we("Updated","give")," ",React.createElement(Te,{icon:"check",fixedWidth:!0})):React.createElement(o.Fragment,null,we("Update Profile","give")," ",React.createElement(Te,{className:a?"give-donor-dashboard__edit-profile-spinner":"",icon:a?"spinner":"save",fixedWidth:!0}))))}),In=function(e){var t=e.subscription;if(void 0===t)return null;var n,c=t.receipt.map((function(e,t){var c=e.lineItems.map((function(e,t){var n="object"===D()(e.value)&&e.value.color?React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-donation-receipt__status-indicator",style:{background:e.value.color}}),e.value.label):e.value;return React.createElement("div",{className:"give-donor-dashboard-donation-receipt__row".concat(e.class.includes("total")?" give-donor-dashboard-donation-receipt__row--footer":""),key:t},React.createElement("div",{className:"give-donor-dashboard-donation-receipt__detail"},e.icon&&React.createElement(Te,{icon:e.icon,fixedWidth:!0})," ",e.label),React.createElement("div",{className:"give-donor-dashboard-donation-receipt__value"},n))}));return"Donation"===e.id?(n=React.createElement("div",{className:"give-donor-dashboard-donation-receipt__table",key:t},c),null):React.createElement("div",{className:"give-donor-dashboard-donation-receipt__table",key:t},c)}));return c.push(n),c},Fn=n(673),Un=n.n(Fn),Bn=(n(971),function(e){var t=e.label,n=e.onChange,c=e.value,a=e.placeholder,r=e.currency,o=e.min,i=e.max,l=e.width,s=$(t),u=W(t);return React.createElement("div",{className:"give-donor-dashboard-currency-control",style:l?{maxWidth:l}:null},t&&React.createElement("label",{className:"give-donor-dashboard-currency-control__label",htmlFor:s},t),React.createElement("div",{className:"give-donor-dashboard-currency-control__input"},React.createElement(Un.a,{id:s,name:u,placeholder:a,value:c,onValueChange:function(e){return isNaN(e)?n(o):n(e)},onBlur:function(){return function(){switch(!0){case i&&c>i:n(i.toFixed(r.numberDecimals));break;case o&&c<o:n(o.toFixed(r.numberDecimals))}}()},allowNegativeValue:!1,decimalsLimit:r.numberDecimals,decimalScale:r.numberDecimals,prefix:"before"===r.currencyPosition?r.symbol:"",suffix:"after"===r.currencyPosition?r.symbol:"",decimalSeparator:r.decimalSeparator,groupSeparator:r.thousandsSeparator})))});Bn.propTypes={label:s.a.string,value:s.a.string.isRequired,onChange:s.a.func,placeholder:s.a.string,width:s.a.string,currency:s.a.object.isRequired},Bn.defaultProps={label:null,value:null,onChange:null,placeholder:we("Enter amount...","give"),width:null,currency:{code:"USD",currencyPosition:"before",decimalSeparator:".",numberDecimals:2,symbol:"$",thousandsSeparator:","}};var Zn=Bn,Wn=function(e){var t=e.form,n=e.payment,c=e.onChange,a=e.value,r=Object(o.useState)(null),i=Fe()(r,2),l=i[0],s=i[1],u=Object(o.useState)(null),f=Fe()(u,2),h=f[0],p=f[1],d=Object(o.useState)(null),m=Fe()(d,2),v=m[0],g=m[1],b=Object(o.useState)([]),y=Fe()(b,2),z=y[0],C=y[1];return Object(o.useEffect)((function(){var e=t.amounts.map((function(e){return{value:e.raw,label:e.formatted}}));t.custom_amount&&e.push({value:"custom_amount",label:we("Custom Amount","give")}),C(e)}),[]),Object(o.useEffect)((function(){if(z.length){var e=z.map((function(e){return parseFloat(e.value)}));if(a){var t=parseFloat(a);if(e.includes(t)){var c=z.filter((function(e){return parseFloat(e.value)===t}))[0];p(c.value)}else p("custom_amount"),s(t.toFixed(n.currency.numberDecimals))}}}),[z]),Object(o.useEffect)((function(){h&&("custom_amount"!==h?(c(h),g(h)):v&&s(parseFloat(v).toFixed(n.currency.numberDecimals)))}),[h]),Object(o.useEffect)((function(){if(l){var e=parseFloat(l);c(e)}}),[l]),React.createElement("div",{className:"give-donor-dashboard-amount-inputs"},React.createElement(Mn,null,React.createElement("div",null,React.createElement(Sn,{label:"Subscription Amount",options:z,value:h,onChange:function(e){return p(e)}})),React.createElement("div",null,"custom_amount"===h&&React.createElement(Zn,{label:"Custom Amount",min:t.custom_amount.minimum?parseFloat(t.custom_amount.minimum):null,max:t.custom_amount.maximum?parseFloat(t.custom_amount.maximum):null,value:l,onChange:function(e){return s(e)},currency:n.currency}))))},$n=n(406),qn="https://js.stripe.com/v3",Gn=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,Kn="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",Yn=null,Qn=function(e){return null!==Yn?Yn:Yn=new Promise((function(t,n){if("undefined"!=typeof window)if(window.Stripe&&e&&console.warn(Kn),window.Stripe)t(window.Stripe);else try{var c=function(){for(var e=document.querySelectorAll('script[src^="'.concat(qn,'"]')),t=0;t<e.length;t++){var n=e[t];if(Gn.test(n.src))return n}return null}();c&&e?console.warn(Kn):c||(c=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(qn).concat(t);var c=document.head||document.body;if(!c)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return c.appendChild(n),n}(e)),c.addEventListener("load",(function(){window.Stripe?t(window.Stripe):n(new Error("Stripe.js not available"))})),c.addEventListener("error",(function(){n(new Error("Failed to load Stripe.js"))}))}catch(e){return void n(e)}else t(null)}))},Xn=function(e,t,n){if(null===e)return null;var c=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.13.1",startTime:t})}(c,n),c},Jn=Promise.resolve().then((function(){return Qn(null)})),ec=!1;Jn.catch((function(e){ec||console.warn(e)}));n(972);var tc=function(e){var t=e.label,n=e.onChange,c=e.value,a=Object($n.useStripe)(),r=Object($n.useElements)(),i=Object(o.useState)(!1),l=Fe()(i,2),s=l[0],u=l[1],f=Object(o.useState)(c),h=Fe()(f,2),p=h[0],d=h[1];Object(o.useEffect)((function(){p&&n({give_stripe_payment_method:p})}),[p]);var m=function(){var e=Ct()(Mt.a.mark((function e(){var t,n,c,o;return Mt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u(!1),a&&r){e.next=3;break}return e.abrupt("return");case 3:return t=r.getElement($n.CardElement),e.next=6,a.createPaymentMethod({type:"card",card:t});case 6:n=e.sent,c=n.error,o=n.paymentMethod,c||d(o.id);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return React.createElement("div",{className:"give-donor-dashboard-stripe-card-control"},React.createElement("label",{className:"give-donor-dashboard-stripe-card-control__label"},t),React.createElement("div",{className:s?"give-donor-dashboard-stripe-card-control__input give-donor-dashboard-stripe-card-control__input--focused":"give-donor-dashboard-stripe-card-control__input"},React.createElement($n.CardElement,{style:{base:{fontFamily:"Montserrat"}},onFocus:function(){return u(!0)},onBlur:function(){return m()}})))},nc=function(e){var t=e.label,n=e.onChange,c=e.value,a=Object(o.useState)(null),r=Fe()(a,2),i=r[0],l=r[1];Object(o.useEffect)((function(){var e=window.give_stripe_vars.publishable_key;e&&l(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];ec=!0;var c=Date.now();return Jn.then((function(e){return Xn(e,t,c)}))}(e))}),[]);return React.createElement($n.Elements,{stripe:i,fonts:[{src:"url(https://fonts.googleapis.com/css2?family=Montserrat:wght@500)",family:"Montserrat"}]},React.createElement(tc,{label:t,onChange:function(e){return n(e)},value:c}))},cc=/(\d{1,4})/g,ac=[{displayName:"Visa",type:"visa",format:cc,startPattern:/^4/,gaps:[4,8,12],lengths:[16,18,19],code:{name:"CVV",length:3}},{displayName:"Mastercard",type:"mastercard",format:cc,startPattern:/^(5[1-5]|677189)|^(222[1-9]|2[3-6]\d{2}|27[0-1]\d|2720)/,gaps:[4,8,12],lengths:[16],code:{name:"CVC",length:3}},{displayName:"American Express",type:"amex",format:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,startPattern:/^3[47]/,gaps:[4,10],lengths:[15],code:{name:"CID",length:4}},{displayName:"Diners Club",type:"dinersclub",format:cc,startPattern:/^(36|38|30[0-5])/,gaps:[4,10],lengths:[14,16,19],code:{name:"CVV",length:3}},{displayName:"Discover",type:"discover",format:cc,startPattern:/^(6011|65|64[4-9]|622)/,gaps:[4,8,12],lengths:[16,19],code:{name:"CID",length:3}},{displayName:"JCB",type:"jcb",format:cc,startPattern:/^35/,gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVV",length:3}},{displayName:"UnionPay",type:"unionpay",format:cc,startPattern:/^62/,gaps:[4,8,12],lengths:[14,15,16,17,18,19],code:{name:"CVN",length:3}},{displayName:"Maestro",type:"maestro",format:cc,startPattern:/^(5018|5020|5038|6304|6703|6708|6759|676[1-3])/,gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:"CVC",length:3}},{displayName:"Elo",type:"elo",format:cc,startPattern:/^(4011(78|79)|43(1274|8935)|45(1416|7393|763(1|2))|50(4175|6699|67[0-7][0-9]|9000)|627780|63(6297|6368)|650(03([^4])|04([0-9])|05(0|1)|4(0[5-9]|3[0-9]|8[5-9]|9[0-9])|5([0-2][0-9]|3[0-8])|9([2-6][0-9]|7[0-8])|541|700|720|901)|651652|655000|655021)/,gaps:[4,8,12],lengths:[16],code:{name:"CVE",length:3}},{displayName:"Hipercard",type:"hipercard",format:cc,startPattern:/^(384100|384140|384160|606282|637095|637568|60(?!11))/,gaps:[4,8,12],lengths:[16],code:{name:"CVC",length:3}}],rc=function(e){return ac.filter((function(t){return t.startPattern.test(e)}))[0]},oc=Object.freeze({DEFAULT_CVC_LENGTH:3,DEFAULT_ZIP_LENGTH:5,DEFAULT_CARD_FORMAT:cc,CARD_TYPES:ac,getCardTypeByValue:rc,getCardTypeByType:function(e){return ac.filter((function(t){return t.type===e}))[0]}}),ic=/(0[1-9]|1[0-2])/,lc="Expiry month must be between 01 and 12",sc=function(e){return e.split("").reverse().map((function(e){return parseInt(e,10)})).map((function(e,t){return t%2?2*e:e})).map((function(e){return e>9?e%10+1:e})).reduce((function(e,t){return e+t}))%10==0},uc=Object.freeze({EMPTY_CARD_NUMBER:"Enter a card number",EMPTY_EXPIRY_DATE:"Enter an expiry date",EMPTY_CVC:"Enter a CVC",EMPTY_ZIP:"Enter a ZIP code",INVALID_CARD_NUMBER:"Card number is invalid",INVALID_EXPIRY_DATE:"Expiry date is invalid",INVALID_CVC:"CVC is invalid",MONTH_OUT_OF_RANGE:lc,YEAR_OUT_OF_RANGE:"Expiry year cannot be in the past",DATE_OUT_OF_RANGE:"Expiry date cannot be in the past",hasCardNumberReachedMaxLength:function(e){var t=rc(e);return t&&e.length>=t.lengths[t.lengths.length-1]},isNumeric:function(e){return/^\d*$/.test(e.key)},validateLuhn:sc,getCardNumberError:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=n.errorMessages,a=void 0===c?{}:c;if(!e)return a.emptyCardNumber||"Enter a card number";var r=e.replace(/\s/g,""),o=rc(r);if(o&&o.lengths){var i=o.lengths.includes(r.length);if(i){var l=sc(r);if(l)return t?t({cardNumber:r,cardType:o,errorMessages:a}):void 0}}return a.invalidCardNumber||"Card number is invalid"},getExpiryDateError:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=n.errorMessages,a=void 0===c?{}:c;if(!e)return a.emptyExpiryDate||"Enter an expiry date";var r=e.replace(" / ","").replace("/","");if(4===r.length){var o=r.slice(0,2),i="20".concat(r.slice(2,4));return ic.test(o)?parseInt(i)<(new Date).getFullYear()?a.yearOutOfRange||"Expiry year cannot be in the past":parseInt(i)===(new Date).getFullYear()&&parseInt(o)<(new Date).getMonth()+1?a.dateOutOfRange||"Expiry date cannot be in the past":t?t({expiryDate:{month:o,year:i},errorMessages:a}):void 0:a.monthOutOfRange||lc}return a.invalidExpiryDate||"Expiry date is invalid"},getCVCError:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=n.cardType,a=n.errorMessages,r=void 0===a?{}:a;return e?e.length<3||c&&e.length!==c.code.length?r.invalidCVC||"CVC is invalid":t?t({cvc:e,cardType:c,errorMessages:r}):void 0:r.emptyCVC||"Enter a CVC"},getZIPError:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errorMessages,c=void 0===n?{}:n;if(!e)return c.emptyZIP||"Enter a ZIP code"}});function fc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hc(){return(hc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e}).apply(this,arguments)}function pc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},c=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(c=c.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),c.forEach((function(t){fc(e,t,n[t])}))}return e}function dc(e,t){if(null==e)return{};var n,c,a=function(e,t){if(null==e)return{};var n,c,a={},r=Object.keys(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function mc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function vc(e,t){return bc(e)||function(e,t){var n=[],c=!0,a=!1,r=void 0;try{for(var o,i=e[Symbol.iterator]();!(c=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);c=!0);}catch(e){a=!0,r=e}finally{try{c||null==i.return||i.return()}finally{if(a)throw r}}return n}(e,t)||yc()}function gc(e){return bc(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||yc()}function bc(e){if(Array.isArray(e))return e}function yc(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}var zc={cardTypes:oc,formatter:Object.freeze({formatCardNumber:function(e){var t=rc(e);if(!t)return(e.match(/\d+/g)||[]).join("");var n=t.format;if(n&&n.global)return(e.match(n)||[]).join(" ");if(n){var c=n.exec(e.split(" ").join(""));if(c)return c.splice(1,3).filter((function(e){return e})).join(" ")}return e},formatExpiry:function(e){var t=e.nativeEvent&&e.nativeEvent.data,n=e.target.value.split(" / ").join("/");if(!n)return null;var c=n;if(/^[2-9]$/.test(c)&&(c="0".concat(c)),2===n.length&&+n>12){var a=gc(n.split("")),r=a[0],o=a.slice(1);c="0".concat(r,"/").concat(o.join(""))}if(/^1[/-]$/.test(c))return"01 / ";if(1===(c=c.match(/(\d{1,2})/g)||[]).length){if(!t&&n.includes("/"))return c[0];if(/\d{2}/.test(c))return"".concat(c[0]," / ")}if(c.length>2){var i=vc(c.join("").match(/^(\d{2}).*(\d{2})$/)||[],3),l=i[1],s=void 0===l?null:l,u=i[2];return[s,void 0===u?null:u].join(" / ")}return c.join(" / ")}}),validator:uc,BACKSPACE_KEY_CODE:"Backspace",ENTER_KEY_CODE:"Enter",isHighlighted:function(){return"Range"===(window.getSelection()||{type:void 0}).type}};var Cc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoFocus,n=void 0===t||t,c=e.errorMessages,a=e.onBlur,r=e.onChange,o=e.onError,l=e.onTouch,s=e.cardNumberValidator,u=e.cvcValidator,f=e.expiryValidator,h=i.a.useRef(),p=i.a.useRef(),d=i.a.useRef(),m=i.a.useRef(),v=i.a.useState({cardNumber:!1,expiryDate:!1,cvc:!1,zip:!1}),g=vc(v,2),b=g[0],y=g[1],z=i.a.useState(!1),C=vc(z,2),x=C[0],M=C[1],L=i.a.useState({cardNumber:void 0,expiryDate:void 0,cvc:void 0,zip:void 0}),w=vc(L,2),H=w[0],V=w[1],S=i.a.useState(),E=vc(S,2),N=E[0],k=E[1],O=i.a.useState(),A=vc(O,2),_=A[0],R=A[1],P=i.a.useState(),T=vc(P,2),j=T[0],D=T[1],I=i.a.useCallback((function(e,t){V((function(n){if(n[e]===t)return n;var c=t,a=pc({},n,fc({},e,t));return t?k(t):(c=Object.values(a).find(Boolean),k(c)),o&&o(c,a),a}))}),[]),F=i.a.useCallback((function(e,t){requestAnimationFrame((function(){"INPUT"!==document.activeElement.tagName?M(!0):!1===t&&M(!1)})),y((function(n){if(n[e]===t)return n;var c=pc({},n,fc({},e,t));return l&&l(fc({},e,t),c),c}))}),[]),U=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onBlur&&e.onBlur(t),a&&a(t),D(void 0),F("cardNumber",!0)}}),[a,F]),B=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var a=(t.target.value||"").replace(/\s/g,""),o=h.current.selectionStart,i=zc.cardTypes.getCardTypeByValue(a);R(i),F("cardNumber",!1),h.current.value=zc.formatter.formatCardNumber(a),e.onChange&&e.onChange(t),r&&r(t),requestAnimationFrame((function(){document.activeElement===h.current&&(" "===h.current.value[o-1]&&(o+=1),h.current.setSelectionRange(o,o))}));var l=zc.validator.getCardNumberError(a,s,{errorMessages:c});!l&&n&&p.current&&p.current.focus(),I("cardNumber",l),e.onError&&e.onError(l)}}),[n,s,c,r,I,F]),Z=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onFocus&&e.onFocus(t),D("cardNumber")}}),[]),W=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=(t.target.value||"").replace(/\s/g,"");e.onKeyPress&&e.onKeyPress(t),t.key!==zc.ENTER_KEY_CODE&&(zc.validator.isNumeric(t)||t.preventDefault(),zc.validator.hasCardNumberReachedMaxLength(n)&&t.preventDefault())}}),[]),$=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=dc(e,["refKey"]);return pc(fc({"aria-label":"Card number",autoComplete:"cc-number",id:"cardNumber",name:"cardNumber",placeholder:"Card number",type:"tel"},t||"ref",h),n,{onBlur:U(n),onChange:B(n),onFocus:Z(n),onKeyPress:W(n)})}),[U,B,Z,W]),q=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onBlur&&e.onBlur(t),a&&a(t),D(void 0),F("expiryDate",!0)}}),[a,F]),G=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){F("expiryDate",!1),p.current.value=zc.formatter.formatExpiry(t),e.onChange&&e.onChange(t),r&&r(t);var a=zc.validator.getExpiryDateError(p.current.value,f,{errorMessages:c});!a&&n&&d.current&&d.current.focus(),I("expiryDate",a),e.onError&&e.onError(a)}}),[n,c,f,r,I,F]),K=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onFocus&&e.onFocus(t),D("expiryDate")}}),[]),Y=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onKeyDown&&e.onKeyDown(t),t.key===zc.BACKSPACE_KEY_CODE&&!t.target.value&&n&&h.current&&h.current.focus()}}),[n]),Q=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=(t.target.value||"").replace(" / ","");e.onKeyPress&&e.onKeyPress(t),t.key!==zc.ENTER_KEY_CODE&&(zc.validator.isNumeric(t)||t.preventDefault(),n.length>=4&&t.preventDefault())}}),[]),X=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=dc(e,["refKey"]);return pc(fc({"aria-label":"Expiry date in format MM YY",autoComplete:"cc-exp",id:"expiryDate",name:"expiryDate",placeholder:"MM/YY",type:"tel"},t||"ref",p),n,{onBlur:q(n),onChange:G(n),onFocus:K(n),onKeyDown:Y(n),onKeyPress:Q(n)})}),[q,G,K,Y,Q]),J=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onBlur&&e.onBlur(t),a&&a(t),D(void 0),F("cvc",!0)}}),[a,F]),ee=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.cardType;return function(t){var o=t.target.value;F("cvc",!1),e.onChange&&e.onChange(t),r&&r(t);var i=zc.validator.getCVCError(o,u,{cardType:a,errorMessages:c});!i&&n&&m.current&&m.current.focus(),I("cvc",i),e.onError&&e.onError(i)}}),[n,u,c,r,I,F]),te=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onFocus&&e.onFocus(t),D("cvc")}}),[]),ne=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onKeyDown&&e.onKeyDown(t),t.key===zc.BACKSPACE_KEY_CODE&&!t.target.value&&n&&p.current&&p.current.focus()}}),[n]),ce=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.cardType;return function(t){var c=(t.target.value||"").replace(" / ","");e.onKeyPress&&e.onKeyPress(t),t.key!==zc.ENTER_KEY_CODE&&(zc.validator.isNumeric(t)||t.preventDefault(),n&&c.length>=n.code.length&&t.preventDefault(),c.length>=4&&t.preventDefault())}}),[]),ae=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=dc(e,["refKey"]);return pc(fc({"aria-label":"CVC",autoComplete:"cc-csc",id:"cvc",name:"cvc",placeholder:_?_.code.name:"CVC",type:"tel"},t||"ref",d),n,{onBlur:J(n),onChange:ee(n,{cardType:_}),onFocus:te(n),onKeyDown:ne(n),onKeyPress:ce(n,{cardType:_})})}),[_,J,ee,te,ne,ce]),re=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onBlur&&e.onBlur(t),a&&a(t),D(void 0),F("zip",!0)}}),[a,F]),oe=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=t.target.value;F("zip",!1),e.onChange&&e.onChange(t),r&&r(t);var a=zc.validator.getZIPError(n,{errorMessages:c});I("zip",a),e.onError&&e.onError(a)}}),[c,r,I,F]),ie=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onFocus&&e.onFocus(t),D("zip")}}),[]),le=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onKeyDown&&e.onKeyDown(t),t.key===zc.BACKSPACE_KEY_CODE&&!t.target.value&&n&&d.current&&d.current.focus()}}),[n]),se=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onKeyPress&&e.onKeyPress(t),t.key!==zc.ENTER_KEY_CODE&&(zc.validator.isNumeric(t)||t.preventDefault())}}),[]),ue=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=dc(e,["refKey"]);return pc(fc({autoComplete:"off",id:"zip",maxLength:"6",name:"zip",placeholder:"ZIP",type:"tel"},t||"ref",m),n,{onBlur:re(n),onChange:oe(n),onFocus:ie(n),onKeyDown:le(n),onKeyPress:se(n)})}),[re,oe,ie,le,se]),fe=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.images||{};return pc({"aria-label":_?_.displayName:"Placeholder card",children:t[_?_.type:"placeholder"]||t.placeholder,width:"1.5em",height:"1em",viewBox:"0 0 24 16"},e)}),[_]);return i.a.useLayoutEffect((function(){if(m.current){var e=zc.validator.getZIPError(m.current.value,{errorMessages:c});I("zip",e)}if(d.current){var t=zc.validator.getCVCError(d.current.value,u,{errorMessages:c});I("cvc",t)}if(p.current){var n=zc.validator.getExpiryDateError(p.current.value,f,{errorMessages:c});I("expiryDate",n)}if(h.current){var a=zc.validator.getCardNumberError(h.current.value,s,{errorMessages:c});I("cardNumber",a)}}),[s,u,c,f,I]),i.a.useLayoutEffect((function(){h.current&&(h.current.value=zc.formatter.formatCardNumber(h.current.value)),p.current&&(p.current.value=zc.formatter.formatExpiry({target:p.current}))}),[]),i.a.useLayoutEffect((function(){if(h.current){var e=zc.cardTypes.getCardTypeByValue(h.current.value);R(e)}}),[]),{getCardImageProps:fe,getCardNumberProps:$,getExpiryDateProps:X,getCVCProps:ae,getZIPProps:ue,wrapperProps:{error:N,focused:j,isTouched:x},meta:{cardType:_,erroredInputs:H,error:N,focused:j,isTouched:x,touchedInputs:b}}};var xc=n(313);function Mc(){var e=mc(["\n color: #c9444d;\n font-size: 0.75rem;\n margin-top: 0.25rem;\n\n & {\n ",";\n }\n"]);return Mc=function(){return e},e}function Lc(){var e=mc(["\n border-color: #444bc9;\n box-shadow: #444bc9 0px 0px 0px 1px;\n ",";\n "]);return Lc=function(){return e},e}function wc(){var e=mc(["\n border-color: #c9444d;\n box-shadow: #c9444d 0px 0px 0px 1px;\n ",";\n "]);return wc=function(){return e},e}function Hc(){var e=mc(["\n align-items: center;\n background-color: white;\n border: 1px solid #bdbdbd;\n box-shadow: inset 0px 1px 2px #e5e5e5;\n border-radius: 0.2em;\n display: flex;\n height: 2.5em;\n padding: 0.4em 0.6em;\n\n & {\n ",";\n }\n\n & {\n ",";\n }\n\n & input {\n border: unset;\n margin: unset;\n padding: unset;\n outline: unset;\n font-size: inherit;\n\n & {\n ",";\n }\n\n ",";\n }\n\n & svg {\n margin-right: 0.6em;\n & {\n ",";\n }\n }\n\n & input#cardNumber {\n width: 11em;\n & {\n ",";\n }\n }\n\n & input#expiryDate {\n width: 4em;\n & {\n ",";\n }\n }\n\n & input#cvc {\n width: 2.5em;\n & {\n ",";\n }\n }\n\n & input#zip {\n width: 4em;\n & {\n ",";\n }\n }\n\n ",";\n"]);return Hc=function(){return e},e}function Vc(){var e=mc(["\n display: inline-flex;\n flex-direction: column;\n\n & {\n ",";\n }\n\n ",";\n"]);return Vc=function(){return e},e}var Sc=xc.c.div(Vc(),(function(e){return e.hasErrored&&e.styles.fieldWrapper?e.styles.fieldWrapper.errored:void 0}),(function(e){return e.styles.fieldWrapper?e.styles.fieldWrapper.base:void 0})),Ec=xc.c.div(Hc(),(function(e){return e.hasErrored&&Object(xc.b)(wc(),(function(e){return e.styles.inputWrapper&&e.styles.inputWrapper.errored}))}),(function(e){return e.focused&&Object(xc.b)(Lc(),(function(e){return e.styles.inputWrapper&&e.styles.inputWrapper.focused}))}),(function(e){return e.hasErrored&&e.styles.input?e.styles.input.errored:void 0}),(function(e){return e.styles.input&&e.styles.input.base}),(function(e){return e.styles.cardImage}),(function(e){return e.styles.input&&e.styles.input.cardNumber}),(function(e){return e.styles.input&&e.styles.input.expiryDate}),(function(e){return e.styles.input&&e.styles.input.cvc}),(function(e){return e.styles.input&&e.styles.input.zip}),(function(e){return e.styles.inputWrapper?e.styles.inputWrapper.base:void 0})),Nc=xc.c.div(Mc(),(function(e){return e.styles.errorText?e.styles.errorText.base:void 0}));function kc(e){var t=e.children,n=e.error,c=e.errorTextProps,a=e.focused,r=e.inputWrapperProps,o=e.isTouched,l=e.styles,s=dc(e,["children","error","errorTextProps","focused","inputWrapperProps","isTouched","styles"]),u=n&&o;return i.a.createElement(Sc,hc({hasErrored:u,styles:l},s),i.a.createElement(Ec,hc({focused:a,hasErrored:u,styles:l},r),t),u&&i.a.createElement(Nc,hc({styles:l},c),n))}kc.defaultProps={styles:{}};var Oc=kc,Ac=i.a.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.a.createElement("g",{id:"New-Icons",transform:"translate(-80.000000, -280.000000)",fillRule:"nonzero"},i.a.createElement("g",{id:"Card-Brands",transform:"translate(40.000000, 200.000000)"},i.a.createElement("g",{id:"Color",transform:"translate(0.000000, 80.000000)"},i.a.createElement("g",{id:"Visa",transform:"translate(40.000000, 0.000000)"},i.a.createElement("rect",{strokeOpacity:"0.2",stroke:"#000000",strokeWidth:"0.5",fill:"#FFFFFF",x:"0.25",y:"0.25",width:"23.5",height:"15.5",rx:"2"}),i.a.createElement("path",{d:"M2.78773262,5.91443732 C2.26459089,5.62750595 1.6675389,5.39673777 1,5.23659312 L1.0280005,5.1118821 L3.76497922,5.1118821 C4.13596254,5.12488556 4.43699113,5.23650585 4.53494636,5.63071135 L5.12976697,8.46659052 L5.31198338,9.32072617 L6.97796639,5.1118821 L8.77678896,5.1118821 L6.10288111,11.2775284 L4.30396552,11.2775284 L2.78773262,5.91443732 L2.78773262,5.91443732 Z M10.0999752,11.2840738 L8.39882877,11.2840738 L9.46284763,5.1118821 L11.163901,5.1118821 L10.0999752,11.2840738 Z M16.2667821,5.26277458 L16.0354292,6.59558538 L15.881566,6.53004446 C15.5737466,6.40524617 15.1674138,6.28053516 14.6143808,6.29371316 C13.942741,6.29371316 13.6415263,6.56277129 13.6345494,6.82545859 C13.6345494,7.11441463 13.998928,7.3048411 14.5939153,7.58725177 C15.5740257,8.02718756 16.0286384,8.56556562 16.0218476,9.26818871 C16.0080799,10.5486366 14.8460128,11.376058 13.0610509,11.376058 C12.2978746,11.3694253 11.5627918,11.2180965 11.163808,11.0475679 L11.4018587,9.66204513 L11.6258627,9.76066195 C12.1788958,9.99070971 12.5428092,10.0889775 13.221984,10.0889775 C13.7117601,10.0889775 14.2368857,9.89837643 14.2435835,9.48488392 C14.2435835,9.21565125 14.0198586,9.01850486 13.3617074,8.7164581 C12.717789,8.42086943 11.8568435,7.92848346 11.8707973,7.04197926 C11.8780532,5.84042483 13.0610509,5 14.7409877,5 C15.3990458,5 15.9312413,5.13788902 16.2667821,5.26277458 Z M18.5277524,9.0974856 L19.941731,9.0974856 C19.8717762,8.78889347 19.549631,7.31147374 19.549631,7.31147374 L19.4307452,6.77964104 C19.3467437,7.00942698 19.1998574,7.38373457 19.2069273,7.37055657 C19.2069273,7.37055657 18.6678479,8.74290137 18.5277524,9.0974856 Z M20.6276036,5.1118821 L22,11.2839865 L20.4249023,11.2839865 C20.4249023,11.2839865 20.2707601,10.5748181 20.221922,10.3581228 L18.0377903,10.3581228 C17.9746264,10.5221933 17.6807607,11.2839865 17.6807607,11.2839865 L15.8957988,11.2839865 L18.4226343,5.62399144 C18.5977072,5.22341512 18.9059917,5.1118821 19.3117663,5.1118821 L20.6276036,5.1118821 L20.6276036,5.1118821 Z",id:"Shape",fill:"#171E6C"})))))),_c=i.a.createElement("g",{fill:"none"},i.a.createElement("path",{d:"m4.54588254.00006676h5.79377466c.8087588 0 1.3117793.72566459 1.1231113 1.61890981l-2.69741608 12.74856503c-.19036262.8901361-1.00010994 1.6164225-1.80943362 1.6164225h-5.79320976c-.80762905 0-1.31177937-.7262864-1.12311135-1.6164225l2.69854581-12.74856503c.18866803-.89324522.9979917-1.61890981 1.80773904-1.61890981",fill:"#dd2423"}),i.a.createElement("path",{d:"m9.85756516.00006676h6.66269264c.8086174 0 .4439911.72566459.2537697 1.61890981l-2.6969924 12.74856503c-.1892329.8901361-.1302036 1.6164225-.9405158 1.6164225h-6.66269248c-.81031221 0-1.31177939-.7262864-1.12141672-1.6164225l2.69685116-12.74856503c.19149238-.89324522.99912144-1.61890981 1.8083039-1.61890981",fill:"#16315e"}),i.a.createElement("path",{d:"m16.2559813.00006676h5.7937745c.8098886 0 1.3129092.72566459 1.1226878 1.61890981l-2.6969924 12.74856503c-.1903626.8901361-1.0006749 1.6164225-1.8104222 1.6164225h-5.7910915c-.8103122 0-1.3129091-.7262864-1.1231113-1.6164225l2.697416-12.74856503c.1886681-.89324522.9974268-1.61890981 1.8077391-1.61890981",fill:"#036862"}),i.a.createElement("path",{d:"m6.05901135 4.08561434c-.59580116.00668457-.77175951 0-.8279645-.01461278-.02160646.11301588-.42365577 2.15460824-.42478553 2.15631824-.08656699.4130443-.14955043.7074763-.36349659.89759795-.12144798.1105286-.26323144.1638497-.42760986.1638497-.26421996 0-.41814822-.1444178-.44399122-.41832975l-.00494264-.09405035s.08049458-.55326485.08049458-.55637395c0 0 .42196112-1.86048711.49751306-2.10641713.00395412-.01399096.00508387-.02129736.00607239-.02798193-.82132725.00792821-.9669236 0-.97695012-.01461278-.00550753.02005371-.025843.13540142-.025843.13540142l-.43085788 2.09693437-.03699927.1778407-.07159782.5817131c0 .1725552.03078565.31339755.09207452.4324762.19629382.37760055.75622549.4341862 1.07297875.4341862.40812169 0 .79096525-.09544945 1.04967767-.26971465.44907509-.2921002.56656897-.74867195.67135315-1.15440985l.04857917-.20815445s.43467082-1.93230737.5085281-2.18367833c.00282441-.01399096.00395413-.02129736.00776704-.02798193zm1.47893982 1.55881086c-.10478422 0-.29627659.0279819-.46828081.12078865-.0624186.0352883-.12144796.07601755-.18372539.11659135l.056205-.22338905-.03078563-.03762015c-.36476761.08130305-.44639193.0921849-.78333945.14441785l-.02824374.0206755c-.03911752.3570805-.07385733.6255515-.21888878 1.32743145-.05521646.25867735-.11255121.519842-.17002718.7778975l.01553403.03280105c.34527946-.0200537.45006363-.0200537.75015309-.0146128l.02428961-.0290701c.03812903-.21499445.04307165-.2653619.12752039-.70079175.03968242-.20644445.1224365-.66006255.16324868-.8215804.07498704-.038242.14898558-.07586215.21959486-.07586215.16819135 0 .14771465.1615179.14121858.22587635-.00720213.1080413-.06849101.4609245-.13133325.76390655l-.04194194.19556255c-.02923223.14441785-.06128888.2847938-.09052111.427968l.01270966.02860375c.34033679-.0200537.44413246-.0200537.73476028-.0146128l.0341749-.0290701c.0525333-.3357831.06792611-.42563615.16113038-.9145426l.04688457-.22463265c.09108601-.43962715.13684082-.6625498.06792616-.8441214-.07286879-.2034908-.24769738-.2526146-.40826291-.2526146zm1.65214439.4602871c-.18090101.038242-.29627659.0637366-.41094606.08021485-.11368097.02005375-.22453757.038242-.39936616.06498025l-.01383941.0138355-.01270966.01103735c-.01821719.14332965-.0309269.26722735-.05507525.41288885-.02047669.150636-.05196844.3217921-.10323077.56772215-.03968243.18825615-.06015913.25385825-.08275412.32008215-.0220301.06622385-.04631967.1305823-.09094476.31572935l.01045019.0171001.00875554.01570095c.1633899-.00855005.27029237-.0146128.38016043-.01570095.10972684-.00435275.22340776 0 .39936611.00108815l.01539286-.0138355.01652257-.0152346c.02541932-.1669588.02923224-.21188535.04476626-.29334385.01539282-.0873658.04194194-.20830985.10704369-.53134565.03078568-.1517242.06510179-.30298205.09701718-.4578154.03318641-.1542115.06792612-.30609115.10097127-.45781535l-.00494263-.0183437zm.00385525-.620608c-.1643784-.10679765-.45288796-.07290845-.64706354.0746185-.19361063.14457325-.21564072.34977405-.05182718.4579708.16155403.10384405.45119334.0729085.64367421-.0758621.19318708-.14768235.21733543-.3510177.05521651-.4567272zm.99410809 2.473369c.3325698 0 .6734715-.1008904.9300657-.400297.1974235-.2428209.2879446-.60409865.3192952-.7528692.1021011-.4931037.0225949-.7233328-.0772466-.8635533-.1516687-.21375085-.4197016-.28230655-.697761-.28230655-.1672028 0-.5654392.01818825-.87654364.33391765-.22340786.22774175-.32663863.5367866-.38891601.83308405-.06284224.3018939-.13514621.84536505.31887154 1.0476122.14008884.0662239.34203141.08441215.47223481.08441215zm-.0259841-1.10948335c.0766817-.3734032.1672028-.6868008.3982364-.6868008.1810422 0 .1941755.23318275.1136809.6078296-.0144042.0831685-.0804945.3923688-.1698859.5240393-.0624186.09715945-.1362759.15607695-.2179003.15607695-.0242896 0-.1687562 0-.1710157-.23613635-.0011297-.11659135.0204767-.23567.0468846-.3650087zm2.1066988 1.06146325.0259841-.0290701c.0368581-.21499445.0429305-.2655174.1245549-.70079175.0408121-.20644445.1252608-.66006255.1649433-.82158045.0751282-.0383974.1478558-.07601755.2207245-.07601755.1670616 0 .1467262.1615179.140089.2258763-.0060725.1081968-.0673613.4609245-.1313334.76390655l-.0396824.1955626c-.030362.14457325-.0634071.2847938-.0926394.42812345l.0127097.02860375c.3414665-.02005375.441308-.02005375.7336305-.0146128l.0353047-.0290701c.0512623-.33593855.0651017-.42579165.1611304-.9145426l.0457548-.2247881c.0915096-.43962715.1378292-.66239435.0700444-.84396595-.0749871-.2034908-.2509454-.2526146-.4092515-.2526146-.1049254 0-.2974063.02782645-.468422.12078865-.0611476.0352883-.1224365.0758621-.1825956.11659135l.0523921-.22338905-.0281025-.0377756c-.3646263.0814585-.4479453.09234035-.7844692.1445733l-.025843.0206755c-.0408122.35708045-.0739986.62539605-.21903 1.32743145-.0552164.25867735-.1125512.51984195-.1698859.7778975l.0153928.03280105c.3458442-.02005375.4490751-.02005375.7485997-.0146128zm2.5088186.01453505c.0214652-.1153477.1489856-.7990394.1501153-.7990394 0 0 .1085971-.50165375.1152345-.519842 0 0 .0341748-.0522329.0683497-.07290845h.0502738c.4743532 0 1.0099953 0 1.4298381-.3399804.2856852-.2331827.4809905-.57751585.5681223-.99600105.022595-.1026004.0392588-.22463269.0392588-.34666496 0-.16027425-.0292322-.3188385-.1136809-.44273624-.2140874-.32972035-.6404262-.3357831-1.132573-.33827039-.0015534 0-.2426136.00248729-.2426136.00248729-.629976.00855003-.8826161.00606275-.9864117-.00792821-.0087556.05052291-.0252782.14037599-.0252782.14037599s-.2256673 1.15130077-.2256673 1.15316622c0 0-.5400198 2.4477966-.5654392 2.5631443.5500464-.00730635.7755725-.00730635.8704714.0041973zm.4181482-2.0451678s.2399304-1.14896892.2388007-1.14461618l.0077669-.05891749.0033893-.04492654.0958874.01088185s.4948299.046792.5064099.04803565c.1953052.0831685.2757998.29754113.2195948.57736036-.0512623.2557237-.2019425.4707182-.3955532.5745622-.1594358.0879876-.3547411.095294-.5559775.095294h-.1302035zm1.4938667.99045135c-.0634072.2975411-.136276.8410123.3154822 1.0347094.1440429.0674675.2731167.0875212.4043088.08021485.1385355-.00823915.2669031-.08472305.3858092-.1947853-.0107326.04523745-.0214652.0904749-.0321978.1358678l.0204766.0290701c.324944-.01507915.4257741-.01507915.7778319-.0121255l.0319154-.0267383c.0514036-.332674.0998416-.65570975.2334344-1.2921431.0651017-.30484755.1300622-.6067414.1968587-.9103453l-.0104501-.03342285c-.3634967.0741521-.4606551.09000855-.8103124.1445733l-.026549.0237846c-.0035305.0309356-.0072021.0606275-.0105914.09031945-.0543692-.0966931-.1331691-.17923975-.2547583-.2306954-.1554817-.0673121-.5206729.01943185-.8346018.33407305-.2205834.2246327-.3264973.53243385-.3866564.8276432zm.7634275.01818825c.0778115-.3667187.1672028-.67700715.3988014-.67700715.1464436 0 .2235489.14877055.2078737.40247335-.0124272.06327025-.025843.1299605-.0418008.20535625-.0231597.10897405-.0482967.21701535-.0727275.32521215-.0248545.07399665-.0538043.143796-.0855784.1902771-.0595943.09296215-.2013777.150636-.2830021.150636-.0231599 0-.1660731 0-.1710157-.23193905-.0011298-.11550315.0204767-.23442635.0474494-.36500865zm3.9866711-1.21085565-.0281024-.0352883c-.3596838.08021485-.4247856.09296215-.755237.142086l-.0242897.02673825c-.0011296.00435275-.0021182.01103735-.0038128.0171001l-.0011298-.00606275c-.2460027.6247742-.2388006.4899946-.4390485.98185465-.0011298-.02238555-.0011298-.0363765-.0022595-.06016115l-.0501327-1.0662668-.0314917-.0352883c-.3767711.08021485-.3856679.09296215-.7336305.142086l-.0271139.02673825c-.003813.01274735-.003813.0267383-.0060724.0419729l.0022594.00544095c.0434954.2446864.0330452.19012165.0766818.5762722.0203354.1894998.0474494.3800878.0677848.5672558.0343162.3132421.0535219.4674536.0954638.94547815-.2349878.4268798-.2906279.5883977-.51686.9630446l.0015534.0037309-.1592946.27733195c-.0182171.0292256-.0347397.0492793-.0578996.05782935-.0254193.0138355-.0584644.01632275-.1043605.01632275h-.0882616l-.131192.4803564.4500635.00855005c.26422-.00124365.4302931-.1372669.5196844-.32008215l.283002-.53383295h-.004519l.0297972-.03762015c.1903626-.4511308 1.6384179-3.1855867 1.6384179-3.1855867zm-4.7501128 6.3087581h-.1909276l.7066579-2.57293795h.2344228l.0744221-.265051.0072022.29474295c-.0087556.1821934.121448.3437113.4634794.31697305h.3955532l.1361347-.49543555h-.1488443c-.0855785 0-.1252609-.02378465-.1203182-.0747739l-.0072022-.299873h-.7325008v.00155455c-.2368235.00544095-.9440462.0250283-1.0872418.0670012-.1732752.0491238-.3558709.1936971-.3558709.1936971l.071739-.26536195h-.6851925l-.1427719.52652655-.7161194 2.61226815h-.1389591l-.136276.4918601h1.3647364l-.0457548.1640051h.6724828l.0446251-.1640051h.1886681zm-.5599316-2.0501423c-.1097268.03342285-.313929.1347796-.313929.1347796l.1816071-.65757525h.5443977l-.1313333.47911275s-.1681914.01088185-.2807425.0436829zm.0104502.9394154s-.1710158.0236292-.283567.0516111c-.1108566.0369984-.3187303.1535897-.3187303.1535897l.1875382-.6843135h.5472221zm-.3050322 1.1167897h-.5460922l.158306-.5775158h.5443976zm1.315112-1.5959024h.7871525l-.1131162.4032506h-.7976024l-.1197535.4408708h.6979023l-.5284398.8190931c-.0369994.0601612-.0701858.0814585-.1070437.0984031-.0369994.0206755-.0855785.0449265-.1417835.0449265h-.1936107l-.133028.4828437h.5064098c.2632315 0 .4187131-.131826.5335239-.3048476l.3623669-.5459584.0778115.5543531c.0165225.1038439.0843074.1646269.1302034.1882561.0506975.0279819.1030897.0760176.1770882.0831685.0793648.0037309.1366995.0066846.1748285.0066846h.2488272l.1494092-.5403621h-.0981469c-.0563463 0-.1533633-.0104155-.1698859-.0298474-.0165226-.0236292-.0165226-.0600057-.0254194-.1153477l-.0789412-.5555967h-.3232494l.1417836-.1857688h.796049l.1224365-.4408708h-.7370197l.1148107-.4032506h.7347603l.1362759-.497301h-2.1905826zm-6.6483163 1.7081877.1837253-.6728098h.7550958l.1379705-.5004101h-.7558018l.1153756-.4141325h.7385731l.1368408-.4845537h-1.84798632l-.13401641.4845537h.41984283l-.1119863.4141325h-.42097264l-.13952389.5089601h.41970155l-.24487301.8901361c-.03304514.117835.01553408.1627615.04631971.2174817.03149175.0533211.06340718.0886094.13514621.1086631.07399857.0181883.12469597.0290701.19361067.0290701h.8512656l.1516688-.554353-.3773361.0570521c-.0728688 0-.2746701-.0096382-.25264-.0837903zm.0866093-3.22084395-.1913512.38070965c-.0409534.08316845-.0778114.1347796-.1109978.1585642-.0292322.02005375-.0871318.0284483-.1710157.0284483h-.0998415l-.13345158.48704095h.33158128c.1594357 0 .2818722-.0643584.3403368-.09653765.0628422-.0369983.0793647-.0158564.1279439-.0674675l.1119864-.1067977h1.0354146l.1374057-.50709465h-.7579202l.1323219-.2768656zm1.5286064 3.23062205c-.0176524-.027982-.0049427-.0772612.0220301-.1798616l.283002-1.0311339h1.0067472c.1467262-.0023318.25264-.0041973.3215547-.0096382.0739985-.0085501.1544932-.0376202.2421899-.0898531.0905212-.0547202.1368408-.1123941.1759583-.178618.0436366-.0660684.113681-.2106417.1738401-.4335643l.3557296-1.3048905-1.044735.0066846s-.3216959.0522329-.4633381.10990675c-.1429132.06435845-.3471154.2440646-.3471154.2440646l.0943341-.3577023h-.645369l-.9035164 3.29860265c-.0320566.1280949-.0535218.2210571-.0584645.2768655-.0016946.0601612.0689147.1197005.1146695.164627.0540867.0449266.1340164.0376202.2106981.0449266.0806358.0066846.1953053.0108818.3536113.0108818h.4959597l.1522336-.5658567-.4439912.0461702c-.0474494 0-.0817655-.027982-.0960286-.0516111zm.4876277-1.9074346h1.0574447l-.06722.2319391c-.0094616.0054409-.0320566-.0115037-.1396652.0024873h-.9156612zm.2118279-.77789745h1.0663414l-.0766816.27935285s-.5025969-.0054409-.5830915.01088185c-.3541763.06746755-.5610614.27577745-.5610614.27577745zm.802065 1.78653705c-.0087555.0346665-.0225949.0558084-.0419418.0716648-.0214654.0152346-.0562051.0206755-.1080323.0206755h-.1506803l.0088968-.2824619h-.626728l-.0254193 1.380908c-.0009886.0996467.007767.1573206.0739985.2034908.0662315.0576738.2702923.0649802.5449624.0649802h.392729l.1417834-.5168883-.3418902.0206755-.1136809.0073064c-.0155341-.0073064-.030362-.013991-.0468846-.0321792-.0144043-.015701-.0386939-.0060627-.0347398-.1057095l.0026831-.3539713.3585541-.0163228c.1936107 0 .2763648-.0693331.346974-.1354015.0673612-.0632702.0893913-.1360232.1148107-.2344264l.0601592-.3133975h-.4927118z",fill:"#fefefe"})),Rc=i.a.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.a.createElement("g",null,i.a.createElement("rect",{id:"Rectangle",fill:"#D8D8D8",x:"0",y:"0",width:"24",height:"16",rx:"1"}),i.a.createElement("rect",{id:"Rectangle",fill:"#A6A6A6",x:"0.923076923",y:"10.3529412",width:"4.61538462",height:"1.88235294",rx:"0.941176471"}),i.a.createElement("rect",{id:"Rectangle",fill:"#FFFFFF",x:"16.6153846",y:"3.76470588",width:"4.61538462",height:"2.82352941",rx:"1"}),i.a.createElement("rect",{id:"Rectangle",fill:"#A6A6A6",x:"6.46153846",y:"10.3529412",width:"4.61538462",height:"1.88235294",rx:"0.941176471"}),i.a.createElement("rect",{id:"Rectangle",fill:"#A6A6A6",x:"11.9230769",y:"10.3529412",width:"5.61538462",height:"1.88235294",rx:"0.941176471"}),i.a.createElement("rect",{id:"Rectangle",fill:"#A6A6A6",x:"18.4615385",y:"10.3529412",width:"4.61538462",height:"1.88235294",rx:"0.941176471"}))),Pc=i.a.createElement("g",{fill:"none",fillRule:"evenodd"},i.a.createElement("rect",{fill:"#252525",height:"16",rx:"2",width:"24"}),i.a.createElement("circle",{cx:"9",cy:"8",fill:"#eb001b",r:"5"}),i.a.createElement("circle",{cx:"15",cy:"8",fill:"#f79e1b",r:"5"}),i.a.createElement("path",{d:"m12 3.99963381c1.2144467.91220633 2 2.36454836 2 4.00036619s-.7855533 3.0881599-2 4.0003662c-1.2144467-.9122063-2-2.36454837-2-4.0003662s.7855533-3.08815986 2-4.00036619z",fill:"#ff5f00"})),Tc=i.a.createElement("g",{fill:"none"},i.a.createElement("path",{d:"m.20535714 16h4.51785715c1.0278125 0 2.25892857-1.1946667 2.25892857-2.1333333v-13.8666667h-4.51785715c-1.0278125 0-2.25892857 1.19466667-2.25892857 3.2z",fill:"#047ab1"}),i.a.createElement("path",{d:"m2.76924107 10.816c-.86733559.0001606-1.73039558-.1147397-2.56388393-.3413333v-1.17333337c.64678874.37770431 1.38610045.59084099 2.14598215.61866667.8696875 0 1.35535714-.576 1.35535714-1.36533333v-3.22133334h2.14598214v3.22133334c0 1.25866666-.70026786 2.26133333-3.0834375 2.26133333z",fill:"#fff"}),i.a.createElement("path",{d:"m8.11160714 16h4.51785716c1.0278125 0 2.2589286-1.1946667 2.2589286-2.1333333v-13.8666667h-4.5178572c-1.02781249 0-2.25892856 1.19466667-2.25892856 3.2z",fill:"#d42d06"}),i.a.createElement("path",{d:"m8.11160714 6.08c.65508929-.59733333 1.78455357-.97066667 3.61428576-.88533333.9939285.04266666 2.0330357.32 2.0330357.32v1.184c-.5943231-.3394747-1.2623758-.54734656-1.9539732-.608-1.3892411-.11733334-2.23633933.61866666-2.23633933 1.90933333s.84709823 2.0266667 2.23633933 1.92c.6920185-.06606555 1.3596342-.27744592 1.9539732-.61866667v1.17333337s-1.0391072.288-2.0330357.3306666c-1.82973219.0853334-2.95919647-.288-3.61428576-.8853333z",fill:"#fff"}),i.a.createElement("path",{d:"m16.0178571 16h4.5178572c1.0278125 0 2.2589286-1.1946667 2.2589286-2.1333333v-13.8666667h-4.5178572c-1.0278125 0-2.2589286 1.19466667-2.2589286 3.2z",fill:"#67b637"}),i.a.createElement("path",{d:"m21.6651786 9.28c0 .8533333-.7002679 1.3866667-1.6377232 1.3866667h-4.0095983v-5.33333337h3.6481697l.2597768.01066667c.8245089.04266667 1.4344196.50133333 1.4344196 1.29066667 0 .61866666-.4179018 1.152-1.1746428 1.28v.032c.8358035.05333333 1.4795982.55466666 1.4795982 1.33333333zm-2.880134-3.104c-.0486104-.00686658-.0976798-.01043129-.1468303-.01066667h-1.3553572v1.344h1.5021875c.2823661-.064.5195536-.30933333.5195536-.672 0-.36266666-.2371875-.608-.5195536-.66133333zm.1694197 2.176c-.059755-.00886168-.1202559-.01243275-.1807143-.01066667h-1.4908929v1.46133334h1.4908929l.1807143-.02133334c.2823661-.064.5195536-.34133333.5195536-.71466666 0-.37333334-.2258929-.64-.5195536-.71466667z",fill:"#fff"})),jc={amex:i.a.createElement("g",{fill:"none",fillRule:"evenodd"},i.a.createElement("rect",{fill:"#016fd0",height:"16",rx:"2",width:"24"}),i.a.createElement("path",{d:"m13.7640663 13.3938564v-5.70139231l10.1475359.00910497v1.57489503l-1.1728619 1.25339231 1.1728619 1.2648839v1.6083094h-1.8726188l-.9951823-1.0981657-.9881105 1.1023204z",fill:"#fffffe"}),i.a.createElement("path",{d:"m14.4418122 12.7687956v-4.448884h3.7722872v1.02488398h-2.550895v.69569062h2.4900774v1.0078232h-2.4900774v.6833149h2.550895v1.0371713z",fill:"#016fd0"}),i.a.createElement("path",{d:"m18.1952707 12.7687956 2.087337-2.2270055-2.0874254-2.2217901h1.6156464l1.2754917 1.41003315 1.2791161-1.41003315h1.5461657v.03500552l-2.0428729 2.18678458 2.0428729 2.1638895v.063116h-1.5617237l-1.2981216-1.4241768-1.2847735 1.4241768z",fill:"#016fd0"}),i.a.createElement("path",{d:"m14.2373481 2.6319558h2.4460552l.8591381 1.95085083v-1.95085083h3.0198453l.5207514 1.46156906.5225194-1.46156906h2.3059447v5.70139227h-12.1865193z",fill:"#fffffe"}),i.a.createElement("g",{fill:"#016fd0"},i.a.createElement("path",{d:"m14.7004641 3.25135912-1.9740111 4.44517127h1.3539006l.3724199-.89016575h2.0179447l.3721547.89016575h1.3875801l-1.96579-4.44517127zm.1696353 2.55743646.592-1.41507182.5915581 1.41507182z"}),i.a.createElement("path",{d:"m18.2119779 7.69573481v-4.44508288l1.903116.00654144.9792707 2.73272928.9856354-2.73927072h1.8316022v4.44508288l-1.1786077.01043094v-3.05334807l-1.1125746 3.04291713h-1.0758011l-1.1356464-3.05334807v3.05334807z"}))),dinersclub:i.a.createElement("g",{id:"319",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.a.createElement("g",{id:"New-Icons",transform:"translate(-320.000000, -280.000000)",fillRule:"nonzero"},i.a.createElement("g",{id:"Card-Brands",transform:"translate(40.000000, 200.000000)"},i.a.createElement("g",{id:"Color",transform:"translate(0.000000, 80.000000)"},i.a.createElement("g",{id:"Diners-Club",transform:"translate(280.000000, 0.000000)"},i.a.createElement("path",{d:"M21.9972414,15.749927 L21.999381,15.7499362 C22.9544683,15.7581106 23.73806,14.9772525 23.75,14.0041555 L23.7500083,2.00630219 C23.7461702,1.53568921 23.5588633,1.08617106 23.2297297,0.756801782 C22.9014319,0.428268884 22.4589161,0.246148853 21.9972414,0.250070854 L2.00063,0.250061791 C1.54108393,0.246148853 1.09856813,0.428268884 0.77027028,0.756801782 C0.441136651,1.08617106 0.253829819,1.53568921 0.25,2.00426336 L0.249991686,13.9936957 C0.253829819,14.4643086 0.441136651,14.9138268 0.77027028,15.2431961 C1.09856813,15.571729 1.54108393,15.753849 2.00275862,15.749927 L21.9972414,15.749927 Z M21.996203,16.249927 C21.9958359,16.249924 21.9954688,16.249921 21.9951018,16.2499178 L21.9972414,16.249927 L21.996203,16.249927 Z",id:"shape",strokeOpacity:"0.2",stroke:"#000000",strokeWidth:"0.5",fill:"#FFFFFF"}),i.a.createElement("path",{d:"M10.0021142,2.05179033 L10.0021142,2.03579033 L14.0021142,2.03579033 L14.0021142,2.05179033 C17.1375481,2.28122918 19.5642283,4.89197286 19.5642283,8.03579033 C19.5642283,11.1796078 17.1375481,13.7903515 14.0021142,14.0197903 L14.0021142,14.0357903 L10.0021142,14.0357903 L10.0021142,14.0197903 C6.86668021,13.7903515 4.44,11.1796078 4.44,8.03579033 C4.44,4.89197286 6.86668021,2.28122918 10.0021142,2.05179033 Z",id:"shape",fill:"#0165AC"}),i.a.createElement("path",{d:"M11.6021142,11.4277903 C13.0374002,10.9175027 13.9961556,9.55908923 13.9961556,8.03579033 C13.9961556,6.51249143 13.0374002,5.15407792 11.6021142,4.64379033 L11.6021142,11.4277903 L11.6021142,11.4277903 Z M9.20211417,4.64379033 C7.76682809,5.15407792 6.80807271,6.51249143 6.80807271,8.03579033 C6.80807271,9.55908923 7.76682809,10.9175027 9.20211417,11.4277903 L9.20211417,4.64379033 L9.20211417,4.64379033 Z M10.4021142,13.2357903 C7.53023347,13.2357903 5.20211417,10.907671 5.20211417,8.03579033 C5.20211417,5.16390963 7.53023347,2.83579033 10.4021142,2.83579033 C13.2739949,2.83579033 15.6021142,5.16390963 15.6021142,8.03579033 C15.6021142,10.907671 13.2739949,13.2357903 10.4021142,13.2357903 Z",id:"shape",fill:"#FFFFFF"})))))),discover:i.a.createElement("g",{id:"319",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.a.createElement("g",{id:"New-Icons",transform:"translate(-280.000000, -280.000000)",fillRule:"nonzero"},i.a.createElement("g",{id:"Card-Brands",transform:"translate(40.000000, 200.000000)"},i.a.createElement("g",{id:"Color",transform:"translate(0.000000, 80.000000)"},i.a.createElement("g",{id:"Discover",transform:"translate(240.000000, 0.000000)"},i.a.createElement("path",{d:"M21.9972414,15.749927 L21.999381,15.7499362 C22.9544683,15.7581106 23.73806,14.9772525 23.75,14.0041555 L23.7500083,2.00630219 C23.7461702,1.53568921 23.5588633,1.08617106 23.2297297,0.756801782 C22.9014319,0.428268884 22.4589161,0.246148853 21.9972414,0.250070854 L2.00063,0.250061791 C1.54108393,0.246148853 1.09856813,0.428268884 0.77027028,0.756801782 C0.441136651,1.08617106 0.253829819,1.53568921 0.25,2.00426336 L0.249991686,13.9936957 C0.253829819,14.4643086 0.441136651,14.9138268 0.77027028,15.2431961 C1.09856813,15.571729 1.54108393,15.753849 2.00275862,15.749927 L21.9972414,15.749927 Z M21.996203,16.249927 C21.9958359,16.249924 21.9954688,16.249921 21.9951018,16.2499178 L21.9972414,16.249927 L21.996203,16.249927 Z",id:"shape",strokeOpacity:"0.2",stroke:"#000000",strokeWidth:"0.5",fill:"#FFFFFF"}),i.a.createElement("path",{d:"M12.6124138,15.9999283 L21.9972414,15.9999283 C22.5240217,16.0043364 23.0309756,15.7992919 23.4065697,15.4299059 C23.7821638,15.06052 23.9956285,14.5570537 24,14.0302731 L24,11.6716524 C20.4561668,13.7059622 16.6127929,15.1667795 12.6124138,15.9999283 L12.6124138,15.9999283 Z",id:"shape",fill:"#F27712"}),i.a.createElement("path",{d:"M23.1724138,9.29647999 L22.32,9.29647999 L21.36,8.03027309 L21.2689655,8.03027309 L21.2689655,9.29647999 L20.5737931,9.29647999 L20.5737931,6.1516524 L21.6,6.1516524 C22.4027586,6.1516524 22.8662069,6.48268688 22.8662069,7.07854895 C22.8662069,7.56682481 22.5765517,7.88130757 22.0551724,7.98061792 L23.1724138,9.29647999 Z M22.1462069,7.10337654 C22.1462069,6.79716964 21.9144828,6.63992826 21.4841379,6.63992826 L21.2689655,6.63992826 L21.2689655,7.5916524 L21.4675862,7.5916524 C21.9144828,7.5916524 22.1462069,7.42613516 22.1462069,7.10337654 L22.1462069,7.10337654 Z M18.1406897,6.1516524 L20.1103448,6.1516524 L20.1103448,6.68130757 L18.8358621,6.68130757 L18.8358621,7.38475585 L20.0606897,7.38475585 L20.0606897,7.92268688 L18.8358621,7.92268688 L18.8358621,8.77510068 L20.1103448,8.77510068 L20.1103448,9.30475585 L18.1406897,9.30475585 L18.1406897,6.1516524 Z M15.9062069,9.37923861 L14.4,6.14337654 L15.1613793,6.14337654 L16.1131034,8.26199723 L17.0731034,6.14337654 L17.817931,6.14337654 L16.2951724,9.37923861 L15.9227586,9.37923861 L15.9062069,9.37923861 Z M9.60827586,9.37096274 C8.54896552,9.37096274 7.72137931,8.65096274 7.72137931,7.71579033 C7.72137931,6.8054455 8.56551724,6.06889378 9.62482759,6.06889378 C9.92275862,6.06889378 10.1710345,6.12682481 10.4772414,6.25923861 L10.4772414,6.98751447 C10.2453534,6.75969251 9.93335245,6.63192067 9.60827586,6.6316524 C8.9462069,6.6316524 8.44137931,7.1116524 8.44137931,7.71579033 C8.44137931,8.35303171 8.93793103,8.80820412 9.64137931,8.80820412 C9.95586207,8.80820412 10.1958621,8.70889378 10.4772414,8.46061792 L10.4772414,9.18889378 C10.1627586,9.32130757 9.89793103,9.37096274 9.60827586,9.37096274 L9.60827586,9.37096274 Z M7.5062069,8.33647999 C7.5062069,8.94889378 7.00137931,9.37096274 6.27310345,9.37096274 C5.74344828,9.37096274 5.36275862,9.18889378 5.04,8.77510068 L5.49517241,8.38613516 C5.65241379,8.66751447 5.91724138,8.80820412 6.24827586,8.80820412 C6.56275862,8.80820412 6.7862069,8.6178593 6.7862069,8.36958343 C6.7862069,8.22889378 6.72,8.12130757 6.57931034,8.03854895 C6.42504922,7.96369158 6.26441119,7.90275992 6.09931034,7.85647999 C5.44551724,7.64958343 5.22206897,7.42613516 5.22206897,6.98751447 C5.22206897,6.47441102 5.70206897,6.0854455 6.33103448,6.0854455 C6.72827586,6.0854455 7.08413793,6.20958343 7.38206897,6.44130757 L7.01793103,6.85510068 C6.87360928,6.69688076 6.66932728,6.60675635 6.45517241,6.60682481 C6.15724138,6.60682481 5.94206897,6.75579033 5.94206897,6.95441102 C5.94206897,7.11992826 6.0662069,7.21096274 6.48,7.3516524 C7.27448276,7.59992826 7.5062069,7.8316524 7.5062069,8.34475585 L7.5062069,8.33647999 Z M4.08827586,6.1516524 L4.78344828,6.1516524 L4.78344828,9.30475585 L4.08827586,9.30475585 L4.08827586,6.1516524 Z M1.8537931,9.30475585 L0.827586207,9.30475585 L0.827586207,6.1516524 L1.8537931,6.1516524 C2.97931034,6.1516524 3.75724138,6.79716964 3.75724138,7.72406619 C3.75724138,8.19579033 3.52551724,8.64268688 3.12,8.94061792 C2.77241379,9.18889378 2.38344828,9.30475585 1.84551724,9.30475585 L1.8537931,9.30475585 Z M2.66482759,6.9378593 C2.43310345,6.75579033 2.16827586,6.68958343 1.71310345,6.68958343 L1.52275862,6.68958343 L1.52275862,8.77510068 L1.71310345,8.77510068 C2.16,8.77510068 2.44137931,8.69234206 2.66482759,8.52682481 C2.90482759,8.32820412 3.04551724,8.03027309 3.04551724,7.72406619 C3.04551724,7.4178593 2.90482759,7.12820412 2.66482759,6.9378593 Z",id:"shape",fill:"#000000"}),i.a.createElement("path",{d:"M12.4137931,6.06889378 C11.5034483,6.06889378 10.7586207,6.79716964 10.7586207,7.69923861 C10.7586207,8.65923861 11.4703448,9.37923861 12.4137931,9.37923861 C13.3406897,9.37923861 14.0689655,8.65096274 14.0689655,7.72406619 C14.0689655,6.79716964 13.3489655,6.06889378 12.4137931,6.06889378 Z",id:"shape",fill:"#F27712"})))))),hipercard:i.a.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.a.createElement("g",{id:"Group-2"},i.a.createElement("rect",{id:"Rectangle",fill:"#B3131B",x:"0",y:"0",width:"24",height:"16",rx:"2"}),i.a.createElement("g",{id:"Hipercard_logo",transform:"translate(2.000000, 6.000000)",fill:"#FFFFFF",fillRule:"nonzero"},i.a.createElement("path",{d:"M4.45845797,4.72911206 L4.71934477,4.72911206 L4.72670967,4.71021617 C4.73076043,4.69982332 4.73407456,4.67539055 4.73407456,4.65592007 C4.73407456,4.63644958 4.74267391,4.56566228 4.75318417,4.49861521 C4.76369454,4.43156695 4.78836018,4.27726169 4.80799675,4.15571305 C4.82763331,4.0341644 4.85703646,3.85139347 4.87333717,3.74955542 C4.88963776,3.64771736 4.90953167,3.51735868 4.91754595,3.45986946 C4.92556023,3.40238023 4.93534271,3.3553436 4.93928464,3.3553436 C4.94322668,3.3553436 4.96009268,3.38074637 4.9767648,3.41179473 L5.0070776,3.46824705 L5.07434118,3.5349692 L5.14160488,3.60169134 L5.22440039,3.63432372 L5.30719578,3.66695609 L5.40587279,3.67955056 L5.5045498,3.69214384 L5.62980554,3.68457856 L5.75506139,3.67701327 L5.8906751,3.64246001 L6.02628894,3.60790675 L6.09908975,3.57519075 C6.13913019,3.55719677 6.21011098,3.51796553 6.25682484,3.48801021 L6.34175912,3.43354447 L6.42095111,3.35561954 C6.46450662,3.31276155 6.5259323,3.24403729 6.55745263,3.20290069 C6.58897283,3.16176409 6.61476215,3.12510239 6.61476215,3.12143264 C6.61476215,3.11776169 6.63024834,3.09228724 6.64917582,3.06482382 C6.66810343,3.0373592 6.70683989,2.96113177 6.73525696,2.8954298 C6.76367415,2.82972783 6.80808531,2.71146429 6.83394853,2.63262192 L6.88097263,2.48927217 L6.90527961,2.36510142 C6.91864839,2.29680721 6.93584673,2.18391928 6.94349809,2.11423935 L6.95740984,1.98754804 L6.9493753,1.88003572 L6.94134076,1.77252341 L6.91602234,1.66501109 L6.89070392,1.55749878 L6.84971924,1.47700311 L6.80873457,1.39650745 L6.72956721,1.31388424 L6.65039973,1.23125983 L6.55674682,1.18360201 L6.4630938,1.13594299 L6.35995932,1.11163207 L6.25682484,1.08732115 L6.15369036,1.07986696 L6.05055588,1.07241397 L5.93566831,1.0854122 L5.82078075,1.09840925 L5.7270093,1.12198192 L5.63323773,1.1455534 L5.55177641,1.18267501 C5.50697261,1.2030916 5.44177912,1.23776791 5.40690207,1.25973387 C5.3720249,1.28169983 5.33604735,1.30697239 5.32695174,1.31589472 C5.31785613,1.32481824 5.29608043,1.34134766 5.27856116,1.3526257 L5.24670802,1.37313308 L5.26898276,1.26820942 C5.28123392,1.21050159 5.29147275,1.15656744 5.2917358,1.14835469 L5.29221386,1.13342243 L5.06976516,1.13342243 L4.84731634,1.13342243 L4.80831003,1.37532513 C4.78685648,1.50837162 4.75298372,1.71398893 4.73303727,1.83225247 C4.7130907,1.95051602 4.68301183,2.12791134 4.66619545,2.22646429 C4.64937895,2.32501725 4.61938307,2.49972476 4.59953794,2.61470321 C4.5796928,2.72968165 4.54689191,2.91245259 4.52664697,3.02086084 C4.50640216,3.12926909 4.47674372,3.28784975 4.46073931,3.37326231 C4.44473502,3.45867488 4.41461296,3.61994335 4.39380151,3.7316367 C4.37299019,3.84333005 4.33954562,4.02072536 4.31948026,4.12584852 C4.29941502,4.23097167 4.26676167,4.39761576 4.24691738,4.49616871 C4.2270731,4.59472167 4.20785211,4.68745104 4.20420394,4.70223398 L4.19757093,4.72911206 L4.45845773,4.72911206 L4.45845797,4.72911206 Z M5.58158434,3.34795511 L5.48028286,3.35395071 L5.41406652,3.34244331 L5.34785018,3.33093472 L5.28059837,3.30070464 L5.21334656,3.27047457 L5.16636177,3.22630134 L5.11937709,3.18212931 L5.09225746,3.12240025 C5.07734166,3.08954926 5.0581828,3.0337432 5.04968233,2.99838718 L5.03422684,2.93410437 L5.04041916,2.8311458 L5.04661147,2.72818843 L5.07787505,2.56691995 C5.09507,2.47822229 5.12594421,2.31157821 5.14648436,2.19659976 C5.1670245,2.08162131 5.19812318,1.9131519 5.21559259,1.82222277 L5.24735509,1.6568975 L5.3169102,1.5999088 C5.35516545,1.56856538 5.41576424,1.52655673 5.45157423,1.50655705 L5.51668327,1.470194 L5.60161755,1.44430981 L5.68655183,1.41842563 L5.79575304,1.41211346 L5.90495426,1.40580129 L5.99387134,1.42445946 L6.08278843,1.44311762 L6.1455397,1.47157016 L6.20829096,1.50002269 L6.2609103,1.55210763 L6.31352963,1.60419138 L6.34191746,1.65934519 C6.3575308,1.68968039 6.37946059,1.74905705 6.39065044,1.79129506 L6.41099548,1.86808991 L6.40476348,2.09506035 L6.39853137,2.32203079 L6.36736983,2.45618705 C6.35023095,2.52997394 6.31760514,2.64286188 6.29486799,2.70704912 L6.25352781,2.82375493 L6.20290006,2.91822719 C6.17505485,2.9701879 6.1321162,3.04040419 6.10748089,3.07426459 C6.08284558,3.10812381 6.04357913,3.15198525 6.0202222,3.17173287 C5.99686528,3.19148049 5.95774892,3.22234369 5.93329695,3.24031617 L5.8888387,3.27299275 L5.7858622,3.30747553 L5.6828857,3.34195951 L5.58158434,3.34795511 Z M8.10111202,3.67635864 L8.23458018,3.67786023 L8.36804833,3.665875 C8.44145581,3.6592833 8.56157715,3.64555995 8.63498463,3.63537973 C8.70839211,3.62519831 8.83520336,3.60240928 8.91678734,3.58473665 L9.06512179,3.5526048 L9.07250973,3.498771 C9.07657311,3.4691621 9.093232,3.38101873 9.10952955,3.3028967 L9.1391613,3.16085621 L9.1326233,3.1544198 L9.12608543,3.1479822 L9.0807372,3.1695444 C9.05579576,3.181403 8.97811171,3.20969069 8.90810597,3.23240685 L8.78082285,3.27370711 L8.6472364,3.29918394 L8.51364995,3.32466077 L8.30131425,3.32506693 L8.08897856,3.32547309 L8.01617775,3.30258252 C7.9761373,3.28999283 7.91724557,3.26695772 7.88530737,3.25139472 L7.82723768,3.22309628 L7.7793106,3.18046765 L7.73138352,3.13783782 L7.69398963,3.07349051 L7.65659562,3.00914319 L7.63315109,2.92843011 L7.60970656,2.84771703 L7.60953911,2.69835615 L7.60937167,2.54899526 L7.63018579,2.41575047 L7.65099978,2.28250449 L7.83358895,2.27410658 L8.01617823,2.26570748 L8.69111697,2.26997453 L9.3660557,2.27424157 L9.38643459,2.18913124 C9.39764288,2.14232038 9.41477886,2.04555929 9.42451439,1.97410661 L9.44221542,1.84419231 L9.44258913,1.73490963 L9.44296284,1.62562694 L9.42374501,1.54404301 L9.40452717,1.46245909 L9.37275132,1.40843654 C9.35527451,1.37872491 9.32448062,1.33566504 9.3043205,1.31274938 C9.28416037,1.28983373 9.24816377,1.25752509 9.22432794,1.24095266 C9.20049222,1.22438023 9.15368992,1.19652977 9.12032288,1.17906499 L9.05965554,1.14730824 L8.95365525,1.12215633 L8.84765497,1.09700442 L8.71705262,1.08471099 L8.58645027,1.07241636 L8.46511559,1.08019547 L8.34378091,1.08797458 L8.19817929,1.11550012 L8.05257767,1.14302686 L7.96157665,1.17884877 C7.9115261,1.198551 7.83508525,1.23447922 7.7917081,1.2586898 C7.74833095,1.28290038 7.68827028,1.32231081 7.65823994,1.34626814 C7.62820961,1.37022427 7.57621515,1.4167998 7.54269681,1.44976786 C7.50917834,1.48273591 7.45959784,1.54196325 7.43251788,1.58138443 C7.40543792,1.62080561 7.36392374,1.69068862 7.34026433,1.73668 C7.31660479,1.78267138 7.28577559,1.84717876 7.27175488,1.88002975 C7.25773417,1.91288073 7.23225571,1.98007593 7.21513599,2.02935241 C7.1980164,2.07862889 7.17110667,2.17270216 7.15533656,2.23840413 C7.13956645,2.3041061 7.11795686,2.41225991 7.10731533,2.47874552 L7.08796742,2.59963476 L7.08814699,2.77739681 L7.08832657,2.95515887 L7.10676835,3.03280665 C7.11691132,3.07551293 7.13630473,3.14002032 7.14986473,3.1761564 C7.16342485,3.21229249 7.18849963,3.26604864 7.20558671,3.29561453 C7.22267367,3.32518042 7.2591652,3.37278329 7.28667905,3.40139948 C7.31419278,3.43001568 7.36400431,3.47343751 7.39737135,3.49789178 C7.43073838,3.52234606 7.49013972,3.55674044 7.52937438,3.57432587 L7.60070995,3.60629765 L7.70017273,3.62996947 C7.75487732,3.64298921 7.83743756,3.65841484 7.88363999,3.66425037 C7.92984242,3.6700847 8.02770503,3.67553319 8.10111251,3.67635864 L8.10111202,3.67635864 Z M8.32965888,1.99352094 C7.99374575,1.99352094 7.71890777,1.99115328 7.71890777,1.98826001 C7.71890777,1.98536673 7.73323995,1.94370571 7.75075703,1.89567996 C7.76827412,1.84765421 7.79903902,1.77617166 7.81912342,1.73682932 L7.85564031,1.66529779 L7.93590903,1.58670271 L8.01617775,1.50810762 L8.09504529,1.47097884 C8.13842244,1.45055747 8.19575308,1.42832273 8.22244671,1.42156738 C8.24914034,1.41481202 8.32558119,1.40585027 8.39231526,1.40165251 L8.51364995,1.39401794 L8.60682685,1.40580726 L8.70000364,1.41759659 L8.76771701,1.44811814 L8.8354305,1.4786385 L8.87257529,1.51806804 C8.89300502,1.53975447 8.9173507,1.5716916 8.92667697,1.58903811 L8.94363374,1.62057745 L8.95483159,1.69057752 L8.96602945,1.76057759 L8.95321966,1.87704927 L8.94040987,1.99352094 L8.32965888,1.99352094 Z M11.959629,3.67642315 L12.0931723,3.67788054 L12.2447655,3.66019237 C12.328143,3.6504637 12.4391291,3.63434164 12.4914025,3.62436569 C12.5436771,3.61438974 12.628308,3.59458597 12.6794712,3.58035851 C12.7306357,3.56612985 12.7769248,3.55074723 12.7823351,3.54617318 C12.7877455,3.54159912 12.8022037,3.48738425 12.8144634,3.42569488 C12.826723,3.3640055 12.8421665,3.28127956 12.8487817,3.24185837 C12.8553968,3.20243719 12.858816,3.16807267 12.8563809,3.16549477 C12.8539445,3.16291567 12.8449948,3.16624735 12.8364917,3.1728952 C12.8279885,3.17954304 12.7684545,3.20420995 12.7041944,3.22770736 L12.5873588,3.27043156 L12.420981,3.302168 L12.2546045,3.33390325 L12.1131465,3.32915121 L11.9716884,3.32439797 L11.8913406,3.29696441 L11.8109916,3.26953085 L11.7489046,3.21605781 L11.6868164,3.16258596 L11.6456318,3.08873695 L11.6044472,3.01488793 L11.5848322,2.91609248 L11.5652172,2.81729702 L11.5653386,2.68912203 L11.5654599,2.56094705 L11.5892961,2.40565148 L11.6131335,2.25035592 L11.6383541,2.16673523 C11.6522263,2.12074385 11.6679222,2.06698769 11.6732342,2.0472771 C11.678545,2.02756651 11.7007978,1.97112254 11.722683,1.92184607 C11.7445681,1.87256959 11.7836087,1.79641025 11.8094409,1.75260257 L11.8564059,1.67295267 L11.9140896,1.61410998 L11.9717721,1.5552673 L12.0328581,1.51796531 L12.0939452,1.48066331 L12.172393,1.45687442 C12.2155396,1.44379137 12.2917924,1.42680322 12.3418429,1.41912326 L12.4328439,1.40516219 L12.5663121,1.41175628 L12.6997802,1.41835037 L12.8575153,1.44943457 L13.0152504,1.48051877 L13.0794061,1.50407591 C13.1146915,1.51703353 13.145104,1.52763425 13.1469871,1.52763425 C13.1488715,1.52763425 13.1573345,1.48328542 13.1657928,1.42908129 C13.1742522,1.37487717 13.1893087,1.28569809 13.1992508,1.23090743 C13.209193,1.17611557 13.2149333,1.12892841 13.2120067,1.12604708 C13.2090789,1.12316575 13.1616662,1.11575337 13.1066446,1.109575 C13.0516217,1.10339663 12.9020779,1.09242679 12.7743246,1.08519718 L12.5420452,1.0720532 L12.3782433,1.08442906 L12.2144415,1.09680493 L12.0931068,1.12190786 L11.9717721,1.14701198 L11.8936314,1.17778201 C11.8506546,1.19470683 11.787705,1.2252463 11.7537446,1.24564856 C11.7197843,1.26605201 11.6765552,1.29349632 11.6576803,1.30663671 C11.6388043,1.3197771 11.5815404,1.37104495 11.5304257,1.42056632 L11.4374894,1.5106043 L11.3856128,1.58542809 C11.3570809,1.62658022 11.3077232,1.71239058 11.2759299,1.77611671 L11.2181236,1.89198153 L11.1738182,2.01741257 C11.1494494,2.08639964 11.1154271,2.19928757 11.098211,2.26827464 L11.0669102,2.39370567 L11.0555485,2.50719089 L11.0441879,2.62067611 L11.0443092,2.76999877 L11.0444306,2.91932143 L11.0558894,3.0061878 L11.0673483,3.09305536 L11.1036916,3.18241243 L11.1400338,3.27176949 L11.1820095,3.33637364 L11.2239841,3.4009766 L11.2907327,3.46565123 L11.3574813,3.53032586 L11.4280836,3.56706401 L11.4986858,3.60380216 L11.591451,3.6291691 C11.642471,3.64312061 11.7161818,3.65913278 11.7552528,3.6647509 C11.7943226,3.67037021 11.8863841,3.67562278 11.9598316,3.67642315 L11.959629,3.67642315 Z M13.9555105,3.67201037 L14.1193123,3.66738973 L14.2224468,3.64140161 L14.3255813,3.6154123 L14.3923154,3.5843508 C14.4290191,3.56726709 14.4890798,3.53354287 14.5257835,3.50940874 C14.5624872,3.48527462 14.6192998,3.43939314 14.6520322,3.40745004 C14.6847659,3.37550574 14.7333071,3.32100536 14.7599012,3.28633861 C14.7864953,3.25167066 14.8098571,3.22488337 14.8118155,3.22681143 C14.8137726,3.22873948 14.8076537,3.2839817 14.7982163,3.34957257 C14.7887801,3.41516345 14.7809516,3.50242641 14.7808217,3.54349015 L14.7805912,3.61815148 L15.003278,3.61815148 L15.2259647,3.61815148 L15.2327728,3.44792364 L15.2395797,3.27769581 L15.2713548,3.05669828 C15.2888318,2.93514963 15.3170592,2.75506651 15.3340824,2.65651355 C15.3511044,2.55796059 15.3806943,2.39131651 15.3998373,2.28619336 C15.4189803,2.1810702 15.4493055,2.01711392 15.4672278,1.92184607 L15.4998135,1.74863178 L15.5009055,1.59901287 L15.5019975,1.44939515 L15.4676343,1.38024561 L15.4332723,1.31109728 L15.3866749,1.26705665 L15.3400776,1.22301602 L15.2635748,1.18484915 L15.1870721,1.14668347 L15.0730551,1.12171553 L14.9590393,1.09674639 L14.8020602,1.08498574 L14.645081,1.07322389 L14.4428707,1.08554122 C14.3316553,1.09231569 14.1751408,1.10569261 14.0950599,1.11526718 L13.9494583,1.13267701 L13.8502272,1.13304733 L13.750996,1.13341765 L13.7365584,1.20210607 C13.7286171,1.2398847 13.7065499,1.32964076 13.687521,1.40156411 C13.6684909,1.47348627 13.6546854,1.53406946 13.6568415,1.53619223 C13.6589976,1.538315 13.7120682,1.52645639 13.7747764,1.50983976 C13.8374846,1.49322194 13.9706919,1.4658947 14.070793,1.44911203 L14.252795,1.41859765 L14.4165969,1.411951 L14.5803987,1.40530435 L14.6859089,1.42351335 L14.7914191,1.44172116 L14.8618442,1.47594352 L14.9322693,1.51016469 L14.971703,1.56803021 L15.0111368,1.62589572 L15.0105787,1.7171259 L15.0100205,1.80835607 L14.989117,1.90846915 L14.9682134,2.00858342 L14.5316331,2.01013398 L14.0950539,2.01168455 L13.9521677,2.05025639 C13.8735792,2.07147095 13.786558,2.09963679 13.7587857,2.11284647 C13.7310146,2.12605735 13.7032351,2.13686592 13.6970543,2.13686592 C13.6908735,2.13686592 13.6441232,2.16238934 13.5931651,2.19358344 L13.5005139,2.25030097 L13.4275457,2.32200093 C13.387413,2.36143645 13.3361406,2.42057897 13.3136063,2.45342996 C13.2910733,2.48628094 13.2544617,2.55490844 13.232249,2.60593498 L13.1918603,2.69871094 L13.173324,2.80304089 L13.1547877,2.90737084 L13.1547877,3.01681838 L13.1547877,3.12626711 L13.1724965,3.21739215 L13.1902065,3.3085184 L13.2230615,3.3679524 C13.2411331,3.40064092 13.2742951,3.44852332 13.2967566,3.47435973 L13.3375954,3.52133305 L13.4101681,3.56473577 L13.4827396,3.60813849 L13.5658078,3.63128231 C13.6114963,3.64401177 13.6810332,3.65942187 13.720336,3.66552618 L13.7917948,3.67662623 L13.9555966,3.67200559 L13.9555105,3.67201037 Z M14.1071788,3.33797677 L14.0101111,3.34295937 L13.9458219,3.32683969 C13.9104626,3.31797351 13.8568096,3.2982008 13.8265924,3.2829006 L13.771652,3.25508 L13.7416666,3.21999634 C13.7251748,3.20069908 13.6999809,3.16278307 13.6856804,3.13573655 L13.6596808,3.08656281 L13.6545823,2.97172771 L13.649485,2.85689381 L13.6700525,2.78723658 C13.6813657,2.74892516 13.7079052,2.68244671 13.7290308,2.6395051 L13.7674417,2.56143085 L13.840996,2.48951348 L13.9145503,2.4175973 L13.9926644,2.38056886 L14.0707784,2.34354042 L14.1678462,2.3208398 L14.2649139,2.29813917 L14.5682506,2.29813917 L14.8715874,2.29813917 L14.8907789,2.30595173 L14.9099692,2.31376429 L14.8938183,2.40749114 C14.8849342,2.4590409 14.8637479,2.55228633 14.8467356,2.61470321 C14.8297232,2.67712008 14.7996905,2.76887348 14.7799954,2.81860031 C14.7603004,2.86832714 14.7441859,2.91229012 14.7441859,2.91629675 C14.7441859,2.92030338 14.7242458,2.95653742 14.6998745,2.99681631 L14.6555643,3.07005131 L14.5828035,3.14102257 C14.5427861,3.18005671 14.5056371,3.21199384 14.5002523,3.21199384 C14.4948674,3.21199384 14.4703372,3.22543885 14.4457427,3.24187151 L14.4010235,3.27174799 L14.3026357,3.30237108 L14.2042466,3.33299417 L14.1071788,3.33797677 Z M18.0566228,3.67628099 L18.1718907,3.67771091 L18.281092,3.66026166 C18.3411526,3.65066439 18.4175935,3.63520412 18.4509605,3.6259067 C18.4843276,3.61660808 18.5443882,3.59247515 18.5844287,3.57227836 L18.6572295,3.53555693 L18.7198576,3.48128471 L18.7824857,3.4270125 L18.8484444,3.34040775 C18.8847223,3.29277621 18.9175725,3.24574076 18.9214467,3.23588547 L18.9284889,3.21796675 L18.922364,3.27769581 C18.9189945,3.3105468 18.9114402,3.36430295 18.9055761,3.39715394 C18.8997132,3.43000492 18.8913059,3.49316841 18.8868942,3.53751724 L18.8788715,3.61815148 L19.1168877,3.61815148 L19.3549039,3.61815148 L19.3549039,3.53751724 L19.3549039,3.456883 L19.391166,3.15226478 C19.411111,2.98472475 19.4406038,2.7616367 19.4567061,2.65651355 C19.4728085,2.5513904 19.4976627,2.40087316 19.5119389,2.32203079 C19.5262139,2.24318843 19.5514964,2.10073461 19.5681205,2.00546676 C19.5847433,1.9101989 19.6147725,1.74355481 19.6348497,1.63514656 C19.654927,1.52673831 19.68706,1.35471861 19.7062552,1.25288055 C19.7254515,1.1510425 19.7552865,0.992461836 19.7725549,0.900479078 C19.7898244,0.80849632 19.8207636,0.647227848 19.841308,0.542104696 C19.8618536,0.436981544 19.8918657,0.289152111 19.9080008,0.213594845 C19.9241371,0.13803758 19.9373165,0.0721862871 19.9372885,0.0672586394 L19.9372886,0.0582992798 L19.6776105,0.0582992798 L19.4179324,0.0582992798 L19.4102629,0.132960609 C19.4060453,0.174024341 19.386167,0.309758638 19.3660873,0.434592381 C19.3460089,0.559426124 19.3132764,0.758323906 19.2933496,0.876587452 C19.2734228,0.994850998 19.2542119,1.109532 19.2506592,1.13143345 L19.2442006,1.17125601 L19.2237071,1.16267653 C19.2124364,1.15795674 19.1513431,1.14127321 19.0879458,1.12560031 L18.9726778,1.09710477 L18.8149427,1.08501083 L18.6572076,1.07291569 L18.5237395,1.08516015 L18.3902713,1.09740461 L18.2689366,1.12760004 L18.147602,1.15779547 L18.032334,1.21314639 L17.9170661,1.26849731 L17.8321318,1.33040529 L17.7471975,1.39231447 L17.6738471,1.46974245 C17.6335045,1.51232808 17.5752238,1.58276537 17.5443344,1.62626963 L17.488171,1.70537002 L17.4222183,1.84048553 C17.3859453,1.91479923 17.3418026,2.01323153 17.3241241,2.05922291 C17.3064456,2.10521429 17.2752675,2.20716464 17.2548384,2.28577884 L17.2176966,2.42871287 L17.1993969,2.61428869 L17.1810984,2.7998633 L17.1948396,2.94918596 L17.2085795,3.09850862 L17.224825,3.15226478 C17.2337589,3.18183067 17.2525985,3.23450692 17.2666891,3.26932419 L17.2923089,3.33262744 L17.3390179,3.39487707 L17.3857281,3.45712789 L17.4390608,3.5001364 L17.4923947,3.54314491 L17.5651955,3.57873388 C17.6052359,3.59830709 17.6724044,3.62360354 17.714459,3.63494729 C17.7565136,3.64629103 17.8247643,3.65990926 17.8661273,3.66521081 C17.9074903,3.67051236 17.9932036,3.67549377 18.056601,3.67628099 L18.0566228,3.67628099 Z M18.2635057,3.33735678 L18.1718907,3.34214706 L18.1100549,3.33118916 C18.0760448,3.3251625 18.0216226,3.30900698 17.989117,3.29528841 L17.9300149,3.27034555 L17.8802835,3.23022554 L17.830552,3.19010433 L17.7935947,3.12041485 L17.7566361,3.05072537 L17.7397949,2.97307759 L17.7229524,2.8954298 L17.7243805,2.74013424 L17.7258074,2.58483867 L17.7453666,2.44746183 L17.7649257,2.31008498 L17.7953249,2.21451848 C17.8120436,2.1619569 17.8258042,2.11236625 17.8259049,2.10431836 C17.8260262,2.09627046 17.8425132,2.05326554 17.8625892,2.00875185 C17.8826665,1.96423817 17.9162082,1.89556528 17.9371288,1.8561441 C17.9580481,1.81672291 17.9971506,1.75526768 18.0240226,1.71957718 C18.0508934,1.68388667 18.0987648,1.63013051 18.1304016,1.60011905 C18.1620384,1.57010758 18.2123656,1.53074374 18.2422382,1.51264345 L18.2965536,1.47973512 L18.3919567,1.44723295 L18.4873609,1.41473079 L18.6875631,1.41461133 L18.8877654,1.41461133 L19.0030333,1.44609571 C19.0664307,1.46341117 19.1337447,1.48349327 19.1526184,1.49072169 L19.1869367,1.50386327 L19.1802341,1.53665453 C19.176548,1.55468912 19.1621274,1.63395198 19.1481884,1.71279434 C19.1342495,1.79163671 19.1067842,1.94215395 19.0871522,2.0472771 C19.0675203,2.15240025 19.0373589,2.31098092 19.0201245,2.39967858 C19.0028914,2.48837624 18.9779292,2.60126417 18.9646527,2.65054064 C18.9513763,2.69981712 18.9326471,2.76806952 18.9230301,2.80221304 C18.9134143,2.83635657 18.890516,2.89548834 18.872146,2.93361698 C18.8537759,2.97174563 18.8216307,3.02713239 18.8007126,3.05669828 C18.7797957,3.08626416 18.7444145,3.12722038 18.7220889,3.14771103 C18.6997633,3.16820288 18.6514661,3.2046173 18.6147623,3.22863316 L18.5480283,3.2722975 L18.4515745,3.30243201 L18.3551207,3.33256771 L18.2635057,3.33735798 L18.2635057,3.33735678 Z M0.406035224,3.61815148 L0.700846957,3.61815148 L0.721999232,3.48973399 C0.733631588,3.41910437 0.756352721,3.28337007 0.772489021,3.18810222 C0.78862532,3.09283436 0.818658081,2.91543904 0.839229163,2.7938904 C0.859799032,2.67234175 0.890636242,2.49225862 0.907755352,2.39370567 C0.924874463,2.29515271 0.952074059,2.14227379 0.968198225,2.05397392 C0.984323604,1.96567525 1.00057639,1.89041663 1.00431713,1.88673254 L1.01111794,1.88003572 L1.80383747,1.88003572 L2.596557,1.88003572 L2.60535861,1.88869883 L2.61416145,1.89736193 L2.60041544,1.96634661 C2.59285507,2.0042877 2.57049188,2.12134114 2.55072039,2.22646429 C2.53094769,2.33158744 2.49770806,2.50898276 2.47685426,2.62067611 C2.45600047,2.73236946 2.42584638,2.89095012 2.40984597,2.97307759 C2.39384435,3.05520505 2.36146377,3.22722475 2.33788965,3.3553436 C2.31431432,3.48346244 2.29507549,3.59500646 2.29513616,3.60321921 L2.2952575,3.61815148 L2.59128136,3.61815148 L2.88730644,3.61815148 L2.90040452,3.54349015 C2.90760938,3.50242641 2.91920048,3.4285117 2.92616388,3.37923522 C2.93312606,3.32995874 2.9499115,3.22513424 2.96346337,3.14629187 C2.97701646,3.06744951 3.00409472,2.91155665 3.02363688,2.7998633 C3.04317905,2.68816995 3.07588966,2.4973356 3.09632728,2.37578695 C3.11676368,2.25423831 3.14708242,2.07684299 3.16370127,1.98157513 C3.18032,1.88630727 3.2099327,1.7250388 3.22950738,1.62320075 C3.24908194,1.52136269 3.28168651,1.34934299 3.30196202,1.24093474 C3.32223741,1.13252649 3.3526127,0.96857021 3.36946269,0.876587452 C3.3863128,0.784604694 3.41703596,0.617960606 3.43773662,0.506267257 C3.45843729,0.394573908 3.48457667,0.264215227 3.49582403,0.216581299 L3.5162739,0.129974156 L3.21654665,0.129974156 L2.91681989,0.129974156 L2.90866742,0.186716767 C2.9041841,0.217925202 2.88970402,0.305278958 2.87649067,0.380836224 C2.86327611,0.456393489 2.83924092,0.590783883 2.82307672,0.679481542 C2.80691251,0.768179202 2.77737358,0.937511097 2.75743465,1.05577464 C2.73749451,1.17403819 2.7120846,1.33059045 2.7009667,1.40366896 L2.68075113,1.53653985 L2.24076366,1.54530688 L1.80077498,1.55407391 L1.43224272,1.54546337 C1.22954949,1.54072805 1.0625869,1.53591269 1.06121339,1.53476231 C1.05983988,1.53361551 1.06674383,1.4871905 1.07655495,1.43160066 C1.08636486,1.37601082 1.10492543,1.27945999 1.11780025,1.21704312 C1.13067507,1.15462624 1.15508154,1.03098708 1.17203685,0.942289422 C1.18899095,0.853591763 1.20819702,0.74339164 1.21471511,0.697400261 C1.22123321,0.651408882 1.23489429,0.574806358 1.24507305,0.52717243 C1.25525061,0.479538501 1.27456709,0.379202037 1.28799762,0.304203835 C1.30142816,0.229204439 1.31573716,0.159321434 1.3197958,0.148908269 L1.32717538,0.129974156 L1.02986779,0.129974156 L0.732560203,0.129974156 L0.713517938,0.234500018 C0.703043115,0.291989241 0.689078706,0.373967381 0.682484166,0.416673662 C0.675889626,0.459379942 0.653744833,0.596458144 0.633273245,0.721291887 C0.612802871,0.84612563 0.582582041,1.03158437 0.566118138,1.13342243 C0.549653021,1.23526048 0.519668795,1.42071922 0.499487197,1.54555297 C0.479305599,1.67038671 0.446005295,1.86390887 0.4254876,1.97560222 C0.404969905,2.08729557 0.375264748,2.24587624 0.359476679,2.3280037 C0.343687397,2.41013116 0.313600035,2.56602402 0.292613988,2.67443227 C0.271629155,2.78284052 0.241013987,2.93604557 0.224581631,3.01488793 C0.208148062,3.0937303 0.189981833,3.18511576 0.184209942,3.21796675 C0.178439265,3.25081773 0.159657869,3.34556595 0.142475664,3.42851887 C0.125292247,3.51147178 0.111233197,3.58807431 0.111233197,3.5987467 L0.111233197,3.61815148 L0.40604493,3.61815148 L0.406035224,3.61815148 Z M3.6696828,3.61815148 L3.93066933,3.61815148 L3.93803423,3.59925559 C3.94208498,3.58886273 3.94539912,3.56160239 3.94539912,3.53867598 C3.94539912,3.51574958 3.96181061,3.39658174 3.98186905,3.27385882 C4.00192749,3.1511347 4.03506982,2.95127648 4.0555186,2.82972783 C4.07596737,2.70817919 4.10616636,2.53078387 4.12262747,2.43551601 C4.13908859,2.34024816 4.16836313,2.18166749 4.18768216,2.08311454 C4.20700119,1.98456158 4.23665805,1.83135654 4.2535863,1.74265888 C4.27051468,1.65396122 4.3038043,1.48521228 4.32756345,1.3676607 C4.3513226,1.25010912 4.37372499,1.14921121 4.37734671,1.14344138 L4.38393166,1.13295176 L4.1200058,1.13617355 L3.85607993,1.13939533 L3.83409918,1.2946909 C3.82200988,1.38010346 3.79557869,1.54943535 3.77536324,1.670984 C3.75514791,1.79253264 3.72457012,1.97799139 3.70741291,2.08311454 C3.69025558,2.18823769 3.66033444,2.35756959 3.64092138,2.45940764 C3.62150844,2.56124569 3.59175924,2.71713855 3.57481193,2.80583621 C3.55786476,2.89453387 3.52745513,3.05042672 3.50723495,3.15226478 C3.48701476,3.25410283 3.45988239,3.38849323 3.44694071,3.4509101 C3.43399891,3.51332697 3.42009966,3.57649045 3.41605327,3.5912734 L3.40869626,3.61815148 L3.6696828,3.61815148 Z M9.77371379,3.61815148 L10.0327662,3.61815148 L10.0405474,3.5102342 C10.0448257,3.45088023 10.0594866,3.33127278 10.0731246,3.24443986 C10.0867638,3.15760695 10.1146878,2.98442611 10.1351788,2.85959237 C10.155671,2.73475862 10.1937543,2.52697555 10.2198085,2.39785326 C10.2458627,2.26872977 10.2753155,2.14038396 10.2852589,2.11263742 C10.295201,2.08489208 10.3033365,2.05482685 10.3033365,2.04582568 C10.3033365,2.03682332 10.3228132,1.98777501 10.346619,1.9368285 C10.3704237,1.885882 10.4147873,1.80786868 10.4452047,1.76346729 L10.5005078,1.6827351 L10.5745377,1.61525798 L10.6485665,1.54777966 L10.7398538,1.50485597 L10.8311424,1.46193228 L10.9706773,1.46264903 L11.1102122,1.46336577 L11.1788136,1.48354942 C11.216545,1.49465186 11.2506704,1.50373426 11.2546478,1.50373426 C11.2586263,1.50373426 11.2618805,1.49103467 11.2618805,1.47551228 C11.2618805,1.45999108 11.2755307,1.38130521 11.2922142,1.30065544 C11.3088977,1.22000687 11.3225479,1.15061842 11.3225479,1.14646009 C11.3225479,1.14230175 11.2829624,1.12704814 11.2345802,1.11256384 C11.186198,1.09807954 11.1193123,1.08290836 11.0859452,1.07885156 L11.0252779,1.07147502 L10.9464103,1.08520913 C10.9030332,1.09276246 10.8385341,1.10943762 10.8030789,1.12226504 C10.7676249,1.13509245 10.7090846,1.16418528 10.6729899,1.18691816 C10.6368953,1.20964985 10.5807489,1.25394851 10.5482203,1.28535763 C10.5156916,1.31676676 10.4609794,1.3800951 10.4266368,1.42608648 C10.392293,1.47207786 10.356378,1.5204584 10.3468229,1.53359879 L10.3294514,1.55749042 L10.339999,1.50970717 C10.3458012,1.48342638 10.3619594,1.39741653 10.375908,1.31857416 C10.3898566,1.2397318 10.4041729,1.16581708 10.4077208,1.15431924 L10.4141733,1.13341406 L10.1828196,1.13341406 L9.95146594,1.13341406 L9.95146594,1.16220945 C9.95146594,1.1780472 9.93781118,1.27346438 9.92112208,1.37424762 C9.90443298,1.47503205 9.87691282,1.64350027 9.85996613,1.74862342 C9.84301943,1.85374657 9.8129425,2.03651751 9.79312843,2.15478105 C9.77331448,2.2730446 9.74322906,2.44237649 9.72627205,2.53107415 C9.70931504,2.61977181 9.67920475,2.77566467 9.65936022,2.87750272 C9.63951569,2.97934078 9.60656725,3.14598486 9.58614129,3.24782292 C9.56571544,3.34966097 9.54127633,3.46992783 9.53183225,3.515083 C9.52238804,3.56023818 9.51466108,3.6018992 9.51466108,3.60766305 L9.51466108,3.61815148 L9.77371379,3.61814311 L9.77371379,3.61815148 Z M15.9231926,3.61815148 L16.1880687,3.61815148 L16.1880687,3.53834508 L16.1880687,3.4585375 L16.2185916,3.26060494 C16.2353807,3.15174036 16.2630766,2.97934914 16.2801399,2.87751109 C16.2972031,2.77567303 16.3184719,2.64665825 16.3274021,2.59081158 C16.3363336,2.53496491 16.3600011,2.41401355 16.3799983,2.32203079 C16.3999955,2.23004804 16.4249722,2.13059914 16.4355041,2.10103326 C16.4460347,2.07146737 16.4547308,2.04044768 16.4548278,2.03210114 C16.4549492,2.0237546 16.4775041,1.97007848 16.5050034,1.9128222 L16.555003,1.80871922 L16.6209641,1.72243342 L16.6869253,1.63614762 L16.7591146,1.58271997 C16.7988189,1.55333566 16.862664,1.51433975 16.9009912,1.49606385 L16.9706774,1.46283419 L17.1223457,1.46386153 L17.2740141,1.46488886 L17.3337192,1.48376564 L17.3934244,1.50264122 L17.4034867,1.49651779 L17.413549,1.49039556 L17.4140586,1.45227648 C17.4143376,1.43131157 17.4273241,1.35330183 17.4429192,1.27892123 L17.4712752,1.14368388 L17.4393799,1.13139044 C17.4218386,1.12462911 17.3801856,1.1106334 17.3468185,1.10028833 L17.2861512,1.08147964 L17.17695,1.0817544 L17.0677488,1.08202915 L16.9787546,1.11285532 L16.8897605,1.1436803 L16.8229391,1.18334995 L16.7561176,1.22301961 L16.669242,1.3126132 L16.5823676,1.4022068 L16.5356913,1.47170873 C16.5100193,1.50993414 16.4874171,1.53950002 16.4854648,1.5374107 C16.4835113,1.53532018 16.4974648,1.45566431 16.5164719,1.36039645 C16.535479,1.2651286 16.5512658,1.17508703 16.5515534,1.16030409 L16.5520751,1.1334272 L16.327606,1.1334272 L16.1031368,1.1334272 L16.1031368,1.14103908 C16.1031368,1.14522489 16.0919461,1.22182741 16.0782681,1.31126691 C16.0645912,1.40070521 16.0371283,1.57333176 16.0172416,1.6948804 C15.9973536,1.81642905 15.9647218,2.01263902 15.9447271,2.13090257 C15.9247312,2.24916611 15.894588,2.41849801 15.8777419,2.50719567 C15.8608958,2.59589333 15.8309746,2.75178618 15.8112517,2.85362424 C15.7915287,2.95546229 15.7591214,3.11941857 15.7392359,3.21797153 C15.7193504,3.31652448 15.6930086,3.44688316 15.6806992,3.50765749 L15.6583178,3.61815625 L15.9231951,3.61815625 L15.9231926,3.61815148 Z M4.18287366,0.70311036 L4.25654638,0.703373168 L4.31510626,0.683728279 L4.37366602,0.664083389 L4.42549425,0.612324572 L4.47732236,0.56056456 L4.50462182,0.491606161 L4.53192127,0.422646568 L4.5328968,0.32110716 L4.53387233,0.219567752 L4.5096054,0.179918405 L4.48533846,0.140270252 L4.4430896,0.114516275 L4.40084074,0.0887622969 L4.30962145,0.0887622969 L4.21840216,0.0887611023 L4.15629991,0.116134932 L4.09419767,0.143508762 L4.05814865,0.181538257 L4.0220995,0.219567752 L3.99378945,0.285269722 L3.96547928,0.350971692 L3.96012782,0.453313859 L3.95477635,0.555656026 L3.98113328,0.606521296 L4.00749008,0.657385372 L4.05834557,0.680117059 L4.10920094,0.702848746 L4.18287366,0.703111554 L4.18287366,0.70311036 Z",id:"path2997"})))),jcb:Tc,unionpay:_c,mastercard:Pc,placeholder:Rc,visa:Ac};n(974);function Dc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Ic(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dc(Object(n),!0).forEach((function(t){T()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fc=function(e){var t=e.label,n=e.onChange,c=e.value,a=Object(o.useState)(c?c.card_number:""),r=Fe()(a,2),i=r[0],l=r[1],s=Object(o.useState)(c?"".concat(c.card_exp_month," ").concat(c.card_exp_year):""),u=Fe()(s,2),f=u[0],h=u[1],p=Object(o.useState)(c?c.card_cvc:""),d=Fe()(p,2),m=d[0],v=d[1],g=Object(o.useState)(c?c.card_zip:""),b=Fe()(g,2),y=b[0],z=b[1],C=ot();Object(o.useEffect)((function(){n&&n({card_number:i.replace(/\s+/g,""),card_exp_month:f.substr(0,2),card_exp_year:f.substr(3,5),card_cvc:m,card_zip:y})}),[n,i,f,m,y]);var x=Cc(),M=x.wrapperProps,L=x.getCardImageProps,w=x.getCardNumberProps,H=x.getExpiryDateProps,V=x.getCVCProps,S=x.getZIPProps,E=Ic(Ic({},M),{},{styles:{fieldWrapper:{base:{width:"100%"}},inputWrapper:{base:{display:"flex",alignItems:"center",marginTop:"8px",border:"1px solid #b8b8b8",overflow:"hidden",padding:"14px 14px",boxShadow:"0 0 0 0 ".concat(C),transition:"box-shadow 0.1s ease",borderRadius:"4px"},errored:{border:"1px solid #b8b8b8",boxShadow:"0 0 0 1px #c9444d"},focused:{border:"1px solid #b8b8b8",boxShadow:"0 0 0 1px ".concat(C)}},input:{base:{fontSize:"14px",fontFamily:"Montserrat, Arial, Helvetica, sans-serif",fontWeight:"500",color:"#828382",lineHeight:"1.2"},cardNumber:{flex:"1"}}}});return React.createElement("div",{className:"give-donor-dashboard-card-control"},React.createElement("label",{className:"give-donor-dashboard-card-control__label"},t),React.createElement(Oc,E,React.createElement("svg",L({images:jc})),React.createElement("input",w({onChange:function(e){return l(e.target.value)},value:i})),React.createElement("input",H({onChange:function(e){return h(e.target.value)},value:f})),React.createElement("input",V({onChange:function(e){return v(e.target.value)},value:m})),React.createElement("input",S({onChange:function(e){return z(e.target.value)},value:y}))))};Fc.propTypes={label:s.a.string,value:s.a.object,onChange:s.a.func},Fc.defaultProps={label:null,value:null,onChange:null};var Uc=Fc,Bc=(n(975),function(e){var t=e.gateway,n=e.label,c=e.onChange;switch(t){case"stripe":return React.createElement(nc,{label:n,onChange:function(e){return c(e)}});default:return React.createElement(Uc,{label:n,onChange:function(e){return c(e)}})}}),Zc={subscriptions:null,querying:!1,error:null};function Wc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function $c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wc(Object(n),!0).forEach((function(t){T()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qc=M((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zc,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_SUBSCRIPTIONS":return $c($c({},e),{},{subscriptions:t.payload.subscriptions});case"SET_QUERYING":return $c($c({},e),{},{querying:t.payload.querying});case"SET_ERROR":return $c($c({},e),{},{error:t.payload.error});default:return e}})),Gc=function(e){return{type:"SET_QUERYING",payload:{querying:e}}},Kc=function(){var e=qc.dispatch;if(B())return e(Gc(!0)),Qe.a.post(Z()+"give-api/v2/donor-dashboard/recurring-donations/subscriptions",{},{}).then((function(e){return e.data})).then((function(t){return e({type:"SET_SUBSCRIPTIONS",payload:{subscriptions:t.subscriptions}}),e(Gc(!1)),400===t.status&&e({type:"SET_ERROR",payload:{error:t.body_response.message}}),t})).catch((function(){return e(Gc(!1)),null}))},Yc=function(e){var t=e.id,n=e.amount,c=e.paymentMethod;return Qe.a.post(Z()+"give-api/v2/donor-dashboard/recurring-donations/subscription/update",{id:t,amount:n,payment_method:c},{}).then(function(){var e=Ct()(Mt.a.mark((function e(t){return Mt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Kc();case 2:return e.abrupt("return",t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},Qc=(n(976),function(e){var t=e.id,n=e.subscription,c=Object(o.useState)(n.payment.amount.raw),a=Fe()(c,2),r=a[0],i=a[1],l=Object(o.useState)(null),s=Fe()(l,2),u=s[0],f=s[1],h=Object(o.useState)(!1),p=Fe()(h,2),d=p[0],m=p[1],v=Object(o.useState)(!0),g=Fe()(v,2),b=g[0],y=g[1];Object(o.useEffect)((function(){y(!1)}),[r,u]);var z=function(){var e=Ct()(Mt.a.mark((function e(){return Mt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),e.next=3,Yc({id:t,amount:r,paymentMethod:u});case 3:y(!0),m(!1);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return React.createElement(o.Fragment,null,React.createElement(Wn,{form:n.form,payment:n.payment,onChange:function(e){return i(e)},value:r}),React.createElement(Bc,{label:we("Payment Method","give"),gateway:n.gateway.id,onChange:function(e){return f(e)}}),React.createElement(Mn,null,React.createElement("div",null,React.createElement(at,{onClick:function(){return z()}},b?React.createElement(o.Fragment,null,we("Updated","give")," ",React.createElement(Te,{icon:"check",fixedWidth:!0})):React.createElement(o.Fragment,null,we("Update Subscription","give")," ",React.createElement(Te,{className:d?"give-donor-dashboard__subscription-manager-spinner":"",icon:d?"spinner":"save",fixedWidth:!0}))))))}),Xc=function(e){return Qe.a.post(Z()+"give-api/v2/donor-dashboard/recurring-donations/subscription/cancel",{id:e},{}).then(function(){var e=Ct()(Mt.a.mark((function e(t){return Mt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Kc();case 2:return e.abrupt("return",t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},Jc=(n(977),function(e){var t=e.id,n=e.onRequestClose,c=function(){var e=Ct()(Mt.a.mark((function e(){return Mt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xc(t);case 2:n();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return React.createElement("div",{className:"give-donor-dashboard-cancel-modal"},React.createElement("div",{className:"give-donor-dashboard-cancel-modal__frame"},React.createElement("div",{className:"give-donor-dashboard-cancel-modal__header"},we("Cancel Subscription?","give")),React.createElement("div",{className:"give-donor-dashboard-cancel-modal__body"},React.createElement("div",{className:"give-donor-dashboard-cancel-modal__buttons"},React.createElement(at,{onClick:function(){return c()}},we("Yes, cancel","give")),React.createElement("a",{className:"give-donor-dashboard-cancel-modal__cancel",onClick:function(){return n()}},we("Nevermind","give"))))),React.createElement("div",{className:"give-donor-dashboard-cancel-modal__bg",onClick:function(){return n()}}))}),ea=function(e){var t=e.subscription,n=t.id,a=t.payment,r=t.form,i=t.gateway,l=it().width,s=Object(o.useState)(!1),u=Fe()(s,2),f=u[0],h=u[1];return React.createElement(o.Fragment,null,f&&React.createElement(Jc,{id:n,form:r,onRequestClose:function(){return h(!1)}}),React.createElement("div",{className:"give-donor-dashboard-table__row"},React.createElement("div",{className:"give-donor-dashboard-table__column"},l<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},we("Amount","give")),React.createElement("div",{className:"give-donor-dashboard-table__donation-amount"},a.amount.formatted," / ",a.frequency),r.title),React.createElement("div",{className:"give-donor-dashboard-table__column"},l<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},we("Status","give")),React.createElement("div",{className:"give-donor-dashboard-table__donation-status"},React.createElement("div",{className:"give-donor-dashboard-table__donation-status-indicator",style:{background:a.status.color}}),React.createElement("div",{className:"give-donor-dashboard-table__donation-status-label"},a.status.label))),React.createElement("div",{className:"give-donor-dashboard-table__column"},l<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},we("Next Renewal","give")),a.renewalDate),React.createElement("div",{className:"give-donor-dashboard-table__column"},l<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},we("Progress","give")),a.progress),React.createElement("div",{className:"give-donor-dashboard-table__pill"},React.createElement("div",{className:"give-donor-dashboard-table__donation-id"},"ID: ",a.serialCode),React.createElement("div",{className:"give-donor-dashboard-table__donation-receipt"},React.createElement(c.b,{to:"/recurring-donations/receipt/".concat(n)},we("View Subscription","give")," ",React.createElement(Te,{icon:"arrow-right"}))),i.can_update&&React.createElement("div",{className:"give-donor-dashboard-table__donation-receipt"},React.createElement(c.b,{to:"/recurring-donations/manage/".concat(n)},we("Manage Subscription","give")," ",React.createElement(Te,{icon:"arrow-right"}))),i.can_cancel&&React.createElement("div",{className:"give-donor-dashboard-table__donation-receipt"},React.createElement("a",{onClick:function(){return h(!0)}},we("Cancel Subscription","give"))))))},ta=(n(978),function(e){var t=e.subscriptions,n=e.perPage,c=Object(o.useState)(1),a=Fe()(c,2),r=a[0],i=a[1],l=[],s=[],u=0,f=n,h=1;return t&&(Object.entries(t).forEach((function(e){s[e[0]]=e[1]})),f=(u=(r-1)*n)+n<=s.length?u+n:s.length,h=Math.ceil(s.length/n)-1,l=s.reduce((function(e,t,n){return n>=u&&n<f&&e.push(React.createElement(ea,{subscription:t})),e}),[])),React.createElement(Ue,{header:React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-table__column"},we("Subscription","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},we("Status","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},we("Next Renewal","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},we("Progress","give"))),rows:React.createElement(o.Fragment,null,l),footer:React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-table__footer-text"},t&&"".concat(we("Showing","give")," ").concat(u+1," - ").concat(f," ").concat(we("of","give")," ").concat(s.length," ").concat(we("Subscriptions","give"))),React.createElement("div",{className:"give-donor-dashboard-table__footer-nav"},r-1>=1&&React.createElement("a",{onClick:function(){return i(r-1)}},React.createElement(Te,{icon:"chevron-left"})),r<=h&&React.createElement("a",{onClick:function(){return i(r+1)}},React.createElement(Te,{icon:"chevron-right"}))))})}),na=function(e){var t=Object(o.useState)(e(qc.getState())),n=Fe()(t,2),c=n[0],a=n[1];return Object(o.useEffect)((function(){var t=qc.subscribe((function(){a(e(qc.getState()))}));return function(){t()}}),[]),c},ca=(n(979),function(){var e=na((function(e){return e.subscriptions})),t=na((function(e){return e.querying})),n=na((function(e){return e.error})),a=Object(ct.f)(),r=a?a.pathname.split("/")[2]:null,i=a?a.pathname.split("/")[3]:null,l=function(t){var n=e.filter((function(e){return parseInt(e.id)===parseInt(t)}));return n.length?n[0]:null};if(n)return React.createElement(o.Fragment,null,React.createElement(De,{icon:"exclamation-triangle"},we("Error","give")),React.createElement("p",{style:{color:"#6b6b6b"}},n));if(i)switch(r){case"receipt":return t?React.createElement(o.Fragment,null,React.createElement(De,null,we("Loading...","give")),React.createElement("div",{className:"give-donor-dashboard__recurring-donations-link"},React.createElement(c.b,{to:"/recurring-donations"},React.createElement(Te,{icon:"arrow-left"})," ",we("Back to Recurring Donations","give")))):React.createElement(o.Fragment,null,React.createElement(De,null,we("Subscription","give")," #",l(i).payment.serialCode),React.createElement(In,{subscription:l(i)}),React.createElement("div",{className:"give-donor-dashboard__recurring-donations-link"},React.createElement(c.b,{to:"/recurring-donations"},React.createElement(Te,{icon:"arrow-left"})," ",we("Back to Recurring Donations","give"))));case"manage":return t&&null===e?React.createElement(o.Fragment,null,React.createElement(De,null,we("Loading...","give")),React.createElement("div",{className:"give-donor-dashboard__recurring-donations-link"},React.createElement(c.b,{to:"/recurring-donations"},React.createElement(Te,{icon:"arrow-left"})," ",we("Back to Recurring Donations","give")))):React.createElement(o.Fragment,null,React.createElement(De,null,we("Manage Subscription","give")),React.createElement(Lt,null),React.createElement(Qc,{id:i,subscription:l(i)}),React.createElement(Lt,null),React.createElement("div",{className:"give-donor-dashboard__recurring-donations-link"},React.createElement(c.b,{to:"/recurring-donations"},React.createElement(Te,{icon:"arrow-left"})," ",we("Back to Recurring Donations","give"))))}return t&&!e?React.createElement(o.Fragment,null,React.createElement(De,null,we("Loading...","give")),React.createElement(ta,null)):e?React.createElement(o.Fragment,null,React.createElement(De,null,"".concat(Object.entries(e).length," ").concat(we("Total Subscriptions","give"))),React.createElement(ta,{subscriptions:e,perPage:5})):React.createElement(o.Fragment,null,React.createElement(De,{icon:"exclamation-triangle"},we("No Subscriptions","give")))}),aa=function(){Kc(),window.giveDonorDashboard.utils.registerTab({label:"Recurring Donations",icon:"sync",slug:"recurring-donations",content:ca})},ra=n(399),oa=n.n(ra),ia=(n(980),function(e){var t=e.slug,n=e.label,a=e.icon;return React.createElement(c.c,{to:"/".concat(t),className:"give-donor-dashboard-tab-link",activeClassName:"give-donor-dashboard-tab-link--is-active"},React.createElement(Te,{icon:a,fixedWidth:!0}),n)}),la=(n(981),function(e){var t=e.onRequestClose,n=function(){var e=Ct()(Mt.a.mark((function e(){return Mt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Qe.a.post(Z()+"give-api/v2/donor-dashboard/logout",{}).then((function(e){return e.data}));case 2:window.location.reload();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return React.createElement("div",{className:"give-donor-dashboard-logout-modal"},React.createElement("div",{className:"give-donor-dashboard-logout-modal__frame"},React.createElement("div",{className:"give-donor-dashboard-logout-modal__header"},we("Are you sure you want to logout?","give")),React.createElement("div",{className:"give-donor-dashboard-logout-modal__body"},React.createElement("div",{className:"give-donor-dashboard-logout-modal__buttons"},React.createElement(at,{onClick:function(){return n()}},we("Yes, logout","give")),React.createElement("a",{className:"give-donor-dashboard-logout-modal__cancel",onClick:function(){return t()}},we("Nevermind","give"))))),React.createElement("div",{className:"give-donor-dashboard-logout-modal__bg",onClick:function(){return t()}}))}),sa=(n(982),function(){var e=Object(o.useState)(!1),t=Fe()(e,2),n=t[0],c=t[1],a=O((function(e){return e.tabs})),r=Object.values(a).map((function(e,t){return React.createElement(ia,{slug:e.slug,label:e.label,icon:e.icon,key:t})}));return React.createElement(o.Fragment,null,n&&React.createElement(la,{onRequestClose:function(){return c(!1)}}),React.createElement("div",{className:"give-donor-dashboard-tab-menu"},r,React.createElement("div",{className:"give-donor-dashboard-logout"},React.createElement("div",{className:"give-donor-dashboard-tab-link",onClick:function(){return c(!0)}},React.createElement(Te,{icon:"sign-out-alt"})," ",we("Logout","give")))))}),ua=(n(983),function(){var e=Object(ct.f)(),t=O((function(e){return e.tabs})),n=e.pathname.length>2?e.pathname.split("/")[1]:"dashboard",c=t[n]?t[n].content:null;return React.createElement("div",{className:"give-donor-dashboard-tab-content"},c?React.createElement(c,null):null)}),fa=(n(984),function(){var e=O((function(e){return e.profile})),t=e.name,n=e.addresses,c=e.company,a=e.sinceLastDonation,r=e.sinceCreated,o=e.avatarUrl,i=e.initials,l=n&&n.billing?n.billing[0]:null;return React.createElement("div",{className:"give-donor-dashboard-donor-info"},React.createElement("div",{className:"give-donor-dashboard-donor-info__avatar"},React.createElement("div",{className:"give-donor-dashboard-donor-info__avatar-container"},o?React.createElement("img",{src:o}):React.createElement("span",{className:"give-donor-dashboard-donor-info__avatar-initials"},i||React.createElement(Te,{icon:"user"})))),React.createElement("div",{className:"give-donor-dashboard-donor-info__details"},t&&React.createElement("div",{className:"give-donor-dashboard-donor-info__name"},t),l&&React.createElement("div",{className:"give-donor-dashboard-donor-info__detail"},React.createElement(Te,{icon:"map-pin",fixedWidth:!0})," ",l.city,", ",l.state.length>0?l.state:l.country),c&&React.createElement("div",{className:"give-donor-dashboard-donor-info__detail"},React.createElement(Te,{icon:"building",fixedWidth:!0})," ",c),a&&React.createElement("div",{className:"give-donor-dashboard-donor-info__detail"},React.createElement(Te,{icon:"clock",fixedWidth:!0})," Last donated ",a," ago"),r&&React.createElement("div",{className:"give-donor-dashboard-donor-info__detail"},React.createElement(Te,{icon:"heart",fixedWidth:!0})," Donor for ",r)),React.createElement("div",{className:"give-donor-dashboard-donor-info__badges"}))}),ha=(n(985),function(){return React.createElement("div",{className:"give-donor-dashboard-desktop-layout"},React.createElement("div",{className:"give-donor-dashboard-desktop-layout__donor-info"},React.createElement(fa,null)),React.createElement("div",{className:"give-donor-dashboard-desktop-layout__tab-menu"},React.createElement(sa,null)),React.createElement("div",{className:"give-donor-dashboard-desktop-layout__tab-content"},React.createElement(ua,null)))}),pa=(n(986),function(e){var t=e.children,n=Object(o.useState)(!1),c=Fe()(n,2),a=c[0],r=c[1],i=Object(o.useRef)(null);Object(o.useEffect)((function(){var e=function(e){i.current&&!i.current.contains(e.target)&&r(!1)};return a&&document.addEventListener("click",e),function(){a&&document.removeEventListener("click",e)}}),[a,i]);var l=Object(ct.f)(),s=O((function(e){return e.tabs})),u=l.pathname.length>2?l.pathname.split("/")[1]:"dashboard",f=s[u]?s[u].label:null;return React.createElement("div",{className:"give-donor-dashboard-mobile-menu"},React.createElement("div",{className:"give-donor-dashboard-mobile-menu__header"},React.createElement("div",{className:"give-donor-dashboard-mobile-menu__label"},f),React.createElement("div",{className:"give-donor-dashboard-mobile-menu__toggle ".concat(a?"give-donor-dashboard-mobile-menu__toggle--toggled":""),onClick:function(){return r(!a)}},React.createElement(Te,{icon:"bars"}))),a&&React.createElement("div",{className:"give-donor-dashboard-mobile-menu__content",ref:i},t))}),da=(n(987),function(){return React.createElement("div",{className:"give-donor-dashboard-mobile-layout"},React.createElement(pa,null,React.createElement("div",{className:"give-donor-dashboard-mobile-layout__tab-menu"},React.createElement(sa,null))),React.createElement("div",{className:"give-donor-dashboard-mobile-layout__donor-info"},React.createElement(fa,null)),React.createElement("div",{className:"give-donor-dashboard-mobile-layout__tab-content"},React.createElement(ua,null)))}),ma=function(e){var t=e.login,n=e.password;return Qe.a.post(Z()+"give-api/v2/donor-dashboard/login",{login:t,password:n},{}).then((function(e){return e.data}))},va=function(e){var t=e.email,n=e.recaptcha;return Qe.a.post(Z()+"give-api/v2/donor-dashboard/verify-email",{email:t,"g-recaptcha-response":n},{}).then((function(e){return e.data}))};function ga(){return(ga=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e}).apply(this,arguments)}function ba(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var ya=function(e){var t,n;function c(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(ba(t)),t.handleErrored=t.handleErrored.bind(ba(t)),t.handleChange=t.handleChange.bind(ba(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(ba(t)),t}n=e,(t=c).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=c.prototype;return a.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},a.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var e=this;return new Promise((function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()}))},a.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},a.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},a.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},a.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},a.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout((function(){document.body.removeChild(e)}),5e3)},a.handleRecaptchaRef=function(e){this.captcha=e},a.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var n,c,a={},r=Object.keys(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return i.a.createElement("div",ga({},t,{ref:this.handleRecaptchaRef}))},c}(i.a.Component);function za(){return(za=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e}).apply(this,arguments)}ya.displayName="ReCAPTCHA",ya.propTypes={sitekey:s.a.string.isRequired,onChange:s.a.func,grecaptcha:s.a.object,theme:s.a.oneOf(["dark","light"]),type:s.a.oneOf(["image","audio"]),tabindex:s.a.number,onExpired:s.a.func,onErrored:s.a.func,size:s.a.oneOf(["compact","normal","invisible"]),stoken:s.a.string,hl:s.a.string,badge:s.a.oneOf(["bottomright","bottomleft","inline"])},ya.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var Ca={},xa=0;var Ma,La,wa,Ha=(Ma=function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload=onloadcallback&render=explicit"},La=(La={callbackName:"onloadcallback",globalName:"grecaptcha"})||{},function(e){var t=e.displayName||e.name||"Component",n=function(t){var n,c;function a(e,n){var c;return(c=t.call(this,e,n)||this).state={},c.__scriptURL="",c}c=t,(n=a).prototype=Object.create(c.prototype),n.prototype.constructor=n,n.__proto__=c;var r=a.prototype;return r.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+xa++),this.__scriptLoaderID},r.setupScriptURL=function(){return this.__scriptURL="function"==typeof Ma?Ma():Ma,this.__scriptURL},r.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},r.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=Ca[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[La.callbackName]},r.componentDidMount=function(){var e=this,t=this.setupScriptURL(),n=this.asyncScriptLoaderGetScriptLoaderID(),c=La,a=c.globalName,r=c.callbackName,o=c.scriptId;if(a&&void 0!==window[a]&&(Ca[t]={loaded:!0,observers:{}}),Ca[t]){var i=Ca[t];return i&&(i.loaded||i.errored)?void this.asyncScriptLoaderHandleLoad(i):void(i.observers[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var l={};l[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)},Ca[t]={loaded:!1,observers:l};var s=document.createElement("script");for(var u in s.src=t,s.async=!0,La.attributes)s.setAttribute(u,La.attributes[u]);o&&(s.id=o);var f=function(e){if(Ca[t]){var n=Ca[t].observers;for(var c in n)e(n[c])&&delete n[c]}};r&&"undefined"!=typeof window&&(window[r]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),s.onload=function(){var e=Ca[t];e&&(e.loaded=!0,f((function(t){return!r&&(t(e),!0)})))},s.onerror=function(){var e=Ca[t];e&&(e.errored=!0,f((function(t){return t(e),!0})))},document.body.appendChild(s)},r.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===La.removeOnUnmount)for(var t=document.getElementsByTagName("script"),n=0;n<t.length;n+=1)t[n].src.indexOf(e)>-1&&t[n].parentNode&&t[n].parentNode.removeChild(t[n]);var c=Ca[e];c&&(delete c.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===La.removeOnUnmount&&delete Ca[e])},r.render=function(){var t=La.globalName,n=this.props,c=(n.asyncScriptOnLoad,n.forwardedRef),a=function(e,t){if(null==e)return{};var n,c,a={},r=Object.keys(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||(a[n]=e[n]);return a}(n,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(a[t]=void 0!==window[t]?window[t]:void 0),a.ref=c,Object(o.createElement)(e,a)},a}(o.Component),c=Object(o.forwardRef)((function(e,t){return Object(o.createElement)(n,za({},e,{forwardedRef:t}))}));return c.displayName="AsyncScriptLoader("+t+")",c.propTypes={asyncScriptOnLoad:s.a.func},g()(c,e)})(ya),Va=(n(988),function(){var e=Object(o.useState)(""),t=Fe()(e,2),n=t[0],c=t[1],a=Object(o.useState)(""),r=Fe()(a,2),i=r[0],l=r[1],s=Object(o.useState)(""),u=Fe()(s,2),f=u[0],h=u[1],p=Object(o.useState)(""),d=Fe()(p,2),m=d[0],v=d[1],g=Object(o.useState)(null),b=Fe()(g,2),y=b[0],z=b[1],C=Object(o.useState)(!1),x=Fe()(C,2),M=x[0],L=x[1],w=Object(o.useState)(!1),H=Fe()(w,2),V=H[0],S=H[1],E=Object(o.useState)(!1),N=Fe()(E,2),k=N[0],O=N[1],A=Object(o.useState)(null),_=Fe()(A,2),R=_[0],P=_[1],T=U("emailAccessEnabled"),j=U("loggedInWithoutDonor"),D=U("recaptchaKey"),I=function(){var e=Ct()(Mt.a.mark((function e(t){var n,c,a,r;return Mt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!f||!m){e.next=10;break}return L(!0),e.next=5,ma({login:f,password:m});case 5:n=e.sent,c=n.status,a=n.response,r=n.body_response,200===c?window.location.reload():(L(!1),z(r.message),"unidentified_login"===a?(h(""),v("")):v(""));case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),F=function(){var e=Ct()(Mt.a.mark((function e(t){var c,a,r;return Mt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!i){e.next=10;break}return S(!0),e.next=5,va({email:i,recaptcha:n});case 5:c=e.sent,a=c.status,r=c.body_response,S(!1),200===a?O(!0):P(r.message);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return React.createElement("div",{className:"give-donor-dashboard__auth-modal"},React.createElement("div",{className:"give-donor-dashboard__auth-modal-frame"},React.createElement("div",{className:"give-donor-dashboard__auth-modal-heading"},we("Log in to see your donor dashboard","give")),React.createElement("div",{className:"give-donor-dashboard__auth-modal-content"},j&&React.createElement("div",{className:"give-donor-dashboard__auth-modal-notice"},we("The account you are currently logged into the site with does not have an associated donor dashboard. Donate now or contact the site administrator to associate this WordPress user with a donor dashboard.","give")),T&&React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard__auth-modal-instruction"},we("Enter your email below and we'll send you a link to access your donor dashboard","give")),React.createElement("form",{className:"give-donor-dashboard__auth-modal-form",onSubmit:function(e){return F(e)}},React.createElement(Nn,{icon:"envelope",value:i,onChange:function(e){return l(e)}}),D&&React.createElement(Ha,{sitekey:D,onChange:c}),React.createElement("div",{className:"give-donor-dashboard__auth-modal-row"},React.createElement(at,{type:"submit"},we(!1===k?"Verify Email":"Email Sent","give"),!1===k&&React.createElement(Te,{className:V?"give-donor-dashboard__auth-modal-spinner":"",icon:V?"spinner":"chevron-right",fixedWidth:!0})),R&&React.createElement("div",{className:"give-donor-dashboard__auth-modal-error"},R))),React.createElement("div",{className:"give-donor-dashboard__auth-modal-seperator"})),React.createElement("div",{className:"give-donor-dashboard__auth-modal-instruction"},T&&React.createElement(o.Fragment,null,we("Already have an account?","give")," ",React.createElement("br",null)),we("Log in below to access your dashboard","give")),React.createElement("form",{className:"give-donor-dashboard__auth-modal-form",onSubmit:function(e){return I(e)}},React.createElement(Nn,{icon:"user",value:f,onChange:function(e){return h(e)}}),React.createElement(Nn,{icon:"lock",type:"password",value:m,onChange:function(e){return v(e)}}),React.createElement("div",{className:"give-donor-dashboard__auth-modal-row"},React.createElement(at,{type:"submit"},we("Log in","give"),React.createElement(Te,{className:M?"give-donor-dashboard__auth-modal-spinner":"",icon:M?"spinner":"chevron-right",fixedWidth:!0})),y&&React.createElement("div",{className:"give-donor-dashboard__auth-modal-error"},y))))))}),Sa=(n(989),function(e){var t=e.children;return B()?t:React.createElement("div",{className:"give-donor-dashboard__auth"},React.createElement(Va,null),React.createElement("div",{className:"give-donor-dashboard__auth-wrapper"},t))}),Ea=function(){var e=it().width,t=ot(),n=Object(xc.a)(wa||(wa=oa()(["\n\t:root {\n\t\t--give-donor-dashboard-accent-color: ",";\n\t}\n\t"])),t);return React.createElement(o.Fragment,null,React.createElement(n,null),React.createElement(Sa,null,e<920?React.createElement(da,null):React.createElement(ha,null)))};n(990);window.React=i.a,_.b.add(R),window.giveDonorDashboard={store:Y,utils:{registerTab:function(e){var t=window.giveDonorDashboard.store.dispatch;if(!0!==F(e))return null;t(function(e){return{type:"ADD_TAB",payload:{tab:e}}}(e))}}},r.a.render(i.a.createElement(m,{store:Y},i.a.createElement(c.a,null,i.a.createElement(Ea,null))),document.getElementById("give-donor-dashboard")),function(){window.giveDonorDashboard.utils.registerTab({label:"Dashboard",icon:"home",slug:"dashboard",content:nt});var e={"donation-history":yt,"annual-receipts":et,"recurring-donations":aa};U("registeredTabs").forEach((function(t){e[t]&&e[t]()})),window.giveDonorDashboard.utils.registerTab({label:"Edit Profile",icon:"cog",slug:"edit-profile",content:Dn})}()}});
give.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
6
  * Author: GiveWP
7
  * Author URI: https://givewp.com/
8
- * Version: 2.10.1
9
  * Text Domain: give
10
  * Domain Path: /languages
11
  *
@@ -262,7 +262,7 @@ final class Give {
262
  private function setup_constants() {
263
  // Plugin version.
264
  if ( ! defined( 'GIVE_VERSION' ) ) {
265
- define( 'GIVE_VERSION', '2.10.1' );
266
  }
267
 
268
  // Plugin Root File.
5
  * Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
6
  * Author: GiveWP
7
  * Author URI: https://givewp.com/
8
+ * Version: 2.10.2
9
  * Text Domain: give
10
  * Domain Path: /languages
11
  *
262
  private function setup_constants() {
263
  // Plugin version.
264
  if ( ! defined( 'GIVE_VERSION' ) ) {
265
+ define( 'GIVE_VERSION', '2.10.2' );
266
  }
267
 
268
  // Plugin Root File.
includes/admin/add-ons/actions.php CHANGED
@@ -624,7 +624,7 @@ add_action( 'after_plugin_row', 'give_show_update_notification_on_multisite', 10
624
  * @param $plugin
625
  *
626
  * @since 2.5.0
627
- * @unreleased update condition to verify givewp addons
628
  */
629
  function give_show_update_notification_on_single_site( $file, $plugin ) {
630
  if ( ! current_user_can( 'update_plugins' ) || is_multisite() ) {
624
  * @param $plugin
625
  *
626
  * @since 2.5.0
627
+ * @since 2.10.2 update condition to verify givewp addons
628
  */
629
  function give_show_update_notification_on_single_site( $file, $plugin ) {
630
  if ( ! current_user_can( 'update_plugins' ) || is_multisite() ) {
includes/class-give-logging.php CHANGED
@@ -1,5 +1,6 @@
1
  <?php
2
 
 
3
  use Give\Log\LogFactory;
4
  use Give\Log\LogRepository;
5
  use Give\Log\ValueObjects\LogType;
@@ -207,17 +208,14 @@ class Give_Logging {
207
  $data['context']['class'] = $backtrace[1]['class'];
208
  }
209
 
210
- $log = LogFactory::make(
211
- $data['type'],
212
- $data['message'],
213
- $data['category'],
214
- 'n/a',
215
- $data['context']
216
- );
217
 
218
- $log->save();
219
-
220
- return $log->getId();
 
221
  }
222
 
223
  /**
1
  <?php
2
 
3
+ use Give\Log\Log;
4
  use Give\Log\LogFactory;
5
  use Give\Log\LogRepository;
6
  use Give\Log\ValueObjects\LogType;
208
  $data['context']['class'] = $backtrace[1]['class'];
209
  }
210
 
211
+ try {
212
+ $log = LogFactory::makeFromArray( $data );
213
+ $log->save();
 
 
 
 
214
 
215
+ return $log->getId();
216
+ } catch ( Exception $exception ) {
217
+ error_log( $exception->getMessage() );
218
+ }
219
  }
220
 
221
  /**
includes/forms/functions.php CHANGED
@@ -377,6 +377,7 @@ function give_field_is_required( $field, $form_id ) {
377
  */
378
  function give_record_donation_in_log( $give_form_id = 0, $payment_id, $price_id = false, $donation_date = null ) {
379
  $log_data = [
 
380
  'log_parent' => $payment_id,
381
  'log_type' => 'sale',
382
  'log_date' => isset( $donation_date ) ? $donation_date : null,
377
  */
378
  function give_record_donation_in_log( $give_form_id = 0, $payment_id, $price_id = false, $donation_date = null ) {
379
  $log_data = [
380
+ 'log_content' => 'Payment log info',
381
  'log_parent' => $payment_id,
382
  'log_type' => 'sale',
383
  'log_date' => isset( $donation_date ) ? $donation_date : null,
includes/gateways/stripe/includes/class-give-stripe-checkout-session.php CHANGED
@@ -9,6 +9,8 @@
9
  */
10
 
11
  // Exit if accessed directly.
 
 
12
  if ( ! defined( 'ABSPATH' ) ) {
13
  exit;
14
  }
@@ -41,7 +43,7 @@ class Give_Stripe_Checkout_Session {
41
  $args = apply_filters( 'give_stripe_create_checkout_session_args', $args );
42
 
43
  // Add application fee, if the Stripe premium add-on is not active.
44
- if ( \Give\PaymentGateways\Stripe\ApplicationFee::canAddfee() && isset( $args['payment_intent_data'] ) ) {
45
  $args['payment_intent_data']['application_fee_amount'] = give_stripe_get_application_fee_amount( $args['line_items'][0]['amount'] );
46
  }
47
 
9
  */
10
 
11
  // Exit if accessed directly.
12
+ use Give\PaymentGateways\Stripe\ApplicationFee;
13
+
14
  if ( ! defined( 'ABSPATH' ) ) {
15
  exit;
16
  }
43
  $args = apply_filters( 'give_stripe_create_checkout_session_args', $args );
44
 
45
  // Add application fee, if the Stripe premium add-on is not active.
46
+ if ( ApplicationFee::canAddfee() && isset( $args['payment_intent_data'] ) ) {
47
  $args['payment_intent_data']['application_fee_amount'] = give_stripe_get_application_fee_amount( $args['line_items'][0]['amount'] );
48
  }
49
 
includes/gateways/stripe/includes/class-give-stripe-gateway.php CHANGED
@@ -11,6 +11,7 @@
11
  */
12
 
13
  // Exit, if accessed directly.
 
14
  use Give\ValueObjects\Money;
15
 
16
  if ( ! defined( 'ABSPATH' ) ) {
@@ -565,7 +566,7 @@ if ( ! class_exists( 'Give_Stripe_Gateway' ) ) {
565
  $charge_args = apply_filters( "give_{$this->id}_create_charge_args", $charge_args );
566
 
567
  // Charge application fee, only if the Stripe premium add-on is not active.
568
- if ( \Give\PaymentGateways\Stripe\ApplicationFee::canAddfee() ) {
569
  // Set Application Fee Amount.
570
  $charge_args['application_fee_amount'] = give_stripe_get_application_fee_amount( $charge_args['amount'] );
571
  }
11
  */
12
 
13
  // Exit, if accessed directly.
14
+ use Give\PaymentGateways\Stripe\ApplicationFee;
15
  use Give\ValueObjects\Money;
16
 
17
  if ( ! defined( 'ABSPATH' ) ) {
566
  $charge_args = apply_filters( "give_{$this->id}_create_charge_args", $charge_args );
567
 
568
  // Charge application fee, only if the Stripe premium add-on is not active.
569
+ if ( ApplicationFee::canAddfee() ) {
570
  // Set Application Fee Amount.
571
  $charge_args['application_fee_amount'] = give_stripe_get_application_fee_amount( $charge_args['amount'] );
572
  }
includes/gateways/stripe/includes/class-give-stripe-payment-intent.php CHANGED
@@ -10,7 +10,10 @@
10
  * @license https://opensource.org/licenses/gpl-license GNU Public License
11
  */
12
 
 
 
13
  // Exit, if accessed directly.
 
14
  if ( ! defined( 'ABSPATH' ) ) {
15
  exit;
16
  }
@@ -41,7 +44,7 @@ if ( ! class_exists( 'Give_Stripe_Payment_Intent' ) ) {
41
  public function create( $args ) {
42
 
43
  // Add application fee, if the Stripe premium add-on is not active.
44
- if ( \Give\PaymentGateways\Stripe\ApplicationFee::canAddfee() ) {
45
  $args['application_fee_amount'] = give_stripe_get_application_fee_amount( $args['amount'] );
46
  }
47
 
@@ -118,7 +121,7 @@ if ( ! class_exists( 'Give_Stripe_Payment_Intent' ) ) {
118
  public function update( $client_secret, $args ) {
119
 
120
  // Add application fee, if the Stripe premium add-on is not active.
121
- if ( \Give\PaymentGateways\Stripe\ApplicationFee::canAddfee() ) {
122
  $args['application_fee_amount'] = give_stripe_format_amount( give_stripe_get_application_fee_amount( $args['amount'] ) );
123
  }
124
 
10
  * @license https://opensource.org/licenses/gpl-license GNU Public License
11
  */
12
 
13
+ use Give\PaymentGateways\Stripe\ApplicationFee;
14
+
15
  // Exit, if accessed directly.
16
+
17
  if ( ! defined( 'ABSPATH' ) ) {
18
  exit;
19
  }
44
  public function create( $args ) {
45
 
46
  // Add application fee, if the Stripe premium add-on is not active.
47
+ if ( ApplicationFee::canAddfee() ) {
48
  $args['application_fee_amount'] = give_stripe_get_application_fee_amount( $args['amount'] );
49
  }
50
 
121
  public function update( $client_secret, $args ) {
122
 
123
  // Add application fee, if the Stripe premium add-on is not active.
124
+ if ( ApplicationFee::canAddfee() ) {
125
  $args['application_fee_amount'] = give_stripe_format_amount( give_stripe_get_application_fee_amount( $args['amount'] ) );
126
  }
127
 
languages/give.pot CHANGED
@@ -457,7 +457,7 @@ msgstr ""
457
  msgid "Download"
458
  msgstr ""
459
 
460
- #: includes/class-give-logging.php:105, src/Log/LogFactory.php:62, src/Log/LogModel.php:97
461
  msgid "Something went wrong"
462
  msgstr ""
463
 
@@ -7352,31 +7352,31 @@ msgstr ""
7352
  msgid "Preview email with a donation:"
7353
  msgstr ""
7354
 
7355
- #: includes/forms/functions.php:1260
7356
  msgid "of"
7357
  msgstr ""
7358
 
7359
- #: includes/forms/functions.php:1263, includes/admin/tools/import/class-give-import-donations.php:252, includes/admin/tools/import/class-give-import-donations.php:258
7360
  msgid "donors"
7361
  msgstr ""
7362
 
7363
- #: includes/forms/functions.php:1263, includes/admin/tools/import/class-give-import-donations.php:270, includes/admin/tools/import/class-give-import-donations.php:276
7364
  msgid "donations"
7365
  msgstr ""
7366
 
7367
- #: includes/forms/functions.php:1267
7368
  msgid "Goal achieved"
7369
  msgstr ""
7370
 
7371
- #: includes/forms/functions.php:1490
7372
  msgid "Mr."
7373
  msgstr ""
7374
 
7375
- #: includes/forms/functions.php:1491
7376
  msgid "Mrs."
7377
  msgstr ""
7378
 
7379
- #: includes/forms/functions.php:1492
7380
  msgid "Ms."
7381
  msgstr ""
7382
 
@@ -7596,7 +7596,7 @@ msgstr ""
7596
  msgid "Donation Total:"
7597
  msgstr ""
7598
 
7599
- #: includes/forms/template.php:2206, includes/gateways/stripe/includes/class-give-stripe-gateway.php:142, includes/gateways/stripe/includes/class-give-stripe-gateway.php:131, includes/gateways/stripe/includes/class-give-stripe-gateway.php:120
7600
  msgid "Notice:"
7601
  msgstr ""
7602
 
@@ -12458,21 +12458,21 @@ msgid_plural "There are %1$d GiveWP addons that need to be updated. <a href=\"%2
12458
  msgstr[0] ""
12459
  msgstr[1] ""
12460
 
12461
- #: includes/gateways/stripe/includes/class-give-stripe-checkout-session.php:60, includes/gateways/stripe/includes/class-give-stripe-checkout-session.php:100, includes/gateways/stripe/includes/class-give-stripe-customer.php:373, includes/gateways/stripe/includes/class-give-stripe-customer.php:469, includes/gateways/stripe/includes/class-give-stripe-customer.php:487, includes/gateways/stripe/includes/class-give-stripe-customer.php:568, includes/gateways/stripe/includes/class-give-stripe-gateway.php:179, includes/gateways/stripe/includes/class-give-stripe-gateway.php:314, includes/gateways/stripe/includes/class-give-stripe-gateway.php:388, includes/gateways/stripe/includes/class-give-stripe-gateway.php:467, includes/gateways/stripe/includes/class-give-stripe-logger.php:77, includes/gateways/stripe/includes/class-give-stripe-webhooks.php:170, includes/gateways/stripe/includes/give-stripe-helpers.php:570, includes/gateways/stripe/includes/give-stripe-helpers.php:666, includes/gateways/stripe/includes/give-stripe-helpers.php:831, includes/gateways/stripe/includes/admin/admin-actions.php:258
12462
  msgid "Stripe Error"
12463
  msgstr ""
12464
 
12465
  #. translators: %s Exception Message Body
12466
- #: includes/gateways/stripe/includes/class-give-stripe-checkout-session.php:63
12467
  msgid "The Stripe Gateway returned an error while creating the Checkout Session. Details: %s"
12468
  msgstr ""
12469
 
12470
- #: includes/gateways/stripe/includes/class-give-stripe-checkout-session.php:67, includes/gateways/stripe/includes/class-give-stripe-checkout-session.php:107, includes/gateways/stripe/includes/class-give-stripe-customer.php:476
12471
  msgid "An occurred while processing the donation with the gateway. Please try your donation again."
12472
  msgstr ""
12473
 
12474
  #. translators: %s Exception Message Body
12475
- #: includes/gateways/stripe/includes/class-give-stripe-checkout-session.php:103
12476
  msgid "The Stripe Gateway returned an error while retrieving the Checkout Session. Details: %s"
12477
  msgstr ""
12478
 
@@ -12506,81 +12506,81 @@ msgstr ""
12506
  msgid "The Stripe Gateway returned an error while creating the customer. Details: %s"
12507
  msgstr ""
12508
 
12509
- #: includes/gateways/stripe/includes/class-give-stripe-customer.php:486, includes/gateways/stripe/includes/class-give-stripe-customer.php:567, includes/gateways/stripe/includes/class-give-stripe-gateway.php:186, includes/gateways/stripe/includes/class-give-stripe-gateway.php:241, includes/gateways/stripe/includes/class-give-stripe-gateway.php:281, includes/gateways/stripe/includes/class-give-stripe-gateway.php:321, includes/gateways/stripe/includes/class-give-stripe-gateway.php:387, includes/gateways/stripe/includes/give-stripe-helpers.php:673
12510
  msgid "An error occurred while processing the donation. Please try again."
12511
  msgstr ""
12512
 
12513
- #: includes/gateways/stripe/includes/class-give-stripe-customer.php:487, includes/gateways/stripe/includes/class-give-stripe-customer.php:568, includes/gateways/stripe/includes/class-give-stripe-gateway.php:388
12514
  msgid "An error occurred retrieving or creating the "
12515
  msgstr ""
12516
 
12517
  #. translators: %s Exception Message Body
12518
- #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:182
12519
  msgid "Unable to set Stripe API Version. Details: %s"
12520
  msgstr ""
12521
 
12522
- #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:234
12523
  msgid "Stripe Token Error"
12524
  msgstr ""
12525
 
12526
  #. translators: %s Exception Message Body
12527
- #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:237
12528
  msgid "Unable to retrieve token. Details: %s"
12529
  msgstr ""
12530
 
12531
- #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:274
12532
  msgid "Stripe Source Error"
12533
  msgstr ""
12534
 
12535
  #. translators: %s Exception Message Body
12536
- #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:277
12537
  msgid "Unable to retrieve source. Details: %s"
12538
  msgstr ""
12539
 
12540
  #. translators: %s Exception Message Body
12541
- #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:317
12542
  msgid "Unable to create source. Details: %s"
12543
  msgstr ""
12544
 
12545
- #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:369
12546
  msgid "Stripe Card Error"
12547
  msgstr ""
12548
 
12549
  #. translators: %s Exception Error Message
12550
- #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:372
12551
  msgid "The Stripe Gateway returned an error while processing a donation. Details: %s"
12552
  msgstr ""
12553
 
12554
- #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:440
12555
  msgid "The Stripe payment gateway returned an error while processing the donation."
12556
  msgstr ""
12557
 
12558
- #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:463, includes/gateways/stripe/includes/class-give-stripe-logger.php:73
12559
  msgid "The Stripe API request was invalid, please try again."
12560
  msgstr ""
12561
 
12562
- #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:447, includes/gateways/stripe/includes/class-give-stripe-logger.php:61, includes/gateways/stripe/includes/admin/admin-actions.php:254
12563
  msgid "Message: %s"
12564
  msgstr ""
12565
 
12566
- #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:456, includes/gateways/stripe/includes/class-give-stripe-logger.php:67, includes/gateways/stripe/includes/admin/admin-actions.php:255
12567
  msgid "Code: %s"
12568
  msgstr ""
12569
 
12570
- #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:524
12571
  msgid "Your donation could not be recorded, please contact the site administrator."
12572
  msgstr ""
12573
 
12574
- #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:592
12575
  msgid "Stripe Charge Error"
12576
  msgstr ""
12577
 
12578
  #. translators: %s Exception Error Message
12579
- #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:595
12580
  msgid "Unable to create a successful charge. Details: %s"
12581
  msgstr ""
12582
 
12583
- #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:599
12584
  msgid "Error processing donation with Stripe. Please try again."
12585
  msgstr ""
12586
 
@@ -12649,34 +12649,34 @@ msgstr ""
12649
  msgid "An error occurred due to requests hitting the API too quickly. Please let us know if you're consistently running into this error."
12650
  msgstr ""
12651
 
12652
- #: includes/gateways/stripe/includes/class-give-stripe-payment-intent.php:59, includes/gateways/stripe/includes/class-give-stripe-payment-intent.php:95, includes/gateways/stripe/includes/class-give-stripe-payment-intent.php:137
12653
  msgid "Stripe Payment Intent Error"
12654
  msgstr ""
12655
 
12656
  #. translators: %s Exception Error Message
12657
- #: includes/gateways/stripe/includes/class-give-stripe-payment-intent.php:62
12658
  msgid "Unable to create a payment intent. Details: %s"
12659
  msgstr ""
12660
 
12661
- #: includes/gateways/stripe/includes/class-give-stripe-payment-intent.php:67
12662
  msgid "Error creating payment intent with Stripe. Please try again."
12663
  msgstr ""
12664
 
12665
  #. translators: %s Exception Error Message
12666
- #: includes/gateways/stripe/includes/class-give-stripe-payment-intent.php:98
12667
  msgid "Unable to retrieve a payment intent. Details: %s"
12668
  msgstr ""
12669
 
12670
- #: includes/gateways/stripe/includes/class-give-stripe-payment-intent.php:103
12671
  msgid "Error retrieving payment intent with Stripe. Please try again."
12672
  msgstr ""
12673
 
12674
  #. translators: %s Exception Error Message
12675
- #: includes/gateways/stripe/includes/class-give-stripe-payment-intent.php:140
12676
  msgid "Unable to update a payment intent. Details: %s"
12677
  msgstr ""
12678
 
12679
- #: includes/gateways/stripe/includes/class-give-stripe-payment-intent.php:145
12680
  msgid "Error updating payment intent with Stripe. Please try again."
12681
  msgstr ""
12682
 
@@ -13357,7 +13357,7 @@ msgstr ""
13357
  msgid "To create a Group object, please provide id, name and fields."
13358
  msgstr ""
13359
 
13360
- #: src/Log/LogFactory.php:64, src/Log/LogModel.php:109
13361
  msgid "Give Core"
13362
  msgstr ""
13363
 
@@ -13501,7 +13501,7 @@ msgstr ""
13501
  msgid "Use the Donor Dashboard instead of the legacy donation management pages (Donation History, Edit Profile, Subscriptions, etc)."
13502
  msgstr ""
13503
 
13504
- #: src/DonorDashboards/Admin/Settings.php:119, src/DonorDashboards/resources/views/donordashboard.php:12
13505
  msgid "Donor Dashboard"
13506
  msgstr ""
13507
 
@@ -13618,6 +13618,10 @@ msgstr ""
13618
  msgid "using Manual API Keys."
13619
  msgstr ""
13620
 
 
 
 
 
13621
  #: src/Log/Migrations/DeleteOldLogTables.php:24
13622
  msgid "Delete give_logs and give_logmeta tables"
13623
  msgstr ""
@@ -14281,12 +14285,24 @@ msgstr ""
14281
  msgid "I'll setup Donor Dashboards later"
14282
  msgstr ""
14283
 
14284
- #: src/DonorDashboards/Tabs/DonationHistoryTab/DonationsRoute.php:82
 
 
 
 
 
 
 
 
 
 
 
 
14285
  msgid "An error occurred while retrieving donation records"
14286
  msgstr ""
14287
 
14288
- #: src/DonorDashboards/Tabs/DonationHistoryTab/DonationsRoute.php:95
14289
- msgid "An error occurred while retrieving your donation records."
14290
  msgstr ""
14291
 
14292
  #: src/Form/LegacyConsumer/Commands/DeprecateOldTemplateHook.php:28
@@ -14481,6 +14497,10 @@ msgstr ""
14481
  msgid "To create a paypal order, please provide formId, donationAmount and payer"
14482
  msgstr ""
14483
 
 
 
 
 
14484
  #: src/Views/Admin/DashboardWidgets/Reports.php:34
14485
  msgid "GiveWP Donations: Reports"
14486
  msgstr ""
457
  msgid "Download"
458
  msgstr ""
459
 
460
+ #: includes/class-give-logging.php:106, src/Log/LogFactory.php:62, src/Log/LogModel.php:98
461
  msgid "Something went wrong"
462
  msgstr ""
463
 
7352
  msgid "Preview email with a donation:"
7353
  msgstr ""
7354
 
7355
+ #: includes/forms/functions.php:1261
7356
  msgid "of"
7357
  msgstr ""
7358
 
7359
+ #: includes/forms/functions.php:1264, includes/admin/tools/import/class-give-import-donations.php:252, includes/admin/tools/import/class-give-import-donations.php:258
7360
  msgid "donors"
7361
  msgstr ""
7362
 
7363
+ #: includes/forms/functions.php:1264, includes/admin/tools/import/class-give-import-donations.php:270, includes/admin/tools/import/class-give-import-donations.php:276
7364
  msgid "donations"
7365
  msgstr ""
7366
 
7367
+ #: includes/forms/functions.php:1268
7368
  msgid "Goal achieved"
7369
  msgstr ""
7370
 
7371
+ #: includes/forms/functions.php:1491
7372
  msgid "Mr."
7373
  msgstr ""
7374
 
7375
+ #: includes/forms/functions.php:1492
7376
  msgid "Mrs."
7377
  msgstr ""
7378
 
7379
+ #: includes/forms/functions.php:1493
7380
  msgid "Ms."
7381
  msgstr ""
7382
 
7596
  msgid "Donation Total:"
7597
  msgstr ""
7598
 
7599
+ #: includes/forms/template.php:2206, includes/gateways/stripe/includes/class-give-stripe-gateway.php:143, includes/gateways/stripe/includes/class-give-stripe-gateway.php:132, includes/gateways/stripe/includes/class-give-stripe-gateway.php:121
7600
  msgid "Notice:"
7601
  msgstr ""
7602
 
12458
  msgstr[0] ""
12459
  msgstr[1] ""
12460
 
12461
+ #: includes/gateways/stripe/includes/class-give-stripe-checkout-session.php:62, includes/gateways/stripe/includes/class-give-stripe-checkout-session.php:102, includes/gateways/stripe/includes/class-give-stripe-customer.php:373, includes/gateways/stripe/includes/class-give-stripe-customer.php:469, includes/gateways/stripe/includes/class-give-stripe-customer.php:487, includes/gateways/stripe/includes/class-give-stripe-customer.php:568, includes/gateways/stripe/includes/class-give-stripe-gateway.php:180, includes/gateways/stripe/includes/class-give-stripe-gateway.php:315, includes/gateways/stripe/includes/class-give-stripe-gateway.php:389, includes/gateways/stripe/includes/class-give-stripe-gateway.php:468, includes/gateways/stripe/includes/class-give-stripe-logger.php:77, includes/gateways/stripe/includes/class-give-stripe-webhooks.php:170, includes/gateways/stripe/includes/give-stripe-helpers.php:570, includes/gateways/stripe/includes/give-stripe-helpers.php:666, includes/gateways/stripe/includes/give-stripe-helpers.php:831, includes/gateways/stripe/includes/admin/admin-actions.php:258
12462
  msgid "Stripe Error"
12463
  msgstr ""
12464
 
12465
  #. translators: %s Exception Message Body
12466
+ #: includes/gateways/stripe/includes/class-give-stripe-checkout-session.php:65
12467
  msgid "The Stripe Gateway returned an error while creating the Checkout Session. Details: %s"
12468
  msgstr ""
12469
 
12470
+ #: includes/gateways/stripe/includes/class-give-stripe-checkout-session.php:69, includes/gateways/stripe/includes/class-give-stripe-checkout-session.php:109, includes/gateways/stripe/includes/class-give-stripe-customer.php:476
12471
  msgid "An occurred while processing the donation with the gateway. Please try your donation again."
12472
  msgstr ""
12473
 
12474
  #. translators: %s Exception Message Body
12475
+ #: includes/gateways/stripe/includes/class-give-stripe-checkout-session.php:105
12476
  msgid "The Stripe Gateway returned an error while retrieving the Checkout Session. Details: %s"
12477
  msgstr ""
12478
 
12506
  msgid "The Stripe Gateway returned an error while creating the customer. Details: %s"
12507
  msgstr ""
12508
 
12509
+ #: includes/gateways/stripe/includes/class-give-stripe-customer.php:486, includes/gateways/stripe/includes/class-give-stripe-customer.php:567, includes/gateways/stripe/includes/class-give-stripe-gateway.php:187, includes/gateways/stripe/includes/class-give-stripe-gateway.php:242, includes/gateways/stripe/includes/class-give-stripe-gateway.php:282, includes/gateways/stripe/includes/class-give-stripe-gateway.php:322, includes/gateways/stripe/includes/class-give-stripe-gateway.php:388, includes/gateways/stripe/includes/give-stripe-helpers.php:673
12510
  msgid "An error occurred while processing the donation. Please try again."
12511
  msgstr ""
12512
 
12513
+ #: includes/gateways/stripe/includes/class-give-stripe-customer.php:487, includes/gateways/stripe/includes/class-give-stripe-customer.php:568, includes/gateways/stripe/includes/class-give-stripe-gateway.php:389
12514
  msgid "An error occurred retrieving or creating the "
12515
  msgstr ""
12516
 
12517
  #. translators: %s Exception Message Body
12518
+ #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:183
12519
  msgid "Unable to set Stripe API Version. Details: %s"
12520
  msgstr ""
12521
 
12522
+ #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:235
12523
  msgid "Stripe Token Error"
12524
  msgstr ""
12525
 
12526
  #. translators: %s Exception Message Body
12527
+ #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:238
12528
  msgid "Unable to retrieve token. Details: %s"
12529
  msgstr ""
12530
 
12531
+ #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:275
12532
  msgid "Stripe Source Error"
12533
  msgstr ""
12534
 
12535
  #. translators: %s Exception Message Body
12536
+ #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:278
12537
  msgid "Unable to retrieve source. Details: %s"
12538
  msgstr ""
12539
 
12540
  #. translators: %s Exception Message Body
12541
+ #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:318
12542
  msgid "Unable to create source. Details: %s"
12543
  msgstr ""
12544
 
12545
+ #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:370
12546
  msgid "Stripe Card Error"
12547
  msgstr ""
12548
 
12549
  #. translators: %s Exception Error Message
12550
+ #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:373
12551
  msgid "The Stripe Gateway returned an error while processing a donation. Details: %s"
12552
  msgstr ""
12553
 
12554
+ #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:441
12555
  msgid "The Stripe payment gateway returned an error while processing the donation."
12556
  msgstr ""
12557
 
12558
+ #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:464, includes/gateways/stripe/includes/class-give-stripe-logger.php:73
12559
  msgid "The Stripe API request was invalid, please try again."
12560
  msgstr ""
12561
 
12562
+ #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:448, includes/gateways/stripe/includes/class-give-stripe-logger.php:61, includes/gateways/stripe/includes/admin/admin-actions.php:254
12563
  msgid "Message: %s"
12564
  msgstr ""
12565
 
12566
+ #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:457, includes/gateways/stripe/includes/class-give-stripe-logger.php:67, includes/gateways/stripe/includes/admin/admin-actions.php:255
12567
  msgid "Code: %s"
12568
  msgstr ""
12569
 
12570
+ #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:525
12571
  msgid "Your donation could not be recorded, please contact the site administrator."
12572
  msgstr ""
12573
 
12574
+ #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:593
12575
  msgid "Stripe Charge Error"
12576
  msgstr ""
12577
 
12578
  #. translators: %s Exception Error Message
12579
+ #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:596
12580
  msgid "Unable to create a successful charge. Details: %s"
12581
  msgstr ""
12582
 
12583
+ #: includes/gateways/stripe/includes/class-give-stripe-gateway.php:600
12584
  msgid "Error processing donation with Stripe. Please try again."
12585
  msgstr ""
12586
 
12649
  msgid "An error occurred due to requests hitting the API too quickly. Please let us know if you're consistently running into this error."
12650
  msgstr ""
12651
 
12652
+ #: includes/gateways/stripe/includes/class-give-stripe-payment-intent.php:62, includes/gateways/stripe/includes/class-give-stripe-payment-intent.php:98, includes/gateways/stripe/includes/class-give-stripe-payment-intent.php:140
12653
  msgid "Stripe Payment Intent Error"
12654
  msgstr ""
12655
 
12656
  #. translators: %s Exception Error Message
12657
+ #: includes/gateways/stripe/includes/class-give-stripe-payment-intent.php:65
12658
  msgid "Unable to create a payment intent. Details: %s"
12659
  msgstr ""
12660
 
12661
+ #: includes/gateways/stripe/includes/class-give-stripe-payment-intent.php:70
12662
  msgid "Error creating payment intent with Stripe. Please try again."
12663
  msgstr ""
12664
 
12665
  #. translators: %s Exception Error Message
12666
+ #: includes/gateways/stripe/includes/class-give-stripe-payment-intent.php:101
12667
  msgid "Unable to retrieve a payment intent. Details: %s"
12668
  msgstr ""
12669
 
12670
+ #: includes/gateways/stripe/includes/class-give-stripe-payment-intent.php:106
12671
  msgid "Error retrieving payment intent with Stripe. Please try again."
12672
  msgstr ""
12673
 
12674
  #. translators: %s Exception Error Message
12675
+ #: includes/gateways/stripe/includes/class-give-stripe-payment-intent.php:143
12676
  msgid "Unable to update a payment intent. Details: %s"
12677
  msgstr ""
12678
 
12679
+ #: includes/gateways/stripe/includes/class-give-stripe-payment-intent.php:148
12680
  msgid "Error updating payment intent with Stripe. Please try again."
12681
  msgstr ""
12682
 
13357
  msgid "To create a Group object, please provide id, name and fields."
13358
  msgstr ""
13359
 
13360
+ #: src/Log/LogFactory.php:64, src/Log/LogModel.php:121
13361
  msgid "Give Core"
13362
  msgstr ""
13363
 
13501
  msgid "Use the Donor Dashboard instead of the legacy donation management pages (Donation History, Edit Profile, Subscriptions, etc)."
13502
  msgstr ""
13503
 
13504
+ #: src/DonorDashboards/Admin/Settings.php:125, src/DonorDashboards/resources/views/donordashboard.php:12
13505
  msgid "Donor Dashboard"
13506
  msgstr ""
13507
 
13618
  msgid "using Manual API Keys."
13619
  msgstr ""
13620
 
13621
+ #: src/Log/Migrations/CreateNewLogTable.php:30
13622
+ msgid "Create new give_log table"
13623
+ msgstr ""
13624
+
13625
  #: src/Log/Migrations/DeleteOldLogTables.php:24
13626
  msgid "Delete give_logs and give_logmeta tables"
13627
  msgstr ""
14285
  msgid "I'll setup Donor Dashboards later"
14286
  msgstr ""
14287
 
14288
+ #: src/DonorDashboards/Tabs/Contracts/Route.php:74
14289
+ msgid "An error occurred while validating donor ID on request."
14290
+ msgstr ""
14291
+
14292
+ #: src/DonorDashboards/Tabs/Contracts/Route.php:82
14293
+ msgid "Donor ID coud not be validated for request."
14294
+ msgstr ""
14295
+
14296
+ #: src/DonorDashboards/Tabs/Contracts/Route.php:91
14297
+ msgid "An error occurred while retrieving your donation records. Contact a site administrator and have them search the logs at Donations > Tools > Logs for a more specific cause of the problem."
14298
+ msgstr ""
14299
+
14300
+ #: src/DonorDashboards/Tabs/DonationHistoryTab/DonationsRoute.php:84
14301
  msgid "An error occurred while retrieving donation records"
14302
  msgstr ""
14303
 
14304
+ #: src/DonorDashboards/Tabs/DonationHistoryTab/DonationsRoute.php:97
14305
+ msgid "An error occurred while retrieving your donation records. Contact the site administrator for assistance."
14306
  msgstr ""
14307
 
14308
  #: src/Form/LegacyConsumer/Commands/DeprecateOldTemplateHook.php:28
14497
  msgid "To create a paypal order, please provide formId, donationAmount and payer"
14498
  msgstr ""
14499
 
14500
+ #: src/PaymentGateways/Stripe/Models/AccountDetail.php:75
14501
+ msgid "To create a %1$s object, please provide valid: %2$s"
14502
+ msgstr ""
14503
+
14504
  #: src/Views/Admin/DashboardWidgets/Reports.php:34
14505
  msgid "GiveWP Donations: Reports"
14506
  msgstr ""
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: donation, fundraising, crowdfunding, givewp, give
5
  Requires at least: 4.9
6
  Tested up to: 5.7
7
  Requires PHP: 5.6
8
- Stable tag: 2.10.1
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -232,6 +232,13 @@ The 2% fee on Stripe donations only applies to donations taken via our free Stri
232
 
233
  == Changelog ==
234
 
 
 
 
 
 
 
 
235
  = 2.10.1: March 30th, 2021 =
236
  * Fixed: Fatal error triggered by the Donor Dashboard on PHP 5.6
237
  * Fixed: Donations to Revenue table migration where migration got stuck on error
5
  Requires at least: 4.9
6
  Tested up to: 5.7
7
  Requires PHP: 5.6
8
+ Stable tag: 2.10.2
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
232
 
233
  == Changelog ==
234
 
235
+ = 2.10.2: April 14th, 2021 =
236
+ * Changed: Stripe fee does not apply to Brazil due to Stripe limitations
237
+ * Fixed: Migration for creating the logs table is now compatible with MySQL 5.5 and up
238
+ * Fixed: When an authentication error occurs on the Donor Dashboard the user can no longer see others' donations
239
+ * Fixed: Made sure that under no circumstances can logging cause an exception... to avoid irony
240
+ * Fixed: Activating GiveWP will now generate a Donor Dashboard page ONLY if one does not already exist
241
+
242
  = 2.10.1: March 30th, 2021 =
243
  * Fixed: Fatal error triggered by the Donor Dashboard on PHP 5.6
244
  * Fixed: Donations to Revenue table migration where migration got stuck on error
src/DonorDashboards/Admin/Settings.php CHANGED
@@ -109,6 +109,12 @@ class Settings {
109
  */
110
  public function generateDonorDashboardPage() {
111
 
 
 
 
 
 
 
112
  $content = $this->getDonorDashboardPageContent();
113
 
114
  $pageId = wp_insert_post(
109
  */
110
  public function generateDonorDashboardPage() {
111
 
112
+ // Check if a Donor Dashboard page has already been created
113
+
114
+ if ( ! empty( give_get_option( 'donor_dashboard_page' ) ) ) {
115
+ return;
116
+ }
117
+
118
  $content = $this->getDonorDashboardPageContent();
119
 
120
  $pageId = wp_insert_post(
src/DonorDashboards/App.php CHANGED
@@ -8,7 +8,7 @@ use Give\DonorDashboards\Helpers\LocationList;
8
  * Class App
9
  * @package Give\DonorDashboards
10
  *
11
- * @unreleased
12
  */
13
  class App {
14
  /**
8
  * Class App
9
  * @package Give\DonorDashboards
10
  *
11
+ * @since 2.10.2
12
  */
13
  class App {
14
  /**
src/DonorDashboards/Repositories/Donations.php CHANGED
@@ -55,7 +55,7 @@ class Donations {
55
  * @param string $rawAggregate raw SELECT to determine what to aggregate over
56
  * @param int $donorId
57
  *
58
- * @return array
59
  */
60
  private function getDonationAggregate( $rawAggregate, $donorId ) {
61
  global $wpdb;
55
  * @param string $rawAggregate raw SELECT to determine what to aggregate over
56
  * @param int $donorId
57
  *
58
+ * @return object
59
  */
60
  private function getDonationAggregate( $rawAggregate, $donorId ) {
61
  global $wpdb;
src/DonorDashboards/Routes/Captcha/ProtectedRoute.php CHANGED
@@ -5,12 +5,12 @@ namespace Give\DonorDashboards\Routes\Captcha;
5
  /**
6
  * Note: Functionality forked from `give_email_access_login()`.
7
  *
8
- * @unreleased
9
  */
10
  trait ProtectedRoute {
11
 
12
  /**
13
- * @unreleased
14
  *
15
  * @return bool
16
  */
@@ -22,7 +22,7 @@ trait ProtectedRoute {
22
  }
23
 
24
  /**
25
- * @unreleased
26
  *
27
  * @param string $value
28
  * @param WP_REST_Request $request
5
  /**
6
  * Note: Functionality forked from `give_email_access_login()`.
7
  *
8
+ * @since 2.10.2
9
  */
10
  trait ProtectedRoute {
11
 
12
  /**
13
+ * @since 2.10.2
14
  *
15
  * @return bool
16
  */
22
  }
23
 
24
  /**
25
+ * @since 2.10.2
26
  *
27
  * @param string $value
28
  * @param WP_REST_Request $request
src/DonorDashboards/ServiceProvider.php CHANGED
@@ -52,7 +52,7 @@ class ServiceProvider implements ServiceProviderInterface {
52
  Hooks::addFilter( 'give_settings_general', Settings::class, 'register' );
53
  Hooks::addFilter( 'give_settings_general', Settings::class, 'overrideLegacyDonationManagementPageSettings', 999 );
54
 
55
- Hooks::addAction( 'give_embed_head', App::class, 'loadAssets' );
56
 
57
  Hooks::addFilter( 'query_vars', RequestHandler::class, 'filterQueryVars' );
58
  Hooks::addAction( 'parse_request', RequestHandler::class, 'parseRequest' );
52
  Hooks::addFilter( 'give_settings_general', Settings::class, 'register' );
53
  Hooks::addFilter( 'give_settings_general', Settings::class, 'overrideLegacyDonationManagementPageSettings', 999 );
54
 
55
+ Hooks::addAction( 'give_embed_head', App::class, 'loadAssets', 2 );
56
 
57
  Hooks::addFilter( 'query_vars', RequestHandler::class, 'filterQueryVars' );
58
  Hooks::addAction( 'parse_request', RequestHandler::class, 'parseRequest' );
src/DonorDashboards/Tabs/Contracts/Route.php CHANGED
@@ -5,6 +5,7 @@ namespace Give\DonorDashboards\Tabs\Contracts;
5
  use WP_REST_Request;
6
  use WP_REST_Response;
7
  use Give\API\RestRoute;
 
8
 
9
  /**
10
  * @since 2.10.0
@@ -55,7 +56,7 @@ abstract class Route implements RestRoute {
55
  [
56
  [
57
  'methods' => 'POST',
58
- 'callback' => [ $this, 'handleRequest' ],
59
  'permission_callback' => function() {
60
  return Give()->session->get_session_expiration() !== false;
61
  },
@@ -64,4 +65,36 @@ abstract class Route implements RestRoute {
64
  ]
65
  );
66
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  }
5
  use WP_REST_Request;
6
  use WP_REST_Response;
7
  use Give\API\RestRoute;
8
+ use Give\Log\Log;
9
 
10
  /**
11
  * @since 2.10.0
56
  [
57
  [
58
  'methods' => 'POST',
59
+ 'callback' => [ $this, 'handleRequestWithDonorIdCheck' ],
60
  'permission_callback' => function() {
61
  return Give()->session->get_session_expiration() !== false;
62
  },
65
  ]
66
  );
67
  }
68
+
69
+ public function handleRequestWithDonorIdCheck( WP_REST_Request $request ) {
70
+
71
+ // Check that the provided donor ID is valid
72
+ if ( ! Give()->donors->get_donor_by( 'id', give()->donorDashboard->getId() ) ) {
73
+ Log::error(
74
+ esc_html__( 'An error occurred while validating donor ID on request.', 'give' ),
75
+ [
76
+ 'source' => 'Donor Dashboard',
77
+ 'Donor ID' => give()->donorDashboard->getId(),
78
+ 'Current User ID' => get_current_user_id(),
79
+ 'Email Access Token' => give()->email_access->token_email,
80
+ 'Session Email' => give()->session->get( 'give_email' ),
81
+ 'Session Expiration' => give()->session->get_session_expiration(),
82
+ 'Error' => __( 'Donor ID coud not be validated for request.', 'give' ),
83
+ ]
84
+ );
85
+
86
+ return new WP_REST_Response(
87
+ [
88
+ 'status' => 400,
89
+ 'response' => 'invalid_donor_id',
90
+ 'body_response' => [
91
+ 'message' => html_entity_decode( esc_html__( 'An error occurred while retrieving your donation records. Contact a site administrator and have them search the logs at Donations > Tools > Logs for a more specific cause of the problem.', 'give' ) ),
92
+ ],
93
+ ]
94
+ );
95
+ }
96
+
97
+ return $this->handleRequest( $request );
98
+
99
+ }
100
  }
src/DonorDashboards/Tabs/DonationHistoryTab/DonationsRoute.php CHANGED
@@ -9,7 +9,7 @@ use Give\DonorDashboards\Tabs\Contracts\Route as RouteAbstract;
9
  use Give\DonorDashboards\Repositories\Donations as DonationsRepository;
10
 
11
  /**
12
- * @unreleased
13
  */
14
  class DonationsRoute extends RouteAbstract {
15
 
@@ -28,7 +28,7 @@ class DonationsRoute extends RouteAbstract {
28
  }
29
 
30
  /**
31
- * @unreleased
32
  *
33
  * @param WP_REST_Request $request
34
  *
@@ -44,7 +44,7 @@ class DonationsRoute extends RouteAbstract {
44
  }
45
 
46
  /**
47
- * @unreleased
48
  *
49
  * @param DonationsRepository $repository
50
  * @param $donorId
@@ -52,6 +52,8 @@ class DonationsRoute extends RouteAbstract {
52
  * @return WP_REST_Response
53
  */
54
  protected function getData( DonationsRepository $repository, $donorId ) {
 
 
55
  try {
56
  $donations = $repository->getDonations( $donorId );
57
  $count = $repository->getDonationCount( $donorId );
@@ -92,7 +94,7 @@ class DonationsRoute extends RouteAbstract {
92
  'status' => 400,
93
  'response' => 'database_error',
94
  'body_response' => [
95
- 'message' => esc_html__( 'An error occurred while retrieving your donation records.', 'give' ),
96
  ],
97
  ]
98
  );
9
  use Give\DonorDashboards\Repositories\Donations as DonationsRepository;
10
 
11
  /**
12
+ * @since 2.10.2
13
  */
14
  class DonationsRoute extends RouteAbstract {
15
 
28
  }
29
 
30
  /**
31
+ * @since 2.10.2
32
  *
33
  * @param WP_REST_Request $request
34
  *
44
  }
45
 
46
  /**
47
+ * @since 2.10.2
48
  *
49
  * @param DonationsRepository $repository
50
  * @param $donorId
52
  * @return WP_REST_Response
53
  */
54
  protected function getData( DonationsRepository $repository, $donorId ) {
55
+
56
+ // If the provided donor ID is valid, attempt to query data
57
  try {
58
  $donations = $repository->getDonations( $donorId );
59
  $count = $repository->getDonationCount( $donorId );
94
  'status' => 400,
95
  'response' => 'database_error',
96
  'body_response' => [
97
+ 'message' => esc_html__( 'An error occurred while retrieving your donation records. Contact the site administrator for assistance.', 'give' ),
98
  ],
99
  ]
100
  );
src/DonorDashboards/resources/js/app/store/actions.js CHANGED
@@ -16,6 +16,16 @@ export const setProfile = ( profile ) => {
16
  };
17
  };
18
 
 
 
 
 
 
 
 
 
 
 
19
  export const setStates = ( states ) => {
20
  return {
21
  type: 'SET_STATES',
16
  };
17
  };
18
 
19
+ export const setError = ( error ) => {
20
+ console.log('set application error!!', error)
21
+ return {
22
+ type: 'SET_ERROR',
23
+ payload: {
24
+ error,
25
+ },
26
+ };
27
+ };
28
+
29
  export const setStates = ( states ) => {
30
  return {
31
  type: 'SET_STATES',
src/DonorDashboards/resources/js/app/tabs/annual-receipts/content.js CHANGED
@@ -12,6 +12,7 @@ import { fetchAnnualReceiptsFromAPI } from './utils';
12
  const Content = () => {
13
  const annualReceipts = useSelector( ( state ) => state.annualReceipts );
14
  const querying = useSelector( ( state ) => state.querying );
 
15
 
16
  const annualReceiptsCount = annualReceipts ? Object.entries( annualReceipts ).length : 0;
17
 
@@ -19,6 +20,19 @@ const Content = () => {
19
  fetchAnnualReceiptsFromAPI();
20
  }, [] );
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  return querying === true && annualReceipts === null ? (
23
  <Fragment>
24
  <Heading>
12
  const Content = () => {
13
  const annualReceipts = useSelector( ( state ) => state.annualReceipts );
14
  const querying = useSelector( ( state ) => state.querying );
15
+ const error = useSelector( ( state ) => state.error );
16
 
17
  const annualReceiptsCount = annualReceipts ? Object.entries( annualReceipts ).length : 0;
18
 
20
  fetchAnnualReceiptsFromAPI();
21
  }, [] );
22
 
23
+ if ( error ) {
24
+ return (
25
+ <Fragment>
26
+ <Heading icon="exclamation-triangle">
27
+ { __( 'Error', 'give' ) }
28
+ </Heading>
29
+ <p style={ { color: '#6b6b6b' } }>
30
+ { error }
31
+ </p>
32
+ </Fragment>
33
+ );
34
+ }
35
+
36
  return querying === true && annualReceipts === null ? (
37
  <Fragment>
38
  <Heading>
src/DonorDashboards/resources/js/app/tabs/annual-receipts/store/actions.js CHANGED
@@ -16,3 +16,12 @@ export const setQuerying = ( querying ) => {
16
  };
17
  };
18
 
 
 
 
 
 
 
 
 
 
16
  };
17
  };
18
 
19
+ export const setError = ( error ) => {
20
+ return {
21
+ type: 'SET_ERROR',
22
+ payload: {
23
+ error,
24
+ },
25
+ };
26
+ };
27
+
src/DonorDashboards/resources/js/app/tabs/annual-receipts/store/initialState.js CHANGED
@@ -1,4 +1,5 @@
1
  export const initialState = {
2
  annualReceipts: null,
3
  querying: false,
 
4
  };
1
  export const initialState = {
2
  annualReceipts: null,
3
  querying: false,
4
+ error: null,
5
  };
src/DonorDashboards/resources/js/app/tabs/annual-receipts/store/reducer.js CHANGED
@@ -12,6 +12,11 @@ export const reducer = ( state = initialState, action ) => {
12
  ...state,
13
  querying: action.payload.querying,
14
  };
 
 
 
 
 
15
  default:
16
  return state;
17
  }
12
  ...state,
13
  querying: action.payload.querying,
14
  };
15
+ case 'SET_ERROR':
16
+ return {
17
+ ...state,
18
+ error: action.payload.error,
19
+ }
20
  default:
21
  return state;
22
  }
src/DonorDashboards/resources/js/app/tabs/annual-receipts/utils/index.js CHANGED
@@ -1,7 +1,7 @@
1
  import axios from 'axios';
2
  import { store } from '../store';
3
  import { getAPIRoot, isLoggedIn } from '../../../utils';
4
- import { setAnnualReceipts, setQuerying } from '../store/actions';
5
 
6
  export const fetchAnnualReceiptsFromAPI = () => {
7
 
@@ -14,9 +14,15 @@ export const fetchAnnualReceiptsFromAPI = () => {
14
  {} )
15
  .then( ( response ) => response.data )
16
  .then( ( data ) => {
 
17
  const { receipts } = data;
18
  dispatch( setAnnualReceipts( receipts ) );
19
  dispatch( setQuerying( false ) );
 
 
 
 
 
20
  } )
21
  .catch( () => {
22
  dispatch( setQuerying( false ) );
1
  import axios from 'axios';
2
  import { store } from '../store';
3
  import { getAPIRoot, isLoggedIn } from '../../../utils';
4
+ import { setAnnualReceipts, setQuerying, setError } from '../store/actions';
5
 
6
  export const fetchAnnualReceiptsFromAPI = () => {
7
 
14
  {} )
15
  .then( ( response ) => response.data )
16
  .then( ( data ) => {
17
+
18
  const { receipts } = data;
19
  dispatch( setAnnualReceipts( receipts ) );
20
  dispatch( setQuerying( false ) );
21
+
22
+ if ( data.status === 400 ) {
23
+ dispatch( setError( data.body_response.message ) );
24
+ }
25
+
26
  } )
27
  .catch( () => {
28
  dispatch( setQuerying( false ) );
src/DonorDashboards/resources/js/app/tabs/donation-history/content.js CHANGED
@@ -39,9 +39,6 @@ const Content = () => {
39
  <p style={ { color: '#6b6b6b' } }>
40
  { error }
41
  </p>
42
- <p style={ { color: '#6b6b6b' } }>
43
- { __( 'Contact a site administrator and have them search the logs at Donations > Tools > Logs for a more specific cause of the problem.', 'give' ) }
44
- </p>
45
  </Fragment>
46
  );
47
  }
39
  <p style={ { color: '#6b6b6b' } }>
40
  { error }
41
  </p>
 
 
 
42
  </Fragment>
43
  );
44
  }
src/DonorDashboards/resources/js/app/tabs/donation-history/dashboard-content.js CHANGED
@@ -33,9 +33,6 @@ const DashboardContent = () => {
33
  <p style={ { color: '#6b6b6b' } }>
34
  { error }
35
  </p>
36
- <p style={ { color: '#6b6b6b' } }>
37
- { __( 'Contact a site administrator and have them search the logs at Donations > Tools > Logs for a more specific cause of the problem.', 'give' ) }
38
- </p>
39
  </Fragment>
40
  );
41
  }
33
  <p style={ { color: '#6b6b6b' } }>
34
  { error }
35
  </p>
 
 
 
36
  </Fragment>
37
  );
38
  }
src/DonorDashboards/resources/js/app/tabs/recurring-donations/content.js CHANGED
@@ -19,6 +19,7 @@ import './style.scss';
19
  const Content = () => {
20
  const subscriptions = useSelector( ( state ) => state.subscriptions );
21
  const querying = useSelector( ( state ) => state.querying );
 
22
 
23
  const location = useLocation();
24
  const route = location ? location.pathname.split( '/' )[ 2 ] : null;
@@ -32,6 +33,19 @@ const Content = () => {
32
  return null;
33
  };
34
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  if ( id ) {
36
  switch ( route ) {
37
  case 'receipt' : {
@@ -91,20 +105,26 @@ const Content = () => {
91
  }
92
  }
93
 
94
- return querying && subscriptions === null ? (
95
- <Fragment>
96
  <Heading>
97
  { __( 'Loading...', 'give' ) }
98
  </Heading>
99
  <SubscriptionTable />
100
  </Fragment>
101
- ) : (
102
- <Fragment>
103
  <Heading>
104
  { `${ Object.entries( subscriptions ).length } ${ __( 'Total Subscriptions', 'give' ) }` }
105
  </Heading>
106
  <SubscriptionTable subscriptions={ subscriptions } perPage={ 5 } />
107
  </Fragment>
108
- );
 
 
 
 
 
 
109
  };
110
  export default Content;
19
  const Content = () => {
20
  const subscriptions = useSelector( ( state ) => state.subscriptions );
21
  const querying = useSelector( ( state ) => state.querying );
22
+ const error = useSelector( ( state ) => state.error );
23
 
24
  const location = useLocation();
25
  const route = location ? location.pathname.split( '/' )[ 2 ] : null;
33
  return null;
34
  };
35
 
36
+ if ( error ) {
37
+ return (
38
+ <Fragment>
39
+ <Heading icon="exclamation-triangle">
40
+ { __( 'Error', 'give' ) }
41
+ </Heading>
42
+ <p style={ { color: '#6b6b6b' } }>
43
+ { error }
44
+ </p>
45
+ </Fragment>
46
+ );
47
+ }
48
+
49
  if ( id ) {
50
  switch ( route ) {
51
  case 'receipt' : {
105
  }
106
  }
107
 
108
+ if ( querying && !subscriptions ) {
109
+ return <Fragment>
110
  <Heading>
111
  { __( 'Loading...', 'give' ) }
112
  </Heading>
113
  <SubscriptionTable />
114
  </Fragment>
115
+ } else if ( subscriptions ) {
116
+ return <Fragment>
117
  <Heading>
118
  { `${ Object.entries( subscriptions ).length } ${ __( 'Total Subscriptions', 'give' ) }` }
119
  </Heading>
120
  <SubscriptionTable subscriptions={ subscriptions } perPage={ 5 } />
121
  </Fragment>
122
+ } else {
123
+ return <Fragment>
124
+ <Heading icon="exclamation-triangle">
125
+ { __( 'No Subscriptions', 'give' ) }
126
+ </Heading>
127
+ </Fragment>
128
+ }
129
  };
130
  export default Content;
src/DonorDashboards/resources/js/app/tabs/recurring-donations/store/actions.js CHANGED
@@ -15,3 +15,12 @@ export const setQuerying = ( querying ) => {
15
  },
16
  };
17
  };
 
 
 
 
 
 
 
 
 
15
  },
16
  };
17
  };
18
+
19
+ export const setError = ( error ) => {
20
+ return {
21
+ type: 'SET_ERROR',
22
+ payload: {
23
+ error,
24
+ },
25
+ };
26
+ };
src/DonorDashboards/resources/js/app/tabs/recurring-donations/store/initialState.js CHANGED
@@ -1,4 +1,5 @@
1
  export const initialState = {
2
  subscriptions: null,
3
  querying: false,
 
4
  };
1
  export const initialState = {
2
  subscriptions: null,
3
  querying: false,
4
+ error: null,
5
  };
src/DonorDashboards/resources/js/app/tabs/recurring-donations/store/reducer.js CHANGED
@@ -12,6 +12,11 @@ export const reducer = ( state = initialState, action ) => {
12
  ...state,
13
  querying: action.payload.querying,
14
  };
 
 
 
 
 
15
  default:
16
  return state;
17
  }
12
  ...state,
13
  querying: action.payload.querying,
14
  };
15
+ case 'SET_ERROR':
16
+ return {
17
+ ...state,
18
+ error: action.payload.error,
19
+ };
20
  default:
21
  return state;
22
  }
src/DonorDashboards/resources/js/app/tabs/recurring-donations/utils/index.js CHANGED
@@ -1,7 +1,7 @@
1
  import axios from 'axios';
2
  import { store } from '../store';
3
  import { getAPIRoot, isLoggedIn } from '../../../utils';
4
- import { setSubscriptions, setQuerying } from '../store/actions';
5
 
6
  export const fetchSubscriptionsDataFromAPI = () => {
7
  const { dispatch } = store;
@@ -15,6 +15,11 @@ export const fetchSubscriptionsDataFromAPI = () => {
15
  .then( ( data ) => {
16
  dispatch( setSubscriptions( data.subscriptions ) );
17
  dispatch( setQuerying( false ) );
 
 
 
 
 
18
  return data;
19
  } )
20
  .catch( () => {
1
  import axios from 'axios';
2
  import { store } from '../store';
3
  import { getAPIRoot, isLoggedIn } from '../../../utils';
4
+ import { setSubscriptions, setQuerying, setError } from '../store/actions';
5
 
6
  export const fetchSubscriptionsDataFromAPI = () => {
7
  const { dispatch } = store;
15
  .then( ( data ) => {
16
  dispatch( setSubscriptions( data.subscriptions ) );
17
  dispatch( setQuerying( false ) );
18
+
19
+ if ( data.status === 400 ) {
20
+ dispatch( setError( data.body_response.message ) );
21
+ }
22
+
23
  return data;
24
  } )
25
  .catch( () => {
src/Form/LegacyConsumer/Commands/DeprecateOldTemplateHook.php CHANGED
@@ -5,11 +5,11 @@ namespace Give\Form\LegacyConsumer\Commands;
5
  use Give\Form\LegacyConsumer\FilterCallbackCollection;
6
 
7
  /**
8
- * @unreleased
9
  */
10
  class DeprecateOldTemplateHook implements HookCommandInterface {
11
  /**
12
- * @unreleased
13
  *
14
  * @param string $hook
15
  *
5
  use Give\Form\LegacyConsumer\FilterCallbackCollection;
6
 
7
  /**
8
+ * @since 2.10.2
9
  */
10
  class DeprecateOldTemplateHook implements HookCommandInterface {
11
  /**
12
+ * @since 2.10.2
13
  *
14
  * @param string $hook
15
  *
src/Form/LegacyConsumer/Commands/HookCommandInterface.php CHANGED
@@ -3,11 +3,11 @@
3
  namespace Give\Form\LegacyConsumer\Commands;
4
 
5
  /**
6
- * @unreleased
7
  */
8
  interface HookCommandInterface {
9
  /**
10
- * @unreleased
11
  *
12
  * @param string $hook
13
  */
3
  namespace Give\Form\LegacyConsumer\Commands;
4
 
5
  /**
6
+ * @since 2.10.2
7
  */
8
  interface HookCommandInterface {
9
  /**
10
+ * @since 2.10.2
11
  *
12
  * @param string $hook
13
  */
src/Form/LegacyConsumer/Commands/SetupFieldConfirmation.php CHANGED
@@ -6,12 +6,12 @@ use Give\Framework\FieldsAPI\FormField;
6
  use Give\Framework\FieldsAPI\FieldCollection;
7
 
8
  /**
9
- * @unreleased
10
  */
11
  class SetupFieldConfirmation {
12
 
13
  /**
14
- * @unreleased
15
  *
16
  * @param Donation $payment
17
  * @param array $receiptArgs
@@ -22,7 +22,7 @@ class SetupFieldConfirmation {
22
  }
23
 
24
  /**
25
- * @unreleased
26
  *
27
  * @param string $hook
28
  *
@@ -39,7 +39,7 @@ class SetupFieldConfirmation {
39
  }
40
 
41
  /**
42
- * @unreleased
43
  *
44
  * @param FormField $field
45
  *
6
  use Give\Framework\FieldsAPI\FieldCollection;
7
 
8
  /**
9
+ * @since 2.10.2
10
  */
11
  class SetupFieldConfirmation {
12
 
13
  /**
14
+ * @since 2.10.2
15
  *
16
  * @param Donation $payment
17
  * @param array $receiptArgs
22
  }
23
 
24
  /**
25
+ * @since 2.10.2
26
  *
27
  * @param string $hook
28
  *
39
  }
40
 
41
  /**
42
+ * @since 2.10.2
43
  *
44
  * @param FormField $field
45
  *
src/Form/LegacyConsumer/Commands/SetupFieldEmailTag.php CHANGED
@@ -7,13 +7,13 @@ use Give\Framework\FieldsAPI\FieldCollection;
7
  use Give\Form\LegacyConsumer\FieldView;
8
 
9
  /**
10
- * @unreleased
11
  */
12
  class SetupFieldEmailTag {
13
 
14
 
15
  /**
16
- * @unreleased
17
  *
18
  * @param string $hook
19
  *
@@ -27,7 +27,7 @@ class SetupFieldEmailTag {
27
  }
28
 
29
  /**
30
- * @unreleased
31
  *
32
  * @param FormField $field
33
  *
7
  use Give\Form\LegacyConsumer\FieldView;
8
 
9
  /**
10
+ * @since 2.10.2
11
  */
12
  class SetupFieldEmailTag {
13
 
14
 
15
  /**
16
+ * @since 2.10.2
17
  *
18
  * @param string $hook
19
  *
27
  }
28
 
29
  /**
30
+ * @since 2.10.2
31
  *
32
  * @param FormField $field
33
  *
src/Form/LegacyConsumer/Commands/SetupFieldPersistance.php CHANGED
@@ -9,12 +9,12 @@ use Give\Form\LegacyConsumer\FieldView;
9
  /**
10
  * Persist custom field values as donation meta.
11
  *
12
- * @unreleased
13
  */
14
  class SetupFieldPersistance implements HookCommandInterface {
15
 
16
  /**
17
- * @unreleased
18
  *
19
  * @param int $donationID
20
  * @param array $donationID
@@ -25,7 +25,7 @@ class SetupFieldPersistance implements HookCommandInterface {
25
  }
26
 
27
  /**
28
- * @unreleased
29
  *
30
  * @param string $hook
31
  */
@@ -36,7 +36,7 @@ class SetupFieldPersistance implements HookCommandInterface {
36
  }
37
 
38
  /**
39
- * @unreleased
40
  *
41
  * @param FormField $field
42
  *
9
  /**
10
  * Persist custom field values as donation meta.
11
  *
12
+ * @since 2.10.2
13
  */
14
  class SetupFieldPersistance implements HookCommandInterface {
15
 
16
  /**
17
+ * @since 2.10.2
18
  *
19
  * @param int $donationID
20
  * @param array $donationID
25
  }
26
 
27
  /**
28
+ * @since 2.10.2
29
  *
30
  * @param string $hook
31
  */
36
  }
37
 
38
  /**
39
+ * @since 2.10.2
40
  *
41
  * @param FormField $field
42
  *
src/Form/LegacyConsumer/Commands/SetupFieldReceipt.php CHANGED
@@ -8,12 +8,12 @@ use Give\Framework\FieldsAPI\FieldCollection;
8
  use Give\Form\LegacyConsumer\FieldView;
9
 
10
  /**
11
- * @unreleased
12
  */
13
  class SetupFieldReceipt {
14
 
15
  /**
16
- * @unreleased
17
  *
18
  * @param DonationReceipt $receipt
19
  */
@@ -23,7 +23,7 @@ class SetupFieldReceipt {
23
 
24
 
25
  /**
26
- * @unreleased
27
  *
28
  * @param string $hook
29
  *
@@ -40,7 +40,7 @@ class SetupFieldReceipt {
40
  }
41
 
42
  /**
43
- * @unreleased
44
  *
45
  * @param FormField $field
46
  *
@@ -60,7 +60,7 @@ class SetupFieldReceipt {
60
  }
61
 
62
  /**
63
- * @unreleased
64
  *
65
  * @param FormField $field
66
  *
@@ -82,7 +82,7 @@ class SetupFieldReceipt {
82
  }
83
 
84
  /**
85
- * @unreleased
86
  *
87
  * @param FormField $field
88
  *
8
  use Give\Form\LegacyConsumer\FieldView;
9
 
10
  /**
11
+ * @since 2.10.2
12
  */
13
  class SetupFieldReceipt {
14
 
15
  /**
16
+ * @since 2.10.2
17
  *
18
  * @param DonationReceipt $receipt
19
  */
23
 
24
 
25
  /**
26
+ * @since 2.10.2
27
  *
28
  * @param string $hook
29
  *
40
  }
41
 
42
  /**
43
+ * @since 2.10.2
44
  *
45
  * @param FormField $field
46
  *
60
  }
61
 
62
  /**
63
+ * @since 2.10.2
64
  *
65
  * @param FormField $field
66
  *
82
  }
83
 
84
  /**
85
+ * @since 2.10.2
86
  *
87
  * @param FormField $field
88
  *
src/Form/LegacyConsumer/Commands/SetupFieldValidation.php CHANGED
@@ -9,12 +9,12 @@ use Give\Framework\FieldsAPI\FieldCollection;
9
  *
10
  * @NOTE This is reducing on required fields, so it doesn't implement the shared interface. This is a special case.
11
  *
12
- * @unreleased
13
  */
14
  class SetupFieldValidation {
15
 
16
  /**
17
- * @unreleased
18
  *
19
  * @param int $formID
20
  */
@@ -23,7 +23,7 @@ class SetupFieldValidation {
23
  }
24
 
25
  /**
26
- * @unreleased
27
  *
28
  * @param array $requiredFields
29
  * @param string $hook
9
  *
10
  * @NOTE This is reducing on required fields, so it doesn't implement the shared interface. This is a special case.
11
  *
12
+ * @since 2.10.2
13
  */
14
  class SetupFieldValidation {
15
 
16
  /**
17
+ * @since 2.10.2
18
  *
19
  * @param int $formID
20
  */
23
  }
24
 
25
  /**
26
+ * @since 2.10.2
27
  *
28
  * @param array $requiredFields
29
  * @param string $hook
src/Form/LegacyConsumer/Commands/SetupNewTemplateHook.php CHANGED
@@ -6,12 +6,12 @@ use Give\Framework\FieldsAPI\FieldCollection;
6
  use Give\Form\LegacyConsumer\FieldView;
7
 
8
  /**
9
- * @unreleased
10
  */
11
  class SetupNewTemplateHook implements HookCommandInterface {
12
 
13
  /**
14
- * @unreleased
15
  *
16
  * @param string $hook
17
  *
6
  use Give\Form\LegacyConsumer\FieldView;
7
 
8
  /**
9
+ * @since 2.10.2
10
  */
11
  class SetupNewTemplateHook implements HookCommandInterface {
12
 
13
  /**
14
+ * @since 2.10.2
15
  *
16
  * @param string $hook
17
  *
src/Form/LegacyConsumer/Commands/SetupPaymentDetailsDisplay.php CHANGED
@@ -7,12 +7,12 @@ use Give\Framework\FieldsAPI\FieldCollection;
7
  use Give\Form\LegacyConsumer\FieldView;
8
 
9
  /**
10
- * @unreleased
11
  */
12
  class SetupPaymentDetailsDisplay {
13
 
14
  /**
15
- * @unreleased
16
  *
17
  * @param int $donationID
18
  */
@@ -22,7 +22,7 @@ class SetupPaymentDetailsDisplay {
22
 
23
 
24
  /**
25
- * @unreleased
26
  *
27
  * @param string $hook
28
  *
@@ -37,7 +37,7 @@ class SetupPaymentDetailsDisplay {
37
  }
38
 
39
  /**
40
- * @unreleased
41
  *
42
  * @param FormField $field
43
  *
@@ -52,8 +52,8 @@ class SetupPaymentDetailsDisplay {
52
  <h3 class="hndle">
53
  <?php echo $field->getLabel(); ?>
54
  </h3>
55
- <div class="inside">
56
- <p>
57
  <?php echo give_get_meta( $this->donationID, $field->getName(), true ); ?>
58
  </p>
59
  </div>
7
  use Give\Form\LegacyConsumer\FieldView;
8
 
9
  /**
10
+ * @since 2.10.2
11
  */
12
  class SetupPaymentDetailsDisplay {
13
 
14
  /**
15
+ * @since 2.10.2
16
  *
17
  * @param int $donationID
18
  */
22
 
23
 
24
  /**
25
+ * @since 2.10.2
26
  *
27
  * @param string $hook
28
  *
37
  }
38
 
39
  /**
40
+ * @since 2.10.2
41
  *
42
  * @param FormField $field
43
  *
52
  <h3 class="hndle">
53
  <?php echo $field->getLabel(); ?>
54
  </h3>
55
+ <div class="inside">
56
+ <p>
57
  <?php echo give_get_meta( $this->donationID, $field->getName(), true ); ?>
58
  </p>
59
  </div>
src/Form/LegacyConsumer/FieldView.php CHANGED
@@ -5,12 +5,12 @@ namespace Give\Form\LegacyConsumer;
5
  use Give\Framework\FieldsAPI\FormField;
6
 
7
  /**
8
- * @unreleased
9
  */
10
  class FieldView {
11
 
12
  /**
13
- * @unreleased
14
  *
15
  * @param FormField $field
16
  *
@@ -26,7 +26,7 @@ class FieldView {
26
  }
27
 
28
  /**
29
- * @unreleased
30
  *
31
  * @param string $html
32
  * @param FormField $field
5
  use Give\Framework\FieldsAPI\FormField;
6
 
7
  /**
8
+ * @since 2.10.2
9
  */
10
  class FieldView {
11
 
12
  /**
13
+ * @since 2.10.2
14
  *
15
  * @param FormField $field
16
  *
26
  }
27
 
28
  /**
29
+ * @since 2.10.2
30
  *
31
  * @param string $html
32
  * @param FormField $field
src/Framework/FieldsAPI/FieldCollection.php CHANGED
@@ -6,7 +6,7 @@ use Give\Framework\FieldsAPI\FieldCollection\Contract\Node;
6
  use Give\Framework\FieldsAPI\FieldCollection\Contract\GroupNode;
7
 
8
  /**
9
- * @unreleased
10
  */
11
  class FieldCollection implements GroupNode {
12
 
6
  use Give\Framework\FieldsAPI\FieldCollection\Contract\GroupNode;
7
 
8
  /**
9
+ * @since 2.10.2
10
  */
11
  class FieldCollection implements GroupNode {
12
 
src/Framework/FieldsAPI/FieldCollection/Exception/NameCollisionException.php CHANGED
@@ -3,7 +3,7 @@
3
  namespace Give\Framework\FieldsAPI\FieldCollection\Exception;
4
 
5
  /**
6
- * @unreleased
7
  */
8
  class NameCollisionException extends \Exception {
9
  public function __construct( $name, $code = 0, Exception $previous = null ) {
3
  namespace Give\Framework\FieldsAPI\FieldCollection\Exception;
4
 
5
  /**
6
+ * @since 2.10.2
7
  */
8
  class NameCollisionException extends \Exception {
9
  public function __construct( $name, $code = 0, Exception $previous = null ) {
src/Framework/FieldsAPI/FieldCollection/Exception/ReferenceNodeNotFoundException.php CHANGED
@@ -3,7 +3,7 @@
3
  namespace Give\Framework\FieldsAPI\FieldCollection\Exception;
4
 
5
  /**
6
- * @unreleased
7
  */
8
  class ReferenceNodeNotFoundException extends \Exception {
9
  public function __construct( $name, $code = 0, Exception $previous = null ) {
3
  namespace Give\Framework\FieldsAPI\FieldCollection\Exception;
4
 
5
  /**
6
+ * @since 2.10.2
7
  */
8
  class ReferenceNodeNotFoundException extends \Exception {
9
  public function __construct( $name, $code = 0, Exception $previous = null ) {
src/Framework/FieldsAPI/FieldCollection/InsertNode.php CHANGED
@@ -7,12 +7,12 @@ use Give\Framework\FieldsAPI\FieldCollection\Contract\GroupNode;
7
  use Give\Framework\FieldsAPI\FieldCollection\Exception\ReferenceNodeNotFoundException;
8
 
9
  /**
10
- * @unreleased
11
  */
12
  trait InsertNode {
13
 
14
  /**
15
- * @unreleased
16
  *
17
  * @param string $siblingName
18
  * @param Node $node
@@ -26,7 +26,7 @@ trait InsertNode {
26
  }
27
 
28
  /**
29
- * @unreleased
30
  *
31
  * @param string $siblingName
32
  * @param Node $node
@@ -55,7 +55,7 @@ trait InsertNode {
55
  }
56
 
57
  /**
58
- * @unreleased
59
  *
60
  * @param string $siblingName
61
  * @param Node $node
@@ -69,7 +69,7 @@ trait InsertNode {
69
  }
70
 
71
  /**
72
- * @unreleased
73
  *
74
  * @param string $siblingName
75
  * @param Node $node
@@ -98,7 +98,7 @@ trait InsertNode {
98
  }
99
 
100
  /**
101
- * @unreleased
102
  */
103
  protected function insertAtIndex( $index, $node ) {
104
  array_splice( $this->nodes, $index, 0, [ $node ] );
7
  use Give\Framework\FieldsAPI\FieldCollection\Exception\ReferenceNodeNotFoundException;
8
 
9
  /**
10
+ * @since 2.10.2
11
  */
12
  trait InsertNode {
13
 
14
  /**
15
+ * @since 2.10.2
16
  *
17
  * @param string $siblingName
18
  * @param Node $node
26
  }
27
 
28
  /**
29
+ * @since 2.10.2
30
  *
31
  * @param string $siblingName
32
  * @param Node $node
55
  }
56
 
57
  /**
58
+ * @since 2.10.2
59
  *
60
  * @param string $siblingName
61
  * @param Node $node
69
  }
70
 
71
  /**
72
+ * @since 2.10.2
73
  *
74
  * @param string $siblingName
75
  * @param Node $node
98
  }
99
 
100
  /**
101
+ * @since 2.10.2
102
  */
103
  protected function insertAtIndex( $index, $node ) {
104
  array_splice( $this->nodes, $index, 0, [ $node ] );
src/Framework/FieldsAPI/FieldCollection/NameCollision.php CHANGED
@@ -6,7 +6,7 @@ use Give\Framework\FieldsAPI\FieldCollection\Contract\GroupNode;
6
  use Give\Framework\FieldsAPI\FieldCollection\Exception\NameCollisionException;
7
 
8
  /**
9
- * @unreleased
10
  */
11
  trait NameCollision {
12
 
6
  use Give\Framework\FieldsAPI\FieldCollection\Exception\NameCollisionException;
7
 
8
  /**
9
+ * @since 2.10.2
10
  */
11
  trait NameCollision {
12
 
src/Framework/FieldsAPI/FormField/FieldAttributes.php CHANGED
@@ -3,18 +3,18 @@
3
  namespace Give\Framework\FieldsAPI\FormField;
4
 
5
  /**
6
- * @unreleased
7
  */
8
  trait FieldAttributes {
9
 
10
  /**
11
- * @unreleased
12
  * @var array
13
  */
14
  protected $attributes = [];
15
 
16
  /**
17
- * @unreleased
18
  * @param array $attributes
19
  * @return $this
20
  */
@@ -24,7 +24,7 @@ trait FieldAttributes {
24
  }
25
 
26
  /**
27
- * @unreleased
28
  * @return array
29
  */
30
  public function getAttributes() {
3
  namespace Give\Framework\FieldsAPI\FormField;
4
 
5
  /**
6
+ * @since 2.10.2
7
  */
8
  trait FieldAttributes {
9
 
10
  /**
11
+ * @since 2.10.2
12
  * @var array
13
  */
14
  protected $attributes = [];
15
 
16
  /**
17
+ * @since 2.10.2
18
  * @param array $attributes
19
  * @return $this
20
  */
24
  }
25
 
26
  /**
27
+ * @since 2.10.2
28
  * @return array
29
  */
30
  public function getAttributes() {
src/Framework/FieldsAPI/FormField/FieldReceipt.php CHANGED
@@ -3,18 +3,18 @@
3
  namespace Give\Framework\FieldsAPI\FormField;
4
 
5
  /**
6
- * @unreleased
7
  */
8
  trait FieldReceipt {
9
 
10
  /**
11
- * @unreleased
12
  * @var bool
13
  */
14
  protected $showInReceipt = false;
15
 
16
  /**
17
- * @unreleased
18
  * @return $this
19
  */
20
  public function showInReceipt( $showInReceipt = true ) {
@@ -23,7 +23,7 @@ trait FieldReceipt {
23
  }
24
 
25
  /**
26
- * @unreleased
27
  * @return bool
28
  */
29
  public function shouldShowInReceipt() {
3
  namespace Give\Framework\FieldsAPI\FormField;
4
 
5
  /**
6
+ * @since 2.10.2
7
  */
8
  trait FieldReceipt {
9
 
10
  /**
11
+ * @since 2.10.2
12
  * @var bool
13
  */
14
  protected $showInReceipt = false;
15
 
16
  /**
17
+ * @since 2.10.2
18
  * @return $this
19
  */
20
  public function showInReceipt( $showInReceipt = true ) {
23
  }
24
 
25
  /**
26
+ * @since 2.10.2
27
  * @return bool
28
  */
29
  public function shouldShowInReceipt() {
src/Framework/FieldsAPI/FormField/FieldStoreAsMeta.php CHANGED
@@ -3,18 +3,18 @@
3
  namespace Give\Framework\FieldsAPI\FormField;
4
 
5
  /**
6
- * @unreleased
7
  */
8
  trait FieldStoreAsMeta {
9
 
10
  /**
11
- * @unreleased
12
  * @var bool
13
  */
14
  protected $storeAsDonorMeta = false;
15
 
16
  /**
17
- * @unreleased
18
  * @return $this
19
  */
20
  public function storeAsDonorMeta( $storeAsDonorMeta = true ) {
@@ -23,7 +23,7 @@ trait FieldStoreAsMeta {
23
  }
24
 
25
  /**
26
- * @unreleased
27
  * @return bool
28
  */
29
  public function shouldStoreAsDonorMeta() {
3
  namespace Give\Framework\FieldsAPI\FormField;
4
 
5
  /**
6
+ * @since 2.10.2
7
  */
8
  trait FieldStoreAsMeta {
9
 
10
  /**
11
+ * @since 2.10.2
12
  * @var bool
13
  */
14
  protected $storeAsDonorMeta = false;
15
 
16
  /**
17
+ * @since 2.10.2
18
  * @return $this
19
  */
20
  public function storeAsDonorMeta( $storeAsDonorMeta = true ) {
23
  }
24
 
25
  /**
26
+ * @since 2.10.2
27
  * @return bool
28
  */
29
  public function shouldStoreAsDonorMeta() {
src/Log/Helpers/LegacyLogsTable.php CHANGED
@@ -8,7 +8,7 @@ use Give\Framework\Database\DB;
8
  * Class LogsLegacyTable
9
  * @package Give\Log\Helpers
10
  *
11
- * @unreleased
12
  */
13
  class LegacyLogsTable {
14
  /**
8
  * Class LogsLegacyTable
9
  * @package Give\Log\Helpers
10
  *
11
+ * @since 2.10.2
12
  */
13
  class LegacyLogsTable {
14
  /**
src/Log/Log.php CHANGED
@@ -12,6 +12,45 @@ use Exception;
12
  * @package Give\Log
13
  * @since 2.10.0
14
  *
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  * @method static error( string $message, array $context = [] )
16
  * @method static warning( string $message, array $context = [] )
17
  * @method static notice( string $message, array $context = [] )
@@ -66,7 +105,10 @@ class Log {
66
  $data['type'] = $type;
67
 
68
  try {
69
- LogFactory::makeFromArray( $data )->save();
 
 
 
70
  } catch ( Exception $exception ) {
71
  error_log( $exception->getMessage() );
72
  }
12
  * @package Give\Log
13
  * @since 2.10.0
14
  *
15
+ * @note There are two special keywords used in the context that are representing category and source.
16
+ * The default value for the Category is "Core" and for the source is "Give Core"
17
+ * If you want to change the category and/or source, you should provide them as context attributes.
18
+ * Source and category attributes should be written lowercase.
19
+ *
20
+ * @example
21
+ *
22
+ * Log::error( 'Error message', [
23
+ * 'category' => 'Payment',
24
+ * 'source' => 'Stripe add-on'
25
+ * ] );
26
+ *
27
+ * @note Use as many contexts attributes as you need. The more the better.
28
+ *
29
+ * @example
30
+ *
31
+ * Log::error( 'Error message', [
32
+ * 'category' => 'Payment',
33
+ * 'source' => 'Stripe add-on',
34
+ * 'donation_id' => $donationId,
35
+ * 'donor_id' => $donorId
36
+ * ] );
37
+ *
38
+ * @note You can use an array or object as a context attribute value.
39
+ *
40
+ * @example
41
+ *
42
+ * try {
43
+ * something();
44
+ * } catch ( Exception $exception ) {
45
+ * Log::error( 'Something went wrong', [
46
+ * 'exception' => $exception,
47
+ * 'additional_info' => [
48
+ * 'donation_id' => $donationId
49
+ * ]
50
+ * ] );
51
+ * }
52
+ *
53
+ *
54
  * @method static error( string $message, array $context = [] )
55
  * @method static warning( string $message, array $context = [] )
56
  * @method static notice( string $message, array $context = [] )
105
  $data['type'] = $type;
106
 
107
  try {
108
+ $log = LogFactory::makeFromArray( $data );
109
+ $log->save();
110
+
111
+ return $log;
112
  } catch ( Exception $exception ) {
113
  error_log( $exception->getMessage() );
114
  }
src/Log/LogFactory.php CHANGED
@@ -64,7 +64,7 @@ class LogFactory {
64
  'source' => esc_html__( 'Give Core', 'give' ),
65
  'context' => [],
66
  'id' => null,
67
- 'date' => null,
68
  ];
69
  }
70
  }
64
  'source' => esc_html__( 'Give Core', 'give' ),
65
  'context' => [],
66
  'id' => null,
67
+ 'date' => date( 'Y-m-d H:i:s' ),
68
  ];
69
  }
70
  }
src/Log/LogModel.php CHANGED
@@ -2,6 +2,7 @@
2
 
3
  namespace Give\Log;
4
 
 
5
  use Give\Log\ValueObjects\LogType;
6
 
7
  /**
@@ -49,7 +50,7 @@ class LogModel {
49
  private $id;
50
 
51
  /**
52
- * @var string|null
53
  */
54
  private $date;
55
 
@@ -62,16 +63,16 @@ class LogModel {
62
  * @param string $source
63
  * @param array $context
64
  * @param int|null $logId
65
- * @param string|null $date
66
  */
67
  public function __construct( $type, $message, $category, $source, $context, $logId, $date ) {
68
  $this->setType( $type );
 
69
  $this->category = $category;
70
  $this->source = $source;
71
  $this->context = $context;
72
  $this->message = $message;
73
  $this->id = $logId;
74
- $this->date = $date;
75
  }
76
 
77
  /**
@@ -98,6 +99,17 @@ class LogModel {
98
  : $message;
99
  }
100
 
 
 
 
 
 
 
 
 
 
 
 
101
  /**
102
  * Set log source
103
  * If not defined, fallback to default value
@@ -110,6 +122,19 @@ class LogModel {
110
  : $source;
111
  }
112
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
  /**
114
  * @return int
115
  */
@@ -233,6 +258,7 @@ class LogModel {
233
  $repository = give( LogRepository::class );
234
 
235
  if ( $this->getId() ) {
 
236
  $repository->updateLog( $this );
237
  } else {
238
  $this->id = $repository->insertLog( $this );
2
 
3
  namespace Give\Log;
4
 
5
+ use DateTime;
6
  use Give\Log\ValueObjects\LogType;
7
 
8
  /**
50
  private $id;
51
 
52
  /**
53
+ * @var string
54
  */
55
  private $date;
56
 
63
  * @param string $source
64
  * @param array $context
65
  * @param int|null $logId
66
+ * @param string $date
67
  */
68
  public function __construct( $type, $message, $category, $source, $context, $logId, $date ) {
69
  $this->setType( $type );
70
+ $this->setDate( $date );
71
  $this->category = $category;
72
  $this->source = $source;
73
  $this->context = $context;
74
  $this->message = $message;
75
  $this->id = $logId;
 
76
  }
77
 
78
  /**
99
  : $message;
100
  }
101
 
102
+ /**
103
+ * Set log date
104
+ *
105
+ * @param string $date
106
+ */
107
+ private function setDate( $date ) {
108
+ $this->date = $this->isValidateDate( $date )
109
+ ? $date
110
+ : date( 'Y-m-d H:i:s' );
111
+ }
112
+
113
  /**
114
  * Set log source
115
  * If not defined, fallback to default value
122
  : $source;
123
  }
124
 
125
+ /**
126
+ * Helper method to check if given string is a valid date
127
+ *
128
+ * @param string $date
129
+ * @param string $format
130
+ *
131
+ * @return bool
132
+ */
133
+ public function isValidateDate( $date, $format = 'Y-m-d H:i:s' ) {
134
+ $dateTime = DateTime::createFromFormat( $format, $date );
135
+ return $dateTime && $dateTime->format( $format ) === $date;
136
+ }
137
+
138
  /**
139
  * @return int
140
  */
258
  $repository = give( LogRepository::class );
259
 
260
  if ( $this->getId() ) {
261
+ $this->date = date( 'Y-m-d H:i:s' );
262
  $repository->updateLog( $this );
263
  } else {
264
  $this->id = $repository->insertLog( $this );
src/Log/LogRepository.php CHANGED
@@ -47,6 +47,7 @@ class LogRepository {
47
  'data' => $model->getData( $jsonEncode = true ),
48
  'category' => $model->getCategory(),
49
  'source' => $model->getSource(),
 
50
  ],
51
  null
52
  );
@@ -69,7 +70,7 @@ class LogRepository {
69
  'data' => $model->getData( $jsonEncode = true ),
70
  'category' => $model->getCategory(),
71
  'source' => $model->getSource(),
72
- 'date' => date( 'Y-m-d H:i:s' ),
73
  ],
74
  [
75
  'id' => $model->getId(),
47
  'data' => $model->getData( $jsonEncode = true ),
48
  'category' => $model->getCategory(),
49
  'source' => $model->getSource(),
50
+ 'date' => $model->getDate(),
51
  ],
52
  null
53
  );
70
  'data' => $model->getData( $jsonEncode = true ),
71
  'category' => $model->getCategory(),
72
  'source' => $model->getSource(),
73
+ 'date' => $model->getDate(),
74
  ],
75
  [
76
  'id' => $model->getId(),
src/Log/Migrations/CreateNewLogTable.php CHANGED
@@ -27,7 +27,7 @@ class CreateNewLogTable extends Migration {
27
  * @return string
28
  */
29
  public static function title() {
30
- return esc_html__( 'Create new give_log table' );
31
  }
32
 
33
  /**
@@ -50,7 +50,7 @@ class CreateNewLogTable extends Migration {
50
  data text NOT NULL,
51
  category VARCHAR(64) NOT NULL,
52
  source VARCHAR(64) NOT NULL,
53
- date DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
54
  PRIMARY KEY (id),
55
  KEY log_type (log_type),
56
  KEY category (category),
27
  * @return string
28
  */
29
  public static function title() {
30
+ return esc_html__( 'Create new give_log table', 'give' );
31
  }
32
 
33
  /**
50
  data text NOT NULL,
51
  category VARCHAR(64) NOT NULL,
52
  source VARCHAR(64) NOT NULL,
53
+ date DATETIME NOT NULL,
54
  PRIMARY KEY (id),
55
  KEY log_type (log_type),
56
  KEY category (category),
src/PaymentGateways/Stripe/ApplicationFee.php CHANGED
@@ -3,6 +3,7 @@
3
  namespace Give\PaymentGateways\Stripe;
4
 
5
  use Give_License;
 
6
 
7
  /**
8
  * Class ApplicationFee
@@ -10,7 +11,7 @@ use Give_License;
10
  *
11
  * @see https://github.com/impress-org/givewp/issues/5555#issuecomment-759596226
12
  *
13
- * @unreleased
14
  */
15
  class ApplicationFee {
16
  /**
@@ -24,24 +25,36 @@ class ApplicationFee {
24
  const PluginName = 'Give - Stripe Gateway';
25
 
26
  /**
27
- * Returns true or false based on whether the Stripe fee should be applied or not
 
 
 
 
 
28
  *
29
- * @unreleased
 
 
 
 
 
 
 
30
  *
 
31
  * @return bool
32
  */
33
  public static function canAddFee() {
34
- $gate = new static();
35
-
36
- return ! ( $gate->hasLicense()
37
- || $gate->isStripeProAddonActive()
38
- || $gate->isStripeProAddonInstalled( get_plugins() ) );
39
  }
40
 
41
  /**
42
  * Returns true or false based on whether the Stripe Pro add-on is activated
43
  *
44
- * @unreleased
45
  *
46
  * @return bool
47
  */
@@ -68,11 +81,22 @@ class ApplicationFee {
68
  /**
69
  * Returns true or false based on whether a license has been provided for the Stripe add-on
70
  *
71
- * @unreleased
72
  *
73
  * @return bool
74
  */
75
  public function hasLicense() {
76
  return (bool) Give_License::get_license_by_plugin_dirname( static::PluginSlug );
77
  }
 
 
 
 
 
 
 
 
 
 
 
78
  }
3
  namespace Give\PaymentGateways\Stripe;
4
 
5
  use Give_License;
6
+ use Give\PaymentGateways\Stripe\Models\AccountDetail as AccountDetailModel;
7
 
8
  /**
9
  * Class ApplicationFee
11
  *
12
  * @see https://github.com/impress-org/givewp/issues/5555#issuecomment-759596226
13
  *
14
+ * @since 2.10.2
15
  */
16
  class ApplicationFee {
17
  /**
25
  const PluginName = 'Give - Stripe Gateway';
26
 
27
  /**
28
+ * @var AccountDetailModel
29
+ */
30
+ private $accountDetail;
31
+
32
+ /**
33
+ * ApplicationFee constructor.
34
  *
35
+ * @param AccountDetailModel $accountDetail
36
+ */
37
+ public function __construct( AccountDetailModel $accountDetail ) {
38
+ $this->accountDetail = $accountDetail;
39
+ }
40
+
41
+ /**
42
+ * Returns true or false based on whether the Stripe fee should be applied or not
43
  *
44
+ * @since 2.10.2
45
  * @return bool
46
  */
47
  public static function canAddFee() {
48
+ /* @var self $gate */
49
+ $gate = give( static::class );
50
+ return $gate->doesCountrySupportApplicationFee()
51
+ && ! ( $gate->isStripeProAddonActive() || $gate->isStripeProAddonInstalled( get_plugins() ) || $gate->hasLicense() );
 
52
  }
53
 
54
  /**
55
  * Returns true or false based on whether the Stripe Pro add-on is activated
56
  *
57
+ * @since 2.10.2
58
  *
59
  * @return bool
60
  */
81
  /**
82
  * Returns true or false based on whether a license has been provided for the Stripe add-on
83
  *
84
+ * @since 2.10.2
85
  *
86
  * @return bool
87
  */
88
  public function hasLicense() {
89
  return (bool) Give_License::get_license_by_plugin_dirname( static::PluginSlug );
90
  }
91
+
92
+ /**
93
+ * Return whether or not country support application fee.
94
+ *
95
+ * @since 2.10.2
96
+ *
97
+ * @return bool
98
+ */
99
+ public function doesCountrySupportApplicationFee() {
100
+ return 'BR' !== $this->accountDetail->accountCountry;
101
+ }
102
  }
src/PaymentGateways/Stripe/Models/AccountDetail.php ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Give\PaymentGateways\Stripe\Models;
4
+
5
+ use Give\Helpers\ArrayDataSet;
6
+ use InvalidArgumentException;
7
+
8
+ /**
9
+ * Class AccountDetail
10
+ *
11
+ * @package Give\PaymentGateways\Stripe\Models
12
+ * @since 2.10.2
13
+ *
14
+ * @property-read string $type
15
+ * @property-read string $accountName
16
+ * @property-read string $accountSlug
17
+ * @property-read string $accountEmail
18
+ * @property-read string $accountCountry
19
+ * @property-read string $accountId
20
+ * @property-read string $liveSecretKey
21
+ * @property-read string $livePublishableKey
22
+ * @property-read string $testSecretKey
23
+ * @property-read string $testPublishableKey
24
+ */
25
+ class AccountDetail {
26
+ protected $args;
27
+ protected $propertiesArgs;
28
+ protected $requiredArgs = [
29
+ 'type',
30
+ 'account_name',
31
+ 'account_slug',
32
+ 'account_email',
33
+ 'account_country',
34
+ 'account_id',
35
+ 'live_secret_key',
36
+ 'live_publishable_key',
37
+ 'test_secret_key',
38
+ 'test_publishable_key',
39
+ ];
40
+
41
+ /**
42
+ * AccountDetail constructor.
43
+ *
44
+ * @since 2.10.2
45
+ * @param array $args
46
+ */
47
+ public function __construct( array $args ) {
48
+ $this->args = $args;
49
+ $this->propertiesArgs = ArrayDataSet::camelCaseKeys( $args );
50
+ $this->validate( $args );
51
+ }
52
+
53
+ /**
54
+ * @since 2.10.2
55
+ * @param string $key
56
+ *
57
+ * @return mixed
58
+ */
59
+ public function __get( $key ) {
60
+ return $this->propertiesArgs[ $key ];
61
+ }
62
+
63
+ /**
64
+ * Validate array format.
65
+ *
66
+ * @since 2.10.2
67
+ * @param array $array
68
+ *
69
+ * @throws InvalidArgumentException
70
+ */
71
+ private function validate( $array ) {
72
+ if ( array_diff( $this->requiredArgs, array_keys( $array ) ) ) {
73
+ throw new InvalidArgumentException(
74
+ sprintf(
75
+ esc_html__( 'To create a %1$s object, please provide valid: %2$s', 'give' ),
76
+ __CLASS__,
77
+ implode( ' , ', $this->requiredArgs )
78
+ )
79
+ );
80
+ }
81
+ }
82
+ }
src/PaymentGateways/Stripe/Repositories/AccountDetail.php ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Give\PaymentGateways\Stripe\Repositories;
4
+
5
+ use Give\PaymentGateways\Stripe\Models\AccountDetail as AccountDetailModel;
6
+
7
+ /**
8
+ * Class AccountDetail
9
+ *
10
+ * @package Give\PaymentGateways\Stripe\Repository
11
+ * @since 2.10.2
12
+ */
13
+ class AccountDetail {
14
+ /**
15
+ * Return Stripe account id for donation form.
16
+ *
17
+ * @since 2.10.2
18
+ * @param int $formId
19
+ *
20
+ * @return AccountDetailModel
21
+ */
22
+ public function getDonationFormStripeAccountId( $formId ) {
23
+ $formHasStripeAccount = give_is_setting_enabled( give_get_meta( $formId, 'give_stripe_per_form_accounts', true ) );
24
+ if ( $formId > 0 && $formHasStripeAccount ) {
25
+ // Return default Stripe account of the form, if enabled.
26
+ $accountId = give_get_meta( $formId, '_give_stripe_default_account', true );
27
+ } else {
28
+ // Global Stripe account.
29
+ $accountId = give_get_option( '_give_stripe_default_account', '' );
30
+ }
31
+
32
+ return $this->getAccountDetail( $accountId );
33
+ }
34
+
35
+ /**
36
+ * Get account detail by Stripe account id.
37
+ *
38
+ * @since 2.10.2
39
+ * @param string $accountId
40
+ *
41
+ * @return AccountDetailModel
42
+ */
43
+ public function getAccountDetail( $accountId ) {
44
+ $accountDetail = array_filter(
45
+ give_stripe_get_all_accounts(),
46
+ static function ( $data ) use ( $accountId ) {
47
+ return $data['account_id'] === $accountId;
48
+ }
49
+ );
50
+
51
+ $accountDetail = $accountDetail ? current( $accountDetail ) : $accountDetail;
52
+ return new AccountDetailModel( $accountDetail );
53
+ }
54
+ }
src/ServiceProviders/PaymentGateways.php CHANGED
@@ -23,6 +23,8 @@ use Give\PaymentGateways\PayPalStandard\Migrations\SetPayPalStandardGatewayId;
23
  use Give\PaymentGateways\PayPalStandard\PayPalStandard;
24
  use Give\PaymentGateways\PaypalSettingPage;
25
  use Give\PaymentGateways\Stripe\DonationFormElements;
 
 
26
 
27
  /**
28
  * Class PaymentGateways
@@ -65,6 +67,17 @@ class PaymentGateways implements ServiceProvider {
65
  give()->singleton( PayPalWebhooks::class );
66
  give()->singleton( Webhooks::class );
67
  give()->singleton( DonationFormElements::class );
 
 
 
 
 
 
 
 
 
 
 
68
  $this->registerPayPalCommerceClasses();
69
  }
70
 
23
  use Give\PaymentGateways\PayPalStandard\PayPalStandard;
24
  use Give\PaymentGateways\PaypalSettingPage;
25
  use Give\PaymentGateways\Stripe\DonationFormElements;
26
+ use Give\PaymentGateways\Stripe\ApplicationFee;
27
+ use Give\PaymentGateways\Stripe\Repositories\AccountDetail as AccountDetailRepository;
28
 
29
  /**
30
  * Class PaymentGateways
67
  give()->singleton( PayPalWebhooks::class );
68
  give()->singleton( Webhooks::class );
69
  give()->singleton( DonationFormElements::class );
70
+ give()->singleton(
71
+ ApplicationFee::class,
72
+ function() {
73
+ return new ApplicationFee(
74
+ give( AccountDetailRepository::class )->getAccountDetail(
75
+ give_stripe_get_connected_account_options()['stripe_account']
76
+ )
77
+ );
78
+ }
79
+ );
80
+
81
  $this->registerPayPalCommerceClasses();
82
  }
83
 
src/TestData/Factories/LogFactory.php CHANGED
@@ -56,7 +56,7 @@ class LogFactory extends Factory {
56
  */
57
  public function getLogCategory() {
58
  if ( 'random' === $this->category ) {
59
- return $this->randomLogCategory()();
60
  }
61
 
62
  return $this->category;
56
  */
57
  public function getLogCategory() {
58
  if ( 'random' === $this->category ) {
59
+ return $this->randomLogCategory();
60
  }
61
 
62
  return $this->category;
src/Tracking/Events/EditedDonationFormsTracking.php CHANGED
@@ -11,7 +11,7 @@ use Give\Tracking\TrackRegisterer;
11
  * Class EditedDonationFormsTracking
12
  *
13
  * @package Give\Tracking\Events
14
- * @unreleased
15
  */
16
  class EditedDonationFormsTracking extends TrackEvent {
17
  /**
@@ -42,7 +42,7 @@ class EditedDonationFormsTracking extends TrackEvent {
42
  /**
43
  * sav_post hook handler.
44
  *
45
- * @unreleased
46
  * @param int $formId
47
  */
48
  public function savePostHookHandler( $formId ) {
11
  * Class EditedDonationFormsTracking
12
  *
13
  * @package Give\Tracking\Events
14
+ * @since 2.10.2
15
  */
16
  class EditedDonationFormsTracking extends TrackEvent {
17
  /**
42
  /**
43
  * sav_post hook handler.
44
  *
45
+ * @since 2.10.2
46
  * @param int $formId
47
  */
48
  public function savePostHookHandler( $formId ) {
src/Tracking/Helpers/DonationStatuses.php CHANGED
@@ -7,13 +7,13 @@ use Give\Helpers\ArrayDataSet;
7
  * Class DonationStatuses
8
  *
9
  * @package Give\Tracking\Helpers
10
- * @unreleased
11
  */
12
  class DonationStatuses {
13
  /**
14
  * Get list of statuses of completed donations.
15
  *
16
- * @unreleased
17
  * @param false $asStringSeparatedBySingleQuotes
18
  *
19
  * @return string|string[]
7
  * Class DonationStatuses
8
  *
9
  * @package Give\Tracking\Helpers
10
+ * @since 2.10.2
11
  */
12
  class DonationStatuses {
13
  /**
14
  * Get list of statuses of completed donations.
15
  *
16
+ * @since 2.10.2
17
  * @param false $asStringSeparatedBySingleQuotes
18
  *
19
  * @return string|string[]
src/Tracking/Repositories/TrackEvents.php CHANGED
@@ -28,7 +28,7 @@ class TrackEvents {
28
  /**
29
  * Remove list of recently edited donaiton forms.
30
  *
31
- * @unreleased
32
  */
33
  public function removeRecentlyEditedDonationFormList() {
34
  delete_option( self::RECENTLY_EDITED_DONATION_FORM_OPTION_KEY );
@@ -48,7 +48,7 @@ class TrackEvents {
48
  /**
49
  * Save recently edited donation form.
50
  *
51
- * @unreleased
52
  */
53
  public function saveRecentlyEditedDonationForm( $formId ) {
54
  $formIds = $this->getRecentlyEditedDonationFormsList();
@@ -61,7 +61,7 @@ class TrackEvents {
61
  /**
62
  * Get recently edited donation form list.
63
  *
64
- * @unreleased
65
  */
66
  public function getRecentlyEditedDonationFormsList() {
67
  return get_option( self::RECENTLY_EDITED_DONATION_FORM_OPTION_KEY, [] );
28
  /**
29
  * Remove list of recently edited donaiton forms.
30
  *
31
+ * @since 2.10.2
32
  */
33
  public function removeRecentlyEditedDonationFormList() {
34
  delete_option( self::RECENTLY_EDITED_DONATION_FORM_OPTION_KEY );
48
  /**
49
  * Save recently edited donation form.
50
  *
51
+ * @since 2.10.2
52
  */
53
  public function saveRecentlyEditedDonationForm( $formId ) {
54
  $formIds = $this->getRecentlyEditedDonationFormsList();
61
  /**
62
  * Get recently edited donation form list.
63
  *
64
+ * @since 2.10.2
65
  */
66
  public function getRecentlyEditedDonationFormsList() {
67
  return get_option( self::RECENTLY_EDITED_DONATION_FORM_OPTION_KEY, [] );
src/Tracking/TrackJob.php CHANGED
@@ -71,7 +71,7 @@ class TrackJob {
71
  /**
72
  * Send tracked information immediately.
73
  *
74
- * @unreleased
75
  * @param array $trackedEvents
76
  */
77
  public function sendNow( $trackedEvents ) {
71
  /**
72
  * Send tracked information immediately.
73
  *
74
+ * @since 2.10.2
75
  * @param array $trackedEvents
76
  */
77
  public function sendNow( $trackedEvents ) {
src/Tracking/TrackingData/DonationMetricsData.php CHANGED
@@ -10,7 +10,7 @@ use Give\Tracking\Helpers\DonationStatuses;
10
  * Class DonationMetricsData
11
  * @package Give\Tracking\TrackingData
12
  *
13
- * @unreleased
14
  */
15
  class DonationMetricsData implements TrackData {
16
  /**
10
  * Class DonationMetricsData
11
  * @package Give\Tracking\TrackingData
12
  *
13
+ * @since 2.10.2
14
  */
15
  class DonationMetricsData implements TrackData {
16
  /**
src/Tracking/TrackingData/EditedDonationFormsData.php CHANGED
@@ -5,13 +5,13 @@ namespace Give\Tracking\TrackingData;
5
  * Class EditedDonationFormsData
6
  *
7
  * @package Give\Tracking\TrackingData
8
- * @unreleased
9
  */
10
  class EditedDonationFormsData extends DonationFormsData {
11
  /**
12
  * set donation form ids.
13
  *
14
- * @unreleased
15
  * @return EditedDonationFormsData|void
16
  */
17
  protected function setFormIds() {
5
  * Class EditedDonationFormsData
6
  *
7
  * @package Give\Tracking\TrackingData
8
+ * @since 2.10.2
9
  */
10
  class EditedDonationFormsData extends DonationFormsData {
11
  /**
12
  * set donation form ids.
13
  *
14
+ * @since 2.10.2
15
  * @return EditedDonationFormsData|void
16
  */
17
  protected function setFormIds() {
src/Tracking/TrackingData/GivePluginSettingsData.php CHANGED
@@ -67,7 +67,7 @@ class GivePluginSettingsData implements TrackData {
67
  /**
68
  * Return active gateways labels.
69
  *
70
- * @unreleased
71
  * @return array
72
  */
73
  private function getGatewaysLabels() {
67
  /**
68
  * Return active gateways labels.
69
  *
70
+ * @since 2.10.2
71
  * @return array
72
  */
73
  private function getGatewaysLabels() {
src/Views/Form/Templates/Sequoia/assets/js/form.js CHANGED
@@ -602,7 +602,7 @@
602
  * Refresh personal information section
603
  *
604
  * @since 2.7.0
605
- * @unreleased Rename function
606
  * @param {boolean} ev Event object
607
  * @param {object} response Response object
608
  * @param {number} formID Form ID
602
  * Refresh personal information section
603
  *
604
  * @since 2.7.0
605
+ * @since 2.10.2 Rename function
606
  * @param {boolean} ev Event object
607
  * @param {object} response Response object
608
  * @param {number} formID Form ID
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit0b3b7652c85346783057507fe155e1f1::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit874cd0c84c75147fef609108aea615af::getLoader();
vendor/composer/InstalledVersions.php CHANGED
@@ -25,12 +25,12 @@ class InstalledVersions
25
  private static $installed = array (
26
  'root' =>
27
  array (
28
- 'pretty_version' => '2.10.1',
29
- 'version' => '2.10.1.0',
30
  'aliases' =>
31
  array (
32
  ),
33
- 'reference' => '49f02ac2996cce4035073b61de7baa606725fde2',
34
  'name' => 'impress-org/give',
35
  ),
36
  'versions' =>
@@ -69,12 +69,12 @@ private static $installed = array (
69
  ),
70
  'impress-org/give' =>
71
  array (
72
- 'pretty_version' => '2.10.1',
73
- 'version' => '2.10.1.0',
74
  'aliases' =>
75
  array (
76
  ),
77
- 'reference' => '49f02ac2996cce4035073b61de7baa606725fde2',
78
  ),
79
  'kjohnson/format-object-list' =>
80
  array (
25
  private static $installed = array (
26
  'root' =>
27
  array (
28
+ 'pretty_version' => '2.10.2',
29
+ 'version' => '2.10.2.0',
30
  'aliases' =>
31
  array (
32
  ),
33
+ 'reference' => '49b08c758fd906f593e07e930d255d5a8bf3ec5b',
34
  'name' => 'impress-org/give',
35
  ),
36
  'versions' =>
69
  ),
70
  'impress-org/give' =>
71
  array (
72
+ 'pretty_version' => '2.10.2',
73
+ 'version' => '2.10.2.0',
74
  'aliases' =>
75
  array (
76
  ),
77
+ 'reference' => '49b08c758fd906f593e07e930d255d5a8bf3ec5b',
78
  ),
79
  'kjohnson/format-object-list' =>
80
  array (
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit0b3b7652c85346783057507fe155e1f1
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInit0b3b7652c85346783057507fe155e1f1
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInit0b3b7652c85346783057507fe155e1f1', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
- spl_autoload_unregister(array('ComposerAutoloaderInit0b3b7652c85346783057507fe155e1f1', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
- call_user_func(\Composer\Autoload\ComposerStaticInit0b3b7652c85346783057507fe155e1f1::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit874cd0c84c75147fef609108aea615af
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit874cd0c84c75147fef609108aea615af', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit874cd0c84c75147fef609108aea615af', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
+ call_user_func(\Composer\Autoload\ComposerStaticInit874cd0c84c75147fef609108aea615af::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit0b3b7652c85346783057507fe155e1f1
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'S' =>
@@ -96,9 +96,9 @@ class ComposerStaticInit0b3b7652c85346783057507fe155e1f1
96
  public static function getInitializer(ClassLoader $loader)
97
  {
98
  return \Closure::bind(function () use ($loader) {
99
- $loader->prefixLengthsPsr4 = ComposerStaticInit0b3b7652c85346783057507fe155e1f1::$prefixLengthsPsr4;
100
- $loader->prefixDirsPsr4 = ComposerStaticInit0b3b7652c85346783057507fe155e1f1::$prefixDirsPsr4;
101
- $loader->classMap = ComposerStaticInit0b3b7652c85346783057507fe155e1f1::$classMap;
102
 
103
  }, null, ClassLoader::class);
104
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit874cd0c84c75147fef609108aea615af
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'S' =>
96
  public static function getInitializer(ClassLoader $loader)
97
  {
98
  return \Closure::bind(function () use ($loader) {
99
+ $loader->prefixLengthsPsr4 = ComposerStaticInit874cd0c84c75147fef609108aea615af::$prefixLengthsPsr4;
100
+ $loader->prefixDirsPsr4 = ComposerStaticInit874cd0c84c75147fef609108aea615af::$prefixDirsPsr4;
101
+ $loader->classMap = ComposerStaticInit874cd0c84c75147fef609108aea615af::$classMap;
102
 
103
  }, null, ClassLoader::class);
104
  }
vendor/composer/installed.php CHANGED
@@ -1,12 +1,12 @@
1
  <?php return array (
2
  'root' =>
3
  array (
4
- 'pretty_version' => '2.10.1',
5
- 'version' => '2.10.1.0',
6
  'aliases' =>
7
  array (
8
  ),
9
- 'reference' => '49f02ac2996cce4035073b61de7baa606725fde2',
10
  'name' => 'impress-org/give',
11
  ),
12
  'versions' =>
@@ -45,12 +45,12 @@
45
  ),
46
  'impress-org/give' =>
47
  array (
48
- 'pretty_version' => '2.10.1',
49
- 'version' => '2.10.1.0',
50
  'aliases' =>
51
  array (
52
  ),
53
- 'reference' => '49f02ac2996cce4035073b61de7baa606725fde2',
54
  ),
55
  'kjohnson/format-object-list' =>
56
  array (
1
  <?php return array (
2
  'root' =>
3
  array (
4
+ 'pretty_version' => '2.10.2',
5
+ 'version' => '2.10.2.0',
6
  'aliases' =>
7
  array (
8
  ),
9
+ 'reference' => '49b08c758fd906f593e07e930d255d5a8bf3ec5b',
10
  'name' => 'impress-org/give',
11
  ),
12
  'versions' =>
45
  ),
46
  'impress-org/give' =>
47
  array (
48
+ 'pretty_version' => '2.10.2',
49
+ 'version' => '2.10.2.0',
50
  'aliases' =>
51
  array (
52
  ),
53
+ 'reference' => '49b08c758fd906f593e07e930d255d5a8bf3ec5b',
54
  ),
55
  'kjohnson/format-object-list' =>
56
  array (