@abtnode/blocklet-services 1.17.4-beta-20251202-122551-267b614d → 1.17.4-beta-20251204-080001-08643fbe

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 (139) hide show
  1. package/dist/assets/{access-control-B9EJ5tQF.js → access-control-D1ovo6-o.js} +1 -1
  2. package/dist/assets/{add-component-core-VVqL08Uq.js → add-component-core-BIhDwpuV.js} +1 -1
  3. package/dist/assets/{add-resource-DPXu2LFD.js → add-resource-C4TkG7UD.js} +1 -1
  4. package/dist/assets/{addon-DimuRKXu.js → addon-DAMRKj2r.js} +1 -1
  5. package/dist/assets/{advanced-C-M8n1zk.js → advanced-BPAoOjLm.js} +1 -1
  6. package/dist/assets/{aigne-Blnb_Xmg.js → aigne-B6ByRL09.js} +1 -1
  7. package/dist/assets/{appearance-DcbXeaDh.js → appearance-EkIyryBQ.js} +1 -1
  8. package/dist/assets/{ar-DW15ct8A.js → ar-oq8oqbkp.js} +1 -1
  9. package/dist/assets/{arrow-down.svg-CNh-MHKv.js → arrow-down.svg-Cn1jfZom.js} +1 -1
  10. package/dist/assets/{audit-logs-D0mYj6Ut.js → audit-logs-C9C7P-Sv.js} +1 -1
  11. package/dist/assets/{authorize-CZdmLVec.js → authorize-DrmC8YuR.js} +1 -1
  12. package/dist/assets/{bind-account-GnACtKqD.js → bind-account-BBEcbwvl.js} +1 -1
  13. package/dist/assets/{branding-CFP8OuF1.js → branding-BznRcuN9.js} +1 -1
  14. package/dist/assets/{branding-DmNLEN0a.js → branding-ChfGbwwx.js} +1 -1
  15. package/dist/assets/{branding-CihykCDo.js → branding-GuXEK2Lx.js} +1 -1
  16. package/dist/assets/{bundle-avatar-D3mFZG-3.js → bundle-avatar-DGFHJNB_.js} +1 -1
  17. package/dist/assets/{complete-BDYaBiHT.js → complete-DGRt8hbz.js} +1 -1
  18. package/dist/assets/{component-D_iXTtDp.js → component-7HXhlkqA.js} +2 -2
  19. package/dist/assets/{config--X9TgCMx.js → config-De0LSoek.js} +1 -1
  20. package/dist/assets/{config-C_UzRk_x.js → config-hYngbDX9.js} +1 -1
  21. package/dist/assets/{config-xLf7B5vm.js → config-jsIGlbhn.js} +1 -1
  22. package/dist/assets/{config-navigation-zOEBEK_N.js → config-navigation-Dnu_lIYd.js} +2 -2
  23. package/dist/assets/{config-space-D1vOxWrR.js → config-space-Cjm8zHqm.js} +1 -1
  24. package/dist/assets/{confirm-CC1M9sYT.js → confirm-g44rz8hw.js} +1 -1
  25. package/dist/assets/{connect-4mXUuWwC.js → connect-CdDqD7_5.js} +1 -1
  26. package/dist/assets/{connect-BpoYmTzp.js → connect-DiOZmi5p.js} +1 -1
  27. package/dist/assets/{connect-to-YDMOcSyq.js → connect-to-Bi5k3ZXU.js} +1 -1
  28. package/dist/assets/dashboard-Bcb81CDA.js +106 -0
  29. package/dist/assets/{de-DomrlJGv.js → de-CvWwatyh.js} +1 -1
  30. package/dist/assets/{delete-confirm-DF03c_mf.js → delete-confirm-Cw0wPOzJ.js} +1 -1
  31. package/dist/assets/{domain-DdkBc4bt.js → domain-BpCcezRq.js} +1 -1
  32. package/dist/assets/{domain-action-card-B8tM4_TO.js → domain-action-card-FG12ETj5.js} +1 -1
  33. package/dist/assets/{domains-CdpvlDLA.js → domains-Cgl-LcPh.js} +1 -1
  34. package/dist/assets/{email-DOKW1a_7.js → email-DmAbJJ8K.js} +1 -1
  35. package/dist/assets/engine-BXpJ8aB3.js +1 -0
  36. package/dist/assets/{es-BWRncAvl.js → es-DS01ke5n.js} +1 -1
  37. package/dist/assets/{exchange-passport-Dnbu3e66.js → exchange-passport-C3TLdHrh.js} +1 -1
  38. package/dist/assets/{form-mmswDYpL.js → form-BGvxztTN.js} +1 -1
  39. package/dist/assets/{fr-DkEISw5U.js → fr-DzxE_CQq.js} +1 -1
  40. package/dist/assets/{fuel-CpCUHgkW.js → fuel-BHnBcNst.js} +1 -1
  41. package/dist/assets/{gen-access-key-OHc0npoi.js → gen-access-key-DMekoh9G.js} +1 -1
  42. package/dist/assets/{gen-simple-access-key-C6tIufX7.js → gen-simple-access-key-CKo8-San.js} +1 -1
  43. package/dist/assets/{get-safe-url-DUB5fSqh.js → get-safe-url-DHtEly1m.js} +1 -1
  44. package/dist/assets/{hi-CNLsAFCp.js → hi-BNIc0EGT.js} +1 -1
  45. package/dist/assets/{home-BFI-HNBw.js → home-Disgh1zw.js} +1 -1
  46. package/dist/assets/{id-CiNosIvh.js → id-AeuJFLj9.js} +1 -1
  47. package/dist/assets/{iframe-DB0OcQ6i.js → iframe-DWt09ONv.js} +1 -1
  48. package/dist/assets/{index-BuIBrsUM.js → index--6oAMl0L.js} +1 -1
  49. package/dist/assets/{index-wS_uPsSR.js → index-B87ktLq-.js} +1 -1
  50. package/dist/assets/{index-D8w8SYuc.js → index-BC_wNmTA.js} +1 -1
  51. package/dist/assets/{index-3hHmW6B5.js → index-BnfJXuxc.js} +1 -1
  52. package/dist/assets/{index-Bksy_mMO.js → index-CG-mH6e1.js} +1 -1
  53. package/dist/assets/{index-DUFdTykg.js → index-CJ1a35hD.js} +1 -1
  54. package/dist/assets/{index-BphmxdkH.js → index-CPDkpfNV.js} +1 -1
  55. package/dist/assets/{index-BsP0-mXD.js → index-CSfyeeXh.js} +1 -1
  56. package/dist/assets/{index-CHbWK92_.js → index-CYxU-iOV.js} +1 -1
  57. package/dist/assets/{index-DWuLUiY3.js → index-C_W4n3wb.js} +1 -1
  58. package/dist/assets/{index-WCk612vr.js → index-Cbz9zwoD.js} +1 -1
  59. package/dist/assets/{index-Xg-It3qI.js → index-Cke5eCl6.js} +1 -1
  60. package/dist/assets/{index-D0pDhWRx.js → index-CwAM1jrM.js} +1 -1
  61. package/dist/assets/{index-CeWTwSLE.js → index-Cx5JU0Ln.js} +4 -4
  62. package/dist/assets/{index-V1TR40-z.js → index-D5tCTUjA.js} +1 -1
  63. package/dist/assets/{index-Duwa2sz8.js → index-DLvroCDC.js} +1 -1
  64. package/dist/assets/{index-CtouYMiN.js → index-Dgb4cDcB.js} +1 -1
  65. package/dist/assets/index-Duu9lR4r.js +281 -0
  66. package/dist/assets/{index-Bns8G6yV.js → index-DxQFjZlw.js} +2 -2
  67. package/dist/assets/{index-CDE0c6ul.js → index-DxaRhCwJ.js} +1 -1
  68. package/dist/assets/{index-CEyMJtzZ.js → index-EH5vv2Ba.js} +3 -3
  69. package/dist/assets/{index-BMkJtBkv.js → index-Hh69Xj8u.js} +1 -1
  70. package/dist/assets/{index-Bj8J6jnM.js → index-bb9HF7R1.js} +1 -1
  71. package/dist/assets/{index-Bw9XS3Zt.js → index-fJzIwqxQ.js} +2 -2
  72. package/dist/assets/{index-C3BK6ln_.js → index-gy2ZIEt_.js} +1 -1
  73. package/dist/assets/{index-ohq48KFN.js → index-k8gDRcJR.js} +1 -1
  74. package/dist/assets/{invitation-BqyhoSaQ.js → invitation-C9uUexLK.js} +1 -1
  75. package/dist/assets/{invitations-Dmx5LkD1.js → invitations-sELORD_h.js} +1 -1
  76. package/dist/assets/{invite-E-ZdmNWy.js → invite-CXR3ZLRS.js} +1 -1
  77. package/dist/assets/{isURL-HS60va5G.js → isURL-CohjRVvR.js} +1 -1
  78. package/dist/assets/{issue-passport-DhA2Aw2n.js → issue-passport-q8H-mSA2.js} +1 -1
  79. package/dist/assets/{item-B8ah25gH.js → item-BIqA21iq.js} +1 -1
  80. package/dist/assets/{ja-D5EfJGvg.js → ja-DVjbOvSw.js} +1 -1
  81. package/dist/assets/{ko-DIYdQvvz.js → ko-ThcaJAOD.js} +1 -1
  82. package/dist/assets/{landing-page-DQBBERn_.js → landing-page-DgPDUi6Y.js} +1 -1
  83. package/dist/assets/{layout-DUsIwJhf.js → layout-Cr6KApqq.js} +1 -1
  84. package/dist/assets/{list-CLMUEykk.js → list-DZKko9y8.js} +1 -1
  85. package/dist/assets/{list-C6OYD0M-.js → list-DaqruRvJ.js} +1 -1
  86. package/dist/assets/{localization-CutEJG9u.js → localization-B72YTR3I.js} +1 -1
  87. package/dist/assets/{log-CaIfb_mj.js → log-DwPeERno.js} +1 -1
  88. package/dist/assets/{login-N9lwWO_e.js → login-Fd_qnrRk.js} +1 -1
  89. package/dist/assets/{login-oauth-callback-U2rdasmV.js → login-oauth-callback-BWKfq40w.js} +1 -1
  90. package/dist/assets/{logo-uploader-BgXq5jHQ.js → logo-uploader-_reea4L6.js} +1 -1
  91. package/dist/assets/{lost-passport-CPwExoAp.js → lost-passport-DmkXn2Nz.js} +1 -1
  92. package/dist/assets/{open-window-BPgl9r9H.js → open-window-DCReXykr.js} +1 -1
  93. package/dist/assets/{over-due-invoice-payment-Hi-FNl9O.js → over-due-invoice-payment-Bsp5V3AP.js} +1 -1
  94. package/dist/assets/{overview-DPJo9CyG.js → overview-CXMCgIAo.js} +1 -1
  95. package/dist/assets/{passport-DMZiwbhL.js → passport-Dsw-sETA.js} +1 -1
  96. package/dist/assets/{passport-item-yqBy6NcY.js → passport-item-CEM3FQ2i.js} +1 -1
  97. package/dist/assets/{permission-CiiVpApl.js → permission-G7gi0qR2.js} +1 -1
  98. package/dist/assets/{preferences-YgFBqLbX.js → preferences-DalbRqbk.js} +1 -1
  99. package/dist/assets/{profile-embed-C35dSucs.js → profile-embed-CQgwIw3w.js} +1 -1
  100. package/dist/assets/{pt-aIOBgpHE.js → pt-DKZZkfsB.js} +1 -1
  101. package/dist/assets/{publish-resource-DUDgKqzf.js → publish-resource-BqB_XJ-d.js} +1 -1
  102. package/dist/assets/{ru-Bt8-v101.js → ru-DuAqnhp6.js} +1 -1
  103. package/dist/assets/{runtime-B_yu4wL5.js → runtime-k8xPJwHr.js} +1 -1
  104. package/dist/assets/sdk-BLKW-lxg.js +1 -0
  105. package/dist/assets/{security-YhrYNktK.js → security-CnSkbe_3.js} +1 -1
  106. package/dist/assets/{session-CJQ7HeL8.js → session-CAOgTWka.js} +1 -1
  107. package/dist/assets/{setup-DVxC6L1D.js → setup-B6xOe2m-.js} +1 -1
  108. package/dist/assets/{simple-select-BW6-FLlf.js → simple-select-Cg51s1gv.js} +1 -1
  109. package/dist/assets/{spaces-DB-xtAK9.js → spaces-3bFBxoYi.js} +1 -1
  110. package/dist/assets/{start-CnOduVio.js → start-CkQJJ_tn.js} +1 -1
  111. package/dist/assets/{starting-progress-Qp2T3eDZ.js → starting-progress-C1yUqqL2.js} +1 -1
  112. package/dist/assets/{status-B2iiuI6t.js → status-6KTOVV9E.js} +1 -1
  113. package/dist/assets/{step-actions-D7ku0W0o.js → step-actions-DHdqImlg.js} +1 -1
  114. package/dist/assets/{studio-DtnYEBjZ.js → studio-B65PiAI_.js} +1 -1
  115. package/dist/assets/{team-CKeHAIQC.js → team-CG74iq-4.js} +1 -1
  116. package/dist/assets/{th-QYkziTlm.js → th-d9fJJu30.js} +1 -1
  117. package/dist/assets/{traffic-NcU-KhYi.js → traffic-Cyi-eL2B.js} +1 -1
  118. package/dist/assets/{transfer-CB2s8PFZ.js → transfer-BNHZEvsT.js} +1 -1
  119. package/dist/assets/{unsubscribe-a8AJuSFd.js → unsubscribe-DmlsM6iA.js} +1 -1
  120. package/dist/assets/{use-app-logo-D38VoM1R.js → use-app-logo-BAJtA-EN.js} +1 -1
  121. package/dist/assets/{user-center-BNMJJTvG.js → user-center-CNFpJssw.js} +2 -2
  122. package/dist/assets/{user-follower-BXm4RUI2.js → user-follower-BsFDOo99.js} +1 -1
  123. package/dist/assets/{util-DPC-rfKa.js → util-B41ySVcQ.js} +1 -1
  124. package/dist/assets/{util-MwdZAHoO.js → util-DkhTntVV.js} +1 -1
  125. package/dist/assets/{vi-BIkODa3n.js → vi-C8B_KLxV.js} +1 -1
  126. package/dist/assets/{wait-connect-Of13xq9u.js → wait-connect-48vXA6Ey.js} +1 -1
  127. package/dist/assets/{wizard-BXTkkerl.js → wizard-BwJoQAJL.js} +1 -1
  128. package/dist/assets/{wizard-components-BZ6jYzgt.js → wizard-components-C4msLQny.js} +1 -1
  129. package/dist/assets/{wrap-locale-CPp4ppiN.js → wrap-locale-D5uKJYzr.js} +1 -1
  130. package/dist/assets/{zh-8l1HXCDx.js → zh-BNKpRkuo.js} +1 -1
  131. package/dist/assets/{zh-CPf0Aw2x.js → zh-qzgEmNi8.js} +1 -1
  132. package/dist/assets/{zh-tw-CYPf8U5U.js → zh-tw-Bu0-uVuH.js} +1 -1
  133. package/dist/index.html +1 -1
  134. package/dist/service-worker.js +1 -1
  135. package/package.json +23 -23
  136. package/dist/assets/dashboard-DeaTlS85.js +0 -106
  137. package/dist/assets/engine-BsqbrwXE.js +0 -1
  138. package/dist/assets/index-CDFYQ7q2.js +0 -281
  139. package/dist/assets/sdk-D9qYMy_G.js +0 -1
@@ -1 +1 @@
1
- const e={auth:{noPermission:{title:"許可されていません",description:"あなたはこのブロックレットの管理者ではありません"}},login:{reLogin:"再接続する",description:"DIDウォレットを接続して{name}にアクセスする必要があります",already:"{name}として接続されています",connectWallet:"DIDウォレットに接続する",closeWindow:"ウィンドウを閉じる",accessLimit:{title:"ページへのアクセスが制限されています",description:"このページをアクセスするには、以下のパスポートが必要です。ウォレットに接続して、対応するパスを変更または申請してください。",alreadyHavePassport:"もうパスポートを持っています",connectWithPassport:"このパスポートで接続してください",buyPassport:"パスポートを購入する"},switchDid:{title:"アカウントを切り替える",scan:"以下の方法でアカウントを追加してください",confirm:"DIDウォレットでの切り替えを確認してください",success:"正常に切り替えられました"},switchSpecifiedDid:{title:"アカウントを切り替える",scan:"次のアクションを完了するために、DIDを{did}に切り替える必要があります",confirm:"DIDウォレットでの切り替えを確認してください",success:"正常に切り替えました"},connect:{title:"接続",scan:"以下の方法で接続を完了してください",confirm:"アカウントで確認する",success:"正常に接続されました"},needManualClose:"ログインの成功、このウィンドウが自動で閉じなければ、閉じてください。",connectWithPassport:"このパスポートと接続",invalidRedirectUrl:"無効なリダイレクトURL",issueKyc:{pageDescription:"アカウントを保護し、他のサイトでも信頼される再利用可能なNFTを取得するために検証を完了してください(一度検証してどこでも提示)。",verifyButton:"確認する",sendCodeButton:"認証コードを取得",codeSentMessage:"{email} に確認コードを送信しました、このコードの有効期限は30分間です、受信トレイやスパムフォルダをご確認ください。",codeSentSuccess:"認証コードが正常に送信されました",claim:"認証済みメール証明書を取得",scan:"証明書を受け取るためにあなたの DID ウォレットを接続してください",confirm:"アカウントで確認する",success:"おめでとうございます!メールを正常に確認し、DIDウォレットで証明書を申請しました。",backToHome:"ホームに戻る",emailPlaceholder:"あなたのメールアドレス",verifyTitle:"メールアドレスを確認してください",issueTitle:"クレームメール認証NFT",verifyAction:"検証中",issueAction:"主張",issueTarget:"あなたは次のDIDに{action}しています、別のDIDを追加するにはアバターをクリックしてください"},updateKyc:{button:"プレゼント証明書",title:"現在の確認された電子メール証明書",scan:"証明書を提示するためにあなたのDIDウォレットを接続してください",confirm:"アカウントを確認してください",success:"おめでとうございます!あなたのNFTは検証され、受け入れられました。"},invalidOpenerUrl:"無効なオープナー URL"},studio:{home:"スタジオ",preferences:"設定ビルダー",localization:"ローカライゼーション",branding:"ブランディングイメージ",ratio:"比率",size:"サイズ",count:"カウント",tip:"ヒント",change:"ロゴをクリックして変更します。",order:"オーダー",orderTip:"変更するにはドラッグしてください",orderTipLong:"ドラッグして変更、ディスク上のスクリーンショットを削除した場合は、ページを更新してください。",type:"タイプ",videoTipLong:"カバーをクリックしてビデオリンクを編集してください。",video:"ビデオ",videoTooltip:"ドラッグして順序を変更。",videoType:"対応ウェブサイト",videoDialogTitle:"ビデオを追加",videoDialogEditTitle:"編集/削除 動画",videoInputLabel:"YouTube または Vimeo の動画リンクを入力してください",videoDialogNoSrc:"有効なビデオリンクを入力してください",duplicateVideo:"この動画が追加されました",confirm:"確認",cancel:"キャンセル",preview:"プレビュー",delete:"削除",title:"画像を {title} に提供",description:"詳しくは、",documentation:"ドキュメント"},blocklet:{startApplication:"アプリケーションを開始",startDescription:"始める準備ができました, {name}",start:"スタート",starting:"開始します...",open:"オープン",suspended:"アプリケーションは中断されました",manageSubscription:"サブスクリプションの管理",suspendedCausedByExpired:"このアプリケーションは、{canceledAt} の購読キャンセルにより終了しました。{deadline} までに購読を再開できます。",suspendedCausedByPastDue:"このアプリケーションはサブスクリプションの未払いにより停止されました。{deadline}までに更新を完了すると再開できますが、期限を過ぎると更新と再開ができなくなります。",willBeSuspendedSoon:"このアプリケーションはサブスクリプションがもうすぐキャンセルされるため、{deadline}にサービスが停止します。引き続き使用するには、サブスクリプションを回復してください。",suspendedCausedByTerminated:"サブスクリプションがキャンセルされたためアプリケーションは終了しました。キャンセルされたのは{canceledAt}で、データは{deadline}まで保持されます。データが削除される前に、DIDスペースにデータをバックアップできます。",terminated:"アプリケーションが終了しました",gotoVisitError:"Blocklet URL にアクセスできません、後でもう一度お試しください",payNow:"今すぐ支払い",startLoadingText:"サービスが開始中で、数分かかる場合があります。しばらくお待ちください...",startingProgress:{starting:"開始 {name}...",success:"{name} が正常に開始されました",failed:"{name} の起動に失敗しました"}},setup:{steps:{connect:"接続する",didSpace:"DID スペース",config:"設定",domain:"ドメイン",access:"アクセス",fuel:"燃料",complete:"完了",introduction:"紹介",selectNodeDesc:"ブロックレットサーバーを選択してください",launchAppDesc:"サーバーに Blocklet をインストールする",setupAppDesc:"Blocklet のセットアップ",launched:"完了",aigne:"AIGNE Hub",branding:"ブランディング",accessTitle:"アクセス制御"},connect:{title:"Blocklet に接続",scan:"以下の方法でユーザープロファイルと Blocklet の Owner 権限を提供し、 Blocklet を設定して起動できます。",confirm:"アカウントで確認",success:"正常に接続されました"},domain:{addTitle:"既存ドメインのバインド (オプション)",title:"ドメインを選択",subTitle:"あなたの Blocklet 用にパーソナライズされたドメインを選択または購入してください",label:"有効なドメイン名を入力してください",tipStart:"必ず確認してください",tipEnd:"現在のサーバーを指しています",addingCert:"証明書を生成中...",recordType:"レコードタイプ",recordValue:"レコードの値",genCertSuccess:"{domain}の証明書が正常に発行されました",genCertFailed:"{domain}の証明書の発行に失敗しました:{message}",genCertFailedForNFTDomain:"NFTドメインの追加に成功しましたが、HTTPS証明書の生成に失敗しました。後でもう一度お試しください。",buyDIDDomainTitle:"DID ドメインを購入する (オプション)",buyDIDDomainTips:"DID ドメインを購入すると、ドメインは自動的に blocklet にバインドされます。",buyOrConnect:"既存のドメインを購入または設定できます",skipDescription:"デフォルトドメインを一時的に使用できます。これらのドメインは本番環境には適しておらず、顧客と共有しないでください。"},didSpace:{title:"DIDスペースを設定する",subTitle:"DID Spaces に接続して、Blocklet データを安全に保存します",tips:"ヒント",description:"接続が成功した後、DID Spacesのインスタンスアドレスを設定し、アプリケーションデータをDID Spacesに保存します",label:"DID Spacesサービスを選択してください",connected:"DIDスペースに正常に接続しました",connect:"今すぐ接続",reconnect:"再接続",addressCannotEmpty:"住所は空にできません",addressNotValid:"{url} は有効なアドレスではありません",authorize:{title:"{appName} をDIDスペースに接続してください",scan:"以下の方法を使用して、アプリ {appName} が DID Spaces に接続できるようにします",success:"正常に接続されました"}},config:{title:"設定",subTitle:"その他の設定項目(以下の項目も設定する必要があります)"},complete:{title:"アプリケーションの準備が整いました",failedTitle:"アプリケーションの起動に失敗しました",backToServer:"Blockletサーバーに戻る",notRunning:"アプリは初回の起動に失敗しました。再試行してください",readyToStart:"あなたのアプリはすぐに準備できます",opening:"開いています..."},fuel:{title:"始動に必要な燃料",tipStart:"スロット",tipEnd:"このアプリの正常な動作には、資金がアプリのウォレットに保存され、取引手数料のために消費される必要があります。アプリを実行していない場合でも、いつでも残高を引き出すことができます。",addressTitle:"アプリケーションアカウント",addressTip:"DIDウォレットでアプリケーションに燃料を供給する",need:"必要です",current:"現在の",fuelApp:"アプリを燃料",subTitle:"アプリケーションが正常に動作するように、燃料を提供します"},title:"セットアップ",next:"次",previous:"前",continue:"続けます",skip:"スキップ",startNow:"今すぐ開始",confirm:"確認",cancel:"キャンセル",aigne:{config:"設定",observability:"可観測性",playground:"遊び場",title:"AIGNE Hub を設定",subTitle:"AIGNE Hubに接続して、BlockletのAI機能を有効にします"},connectAccount:{title:"アカウントを接続",subTitle:"複数のログイン方法を接続して、Blocklet への簡単で安全なアクセスを実現",wallet:"DIDウォレット",walletDesc:"より安全、デバイス間で動作、強くお勧め",passkey:"パスキー",passkeyDesc:"指紋または顔認証、ワンタップで安全ログイン",email:"メールアカウント",emailDesc:"システム既定の方法、より安全のため別のアカウントの接続をお勧めします",recommended:"おすすめ",connect:"接続",connected:"接続済み",statusSuccess:"完璧です!{count} 個のログイン方法を設定し、blocklet にアクセスする最も便利な方法を選択できます。",statusSuggestion:"利便性とセキュリティのために、複数のログイン方法を接続することをお勧めします。いつでも簡単に blocklet にアクセスできます。",securityTip:"重要: 現在、メールでのみログインできます。紛失した場合、アプリを管理できなくなります。バックアップとしてウォレットまたは生体認証を接続することを強くお勧めします。",skipBinding:"今はスキップ"},wizardTitle:"セットアップウィザード",wizardSubTitle:"おめでとうございます! Blocklet の準備ができました。カスタムコンテンツをすぐに設定しましょう",wizardTooltip:"ここをクリックしてウィザードを再度開きます",stepOf:"{current}/{total} ステップ",finished:"完了",branding:{title:"ブランディング & ロゴ",subTitle:"Blocklet に名前、説明、ロゴを与えて目立たせましょう"},wizardLoading:"セットアップウィザードを開始しています。お待ちください...",accessControl:{title:"アクセス制御",subTitle:"アクセス制御を設定して、誰があなたの Blocklet を使用できるかを管理します"},later:"後で設定"},user:{walletNotification:"DIDウォレットの通知",emailNotification:"メール通知",smsNotification:"SMS通知",addWebhook:"新しい Webhook を追加する"},pageTitle:{login:"ログイン",dashboard:"Blocklet ダッシュボード",userCenter:"ユーザーセンター",invite:"招待する",issuePassport:"パスポートの発行",lostPassport:"パスポート紛失"},errorPage:{404:{title:"おっと!ページが見つかりません",description:"お探しのページは存在しないようです。",backHome:'訪問者の場合は、<a href="{url}">ホームページに戻る</a>ことができます',goToDashboard:"サイトの所有者であれば、<a href={url}>ダッシュボードにログイン</a>できます。"}},common:{branding:"ブランド",theming:"テーマ",navigation:"ナビゲーション",sitemap:"サイトマップ",advanced:"高度",performance:"パフォーマンス",docs:"ドキュメント",comingSoon:"近日公開",accessKeys:"アクセスキー",required:"必須"},connectCli:{title:"接続してアクセスキーを生成する",scan:"以下のQRコードをスキャンして接続し、アクセスキーを生成してください",success:"正常に認証されました",successDesc:"アクセスキーが正常に生成されました。このページを安全に閉じてください。",invalidSession:"無効なセッション",invalidSessionDesc:"セッションが存在しないか、期限切れです。コマンド 'blocklet deploy --endpoint {endpoint}' を使用してアクセスキーを再生成してください",connectionError:"アクセスキーの生成に失敗しました",home:"ホームに戻る",tips:{title:"アクセスキーを生成",item1:"現在のアプリケーションに Blocklets をローカル展開できます",item2:"アプリケーションのアクセスキー一覧に表示されます",item3:"いつでもリスト内のアクセスキーを無効化できます"},upload:"生成されたaccess-key を使用して、ローカルの blocklets をアップロードできるようになりました。",closeDelay:"このページは {seconds} 秒後に閉じられます。"},notFoundOauthClient:"OAuth アプリが見つかりません。OAuth 設定を確認して、再試行してください。",userCenter:{addWebhook:"外部通知を追加",cancel:"キャンセル",common:{cancel:"キャンセル",confirm:"確認",invalid:"無効",nft:"NFTs",noNFT:"NFT なし",required:"必須"},commonSetting:{locale:"優先言語",title:"共通設定"},confirm:"確認",createdAt:"初回アクティブ時間",currentPassport:"パスポート 現在使用中",currentSession:"現在の セッション",dangerZone:{deleteAccount:"アカウントを削除",title:"危険地帯",deleteAccountDescription:"アカウントを削除すると、このアカウントでログインできなくなり、データはプラットフォームから完全に削除され、復元できません。",delete:"削除"},destroyMyself:{error:"アカウントの削除に失敗しました"},deviceType:"デバイス 種類",emailNotification:"メール通知",expired:"期限切れ",lastLoginIp:"最終ログイン IP",logout:"ログアウト",logoutThisSession:"このセッションからログアウト",logoutThisSessionConfirm:"このセッションからログアウトしてもよろしいですか?",noPassport:"まだパスポートがありません",notificationManagement:"通知",offline:"オフライン",online:"アクティブ",passport:"パスポート",platform:"プラットフォーム",privacyManagement:"プライバシー",pushNotification:"プッシュ通知 (PushKit による)",remove:"削除",saveSuccess:"保存に成功しました",sessionManagement:"セッション管理",storage:{spaces:{tips:"ヒント",label:"DID Spaces Gateway に入る",connectedWithName:"{name} に正常に接続されました",gateway:{delete:{failed:"ゲートウェイの削除に失敗しました"}},provideNFT:{title:"{appName} の DID Spaces NFT を表示してください",scan:"{appName} アプリに DID Wallet を使って DID Space NFT を表示する許可を与えてください",success:"接続に成功しました"},connect:{useWallet:"DID Wallet と接続",useWalletReconnect:"DID Wallet に再接続",providerForStorage:"DID Spaces を接続してください"},connected:{title:"接続された DID Spaces",tag:"接続済み",switch:"DID Spaces を切り替え"}}},thirdPartyLogin:{connect:"接続",disconnect:"切断",mainProviderCantRemove:"メインアカウント の 削除 は許可されていません",title:"接続されたアカウント",confirmUnbind:"{name} のバインドを解除してもよろしいですか?",confirmUnbindDescription:"アンバンドル後は {name} を使ってこのアカウントにログインできません。アンバンドル後にまだ {name} でログインしている場合、新しいアカウントが自動的に作成されます!",disconnectPasskey:"{name} を削除してもよろしいですか?",disconnectPasskeyDescription:"この passkey を削除するとログインできなくなります。削除後もこの passkey でログインしている場合は、新しいアカウントが自動的に作成されます!",walletAccountCantRemove:"Wallet アカウントは削除できません",mainAccount:"メインアカウント",walletAccount:"ウォレット アカウント",dontSupportRemoveinArcSphere:"ArcSphere では passkey の削除をサポートしていません。デスクトップブラウザで削除してください",confirmBindWallet:"DID ウォレットを接続しますか?",confirmBindWalletDescription:"接続が完了すると、DID Wallet を使って サインインできるようになります。この接続は永久的で変更できませんので、正しいアカウントに接続していることを確認してください。"},unknown:"不明",updatedAt:"最終アクティブ時間",user:"ユーザー",walletNotification:"DID Wallet 通知",walletOS:"ウォレット OS",webhook:{slack:"Slack",url:"カスタム URL"},webhookTested:"テスト メッセージが送信されました",toPublic:'公開 "{name}" ページ',logoutAll:"すべての {type} セッションからログアウト",logoutAllTips:"現在のセッションをログアウトしない",logoutAllSession:"すべての {type} セッションからログアウト",logoutAllSessionConfirm:"{type} のすべてのセッションからログアウトしてもよろしいですか?",actions:"アクション"},aigne:{notAuthorized:"認証されていません",connectTo:"{appName} に接続",accessTips:{tips1:"{appName} は {accessAppName} にアクセスして あなた として操作できます",tips2:"{appName} を信頼する場合のみ続行してください",tips3:'いつでも <a href="{url}" target="_blank">{accessAppName} 設定</a> でアクセスを取り消せます',switchPassport:"Passport {required_roles} を使って認可を完了します",switchPassportRequired:"認可を完了するには {required_roles} のパスポートが必要です。権限を切り替えてください。"},cli:"AIGNE CLI"}};export{e as default};
1
+ const e={auth:{noPermission:{title:"許可されていません",description:"あなたはこのブロックレットの管理者ではありません"}},login:{reLogin:"再接続する",description:"DIDウォレットを接続して{name}にアクセスする必要があります",already:"{name}として接続されています",connectWallet:"DIDウォレットに接続する",closeWindow:"ウィンドウを閉じる",accessLimit:{title:"ページへのアクセスが制限されています",description:"このページをアクセスするには、以下のパスポートが必要です。ウォレットに接続して、対応するパスを変更または申請してください。",alreadyHavePassport:"もうパスポートを持っています",connectWithPassport:"このパスポートで接続してください",buyPassport:"パスポートを購入する"},switchDid:{title:"アカウントを切り替える",scan:"以下の方法でアカウントを追加してください",confirm:"DIDウォレットでの切り替えを確認してください",success:"正常に切り替えられました"},switchSpecifiedDid:{title:"アカウントを切り替える",scan:"次のアクションを完了するために、DIDを{did}に切り替える必要があります",confirm:"DIDウォレットでの切り替えを確認してください",success:"正常に切り替えました"},connect:{title:"接続",scan:"以下の方法で接続を完了してください",confirm:"アカウントで確認する",success:"正常に接続されました"},needManualClose:"ログインの成功、このウィンドウが自動で閉じなければ、閉じてください。",connectWithPassport:"このパスポートと接続",invalidRedirectUrl:"無効なリダイレクトURL",issueKyc:{pageDescription:"アカウントを保護し、他のサイトでも信頼される再利用可能なNFTを取得するために検証を完了してください(一度検証してどこでも提示)。",verifyButton:"確認する",sendCodeButton:"認証コードを取得",codeSentMessage:"{email} に確認コードを送信しました、このコードの有効期限は30分間です、受信トレイやスパムフォルダをご確認ください。",codeSentSuccess:"認証コードが正常に送信されました",claim:"認証済みメール証明書を取得",scan:"証明書を受け取るためにあなたの DID ウォレットを接続してください",confirm:"アカウントで確認する",success:"おめでとうございます!メールを正常に確認し、DIDウォレットで証明書を申請しました。",backToHome:"ホームに戻る",emailPlaceholder:"あなたのメールアドレス",verifyTitle:"メールアドレスを確認してください",issueTitle:"クレームメール認証NFT",verifyAction:"検証中",issueAction:"主張",issueTarget:"あなたは次のDIDに{action}しています、別のDIDを追加するにはアバターをクリックしてください"},updateKyc:{button:"プレゼント証明書",title:"現在の確認された電子メール証明書",scan:"証明書を提示するためにあなたのDIDウォレットを接続してください",confirm:"アカウントを確認してください",success:"おめでとうございます!あなたのNFTは検証され、受け入れられました。"},invalidOpenerUrl:"無効なオープナー URL"},studio:{home:"スタジオ",preferences:"設定ビルダー",localization:"ローカライゼーション",branding:"ブランディングイメージ",ratio:"比率",size:"サイズ",count:"カウント",tip:"ヒント",change:"ロゴをクリックして変更します。",order:"オーダー",orderTip:"変更するにはドラッグしてください",orderTipLong:"ドラッグして変更、ディスク上のスクリーンショットを削除した場合は、ページを更新してください。",type:"タイプ",videoTipLong:"カバーをクリックしてビデオリンクを編集してください。",video:"ビデオ",videoTooltip:"ドラッグして順序を変更。",videoType:"対応ウェブサイト",videoDialogTitle:"ビデオを追加",videoDialogEditTitle:"編集/削除 動画",videoInputLabel:"YouTube または Vimeo の動画リンクを入力してください",videoDialogNoSrc:"有効なビデオリンクを入力してください",duplicateVideo:"この動画が追加されました",confirm:"確認",cancel:"キャンセル",preview:"プレビュー",delete:"削除",title:"画像を {title} に提供",description:"詳しくは、",documentation:"ドキュメント"},blocklet:{startApplication:"アプリケーションを開始",startDescription:"始める準備ができました, {name}",start:"スタート",starting:"開始します...",open:"オープン",suspended:"アプリケーションは中断されました",manageSubscription:"サブスクリプションの管理",suspendedCausedByExpired:"このアプリケーションは、{canceledAt} の購読キャンセルにより終了しました。{deadline} までに購読を再開できます。",suspendedCausedByPastDue:"このアプリケーションはサブスクリプションの未払いにより停止されました。{deadline}までに更新を完了すると再開できますが、期限を過ぎると更新と再開ができなくなります。",willBeSuspendedSoon:"このアプリケーションはサブスクリプションがもうすぐキャンセルされるため、{deadline}にサービスが停止します。引き続き使用するには、サブスクリプションを回復してください。",suspendedCausedByTerminated:"サブスクリプションがキャンセルされたためアプリケーションは終了しました。キャンセルされたのは{canceledAt}で、データは{deadline}まで保持されます。データが削除される前に、DIDスペースにデータをバックアップできます。",terminated:"アプリケーションが終了しました",gotoVisitError:"Blocklet URL にアクセスできません、後でもう一度お試しください",payNow:"今すぐ支払い",startLoadingText:"サービスが開始中で、数分かかる場合があります。しばらくお待ちください...",startingProgress:{starting:"開始 {name}...",success:"{name} が正常に開始されました",failed:"{name} の起動に失敗しました"}},setup:{steps:{connect:"接続する",didSpace:"DID スペース",config:"設定",domain:"ドメイン",access:"アクセス",fuel:"燃料",complete:"完了",introduction:"紹介",selectNodeDesc:"ブロックレットサーバーを選択してください",launchAppDesc:"サーバーに Blocklet をインストールする",setupAppDesc:"Blocklet のセットアップ",launched:"完了",aigne:"AIGNE Hub",branding:"ブランディング",accessTitle:"アクセス制御"},connect:{title:"Blocklet に接続",scan:"以下の方法でユーザープロファイルと Blocklet の Owner 権限を提供し、 Blocklet を設定して起動できます。",confirm:"アカウントで確認",success:"正常に接続されました"},domain:{addTitle:"既存ドメインのバインド (オプション)",title:"ドメインを選択",subTitle:"あなたの Blocklet 用にパーソナライズされたドメインを選択または購入してください",label:"有効なドメイン名を入力してください",tipStart:"必ず確認してください",tipEnd:"現在のサーバーを指しています",addingCert:"証明書を生成中...",recordType:"レコードタイプ",recordValue:"レコードの値",genCertSuccess:"{domain}の証明書が正常に発行されました",genCertFailed:"{domain}の証明書の発行に失敗しました:{message}",genCertFailedForNFTDomain:"NFTドメインの追加に成功しましたが、HTTPS証明書の生成に失敗しました。後でもう一度お試しください。",buyDIDDomainTitle:"DID ドメインを購入する (オプション)",buyDIDDomainTips:"DID ドメインを購入すると、ドメインは自動的に blocklet にバインドされます。",buyOrConnect:"既存のドメインを購入または設定できます",skipDescription:"デフォルトドメインを一時的に使用できます。これらのドメインは本番環境には適しておらず、顧客と共有しないでください。"},didSpace:{title:"DIDスペースを設定する",subTitle:"DID Spaces に接続して、Blocklet データを安全に保存します",tips:"ヒント",description:"接続が成功した後、DID Spacesのインスタンスアドレスを設定し、アプリケーションデータをDID Spacesに保存します",label:"DID Spacesサービスを選択してください",connected:"DIDスペースに正常に接続しました",connect:"今すぐ接続",reconnect:"再接続",addressCannotEmpty:"住所は空にできません",addressNotValid:"{url} は有効なアドレスではありません",authorize:{title:"{appName} をDIDスペースに接続してください",scan:"以下の方法を使用して、アプリ {appName} が DID Spaces に接続できるようにします",success:"正常に接続されました"}},config:{title:"設定",subTitle:"その他の設定項目(以下の項目も設定する必要があります)"},complete:{title:"アプリケーションの準備が整いました",failedTitle:"アプリケーションの起動に失敗しました",backToServer:"Blockletサーバーに戻る",notRunning:"アプリは初回の起動に失敗しました。再試行してください",readyToStart:"あなたのアプリはすぐに準備できます",opening:"開いています..."},fuel:{title:"始動に必要な燃料",tipStart:"スロット",tipEnd:"このアプリの正常な動作には、資金がアプリのウォレットに保存され、取引手数料のために消費される必要があります。アプリを実行していない場合でも、いつでも残高を引き出すことができます。",addressTitle:"アプリケーションアカウント",addressTip:"DIDウォレットでアプリケーションに燃料を供給する",need:"必要です",current:"現在の",fuelApp:"アプリを燃料",subTitle:"アプリケーションが正常に動作するように、燃料を提供します"},title:"セットアップ",next:"次",previous:"前",continue:"続けます",skip:"スキップ",startNow:"今すぐ開始",confirm:"確認",cancel:"キャンセル",aigne:{config:"設定",observability:"可観測性",playground:"遊び場",title:"AIGNE Hub を設定",subTitle:"AIGNE Hubに接続して、BlockletのAI機能を有効にします"},connectAccount:{title:"アカウントを接続",subTitle:"複数のログイン方法を接続して、Blocklet への簡単で安全なアクセスを実現",wallet:"DIDウォレット",walletDesc:"より安全、デバイス間で動作、強くお勧め",passkey:"パスキー",passkeyDesc:"指紋または顔認証、ワンタップで安全ログイン",email:"メールアカウント",emailDesc:"システム既定の方法、より安全のため別のアカウントの接続をお勧めします",recommended:"おすすめ",connect:"接続",connected:"接続済み",statusSuccess:"完璧です!{count} 個のログイン方法を設定し、blocklet にアクセスする最も便利な方法を選択できます。",statusSuggestion:"利便性とセキュリティのために、複数のログイン方法を接続することをお勧めします。いつでも簡単に blocklet にアクセスできます。",securityTip:"重要: 現在、メールでのみログインできます。紛失した場合、アプリを管理できなくなります。バックアップとしてウォレットまたは生体認証を接続することを強くお勧めします。",skipBinding:"今はスキップ"},wizardTitle:"セットアップウィザード",wizardSubTitle:"おめでとうございます! Blocklet の準備ができました。カスタムコンテンツをすぐに設定しましょう",wizardTooltip:"ここをクリックしてウィザードを再度開きます",stepOf:"{current}/{total} ステップ",finished:"完了",branding:{title:"ブランディング & ロゴ",subTitle:"Blocklet に名前、説明、ロゴを与えて目立たせましょう"},wizardLoading:"セットアップウィザードを開始しています。お待ちください...",accessControl:{title:"アクセス制御",subTitle:"アクセス制御を設定して、誰があなたの Blocklet を使用できるかを管理します"},later:"後で設定"},user:{walletNotification:"DIDウォレットの通知",emailNotification:"メール通知",smsNotification:"SMS通知",addWebhook:"新しい Webhook を追加する"},pageTitle:{login:"ログイン",dashboard:"Blocklet ダッシュボード",userCenter:"ユーザーセンター",invite:"招待する",issuePassport:"パスポートの発行",lostPassport:"パスポート紛失"},errorPage:{404:{title:"おっと!ページが見つかりません",description:"お探しのページは存在しないようです。",backHome:'訪問者の場合は、<a href="{url}">ホームページに戻る</a>ことができます',goToDashboard:"サイトの所有者であれば、<a href={url}>ダッシュボードにログイン</a>できます。"}},common:{branding:"ブランド",theming:"テーマ",navigation:"ナビゲーション",sitemap:"サイトマップ",advanced:"高度",performance:"パフォーマンス",docs:"ドキュメント",comingSoon:"近日公開",accessKeys:"アクセスキー",required:"必須"},connectCli:{title:"接続してアクセスキーを生成する",scan:"以下のQRコードをスキャンして接続し、アクセスキーを生成してください",success:"正常に認証されました",successDesc:"アクセスキーが正常に生成されました。このページを安全に閉じてください。",invalidSession:"無効なセッション",invalidSessionDesc:"セッションが存在しないか、期限切れです。コマンド 'blocklet deploy --endpoint {endpoint}' を使用してアクセスキーを再生成してください",connectionError:"アクセスキーの生成に失敗しました",home:"ホームに戻る",tips:{title:"アクセスキーを生成",item1:"現在のアプリケーションに Blocklets をローカル展開できます",item2:"アプリケーションのアクセスキー一覧に表示されます",item3:"いつでもリスト内のアクセスキーを無効化できます"},upload:"生成されたaccess-key を使用して、ローカルの blocklets をアップロードできるようになりました。",closeDelay:"このページは {seconds} 秒後に閉じられます。"},notFoundOauthClient:"OAuth アプリが見つかりません。OAuth 設定を確認して、再試行してください。",userCenter:{addWebhook:"外部通知を追加",cancel:"キャンセル",common:{cancel:"キャンセル",confirm:"確認",invalid:"無効",nft:"NFTs",noNFT:"NFT なし",required:"必須"},commonSetting:{locale:"優先言語",title:"共通設定"},confirm:"確認",createdAt:"初回アクティブ時間",currentPassport:"パスポート 現在使用中",currentSession:"現在の セッション",dangerZone:{deleteAccount:"アカウントを削除",title:"危険地帯",deleteAccountDescription:"アカウントを削除すると、このアカウントでログインできなくなり、データはプラットフォームから完全に削除され、復元できません。",delete:"削除"},destroyMyself:{error:"アカウントの削除に失敗しました"},deviceType:"デバイス 種類",emailNotification:"メール通知",expired:"期限切れ",lastLoginIp:"最終ログイン IP",logout:"ログアウト",logoutThisSession:"このセッションからログアウト",logoutThisSessionConfirm:"このセッションからログアウトしてもよろしいですか?",noPassport:"まだパスポートがありません",notificationManagement:"通知",offline:"オフライン",online:"アクティブ",passport:"パスポート",platform:"プラットフォーム",privacyManagement:"プライバシー",pushNotification:"プッシュ通知 (PushKit による)",remove:"削除",saveSuccess:"保存に成功しました",sessionManagement:"セッション管理",storage:{spaces:{tips:"ヒント",label:"DID Spaces Gateway に入る",connectedWithName:"{name} に正常に接続されました",gateway:{delete:{failed:"ゲートウェイの削除に失敗しました"}},provideNFT:{title:"{appName} の DID Spaces NFT を表示してください",scan:"{appName} アプリに DID Wallet を使って DID Space NFT を表示する許可を与えてください",success:"接続に成功しました"},connect:{useWallet:"DID Wallet と接続",useWalletReconnect:"DID Wallet に再接続",providerForStorage:"DID Spaces を接続してください"},connected:{title:"接続された DID Spaces",tag:"接続済み",switch:"DID Spaces を切り替え"}}},thirdPartyLogin:{connect:"接続",disconnect:"切断",mainProviderCantRemove:"メインアカウント の 削除 は許可されていません",title:"接続されたアカウント",confirmUnbind:"{name} のバインドを解除してもよろしいですか?",confirmUnbindDescription:"アンバンドル後は {name} を使ってこのアカウントにログインできません。アンバンドル後にまだ {name} でログインしている場合、新しいアカウントが自動的に作成されます!",disconnectPasskey:"{name} を削除してもよろしいですか?",disconnectPasskeyDescription:"この passkey を削除するとログインできなくなります。削除後もこの passkey でログインしている場合は、新しいアカウントが自動的に作成されます!",walletAccountCantRemove:"Wallet アカウントは削除できません",mainAccount:"メインアカウント",walletAccount:"ウォレット アカウント",dontSupportRemoveinArcSphere:"ArcSphere では passkey の削除をサポートしていません。デスクトップブラウザで削除してください",confirmBindWallet:"DID ウォレットを接続しますか?",confirmBindWalletDescription:"接続が完了すると、DID Wallet を使って サインインできるようになります。この接続は永久的で変更できませんので、正しいアカウントに接続していることを確認してください。"},unknown:"不明",updatedAt:"最終アクティブ時間",user:"ユーザー",walletNotification:"DID Wallet 通知",walletOS:"ウォレット OS",webhook:{slack:"Slack",url:"カスタム URL"},webhookTested:"テスト メッセージが送信されました",toPublic:'公開 "{name}" ページ',logoutAll:"すべての {type} セッションからログアウト",logoutAllTips:"現在のセッションをログアウトしない",logoutAllSession:"すべての {type} セッションからログアウト",logoutAllSessionConfirm:"{type} のすべてのセッションからログアウトしてもよろしいですか?",actions:"アクション"},aigne:{notAuthorized:"認証されていません",connectTo:"{appName} に接続",accessTips:{tips1:"{appName} は {accessAppName} にアクセスして あなた として操作できます",tips2:"{appName} を信頼する場合のみ続行してください",tips3:'いつでも <a href="{url}" target="_blank">{accessAppName} 設定</a> でアクセスを取り消せます',switchPassport:"Passport {required_roles} を使って認可を完了します",switchPassportRequired:"認可を完了するには {required_roles} のパスポートが必要です。権限を切り替えてください。"},cli:"AIGNE CLI"},invalidAppUrl:{desc:"設定されたApp URLがドメインリストにありません。設定を確認してください。",viewConfig:"設定を表示",viewDomains:"ドメインリストを表示"}};export{e as default};
@@ -1 +1 @@
1
- const e={auth:{noPermission:{title:"권한이 없습니다",description:"당신은 블록렛의 관리자가 아닙니다"}},login:{reLogin:"재연결",description:"{name}에 액세스하려면 DID 지갑을 연결해야합니다",already:"{name}으로 연결되었습니다",connectWallet:"DID 지갑 연결하기",closeWindow:"창 닫기",accessLimit:{title:"페이지 액세스가 제한되었습니다",description:"이 페이지에 액세스하려면 다음 여권이 필요합니다. 지갑에 연결하여 해당 패스를 변경하거나 신청하십시오.",alreadyHavePassport:"이미 여권이 있습니다",connectWithPassport:"이 여권으로 연결하세요",buyPassport:"여권 구매하기"},switchDid:{title:"계정 전환",scan:"다음 방법으로 계정을 추가하십시오",confirm:"DID 지갑에서의 전환을 확인하세요",success:"성공적으로 전환되었습니다"},switchSpecifiedDid:{title:"계정 전환",scan:"다음 동작을 완료하려면 DID를 {did}로 전환해야 합니다",confirm:"DID 지갑에서의 전환을 확인하세요",success:"성공적으로 전환되었습니다"},connect:{title:"연결",scan:"다음 방법을 사용하여 연결을 완료하십시오",confirm:"계정에서 확인",success:"성공적으로 연결되었습니다"},needManualClose:"로그인 성공, 이 창이 자동으로 닫히지 않는 경우 직접 닫아 주세요",connectWithPassport:"이 여권과 연결",invalidRedirectUrl:"잘못된 리디렉션 URL",issueKyc:{pageDescription:"계정을 안전하게 보호하고 다른 사이트에서 신뢰할 수 있는 재사용 가능한 NFT를 획득하려면 확인을 완료하세요 (한 번 확인하고 모든 곳에서 표시).",verifyButton:"확인하다",sendCodeButton:"인증 코드 받기",codeSentMessage:"{email}로 인증 코드를 전송했습니다. 해당 코드의 유효 기간은 30 분이며, 받은 편지함이나 스팸함을 확인하십시오.",codeSentSuccess:"인증 코드가 성공적으로 전송되었습니다",claim:"인증된 이메일 인증서 요청",scan:"인증서를 받으려면 DID 지갑을 연결하세요",confirm:"계정에서 확인",success:"축하합니다! 귀하의 이메일 인증 및 DID 지갑에서 인증서를 성공적으로 완료했습니다.",backToHome:"홈으로 돌아가기",emailPlaceholder:"귀하의 이메일 주소",verifyTitle:"이메일 주소를 확인하세요",issueTitle:"청구 이메일 인증 NFT",verifyAction:"확인 중",issueAction:"주장",issueTarget:"다음 DID에 대해 {action} 중입니다, 다른 DID를 추가하려면 아바타를 클릭하십시오"},updateKyc:{button:"선물 증명서",title:"현재 확인된 이메일 인증서",scan:"인증서를 제출하려면 DID 지갑에 연결하십시오",confirm:"계정을 확인하세요",success:"축하합니다! 귀하의 NFT가 확인되었고 수락되었습니다."},invalidOpenerUrl:"잘못된 오프너 URL"},studio:{home:"스튜디오",preferences:"선호도 빌더",localization:"로컬라이제이션",branding:"브랜딩 이미지",ratio:"비율",size:"크기",count:"계산",tip:"팁",change:"로고를 클릭하여 변경하세요.",order:"주문",orderTip:"드래그하여 변경",orderTipLong:"드래그하여 변경, 디스크에서 스크린샷을 삭제하면 페이지 새로 고침을 해 주세요.",type:"유형",videoTipLong:"커버를 클릭하여 비디오 링크를 편집하세요.",video:"비디오",videoTooltip:"드래그하여 순서 변경.",videoType:"지원되는 웹사이트",videoDialogTitle:"비디오 추가",videoDialogEditTitle:"편집/삭제 비디오",videoInputLabel:"YouTube 또는 Vimeo 동영상 링크를 입력하세요",videoDialogNoSrc:"유효한 비디오 링크를 입력하세요",duplicateVideo:"이 비디오가 추가되었습니다",confirm:"확인",cancel:"취소",preview:"미리보기",delete:"삭제",title:"{title}에 이미지 제공",description:"자세한 내용은",documentation:"문서"},blocklet:{startApplication:"애플리케이션 시작",startDescription:"{name}님, 시작할 준비가 되었습니다.",start:"시작",starting:"시작 중...",open:"열다",suspended:"앱이 일시 중지되었습니다",manageSubscription:"구독 관리",suspendedCausedByExpired:"이 애플리케이션은 {canceledAt} 구독 취소로 인해 종료되었습니다. {deadline} 전에 구독을 재개할 수 있습니다.",suspendedCausedByPastDue:"이 애플리케이션은 구독 미납으로 인해 중지되었습니다. {deadline} 이전에 갱신을 완료하면 재개할 수 있으며, 기한이 지나면 갱신 및 재개가 불가능합니다.",willBeSuspendedSoon:"이 애플리케이션은 구독이 곧 취소될 예정이어서 {deadline}에 서비스가 중단됩니다. 계속 사용하려면 구독을 복구하세요.",suspendedCausedByTerminated:"구독이 취소되어 애플리케이션이 종료되었습니다. {canceledAt}에 취소되었으며 데이터는 {deadline}까지 보관됩니다. 데이터가 삭제되기 전에 DID Spaces에 데이터를 백업할 수 있습니다.",terminated:"애플리케이션이 종료되었습니다",gotoVisitError:"Blocklet URL 에 접근할 수 없습니다, 나중에 다시 시도해 주세요",payNow:"지금 결제",startLoadingText:"서비스가 시작 중이며 몇 분 정도 걸릴 수 있습니다. 잠시 기다려 주세요...",startingProgress:{starting:"시작 {name}...",success:"{name} 이(가) 성공적으로 시작되었습니다",failed:"{name} 시작 실패"}},setup:{steps:{connect:"연결하기",didSpace:"DID 공간",config:"구성",domain:"도메인",access:"액세스",fuel:"연료",complete:"완료",introduction:"소개",selectNodeDesc:"블록렛 서버를 선택하세요",launchAppDesc:"서버에 Blocklet을 설치하십시오",setupAppDesc:"Blocklet 설정",launched:"완료",aigne:"AIGNE Hub",branding:"브랜딩",accessTitle:"접근 제어"},connect:{title:"Blocklet 에 연결",scan:"다음 방법을 사용하여 사용자 프로필과 Blocklet 의 Owner 권한을 제공한 다음 Blocklet 을 구성하고 시작할 수 있습니다.",confirm:"계정에서 확인",success:"성공적으로 연결되었습니다"},domain:{addTitle:"기존 도메인 바인딩 (선택 사항)",title:"도메인 선택",subTitle:"Blocklet 에 사용할 개인 도메인을 선택하거나 구매하세요",label:"유효한 도메인 이름을 입력해주세요",tipStart:"확인해주세요",tipEnd:"현재 서버를 가리킵니다",addingCert:"인증서 생성 중...",recordType:"레코드 유형",recordValue:"레코드 값",genCertSuccess:"{domain} 인증서가 성공적으로 발급되었습니다",genCertFailed:"{domain}에 대한 인증서 발급에 실패했습니다: {message}",genCertFailedForNFTDomain:"NFT 도메인이 성공적으로 추가되었지만 HTTPS 인증서 생성에 실패했습니다. 나중에 다시 시도해주세요.",buyDIDDomainTitle:"DID 도메인 구매 (선택사항)",buyDIDDomainTips:"DID 도메인을 구매하면 도메인은 자동으로 blocklet 에 바인딩됩니다.",buyOrConnect:"기존 도메인을 구매하거나 구성할 수 있습니다",skipDescription:"기본 도메인을 임시로 사용할 수 있습니다. 이러한 도메인은 프로덕션 환경에 적합하지 않으며 고객과 공유해서는 안 됩니다."},didSpace:{title:"DID 공간 구성하기",subTitle:"DID Spaces 에 연결하여 Blocklet 데이터를 안전하게 저장하세요",tips:"팁",description:"성공적인 연결 후에 DID Spaces 인스턴스 주소를 구성하고 애플리케이션 데이터를 DID Spaces에 저장하세요",label:"DID Spaces 서비스를 선택해주세요",connected:"DID Spaces에 성공적으로 연결되었습니다",connect:"지금 연결하기",reconnect:"다시 연결",addressCannotEmpty:"주소는 비워둘 수 없습니다",addressNotValid:"{url} 는 유효한 주소가 아닙니다",authorize:{title:"{appName}을(를) DID 공간에 연결하세요",scan:"다음 방법을 사용하여 앱 {appName}이 DID Spaces에 연결할 수 있도록 허용합니다",success:"성공적으로 연결됨"}},config:{title:"설정",subTitle:"기타 구성 항목 (다음 항목도 설정해야 함)"},complete:{title:"애플리케이션이 준비되었습니다",failedTitle:"애플리케이션 시작에 실패했습니다",backToServer:"블록렛 서버로 돌아가기",notRunning:"앱이 첫 시도에서 시작하지 못했습니다. 다시 시도해 주세요",readyToStart:"앱이 곧 준비됩니다",opening:"열리는 중..."},fuel:{title:"시작에 필요한 연료",tipStart:"슬롯",tipEnd:"이 애플리케이션의 정상 작동을 위해 자금이 응용 프로그램 지갑에 저장되어 트랜잭션 수수료로 사용될 수 있어야합니다. 앱을 사용하지 않을 때 언제든지 잔액을 인출 할 수 있습니다.",addressTitle:"앱 계정",addressTip:"DID 지갑으로 애플리케이션에 연료를 공급하세요",need:"필요합니다",current:"현재",fuelApp:"앱에 연료 공급",subTitle:"애플리케이션이 정상적으로 실행되도록 연료를 제공합니다"},title:"설정",next:"다음",previous:"이전",continue:"계속",skip:"건너뛰기",startNow:"지금 시작",confirm:"확인",cancel:"취소",aigne:{config:"설정",observability:"관찰 가능성",playground:"놀이터",title:"AIGNE Hub 설정",subTitle:"AIGNE Hub에 연결하여 Blocklet 의 AI 기능을 활성화합니다"},connectAccount:{title:"계정 연결",subTitle:"여러 로그인 방법을 연결하여 Blocklet 에 쉽고 안전하게 액세스하세요",wallet:"DID 지갑",walletDesc:"더욱 안전하고, 모든 기기에서 작동하며, 강력 추천합니다",passkey:"패스키",passkeyDesc:"지문 또는 얼굴 인식, 원터치 보안 로그인",email:"이메일 계정",emailDesc:"시스템 기본 방법, 더 나은 보안을 위해 다른 계정을 연결하는 것이 좋습니다",recommended:"추천",connect:"연결",connected:"연결됨",statusSuccess:"완벽합니다! {count}개의 로그인 방법을 설정했으며 blocklet 에 액세스하는 가장 편리한 방법을 선택할 수 있습니다.",statusSuggestion:"편의성과 보안을 위해 여러 로그인 방법을 연결하는 것이 좋습니다. 언제든지 blocklet 에 쉽게 액세스할 수 있습니다.",securityTip:"중요: 현재 이메일로만 로그인할 수 있습니다. 분실하면 앱을 관리할 수 없습니다. 백업으로 지갑 또는 생체 인식을 연결하는 것이 좋습니다.",skipBinding:"지금 건너뛰기"},wizardTitle:"설정 마법사",wizardSubTitle:"축하합니다! Blocklet 이 준비되었습니다. 사용자 지정 콘텐츠를 빠르게 설정해 봅시다",wizardTooltip:"여기를 클릭하여 마법사를 다시 여세요",stepOf:"{current}/{total} 단계",finished:"완료",branding:{title:"브랜딩 & 로고",subTitle:"Blocklet 에 이름, 설명, 로고를 추가하여 돋보이게 하세요"},wizardLoading:"설정 마법사를 시작합니다. 기다려주세요...",accessControl:{title:"접근 제어",subTitle:"액세스 제어를 설정하여 누가 당신의 Blocklet 을 사용할 수 있는지 관리합니다"},later:"나중에 설정"},user:{walletNotification:"DID 지갑 알림",emailNotification:"이메일 알림",smsNotification:"SMS 알림",addWebhook:"새로운 Webhook 추가하기"},pageTitle:{login:"로그인",dashboard:"블록렛 대시보드",userCenter:"사용자 센터",invite:"초대하다",issuePassport:"여권 발급",lostPassport:"잃어버린 여권"},errorPage:{404:{title:"이런! 페이지를 찾을 수 없습니다",description:"찾고 있는 페이지가 존재하지 않는 것 같습니다.",backHome:'방문자라면 <a href="{url}">홈페이지로 돌아갈 수 있습니다</a>',goToDashboard:"사이트 소유자라면 <a href={url}>대시보드에 로그인</a>할 수 있습니다."}},common:{branding:"브랜드",theming:"테마",navigation:"탐색",sitemap:"사이트맵",advanced:"고급",performance:"성능",docs:"문서",comingSoon:"곧 출시 예정",accessKeys:"액세스 키",required:"필수"},connectCli:{title:"연결하여 액세스 키 생성",scan:"다음 QR코드를 스캔하여 연결하고 액세스 키를 생성하세요",success:"성공적으로 인증되었습니다",successDesc:"액세스 키가 성공적으로 생성되었습니다. 이 페이지를 안전하게 닫아도 됩니다.",invalidSession:"세션이 무효합니다",invalidSessionDesc:"세션이 존재하지 않거나 만료되었습니다. 'blocklet deploy --endpoint {endpoint}' 명령어를 사용하여 액세스 키를 재생성하십시오",connectionError:"액세스 키 생성 실패",home:"홈으로 돌아가기",tips:{title:"액세스 키 생성",item1:"현재 애플리케이션에 Blocklets를 로컬로 배포할 수 있습니다",item2:"애플리케이션의 액세스 키 목록에 표시됩니다",item3:"언제든지 목록에서 액세스 키를 취소할 수 있습니다"},upload:"이제 생성된 access-key를 사용하여 로컬 blocklets을 업로드할 수 있습니다.",closeDelay:"이 페이지는 {seconds} 초 후에 닫힙니다."},notFoundOauthClient:"OAuth 앱을 찾을 수 없습니다. OAuth 설정을 확인한 후 다시 시도하십시오.",userCenter:{addWebhook:"외부 알림 추가",cancel:"취소",common:{cancel:"취소",confirm:"확인",invalid:"무효",nft:"NFTs",noNFT:"NFT 없음",required:"필수"},commonSetting:{locale:"선호 언어",title:"공통 설정"},confirm:"확인",createdAt:"최초 활성 시간",currentPassport:"패스포트 현재 사용 중",currentSession:"현재 세션",dangerZone:{deleteAccount:"계정 삭제",title:"위험 구역",deleteAccountDescription:"계정을 삭제하면 해당 계정으로 로그인할 수 없으며, 데이터가 플랫폼에서 완전히 삭제되어 복구할 수 없습니다.",delete:"삭제"},destroyMyself:{error:"계정 삭제 실패"},deviceType:"기기 유형",emailNotification:"이메일 알림",expired:"만료됨",lastLoginIp:"마지막 로그인 IP",logout:"로그아웃",logoutThisSession:"이 세션 로그아웃",logoutThisSessionConfirm:"이 세션에서 로그아웃하시겠습니까?",noPassport:"아직 여권이 없습니다",notificationManagement:"알림",offline:"오프라인",online:"활성",passport:"여권",platform:"플랫폼",privacyManagement:"개인정보 보호",pushNotification:"푸시 알림 (PushKit 제공)",remove:"제거",saveSuccess:"저장 성공",sessionManagement:"세션 관리",storage:{spaces:{tips:"팁",label:"DID Spaces Gateway 에 입장",connectedWithName:"{name} 에 성공적으로 연결되었습니다",gateway:{delete:{failed:"게이트웨이 삭제 실패"}},provideNFT:{title:"{appName} 의 DID Spaces NFT 를 표시해 주세요",scan:"{appName} 앱이 DID Wallet 을 사용해 DID Space NFT 를 표시하도록 허용하세요",success:"연결에 성공했습니다"},connect:{useWallet:"DID Wallet 연결",useWalletReconnect:"DID Wallet 에 다시 연결",providerForStorage:"DID Spaces 를 연결해 주세요"},connected:{title:"연결된 DID Spaces",tag:"연결됨",switch:"DID Spaces 전환"}}},thirdPartyLogin:{connect:"연결",disconnect:"연결 해제",mainProviderCantRemove:"메인 계정 은 제거할 수 없습니다",title:"연결된 계정",confirmUnbind:"{name} 의 바인딩을 해제하시겠습니까?",confirmUnbindDescription:"언번들링 후에는 {name} 으로 이 계정에 로그인할 수 없습니다. 언번들링 후에도 {name} 으로 로그인한 상태라면 새 계정이 자동으로 생성됩니다!",disconnectPasskey:"{name} 를 삭제하시겠습니까?",disconnectPasskeyDescription:"이 passkey 를 제거하면 로그인할 수 없습니다. 제거 후에도 이 passkey 로 로그인한 상태라면 새 계정이 자동으로 생성됩니다!",walletAccountCantRemove:"Wallet 계정을 제거할 수 없습니다",mainAccount:"메인 계정",walletAccount:"지갑 계정",dontSupportRemoveinArcSphere:"ArcSphere 에서 passkey 제거를 지원하지 않습니다. 데스크톱 브라우저에서 제거해주세요",confirmBindWallet:"DID 지갑을 연결하시겠습니까?",confirmBindWalletDescription:"연결되면 DID Wallet 으로 로그인할 수 있습니다. 이 연결은 영구적이며 변경할 수 없으므로 올바른 계정에 연결되어 있는지 확인하십시오."},unknown:"알 수 없음",updatedAt:"마지막 활성 시간",user:"사용자",walletNotification:"DID Wallet 알림",walletOS:"지갑 OS",webhook:{slack:"Slack",url:"맞춤 URL"},webhookTested:"테스트 메시지가 전송되었습니다",toPublic:'공개 "{name}" 페이지',logoutAll:"모든 {type} 세션 로그아웃",logoutAllTips:"현재 세션에서 로그아웃하지 않음",logoutAllSession:"모든 {type} 세션에서 로그아웃",logoutAllSessionConfirm:"{type} 세션을 모두 로그아웃하시겠습니까?",actions:"작업"},aigne:{notAuthorized:"권한 없음",connectTo:"{appName} 에 연결",accessTips:{tips1:"{appName} 이 {accessAppName} 에 접근하여 당신 으로서 행동할 수 있습니다",tips2:"{appName} 을 신뢰하는 경우에만 진행하세요",tips3:'언제든지 <a href="{url}" target="_blank">{accessAppName} 설정</a> 에서 접근 권한을 취소할 수 있습니다',switchPassport:"Passport {required_roles} 가 인증을 완료하는 데 사용됩니다",switchPassportRequired:"인증을 완료하려면 {required_roles} 패스포트가 필요합니다. 권한을 전환해 주세요."},cli:"AIGNE CLI"}};export{e as default};
1
+ const e={auth:{noPermission:{title:"권한이 없습니다",description:"당신은 블록렛의 관리자가 아닙니다"}},login:{reLogin:"재연결",description:"{name}에 액세스하려면 DID 지갑을 연결해야합니다",already:"{name}으로 연결되었습니다",connectWallet:"DID 지갑 연결하기",closeWindow:"창 닫기",accessLimit:{title:"페이지 액세스가 제한되었습니다",description:"이 페이지에 액세스하려면 다음 여권이 필요합니다. 지갑에 연결하여 해당 패스를 변경하거나 신청하십시오.",alreadyHavePassport:"이미 여권이 있습니다",connectWithPassport:"이 여권으로 연결하세요",buyPassport:"여권 구매하기"},switchDid:{title:"계정 전환",scan:"다음 방법으로 계정을 추가하십시오",confirm:"DID 지갑에서의 전환을 확인하세요",success:"성공적으로 전환되었습니다"},switchSpecifiedDid:{title:"계정 전환",scan:"다음 동작을 완료하려면 DID를 {did}로 전환해야 합니다",confirm:"DID 지갑에서의 전환을 확인하세요",success:"성공적으로 전환되었습니다"},connect:{title:"연결",scan:"다음 방법을 사용하여 연결을 완료하십시오",confirm:"계정에서 확인",success:"성공적으로 연결되었습니다"},needManualClose:"로그인 성공, 이 창이 자동으로 닫히지 않는 경우 직접 닫아 주세요",connectWithPassport:"이 여권과 연결",invalidRedirectUrl:"잘못된 리디렉션 URL",issueKyc:{pageDescription:"계정을 안전하게 보호하고 다른 사이트에서 신뢰할 수 있는 재사용 가능한 NFT를 획득하려면 확인을 완료하세요 (한 번 확인하고 모든 곳에서 표시).",verifyButton:"확인하다",sendCodeButton:"인증 코드 받기",codeSentMessage:"{email}로 인증 코드를 전송했습니다. 해당 코드의 유효 기간은 30 분이며, 받은 편지함이나 스팸함을 확인하십시오.",codeSentSuccess:"인증 코드가 성공적으로 전송되었습니다",claim:"인증된 이메일 인증서 요청",scan:"인증서를 받으려면 DID 지갑을 연결하세요",confirm:"계정에서 확인",success:"축하합니다! 귀하의 이메일 인증 및 DID 지갑에서 인증서를 성공적으로 완료했습니다.",backToHome:"홈으로 돌아가기",emailPlaceholder:"귀하의 이메일 주소",verifyTitle:"이메일 주소를 확인하세요",issueTitle:"청구 이메일 인증 NFT",verifyAction:"확인 중",issueAction:"주장",issueTarget:"다음 DID에 대해 {action} 중입니다, 다른 DID를 추가하려면 아바타를 클릭하십시오"},updateKyc:{button:"선물 증명서",title:"현재 확인된 이메일 인증서",scan:"인증서를 제출하려면 DID 지갑에 연결하십시오",confirm:"계정을 확인하세요",success:"축하합니다! 귀하의 NFT가 확인되었고 수락되었습니다."},invalidOpenerUrl:"잘못된 오프너 URL"},studio:{home:"스튜디오",preferences:"선호도 빌더",localization:"로컬라이제이션",branding:"브랜딩 이미지",ratio:"비율",size:"크기",count:"계산",tip:"팁",change:"로고를 클릭하여 변경하세요.",order:"주문",orderTip:"드래그하여 변경",orderTipLong:"드래그하여 변경, 디스크에서 스크린샷을 삭제하면 페이지 새로 고침을 해 주세요.",type:"유형",videoTipLong:"커버를 클릭하여 비디오 링크를 편집하세요.",video:"비디오",videoTooltip:"드래그하여 순서 변경.",videoType:"지원되는 웹사이트",videoDialogTitle:"비디오 추가",videoDialogEditTitle:"편집/삭제 비디오",videoInputLabel:"YouTube 또는 Vimeo 동영상 링크를 입력하세요",videoDialogNoSrc:"유효한 비디오 링크를 입력하세요",duplicateVideo:"이 비디오가 추가되었습니다",confirm:"확인",cancel:"취소",preview:"미리보기",delete:"삭제",title:"{title}에 이미지 제공",description:"자세한 내용은",documentation:"문서"},blocklet:{startApplication:"애플리케이션 시작",startDescription:"{name}님, 시작할 준비가 되었습니다.",start:"시작",starting:"시작 중...",open:"열다",suspended:"앱이 일시 중지되었습니다",manageSubscription:"구독 관리",suspendedCausedByExpired:"이 애플리케이션은 {canceledAt} 구독 취소로 인해 종료되었습니다. {deadline} 전에 구독을 재개할 수 있습니다.",suspendedCausedByPastDue:"이 애플리케이션은 구독 미납으로 인해 중지되었습니다. {deadline} 이전에 갱신을 완료하면 재개할 수 있으며, 기한이 지나면 갱신 및 재개가 불가능합니다.",willBeSuspendedSoon:"이 애플리케이션은 구독이 곧 취소될 예정이어서 {deadline}에 서비스가 중단됩니다. 계속 사용하려면 구독을 복구하세요.",suspendedCausedByTerminated:"구독이 취소되어 애플리케이션이 종료되었습니다. {canceledAt}에 취소되었으며 데이터는 {deadline}까지 보관됩니다. 데이터가 삭제되기 전에 DID Spaces에 데이터를 백업할 수 있습니다.",terminated:"애플리케이션이 종료되었습니다",gotoVisitError:"Blocklet URL 에 접근할 수 없습니다, 나중에 다시 시도해 주세요",payNow:"지금 결제",startLoadingText:"서비스가 시작 중이며 몇 분 정도 걸릴 수 있습니다. 잠시 기다려 주세요...",startingProgress:{starting:"시작 {name}...",success:"{name} 이(가) 성공적으로 시작되었습니다",failed:"{name} 시작 실패"}},setup:{steps:{connect:"연결하기",didSpace:"DID 공간",config:"구성",domain:"도메인",access:"액세스",fuel:"연료",complete:"완료",introduction:"소개",selectNodeDesc:"블록렛 서버를 선택하세요",launchAppDesc:"서버에 Blocklet을 설치하십시오",setupAppDesc:"Blocklet 설정",launched:"완료",aigne:"AIGNE Hub",branding:"브랜딩",accessTitle:"접근 제어"},connect:{title:"Blocklet 에 연결",scan:"다음 방법을 사용하여 사용자 프로필과 Blocklet 의 Owner 권한을 제공한 다음 Blocklet 을 구성하고 시작할 수 있습니다.",confirm:"계정에서 확인",success:"성공적으로 연결되었습니다"},domain:{addTitle:"기존 도메인 바인딩 (선택 사항)",title:"도메인 선택",subTitle:"Blocklet 에 사용할 개인 도메인을 선택하거나 구매하세요",label:"유효한 도메인 이름을 입력해주세요",tipStart:"확인해주세요",tipEnd:"현재 서버를 가리킵니다",addingCert:"인증서 생성 중...",recordType:"레코드 유형",recordValue:"레코드 값",genCertSuccess:"{domain} 인증서가 성공적으로 발급되었습니다",genCertFailed:"{domain}에 대한 인증서 발급에 실패했습니다: {message}",genCertFailedForNFTDomain:"NFT 도메인이 성공적으로 추가되었지만 HTTPS 인증서 생성에 실패했습니다. 나중에 다시 시도해주세요.",buyDIDDomainTitle:"DID 도메인 구매 (선택사항)",buyDIDDomainTips:"DID 도메인을 구매하면 도메인은 자동으로 blocklet 에 바인딩됩니다.",buyOrConnect:"기존 도메인을 구매하거나 구성할 수 있습니다",skipDescription:"기본 도메인을 임시로 사용할 수 있습니다. 이러한 도메인은 프로덕션 환경에 적합하지 않으며 고객과 공유해서는 안 됩니다."},didSpace:{title:"DID 공간 구성하기",subTitle:"DID Spaces 에 연결하여 Blocklet 데이터를 안전하게 저장하세요",tips:"팁",description:"성공적인 연결 후에 DID Spaces 인스턴스 주소를 구성하고 애플리케이션 데이터를 DID Spaces에 저장하세요",label:"DID Spaces 서비스를 선택해주세요",connected:"DID Spaces에 성공적으로 연결되었습니다",connect:"지금 연결하기",reconnect:"다시 연결",addressCannotEmpty:"주소는 비워둘 수 없습니다",addressNotValid:"{url} 는 유효한 주소가 아닙니다",authorize:{title:"{appName}을(를) DID 공간에 연결하세요",scan:"다음 방법을 사용하여 앱 {appName}이 DID Spaces에 연결할 수 있도록 허용합니다",success:"성공적으로 연결됨"}},config:{title:"설정",subTitle:"기타 구성 항목 (다음 항목도 설정해야 함)"},complete:{title:"애플리케이션이 준비되었습니다",failedTitle:"애플리케이션 시작에 실패했습니다",backToServer:"블록렛 서버로 돌아가기",notRunning:"앱이 첫 시도에서 시작하지 못했습니다. 다시 시도해 주세요",readyToStart:"앱이 곧 준비됩니다",opening:"열리는 중..."},fuel:{title:"시작에 필요한 연료",tipStart:"슬롯",tipEnd:"이 애플리케이션의 정상 작동을 위해 자금이 응용 프로그램 지갑에 저장되어 트랜잭션 수수료로 사용될 수 있어야합니다. 앱을 사용하지 않을 때 언제든지 잔액을 인출 할 수 있습니다.",addressTitle:"앱 계정",addressTip:"DID 지갑으로 애플리케이션에 연료를 공급하세요",need:"필요합니다",current:"현재",fuelApp:"앱에 연료 공급",subTitle:"애플리케이션이 정상적으로 실행되도록 연료를 제공합니다"},title:"설정",next:"다음",previous:"이전",continue:"계속",skip:"건너뛰기",startNow:"지금 시작",confirm:"확인",cancel:"취소",aigne:{config:"설정",observability:"관찰 가능성",playground:"놀이터",title:"AIGNE Hub 설정",subTitle:"AIGNE Hub에 연결하여 Blocklet 의 AI 기능을 활성화합니다"},connectAccount:{title:"계정 연결",subTitle:"여러 로그인 방법을 연결하여 Blocklet 에 쉽고 안전하게 액세스하세요",wallet:"DID 지갑",walletDesc:"더욱 안전하고, 모든 기기에서 작동하며, 강력 추천합니다",passkey:"패스키",passkeyDesc:"지문 또는 얼굴 인식, 원터치 보안 로그인",email:"이메일 계정",emailDesc:"시스템 기본 방법, 더 나은 보안을 위해 다른 계정을 연결하는 것이 좋습니다",recommended:"추천",connect:"연결",connected:"연결됨",statusSuccess:"완벽합니다! {count}개의 로그인 방법을 설정했으며 blocklet 에 액세스하는 가장 편리한 방법을 선택할 수 있습니다.",statusSuggestion:"편의성과 보안을 위해 여러 로그인 방법을 연결하는 것이 좋습니다. 언제든지 blocklet 에 쉽게 액세스할 수 있습니다.",securityTip:"중요: 현재 이메일로만 로그인할 수 있습니다. 분실하면 앱을 관리할 수 없습니다. 백업으로 지갑 또는 생체 인식을 연결하는 것이 좋습니다.",skipBinding:"지금 건너뛰기"},wizardTitle:"설정 마법사",wizardSubTitle:"축하합니다! Blocklet 이 준비되었습니다. 사용자 지정 콘텐츠를 빠르게 설정해 봅시다",wizardTooltip:"여기를 클릭하여 마법사를 다시 여세요",stepOf:"{current}/{total} 단계",finished:"완료",branding:{title:"브랜딩 & 로고",subTitle:"Blocklet 에 이름, 설명, 로고를 추가하여 돋보이게 하세요"},wizardLoading:"설정 마법사를 시작합니다. 기다려주세요...",accessControl:{title:"접근 제어",subTitle:"액세스 제어를 설정하여 누가 당신의 Blocklet 을 사용할 수 있는지 관리합니다"},later:"나중에 설정"},user:{walletNotification:"DID 지갑 알림",emailNotification:"이메일 알림",smsNotification:"SMS 알림",addWebhook:"새로운 Webhook 추가하기"},pageTitle:{login:"로그인",dashboard:"블록렛 대시보드",userCenter:"사용자 센터",invite:"초대하다",issuePassport:"여권 발급",lostPassport:"잃어버린 여권"},errorPage:{404:{title:"이런! 페이지를 찾을 수 없습니다",description:"찾고 있는 페이지가 존재하지 않는 것 같습니다.",backHome:'방문자라면 <a href="{url}">홈페이지로 돌아갈 수 있습니다</a>',goToDashboard:"사이트 소유자라면 <a href={url}>대시보드에 로그인</a>할 수 있습니다."}},common:{branding:"브랜드",theming:"테마",navigation:"탐색",sitemap:"사이트맵",advanced:"고급",performance:"성능",docs:"문서",comingSoon:"곧 출시 예정",accessKeys:"액세스 키",required:"필수"},connectCli:{title:"연결하여 액세스 키 생성",scan:"다음 QR코드를 스캔하여 연결하고 액세스 키를 생성하세요",success:"성공적으로 인증되었습니다",successDesc:"액세스 키가 성공적으로 생성되었습니다. 이 페이지를 안전하게 닫아도 됩니다.",invalidSession:"세션이 무효합니다",invalidSessionDesc:"세션이 존재하지 않거나 만료되었습니다. 'blocklet deploy --endpoint {endpoint}' 명령어를 사용하여 액세스 키를 재생성하십시오",connectionError:"액세스 키 생성 실패",home:"홈으로 돌아가기",tips:{title:"액세스 키 생성",item1:"현재 애플리케이션에 Blocklets를 로컬로 배포할 수 있습니다",item2:"애플리케이션의 액세스 키 목록에 표시됩니다",item3:"언제든지 목록에서 액세스 키를 취소할 수 있습니다"},upload:"이제 생성된 access-key를 사용하여 로컬 blocklets을 업로드할 수 있습니다.",closeDelay:"이 페이지는 {seconds} 초 후에 닫힙니다."},notFoundOauthClient:"OAuth 앱을 찾을 수 없습니다. OAuth 설정을 확인한 후 다시 시도하십시오.",userCenter:{addWebhook:"외부 알림 추가",cancel:"취소",common:{cancel:"취소",confirm:"확인",invalid:"무효",nft:"NFTs",noNFT:"NFT 없음",required:"필수"},commonSetting:{locale:"선호 언어",title:"공통 설정"},confirm:"확인",createdAt:"최초 활성 시간",currentPassport:"패스포트 현재 사용 중",currentSession:"현재 세션",dangerZone:{deleteAccount:"계정 삭제",title:"위험 구역",deleteAccountDescription:"계정을 삭제하면 해당 계정으로 로그인할 수 없으며, 데이터가 플랫폼에서 완전히 삭제되어 복구할 수 없습니다.",delete:"삭제"},destroyMyself:{error:"계정 삭제 실패"},deviceType:"기기 유형",emailNotification:"이메일 알림",expired:"만료됨",lastLoginIp:"마지막 로그인 IP",logout:"로그아웃",logoutThisSession:"이 세션 로그아웃",logoutThisSessionConfirm:"이 세션에서 로그아웃하시겠습니까?",noPassport:"아직 여권이 없습니다",notificationManagement:"알림",offline:"오프라인",online:"활성",passport:"여권",platform:"플랫폼",privacyManagement:"개인정보 보호",pushNotification:"푸시 알림 (PushKit 제공)",remove:"제거",saveSuccess:"저장 성공",sessionManagement:"세션 관리",storage:{spaces:{tips:"팁",label:"DID Spaces Gateway 에 입장",connectedWithName:"{name} 에 성공적으로 연결되었습니다",gateway:{delete:{failed:"게이트웨이 삭제 실패"}},provideNFT:{title:"{appName} 의 DID Spaces NFT 를 표시해 주세요",scan:"{appName} 앱이 DID Wallet 을 사용해 DID Space NFT 를 표시하도록 허용하세요",success:"연결에 성공했습니다"},connect:{useWallet:"DID Wallet 연결",useWalletReconnect:"DID Wallet 에 다시 연결",providerForStorage:"DID Spaces 를 연결해 주세요"},connected:{title:"연결된 DID Spaces",tag:"연결됨",switch:"DID Spaces 전환"}}},thirdPartyLogin:{connect:"연결",disconnect:"연결 해제",mainProviderCantRemove:"메인 계정 은 제거할 수 없습니다",title:"연결된 계정",confirmUnbind:"{name} 의 바인딩을 해제하시겠습니까?",confirmUnbindDescription:"언번들링 후에는 {name} 으로 이 계정에 로그인할 수 없습니다. 언번들링 후에도 {name} 으로 로그인한 상태라면 새 계정이 자동으로 생성됩니다!",disconnectPasskey:"{name} 를 삭제하시겠습니까?",disconnectPasskeyDescription:"이 passkey 를 제거하면 로그인할 수 없습니다. 제거 후에도 이 passkey 로 로그인한 상태라면 새 계정이 자동으로 생성됩니다!",walletAccountCantRemove:"Wallet 계정을 제거할 수 없습니다",mainAccount:"메인 계정",walletAccount:"지갑 계정",dontSupportRemoveinArcSphere:"ArcSphere 에서 passkey 제거를 지원하지 않습니다. 데스크톱 브라우저에서 제거해주세요",confirmBindWallet:"DID 지갑을 연결하시겠습니까?",confirmBindWalletDescription:"연결되면 DID Wallet 으로 로그인할 수 있습니다. 이 연결은 영구적이며 변경할 수 없으므로 올바른 계정에 연결되어 있는지 확인하십시오."},unknown:"알 수 없음",updatedAt:"마지막 활성 시간",user:"사용자",walletNotification:"DID Wallet 알림",walletOS:"지갑 OS",webhook:{slack:"Slack",url:"맞춤 URL"},webhookTested:"테스트 메시지가 전송되었습니다",toPublic:'공개 "{name}" 페이지',logoutAll:"모든 {type} 세션 로그아웃",logoutAllTips:"현재 세션에서 로그아웃하지 않음",logoutAllSession:"모든 {type} 세션에서 로그아웃",logoutAllSessionConfirm:"{type} 세션을 모두 로그아웃하시겠습니까?",actions:"작업"},aigne:{notAuthorized:"권한 없음",connectTo:"{appName} 에 연결",accessTips:{tips1:"{appName} 이 {accessAppName} 에 접근하여 당신 으로서 행동할 수 있습니다",tips2:"{appName} 을 신뢰하는 경우에만 진행하세요",tips3:'언제든지 <a href="{url}" target="_blank">{accessAppName} 설정</a> 에서 접근 권한을 취소할 수 있습니다',switchPassport:"Passport {required_roles} 가 인증을 완료하는 데 사용됩니다",switchPassportRequired:"인증을 완료하려면 {required_roles} 패스포트가 필요합니다. 권한을 전환해 주세요."},cli:"AIGNE CLI"},invalidAppUrl:{desc:"구성된 App URL이 도메인 목록에 없습니다. 구성을 확인하십시오.",viewConfig:"구성 보기",viewDomains:"도메인 목록 보기"}};export{e as default};
@@ -1 +1 @@
1
- import{j as e,T as v,a$ as b,D as I,J as T,ak as t}from"./vendor-mui-core-BPQ6AEW_.js";import{x as B,g as E,L as P,$ as j,N}from"./vendor-ux-D507n6h6.js";import{a as $}from"./vendor-hooks-fhL5FJET.js";import{am as A}from"./index-CeWTwSLE.js";function C({linkProps:s=void 0,showExtra:o=!1,...n}){return e.jsxs(v,{...n,children:["Powered by"," ",e.jsx(b,{href:"https://www.arcblock.io",target:"_blank",...s,children:"ArcBlock"}),"'s"," ",e.jsx(b,{href:"https://www.blocklet.io",target:"_blank",...s,children:"Blocklet Technology"}),o?", the decentralized web engine.":null]})}function W({did:s,children:o,title:n=void 0,description:a=void 0,actions:h=void 0,logo:i=void 0,logoSize:d=50,poweredBy:x=void 0,termsOfUse:g=void 0,standalone:y=!1}){const r=globalThis?.blocklet||globalThis?.env||{},{palette:f}=I(),c=T(l=>l.breakpoints.down("lg")),w=A({meta:r}),k=$(()=>{const l=r.appPid,u=B.isEthereumDid(l),z=u?void 0:E(l);return u?P(l):z.color},[r?.appPid]);if(!s)return o;n===void 0&&(n=r.appName),a===void 0&&(a=r.appDescription),i===void 0&&(i=w||""),typeof i=="string"&&(i?i=e.jsx(t,{sx:{height:d,maxHeight:d,objectFit:"contain"},component:"img",src:i,alt:`${r.appName}'s logo`}):i=e.jsx(j,{size:d,did:s,src:i,variant:"rounded"})),x===void 0&&(x=e.jsx(C,{linkProps:{color:f.text.secondary,sx:{"&:hover":{textDecoration:"underline"}}},showExtra:!c,sx:{textAlign:"center",fontSize:"12px",color:"text.secondary"}}));let p=o;!o&&!c&&(p=e.jsx(t,{sx:{filter:"blur(180px)",display:"flex"},children:e.jsx(j,{size:210,did:s,variant:"rounded"})}));const D=!!o;let m=!y;return c&&(m=!D),e.jsxs(t,{sx:{width:"100%",minHeight:"100vh",display:"flex",justifyContent:"center",alignItems:"center",px:{xs:2,sm:4,md:8},pt:{xs:2,sm:4,md:6},pb:{xs:5,md:8},background:`radial-gradient(circle at bottom right, ${N(k,.3)} 10%, ${f.background.default} 50%)`,position:"relative"},children:[e.jsxs(t,{sx:{maxWidth:1200,display:"flex",alignItems:"center",justifyContent:[m,p].filter(Boolean).length>1?"space-between":"center",width:"100%",margin:"auto"},children:[m?e.jsxs(t,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[e.jsx(t,{sx:{display:"flex",alignItems:"center"},children:i}),e.jsx(v,{variant:"h2",sx:{fontWeight:"bold",fontSize:{sm:"2.25rem",md:"2.75rem",xl:"3.5rem"}},children:n}),a?e.jsx(t,{sx:{mb:2,color:"text.secondary"},children:a}):null,h?e.jsx(t,{sx:{mt:8},children:h}):null,g?e.jsx(t,{sx:{mt:-1,color:"grey"},children:g}):null]}):null,p]}),e.jsx(t,{sx:{position:"absolute",zIndex:10,bottom:10,left:10,right:10,textAlign:"center"},children:x})]})}export{W as K};
1
+ import{j as e,T as v,a$ as b,D as I,J as T,ak as t}from"./vendor-mui-core-BPQ6AEW_.js";import{x as B,g as E,L as P,$ as j,N}from"./vendor-ux-D507n6h6.js";import{a as $}from"./vendor-hooks-fhL5FJET.js";import{am as A}from"./index-Cx5JU0Ln.js";function C({linkProps:s=void 0,showExtra:o=!1,...n}){return e.jsxs(v,{...n,children:["Powered by"," ",e.jsx(b,{href:"https://www.arcblock.io",target:"_blank",...s,children:"ArcBlock"}),"'s"," ",e.jsx(b,{href:"https://www.blocklet.io",target:"_blank",...s,children:"Blocklet Technology"}),o?", the decentralized web engine.":null]})}function W({did:s,children:o,title:n=void 0,description:a=void 0,actions:h=void 0,logo:i=void 0,logoSize:d=50,poweredBy:x=void 0,termsOfUse:g=void 0,standalone:y=!1}){const r=globalThis?.blocklet||globalThis?.env||{},{palette:f}=I(),c=T(l=>l.breakpoints.down("lg")),w=A({meta:r}),k=$(()=>{const l=r.appPid,u=B.isEthereumDid(l),z=u?void 0:E(l);return u?P(l):z.color},[r?.appPid]);if(!s)return o;n===void 0&&(n=r.appName),a===void 0&&(a=r.appDescription),i===void 0&&(i=w||""),typeof i=="string"&&(i?i=e.jsx(t,{sx:{height:d,maxHeight:d,objectFit:"contain"},component:"img",src:i,alt:`${r.appName}'s logo`}):i=e.jsx(j,{size:d,did:s,src:i,variant:"rounded"})),x===void 0&&(x=e.jsx(C,{linkProps:{color:f.text.secondary,sx:{"&:hover":{textDecoration:"underline"}}},showExtra:!c,sx:{textAlign:"center",fontSize:"12px",color:"text.secondary"}}));let p=o;!o&&!c&&(p=e.jsx(t,{sx:{filter:"blur(180px)",display:"flex"},children:e.jsx(j,{size:210,did:s,variant:"rounded"})}));const D=!!o;let m=!y;return c&&(m=!D),e.jsxs(t,{sx:{width:"100%",minHeight:"100vh",display:"flex",justifyContent:"center",alignItems:"center",px:{xs:2,sm:4,md:8},pt:{xs:2,sm:4,md:6},pb:{xs:5,md:8},background:`radial-gradient(circle at bottom right, ${N(k,.3)} 10%, ${f.background.default} 50%)`,position:"relative"},children:[e.jsxs(t,{sx:{maxWidth:1200,display:"flex",alignItems:"center",justifyContent:[m,p].filter(Boolean).length>1?"space-between":"center",width:"100%",margin:"auto"},children:[m?e.jsxs(t,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[e.jsx(t,{sx:{display:"flex",alignItems:"center"},children:i}),e.jsx(v,{variant:"h2",sx:{fontWeight:"bold",fontSize:{sm:"2.25rem",md:"2.75rem",xl:"3.5rem"}},children:n}),a?e.jsx(t,{sx:{mb:2,color:"text.secondary"},children:a}):null,h?e.jsx(t,{sx:{mt:8},children:h}):null,g?e.jsx(t,{sx:{mt:-1,color:"grey"},children:g}):null]}):null,p]}),e.jsx(t,{sx:{position:"absolute",zIndex:10,bottom:10,left:10,right:10,textAlign:"center"},children:x})]})}export{W as K};
@@ -1,4 +1,4 @@
1
- import{j as a,at as m}from"./vendor-mui-core-BPQ6AEW_.js";import{C as p}from"./content-layout-B-2tfq3i.js";import{V as c,H as s}from"./vendor-ux-D507n6h6.js";import{aa as d,Y as i}from"./index-CeWTwSLE.js";const u=m(p)`
1
+ import{j as a,at as m}from"./vendor-mui-core-BPQ6AEW_.js";import{C as p}from"./content-layout-B-2tfq3i.js";import{V as c,H as s}from"./vendor-ux-D507n6h6.js";import{aa as d,Y as i}from"./index-Cx5JU0Ln.js";const u=m(p)`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.__toCdnUrl("assets/vendor-ux-DYcPPYq2.css"),window.__toCdnUrl("assets/index-DrVXX4fX.css"),window.__toCdnUrl("assets/index-B5LvOF-F.css")])))=>i.map(i=>d[i]);
2
- import{r as b,a as be}from"./vendor-react-CUXIiAnY.js";import{V as D,H,_ as ye,$ as re,z as V,h as ve,i as Ce}from"./vendor-ux-D507n6h6.js";import{j as e,Y as M,bC as K,I as X,aj as G,$ as Q,b1 as q,T as I,ak as c,z as w,F as C,b7 as Te,b5 as le,b6 as ne,a5 as se,a3 as Y,aX as oe,R as ae,Q as z,a6 as J,W as n,am as we,cb as ce,cc as Se,bb as Ie}from"./vendor-mui-core-BPQ6AEW_.js";import{_ as $,c as k,ac as Re,ar as Ee,as as Ae,at as ke}from"./index-CeWTwSLE.js";import{u as We}from"./useAsyncRetry-a2Wewn3F.js";import{r as Ne}from"./index-BphmxdkH.js";import{u as B}from"./team-CKeHAIQC.js";import{u as ue,C as S}from"./index.esm-DTmS4tth.js";import{o as Pe,b as qe,C as te}from"./vendor-utils-BSZ4yJws.js";import{T as Oe}from"./index-WCk612vr.js";import{E as Le}from"./empty-spinner-G6osPzkH.js";import{C as v}from"./click-to-copy-CAd3nEo4.js";import{D as _e}from"./delete-confirm-DF03c_mf.js";import{r as ze}from"./passport-item-yqBy6NcY.js";import{A as Fe}from"./actions-DhSvOHy-.js";import{T as ie}from"./table-tips-EHWVzPWe.js";import{u as De}from"./use-mobile-ajdJIsoX.js";import"./vendor-hooks-fhL5FJET.js";import"./lottie-web-4koyQiv_.js";import"./vendor-arcblock-BL_VyzmH.js";import"./useAsync-Cc-dQGZL.js";import"./session-CJQ7HeL8.js";import"./isURL-HS60va5G.js";import"./use-app-logo-D38VoM1R.js";import"./arrow-down.svg-CNh-MHKv.js";import"./vendor-mui-x-CWNb8fsW.js";import"./AdapterDayjs-BuAhqT20.js";import"./confirm-CC1M9sYT.js";import"./index-DBs9Ljax.js";import"./ua-parser-DP5omx3I.js";import"./did-address-BOsJWqi1.js";import"./util-DPC-rfKa.js";import"./base32-CnxuWLTI.js";var de=Ne();const $e={clientName:"",clientUri:"",redirectUris:"",scope:["profile:read"],contacts:"",tosUri:"",policyUri:""};function pe({onCreated:r,onClose:a}){const[i,h]=b.useState(!1),{t:l,locale:s}=D(),{api:f}=$(),{teamDid:d}=B(),{control:y,handleSubmit:g,formState:{errors:u},watch:W,setValue:m}=ue({defaultValues:$e,mode:"onChange"}),T=W("scope"),R=o=>{o!=="profile:read"&&m("scope",T.includes(o)?T.filter(x=>x!==o):[...T,o])},N=async o=>{h(!0);try{const x={...o,redirectUris:o.redirectUris,contacts:o.contacts?o.contacts.split(",").map(A=>A.trim()):[],scope:o.scope.join(" ")};await f.createOAuthClient({input:{teamDid:d,input:Pe(x,qe)}}),r(x)}catch(x){H.error(x.message||"Failed to create OAuth App")}finally{h(!1)}};return e.jsxs(M,{open:!0,onClose:a,maxWidth:"md",fullWidth:!0,children:[e.jsxs(K,{children:[l("oauth.client.register")," ",e.jsx(X,{onClick:a,sx:{position:"absolute",right:8,top:8},children:e.jsx(G,{})})]}),e.jsx(Q,{children:e.jsxs(q,{spacing:4,sx:{mt:2},children:[e.jsx(I,{variant:"h6",gutterBottom:!0,children:l("oauth.client.requiredInformation")}),e.jsx(c,{children:e.jsx(S,{name:"clientName",control:y,rules:{required:l("oauth.client.validate.clientName"),minLength:{value:3,message:l("oauth.client.validate.clientNameMinLength")}},render:({field:o})=>e.jsxs(e.Fragment,{children:[e.jsx(w,{size:"small",...o,label:l("oauth.client.name"),required:!0,fullWidth:!0,placeholder:l("oauth.client.input.clientNamePlaceholder"),error:!!u.clientName,helperText:u.clientName?.message}),e.jsx(C,{children:l("oauth.client.helperText.clientName")})]})})}),e.jsx(c,{children:e.jsx(S,{name:"clientUri",control:y,rules:{required:l("oauth.client.validate.clientUri"),pattern:{value:/^https?:\/\/.+/,message:l("oauth.client.validate.clientUriInvalid")}},render:({field:o})=>e.jsxs(e.Fragment,{children:[e.jsx(w,{size:"small",...o,label:l("oauth.client.input.clientUri"),required:!0,fullWidth:!0,placeholder:l("oauth.client.input.clientUriPlaceholder"),error:!!u.clientUri,helperText:u.clientUri?.message}),e.jsx(C,{children:l("oauth.client.helperText.clientUri")})]})})}),e.jsx(c,{children:e.jsx(S,{name:"redirectUris",control:y,rules:{required:l("oauth.client.validate.redirectUris"),pattern:{value:/^https?:\/\/.+/,message:l("oauth.client.validate.redirectUrisInvalid")}},render:({field:o})=>e.jsxs(e.Fragment,{children:[e.jsx(w,{size:"small",...o,label:l("oauth.client.input.redirectUris"),required:!0,fullWidth:!0,placeholder:l("oauth.client.input.redirectUrisPlaceholder"),error:!!u.redirectUris,helperText:u.redirectUris?.message}),e.jsxs(c,{sx:{display:"flex",gap:"2px"},children:[e.jsx(C,{children:l("oauth.client.helperText.redirectUris")}),e.jsx(C,{children:l("oauth.client.helperText.read")}),e.jsx(C,{sx:{color:"info.main"},component:"a",href:`https://www.arcblock.io/docs/blocklet-developer/${s}/oauth-service`,target:"_blank",rel:"noopener noreferrer",children:l("oauth.client.helperText.document")}),e.jsx(C,{children:l("oauth.client.helperText.more")})]})]})})}),e.jsxs(Te,{variant:"outlined",sx:{p:2,display:"none"},children:[e.jsx(I,{variant:"subtitle2",gutterBottom:!0,children:l("oauth.client.input.permissions")}),e.jsx(c,{sx:{border:"1px solid",borderColor:"divider",borderRadius:1,p:2},children:e.jsx(le,{children:Object.entries(k.OAUTH_SCOPES).map(([o,x])=>e.jsx(ne,{control:e.jsx(se,{checked:T.includes(o),onChange:()=>R(o),disabled:o==="profile:read",color:"primary"}),label:e.jsx(c,{children:e.jsx(I,{variant:"body2",sx:{fontWeight:500},children:x})})},o))})})]}),e.jsx(Y,{}),e.jsx(I,{variant:"h6",gutterBottom:!0,children:l("oauth.client.optionalInformation")}),e.jsx(q,{children:e.jsx(S,{name:"contacts",control:y,rules:{pattern:{value:/^$|^[^@\s]+@[^@\s]+\.[^@\s]+(\s*,\s*[^@\s]+@[^@\s]+\.[^@\s]+)*$/,message:l("oauth.client.validate.contacts")}},render:({field:o})=>e.jsxs(e.Fragment,{children:[e.jsx(w,{size:"small",...o,label:l("oauth.client.input.contacts"),fullWidth:!0,placeholder:l("oauth.client.input.contactsPlaceholder"),error:!!u.contacts,helperText:u.contacts?.message}),e.jsx(C,{children:l("oauth.client.helperText.contacts")})]})})}),e.jsxs(q,{direction:{xs:"column",sm:"row"},spacing:2,children:[e.jsx(S,{name:"tosUri",control:y,rules:{pattern:{value:/^$|^https?:\/\/.+/,message:l("oauth.client.validate.tosUriInvalid")}},render:({field:o})=>e.jsxs(c,{sx:{width:"50%"},children:[e.jsx(w,{size:"small",...o,label:l("oauth.client.input.tosUri"),fullWidth:!0,placeholder:l("oauth.client.input.tosUriPlaceholder"),error:!!u.tosUri,helperText:u.tosUri?.message}),e.jsx(C,{children:l("oauth.client.helperText.tosUri")})]})}),e.jsx(S,{name:"policyUri",control:y,rules:{pattern:{value:/^$|^https?:\/\/.+/,message:l("oauth.client.validate.policyUriInvalid")}},render:({field:o})=>e.jsxs(c,{sx:{width:"50%"},children:[e.jsx(w,{size:"small",...o,label:l("oauth.client.input.policyUri"),fullWidth:!0,placeholder:l("oauth.client.input.policyUriPlaceholder"),error:!!u.policyUri,helperText:u.policyUri?.message}),e.jsx(C,{children:l("oauth.client.helperText.policyUri")})]})})]}),u.error&&e.jsx(oe,{severity:"error",children:u.error.message})]})}),e.jsxs(ae,{children:[e.jsx(z,{onClick:a,children:l("common.cancel")}),e.jsxs(z,{onClick:g(N),disabled:i,variant:"contained",color:"primary",children:[i?e.jsx(J,{size:20,sx:{mr:1}}):null,l("oauth.client.registerButton")]})]})]})}pe.propTypes={onCreated:n.func.isRequired,onClose:n.func.isRequired};function Z({scope:r="",...a}){if(!r)return null;const i=r.split(" ").filter(Boolean);return e.jsx(q,{direction:"row",...a,sx:[{flexWrap:"wrap",gap:1},...Array.isArray(a.sx)?a.sx:[a.sx]],children:i.map(h=>e.jsx(be.Fragment,{children:e.jsx(we,{title:k.OAUTH_SCOPES[h],children:e.jsx(v,{children:h})})},h))})}Z.propTypes={scope:n.string};const ee=r=>{const{prefix:a}=$(),{blocklet:i}=Re(),h=te(a,"/api/media/upload",i.appPid),l=b.useCallback(f=>f?f.startsWith("http")?f:`${te(a,"/api/media/upload",i.appPid)}/${f}`:"",[a,i.appPid]);return{clientLogoUrl:b.useMemo(()=>l(r),[r,l]),apiPath:h,getClientLogoUrl:l}},Be=b.lazy(()=>ye(()=>import("./index-Bns8G6yV.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(r=>({default:r.Uploader})));function he({client:r,onUpdate:a,onClose:i}){const[h,l]=b.useState(!1),{t:s,locale:f}=D(),d=b.useRef(null),{api:y}=$(),{teamDid:g}=B(),{control:u,handleSubmit:W,formState:{errors:m},watch:T,setValue:R,getValues:N}=ue({defaultValues:{clientName:r.clientName||"",clientUri:r.clientUri||"",redirectUris:Array.isArray(r.redirectUris)?r.redirectUris.join(","):"",scope:r.scope?r.scope.split(" "):["profile:read"],contacts:Array.isArray(r.contacts)?r.contacts.join(","):"",tosUri:r.tosUri||"",policyUri:r.policyUri||"",logoUri:r.logoUri||"",clientSecretExpiresAt:r.clientSecretExpiresAt||null},mode:"onChange"}),o=T("scope"),x=T("logoUri"),{clientLogoUrl:A,apiPath:P}=ee(x),E=t=>{t!=="profile:read"&&R("scope",o.includes(t)?o.filter(p=>p!==t):[...o,t])},O=async t=>{const p={clientId:r.clientId,clientName:t.clientName.trim(),clientUri:t.clientUri,redirectUris:t.redirectUris.split(",").map(j=>j.trim()).filter(Boolean),contacts:t.contacts?t.contacts.split(",").map(j=>j.trim()):[],scope:t.scope.join(" "),tosUri:t.tosUri,policyUri:t.policyUri,logoUri:t.logoUri,clientSecretExpiresAt:t.clientSecretExpiresAt?parseInt(t.clientSecretExpiresAt/1e3,10):null};await y.updateOAuthClient({input:{teamDid:g,input:p}})},_=async t=>{l(!0);try{await O(t),a(),i()}catch(p){H.error(p.message||s("oauth.client.updateFailed"))}finally{l(!1)}};return e.jsxs(M,{open:!0,onClose:i,maxWidth:"md",fullWidth:!0,children:[e.jsxs(K,{children:[s("oauth.client.update")," ",e.jsx(X,{onClick:i,sx:{position:"absolute",right:8,top:8},children:e.jsx(G,{})})]}),e.jsx(Q,{children:e.jsxs(q,{spacing:3,sx:{mt:2},children:[e.jsxs(c,{sx:{mb:3},children:[e.jsx(I,{variant:"subtitle1",sx:{fontWeight:500,mb:1},children:s("oauth.client.logo")}),e.jsxs(c,{children:[e.jsx(c,{sx:{width:120,height:120,position:"relative",borderRadius:"4px",overflow:"hidden"},children:A?e.jsx(c,{children:e.jsx("img",{src:A,alt:"client-logo",style:{width:"100%",height:"100%"}})}):e.jsx(c,{onClick:()=>{d.current?.open()},sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"grey.200"},children:e.jsx(ce,{sx:{fontSize:40,color:"common.white"}})})}),e.jsx(z,{sx:{mt:2},variant:"outlined",size:"small",onClick:()=>{d.current?.open()},children:s(A?"common.change":"common.upload")})]}),e.jsx(c,{sx:{display:"flex",alignItems:"center"},children:e.jsx(b.Suspense,{fallback:e.jsx(Le,{}),children:e.jsx(Be,{ref:d,locale:f,popup:!0,onUploadFinish:t=>{R("logoUri",t.data.filename),O(N()).then(()=>{a()}).catch(p=>{H.error(p.message||s("oauth.client.updateFailed"))}).finally(()=>{d.current?.close()})},plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:P,disableMediaKitPrefix:!0,disableAutoPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:["image/png","image/jpeg","image/webp","image/svg+xml"],maxFileSize:1024*1024*.5,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,aspectRatio:1,initialAspectRatio:1,autoCropArea:1,croppedCanvasOptions:{minWidth:256,minHeight:256}}}},"uploader-logo")})})]}),e.jsx(I,{variant:"subtitle1",sx:{fontWeight:500},children:s("oauth.client.requiredInformation")}),e.jsx(w,{label:"Client Id",fullWidth:!0,value:r.clientId,disabled:!0}),e.jsx(c,{children:e.jsx(S,{name:"clientName",control:u,rules:{required:s("oauth.client.validate.clientName"),minLength:{value:3,message:s("oauth.client.validate.clientNameMinLength")}},render:({field:t})=>e.jsxs(e.Fragment,{children:[e.jsx(w,{...t,label:s("oauth.client.name"),required:!0,fullWidth:!0,error:!!m.clientName,helperText:m.clientName?.message}),e.jsx(C,{children:s("oauth.client.helperText.clientName")})]})})}),e.jsx(c,{children:e.jsx(S,{name:"clientUri",control:u,rules:{required:s("oauth.client.validate.clientUri"),pattern:{value:/^https?:\/\/.+/,message:s("oauth.client.validate.clientUriInvalid")}},render:({field:t})=>e.jsxs(e.Fragment,{children:[e.jsx(w,{...t,label:s("oauth.client.input.clientUri"),required:!0,fullWidth:!0,error:!!m.clientUri,helperText:m.clientUri?.message}),e.jsx(C,{children:s("oauth.client.helperText.clientUri")})]})})}),e.jsx(c,{children:e.jsx(S,{name:"redirectUris",control:u,rules:{required:s("oauth.client.validate.redirectUris"),pattern:{value:/^https?:\/\/.+/,message:s("oauth.client.validate.redirectUrisInvalid")}},render:({field:t})=>e.jsxs(e.Fragment,{children:[e.jsx(w,{...t,label:s("oauth.client.input.redirectUris"),required:!0,fullWidth:!0,multiline:!0,rows:2,error:!!m.redirectUris,helperText:m.redirectUris?.message}),e.jsx(C,{children:s("oauth.client.helperText.redirectUris")})]})})}),e.jsx(S,{name:"clientSecretExpiresAt",control:u,render:({field:t})=>e.jsx(Oe,{placeholder:s("oauth.client.input.expireTime"),value:t.value*1e3,onChange:p=>{t.onChange(p)}})}),e.jsxs(c,{sx:{display:"none"},children:[e.jsx(I,{variant:"subtitle2",sx:{mb:1},children:s("oauth.client.input.permissions")}),e.jsx(c,{sx:{border:"1px solid",borderColor:"divider",borderRadius:1,p:2},children:e.jsx(le,{children:Object.entries(k.OAUTH_SCOPES).map(([t,p])=>e.jsx(ne,{control:e.jsx(se,{checked:o.includes(t),onChange:()=>E(t),disabled:t==="profile:read",color:"primary"}),label:e.jsx(c,{children:e.jsx(I,{variant:"body2",sx:{fontWeight:500},children:p})})},t))})})]}),e.jsx(Y,{}),e.jsx(I,{variant:"subtitle1",sx:{fontWeight:500},children:s("oauth.client.optionalInformation")}),e.jsx(c,{children:e.jsx(S,{name:"contacts",control:u,rules:{pattern:{value:/^$|^[^@\s]+@[^@\s]+\.[^@\s]+(\s*,\s*[^@\s]+@[^@\s]+\.[^@\s]+)*$/,message:s("oauth.client.validate.contacts")}},render:({field:t})=>e.jsxs(e.Fragment,{children:[e.jsx(w,{...t,label:s("oauth.client.input.contacts"),fullWidth:!0,error:!!m.contacts,helperText:m.contacts?.message}),e.jsx(C,{children:s("oauth.client.helperText.contacts")})]})})}),e.jsxs(q,{direction:{xs:"column",sm:"row"},spacing:2,children:[e.jsx(S,{name:"tosUri",control:u,rules:{pattern:{value:/^$|^https?:\/\/.+/,message:s("oauth.client.validate.tosUriInvalid")}},render:({field:t})=>e.jsxs(c,{sx:{width:"50%"},children:[e.jsx(w,{...t,label:s("oauth.client.input.tosUri"),fullWidth:!0,error:!!m.tosUri,helperText:m.tosUri?.message}),e.jsx(C,{children:s("oauth.client.helperText.tosUri")})]})}),e.jsx(S,{name:"policyUri",control:u,rules:{pattern:{value:/^$|^https?:\/\/.+/,message:s("oauth.client.validate.policyUriInvalid")}},render:({field:t})=>e.jsxs(c,{sx:{width:"50%"},children:[e.jsx(w,{...t,label:s("oauth.client.input.policyUri"),fullWidth:!0,error:!!m.policyUri,helperText:m.policyUri?.message}),e.jsx(C,{children:s("oauth.client.helperText.policyUri")})]})})]}),m.error&&e.jsx(oe,{severity:"error",children:m.error.message})]})}),e.jsxs(ae,{children:[e.jsx(z,{onClick:i,children:s("common.cancel")}),e.jsx(z,{onClick:W(_),disabled:h,variant:"contained",color:"primary",children:h?e.jsx(J,{size:16}):s("common.update")})]})]})}he.propTypes={client:n.shape({clientId:n.string.isRequired,clientName:n.string.isRequired,clientUri:n.string,redirectUris:n.arrayOf(n.string),scope:n.string,contacts:n.arrayOf(n.string),tosUri:n.string,policyUri:n.string,logoUri:n.string,clientSecretExpiresAt:n.number}).isRequired,onUpdate:n.func.isRequired,onClose:n.func.isRequired};function me({client:r,onUpdate:a,onClose:i}){return e.jsx(he,{client:r,onUpdate:h=>a(h),onClose:i})}me.propTypes={client:n.shape({clientId:n.string.isRequired,clientName:n.string.isRequired,clientUri:n.string,redirectUris:n.arrayOf(n.string),scope:n.string,contacts:n.arrayOf(n.string),tosUri:n.string,policyUri:n.string,logoUri:n.string,clientSecretExpiresAt:n.number}).isRequired,onUpdate:n.func.isRequired,onClose:n.func.isRequired};function xe({clientId:r,clientName:a,onDelete:i=()=>{},onClose:h=()=>{}}){const{t:l}=D(),{api:s}=$(),{teamDid:f}=B(),d=()=>{h()},y=async()=>{try{await s.deleteOAuthClient({input:{teamDid:f,clientId:r}}),i()}catch(u){H.error(u?.message)}finally{d()}},g={keyName:a,title:l("oauth.client.delete.title"),description:l("oauth.client.delete.description",{name:`<b>${a}</b>`}),confirmPlaceholder:l("oauth.client.delete.description",{name:a}),confirm:l("common.delConfirm"),cancel:l("common.cancel"),onConfirm:y,onCancel:d};return e.jsx(_e,{keyName:g.keyName,title:g.title,description:g.description,confirmPlaceholder:g.confirmPlaceholder,confirm:g.confirm,cancel:g.cancel,params:g.params,onConfirm:g.onConfirm,onCancel:g.onCancel})}xe.propTypes={clientId:n.string.isRequired,clientName:n.string.isRequired,onDelete:n.func,onClose:n.func};function je({title:r,items:a}){return e.jsxs(c,{sx:{mb:3},children:[e.jsx(I,{variant:"h6",sx:{mb:1.5},children:r}),e.jsx(q,{spacing:1.5,children:a.map(({label:i,value:h})=>e.jsxs(c,{sx:{display:"flex",alignItems:"center",gap:2},children:[e.jsx(I,{variant:"subtitle2",color:"textSecondary",sx:{minWidth:200},children:i}),e.jsx(I,{sx:{wordBreak:"break-all"},children:h||"-"})]},i))})]})}je.propTypes={title:n.string.isRequired,items:n.arrayOf(n.shape({label:n.string.isRequired,value:n.any})).isRequired};function ge({client:r,onClose:a}){const{t:i,locale:h}=D(),{teamDid:l}=B(),{clientName:s,clientId:f,clientSecret:d,redirectUris:y,scope:g,clientUri:u,logoUri:W,contacts:m,tosUri:T,policyUri:R,jwksUri:N,jwks:o,softwareId:x,softwareVersion:A,clientIdIssuedAt:P,clientSecretExpiresAt:E,updatedAt:O,createUser:_}=r,{clientLogoUrl:t}=ee(W),p=L=>{try{const F=new URL(window.blocklet.appUrl);return F.pathname=L,F.toString()}catch{return"-"}},j=de.fromAppDid(f,l),U=[{title:i("common.baseInfo"),items:[{label:i("oauth.client.name"),value:s},{label:i("oauth.client.logoUri"),value:e.jsx(re,{variant:"rounded",shape:"square",src:t,did:j.address,size:64})},{label:i("oauth.client.clientUri"),value:u?e.jsx(v,{children:u}):"-"},{label:i("oauth.client.clientId"),value:e.jsx(v,{children:f})},{label:i("oauth.client.clientSecret"),value:e.jsx(v,{children:d})},{label:i("oauth.client.redirectUris"),value:e.jsx(v,{children:(y||[]).join(", ")})},{label:i("oauth.client.scope"),value:e.jsx(Z,{scope:g})},{label:i("oauth.client.createUser"),value:_?ze(_,!0):i("oauth.client.openRegistration")}]},{title:i("oauth.client.oauthEndpoints"),items:[{label:i("oauth.client.openidConfiguration"),value:e.jsx(v,{children:p("/.well-known/openid-configuration")})},{label:i("oauth.client.authorizationEndpoint"),value:e.jsx(v,{children:p(`${k.WELLKNOWN_SERVICE_PATH_PREFIX}/oauth/authorize`)})},{label:i("oauth.client.tokenEndpoint"),value:e.jsx(v,{children:p(`${k.WELLKNOWN_SERVICE_PATH_PREFIX}/oauth/token`)})},{label:i("oauth.client.userinfoEndpoint"),value:e.jsx(v,{children:p(`${k.WELLKNOWN_SERVICE_PATH_PREFIX}/oauth/userinfo`)})},{label:i("oauth.client.jwksUri"),value:e.jsx(v,{children:p(`${k.WELLKNOWN_SERVICE_PATH_PREFIX}/oauth/jwks`)})},{label:i("oauth.client.registrationEndpoint"),value:e.jsx(v,{children:p(`${k.WELLKNOWN_SERVICE_PATH_PREFIX}/oauth/register`)})},{label:i("oauth.client.endSessionEndpoint"),value:e.jsx(v,{children:p(`${k.WELLKNOWN_SERVICE_PATH_PREFIX}/oauth/logout`)})}]},{title:i("oauth.client.metaContact"),items:[{label:i("oauth.client.contacts"),value:m.length?e.jsx(v,{children:(m||[]).join(", ")}):"-"},{label:i("oauth.client.tosUri"),value:T?e.jsx(v,{children:T}):"-"},{label:i("oauth.client.policyUri"),value:R?e.jsx(v,{children:R}):"-"},{label:i("oauth.client.jwksUri"),value:N},{label:i("oauth.client.jwks"),value:o},{label:i("oauth.client.softwareId"),value:x},{label:i("oauth.client.softwareVersion"),value:A}]},{title:i("common.timeInfo"),items:[{label:i("oauth.client.clientIdIssuedAt"),value:P?e.jsx(V,{value:P*1e3,type:"all",locale:h}):"-"},{label:i("oauth.client.clientSecretExpiresAt"),value:E?e.jsx(V,{value:E*1e3,type:"all",locale:h}):"-"},{label:i("common.updatedAt"),value:O?e.jsx(V,{value:O,type:"all",locale:h}):"-"}]}].filter(Boolean);return e.jsxs(M,{open:!0,onClose:a,maxWidth:"lg",fullWidth:!0,children:[e.jsxs(K,{children:[i("oauth.client.oauthAppDetails"),e.jsx(X,{onClick:a,sx:{position:"absolute",right:8,top:8},children:e.jsx(G,{})})]}),e.jsx(Q,{children:e.jsx(c,{sx:{mt:1},children:U.map((L,F)=>e.jsxs(c,{children:[e.jsx(je,{title:L.title,items:L.items}),F!==U.length-1&&e.jsx(Y,{sx:{my:2}})]},L.title))})})]})}ge.propTypes={client:n.object.isRequired,onClose:n.func.isRequired};function Ve(r){return e.jsx(V,{value:r*1e3})}function fe({selected:r=null,onClose:a}){return r?e.jsx(ge,{client:r,onClose:a}):null}fe.propTypes={selected:n.object,onClose:n.func.isRequired};function Ue({open:r,onCreated:a,onClose:i}){return r?e.jsx(pe,{onCreated:a,onClose:i}):null}Ue.propTypes={open:n.bool.isRequired,onCreated:n.func.isRequired,onClose:n.func.isRequired};function Tt(){const[r,a]=b.useState({searchText:"",pageSize:10,page:1}),[i,h]=b.useState(null),[l,s]=b.useState(!1),f=b.useRef(null),{t:d,locale:y}=D(),{api:g}=$(),{teamDid:u}=B(),[W,m]=b.useState(null),[T,R]=b.useState(null),N=De(),{getClientLogoUrl:o}=ee(),x=We(async()=>await g.getOAuthClients({input:{teamDid:u,paging:{page:r.page,pageSize:r.pageSize}}}),[r.page,r.pageSize]),{loading:A}=x,P=b.useMemo(()=>x.value?.list||[],[x.value?.list]),E=b.useMemo(()=>r.searchText?P.filter(t=>t.clientName.toLowerCase().includes(r.searchText.toLowerCase())||t.clientId.toLowerCase().includes(r.searchText.toLowerCase())||t.scope.toLowerCase().includes(r.searchText.toLowerCase())):P,[r.searchText,P]),O=b.useMemo(()=>[{label:d("oauth.client.name"),name:"clientName",options:{customBodyRender:(t,{rowIndex:p})=>{const j=E[p],U=o(j.logoUri),L=de.fromAppDid(j.clientId,u);return e.jsx(c,{sx:{display:"flex",alignItems:"center",gap:2},children:e.jsxs(c,{sx:{display:"flex",alignItems:"center",gap:2,cursor:"pointer"},children:[e.jsx(re,{variant:"rounded",shape:"square",did:L.address,src:U,size:48}),e.jsxs(q,{sx:{gap:.5},children:[e.jsx(c,{sx:{color:"text.primary"},children:j.clientName}),e.jsx(c,{sx:{color:"text.secondary"},children:j.clientUri})]})]})})}}},{label:d("oauth.client.clientId"),name:"clientId"},{label:d("oauth.client.scope"),name:"scope",options:{customBodyRender:t=>e.jsx(Z,{scope:t})}},{label:d("common.createdAt"),name:"clientIdIssuedAt",options:{customBodyRender:Ve}},{label:d("common.createdBy"),name:"createdBy",width:100,options:{customBodyRender:t=>t?e.jsx(Ee,{showDid:!0,did:t,cardType:ke.Detailed,infoType:Ae.Minimal,sx:{border:0,padding:0}}):d("oauth.client.openRegistration")}},{label:d("common.actions"),name:"actions",width:100,align:"center",verticalKeyAlign:"center",options:{customBodyRender:(t,{rowIndex:p})=>{const j=E[p];return e.jsx(Fe,{actions:[{icon:e.jsx(Se,{}),text:d("common.edit"),onClick:U=>{U.stopPropagation(),m(j)}},{icon:e.jsx(Ie,{}),text:d("common.delete"),onClick:U=>{U.stopPropagation(),R(j)}}]})}}}],[E,d,o,u,m,R]),_=({page:t,rowsPerPage:p,searchText:j})=>{r.pageSize!==p?a(U=>({...U,searchText:"",pageSize:p,page:1})):r.page!==t+1?a(U=>({...U,searchText:"",page:t+1})):r.searchText!==j&&a(U=>({...U,searchText:j,page:1}))};return e.jsxs(c,{ref:f,sx:{".custom-toobar-btns":{gap:"8px"},".custom-toobar-title .custom-toobar-title-inner>span":{display:"flex",alignItems:"center","white-space":"inherit",height:"100%"}},children:[N?e.jsx(ie,{title:d("oauth.client.listTitle"),tooltipTitle:d("oauth.client.tooltipTitle"),link:`https://www.arcblock.io/docs/blocklet-developer/${y}/oauth-service`}):null,e.jsx(ve,{data:E,columns:O,options:{sort:!1,download:!1,filter:!1,print:!1,viewColumns:!1,page:r.page-1,rowsPerPage:r.pageSize,count:E.length,searchDebounceTime:400,onRowClick(t,{dataIndex:p},j){if(f.current?.contains(j.target)){const U=E[p];h(U)}}},onChange:_,title:N?null:e.jsx(ie,{title:d("oauth.client.listTitle"),tooltipTitle:d("oauth.client.tooltipTitle"),link:`https://www.arcblock.io/docs/blocklet-developer/${y}/oauth-service`}),customButtons:[e.jsxs(z,{variant:"contained",size:"small",onClick:()=>s(!0),children:[A?e.jsx(J,{size:16}):e.jsx(ce,{style:{fontSize:16}}),d("common.create")]},"add")],loading:!1,emptyNode:e.jsx(Ce,{children:d("oauth.client.empty")})}),e.jsx(fe,{selected:i,onClose:()=>h(null)}),e.jsx(Ue,{open:l,onCreated:()=>{s(!1),x.retry()},onClose:()=>s(!1)}),W&&e.jsx(me,{client:W,onUpdate:x.retry,onClose:()=>m(null)}),T&&e.jsx(xe,{...T,onDelete:x.retry,onClose:()=>R(null)})]})}export{Tt as default};
2
+ import{r as b,a as be}from"./vendor-react-CUXIiAnY.js";import{V as D,H,_ as ye,$ as re,z as V,h as ve,i as Ce}from"./vendor-ux-D507n6h6.js";import{j as e,Y as M,bC as K,I as X,aj as G,$ as Q,b1 as q,T as I,ak as c,z as w,F as C,b7 as Te,b5 as le,b6 as ne,a5 as se,a3 as Y,aX as oe,R as ae,Q as z,a6 as J,W as n,am as we,cb as ce,cc as Se,bb as Ie}from"./vendor-mui-core-BPQ6AEW_.js";import{_ as $,c as k,ac as Re,ar as Ee,as as Ae,at as ke}from"./index-Cx5JU0Ln.js";import{u as We}from"./useAsyncRetry-a2Wewn3F.js";import{r as Ne}from"./index-CPDkpfNV.js";import{u as B}from"./team-CG74iq-4.js";import{u as ue,C as S}from"./index.esm-DTmS4tth.js";import{o as Pe,b as qe,C as te}from"./vendor-utils-BSZ4yJws.js";import{T as Oe}from"./index-Cbz9zwoD.js";import{E as Le}from"./empty-spinner-G6osPzkH.js";import{C as v}from"./click-to-copy-CAd3nEo4.js";import{D as _e}from"./delete-confirm-Cw0wPOzJ.js";import{r as ze}from"./passport-item-CEM3FQ2i.js";import{A as Fe}from"./actions-DhSvOHy-.js";import{T as ie}from"./table-tips-EHWVzPWe.js";import{u as De}from"./use-mobile-ajdJIsoX.js";import"./vendor-hooks-fhL5FJET.js";import"./lottie-web-4koyQiv_.js";import"./vendor-arcblock-BL_VyzmH.js";import"./useAsync-Cc-dQGZL.js";import"./session-CAOgTWka.js";import"./isURL-CohjRVvR.js";import"./use-app-logo-BAJtA-EN.js";import"./arrow-down.svg-Cn1jfZom.js";import"./vendor-mui-x-CWNb8fsW.js";import"./AdapterDayjs-BuAhqT20.js";import"./confirm-g44rz8hw.js";import"./index-DBs9Ljax.js";import"./ua-parser-DP5omx3I.js";import"./did-address-BOsJWqi1.js";import"./util-B41ySVcQ.js";import"./base32-CnxuWLTI.js";var de=Ne();const $e={clientName:"",clientUri:"",redirectUris:"",scope:["profile:read"],contacts:"",tosUri:"",policyUri:""};function pe({onCreated:r,onClose:a}){const[i,h]=b.useState(!1),{t:l,locale:s}=D(),{api:f}=$(),{teamDid:d}=B(),{control:y,handleSubmit:g,formState:{errors:u},watch:W,setValue:m}=ue({defaultValues:$e,mode:"onChange"}),T=W("scope"),R=o=>{o!=="profile:read"&&m("scope",T.includes(o)?T.filter(x=>x!==o):[...T,o])},N=async o=>{h(!0);try{const x={...o,redirectUris:o.redirectUris,contacts:o.contacts?o.contacts.split(",").map(A=>A.trim()):[],scope:o.scope.join(" ")};await f.createOAuthClient({input:{teamDid:d,input:Pe(x,qe)}}),r(x)}catch(x){H.error(x.message||"Failed to create OAuth App")}finally{h(!1)}};return e.jsxs(M,{open:!0,onClose:a,maxWidth:"md",fullWidth:!0,children:[e.jsxs(K,{children:[l("oauth.client.register")," ",e.jsx(X,{onClick:a,sx:{position:"absolute",right:8,top:8},children:e.jsx(G,{})})]}),e.jsx(Q,{children:e.jsxs(q,{spacing:4,sx:{mt:2},children:[e.jsx(I,{variant:"h6",gutterBottom:!0,children:l("oauth.client.requiredInformation")}),e.jsx(c,{children:e.jsx(S,{name:"clientName",control:y,rules:{required:l("oauth.client.validate.clientName"),minLength:{value:3,message:l("oauth.client.validate.clientNameMinLength")}},render:({field:o})=>e.jsxs(e.Fragment,{children:[e.jsx(w,{size:"small",...o,label:l("oauth.client.name"),required:!0,fullWidth:!0,placeholder:l("oauth.client.input.clientNamePlaceholder"),error:!!u.clientName,helperText:u.clientName?.message}),e.jsx(C,{children:l("oauth.client.helperText.clientName")})]})})}),e.jsx(c,{children:e.jsx(S,{name:"clientUri",control:y,rules:{required:l("oauth.client.validate.clientUri"),pattern:{value:/^https?:\/\/.+/,message:l("oauth.client.validate.clientUriInvalid")}},render:({field:o})=>e.jsxs(e.Fragment,{children:[e.jsx(w,{size:"small",...o,label:l("oauth.client.input.clientUri"),required:!0,fullWidth:!0,placeholder:l("oauth.client.input.clientUriPlaceholder"),error:!!u.clientUri,helperText:u.clientUri?.message}),e.jsx(C,{children:l("oauth.client.helperText.clientUri")})]})})}),e.jsx(c,{children:e.jsx(S,{name:"redirectUris",control:y,rules:{required:l("oauth.client.validate.redirectUris"),pattern:{value:/^https?:\/\/.+/,message:l("oauth.client.validate.redirectUrisInvalid")}},render:({field:o})=>e.jsxs(e.Fragment,{children:[e.jsx(w,{size:"small",...o,label:l("oauth.client.input.redirectUris"),required:!0,fullWidth:!0,placeholder:l("oauth.client.input.redirectUrisPlaceholder"),error:!!u.redirectUris,helperText:u.redirectUris?.message}),e.jsxs(c,{sx:{display:"flex",gap:"2px"},children:[e.jsx(C,{children:l("oauth.client.helperText.redirectUris")}),e.jsx(C,{children:l("oauth.client.helperText.read")}),e.jsx(C,{sx:{color:"info.main"},component:"a",href:`https://www.arcblock.io/docs/blocklet-developer/${s}/oauth-service`,target:"_blank",rel:"noopener noreferrer",children:l("oauth.client.helperText.document")}),e.jsx(C,{children:l("oauth.client.helperText.more")})]})]})})}),e.jsxs(Te,{variant:"outlined",sx:{p:2,display:"none"},children:[e.jsx(I,{variant:"subtitle2",gutterBottom:!0,children:l("oauth.client.input.permissions")}),e.jsx(c,{sx:{border:"1px solid",borderColor:"divider",borderRadius:1,p:2},children:e.jsx(le,{children:Object.entries(k.OAUTH_SCOPES).map(([o,x])=>e.jsx(ne,{control:e.jsx(se,{checked:T.includes(o),onChange:()=>R(o),disabled:o==="profile:read",color:"primary"}),label:e.jsx(c,{children:e.jsx(I,{variant:"body2",sx:{fontWeight:500},children:x})})},o))})})]}),e.jsx(Y,{}),e.jsx(I,{variant:"h6",gutterBottom:!0,children:l("oauth.client.optionalInformation")}),e.jsx(q,{children:e.jsx(S,{name:"contacts",control:y,rules:{pattern:{value:/^$|^[^@\s]+@[^@\s]+\.[^@\s]+(\s*,\s*[^@\s]+@[^@\s]+\.[^@\s]+)*$/,message:l("oauth.client.validate.contacts")}},render:({field:o})=>e.jsxs(e.Fragment,{children:[e.jsx(w,{size:"small",...o,label:l("oauth.client.input.contacts"),fullWidth:!0,placeholder:l("oauth.client.input.contactsPlaceholder"),error:!!u.contacts,helperText:u.contacts?.message}),e.jsx(C,{children:l("oauth.client.helperText.contacts")})]})})}),e.jsxs(q,{direction:{xs:"column",sm:"row"},spacing:2,children:[e.jsx(S,{name:"tosUri",control:y,rules:{pattern:{value:/^$|^https?:\/\/.+/,message:l("oauth.client.validate.tosUriInvalid")}},render:({field:o})=>e.jsxs(c,{sx:{width:"50%"},children:[e.jsx(w,{size:"small",...o,label:l("oauth.client.input.tosUri"),fullWidth:!0,placeholder:l("oauth.client.input.tosUriPlaceholder"),error:!!u.tosUri,helperText:u.tosUri?.message}),e.jsx(C,{children:l("oauth.client.helperText.tosUri")})]})}),e.jsx(S,{name:"policyUri",control:y,rules:{pattern:{value:/^$|^https?:\/\/.+/,message:l("oauth.client.validate.policyUriInvalid")}},render:({field:o})=>e.jsxs(c,{sx:{width:"50%"},children:[e.jsx(w,{size:"small",...o,label:l("oauth.client.input.policyUri"),fullWidth:!0,placeholder:l("oauth.client.input.policyUriPlaceholder"),error:!!u.policyUri,helperText:u.policyUri?.message}),e.jsx(C,{children:l("oauth.client.helperText.policyUri")})]})})]}),u.error&&e.jsx(oe,{severity:"error",children:u.error.message})]})}),e.jsxs(ae,{children:[e.jsx(z,{onClick:a,children:l("common.cancel")}),e.jsxs(z,{onClick:g(N),disabled:i,variant:"contained",color:"primary",children:[i?e.jsx(J,{size:20,sx:{mr:1}}):null,l("oauth.client.registerButton")]})]})]})}pe.propTypes={onCreated:n.func.isRequired,onClose:n.func.isRequired};function Z({scope:r="",...a}){if(!r)return null;const i=r.split(" ").filter(Boolean);return e.jsx(q,{direction:"row",...a,sx:[{flexWrap:"wrap",gap:1},...Array.isArray(a.sx)?a.sx:[a.sx]],children:i.map(h=>e.jsx(be.Fragment,{children:e.jsx(we,{title:k.OAUTH_SCOPES[h],children:e.jsx(v,{children:h})})},h))})}Z.propTypes={scope:n.string};const ee=r=>{const{prefix:a}=$(),{blocklet:i}=Re(),h=te(a,"/api/media/upload",i.appPid),l=b.useCallback(f=>f?f.startsWith("http")?f:`${te(a,"/api/media/upload",i.appPid)}/${f}`:"",[a,i.appPid]);return{clientLogoUrl:b.useMemo(()=>l(r),[r,l]),apiPath:h,getClientLogoUrl:l}},Be=b.lazy(()=>ye(()=>import("./index-DxQFjZlw.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(r=>({default:r.Uploader})));function he({client:r,onUpdate:a,onClose:i}){const[h,l]=b.useState(!1),{t:s,locale:f}=D(),d=b.useRef(null),{api:y}=$(),{teamDid:g}=B(),{control:u,handleSubmit:W,formState:{errors:m},watch:T,setValue:R,getValues:N}=ue({defaultValues:{clientName:r.clientName||"",clientUri:r.clientUri||"",redirectUris:Array.isArray(r.redirectUris)?r.redirectUris.join(","):"",scope:r.scope?r.scope.split(" "):["profile:read"],contacts:Array.isArray(r.contacts)?r.contacts.join(","):"",tosUri:r.tosUri||"",policyUri:r.policyUri||"",logoUri:r.logoUri||"",clientSecretExpiresAt:r.clientSecretExpiresAt||null},mode:"onChange"}),o=T("scope"),x=T("logoUri"),{clientLogoUrl:A,apiPath:P}=ee(x),E=t=>{t!=="profile:read"&&R("scope",o.includes(t)?o.filter(p=>p!==t):[...o,t])},O=async t=>{const p={clientId:r.clientId,clientName:t.clientName.trim(),clientUri:t.clientUri,redirectUris:t.redirectUris.split(",").map(j=>j.trim()).filter(Boolean),contacts:t.contacts?t.contacts.split(",").map(j=>j.trim()):[],scope:t.scope.join(" "),tosUri:t.tosUri,policyUri:t.policyUri,logoUri:t.logoUri,clientSecretExpiresAt:t.clientSecretExpiresAt?parseInt(t.clientSecretExpiresAt/1e3,10):null};await y.updateOAuthClient({input:{teamDid:g,input:p}})},_=async t=>{l(!0);try{await O(t),a(),i()}catch(p){H.error(p.message||s("oauth.client.updateFailed"))}finally{l(!1)}};return e.jsxs(M,{open:!0,onClose:i,maxWidth:"md",fullWidth:!0,children:[e.jsxs(K,{children:[s("oauth.client.update")," ",e.jsx(X,{onClick:i,sx:{position:"absolute",right:8,top:8},children:e.jsx(G,{})})]}),e.jsx(Q,{children:e.jsxs(q,{spacing:3,sx:{mt:2},children:[e.jsxs(c,{sx:{mb:3},children:[e.jsx(I,{variant:"subtitle1",sx:{fontWeight:500,mb:1},children:s("oauth.client.logo")}),e.jsxs(c,{children:[e.jsx(c,{sx:{width:120,height:120,position:"relative",borderRadius:"4px",overflow:"hidden"},children:A?e.jsx(c,{children:e.jsx("img",{src:A,alt:"client-logo",style:{width:"100%",height:"100%"}})}):e.jsx(c,{onClick:()=>{d.current?.open()},sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"grey.200"},children:e.jsx(ce,{sx:{fontSize:40,color:"common.white"}})})}),e.jsx(z,{sx:{mt:2},variant:"outlined",size:"small",onClick:()=>{d.current?.open()},children:s(A?"common.change":"common.upload")})]}),e.jsx(c,{sx:{display:"flex",alignItems:"center"},children:e.jsx(b.Suspense,{fallback:e.jsx(Le,{}),children:e.jsx(Be,{ref:d,locale:f,popup:!0,onUploadFinish:t=>{R("logoUri",t.data.filename),O(N()).then(()=>{a()}).catch(p=>{H.error(p.message||s("oauth.client.updateFailed"))}).finally(()=>{d.current?.close()})},plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:P,disableMediaKitPrefix:!0,disableAutoPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:["image/png","image/jpeg","image/webp","image/svg+xml"],maxFileSize:1024*1024*.5,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,aspectRatio:1,initialAspectRatio:1,autoCropArea:1,croppedCanvasOptions:{minWidth:256,minHeight:256}}}},"uploader-logo")})})]}),e.jsx(I,{variant:"subtitle1",sx:{fontWeight:500},children:s("oauth.client.requiredInformation")}),e.jsx(w,{label:"Client Id",fullWidth:!0,value:r.clientId,disabled:!0}),e.jsx(c,{children:e.jsx(S,{name:"clientName",control:u,rules:{required:s("oauth.client.validate.clientName"),minLength:{value:3,message:s("oauth.client.validate.clientNameMinLength")}},render:({field:t})=>e.jsxs(e.Fragment,{children:[e.jsx(w,{...t,label:s("oauth.client.name"),required:!0,fullWidth:!0,error:!!m.clientName,helperText:m.clientName?.message}),e.jsx(C,{children:s("oauth.client.helperText.clientName")})]})})}),e.jsx(c,{children:e.jsx(S,{name:"clientUri",control:u,rules:{required:s("oauth.client.validate.clientUri"),pattern:{value:/^https?:\/\/.+/,message:s("oauth.client.validate.clientUriInvalid")}},render:({field:t})=>e.jsxs(e.Fragment,{children:[e.jsx(w,{...t,label:s("oauth.client.input.clientUri"),required:!0,fullWidth:!0,error:!!m.clientUri,helperText:m.clientUri?.message}),e.jsx(C,{children:s("oauth.client.helperText.clientUri")})]})})}),e.jsx(c,{children:e.jsx(S,{name:"redirectUris",control:u,rules:{required:s("oauth.client.validate.redirectUris"),pattern:{value:/^https?:\/\/.+/,message:s("oauth.client.validate.redirectUrisInvalid")}},render:({field:t})=>e.jsxs(e.Fragment,{children:[e.jsx(w,{...t,label:s("oauth.client.input.redirectUris"),required:!0,fullWidth:!0,multiline:!0,rows:2,error:!!m.redirectUris,helperText:m.redirectUris?.message}),e.jsx(C,{children:s("oauth.client.helperText.redirectUris")})]})})}),e.jsx(S,{name:"clientSecretExpiresAt",control:u,render:({field:t})=>e.jsx(Oe,{placeholder:s("oauth.client.input.expireTime"),value:t.value*1e3,onChange:p=>{t.onChange(p)}})}),e.jsxs(c,{sx:{display:"none"},children:[e.jsx(I,{variant:"subtitle2",sx:{mb:1},children:s("oauth.client.input.permissions")}),e.jsx(c,{sx:{border:"1px solid",borderColor:"divider",borderRadius:1,p:2},children:e.jsx(le,{children:Object.entries(k.OAUTH_SCOPES).map(([t,p])=>e.jsx(ne,{control:e.jsx(se,{checked:o.includes(t),onChange:()=>E(t),disabled:t==="profile:read",color:"primary"}),label:e.jsx(c,{children:e.jsx(I,{variant:"body2",sx:{fontWeight:500},children:p})})},t))})})]}),e.jsx(Y,{}),e.jsx(I,{variant:"subtitle1",sx:{fontWeight:500},children:s("oauth.client.optionalInformation")}),e.jsx(c,{children:e.jsx(S,{name:"contacts",control:u,rules:{pattern:{value:/^$|^[^@\s]+@[^@\s]+\.[^@\s]+(\s*,\s*[^@\s]+@[^@\s]+\.[^@\s]+)*$/,message:s("oauth.client.validate.contacts")}},render:({field:t})=>e.jsxs(e.Fragment,{children:[e.jsx(w,{...t,label:s("oauth.client.input.contacts"),fullWidth:!0,error:!!m.contacts,helperText:m.contacts?.message}),e.jsx(C,{children:s("oauth.client.helperText.contacts")})]})})}),e.jsxs(q,{direction:{xs:"column",sm:"row"},spacing:2,children:[e.jsx(S,{name:"tosUri",control:u,rules:{pattern:{value:/^$|^https?:\/\/.+/,message:s("oauth.client.validate.tosUriInvalid")}},render:({field:t})=>e.jsxs(c,{sx:{width:"50%"},children:[e.jsx(w,{...t,label:s("oauth.client.input.tosUri"),fullWidth:!0,error:!!m.tosUri,helperText:m.tosUri?.message}),e.jsx(C,{children:s("oauth.client.helperText.tosUri")})]})}),e.jsx(S,{name:"policyUri",control:u,rules:{pattern:{value:/^$|^https?:\/\/.+/,message:s("oauth.client.validate.policyUriInvalid")}},render:({field:t})=>e.jsxs(c,{sx:{width:"50%"},children:[e.jsx(w,{...t,label:s("oauth.client.input.policyUri"),fullWidth:!0,error:!!m.policyUri,helperText:m.policyUri?.message}),e.jsx(C,{children:s("oauth.client.helperText.policyUri")})]})})]}),m.error&&e.jsx(oe,{severity:"error",children:m.error.message})]})}),e.jsxs(ae,{children:[e.jsx(z,{onClick:i,children:s("common.cancel")}),e.jsx(z,{onClick:W(_),disabled:h,variant:"contained",color:"primary",children:h?e.jsx(J,{size:16}):s("common.update")})]})]})}he.propTypes={client:n.shape({clientId:n.string.isRequired,clientName:n.string.isRequired,clientUri:n.string,redirectUris:n.arrayOf(n.string),scope:n.string,contacts:n.arrayOf(n.string),tosUri:n.string,policyUri:n.string,logoUri:n.string,clientSecretExpiresAt:n.number}).isRequired,onUpdate:n.func.isRequired,onClose:n.func.isRequired};function me({client:r,onUpdate:a,onClose:i}){return e.jsx(he,{client:r,onUpdate:h=>a(h),onClose:i})}me.propTypes={client:n.shape({clientId:n.string.isRequired,clientName:n.string.isRequired,clientUri:n.string,redirectUris:n.arrayOf(n.string),scope:n.string,contacts:n.arrayOf(n.string),tosUri:n.string,policyUri:n.string,logoUri:n.string,clientSecretExpiresAt:n.number}).isRequired,onUpdate:n.func.isRequired,onClose:n.func.isRequired};function xe({clientId:r,clientName:a,onDelete:i=()=>{},onClose:h=()=>{}}){const{t:l}=D(),{api:s}=$(),{teamDid:f}=B(),d=()=>{h()},y=async()=>{try{await s.deleteOAuthClient({input:{teamDid:f,clientId:r}}),i()}catch(u){H.error(u?.message)}finally{d()}},g={keyName:a,title:l("oauth.client.delete.title"),description:l("oauth.client.delete.description",{name:`<b>${a}</b>`}),confirmPlaceholder:l("oauth.client.delete.description",{name:a}),confirm:l("common.delConfirm"),cancel:l("common.cancel"),onConfirm:y,onCancel:d};return e.jsx(_e,{keyName:g.keyName,title:g.title,description:g.description,confirmPlaceholder:g.confirmPlaceholder,confirm:g.confirm,cancel:g.cancel,params:g.params,onConfirm:g.onConfirm,onCancel:g.onCancel})}xe.propTypes={clientId:n.string.isRequired,clientName:n.string.isRequired,onDelete:n.func,onClose:n.func};function je({title:r,items:a}){return e.jsxs(c,{sx:{mb:3},children:[e.jsx(I,{variant:"h6",sx:{mb:1.5},children:r}),e.jsx(q,{spacing:1.5,children:a.map(({label:i,value:h})=>e.jsxs(c,{sx:{display:"flex",alignItems:"center",gap:2},children:[e.jsx(I,{variant:"subtitle2",color:"textSecondary",sx:{minWidth:200},children:i}),e.jsx(I,{sx:{wordBreak:"break-all"},children:h||"-"})]},i))})]})}je.propTypes={title:n.string.isRequired,items:n.arrayOf(n.shape({label:n.string.isRequired,value:n.any})).isRequired};function ge({client:r,onClose:a}){const{t:i,locale:h}=D(),{teamDid:l}=B(),{clientName:s,clientId:f,clientSecret:d,redirectUris:y,scope:g,clientUri:u,logoUri:W,contacts:m,tosUri:T,policyUri:R,jwksUri:N,jwks:o,softwareId:x,softwareVersion:A,clientIdIssuedAt:P,clientSecretExpiresAt:E,updatedAt:O,createUser:_}=r,{clientLogoUrl:t}=ee(W),p=L=>{try{const F=new URL(window.blocklet.appUrl);return F.pathname=L,F.toString()}catch{return"-"}},j=de.fromAppDid(f,l),U=[{title:i("common.baseInfo"),items:[{label:i("oauth.client.name"),value:s},{label:i("oauth.client.logoUri"),value:e.jsx(re,{variant:"rounded",shape:"square",src:t,did:j.address,size:64})},{label:i("oauth.client.clientUri"),value:u?e.jsx(v,{children:u}):"-"},{label:i("oauth.client.clientId"),value:e.jsx(v,{children:f})},{label:i("oauth.client.clientSecret"),value:e.jsx(v,{children:d})},{label:i("oauth.client.redirectUris"),value:e.jsx(v,{children:(y||[]).join(", ")})},{label:i("oauth.client.scope"),value:e.jsx(Z,{scope:g})},{label:i("oauth.client.createUser"),value:_?ze(_,!0):i("oauth.client.openRegistration")}]},{title:i("oauth.client.oauthEndpoints"),items:[{label:i("oauth.client.openidConfiguration"),value:e.jsx(v,{children:p("/.well-known/openid-configuration")})},{label:i("oauth.client.authorizationEndpoint"),value:e.jsx(v,{children:p(`${k.WELLKNOWN_SERVICE_PATH_PREFIX}/oauth/authorize`)})},{label:i("oauth.client.tokenEndpoint"),value:e.jsx(v,{children:p(`${k.WELLKNOWN_SERVICE_PATH_PREFIX}/oauth/token`)})},{label:i("oauth.client.userinfoEndpoint"),value:e.jsx(v,{children:p(`${k.WELLKNOWN_SERVICE_PATH_PREFIX}/oauth/userinfo`)})},{label:i("oauth.client.jwksUri"),value:e.jsx(v,{children:p(`${k.WELLKNOWN_SERVICE_PATH_PREFIX}/oauth/jwks`)})},{label:i("oauth.client.registrationEndpoint"),value:e.jsx(v,{children:p(`${k.WELLKNOWN_SERVICE_PATH_PREFIX}/oauth/register`)})},{label:i("oauth.client.endSessionEndpoint"),value:e.jsx(v,{children:p(`${k.WELLKNOWN_SERVICE_PATH_PREFIX}/oauth/logout`)})}]},{title:i("oauth.client.metaContact"),items:[{label:i("oauth.client.contacts"),value:m.length?e.jsx(v,{children:(m||[]).join(", ")}):"-"},{label:i("oauth.client.tosUri"),value:T?e.jsx(v,{children:T}):"-"},{label:i("oauth.client.policyUri"),value:R?e.jsx(v,{children:R}):"-"},{label:i("oauth.client.jwksUri"),value:N},{label:i("oauth.client.jwks"),value:o},{label:i("oauth.client.softwareId"),value:x},{label:i("oauth.client.softwareVersion"),value:A}]},{title:i("common.timeInfo"),items:[{label:i("oauth.client.clientIdIssuedAt"),value:P?e.jsx(V,{value:P*1e3,type:"all",locale:h}):"-"},{label:i("oauth.client.clientSecretExpiresAt"),value:E?e.jsx(V,{value:E*1e3,type:"all",locale:h}):"-"},{label:i("common.updatedAt"),value:O?e.jsx(V,{value:O,type:"all",locale:h}):"-"}]}].filter(Boolean);return e.jsxs(M,{open:!0,onClose:a,maxWidth:"lg",fullWidth:!0,children:[e.jsxs(K,{children:[i("oauth.client.oauthAppDetails"),e.jsx(X,{onClick:a,sx:{position:"absolute",right:8,top:8},children:e.jsx(G,{})})]}),e.jsx(Q,{children:e.jsx(c,{sx:{mt:1},children:U.map((L,F)=>e.jsxs(c,{children:[e.jsx(je,{title:L.title,items:L.items}),F!==U.length-1&&e.jsx(Y,{sx:{my:2}})]},L.title))})})]})}ge.propTypes={client:n.object.isRequired,onClose:n.func.isRequired};function Ve(r){return e.jsx(V,{value:r*1e3})}function fe({selected:r=null,onClose:a}){return r?e.jsx(ge,{client:r,onClose:a}):null}fe.propTypes={selected:n.object,onClose:n.func.isRequired};function Ue({open:r,onCreated:a,onClose:i}){return r?e.jsx(pe,{onCreated:a,onClose:i}):null}Ue.propTypes={open:n.bool.isRequired,onCreated:n.func.isRequired,onClose:n.func.isRequired};function Tt(){const[r,a]=b.useState({searchText:"",pageSize:10,page:1}),[i,h]=b.useState(null),[l,s]=b.useState(!1),f=b.useRef(null),{t:d,locale:y}=D(),{api:g}=$(),{teamDid:u}=B(),[W,m]=b.useState(null),[T,R]=b.useState(null),N=De(),{getClientLogoUrl:o}=ee(),x=We(async()=>await g.getOAuthClients({input:{teamDid:u,paging:{page:r.page,pageSize:r.pageSize}}}),[r.page,r.pageSize]),{loading:A}=x,P=b.useMemo(()=>x.value?.list||[],[x.value?.list]),E=b.useMemo(()=>r.searchText?P.filter(t=>t.clientName.toLowerCase().includes(r.searchText.toLowerCase())||t.clientId.toLowerCase().includes(r.searchText.toLowerCase())||t.scope.toLowerCase().includes(r.searchText.toLowerCase())):P,[r.searchText,P]),O=b.useMemo(()=>[{label:d("oauth.client.name"),name:"clientName",options:{customBodyRender:(t,{rowIndex:p})=>{const j=E[p],U=o(j.logoUri),L=de.fromAppDid(j.clientId,u);return e.jsx(c,{sx:{display:"flex",alignItems:"center",gap:2},children:e.jsxs(c,{sx:{display:"flex",alignItems:"center",gap:2,cursor:"pointer"},children:[e.jsx(re,{variant:"rounded",shape:"square",did:L.address,src:U,size:48}),e.jsxs(q,{sx:{gap:.5},children:[e.jsx(c,{sx:{color:"text.primary"},children:j.clientName}),e.jsx(c,{sx:{color:"text.secondary"},children:j.clientUri})]})]})})}}},{label:d("oauth.client.clientId"),name:"clientId"},{label:d("oauth.client.scope"),name:"scope",options:{customBodyRender:t=>e.jsx(Z,{scope:t})}},{label:d("common.createdAt"),name:"clientIdIssuedAt",options:{customBodyRender:Ve}},{label:d("common.createdBy"),name:"createdBy",width:100,options:{customBodyRender:t=>t?e.jsx(Ee,{showDid:!0,did:t,cardType:ke.Detailed,infoType:Ae.Minimal,sx:{border:0,padding:0}}):d("oauth.client.openRegistration")}},{label:d("common.actions"),name:"actions",width:100,align:"center",verticalKeyAlign:"center",options:{customBodyRender:(t,{rowIndex:p})=>{const j=E[p];return e.jsx(Fe,{actions:[{icon:e.jsx(Se,{}),text:d("common.edit"),onClick:U=>{U.stopPropagation(),m(j)}},{icon:e.jsx(Ie,{}),text:d("common.delete"),onClick:U=>{U.stopPropagation(),R(j)}}]})}}}],[E,d,o,u,m,R]),_=({page:t,rowsPerPage:p,searchText:j})=>{r.pageSize!==p?a(U=>({...U,searchText:"",pageSize:p,page:1})):r.page!==t+1?a(U=>({...U,searchText:"",page:t+1})):r.searchText!==j&&a(U=>({...U,searchText:j,page:1}))};return e.jsxs(c,{ref:f,sx:{".custom-toobar-btns":{gap:"8px"},".custom-toobar-title .custom-toobar-title-inner>span":{display:"flex",alignItems:"center","white-space":"inherit",height:"100%"}},children:[N?e.jsx(ie,{title:d("oauth.client.listTitle"),tooltipTitle:d("oauth.client.tooltipTitle"),link:`https://www.arcblock.io/docs/blocklet-developer/${y}/oauth-service`}):null,e.jsx(ve,{data:E,columns:O,options:{sort:!1,download:!1,filter:!1,print:!1,viewColumns:!1,page:r.page-1,rowsPerPage:r.pageSize,count:E.length,searchDebounceTime:400,onRowClick(t,{dataIndex:p},j){if(f.current?.contains(j.target)){const U=E[p];h(U)}}},onChange:_,title:N?null:e.jsx(ie,{title:d("oauth.client.listTitle"),tooltipTitle:d("oauth.client.tooltipTitle"),link:`https://www.arcblock.io/docs/blocklet-developer/${y}/oauth-service`}),customButtons:[e.jsxs(z,{variant:"contained",size:"small",onClick:()=>s(!0),children:[A?e.jsx(J,{size:16}):e.jsx(ce,{style:{fontSize:16}}),d("common.create")]},"add")],loading:!1,emptyNode:e.jsx(Ce,{children:d("oauth.client.empty")})}),e.jsx(fe,{selected:i,onClose:()=>h(null)}),e.jsx(Ue,{open:l,onCreated:()=>{s(!1),x.retry()},onClose:()=>s(!1)}),W&&e.jsx(me,{client:W,onUpdate:x.retry,onClose:()=>m(null)}),T&&e.jsx(xe,{...T,onDelete:x.retry,onClose:()=>R(null)})]})}export{Tt as default};
@@ -1,4 +1,4 @@
1
- import{r as o}from"./vendor-react-CUXIiAnY.js";import{j as t,b4 as _,W as n,D as F,n as xe,b0 as ye,co as be,cu as ve,cv as je,cw as we,ak as g,T as q,Q as ke,a$ as te,a3 as Ie,s as Me,J as Re,I as Ce,at as Ae}from"./vendor-mui-core-BPQ6AEW_.js";import{a as D,b as O,h as Te}from"./vendor-hooks-fhL5FJET.js";import{V as Q,z as Ne,U as ne,p as re,S as $e}from"./vendor-ux-D507n6h6.js";import{t as Se}from"./server-logo-notext.svg-DHxZ1bRk.js";import{B as ze}from"./bundle-avatar-D3mFZG-3.js";import{a as Le,g as se,i as ie,b as oe,c as V,M as ae,d as Ee,m as De,e as Be,f as Pe,h as qe,j as Ve,k as _e,l as Fe,n as Oe,N as Ue}from"./team-CKeHAIQC.js";import{R as He,J as We,C as J,a as U}from"./vendor-utils-BSZ4yJws.js";import{ar as Qe,as as Je,at as Ke,c as Xe,_ as Ge}from"./index-CeWTwSLE.js";import{p as Ye}from"./util-DPC-rfKa.js";function le({blocklet:e,style:r={},size:s=40,...i}){const l=Le({blocklet:e,square:!0}),{variant:u}=i;return t.jsx(_,{variant:u||"square",style:Object.assign({backgroundColor:"transparent",width:s,height:s,borderRadius:10},r),...i,children:t.jsx("img",{src:l,alt:"",style:{width:s}})})}le.propTypes={blocklet:n.object.isRequired,style:n.object,size:n.oneOfType([n.number,n.string])};function Ze(e){return e.includes(" ")?new Date(e.replace(" ","T").replace(" ","")).getTime():new Date(e).getTime()}function K({value:e="",shouldUpdate:r=!1,...s}){const{locale:i}=Q(),[l,u]=o.useState(0);if(o.useEffect(()=>{let d;if(r){const p=new Date(e).getTime(),y=Date.now(),v=Math.abs(Math.floor((p-y)/1e3)),b=()=>{u(k=>{const C=Math.random()*1e3;return parseFloat((k+C).toFixed(4))})};v<60?d=setInterval(b,1e3):v<60*60?d=setInterval(b,6e4):d=setInterval(b,36e5)}return()=>{clearInterval(d)}},[e,l,r]),!e)return"-";const m=Ze(e);return t.jsx(Ne,{value:m,locale:i,...s})}K.propTypes={value:n.any,shouldUpdate:n.bool};const et={error:je,warning:ve,info:be,success:ye};ce.propTypes={severity:n.oneOf(["error","warning","info","success"]).isRequired,size:n.number};function ce({severity:e="info",size:r=32}){const s=F(),l=D(()=>({error:s.palette.error.main,warning:s.palette.warning.main,info:s.palette.info.main,success:s.palette.success.main}))[e],u=et[e],m=xe(l,.1);return t.jsx(_,{sx:{width:r,height:r,bgcolor:m,color:l},children:t.jsx(u,{fontSize:"small"})})}const tt={width:24,height:24,body:'<g fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M0 0h24v24H0z"/><path fill="currentColor" d="M5.821 4.91c3.898-2.765 9.469-2.539 13.073.536c3.667 3.127 4.168 8.238 1.152 11.897c-2.842 3.447-7.965 4.583-12.231 2.805l-.232-.101l-4.375.931l-.075.013l-.11.009l-.113-.004l-.044-.005l-.11-.02l-.105-.034l-.1-.044l-.076-.042l-.108-.077l-.081-.074l-.073-.083l-.053-.075l-.065-.115l-.042-.106l-.031-.113l-.013-.075l-.009-.11l.004-.113l.005-.044l.02-.11l.022-.072l1.15-3.451l-.022-.036C.969 12.45 1.97 7.805 5.59 5.079l.23-.168z"/></g>'},nt={width:24,height:24,body:'<g fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M0 0h24v24H0z"/><path fill="currentColor" d="M12 2a5 5 0 1 1-5 5l.005-.217A5 5 0 0 1 12 2zm2 12a5 5 0 0 1 5 5v1a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-1a5 5 0 0 1 5-5h4z"/></g>'},rt={width:24,height:24,body:'<g fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M0 0h24v24H0z"/><path fill="currentColor" d="M17 3.34A10 10 0 1 1 2 12l.005-.324A10 10 0 0 1 17 3.34zM12 6a1 1 0 0 0-1 1a3 3 0 1 0 0 6v2a1.024 1.024 0 0 1-.866-.398l-.068-.101a1 1 0 0 0-1.732.998a3 3 0 0 0 2.505 1.5H11a1 1 0 0 0 .883.994L12 18a1 1 0 0 0 1-1l.176-.005A3 3 0 0 0 13 11V9c.358-.012.671.14.866.398l.068.101a1 1 0 0 0 1.732-.998A3 3 0 0 0 13.161 7H13a1 1 0 0 0-1-1zm1 7a1 1 0 0 1 0 2v-2zm-2-4v2a1 1 0 0 1 0-2z"/></g>'},st={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M8 12a4 4 0 1 0 8 0a4 4 0 1 0-8 0"/><path d="M16 12v1.5a2.5 2.5 0 0 0 5 0V12a9 9 0 1 0-5.5 8.28"/></g>'},it={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m15 10l-4 4l6 6l4-16l-18 7l4 2l2 6l3-4"/>'},Z={comment:{icon:tt,bgColor:"rgba(239, 246, 255, 1)",color:"rgba(43, 127, 255, 1)"},like:{icon:"👍",bgColor:"rgba(244, 244, 245, 1)",color:"yellow",renderType:"emoji"},follow:{icon:nt,bgColor:"rgba(238, 242, 255, 1)",color:"rgba(97, 95, 255, 1)"},tips:{icon:rt,bgColor:"rgba(254, 252, 232, 1)",color:"rgba(240, 177, 0, 1)"},mention:{icon:st,bgColor:"rgba(244, 244, 245, 1)",color:"rgba(43, 127, 255, 1)"},assign:{icon:it,bgColor:"rgba(244, 244, 245, 1)",color:"rgba(43, 127, 255, 1)"}};de.propTypes={activity:n.oneOf(["comment","like","follow","tips","mention","assign"]).isRequired,size:n.number};function de({activity:e,size:r=32}){const s=Z[e]||Z.comment,i=s.icon;return t.jsx(_,{sx:{bgcolor:s.bgColor,color:s.color,width:r,height:r},children:s.renderType==="emoji"?t.jsx("span",{style:{fontSize:"14px"},children:i}):t.jsx(ne,{icon:i})})}const H={avatar:n.string,fullName:n.string,did:n.string};function W({actor:e,size:r,teamDid:s="",inService:i=!1,showName:l=!1}){const u=D(()=>({...e,avatar:e?.avatar?Ye(e.avatar,s,i):null}),[e,s,i]),m=d=>{e&&(d.stopPropagation(),window.open(We(J(Xe.WELLKNOWN_SERVICE_PATH_PREFIX,"user"),{did:e.did}),"_blank"),d.customPreventRedirect=!0)};return t.jsxs(g,{onClick:m,role:"button",style:{cursor:"pointer"},title:e?.fullName||"",sx:{display:"flex",alignItems:"center",gap:1},children:[u.avatar?t.jsx(Qe,{user:u,showDid:!0,cardType:Ke.AvatarOnly,infoType:Je.Minimal,avatarSize:r,shape:"circle",sx:{width:r,height:r,borderRadius:"100%",overflow:"hidden",transition:"transform 0.2s ease-in-out","&:hover":{transform:"scale(1.1)"}}}):t.jsx(_,{sx:{width:r,height:r}}),l&&t.jsx("span",{children:e?.fullName})]})}W.propTypes={actor:n.shape(H).isRequired,size:n.number.isRequired,teamDid:n.string,inService:n.bool,showName:n.bool};X.propTypes={actors:n.oneOfType([n.shape(H),n.arrayOf(n.shape(H))]).isRequired,size:n.number,maxDisplay:n.number,teamDid:n.string,inService:n.bool,showName:n.bool,avatarFallback:n.node};function X({actors:e,size:r=32,maxDisplay:s=9,teamDid:i="",inService:l=!0,showName:u=!1,avatarFallback:m=null}){const d=D(()=>{const p=Array.isArray(e)?e:[e];return He(p,"did").filter(Boolean)},[e]);return d.length===1||!d.length?t.jsx(W,{actor:d[0],size:r,teamDid:i,inService:l,showName:u}):t.jsx(we,{total:d.length,renderSurplus:p=>p<100?t.jsxs("span",{children:["+",p]}):t.jsx("span",{children:"99+"}),max:s,sx:{justifyContent:"flex-end",height:`${r}px`,".MuiAvatar-root":{width:`${r}px`,height:`${r}px`,fontSize:`${r/2.5}px`,border:0,zIndex:2}},children:d.map((p,y)=>p?.avatar?t.jsx(W,{actor:p,size:r,teamDid:i,inService:l},p?.did||y):m)})}const ee=3;pe.propTypes={notification:n.object.isRequired,isMultiple:n.bool,blocklet:n.object,mountPoint:n.string,avatarFallback:n.node};ue.propTypes={notification:n.object.isRequired,mountPoint:n.string};he.propTypes={items:n.array.isRequired,activity:n.object.isRequired,blocklet:n.object,mountPoint:n.string,viewMoreLink:n.string,avatarFallback:n.node};function ue({notification:e,mountPoint:r=""}){const{activity:s}=e,{type:i,meta:l={}}=s||{},u=oe({activity:s,users:[e?.actorInfo],actors:[e?.activity?.actor],mountPoint:r});return U(s)||!s.type||!s.actor||U(s.target)?null:t.jsxs(g,{children:[t.jsx(q,{variant:"body1",sx:{color:"text.secondary",mb:.5,wordBreak:"break-all"},children:u}),l?t.jsx(ae,{meta:l,type:i}):null]})}function he({items:e,activity:r,blocklet:s,mountPoint:i="",viewMoreLink:l="",avatarFallback:u=null}){const m=F(),{t:d}=Q(),p=D(()=>s?.did||s?.meta?.did||"",[s]),{locale:y}=o.useContext(re),v=D(()=>!U(r.meta)&&Object.values(r.meta).some(a=>a!=null),[r]),b=oe({activity:r,users:e.map(a=>a?.actorInfo),actors:e.map(a=>a?.activity?.actor),mountPoint:i}),k=O(a=>{if(!a.activity)return null;const x=se(a.activity);return x?.metaLink?ie(x?.metaLink)?x?.metaLink:J(i,x.metaLink):null}),C=O((a,x)=>{if(!x)return;const h=k(x);h&&(window.open(h,"_blank"),a.customPreventRedirect=!0)}),$=e.length>ee,w=e.slice(0,ee);return t.jsxs(g,{sx:{width:"100%"},children:[t.jsx(q,{variant:"body1",sx:{color:"text.secondary",mb:3},children:b}),v?t.jsxs(g,{className:"sub-content",sx:{display:"flex",flexDirection:"column",gap:3},children:[w.map(a=>t.jsxs(g,{onClick:x=>C(x,a),sx:{display:"flex",flexDirection:"column",gap:1},children:[t.jsxs(g,{sx:{display:"flex",alignItems:"center",gap:1},children:[V(a)?t.jsx(X,{actors:a.actorInfo,size:32,teamDid:p}):u,t.jsx(q,{variant:"subtitle1",sx:{color:"text.primary"},children:V(a)?a?.actorInfo?.fullName:"System"})," ","·",t.jsx(K,{value:a.createdAt,locale:y,shouldUpdate:!0,style:{color:m.palette.text.secondary,fontSize:"0.875rem",minWidth:"50px",whiteSpace:"nowrap"}})]}),a.activity.meta?t.jsx(g,{sx:{pl:5},children:t.jsx(ae,{meta:a.activity.meta,type:a.activity.type})}):null]},a.id)),$&&l?t.jsx(g,{sx:{mt:1,display:"flex",justifyContent:"center"},children:t.jsxs(ke,{size:"large",variant:"text",component:te,href:l,target:"_blank",rel:"noopener noreferrer",onClick:a=>{a.customPreventRedirect=!0},children:[d("notification.viewMore")," ",t.jsx(ne,{icon:Ee,style:{marginLeft:4}})]})}):null]}):null]})}function pe({notification:e,isMultiple:r=!1,blocklet:s,mountPoint:i="",avatarFallback:l}){const u=D(()=>{if(!e.activity)return null;const m=se(e.activity);return m?.targetLink?ie(m?.targetLink)?m?.targetLink:J(i,m.targetLink):null},[e.activity,i]);return r?t.jsx(he,{items:e.items,activity:e.activity,blocklet:s,mountPoint:i,viewMoreLink:u,avatarFallback:l}):t.jsx(ue,{notification:e,mountPoint:i})}function me({notification:e}){const r=o.useMemo(()=>{const{actions:s,action:i}=e;let l=s??[];return!l.length&&i&&(l=[{name:"Visit",link:i}]),l},[e]);return r.length?t.jsx(g,{sx:{display:"flex",justifyContent:"start",flexWrap:"wrap",alignItems:"center",gap:1},children:r.map((s,i)=>t.jsxs(o.Fragment,{children:[t.jsx(te,{href:s.link,target:"_blank",className:"link",rel:"noopener noreferrer",sx:{fontSize:"15px"},onClick:l=>{l.customPreventRedirect=!0},children:s.name},s.link),i<r.length-1?t.jsx(Ie,{orientation:"vertical",sx:{height:12,borderWidth:"1px"}}):null]},s.link))}):null}me.propTypes={notification:n.object.isRequired};const ot=Me(g)`
1
+ import{r as o}from"./vendor-react-CUXIiAnY.js";import{j as t,b4 as _,W as n,D as F,n as xe,b0 as ye,co as be,cu as ve,cv as je,cw as we,ak as g,T as q,Q as ke,a$ as te,a3 as Ie,s as Me,J as Re,I as Ce,at as Ae}from"./vendor-mui-core-BPQ6AEW_.js";import{a as D,b as O,h as Te}from"./vendor-hooks-fhL5FJET.js";import{V as Q,z as Ne,U as ne,p as re,S as $e}from"./vendor-ux-D507n6h6.js";import{t as Se}from"./server-logo-notext.svg-DHxZ1bRk.js";import{B as ze}from"./bundle-avatar-DGFHJNB_.js";import{a as Le,g as se,i as ie,b as oe,c as V,M as ae,d as Ee,m as De,e as Be,f as Pe,h as qe,j as Ve,k as _e,l as Fe,n as Oe,N as Ue}from"./team-CG74iq-4.js";import{R as He,J as We,C as J,a as U}from"./vendor-utils-BSZ4yJws.js";import{ar as Qe,as as Je,at as Ke,c as Xe,_ as Ge}from"./index-Cx5JU0Ln.js";import{p as Ye}from"./util-B41ySVcQ.js";function le({blocklet:e,style:r={},size:s=40,...i}){const l=Le({blocklet:e,square:!0}),{variant:u}=i;return t.jsx(_,{variant:u||"square",style:Object.assign({backgroundColor:"transparent",width:s,height:s,borderRadius:10},r),...i,children:t.jsx("img",{src:l,alt:"",style:{width:s}})})}le.propTypes={blocklet:n.object.isRequired,style:n.object,size:n.oneOfType([n.number,n.string])};function Ze(e){return e.includes(" ")?new Date(e.replace(" ","T").replace(" ","")).getTime():new Date(e).getTime()}function K({value:e="",shouldUpdate:r=!1,...s}){const{locale:i}=Q(),[l,u]=o.useState(0);if(o.useEffect(()=>{let d;if(r){const p=new Date(e).getTime(),y=Date.now(),v=Math.abs(Math.floor((p-y)/1e3)),b=()=>{u(k=>{const C=Math.random()*1e3;return parseFloat((k+C).toFixed(4))})};v<60?d=setInterval(b,1e3):v<60*60?d=setInterval(b,6e4):d=setInterval(b,36e5)}return()=>{clearInterval(d)}},[e,l,r]),!e)return"-";const m=Ze(e);return t.jsx(Ne,{value:m,locale:i,...s})}K.propTypes={value:n.any,shouldUpdate:n.bool};const et={error:je,warning:ve,info:be,success:ye};ce.propTypes={severity:n.oneOf(["error","warning","info","success"]).isRequired,size:n.number};function ce({severity:e="info",size:r=32}){const s=F(),l=D(()=>({error:s.palette.error.main,warning:s.palette.warning.main,info:s.palette.info.main,success:s.palette.success.main}))[e],u=et[e],m=xe(l,.1);return t.jsx(_,{sx:{width:r,height:r,bgcolor:m,color:l},children:t.jsx(u,{fontSize:"small"})})}const tt={width:24,height:24,body:'<g fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M0 0h24v24H0z"/><path fill="currentColor" d="M5.821 4.91c3.898-2.765 9.469-2.539 13.073.536c3.667 3.127 4.168 8.238 1.152 11.897c-2.842 3.447-7.965 4.583-12.231 2.805l-.232-.101l-4.375.931l-.075.013l-.11.009l-.113-.004l-.044-.005l-.11-.02l-.105-.034l-.1-.044l-.076-.042l-.108-.077l-.081-.074l-.073-.083l-.053-.075l-.065-.115l-.042-.106l-.031-.113l-.013-.075l-.009-.11l.004-.113l.005-.044l.02-.11l.022-.072l1.15-3.451l-.022-.036C.969 12.45 1.97 7.805 5.59 5.079l.23-.168z"/></g>'},nt={width:24,height:24,body:'<g fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M0 0h24v24H0z"/><path fill="currentColor" d="M12 2a5 5 0 1 1-5 5l.005-.217A5 5 0 0 1 12 2zm2 12a5 5 0 0 1 5 5v1a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-1a5 5 0 0 1 5-5h4z"/></g>'},rt={width:24,height:24,body:'<g fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M0 0h24v24H0z"/><path fill="currentColor" d="M17 3.34A10 10 0 1 1 2 12l.005-.324A10 10 0 0 1 17 3.34zM12 6a1 1 0 0 0-1 1a3 3 0 1 0 0 6v2a1.024 1.024 0 0 1-.866-.398l-.068-.101a1 1 0 0 0-1.732.998a3 3 0 0 0 2.505 1.5H11a1 1 0 0 0 .883.994L12 18a1 1 0 0 0 1-1l.176-.005A3 3 0 0 0 13 11V9c.358-.012.671.14.866.398l.068.101a1 1 0 0 0 1.732-.998A3 3 0 0 0 13.161 7H13a1 1 0 0 0-1-1zm1 7a1 1 0 0 1 0 2v-2zm-2-4v2a1 1 0 0 1 0-2z"/></g>'},st={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M8 12a4 4 0 1 0 8 0a4 4 0 1 0-8 0"/><path d="M16 12v1.5a2.5 2.5 0 0 0 5 0V12a9 9 0 1 0-5.5 8.28"/></g>'},it={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m15 10l-4 4l6 6l4-16l-18 7l4 2l2 6l3-4"/>'},Z={comment:{icon:tt,bgColor:"rgba(239, 246, 255, 1)",color:"rgba(43, 127, 255, 1)"},like:{icon:"👍",bgColor:"rgba(244, 244, 245, 1)",color:"yellow",renderType:"emoji"},follow:{icon:nt,bgColor:"rgba(238, 242, 255, 1)",color:"rgba(97, 95, 255, 1)"},tips:{icon:rt,bgColor:"rgba(254, 252, 232, 1)",color:"rgba(240, 177, 0, 1)"},mention:{icon:st,bgColor:"rgba(244, 244, 245, 1)",color:"rgba(43, 127, 255, 1)"},assign:{icon:it,bgColor:"rgba(244, 244, 245, 1)",color:"rgba(43, 127, 255, 1)"}};de.propTypes={activity:n.oneOf(["comment","like","follow","tips","mention","assign"]).isRequired,size:n.number};function de({activity:e,size:r=32}){const s=Z[e]||Z.comment,i=s.icon;return t.jsx(_,{sx:{bgcolor:s.bgColor,color:s.color,width:r,height:r},children:s.renderType==="emoji"?t.jsx("span",{style:{fontSize:"14px"},children:i}):t.jsx(ne,{icon:i})})}const H={avatar:n.string,fullName:n.string,did:n.string};function W({actor:e,size:r,teamDid:s="",inService:i=!1,showName:l=!1}){const u=D(()=>({...e,avatar:e?.avatar?Ye(e.avatar,s,i):null}),[e,s,i]),m=d=>{e&&(d.stopPropagation(),window.open(We(J(Xe.WELLKNOWN_SERVICE_PATH_PREFIX,"user"),{did:e.did}),"_blank"),d.customPreventRedirect=!0)};return t.jsxs(g,{onClick:m,role:"button",style:{cursor:"pointer"},title:e?.fullName||"",sx:{display:"flex",alignItems:"center",gap:1},children:[u.avatar?t.jsx(Qe,{user:u,showDid:!0,cardType:Ke.AvatarOnly,infoType:Je.Minimal,avatarSize:r,shape:"circle",sx:{width:r,height:r,borderRadius:"100%",overflow:"hidden",transition:"transform 0.2s ease-in-out","&:hover":{transform:"scale(1.1)"}}}):t.jsx(_,{sx:{width:r,height:r}}),l&&t.jsx("span",{children:e?.fullName})]})}W.propTypes={actor:n.shape(H).isRequired,size:n.number.isRequired,teamDid:n.string,inService:n.bool,showName:n.bool};X.propTypes={actors:n.oneOfType([n.shape(H),n.arrayOf(n.shape(H))]).isRequired,size:n.number,maxDisplay:n.number,teamDid:n.string,inService:n.bool,showName:n.bool,avatarFallback:n.node};function X({actors:e,size:r=32,maxDisplay:s=9,teamDid:i="",inService:l=!0,showName:u=!1,avatarFallback:m=null}){const d=D(()=>{const p=Array.isArray(e)?e:[e];return He(p,"did").filter(Boolean)},[e]);return d.length===1||!d.length?t.jsx(W,{actor:d[0],size:r,teamDid:i,inService:l,showName:u}):t.jsx(we,{total:d.length,renderSurplus:p=>p<100?t.jsxs("span",{children:["+",p]}):t.jsx("span",{children:"99+"}),max:s,sx:{justifyContent:"flex-end",height:`${r}px`,".MuiAvatar-root":{width:`${r}px`,height:`${r}px`,fontSize:`${r/2.5}px`,border:0,zIndex:2}},children:d.map((p,y)=>p?.avatar?t.jsx(W,{actor:p,size:r,teamDid:i,inService:l},p?.did||y):m)})}const ee=3;pe.propTypes={notification:n.object.isRequired,isMultiple:n.bool,blocklet:n.object,mountPoint:n.string,avatarFallback:n.node};ue.propTypes={notification:n.object.isRequired,mountPoint:n.string};he.propTypes={items:n.array.isRequired,activity:n.object.isRequired,blocklet:n.object,mountPoint:n.string,viewMoreLink:n.string,avatarFallback:n.node};function ue({notification:e,mountPoint:r=""}){const{activity:s}=e,{type:i,meta:l={}}=s||{},u=oe({activity:s,users:[e?.actorInfo],actors:[e?.activity?.actor],mountPoint:r});return U(s)||!s.type||!s.actor||U(s.target)?null:t.jsxs(g,{children:[t.jsx(q,{variant:"body1",sx:{color:"text.secondary",mb:.5,wordBreak:"break-all"},children:u}),l?t.jsx(ae,{meta:l,type:i}):null]})}function he({items:e,activity:r,blocklet:s,mountPoint:i="",viewMoreLink:l="",avatarFallback:u=null}){const m=F(),{t:d}=Q(),p=D(()=>s?.did||s?.meta?.did||"",[s]),{locale:y}=o.useContext(re),v=D(()=>!U(r.meta)&&Object.values(r.meta).some(a=>a!=null),[r]),b=oe({activity:r,users:e.map(a=>a?.actorInfo),actors:e.map(a=>a?.activity?.actor),mountPoint:i}),k=O(a=>{if(!a.activity)return null;const x=se(a.activity);return x?.metaLink?ie(x?.metaLink)?x?.metaLink:J(i,x.metaLink):null}),C=O((a,x)=>{if(!x)return;const h=k(x);h&&(window.open(h,"_blank"),a.customPreventRedirect=!0)}),$=e.length>ee,w=e.slice(0,ee);return t.jsxs(g,{sx:{width:"100%"},children:[t.jsx(q,{variant:"body1",sx:{color:"text.secondary",mb:3},children:b}),v?t.jsxs(g,{className:"sub-content",sx:{display:"flex",flexDirection:"column",gap:3},children:[w.map(a=>t.jsxs(g,{onClick:x=>C(x,a),sx:{display:"flex",flexDirection:"column",gap:1},children:[t.jsxs(g,{sx:{display:"flex",alignItems:"center",gap:1},children:[V(a)?t.jsx(X,{actors:a.actorInfo,size:32,teamDid:p}):u,t.jsx(q,{variant:"subtitle1",sx:{color:"text.primary"},children:V(a)?a?.actorInfo?.fullName:"System"})," ","·",t.jsx(K,{value:a.createdAt,locale:y,shouldUpdate:!0,style:{color:m.palette.text.secondary,fontSize:"0.875rem",minWidth:"50px",whiteSpace:"nowrap"}})]}),a.activity.meta?t.jsx(g,{sx:{pl:5},children:t.jsx(ae,{meta:a.activity.meta,type:a.activity.type})}):null]},a.id)),$&&l?t.jsx(g,{sx:{mt:1,display:"flex",justifyContent:"center"},children:t.jsxs(ke,{size:"large",variant:"text",component:te,href:l,target:"_blank",rel:"noopener noreferrer",onClick:a=>{a.customPreventRedirect=!0},children:[d("notification.viewMore")," ",t.jsx(ne,{icon:Ee,style:{marginLeft:4}})]})}):null]}):null]})}function pe({notification:e,isMultiple:r=!1,blocklet:s,mountPoint:i="",avatarFallback:l}){const u=D(()=>{if(!e.activity)return null;const m=se(e.activity);return m?.targetLink?ie(m?.targetLink)?m?.targetLink:J(i,m.targetLink):null},[e.activity,i]);return r?t.jsx(he,{items:e.items,activity:e.activity,blocklet:s,mountPoint:i,viewMoreLink:u,avatarFallback:l}):t.jsx(ue,{notification:e,mountPoint:i})}function me({notification:e}){const r=o.useMemo(()=>{const{actions:s,action:i}=e;let l=s??[];return!l.length&&i&&(l=[{name:"Visit",link:i}]),l},[e]);return r.length?t.jsx(g,{sx:{display:"flex",justifyContent:"start",flexWrap:"wrap",alignItems:"center",gap:1},children:r.map((s,i)=>t.jsxs(o.Fragment,{children:[t.jsx(te,{href:s.link,target:"_blank",className:"link",rel:"noopener noreferrer",sx:{fontSize:"15px"},onClick:l=>{l.customPreventRedirect=!0},children:s.name},s.link),i<r.length-1?t.jsx(Ie,{orientation:"vertical",sx:{height:12,borderWidth:"1px"}}):null]},s.link))}):null}me.propTypes={notification:n.object.isRequired};const ot=Me(g)`
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  align-items: center;
@@ -1 +1 @@
1
- import{j as o}from"./vendor-mui-core-BPQ6AEW_.js";import"./vendor-react-CUXIiAnY.js";import{S as t}from"./studio-DtnYEBjZ.js";import"./vendor-ux-D507n6h6.js";import"./vendor-utils-BSZ4yJws.js";import"./vendor-hooks-fhL5FJET.js";import"./lottie-web-4koyQiv_.js";import"./index-Xg-It3qI.js";import"./index-CeWTwSLE.js";import"./vendor-arcblock-BL_VyzmH.js";function f(){return o.jsx(t,{children:"Coming soon..."})}export{f as default};
1
+ import{j as o}from"./vendor-mui-core-BPQ6AEW_.js";import"./vendor-react-CUXIiAnY.js";import{S as t}from"./studio-B65PiAI_.js";import"./vendor-ux-D507n6h6.js";import"./vendor-utils-BSZ4yJws.js";import"./vendor-hooks-fhL5FJET.js";import"./lottie-web-4koyQiv_.js";import"./index-Cke5eCl6.js";import"./index-Cx5JU0Ln.js";import"./vendor-arcblock-BL_VyzmH.js";function f(){return o.jsx(t,{children:"Coming soon..."})}export{f as default};
@@ -1,4 +1,4 @@
1
- import{at as fe,j as Y,W as te,J as Ye,bi as Xe,Q as Je,ak as _e,a6 as Le,cO as Ze,y as Fe,bc as We,M as Ue,ck as Qe,z as et}from"./vendor-mui-core-BPQ6AEW_.js";import{u as tt}from"./useLocalStorage-BBhMedc2.js";import{p as De,a as it,d as rt,g as Ne,r as oe}from"./vendor-react-CUXIiAnY.js";import{d as st,n as Re}from"./vendor-utils-BSZ4yJws.js";import{aH as nt,_ as $e,a1 as ot}from"./index-CeWTwSLE.js";import{V as at,n as Ae,b as ht,H as lt}from"./vendor-ux-D507n6h6.js";import{B as ct}from"./bundle-avatar-D3mFZG-3.js";import"./vendor-arcblock-BL_VyzmH.js";import"./vendor-hooks-fhL5FJET.js";import"./lottie-web-4koyQiv_.js";var ye={exports:{}},Be;function dt(){return Be||(Be=1,function(G,V){(function(j,K){G.exports=K()})(globalThis,()=>(()=>{var j={4567:function(R,s,o){var c=this&&this.__decorate||function(e,r,a,f){var p,g=arguments.length,l=g<3?r:f===null?f=Object.getOwnPropertyDescriptor(r,a):f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,r,a,f);else for(var m=e.length-1;m>=0;m--)(p=e[m])&&(l=(g<3?p(l):g>3?p(r,a,l):p(r,a))||l);return g>3&&l&&Object.defineProperty(r,a,l),l},_=this&&this.__param||function(e,r){return function(a,f){r(a,f,e)}};Object.defineProperty(s,"__esModule",{value:!0}),s.AccessibilityManager=void 0;const n=o(9042),d=o(9924),u=o(844),v=o(4725),h=o(2585),t=o(3656);let i=s.AccessibilityManager=class extends u.Disposable{constructor(e,r,a,f){super(),this._terminal=e,this._coreBrowserService=a,this._renderService=f,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=this._coreBrowserService.mainDocument.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=this._coreBrowserService.mainDocument.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let p=0;p<this._terminal.rows;p++)this._rowElements[p]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[p]);if(this._topBoundaryFocusListener=p=>this._handleBoundaryFocus(p,0),this._bottomBoundaryFocusListener=p=>this._handleBoundaryFocus(p,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=this._coreBrowserService.mainDocument.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new d.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(p=>this._handleResize(p.rows))),this.register(this._terminal.onRender(p=>this._refreshRows(p.start,p.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(p=>this._handleChar(p))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
1
+ import{at as fe,j as Y,W as te,J as Ye,bi as Xe,Q as Je,ak as _e,a6 as Le,cO as Ze,y as Fe,bc as We,M as Ue,ck as Qe,z as et}from"./vendor-mui-core-BPQ6AEW_.js";import{u as tt}from"./useLocalStorage-BBhMedc2.js";import{p as De,a as it,d as rt,g as Ne,r as oe}from"./vendor-react-CUXIiAnY.js";import{d as st,n as Re}from"./vendor-utils-BSZ4yJws.js";import{aH as nt,_ as $e,a1 as ot}from"./index-Cx5JU0Ln.js";import{V as at,n as Ae,b as ht,H as lt}from"./vendor-ux-D507n6h6.js";import{B as ct}from"./bundle-avatar-DGFHJNB_.js";import"./vendor-arcblock-BL_VyzmH.js";import"./vendor-hooks-fhL5FJET.js";import"./lottie-web-4koyQiv_.js";var ye={exports:{}},Be;function dt(){return Be||(Be=1,function(G,V){(function(j,K){G.exports=K()})(globalThis,()=>(()=>{var j={4567:function(R,s,o){var c=this&&this.__decorate||function(e,r,a,f){var p,g=arguments.length,l=g<3?r:f===null?f=Object.getOwnPropertyDescriptor(r,a):f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,r,a,f);else for(var m=e.length-1;m>=0;m--)(p=e[m])&&(l=(g<3?p(l):g>3?p(r,a,l):p(r,a))||l);return g>3&&l&&Object.defineProperty(r,a,l),l},_=this&&this.__param||function(e,r){return function(a,f){r(a,f,e)}};Object.defineProperty(s,"__esModule",{value:!0}),s.AccessibilityManager=void 0;const n=o(9042),d=o(9924),u=o(844),v=o(4725),h=o(2585),t=o(3656);let i=s.AccessibilityManager=class extends u.Disposable{constructor(e,r,a,f){super(),this._terminal=e,this._coreBrowserService=a,this._renderService=f,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=this._coreBrowserService.mainDocument.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=this._coreBrowserService.mainDocument.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let p=0;p<this._terminal.rows;p++)this._rowElements[p]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[p]);if(this._topBoundaryFocusListener=p=>this._handleBoundaryFocus(p,0),this._bottomBoundaryFocusListener=p=>this._handleBoundaryFocus(p,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=this._coreBrowserService.mainDocument.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new d.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(p=>this._handleResize(p.rows))),this.register(this._terminal.onRender(p=>this._refreshRows(p.start,p.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(p=>this._handleChar(p))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
2
2
  `))),this.register(this._terminal.onA11yTab(p=>this._handleTab(p))),this.register(this._terminal.onKey(p=>this._handleKey(p.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this.register((0,t.addDisposableDomListener)(document,"selectionchange",()=>this._handleSelectionChange())),this.register(this._coreBrowserService.onDprChange(()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,u.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(e){for(let r=0;r<e;r++)this._handleChar(" ")}_handleChar(e){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,e===`
3
3
  `&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=n.tooMuchOutput)))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(e){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(e)||this._charsToConsume.push(e)}_refreshRows(e,r){this._liveRegionDebouncer.refresh(e,r,this._terminal.rows)}_renderRows(e,r){const a=this._terminal.buffer,f=a.lines.length.toString();for(let p=e;p<=r;p++){const g=a.lines.get(a.ydisp+p),l=[],m=g?.translateToString(!0,void 0,void 0,l)||"",E=(a.ydisp+p+1).toString(),x=this._rowElements[p];x&&(m.length===0?(x.innerText=" ",this._rowColumns.set(x,[0,1])):(x.textContent=m,this._rowColumns.set(x,l)),x.setAttribute("aria-posinset",E),x.setAttribute("aria-setsize",f))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(e,r){const a=e.target,f=this._rowElements[r===0?1:this._rowElements.length-2];if(a.getAttribute("aria-posinset")===(r===0?"1":`${this._terminal.buffer.lines.length}`)||e.relatedTarget!==f)return;let p,g;if(r===0?(p=a,g=this._rowElements.pop(),this._rowContainer.removeChild(g)):(p=this._rowElements.shift(),g=a,this._rowContainer.removeChild(p)),p.removeEventListener("focus",this._topBoundaryFocusListener),g.removeEventListener("focus",this._bottomBoundaryFocusListener),r===0){const l=this._createAccessibilityTreeNode();this._rowElements.unshift(l),this._rowContainer.insertAdjacentElement("afterbegin",l)}else{const l=this._createAccessibilityTreeNode();this._rowElements.push(l),this._rowContainer.appendChild(l)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(r===0?-1:1),this._rowElements[r===0?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}_handleSelectionChange(){if(this._rowElements.length===0)return;const e=document.getSelection();if(!e)return;if(e.isCollapsed)return void(this._rowContainer.contains(e.anchorNode)&&this._terminal.clearSelection());if(!e.anchorNode||!e.focusNode)return void console.error("anchorNode and/or focusNode are null");let r={node:e.anchorNode,offset:e.anchorOffset},a={node:e.focusNode,offset:e.focusOffset};if((r.node.compareDocumentPosition(a.node)&Node.DOCUMENT_POSITION_PRECEDING||r.node===a.node&&r.offset>a.offset)&&([r,a]=[a,r]),r.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(r={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(r.node))return;const f=this._rowElements.slice(-1)[0];if(a.node.compareDocumentPosition(f)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(a={node:f,offset:f.textContent?.length??0}),!this._rowContainer.contains(a.node))return;const p=({node:m,offset:E})=>{const x=m instanceof Text?m.parentNode:m;let L=parseInt(x?.getAttribute("aria-posinset"),10)-1;if(isNaN(L))return console.warn("row is invalid. Race condition?"),null;const b=this._rowColumns.get(x);if(!b)return console.warn("columns is null. Race condition?"),null;let A=E<b.length?b[E]:b.slice(-1)[0]+1;return A>=this._terminal.cols&&(++L,A=0),{row:L,column:A}},g=p(r),l=p(a);if(g&&l){if(g.row>l.row||g.row===l.row&&g.column>=l.column)throw new Error("invalid range");this._terminal.select(g.column,g.row,(l.row-g.row)*this._terminal.cols-g.column+l.column)}}_handleResize(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let r=this._rowContainer.children.length;r<this._terminal.rows;r++)this._rowElements[r]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[r]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const e=this._coreBrowserService.mainDocument.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e])}}_refreshRowDimensions(e){e.style.height=`${this._renderService.dimensions.css.cell.height}px`}};s.AccessibilityManager=i=c([_(1,h.IInstantiationService),_(2,v.ICoreBrowserService),_(3,v.IRenderService)],i)},3614:(R,s)=>{function o(d){return d.replace(/\r?\n/g,"\r")}function c(d,u){return u?"\x1B[200~"+d+"\x1B[201~":d}function _(d,u,v,h){d=c(d=o(d),v.decPrivateModes.bracketedPasteMode&&h.rawOptions.ignoreBracketedPasteMode!==!0),v.triggerDataEvent(d,!0),u.value=""}function n(d,u,v){const h=v.getBoundingClientRect(),t=d.clientX-h.left-10,i=d.clientY-h.top-10;u.style.width="20px",u.style.height="20px",u.style.left=`${t}px`,u.style.top=`${i}px`,u.style.zIndex="1000",u.focus()}Object.defineProperty(s,"__esModule",{value:!0}),s.rightClickHandler=s.moveTextAreaUnderMouseCursor=s.paste=s.handlePasteEvent=s.copyHandler=s.bracketTextForPaste=s.prepareTextForTerminal=void 0,s.prepareTextForTerminal=o,s.bracketTextForPaste=c,s.copyHandler=function(d,u){d.clipboardData&&d.clipboardData.setData("text/plain",u.selectionText),d.preventDefault()},s.handlePasteEvent=function(d,u,v,h){d.stopPropagation(),d.clipboardData&&_(d.clipboardData.getData("text/plain"),u,v,h)},s.paste=_,s.moveTextAreaUnderMouseCursor=n,s.rightClickHandler=function(d,u,v,h,t){n(d,u,v),t&&h.rightClickSelect(d),u.value=h.selectionText,u.select()}},7239:(R,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ColorContrastCache=void 0;const c=o(1505);s.ColorContrastCache=class{constructor(){this._color=new c.TwoKeyMap,this._css=new c.TwoKeyMap}setCss(_,n,d){this._css.set(_,n,d)}getCss(_,n){return this._css.get(_,n)}setColor(_,n,d){this._color.set(_,n,d)}getColor(_,n){return this._color.get(_,n)}clear(){this._color.clear(),this._css.clear()}}},3656:(R,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.addDisposableDomListener=void 0,s.addDisposableDomListener=function(o,c,_,n){o.addEventListener(c,_,n);let d=!1;return{dispose:()=>{d||(d=!0,o.removeEventListener(c,_,n))}}}},3551:function(R,s,o){var c=this&&this.__decorate||function(i,e,r,a){var f,p=arguments.length,g=p<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,r):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(i,e,r,a);else for(var l=i.length-1;l>=0;l--)(f=i[l])&&(g=(p<3?f(g):p>3?f(e,r,g):f(e,r))||g);return p>3&&g&&Object.defineProperty(e,r,g),g},_=this&&this.__param||function(i,e){return function(r,a){e(r,a,i)}};Object.defineProperty(s,"__esModule",{value:!0}),s.Linkifier=void 0;const n=o(3656),d=o(8460),u=o(844),v=o(2585),h=o(4725);let t=s.Linkifier=class extends u.Disposable{get currentLink(){return this._currentLink}constructor(i,e,r,a,f){super(),this._element=i,this._mouseService=e,this._renderService=r,this._bufferService=a,this._linkProviderService=f,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new d.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new d.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,u.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,u.toDisposable)(()=>{this._lastMouseEvent=void 0,this._activeProviderReplies?.clear()})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0})),this.register((0,n.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,n.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(i){this._lastMouseEvent=i;const e=this._positionFromMouseEvent(i,this._element,this._mouseService);if(!e)return;this._isMouseOut=!1;const r=i.composedPath();for(let a=0;a<r.length;a++){const f=r[a];if(f.classList.contains("xterm"))break;if(f.classList.contains("xterm-hover"))return}this._lastBufferCell&&e.x===this._lastBufferCell.x&&e.y===this._lastBufferCell.y||(this._handleHover(e),this._lastBufferCell=e)}_handleHover(i){if(this._activeLine!==i.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(i,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,i)||(this._clearCurrentLink(),this._askForLink(i,!0))}_askForLink(i,e){this._activeProviderReplies&&e||(this._activeProviderReplies?.forEach(a=>{a?.forEach(f=>{f.link.dispose&&f.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=i.y);let r=!1;for(const[a,f]of this._linkProviderService.linkProviders.entries())e?this._activeProviderReplies?.get(a)&&(r=this._checkLinkProviderResult(a,i,r)):f.provideLinks(i.y,p=>{if(this._isMouseOut)return;const g=p?.map(l=>({link:l}));this._activeProviderReplies?.set(a,g),r=this._checkLinkProviderResult(a,i,r),this._activeProviderReplies?.size===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(i.y,this._activeProviderReplies)})}_removeIntersectingLinks(i,e){const r=new Set;for(let a=0;a<e.size;a++){const f=e.get(a);if(f)for(let p=0;p<f.length;p++){const g=f[p],l=g.link.range.start.y<i?0:g.link.range.start.x,m=g.link.range.end.y>i?this._bufferService.cols:g.link.range.end.x;for(let E=l;E<=m;E++){if(r.has(E)){f.splice(p--,1);break}r.add(E)}}}}_checkLinkProviderResult(i,e,r){if(!this._activeProviderReplies)return r;const a=this._activeProviderReplies.get(i);let f=!1;for(let p=0;p<i;p++)this._activeProviderReplies.has(p)&&!this._activeProviderReplies.get(p)||(f=!0);if(!f&&a){const p=a.find(g=>this._linkAtPosition(g.link,e));p&&(r=!0,this._handleNewLink(p))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!r)for(let p=0;p<this._activeProviderReplies.size;p++){const g=this._activeProviderReplies.get(p)?.find(l=>this._linkAtPosition(l.link,e));if(g){r=!0,this._handleNewLink(g);break}}return r}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(i){if(!this._currentLink)return;const e=this._positionFromMouseEvent(i,this._element,this._mouseService);e&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,e)&&this._currentLink.link.activate(i,this._currentLink.link.text)}_clearCurrentLink(i,e){this._currentLink&&this._lastMouseEvent&&(!i||!e||this._currentLink.link.range.start.y>=i&&this._currentLink.link.range.end.y<=e)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,u.disposeArray)(this._linkCacheDisposables))}_handleNewLink(i){if(!this._lastMouseEvent)return;const e=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);e&&this._linkAtPosition(i.link,e)&&(this._currentLink=i,this._currentLink.state={decorations:{underline:i.link.decorations===void 0||i.link.decorations.underline,pointerCursor:i.link.decorations===void 0||i.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,i.link,this._lastMouseEvent),i.link.decorations={},Object.defineProperties(i.link.decorations,{pointerCursor:{get:()=>this._currentLink?.state?.decorations.pointerCursor,set:r=>{this._currentLink?.state&&this._currentLink.state.decorations.pointerCursor!==r&&(this._currentLink.state.decorations.pointerCursor=r,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",r))}},underline:{get:()=>this._currentLink?.state?.decorations.underline,set:r=>{this._currentLink?.state&&this._currentLink?.state?.decorations.underline!==r&&(this._currentLink.state.decorations.underline=r,this._currentLink.state.isHovered&&this._fireUnderlineEvent(i.link,r))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(r=>{if(!this._currentLink)return;const a=r.start===0?0:r.start+1+this._bufferService.buffer.ydisp,f=this._bufferService.buffer.ydisp+1+r.end;if(this._currentLink.link.range.start.y>=a&&this._currentLink.link.range.end.y<=f&&(this._clearCurrentLink(a,f),this._lastMouseEvent)){const p=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);p&&this._askForLink(p,!1)}})))}_linkHover(i,e,r){this._currentLink?.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(e,!0),this._currentLink.state.decorations.pointerCursor&&i.classList.add("xterm-cursor-pointer")),e.hover&&e.hover(r,e.text)}_fireUnderlineEvent(i,e){const r=i.range,a=this._bufferService.buffer.ydisp,f=this._createLinkUnderlineEvent(r.start.x-1,r.start.y-a-1,r.end.x,r.end.y-a-1,void 0);(e?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(f)}_linkLeave(i,e,r){this._currentLink?.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(e,!1),this._currentLink.state.decorations.pointerCursor&&i.classList.remove("xterm-cursor-pointer")),e.leave&&e.leave(r,e.text)}_linkAtPosition(i,e){const r=i.range.start.y*this._bufferService.cols+i.range.start.x,a=i.range.end.y*this._bufferService.cols+i.range.end.x,f=e.y*this._bufferService.cols+e.x;return r<=f&&f<=a}_positionFromMouseEvent(i,e,r){const a=r.getCoords(i,e,this._bufferService.cols,this._bufferService.rows);if(a)return{x:a[0],y:a[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(i,e,r,a,f){return{x1:i,y1:e,x2:r,y2:a,cols:this._bufferService.cols,fg:f}}};s.Linkifier=t=c([_(1,h.IMouseService),_(2,h.IRenderService),_(3,v.IBufferService),_(4,h.ILinkProviderService)],t)},9042:(R,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.tooMuchOutput=s.promptLabel=void 0,s.promptLabel="Terminal input",s.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(R,s,o){var c=this&&this.__decorate||function(h,t,i,e){var r,a=arguments.length,f=a<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,i):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(h,t,i,e);else for(var p=h.length-1;p>=0;p--)(r=h[p])&&(f=(a<3?r(f):a>3?r(t,i,f):r(t,i))||f);return a>3&&f&&Object.defineProperty(t,i,f),f},_=this&&this.__param||function(h,t){return function(i,e){t(i,e,h)}};Object.defineProperty(s,"__esModule",{value:!0}),s.OscLinkProvider=void 0;const n=o(511),d=o(2585);let u=s.OscLinkProvider=class{constructor(h,t,i){this._bufferService=h,this._optionsService=t,this._oscLinkService=i}provideLinks(h,t){const i=this._bufferService.buffer.lines.get(h-1);if(!i)return void t(void 0);const e=[],r=this._optionsService.rawOptions.linkHandler,a=new n.CellData,f=i.getTrimmedLength();let p=-1,g=-1,l=!1;for(let m=0;m<f;m++)if(g!==-1||i.hasContent(m)){if(i.loadCell(m,a),a.hasExtendedAttrs()&&a.extended.urlId){if(g===-1){g=m,p=a.extended.urlId;continue}l=a.extended.urlId!==p}else g!==-1&&(l=!0);if(l||g!==-1&&m===f-1){const E=this._oscLinkService.getLinkData(p)?.uri;if(E){const x={start:{x:g+1,y:h},end:{x:m+(l||m!==f-1?0:1),y:h}};let L=!1;if(!r?.allowNonHttpProtocols)try{const b=new URL(E);["http:","https:"].includes(b.protocol)||(L=!0)}catch{L=!0}L||e.push({text:E,range:x,activate:(b,A)=>r?r.activate(b,A,x):v(0,A),hover:(b,A)=>r?.hover?.(b,A,x),leave:(b,A)=>r?.leave?.(b,A,x)})}l=!1,a.hasExtendedAttrs()&&a.extended.urlId?(g=m,p=a.extended.urlId):(g=-1,p=-1)}}t(e)}};function v(h,t){if(confirm(`Do you want to navigate to ${t}?
4
4
 
@@ -1 +1 @@
1
- import{j as e,ak as p,T as I,W as r,am as O,Q,bO as pe,a6 as fe}from"./vendor-mui-core-BPQ6AEW_.js";import{f as ge,a as ue,b as me,h as he}from"./vendor-hooks-fhL5FJET.js";import{r as X,i as we}from"./vendor-react-CUXIiAnY.js";import{a as xe,a8 as ye,R as ke,c as _,au as Pe,H as $,s as je,av as ve,b as be,a2 as B,aw as Te,ax as Ie}from"./index-CeWTwSLE.js";import{C as A,b as R,J as Ce,c as Le}from"./vendor-utils-BSZ4yJws.js";import{o as _e}from"./vendor-arcblock-BL_VyzmH.js";import{$ as Re,e as We,V as G,B as M,d as Ae,C as Ee,D as Ne,H as V,y as Se,F as z}from"./vendor-ux-D507n6h6.js";import{u as Ue}from"./use-passport-id-B-b-_oYF.js";import{g as J}from"./get-safe-url-DUB5fSqh.js";import{d as W}from"./logger-CjpdOowp.js";import"./lottie-web-4koyQiv_.js";function Y({blocklet:c=window.blocklet}){return e.jsxs(p,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-between"},children:[e.jsx(Re,{variant:"rounded",shape:"square",did:c.appPid,src:c.appLogo,size:80}),e.jsx(I,{component:"h2",variant:"h6",children:c.appName}),e.jsx(We,{did:c.appPid})]})}const De=X.memo(Y);Y.propTypes={blocklet:r.shape({appName:r.string,appLogo:r.string,appPid:r.string})};const qe=()=>window.blocklet?.componentMountPoints?.find(s=>s.did==="z2qaCNvKMv5GjouKdcDWexv6WqtHbpNPQDnAk")?.mountPoint;function Z({children:c=null,cta:s=null,...i}){return e.jsxs(p,{...i,children:[c?e.jsx(p,{sx:{maxHeight:"50vh",overflow:"hidden",position:"relative",":after":{content:'""',position:"absolute",left:0,right:0,bottom:0,height:"80%",background:"linear-gradient(transparent, #fff 85%)"}},children:c}):null,s?e.jsx(p,{sx:{display:"flex",flexDirection:"column",alignItems:"center",py:4,borderRadius:2},children:s}):null]})}Z.propTypes={children:r.node,cta:r.node};function ee({passports:c=[],onConnect:s=()=>{},redirect:i,...y}){const{t:f}=G(),k=qe(),P=a=>{const m=a?.payable;return k&&m?A(k,`/api/redirect/checkout/${m}?redirect=${i}`):null};return e.jsxs(p,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2,minHeight:"100vh",maxWidth:"400px",margin:"auto",paddingBottom:{sx:0,md:15}},children:[e.jsx(De,{}),e.jsx(Z,{...y,cta:e.jsxs(e.Fragment,{children:[e.jsx(I,{variant:"h4",sx:{mx:2,textAlign:"center",fontWeight:"bold",color:"warning.main"},children:f("login.accessLimit.title")}),e.jsx(I,{variant:"body1",sx:{maxWidth:620,mt:2,mx:2,textAlign:"center",color:"gray"},children:f("login.accessLimit.description")}),e.jsx(p,{sx:{display:"flex",flexWrap:"wrap",justifyContent:"center",gap:1,mt:5},children:c?.map(a=>{const m=P(a);return m?e.jsx(O,{title:f("login.accessLimit.buyPassport"),arrow:!0,placement:"top",children:e.jsx(Q,{color:"primary",variant:"contained",endIcon:e.jsx(pe,{}),href:m,target:"_blank",children:a.title||a.name})},a.name):e.jsx(O,{title:f("login.connectWithPassport"),arrow:!0,placement:"top",children:e.jsx(Q,{color:"inherit",variant:"contained",onClick:s,children:a.title||a.name})},a.name)})}),e.jsxs(I,{variant:"body1",sx:{mt:2,color:"grey.400"},children:[e.jsx(p,{component:"span",sx:{display:"inline-block",mr:1},children:f("login.accessLimit.alreadyHavePassport")}),e.jsx(p,{component:"span",sx:{textDecoration:"underline",cursor:"pointer",color:"primary.main"},onClick:s,children:f("common.connect")})]})]})})]})}ee.propTypes={passports:r.arrayOf(r.shape({name:r.string.isRequired,title:r.string,payable:r.string})),onConnect:r.func,onClose:r.func,redirect:r.string.isRequired};function Xe(){const c=X.useRef(null),{session:s}=xe(),{t:i,locale:y}=G(),{getPassportId:f}=Ue(),k=we(),P=M(),a=Ae(),{encryptKey:m,decrypt:ne}=ye(),j=ge(s),{searchParams:o}=new URL(window.location.href),h={passportId:f()},E=o.get("componentId"),N=o.get("authenticated"),te=o.get("sessionToken"),oe=o.get("csrfToken"),ie=o.get("refreshToken"),se=o.get("requiredRoles"),g=o.get("redirect"),d=o.get("forceConnected"),v=o.get("sourceAppPid"),C=o.get("origin"),S=o.get("autoConnectWebview"),U=o.get("popup"),D=o.get("showQuickConnect");let w=o.get("inviter");if(!w&&g)try{w=(g.startsWith("http")?new URL(g):new URL(g,window.location.origin)).searchParams.get("inviter")}catch{}w=w||localStorage.getItem("inviter"),E&&(h.componentId=E),P&&(h.visitorId=P),w&&(h.inviter=w),Le(v)||(v==="null"?h.sourceAppPid=null:v!==null&&(h.sourceAppPid=v));let q=[];try{q=JSON.parse(se)}catch{}const re=async n=>{const t=o.get("fromWallet");W("login page notifyWallet",{data:n,fromWallet:t,"browser.wallet":a.wallet}),n&&String(t)==="1"&&a.wallet&&await Promise.any([z.asyncCall("arcSetToken",n),B(3e3)])},b=n=>n&&(o.get("encrypted")?ne(n):n),H=async n=>{n&&await re(n),setTimeout(()=>{if(g){const t=decodeURIComponent(g);t.startsWith(_.WELLKNOWN_SERVICE_PATH_PREFIX)?k(t,{replace:!0}):window.location.replace(J(t))}else window.location.replace(window.env.pathPrefix||"/")},50)},ce=n=>{const t={did:n.user.did,host:window.location.host,appPid:window.blocklet.appPid,visitorId:M(),sourceAppPid:n.user.sourceAppPid,fullName:n.user.fullName};W("bridge callArc: onLogin",t),z.callArc("onLogin",t)},F=async(n,t)=>{const L=t(n.csrfToken),T=t(n.sessionToken),x=t(n.refreshToken),u=t(n.visitorId);W("login page onLogin",{result:n,decodeSessionToken:T,decodeRefreshToken:x,decodeVisitorId:u}),je(T),ve(L),be(x),n.visitorId&&Se(u),await s.refresh(),await B(100),ce(j.current);const l={};o.get("saveConnect")?(l.connected_did=j.current.user.did,l.connected_pk=j.current.user.pk,l.connected_wallet_os=j.current.walletOS,l.connected_app=Te()):(l.connected_did=o.get("connected_did"),l.connected_pk=o.get("connected_pk"),l.connected_app=o.get("connected_app"),l.connected_wallet_os=o.get("connected_wallet_os")),Ie(l,!0),H({sessionToken:T,refreshToken:x,visitorId:u})},ae=ue(()=>C==="switch-did"?d&&typeof d=="string"?{title:i("login.switchSpecifiedDid.title"),scan:i("login.switchSpecifiedDid.scan",{did:d}),confirm:i("login.switchSpecifiedDid.confirm"),success:i("login.switchSpecifiedDid.success")}:{title:i("login.switchDid.title"),scan:i("login.switchDid.scan"),confirm:i("login.switchDid.confirm"),success:i("login.switchDid.success")}:{title:i("login.connect.title"),scan:i("login.connect.scan"),confirm:i("login.connect.confirm"),success:i("login.connect.success")},[d,C,i]),K=me(()=>{const n=window?.blocklet,t={className:"connect",popup:!1,action:"login",passkeyBehavior:"both",onSuccess:F,onError:le,locale:y,messages:ae,extraParams:h,baseUrl:window.location.origin,prefix:A(window.location.origin,_.WELLKNOWN_SERVICE_PATH_PREFIX,ke)};d&&(t.forceConnected=d,t.extraParams.enableSwitchApp=!1,t.extraParams.forceConnected=d),t.options||(t.options={}),C==="switch-did"?t.options.showQuickConnect=!0:R(D)||([!1,"false"].includes(D)?t.options.showQuickConnect=!1:t.options.showQuickConnect=!0);const L=Ee();Ne()&&(t.extraParams.sourceAppPid=L.appPid);const x=A(window.location.origin,_.WELLKNOWN_SERVICE_PATH_PREFIX,"connect"),u={params:Pe(encodeURIComponent(JSON.stringify(t))),appPid:n?.appPid,appName:n?.appName,locale:y,redirect:window.location.href,_ek_:m};R(S)||(u.autoConnectWebview=S),R(U)||(u.popup=U),u.disableClose=!0;const l=J(Ce(x,u),{allowDomains:null});window.location.href=l});he(()=>{if(o.get("sessionToken")){const n=o.get("visitorId");if(!n){V.error("Unexpected login response from server: visitorId is required");return}F({sessionToken:b(te),csrfToken:b(oe),refreshToken:b(ie),visitorId:b(n)},t=>t)}else!s.user||d&&s.user.did!==d?K():!N&&!o.get("sessionToken")&&H()});const le=n=>{V.error(n.message)},de=o.has("popup");if(s.loading||s.user){if(!N||o.get("sessionToken"))return e.jsxs(e.Fragment,{children:[e.jsx($,{children:e.jsx("title",{children:i("pageTitle.login")})}),e.jsx(_e,{children:de?null:e.jsx(fe,{})})]});const n=g?new URL(g,window.location.origin).href:window.location.href;return e.jsx(ee,{onConnect:K,passports:q,redirect:n})}return e.jsxs(e.Fragment,{children:[e.jsx($,{children:e.jsx("title",{children:i("pageTitle.login")})}),e.jsx(p,{sx:{"box-sizing":"border-box",width:"100%",height:"100vh",position:"relative",display:"flex","flex-direction":"column",".connect":{background:"#fafafa"}},ref:c})]})}export{Xe as default};
1
+ import{j as e,ak as p,T as I,W as r,am as O,Q,bO as pe,a6 as fe}from"./vendor-mui-core-BPQ6AEW_.js";import{f as ge,a as ue,b as me,h as he}from"./vendor-hooks-fhL5FJET.js";import{r as X,i as we}from"./vendor-react-CUXIiAnY.js";import{a as xe,a8 as ye,R as ke,c as _,au as Pe,H as $,s as je,av as ve,b as be,a2 as B,aw as Te,ax as Ie}from"./index-Cx5JU0Ln.js";import{C as A,b as R,J as Ce,c as Le}from"./vendor-utils-BSZ4yJws.js";import{o as _e}from"./vendor-arcblock-BL_VyzmH.js";import{$ as Re,e as We,V as G,B as M,d as Ae,C as Ee,D as Ne,H as V,y as Se,F as z}from"./vendor-ux-D507n6h6.js";import{u as Ue}from"./use-passport-id-B-b-_oYF.js";import{g as J}from"./get-safe-url-DHtEly1m.js";import{d as W}from"./logger-CjpdOowp.js";import"./lottie-web-4koyQiv_.js";function Y({blocklet:c=window.blocklet}){return e.jsxs(p,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-between"},children:[e.jsx(Re,{variant:"rounded",shape:"square",did:c.appPid,src:c.appLogo,size:80}),e.jsx(I,{component:"h2",variant:"h6",children:c.appName}),e.jsx(We,{did:c.appPid})]})}const De=X.memo(Y);Y.propTypes={blocklet:r.shape({appName:r.string,appLogo:r.string,appPid:r.string})};const qe=()=>window.blocklet?.componentMountPoints?.find(s=>s.did==="z2qaCNvKMv5GjouKdcDWexv6WqtHbpNPQDnAk")?.mountPoint;function Z({children:c=null,cta:s=null,...i}){return e.jsxs(p,{...i,children:[c?e.jsx(p,{sx:{maxHeight:"50vh",overflow:"hidden",position:"relative",":after":{content:'""',position:"absolute",left:0,right:0,bottom:0,height:"80%",background:"linear-gradient(transparent, #fff 85%)"}},children:c}):null,s?e.jsx(p,{sx:{display:"flex",flexDirection:"column",alignItems:"center",py:4,borderRadius:2},children:s}):null]})}Z.propTypes={children:r.node,cta:r.node};function ee({passports:c=[],onConnect:s=()=>{},redirect:i,...y}){const{t:f}=G(),k=qe(),P=a=>{const m=a?.payable;return k&&m?A(k,`/api/redirect/checkout/${m}?redirect=${i}`):null};return e.jsxs(p,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2,minHeight:"100vh",maxWidth:"400px",margin:"auto",paddingBottom:{sx:0,md:15}},children:[e.jsx(De,{}),e.jsx(Z,{...y,cta:e.jsxs(e.Fragment,{children:[e.jsx(I,{variant:"h4",sx:{mx:2,textAlign:"center",fontWeight:"bold",color:"warning.main"},children:f("login.accessLimit.title")}),e.jsx(I,{variant:"body1",sx:{maxWidth:620,mt:2,mx:2,textAlign:"center",color:"gray"},children:f("login.accessLimit.description")}),e.jsx(p,{sx:{display:"flex",flexWrap:"wrap",justifyContent:"center",gap:1,mt:5},children:c?.map(a=>{const m=P(a);return m?e.jsx(O,{title:f("login.accessLimit.buyPassport"),arrow:!0,placement:"top",children:e.jsx(Q,{color:"primary",variant:"contained",endIcon:e.jsx(pe,{}),href:m,target:"_blank",children:a.title||a.name})},a.name):e.jsx(O,{title:f("login.connectWithPassport"),arrow:!0,placement:"top",children:e.jsx(Q,{color:"inherit",variant:"contained",onClick:s,children:a.title||a.name})},a.name)})}),e.jsxs(I,{variant:"body1",sx:{mt:2,color:"grey.400"},children:[e.jsx(p,{component:"span",sx:{display:"inline-block",mr:1},children:f("login.accessLimit.alreadyHavePassport")}),e.jsx(p,{component:"span",sx:{textDecoration:"underline",cursor:"pointer",color:"primary.main"},onClick:s,children:f("common.connect")})]})]})})]})}ee.propTypes={passports:r.arrayOf(r.shape({name:r.string.isRequired,title:r.string,payable:r.string})),onConnect:r.func,onClose:r.func,redirect:r.string.isRequired};function Xe(){const c=X.useRef(null),{session:s}=xe(),{t:i,locale:y}=G(),{getPassportId:f}=Ue(),k=we(),P=M(),a=Ae(),{encryptKey:m,decrypt:ne}=ye(),j=ge(s),{searchParams:o}=new URL(window.location.href),h={passportId:f()},E=o.get("componentId"),N=o.get("authenticated"),te=o.get("sessionToken"),oe=o.get("csrfToken"),ie=o.get("refreshToken"),se=o.get("requiredRoles"),g=o.get("redirect"),d=o.get("forceConnected"),v=o.get("sourceAppPid"),C=o.get("origin"),S=o.get("autoConnectWebview"),U=o.get("popup"),D=o.get("showQuickConnect");let w=o.get("inviter");if(!w&&g)try{w=(g.startsWith("http")?new URL(g):new URL(g,window.location.origin)).searchParams.get("inviter")}catch{}w=w||localStorage.getItem("inviter"),E&&(h.componentId=E),P&&(h.visitorId=P),w&&(h.inviter=w),Le(v)||(v==="null"?h.sourceAppPid=null:v!==null&&(h.sourceAppPid=v));let q=[];try{q=JSON.parse(se)}catch{}const re=async n=>{const t=o.get("fromWallet");W("login page notifyWallet",{data:n,fromWallet:t,"browser.wallet":a.wallet}),n&&String(t)==="1"&&a.wallet&&await Promise.any([z.asyncCall("arcSetToken",n),B(3e3)])},b=n=>n&&(o.get("encrypted")?ne(n):n),H=async n=>{n&&await re(n),setTimeout(()=>{if(g){const t=decodeURIComponent(g);t.startsWith(_.WELLKNOWN_SERVICE_PATH_PREFIX)?k(t,{replace:!0}):window.location.replace(J(t))}else window.location.replace(window.env.pathPrefix||"/")},50)},ce=n=>{const t={did:n.user.did,host:window.location.host,appPid:window.blocklet.appPid,visitorId:M(),sourceAppPid:n.user.sourceAppPid,fullName:n.user.fullName};W("bridge callArc: onLogin",t),z.callArc("onLogin",t)},F=async(n,t)=>{const L=t(n.csrfToken),T=t(n.sessionToken),x=t(n.refreshToken),u=t(n.visitorId);W("login page onLogin",{result:n,decodeSessionToken:T,decodeRefreshToken:x,decodeVisitorId:u}),je(T),ve(L),be(x),n.visitorId&&Se(u),await s.refresh(),await B(100),ce(j.current);const l={};o.get("saveConnect")?(l.connected_did=j.current.user.did,l.connected_pk=j.current.user.pk,l.connected_wallet_os=j.current.walletOS,l.connected_app=Te()):(l.connected_did=o.get("connected_did"),l.connected_pk=o.get("connected_pk"),l.connected_app=o.get("connected_app"),l.connected_wallet_os=o.get("connected_wallet_os")),Ie(l,!0),H({sessionToken:T,refreshToken:x,visitorId:u})},ae=ue(()=>C==="switch-did"?d&&typeof d=="string"?{title:i("login.switchSpecifiedDid.title"),scan:i("login.switchSpecifiedDid.scan",{did:d}),confirm:i("login.switchSpecifiedDid.confirm"),success:i("login.switchSpecifiedDid.success")}:{title:i("login.switchDid.title"),scan:i("login.switchDid.scan"),confirm:i("login.switchDid.confirm"),success:i("login.switchDid.success")}:{title:i("login.connect.title"),scan:i("login.connect.scan"),confirm:i("login.connect.confirm"),success:i("login.connect.success")},[d,C,i]),K=me(()=>{const n=window?.blocklet,t={className:"connect",popup:!1,action:"login",passkeyBehavior:"both",onSuccess:F,onError:le,locale:y,messages:ae,extraParams:h,baseUrl:window.location.origin,prefix:A(window.location.origin,_.WELLKNOWN_SERVICE_PATH_PREFIX,ke)};d&&(t.forceConnected=d,t.extraParams.enableSwitchApp=!1,t.extraParams.forceConnected=d),t.options||(t.options={}),C==="switch-did"?t.options.showQuickConnect=!0:R(D)||([!1,"false"].includes(D)?t.options.showQuickConnect=!1:t.options.showQuickConnect=!0);const L=Ee();Ne()&&(t.extraParams.sourceAppPid=L.appPid);const x=A(window.location.origin,_.WELLKNOWN_SERVICE_PATH_PREFIX,"connect"),u={params:Pe(encodeURIComponent(JSON.stringify(t))),appPid:n?.appPid,appName:n?.appName,locale:y,redirect:window.location.href,_ek_:m};R(S)||(u.autoConnectWebview=S),R(U)||(u.popup=U),u.disableClose=!0;const l=J(Ce(x,u),{allowDomains:null});window.location.href=l});he(()=>{if(o.get("sessionToken")){const n=o.get("visitorId");if(!n){V.error("Unexpected login response from server: visitorId is required");return}F({sessionToken:b(te),csrfToken:b(oe),refreshToken:b(ie),visitorId:b(n)},t=>t)}else!s.user||d&&s.user.did!==d?K():!N&&!o.get("sessionToken")&&H()});const le=n=>{V.error(n.message)},de=o.has("popup");if(s.loading||s.user){if(!N||o.get("sessionToken"))return e.jsxs(e.Fragment,{children:[e.jsx($,{children:e.jsx("title",{children:i("pageTitle.login")})}),e.jsx(_e,{children:de?null:e.jsx(fe,{})})]});const n=g?new URL(g,window.location.origin).href:window.location.href;return e.jsx(ee,{onConnect:K,passports:q,redirect:n})}return e.jsxs(e.Fragment,{children:[e.jsx($,{children:e.jsx("title",{children:i("pageTitle.login")})}),e.jsx(p,{sx:{"box-sizing":"border-box",width:"100%",height:"100vh",position:"relative",display:"flex","flex-direction":"column",".connect":{background:"#fafafa"}},ref:c})]})}export{Xe as default};
@@ -1 +1 @@
1
- import{j as e,av as d,ak as r,T as m,aX as p,Q as u}from"./vendor-mui-core-BPQ6AEW_.js";import{g as x,j as f,h}from"./vendor-hooks-fhL5FJET.js";import{u as c}from"./vendor-react-CUXIiAnY.js";import{g as j,c as y,k as w,u as C}from"./index-CeWTwSLE.js";import{V as v}from"./vendor-ux-D507n6h6.js";import{C as k}from"./vendor-utils-BSZ4yJws.js";import"./vendor-arcblock-BL_VyzmH.js";import"./lottie-web-4koyQiv_.js";const M="authorization_response",A=j();function L(){const{t:s}=v(),[n]=c(),a=()=>{window.close()};return h(()=>{const i=n.get("state"),l=n.get("code"),t={type:M,response:{code:l}};if(window.opener)try{const o=new URL(i);window.opener.postMessage(t,o.origin),setTimeout(()=>{window.close()},2e3)}catch(o){console.error("Invalid login caller",o)}}),e.jsx(p,{severity:"success",children:e.jsxs(r,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignContent:"center",gap:1},children:[s("login.needManualClose"),e.jsx(r,{sx:{textAlign:"center"},children:e.jsx(u,{variant:"outlined",size:"small",onClick:a,children:s("login.closeWindow")})})]})})}function b(){const{blocklet:s}=window,[n]=c(),a=n.get("error"),i=n.get("error_description"),l=n.get("state"),t=x({errorMesage:"",loading:!0});f(async()=>{if(a)t.errorMesage=i,t.loading=!1;else try{const g=new URL(l);(await A.federated.getTrustedDomains()).includes(g.hostname)||(t.errorMesage="Invalid login caller")}catch{t.errorMesage="Invalid login caller"}finally{t.loading=!1}},[a,i,l]);const o=k(y.WELLKNOWN_SERVICE_PATH_PREFIX,`/blocklet/logo?&version=${s?.meta?.version||""}`);return e.jsx(d,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh",justifyContent:"center",alignContent:"center"},children:e.jsxs(r,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2,minHeight:"100vh",margin:"auto",paddingBottom:{sx:0,md:15}},children:[e.jsxs(r,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.5},children:[e.jsx(r,{component:"img",src:o,alt:`${s?.appName||"site"} logo`,sx:{width:80}}),e.jsx(m,{variant:"h6",component:"p",children:s?.appName})]}),t.loading?t.errorMesage?e.jsx(w,{error:{message:t.errorMesage}}):e.jsx(L,{}):null,e.jsx(C,{sx:{mt:4}})]})})}export{b as default};
1
+ import{j as e,av as d,ak as r,T as m,aX as p,Q as u}from"./vendor-mui-core-BPQ6AEW_.js";import{g as x,j as f,h}from"./vendor-hooks-fhL5FJET.js";import{u as c}from"./vendor-react-CUXIiAnY.js";import{g as j,c as y,k as w,u as C}from"./index-Cx5JU0Ln.js";import{V as v}from"./vendor-ux-D507n6h6.js";import{C as k}from"./vendor-utils-BSZ4yJws.js";import"./vendor-arcblock-BL_VyzmH.js";import"./lottie-web-4koyQiv_.js";const M="authorization_response",A=j();function L(){const{t:s}=v(),[n]=c(),a=()=>{window.close()};return h(()=>{const i=n.get("state"),l=n.get("code"),t={type:M,response:{code:l}};if(window.opener)try{const o=new URL(i);window.opener.postMessage(t,o.origin),setTimeout(()=>{window.close()},2e3)}catch(o){console.error("Invalid login caller",o)}}),e.jsx(p,{severity:"success",children:e.jsxs(r,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignContent:"center",gap:1},children:[s("login.needManualClose"),e.jsx(r,{sx:{textAlign:"center"},children:e.jsx(u,{variant:"outlined",size:"small",onClick:a,children:s("login.closeWindow")})})]})})}function b(){const{blocklet:s}=window,[n]=c(),a=n.get("error"),i=n.get("error_description"),l=n.get("state"),t=x({errorMesage:"",loading:!0});f(async()=>{if(a)t.errorMesage=i,t.loading=!1;else try{const g=new URL(l);(await A.federated.getTrustedDomains()).includes(g.hostname)||(t.errorMesage="Invalid login caller")}catch{t.errorMesage="Invalid login caller"}finally{t.loading=!1}},[a,i,l]);const o=k(y.WELLKNOWN_SERVICE_PATH_PREFIX,`/blocklet/logo?&version=${s?.meta?.version||""}`);return e.jsx(d,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh",justifyContent:"center",alignContent:"center"},children:e.jsxs(r,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2,minHeight:"100vh",margin:"auto",paddingBottom:{sx:0,md:15}},children:[e.jsxs(r,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.5},children:[e.jsx(r,{component:"img",src:o,alt:`${s?.appName||"site"} logo`,sx:{width:80}}),e.jsx(m,{variant:"h6",component:"p",children:s?.appName})]}),t.loading?t.errorMesage?e.jsx(w,{error:{message:t.errorMesage}}):e.jsx(L,{}):null,e.jsx(C,{sx:{mt:4}})]})})}export{b as default};
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.__toCdnUrl("assets/vendor-ux-DYcPPYq2.css"),window.__toCdnUrl("assets/index-DrVXX4fX.css"),window.__toCdnUrl("assets/index-B5LvOF-F.css")])))=>i.map(i=>d[i]);
2
- import{V as O,q as _,_ as q}from"./vendor-ux-D507n6h6.js";import{r as m}from"./vendor-react-CUXIiAnY.js";import{j as o,ak as u,at as k,W as e}from"./vendor-mui-core-BPQ6AEW_.js";import{n as d,C as z}from"./vendor-utils-BSZ4yJws.js";const C=m.lazy(()=>q(()=>import("./index-Bns8G6yV.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(t=>({default:t.Uploader}))),F="/blocklet/logo/upload",c=[".png",".jpg",".jpeg",".webp",".bmp",".ico"];function U({url:t,height:f=80,width:g="auto",enabled:s=!0,allowSVG:h=!0,type:r,did:a,prefix:b,headers:x=d,aspectRatio:l=1,minWidth:P=256,minHeight:R=256,onUploaded:j=d,children:n=null}){const{t:v,locale:w}=O(),i=m.useRef(null),p=()=>{i.current?.open()},y=()=>{j(),i.current?.close()},E={cursor:s?"pointer":"default","&::after":{content:`"${v("common.switch")}"`}};return o.jsxs(S,{id:`uploader-${a}-${r}`,children:[o.jsx(C,{ref:i,locale:w,popup:!0,onUploadFinish:y,plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:z(b,F,r,a),disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileExts:h?[...c,".svg"]:c,maxFileSize:1024*1024*5,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,autoCropArea:1,aspectRatio:l,initialAspectRatio:l,croppedCanvasOptions:{minWidth:P,minHeight:R}}},tusProps:{headers:x}}),n?o.jsx(u,{onClick:p,children:n}):o.jsx(u,{className:_("uploader-wrapper",s&&"enabled"),sx:E,onClick:p,children:o.jsx("img",{alt:r,src:t,style:{width:g,height:f}})})]},`uploader-${a}-${r}`)}U.propTypes={url:e.string.isRequired,type:e.oneOf(["square","rect","favicon","splash-portrait","splash-landscape","og-image"]).isRequired,did:e.string.isRequired,prefix:e.string.isRequired,headers:e.func,onUploaded:e.func,height:e.number,width:e.any,enabled:e.bool,allowSVG:e.bool,aspectRatio:e.number,minWidth:e.number,minHeight:e.number,children:e.node};const S=k.div`
2
+ import{V as O,q as _,_ as q}from"./vendor-ux-D507n6h6.js";import{r as m}from"./vendor-react-CUXIiAnY.js";import{j as o,ak as u,at as k,W as e}from"./vendor-mui-core-BPQ6AEW_.js";import{n as d,C as z}from"./vendor-utils-BSZ4yJws.js";const C=m.lazy(()=>q(()=>import("./index-DxQFjZlw.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(t=>({default:t.Uploader}))),F="/blocklet/logo/upload",c=[".png",".jpg",".jpeg",".webp",".bmp",".ico"];function U({url:t,height:f=80,width:g="auto",enabled:s=!0,allowSVG:h=!0,type:r,did:a,prefix:b,headers:x=d,aspectRatio:l=1,minWidth:P=256,minHeight:R=256,onUploaded:j=d,children:n=null}){const{t:v,locale:w}=O(),i=m.useRef(null),p=()=>{i.current?.open()},y=()=>{j(),i.current?.close()},E={cursor:s?"pointer":"default","&::after":{content:`"${v("common.switch")}"`}};return o.jsxs(S,{id:`uploader-${a}-${r}`,children:[o.jsx(C,{ref:i,locale:w,popup:!0,onUploadFinish:y,plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:z(b,F,r,a),disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileExts:h?[...c,".svg"]:c,maxFileSize:1024*1024*5,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,autoCropArea:1,aspectRatio:l,initialAspectRatio:l,croppedCanvasOptions:{minWidth:P,minHeight:R}}},tusProps:{headers:x}}),n?o.jsx(u,{onClick:p,children:n}):o.jsx(u,{className:_("uploader-wrapper",s&&"enabled"),sx:E,onClick:p,children:o.jsx("img",{alt:r,src:t,style:{width:g,height:f}})})]},`uploader-${a}-${r}`)}U.propTypes={url:e.string.isRequired,type:e.oneOf(["square","rect","favicon","splash-portrait","splash-landscape","og-image"]).isRequired,did:e.string.isRequired,prefix:e.string.isRequired,headers:e.func,onUploaded:e.func,height:e.number,width:e.any,enabled:e.bool,allowSVG:e.bool,aspectRatio:e.number,minWidth:e.number,minHeight:e.number,children:e.node};const S=k.div`
3
3
  .uploader-wrapper {
4
4
  display: inline-flex;
5
5
  position: relative;