@abtnode/blocklet-services 1.17.8-beta-20260104-120132-cb5b1914 → 1.17.8-beta-20260108-021819-e099f0ca
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AdapterDayjs-DyRP0A_7.js → AdapterDayjs-C1bdndja.js} +1 -1
- package/dist/assets/Community-3AO97CCq.js +1 -0
- package/dist/assets/{Google-Bjq5o7qL.js → Google-JbLVL0lz.js} +1 -1
- package/dist/assets/Holiday-CqSw2e8m.js +1 -0
- package/dist/assets/Meeting-DKbNRI16.js +1 -0
- package/dist/assets/OffSick-BvEREz3_.js +1 -0
- package/dist/assets/WorkingRemotely-DNtYHcSB.js +1 -0
- package/dist/assets/{access-control-Cv1j0YWJ.js → access-control-DMsY0Jfu.js} +1 -1
- package/dist/assets/{actions-Dfiiwkit.js → actions-m1acuA78.js} +1 -1
- package/dist/assets/{add-component-core-8nx00xJP.js → add-component-core-DXBsHpN1.js} +7 -7
- package/dist/assets/add-resource-B1owMSeP.js +1 -0
- package/dist/assets/addon-B42_QFF5.js +14 -0
- package/dist/assets/advanced-BnFynWN7.js +14 -0
- package/dist/assets/aigne-Qq2FBVAW.js +10 -0
- package/dist/assets/api-B24x7kOD.js +1 -0
- package/dist/assets/{appearance-CkrEEbhp.js → appearance-Dnc6HNzY.js} +1 -1
- package/dist/assets/{ar-BukCw0OI.js → ar-BHqjWgUQ.js} +2 -2
- package/dist/assets/arrow-down.svg-7ME6T1BL.js +1 -0
- package/dist/assets/{audit-logs-XPxQHo2y.js → audit-logs-Cfw8JmA4.js} +2 -2
- package/dist/assets/{authorize-ByHCjaXS.js → authorize-B_1efpwx.js} +1 -1
- package/dist/assets/{base-chart-ChBZtUEG.js → base-chart-DT--nPCU.js} +1 -1
- package/dist/assets/base32-r3F0yIbl.js +1 -0
- package/dist/assets/bind-account-Cw-tBmC3.js +1 -0
- package/dist/assets/{branding-khY0G2TO.js → branding-BxEmV2m2.js} +2 -2
- package/dist/assets/{branding-CBzX3Xum.js → branding-CBavw5s2.js} +1 -1
- package/dist/assets/branding-CbYOEW_s.js +1 -0
- package/dist/assets/bundle-avatar-1zs0l21j.js +1 -0
- package/dist/assets/button-LwkniwV9.js +1 -0
- package/dist/assets/{click-to-copy-BEM1P78p.js → click-to-copy-Dk6ZAJOw.js} +1 -1
- package/dist/assets/cloneDeep-rgNCMFod.js +1 -0
- package/dist/assets/{collapse-B7gUzFaX.js → collapse-D72lnPa9.js} +1 -1
- package/dist/assets/{complete-CuyAiV3B.js → complete-CIQgRJri.js} +4 -4
- package/dist/assets/{component-nxxcEAFR.js → component-qZAbczHw.js} +3 -3
- package/dist/assets/{config-DweHAJPq.js → config-BaKRlJau.js} +2 -2
- package/dist/assets/config-CoSaZVwp.js +53 -0
- package/dist/assets/{config-DOcJbRFr.js → config-btuzRTop.js} +1 -1
- package/dist/assets/{config-navigation-BG6durqz.js → config-navigation-BNsZpUQd.js} +8 -8
- package/dist/assets/config-space-BZQrckxG.js +1 -0
- package/dist/assets/{confirm-BRnYfcDD.js → confirm-D6AvlbAp.js} +1 -1
- package/dist/assets/connect-BC85oS0g.js +1 -0
- package/dist/assets/connect-BV6BUhDJ.css +1 -0
- package/dist/assets/connect-Dv4BPfET.js +5 -0
- package/dist/assets/connect-_I5q1wXN.js +5 -0
- package/dist/assets/connect-to-CVH3cw77.js +1 -0
- package/dist/assets/{content-layout-DmSBGGVm.js → content-layout-Dtfb5X6M.js} +1 -1
- package/dist/assets/{create-passport-svg-BKhJ2ufW.js → create-passport-svg-DeDfPZeD.js} +1 -1
- package/dist/assets/createClass-07c4wbGU.js +1 -0
- package/dist/assets/{dashboard-CDOqgUmx.js → dashboard-BQgUp8NI.js} +7 -7
- package/dist/assets/{de-Br0tDZam.js → de-QUGQFv2K.js} +1 -1
- package/dist/assets/{delete-confirm-1vzcMsM2.js → delete-confirm-BLy-Oo1o.js} +1 -1
- package/dist/assets/did-address-Cq16cwTy.js +1 -0
- package/dist/assets/{domain-D75xKDoP.js → domain-BqtauLm5.js} +1 -1
- package/dist/assets/{domain-action-card-BgDPfYMr.js → domain-action-card-nuzd77mn.js} +2 -2
- package/dist/assets/domains-Cg8723ho.js +1 -0
- package/dist/assets/edit.svg-CTE5eATX.js +1 -0
- package/dist/assets/email-CCNEyVGq.js +17 -0
- package/dist/assets/{empty-spinner-BYDonf35.js → empty-spinner-BClWI15N.js} +1 -1
- package/dist/assets/engine-DOYgeVKF.js +1 -0
- package/dist/assets/{es-D_e0gGgp.js → es-C4w6cL07.js} +2 -2
- package/dist/assets/exchange-passport-DR-pKNHM.js +1 -0
- package/dist/assets/{form-BblKAylu.js → form-Bkig0Zr5.js} +3 -3
- package/dist/assets/{form-text-input-C-JBHNfU.js → form-text-input-BsCymY_c.js} +2 -2
- package/dist/assets/{form-wrapper-PT5ZzMQy.js → form-wrapper-pwkkz4we.js} +1 -1
- package/dist/assets/{fr-DXizOT4b.js → fr-Bq3UipEu.js} +2 -2
- package/dist/assets/{fuel-BPg61IpB.js → fuel-tC2bCgpP.js} +1 -1
- package/dist/assets/{gen-access-key-B-PvqBv6.js → gen-access-key-BbtCn0wJ.js} +1 -1
- package/dist/assets/gen-simple-access-key-DbKaLz9m.js +1 -0
- package/dist/assets/get-safe-url-DxqVk96E.js +1 -0
- package/dist/assets/google-icon-vNOJy67F.js +1 -0
- package/dist/assets/{hi-D2FEb_Tx.js → hi-DGZy0DLh.js} +2 -2
- package/dist/assets/{home-CT38dHBL.js → home-BdXWvJM-.js} +1 -1
- package/dist/assets/{id-Dw9URVwP.js → id-DOzDilAf.js} +2 -2
- package/dist/assets/{iframe-D119MMHU.js → iframe-BHP6CYbe.js} +1 -1
- package/dist/assets/index-5IYIk-ZG.js +150 -0
- package/dist/assets/{index-OTENuoZ0.js → index-B0O4cfgn.js} +22 -22
- package/dist/assets/index-B3RkYGd7.js +1 -0
- package/dist/assets/{index-BcIeEF3v.js → index-B7hLDto7.js} +4 -4
- package/dist/assets/{index-BpWFE-ry.js → index-BB8sYq-N.js} +1 -1
- package/dist/assets/index-BEfIUbZC.js +1039 -0
- package/dist/assets/{index-CIC0R_Qc.js → index-BGo7DXlf.js} +1 -1
- package/dist/assets/{index-arhRQhsc.js → index-BHnD9G0G.js} +8 -8
- package/dist/assets/index-BPZITdMW.js +200 -0
- package/dist/assets/{index-BWCHnVga.js → index-BSZ3mQac.js} +2 -2
- package/dist/assets/{index-tfYDa2i6.js → index-BasnkqHA.js} +5 -5
- package/dist/assets/index-BbSDwNE6.js +120 -0
- package/dist/assets/index-Bm1VCAzZ.js +81 -0
- package/dist/assets/{index-bCC4mzZc.js → index-BnOC3Ium.js} +1 -1
- package/dist/assets/index-BoLm67SH.js +1 -0
- package/dist/assets/{index-DSVwCr5p.js → index-BrDWLIA2.js} +2 -2
- package/dist/assets/{index-DoDx-vpV.js → index-Bv2O-NCZ.js} +3 -3
- package/dist/assets/{index-D1f4dwYF.js → index-BvB9yPsA.js} +12 -12
- package/dist/assets/{index-uODjznr3.js → index-C96Fw4Lj.js} +6 -6
- package/dist/assets/{index-DdojJXSn.js → index-CNGNZ6kv.js} +3 -3
- package/dist/assets/{index-D1SIrheh.js → index-CaQuyP_U.js} +1 -1
- package/dist/assets/{index-DGbr3NAq.js → index-Cvt4JvUl.js} +1 -1
- package/dist/assets/{index-CRAuhYSg.js → index-D-O_eFad.js} +1 -1
- package/dist/assets/index-D320ZZ3W.js +281 -0
- package/dist/assets/index-D3L_FG1K.js +1 -0
- package/dist/assets/{index-sBtfsjBo.js → index-DTdf57JC.js} +2 -2
- package/dist/assets/{index-BNAs76qj.js → index-DUL9RfTo.js} +2 -2
- package/dist/assets/{index-CSCCjNba.js → index-DVrxzIzr.js} +1 -1
- package/dist/assets/index-DixUQBnm.js +1 -0
- package/dist/assets/index-DrCTi6nm.css +1 -0
- package/dist/assets/{index-VaUGnCuU.js → index-KUC3HPt0.js} +1 -1
- package/dist/assets/{index-8bzrOXqv.js → index-Ly6A31IO.js} +2 -2
- package/dist/assets/{index-TzwTiNQ7.js → index-dC2vB2_g.js} +1 -1
- package/dist/assets/{index-B0Q9wWG1.js → index-oucqu2vy.js} +1 -1
- package/dist/assets/{index-CGrk0HiP.js → index-yvRJAzQn.js} +1 -1
- package/dist/assets/info-outline-rounded-YiCh4oGg.js +1 -0
- package/dist/assets/invitation-CnuNtRnn.js +177 -0
- package/dist/assets/invitations-D_3NLIPO.js +3 -0
- package/dist/assets/{invite-uHE_P5fP.js → invite-CUVHQCSI.js} +1 -1
- package/dist/assets/{isURL-CRZ7iI7F.js → isURL-vNa-ZfGd.js} +2 -2
- package/dist/assets/issue-passport-Do2LhI-f.js +1 -0
- package/dist/assets/{item-BJSHAMwK.js → item-BabsiwzU.js} +1 -1
- package/dist/assets/{ja-DBxpsmGJ.js → ja-DMq-YXDX.js} +2 -2
- package/dist/assets/{ko-CCAdSyce.js → ko-BrYbXurh.js} +2 -2
- package/dist/assets/landing-page-B5QvkHHO.js +1 -0
- package/dist/assets/{launch-result-message-MNpx7ysR.js → launch-result-message-C04PaKk0.js} +1 -1
- package/dist/assets/{layout-D9M0eiNw.js → layout-DRVZ4L0D.js} +1 -1
- package/dist/assets/list-B22ZyQqz.js +2 -0
- package/dist/assets/{list-DVUI92a2.js → list-BbHzj-7w.js} +3 -3
- package/dist/assets/{list-header-Cl3jykCe.js → list-header-wJF4c6BN.js} +1 -1
- package/dist/assets/localization-BFHoFo4B.js +1 -0
- package/dist/assets/lock.svg-CiT4rEpi.js +1 -0
- package/dist/assets/{log-DbdNMVuv.js → log-BigiLZw2.js} +1 -1
- package/dist/assets/logger-DhW79f4a.js +1 -0
- package/dist/assets/login-DeBY1fPe.js +1 -0
- package/dist/assets/{login-oauth-callback-RLp-7ubu.js → login-oauth-callback-Du-bMipe.js} +1 -1
- package/dist/assets/{logo-uploader-BFMnNkRn.js → logo-uploader-DEFzQY0j.js} +3 -3
- package/dist/assets/{lost-passport-CB5SFq30.js → lost-passport-DkN5GdCK.js} +2 -2
- package/dist/assets/omit-BeaKJrg9.js +1 -0
- package/dist/assets/{open-window-xMdq1GjU.js → open-window-CdadJ5vo.js} +1 -1
- package/dist/assets/{over-due-invoice-payment-DvKFY6t9.js → over-due-invoice-payment-CXZ42RZu.js} +1 -1
- package/dist/assets/{overview-DNVfcZQO.js → overview-a9TXaGnH.js} +3 -3
- package/dist/assets/{page-header-CHAwrgX-.js → page-header-BZv-tfgN.js} +1 -1
- package/dist/assets/passport-C_PAxd9K.js +1 -0
- package/dist/assets/passport-item-BudJHbYX.js +1 -0
- package/dist/assets/{permission-C0rLyhnq.js → permission-CeqEAPPT.js} +1 -1
- package/dist/assets/preferences-ixUbb8gE.js +1 -0
- package/dist/assets/profile-embed-BIwa1Yt3.js +1 -0
- package/dist/assets/provider-icon-CkqIY6iX.js +1 -0
- package/dist/assets/{pt-CrMGrBZ6.js → pt-Dl6732JN.js} +2 -2
- package/dist/assets/publish-resource-BpvxLOlV.js +1 -0
- package/dist/assets/question-mark-circle.svg-GhTaklFN.js +1 -0
- package/dist/assets/{react-beautiful-dnd.esm-BZjy3RlT.js → react-beautiful-dnd.esm-BwIgGfYj.js} +4 -4
- package/dist/assets/{react-stripe.esm-CVZErl8X.js → react-stripe.esm-5Snjx_mn.js} +1 -1
- package/dist/assets/{required-BQln5OcV.js → required-DHjZE3-Y.js} +1 -1
- package/dist/assets/revoke.svg-DUoaRyPZ.js +1 -0
- package/dist/assets/{ru-up3R57Pv.js → ru-CVUeN9AX.js} +2 -2
- package/dist/assets/runtime-TkU2snTc.js +1 -0
- package/dist/assets/{sanitize-yVk8VEIO.js → sanitize-yX1j-ggS.js} +1 -1
- package/dist/assets/sdk-CMvNWVGa.js +1 -0
- package/dist/assets/{section-jXB9AxBb.js → section-CenHBXqj.js} +1 -1
- package/dist/assets/{security-Ch3TxRbd.js → security-Dw0iwARQ.js} +3 -3
- package/dist/assets/server-logo-notext.svg-BLAdvsmP.js +1 -0
- package/dist/assets/{session-5s-U-ruq.js → session-Cin9Rizr.js} +1 -1
- package/dist/assets/setup-Daw0Bdkr.js +24 -0
- package/dist/assets/{shorten-label-C4py9TLA.js → shorten-label-DXFyDHDr.js} +1 -1
- package/dist/assets/simple-select-DtCsUIHR.js +1 -0
- package/dist/assets/{spaces-BE9CZzeJ.js → spaces-DghHe7uP.js} +1 -1
- package/dist/assets/start-SLdZOtVD.js +187 -0
- package/dist/assets/{starting-progress-MyalFKYG.js → starting-progress-BiI8hmaj.js} +2 -2
- package/dist/assets/status-DRNtY6SL.js +1 -0
- package/dist/assets/{step-actions-X2c_czAD.js → step-actions-Cb6B0FCJ.js} +1 -1
- package/dist/assets/{studio-BcQoXvqZ.js → studio-CVfdma-R.js} +1 -1
- package/dist/assets/{switch-BjA8SIAh.js → switch-C49IloVU.js} +1 -1
- package/dist/assets/{switch-control-D2RiXLWV.js → switch-control-npfWE_aC.js} +1 -1
- package/dist/assets/{table-tips-Dgzi4H1y.js → table-tips-DMrnJF8e.js} +1 -1
- package/dist/assets/team-DkV63Yjl.js +146 -0
- package/dist/assets/{th-DdNj2Ao6.js → th-32eBNQes.js} +2 -2
- package/dist/assets/{traffic-CvgJe_3z.js → traffic-C8BReAMz.js} +1 -1
- package/dist/assets/transfer-Dt4V38KL.js +16 -0
- package/dist/assets/unsubscribe-rCcvC6Dj.js +1 -0
- package/dist/assets/{use-app-logo-Cfo-T8ZY.js → use-app-logo-DnCfhAzv.js} +1 -1
- package/dist/assets/{use-mobile-BINJTzMb.js → use-mobile-Bz2ML4Gk.js} +1 -1
- package/dist/assets/{use-mobile-D5clNlrm.js → use-mobile-_vjPRYx2.js} +1 -1
- package/dist/assets/use-server-logo-Da86xnyt.js +1 -0
- package/dist/assets/{use-window-close-4WCUBrSc.js → use-window-close-DUJmRIjM.js} +1 -1
- package/dist/assets/{useAsync-DVl73fmG.js → useAsync-D0xh4Var.js} +1 -1
- package/dist/assets/{useAsync-Dotoxibi.js → useAsync-D6IP8T2e.js} +1 -1
- package/dist/assets/{useAsyncRetry-r8dEPb-x.js → useAsyncRetry-B_bXUXWM.js} +1 -1
- package/dist/assets/{useLocalStorage-Cl1rEjxs.js → useLocalStorage-Brr2PSz9.js} +1 -1
- package/dist/assets/user-center-Cnc61do7.js +125 -0
- package/dist/assets/user-follower-Cc2pWcSL.js +32 -0
- package/dist/assets/{util-CDBgZOAd.js → util-BgLSp_5A.js} +1 -1
- package/dist/assets/{util-BNGEGQGN.js → util-CMCJQTXJ.js} +1 -1
- package/dist/assets/{vendor-arcblock-B1iA4v4a.js → vendor-arcblock-BCP2x3BR.js} +19 -19
- package/dist/assets/{vendor-hooks-qxhUUbW5.js → vendor-hooks-DQAdyHrE.js} +2 -2
- package/dist/assets/{vendor-mui-core-DnR6WYuU.js → vendor-mui-core-CKKG_1TN.js} +2 -2
- package/dist/assets/{vendor-mui-x-CQc01l4r.js → vendor-mui-x-DHGvg6Bj.js} +1 -1
- package/dist/assets/{vendor-utils-CxWN1dT3.js → vendor-utils-CUs2ebe7.js} +17 -17
- package/dist/assets/vendor-ux-DjXlxcvL.js +1560 -0
- package/dist/assets/{vi-HNh41Xxk.js → vi-DF8IinAc.js} +2 -2
- package/dist/assets/{wait-connect-VFnD4S6k.js → wait-connect-TKbZWSFd.js} +1 -1
- package/dist/assets/{wizard-D6nEp8xR.js → wizard-BSaM_cSr.js} +1 -1
- package/dist/assets/wizard-components-BOHnkwWH.js +52 -0
- package/dist/assets/wrap-locale-CFhaO2KZ.js +1 -0
- package/dist/assets/{zh-MM5bvwO_.js → zh-ByJkLAV1.js} +2 -2
- package/dist/assets/{zh-LGxmNDus.js → zh-DG89vJJ6.js} +1 -1
- package/dist/assets/{zh-tw-Dr5DyPwA.js → zh-tw-34G9tsUP.js} +2 -2
- package/dist/index.html +2 -2
- package/package.json +46 -46
- package/dist/assets/Community-CELsDteM.js +0 -1
- package/dist/assets/Holiday-DOCjSYjH.js +0 -1
- package/dist/assets/Meeting-BAXt_LiK.js +0 -1
- package/dist/assets/OffSick-BGEr8Nkc.js +0 -1
- package/dist/assets/WorkingRemotely-BcneAIXG.js +0 -1
- package/dist/assets/add-resource-B3-VwSQg.js +0 -1
- package/dist/assets/addon-DckWyYy3.js +0 -14
- package/dist/assets/advanced-BcLdGbJh.js +0 -14
- package/dist/assets/aigne-Dehkd-7B.js +0 -10
- package/dist/assets/api-FQQlzPOP.js +0 -1
- package/dist/assets/arrow-down.svg-C4FUKwt4.js +0 -1
- package/dist/assets/base32-BPZDlXZz.js +0 -1
- package/dist/assets/bind-account-DtN3r3bu.js +0 -1
- package/dist/assets/branding-Aq4o2tjp.js +0 -1
- package/dist/assets/bundle-avatar-Dtpi1uSw.js +0 -1
- package/dist/assets/button-D6aVYj2n.js +0 -1
- package/dist/assets/cloneDeep-C2rlAYcK.js +0 -1
- package/dist/assets/config-n9Go4CIg.js +0 -53
- package/dist/assets/config-space-DNGDnW7P.js +0 -1
- package/dist/assets/connect-B84DSta0.js +0 -1
- package/dist/assets/connect-CmaOf6IU.js +0 -5
- package/dist/assets/connect-to-BEfFI4oa.js +0 -1
- package/dist/assets/createClass-DXSToV70.js +0 -1
- package/dist/assets/did-address-B3eXeL7H.js +0 -1
- package/dist/assets/domains-BmgTqdar.js +0 -1
- package/dist/assets/edit.svg-RRSklUg-.js +0 -1
- package/dist/assets/email-0rfuUid8.js +0 -17
- package/dist/assets/engine-D-_cbl3F.js +0 -1
- package/dist/assets/exchange-passport-DtpDKfXH.js +0 -1
- package/dist/assets/gen-simple-access-key-BRpJnjDR.js +0 -1
- package/dist/assets/get-safe-url-xl2OarvZ.js +0 -1
- package/dist/assets/index-BMtr5-CV.js +0 -1
- package/dist/assets/index-BODmBNkm.js +0 -200
- package/dist/assets/index-C6oxUE_X.js +0 -281
- package/dist/assets/index-CfA9D2iF.js +0 -1
- package/dist/assets/index-DUo9jXH_.js +0 -81
- package/dist/assets/index-DcjD74XY.js +0 -1
- package/dist/assets/index-DrVXX4fX.css +0 -1
- package/dist/assets/index-E4Hos_Sx.js +0 -150
- package/dist/assets/index-NWCpUGtr.js +0 -1039
- package/dist/assets/index-TG3kf9io.js +0 -120
- package/dist/assets/invitation-CVulfNR5.js +0 -177
- package/dist/assets/invitations-CuhR5Qhr.js +0 -3
- package/dist/assets/issue-passport-CgdZdVEa.js +0 -1
- package/dist/assets/landing-page-Bu1ZaLGu.js +0 -1
- package/dist/assets/list-BYNjj68R.js +0 -2
- package/dist/assets/localization-CZX-M3IK.js +0 -1
- package/dist/assets/lock.svg-BgybwZNe.js +0 -1
- package/dist/assets/logger-Biwe4SzB.js +0 -1
- package/dist/assets/login-DUYsZ42N.js +0 -1
- package/dist/assets/omit-spWLSLbo.js +0 -1
- package/dist/assets/passport-BNRZfcVH.js +0 -1
- package/dist/assets/passport-item-Bf_kXmId.js +0 -1
- package/dist/assets/preferences-XGJx_7ht.js +0 -1
- package/dist/assets/profile-embed-DROgyynT.js +0 -1
- package/dist/assets/publish-resource-C3tnQoPG.js +0 -1
- package/dist/assets/question-mark-circle.svg-CByEVDhb.js +0 -1
- package/dist/assets/revoke.svg-CNl4LAbv.js +0 -1
- package/dist/assets/runtime-DiEn6rZ9.js +0 -1
- package/dist/assets/sdk-C45BrgFy.js +0 -1
- package/dist/assets/server-logo-notext.svg-xZ-i1SpD.js +0 -1
- package/dist/assets/setup-DgF_JFoX.js +0 -24
- package/dist/assets/simple-select-EppOca29.js +0 -1
- package/dist/assets/start-D6EkscL8.js +0 -187
- package/dist/assets/status-vSa6pwrP.js +0 -1
- package/dist/assets/team-D9lFN8Pe.js +0 -146
- package/dist/assets/transfer-IRaap94c.js +0 -16
- package/dist/assets/unsubscribe-7WUPZn-b.js +0 -1
- package/dist/assets/use-server-logo-Cv1kAPgB.js +0 -1
- package/dist/assets/user-center-BoGQKLvn.js +0 -125
- package/dist/assets/user-follower-D8NzTP2C.js +0 -32
- package/dist/assets/vendor-ux-jvAfFAl1.js +0 -1563
- package/dist/assets/wizard-components-CQAhuCn-.js +0 -52
- package/dist/assets/wrap-locale-qgV7mOv6.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as o}from"./vendor-react-CTtPmzVP.js";import{j as t,b2 as _,W as n,D as F,n as xe,bu as ye,br as be,cz as ve,cA as je,cB as we,ak as g,T as q,Q as ke,bb as te,a3 as Ie,s as Me,J as Ce,I as Re,at as Ae}from"./vendor-mui-core-DnR6WYuU.js";import{a as D,b as O,h as Te}from"./vendor-hooks-qxhUUbW5.js";import{V as Q,b2 as Ne,z as ne,aU as re,ba as Se}from"./vendor-ux-jvAfFAl1.js";import{t as $e}from"./server-logo-notext.svg-xZ-i1SpD.js";import{B as ze}from"./bundle-avatar-Dtpi1uSw.js";import{a as Le,g as se,d as ie,u as oe,e as V,M as ae,f as Ee,m as De,h as Be,j as Pe,c as qe,i as Ve,k as _e,l as Fe,n as Oe,N as Ue}from"./team-D9lFN8Pe.js";import{a3 as He,J as We,C as J,a as U}from"./vendor-utils-CxWN1dT3.js";import{ba as Qe,bb as Je,bc as Ke,c as Xe,Z as Ge}from"./index-NWCpUGtr.js";import{p as Ye}from"./util-CDBgZOAd.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 R=Math.random()*1e3;return parseFloat((k+R).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}),R=O((a,x)=>{if(!x)return;const h=k(x);h&&(window.open(h,"_blank"),a.customPreventRedirect=!0)}),S=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=>R(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)),S&&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-CTtPmzVP.js";import{j as t,b2 as F,W as n,D as _,n as xe,bu as ye,br as be,cz as ve,cA as je,cB as we,ak as g,T as q,Q as ke,bb as te,a3 as Ie,s as Me,J as Re,I as Ce,at as Ae}from"./vendor-mui-core-CKKG_1TN.js";import{a as D,b as O,h as Te}from"./vendor-hooks-DQAdyHrE.js";import{V as K,bk as Ne,K as ne,b9 as re,bv as Se}from"./vendor-ux-DjXlxcvL.js";import{t as $e}from"./server-logo-notext.svg-BLAdvsmP.js";import{B as ze}from"./bundle-avatar-1zs0l21j.js";import{a as Le,g as se,d as ie,u as oe,e as V,M as ae,f as Ee,m as De,h as Be,j as Pe,c as qe,i as Ve,k as Fe,l as _e,n as Oe,N as He}from"./team-DkV63Yjl.js";import{a8 as Ue,F as We,z as Q,a as H}from"./vendor-utils-CUs2ebe7.js";import{b4 as Ke,b5 as Qe,b6 as Xe,c as Ge,Z as Je}from"./index-BEfIUbZC.js";import{p as Ye}from"./util-BgLSp_5A.js";function le({blocklet:e,style:r={},size:s=40,...i}){const l=Le({blocklet:e,square:!0}),{variant:u}=i;return t.jsx(F,{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 X({value:e="",shouldUpdate:r=!1,...s}){const{locale:i}=K(),[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})}X.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=_(),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(F,{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(F,{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 U={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(Q(Ge.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(Ke,{user:u,showDid:!0,cardType:Xe.AvatarOnly,infoType:Qe.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(F,{sx:{width:r,height:r}}),l&&t.jsx("span",{children:e?.fullName})]})}W.propTypes={actor:n.shape(U).isRequired,size:n.number.isRequired,teamDid:n.string,inService:n.bool,showName:n.bool};G.propTypes={actors:n.oneOfType([n.shape(U),n.arrayOf(n.shape(U))]).isRequired,size:n.number,maxDisplay:n.number,teamDid:n.string,inService:n.bool,showName:n.bool,avatarFallback:n.node};function G({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 Ue(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 H(s)||!s.type||!s.actor||H(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=_(),{t:d}=K(),p=D(()=>s?.did||s?.meta?.did||"",[s]),{locale:y}=o.useContext(re),v=D(()=>!H(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:Q(i,x.metaLink):null}),C=O((a,x)=>{if(!x)return;const h=k(x);h&&(window.open(h,"_blank"),a.customPreventRedirect=!0)}),S=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(G,{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(X,{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)),S&&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:Q(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;
|
|
@@ -9,7 +9,7 @@ import{r as o}from"./vendor-react-CTtPmzVP.js";import{j as t,b2 as _,W as n,D as
|
|
|
9
9
|
.empty-icon {
|
|
10
10
|
margin: 10px 0;
|
|
11
11
|
}
|
|
12
|
-
`;function fe({children:e=null,...r}){const s=
|
|
12
|
+
`;function fe({children:e=null,...r}){const s=Je(),l=_().palette.mode==="dark";return t.jsxs(ot,{...r,children:[t.jsx("img",{src:`${s.imgPrefix}/${l?"all-done-dark":"all-done-light"}.svg`,alt:"All Done",width:120,height:120,style:{maxHeight:"100%",maxWidth:"100%"},onError:u=>{u.target.style.display="none"}}),t.jsx(g,{className:"empty-content",children:e})]})}fe.propTypes={color:n.string,children:n.any};at.propTypes={data:n.array,blockletMap:n.object,onReadBatch:n.func,inDialog:n.bool,highlightId:n.string,highlight:n.bool,type:n.oneOf(["server","service"])};ge.propTypes={notification:n.object,blocklet:n.object,onReadBatch:n.func,inDialog:n.bool,highlight:n.bool};P.propTypes={blocklet:n.object,size:n.number,showName:n.bool,hideDot:n.bool};function P({blocklet:e,size:r=40,showName:s=!1,hideDot:i=!1}){const l=e?.did||e?.meta?.did||"",u=(e?.alsoKnownAs||[]).concat(e?.appId||e?.appDid||e?.appPid||"");return t.jsxs(g,{className:"component-avatar",sx:{display:"flex",alignItems:"center",gap:i?"8px":"4px"},children:[!i&&t.jsx("span",{className:"dot"}),e?t.jsx(g,{children:u.includes(l)?t.jsx(le,{blocklet:e,size:r,style:{borderRadius:8}}):t.jsx(ze,{blocklet:e,ancestors:e.ancestors??[],size:r,style:{borderRadius:8}})}):t.jsx($e,{width:r,height:r}),s&&t.jsx("span",{className:"component-name",children:e?.meta?.title})]})}function ge({notification:e,blocklet:r,onReadBatch:s=()=>{},inDialog:i=!1,highlight:l}){const{locale:u}=o.useContext(re),m=_(),d=Re(h=>h.breakpoints.down("md")),p=o.useRef(null),y=o.useMemo(()=>qe(e),[e]),v=o.useMemo(()=>Ve(e),[e]),b=o.useMemo(()=>V(e),[e]),k=o.useMemo(()=>e.items||[],[e]),C=o.useMemo(()=>k.length>0,[k]),S=o.useMemo(()=>v?C?k.map(h=>V(h)?h.actorInfo:{did:h.activity?.actor}).filter(Boolean):e.actorInfo??[]:[],[k,e.actorInfo,C,v]),w=o.useMemo(()=>r?.did||r?.meta?.did||"",[r]),a=o.useMemo(()=>Fe(w,window.blocklet),[w]),x=O((h,$)=>{const A=_e(h);if(A.length&&s(A.map(R=>R.id)),$&&!$.customPreventRedirect){const R=Oe(h,a);R&&typeof R=="string"&&window.open(R,"_blank","noopener,noreferrer")}});return t.jsxs(lt,{ref:p,className:"notification-row",id:e.id,isRead:y,inDialog:i,highlight:l,isMd:d,onClick:h=>x(e,h),children:[v?t.jsx(de,{activity:e.activity.type,size:d?24:32}):t.jsx(ce,{severity:e.severity,size:d?24:32}),t.jsxs(g,{className:"notification",sx:{display:"flex",flexDirection:"column",alignItems:"start"},children:[t.jsxs(g,{className:"header",sx:{width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",gap:1,mb:1.5},children:[v&&b?t.jsx(G,{actors:S,teamDid:w,size:d?24:32,avatarFallback:t.jsx(P,{blocklet:r,hideDot:!0,size:d?24:32})}):t.jsx(P,{blocklet:r,hideDot:!0,size:d?24:32}),t.jsx(X,{value:e.createdAt,locale:u,shouldUpdate:!0,style:{color:m.palette.text.secondary,fontSize:"0.875rem",minWidth:"50px",whiteSpace:"nowrap"}})]}),v?t.jsx(pe,{notification:e,isMultiple:C,blocklet:r,mountPoint:a,avatarFallback:t.jsx(P,{blocklet:r,hideDot:!0,size:d?24:32})}):t.jsxs(t.Fragment,{children:[t.jsx(q,{variant:"body1",className:"title",sx:{color:"rgba(24, 24, 27, 1)",mt:0,mb:.5},children:e.title}),t.jsx(He,{notification:e,rows:i?0:2})]}),t.jsx(me,{notification:e})]}),e?.description&&e.severity==="error"&&t.jsx(g,{className:"copy-button",children:t.jsx(Ce,{size:"small",children:t.jsx(Se,{sx:{fontSize:22},content:e?.description||""})})})]})}function at({data:e,blockletMap:r,onReadBatch:s=()=>{},inDialog:i=!1,highlightId:l,highlight:u=!1,type:m="service"}){const{t:d}=K(),p=o.useRef(null),[y,v]=o.useState(!1),[b,k]=o.useState(!0),[C,S]=o.useState(!1),w=o.useRef(new Set),a=o.useRef(new Set),x=o.useRef(null),h=o.useRef(null),$=o.useRef(!1),A=o.useRef(null),R=o.useMemo(()=>i?e?.slice(0,5):e,[i,e]),z=o.useMemo(()=>De(R),[R]),L=o.useMemo(()=>{const c=new Map;return z&&z.length&&z.forEach(f=>{c.set(f.id,f)}),c},[z]);o.useEffect(()=>{const c=()=>{k(document.visibilityState==="visible")};return document.addEventListener("visibilitychange",c),()=>{document.removeEventListener("visibilitychange",c)}},[]);const B=o.useCallback(()=>{if(!i&&w.current.size>0){const c=[];w.current.forEach(f=>{if(a.current.has(f))return;const I=L.get(f);if(I){const{receivers:T=[],items:N=[]}=I;if(T.length&&!T[0].read&&(c.push(f),a.current.add(f),N.length>0&&N.forEach(j=>{const M=j.id;M&&!a.current.has(M)&&(c.push(M),a.current.add(M))}),h.current)){const j=document.getElementById(f);j&&h.current.unobserve(j)}}}),c.length>0&&(s(c),setTimeout(()=>{v(!1)},300)),w.current.clear()}},[i,L,s]),J=o.useCallback(()=>{A.current&&clearTimeout(A.current),A.current=setTimeout(()=>{B()},50)},[B]),E=o.useCallback(()=>{if(i||!p.current||!b)return;h.current&&h.current.disconnect();const c={root:null,rootMargin:"0px",threshold:.5},f=new IntersectionObserver(T=>{y&&T.forEach(N=>{const j=N.target.id;if(a.current.has(j))return;const M=L.get(j);if(M){const{receivers:Y=[]}=M;Y.length&&!Y[0].read&&(N.isIntersecting?(w.current.add(j),J()):w.current.delete(j))}})},c);h.current=f,Array.from(p.current.querySelectorAll(".notification-row")).filter(T=>{const N=T.id;if(a.current.has(N))return!1;const j=L.get(N);if(j){const{receivers:M=[]}=j;return M.length&&!M[0].read}return!1}).forEach(T=>{f.observe(T)}),$.current=!1},[y,i,b,L,J]);return o.useEffect(()=>{i||($.current=!0,h.current&&b&&y&&setTimeout(()=>{E()},0))},[R,y,b,E,i]),o.useEffect(()=>{if(i||!p.current||!b)return;let c=window;if(m==="server"&&(c=document.getElementById("arc__dashboard-main")),!c){const I=document.getElementsByClassName("dashboard-main")[0];I&&(c=I)}if(!c)return;const f=I=>{I.isTrusted&&(y||v(!0),S(!0),x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{S(!1),B(),$.current&&E()},300))};return c.addEventListener("scroll",f,{passive:!0}),()=>{c.removeEventListener("scroll",f),x.current&&clearTimeout(x.current),A.current&&clearTimeout(A.current)}},[i,y,b,B,E,m]),o.useEffect(()=>(i||E(),()=>{h.current&&h.current.disconnect()}),[E,i]),Te(()=>{setTimeout(()=>{const c=Be(p.current),f=Pe(L,c);s(f.map(I=>I.id))},100)}),z?.length?t.jsx(g,{ref:p,sx:{display:"flex",flexDirection:"column",...i?{maxHeight:"calc(-200px + 100vh)",overflow:"auto"}:{}},children:z?.map(c=>{const f=c.source==="system"?r.get(c.entityId||c.sender):r.get(c.componentDid||c.sender);return c?.type?.toLowerCase()==="passthrough"?null:t.jsx(ge,{highlight:u&&l===c.id,inDialog:i,notification:c,blocklet:f,onReadBatch:s},c.id)})}):t.jsx(fe,{children:d("notification.allDone")})}const lt=Ae(g)`
|
|
13
13
|
@keyframes flash-bg {
|
|
14
14
|
0% {
|
|
15
15
|
background-color: ${e=>e.theme.palette.warning.light};
|
|
@@ -100,4 +100,4 @@ import{r as o}from"./vendor-react-CTtPmzVP.js";import{j as t,b2 as _,W as n,D as
|
|
|
100
100
|
text-decoration: none;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
`;export{
|
|
103
|
+
`;export{G as A,le as B,at as N,X as R,P as S,pe as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./vendor-react-CTtPmzVP.js";import{j as e,s as c,ak as a,b6 as i,W as l}from"./vendor-mui-core-
|
|
1
|
+
import"./vendor-react-CTtPmzVP.js";import{j as e,s as c,ak as a,b6 as i,W as l}from"./vendor-mui-core-CKKG_1TN.js";const t=c(a)(({theme:r})=>({backgroundColor:r.palette.background.default,"& .header-row":{display:"flex",justifyContent:"space-between",alignItems:"center",gap:r.spacing(1)},"& .right":{display:"flex",alignItems:"center",gap:r.spacing(1.5)},"& .tabs":{marginTop:r.spacing(2),"& .MuiButton-root":{border:"none",color:"#999","&.active":{color:"#222"}}},"@media (max-width: 900px)":{"& .header-row":{flexDirection:"column",alignItems:"flex-start"},"& .right":{flexDirection:"column",width:"100%",".search-always-open, .toolbar-btn-show, a, button, .MuiButtonGroup-root":{width:"100% !important"}}}}));function d({left:r=null,tabs:n=null,actions:s=null,...o}){return!r&&!n?e.jsx(t,{elevation:0,...o,children:e.jsxs(a,{className:"header-row",children:[e.jsx(a,{className:"left"}),e.jsx(i,{direction:"row",className:"right",children:s})]})}):r&&!n||!r&&n?e.jsx(t,{elevation:0,...o,children:e.jsxs(a,{className:"header-row",children:[e.jsx(a,{className:"left",children:r||n}),e.jsx(i,{direction:"row",className:"right",children:s})]})}):e.jsxs(t,{elevation:0,...o,children:[e.jsxs(a,{className:"header-row",children:[e.jsx(a,{className:"left",children:r}),e.jsx(i,{direction:"row",className:"right",children:s})]}),n&&e.jsx(a,{sx:{mt:2},children:n})]})}d.propTypes={left:l.node,tabs:l.node,actions:l.node};export{d as L};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o}from"./vendor-mui-core-CKKG_1TN.js";import"./vendor-react-CTtPmzVP.js";import{S as t}from"./studio-CVfdma-R.js";import"./vendor-ux-DjXlxcvL.js";import"./vendor-utils-CUs2ebe7.js";import"./vendor-hooks-DQAdyHrE.js";import"./lottie-web-4koyQiv_.js";import"./index-yvRJAzQn.js";import"./index-BEfIUbZC.js";import"./vendor-arcblock-BCP2x3BR.js";function f(){return o.jsx(t,{children:"Coming soon..."})}export{f as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t}from"./vendor-react-CTtPmzVP.js";const r=e=>t.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M11.78 2.25c-2.767 0-5.019 2.271-5.019 5.063v3.037H5.758a2.018 2.018 0 0 0-2.008 2.025v8.1c0 1.117.9 2.025 2.008 2.025h12.045a2.018 2.018 0 0 0 2.007-2.025v-8.1c0-1.117-.9-2.025-2.007-2.025h-1.004V7.313c0-2.792-2.251-5.063-5.019-5.063zm6.023 10.125.002 8.1H5.758v-8.1h12.045zM8.769 10.35V7.313c0-1.675 1.35-3.038 3.011-3.038 1.66 0 3.011 1.363 3.011 3.037v3.038H8.77z"}));export{r as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{at as fe,j as Y,W as te,J as Ye,bV as Xe,Q as Je,ak as _e,a6 as Le,d9 as Ze,y as Fe,bZ as We,M as Ue,c9 as Qe,z as et}from"./vendor-mui-core-
|
|
1
|
+
import{at as fe,j as Y,W as te,J as Ye,bV as Xe,Q as Je,ak as _e,a6 as Le,d9 as Ze,y as Fe,bZ as We,M as Ue,c9 as Qe,z as et}from"./vendor-mui-core-CKKG_1TN.js";import{u as tt}from"./useLocalStorage-Brr2PSz9.js";import{p as De,a as it,d as rt,g as Ne,r as oe,j as st}from"./vendor-react-CTtPmzVP.js";import{d as nt,n as Re}from"./vendor-utils-CUs2ebe7.js";import{cG as ot,Z as $e,Q as at}from"./index-BEfIUbZC.js";import{V as ht,F as Ae,a_ as lt,W as ct}from"./vendor-ux-DjXlxcvL.js";import{B as dt}from"./bundle-avatar-1zs0l21j.js";import"./vendor-arcblock-BCP2x3BR.js";import"./vendor-hooks-DQAdyHrE.js";import"./lottie-web-4koyQiv_.js";var ye={exports:{}},Be;function ut(){return Be||(Be=1,function(G,V){(function(j,K){G.exports=K()})(globalThis,()=>(()=>{var j={4567:function(R,s,o){var d=this&&this.__decorate||function(e,i,a,f){var p,g=arguments.length,l=g<3?i:f===null?f=Object.getOwnPropertyDescriptor(i,a):f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,i,a,f);else for(var m=e.length-1;m>=0;m--)(p=e[m])&&(l=(g<3?p(l):g>3?p(i,a,l):p(i,a))||l);return g>3&&l&&Object.defineProperty(i,a,l),l},_=this&&this.__param||function(e,i){return function(a,f){i(a,f,e)}};Object.defineProperty(s,"__esModule",{value:!0}),s.AccessibilityManager=void 0;const n=o(9042),c=o(9924),u=o(844),v=o(4725),h=o(2585),t=o(3656);let r=s.AccessibilityManager=class extends u.Disposable{constructor(e,i,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 c.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 i=0;i<e;i++)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,i){this._liveRegionDebouncer.refresh(e,i,this._terminal.rows)}_renderRows(e,i){const a=this._terminal.buffer,f=a.lines.length.toString();for(let p=e;p<=i;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,i){const a=e.target,f=this._rowElements[i===0?1:this._rowElements.length-2];if(a.getAttribute("aria-posinset")===(i===0?"1":`${this._terminal.buffer.lines.length}`)||e.relatedTarget!==f)return;let p,g;if(i===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),i===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(i===0?-1:1),this._rowElements[i===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 i={node:e.anchorNode,offset:e.anchorOffset},a={node:e.focusNode,offset:e.focusOffset};if((i.node.compareDocumentPosition(a.node)&Node.DOCUMENT_POSITION_PRECEDING||i.node===a.node&&i.offset>a.offset)&&([i,a]=[a,i]),i.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(i={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(i.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(i),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 i=this._rowContainer.children.length;i<this._terminal.rows;i++)this._rowElements[i]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[i]);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=r=d([_(1,h.IInstantiationService),_(2,v.ICoreBrowserService),_(3,v.IRenderService)],r)},3614:(R,s)=>{function o(c){return c.replace(/\r?\n/g,"\r")}function d(c,u){return u?"\x1B[200~"+c+"\x1B[201~":c}function _(c,u,v,h){c=d(c=o(c),v.decPrivateModes.bracketedPasteMode&&h.rawOptions.ignoreBracketedPasteMode!==!0),v.triggerDataEvent(c,!0),u.value=""}function n(c,u,v){const h=v.getBoundingClientRect(),t=c.clientX-h.left-10,r=c.clientY-h.top-10;u.style.width="20px",u.style.height="20px",u.style.left=`${t}px`,u.style.top=`${r}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=d,s.copyHandler=function(c,u){c.clipboardData&&c.clipboardData.setData("text/plain",u.selectionText),c.preventDefault()},s.handlePasteEvent=function(c,u,v,h){c.stopPropagation(),c.clipboardData&&_(c.clipboardData.getData("text/plain"),u,v,h)},s.paste=_,s.moveTextAreaUnderMouseCursor=n,s.rightClickHandler=function(c,u,v,h,t){n(c,u,v),t&&h.rightClickSelect(c),u.value=h.selectionText,u.select()}},7239:(R,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ColorContrastCache=void 0;const d=o(1505);s.ColorContrastCache=class{constructor(){this._color=new d.TwoKeyMap,this._css=new d.TwoKeyMap}setCss(_,n,c){this._css.set(_,n,c)}getCss(_,n){return this._css.get(_,n)}setColor(_,n,c){this._color.set(_,n,c)}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,d,_,n){o.addEventListener(d,_,n);let c=!1;return{dispose:()=>{c||(c=!0,o.removeEventListener(d,_,n))}}}},3551:function(R,s,o){var d=this&&this.__decorate||function(r,e,i,a){var f,p=arguments.length,g=p<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,i):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(r,e,i,a);else for(var l=r.length-1;l>=0;l--)(f=r[l])&&(g=(p<3?f(g):p>3?f(e,i,g):f(e,i))||g);return p>3&&g&&Object.defineProperty(e,i,g),g},_=this&&this.__param||function(r,e){return function(i,a){e(i,a,r)}};Object.defineProperty(s,"__esModule",{value:!0}),s.Linkifier=void 0;const n=o(3656),c=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(r,e,i,a,f){super(),this._element=r,this._mouseService=e,this._renderService=i,this._bufferService=a,this._linkProviderService=f,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new c.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new c.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(r){this._lastMouseEvent=r;const e=this._positionFromMouseEvent(r,this._element,this._mouseService);if(!e)return;this._isMouseOut=!1;const i=r.composedPath();for(let a=0;a<i.length;a++){const f=i[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(r){if(this._activeLine!==r.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(r,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,r)||(this._clearCurrentLink(),this._askForLink(r,!0))}_askForLink(r,e){this._activeProviderReplies&&e||(this._activeProviderReplies?.forEach(a=>{a?.forEach(f=>{f.link.dispose&&f.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=r.y);let i=!1;for(const[a,f]of this._linkProviderService.linkProviders.entries())e?this._activeProviderReplies?.get(a)&&(i=this._checkLinkProviderResult(a,r,i)):f.provideLinks(r.y,p=>{if(this._isMouseOut)return;const g=p?.map(l=>({link:l}));this._activeProviderReplies?.set(a,g),i=this._checkLinkProviderResult(a,r,i),this._activeProviderReplies?.size===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(r.y,this._activeProviderReplies)})}_removeIntersectingLinks(r,e){const i=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<r?0:g.link.range.start.x,m=g.link.range.end.y>r?this._bufferService.cols:g.link.range.end.x;for(let E=l;E<=m;E++){if(i.has(E)){f.splice(p--,1);break}i.add(E)}}}}_checkLinkProviderResult(r,e,i){if(!this._activeProviderReplies)return i;const a=this._activeProviderReplies.get(r);let f=!1;for(let p=0;p<r;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&&(i=!0,this._handleNewLink(p))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!i)for(let p=0;p<this._activeProviderReplies.size;p++){const g=this._activeProviderReplies.get(p)?.find(l=>this._linkAtPosition(l.link,e));if(g){i=!0,this._handleNewLink(g);break}}return i}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(r){if(!this._currentLink)return;const e=this._positionFromMouseEvent(r,this._element,this._mouseService);e&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,e)&&this._currentLink.link.activate(r,this._currentLink.link.text)}_clearCurrentLink(r,e){this._currentLink&&this._lastMouseEvent&&(!r||!e||this._currentLink.link.range.start.y>=r&&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(r){if(!this._lastMouseEvent)return;const e=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);e&&this._linkAtPosition(r.link,e)&&(this._currentLink=r,this._currentLink.state={decorations:{underline:r.link.decorations===void 0||r.link.decorations.underline,pointerCursor:r.link.decorations===void 0||r.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,r.link,this._lastMouseEvent),r.link.decorations={},Object.defineProperties(r.link.decorations,{pointerCursor:{get:()=>this._currentLink?.state?.decorations.pointerCursor,set:i=>{this._currentLink?.state&&this._currentLink.state.decorations.pointerCursor!==i&&(this._currentLink.state.decorations.pointerCursor=i,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",i))}},underline:{get:()=>this._currentLink?.state?.decorations.underline,set:i=>{this._currentLink?.state&&this._currentLink?.state?.decorations.underline!==i&&(this._currentLink.state.decorations.underline=i,this._currentLink.state.isHovered&&this._fireUnderlineEvent(r.link,i))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(i=>{if(!this._currentLink)return;const a=i.start===0?0:i.start+1+this._bufferService.buffer.ydisp,f=this._bufferService.buffer.ydisp+1+i.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(r,e,i){this._currentLink?.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(e,!0),this._currentLink.state.decorations.pointerCursor&&r.classList.add("xterm-cursor-pointer")),e.hover&&e.hover(i,e.text)}_fireUnderlineEvent(r,e){const i=r.range,a=this._bufferService.buffer.ydisp,f=this._createLinkUnderlineEvent(i.start.x-1,i.start.y-a-1,i.end.x,i.end.y-a-1,void 0);(e?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(f)}_linkLeave(r,e,i){this._currentLink?.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(e,!1),this._currentLink.state.decorations.pointerCursor&&r.classList.remove("xterm-cursor-pointer")),e.leave&&e.leave(i,e.text)}_linkAtPosition(r,e){const i=r.range.start.y*this._bufferService.cols+r.range.start.x,a=r.range.end.y*this._bufferService.cols+r.range.end.x,f=e.y*this._bufferService.cols+e.x;return i<=f&&f<=a}_positionFromMouseEvent(r,e,i){const a=i.getCoords(r,e,this._bufferService.cols,this._bufferService.rows);if(a)return{x:a[0],y:a[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(r,e,i,a,f){return{x1:r,y1:e,x2:i,y2:a,cols:this._bufferService.cols,fg:f}}};s.Linkifier=t=d([_(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 d=this&&this.__decorate||function(h,t,r,e){var i,a=arguments.length,f=a<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,r):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(h,t,r,e);else for(var p=h.length-1;p>=0;p--)(i=h[p])&&(f=(a<3?i(f):a>3?i(t,r,f):i(t,r))||f);return a>3&&f&&Object.defineProperty(t,r,f),f},_=this&&this.__param||function(h,t){return function(r,e){t(r,e,h)}};Object.defineProperty(s,"__esModule",{value:!0}),s.OscLinkProvider=void 0;const n=o(511),c=o(2585);let u=s.OscLinkProvider=class{constructor(h,t,r){this._bufferService=h,this._optionsService=t,this._oscLinkService=r}provideLinks(h,t){const r=this._bufferService.buffer.lines.get(h-1);if(!r)return void t(void 0);const e=[],i=this._optionsService.rawOptions.linkHandler,a=new n.CellData,f=r.getTrimmedLength();let p=-1,g=-1,l=!1;for(let m=0;m<f;m++)if(g!==-1||r.hasContent(m)){if(r.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(!i?.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)=>i?i.activate(b,A,x):v(0,A),hover:(b,A)=>i?.hover?.(b,A,x),leave:(b,A)=>i?.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
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{N as e,O as s}from"./vendor-ux-DjXlxcvL.js";const o=e("blocklet-services");s("blocklet-services");export{o as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e,ak as p,T as I,W as r,am as Q,Q as O,bt as pe,a6 as fe}from"./vendor-mui-core-CKKG_1TN.js";import{f as ue,a as ge,b as me,h as he}from"./vendor-hooks-DQAdyHrE.js";import{r as J,u as we}from"./vendor-react-CTtPmzVP.js";import{u as xe,z as ye,s as ke,c as _,a as Pe,H as $,b as je,d as be,e as ve,f as z,R as Te,g as Ie}from"./index-BEfIUbZC.js";import{z as A,b as R,F as Ce,c as Le}from"./vendor-utils-CUs2ebe7.js";import{o as _e}from"./vendor-arcblock-BCP2x3BR.js";import{Y as Re,a1 as We,V as G,P as M,al as Ae,a7 as Ee,a6 as Ne,W as V,ah as Se,au as B}from"./vendor-ux-DjXlxcvL.js";import{u as Ue}from"./use-passport-id-B-b-_oYF.js";import{g as X}from"./get-safe-url-DxqVk96E.js";import{d as W}from"./logger-DhW79f4a.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=J.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(Q,{title:f("login.accessLimit.buyPassport"),arrow:!0,placement:"top",children:e.jsx(O,{color:"primary",variant:"contained",endIcon:e.jsx(pe,{}),href:m,target:"_blank",children:a.title||a.name})},a.name):e.jsx(Q,{title:f("login.connectWithPassport"),arrow:!0,placement:"top",children:e.jsx(O,{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 Je(){const c=J.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=ue(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"),u=o.get("redirect"),d=o.get("forceConnected"),b=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&&u)try{w=(u.startsWith("http")?new URL(u):new URL(u,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(b)||(b==="null"?h.sourceAppPid=null:b!==null&&(h.sourceAppPid=b));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([B.asyncCall("arcSetToken",n),z(3e3)])},v=n=>n&&(o.get("encrypted")?ne(n):n),H=async n=>{n&&await re(n),setTimeout(()=>{if(u){const t=decodeURIComponent(u);t.startsWith(_.WELLKNOWN_SERVICE_PATH_PREFIX)?k(t,{replace:!0}):window.location.replace(X(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),B.callArc("onLogin",t)},F=async(n,t)=>{const L=t(n.csrfToken),T=t(n.sessionToken),x=t(n.refreshToken),g=t(n.visitorId);W("login page onLogin",{result:n,decodeSessionToken:T,decodeRefreshToken:x,decodeVisitorId:g}),je(T),be(L),ve(x),n.visitorId&&Se(g),await s.refresh(),await z(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:g})},ae=ge(()=>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"),g={params:Pe(encodeURIComponent(JSON.stringify(t))),appPid:n?.appPid,appName:n?.appName,locale:y,redirect:window.location.href,_ek_:m};R(S)||(g.autoConnectWebview=S),R(U)||(g.popup=U),g.disableClose=!0;const l=X(Ce(x,g),{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:v(te),csrfToken:v(oe),refreshToken:v(ie),visitorId:v(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=u?new URL(u,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{Je as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,av as d,ak as r,T as m,aZ as p,Q as u}from"./vendor-mui-core-
|
|
1
|
+
import{j as e,av as d,ak as r,T as m,aZ as p,Q as u}from"./vendor-mui-core-CKKG_1TN.js";import{g as x,l as f,h}from"./vendor-hooks-DQAdyHrE.js";import{j as c}from"./vendor-react-CTtPmzVP.js";import{h as j,c as y,k as w,i as C}from"./index-BEfIUbZC.js";import{V as v}from"./vendor-ux-DjXlxcvL.js";import{z as k}from"./vendor-utils-CUs2ebe7.js";import"./vendor-arcblock-BCP2x3BR.js";import"./lottie-web-4koyQiv_.js";const M="authorization_response",A=j();function L(){const{t}=v(),[n]=c(),a=()=>{window.close()};return h(()=>{const i=n.get("state"),l=n.get("code"),s={type:M,response:{code:l}};if(window.opener)try{const o=new URL(i);window.opener.postMessage(s,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:[t("login.needManualClose"),e.jsx(r,{sx:{textAlign:"center"},children:e.jsx(u,{variant:"outlined",size:"small",onClick:a,children:t("login.closeWindow")})})]})})}function b(){const{blocklet:t}=window,[n]=c(),a=n.get("error"),i=n.get("error_description"),l=n.get("state"),s=x({errorMessage:"",loading:!0});f(async()=>{if(a)s.errorMessage=i,s.loading=!1;else try{const g=new URL(l);(await A.federated.getTrustedDomains()).includes(g.hostname)||(s.errorMessage="Invalid login caller",s.loading=!1)}catch{s.errorMessage="Invalid login caller",s.loading=!1}},[a,i,l]);const o=k(y.WELLKNOWN_SERVICE_PATH_PREFIX,`/blocklet/logo?&version=${t?.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:`${t?.appName||"site"} logo`,sx:{width:80}}),e.jsx(m,{variant:"h6",component:"p",children:t?.appName})]}),s.loading?s.errorMessage?e.jsx(w,{error:{message:s.errorMessage}}):e.jsx(L,{}):null,e.jsx(C,{sx:{mt:4}})]})})}export{b as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.__toCdnUrl("assets/vendor-ux-DYcPPYq2.css"),window.__toCdnUrl("assets/index-
|
|
2
|
-
import{V as O,
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.__toCdnUrl("assets/vendor-ux-DYcPPYq2.css"),window.__toCdnUrl("assets/index-DrCTi6nm.css"),window.__toCdnUrl("assets/index-B5LvOF-F.css")])))=>i.map(i=>d[i]);
|
|
2
|
+
import{V as O,bK as _,_ as z}from"./vendor-ux-DjXlxcvL.js";import{r as m}from"./vendor-react-CTtPmzVP.js";import{j as o,ak as u,at as k,W as e}from"./vendor-mui-core-CKKG_1TN.js";import{n as d,z as q}from"./vendor-utils-CUs2ebe7.js";const F=m.lazy(()=>z(()=>import("./index-Bv2O-NCZ.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(t=>({default:t.Uploader}))),U="/blocklet/logo/upload",c=[".png",".jpg",".jpeg",".webp",".bmp",".ico"];function C({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(F,{ref:i,locale:w,popup:!0,onUploadFinish:y,plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:q(b,U,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}`)}C.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;
|
|
@@ -27,4 +27,4 @@ import{V as O,bo as _,_ as k}from"./vendor-ux-jvAfFAl1.js";import{r as m}from"./
|
|
|
27
27
|
transition: opacity 0.3s ease;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
`;export{
|
|
30
|
+
`;export{C as L};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,at as $,W as v,J as R,ak as r,b2 as
|
|
1
|
+
import{j as e,at as $,W as v,J as R,ak as r,b2 as z,bu as F,T as N,bv as U,bw as X,bx as H,bb as B,av as V,by as G,bz as J,bA as O}from"./vendor-mui-core-CKKG_1TN.js";import{b9 as Q,al as q,F as I,_ as K,b8 as Y,V as Z}from"./vendor-ux-DjXlxcvL.js";import{r as m}from"./vendor-react-CTtPmzVP.js";import{g as ee,x as te}from"./vendor-hooks-DQAdyHrE.js";import{w as D,n as L,H as se,m as oe,b as ae,e as ne,d as re}from"./index-BEfIUbZC.js";import{O as ie}from"./vendor-utils-CUs2ebe7.js";import{N as ce}from"./index-C96Fw4Lj.js";import{W as le}from"./did-address-Cq16cwTy.js";import{w as pe}from"./wrap-locale-CFhaO2KZ.js";import{u as de}from"./use-passport-id-B-b-_oYF.js";import{g as me}from"./get-safe-url-DxqVk96E.js";import{c as ue}from"./passport-C_PAxd9K.js";import"./lottie-web-4koyQiv_.js";import"./vendor-arcblock-BCP2x3BR.js";import"./index-BoLm67SH.js";import"./create-passport-svg-DeDfPZeD.js";function W({list:s=[],width:l=300,height:u=400,cardSpace:p=40,onSelect:i=()=>{},defaultIndex:f=0}){const[x,g]=m.useState(0),[o,d]=m.useState(0),w=m.useRef(null),b=n=>{if(n<0||n>s.length-1)return;g(n);const c=w.current.clientWidth;d(n*(l+p)-(c-l)/2+p*.5),i(n)};m.useEffect(()=>{b(f);const n=c=>c.preventDefault();w.current.addEventListener("touchmove",n,{passive:!1})},[]);let a;const k=n=>{a=n.touches[0].clientX},y=n=>{const c=n.changedTouches[0],j=a-c.clientX;Math.abs(j)>60&&(j>0?b(x+1):b(x-1))};return e.jsx(he,{ref:w,onTouchStart:k,onTouchEnd:y,children:e.jsx("div",{className:"card-container",style:{transform:`translate(${-o}px, 0)`},children:s.map((n,c)=>e.jsx("div",{className:`card-item ${c===x?"selected":""}`,style:{width:l,height:u,margin:p/2},onClick:()=>b(c),children:n.display?e.jsx("div",{className:"card-content",children:e.jsx(ce,{data:n.display,style:{width:"100%",height:"100%"}})}):e.jsx("div",{className:"card-content",dangerouslySetInnerHTML:{__html:n.src}})},n.id))})})}const he=$.div`
|
|
2
2
|
overflow: hidden;
|
|
3
3
|
mask-image: linear-gradient(to left, transparent, black 3%, black 97%, transparent);
|
|
4
4
|
overflow: hidden;
|
|
@@ -32,7 +32,7 @@ import{j as e,at as $,W as v,J as R,ak as r,b2 as U,bu as z,T as N,bv as F,bw as
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
`;W.propTypes={list:v.array,width:v.number,height:v.number,cardSpace:v.number,onSelect:v.func,defaultIndex:v.number};function fe({icon:s,active:l,completed:u}){const p={1:e.jsx(O,{className:"step-icon"}),2:e.jsx(J,{className:"step-icon"}),3:e.jsx(G,{className:"step-icon"})},i=["step-icon-w"];return l&&i.push("step-icon-w--active"),u&&i.push("step-icon-w--completed"),e.jsx("div",{className:i.join(" "),children:p[String(s)]})}function xe({SessionContext:s,webWalletUrl:l,createPassportSvg:u,passportColor:p,onLogin:i,teamDid:f}){const{api:x}=m.useContext(s),g=R(t=>t.breakpoints.down("sm")),o=ee({user:null,passport:null,success:!1,activeStep:0}),d=m.useRef({sessionToken:"",refreshToken:"",csrfToken:""}),{setPassportId:w,clearPassportId:b}=de(),{t:a,locale:k}=m.useContext(Q),{wallet:y}=q(),[n,c]=m.useState(0),{searchParams:j}=new URL(window.location.href),P=()=>{o.activeStep++},A=t=>{o.user=t.user},E=()=>{P()},M=(t,h)=>{t?.passportId&&w(t.passportId),t?.sessionToken&&(d.current.sessionToken=h(t.sessionToken)),t?.refreshToken&&(d.current.refreshToken=h(t.refreshToken)),t?.csrfToken&&(d.current.csrfToken=h(t.csrfToken)),o.success=!0,P()},T=async()=>{if(y&&L()){K(()=>import("./index-m1ZQT0sU.js").then(h=>h.i),[],import.meta.url).then(h=>{h.call("arcClosePage")});return}ie(i)&&i({sessionToken:d.current.sessionToken,refreshToken:d.current.refreshToken,csrfToken:d.current.csrfToken});const t=j.get("redirect");if(t){window.location.replace(me(t));return}b(),window.location.replace("/")},_=t=>{o.passport=t.target.value},[S]=te({leftTime:n,onEnd:()=>{T()}}),C=[{label:a("lostPassport.recoverPassport"),content:()=>{if(!o.user){const t=j.get("scope")||"passport";return e.jsx(D,{popup:!0,open:!0,hideCloseButton:!0,className:"connect",action:"lost-passport-list",forceConnected:!1,autoConnect:!1,checkFn:x.get,checkTimeout:10*60*1e3,webWalletUrl:l,onSuccess:A,locale:k,messages:{title:a("lostPassport.recoverDialog.title"),scan:a("lostPassport.recoverDialog.scan"),confirm:a("lostPassport.recoverDialog.confirm"),success:a("lostPassport.recoverDialog.success")},extraParams:{scope:t}})}return e.jsxs(r,{className:"select-passport",children:[e.jsxs(r,{className:"user-info",sx:{my:1,display:"flex",alignItems:"center"},children:[e.jsx(
|
|
35
|
+
`;W.propTypes={list:v.array,width:v.number,height:v.number,cardSpace:v.number,onSelect:v.func,defaultIndex:v.number};function fe({icon:s,active:l,completed:u}){const p={1:e.jsx(O,{className:"step-icon"}),2:e.jsx(J,{className:"step-icon"}),3:e.jsx(G,{className:"step-icon"})},i=["step-icon-w"];return l&&i.push("step-icon-w--active"),u&&i.push("step-icon-w--completed"),e.jsx("div",{className:i.join(" "),children:p[String(s)]})}function xe({SessionContext:s,webWalletUrl:l,createPassportSvg:u,passportColor:p,onLogin:i,teamDid:f}){const{api:x}=m.useContext(s),g=R(t=>t.breakpoints.down("sm")),o=ee({user:null,passport:null,success:!1,activeStep:0}),d=m.useRef({sessionToken:"",refreshToken:"",csrfToken:""}),{setPassportId:w,clearPassportId:b}=de(),{t:a,locale:k}=m.useContext(Q),{wallet:y}=q(),[n,c]=m.useState(0),{searchParams:j}=new URL(window.location.href),P=()=>{o.activeStep++},A=t=>{o.user=t.user},E=()=>{P()},M=(t,h)=>{t?.passportId&&w(t.passportId),t?.sessionToken&&(d.current.sessionToken=h(t.sessionToken)),t?.refreshToken&&(d.current.refreshToken=h(t.refreshToken)),t?.csrfToken&&(d.current.csrfToken=h(t.csrfToken)),o.success=!0,P()},T=async()=>{if(y&&L()){K(()=>import("./index-m1ZQT0sU.js").then(h=>h.i),[],import.meta.url).then(h=>{h.call("arcClosePage")});return}ie(i)&&i({sessionToken:d.current.sessionToken,refreshToken:d.current.refreshToken,csrfToken:d.current.csrfToken});const t=j.get("redirect");if(t){window.location.replace(me(t));return}b(),window.location.replace("/")},_=t=>{o.passport=t.target.value},[S]=te({leftTime:n,onEnd:()=>{T()}}),C=[{label:a("lostPassport.recoverPassport"),content:()=>{if(!o.user){const t=j.get("scope")||"passport";return e.jsx(D,{popup:!0,open:!0,hideCloseButton:!0,className:"connect",action:"lost-passport-list",forceConnected:!1,autoConnect:!1,checkFn:x.get,checkTimeout:10*60*1e3,webWalletUrl:l,onSuccess:A,locale:k,messages:{title:a("lostPassport.recoverDialog.title"),scan:a("lostPassport.recoverDialog.scan"),confirm:a("lostPassport.recoverDialog.confirm"),success:a("lostPassport.recoverDialog.success")},extraParams:{scope:t}})}return e.jsxs(r,{className:"select-passport",children:[e.jsxs(r,{className:"user-info",sx:{my:1,display:"flex",alignItems:"center"},children:[e.jsx(z,{src:o.user.avatar,style:{width:48,height:48,backgroundColor:"transparent",marginRight:16}}),e.jsxs(r,{children:[e.jsx(r,{className:"name",children:o.user.fullName}),e.jsx(r,{className:"did",sx:{mt:1},children:e.jsx(le,{responsive:!g,compact:g,did:o.user.did})})]})]}),e.jsx(r,{children:e.jsx(W,{width:g?180:230,height:g?240:306,cardSpace:24,list:o.user.passportTypes.map(t=>({src:u({scope:t.scope,role:t.role,title:t.scope==="kyc"?t.name:t.title,issuer:t.issuer.name,issuerDid:t.issuer.id,ownerDid:o.user.did,ownerName:o.user.fullName,ownerAvatarUrl:o.user.avatar,preferredColor:p||"auto",extra:t.scope==="kyc"?{key:"Email",value:t.name}:void 0}),name:t.title,id:t.id,display:t.display})),onSelect:t=>_({target:{value:o.user.passportTypes[t].id}}),defaultIndex:0})}),e.jsx(r,{sx:{textAlign:"center"},children:e.jsx(I,{variant:"contained",color:"primary",onClick:()=>E(),disabled:!o.passport,children:a("common.next")})})]})}},{label:a("lostPassport.receivePassport"),content:()=>{const t={receiverDid:o.user.did,passportId:o.passport,teamDid:f||window?.blocklet?.did};return e.jsx(D,{popup:!0,open:!0,hideCloseButton:!0,className:"connect",action:"lost-passport-issue",checkFn:x.get,checkTimeout:10*60*1e3,webWalletUrl:l,onSuccess:M,forceConnected:!1,locale:k,messages:{title:`${a("lostPassport.receiveDialog.title")}`,scan:a("lostPassport.receiveDialog.scan"),confirm:a("lostPassport.receiveDialog.confirm"),success:a("lostPassport.receiveDialog.success")},extraParams:t})}},{label:a("common.complete"),content:()=>(n===0&&c(3e3),e.jsxs(r,{sx:{textAlign:"center"},children:[e.jsx(r,{sx:{mb:3,color:"success.main"},children:e.jsx(F,{style:{fontSize:60}})}),e.jsx(N,{component:"p",variant:"body1",className:"subheader",children:a("issuePassport.dialog.success")}),e.jsx(N,{component:"p",variant:"body2",color:"gray",children:y&&L()?a("issuePassport.dialog.autoClose",{seconds:Math.round(S/1e3)}):a("issuePassport.dialog.autoJump",{seconds:Math.round(S/1e3)})}),e.jsx(I,{style:{marginTop:40},variant:"contained",color:"primary",onClick:T,children:a("issuePassport.dialog.loginWithPassport")})]}))}];return e.jsx(ge,{children:e.jsxs(r,{className:"stepper",children:[e.jsx(U,{className:"stepper-progress",alternativeLabel:!0,activeStep:o.activeStep,children:C.map(({label:t})=>e.jsx(X,{children:e.jsx(H,{slots:{stepIcon:fe},children:t})},t))}),e.jsx(r,{className:"stepper-content",children:C[o.activeStep].content()}),!o.success&&e.jsx(r,{sx:{textAlign:"center",fontSize:12},children:e.jsx(B,{href:"/",sx:{color:"#4598FA",textDecoration:"none"},children:a("lostPassport.return")})})]})})}const ge=$(V)`
|
|
36
36
|
padding-top: 46px;
|
|
37
37
|
padding-bottom: 46px;
|
|
38
38
|
height: 100%;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e}from"./vendor-react-CTtPmzVP.js";import{au as r}from"./vendor-utils-CUs2ebe7.js";const t=e(r);export{t as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s}from"./vendor-mui-core-
|
|
1
|
+
import{j as s}from"./vendor-mui-core-CKKG_1TN.js";import{r as e}from"./vendor-react-CTtPmzVP.js";import{g as m}from"./get-safe-url-DxqVk96E.js";import"./index-BEfIUbZC.js";import"./vendor-ux-DjXlxcvL.js";import"./vendor-utils-CUs2ebe7.js";import"./vendor-hooks-DQAdyHrE.js";import"./lottie-web-4koyQiv_.js";import"./vendor-arcblock-BCP2x3BR.js";function S(){const r=e.useRef(null),n=e.useRef(Date.now());return e.useEffect(()=>{const t=`open-window-url-${new URLSearchParams(window.location.search).get("key")}`;return r.current=setInterval(()=>{if(Date.now()-n.current>10*1e3){localStorage.removeItem(t),clearInterval(r.current);return}const o=localStorage.getItem(t);if(o)try{const{url:a,time:i}=JSON.parse(o);localStorage.removeItem(t),Date.now()-i<10*1e3&&(window.location.href=m(a,{allowDomains:null}))}catch{}},200),()=>clearInterval(r.current)},[]),s.jsx("div",{})}export{S as default};
|
package/dist/assets/{over-due-invoice-payment-DvKFY6t9.js → over-due-invoice-payment-CXZ42RZu.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as ge,j as t,b6 as h,aZ as ie,Q as
|
|
1
|
+
import{D as ge,j as t,b6 as h,aZ as ie,Q as M,T as k,bu as Ce}from"./vendor-mui-core-CKKG_1TN.js";import{r as d}from"./vendor-react-CTtPmzVP.js";import{V as je,al as Se,a_ as ke,W as x}from"./vendor-ux-DjXlxcvL.js";import{z as w,d as we}from"./vendor-utils-CUs2ebe7.js";import{p as Pe}from"./vendor-hooks-DQAdyHrE.js";import{ap as De,aq as q,ar as Re,as as Ee,at as z,au as $e,av as _e,aw as Te,ax as ce,ay as Ie}from"./index-BEfIUbZC.js";const H=async r=>{if(!r.subscriptionId&&!r.customerId)throw new Error("Either subscriptionId or customerId must be provided");let f;return r.subscriptionId?f=`/api/subscriptions/${r.subscriptionId}/overdue/invoices`:f=`/api/customers/${r.customerId}/overdue/invoices`,(await $e.get(r.authToken?w(f,`?authToken=${r.authToken}`):f)).data};function Oe({subscriptionId:r=void 0,customerId:f=void 0,mode:O="default",dialogProps:g={open:!0},children:P=void 0,onPaid:W=()=>{},detailLinkOptions:y={enabled:!0},successToast:N=!0,alertMessage:U="",authToken:D=void 0}){const{t:n,locale:ae}=je(),V=Se()?.arcSphere,R=ge(),{connect:E,session:ue}=De(),[le,de]=d.useState(""),[K,v]=d.useState(!1),[me,$]=d.useState(g.open||!1),[pe,ye]=d.useState({}),[fe,p]=d.useState({}),[_,T]=d.useState({}),Q=d.useRef(_),Z=r?"subscription":"customer",u=f||ue?.user?.did,G=r||u,C=d.useRef(u);d.useEffect(()=>{Q.current=_},[_]);const{data:c={summary:{},invoices:[]},error:J,loading:ve,runAsync:L}=Pe(()=>H({subscriptionId:r,customerId:u,authToken:D}),{ready:!!r||!!u,onSuccess:e=>{e.customer?.id&&e.customer?.id!==C.current&&(C.current=e.customer?.id)}}),I=d.useMemo(()=>r?w(q(),`/customer/subscription/${r}`):u?w(q(),"/customer/invoice/past-due"):"",[r,u]),l=d.useMemo(()=>c?.summary?Object.values(c.summary):[],[c?.summary]),X=async e=>{if(Q.current[e])try{if((await H({subscriptionId:r,customerId:u,authToken:D})).invoices?.some(a=>a.currency_id===e))return;T(a=>{const m={...a};return delete m[e],m}),p(a=>({...a,[e]:"success"}))}catch(i){console.error("Error checking Stripe payment completion:",i);return}N&&(x.close(),x.success(n("payment.customer.invoice.paySuccess"))),v(!1),(await L()).invoices?.length===0&&($(!1),W(G,e,Z))},he=we(e=>X(e),1e3,{leading:!1,trailing:!0,maxWait:5e3}),A=Re(),j=Ee("events"),xe=async e=>{let s=!1;return await Ie(async()=>(s=!(await H({subscriptionId:r,customerId:u,authToken:D})).invoices?.some(a=>a.currency_id===e),s),{interval:2e3,timeout:3*60*1e3}),s},Y=async(e,s=!1)=>{if(A||V)try{if(await xe(e)){p(a=>({...a,[e]:"success"}));const o=await L();N&&(x.close(),x.success(n("payment.customer.invoice.paySuccess"))),o.invoices?.length===0&&($(!1),W(G,e,Z))}}catch(i){console.error("Check payment status failed:",i),p(o=>({...o,[e]:"error"}))}finally{v(!1)}else s&&(T(i=>({...i,[e]:!0})),p(i=>({...i,[e]:"processing"})))};d.useEffect(()=>{if(!j||A||V)return;const e=({response:s})=>{const o=`${r||s.customer_id}-${s.currency_id}`;(r&&s.subscription_id===r||u&&u===s.customer_id||C.current&&C.current===s.customer_id)&&(pe[o]||(ye(a=>({...a,[o]:1})),he(s.currency_id)))};return j.on("invoice.paid",e),()=>{j.off("invoice.paid",e)}},[j,r,u]);const ee=e=>{const{currency:s,method:i}=e;if(i.type==="stripe"){x.error(n("payment.subscription.overdue.notSupport"));return}if(!K&&(de(s.id),v(!0),p(o=>({...o,[s.id]:"idle"})),["arcblock","ethereum","base"].includes(i.type))){const o={currencyId:s.id};r?o.subscriptionId=r:u&&(o.customerId=u),E.open({locale:ae,containerEl:void 0,saveConnect:!1,action:"collect-batch",prefix:w(q(),"/api/did"),useSocket:!A,extraParams:o,messages:{scan:n("common.connect.defaultScan"),title:n("payment.customer.invoice.payBatch"),confirm:n("common.connect.confirm")},onSuccess:()=>{E.close(),Y(s.id),v(!1),p(a=>({...a,[s.id]:"success"}))},onClose:()=>{E.close(),v(!1)},onError:a=>{x.error(_e(a)),p(m=>({...m,[s.id]:"error"})),v(!1)}})}},S=()=>{$(!1),g.onClose?.()},te=e=>{y.onClick?(e.preventDefault(),y.onClick(e)):y.enabled||(e.preventDefault(),S())};if(ve)return null;const re=()=>y.title?y.title:n(r?"payment.subscription.overdue.view":"payment.customer.pastDue.view"),ne=(e,s=!0,i={variant:"contained"})=>{const{currency:o}=e,a=K&&le===o.id,m=fe[o.id]||"idle";if(m==="success")return t.jsx(M,{variant:i?.variant||"contained",size:"small",onClick:()=>X(o.id),...s?{}:{color:"success",startIcon:t.jsx(Ce,{})},children:n("payment.subscription.overdue.paid")});if(e.method.type==="stripe"){let B=n("payment.subscription.overdue.payNow");return m==="error"?B=n("payment.subscription.overdue.retry"):m==="processing"&&(B=n("payment.subscription.overdue.processing")),t.jsx(Te,{subscriptionId:r,customerId:r?void 0:u,currencyId:o.id,paymentMethod:e.method,onSuccess:()=>{Y(o.id,!0)},onError:()=>{p(b=>({...b,[o.id]:"error"})),T(b=>({...b,[o.id]:!1}))},children:(b,oe)=>t.jsx(ce,{variant:i?.variant||"contained",size:"small",disabled:oe||m==="processing",loading:oe||m==="processing",onClick:b,sx:i?.sx,children:B})})}return t.jsx(ce,{variant:i?.variant||"contained",size:"small",disabled:a,loading:a,onClick:()=>ee(e),sx:i?.sx,children:n(m==="error"?"payment.subscription.overdue.retry":"payment.subscription.overdue.payNow")})},F=e=>e.name&&e.type!=="arcblock"?` (${e.name})`:"",se=()=>{if(r&&c.subscription)return l.length===1?n("payment.subscription.overdue.title",{name:c.subscription?.description,count:c.invoices?.length,total:z(l[0]?.amount,l[0]?.currency?.decimal),symbol:l[0]?.currency?.symbol,method:F(l[0]?.method)}):n("payment.subscription.overdue.simpleTitle",{name:c.subscription?.description,count:c.invoices?.length});if(u){let e="";return l.length===1?e=n("payment.customer.overdue.title",{subscriptionCount:c.subscriptionCount||0,count:c.invoices?.length,total:z(l[0]?.amount,l[0]?.currency?.decimal),symbol:l[0]?.currency?.symbol,method:F(l[0]?.method)}):e=n("payment.customer.overdue.simpleTitle",{subscriptionCount:c.subscriptionCount||0,count:c.invoices?.length}),U?`${e}${U}`:`${e}${n("payment.customer.overdue.defaultAlert")}`}return""},be=()=>r&&c.subscription?n("payment.subscription.overdue.empty",{name:c.subscription?.description}):n("payment.customer.overdue.empty");return O==="custom"&&P&&typeof P=="function"?t.jsx(h,{children:P(ee,{subscription:c?.subscription,summary:c?.summary,invoices:c?.invoices,subscriptionCount:c?.subscriptionCount,detailUrl:I})}):t.jsx(ke,{PaperProps:{style:{minHeight:"auto"}},...g||{},open:me,title:g?.title||n("payment.subscription.overdue.pastDue"),sx:{"& .MuiDialogContent-root":{pt:0}},onClose:S,children:J?t.jsx(ie,{severity:"error",children:J.message}):t.jsxs(h,{sx:{gap:1},children:[l.length===0&&t.jsxs(t.Fragment,{children:[t.jsx(ie,{severity:"success",children:be()}),t.jsx(h,{direction:"row",sx:{justifyContent:"flex-end",mt:2},children:t.jsx(M,{variant:"outlined",color:"primary",onClick:S,sx:{width:"fit-content"},children:n("common.know")})})]}),l.length===1&&t.jsxs(t.Fragment,{children:[t.jsxs(k,{variant:"body1",sx:{color:"text.secondary"},children:[se(),y.enabled&&t.jsxs(t.Fragment,{children:[t.jsx("br",{}),n("payment.subscription.overdue.description"),t.jsx("a",{href:I,target:"_blank",onClick:te,rel:"noreferrer",style:{color:R.palette.text.link},children:re()})]})]}),t.jsxs(h,{direction:"row",sx:{justifyContent:"flex-end",gap:2,mt:2},children:[t.jsx(M,{variant:"outlined",color:"primary",onClick:S,children:n("common.cancel")}),ne(l[0])]})]}),l.length>1&&t.jsxs(t.Fragment,{children:[t.jsxs(k,{variant:"body1",sx:{color:"text.secondary"},children:[se(),y.enabled&&t.jsxs(t.Fragment,{children:[t.jsx("br",{}),n("payment.subscription.overdue.description"),t.jsx("a",{href:I,target:"_blank",rel:"noreferrer",onClick:te,style:{color:R.palette.text.link},children:re()})]})]}),t.jsx(k,{variant:"body1",sx:{color:"text.secondary"},children:n("payment.subscription.overdue.list")}),t.jsx(h,{children:l.map(e=>t.jsxs(h,{direction:"row",sx:{justifyContent:"space-between",alignItems:"center",py:1,px:.5,borderBottom:"1px solid",borderColor:"divider","&:hover":{backgroundColor:()=>R.palette.grey[100]},mt:0},children:[t.jsx(k,{children:n("payment.subscription.overdue.total",{total:z(e?.amount,e?.currency?.decimal),currency:e?.currency?.symbol,method:F(e?.method)})}),ne(e,!1,{variant:"text",sx:{color:"text.link"}})]},e?.currency?.id))})]})]})})}export{Oe as O};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,co as L,ak as o,ar as
|
|
1
|
+
import{j as e,co as L,ak as o,ar as z,bb as se,at as Q,c5 as ae,W as c,am as f,cF as ie,T,b4 as V,bl as $}from"./vendor-mui-core-CKKG_1TN.js";import{r as u,a as re}from"./vendor-react-CTtPmzVP.js";import{K as h,V as A,F as le,bk as ce,ba as me}from"./vendor-ux-DjXlxcvL.js";import{f as D}from"./index-BojVbZw0.js";import{p as de}from"./dashboard-BQgUp8NI.js";import{Z as pe,Y as ue,ag as he,U as xe,q as W,aA as ge,c as _,Q as E}from"./index-BEfIUbZC.js";import{v as fe}from"./index-BSZ3mQac.js";import{u as ve}from"./useAsyncRetry-B_bXUXWM.js";import{z as be}from"./vendor-utils-CUs2ebe7.js";import{b as ke}from"./team-DkV63Yjl.js";import{W as b}from"./did-address-Cq16cwTy.js";import{V as je}from"./status-DRNtY6SL.js";import{g as ye}from"./spaces-DghHe7uP.js";import"./vendor-hooks-DQAdyHrE.js";import"./lottie-web-4koyQiv_.js";import"./vendor-arcblock-BCP2x3BR.js";import"./session-Cin9Rizr.js";import"./index-DBs9Ljax.js";import"./useSetState-L-f8mSga.js";import"./index-yvRJAzQn.js";import"./zh-DG89vJJ6.js";import"./over-due-invoice-payment-CXZ42RZu.js";import"./useLocalStorage-Brr2PSz9.js";import"./confirm-D6AvlbAp.js";import"./get-safe-url-DxqVk96E.js";import"./passport-C_PAxd9K.js";import"./create-passport-svg-DeDfPZeD.js";import"./provider-icon-CkqIY6iX.js";import"./google-icon-vNOJy67F.js";import"./useAsync-D6IP8T2e.js";import"./isURL-vNa-ZfGd.js";import"./use-app-logo-DnCfhAzv.js";import"./omit-BeaKJrg9.js";import"./index-DixUQBnm.js";import"./api-B24x7kOD.js";const we={width:24,height:24,body:'<path fill="currentColor" d="M12 14.975q-.2 0-.375-.062T11.3 14.7l-4.6-4.6q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l3.9 3.9l3.9-3.9q.275-.275.7-.275t.7.275q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062Z"/>'},Se={width:24,height:24,body:'<path fill="currentColor" d="m12 10.8l-3.9 3.9q-.275.275-.7.275t-.7-.275q-.275-.275-.275-.7t.275-.7l4.6-4.6q.3-.3.7-.3t.7.3l4.6 4.6q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275L12 10.8Z"/>'},_e={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 17a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zm12 0a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2zM9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2zM6 15v-1a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v1m-6-6v3"/>'},Te={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 7a4 4 0 1 0 8 0a4 4 0 1 0-8 0M3 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2m1-17.87a4 4 0 0 1 0 7.75M21 21v-2a4 4 0 0 0-3-3.85"/>'},Ae={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M7 12h3v4H7z"/><path d="M10 6H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-6"/><path d="M10 4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1zm4 12h2m-2-4h4"/></g>'},Ie={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M19.5 7A9 9 0 0 0 12 3a8.991 8.991 0 0 0-7.484 4"/><path d="M11.5 3a16.989 16.989 0 0 0-1.826 4M12.5 3a16.989 16.989 0 0 1 1.828 4M19.5 17a9 9 0 0 1-7.5 4a8.991 8.991 0 0 1-7.484-4"/><path d="M11.5 21a16.989 16.989 0 0 1-1.826-4m2.826 4a16.989 16.989 0 0 0 1.828-4M2 10l1 4l1.5-4L6 14l1-4m10 0l1 4l1.5-4l1.5 4l1-4M9.5 10l1 4l1.5-4l1.5 4l1-4"/></g>'},F={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 12a9 9 0 1 0 18 0a9 9 0 0 0-18 0"/><path d="M12 7v5l3 3"/></g>'},Me={width:24,height:24,body:'<path fill="currentColor" d="M12 14q-.825 0-1.413-.588T10 12q0-.825.588-1.413T12 10q.825 0 1.413.588T14 12q0 .825-.588 1.413T12 14Zm0 7q-3.475 0-6.025-2.288T3.05 13H5.1q.35 2.6 2.313 4.3T12 19q2.925 0 4.963-2.038T19 12q0-2.925-2.038-4.963T12 5q-1.725 0-3.225.8T6.25 8H9v2H3V4h2v2.35q1.275-1.6 3.113-2.475T12 3q1.875 0 3.513.713t2.85 1.924q1.212 1.213 1.925 2.85T21 12q0 1.875-.713 3.513t-1.924 2.85q-1.213 1.212-2.85 1.925T12 21Z"/>'};function Z({icon:t=void 0,value:a,name:n,url:i="",animated:l=!1,LinkComponent:m=se,loading:x=!1}){const g=()=>re.isValidElement(t)?t:e.jsx(o,{component:h,icon:t,alt:typeof n=="string"?n:"",sx:{fontSize:30}}),v=e.jsxs(L,{className:"metric__content",children:[t&&e.jsx(o,{className:"metric__icon",children:g()}),e.jsx(o,{className:"metric__title",children:n}),e.jsx(o,{className:"metric__value",children:u.isValidElement(a)?e.jsx(o,{className:`metric__number ${l?"metric__number--animated":""}`,children:a}):e.jsx(o,{className:`metric__number ${l?"metric__number--animated":""}`,dangerouslySetInnerHTML:{__html:a}})})]});return x?e.jsx(K,{variant:"outlined",children:e.jsxs(L,{className:"metric__content",children:[t&&e.jsx(o,{className:"metric__icon",children:e.jsx(z,{variant:"circular",width:40,height:40})}),e.jsx(z,{className:"metric__title",variant:"rounded",width:120,height:20,sx:{mb:1}}),e.jsx(z,{className:`metric__number ${l?"metric__number--animated":""}`,variant:"rounded",width:100,height:"32px"})]})}):e.jsx(K,{variant:"outlined",children:i?e.jsx(m,{href:i,sx:{textDecoration:"none",color:"inherit"},children:v}):v})}Z.propTypes={icon:c.oneOfType([c.string,c.element]),value:c.oneOfType([c.string,c.element]).isRequired,name:c.oneOfType([c.string,c.element]).isRequired,url:c.string,animated:c.bool,LinkComponent:c.elementType,loading:c.bool};const K=Q(ae)`
|
|
2
2
|
height: 100%;
|
|
3
3
|
transition:
|
|
4
4
|
box-shadow 0.2s ease-in-out,
|
|
@@ -101,7 +101,7 @@ import{j as e,co as L,ak as o,ar as q,bb as se,at as F,c5 as ae,W as c,am as f,c
|
|
|
101
101
|
opacity: 1;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
`,k={oneSecond:1,oneMin:1*60,oneHour:1*60*60,oneDay:24*60*60}
|
|
104
|
+
`,k={oneSecond:1,oneMin:1*60,oneHour:1*60*60,oneDay:24*60*60},$e=(t,a)=>{const[n,i]=u.useState(0),l=g=>g>=k.oneDay?k.oneDay:g>=k.oneHour?k.oneHour:g>=k.oneMin?k.oneMin:k.oneSecond,[m,x]=u.useState(l(t/1e3));return u.useEffect(()=>{const g=setInterval(()=>{i(n+m);const v=l(t/1e3+n+m);m!==v&&x(v)},m*1e3);return()=>clearInterval(g)},[m,n]),u.useEffect(()=>{i(0),x(l(t/1e3))},[t]),a(t+n*1e3)};c.number.isRequired,c.func;const Ce={arcblock:"ArcBlock",ethereum:"Ethereum"};function G({source:t,migrated:a}){const{t:n}=A();return t?t.startsWith("managed")?e.jsxs(o,{sx:{display:"flex",alignItems:"center",gap:.5},children:[e.jsx(T,{children:t}),e.jsx(f,{title:n(a?"blocklet.skSourceMigratedTip":"blocklet.skSourceManagedTip"),children:e.jsx($,{sx:{fontSize:16,color:a?"text.secondary":"warning.main"}})})]}):e.jsx(T,{children:t}):null}G.propTypes={source:c.string.isRequired,migrated:c.bool.isRequired};const qe=t=>{const{t:a}=A();let n=0,i=0;t&&(n=t.length,i=t.filter(m=>W.isBlockletRunning(m)).length);let l=n;return i&&(l+=`<small>${a("common.running")} ${i}</small>`),l},ze=(t,a)=>{const{t:n}=A();return a.length?e.jsxs(o,{component:"small",children:[n("router.domainAlias.custom")," ",a.length]}):e.jsxs(o,{component:"small",sx:{display:"flex",alignItems:"center",gap:.5,color:a.length?"text.primary":"warning.main"},children:[n("router.domainAlias.noCustom"),e.jsx(f,{title:n("router.domainAlias.noCustomTip"),children:e.jsx($,{sx:{fontSize:16}})})]})},De=(t,a,n)=>{const i=t===_.BACKUPS.STATUS.PROGRESS&&E().diff(a,"hours")>=_.BACKUPS.TIMEOUT_HOURS,l=t===_.BACKUPS.STATUS.PROGRESS&&!i,m=t===_.BACKUPS.STATUS.SUCCEEDED&&!i;return i?e.jsx(f,{title:n("storage.spaces.backup.timeout"),children:e.jsx(o,{sx:{width:8,height:8,borderRadius:"100%",bgcolor:"error.main"}})}):l?e.jsx(f,{title:n("storage.spaces.backup.pending"),children:e.jsx(o,{sx:{width:8,height:8,borderRadius:"100%",bgcolor:"warning.main"}})}):m?e.jsx(f,{title:n("storage.spaces.backup.succeeded"),children:e.jsx(o,{sx:{width:8,height:8,borderRadius:"100%",bgcolor:"success.main"}})}):null},Ee=(t,a)=>{const{t:n,locale:i}=A(),l=a?.createdAt;return t&&l?e.jsxs(o,{sx:{display:"flex",alignItems:"baseline",gap:.5,color:E(l).add(1,"day").isAfter(E())?"text.primary":"warning.main"},children:[D(l,i==="tw"?"zh":i),e.jsx(f,{title:n("storage.spaces.backup.lastBackupTip",{time:D(l,i==="tw"?"zh":i)}),children:e.jsx($,{sx:{fontSize:16}})})]}):e.jsxs(o,{sx:{display:"flex",alignItems:"baseline",gap:.5,color:"warning.main",fontSize:30},children:[n("storage.spaces.backup.noBackup"),e.jsx(f,{title:n("storage.spaces.backup.noBackupTip"),children:e.jsx($,{sx:{fontSize:16}})})]})},j={fontSize:30,color:"text.primary"};function vt(){const{t,locale:a}=A(),{info:n,inService:i,api:l}=pe(),{teamDid:m}=ke(),[x,g]=u.useState(!1),{did:v,blocklet:s}=ue(),d=ve(()=>l.getBlockletBaseInfo({input:{teamDid:m}})),{appDid:C,appPid:q,migratedFrom:y=[]}=s,N=s.environments.find(r=>r.key==="BLOCKLET_APP_CHAIN_TYPE")?.value,I=r=>typeof r!="number"||Number.isNaN(r)?"0":r>=1e4?new Intl.NumberFormat(a,{notation:"compact",compactDisplay:"short"}).format(r):new Intl.NumberFormat(a).format(r),B=[C?{name:t("blocklet.appId"),value:e.jsx(b,{did:C,showQrcode:!0})}:null,q&&C!==q?{name:e.jsxs(o,{children:[t("blocklet.appPid"),e.jsx(f,{title:t("blocklet.whyNeedAppPid"),style:{cursor:"help",fontSize:16},children:e.jsx(ie,{sx:{verticalAlign:"middle",mt:"-2px",ml:"2px"}})})]}),value:e.jsx(b,{did:q,showQrcode:!0})}:null,y?.length>1?{name:t("blocklet.alsoKnownAs"),value:e.jsxs("div",{children:[(x?y.slice(1):y.slice(1,2)).map(r=>e.jsx(b,{did:r.appDid,showQrcode:!0})),y.length>2&&e.jsx(le,{sx:{pl:0,"&:hover":{backgroundColor:"transparent"}},endIcon:x?e.jsx(h,{icon:Se}):e.jsx(h,{icon:we}),onClick:()=>g(!x),children:t(x?"common.collapseAll":"blocklet.router.showAllDIDs")})]})}:null,he(s)?{name:"NFT",value:e.jsx(b,{external:!0,href:xe(s?.controller?.chainHost,s?.controller?.nftId,"asset"),did:s?.controller?.nftId,showQrcode:!0})}:null,{name:t("common.owner"),value:s.settings?.owner?e.jsx(b,{did:s.settings.owner.did,showQrcode:!0}):"-"},s.vaults?.length?{name:t("blocklet.config.vault.name"),value:e.jsxs(o,{sx:{display:"flex",alignItems:"center",gap:.5,"& > span":{width:"auto"}},children:[e.jsx(b,{did:s.vaults[s.vaults.length-1].did,showQrcode:!0}),e.jsx(je,{vaults:s.vaults,appPid:s.appPid})]})}:null,{name:t("blocklet.installedAt"),value:s.installedAt?e.jsx(ce,{value:s.installedAt,type:"all",locale:a}):"-"},{name:t("blocklet.config.walletType.name"),value:Ce[N||"arcblock"]||N},s.externalSkSource?{name:t("blocklet.skSource"),value:e.jsx(G,{source:s.externalSkSource,migrated:y.length>0})}:null].filter(Boolean);i&&B.push({name:t("common.serverDid"),value:e.jsx(b,{did:n.did,showQrcode:!0})},{name:t("common.serverVersion"),value:e.jsx(me,{children:n.version})});const Y=r=>r.map(p=>e.jsx(fe,{style:{display:"flex",alignItems:"flex-start"},valueComponent:"div",nameWidth:150,name:p.name,nameFormatter:()=>p.name,children:p.value},p.name)),X=qe(s.children),R=s?.startedAt?new Date(s.startedAt).getTime():0,P=R&&W.isBlockletRunning(s)?Date.now()-R:0,J=$e(P,r=>de(r,{compact:!0,verbose:!0,locale:a==="tw"?"zh":a})),M=u.useMemo(()=>s?.site?.domainAliases||[],[s?.site?.domainAliases]),ee=u.useMemo(()=>M.filter(r=>ge.isCustomDomain(r.value)),[M]),te=ze(M,ee),U=u.useMemo(()=>d?.value?.passport||{},[d?.value?.passport]),H=u.useMemo(()=>d?.value?.user||{},[d?.value?.user]),O=u.useMemo(()=>ye(s?.environments),[s?.environments]),ne=Ee(O,d?.value?.backup),w=(r,p)=>`${_.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/${r}/${p}`,S=r=>{const p=n?.routing?.adminPath;return be(p,`/blocklets/${v}/${r}`)},oe=[{name:t("common.blocklets"),value:X,icon:e.jsx(o,{component:h,icon:_e,sx:j}),url:i?w("overview","components"):S("components")},{loading:d?.loading,name:t("common.members"),value:`${I(H?.users||0)}<small>${t("common.active")} ${I(H?.approvedUsers)}</small>`,icon:e.jsx(o,{component:h,icon:Te,sx:j}),url:i?w("did-connect","members"):S("members")},{loading:d?.loading,name:t("team.member.passports"),value:`${I(U?.passports||0)}<small>${t("common.active")} ${I(U?.activePassports)}</small>`,icon:e.jsx(o,{component:h,icon:Ae,sx:j}),url:i?w("did-connect","passports"):S("passports")},{loading:d?.loading,name:t("common.domains"),value:e.jsxs(o,{sx:{display:"flex",alignItems:"baseline"},children:[M.length,te]}),icon:e.jsx(o,{component:h,icon:Ie,sx:j}),url:i?w("website","domains"):S("domains")},{name:t("common.uptime"),value:P?J:e.jsx(o,{sx:{fontSize:28,color:"text.secondary"},children:`${t("common.waiting")}...`}),icon:e.jsx(o,{component:h,icon:F,sx:j})},s.createdAt&&+new Date(s.createdAt)!=+new Date(0)?{name:t("common.created"),value:D(new Date(s.createdAt).getTime(),a==="tw"?"zh":a),icon:e.jsx(o,{component:h,icon:F,sx:j})}:null,{loading:d?.loading,name:e.jsxs(o,{sx:{display:"flex",alignItems:"baseline",gap:.5},children:[t("storage.spaces.backup.lastBackup"),d?.value?.backup&&O&&De(d?.value?.backup?.status,d?.value?.backup?.createdAt,t)]}),value:ne,icon:e.jsx(o,{component:h,icon:Me,sx:j}),url:i?w("did-spaces","backups"):S("didSpaces")}].filter(Boolean);return e.jsxs(Ne,{component:"div",children:[e.jsxs(o,{className:"section",children:[e.jsx(T,{className:"section__header",color:"textPrimary",children:t("common.overview")}),e.jsx(V,{className:"page-metrics",container:!0,spacing:{xs:1,md:2},children:oe.map(({icon:r,...p})=>e.jsx(V,{sx:{small:{ml:.5}},size:{xl:1.5,lg:3,md:4,sm:12,xs:12},children:e.jsx(Z,{...p})},p.name))})]}),e.jsxs(o,{className:"section",children:[e.jsx(T,{className:"section__header",color:"textPrimary",children:t("common.basicInfo")}),e.jsx(o,{className:"basicInfo",children:Y(B)})]})]})}const Ne=Q(T)`
|
|
105
105
|
.section {
|
|
106
106
|
display: flex;
|
|
107
107
|
flex-direction: column;
|
|
@@ -113,4 +113,4 @@ import{j as e,co as L,ak as o,ar as q,bb as se,at as F,c5 as ae,W as c,am as f,c
|
|
|
113
113
|
margin-bottom: 24px;
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
`;export{
|
|
116
|
+
`;export{vt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as i,cY as l,at as a,W as e}from"./vendor-mui-core-
|
|
1
|
+
import{j as i,cY as l,at as a,W as e}from"./vendor-mui-core-CKKG_1TN.js";function r({title:t="",subTitle:o="",onClickBack:s="",...n}){return i.jsxs(c,{...n,children:[s&&i.jsx(l,{className:"back-btn",onClick:s}),i.jsx("div",{className:"title",children:t}),i.jsx("div",{className:"sub-title",children:o})]})}const c=a.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
width: 100%;
|
|
4
4
|
text-align: center;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as r}from"./create-passport-svg-DeDfPZeD.js";import{z as t}from"./vendor-utils-CUs2ebe7.js";import{c as s}from"./index-BEfIUbZC.js";const e=o=>r({...o,issuerAvatarUrl:t(window.location.origin,s.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo")});export{e as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as t,b6 as b,b2 as k,T as m,am as q,W as s,s as T,U as $,ak as g,cI as f,cJ as x,cK as A,cL as N,cM as L,cN as R,cO as B}from"./vendor-mui-core-CKKG_1TN.js";import{V as h,bk as F,u as S}from"./vendor-ux-DjXlxcvL.js";import{b4 as E,b5 as P,b6 as V}from"./index-BEfIUbZC.js";import{U as G}from"./ua-parser-DP5omx3I.js";import{a as w}from"./vendor-react-CTtPmzVP.js";import{a as H}from"./vendor-hooks-DQAdyHrE.js";import{W as j}from"./did-address-Cq16cwTy.js";import{p as J}from"./util-BgLSp_5A.js";import{b as K}from"./team-DkV63Yjl.js";function Y(e){return!e||typeof e!="string"?"break-all":e.includes(" ")?"break-word":"break-all"}function C({logo:e="",name:r="",description:n="",size:l=40,variant:a="rounded",sx:d={},className:p="",logoName:u="",tooltip:o=null}){const i={width:l,height:l,...d},y=typeof r=="string"?r:e,v=t.jsxs(b,{direction:"row",spacing:1,className:`info-card-wrapper ${p}`,sx:{alignItems:"center",cursor:o?"pointer":"default"},children:[e?t.jsx(k,{src:e,alt:u??y,variant:a,sx:i}):t.jsx(k,{variant:a,sx:i,children:y?.slice(0,1)}),t.jsxs(b,{direction:"column",sx:{alignItems:"flex-start",justifyContent:"space-around",wordBreak:Y(r),minWidth:{xs:100,sm:140}},children:[t.jsx(m,{variant:"body1",component:"div",sx:{color:"text.primary"},children:r}),n&&t.jsx(m,{variant:"subtitle1",sx:{color:"text.secondary"},children:n})]})]});return o?t.jsx(q,{title:o,placement:"top-start",slotProps:{tooltip:{sx:{bgcolor:c=>c.palette.mode==="dark"?"#2a2e37":"#ffffff",color:c=>c.palette.mode==="dark"?"#ffffff":c.palette.text.primary,boxShadow:"0 2px 10px rgba(0, 0, 0, 0.15)",borderRadius:2,padding:"10px 16px",fontSize:14,maxWidth:400,minWidth:240,wordBreak:"break-word",border:c=>c.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0","& .MuiTooltip-arrow":{color:c=>c.palette.mode==="dark"?"#2a2e37":"#ffffff","&::before":{border:c=>c.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0",backgroundColor:c=>c.palette.mode==="dark"?"#2a2e37":"#ffffff"}}}}},children:v}):v}C.propTypes={logo:s.string,name:s.oneOfType([s.string,s.node]).isRequired,description:s.oneOfType([s.string,s.node]),size:s.oneOfType([s.number,s.string]),variant:s.oneOf(["square","rounded","circular"]),sx:s.object,className:s.string,logoName:s.string,tooltip:s.oneOfType([s.string,s.node])};function _(e){try{if(!e.trim())return{device:{icon:t.jsx(x,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:t.jsx(f,{fontSize:"small"}),text:"Unknown Browser"}};const n=new G(e).getResult();let l="";const a=e.split(/\s+/).find(o=>o.startsWith("arcwallet"));if(a){const o=a.split("/");o.length>1&&S.coerce(o[1])&&(l=S.coerce(o[1]).version)}const d=(()=>{const{type:o="",model:i=""}=n.device;return o==="mobile"?{icon:t.jsx(A,{fontSize:"small"}),text:i||"Mobile Device"}:o==="tablet"?{icon:t.jsx(N,{fontSize:"small"}),text:i||"Tablet"}:{icon:t.jsx(L,{fontSize:"small"}),text:i||"Desktop"}})(),p=(()=>{const{name:o="",version:i=""}=n.os;return o.toLowerCase().includes("mac")?{icon:t.jsx(R,{fontSize:"small"}),text:`${o} ${i}`}:o.toLowerCase().includes("ios")?{icon:t.jsx(R,{fontSize:"small"}),text:`${o} ${i}`}:o.toLowerCase().includes("android")?{icon:t.jsx(B,{fontSize:"small"}),text:`${o} ${i}`}:o.toLowerCase().includes("windows")?{icon:t.jsx(x,{fontSize:"small"}),text:`${o} ${i}`}:{icon:null,text:o?`${o} ${i}`:"Unknown OS"}})(),u=(()=>{const{name:o="",version:i=""}=n.browser;return{icon:t.jsx(f,{fontSize:"small"}),text:o?`${o} ${i}`:"Unknown Browser"}})();return{device:d,os:p,browser:u,...l?{walletVersion:{icon:null,text:l}}:{}}}catch(r){return console.error("Error parsing user agent:",r),{device:{icon:t.jsx(x,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:t.jsx(f,{fontSize:"small"}),text:"Unknown Browser"}}}}function z({ua:e}){const r=_(e);return t.jsx(b,{spacing:1,children:Object.entries(r).map(([n,{icon:l,text:a}])=>t.jsxs(g,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.jsx(g,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:l}),t.jsx(m,{variant:"body2",sx:{display:"flex"},children:a})]},n))})}z.propTypes={ua:s.string.isRequired};const Q=()=>{const{t:e}=h(),r={$all:e("common.all"),owner:"Owner",admin:"Admin",member:"Member",guest:"Guest"};return{SYSTEM_ROLES:r,formatRoleName:l=>{const a=(l||"").toLowerCase();return a.startsWith("$")?r[a]||a.slice(1):r[a]||a}}},X=(e,r=!1)=>{const n=r?1:.6;switch(e){case"owner":return`rgba(232, 222, 255, ${n})`;case"admin":return`rgba(227, 242, 253, ${n})`;case"member":return`rgba(232, 245, 233, ${n})`;case"guest":return`rgba(245, 245, 245, ${n})`;default:return`rgba(245, 245, 245, ${n})`}},Z=T($)(({role:e})=>({backgroundColor:X(e.toLowerCase()),color:"#000000"})),ee=e=>{switch(e){case"valid":return r=>r.palette.success.light;case"expired":return r=>r.palette.text.disabled;case"revoked":return r=>r.palette.error.light;default:return r=>r.palette.warning.light}},re=T($)(({theme:e,status:r})=>({backgroundColor:ee(r)(e),color:"#FFFFFF"}));function U({did:e}){return t.jsx(j,{size:14,responsive:!1,compact:!0,copyable:!1,did:e})}U.propTypes={did:s.string.isRequired};function I({timestamp:e,locale:r}){return t.jsx(g,{sx:{minWidth:"100px"},children:t.jsx(F,{value:e,locale:r})})}I.propTypes={timestamp:s.number.isRequired,locale:s.string.isRequired};function O({name:e="",role:r}){const{formatRoleName:n}=Q();return t.jsx(Z,{label:n(e||r),size:"small",role:e||r,sx:{borderRadius:1}})}O.propTypes={role:s.string.isRequired,name:s.string};function W({status:e}){const{t:r}=h();return t.jsx(re,{label:r(`team.passport.statusMap.${e}`),size:"small",status:e,sx:{borderRadius:1}})}W.propTypes={status:s.string.isRequired};function D({source:e}){const{t:r}=h();return e?r(`team.passport.sourceMaps.${e}`):"-"}D.propTypes={source:s.string.isRequired};function M({user:e,size:r="default",tooltip:n=!1,inService:l=!1}){const{teamDid:a}=K(),d=w.useMemo(()=>J(e.avatar,a,l),[e.avatar,a,l]),p=w.useMemo(()=>t.jsx(j,{did:e?.did,compact:!0,responsive:!1,sx:{whiteSpace:"nowrap"},size:12}),[e?.did]),u=H(()=>({...e,avatar:d}),[e,d]);return r==="small"?t.jsx(C,{variant:"circular",logo:d,name:t.jsx(m,{sx:{maxWidth:320,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},className:"customer-link-name",children:e.fullName||e.email}),...r==="small"?{tooltip:n?t.jsx(j,{did:e?.did}):!1,size:24}:{description:p,size:36}}):t.jsx(E,{user:u,avatarSize:r==="small"?24:36,cardType:V.Detailed,infoType:P.Minimal,sx:{padding:0,border:"none"},showDid:!0,didProps:{compact:!0,responsive:!1},showHoverCard:!1})}M.propTypes={user:s.object.isRequired,size:s.string,tooltip:s.bool,inService:s.bool};const te=w.memo(M),ue=e=>t.jsx(U,{did:e}),me=(e,r)=>t.jsx(O,{name:e,role:r}),fe=e=>t.jsx(W,{status:e}),xe=(e,r)=>t.jsx(I,{timestamp:e,locale:r}),be=e=>t.jsx(D,{source:e}),ge=(e,r=!1)=>t.jsx(te,{user:e,inService:r}),we=e=>t.jsx(z,{ua:e});export{ge as a,fe as b,xe as c,be as d,we as e,ue as f,me as r,Q as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as l,W as n}from"./vendor-mui-core-
|
|
1
|
+
import{j as l,W as n}from"./vendor-mui-core-CKKG_1TN.js";import{u as m}from"./session-Cin9Rizr.js";function c({permission:i="",role:t="",component:e=null,children:o=null}){const{session:r}=m();let s=!0;const u=[].concat(i).filter(Boolean),f=[].concat(t).filter(Boolean);if(u.length){const p=r.user&&r.user.permissions||[];s=u.some(a=>p.includes(a))}return s&&f.length&&(s=f.includes(r.user.role)),typeof e=="function"?e(s):typeof o=="function"?o(s):s&&(e||o)||null}function x(i,t,e){return function(r){return l.jsx(c,{permission:t,role:e,children:s=>l.jsx(i,{...r,hasPermission:s})})}}c.propTypes={permission:n.oneOfType([n.string,n.arrayOf(n.string)]),role:n.oneOfType([n.string,n.arrayOf(n.string)]),component:n.oneOfType([n.func,n.node]),children:n.oneOfType([n.func,n.node])};export{c as P,x as w};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o}from"./vendor-mui-core-CKKG_1TN.js";import{z as t}from"./vendor-utils-CUs2ebe7.js";import{I as s}from"./iframe-BHP6CYbe.js";import{c as e}from"./index-BEfIUbZC.js";import{S as m}from"./studio-CVfdma-R.js";import"./vendor-react-CTtPmzVP.js";import"./vendor-ux-DjXlxcvL.js";import"./vendor-hooks-DQAdyHrE.js";import"./lottie-web-4koyQiv_.js";import"./vendor-arcblock-BCP2x3BR.js";import"./index-yvRJAzQn.js";function L(){const r=new URLSearchParams;r.set("title","Preference Builder"),r.set("schemaKey",t(window.location.origin,e.WELLKNOWN_SERVICE_PATH_PREFIX,"/api/studio/preferences"));const i=`${t(window.location.origin,e.WELLKNOWN_SERVICE_PATH_PREFIX,"/hosted/form-builder/")}?${r.toString()}`;return o.jsx(m,{children:o.jsx(s,{url:i,width:"100%",height:"100%",frameBorder:0,styles:{border:0}})})}export{L as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as r}from"./vendor-mui-core-CKKG_1TN.js";import{q as o}from"./user-center-Cnc61do7.js";import{H as i}from"./index-BEfIUbZC.js";import{V as m}from"./vendor-ux-DjXlxcvL.js";import"./vendor-react-CTtPmzVP.js";import"./vendor-hooks-DQAdyHrE.js";import"./vendor-utils-CUs2ebe7.js";import"./index-BHnD9G0G.js";import"./arrow-down.svg-7ME6T1BL.js";import"./revoke.svg-DUoaRyPZ.js";import"./index-C96Fw4Lj.js";import"./index-BnOC3Ium.js";import"./info-outline-rounded-YiCh4oGg.js";import"./google-icon-vNOJy67F.js";import"./vendor-arcblock-BCP2x3BR.js";import"./index-CNGNZ6kv.js";import"./index-DRYJ0xIl.js";import"./index-BojVbZw0.js";import"./index-BB8sYq-N.js";import"./lottie-web-4koyQiv_.js";function T(){const{t}=m();return r.jsxs(r.Fragment,{children:[r.jsx(i,{children:r.jsx("title",{children:t("pageTitle.userCenter")})}),r.jsx(o,{onlyProfile:!0,currentTab:"",disableAutoRedirect:!0})]})}export{T as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as i,ak as c}from"./vendor-mui-core-CKKG_1TN.js";import{r as Z}from"./vendor-react-CTtPmzVP.js";import{ay as j,a3 as A,bl as N,K as D}from"./vendor-ux-DjXlxcvL.js";import{d as g,a as u}from"./google-icon-vNOJy67F.js";import{ba as w}from"./index-BEfIUbZC.js";const y={width:256,height:285,body:'<path d="M220.412 0h-92.415l28.562 89.006h92.416l-74.77 53.077l28.57 89.511c48.128-35.06 63.854-88.12 46.208-142.588L220.413 0ZM7.018 89.006h92.416L127.997 0H35.589L7.019 89.006c-17.655 54.468-1.92 107.529 46.207 142.588l28.563-89.51l-74.77-53.078Zm46.208 142.588l74.77 52.97l74.77-52.97l-74.77-53.847l-74.77 53.847Z"/>'};function l({width:M="100%",height:I="100%",...L}){return i.jsx(c,{component:"img",width:M,height:I,alt:"did-wallet-logo",...L,src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI3ByZWZpeF9fY2xpcDApIj48cmVjdCB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHJ4PSI2IiBmaWxsPSJ1cmwoI3ByZWZpeF9fcGFpbnQwX2xpbmVhcikiLz48ZyBmaWx0ZXI9InVybCgjcHJlZml4X19maWx0ZXIwX2kpIj48cGF0aCBkPSJNMy41MiA3LjM2QTIuNTYgMi41NiAwIDAxNi4wOCA0LjhoMTkuODRhMi41NiAyLjU2IDAgMDEyLjU2IDIuNTZ2MTIuMTZhMi41NiAyLjU2IDAgMDEtMi41NiAyLjU2SDYuMDhhMi41NiAyLjU2IDAgMDEtMi41Ni0yLjU2VjcuMzZ6IiBmaWxsPSIjOUZDQkZGIi8+PC9nPjxnIGZpbHRlcj0idXJsKCNwcmVmaXhfX2ZpbHRlcjFfZCkiPjxwYXRoIGQ9Ik0yLjU2IDkuMjhhMi41NiAyLjU2IDAgMDEyLjU2LTIuNTZoMjEuNzZhMi41NiAyLjU2IDAgMDEyLjU2IDIuNTZ2MTMuNmEyLjU2IDIuNTYgMCAwMS0yLjU2IDIuNTZINS4xMmEyLjU2IDIuNTYgMCAwMS0yLjU2LTIuNTZWOS4yOHoiIGZpbGw9InVybCgjcHJlZml4X19wYWludDFfbGluZWFyKSIvPjwvZz48ZyBmaWx0ZXI9InVybCgjcHJlZml4X19maWx0ZXIyX2QpIj48cGF0aCBkPSJNMCAyMi4zMmwzMi02LjE2VjMySDB2LTkuNjh6IiBmaWxsPSJ1cmwoI3ByZWZpeF9fcGFpbnQyX2xpbmVhcikiLz48L2c+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik01LjUzNiA5LjI0OGg4LjI4OGMuNDA4IDAgLjc0LjMuNzQuNjcydjQuNjRjMCAuMzcxLS4zMzIuNjcyLS43NC42NzJINS41MzZjLS40MDggMC0uNzQtLjMtLjc0LS42NzJ2LS4wNGEuMTU4LjE1OCAwIDEwLS4zMTYgMHYuMDRjMCAuNTMuNDczLjk2IDEuMDU2Ljk2aDguMjg4Yy41ODMgMCAxLjA1Ni0uNDMgMS4wNTYtLjk2VjkuOTJjMC0uNTMtLjQ3My0uOTYtMS4wNTYtLjk2SDUuNTM2Yy0uNTgzIDAtMS4wNTYuNDMtMS4wNTYuOTZ2LjA0YS4xNTguMTU4IDAgMDAuMzE3IDB2LS4wNGMwLS4zNzEuMzMtLjY3Mi43MzktLjY3MnptLTEuMDIzIDQuNjM4YS4xMjcuMTI3IDAgMDAuMDg3LjAzNGgxLjI2N2MuNDcyIDAgLjgzLS4xMDcgMS4wNzYtLjMyMi4yNS0uMjE3LjM4MS0uNTQ4LjM5Ny0uOTkzYTExLjI4MSAxMS4yODEgMCAwMDAtLjczNGMtLjAxMi0uNDI2LS4xNDgtLjc1MS0uNDA2LS45NzUtLjI1OC0uMjI0LS42MjItLjMzNi0xLjA5LS4zMzZINC42YS4xMjcuMTI3IDAgMDAtLjA4Ny4wMzQuMTE3LjExNyAwIDAwLS4wMzMuMDg2djMuMTJjMCAuMDMyLjAxMS4wNi4wMzMuMDg2em0xLjc5NC0uODA2Yy0uMDk5LjEtLjI1My4xNDktLjQ2NC4xNDloLS41MDJWMTEuMjVoLjQ3OGMuMjEgMCAuMzY5LjA1MS40NzQuMTU0LjEwOC4xMDIuMTY2LjI2LjE3Mi40NzUuMDA2LjA5LjAxLjIwOC4wMS4zNTVzLS4wMDQuMjY3LS4wMS4zNmMtLjAwNi4yMjEtLjA1OS4zODMtLjE1OC40ODV6bTEuNjMuODA2YS4xMjcuMTI3IDAgMDAuMDg3LjAzNGguNjRhLjExNi4xMTYgMCAwMC4wODctLjAzNC4xMS4xMSAwIDAwLjAzOC0uMDg2di0zLjEyYS4xMS4xMSAwIDAwLS4wMzgtLjA4Ni4xMTYuMTE2IDAgMDAtLjA4Ni0uMDM0aC0uNjQxYS4xMjcuMTI3IDAgMDAtLjA4Ny4wMzQuMTE3LjExNyAwIDAwLS4wMzMuMDg2djMuMTJjMCAuMDMyLjAxMS4wNi4wMzMuMDg2em0xLjYzNy4wMzRhLjEyNy4xMjcgMCAwMS0uMDg2LS4wMzQuMTI4LjEyOCAwIDAxLS4wMzMtLjA4NnYtMy4xMmMwLS4wMzUuMDEtLjA2NC4wMzMtLjA4NmEuMTI3LjEyNyAwIDAxLjA4Ni0uMDM0aDEuMjQ0Yy40NjkgMCAuODMyLjExMiAxLjA5LjMzNi4yNTkuMjI0LjM5NC41NDkuNDA3Ljk3NGExMS4yNDQgMTEuMjQ0IDAgMDEwIC43MzVjLS4wMTYuNDQ1LS4xNDguNzc2LS4zOTcuOTkzLS4yNDUuMjE1LS42MDQuMzIyLTEuMDc2LjMyMkg5LjU3NHptMS4yNDQtLjY5MWMuMjEgMCAuMzY1LS4wNS40NjQtLjE0OS4wOTktLjEwMi4xNTItLjI2NC4xNTgtLjQ4NWE1LjUyIDUuNTIgMCAwMC4wMS0uMzZjMC0uMTQ3LS4wMDQtLjI2NS0uMDEtLjM1NS0uMDA2LS4yMTQtLjA2NC0uMzczLS4xNzItLjQ3NS0uMTA2LS4xMDMtLjI2My0uMTU0LS40NzQtLjE1NGgtLjQ3OHYxLjk3OGguNTAyem0yLjQ2OC0xLjM4MmEuMjg4LjI4OCAwIDAxLS4yODgtLjI4Ni4yODguMjg4IDAgMDEuNTc2IDBjMCAuMTU4LS4xMy4yODYtLjI4OC4yODZ6bTAgMS40OTVhLjI4OC4yODggMCAwMS0uMjg4LS4yODYuMjg4LjI4OCAwIDAxLjU3NiAwYzAgLjE1OC0uMTMuMjg3LS4yODguMjg3eiIgZmlsbD0iIzQ1OThGQSIvPjwvZz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9InByZWZpeF9fcGFpbnQwX2xpbmVhciIgeDE9IjE2IiB5MT0iMCIgeDI9IjE2IiB5Mj0iMzIiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjNEY5REY2Ii8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMEE3OUY4Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9InByZWZpeF9fcGFpbnQxX2xpbmVhciIgeDE9IjE2IiB5MT0iNi43MiIgeDI9IjE2IiB5Mj0iMjUuNDQiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjZmZmIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRUNFRkZGIi8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9InByZWZpeF9fcGFpbnQyX2xpbmVhciIgeDE9IjE2IiB5MT0iMTkuMiIgeDI9IjE4LjQ4IiB5Mj0iMzIiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBvZmZzZXQ9Ii4wMDciIHN0b3AtY29sb3I9IiM3N0IyRjYiLz48c3RvcCBvZmZzZXQ9Ii4wNTUiIHN0b3AtY29sb3I9IiM0RjlERjYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM0NTk4RkEiLz48L2xpbmVhckdyYWRpZW50PjxmaWx0ZXIgaWQ9InByZWZpeF9fZmlsdGVyMF9pIiB4PSIzLjUyIiB5PSIxLjgiIHdpZHRoPSIyNC45NiIgaGVpZ2h0PSIyMC4yOCIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiPjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+PGZlQmxlbmQgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9InNoYXBlIi8+PGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDEyNyAwIiByZXN1bHQ9ImhhcmRBbHBoYSIvPjxmZU9mZnNldCBkeT0iLTMiLz48ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIyIi8+PGZlQ29tcG9zaXRlIGluMj0iaGFyZEFscGhhIiBvcGVyYXRvcj0iYXJpdGhtZXRpYyIgazI9Ii0xIiBrMz0iMSIvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0iMCAwIDAgMCAxIDAgMCAwIDAgMSAwIDAgMCAwIDEgMCAwIDAgMC4yIDAiLz48ZmVCbGVuZCBpbjI9InNoYXBlIiByZXN1bHQ9ImVmZmVjdDFfaW5uZXJTaGFkb3ciLz48L2ZpbHRlcj48ZmlsdGVyIGlkPSJwcmVmaXhfX2ZpbHRlcjFfZCIgeD0iLTEuNDQiIHk9IjEuNzIiIHdpZHRoPSIzNC44OCIgaGVpZ2h0PSIyNi43MiIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiPjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+PGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDEyNyAwIiByZXN1bHQ9ImhhcmRBbHBoYSIvPjxmZU9mZnNldCBkeT0iLTEiLz48ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIyIi8+PGZlQ29sb3JNYXRyaXggdmFsdWVzPSIwIDAgMCAwIDAuMjIwNzY3IDAgMCAwIDAgMC40NzA4MDMgMCAwIDAgMCAwLjcwMTYwNSAwIDAgMCAwLjE4IDAiLz48ZmVCbGVuZCBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJlZmZlY3QxX2Ryb3BTaGFkb3ciLz48ZmVCbGVuZCBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3ciIHJlc3VsdD0ic2hhcGUiLz48L2ZpbHRlcj48ZmlsdGVyIGlkPSJwcmVmaXhfX2ZpbHRlcjJfZCIgeD0iLTUiIHk9IjExLjE2IiB3aWR0aD0iNDIiIGhlaWdodD0iMjUuODQiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj48ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPjxmZUNvbG9yTWF0cml4IGluPSJTb3VyY2VBbHBoYSIgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAxMjcgMCIgcmVzdWx0PSJoYXJkQWxwaGEiLz48ZmVPZmZzZXQvPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjIuNSIvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0iMCAwIDAgMCAwLjE0MzgyIDAgMCAwIDAgMC4yMDUwNjUgMCAwIDAgMCAwLjUyMjYzNCAwIDAgMCAwLjI1IDAiLz48ZmVCbGVuZCBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJlZmZlY3QxX2Ryb3BTaGFkb3ciLz48ZmVCbGVuZCBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3ciIHJlc3VsdD0ic2hhcGUiLz48L2ZpbHRlcj48Y2xpcFBhdGggaWQ9InByZWZpeF9fY2xpcDAiPjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgcng9IjYiIGZpbGw9IiNmZmYiLz48L2NsaXBQYXRoPjwvZGVmcz48L3N2Zz4="})}function m({width:M=24,height:I=24,...L}){return i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 250",width:M,height:I,...L,children:i.jsx("path",{d:"M128.001 0C57.317 0 0 57.307 0 128.001c0 56.554 36.676 104.535 87.535 121.46c6.397 1.185 8.746-2.777 8.746-6.158c0-3.052-.12-13.135-.174-23.83c-35.61 7.742-43.124-15.103-43.124-15.103c-5.823-14.795-14.213-18.73-14.213-18.73c-11.613-7.944.876-7.78.876-7.78c12.853.902 19.621 13.19 19.621 13.19c11.417 19.568 29.945 13.911 37.249 10.64c1.149-8.272 4.466-13.92 8.127-17.116c-28.431-3.236-58.318-14.212-58.318-63.258c0-13.975 5-25.394 13.188-34.358c-1.329-3.224-5.71-16.242 1.24-33.874c0 0 10.749-3.44 35.21 13.121c10.21-2.836 21.16-4.258 32.038-4.307c10.878.049 21.837 1.47 32.066 4.307c24.431-16.56 35.165-13.12 35.165-13.12c6.967 17.63 2.584 30.65 1.255 33.873c8.207 8.964 13.173 20.383 13.173 34.358c0 49.163-29.944 59.988-58.447 63.157c4.591 3.972 8.682 11.762 8.682 23.704c0 17.126-.148 30.91-.148 35.126c0 3.407 2.304 7.398 8.792 6.14C219.37 232.5 256 184.537 256 128.002C256 57.307 198.691 0 128.001 0m-80.06 182.34c-.282.636-1.283.827-2.194.39c-.929-.417-1.45-1.284-1.15-1.922c.276-.655 1.279-.838 2.205-.399c.93.418 1.46 1.293 1.139 1.931m6.296 5.618c-.61.566-1.804.303-2.614-.591c-.837-.892-.994-2.086-.375-2.66c.63-.566 1.787-.301 2.626.591c.838.903 1 2.088.363 2.66m4.32 7.188c-.785.545-2.067.034-2.86-1.104c-.784-1.138-.784-2.503.017-3.05c.795-.547 2.058-.055 2.861 1.075c.782 1.157.782 2.522-.019 3.08m7.304 8.325c-.701.774-2.196.566-3.29-.49c-1.119-1.032-1.43-2.496-.726-3.27c.71-.776 2.213-.558 3.315.49c1.11 1.03 1.45 2.505.701 3.27m9.442 2.81c-.31 1.003-1.75 1.459-3.199 1.033c-1.448-.439-2.395-1.613-2.103-2.626c.301-1.01 1.747-1.484 3.207-1.028c1.446.436 2.396 1.602 2.095 2.622m10.744 1.193c.036 1.055-1.193 1.93-2.715 1.95c-1.53.034-2.769-.82-2.786-1.86c0-1.065 1.202-1.932 2.733-1.958c1.522-.03 2.768.818 2.768 1.868m10.555-.405c.182 1.03-.875 2.088-2.387 2.37c-1.485.271-2.861-.365-3.05-1.386c-.184-1.056.893-2.114 2.376-2.387c1.514-.263 2.868.356 3.061 1.403"})})}function z({provider:M="wallet",...I}){if(["wallet","wallet-web"].includes(M))return i.jsx(l,{...I});if(M===j.GITHUB)return i.jsx(c,{component:"span",...I,sx:A({display:"inline-block"},I.sx),children:i.jsx(m,{width:"100%",height:"100%",fill:"currentColor"})});const L={[j.AUTH0]:y,[j.EMAIL]:N,[j.APPLE]:u,[j.GOOGLE]:g,[j.PASSKEY]:w,[j.TWITTER]:{body:'<path fill="currentColor" d="M149.079 108.399L242.33 0h-22.098l-80.97 94.12L74.59 0H0l97.796 142.328L0 256h22.1l85.507-99.395L175.905 256h74.59L149.073 108.399zM118.81 143.58l-9.909-14.172l-78.84-112.773h33.943l63.625 91.011l9.909 14.173l82.705 118.3H186.3l-67.49-96.533z"/>',width:251,height:251}};return L[M]?i.jsx(c,{component:D,icon:L[M],fill:"currentColor",...I,sx:A({width:"100%",height:"100%"},M===j.TWITTER?{scale:"0.8"}:{},I.sx)}):null}const t=Z.memo(z);export{t as M};
|