@imtbl/sdk 1.40.7-alpha.1 → 1.40.7-alpha.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 (36) hide show
  1. package/dist/blockchain_data.js +2 -2
  2. package/dist/browser/checkout/{BridgeWidget-dbb2ce8a.js → BridgeWidget-16efe40e.js} +1 -1
  3. package/dist/browser/checkout/{OnRampWidget-0736586b.js → OnRampWidget-8b4980c1.js} +1 -1
  4. package/dist/browser/checkout/{SaleWidget-860a7279.js → SaleWidget-818eec70.js} +1 -1
  5. package/dist/browser/checkout/{SpendingCapHero-4feb8ce3.js → SpendingCapHero-81e7cb0c.js} +1 -1
  6. package/dist/browser/checkout/{SwapWidget-e630dd85.js → SwapWidget-45eb8ed6.js} +1 -1
  7. package/dist/browser/checkout/{TopUpView-cd0ad782.js → TopUpView-8f6b9edc.js} +1 -1
  8. package/dist/browser/checkout/{WalletWidget-fdf13807.js → WalletWidget-a1f91b04.js} +1 -1
  9. package/dist/browser/checkout/{auto-track-cb746d41.js → auto-track-7048b616.js} +1 -1
  10. package/dist/browser/checkout/balance-c29ddcde.js +1 -0
  11. package/dist/browser/checkout/{index-49057d3d.js → index-085b1176.js} +1 -1
  12. package/dist/browser/checkout/{index-ee9a1d43.js → index-167c3c05.js} +1 -1
  13. package/dist/browser/checkout/{index-cf026120.js → index-35433223.js} +1 -1
  14. package/dist/browser/checkout/{index-67c7e9a7.js → index-5dc0dbe1.js} +1 -1
  15. package/dist/browser/checkout/{index-5d63516b.js → index-96bd84b7.js} +1 -1
  16. package/dist/browser/checkout/index-b40ea2dc.js +1 -0
  17. package/dist/browser/checkout/{index-2ff66ff9.js → index-c4c58cd1.js} +2 -2
  18. package/dist/browser/checkout/{index-bdacda16.js → index-dfe1b0e0.js} +1 -1
  19. package/dist/browser/checkout/{index.umd-398b40c3.js → index.umd-2a76c75d.js} +1 -1
  20. package/dist/browser/checkout/{retry-0ad248cc.js → retry-3f7d1f04.js} +1 -1
  21. package/dist/browser/checkout/sdk.js +4 -4
  22. package/dist/browser/checkout/widgets-esm.js +1 -1
  23. package/dist/browser/checkout/widgets.js +2 -2
  24. package/dist/checkout.js +4 -4
  25. package/dist/config.js +1 -1
  26. package/dist/index.browser.js +4 -4
  27. package/dist/index.cjs +7 -7
  28. package/dist/index.js +7 -7
  29. package/dist/minting_backend.js +2 -2
  30. package/dist/orderbook.js +1 -1
  31. package/dist/passport.js +4 -4
  32. package/dist/webhook.js +1 -1
  33. package/dist/x.js +3 -3
  34. package/package.json +1 -1
  35. package/dist/browser/checkout/balance-b5c71011.js +0 -1
  36. package/dist/browser/checkout/index-09188767.js +0 -1
package/dist/index.cjs CHANGED
@@ -185,7 +185,7 @@ const flattenProperties$1 = (properties) => {
185
185
  };
186
186
 
187
187
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
188
- const SDK_VERSION$1 = '1.40.7-alpha.1';
188
+ const SDK_VERSION$1 = '1.40.7-alpha.2';
189
189
  const getFrameParentDomain$1 = () => {
190
190
  if (isNode$1()) {
191
191
  return '';
@@ -14212,7 +14212,7 @@ class MultiRollupApiClients {
14212
14212
  }
14213
14213
 
14214
14214
  // eslint-disable-next-line @typescript-eslint/naming-convention
14215
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.40.7-alpha.1' };
14215
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.40.7-alpha.2' };
14216
14216
  const createConfig$1 = ({ basePath, headers, }) => {
14217
14217
  if (!basePath.trim()) {
14218
14218
  throw Error('basePath can not be empty');
@@ -14284,7 +14284,7 @@ class APIError extends Error {
14284
14284
 
14285
14285
  /* eslint-disable implicit-arrow-linebreak */
14286
14286
  const defaultHeaders$1 = {
14287
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.40.7-alpha.1',
14287
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.40.7-alpha.2',
14288
14288
  };
14289
14289
  /**
14290
14290
  * createAPIConfiguration to create a custom Configuration
@@ -14758,7 +14758,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
14758
14758
  /* eslint-disable @typescript-eslint/naming-convention */
14759
14759
  class ApiConfiguration extends index$2.Configuration {
14760
14760
  }
14761
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.40.7-alpha.1' };
14761
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.40.7-alpha.2' };
14762
14762
  /**
14763
14763
  * @dev use createImmutableXConfiguration instead
14764
14764
  */
@@ -14799,7 +14799,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
14799
14799
  coreContractAddress,
14800
14800
  registrationContractAddress,
14801
14801
  registrationV4ContractAddress,
14802
- sdkVersion: 'ts-immutable-sdk-1.40.7-alpha.1',
14802
+ sdkVersion: 'ts-immutable-sdk-1.40.7-alpha.2',
14803
14803
  baseConfig,
14804
14804
  });
14805
14805
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -60949,7 +60949,7 @@ const flattenProperties = (properties) => {
60949
60949
  };
60950
60950
 
60951
60951
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
60952
- const SDK_VERSION = '1.40.7-alpha.1';
60952
+ const SDK_VERSION = '1.40.7-alpha.2';
60953
60953
  const getFrameParentDomain = () => {
60954
60954
  if (isNode()) {
60955
60955
  return '';
@@ -66268,7 +66268,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
66268
66268
  maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
66269
66269
  };
66270
66270
 
66271
- const SDK_VERSION_MARKER = '1.40.7-alpha.1';
66271
+ const SDK_VERSION_MARKER = '1.40.7-alpha.2';
66272
66272
  // This SDK version is replaced by the `yarn build` command ran on the root level
66273
66273
  const globalPackageVersion = () => SDK_VERSION_MARKER;
66274
66274
 
package/dist/index.js CHANGED
@@ -162,7 +162,7 @@ const flattenProperties$1 = (properties) => {
162
162
  };
163
163
 
164
164
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
165
- const SDK_VERSION$1 = '1.40.7-alpha.1';
165
+ const SDK_VERSION$1 = '1.40.7-alpha.2';
166
166
  const getFrameParentDomain$1 = () => {
167
167
  if (isNode$1()) {
168
168
  return '';
@@ -14189,7 +14189,7 @@ class MultiRollupApiClients {
14189
14189
  }
14190
14190
 
14191
14191
  // eslint-disable-next-line @typescript-eslint/naming-convention
14192
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.40.7-alpha.1' };
14192
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.40.7-alpha.2' };
14193
14193
  const createConfig$1 = ({ basePath, headers, }) => {
14194
14194
  if (!basePath.trim()) {
14195
14195
  throw Error('basePath can not be empty');
@@ -14261,7 +14261,7 @@ class APIError extends Error {
14261
14261
 
14262
14262
  /* eslint-disable implicit-arrow-linebreak */
14263
14263
  const defaultHeaders$1 = {
14264
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.40.7-alpha.1',
14264
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.40.7-alpha.2',
14265
14265
  };
14266
14266
  /**
14267
14267
  * createAPIConfiguration to create a custom Configuration
@@ -14735,7 +14735,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
14735
14735
  /* eslint-disable @typescript-eslint/naming-convention */
14736
14736
  class ApiConfiguration extends index$2.Configuration {
14737
14737
  }
14738
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.40.7-alpha.1' };
14738
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.40.7-alpha.2' };
14739
14739
  /**
14740
14740
  * @dev use createImmutableXConfiguration instead
14741
14741
  */
@@ -14776,7 +14776,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
14776
14776
  coreContractAddress,
14777
14777
  registrationContractAddress,
14778
14778
  registrationV4ContractAddress,
14779
- sdkVersion: 'ts-immutable-sdk-1.40.7-alpha.1',
14779
+ sdkVersion: 'ts-immutable-sdk-1.40.7-alpha.2',
14780
14780
  baseConfig,
14781
14781
  });
14782
14782
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -60926,7 +60926,7 @@ const flattenProperties = (properties) => {
60926
60926
  };
60927
60927
 
60928
60928
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
60929
- const SDK_VERSION = '1.40.7-alpha.1';
60929
+ const SDK_VERSION = '1.40.7-alpha.2';
60930
60930
  const getFrameParentDomain = () => {
60931
60931
  if (isNode()) {
60932
60932
  return '';
@@ -66245,7 +66245,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
66245
66245
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
66246
66246
  };
66247
66247
 
66248
- const SDK_VERSION_MARKER = '1.40.7-alpha.1';
66248
+ const SDK_VERSION_MARKER = '1.40.7-alpha.2';
66249
66249
  // This SDK version is replaced by the `yarn build` command ran on the root level
66250
66250
  const globalPackageVersion = () => SDK_VERSION_MARKER;
66251
66251
 
@@ -5286,7 +5286,7 @@ const flattenProperties = (properties) => {
5286
5286
  };
5287
5287
 
5288
5288
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
5289
- const SDK_VERSION = '1.40.7-alpha.1';
5289
+ const SDK_VERSION = '1.40.7-alpha.2';
5290
5290
  const getFrameParentDomain = () => {
5291
5291
  if (isNode()) {
5292
5292
  return '';
@@ -5554,7 +5554,7 @@ class APIError extends Error {
5554
5554
 
5555
5555
  /* eslint-disable implicit-arrow-linebreak */
5556
5556
  const defaultHeaders = {
5557
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.40.7-alpha.1',
5557
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.40.7-alpha.2',
5558
5558
  };
5559
5559
  /**
5560
5560
  * createAPIConfiguration to create a custom Configuration
package/dist/orderbook.js CHANGED
@@ -132,7 +132,7 @@ const flattenProperties = (properties) => {
132
132
  };
133
133
 
134
134
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
135
- const SDK_VERSION = '1.40.7-alpha.1';
135
+ const SDK_VERSION = '1.40.7-alpha.2';
136
136
  const getFrameParentDomain = () => {
137
137
  if (isNode()) {
138
138
  return '';
package/dist/passport.js CHANGED
@@ -11460,7 +11460,7 @@ class MultiRollupApiClients {
11460
11460
  }
11461
11461
 
11462
11462
  // eslint-disable-next-line @typescript-eslint/naming-convention
11463
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.40.7-alpha.1' };
11463
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.40.7-alpha.2' };
11464
11464
  const createConfig$1 = ({ basePath, headers, }) => {
11465
11465
  if (!basePath.trim()) {
11466
11466
  throw Error('basePath can not be empty');
@@ -11639,7 +11639,7 @@ const flattenProperties = (properties) => {
11639
11639
  };
11640
11640
 
11641
11641
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
11642
- const SDK_VERSION = '1.40.7-alpha.1';
11642
+ const SDK_VERSION = '1.40.7-alpha.2';
11643
11643
  const getFrameParentDomain = () => {
11644
11644
  if (isNode()) {
11645
11645
  return '';
@@ -12029,7 +12029,7 @@ const addKeysToHeadersOverride = (baseConfig, overrides) => {
12029
12029
  /* eslint-disable @typescript-eslint/naming-convention */
12030
12030
  class ApiConfiguration extends index$2.Configuration {
12031
12031
  }
12032
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.40.7-alpha.1' };
12032
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.40.7-alpha.2' };
12033
12033
  /**
12034
12034
  * @dev use createImmutableXConfiguration instead
12035
12035
  */
@@ -12070,7 +12070,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
12070
12070
  coreContractAddress,
12071
12071
  registrationContractAddress,
12072
12072
  registrationV4ContractAddress,
12073
- sdkVersion: 'ts-immutable-sdk-1.40.7-alpha.1',
12073
+ sdkVersion: 'ts-immutable-sdk-1.40.7-alpha.2',
12074
12074
  baseConfig,
12075
12075
  });
12076
12076
  const production = ({ baseConfig }) => createImmutableXConfiguration({
package/dist/webhook.js CHANGED
@@ -129,7 +129,7 @@ const flattenProperties = (properties) => {
129
129
  };
130
130
 
131
131
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
132
- const SDK_VERSION = '1.40.7-alpha.1';
132
+ const SDK_VERSION = '1.40.7-alpha.2';
133
133
  const getFrameParentDomain = () => {
134
134
  if (isNode()) {
135
135
  return '';
package/dist/x.js CHANGED
@@ -9004,7 +9004,7 @@ const flattenProperties = (properties) => {
9004
9004
  };
9005
9005
 
9006
9006
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
9007
- const SDK_VERSION = '1.40.7-alpha.1';
9007
+ const SDK_VERSION = '1.40.7-alpha.2';
9008
9008
  const getFrameParentDomain = () => {
9009
9009
  if (isNode()) {
9010
9010
  return '';
@@ -9270,7 +9270,7 @@ const addKeysToHeadersOverride = (baseConfig, overrides) => {
9270
9270
  /* eslint-disable @typescript-eslint/naming-convention */
9271
9271
  class ApiConfiguration extends index$2.Configuration {
9272
9272
  }
9273
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.40.7-alpha.1' };
9273
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.40.7-alpha.2' };
9274
9274
  /**
9275
9275
  * @dev use createImmutableXConfiguration instead
9276
9276
  */
@@ -9311,7 +9311,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
9311
9311
  coreContractAddress,
9312
9312
  registrationContractAddress,
9313
9313
  registrationV4ContractAddress,
9314
- sdkVersion: 'ts-immutable-sdk-1.40.7-alpha.1',
9314
+ sdkVersion: 'ts-immutable-sdk-1.40.7-alpha.2',
9315
9315
  baseConfig,
9316
9316
  });
9317
9317
  const production = ({ baseConfig }) => createImmutableXConfiguration({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtbl/sdk",
3
3
  "description": "Immutable Typescript SDK",
4
- "version": "1.40.7-alpha.1",
4
+ "version": "1.40.7-alpha.2",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",
@@ -1 +0,0 @@
1
- import{c_ as e,j as t,aD as n,_ as r,u as a,r as i,c$ as o,d0 as s,m as l,n as c,d1 as d,B as p,S as h,d2 as u,a as b,aJ as g,C as m,k as f,d3 as L,f as k,i as x,aL as C,l as w,b4 as v,z as y,cK as O,y as j,aa as I,cL as E,d4 as M,H,o as S,d as A,a2 as D,a7 as P,M as B,d5 as F,d6 as T,b3 as Z,d7 as z,d8 as W,aC as N,A as _,v as $,ci as R,d9 as V,ab as Q,ac as q,ad as X,bd as K,X as G,G as U,R as J}from"./index-2ff66ff9.js";import{T as Y,r as ee}from"./retry-0ad248cc.js";function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var re=function(e){return{brad:"base.borderRadius.x4",overflow:"hidden",transitionProperty:"background-color",transitionDuration:"base.motion.normal.fast.cssDuration",transitionTimingFunction:"base.motion.normal.fast.cssEase","&.emphasized":{bgc:"base.color.translucent.emphasis.100"},"&.expanded":{bgc:"base.color.translucent.emphasis.100"},"&.emphasized.expanded":{bgc:"base.color.translucent.emphasis.200"},"&:hover":{bgc:"base.color.translucent.emphasis.200"},"&.emphasized:hover":{bgc:"base.color.translucent.emphasis.300"},"&:hover .ButtCon":ne({},L("small",e,!1)["&:hover:not([disabled])"])}},ae=ne(ne({},e),{},{alignItems:"flex-start",justifyContent:"space-between",gap:"base.spacing.x4",position:"relative",px:"base.spacing.x3",py:"base.spacing.x4",minh:"base.spacing.x16"}),ie={position:"absolute",top:"base.spacing.x4"},oe={overflow:"visible",bg:"transparent",maxh:"unset",boxShadow:"unset",brad:"unset",p:"0"},se={mb:"base.spacing.x10",px:"base.spacing.x3","& .Divider:first-of-type":{mb:"base.spacing.x4"}},le=["children","className","sx","chevronSide"];function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pe(e){var n=e.children,a=e.className,o=e.sx,s=void 0===o?{}:o,c=e.chevronSide,d=void 0===c?"left":c,p=r(e,le),u=i.useMemo((function(){return k(n)}),[n]);return t(g,de(de({},p),{},{className:"".concat(null!=a?a:""," AccordionExpandedContent"),sx:l(se,de({},"left"===d?{pl:"base.spacing.x15"}:{pr:"base.spacing.x15"}),s),children:i.Children.map(u,(function(e){return i.isValidElement(e)&&x(e,C)?t(h,{size:"xSmall",children:e}):e}))}))}pe.displayName="Accordion.ExpandedContent";var he=["children","direction","gap","rc"],ue=["sx","alignItems","className"],be=["alignItems","className","sx"];function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fe(e){var n=e.children,a=e.direction,i=void 0===a?"column":a,o=e.gap,s=void 0===o?"0px":o,l=e.rc,c=void 0===l?t("span",{}):l,d=r(e,he);return t(g,me(me({},d),{},{direction:i,gap:s,rc:c,children:n}))}function Le(e){var n=e.sx,a=void 0===n?{}:n,i=e.alignItems,o=void 0===i?"flex-start":i,s=e.className,c=r(e,ue);return t(fe,me(me({},c),{},{alignItems:o,sx:l({flex:1,textAlign:"left"},a),className:"".concat(null!=s?s:""," AccordionTargetLeftSlot")}))}function ke(e){var n=e.alignItems,a=void 0===n?"flex-end":n,i=e.className,o=e.sx,s=void 0===o?{}:o,c=r(e,be);return t(fe,me(me({},c),{},{alignItems:a,sx:l({textAlign:"right"},s),className:"".concat(null!=i?i:""," AccordionTargetRightSlot")}))}Le.displayName="Accordion.TargetLeftSlot",ke.displayName="Accordion.TargetRightSlot";var xe=["emphasized","expanded","defaultExpanded","children","gap","alignItems","className","onExpandChange","chevronSide","sx","rc","targetClickOveride","testId"];function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ve(e){var f=we(we({},e),{},"expanded"in e?{defaultExpanded:void 0}:{expanded:void 0}),L=f.emphasized,k=f.expanded,x=f.defaultExpanded,C=f.children,w=f.gap,v=void 0===w?"0":w,y=f.alignItems,O=void 0===y?"stretch":y,j=f.className,I=f.onExpandChange,E=f.chevronSide,M=void 0===E?"left":E,H=f.sx,S=void 0===H?{}:H,A=f.rc,D=void 0===A?t(n.div,{}):A,P=f.targetClickOveride,B=f.testId,F=void 0===B?"Accordion":B,T=r(f,xe),Z=a(),z=Z.base,W=i.useState(x),N=o(W,2),_=N[0],$=N[1],R=null!=k?k:_,V=s(C,Le),Q=s(C,ke),q=s(C,pe),X=i.useCallback((function(){void 0===k?$((function(e){return null==I||I(!e),!e})):null==I||I(!k)}),[k,I]),K=i.useMemo((function(){var e,t;return l(re(Z),null!==(e=null===(t=Z.components)||void 0===t||null===(t=t.Accordion)||void 0===t?void 0:t.sxOverride)&&void 0!==e?e:{},S)}),[S,Z]);return t(m,{children:function(e){var r=e.cx;return c(g,we(we({},T),{},{className:"".concat(null!=j?j:""," Accordion ").concat(r({emphasized:L,expanded:R})),gap:v,alignItems:O,rc:D,sx:K,testId:F,children:[c(d,{sx:l(ae,we({},"left"===M?{pl:"base.spacing.x15"}:{pr:"base.spacing.x15"})),onClick:P||X,testId:"".concat(F,"__clickableArea"),children:[t(p,{rc:t("span",{}),icon:R?"ChevronCollapse":"ChevronExpand",variant:"tertiary",size:"small",testId:"".concat(F,"__clickableArea__chevron"),sx:l(ie,we({},"left"===M?{left:"base.spacing.x3"}:{right:"base.spacing.x3"})),className:"Accordion__ButtCon"}),t(h,{testId:"".concat(F,"__clickableArea__targetLeft"),children:V}),Q&&t(h,{testId:"".concat(F,"__clickableArea__targetRight"),children:Q})]}),t(u,{children:Boolean(q)&&R?t(b,{sx:oe,rc:t(n.div,{initial:{opacity:0,height:0,overflow:"hidden",y:-16},animate:{height:"auto",opacity:1,y:0,transitionEnd:{overflow:"visible"}},exit:{height:0,opacity:0,overflow:"hidden",y:-16},transition:{duration:z.motion.normal.fast.jsDuration,ease:z.motion.normal.fast.jsEase}}),children:t(h,{chevronSide:M,testId:"".concat(F,"__expandedContent"),children:q})}):null})]}))}})}function ye({visible:e,targetChainId:n,provider:r,checkout:a,onCloseDrawer:o,onNetworkSwitch:s}){const{t:l}=w(),d=v(a.config.environment??y.PRODUCTION,"/switchnetworkethereum.png"),h=v(a.config.environment??y.PRODUCTION,"/switchnetworkzkevm.png"),u=O(n),g=n===j(a.config),m=i.useCallback((async()=>{if(!a)return;const e=await a.switchNetwork({provider:r,chainId:n});s&&s(e.provider)}),[a,r,s,n]),f=I(r),L=i.useMemo((()=>f?r.provider?.session?.peer?.metadata?.name:""),[r,f]),k=i.useMemo((()=>L?.toLowerCase().includes("metamask")),[L]),x=i.useMemo((()=>E(r)?"MetaMask wallet":f&&L?L:"wallet"),[r,f,L]),C=f&&k;return i.useEffect((()=>{(new Image).src=d;(new Image).src=h}),[]),t(P,{size:"threeQuarter",visible:e,onCloseDrawer:o,showHeaderBar:!1,children:c(P.Content,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center"},children:[t(M,{aspectRatio:"21:9",use:t("img",{src:g?d:h,alt:l("drawers.networkSwitch.heading",{wallet:x})})}),t(p,{icon:"Close",variant:"tertiary",sx:{pos:"absolute",top:"base.spacing.x5",left:"base.spacing.x5",backdropFilter:"blur(30px)"},onClick:o}),c(b,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"base.spacing.x4",paddingX:"base.spacing.x6"},children:[t(H,{size:"small",weight:"bold",sx:{textAlign:"center",paddingX:"base.spacing.x6"},children:l("drawers.networkSwitch.heading",{wallet:x})}),C&&t(S,{size:"medium",weight:"regular",sx:{color:"base.color.text.body.secondary",textAlign:"center",paddingX:"base.spacing.x6"},children:l("drawers.networkSwitch.manualSwitch.body",{chain:u})}),!C&&t(S,{size:"medium",weight:"regular",sx:{color:"base.color.text.body.secondary",textAlign:"center",paddingX:"base.spacing.x6"},children:l("drawers.networkSwitch.controlledSwitch.body",{chain:u})})]}),c(b,{sx:{display:"flex",flexDirection:"column",paddingX:"base.spacing.x4",width:"100%"},children:[!C&&t(A,{size:"large",variant:"primary",sx:{width:"100%",marginBottom:"base.spacing.x2"},onClick:m,children:l("drawers.networkSwitch.switchButton",{chain:u})}),t(D,{})]})]})})}function Oe({onClick:e,icon:n,name:r,symbol:a,balance:i,defaultTokenImage:o,testId:s,id:l}){const{t:d}=w();return c(B,{testId:`${s}-coin-selector__option-${l}`,emphasized:!0,size:"small",onClick:e,children:[t(B.FramedImage,{circularFrame:!0,use:t(Y,{src:n,name:r,defaultImage:o})}),t(B.Label,{children:r}),t(B.Caption,{children:a}),i&&t(B.PriceDisplay,{fiatAmount:`${d("drawers.coinSelector.option.fiatPricePrefix")}${i.formattedFiatAmount}`,price:i.formattedAmount})]})}ve.displayName="Accordion",ve.TargetLeftSlot=Le,ve.TargetRightSlot=ke,ve.ExpandedContent=pe;const je={display:"flex",flexDirection:"column",gap:"2px",paddingX:"base.spacing.x4",paddingBottom:"base.spacing.x4"},Ie={display:"flex",flexDirection:"column",rowGap:"base.spacing.x2"};function Ee({heading:e,options:n,defaultTokenImage:r,optionsLoading:a,children:i,onCloseDrawer:o,visible:s}){const{t:l}=w();return c(P,{headerBarTitle:e,size:"full",onCloseDrawer:o,visible:s,children:[t(P.Target,{children:i}),t(P.Content,{children:c(b,{sx:je,children:[a&&0===n.length&&c(b,{sx:Ie,children:[t(B,{shimmer:!0,emphasized:!0,testId:"balance-item-shimmer--1"}),t(B,{shimmer:!0,emphasized:!0,testId:"balance-item-shimmer--2"}),t(B,{shimmer:!0,emphasized:!0,testId:"balance-item-shimmer--3"})]}),!a&&0===n.length&&t(S,{sx:{padding:"base.spacing.x4"},children:l("drawers.coinSelector.noCoins")}),!a&&n.map((({onClick:e,icon:n,name:a,symbol:i,balance:o,id:s,testId:l})=>t(Oe,{id:s,testId:l,onClick:e,icon:n,name:a,symbol:i,balance:o,defaultTokenImage:r},`${i}-${a}`)))]})})]})}function Me({testId:e,options:n,optionsLoading:r,subtext:a,onSelectChange:o,textAlign:s,errorMessage:l,disabled:d,selectedOption:p,coinSelectorHeading:h,defaultTokenImage:u,environment:g=y.PRODUCTION,theme:m=Z.DARK}){const[f,L]=i.useState(!1),k=i.useMemo((()=>n.map((t=>({...t,testId:e,onClick:()=>{o(t.id),L(!1)}})))),[n,o,L]),x=n?.find((e=>e.id===p))??p;return c(b,{children:[t(Ee,{heading:h,options:k,defaultTokenImage:u,optionsLoading:r??!1,visible:f,onCloseDrawer:()=>L(!1)}),t(T,{testId:`${e}-select-control`,textAlign:s??"left",subtext:l?void 0:a,isErrored:!!l,errorMessage:l,children:t(F,{testId:`${e}-select`,size:"large",defaultLabel:"Select coin",targetClickOveride:()=>L(!0),selectedOption:(()=>{if(p&&0!==n.length&&n.find((e=>e.id===p)))return p})(),sx:{minw:"170px"},children:x&&c(F.Option,{optionKey:x.id,testId:x.testId,disabled:d,children:[!x.icon&&t(F.Option.Icon,{icon:"Coins",variant:"bold"}),x.icon&&t(F.Option.FramedImage,{use:t(Y,{environment:g,theme:m,src:x.icon,name:x.name}),circularFrame:!0,sx:{background:"base.color.translucent.standard.100"}}),t(F.Option.Label,{children:x.symbol})]},x.id)})})]})}function He({testId:e,value:n,placeholder:r,errorMessage:a,validator:i,onTextInputChange:o,onTextInputBlur:s,onTextInputFocus:l,onTextInputEnter:c,textAlign:d,type:p,subtext:h,maxButtonClick:u,disabled:b}){return t(T,{testId:`${e}-text-control`,textAlign:d??"left",subtext:a?void 0:h,isErrored:!!a,errorMessage:a,sx:{width:"100%"},children:t(z,{testId:`${e}-text`,onChange:e=>((e,t)=>{let n=e.target.value;"number"===p&&"."===n&&(n="0."),i(n)?o(n):o(t??"")})(e,n),sizeVariant:"large",value:n,validationStatus:a?"error":"success",placeholder:r,onBlur:e=>{if(!s)return;const t=e.target.value;i(t)&&s(t)},onFocus:e=>{if(!l)return;const t=e.target.value;i(t)&&l(t)},onKeyDown:e=>{c&&"Enter"===e.key&&c()},disabled:b,hideClearValueButton:!0,sx:{minWidth:"100%"},children:u&&t(z.Button,{testId:`${e}-max-button`,onClick:u,disabled:b,children:"max"})})})}const Se={display:"flex",flexDirection:"column",height:"100%",padding:"16px 16px 0 16px"},Ae={display:"flex",flexDirection:"column",gap:"10px",height:"100%"},De={display:"flex",width:"100%"},Pe=e=>({width:"65%",color:e?"base.color.text.body.primary":"base.color.text.body.secondary"}),Be={width:"35%"},Fe={display:"flex",flexDirection:"column",rowGap:"base.spacing.x2"};function Te({boldLabel:e,label:n,amount:r,fiatAmount:a,tokenSymbol:i,prefix:o=""}){const s=n.toLowerCase().replace(" ","-");return c(b,{sx:De,testId:`fee-item-${s}`,children:[t(S,{sx:Pe(e),children:n}),t(W,{testId:s,sx:Be,price:`${o}${i} ${r}`,fiatAmount:a})]})}function Ze({fees:e,children:n,visible:r,onCloseDrawer:a,totalFiatAmount:i,totalAmount:o,tokenSymbol:s,loading:l=!1}){const{t:d}=w();return c(P,{headerBarTitle:d("drawers.feesBreakdown.heading"),size:"threeQuarter",onCloseDrawer:a,visible:r,children:[t(P.Target,{children:n}),c(P.Content,{testId:"fees-breakdown-content",sx:Se,children:[c(b,{sx:Ae,children:[l&&c(b,{sx:Fe,children:[t(B,{shimmer:!0,emphasized:!0,testId:"balance-item-shimmer--1"}),t(B,{shimmer:!0,emphasized:!0,testId:"balance-item-shimmer--2"})]}),!l&&e.map((({label:e,amount:n,fiatAmount:r,prefix:a,token:i})=>t(Te,{label:e,amount:n,fiatAmount:r,tokenSymbol:i.symbol??s,prefix:a},e))),o&&c(N,{children:[t(C,{size:"xSmall"}),t(Te,{label:d("drawers.feesBreakdown.total"),amount:_(o),fiatAmount:i?`≈ ${d("drawers.feesBreakdown.fees.fiatPricePrefix")}${i}`:$("0"),tokenSymbol:s,boldLabel:!0},d("drawers.feesBreakdown.total"))]})]}),t(D,{})]})]})}const ze={backgroundColor:"base.color.translucent.emphasis.100"},We={marginBottom:"base.spacing.x4",color:"base.color.text.body.secondary"};function Ne({gasFeeValue:e,gasFeeToken:n,gasFeeFiatValue:r,fees:a,onFeesClick:o,loading:s,sx:l}){const[d,p]=i.useState(!1),{t:h}=w();if(!e&&!s)return null;const u=$(_(e)),g=n?.symbol;return c(N,{children:[c(ve,{targetClickOveride:()=>{p(!0),o?.()},sx:{...ze,paddingBottom:"base.spacing.x2",...l},children:[t(ve.TargetLeftSlot,{children:t(S,{size:"medium",sx:We,children:h("drawers.feesBreakdown.heading")})}),c(ve.TargetRightSlot,{children:[s&&t(b,{sx:{width:"218px",position:"relative"},children:t(b,{sx:{display:"block",position:"absolute",top:"-15px",width:"100%",height:"68px",WebkitMaskPosition:"right center",WebkitMaskRepeat:"no-repeat",WebkitMaskSize:"contain",WebkitMaskImage:'url(\'data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" width="196" height="96"><path d="M182.85 55.2Q181.65 54 180 54h-56q-1.7 0-2.85 1.2Q120 56.35 120 58v4q0 1.7 1.15 2.85Q122.3 66 124 66h56q1.65 0 2.85-1.15Q184 63.7 184 62v-4q0-1.65-1.15-2.8m0-22Q181.65 32 180 32H68q-1.7 0-2.85 1.2Q64 34.35 64 36v8q0 1.7 1.15 2.85Q66.3 48 68 48h112q1.65 0 2.85-1.15Q184 45.7 184 44v-8q0-1.65-1.15-2.8Z" id="a"/></svg>\')'},rc:t("span",{}),children:t(R,{rc:t("span",{})})})}),!s&&t(W,{testId:"fees-gas-fee__priceDisplay",fiatAmount:`≈ ${h("drawers.feesBreakdown.fees.fiatPricePrefix")}${r}`,price:`~ ${g} ${$(_(u))}`})]})]}),t(Ze,{tokenSymbol:g??"",fees:a,visible:d,loading:s,onCloseDrawer:()=>p(!1)})]})}const _e={display:"flex",flexDirection:"column",alignItems:"center",paddingY:"50px",paddingX:"base.spacing.x4",height:"100%"},$e={color:"base.color.text.body.secondary",fontFamily:"base.font.family.heading.secondary",textAlign:"center",marginTop:"15px"},Re={display:"flex",flexDirection:"column",justifyContent:"flex-end",gap:"8px",height:"100%",width:"100%"},Ve={width:"100%",height:"64px"};function Qe({onCloseDrawer:e,visible:n,showHeaderBar:r,onRetry:a}){const{t:i}=w();return t(P,{headerBarTitle:void 0,size:"full",onCloseDrawer:e,visible:n,showHeaderBar:r,children:t(P.Content,{children:c(b,{sx:_e,children:[t(V,{icon:"Information",colorVariant:"guidance",iconVariant:"bold"}),c(H,{size:"small",sx:$e,testId:"transaction-rejected-heading",children:[i("drawers.transactionFailed.content.heading1"),t("br",{}),i("drawers.transactionFailed.content.heading2")]}),c(S,{sx:$e,children:[i("drawers.transactionFailed.content.body1"),t("br",{}),i("drawers.transactionFailed.content.body2")]}),c(b,{sx:Re,children:[t(A,{sx:Ve,variant:"tertiary",onClick:a,children:i("drawers.transactionFailed.buttons.retry")}),t(A,{sx:Ve,variant:"tertiary",onClick:e,testId:"transaction-rejected-cancel-button",children:i("drawers.transactionFailed.buttons.cancel")})]})]})})})}function qe(){return t(b,{testId:"wallet-approve-hero",sx:{...Q,background:"base.color.translucent.emphasis.100"},children:t(b,{sx:{...q,...X},children:c("svg",{width:"430",height:"305",viewBox:"0 0 430 305",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("path",{d:"M227.517 171.325L182.178 85.6034C181.033 83.4446 179.583 82.3652 178.156 82.3652C175.711 82.3652 174.322 84.1157 172.863 86.6218L137.285 164.056L183.689 253.776L227.522 171.32L227.517 171.325Z",fill:"black",stroke:"black",strokeWidth:"0.469297",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M226.841 137.597C228.497 133.997 228.338 128.188 226.484 124.682L197.866 70.5767C196.012 67.0757 193.14 67.1508 191.484 70.7503L164.936 128.427L168.399 134.936L165.396 141.464L168.85 147.992L171.853 141.464L175.307 147.992L172.304 154.52L168.85 147.992L165.846 154.52L169.3 161.048L166.287 167.562L187.922 208.465C189.776 211.966 192.648 211.891 194.304 208.292L226.845 137.597H226.841Z",fill:"#F191FA"}),t("path",{d:"M168.85 147.992L165.396 141.464L168.399 134.936L164.936 128.427L191.484 70.7503C193.14 67.1508 196.012 67.0757 197.866 70.5767L226.484 124.682C228.338 128.188 228.497 133.997 226.841 137.597H226.845L194.304 208.292C192.648 211.891 189.776 211.966 187.922 208.465L166.287 167.562L169.3 161.048L165.846 154.52L168.85 147.992ZM168.85 147.992L171.853 141.464L175.307 147.992L172.304 154.52L168.85 147.992Z",stroke:"black",strokeWidth:"0.469297",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M159.384 154.519L155.93 147.991L158.939 141.463L162.388 147.991L159.384 154.519Z",fill:"#F191FA"}),t("path",{d:"M203.136 132.773C202.484 134.19 201.353 134.223 200.621 132.843L196.101 124.297C195.369 122.917 195.308 120.627 195.961 119.21L200.621 109.082C201.273 107.665 202.404 107.632 203.136 109.012L207.656 117.558C208.388 118.938 208.449 121.228 207.796 122.645L203.136 132.773Z",fill:"#EBE9E9",stroke:"black",strokeWidth:"0.469297",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M206.22 114.837L204.68 118.183C204.174 119.286 203.291 119.309 202.724 118.234L199.345 111.852",stroke:"black",strokeWidth:"0.469297",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M197.542 127.015L199.058 123.716C199.565 122.613 200.447 122.589 201.015 123.664L204.394 130.046",stroke:"black",strokeWidth:"0.469297",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M293.369 250.453L252.263 172.733C249.936 168.331 243.957 164.731 238.982 164.731H173.769C171.516 164.731 169.306 164.14 167.358 163.014L162.876 160.423C160.929 159.297 158.718 158.706 156.466 158.706H147.896L141.237 164.534L189.659 256C190.612 257.493 192.452 258.417 194.939 258.417L287.456 258.445L291.473 260.904L293.904 255.733H293.895C294.556 254.315 294.449 252.471 293.379 250.448L293.369 250.453Z",fill:"#EBE9E9",stroke:"black",strokeWidth:"0.469297",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M232.923 169.903L235.354 164.731",stroke:"black",strokeWidth:"0.469297",strokeMiterlimit:"10"}),t("path",{d:"M249.832 177.908C247.505 173.506 241.526 169.907 236.551 169.907L142.025 169.878C139.355 169.878 137.436 168.813 136.549 167.128L186.313 261.185C187.266 262.677 189.105 263.602 191.592 263.602L286.118 263.63C291.098 263.63 293.266 260.03 290.938 255.633L249.832 177.913V177.908Z",fill:"#EBE9E9",stroke:"black",strokeWidth:"0.469297",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M255.328 198.77L245.041 179.313C243.581 176.548 240.235 174.042 237.161 174.042L143.555 173.93",stroke:"black",strokeWidth:"0.469297",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M188.64 259.548L282.448 259.558C285.569 259.558 286.418 257.577 285.198 255.264L276.103 238.064",stroke:"black",strokeWidth:"0.469297",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M150.238 159.776C150.965 161.151 149.539 163.338 147.051 164.652C144.564 165.966 141.96 165.919 141.227 164.539C140.495 163.159 141.927 160.977 144.414 159.663C145.62 159.025 146.854 158.71 147.891 158.71C148.99 158.71 149.863 159.067 150.238 159.776Z",fill:"#EBE9E9",stroke:"black",strokeWidth:"0.469297",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M147.826 161.052C148.164 161.69 147.502 162.704 146.348 163.314C145.193 163.924 143.983 163.9 143.645 163.262C143.307 162.624 143.969 161.61 145.123 161C145.681 160.705 146.254 160.559 146.737 160.559C147.249 160.559 147.652 160.723 147.826 161.057V161.052Z",fill:"black"}),t("path",{d:"M171.652 85.828L136.755 161.652C135.788 163.75 135.784 165.669 136.549 167.124C136.549 167.124 137.717 169.874 142.025 169.874C146.333 169.874 151.754 169.907 151.754 169.907L153.115 167.5L143.419 167.467C139.669 167.467 137.637 165.186 139.205 161.779L174.163 85.8233C175.223 83.5238 176.678 82.3646 178.156 82.3646C178.156 82.3646 173.431 81.961 171.652 85.8233V85.828Z",fill:"#EBE9E9",stroke:"black",strokeWidth:"0.469297",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M273.579 230.377L277.263 229.767L287.024 238.458L278.347 222.051L270.373 223.609L273.579 230.377Z",fill:"black"}),t("path",{d:"M274.968 235.918C272.495 231.239 272.777 228.33 278.296 226.565C281.262 225.617 283.951 224.073 286.255 221.98L291.328 217.371C295.725 213.378 297.049 205.813 294.275 200.561C291.497 195.31 285.626 194.282 281.233 198.276L275.071 203.874C272.983 205.775 270.327 206.939 267.516 207.206C261.79 207.746 259.392 206.456 256.769 201.495L255.399 206.127L271.073 235.923H274.973L274.968 235.918Z",fill:"#EBE9E9"}),t("path",{d:"M274.968 235.918C272.495 231.239 272.776 228.33 278.295 226.565C281.261 225.617 283.95 224.073 286.255 221.98L291.328 217.371C295.725 213.378 297.048 205.813 294.275 200.561C291.497 195.31 285.626 194.282 281.233 198.276L275.071 203.874C272.983 205.775 270.327 206.939 267.516 207.206C261.79 207.746 259.392 206.456 256.769 201.495",stroke:"black",strokeWidth:"0.469297",strokeMiterlimit:"10"}),t("path",{d:"M289.926 200.125C287.265 199.276 284.074 201.829 282.793 205.832C281.512 209.835 282.629 213.768 285.29 214.617L286.533 215.016L291.17 200.524L289.926 200.125Z",fill:"black",stroke:"black",strokeWidth:"0.469297",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M293.683 209.321C294.963 205.319 293.846 201.386 291.187 200.535C288.528 199.685 285.335 202.239 284.055 206.241C282.775 210.242 283.892 214.176 286.551 215.026C289.21 215.877 292.403 213.322 293.683 209.321Z",fill:"#EBE9E9",stroke:"black",strokeWidth:"0.469297",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M213.26 224.182C211.237 224.182 208.816 222.722 207.868 220.934L189.021 185.301C188.077 183.513 188.955 182.053 190.978 182.053L231.3 182.039C233.322 182.039 235.744 183.499 236.692 185.287L255.539 220.92C256.482 222.708 255.604 224.168 253.582 224.168L213.26 224.182Z",fill:"black",stroke:"black",strokeWidth:"0.469297",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M214.334 222.319C212.312 222.319 209.89 220.859 208.942 219.071L190.095 183.438C189.884 183.034 189.767 182.649 189.729 182.292C188.64 182.776 188.302 183.944 189.02 185.301L207.867 220.934C208.811 222.722 211.237 224.182 213.26 224.182L253.582 224.168C255.144 224.168 256.022 223.29 255.9 222.065C255.557 222.22 255.14 222.305 254.652 222.305L214.33 222.319H214.334Z",fill:"#EBE9E9",stroke:"black",strokeWidth:"0.469297",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M231.586 203.083L233.646 206.978H228.756H223.871H218.981H215.513C214.733 206.978 214.363 207.489 214.691 208.109L215.555 209.737C215.883 210.361 216.794 210.873 217.577 210.873H221.046H225.936L227.395 213.632C227.724 214.256 228.634 214.763 229.418 214.763H231.464C232.243 214.763 232.614 214.252 232.285 213.628L230.826 210.868H235.716H239.184C239.963 210.868 240.334 210.352 240.005 209.732L238.546 206.973L237.086 204.214C236.758 203.589 235.847 203.083 235.063 203.083H231.595H231.586Z",fill:"#F191FA"}),t("path",{d:"M214.855 199.191L216.315 201.951C216.648 202.575 217.554 203.086 218.342 203.086H221.81H226.696H231.586L230.126 200.322C229.793 199.698 228.887 199.187 228.099 199.187H224.631H219.746H214.855V199.191Z",fill:"#F191FA"}),t("path",{d:"M214.986 187.501C214.207 187.501 213.837 188.013 214.165 188.632L215.625 191.392H210.735H207.266C206.487 191.392 206.117 191.903 206.445 192.527L207.905 195.287L209.364 198.046C209.693 198.671 210.603 199.177 211.387 199.177H214.855L212.795 195.282H217.685H222.57H227.46H230.928C231.707 195.282 232.078 194.771 231.75 194.147L230.891 192.523C230.558 191.899 229.652 191.387 228.868 191.387H225.4H220.51L219.051 188.628C218.722 188.003 217.812 187.497 217.028 187.497H214.982L214.986 187.501Z",fill:"#F191FA"}),t("path",{d:"M214.098 243.795L212.428 240.641C211.78 239.412 210.109 238.412 208.725 238.412H202.849L200.428 233.832C199.78 232.602 198.114 231.603 196.725 231.603H191.751C191 231.603 190.483 231.898 190.263 232.363L189.066 234.906L191.464 235.826L192.835 238.417H186.959C186.208 238.417 185.692 238.712 185.471 239.177L184.275 241.721L186.612 242.528L187.288 243.804C187.935 245.034 189.606 246.033 190.99 246.033H196.866L199.287 250.614C199.935 251.843 201.601 252.843 202.99 252.843H205.032L208.256 254.631L209.452 252.087C209.635 251.693 209.607 251.177 209.307 250.614L206.885 246.033H210.194L213.057 247.817L214.253 245.273C214.441 244.879 214.408 244.363 214.108 243.8L214.098 243.795Z",fill:"black",stroke:"black",strokeWidth:"0.469297",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M212.902 246.339L211.231 243.185C210.584 241.956 208.913 240.956 207.529 240.956H201.653L199.231 236.376C198.584 235.151 196.918 234.146 195.529 234.146H190.554C189.165 234.146 188.564 235.151 189.212 236.38L191.634 240.961H185.758C184.369 240.961 183.763 241.97 184.416 243.195L186.086 246.348C186.734 247.578 188.405 248.577 189.789 248.577H195.665L198.086 253.158C198.734 254.387 200.4 255.387 201.789 255.387H206.764C208.153 255.387 208.753 254.383 208.106 253.153L205.684 248.573H211.56C212.949 248.573 213.554 247.564 212.902 246.339Z",fill:"black",stroke:"black",strokeWidth:"0.469297",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M208.107 253.158L205.685 248.573",stroke:"#EBE9E9",strokeWidth:"0.469297",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M191.634 240.96H185.758",stroke:"#EBE9E9",strokeWidth:"0.469297",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M212.902 246.339L211.231 243.185C210.584 241.956 208.913 240.956 207.528 240.956H201.653L199.231 236.376C198.584 235.151 196.918 234.146 195.528 234.146H190.554",stroke:"#EBE9E9",strokeWidth:"0.469297",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M356.061 232.632L355.632 231L354 231.429L354.429 233.061L356.061 232.632Z",fill:"white"}),t("path",{d:"M57.6531 168.341L57.1006 166.24L54.9996 166.793L55.5521 168.894L57.6531 168.341Z",fill:"white"}),t("path",{d:"M103.489 244.345L101.345 244L101 246.145L103.144 246.49L103.489 244.345Z",fill:"white"}),t("path",{d:"M341.286 111.905L341.905 110.619L340.619 110L340 111.286L341.286 111.905Z",fill:"white"}),t("path",{d:"M323.144 179.08L322.592 176.979L320.491 177.531L321.043 179.632L323.144 179.08Z",fill:"white"}),t("path",{d:"M328.919 177.658L329.538 176.372L328.252 175.753L327.633 177.039L328.919 177.658Z",fill:"white"}),t("path",{d:"M88.1441 141.383L87.2188 140.296L86.1321 141.221L87.0574 142.308L88.1441 141.383Z",fill:"white"}),t("path",{d:"M258.286 89.9052L258.905 88.6191L257.619 88L257 89.2861L258.286 89.9052Z",fill:"white"})]})})})}const Xe=async({checkout:e,provider:t,allowTokenListType:n,chainId:r,allowZero:a=!1,retryPolicy:i=J})=>{const o=r||(await e.getNetworkInfo({provider:t})).chainId,s=await t.getSigner().getAddress(),l=await ee((()=>e.getAllBalances({provider:t,walletAddress:s,chainId:o})),{...i});if(void 0===l)return;const c=await e.getTokenAllowList({chainId:o,type:n}),d=new Map;c.tokens.forEach((e=>d.set(e.address?.toLowerCase()||K,!0)));const p=l.balances.filter((e=>!(e.balance.lte(0)&&!a)&&d.get(e.token.address?.toLowerCase()||K))).map((t=>({...t,token:{...t.token,icon:G(e.config.environment,U(t.token.address)?t.token.symbol:t.token.address??"")}})))??[];return c.tokens=c.tokens.map((t=>({...t,icon:G(e.config.environment,U(t.address)?t.symbol:t.address??"")}))),{allowList:c,allowedBalances:p}};export{ve as A,Ne as F,ye as N,Me as S,He as T,qe as W,Qe as a,Xe as g};
@@ -1 +0,0 @@
1
- import{dn as n,dp as t}from"./index-2ff66ff9.js";function i(i){return n(this,void 0,void 0,(function(){var n;return t(this,(function(t){switch(t.label){case 0:return[4,import("./index.umd-398b40c3.js").then((function(n){return n.i}))];case 1:return n=t.sent(),i._plugins=n,[2]}}))}))}export{i as loadLegacyVideoPlugins};