@abtnode/blocklet-services 1.16.30 → 1.16.31-beta-52250475
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/{Add-DV9cHTiI.js → Add-DMLXuapt.js} +1 -1
- package/dist/assets/{AddBox-DjGRetT1.js → AddBox-CpBdwq7q.js} +1 -1
- package/dist/assets/{Alert-BriK3hjA.js → Alert-DdUTjamT.js} +1 -1
- package/dist/assets/{ArrowDropDown-DX29Pf8V.js → ArrowDropDown-DpF0L6m2.js} +1 -1
- package/dist/assets/{Avatar-CpQhQmV4.js → Avatar-Ba5K-SpV.js} +1 -1
- package/dist/assets/{ButtonGroup-BPdi_2z2.js → ButtonGroup-oqbT9mJ7.js} +1 -1
- package/dist/assets/{CheckCircle-DwkE-k6U.js → CheckCircle-Df4UlXEP.js} +1 -1
- package/dist/assets/{ChevronRight-BHXal2s_.js → ChevronRight-MsONzKko.js} +1 -1
- package/dist/assets/{Close-BtG4tyUL.js → Close-BzQI1nKM.js} +1 -1
- package/dist/assets/{CloseOutlined-CYZb8eDz.js → CloseOutlined-CcRedm-I.js} +1 -1
- package/dist/assets/{Delete-rvy-F0hT.js → Delete-eYuUFe-a.js} +1 -1
- package/dist/assets/{DeleteOutline-C36lJe42.js → DeleteOutline-avstszKw.js} +1 -1
- package/dist/assets/{Done-n1c-sUsw.js → Done-CDaSY-gN.js} +1 -1
- package/dist/assets/{Download-DuCZFVPl.js → Download-DA76-zAj.js} +1 -1
- package/dist/assets/{Edit-BrAk9NBL.js → Edit-DrnFKfrQ.js} +1 -1
- package/dist/assets/{EditIcon-CPgYqcwg.js → EditIcon-FTgbeCiz.js} +1 -1
- package/dist/assets/{Error-g7gK9Wfp.js → Error-EtOO_F4K.js} +1 -1
- package/dist/assets/{ExpandMore-DpLFPsWa.js → ExpandMore-CAfMRIG3.js} +1 -1
- package/dist/assets/{FilterList-BpmYd7MC.js → FilterList-CfRY6G_6.js} +1 -1
- package/dist/assets/{FormControl-Dq6XW9kS.js → FormControl-CJxOqtCV.js} +1 -1
- package/dist/assets/{FormControlLabel-CQnpTkDU.js → FormControlLabel-BKsoLGHz.js} +1 -1
- package/dist/assets/{FormGroup-C8sAhYQk.js → FormGroup-Chc5NbDQ.js} +1 -1
- package/dist/assets/{Google-C3cw6Unp.js → Google-C72krpFT.js} +1 -1
- package/dist/assets/{Hidden-c0nvbE8_.js → Hidden-v7r91ILG.js} +1 -1
- package/dist/assets/{InfoOutlined-DEt-KJ8v.js → InfoOutlined-D6TSS9ex.js} +1 -1
- package/dist/assets/{InputAdornment-Dr1oU3Hs.js → InputAdornment-B1JGDyvY.js} +1 -1
- package/dist/assets/{InputLabel-DYr7To9X.js → InputLabel-Ds1qPSij.js} +1 -1
- package/dist/assets/{LastPage-DV14H4DC.js → LastPage-5otHasfZ.js} +1 -1
- package/dist/assets/{Launch-DSSRxyd1.js → Launch-CsBFqx2_.js} +1 -1
- package/dist/assets/{LaunchOutlined-DOGa7uCZ.js → LaunchOutlined-B4YtdACN.js} +1 -1
- package/dist/assets/{Link-BzeSWqDp.js → Link-JTCdKmrw.js} +1 -1
- package/dist/assets/{ListItemText-BWMpM4cA.js → ListItemText-CJO6iQaY.js} +1 -1
- package/dist/assets/{LoadingButton-IrsPdnhT.js → LoadingButton-MZJ0ZCPE.js} +1 -1
- package/dist/assets/{LockIcon-Cx_TySkG.js → LockIcon-BEsB4YZ5.js} +1 -1
- package/dist/assets/{Loop-CSmyyk97.js → Loop-D4rRjL2T.js} +1 -1
- package/dist/assets/{MoreHoriz-B_IgZ_Tw.js → MoreHoriz-B5rpG1Ew.js} +1 -1
- package/dist/assets/{MoreVert-BQD92YJp.js → MoreVert-BqoNOXb1.js} +1 -1
- package/dist/assets/{OpenInNew-Ba4HupG6.js → OpenInNew-D9pZObQI.js} +1 -1
- package/dist/assets/{Pagination-g_z2fX8D.js → Pagination-BiImme98.js} +1 -1
- package/dist/assets/{PlayArrow-CvyM0yMY.js → PlayArrow-DpuhKo6D.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-B_wELYAO.js → QuestionMarkCircle-D8s3T__Z.js} +1 -1
- package/dist/assets/{RadioGroup-BSqtRWJR.js → RadioGroup-D4XxZA_m.js} +1 -1
- package/dist/assets/{Search-D_9DtKpx.js → Search-eHBEQt38.js} +1 -1
- package/dist/assets/{Select-CMM8MR9i.js → Select-CHwe79IG.js} +1 -1
- package/dist/assets/{ServerLogo-Ds39xok2.js → ServerLogo-Cg7KWr6l.js} +1 -1
- package/dist/assets/{Skeleton-d-rA8WB_.js → Skeleton-LO2AMjQj.js} +1 -1
- package/dist/assets/{Slider-Cv9IlmAx.js → Slider-D_aaap0D.js} +1 -1
- package/dist/assets/{Stepper-X4KYPIVJ.js → Stepper-Cn0ehU0z.js} +1 -1
- package/dist/assets/{TextField-BYelVRF_.js → TextField-By686O81.js} +1 -1
- package/dist/assets/{Toolbar-DI2YKZS2.js → Toolbar-CILlK-1t.js} +1 -1
- package/dist/assets/{ViewList-DWZsPuDR.js → ViewList-DOAqHfHm.js} +1 -1
- package/dist/assets/{access-control-Deg0Ez_v.js → access-control-YiOVUeX5.js} +1 -1
- package/dist/assets/{actions-Dv2KmWA_.js → actions-BoMQPbbF.js} +1 -1
- package/dist/assets/add-component-core-C3-hSwf4.js +979 -0
- package/dist/assets/{add-resource-B2YCggbD.js → add-resource-YzQQokOB.js} +1 -1
- package/dist/assets/{addon-B-L0-6EM.js → addon-BMJifOIu.js} +1 -1
- package/dist/assets/{analytics-B3U8I3AQ.js → analytics-Mv3diYQv.js} +1 -1
- package/dist/assets/api-jAQ8N-C_.js +1 -0
- package/dist/assets/{audit-logs-Dt1zBSaX.js → audit-logs-BNNOk6hr.js} +1 -1
- package/dist/assets/{button-BotQVFjI.js → button-jtk50dQY.js} +1 -1
- package/dist/assets/click-to-copy-CuY68HMG.js +1 -0
- package/dist/assets/{complete-BfHgp0O7.js → complete-bFHLAkpC.js} +2 -2
- package/dist/assets/{component-BziFLYA3.js → component-BaAw_jvb.js} +1 -1
- package/dist/assets/{config-BqLTd80Y.js → config-BHCviFXO.js} +1 -1
- package/dist/assets/{config-BcfULTik.js → config-CL6WfXG0.js} +2 -2
- package/dist/assets/{config-navigation-1U4iVdBl.js → config-navigation-DOxLg4SG.js} +1 -1
- package/dist/assets/{confirm-BWW215hi.js → confirm-Dx6jUaOz.js} +1 -1
- package/dist/assets/{connect-DC7BGJJv.js → connect-CdF3A2Vn.js} +1 -1
- package/dist/assets/{connect-CfBbqaTr.js → connect-W750gtDi.js} +1 -1
- package/dist/assets/{connect-to-CHo6hM6n.js → connect-to-DSVNCjA-.js} +1 -1
- package/dist/assets/{content-layout-BP4bsvx7.js → content-layout-BEZyVpjO.js} +1 -1
- package/dist/assets/{dashboard-BWG8DtF1.js → dashboard-CigfHyBK.js} +3 -3
- package/dist/assets/{did-address-TSZ5XRBj.js → did-address-CR96fGSF.js} +1 -1
- package/dist/assets/{domain-B0bCdxTC.js → domain-DvAmfnwX.js} +1 -1
- package/dist/assets/{domain-list-A5SqLbLS.js → domain-list-BFAh6gG5.js} +2 -2
- package/dist/assets/{exchange-passport-CBjbwwA6.js → exchange-passport-C9lSXYeG.js} +1 -1
- package/dist/assets/{fallback-Dz8ZuYD5.js → fallback-DVHgA8PG.js} +1 -1
- package/dist/assets/{format-error-DQS9AwZv.js → format-error-xm5q5N3Z.js} +1 -1
- package/dist/assets/{fuel-BP12PtJ1.js → fuel-B2bKQ7Ww.js} +1 -1
- package/dist/assets/{fullpage-DXFbt1Ve.js → fullpage-9fehs0lR.js} +1 -1
- package/dist/assets/{home-Cx9PAId-.js → home-CVEpIfo3.js} +1 -1
- package/dist/assets/{iframe-CO-VEhes.js → iframe-4KnzoKaC.js} +1 -1
- package/dist/assets/{index-BSHfXuRt.js → index-3IKYL1th.js} +1 -1
- package/dist/assets/{index-DtAm5Ed6.js → index-3TcO2NHG.js} +1 -1
- package/dist/assets/{index-D-GkMvG_.js → index-7ATAUQCS.js} +1 -1
- package/dist/assets/{index-DCMTEGgZ.js → index-BHBa5bY_.js} +1 -1
- package/dist/assets/{index-ozDSMBYi.js → index-BIwlKqnv.js} +1 -1
- package/dist/assets/{index-ByYl1QnH.js → index-BJflKzAj.js} +1 -1
- package/dist/assets/{index-ChpB_Xok.js → index-BLG5zTvA.js} +1 -1
- package/dist/assets/{index-B0wa_Sca.js → index-BZeVpmIU.js} +1 -1
- package/dist/assets/{index-CQU16qpp.js → index-BjygIrih.js} +1 -1
- package/dist/assets/{index-CndSwPzI.js → index-BvJGY_nw.js} +1 -1
- package/dist/assets/{index-DU7LqWjQ.js → index-C01E65Yy.js} +1 -1
- package/dist/assets/{index-COZKzHiS.js → index-CPYtoS2i.js} +1 -1
- package/dist/assets/{index-Bwzls06Y.js → index-Cc3xWU8h.js} +1 -1
- package/dist/assets/{index-CTFO1wAr.js → index-CcMsQvPf.js} +1 -1
- package/dist/assets/{index-CaLGv6xG.js → index-Cggmiiia.js} +221 -221
- package/dist/assets/{index-VIHj0M7P.js → index-ChjVC0V6.js} +1 -1
- package/dist/assets/{index-Du6azec5.js → index-CplLRft2.js} +1 -1
- package/dist/assets/{index-BcFOSrVl.js → index-CtsIzdJq.js} +1 -1
- package/dist/assets/{index-B22_1WOD.js → index-Cx6pRmO2.js} +1 -1
- package/dist/assets/{index--YUaVsoq.js → index-CzyLZl7H.js} +21 -21
- package/dist/assets/{index-TTSckhl8.js → index-DFAKgndM.js} +1 -1
- package/dist/assets/{index-zQvc8SIq.js → index-DFxBHRuN.js} +1 -1
- package/dist/assets/{index-BmHPL-9s.js → index-Da_LrvSz.js} +3 -3
- package/dist/assets/{index-46Rvg-Bo.js → index-DbFNRcRj.js} +1 -1
- package/dist/assets/{index-MoRwjSwP.js → index-Dm5LygxH.js} +1 -1
- package/dist/assets/{index-B5Pm_bPi.js → index-DnemmBZZ.js} +1 -1
- package/dist/assets/{index-BqmsKa7O.js → index-Dnz1P7hS.js} +1 -1
- package/dist/assets/{index-BsjCwHmK.js → index-J--b5UMY.js} +1 -1
- package/dist/assets/{index-CFQwbx1S.js → index-Ro4L6Nk9.js} +1 -1
- package/dist/assets/{index-BJDKEH0b.js → index-Z80N-6o6.js} +5 -5
- package/dist/assets/{index-D_u35EkG.js → index-tZwe6kGH.js} +1 -1
- package/dist/assets/{index-D5PXuh6o.js → index-xFQdePlH.js} +11 -11
- package/dist/assets/{index.es-CYl4P_xg.js → index.es-Bu678ogX.js} +1 -1
- package/dist/assets/{index.esm-DDyWFyUp.js → index.esm-eUQd5uNf.js} +1 -1
- package/dist/assets/{invitation-YCFRX3K4.js → invitation-BtBp97Li.js} +1 -1
- package/dist/assets/{invite-BVqEvYi7.js → invite-D6nXY3dB.js} +1 -1
- package/dist/assets/{issue-passport-Bt2ICeaH.js → issue-passport-NVB_pTUn.js} +1 -1
- package/dist/assets/{item-DmDrPoAj.js → item-BvTmy-2T.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-B9z92TrV.js → jss-plugin-props-sort.esm-DF2UeHPM.js} +1 -1
- package/dist/assets/{launch-result-message-DpNOYW9u.js → launch-result-message--yAIU8ij.js} +1 -1
- package/dist/assets/{layout-D41GSjev.js → layout-CfszkMaR.js} +1 -1
- package/dist/assets/{list-header-cw9lRKSX.js → list-header-BvVRSRDr.js} +1 -1
- package/dist/assets/localization-CdHA54kI.js +1 -0
- package/dist/assets/{log-DVDRYSeA.js → log--54sjPHz.js} +1 -1
- package/dist/assets/{login-BLIQel5D.js → login-eHr1AdTW.js} +1 -1
- package/dist/assets/{login-oauth-callback--4mls_Fw.js → login-oauth-callback-D6HMi3t4.js} +1 -1
- package/dist/assets/{logo-uploader-CHBeSau3.js → logo-uploader-Ct05IBgW.js} +3 -3
- package/dist/assets/{lost-passport-6PNRRlCd.js → lost-passport-DFkMMATo.js} +3 -3
- package/dist/assets/{lottie-C16LOHrZ.js → lottie-CHlQE8LI.js} +1 -1
- package/dist/assets/{notifications-DHYTuxQt.js → notifications-DNefq6Ai.js} +1 -1
- package/dist/assets/{open-window-CEqHc-YI.js → open-window-Hoovi1SQ.js} +1 -1
- package/dist/assets/{overview-jW78KQ6d.js → overview-C99SD8Sj.js} +2 -2
- package/dist/assets/{page-header-Bjl7D46v.js → page-header-BcMcWChj.js} +1 -1
- package/dist/assets/{permission-BK9x4qjQ.js → permission-CoUl_-TD.js} +1 -1
- package/dist/assets/{preferences-4fQh6PBV.js → preferences-BhQwvtNs.js} +1 -1
- package/dist/assets/publish-resource-BrX6QZZv.js +1 -0
- package/dist/assets/{react-DCoycSH4.js → react-CM36OPYv.js} +19 -19
- package/dist/assets/{redux-Xix6UYN5.js → redux-CmQ0AupQ.js} +1 -1
- package/dist/assets/{resource-dialog-CMS1eEc0.js → resource-dialog-DPp8WhH6.js} +1 -1
- package/dist/assets/sdk-SqTk_6RZ.js +1 -0
- package/dist/assets/{selector-BcHp8r2b.js → selector-DplhIXMq.js} +1 -1
- package/dist/assets/session-B20aBevE.js +1 -0
- package/dist/assets/{setup-DXuWRjLR.js → setup-CHeBPg1W.js} +3 -3
- package/dist/assets/{shorten-label-DZ5n7VkB.js → shorten-label-Bfc9PQs9.js} +1 -1
- package/dist/assets/{slicedToArray-DiN6EoYj.js → slicedToArray-ZTJkdcdS.js} +2 -2
- package/dist/assets/{spaces-DBKeHx91.js → spaces-BKVgtwre.js} +1 -1
- package/dist/assets/{start-C4mLiamV.js → start-Bma6-tzj.js} +1 -1
- package/dist/assets/{step-actions-NyA7AGpj.js → step-actions-CZsxCY_f.js} +1 -1
- package/dist/assets/{studio-CC7YQ-9Q.js → studio-BG-LwJ0Y.js} +1 -1
- package/dist/assets/{switch-control-VH3u6pwk.js → switch-control-BQicjBlL.js} +1 -1
- package/dist/assets/{toUpper-D8eon-dl.js → toUpper-Cl4b2ZOs.js} +1 -1
- package/dist/assets/{transfer-Dp36g86n.js → transfer-iCxgFgdA.js} +1 -1
- package/dist/assets/{uniqBy-Cev3lMnU.js → uniqBy-Depm40zB.js} +1 -1
- package/dist/assets/{unsubscribe-Be0k3pAZ.js → unsubscribe-j4j95BgM.js} +1 -1
- package/dist/assets/{url-join-B-UX0vQK.js → url-join-CXExeXLp.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-DF1lby8c.js → use-blocklet-info-for-connect-did-spaces-ByFtSRMu.js} +1 -1
- package/dist/assets/{use-mobile-BLqjm-5m.js → use-mobile-Bjgo--1J.js} +1 -1
- package/dist/assets/{useAsync-PE3W-DLW.js → useAsync-BrIwhlfT.js} +1 -1
- package/dist/assets/{useFormControl-DMGx-jdt.js → useFormControl-xR1NlgHj.js} +1 -1
- package/dist/assets/{useLocalStorage-eP0cInBT.js → useLocalStorage-C1CX-JWm.js} +1 -1
- package/dist/assets/{useSetState-DEVLe2Fz.js → useSetState-Buep2Jkr.js} +1 -1
- package/dist/assets/{useSlot-BrU8y60n.js → useSlot-DJoDEpM7.js} +1 -1
- package/dist/assets/{useSlotProps-fP10cTIP.js → useSlotProps-thaabt4w.js} +1 -1
- package/dist/assets/{useThemeProps-C59Glnbx.js → useThemeProps-DthQbzYX.js} +1 -1
- package/dist/assets/{user-center-CkHZ_2ui.js → user-center-LFYa8NAO.js} +1 -1
- package/dist/assets/{user-sessions-C8nlOE7U.js → user-sessions-ChQlFWXn.js} +1 -1
- package/dist/assets/{util-yXMDVjHb.js → util-BKJ5oRJz.js} +1 -1
- package/dist/assets/{wrap-locale-DL11xPuS.js → wrap-locale-B9-80Orf.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +25 -25
- package/dist/assets/add-component-core-CGy2QLvt.js +0 -979
- package/dist/assets/api-DJ1sjN9o.js +0 -1
- package/dist/assets/click-to-copy-C932KUDy.js +0 -1
- package/dist/assets/localization-9mzelGR9.js +0 -1
- package/dist/assets/publish-resource-RsLy3V3l.js +0 -1
- package/dist/assets/sdk-B75CkXUw.js +0 -1
- package/dist/assets/session-AqfK0jLG.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Z as Ae,$ as Be,j as o,bB as K,c as Re,bC as Te,u as z,r as O,bD as ee,l as y,k as C,ak as ve,B as x,A as je,bE as V,T as B,bg as Ue,O as v,bF as I,bG as Le,bH as ze,a as te,bI as T,n as oe,D as De,aD as H,t as _,bJ as Ee,bK as we,bL as fe,bM as _e,Q,aU as ne,bN as Fe,bO as Me,U as ae,bP as he,aT as Oe,a3 as ie,bQ as ye,bR as We,bS as P,bT as $e,bU as He,bV as Ne,bW as Ge,s as qe,q as Ve,bX as Qe,bY as Xe,bZ as Je,b_ as Ke,b$ as Ze,c0 as Ye,c1 as eo,c2 as oo,c3 as ro,m as to,R as no,w as ge,by as ao,H as io}from"./index-CaLGv6xG.js";import{H as so,F as lo}from"./index-BSHfXuRt.js";import{f as co,g as po}from"./index-ozDSMBYi.js";import{S as uo,t as U,a as xo,b as fo,M as ho,C as go,P as mo,c as bo,E as vo,D as jo,A as wo,d as M,I as yo,L as ko,e as Co,f as Po}from"./resource-dialog-CMS1eEc0.js";import{T as ke}from"./index-ByYl1QnH.js";import{E as Z}from"./index-B5Pm_bPi.js";import{E as So}from"./fallback-Dz8ZuYD5.js";import{u as Io}from"./uniqBy-Cev3lMnU.js";import{S as Ce}from"./index-ChpB_Xok.js";import{i as Ao}from"./index-VIHj0M7P.js";import{S as Pe}from"./Select-CMM8MR9i.js";import{T as Bo}from"./TextField-BYelVRF_.js";import{I as Ro}from"./InputAdornment-Dr1oU3Hs.js";import{A as To}from"./Alert-BriK3hjA.js";import{S as Uo}from"./FormControlLabel-CQnpTkDU.js";import{U as Lo}from"./user-sessions-C8nlOE7U.js";import"./index-COZKzHiS.js";import"./index-D_u35EkG.js";import"./Toolbar-DI2YKZS2.js";import"./Hidden-c0nvbE8_.js";import"./ExpandMore-DpLFPsWa.js";import"./Avatar-CpQhQmV4.js";import"./useSlot-BrU8y60n.js";import"./MoreVert-BQD92YJp.js";import"./selector-BcHp8r2b.js";import"./OpenInNew-Ba4HupG6.js";import"./CloseOutlined-CYZb8eDz.js";import"./use-mobile-BLqjm-5m.js";import"./Link-BzeSWqDp.js";import"./FormControl-Dq6XW9kS.js";import"./useFormControl-DMGx-jdt.js";import"./InputLabel-DYr7To9X.js";import"./FilterList-BpmYd7MC.js";import"./useThemeProps-C59Glnbx.js";import"./toPropertyKey-PLuKRk1e.js";import"./FormGroup-C8sAhYQk.js";import"./ListItemText-BWMpM4cA.js";import"./LastPage-DV14H4DC.js";import"./index-BqmsKa7O.js";import"./redux-Xix6UYN5.js";import"./Search-D_9DtKpx.js";import"./Delete-rvy-F0hT.js";var se={},zo=Be;Object.defineProperty(se,"__esModule",{value:!0});var Se=se.default=void 0,Do=zo(Ae()),Eo=o;Se=se.default=(0,Do.default)((0,Eo.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"RefreshOutlined");const _o=(e,c)=>{let s;return e==="default"?s=K.DEFAULT_COLORS["app-passport"]:e==="auto"?s=K.getNftBGColorFromDid(c):s=K.getNftBGColor(e),s},Fo=({issuer:e="",title:c="",issuerDid:s="",issuerAvatarUrl:g="",ownerDid:a="",ownerName:p="",ownerAvatarUrl:f="",preferredColor:n="default",revoked:l=!1,isDataUrl:r=!1,width:u="100%",height:h="100%"})=>{const j=_o(n,s),d=K.getSvg({width:u,height:h,tag:l?"revoked":"",tagVariant:l?"error":"info",color:j,did:a,variant:"app-passport",verifiable:!0,issuer:{name:e,icon:g},header:{name:c,icon:f},extra:{key:"Exp",value:"2123-01-01"}});return r?`data:image/svg+xml;utf8,${encodeURIComponent(d)}`:d},Y=e=>{const{response:c}=e;return c?`Request failed: ${c.status} ${c.statusText}: ${JSON.stringify(c.data)}`:e.message},Mo=e=>Fo({...e,issuerAvatarUrl:Re(window.location.origin,Te,"/blocklet/logo")});function me({user:e,isMyself:c=!0,showFullDid:s=!0,switchPassport:g,switchProfile:a,openSettings:p,...f}){var b;const{locale:n}=z(),{session:l}=O.useContext(ee),[r,u]=O.useState(!1),h=y((m,k={})=>T(U,m,n,"en",k)),j=C(()=>{var m;return(m=(e==null?void 0:e.passports)||[])==null?void 0:m.find(k=>k.name===e.role)},[e==null?void 0:e.passports,e==null?void 0:e.role]),d=ve(),i=d.breakpoints.down("md");if(!e)return null;const t=async()=>{try{u(!0),await l.refreshProfile(),l.refresh(),_.success(T(U,"refreshProfile.successfully",n))}catch(m){console.error(m),_.error(Y(m))}finally{u(!1)}};return o.jsxs(x,{...f,sx:{position:"relative",...f.sx},children:[o.jsx(je,{src:e==null?void 0:e.avatar,did:e==null?void 0:e.did,size:i?64:80,variant:"circle",shape:"circle",sx:{borderRadius:"100%",backgroundColor:"#fff",position:"relative",overflow:"hidden",mb:1.5,...c?{cursor:"pointer","&:hover":{"&::after":{content:`"${h("switchProfile")}"`}},"&::after":{color:"white",position:"absolute",fontSize:"12px",bottom:0,left:0,right:0,height:"50%",backgroundColor:"rgba(0, 0, 0, 0.3)",display:"flex",justifyContent:"center",alignItems:"center"}}:{}},onClick:c?a:V}),o.jsxs(B,{variant:"h6",sx:{fontWeight:"bold",display:"flex",alignItems:"center",gap:1,fontSize:"24px !important"},children:[e==null?void 0:e.fullName,c?o.jsxs(o.Fragment,{children:[o.jsx(Ue,{label:(j==null?void 0:j.title)||(e==null?void 0:e.role)||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:v.textBase,borderColor:v.strokeBorderStrong,backgroundColor:"transparent",textTransform:"capitalize",pr:1,pl:.5,"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},"&:active":{boxShadow:"none"}},clickable:!0,deleteIcon:o.jsx(I,{icon:Le,color:v.textBase}),onDelete:g,onClick:g}),!ze(e.url)&&o.jsx(te,{title:!r&&T(U,"refreshProfile.title",n),sx:{display:"flex",alignItems:"center"},children:r?o.jsx(oe,{size:"16px",sx:{color:(b=d==null?void 0:d.colors)==null?void 0:b.primary,ml:.5}}):o.jsx(Se,{onClick:t})})]}):null]}),o.jsx(De,{did:e.did,showQrcode:!0,copyable:!0,compact:!s,responsive:!s,locale:n}),c?o.jsx(H,{sx:{borderRadius:2,color:v.textBase,backgroundColor:"white",border:`1px solid ${v.strokeBorderBase}`,position:"absolute",top:0,right:0},disableFocusRipple:!0,onClick:p,children:o.jsx(I,{icon:uo})}):null]})}function Oo({data:e,...c}){return o.jsxs(x,{...c,sx:{display:"flex",alignItems:"center",justifyContent:"space-between",...c.sx},children:[o.jsxs(B,{sx:{display:"flex",alignItems:"center",color:v.textBase,fontSize:"14px",gap:1,fontWeight:500},children:[e.icon,e.title]}),o.jsx(B,{sx:{color:v.textSubtitle,whiteSpace:"pre-wrap",fontSize:"14px"},children:e.content})]})}function Wo({user:e,isMySelf:c=!1,...s}){const{locale:g}=z(),a=y((n,l={})=>T(U,n,g,"en",l)),p=C(()=>(e==null?void 0:e.sourceProvider)&&Ee[e.sourceProvider]||a("unknown"),[e==null?void 0:e.sourceProvider]),f=[];return c&&(f.push({icon:o.jsx(I,{fontSize:16,icon:we}),title:a("email"),content:(e==null?void 0:e.email)||a("emptyField")}),f.push({icon:o.jsx(I,{fontSize:16,icon:xo}),title:a("lastLoginAt"),content:e!=null&&e.lastLoginAt?o.jsx(fe,{locale:g,value:e==null?void 0:e.lastLoginAt,relativeRange:3*86400*1e3}):a("unknown")}),f.push({icon:o.jsx(I,{fontSize:16,icon:fo}),title:a("lastLoginIp"),content:(e==null?void 0:e.lastLoginIp)||a("unknown")})),f.push({icon:o.jsx(I,{fontSize:16,icon:ho}),title:a("createdAt"),content:e!=null&&e.createdAt?o.jsx(fe,{locale:g,value:e==null?void 0:e.createdAt}):a("unknown")}),c&&f.push({icon:o.jsx(I,{fontSize:16,icon:go}),title:a("registerFrom"),content:p}),o.jsx(x,{...s,sx:{display:"flex",flexDirection:"column",gap:1.5,...s==null?void 0:s.sx},children:f.map(n=>o.jsx(Oo,{data:n,sx:{flex:1}},n.title))})}function $o({user:e,...c}){var l,r;const{locale:s}=z(),g=y((u,h={})=>T(U,u,s,"en",h)),a=ve(),p=C(()=>{const u=((e==null?void 0:e.passports)||[]).map(h=>({...h,revoked:h.status===_e.REVOKED}));return u.sort((h,j)=>h.revoked===j.revoked?0:h.revoked?1:-1),Io(u,"role")},[e==null?void 0:e.passports]),f=C(()=>p==null?void 0:p.find(u=>u.name===e.role),[p,e==null?void 0:e.role]),n=C(()=>{var u,h;return((h=(u=a==null?void 0:a.palette)==null?void 0:u.primary)==null?void 0:h.main)||v.textBase},[(r=(l=a==null?void 0:a.palette)==null?void 0:l.primary)==null?void 0:r.main]);return p.length===0?o.jsx(x,{children:o.jsx(Z,{children:g("noPassport")})}):o.jsx(x,{...c,sx:{display:"grid",gridTemplateColumns:{xs:"repeat(2, 1fr)",sm:"repeat(3, 1fr)",md:"repeat(2, 1fr)"},gap:2.5,...c.sx},children:p.map(u=>o.jsx(mo,{passport:u,user:e,color:window.blocklet.passportColor,createPassportSvg:Mo,title:f&&f.role===u.role?g("currentPassport"):"",sx:{flexDirection:"column",alignItems:"center",gap:1,".passport-item__display":{width:166,height:166,borderRadius:2,px:2,display:"flex",justifyContent:"center",backgroundColor:v.backgroundsBgComponent,boxShadow:f&&f.role===u.role?`0px 2px 4px 0px ${n}, 0px 1px 2px -1px ${n}, 0px 0px 0px 1px ${n} !important`:"unset"},".passport-item__body":{marginLeft:"0 !important"}}},u.id))})}function be({onTest:e=V,onDelete:c=V,onSave:s=V,onCancel:g=V,type:a="slack",url:p="",edit:f=!1}){const{locale:n}=z(),l=y((t,b={})=>T(U,t,n,"en",b)),r=Q({type:a||"slack",url:p||"",edit:f??!1,error:"",loading:!1}),u=y(()=>r.url?Ao(r.url)?(r.error="",!0):(r.error=l("common.invalid"),!1):(r.error=l("common.required"),!1)),h=y(()=>{r.edit=!1,r.url=p||"",r.type=a||"slack",r.error="",r.loading=!1,g()}),j=y(async t=>{r.loading=!0,await e(t),r.loading=!1}),d=y(t=>()=>{u()&&t({type:r.type,url:r.url})}),i=C(()=>r.error?o.jsx(B,{component:"span",color:"error",children:r.error}):r.edit?r.loading?o.jsx(oe,{size:16}):o.jsx(H,{size:"small",onClick:d(j),sx:{mr:-1},children:o.jsx(I,{icon:bo})}):null,[r.error,r.edit,r.loading]);return o.jsxs(x,{sx:{display:"flex",gap:1.5,width:"100%",alignItems:{xs:"flex-start",md:"center"},flexDirection:{xs:"column",md:"row"}},children:[o.jsxs(Pe,{sx:{borderRadius:2,"&.Mui-disabled":{backgroundColor:v.backgroundsBgField}},disabled:!r.edit||r.loading,size:"small",value:r.type,onChange:t=>{r.type=t.target.value},children:[o.jsx(ne,{value:"api",children:l("webhook.url")}),o.jsx(ne,{value:"slack",children:l("webhook.slack")})]}),o.jsxs(x,{sx:{display:"flex",alignItems:"center",gap:.5,width:"100%"},children:[o.jsx(Bo,{sx:{flex:1,".MuiInputBase-root":{borderRadius:2,"&.Mui-disabled":{backgroundColor:v.backgroundsBgField}}},disabled:!r.edit||r.loading,fullWidth:!0,size:"small",required:!0,value:r.url,onChange:t=>{r.url=t.target.value,u()},error:!!r.error,InputProps:{endAdornment:o.jsx(Ro,{position:"end",children:i})}}),o.jsx(x,{sx:{display:"flex",gap:.5},children:r.edit?o.jsxs(o.Fragment,{children:[o.jsx(H,{color:"success",onClick:d((...t)=>{s(...t),r.edit=!1}),sx:{borderRadius:2,border:`1px solid ${v.strokeBorderBase}`},children:o.jsx(I,{icon:Fe})}),o.jsx(H,{color:"error",onClick:h,sx:{borderRadius:2,border:`1px solid ${v.strokeBorderBase}`},children:o.jsx(I,{icon:Me})})]}):o.jsxs(o.Fragment,{children:[o.jsx(H,{onClick:()=>{r.edit=!0},sx:{borderRadius:2,border:`1px solid ${v.strokeBorderBase}`},children:o.jsx(I,{icon:vo})}),o.jsx(H,{color:"error",onClick:()=>{c({type:r.type,url:r.url})},sx:{borderRadius:2,border:`1px solid ${v.strokeBorderBase}`},children:o.jsx(I,{icon:jo})})]})})]})]})}function re({title:e,description:c,value:s,onChange:g}){return o.jsx(Ce,{checked:s,labelProps:{label:o.jsxs(B,{color:"text.primary",sx:{fontSize:14,display:"flex",flexFlow:"wrap",columnGap:1,flex:1},children:[e,c]})},size:"small",onChange:g})}function Ho({user:e}){var d,i;const{locale:c}=z(),s=y((t,b={})=>T(U,t,c,"en",b)),g=Q({showAdd:!1}),a=ae(async()=>await M.user.getUserNotificationConfig(),{refreshDeps:[e],loadingDelay:300}),p=C(()=>{var t;return{wallet:!0,email:!0,phone:!1,push:!0,...((t=a==null?void 0:a.data)==null?void 0:t.notifications)||{}}},[(d=a==null?void 0:a.data)==null?void 0:d.notifications]),f=C(()=>{var t;return((t=a==null?void 0:a.data)==null?void 0:t.webhooks)||[]},[(i=a==null?void 0:a.data)==null?void 0:i.webhooks]),n=y(async t=>{try{await M.user.saveUserNotificationConfig(t),_.success(s("saveSuccess")),a.run()}catch(b){_.error(Y(b))}}),l=y(async(t,b)=>{await n({notifications:{[t]:b}})}),r=async t=>{try{await M.user.testNotificationWebhook(t),_.success(s("webhookTested"))}catch(b){_.error(Y(b))}},u=y(async t=>{await n({webhooks:f.filter((b,m)=>m!==t)})}),h=y(async(t,b)=>{await n({webhooks:f.map((m,k)=>k===t?b:m)})}),j=y(async t=>{await n({webhooks:[...f,t]}),g.showAdd=!1});return a.error?o.jsx(To,{severity:"error",children:a.error.message}):a.loading||!a.data?o.jsx(x,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100px"},children:o.jsx(oe,{})}):o.jsxs(x,{sx:{display:"flex",flexDirection:"column",gap:2},children:[o.jsxs(x,{sx:{display:"flex",flexDirection:"column",gap:1,alignItems:"start",".MuiFormControlLabel-root":{gap:1,m:0,flexDirection:{xs:"row-reverse",md:"row"},width:{xs:"100%",md:"unset"}},".MuiSwitch-track":{borderRadius:"100vw"},".MuiSwitch-thumb":{borderRadius:"100%"},".MuiSwitch-root.MuiSwitch-sizeSmall":{height:"20px",width:"36px",".MuiSwitch-thumb":{width:"16px",height:"16px"}}},children:[o.jsx(re,{value:p.wallet,title:s("walletNotification"),onChange:t=>l("wallet",t.target.checked),description:he(e)&&o.jsx(B,{component:"span",color:"text.secondary",fontSize:13,children:he(e)})}),o.jsx(re,{value:p.email,onChange:t=>l("email",t.target.checked),title:s("emailNotification"),description:(e==null?void 0:e.email)&&o.jsx(B,{component:"span",color:"text.secondary",fontSize:13,children:e==null?void 0:e.email})}),o.jsx(re,{value:p.push,title:s("pushNotification"),onChange:t=>l("push",t.target.checked)})]}),o.jsx(Oe,{}),o.jsxs(Uo,{spacing:1.5,useFlexGap:!0,direction:"column",alignItems:"start",children:[f.map((t,b)=>o.jsx(be,{onTest:r,onDelete:()=>u(b),onSave:(...m)=>h(b,...m),type:t.type,url:t.url,edit:!1},`${b}_${t.url}`)),g.showAdd&&o.jsx(be,{onTest:r,onCancel:()=>{g.showAdd=!1},onSave:(...t)=>j(...t),edit:!0},"add"),o.jsx(ie,{variant:"outlined",size:"small",sx:{color:v.foregroundsFgBase,borderColor:v.strokeBorderBase,backgroundColor:v.buttonsButtonNeutral,"&:hover":{borderColor:v.strokeBorderBase,backgroundColor:v.buttonsButtonNeutralHover},py:.5,borderRadius:2},startIcon:o.jsx(I,{icon:wo}),onClick:()=>{g.showAdd=!0},children:s("addWebhook")})]})]})}function No({configList:e,onSave:c}){const[s,g]=O.useState(e),{locale:a}=z(),p=y((n,l={})=>T(U,n,a,"en",l)),f=y(async(n,l)=>{try{const r=await M.user.saveUserPrivacyConfig({[n]:!l});g(s.map(u=>({...u,value:(r==null?void 0:r[u.key])??u.value}))),_.success(p("saveSuccess")),c("privacy")}catch(r){_.error(Y(r))}});return o.jsx(x,{sx:{display:"flex",flexDirection:"column",gap:1,alignItems:"start",".MuiFormControlLabel-root":{gap:1,m:0,flexDirection:{xs:"row-reverse",md:"row"},width:{xs:"100%",md:"unset"}},".MuiSwitch-track":{borderRadius:"100vw"},".MuiSwitch-thumb":{borderRadius:"100%"},".MuiSwitch-root.MuiSwitch-sizeSmall":{height:"20px",width:"36px",".MuiSwitch-thumb":{width:"16px",height:"16px"}}},children:s.map(n=>o.jsx(Ce,{checked:!n.value,labelProps:{label:o.jsx(B,{color:"text.primary",sx:{fontSize:14,display:"flex",flexFlow:"wrap",columnGap:1,flex:1},children:p("toPublic",{name:n.name})})},size:"small",onChange:l=>f(n.key,l.target.checked)},n.key))})}function Go({item:e}){var t,b,m,k,X;const{confirmApi:c,confirmHolder:s}=ye(),g=Q({loading:!1}),{locale:a}=z(),p=y((L,A={})=>T(U,L,a,"en",A)),{session:f}=O.useContext(ee),{bindOAuth:n,unbindOAuth:l,setBaseUrl:r,baseUrl:u}=f.useOAuth(),h={[P.AUTH0]:we,[P.APPLE]:$e,[P.GITHUB]:He,[P.GOOGLE]:Ne},j=C(()=>h[e==null?void 0:e.provider],[e==null?void 0:e.provider]),d=C(()=>We[e==null?void 0:e.provider]||"unknown",[e==null?void 0:e.provider]),i=y(async()=>{try{g.loading=!0,await new Promise((L,A)=>{var R;if(e!=null&&e._bind)c.open({title:p("thirdPartyLogin.confirmUnbind",{name:d}),content:p("thirdPartyLogin.confirmUnbindDescription",{name:d}),confirmButtonText:p("common.confirm"),cancelButtonText:p("common.cancel"),onConfirm(E){l({session:f,connectedAccount:{...Ge(e,["did","pk"]),showProvider:e.provider,provider:e._rawProvider}}).then(L).catch(A),E()},onCancel:L});else{const E=u,J=window==null?void 0:window.blocklet;let W="/";const N=qe(J),$=Ve(J);N&&($!=null&&$.appPid)&&((R=f==null?void 0:f.user)!=null&&R.sourceAppPid)&&(W=$.appUrl),r(W),n({session:f,oauthItem:{...e,provider:e._rawProvider}}).then(L).catch(A).finally(()=>{r(E)})}})}catch(L){console.error(`Failed to ${e!=null&&e._bind?"unbind":"bind"} oauth account`,L)}finally{g.loading=!1}});return o.jsxs(o.Fragment,{children:[o.jsxs(x,{sx:{borderRadius:2,border:`1px solid ${v.strokeBorderBase}`,background:v.backgroundsBgField,display:"flex",alignItems:"center",py:1,px:1.5,gap:.75,fontSize:"14px",lineHeight:1,overflow:"hidden"},children:[o.jsx(x,{component:I,icon:j,width:"1em",height:"1em",sx:{flexShrink:0,fontSize:16}}),o.jsx(x,{sx:{flex:1},children:d}),o.jsxs(x,{sx:{display:"flex",alignItems:"center",gap:.5},children:[o.jsx(x,{sx:{flex:1,textOverflow:"ellipsis",overflow:"hidden",lineHeight:"normal"},children:((t=e.userInfo)==null?void 0:t.email)||e.did}),(b=e.userInfo)!=null&&b.email?o.jsx(te,{title:o.jsx(o.Fragment,{children:o.jsxs(x,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(je,{size:36,variant:"circle",shape:"circle",src:(m=e.userInfo)==null?void 0:m.picture,did:e.did}),o.jsxs(x,{children:[o.jsx(B,{sx:{whiteSpace:"normal",wordBreak:"break-all",fontSize:"0.9rem"},children:(k=e.userInfo)==null?void 0:k.name}),o.jsx(B,{sx:{whiteSpace:"normal",wordBreak:"break-all",fontSize:"0.9rem"},children:(X=e.userInfo)==null?void 0:X.email})]})]})}),children:o.jsx(x,{component:I,icon:yo,color:v.textSubtitle,fontSize:16,sx:{cursor:"pointer",flexShrink:0}})}):null]})]}),o.jsx(te,{title:e._mainProvider?p("thirdPartyLogin.mainProviderCantRemove"):"",children:o.jsx(x,{children:o.jsx(ie,{variant:"outlined",size:"small",sx:{color:e!=null&&e._bind?v.red:v.foregroundsFgBase,borderColor:e!=null&&e._bind?v.red:v.strokeBorderBase,backgroundColor:v.buttonsButtonNeutral,"&:hover":{borderColor:e!=null&&e._bind?v.red:v.strokeBorderBase,backgroundColor:v.buttonsButtonNeutralHover},py:.5,borderRadius:2,fontWeight:500,whiteSpace:"nowrap"},fullWidth:!0,startIcon:g.loading?null:o.jsx(I,{icon:ko}),onClick:i,disabled:e._mainProvider,loading:g.loading,children:e!=null&&e._bind?p("thirdPartyLogin.disconnect"):p("thirdPartyLogin.connect")})})}),s]})}function qo({user:e}){const{session:c}=O.useContext(ee),[s,g]=O.useState({}),{getOAuthConfigs:a}=c.useOAuth();Qe(async()=>{const n=await a({sourceAppPid:e==null?void 0:e.sourceAppPid});g(n)},[e==null?void 0:e.sourceAppPid]);const p=C(()=>Object.keys(s).map(l=>({...s[l],provider:l})).filter(l=>l.enabled),[s]),f=C(()=>{const n=Xe(e);let l=!1,r="",u=Je(e);const h=n.find(d=>d.provider===P.AUTH0);return h&&(h.id.startsWith("google-oauth2|")&&(n.some(d=>d.provider==="google")||(l=!0,r=P.GOOGLE,u===P.AUTH0&&(u=P.GOOGLE))),h.id.startsWith("appleid|")&&(n.some(d=>d.provider===P.APPLE)||(l=!0,r=P.APPLE,u===P.AUTH0&&(u=P.APPLE))),h.id.startsWith("github|")&&(n.some(d=>d.provider===P.GITHUB)||(l=!0,r=P.GITHUB,u===P.AUTH0&&(u=P.GITHUB)))),p.map(d=>{if(d.provider===P.AUTH0&&l)return null;const i=l&&d.provider===r?n.find(t=>t.provider===P.AUTH0):n.find(t=>t.provider===d.provider);return i?{...d,provider:d.provider,did:i.did,pk:i.pk,userInfo:i.userInfo,_bind:!0,_rawProvider:i.provider,_mainProvider:d.provider===u}:{...d,provider:d.provider,_rawProvider:d.provider,_mainProvider:d.provider===u}}).filter(Boolean).sort((d,i)=>(d==null?void 0:d.order)!==void 0&&(i==null?void 0:i.order)!==void 0?d.order-i.order:(d==null?void 0:d.order)!==void 0?-1:1)},[e==null?void 0:e.connectedAccounts,p]);return o.jsx(x,{sx:{gap:1,display:"grid",gridTemplateColumns:"1fr min-content"},children:f.map(n=>o.jsx(Go,{item:n},n==null?void 0:n.provider))})}const Vo=[{label:"English",value:"en"},{label:"中文",value:"zh"}];function Qo({user:e,onSave:c}){const{locale:s,changeLocale:g}=z(),a=y((n,l={})=>T(U,n,s,"en",l)),p=Q({locale:e.locale,loading:!1}),f=y(async n=>{try{const{value:l}=n.target;p.loading=!0,await Promise.all([M.user.saveProfile({locale:l}),Ze(350)]),await c("profile"),g(l),p.locale=l}finally{p.loading=!1}});return o.jsxs(x,{sx:{gap:1,display:"grid",alignItems:"center",gridTemplateColumns:{xs:"1fr",sm:"max-content 1fr"}},children:[o.jsx(x,{children:a("commonSetting.locale")}),o.jsxs(x,{children:[o.jsx(Ke,{color:"primary",sx:{visibility:p.loading?"visible":"hidden",height:2}}),o.jsx(Pe,{fullWidth:!0,value:p.locale,onChange:f,size:"small",children:Vo.map(n=>o.jsx(ne,{value:n.value,children:n.label}))})]})]})}function Xo({user:e,settings:c,onSave:s,...g}){const{locale:a}=z(),p=y((h,j={})=>T(U,h,a,"en",j)),f=C(()=>((c==null?void 0:c.userCenterTabs)||[]).map(j=>({key:j.value,name:j.label,value:j.protected})),[c==null?void 0:c.userCenterTabs]),n=C(()=>{var h;return[{label:p("commonSetting.title"),value:"common",content:o.jsx(Qo,{user:e,onSave:s})},{label:p("notificationManagement"),value:"notification",content:o.jsx(Ho,{user:e})},{label:p("thirdPartyLogin.title"),value:"thirdPartyLogin",content:o.jsx(qo,{user:e})},{label:p("privacyManagement"),value:"privacy",content:o.jsx(No,{configList:f,onSave:s})},((h=e==null?void 0:e.didSpace)==null?void 0:h.endpoint)&&{label:p("storageManagement"),value:"storage",content:o.jsx(Co,{children:o.jsx(Po,{})})},{label:p("sessionManagement"),value:"session",content:o.jsx(Lo,{user:e})}].filter(Boolean)},[e,f]),l=Q({tab:n[0].value}),r=C(()=>n.find(h=>h.value===l.tab),[l.tab,n]),u=y(h=>{l.tab=h});return r&&o.jsxs(x,{...g,sx:{...g==null?void 0:g.sx,minWidth:{md:500},maxWidth:"100%"},children:[o.jsx(ke,{variant:"card",tabs:n,current:r.value,onChange:u}),o.jsx(x,{mt:2.5,children:r.content})]})}function Jo({children:e,notLoginContent:c=null,currentTab:s,contentProps:g={},disableAutoRedirect:a=!1,autoPopupSetting:p=!1,hideFooter:f=!1,headerProps:n={},footerProps:l={},userDid:r=void 0,stickySidebar:u=!1}){var le,ce,de,pe,ue,xe;const{locale:h}=z(),j=y((w,S={})=>T(U,w,h,"en",S)),d=O.useContext(ee),i=d==null?void 0:d.session,t=C(()=>{var D;if(r)return r;const w=window.location.href,S=Ye(w);return S!=null&&S.did?Array.isArray(S.did)?S.did[0]:S.did:(D=i==null?void 0:i.user)==null?void 0:D.did},[(le=i==null?void 0:i.user)==null?void 0:le.did,r]),b=C(()=>{var w;return i!=null&&i.user?t===((w=i==null?void 0:i.user)==null?void 0:w.did):!1},[t,(ce=i==null?void 0:i.user)==null?void 0:ce.did]),m=ae(async()=>{if(await eo(()=>i==null?void 0:i.initialized),b)return i.user;if(t)return M.user.getUserPublicInfo({did:t})},{refreshDeps:[t,b,i==null?void 0:i.initialized,i==null?void 0:i.user]}),k=ae(async()=>m.data&&s?await M.user.getUserPrivacyConfig({did:t}):null,{refreshDeps:[t,m.data,s],loadingDelay:300}),{confirmHolder:X,confirmApi:L}=ye({sx:{".MuiDialog-paper":{borderRadius:2,maxWidth:1200},".ux-dialog_title":{fontWeight:600},".ux-dialog_closeButton":{p:1},".MuiDialogActions-root":{display:{xs:"none",md:"flex"}}}}),A=C(()=>{const w=oo(window.blocklet);try{return co(w)}catch(S){return console.error("Failed to format blocklet info",S,w),w}},[]),R=C(()=>{var D;const w=((D=A==null?void 0:A.navigation)==null?void 0:D.userCenter)||[];return(po(w,h)||[]).map(F=>{var q;const G=F._rawLink??F.link;return{value:G,label:F.title,url:F.link,protected:((q=k==null?void 0:k.data)==null?void 0:q[G])??!1}})},[A,m.data,k==null?void 0:k.data,h]),E=C(()=>R.find(w=>w.value===s),[R]),J=y(w=>{const S=R.find(D=>D.value===w);S&&(window.location.href=ge(S.url,{did:b?void 0:t}))}),W=C(()=>o.jsx(Xo,{user:m.data,settings:{userCenterTabs:R},onSave:async w=>w==="privacy"?(await k.runAsync(),k.data):(w==="profile"&&await i.refresh(),null)}),[m.data,R,k.data,k.runAsync]),N=y(()=>{L.open({title:j("settings"),content:W,showCancelButton:!1,confirmButtonText:j("done"),onConfirm:L.close})});ro(()=>{L.update({content:W})},[W]),to(()=>{p&&N()});const $=C(()=>{var w,S,D,F,G;if(m.loading||i.loading)return null;if(m.error){if(((S=(w=m.error)==null?void 0:w.response)==null?void 0:S.status)===404)return o.jsx(x,{sx:{width:"100%"},children:o.jsx(no,{status:404,description:j("noUserFound")})});const Ie={message:((F=(D=m.error.response)==null?void 0:D.data)==null?void 0:F.error)||m.error.message||"error occurred"};return o.jsx(x,{sx:{width:"100%"},children:o.jsx(So,{error:Ie})})}return!t&&!m.data?c||o.jsx(x,{sx:{width:"100%"},children:o.jsxs(x,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:1},children:[o.jsx(Z,{children:j("viewAfterLogin")}),o.jsx(ie,{size:"small",variant:"contained",onClick:()=>i.login(),children:j("loginNow")})]})}):o.jsxs(o.Fragment,{children:[o.jsxs(x,{sx:[{flex:{xs:"revert",md:1},overflow:"hidden"}],children:[(G=m==null?void 0:m.data)!=null&&G.fullName?o.jsx(B,{variant:"h4",sx:{py:1.5,fontWeight:700,display:{xs:"none",md:"block"}},children:m.data.fullName}):null,o.jsx(me,{isMyself:b,switchPassport:i.switchPassport,switchProfile:i.switchProfile,openSettings:N,user:m.data,showFullDid:!1,sx:{display:{md:"none",xs:"block"},mb:1.5}}),R.length>0&&s?o.jsxs(x,{sx:{overflow:"auto",padding:"1px"},children:[o.jsx(ke,{variant:"line",tabs:R,current:s,onChange:J,sx:{mb:1.5}}),!k.data||k.loading?o.jsx(x,{sx:{height:"100%",minWidth:"160px",minHeight:"160px",display:"flex",justifyContent:"center",alignItems:"center"},children:o.jsx(oe,{sx:{color:v.primary100}})}):o.jsx(o.Fragment,{children:E!=null&&E.protected&&!b?o.jsx(x,{children:o.jsx(Z,{children:j("underProtected")})}):o.jsx(o.Fragment,{children:e&&o.jsx(x,{...g,children:e})})})]}):null,R.length===0?o.jsx(x,{sx:{display:{xs:b?"none":"block",md:"block"},py:3},children:o.jsx(Z,{children:j("emptyContent")})}):null]}),o.jsx(x,{sx:{display:{xs:"none",md:"block"},width:"1px",my:-3,backgroundColor:v.strokeSep}}),o.jsx(x,{sx:{width:{sx:"100%",md:420},maxWidth:"100%",position:"relative"},children:o.jsxs(x,{sx:{display:"flex",flexDirection:"column",gap:2.5,position:{xs:"static",md:u?"sticky":"static"},top:q=>u?q.spacing(3):"unset"},children:[o.jsx(me,{isMyself:b,switchPassport:i.switchPassport,switchProfile:i.switchProfile,openSettings:N,user:m.data,sx:{display:{xs:"none",md:"block"}}}),o.jsxs(x,{children:[o.jsx(B,{sx:{fontWeight:600,mb:1.5},children:j(b?"myInfo":"hisInfo")}),o.jsx(Wo,{user:m.data,isMySelf:b})]}),b?o.jsxs(x,{children:[o.jsx(B,{sx:{fontWeight:600,mb:1.5},children:j("passport")}),o.jsx($o,{user:m.data})]}):null]})})]})},[m,R,b,E,k,s,u]);if(!a&&!s&&((pe=(de=A==null?void 0:A.navigation)==null?void 0:de.userCenter)==null?void 0:pe.length)>0){const w=(xe=(ue=A==null?void 0:A.navigation)==null?void 0:ue.userCenter[0])==null?void 0:xe.link;return w&&window.location.replace(ge(w,{did:b?void 0:t})),null}return o.jsxs(x,{sx:{backgroundColor:v.backgroundsBgSubtitle,minHeight:"100vh",display:"flex",flexDirection:"column"},children:[o.jsx(so,{bordered:!0,...n}),o.jsxs(x,{flex:1,sx:{width:"100%",maxWidth:1200,margin:"0 auto",p:3,display:"flex",alignItems:"stretch",flexDirection:{xs:"column",md:"row"},gap:2.5},children:[$,X]}),f?null:o.jsx(lo,{bordered:!0,...l})]})}function Or(){const c=ao().tab,{t:s}=z();return o.jsxs(o.Fragment,{children:[o.jsx(io,{children:o.jsx("title",{children:s("pageTitle.userCenter")})}),o.jsx(Jo,{disableAutoRedirect:c==="settings",autoPopupSetting:c==="settings"})]})}export{Or as default};
|
|
1
|
+
import{Z as Ae,$ as Be,j as o,bB as K,c as Re,bC as Te,u as z,r as O,bD as ee,l as y,k as C,ak as ve,B as x,A as je,bE as V,T as B,bg as Ue,O as v,bF as I,bG as Le,bH as ze,a as te,bI as T,n as oe,D as De,aD as H,t as _,bJ as Ee,bK as we,bL as fe,bM as _e,Q,aU as ne,bN as Fe,bO as Me,U as ae,bP as he,aT as Oe,a3 as ie,bQ as ye,bR as We,bS as P,bT as $e,bU as He,bV as Ne,bW as Ge,s as qe,q as Ve,bX as Qe,bY as Xe,bZ as Je,b_ as Ke,b$ as Ze,c0 as Ye,c1 as eo,c2 as oo,c3 as ro,m as to,R as no,w as ge,by as ao,H as io}from"./index-Cggmiiia.js";import{H as so,F as lo}from"./index-3IKYL1th.js";import{f as co,g as po}from"./index-BIwlKqnv.js";import{S as uo,t as U,a as xo,b as fo,M as ho,C as go,P as mo,c as bo,E as vo,D as jo,A as wo,d as M,I as yo,L as ko,e as Co,f as Po}from"./resource-dialog-DPp8WhH6.js";import{T as ke}from"./index-BJflKzAj.js";import{E as Z}from"./index-DnemmBZZ.js";import{E as So}from"./fallback-DVHgA8PG.js";import{u as Io}from"./uniqBy-Depm40zB.js";import{S as Ce}from"./index-BLG5zTvA.js";import{i as Ao}from"./index-ChjVC0V6.js";import{S as Pe}from"./Select-CHwe79IG.js";import{T as Bo}from"./TextField-By686O81.js";import{I as Ro}from"./InputAdornment-B1JGDyvY.js";import{A as To}from"./Alert-DdUTjamT.js";import{S as Uo}from"./FormControlLabel-BKsoLGHz.js";import{U as Lo}from"./user-sessions-ChQlFWXn.js";import"./index-CPYtoS2i.js";import"./index-tZwe6kGH.js";import"./Toolbar-CILlK-1t.js";import"./Hidden-v7r91ILG.js";import"./ExpandMore-CAfMRIG3.js";import"./Avatar-Ba5K-SpV.js";import"./useSlot-DJoDEpM7.js";import"./MoreVert-BqoNOXb1.js";import"./selector-DplhIXMq.js";import"./OpenInNew-D9pZObQI.js";import"./CloseOutlined-CcRedm-I.js";import"./use-mobile-Bjgo--1J.js";import"./Link-JTCdKmrw.js";import"./FormControl-CJxOqtCV.js";import"./useFormControl-xR1NlgHj.js";import"./InputLabel-Ds1qPSij.js";import"./FilterList-CfRY6G_6.js";import"./useThemeProps-DthQbzYX.js";import"./toPropertyKey-PLuKRk1e.js";import"./FormGroup-Chc5NbDQ.js";import"./ListItemText-CJO6iQaY.js";import"./LastPage-5otHasfZ.js";import"./index-Dnz1P7hS.js";import"./redux-CmQ0AupQ.js";import"./Search-eHBEQt38.js";import"./Delete-eYuUFe-a.js";var se={},zo=Be;Object.defineProperty(se,"__esModule",{value:!0});var Se=se.default=void 0,Do=zo(Ae()),Eo=o;Se=se.default=(0,Do.default)((0,Eo.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"RefreshOutlined");const _o=(e,c)=>{let s;return e==="default"?s=K.DEFAULT_COLORS["app-passport"]:e==="auto"?s=K.getNftBGColorFromDid(c):s=K.getNftBGColor(e),s},Fo=({issuer:e="",title:c="",issuerDid:s="",issuerAvatarUrl:g="",ownerDid:a="",ownerName:p="",ownerAvatarUrl:f="",preferredColor:n="default",revoked:l=!1,isDataUrl:r=!1,width:u="100%",height:h="100%"})=>{const j=_o(n,s),d=K.getSvg({width:u,height:h,tag:l?"revoked":"",tagVariant:l?"error":"info",color:j,did:a,variant:"app-passport",verifiable:!0,issuer:{name:e,icon:g},header:{name:c,icon:f},extra:{key:"Exp",value:"2123-01-01"}});return r?`data:image/svg+xml;utf8,${encodeURIComponent(d)}`:d},Y=e=>{const{response:c}=e;return c?`Request failed: ${c.status} ${c.statusText}: ${JSON.stringify(c.data)}`:e.message},Mo=e=>Fo({...e,issuerAvatarUrl:Re(window.location.origin,Te,"/blocklet/logo")});function me({user:e,isMyself:c=!0,showFullDid:s=!0,switchPassport:g,switchProfile:a,openSettings:p,...f}){var b;const{locale:n}=z(),{session:l}=O.useContext(ee),[r,u]=O.useState(!1),h=y((m,k={})=>T(U,m,n,"en",k)),j=C(()=>{var m;return(m=(e==null?void 0:e.passports)||[])==null?void 0:m.find(k=>k.name===e.role)},[e==null?void 0:e.passports,e==null?void 0:e.role]),d=ve(),i=d.breakpoints.down("md");if(!e)return null;const t=async()=>{try{u(!0),await l.refreshProfile(),l.refresh(),_.success(T(U,"refreshProfile.successfully",n))}catch(m){console.error(m),_.error(Y(m))}finally{u(!1)}};return o.jsxs(x,{...f,sx:{position:"relative",...f.sx},children:[o.jsx(je,{src:e==null?void 0:e.avatar,did:e==null?void 0:e.did,size:i?64:80,variant:"circle",shape:"circle",sx:{borderRadius:"100%",backgroundColor:"#fff",position:"relative",overflow:"hidden",mb:1.5,...c?{cursor:"pointer","&:hover":{"&::after":{content:`"${h("switchProfile")}"`}},"&::after":{color:"white",position:"absolute",fontSize:"12px",bottom:0,left:0,right:0,height:"50%",backgroundColor:"rgba(0, 0, 0, 0.3)",display:"flex",justifyContent:"center",alignItems:"center"}}:{}},onClick:c?a:V}),o.jsxs(B,{variant:"h6",sx:{fontWeight:"bold",display:"flex",alignItems:"center",gap:1,fontSize:"24px !important"},children:[e==null?void 0:e.fullName,c?o.jsxs(o.Fragment,{children:[o.jsx(Ue,{label:(j==null?void 0:j.title)||(e==null?void 0:e.role)||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:v.textBase,borderColor:v.strokeBorderStrong,backgroundColor:"transparent",textTransform:"capitalize",pr:1,pl:.5,"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},"&:active":{boxShadow:"none"}},clickable:!0,deleteIcon:o.jsx(I,{icon:Le,color:v.textBase}),onDelete:g,onClick:g}),!ze(e.url)&&o.jsx(te,{title:!r&&T(U,"refreshProfile.title",n),sx:{display:"flex",alignItems:"center"},children:r?o.jsx(oe,{size:"16px",sx:{color:(b=d==null?void 0:d.colors)==null?void 0:b.primary,ml:.5}}):o.jsx(Se,{onClick:t})})]}):null]}),o.jsx(De,{did:e.did,showQrcode:!0,copyable:!0,compact:!s,responsive:!s,locale:n}),c?o.jsx(H,{sx:{borderRadius:2,color:v.textBase,backgroundColor:"white",border:`1px solid ${v.strokeBorderBase}`,position:"absolute",top:0,right:0},disableFocusRipple:!0,onClick:p,children:o.jsx(I,{icon:uo})}):null]})}function Oo({data:e,...c}){return o.jsxs(x,{...c,sx:{display:"flex",alignItems:"center",justifyContent:"space-between",...c.sx},children:[o.jsxs(B,{sx:{display:"flex",alignItems:"center",color:v.textBase,fontSize:"14px",gap:1,fontWeight:500},children:[e.icon,e.title]}),o.jsx(B,{sx:{color:v.textSubtitle,whiteSpace:"pre-wrap",fontSize:"14px"},children:e.content})]})}function Wo({user:e,isMySelf:c=!1,...s}){const{locale:g}=z(),a=y((n,l={})=>T(U,n,g,"en",l)),p=C(()=>(e==null?void 0:e.sourceProvider)&&Ee[e.sourceProvider]||a("unknown"),[e==null?void 0:e.sourceProvider]),f=[];return c&&(f.push({icon:o.jsx(I,{fontSize:16,icon:we}),title:a("email"),content:(e==null?void 0:e.email)||a("emptyField")}),f.push({icon:o.jsx(I,{fontSize:16,icon:xo}),title:a("lastLoginAt"),content:e!=null&&e.lastLoginAt?o.jsx(fe,{locale:g,value:e==null?void 0:e.lastLoginAt,relativeRange:3*86400*1e3}):a("unknown")}),f.push({icon:o.jsx(I,{fontSize:16,icon:fo}),title:a("lastLoginIp"),content:(e==null?void 0:e.lastLoginIp)||a("unknown")})),f.push({icon:o.jsx(I,{fontSize:16,icon:ho}),title:a("createdAt"),content:e!=null&&e.createdAt?o.jsx(fe,{locale:g,value:e==null?void 0:e.createdAt}):a("unknown")}),c&&f.push({icon:o.jsx(I,{fontSize:16,icon:go}),title:a("registerFrom"),content:p}),o.jsx(x,{...s,sx:{display:"flex",flexDirection:"column",gap:1.5,...s==null?void 0:s.sx},children:f.map(n=>o.jsx(Oo,{data:n,sx:{flex:1}},n.title))})}function $o({user:e,...c}){var l,r;const{locale:s}=z(),g=y((u,h={})=>T(U,u,s,"en",h)),a=ve(),p=C(()=>{const u=((e==null?void 0:e.passports)||[]).map(h=>({...h,revoked:h.status===_e.REVOKED}));return u.sort((h,j)=>h.revoked===j.revoked?0:h.revoked?1:-1),Io(u,"role")},[e==null?void 0:e.passports]),f=C(()=>p==null?void 0:p.find(u=>u.name===e.role),[p,e==null?void 0:e.role]),n=C(()=>{var u,h;return((h=(u=a==null?void 0:a.palette)==null?void 0:u.primary)==null?void 0:h.main)||v.textBase},[(r=(l=a==null?void 0:a.palette)==null?void 0:l.primary)==null?void 0:r.main]);return p.length===0?o.jsx(x,{children:o.jsx(Z,{children:g("noPassport")})}):o.jsx(x,{...c,sx:{display:"grid",gridTemplateColumns:{xs:"repeat(2, 1fr)",sm:"repeat(3, 1fr)",md:"repeat(2, 1fr)"},gap:2.5,...c.sx},children:p.map(u=>o.jsx(mo,{passport:u,user:e,color:window.blocklet.passportColor,createPassportSvg:Mo,title:f&&f.role===u.role?g("currentPassport"):"",sx:{flexDirection:"column",alignItems:"center",gap:1,".passport-item__display":{width:166,height:166,borderRadius:2,px:2,display:"flex",justifyContent:"center",backgroundColor:v.backgroundsBgComponent,boxShadow:f&&f.role===u.role?`0px 2px 4px 0px ${n}, 0px 1px 2px -1px ${n}, 0px 0px 0px 1px ${n} !important`:"unset"},".passport-item__body":{marginLeft:"0 !important"}}},u.id))})}function be({onTest:e=V,onDelete:c=V,onSave:s=V,onCancel:g=V,type:a="slack",url:p="",edit:f=!1}){const{locale:n}=z(),l=y((t,b={})=>T(U,t,n,"en",b)),r=Q({type:a||"slack",url:p||"",edit:f??!1,error:"",loading:!1}),u=y(()=>r.url?Ao(r.url)?(r.error="",!0):(r.error=l("common.invalid"),!1):(r.error=l("common.required"),!1)),h=y(()=>{r.edit=!1,r.url=p||"",r.type=a||"slack",r.error="",r.loading=!1,g()}),j=y(async t=>{r.loading=!0,await e(t),r.loading=!1}),d=y(t=>()=>{u()&&t({type:r.type,url:r.url})}),i=C(()=>r.error?o.jsx(B,{component:"span",color:"error",children:r.error}):r.edit?r.loading?o.jsx(oe,{size:16}):o.jsx(H,{size:"small",onClick:d(j),sx:{mr:-1},children:o.jsx(I,{icon:bo})}):null,[r.error,r.edit,r.loading]);return o.jsxs(x,{sx:{display:"flex",gap:1.5,width:"100%",alignItems:{xs:"flex-start",md:"center"},flexDirection:{xs:"column",md:"row"}},children:[o.jsxs(Pe,{sx:{borderRadius:2,"&.Mui-disabled":{backgroundColor:v.backgroundsBgField}},disabled:!r.edit||r.loading,size:"small",value:r.type,onChange:t=>{r.type=t.target.value},children:[o.jsx(ne,{value:"api",children:l("webhook.url")}),o.jsx(ne,{value:"slack",children:l("webhook.slack")})]}),o.jsxs(x,{sx:{display:"flex",alignItems:"center",gap:.5,width:"100%"},children:[o.jsx(Bo,{sx:{flex:1,".MuiInputBase-root":{borderRadius:2,"&.Mui-disabled":{backgroundColor:v.backgroundsBgField}}},disabled:!r.edit||r.loading,fullWidth:!0,size:"small",required:!0,value:r.url,onChange:t=>{r.url=t.target.value,u()},error:!!r.error,InputProps:{endAdornment:o.jsx(Ro,{position:"end",children:i})}}),o.jsx(x,{sx:{display:"flex",gap:.5},children:r.edit?o.jsxs(o.Fragment,{children:[o.jsx(H,{color:"success",onClick:d((...t)=>{s(...t),r.edit=!1}),sx:{borderRadius:2,border:`1px solid ${v.strokeBorderBase}`},children:o.jsx(I,{icon:Fe})}),o.jsx(H,{color:"error",onClick:h,sx:{borderRadius:2,border:`1px solid ${v.strokeBorderBase}`},children:o.jsx(I,{icon:Me})})]}):o.jsxs(o.Fragment,{children:[o.jsx(H,{onClick:()=>{r.edit=!0},sx:{borderRadius:2,border:`1px solid ${v.strokeBorderBase}`},children:o.jsx(I,{icon:vo})}),o.jsx(H,{color:"error",onClick:()=>{c({type:r.type,url:r.url})},sx:{borderRadius:2,border:`1px solid ${v.strokeBorderBase}`},children:o.jsx(I,{icon:jo})})]})})]})]})}function re({title:e,description:c,value:s,onChange:g}){return o.jsx(Ce,{checked:s,labelProps:{label:o.jsxs(B,{color:"text.primary",sx:{fontSize:14,display:"flex",flexFlow:"wrap",columnGap:1,flex:1},children:[e,c]})},size:"small",onChange:g})}function Ho({user:e}){var d,i;const{locale:c}=z(),s=y((t,b={})=>T(U,t,c,"en",b)),g=Q({showAdd:!1}),a=ae(async()=>await M.user.getUserNotificationConfig(),{refreshDeps:[e],loadingDelay:300}),p=C(()=>{var t;return{wallet:!0,email:!0,phone:!1,push:!0,...((t=a==null?void 0:a.data)==null?void 0:t.notifications)||{}}},[(d=a==null?void 0:a.data)==null?void 0:d.notifications]),f=C(()=>{var t;return((t=a==null?void 0:a.data)==null?void 0:t.webhooks)||[]},[(i=a==null?void 0:a.data)==null?void 0:i.webhooks]),n=y(async t=>{try{await M.user.saveUserNotificationConfig(t),_.success(s("saveSuccess")),a.run()}catch(b){_.error(Y(b))}}),l=y(async(t,b)=>{await n({notifications:{[t]:b}})}),r=async t=>{try{await M.user.testNotificationWebhook(t),_.success(s("webhookTested"))}catch(b){_.error(Y(b))}},u=y(async t=>{await n({webhooks:f.filter((b,m)=>m!==t)})}),h=y(async(t,b)=>{await n({webhooks:f.map((m,k)=>k===t?b:m)})}),j=y(async t=>{await n({webhooks:[...f,t]}),g.showAdd=!1});return a.error?o.jsx(To,{severity:"error",children:a.error.message}):a.loading||!a.data?o.jsx(x,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100px"},children:o.jsx(oe,{})}):o.jsxs(x,{sx:{display:"flex",flexDirection:"column",gap:2},children:[o.jsxs(x,{sx:{display:"flex",flexDirection:"column",gap:1,alignItems:"start",".MuiFormControlLabel-root":{gap:1,m:0,flexDirection:{xs:"row-reverse",md:"row"},width:{xs:"100%",md:"unset"}},".MuiSwitch-track":{borderRadius:"100vw"},".MuiSwitch-thumb":{borderRadius:"100%"},".MuiSwitch-root.MuiSwitch-sizeSmall":{height:"20px",width:"36px",".MuiSwitch-thumb":{width:"16px",height:"16px"}}},children:[o.jsx(re,{value:p.wallet,title:s("walletNotification"),onChange:t=>l("wallet",t.target.checked),description:he(e)&&o.jsx(B,{component:"span",color:"text.secondary",fontSize:13,children:he(e)})}),o.jsx(re,{value:p.email,onChange:t=>l("email",t.target.checked),title:s("emailNotification"),description:(e==null?void 0:e.email)&&o.jsx(B,{component:"span",color:"text.secondary",fontSize:13,children:e==null?void 0:e.email})}),o.jsx(re,{value:p.push,title:s("pushNotification"),onChange:t=>l("push",t.target.checked)})]}),o.jsx(Oe,{}),o.jsxs(Uo,{spacing:1.5,useFlexGap:!0,direction:"column",alignItems:"start",children:[f.map((t,b)=>o.jsx(be,{onTest:r,onDelete:()=>u(b),onSave:(...m)=>h(b,...m),type:t.type,url:t.url,edit:!1},`${b}_${t.url}`)),g.showAdd&&o.jsx(be,{onTest:r,onCancel:()=>{g.showAdd=!1},onSave:(...t)=>j(...t),edit:!0},"add"),o.jsx(ie,{variant:"outlined",size:"small",sx:{color:v.foregroundsFgBase,borderColor:v.strokeBorderBase,backgroundColor:v.buttonsButtonNeutral,"&:hover":{borderColor:v.strokeBorderBase,backgroundColor:v.buttonsButtonNeutralHover},py:.5,borderRadius:2},startIcon:o.jsx(I,{icon:wo}),onClick:()=>{g.showAdd=!0},children:s("addWebhook")})]})]})}function No({configList:e,onSave:c}){const[s,g]=O.useState(e),{locale:a}=z(),p=y((n,l={})=>T(U,n,a,"en",l)),f=y(async(n,l)=>{try{const r=await M.user.saveUserPrivacyConfig({[n]:!l});g(s.map(u=>({...u,value:(r==null?void 0:r[u.key])??u.value}))),_.success(p("saveSuccess")),c("privacy")}catch(r){_.error(Y(r))}});return o.jsx(x,{sx:{display:"flex",flexDirection:"column",gap:1,alignItems:"start",".MuiFormControlLabel-root":{gap:1,m:0,flexDirection:{xs:"row-reverse",md:"row"},width:{xs:"100%",md:"unset"}},".MuiSwitch-track":{borderRadius:"100vw"},".MuiSwitch-thumb":{borderRadius:"100%"},".MuiSwitch-root.MuiSwitch-sizeSmall":{height:"20px",width:"36px",".MuiSwitch-thumb":{width:"16px",height:"16px"}}},children:s.map(n=>o.jsx(Ce,{checked:!n.value,labelProps:{label:o.jsx(B,{color:"text.primary",sx:{fontSize:14,display:"flex",flexFlow:"wrap",columnGap:1,flex:1},children:p("toPublic",{name:n.name})})},size:"small",onChange:l=>f(n.key,l.target.checked)},n.key))})}function Go({item:e}){var t,b,m,k,X;const{confirmApi:c,confirmHolder:s}=ye(),g=Q({loading:!1}),{locale:a}=z(),p=y((L,A={})=>T(U,L,a,"en",A)),{session:f}=O.useContext(ee),{bindOAuth:n,unbindOAuth:l,setBaseUrl:r,baseUrl:u}=f.useOAuth(),h={[P.AUTH0]:we,[P.APPLE]:$e,[P.GITHUB]:He,[P.GOOGLE]:Ne},j=C(()=>h[e==null?void 0:e.provider],[e==null?void 0:e.provider]),d=C(()=>We[e==null?void 0:e.provider]||"unknown",[e==null?void 0:e.provider]),i=y(async()=>{try{g.loading=!0,await new Promise((L,A)=>{var R;if(e!=null&&e._bind)c.open({title:p("thirdPartyLogin.confirmUnbind",{name:d}),content:p("thirdPartyLogin.confirmUnbindDescription",{name:d}),confirmButtonText:p("common.confirm"),cancelButtonText:p("common.cancel"),onConfirm(E){l({session:f,connectedAccount:{...Ge(e,["did","pk"]),showProvider:e.provider,provider:e._rawProvider}}).then(L).catch(A),E()},onCancel:L});else{const E=u,J=window==null?void 0:window.blocklet;let W="/";const N=qe(J),$=Ve(J);N&&($!=null&&$.appPid)&&((R=f==null?void 0:f.user)!=null&&R.sourceAppPid)&&(W=$.appUrl),r(W),n({session:f,oauthItem:{...e,provider:e._rawProvider}}).then(L).catch(A).finally(()=>{r(E)})}})}catch(L){console.error(`Failed to ${e!=null&&e._bind?"unbind":"bind"} oauth account`,L)}finally{g.loading=!1}});return o.jsxs(o.Fragment,{children:[o.jsxs(x,{sx:{borderRadius:2,border:`1px solid ${v.strokeBorderBase}`,background:v.backgroundsBgField,display:"flex",alignItems:"center",py:1,px:1.5,gap:.75,fontSize:"14px",lineHeight:1,overflow:"hidden"},children:[o.jsx(x,{component:I,icon:j,width:"1em",height:"1em",sx:{flexShrink:0,fontSize:16}}),o.jsx(x,{sx:{flex:1},children:d}),o.jsxs(x,{sx:{display:"flex",alignItems:"center",gap:.5},children:[o.jsx(x,{sx:{flex:1,textOverflow:"ellipsis",overflow:"hidden",lineHeight:"normal"},children:((t=e.userInfo)==null?void 0:t.email)||e.did}),(b=e.userInfo)!=null&&b.email?o.jsx(te,{title:o.jsx(o.Fragment,{children:o.jsxs(x,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(je,{size:36,variant:"circle",shape:"circle",src:(m=e.userInfo)==null?void 0:m.picture,did:e.did}),o.jsxs(x,{children:[o.jsx(B,{sx:{whiteSpace:"normal",wordBreak:"break-all",fontSize:"0.9rem"},children:(k=e.userInfo)==null?void 0:k.name}),o.jsx(B,{sx:{whiteSpace:"normal",wordBreak:"break-all",fontSize:"0.9rem"},children:(X=e.userInfo)==null?void 0:X.email})]})]})}),children:o.jsx(x,{component:I,icon:yo,color:v.textSubtitle,fontSize:16,sx:{cursor:"pointer",flexShrink:0}})}):null]})]}),o.jsx(te,{title:e._mainProvider?p("thirdPartyLogin.mainProviderCantRemove"):"",children:o.jsx(x,{children:o.jsx(ie,{variant:"outlined",size:"small",sx:{color:e!=null&&e._bind?v.red:v.foregroundsFgBase,borderColor:e!=null&&e._bind?v.red:v.strokeBorderBase,backgroundColor:v.buttonsButtonNeutral,"&:hover":{borderColor:e!=null&&e._bind?v.red:v.strokeBorderBase,backgroundColor:v.buttonsButtonNeutralHover},py:.5,borderRadius:2,fontWeight:500,whiteSpace:"nowrap"},fullWidth:!0,startIcon:g.loading?null:o.jsx(I,{icon:ko}),onClick:i,disabled:e._mainProvider,loading:g.loading,children:e!=null&&e._bind?p("thirdPartyLogin.disconnect"):p("thirdPartyLogin.connect")})})}),s]})}function qo({user:e}){const{session:c}=O.useContext(ee),[s,g]=O.useState({}),{getOAuthConfigs:a}=c.useOAuth();Qe(async()=>{const n=await a({sourceAppPid:e==null?void 0:e.sourceAppPid});g(n)},[e==null?void 0:e.sourceAppPid]);const p=C(()=>Object.keys(s).map(l=>({...s[l],provider:l})).filter(l=>l.enabled),[s]),f=C(()=>{const n=Xe(e);let l=!1,r="",u=Je(e);const h=n.find(d=>d.provider===P.AUTH0);return h&&(h.id.startsWith("google-oauth2|")&&(n.some(d=>d.provider==="google")||(l=!0,r=P.GOOGLE,u===P.AUTH0&&(u=P.GOOGLE))),h.id.startsWith("appleid|")&&(n.some(d=>d.provider===P.APPLE)||(l=!0,r=P.APPLE,u===P.AUTH0&&(u=P.APPLE))),h.id.startsWith("github|")&&(n.some(d=>d.provider===P.GITHUB)||(l=!0,r=P.GITHUB,u===P.AUTH0&&(u=P.GITHUB)))),p.map(d=>{if(d.provider===P.AUTH0&&l)return null;const i=l&&d.provider===r?n.find(t=>t.provider===P.AUTH0):n.find(t=>t.provider===d.provider);return i?{...d,provider:d.provider,did:i.did,pk:i.pk,userInfo:i.userInfo,_bind:!0,_rawProvider:i.provider,_mainProvider:d.provider===u}:{...d,provider:d.provider,_rawProvider:d.provider,_mainProvider:d.provider===u}}).filter(Boolean).sort((d,i)=>(d==null?void 0:d.order)!==void 0&&(i==null?void 0:i.order)!==void 0?d.order-i.order:(d==null?void 0:d.order)!==void 0?-1:1)},[e==null?void 0:e.connectedAccounts,p]);return o.jsx(x,{sx:{gap:1,display:"grid",gridTemplateColumns:"1fr min-content"},children:f.map(n=>o.jsx(Go,{item:n},n==null?void 0:n.provider))})}const Vo=[{label:"English",value:"en"},{label:"中文",value:"zh"}];function Qo({user:e,onSave:c}){const{locale:s,changeLocale:g}=z(),a=y((n,l={})=>T(U,n,s,"en",l)),p=Q({locale:e.locale,loading:!1}),f=y(async n=>{try{const{value:l}=n.target;p.loading=!0,await Promise.all([M.user.saveProfile({locale:l}),Ze(350)]),await c("profile"),g(l),p.locale=l}finally{p.loading=!1}});return o.jsxs(x,{sx:{gap:1,display:"grid",alignItems:"center",gridTemplateColumns:{xs:"1fr",sm:"max-content 1fr"}},children:[o.jsx(x,{children:a("commonSetting.locale")}),o.jsxs(x,{children:[o.jsx(Ke,{color:"primary",sx:{visibility:p.loading?"visible":"hidden",height:2}}),o.jsx(Pe,{fullWidth:!0,value:p.locale,onChange:f,size:"small",children:Vo.map(n=>o.jsx(ne,{value:n.value,children:n.label}))})]})]})}function Xo({user:e,settings:c,onSave:s,...g}){const{locale:a}=z(),p=y((h,j={})=>T(U,h,a,"en",j)),f=C(()=>((c==null?void 0:c.userCenterTabs)||[]).map(j=>({key:j.value,name:j.label,value:j.protected})),[c==null?void 0:c.userCenterTabs]),n=C(()=>{var h;return[{label:p("commonSetting.title"),value:"common",content:o.jsx(Qo,{user:e,onSave:s})},{label:p("notificationManagement"),value:"notification",content:o.jsx(Ho,{user:e})},{label:p("thirdPartyLogin.title"),value:"thirdPartyLogin",content:o.jsx(qo,{user:e})},{label:p("privacyManagement"),value:"privacy",content:o.jsx(No,{configList:f,onSave:s})},((h=e==null?void 0:e.didSpace)==null?void 0:h.endpoint)&&{label:p("storageManagement"),value:"storage",content:o.jsx(Co,{children:o.jsx(Po,{})})},{label:p("sessionManagement"),value:"session",content:o.jsx(Lo,{user:e})}].filter(Boolean)},[e,f]),l=Q({tab:n[0].value}),r=C(()=>n.find(h=>h.value===l.tab),[l.tab,n]),u=y(h=>{l.tab=h});return r&&o.jsxs(x,{...g,sx:{...g==null?void 0:g.sx,minWidth:{md:500},maxWidth:"100%"},children:[o.jsx(ke,{variant:"card",tabs:n,current:r.value,onChange:u}),o.jsx(x,{mt:2.5,children:r.content})]})}function Jo({children:e,notLoginContent:c=null,currentTab:s,contentProps:g={},disableAutoRedirect:a=!1,autoPopupSetting:p=!1,hideFooter:f=!1,headerProps:n={},footerProps:l={},userDid:r=void 0,stickySidebar:u=!1}){var le,ce,de,pe,ue,xe;const{locale:h}=z(),j=y((w,S={})=>T(U,w,h,"en",S)),d=O.useContext(ee),i=d==null?void 0:d.session,t=C(()=>{var D;if(r)return r;const w=window.location.href,S=Ye(w);return S!=null&&S.did?Array.isArray(S.did)?S.did[0]:S.did:(D=i==null?void 0:i.user)==null?void 0:D.did},[(le=i==null?void 0:i.user)==null?void 0:le.did,r]),b=C(()=>{var w;return i!=null&&i.user?t===((w=i==null?void 0:i.user)==null?void 0:w.did):!1},[t,(ce=i==null?void 0:i.user)==null?void 0:ce.did]),m=ae(async()=>{if(await eo(()=>i==null?void 0:i.initialized),b)return i.user;if(t)return M.user.getUserPublicInfo({did:t})},{refreshDeps:[t,b,i==null?void 0:i.initialized,i==null?void 0:i.user]}),k=ae(async()=>m.data&&s?await M.user.getUserPrivacyConfig({did:t}):null,{refreshDeps:[t,m.data,s],loadingDelay:300}),{confirmHolder:X,confirmApi:L}=ye({sx:{".MuiDialog-paper":{borderRadius:2,maxWidth:1200},".ux-dialog_title":{fontWeight:600},".ux-dialog_closeButton":{p:1},".MuiDialogActions-root":{display:{xs:"none",md:"flex"}}}}),A=C(()=>{const w=oo(window.blocklet);try{return co(w)}catch(S){return console.error("Failed to format blocklet info",S,w),w}},[]),R=C(()=>{var D;const w=((D=A==null?void 0:A.navigation)==null?void 0:D.userCenter)||[];return(po(w,h)||[]).map(F=>{var q;const G=F._rawLink??F.link;return{value:G,label:F.title,url:F.link,protected:((q=k==null?void 0:k.data)==null?void 0:q[G])??!1}})},[A,m.data,k==null?void 0:k.data,h]),E=C(()=>R.find(w=>w.value===s),[R]),J=y(w=>{const S=R.find(D=>D.value===w);S&&(window.location.href=ge(S.url,{did:b?void 0:t}))}),W=C(()=>o.jsx(Xo,{user:m.data,settings:{userCenterTabs:R},onSave:async w=>w==="privacy"?(await k.runAsync(),k.data):(w==="profile"&&await i.refresh(),null)}),[m.data,R,k.data,k.runAsync]),N=y(()=>{L.open({title:j("settings"),content:W,showCancelButton:!1,confirmButtonText:j("done"),onConfirm:L.close})});ro(()=>{L.update({content:W})},[W]),to(()=>{p&&N()});const $=C(()=>{var w,S,D,F,G;if(m.loading||i.loading)return null;if(m.error){if(((S=(w=m.error)==null?void 0:w.response)==null?void 0:S.status)===404)return o.jsx(x,{sx:{width:"100%"},children:o.jsx(no,{status:404,description:j("noUserFound")})});const Ie={message:((F=(D=m.error.response)==null?void 0:D.data)==null?void 0:F.error)||m.error.message||"error occurred"};return o.jsx(x,{sx:{width:"100%"},children:o.jsx(So,{error:Ie})})}return!t&&!m.data?c||o.jsx(x,{sx:{width:"100%"},children:o.jsxs(x,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:1},children:[o.jsx(Z,{children:j("viewAfterLogin")}),o.jsx(ie,{size:"small",variant:"contained",onClick:()=>i.login(),children:j("loginNow")})]})}):o.jsxs(o.Fragment,{children:[o.jsxs(x,{sx:[{flex:{xs:"revert",md:1},overflow:"hidden"}],children:[(G=m==null?void 0:m.data)!=null&&G.fullName?o.jsx(B,{variant:"h4",sx:{py:1.5,fontWeight:700,display:{xs:"none",md:"block"}},children:m.data.fullName}):null,o.jsx(me,{isMyself:b,switchPassport:i.switchPassport,switchProfile:i.switchProfile,openSettings:N,user:m.data,showFullDid:!1,sx:{display:{md:"none",xs:"block"},mb:1.5}}),R.length>0&&s?o.jsxs(x,{sx:{overflow:"auto",padding:"1px"},children:[o.jsx(ke,{variant:"line",tabs:R,current:s,onChange:J,sx:{mb:1.5}}),!k.data||k.loading?o.jsx(x,{sx:{height:"100%",minWidth:"160px",minHeight:"160px",display:"flex",justifyContent:"center",alignItems:"center"},children:o.jsx(oe,{sx:{color:v.primary100}})}):o.jsx(o.Fragment,{children:E!=null&&E.protected&&!b?o.jsx(x,{children:o.jsx(Z,{children:j("underProtected")})}):o.jsx(o.Fragment,{children:e&&o.jsx(x,{...g,children:e})})})]}):null,R.length===0?o.jsx(x,{sx:{display:{xs:b?"none":"block",md:"block"},py:3},children:o.jsx(Z,{children:j("emptyContent")})}):null]}),o.jsx(x,{sx:{display:{xs:"none",md:"block"},width:"1px",my:-3,backgroundColor:v.strokeSep}}),o.jsx(x,{sx:{width:{sx:"100%",md:420},maxWidth:"100%",position:"relative"},children:o.jsxs(x,{sx:{display:"flex",flexDirection:"column",gap:2.5,position:{xs:"static",md:u?"sticky":"static"},top:q=>u?q.spacing(3):"unset"},children:[o.jsx(me,{isMyself:b,switchPassport:i.switchPassport,switchProfile:i.switchProfile,openSettings:N,user:m.data,sx:{display:{xs:"none",md:"block"}}}),o.jsxs(x,{children:[o.jsx(B,{sx:{fontWeight:600,mb:1.5},children:j(b?"myInfo":"hisInfo")}),o.jsx(Wo,{user:m.data,isMySelf:b})]}),b?o.jsxs(x,{children:[o.jsx(B,{sx:{fontWeight:600,mb:1.5},children:j("passport")}),o.jsx($o,{user:m.data})]}):null]})})]})},[m,R,b,E,k,s,u]);if(!a&&!s&&((pe=(de=A==null?void 0:A.navigation)==null?void 0:de.userCenter)==null?void 0:pe.length)>0){const w=(xe=(ue=A==null?void 0:A.navigation)==null?void 0:ue.userCenter[0])==null?void 0:xe.link;return w&&window.location.replace(ge(w,{did:b?void 0:t})),null}return o.jsxs(x,{sx:{backgroundColor:v.backgroundsBgSubtitle,minHeight:"100vh",display:"flex",flexDirection:"column"},children:[o.jsx(so,{bordered:!0,...n}),o.jsxs(x,{flex:1,sx:{width:"100%",maxWidth:1200,margin:"0 auto",p:3,display:"flex",alignItems:"stretch",flexDirection:{xs:"column",md:"row"},gap:2.5},children:[$,X]}),f?null:o.jsx(lo,{bordered:!0,...l})]})}function Or(){const c=ao().tab,{t:s}=z();return o.jsxs(o.Fragment,{children:[o.jsx(io,{children:o.jsx("title",{children:s("pageTitle.userCenter")})}),o.jsx(Jo,{disableAutoRedirect:c==="settings",autoPopupSetting:c==="settings"})]})}export{Or as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{k as S,j as a,B as m,A as q,a as R,T as B,bg as G,O as L,g as H,u as J,bQ as Q,l as E,U as Y,b as k,bL as O,bI as U,dQ as K}from"./index-
|
|
1
|
+
import{k as S,j as a,B as m,A as q,a as R,T as B,bg as G,O as L,g as H,u as J,bQ as Q,l as E,U as Y,b as k,bL as O,bI as U,dQ as K}from"./index-Cggmiiia.js";import{D as X}from"./index-CPYtoS2i.js";import{U as T,d as F}from"./resource-dialog-DPp8WhH6.js";class Z extends Error{constructor(n){super(),this.name="AbortError",this.message=n}}const N=e=>globalThis.DOMException===void 0?new Z(e):new DOMException(e),M=e=>{const n=e.reason===void 0?N("This operation was aborted."):e.reason;return n instanceof Error?n:N(n)};async function ee(e,n,{concurrency:s=Number.POSITIVE_INFINITY,stopOnError:i=!0,signal:u}={}){return new Promise((w,C)=>{if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof n!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(s)||s===Number.POSITIVE_INFINITY)&&s>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${s}\` (${typeof s})`);const r=[],A=[],g=new Map;let c=!1,x=!1,v=!1,y=0,b=0;const D=e[Symbol.iterator]===void 0?e[Symbol.asyncIterator]():e[Symbol.iterator](),h=t=>{c=!0,x=!0,C(t)};u&&(u.aborted&&h(M(u)),u.addEventListener("abort",()=>{h(M(u))}));const I=async()=>{if(x)return;const t=await D.next(),o=b;if(b++,t.done){if(v=!0,y===0&&!x){if(!i&&A.length>0){h(new AggregateError(A));return}if(x=!0,g.size===0){w(r);return}const l=[];for(const[d,p]of r.entries())g.get(d)!==z&&l.push(p);w(l)}return}y++,(async()=>{try{const l=await t.value;if(x)return;const d=await n(l,o);d===z&&g.set(o,d),r[o]=d,y--,await I()}catch(l){if(i)h(l);else{A.push(l),y--;try{await I()}catch(d){h(d)}}}})()};(async()=>{for(let t=0;t<s;t++){try{await I()}catch(o){h(o);break}if(v||c)break}})()})}const z=Symbol("skip");async function te(e,n){return ee(e,s=>s(),n)}function oe({user:e,sessionUser:n}){const s=S(()=>{var i;return(i=(e==null?void 0:e.passports)||[])==null?void 0:i.find(u=>u.name===n.role)},[e==null?void 0:e.passports,n==null?void 0:n.role]);return a.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1},children:[a.jsx(q,{size:40,variant:"circle",shape:"circle",src:n.avatar,did:n.did,sx:{flexShrink:0}}),a.jsxs(m,{sx:{flex:1,overflow:"hidden"},children:[a.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1},children:[a.jsx(R,{title:n.fullName,children:a.jsx(B,{sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1},children:n.fullName})}),a.jsx(G,{label:(s==null?void 0:s.title)||(s==null?void 0:s.name)||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:L.textBase,borderColor:L.strokeBorderStrong,backgroundColor:"transparent",textTransform:"capitalize",pr:.5,pl:0,height:"auto"}})]}),a.jsx(R,{title:n.email,children:a.jsx(B,{variant:"body2",color:"grey",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:n.email})})]})]})}const ne={zh:{confirm:"确认",cancel:"取消",visitorId:"设备标识",deviceType:"设备类型",platform:"操作系统",walletOS:"钱包类型",role:"角色",fullname:"姓名",email:"邮箱",avatar:"头像",user:"用户",createdAt:"首次活动时间",updatedAt:"最近活动时间",lastLoginIp:"最近活动地址",actions:"操作",logoutAll:"注销所有会话",logoutAllTips:"不会注销当前会话",logout:"注销",currentSession:"当前会话",unknown:"未知",expired:"已过期",remove:"删除",logoutThisSession:"注销指定会话",logoutThisSessionConfirm:"确定要注销此会话吗?",logoutAllSession:"注销所有会话",logoutAllSessionConfirm:"确定要注销所有会话吗?"},en:{confirm:"Confirm",cancel:"Cancel",visitorId:"Device ID",deviceType:"Device Type",platform:"Platform",walletOS:"Wallet OS",role:"Role",fullname:"Fullname",email:"Email",avatar:"Avatar",user:"User",createdAt:"First Active Time",updatedAt:"Last Active Time",actions:"Actions",lastLoginIp:"Last Login IP",logoutAll:"Logout all",logoutAllTips:"Will not logout current session",logout:"Logout",currentSession:"Current Session",unknown:"Unknown",expired:"Expired",remove:"Remove",logoutThisSession:"Logout this session",logoutThisSessionConfirm:"Are you sure to logout this session?",logoutAllSession:"Logout all sessions",logoutAllSessionConfirm:"Are you sure to logout all sessions?"}},V="Reserved IP",P="ip-region-cache";async function re(e){const n=`https://ipapi.co/${e}/json/`,i=await(await fetch(n)).json();let u="";return i.error?i.reserved&&(u=V):u=[i.country_name,i.region,i.city].filter(Boolean).join("/"),u}async function se(e){const n=`https://api.ip.sb/geoip/${e}`,i=await(await fetch(n)).json();let u="";return i.error?i.reserved&&(u=V):u=[i.country,i.region,i.city].filter(Boolean).join("/"),u}async function ie(e){let n="",s={};try{const i=localStorage.getItem(P);i&&(s=JSON.parse(i))}catch{s={}}if(s[e])n=s[e];else{try{n=await se(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!n)try{n=await re(e)}catch{console.warn("Fail to get ip region from ip-api.co")}}if(n){const i=Object.keys(s);i.length>100&&delete s[i[0]],s[e]&&delete s[e],s[e]=n,localStorage.setItem(P,JSON.stringify(s))}return n}async function ae(e){return Promise.all(e.map(n=>ie(n)))}const W=e=>new T(e,{browser:[[/(ArcWallet)\/([\w\.]+)/i],[T.BROWSER.NAME,T.BROWSER.VERSION]]}).getResult();function de({user:e,showAction:n=!0,showUser:s=!0}){const i=H(),{locale:u}=J(),{confirmApi:w,confirmHolder:C}=Q(),r=E((t,o={})=>U(ne,t,u,"en",o)),A=E(async()=>{let t=e==null?void 0:e.userSessions;t||(t=await F.userSession.getUserSessions({did:e.did}));try{const l=t==null?void 0:t.map((f,j)=>[j,f.lastLoginIp]).filter(f=>!!f[1]),d=l==null?void 0:l.map(f=>f[1]),p=await ae(d);for(let f=0;f<p.length;f++){const j=p[f],_=l[f],$=t[_[0]];$.ipRegion=j}}catch(l){console.warn("Failed to convert ip to region"),console.error(l)}const o=new Date().getTime();return K(t,l=>l.visitorId===i?-1:o-new Date(l.updatedAt).getTime())}),g=Y(A),c=S(()=>g.data||[],[g.data]),x=S(()=>c.reduce((t,o)=>(t[o.lastLoginIp]=o.ipRegion,t),{}),[c]),v=E(({visitorId:t})=>{w.open({title:r("logoutThisSession"),content:r("logoutThisSessionConfirm"),confirmButtonText:r("confirm"),cancelButtonText:r("cancel"),onConfirm:async()=>{await F.user.logout({visitorId:t}),g.refresh(),w.close()}})}),y=S(()=>c.filter(o=>o.visitorId!==i),[c]),b=E(()=>{w.open({title:r("logoutAllSession"),content:r("logoutAllSessionConfirm"),confirmButtonText:r("confirm"),cancelButtonText:r("cancel"),onConfirm:async()=>{const t=y.map(o=>()=>F.user.logout({visitorId:o.visitorId}));await te(t,{concurrency:3,stopOnError:!1}),g.refresh(),w.close()}})}),D=[];n&&D.push(a.jsx(R,{title:r("logoutAllTips"),children:a.jsx(k,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:b,disabled:y.length===0,children:r("logoutAll")})},"logoutAll"));const h=S(()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600}),[]),I=[{label:r("platform"),name:"platform",options:{customBodyRenderLite:t=>{var d,p;const o=c[t],l=W(o.ua);return a.jsx(m,{children:[(d=l.os)==null?void 0:d.name,(p=l.os)==null?void 0:p.version].filter(Boolean).join("/")||r("unknown")})}}},{label:r("deviceType"),name:"deviceType",options:{customBodyRenderLite:t=>{var d,p;const o=c[t],l=W(o.ua);return a.jsx(m,{children:[(d=l.browser)==null?void 0:d.name,(p=l.browser)==null?void 0:p.version].filter(Boolean).join("/")||r("unknown")})}}},{label:r("walletOS"),name:"walletOS",options:{customBodyRenderLite:t=>{var l;const o=c[t];return a.jsx(m,{children:((l=o.extra)==null?void 0:l.walletOS)||r("unknown")})}}},s&&{label:r("user"),name:"user",options:{customBodyRenderLite:t=>{const o=c[t];return a.jsx(m,{sx:{minWidth:150,maxWidth:250},children:a.jsx(oe,{sessionUser:o.user,user:e})})}}},{label:r("createdAt"),name:"createdAt",options:{customBodyRenderLite:t=>{const o=c[t];return o.createdAt?a.jsx(O,{value:o.createdAt,relativeRange:3*86400*1e3,locale:u}):r("unknown")}}},{label:r("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:t=>{const o=c[t];return o.status==="expired"?r("expired"):a.jsx(O,{value:o.updatedAt,relativeRange:3*86400*1e3,locale:u})}}},{label:r("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:t=>{const o=c[t];return a.jsx(m,{children:x[o.lastLoginIp]?a.jsxs(a.Fragment,{children:[a.jsx(B,{variant:"body2",children:x[o.lastLoginIp]}),a.jsx(B,{variant:"body2",color:"grey",children:o.lastLoginIp||r("unknown")})]}):a.jsx(B,{children:o.lastLoginIp||r("unknown")})})}}},n&&{label:r("actions"),name:"actions",options:{customBodyRenderLite:t=>{const o=c[t];return a.jsx(m,{children:a.jsx(k,{sx:{whiteSpace:"nowrap",fontSize:"12px",px:1},disabled:i===o.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>v({visitorId:o.visitorId}),children:o.status==="expired"?r("remove"):i===o.visitorId?r("currentSession"):r("logout")})})}}}].filter(Boolean);return a.jsxs(m,{sx:{".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"}},children:[C,a.jsx(X,{locale:u,data:c,columns:I,customButtons:D,options:h,loading:g.loading})]})}export{de as U};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b8 as
|
|
1
|
+
import{b8 as h,fh as s,fi as l,ab as P,G as u}from"./index-Cggmiiia.js";const d=s;var E=(e,r)=>d(e)===d(r);const c=h(E),x=(e,r)=>{if(e.type===u.ROUTING_RULE_TYPES.REDIRECT){if(!e.url)return new Error(`${r("router.validation.redirectUrlRequired")}`);if(!e.redirectCode)return new Error(`redirect ${r("router.validation.redirectCodeRequired")}`)}else if(e.type===u.ROUTING_RULE_TYPES.BLOCKLET&&!e.did)return new Error(r("router.validation.didRequired"));return null},R=(e,r)=>{const t=x(e,r);return t||(e.pathPrefix.length?e.pathPrefix.length>150?new Error(r("router.validation.pathPrefixTooLong",{length:150})):null:new Error(r("router.validation.pathPrefixCannotBeEmpty")))},v=({params:e,blocklets:r,blocklet:t,locale:o="en"})=>{if(t){let i=(t.children||[]).find(f=>l.hasStartEngine(f.meta)&&c(f.mountPoint,e.pathPrefix));if(t.meta.group!=="gateway"&&e.pathPrefix==="/"&&(i="/"),i)return{zh:`挂载点 ${e.pathPrefix} 已存在,请使用其他挂载点`,en:`The mount point ${e.pathPrefix} already exist, please use another mount point`}[o]}const a=r.find(i=>i.meta.did===e.did);if(!a)return"";const n=a.meta.interfaces.find(i=>i.type==="web");return n&&n.prefix!==P.BLOCKLET_DYNAMIC_PATH_PREFIX&&e.pathPrefix!==n.prefix?{zh:`该 blocklet 只能挂载在 ${n.prefix}`,en:`This blocklet can only be mounted on ${n.prefix}`}[o]:""},T=e=>{if(!e||typeof e!="string")return e;let r=e.trim();try{return r=r.toLowerCase(),r.startsWith("http://")||r.startsWith("https://")?new URL(r).hostname:r}catch(t){return console.error("format domain failed",t),r}};export{R as a,T as p,v};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{az as _,aA as i,a4 as e,j as r,aB as a}from"./index-
|
|
1
|
+
import{az as _,aA as i,a4 as e,j as r,aB as a}from"./index-Cggmiiia.js";const u={en:_(i),ar:()=>e(()=>import("./ar-CqvGG4eC.js"),[]).then(t=>_(t.default)),de:()=>e(()=>import("./de-l0XzFKav.js"),[]).then(t=>_(t.default)),es:()=>e(()=>import("./es-DYmEeFzA.js"),[]).then(t=>_(t.default)),fr:()=>e(()=>import("./fr-DwS-xj4v.js"),[]).then(t=>_(t.default)),hi:()=>e(()=>import("./hi-Dj91QHv6.js"),[]).then(t=>_(t.default)),id:()=>e(()=>import("./id-CzhlCzfQ.js"),[]).then(t=>_(t.default)),ja:()=>e(()=>import("./ja-Ut-jFS9r.js"),[]).then(t=>_(t.default)),ko:()=>e(()=>import("./ko-Clp4qzRT.js"),[]).then(t=>_(t.default)),pt:()=>e(()=>import("./pt-BXaJbqdY.js"),[]).then(t=>_(t.default)),ru:()=>e(()=>import("./ru-p_K_7IoQ.js"),[]).then(t=>_(t.default)),th:()=>e(()=>import("./th-BJT9w_Lk.js"),[]).then(t=>_(t.default)),vi:()=>e(()=>import("./vi-CycHlNkN.js"),[]).then(t=>_(t.default)),"zh-TW":()=>e(()=>import("./zh-tw-44W5osxR.js"),[]).then(t=>_(t.default)),zh:()=>e(()=>import("./zh-Dv1l1HNj.js"),[]).then(t=>_(t.default))};function E(t){return function(o){return r.jsx(a,{translations:u,children:r.jsx(t,{...o})})}}export{E as w};
|
package/dist/index.html
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
padding: 0;
|
|
14
14
|
}
|
|
15
15
|
</style>
|
|
16
|
-
<script type="module" crossorigin src="/.well-known/service/static/assets/index-
|
|
16
|
+
<script type="module" crossorigin src="/.well-known/service/static/assets/index-Cggmiiia.js"></script>
|
|
17
17
|
<link rel="stylesheet" crossorigin href="/.well-known/service/static/assets/index-D8NuaJ66.css">
|
|
18
18
|
<link rel="manifest" href="/.well-known/service/static/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/.well-known/service/static/registerSW.js"></script></head>
|
|
19
19
|
|
package/dist/service-worker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
try{self["workbox:core:7.0.0"]&&_()}catch{}const ae=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},ne=ae;let y=class extends Error{constructor(e,t){const r=ne(e,t);super(r),this.name=e,this.details=t}};const ie=new Set,d={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},N=s=>[d.prefix,s,d.suffix].filter(e=>e&&e.length>0).join("-"),ce=s=>{for(const e of Object.keys(d))s(e)},oe={updateDetails:s=>{ce(e=>{typeof s[e]=="string"&&(d[e]=s[e])})},getGoogleAnalyticsName:s=>s||N(d.googleAnalytics),getPrecacheName:s=>s||N(d.precache),getPrefix:()=>d.prefix,getRuntimeName:s=>s||N(d.runtime),getSuffix:()=>d.suffix};function $(s,e){const t=new URL(s);for(const r of e)t.searchParams.delete(r);return t.href}async function le(s,e,t,r){const a=$(e.url,t);if(e.url===a)return s.match(e,r);const i=Object.assign(Object.assign({},r),{ignoreSearch:!0}),n=await s.keys(e,i);for(const c of n){const o=$(c.url,t);if(a===o)return s.match(c,r)}}let he=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};async function ue(){for(const s of ie)await s()}const fe=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function de(s){return new Promise(e=>setTimeout(e,s))}function pe(){self.addEventListener("activate",()=>self.clients.claim())}try{self["workbox:core:7.0.0"]&&_()}catch{}const ge=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},me=ge;let u=class extends Error{constructor(e,t){const r=me(e,t);super(r),this.name=e,this.details=t}};const p={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},M=s=>[p.prefix,s,p.suffix].filter(e=>e&&e.length>0).join("-"),we=s=>{for(const e of Object.keys(p))s(e)},j={updateDetails:s=>{we(e=>{typeof s[e]=="string"&&(p[e]=s[e])})},getGoogleAnalyticsName:s=>s||M(p.googleAnalytics),getPrecacheName:s=>s||M(p.precache),getPrefix:()=>p.prefix,getRuntimeName:s=>s||M(p.runtime),getSuffix:()=>p.suffix};function H(s,e){const t=e();return s.waitUntil(t),t}try{self["workbox:precaching:7.0.0"]&&_()}catch{}const ye="__WB_REVISION__";function _e(s){if(!s)throw new u("add-to-cache-list-unexpected-type",{entry:s});if(typeof s=="string"){const i=new URL(s,location.href);return{cacheKey:i.href,url:i.href}}const{revision:e,url:t}=s;if(!t)throw new u("add-to-cache-list-unexpected-type",{entry:s});if(!e){const i=new URL(t,location.href);return{cacheKey:i.href,url:i.href}}const r=new URL(t,location.href),a=new URL(t,location.href);return r.searchParams.set(ye,e),{cacheKey:r.href,url:a.href}}class Re{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:r})=>{if(e.type==="install"&&t&&t.originalRequest&&t.originalRequest instanceof Request){const a=t.originalRequest.url;r?this.notUpdatedURLs.push(a):this.updatedURLs.push(a)}return r}}}class be{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:t,params:r})=>{const a=(r==null?void 0:r.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return a?new Request(a,{headers:t.headers}):t},this._precacheController=e}}let b;function Ce(){if(b===void 0){const s=new Response("");if("body"in s)try{new Response(s.body),b=!0}catch{b=!1}b=!1}return b}async function xe(s,e){let t=null;if(s.url&&(t=new URL(s.url).origin),t!==self.location.origin)throw new u("cross-origin-copy-response",{origin:t});const r=s.clone(),i={headers:new Headers(r.headers),status:r.status,statusText:r.statusText},n=Ce()?r.body:await r.blob();return new Response(n,i)}const ke=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function B(s,e){const t=new URL(s);for(const r of e)t.searchParams.delete(r);return t.href}async function Ee(s,e,t,r){const a=B(e.url,t);if(e.url===a)return s.match(e,r);const i=Object.assign(Object.assign({},r),{ignoreSearch:!0}),n=await s.keys(e,i);for(const c of n){const o=B(c.url,t);if(a===o)return s.match(c,r)}}class De{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}const Ue=new Set;async function Le(){for(const s of Ue)await s()}function Pe(s){return new Promise(e=>setTimeout(e,s))}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function D(s){return typeof s=="string"?new Request(s):s}let ve=class{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new De,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const r of this._plugins)this._pluginStateMap.set(r,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let r=D(e);if(r.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const n=await t.preloadResponse;if(n)return n}const a=this.hasCallback("fetchDidFail")?r.clone():null;try{for(const n of this.iterateCallbacks("requestWillFetch"))r=await n({request:r.clone(),event:t})}catch(n){if(n instanceof Error)throw new u("plugin-error-request-will-fetch",{thrownErrorMessage:n.message})}const i=r.clone();try{let n;n=await fetch(r,r.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))n=await c({event:t,request:i,response:n});return n}catch(n){throw a&&await this.runCallbacks("fetchDidFail",{error:n,event:t,originalRequest:a.clone(),request:i.clone()}),n}}async fetchAndCachePut(e){const t=await this.fetch(e),r=t.clone();return this.waitUntil(this.cachePut(e,r)),t}async cacheMatch(e){const t=D(e);let r;const{cacheName:a,matchOptions:i}=this._strategy,n=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},i),{cacheName:a});r=await caches.match(n,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))r=await o({cacheName:a,matchOptions:i,cachedResponse:r,request:n,event:this.event})||void 0;return r}async cachePut(e,t){const r=D(e);await Pe(0);const a=await this.getCacheKey(r,"write");if(!t)throw new u("cache-put-with-no-response",{url:ke(a.url)});const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:n,matchOptions:c}=this._strategy,o=await self.caches.open(n),l=this.hasCallback("cacheDidUpdate"),f=l?await Ee(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?i.clone():i)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await Le(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:n,oldResponse:f,newResponse:i.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const r=`${e.url} | ${t}`;if(!this._cacheKeys[r]){let a=e;for(const i of this.iterateCallbacks("cacheKeyWillBeUsed"))a=D(await i({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[r]=a}return this._cacheKeys[r]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const r of this.iterateCallbacks(e))await r(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const r=this._pluginStateMap.get(t);yield i=>{const n=Object.assign(Object.assign({},i),{state:r});return t[e](n)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,r=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,r=!0,!t)break;return r||t&&t.status!==200&&(t=void 0),t}},Ne=class{constructor(e={}){this.cacheName=j.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,r=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,i=new ve(this,{event:t,request:r,params:a}),n=this._getResponse(i,r,t),c=this._awaitComplete(n,i,r,t);return[n,c]}async _getResponse(e,t,r){await e.runCallbacks("handlerWillStart",{event:r,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new u("no-response",{url:t.url})}catch(i){if(i instanceof Error){for(const n of e.iterateCallbacks("handlerDidError"))if(a=await n({error:i,event:r,request:t}),a)break}if(!a)throw i}for(const i of e.iterateCallbacks("handlerWillRespond"))a=await i({event:r,request:t,response:a});return a}async _awaitComplete(e,t,r,a){let i,n;try{i=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:r,response:i}),await t.doneWaiting()}catch(c){c instanceof Error&&(n=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:r,response:i,error:n}),t.destroy(),n)throw n}};class w extends Ne{constructor(e={}){e.cacheName=j.getPrecacheName(e.cacheName),super(e),this._fallbackToNetwork=e.fallbackToNetwork!==!1,this.plugins.push(w.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const r=await t.cacheMatch(e);return r||(t.event&&t.event.type==="install"?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let r;const a=t.params||{};if(this._fallbackToNetwork){const i=a.integrity,n=e.integrity,c=!n||n===i;r=await t.fetch(new Request(e,{integrity:e.mode!=="no-cors"?n||i:void 0})),i&&c&&e.mode!=="no-cors"&&(this._useDefaultCacheabilityPluginIfNeeded(),await t.cachePut(e,r.clone()))}else throw new u("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return r}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const r=await t.fetch(e);if(!await t.cachePut(e,r.clone()))throw new u("bad-precaching-response",{url:e.url,status:r.status});return r}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[r,a]of this.plugins.entries())a!==w.copyRedirectedCacheableResponsesPlugin&&(a===w.defaultPrecacheCacheabilityPlugin&&(e=r),a.cacheWillUpdate&&t++);t===0?this.plugins.push(w.defaultPrecacheCacheabilityPlugin):t>1&&e!==null&&this.plugins.splice(e,1)}}w.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:s}){return!s||s.status>=400?null:s}};w.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:s}){return s.redirected?await xe(s):s}};class Me{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:r=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new w({cacheName:j.getPrecacheName(e),plugins:[...t,new be({precacheController:this})],fallbackToNetwork:r}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const t=[];for(const r of e){typeof r=="string"?t.push(r):r&&r.revision===void 0&&t.push(r.url);const{cacheKey:a,url:i}=_e(r),n=typeof r!="string"&&r.revision?"reload":"default";if(this._urlsToCacheKeys.has(i)&&this._urlsToCacheKeys.get(i)!==a)throw new u("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(i),secondEntry:a});if(typeof r!="string"&&r.integrity){if(this._cacheKeysToIntegrities.has(a)&&this._cacheKeysToIntegrities.get(a)!==r.integrity)throw new u("add-to-cache-list-conflicting-integrities",{url:i});this._cacheKeysToIntegrities.set(a,r.integrity)}if(this._urlsToCacheKeys.set(i,a),this._urlsToCacheModes.set(i,n),t.length>0){const c=`Workbox is precaching URLs without revision info: ${t.join(", ")}
|
|
2
|
-
This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return H(e,async()=>{const t=new Re;this.strategy.plugins.push(t);for(const[i,n]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(n),o=this._urlsToCacheModes.get(i),l=new Request(i,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:n},request:l,event:e}))}const{updatedURLs:r,notUpdatedURLs:a}=t;return{updatedURLs:r,notUpdatedURLs:a}})}activate(e){return H(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),r=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),i=[];for(const n of r)a.has(n.url)||(await t.delete(n),i.push(n.url));return{deletedURLs:i}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,r=this.getCacheKeyForURL(t);if(r)return(await self.caches.open(this.strategy.cacheName)).match(r)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new u("non-precached-url",{url:e});return r=>(r.request=new Request(e),r.params=Object.assign({cacheKey:t},r.params),this.strategy.handle(r))}}let T;const J=()=>(T||(T=new Me),T);try{self["workbox:routing:7.0.0"]&&_()}catch{}const z="GET",P=s=>s&&typeof s=="object"?s:{handle:s};let E=class{constructor(e,t,r=z){this.handler=P(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=P(e)}},Te=class extends E{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}},Oe=class{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:n,params:c}}return{}}setDefaultHandler(e,t=z){this._defaultHandlerMap.set(t,P(e))}setCatchHandler(e){this._catchHandler=P(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new u("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new u("unregister-route-route-not-registered")}},C;const Se=()=>(C||(C=new Oe,C.addFetchListener(),C.addCacheListener()),C);function Ae(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new E(n,e,t)}else if(s instanceof RegExp)r=new Te(s,e,t);else if(typeof s=="function")r=new E(s,e,t);else if(s instanceof E)r=s;else throw new u("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return Se().registerRoute(r),r}function Ke(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(r=>r.test(t))&&s.searchParams.delete(t);return s}function*Ie(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:r=!0,urlManipulation:a}={}){const i=new URL(s,location.href);i.hash="",yield i.href;const n=Ke(i,e);if(yield n.href,t&&n.pathname.endsWith("/")){const c=new URL(n.href);c.pathname+=t,yield c.href}if(r){const c=new URL(n.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:i});for(const o of c)yield o.href}}class We extends E{constructor(e,t){const r=({request:a})=>{const i=e.getURLsToCacheKeys();for(const n of Ie(a.url,t)){const c=i.get(n);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(r,e.strategy)}}function je(s){const e=J(),t=new We(e,s);Ae(t)}function qe(s){J().precache(s)}function $e(s,e){qe(s),je(e)}try{self["workbox:core:7.0.0"]&&_()}catch{}const He=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},Be=He;class Fe extends Error{constructor(e,t){const r=Be(e,t);super(r),this.name=e,this.details=t}}function X(s){s.then(()=>{})}const Ve=(s,e)=>e.some(t=>s instanceof t);let F,V;function Ge(){return F||(F=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Qe(){return V||(V=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Y=new WeakMap,I=new WeakMap,Z=new WeakMap,O=new WeakMap,q=new WeakMap;function Je(s){const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("success",i),s.removeEventListener("error",n)},i=()=>{t(m(s.result)),a()},n=()=>{r(s.error),a()};s.addEventListener("success",i),s.addEventListener("error",n)});return e.then(t=>{t instanceof IDBCursor&&Y.set(t,s)}).catch(()=>{}),q.set(e,s),e}function ze(s){if(I.has(s))return;const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("complete",i),s.removeEventListener("error",n),s.removeEventListener("abort",n)},i=()=>{t(),a()},n=()=>{r(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",i),s.addEventListener("error",n),s.addEventListener("abort",n)});I.set(s,e)}let W={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return I.get(s);if(e==="objectStoreNames")return s.objectStoreNames||Z.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return m(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function Xe(s){W=s(W)}function Ye(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const r=s.call(S(this),e,...t);return Z.set(r,e.sort?e.sort():[e]),m(r)}:Qe().includes(s)?function(...e){return s.apply(S(this),e),m(Y.get(this))}:function(...e){return m(s.apply(S(this),e))}}function Ze(s){return typeof s=="function"?Ye(s):(s instanceof IDBTransaction&&ze(s),Ve(s,Ge())?new Proxy(s,W):s)}function m(s){if(s instanceof IDBRequest)return Je(s);if(O.has(s))return O.get(s);const e=Ze(s);return e!==s&&(O.set(s,e),q.set(e,s)),e}const S=s=>q.get(s);function et(s,e,{blocked:t,upgrade:r,blocking:a,terminated:i}={}){const n=indexedDB.open(s,e),c=m(n);return r&&n.addEventListener("upgradeneeded",o=>{r(m(n.result),o.oldVersion,o.newVersion,m(n.transaction),o)}),t&&n.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{i&&o.addEventListener("close",()=>i()),a&&o.addEventListener("versionchange",l=>a(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function tt(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",r=>e(r.oldVersion,r)),m(t).then(()=>{})}const st=["get","getKey","getAll","getAllKeys","count"],rt=["put","add","delete","clear"],A=new Map;function G(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(A.get(e))return A.get(e);const t=e.replace(/FromIndex$/,""),r=e!==t,a=rt.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!(a||st.includes(t)))return;const i=async function(n,...c){const o=this.transaction(n,a?"readwrite":"readonly");let l=o.store;return r&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),a&&o.done]))[0]};return A.set(e,i),i}Xe(s=>({...s,get:(e,t,r)=>G(e,t)||s.get(e,t,r),has:(e,t)=>!!G(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.0.0"]&&_()}catch{}const at="workbox-expiration",x="cache-entries",Q=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class nt{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(x,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&tt(this._cacheName)}async setTimestamp(e,t){e=Q(e);const r={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},i=(await this.getDb()).transaction(x,"readwrite",{durability:"relaxed"});await i.store.put(r),await i.done}async getTimestamp(e){const r=await(await this.getDb()).get(x,this._getId(e));return r==null?void 0:r.timestamp}async expireEntries(e,t){const r=await this.getDb();let a=await r.transaction(x).store.index("timestamp").openCursor(null,"prev");const i=[];let n=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp<e||t&&n>=t?i.push(a.value):n++),a=await a.continue()}const c=[];for(const o of i)await r.delete(x,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+Q(e)}async getDb(){return this._db||(this._db=await et(at,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class it{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new nt(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),r=await self.caches.open(this._cacheName);for(const a of t)await r.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,X(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),r=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t<r:!0}else return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}const g={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},K=s=>[g.prefix,s,g.suffix].filter(e=>e&&e.length>0).join("-"),ct=s=>{for(const e of Object.keys(g))s(e)},ot={updateDetails:s=>{ct(e=>{typeof s[e]=="string"&&(g[e]=s[e])})},getGoogleAnalyticsName:s=>s||K(g.googleAnalytics),getPrecacheName:s=>s||K(g.precache),getPrefix:()=>g.prefix,getRuntimeName:s=>s||K(g.runtime),getSuffix:()=>g.suffix},lt=new Set;function ht(s){lt.add(s)}class ut{constructor(e={}){this.cachedResponseWillBeUsed=async({event:t,request:r,cacheName:a,cachedResponse:i})=>{if(!i)return null;const n=this._isResponseDateFresh(i),c=this._getCacheExpiration(a);X(c.expireEntries());const o=c.updateTimestamp(r.url);if(t)try{t.waitUntil(o)}catch{}return n?i:null},this.cacheDidUpdate=async({cacheName:t,request:r})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(r.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&ht(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===ot.getRuntimeName())throw new Fe("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new it(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const r=Date.now();return t>=r-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),a=new Date(t).getTime();return isNaN(a)?null:a}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}try{self["workbox:routing:7.0.0"]&&_()}catch{}const ee="GET",v=s=>s&&typeof s=="object"?s:{handle:s};class L{constructor(e,t,r=ee){this.handler=v(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=v(e)}}class ft extends L{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}}class dt{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:n,params:c}}return{}}setDefaultHandler(e,t=ee){this._defaultHandlerMap.set(t,v(e))}setCatchHandler(e){this._catchHandler=v(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new y("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new y("unregister-route-route-not-registered")}}let k;const pt=()=>(k||(k=new dt,k.addFetchListener(),k.addCacheListener()),k);function te(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new L(n,e,t)}else if(s instanceof RegExp)r=new ft(s,e,t);else if(typeof s=="function")r=new L(s,e,t);else if(s instanceof L)r=s;else throw new y("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return pt().registerRoute(r),r}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function U(s){return typeof s=="string"?new Request(s):s}class gt{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new he,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const r of this._plugins)this._pluginStateMap.set(r,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let r=U(e);if(r.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const n=await t.preloadResponse;if(n)return n}const a=this.hasCallback("fetchDidFail")?r.clone():null;try{for(const n of this.iterateCallbacks("requestWillFetch"))r=await n({request:r.clone(),event:t})}catch(n){if(n instanceof Error)throw new y("plugin-error-request-will-fetch",{thrownErrorMessage:n.message})}const i=r.clone();try{let n;n=await fetch(r,r.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))n=await c({event:t,request:i,response:n});return n}catch(n){throw a&&await this.runCallbacks("fetchDidFail",{error:n,event:t,originalRequest:a.clone(),request:i.clone()}),n}}async fetchAndCachePut(e){const t=await this.fetch(e),r=t.clone();return this.waitUntil(this.cachePut(e,r)),t}async cacheMatch(e){const t=U(e);let r;const{cacheName:a,matchOptions:i}=this._strategy,n=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},i),{cacheName:a});r=await caches.match(n,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))r=await o({cacheName:a,matchOptions:i,cachedResponse:r,request:n,event:this.event})||void 0;return r}async cachePut(e,t){const r=U(e);await de(0);const a=await this.getCacheKey(r,"write");if(!t)throw new y("cache-put-with-no-response",{url:fe(a.url)});const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:n,matchOptions:c}=this._strategy,o=await self.caches.open(n),l=this.hasCallback("cacheDidUpdate"),f=l?await le(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?i.clone():i)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await ue(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:n,oldResponse:f,newResponse:i.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const r=`${e.url} | ${t}`;if(!this._cacheKeys[r]){let a=e;for(const i of this.iterateCallbacks("cacheKeyWillBeUsed"))a=U(await i({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[r]=a}return this._cacheKeys[r]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const r of this.iterateCallbacks(e))await r(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const r=this._pluginStateMap.get(t);yield i=>{const n=Object.assign(Object.assign({},i),{state:r});return t[e](n)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,r=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,r=!0,!t)break;return r||t&&t.status!==200&&(t=void 0),t}}class se{constructor(e={}){this.cacheName=oe.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,r=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,i=new gt(this,{event:t,request:r,params:a}),n=this._getResponse(i,r,t),c=this._awaitComplete(n,i,r,t);return[n,c]}async _getResponse(e,t,r){await e.runCallbacks("handlerWillStart",{event:r,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new y("no-response",{url:t.url})}catch(i){if(i instanceof Error){for(const n of e.iterateCallbacks("handlerDidError"))if(a=await n({error:i,event:r,request:t}),a)break}if(!a)throw i}for(const i of e.iterateCallbacks("handlerWillRespond"))a=await i({event:r,request:t,response:a});return a}async _awaitComplete(e,t,r,a){let i,n;try{i=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:r,response:i}),await t.doneWaiting()}catch(c){c instanceof Error&&(n=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:r,response:i,error:n}),t.destroy(),n)throw n}}class mt extends se{async _handle(e,t){let r=await t.cacheMatch(e),a;if(!r)try{r=await t.fetchAndCachePut(e)}catch(i){i instanceof Error&&(a=i)}if(!r)throw new y("no-response",{url:e.url,error:a});return r}}const wt={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class yt extends se{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(wt)}async _handle(e,t){const r=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(r);let a=await t.cacheMatch(e),i;if(!a)try{a=await r}catch(n){n instanceof Error&&(i=n)}if(!a)throw new y("no-response",{url:e.url,error:i});return a}}$e(([{"revision":null,"url":"assets/access-control-Deg0Ez_v.js"},{"revision":null,"url":"assets/actions-Dv2KmWA_.js"},{"revision":null,"url":"assets/add-component-core-CGy2QLvt.js"},{"revision":null,"url":"assets/add-component-core-D_j8BgsJ.css"},{"revision":null,"url":"assets/Add-DV9cHTiI.js"},{"revision":null,"url":"assets/add-resource-B2YCggbD.js"},{"revision":null,"url":"assets/AddBox-DjGRetT1.js"},{"revision":null,"url":"assets/addon-B-L0-6EM.js"},{"revision":null,"url":"assets/Alert-BriK3hjA.js"},{"revision":null,"url":"assets/analytics-B3U8I3AQ.js"},{"revision":null,"url":"assets/api-DJ1sjN9o.js"},{"revision":null,"url":"assets/ar-CqvGG4eC.js"},{"revision":null,"url":"assets/ar-lTVP4T3d.js"},{"revision":null,"url":"assets/ArrowDropDown-DX29Pf8V.js"},{"revision":null,"url":"assets/audit-logs-Dt1zBSaX.js"},{"revision":null,"url":"assets/Avatar-CpQhQmV4.js"},{"revision":null,"url":"assets/button-BotQVFjI.js"},{"revision":null,"url":"assets/ButtonGroup-BPdi_2z2.js"},{"revision":null,"url":"assets/CheckCircle-DwkE-k6U.js"},{"revision":null,"url":"assets/ChevronRight-BHXal2s_.js"},{"revision":null,"url":"assets/click-to-copy-C932KUDy.js"},{"revision":null,"url":"assets/Close-BtG4tyUL.js"},{"revision":null,"url":"assets/CloseOutlined-CYZb8eDz.js"},{"revision":null,"url":"assets/complete-BfHgp0O7.js"},{"revision":null,"url":"assets/component-BziFLYA3.js"},{"revision":null,"url":"assets/config-BcfULTik.js"},{"revision":null,"url":"assets/config-BqLTd80Y.js"},{"revision":null,"url":"assets/config-navigation-1U4iVdBl.js"},{"revision":null,"url":"assets/confirm-BWW215hi.js"},{"revision":null,"url":"assets/connect-CfBbqaTr.js"},{"revision":null,"url":"assets/connect-DC7BGJJv.js"},{"revision":null,"url":"assets/connect-to-CHo6hM6n.js"},{"revision":null,"url":"assets/content-layout-BP4bsvx7.js"},{"revision":null,"url":"assets/dashboard-BWG8DtF1.js"},{"revision":null,"url":"assets/de-B3TxaybY.js"},{"revision":null,"url":"assets/de-l0XzFKav.js"},{"revision":null,"url":"assets/Delete-rvy-F0hT.js"},{"revision":null,"url":"assets/DeleteOutline-C36lJe42.js"},{"revision":null,"url":"assets/did-address-TSZ5XRBj.js"},{"revision":null,"url":"assets/domain-B0bCdxTC.js"},{"revision":null,"url":"assets/domain-list-A5SqLbLS.js"},{"revision":null,"url":"assets/Done-n1c-sUsw.js"},{"revision":null,"url":"assets/Download-DuCZFVPl.js"},{"revision":null,"url":"assets/Edit-BrAk9NBL.js"},{"revision":null,"url":"assets/EditIcon-CPgYqcwg.js"},{"revision":null,"url":"assets/Error-g7gK9Wfp.js"},{"revision":null,"url":"assets/es-BY0KMFme.js"},{"revision":null,"url":"assets/es-DYmEeFzA.js"},{"revision":null,"url":"assets/exchange-passport-CBjbwwA6.js"},{"revision":null,"url":"assets/ExpandMore-DpLFPsWa.js"},{"revision":null,"url":"assets/fallback-Dz8ZuYD5.js"},{"revision":null,"url":"assets/FilterList-BpmYd7MC.js"},{"revision":null,"url":"assets/format-error-DQS9AwZv.js"},{"revision":null,"url":"assets/FormControl-Dq6XW9kS.js"},{"revision":null,"url":"assets/FormControlLabel-CQnpTkDU.js"},{"revision":null,"url":"assets/FormGroup-C8sAhYQk.js"},{"revision":null,"url":"assets/fr-BiVZLeXU.js"},{"revision":null,"url":"assets/fr-DwS-xj4v.js"},{"revision":null,"url":"assets/fuel-BP12PtJ1.js"},{"revision":null,"url":"assets/fullpage-DXFbt1Ve.js"},{"revision":null,"url":"assets/Google-C3cw6Unp.js"},{"revision":null,"url":"assets/hi-B_LrkIOS.js"},{"revision":null,"url":"assets/hi-Dj91QHv6.js"},{"revision":null,"url":"assets/Hidden-c0nvbE8_.js"},{"revision":null,"url":"assets/home-Cx9PAId-.js"},{"revision":null,"url":"assets/id-CzhlCzfQ.js"},{"revision":null,"url":"assets/id-jBXPD1he.js"},{"revision":null,"url":"assets/iframe-CO-VEhes.js"},{"revision":null,"url":"assets/index--YUaVsoq.js"},{"revision":null,"url":"assets/index-46Rvg-Bo.js"},{"revision":null,"url":"assets/index-B0wa_Sca.js"},{"revision":null,"url":"assets/index-B22_1WOD.js"},{"revision":null,"url":"assets/index-B5Pm_bPi.js"},{"revision":null,"url":"assets/index-BcFOSrVl.js"},{"revision":null,"url":"assets/index-BJDKEH0b.js"},{"revision":null,"url":"assets/index-BmHPL-9s.js"},{"revision":null,"url":"assets/index-BqmsKa7O.js"},{"revision":null,"url":"assets/index-BSHfXuRt.js"},{"revision":null,"url":"assets/index-BsjCwHmK.js"},{"revision":null,"url":"assets/index-Bwzls06Y.js"},{"revision":null,"url":"assets/index-ByYl1QnH.js"},{"revision":null,"url":"assets/index-CaLGv6xG.js"},{"revision":null,"url":"assets/index-CFQwbx1S.js"},{"revision":null,"url":"assets/index-ChpB_Xok.js"},{"revision":null,"url":"assets/index-CndSwPzI.js"},{"revision":null,"url":"assets/index-COZKzHiS.js"},{"revision":null,"url":"assets/index-CQU16qpp.js"},{"revision":null,"url":"assets/index-CTFO1wAr.js"},{"revision":null,"url":"assets/index-D_u35EkG.js"},{"revision":null,"url":"assets/index-D-GkMvG_.js"},{"revision":null,"url":"assets/index-D4PP6P2d.css"},{"revision":null,"url":"assets/index-D5PXuh6o.js"},{"revision":null,"url":"assets/index-D8NuaJ66.css"},{"revision":null,"url":"assets/index-DCMTEGgZ.js"},{"revision":null,"url":"assets/index-DtAm5Ed6.js"},{"revision":null,"url":"assets/index-DTEEl-sV.js"},{"revision":null,"url":"assets/index-Du6azec5.js"},{"revision":null,"url":"assets/index-DU7LqWjQ.js"},{"revision":null,"url":"assets/index-foZCwT8M.css"},{"revision":null,"url":"assets/index-HqFqdQ4r.js"},{"revision":null,"url":"assets/index-MoRwjSwP.js"},{"revision":null,"url":"assets/index-ozDSMBYi.js"},{"revision":null,"url":"assets/index-TTSckhl8.js"},{"revision":null,"url":"assets/index-VIHj0M7P.js"},{"revision":null,"url":"assets/index-zQvc8SIq.js"},{"revision":null,"url":"assets/index.es-CYl4P_xg.js"},{"revision":null,"url":"assets/index.esm-DDyWFyUp.js"},{"revision":null,"url":"assets/InfoOutlined-DEt-KJ8v.js"},{"revision":null,"url":"assets/InputAdornment-Dr1oU3Hs.js"},{"revision":null,"url":"assets/InputLabel-DYr7To9X.js"},{"revision":null,"url":"assets/invitation-YCFRX3K4.js"},{"revision":null,"url":"assets/invite-BVqEvYi7.js"},{"revision":null,"url":"assets/issue-passport-Bt2ICeaH.js"},{"revision":null,"url":"assets/item-DmDrPoAj.js"},{"revision":null,"url":"assets/ja-DKiHQ6DE.js"},{"revision":null,"url":"assets/ja-Ut-jFS9r.js"},{"revision":null,"url":"assets/jss-plugin-props-sort.esm-B9z92TrV.js"},{"revision":null,"url":"assets/keyboard-arrow-down-rounded-DadBVmpO.js"},{"revision":null,"url":"assets/ko-BBYyf1yM.js"},{"revision":null,"url":"assets/ko-Clp4qzRT.js"},{"revision":null,"url":"assets/LastPage-DV14H4DC.js"},{"revision":null,"url":"assets/Launch-DSSRxyd1.js"},{"revision":null,"url":"assets/launch-result-message-DpNOYW9u.js"},{"revision":null,"url":"assets/LaunchOutlined-DOGa7uCZ.js"},{"revision":null,"url":"assets/layout-D41GSjev.js"},{"revision":null,"url":"assets/Link-BzeSWqDp.js"},{"revision":null,"url":"assets/list-header-cw9lRKSX.js"},{"revision":null,"url":"assets/ListItemText-BWMpM4cA.js"},{"revision":null,"url":"assets/LoadingButton-IrsPdnhT.js"},{"revision":null,"url":"assets/localization-9mzelGR9.js"},{"revision":null,"url":"assets/LockIcon-Cx_TySkG.js"},{"revision":null,"url":"assets/log-D33dFtt_.css"},{"revision":null,"url":"assets/log-DVDRYSeA.js"},{"revision":null,"url":"assets/login-BLIQel5D.js"},{"revision":null,"url":"assets/login-oauth-callback--4mls_Fw.js"},{"revision":null,"url":"assets/logo-uploader-CHBeSau3.js"},{"revision":null,"url":"assets/Loop-CSmyyk97.js"},{"revision":null,"url":"assets/lost-passport-6PNRRlCd.js"},{"revision":null,"url":"assets/lottie-C16LOHrZ.js"},{"revision":null,"url":"assets/mode-B2dWMeTO.js"},{"revision":null,"url":"assets/MoreHoriz-B_IgZ_Tw.js"},{"revision":null,"url":"assets/MoreVert-BQD92YJp.js"},{"revision":null,"url":"assets/notifications-DHYTuxQt.js"},{"revision":null,"url":"assets/open-window-CEqHc-YI.js"},{"revision":null,"url":"assets/OpenInNew-Ba4HupG6.js"},{"revision":null,"url":"assets/overview-jW78KQ6d.js"},{"revision":null,"url":"assets/page-header-Bjl7D46v.js"},{"revision":null,"url":"assets/Pagination-g_z2fX8D.js"},{"revision":null,"url":"assets/permission-BK9x4qjQ.js"},{"revision":null,"url":"assets/PlayArrow-CvyM0yMY.js"},{"revision":null,"url":"assets/preact.module-DJUF--8d.js"},{"revision":null,"url":"assets/preferences-4fQh6PBV.js"},{"revision":null,"url":"assets/pt-BXaJbqdY.js"},{"revision":null,"url":"assets/pt-DI2MIkSi.js"},{"revision":null,"url":"assets/publish-resource-RsLy3V3l.js"},{"revision":null,"url":"assets/QuestionMarkCircle-B_wELYAO.js"},{"revision":null,"url":"assets/RadioGroup-BSqtRWJR.js"},{"revision":null,"url":"assets/react-BW7E7-P9.css"},{"revision":null,"url":"assets/react-DCoycSH4.js"},{"revision":null,"url":"assets/redux-Xix6UYN5.js"},{"revision":null,"url":"assets/resource-dialog-CMS1eEc0.js"},{"revision":null,"url":"assets/ru-B2L3CRQ4.js"},{"revision":null,"url":"assets/ru-p_K_7IoQ.js"},{"revision":null,"url":"assets/sdk-B75CkXUw.js"},{"revision":null,"url":"assets/Search-D_9DtKpx.js"},{"revision":null,"url":"assets/Select-CMM8MR9i.js"},{"revision":null,"url":"assets/selector-BcHp8r2b.js"},{"revision":null,"url":"assets/ServerLogo-Ds39xok2.js"},{"revision":null,"url":"assets/session-AqfK0jLG.js"},{"revision":null,"url":"assets/setup-DXuWRjLR.js"},{"revision":null,"url":"assets/shorten-label-DZ5n7VkB.js"},{"revision":null,"url":"assets/Skeleton-d-rA8WB_.js"},{"revision":null,"url":"assets/slicedToArray-DiN6EoYj.js"},{"revision":null,"url":"assets/Slider-Cv9IlmAx.js"},{"revision":null,"url":"assets/spaces-DBKeHx91.js"},{"revision":null,"url":"assets/start-C4mLiamV.js"},{"revision":null,"url":"assets/step-actions-NyA7AGpj.js"},{"revision":null,"url":"assets/Stepper-X4KYPIVJ.js"},{"revision":null,"url":"assets/studio-CC7YQ-9Q.js"},{"revision":null,"url":"assets/switch-control-VH3u6pwk.js"},{"revision":null,"url":"assets/TextField-BYelVRF_.js"},{"revision":null,"url":"assets/th-BJT9w_Lk.js"},{"revision":null,"url":"assets/th-CfNBHHtU.js"},{"revision":null,"url":"assets/Toolbar-DI2YKZS2.js"},{"revision":null,"url":"assets/toPropertyKey-PLuKRk1e.js"},{"revision":null,"url":"assets/toUpper-D8eon-dl.js"},{"revision":null,"url":"assets/transfer-Dp36g86n.js"},{"revision":null,"url":"assets/uniqBy-Cev3lMnU.js"},{"revision":null,"url":"assets/unsubscribe-Be0k3pAZ.js"},{"revision":null,"url":"assets/url-join-B-UX0vQK.js"},{"revision":null,"url":"assets/use-blocklet-info-for-connect-did-spaces-DF1lby8c.js"},{"revision":null,"url":"assets/use-mobile-BLqjm-5m.js"},{"revision":null,"url":"assets/use-passport-id-B-b-_oYF.js"},{"revision":null,"url":"assets/useAsync-PE3W-DLW.js"},{"revision":null,"url":"assets/useFormControl-DMGx-jdt.js"},{"revision":null,"url":"assets/useLocalStorage-eP0cInBT.js"},{"revision":null,"url":"assets/user-center-CkHZ_2ui.js"},{"revision":null,"url":"assets/user-sessions-C8nlOE7U.js"},{"revision":null,"url":"assets/useSetState-DEVLe2Fz.js"},{"revision":null,"url":"assets/useSlot-BrU8y60n.js"},{"revision":null,"url":"assets/useSlotProps-fP10cTIP.js"},{"revision":null,"url":"assets/useThemeProps-C59Glnbx.js"},{"revision":null,"url":"assets/util-yXMDVjHb.js"},{"revision":null,"url":"assets/vi-CycHlNkN.js"},{"revision":null,"url":"assets/vi-DbzhnofW.js"},{"revision":null,"url":"assets/ViewList-DWZsPuDR.js"},{"revision":null,"url":"assets/wrap-locale-DL11xPuS.js"},{"revision":null,"url":"assets/zh-Dv1l1HNj.js"},{"revision":null,"url":"assets/zh-FO0C29Rb.js"},{"revision":null,"url":"assets/zh-tw-44W5osxR.js"},{"revision":null,"url":"assets/zh-tw-cyWwf75a.js"},{"revision":"ad17f32f10efdcbe71cc490acfb6b4fa","url":"index.html"},{"revision":"186b2f1889d7c89ecd30e422ab415c8a","url":"registerSW.js"},{"revision":"07a287e43ae8e959a20d6b367a581667","url":"router-template-styles/styles.css"},{"revision":"ecdddc9b1297e7511cad18529d5cfd89","url":"manifest.webmanifest"}]||[]).filter(s=>s.url!=="/"&&!s.url.includes("index.html")));pe();self.addEventListener("activate",()=>{console.log("Service Worker activated")});self.addEventListener("install",s=>{console.log("Service Worker installed"),s.waitUntil(self.skipWaiting())});const re=s=>!!(s.method!=="GET"||s.url.includes("/api")||s.url.includes("__meta__.js")||s.url.includes("__blocklet__.js"));te(s=>{const{request:e}=s;return re(e)?!1:e.url.includes("/static/")},new mt({cacheName:"static",plugins:[new ut({maxEntries:200})]}));te(s=>{const{request:e}=s;return re(e)?!1:e.url.includes("/images/")||e.url.includes("/router/-template-styles/")},new yt);
|
|
2
|
+
This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return H(e,async()=>{const t=new Re;this.strategy.plugins.push(t);for(const[i,n]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(n),o=this._urlsToCacheModes.get(i),l=new Request(i,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:n},request:l,event:e}))}const{updatedURLs:r,notUpdatedURLs:a}=t;return{updatedURLs:r,notUpdatedURLs:a}})}activate(e){return H(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),r=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),i=[];for(const n of r)a.has(n.url)||(await t.delete(n),i.push(n.url));return{deletedURLs:i}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,r=this.getCacheKeyForURL(t);if(r)return(await self.caches.open(this.strategy.cacheName)).match(r)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new u("non-precached-url",{url:e});return r=>(r.request=new Request(e),r.params=Object.assign({cacheKey:t},r.params),this.strategy.handle(r))}}let T;const J=()=>(T||(T=new Me),T);try{self["workbox:routing:7.0.0"]&&_()}catch{}const z="GET",P=s=>s&&typeof s=="object"?s:{handle:s};let E=class{constructor(e,t,r=z){this.handler=P(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=P(e)}},Te=class extends E{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}},Oe=class{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:n,params:c}}return{}}setDefaultHandler(e,t=z){this._defaultHandlerMap.set(t,P(e))}setCatchHandler(e){this._catchHandler=P(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new u("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new u("unregister-route-route-not-registered")}},C;const Se=()=>(C||(C=new Oe,C.addFetchListener(),C.addCacheListener()),C);function Ae(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new E(n,e,t)}else if(s instanceof RegExp)r=new Te(s,e,t);else if(typeof s=="function")r=new E(s,e,t);else if(s instanceof E)r=s;else throw new u("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return Se().registerRoute(r),r}function Ke(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(r=>r.test(t))&&s.searchParams.delete(t);return s}function*Ie(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:r=!0,urlManipulation:a}={}){const i=new URL(s,location.href);i.hash="",yield i.href;const n=Ke(i,e);if(yield n.href,t&&n.pathname.endsWith("/")){const c=new URL(n.href);c.pathname+=t,yield c.href}if(r){const c=new URL(n.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:i});for(const o of c)yield o.href}}class We extends E{constructor(e,t){const r=({request:a})=>{const i=e.getURLsToCacheKeys();for(const n of Ie(a.url,t)){const c=i.get(n);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(r,e.strategy)}}function je(s){const e=J(),t=new We(e,s);Ae(t)}function qe(s){J().precache(s)}function $e(s,e){qe(s),je(e)}try{self["workbox:core:7.0.0"]&&_()}catch{}const He=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},Be=He;class Fe extends Error{constructor(e,t){const r=Be(e,t);super(r),this.name=e,this.details=t}}function X(s){s.then(()=>{})}const Ve=(s,e)=>e.some(t=>s instanceof t);let F,V;function Ge(){return F||(F=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Qe(){return V||(V=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Y=new WeakMap,I=new WeakMap,Z=new WeakMap,O=new WeakMap,q=new WeakMap;function Je(s){const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("success",i),s.removeEventListener("error",n)},i=()=>{t(m(s.result)),a()},n=()=>{r(s.error),a()};s.addEventListener("success",i),s.addEventListener("error",n)});return e.then(t=>{t instanceof IDBCursor&&Y.set(t,s)}).catch(()=>{}),q.set(e,s),e}function ze(s){if(I.has(s))return;const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("complete",i),s.removeEventListener("error",n),s.removeEventListener("abort",n)},i=()=>{t(),a()},n=()=>{r(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",i),s.addEventListener("error",n),s.addEventListener("abort",n)});I.set(s,e)}let W={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return I.get(s);if(e==="objectStoreNames")return s.objectStoreNames||Z.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return m(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function Xe(s){W=s(W)}function Ye(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const r=s.call(S(this),e,...t);return Z.set(r,e.sort?e.sort():[e]),m(r)}:Qe().includes(s)?function(...e){return s.apply(S(this),e),m(Y.get(this))}:function(...e){return m(s.apply(S(this),e))}}function Ze(s){return typeof s=="function"?Ye(s):(s instanceof IDBTransaction&&ze(s),Ve(s,Ge())?new Proxy(s,W):s)}function m(s){if(s instanceof IDBRequest)return Je(s);if(O.has(s))return O.get(s);const e=Ze(s);return e!==s&&(O.set(s,e),q.set(e,s)),e}const S=s=>q.get(s);function et(s,e,{blocked:t,upgrade:r,blocking:a,terminated:i}={}){const n=indexedDB.open(s,e),c=m(n);return r&&n.addEventListener("upgradeneeded",o=>{r(m(n.result),o.oldVersion,o.newVersion,m(n.transaction),o)}),t&&n.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{i&&o.addEventListener("close",()=>i()),a&&o.addEventListener("versionchange",l=>a(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function tt(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",r=>e(r.oldVersion,r)),m(t).then(()=>{})}const st=["get","getKey","getAll","getAllKeys","count"],rt=["put","add","delete","clear"],A=new Map;function G(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(A.get(e))return A.get(e);const t=e.replace(/FromIndex$/,""),r=e!==t,a=rt.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!(a||st.includes(t)))return;const i=async function(n,...c){const o=this.transaction(n,a?"readwrite":"readonly");let l=o.store;return r&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),a&&o.done]))[0]};return A.set(e,i),i}Xe(s=>({...s,get:(e,t,r)=>G(e,t)||s.get(e,t,r),has:(e,t)=>!!G(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.0.0"]&&_()}catch{}const at="workbox-expiration",x="cache-entries",Q=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class nt{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(x,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&tt(this._cacheName)}async setTimestamp(e,t){e=Q(e);const r={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},i=(await this.getDb()).transaction(x,"readwrite",{durability:"relaxed"});await i.store.put(r),await i.done}async getTimestamp(e){const r=await(await this.getDb()).get(x,this._getId(e));return r==null?void 0:r.timestamp}async expireEntries(e,t){const r=await this.getDb();let a=await r.transaction(x).store.index("timestamp").openCursor(null,"prev");const i=[];let n=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp<e||t&&n>=t?i.push(a.value):n++),a=await a.continue()}const c=[];for(const o of i)await r.delete(x,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+Q(e)}async getDb(){return this._db||(this._db=await et(at,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class it{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new nt(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),r=await self.caches.open(this._cacheName);for(const a of t)await r.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,X(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),r=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t<r:!0}else return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}const g={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},K=s=>[g.prefix,s,g.suffix].filter(e=>e&&e.length>0).join("-"),ct=s=>{for(const e of Object.keys(g))s(e)},ot={updateDetails:s=>{ct(e=>{typeof s[e]=="string"&&(g[e]=s[e])})},getGoogleAnalyticsName:s=>s||K(g.googleAnalytics),getPrecacheName:s=>s||K(g.precache),getPrefix:()=>g.prefix,getRuntimeName:s=>s||K(g.runtime),getSuffix:()=>g.suffix},lt=new Set;function ht(s){lt.add(s)}class ut{constructor(e={}){this.cachedResponseWillBeUsed=async({event:t,request:r,cacheName:a,cachedResponse:i})=>{if(!i)return null;const n=this._isResponseDateFresh(i),c=this._getCacheExpiration(a);X(c.expireEntries());const o=c.updateTimestamp(r.url);if(t)try{t.waitUntil(o)}catch{}return n?i:null},this.cacheDidUpdate=async({cacheName:t,request:r})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(r.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&ht(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===ot.getRuntimeName())throw new Fe("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new it(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const r=Date.now();return t>=r-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),a=new Date(t).getTime();return isNaN(a)?null:a}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}try{self["workbox:routing:7.0.0"]&&_()}catch{}const ee="GET",v=s=>s&&typeof s=="object"?s:{handle:s};class L{constructor(e,t,r=ee){this.handler=v(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=v(e)}}class ft extends L{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}}class dt{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:n,params:c}}return{}}setDefaultHandler(e,t=ee){this._defaultHandlerMap.set(t,v(e))}setCatchHandler(e){this._catchHandler=v(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new y("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new y("unregister-route-route-not-registered")}}let k;const pt=()=>(k||(k=new dt,k.addFetchListener(),k.addCacheListener()),k);function te(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new L(n,e,t)}else if(s instanceof RegExp)r=new ft(s,e,t);else if(typeof s=="function")r=new L(s,e,t);else if(s instanceof L)r=s;else throw new y("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return pt().registerRoute(r),r}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function U(s){return typeof s=="string"?new Request(s):s}class gt{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new he,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const r of this._plugins)this._pluginStateMap.set(r,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let r=U(e);if(r.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const n=await t.preloadResponse;if(n)return n}const a=this.hasCallback("fetchDidFail")?r.clone():null;try{for(const n of this.iterateCallbacks("requestWillFetch"))r=await n({request:r.clone(),event:t})}catch(n){if(n instanceof Error)throw new y("plugin-error-request-will-fetch",{thrownErrorMessage:n.message})}const i=r.clone();try{let n;n=await fetch(r,r.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))n=await c({event:t,request:i,response:n});return n}catch(n){throw a&&await this.runCallbacks("fetchDidFail",{error:n,event:t,originalRequest:a.clone(),request:i.clone()}),n}}async fetchAndCachePut(e){const t=await this.fetch(e),r=t.clone();return this.waitUntil(this.cachePut(e,r)),t}async cacheMatch(e){const t=U(e);let r;const{cacheName:a,matchOptions:i}=this._strategy,n=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},i),{cacheName:a});r=await caches.match(n,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))r=await o({cacheName:a,matchOptions:i,cachedResponse:r,request:n,event:this.event})||void 0;return r}async cachePut(e,t){const r=U(e);await de(0);const a=await this.getCacheKey(r,"write");if(!t)throw new y("cache-put-with-no-response",{url:fe(a.url)});const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:n,matchOptions:c}=this._strategy,o=await self.caches.open(n),l=this.hasCallback("cacheDidUpdate"),f=l?await le(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?i.clone():i)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await ue(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:n,oldResponse:f,newResponse:i.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const r=`${e.url} | ${t}`;if(!this._cacheKeys[r]){let a=e;for(const i of this.iterateCallbacks("cacheKeyWillBeUsed"))a=U(await i({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[r]=a}return this._cacheKeys[r]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const r of this.iterateCallbacks(e))await r(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const r=this._pluginStateMap.get(t);yield i=>{const n=Object.assign(Object.assign({},i),{state:r});return t[e](n)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,r=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,r=!0,!t)break;return r||t&&t.status!==200&&(t=void 0),t}}class se{constructor(e={}){this.cacheName=oe.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,r=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,i=new gt(this,{event:t,request:r,params:a}),n=this._getResponse(i,r,t),c=this._awaitComplete(n,i,r,t);return[n,c]}async _getResponse(e,t,r){await e.runCallbacks("handlerWillStart",{event:r,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new y("no-response",{url:t.url})}catch(i){if(i instanceof Error){for(const n of e.iterateCallbacks("handlerDidError"))if(a=await n({error:i,event:r,request:t}),a)break}if(!a)throw i}for(const i of e.iterateCallbacks("handlerWillRespond"))a=await i({event:r,request:t,response:a});return a}async _awaitComplete(e,t,r,a){let i,n;try{i=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:r,response:i}),await t.doneWaiting()}catch(c){c instanceof Error&&(n=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:r,response:i,error:n}),t.destroy(),n)throw n}}class mt extends se{async _handle(e,t){let r=await t.cacheMatch(e),a;if(!r)try{r=await t.fetchAndCachePut(e)}catch(i){i instanceof Error&&(a=i)}if(!r)throw new y("no-response",{url:e.url,error:a});return r}}const wt={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class yt extends se{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(wt)}async _handle(e,t){const r=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(r);let a=await t.cacheMatch(e),i;if(!a)try{a=await r}catch(n){n instanceof Error&&(i=n)}if(!a)throw new y("no-response",{url:e.url,error:i});return a}}$e(([{"revision":null,"url":"assets/access-control-YiOVUeX5.js"},{"revision":null,"url":"assets/actions-BoMQPbbF.js"},{"revision":null,"url":"assets/add-component-core-C3-hSwf4.js"},{"revision":null,"url":"assets/add-component-core-D_j8BgsJ.css"},{"revision":null,"url":"assets/Add-DMLXuapt.js"},{"revision":null,"url":"assets/add-resource-YzQQokOB.js"},{"revision":null,"url":"assets/AddBox-CpBdwq7q.js"},{"revision":null,"url":"assets/addon-BMJifOIu.js"},{"revision":null,"url":"assets/Alert-DdUTjamT.js"},{"revision":null,"url":"assets/analytics-Mv3diYQv.js"},{"revision":null,"url":"assets/api-jAQ8N-C_.js"},{"revision":null,"url":"assets/ar-CqvGG4eC.js"},{"revision":null,"url":"assets/ar-lTVP4T3d.js"},{"revision":null,"url":"assets/ArrowDropDown-DpF0L6m2.js"},{"revision":null,"url":"assets/audit-logs-BNNOk6hr.js"},{"revision":null,"url":"assets/Avatar-Ba5K-SpV.js"},{"revision":null,"url":"assets/button-jtk50dQY.js"},{"revision":null,"url":"assets/ButtonGroup-oqbT9mJ7.js"},{"revision":null,"url":"assets/CheckCircle-Df4UlXEP.js"},{"revision":null,"url":"assets/ChevronRight-MsONzKko.js"},{"revision":null,"url":"assets/click-to-copy-CuY68HMG.js"},{"revision":null,"url":"assets/Close-BzQI1nKM.js"},{"revision":null,"url":"assets/CloseOutlined-CcRedm-I.js"},{"revision":null,"url":"assets/complete-bFHLAkpC.js"},{"revision":null,"url":"assets/component-BaAw_jvb.js"},{"revision":null,"url":"assets/config-BHCviFXO.js"},{"revision":null,"url":"assets/config-CL6WfXG0.js"},{"revision":null,"url":"assets/config-navigation-DOxLg4SG.js"},{"revision":null,"url":"assets/confirm-Dx6jUaOz.js"},{"revision":null,"url":"assets/connect-CdF3A2Vn.js"},{"revision":null,"url":"assets/connect-to-DSVNCjA-.js"},{"revision":null,"url":"assets/connect-W750gtDi.js"},{"revision":null,"url":"assets/content-layout-BEZyVpjO.js"},{"revision":null,"url":"assets/dashboard-CigfHyBK.js"},{"revision":null,"url":"assets/de-B3TxaybY.js"},{"revision":null,"url":"assets/de-l0XzFKav.js"},{"revision":null,"url":"assets/Delete-eYuUFe-a.js"},{"revision":null,"url":"assets/DeleteOutline-avstszKw.js"},{"revision":null,"url":"assets/did-address-CR96fGSF.js"},{"revision":null,"url":"assets/domain-DvAmfnwX.js"},{"revision":null,"url":"assets/domain-list-BFAh6gG5.js"},{"revision":null,"url":"assets/Done-CDaSY-gN.js"},{"revision":null,"url":"assets/Download-DA76-zAj.js"},{"revision":null,"url":"assets/Edit-DrnFKfrQ.js"},{"revision":null,"url":"assets/EditIcon-FTgbeCiz.js"},{"revision":null,"url":"assets/Error-EtOO_F4K.js"},{"revision":null,"url":"assets/es-BY0KMFme.js"},{"revision":null,"url":"assets/es-DYmEeFzA.js"},{"revision":null,"url":"assets/exchange-passport-C9lSXYeG.js"},{"revision":null,"url":"assets/ExpandMore-CAfMRIG3.js"},{"revision":null,"url":"assets/fallback-DVHgA8PG.js"},{"revision":null,"url":"assets/FilterList-CfRY6G_6.js"},{"revision":null,"url":"assets/format-error-xm5q5N3Z.js"},{"revision":null,"url":"assets/FormControl-CJxOqtCV.js"},{"revision":null,"url":"assets/FormControlLabel-BKsoLGHz.js"},{"revision":null,"url":"assets/FormGroup-Chc5NbDQ.js"},{"revision":null,"url":"assets/fr-BiVZLeXU.js"},{"revision":null,"url":"assets/fr-DwS-xj4v.js"},{"revision":null,"url":"assets/fuel-B2bKQ7Ww.js"},{"revision":null,"url":"assets/fullpage-9fehs0lR.js"},{"revision":null,"url":"assets/Google-C72krpFT.js"},{"revision":null,"url":"assets/hi-B_LrkIOS.js"},{"revision":null,"url":"assets/hi-Dj91QHv6.js"},{"revision":null,"url":"assets/Hidden-v7r91ILG.js"},{"revision":null,"url":"assets/home-CVEpIfo3.js"},{"revision":null,"url":"assets/id-CzhlCzfQ.js"},{"revision":null,"url":"assets/id-jBXPD1he.js"},{"revision":null,"url":"assets/iframe-4KnzoKaC.js"},{"revision":null,"url":"assets/index-3IKYL1th.js"},{"revision":null,"url":"assets/index-3TcO2NHG.js"},{"revision":null,"url":"assets/index-7ATAUQCS.js"},{"revision":null,"url":"assets/index-BHBa5bY_.js"},{"revision":null,"url":"assets/index-BIwlKqnv.js"},{"revision":null,"url":"assets/index-BJflKzAj.js"},{"revision":null,"url":"assets/index-BjygIrih.js"},{"revision":null,"url":"assets/index-BLG5zTvA.js"},{"revision":null,"url":"assets/index-BvJGY_nw.js"},{"revision":null,"url":"assets/index-BZeVpmIU.js"},{"revision":null,"url":"assets/index-C01E65Yy.js"},{"revision":null,"url":"assets/index-Cc3xWU8h.js"},{"revision":null,"url":"assets/index-CcMsQvPf.js"},{"revision":null,"url":"assets/index-Cggmiiia.js"},{"revision":null,"url":"assets/index-ChjVC0V6.js"},{"revision":null,"url":"assets/index-CplLRft2.js"},{"revision":null,"url":"assets/index-CPYtoS2i.js"},{"revision":null,"url":"assets/index-CtsIzdJq.js"},{"revision":null,"url":"assets/index-Cx6pRmO2.js"},{"revision":null,"url":"assets/index-CzyLZl7H.js"},{"revision":null,"url":"assets/index-D4PP6P2d.css"},{"revision":null,"url":"assets/index-D8NuaJ66.css"},{"revision":null,"url":"assets/index-Da_LrvSz.js"},{"revision":null,"url":"assets/index-DbFNRcRj.js"},{"revision":null,"url":"assets/index-DFAKgndM.js"},{"revision":null,"url":"assets/index-DFxBHRuN.js"},{"revision":null,"url":"assets/index-Dm5LygxH.js"},{"revision":null,"url":"assets/index-DnemmBZZ.js"},{"revision":null,"url":"assets/index-Dnz1P7hS.js"},{"revision":null,"url":"assets/index-DTEEl-sV.js"},{"revision":null,"url":"assets/index-foZCwT8M.css"},{"revision":null,"url":"assets/index-HqFqdQ4r.js"},{"revision":null,"url":"assets/index-J--b5UMY.js"},{"revision":null,"url":"assets/index-Ro4L6Nk9.js"},{"revision":null,"url":"assets/index-tZwe6kGH.js"},{"revision":null,"url":"assets/index-xFQdePlH.js"},{"revision":null,"url":"assets/index-Z80N-6o6.js"},{"revision":null,"url":"assets/index.es-Bu678ogX.js"},{"revision":null,"url":"assets/index.esm-eUQd5uNf.js"},{"revision":null,"url":"assets/InfoOutlined-D6TSS9ex.js"},{"revision":null,"url":"assets/InputAdornment-B1JGDyvY.js"},{"revision":null,"url":"assets/InputLabel-Ds1qPSij.js"},{"revision":null,"url":"assets/invitation-BtBp97Li.js"},{"revision":null,"url":"assets/invite-D6nXY3dB.js"},{"revision":null,"url":"assets/issue-passport-NVB_pTUn.js"},{"revision":null,"url":"assets/item-BvTmy-2T.js"},{"revision":null,"url":"assets/ja-DKiHQ6DE.js"},{"revision":null,"url":"assets/ja-Ut-jFS9r.js"},{"revision":null,"url":"assets/jss-plugin-props-sort.esm-DF2UeHPM.js"},{"revision":null,"url":"assets/keyboard-arrow-down-rounded-DadBVmpO.js"},{"revision":null,"url":"assets/ko-BBYyf1yM.js"},{"revision":null,"url":"assets/ko-Clp4qzRT.js"},{"revision":null,"url":"assets/LastPage-5otHasfZ.js"},{"revision":null,"url":"assets/Launch-CsBFqx2_.js"},{"revision":null,"url":"assets/launch-result-message--yAIU8ij.js"},{"revision":null,"url":"assets/LaunchOutlined-B4YtdACN.js"},{"revision":null,"url":"assets/layout-CfszkMaR.js"},{"revision":null,"url":"assets/Link-JTCdKmrw.js"},{"revision":null,"url":"assets/list-header-BvVRSRDr.js"},{"revision":null,"url":"assets/ListItemText-CJO6iQaY.js"},{"revision":null,"url":"assets/LoadingButton-MZJ0ZCPE.js"},{"revision":null,"url":"assets/localization-CdHA54kI.js"},{"revision":null,"url":"assets/LockIcon-BEsB4YZ5.js"},{"revision":null,"url":"assets/log--54sjPHz.js"},{"revision":null,"url":"assets/log-D33dFtt_.css"},{"revision":null,"url":"assets/login-eHr1AdTW.js"},{"revision":null,"url":"assets/login-oauth-callback-D6HMi3t4.js"},{"revision":null,"url":"assets/logo-uploader-Ct05IBgW.js"},{"revision":null,"url":"assets/Loop-D4rRjL2T.js"},{"revision":null,"url":"assets/lost-passport-DFkMMATo.js"},{"revision":null,"url":"assets/lottie-CHlQE8LI.js"},{"revision":null,"url":"assets/mode-B2dWMeTO.js"},{"revision":null,"url":"assets/MoreHoriz-B5rpG1Ew.js"},{"revision":null,"url":"assets/MoreVert-BqoNOXb1.js"},{"revision":null,"url":"assets/notifications-DNefq6Ai.js"},{"revision":null,"url":"assets/open-window-Hoovi1SQ.js"},{"revision":null,"url":"assets/OpenInNew-D9pZObQI.js"},{"revision":null,"url":"assets/overview-C99SD8Sj.js"},{"revision":null,"url":"assets/page-header-BcMcWChj.js"},{"revision":null,"url":"assets/Pagination-BiImme98.js"},{"revision":null,"url":"assets/permission-CoUl_-TD.js"},{"revision":null,"url":"assets/PlayArrow-DpuhKo6D.js"},{"revision":null,"url":"assets/preact.module-DJUF--8d.js"},{"revision":null,"url":"assets/preferences-BhQwvtNs.js"},{"revision":null,"url":"assets/pt-BXaJbqdY.js"},{"revision":null,"url":"assets/pt-DI2MIkSi.js"},{"revision":null,"url":"assets/publish-resource-BrX6QZZv.js"},{"revision":null,"url":"assets/QuestionMarkCircle-D8s3T__Z.js"},{"revision":null,"url":"assets/RadioGroup-D4XxZA_m.js"},{"revision":null,"url":"assets/react-BW7E7-P9.css"},{"revision":null,"url":"assets/react-CM36OPYv.js"},{"revision":null,"url":"assets/redux-CmQ0AupQ.js"},{"revision":null,"url":"assets/resource-dialog-DPp8WhH6.js"},{"revision":null,"url":"assets/ru-B2L3CRQ4.js"},{"revision":null,"url":"assets/ru-p_K_7IoQ.js"},{"revision":null,"url":"assets/sdk-SqTk_6RZ.js"},{"revision":null,"url":"assets/Search-eHBEQt38.js"},{"revision":null,"url":"assets/Select-CHwe79IG.js"},{"revision":null,"url":"assets/selector-DplhIXMq.js"},{"revision":null,"url":"assets/ServerLogo-Cg7KWr6l.js"},{"revision":null,"url":"assets/session-B20aBevE.js"},{"revision":null,"url":"assets/setup-CHeBPg1W.js"},{"revision":null,"url":"assets/shorten-label-Bfc9PQs9.js"},{"revision":null,"url":"assets/Skeleton-LO2AMjQj.js"},{"revision":null,"url":"assets/slicedToArray-ZTJkdcdS.js"},{"revision":null,"url":"assets/Slider-D_aaap0D.js"},{"revision":null,"url":"assets/spaces-BKVgtwre.js"},{"revision":null,"url":"assets/start-Bma6-tzj.js"},{"revision":null,"url":"assets/step-actions-CZsxCY_f.js"},{"revision":null,"url":"assets/Stepper-Cn0ehU0z.js"},{"revision":null,"url":"assets/studio-BG-LwJ0Y.js"},{"revision":null,"url":"assets/switch-control-BQicjBlL.js"},{"revision":null,"url":"assets/TextField-By686O81.js"},{"revision":null,"url":"assets/th-BJT9w_Lk.js"},{"revision":null,"url":"assets/th-CfNBHHtU.js"},{"revision":null,"url":"assets/Toolbar-CILlK-1t.js"},{"revision":null,"url":"assets/toPropertyKey-PLuKRk1e.js"},{"revision":null,"url":"assets/toUpper-Cl4b2ZOs.js"},{"revision":null,"url":"assets/transfer-iCxgFgdA.js"},{"revision":null,"url":"assets/uniqBy-Depm40zB.js"},{"revision":null,"url":"assets/unsubscribe-j4j95BgM.js"},{"revision":null,"url":"assets/url-join-CXExeXLp.js"},{"revision":null,"url":"assets/use-blocklet-info-for-connect-did-spaces-ByFtSRMu.js"},{"revision":null,"url":"assets/use-mobile-Bjgo--1J.js"},{"revision":null,"url":"assets/use-passport-id-B-b-_oYF.js"},{"revision":null,"url":"assets/useAsync-BrIwhlfT.js"},{"revision":null,"url":"assets/useFormControl-xR1NlgHj.js"},{"revision":null,"url":"assets/useLocalStorage-C1CX-JWm.js"},{"revision":null,"url":"assets/user-center-LFYa8NAO.js"},{"revision":null,"url":"assets/user-sessions-ChQlFWXn.js"},{"revision":null,"url":"assets/useSetState-Buep2Jkr.js"},{"revision":null,"url":"assets/useSlot-DJoDEpM7.js"},{"revision":null,"url":"assets/useSlotProps-thaabt4w.js"},{"revision":null,"url":"assets/useThemeProps-DthQbzYX.js"},{"revision":null,"url":"assets/util-BKJ5oRJz.js"},{"revision":null,"url":"assets/vi-CycHlNkN.js"},{"revision":null,"url":"assets/vi-DbzhnofW.js"},{"revision":null,"url":"assets/ViewList-DOAqHfHm.js"},{"revision":null,"url":"assets/wrap-locale-B9-80Orf.js"},{"revision":null,"url":"assets/zh-Dv1l1HNj.js"},{"revision":null,"url":"assets/zh-FO0C29Rb.js"},{"revision":null,"url":"assets/zh-tw-44W5osxR.js"},{"revision":null,"url":"assets/zh-tw-cyWwf75a.js"},{"revision":"28d7883ce60cd55222b83348d3dcd9a6","url":"index.html"},{"revision":"186b2f1889d7c89ecd30e422ab415c8a","url":"registerSW.js"},{"revision":"07a287e43ae8e959a20d6b367a581667","url":"router-template-styles/styles.css"},{"revision":"ecdddc9b1297e7511cad18529d5cfd89","url":"manifest.webmanifest"}]||[]).filter(s=>s.url!=="/"&&!s.url.includes("index.html")));pe();self.addEventListener("activate",()=>{console.log("Service Worker activated")});self.addEventListener("install",s=>{console.log("Service Worker installed"),s.waitUntil(self.skipWaiting())});const re=s=>!!(s.method!=="GET"||s.url.includes("/api")||s.url.includes("__meta__.js")||s.url.includes("__blocklet__.js"));te(s=>{const{request:e}=s;return re(e)?!1:e.url.includes("/static/")},new mt({cacheName:"static",plugins:[new ut({maxEntries:200})]}));te(s=>{const{request:e}=s;return re(e)?!1:e.url.includes("/images/")||e.url.includes("/router/-template-styles/")},new yt);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.
|
|
6
|
+
"version": "1.16.31-beta-52250475",
|
|
7
7
|
"description": "Provide unified services for every blocklet",
|
|
8
8
|
"main": "api/index.js",
|
|
9
9
|
"files": [
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
34
34
|
"license": "Apache-2.0",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@abtnode/analytics": "1.16.
|
|
37
|
-
"@abtnode/auth": "1.16.
|
|
38
|
-
"@abtnode/client": "1.16.
|
|
39
|
-
"@abtnode/connect-storage": "1.16.
|
|
40
|
-
"@abtnode/constant": "1.16.
|
|
41
|
-
"@abtnode/core": "1.16.
|
|
42
|
-
"@abtnode/cron": "1.16.
|
|
43
|
-
"@abtnode/logger": "1.16.
|
|
44
|
-
"@abtnode/models": "1.16.
|
|
45
|
-
"@abtnode/router-templates": "1.16.
|
|
46
|
-
"@abtnode/util": "1.16.
|
|
36
|
+
"@abtnode/analytics": "1.16.31-beta-52250475",
|
|
37
|
+
"@abtnode/auth": "1.16.31-beta-52250475",
|
|
38
|
+
"@abtnode/client": "1.16.31-beta-52250475",
|
|
39
|
+
"@abtnode/connect-storage": "1.16.31-beta-52250475",
|
|
40
|
+
"@abtnode/constant": "1.16.31-beta-52250475",
|
|
41
|
+
"@abtnode/core": "1.16.31-beta-52250475",
|
|
42
|
+
"@abtnode/cron": "1.16.31-beta-52250475",
|
|
43
|
+
"@abtnode/logger": "1.16.31-beta-52250475",
|
|
44
|
+
"@abtnode/models": "1.16.31-beta-52250475",
|
|
45
|
+
"@abtnode/router-templates": "1.16.31-beta-52250475",
|
|
46
|
+
"@abtnode/util": "1.16.31-beta-52250475",
|
|
47
47
|
"@arcblock/did": "^1.18.132",
|
|
48
48
|
"@arcblock/did-auth": "1.18.132",
|
|
49
49
|
"@arcblock/did-ext": "^1.18.132",
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"@arcblock/jwt": "1.18.132",
|
|
53
53
|
"@arcblock/validator": "^1.18.132",
|
|
54
54
|
"@arcblock/ws": "1.18.132",
|
|
55
|
-
"@blocklet/constant": "1.16.
|
|
55
|
+
"@blocklet/constant": "1.16.31-beta-52250475",
|
|
56
56
|
"@blocklet/form-builder": "^0.1.11",
|
|
57
57
|
"@blocklet/form-collector": "^0.1.8",
|
|
58
|
-
"@blocklet/meta": "1.16.
|
|
59
|
-
"@blocklet/sdk": "1.16.
|
|
58
|
+
"@blocklet/meta": "1.16.31-beta-52250475",
|
|
59
|
+
"@blocklet/sdk": "1.16.31-beta-52250475",
|
|
60
60
|
"@did-connect/authenticator": "^2.2.4",
|
|
61
61
|
"@did-connect/relay-adapter-express": "^2.2.4",
|
|
62
62
|
"@ocap/client": "1.18.132",
|
|
@@ -101,15 +101,15 @@
|
|
|
101
101
|
"minimatch": "9.0.4"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
|
-
"@abtnode/ux": "1.16.
|
|
105
|
-
"@arcblock/bridge": "^2.10.
|
|
106
|
-
"@arcblock/did-connect": "^2.10.
|
|
107
|
-
"@arcblock/icons": "^2.10.
|
|
108
|
-
"@arcblock/react-hooks": "^2.10.
|
|
109
|
-
"@arcblock/ux": "^2.10.
|
|
110
|
-
"@blocklet/launcher-layout": "2.10.
|
|
111
|
-
"@blocklet/tracker": "1.16.
|
|
112
|
-
"@blocklet/ui-react": "^2.10.
|
|
104
|
+
"@abtnode/ux": "1.16.31-beta-52250475",
|
|
105
|
+
"@arcblock/bridge": "^2.10.23",
|
|
106
|
+
"@arcblock/did-connect": "^2.10.23",
|
|
107
|
+
"@arcblock/icons": "^2.10.23",
|
|
108
|
+
"@arcblock/react-hooks": "^2.10.23",
|
|
109
|
+
"@arcblock/ux": "^2.10.23",
|
|
110
|
+
"@blocklet/launcher-layout": "2.10.23",
|
|
111
|
+
"@blocklet/tracker": "1.16.31-beta-52250475",
|
|
112
|
+
"@blocklet/ui-react": "^2.10.23",
|
|
113
113
|
"@emotion/react": "^11.11.4",
|
|
114
114
|
"@emotion/styled": "^11.11.5",
|
|
115
115
|
"@iconify/iconify": "^3.1.1",
|
|
@@ -181,5 +181,5 @@
|
|
|
181
181
|
"url": "https://github.com/ArcBlock/blocklet-server/issues",
|
|
182
182
|
"email": "shijun@arcblock.io"
|
|
183
183
|
},
|
|
184
|
-
"gitHead": "
|
|
184
|
+
"gitHead": "26155b86f103f9e64fd8a23b7fffdb279c71209c"
|
|
185
185
|
}
|