@dcl/shop 1.3.1-31191682385.commit-b61dc4f → 1.3.1-31191774447.commit-6e7d6f7

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 (176) hide show
  1. package/_assets/{Activity-B_l3S0lb.js → Activity-y24sxYxo.js} +3 -3
  2. package/_assets/{AnimatedBackground-DuhJWXI1.js → AnimatedBackground-DRIIf518.js} +1 -1
  3. package/_assets/{Assets-CNlA1oFv.js → Assets-zGi2BuTg.js} +5 -5
  4. package/_assets/{Assets.styles-o3ITauMT.js → Assets.styles-Cyayzp96.js} +1 -1
  5. package/_assets/{Authorizations-BeBMjIyB.js → Authorizations-D8xCUQ73.js} +1 -1
  6. package/_assets/{Cart-CD2lfleM.js → Cart-BqjESTj5.js} +1 -1
  7. package/_assets/{CircularProgress-dn_FyOER.js → CircularProgress-Dy39fa7f.js} +1 -1
  8. package/_assets/{Collection-C7R_FzbK.js → Collection-CKYqVyfQ.js} +1 -1
  9. package/_assets/{CollectionCarousel-CT9bwSTH.js → CollectionCarousel-CCSL-vFF.js} +2 -2
  10. package/_assets/{Confetti-CoP5-e4k.js → Confetti-BJzr7oOJ.js} +1 -1
  11. package/_assets/{Creator-UajhgRZS.js → Creator-dcSlsbmQ.js} +1 -1
  12. package/_assets/{ErrorNotice-C0G5qWzo.js → ErrorNotice-DTm_-YHD.js} +1 -1
  13. package/_assets/{ExchangeController-COvuIfdo.js → ExchangeController-BdXbQOvh.js} +1 -1
  14. package/_assets/{Faq-DNITaJGZ.js → Faq-BDJ3tHRE.js} +1 -1
  15. package/_assets/{GetCredits-BXA3_C5P.js → GetCredits-CBX3VO6B.js} +113 -60
  16. package/_assets/{Grow-BQjry54P.js → Grow-B0_HYQIB.js} +1 -1
  17. package/_assets/{HelpersUtil-DOHD_0p5.js → HelpersUtil-CU_GR8a0.js} +1 -1
  18. package/_assets/ItemDetail-D853-Dww.js +3577 -0
  19. package/_assets/LazyEmoteControls-B-lnsWU7.js +2 -0
  20. package/_assets/{LoadMore-CuEUCjRg.js → LoadMore-DUsq2Liu.js} +1 -1
  21. package/_assets/{ManaPricingBanner.styles-COkmJnom.js → ManaPricingBanner.styles-DaxtPtS7.js} +1 -1
  22. package/_assets/{MyAssets-Bi6l3K4d.js → MyAssets-DiQcxqCG.js} +2 -2
  23. package/_assets/{MyFavorites-WgTcR_lz.js → MyFavorites-0BkK_ck-.js} +1 -1
  24. package/_assets/{NotFound-D311dCZJ.js → NotFound-9vpYhuFJ.js} +1 -1
  25. package/_assets/{NotificationsBell-CY3CW4C6.js → NotificationsBell-BQIEq4Oi.js} +1 -1
  26. package/_assets/{OutfitDetail-DqGwmKsm.js → OutfitDetail-CHg6J9ga.js} +1 -1
  27. package/_assets/{OutfitPreview-FeO3-fef.js → OutfitPreview-tBQx0llU.js} +1 -1
  28. package/_assets/{OutfitStudio-CUGqRP3F.js → OutfitStudio-CRlaSeTL.js} +1 -1
  29. package/_assets/{StoreSettings-kjlaWUnu.js → StoreSettings-Cq5Bj1aY.js} +1 -1
  30. package/_assets/{Success-C5FXjcLJ.js → Success-BS_4kCGv.js} +1 -1
  31. package/_assets/{SwapController-DzdK5g3n.js → SwapController-kq1pQSit.js} +1 -1
  32. package/_assets/{Tooltip-CaglQe4p.js → Tooltip-DGHRMccf.js} +1 -1
  33. package/_assets/{TradeService-C51CBXXB.js → TradeService-CIAcHKym.js} +1 -1
  34. package/_assets/{W3MFrameProviderSingleton-DdqmAkVg.js → W3MFrameProviderSingleton-GrZmBKsV.js} +3 -3
  35. package/_assets/{WebCryptoP256-B8NxfggH.js → WebCryptoP256-COWdwjwC.js} +1 -1
  36. package/_assets/{authorizations-C2XcFris.js → authorizations-FCfPxuii.js} +1 -1
  37. package/_assets/{basic-COmTei_A.js → basic-Bo9PxYJI.js} +1 -1
  38. package/_assets/{biconomy-DTOnLn-e.js → biconomy-BFLscdQv.js} +1 -1
  39. package/_assets/{builder-CZT_aNgl.js → builder-Cn-eB5XH.js} +1 -1
  40. package/_assets/{buy-D2J4xdFU.js → buy-Dyhhp26V.js} +1 -1
  41. package/_assets/{buy-gasless-DXZhAZul.js → buy-gasless-BebaKtpO.js} +1 -1
  42. package/_assets/{categories-CXp3c1O6.js → categories-DFNz9BWG.js} +1 -1
  43. package/_assets/{ccip-ssHPmWgf.js → ccip-DEtp8YTb.js} +1 -1
  44. package/_assets/{ccip-u9aTnVSi.js → ccip-DJ0_SHFm.js} +1 -1
  45. package/_assets/{collectionPage.styles-BYlcGAC5.js → collectionPage.styles-VE6xQ4Pq.js} +4 -4
  46. package/_assets/{controller-BAQ7MSIz.js → controller-BL7r_uPq.js} +2 -2
  47. package/_assets/{core-Bj6TGGmC.js → core-ivuEZWRF.js} +4 -4
  48. package/_assets/{createSvgIcon-C_ptnlwI.js → createSvgIcon-FJ-T9KCc.js} +1 -1
  49. package/_assets/{custom-DhZeTGx9.js → custom-BfAMARTO.js} +1 -1
  50. package/_assets/{data-capture-Bw9VfiIX.js → data-capture-CtqR-xpK.js} +1 -1
  51. package/_assets/{email-aYs6NJG4.js → email-B00Kj9kB.js} +1 -1
  52. package/_assets/{embedded-wallet-Du89blmt.js → embedded-wallet-CJtelFQM.js} +1 -1
  53. package/_assets/{emotion-styled.browser.esm-7iI5MQ9s.js → emotion-styled.browser.esm-B1pGJ4yC.js} +1 -1
  54. package/_assets/{engine-CDmunHUA.js → engine-BSpdTa_2.js} +1 -1
  55. package/_assets/{errors-CwhExOnR.js → errors-B_H6ENH0.js} +1 -1
  56. package/_assets/{estimate-l1-fee-DGEo-qa8.js → estimate-l1-fee-DLDkjzSe.js} +1 -1
  57. package/_assets/{execute-DEAHKtIX.js → execute-BLDW5NcT.js} +2 -2
  58. package/_assets/{features-BBwgk4Ks.js → features-Db7oOV5p.js} +1 -1
  59. package/_assets/{fetchTokenMetadata-41ucP_Gs.js → fetchTokenMetadata-BnyyeISK.js} +2 -2
  60. package/_assets/{field.styles-CMTqm8XT.js → field.styles-BFdlSNg_.js} +1 -1
  61. package/_assets/{get-ecosystem-wallet-info-DPKRmY8M.js → get-ecosystem-wallet-info-B0tgCN4F.js} +1 -1
  62. package/_assets/{getBalance-Dif8tIk4.js → getBalance-Cltaf7Oq.js} +1 -1
  63. package/_assets/{getNFT-1pTPryrB.js → getNFT-C0frkmVi.js} +1 -1
  64. package/_assets/{getNFT-tQYuD-0f.js → getNFT-CwDwplwb.js} +1 -1
  65. package/_assets/{grid.styles-BCdYXc8S.js → grid.styles-4ZcNyj0y.js} +1 -1
  66. package/_assets/{hashTypedData-BMPizOCT.js → hashTypedData-CAxTTN4J.js} +1 -1
  67. package/_assets/{hashTypedData-DOSmOliP.js → hashTypedData-CXE9elkf.js} +1 -1
  68. package/_assets/{in-app-2oBOulp3.js → in-app-fhMFhBIw.js} +1 -1
  69. package/_assets/{in-app-wallet-calls-BmiOqy8w.js → in-app-wallet-calls-BUUJeIZU.js} +1 -1
  70. package/_assets/{index-_RYmCLAc.js → index-APQ2Ba7r.js} +1 -1
  71. package/_assets/{index-BNahBa6g.js → index-B5W17i2g.js} +1 -1
  72. package/_assets/{index-bt66cjbg.js → index-B62JUWFh.js} +1 -1
  73. package/_assets/{index-DNcWD6cz.js → index-BA4pQBRh.js} +1 -1
  74. package/_assets/{index-DXilYAje.js → index-BCZo8-ZK.js} +3 -3
  75. package/_assets/{index-B_6nZxVq.js → index-BDHChLjL.js} +1 -1
  76. package/_assets/{index-Bp2qDqMJ.js → index-BDwg7g4n.js} +1 -1
  77. package/_assets/{index-DYHFtYOn.js → index-BGynyeV-.js} +3 -3
  78. package/_assets/{index-DDrhThY2.js → index-BK8V9pQJ.js} +1 -1
  79. package/_assets/{index-DnVShTJI.js → index-BPT3uqik.js} +1 -1
  80. package/_assets/{index-m_DrAs2i.js → index-BQZHWFgh.js} +1 -1
  81. package/_assets/{index-BpZWPGJy.js → index-BRYRxr20.js} +1 -1
  82. package/_assets/{index-BRZIBb8-.js → index-BWyq-oFs.js} +1 -1
  83. package/_assets/{index-3Ft7vVmQ.js → index-BYOF-_EY.js} +1 -1
  84. package/_assets/{index-BsgxGadm.js → index-BbDxDzVC.js} +1 -1
  85. package/_assets/{index-CtrfnjYH.js → index-BhYjAWN9.js} +1 -1
  86. package/_assets/{index-CBvsGOvJ.js → index-Bj-6yUVC.js} +1 -1
  87. package/_assets/{index-D2xwx2CV.js → index-BkDfqq0T.js} +1 -1
  88. package/_assets/{index-LTLbqlJU.js → index-BsmI87gm.js} +1 -1
  89. package/_assets/{index-DEWNRs55.js → index-ByLnsD5M.js} +1 -1
  90. package/_assets/{index-DLWcfhTU.js → index-BzHeEnu-.js} +1 -1
  91. package/_assets/{index-DOtw2cqV.js → index-C4rlto1G.js} +1 -1
  92. package/_assets/{index-DYZyT8y3.js → index-CFzcju_2.js} +1 -1
  93. package/_assets/{index-0ae65IXz.js → index-CNmI4st4.js} +1 -1
  94. package/_assets/{index-BSBtzqEU.js → index-COIlEmNs.js} +2 -2
  95. package/_assets/{index-DxKBR2sg.js → index-CdTw5pba.js} +1 -1
  96. package/_assets/{index-BzgyB7Vj.js → index-CfarxyUW.js} +1 -1
  97. package/_assets/{index-C6zFjlGI.js → index-ChjwLCYB.js} +1 -1
  98. package/_assets/{index-Cm--i_zM.js → index-CinaHmgq.js} +1 -1
  99. package/_assets/{index-DX7iu41C.js → index-Ciwhv9sJ.js} +1 -1
  100. package/_assets/{index-DP241JAT.js → index-CjnsP8Ua.js} +1 -1
  101. package/_assets/{index-CVV5XjqI.js → index-Cq5KlmlM.js} +1 -1
  102. package/_assets/{index-c5p2VvDH.js → index-CqbIuuH7.js} +1 -1
  103. package/_assets/{index-Dvio79mx.js → index-CszvsfVp.js} +1 -1
  104. package/_assets/{index-CFCyEG1i.js → index-CtOJKlpi.js} +1 -1
  105. package/_assets/{index-B6B1fvIc.js → index-CtnLri_P.js} +1 -1
  106. package/_assets/{index-CHFZviOg.js → index-DHaLQxQa.js} +1 -1
  107. package/_assets/{index-BMRilxGK.js → index-DK25Jb4e.js} +2 -2
  108. package/_assets/{index-5HC5J6x-.js → index-DNDT_dIF.js} +1 -1
  109. package/_assets/{index-BpUokvwW.js → index-DhFU000l.js} +1 -1
  110. package/_assets/{index-DfZraWfH.js → index-DkU3wVO5.js} +3 -3
  111. package/_assets/{index-DCg5FbqY.js → index-DmPTEtlr.js} +15 -15
  112. package/_assets/{index-D8Zy3Mui.js → index-Dvk5bLvA.js} +1 -1
  113. package/_assets/{index-CTxcIBLf.js → index-Dx0t4NAk.js} +2 -2
  114. package/_assets/{index-DxYGR_bb.js → index-NDYWRULy.js} +1 -1
  115. package/_assets/{index-C-B_kVJr.js → index-PH-I4BnF.js} +1 -1
  116. package/_assets/{index-GPDV8KQf.js → index-PTtIRQbX.js} +1 -1
  117. package/_assets/{index-DRu-ezMP.js → index-Qistbvb_.js} +1 -1
  118. package/_assets/{index-COCflAYI.js → index-jnN8CEK_.js} +1 -1
  119. package/_assets/{index-Cfmxj1CQ.js → index-k5uwzkke.js} +1 -1
  120. package/_assets/{index-XJWjntsX.js → index-lakCiY8c.js} +1 -1
  121. package/_assets/{index-lD6G-yto.js → index-y6gbmZ7D.js} +1 -1
  122. package/_assets/{index.es-BnqQlFOf.js → index.es-Dzq0d_cy.js} +4 -4
  123. package/_assets/{index.es-CMfocea_.js → index.es-XoMskHy0.js} +1 -1
  124. package/_assets/{index.es-Cb8F3w9N.js → index.es-gfNvjdvH.js} +1 -1
  125. package/_assets/{localBatchGatewayRequest-CwW-ScCx.js → localBatchGatewayRequest-5ebjcWbY.js} +1 -1
  126. package/_assets/{networks-BvK4lGLf.js → networks-Dl3Vc8M8.js} +1 -1
  127. package/_assets/{onramp-CRjoHhS6.js → onramp-BkGIcgyw.js} +1 -1
  128. package/_assets/{openzeppelin-BDFPE10K.js → openzeppelin-DchCrOCQ.js} +1 -1
  129. package/_assets/{parseNft-DLw7HgEB.js → parseNft-BG3FThUy.js} +2 -2
  130. package/_assets/{parseSignature-OebhNeeq.js → parseSignature-BFEcvs4V.js} +1 -1
  131. package/_assets/{parseSignature-BJFS2vrb.js → parseSignature-DTAbriMg.js} +3 -3
  132. package/_assets/{passkeys-BsE9CTNy.js → passkeys-Da9FNaDu.js} +1 -1
  133. package/_assets/{pay-with-exchange-0sZ81P6g.js → pay-with-exchange-Bs2TV7Z3.js} +1 -1
  134. package/_assets/{qr-overlay-CACiZH9n.js → qr-overlay-UW6bQNWO.js} +1 -1
  135. package/_assets/{receive-BcCNfRAG.js → receive-CzyqFowk.js} +1 -1
  136. package/_assets/{resolveImplementation-rkIwivs2.js → resolveImplementation-BIzpUAgP.js} +1 -1
  137. package/_assets/{rpc-BJGVKdu_.js → rpc-C7P6HF5R.js} +1 -1
  138. package/_assets/{secp256k1-_NPe3_tk.js → secp256k1-5qH9q35u.js} +1 -1
  139. package/_assets/{secp256k1-ByR_y_KV.js → secp256k1-Bx20Myy5.js} +1 -1
  140. package/_assets/{secp256k1-ookzyCJq.js → secp256k1-D6TaeqaI.js} +1 -1
  141. package/_assets/{send-qTCae84e.js → send-Dk12l-18.js} +1 -1
  142. package/_assets/{send-batch-transaction-2_uU6Kxp.js → send-batch-transaction-DKbbooSJ.js} +1 -1
  143. package/_assets/{send-eip712-transaction-B2ALeJg8.js → send-eip712-transaction-Cg4tgj5D.js} +2 -2
  144. package/_assets/{send-gasless-transaction-DUCO4VkA.js → send-gasless-transaction-CMqqmP8u.js} +2 -2
  145. package/_assets/{send-transaction-DwmC6GHr.js → send-transaction-BV2bVYB0.js} +2 -2
  146. package/_assets/{sendMetaTransaction-Bs_mS_PM.js → sendMetaTransaction-DvkQczva.js} +1 -1
  147. package/_assets/{sendRawTransaction-DMyeSj-O.js → sendRawTransaction-sxEV3puZ.js} +3 -3
  148. package/_assets/{serializeTransaction-B46ekkRO.js → serializeTransaction-B2V0ysGE.js} +1 -1
  149. package/_assets/{session-proposal-CihthfGj.js → session-proposal-ZWnsr1uV.js} +1 -1
  150. package/_assets/{session-request-ChY_zmtp.js → session-request-DNtDMu6V.js} +2 -2
  151. package/_assets/{signing-DnzPp1LH.js → signing-BcRAGDmi.js} +3 -3
  152. package/_assets/{skeleton.styles-DLM-pTFu.js → skeleton.styles-H8mPuQpn.js} +1 -1
  153. package/_assets/{socials-iSUyLEuO.js → socials-CchjAnAV.js} +1 -1
  154. package/_assets/{styled-BTQUnOe9.js → styled-DPMMsxJe.js} +1 -1
  155. package/_assets/{swaps-DG1CYsom.js → swaps-CkVTt06M.js} +1 -1
  156. package/_assets/{thirdweb-B9Hwq14j.js → thirdweb-DNu05vUz.js} +3 -3
  157. package/_assets/{to-serializable-transaction-DCVAO4ip.js → to-serializable-transaction-Ct0SHqrp.js} +2 -2
  158. package/_assets/{transactionReceipt-B_0bvfKE.js → transactionReceipt-3ZZCMPVt.js} +1 -1
  159. package/_assets/{transactions-Czd1wrXY.js → transactions-DVLzReQc.js} +1 -1
  160. package/_assets/{useCreditPacks-HpuBP-AH.js → useCreditPacks-4hcmsM5F.js} +1 -1
  161. package/_assets/{useImportable-CpMEruPm.js → useImportable-Dx3iV1I3.js} +1 -1
  162. package/_assets/{useInfiniteGrid-C2RUwZT1.js → useInfiniteGrid-BM-TIQD6.js} +1 -1
  163. package/_assets/{useStore-fHlJJ0gI.js → useStore-BDX6RUJl.js} +1 -1
  164. package/_assets/{useTheme-DKi7wYE-.js → useTheme-jFU96Y8U.js} +1 -1
  165. package/_assets/{verifyHash-CauMulxX.js → verifyHash-zE9tbx0Y.js} +1 -1
  166. package/_assets/{w3m-modal-Cv396tvJ.js → w3m-modal-3G7T-i4r.js} +1 -1
  167. package/_assets/{w3m-modal-KS1F19gd.js → w3m-modal-qM1qOGgn.js} +1 -1
  168. package/_assets/{wait-for-tx-receipt-Bpp3xMIw.js → wait-for-tx-receipt-DDnIM7IJ.js} +1 -1
  169. package/_assets/{wallets-DeRxBeUM.js → wallets-DNleVnWY.js} +5 -5
  170. package/_assets/{web-connector-nprYOrsP.js → web-connector-HGPuKGe_.js} +3 -3
  171. package/_assets/{writeContract-C0Ce5aYY.js → writeContract-VXIAbGxa.js} +1 -1
  172. package/_assets/{zoraTestnet-FzXxeC7P.js → zoraTestnet-B2SeH1Ka.js} +1 -1
  173. package/index.html +11 -11
  174. package/package.json +2 -2
  175. package/_assets/ItemDetail-BShi_a0Y.js +0 -3577
  176. package/_assets/LazyEmoteControls-AphOuHQz.js +0 -2
@@ -1,8 +1,8 @@
1
- import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t as e,x as F,y as ge,b as n,C as h,v as fe,D as me,Z as g,aF as be,k as U,aP as N,bO as we,ax as Q,A as re,I as ye,bP as D}from"./index-DCg5FbqY.js";import{C as ke}from"./Confetti-CoP5-e4k.js";import{F as ve}from"./Faq-DNITaJGZ.js";import{R as H}from"./resume-buy-Bf0zIH7y.js";import{u as Ce,b as $e,R as je,c as Se,i as Ae,d as Pe}from"./useCreditPacks-HpuBP-AH.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";const A="https://cdn.decentraland.org/@dcl/shop/1.3.1-31191682385.commit-b61dc4f/_assets/pack-coins-BDh1ZDbh.webp",ne="https://cdn.decentraland.org/@dcl/shop/1.3.1-31191682385.commit-b61dc4f/_assets/pack-stacks-D-V2jSHW.webp",se="https://cdn.decentraland.org/@dcl/shop/1.3.1-31191682385.commit-b61dc4f/_assets/pack-chest-BX_j84xW.webp",Re="https://cdn.decentraland.org/@dcl/shop/1.3.1-31191682385.commit-b61dc4f/_assets/credit-coin-CmcTCd5i.webp",Te="data:image/svg+xml,%3csvg%20width='60'%20height='60'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='60'%20height='60'%20rx='30'%20fill='%2334CE77'/%3e%3cpath%20d='M21.6583%2046.1067L11.4656%2036.0591C10.1688%2034.829%2010.1905%2032.7207%2011.4769%2031.4622L13.6868%2029.3591C14.9732%2028.1006%2017.1615%2028.1058%2018.4582%2029.3359L23.8747%2034.6197L41.9704%2015.6527C43.2568%2014.3942%2045.4291%2014.2093%2046.7258%2015.4394L48.8765%2017.3628C50.1732%2018.5929%2050.3491%2020.6844%2049.0626%2021.9429L26.6112%2045.8766C25.1433%2047.342%2022.955%2047.3368%2021.6583%2046.1067Z'%20fill='%23FCFCFC'/%3e%3c/svg%3e",O="linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",_e=i.div`
1
+ import{b as he,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t as e,x as F,y as ue,b as n,C as h,v as ge,D as fe,Z as g,aF as me,k as U,aP as N,bO as be,ax as H,A as ie,I as we,bP as Q}from"./index-DmPTEtlr.js";import{C as ye}from"./Confetti-BJzr7oOJ.js";import{F as ke}from"./Faq-BDJ3tHRE.js";import{R as D}from"./resume-buy-Bf0zIH7y.js";import{u as ve,b as Ce,R as $e,c as je,i as Se,d as Pe}from"./useCreditPacks-4hcmsM5F.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";const P="https://cdn.decentraland.org/@dcl/shop/1.3.1-31191774447.commit-6e7d6f7/_assets/pack-coins-BDh1ZDbh.webp",re="https://cdn.decentraland.org/@dcl/shop/1.3.1-31191774447.commit-6e7d6f7/_assets/pack-stacks-D-V2jSHW.webp",ne="https://cdn.decentraland.org/@dcl/shop/1.3.1-31191774447.commit-6e7d6f7/_assets/pack-chest-BX_j84xW.webp",Ae="https://cdn.decentraland.org/@dcl/shop/1.3.1-31191774447.commit-6e7d6f7/_assets/credit-coin-CmcTCd5i.webp",O="data:image/svg+xml,%3csvg%20width='60'%20height='60'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='60'%20height='60'%20rx='30'%20fill='%2334CE77'/%3e%3cpath%20d='M21.6583%2046.1067L11.4656%2036.0591C10.1688%2034.829%2010.1905%2032.7207%2011.4769%2031.4622L13.6868%2029.3591C14.9732%2028.1006%2017.1615%2028.1058%2018.4582%2029.3359L23.8747%2034.6197L41.9704%2015.6527C43.2568%2014.3942%2045.4291%2014.2093%2046.7258%2015.4394L48.8765%2017.3628C50.1732%2018.5929%2050.3491%2020.6844%2049.0626%2021.9429L26.6112%2045.8766C25.1433%2047.342%2022.955%2047.3368%2021.6583%2046.1067Z'%20fill='%23FCFCFC'/%3e%3c/svg%3e",K="linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",Te=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 24px;
5
- `,ze=i.section`
5
+ `,Re=i.section`
6
6
  position: relative;
7
7
  isolation: isolate;
8
8
  display: flex;
@@ -34,12 +34,12 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
34
34
  top: -16px;
35
35
  }
36
36
  }
37
- `,Be=i.div`
37
+ `,ze=i.div`
38
38
  position: relative;
39
39
  width: 100%;
40
40
  display: flex;
41
41
  justify-content: center;
42
- `,Fe=i.div`
42
+ `,_e=i.div`
43
43
  width: 100%;
44
44
  max-width: 1478px;
45
45
  margin: 0 auto;
@@ -55,7 +55,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
55
55
  ${e.media.maxWidth("mobile")} {
56
56
  margin-top: 8px;
57
57
  }
58
- `,qe=i.div`
58
+ `,Be=i.div`
59
59
  width: 100%;
60
60
  max-width: 1478px;
61
61
  display: flex;
@@ -67,7 +67,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
67
67
  ${e.media.maxWidth("lg")} {
68
68
  gap: 32px;
69
69
  }
70
- `,Ee=i.header`
70
+ `,Fe=i.header`
71
71
  display: flex;
72
72
  flex-direction: column;
73
73
  align-items: center;
@@ -78,7 +78,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
78
78
  ${e.media.maxWidth("mobile")} {
79
79
  gap: 12px;
80
80
  }
81
- `,Ie=i.h1`
81
+ `,qe=i.h1`
82
82
  margin: 0;
83
83
  font-family: ${e.font.sans};
84
84
  font-size: 40px;
@@ -89,13 +89,13 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
89
89
  ${e.media.maxWidth("mobile")} {
90
90
  font-size: 32px;
91
91
  }
92
- `,We=i.div`
92
+ `,Ee=i.div`
93
93
  display: flex;
94
94
  flex-wrap: wrap;
95
95
  align-items: center;
96
96
  justify-content: center;
97
97
  gap: 8px;
98
- `,Le=i.p`
98
+ `,Ie=i.p`
99
99
  margin: 0;
100
100
  font-family: ${e.font.sans};
101
101
  font-size: 24px;
@@ -106,7 +106,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
106
106
  ${e.media.maxWidth("mobile")} {
107
107
  font-size: 16px;
108
108
  }
109
- `,Me=i.button`
109
+ `,We=i.button`
110
110
  appearance: none;
111
111
  padding: 0;
112
112
  border: none;
@@ -140,7 +140,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
140
140
  height: 18px;
141
141
  }
142
142
  }
143
- `,Ge=i.p`
143
+ `,Le=i.p`
144
144
  margin: 0;
145
145
  padding: 10px 16px;
146
146
  border-radius: ${e.radius.btn};
@@ -150,7 +150,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
150
150
  line-height: 1.6;
151
151
  color: ${e.colors.media};
152
152
  text-align: center;
153
- `,K=i.div`
153
+ `,Y=i.div`
154
154
  display: grid;
155
155
  grid-template-columns: repeat(4, minmax(0, 1fr));
156
156
  gap: 24px;
@@ -166,7 +166,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
166
166
  gap: 12px;
167
167
  row-gap: 24px;
168
168
  }
169
- `,Y=i.button`
169
+ `,V=i.button`
170
170
  position: relative;
171
171
  display: flex;
172
172
  flex-direction: column;
@@ -205,9 +205,9 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
205
205
  inset: 0;
206
206
  border-radius: inherit;
207
207
  pointer-events: none;
208
- -webkit-mask: ${O};
208
+ -webkit-mask: ${K};
209
209
  -webkit-mask-composite: xor;
210
- mask: ${O};
210
+ mask: ${K};
211
211
  mask-composite: exclude;
212
212
  transition: opacity 0.15s ease;
213
213
  }
@@ -266,7 +266,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
266
266
  padding: 8px;
267
267
  border-radius: 16px;
268
268
  }
269
- `,Ue=i.span`
269
+ `,Ge=i.span`
270
270
  position: absolute;
271
271
  top: -18px;
272
272
  left: 50%;
@@ -303,7 +303,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
303
303
  height: 18px;
304
304
  }
305
305
  }
306
- `,V=i.span`
306
+ `,X=i.span`
307
307
  align-self: stretch;
308
308
  display: flex;
309
309
  flex-direction: column;
@@ -314,13 +314,13 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
314
314
  ${e.media.maxWidth("mobile")} {
315
315
  padding-top: 24px;
316
316
  }
317
- `,X=i.span`
317
+ `,Z=i.span`
318
318
  display: flex;
319
319
  flex-direction: column;
320
320
  align-items: center;
321
321
  gap: 12px;
322
322
  width: 100%;
323
- `,Ne=i.span`
323
+ `,Me=i.span`
324
324
  display: flex;
325
325
  align-items: center;
326
326
  gap: 8px;
@@ -337,7 +337,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
337
337
  height: 24.81px;
338
338
  }
339
339
  }
340
- `,Qe=i.span`
340
+ `,Ue=i.span`
341
341
  font-family: ${e.font.sans};
342
342
  font-size: 40px;
343
343
  font-weight: 800;
@@ -348,7 +348,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
348
348
  font-size: 32px;
349
349
  line-height: 24px;
350
350
  }
351
- `,De=i.span`
351
+ `,Ne=i.span`
352
352
  font-family: ${e.font.sans};
353
353
  font-size: 20px;
354
354
  font-weight: 500;
@@ -389,7 +389,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
389
389
  transform: none;
390
390
  }
391
391
  }
392
- `,Oe=i.span`
392
+ `,Qe=i.span`
393
393
  display: flex;
394
394
  align-items: center;
395
395
  justify-content: center;
@@ -434,11 +434,11 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
434
434
  font-size: 16px;
435
435
  font-weight: 800;
436
436
  }
437
- `,Ke=F`
437
+ `,De=F`
438
438
  to {
439
439
  background-position: -200% 0;
440
440
  }
441
- `,P=i.span`
441
+ `,A=i.span`
442
442
  display: block;
443
443
  background: linear-gradient(
444
444
  100deg,
@@ -447,12 +447,12 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
447
447
  rgba(255, 255, 255, 0.08) 70%
448
448
  );
449
449
  background-size: 200% 100%;
450
- animation: ${Ke} 1.4s infinite linear;
450
+ animation: ${De} 1.4s infinite linear;
451
451
 
452
452
  @media (prefers-reduced-motion: reduce) {
453
453
  animation: none;
454
454
  }
455
- `,Ye=i(P)`
455
+ `,Oe=i(A)`
456
456
  width: 60%;
457
457
  height: 30px;
458
458
  border-radius: ${e.radius.chip};
@@ -460,7 +460,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
460
460
  ${e.media.maxWidth("mobile")} {
461
461
  height: 24px;
462
462
  }
463
- `,Ve=i(P)`
463
+ `,Ke=i(A)`
464
464
  width: 36%;
465
465
  height: 15px;
466
466
  border-radius: ${e.radius.chip};
@@ -468,19 +468,19 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
468
468
  ${e.media.maxWidth("mobile")} {
469
469
  height: 12px;
470
470
  }
471
- `,Xe=i(P)`
471
+ `,Ye=i(A)`
472
472
  width: 70%;
473
473
  aspect-ratio: 1;
474
474
  border-radius: 16px;
475
- `,Ze=i(P)`
475
+ `,Ve=i(A)`
476
476
  width: 100%;
477
477
  height: 48px;
478
478
  border-radius: ${e.radius.card};
479
- `,Je=i.p`
479
+ `;i.p`
480
480
  margin: 0;
481
481
  font-family: ${e.font.sans};
482
482
  color: ${e.colors.muted};
483
- `,et=i.div`
483
+ `;const Xe=i.div`
484
484
  position: absolute;
485
485
  inset: 0;
486
486
  z-index: 1;
@@ -491,13 +491,13 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
491
491
  gap: 24px;
492
492
  padding: 24px;
493
493
  text-align: center;
494
- `,tt=i.p`
494
+ `,Ze=i.p`
495
495
  margin: 0;
496
496
  font-family: ${e.font.sans};
497
497
  font-size: 16px;
498
498
  line-height: 1.4;
499
499
  color: rgba(255, 255, 255, 0.88);
500
- `,it=F`
500
+ `,Je=F`
501
501
  0%, 100% {
502
502
  transform: scale(1);
503
503
  opacity: 1;
@@ -506,7 +506,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
506
506
  transform: scale(0.88);
507
507
  opacity: 0.7;
508
508
  }
509
- `,rt=i.div`
509
+ `,et=i.div`
510
510
  display: flex;
511
511
  flex-direction: column;
512
512
  align-items: center;
@@ -517,20 +517,20 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
517
517
  `,oe=i.img`
518
518
  width: 61px;
519
519
  height: 61px;
520
- animation: ${it} 1.2s ease-in-out infinite;
520
+ animation: ${Je} 1.2s ease-in-out infinite;
521
521
 
522
522
  @media (prefers-reduced-motion: reduce) {
523
523
  animation: none;
524
524
  }
525
- `,nt=i(oe)`
525
+ `,tt=i(oe)`
526
526
  width: 72px;
527
527
  height: 72px;
528
- `,st=i.div`
528
+ `,it=i.div`
529
529
  display: flex;
530
530
  flex-direction: column;
531
531
  align-items: center;
532
532
  gap: 8px;
533
- `,ot=i.p`
533
+ `,rt=i.p`
534
534
  margin: 0;
535
535
  font-family: ${e.font.sans};
536
536
  font-size: 20px;
@@ -540,18 +540,18 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
540
540
  strong {
541
541
  font-weight: 700;
542
542
  }
543
- `,at=i.div`
543
+ `,nt=i.div`
544
544
  display: flex;
545
545
  align-items: center;
546
546
  gap: 8px;
547
- `,dt=F`
547
+ `,ot=F`
548
548
  0% {
549
549
  left: -40%;
550
550
  }
551
551
  100% {
552
552
  left: 100%;
553
553
  }
554
- `,ct=i.span`
554
+ `,st=i.span`
555
555
  position: relative;
556
556
  width: 456px;
557
557
  max-width: 60vw;
@@ -559,7 +559,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
559
559
  border-radius: ${e.radius.pill};
560
560
  background: ${e.colors.chip};
561
561
  overflow: hidden;
562
- `,lt=i.span`
562
+ `,at=i.span`
563
563
  position: absolute;
564
564
  top: 0;
565
565
  left: -40%;
@@ -567,19 +567,19 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
567
567
  height: 100%;
568
568
  border-radius: ${e.radius.pill};
569
569
  background: ${e.gradients.amethyst};
570
- animation: ${dt} 1.4s ease-in-out infinite;
570
+ animation: ${ot} 1.4s ease-in-out infinite;
571
571
 
572
572
  @media (prefers-reduced-motion: reduce) {
573
573
  left: 0;
574
574
  width: 30%;
575
575
  animation: none;
576
576
  }
577
- `,pt=i.span`
577
+ `,dt=i.span`
578
578
  font-family: ${e.font.sans};
579
579
  font-size: 16px;
580
580
  line-height: 22px;
581
581
  color: ${e.colors.text2};
582
- `,ht=i.div`
582
+ `,ct=i.div`
583
583
  /* Its own stacking context, so the confetti layer (z-index: -1) lands BEHIND this content instead of
584
584
  escaping past it and hiding behind the page background. z-index is inert without a position, so both
585
585
  are required — same arrangement Success.styles' Root uses for the item-purchase burst. */
@@ -590,7 +590,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
590
590
  gap: 12px;
591
591
  max-width: 895px;
592
592
  margin: 0 auto;
593
- `,ut=i.div`
593
+ `,lt=i.div`
594
594
  display: flex;
595
595
  align-items: center;
596
596
  gap: 16px;
@@ -603,11 +603,11 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
603
603
  flex-direction: column;
604
604
  text-align: center;
605
605
  }
606
- `,xt=i.img`
606
+ `,pt=i.img`
607
607
  flex: none;
608
608
  width: 60px;
609
609
  height: 60px;
610
- `,gt=i.p`
610
+ `,ht=i.p`
611
611
  flex: 1;
612
612
  margin: 0;
613
613
  font-family: ${e.font.sans};
@@ -619,12 +619,12 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
619
619
  strong {
620
620
  font-weight: 700;
621
621
  }
622
- `,ft=i.div`
622
+ `,xt=i.div`
623
623
  padding: 24px;
624
624
  border-radius: 16px;
625
625
  background: ${e.colors.white};
626
626
  border: 1px solid ${e.colors.gray4};
627
- `,mt=i.div`
627
+ `,ut=i.div`
628
628
  position: relative;
629
629
  display: flex;
630
630
  align-items: center;
@@ -648,7 +648,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
648
648
  gap: 10px;
649
649
  padding: 120px 16px 16px;
650
650
  }
651
- `,bt=i.img`
651
+ `,gt=i.img`
652
652
  position: absolute;
653
653
  left: 35px;
654
654
  top: 50%;
@@ -662,7 +662,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
662
662
  top: 16px;
663
663
  transform: translateX(-50%);
664
664
  }
665
- `,wt=i.p`
665
+ `,ft=i.p`
666
666
  display: inline-flex;
667
667
  align-items: center;
668
668
  gap: 8px;
@@ -675,14 +675,14 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
675
675
  height: 30px;
676
676
  color: ${e.colors.text};
677
677
  }
678
- `,yt=i.strong`
678
+ `,mt=i.strong`
679
679
  font-size: 24px;
680
680
  font-weight: 700;
681
681
  text-transform: capitalize;
682
- `,kt=i.span`
682
+ `,bt=i.span`
683
683
  font-size: 14px;
684
684
  font-weight: 400;
685
- `,vt=i.div`
685
+ `,wt=i.div`
686
686
  display: flex;
687
687
  gap: 12px;
688
688
 
@@ -722,11 +722,23 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
722
722
  background: rgba(105, 31, 169, 0.06);
723
723
  filter: none;
724
724
  }
725
+ /* The buy gradient, same primary fill the rest of the shop's terminal CTAs carry. */
726
+ &[data-variant='ruby'] {
727
+ background: ${e.gradients.buyBtn};
728
+ color: ${e.colors.white};
729
+ }
725
730
  &:focus-visible {
726
731
  outline: 2px solid ${e.colors.accent};
727
732
  outline-offset: 2px;
728
733
  }
729
- `,Z=i.div`
734
+ `,J=i.section`
735
+ display: flex;
736
+ flex-direction: column;
737
+ align-items: center;
738
+ justify-content: center;
739
+ min-height: min(62vh, 620px);
740
+ padding: 48px 16px;
741
+ `,yt=i.div`
730
742
  display: flex;
731
743
  flex-direction: column;
732
744
  align-items: center;
@@ -735,7 +747,48 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
735
747
  margin: 0 auto;
736
748
  padding: 48px 24px;
737
749
  text-align: center;
738
- `,J=i.p`
750
+ `,kt=i.div`
751
+ display: flex;
752
+ flex-direction: column;
753
+ width: 100%;
754
+ max-width: 895px;
755
+ border-radius: 16px;
756
+ background: ${e.colors.white};
757
+ overflow: hidden;
758
+ `,vt=i.div`
759
+ display: flex;
760
+ align-items: center;
761
+ justify-content: center;
762
+ gap: 12px;
763
+ padding: 20px 24px;
764
+ border-bottom: 1px solid ${e.colors.gray4};
765
+ `,Ct=i.img`
766
+ flex: none;
767
+ width: 32px;
768
+ height: 32px;
769
+ `,$t=i.p`
770
+ margin: 0;
771
+ font-family: ${e.font.sans};
772
+ font-size: 20px;
773
+ font-weight: 700;
774
+ color: ${e.colors.text};
775
+ `,jt=i.p`
776
+ margin: 0;
777
+ padding: 24px;
778
+ font-family: ${e.font.sans};
779
+ font-size: 16px;
780
+ line-height: 1.4;
781
+ text-align: center;
782
+ color: ${e.colors.text};
783
+ `,St=i.div`
784
+ display: flex;
785
+ gap: 12px;
786
+ padding: 0 16px 16px;
787
+
788
+ @media (max-width: 560px) {
789
+ flex-direction: column;
790
+ }
791
+ `,Pt=i.p`
739
792
  margin: 0;
740
793
  font-family: ${e.font.sans};
741
794
  font-size: 20px;
@@ -745,12 +798,12 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
745
798
  &[data-tone='error'] {
746
799
  color: ${e.colors.err};
747
800
  }
748
- `,ee=i.div`
801
+ `,At=i.div`
749
802
  display: flex;
750
803
  gap: 12px;
751
804
  margin-top: 16px;
752
- `,Ct=i.p`
805
+ `,Tt=i.p`
753
806
  margin: 0;
754
807
  font-family: ${e.font.sans};
755
808
  color: ${e.colors.err};
756
- `,C=Ae()?"mock":"stripe",te=[A,A,ne,se],$t={pack_5:A,pack_10:A,pack_25:ne,pack_50:se};function ae(d,s){return $t[d.id]??te[s%te.length]}function jt(d,s){return d.artUrl??ae(d,s)}const St=[{question:"faq.buyers.whatAreQ",answer:"faq.buyers.whatAreA"},{question:"faq.buyers.whatCanIBuyQ",answer:"faq.buyers.whatCanIBuyA"},{question:"faq.buyers.whereBuyQ",answer:"faq.buyers.whereBuyA"},{question:"faq.buyers.whereUseQ",answer:"faq.buyers.whereUseA"},{question:"faq.buyers.expireQ",answer:"faq.buyers.expireA"},{question:"faq.buyers.transferQ",answer:"faq.buyers.transferA"}];function ie(d){const s=d;if((s==null?void 0:s.name)==="AbortError")return n("getCredits.errorCanceled");const f=((s==null?void 0:s.message)??"").toLowerCase();return f.includes("sign in")?n("getCredits.errorSignIn",{currency:h.name}):f.includes("timed out")?n("getCredits.errorTimeout",{currency:h.name}):n("getCredits.errorGeneric")}function Wt(){var L;ge({title:n("nav.getCredits",{currency:h.name}),noindex:!0});const d=ue(),{session:s,signIn:f}=fe(),o=me(),[m,b]=xe(),{packs:$,isLoading:y}=Ce(),[u,p]=l.useState("select"),[c,q]=l.useState(null),[j,E]=l.useState(null),de=(j!=null?(L=$.find(r=>r.credits===j))==null?void 0:L.artUrl:void 0)??Re,[ce,k]=l.useState(null),[le,R]=l.useState(!1),T=l.useRef(null);l.useEffect(()=>()=>{var r;return(r=T.current)==null?void 0:r.abort()},[]);const I=l.useCallback(()=>{b(r=>{const a=new URLSearchParams(r);return a.delete("order"),a.delete("canceled"),a},{replace:!0})},[b]),_=l.useCallback(async r=>{p("processing");const a=new AbortController;T.current=a;try{const x=await $e(r,{signal:a.signal,address:s==null?void 0:s.address,identity:s==null?void 0:s.identity});if(x.status==="credited"){const w=x.creditsGranted??(c==null?void 0:c.credits)??0;E(w>0?w:null),p("success"),g("Shop Completed Buy Credits",{order_id:r,pack_usd:(c==null?void 0:c.usd)??null,credits:w>0?w:null,provider:C}),o.invalidateQueries({queryKey:["usd-balance"]});try{if(sessionStorage.getItem(je)){const S={resumeCheckout:!0,...w>0?{creditsAdded:w}:{}};d("/cart",{state:S});return}}catch{}try{const S=sessionStorage.getItem(H);if(S){sessionStorage.removeItem(H);const M=JSON.parse(S),G=be(M);if(G){d(G,{state:{item:M,resumeBuy:!0}});return}}}catch{}}else x.status==="pending"?(g("Shop Buy Credits Pending",{step:"grant",pack_usd:(c==null?void 0:c.usd)??null}),o.invalidateQueries({queryKey:["usd-balance"]}),p("pending")):(g("Shop Buy Credits Failed",{step:"grant",error_code:"grant_failed",pack_usd:(c==null?void 0:c.usd)??null}),k(x.error??n("getCredits.errorGrant",{currency:h.name})),p("error"))}catch(x){U(x,{flow:"get_credits",step:"grant",order_id:r}),g("Shop Buy Credits Failed",{step:"grant",error_code:N(x),pack_usd:(c==null?void 0:c.usd)??null}),k(ie(x)),p("error")}},[c,s,o,d]),pe=l.useCallback(async r=>{if(!s){f();return}k(null),R(!1),q(r),p(C==="mock"?"processing":"redirecting"),g("Shop Started Buy Credits",{pack_usd:r.usd,credits:r.credits,provider:C});try{const a=await Se(r.id,{address:s.address,identity:s.identity});if(a.mock)_(a.orderId);else if(a.url)g("Shop Redirected To Stripe",{order_id:a.orderId,pack_usd:r.usd,credits:r.credits}),window.location.href=a.url;else throw new Error("Checkout did not return a redirect url")}catch(a){U(a,{flow:"get_credits",step:"checkout",provider:C}),g("Shop Buy Credits Failed",{step:"checkout",error_code:N(a),pack_usd:r.usd}),k(ie(a)),p("error")}},[s,f,_]),z=l.useRef(!1),W=l.useRef(null);l.useEffect(()=>{if(z.current)return;const r=m.get("order");if(m.get("canceled")!=null){z.current=!0,g("Shop Buy Credits Cancelled",{order_id:r,provider:C}),r&&s&&we(r,s.identity),I(),R(!0),p("select");return}r&&(p("processing"),s&&(z.current=!0,I(),_(r)))},[m,s]);function B(){var r;(r=T.current)==null||r.abort(),p("select"),q(null),E(null),k(null),R(!1)}function he(){const r=W.current;if(!r)return;const a=window.matchMedia("(prefers-reduced-motion: reduce)").matches;r.scrollIntoView({behavior:a?"auto":"smooth",block:"center"}),r.focus({preventScroll:!0})}return t.jsxs(_e,{children:[(u==="select"||u==="redirecting")&&t.jsxs(t.Fragment,{children:[t.jsx(ze,{"data-testid":"credits-hero",children:t.jsxs(Be,{children:[t.jsxs(qe,{$hidden:u==="redirecting",children:[t.jsxs(Ee,{children:[t.jsx(Ie,{children:n("getCredits.title")}),t.jsxs(We,{children:[t.jsx(Le,{children:n("getCredits.subtitle")}),t.jsx(Me,{type:"button",onClick:he,"data-testid":"credits-learn-more",children:n("getCredits.learnMore")})]})]}),le&&t.jsx(Ge,{role:"status",children:n("getCredits.canceledNote")}),t.jsx(At,{packs:$,loading:y,onSelect:r=>void pe(r)})]}),u==="redirecting"&&t.jsxs(et,{role:"status","aria-live":"polite",children:[t.jsx(nt,{src:Q,alt:"",width:72,height:72}),t.jsx(tt,{children:n("getCredits.redirecting")})]})]})}),t.jsx(Fe,{ref:W,tabIndex:-1,"data-testid":"credits-faq",children:t.jsx(ve,{title:"faq.title",entries:St,tone:"on-dark"})})]}),u==="processing"&&t.jsxs(rt,{role:"status","aria-live":"polite",children:[t.jsx(oe,{src:Q,alt:"",width:61,height:61}),t.jsxs(st,{children:[t.jsxs(ot,{children:[t.jsx("strong",{children:n("getCredits.processing")}),"…"]}),t.jsxs(at,{"aria-hidden":!0,children:[t.jsx(ct,{children:t.jsx(lt,{})}),t.jsx(pt,{children:"1/1"})]})]})]}),u==="success"&&t.jsxs(ht,{role:"status","aria-live":"polite",children:[t.jsx(ke,{}),t.jsxs(ut,{children:[t.jsx(xt,{src:Te,alt:"",width:60,height:60}),t.jsxs(gt,{children:[t.jsx("strong",{children:n("getCredits.successTitle")})," ",n("getCredits.successBody",{currency:h.name})]})]}),j!=null&&t.jsx(ft,{children:t.jsxs(mt,{children:[t.jsx(bt,{src:de,alt:"",width:93,height:93}),t.jsxs(wt,{children:[t.jsx(re,{}),t.jsxs("span",{children:[t.jsx(yt,{children:n("getCredits.creditsAmount",{credits:j,currency:h.name})})," ",t.jsx(kt,{children:n("getCredits.creditsAdded")})]})]})]})}),t.jsxs(vt,{children:[t.jsx(v,{"data-variant":"outline",onClick:B,children:n("getCredits.buyMore",{currency:h.name})}),t.jsx(v,{onClick:()=>d("/items"),children:n("getCredits.startShopping")})]})]}),u==="pending"&&t.jsxs(Z,{role:"status","aria-live":"polite",children:[t.jsx(J,{children:n("getCredits.pendingTitle",{currency:h.name})}),t.jsx(Je,{children:n("getCredits.pendingBody")}),t.jsxs(ee,{children:[t.jsx(v,{onClick:()=>d("/items"),children:n("getCredits.startShopping")}),t.jsx(v,{"data-variant":"outline",onClick:B,children:n("getCredits.done")})]})]}),u==="error"&&t.jsxs(Z,{role:"alert",children:[t.jsx(J,{"data-tone":"error",children:n("getCredits.errorTitle")}),t.jsx(Ct,{children:ce}),t.jsx(ee,{children:t.jsx(v,{onClick:B,children:n("getCredits.tryAgain")})})]})]})}function At({packs:d,loading:s,onSelect:f}){return s?t.jsx(K,{"aria-busy":"true","aria-label":n("getCredits.packsLoading",{currency:h.name}),children:[0,1,2,3].map(o=>t.jsxs(Y,{as:"div","data-skeleton":"true","data-testid":"pack-skeleton","aria-hidden":!0,children:[t.jsxs(V,{children:[t.jsxs(X,{children:[t.jsx(Ye,{}),t.jsx(Ve,{})]}),t.jsx(Xe,{})]}),t.jsx(Ze,{})]},o))}):t.jsx(K,{children:d.map((o,m)=>{const b=Pe(o,d);return t.jsxs(Y,{type:"button","data-testid":"pack","data-best":o.bestValue?"true":void 0,onClick:()=>f(o),"aria-label":b?n("getCredits.packAriaBonus",{amount:D(o.credits),usd:o.usd,bonus:b.bonus,baseline:b.baseline}):n("getCredits.packAria",{amount:D(o.credits),usd:o.usd}),children:[o.bestValue&&t.jsxs(Ue,{children:[t.jsx(ye,{name:"star-rounded"}),n("getCredits.packBadge")]}),t.jsxs(V,{children:[t.jsxs(X,{children:[t.jsxs(Ne,{children:[t.jsx(re,{}),t.jsx(Qe,{children:o.credits})]}),t.jsx(De,{children:n("getCredits.packUnit",{currency:h.name})})]}),t.jsx(He,{children:t.jsx("img",{src:jt(o,m),alt:"",loading:"lazy",width:507,height:507,onError:$=>{const y=$.currentTarget;y.dataset.artFallback||(y.dataset.artFallback="done",y.src=ae(o,m))}})})]}),t.jsxs(Oe,{children:["$",o.usd.toFixed(2)]})]},o.id)})})}export{Wt as GetCredits,Wt as default};
809
+ `,C=Se()?"mock":"stripe",ee=[P,P,re,ne],Rt={pack_5:P,pack_10:P,pack_25:re,pack_50:ne};function se(d,o){return Rt[d.id]??ee[o%ee.length]}function zt(d,o){return d.artUrl??se(d,o)}const _t=[{question:"faq.buyers.whatAreQ",answer:"faq.buyers.whatAreA"},{question:"faq.buyers.whatCanIBuyQ",answer:"faq.buyers.whatCanIBuyA"},{question:"faq.buyers.whereBuyQ",answer:"faq.buyers.whereBuyA"},{question:"faq.buyers.whereUseQ",answer:"faq.buyers.whereUseA"},{question:"faq.buyers.expireQ",answer:"faq.buyers.expireA"},{question:"faq.buyers.transferQ",answer:"faq.buyers.transferA"}];function te(d){const o=d;if((o==null?void 0:o.name)==="AbortError")return n("getCredits.errorCanceled");const f=((o==null?void 0:o.message)??"").toLowerCase();return f.includes("sign in")?n("getCredits.errorSignIn",{currency:h.name}):f.includes("timed out")?n("getCredits.errorTimeout",{currency:h.name}):n("getCredits.errorGeneric")}function Ht(){var L;ue({title:n("nav.getCredits",{currency:h.name}),noindex:!0});const d=he(),{session:o,signIn:f}=ge(),s=fe(),[m,b]=xe(),{packs:$,isLoading:y}=ve(),[x,p]=l.useState("select"),[c,q]=l.useState(null),[j,E]=l.useState(null),ae=(j!=null?(L=$.find(r=>r.credits===j))==null?void 0:L.artUrl:void 0)??Ae,[de,k]=l.useState(null),[ce,T]=l.useState(!1),R=l.useRef(null);l.useEffect(()=>()=>{var r;return(r=R.current)==null?void 0:r.abort()},[]);const I=l.useCallback(()=>{b(r=>{const a=new URLSearchParams(r);return a.delete("order"),a.delete("canceled"),a},{replace:!0})},[b]),z=l.useCallback(async r=>{p("processing");const a=new AbortController;R.current=a;try{const u=await Ce(r,{signal:a.signal,address:o==null?void 0:o.address,identity:o==null?void 0:o.identity});if(u.status==="credited"){const w=u.creditsGranted??(c==null?void 0:c.credits)??0;E(w>0?w:null),p("success"),g("Shop Completed Buy Credits",{order_id:r,pack_usd:(c==null?void 0:c.usd)??null,credits:w>0?w:null,provider:C}),s.invalidateQueries({queryKey:["usd-balance"]});try{if(sessionStorage.getItem($e)){const S={resumeCheckout:!0,...w>0?{creditsAdded:w}:{}};d("/cart",{state:S});return}}catch{}try{const S=sessionStorage.getItem(D);if(S){sessionStorage.removeItem(D);const G=JSON.parse(S),M=me(G);if(M){d(M,{state:{item:G,resumeBuy:!0}});return}}}catch{}}else u.status==="pending"?(g("Shop Buy Credits Pending",{step:"grant",pack_usd:(c==null?void 0:c.usd)??null}),s.invalidateQueries({queryKey:["usd-balance"]}),p("pending")):(g("Shop Buy Credits Failed",{step:"grant",error_code:"grant_failed",pack_usd:(c==null?void 0:c.usd)??null}),k(u.error??n("getCredits.errorGrant",{currency:h.name})),p("error"))}catch(u){U(u,{flow:"get_credits",step:"grant",order_id:r}),g("Shop Buy Credits Failed",{step:"grant",error_code:N(u),pack_usd:(c==null?void 0:c.usd)??null}),k(te(u)),p("error")}},[c,o,s,d]),le=l.useCallback(async r=>{if(!o){f();return}k(null),T(!1),q(r),p(C==="mock"?"processing":"redirecting"),g("Shop Started Buy Credits",{pack_usd:r.usd,credits:r.credits,provider:C});try{const a=await je(r.id,{address:o.address,identity:o.identity});if(a.mock)z(a.orderId);else if(a.url)g("Shop Redirected To Stripe",{order_id:a.orderId,pack_usd:r.usd,credits:r.credits}),window.location.href=a.url;else throw new Error("Checkout did not return a redirect url")}catch(a){U(a,{flow:"get_credits",step:"checkout",provider:C}),g("Shop Buy Credits Failed",{step:"checkout",error_code:N(a),pack_usd:r.usd}),k(te(a)),p("error")}},[o,f,z]),_=l.useRef(!1),W=l.useRef(null);l.useEffect(()=>{if(_.current)return;const r=m.get("order");if(m.get("canceled")!=null){_.current=!0,g("Shop Buy Credits Cancelled",{order_id:r,provider:C}),r&&o&&be(r,o.identity),I(),T(!0),p("select");return}r&&(p("processing"),o&&(_.current=!0,I(),z(r)))},[m,o]);function B(){var r;(r=R.current)==null||r.abort(),p("select"),q(null),E(null),k(null),T(!1)}function pe(){const r=W.current;if(!r)return;const a=window.matchMedia("(prefers-reduced-motion: reduce)").matches;r.scrollIntoView({behavior:a?"auto":"smooth",block:"center"}),r.focus({preventScroll:!0})}return t.jsxs(Te,{children:[(x==="select"||x==="redirecting")&&t.jsxs(t.Fragment,{children:[t.jsx(Re,{"data-testid":"credits-hero",children:t.jsxs(ze,{children:[t.jsxs(Be,{$hidden:x==="redirecting",children:[t.jsxs(Fe,{children:[t.jsx(qe,{children:n("getCredits.title")}),t.jsxs(Ee,{children:[t.jsx(Ie,{children:n("getCredits.subtitle")}),t.jsx(We,{type:"button",onClick:pe,"data-testid":"credits-learn-more",children:n("getCredits.learnMore")})]})]}),ce&&t.jsx(Le,{role:"status",children:n("getCredits.canceledNote")}),t.jsx(Bt,{packs:$,loading:y,onSelect:r=>void le(r)})]}),x==="redirecting"&&t.jsxs(Xe,{role:"status","aria-live":"polite",children:[t.jsx(tt,{src:H,alt:"",width:72,height:72}),t.jsx(Ze,{children:n("getCredits.redirecting")})]})]})}),t.jsx(_e,{ref:W,tabIndex:-1,"data-testid":"credits-faq",children:t.jsx(ke,{title:"faq.title",entries:_t,tone:"on-dark"})})]}),x==="processing"&&t.jsxs(et,{role:"status","aria-live":"polite",children:[t.jsx(oe,{src:H,alt:"",width:61,height:61}),t.jsxs(it,{children:[t.jsxs(rt,{children:[t.jsx("strong",{children:n("getCredits.processing")}),"…"]}),t.jsxs(nt,{"aria-hidden":!0,children:[t.jsx(st,{children:t.jsx(at,{})}),t.jsx(dt,{children:"1/1"})]})]})]}),x==="success"&&t.jsx(J,{children:t.jsxs(ct,{role:"status","aria-live":"polite",children:[t.jsx(ye,{}),t.jsxs(lt,{children:[t.jsx(pt,{src:O,alt:"",width:60,height:60}),t.jsxs(ht,{children:[t.jsx("strong",{children:n("getCredits.successTitle")})," ",n("getCredits.successBody",{currency:h.name})]})]}),j!=null&&t.jsx(xt,{children:t.jsxs(ut,{children:[t.jsx(gt,{src:ae,alt:"",width:93,height:93}),t.jsxs(ft,{children:[t.jsx(ie,{}),t.jsxs("span",{children:[t.jsx(mt,{children:n("getCredits.creditsAmount",{credits:j,currency:h.name})})," ",t.jsx(bt,{children:n("getCredits.creditsAdded")})]})]})]})}),t.jsxs(wt,{children:[t.jsx(v,{"data-variant":"outline",onClick:B,children:n("getCredits.buyMore",{currency:h.name})}),t.jsx(v,{onClick:()=>d("/items"),children:n("getCredits.startShopping")})]})]})}),x==="pending"&&t.jsx(J,{children:t.jsxs(kt,{role:"status","aria-live":"polite","data-testid":"credits-pending",children:[t.jsxs(vt,{children:[t.jsx(Ct,{src:O,alt:"",width:32,height:32}),t.jsx($t,{children:n("getCredits.pendingTitle",{currency:h.name})})]}),t.jsx(jt,{children:n("getCredits.pendingBody")}),t.jsxs(St,{children:[t.jsx(v,{"data-variant":"outline",onClick:()=>d("/items"),children:n("getCredits.goShopping")}),t.jsx(v,{"data-variant":"ruby",onClick:B,children:n("getCredits.gotIt")})]})]})}),x==="error"&&t.jsxs(yt,{role:"alert",children:[t.jsx(Pt,{"data-tone":"error",children:n("getCredits.errorTitle")}),t.jsx(Tt,{children:de}),t.jsx(At,{children:t.jsx(v,{onClick:B,children:n("getCredits.tryAgain")})})]})]})}function Bt({packs:d,loading:o,onSelect:f}){return o?t.jsx(Y,{"aria-busy":"true","aria-label":n("getCredits.packsLoading",{currency:h.name}),children:[0,1,2,3].map(s=>t.jsxs(V,{as:"div","data-skeleton":"true","data-testid":"pack-skeleton","aria-hidden":!0,children:[t.jsxs(X,{children:[t.jsxs(Z,{children:[t.jsx(Oe,{}),t.jsx(Ke,{})]}),t.jsx(Ye,{})]}),t.jsx(Ve,{})]},s))}):t.jsx(Y,{children:d.map((s,m)=>{const b=Pe(s,d);return t.jsxs(V,{type:"button","data-testid":"pack","data-best":s.bestValue?"true":void 0,onClick:()=>f(s),"aria-label":b?n("getCredits.packAriaBonus",{amount:Q(s.credits),usd:s.usd,bonus:b.bonus,baseline:b.baseline}):n("getCredits.packAria",{amount:Q(s.credits),usd:s.usd}),children:[s.bestValue&&t.jsxs(Ge,{children:[t.jsx(we,{name:"star-rounded"}),n("getCredits.packBadge")]}),t.jsxs(X,{children:[t.jsxs(Z,{children:[t.jsxs(Me,{children:[t.jsx(ie,{}),t.jsx(Ue,{children:s.credits})]}),t.jsx(Ne,{children:n("getCredits.packUnit",{currency:h.name})})]}),t.jsx(He,{children:t.jsx("img",{src:zt(s,m),alt:"",loading:"lazy",width:507,height:507,onError:$=>{const y=$.currentTarget;y.dataset.artFallback||(y.dataset.artFallback="done",y.src=se(s,m))}})})]}),t.jsxs(Qe,{children:["$",s.usd.toFixed(2)]})]},s.id)})})}export{Ht as GetCredits,Ht as default};