@rango-dev/ui 0.1.11 → 0.1.13-next.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 (31) hide show
  1. package/dist/hooks/index.d.ts +1 -0
  2. package/dist/hooks/useCopyToClipboard.d.ts +1 -0
  3. package/dist/index.d.ts +1 -0
  4. package/dist/ui.cjs.development.js +98 -34
  5. package/dist/ui.cjs.development.js.map +1 -1
  6. package/dist/ui.cjs.production.min.js +1 -1
  7. package/dist/ui.cjs.production.min.js.map +1 -1
  8. package/dist/ui.esm.js +98 -35
  9. package/dist/ui.esm.js.map +1 -1
  10. package/package.json +2 -2
  11. package/src/components/BlockchainSelector/BlockchainSelector.tsx +2 -2
  12. package/src/components/Icon/ArrowRightIcon.tsx +3 -3
  13. package/src/components/Icon/ChevronRightIcon.tsx +3 -3
  14. package/src/components/Icon/DisconnectIcon.tsx +3 -3
  15. package/src/components/Icon/HistoryIcon.tsx +3 -3
  16. package/src/components/Icon/RetryIcon.tsx +3 -3
  17. package/src/components/Icon/SettingIcon.tsx +3 -3
  18. package/src/components/LiquiditySourcesSelector/LiquiditySourcesSelector.tsx +1 -1
  19. package/src/components/SwapContainer/SwapContainer.tsx +16 -0
  20. package/src/components/SwapDetail/Token.tsx +3 -1
  21. package/src/components/TextField/TextField.tsx +10 -2
  22. package/src/components/TokenSelector/TokenSelector.tsx +2 -2
  23. package/src/components/Wallet/Wallet.tsx +4 -0
  24. package/src/containers/ConfirmSwap/ConfirmSwap.tsx +4 -4
  25. package/src/containers/History/History.tsx +1 -1
  26. package/src/containers/History/SwapsGroup.tsx +7 -7
  27. package/src/containers/SwapHistory/SwapMessages.tsx +3 -1
  28. package/src/hooks/index.ts +1 -0
  29. package/src/hooks/useCopyToClipboard.ts +23 -0
  30. package/src/index.ts +1 -0
  31. /package/{README.md → readme.md} +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),r=e(t),n=require("@radix-ui/react-tooltip"),o=require("react-window"),i=e(require("react-window-infinite-loader")),a=e(require("react-virtualized-auto-sizer")),l=require("@radix-ui/react-checkbox"),c=require("react-dom"),s=require("@rango-dev/wallets-shared"),d=require("@radix-ui/react-switch"),u=require("@radix-ui/react-radio-group"),m=require("react-color");function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function g(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(o[r]=e[r]);return o}var h,v,f,x,E=(0,require("@stitches/react").createStitches)({media:{sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)"},theme:{colors:{primary:"#5FA425",primary100:"#9FC87C",primary200:"#8FBF66",primary300:"#7FB651",primary400:"#6FAD3B",primary500:"#5FA425",primary600:"#4C831E",primary700:"#396216",primary800:"#26420F",primary900:"#132107",neutrals200:"#FAFAFA",neutrals300:"#EAEAEA",neutrals400:"#999999",neutrals500:"#888888",neutrals600:"#666666",neutrals700:"#444444",neutrals800:"#333333",neutrals900:"#111111",background:"#fff",foreground:"#000",success:"#0070F3",success100:"#D3E5FF",success300:"#3291FF",success500:"#0070F3",success700:"#0761D1",warning:"#F5A623",warning100:"#FFEFCF",warning300:"#F7B955",warning500:"#F5A623",warning700:"#AB570A",error:"#FF0000",error100:"#F7D4D6",error300:"#FF3333",error500:"#FF0000",error700:"#E60000",white:"#fff"},space:{2:"2px",4:"4px",6:"6px",8:"8px",10:"10px",12:"12px",16:"16px",20:"20px",24:"24px",28:"28px",30:"30px",32:"32px"},fontSizes:{10:"10px",12:"12px",14:"14px",16:"16px",18:"18px",20:"20px",24:"24px",32:"32px",36:"36px",40:"40px",48:"48px"},fonts:{},fontWeights:{400:"400",500:"500",600:"600",700:"700"},lineHeights:{},letterSpacings:{},sizes:{4:"4px",6:"6px",8:"8px",12:"12px",16:"16px",20:"20px",24:"24px",28:"28px",32:"32px",36:"36px",40:"40px",48:"48px"},borderWidths:{},borderStyles:{},radii:{5:"8px",10:"12px"},shadows:{s:"0px 3px 5px 3px #f0f2f5, 0px 6px 10px 3px #f0f2f5, 0px 1px 18px 3px #f0f2f5"},zIndices:{},transitions:{}},utils:{bc:function(e){return{backgroundColor:e}}}}),$=E.styled,w=E.css,b=E.createTheme,y=E.keyframes,k=E.globalCss,C=b({}),z=b({colors:{neutrals200:"#111111",neutrals300:"#333333",neutrals400:"#444444",neutrals500:"#666666",neutrals600:"#888888",neutrals700:"#999999",neutrals800:"#EAEAEA",neutrals900:"#FAFAFA",foreground:"#fff",background:"#000"},shadows:{s:"0px 3px 5px 3px #222, 0px 6px 10px 3px #222, 0px 1px 18px 3px #222"}}),S=$("svg",{stroke:"$foreground",variants:{color:{primary:{stroke:"$primary"},error:{stroke:"$error"},warning:{stroke:"$warning"},success:{stroke:"$success"},black:(h={$$color:"$colors$foreground"},h["."+z+" &"]={$$color:"$colors$background"},h.stroke="$$color",h),white:(v={$$color:"$colors$background"},v["."+z+" &"]={$$color:"$colors$foreground"},v.stroke="$$color",v)},disabled:{true:{stroke:"$neutrals400"}}}}),L=$("svg",{fill:"$foreground",variants:{color:{primary:{fill:"$primary"},error:{fill:"$error"},warning:{fill:"$warning"},success:{fill:"$success"},black:(f={$$color:"$colors$foreground"},f["."+z+" &"]={$$color:"$colors$background"},f.fill="$$color",f),white:(x={$$color:"$colors$background"},x["."+z+" &"]={$$color:"$colors$foreground"},x.fill="$$color",x)},disabled:{true:{stroke:"$neutrals400"}}}}),R=["size","color"],I=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,R);return t.createElement(S,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10ZM9.17 14.83l5.66-5.66M14.83 14.83 9.17 9.17",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};I.toString=function(){return"._icon"};var M=["size","color"],j=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,M);return t.createElement(S,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"m7.75 12 2.83 2.83 5.67-5.66",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};j.toString=function(){return"._icon"};var B=["size","color"],N=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,B);return t.createElement(S,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M6 12h12M12 18V6",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};N.toString=function(){return"._icon"};var W=["size","color"],F=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,W);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10ZM12 8v5",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff"}),t.createElement("path",{d:"M11.994 16h.01",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff"}))};F.toString=function(){return"._icon"};var _=["size","color"],T=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,_);return t.createElement(S,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10ZM8 12h8M12 16V8",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};T.toString=function(){return"._icon"};var O=["size","color"],A=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,O);return t.createElement(S,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M11.92 22c5.5 0 10-4.5 10-10s-4.5-10-10-10-10 4.5-10 10 4.5 10 10 10ZM7.92 12h8",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};A.toString=function(){return"._icon"};var Z=["size","color"],H=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,Z);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff"}),t.createElement("path",{d:"m7.75 12 2.83 2.83 5.67-5.66",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff"}))};H.toString=function(){return"._icon"};var D=["size","color"],q=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,D);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:o,className:"_icon"},i),t.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fillRule:"evenodd",clipRule:"evenodd"}))};q.toString=function(){return"._icon"};var V=["size","color"],P=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,V);return t.createElement(S,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M12 22c5.52 0 10-4.48 10-10S17.52 2 12 2 2 6.48 2 12s4.48 10 10 10ZM18.9 5l-14 14",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}))};P.toString=function(){return"._icon"};var G=["size","color"],Y=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,G);return t.createElement(S,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M12 9v5M12 21.41H5.94c-3.47 0-4.92-2.48-3.24-5.51l3.12-5.62L8.76 5c1.78-3.21 4.7-3.21 6.48 0l2.94 5.29 3.12 5.62c1.68 3.03.22 5.51-3.24 5.51H12v-.01Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M11.994 17h.01",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}))};Y.toString=function(){return"._icon"};var U=["size","color"],X=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,U);return t.createElement(S,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),t.createElement("polyline",{points:"14 2 14 8 20 8"}),t.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),t.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),t.createElement("polyline",{points:"10 9 9 9 8 9"}))};X.toString=function(){return"._icon"};var J=["size","color"],K=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,J);return t.createElement(S,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M4 22V5c0-2 1.34-3 3-3h8c1.66 0 3 1 3 3v17H4ZM2.5 22h17",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M8.89 10h4.23c1.04 0 1.89-.5 1.89-1.89V6.88c0-1.39-.85-1.89-1.89-1.89H8.89C7.85 4.99 7 5.49 7 6.88v1.23C7 9.5 7.85 10 8.89 10ZM7 13h3M18 16.01l4.5-.01v-6l-2-1",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};K.toString=function(){return"._icon"};var Q=["size","color"],ee=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,Q);return t.createElement(S,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("circle",{cx:"12",cy:"12",r:"3"}),t.createElement("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"}))};ee.toString=function(){return"._icon"};var te=["size","color"],re=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,te);return t.createElement(S,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M21.5 5.98c-3.33-.33-6.68-.5-10.02-.5-1.98 0-3.96.1-5.94.3l-2.04.2M9 4.97l.22-1.31C9.38 2.71 9.5 2 11.19 2h2.62c1.69 0 1.82.75 1.97 1.67l.22 1.3M19.35 9.14l-.65 10.07c-.11 1.57-.2 2.79-2.99 2.79H9.29c-2.79 0-2.88-1.22-2.99-2.79L5.65 9.14M10.83 16.5h3.33M10 12.5h5",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};re.toString=function(){return"._icon"};var ne=["size","color"],oe=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,ne);return t.createElement(S,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M9 11.7h5M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};oe.toString=function(){return"._icon"};var ie=["size","color"],ae=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,ie);return t.createElement(S,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};ae.toString=function(){return"._icon"};var le=["size","color"],ce=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,le);return t.createElement(S,Object.assign({width:n,height:n,fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",color:o,className:"_icon"},i),t.createElement("path",{d:"m8.91 19.92 6.52-6.52c.77-.77.77-2.03 0-2.8L8.91 4.08",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}))};ce.toString=function(){return"._icon"};var se=["size","color"],de=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,se);return t.createElement(S,Object.assign({width:n,height:n,fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",color:o,className:"_icon"},i),t.createElement("path",{d:"M19.92 15.05 13.4 8.53c-.77-.77-2.03-.77-2.8 0l-6.52 6.52",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}))};de.toString=function(){return"._icon"};var ue=["size","color"],me=function(e){var t=e.size,n=void 0===t?16:t,o=e.color,i=g(e,ue);return r.createElement(S,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),r.createElement("path",{d:"m19.92 8.95-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}))};me.toString=function(){return"._icon"};var pe=["size","color"],ge=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,pe);return t.createElement(S,Object.assign({width:n,height:n,fill:"none",viewBox:"0 0 24 24",color:o,xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M15 19.92 8.48 13.4c-.77-.77-.77-2.03 0-2.8L15 4.08",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}))};me.toString=function(){return"._icon"};var he=["size","color"],ve=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,he);return t.createElement(S,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M16.44 8.9c3.6.31 5.07 2.16 5.07 6.21v.13c0 4.47-1.79 6.26-6.26 6.26H8.74c-4.47 0-6.26-1.79-6.26-6.26v-.13c0-4.02 1.45-5.87 4.99-6.2M12 2v12.88",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M15.35 12.65 12 16l-3.35-3.35",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};ve.toString=function(){return"._icon"};var fe=["color","size"],xe=t.forwardRef((function(e,r){var n=e.color,o=void 0===n?"black":n,i=e.size,a=void 0===i?16:i,l=g(e,fe);return t.createElement(S,Object.assign({xmlns:"http://www.w3.org/2000/svg",width:a,height:a,color:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"_icon"},l,{ref:r}),t.createElement("polyline",{points:"9 18 15 12 9 6"}))}));xe.toString=function(){return"._icon"};var Ee=["size","color"],$e=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,Ee);return t.createElement(S,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),t.createElement("polyline",{points:"12 5 19 12 12 19"}))};$e.toString=function(){return"._icon"};var we=["size","color"],be=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,we);return t.createElement(S,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M14.89 5.08c-.87-.26-1.83-.43-2.89-.43-4.79 0-8.67 3.88-8.67 8.67C3.33 18.12 7.21 22 12 22s8.67-3.88 8.67-8.67c0-1.78-.54-3.44-1.46-4.82M16.13 5.32 13.24 2M16.13 5.32l-3.37 2.46",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};be.toString=function(){return"._icon"};var ye=["size","color"],ke=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,ye);return t.createElement(S,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M9.11 5.08c.87-.26 1.83-.43 2.89-.43 4.79 0 8.67 3.88 8.67 8.67s-3.88 8.67-8.67 8.67-8.67-3.88-8.67-8.67c0-1.78.54-3.44 1.46-4.82M7.87 5.32 10.76 2M7.87 5.32l3.37 2.46",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};ke.toString=function(){return"._icon"};var Ce=["size","color"],ze=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,Ce);return t.createElement(S,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M22 12c0 5.52-4.48 10-10 10s-8.89-5.56-8.89-5.56m0 0h4.52m-4.52 0v5M2 12C2 6.48 6.44 2 12 2c6.67 0 10 5.56 10 5.56m0 0v-5m0 5h-4.44",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};ze.toString=function(){return"._icon"};var Se=["size","color"],Le=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,Se);return t.createElement(S,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"m13.82 6.85 3.04 3.04M13.82 17.15V6.85M10.18 17.15l-3.04-3.04M10.18 6.85v10.3",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};Le.toString=function(){return"._icon"};var Re=["size","color"],Ie=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,Re);return t.createElement(S,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"m17.15 13.82-3.04 3.04M6.85 13.82h10.3M6.85 10.18l3.04-3.04M17.15 10.18H6.85",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};Ie.toString=function(){return"._icon"};var Me=["color","size"],je=t.forwardRef((function(e,r){var n=e.color,o=void 0===n?"black":n,i=e.size,a=void 0===i?16:i,l=g(e,Me);return t.createElement(S,Object.assign({xmlns:"http://www.w3.org/2000/svg",width:a,height:a,color:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"_icon"},l,{ref:r}),t.createElement("polyline",{points:"23 4 23 10 17 10"}),t.createElement("path",{d:"M20.49 15a9 9 0 1 1-2.12-9.36L23 10"}))}));je.toString=function(){return"._icon"};var Be=["size","color"],Ne=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,Be);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.51 7.205a3.018 3.018 0 0 0-3.01 3.01v6.73a3.018 3.018 0 0 0 3.01 3.01h11.48a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.778-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227 2.743 2.743 0 0 1 1.971-.82H19v-.69a3.018 3.018 0 0 0-3.01-3.01H4.51ZM0 10.215a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.36 0-.675.14-.903.373l-.013.014c-.266.26-.415.63-.377 1.022v.009c.053.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51H4.51A4.518 4.518 0 0 1 0 16.945v-6.73Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.35 2.655a1.15 1.15 0 0 0-1.554-1.079l-7.94 3A2.098 2.098 0 0 0 1.5 6.547v4.569a.75.75 0 1 1-1.5 0v-4.57c0-1.5.922-2.84 2.325-3.371l7.94-3s-.001 0 0 0c1.732-.657 3.585.629 3.585 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM17.729 12.405c-.36 0-.675.14-.903.373l-.013.014c-.266.26-.415.63-.377 1.022v.009c.053.635.664 1.182 1.413 1.182h1.943a.276.276 0 0 0 .267-.27v-2.06a.276.276 0 0 0-.267-.27h-2.063Zm-1.97-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.723 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.778-1.03-2.907-2.553a2.759 2.759 0 0 1 .816-2.227Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75Z"}))};Ne.toString=function(){return"._icon"};var We=["size","color"],Fe=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,We);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.569 7.205a3.018 3.018 0 0 0-3.01 3.01v3.076a4.749 4.749 0 0 1 6.5 4.414c0 .808-.206 1.579-.574 2.25h8.564a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.778-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227 2.743 2.743 0 0 1 1.97-.82h1.27v-.69a3.018 3.018 0 0 0-3.01-3.01H6.569Zm-4.51 3.01a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.36 0-.675.14-.903.373l-.014.014c-.266.26-.414.63-.377 1.022l.001.009c.053.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51H7.939a.75.75 0 0 1-.482-1.324c.243-.204.457-.457.624-.744l.01-.015a3.17 3.17 0 0 0 .468-1.667 3.249 3.249 0 0 0-5.283-2.533.75.75 0 0 1-1.217-.587v-4.37Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.409 2.655a1.15 1.15 0 0 0-1.555-1.078l-7.94 3a2.098 2.098 0 0 0-1.355 1.968v4.57a.75.75 0 0 1-1.5 0v-4.57c0-1.5.921-2.84 2.324-3.371l7.94-3c1.733-.657 3.586.629 3.586 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM19.787 12.405c-.359 0-.674.14-.902.374l-.014.013c-.266.26-.414.63-.377 1.022v.01c.054.634.664 1.181 1.413 1.181h1.943a.276.276 0 0 0 .267-.27v-2.06a.276.276 0 0 0-.267-.27h-2.063Zm-1.97-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.723 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.777-1.03-2.907-2.553a2.759 2.759 0 0 1 .817-2.227Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.559 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75ZM5.309 14.455c-.762 0-1.469.267-2.033.717h-.001a3.22 3.22 0 0 0-1.216 2.533c0 .61.17 1.184.468 1.667l.006.01a3.22 3.22 0 0 0 2.776 1.573 3.155 3.155 0 0 0 2.148-.824c.243-.204.457-.457.624-.744l.01-.015a3.17 3.17 0 0 0 .468-1.667 3.249 3.249 0 0 0-3.25-3.25Zm-2.967-.457a4.749 4.749 0 0 1 7.717 3.707c0 .888-.248 1.73-.687 2.446-.25.427-.57.808-.941 1.12a4.656 4.656 0 0 1-3.122 1.184 4.72 4.72 0 0 1-4.062-2.301 4.671 4.671 0 0 1-.688-2.449 4.72 4.72 0 0 1 1.783-3.707Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.07 17.685a.75.75 0 0 1 .75-.75H6.8a.75.75 0 0 1 0 1.5H3.82a.75.75 0 0 1-.75-.75Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.309 15.475a.75.75 0 0 1 .75.75v2.99a.75.75 0 0 1-1.5 0v-2.99a.75.75 0 0 1 .75-.75Z"}))};Fe.toString=function(){return"._icon"};var _e=["size","color"],Te=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,_e);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.627 7.205a3.018 3.018 0 0 0-3.01 3.01v3.076a4.749 4.749 0 0 1 6.5 4.414c0 .808-.205 1.579-.573 2.25h8.563a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.777-1.03-2.907-2.553a2.759 2.759 0 0 1 .817-2.227 2.743 2.743 0 0 1 1.97-.82h1.27v-.69a3.018 3.018 0 0 0-3.01-3.01H6.627Zm-4.51 3.01a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.359 0-.675.14-.902.373l-.014.014c-.266.26-.415.63-.377 1.022v.009c.054.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51H7.997a.75.75 0 0 1-.482-1.325c.243-.203.457-.456.624-.743l.01-.016a3.17 3.17 0 0 0 .468-1.666 3.249 3.249 0 0 0-5.282-2.533.75.75 0 0 1-1.218-.587v-4.37Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.467 2.655a1.15 1.15 0 0 0-1.554-1.079l-7.94 3a2.098 2.098 0 0 0-1.356 1.97v4.569a.75.75 0 1 1-1.5 0v-4.57c0-1.5.922-2.84 2.325-3.371l7.94-3c1.732-.657 3.585.629 3.585 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM19.846 12.405c-.359 0-.675.14-.903.373l-.013.014c-.266.26-.415.63-.377 1.022v.009c.053.635.664 1.182 1.413 1.182h1.943a.276.276 0 0 0 .267-.27v-2.06a.276.276 0 0 0-.267-.27h-2.063Zm-1.97-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.723 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.778-1.03-2.907-2.553a2.759 2.759 0 0 1 .816-2.227Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.617 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75ZM5.367 14.455c-.761 0-1.468.267-2.032.717h-.002a3.22 3.22 0 0 0-1.216 2.533c0 .61.17 1.183.469 1.666l.006.01a3.22 3.22 0 0 0 2.775 1.574 3.155 3.155 0 0 0 2.148-.825c.243-.203.457-.456.624-.743l.01-.016a3.17 3.17 0 0 0 .468-1.666 3.249 3.249 0 0 0-3.25-3.25ZM2.4 13.998a4.749 4.749 0 0 1 7.717 3.707 4.67 4.67 0 0 1-.687 2.446c-.25.427-.57.808-.94 1.12a4.655 4.655 0 0 1-3.123 1.184 4.72 4.72 0 0 1-4.061-2.301 4.67 4.67 0 0 1-.689-2.449A4.72 4.72 0 0 1 2.4 13.998Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.785 16.106a.75.75 0 0 1 1.06-.003l2.12 2.11a.75.75 0 1 1-1.058 1.064l-2.12-2.11a.75.75 0 0 1-.002-1.061Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.948 16.136a.75.75 0 0 1-.002 1.06l-2.12 2.11a.75.75 0 0 1-1.058-1.063l2.12-2.11a.75.75 0 0 1 1.06.003Z"}))};Te.toString=function(){return"._icon"};var Oe=["size","color"],Ae=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,Oe);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.686 7.205a3.018 3.018 0 0 0-3.01 3.01v3.076a4.749 4.749 0 0 1 6.5 4.414c0 .808-.205 1.579-.573 2.25h8.563a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.778-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227 2.743 2.743 0 0 1 1.97-.82h1.27v-.69a3.018 3.018 0 0 0-3.01-3.01H6.686Zm-4.51 3.01a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.36 0-.675.14-.903.373l-.013.014c-.266.26-.415.63-.378 1.022l.001.009c.053.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51H8.056a.75.75 0 0 1-.482-1.324c.243-.204.457-.457.624-.744l.01-.015a3.17 3.17 0 0 0 .468-1.667 3.249 3.249 0 0 0-5.283-2.533.75.75 0 0 1-1.217-.587v-4.37Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.526 2.655a1.15 1.15 0 0 0-1.554-1.078l-7.94 3a2.098 2.098 0 0 0-1.356 1.968v4.57a.75.75 0 0 1-1.5 0v-4.57c0-1.5.921-2.84 2.324-3.371l7.94-3c1.733-.657 3.586.629 3.586 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM19.905 12.405c-.36 0-.675.14-.903.374l-.014.013c-.265.26-.414.63-.377 1.022l.001.01c.053.634.664 1.181 1.413 1.181h1.942a.276.276 0 0 0 .268-.27v-2.06a.276.276 0 0 0-.268-.27h-2.062Zm-1.971-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.724 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.778-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.676 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75ZM5.426 14.455c-.762 0-1.469.267-2.033.717h-.001a3.22 3.22 0 0 0-1.216 2.533c0 .61.17 1.184.468 1.667l.006.01a3.22 3.22 0 0 0 2.776 1.573 3.155 3.155 0 0 0 2.148-.824c.243-.204.457-.457.624-.744l.01-.015a3.17 3.17 0 0 0 .468-1.667 3.249 3.249 0 0 0-3.25-3.25Zm-2.967-.457a4.749 4.749 0 0 1 7.717 3.707c0 .888-.248 1.73-.687 2.446-.25.427-.57.808-.941 1.12a4.656 4.656 0 0 1-3.122 1.184 4.72 4.72 0 0 1-4.062-2.301 4.671 4.671 0 0 1-.688-2.449 4.72 4.72 0 0 1 1.783-3.707Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.538 16.215a.75.75 0 0 1-.042 1.06l-2.13 1.97a.75.75 0 0 1-1.04-.02l-.99-.99a.75.75 0 1 1 1.062-1.06l.48.48 1.6-1.48a.75.75 0 0 1 1.06.04Z"}))};Ae.toString=function(){return"._icon"};var Ze=["size","color"],He=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,Ze);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.244 7.205a3.018 3.018 0 0 0-3.01 3.01v1.73a.75.75 0 0 1-1.5 0v-1.73a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.359 0-.674.14-.902.373l-.014.014c-.266.26-.414.63-.377 1.022v.009c.054.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51h-5.48a.75.75 0 0 1 0-1.5h5.48a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.777-1.03-2.907-2.553a2.758 2.758 0 0 1 .817-2.227 2.743 2.743 0 0 1 1.97-.82h1.27v-.69a3.018 3.018 0 0 0-3.01-3.01H5.244Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.084 2.655a1.15 1.15 0 0 0-1.554-1.078l-7.94 3a2.098 2.098 0 0 0-1.356 1.968v4.57a.75.75 0 0 1-1.5 0v-4.57c0-1.5.922-2.84 2.325-3.371l7.94-3c1.732-.657 3.585.629 3.585 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM18.463 12.405c-.359 0-.675.14-.902.374l-.014.013c-.266.26-.415.63-.377 1.022v.01c.053.634.664 1.181 1.413 1.181h1.943a.276.276 0 0 0 .267-.27v-2.06a.276.276 0 0 0-.267-.27h-2.063Zm-1.97-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.723 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.777-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.234 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75ZM1.234 15.205a.75.75 0 0 1 .75-.75h5.34a1.91 1.91 0 0 1 1.91 1.91v1.28a.75.75 0 0 1-1.5 0v-1.28a.41.41 0 0 0-.41-.41h-5.34a.75.75 0 0 1-.75-.75Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.735 13.455a.75.75 0 0 1 0 1.06l-.69.69.69.69a.75.75 0 1 1-1.061 1.06l-1.22-1.22a.75.75 0 0 1 0-1.06l1.22-1.22a.75.75 0 0 1 1.06 0ZM1.984 17.296a.75.75 0 0 1 .75.75v1.28c0 .225.185.41.41.41h5.34a.75.75 0 0 1 0 1.5h-5.34a1.91 1.91 0 0 1-1.91-1.91v-1.28a.75.75 0 0 1 .75-.75Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.735 18.735a.75.75 0 0 1 1.061 0l1.22 1.22a.75.75 0 0 1 0 1.061l-1.22 1.22a.75.75 0 1 1-1.06-1.06l.689-.69-.69-.69a.75.75 0 0 1 0-1.06Z"}))};He.toString=function(){return"._icon"};var De=["color","size"],qe=t.forwardRef((function(e,r){var n=e.color,o=void 0===n?"black":n,i=e.size,a=void 0===i?16:i,l=g(e,De);return t.createElement(S,Object.assign({xmlns:"http://www.w3.org/2000/svg",width:a,height:a,color:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"_icon"},l,{ref:r}),t.createElement("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),t.createElement("polyline",{points:"16 17 21 12 16 7"}),t.createElement("line",{x1:"21",y1:"12",x2:"9",y2:"12"}))}));qe.toString=function(){return"._icon"};var Ve=["size","color"],Pe=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,Ve);return t.createElement(S,Object.assign({width:n,height:n,viewBox:"0 0 32 32",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("g",{clipPath:"url(#a)",strokeWidth:1.5},t.createElement("path",{d:"M9.333 9.333V4.8a.8.8 0 0 1 .8-.8h11.734a.8.8 0 0 1 .8.8v4.533M13.333 4v5.333M16 4v5.333m9.333 17.334H6.667A2.667 2.667 0 0 1 4 24V12a2.667 2.667 0 0 1 2.667-2.667h18.666A2.667 2.667 0 0 1 28 12v12a2.667 2.667 0 0 1-2.667 2.667Z"}),t.createElement("path",{d:"M22 18.666a.667.667 0 1 1 0-1.334.667.667 0 0 1 0 1.334Z",fill:o,strokeLinecap:"round",strokeLinejoin:"round"})),t.createElement("defs",null,t.createElement("clipPath",{id:"a"},t.createElement("path",{fill:o,d:"M0 0h32v32H0z"}))))};Pe.toString=function(){return"._icon"};var Ge=["size"],Ye=t.forwardRef((function(e,r){var n=e.size,o=void 0===n?16:n,i=g(e,Ge);return t.createElement(S,Object.assign({width:o,height:o,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i,{ref:r}),t.createElement("circle",{cx:10,cy:10,r:7.25,strokeWidth:1.5}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.134 6.6a.6.6 0 0 0-1.2 0v4.27a.6.6 0 0 0 .28.507c.009.01.018.019.029.028l2.59 2.373a.472.472 0 0 0 .753-.109.763.763 0 0 0-.133-.919l-2.319-2.123V6.6Z"}))}));Ye.toString=function(){return"._icon"};var Ue=$(N,{transform:"rotate(45deg)",cursor:"pointer"});Ue.toString=function(){return"._icon"};var Xe=["size","color"],Je=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,Xe);return t.createElement(L,Object.assign({width:n,height:n,color:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 122.88 107.95",xmlSpace:"preserve",className:"_icon"},i),t.createElement("path",{d:"M82.19 0c1.22-.01 2.27.4 3.18 1.27l13.27 12.7c.86.82 1.28 1.91 1.3 3.11.02 1.22-.34 2.33-1.18 3.18l-7.06 7.35L72.09 8.67l6.99-7.28C79.94.5 80.98.02 82.19 0zM20.08 68.29a4.536 4.536 0 1 1 2.67 8.67c-6.98 2.14-11.66 6.28-13.21 10.17-.41 1.04-.55 1.99-.39 2.77.12.59.48 1.13 1.07 1.56 2.55 1.86 8.04 2.34 17.26.1 5.46-1.33 11.31-3.13 16.49-4.73 5.29-1.63 9.91-3.06 13.12-3.66 5.92-1.1 11.83-1.85 16.6-1.61 6.26.31 10.96 2.32 12.57 7.13 1.04 3.11.75 5.81.49 8.23-.09.87-.18 1.68-.14 2.21 0 .02.95-.05 5.53-.41 5.3-.42 10.79-2.51 16.21-4.58 2.78-1.06 5.54-2.11 8.67-3.07 2.4-.73 4.93.63 5.65 3.02.73 2.4-.63 4.93-3.02 5.65-2.43.74-5.24 1.82-8.06 2.89-6.04 2.3-12.14 4.63-18.74 5.15-12.07.95-14.87-2.46-15.3-7.95-.1-1.29.03-2.54.17-3.88.16-1.5.34-3.18-.07-4.39-.18-.54-1.89-.82-4.39-.94-3.99-.2-9.22.48-14.54 1.47-2.65.49-7.05 1.85-12.09 3.41-5.27 1.63-11.22 3.46-17.02 4.87-12.14 2.95-20.21 1.7-24.73-1.6-2.54-1.85-4.05-4.27-4.63-7-.54-2.54-.23-5.28.85-8 2.46-6.14 9.23-12.5 18.98-15.48zm21.19-19.84L53.3 60.02l-14.71 3.95c-.53.1-.74-.11-.65-.6l3.33-14.92zm24.6-33.34 19.59 18.87L58.7 62.23l-23.98 6.43c-.86.17-1.2-.17-1.06-.98l5.43-24.31 26.78-28.26z",style:{fillRule:"evenodd",clipRule:"evenodd"}}))};Je.toString=function(){return"._icon"};var Ke=["size","color"],Qe=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=g(e,Ke);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 64 64",color:o,xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("g",{id:"Text-files"},t.createElement("path",{d:"M53.9791489,9.1429005H50.010849c-0.0826988,0-0.1562004,0.0283995-0.2331009,0.0469999V5.0228\n\t\tC49.7777481,2.253,47.4731483,0,44.6398468,0h-34.422596C7.3839517,0,5.0793519,2.253,5.0793519,5.0228v46.8432999\n\t\tc0,2.7697983,2.3045998,5.0228004,5.1378999,5.0228004h6.0367002v2.2678986C16.253952,61.8274002,18.4702511,64,21.1954517,64\n\t\th32.783699c2.7252007,0,4.9414978-2.1725998,4.9414978-4.8432007V13.9861002\n\t\tC58.9206467,11.3155003,56.7043495,9.1429005,53.9791489,9.1429005z M7.1110516,51.8661003V5.0228\n\t\tc0-1.6487999,1.3938999-2.9909999,3.1062002-2.9909999h34.422596c1.7123032,0,3.1062012,1.3422,3.1062012,2.9909999v46.8432999\n\t\tc0,1.6487999-1.393898,2.9911003-3.1062012,2.9911003h-34.422596C8.5049515,54.8572006,7.1110516,53.5149002,7.1110516,51.8661003z\n\t\t M56.8888474,59.1567993c0,1.550602-1.3055,2.8115005-2.9096985,2.8115005h-32.783699\n\t\tc-1.6042004,0-2.9097996-1.2608986-2.9097996-2.8115005v-2.2678986h26.3541946\n\t\tc2.8333015,0,5.1379013-2.2530022,5.1379013-5.0228004V11.1275997c0.0769005,0.0186005,0.1504021,0.0469999,0.2331009,0.0469999\n\t\th3.9682999c1.6041985,0,2.9096985,1.2609005,2.9096985,2.8115005V59.1567993z"}),t.createElement("path",{d:"M38.6031494,13.2063999H16.253952c-0.5615005,0-1.0159006,0.4542999-1.0159006,1.0158005\n\t\tc0,0.5615997,0.4544001,1.0158997,1.0159006,1.0158997h22.3491974c0.5615005,0,1.0158997-0.4542999,1.0158997-1.0158997\n\t\tC39.6190491,13.6606998,39.16465,13.2063999,38.6031494,13.2063999z"}),t.createElement("path",{d:"M38.6031494,21.3334007H16.253952c-0.5615005,0-1.0159006,0.4542999-1.0159006,1.0157986\n\t\tc0,0.5615005,0.4544001,1.0159016,1.0159006,1.0159016h22.3491974c0.5615005,0,1.0158997-0.454401,1.0158997-1.0159016\n\t\tC39.6190491,21.7877007,39.16465,21.3334007,38.6031494,21.3334007z"}),t.createElement("path",{d:"M38.6031494,29.4603004H16.253952c-0.5615005,0-1.0159006,0.4543991-1.0159006,1.0158997\n\t\ts0.4544001,1.0158997,1.0159006,1.0158997h22.3491974c0.5615005,0,1.0158997-0.4543991,1.0158997-1.0158997\n\t\tS39.16465,29.4603004,38.6031494,29.4603004z"}),t.createElement("path",{d:"M28.4444485,37.5872993H16.253952c-0.5615005,0-1.0159006,0.4543991-1.0159006,1.0158997\n\t\ts0.4544001,1.0158997,1.0159006,1.0158997h12.1904964c0.5615025,0,1.0158005-0.4543991,1.0158005-1.0158997\n\t\tS29.0059509,37.5872993,28.4444485,37.5872993z"})))};Qe.toString=function(){return"._icon"};var et=["children","className","color"],tt=$("span",{margin:0,display:"inline-block",variants:{variant:{h1:{fontSize:"$36",fontWeight:"$700","@md":{fontSize:"$40"},"@lg":{fontSize:"$48"}},h2:{fontSize:"$32",fontWeight:"$700","@md":{fontSize:"$36"},"@lg":{fontSize:"$40"}},h3:{fontSize:"$20",fontWeight:"$700","@md":{fontSize:"$24"},"@lg":{fontSize:"$32"}},h4:{fontSize:"$18",fontWeight:"$600","@md":{fontSize:"$20"},"@lg":{fontSize:"$24"}},h5:{fontSize:"$16",fontWeight:"$600"},h6:{fontSize:"$14",fontWeight:"$500","@md":{fontSize:"$16"},"@lg":{fontSize:"$18"}},title:{fontSize:"$14",fontWeight:"$500","@md":{fontSize:"$15"}},body1:{fontSize:"$14",fontWeight:"$400","@md":{fontSize:"$16"},"@lg":{fontSize:"$18"}},body2:{fontSize:"$14",fontWeight:"$400"},body3:{fontSize:"$12",fontWeight:"$400"},caption:{fontSize:"$10",fontWeight:"$400","@lg":{fontSize:"$12"}}},align:{center:{textAlign:"center"},left:{textAlign:"left"},right:{textAlign:"right"}},noWrap:{true:{whiteSpace:"nowrap"}},ml:{2:{marginLeft:"$2"},4:{marginLeft:"$4"},8:{marginLeft:"$8"},12:{marginLeft:"$12"}},mt:{2:{marginTop:"$2"},4:{marginTop:"$4"},8:{marginTop:"$8"},12:{marginTop:"$12"}},mr:{2:{marginRight:"$2"},4:{marginRight:"$4"},8:{marginRight:"$8"},12:{marginRight:"$12"}},mb:{2:{marginBottom:"$2"},4:{marginBottom:"$4"},8:{marginBottom:"$8"},12:{marginBottom:"$12"}}}});function rt(e){var t=e.children,n=e.className,o=e.color,i=g(e,et),a=o?{color:o.startsWith("$")?o:"$"+o}:{color:"$foreground"};return r.createElement(tt,Object.assign({className:"_typography _text "+(n||""),css:a},i),t)}rt.toString=function(){return"._typography"};var nt=$("div",{position:"relative",width:"$28",height:"$28",variants:{direction:{vertical:{margin:"auto"},horizontal:{}}}}),ot=$("img",{width:"$28",height:"$28",borderRadius:"50%"}),it=$("div",{position:"absolute",right:-4,bottom:-4,width:"$16",height:"$16",padding:"$2",borderRadius:"50%",backgroundColor:"$background",border:"1px solid $neutrals400",img:{width:"100%",display:"block"}}),at=$("div",{display:"flex",variants:{direction:{horizontal:{alignItems:"center"},vertical:{flexDirection:"column",textAlign:"center",justifyContent:"center"}},success:{true:{filter:"none"},false:{filter:"grayscale(100%)"}}}}),lt=$("div",{variants:{pl:{true:{paddingLeft:"$4","@lg":{paddingLeft:"$8"}},false:{paddingTop:"$8"}}}}),ct=$(rt,{color:"$neutrals600",display:"block",paddingLeft:"$8"});function st(e){var t=e.chainLogo,n=e.amount,o=e.symbol,i=e.blockchain,a=e.estimatedAmount,l=e.success,c=e.direction,s=void 0===c?"horizontal":c;return r.createElement(at,{direction:s,success:void 0===l||l},r.createElement(nt,{direction:s},r.createElement(ot,{src:e.logo,alt:o}),r.createElement(it,null,r.createElement("img",{src:t,alt:i}))),r.createElement(lt,{pl:"horizontal"===s},n&&r.createElement(rt,{noWrap:!0,variant:"vertical"===s?"body2":"title"},n),!n&&a&&r.createElement(rt,{noWrap:!0,variant:"vertical"===s?"body2":"title",color:"$neutrals600"},a)," ",r.createElement(rt,{variant:"vertical"===s?"body2":"title",noWrap:!0},o),r.createElement(ct,{noWrap:!0,variant:"caption",color:"$neutrals800"},"on ",i)))}var dt=$("div",{borderRadius:"$5",backgroundColor:"$neutrals300",background:"linear-gradient(to right, rgba(130, 130, 130, 0.2) 8%, rgba(130, 130, 130, 0.3) 18%, rgba(130, 130, 130, 0.2) 33%)",backgroundSize:"800px 100px",animation:y({"0%":{backgroundPosition:"-468px 0"},"100%":{backgroundPosition:"468px 0"}})+" 2s infinite ease-out",variants:{width:{16:{width:"$16"},20:{width:"$20"},24:{width:"$24"},36:{width:"$36"},48:{width:"$48"}},height:{16:{height:"$16"},20:{height:"$20"},24:{height:"$24"},36:{height:"$36"},48:{height:"$48"},94:{height:94}}}});function ut(e){var t=e.width,n=e.height;return r.createElement(dt,{width:void 0===t?20:t,height:void 0===n?20:n})}var mt=$("div",{borderRadius:"50%",position:"relative",border:"2px solid $neutrals300",borderRight:"2px solid",animation:y({"100%":{transform:"rotate(360deg)"}})+" 1.5s linear infinite",margin:"0px $8",variants:{color:{primary:{borderRightColor:"$primary"},error:{borderRightColor:"$error"},warning:{borderRightColor:"$warning"},success:{borderRightColor:"$success"},black:{borderRightColor:"$black"},white:{borderRightColor:"$white"}},size:{16:{width:"$16",height:"$16"},20:{width:"$20",height:"$20"},24:{width:"$24",height:"$24"}}}});function pt(e){var t=e.size,n=e.color;return r.createElement(mt,{size:void 0===t?16:t,color:void 0===n?"primary":n})}var gt=$(n.Trigger,{border:0,padding:0,backgroundColor:"transparent"}),ht=$(n.Content,{borderRadius:"$5",padding:"$4 $8",fontSize:"$14",animationDuration:"400ms",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",willChange:"transform, opacity",variants:{color:{primary:{backgroundColor:"$primary",color:"$white"},error:{backgroundColor:"$error",color:"$white"},warning:{backgroundColor:"$warning",color:"$white"},success:{backgroundColor:"$success",color:"$white"},gray:{backgroundColor:"$neutrals300",color:"$black"},black:{backgroundColor:"$black",color:"$white"},white:{backgroundColor:"$white",color:"$black"}}}}),vt=$(n.Arrow,{variants:{color:{primary:{fill:"$primary"},error:{fill:"$error"},warning:{fill:"$warning"},success:{fill:"$success"},gray:{fill:"$neutrals300"},black:{fill:"$black"},white:{fill:"$white"}}}}),ft=$("div",{display:"inline-block"});function xt(e){var t=e.content,o=e.side,i=void 0===o?"top":o,a=e.color,l=void 0===a?"gray":a;return r.createElement(n.Provider,null,r.createElement(n.Root,null,r.createElement(gt,{asChild:!0},r.createElement(ft,null,e.children)),r.createElement(n.Portal,null,r.createElement(ht,{color:l,side:i,sideOffset:5},t,r.createElement(vt,{color:l})))))}var Et=$("span",{width:"10px",height:"10px",backgroundColor:"$primary",borderRadius:"99999px"}),$t=["size"],wt=$("div",{display:"flex",justifyContent:"center",alignItems:"center",".image":{width:"100%",height:"100%",objectFit:"contain"}});function bt(e){var t=e.size,n=g(e,$t);return r.createElement(wt,{css:{width:t+"px",height:t+"px"}},r.createElement("img",Object.assign({className:"image"},n)))}var yt,kt,Ct,zt,St=$("div",{borderRadius:"$5",border:"1px solid $neutrals300",display:"flex",alignItems:"center",minHeight:126,justifyContent:"space-between"}),Lt=$(rt,{color:"$error"}),Rt=$("div",{display:"flex",alignItems:"center",margin:"0 auto",overflowX:"auto",overflowY:"hidden",alignSelf:"stretch",padding:"$4","@md":{padding:"$8"}}),It=$("div",{height:"0",width:"$20",border:"1px dashed $foreground",borderRadius:"inherit","@lg":{width:"$32"}}),Mt=$("hr",{width:"100%",border:"1px solid $neutrals400",margin:"$8 0"}),jt=$("div",{position:"relative"}),Bt=$("div",{width:"$6",height:"$6",backgroundColor:"$foreground",position:"absolute",top:"45%",right:-5,marginLeft:"$8",borderRadius:"50%","@md":{width:"$8",height:"$8",right:-8,top:"45%"}}),Nt=$("div",{width:"0px",height:"0px",borderTop:"5px solid transparent",borderBottom:"5px solid transparent",borderLeft:"5px solid $foreground"}),Wt=y({"0%":{opacity:1},"50%":{opacity:.3},"100%":{opacity:1}}),Ft=$("div",{backgroundColor:"$neutrals300",borderRadius:"5px",margin:"$4",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"$4","@md":{padding:"$8",margin:"$8"}}),_t=$("div",{display:"flex",flexDirection:"column",alignItems:"center",variants:{warning:{true:{animation:Wt+" 2s ease-in-out infinite"}}}}),Tt=$(rt,{variants:{warning:{true:{color:"$warning300"}}}}),Ot=$("div",{padding:"$4","@md":{padding:"$8"}}),At=$("div",{display:"flex",justifyContent:"center",alignItems:"center"}),Zt=["children","loading","disabled","prefix","suffix","align","flexContent"],Ht=$("button",{borderRadius:"$5",fontSize:"$16",fontWeight:"$400",cursor:"pointer",padding:"0 $12",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.35s",border:"0","&:active":{transform:"scale(0.95)"},variants:{align:{start:{display:"flex",width:"100%"},grow:{display:"flex",width:"100%"}},size:{compact:{},free:{},small:{height:"$32"},medium:{height:"$40"},large:{height:"$48"}},variant:{contained:{backgroundColor:"$neutrals300",color:"$foreground",border:0,"&:hover":{backgroundColor:"$neutrals200"},"&:disabled":{background:"$neutrals400"},"&:disabled:hover":{background:"$neutrals400",transform:"unset"}},outlined:{backgroundColor:"$background",border:1,borderStyle:"solid",borderColor:"$neutrals400",color:"$foreground","&:hover":{borderColor:"$neutrals600"},"&:disabled":{borderColor:"$neutrals300",color:"$neutrals400"}},ghost:(yt={color:"$foreground","&:hover":{backgroundColor:"$neutrals200"},"&:disabled":{color:"$neutrals400 !important"},background:"transparent",border:0},yt["& "+rt]={color:"inherit"},yt)},fullWidth:{true:{width:"100%"}},loading:{true:{}},type:{primary:{},error:{},warning:{},success:{}}},compoundVariants:[{type:"primary",variant:"contained",css:{background:"$primary",color:"$white","&:hover":{background:"$primary700"},"&:visited":{background:"$primary900"},"&:focus":{background:"$primary600"}}},{type:"primary",variant:"outlined",css:{color:"$primary !important",borderColor:"$primary","&:hover":{color:"$primary700 !important",borderColor:"$primary700 !important"},"&:visited":{color:"$primary900 !important",borderColor:"$primary900 !important"},"&:focus":{color:"$primary600 !important",borderColor:"$primary600 !important"}}},{type:"primary",variant:"ghost",css:{color:"$primary","&:hover":{color:"$primary700"},"&:visited":{color:"$primary900"},"&:focus":{color:"$primary600"}}},{type:"error",variant:"contained",css:(kt={background:"$error",$$color:"$colors$background"},kt["."+z+" &"]={$$color:"$colors$foreground"},kt.color="$$color !important",kt["&:hover"]={background:"$error300"},kt["&:visited"]={background:"$error700"},kt["&:focus"]={background:"$error700"},kt)},{type:"error",variant:"outlined",css:{color:"$error !important",borderColor:"$error","&:hover":{color:"$error300 !important",borderColor:"$error300 !important"},"&:visited":{color:"$error700 !important",borderColor:"$error700 !important"},"&:focus":{color:"$error700 !important",borderColor:"$error700 !important"}}},{type:"error",variant:"ghost",css:{color:"$error","&:hover":{color:"$error300"},"&:visited":{color:"$error700"},"&:focus":{color:"$error700"}}},{type:"warning",variant:"contained",css:(Ct={background:"$warning",$$color:"$colors$background"},Ct["."+z+" &"]={$$color:"$colors$foreground"},Ct.color="$$color !important",Ct["&:hover"]={background:"$warning300"},Ct["&:visited"]={background:"$warning700"},Ct["&:focus"]={background:"$warning700"},Ct)},{type:"warning",variant:"outlined",css:{color:"$warning !important",borderColor:"$warning","&:hover":{color:"$warning300 !important",borderColor:"$warning300 !important"},"&:visited":{color:"$warning700 !important",borderColor:"$warning700 !important"},"&:focus":{color:"$warning700 !important",borderColor:"$warning700 !important"}}},{type:"warning",variant:"ghost",css:{color:"$warning","&:hover":{color:"$warning300"},"&:visited":{color:"$warning700"},"&:focus":{color:"$warning700"}}},{type:"success",variant:"contained",css:(zt={background:"$success",$$color:"$colors$background"},zt["."+z+" &"]={$$color:"$colors$foreground"},zt.color="$$color !important",zt["&:hover"]={background:"$success300"},zt["&:visited"]={background:"$success700"},zt["&:focus"]={background:"$success700"},zt)},{type:"success",variant:"outlined",css:{color:"$success !important",borderColor:"$success","&:hover":{color:"$success300 !important",borderColor:"$success300 !important"},"&:visited":{color:"$success700 !important",borderColor:"$success700 !important"},"&:focus":{color:"$success700 !important",borderColor:"$success700 !important"}}},{type:"success",variant:"ghost",css:{color:"$success","&:hover":{color:"$success300"},"&:visited":{color:"$success700"},"&:focus":{color:"$success700"}}},{size:"compact",css:{padding:"$2 $4",fontSize:"$12"}}],defaultVariants:{size:"medium",variant:"contained"}}),Dt=$("div",{flex:1,variants:{align:{start:{textAlign:"left"},grow:{textAlign:"center"}},ml:{true:{marginLeft:"$8"}},mr:{true:{marginRight:"$8"}},flexContent:{true:{display:"flex",alignItems:"center"}}}});function qt(e){var t=e.children,n=e.loading,o=e.disabled,i=e.prefix,a=e.suffix,l=e.align,c=e.flexContent,s=g(e,Zt);return r.createElement(Ht,Object.assign({disabled:n||o},s,{align:l}),i,t&&r.createElement(Dt,{align:l,ml:!!i,mr:!!a&&!n,flexContent:c,className:"_text"},t),n&&r.createElement(pt,{size:16,color:s.type}),a)}var Vt=$("div",{display:"grid",gap:".5rem",gridTemplateColumns:" repeat(2, minmax(0, 1fr))",alignContent:"baseline",width:"100%",height:"100%"}),Pt=$("div",{paddingRight:"$4"});function Gt(e){var n=e.list,o=e.onChange,i=e.multiSelect,a=e.selectedList,l=t.useState(e.selected),c=l[0],s=l[1],d=function(e){s(e),o(e)},u=function(e){return i&&a?"all"===a||a.findIndex((function(t){return e===t.name}))>-1:e===(null==c?void 0:c.name)};return r.createElement(Vt,null,n.map((function(e,t){return r.createElement(qt,{type:u(e.name)?"primary":void 0,variant:"outlined",size:"large",prefix:r.createElement(Pt,null,r.createElement(bt,{size:24,src:e.logo})),suffix:u(e.name)?r.createElement(Et,null):void 0,align:"start",onClick:d.bind(null,e),key:t},r.createElement(rt,{variant:"body2"},e.displayName))})))}var Yt=$("div",{variants:{size:{4:{height:"$4"},8:{height:"$8"},12:{height:"$12"},16:{height:"$16"},18:{height:"$18"},20:{height:"$20"},24:{height:"$24"},32:{height:"$32"}}}});function Ut(e){var t=e.size;return r.createElement(Yt,{size:void 0===t?12:t})}var Xt=$("div",{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"$8 0",position:"relative"}),Jt=$(qt,{padding:"$8"});function Kt(e){return r.createElement(Xt,null,e.onBack?r.createElement(Jt,{variant:"ghost",size:"small",onClick:e.onBack},r.createElement(ge,{size:24})):null,e.prefix,r.createElement(rt,{variant:"h4"},e.title),e.suffix||r.createElement("div",null))}var Qt=["label","prefix","suffix","children","size","style"],er=$("div",{backgroundColor:"$background",padding:"1px",boxSizing:"border-box",border:"1px solid $neutrals400",borderRadius:"$5",height:"$48",display:"flex",flexGrow:1,position:"relative",alignItems:"center",color:"$foreground",overflowX:"hidden",transition:"border-color ease .3s","&:focus-within":{borderColor:"$success",outline:"1px solid $success"},variants:{size:{small:{height:"$32"},medium:{height:"$40"},large:{height:"$48"}},disabled:{true:{backgroundColor:"$neutrals300",cursor:"not-allowed",filter:"grayscale(100%)"}},prefix:{true:{paddingLeft:"$16"},false:{paddingLeft:"$0"}},suffix:{true:{paddingRight:"$16"},false:{paddingRight:"$0"}}},defaultVariants:{size:"medium"}}),tr=$("input",{color:"$foreground",paddingLeft:"$16",paddingRight:"$16",flexGrow:1,width:"100%",border:"none",borderRadius:"$5",outline:"none",fontSize:"$l",backgroundColor:"transparent","-webkit-appearance":"none",margin:0,"&:disabled":{cursor:"not-allowed"},"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{"-webkit-appearance":"none",margin:0},'&[type="number"]':{"-moz-appearance":"textfield"}}),rr=$("label",{display:"inline-block",fontSize:"$14",color:"$foreground",marginBottom:"$4"}),nr=r.forwardRef((function(e,t){var n=e.label,o=e.prefix,i=e.suffix,a=e.size,l=e.style,c=g(e,Qt);return r.createElement(r.Fragment,null,n&&r.createElement(rr,Object.assign({className:"_text"},c.id&&{htmlFor:c.id}),n),r.createElement(er,{disabled:c.disabled,prefix:!!o,suffix:!!i,size:a,style:l,className:"_text"},o||null,r.createElement(tr,Object.assign({className:"_text"},c,{spellCheck:!1,ref:t})),i||null))})),or=$("div",{overflow:"hidden",display:"flex",flexDirection:"column",flex:"1",padding:"0 $4"}),ir=$("div",{padding:"1px"});function ar(e){var n=e.title,o=e.Footer,i=e.TopButton,a=e.onBack,l=e.hasHeader,c=void 0===l||l,s=t.useState(""),d=s[0],u=s[1];return r.createElement(r.Fragment,null,c&&r.createElement(Kt,{onBack:a,title:n||"",suffix:i}),r.createElement(or,null,e.textField&&r.createElement(ir,null,r.createElement(nr,{size:"large",prefix:r.createElement(ae,{size:24}),placeholder:e.textFieldPlaceholder,onChange:function(e){return u(e.target.value)},value:d,autoFocus:!0}),r.createElement(Ut,{size:16})),e.textField&&(null==e.children?void 0:e.children(d)),!e.textField&&e.children),o)}function lr(e,t){return e.toLowerCase().indexOf(t.toLowerCase())>-1}function cr(e,t){void 0===t&&(t=4);var r=parseFloat(e);if(isNaN(r))return e;var n=Math.pow(10,t);return(Math.round(r*n)/n).toString()}var sr=$("div",{variants:{size:{4:{},8:{},12:{},16:{},18:{},20:{},24:{}},direction:{vertical:{},horizontal:{}}},compoundVariants:[{size:4,direction:"horizontal",css:{width:"$4"}},{size:4,direction:"vertical",css:{height:"$4"}},{size:8,direction:"horizontal",css:{width:"$8"}},{size:8,direction:"vertical",css:{height:"$8"}},{size:12,direction:"horizontal",css:{width:"$12"}},{size:12,direction:"vertical",css:{height:"$12"}},{size:16,direction:"horizontal",css:{width:"$16"}},{size:16,direction:"vertical",css:{height:"$16"}},{size:18,direction:"horizontal",css:{width:"$18"}},{size:18,direction:"vertical",css:{height:"$18"}},{size:20,direction:"horizontal",css:{width:"$20"}},{size:20,direction:"vertical",css:{height:"$20"}},{size:24,direction:"horizontal",css:{width:"$24"}},{size:24,direction:"vertical",css:{height:"$24"}}]});function dr(e){var t=e.size,n=e.direction;return r.createElement(sr,{size:void 0===t?12:t,direction:void 0===n?"horizontal":n})}var ur=$("div",{width:"100%",padding:"$16",borderRadius:"$5",backgroundColor:"$neutrals300",color:"$neutrals800",".main":{display:"flex",alignItems:"center"},".footer":{paddingTop:"$8"},"&.hasIcon .footer":{paddingLeft:"$32"},variants:{type:{primary:{color:"$primary200"},secondary:{color:"$foreground"},success:{color:"$success300"},warning:{color:"$warning500"},error:{color:"$error300"}}}});function mr(e){var t=e.type,n=e.children,o=e.title,i=["error","success","warning"].includes(t);return r.createElement(ur,{type:t,className:i?"hasIcon":""},r.createElement("div",{className:"main"},i&&r.createElement(r.Fragment,null,r.createElement("div",{style:{width:"32px",display:"flex",justifyContent:"center",alignItems:"center"}},"success"===t&&r.createElement(H,{color:t,size:24}),"warning"===t&&r.createElement(Y,{color:t,size:24}),"error"===t&&r.createElement(F,{color:t,size:24}),r.createElement(dr,{size:4}))),r.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"start",flexDirection:"column",width:"100%"}},o&&r.createElement(r.Fragment,null,r.createElement(rt,{className:"title",variant:"title",color:t},o),!!n&&r.createElement(dr,{size:4,direction:"vertical"})),n)),e.footer?r.createElement("div",{className:"footer"},e.footer):null)}function pr(){return r.createElement(mr,{type:"error",title:" Error connecting server, please reload the app and try again."})}function gr(e){var t=e.searchedFor;return r.createElement(mr,{type:"secondary",title:e.catergory+" "+(t?"'"+t+"'":"")+" not found."})}function hr(e){var t=e.itemCount,n=e.hasNextPage,l=e.loadNextPage,c=e.Item,s=e.innerElementType,d=e.size,u=function(e){return!n||e<t};return r.createElement(a,null,(function(e){var a=e.width,m=e.height;return r.createElement(i,{isItemLoaded:u,itemCount:n?t+1:t,loadMoreItems:l,threshold:1},(function(e){return r.createElement(o.VariableSizeList,{innerElementType:s,ref:e.ref,itemSize:function(){return d},itemCount:t,height:m||0,width:a||0,onItemsRendered:e.onItemsRendered},(function(e){var t=e.index,n=e.style;return u(t)?r.createElement(c,{index:t,style:n}):null}))}))}))}var vr=$("div",{paddingRight:"$16"}),fr=$("div",{display:"flex",flexDirection:"column"}),xr=$("div",{display:"flex",flexDirection:"column",alignItems:"flex-end"});function Er(e){var t,n=e.token,o=e.style,i=e.onClick,a=e.selected;return r.createElement("div",{style:p({display:"flex",alignItems:"center",width:"100%"},o,{height:"48px",top:parseFloat(null==o?void 0:o.top)+0+"px",padding:"0 4px"})},r.createElement(qt,{variant:"outlined",size:"large",align:"start",onClick:i.bind(null,n),type:a?"primary":void 0,prefix:r.createElement(vr,null,r.createElement(bt,{src:n.image,size:32})),suffix:(null==(t=n.balance)?void 0:t.amount)&&r.createElement(xr,null,r.createElement(rt,{variant:"body2"},n.balance.amount),r.createElement(rt,{variant:"caption"},n.balance.usdValue+"$"))},r.createElement(fr,null,r.createElement(rt,{variant:"body1"},n.symbol),r.createElement(rt,{variant:"caption",color:"neutrals600"},n.name))))}var $r=["style"];function wr(e){var n=e.list,o=e.searchedText,i=e.onChange,a=e.multiSelect,l=e.selectedList,c=t.useState(e.selected),s=c[0],d=c[1],u=function(e){d(e),i(e)},m=t.useState(!0),h=m[0],v=m[1],f=t.useState(n),x=f[0],E=f[1];t.useEffect((function(){E(n.slice(0,20))}),[o,n]),t.useEffect((function(){v(n.length>x.length)}),[x.length]);var $=t.forwardRef((function(e,t){var n=e.style,o=g(e,$r);return r.createElement("div",Object.assign({ref:t,style:p({},n,{height:parseFloat(null==n?void 0:n.height)+16+"px"})},o))}));return r.createElement(hr,{Item:function(e){var t,n=e.index;return r.createElement(Er,{token:x[n],style:e.style,onClick:u,selected:(t=x[n],a&&l?l.map((function(e){return e.symbol+e.address})).indexOf(t.symbol+t.address)>-1:(null==s?void 0:s.symbol)===t.symbol&&(null==s?void 0:s.address)===t.address)})},hasNextPage:h,itemCount:x.length,loadNextPage:function(){E(n.slice(0,x.length+20))},innerElementType:$,size:56})}var br=$("div",{display:"flex",justifyContent:"center",width:"100%",paddingTop:"33%",flex:1}),yr=$("div",{overflowY:"auto",padding:"0 $4"}),kr=["label","id"],Cr=$("div",{display:"flex",alignItems:"center"}),zr=$(l.Root,{borderRadius:"5px",width:20,padding:0,height:20,border:"1px solid $foreground",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"$2",backgroundColor:"$neutral-100"}),Sr=$("label",{color:"$foreground",fontSize:"$m",marginLeft:"$8"}),Lr=$("div",{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"$5",padding:"$4 $8",height:"32",fontSize:"$14",cursor:"pointer",transition:"all 0.35s",color:"$foreground","&:hover":{backgroundColor:"$success700",color:"$background"},variants:{selected:{true:{backgroundColor:"$success",color:"$background"},false:{backgroundColor:"$background"}}}});function Rr(e){return r.createElement(Lr,{selected:e.selected,onClick:e.onClick,style:e.style},e.prefix||null,e.label,e.suffix||null)}var Ir,Mr=$("div",{position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",top:"0",left:"0",width:"100vw",height:"100vh",backgroundColor:"rgba(0,0,0,.1)"}),jr=$("div",{backgroundColor:"$background",borderRadius:"$10",padding:"$16 $16",display:"flex",flexDirection:"column",boxShadow:"$s",zIndex:10}),Br=$("div",{display:"flex",alignItems:"center"}),Nr=$("div",{display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",marginBottom:"$16"});function Wr(e){var n=e.title,o=e.content,i=e.open,a=e.onClose,l=e.containerStyle,s=e.action;return t.useEffect((function(){document.body.style.overflow=i?"hidden":"unset"}),[i]),r.createElement(r.Fragment,null,i&&c.createPortal(r.createElement(Mr,{onClick:function(e){e.target===e.currentTarget&&a()}},r.createElement(jr,{style:l},r.createElement(Nr,null,r.createElement(rt,{variant:"h4"},n),r.createElement(Br,null,s,r.createElement(Ue,{size:24,onClick:a}))),o)),document.body))}(Ir=exports.WalletState||(exports.WalletState={})).NOT_INSTALLED="not installed",Ir.DISCONNECTED="disconnected",Ir.CONNECTING="connecting",Ir.CONNECTED="connected";var Fr=$("span",{display:"flex",justifyContent:"center",alignItems:"center"}),_r=function(e){var n=e.walletState;return r.createElement(t.Fragment,null,n!==exports.WalletState.DISCONNECTED&&r.createElement(Fr,null,n===exports.WalletState.NOT_INSTALLED&&r.createElement("a",{href:s.detectInstallLink(e.installLink),target:"_blank"},r.createElement(ve,{size:24,color:"success"})),n===exports.WalletState.CONNECTING&&r.createElement(pt,null),n===exports.WalletState.CONNECTED&&r.createElement(qe,null)))},Tr=$("div",{paddingRight:"$12"}),Or=$("div",{display:"flex",flexDirection:"column"}),Ar=$(qt,{variants:{type:{primary:{outline:"1px solid $primary",borderColor:"$primary","&:hover":{borderColor:"$primary"}}}}});function Zr(e){var t=e.name,n=e.type,o=e.state,i=e.onClick,a=e.installLink;return r.createElement(Ar,{type:o===exports.WalletState.CONNECTED?"primary":void 0,disabled:o==exports.WalletState.CONNECTING,onClick:function(){o===exports.WalletState.NOT_INSTALLED?window.open(s.detectInstallLink(a),"_blank"):i(n)},align:"start",variant:"outlined",size:"large",prefix:r.createElement(Tr,null,r.createElement(bt,{src:e.image,size:24})),suffix:r.createElement(_r,{walletState:o,installLink:a})},r.createElement(Or,null,r.createElement(rt,{variant:"h5",noWrap:!1},t),o===exports.WalletState.CONNECTED?r.createElement(rt,{variant:"caption",noWrap:!1,color:"primary"},"Connected"):null))}var Hr=$("div",{display:"grid",gap:"$8",gridTemplateColumns:"repeat(2, minmax(0, 1fr))"}),Dr=$(d.Root,{boxSizing:"border-box",boxShadow:"none",borderStyle:"solid",width:"42px",height:"22px",backgroundColor:"$neutrals600",borderColor:"$neutrals600",borderRadius:"99999px",position:"relative",padding:"0",cursor:"pointer",'&[data-state="checked"]':{backgroundColor:"$success",borderColor:"$success"},"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)"}),qr=$(d.Thumb,{position:"absolute",top:"0",boxSizing:"border-box",display:"block",width:"18px",height:"18px",backgroundColor:"$white",transition:" transform 300ms",borderRadius:"999999px",willChange:"transform",'&[data-state="checked"]':{transform:"translateX(20px)"}});function Vr(e){return r.createElement(Dr,{checked:e.checked,onCheckedChange:e.onChange},r.createElement(qr,null))}var Pr=$("div",{variants:{loaded:{true:{overflowY:"auto",padding:"0 $4"}}}}),Gr=$("div",{position:"sticky",display:"flex",justifyContent:"space-between",alignItems:"center",top:"0",backgroundColor:"$background",zIndex:"9999",paddingTop:"$8",paddingBottom:"$8"}),Yr=$("div",{paddingRight:"$16"}),Ur=$("div",{display:"flex",justifyContent:"center"});function Xr(e){var n=e.list,o=e.onChange,i=e.listContainerStyle,a=e.loadingStatus,l=e.searchedFor,c=t.useState(n.filter((function(e){return e.selected}))),s=c[0],d=c[1],u=function(e){e.selected=!e.selected,d((function(t){return e.selected?[].concat(t,[e]):t.filter((function(t){return t.title!=e.title}))})),o(e)},m=function(e){return!!s.find((function(t){return e.title===t.title}))};t.useEffect((function(){d(n.filter((function(e){return e.selected})))}),[n]);var p,g={bridge:(p=n).filter((function(e){return"BRIDGE"===e.type||"AGGREGATOR"===e.type})),exchange:p.filter((function(e){return"DEX"===e.type}))},h=g.bridge,v=g.exchange,f=h.length,x=v.length,E=h.filter(m).length,$=v.filter(m).length;return r.createElement(Pr,{style:i,loaded:"success"===a},r.createElement("div",null,r.createElement(Gr,null,r.createElement(rt,{variant:"h5"},"Bridges"),r.createElement(rt,{variant:"body1",color:"neutrals800"},E===f?f:E+" / "+f)),r.createElement(dr,{size:12,direction:"vertical"}),"loading"===a&&r.createElement(Ur,null,r.createElement(pt,{size:24})),"failed"===a&&r.createElement(pr,null),"success"===a&&r.createElement(r.Fragment,null,f?h.map((function(e,t){return r.createElement(Jr,{liquiditySource:e,key:t,selected:m(e),onChange:u})})):r.createElement(gr,{catergory:"Bridge",searchedFor:l}))),r.createElement("div",null,r.createElement(Gr,null,r.createElement(rt,{variant:"h5"},"Exchanges"),r.createElement(rt,{variant:"body1",color:"neutrals800"},$===x?x:$+" / "+x)),r.createElement(dr,{size:12,direction:"vertical"}),"loading"===a&&r.createElement(Ur,null,r.createElement(pt,{size:24})),"failed"===a&&r.createElement(pr,null),"success"==a&&r.createElement(r.Fragment,null,x?v.map((function(e,t){return r.createElement(Jr,{liquiditySource:e,key:t,selected:m(e),onChange:u})})):r.createElement(gr,{catergory:"Exchange",searchedFor:l}))))}var Jr=function(e){var t=e.liquiditySource,n=e.selected,o=e.onChange;return r.createElement(qt,{size:"large",align:"start",variant:"outlined",prefix:r.createElement(Yr,null,r.createElement(bt,{src:t.logo,size:20})),suffix:r.createElement(Vr,{checked:n}),style:{marginBottom:"12px"},onClick:o.bind(null,t)},r.createElement(rt,{variant:"body1"},t.title))},Kr=function(e,t){return e.filter((function(e){return lr(e.title,t||"")}))},Qr=$("div",{display:"flex",flexWrap:"wrap"}),en=$("div",{width:12,height:12,borderRadius:6,border:"1px solid $neutrals400",position:"absolute",top:12,right:12,variants:{checked:{true:{borderColor:"$success"},false:{borderColor:"$neutrals400"}}}}),tn=$("div",{width:6,margin:"20% auto",height:6,borderRadius:3,variants:{checked:{true:{backgroundColor:"$success"},false:{backgroundColor:"$neutrals400"}}}}),rn=$("div",{border:"1.5px solid",borderRadius:"$5",padding:"$12",flexBasis:"calc(33.33% - 10px)",margin:5,display:"flex",flexDirection:"column",justifyContent:"space-between",width:124,height:92,cursor:"pointer",position:"relative",variants:{checked:{true:{borderColor:"$success",color:"$success"},false:{borderColor:"$neutrals400",color:"$neutrals400"}}}});function nn(e){var n,o=e.list,i=e.onChange,a=t.useState((null==(n=o.find((function(e){return e.selected})))?void 0:n.walletType)||""),l=a[0],c=a[1],s=function(e){c(e.walletType),i(e)};return t.useEffect((function(){var e;c((null==(e=o.find((function(e){return e.selected})))?void 0:e.walletType)||"")}),[o]),r.createElement(Qr,null,o.map((function(e,t){var n=l===e.walletType;return r.createElement(rn,{checked:n,onClick:s.bind(null,e),key:t},r.createElement(bt,{src:e.image,alt:e.walletType,size:24}),r.createElement(rt,{variant:"body2"},e.name),r.createElement(rt,{variant:"caption"},function(e,t,r){if(void 0===t&&(t=8),void 0===r&&(r=3),!e)return null;if(e.length<2*t+r)return e;var n=Math.ceil((e.length-t)/2),o=e.length-t;return""+e.substr(n,t)+".".repeat(r)+e.substr(o)}(e.address)),r.createElement(en,{checked:n},r.createElement(tn,{checked:n})))})))}var on=$(u.Root,{variants:{direction:{horizontal:{display:"flex",flexDirection:"row",flexWrap:"wrap"},vertical:{display:"grid",gridGap:"$24"}}}}),an=$("div",{display:"flex",alignItems:"center",marginRight:"$8"}),ln=$(u.Item,{padding:"0",width:"20px",height:"20px",borderRadius:"100%",cursor:"pointer",backgroundColor:"$background",border:"1px solid $neutrals400","&:hover":{borderColor:"$neutrals600"}}),cn=$("div",{display:"flex"}),sn=$(u.Indicator,{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",position:"relative","&::after":{content:"",display:"block",width:"10px",height:"10px",borderRadius:"50%",backgroundColor:"$success"}}),dn=$("label",{paddingLeft:"$8",cursor:"pointer",color:"$foreground"});function un(e){var t=e.direction;return r.createElement(cn,null,r.createElement(on,{onValueChange:e.onChange,value:e.value,direction:void 0===t?"vertical":t,style:e.style},e.options.map((function(e,t){return r.createElement(an,{key:t},r.createElement(ln,{value:e.value,id:e.value},r.createElement(sn,null)),r.createElement(dn,{className:"_text",htmlFor:e.value},r.createElement(rt,{variant:"body2"},e.label)))}))))}var mn=$("div",{borderRadius:"$5",backgroundColor:"$neutrals300",padding:"$16"}),pn=$(rt,{marginBottom:"$16"}),gn=$("div",{display:"grid",rowGap:"$16",gridTemplateColumns:"repeat(auto-fill, 64px)"}),hn=$(mn,{display:"flex",justifyContent:"space-between",marginTop:"$16",cursor:"pointer"}),vn=$(mn,{display:"flex",justifyContent:"space-between",marginTop:"$16"}),fn=$(ce,{marginLeft:"$8"}),xn=$("div",{display:"flex",alignItems:"center",justifyContent:"center"}),En=$(mn,{marginTop:"$16"}),$n=$("div",{display:"flex",justifyContent:"space-between",alignItems:"center",paddingBottom:"$16"}),wn=$("div",{position:"relative",display:"flex",flexDirection:"column",borderRadius:"$10",boxShadow:"$s",width:"100%",minWidth:"375px",maxWidth:"512px",padding:"$16",boxSizing:"border-box",backgroundColor:"$background",variants:{fixedHeight:{true:{height:"595px",maxHeight:"595px"},false:{height:"auto"}}}}),bn=$("div",{display:"flex",alignItems:"center",width:"160px","& .amount":{fontWeight:"bold"},"& .estimated":{color:"$neutrals600"}}),yn=$("div",{position:"relative",".overlay":{position:"absolute",right:-4,bottom:-4,width:"$16",height:"$16",padding:"$2",borderRadius:"50%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"$background",border:"1px solid $neutrals400"}});function kn(e){var t=e.data,n=t.token,o=t.blockchain,i=t.amount,a=t.estimatedAmount;return r.createElement(bn,null,r.createElement(yn,null,r.createElement(bt,{src:n.logo,alt:"",size:24}),r.createElement("div",{className:"overlay"},r.createElement(bt,{src:o.logo,alt:o.name,size:12}))),r.createElement(dr,{size:8}),!!i&&r.createElement("span",{className:"amount"},e.data.amount),!i&&a&&r.createElement("span",{className:"amount estimated"},e.data.estimatedAmount),r.createElement(dr,{size:4}),n.symbol)}var Cn=$("div",{position:"relative",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"$16 0",borderBottom:"1px solid $neutrals300","& > .info":{display:"flex",alignItems:"center"},".status":{textTransform:"uppercase",fontWeight:"bold",fontSize:"$12"},"&.failed .status":{color:"$error"},"&.success .status":{color:"$success"}});function zn(e){var t=e.swap,n=e.status,o=t.steps[0],i=t.steps[t.steps.length-1];return r.createElement(qt,{variant:"ghost",size:"free",fullWidth:!0,onClick:e.onClick.bind(null,t.requestId)},r.createElement(Cn,{className:""+n},r.createElement("div",{className:"info"},r.createElement(kn,{data:{token:{logo:o.fromLogo,symbol:o.fromSymbol},blockchain:{logo:o.fromBlockchainLogo||"",name:o.fromBlockchain},amount:cr(t.inputAmount)}}),r.createElement(dr,{size:12}),r.createElement($e,{size:12}),r.createElement(dr,{size:12}),r.createElement(kn,{data:{token:{logo:i.toLogo,symbol:i.toSymbol},blockchain:{logo:i.toBlockchainLogo||"",name:i.toBlockchain},amount:cr(i.outputAmount||""),estimatedAmount:cr(i.expectedOutputAmountHumanReadable||"")}})),r.createElement("div",{className:"status"},"running"===n?r.createElement(pt,{size:24,color:"primary"}):n)))}var Sn=$("div",{position:"relative"}),Ln=$("div",{border:"1px solid $neutrals300",borderRadius:"$5",width:"$32",height:"$32"}),Rn=$("div",{position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}),In=$("div",{position:"absolute",zIndex:"2",variants:{place:{top:{top:"-241px"},bottom:{},left:{top:"-50%",left:"-225px"},right:{top:"-50%",right:"-225px"}}}}),Mn=$("label",{display:"inline-block",fontSize:"$14",marginBottom:"$4",color:"$foreground"}),jn=$("div",{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:9999999,backgroundColor:"rgba(0,0,0,.1)",borderRadius:"$10"}),Bn=$("div",{position:"absolute",boxShadow:"$s",background:"$background",padding:"$20",display:"flex",flexDirection:"column",justifyContent:"space-between",zIndex:9999999,borderRadius:"$10",variants:{anchor:{left:{top:0,left:0,height:"100%",minWidth:"300px",maxWidth:"90%"},right:{top:0,right:0,height:"100%",minWidth:"300px",maxWidth:"90%"},bottom:{bottom:0,width:"100%",maxHeight:"90%"},top:{top:0,width:"100%",maxHeight:"90%"}}}}),Nn=$("div",{display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",marginBottom:"$16"}),Wn=$("div",{overflowY:"auto",height:"100%"}),Fn=$("footer",{width:"100%",marginTop:"$28"});function _n(e){var t=e.content,n=e.onClose,o=e.anchor,i=e.showClose,a=void 0!==i&&i,l=e.footer,s=e.container;return r.createElement(r.Fragment,null,e.open&&s&&c.createPortal(r.createElement(jn,{onClick:function(e){e.target===e.currentTarget&&n()}},r.createElement(Bn,{anchor:void 0===o?"bottom":o,style:e.containerStyle},r.createElement(Nn,null,r.createElement(rt,{variant:"h6"},e.title),a&&r.createElement(Ue,{size:24,onClick:n})),r.createElement(Wn,null,t),r.createElement(Fn,null,l))),s))}var Tn=$("div",{overflowY:"auto"}),On=$("div",{paddingBottom:"$32",marginBottom:"$32",borderBottom:"1px solid $neutrals400"}),An=$("div",{display:"flex",alignItems:"center"}),Zn=$("div",{padding:"$16 0"}),Hn=$(qt,{marginTop:"$16"}),Dn=$("div",{paddingBottom:"$24",".title":{paddingBottom:"$8",display:"flex",alignItems:"center"},".num":{backgroundColor:"$neutrals300",display:"inline-flex",width:"24px",height:"24px",color:"$neutrals800",borderRadius:"50%",fontSize:"$14",border:"1px solid $neutrals400",justifyContent:"center",alignItems:"center"}}),qn=$("div",{paddingBottom:"$16"}),Vn=$("div",{".group-title":{textTransform:"uppercase"}});function Pn(e){var t=e.list,n=e.onSwapClick,o=e.groupBy,i=o?o(t):[{title:"History",swaps:t}];return r.createElement(r.Fragment,null,i.filter((function(e){return e.swaps.length>0})).map((function(e,t){return r.createElement(r.Fragment,null,r.createElement(Vn,{key:t},r.createElement(rt,{variant:"body2",color:"neutrals600",className:"group-title"},e.title),e.swaps.map((function(e,t){return r.createElement(r.Fragment,null,r.createElement(zn,{key:t,swap:e,status:e.status,onClick:n}),r.createElement(Ut,{size:12}))}))),r.createElement(Ut,{size:24}))})))}var Gn=$("div",{overflowY:"auto"}),Yn=$("div",{width:"90%",overflowWrap:"break-word",color:"$error500 !important"}),Un=$(rt,{color:"$success500 !important"}),Xn=function(e){var n,o=e.shortMessage,i=e.detailedMessage,a=e.currentStepBlockchain,l=e.type,c=e.lastConvertedTokenInFailedSwap,s=t.useState(!1),d=s[0],u=i.long?0:150,m=!d&&i.content.length>u;return r.createElement(mr,Object.assign({type:(n=l,n&&"info"!==n?n:"secondary"),title:o},m&&{footer:r.createElement(qt,{variant:"outlined",type:"primary",onClick:s[1].bind(null,(function(e){return!e}))},"Show more details")},!!e.switchNetwork&&{footer:r.createElement(qt,{variant:"outlined",type:"primary",onClick:e.switchNetwork},"Change network to ",a)}),i.content?r.createElement(Yn,null,r.createElement(rt,{variant:"body2"},m&&!d?i.content.substring(0,u)+(u>0?"...":""):i.content)):null,!!c&&r.createElement(r.Fragment,null,r.createElement("p",null,r.createElement(rt,{variant:"body2"},"Don't worry, your fund is "),r.createElement(Un,{variant:"body2"},r.createElement("b",null,"Safe"))),r.createElement("p",null,r.createElement(rt,{variant:"body2"},"It is converted to  ",r.createElement("u",null,c.outputAmount)," "),r.createElement(Un,{variant:"body2"},r.createElement("b",null,c.symbol," ")),r.createElement(rt,{variant:"body2"},"on your "),r.createElement(Un,{variant:"body2"},r.createElement("b",null,c.blockchain," ")),r.createElement(rt,{variant:"body2"},"wallet"))))},Jn=["pendingSwap","onBack","onCopy","isCopied","onCancel","date","onRetry","previewInputs"],Kn=$("div",{display:"flex",alignItems:"center",paddingLeft:"$4",variants:{created:{true:{filter:"grayscale(100%)"}},running:{true:{animation:Wt+" 2s ease-in-out infinite"}}}}),Qn=$("div",{paddingLeft:"$16",color:"$neutrals800"}),eo=$("div",{display:"flex",alignItems:"center"}),to=$("div",{position:"relative"}),ro=$("div",{width:"$8",height:"$8",backgroundColor:"$foreground",borderRadius:"4px",marginLeft:"11px"}),no=$("div",{width:"0px",height:"0px",borderLeft:"5px solid transparent",borderRight:"5px solid transparent",borderTop:"5px solid $foreground",marginLeft:"$10"}),oo=$("a",{color:"$primary",fontWeight:"$600"}),io=$("div",{display:"flex",flexDirection:"column",paddingBottom:"$16",borderBottom:"1px solid $neutrals300"}),ao=$("div",{display:"flex",".details":{padding:"$8 0"}}),lo=$("div",{display:"flex",margin:"$12 0 $12 $20"}),co=$("div",{display:"flex",alignItems:"center"}),so=$(rt,{color:"$success",paddingLeft:"$4"}),uo=$("div",{width:"0",minHeight:"$16",marginLeft:"14px",border:"1px dashed $foreground",borderRadius:"inherit"}),mo=$("div",{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"$14",padding:"$8 0",".name":{color:"$neutrals600"},".value":{display:"flex",alignItems:"center",color:"$neutrals800",justifyContent:"flex-end"},".status":{fontWeight:"bold",textTransform:"uppercase"},".status.failed":{color:"$error"},".status.success":{color:"$success"}}),po=$("div",{width:"150px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","@md":{width:"auto"}}),go=$("div",{padding:"0",color:"$neutrals600",fontSize:"$10"}),ho=$("div",{overflowY:"auto",padding:"$8 $4 $2 $4"});exports.AddCircleIcon=T,exports.AddIcon=N,exports.AddWalletIcon=Fe,exports.Alert=mr,exports.AngleDownIcon=me,exports.AngleLeftIcon=ge,exports.AngleRightIcon=ce,exports.AngleUpIcon=de,exports.ArrowRightIcon=$e,exports.BagIcon=Pe,exports.BanIcon=P,exports.BestRoute=function(e){var n,o=e.data,i=e.loading,a=e.error,l=e.totalFee,c=e.feeWarning,s=e.totalTime;return r.createElement(St,null,i?r.createElement(Ot,null,r.createElement(ut,{width:48,height:94})):r.createElement(Ft,null,r.createElement(xt,{content:"Transaction cost (fee)"},r.createElement(_t,{warning:c},r.createElement(K,{size:20,color:c?"warning":void 0}),r.createElement(Tt,{mt:4,align:"center",variant:"caption",warning:c},a&&"-",!!o&&"$"+l))),r.createElement(Mt,null),r.createElement(xt,{content:"Time estimate"},r.createElement(_t,{warning:c},r.createElement(Ye,{size:20}),r.createElement(rt,{mt:4,align:"center",variant:"caption"},a&&"-",!!o&&"~"+s+"m")))),r.createElement(Rt,null,i&&r.createElement(pt,{color:"primary"}),a&&r.createElement(Lt,{variant:"caption"},a),!!o&&(null==(n=o.result)?void 0:n.swaps.map((function(e,n){var i;return r.createElement(t.Fragment,{key:n},0===n&&r.createElement(jt,null,r.createElement(st,{direction:"vertical",logo:e.from.logo,symbol:e.from.symbol,chainLogo:e.from.blockchainLogo,blockchain:e.from.blockchain,amount:e.fromAmount}),r.createElement(Bt,null)),r.createElement(At,null,r.createElement(It,null),r.createElement(bt,{src:e.swapperLogo,alt:e.swapperId,size:20}),r.createElement(It,null)),n+1===(null==(i=o.result)?void 0:i.swaps.length)&&r.createElement(Nt,null),r.createElement(st,{direction:"vertical",logo:e.to.logo,symbol:e.to.symbol,chainLogo:e.to.blockchainLogo,blockchain:e.to.blockchain,amount:e.toAmount}))}))),!!o&&!(null!=o&&o.result)&&r.createElement(rt,{variant:"body2"},"No routes found")))},exports.BlockchainSelector=function(e){var t=e.list,n=e.onChange,o=e.selected,i=e.loadingStatus,a=e.listContainerStyle,l=e.multiSelect,c=e.selectedList;return r.createElement(ar,{textField:!0,hasHeader:e.hasHeader,textFieldPlaceholder:"Search Blockchain By Name",title:"Select "+e.type+" Network",onBack:e.onBack},(function(e){var s=function(e,t){return e.filter((function(e){return lr(e.name,t)||lr(e.displayName,t)}))}(t,e);return r.createElement(r.Fragment,null,"loading"===i&&r.createElement(br,null,r.createElement(pt,{size:24})),r.createElement(yr,{style:a,key:"1"},"failed"===i&&r.createElement(pr,null),"success"===i&&r.createElement(r.Fragment,null,s.length?r.createElement(Gt,{list:s,selected:o,multiSelect:l,selectedList:c,onChange:n}):r.createElement(gr,{catergory:"Blockchain",searchedFor:e}))))}))},exports.Button=qt,exports.CheckCircleIcon=H,exports.CheckIcon=q,exports.CheckSquareIcon=j,exports.CheckWalletIcon=Ae,exports.Checkbox=function(e){var t=e.label,n=e.id,o=g(e,kr);return r.createElement(Cr,null,r.createElement(zr,Object.assign({id:n},o),r.createElement(l.Indicator,null,r.createElement(q,{size:20}))),r.createElement(Sr,{className:"_text",htmlFor:n},t))},exports.ChevronRightIcon=xe,exports.Chip=Rr,exports.CloseIcon=Ue,exports.ColorPicker=function(e){var n=e.color,o=e.onChangeColor,i=e.label,a=e.place,l=t.useState(!1),c=l[0],s=l[1];return r.createElement(Sn,null,r.createElement(Mn,{className:"_text"},i),r.createElement(qt,{variant:"outlined",prefix:r.createElement(Ln,{style:{backgroundColor:n}}),fullWidth:!0,align:"start",size:"large",onClick:function(){return s((function(e){return!e}))}},n),c&&r.createElement(In,{place:a},r.createElement(Rn,{onClick:function(){return s(!1)}}),r.createElement(m.ChromePicker,{color:n,onChange:o})))},exports.ConfirmSwap=function(e){var t=e.requiredWallets,n=e.selectableWallets,o=e.onChange,i=e.isExperimentalChain,a=e.handleConnectChain,l=e.errors,c=e.warnings,s=e.extraMessages;return r.createElement(ar,{textField:!1,title:"Confirm Swap",onBack:e.onBack,Footer:r.createElement(An,null,r.createElement(Hn,{fullWidth:!0,loading:e.loading,type:"primary",variant:"contained",onClick:e.onConfirm,disabled:e.confirmDisabled},e.confirmButtonTitle))},r.createElement(Tn,null,r.createElement("div",null,s||null,r.createElement(qn,null,null==l?void 0:l.map((function(e,t){return r.createElement(r.Fragment,null,r.createElement(dr,{direction:"vertical"}),r.createElement(mr,Object.assign({type:"error",key:t},"string"==typeof e?{title:e}:{children:e})))})),null==c?void 0:c.map((function(e,t){return r.createElement(r.Fragment,null,r.createElement(dr,{direction:"vertical"}),r.createElement(mr,Object.assign({type:"warning",key:t},"string"==typeof e?{title:e}:{children:e})))})))),e.previewInputs||e.previewRoutes?r.createElement(On,null,e.previewInputs,e.previewRoutes?r.createElement(dr,{size:16,direction:"vertical"}):null,e.previewRoutes):null,t.map((function(e,t){var l=n.filter((function(t){return e===t.chain}));return r.createElement(Dn,{key:t},r.createElement("div",{className:"title"},r.createElement("div",{className:"num"},t+1),r.createElement(dr,{size:8}),r.createElement(rt,{variant:"body2"},"Your ",e," Wallet")),0===l.length&&r.createElement(r.Fragment,null,r.createElement(Zn,null,r.createElement(mr,{type:"error"},"You need to connect a compatible wallet with ",e,".")),(null==i?void 0:i(e))&&r.createElement(qt,{variant:"contained",type:"primary",align:"grow",onClick:function(){return null==a?void 0:a(e)}},"Add "+e+" chain to Cosmos wallets")),0!=l.length&&r.createElement(nn,{list:l,onChange:o}))}))))},exports.ConnectWalletsModal=function(e){var t=e.open,n=e.onSelect,o=e.onClose,i=r.createElement(Hr,null,e.list.map((function(e,t){return r.createElement(Zr,Object.assign({},e,{key:t,onClick:n}))})));return r.createElement(Wr,{title:"Connect Wallets",open:t,content:i,onClose:o,containerStyle:{width:"75%",maxWidth:"30rem",height:"70%"}})},exports.CopyIcon=Qe,exports.DeleteCircleIcon=I,exports.DeleteWalletIcon=Te,exports.DisconnectIcon=qe,exports.Divider=Ut,exports.DownloadIcon=ve,exports.Drawer=_n,exports.FilledCircle=Et,exports.GasIcon=K,exports.Header=Kt,exports.History=function(e){var t=e.list,n=void 0===t?[]:t,o=e.onSwapClick,i=e.groupBy,a=e.loading;return r.createElement(ar,{onBack:e.onBack,textField:!0,textFieldPlaceholder:"Search by Network, Token or Request ID",title:"Swaps"},(function(e){var t=function(e,t){return e.filter((function(e){var r=e.steps[0],n=e.steps[e.steps.length-1];return lr(r.fromBlockchain,t)||lr(r.fromSymbol,t)||lr(n.toBlockchain,t)||lr(n.toSymbol,t)||lr(e.requestId,t)}))}(n,e);return r.createElement(r.Fragment,null,a&&r.createElement(br,null,r.createElement(pt,{size:24})),r.createElement(Gn,null,!a&&r.createElement(r.Fragment,null,t.length?r.createElement(Pn,{list:t,onSwapClick:o,groupBy:i}):r.createElement(gr,{catergory:"Swap"}))))}))},exports.HistoryIcon=X,exports.HorizontalSwapIcon=Ie,exports.Image=bt,exports.InfoCircleIcon=F,exports.LiquiditySourcesSelector=function(e){var t=e.list,n=e.onChange,o=e.onBack,i=e.hasHeader,a=e.listContainerStyle,l=e.loadingStatus;return r.createElement(ar,{textField:!0,textFieldPlaceholder:"Search By Name",title:"Liquidity Sources",TopButton:r.createElement(qt,{variant:"ghost",type:"primary",onClick:e.toggleAll},t.find((function(e){return e.selected}))?"Deselect all":"Select all"),hasHeader:i,onBack:o},(function(e){return r.createElement(Xr,{listContainerStyle:a,list:Kr(t,e),onChange:n,loadingStatus:l,searchedFor:e})}))},exports.LoadingFailedAlert=pr,exports.MinusCircleIcon=A,exports.Modal=Wr,exports.Radio=un,exports.RetryIcon=je,exports.RetryLeftIcon=ke,exports.RetryRightIcon=be,exports.SearchIcon=ae,exports.SearchMinusIcon=oe,exports.SecondaryPage=ar,exports.SelectableWalletList=nn,exports.Settings=function(e){var n=e.slippages,o=e.selectedLiquiditySources,i=e.liquiditySources,a=e.onSlippageChange,l=e.onLiquiditySourcesClick,c=e.onBack,s=e.customSlippage,d=e.onCustomSlippageChange,u=e.maxSlippage,m=e.minSlippage,p=e.selectedTheme,g=e.onThemeChange,h=e.toggleInfiniteApprove,v=e.infiniteApprove,f=e.loadingStatus,x=t.useState(e.selectedSlippage),E=x[0],$=x[1],w=r.createElement(r.Fragment,null,r.createElement(mn,null,r.createElement($n,null,r.createElement(rt,{variant:"body2"},"Slippage tolerance"),s?r.createElement(rt,{variant:"caption",color:"error"},s,"% Custom"):void 0),r.createElement(gn,null,n.map((function(e,t){return r.createElement(Rr,{key:t,onClick:function(){s&&d(null),function(e){$(e),a(e)}(e)},selected:!s&&e===E,label:e.toString()+"%",style:{marginRight:"8px"}})})),r.createElement(nr,{type:"number",value:s,onChange:function(e){var t=parseFloat(e.target.value);(!t||t>=m&&t<=u)&&d(t)},suffix:s&&r.createElement(rt,{variant:"body2"},"%"),size:"small",placeholder:"Custom %",style:{width:"128px",flexGrow:"initial"}}))),r.createElement(En,null,r.createElement(pn,{variant:"body2"},"Theme"),r.createElement(un,{value:p,options:[{value:"dark",label:"Dark"},{value:"light",label:"Light"},{value:"auto",label:"Auto"}],onChange:function(e){return g(e)},direction:"horizontal",style:{marginTop:"$24"}})),r.createElement(vn,null,r.createElement(rt,{variant:"body2"},"Infinite Approval"),r.createElement(Vr,{checked:v,onChange:h})),r.createElement(hn,null,r.createElement(qt,{onClick:l,align:"start",variant:"ghost",loading:"loading"===f,suffix:r.createElement(xn,null,"success"===f&&r.createElement(rt,{variant:"body2",color:"neutrals800"},i.length!==o.length?o.length+" / "+i.length:i.length),"failed"===f&&r.createElement(rt,{variant:"body2",color:"$error500"},"Loading failed"),r.createElement(fn,null))},r.createElement(rt,{variant:"body2"},"Liquidity Sources"))));return r.createElement(ar,{title:"Settings",textField:!1,onBack:c},w)},exports.SettingsIcon=ee,exports.SignatureIcon=Je,exports.Spacer=dr,exports.Spinner=pt,exports.StepDetail=st,exports.SwapContainer=function(e){var t=e.fixedHeight;return r.createElement(wn,{style:e.style,id:"swap-box",fixedHeight:void 0===t||t},e.children)},exports.SwapDetail=zn,exports.SwapHistory=function(e){var n=e.pendingSwap,o=e.onBack,i=e.onCopy,a=e.isCopied,l=e.onCancel,c=e.date,s=e.onRetry,d=g(e,Jn),u=t.useState(!1),m=u[0],p=u[1];return r.createElement(ar,{title:"Swap Details",textField:!1,onBack:o,Footer:r.createElement(r.Fragment,null,"running"===(null==n?void 0:n.status)&&r.createElement(qt,{variant:"outlined",fullWidth:!0,type:"error",onClick:p.bind(null,!0)},"Cancel"),!!s&&r.createElement(qt,{variant:"contained",fullWidth:!0,type:"primary",onClick:s},"Try again"))},r.createElement("div",null,r.createElement(io,null,r.createElement(mo,null,r.createElement("div",{className:"name"},"Request Id:",r.createElement("span",{className:"value requestId",onClick:i.bind(null,null==n?void 0:n.requestId)},r.createElement(po,null,null==n?void 0:n.requestId),r.createElement(dr,{size:4}),r.createElement(qt,{type:"primary",variant:"ghost",size:"compact"},a?"Copied!":"Copy"))),r.createElement("div",{className:"name"},r.createElement("span",{className:"value status "+((null==n?void 0:n.status)||"")},null==n?void 0:n.status,"running"===(null==n?void 0:n.status)&&r.createElement(pt,{size:16,color:"primary"})),r.createElement(go,null,c))))),r.createElement(ho,null,d.shortMessage&&r.createElement(Xn,Object.assign({},d)),r.createElement(Ut,{size:16}),null==n?void 0:n.steps.map((function(e,t){return r.createElement("div",{key:t},0===t&&r.createElement(to,null,r.createElement(st,{logo:e.fromLogo,symbol:e.fromSymbol,chainLogo:e.fromBlockchainLogo||"",blockchain:e.fromBlockchain,amount:n.inputAmount}),r.createElement(ro,null)),r.createElement(uo,null),r.createElement(Kn,{created:"created"===e.status,running:!["created","success","failed"].includes(e.status)},r.createElement(bt,{src:e.swapperLogo||"",alt:e.swapperId,size:20}),r.createElement(Qn,null,r.createElement(rt,{variant:"body2"},"DEX"===e.swapperType?"Swap":"Bridge"," via"," ",e.swapperId),r.createElement(eo,null,r.createElement(K,null),r.createElement(rt,{variant:"body2"},"  $",e.feeInUsd," estimated gas fee")))),r.createElement("div",{style:{display:"flex"}},r.createElement(ao,null,r.createElement(uo,null),r.createElement("div",{className:"details"},!!e.explorerUrl&&r.createElement("div",null,e.explorerUrl.map((function(e,t){return r.createElement(lo,{key:t},r.createElement(co,null,r.createElement(Ut,{size:4}),r.createElement(H,{color:"primary"}),r.createElement(so,{variant:"body2"},r.createElement(oo,{href:e.url,target:"_blank",rel:"noreferrer",key:t},e.description?r.createElement("b",null,e.description.substring(0,1).toUpperCase(),e.description.substring(1)," Tx"):r.createElement("b",null,"View transaction")))))}))),"failed"===e.status&&r.createElement(lo,null,r.createElement(co,null,r.createElement(F,{color:"error"}),r.createElement(so,{variant:"body2",color:"$error500"},"Step failed")))))),t+1===n.steps.length&&r.createElement(no,null),r.createElement(st,{logo:e.toLogo,symbol:e.toSymbol,chainLogo:e.toBlockchainLogo||"",blockchain:e.toBlockchain,amount:e.outputAmount||"",estimatedAmount:e.expectedOutputAmountHumanReadable||"",success:"success"===e.status}))})),r.createElement(Ut,{size:32})),r.createElement(_n,{onClose:p.bind(null,!1),open:m,showClose:!0,anchor:"bottom",title:"Cancel Progress",content:r.createElement(mr,{type:"warning"},r.createElement(rt,{variant:"body2"},"Warning: Cancel ",r.createElement("u",null,"doesn't revert")," your transaction if you've already signed and sent a transaction to the blockchain. It only stops next steps from being executed.")),footer:r.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"}},r.createElement(qt,{variant:"contained",type:"success",onClick:p.bind(null,!1)},"Skip"),r.createElement(dr,{size:16}),r.createElement(qt,{variant:"contained",type:"error",onClick:function(){l(n.requestId),p(!1)}},"Cancel progress")),container:document.getElementById("swap-box")}))},exports.SwapWalletIcon=He,exports.SwapsGroup=Pn,exports.Switch=Vr,exports.TextField=nr,exports.TimeIcon=Ye,exports.TokenList=wr,exports.TokenSelector=function(e){var t=e.list,n=e.selected,o=e.onChange,i=e.loadingStatus;return r.createElement(ar,{textField:!0,hasHeader:e.hasHeader,title:"Select "+e.type+" Token",onBack:e.onBack,textFieldPlaceholder:"Search Token By Name"},(function(e){var a=function(e,t){return e.filter((function(e){return lr(e.symbol,t)||lr(e.address||"",t)||lr(e.name||"",t)}))}(t,e);return"loading"===i?r.createElement(br,null,r.createElement(pt,{size:24})):"failed"===i?r.createElement(pr,null):a.length?r.createElement(wr,{searchedText:e,list:a,selected:n,onChange:o}):r.createElement(gr,{catergory:"Token",searchedFor:e})}))},exports.Tooltip=xt,exports.TrashIcon=re,exports.TryAgainIcon=ze,exports.Typography=rt,exports.VerticalSwapIcon=Le,exports.Wallet=Zr,exports.WalletIcon=Ne,exports.WarningIcon=Y,exports.createTheme=b,exports.css=w,exports.darkTheme=z,exports.globalCss=k,exports.keyframes=y,exports.lightTheme=C,exports.styled=$;
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),r=e(t),n=require("@radix-ui/react-tooltip"),o=require("react-window"),i=e(require("react-window-infinite-loader")),a=e(require("react-virtualized-auto-sizer")),l=require("@radix-ui/react-checkbox"),c=require("react-dom"),s=require("@rango-dev/wallets-shared"),d=require("@radix-ui/react-switch"),u=require("@radix-ui/react-radio-group"),m=require("react-color"),p=e(require("copy-to-clipboard"));function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function h(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(o[r]=e[r]);return o}var v,f,x,E,$=(0,require("@stitches/react").createStitches)({media:{sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)"},theme:{colors:{primary:"#5FA425",primary100:"#9FC87C",primary200:"#8FBF66",primary300:"#7FB651",primary400:"#6FAD3B",primary500:"#5FA425",primary600:"#4C831E",primary700:"#396216",primary800:"#26420F",primary900:"#132107",neutrals200:"#FAFAFA",neutrals300:"#EAEAEA",neutrals400:"#999999",neutrals500:"#888888",neutrals600:"#666666",neutrals700:"#444444",neutrals800:"#333333",neutrals900:"#111111",background:"#fff",foreground:"#000",success:"#0070F3",success100:"#D3E5FF",success300:"#3291FF",success500:"#0070F3",success700:"#0761D1",warning:"#F5A623",warning100:"#FFEFCF",warning300:"#F7B955",warning500:"#F5A623",warning700:"#AB570A",error:"#FF0000",error100:"#F7D4D6",error300:"#FF3333",error500:"#FF0000",error700:"#E60000",white:"#fff"},space:{2:"2px",4:"4px",6:"6px",8:"8px",10:"10px",12:"12px",16:"16px",20:"20px",24:"24px",28:"28px",30:"30px",32:"32px"},fontSizes:{10:"10px",12:"12px",14:"14px",16:"16px",18:"18px",20:"20px",24:"24px",32:"32px",36:"36px",40:"40px",48:"48px"},fonts:{},fontWeights:{400:"400",500:"500",600:"600",700:"700"},lineHeights:{},letterSpacings:{},sizes:{4:"4px",6:"6px",8:"8px",12:"12px",16:"16px",20:"20px",24:"24px",28:"28px",32:"32px",36:"36px",40:"40px",48:"48px"},borderWidths:{},borderStyles:{},radii:{5:"8px",10:"12px"},shadows:{s:"0px 3px 5px 3px #f0f2f5, 0px 6px 10px 3px #f0f2f5, 0px 1px 18px 3px #f0f2f5"},zIndices:{},transitions:{}},utils:{bc:function(e){return{backgroundColor:e}}}}),w=$.styled,b=$.css,y=$.createTheme,k=$.keyframes,C=$.globalCss,z=y({}),S=y({colors:{neutrals200:"#111111",neutrals300:"#333333",neutrals400:"#444444",neutrals500:"#666666",neutrals600:"#888888",neutrals700:"#999999",neutrals800:"#EAEAEA",neutrals900:"#FAFAFA",foreground:"#fff",background:"#000"},shadows:{s:"0px 3px 5px 3px #222, 0px 6px 10px 3px #222, 0px 1px 18px 3px #222"}}),L=w("svg",{stroke:"$foreground",variants:{color:{primary:{stroke:"$primary"},error:{stroke:"$error"},warning:{stroke:"$warning"},success:{stroke:"$success"},black:(v={$$color:"$colors$foreground"},v["."+S+" &"]={$$color:"$colors$background"},v.stroke="$$color",v),white:(f={$$color:"$colors$background"},f["."+S+" &"]={$$color:"$colors$foreground"},f.stroke="$$color",f)},disabled:{true:{stroke:"$neutrals400"}}}}),R=w("svg",{fill:"$foreground",variants:{color:{primary:{fill:"$primary"},error:{fill:"$error"},warning:{fill:"$warning"},success:{fill:"$success"},black:(x={$$color:"$colors$foreground"},x["."+S+" &"]={$$color:"$colors$background"},x.fill="$$color",x),white:(E={$$color:"$colors$background"},E["."+S+" &"]={$$color:"$colors$foreground"},E.fill="$$color",E)},disabled:{true:{stroke:"$neutrals400"}}}}),I=["size","color"],M=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,I);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10ZM9.17 14.83l5.66-5.66M14.83 14.83 9.17 9.17",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};M.toString=function(){return"._icon"};var j=["size","color"],B=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,j);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"m7.75 12 2.83 2.83 5.67-5.66",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};B.toString=function(){return"._icon"};var N=["size","color"],W=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,N);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M6 12h12M12 18V6",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};W.toString=function(){return"._icon"};var F=["size","color"],_=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,F);return t.createElement(R,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10ZM12 8v5",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff"}),t.createElement("path",{d:"M11.994 16h.01",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff"}))};_.toString=function(){return"._icon"};var T=["size","color"],O=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,T);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10ZM8 12h8M12 16V8",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};O.toString=function(){return"._icon"};var A=["size","color"],Z=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,A);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M11.92 22c5.5 0 10-4.5 10-10s-4.5-10-10-10-10 4.5-10 10 4.5 10 10 10ZM7.92 12h8",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};Z.toString=function(){return"._icon"};var H=["size","color"],D=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,H);return t.createElement(R,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff"}),t.createElement("path",{d:"m7.75 12 2.83 2.83 5.67-5.66",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",stroke:"#fff"}))};D.toString=function(){return"._icon"};var q=["size","color"],V=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,q);return t.createElement(R,Object.assign({width:n,height:n,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:o,className:"_icon"},i),t.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fillRule:"evenodd",clipRule:"evenodd"}))};V.toString=function(){return"._icon"};var P=["size","color"],G=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,P);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M12 22c5.52 0 10-4.48 10-10S17.52 2 12 2 2 6.48 2 12s4.48 10 10 10ZM18.9 5l-14 14",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}))};G.toString=function(){return"._icon"};var Y=["size","color"],U=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,Y);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M12 9v5M12 21.41H5.94c-3.47 0-4.92-2.48-3.24-5.51l3.12-5.62L8.76 5c1.78-3.21 4.7-3.21 6.48 0l2.94 5.29 3.12 5.62c1.68 3.03.22 5.51-3.24 5.51H12v-.01Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M11.994 17h.01",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}))};U.toString=function(){return"._icon"};var X=["size","color"],J=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,X);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),t.createElement("polyline",{points:"14 2 14 8 20 8"}),t.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),t.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),t.createElement("polyline",{points:"10 9 9 9 8 9"}))};J.toString=function(){return"._icon"};var K=["size","color"],Q=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,K);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M4 22V5c0-2 1.34-3 3-3h8c1.66 0 3 1 3 3v17H4ZM2.5 22h17",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M8.89 10h4.23c1.04 0 1.89-.5 1.89-1.89V6.88c0-1.39-.85-1.89-1.89-1.89H8.89C7.85 4.99 7 5.49 7 6.88v1.23C7 9.5 7.85 10 8.89 10ZM7 13h3M18 16.01l4.5-.01v-6l-2-1",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};Q.toString=function(){return"._icon"};var ee=["size","color"],te=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,ee);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("circle",{cx:"12",cy:"12",r:"3"}),t.createElement("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"}))};te.toString=function(){return"._icon"};var re=["size","color"],ne=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,re);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M21.5 5.98c-3.33-.33-6.68-.5-10.02-.5-1.98 0-3.96.1-5.94.3l-2.04.2M9 4.97l.22-1.31C9.38 2.71 9.5 2 11.19 2h2.62c1.69 0 1.82.75 1.97 1.67l.22 1.3M19.35 9.14l-.65 10.07c-.11 1.57-.2 2.79-2.99 2.79H9.29c-2.79 0-2.88-1.22-2.99-2.79L5.65 9.14M10.83 16.5h3.33M10 12.5h5",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};ne.toString=function(){return"._icon"};var oe=["size","color"],ie=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,oe);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M9 11.7h5M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};ie.toString=function(){return"._icon"};var ae=["size","color"],le=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,ae);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};le.toString=function(){return"._icon"};var ce=["size","color"],se=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,ce);return t.createElement(L,Object.assign({width:n,height:n,fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",color:o,className:"_icon"},i),t.createElement("path",{d:"m8.91 19.92 6.52-6.52c.77-.77.77-2.03 0-2.8L8.91 4.08",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}))};se.toString=function(){return"._icon"};var de=["size","color"],ue=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,de);return t.createElement(L,Object.assign({width:n,height:n,fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",color:o,className:"_icon"},i),t.createElement("path",{d:"M19.92 15.05 13.4 8.53c-.77-.77-2.03-.77-2.8 0l-6.52 6.52",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}))};ue.toString=function(){return"._icon"};var me=["size","color"],pe=function(e){var t=e.size,n=void 0===t?16:t,o=e.color,i=h(e,me);return r.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),r.createElement("path",{d:"m19.92 8.95-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}))};pe.toString=function(){return"._icon"};var ge=["size","color"],he=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,ge);return t.createElement(L,Object.assign({width:n,height:n,fill:"none",viewBox:"0 0 24 24",color:o,xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M15 19.92 8.48 13.4c-.77-.77-.77-2.03 0-2.8L15 4.08",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}))};pe.toString=function(){return"._icon"};var ve=["size","color"],fe=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,ve);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M16.44 8.9c3.6.31 5.07 2.16 5.07 6.21v.13c0 4.47-1.79 6.26-6.26 6.26H8.74c-4.47 0-6.26-1.79-6.26-6.26v-.13c0-4.02 1.45-5.87 4.99-6.2M12 2v12.88",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M15.35 12.65 12 16l-3.35-3.35",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};fe.toString=function(){return"._icon"};var xe=["color","size"],Ee=t.forwardRef((function(e,r){var n=e.color,o=void 0===n?"black":n,i=e.size,a=void 0===i?16:i,l=h(e,xe);return t.createElement(L,Object.assign({xmlns:"http://www.w3.org/2000/svg",width:a,height:a,color:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"_icon"},l,{ref:r}),t.createElement("polyline",{points:"9 18 15 12 9 6"}))}));Ee.toString=function(){return"._icon"};var $e=["size","color"],we=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,$e);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),t.createElement("polyline",{points:"12 5 19 12 12 19"}))};we.toString=function(){return"._icon"};var be=["size","color"],ye=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,be);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M14.89 5.08c-.87-.26-1.83-.43-2.89-.43-4.79 0-8.67 3.88-8.67 8.67C3.33 18.12 7.21 22 12 22s8.67-3.88 8.67-8.67c0-1.78-.54-3.44-1.46-4.82M16.13 5.32 13.24 2M16.13 5.32l-3.37 2.46",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};ye.toString=function(){return"._icon"};var ke=["size","color"],Ce=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,ke);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M9.11 5.08c.87-.26 1.83-.43 2.89-.43 4.79 0 8.67 3.88 8.67 8.67s-3.88 8.67-8.67 8.67-8.67-3.88-8.67-8.67c0-1.78.54-3.44 1.46-4.82M7.87 5.32 10.76 2M7.87 5.32l3.37 2.46",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};Ce.toString=function(){return"._icon"};var ze=["size","color"],Se=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,ze);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"M22 12c0 5.52-4.48 10-10 10s-8.89-5.56-8.89-5.56m0 0h4.52m-4.52 0v5M2 12C2 6.48 6.44 2 12 2c6.67 0 10 5.56 10 5.56m0 0v-5m0 5h-4.44",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};Se.toString=function(){return"._icon"};var Le=["size","color"],Re=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,Le);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"m13.82 6.85 3.04 3.04M13.82 17.15V6.85M10.18 17.15l-3.04-3.04M10.18 6.85v10.3",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};Re.toString=function(){return"._icon"};var Ie=["size","color"],Me=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,Ie);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{d:"m17.15 13.82-3.04 3.04M6.85 13.82h10.3M6.85 10.18l3.04-3.04M17.15 10.18H6.85",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};Me.toString=function(){return"._icon"};var je=["color","size"],Be=t.forwardRef((function(e,r){var n=e.color,o=void 0===n?"black":n,i=e.size,a=void 0===i?16:i,l=h(e,je);return t.createElement(L,Object.assign({xmlns:"http://www.w3.org/2000/svg",width:a,height:a,color:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"_icon"},l,{ref:r}),t.createElement("polyline",{points:"23 4 23 10 17 10"}),t.createElement("path",{d:"M20.49 15a9 9 0 1 1-2.12-9.36L23 10"}))}));Be.toString=function(){return"._icon"};var Ne=["size","color"],We=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,Ne);return t.createElement(R,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.51 7.205a3.018 3.018 0 0 0-3.01 3.01v6.73a3.018 3.018 0 0 0 3.01 3.01h11.48a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.778-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227 2.743 2.743 0 0 1 1.971-.82H19v-.69a3.018 3.018 0 0 0-3.01-3.01H4.51ZM0 10.215a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.36 0-.675.14-.903.373l-.013.014c-.266.26-.415.63-.377 1.022v.009c.053.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51H4.51A4.518 4.518 0 0 1 0 16.945v-6.73Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.35 2.655a1.15 1.15 0 0 0-1.554-1.079l-7.94 3A2.098 2.098 0 0 0 1.5 6.547v4.569a.75.75 0 1 1-1.5 0v-4.57c0-1.5.922-2.84 2.325-3.371l7.94-3s-.001 0 0 0c1.732-.657 3.585.629 3.585 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM17.729 12.405c-.36 0-.675.14-.903.373l-.013.014c-.266.26-.415.63-.377 1.022v.009c.053.635.664 1.182 1.413 1.182h1.943a.276.276 0 0 0 .267-.27v-2.06a.276.276 0 0 0-.267-.27h-2.063Zm-1.97-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.723 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.778-1.03-2.907-2.553a2.759 2.759 0 0 1 .816-2.227Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75Z"}))};We.toString=function(){return"._icon"};var Fe=["size","color"],_e=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,Fe);return t.createElement(R,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.569 7.205a3.018 3.018 0 0 0-3.01 3.01v3.076a4.749 4.749 0 0 1 6.5 4.414c0 .808-.206 1.579-.574 2.25h8.564a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.778-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227 2.743 2.743 0 0 1 1.97-.82h1.27v-.69a3.018 3.018 0 0 0-3.01-3.01H6.569Zm-4.51 3.01a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.36 0-.675.14-.903.373l-.014.014c-.266.26-.414.63-.377 1.022l.001.009c.053.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51H7.939a.75.75 0 0 1-.482-1.324c.243-.204.457-.457.624-.744l.01-.015a3.17 3.17 0 0 0 .468-1.667 3.249 3.249 0 0 0-5.283-2.533.75.75 0 0 1-1.217-.587v-4.37Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.409 2.655a1.15 1.15 0 0 0-1.555-1.078l-7.94 3a2.098 2.098 0 0 0-1.355 1.968v4.57a.75.75 0 0 1-1.5 0v-4.57c0-1.5.921-2.84 2.324-3.371l7.94-3c1.733-.657 3.586.629 3.586 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM19.787 12.405c-.359 0-.674.14-.902.374l-.014.013c-.266.26-.414.63-.377 1.022v.01c.054.634.664 1.181 1.413 1.181h1.943a.276.276 0 0 0 .267-.27v-2.06a.276.276 0 0 0-.267-.27h-2.063Zm-1.97-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.723 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.777-1.03-2.907-2.553a2.759 2.759 0 0 1 .817-2.227Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.559 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75ZM5.309 14.455c-.762 0-1.469.267-2.033.717h-.001a3.22 3.22 0 0 0-1.216 2.533c0 .61.17 1.184.468 1.667l.006.01a3.22 3.22 0 0 0 2.776 1.573 3.155 3.155 0 0 0 2.148-.824c.243-.204.457-.457.624-.744l.01-.015a3.17 3.17 0 0 0 .468-1.667 3.249 3.249 0 0 0-3.25-3.25Zm-2.967-.457a4.749 4.749 0 0 1 7.717 3.707c0 .888-.248 1.73-.687 2.446-.25.427-.57.808-.941 1.12a4.656 4.656 0 0 1-3.122 1.184 4.72 4.72 0 0 1-4.062-2.301 4.671 4.671 0 0 1-.688-2.449 4.72 4.72 0 0 1 1.783-3.707Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.07 17.685a.75.75 0 0 1 .75-.75H6.8a.75.75 0 0 1 0 1.5H3.82a.75.75 0 0 1-.75-.75Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.309 15.475a.75.75 0 0 1 .75.75v2.99a.75.75 0 0 1-1.5 0v-2.99a.75.75 0 0 1 .75-.75Z"}))};_e.toString=function(){return"._icon"};var Te=["size","color"],Oe=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,Te);return t.createElement(R,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.627 7.205a3.018 3.018 0 0 0-3.01 3.01v3.076a4.749 4.749 0 0 1 6.5 4.414c0 .808-.205 1.579-.573 2.25h8.563a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.777-1.03-2.907-2.553a2.759 2.759 0 0 1 .817-2.227 2.743 2.743 0 0 1 1.97-.82h1.27v-.69a3.018 3.018 0 0 0-3.01-3.01H6.627Zm-4.51 3.01a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.359 0-.675.14-.902.373l-.014.014c-.266.26-.415.63-.377 1.022v.009c.054.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51H7.997a.75.75 0 0 1-.482-1.325c.243-.203.457-.456.624-.743l.01-.016a3.17 3.17 0 0 0 .468-1.666 3.249 3.249 0 0 0-5.282-2.533.75.75 0 0 1-1.218-.587v-4.37Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.467 2.655a1.15 1.15 0 0 0-1.554-1.079l-7.94 3a2.098 2.098 0 0 0-1.356 1.97v4.569a.75.75 0 1 1-1.5 0v-4.57c0-1.5.922-2.84 2.325-3.371l7.94-3c1.732-.657 3.585.629 3.585 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM19.846 12.405c-.359 0-.675.14-.903.373l-.013.014c-.266.26-.415.63-.377 1.022v.009c.053.635.664 1.182 1.413 1.182h1.943a.276.276 0 0 0 .267-.27v-2.06a.276.276 0 0 0-.267-.27h-2.063Zm-1.97-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.723 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.778-1.03-2.907-2.553a2.759 2.759 0 0 1 .816-2.227Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.617 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75ZM5.367 14.455c-.761 0-1.468.267-2.032.717h-.002a3.22 3.22 0 0 0-1.216 2.533c0 .61.17 1.183.469 1.666l.006.01a3.22 3.22 0 0 0 2.775 1.574 3.155 3.155 0 0 0 2.148-.825c.243-.203.457-.456.624-.743l.01-.016a3.17 3.17 0 0 0 .468-1.666 3.249 3.249 0 0 0-3.25-3.25ZM2.4 13.998a4.749 4.749 0 0 1 7.717 3.707 4.67 4.67 0 0 1-.687 2.446c-.25.427-.57.808-.94 1.12a4.655 4.655 0 0 1-3.123 1.184 4.72 4.72 0 0 1-4.061-2.301 4.67 4.67 0 0 1-.689-2.449A4.72 4.72 0 0 1 2.4 13.998Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.785 16.106a.75.75 0 0 1 1.06-.003l2.12 2.11a.75.75 0 1 1-1.058 1.064l-2.12-2.11a.75.75 0 0 1-.002-1.061Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.948 16.136a.75.75 0 0 1-.002 1.06l-2.12 2.11a.75.75 0 0 1-1.058-1.063l2.12-2.11a.75.75 0 0 1 1.06.003Z"}))};Oe.toString=function(){return"._icon"};var Ae=["size","color"],Ze=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,Ae);return t.createElement(R,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.686 7.205a3.018 3.018 0 0 0-3.01 3.01v3.076a4.749 4.749 0 0 1 6.5 4.414c0 .808-.205 1.579-.573 2.25h8.563a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.778-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227 2.743 2.743 0 0 1 1.97-.82h1.27v-.69a3.018 3.018 0 0 0-3.01-3.01H6.686Zm-4.51 3.01a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.36 0-.675.14-.903.373l-.013.014c-.266.26-.415.63-.378 1.022l.001.009c.053.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51H8.056a.75.75 0 0 1-.482-1.324c.243-.204.457-.457.624-.744l.01-.015a3.17 3.17 0 0 0 .468-1.667 3.249 3.249 0 0 0-5.283-2.533.75.75 0 0 1-1.217-.587v-4.37Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.526 2.655a1.15 1.15 0 0 0-1.554-1.078l-7.94 3a2.098 2.098 0 0 0-1.356 1.968v4.57a.75.75 0 0 1-1.5 0v-4.57c0-1.5.921-2.84 2.324-3.371l7.94-3c1.733-.657 3.586.629 3.586 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM19.905 12.405c-.36 0-.675.14-.903.374l-.014.013c-.265.26-.414.63-.377 1.022l.001.01c.053.634.664 1.181 1.413 1.181h1.942a.276.276 0 0 0 .268-.27v-2.06a.276.276 0 0 0-.268-.27h-2.062Zm-1.971-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.724 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.778-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.676 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75ZM5.426 14.455c-.762 0-1.469.267-2.033.717h-.001a3.22 3.22 0 0 0-1.216 2.533c0 .61.17 1.184.468 1.667l.006.01a3.22 3.22 0 0 0 2.776 1.573 3.155 3.155 0 0 0 2.148-.824c.243-.204.457-.457.624-.744l.01-.015a3.17 3.17 0 0 0 .468-1.667 3.249 3.249 0 0 0-3.25-3.25Zm-2.967-.457a4.749 4.749 0 0 1 7.717 3.707c0 .888-.248 1.73-.687 2.446-.25.427-.57.808-.941 1.12a4.656 4.656 0 0 1-3.122 1.184 4.72 4.72 0 0 1-4.062-2.301 4.671 4.671 0 0 1-.688-2.449 4.72 4.72 0 0 1 1.783-3.707Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.538 16.215a.75.75 0 0 1-.042 1.06l-2.13 1.97a.75.75 0 0 1-1.04-.02l-.99-.99a.75.75 0 1 1 1.062-1.06l.48.48 1.6-1.48a.75.75 0 0 1 1.06.04Z"}))};Ze.toString=function(){return"._icon"};var He=["size","color"],De=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,He);return t.createElement(R,Object.assign({width:n,height:n,viewBox:"0 0 24 24",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.244 7.205a3.018 3.018 0 0 0-3.01 3.01v1.73a.75.75 0 0 1-1.5 0v-1.73a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.359 0-.674.14-.902.373l-.014.014c-.266.26-.414.63-.377 1.022v.009c.054.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51h-5.48a.75.75 0 0 1 0-1.5h5.48a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.777-1.03-2.907-2.553a2.758 2.758 0 0 1 .817-2.227 2.743 2.743 0 0 1 1.97-.82h1.27v-.69a3.018 3.018 0 0 0-3.01-3.01H5.244Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.084 2.655a1.15 1.15 0 0 0-1.554-1.078l-7.94 3a2.098 2.098 0 0 0-1.356 1.968v4.57a.75.75 0 0 1-1.5 0v-4.57c0-1.5.922-2.84 2.325-3.371l7.94-3c1.732-.657 3.585.629 3.585 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM18.463 12.405c-.359 0-.675.14-.902.374l-.014.013c-.266.26-.415.63-.377 1.022v.01c.053.634.664 1.181 1.413 1.181h1.943a.276.276 0 0 0 .267-.27v-2.06a.276.276 0 0 0-.267-.27h-2.063Zm-1.97-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.723 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.777-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.234 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75ZM1.234 15.205a.75.75 0 0 1 .75-.75h5.34a1.91 1.91 0 0 1 1.91 1.91v1.28a.75.75 0 0 1-1.5 0v-1.28a.41.41 0 0 0-.41-.41h-5.34a.75.75 0 0 1-.75-.75Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.735 13.455a.75.75 0 0 1 0 1.06l-.69.69.69.69a.75.75 0 1 1-1.061 1.06l-1.22-1.22a.75.75 0 0 1 0-1.06l1.22-1.22a.75.75 0 0 1 1.06 0ZM1.984 17.296a.75.75 0 0 1 .75.75v1.28c0 .225.185.41.41.41h5.34a.75.75 0 0 1 0 1.5h-5.34a1.91 1.91 0 0 1-1.91-1.91v-1.28a.75.75 0 0 1 .75-.75Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.735 18.735a.75.75 0 0 1 1.061 0l1.22 1.22a.75.75 0 0 1 0 1.061l-1.22 1.22a.75.75 0 1 1-1.06-1.06l.689-.69-.69-.69a.75.75 0 0 1 0-1.06Z"}))};De.toString=function(){return"._icon"};var qe=["color","size"],Ve=t.forwardRef((function(e,r){var n=e.color,o=void 0===n?"black":n,i=e.size,a=void 0===i?16:i,l=h(e,qe);return t.createElement(L,Object.assign({xmlns:"http://www.w3.org/2000/svg",width:a,height:a,color:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"_icon"},l,{ref:r}),t.createElement("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),t.createElement("polyline",{points:"16 17 21 12 16 7"}),t.createElement("line",{x1:"21",y1:"12",x2:"9",y2:"12"}))}));Ve.toString=function(){return"._icon"};var Pe=["size","color"],Ge=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,Pe);return t.createElement(L,Object.assign({width:n,height:n,viewBox:"0 0 32 32",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("g",{clipPath:"url(#a)",strokeWidth:1.5},t.createElement("path",{d:"M9.333 9.333V4.8a.8.8 0 0 1 .8-.8h11.734a.8.8 0 0 1 .8.8v4.533M13.333 4v5.333M16 4v5.333m9.333 17.334H6.667A2.667 2.667 0 0 1 4 24V12a2.667 2.667 0 0 1 2.667-2.667h18.666A2.667 2.667 0 0 1 28 12v12a2.667 2.667 0 0 1-2.667 2.667Z"}),t.createElement("path",{d:"M22 18.666a.667.667 0 1 1 0-1.334.667.667 0 0 1 0 1.334Z",fill:o,strokeLinecap:"round",strokeLinejoin:"round"})),t.createElement("defs",null,t.createElement("clipPath",{id:"a"},t.createElement("path",{fill:o,d:"M0 0h32v32H0z"}))))};Ge.toString=function(){return"._icon"};var Ye=["size"],Ue=t.forwardRef((function(e,r){var n=e.size,o=void 0===n?16:n,i=h(e,Ye);return t.createElement(L,Object.assign({width:o,height:o,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i,{ref:r}),t.createElement("circle",{cx:10,cy:10,r:7.25,strokeWidth:1.5}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.134 6.6a.6.6 0 0 0-1.2 0v4.27a.6.6 0 0 0 .28.507c.009.01.018.019.029.028l2.59 2.373a.472.472 0 0 0 .753-.109.763.763 0 0 0-.133-.919l-2.319-2.123V6.6Z"}))}));Ue.toString=function(){return"._icon"};var Xe=w(W,{transform:"rotate(45deg)",cursor:"pointer"});Xe.toString=function(){return"._icon"};var Je=["size","color"],Ke=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,Je);return t.createElement(R,Object.assign({width:n,height:n,color:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 122.88 107.95",xmlSpace:"preserve",className:"_icon"},i),t.createElement("path",{d:"M82.19 0c1.22-.01 2.27.4 3.18 1.27l13.27 12.7c.86.82 1.28 1.91 1.3 3.11.02 1.22-.34 2.33-1.18 3.18l-7.06 7.35L72.09 8.67l6.99-7.28C79.94.5 80.98.02 82.19 0zM20.08 68.29a4.536 4.536 0 1 1 2.67 8.67c-6.98 2.14-11.66 6.28-13.21 10.17-.41 1.04-.55 1.99-.39 2.77.12.59.48 1.13 1.07 1.56 2.55 1.86 8.04 2.34 17.26.1 5.46-1.33 11.31-3.13 16.49-4.73 5.29-1.63 9.91-3.06 13.12-3.66 5.92-1.1 11.83-1.85 16.6-1.61 6.26.31 10.96 2.32 12.57 7.13 1.04 3.11.75 5.81.49 8.23-.09.87-.18 1.68-.14 2.21 0 .02.95-.05 5.53-.41 5.3-.42 10.79-2.51 16.21-4.58 2.78-1.06 5.54-2.11 8.67-3.07 2.4-.73 4.93.63 5.65 3.02.73 2.4-.63 4.93-3.02 5.65-2.43.74-5.24 1.82-8.06 2.89-6.04 2.3-12.14 4.63-18.74 5.15-12.07.95-14.87-2.46-15.3-7.95-.1-1.29.03-2.54.17-3.88.16-1.5.34-3.18-.07-4.39-.18-.54-1.89-.82-4.39-.94-3.99-.2-9.22.48-14.54 1.47-2.65.49-7.05 1.85-12.09 3.41-5.27 1.63-11.22 3.46-17.02 4.87-12.14 2.95-20.21 1.7-24.73-1.6-2.54-1.85-4.05-4.27-4.63-7-.54-2.54-.23-5.28.85-8 2.46-6.14 9.23-12.5 18.98-15.48zm21.19-19.84L53.3 60.02l-14.71 3.95c-.53.1-.74-.11-.65-.6l3.33-14.92zm24.6-33.34 19.59 18.87L58.7 62.23l-23.98 6.43c-.86.17-1.2-.17-1.06-.98l5.43-24.31 26.78-28.26z",style:{fillRule:"evenodd",clipRule:"evenodd"}}))};Ke.toString=function(){return"._icon"};var Qe=["size","color"],et=function(e){var r=e.size,n=void 0===r?16:r,o=e.color,i=h(e,Qe);return t.createElement(R,Object.assign({width:n,height:n,viewBox:"0 0 64 64",color:o,xmlns:"http://www.w3.org/2000/svg",className:"_icon"},i),t.createElement("g",{id:"Text-files"},t.createElement("path",{d:"M53.9791489,9.1429005H50.010849c-0.0826988,0-0.1562004,0.0283995-0.2331009,0.0469999V5.0228\n\t\tC49.7777481,2.253,47.4731483,0,44.6398468,0h-34.422596C7.3839517,0,5.0793519,2.253,5.0793519,5.0228v46.8432999\n\t\tc0,2.7697983,2.3045998,5.0228004,5.1378999,5.0228004h6.0367002v2.2678986C16.253952,61.8274002,18.4702511,64,21.1954517,64\n\t\th32.783699c2.7252007,0,4.9414978-2.1725998,4.9414978-4.8432007V13.9861002\n\t\tC58.9206467,11.3155003,56.7043495,9.1429005,53.9791489,9.1429005z M7.1110516,51.8661003V5.0228\n\t\tc0-1.6487999,1.3938999-2.9909999,3.1062002-2.9909999h34.422596c1.7123032,0,3.1062012,1.3422,3.1062012,2.9909999v46.8432999\n\t\tc0,1.6487999-1.393898,2.9911003-3.1062012,2.9911003h-34.422596C8.5049515,54.8572006,7.1110516,53.5149002,7.1110516,51.8661003z\n\t\t M56.8888474,59.1567993c0,1.550602-1.3055,2.8115005-2.9096985,2.8115005h-32.783699\n\t\tc-1.6042004,0-2.9097996-1.2608986-2.9097996-2.8115005v-2.2678986h26.3541946\n\t\tc2.8333015,0,5.1379013-2.2530022,5.1379013-5.0228004V11.1275997c0.0769005,0.0186005,0.1504021,0.0469999,0.2331009,0.0469999\n\t\th3.9682999c1.6041985,0,2.9096985,1.2609005,2.9096985,2.8115005V59.1567993z"}),t.createElement("path",{d:"M38.6031494,13.2063999H16.253952c-0.5615005,0-1.0159006,0.4542999-1.0159006,1.0158005\n\t\tc0,0.5615997,0.4544001,1.0158997,1.0159006,1.0158997h22.3491974c0.5615005,0,1.0158997-0.4542999,1.0158997-1.0158997\n\t\tC39.6190491,13.6606998,39.16465,13.2063999,38.6031494,13.2063999z"}),t.createElement("path",{d:"M38.6031494,21.3334007H16.253952c-0.5615005,0-1.0159006,0.4542999-1.0159006,1.0157986\n\t\tc0,0.5615005,0.4544001,1.0159016,1.0159006,1.0159016h22.3491974c0.5615005,0,1.0158997-0.454401,1.0158997-1.0159016\n\t\tC39.6190491,21.7877007,39.16465,21.3334007,38.6031494,21.3334007z"}),t.createElement("path",{d:"M38.6031494,29.4603004H16.253952c-0.5615005,0-1.0159006,0.4543991-1.0159006,1.0158997\n\t\ts0.4544001,1.0158997,1.0159006,1.0158997h22.3491974c0.5615005,0,1.0158997-0.4543991,1.0158997-1.0158997\n\t\tS39.16465,29.4603004,38.6031494,29.4603004z"}),t.createElement("path",{d:"M28.4444485,37.5872993H16.253952c-0.5615005,0-1.0159006,0.4543991-1.0159006,1.0158997\n\t\ts0.4544001,1.0158997,1.0159006,1.0158997h12.1904964c0.5615025,0,1.0158005-0.4543991,1.0158005-1.0158997\n\t\tS29.0059509,37.5872993,28.4444485,37.5872993z"})))};et.toString=function(){return"._icon"};var tt=["children","className","color"],rt=w("span",{margin:0,display:"inline-block",variants:{variant:{h1:{fontSize:"$36",fontWeight:"$700","@md":{fontSize:"$40"},"@lg":{fontSize:"$48"}},h2:{fontSize:"$32",fontWeight:"$700","@md":{fontSize:"$36"},"@lg":{fontSize:"$40"}},h3:{fontSize:"$20",fontWeight:"$700","@md":{fontSize:"$24"},"@lg":{fontSize:"$32"}},h4:{fontSize:"$18",fontWeight:"$600","@md":{fontSize:"$20"},"@lg":{fontSize:"$24"}},h5:{fontSize:"$16",fontWeight:"$600"},h6:{fontSize:"$14",fontWeight:"$500","@md":{fontSize:"$16"},"@lg":{fontSize:"$18"}},title:{fontSize:"$14",fontWeight:"$500","@md":{fontSize:"$15"}},body1:{fontSize:"$14",fontWeight:"$400","@md":{fontSize:"$16"},"@lg":{fontSize:"$18"}},body2:{fontSize:"$14",fontWeight:"$400"},body3:{fontSize:"$12",fontWeight:"$400"},caption:{fontSize:"$10",fontWeight:"$400","@lg":{fontSize:"$12"}}},align:{center:{textAlign:"center"},left:{textAlign:"left"},right:{textAlign:"right"}},noWrap:{true:{whiteSpace:"nowrap"}},ml:{2:{marginLeft:"$2"},4:{marginLeft:"$4"},8:{marginLeft:"$8"},12:{marginLeft:"$12"}},mt:{2:{marginTop:"$2"},4:{marginTop:"$4"},8:{marginTop:"$8"},12:{marginTop:"$12"}},mr:{2:{marginRight:"$2"},4:{marginRight:"$4"},8:{marginRight:"$8"},12:{marginRight:"$12"}},mb:{2:{marginBottom:"$2"},4:{marginBottom:"$4"},8:{marginBottom:"$8"},12:{marginBottom:"$12"}}}});function nt(e){var t=e.children,n=e.className,o=e.color,i=h(e,tt),a=o?{color:o.startsWith("$")?o:"$"+o}:{color:"$foreground"};return r.createElement(rt,Object.assign({className:"_typography _text "+(n||""),css:a},i),t)}nt.toString=function(){return"._typography"};var ot=w("div",{position:"relative",width:"$28",height:"$28",variants:{direction:{vertical:{margin:"auto"},horizontal:{}}}}),it=w("img",{width:"$28",height:"$28",borderRadius:"50%"}),at=w("div",{position:"absolute",right:-4,bottom:-4,width:"$16",height:"$16",padding:"$2",borderRadius:"50%",backgroundColor:"$background",border:"1px solid $neutrals400",img:{width:"100%",display:"block"}}),lt=w("div",{display:"flex",variants:{direction:{horizontal:{alignItems:"center"},vertical:{flexDirection:"column",textAlign:"center",justifyContent:"center"}},success:{true:{filter:"none"},false:{filter:"grayscale(100%)"}}}}),ct=w("div",{variants:{pl:{true:{paddingLeft:"$4","@lg":{paddingLeft:"$8"}},false:{paddingTop:"$8"}}}}),st=w(nt,{color:"$neutrals600",display:"block",paddingLeft:"$8"});function dt(e){var t=e.chainLogo,n=e.amount,o=e.symbol,i=e.blockchain,a=e.estimatedAmount,l=e.success,c=e.direction,s=void 0===c?"horizontal":c;return r.createElement(lt,{direction:s,success:void 0===l||l},r.createElement(ot,{direction:s},r.createElement(it,{src:e.logo,alt:o}),r.createElement(at,null,r.createElement("img",{src:t,alt:i}))),r.createElement(ct,{pl:"horizontal"===s},n&&r.createElement(nt,{noWrap:!0,variant:"vertical"===s?"body2":"title"},n),!n&&a&&r.createElement(nt,{noWrap:!0,variant:"vertical"===s?"body2":"title",color:"$neutrals600"},a)," ",r.createElement(nt,{variant:"vertical"===s?"body2":"title",noWrap:!0},o),r.createElement(st,{noWrap:!0,variant:"caption",color:"$neutrals800"},"on ",i)))}var ut=w("div",{borderRadius:"$5",backgroundColor:"$neutrals300",background:"linear-gradient(to right, rgba(130, 130, 130, 0.2) 8%, rgba(130, 130, 130, 0.3) 18%, rgba(130, 130, 130, 0.2) 33%)",backgroundSize:"800px 100px",animation:k({"0%":{backgroundPosition:"-468px 0"},"100%":{backgroundPosition:"468px 0"}})+" 2s infinite ease-out",variants:{width:{16:{width:"$16"},20:{width:"$20"},24:{width:"$24"},36:{width:"$36"},48:{width:"$48"}},height:{16:{height:"$16"},20:{height:"$20"},24:{height:"$24"},36:{height:"$36"},48:{height:"$48"},94:{height:94}}}});function mt(e){var t=e.width,n=e.height;return r.createElement(ut,{width:void 0===t?20:t,height:void 0===n?20:n})}var pt=w("div",{borderRadius:"50%",position:"relative",border:"2px solid $neutrals300",borderRight:"2px solid",animation:k({"100%":{transform:"rotate(360deg)"}})+" 1.5s linear infinite",margin:"0px $8",variants:{color:{primary:{borderRightColor:"$primary"},error:{borderRightColor:"$error"},warning:{borderRightColor:"$warning"},success:{borderRightColor:"$success"},black:{borderRightColor:"$black"},white:{borderRightColor:"$white"}},size:{16:{width:"$16",height:"$16"},20:{width:"$20",height:"$20"},24:{width:"$24",height:"$24"}}}});function gt(e){var t=e.size,n=e.color;return r.createElement(pt,{size:void 0===t?16:t,color:void 0===n?"primary":n})}var ht=w(n.Trigger,{border:0,padding:0,backgroundColor:"transparent"}),vt=w(n.Content,{borderRadius:"$5",padding:"$4 $8",fontSize:"$14",animationDuration:"400ms",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",willChange:"transform, opacity",variants:{color:{primary:{backgroundColor:"$primary",color:"$white"},error:{backgroundColor:"$error",color:"$white"},warning:{backgroundColor:"$warning",color:"$white"},success:{backgroundColor:"$success",color:"$white"},gray:{backgroundColor:"$neutrals300",color:"$black"},black:{backgroundColor:"$black",color:"$white"},white:{backgroundColor:"$white",color:"$black"}}}}),ft=w(n.Arrow,{variants:{color:{primary:{fill:"$primary"},error:{fill:"$error"},warning:{fill:"$warning"},success:{fill:"$success"},gray:{fill:"$neutrals300"},black:{fill:"$black"},white:{fill:"$white"}}}}),xt=w("div",{display:"inline-block"});function Et(e){var t=e.content,o=e.side,i=void 0===o?"top":o,a=e.color,l=void 0===a?"gray":a;return r.createElement(n.Provider,null,r.createElement(n.Root,null,r.createElement(ht,{asChild:!0},r.createElement(xt,null,e.children)),r.createElement(n.Portal,null,r.createElement(vt,{color:l,side:i,sideOffset:5},t,r.createElement(ft,{color:l})))))}var $t=w("span",{width:"10px",height:"10px",backgroundColor:"$primary",borderRadius:"99999px"}),wt=["size"],bt=w("div",{display:"flex",justifyContent:"center",alignItems:"center",".image":{width:"100%",height:"100%",objectFit:"contain"}});function yt(e){var t=e.size,n=h(e,wt);return r.createElement(bt,{css:{width:t+"px",height:t+"px"}},r.createElement("img",Object.assign({className:"image"},n)))}var kt,Ct,zt,St,Lt=w("div",{borderRadius:"$5",border:"1px solid $neutrals300",display:"flex",alignItems:"center",minHeight:126,justifyContent:"space-between"}),Rt=w(nt,{color:"$error"}),It=w("div",{display:"flex",alignItems:"center",margin:"0 auto",overflowX:"auto",overflowY:"hidden",alignSelf:"stretch",padding:"$4","@md":{padding:"$8"}}),Mt=w("div",{height:"0",width:"$20",border:"1px dashed $foreground",borderRadius:"inherit","@lg":{width:"$32"}}),jt=w("hr",{width:"100%",border:"1px solid $neutrals400",margin:"$8 0"}),Bt=w("div",{position:"relative"}),Nt=w("div",{width:"$6",height:"$6",backgroundColor:"$foreground",position:"absolute",top:"45%",right:-5,marginLeft:"$8",borderRadius:"50%","@md":{width:"$8",height:"$8",right:-8,top:"45%"}}),Wt=w("div",{width:"0px",height:"0px",borderTop:"5px solid transparent",borderBottom:"5px solid transparent",borderLeft:"5px solid $foreground"}),Ft=k({"0%":{opacity:1},"50%":{opacity:.3},"100%":{opacity:1}}),_t=w("div",{backgroundColor:"$neutrals300",borderRadius:"5px",margin:"$4",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"$4","@md":{padding:"$8",margin:"$8"}}),Tt=w("div",{display:"flex",flexDirection:"column",alignItems:"center",variants:{warning:{true:{animation:Ft+" 2s ease-in-out infinite"}}}}),Ot=w(nt,{variants:{warning:{true:{color:"$warning300"}}}}),At=w("div",{padding:"$4","@md":{padding:"$8"}}),Zt=w("div",{display:"flex",justifyContent:"center",alignItems:"center"}),Ht=["children","loading","disabled","prefix","suffix","align","flexContent"],Dt=w("button",{borderRadius:"$5",fontSize:"$16",fontWeight:"$400",cursor:"pointer",padding:"0 $12",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.35s",border:"0","&:active":{transform:"scale(0.95)"},variants:{align:{start:{display:"flex",width:"100%"},grow:{display:"flex",width:"100%"}},size:{compact:{},free:{},small:{height:"$32"},medium:{height:"$40"},large:{height:"$48"}},variant:{contained:{backgroundColor:"$neutrals300",color:"$foreground",border:0,"&:hover":{backgroundColor:"$neutrals200"},"&:disabled":{background:"$neutrals400"},"&:disabled:hover":{background:"$neutrals400",transform:"unset"}},outlined:{backgroundColor:"$background",border:1,borderStyle:"solid",borderColor:"$neutrals400",color:"$foreground","&:hover":{borderColor:"$neutrals600"},"&:disabled":{borderColor:"$neutrals300",color:"$neutrals400"}},ghost:(kt={color:"$foreground","&:hover":{backgroundColor:"$neutrals200"},"&:disabled":{color:"$neutrals400 !important"},background:"transparent",border:0},kt["& "+nt]={color:"inherit"},kt)},fullWidth:{true:{width:"100%"}},loading:{true:{}},type:{primary:{},error:{},warning:{},success:{}}},compoundVariants:[{type:"primary",variant:"contained",css:{background:"$primary",color:"$white","&:hover":{background:"$primary700"},"&:visited":{background:"$primary900"},"&:focus":{background:"$primary600"}}},{type:"primary",variant:"outlined",css:{color:"$primary !important",borderColor:"$primary","&:hover":{color:"$primary700 !important",borderColor:"$primary700 !important"},"&:visited":{color:"$primary900 !important",borderColor:"$primary900 !important"},"&:focus":{color:"$primary600 !important",borderColor:"$primary600 !important"}}},{type:"primary",variant:"ghost",css:{color:"$primary","&:hover":{color:"$primary700"},"&:visited":{color:"$primary900"},"&:focus":{color:"$primary600"}}},{type:"error",variant:"contained",css:(Ct={background:"$error",$$color:"$colors$background"},Ct["."+S+" &"]={$$color:"$colors$foreground"},Ct.color="$$color !important",Ct["&:hover"]={background:"$error300"},Ct["&:visited"]={background:"$error700"},Ct["&:focus"]={background:"$error700"},Ct)},{type:"error",variant:"outlined",css:{color:"$error !important",borderColor:"$error","&:hover":{color:"$error300 !important",borderColor:"$error300 !important"},"&:visited":{color:"$error700 !important",borderColor:"$error700 !important"},"&:focus":{color:"$error700 !important",borderColor:"$error700 !important"}}},{type:"error",variant:"ghost",css:{color:"$error","&:hover":{color:"$error300"},"&:visited":{color:"$error700"},"&:focus":{color:"$error700"}}},{type:"warning",variant:"contained",css:(zt={background:"$warning",$$color:"$colors$background"},zt["."+S+" &"]={$$color:"$colors$foreground"},zt.color="$$color !important",zt["&:hover"]={background:"$warning300"},zt["&:visited"]={background:"$warning700"},zt["&:focus"]={background:"$warning700"},zt)},{type:"warning",variant:"outlined",css:{color:"$warning !important",borderColor:"$warning","&:hover":{color:"$warning300 !important",borderColor:"$warning300 !important"},"&:visited":{color:"$warning700 !important",borderColor:"$warning700 !important"},"&:focus":{color:"$warning700 !important",borderColor:"$warning700 !important"}}},{type:"warning",variant:"ghost",css:{color:"$warning","&:hover":{color:"$warning300"},"&:visited":{color:"$warning700"},"&:focus":{color:"$warning700"}}},{type:"success",variant:"contained",css:(St={background:"$success",$$color:"$colors$background"},St["."+S+" &"]={$$color:"$colors$foreground"},St.color="$$color !important",St["&:hover"]={background:"$success300"},St["&:visited"]={background:"$success700"},St["&:focus"]={background:"$success700"},St)},{type:"success",variant:"outlined",css:{color:"$success !important",borderColor:"$success","&:hover":{color:"$success300 !important",borderColor:"$success300 !important"},"&:visited":{color:"$success700 !important",borderColor:"$success700 !important"},"&:focus":{color:"$success700 !important",borderColor:"$success700 !important"}}},{type:"success",variant:"ghost",css:{color:"$success","&:hover":{color:"$success300"},"&:visited":{color:"$success700"},"&:focus":{color:"$success700"}}},{size:"compact",css:{padding:"$2 $4",fontSize:"$12"}}],defaultVariants:{size:"medium",variant:"contained"}}),qt=w("div",{flex:1,variants:{align:{start:{textAlign:"left"},grow:{textAlign:"center"}},ml:{true:{marginLeft:"$8"}},mr:{true:{marginRight:"$8"}},flexContent:{true:{display:"flex",alignItems:"center"}}}});function Vt(e){var t=e.children,n=e.loading,o=e.disabled,i=e.prefix,a=e.suffix,l=e.align,c=e.flexContent,s=h(e,Ht);return r.createElement(Dt,Object.assign({disabled:n||o},s,{align:l}),i,t&&r.createElement(qt,{align:l,ml:!!i,mr:!!a&&!n,flexContent:c,className:"_text"},t),n&&r.createElement(gt,{size:16,color:s.type}),a)}var Pt=w("div",{display:"grid",gap:".5rem",gridTemplateColumns:" repeat(2, minmax(0, 1fr))",alignContent:"baseline",width:"100%",height:"100%"}),Gt=w("div",{paddingRight:"$4"});function Yt(e){var n=e.list,o=e.onChange,i=e.multiSelect,a=e.selectedList,l=t.useState(e.selected),c=l[0],s=l[1],d=function(e){s(e),o(e)},u=function(e){return i&&a?"all"===a||a.findIndex((function(t){return e===t.name}))>-1:e===(null==c?void 0:c.name)};return r.createElement(Pt,null,n.map((function(e,t){return r.createElement(Vt,{type:u(e.name)?"primary":void 0,variant:"outlined",size:"large",prefix:r.createElement(Gt,null,r.createElement(yt,{size:24,src:e.logo})),suffix:u(e.name)?r.createElement($t,null):void 0,align:"start",onClick:d.bind(null,e),key:t},r.createElement(nt,{variant:"body2"},e.displayName))})))}var Ut=w("div",{variants:{size:{4:{height:"$4"},8:{height:"$8"},12:{height:"$12"},16:{height:"$16"},18:{height:"$18"},20:{height:"$20"},24:{height:"$24"},32:{height:"$32"}}}});function Xt(e){var t=e.size;return r.createElement(Ut,{size:void 0===t?12:t})}var Jt=w("div",{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"$8 0",position:"relative"}),Kt=w(Vt,{padding:"$8"});function Qt(e){return r.createElement(Jt,null,e.onBack?r.createElement(Kt,{variant:"ghost",size:"small",onClick:e.onBack},r.createElement(he,{size:24})):null,e.prefix,r.createElement(nt,{variant:"h4"},e.title),e.suffix||r.createElement("div",null))}var er=["label","prefix","suffix","children","size","style"],tr=w("div",{backgroundColor:"$background",padding:"1px",boxSizing:"border-box",border:"1px solid $neutrals400",borderRadius:"$5",height:"$48",display:"flex",flexGrow:1,position:"relative",alignItems:"center",color:"$foreground",overflowX:"hidden",transition:"border-color ease .3s","&:focus-within":{borderColor:"$success",outline:"1px solid $success"},variants:{size:{small:{"& input":{fontSize:"$14"},height:"$32"},medium:{"& input":{fontSize:"$15"},height:"$40"},large:{"& input":{fontSize:"$16"},height:"$48"}},disabled:{true:{backgroundColor:"$neutrals300",cursor:"not-allowed",filter:"grayscale(100%)"}},prefix:{true:{paddingLeft:"$16"},false:{paddingLeft:"$0"}},suffix:{true:{paddingRight:"$16"},false:{paddingRight:"$0"}}},defaultVariants:{size:"medium"}}),rr=w("input",{color:"$foreground",paddingLeft:"$16",paddingRight:"$16",flexGrow:1,width:"100%",border:"none",borderRadius:"$5",outline:"none",backgroundColor:"transparent","-webkit-appearance":"none",margin:0,"&:disabled":{cursor:"not-allowed"},"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{"-webkit-appearance":"none",margin:0},'&[type="number"]':{"-moz-appearance":"textfield"}}),nr=w("label",{display:"inline-block",fontSize:"$14",color:"$foreground",marginBottom:"$4"}),or=r.forwardRef((function(e,t){var n=e.label,o=e.prefix,i=e.suffix,a=e.size,l=e.style,c=h(e,er);return r.createElement(r.Fragment,null,n&&r.createElement(nr,Object.assign({className:"_text"},c.id&&{htmlFor:c.id}),n),r.createElement(tr,{disabled:c.disabled,prefix:!!o,suffix:!!i,size:a,style:l,className:"_text"},o||null,r.createElement(rr,Object.assign({className:"_text"},c,{spellCheck:!1,ref:t})),i||null))})),ir=w("div",{overflow:"hidden",display:"flex",flexDirection:"column",flex:"1",padding:"0 $4"}),ar=w("div",{padding:"1px"});function lr(e){var n=e.title,o=e.Footer,i=e.TopButton,a=e.onBack,l=e.hasHeader,c=void 0===l||l,s=t.useState(""),d=s[0],u=s[1];return r.createElement(r.Fragment,null,c&&r.createElement(Qt,{onBack:a,title:n||"",suffix:i}),r.createElement(ir,null,e.textField&&r.createElement(ar,null,r.createElement(or,{size:"large",prefix:r.createElement(le,{size:24}),placeholder:e.textFieldPlaceholder,onChange:function(e){return u(e.target.value)},value:d,autoFocus:!0}),r.createElement(Xt,{size:16})),e.textField&&(null==e.children?void 0:e.children(d)),!e.textField&&e.children),o)}function cr(e,t){return e.toLowerCase().indexOf(t.toLowerCase())>-1}function sr(e,t){void 0===t&&(t=4);var r=parseFloat(e);if(isNaN(r))return e;var n=Math.pow(10,t);return(Math.round(r*n)/n).toString()}var dr=w("div",{variants:{size:{4:{},8:{},12:{},16:{},18:{},20:{},24:{}},direction:{vertical:{},horizontal:{}}},compoundVariants:[{size:4,direction:"horizontal",css:{width:"$4"}},{size:4,direction:"vertical",css:{height:"$4"}},{size:8,direction:"horizontal",css:{width:"$8"}},{size:8,direction:"vertical",css:{height:"$8"}},{size:12,direction:"horizontal",css:{width:"$12"}},{size:12,direction:"vertical",css:{height:"$12"}},{size:16,direction:"horizontal",css:{width:"$16"}},{size:16,direction:"vertical",css:{height:"$16"}},{size:18,direction:"horizontal",css:{width:"$18"}},{size:18,direction:"vertical",css:{height:"$18"}},{size:20,direction:"horizontal",css:{width:"$20"}},{size:20,direction:"vertical",css:{height:"$20"}},{size:24,direction:"horizontal",css:{width:"$24"}},{size:24,direction:"vertical",css:{height:"$24"}}]});function ur(e){var t=e.size,n=e.direction;return r.createElement(dr,{size:void 0===t?12:t,direction:void 0===n?"horizontal":n})}var mr=w("div",{width:"100%",padding:"$16",borderRadius:"$5",backgroundColor:"$neutrals300",color:"$neutrals800",".main":{display:"flex",alignItems:"center"},".footer":{paddingTop:"$8"},"&.hasIcon .footer":{paddingLeft:"$32"},variants:{type:{primary:{color:"$primary200"},secondary:{color:"$foreground"},success:{color:"$success300"},warning:{color:"$warning500"},error:{color:"$error300"}}}});function pr(e){var t=e.type,n=e.children,o=e.title,i=["error","success","warning"].includes(t);return r.createElement(mr,{type:t,className:i?"hasIcon":""},r.createElement("div",{className:"main"},i&&r.createElement(r.Fragment,null,r.createElement("div",{style:{width:"32px",display:"flex",justifyContent:"center",alignItems:"center"}},"success"===t&&r.createElement(D,{color:t,size:24}),"warning"===t&&r.createElement(U,{color:t,size:24}),"error"===t&&r.createElement(_,{color:t,size:24}),r.createElement(ur,{size:4}))),r.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"start",flexDirection:"column",width:"100%"}},o&&r.createElement(r.Fragment,null,r.createElement(nt,{className:"title",variant:"title",color:t},o),!!n&&r.createElement(ur,{size:4,direction:"vertical"})),n)),e.footer?r.createElement("div",{className:"footer"},e.footer):null)}function gr(){return r.createElement(pr,{type:"error",title:" Error connecting server, please reload the app and try again."})}function hr(e){var t=e.searchedFor;return r.createElement(pr,{type:"secondary",title:e.catergory+" "+(t?"'"+t+"'":"")+" not found."})}function vr(e){var t=e.itemCount,n=e.hasNextPage,l=e.loadNextPage,c=e.Item,s=e.innerElementType,d=e.size,u=function(e){return!n||e<t};return r.createElement(a,null,(function(e){var a=e.width,m=e.height;return r.createElement(i,{isItemLoaded:u,itemCount:n?t+1:t,loadMoreItems:l,threshold:1},(function(e){return r.createElement(o.VariableSizeList,{innerElementType:s,ref:e.ref,itemSize:function(){return d},itemCount:t,height:m||0,width:a||0,onItemsRendered:e.onItemsRendered},(function(e){var t=e.index,n=e.style;return u(t)?r.createElement(c,{index:t,style:n}):null}))}))}))}var fr=w("div",{paddingRight:"$16"}),xr=w("div",{display:"flex",flexDirection:"column"}),Er=w("div",{display:"flex",flexDirection:"column",alignItems:"flex-end"});function $r(e){var t,n=e.token,o=e.style,i=e.onClick,a=e.selected;return r.createElement("div",{style:g({display:"flex",alignItems:"center",width:"100%"},o,{height:"48px",top:parseFloat(null==o?void 0:o.top)+0+"px",padding:"0 4px"})},r.createElement(Vt,{variant:"outlined",size:"large",align:"start",onClick:i.bind(null,n),type:a?"primary":void 0,prefix:r.createElement(fr,null,r.createElement(yt,{src:n.image,size:32})),suffix:(null==(t=n.balance)?void 0:t.amount)&&r.createElement(Er,null,r.createElement(nt,{variant:"body2"},n.balance.amount),r.createElement(nt,{variant:"caption"},n.balance.usdValue+"$"))},r.createElement(xr,null,r.createElement(nt,{variant:"body1"},n.symbol),r.createElement(nt,{variant:"caption",color:"neutrals600"},n.name))))}var wr=["style"];function br(e){var n=e.list,o=e.searchedText,i=e.onChange,a=e.multiSelect,l=e.selectedList,c=t.useState(e.selected),s=c[0],d=c[1],u=function(e){d(e),i(e)},m=t.useState(!0),p=m[0],v=m[1],f=t.useState(n),x=f[0],E=f[1];t.useEffect((function(){E(n.slice(0,20))}),[o,n]),t.useEffect((function(){v(n.length>x.length)}),[x.length]);var $=t.forwardRef((function(e,t){var n=e.style,o=h(e,wr);return r.createElement("div",Object.assign({ref:t,style:g({},n,{height:parseFloat(null==n?void 0:n.height)+16+"px"})},o))}));return r.createElement(vr,{Item:function(e){var t,n=e.index;return r.createElement($r,{token:x[n],style:e.style,onClick:u,selected:(t=x[n],a&&l?l.map((function(e){return e.symbol+e.address})).indexOf(t.symbol+t.address)>-1:(null==s?void 0:s.symbol)===t.symbol&&(null==s?void 0:s.address)===t.address)})},hasNextPage:p,itemCount:x.length,loadNextPage:function(){E(n.slice(0,x.length+20))},innerElementType:$,size:56})}var yr=w("div",{display:"flex",justifyContent:"center",width:"100%",paddingTop:"33%",flex:1}),kr=w("div",{overflowY:"auto",padding:"0 $4"}),Cr=["label","id"],zr=w("div",{display:"flex",alignItems:"center"}),Sr=w(l.Root,{borderRadius:"5px",width:20,padding:0,height:20,border:"1px solid $foreground",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"$2",backgroundColor:"$neutral-100"}),Lr=w("label",{color:"$foreground",fontSize:"$m",marginLeft:"$8"}),Rr=w("div",{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"$5",padding:"$4 $8",height:"32",fontSize:"$14",cursor:"pointer",transition:"all 0.35s",color:"$foreground","&:hover":{backgroundColor:"$success700",color:"$background"},variants:{selected:{true:{backgroundColor:"$success",color:"$background"},false:{backgroundColor:"$background"}}}});function Ir(e){return r.createElement(Rr,{selected:e.selected,onClick:e.onClick,style:e.style},e.prefix||null,e.label,e.suffix||null)}var Mr,jr=w("div",{position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",top:"0",left:"0",width:"100vw",height:"100vh",backgroundColor:"rgba(0,0,0,.1)"}),Br=w("div",{backgroundColor:"$background",borderRadius:"$10",padding:"$16 $16",display:"flex",flexDirection:"column",boxShadow:"$s",zIndex:10}),Nr=w("div",{display:"flex",alignItems:"center"}),Wr=w("div",{display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",marginBottom:"$16"});function Fr(e){var n=e.title,o=e.content,i=e.open,a=e.onClose,l=e.containerStyle,s=e.action;return t.useEffect((function(){document.body.style.overflow=i?"hidden":"unset"}),[i]),r.createElement(r.Fragment,null,i&&c.createPortal(r.createElement(jr,{onClick:function(e){e.target===e.currentTarget&&a()}},r.createElement(Br,{style:l},r.createElement(Wr,null,r.createElement(nt,{variant:"h4"},n),r.createElement(Nr,null,s,r.createElement(Xe,{size:24,onClick:a}))),o)),document.body))}(Mr=exports.WalletState||(exports.WalletState={})).NOT_INSTALLED="not installed",Mr.DISCONNECTED="disconnected",Mr.CONNECTING="connecting",Mr.CONNECTED="connected";var _r=w("span",{display:"flex",justifyContent:"center",alignItems:"center"}),Tr=function(e){var n=e.walletState;return r.createElement(t.Fragment,null,n!==exports.WalletState.DISCONNECTED&&r.createElement(_r,null,n===exports.WalletState.NOT_INSTALLED&&r.createElement("a",{href:s.detectInstallLink(e.installLink),target:"_blank"},r.createElement(fe,{size:24,color:"success"})),n===exports.WalletState.CONNECTING&&r.createElement(gt,null),n===exports.WalletState.CONNECTED&&r.createElement(Ve,null)))},Or=w("div",{paddingRight:"$12","& img":{borderRadius:"50%"}}),Ar=w("div",{display:"flex",flexDirection:"column"}),Zr=w(Vt,{variants:{type:{primary:{outline:"1px solid $primary",borderColor:"$primary","&:hover":{borderColor:"$primary"}}}}});function Hr(e){var t=e.name,n=e.type,o=e.state,i=e.onClick,a=e.installLink;return r.createElement(Zr,{type:o===exports.WalletState.CONNECTED?"primary":void 0,disabled:o==exports.WalletState.CONNECTING,onClick:function(){o===exports.WalletState.NOT_INSTALLED?window.open(s.detectInstallLink(a),"_blank"):i(n)},align:"start",variant:"outlined",size:"large",prefix:r.createElement(Or,null,r.createElement(yt,{src:e.image,size:24})),suffix:r.createElement(Tr,{walletState:o,installLink:a})},r.createElement(Ar,null,r.createElement(nt,{variant:"h5",noWrap:!1},t),o===exports.WalletState.CONNECTED?r.createElement(nt,{variant:"caption",noWrap:!1,color:"primary"},"Connected"):null))}var Dr=w("div",{display:"grid",gap:"$8",gridTemplateColumns:"repeat(2, minmax(0, 1fr))"}),qr=w(d.Root,{boxSizing:"border-box",boxShadow:"none",borderStyle:"solid",width:"42px",height:"22px",backgroundColor:"$neutrals600",borderColor:"$neutrals600",borderRadius:"99999px",position:"relative",padding:"0",cursor:"pointer",'&[data-state="checked"]':{backgroundColor:"$success",borderColor:"$success"},"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)"}),Vr=w(d.Thumb,{position:"absolute",top:"0",boxSizing:"border-box",display:"block",width:"18px",height:"18px",backgroundColor:"$white",transition:" transform 300ms",borderRadius:"999999px",willChange:"transform",'&[data-state="checked"]':{transform:"translateX(20px)"}});function Pr(e){return r.createElement(qr,{checked:e.checked,onCheckedChange:e.onChange},r.createElement(Vr,null))}var Gr=w("div",{variants:{loaded:{true:{overflowY:"auto",padding:"0 $4"}}}}),Yr=w("div",{position:"sticky",display:"flex",justifyContent:"space-between",alignItems:"center",top:"0",backgroundColor:"$background",zIndex:"9999",paddingTop:"$8",paddingBottom:"$8"}),Ur=w("div",{paddingRight:"$16"}),Xr=w("div",{display:"flex",justifyContent:"center"});function Jr(e){var n=e.list,o=e.onChange,i=e.listContainerStyle,a=e.loadingStatus,l=e.searchedFor,c=t.useState(n.filter((function(e){return e.selected}))),s=c[0],d=c[1],u=function(e){e.selected=!e.selected,d((function(t){return e.selected?[].concat(t,[e]):t.filter((function(t){return t.title!=e.title}))})),o(e)},m=function(e){return!!s.find((function(t){return e.title===t.title}))};t.useEffect((function(){d(n.filter((function(e){return e.selected})))}),[n]);var p,g={bridge:(p=n).filter((function(e){return"BRIDGE"===e.type||"AGGREGATOR"===e.type})),exchange:p.filter((function(e){return"DEX"===e.type}))},h=g.bridge,v=g.exchange,f=h.length,x=v.length,E=h.filter(m).length,$=v.filter(m).length;return r.createElement(Gr,{style:i,loaded:"success"===a},r.createElement("div",null,r.createElement(Yr,null,r.createElement(nt,{variant:"h5"},"Bridges"),r.createElement(nt,{variant:"body1",color:"neutrals800"},E===f?f:E+" / "+f)),r.createElement(ur,{size:12,direction:"vertical"}),"loading"===a&&r.createElement(Xr,null,r.createElement(gt,{size:24})),"failed"===a&&r.createElement(gr,null),"success"===a&&r.createElement(r.Fragment,null,f?h.map((function(e,t){return r.createElement(Kr,{liquiditySource:e,key:t,selected:m(e),onChange:u})})):r.createElement(hr,{catergory:"Bridge",searchedFor:l}))),r.createElement("div",null,r.createElement(Yr,null,r.createElement(nt,{variant:"h5"},"Exchanges"),r.createElement(nt,{variant:"body1",color:"neutrals800"},$===x?x:$+" / "+x)),r.createElement(ur,{size:12,direction:"vertical"}),"loading"===a&&r.createElement(Xr,null,r.createElement(gt,{size:24})),"failed"===a&&r.createElement(gr,null),"success"==a&&r.createElement(r.Fragment,null,x?v.map((function(e,t){return r.createElement(Kr,{liquiditySource:e,key:t,selected:m(e),onChange:u})})):r.createElement(hr,{catergory:"Exchange",searchedFor:l}))))}var Kr=function(e){var t=e.liquiditySource,n=e.selected,o=e.onChange;return r.createElement(Vt,{size:"large",align:"start",variant:"outlined",prefix:r.createElement(Ur,null,r.createElement(yt,{src:t.logo,size:20})),suffix:r.createElement(Pr,{checked:n}),style:{marginBottom:"12px"},onClick:o.bind(null,t)},r.createElement(nt,{variant:"body1"},t.title))},Qr=function(e,t){return e.filter((function(e){return cr(e.title,t||"")}))},en=w("div",{display:"flex",flexWrap:"wrap"}),tn=w("div",{width:12,height:12,borderRadius:6,border:"1px solid $neutrals400",position:"absolute",top:12,right:12,variants:{checked:{true:{borderColor:"$success"},false:{borderColor:"$neutrals400"}}}}),rn=w("div",{width:6,margin:"20% auto",height:6,borderRadius:3,variants:{checked:{true:{backgroundColor:"$success"},false:{backgroundColor:"$neutrals400"}}}}),nn=w("div",{border:"1.5px solid",borderRadius:"$5",padding:"$12",flexBasis:"calc(33.33% - 10px)",margin:5,display:"flex",flexDirection:"column",justifyContent:"space-between",width:124,height:92,cursor:"pointer",position:"relative",variants:{checked:{true:{borderColor:"$success",color:"$success"},false:{borderColor:"$neutrals400",color:"$neutrals400"}}}});function on(e){var n,o=e.list,i=e.onChange,a=t.useState((null==(n=o.find((function(e){return e.selected})))?void 0:n.walletType)||""),l=a[0],c=a[1],s=function(e){c(e.walletType),i(e)};return t.useEffect((function(){var e;c((null==(e=o.find((function(e){return e.selected})))?void 0:e.walletType)||"")}),[o]),r.createElement(en,null,o.map((function(e,t){var n=l===e.walletType;return r.createElement(nn,{checked:n,onClick:s.bind(null,e),key:t},r.createElement(yt,{src:e.image,alt:e.walletType,size:24}),r.createElement(nt,{variant:"body2"},e.name),r.createElement(nt,{variant:"caption"},function(e,t,r){if(void 0===t&&(t=8),void 0===r&&(r=3),!e)return null;if(e.length<2*t+r)return e;var n=Math.ceil((e.length-t)/2),o=e.length-t;return""+e.substr(n,t)+".".repeat(r)+e.substr(o)}(e.address)),r.createElement(tn,{checked:n},r.createElement(rn,{checked:n})))})))}var an=w(u.Root,{variants:{direction:{horizontal:{display:"flex",flexDirection:"row",flexWrap:"wrap"},vertical:{display:"grid",gridGap:"$24"}}}}),ln=w("div",{display:"flex",alignItems:"center",marginRight:"$8"}),cn=w(u.Item,{padding:"0",width:"20px",height:"20px",borderRadius:"100%",cursor:"pointer",backgroundColor:"$background",border:"1px solid $neutrals400","&:hover":{borderColor:"$neutrals600"}}),sn=w("div",{display:"flex"}),dn=w(u.Indicator,{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",position:"relative","&::after":{content:"",display:"block",width:"10px",height:"10px",borderRadius:"50%",backgroundColor:"$success"}}),un=w("label",{paddingLeft:"$8",cursor:"pointer",color:"$foreground"});function mn(e){var t=e.direction;return r.createElement(sn,null,r.createElement(an,{onValueChange:e.onChange,value:e.value,direction:void 0===t?"vertical":t,style:e.style},e.options.map((function(e,t){return r.createElement(ln,{key:t},r.createElement(cn,{value:e.value,id:e.value},r.createElement(dn,null)),r.createElement(un,{className:"_text",htmlFor:e.value},r.createElement(nt,{variant:"body2"},e.label)))}))))}var pn=w("div",{borderRadius:"$5",backgroundColor:"$neutrals300",padding:"$16"}),gn=w(nt,{marginBottom:"$16"}),hn=w("div",{display:"grid",rowGap:"$16",gridTemplateColumns:"repeat(auto-fill, 64px)"}),vn=w(pn,{display:"flex",justifyContent:"space-between",marginTop:"$16",cursor:"pointer"}),fn=w(pn,{display:"flex",justifyContent:"space-between",marginTop:"$16"}),xn=w(se,{marginLeft:"$8"}),En=w("div",{display:"flex",alignItems:"center",justifyContent:"center"}),$n=w(pn,{marginTop:"$16"}),wn=w("div",{display:"flex",justifyContent:"space-between",alignItems:"center",paddingBottom:"$16"}),bn=w("div",{position:"relative",display:"flex",flexDirection:"column",borderRadius:"$10",boxShadow:"$s",width:"100%",minWidth:"375px",maxWidth:"512px",padding:"$16",boxSizing:"border-box",backgroundColor:"$background",overflow:"hidden","& *":{boxSizing:"border-box",listStyleType:"none","&::-webkit-scrollbar":{width:"$8",height:"$8"},"&::-webkit-scrollbar-thumb":{backgroundColor:"$neutrals400",borderRadius:"$10"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"$neutrals500"},"&::-webkit-scrollbar-track":{backgroundColor:"$neutrals300"}},variants:{fixedHeight:{true:{height:"595px",maxHeight:"595px"},false:{height:"auto"}}}}),yn=w("div",{display:"flex",alignItems:"center",width:"160px","& .amount":{fontWeight:"bold"},"& .estimated":{color:"$neutrals600"}}),kn=w("div",{position:"relative",img:{borderRadius:"50%"},".overlay":{position:"absolute",right:-4,bottom:-4,width:"$16",height:"$16",padding:"$2",borderRadius:"50%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"$background",border:"1px solid $neutrals400"}});function Cn(e){var t=e.data,n=t.token,o=t.blockchain,i=t.amount,a=t.estimatedAmount;return r.createElement(yn,null,r.createElement(kn,null,r.createElement(yt,{src:n.logo,alt:"",size:24}),r.createElement("div",{className:"overlay"},r.createElement(yt,{src:o.logo,alt:o.name,size:12}))),r.createElement(ur,{size:8}),!!i&&r.createElement("span",{className:"amount"},e.data.amount),!i&&a&&r.createElement("span",{className:"amount estimated"},e.data.estimatedAmount),r.createElement(ur,{size:4}),n.symbol)}var zn=w("div",{position:"relative",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"$16 0",borderBottom:"1px solid $neutrals300","& > .info":{display:"flex",alignItems:"center"},".status":{textTransform:"uppercase",fontWeight:"bold",fontSize:"$12"},"&.failed .status":{color:"$error"},"&.success .status":{color:"$success"}});function Sn(e){var t=e.swap,n=e.status,o=t.steps[0],i=t.steps[t.steps.length-1];return r.createElement(Vt,{variant:"ghost",size:"free",fullWidth:!0,onClick:e.onClick.bind(null,t.requestId)},r.createElement(zn,{className:""+n},r.createElement("div",{className:"info"},r.createElement(Cn,{data:{token:{logo:o.fromLogo,symbol:o.fromSymbol},blockchain:{logo:o.fromBlockchainLogo||"",name:o.fromBlockchain},amount:sr(t.inputAmount)}}),r.createElement(ur,{size:12}),r.createElement(we,{size:12}),r.createElement(ur,{size:12}),r.createElement(Cn,{data:{token:{logo:i.toLogo,symbol:i.toSymbol},blockchain:{logo:i.toBlockchainLogo||"",name:i.toBlockchain},amount:sr(i.outputAmount||""),estimatedAmount:sr(i.expectedOutputAmountHumanReadable||"")}})),r.createElement("div",{className:"status"},"running"===n?r.createElement(gt,{size:24,color:"primary"}):n)))}var Ln=w("div",{position:"relative"}),Rn=w("div",{border:"1px solid $neutrals300",borderRadius:"$5",width:"$32",height:"$32"}),In=w("div",{position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}),Mn=w("div",{position:"absolute",zIndex:"2",variants:{place:{top:{top:"-241px"},bottom:{},left:{top:"-50%",left:"-225px"},right:{top:"-50%",right:"-225px"}}}}),jn=w("label",{display:"inline-block",fontSize:"$14",marginBottom:"$4",color:"$foreground"}),Bn=w("div",{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:9999999,backgroundColor:"rgba(0,0,0,.1)",borderRadius:"$10"}),Nn=w("div",{position:"absolute",boxShadow:"$s",background:"$background",padding:"$20",display:"flex",flexDirection:"column",justifyContent:"space-between",zIndex:9999999,borderRadius:"$10",variants:{anchor:{left:{top:0,left:0,height:"100%",minWidth:"300px",maxWidth:"90%"},right:{top:0,right:0,height:"100%",minWidth:"300px",maxWidth:"90%"},bottom:{bottom:0,width:"100%",maxHeight:"90%"},top:{top:0,width:"100%",maxHeight:"90%"}}}}),Wn=w("div",{display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",marginBottom:"$16"}),Fn=w("div",{overflowY:"auto",height:"100%"}),_n=w("footer",{width:"100%",marginTop:"$28"});function Tn(e){var t=e.content,n=e.onClose,o=e.anchor,i=e.showClose,a=void 0!==i&&i,l=e.footer,s=e.container;return r.createElement(r.Fragment,null,e.open&&s&&c.createPortal(r.createElement(Bn,{onClick:function(e){e.target===e.currentTarget&&n()}},r.createElement(Nn,{anchor:void 0===o?"bottom":o,style:e.containerStyle},r.createElement(Wn,null,r.createElement(nt,{variant:"h6"},e.title),a&&r.createElement(Xe,{size:24,onClick:n})),r.createElement(Fn,null,t),r.createElement(_n,null,l))),s))}var On=w("div",{overflowY:"auto"}),An=w("div",{paddingBottom:"$32",marginBottom:"$32",borderBottom:"1px solid $neutrals400"}),Zn=w("div",{display:"flex",alignItems:"center"}),Hn=w("div",{padding:"$16 0"}),Dn=w(Vt,{marginTop:"$16"}),qn=w("div",{paddingBottom:"$24",".title":{paddingBottom:"$8",display:"flex",alignItems:"center"},".num":{backgroundColor:"$neutrals300",display:"inline-flex",width:"24px",height:"24px",color:"$neutrals800",borderRadius:"50%",fontSize:"$14",border:"1px solid $neutrals400",justifyContent:"center",alignItems:"center"}}),Vn=w("div",{paddingBottom:"$16"}),Pn=w("div",{".group-title":{textTransform:"uppercase"}});function Gn(e){var t=e.list,n=e.onSwapClick,o=e.groupBy,i=o?o(t):[{title:"History",swaps:t}];return r.createElement(r.Fragment,null,i.filter((function(e){return e.swaps.length>0})).map((function(e,t){return r.createElement(r.Fragment,{key:t},r.createElement(Pn,null,r.createElement(nt,{variant:"body2",color:"neutrals600",className:"group-title"},e.title),e.swaps.map((function(e){return r.createElement(r.Fragment,{key:e.requestId},r.createElement(Sn,{swap:e,status:e.status,onClick:n}),r.createElement(Xt,{size:12}))}))),r.createElement(Xt,{size:24}))})))}var Yn=w("div",{overflowY:"auto"}),Un=w("div",{width:"90%",overflowWrap:"break-word",color:"$error500 !important"}),Xn=w(nt,{color:"$success500 !important"}),Jn=function(e){var n,o=e.shortMessage,i=e.detailedMessage,a=e.currentStepBlockchain,l=e.type,c=e.lastConvertedTokenInFailedSwap,s=t.useState(!1),d=s[0],u=i.long?0:150,m=!d&&i.content.length>u;return r.createElement(pr,Object.assign({type:(n=l,n&&"info"!==n?n:"secondary"),title:o},m&&{footer:r.createElement(Vt,{variant:"outlined",type:"primary",onClick:s[1].bind(null,(function(e){return!e}))},"Show more details")},!!e.switchNetwork&&{footer:r.createElement(Vt,{variant:"outlined",type:"primary",onClick:function(){(null==e?void 0:e.switchNetwork)&&e.switchNetwork().catch((function(){}))}},"Change network to ",a)}),i.content?r.createElement(Un,null,r.createElement(nt,{variant:"body2"},m&&!d?i.content.substring(0,u)+(u>0?"...":""):i.content)):null,!!c&&r.createElement(r.Fragment,null,r.createElement("p",null,r.createElement(nt,{variant:"body2"},"Don't worry, your fund is "),r.createElement(Xn,{variant:"body2"},r.createElement("b",null,"Safe"))),r.createElement("p",null,r.createElement(nt,{variant:"body2"},"It is converted to  ",r.createElement("u",null,c.outputAmount)," "),r.createElement(Xn,{variant:"body2"},r.createElement("b",null,c.symbol," ")),r.createElement(nt,{variant:"body2"},"on your "),r.createElement(Xn,{variant:"body2"},r.createElement("b",null,c.blockchain," ")),r.createElement(nt,{variant:"body2"},"wallet"))))},Kn=["pendingSwap","onBack","onCopy","isCopied","onCancel","date","onRetry","previewInputs"],Qn=w("div",{display:"flex",alignItems:"center",paddingLeft:"$4",variants:{created:{true:{filter:"grayscale(100%)"}},running:{true:{animation:Ft+" 2s ease-in-out infinite"}}}}),eo=w("div",{paddingLeft:"$16",color:"$neutrals800"}),to=w("div",{display:"flex",alignItems:"center"}),ro=w("div",{position:"relative"}),no=w("div",{width:"$8",height:"$8",backgroundColor:"$foreground",borderRadius:"4px",marginLeft:"11px"}),oo=w("div",{width:"0px",height:"0px",borderLeft:"5px solid transparent",borderRight:"5px solid transparent",borderTop:"5px solid $foreground",marginLeft:"$10"}),io=w("a",{color:"$primary",fontWeight:"$600"}),ao=w("div",{display:"flex",flexDirection:"column",paddingBottom:"$16",borderBottom:"1px solid $neutrals300"}),lo=w("div",{display:"flex",".details":{padding:"$8 0"}}),co=w("div",{display:"flex",margin:"$12 0 $12 $20"}),so=w("div",{display:"flex",alignItems:"center"}),uo=w(nt,{color:"$success",paddingLeft:"$4"}),mo=w("div",{width:"0",minHeight:"$16",marginLeft:"14px",border:"1px dashed $foreground",borderRadius:"inherit"}),po=w("div",{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"$14",padding:"$8 0",".name":{color:"$neutrals600"},".value":{display:"flex",alignItems:"center",color:"$neutrals800",justifyContent:"flex-end"},".status":{fontWeight:"bold",textTransform:"uppercase"},".status.failed":{color:"$error"},".status.success":{color:"$success"}}),go=w("div",{width:"150px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","@md":{width:"auto"}}),ho=w("div",{padding:"0",color:"$neutrals600",fontSize:"$10"}),vo=w("div",{overflowY:"auto",padding:"$8 $4 $2 $4"});exports.AddCircleIcon=O,exports.AddIcon=W,exports.AddWalletIcon=_e,exports.Alert=pr,exports.AngleDownIcon=pe,exports.AngleLeftIcon=he,exports.AngleRightIcon=se,exports.AngleUpIcon=ue,exports.ArrowRightIcon=we,exports.BagIcon=Ge,exports.BanIcon=G,exports.BestRoute=function(e){var n,o=e.data,i=e.loading,a=e.error,l=e.totalFee,c=e.feeWarning,s=e.totalTime;return r.createElement(Lt,null,i?r.createElement(At,null,r.createElement(mt,{width:48,height:94})):r.createElement(_t,null,r.createElement(Et,{content:"Transaction cost (fee)"},r.createElement(Tt,{warning:c},r.createElement(Q,{size:20,color:c?"warning":void 0}),r.createElement(Ot,{mt:4,align:"center",variant:"caption",warning:c},a&&"-",!!o&&"$"+l))),r.createElement(jt,null),r.createElement(Et,{content:"Time estimate"},r.createElement(Tt,{warning:c},r.createElement(Ue,{size:20}),r.createElement(nt,{mt:4,align:"center",variant:"caption"},a&&"-",!!o&&"~"+s+"m")))),r.createElement(It,null,i&&r.createElement(gt,{color:"primary"}),a&&r.createElement(Rt,{variant:"caption"},a),!!o&&(null==(n=o.result)?void 0:n.swaps.map((function(e,n){var i;return r.createElement(t.Fragment,{key:n},0===n&&r.createElement(Bt,null,r.createElement(dt,{direction:"vertical",logo:e.from.logo,symbol:e.from.symbol,chainLogo:e.from.blockchainLogo,blockchain:e.from.blockchain,amount:e.fromAmount}),r.createElement(Nt,null)),r.createElement(Zt,null,r.createElement(Mt,null),r.createElement(yt,{src:e.swapperLogo,alt:e.swapperId,size:20}),r.createElement(Mt,null)),n+1===(null==(i=o.result)?void 0:i.swaps.length)&&r.createElement(Wt,null),r.createElement(dt,{direction:"vertical",logo:e.to.logo,symbol:e.to.symbol,chainLogo:e.to.blockchainLogo,blockchain:e.to.blockchain,amount:e.toAmount}))}))),!!o&&!(null!=o&&o.result)&&r.createElement(nt,{variant:"body2"},"No routes found")))},exports.BlockchainSelector=function(e){var t=e.list,n=e.onChange,o=e.selected,i=e.loadingStatus,a=e.listContainerStyle,l=e.multiSelect,c=e.selectedList;return r.createElement(lr,{textField:!0,hasHeader:e.hasHeader,textFieldPlaceholder:"Search blockchains by name",title:"Select "+e.type+" Blockchain",onBack:e.onBack},(function(e){var s=function(e,t){return e.filter((function(e){return cr(e.name,t)||cr(e.displayName,t)}))}(t,e);return r.createElement(r.Fragment,null,"loading"===i&&r.createElement(yr,null,r.createElement(gt,{size:24})),r.createElement(kr,{style:a,key:"1"},"failed"===i&&r.createElement(gr,null),"success"===i&&r.createElement(r.Fragment,null,s.length?r.createElement(Yt,{list:s,selected:o,multiSelect:l,selectedList:c,onChange:n}):r.createElement(hr,{catergory:"Blockchain",searchedFor:e}))))}))},exports.Button=Vt,exports.CheckCircleIcon=D,exports.CheckIcon=V,exports.CheckSquareIcon=B,exports.CheckWalletIcon=Ze,exports.Checkbox=function(e){var t=e.label,n=e.id,o=h(e,Cr);return r.createElement(zr,null,r.createElement(Sr,Object.assign({id:n},o),r.createElement(l.Indicator,null,r.createElement(V,{size:20}))),r.createElement(Lr,{className:"_text",htmlFor:n},t))},exports.ChevronRightIcon=Ee,exports.Chip=Ir,exports.CloseIcon=Xe,exports.ColorPicker=function(e){var n=e.color,o=e.onChangeColor,i=e.label,a=e.place,l=t.useState(!1),c=l[0],s=l[1];return r.createElement(Ln,null,r.createElement(jn,{className:"_text"},i),r.createElement(Vt,{variant:"outlined",prefix:r.createElement(Rn,{style:{backgroundColor:n}}),fullWidth:!0,align:"start",size:"large",onClick:function(){return s((function(e){return!e}))}},n),c&&r.createElement(Mn,{place:a},r.createElement(In,{onClick:function(){return s(!1)}}),r.createElement(m.ChromePicker,{color:n,onChange:o})))},exports.ConfirmSwap=function(e){var t=e.requiredWallets,n=e.selectableWallets,o=e.onChange,i=e.isExperimentalChain,a=e.handleConnectChain,l=e.errors,c=e.warnings,s=e.extraMessages;return r.createElement(lr,{textField:!1,title:"Confirm Swap",onBack:e.onBack,Footer:r.createElement(Zn,null,r.createElement(Dn,{fullWidth:!0,loading:e.loading,type:"primary",variant:"contained",onClick:e.onConfirm,disabled:e.confirmDisabled},e.confirmButtonTitle))},r.createElement(On,null,r.createElement("div",null,s||null,r.createElement(Vn,null,null==l?void 0:l.map((function(e,t){return r.createElement(r.Fragment,{key:t},r.createElement(ur,{direction:"vertical"}),r.createElement(pr,Object.assign({type:"error",key:t},"string"==typeof e?{title:e}:{children:e})))})),null==c?void 0:c.map((function(e,t){return r.createElement(r.Fragment,{key:t},r.createElement(ur,{direction:"vertical"}),r.createElement(pr,Object.assign({type:"warning",key:t},"string"==typeof e?{title:e}:{children:e})))})))),e.previewInputs||e.previewRoutes?r.createElement(An,null,e.previewInputs,e.previewRoutes?r.createElement(ur,{size:16,direction:"vertical"}):null,e.previewRoutes):null,t.map((function(e,t){var l=n.filter((function(t){return e===t.chain}));return r.createElement(qn,{key:t},r.createElement("div",{className:"title"},r.createElement("div",{className:"num"},t+1),r.createElement(ur,{size:8}),r.createElement(nt,{variant:"body2"},"Your ",e," Wallet")),0===l.length&&r.createElement(r.Fragment,null,r.createElement(Hn,null,r.createElement(pr,{type:"error"},"You need to connect a compatible wallet with ",e,".")),(null==i?void 0:i(e))&&r.createElement(Vt,{variant:"contained",type:"primary",align:"grow",onClick:function(){return null==a?void 0:a(e)}},"Add "+e+" chain to Cosmos wallets")),0!=l.length&&r.createElement(on,{list:l,onChange:o}))}))))},exports.ConnectWalletsModal=function(e){var t=e.open,n=e.onSelect,o=e.onClose,i=r.createElement(Dr,null,e.list.map((function(e,t){return r.createElement(Hr,Object.assign({},e,{key:t,onClick:n}))})));return r.createElement(Fr,{title:"Connect Wallets",open:t,content:i,onClose:o,containerStyle:{width:"75%",maxWidth:"30rem",height:"70%"}})},exports.CopyIcon=et,exports.DeleteCircleIcon=M,exports.DeleteWalletIcon=Oe,exports.DisconnectIcon=Ve,exports.Divider=Xt,exports.DownloadIcon=fe,exports.Drawer=Tn,exports.FilledCircle=$t,exports.GasIcon=Q,exports.Header=Qt,exports.History=function(e){var t=e.list,n=void 0===t?[]:t,o=e.onSwapClick,i=e.groupBy,a=e.loading;return r.createElement(lr,{onBack:e.onBack,textField:!0,textFieldPlaceholder:"Search by blockchain, token or request Id",title:"Swaps"},(function(e){var t=function(e,t){return e.filter((function(e){var r=e.steps[0],n=e.steps[e.steps.length-1];return cr(r.fromBlockchain,t)||cr(r.fromSymbol,t)||cr(n.toBlockchain,t)||cr(n.toSymbol,t)||cr(e.requestId,t)}))}(n,e);return r.createElement(r.Fragment,null,a&&r.createElement(yr,null,r.createElement(gt,{size:24})),r.createElement(Yn,null,!a&&r.createElement(r.Fragment,null,t.length?r.createElement(Gn,{list:t,onSwapClick:o,groupBy:i}):r.createElement(hr,{catergory:"Swap"}))))}))},exports.HistoryIcon=J,exports.HorizontalSwapIcon=Me,exports.Image=yt,exports.InfoCircleIcon=_,exports.LiquiditySourcesSelector=function(e){var t=e.list,n=e.onChange,o=e.onBack,i=e.hasHeader,a=e.listContainerStyle,l=e.loadingStatus;return r.createElement(lr,{textField:!0,textFieldPlaceholder:"Search by name",title:"Liquidity Sources",TopButton:r.createElement(Vt,{variant:"ghost",type:"primary",onClick:e.toggleAll},t.find((function(e){return e.selected}))?"Deselect all":"Select all"),hasHeader:i,onBack:o},(function(e){return r.createElement(Jr,{listContainerStyle:a,list:Qr(t,e),onChange:n,loadingStatus:l,searchedFor:e})}))},exports.LoadingFailedAlert=gr,exports.MinusCircleIcon=Z,exports.Modal=Fr,exports.Radio=mn,exports.RetryIcon=Be,exports.RetryLeftIcon=Ce,exports.RetryRightIcon=ye,exports.SearchIcon=le,exports.SearchMinusIcon=ie,exports.SecondaryPage=lr,exports.SelectableWalletList=on,exports.Settings=function(e){var n=e.slippages,o=e.selectedLiquiditySources,i=e.liquiditySources,a=e.onSlippageChange,l=e.onLiquiditySourcesClick,c=e.onBack,s=e.customSlippage,d=e.onCustomSlippageChange,u=e.maxSlippage,m=e.minSlippage,p=e.selectedTheme,g=e.onThemeChange,h=e.toggleInfiniteApprove,v=e.infiniteApprove,f=e.loadingStatus,x=t.useState(e.selectedSlippage),E=x[0],$=x[1],w=r.createElement(r.Fragment,null,r.createElement(pn,null,r.createElement(wn,null,r.createElement(nt,{variant:"body2"},"Slippage tolerance"),s?r.createElement(nt,{variant:"caption",color:"error"},s,"% Custom"):void 0),r.createElement(hn,null,n.map((function(e,t){return r.createElement(Ir,{key:t,onClick:function(){s&&d(null),function(e){$(e),a(e)}(e)},selected:!s&&e===E,label:e.toString()+"%",style:{marginRight:"8px"}})})),r.createElement(or,{type:"number",value:s,onChange:function(e){var t=parseFloat(e.target.value);(!t||t>=m&&t<=u)&&d(t)},suffix:s&&r.createElement(nt,{variant:"body2"},"%"),size:"small",placeholder:"Custom %",style:{width:"128px",flexGrow:"initial"}}))),r.createElement($n,null,r.createElement(gn,{variant:"body2"},"Theme"),r.createElement(mn,{value:p,options:[{value:"dark",label:"Dark"},{value:"light",label:"Light"},{value:"auto",label:"Auto"}],onChange:function(e){return g(e)},direction:"horizontal",style:{marginTop:"$24"}})),r.createElement(fn,null,r.createElement(nt,{variant:"body2"},"Infinite Approval"),r.createElement(Pr,{checked:v,onChange:h})),r.createElement(vn,null,r.createElement(Vt,{onClick:l,align:"start",variant:"ghost",loading:"loading"===f,suffix:r.createElement(En,null,"success"===f&&r.createElement(nt,{variant:"body2",color:"neutrals800"},i.length!==o.length?o.length+" / "+i.length:i.length),"failed"===f&&r.createElement(nt,{variant:"body2",color:"$error500"},"Loading failed"),r.createElement(xn,null))},r.createElement(nt,{variant:"body2"},"Liquidity Sources"))));return r.createElement(lr,{title:"Settings",textField:!1,onBack:c},w)},exports.SettingsIcon=te,exports.SignatureIcon=Ke,exports.Spacer=ur,exports.Spinner=gt,exports.StepDetail=dt,exports.SwapContainer=function(e){var t=e.fixedHeight;return r.createElement(bn,{style:e.style,id:"swap-box",fixedHeight:void 0===t||t},e.children)},exports.SwapDetail=Sn,exports.SwapHistory=function(e){var n=e.pendingSwap,o=e.onBack,i=e.onCopy,a=e.isCopied,l=e.onCancel,c=e.date,s=e.onRetry,d=h(e,Kn),u=t.useState(!1),m=u[0],p=u[1];return r.createElement(lr,{title:"Swap Details",textField:!1,onBack:o,Footer:r.createElement(r.Fragment,null,"running"===(null==n?void 0:n.status)&&r.createElement(Vt,{variant:"outlined",fullWidth:!0,type:"error",onClick:p.bind(null,!0)},"Cancel"),!!s&&r.createElement(Vt,{variant:"contained",fullWidth:!0,type:"primary",onClick:s},"Try again"))},r.createElement("div",null,r.createElement(ao,null,r.createElement(po,null,r.createElement("div",{className:"name"},"Request Id:",r.createElement("span",{className:"value requestId",onClick:i.bind(null,null==n?void 0:n.requestId)},r.createElement(go,null,null==n?void 0:n.requestId),r.createElement(ur,{size:4}),r.createElement(Vt,{type:"primary",variant:"ghost",size:"compact"},a?"Copied!":"Copy"))),r.createElement("div",{className:"name"},r.createElement("span",{className:"value status "+((null==n?void 0:n.status)||"")},null==n?void 0:n.status,"running"===(null==n?void 0:n.status)&&r.createElement(gt,{size:16,color:"primary"})),r.createElement(ho,null,c))))),r.createElement(vo,null,d.shortMessage&&r.createElement(Jn,Object.assign({},d)),r.createElement(Xt,{size:16}),null==n?void 0:n.steps.map((function(e,t){return r.createElement("div",{key:t},0===t&&r.createElement(ro,null,r.createElement(dt,{logo:e.fromLogo,symbol:e.fromSymbol,chainLogo:e.fromBlockchainLogo||"",blockchain:e.fromBlockchain,amount:n.inputAmount}),r.createElement(no,null)),r.createElement(mo,null),r.createElement(Qn,{created:"created"===e.status,running:!["created","success","failed"].includes(e.status)},r.createElement(yt,{src:e.swapperLogo||"",alt:e.swapperId,size:20}),r.createElement(eo,null,r.createElement(nt,{variant:"body2"},"DEX"===e.swapperType?"Swap":"Bridge"," via"," ",e.swapperId),r.createElement(to,null,r.createElement(Q,null),r.createElement(nt,{variant:"body2"},"  $",e.feeInUsd," estimated gas fee")))),r.createElement("div",{style:{display:"flex"}},r.createElement(lo,null,r.createElement(mo,null),r.createElement("div",{className:"details"},!!e.explorerUrl&&r.createElement("div",null,e.explorerUrl.map((function(e,t){return r.createElement(co,{key:t},r.createElement(so,null,r.createElement(Xt,{size:4}),r.createElement(D,{color:"primary"}),r.createElement(uo,{variant:"body2"},r.createElement(io,{href:e.url,target:"_blank",rel:"noreferrer",key:t},e.description?r.createElement("b",null,e.description.substring(0,1).toUpperCase(),e.description.substring(1)," Tx"):r.createElement("b",null,"View transaction")))))}))),"failed"===e.status&&r.createElement(co,null,r.createElement(so,null,r.createElement(_,{color:"error"}),r.createElement(uo,{variant:"body2",color:"$error500"},"Step failed")))))),t+1===n.steps.length&&r.createElement(oo,null),r.createElement(dt,{logo:e.toLogo,symbol:e.toSymbol,chainLogo:e.toBlockchainLogo||"",blockchain:e.toBlockchain,amount:e.outputAmount||"",estimatedAmount:e.expectedOutputAmountHumanReadable||"",success:"success"===e.status}))})),r.createElement(Xt,{size:32})),r.createElement(Tn,{onClose:p.bind(null,!1),open:m,showClose:!0,anchor:"bottom",title:"Cancel Progress",content:r.createElement(pr,{type:"warning"},r.createElement(nt,{variant:"body2"},"Warning: Cancel ",r.createElement("u",null,"doesn't revert")," your transaction if you've already signed and sent a transaction to the blockchain. It only stops next steps from being executed.")),footer:r.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"}},r.createElement(Vt,{variant:"contained",type:"success",onClick:p.bind(null,!1)},"Skip"),r.createElement(ur,{size:16}),r.createElement(Vt,{variant:"contained",type:"error",onClick:function(){l(n.requestId),p(!1)}},"Cancel progress")),container:document.getElementById("swap-box")}))},exports.SwapWalletIcon=De,exports.SwapsGroup=Gn,exports.Switch=Pr,exports.TextField=or,exports.TimeIcon=Ue,exports.TokenList=br,exports.TokenSelector=function(e){var t=e.list,n=e.selected,o=e.onChange,i=e.loadingStatus;return r.createElement(lr,{textField:!0,hasHeader:e.hasHeader,title:"Select "+e.type+" token",onBack:e.onBack,textFieldPlaceholder:"Search tokens by name"},(function(e){var a=function(e,t){return e.filter((function(e){return cr(e.symbol,t)||cr(e.address||"",t)||cr(e.name||"",t)}))}(t,e);return"loading"===i?r.createElement(yr,null,r.createElement(gt,{size:24})):"failed"===i?r.createElement(gr,null):a.length?r.createElement(br,{searchedText:e,list:a,selected:n,onChange:o}):r.createElement(hr,{catergory:"Token",searchedFor:e})}))},exports.Tooltip=Et,exports.TrashIcon=ne,exports.TryAgainIcon=Se,exports.Typography=nt,exports.VerticalSwapIcon=Re,exports.Wallet=Hr,exports.WalletIcon=We,exports.WarningIcon=U,exports.createTheme=y,exports.css=b,exports.darkTheme=S,exports.globalCss=C,exports.keyframes=k,exports.lightTheme=z,exports.styled=w,exports.useCopyToClipboard=function(e){var t=r.useState(!1),n=t[0],o=t[1],i=r.useCallback((function(e){p(e.toString()),o(!0)}),[]);return r.useEffect((function(){var t;return n&&e&&(t=setTimeout((function(){return o(!1)}),e)),function(){clearTimeout(t)}}),[n,e]),[n,i]};
2
2
  //# sourceMappingURL=ui.cjs.production.min.js.map