@transferwise/comparison-components 20.0.4 → 20.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/es/{ComparisonTableHeroContainer-015c3b3b.js → ComparisonTableHeroContainer-711ea55b.js} +2 -2
  3. package/dist/es/{ComparisonTableHeroContainer-015c3b3b.js.map → ComparisonTableHeroContainer-711ea55b.js.map} +1 -1
  4. package/dist/es/{ErrorTemplate-e9199922.js → ErrorTemplate-c5bf0627.js} +2 -2
  5. package/dist/es/{ErrorTemplate-e9199922.js.map → ErrorTemplate-c5bf0627.js.map} +1 -1
  6. package/dist/es/{ProviderComparisonTable-b571ac0e.js → ProviderComparisonTable-93c09571.js} +2 -2
  7. package/dist/es/{ProviderComparisonTable-b571ac0e.js.map → ProviderComparisonTable-93c09571.js.map} +1 -1
  8. package/dist/es/{ReceiveAmount-b3ea21f6.js → ReceiveAmount-5f58a372.js} +2 -2
  9. package/dist/es/{ReceiveAmount-b3ea21f6.js.map → ReceiveAmount-5f58a372.js.map} +1 -1
  10. package/dist/es/TransferFeeComparisonContainer-aff68efc.js +2 -0
  11. package/dist/es/{TransferFeeComparisonContainer-19ab2ee3.js.map → TransferFeeComparisonContainer-aff68efc.js.map} +1 -1
  12. package/dist/es/{TravelMoney-16401d8f.js → TravelMoney-0d589971.js} +2 -2
  13. package/dist/es/{TravelMoney-16401d8f.js.map → TravelMoney-0d589971.js.map} +1 -1
  14. package/dist/es/comparison/index.js +1 -1
  15. package/dist/es/comparison/index.js.map +1 -1
  16. package/dist/es/comparison-table/index.js +1 -1
  17. package/dist/es/comparison-table-hero/index.js +1 -1
  18. package/dist/es/index-1371a73e.js +2 -0
  19. package/dist/es/index-1371a73e.js.map +1 -0
  20. package/dist/es/index.js +1 -1
  21. package/dist/es/index.js.map +1 -1
  22. package/dist/es/provider-comparison-table/index.js +1 -1
  23. package/dist/es/provider-comparison-widget/index.js +1 -1
  24. package/dist/es/savingsCalculator-894a963b.js +2 -0
  25. package/dist/es/savingsCalculator-894a963b.js.map +1 -0
  26. package/dist/es/savingsCalculator.js +2 -0
  27. package/dist/es/savingsCalculator.js.map +1 -0
  28. package/dist/es/transfer-fee-comparison/index.js +1 -1
  29. package/dist/es/transformQuotesResponseV2.js +1 -1
  30. package/dist/es/travel-money/index.js +1 -1
  31. package/dist/umd/comparison-components.css +1 -1
  32. package/dist/umd/comparison-components.js +4 -4
  33. package/dist/umd/comparison-components.js.map +1 -1
  34. package/dist/umd/transfer-fee-comparison/transfer-fee-comparison.js +2 -2
  35. package/dist/umd/transfer-fee-comparison/transfer-fee-comparison.js.map +1 -1
  36. package/package.json +1 -1
  37. package/src/resources/clients/quotes/__test__/transformQuotesResponseV2.spec.ts +177 -0
  38. package/src/resources/clients/quotes/currenciesWithoutDecimals.ts +28 -0
  39. package/src/resources/clients/quotes/transformQuotesResponseV2.ts +15 -9
  40. package/src/resources/tracking/types.ts +1 -0
  41. package/src/transfer-fee-comparison/TransferFeeComparison.tsx +3 -0
  42. package/src/transfer-fee-comparison/TransferFeeComparisonContainer.spec.tsx +22 -1
  43. package/src/transfer-fee-comparison/TransferFeeComparisonContainer.tsx +9 -1
  44. package/src/transfer-fee-comparison/mocks/Quotes.ts +45 -0
  45. package/src/transfer-fee-comparison/transfer-fee-comparison-table/TransferFeeComparisonTable.tsx +2 -0
  46. package/src/transfer-fee-comparison/transfer-fee-comparison-table-row/TransferFeeComparisonTableRow.tsx +10 -1
  47. package/src/transfer-fee-comparison/transfer-fee-comparison-table-row/fee-makeup-popover/FeeMakeupPopover.tsx +6 -2
  48. package/src/transfer-fee-comparison/transfer-fee-comparison-table-row/fee-makeup-popover/fee-element/TransparentFeeElement.tsx +6 -2
  49. package/dist/es/TransferFeeComparisonContainer-19ab2ee3.js +0 -2
  50. package/dist/es/index-41366bca.js +0 -2
  51. package/dist/es/index-41366bca.js.map +0 -1
@@ -19,7 +19,7 @@
19
19
  *
20
20
  * This source code is licensed under the MIT license found in the
21
21
  * LICENSE file in the root directory of this source tree.
22
- */var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,f=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,O=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case d:case i:case c:case s:case m:return e;default:switch(e=e&&e.$$typeof){case u:case p:case g:case v:case l:return e;default:return t}}case a:return t}}}function _(e){return E(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=v,t.Portal=a,t.Profiler=c,t.StrictMode=s,t.Suspense=m,t.isAsyncMode=function(e){return _(e)||E(e)===f},t.isConcurrentMode=_,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===v},t.isPortal=function(e){return E(e)===a},t.isProfiler=function(e){return E(e)===c},t.isStrictMode=function(e){return E(e)===s},t.isSuspense=function(e){return E(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===c||e===s||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===b||e.$$typeof===w||e.$$typeof===O||e.$$typeof===y)},t.typeOf=E},function(e,t){e.exports=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){var n=r(24);e.exports=n("navigator","userAgent")||""},function(e,t,r){var n=r(11),o=r(16);e.exports=function(e,t){var r,a;if("string"===t&&n(r=e.toString)&&!o(a=r.call(e)))return a;if(n(r=e.valueOf)&&!o(a=r.call(e)))return a;if("string"!==t&&n(r=e.toString)&&!o(a=r.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(8),o=r(11),a=r(66),i=n.WeakMap;e.exports=o(i)&&/native code/.test(a(i))},function(e,t,r){var n=r(13),o=r(94),a=r(23),i=r(15);e.exports=function(e,t){for(var r=o(t),s=i.f,c=a.f,l=0;l<r.length;l++){var u=r[l];n(e,u)||s(e,u,c(t,u))}}},function(e,t,r){var n={};n[r(9)("toStringTag")]="z",e.exports="[object z]"===String(n)},function(e,t,r){var n=r(12),o=r(15),a=r(14),i=r(48);e.exports=n?Object.defineProperties:function(e,t){a(e);for(var r,n=i(t),s=n.length,c=0;s>c;)o.f(e,r=n[c++],t[r]);return e}},function(e,t,r){var n=r(24);e.exports=n("document","documentElement")},function(e,t,r){var n=r(18),o=r(37).f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return i&&"[object Window]"==a.call(e)?function(e){try{return o(e)}catch(e){return i.slice()}}(e):o(n(e))}},function(e,t,r){var n=r(149),o=r(13),a=r(100),i=r(15).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});o(t,e)||i(t,e,{value:a.f(e)})}},function(e,t,r){var n=r(8);e.exports=n},function(e,t,r){var n=r(15).f,o=r(13),a=r(9)("toStringTag");e.exports=function(e,t,r){e&&!o(e=r?e:e.prototype,a)&&n(e,a,{configurable:!0,value:t})}},function(e,t,r){var n=r(90);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){var n=r(70),o=r(101),a=r(16),i=r(9)("species");e.exports=function(e){var t;return n(e)&&(t=e.constructor,(o(t)&&(t===Array||n(t.prototype))||a(t)&&null===(t=t[i]))&&(t=void 0)),void 0===t?Array:t}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,r){var n=r(65)("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void 0:o},function(e,t,r){"use strict";var n=r(49).forEach,o=r(102)("forEach");e.exports=o?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,r){var n=r(9),o=r(71),a=r(15),i=n("unscopables"),s=Array.prototype;null==s[i]&&a.f(s,i,{configurable:!0,value:o(null)}),e.exports=function(e){s[i][e]=!0}},function(e,t){var r,n,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var c,l=[],u=!1,f=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):f=-1,l.length&&p())}function p(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(c=l,l=[];++f<t;)c&&c[f].run();f=-1,t=l.length}c=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new m(e,t)),1!==l.length||u||s(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw o}}return a}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=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.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){"use strict";var n,o=r(10),a=r(23).f,i=r(47),s=r(17),c=r(103),l=r(21),u=r(104),f=r(61),d="".startsWith,p=Math.min,m=u("startsWith");o({target:"String",proto:!0,forced:!!(f||m||(n=a(String.prototype,"startsWith"),!n||n.writable))&&!m},{startsWith:function(e){var t=s(l(this));c(e);var r=i(p(arguments.length>1?arguments[1]:void 0,t.length)),n=s(e);return d?d.call(t,n,r):t.slice(r,r+n.length)===n}})},function(e,t,r){"use strict";var n=r(10),o=r(97),a=r(45),i=r(46),s=r(27),c=r(72),l=r(73),u=r(50)("splice"),f=Math.max,d=Math.min;n({target:"Array",proto:!0,forced:!u},{splice:function(e,t){var r,n,u,p,m,h,v=s(this),g=i(v),y=o(e,g),b=arguments.length;if(0===b?r=n=0:1===b?(r=0,n=g-y):(r=b-2,n=d(f(a(t),0),g-y)),g+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(u=c(v,n),p=0;p<n;p++)(m=y+p)in v&&l(u,p,v[m]);if(u.length=n,r<n){for(p=y;p<g-n;p++)h=p+r,(m=p+n)in v?v[h]=v[m]:delete v[h];for(p=g;p>g-n+r;p--)delete v[p-1]}else if(r>n)for(p=g-n;p>y;p--)h=p+r-1,(m=p+n-1)in v?v[h]=v[m]:delete v[h];for(p=0;p<r;p++)v[p+y]=arguments[p+2];return v.length=g-n+r,u}})},function(e,t,r){"use strict";var n=r(10),o=r(57),a=r(18),i=r(102),s=[].join,c=o!=Object,l=i("join",",");n({target:"Array",proto:!0,forced:c||!l},{join:function(e){return s.call(a(this),void 0===e?",":e)}})},function(e,t,r){"use strict";var n=r(10),o=r(49).map;n({target:"Array",proto:!0,forced:!r(50)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){var n=r(12),o=r(8),a=r(69),i=r(107),s=r(28),c=r(15).f,l=r(37).f,u=r(76),f=r(17),d=r(77),p=r(78),m=r(29),h=r(5),v=r(13),g=r(43).enforce,y=r(168),b=r(9),w=r(108),O=r(109),E=b("match"),_=o.RegExp,x=_.prototype,T=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,j=/a/g,k=/a/g,R=new _(j)!==j,N=p.UNSUPPORTED_Y,A=n&&(!R||N||w||O||h((function(){return k[E]=!1,_(j)!=j||_(k)==k||"/a/i"!=_(j,"i")})));if(a("RegExp",A)){for(var P=function(e,t){var r,n,o,a,c,l,p=this instanceof P,m=u(e),h=void 0===t,y=[],b=e;if(!p&&m&&h&&e.constructor===P)return e;if((m||e instanceof P)&&(e=e.source,h&&(t="flags"in b?b.flags:d.call(b))),e=void 0===e?"":f(e),t=void 0===t?"":f(t),b=e,w&&"dotAll"in j&&(n=!!t&&t.indexOf("s")>-1)&&(t=t.replace(/s/g,"")),r=t,N&&"sticky"in j&&(o=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,"")),O&&(e=(a=function(e){for(var t,r=e.length,n=0,o="",a=[],i={},s=!1,c=!1,l=0,u="";n<=r;n++){if("\\"===(t=e.charAt(n)))t+=e.charAt(++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:T.test(e.slice(n+1))&&(n+=2,c=!0),o+=t,l++;continue;case">"===t&&c:if(""===u||v(i,u))throw new SyntaxError("Invalid capture group name");i[u]=!0,a.push([u,l]),c=!1,u="";continue}c?u+=t:o+=t}return[o,a]}(e))[0],y=a[1]),c=i(_(e,t),p?this:x,P),(n||o||y.length)&&(l=g(c),n&&(l.dotAll=!0,l.raw=P(function(e){for(var t,r=e.length,n=0,o="",a=!1;n<=r;n++)"\\"!==(t=e.charAt(n))?a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),o+=t):o+="[\\s\\S]":o+=t+e.charAt(++n);return o}(e),r)),o&&(l.sticky=!0),y.length&&(l.groups=y)),e!==b)try{s(c,"source",""===b?"(?:)":b)}catch(e){}return c},C=function(e){e in P||c(P,e,{configurable:!0,get:function(){return _[e]},set:function(t){_[e]=t}})},S=l(_),L=0;S.length>L;)C(S[L++]);x.constructor=P,P.prototype=x,m(o,"RegExp",P)}y("RegExp")},function(e,t,r){var n=r(14),o=r(167);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function(r,a){return n(r),o(a),t?e.call(r,a):r.__proto__=a,r}}():void 0)},function(e,t,r){var n=r(11);e.exports=function(e){if("object"==typeof e||n(e))return e;throw TypeError("Can't set "+String(e)+" as a prototype")}},function(e,t,r){"use strict";var n=r(24),o=r(15),a=r(9),i=r(12),s=a("species");e.exports=function(e){var t=n(e),r=o.f;i&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,r){"use strict";var n=r(93).PROPER,o=r(29),a=r(14),i=r(17),s=r(5),c=r(77),l=RegExp.prototype,u=l.toString,f=s((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),d=n&&"toString"!=u.name;(f||d)&&o(RegExp.prototype,"toString",(function(){var e=a(this),t=i(e.source),r=e.flags;return"/"+t+"/"+i(void 0===r&&e instanceof RegExp&&!("flags"in l)?c.call(e):r)}),{unsafe:!0})},function(e,t,r){"use strict";var n=r(110),o=r(14),a=r(47),i=r(17),s=r(21),c=r(60),l=r(111),u=r(112);n("match",(function(e,t,r){return[function(t){var r=s(this),n=null==t?void 0:c(t,e);return n?n.call(t,r):new RegExp(t)[e](i(r))},function(e){var n=o(this),s=i(e),c=r(t,n,s);if(c.done)return c.value;if(!n.global)return u(n,s);var f=n.unicode;n.lastIndex=0;for(var d,p=[],m=0;null!==(d=u(n,s));){var h=i(d[0]);p[m]=h,""===h&&(n.lastIndex=l(s,a(n.lastIndex),f)),m++}return 0===m?null:p}]}))},function(e,t,r){var n=r(45),o=r(17),a=r(21),i=function(e){return function(t,r){var i,s,c=o(a(t)),l=n(r),u=c.length;return l<0||l>=u?e?"":void 0:(i=c.charCodeAt(l))<55296||i>56319||l+1===u||(s=c.charCodeAt(l+1))<56320||s>57343?e?c.charAt(l):i:e?c.slice(l,l+2):s-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},function(e,t,r){r(10)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,r){"use strict";var n=r(12),o=r(8),a=r(69),i=r(29),s=r(13),c=r(107),l=r(41),u=r(88),f=r(5),d=r(37).f,p=r(23).f,m=r(15).f,h=r(174),v=r(175).trim,g=o.Number,y=g.prototype,b=function(e){var t=u(e,"number");return"bigint"==typeof t?t:w(t)},w=function(e){var t,r,n,o,a,i,s,c,f=u(e,"number");if(l(f))throw TypeError("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(43===(t=(f=v(f)).charCodeAt(0))||45===t){if(88===(r=f.charCodeAt(2))||120===r)return NaN}else if(48===t){switch(f.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+f}for(i=(a=f.slice(2)).length,s=0;s<i;s++)if((c=a.charCodeAt(s))<48||c>o)return NaN;return parseInt(a,n)}return+f};if(a("Number",!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var O,E=function(e){var t=arguments.length<1?0:g(b(e)),r=this;return r instanceof E&&f((function(){h(r)}))?c(Object(t),r,E):t},_=n?d(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),x=0;_.length>x;x++)s(g,O=_[x])&&!s(E,O)&&m(E,O,p(g,O));E.prototype=y,y.constructor=E,i(o,"Number",E)}},function(e,t){var r=1..valueOf;e.exports=function(e){return r.call(e)}},function(e,t,r){var n=r(21),o=r(17),a="["+r(176)+"]",i=RegExp("^"+a+a+"*"),s=RegExp(a+a+"*$"),c=function(e){return function(t){var r=o(n(t));return 1&e&&(r=r.replace(i,"")),2&e&&(r=r.replace(s,"")),r}};e.exports={start:c(1),end:c(2),trim:c(3)}},function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,t,r){var n=r(106);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=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.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){var n=r(10),o=r(181).values;n({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,r){var n=r(12),o=r(48),a=r(18),i=r(56).f,s=function(e){return function(t){for(var r,s=a(t),c=o(s),l=c.length,u=0,f=[];l>u;)r=c[u++],n&&!i.call(s,r)||f.push(e?[r,s[r]]:s[r]);return f}};e.exports={entries:s(!0),values:s(!1)}},function(e,t,r){"use strict";var n=r(110),o=r(76),a=r(14),i=r(21),s=r(183),c=r(111),l=r(47),u=r(17),f=r(60),d=r(112),p=r(52),m=r(78),h=r(5),v=m.UNSUPPORTED_Y,g=[].push,y=Math.min;n("split",(function(e,t,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var n=u(i(this)),a=void 0===r?4294967295:r>>>0;if(0===a)return[];if(void 0===e)return[n];if(!o(e))return t.call(n,e,a);for(var s,c,l,f=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,h=new RegExp(e.source,d+"g");(s=p.call(h,n))&&!((c=h.lastIndex)>m&&(f.push(n.slice(m,s.index)),s.length>1&&s.index<n.length&&g.apply(f,s.slice(1)),l=s[0].length,m=c,f.length>=a));)h.lastIndex===s.index&&h.lastIndex++;return m===n.length?!l&&h.test("")||f.push(""):f.push(n.slice(m)),f.length>a?f.slice(0,a):f}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:t.call(this,e,r)}:t,[function(t,r){var o=i(this),a=null==t?void 0:f(t,e);return a?a.call(t,o,r):n.call(u(o),t,r)},function(e,o){var i=a(this),f=u(e),p=r(n,i,f,o,n!==t);if(p.done)return p.value;var m=s(i,RegExp),h=i.unicode,g=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(v?"g":"y"),b=new m(v?"^(?:"+i.source+")":i,g),w=void 0===o?4294967295:o>>>0;if(0===w)return[];if(0===f.length)return null===d(b,f)?[f]:[];for(var O=0,E=0,_=[];E<f.length;){b.lastIndex=v?0:E;var x,T=d(b,v?f.slice(E):f);if(null===T||(x=y(l(b.lastIndex+(v?E:0)),f.length))===O)E=c(f,E,h);else{if(_.push(f.slice(O,E)),_.length===w)return _;for(var j=1;j<=T.length-1;j++)if(_.push(T[j]),_.length===w)return _;E=O=x}}return _.push(f.slice(O)),_}]}),!!h((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),v)},function(e,t,r){var n=r(14),o=r(184),a=r(9)("species");e.exports=function(e,t){var r,i=n(e).constructor;return void 0===i||null==(r=n(i)[a])?t:o(r)}},function(e,t,r){var n=r(101),o=r(91);e.exports=function(e){if(n(e))return e;throw TypeError(o(e)+" is not a constructor")}},function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return Li}));var n,o=r(1),a=r(0),i=r.n(a);!function(e){e.DEFAULT="en",e.BG="bg",e.CS="cs",e.DE="de",e.EL="el",e.EN="en",e.ES="es",e.FR="fr",e.HU="hu",e.ID="id",e.IT="it",e.JA="ja",e.NL="nl",e.NO="no",e.PL="pl",e.PT="pt",e.RO="ro",e.RU="ru",e.SK="sk",e.SV="sv",e.TR="tr",e.UK="uk",e.ZH="zh"}(n||(n={}));var s=n;var c,l,u=new Map([["gb",["paypal","western-union","hsbc","barclays","lloyds","moneygram","transferwise"]],["us",["paypal","western-union","chase","moneygram","wells-fargo","xoom","transferwise"]],["au",["paypal","western-union","commonwealth-bank-of-australia","anz","westpac","national-australia-bank","transferwise"]],["hk",["paypal","western-union","hang-seng","hsbc-hk","ocbc","ccb-hk","transferwise"]],["es",["paypal","western-union","lacaixa","bbva","sabadell","transferwise"]],["nl",["paypal","western-union","ing-nl","abn-amro-bank","rabobank","transferwise"]]]),f=function(e){return u.has(e.toLowerCase())},d=function(e,t,r){return void 0===r&&(r=5),!!f(t)&&p(e,t).length>=r},p=function(e,t){if(!f(t))return e;var r=u.get(t.toLowerCase())||[];return e.filter((function(e){return r.includes(e.provider.alias)}))};!function(e){e.ProviderFilteringOptionChanged="ProviderFilteringOptionChanged",e.FeeBreakdownPopoverStarted="FeeBreakdownPopoverStarted",e.MobileFeeBreakdownStarted="MobileFeeBreakdownStarted",e.LargestProviderTableRendered="LargestProviderTableRendered",e.RowWasSeen="RowWasSeen"}(c||(c={})),function(e){e.TransferFeeComparison="Transfer-Fee-Comparison"}(l||(l={}));var m,h,v,g,y,b,w=r(38),O=r.n(w),E=r(3),_=r.n(E),x=r(34),T=r.n(x),j=(r(20),r(30),r(25),r(31),r(32),r(33),r(4)),k=r.n(j),R=r(2),N=r.n(R),A=r(114),P=r.n(A);(h=m||(m={})).ACCENT="accent",h.POSITIVE="positive",h.NEGATIVE="negative",function(e){e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary"}(v||(v={})),function(e){e.EXTRA_SMALL="xs",e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e.EXTRA_LARGE="xl"}(g||(g={}));var C,S=(y={},_()(y,m.ACCENT,"btn-accent"),_()(y,m.POSITIVE,"btn-positive"),_()(y,m.NEGATIVE,"btn-negative"),y),L=(b={},_()(b,v.PRIMARY,"btn-priority-1"),_()(b,v.SECONDARY,"btn-priority-2"),_()(b,v.TERTIARY,"btn-priority-3"),b);r(74),r(51),r(75);!function(e){e.PRIMARY="primary",e.PAY="pay",e.SECONDARY="secondary",e.DANGER="danger",e.LINK="link"}(C||(C={}));var F,I,M,D=r(210),z=(F={},_()(F,C.PRIMARY,m.ACCENT),_()(F,C.SECONDARY,m.ACCENT),_()(F,C.LINK,m.ACCENT),_()(F,C.PAY,m.POSITIVE),_()(F,C.DANGER,m.NEGATIVE),F),U=(I={},_()(I,C.DANGER,v.SECONDARY),_()(I,C.LINK,v.TERTIARY),_()(I,C.SECONDARY,v.SECONDARY),I),G=(M={},_()(M,C.DANGER,"Type.NEGATIVE"),_()(M,C.LINK,"ControlType.ACCENT with priority Priority.TERTIARY"),_()(M,C.PAY,"ControlType.POSITIVE"),_()(M,C.PRIMARY,"ControlType.ACCENT"),_()(M,C.SECONDARY,"ControlType.ACCENT with priority Priority.SECONDARY"),M),W=Object.keys(z),V=function(e){return z[e]||e},B=["block","children","className","disabled","htmlType","loading","priority","size","type"];function q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function H(e){for(var t,r=1;r<arguments.length;r++)t=null==arguments[r]?{}:arguments[r],r%2?q(Object(t),!0).forEach((function(r){_()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):q(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}var Y=function(e){var t=e.block,r=e.children,n=e.className,a=e.disabled,i=e.htmlType,s=e.loading,c=e.priority,l=e.size,u=e.type,f=T()(e,B);!function(e){var t=e.size,r=e.type;Object(D.a)("Button has deprecated the `Size.EXTRA_SMALL` value for the `size` prop. Please use Size.SMALL instead.",t===g.EXTRA_SMALL),Object(D.a)("Button has deprecated the ".concat(r," value for the `type` prop. Please update to ").concat(G[r],"."),W.includes(r))}(e);var d=V(u),p=function(e,t){var r=V(t);return U[t]?U[t]:e===v.TERTIARY&&r!==m.ACCENT?v.SECONDARY:e}(c,u),h=k()("btn btn-".concat(l),"np-btn np-btn-".concat(l),{"btn-loading":s,"btn-block np-btn-block":t},S[d],L[p],n);return Object(o.jsxs)("button",H(H({type:i,className:h,disabled:a||s},f),{},{children:[r,s&&Object(o.jsx)("span",{className:k()("btn-loader",{"m-l-2":!t})})]}))};Y.propTypes={block:N.a.bool,children:N.a.node.isRequired,className:N.a.string,disabled:N.a.bool,htmlType:N.a.oneOf(["submit","reset","button"]),loading:N.a.bool,onClick:P()(N.a.func,(function(e){return"submit"!==e.htmlType})),priority:N.a.oneOf(["primary","secondary","tertiary"]),type:N.a.oneOf(["accent","positive","negative","primary","pay","secondary","danger","link"]),size:N.a.oneOf(["xs","sm","md","lg"])},Y.defaultProps={block:!1,className:null,disabled:!1,htmlType:"button",loading:!1,priority:v.PRIMARY,size:g.MEDIUM,type:m.ACCENT};var X=Y,K=function(e,t){return(K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};
22
+ */var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,f=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,O=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case d:case i:case c:case s:case m:return e;default:switch(e=e&&e.$$typeof){case u:case p:case g:case v:case l:return e;default:return t}}case a:return t}}}function _(e){return E(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=v,t.Portal=a,t.Profiler=c,t.StrictMode=s,t.Suspense=m,t.isAsyncMode=function(e){return _(e)||E(e)===f},t.isConcurrentMode=_,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===v},t.isPortal=function(e){return E(e)===a},t.isProfiler=function(e){return E(e)===c},t.isStrictMode=function(e){return E(e)===s},t.isSuspense=function(e){return E(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===c||e===s||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===b||e.$$typeof===w||e.$$typeof===O||e.$$typeof===y)},t.typeOf=E},function(e,t){e.exports=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){var n=r(24);e.exports=n("navigator","userAgent")||""},function(e,t,r){var n=r(11),o=r(16);e.exports=function(e,t){var r,a;if("string"===t&&n(r=e.toString)&&!o(a=r.call(e)))return a;if(n(r=e.valueOf)&&!o(a=r.call(e)))return a;if("string"!==t&&n(r=e.toString)&&!o(a=r.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(8),o=r(11),a=r(66),i=n.WeakMap;e.exports=o(i)&&/native code/.test(a(i))},function(e,t,r){var n=r(13),o=r(94),a=r(23),i=r(15);e.exports=function(e,t){for(var r=o(t),s=i.f,c=a.f,l=0;l<r.length;l++){var u=r[l];n(e,u)||s(e,u,c(t,u))}}},function(e,t,r){var n={};n[r(9)("toStringTag")]="z",e.exports="[object z]"===String(n)},function(e,t,r){var n=r(12),o=r(15),a=r(14),i=r(48);e.exports=n?Object.defineProperties:function(e,t){a(e);for(var r,n=i(t),s=n.length,c=0;s>c;)o.f(e,r=n[c++],t[r]);return e}},function(e,t,r){var n=r(24);e.exports=n("document","documentElement")},function(e,t,r){var n=r(18),o=r(37).f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return i&&"[object Window]"==a.call(e)?function(e){try{return o(e)}catch(e){return i.slice()}}(e):o(n(e))}},function(e,t,r){var n=r(149),o=r(13),a=r(100),i=r(15).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});o(t,e)||i(t,e,{value:a.f(e)})}},function(e,t,r){var n=r(8);e.exports=n},function(e,t,r){var n=r(15).f,o=r(13),a=r(9)("toStringTag");e.exports=function(e,t,r){e&&!o(e=r?e:e.prototype,a)&&n(e,a,{configurable:!0,value:t})}},function(e,t,r){var n=r(90);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){var n=r(70),o=r(101),a=r(16),i=r(9)("species");e.exports=function(e){var t;return n(e)&&(t=e.constructor,(o(t)&&(t===Array||n(t.prototype))||a(t)&&null===(t=t[i]))&&(t=void 0)),void 0===t?Array:t}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,r){var n=r(65)("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void 0:o},function(e,t,r){"use strict";var n=r(49).forEach,o=r(102)("forEach");e.exports=o?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,r){var n=r(9),o=r(71),a=r(15),i=n("unscopables"),s=Array.prototype;null==s[i]&&a.f(s,i,{configurable:!0,value:o(null)}),e.exports=function(e){s[i][e]=!0}},function(e,t){var r,n,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var c,l=[],u=!1,f=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):f=-1,l.length&&p())}function p(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(c=l,l=[];++f<t;)c&&c[f].run();f=-1,t=l.length}c=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new m(e,t)),1!==l.length||u||s(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw o}}return a}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=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.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){"use strict";var n,o=r(10),a=r(23).f,i=r(47),s=r(17),c=r(103),l=r(21),u=r(104),f=r(61),d="".startsWith,p=Math.min,m=u("startsWith");o({target:"String",proto:!0,forced:!!(f||m||(n=a(String.prototype,"startsWith"),!n||n.writable))&&!m},{startsWith:function(e){var t=s(l(this));c(e);var r=i(p(arguments.length>1?arguments[1]:void 0,t.length)),n=s(e);return d?d.call(t,n,r):t.slice(r,r+n.length)===n}})},function(e,t,r){"use strict";var n=r(10),o=r(97),a=r(45),i=r(46),s=r(27),c=r(72),l=r(73),u=r(50)("splice"),f=Math.max,d=Math.min;n({target:"Array",proto:!0,forced:!u},{splice:function(e,t){var r,n,u,p,m,h,v=s(this),g=i(v),y=o(e,g),b=arguments.length;if(0===b?r=n=0:1===b?(r=0,n=g-y):(r=b-2,n=d(f(a(t),0),g-y)),g+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(u=c(v,n),p=0;p<n;p++)(m=y+p)in v&&l(u,p,v[m]);if(u.length=n,r<n){for(p=y;p<g-n;p++)h=p+r,(m=p+n)in v?v[h]=v[m]:delete v[h];for(p=g;p>g-n+r;p--)delete v[p-1]}else if(r>n)for(p=g-n;p>y;p--)h=p+r-1,(m=p+n-1)in v?v[h]=v[m]:delete v[h];for(p=0;p<r;p++)v[p+y]=arguments[p+2];return v.length=g-n+r,u}})},function(e,t,r){"use strict";var n=r(10),o=r(57),a=r(18),i=r(102),s=[].join,c=o!=Object,l=i("join",",");n({target:"Array",proto:!0,forced:c||!l},{join:function(e){return s.call(a(this),void 0===e?",":e)}})},function(e,t,r){"use strict";var n=r(10),o=r(49).map;n({target:"Array",proto:!0,forced:!r(50)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){var n=r(12),o=r(8),a=r(69),i=r(107),s=r(28),c=r(15).f,l=r(37).f,u=r(76),f=r(17),d=r(77),p=r(78),m=r(29),h=r(5),v=r(13),g=r(43).enforce,y=r(168),b=r(9),w=r(108),O=r(109),E=b("match"),_=o.RegExp,x=_.prototype,T=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,j=/a/g,k=/a/g,R=new _(j)!==j,N=p.UNSUPPORTED_Y,A=n&&(!R||N||w||O||h((function(){return k[E]=!1,_(j)!=j||_(k)==k||"/a/i"!=_(j,"i")})));if(a("RegExp",A)){for(var P=function(e,t){var r,n,o,a,c,l,p=this instanceof P,m=u(e),h=void 0===t,y=[],b=e;if(!p&&m&&h&&e.constructor===P)return e;if((m||e instanceof P)&&(e=e.source,h&&(t="flags"in b?b.flags:d.call(b))),e=void 0===e?"":f(e),t=void 0===t?"":f(t),b=e,w&&"dotAll"in j&&(n=!!t&&t.indexOf("s")>-1)&&(t=t.replace(/s/g,"")),r=t,N&&"sticky"in j&&(o=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,"")),O&&(e=(a=function(e){for(var t,r=e.length,n=0,o="",a=[],i={},s=!1,c=!1,l=0,u="";n<=r;n++){if("\\"===(t=e.charAt(n)))t+=e.charAt(++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:T.test(e.slice(n+1))&&(n+=2,c=!0),o+=t,l++;continue;case">"===t&&c:if(""===u||v(i,u))throw new SyntaxError("Invalid capture group name");i[u]=!0,a.push([u,l]),c=!1,u="";continue}c?u+=t:o+=t}return[o,a]}(e))[0],y=a[1]),c=i(_(e,t),p?this:x,P),(n||o||y.length)&&(l=g(c),n&&(l.dotAll=!0,l.raw=P(function(e){for(var t,r=e.length,n=0,o="",a=!1;n<=r;n++)"\\"!==(t=e.charAt(n))?a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),o+=t):o+="[\\s\\S]":o+=t+e.charAt(++n);return o}(e),r)),o&&(l.sticky=!0),y.length&&(l.groups=y)),e!==b)try{s(c,"source",""===b?"(?:)":b)}catch(e){}return c},C=function(e){e in P||c(P,e,{configurable:!0,get:function(){return _[e]},set:function(t){_[e]=t}})},S=l(_),L=0;S.length>L;)C(S[L++]);x.constructor=P,P.prototype=x,m(o,"RegExp",P)}y("RegExp")},function(e,t,r){var n=r(14),o=r(167);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function(r,a){return n(r),o(a),t?e.call(r,a):r.__proto__=a,r}}():void 0)},function(e,t,r){var n=r(11);e.exports=function(e){if("object"==typeof e||n(e))return e;throw TypeError("Can't set "+String(e)+" as a prototype")}},function(e,t,r){"use strict";var n=r(24),o=r(15),a=r(9),i=r(12),s=a("species");e.exports=function(e){var t=n(e),r=o.f;i&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,r){"use strict";var n=r(93).PROPER,o=r(29),a=r(14),i=r(17),s=r(5),c=r(77),l=RegExp.prototype,u=l.toString,f=s((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),d=n&&"toString"!=u.name;(f||d)&&o(RegExp.prototype,"toString",(function(){var e=a(this),t=i(e.source),r=e.flags;return"/"+t+"/"+i(void 0===r&&e instanceof RegExp&&!("flags"in l)?c.call(e):r)}),{unsafe:!0})},function(e,t,r){"use strict";var n=r(110),o=r(14),a=r(47),i=r(17),s=r(21),c=r(60),l=r(111),u=r(112);n("match",(function(e,t,r){return[function(t){var r=s(this),n=null==t?void 0:c(t,e);return n?n.call(t,r):new RegExp(t)[e](i(r))},function(e){var n=o(this),s=i(e),c=r(t,n,s);if(c.done)return c.value;if(!n.global)return u(n,s);var f=n.unicode;n.lastIndex=0;for(var d,p=[],m=0;null!==(d=u(n,s));){var h=i(d[0]);p[m]=h,""===h&&(n.lastIndex=l(s,a(n.lastIndex),f)),m++}return 0===m?null:p}]}))},function(e,t,r){var n=r(45),o=r(17),a=r(21),i=function(e){return function(t,r){var i,s,c=o(a(t)),l=n(r),u=c.length;return l<0||l>=u?e?"":void 0:(i=c.charCodeAt(l))<55296||i>56319||l+1===u||(s=c.charCodeAt(l+1))<56320||s>57343?e?c.charAt(l):i:e?c.slice(l,l+2):s-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},function(e,t,r){r(10)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,r){"use strict";var n=r(12),o=r(8),a=r(69),i=r(29),s=r(13),c=r(107),l=r(41),u=r(88),f=r(5),d=r(37).f,p=r(23).f,m=r(15).f,h=r(174),v=r(175).trim,g=o.Number,y=g.prototype,b=function(e){var t=u(e,"number");return"bigint"==typeof t?t:w(t)},w=function(e){var t,r,n,o,a,i,s,c,f=u(e,"number");if(l(f))throw TypeError("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(43===(t=(f=v(f)).charCodeAt(0))||45===t){if(88===(r=f.charCodeAt(2))||120===r)return NaN}else if(48===t){switch(f.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+f}for(i=(a=f.slice(2)).length,s=0;s<i;s++)if((c=a.charCodeAt(s))<48||c>o)return NaN;return parseInt(a,n)}return+f};if(a("Number",!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var O,E=function(e){var t=arguments.length<1?0:g(b(e)),r=this;return r instanceof E&&f((function(){h(r)}))?c(Object(t),r,E):t},_=n?d(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),x=0;_.length>x;x++)s(g,O=_[x])&&!s(E,O)&&m(E,O,p(g,O));E.prototype=y,y.constructor=E,i(o,"Number",E)}},function(e,t){var r=1..valueOf;e.exports=function(e){return r.call(e)}},function(e,t,r){var n=r(21),o=r(17),a="["+r(176)+"]",i=RegExp("^"+a+a+"*"),s=RegExp(a+a+"*$"),c=function(e){return function(t){var r=o(n(t));return 1&e&&(r=r.replace(i,"")),2&e&&(r=r.replace(s,"")),r}};e.exports={start:c(1),end:c(2),trim:c(3)}},function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,t,r){var n=r(106);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=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.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){var n=r(10),o=r(181).values;n({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,r){var n=r(12),o=r(48),a=r(18),i=r(56).f,s=function(e){return function(t){for(var r,s=a(t),c=o(s),l=c.length,u=0,f=[];l>u;)r=c[u++],n&&!i.call(s,r)||f.push(e?[r,s[r]]:s[r]);return f}};e.exports={entries:s(!0),values:s(!1)}},function(e,t,r){"use strict";var n=r(110),o=r(76),a=r(14),i=r(21),s=r(183),c=r(111),l=r(47),u=r(17),f=r(60),d=r(112),p=r(52),m=r(78),h=r(5),v=m.UNSUPPORTED_Y,g=[].push,y=Math.min;n("split",(function(e,t,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var n=u(i(this)),a=void 0===r?4294967295:r>>>0;if(0===a)return[];if(void 0===e)return[n];if(!o(e))return t.call(n,e,a);for(var s,c,l,f=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,h=new RegExp(e.source,d+"g");(s=p.call(h,n))&&!((c=h.lastIndex)>m&&(f.push(n.slice(m,s.index)),s.length>1&&s.index<n.length&&g.apply(f,s.slice(1)),l=s[0].length,m=c,f.length>=a));)h.lastIndex===s.index&&h.lastIndex++;return m===n.length?!l&&h.test("")||f.push(""):f.push(n.slice(m)),f.length>a?f.slice(0,a):f}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:t.call(this,e,r)}:t,[function(t,r){var o=i(this),a=null==t?void 0:f(t,e);return a?a.call(t,o,r):n.call(u(o),t,r)},function(e,o){var i=a(this),f=u(e),p=r(n,i,f,o,n!==t);if(p.done)return p.value;var m=s(i,RegExp),h=i.unicode,g=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(v?"g":"y"),b=new m(v?"^(?:"+i.source+")":i,g),w=void 0===o?4294967295:o>>>0;if(0===w)return[];if(0===f.length)return null===d(b,f)?[f]:[];for(var O=0,E=0,_=[];E<f.length;){b.lastIndex=v?0:E;var x,T=d(b,v?f.slice(E):f);if(null===T||(x=y(l(b.lastIndex+(v?E:0)),f.length))===O)E=c(f,E,h);else{if(_.push(f.slice(O,E)),_.length===w)return _;for(var j=1;j<=T.length-1;j++)if(_.push(T[j]),_.length===w)return _;E=O=x}}return _.push(f.slice(O)),_}]}),!!h((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),v)},function(e,t,r){var n=r(14),o=r(184),a=r(9)("species");e.exports=function(e,t){var r,i=n(e).constructor;return void 0===i||null==(r=n(i)[a])?t:o(r)}},function(e,t,r){var n=r(101),o=r(91);e.exports=function(e){if(n(e))return e;throw TypeError(o(e)+" is not a constructor")}},function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return Li}));var n,o=r(1),a=r(0),i=r.n(a);!function(e){e.DEFAULT="en",e.BG="bg",e.CS="cs",e.DE="de",e.EL="el",e.EN="en",e.ES="es",e.FR="fr",e.HU="hu",e.ID="id",e.IT="it",e.JA="ja",e.NL="nl",e.NO="no",e.PL="pl",e.PT="pt",e.RO="ro",e.RU="ru",e.SK="sk",e.SV="sv",e.TR="tr",e.UK="uk",e.ZH="zh"}(n||(n={}));var s=n;var c,l,u=new Map([["gb",["paypal","western-union","hsbc","barclays","lloyds","moneygram","transferwise"]],["us",["paypal","western-union","chase","moneygram","wells-fargo","xoom","transferwise"]],["au",["paypal","western-union","commonwealth-bank-of-australia","anz","westpac","national-australia-bank","transferwise"]],["hk",["paypal","western-union","hang-seng","hsbc-hk","ocbc","ccb-hk","transferwise"]],["es",["paypal","western-union","lacaixa","bbva","sabadell","transferwise"]],["nl",["paypal","western-union","ing-nl","abn-amro-bank","rabobank","transferwise"]]]),f=function(e){return u.has(e.toLowerCase())},d=function(e,t,r){return void 0===r&&(r=5),!!f(t)&&p(e,t).length>=r},p=function(e,t){if(!f(t))return e;var r=u.get(t.toLowerCase())||[];return e.filter((function(e){return r.includes(e.provider.alias)}))};!function(e){e.ProviderFilteringOptionChanged="ProviderFilteringOptionChanged",e.FeeBreakdownPopoverStarted="FeeBreakdownPopoverStarted",e.MobileFeeBreakdownStarted="MobileFeeBreakdownStarted",e.LargestProviderTableRendered="LargestProviderTableRendered",e.RowWasSeen="RowWasSeen",e.WiseHasHiddenFee="WiseHasHiddenFee"}(c||(c={})),function(e){e.TransferFeeComparison="Transfer-Fee-Comparison"}(l||(l={}));var m,h,v,g,y,b,w=r(38),O=r.n(w),E=r(3),_=r.n(E),x=r(34),T=r.n(x),j=(r(20),r(30),r(25),r(31),r(32),r(33),r(4)),k=r.n(j),R=r(2),N=r.n(R),A=r(114),P=r.n(A);(h=m||(m={})).ACCENT="accent",h.POSITIVE="positive",h.NEGATIVE="negative",function(e){e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary"}(v||(v={})),function(e){e.EXTRA_SMALL="xs",e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e.EXTRA_LARGE="xl"}(g||(g={}));var C,S=(y={},_()(y,m.ACCENT,"btn-accent"),_()(y,m.POSITIVE,"btn-positive"),_()(y,m.NEGATIVE,"btn-negative"),y),L=(b={},_()(b,v.PRIMARY,"btn-priority-1"),_()(b,v.SECONDARY,"btn-priority-2"),_()(b,v.TERTIARY,"btn-priority-3"),b);r(74),r(51),r(75);!function(e){e.PRIMARY="primary",e.PAY="pay",e.SECONDARY="secondary",e.DANGER="danger",e.LINK="link"}(C||(C={}));var F,I,M,D=r(210),z=(F={},_()(F,C.PRIMARY,m.ACCENT),_()(F,C.SECONDARY,m.ACCENT),_()(F,C.LINK,m.ACCENT),_()(F,C.PAY,m.POSITIVE),_()(F,C.DANGER,m.NEGATIVE),F),U=(I={},_()(I,C.DANGER,v.SECONDARY),_()(I,C.LINK,v.TERTIARY),_()(I,C.SECONDARY,v.SECONDARY),I),G=(M={},_()(M,C.DANGER,"Type.NEGATIVE"),_()(M,C.LINK,"ControlType.ACCENT with priority Priority.TERTIARY"),_()(M,C.PAY,"ControlType.POSITIVE"),_()(M,C.PRIMARY,"ControlType.ACCENT"),_()(M,C.SECONDARY,"ControlType.ACCENT with priority Priority.SECONDARY"),M),W=Object.keys(z),V=function(e){return z[e]||e},B=["block","children","className","disabled","htmlType","loading","priority","size","type"];function q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function H(e){for(var t,r=1;r<arguments.length;r++)t=null==arguments[r]?{}:arguments[r],r%2?q(Object(t),!0).forEach((function(r){_()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):q(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}var Y=function(e){var t=e.block,r=e.children,n=e.className,a=e.disabled,i=e.htmlType,s=e.loading,c=e.priority,l=e.size,u=e.type,f=T()(e,B);!function(e){var t=e.size,r=e.type;Object(D.a)("Button has deprecated the `Size.EXTRA_SMALL` value for the `size` prop. Please use Size.SMALL instead.",t===g.EXTRA_SMALL),Object(D.a)("Button has deprecated the ".concat(r," value for the `type` prop. Please update to ").concat(G[r],"."),W.includes(r))}(e);var d=V(u),p=function(e,t){var r=V(t);return U[t]?U[t]:e===v.TERTIARY&&r!==m.ACCENT?v.SECONDARY:e}(c,u),h=k()("btn btn-".concat(l),"np-btn np-btn-".concat(l),{"btn-loading":s,"btn-block np-btn-block":t},S[d],L[p],n);return Object(o.jsxs)("button",H(H({type:i,className:h,disabled:a||s},f),{},{children:[r,s&&Object(o.jsx)("span",{className:k()("btn-loader",{"m-l-2":!t})})]}))};Y.propTypes={block:N.a.bool,children:N.a.node.isRequired,className:N.a.string,disabled:N.a.bool,htmlType:N.a.oneOf(["submit","reset","button"]),loading:N.a.bool,onClick:P()(N.a.func,(function(e){return"submit"!==e.htmlType})),priority:N.a.oneOf(["primary","secondary","tertiary"]),type:N.a.oneOf(["accent","positive","negative","primary","pay","secondary","danger","link"]),size:N.a.oneOf(["xs","sm","md","lg"])},Y.defaultProps={block:!1,className:null,disabled:!1,htmlType:"button",loading:!1,priority:v.PRIMARY,size:g.MEDIUM,type:m.ACCENT};var X=Y,K=function(e,t){return(K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};
23
23
  /*! *****************************************************************************
24
24
  Copyright (c) Microsoft Corporation.
25
25
 
@@ -48,5 +48,5 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
48
48
  See the Apache Version 2.0 License for specific language governing permissions
49
49
  and limitations under the License.
50
50
  ***************************************************************************** */
51
- function $n(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}var Jn,Zn,Qn=function(e){var t=e.size,r=void 0===t?16:t,n=e.className,o=void 0===n?void 0:n,a=e.title,s=void 0===a?void 0:a,c=e.filled,l=void 0!==c&&c,u=$n(e,["size","className","title","filled"]);return i.a.createElement("span",{className:"tw-icon tw-icon-cross-circle "+(o||""),"aria-hidden":s?void 0:"true",role:s?void 0:"presentation","data-testid":u["data-testid"]},i.a.createElement("svg",{width:String(r),height:String(r),fill:"currentColor",focusable:"false"},16===Number(r)&&!1===l&&i.a.createElement(i.a.Fragment,null,i.a.createElement("path",{d:"M6.869 8L4.434 5.566l1.132-1.132L8 6.87l2.434-2.435 1.132 1.132L9.13 8l2.435 2.434-1.132 1.132L8 9.13l-2.434 2.435-1.132-1.132L6.87 8z"}),i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16A8 8 0 108 0a8 8 0 000 16zm0-1.6A6.4 6.4 0 108 1.6a6.4 6.4 0 000 12.8z"})),24===Number(r)&&!1===l&&i.a.createElement(i.a.Fragment,null,i.a.createElement("path",{d:"M10.586 12L7.293 8.707l1.414-1.414L12 10.586l3.293-3.293 1.414 1.414L13.414 12l3.293 3.293-1.414 1.414L12 13.414l-3.293 3.293-1.414-1.414L10.586 12z"}),i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10zm0-2a8 8 0 100-16 8 8 0 000 16z"})),16===Number(r)&&l&&i.a.createElement(i.a.Fragment,null,i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16A8 8 0 108 0a8 8 0 000 16zm2.434-4.434L8 9.13l-2.434 2.435-1.132-1.132L6.87 8 4.434 5.566l1.132-1.132L8 6.87l2.434-2.435 1.132 1.132L9.13 8l2.435 2.434-1.132 1.132z"})),24===Number(r)&&l&&i.a.createElement(i.a.Fragment,null,i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10zm3.293-5.293L12 13.414l-3.293 3.293-1.414-1.414L10.586 12 7.293 8.707l1.414-1.414L12 10.586l3.293-3.293 1.414 1.414L13.414 12l3.293 3.293-1.414 1.414z"}))),s&&i.a.createElement("span",{className:"sr-only"},s))},eo=function(e){var t=e.size,r=void 0===t?16:t,n=e.className,o=void 0===n?void 0:n,a=e.title,s=void 0===a?void 0:a,c=$n(e,["size","className","title"]);return i.a.createElement("span",{className:"tw-icon tw-icon-cross "+(o||""),"aria-hidden":s?void 0:"true",role:s?void 0:"presentation","data-testid":c["data-testid"]},i.a.createElement("svg",{width:String(r),height:String(r),fill:"currentColor",focusable:"false"},16===Number(r)&&i.a.createElement(i.a.Fragment,null,i.a.createElement("path",{d:"M9.131 8l5.435-5.434-1.132-1.132L8 6.87 2.566 1.434 1.434 2.566 6.87 8l-5.435 5.434 1.132 1.132L8 9.13l5.434 5.435 1.132-1.132L9.13 8z"})),24===Number(r)&&i.a.createElement(i.a.Fragment,null,i.a.createElement("path",{d:"M12 13.414l7.293 7.293 1.414-1.414L13.414 12l7.293-7.293-1.414-1.414L12 10.586 4.707 3.293 3.293 4.707 10.586 12l-7.293 7.293 1.414 1.414L12 13.414z"}))),s&&i.a.createElement("span",{className:"sr-only"},s))},to=function(e){var t=e.size,r=void 0===t?16:t,n=e.className,o=void 0===n?void 0:n,a=e.title,s=void 0===a?void 0:a,c=$n(e,["size","className","title"]);return i.a.createElement("span",{className:"tw-icon tw-icon-help-circle "+(o||""),"aria-hidden":s?void 0:"true",role:s?void 0:"presentation","data-testid":c["data-testid"]},i.a.createElement("svg",{width:String(r),height:String(r),fill:"currentColor",focusable:"false"},16===Number(r)&&i.a.createElement(i.a.Fragment,null,i.a.createElement("path",{d:"M9 11a1 1 0 11-2 0 1 1 0 012 0zM10.443 4.8A2.3 2.3 0 007.3 3.96L5.136 5.21l.8 1.385L8.1 5.345a.7.7 0 01.7 1.212l-2.165 1.25.8 1.386L9.6 7.943a2.3 2.3 0 00.842-3.142z"}),i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16A8 8 0 108 0a8 8 0 000 16zm0-1.6A6.4 6.4 0 108 1.6a6.4 6.4 0 000 12.8z"})),24===Number(r)&&i.a.createElement(i.a.Fragment,null,i.a.createElement("path",{d:"M13.2 16a1.2 1.2 0 11-2.4 0 1.2 1.2 0 012.4 0zM15.196 8.232a3 3 0 00-4.098-1.098L8.5 8.634l1 1.732 2.598-1.5a1 1 0 111 1.732l-2.598 1.5 1 1.732 2.598-1.5a3 3 0 001.098-4.098z"}),i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10zm0-2a8 8 0 100-16 8 8 0 000 16z"}))),s&&i.a.createElement("span",{className:"sr-only"},s))};!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(Jn||(Jn={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(Zn||(Zn={}));var ro=function(e){var t=hr(),r=e.value,n=e.children,o=Z(e,["value","children"]);return n(t.formatNumberToParts(r,o))};ro.displayName="FormattedNumberParts";function no(e){var t=function(t){var r=hr(),n=t.value,o=t.children,a=Z(t,["value","children"]),i="string"==typeof n?new Date(n||0):n;return o("formatDate"===e?r.formatDateToParts(i,a):r.formatTimeToParts(i,a))};return t.displayName=Zn[e],t}function oo(e){var t=function(t){var r=hr(),n=t.value,o=t.children,i=Z(t,["value","children"]),s=r[e](n,i);if("function"==typeof o)return o(s);var c=r.textComponent||a.Fragment;return a.createElement(c,null,s)};return t.displayName=Jn[e],t}ro.displayName="FormattedNumberParts";oo("formatDate"),oo("formatTime"),oo("formatNumber"),oo("formatList"),oo("formatDisplayName"),no("formatDate"),no("formatTime");var ao={ariaLabel:{id:"neptune.CloseButton.ariaLabel"}},io=Object(a.forwardRef)((function(e,t){var r=hr(),n=e.onClick,a=e.className,i=e.size,s=e.filled,c=e["aria-label"]||r.formatMessage(ao.ariaLabel);return Object(o.jsx)("button",{ref:t,type:"button",className:k()("np-close-button close btn-link text-no-decoration",{"np-close-button--large":i===io.Size.LARGE},a),"aria-label":c,onClick:n,children:s?Object(o.jsx)(Qn,{size:i,filled:!0}):Object(o.jsx)(eo,{size:i})})}));io.Size={SMALL:16,LARGE:24},io.propTypes={onClick:N.a.func.isRequired,className:N.a.string,size:N.a.oneOf(Object.values(io.Size)),filled:N.a.bool,"aria-label":N.a.string},io.defaultProps={className:null,size:io.Size.LARGE,filled:!1,"aria-label":void 0};var so=io;function co(){return"undefined"==typeof window}var lo=function(e){function t(e){null!==s.current&&(s.current.style.transform="translateY(".concat(e,"px)"))}function r(){p(!1),h.current=0,null!==s.current&&s.current.style.removeProperty("transform"),e.onClose&&e.onClose()}function n(){cancelAnimationFrame(m.current),p(!1),h.current>50&&i()?r():t(0),h.current=0}function i(){var e;return void 0!==(null==l||null===(e=l.current)||void 0===e?void 0:e.scrollTop)&&l.current.scrollTop<=1}var s=Object(a.useRef)(null),c=Object(a.useRef)(null),l=Object(a.useRef)(null),u=Object(a.useState)(!1),f=rn()(u,2),d=f[0],p=f[1],m=Object(a.useRef)(0),h=Object(a.useRef)(0),v=Object(a.useRef)(0);An({attachListener:e.open&&!co(),callback:function(){if(null!==c.current){var e=c.current.classList;i()?e.remove("np-bottom-sheet--top-bar--shadow"):e.add("np-bottom-sheet--top-bar--shadow")}},eventType:"scroll",parent:co()?void 0:document});var g=function(e){return function(t){v.current=(e?t.touches[0]:t).clientY,p(!0)}},y=function(e){return function(r){if(d){var n=function(e){return e-v.current}((e?r.touches[0]:r).clientY);n>0&&i()&&(h.current=n,m.current=requestAnimationFrame((function(){void 0!==m.current&&null!==s.current&&t(n)})))}}};return Object(o.jsx)(Bn,{open:e.open,fadeContentOnEnter:!0,fadeContentOnExit:!0,onClose:r,children:Object(o.jsxs)(Kn,{ref:s,open:e.open,position:en.BOTTOM,className:k()("np-bottom-sheet",e.className),role:"dialog",onTouchStart:g(!0),onTouchMove:y(!0),onTouchEnd:n,onMouseDown:g(!1),onMouseMove:y(!1),onMouseUp:n,children:[Object(o.jsxs)("div",{ref:c,className:"np-bottom-sheet--top-bar",children:[Object(o.jsx)("div",{className:"np-bottom-sheet--handler"}),Object(o.jsx)(so,{size:16,className:"sr-only np-bottom-sheet--close-btn",onClick:r})]}),Object(o.jsx)("div",{ref:l,style:function(){var e=co()?0:window.innerHeight,t="".concat(.01*e*100,"px");return{maxHeight:"calc(".concat(t," - ").concat("64px"," - ").concat("32px",")")}}(),className:"np-bottom-sheet--content",children:e.children})]})})};function uo(e,t){void 0===t&&(t=!1);var r=e.getBoundingClientRect();return{width:r.width/1,height:r.height/1,top:r.top/1,right:r.right/1,bottom:r.bottom/1,left:r.left/1,x:r.left/1,y:r.top/1}}function fo(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function po(e){var t=fo(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function mo(e){return e instanceof fo(e).Element||e instanceof Element}function ho(e){return e instanceof fo(e).HTMLElement||e instanceof HTMLElement}function vo(e){return"undefined"!=typeof ShadowRoot&&(e instanceof fo(e).ShadowRoot||e instanceof ShadowRoot)}function go(e){return e?(e.nodeName||"").toLowerCase():null}function yo(e){return((mo(e)?e.ownerDocument:e.document)||window.document).documentElement}function bo(e){return uo(yo(e)).left+po(e).scrollLeft}function wo(e){return fo(e).getComputedStyle(e)}function Oo(e){var t=wo(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Eo(e,t,r){void 0===r&&(r=!1);var n,o,a=ho(t),i=ho(t)&&function(e){var t=e.getBoundingClientRect(),r=t.width/e.offsetWidth||1,n=t.height/e.offsetHeight||1;return 1!==r||1!==n}(t),s=yo(t),c=uo(e,i),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!r)&&(("body"!==go(t)||Oo(s))&&(l=(n=t)!==fo(n)&&ho(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:po(n)),ho(t)?((u=uo(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=bo(s))),{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function _o(e){var t=uo(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function xo(e){return"html"===go(e)?e:e.assignedSlot||e.parentNode||(vo(e)?e.host:null)||yo(e)}function To(e,t){var r;void 0===t&&(t=[]);var n=function e(t){return["html","body","#document"].indexOf(go(t))>=0?t.ownerDocument.body:ho(t)&&Oo(t)?t:e(xo(t))}(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),a=fo(n),i=o?[a].concat(a.visualViewport||[],Oo(n)?n:[]):n,s=t.concat(i);return o?s:s.concat(To(xo(i)))}function jo(e){return["table","td","th"].indexOf(go(e))>=0}function ko(e){return ho(e)&&"fixed"!==wo(e).position?e.offsetParent:null}function Ro(e){for(var t=fo(e),r=ko(e);r&&jo(r)&&"static"===wo(r).position;)r=ko(r);return r&&("html"===go(r)||"body"===go(r)&&"static"===wo(r).position)?t:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&ho(e)&&"fixed"===wo(e).position)return null;for(var r=xo(e);ho(r)&&["html","body"].indexOf(go(r))<0;){var n=wo(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var No="top",Ao="bottom",Po="right",Co="left",So=[No,Ao,Po,Co],Lo=So.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),Fo=[].concat(So,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),Io=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Mo(e){var t=new Map,r=new Set,n=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||function e(o){r.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(n){if(!r.has(n)){var o=t.get(n);o&&e(o)}})),n.push(o)}(e)})),n}var Do={placement:"bottom",modifiers:[],strategy:"absolute"};function zo(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Uo(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,a=void 0===o?Do:o;return function(e,t,r){void 0===r&&(r=a);var o,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Do,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],l=!1,u={state:s,setOptions:function(r){var o="function"==typeof r?r(s.options):r;f(),s.options=Object.assign({},a,s.options,o),s.scrollParents={reference:mo(e)?To(e):e.contextElement?To(e.contextElement):[],popper:To(t)};var i=function(e){var t=Mo(e);return Io.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}(function(e){var t=e.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,s.options.modifiers)));return s.orderedModifiers=i.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var a=o({state:s,name:t,instance:u,options:n});c.push(a||function(){})}})),u.update()},forceUpdate:function(){if(!l){var e=s.elements,t=e.reference,r=e.popper;if(zo(t,r)){s.rects={reference:Eo(t,Ro(r),"fixed"===s.options.strategy),popper:_o(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var o=s.orderedModifiers[n],a=o.fn,i=o.options,c=void 0===i?{}:i,f=o.name;"function"==typeof a&&(s=a({state:s,options:c,name:f,instance:u})||s)}else s.reset=!1,n=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){f(),l=!0}};if(!zo(e,t))return u;function f(){c.forEach((function(e){return e()})),c=[]}return u.setOptions(r).then((function(e){!l&&r.onFirstUpdate&&r.onFirstUpdate(e)})),u}}var Go={passive:!0};var Wo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=void 0===o||o,i=n.resize,s=void 0===i||i,c=fo(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",r.update,Go)})),s&&c.addEventListener("resize",r.update,Go),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",r.update,Go)})),s&&c.removeEventListener("resize",r.update,Go)}},data:{}};function Vo(e){return e.split("-")[0]}function Bo(e){return e.split("-")[1]}function qo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ho(e){var t,r=e.reference,n=e.element,o=e.placement,a=o?Vo(o):null,i=o?Bo(o):null,s=r.x+r.width/2-n.width/2,c=r.y+r.height/2-n.height/2;switch(a){case No:t={x:s,y:r.y-n.height};break;case Ao:t={x:s,y:r.y+r.height};break;case Po:t={x:r.x+r.width,y:c};break;case Co:t={x:r.x-n.width,y:c};break;default:t={x:r.x,y:r.y}}var l=a?qo(a):null;if(null!=l){var u="y"===l?"height":"width";switch(i){case"start":t[l]=t[l]-(r[u]/2-n[u]/2);break;case"end":t[l]=t[l]+(r[u]/2-n[u]/2)}}return t}var Yo={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Ho({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},Xo=Math.max,Ko=Math.min,$o=Math.round,Jo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Zo(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,f=!0===u?function(e){var t=e.x,r=e.y,n=window.devicePixelRatio||1;return{x:$o($o(t*n)/n)||0,y:$o($o(r*n)/n)||0}}(i):"function"==typeof u?u(i):i,d=f.x,p=void 0===d?0:d,m=f.y,h=void 0===m?0:m,v=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),y=Co,b=No,w=window;if(l){var O=Ro(r),E="clientHeight",_="clientWidth";O===fo(r)&&"static"!==wo(O=yo(r)).position&&"absolute"===s&&(E="scrollHeight",_="scrollWidth"),O=O,o!==No&&(o!==Co&&o!==Po||"end"!==a)||(b=Ao,h-=O[E]-n.height,h*=c?1:-1),o!==Co&&(o!==No&&o!==Ao||"end"!==a)||(y=Po,p-=O[_]-n.width,p*=c?1:-1)}var x,T=Object.assign({position:s},l&&Jo);return c?Object.assign({},T,((x={})[b]=g?"0":"",x[y]=v?"0":"",x.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",x)):Object.assign({},T,((t={})[b]=g?h+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var Qo={left:"right",right:"left",bottom:"top",top:"bottom"};function ea(e){return e.replace(/left|right|bottom|top/g,(function(e){return Qo[e]}))}var ta={start:"end",end:"start"};function ra(e){return e.replace(/start|end/g,(function(e){return ta[e]}))}function na(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&vo(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function oa(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function aa(e,t){return"viewport"===t?oa(function(e){var t=fo(e),r=yo(e),n=t.visualViewport,o=r.clientWidth,a=r.clientHeight,i=0,s=0;return n&&(o=n.width,a=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=n.offsetLeft,s=n.offsetTop)),{width:o,height:a,x:i+bo(e),y:s}}(e)):ho(t)?function(e){var t=uo(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):oa(function(e){var t,r=yo(e),n=po(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Xo(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Xo(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+bo(e),c=-n.scrollTop;return"rtl"===wo(o||r).direction&&(s+=Xo(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:c}}(yo(e)))}function ia(e,t,r){var n="clippingParents"===t?function(e){var t=To(xo(e)),r=["absolute","fixed"].indexOf(wo(e).position)>=0&&ho(e)?Ro(e):e;return mo(r)?t.filter((function(e){return mo(e)&&na(e,r)&&"body"!==go(e)})):[]}(e):[].concat(t),o=[].concat(n,[r]),a=o[0],i=o.reduce((function(t,r){var n=aa(e,r);return t.top=Xo(n.top,t.top),t.right=Ko(n.right,t.right),t.bottom=Ko(n.bottom,t.bottom),t.left=Xo(n.left,t.left),t}),aa(e,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function sa(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ca(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function la(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,a=r.boundary,i=void 0===a?"clippingParents":a,s=r.rootBoundary,c=void 0===s?"viewport":s,l=r.elementContext,u=void 0===l?"popper":l,f=r.altBoundary,d=void 0!==f&&f,p=r.padding,m=void 0===p?0:p,h=sa("number"!=typeof m?m:ca(m,So)),v="popper"===u?"reference":"popper",g=e.rects.popper,y=e.elements[d?v:u],b=ia(mo(y)?y:y.contextElement||yo(e.elements.popper),i,c),w=uo(e.elements.reference),O=Ho({reference:w,element:g,strategy:"absolute",placement:o}),E=oa(Object.assign({},g,O)),_="popper"===u?E:w,x={top:b.top-_.top+h.top,bottom:_.bottom-b.bottom+h.bottom,left:b.left-_.left+h.left,right:_.right-b.right+h.right},T=e.modifiersData.offset;if("popper"===u&&T){var j=T[o];Object.keys(x).forEach((function(e){var t=[Po,Ao].indexOf(e)>=0?1:-1,r=[No,Ao].indexOf(e)>=0?"y":"x";x[e]+=j[r]*t}))}return x}function ua(e,t,r){return Xo(e,Ko(t,r))}function fa(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function da(e){return[No,Po,Ao,Co].some((function(t){return e[t]>=0}))}var pa,ma=Uo({defaultModifiers:[Wo,Yo,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,a=r.adaptive,i=void 0===a||a,s=r.roundOffsets,c=void 0===s||s,l={placement:Vo(t.placement),variation:Bo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Zo(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Zo(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];ho(o)&&go(o)&&(Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});ho(n)&&go(n)&&(Object.assign(n.style,a),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=void 0===o?[0,0]:o,i=Fo.reduce((function(e,r){return e[r]=function(e,t,r){var n=Vo(e),o=[Co,No].indexOf(n)>=0?-1:1,a="function"==typeof r?r(Object.assign({},t,{placement:e})):r,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[Co,Po].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}(r,t.rects,a),e}),{}),s=i[t.placement],c=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=i}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=void 0===o||o,i=r.altAxis,s=void 0===i||i,c=r.fallbackPlacements,l=r.padding,u=r.boundary,f=r.rootBoundary,d=r.altBoundary,p=r.flipVariations,m=void 0===p||p,h=r.allowedAutoPlacements,v=t.options.placement,g=Vo(v),y=c||(g===v||!m?[ea(v)]:function(e){if("auto"===Vo(e))return[];var t=ea(e);return[ra(e),t,ra(t)]}(v)),b=[v].concat(y).reduce((function(e,r){return e.concat("auto"===Vo(r)?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,l=void 0===c?Fo:c,u=Bo(n),f=u?s?Lo:Lo.filter((function(e){return Bo(e)===u})):So,d=f.filter((function(e){return l.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,r){return t[r]=la(e,{placement:r,boundary:o,rootBoundary:a,padding:i})[Vo(r)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:r,boundary:u,rootBoundary:f,padding:l,flipVariations:m,allowedAutoPlacements:h}):r)}),[]),w=t.rects.reference,O=t.rects.popper,E=new Map,_=!0,x=b[0],T=0;T<b.length;T++){var j=b[T],k=Vo(j),R="start"===Bo(j),N=[No,Ao].indexOf(k)>=0,A=N?"width":"height",P=la(t,{placement:j,boundary:u,rootBoundary:f,altBoundary:d,padding:l}),C=N?R?Po:Co:R?Ao:No;w[A]>O[A]&&(C=ea(C));var S=ea(C),L=[];if(a&&L.push(P[k]<=0),s&&L.push(P[C]<=0,P[S]<=0),L.every((function(e){return e}))){x=j,_=!1;break}E.set(j,L)}if(_)for(var F=function(e){var t=b.find((function(t){var r=E.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},I=m?3:1;I>0;I--){if("break"===F(I))break}t.placement!==x&&(t.modifiersData[n]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=void 0===o||o,i=r.altAxis,s=void 0!==i&&i,c=r.boundary,l=r.rootBoundary,u=r.altBoundary,f=r.padding,d=r.tether,p=void 0===d||d,m=r.tetherOffset,h=void 0===m?0:m,v=la(t,{boundary:c,rootBoundary:l,padding:f,altBoundary:u}),g=Vo(t.placement),y=Bo(t.placement),b=!y,w=qo(g),O="x"===w?"y":"x",E=t.modifiersData.popperOffsets,_=t.rects.reference,x=t.rects.popper,T="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,j={x:0,y:0};if(E){if(a||s){var k="y"===w?No:Co,R="y"===w?Ao:Po,N="y"===w?"height":"width",A=E[w],P=E[w]+v[k],C=E[w]-v[R],S=p?-x[N]/2:0,L="start"===y?_[N]:x[N],F="start"===y?-x[N]:-_[N],I=t.elements.arrow,M=p&&I?_o(I):{width:0,height:0},D=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=D[k],U=D[R],G=ua(0,_[N],M[N]),W=b?_[N]/2-S-G-z-T:L-G-z-T,V=b?-_[N]/2+S+G+U+T:F+G+U+T,B=t.elements.arrow&&Ro(t.elements.arrow),q=B?"y"===w?B.clientTop||0:B.clientLeft||0:0,H=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,Y=E[w]+W-H-q,X=E[w]+V-H;if(a){var K=ua(p?Ko(P,Y):P,A,p?Xo(C,X):C);E[w]=K,j[w]=K-A}if(s){var $="x"===w?No:Co,J="x"===w?Ao:Po,Z=E[O],Q=Z+v[$],ee=Z-v[J],te=ua(p?Ko(Q,Y):Q,Z,p?Xo(ee,X):ee);E[O]=te,j[O]=te-Z}}t.modifiersData[n]=j}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,s=Vo(r.placement),c=qo(s),l=[Co,Po].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(e,t){return sa("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ca(e,So))}(o.padding,r),f=_o(a),d="y"===c?No:Co,p="y"===c?Ao:Po,m=r.rects.reference[l]+r.rects.reference[c]-i[c]-r.rects.popper[l],h=i[c]-r.rects.reference[c],v=Ro(a),g=v?"y"===c?v.clientHeight||0:v.clientWidth||0:0,y=m/2-h/2,b=u[d],w=g-f[l]-u[p],O=g/2-f[l]/2+y,E=ua(b,O,w),_=c;r.modifiersData[n]=((t={})[_]=E,t.centerOffset=E-O,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&na(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=la(t,{elementContext:"reference"}),s=la(t,{altBoundary:!0}),c=fa(i,n),l=fa(s,o,a),u=da(c),f=da(l);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}}]}),ha=r(117),va=r.n(ha),ga=function(e){return e.reduce((function(e,t){var r=t[0],n=t[1];return e[r]=n,e}),{})},ya="undefined"!=typeof window&&window.document&&window.document.createElement?a.useLayoutEffect:a.useEffect,ba=[];function wa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oa(e){for(var t,r=1;r<arguments.length;r++)t=null==arguments[r]?{}:arguments[r],r%2?wa(Object(t),!0).forEach((function(r){_()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):wa(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}var Ea=[0,16],_a=(pa={},_()(pa,en.TOP,[en.BOTTOM,en.RIGHT,en.LEFT]),_()(pa,en.BOTTOM,[en.TOP,en.RIGHT,en.LEFT]),_()(pa,en.LEFT,[en.RIGHT,en.TOP,en.BOTTOM]),_()(pa,en.RIGHT,[en.LEFT,en.TOP,en.BOTTOM]),pa),xa=Object(a.forwardRef)((function(e,t){var r=e.arrow,n=e.children,i=e.className,s=e.open,c=e.onClose,l=e.position,u=e.anchorRef,f=Object(a.useState)(null),d=rn()(f,2),p=d[0],m=d[1],h=Object(a.useState)(null),v=rn()(h,2),g=v[0],y=v[1],b=[];r&&(b.push({name:"arrow",options:{element:p,options:{padding:8}}}),b.push({name:"offset",options:{offset:Ea}})),_a[l]&&b.push({name:"flip",options:{fallbackPlacements:_a[l]}});var w=function(e,t,r){void 0===r&&(r={});var n=a.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||ba},i=a.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=i[0],c=i[1],l=a.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,r=Object.keys(t.elements);c({styles:ga(r.map((function(e){return[e,t.styles[e]||{}]}))),attributes:ga(r.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),u=a.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[l,{name:"applyStyles",enabled:!1}])};return va()(n.current,e)?n.current||e:(n.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,l]),f=a.useRef();return ya((function(){f.current&&f.current.setOptions(u)}),[u]),ya((function(){if(null!=e&&null!=t){var n=(r.createPopper||ma)(e,t,u);return f.current=n,function(){n.destroy(),f.current=null}}}),[e,t,r.createPopper]),{state:f.current?f.current.state:null,styles:s.styles,attributes:s.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}}(u.current,g,{placement:l,modifiers:b}),O=w.styles,E=w.attributes,_=w.forceUpdate;return Object(a.useEffect)((function(){s&&_&&_()}),[s]),Object(o.jsx)(Bn,{open:s,transparent:!0,fadeContentOnEnter:!0,fadeContentOnExit:!0,onClose:c,children:Object(o.jsx)("div",Oa(Oa({ref:y,style:Oa({},O.popper)},E.popper),{},{className:k()("np-panel",{"np-panel--open":s},i),children:Object(o.jsxs)("div",{ref:t,className:k()("np-panel__content"),children:[n,r&&Object(o.jsx)("div",{ref:m,className:k()("np-panel__arrow"),style:O.arrow})]})}))})}));xa.Position={BOTTOM:en.BOTTOM,LEFT:en.LEFT,RIGHT:en.RIGHT,TOP:en.TOP},xa.defaultProps={arrow:!1,className:void 0,open:!1,position:xa.Position.TOP},xa.propTypes={arrow:N.a.bool,className:N.a.string,children:N.a.node.isRequired,open:N.a.bool,onClose:N.a.func.isRequired,position:N.a.oneOf([xa.Position.BOTTOM,xa.Position.LEFT,xa.Position.RIGHT,xa.Position.TOP]),anchorRef:N.a.shape({current:N.a.any}).isRequired};var Ta=xa,ja=function(e){var t=e.anchorRef,r=e.arrow,n=e.children,a=e.className,i=e.onClose,s=e.open,c=e.position,l="undefined"==typeof window?void 0:window,u=un({ref:l});return rn()(u,1)[0]>=Qr.SMALL?Object(o.jsx)(Ta,{arrow:r,open:s,position:c,anchorRef:t,className:a,onClose:i,children:n},"panel"):Object(o.jsx)(lo,{open:s,className:a,onClose:i,children:n},"bottomSheet")};ja.defaultProps={arrow:!1,className:void 0,open:!1,position:en.TOP},ja.propTypes={arrow:N.a.bool,children:N.a.node.isRequired,className:N.a.string,onClose:N.a.func.isRequired,open:N.a.bool,anchorRef:N.a.shape({current:N.a.shape({})}).isRequired,position:N.a.oneOf(["top","right","left","bottom"])};var ka,Ra=ja,Na=function(e){var t=e.children,r=e.className,n=e.content,i=e.preferredPlacement,s=e.title;Aa({preferredPlacement:i});var c=Object(a.useRef)(null),l=Object(a.useState)(!1),u=rn()(l,2),f=u[0],d=u[1];return Object(o.jsxs)("span",{className:k()("np-popover",r),children:[Object(o.jsx)("span",{ref:c,className:"d-inline-block",children:Object(a.cloneElement)(t,{onClick:function(){var e;null!=t&&null!==(e=t.props)&&void 0!==e&&e.onClick&&t.props.onClick(),d(!f)}})}),Object(o.jsx)(Ra,{open:f,anchorRef:c,position:Ca[i]||i,arrow:!0,className:"np-popover__container",onClose:function(){return d(!1)},children:Object(o.jsxs)("div",{className:"np-popover__content","aria-hidden":!f,role:"tooltip",children:[s&&Object(o.jsx)("div",{role:"heading","aria-level":1,className:"np-popover__title m-b-1",children:s}),n]})})]})},Aa=function(e){var t=e.preferredPlacement;Object(D.a)("Popover has deprecated ".concat(t," value for the 'preferredPlacement' prop. Please use ").concat(Ca[t]," instead."),Ca[t])};Na.defaultProps={className:void 0,preferredPlacement:en.RIGHT,title:void 0},Na.propTypes={children:N.a.node.isRequired,className:N.a.string,content:N.a.node.isRequired,preferredPlacement:N.a.oneOf(["top","right","bottom","left","left-top","right-top","bottom-right","bottom-left"]),title:N.a.node};var Pa,Ca=(ka={},_()(ka,en.BOTTOM_LEFT,en.BOTTOM),_()(ka,en.BOTTOM_RIGHT,en.BOTTOM),_()(ka,en.LEFT_TOP,en.TOP),_()(ka,en.RIGHT_TOP,en.TOP),ka),Sa=Na,La=r(115),Fa=r.n(La),Ia=r(116),Ma=function(){return(Ma=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Da=function(e){var t=e.name,r=e.logo,n=e.isPartner,a=void 0!==n&&n,i=e.locale,c=e.styles,l=Ma(Ma({},Fa.a),c);return Object(o.jsx)(mr,Ma({messages:Ia[i],locale:i,defaultLocale:s.DEFAULT},{children:Object(o.jsxs)("span",Ma({className:l.logoContainer},{children:[Object(o.jsx)("img",{className:l.providerLogo,src:r,alt:t},void 0),a&&Object(o.jsx)("div",{children:Object(o.jsx)(Sa,Ma({title:Object(o.jsx)(br,{id:"powered-by-wise"},void 0),content:Object(o.jsx)(br,{id:"powered-by-wise-description"},void 0)},{children:Object(o.jsxs)("span",Ma({className:l.poweredByTw},{children:[Object(o.jsx)("span",Ma({className:l.poweredByTwText},{children:Object(o.jsx)(br,{id:"powered-by"},void 0)}),void 0),Object(o.jsx)("img",{className:l.twLogo,src:"https://wise.com/public-resources/assets/logos/wise/brand_logo.svg",alt:"Wise"},void 0)]}),void 0)}),void 0)},void 0)]}),void 0)}),void 0)};!function(e){e.HIDDEN="HIDDEN",e.MARKETED="MARKETED"}(Pa||(Pa={}));var za,Ua=r(22),Ga=r.n(Ua);r(182);!function(e){e.CONTENT="content",e.VIEWPORT="viewport"}(za||(za={}));var Wa=["title","body","footer","onClose","className","open","size","scroll","position"];function Va(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ba(e){for(var t,r=1;r<arguments.length;r++)t=null==arguments[r]?{}:arguments[r],r%2?Va(Object(t),!0).forEach((function(r){_()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Va(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}var qa=function(e){var t=e.title,r=e.body,n=e.footer,a=e.onClose,i=e.className,s=e.open,c=e.size,l=e.scroll,u=e.position,f=T()(e,Wa),d=function(e){return i.split(" ").includes(e)},p=d("compact"),m=d("no-divider");return Object(o.jsx)(Bn,{open:s,scrollable:l===za.CONTENT,className:k()("d-flex","justify-content-center"),onClose:a,children:Object(o.jsx)(Tn,{appear:!0,in:s,classNames:{enterDone:"in"},timeout:150,unmountOnExit:!0,children:Object(o.jsx)("div",Ba(Ba({className:k()("tw-modal",{"tw-modal--content":l===za.CONTENT,"align-self-center":u===en.CENTER},"fade","outline-none",i)},f),{},{children:Object(o.jsx)("div",{className:k()("tw-modal-dialog","d-flex",_()({},"tw-modal-".concat(c),c)),"aria-modal":!0,role:"dialog",children:Object(o.jsxs)("div",{className:k()("tw-modal-content","d-flex","flex-column","justify-content-between",{"tw-modal-compact":p,"tw-modal-no-title":!t}),children:[Object(o.jsxs)("div",{className:k()("tw-modal-header","d-flex","align-items-center","justify-content-between","flex-wrap",{"modal--withoutborder":!t||m}),children:[Object(o.jsx)("h4",{className:"tw-modal-title",children:t}),Object(o.jsx)(so,{onClick:a})]}),Object(o.jsx)("div",{className:"tw-modal-body",children:r}),n&&Object(o.jsx)("div",{className:k()("tw-modal-footer","d-flex","align-items-center","flex-wrap",{"modal--withoutborder":m}),children:n})]})})}))})})};qa.propTypes={title:N.a.node,body:N.a.node.isRequired,footer:N.a.node,size:N.a.oneOf(["sm","md","lg","xl"]),onClose:N.a.func.isRequired,className:N.a.string,open:N.a.bool.isRequired,scroll:N.a.oneOf(["content","viewport"]),position:N.a.oneOf(["top","center"])},qa.defaultProps={title:null,footer:null,size:g.MEDIUM,className:"",scroll:za.VIEWPORT,position:en.CENTER};var Ha,Ya=qa;function Xa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ka(e){for(var t,r=1;r<arguments.length;r++)t=null==arguments[r]?{}:arguments[r],r%2?Xa(Object(t),!0).forEach((function(r){_()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Xa(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}!function(e){e.POPOVER="POPOVER",e.MODAL="MODAL"}(Ha||(Ha={}));var $a=function(e){var t=e.className,r=e.content,n=e.onClick,i=e.presentation,s=e.size,c=e.title,l=Object(a.useState)(!1),u=rn()(l,2),f=u[0],d=u[1],p=i===Ha.MODAL,m=s===g.SMALL,h={"aria-label":e["aria-label"],className:"btn-unstyled",children:Object(o.jsx)(to,{size:m?16:24})};return Object(o.jsx)("span",{className:k()(t,"np-info",{"np-info__small":m,"np-info__large":!m}),children:p?Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("button",Ka({type:"button",onClick:function(){d(!f),n&&n()}},h)),Object(o.jsx)(Ya,{body:r,open:f,title:c,onClose:function(){return d(!1)}})]}):Object(o.jsx)(Sa,{content:r,preferredPlacement:en.BOTTOM,title:c,children:Object(o.jsx)("button",Ka(Ka({type:"button"},h),{},{onClick:function(){n&&n()}}))})})};$a.propTypes={"aria-label":N.a.string.isRequired,className:N.a.string,content:N.a.node,onClick:N.a.func,presentation:N.a.oneOf(["MODAL","POPOVER"]),size:N.a.oneOf(["sm","lg"]),title:N.a.node},$a.defaultProps={className:void 0,content:void 0,onClick:void 0,presentation:Ha.POPOVER,size:g.SMALL,title:void 0};var Ja=$a,Za=r(123),Qa=r(7),ei=r.n(Qa),ti=function(){return(ti=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ri=function(e){var t=e.quote,r=e.midmarketRate,n=e.marketedFeesAmount,a=e.hiddenFeesAmount,i=e.urlLocale,s=Nr("/"+i+"/compare?sourceCurrency="+t.route.sourceCurrency+"&targetCurrency="+t.route.targetCurrency);return Object(o.jsxs)("div",ti({className:ei.a.feeMakeupPopover__contentContainer},{children:[Object(o.jsx)("h2",ti({className:ei.a.feeMakeupPopover__fontHeader},{children:Object(o.jsx)(br,{id:"what-makes-up-this-fee"},void 0)}),void 0),Object(o.jsx)("p",ti({className:ei.a.feeMakeupPopover__fontParagraph},{children:Object(o.jsx)(br,{id:"conversion-fees-details",values:{sendAmount:Wr(t.sendAmount.value,t.sendAmount.currency),providerName:t.provider.name,marketedFees:Wr(n,t.fees.total.currency)}},void 0)}),void 0),Object(o.jsx)("p",ti({className:ei.a.feeMakeupPopover__fontParagraph},{children:Object(o.jsx)(br,{id:"using-bad-conversion-rate",values:{providerName:t.provider.name,conversionRate:t.rate.toFixed(5),midmarketRate:r.toFixed(5),a:function(e){return Object(o.jsx)("a",ti({href:s,target:"_blank",rel:"noreferrer"},{children:e}),void 0)},span:function(e){return Object(o.jsx)("span",ti({className:ei.a.feeMakeupPopover__warningText},{children:e}),void 0)}}},void 0)}),void 0),Object(o.jsx)("p",ti({className:ei.a.feeMakeupPopover__fontParagraph},{children:Object(o.jsx)(br,{id:"this-adds-fees",values:{hiddenFeesAmount:a,hiddenFeesCurrency:t.fees.total.currency}},void 0)}),void 0),Object(o.jsx)("p",ti({className:ei.a.feeMakeupPopover__fontParagraph},{children:Object(o.jsx)(br,{id:"bringing-the-total",values:{totalFee:Wr(t.fees.total.value,t.fees.total.currency),span:function(e){return Object(o.jsx)("span",ti({className:ei.a.feeMakeupPopover__totalAmount},{children:e}),void 0)}}},void 0)}),void 0)]}),void 0)},ni=function(){return(ni=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},oi=function(e,t){var r;return function(e){e.GoodConversionRate="using-good-conversion-rate",e.GreatConversionRate="using-great-conversion-rate"}(r||(r={})),function(e,t,r){if(e===t)return!0;var n=Math.max(Math.abs(e),Math.abs(t));return Math.abs((e-t)/n)<=r}(e,t,.001)||e<t?r.GoodConversionRate:r.GreatConversionRate},ai=function(e){var t=e.quote,r=e.midmarketRate,n=e.marketedFeesAmount,a=e.urlLocale,i=Nr("/"+a+"/compare?sourceCurrency="+t.route.sourceCurrency+"&targetCurrency="+t.route.targetCurrency),s=oi(t.rate,r);return Object(o.jsxs)("div",ni({className:ei.a.feeMakeupPopover__contentContainer},{children:[Object(o.jsx)("h2",ni({className:ei.a.feeMakeupPopover__fontHeader},{children:Object(o.jsx)(br,{id:"what-makes-up-this-fee"},void 0)}),void 0),Object(o.jsx)("p",ni({className:ei.a.feeMakeupPopover__fontParagraph},{children:Object(o.jsx)(br,{id:"conversion-fees-details",values:{sendAmount:Wr(t.sendAmount.value,t.sendAmount.currency),providerName:t.provider.name,marketedFees:Wr(n,t.fees.total.currency)}},void 0)}),void 0),Object(o.jsx)("p",ni({className:ei.a.feeMakeupPopover__fontParagraph},{children:Object(o.jsx)(br,{id:s,values:{providerName:t.provider.name,conversionRate:t.rate.toFixed(5),midmarketRate:r.toFixed(5),a:function(e){return Object(o.jsx)("a",ni({href:i,target:"_blank",rel:"noreferrer"},{children:e}),void 0)}}},void 0)}),void 0),Object(o.jsx)("p",ni({className:ei.a.feeMakeupPopover__fontParagraph},{children:Object(o.jsx)(br,{id:"only-charged-transfer-fees"},void 0)}),void 0),Object(o.jsx)("p",ni({className:ei.a.feeMakeupPopover__fontParagraph},{children:Object(o.jsx)(br,{id:"bringing-the-total",values:{totalFee:Wr(t.fees.total.value,t.fees.total.currency),span:function(e){return Object(o.jsx)("span",ni({className:ei.a.feeMakeupPopover__totalAmount},{children:e}),void 0)}}},void 0)}),void 0)]}),void 0)},ii=function(){return(ii=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},si=function(e){var t=e.quote,r=e.midmarketRate,n=e.open,a=e.onClose,i=e.urlLocale,c=e.locale,l=e.onPopoverClick,u=ci(t,r,i),f=Za[c],d=pr({locale:c,messages:f});return Object(o.jsx)("div",ii({className:ei.a.feeMakeupPopover__container},{children:Object(o.jsx)(mr,ii({locale:c,messages:f,defaultLocale:s.DEFAULT},{children:cn()?Object(o.jsx)(lo,ii({open:n,onClose:a},{children:u}),void 0):Object(o.jsx)(Ja,{onClick:l,content:u,size:g.SMALL,"aria-label":d.formatMessage({id:"what-makes-up-this-fee"})},void 0)}),void 0)}),void 0)},ci=function(e,t,r){var n=li(e,Pa.HIDDEN),a=li(e,Pa.MARKETED);return n>0?Object(o.jsx)(ri,{quote:e,midmarketRate:t,marketedFeesAmount:a,hiddenFeesAmount:n,urlLocale:r},void 0):Object(o.jsx)(ai,{quote:e,midmarketRate:t,marketedFeesAmount:a,urlLocale:r},void 0)};function li(e,t){return e.fees.breakdown.filter((function(e){return e.type===t})).reduce((function(e,t){return e+t.amount.value}),0)}var ui,fi=r(121),di=r.n(fi),pi=r(122),mi=function(){return(mi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};!function(e){e.Good="good",e.Bad="bad"}(ui||(ui={}));var hi=function(e){var t=e.variant,r=e.darkMode,n=e.message;return Object(o.jsx)("div",mi({className:vi("hiddenFee-row")},{children:Object(o.jsxs)("p",mi({className:vi("hiddenFee-paragraph",r)},{children:[Object(o.jsx)("span",{className:vi("hiddenFee-dot--"+t)},void 0),Object(o.jsx)("span",{children:n},void 0)]}),void 0)}),void 0)},vi=function(e,t){return void 0===t&&(t=!1),di.a[e+(t?"--dark":"")]},gi=function(e){return e.value>0},yi=function(e){return Wr(parseFloat(e.value.toFixed(5)),e.currency)},bi=function(e){var t=e.totalFee,r=e.hiddenFee,n=e.darkMode,a=e.locale;return Object(o.jsxs)(mr,mi({messages:pi[a],locale:a,defaultLocale:s.DEFAULT},{children:[Object(o.jsx)("div",mi({className:vi("totalFee-label",n)},{children:yi(t)}),void 0),Object(o.jsx)(hi,{variant:gi(r)?ui.Bad:ui.Good,darkMode:n,message:gi(r)?Object(o.jsx)(br,{id:"hidden-fees",values:{hiddenFee:yi(r),label:function(e){return Object(o.jsx)("span",mi({className:vi("hiddenFee-label")},{children:e}),void 0)}}},void 0):Object(o.jsx)(br,{id:"no-hidden-fees"},void 0)},void 0)]}),void 0)},wi=function(){return(wi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Oi=function(e){return Ga.a.row+" "+(Ei(e)?Ga.a.rowDark:"")},Ei=function(e){return e&&"transferwise"===e.provider.alias},_i=function(e){var t=e.className;return"string"==typeof e.className&&(t.startsWith("twLogo")||t.startsWith("poweredBy")||t.startsWith("np-popover")||t.startsWith("np-bottom-sheet")||t.includes("dimmer"))},xi=function(e){var t,r=e.quote,n=e.nextQuote,i=e.midmarketRate,s=e.locale,c=e.urlLocale,l=e.onFeePopoverClick,u=e.onMobileRowClick,f=e.onRowVisible,d=(null===(t=r.fees.breakdown.find((function(e){return e.type===Pa.HIDDEN})))||void 0===t?void 0:t.amount)||{currency:r.route.sourceCurrency,value:0},p=Object(a.useState)(!1),m=p[0],h=p[1],v=cn(),g=function(e){var t=void 0===e?{}:e,r=t.threshold,n=t.delay,o=t.trackVisibility,i=t.rootMargin,s=t.root,c=t.triggerOnce,l=t.skip,u=t.initialInView,f=Object(a.useRef)(),d=Object(a.useState)({inView:!!u}),p=d[0],m=d[1],h=Object(a.useCallback)((function(e){void 0!==f.current&&(f.current(),f.current=void 0),l||e&&(f.current=$r(e,(function(e,t){m({inView:e,entry:t}),t.isIntersecting&&c&&f.current&&(f.current(),f.current=void 0)}),{root:s,rootMargin:i,threshold:r,trackVisibility:o,delay:n}))}),[Array.isArray(r)?r.toString():r,s,i,c,l,o,n]);Object(a.useEffect)((function(){f.current||!p.entry||c||l||m({inView:!!u})}));var v=[h,p.inView,p.entry];return v.ref=v[0],v.inView=v[1],v.entry=v[2],v}({threshold:.5,triggerOnce:!0}),y=g.ref,b=g.inView;Object(a.useEffect)((function(){b&&(null==f||f(r.provider.name))}),[b]);var w="transferwise"===r.provider.alias?"https://wise.com/public-resources/assets/logos/wise/brand_logo_inverse.svg":r.provider.logoUrl;return Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)("tr",wi({ref:y,onClick:function(e){var t=e.target;!v||_i(t)||m||(h(!0),null==u||u(r.provider.name))},className:Oi(r)},{children:[Object(o.jsx)("td",wi({className:Ga.a.row__providerLogo},{children:Object(o.jsx)(Da,{logo:w,name:r.provider.name,styles:{providerLogo:Ga.a.row__providerLogoInternal},isPartner:r.provider.partner,locale:s},void 0)}),void 0),Object(o.jsx)("td",wi({className:Ga.a.row__fee},{children:Object(o.jsx)(bi,{totalFee:r.fees.total,hiddenFee:d,darkMode:Ei(r),locale:s},void 0)}),void 0),Object(o.jsx)("td",wi({className:Ga.a.row__feeMakeup},{children:Object(o.jsx)(si,{quote:r,midmarketRate:i,open:m,onClose:function(){return h(!1)},urlLocale:c,locale:s,onPopoverClick:function(){l&&l(r.provider.name)}},void 0)}),void 0)]}),void 0),!n||Ei(r)||Ei(n)?Object(o.jsx)("tr",{},void 0):Object(o.jsx)("tr",{children:Object(o.jsx)("td",wi({colSpan:3},{children:Object(o.jsx)("hr",{className:Ga.a.transferFeeComparisonTableRow__border},void 0)}),void 0)},void 0)]},void 0)},Ti=r(54),ji=r.n(Ti),ki=r(124),Ri=function(){return(Ri=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Ni=function(e){var t=e.locale,r=e.sendAmount,n=e.quotes;return Object(o.jsx)(mr,Ri({locale:t,messages:ki[t],defaultLocale:s.DEFAULT},{children:Object(o.jsx)("p",Ri({className:ji.a.transferFeeComparisonTable__header},{children:Object(o.jsx)(br,{id:"real-cost",values:{sendAmount:Wr(r.value,r.currency),targetCurrency:n[0].route.targetCurrency,span:function(e){return Object(o.jsx)("span",Ri({className:ji.a.transferFeeComparisonTable__headerText},{children:e}),void 0)}}},void 0)}),void 0)}),void 0)},Ai=function(e){var t=e.sendAmount,r=e.quotes,n=e.midmarketRate,a=e.urlLocale,i=e.locale,s=e.onFeePopoverClick,c=e.onMobileRowClick,l=e.onRowVisible;return Object(o.jsxs)("table",Ri({className:ji.a.transferFeeComparisonTable__rectangle},{children:[Object(o.jsx)("thead",{children:Object(o.jsx)("tr",{children:Object(o.jsx)("td",Ri({colSpan:3},{children:Object(o.jsx)(Ni,{locale:i,sendAmount:t,quotes:r},void 0)}),void 0)},void 0)},void 0),Object(o.jsx)("tbody",{children:r.map((function(e,t){return Object(o.jsx)(xi,{quote:e,nextQuote:r[t+1],midmarketRate:n,urlLocale:a,locale:i,onFeePopoverClick:s,onMobileRowClick:c,onRowVisible:l},e.provider.alias)}))},void 0)]}),void 0)},Pi=function(){return(Pi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Ci=function(e){var t=e.sendAmount,r=e.quotes,n=e.midmarketRate,a=e.providerFiltering,i=e.locale,s=e.urlLocale,c=e.onFeePopoverClick,l=e.onMobileRowClick,u=e.onRowVisible;return Object(o.jsxs)("div",Pi({className:O.a.transferFeeComparison__container},{children:[a.showToggle?Object(o.jsx)("div",Pi({className:O.a.transferFeeComparison__providerFilterToggle},{children:Object(o.jsx)(jr,{activeToggle:a.selectedOption,onToggle:a.onProviderFilteringOptionChange,locale:i},void 0)}),void 0):null,Object(o.jsx)("div",Pi({className:O.a.transferFeeComparison__table},{children:Object(o.jsx)(Ai,{sendAmount:t,quotes:r,midmarketRate:n,urlLocale:s,locale:i,onFeePopoverClick:c,onMobileRowClick:l,onRowVisible:u},void 0)}),void 0),Object(o.jsx)("div",Pi({className:O.a.transferFeeComparison__footer},{children:Object(o.jsx)(Lr,{locale:i,urlLocale:s},void 0)}),void 0)]}),void 0)},Si=function(){return(Si=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Li=function(e){var t,r=e.sendAmount,n=e.quotes,i=e.quoteApi,u=e.locale,f=e.urlLocale,m=e.enableLargestProviderFiltering,h=e.trackEvent,v=void 0===h?function(){}:h,g=e.requiredNumberOfLargestProviders,y=void 0===g?5:g;f=f.toLowerCase(),u=function(e){return Object.keys(s).includes(e.valueOf().slice(0,2).toUpperCase())?e.valueOf().slice(0,2):s.EN}(u);var b=i?i.rate:null===(t=n.find((function(e){return"transferwise"===e.provider.alias})))||void 0===t?void 0:t.rate,w=Object(a.useState)(m?wr.LARGEST_PROVIDERS:wr.ALL_PROVIDERS),O=w[0],E=w[1],_=function(){return{largestProviderEnabled:m,providerFilteringOption:O,quotes:n,urlLocale:f,requiredNumberOfLargestProviders:y,hasEnoughProviders:d(n,f,y),midMarketRate:b,isWiseCheapest:"transferwise"===n[0].provider.alias,sourceCurrency:n[0].route.sourceCurrency,targetCurrency:n[0].route.targetCurrency}};Object(a.useEffect)((function(){v(l.TransferFeeComparison,c.LargestProviderTableRendered,_())}),[]);var x=Object(a.useState)(!1),T=x[0],j=x[1],k=m&&d(n,f,y),R=O===wr.LARGEST_PROVIDERS&&k?p(n,f):n.filter((function(e){return!e.provider.partner}));return R.sort((function(e,t){return e.fees.total.value-t.fees.total.value})),Object(o.jsx)(Ci,{sendAmount:r,quotes:R,midmarketRate:b,providerFiltering:{showToggle:k,selectedOption:O,onProviderFilteringOptionChange:function(e){E(e),v(l.TransferFeeComparison,c.ProviderFilteringOptionChanged,_())}},locale:u,urlLocale:f,onFeePopoverClick:function(e){var t=_();v(l.TransferFeeComparison,c.FeeBreakdownPopoverStarted,Si(Si({},t),{providerName:e}))},onMobileRowClick:function(e){var t=_();v(l.TransferFeeComparison,c.MobileFeeBreakdownStarted,Si(Si({},t),{providerName:e}))},onRowVisible:function(e){T||(v(l.TransferFeeComparison,c.RowWasSeen,Si(Si({},_()),{providerName:e})),j(!0))}},void 0)}},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return n}));r(51);function n(t,r){r&&function(t){var r,n;["development","test"].includes(null===(r=e)||void 0===r||null===(n=r.env)||void 0===n?void 0:"production")&&console.warn(t)}(t)}}).call(this,r(157))}])}));
51
+ function $n(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}var Jn,Zn,Qn=function(e){var t=e.size,r=void 0===t?16:t,n=e.className,o=void 0===n?void 0:n,a=e.title,s=void 0===a?void 0:a,c=e.filled,l=void 0!==c&&c,u=$n(e,["size","className","title","filled"]);return i.a.createElement("span",{className:"tw-icon tw-icon-cross-circle "+(o||""),"aria-hidden":s?void 0:"true",role:s?void 0:"presentation","data-testid":u["data-testid"]},i.a.createElement("svg",{width:String(r),height:String(r),fill:"currentColor",focusable:"false"},16===Number(r)&&!1===l&&i.a.createElement(i.a.Fragment,null,i.a.createElement("path",{d:"M6.869 8L4.434 5.566l1.132-1.132L8 6.87l2.434-2.435 1.132 1.132L9.13 8l2.435 2.434-1.132 1.132L8 9.13l-2.434 2.435-1.132-1.132L6.87 8z"}),i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16A8 8 0 108 0a8 8 0 000 16zm0-1.6A6.4 6.4 0 108 1.6a6.4 6.4 0 000 12.8z"})),24===Number(r)&&!1===l&&i.a.createElement(i.a.Fragment,null,i.a.createElement("path",{d:"M10.586 12L7.293 8.707l1.414-1.414L12 10.586l3.293-3.293 1.414 1.414L13.414 12l3.293 3.293-1.414 1.414L12 13.414l-3.293 3.293-1.414-1.414L10.586 12z"}),i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10zm0-2a8 8 0 100-16 8 8 0 000 16z"})),16===Number(r)&&l&&i.a.createElement(i.a.Fragment,null,i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16A8 8 0 108 0a8 8 0 000 16zm2.434-4.434L8 9.13l-2.434 2.435-1.132-1.132L6.87 8 4.434 5.566l1.132-1.132L8 6.87l2.434-2.435 1.132 1.132L9.13 8l2.435 2.434-1.132 1.132z"})),24===Number(r)&&l&&i.a.createElement(i.a.Fragment,null,i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10zm3.293-5.293L12 13.414l-3.293 3.293-1.414-1.414L10.586 12 7.293 8.707l1.414-1.414L12 10.586l3.293-3.293 1.414 1.414L13.414 12l3.293 3.293-1.414 1.414z"}))),s&&i.a.createElement("span",{className:"sr-only"},s))},eo=function(e){var t=e.size,r=void 0===t?16:t,n=e.className,o=void 0===n?void 0:n,a=e.title,s=void 0===a?void 0:a,c=$n(e,["size","className","title"]);return i.a.createElement("span",{className:"tw-icon tw-icon-cross "+(o||""),"aria-hidden":s?void 0:"true",role:s?void 0:"presentation","data-testid":c["data-testid"]},i.a.createElement("svg",{width:String(r),height:String(r),fill:"currentColor",focusable:"false"},16===Number(r)&&i.a.createElement(i.a.Fragment,null,i.a.createElement("path",{d:"M9.131 8l5.435-5.434-1.132-1.132L8 6.87 2.566 1.434 1.434 2.566 6.87 8l-5.435 5.434 1.132 1.132L8 9.13l5.434 5.435 1.132-1.132L9.13 8z"})),24===Number(r)&&i.a.createElement(i.a.Fragment,null,i.a.createElement("path",{d:"M12 13.414l7.293 7.293 1.414-1.414L13.414 12l7.293-7.293-1.414-1.414L12 10.586 4.707 3.293 3.293 4.707 10.586 12l-7.293 7.293 1.414 1.414L12 13.414z"}))),s&&i.a.createElement("span",{className:"sr-only"},s))},to=function(e){var t=e.size,r=void 0===t?16:t,n=e.className,o=void 0===n?void 0:n,a=e.title,s=void 0===a?void 0:a,c=$n(e,["size","className","title"]);return i.a.createElement("span",{className:"tw-icon tw-icon-help-circle "+(o||""),"aria-hidden":s?void 0:"true",role:s?void 0:"presentation","data-testid":c["data-testid"]},i.a.createElement("svg",{width:String(r),height:String(r),fill:"currentColor",focusable:"false"},16===Number(r)&&i.a.createElement(i.a.Fragment,null,i.a.createElement("path",{d:"M9 11a1 1 0 11-2 0 1 1 0 012 0zM10.443 4.8A2.3 2.3 0 007.3 3.96L5.136 5.21l.8 1.385L8.1 5.345a.7.7 0 01.7 1.212l-2.165 1.25.8 1.386L9.6 7.943a2.3 2.3 0 00.842-3.142z"}),i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16A8 8 0 108 0a8 8 0 000 16zm0-1.6A6.4 6.4 0 108 1.6a6.4 6.4 0 000 12.8z"})),24===Number(r)&&i.a.createElement(i.a.Fragment,null,i.a.createElement("path",{d:"M13.2 16a1.2 1.2 0 11-2.4 0 1.2 1.2 0 012.4 0zM15.196 8.232a3 3 0 00-4.098-1.098L8.5 8.634l1 1.732 2.598-1.5a1 1 0 111 1.732l-2.598 1.5 1 1.732 2.598-1.5a3 3 0 001.098-4.098z"}),i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10zm0-2a8 8 0 100-16 8 8 0 000 16z"}))),s&&i.a.createElement("span",{className:"sr-only"},s))};!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(Jn||(Jn={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(Zn||(Zn={}));var ro=function(e){var t=hr(),r=e.value,n=e.children,o=Z(e,["value","children"]);return n(t.formatNumberToParts(r,o))};ro.displayName="FormattedNumberParts";function no(e){var t=function(t){var r=hr(),n=t.value,o=t.children,a=Z(t,["value","children"]),i="string"==typeof n?new Date(n||0):n;return o("formatDate"===e?r.formatDateToParts(i,a):r.formatTimeToParts(i,a))};return t.displayName=Zn[e],t}function oo(e){var t=function(t){var r=hr(),n=t.value,o=t.children,i=Z(t,["value","children"]),s=r[e](n,i);if("function"==typeof o)return o(s);var c=r.textComponent||a.Fragment;return a.createElement(c,null,s)};return t.displayName=Jn[e],t}ro.displayName="FormattedNumberParts";oo("formatDate"),oo("formatTime"),oo("formatNumber"),oo("formatList"),oo("formatDisplayName"),no("formatDate"),no("formatTime");var ao={ariaLabel:{id:"neptune.CloseButton.ariaLabel"}},io=Object(a.forwardRef)((function(e,t){var r=hr(),n=e.onClick,a=e.className,i=e.size,s=e.filled,c=e["aria-label"]||r.formatMessage(ao.ariaLabel);return Object(o.jsx)("button",{ref:t,type:"button",className:k()("np-close-button close btn-link text-no-decoration",{"np-close-button--large":i===io.Size.LARGE},a),"aria-label":c,onClick:n,children:s?Object(o.jsx)(Qn,{size:i,filled:!0}):Object(o.jsx)(eo,{size:i})})}));io.Size={SMALL:16,LARGE:24},io.propTypes={onClick:N.a.func.isRequired,className:N.a.string,size:N.a.oneOf(Object.values(io.Size)),filled:N.a.bool,"aria-label":N.a.string},io.defaultProps={className:null,size:io.Size.LARGE,filled:!1,"aria-label":void 0};var so=io;function co(){return"undefined"==typeof window}var lo=function(e){function t(e){null!==s.current&&(s.current.style.transform="translateY(".concat(e,"px)"))}function r(){p(!1),h.current=0,null!==s.current&&s.current.style.removeProperty("transform"),e.onClose&&e.onClose()}function n(){cancelAnimationFrame(m.current),p(!1),h.current>50&&i()?r():t(0),h.current=0}function i(){var e;return void 0!==(null==l||null===(e=l.current)||void 0===e?void 0:e.scrollTop)&&l.current.scrollTop<=1}var s=Object(a.useRef)(null),c=Object(a.useRef)(null),l=Object(a.useRef)(null),u=Object(a.useState)(!1),f=rn()(u,2),d=f[0],p=f[1],m=Object(a.useRef)(0),h=Object(a.useRef)(0),v=Object(a.useRef)(0);An({attachListener:e.open&&!co(),callback:function(){if(null!==c.current){var e=c.current.classList;i()?e.remove("np-bottom-sheet--top-bar--shadow"):e.add("np-bottom-sheet--top-bar--shadow")}},eventType:"scroll",parent:co()?void 0:document});var g=function(e){return function(t){v.current=(e?t.touches[0]:t).clientY,p(!0)}},y=function(e){return function(r){if(d){var n=function(e){return e-v.current}((e?r.touches[0]:r).clientY);n>0&&i()&&(h.current=n,m.current=requestAnimationFrame((function(){void 0!==m.current&&null!==s.current&&t(n)})))}}};return Object(o.jsx)(Bn,{open:e.open,fadeContentOnEnter:!0,fadeContentOnExit:!0,onClose:r,children:Object(o.jsxs)(Kn,{ref:s,open:e.open,position:en.BOTTOM,className:k()("np-bottom-sheet",e.className),role:"dialog",onTouchStart:g(!0),onTouchMove:y(!0),onTouchEnd:n,onMouseDown:g(!1),onMouseMove:y(!1),onMouseUp:n,children:[Object(o.jsxs)("div",{ref:c,className:"np-bottom-sheet--top-bar",children:[Object(o.jsx)("div",{className:"np-bottom-sheet--handler"}),Object(o.jsx)(so,{size:16,className:"sr-only np-bottom-sheet--close-btn",onClick:r})]}),Object(o.jsx)("div",{ref:l,style:function(){var e=co()?0:window.innerHeight,t="".concat(.01*e*100,"px");return{maxHeight:"calc(".concat(t," - ").concat("64px"," - ").concat("32px",")")}}(),className:"np-bottom-sheet--content",children:e.children})]})})};function uo(e,t){void 0===t&&(t=!1);var r=e.getBoundingClientRect();return{width:r.width/1,height:r.height/1,top:r.top/1,right:r.right/1,bottom:r.bottom/1,left:r.left/1,x:r.left/1,y:r.top/1}}function fo(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function po(e){var t=fo(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function mo(e){return e instanceof fo(e).Element||e instanceof Element}function ho(e){return e instanceof fo(e).HTMLElement||e instanceof HTMLElement}function vo(e){return"undefined"!=typeof ShadowRoot&&(e instanceof fo(e).ShadowRoot||e instanceof ShadowRoot)}function go(e){return e?(e.nodeName||"").toLowerCase():null}function yo(e){return((mo(e)?e.ownerDocument:e.document)||window.document).documentElement}function bo(e){return uo(yo(e)).left+po(e).scrollLeft}function wo(e){return fo(e).getComputedStyle(e)}function Oo(e){var t=wo(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Eo(e,t,r){void 0===r&&(r=!1);var n,o,a=ho(t),i=ho(t)&&function(e){var t=e.getBoundingClientRect(),r=t.width/e.offsetWidth||1,n=t.height/e.offsetHeight||1;return 1!==r||1!==n}(t),s=yo(t),c=uo(e,i),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!r)&&(("body"!==go(t)||Oo(s))&&(l=(n=t)!==fo(n)&&ho(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:po(n)),ho(t)?((u=uo(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=bo(s))),{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function _o(e){var t=uo(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function xo(e){return"html"===go(e)?e:e.assignedSlot||e.parentNode||(vo(e)?e.host:null)||yo(e)}function To(e,t){var r;void 0===t&&(t=[]);var n=function e(t){return["html","body","#document"].indexOf(go(t))>=0?t.ownerDocument.body:ho(t)&&Oo(t)?t:e(xo(t))}(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),a=fo(n),i=o?[a].concat(a.visualViewport||[],Oo(n)?n:[]):n,s=t.concat(i);return o?s:s.concat(To(xo(i)))}function jo(e){return["table","td","th"].indexOf(go(e))>=0}function ko(e){return ho(e)&&"fixed"!==wo(e).position?e.offsetParent:null}function Ro(e){for(var t=fo(e),r=ko(e);r&&jo(r)&&"static"===wo(r).position;)r=ko(r);return r&&("html"===go(r)||"body"===go(r)&&"static"===wo(r).position)?t:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&ho(e)&&"fixed"===wo(e).position)return null;for(var r=xo(e);ho(r)&&["html","body"].indexOf(go(r))<0;){var n=wo(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var No="top",Ao="bottom",Po="right",Co="left",So=[No,Ao,Po,Co],Lo=So.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),Fo=[].concat(So,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),Io=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Mo(e){var t=new Map,r=new Set,n=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||function e(o){r.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(n){if(!r.has(n)){var o=t.get(n);o&&e(o)}})),n.push(o)}(e)})),n}var Do={placement:"bottom",modifiers:[],strategy:"absolute"};function zo(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Uo(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,a=void 0===o?Do:o;return function(e,t,r){void 0===r&&(r=a);var o,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Do,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],l=!1,u={state:s,setOptions:function(r){var o="function"==typeof r?r(s.options):r;f(),s.options=Object.assign({},a,s.options,o),s.scrollParents={reference:mo(e)?To(e):e.contextElement?To(e.contextElement):[],popper:To(t)};var i=function(e){var t=Mo(e);return Io.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}(function(e){var t=e.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,s.options.modifiers)));return s.orderedModifiers=i.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var a=o({state:s,name:t,instance:u,options:n});c.push(a||function(){})}})),u.update()},forceUpdate:function(){if(!l){var e=s.elements,t=e.reference,r=e.popper;if(zo(t,r)){s.rects={reference:Eo(t,Ro(r),"fixed"===s.options.strategy),popper:_o(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var o=s.orderedModifiers[n],a=o.fn,i=o.options,c=void 0===i?{}:i,f=o.name;"function"==typeof a&&(s=a({state:s,options:c,name:f,instance:u})||s)}else s.reset=!1,n=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){f(),l=!0}};if(!zo(e,t))return u;function f(){c.forEach((function(e){return e()})),c=[]}return u.setOptions(r).then((function(e){!l&&r.onFirstUpdate&&r.onFirstUpdate(e)})),u}}var Go={passive:!0};var Wo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=void 0===o||o,i=n.resize,s=void 0===i||i,c=fo(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",r.update,Go)})),s&&c.addEventListener("resize",r.update,Go),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",r.update,Go)})),s&&c.removeEventListener("resize",r.update,Go)}},data:{}};function Vo(e){return e.split("-")[0]}function Bo(e){return e.split("-")[1]}function qo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ho(e){var t,r=e.reference,n=e.element,o=e.placement,a=o?Vo(o):null,i=o?Bo(o):null,s=r.x+r.width/2-n.width/2,c=r.y+r.height/2-n.height/2;switch(a){case No:t={x:s,y:r.y-n.height};break;case Ao:t={x:s,y:r.y+r.height};break;case Po:t={x:r.x+r.width,y:c};break;case Co:t={x:r.x-n.width,y:c};break;default:t={x:r.x,y:r.y}}var l=a?qo(a):null;if(null!=l){var u="y"===l?"height":"width";switch(i){case"start":t[l]=t[l]-(r[u]/2-n[u]/2);break;case"end":t[l]=t[l]+(r[u]/2-n[u]/2)}}return t}var Yo={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Ho({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},Xo=Math.max,Ko=Math.min,$o=Math.round,Jo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Zo(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,f=!0===u?function(e){var t=e.x,r=e.y,n=window.devicePixelRatio||1;return{x:$o($o(t*n)/n)||0,y:$o($o(r*n)/n)||0}}(i):"function"==typeof u?u(i):i,d=f.x,p=void 0===d?0:d,m=f.y,h=void 0===m?0:m,v=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),y=Co,b=No,w=window;if(l){var O=Ro(r),E="clientHeight",_="clientWidth";O===fo(r)&&"static"!==wo(O=yo(r)).position&&"absolute"===s&&(E="scrollHeight",_="scrollWidth"),O=O,o!==No&&(o!==Co&&o!==Po||"end"!==a)||(b=Ao,h-=O[E]-n.height,h*=c?1:-1),o!==Co&&(o!==No&&o!==Ao||"end"!==a)||(y=Po,p-=O[_]-n.width,p*=c?1:-1)}var x,T=Object.assign({position:s},l&&Jo);return c?Object.assign({},T,((x={})[b]=g?"0":"",x[y]=v?"0":"",x.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",x)):Object.assign({},T,((t={})[b]=g?h+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var Qo={left:"right",right:"left",bottom:"top",top:"bottom"};function ea(e){return e.replace(/left|right|bottom|top/g,(function(e){return Qo[e]}))}var ta={start:"end",end:"start"};function ra(e){return e.replace(/start|end/g,(function(e){return ta[e]}))}function na(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&vo(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function oa(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function aa(e,t){return"viewport"===t?oa(function(e){var t=fo(e),r=yo(e),n=t.visualViewport,o=r.clientWidth,a=r.clientHeight,i=0,s=0;return n&&(o=n.width,a=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=n.offsetLeft,s=n.offsetTop)),{width:o,height:a,x:i+bo(e),y:s}}(e)):ho(t)?function(e){var t=uo(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):oa(function(e){var t,r=yo(e),n=po(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Xo(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Xo(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+bo(e),c=-n.scrollTop;return"rtl"===wo(o||r).direction&&(s+=Xo(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:c}}(yo(e)))}function ia(e,t,r){var n="clippingParents"===t?function(e){var t=To(xo(e)),r=["absolute","fixed"].indexOf(wo(e).position)>=0&&ho(e)?Ro(e):e;return mo(r)?t.filter((function(e){return mo(e)&&na(e,r)&&"body"!==go(e)})):[]}(e):[].concat(t),o=[].concat(n,[r]),a=o[0],i=o.reduce((function(t,r){var n=aa(e,r);return t.top=Xo(n.top,t.top),t.right=Ko(n.right,t.right),t.bottom=Ko(n.bottom,t.bottom),t.left=Xo(n.left,t.left),t}),aa(e,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function sa(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ca(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function la(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,a=r.boundary,i=void 0===a?"clippingParents":a,s=r.rootBoundary,c=void 0===s?"viewport":s,l=r.elementContext,u=void 0===l?"popper":l,f=r.altBoundary,d=void 0!==f&&f,p=r.padding,m=void 0===p?0:p,h=sa("number"!=typeof m?m:ca(m,So)),v="popper"===u?"reference":"popper",g=e.rects.popper,y=e.elements[d?v:u],b=ia(mo(y)?y:y.contextElement||yo(e.elements.popper),i,c),w=uo(e.elements.reference),O=Ho({reference:w,element:g,strategy:"absolute",placement:o}),E=oa(Object.assign({},g,O)),_="popper"===u?E:w,x={top:b.top-_.top+h.top,bottom:_.bottom-b.bottom+h.bottom,left:b.left-_.left+h.left,right:_.right-b.right+h.right},T=e.modifiersData.offset;if("popper"===u&&T){var j=T[o];Object.keys(x).forEach((function(e){var t=[Po,Ao].indexOf(e)>=0?1:-1,r=[No,Ao].indexOf(e)>=0?"y":"x";x[e]+=j[r]*t}))}return x}function ua(e,t,r){return Xo(e,Ko(t,r))}function fa(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function da(e){return[No,Po,Ao,Co].some((function(t){return e[t]>=0}))}var pa,ma=Uo({defaultModifiers:[Wo,Yo,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,a=r.adaptive,i=void 0===a||a,s=r.roundOffsets,c=void 0===s||s,l={placement:Vo(t.placement),variation:Bo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Zo(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Zo(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];ho(o)&&go(o)&&(Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});ho(n)&&go(n)&&(Object.assign(n.style,a),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=void 0===o?[0,0]:o,i=Fo.reduce((function(e,r){return e[r]=function(e,t,r){var n=Vo(e),o=[Co,No].indexOf(n)>=0?-1:1,a="function"==typeof r?r(Object.assign({},t,{placement:e})):r,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[Co,Po].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}(r,t.rects,a),e}),{}),s=i[t.placement],c=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=i}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=void 0===o||o,i=r.altAxis,s=void 0===i||i,c=r.fallbackPlacements,l=r.padding,u=r.boundary,f=r.rootBoundary,d=r.altBoundary,p=r.flipVariations,m=void 0===p||p,h=r.allowedAutoPlacements,v=t.options.placement,g=Vo(v),y=c||(g===v||!m?[ea(v)]:function(e){if("auto"===Vo(e))return[];var t=ea(e);return[ra(e),t,ra(t)]}(v)),b=[v].concat(y).reduce((function(e,r){return e.concat("auto"===Vo(r)?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,l=void 0===c?Fo:c,u=Bo(n),f=u?s?Lo:Lo.filter((function(e){return Bo(e)===u})):So,d=f.filter((function(e){return l.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,r){return t[r]=la(e,{placement:r,boundary:o,rootBoundary:a,padding:i})[Vo(r)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:r,boundary:u,rootBoundary:f,padding:l,flipVariations:m,allowedAutoPlacements:h}):r)}),[]),w=t.rects.reference,O=t.rects.popper,E=new Map,_=!0,x=b[0],T=0;T<b.length;T++){var j=b[T],k=Vo(j),R="start"===Bo(j),N=[No,Ao].indexOf(k)>=0,A=N?"width":"height",P=la(t,{placement:j,boundary:u,rootBoundary:f,altBoundary:d,padding:l}),C=N?R?Po:Co:R?Ao:No;w[A]>O[A]&&(C=ea(C));var S=ea(C),L=[];if(a&&L.push(P[k]<=0),s&&L.push(P[C]<=0,P[S]<=0),L.every((function(e){return e}))){x=j,_=!1;break}E.set(j,L)}if(_)for(var F=function(e){var t=b.find((function(t){var r=E.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},I=m?3:1;I>0;I--){if("break"===F(I))break}t.placement!==x&&(t.modifiersData[n]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=void 0===o||o,i=r.altAxis,s=void 0!==i&&i,c=r.boundary,l=r.rootBoundary,u=r.altBoundary,f=r.padding,d=r.tether,p=void 0===d||d,m=r.tetherOffset,h=void 0===m?0:m,v=la(t,{boundary:c,rootBoundary:l,padding:f,altBoundary:u}),g=Vo(t.placement),y=Bo(t.placement),b=!y,w=qo(g),O="x"===w?"y":"x",E=t.modifiersData.popperOffsets,_=t.rects.reference,x=t.rects.popper,T="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,j={x:0,y:0};if(E){if(a||s){var k="y"===w?No:Co,R="y"===w?Ao:Po,N="y"===w?"height":"width",A=E[w],P=E[w]+v[k],C=E[w]-v[R],S=p?-x[N]/2:0,L="start"===y?_[N]:x[N],F="start"===y?-x[N]:-_[N],I=t.elements.arrow,M=p&&I?_o(I):{width:0,height:0},D=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=D[k],U=D[R],G=ua(0,_[N],M[N]),W=b?_[N]/2-S-G-z-T:L-G-z-T,V=b?-_[N]/2+S+G+U+T:F+G+U+T,B=t.elements.arrow&&Ro(t.elements.arrow),q=B?"y"===w?B.clientTop||0:B.clientLeft||0:0,H=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,Y=E[w]+W-H-q,X=E[w]+V-H;if(a){var K=ua(p?Ko(P,Y):P,A,p?Xo(C,X):C);E[w]=K,j[w]=K-A}if(s){var $="x"===w?No:Co,J="x"===w?Ao:Po,Z=E[O],Q=Z+v[$],ee=Z-v[J],te=ua(p?Ko(Q,Y):Q,Z,p?Xo(ee,X):ee);E[O]=te,j[O]=te-Z}}t.modifiersData[n]=j}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,s=Vo(r.placement),c=qo(s),l=[Co,Po].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(e,t){return sa("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ca(e,So))}(o.padding,r),f=_o(a),d="y"===c?No:Co,p="y"===c?Ao:Po,m=r.rects.reference[l]+r.rects.reference[c]-i[c]-r.rects.popper[l],h=i[c]-r.rects.reference[c],v=Ro(a),g=v?"y"===c?v.clientHeight||0:v.clientWidth||0:0,y=m/2-h/2,b=u[d],w=g-f[l]-u[p],O=g/2-f[l]/2+y,E=ua(b,O,w),_=c;r.modifiersData[n]=((t={})[_]=E,t.centerOffset=E-O,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&na(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=la(t,{elementContext:"reference"}),s=la(t,{altBoundary:!0}),c=fa(i,n),l=fa(s,o,a),u=da(c),f=da(l);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}}]}),ha=r(117),va=r.n(ha),ga=function(e){return e.reduce((function(e,t){var r=t[0],n=t[1];return e[r]=n,e}),{})},ya="undefined"!=typeof window&&window.document&&window.document.createElement?a.useLayoutEffect:a.useEffect,ba=[];function wa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oa(e){for(var t,r=1;r<arguments.length;r++)t=null==arguments[r]?{}:arguments[r],r%2?wa(Object(t),!0).forEach((function(r){_()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):wa(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}var Ea=[0,16],_a=(pa={},_()(pa,en.TOP,[en.BOTTOM,en.RIGHT,en.LEFT]),_()(pa,en.BOTTOM,[en.TOP,en.RIGHT,en.LEFT]),_()(pa,en.LEFT,[en.RIGHT,en.TOP,en.BOTTOM]),_()(pa,en.RIGHT,[en.LEFT,en.TOP,en.BOTTOM]),pa),xa=Object(a.forwardRef)((function(e,t){var r=e.arrow,n=e.children,i=e.className,s=e.open,c=e.onClose,l=e.position,u=e.anchorRef,f=Object(a.useState)(null),d=rn()(f,2),p=d[0],m=d[1],h=Object(a.useState)(null),v=rn()(h,2),g=v[0],y=v[1],b=[];r&&(b.push({name:"arrow",options:{element:p,options:{padding:8}}}),b.push({name:"offset",options:{offset:Ea}})),_a[l]&&b.push({name:"flip",options:{fallbackPlacements:_a[l]}});var w=function(e,t,r){void 0===r&&(r={});var n=a.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||ba},i=a.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=i[0],c=i[1],l=a.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,r=Object.keys(t.elements);c({styles:ga(r.map((function(e){return[e,t.styles[e]||{}]}))),attributes:ga(r.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),u=a.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[l,{name:"applyStyles",enabled:!1}])};return va()(n.current,e)?n.current||e:(n.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,l]),f=a.useRef();return ya((function(){f.current&&f.current.setOptions(u)}),[u]),ya((function(){if(null!=e&&null!=t){var n=(r.createPopper||ma)(e,t,u);return f.current=n,function(){n.destroy(),f.current=null}}}),[e,t,r.createPopper]),{state:f.current?f.current.state:null,styles:s.styles,attributes:s.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}}(u.current,g,{placement:l,modifiers:b}),O=w.styles,E=w.attributes,_=w.forceUpdate;return Object(a.useEffect)((function(){s&&_&&_()}),[s]),Object(o.jsx)(Bn,{open:s,transparent:!0,fadeContentOnEnter:!0,fadeContentOnExit:!0,onClose:c,children:Object(o.jsx)("div",Oa(Oa({ref:y,style:Oa({},O.popper)},E.popper),{},{className:k()("np-panel",{"np-panel--open":s},i),children:Object(o.jsxs)("div",{ref:t,className:k()("np-panel__content"),children:[n,r&&Object(o.jsx)("div",{ref:m,className:k()("np-panel__arrow"),style:O.arrow})]})}))})}));xa.Position={BOTTOM:en.BOTTOM,LEFT:en.LEFT,RIGHT:en.RIGHT,TOP:en.TOP},xa.defaultProps={arrow:!1,className:void 0,open:!1,position:xa.Position.TOP},xa.propTypes={arrow:N.a.bool,className:N.a.string,children:N.a.node.isRequired,open:N.a.bool,onClose:N.a.func.isRequired,position:N.a.oneOf([xa.Position.BOTTOM,xa.Position.LEFT,xa.Position.RIGHT,xa.Position.TOP]),anchorRef:N.a.shape({current:N.a.any}).isRequired};var Ta=xa,ja=function(e){var t=e.anchorRef,r=e.arrow,n=e.children,a=e.className,i=e.onClose,s=e.open,c=e.position,l="undefined"==typeof window?void 0:window,u=un({ref:l});return rn()(u,1)[0]>=Qr.SMALL?Object(o.jsx)(Ta,{arrow:r,open:s,position:c,anchorRef:t,className:a,onClose:i,children:n},"panel"):Object(o.jsx)(lo,{open:s,className:a,onClose:i,children:n},"bottomSheet")};ja.defaultProps={arrow:!1,className:void 0,open:!1,position:en.TOP},ja.propTypes={arrow:N.a.bool,children:N.a.node.isRequired,className:N.a.string,onClose:N.a.func.isRequired,open:N.a.bool,anchorRef:N.a.shape({current:N.a.shape({})}).isRequired,position:N.a.oneOf(["top","right","left","bottom"])};var ka,Ra=ja,Na=function(e){var t=e.children,r=e.className,n=e.content,i=e.preferredPlacement,s=e.title;Aa({preferredPlacement:i});var c=Object(a.useRef)(null),l=Object(a.useState)(!1),u=rn()(l,2),f=u[0],d=u[1];return Object(o.jsxs)("span",{className:k()("np-popover",r),children:[Object(o.jsx)("span",{ref:c,className:"d-inline-block",children:Object(a.cloneElement)(t,{onClick:function(){var e;null!=t&&null!==(e=t.props)&&void 0!==e&&e.onClick&&t.props.onClick(),d(!f)}})}),Object(o.jsx)(Ra,{open:f,anchorRef:c,position:Ca[i]||i,arrow:!0,className:"np-popover__container",onClose:function(){return d(!1)},children:Object(o.jsxs)("div",{className:"np-popover__content","aria-hidden":!f,role:"tooltip",children:[s&&Object(o.jsx)("div",{role:"heading","aria-level":1,className:"np-popover__title m-b-1",children:s}),n]})})]})},Aa=function(e){var t=e.preferredPlacement;Object(D.a)("Popover has deprecated ".concat(t," value for the 'preferredPlacement' prop. Please use ").concat(Ca[t]," instead."),Ca[t])};Na.defaultProps={className:void 0,preferredPlacement:en.RIGHT,title:void 0},Na.propTypes={children:N.a.node.isRequired,className:N.a.string,content:N.a.node.isRequired,preferredPlacement:N.a.oneOf(["top","right","bottom","left","left-top","right-top","bottom-right","bottom-left"]),title:N.a.node};var Pa,Ca=(ka={},_()(ka,en.BOTTOM_LEFT,en.BOTTOM),_()(ka,en.BOTTOM_RIGHT,en.BOTTOM),_()(ka,en.LEFT_TOP,en.TOP),_()(ka,en.RIGHT_TOP,en.TOP),ka),Sa=Na,La=r(115),Fa=r.n(La),Ia=r(116),Ma=function(){return(Ma=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Da=function(e){var t=e.name,r=e.logo,n=e.isPartner,a=void 0!==n&&n,i=e.locale,c=e.styles,l=Ma(Ma({},Fa.a),c);return Object(o.jsx)(mr,Ma({messages:Ia[i],locale:i,defaultLocale:s.DEFAULT},{children:Object(o.jsxs)("span",Ma({className:l.logoContainer},{children:[Object(o.jsx)("img",{className:l.providerLogo,src:r,alt:t},void 0),a&&Object(o.jsx)("div",{children:Object(o.jsx)(Sa,Ma({title:Object(o.jsx)(br,{id:"powered-by-wise"},void 0),content:Object(o.jsx)(br,{id:"powered-by-wise-description"},void 0)},{children:Object(o.jsxs)("span",Ma({className:l.poweredByTw},{children:[Object(o.jsx)("span",Ma({className:l.poweredByTwText},{children:Object(o.jsx)(br,{id:"powered-by"},void 0)}),void 0),Object(o.jsx)("img",{className:l.twLogo,src:"https://wise.com/public-resources/assets/logos/wise/brand_logo.svg",alt:"Wise"},void 0)]}),void 0)}),void 0)},void 0)]}),void 0)}),void 0)};!function(e){e.HIDDEN="HIDDEN",e.MARKETED="MARKETED"}(Pa||(Pa={}));var za,Ua=r(22),Ga=r.n(Ua);r(182);!function(e){e.CONTENT="content",e.VIEWPORT="viewport"}(za||(za={}));var Wa=["title","body","footer","onClose","className","open","size","scroll","position"];function Va(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ba(e){for(var t,r=1;r<arguments.length;r++)t=null==arguments[r]?{}:arguments[r],r%2?Va(Object(t),!0).forEach((function(r){_()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Va(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}var qa=function(e){var t=e.title,r=e.body,n=e.footer,a=e.onClose,i=e.className,s=e.open,c=e.size,l=e.scroll,u=e.position,f=T()(e,Wa),d=function(e){return i.split(" ").includes(e)},p=d("compact"),m=d("no-divider");return Object(o.jsx)(Bn,{open:s,scrollable:l===za.CONTENT,className:k()("d-flex","justify-content-center"),onClose:a,children:Object(o.jsx)(Tn,{appear:!0,in:s,classNames:{enterDone:"in"},timeout:150,unmountOnExit:!0,children:Object(o.jsx)("div",Ba(Ba({className:k()("tw-modal",{"tw-modal--content":l===za.CONTENT,"align-self-center":u===en.CENTER},"fade","outline-none",i)},f),{},{children:Object(o.jsx)("div",{className:k()("tw-modal-dialog","d-flex",_()({},"tw-modal-".concat(c),c)),"aria-modal":!0,role:"dialog",children:Object(o.jsxs)("div",{className:k()("tw-modal-content","d-flex","flex-column","justify-content-between",{"tw-modal-compact":p,"tw-modal-no-title":!t}),children:[Object(o.jsxs)("div",{className:k()("tw-modal-header","d-flex","align-items-center","justify-content-between","flex-wrap",{"modal--withoutborder":!t||m}),children:[Object(o.jsx)("h4",{className:"tw-modal-title",children:t}),Object(o.jsx)(so,{onClick:a})]}),Object(o.jsx)("div",{className:"tw-modal-body",children:r}),n&&Object(o.jsx)("div",{className:k()("tw-modal-footer","d-flex","align-items-center","flex-wrap",{"modal--withoutborder":m}),children:n})]})})}))})})};qa.propTypes={title:N.a.node,body:N.a.node.isRequired,footer:N.a.node,size:N.a.oneOf(["sm","md","lg","xl"]),onClose:N.a.func.isRequired,className:N.a.string,open:N.a.bool.isRequired,scroll:N.a.oneOf(["content","viewport"]),position:N.a.oneOf(["top","center"])},qa.defaultProps={title:null,footer:null,size:g.MEDIUM,className:"",scroll:za.VIEWPORT,position:en.CENTER};var Ha,Ya=qa;function Xa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ka(e){for(var t,r=1;r<arguments.length;r++)t=null==arguments[r]?{}:arguments[r],r%2?Xa(Object(t),!0).forEach((function(r){_()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Xa(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}!function(e){e.POPOVER="POPOVER",e.MODAL="MODAL"}(Ha||(Ha={}));var $a=function(e){var t=e.className,r=e.content,n=e.onClick,i=e.presentation,s=e.size,c=e.title,l=Object(a.useState)(!1),u=rn()(l,2),f=u[0],d=u[1],p=i===Ha.MODAL,m=s===g.SMALL,h={"aria-label":e["aria-label"],className:"btn-unstyled",children:Object(o.jsx)(to,{size:m?16:24})};return Object(o.jsx)("span",{className:k()(t,"np-info",{"np-info__small":m,"np-info__large":!m}),children:p?Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("button",Ka({type:"button",onClick:function(){d(!f),n&&n()}},h)),Object(o.jsx)(Ya,{body:r,open:f,title:c,onClose:function(){return d(!1)}})]}):Object(o.jsx)(Sa,{content:r,preferredPlacement:en.BOTTOM,title:c,children:Object(o.jsx)("button",Ka(Ka({type:"button"},h),{},{onClick:function(){n&&n()}}))})})};$a.propTypes={"aria-label":N.a.string.isRequired,className:N.a.string,content:N.a.node,onClick:N.a.func,presentation:N.a.oneOf(["MODAL","POPOVER"]),size:N.a.oneOf(["sm","lg"]),title:N.a.node},$a.defaultProps={className:void 0,content:void 0,onClick:void 0,presentation:Ha.POPOVER,size:g.SMALL,title:void 0};var Ja=$a,Za=r(123),Qa=r(7),ei=r.n(Qa),ti=function(){return(ti=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ri=function(e){var t=e.quote,r=e.midmarketRate,n=e.marketedFeesAmount,a=e.hiddenFeesAmount,i=e.urlLocale,s=Nr("/"+i+"/compare?sourceCurrency="+t.route.sourceCurrency+"&targetCurrency="+t.route.targetCurrency);return Object(o.jsxs)("div",ti({className:ei.a.feeMakeupPopover__contentContainer},{children:[Object(o.jsx)("h2",ti({className:ei.a.feeMakeupPopover__fontHeader},{children:Object(o.jsx)(br,{id:"what-makes-up-this-fee"},void 0)}),void 0),Object(o.jsx)("p",ti({className:ei.a.feeMakeupPopover__fontParagraph},{children:Object(o.jsx)(br,{id:"conversion-fees-details",values:{sendAmount:Wr(t.sendAmount.value,t.sendAmount.currency),providerName:t.provider.name,marketedFees:Wr(n,t.fees.total.currency)}},void 0)}),void 0),Object(o.jsx)("p",ti({className:ei.a.feeMakeupPopover__fontParagraph},{children:Object(o.jsx)(br,{id:"using-bad-conversion-rate",values:{providerName:t.provider.name,conversionRate:t.rate.toFixed(5),midmarketRate:r.toFixed(5),a:function(e){return Object(o.jsx)("a",ti({href:s,target:"_blank",rel:"noreferrer"},{children:e}),void 0)},span:function(e){return Object(o.jsx)("span",ti({className:ei.a.feeMakeupPopover__warningText},{children:e}),void 0)}}},void 0)}),void 0),Object(o.jsx)("p",ti({className:ei.a.feeMakeupPopover__fontParagraph},{children:Object(o.jsx)(br,{id:"this-adds-fees",values:{hiddenFeesAmount:a,hiddenFeesCurrency:t.fees.total.currency}},void 0)}),void 0),Object(o.jsx)("p",ti({className:ei.a.feeMakeupPopover__fontParagraph},{children:Object(o.jsx)(br,{id:"bringing-the-total",values:{totalFee:Wr(t.fees.total.value,t.fees.total.currency),span:function(e){return Object(o.jsx)("span",ti({className:ei.a.feeMakeupPopover__totalAmount},{children:e}),void 0)}}},void 0)}),void 0)]}),void 0)},ni=function(){return(ni=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},oi=function(e,t){var r;return function(e){e.GoodConversionRate="using-good-conversion-rate",e.GreatConversionRate="using-great-conversion-rate"}(r||(r={})),function(e,t,r){if(e===t)return!0;var n=Math.max(Math.abs(e),Math.abs(t));return Math.abs((e-t)/n)<=r}(e,t,.001)||e<t?r.GoodConversionRate:r.GreatConversionRate},ai=function(e){var t=e.quote,r=e.midmarketRate,n=e.marketedFeesAmount,a=e.urlLocale,i=e.isProviderWise,s=Nr("/"+a+"/compare?sourceCurrency="+t.route.sourceCurrency+"&targetCurrency="+t.route.targetCurrency),c=i?r:t.rate,l=oi(c,r);return Object(o.jsxs)("div",ni({className:ei.a.feeMakeupPopover__contentContainer},{children:[Object(o.jsx)("h2",ni({className:ei.a.feeMakeupPopover__fontHeader},{children:Object(o.jsx)(br,{id:"what-makes-up-this-fee"},void 0)}),void 0),Object(o.jsx)("p",ni({className:ei.a.feeMakeupPopover__fontParagraph},{children:Object(o.jsx)(br,{id:"conversion-fees-details",values:{sendAmount:Wr(t.sendAmount.value,t.sendAmount.currency),providerName:t.provider.name,marketedFees:Wr(n,t.fees.total.currency)}},void 0)}),void 0),Object(o.jsx)("p",ni({className:ei.a.feeMakeupPopover__fontParagraph},{children:Object(o.jsx)(br,{id:l,values:{providerName:t.provider.name,conversionRate:c.toFixed(5),midmarketRate:r.toFixed(5),a:function(e){return Object(o.jsx)("a",ni({href:s,target:"_blank",rel:"noreferrer"},{children:e}),void 0)}}},void 0)}),void 0),Object(o.jsx)("p",ni({className:ei.a.feeMakeupPopover__fontParagraph},{children:Object(o.jsx)(br,{id:"only-charged-transfer-fees"},void 0)}),void 0),Object(o.jsx)("p",ni({className:ei.a.feeMakeupPopover__fontParagraph},{children:Object(o.jsx)(br,{id:"bringing-the-total",values:{totalFee:Wr(t.fees.total.value,t.fees.total.currency),span:function(e){return Object(o.jsx)("span",ni({className:ei.a.feeMakeupPopover__totalAmount},{children:e}),void 0)}}},void 0)}),void 0)]}),void 0)},ii=function(){return(ii=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},si=function(e){var t=e.quote,r=e.midmarketRate,n=e.open,a=e.onClose,i=e.urlLocale,c=e.locale,l=e.isProviderWise,u=e.onPopoverClick,f=ci(t,r,i,l),d=Za[c],p=pr({locale:c,messages:d});return Object(o.jsx)("div",ii({className:ei.a.feeMakeupPopover__container},{children:Object(o.jsx)(mr,ii({locale:c,messages:d,defaultLocale:s.DEFAULT},{children:cn()?Object(o.jsx)(lo,ii({open:n,onClose:a},{children:f}),void 0):Object(o.jsx)(Ja,{onClick:u,content:f,size:g.SMALL,"aria-label":p.formatMessage({id:"what-makes-up-this-fee"})},void 0)}),void 0)}),void 0)},ci=function(e,t,r,n){var a=n?0:li(e,Pa.HIDDEN),i=li(e,Pa.MARKETED);return a>0?Object(o.jsx)(ri,{quote:e,midmarketRate:t,marketedFeesAmount:i,hiddenFeesAmount:a,urlLocale:r},void 0):Object(o.jsx)(ai,{quote:e,midmarketRate:t,marketedFeesAmount:i,urlLocale:r,isProviderWise:n},void 0)};function li(e,t){return e.fees.breakdown.filter((function(e){return e.type===t})).reduce((function(e,t){return e+t.amount.value}),0)}var ui,fi=r(121),di=r.n(fi),pi=r(122),mi=function(){return(mi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};!function(e){e.Good="good",e.Bad="bad"}(ui||(ui={}));var hi=function(e){var t=e.variant,r=e.darkMode,n=e.message;return Object(o.jsx)("div",mi({className:vi("hiddenFee-row")},{children:Object(o.jsxs)("p",mi({className:vi("hiddenFee-paragraph",r)},{children:[Object(o.jsx)("span",{className:vi("hiddenFee-dot--"+t)},void 0),Object(o.jsx)("span",{children:n},void 0)]}),void 0)}),void 0)},vi=function(e,t){return void 0===t&&(t=!1),di.a[e+(t?"--dark":"")]},gi=function(e){return e.value>0},yi=function(e){return Wr(parseFloat(e.value.toFixed(5)),e.currency)},bi=function(e){var t=e.totalFee,r=e.hiddenFee,n=e.darkMode,a=e.locale;return Object(o.jsxs)(mr,mi({messages:pi[a],locale:a,defaultLocale:s.DEFAULT},{children:[Object(o.jsx)("div",mi({className:vi("totalFee-label",n)},{children:yi(t)}),void 0),Object(o.jsx)(hi,{variant:gi(r)?ui.Bad:ui.Good,darkMode:n,message:gi(r)?Object(o.jsx)(br,{id:"hidden-fees",values:{hiddenFee:yi(r),label:function(e){return Object(o.jsx)("span",mi({className:vi("hiddenFee-label")},{children:e}),void 0)}}},void 0):Object(o.jsx)(br,{id:"no-hidden-fees"},void 0)},void 0)]}),void 0)},wi=function(){return(wi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Oi=function(e){return Ga.a.row+" "+(Ei(e)?Ga.a.rowDark:"")},Ei=function(e){return e&&"transferwise"===e.provider.alias},_i=function(e){var t=e.className;return"string"==typeof e.className&&(t.startsWith("twLogo")||t.startsWith("poweredBy")||t.startsWith("np-popover")||t.startsWith("np-bottom-sheet")||t.includes("dimmer"))},xi=function(e){var t,r=e.quote,n=e.nextQuote,i=e.midmarketRate,s=e.locale,c=e.urlLocale,l=e.onFeePopoverClick,u=e.onMobileRowClick,f=e.onRowVisible,d=e.onWiseWithHiddenFees,p=(null===(t=r.fees.breakdown.find((function(e){return e.type===Pa.HIDDEN})))||void 0===t?void 0:t.amount)||{currency:r.route.sourceCurrency,value:0},m=Object(a.useState)(!1),h=m[0],v=m[1],g=cn();"transferwise"===r.provider.alias&&p.value>0&&(null==d||d());var y=function(e){var t=void 0===e?{}:e,r=t.threshold,n=t.delay,o=t.trackVisibility,i=t.rootMargin,s=t.root,c=t.triggerOnce,l=t.skip,u=t.initialInView,f=Object(a.useRef)(),d=Object(a.useState)({inView:!!u}),p=d[0],m=d[1],h=Object(a.useCallback)((function(e){void 0!==f.current&&(f.current(),f.current=void 0),l||e&&(f.current=$r(e,(function(e,t){m({inView:e,entry:t}),t.isIntersecting&&c&&f.current&&(f.current(),f.current=void 0)}),{root:s,rootMargin:i,threshold:r,trackVisibility:o,delay:n}))}),[Array.isArray(r)?r.toString():r,s,i,c,l,o,n]);Object(a.useEffect)((function(){f.current||!p.entry||c||l||m({inView:!!u})}));var v=[h,p.inView,p.entry];return v.ref=v[0],v.inView=v[1],v.entry=v[2],v}({threshold:.5,triggerOnce:!0}),b=y.ref,w=y.inView;Object(a.useEffect)((function(){w&&(null==f||f(r.provider.name))}),[w]);var O="transferwise"===r.provider.alias?"https://wise.com/public-resources/assets/logos/wise/brand_logo_inverse.svg":r.provider.logoUrl;return Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)("tr",wi({ref:b,onClick:function(e){var t=e.target;!g||_i(t)||h||(v(!0),null==u||u(r.provider.name))},className:Oi(r)},{children:[Object(o.jsx)("td",wi({className:Ga.a.row__providerLogo},{children:Object(o.jsx)(Da,{logo:O,name:r.provider.name,styles:{providerLogo:Ga.a.row__providerLogoInternal},isPartner:r.provider.partner,locale:s},void 0)}),void 0),Object(o.jsx)("td",wi({className:Ga.a.row__fee},{children:Object(o.jsx)(bi,{totalFee:r.fees.total,hiddenFee:Ei(r)?{value:0,currency:p.currency}:p,darkMode:Ei(r),locale:s},void 0)}),void 0),Object(o.jsx)("td",wi({className:Ga.a.row__feeMakeup},{children:Object(o.jsx)(si,{quote:r,midmarketRate:i,open:h,onClose:function(){return v(!1)},urlLocale:c,locale:s,isProviderWise:Ei(r),onPopoverClick:function(){l&&l(r.provider.name)}},void 0)}),void 0)]}),void 0),!n||Ei(r)||Ei(n)?Object(o.jsx)("tr",{},void 0):Object(o.jsx)("tr",{children:Object(o.jsx)("td",wi({colSpan:3},{children:Object(o.jsx)("hr",{className:Ga.a.transferFeeComparisonTableRow__border},void 0)}),void 0)},void 0)]},void 0)},Ti=r(54),ji=r.n(Ti),ki=r(124),Ri=function(){return(Ri=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Ni=function(e){var t=e.locale,r=e.sendAmount,n=e.quotes;return Object(o.jsx)(mr,Ri({locale:t,messages:ki[t],defaultLocale:s.DEFAULT},{children:Object(o.jsx)("p",Ri({className:ji.a.transferFeeComparisonTable__header},{children:Object(o.jsx)(br,{id:"real-cost",values:{sendAmount:Wr(r.value,r.currency),targetCurrency:n[0].route.targetCurrency,span:function(e){return Object(o.jsx)("span",Ri({className:ji.a.transferFeeComparisonTable__headerText},{children:e}),void 0)}}},void 0)}),void 0)}),void 0)},Ai=function(e){var t=e.sendAmount,r=e.quotes,n=e.midmarketRate,a=e.urlLocale,i=e.locale,s=e.onFeePopoverClick,c=e.onMobileRowClick,l=e.onRowVisible;e.onWiseWithHiddenFees;return Object(o.jsxs)("table",Ri({className:ji.a.transferFeeComparisonTable__rectangle},{children:[Object(o.jsx)("thead",{children:Object(o.jsx)("tr",{children:Object(o.jsx)("td",Ri({colSpan:3},{children:Object(o.jsx)(Ni,{locale:i,sendAmount:t,quotes:r},void 0)}),void 0)},void 0)},void 0),Object(o.jsx)("tbody",{children:r.map((function(e,t){return Object(o.jsx)(xi,{quote:e,nextQuote:r[t+1],midmarketRate:n,urlLocale:a,locale:i,onFeePopoverClick:s,onMobileRowClick:c,onRowVisible:l},e.provider.alias)}))},void 0)]}),void 0)},Pi=function(){return(Pi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Ci=function(e){var t=e.sendAmount,r=e.quotes,n=e.midmarketRate,a=e.providerFiltering,i=e.locale,s=e.urlLocale,c=e.onFeePopoverClick,l=e.onMobileRowClick,u=e.onRowVisible,f=e.onWiseWithHiddenFees;return Object(o.jsxs)("div",Pi({className:O.a.transferFeeComparison__container},{children:[a.showToggle?Object(o.jsx)("div",Pi({className:O.a.transferFeeComparison__providerFilterToggle},{children:Object(o.jsx)(jr,{activeToggle:a.selectedOption,onToggle:a.onProviderFilteringOptionChange,locale:i},void 0)}),void 0):null,Object(o.jsx)("div",Pi({className:O.a.transferFeeComparison__table},{children:Object(o.jsx)(Ai,{sendAmount:t,quotes:r,midmarketRate:n,urlLocale:s,locale:i,onFeePopoverClick:c,onMobileRowClick:l,onRowVisible:u,onWiseWithHiddenFees:f},void 0)}),void 0),Object(o.jsx)("div",Pi({className:O.a.transferFeeComparison__footer},{children:Object(o.jsx)(Lr,{locale:i,urlLocale:s},void 0)}),void 0)]}),void 0)},Si=function(){return(Si=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Li=function(e){var t,r=e.sendAmount,n=e.quotes,i=e.quoteApi,u=e.locale,f=e.urlLocale,m=e.enableLargestProviderFiltering,h=e.trackEvent,v=void 0===h?function(){}:h,g=e.requiredNumberOfLargestProviders,y=void 0===g?5:g;f=f.toLowerCase(),u=function(e){return Object.keys(s).includes(e.valueOf().slice(0,2).toUpperCase())?e.valueOf().slice(0,2):s.EN}(u);var b=i?i.rate:null===(t=n.find((function(e){return"transferwise"===e.provider.alias})))||void 0===t?void 0:t.rate,w=Object(a.useState)(m?wr.LARGEST_PROVIDERS:wr.ALL_PROVIDERS),O=w[0],E=w[1],_=function(){return{largestProviderEnabled:m,providerFilteringOption:O,quotes:n,urlLocale:f,requiredNumberOfLargestProviders:y,hasEnoughProviders:d(n,f,y),midMarketRate:b,isWiseCheapest:"transferwise"===n[0].provider.alias,sourceCurrency:n[0].route.sourceCurrency,targetCurrency:n[0].route.targetCurrency}};Object(a.useEffect)((function(){v(l.TransferFeeComparison,c.LargestProviderTableRendered,_())}),[]);var x=Object(a.useState)(!1),T=x[0],j=x[1],k=m&&d(n,f,y),R=O===wr.LARGEST_PROVIDERS&&k?p(n,f):n.filter((function(e){return!e.provider.partner}));return R.sort((function(e,t){return e.fees.total.value-t.fees.total.value})),Object(o.jsx)(Ci,{sendAmount:r,quotes:R,midmarketRate:b,providerFiltering:{showToggle:k,selectedOption:O,onProviderFilteringOptionChange:function(e){E(e),v(l.TransferFeeComparison,c.ProviderFilteringOptionChanged,_())}},locale:u,urlLocale:f,onFeePopoverClick:function(e){var t=_();v(l.TransferFeeComparison,c.FeeBreakdownPopoverStarted,Si(Si({},t),{providerName:e}))},onMobileRowClick:function(e){var t=_();v(l.TransferFeeComparison,c.MobileFeeBreakdownStarted,Si(Si({},t),{providerName:e}))},onRowVisible:function(e){T||(v(l.TransferFeeComparison,c.RowWasSeen,Si(Si({},_()),{providerName:e})),j(!0))},onWiseWithHiddenFees:function(){var e=_();v(l.TransferFeeComparison,c.WiseHasHiddenFee,Si({},e))}},void 0)}},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return n}));r(51);function n(t,r){r&&function(t){var r,n;["development","test"].includes(null===(r=e)||void 0===r||null===(n=r.env)||void 0===n?void 0:"production")&&console.warn(t)}(t)}}).call(this,r(157))}])}));
52
52
  //# sourceMappingURL=transfer-fee-comparison.js.map