@abtnode/blocklet-services 1.16.34-beta-20241127-121930-0923dfae → 1.16.34-beta-20241129-100152-679bd732
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/api/routes/blocklet.js +32 -0
- package/dist/assets/{Add-B6Ua6q-Z.js → Add-mXZrOf1h.js} +1 -1
- package/dist/assets/{Alert-CWJPPP63.js → Alert-DaafqUlw.js} +1 -1
- package/dist/assets/ArrowBackIos-BubgDQVS.js +1 -0
- package/dist/assets/{ArrowDropDown-BgPwecc9.js → ArrowDropDown-BtoPSHd8.js} +1 -1
- package/dist/assets/{Autocomplete-D3KoPHQM.js → Autocomplete-Bi_-KQfy.js} +1 -1
- package/dist/assets/{Avatar-D2r2PRgc.js → Avatar-Adx9Z0tZ.js} +1 -1
- package/dist/assets/{ButtonGroup-DUcvj0JP.js → ButtonGroup-BWb37jJW.js} +1 -1
- package/dist/assets/{CSSTransition-RPNtr5GO.js → CSSTransition-Dh8w9n01.js} +1 -1
- package/dist/assets/{CheckCircle-sPepMcgF.js → CheckCircle-CgD3tBC-.js} +1 -1
- package/dist/assets/{ChevronLeft-CnA-vGpD.js → ChevronLeft-CYIWlSCI.js} +1 -1
- package/dist/assets/{ChevronRight-BDSOab3L.js → ChevronRight-CwMDvr2n.js} +1 -1
- package/dist/assets/{Close-Bwwj0idf.js → Close-FBVHjH44.js} +1 -1
- package/dist/assets/Delete-CjUdkXlU.js +1 -0
- package/dist/assets/{DeleteOutline-CIxtpsDT.js → DeleteOutline-CzTPA4kL.js} +1 -1
- package/dist/assets/DialogContentText-Dydxe3m7.js +1 -0
- package/dist/assets/{Done-D9WIbYXR.js → Done-PbP-u2lH.js} +1 -1
- package/dist/assets/{Download-CqE0jRjy.js → Download-pBnEdFOD.js} +1 -1
- package/dist/assets/{EditIcon-BZlum5dn.js → EditIcon-D6m2tQ3O.js} +1 -1
- package/dist/assets/{Error-DtG_nJnF.js → Error-HNpddmqm.js} +1 -1
- package/dist/assets/{ExpandMore-5W_549ow.js → ExpandMore-B8oaKzsK.js} +1 -1
- package/dist/assets/FormControl-DD67kWGJ.js +1 -0
- package/dist/assets/{FormControlLabel-BxRswD5v.js → FormControlLabel-BaYmyBlu.js} +1 -1
- package/dist/assets/FormGroup-th0rZzfK.js +1 -0
- package/dist/assets/{Google-qI8npLuN.js → Google-BteNIqNP.js} +1 -1
- package/dist/assets/{Grid-BA09q8_6.js → Grid-DxM3VqDH.js} +1 -1
- package/dist/assets/{HelpOutline-D7SWssuj.js → HelpOutline-DYeyCE3o.js} +1 -1
- package/dist/assets/{Hidden-CxNxqyOD.js → Hidden-CXUMFZRF.js} +1 -1
- package/dist/assets/{InfoOutlined-BFgnejR3.js → InfoOutlined-BJbU1dHl.js} +1 -1
- package/dist/assets/{InputAdornment-DswAHyKT.js → InputAdornment-BjTDlo1K.js} +1 -1
- package/dist/assets/{LastPage-tIk3DwvT.js → LastPage-DnljsHk-.js} +1 -1
- package/dist/assets/{Launch-BBO9P6pW.js → Launch-BeWg-XKa.js} +1 -1
- package/dist/assets/{LaunchOutlined-CHU3XSU7.js → LaunchOutlined-DtUGH3OW.js} +1 -1
- package/dist/assets/Link-BEFhKJq0.js +1 -0
- package/dist/assets/{ListItemButton-CvN22ZX5.js → ListItemButton-G-aWGmX0.js} +1 -1
- package/dist/assets/{ListSubheader-BjVS24fA.js → ListSubheader-CJ8rPs4Q.js} +1 -1
- package/dist/assets/{LoadingButton-BS19Y6Tw.js → LoadingButton-C-EDtX6C.js} +1 -1
- package/dist/assets/{LockIcon-BSrbW2OE.js → LockIcon-CYLVEooE.js} +1 -1
- package/dist/assets/{Loop-CXmGQ_OC.js → Loop-CIgMv9HE.js} +1 -1
- package/dist/assets/{MarkEmailRead-BT2Vq33O.js → MarkEmailRead-BNiANVq1.js} +1 -1
- package/dist/assets/{Menu-DDbT3zvj.js → Menu-BW47wukv.js} +1 -1
- package/dist/assets/{MoreHoriz-DPe0cN5I.js → MoreHoriz-CJmEH65j.js} +1 -1
- package/dist/assets/{MoreVert-C7wRaOtv.js → MoreVert-DLwvbbqd.js} +1 -1
- package/dist/assets/{OpenInNew-CXwMNDRH.js → OpenInNew-K-C4gsO1.js} +1 -1
- package/dist/assets/{Pagination-BAVQqann.js → Pagination-Dq4SzKhv.js} +1 -1
- package/dist/assets/{PlayArrow-cvQuZ8GO.js → PlayArrow-n1twcRud.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-MfFIsz6w.js → QuestionMarkCircle-tCeIxlN3.js} +1 -1
- package/dist/assets/{RadioGroup-Bg1SV6KY.js → RadioGroup-DIin5rK_.js} +1 -1
- package/dist/assets/{Search-BqBCe5ki.js → Search-BMru4B7h.js} +1 -1
- package/dist/assets/{Select-YmfypP2F.js → Select-CDj8XFCr.js} +2 -2
- package/dist/assets/{ServerLogo-BxkjdQYl.js → ServerLogo-DT7vgAES.js} +1 -1
- package/dist/assets/{Skeleton-CACxc5Uz.js → Skeleton-Dq3yy5K4.js} +5 -5
- package/dist/assets/{Slider-CzpmIBcy.js → Slider-BBUwYcyt.js} +1 -1
- package/dist/assets/Stack-ID2bvJFU.js +1 -0
- package/dist/assets/{Stepper-BXsAA8yH.js → Stepper-oTT6WH0K.js} +1 -1
- package/dist/assets/{TextField-BUFHAnNK.js → TextField-GO8E4D8x.js} +1 -1
- package/dist/assets/{Toolbar-JUHTVGzV.js → Toolbar-Kng3WhVc.js} +1 -1
- package/dist/assets/{ViewColumn-jrdyac4S.js → ViewColumn-gNP4x-sg.js} +1 -1
- package/dist/assets/{ViewList-B3smRpWd.js → ViewList-DpyY5ugC.js} +1 -1
- package/dist/assets/{_createAggregator-DYS_Ds6-.js → _createAggregator-Bj6ourdE.js} +1 -1
- package/dist/assets/access-control-BG4EF_hx.js +13 -0
- package/dist/assets/{actions-Dibi1EdH.js → actions-egBtnEJO.js} +1 -1
- package/dist/assets/{add-component-core-DP59PpwH.js → add-component-core-BZjSv5V7.js} +597 -24
- package/dist/assets/add-resource-B4KK4ENF.js +1 -0
- package/dist/assets/{addon-C-v40wwX.js → addon-ChxdyV8s.js} +1 -1
- package/dist/assets/{analytics-CHoNglPk.js → analytics-BNddEk9_.js} +8 -8
- package/dist/assets/api-X6cMA7j1.js +1 -0
- package/dist/assets/ar-BVsNK7VV.js +1 -0
- package/dist/assets/{audit-logs-DtIh4hiz.js → audit-logs-C5ukCiti.js} +1 -1
- package/dist/assets/{base32-DCObnDPa.js → base32-DiHjpMk3.js} +1 -1
- package/dist/assets/{branding-ZQ4CmDsH.js → branding-CNPED9Yg.js} +2 -2
- package/dist/assets/bundle-avatar-BMYoF8YT.js +1 -0
- package/dist/assets/{button-NZaA5M6t.js → button-BUxzyD8I.js} +1 -1
- package/dist/assets/{click-to-copy-2G3TnzwZ.js → click-to-copy-Chph5bbk.js} +1 -1
- package/dist/assets/{complete-CziCaD75.js → complete-BqNLnMea.js} +4 -4
- package/dist/assets/{component-wQAbt5Q3.js → component-CHtRRUTN.js} +1 -1
- package/dist/assets/{config-BcpIe2R7.js → config-5Lv3Gr6U.js} +1 -1
- package/dist/assets/{config-D5SS71IZ.js → config-D1inqCBz.js} +2 -2
- package/dist/assets/{config-navigation-CCtGjPQJ.js → config-navigation-BVn4O5g1.js} +5 -5
- package/dist/assets/{config-space-CXlvk2nD.js → config-space-Bwfds2x7.js} +1 -1
- package/dist/assets/{confirm-CRz8exrR.js → confirm-DF9JbbCJ.js} +2 -2
- package/dist/assets/{connect-DXdc9kWf.js → connect-BFfXSmaa.js} +1 -1
- package/dist/assets/{connect-CNahQIe6.js → connect-BbTj5LFE.js} +1 -1
- package/dist/assets/{connect-to-C0srwZbp.js → connect-to-v0E4vbkK.js} +1 -1
- package/dist/assets/{content-layout-DCC3N0Ow.js → content-layout-BoriYFvl.js} +1 -1
- package/dist/assets/dashboard-vLl8x6aG.js +165 -0
- package/dist/assets/de-jtbglBCV.js +1 -0
- package/dist/assets/{deprecate-FglFs_bk.js → deprecate-DCu9jut5.js} +1 -1
- package/dist/assets/{did-address-BkdwWWEb.js → did-address-DOCLeksL.js} +1 -1
- package/dist/assets/domain-DRA23X8T.js +9 -0
- package/dist/assets/{domain-list-DgXgEmUx.js → domain-list-aULRrT5X.js} +2 -2
- package/dist/assets/{email-C6LgzIfO.js → email-fEPnd-HL.js} +3 -3
- package/dist/assets/emotion-cache.browser.esm-BwirBJuO.js +1 -0
- package/dist/assets/es-DXzTkv77.js +1 -0
- package/dist/assets/{exchange-passport-B-EhCwOs.js → exchange-passport-CGMrX_va.js} +1 -1
- package/dist/assets/{fallback-C6VgQPYP.js → fallback-DHTsTOsA.js} +1 -1
- package/dist/assets/{form-text-input-DZNGnBl-.js → form-text-input-DAeQJFrx.js} +2 -2
- package/dist/assets/{format-error-CsY5MTO-.js → format-error-DsLT-I_t.js} +1 -1
- package/dist/assets/fr-DB4Moo35.js +1 -0
- package/dist/assets/fuel-CiyBCkPM.js +32 -0
- package/dist/assets/{fullpage-D7RBGcpO.js → fullpage-CTN6Odrg.js} +1 -1
- package/dist/assets/hi-BZ8MRRQ-.js +1 -0
- package/dist/assets/{home-BDB4_nh_.js → home-Bd2Tx88Q.js} +1 -1
- package/dist/assets/id-D0Dktlf7.js +1 -0
- package/dist/assets/{iframe-CdHTiw1F.js → iframe-DJ2x9efl.js} +1 -1
- package/dist/assets/index-A6rXBmgc.js +102 -0
- package/dist/assets/{index-Dob_tNHw.js → index-B5-lwWQw.js} +1 -1
- package/dist/assets/{index-Dt7ERxZ3.js → index-BFcr9JDQ.js} +12 -12
- package/dist/assets/{index-D0t4oon5.js → index-BN0lgmDH.js} +1 -1
- package/dist/assets/{index-B9ApMsSr.js → index-BT7-315i.js} +1 -1
- package/dist/assets/{index-BAMc05XV.js → index-Be6nHNV0.js} +1 -1
- package/dist/assets/{index-Dl244yi8.js → index-BeFN5xGu.js} +4 -4
- package/dist/assets/{index-C-5E9QTe.js → index-BedxN_P9.js} +1 -1
- package/dist/assets/{index-B5XDziuX.js → index-BtSt5FGJ.js} +1 -1
- package/dist/assets/{index-C0UyxGZY.js → index-ByEY1S1p.js} +1 -1
- package/dist/assets/index-C6BTUKQj.js +316 -0
- package/dist/assets/{index-C5-NGiut.js → index-C8Cmkjd6.js} +1 -1
- package/dist/assets/{index-B3M4QG77.js → index-C9IrBso_.js} +1 -1
- package/dist/assets/{index-CBRA0x7Q.js → index-C9XX9FI-.js} +1 -1
- package/dist/assets/{index-wl3skyrX.js → index-CAz4oQnr.js} +1 -1
- package/dist/assets/{index-BbNdCg0Y.js → index-CDzU6wY1.js} +2 -2
- package/dist/assets/index-CE5DZOEQ.js +1 -0
- package/dist/assets/{index-x8tkXY5V.js → index-CPibawHo.js} +1 -1
- package/dist/assets/{index-DzNuKWIR.js → index-C_rc1Lwt.js} +1 -1
- package/dist/assets/{index-D_HGuArr.js → index-CdNrrBZk.js} +1 -1
- package/dist/assets/{index-fvB3wuMp.js → index-CqjSnEu1.js} +2 -2
- package/dist/assets/{index-B9T9perk.js → index-D9Cgh-AY.js} +9 -9
- package/dist/assets/{index-64M3FvoQ.js → index-DTzuTDWf.js} +5 -5
- package/dist/assets/{index-knWkj8AE.js → index-DXZuEbMH.js} +1 -1
- package/dist/assets/{index-3zMmyPq0.js → index-DXpM5evR.js} +4 -4
- package/dist/assets/index-Dazz_Sar.js +4 -0
- package/dist/assets/{index-8Uzxcrqs.js → index-DbN4h3gH.js} +1 -1
- package/dist/assets/{index-CcastwQZ.js → index-NlzmSJHU.js} +2 -2
- package/dist/assets/{index-M6u08XZP.js → index-OU0ZpNT_.js} +1 -1
- package/dist/assets/{index-QfRVoAyB.js → index-U-Ouf6WM.js} +1 -1
- package/dist/assets/{index-BQKTX3TH.js → index-XYcwhl4a.js} +8 -8
- package/dist/assets/{index-CYEg2-8x.js → index-bNbDSQ4T.js} +1 -1
- package/dist/assets/{index-CdgjvQxC.js → index-jHlcxkEo.js} +8 -8
- package/dist/assets/{index-Cv7pzw89.js → index-wBcLyYqT.js} +26 -26
- package/dist/assets/{invitation-B-19u0zg.js → invitation-JKzrZ57O.js} +5 -5
- package/dist/assets/invite-BFrJHYMn.js +5 -0
- package/dist/assets/{isEmail-LKjM3fdO.js → isEmail-BEisyjCN.js} +1 -1
- package/dist/assets/issue-passport-BAtnRtOM.js +1 -0
- package/dist/assets/{item-BY7CX9DM.js → item-CwYliHGb.js} +1 -1
- package/dist/assets/ja-DI5zkdyH.js +1 -0
- package/dist/assets/{jss-plugin-props-sort.esm-DZ0QxdlL.js → jss-plugin-props-sort.esm-l47fXiIJ.js} +3 -3
- package/dist/assets/ko-C6JgKTYW.js +1 -0
- package/dist/assets/{launch-result-message-CAyNosT8.js → launch-result-message-Bl-IHSrE.js} +1 -1
- package/dist/assets/{layout-Cc6IR4Xp.js → layout-luBpKsnB.js} +1 -1
- package/dist/assets/{list-header-CTKuPXBC.js → list-header-D0D_tjRh.js} +1 -1
- package/dist/assets/localization-C1hNyLvD.js +1 -0
- package/dist/assets/{log-DkVkil0j.js → log-Df2I_fqe.js} +1 -1
- package/dist/assets/{login-B9mkuN1r.js → login-DyZA9iO2.js} +1 -1
- package/dist/assets/{login-oauth-callback-B8IM5sRf.js → login-oauth-callback-C9pBHvVm.js} +1 -1
- package/dist/assets/logo-uploader-BoJpubye.js +133 -0
- package/dist/assets/{lost-passport-okkyxvyK.js → lost-passport-UDuDlY7N.js} +4 -4
- package/dist/assets/{lottie-react.esm-amlTBYrq.js → lottie-react.esm-BcAg_zzZ.js} +1 -1
- package/dist/assets/{notifications-x-_0y6ay.js → notifications-Dwy1x_4b.js} +2 -2
- package/dist/assets/{open-window-Dsehi6Pa.js → open-window-T5jgTpk6.js} +1 -1
- package/dist/assets/overview-DxoUd1AE.js +12 -0
- package/dist/assets/{permission-Bw97vdZf.js → permission-B0L9pgvB.js} +1 -1
- package/dist/assets/{preferences-BQUunT_2.js → preferences-BMHmIBuj.js} +1 -1
- package/dist/assets/pt-F1XUE4F0.js +1 -0
- package/dist/assets/publish-resource-BcJxqHgb.js +1 -0
- package/dist/assets/purify.es-CCJo14B2.js +2 -0
- package/dist/assets/{raf-schd.esm-CR0Pt1CF.js → raf-schd.esm-DbYZ8cuK.js} +1 -1
- package/dist/assets/{react-beautiful-dnd.esm-Cp27_Z2H.js → react-beautiful-dnd.esm-B8s8Je1D.js} +1 -1
- package/dist/assets/refType-CwbBamWm.js +1 -0
- package/dist/assets/{resource-dialog-CQ8ePIzz.js → resource-dialog-CQSjUEGn.js} +1 -1
- package/dist/assets/ru-DMrR-cU9.js +1 -0
- package/dist/assets/sdk-Lodb3mfy.js +1 -0
- package/dist/assets/selector-BB2fFIXP.js +48 -0
- package/dist/assets/session-D3zyh62B.js +1 -0
- package/dist/assets/setup-B6L46KHj.js +562 -0
- package/dist/assets/{shorten-label-BYD4zgYF.js → shorten-label-ZyDji4qi.js} +1 -1
- package/dist/assets/{simple-select-BSiU44cf.js → simple-select-DKsN30ub.js} +1 -1
- package/dist/assets/{slicedToArray-B3EJlOBV.js → slicedToArray-Drxe8-64.js} +2 -2
- package/dist/assets/{start-B6pKpEk6.js → start-DxaM-09J.js} +1 -1
- package/dist/assets/step-actions-DQ0D400i.js +61 -0
- package/dist/assets/{studio-RgHJ4uhM.js → studio-THNjOZL1.js} +1 -1
- package/dist/assets/{switch-control-OVb1BwTo.js → switch-control-DkucmIR-.js} +1 -1
- package/dist/assets/th-CJB7WnNL.js +1 -0
- package/dist/assets/{toUpper-DZIzLyKU.js → toUpper-BHGjhPud.js} +1 -1
- package/dist/assets/{transfer-D-jivKPt.js → transfer-DaOZAizQ.js} +1 -1
- package/dist/assets/{trim-BV_NDhVJ.js → trim-CaA4via3.js} +1 -1
- package/dist/assets/{uniqBy-BnPjLUjC.js → uniqBy-CH7S750Q.js} +1 -1
- package/dist/assets/unsubscribe-DtBxc6TZ.js +1 -0
- package/dist/assets/{url-join-DEFKjkns.js → url-join-sg6DH6qt.js} +1 -1
- package/dist/assets/use-mobile-CM0Yohdc.js +1 -0
- package/dist/assets/use-mobile-Cz-VrkwE.js +1 -0
- package/dist/assets/{useAsync-uZ9Wuln3.js → useAsync-NthGdZ_B.js} +1 -1
- package/dist/assets/{useFormControl-CKpzs7q1.js → useFormControl-CS6vjtl0.js} +1 -1
- package/dist/assets/{useLocalStorage-BhUUdeSi.js → useLocalStorage-Kt0ynk4Q.js} +1 -1
- package/dist/assets/{useSetState-GTMZIRrt.js → useSetState-DUhj3dVg.js} +1 -1
- package/dist/assets/useSlot-D-6cy3hj.js +1 -0
- package/dist/assets/{useSlotProps-CHK9ut6X.js → useSlotProps-CEuB5YLI.js} +1 -1
- package/dist/assets/{useThemeProps-D3g52yHb.js → useThemeProps-CmIdHfIC.js} +1 -1
- package/dist/assets/user-center-BO_McZ0Z.js +1 -0
- package/dist/assets/{user-sessions-B7LrJMkc.js → user-sessions-BXhrzhKK.js} +1 -1
- package/dist/assets/{util-Bami76iP.js → util-CRg7-9Pj.js} +1 -1
- package/dist/assets/vi-U1GPEq8E.js +1 -0
- package/dist/assets/wrap-locale-Dj-ckYCY.js +1 -0
- package/dist/assets/{zh-B7Ba_Kee.js → zh-B1PHGWyj.js} +1 -1
- package/dist/assets/zh-tw-B9CGi8IO.js +1 -0
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +25 -25
- package/dist/assets/Delete-s2NC3KEw.js +0 -1
- package/dist/assets/DialogContentText-C-7SR9C-.js +0 -1
- package/dist/assets/FormControl-D38v2z67.js +0 -1
- package/dist/assets/FormGroup-Dtv1bjEg.js +0 -1
- package/dist/assets/Link-BdhOk-uG.js +0 -1
- package/dist/assets/Stack-D1S3xkvy.js +0 -1
- package/dist/assets/access-control-f0MW9Zgj.js +0 -13
- package/dist/assets/add-resource-BGwTxNy-.js +0 -1
- package/dist/assets/api-BGevyJlL.js +0 -1
- package/dist/assets/ar-IGiynOFu.js +0 -1
- package/dist/assets/bundle-avatar-meR-iuh8.js +0 -1
- package/dist/assets/dashboard-wctDSPQY.js +0 -165
- package/dist/assets/de-C5dj0Xqf.js +0 -1
- package/dist/assets/domain-CHeNVNMy.js +0 -9
- package/dist/assets/emotion-cache.browser.esm-C8uPGoLI.js +0 -1
- package/dist/assets/es-CtZrebqK.js +0 -1
- package/dist/assets/fr-AxDVLuWz.js +0 -1
- package/dist/assets/fuel-BE4OI5l7.js +0 -32
- package/dist/assets/hi-RUZ0vBCk.js +0 -1
- package/dist/assets/id-DsdmMEGZ.js +0 -1
- package/dist/assets/index-BWSzmUO8.js +0 -102
- package/dist/assets/index-CdP156si.js +0 -544
- package/dist/assets/index-DeKdvlFq.js +0 -4
- package/dist/assets/index-deUlJetP.js +0 -316
- package/dist/assets/invite-DPOy64nF.js +0 -5
- package/dist/assets/issue-passport-QnXwWENR.js +0 -1
- package/dist/assets/ja-DTDtkp5G.js +0 -1
- package/dist/assets/ko-DgLbeBNo.js +0 -1
- package/dist/assets/localization-D7g53qeR.js +0 -1
- package/dist/assets/logo-uploader-B7IPezmK.js +0 -133
- package/dist/assets/overview-pKFxQLkN.js +0 -12
- package/dist/assets/page-header-CYu3_H82.js +0 -31
- package/dist/assets/pt-CZCvruh-.js +0 -1
- package/dist/assets/publish-resource-kR9OHRdE.js +0 -1
- package/dist/assets/purify.es-Bq0E5Q3l.js +0 -2
- package/dist/assets/refType-BCOesXZo.js +0 -1
- package/dist/assets/ru-D_KkTcPZ.js +0 -1
- package/dist/assets/sdk-Dtv_Cfx3.js +0 -1
- package/dist/assets/selector-BR2XoI6A.js +0 -48
- package/dist/assets/session-BhpnDl9E.js +0 -1
- package/dist/assets/setup-BntqqJam.js +0 -19
- package/dist/assets/step-actions-BGpXjOsH.js +0 -31
- package/dist/assets/th-2G8RPPGN.js +0 -1
- package/dist/assets/unsubscribe--o-tBu4k.js +0 -1
- package/dist/assets/use-mobile-iElkM1XK.js +0 -1
- package/dist/assets/use-mobile-ys1gCl_z.js +0 -1
- package/dist/assets/useSlot-h7rz3Ehc.js +0 -1
- package/dist/assets/user-center-COK230kp.js +0 -1
- package/dist/assets/vi-Bj0Zh1pF.js +0 -1
- package/dist/assets/wrap-locale-sAzfVK-h.js +0 -1
- package/dist/assets/zh-tw-ChudOecJ.js +0 -1
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/overview-DxoUd1AE.js","assets/index-jHlcxkEo.js","assets/index-B4oT57Ax.css","assets/HelpOutline-DYeyCE3o.js","assets/keyboard-arrow-down-rounded-DadBVmpO.js","assets/index-ByEY1S1p.js","assets/index-CqjSnEu1.js","assets/did-address-DOCLeksL.js","assets/Link-BEFhKJq0.js","assets/domain-list-aULRrT5X.js","assets/trim-CaA4via3.js","assets/Add-mXZrOf1h.js","assets/ExpandMore-B8oaKzsK.js","assets/base32-DiHjpMk3.js","assets/LockIcon-CYLVEooE.js","assets/index-BN0lgmDH.js","assets/permission-B0L9pgvB.js","assets/useAsync-NthGdZ_B.js","assets/session-D3zyh62B.js","assets/confirm-DF9JbbCJ.js","assets/DialogContentText-Dydxe3m7.js","assets/Alert-DaafqUlw.js","assets/useSlot-D-6cy3hj.js","assets/format-error-DsLT-I_t.js","assets/useSetState-DUhj3dVg.js","assets/use-mobile-CM0Yohdc.js","assets/InfoOutlined-BJbU1dHl.js","assets/OpenInNew-K-C4gsO1.js","assets/index-C8Cmkjd6.js","assets/api-X6cMA7j1.js","assets/util-CRg7-9Pj.js","assets/TextField-GO8E4D8x.js","assets/FormControl-DD67kWGJ.js","assets/useFormControl-CS6vjtl0.js","assets/Select-CDj8XFCr.js","assets/LoadingButton-C-EDtX6C.js","assets/useThemeProps-CmIdHfIC.js","assets/Delete-CjUdkXlU.js","assets/actions-egBtnEJO.js","assets/MoreHoriz-CJmEH65j.js","assets/index-C9XX9FI-.js","assets/useLocalStorage-Kt0ynk4Q.js","assets/MoreVert-DLwvbbqd.js","assets/FormControlLabel-BaYmyBlu.js","assets/Stack-ID2bvJFU.js","assets/PlayArrow-n1twcRud.js","assets/ButtonGroup-BWb37jJW.js","assets/RadioGroup-DIin5rK_.js","assets/FormGroup-th0rZzfK.js","assets/Avatar-Adx9Z0tZ.js","assets/fallback-DHTsTOsA.js","assets/index-D9Cgh-AY.js","assets/Menu-BW47wukv.js","assets/Toolbar-Kng3WhVc.js","assets/Hidden-CXUMFZRF.js","assets/index-BedxN_P9.js","assets/ListItemButton-G-aWGmX0.js","assets/selector-BB2fFIXP.js","assets/deprecate-DCu9jut5.js","assets/index-wBcLyYqT.js","assets/index-C_rc1Lwt.js","assets/Loop-CIgMv9HE.js","assets/ViewList-DpyY5ugC.js","assets/list-header-D0D_tjRh.js","assets/Search-BMru4B7h.js","assets/index-BT7-315i.js","assets/toPropertyKey-PLuKRk1e.js","assets/emotion-cache.browser.esm-BwirBJuO.js","assets/index-BtSt5FGJ.js","assets/redux-CluOqhW1.js","assets/ViewColumn-gNP4x-sg.js","assets/Grid-DxM3VqDH.js","assets/LastPage-DnljsHk-.js","assets/index-DTzuTDWf.js","assets/resource-dialog-CQSjUEGn.js","assets/index-OU0ZpNT_.js","assets/index-U-Ouf6WM.js","assets/Skeleton-Dq3yy5K4.js","assets/index-CDzU6wY1.js","assets/index-A6rXBmgc.js","assets/purify.es-CCJo14B2.js","assets/index-bNbDSQ4T.js","assets/user-sessions-BXhrzhKK.js","assets/click-to-copy-Chph5bbk.js","assets/DeleteOutline-CzTPA4kL.js","assets/uniqBy-CH7S750Q.js","assets/sdk-Lodb3mfy.js","assets/index-CPibawHo.js","assets/shorten-label-ZyDji4qi.js","assets/index-XYcwhl4a.js","assets/EditIcon-D6m2tQ3O.js","assets/Google-BteNIqNP.js","assets/InputAdornment-BjTDlo1K.js","assets/index-C6BTUKQj.js","assets/iframe-DJ2x9efl.js","assets/config-5Lv3Gr6U.js","assets/form-text-input-DAeQJFrx.js","assets/Done-PbP-u2lH.js","assets/logo-uploader-BoJpubye.js","assets/ArrowDropDown-BtoPSHd8.js","assets/ChevronRight-CwMDvr2n.js","assets/bundle-avatar-BMYoF8YT.js","assets/Autocomplete-Bi_-KQfy.js","assets/ListSubheader-CJ8rPs4Q.js","assets/simple-select-DKsN30ub.js","assets/isEmail-BEisyjCN.js","assets/switch-control-DkucmIR-.js","assets/Slider-BBUwYcyt.js","assets/index-CdNrrBZk.js","assets/refType-CwbBamWm.js","assets/CSSTransition-Dh8w9n01.js","assets/index-foZCwT8M.css","assets/audit-logs-C5ukCiti.js","assets/index-B5-lwWQw.js","assets/index-D4PP6P2d.css","assets/Pagination-Dq4SzKhv.js","assets/index-DbN4h3gH.js","assets/log-Df2I_fqe.js","assets/Download-pBnEdFOD.js","assets/log-D33dFtt_.css","assets/index-DXpM5evR.js","assets/Error-HNpddmqm.js","assets/react-beautiful-dnd.esm-B8s8Je1D.js","assets/raf-schd.esm-DbYZ8cuK.js","assets/QuestionMarkCircle-tCeIxlN3.js","assets/useSlotProps-CEuB5YLI.js","assets/item-CwYliHGb.js","assets/Launch-BeWg-XKa.js","assets/jss-plugin-props-sort.esm-l47fXiIJ.js","assets/Stepper-oTT6WH0K.js","assets/config-navigation-BVn4O5g1.js","assets/slicedToArray-Drxe8-64.js","assets/index-DXZuEbMH.js","assets/_createAggregator-Bj6ourdE.js","assets/index-C9IrBso_.js","assets/use-mobile-Cz-VrkwE.js","assets/connect-to-v0E4vbkK.js","assets/config-space-Bwfds2x7.js","assets/component-CHtRRUTN.js","assets/index-B5C90-kX.js","assets/ChevronLeft-CYIWlSCI.js","assets/add-component-core-BZjSv5V7.js","assets/launch-result-message-Bl-IHSrE.js","assets/Close-FBVHjH44.js","assets/ArrowBackIos-BubgDQVS.js","assets/index-NlzmSJHU.js","assets/url-join-sg6DH6qt.js","assets/content-layout-BoriYFvl.js","assets/index-CE5DZOEQ.js","assets/add-component-core-D-IRi6XF.css","assets/toUpper-BHGjhPud.js","assets/analytics-BNddEk9_.js","assets/LaunchOutlined-DtUGH3OW.js","assets/notifications-Dwy1x_4b.js","assets/MarkEmailRead-BNiANVq1.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{aM as Xn,aN as Yn,aO as Nt,aP as G,r as b,aQ as Jn,aR as er,aS as ve,aT as Pn,aU as vt,j as c,aV as tr,aW as ho,Z as z,$ as F,c as ce,P as h,a0 as Ye,aX as be,a2 as Mt,aa as U,ac as k,aY as lt,aK as Bt,aZ as go,L as Ut,a_ as yt,a$ as vo,n as te,a3 as ye,G as N,T as Q,t as J,b0 as yo,b1 as xo,b2 as bo,b3 as xt,u as Z,b4 as Co,B as T,N as jo,b5 as wo,a as Le,b6 as So,b7 as _o,b8 as Oo,b9 as Po,ba as Eo,bb as Lo,bc as Io,bd as Ro,be as To,bf as nr,bg as Do,bh as Ao,bi as $o,bj as rr,bk as or,bl as sr,a1 as Je,bm as ir,bn as le,bo as ge,bp as kt,bq as ar,br as No,ah as qe,e as zt,ar as Mo,bs as Bo,bt as Uo,bu as ko,ak as zo,bv as Fo,bw as Ho,as as Re,bx as Vo,aJ as qo,C as Ke,by as Ko,bz as Wo,bA as cr,bB as _e,bC as Go,af as En,a9 as Qo,ad as Zo,ag as Xo,ai as Yo,bD as Fe,a8 as Ue,bE as Jo,H as es,a5 as H,bF as ts,ax as ns,V as Ln}from"./index-jHlcxkEo.js";import{T as rs}from"./index-C9XX9FI-.js";import{u as lr,_ as In}from"./useLocalStorage-Kt0ynk4Q.js";import{d as os,C as ss}from"./MoreVert-DLwvbbqd.js";import{C as Rn}from"./confirm-DF9JbbCJ.js";import{d as is,L as as,a as ur}from"./Delete-CjUdkXlU.js";import{d as cs,u as ls}from"./PlayArrow-n1twcRud.js";import{A as dr}from"./Alert-DaafqUlw.js";import{B as us}from"./ButtonGroup-BWb37jJW.js";import{R as ds,a as Tn}from"./RadioGroup-DIin5rK_.js";import{F as bt}from"./FormControlLabel-BaYmyBlu.js";import{f as Ft}from"./format-error-DsLT-I_t.js";import{A as fr}from"./Avatar-Adx9Z0tZ.js";import{u as fs}from"./session-D3zyh62B.js";import{D as ps,_ as pr,P as ms}from"./permission-B0L9pgvB.js";import{T as mr,b as hs}from"./index-CqjSnEu1.js";import{L as hr}from"./Link-BEFhKJq0.js";import{_ as gr}from"./useSetState-DUhj3dVg.js";import{E as gs}from"./fallback-DHTsTOsA.js";import{u as vs}from"./index-D9Cgh-AY.js";import{D as ys}from"./index-BedxN_P9.js";import{L as xs}from"./ListItemButton-G-aWGmX0.js";import{w as vr}from"./deprecate-DCu9jut5.js";function bs(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=lr({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!o&&(s=!0);const{badgeContent:a,max:l=r}=s?i:e,u=a&&Number(a)>l?`${l}+`:a;return{badgeContent:a,invisible:s,max:l,displayValue:u}}function Cs(e){return Yn("MuiBadge",e)}const re=Xn("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),js=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],ut=10,dt=4,ws=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${G(n.vertical)}${G(n.horizontal)}`,`anchorOrigin${G(n.vertical)}${G(n.horizontal)}${G(o)}`,`overlap${G(o)}`,t!=="default"&&`color${G(t)}`]};return tr(a,Cs,s)},Ss=Nt("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),_s=Nt("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${G(n.anchorOrigin.vertical)}${G(n.anchorOrigin.horizontal)}${G(n.overlap)}`],n.color!=="default"&&t[`color${G(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:ut*2,lineHeight:1,padding:"0 6px",height:ut*2,borderRadius:ut,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:dt,height:dt*2,minWidth:dt*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${re.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${re.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${re.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${re.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${re.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${re.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${re.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${re.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),yr=b.forwardRef(function(t,n){var r,o,i,s,a,l;const u=Jn({props:t,name:"MuiBadge"}),{anchorOrigin:d={vertical:"top",horizontal:"right"},className:f,component:p,components:y={},componentsProps:x={},children:m,overlap:_="rectangular",color:g="default",invisible:S=!1,max:C=99,badgeContent:j,slots:P,slotProps:w,showZero:I=!1,variant:O="standard"}=u,E=er(u,js),{badgeContent:L,invisible:D,max:ne,displayValue:B}=bs({max:C,invisible:S,badgeContent:j,showZero:I}),fe=lr({anchorOrigin:d,color:g,overlap:_,variant:O,badgeContent:j}),Ne=D||L==null&&O!=="dot",{color:st=g,overlap:it=_,anchorOrigin:at=d,variant:ie=O}=Ne?fe:u,v=ie!=="dot"?B:void 0,R=ve({},u,{badgeContent:L,invisible:Ne,max:ne,displayValue:v,showZero:I,anchorOrigin:at,color:st,overlap:it,variant:ie}),V=ws(R),q=(r=(o=P==null?void 0:P.root)!=null?o:y.Root)!=null?r:Ss,X=(i=(s=P==null?void 0:P.badge)!=null?s:y.Badge)!=null?i:_s,K=(a=w==null?void 0:w.root)!=null?a:x.root,M=(l=w==null?void 0:w.badge)!=null?l:x.badge,ct=Pn({elementType:q,externalSlotProps:K,externalForwardedProps:E,additionalProps:{ref:n,as:p},ownerState:R,className:vt(K==null?void 0:K.className,V.root,f)}),pe=Pn({elementType:X,externalSlotProps:M,ownerState:R,className:vt(V.badge,M==null?void 0:M.className)});return c.jsxs(q,ve({},ct,{children:[m,c.jsx(X,ve({},pe,{children:v}))]}))});function Os(e){return Yn("MuiListItemAvatar",e)}Xn("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Ps=["className"],Es=e=>{const{alignItems:t,classes:n}=e;return tr({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Os,n)},Ls=Nt("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>ve({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),Is=b.forwardRef(function(t,n){const r=Jn({props:t,name:"MuiListItemAvatar"}),{className:o}=r,i=er(r,Ps),s=b.useContext(ho),a=ve({},r,{alignItems:s.alignItems}),l=Es(a);return c.jsx(Ls,ve({className:vt(l.root,o),ownerState:a,ref:n},i))});var Ht={},Rs=F;Object.defineProperty(Ht,"__esModule",{value:!0});var xr=Ht.default=void 0,Ts=Rs(z()),Ds=c;xr=Ht.default=(0,Ts.default)((0,Ds.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var Vt={},As=F;Object.defineProperty(Vt,"__esModule",{value:!0});var br=Vt.default=void 0,$s=As(z()),Ns=c;br=Vt.default=(0,$s.default)((0,Ns.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay");var qt={},Ms=F;Object.defineProperty(qt,"__esModule",{value:!0});var Cr=qt.default=void 0,Bs=Ms(z()),Us=c;Cr=qt.default=(0,Bs.default)((0,Us.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var Kt={},ks=F;Object.defineProperty(Kt,"__esModule",{value:!0});var jr=Kt.default=void 0,zs=ks(z()),Fs=c;jr=Kt.default=(0,zs.default)((0,Fs.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var Wt={},Hs=F;Object.defineProperty(Wt,"__esModule",{value:!0});var wr=Wt.default=void 0,Vs=Hs(z()),qs=c;wr=Wt.default=(0,Vs.default)((0,qs.jsx)("path",{d:"M18 17H6v-2h12zm0-4H6v-2h12zm0-4H6V7h12zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2z"}),"Receipt");var Gt={},Ks=F;Object.defineProperty(Gt,"__esModule",{value:!0});var Sr=Gt.default=void 0,Ws=Ks(z()),Gs=c;Sr=Gt.default=(0,Ws.default)((0,Gs.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group");var Qt={},Qs=F;Object.defineProperty(Qt,"__esModule",{value:!0});var _r=Qt.default=void 0,Zs=Qs(z()),Xs=c;_r=Qt.default=(0,Zs.default)((0,Xs.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20m6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9"}),"NotInterested");var Zt={};Object.defineProperty(Zt,"__esModule",{value:!0});var Or=Zt.default=void 0;Ys(b);var Dn=c;function Ys(e){return e&&e.__esModule?e:{default:e}}function An(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?An(Object(n),!0).forEach(function(r){Js(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Js(e,t,n){return(t=ei(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ei(e){var t=ti(e,"string");return typeof t=="symbol"?t:t+""}function ti(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xt=function(t){return(0,Dn.jsx)("svg",$n($n({},t),{},{children:(0,Dn.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.32989 8.20744C11.2787 6.82349 13.6098 6.08 16 6.08C18.3902 6.08 20.7213 6.82349 22.6701 8.20744C24.6189 9.59139 26.089 11.5473 26.8766 13.804C27.6642 16.0607 27.7304 18.5066 27.0659 20.8026C26.4419 22.9587 25.2026 24.8823 23.5044 26.3404H8.49555C6.79735 24.8823 5.55809 22.9587 4.9341 20.8026C4.26961 18.5066 4.33575 16.0607 5.12337 13.804C5.91098 11.5473 7.38107 9.59139 9.32989 8.20744ZM16 3.52C13.0786 3.52 10.2295 4.42871 7.84764 6.1202C5.46575 7.81169 3.66898 10.2022 2.70634 12.9604C1.7437 15.7187 1.66286 18.708 2.47501 21.5143C3.28717 24.3205 4.95211 26.8046 7.23909 28.6224C7.46554 28.8024 7.74628 28.9004 8.03554 28.9004H23.9644C24.2537 28.9004 24.5344 28.8024 24.7609 28.6224C27.0479 26.8046 28.7128 24.3205 29.5249 21.5143C30.3371 18.708 30.2563 15.7187 29.2936 12.9604C28.331 10.2022 26.5342 7.81169 24.1523 6.1202C21.7704 4.42871 18.9214 3.52 16 3.52ZM21.8829 13.5921C22.3827 13.0923 22.3827 12.2818 21.8829 11.7819C21.383 11.2821 20.5725 11.2821 20.0727 11.7819L17.868 13.9866C17.3072 13.7012 16.6724 13.5404 16 13.5404C13.7221 13.5404 11.8755 15.3869 11.8755 17.6648C11.8755 19.9427 13.7221 21.7892 16 21.7892C18.2779 21.7892 20.1244 19.9427 20.1244 17.6648C20.1244 16.9924 19.9635 16.3576 19.6782 15.7968L21.8829 13.5921ZM14.4355 17.6648C14.4355 16.8008 15.136 16.1004 16 16.1004C16.864 16.1004 17.5644 16.8008 17.5644 17.6648C17.5644 18.5288 16.864 19.2292 16 19.2292C15.136 19.2292 14.4355 18.5288 14.4355 17.6648Z",fill:"currentColor"})}))};Xt.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};Xt.displayName="dashboard";Or=Zt.default=Xt;var Yt={},ni=F;Object.defineProperty(Yt,"__esModule",{value:!0});var Pr=Yt.default=void 0,ri=ni(z()),oi=c;Pr=Yt.default=(0,ri.default)((0,oi.jsx)("path",{d:"m18.25 7.6-5.5-3.18c-.46-.27-1.04-.27-1.5 0L5.75 7.6c-.46.27-.75.76-.75 1.3v6.35c0 .54.29 1.03.75 1.3l5.5 3.18c.46.27 1.04.27 1.5 0l5.5-3.18c.46-.27.75-.76.75-1.3V8.9c0-.54-.29-1.03-.75-1.3M7 14.96v-4.62l4 2.32v4.61zm5-4.03L8 8.61l4-2.31 4 2.31zm1 6.34v-4.61l4-2.32v4.62zM7 2H3.5C2.67 2 2 2.67 2 3.5V7h2V4h3zm10 0h3.5c.83 0 1.5.67 1.5 1.5V7h-2V4h-3zM7 22H3.5c-.83 0-1.5-.67-1.5-1.5V17h2v3h3zm10 0h3.5c.83 0 1.5-.67 1.5-1.5V17h-2v3h-3z"}),"ViewInAr");const he={Start:cs,Stop:xr,Restart:br,Reload:Cr,Remove:is,Config:jr,Log:wr,Group:Sr,Cancel:_r,Dashboard:Or,Overview:Pr},si=(e,t)=>{if(!e)return"";const n=new URL(e),r=new URLSearchParams(n.searchParams),o=new URL(ce(n.origin,t));return o.search=r.toString(),o.toString()},ii="internal",ai="external";function Jt({blocklet:e,onStart:t,onComplete:n,variant:r,hasPermission:o,getComponentUrl:i,useBlockletUrlEvaluation:s,...a}){const l=be(),[u,d]=b.useState(null),[f,p]=b.useState(null),[y,x]=b.useState(!1),[m,_]=b.useState(null),{t:g}=b.useContext(Mt),[S]=In("skip-blocklet-setup",!1),{loading:C,recommendedUrl:j}=s(e),[P]=In("blocklet-type-filter",ii),w=U.isInProgress(e.status),[I,O]=b.useState(!1);b.useEffect(()=>{var R,V;if(!(e!=null&&e.controller))return;O(((V=(R=e==null?void 0:e.controller)==null?void 0:R.status)==null?void 0:V.value)===k.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{var q,X,K;try{const M=await l.api.getLauncherSession({input:{launcherSessionId:(q=e==null?void 0:e.controller)==null?void 0:q.launcherSessionId,launcherUrl:(X=e==null?void 0:e.controller)==null?void 0:X.launcherUrl}});if(M!=null&&M.error){console.error("get launcher session failed",M.error);return}O([N.LAUNCH_SESSION_STATUS.overdue,N.LAUNCH_SESSION_STATUS.canceled,N.LAUNCH_SESSION_STATUS.terminated].includes((K=M==null?void 0:M.launcherSession)==null?void 0:K.status))}catch(M){console.error("call getLauncherSession error",M)}})()},[]);const{inService:E}=l,L=(v,R,V=!1)=>async()=>{const q=async pe=>{var Be;t({action:v,blocklet:e}),x(!0),p(v);let Me=!1;try{if(v==="remove")await R(pe);else if(v==="start"){if(!U.hasRunnableComponent(e)){J.error(g("blocklet.noComponent"));return}if(!E&&!S&&!((Be=e.settings)!=null&&Be.initialized)&&e.mode!==k.BLOCKLET_MODES.DEVELOPMENT){const Y=yo(l.info),On=new URL(j);On.searchParams.set("serverUrl",Y),window.open(On.href),n({action:v,blocklet:e});return}const ae=e.children.filter(Y=>!U.isInProgress(Y.status)&&Y.status!=="running").map(Y=>Y.meta.did),me={did:e.meta.did,componentDids:ae};await R({input:me})}else if(["stop","restart","reload"].includes(v)){const ae=e.children.filter(Y=>Y.status==="running").map(Y=>Y.meta.did),me={did:e.meta.did,componentDids:ae};await R({input:me})}else{const ae={did:e.meta.did};await R({input:ae})}v==="remove"?Me=!0:await xo(1e3),v==="reload"&&J.success(g("blocklet.reloadSuccess")),_(null),n({action:v,blocklet:e})}catch(ae){const me=`Blocklet ${v} failed: ${Ft(ae)}`;throw n({action:v,blocklet:e,error:new Error(me)}),new Error(me)}finally{Me||x(!1)}},X=()=>{x(!1),_(null)},K=U.getDisplayName(e,!0),M=e.mode===k.BLOCKLET_MODES.DEVELOPMENT?{description:()=>c.jsx(Q,{component:"div",children:c.jsx(Q,{gutterBottom:!0,children:g("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(pe,Me)=>c.jsxs(Q,{component:"div",children:[c.jsx(Q,{gutterBottom:!0,children:g("blocklet.action.removeApplicationDescription")}),c.jsxs(ds,{name:"removeType",value:pe.removeType,onChange:Be=>Me({...pe,removeType:Be.target.value}),children:[c.jsx(bt,{value:"backup",control:c.jsx(Tn,{}),label:g("blocklet.action.removeApplicationAfterBackup")}),c.jsx(bt,{value:"complete",control:c.jsx(Tn,{}),label:g("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},ct={stop:{title:`${g("common.stop")} ${K}`,description:g("blocklet.action.stopDescription"),confirm:g("blocklet.action.confirmStop"),cancel:g("common.cancel"),onConfirm:q,onCancel:X},restart:{title:`${g("common.restart")} ${K}`,description:g("blocklet.action.restartDescription"),confirm:g("blocklet.action.confirmRestart"),cancel:g("common.cancel"),onConfirm:q,onCancel:X},remove:{title:`${g("common.remove")} ${K}`,confirm:g("blocklet.action.confirmRemove"),cancel:g("common.cancel"),onConfirm:q,onCancel:X,...M},cancelDownload:{title:`${g("common.cancel")}`,description:g("blocklet.action.cancelDownloadDescription",{name:K}),confirm:g("common.confirm"),cancel:g("common.cancel"),onConfirm:q,onCancel:X}};V?_(ct[v]):await q()},D=!!u,ne=v=>{try{v.stopPropagation(),v.preventDefault()}catch{}d(v.currentTarget)},B=v=>{try{v.stopPropagation(),v.preventDefault()}catch{}d(null)},fe=async(v,R)=>{try{R.stopPropagation(),R.preventDefault()}catch{}if(typeof v.handler=="function")try{x(!0),p(v.action),await v.handler()}catch(V){console.error(`Blocklet ${v.name} failed: `,V)}finally{x(!1),d(null)}else d(null)},Ne=!E&&U.isDeletableBlocklet(e)?{action:"remove",icon:he.Remove,name:g("common.remove"),handler:L("remove",async({removeType:v})=>{v==="backup"&&await l.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await l.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:w}:null,st={action:"remove",icon:({sx:v,...R})=>c.jsx(he.Cancel,{sx:{...v,paddingRight:"2px",zoom:.95},...R}),name:g("common.cancel"),handler:L("cancelDownload",l.api.cancelDownloadBlocklet,!0)},it=U.getAppMissingConfigs(e),at=()=>{const v=`/${e.mountPoint||"/"}`.replace(/\/+/g,"/"),R=i==null?void 0:i({mountPoint:v,blocklet:e});window.open(si(R,".well-known/service/admin"))};let ie=[{action:"start",icon:he.Start,inExternal:!0,name:g("common.start"),handler:L("start",l.api.startBlocklet),disabled:I||e.children.every(v=>v.status==="running")||lt(e.status)||C||w},{action:"stop",icon:he.Stop,inExternal:!0,name:g("common.stop"),handler:L("stop",l.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",inExternal:!0,icon:he.Restart,name:g("common.restart"),handler:L("restart",l.api.restartBlocklet,!0),disabled:I||e.status!=="running"},lt(e.status)?st:Ne,{separator:!0},E?null:{action:"dashboard",icon:({style:v,...R})=>c.jsx(he.Dashboard,{...R,style:{...v,width:"26px",height:"26px",paddingRight:"3px"}}),name:g("sidebar.dashboard"),handler:at}].filter(Boolean);return P===ai&&(ie=ie.filter(v=>v.inExternal)),r==="menu"?c.jsxs(Nn,{"data-cy":"blocklet-actions",children:[c.jsx(Bt,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:ne,size:"small",disabled:!o||!lt(e.status)&&y,children:c.jsx(os,{})}),c.jsxs(go,{id:"actions-menu",anchorEl:u,keepMounted:!0,open:D,onClose:B,PaperProps:{},children:[it.length>0&&c.jsxs(dr,{style:{maxWidth:"400px"},severity:"error",children:[g("blocklet.config.missingRequired"),c.jsx("br",{}),c.jsx(Ut,{to:`/blocklets/${e.meta.did}/components`,children:g("blocklet.config.gotoFix")})]}),ie.map((v,R)=>v.separator?c.jsx(yt,{},`separator-${R}`):c.jsxs(vo,{dense:!0,onClick:V=>fe(v,V),disabled:y||v.disabled,"data-cy":`${v.action}-blocklet`,children:[c.jsx(as,{style:{minWidth:24},children:f===v.action&&y?c.jsx(te,{size:16,sx:{marginRight:1}}):c.jsx(v.icon,{fontSize:"small"})}),c.jsx(ur,{primary:v.name})]},v.name))]}),m&&c.jsx(Rn,{title:m.title,description:m.description,confirm:m.confirm,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel})]}):c.jsxs(Nn,{"data-cy":"blocklet-actions",...a,children:[c.jsx(us,{children:ie.filter(v=>!v.separator&&!v.onlyInMenu).map(v=>c.jsxs(ye,{title:v.name,"data-cy":`${v.action}-blocklet`,onClick:()=>fe(v),disabled:!!v.disabled||y,children:[f===v.action&&y?c.jsx(te,{size:16,sx:{marginRight:1}}):c.jsx(v.icon,{}),c.jsx("span",{className:"blocklet-action-text",children:v.name})]},v.name))}),m&&c.jsx(Rn,{title:m.title,description:m.description,confirm:m.confirm,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel})]})}Jt.propTypes={getComponentUrl:h.func,blocklet:h.object.isRequired,onStart:h.func.isRequired,onComplete:h.func.isRequired,variant:h.oneOf(["menu","group"]),hasPermission:h.bool,useBlockletUrlEvaluation:h.func};Jt.defaultProps={getComponentUrl:null,variant:"menu",hasPermission:!1,useBlockletUrlEvaluation:()=>{var e;return{loading:!1,recommendedUrl:(e=window==null?void 0:window.location)==null?void 0:e.href}}};const Nn=Ye.div`
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
|
|
6
|
+
@media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
|
|
7
|
+
.MuiButton-root {
|
|
8
|
+
padding: 4px;
|
|
9
|
+
font-size: 10px;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
`,ci=b.memo(Jt),je=(e,t)=>{var r;let n="?v=";return t?n+=bo(t):n+=`${(r=e==null?void 0:e.meta)==null?void 0:r.version}${xt(e==null?void 0:e.status)?"~":""}`,n};function li({blocklet:e}){var y,x,m,_,g,S;const{inService:t}=be(),n=(y=((e==null?void 0:e.environments)||[]).find(C=>C.key===k.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE))==null?void 0:y.value,r=(x=((e==null?void 0:e.environments)||[]).find(C=>C.key===k.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT))==null?void 0:x.value,o=(m=((e==null?void 0:e.environments)||[]).find(C=>C.key===k.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_FAVICON))==null?void 0:m.value,i=(_=((e==null?void 0:e.environments)||[]).find(C=>C.key===k.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPLASH_PORTRAIT))==null?void 0:_.value,s=(g=((e==null?void 0:e.environments)||[]).find(C=>C.key===k.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPLASH_LANDSCAPE))==null?void 0:g.value,a=((S=window.env)==null?void 0:S.apiPrefix)||"/",l=`${ce(a,`/blocklet/logo/${t?"":e.meta.did}`)}${je(e,n)}`,u=`${ce(a,`/blocklet/logo-rect/${t?"":e.meta.did}`)}${je(e,r)}`,d=`${ce(a,`/blocklet/logo-favicon/${t?"":e.meta.did}`)}${je(e,o)}`,f=`${ce(a,`/blocklet/splash/portrait/${t?"":e.meta.did}`)}${je(e,i)}`,p=`${ce(a,`/blocklet/splash/landscape/${t?"":e.meta.did}`)}${je(e,s)}`;return{logoUrl:l,rectLogoUrl:u,faviconUrl:d,splashPortraitUrl:f,splashLandscapeUrl:p}}function en({blocklet:e,style:t,size:n,...r}){const{logoUrl:o}=li({blocklet:e}),{variant:i}=r;return c.jsx(fr,{variant:i||"square",style:Object.assign({backgroundColor:"transparent",width:n,height:n,borderRadius:10},t),...r,children:c.jsx("img",{src:o,alt:"",style:{width:n}})})}en.propTypes={blocklet:h.object.isRequired,style:h.object,size:h.oneOfType([h.number,h.string])};en.defaultProps={style:{},size:40};const ui=e=>{const t={};let n=null;return U.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=U.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},di=(e,t,n)=>{var i;const{hostname:r,href:o}=e;if(!t)return o;if(n){const a=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!a)return o;const l=a[0],d=((((i=t.site)==null?void 0:i.domainAliases)||[]).map(f=>f.value).filter(Boolean).find(f=>f.endsWith(N.DEFAULT_DID_DOMAIN))||"").replace(`.${N.DEFAULT_DID_DOMAIN}`,"");return d?o.replace(r,`${d}-${l}.${N.DEFAULT_IP_DOMAIN_SUFFIX}`):o}return o.replace(t.meta.bundleDid,t.appPid)};function Er(){const{t:e}=Z(),{api:t}=fs(),{blocklet:n}=Co(),{inService:r}=be(),[o,i]=b.useState(!1),[s,a]=b.useState(5),l=n&&n.structVersion!==N.APP_STRUCT_VERSION,u=()=>{try{if(n.status==="running"){J.error(e("blocklet.migrate.tip.running"));return}const p=ui(n);if(p){J.error(e("blocklet.migrate.tip.duplicate",{name:p}));return}i(!0)}catch(p){J.error(Ft(p))}},d=()=>{const p=di(window.location,n,r);setTimeout(()=>{window.location.href=p},5e3),a(5),setInterval(()=>{a(y=>y-1)},1e3)},f=()=>i(!1);return[l&&c.jsxs(dr,{severity:"warning",style:{margin:"12px 0"},children:[c.jsxs(T,{display:"flex",alignItems:"center",children:[c.jsx(ye,{variant:"contained",size:"small",color:"primary",onClick:()=>u(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),c.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(p=>c.jsx(T,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${p}`)},p))]},"alert"),n&&c.jsx(jo,{popup:!0,open:o,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:d,extraParams:{appDid:n.appDid,did:n.meta.did,wt:wo(n,!0),title:U.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:s>=0?e("blocklet.migrate.success",{sec:s}):"Redirecting..."},onClose:f},"connect")]}Er.propTypes={};function tn({children:e,style:t,...n}){return c.jsx(mr,{style:t,...n,children:e})}tn.propTypes={children:h.any.isRequired,style:h.object};tn.defaultProps={style:{}};const A={yellow:"#FFCF71",grey:"#aaaaaa",reverse:"#444",success:"#3ab39d",running:"#34BE74",error:"#D0021B",primary:"#1DC1C7"};function nn({isResource:e,status:t,variant:n,source:r,progress:o,...i}){const{t:s}=b.useContext(Mt),a={added:"primary",waiting:"warning",downloading:"warning",extracting:"warning",downloaded:"primary",installing:"warning",installed:"primary",starting:"warning",running:"success",stopping:"warning",stopped:"reverse",error:"error",upgrading:"warning",restarting:"warning",corrupted:"error",deleting:"warning",resource:"primary"},l={added:A.grey,waiting:A.yellow,downloading:A.yellow,extracting:A.yellow,downloaded:A.grey,installing:A.yellow,installed:A.grey,starting:A.yellow,running:A.running,stopping:A.yellow,stopped:A.reverse,error:A.error,upgrading:A.yellow,restarting:A.yellow,corrupted:A.error,deleting:A.yellow,resource:A.primary},u=U.isInProgress(t),d=e&&t==="stopped"?"resource":t,f=s(`blocklet.status.${d}`);return n==="pin"?c.jsx(Le,{title:s("blocklet.statusTip",{status:f}),children:c.jsxs(T,{position:"relative",minHeight:14,minWidth:14,display:"flex",alignItems:"center",justifyContent:"center",...i,children:[c.jsx(T,{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:l[d],style:{opacity:.15}}),c.jsx(T,{position:"absolute",width:"55%",height:"55%",borderRadius:"50%",bgcolor:l[d]})]})}):n==="dot"?c.jsx(Le,{title:s("blocklet.statusTip",{status:f}),children:c.jsx(ps,{color:l[d],...i})}):c.jsxs(tn,{type:a[d],...i,children:[u&&c.jsx(te,{size:12,color:"inherit",style:{marginRight:5}}),f,d==="downloading"&&o?c.jsx("div",{style:{marginLeft:5},children:`${o} %`}):null]})}nn.propTypes={status:h.string.isRequired,variant:h.oneOf(["dot","tag","pin"]),source:h.string,progress:h.number,isResource:h.bool};nn.defaultProps={isResource:!1,variant:"tag",source:"",progress:0};var fi=So,pi=Po,mi=Eo,hi=_o,gi=Oo,vi=Lo,yi=200;function xi(e,t,n,r){var o=-1,i=pi,s=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=hi(t,gi(n))),r?(i=mi,s=!1):t.length>=yi&&(i=vi,s=!1,t=new fi(t));e:for(;++o<a;){var d=e[o],f=n==null?d:n(d);if(d=r||d!==0?d:0,s&&f===f){for(var p=u;p--;)if(t[p]===f)continue e;l.push(d)}else i(t,f,r)||l.push(d)}return l}var bi=xi,Ci=bi,ji=Io,Mn=Ro;function wi(e,t,n){var r=e.length;if(r<2)return r?Mn(e[0]):[];for(var o=-1,i=Array(r);++o<r;)for(var s=e[o],a=-1;++a<r;)a!=o&&(i[o]=Ci(i[o]||s,e[a],t,n));return Mn(ji(i,1),t,n)}var Si=wi,_i=Do,Oi=To,Pi=Si,Ei=$o,Li=Ao,Ii=Oi(function(e){var t=Li(e);return t=typeof t=="function"?t:void 0,Pi(_i(e,Ei),void 0,t)}),Ri=Ii;const Ti=nr(Ri),Lr=b.createContext({});function rn({children:e,type:t}){const[n,r]=b.useState([]),o=b.useRef([]),i=l=>{if(!o.current.includes(l)){const u=[...o.current,l];r(u),o.current=u}},s=l=>{if(o.current.includes(l)){const u=o.current.filter(d=>d!==l);r(u),o.current=u}},a=l=>{const u=n.filter(f=>l.find(p=>p===f));Ti(u,n).forEach(f=>s(f))};return c.jsx(Lr.Provider,{value:{type:t,deletingBlocklets:n,addDeletingDid:i,removeDeletingDid:s,matchDeletingDid:a},children:e})}rn.propTypes={type:h.string,children:h.node.isRequired};rn.defaultProps={type:"blocklets"};function Ml(){return b.useContext(Lr)}function $(e,t,n){return rr.call(t,"css")?c.jsx(or,sr(e,t),n):c.jsx(e,t,n)}function ft(e,t,n){return rr.call(t,"css")?c.jsxs(or,sr(e,t),n):c.jsxs(e,t,n)}/**
|
|
13
|
+
* (c) Iconify
|
|
14
|
+
*
|
|
15
|
+
* For the full copyright and license information, please view the license.txt or license.gpl.txt
|
|
16
|
+
* files at https://github.com/iconify/iconify
|
|
17
|
+
*
|
|
18
|
+
* Licensed under MIT.
|
|
19
|
+
*
|
|
20
|
+
* @license MIT
|
|
21
|
+
* @version 3.1.1
|
|
22
|
+
*/const Ir=Object.freeze({left:0,top:0,width:16,height:16}),We=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Te=Object.freeze({...Ir,...We}),Ct=Object.freeze({...Te,body:"",hidden:!1});function Di(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Bn(e,t){const n=Di(e,t);for(const r in Ct)r in We?r in e&&!(r in n)&&(n[r]=We[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Ai(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function i(s){if(n[s])return o[s]=[];if(!(s in o)){o[s]=null;const a=r[s]&&r[s].parent,l=a&&i(a);l&&(o[s]=[a].concat(l))}return o[s]}return Object.keys(n).concat(Object.keys(r)).forEach(i),o}function $i(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let i={};function s(a){i=Bn(r[a]||o[a],i)}return s(t),n.forEach(s),Bn(e,i)}function Ni(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=Ai(e);for(const o in r){const i=r[o];i&&(t(o,$i(e,o,i)),n.push(o))}return n}const Oe=/^[a-z0-9]+(-[a-z0-9]+)*$/,Ce=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),l=o.pop(),u={provider:o.length>0?o[0]:r,prefix:l,name:a};return t&&!He(u)?null:u}const i=o[0],s=i.split("-");if(s.length>1){const a={provider:r,prefix:s.shift(),name:s.join("-")};return t&&!He(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:i};return t&&!He(a,n)?null:a}return null},He=(e,t)=>e?!!((e.provider===""||e.provider.match(Oe))&&(t&&e.prefix===""||e.prefix.match(Oe))&&e.name.match(Oe)):!1,Mi={provider:"",aliases:{},not_found:{},...Ir};function pt(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Bi(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!pt(e,Mi))return null;const n=t.icons;for(const o in n){const i=n[o];if(!o.match(Oe)||typeof i.body!="string"||!pt(i,Ct))return null}const r=t.aliases||Object.create(null);for(const o in r){const i=r[o],s=i.parent;if(!o.match(Oe)||typeof s!="string"||!n[s]&&!r[s]||!pt(i,Ct))return null}return t}const Ge=Object.create(null);function Ui(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function ee(e,t){const n=Ge[e]||(Ge[e]=Object.create(null));return n[t]||(n[t]=Ui(e,t))}function on(e,t){return Bi(t)?Ni(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function ki(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function zi(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(Ge)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(Ge[o]||{})).forEach(s=>{const a=ee(o,s);n=n.concat(Object.keys(a.icons).map(l=>(o!==""?"@"+o+":":"")+s+":"+l))})}),n}let sn=!1;function Fi(e){return sn}function De(e){const t=typeof e=="string"?Ce(e,!0,sn):e;if(t){const n=ee(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Hi(e,t){const n=Ce(e,!0,sn);if(!n)return!1;const r=ee(n.provider,n.prefix);return ki(r,n.name,t)}function Rr(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!He({provider:t,prefix:n,name:"a"}))return!1;const r=ee(t,n);return!!on(r,e)}function Vi(e){return!!De(e)}function qi(e){const t=De(e);return t?{...Te,...t}:null}const Tr=Object.freeze({width:null,height:null}),Dr=Object.freeze({...Tr,...We}),Ki=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Wi=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function jt(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(Ki);if(r===null||!r.length)return e;const o=[];let i=r.shift(),s=Wi.test(i);for(;;){if(s){const a=parseFloat(i);isNaN(a)?o.push(i):o.push(Math.ceil(a*t*n)/n)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");s=!s}}const Gi=e=>e==="unset"||e==="undefined"||e==="none";function et(e,t){const n={...Te,...e},r={...Dr,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(x=>{const m=[],_=x.hFlip,g=x.vFlip;let S=x.rotate;_?g?S+=2:(m.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),m.push("scale(-1 1)"),o.top=o.left=0):g&&(m.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),m.push("scale(1 -1)"),o.top=o.left=0);let C;switch(S<0&&(S-=Math.floor(S/4)*4),S=S%4,S){case 1:C=o.height/2+o.top,m.unshift("rotate(90 "+C.toString()+" "+C.toString()+")");break;case 2:m.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:C=o.width/2+o.left,m.unshift("rotate(-90 "+C.toString()+" "+C.toString()+")");break}S%2===1&&(o.left!==o.top&&(C=o.left,o.left=o.top,o.top=C),o.width!==o.height&&(C=o.width,o.width=o.height,o.height=C)),m.length&&(i='<g transform="'+m.join(" ")+'">'+i+"</g>")});const s=r.width,a=r.height,l=o.width,u=o.height;let d,f;s===null?(f=a===null?"1em":a==="auto"?u:a,d=jt(f,l/u)):(d=s==="auto"?l:s,f=a===null?jt(d,u/l):a==="auto"?u:a);const p={},y=(x,m)=>{Gi(m)||(p[x]=m.toString())};return y("width",d),y("height",f),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+u.toString(),{attributes:p,body:i}}const Qi=/\sid="(\S+)"/g,Zi="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Xi=0;function Ar(e,t=Zi){const n=[];let r;for(;r=Qi.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const s=typeof t=="function"?t(i):t+(Xi++).toString(),a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const ue={local:!0,session:!0},$r={local:new Set,session:new Set};let an=!1;function Yi(e){an=e}const Un="iconify2",Ie="iconify",Nr=Ie+"-count",kn=Ie+"-version",Mr=36e5,Ji=168;function wt(e,t){try{return e.getItem(t)}catch{}}function cn(e,t,n){try{return e.setItem(t,n),!0}catch{}}function zn(e,t){try{e.removeItem(t)}catch{}}function St(e,t){return cn(e,Nr,t.toString())}function _t(e){return parseInt(wt(e,Nr))||0}let ke=typeof window>"u"?{}:window;function Br(e){const t=e+"Storage";try{if(ke&&ke[t]&&typeof ke[t].length=="number")return ke[t]}catch{}ue[e]=!1}function Ur(e,t){const n=Br(e);if(!n)return;const r=wt(n,kn);if(r!==Un){if(r){const a=_t(n);for(let l=0;l<a;l++)zn(n,Ie+l.toString())}cn(n,kn,Un),St(n,0);return}const o=Math.floor(Date.now()/Mr)-Ji,i=a=>{const l=Ie+a.toString(),u=wt(n,l);if(typeof u=="string"){try{const d=JSON.parse(u);if(typeof d=="object"&&typeof d.cached=="number"&&d.cached>o&&typeof d.provider=="string"&&typeof d.data=="object"&&typeof d.data.prefix=="string"&&t(d,a))return!0}catch{}zn(n,l)}};let s=_t(n);for(let a=s-1;a>=0;a--)i(a)||(a===s-1?(s--,St(n,s)):$r[e].add(a))}function kr(){if(!an){Yi(!0);for(const e in ue)Ur(e,t=>{const n=t.data,r=t.provider,o=n.prefix,i=ee(r,o);if(!on(i,n).length)return!1;const s=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,s):s,!0})}}function zr(e,t){switch(e){case"local":case"session":ue[e]=t;break;case"all":for(const n in ue)ue[n]=t;break}}const Ot=Object.create(null);function Fr(e,t){Ot[e]=t}function Pt(e){return Ot[e]||Ot[""]}function ln(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const tt=Object.create(null),we=["https://api.simplesvg.com","https://api.unisvg.com"],Ve=[];for(;we.length>0;)we.length===1||Math.random()>.5?Ve.push(we.shift()):Ve.push(we.pop());tt[""]=ln({resources:["https://api.iconify.design"].concat(Ve)});function Hr(e,t){const n=ln(t);return n===null?!1:(tt[e]=n,!0)}function nt(e){return tt[e]}function ea(){return Object.keys(tt)}const ta=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Qe=ta();function na(e){Qe=e}function ra(){return Qe}function oa(e,t){const n=nt(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(s=>{o=Math.max(o,s.length)});const i=t+".json?icons=";r=n.maxURL-o-n.path.length-i.length}return r}function sa(e){return e===404}const ia=(e,t,n)=>{const r=[],o=oa(e,t),i="icons";let s={type:i,provider:e,prefix:t,icons:[]},a=0;return n.forEach((l,u)=>{a+=l.length+1,a>=o&&u>0&&(r.push(s),s={type:i,provider:e,prefix:t,icons:[]},a=l.length),s.icons.push(l)}),r.push(s),r};function aa(e){if(typeof e=="string"){const t=nt(e);if(t)return t.path}return"/"}const ca=(e,t,n)=>{if(!Qe){n("abort",424);return}let r=aa(t.provider);switch(t.type){case"icons":{const i=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});r+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let o=503;Qe(e+r).then(i=>{const s=i.status;if(s!==200){setTimeout(()=>{n(sa(s)?"abort":"next",s)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",o)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",o)})},la={prepare:ia,send:ca};function ua(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,s=o.prefix,a=o.name,l=n[i]||(n[i]=Object.create(null)),u=l[s]||(l[s]=ee(i,s));let d;a in u.icons?d=t.loaded:s===""||u.missing.has(a)?d=t.missing:d=t.pending;const f={provider:i,prefix:s,name:a};d.push(f)}),t}function Vr(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function da(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(i=>{const s=i.icons,a=s.pending.length;s.pending=s.pending.filter(l=>{if(l.prefix!==o)return!0;const u=l.name;if(e.icons[u])s.loaded.push({provider:r,prefix:o,name:u});else if(e.missing.has(u))s.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),s.pending.length!==a&&(n||Vr([e],i.id),i.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),i.abort))})}))}let fa=0;function pa(e,t,n){const r=fa++,o=Vr.bind(null,n,r);if(!t.pending.length)return o;const i={id:r,icons:t,callback:e,abort:o};return n.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(i)}),o}function ma(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const i=typeof o=="string"?Ce(o,t,n):o;i&&r.push(i)}),r}var ha={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ga(e,t,n,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let s;if(e.random){let w=e.resources.slice(0);for(s=[];w.length>1;){const I=Math.floor(Math.random()*w.length);s.push(w[I]),w=w.slice(0,I).concat(w.slice(I+1))}s=s.concat(w)}else s=e.resources.slice(i).concat(e.resources.slice(0,i));const a=Date.now();let l="pending",u=0,d,f=null,p=[],y=[];typeof r=="function"&&y.push(r);function x(){f&&(clearTimeout(f),f=null)}function m(){l==="pending"&&(l="aborted"),x(),p.forEach(w=>{w.status==="pending"&&(w.status="aborted")}),p=[]}function _(w,I){I&&(y=[]),typeof w=="function"&&y.push(w)}function g(){return{startTime:a,payload:t,status:l,queriesSent:u,queriesPending:p.length,subscribe:_,abort:m}}function S(){l="failed",y.forEach(w=>{w(void 0,d)})}function C(){p.forEach(w=>{w.status==="pending"&&(w.status="aborted")}),p=[]}function j(w,I,O){const E=I!=="success";switch(p=p.filter(L=>L!==w),l){case"pending":break;case"failed":if(E||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){d=O,S();return}if(E){d=O,p.length||(s.length?P():S());return}if(x(),C(),!e.random){const L=e.resources.indexOf(w.resource);L!==-1&&L!==e.index&&(e.index=L)}l="completed",y.forEach(L=>{L(O)})}function P(){if(l!=="pending")return;x();const w=s.shift();if(w===void 0){if(p.length){f=setTimeout(()=>{x(),l==="pending"&&(C(),S())},e.timeout);return}S();return}const I={status:"pending",resource:w,callback:(O,E)=>{j(I,O,E)}};p.push(I),u++,f=setTimeout(P,e.rotate),n(w,t,I.callback)}return setTimeout(P),g}function qr(e){const t={...ha,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,l,u){const d=ga(t,a,l,(f,p)=>{r(),u&&u(f,p)});return n.push(d),d}function i(a){return n.find(l=>a(l))||null}return{query:o,find:i,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function Fn(){}const mt=Object.create(null);function va(e){if(!mt[e]){const t=nt(e);if(!t)return;const n=qr(t),r={config:t,redundancy:n};mt[e]=r}return mt[e]}function Kr(e,t,n){let r,o;if(typeof e=="string"){const i=Pt(e);if(!i)return n(void 0,424),Fn;o=i.send;const s=va(e);s&&(r=s.redundancy)}else{const i=ln(e);if(i){r=qr(i);const s=e.resources?e.resources[0]:"",a=Pt(s);a&&(o=a.send)}}return!r||!o?(n(void 0,424),Fn):r.query(t,o,n)().abort}function ya(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in ue)Ur(r,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function xa(e,t){an||kr();function n(r){let o;if(!ue[r]||!(o=Br(r)))return;const i=$r[r];let s;if(i.size)i.delete(s=Array.from(i).shift());else if(s=_t(o),!St(o,s+1))return;const a={cached:Math.floor(Date.now()/Mr),provider:e.provider,data:t};return cn(o,Ie+s.toString(),JSON.stringify(a))}t.lastModified&&!ya(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Hn(){}function ba(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,da(e)}))}function Ca(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let i;if(!o||!(i=Pt(n)))return;i.prepare(n,r,o).forEach(a=>{Kr(n,a,l=>{if(typeof l!="object")a.icons.forEach(u=>{e.missing.add(u)});else try{const u=on(e,l);if(!u.length)return;const d=e.pendingIcons;d&&u.forEach(f=>{d.delete(f)}),xa(e,l)}catch(u){console.error(u)}ba(e)})})}))}const ja=e=>{const n=ee(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},un=(e,t)=>{const n=ma(e,!0,Fi()),r=ua(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Hn)}),()=>{l=!1}}const o=Object.create(null),i=[];let s,a;return r.pending.forEach(l=>{const{provider:u,prefix:d}=l;if(d===a&&u===s)return;s=u,a=d,i.push(ee(u,d));const f=o[u]||(o[u]=Object.create(null));f[d]||(f[d]=[])}),r.pending.forEach(l=>{const{provider:u,prefix:d,name:f}=l,p=ee(u,d),y=p.pendingIcons||(p.pendingIcons=new Set);y.has(f)||(y.add(f),o[u][d].push(f))}),i.forEach(l=>{const{provider:u,prefix:d}=l;o[u][d].length&&Ca(l,o[u][d])}),t?pa(t,r,i):Hn},wa=e=>new Promise((t,n)=>{const r=typeof e=="string"?Ce(e,!0):e;if(!r){n(e);return}un([r||e],o=>{if(o.length&&r){const i=De(r);if(i){t({...Te,...i});return}}n(e)})});function Wr(e,t){const n={...e};for(const r in t){const o=t[r],i=typeof o;r in Tr?(o===null||o&&(i==="string"||i==="number"))&&(n[r]=o):i===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const rt={...Dr,inline:!1},ht="iconify",Et="iconify-inline",se="iconifyData"+Date.now();let de=[];function Ae(e){for(let t=0;t<de.length;t++){const n=de[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function Gr(e,t=!1){let n=Ae(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},de.push(n),n)}function Sa(){if(document.documentElement)return Gr(document.documentElement);de.push({node:()=>document.documentElement})}function _a(e){de=de.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function $e(){return de}function Oa(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let Pe=null;const Pa={childList:!0,subtree:!0,attributes:!0};function Qr(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,Pe&&Pe(e)}))}function Ea(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let r=0;r<t.length;r++){const o=t[r];if(o.addedNodes&&o.addedNodes.length>0||o.type==="attributes"&&o.target[se]!==void 0){n.paused||Qr(e);return}}}function Zr(e,t){e.observer.instance.observe(t,Pa)}function Ze(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(Ea.bind(null,e)),Zr(e,n),t.paused||Qr(e))}function Vn(){$e().forEach(Ze)}function Xr(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function La(e){const t=Pe!==null;if(Pe!==e&&(Pe=e,t&&$e().forEach(Xr)),t){Vn();return}Oa(Vn)}function Lt(e){(e?[e]:$e()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function Ia(e){if(e){const t=Ae(e);t&&Lt(t)}else Lt()}function It(e){(e?[e]:$e()).forEach(t=>{if(!t.observer){Ze(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const r=typeof t.node=="function"?t.node():t.node;if(r)n.instance?Zr(t,r):Ze(t);else return}})}function Ra(e){if(e){const t=Ae(e);t&&It(t)}else It()}function Yr(e,t=!1){const n=Gr(e,t);return Ze(n),n}function Jr(e){const t=Ae(e);t&&(Xr(t),_a(e))}function Ta(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const o in rt)if(n[o]!==r[o])return!0;return!1}function Da(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return t}const Aa=/[\s,]+/;function $a(e,t){t.split(Aa).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const Na=["width","height"],Ma=["inline","hFlip","vFlip"];function Ba(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function Ua(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&Ce(t,!0);if(!n)return null;const r={...rt,inline:e.classList&&e.classList.contains(Et)};Na.forEach(a=>{const l=e.getAttribute("data-"+a);l&&(r[a]=l)});const o=e.getAttribute("data-rotate");typeof o=="string"&&(r.rotate=Da(o));const i=e.getAttribute("data-flip");typeof i=="string"&&$a(r,i),Ma.forEach(a=>{const l="data-"+a,u=Ba(e.getAttribute(l),l);typeof u=="boolean"&&(r[a]=u)});const s=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:s}}const ka="svg."+ht+", i."+ht+", span."+ht+", i."+Et+", span."+Et;function za(e){const t=[];return e.querySelectorAll(ka).forEach(n=>{const r=n[se]||n.tagName.toLowerCase()!=="svg"?Ua(n):null;r&&t.push({node:n,props:r})}),t}function eo(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let Ee;function Fa(){try{Ee=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Ee=null}}function Ha(e){return Ee===void 0&&Fa(),Ee?Ee.createHTML(e):e}function to(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function no(e,t,n,r){const o=e.classList;if(r){const s=r.classList;Array.from(s).forEach(a=>{o.add(a)})}const i=[];return t.forEach(s=>{o.contains(s)?n.has(s)&&i.push(s):(o.add(s),i.push(s))}),n.forEach(s=>{t.has(s)||o.remove(s)}),i}function ro(e,t,n){const r=e.style;(n||[]).forEach(i=>{r.removeProperty(i)});const o=[];for(const i in t)r.getPropertyValue(i)||(o.push(i),r.setProperty(i,t[i]));return o}function oo(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const o=t.customisations,i=et(n,o),s=e[se],a=eo(Ar(i.body),{"aria-hidden":"true",role:"img",...i.attributes});r.innerHTML=Ha(a);const l=r.childNodes[0],u=e.attributes;for(let x=0;x<u.length;x++){const m=u.item(x),_=m.name;_!=="class"&&!l.hasAttribute(_)&&l.setAttribute(_,m.value)}const d=to(t.icon),f=no(l,d,new Set(s&&s.addedClasses),e),p=ro(l,o.inline?{"vertical-align":"-0.125em"}:{},s&&s.addedStyles),y={...t,status:"loaded",addedClasses:f,addedStyles:p};return l[se]=y,e.parentNode&&e.parentNode.replaceChild(l,e),l}function Va(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function qa(e){return"data:image/svg+xml,"+Va(e)}function Ka(e){return'url("'+qa(e)+'")'}const Wa={display:"inline-block"},Rt={"background-color":"currentColor"},so={"background-color":"transparent"},qn={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Kn={"-webkit-mask":Rt,mask:Rt,background:so};for(const e in Kn){const t=Kn[e];for(const n in qn)t[e+"-"+n]=qn[n]}function Wn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function Ga(e,t,n,r){const o=t.customisations,i=et(n,o),s=i.attributes,a=e[se],l=eo(i.body,{...s,width:n.width+"",height:n.height+""}),u=to(t.icon),d=no(e,u,new Set(a&&a.addedClasses)),p={"--svg":Ka(l),width:Wn(s.width),height:Wn(s.height),...Wa,...r?Rt:so};o.inline&&(p["vertical-align"]="-0.125em");const y=ro(e,p,a&&a.addedStyles),x={...t,status:"loaded",addedClasses:d,addedStyles:y};return e[se]=x,e}let ze=!1;function Qa(){ze||(ze=!0,setTimeout(()=>{ze&&(ze=!1,xe())}))}function xe(e,t=!1){const n=Object.create(null);function r(o,i){const{provider:s,prefix:a,name:l}=o,u=ee(s,a),d=u.icons[l];if(d)return{status:"loaded",icon:d};if(u.missing.has(l))return{status:"missing"};if(i&&!ja(o)){const f=n[s]||(n[s]=Object.create(null));(f[a]||(f[a]=new Set)).add(l)}return{status:"loading"}}(e?[e]:$e()).forEach(o=>{const i=typeof o.node=="function"?o.node():o.node;if(!i||!i.querySelectorAll)return;let s=!1,a=!1;function l(u,d,f){if(a||(a=!0,Lt(o)),u.tagName.toUpperCase()!=="SVG"){const p=d.mode,y=p==="mask"||(p==="bg"?!1:p==="style"?f.body.indexOf("currentColor")!==-1:null);if(typeof y=="boolean"){Ga(u,d,{...Te,...f},y);return}}oo(u,d,f)}za(i).forEach(({node:u,props:d})=>{const f=u[se];if(!f){const{status:y,icon:x}=r(d.icon,!0);if(x){l(u,d,x);return}s=s||y==="loading",u[se]={...d,status:y};return}let p;if(Ta(f,d)){if(p=r(d.icon,f.name!==d.name),!p.icon){s=s||p.status==="loading",Object.assign(f,{...d,status:p.status});return}}else{if(f.status!=="loading")return;if(p=r(d.icon,!1),!p.icon){f.status=p.status;return}}l(u,d,p.icon)}),o.temporary&&!s?Jr(i):t&&s?Yr(i,!0):a&&o.observer&&It(o)});for(const o in n){const i=n[o];for(const s in i){const a=i[s];un(Array.from(a).map(l=>({provider:o,prefix:s,name:l})),Qa)}}}function Za(e){const t=Ae(e);t?xe(t):xe({node:e,temporary:!0},!0)}function io(e,t,n=!1){const r=De(e);if(!r)return null;const o=Ce(e),i=Wr(rt,t||{}),s=oo(document.createElement("span"),{name:e,icon:o,customisations:i},r);return n?s.outerHTML:s}function Xa(){return"3.1.1"}function Ya(e,t){return io(e,t,!1)}function Ja(e,t){return io(e,t,!0)}function ec(e,t){const n=De(e);if(!n)return null;const r=Wr(rt,t||{});return et(n,r)}function tc(e){e?Za(e):xe()}if(typeof document<"u"&&typeof window<"u"){Sa();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Rr(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{La(xe),xe()})}function nc(e,t){zr(e,t!==!1)}function rc(e){zr(e,!0)}Fr("",la);if(typeof document<"u"&&typeof window<"u"){kr();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;Hr(n,o)||console.error(r)}catch{console.error(r)}}}}const oc={getAPIConfig:nt,setAPIModule:Fr,sendAPIQuery:Kr,setFetch:na,getFetch:ra,listAPIProviders:ea},sc={_api:oc,addAPIProvider:Hr,loadIcons:un,loadIcon:wa,iconExists:Vi,getIcon:qi,listIcons:zi,addIcon:Hi,addCollection:Rr,replaceIDs:Ar,calculateSize:jt,buildIcon:et,getVersion:Xa,renderSVG:Ya,renderHTML:Ja,renderIcon:ec,scan:tc,observe:Yr,stopObserving:Jr,pauseObserver:Ia,resumeObserver:Ra,enableCache:nc,disableCache:rc};try{self.Iconify===void 0&&(self.Iconify=sc)}catch{}var dn={},ic=F;Object.defineProperty(dn,"__esModule",{value:!0});var ao=dn.default=void 0,ac=ic(z()),cc=c;ao=dn.default=(0,ac.default)((0,cc.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");function fn({infos:e}){const{t}=Z(),n=new URL("https://community.arcblock.io/discussions/add");e.forEach(o=>{n.searchParams.set(o.label,o.value)});const r=e.map(o=>`* ${o.label}: ${o.value}`).join(`
|
|
23
|
+
`);return n.searchParams.set("report","server"),n.searchParams.set("context",`[Enter feedback here]
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
<!--
|
|
28
|
+
[Server Info]
|
|
29
|
+
${r}
|
|
30
|
+
* Page: ${window.location.href}
|
|
31
|
+
-->
|
|
32
|
+
`),$(T,{sx:{mx:{xs:0,md:2}},children:$(hr,{sx:{color:"text.primary"},target:"_blank",href:n.href,rel:"noreferrer",style:{textDecoration:"underline"},children:t("common.reportIssue")})})}fn.propTypes={infos:h.arrayOf(h.shape({label:h.string,value:h.string}))};fn.defaultProps={infos:[]};var lc={year:{long:"year",short:"y"},day:{long:"day",short:"d"},hour:{long:"hour",short:"h"},minute:{long:"minute",short:"m"},second:{long:"second",short:"s"},millisecond:{long:"millisecond",short:"ms"},microsecond:{long:"microsecond",short:"µs"},nanosecond:{long:"nanosecond",short:"ns"}},uc={year:{long:"年",short:"年"},day:{long:"天",short:"天"},hour:{long:"小时",short:"小时"},minute:{long:"分钟",short:"分"},second:{long:"秒钟",short:"秒"},millisecond:{long:"毫秒",short:"毫秒"},microsecond:{long:"微秒",short:"微秒"},nanosecond:{long:"纳秒",short:"纳秒"}};const Tt=new Map,dc=(e,t)=>{Tt.set(e,t)},fc=(e="en_US")=>Tt.get(e)||Tt.get("en_US");var co={registerLang:dc,getLang:fc},pc=e=>{if(typeof e!="number")throw new TypeError("Expected a number");const t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(e*1e3)%1e3,nanoseconds:t(e*1e6)%1e3}};const mc=pc,{getLang:Se}=co,hc=(e,t)=>t===1?e:`${e}s`,gc=1e-7;var vc=(e,t={})=>{if(!Number.isFinite(e))throw new TypeError("Expected a finite number");t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);const n=Se(t.locale),r=[],o=(a,l)=>{const u=Math.floor(a*10**l+gc);return(Math.round(u)/10**l).toFixed(l)},i=(a,l,u)=>{if((r.length===0||!t.colonNotation)&&a===0&&!(t.colonNotation&&l==="minute"))return;const{long:d}=n[l]||Se("en_US")[l],{short:f}=n[l]||Se("en_US")[l];let p=(u||a||"0").toString(),y,x;if(t.colonNotation){y=r.length>0?":":"",x="";const m=p.includes(".")?p.split(".")[0].length:p.length,_=r.length>0?2:1;p="0".repeat(Math.max(0,_-m))+p}else y="",t.locale==="zh_CN"?Object.values(s).filter(m=>m>0).length>1?!s.days&&!s.hours&&s.minutes&&t.compact?x=d:x=f:s.minutes?x=d:x=f:x=t.verbose?` ${hc(d,a)}`:f;r.push(y+p+x)},s=mc(e);if(i(Math.trunc(s.days/365),"year"),i(s.days%365,"day"),i(s.hours,"hour"),i(s.minutes,"minute"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(i(s.seconds,"second"),t.formatSubMilliseconds)i(s.milliseconds,"millisecond"),i(s.microseconds,"microsecond"),i(s.nanoseconds,"nanosecond");else{const a=s.milliseconds+s.microseconds/1e3+s.nanoseconds/1e6,l=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,u=a>=1?Math.round(a):Math.ceil(a),d=l?a.toFixed(l):u;i(Number.parseFloat(d,10),"millisecond",d)}else{const a=e/1e3%60,l=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,u=o(a,l),d=t.keepDecimalsOnWholeSeconds?u:u.replace(/\.0+$/,"");i(Number.parseFloat(d,10),"second",d)}if(r.length===0){const a=(n.millisecond||Se("en_US").millisecond).long,l=(n.millisecond||Se("en_US").millisecond).short;return t.locale==="zh_CN"?`0${t.verbose?`${a}`:l}`:`0${t.verbose?` ${a}s`:l}`}if(t.compact)return r[0];if(typeof t.unitCount=="number"){const a=t.colonNotation?"":" ";return r.slice(0,Math.max(t.unitCount,1)).join(a)}return t.colonNotation?r.join(""):r.join(" ")};const yc=lc,xc=uc,{registerLang:pn}=co,lo=vc;pn("en_US",yc);pn("zh_CN",xc);lo.registerLang=pn;var bc=lo;const Xe=nr(bc);var mn={},Cc=F;Object.defineProperty(mn,"__esModule",{value:!0});var Dt=mn.default=void 0,jc=Cc(z()),Gn=c;Dt=mn.default=(0,jc.default)([(0,Gn.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,Gn.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function oe({children:e}){return Je(n=>n.breakpoints.down("md"))?c.jsx(Le,{enterDelay:500,leaveDelay:2e3,title:typeof e=="string"?e:"",children:c.jsx(T,{sx:{display:"flex",alignItems:"center",gap:1},children:c.jsx(Dt,{fontSize:"small"})})}):c.jsxs(T,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.jsx(Dt,{fontSize:"small"}),e]})}oe.propTypes={children:h.node.isRequired};const wc="https://launcher.arcblock.io/",Sc=30*24*60*60*1e3;function hn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...o}){var P,w,I,O,E,L;const{t:i,locale:s}=Z(),a=be(),[l,u]=gr({safeIframeRef:null,popoverAnchorEl:null}),d=b.useRef(null),f=Je(D=>D.breakpoints.down("md")),{sx:p={},...y}=o,x=f?"mobile":"desktop",m=pr(async()=>{const[D,ne]=await Promise.all([a.api.getLauncherSession({input:{launcherSessionId:r,launcherUrl:e}}),ir({launcherUrl:e||wc,nftDid:n,launcherSessionId:r,locale:s})]);if(D!=null&&D.error)throw new Error(D.error);return{launcherSession:D.launcherSession,subscriptionURL:ne}},[s]);if(m.loading)return c.jsx(le,{label:c.jsxs(oe,{children:[!f&&i("expiration.desktop.loading"),c.jsx(te,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...y});if(m.error)return console.error(m.error),c.jsx(le,{label:c.jsx(oe,{children:i(`expiration.${x}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...y,onClick:()=>m.retry()});const _=D=>{u({popoverAnchorEl:D.currentTarget})},g=()=>{u({popoverAnchorEl:null})},S=(P=m.value)==null?void 0:P.launcherSession;let C="success";[N.LAUNCH_SESSION_STATUS.overdue,N.LAUNCH_SESSION_STATUS.canceled,N.LAUNCH_SESSION_STATUS.terminated].includes((I=(w=m.value)==null?void 0:w.launcherSession)==null?void 0:I.status)&&(C="error");let j=null;if(S.expirationDate&&!S.subscription){const D=ge(S.expirationDate).diff(ge(),"ms");j=i(`expiration.${x}.tips.${C}`,{validity:Xe(D,{locale:kt(s),compact:!0,verbose:!0})}),D>0&&D<=Sc&&(C="warning")}return c.jsxs(c.Fragment,{children:[c.jsx(le,{label:c.jsx(oe,{children:j||((E=(O=S==null?void 0:S.subscription)==null?void 0:O.product)==null?void 0:E.name)||i("common.subscription")}),color:C,variant:C!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...y,onClick:_}),c.jsx(ar,{id:"popover-info",open:!!l.popoverAnchorEl,anchorEl:l.popoverAnchorEl,onClose:g,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:c.jsx("iframe",{ref:d,title:i("common.subscription"),width:"360px",height:"600px",style:{border:0},src:(L=m.value)==null?void 0:L.subscriptionURL})})]})}hn.propTypes={chainHost:h.string.isRequired,nftId:h.string,launcherSessionId:h.string,sx:h.object,retention:h.number,launcherUrl:h.string.isRequired};hn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};const _c=30*24*60*60*1e3,Oc="https://launcher.arcblock.io/";function gn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...o}){var w,I,O,E,L,D,ne;const{t:i,locale:s}=Z(),[a,l]=gr({safeIframeRef:null,popoverAnchorEl:null}),u=b.useRef(null),d=Je(B=>B.breakpoints.down("md")),f=be(),{sx:p={},...y}=o,x=d?"mobile":"desktop",m=pr(async()=>{const[B,fe]=await Promise.all([f.api.getLauncherSession({input:{launcherSessionId:r||n,launcherUrl:e}}),ir({launcherUrl:e||Oc,nftDid:n,launcherSessionId:r,locale:s})]);if(B!=null&&B.error)throw new Error(B.error);return{launcherSession:B.launcherSession,subscriptionURL:fe}},[s]);if(m.loading)return c.jsx(le,{label:c.jsxs(oe,{children:[!d&&i("expiration.desktop.loading"),c.jsx(te,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...y});if(m.error)return console.error(m.error),c.jsx(le,{label:c.jsx(oe,{children:i(`expiration.${x}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...y,onClick:()=>m.retry()});const _=(I=(w=m.value)==null?void 0:w.launcherSession)==null?void 0:I.expirationDate,g=ge(_).isBefore(ge()),S=ge(_).diff(ge(),"ms");let C="success";S<=_c&&(C="warning"),g&&(C="error");const j=B=>{l({popoverAnchorEl:B.currentTarget})},P=()=>{l({popoverAnchorEl:null})};return c.jsxs(c.Fragment,{children:[((E=(O=m.value)==null?void 0:O.launcherSession)==null?void 0:E.subscription)&&c.jsx(le,{label:c.jsx(oe,{children:i("expiration.desktop.nextInvoice",{date:No(_,s)})}),color:"success",variant:"outlined",sx:{cursor:"pointer",...p},...y,onClick:j}),!((D=(L=m.value)==null?void 0:L.launcherSession)!=null&&D.subscription)&&c.jsx(le,{label:c.jsx(oe,{children:i(`expiration.${x}.tips.${C}`,{validity:Xe(S,{locale:kt(s),compact:!0,verbose:!0})})}),color:C,variant:C!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...y,onClick:j}),c.jsx(ar,{id:"popover-info",open:!!a.popoverAnchorEl,anchorEl:a.popoverAnchorEl,onClose:P,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:c.jsx("iframe",{ref:u,title:i("common.subscription"),width:"360px",height:"600px",style:{border:0},src:(ne=m.value)==null?void 0:ne.subscriptionURL})})]})}gn.propTypes={chainHost:h.string.isRequired,nftId:h.string,launcherSessionId:h.string,sx:h.object,retention:h.number,launcherUrl:h.string.isRequired};gn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};var vn={},Pc=F;Object.defineProperty(vn,"__esModule",{value:!0});var uo=vn.default=void 0,Ec=Pc(z()),Lc=c;uo=vn.default=(0,Ec.default)((0,Lc.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen");var yn={},Ic=F;Object.defineProperty(yn,"__esModule",{value:!0});var fo=yn.default=void 0,Rc=Ic(z()),Tc=c;fo=yn.default=(0,Rc.default)((0,Tc.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit");var xn={};Object.defineProperty(xn,"__esModule",{value:!0});var At=xn.default=void 0;Dc(b);var gt=c;function Dc(e){return e&&e.__esModule?e:{default:e}}function Qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Zn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qn(Object(n),!0).forEach(function(r){Ac(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qn(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ac(e,t,n){return(t=$c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $c(e){var t=Nc(e,"string");return typeof t=="symbol"?t:t+""}function Nc(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bn=function(t){return(0,gt.jsxs)("svg",Zn(Zn({},t),{},{children:[(0,gt.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.25107 2.50001C6.67528 2.49385 4.50443 4.60042 4.48473 7.00559V12.7899C4.48473 13.5826 4.40145 14.5678 3.90413 15.4998H16.0954C15.599 14.5684 15.5146 13.5831 15.5146 12.7889V7.01078C15.4804 4.60752 13.3051 2.50948 10.7176 2.50301C10.7174 2.50301 10.7177 2.50301 10.7176 2.50301L9.25107 2.50001ZM17.0146 7.00094V12.7889C17.0146 13.5789 17.1156 14.3509 17.5456 15.0078L17.8325 15.4458C18.2685 16.1098 17.7995 16.9998 17.0146 16.9998H2.98473C2.19974 16.9998 1.72975 16.1098 2.16674 15.4458L2.45374 15.0078C2.88473 14.3509 2.98473 13.5799 2.98473 12.7899V6.99994C3.00773 3.70898 5.9107 0.992018 9.25465 1.00002L10.7206 1.00302C14.0646 1.01102 16.9746 3.70898 17.0146 7.00094Z",fill:"currentColor"}),(0,gt.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0602 18.0606C11.3415 17.7793 11.4996 17.3978 11.4996 17H12.9996C12.9996 17.7956 12.6835 18.5587 12.1209 19.1213C11.5583 19.6839 10.7952 19.9999 9.9996 19.9999C9.20396 19.9999 8.4409 19.6839 7.8783 19.1213C7.3157 18.5587 6.99963 17.7956 6.99963 17H8.49963C8.49963 17.3978 8.65767 17.7793 8.93896 18.0606C9.22026 18.3419 9.60178 18.4999 9.9996 18.4999C10.3974 18.4999 10.7789 18.3419 11.0602 18.0606Z",fill:"currentColor"})]}))};bn.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};bn.displayName="notification";At=xn.default=bn;function po({status:e,...t}){const n={warning:"warning",error:"error",info:"primary"};return!e||e==="info"||e==="success"?null:c.jsx(mr,{type:n[e],style:{borderRadius:5,border:"1px solid #ccc"},...t,children:e})}po.propTypes={status:h.string.isRequired};function Cn({value:e,...t}){const{t:n,locale:r}=Z();if(!e)return"-";const o={locale:kt(r),compact:!0},i=new Date(e).getTime(),s=Date.now();if(i>s){const l=Xe(i-s,o);return c.jsx(Le,{title:qe(e,r),placement:"top-end",enterTouchDelay:0,children:c.jsx("span",{...t,children:n("common.afterTime",{time:l})})})}const a=Xe(s-i,o);return c.jsx(Le,{title:qe(e,r),placement:"top-end",enterTouchDelay:0,children:c.jsx("span",{...t,children:n("common.timeAgo",{time:a})})})}Cn.propTypes={value:h.any};Cn.defaultProps={value:""};function Mc(e,t){const n=b.useRef(t);b.useEffect(()=>{const r=o=>n.current(o.detail);return window.addEventListener(e,r),()=>window.removeEventListener(e,r)},[e])}function Bc(){window.dispatchEvent(new CustomEvent("checkUpdate"))}function Bl(e){const t=zt(),{t:n}=Z(),r=()=>{const o=new URLSearchParams(window.location.search);o.get("checkUpdate")&&(o.delete("checkUpdate"),t(o.toString()),e(),J.success(n("notification.checkingForUpdates")))};b.useEffect(r,[]),Mc("checkUpdate",r)}function jn({onHide:e,api:t,notifications:n,updateNotifications:r,viewAllUrl:o,teamDid:i}){const{inService:s}=be(),{t:a,locale:l}=b.useContext(Mt),[u,d]=b.useState(!0),[f,p]=b.useState(!1),y=zt(),x=Mo();let m=u?n:n.filter(j=>j.read===!1);m=m.slice(0,5);const _=n.filter(j=>j.read===!1).length>0,g=async()=>{p(!0);const j=n.filter(P=>P.read===!1).map(P=>P.id).join(",");s?await t.readBlockletNotifications({input:{id:j,teamDid:i}}):await t.readNotifications({input:{id:j}}),r(),p(!1)},S=(j,P)=>{P.read||(s?t.readBlockletNotifications({input:{id:P.id,teamDid:i}}).then(()=>r()):t.readNotifications({input:{id:P.id}}).then(()=>r())),e(j),y(o)},C=(j,P)=>{j.preventDefault(),j.stopPropagation(),y(P),Bc()};return c.jsxs(Uc,{children:[c.jsxs(Q,{component:"h3",variant:"h6",className:"notification-header",children:[a("notification.title"),c.jsx(ye,{component:Ut,to:o,"data-cy":"view-all-notifications-btn",onClick:e,children:a("notification.viewAll")})]}),c.jsx(yt,{}),c.jsxs(Bo,{className:"notification-list",style:{maxHeight:"calc(100vh - 200px)",overflow:"auto"},children:[m.length===0&&c.jsx(Q,{component:"p",variant:"body1",className:"notification-tip",children:a("notification.empty")}),m.length>0&&m.map(j=>c.jsxs(xs,{alignItems:"flex-start",disabled:j.read,onClick:P=>S(P,j),children:[c.jsx(Is,{className:"list-item-avatar",children:c.jsxs(c.Fragment,{children:[c.jsx(fr,{children:j.entityType.substr(0,1).toUpperCase()}),c.jsx(po,{className:"notification-tag",status:j.severity})]})}),c.jsx(ur,{primary:j.title,secondary:c.jsxs(T,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[c.jsx(Q,{component:"span",sx:{overflow:"hidden","-webkit-line-clamp":"3","-webkit-box-orient":"vertical",display:"-webkit-box","text-overflow":"ellipsis"},children:j.description}),c.jsxs(T,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[c.jsx(Cn,{value:j.createdAt,locale:l,style:{color:x.palette.text.secondary,fontSize:"0.875rem",marginTop:"4px"}}),j.action&&!j.read?c.jsx(ye,{color:"primary",variant:"outlined",onPointerDown:P=>{P.stopPropagation(),P.preventDefault()},onClick:P=>C(P,j.action),"data-cy":"check-for-updates",children:a("notification.proceed")}):null]})]})})]},j.id))]}),c.jsx(yt,{}),c.jsxs(Q,{component:"div",className:"notification-footer",children:[c.jsx(bt,{control:c.jsx(ss,{checked:u,onChange:()=>d(!u),name:"showRead",color:"primary"}),label:a("notification.showRead")}),c.jsx(ms,{permission:s?"":"mutate_notification",role:s?Uo:[],children:_&&c.jsxs(ye,{disabled:f,onClick:g,className:"",children:[f&&c.jsx(te,{size:16,style:{marginRight:"1em"}}),a("notification.markAllAsRead")]})})]})]})}const Uc=Ye.div`
|
|
33
|
+
width: 420px;
|
|
34
|
+
|
|
35
|
+
@media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
|
|
36
|
+
width: calc(100vw - 10px);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.notification-header {
|
|
40
|
+
padding: 8px 16px;
|
|
41
|
+
display: flex;
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.notification-tip {
|
|
46
|
+
padding: 8px 16px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.notification-footer {
|
|
50
|
+
padding: 8px 16px;
|
|
51
|
+
display: flex;
|
|
52
|
+
justify-content: space-between;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.MuiButtonBase-root {
|
|
56
|
+
white-space: pre-wrap;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.list-item-avatar {
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
align-items: center;
|
|
63
|
+
min-width: 80px;
|
|
64
|
+
|
|
65
|
+
.notification-tag {
|
|
66
|
+
margin-top: 4px;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.MuiButtonBase-root:not(.Mui-disabled) {
|
|
71
|
+
.MuiAvatar-root {
|
|
72
|
+
background: ${e=>e.theme.palette.primary.light};
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
`;jn.propTypes={onHide:h.func,api:h.shape({readNotifications:h.func.isRequired,readBlockletNotifications:h.func.isRequired}).isRequired,notifications:h.arrayOf(h.shape({id:h.string,read:h.bool,entityType:h.string,title:h.string,createdAt:h.string,description:h.string}).isRequired).isRequired,updateNotifications:h.func.isRequired,viewAllUrl:h.string.isRequired,teamDid:h.string};jn.defaultProps={onHide:()=>{},teamDid:""};function wn({api:e,notifications:t,updateNotifications:n,viewAllUrl:r,teamDid:o}){const[i,s]=b.useState(!1),a=b.useRef(null),l=()=>{s(f=>!f)},u=f=>{a.current&&a.current.contains(f.target)||s(!1)},d=t.filter(f=>f.read===!1).length;return c.jsxs("div",{className:"notification-addon",children:[c.jsx(Bt,{ref:a,"aria-controls":"notify-list-grow","aria-haspopup":"true","data-cy":"toggle-notification-btn",onClick:l,children:d>0?c.jsx(yr,{badgeContent:d,max:99,color:"primary",children:c.jsx(At,{style:{width:"auto",height:24}})}):c.jsx(At,{style:{width:"auto",height:24}})}),i&&c.jsx(ko,{open:!0,anchorEl:a.current,disablePortal:!0,placement:"bottom-end",children:c.jsx(zo,{id:"notify-list-grow",children:c.jsx(Fo,{onClickAway:u,children:c.jsx("div",{children:c.jsx(jn,{notifications:t,updateNotifications:n,api:e,viewAllUrl:r,onHide:u,teamDid:o})})})})})]})}wn.propTypes={notifications:h.arrayOf(h.object),viewAllUrl:h.string.isRequired,api:h.object.isRequired,updateNotifications:h.func.isRequired,teamDid:h.string};wn.defaultProps={notifications:[],teamDid:""};const kc=`${N.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/notifications`;function Sn(){const{did:e}=window.env,{api:t,data:n,refresh:r}=Ho();return c.jsx(wn,{api:t,viewAllUrl:kc,notifications:n||[],updateNotifications:r,teamDid:e})}Sn.propTypes={};Sn.defaultProps={};function zc(){const{inFullPage:e,toggleFullPage:t}=vs();return $(Bt,{onClick:t,children:e?$(fo,{sx:{transform:"scale(1.3)"}}):$(uo,{sx:{transform:"scale(1.3)"}})})}function _n({children:e}){var m;const{t}=Z(),{loading:n,error:r,actions:{refreshBlocklet:o},env:i,blocklet:s}=Re(),{info:a}=Vo(),l=qo(),u=Je(_=>_.breakpoints.down("md")),{appId:d,version:f}=i,p=[{label:"App ID",value:d},{label:"App Version",value:f},{label:"App Bundle Name",value:(m=s==null?void 0:s.meta)==null?void 0:m.bundleName},{label:"Server Id",value:a.did},{label:"Server Version",value:a.version}],y=_=>{var S,C,j,P;const g=Array.isArray(_)?_:[_];if(g.unshift($(Sn,{})),u||g.unshift($(zc,{})),s){const w={cursor:"pointer",marginRight:{xs:"8px",md:"48px"}};Wo(s)?g.unshift($(hn,{chainHost:(S=s==null?void 0:s.controller)==null?void 0:S.chainHost,nftId:(C=s==null?void 0:s.controller)==null?void 0:C.nftId,launcherSessionId:(j=s==null?void 0:s.controller)==null?void 0:j.launcherSessionId,launcherUrl:(P=s==null?void 0:s.controller)==null?void 0:P.launcherUrl,sx:w})):a.ownerNft&&a.launcher&&g.unshift($(gn,{chainHost:a.launcher.chainHost,launcherUrl:a.launcher.url,nftId:a.ownerNft.did,launcherSessionId:a.ownerNft.launcherSessionId,sx:w}))}return g},x={};return u&&(x.logo=null),ft(Fc,{legacy:!1,fullWidth:!0,headerAddons:y,headerProps:x,isMobile:u,footerProps:{addon:$(fn,{infos:p})},children:[!s&&n&&$(Ke,{relative:"parent",children:$(te,{})}),!s&&r&&ft(Ke,{relative:"parent",children:[ft(T,{display:"flex",alignItems:"center",children:[$(ao,{color:"error",sx:{marginRight:1}}),Ft(r)]}),$(ye,{onClick:()=>o(),children:$("span",{style:{textDecoration:"underline"},children:t("common.retry")})})]}),!!s&&$(T,{flex:1,padding:u?2:3,display:"flex",flexDirection:"column",children:$(Ko,{FallbackComponent:gs,resetKeys:[l.pathname],children:e})})]})}_n.propTypes={children:h.any};_n.defaultProps={children:null};const Fc=Ye(ys)`
|
|
76
|
+
div.dashboard-content {
|
|
77
|
+
padding: 0;
|
|
78
|
+
}
|
|
79
|
+
.header-addons .locales {
|
|
80
|
+
max-height: 400px;
|
|
81
|
+
overflow-y: auto;
|
|
82
|
+
}
|
|
83
|
+
`,Hc={light:"fal",regular:"far",solid:"fas"};function Vc({name:e,color:t=_e.grey[900],size:n=24,variant:r="light",rounded:o=!1,style:i={},className:s="",forwardedRef:a,...l}){const u=c.jsx("i",{ref:a,className:`${Hc[r]} fa-${e} ${o?"":s}`,style:Object.assign({color:t,fontSize:`${n}px`},i||{})});return o?c.jsx(qc,{ref:a,size:n,color:t,className:s,...l,children:u}):u}const qc=cr("span")`
|
|
84
|
+
width: ${e=>e.size*2}px;
|
|
85
|
+
height: ${e=>e.size*2}px;
|
|
86
|
+
border-radius: 50%;
|
|
87
|
+
border: 1px solid ${e=>e.color};
|
|
88
|
+
display: flex;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
align-items: center;
|
|
91
|
+
|
|
92
|
+
.fa,
|
|
93
|
+
.fas,
|
|
94
|
+
.fal,
|
|
95
|
+
.far {
|
|
96
|
+
line-height: ${e=>e.size}px;
|
|
97
|
+
}
|
|
98
|
+
`,Kc=vr(b.forwardRef((e,t)=>c.jsx(Vc,{...e,forwardedRef:t})),{name:"Icon",alternative:"SVG icons"}),$t={error:{icon:"exclamation-circle",color:_e.error.main,borderColor:"#e35b54",backgroundColor:"rgba(227, 91, 84, 0.2)"},warning:{icon:"exclamation-triangle",color:_e.warning.main,borderColor:"#f7d040",backgroundColor:"rgba(247, 208, 64, 0.2)"},success:{icon:"check-circle",color:_e.success.main,borderColor:"#89ddd9",backgroundColor:"rgba(137, 221, 217, 0.2)"},tip:{icon:"info-circle",color:_e.grey[500],borderColor:"#222222",backgroundColor:"#EEEEEE"}};function ot(e){const t=Go(e,ot,["style"]),{type:n,children:r,style:o,className:i,variant:s,...a}=t,{icon:l,color:u,backgroundColor:d,borderColor:f}=$t[n]||$t.success,p=Object.assign({color:hs[500],backgroundColor:s==="border"?d:"transparent",borderLeft:s==="border"?`5px solid ${f}`:"none"},o);return c.jsxs(Gc,{...a,className:`alert alert--${n} alert--${s} ${i}`.trim(),style:p,children:[s==="icon"&&c.jsx(Kc,{className:"alert-icon",name:l,size:24,style:{color:u}}),c.jsx(Q,{component:"div",className:"alert-content",children:r})]})}ot.propTypes={type:h.oneOf(Object.keys($t)),children:h.any.isRequired,className:h.string,style:h.oneOfType([h.object,h.string]),variant:h.oneOf(["border","icon"])};ot.defaultProps={type:"tip",className:"",style:"{}",variant:"border"};const Wc=vr(ot,{name:"Alert",alternative:"@mui/material/Alert"}),Gc=cr("div")`
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
font-size: 16px;
|
|
102
|
+
margin: 0;
|
|
103
|
+
padding: 16px;
|
|
104
|
+
margin: 16px 0;
|
|
105
|
+
|
|
106
|
+
strong {
|
|
107
|
+
margin: 0 5px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.alert-icon {
|
|
111
|
+
margin-right: 16px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.alert-content {
|
|
115
|
+
flex: 1;
|
|
116
|
+
display: flex;
|
|
117
|
+
flex-direction: column;
|
|
118
|
+
}
|
|
119
|
+
`;function Qc(){const{t:e,locale:t}=Z(),{blocklet:n,launcherSession:r}=Re(),[o,i]=ls({subscriptionURL:"#"});if(b.useEffect(()=>{var l,u;En(n,r)&&Qo({launcherSessionId:(l=n==null?void 0:n.controller)==null?void 0:l.launcherSessionId,launcherUrl:(u=n==null?void 0:n.controller)==null?void 0:u.launcherUrl,locale:t}).then(d=>{i({subscriptionURL:d})}).catch(d=>{console.error("get subscription url error:",d)})},[n,r]),!n||!r||!Zo(n)||r.status===N.LAUNCH_SESSION_STATUS.installed)return"";let s=null,a="";return En(n,r)?(s=c.jsx(hr,{href:o.subscriptionURL,children:e("blocklet.manageSubscription")}),a=e("blocklet.suspendedCausedByExpired",{deadline:qe(r==null?void 0:r.reservedUntil,t)})):Xo(n,r)&&(s=c.jsx(Ut,{to:ce(N.WELLKNOWN_BLOCKLET_ADMIN_PATH,"/storage"),children:e("common.backup")}),a=e("blocklet.suspendedCausedByTerminated",{canceledAt:qe(r==null?void 0:r.terminatedAt,t),deadline:Yo(r==null?void 0:r.terminatedAt,t)})),c.jsxs(T,{component:Wc,type:"error",sx:{"&> .alert-content":{display:"block"}},children:[a,c.jsx(Q,{component:"span",sx:{marginLeft:"4px"},children:s})]})}const mo=b.createContext({});function Ul(){return b.useContext(mo)}const{Provider:Zc,Consumer:kl}=mo,{did:W,appId:Xc}=window.env;function Yc({children:e}){var w,I;const{t,locale:n}=Z(),{blocklet:r}=Re(),[o,i]=b.useState([]),[s,a]=b.useState([]),[l,u]=b.useState([]),d=U.getDisplayName(r),f=((w=((r==null?void 0:r.environments)||[]).find(O=>O.key===k.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR))==null?void 0:w.value)||"auto",p=(r==null?void 0:r.trustedPassports)||[],y=(r==null?void 0:r.trustedFactories)||[],x=(r==null?void 0:r.enablePassportIssuance)!==!1,m=async()=>{try{const O=await Ue.doBatchQuery({getRoles:{input:{teamDid:W}},getPermissions:{input:{teamDid:W}},getInvitations:{input:{teamDid:W}}});a((O.getRoles.roles||[]).filter(E=>!N.RBAC_CONFIG.roles.some(L=>L.name===E.name&&(!L.passport||L.ci))).map(E=>(E.hasDescription=!!E.description,E.hasDescription||(E.description=t("team.passport.description",{teamName:d,title:E.title})),E))),u(O.getPermissions.permissions||[]),i(O.getInvitations.invitations||[])}catch(O){J.error(O.message)}},_=({did:O}={})=>{const E={teamDid:W,user:{did:O}};return Ue.getUser({input:E})},g=({query:O,paging:E}={})=>{const L={teamDid:W};return E&&(L.paging=E),O&&(L.query=O),L.sort={lastLoginAt:-1},Ue.getUsers({input:L})},S=()=>Ue.getUsersCountPerRole({input:{teamDid:W}}),C=()=>m();b.useEffect(()=>{var O;(O=r==null?void 0:r.meta)!=null&&O.did&&m()},[(I=r==null?void 0:r.meta)==null?void 0:I.did]),b.useEffect(()=>{a(O=>O.map(E=>(E.hasDescription||(E.description=t("team.passport.description",{teamName:d,title:E.title})),{...E})))},[t,n]);const j=O=>{O.teamDid===W&&m()};Fe(k.TeamEvents.userAdded,j,[W]),Fe(k.TeamEvents.userRemoved,j,[W]),Fe(k.TeamEvents.userUpdated,j,[W]);const P={teamDid:W,teamIssuerDid:Xc,teamName:d,invitations:o,roles:s,permissions:l,trustedPassports:p,trustedFactories:y,isNodeTeam:!1,enablePassportIssuance:x,refresh:C,passportColor:f,endpoint:window.location.origin,blocklet:r,api:{getUser:_,getUsers:g,getUsersCountPerRole:S}};return c.jsx(Zc,{value:P,children:e})}const Jc=b.lazy(()=>H(()=>import("./overview-DxoUd1AE.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58]))),el=b.lazy(()=>H(()=>import("./index-wBcLyYqT.js"),__vite__mapDeps([59,1,2,60,11,61,62,63,64,31,32,33,34,65,36,66,67,68,69,42,43,44,70,48,71,37,40,72,53,15,73,50,51,52,54,55,56,57,12,49,22,74,75,27,76,8,77,3,78,46,20,25,79,80,81,82,7,16,17,18,83,21,23,5,84,19,85,86,87,38,39,88,41,45,47,6,24,58]))),tl=b.lazy(()=>H(()=>import("./index-XYcwhl4a.js"),__vite__mapDeps([89,1,2,11,78,12,46,77,90,14,63,64,31,32,33,34,10,16,17,18,19,20,21,22,23,43,44,42,91,15,7,8,6,24,92,40,41,37,45,47,48,49,50,51,52,53,54,55,56,57,58]))),nl=b.lazy(()=>H(()=>import("./index-C6BTUKQj.js"),__vite__mapDeps([93,1,2,94,95,96,97,98,60,90,99,46,31,32,33,34,100,12,40,101,49,22,61,102,21,103,41,16,17,18,19,20,23,24,83,43,44,42,71,81,15,104,37,105,68,69,66,106,4,11,107,65,36,67,70,48,72,53,64,5,13,108,76,92,109,110,47,45,6,8,50,51,52,54,55,56,57,58,111]))),rl=b.lazy(()=>H(()=>import("./audit-logs-C5ukCiti.js"),__vite__mapDeps([112,1,2,113,114,15,6,41,32,33,34,115,72,116,40,42,43,44,19,20,21,22,23,37,45,46,47,48,49,18,16,17,8,24,50,51,52,53,54,55,56,57,58]))),ol=b.lazy(()=>H(()=>import("./log-Df2I_fqe.js"),__vite__mapDeps([117,1,2,41,46,118,32,33,34,101,49,22,103,31,119]))),sl=b.lazy(()=>H(()=>import("./index-DXpM5evR.js"),__vite__mapDeps([120,1,2,11,37,121,65,36,66,67,68,69,42,43,33,44,70,32,48,71,34,31,40,72,53,64,15,6,19,20,21,22,23,18,7,8,122,123,101,49,88,118,124,24,60,87,29,76,12,100,27,125,84,126,127,97,83,46,128,99,92,81,113,114,80,116,129,47]))),il=b.lazy(()=>H(()=>import("./config-navigation-BVn4O5g1.js"),__vite__mapDeps([130,1,2,68,69,66,131,128,104,32,33,34,37,31,132,133,40,92,102,21,22,103,41,73,50,51,52,53,54,55,42,43,44,56,57,12,49,71,77,23,46,35,36,19,20,45,47,48,18,16,17,6,8,24,58]))),al=b.lazy(()=>H(()=>import("./index-C9IrBso_.js"),__vite__mapDeps([134,1,2,40,135,75,27,76,44,8,77,3,78,12,46,20,31,32,33,34,29,136,137,84,23,5,39,37,6,65,36,66,67,68,69,42,43,70,48,71,72,53,64,15,106,81]))),cl=b.lazy(()=>H(()=>import("./component-CHtRRUTN.js"),__vite__mapDeps([138,1,2,11,96,97,98,60,90,99,46,31,32,33,34,15,106,81,43,44,16,17,18,40,69,66,131,128,139,110,123,83,37,70,100,140,64,21,22,23,141,126,42,20,127,84,88,19,7,8,49,142,143,144,85,137,76,29,145,91,113,114,146,132,5,41,102,103,56,129,30,135,147,136,75,27,77,3,78,12,50,52,71,92,148,54,149,14,26,101,47,48,45,38,39,150,6,24,51,53,55,57,58]))),ll=b.lazy(()=>H(()=>import("./analytics-BNddEk9_.js"),__vite__mapDeps([151,1,2,40,16,17,18,94,152,140,100,139,66,71,42,43,33,44,37,32,34,21,22,23,36,110,125,31,92,109,65,67,68,69,70,48,72,53,64,15,101,49,41,19,20,45,46,47,6,8,24,50,51,52,54,55,56,57,58]))),ul=b.lazy(()=>H(()=>import("./notifications-Dwy1x_4b.js"),__vite__mapDeps([153,1,2,127,154,60,16,17,18,43,33,44,42,49,22,37,115,72,40,41,19,20,21,23,45,46,47,48,6,8,24,50,51,52,53,54,55,56,57,58])));function dl(){var m,_;const e=zt(),{tab:t="overview"}=ts(),{blocklet:n,actions:{refreshBlocklet:r}}=Re(),{t:o}=Z(),i=(m=n==null?void 0:n.meta)==null?void 0:m.did,s=g=>{e(`${N.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/${g}`)},a=()=>{r()},l=!n||xt(n.status)?[]:U.getAppMissingConfigs(n),u=[{label:o("common.overview"),value:"overview"},{label:c.jsx(yr,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!l.length,children:o("common.components")}),value:"components"}];xt(n==null?void 0:n.status)||u.push({label:o("common.configuration"),value:"configuration"}),u.push({label:o("common.auditLogs"),value:"audit-logs"}),n&&((_=n.children)!=null&&_.length)&&n.structVersion===N.APP_STRUCT_VERSION&&u.push({label:o("common.logs"),value:"logs"}),u.push({label:o("common.configNavigation"),value:"navigation"});const d=c.jsx(rl,{scope:i,categories:["blocklet","team","security","certificates","gateway"]});Fe(N.EVENTS.NOTIFICATION_BLOCKLET_CREATE,g=>{const{severity:S,title:C,description:j}=g||{};S==="error"?J.error(j||C):J.success(j||C)});const f={overview:c.jsx(Jc,{}),members:c.jsx(T,{mt:-5,children:c.jsx(el,{type:"blocklet",createPassportSvg:Ln})}),passports:c.jsx(T,{mt:-4.5,children:c.jsx(tl,{createPassportSvg:Ln})}),components:cl,configuration:c.jsx(nl,{blocklet:n,onUpdate:a}),"audit-logs":d,logs:ol,navigation:il,"did-spaces":c.jsx(al,{navOrientation:"horizontal",sx:{mt:-4}}),analytics:c.jsx(T,{mt:-5,children:c.jsx(ll,{})}),publish:c.jsx(T,{mt:-3,children:c.jsx(sl,{})}),notifications:c.jsx(ul,{})},p=f[t]||f.overview,y=!["members","passports","analytics","publish","notifications","did-spaces"].includes(t),x=n?c.jsxs(rn,{type:"components",children:[y&&c.jsx(T,{pt:3,children:c.jsx(rs,{tabs:u,current:t,onChange:s,scrollButtons:"auto"})}),c.jsx("div",{className:"page-content",children:c.jsx(b.Suspense,{fallback:c.jsx(Ke,{relative:"parent",children:c.jsx(te,{})}),children:b.isValidElement(p)?p:c.jsx(p,{blocklet:n})})})]}):c.jsx(Ke,{relative:"parent",children:c.jsx(te,{})});return c.jsx(ns,{children:c.jsx(Yc,{children:c.jsx(_n,{children:c.jsxs(pl,{children:[y&&c.jsxs(T,{component:"div",className:"page-header",children:[c.jsxs(Q,{component:"h6",variant:"h6",className:"page-title",color:"textPrimary",children:[n?c.jsx(en,{blocklet:n,style:{marginRight:16}}):null,n?c.jsxs(T,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[c.jsx(T,{children:U.getDisplayName(n)}),(n==null?void 0:n.status)!=="unknown"&&c.jsx(nn,{size:"12px",status:n.status,source:n.source,progress:n.progress})]}):`${o("common.blocklet")} ${o("common.detail")}`]}),n?c.jsx(ci,{className:"page-actions",hasPermission:!0,blocklet:n,onStart:()=>{},onComplete:({error:g}={})=>{g&&J.error(g.message)},variant:"group"}):null]}),c.jsx(Er,{}),c.jsx(Qc,{}),x]})})})})}function fl(){var r;const{blocklet:e}=Re(),{t}=Z(),n=(r=e==null?void 0:e.meta)==null?void 0:r.did;return b.useEffect(()=>{const o=Jo();return n&&o.connect(),()=>{n&&o.isConnected()&&o.disconnect()}},[n]),c.jsxs(c.Fragment,{children:[c.jsx(es,{children:c.jsx("title",{children:t("pageTitle.dashboard")})}),c.jsx(dl,{})]})}const pl=Ye.main`
|
|
120
|
+
.page-header {
|
|
121
|
+
display: flex;
|
|
122
|
+
justify-content: space-between;
|
|
123
|
+
align-items: center;
|
|
124
|
+
flex-wrap: wrap;
|
|
125
|
+
gap: 16px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.page-title {
|
|
129
|
+
display: flex;
|
|
130
|
+
align-items: center;
|
|
131
|
+
|
|
132
|
+
.page-link {
|
|
133
|
+
font-size: 15px;
|
|
134
|
+
margin-top: 8px;
|
|
135
|
+
margin-left: 8px;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.page-content {
|
|
140
|
+
margin-top: 18px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@media (max-width: ${e=>e.theme.breakpoints.values.md}px) {
|
|
144
|
+
.page-header {
|
|
145
|
+
flex-direction: column;
|
|
146
|
+
align-items: flex-start;
|
|
147
|
+
.page-actions,
|
|
148
|
+
.MuiButtonGroup-root {
|
|
149
|
+
width: 100%;
|
|
150
|
+
}
|
|
151
|
+
.MuiButtonGroup-root {
|
|
152
|
+
.MuiButtonBase-root {
|
|
153
|
+
flex: 1;
|
|
154
|
+
}
|
|
155
|
+
.blocklet-action-text {
|
|
156
|
+
display: none;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.page-title {
|
|
162
|
+
margin-bottom: 15px;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
`,zl=Object.freeze(Object.defineProperty({__proto__:null,default:fl},Symbol.toStringTag,{value:"Module"}));export{nn as B,Is as L,po as N,Cn as R,tn as W,bi as _,yr as a,li as b,Sr as c,ao as d,en as e,he as f,xr as g,Ml as h,br as i,Bl as j,zl as k,Xe as p,Ul as u};
|