@imtbl/sdk 1.39.5-alpha → 1.39.6-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.
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.39.5-alpha';
165
+ const SDK_VERSION$1 = '1.39.6-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.39.5-alpha' };
14192
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.39.6-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.39.5-alpha',
14264
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.39.6-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.39.5-alpha' };
14738
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.39.6-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.39.5-alpha',
14779
+ sdkVersion: 'ts-immutable-sdk-1.39.6-alpha.2',
14780
14780
  baseConfig,
14781
14781
  });
14782
14782
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -27571,6 +27571,421 @@ var PassportEvents;
27571
27571
  const isUserZkEvm = (user) => !!user.zkEvm;
27572
27572
  const isUserImx = (user) => !!user.imx;
27573
27573
 
27574
+ /* eslint-disable max-len */
27575
+ const PASSPORT_OVERLAY_ID = 'passport-overlay';
27576
+ const PASSPORT_OVERLAY_CLOSE_ID = `${PASSPORT_OVERLAY_ID}-close`;
27577
+ const PASSPORT_OVERLAY_TRY_AGAIN_ID = `${PASSPORT_OVERLAY_ID}-try-again`;
27578
+ const CLOSE_BUTTON_SVG = `
27579
+ <svg
27580
+ viewBox="0 0 20 20"
27581
+ fill="none"
27582
+ xmlns="http://www.w3.org/2000/svg"
27583
+ style="width: 20px !important;"
27584
+ >
27585
+ <path
27586
+ d="M16.25 5.75833L14.2417 3.75L10 7.99167L5.75833 3.75L3.75 5.75833L7.99167 10L3.75 14.2417L5.75833 16.25L10 12.0083L14.2417 16.25L16.25 14.2417L12.0083 10L16.25 5.75833Z"
27587
+ fill="#F3F3F3"
27588
+ />
27589
+ </svg>
27590
+ `;
27591
+ const POPUP_BLOCKED_SVG = `
27592
+ <svg
27593
+ viewBox="0 0 17 16"
27594
+ fill="none"
27595
+ xmlns="http://www.w3.org/2000/svg"
27596
+ style="width: 16px !important;"
27597
+ >
27598
+ <path
27599
+ fill-rule="evenodd"
27600
+ clip-rule="evenodd"
27601
+ d="M0.5 14.3333L8.5 0.333336L16.5 14.3333H0.5ZM9.16667 10.6667V12H7.83333V10.6667H9.16667ZM9.16667 5.33334L9.16667 9.33334H7.83333L7.83333 5.33334H9.16667Z"
27602
+ fill="#E01A3D"
27603
+ />
27604
+ </svg>
27605
+ `;
27606
+ const IMMUTABLE_LOGO_SVG = `
27607
+ <svg
27608
+ style="
27609
+ max-width: 123px !important;
27610
+ margin-bottom: 24px !important;
27611
+ "
27612
+ viewBox="0 0 124 112"
27613
+ fill="none"
27614
+ xmlns="http://www.w3.org/2000/svg"
27615
+ >
27616
+ <g clip-path="url(#clip0_332_47939)">
27617
+ <g clip-path="url(#clip1_332_47939)">
27618
+ <path
27619
+ d="M4.10008 74.9453H0.5V93.6041H4.10008V74.9453Z"
27620
+ fill="#F3F3F3"
27621
+ />
27622
+ <path
27623
+ d="M22.9585 80.0212C21.1727 80.0212 19.5283 80.7622 18.5505 82.3115C17.8209 80.8013 16.3595 80.0212 14.4691 80.0212C12.864 80.0212 11.3786 80.7231 10.4792 82.1681V80.282H7.00976V93.6063H10.4792V86.2032C10.4792 84.3432 11.7445 82.9503 13.3475 82.9503H13.5565C14.9787 82.9503 15.643 83.8477 15.643 85.6187V93.6085H19.1124V86.2054C19.1124 84.3453 20.3647 82.9525 21.9676 82.9525H22.1767C23.5989 82.9525 24.237 83.8499 24.237 85.6208V93.6106H27.7064V85.2188C27.7064 83.6435 27.3274 82.3832 26.5717 81.4315C25.8029 80.4949 24.6029 80.0256 22.9585 80.0256V80.0212Z"
27624
+ fill="#F3F3F3"
27625
+ />
27626
+ <path
27627
+ d="M46.0291 80.0212C44.2432 80.0212 42.5989 80.7622 41.621 82.3115C40.8914 80.8013 39.43 80.0212 37.5396 80.0212C35.9345 80.0212 34.4492 80.7231 33.5497 82.1681V80.282H30.0803V93.6063H33.5497V86.2032C33.5497 84.3432 34.8151 82.9503 36.418 82.9503H36.6271C38.0493 82.9503 38.7135 83.8477 38.7135 85.6187V93.6085H42.1829V86.2054C42.1829 84.3453 43.4352 82.9525 45.0381 82.9525H45.2472C46.6694 82.9525 47.3075 83.8499 47.3075 85.6208V93.6106H50.7769V85.2188C50.7769 83.6435 50.398 82.3832 49.6422 81.4315C48.8734 80.4949 47.6734 80.0256 46.0291 80.0256V80.0212Z"
27628
+ fill="#F3F3F3"
27629
+ />
27630
+ <path
27631
+ d="M72.3077 89.2061V83.0785H75.2936V80.282H72.3077V75.9622H68.8383V80.282H61.4312V87.6851C61.4312 89.5451 60.192 91.0683 58.6805 91.0683H58.4715C57.2061 91.0683 56.4896 90.1318 56.4896 88.413V80.282H53.0202V88.8041C53.0202 90.3534 53.3991 91.5746 54.1549 92.4872C54.8975 93.4107 56.0322 93.867 57.5328 93.867C59.188 93.867 60.6102 93.0218 61.4312 91.655V93.6063H64.9006V83.0807H68.8405V90.1448C68.8405 92.396 70.0536 93.6063 72.3099 93.6063H75.7009V90.6794H73.7843C72.5582 90.6794 72.3099 90.4317 72.3099 89.2083L72.3077 89.2061Z"
27632
+ fill="#F3F3F3"
27633
+ />
27634
+ <path
27635
+ d="M88.0757 84.8082C88.0757 81.7378 85.8325 80.0191 82.4676 80.0191C79.1027 80.0191 77.0033 81.8791 76.7158 84.404H80.1982C80.2766 83.5979 81.0977 82.8156 82.35 82.8156H82.5722C83.8506 82.8156 84.7109 83.7391 84.7109 84.9364V85.2623L81.346 85.5622C79.9108 85.6795 78.7369 86.0945 77.8243 86.8246C76.9118 87.5525 76.4544 88.5934 76.4544 89.9471C76.4152 92.2895 78.4363 93.8888 80.8364 93.8627C82.5438 93.8627 83.9529 93.1348 84.7871 91.9766C84.8132 92.6785 84.8655 93.226 84.9439 93.6019H88.2042C88.1127 92.9783 88.0735 92.0005 88.0735 90.675V84.806L88.0757 84.8082ZM84.7109 88.1653C84.7109 89.8428 83.3148 91.0661 81.738 91.0661H81.5289C80.5772 91.0661 79.8737 90.5316 79.8737 89.7124C79.8737 89.204 80.0697 88.8281 80.4596 88.5543C80.8516 88.2805 81.3068 88.124 81.8164 88.0849L84.7109 87.785V88.1653Z"
27636
+ fill="#F3F3F3"
27637
+ />
27638
+ <path
27639
+ d="M97.7935 80.0212C96.0076 80.0212 94.5201 81.036 93.9452 82.0116V74.9475H90.4758V93.6063H93.9452V91.8766C94.5201 92.8523 96.0055 93.867 97.7935 93.867C101.537 93.9322 103.765 90.5881 103.726 86.9441C103.765 83.3002 101.535 79.956 97.7935 80.0212ZM97.2055 91.0683H96.9964C95.4044 91.1074 93.919 89.3908 93.9452 86.9441C93.919 84.4974 95.4065 82.7808 96.9964 82.8199H97.2055C98.9522 82.8199 100.257 84.4192 100.257 86.9181C100.257 89.4169 98.9391 91.0683 97.2055 91.0683Z"
27640
+ fill="#F3F3F3"
27641
+ />
27642
+ <path
27643
+ d="M108.931 74.9453H105.462V93.6041H108.931V74.9453Z"
27644
+ fill="#F3F3F3"
27645
+ />
27646
+ <path
27647
+ d="M117.057 80.0212C113.146 79.9691 110.667 82.9612 110.706 86.9441C110.641 91.1987 113.705 93.9192 117.057 93.867C120.33 93.867 122.443 92.0461 123.094 89.3908H119.651C119.403 90.3665 118.555 91.0683 117.303 91.0683H117.081C115.633 91.0683 114.2 89.8189 114.069 88.0371H123.094C123.133 87.4656 123.147 87.0484 123.147 86.7877C123.186 82.8982 120.956 79.9821 117.057 80.0212ZM114.071 85.3688C114.15 83.7934 115.363 82.8178 116.824 82.8178H117.033C118.495 82.8178 119.708 83.7934 119.784 85.3688H114.071Z"
27648
+ fill="#F3F3F3"
27649
+ />
27650
+ </g>
27651
+ <path
27652
+ d="M30.4851 101.025V109H32.0581V106.195H33.2571C35.0941 106.195 36.7221 105.7 36.7221 103.665C36.7221 101.256 34.8521 101.025 33.2131 101.025H30.4851ZM33.2461 102.257C34.1041 102.257 35.1051 102.367 35.1051 103.676C35.1051 104.732 34.3351 104.974 33.3561 104.974H32.0581V102.257H33.2461Z"
27653
+ fill="#F3F3F3"
27654
+ />
27655
+ <path
27656
+ d="M36.9683 109H38.5743L39.1353 107.383H42.2373L42.7983 109H44.5034L41.5224 101.025H39.9383L36.9683 109ZM40.6863 102.95L41.7863 106.096H39.5863L40.6863 102.95Z"
27657
+ fill="#F3F3F3"
27658
+ />
27659
+ <path
27660
+ d="M49.1875 105.689C50.0345 105.843 50.6615 106.096 50.6615 106.778C50.6615 107.636 49.7705 107.889 49.0665 107.889C48.1205 107.889 47.3065 107.537 47.1305 106.371H45.6125C45.7555 108.087 47.0535 109.143 49.0115 109.143C50.6175 109.143 52.2455 108.34 52.2455 106.701C52.2455 105.051 50.8155 104.534 49.5175 104.303L48.4725 104.116C47.8345 103.995 47.3615 103.687 47.3615 103.126C47.3615 102.411 48.1755 102.136 48.9015 102.136C49.6495 102.136 50.4635 102.444 50.5845 103.379H52.1025C52.0255 101.85 50.6175 100.882 48.9675 100.882C47.4935 100.882 45.7885 101.586 45.7885 103.192C45.7885 104.578 46.8775 105.249 48.1755 105.502L49.1875 105.689Z"
27661
+ fill="#F3F3F3"
27662
+ />
27663
+ <path
27664
+ d="M57.5244 105.689C58.3714 105.843 58.9984 106.096 58.9984 106.778C58.9984 107.636 58.1074 107.889 57.4034 107.889C56.4574 107.889 55.6434 107.537 55.4674 106.371H53.9494C54.0924 108.087 55.3904 109.143 57.3484 109.143C58.9544 109.143 60.5824 108.34 60.5824 106.701C60.5824 105.051 59.1524 104.534 57.8544 104.303L56.8094 104.116C56.1714 103.995 55.6984 103.687 55.6984 103.126C55.6984 102.411 56.5124 102.136 57.2384 102.136C57.9864 102.136 58.8004 102.444 58.9214 103.379H60.4394C60.3624 101.85 58.9544 100.882 57.3044 100.882C55.8304 100.882 54.1254 101.586 54.1254 103.192C54.1254 104.578 55.2144 105.249 56.5124 105.502L57.5244 105.689Z"
27665
+ fill="#F3F3F3"
27666
+ />
27667
+ <path
27668
+ d="M62.5544 101.025V109H64.1274V106.195H65.3264C67.1634 106.195 68.7914 105.7 68.7914 103.665C68.7914 101.256 66.9214 101.025 65.2824 101.025H62.5544ZM65.3154 102.257C66.1734 102.257 67.1744 102.367 67.1744 103.676C67.1744 104.732 66.4044 104.974 65.4254 104.974H64.1274V102.257H65.3154Z"
27669
+ fill="#F3F3F3"
27670
+ />
27671
+ <path
27672
+ d="M71.8888 105.007C71.8888 103.137 72.9228 102.136 74.1658 102.136C75.4088 102.136 76.4428 103.137 76.4428 105.007C76.4428 106.877 75.4088 107.889 74.1658 107.889C72.9228 107.889 71.8888 106.877 71.8888 105.007ZM78.0708 105.007C78.0708 102.532 76.5418 100.882 74.1658 100.882C71.7898 100.882 70.2608 102.532 70.2608 105.007C70.2608 107.482 71.7898 109.143 74.1658 109.143C76.5418 109.143 78.0708 107.482 78.0708 105.007Z"
27673
+ fill="#F3F3F3"
27674
+ />
27675
+ <path
27676
+ d="M85.0133 109H86.7623L84.9913 105.546C85.9813 105.128 86.4323 104.358 86.4323 103.445C86.4323 101.773 85.4313 101.025 82.8023 101.025H80.1843V109H81.7573V105.876H83.0553H83.4293L85.0133 109ZM82.9783 102.257C84.0453 102.257 84.8153 102.532 84.8153 103.456C84.8153 104.237 84.2763 104.655 83.0553 104.655H81.7573V102.257H82.9783Z"
27677
+ fill="#F3F3F3"
27678
+ />
27679
+ <path
27680
+ d="M90.1424 109H91.7154V102.301H94.1794V101.025H87.6894V102.301H90.1424V109Z"
27681
+ fill="#F3F3F3"
27682
+ />
27683
+ <g clip-path="url(#clip2_332_47939)">
27684
+ <circle
27685
+ cx="61.5"
27686
+ cy="30"
27687
+ r="28.125"
27688
+ fill="url(#paint0_radial_332_47939)"
27689
+ />
27690
+ <circle
27691
+ cx="61.5"
27692
+ cy="30"
27693
+ r="28.125"
27694
+ fill="url(#paint1_radial_332_47939)"
27695
+ />
27696
+ <path
27697
+ d="M61.5 0C44.9315 0 31.5 13.4315 31.5 30C31.5 46.5685 44.9315 60 61.5 60C78.0685 60 91.5 46.5685 91.5 30C91.5 13.4315 78.0685 0 61.5 0ZM60.3397 11.4576C61.1729 11.0494 62.0508 11.0774 62.8588 11.5359C65.6603 13.1323 68.4534 14.7428 71.2325 16.37C72.1272 16.8956 72.5857 17.7372 72.5885 18.7717C72.6053 22.3979 72.5997 26.0214 72.5885 29.6477C72.5885 29.7819 72.5019 29.9776 72.3928 30.0419C71.3164 30.685 70.226 31.3029 69.0433 31.9851V31.4147C69.0433 27.685 69.0322 23.9581 69.0517 20.2283C69.0545 19.5126 68.8085 19.0513 68.1738 18.6906C64.9222 16.8425 61.6873 14.9609 58.4469 13.0904C58.3071 13.0093 58.1701 12.9226 57.9576 12.794C58.7908 12.3215 59.5401 11.8462 60.3341 11.4576H60.3397ZM59.7442 48.5564C59.5624 48.4641 59.4282 48.3998 59.2968 48.3243C55.0051 45.8499 50.719 43.3588 46.4133 40.904C45.2055 40.2162 44.6547 39.2349 44.6687 37.8565C44.6938 34.9264 44.6855 31.9963 44.6715 29.0634C44.6659 27.7409 45.2027 26.7819 46.3658 26.1221C49.3882 24.4026 52.3938 22.658 55.3993 20.9105C55.6594 20.7596 55.8495 20.7344 56.1207 20.8966C57.158 21.52 58.2148 22.1156 59.3192 22.753C59.1095 22.8788 58.9501 22.9739 58.788 23.069C55.5335 24.9478 52.2847 26.8322 49.0219 28.6999C48.4879 29.0047 48.239 29.4017 48.2446 30.0224C48.2614 32.3318 48.2642 34.6412 48.2446 36.9506C48.239 37.5881 48.4935 37.9935 49.0415 38.3066C52.4832 40.2749 55.911 42.2656 59.35 44.2395C59.6407 44.4073 59.7637 44.5806 59.7582 44.9273C59.733 46.11 59.7498 47.2954 59.7498 48.5592L59.7442 48.5564ZM59.7442 41.9413C59.445 41.7707 59.2297 41.6505 59.0144 41.5247C56.2856 39.9506 53.5596 38.3709 50.8253 36.808C50.5289 36.6403 50.4199 36.4585 50.4226 36.1146C50.4422 34.3392 50.4338 32.5638 50.4282 30.7884C50.4282 30.548 50.4646 30.383 50.7022 30.2488C51.7088 29.6869 52.7041 29.0997 53.7022 28.5266C53.7749 28.4846 53.8532 28.4539 53.9846 28.3896V30.383C53.9846 31.4623 54.0014 32.5443 53.979 33.6235C53.9651 34.2386 54.2027 34.6552 54.7395 34.9571C56.2856 35.8294 57.8122 36.7353 59.3583 37.6048C59.6631 37.7754 59.7554 37.9655 59.7498 38.301C59.7302 39.4809 59.7414 40.6636 59.7414 41.9385L59.7442 41.9413ZM56.5932 18.6375C56.0144 18.2964 55.5196 18.2992 54.9408 18.6375C51.6976 20.5331 48.4404 22.4035 45.1859 24.2824C45.0489 24.3635 44.9063 24.4362 44.6631 24.5676C44.7498 23.3318 44.4842 22.1659 44.9063 21.0363C45.1356 20.4185 45.5662 19.9543 46.1365 19.6244C48.8514 18.0559 51.5634 16.4846 54.2838 14.9245C55.2763 14.3541 56.2884 14.3681 57.281 14.9413C60.3705 16.7195 63.4571 18.5033 66.5382 20.2926C66.6696 20.3681 66.8346 20.5387 66.8346 20.6673C66.8569 21.9366 66.8486 23.2088 66.8486 24.5704C65.7274 23.9245 64.6929 23.3262 63.6584 22.7279C61.3015 21.3663 58.939 20.0186 56.5932 18.6375ZM78.3033 38.5974C78.2223 39.5955 77.6379 40.3029 76.774 40.8006C73.4664 42.7018 70.1617 44.6142 66.8569 46.521C65.8197 47.1193 64.7824 47.7176 63.7423 48.3159C63.6165 48.3886 63.4879 48.4501 63.3173 48.5396C63.3061 48.3663 63.2922 48.2404 63.2922 48.1146C63.2922 47.0186 63.2978 45.9254 63.2866 44.8294C63.2866 44.5806 63.3453 44.4296 63.5746 44.2982C68.3947 41.5247 73.212 38.7428 78.0266 35.9637C78.0993 35.9217 78.1803 35.8882 78.3173 35.8239C78.3173 36.7968 78.3732 37.7027 78.3033 38.5974ZM78.3285 31.6971C78.3201 32.8322 77.7078 33.6291 76.7377 34.1883C72.9688 36.3551 69.2027 38.5331 65.4366 40.7083C64.7488 41.1053 64.0582 41.4995 63.3201 41.9245C63.3089 41.7372 63.295 41.6142 63.295 41.4883C63.295 40.4091 63.3062 39.3271 63.2866 38.2479C63.281 37.9404 63.3844 37.7782 63.65 37.6244C67.075 35.6589 70.4888 33.671 73.9194 31.7167C74.5289 31.37 74.7973 30.9422 74.7917 30.2265C74.7665 26.4967 74.7805 22.767 74.7805 19.0373V18.3858C75.6752 18.9254 76.514 19.37 77.2801 19.9124C77.979 20.4073 78.3313 21.1566 78.3341 22.0205C78.3453 25.247 78.3537 28.4734 78.3313 31.6999L78.3285 31.6971Z"
27698
+ fill="#131313"
27699
+ />
27700
+ <path
27701
+ fill-rule="evenodd"
27702
+ clip-rule="evenodd"
27703
+ d="M61.5 0C44.9315 0 31.5 13.4315 31.5 30C31.5 46.5685 44.9315 60 61.5 60C78.0685 60 91.5 46.5685 91.5 30C91.5 13.4315 78.0685 0 61.5 0ZM61.5 2.5C46.3122 2.5 34 14.8122 34 30C34 45.1878 46.3122 57.5 61.5 57.5C76.6878 57.5 89 45.1878 89 30C89 14.8122 76.6878 2.5 61.5 2.5Z"
27704
+ fill="url(#paint2_radial_332_47939)"
27705
+ />
27706
+ <path
27707
+ fill-rule="evenodd"
27708
+ clip-rule="evenodd"
27709
+ d="M61.5 0C44.9315 0 31.5 13.4315 31.5 30C31.5 46.5685 44.9315 60 61.5 60C78.0685 60 91.5 46.5685 91.5 30C91.5 13.4315 78.0685 0 61.5 0ZM61.5 2.5C46.3122 2.5 34 14.8122 34 30C34 45.1878 46.3122 57.5 61.5 57.5C76.6878 57.5 89 45.1878 89 30C89 14.8122 76.6878 2.5 61.5 2.5Z"
27710
+ fill="url(#paint3_radial_332_47939)"
27711
+ />
27712
+ </g>
27713
+ </g>
27714
+ <defs>
27715
+ <radialGradient
27716
+ id="paint0_radial_332_47939"
27717
+ cx="0"
27718
+ cy="0"
27719
+ r="1"
27720
+ gradientUnits="userSpaceOnUse"
27721
+ gradientTransform="translate(48.3053 16.7373) rotate(44.9817) scale(58.4359 123.929)"
27722
+ >
27723
+ <stop stop-color="#A3EEF8" />
27724
+ <stop offset="0.177083" stop-color="#A4DCF5" />
27725
+ <stop offset="0.380208" stop-color="#A6AEEC" />
27726
+ <stop offset="1" stop-color="#ECBEE1" />
27727
+ </radialGradient>
27728
+ <radialGradient
27729
+ id="paint1_radial_332_47939"
27730
+ cx="0"
27731
+ cy="0"
27732
+ r="1"
27733
+ gradientUnits="userSpaceOnUse"
27734
+ gradientTransform="translate(63.9394 54.6335) rotate(84.265) scale(30.2672 57.9018)"
27735
+ >
27736
+ <stop stop-color="#FCF5EE" />
27737
+ <stop offset="0.715135" stop-color="#ECBEE1" stop-opacity="0" />
27738
+ </radialGradient>
27739
+ <radialGradient
27740
+ id="paint2_radial_332_47939"
27741
+ cx="0"
27742
+ cy="0"
27743
+ r="1"
27744
+ gradientUnits="userSpaceOnUse"
27745
+ gradientTransform="translate(47.4257 15.8532) rotate(44.9817) scale(62.3316 132.191)"
27746
+ >
27747
+ <stop stop-color="#A3EEF8" />
27748
+ <stop offset="0.177083" stop-color="#A4DCF5" />
27749
+ <stop offset="0.380208" stop-color="#A6AEEC" />
27750
+ <stop offset="1" stop-color="#ECBEE1" />
27751
+ </radialGradient>
27752
+ <radialGradient
27753
+ id="paint3_radial_332_47939"
27754
+ cx="0"
27755
+ cy="0"
27756
+ r="1"
27757
+ gradientUnits="userSpaceOnUse"
27758
+ gradientTransform="translate(64.102 56.2758) rotate(84.265) scale(32.2851 61.7619)"
27759
+ >
27760
+ <stop stop-color="#FCF5EE" />
27761
+ <stop offset="0.715135" stop-color="#ECBEE1" stop-opacity="0" />
27762
+ </radialGradient>
27763
+ <clipPath id="clip0_332_47939">
27764
+ <rect
27765
+ width="123"
27766
+ height="112"
27767
+ fill="white"
27768
+ transform="translate(0.5)"
27769
+ />
27770
+ </clipPath>
27771
+ <clipPath id="clip1_332_47939">
27772
+ <rect
27773
+ width="123"
27774
+ height="19"
27775
+ fill="white"
27776
+ transform="translate(0.5 75)"
27777
+ />
27778
+ </clipPath>
27779
+ <clipPath id="clip2_332_47939">
27780
+ <rect
27781
+ width="60"
27782
+ height="60"
27783
+ fill="white"
27784
+ transform="translate(31.5)"
27785
+ />
27786
+ </clipPath>
27787
+ </defs>
27788
+ </svg>
27789
+ `;
27790
+
27791
+ const getCloseButton = () => `
27792
+ <button
27793
+ id="${PASSPORT_OVERLAY_CLOSE_ID}"
27794
+ style="
27795
+ background: #f3f3f326 !important;
27796
+ border: none !important;
27797
+ border-radius: 50% !important;
27798
+ width: 48px !important;
27799
+ height: 48px !important;
27800
+ position: absolute !important;
27801
+ top: 40px !important;
27802
+ right: 40px !important;
27803
+ cursor: pointer !important;
27804
+ display: flex !important;
27805
+ align-items: center !important;
27806
+ justify-content: center !important;
27807
+ "
27808
+ >
27809
+ ${CLOSE_BUTTON_SVG}
27810
+ </button>
27811
+ `;
27812
+ const getBlockedContents = () => `
27813
+ <div
27814
+ style="
27815
+ color: #e01a3d !important;
27816
+ display: flex !important;
27817
+ align-items: center !important;
27818
+ gap: 4px !important;
27819
+ margin-bottom: 10px !important;
27820
+ "
27821
+ >
27822
+ ${POPUP_BLOCKED_SVG}
27823
+ Pop-up blocked
27824
+ </div>
27825
+ <p style="
27826
+ color: #b6b6b6 !important;
27827
+ text-align: center !important;
27828
+ margin: 0 !important;
27829
+ "
27830
+ >
27831
+ Please try again below.<br />
27832
+ If the problem continues, adjust your<br />
27833
+ browser settings.
27834
+ </p>
27835
+ `;
27836
+ const getGenericContents = () => `
27837
+ <p style="
27838
+ color: #b6b6b6 !important;
27839
+ text-align: center !important;
27840
+ margin: 0 !important;
27841
+ "
27842
+ >
27843
+ Secure pop-up not showing?<br />We'll help you re-launch
27844
+ </p>
27845
+ `;
27846
+ const getTryAgainButton = () => `
27847
+ <button
27848
+ id="${PASSPORT_OVERLAY_TRY_AGAIN_ID}"
27849
+ style="
27850
+ margin-top: 27px !important;
27851
+ color: #f3f3f3 !important;
27852
+ background: transparent !important;
27853
+ padding: 12px 24px !important;
27854
+ border-radius: 30px !important;
27855
+ border: 2px solid #f3f3f3 !important;
27856
+ font-size: 1em !important;
27857
+ font-weight: 500 !important;
27858
+ cursor: pointer !important;
27859
+ "
27860
+ >
27861
+ Try again
27862
+ </button>
27863
+ `;
27864
+ const getOverlay = (contents) => `
27865
+ <div
27866
+ id="${PASSPORT_OVERLAY_ID}"
27867
+ style="
27868
+ position: fixed !important;
27869
+ top: 0 !important;
27870
+ left: 0 !important;
27871
+ width: 100% !important;
27872
+ height: 100% !important;
27873
+ background: rgba(13, 13, 13, 0.48) !important;
27874
+ backdrop-filter: blur(28px) !important;
27875
+ -webkit-backdrop-filter: blur(28px) !important;
27876
+ display: flex !important;
27877
+ flex-direction: column !important;
27878
+ justify-content: center !important;
27879
+ align-items: center !important;
27880
+ font-size: 16px !important;
27881
+ line-height: 1.5 !important;
27882
+ font-family: Roboto !important;
27883
+ font-style: normal !important;
27884
+ font-weight: 400 !important;
27885
+ font-feature-settings: 'clig' off, 'liga' off !important;
27886
+ z-index: 2147483647 !important;
27887
+ "
27888
+ >
27889
+ ${getCloseButton()}
27890
+ <div
27891
+ style="
27892
+ display: flex !important;
27893
+ flex-direction: column !important;
27894
+ align-items: center !important;
27895
+ max-width: 400px !important;
27896
+ "
27897
+ >
27898
+ ${IMMUTABLE_LOGO_SVG}
27899
+ ${contents}
27900
+ ${getTryAgainButton()}
27901
+ </div>
27902
+ </div>
27903
+ `;
27904
+ function addLink({ id, href, rel, crossOrigin, }) {
27905
+ const fullId = `${PASSPORT_OVERLAY_ID}-${id}`;
27906
+ if (!document.getElementById(fullId)) {
27907
+ const link = document.createElement('link');
27908
+ link.id = fullId;
27909
+ link.href = href;
27910
+ if (rel)
27911
+ link.rel = rel;
27912
+ if (crossOrigin)
27913
+ link.crossOrigin = crossOrigin;
27914
+ document.head.appendChild(link);
27915
+ }
27916
+ }
27917
+ const getBlockedOverlay = () => getOverlay(getBlockedContents());
27918
+ const getGenericOverlay = () => getOverlay(getGenericContents());
27919
+
27920
+ class Overlay {
27921
+ disableGenericPopupOverlay;
27922
+ disableBlockedPopupOverlay;
27923
+ overlay;
27924
+ isBlockedOverlay;
27925
+ tryAgainListener;
27926
+ onCloseListener;
27927
+ constructor(popupOverlayOptions, isBlockedOverlay = false) {
27928
+ this.disableBlockedPopupOverlay = popupOverlayOptions.disableBlockedPopupOverlay || false;
27929
+ this.disableGenericPopupOverlay = popupOverlayOptions.disableGenericPopupOverlay || false;
27930
+ this.isBlockedOverlay = isBlockedOverlay;
27931
+ }
27932
+ append(tryAgainOnClick, onCloseClick) {
27933
+ if (this.shouldAppendOverlay()) {
27934
+ this.appendOverlay();
27935
+ this.updateTryAgainButton(tryAgainOnClick);
27936
+ this.updateCloseButton(onCloseClick);
27937
+ }
27938
+ }
27939
+ update(tryAgainOnClick) {
27940
+ this.updateTryAgainButton(tryAgainOnClick);
27941
+ }
27942
+ remove() {
27943
+ if (this.overlay) {
27944
+ this.overlay.remove();
27945
+ }
27946
+ }
27947
+ shouldAppendOverlay() {
27948
+ if (this.disableGenericPopupOverlay && this.disableBlockedPopupOverlay)
27949
+ return false;
27950
+ if (this.disableGenericPopupOverlay && !this.isBlockedOverlay)
27951
+ return false;
27952
+ if (this.disableBlockedPopupOverlay && this.isBlockedOverlay)
27953
+ return false;
27954
+ return true;
27955
+ }
27956
+ appendOverlay() {
27957
+ if (!this.overlay) {
27958
+ addLink({ id: 'link-googleapis', href: 'https://fonts.googleapis.com' });
27959
+ addLink({ id: 'link-gstatic', href: 'https://fonts.gstatic.com', crossOrigin: 'anonymous' });
27960
+ addLink({ id: 'link-roboto', href: 'https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap', rel: 'stylesheet' });
27961
+ const overlay = document.createElement('div');
27962
+ overlay.innerHTML = this.isBlockedOverlay ? getBlockedOverlay() : getGenericOverlay();
27963
+ document.body.insertAdjacentElement('beforeend', overlay);
27964
+ this.overlay = overlay;
27965
+ }
27966
+ }
27967
+ updateTryAgainButton(tryAgainOnClick) {
27968
+ const tryAgainButton = document.getElementById(PASSPORT_OVERLAY_TRY_AGAIN_ID);
27969
+ if (tryAgainButton) {
27970
+ if (this.tryAgainListener) {
27971
+ tryAgainButton.removeEventListener('click', this.tryAgainListener);
27972
+ }
27973
+ this.tryAgainListener = tryAgainOnClick;
27974
+ tryAgainButton.addEventListener('click', tryAgainOnClick);
27975
+ }
27976
+ }
27977
+ updateCloseButton(onCloseClick) {
27978
+ const closeButton = document.getElementById(PASSPORT_OVERLAY_CLOSE_ID);
27979
+ if (closeButton) {
27980
+ if (this.onCloseListener) {
27981
+ closeButton.removeEventListener('click', this.onCloseListener);
27982
+ }
27983
+ this.onCloseListener = onCloseClick;
27984
+ closeButton.addEventListener('click', onCloseClick);
27985
+ }
27986
+ }
27987
+ }
27988
+
27574
27989
  const formUrlEncodedHeader = {
27575
27990
  headers: {
27576
27991
  'Content-Type': 'application/x-www-form-urlencoded',
@@ -27695,17 +28110,63 @@ class AuthManager {
27695
28110
  */
27696
28111
  async login(anonymousId) {
27697
28112
  return withPassportError(async () => {
27698
- const rid = getDetail(Detail$1.RUNTIME_ID);
27699
- const popupWindowFeatures = { width: 410, height: 450 };
27700
- const oidcUser = await this.userManager.signinPopup({
28113
+ const popupWindowTarget = 'passportLoginPrompt';
28114
+ const signinPopup = async () => (this.userManager.signinPopup({
27701
28115
  extraQueryParams: {
27702
28116
  ...(this.userManager.settings?.extraQueryParams ?? {}),
27703
- rid: rid || '',
28117
+ rid: getDetail(Detail$1.RUNTIME_ID) || '',
27704
28118
  third_party_a_id: anonymousId || '',
27705
28119
  },
27706
- popupWindowFeatures,
28120
+ popupWindowFeatures: {
28121
+ width: 410,
28122
+ height: 450,
28123
+ },
28124
+ popupWindowTarget,
28125
+ }));
28126
+ // This promise attempts to open the signin popup, and displays the blocked popup overlay if necessary.
28127
+ return new Promise((resolve, reject) => {
28128
+ signinPopup()
28129
+ .then((oidcUser) => {
28130
+ resolve(AuthManager.mapOidcUserToDomainModel(oidcUser));
28131
+ })
28132
+ .catch((error) => {
28133
+ // Reject with the error if it is not caused by a blocked popup
28134
+ if (!(error instanceof Error) || error.message !== 'Attempted to navigate on a disposed window') {
28135
+ reject(error);
28136
+ }
28137
+ // Popup was blocked; append the blocked popup overlay to allow the user to try again.
28138
+ let popupHasBeenOpened = false;
28139
+ const overlay = new Overlay(this.config.popupOverlayOptions, true);
28140
+ overlay.append(async () => {
28141
+ try {
28142
+ if (!popupHasBeenOpened) {
28143
+ // The user is attempting to open the popup again. It's safe to assume that this will not fail,
28144
+ // as there are no async operations between the button interaction & the popup being opened.
28145
+ popupHasBeenOpened = true;
28146
+ const oidcUser = await signinPopup();
28147
+ overlay.remove();
28148
+ resolve(AuthManager.mapOidcUserToDomainModel(oidcUser));
28149
+ }
28150
+ else {
28151
+ // The popup has already been opened. By calling `window.open` with the same target as the
28152
+ // previously opened popup, no new window will be opened. Instead, the existing popup
28153
+ // will be focused. This works as expected in most browsers at the time of implementation, but
28154
+ // the following exceptions do exist:
28155
+ // - Safari: Only the initial call will focus the window, subsequent calls will do nothing.
28156
+ // - Firefox: The window will not be focussed, nothing will happen.
28157
+ window.open('', popupWindowTarget);
28158
+ }
28159
+ }
28160
+ catch (retryError) {
28161
+ overlay.remove();
28162
+ reject(retryError);
28163
+ }
28164
+ }, () => {
28165
+ overlay.remove();
28166
+ reject(new Error('Popup closed by user'));
28167
+ });
28168
+ });
27707
28169
  });
27708
- return AuthManager.mapOidcUserToDomainModel(oidcUser);
27709
28170
  }, PassportErrorType.AUTHENTICATION_ERROR);
27710
28171
  }
27711
28172
  async getUserOrLogin() {
@@ -28747,419 +29208,6 @@ const openPopupCenter = ({ url, title, width, height, }) => {
28747
29208
  return newWindow;
28748
29209
  };
28749
29210
 
28750
- /* eslint-disable max-len */
28751
- const PASSPORT_OVERLAY_ID = 'passport-overlay';
28752
- const PASSPORT_OVERLAY_CLOSE_ID = `${PASSPORT_OVERLAY_ID}-close`;
28753
- const PASSPORT_OVERLAY_TRY_AGAIN_ID = `${PASSPORT_OVERLAY_ID}-try-again`;
28754
- const CLOSE_BUTTON_SVG = `
28755
- <svg
28756
- viewBox="0 0 20 20"
28757
- fill="none"
28758
- xmlns="http://www.w3.org/2000/svg"
28759
- style="width: 20px !important;"
28760
- >
28761
- <path
28762
- d="M16.25 5.75833L14.2417 3.75L10 7.99167L5.75833 3.75L3.75 5.75833L7.99167 10L3.75 14.2417L5.75833 16.25L10 12.0083L14.2417 16.25L16.25 14.2417L12.0083 10L16.25 5.75833Z"
28763
- fill="#F3F3F3"
28764
- />
28765
- </svg>
28766
- `;
28767
- const POPUP_BLOCKED_SVG = `
28768
- <svg
28769
- viewBox="0 0 17 16"
28770
- fill="none"
28771
- xmlns="http://www.w3.org/2000/svg"
28772
- style="width: 16px !important;"
28773
- >
28774
- <path
28775
- fill-rule="evenodd"
28776
- clip-rule="evenodd"
28777
- d="M0.5 14.3333L8.5 0.333336L16.5 14.3333H0.5ZM9.16667 10.6667V12H7.83333V10.6667H9.16667ZM9.16667 5.33334L9.16667 9.33334H7.83333L7.83333 5.33334H9.16667Z"
28778
- fill="#E01A3D"
28779
- />
28780
- </svg>
28781
- `;
28782
- const IMMUTABLE_LOGO_SVG = `
28783
- <svg
28784
- style="
28785
- max-width: 123px !important;
28786
- margin-bottom: 24px !important;
28787
- "
28788
- viewBox="0 0 124 112"
28789
- fill="none"
28790
- xmlns="http://www.w3.org/2000/svg"
28791
- >
28792
- <g clip-path="url(#clip0_332_47939)">
28793
- <g clip-path="url(#clip1_332_47939)">
28794
- <path
28795
- d="M4.10008 74.9453H0.5V93.6041H4.10008V74.9453Z"
28796
- fill="#F3F3F3"
28797
- />
28798
- <path
28799
- d="M22.9585 80.0212C21.1727 80.0212 19.5283 80.7622 18.5505 82.3115C17.8209 80.8013 16.3595 80.0212 14.4691 80.0212C12.864 80.0212 11.3786 80.7231 10.4792 82.1681V80.282H7.00976V93.6063H10.4792V86.2032C10.4792 84.3432 11.7445 82.9503 13.3475 82.9503H13.5565C14.9787 82.9503 15.643 83.8477 15.643 85.6187V93.6085H19.1124V86.2054C19.1124 84.3453 20.3647 82.9525 21.9676 82.9525H22.1767C23.5989 82.9525 24.237 83.8499 24.237 85.6208V93.6106H27.7064V85.2188C27.7064 83.6435 27.3274 82.3832 26.5717 81.4315C25.8029 80.4949 24.6029 80.0256 22.9585 80.0256V80.0212Z"
28800
- fill="#F3F3F3"
28801
- />
28802
- <path
28803
- d="M46.0291 80.0212C44.2432 80.0212 42.5989 80.7622 41.621 82.3115C40.8914 80.8013 39.43 80.0212 37.5396 80.0212C35.9345 80.0212 34.4492 80.7231 33.5497 82.1681V80.282H30.0803V93.6063H33.5497V86.2032C33.5497 84.3432 34.8151 82.9503 36.418 82.9503H36.6271C38.0493 82.9503 38.7135 83.8477 38.7135 85.6187V93.6085H42.1829V86.2054C42.1829 84.3453 43.4352 82.9525 45.0381 82.9525H45.2472C46.6694 82.9525 47.3075 83.8499 47.3075 85.6208V93.6106H50.7769V85.2188C50.7769 83.6435 50.398 82.3832 49.6422 81.4315C48.8734 80.4949 47.6734 80.0256 46.0291 80.0256V80.0212Z"
28804
- fill="#F3F3F3"
28805
- />
28806
- <path
28807
- d="M72.3077 89.2061V83.0785H75.2936V80.282H72.3077V75.9622H68.8383V80.282H61.4312V87.6851C61.4312 89.5451 60.192 91.0683 58.6805 91.0683H58.4715C57.2061 91.0683 56.4896 90.1318 56.4896 88.413V80.282H53.0202V88.8041C53.0202 90.3534 53.3991 91.5746 54.1549 92.4872C54.8975 93.4107 56.0322 93.867 57.5328 93.867C59.188 93.867 60.6102 93.0218 61.4312 91.655V93.6063H64.9006V83.0807H68.8405V90.1448C68.8405 92.396 70.0536 93.6063 72.3099 93.6063H75.7009V90.6794H73.7843C72.5582 90.6794 72.3099 90.4317 72.3099 89.2083L72.3077 89.2061Z"
28808
- fill="#F3F3F3"
28809
- />
28810
- <path
28811
- d="M88.0757 84.8082C88.0757 81.7378 85.8325 80.0191 82.4676 80.0191C79.1027 80.0191 77.0033 81.8791 76.7158 84.404H80.1982C80.2766 83.5979 81.0977 82.8156 82.35 82.8156H82.5722C83.8506 82.8156 84.7109 83.7391 84.7109 84.9364V85.2623L81.346 85.5622C79.9108 85.6795 78.7369 86.0945 77.8243 86.8246C76.9118 87.5525 76.4544 88.5934 76.4544 89.9471C76.4152 92.2895 78.4363 93.8888 80.8364 93.8627C82.5438 93.8627 83.9529 93.1348 84.7871 91.9766C84.8132 92.6785 84.8655 93.226 84.9439 93.6019H88.2042C88.1127 92.9783 88.0735 92.0005 88.0735 90.675V84.806L88.0757 84.8082ZM84.7109 88.1653C84.7109 89.8428 83.3148 91.0661 81.738 91.0661H81.5289C80.5772 91.0661 79.8737 90.5316 79.8737 89.7124C79.8737 89.204 80.0697 88.8281 80.4596 88.5543C80.8516 88.2805 81.3068 88.124 81.8164 88.0849L84.7109 87.785V88.1653Z"
28812
- fill="#F3F3F3"
28813
- />
28814
- <path
28815
- d="M97.7935 80.0212C96.0076 80.0212 94.5201 81.036 93.9452 82.0116V74.9475H90.4758V93.6063H93.9452V91.8766C94.5201 92.8523 96.0055 93.867 97.7935 93.867C101.537 93.9322 103.765 90.5881 103.726 86.9441C103.765 83.3002 101.535 79.956 97.7935 80.0212ZM97.2055 91.0683H96.9964C95.4044 91.1074 93.919 89.3908 93.9452 86.9441C93.919 84.4974 95.4065 82.7808 96.9964 82.8199H97.2055C98.9522 82.8199 100.257 84.4192 100.257 86.9181C100.257 89.4169 98.9391 91.0683 97.2055 91.0683Z"
28816
- fill="#F3F3F3"
28817
- />
28818
- <path
28819
- d="M108.931 74.9453H105.462V93.6041H108.931V74.9453Z"
28820
- fill="#F3F3F3"
28821
- />
28822
- <path
28823
- d="M117.057 80.0212C113.146 79.9691 110.667 82.9612 110.706 86.9441C110.641 91.1987 113.705 93.9192 117.057 93.867C120.33 93.867 122.443 92.0461 123.094 89.3908H119.651C119.403 90.3665 118.555 91.0683 117.303 91.0683H117.081C115.633 91.0683 114.2 89.8189 114.069 88.0371H123.094C123.133 87.4656 123.147 87.0484 123.147 86.7877C123.186 82.8982 120.956 79.9821 117.057 80.0212ZM114.071 85.3688C114.15 83.7934 115.363 82.8178 116.824 82.8178H117.033C118.495 82.8178 119.708 83.7934 119.784 85.3688H114.071Z"
28824
- fill="#F3F3F3"
28825
- />
28826
- </g>
28827
- <path
28828
- d="M30.4851 101.025V109H32.0581V106.195H33.2571C35.0941 106.195 36.7221 105.7 36.7221 103.665C36.7221 101.256 34.8521 101.025 33.2131 101.025H30.4851ZM33.2461 102.257C34.1041 102.257 35.1051 102.367 35.1051 103.676C35.1051 104.732 34.3351 104.974 33.3561 104.974H32.0581V102.257H33.2461Z"
28829
- fill="#F3F3F3"
28830
- />
28831
- <path
28832
- d="M36.9683 109H38.5743L39.1353 107.383H42.2373L42.7983 109H44.5034L41.5224 101.025H39.9383L36.9683 109ZM40.6863 102.95L41.7863 106.096H39.5863L40.6863 102.95Z"
28833
- fill="#F3F3F3"
28834
- />
28835
- <path
28836
- d="M49.1875 105.689C50.0345 105.843 50.6615 106.096 50.6615 106.778C50.6615 107.636 49.7705 107.889 49.0665 107.889C48.1205 107.889 47.3065 107.537 47.1305 106.371H45.6125C45.7555 108.087 47.0535 109.143 49.0115 109.143C50.6175 109.143 52.2455 108.34 52.2455 106.701C52.2455 105.051 50.8155 104.534 49.5175 104.303L48.4725 104.116C47.8345 103.995 47.3615 103.687 47.3615 103.126C47.3615 102.411 48.1755 102.136 48.9015 102.136C49.6495 102.136 50.4635 102.444 50.5845 103.379H52.1025C52.0255 101.85 50.6175 100.882 48.9675 100.882C47.4935 100.882 45.7885 101.586 45.7885 103.192C45.7885 104.578 46.8775 105.249 48.1755 105.502L49.1875 105.689Z"
28837
- fill="#F3F3F3"
28838
- />
28839
- <path
28840
- d="M57.5244 105.689C58.3714 105.843 58.9984 106.096 58.9984 106.778C58.9984 107.636 58.1074 107.889 57.4034 107.889C56.4574 107.889 55.6434 107.537 55.4674 106.371H53.9494C54.0924 108.087 55.3904 109.143 57.3484 109.143C58.9544 109.143 60.5824 108.34 60.5824 106.701C60.5824 105.051 59.1524 104.534 57.8544 104.303L56.8094 104.116C56.1714 103.995 55.6984 103.687 55.6984 103.126C55.6984 102.411 56.5124 102.136 57.2384 102.136C57.9864 102.136 58.8004 102.444 58.9214 103.379H60.4394C60.3624 101.85 58.9544 100.882 57.3044 100.882C55.8304 100.882 54.1254 101.586 54.1254 103.192C54.1254 104.578 55.2144 105.249 56.5124 105.502L57.5244 105.689Z"
28841
- fill="#F3F3F3"
28842
- />
28843
- <path
28844
- d="M62.5544 101.025V109H64.1274V106.195H65.3264C67.1634 106.195 68.7914 105.7 68.7914 103.665C68.7914 101.256 66.9214 101.025 65.2824 101.025H62.5544ZM65.3154 102.257C66.1734 102.257 67.1744 102.367 67.1744 103.676C67.1744 104.732 66.4044 104.974 65.4254 104.974H64.1274V102.257H65.3154Z"
28845
- fill="#F3F3F3"
28846
- />
28847
- <path
28848
- d="M71.8888 105.007C71.8888 103.137 72.9228 102.136 74.1658 102.136C75.4088 102.136 76.4428 103.137 76.4428 105.007C76.4428 106.877 75.4088 107.889 74.1658 107.889C72.9228 107.889 71.8888 106.877 71.8888 105.007ZM78.0708 105.007C78.0708 102.532 76.5418 100.882 74.1658 100.882C71.7898 100.882 70.2608 102.532 70.2608 105.007C70.2608 107.482 71.7898 109.143 74.1658 109.143C76.5418 109.143 78.0708 107.482 78.0708 105.007Z"
28849
- fill="#F3F3F3"
28850
- />
28851
- <path
28852
- d="M85.0133 109H86.7623L84.9913 105.546C85.9813 105.128 86.4323 104.358 86.4323 103.445C86.4323 101.773 85.4313 101.025 82.8023 101.025H80.1843V109H81.7573V105.876H83.0553H83.4293L85.0133 109ZM82.9783 102.257C84.0453 102.257 84.8153 102.532 84.8153 103.456C84.8153 104.237 84.2763 104.655 83.0553 104.655H81.7573V102.257H82.9783Z"
28853
- fill="#F3F3F3"
28854
- />
28855
- <path
28856
- d="M90.1424 109H91.7154V102.301H94.1794V101.025H87.6894V102.301H90.1424V109Z"
28857
- fill="#F3F3F3"
28858
- />
28859
- <g clip-path="url(#clip2_332_47939)">
28860
- <circle
28861
- cx="61.5"
28862
- cy="30"
28863
- r="28.125"
28864
- fill="url(#paint0_radial_332_47939)"
28865
- />
28866
- <circle
28867
- cx="61.5"
28868
- cy="30"
28869
- r="28.125"
28870
- fill="url(#paint1_radial_332_47939)"
28871
- />
28872
- <path
28873
- d="M61.5 0C44.9315 0 31.5 13.4315 31.5 30C31.5 46.5685 44.9315 60 61.5 60C78.0685 60 91.5 46.5685 91.5 30C91.5 13.4315 78.0685 0 61.5 0ZM60.3397 11.4576C61.1729 11.0494 62.0508 11.0774 62.8588 11.5359C65.6603 13.1323 68.4534 14.7428 71.2325 16.37C72.1272 16.8956 72.5857 17.7372 72.5885 18.7717C72.6053 22.3979 72.5997 26.0214 72.5885 29.6477C72.5885 29.7819 72.5019 29.9776 72.3928 30.0419C71.3164 30.685 70.226 31.3029 69.0433 31.9851V31.4147C69.0433 27.685 69.0322 23.9581 69.0517 20.2283C69.0545 19.5126 68.8085 19.0513 68.1738 18.6906C64.9222 16.8425 61.6873 14.9609 58.4469 13.0904C58.3071 13.0093 58.1701 12.9226 57.9576 12.794C58.7908 12.3215 59.5401 11.8462 60.3341 11.4576H60.3397ZM59.7442 48.5564C59.5624 48.4641 59.4282 48.3998 59.2968 48.3243C55.0051 45.8499 50.719 43.3588 46.4133 40.904C45.2055 40.2162 44.6547 39.2349 44.6687 37.8565C44.6938 34.9264 44.6855 31.9963 44.6715 29.0634C44.6659 27.7409 45.2027 26.7819 46.3658 26.1221C49.3882 24.4026 52.3938 22.658 55.3993 20.9105C55.6594 20.7596 55.8495 20.7344 56.1207 20.8966C57.158 21.52 58.2148 22.1156 59.3192 22.753C59.1095 22.8788 58.9501 22.9739 58.788 23.069C55.5335 24.9478 52.2847 26.8322 49.0219 28.6999C48.4879 29.0047 48.239 29.4017 48.2446 30.0224C48.2614 32.3318 48.2642 34.6412 48.2446 36.9506C48.239 37.5881 48.4935 37.9935 49.0415 38.3066C52.4832 40.2749 55.911 42.2656 59.35 44.2395C59.6407 44.4073 59.7637 44.5806 59.7582 44.9273C59.733 46.11 59.7498 47.2954 59.7498 48.5592L59.7442 48.5564ZM59.7442 41.9413C59.445 41.7707 59.2297 41.6505 59.0144 41.5247C56.2856 39.9506 53.5596 38.3709 50.8253 36.808C50.5289 36.6403 50.4199 36.4585 50.4226 36.1146C50.4422 34.3392 50.4338 32.5638 50.4282 30.7884C50.4282 30.548 50.4646 30.383 50.7022 30.2488C51.7088 29.6869 52.7041 29.0997 53.7022 28.5266C53.7749 28.4846 53.8532 28.4539 53.9846 28.3896V30.383C53.9846 31.4623 54.0014 32.5443 53.979 33.6235C53.9651 34.2386 54.2027 34.6552 54.7395 34.9571C56.2856 35.8294 57.8122 36.7353 59.3583 37.6048C59.6631 37.7754 59.7554 37.9655 59.7498 38.301C59.7302 39.4809 59.7414 40.6636 59.7414 41.9385L59.7442 41.9413ZM56.5932 18.6375C56.0144 18.2964 55.5196 18.2992 54.9408 18.6375C51.6976 20.5331 48.4404 22.4035 45.1859 24.2824C45.0489 24.3635 44.9063 24.4362 44.6631 24.5676C44.7498 23.3318 44.4842 22.1659 44.9063 21.0363C45.1356 20.4185 45.5662 19.9543 46.1365 19.6244C48.8514 18.0559 51.5634 16.4846 54.2838 14.9245C55.2763 14.3541 56.2884 14.3681 57.281 14.9413C60.3705 16.7195 63.4571 18.5033 66.5382 20.2926C66.6696 20.3681 66.8346 20.5387 66.8346 20.6673C66.8569 21.9366 66.8486 23.2088 66.8486 24.5704C65.7274 23.9245 64.6929 23.3262 63.6584 22.7279C61.3015 21.3663 58.939 20.0186 56.5932 18.6375ZM78.3033 38.5974C78.2223 39.5955 77.6379 40.3029 76.774 40.8006C73.4664 42.7018 70.1617 44.6142 66.8569 46.521C65.8197 47.1193 64.7824 47.7176 63.7423 48.3159C63.6165 48.3886 63.4879 48.4501 63.3173 48.5396C63.3061 48.3663 63.2922 48.2404 63.2922 48.1146C63.2922 47.0186 63.2978 45.9254 63.2866 44.8294C63.2866 44.5806 63.3453 44.4296 63.5746 44.2982C68.3947 41.5247 73.212 38.7428 78.0266 35.9637C78.0993 35.9217 78.1803 35.8882 78.3173 35.8239C78.3173 36.7968 78.3732 37.7027 78.3033 38.5974ZM78.3285 31.6971C78.3201 32.8322 77.7078 33.6291 76.7377 34.1883C72.9688 36.3551 69.2027 38.5331 65.4366 40.7083C64.7488 41.1053 64.0582 41.4995 63.3201 41.9245C63.3089 41.7372 63.295 41.6142 63.295 41.4883C63.295 40.4091 63.3062 39.3271 63.2866 38.2479C63.281 37.9404 63.3844 37.7782 63.65 37.6244C67.075 35.6589 70.4888 33.671 73.9194 31.7167C74.5289 31.37 74.7973 30.9422 74.7917 30.2265C74.7665 26.4967 74.7805 22.767 74.7805 19.0373V18.3858C75.6752 18.9254 76.514 19.37 77.2801 19.9124C77.979 20.4073 78.3313 21.1566 78.3341 22.0205C78.3453 25.247 78.3537 28.4734 78.3313 31.6999L78.3285 31.6971Z"
28874
- fill="#131313"
28875
- />
28876
- <path
28877
- fill-rule="evenodd"
28878
- clip-rule="evenodd"
28879
- d="M61.5 0C44.9315 0 31.5 13.4315 31.5 30C31.5 46.5685 44.9315 60 61.5 60C78.0685 60 91.5 46.5685 91.5 30C91.5 13.4315 78.0685 0 61.5 0ZM61.5 2.5C46.3122 2.5 34 14.8122 34 30C34 45.1878 46.3122 57.5 61.5 57.5C76.6878 57.5 89 45.1878 89 30C89 14.8122 76.6878 2.5 61.5 2.5Z"
28880
- fill="url(#paint2_radial_332_47939)"
28881
- />
28882
- <path
28883
- fill-rule="evenodd"
28884
- clip-rule="evenodd"
28885
- d="M61.5 0C44.9315 0 31.5 13.4315 31.5 30C31.5 46.5685 44.9315 60 61.5 60C78.0685 60 91.5 46.5685 91.5 30C91.5 13.4315 78.0685 0 61.5 0ZM61.5 2.5C46.3122 2.5 34 14.8122 34 30C34 45.1878 46.3122 57.5 61.5 57.5C76.6878 57.5 89 45.1878 89 30C89 14.8122 76.6878 2.5 61.5 2.5Z"
28886
- fill="url(#paint3_radial_332_47939)"
28887
- />
28888
- </g>
28889
- </g>
28890
- <defs>
28891
- <radialGradient
28892
- id="paint0_radial_332_47939"
28893
- cx="0"
28894
- cy="0"
28895
- r="1"
28896
- gradientUnits="userSpaceOnUse"
28897
- gradientTransform="translate(48.3053 16.7373) rotate(44.9817) scale(58.4359 123.929)"
28898
- >
28899
- <stop stop-color="#A3EEF8" />
28900
- <stop offset="0.177083" stop-color="#A4DCF5" />
28901
- <stop offset="0.380208" stop-color="#A6AEEC" />
28902
- <stop offset="1" stop-color="#ECBEE1" />
28903
- </radialGradient>
28904
- <radialGradient
28905
- id="paint1_radial_332_47939"
28906
- cx="0"
28907
- cy="0"
28908
- r="1"
28909
- gradientUnits="userSpaceOnUse"
28910
- gradientTransform="translate(63.9394 54.6335) rotate(84.265) scale(30.2672 57.9018)"
28911
- >
28912
- <stop stop-color="#FCF5EE" />
28913
- <stop offset="0.715135" stop-color="#ECBEE1" stop-opacity="0" />
28914
- </radialGradient>
28915
- <radialGradient
28916
- id="paint2_radial_332_47939"
28917
- cx="0"
28918
- cy="0"
28919
- r="1"
28920
- gradientUnits="userSpaceOnUse"
28921
- gradientTransform="translate(47.4257 15.8532) rotate(44.9817) scale(62.3316 132.191)"
28922
- >
28923
- <stop stop-color="#A3EEF8" />
28924
- <stop offset="0.177083" stop-color="#A4DCF5" />
28925
- <stop offset="0.380208" stop-color="#A6AEEC" />
28926
- <stop offset="1" stop-color="#ECBEE1" />
28927
- </radialGradient>
28928
- <radialGradient
28929
- id="paint3_radial_332_47939"
28930
- cx="0"
28931
- cy="0"
28932
- r="1"
28933
- gradientUnits="userSpaceOnUse"
28934
- gradientTransform="translate(64.102 56.2758) rotate(84.265) scale(32.2851 61.7619)"
28935
- >
28936
- <stop stop-color="#FCF5EE" />
28937
- <stop offset="0.715135" stop-color="#ECBEE1" stop-opacity="0" />
28938
- </radialGradient>
28939
- <clipPath id="clip0_332_47939">
28940
- <rect
28941
- width="123"
28942
- height="112"
28943
- fill="white"
28944
- transform="translate(0.5)"
28945
- />
28946
- </clipPath>
28947
- <clipPath id="clip1_332_47939">
28948
- <rect
28949
- width="123"
28950
- height="19"
28951
- fill="white"
28952
- transform="translate(0.5 75)"
28953
- />
28954
- </clipPath>
28955
- <clipPath id="clip2_332_47939">
28956
- <rect
28957
- width="60"
28958
- height="60"
28959
- fill="white"
28960
- transform="translate(31.5)"
28961
- />
28962
- </clipPath>
28963
- </defs>
28964
- </svg>
28965
- `;
28966
-
28967
- const getCloseButton = () => `
28968
- <button
28969
- id="${PASSPORT_OVERLAY_CLOSE_ID}"
28970
- style="
28971
- background: #f3f3f326 !important;
28972
- border: none !important;
28973
- border-radius: 50% !important;
28974
- width: 48px !important;
28975
- height: 48px !important;
28976
- position: absolute !important;
28977
- top: 40px !important;
28978
- right: 40px !important;
28979
- cursor: pointer !important;
28980
- display: flex !important;
28981
- align-items: center !important;
28982
- justify-content: center !important;
28983
- "
28984
- >
28985
- ${CLOSE_BUTTON_SVG}
28986
- </button>
28987
- `;
28988
- const getBlockedContents = () => `
28989
- <div
28990
- style="
28991
- color: #e01a3d !important;
28992
- display: flex !important;
28993
- align-items: center !important;
28994
- gap: 4px !important;
28995
- margin-bottom: 10px !important;
28996
- "
28997
- >
28998
- ${POPUP_BLOCKED_SVG}
28999
- Pop-up blocked
29000
- </div>
29001
- <p style="
29002
- color: #b6b6b6 !important;
29003
- text-align: center !important;
29004
- margin: 0 !important;
29005
- "
29006
- >
29007
- Please adjust your browser settings <br />and try again below
29008
- </p>
29009
- `;
29010
- const getGenericContents = () => `
29011
- <p style="
29012
- color: #b6b6b6 !important;
29013
- text-align: center !important;
29014
- margin: 0 !important;
29015
- "
29016
- >
29017
- Secure pop-up not showing?<br />We'll help you re-launch
29018
- </p>
29019
- `;
29020
- const getTryAgainButton = () => `
29021
- <button
29022
- id="${PASSPORT_OVERLAY_TRY_AGAIN_ID}"
29023
- style="
29024
- margin-top: 27px !important;
29025
- color: #f3f3f3 !important;
29026
- background: transparent !important;
29027
- padding: 12px 24px !important;
29028
- border-radius: 30px !important;
29029
- border: 2px solid #f3f3f3 !important;
29030
- font-size: 1em !important;
29031
- font-weight: 500 !important;
29032
- cursor: pointer !important;
29033
- "
29034
- >
29035
- Try again
29036
- </button>
29037
- `;
29038
- const getOverlay = (contents) => `
29039
- <div
29040
- id="${PASSPORT_OVERLAY_ID}"
29041
- style="
29042
- position: fixed !important;
29043
- top: 0 !important;
29044
- left: 0 !important;
29045
- width: 100% !important;
29046
- height: 100% !important;
29047
- background: rgba(13, 13, 13, 0.48) !important;
29048
- backdrop-filter: blur(28px) !important;
29049
- -webkit-backdrop-filter: blur(28px) !important;
29050
- display: flex !important;
29051
- flex-direction: column !important;
29052
- justify-content: center !important;
29053
- align-items: center !important;
29054
- font-size: 16px !important;
29055
- line-height: 1.5 !important;
29056
- font-family: Roboto !important;
29057
- font-style: normal !important;
29058
- font-weight: 400 !important;
29059
- font-feature-settings: 'clig' off, 'liga' off !important;
29060
- z-index: 2147483647 !important;
29061
- "
29062
- >
29063
- ${getCloseButton()}
29064
- <div
29065
- style="
29066
- display: flex !important;
29067
- flex-direction: column !important;
29068
- align-items: center !important;
29069
- max-width: 400px !important;
29070
- "
29071
- >
29072
- ${IMMUTABLE_LOGO_SVG}
29073
- ${contents}
29074
- ${getTryAgainButton()}
29075
- </div>
29076
- </div>
29077
- `;
29078
- function addLink({ id, href, rel, crossOrigin, }) {
29079
- const fullId = `${PASSPORT_OVERLAY_ID}-${id}`;
29080
- if (!document.getElementById(fullId)) {
29081
- const link = document.createElement('link');
29082
- link.id = fullId;
29083
- link.href = href;
29084
- if (rel)
29085
- link.rel = rel;
29086
- if (crossOrigin)
29087
- link.crossOrigin = crossOrigin;
29088
- document.head.appendChild(link);
29089
- }
29090
- }
29091
- const getBlockedOverlay = () => getOverlay(getBlockedContents());
29092
- const getGenericOverlay = () => getOverlay(getGenericContents());
29093
-
29094
- class Overlay {
29095
- disableGenericPopupOverlay;
29096
- disableBlockedPopupOverlay;
29097
- overlay;
29098
- isBlockedOverlay;
29099
- tryAgainListener;
29100
- onCloseListener;
29101
- constructor(popupOverlayOptions, isBlockedOverlay = false) {
29102
- this.disableBlockedPopupOverlay = popupOverlayOptions.disableBlockedPopupOverlay || false;
29103
- this.disableGenericPopupOverlay = popupOverlayOptions.disableGenericPopupOverlay || false;
29104
- this.isBlockedOverlay = isBlockedOverlay;
29105
- }
29106
- append(tryAgainOnClick, onCloseClick) {
29107
- if (this.shouldAppendOverlay()) {
29108
- this.appendOverlay();
29109
- this.updateTryAgainButton(tryAgainOnClick);
29110
- this.updateCloseButton(onCloseClick);
29111
- }
29112
- }
29113
- update(tryAgainOnClick) {
29114
- this.updateTryAgainButton(tryAgainOnClick);
29115
- }
29116
- remove() {
29117
- if (this.overlay) {
29118
- this.overlay.remove();
29119
- }
29120
- }
29121
- shouldAppendOverlay() {
29122
- if (this.disableGenericPopupOverlay && this.disableBlockedPopupOverlay)
29123
- return false;
29124
- if (this.disableGenericPopupOverlay && !this.isBlockedOverlay)
29125
- return false;
29126
- if (this.disableBlockedPopupOverlay && this.isBlockedOverlay)
29127
- return false;
29128
- return true;
29129
- }
29130
- appendOverlay() {
29131
- if (!this.overlay) {
29132
- addLink({ id: 'link-googleapis', href: 'https://fonts.googleapis.com' });
29133
- addLink({ id: 'link-gstatic', href: 'https://fonts.gstatic.com', crossOrigin: 'anonymous' });
29134
- addLink({ id: 'link-roboto', href: 'https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap', rel: 'stylesheet' });
29135
- const overlay = document.createElement('div');
29136
- overlay.innerHTML = this.isBlockedOverlay ? getBlockedOverlay() : getGenericOverlay();
29137
- document.body.insertAdjacentElement('beforeend', overlay);
29138
- this.overlay = overlay;
29139
- }
29140
- }
29141
- updateTryAgainButton(tryAgainOnClick) {
29142
- const tryAgainButton = document.getElementById(PASSPORT_OVERLAY_TRY_AGAIN_ID);
29143
- if (tryAgainButton) {
29144
- if (this.tryAgainListener) {
29145
- tryAgainButton.removeEventListener('click', this.tryAgainListener);
29146
- }
29147
- this.tryAgainListener = tryAgainOnClick;
29148
- tryAgainButton.addEventListener('click', tryAgainOnClick);
29149
- }
29150
- }
29151
- updateCloseButton(onCloseClick) {
29152
- const closeButton = document.getElementById(PASSPORT_OVERLAY_CLOSE_ID);
29153
- if (closeButton) {
29154
- if (this.onCloseListener) {
29155
- closeButton.removeEventListener('click', this.onCloseListener);
29156
- }
29157
- this.onCloseListener = onCloseClick;
29158
- closeButton.addEventListener('click', onCloseClick);
29159
- }
29160
- }
29161
- }
29162
-
29163
29211
  const CONFIRMATION_WINDOW_TITLE = 'Confirm this transaction';
29164
29212
  const CONFIRMATION_WINDOW_HEIGHT = 720;
29165
29213
  const CONFIRMATION_WINDOW_WIDTH = 480;
@@ -31088,7 +31136,7 @@ class OrdersService {
31088
31136
  * @returns ListTradeResult OK response.
31089
31137
  * @throws ApiError
31090
31138
  */
31091
- listTrades({ chainName, accountAddress, sellItemContractAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, }) {
31139
+ listTrades({ chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, }) {
31092
31140
  return this.httpRequest.request({
31093
31141
  method: 'GET',
31094
31142
  url: '/v1/chains/{chain_name}/trades',
@@ -31097,7 +31145,6 @@ class OrdersService {
31097
31145
  },
31098
31146
  query: {
31099
31147
  'account_address': accountAddress,
31100
- 'sell_item_contract_address': sellItemContractAddress,
31101
31148
  'from_indexed_at': fromIndexedAt,
31102
31149
  'page_size': pageSize,
31103
31150
  'sort_by': sortBy,
@@ -60876,7 +60923,7 @@ const flattenProperties = (properties) => {
60876
60923
  };
60877
60924
 
60878
60925
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
60879
- const SDK_VERSION = '1.39.5-alpha';
60926
+ const SDK_VERSION = '1.39.6-alpha.2';
60880
60927
  const getFrameParentDomain = () => {
60881
60928
  if (isNode()) {
60882
60929
  return '';
@@ -66169,7 +66216,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
66169
66216
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
66170
66217
  };
66171
66218
 
66172
- const SDK_VERSION_MARKER = '1.39.5-alpha';
66219
+ const SDK_VERSION_MARKER = '1.39.6-alpha.2';
66173
66220
  // This SDK version is replaced by the `yarn build` command ran on the root level
66174
66221
  const globalPackageVersion = () => SDK_VERSION_MARKER;
66175
66222
 
@@ -72018,12 +72065,9 @@ const mintingPersistence$1 = (client) => {
72018
72065
  return {
72019
72066
  recordMint: async (request) => {
72020
72067
  const r = await client.query(`
72021
- INSERT INTO im_assets (asset_id, contract_address, owner_address, metadata, amount, token_id)
72022
- VALUES ($1, $2, $3, $4, $5, $6) ON CONFLICT (asset_id, contract_address) DO NOTHING;
72023
- `, [
72024
- request.asset_id, request.contract_address, request.owner_address,
72025
- request.metadata, request.amount, request.token_id
72026
- ]);
72068
+ INSERT INTO im_assets (asset_id, contract_address, owner_address, metadata)
72069
+ VALUES ($1, $2, $3, $4) ON CONFLICT (asset_id, contract_address) DO NOTHING;
72070
+ `, [request.asset_id, request.contract_address, request.owner_address, request.metadata]);
72027
72071
  if (r.rowCount === 0) {
72028
72072
  throw new Error('Duplicated mint');
72029
72073
  }
@@ -72052,9 +72096,8 @@ const mintingPersistence$1 = (client) => {
72052
72096
  minting_status,
72053
72097
  metadata_id,
72054
72098
  last_imtbl_zkevm_mint_request_updated_id,
72055
- error,
72056
- amount
72057
- ) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) ON CONFLICT (asset_id, contract_address)
72099
+ error
72100
+ ) VALUES ($1, $2, $3, $4, $5, $6, $7, $8) ON CONFLICT (asset_id, contract_address)
72058
72101
  DO UPDATE SET
72059
72102
  owner_address = $3,
72060
72103
  token_id = $4,
@@ -72074,8 +72117,7 @@ const mintingPersistence$1 = (client) => {
72074
72117
  submittedMintRequest.status,
72075
72118
  submittedMintRequest.metadataId,
72076
72119
  submittedMintRequest.imtblZkevmMintRequestUpdatedId,
72077
- submittedMintRequest.error,
72078
- submittedMintRequest.amount
72120
+ submittedMintRequest.error
72079
72121
  ]);
72080
72122
  },
72081
72123
  markAsConflict: async (assetIds, contractAddress) => {
@@ -72130,9 +72172,7 @@ const mintingPersistence = (client) => {
72130
72172
  assetId: request.asset_id,
72131
72173
  contractAddress: request.contract_address,
72132
72174
  ownerAddress: request.owner_address,
72133
- metadata: JSON.stringify(request.metadata),
72134
- amount: request.amount || null,
72135
- tokenId: request.token_id || null,
72175
+ metadata: JSON.stringify(request.metadata), // Serialize JSON metadata
72136
72176
  },
72137
72177
  });
72138
72178
  // Since upsert does not throw on update and does not tell directly if it updated or inserted,
@@ -72175,8 +72215,6 @@ const mintingPersistence = (client) => {
72175
72215
  metadata: asset.metadata ? JSON.parse(asset.metadata) : null,
72176
72216
  owner_address: asset.ownerAddress,
72177
72217
  tried_count: asset.triedCount,
72178
- amount: asset.amount || null,
72179
- token_id: asset.tokenId || null,
72180
72218
  }));
72181
72219
  },
72182
72220
  updateMintingStatusToSubmitted: async (ids) => {
@@ -72219,7 +72257,6 @@ const mintingPersistence = (client) => {
72219
72257
  metadataId: submittedMintRequest.metadataId,
72220
72258
  lastImtblZkevmMintRequestUpdatedId: submittedMintRequest.imtblZkevmMintRequestUpdatedId,
72221
72259
  error: submittedMintRequest.error,
72222
- amount: submittedMintRequest.amount || null
72223
72260
  }
72224
72261
  });
72225
72262
  }
@@ -72235,7 +72272,6 @@ const mintingPersistence = (client) => {
72235
72272
  metadataId: submittedMintRequest.metadataId,
72236
72273
  lastImtblZkevmMintRequestUpdatedId: submittedMintRequest.imtblZkevmMintRequestUpdatedId,
72237
72274
  error: submittedMintRequest.error,
72238
- amount: submittedMintRequest.amount || null
72239
72275
  }
72240
72276
  });
72241
72277
  }
@@ -72323,8 +72359,7 @@ const mintingPersistence = (client) => {
72323
72359
  metadata: asset.metadata ? JSON.parse(asset.metadata) : null,
72324
72360
  owner_address: asset.ownerAddress,
72325
72361
  tried_count: asset.triedCount,
72326
- wallet_address: asset.ownerAddress,
72327
- amount: asset.amount || null
72362
+ wallet_address: asset.ownerAddress
72328
72363
  };
72329
72364
  }
72330
72365
  };
@@ -72391,8 +72426,6 @@ const submitMintingRequests = async (mintingPersistence, blockchainDataSDKClient
72391
72426
  reference_id: row.asset_id,
72392
72427
  owner_address: row.owner_address,
72393
72428
  metadata: row.metadata,
72394
- token_id: row.token_id,
72395
- amount: row.amount ? `${row.amount}` : null,
72396
72429
  })),
72397
72430
  },
72398
72431
  };
@@ -72481,7 +72514,6 @@ const processMint = async (mintingPersistence, event, logger = console) => {
72481
72514
  metadataId: event.data.metadata_id,
72482
72515
  imtblZkevmMintRequestUpdatedId: event.event_id,
72483
72516
  error: event.data.error ? JSON.stringify(event.data.error) : null,
72484
- amount: event.data.amount || null,
72485
72517
  });
72486
72518
  };
72487
72519